会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
风行天下
天地不仁 以万物为刍狗
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
98
99
100
101
102
103
104
105
106
···
198
下一页
2019年9月3日
redis集群1
摘要: redis-trib.rb命令详解 redis-trib.rb是官方提供的Redis Cluster的管理工具,无需额外下载,默认位于源码包的src目录下,但因该工具是用ruby开发的,所以需要准备相关的依赖环境。 准备redis-trib.rb的运行环境 wget https://cache.ru
阅读全文
posted @ 2019-09-03 10:57 brady-wang
阅读(304)
评论(0)
推荐(0)
2019年9月2日
批量更新sql
摘要: 跨库 批量更新 UPDATE a.table_1upINNER JOIN ( SELECT user_id, user_org_company_id, FROM b.table_2) AS tmp ON up.user_id = tmp.user_idSET up.company_id = tmp.
阅读全文
posted @ 2019-09-02 11:57 brady-wang
阅读(1413)
评论(0)
推荐(0)
2019年8月27日
centos 6升级 GCC 到4.8
摘要: centos 6升级 GCC 到4.8 安装最新版本的swoole 提示 pecl install swolle ... GCC 4.8 or later required. 首先想到的时候yum更新gcc yum install gcc Package gcc-4.4.7-23.el6.x86_6
阅读全文
posted @ 2019-08-27 10:38 brady-wang
阅读(717)
评论(0)
推荐(0)
2019年8月20日
排序4 -- 插入排序
摘要: <?php$arr = [4,3,2,1];function insertSort($arr){ //获取需要排序的长度 $length=count($arr); //假定第一个为有序的,所以从$i开始比较 for ($i=1; $i <$length ; $i++) { $tmp=$arr[$i]
阅读全文
posted @ 2019-08-20 16:19 brady-wang
阅读(253)
评论(0)
推荐(0)
排序3--选择排序
摘要: <?php //选择排序 //原理:每一次从待排序的数据元素中选出最小(或最大)的一个元素,存放在序列的起始位置,直到全部待排序的数据元素排完. $arr = array_rand(range(1, 100), 10); shuffle($arr); $arr = [7,6,5,4,3,2,1]; function select_sort($arr) { $len = count($arr); f
阅读全文
posted @ 2019-08-20 15:18 brady-wang
阅读(246)
评论(0)
推荐(0)
排序2--鸡尾酒排序
摘要: $arr[$i + 1]) { $t = $arr[$i]; $arr[$i] = $arr[$i + 1]; $arr[$i + 1] = $t; } } $right--; // 右边界缩小 for ($i = $right; $i > $left...
阅读全文
posted @ 2019-08-20 14:28 brady-wang
阅读(378)
评论(0)
推荐(0)
php排序
摘要: /* * php 四种排序算法的时间与内置的sort排序比较 * 3000个元素,四种算法的排序所用的时间比较 * 冒泡排序 857.98192024231ms * 选择排序 903.74493598938ms * 插入排序 296.8270778656ms * 快速排序 15.6078338623
阅读全文
posted @ 2019-08-20 14:17 brady-wang
阅读(318)
评论(0)
推荐(0)
2019年8月19日
排序1--冒泡排序
摘要: python https://www.cnblogs.com/jingmoxukong/p/4302718.html https://cuijiahua.com/blog/2017/12/algorithm_1.html
阅读全文
posted @ 2019-08-19 15:22 brady-wang
阅读(215)
评论(0)
推荐(0)
2019年8月15日
页面使用element-tree
摘要: 树控件测试 {{ message }}
阅读全文
posted @ 2019-08-15 16:25 brady-wang
阅读(539)
评论(0)
推荐(0)
2019年8月12日
nohup
摘要: nohup nohup 命令运行由 Command参数和任何相关的 Arg参数指定的命令,忽略所有挂断(SIGHUP)信号。在注销后使用 nohup 命令运行后台中的程序。要运行后台中的 nohup 命令,添加 & ( 表示“and”的符号)到命令的尾部。 nohup 是 no hang up 的缩
阅读全文
posted @ 2019-08-12 18:03 brady-wang
阅读(22723)
评论(1)
推荐(1)
上一页
1
···
98
99
100
101
102
103
104
105
106
···
198
下一页
公告