会动的耳朵  

2014年1月27日

摘要: 2012年4月和老婆大人Grace认识后,我们一直考虑骑行回老家(北京至邯郸)。当然,每次她这样提议,我只是附和。400多公里,我怕她累得生病,得不偿失,仅仅是为了享受旅途的释然畅爽。因为最近几年北京的空气越来越差,考虑生个小baby,我们决定2014年离开北京,骑行回家......在网上查看了老驴友们的经验,所以我决定先制定一个计划,哪怕最后我们没有出发,但是起码我们行动起来了。(其实我不想给自己泄气的,所以这段文字不能让Grace看到)远途骑行首要是体力,其次是装备(自行车和修理设备),再者是食物和水,最后是住宿。我想听着许巍的歌开始,无奈Grace Lee不喜欢摇滚,咱就偷偷听吧今天是腊 阅读全文
posted @ 2014-01-27 11:27 会动的耳朵 阅读(129) 评论(0) 推荐(0) 编辑

2014年1月22日

摘要: go get code.google.com/p/freetype-go/freetype安装freetype报错:package code.google.com/p/freetype-go/freetype: exec: "hg": executable file not found in $PATH参考这个:https://code.google.com/p/go-wiki/wiki/GoGetToolsyuminstall'*mercurial*'还碰见了一个问题,就是这个https不可访问,大概可能也许是因为需要你FQpackage code.goo 阅读全文
posted @ 2014-01-22 17:08 会动的耳朵 阅读(1035) 评论(0) 推荐(0) 编辑
 
摘要: influxdbgolang写的,http://influxdb.org/,有sandbox,支持time series,貌似还没有哪个产品在用,没有评估报告。个人看好它hyperdexhttp://hyperdex.org/key-value存储,支持consistency, acid transactions。这个也是顶还有一个mysql的percona server是对innodb的升级,我们在尝试把数据迁移到这个上面 阅读全文
posted @ 2014-01-22 14:07 会动的耳朵 阅读(213) 评论(0) 推荐(0) 编辑

2014年1月17日

摘要: import ( fm "fmt" "net/url" rt "runtime")func main() { var urlStr string = "http://baidu.com/index.php/?abc=1_羽毛" l, err := url.ParseQuery(urlStr) fm.Println(l, err) l2, err2 := url.ParseRequestURI(urlStr) fm.Println(l2, err2) l3, err3 := url.Parse(urlStr) fm. 阅读全文
posted @ 2014-01-17 10:51 会动的耳朵 阅读(16905) 评论(0) 推荐(0) 编辑

2014年1月9日

摘要: header('HTTP/1.1 301 Moved Permanently');header('Location:'. $url); 阅读全文
posted @ 2014-01-09 09:43 会动的耳朵 阅读(126) 评论(0) 推荐(0) 编辑

2014年1月8日

摘要: 减小go生成文件大小 go build -ldflags ”-s -w”go build -ldflags ”-H windowsgui -s -w”没有测试...... 阅读全文
posted @ 2014-01-08 15:19 会动的耳朵 阅读(386) 评论(0) 推荐(0) 编辑

2013年12月17日

摘要: 1. git安装2. 着重记录下如何配置才能正常使用github 2.1 生成ssh-rsa ssh-keygen-trsa-C "your email" 然后在~/.ssh/生成id_rsa.pub和id_rsa两个文件,(如果这俩已经存在,建议备份在其他目录先) 2.2 配置github帐号 git config --global user.name "abc" git config --global user.email "abc@gmail.com" 配置github上的SSH keys(account setting) 将i 阅读全文
posted @ 2013-12-17 12:06 会动的耳朵 阅读(309) 评论(0) 推荐(0) 编辑
 
摘要: 错误代码如下:error: The requested URL returned error: 403 whileaccessing https://github.com/xx-name/sss-app.git/info/refsfatal: HTTP request failed解决方法:1:通过git clone到本地后,在.git/config文件中可以看到该项目路径信息。打开此文件再把项目地址修改为 ssh就Ok了。2:命令: git remote set-url origin ssh://但是 修改后,执行git push -u origin master报:Warning: Per 阅读全文
posted @ 2013-12-17 10:26 会动的耳朵 阅读(360) 评论(0) 推荐(0) 编辑

2013年12月13日

摘要: 下载GoMysql后才发现Makefile中包含的路径有问题,不敢乱改,还是先查查吧好吧,直接cp到goroot/src/pkg即可是不是其他的也该这么安装,邪恶~~~经过实验,还是这个有效参考 :http://www.shenyisyn.org/2013/06/21/golang-3.htmhttps://github.com/go-sql-driver/mysql使用git在goroot/src/pkg/ 执行git clone git://github.com/go-sql-driver/mysql直接可以使用import ( "mysql")demo 1 packa 阅读全文
posted @ 2013-12-13 17:59 会动的耳朵 阅读(1128) 评论(0) 推荐(0) 编辑
 
摘要: " clear before set runtimepathfiletype offfiletype plugin offfiletype plugin indent offsyntax offset runtimepath+=$GOROOT/misc/vimfiletype onfiletype plugin onfiletype plugin indent onsyntax on 阅读全文
posted @ 2013-12-13 17:53 会动的耳朵 阅读(357) 评论(0) 推荐(0) 编辑