会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
hhao321
博客园
首页
新随笔
联系
管理
订阅
随笔- 13 文章- 0 评论- 0 阅读-
7036
2019年8月29日
[golang] go micro 微服务部署
摘要: 1、安装Service Discovery 默认情况请安装consul(下载地址:https://www.consul.io/downloads.html),下载对应的系统下的文件,将可执行文件放入GOPATH下面的bin目录下2、安装Protobuf 安装protoc (下载地址:https://
阅读全文
posted @ 2019-08-29 13:30 hhao321
阅读(1786)
评论(0)
推荐(0)
2018年10月31日
[swoole]swoole学习笔记
摘要: 1、swoole安装方式,手动安装,自动安装 手动安装:https://github.com/swoole/swoole-src/releases,http://pecl.php.net/package/swoole,http://git.oschina.net/swoole/swoole,随便从那
阅读全文
posted @ 2018-10-31 10:04 hhao321
阅读(655)
评论(0)
推荐(0)
2018年8月2日
[linux]linux下安装PHP的memcache扩展
摘要: 首先值得说明的是不管是php-memcache扩展,还是php-memcached扩展,这个仅仅是扩展方式不一样,memcache 扩展是PHP写的一个连接memcached服务的扩展,而memcached扩展是memcached服务商推出的官方连接方式。 安装php-memcache 扩展 1、下
阅读全文
posted @ 2018-08-02 16:29 hhao321
阅读(158)
评论(0)
推荐(0)
2018年3月6日
[mongodb]查找笔记
摘要: //db.project.find({content:'',es_update:'no',new_import:'1'});//db.project.distinct('wj_source_type');//db.project.find({source:'tpm',new_import:'1',f
阅读全文
posted @ 2018-03-06 08:59 hhao321
阅读(85)
评论(0)
推荐(0)
[elasticsearch]ES迁移笔记
摘要: ES在更改分词器或更改已有mapping结构后需要重新重新索引,当然复制也是一样的,相当于重新生成索引信息 //es的head插件地址:http://localhost:9200/_plugin/head/ //新建索引PUT /my_index_new{//此处mapping复制的时候可以复制已有
阅读全文
posted @ 2018-03-06 08:57 hhao321
阅读(320)
评论(0)
推荐(0)
2018年3月1日
[lavarel]执行原生sql,与框架内置方法查询
摘要: $where = TranslatorOnline::queryFormat($request);$rows = TranslatorOnline::searchList($where,'a.*,b.iol_code,b.nickname,b.true_name,b.mother_tongue,b.
阅读全文
posted @ 2018-03-01 20:54 hhao321
阅读(275)
评论(0)
推荐(0)
2018年2月13日
[mysql]匹配是否包含中文,英文
摘要: 匹配是否包含中文 1、正则匹配 HEX(phone) REGEXP 'e[4-9][0-9a-f]{4}' 2、长度对比,当字符集为UTF-8,并且字符为中文时,length() 和 char_length() 两个方法返回的结果是不相同的 length(col)!=char_length(col)
阅读全文
posted @ 2018-02-13 15:51 hhao321
阅读(1616)
评论(0)
推荐(0)
2018年2月11日
[PHP]Phpexcel导入时间格式数据处理
摘要: excel时间格式得到的是一串数字, //转换excel日期,date是数字private function excelTime($date, $time = false) { if(is_numeric($date)){ if(function_exists('GregorianToJD')){
阅读全文
posted @ 2018-02-11 15:14 hhao321
阅读(931)
评论(0)
推荐(0)
[PHP]全角字符半角字符相互转换
摘要: /** * 将unicode转换成字符 * @param int $unicode * @return string UTF-8字符 **/ function unicode2Char($unicode){ if($unicode < 128) return chr($unicode); if($u
阅读全文
posted @ 2018-02-11 13:26 hhao321
阅读(445)
评论(0)
推荐(0)
[PHP]emoji字符串处理
摘要: 1、修改数据库的字符支持,utf8==>utf8mb4 2、匹配出emoji表情,替换与还原 /** * 表情转换 更新到ios9.2涵盖编码范围 * @param $str * @return mixed */ public static function emoji_to_html($str)
阅读全文
posted @ 2018-02-11 11:05 hhao321
阅读(269)
评论(0)
推荐(0)
下一页
公告
昵称:
hhao321
园龄:
7年5个月
粉丝:
0
关注:
0
<
2025年7月
>
日
一
二
三
四
五
六
29
30
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
6
7
8
9
搜索
常用链接
我的随笔
我的评论
我的参与
最新评论
我的标签
更多链接
我的标签
[PHP]
(3)
swoole
(1)
php
(1)
linux
(1)
JS
(1)
[mysql]
(1)
[mongodb]
(1)
[linux]
(1)
[lavarel]
(1)
[golang]
(1)
更多
随笔档案
2019年8月(1)
2018年10月(1)
2018年8月(1)
2018年3月(3)
2018年2月(5)
2018年1月(2)
阅读排行榜
1. [golang] go micro 微服务部署(1786)
2. [mysql]匹配是否包含中文,英文(1616)
3. [PHP]Phpexcel导入时间格式数据处理(931)
4. [swoole]swoole学习笔记(655)
5. [PHP]全角字符半角字符相互转换(445)
点击右上角即可分享