自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

三少GG

解决一些遇到的小麻烦

  • 博客(811)
  • 资源 (5)
  • 收藏
  • 关注

翻译 Mysql报错:Your password has expired. To log in

https://stackoverflow.com/questions/33387879/mysql-password-expired-cant-connectMySQL password expiryResetting the password will only solve the problem temporarily. From MySQL 5.7.4 to 5.7.10 (...

2019-12-27 18:29:26 1229

原创 /run/udev/data 磁盘满

临时办法:https://groups.google.com/forum/m/#!topic/nomad-tool/6L6QbL6QzY4 I've run 'udevadm info --cleanup-db' which has resolved the issue.  未查明具体原因。 

2019-01-03 20:07:51 2174

原创 golang map并发读写

对应报错:fatal error: concurrent map writesfatal error: concurrent map read and map writehttps://wrfly.kfd.me/posts/read-and-write-in-high-concurrency/http://colobu.com/2017/07/11/dive-into-sync-Map/https...

2018-07-11 21:06:46 1513

原创 docker "No ElasticSearch Node Available"

原因: https://github.com/olivere/elastic/issues/312外网访问的解决办法: https://github.com/olivere/elastic/wiki/Docker其余尝试(不太妥当):Automatically set `network.publish_host` during startuphttps://github.com/docker-li...

2018-06-27 11:28:27 3219

原创 ElasticSearch Web GUI配置

一. ElasticHQhttps://github.com/ElasticHQ/elasticsearch-HQError message was:- Unable to Connect to Server! Received Status Code: 0. A status code of 0, could mean the host is unreachable or nothing is ...

2018-06-18 19:34:59 5981

原创 elasticsearch docker安装

必看:https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.htmlhttp://www.xiaozhugrape.com/2018/03/29/elasticsearch%E6%9C%AC%E5%9C%B0%E5%AE%89%E8%A3%85docker%E5%AE%89%E8%A3%85/1. 在配置阶段:...

2018-06-17 16:08:01 3674 1

原创 蓝屏0x0000007B

基础原因:蓝屏停机码7B的出错案列比较多,这是一个和硬盘有关的故障,所以只要从这方面去逐一排障即可https://jingyan.baidu.com/article/c14654139672b90bfcfc4ce1.htmlstop:OXOOOOOO7B(硬盘蓝屏)蓝屏故障:1.硬盘随着新旧主板的更换蓝屏          2.标准IDE和AHCI控制器没有安装驱动3.磁盘有错误,文件目录损坏4....

2018-05-17 10:48:13 10203

原创 unicode编码

unicode一览表https://apps.timwhitlock.info/emoji/tables/unicode关于编码:必看  https://zhuanlan.zhihu.com/p/27827951

2017-12-31 13:17:36 842

转载 mysql存储表情微信昵称

1,去修改表字符集utf8mb4:ALTER TABLE UGC_REVIEW_CONTENT  CHARSET=utf8mb4 COMMENT='晒单/推荐的评论内容';执行完后,再在手机端的app测试,依然报同样的错误。2,再去修改数据库的字符集utf8mb4: vim my.cnfinit-connect='SET NAMES utf8mb4'characte

2017-10-12 10:51:03 3349

原创 重试机制

http://docs.aws.amazon.com/general/latest/gr/api-retries.htmlError Retries and Exponential Backoff in AWSNumerous components on a network, such as DNS servers, switches, load balancers, an

2017-08-06 14:25:23 1673

原创 grpc类型与struct的转换

https://www.reddit.com/r/golang/comments/4p9i51/looking_for_a_reverse_protobuf_compiler_to/如何解决:1. 手动双向转换2. kubernates单向工具:https://github.com/kubernetes/kubernetes/tree/master/cmd/libs

2017-05-30 18:40:10 2989

原创 mongodb自增字段

创建一个自增的序列字段MongoDB使用所有文档中的顶层文档里的 _id 字段作为主键。 _id 必须是唯一的,并且总是有使用 unique constraint 的索引。然而,除了唯一约束外,你可以在你的集合中为 _id 字段使用任何值。这个教程介绍了为 _id 字段创建自增序列数字的两种方法,如下:使用计数集合乐观循环##########http://blo

2017-05-18 08:21:09 5441

原创 golang代码案例

1.网络mgonsqetcdconsul

2017-05-14 12:00:51 1675 1

原创 ip查询

