zhangjiawang / gitalk-comments Goto Github PK
View Code? Open in Web Editor NEW评论信息
评论信息
https://zhangjiawang.github.io/posts/63225b76.html
什么是 DevOps DevOps(Development Oprations)是一种**或方法论,它涵盖开发、测试、运维的整个过程 DevOps 强调软件开发人员与软件测试、软件运维、质量保障(QA)部门之间有效的沟通与协作。强调通过自动化的方法管理软件变更、软件继承 使软件从构建到测试、发布更加快捷、可靠,最终按时交付软件
https://zhangjiawang.github.io/posts/aacc5f11.html
Linux 配置多个 Git 账号公司迁移到腾讯 DevCloud ,记录一下配置小伙伴们的 Git 情况 生成公钥12cd ~/.sshssh-keygen -t rsa -C "[email protected]" 这里默认生成的是 id_rsa 和 id_rsa.pub,此处需要在第一次出现输入提示的时候,分别输入带有表示意义的名字,以便于识别 配置 config将公钥配置到对应
https://zhangjiawang.github.io/posts/9a1c5afc.html
一、MySQL 存储引擎原理拆解 mysql 存储最小单位 page 一、MySQL 记录存储
https://zhangjiawang.github.io/posts/fa02c5f0.html
DockerDocker 概述Docker 是基于 Go 语言开发的开源项目! 官网:https://www.docker.com/ 文档地址:https://docs.docker.com/ 仓库地址:https://hub.docker.com/ Docker 能干嘛
https://zhangjiawang.github.io/posts/d3d6e78e.html
在某些特定的业务场景下,需要把符合条件的单独几行,放在查询结果的开始,或者查询结果的尾部 通过的方法就是 IN 语句(也可以通过 IF 语句) 表内容: 使用 ORDER BY 配合 IF 语句
https://zhangjiawang.github.io/posts/60d2400d.html
MySql 索引类型 BTree 和 Hash索引是帮助mysql获取数据的数据结构。最常见的索引是Btree索引和Hash索引。主键索引叶子节点存储的就是 MySql 的整个数据行,普通索引的叶子节点存储的是索引列和主键值。 不同的引擎对于索引有不同的支持:Innodb 和 MyISAM 默认的索引是 Btree 索引;而 Mermory 默认的索引是 Hash 索引。 一、BTreeBTree
https://zhangjiawang.github.io/posts/1ef7bdfb.html
基础语法 import 原理 main 包中导入的包会被顺序导入 导入的包中依赖其他包,会首先导入依赖包,并初始化依赖包中的常量与变量,如果依赖包中有 init(),会自动�执行 init() 所有包导入完成后会对 main 包中的变量与常量进行初始化,然后执行 init(),最后执行 main() 一个包被导入多次则该包只会被导入一次 import 别名用法 别名 "package
https://zhangjiawang.github.io/posts/e6125021.html
Redis 教程Nosql 概述为什么要用 Nosql 1、最早的单机 Mysql 的年代 90年代,一个网站的访问量一般不会太大,单个数据库完全足够! 大部分都是使用静态 html 网页,服务器根本没有压力 瓶颈如下:
https://zhangjiawang.github.io/posts/ce974c7.html
Redis 的 Big Key 问题Big Key 问题 指 key 对应的 value 所占的内存空间比较大 对于字符串类型的 value,一般认为超过 10KB 属于 bigkey 非字符串类型(哈希、列表、集合、有序集合),体现在元素个数过多 造成的影响 内存空间不均匀(在 Redis Cluster 中,bigkey 会造成节点的内存空间使用不均匀) 超时阻塞:由于 Redis
https://zhangjiawang.github.io/posts/efd2a710.html
各进制介绍 二进制 0 和 1 ,满 2 进 1 八进制 0 - 7 ,满 8 进 1 十六进制 0 - 9 及 a - f ,满 16 进 1 ,a - f 不区分大小写,以 0x 开头表示 各进制之间的转换二进制转十进制 从最低位开始,将每个位上的数提取出来,乘以 2 的 (位数 - 1)次方,最后求和 1011 = 1 * 1 + 1 * 2 + 0 + 1 * 2 *
https://zhangjiawang.github.io/posts/de1cc940.html
前言我的本地机器是 mac ,使用 vagrant + virtualbox 安装了一个 centos7 的虚拟机,利用 vagrant 的共享目录来实现 centos 和本地机器的代码同步。然后在虚拟机里使用 docker 来运行多个容器跑项目 由于公司业务复杂,不同的项目需要不同版本的 php 才能运行,故记录一下这次搭建开发环境的过程 这次准备要搭建的环境 nginx php5.3 php
https://zhangjiawang.github.io/posts/dd90a1a9.html
Redis 缓存数据库双写不一致正常情况下,缓存的读取流程如下: 什么是缓存一致性的问题,其实就是我们最终落库数据和我们缓存中的数据不一致 解决方案
https://zhangjiawang.github.io/posts/336e27a9.html
开发过程中遇到了 js 数组赋值问题,新数组的改变会影响原数组,记录如下: 1234567var arr = [1, 2, 3];console.log(arr); // [1, 2, 3]var newArr = arr;console.log(newArr); // [1, 2, 3]newArr[0] = 2;console.log(arr); // [2, 2, 3]
https://zhangjiawang.github.io/about/
This too shall pass. 一切终将过去
https://zhangjiawang.github.io/posts/31d751d1.html
Swoole 是什么Swoole 是一个为 PHP 用 C 和 C++ 编写的基于事件的高性能异步&协程并行网络通信引擎 同步 12$data = file_get_contents('./data.json');echo $data;
https://zhangjiawang.github.io/posts/63fff271.html
范围 range 关键字用于 for 循环中迭代数组、切片、通道或集合(map)的元素,在数组和切片中它返回元素的索引和索引对应的值,在集合中返回 key-value 对的 key 值。
https://zhangjiawang.github.io/tags/
This too shall pass. 一切终将过去
https://zhangjiawang.github.io/posts/5c524f24.html
数据切分(Sharding)关系型数据库本身比较容易成为系统瓶颈,单机存储容量、连接数、处理能力都有限。当单表的数据量达到 1000W 或 100G 以后,由于查询维度较多,即使添加从库、优化索引,做很多操作时性能仍下降严重。此时就要考虑对其进行切分了,切分的目的就在于减少数据库的负担,缩短查询时间。 数据切分根据其切分类型,可以分为两种方式:垂直(纵向)切分和水平(横向)切分 一. 垂直(纵向)
https://zhangjiawang.github.io/categories/
This too shall pass. 一切终将过去
https://zhangjiawang.github.io/posts/76ec4f6b.html
面向对象 面向过程 1234567891011121314package mainimport "fmt"func compare(a, b int) bool { return a < b}func main() { a, b := 1, 2 fmt.Println(compare(a, b))}// 以上代码运行结果:true
https://zhangjiawang.github.io/posts/e2eef090.html
使用 vagrant + virtualbox 搭建的 php 开发环境,挂载共享目录的问题laravel 6.0 框架要求 php 版本大于 7.2 ,在成功升级 7.3 以后,框架终于搭建成功,但是发现一个裸框架首页加载居然需要 1s 多的时间,不科学,很不科学,太不科学了。所以开始动手…… 首先要把虚拟机的网络设置成 :private_network 模式
https://zhangjiawang.github.io/posts/d4d2eb14.html
字符串常用函数 字符串查找 strings.Contains() 1234567891011import ( "fmt" "strings")func main() { s := "hello world" fmt.Println(strings.Contains(s, "hello"
https://zhangjiawang.github.io/posts/2ee15123.html
运算符 算数运算符:+ - * / % ++ -- 关系运算符:== != > < >= <= 逻辑运算符:&& || ! 位运算符: & 按位与:都为 1 则结果为 1 | 按位或:有一个为 1 则结果为 1 ^ 按位异或:对应位不同值则结果为 1 << 左移:把数整体向左移 >> �右移:把数整体向右移 &^ 位
https://zhangjiawang.github.io/posts/aa984679.html
最近遇到一个小问题,但挺有趣,记录一下 首先,设置一个 cookie 1234 当首次访问此页面时,页面报错
https://zhangjiawang.github.io/posts/b3f3593.html
123456789101112131415161718192021222324UE.delEditor("resume"); // 防止第二次加载渲染失败var resume_ue = UE.getEditor('resume',{ // 这里可以选择自己需要的工具按钮名称,此处仅选择如下五个 // toolbars:[['F
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.