(高精度但不提供API的 https://www.opengps.cn/Default.aspx)优先级:1. 百度 http://lbsyun.baidu.com/index.php?title=webapi/ip-api2.淘宝 http://ip.taobao.com/instructions.php提供完善的统计分析报表,省准确度超过99.8%,市准确度超过

2017-05-11 22:32:23 1253

转载 Mac OSX下Sublime Text配置使用ctags实现代码跳转

https://www.smslit.top/2015/11/14/macSTctags-Develop/配置ST的CTags插件需要配置一下CTags插件,更改一下默认配置,主要修改其中ctags目录,因为配置中没有写入ctags的目录。打开 菜单栏->Sublime Text->Preferences->Package Settings->CTags->Se

2017-05-07 16:34:42 4314

原创 Mac下 终端配置 iterm2+oh-my-zsh

1.Iterm22.Oh-my-zsh3.Fish4.fuck

2017-05-03 23:52:47 2871

转载 ruby入门

Ubuntu 通过 PPA 安装 Ruby最佳方法是通过 PPA 安装:sudo apt-add-repository ppa:brightbox/ruby-ngsudo apt-get updatesudo apt-get install ruby2.2 ruby2.2-devruby -vPPA 的优点是可以用 apt 统一更新,不用处理 PAT

2017-05-01 20:03:25 1200

转载 Maven入门

本文介绍下在Ubuntu上安装Apache的Maven包,我们有几种不同的安装方式,默认情况下, Apache Maven 3.0.5其实已经安装到你的Ubuntu系统下了 Maven安装到Ubuntu 14.x, 15.x系统去 $ sudo  apt-get install maven检测版本, $  mvn --versionApache Mave

2017-05-01 15:00:04 1049

原创 consul部署 docker篇

入门必看https://livewyer.io/blog/2015/02/05/service-discovery-docker-containers-using-consul-and-registrator/

2017-04-11 07:17:29 1929

转载 Mac多屏下焦点切换

Mac多显示器之间的焦点切换http://xuquan.me/blog/switch-multi-display.html多显示器之间的焦点切换非常麻烦,每次码代码时需要切换到浏览器查资料都需要用鼠标点外接的显示器,需要切换回来写代码时又要用鼠标点回来,作为一名高效(搞笑)的键盘党,这能忍???于是速度网上查找攻略,果然找到完美解决办法,如下:首先需要到

2017-04-03 15:43:25 16307 1

原创 couchbase + docker

官方docker文件:https://hub.docker.com/_/couchbase/单机集群测试:https://developer.couchbase.com/documentation/server/4.5/install/docker-deploy-multi-node-cluster.html

2017-03-19 17:47:55 1787

原创 etcd+confd

Confd适用于需要本地化文件配置的情景,比如动态获取配置后生成nginx配置文件。此时无法修改程序代码从而读取。其余情况,直接使用etcd即可http://www.tuicool.com/articles/BvAruif使用etcd+confd管理nginx配置

2017-03-03 16:37:15 1302

原创 etcd部署-docker篇

etcd discovery分为两种:自定义的discovery #利用一个已有的etcd集群来提供discovery服务来搭建一个新的etcd集群公共的discovery     #discovery.etcd.io这里我们使用公共的etcd discovery服务进行集群搭建:1:创建一个用于discovery的token(size=3 表示集群的大小)

2017-02-28 15:38:06 6226

原创 微信ios/Safari中的new Date()格式化坑

I suggest you use: new Date (year, month [, date [, hours [, minutes [, seconds [, ms ] ] ] ] ] )To split the string you could tryvar s = '2011-06-21T14:27:28.593Z';var a = s.split(/[^0-9]/);

2016-11-12 15:49:24 3875

原创 微信token server服务

解决方案:微信鉴权等作为单独的server,对外提供服务. 用grpc通信golang库: https://github.com/chanxuehong/wechat.v2/blob/master/mp/core/access_token_server.go   重写AccessTokenServer方案:https://cnodejs.org/topic/57b330b667

2016-10-15 16:25:41 2445

原创 vue缺点

https://github.com/RubyLouvre/avalon期待vue2的表现

2016-10-05 10:33:13 4647 1

原创 开源客服系统 ppmessage

1.  安装用 sudo2. sudo pip install PyMySQL 通过 pip list检查是否已安装。

2016-10-03 14:38:02 8086 2

原创 unity3d

1. 案例  非常棒的实践Unity3D手游开发实践http://www.jianshu.com/p/10693fee70a5

2016-09-28 18:02:23 1191

原创 react-redux-universal-hot-example错误

问题:  no suitable image foundERROR in dlopen(/Users/xxx/web/react-redux-universal-hot-example/node_modules/node-sass/vendor/darwin-x64-48/binding.node, 1): no suitable image found.  Did find:[0]

2016-09-16 19:40:00 1332

原创 boilerplate/starter kit/best practice

1. vue2. reacthttps://github.com/mxstbr/react-boilerplate3. react native4. angular (弃用)

2016-09-16 17:01:43 1115

原创 查看80端口占用

linux下如何查看80端口占用情况?是被哪个进程占用?如何终止等  查询端口是否被占用,被哪个进程占用有两种方式:1、netstat -anl | grep "80"2、sudo lsof -i:80  (首选)  终止进程的方式:kill pid

2016-09-11 17:36:21 1397

原创 Angular2学习指南

非常棒的视频学习:http://courses.angularclass.com/courses/angular-2-fundamentalsstarter-kit:babel:      https://github.com/blacksonic/angular2-babel-esnext-starterIf you're look

2016-09-11 08:23:08 903 1

原创 微信图片上传 invalid credential, access_token is invalid or not latest

这个问题可能是因为你部署的时候,起了多个进程,每个进程都去微信的服务器获取一次access_token,只有最后一个获取到的access_token才有效,比如,如果你用gunicorn去启django,并设置4个进程,那么你会发现,每上传4个图片可能只有一个成功,其它都失败。我就遇到这个问题了。access_token是公众号的全局唯一接口调用凭据,公众号调用各接口时都需使用access

2016-09-06 07:25:08 11204

原创 vue开发spa应用时 微信支付问题(尤其是ios)

临时解决办法: 两个都加上支付路径:http://example.com/#!/http://example.com/#!/orderhttps://blog.asaki.me/posts/chooseWXPay-fail/对着官方文档这句:“发起支付的页面目录必须与设置的精确匹配。”看了半个小时,我突然想到是不是URL hash生成的“/#!/目录”被微信

2016-09-05 10:49:22 12914 3

原创 [微信开发]invalid credential, access_token is invalid or not latest hint

查了好久,先发现下载到本地的文件size很小,只有100来字节,我以为只有头文件,老大说,你要么看看这文件的二进制流是什么,打开一看原来是一个error信息,是JSON字符串{"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest hint: [2HYQIa0031ge10] "}

2016-09-03 05:23:45 126245 1

原创 css动画

可惜没有源码:https://isux.tencent.com/css-animation-skills.html

2016-08-21 17:03:23 620

原创 设计师-css片段

关键词: css snippets /  css component / css generator组件:http://components.onsen.io/高级:50 Useful CSS Snippets Every Designer Should Have http://www.hongkiat.com/blog/css-snip

2016-08-21 00:49:50 722

原创 vue示例及优秀案例

完整的示例:https://auth0.com/blog/build-an-app-with-vuejs/

2016-08-18 22:27:08 53549 1

原创 vue 多页面配置

推荐做法:https://github.com/yaoyao1987/vue-cli-multipage参考资料:另一种写法http://cnu4.github.io/2016/03/21/Webpack-Vue-MultiplePage/

2016-08-09 19:14:50 9522

原创 设计师常用资源和工具

1. UIkithttp://ui-cloud.com/browse/2.图标库:http://www.iconfont.cn/collections?personal=13.十大字体资源网站集合:设计师必备http://www.8kvv.com/index.php/arc_298.html4.Tagul文字云工具使用攻略

2016-07-29 17:15:20 834

证件照蓝底换白底PS方法

简单的证件照底色更改:蓝底换白底PS方法

2013-07-07

MFC_combobox

MFC中使用combobox的一些方法.总结的比较全面,可做技术文档参考!

2012-04-04

hyren_20100507_slide.ppt

hog+svm+adaboost 相关知识普及

2011-03-30

CVPR2009_PedestrianDetection

CVPR2009中关于HOG特征,svm,adaboost,mplboost的 一点简要介绍

2011-03-30

MySql.Data.dll 6.2.1.0版

MySql.Data.dll 6.2.1.0版本 现在可以下到的一个地方要10个积分,很不地道 现在1分即可下载,而且是最新版本!

2011-01-04

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除