会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
自由出土文物
春困秋乏冬无力,夏日炎炎正好眠
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
25
26
27
28
29
30
31
32
33
···
45
下一页
2014年9月4日
ios生成自签名证书,实现web下载安装app
摘要: 抄自http://beyondvincent.com/blog/2014/03/17/five-tips-for-using-self-signed-ssl-certificates-with-ios/ios7以后,inhouse安装需要ssl了,一般用商用的,不想用商用的,就自己弄一个,通过ope...
阅读全文
posted @ 2014-09-04 13:59 自由出土文物
阅读(2541)
评论(0)
推荐(0)
2014年9月3日
golang的https服务器
摘要: 先生成ssl证书openssl genrsa -out key.pem 2048openssl req -new -x509 -key key.pem -out cert.pem -days 1095然后,大概这样package mainimport ( "log" "net/http"...
阅读全文
posted @ 2014-09-03 15:17 自由出土文物
阅读(2604)
评论(0)
推荐(0)
2014年8月30日
erlang入门之编译和运行
摘要: 测试erlang脚本如下-module(empty).-author("mmc").%% API-export([test/1,test/0]).test()-> io:format("no arg~n").test(X)-> io:format("~p~n",[X]).编译,一种是进入erl,...
阅读全文
posted @ 2014-08-30 12:31 自由出土文物
阅读(316)
评论(0)
推荐(0)
2014年8月19日
mac下的virtualbox启动失败处理
摘要: 不知从哪个版本开始,mac下的virtualbox建立vm以后,启动就提示什么驱动没有加载,google后,解决如下sudo /Library/Application\ Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh restart
阅读全文
posted @ 2014-08-19 11:51 自由出土文物
阅读(1831)
评论(0)
推荐(0)
2014年8月2日
golang回调函数的例子
摘要: package mainimport "fmt"type TestStruct struct {}func (object *TestStruct) test(msg string) { fmt.Println(msg)}type CallBack func(msg string)func c...
阅读全文
posted @ 2014-08-02 21:50 自由出土文物
阅读(1241)
评论(0)
推荐(0)
2014年7月31日
cocos2d-x的popScene的动画效果
摘要: 找到CCDirector.h,找到void popScene();在下面加上一段类模板template void popSceneWithTransition(float t){ CCASSERT(_runningScene != nullptr, "running scene should ...
阅读全文
posted @ 2014-07-31 20:22 自由出土文物
阅读(1631)
评论(0)
推荐(1)
2014年7月18日
ssdb的golang驱动的同步问题
摘要: 如果数据库连接只有一个,在某个时间点(指的是某个及其短的时间内),多个读写的话,会出问题,修改了下,加了个mutex,算是解决了此问题,贴下备忘var mutex sync.Mutexfunc (c *Client) Do(args ...interface{}) ([]string, error)...
阅读全文
posted @ 2014-07-18 22:07 自由出土文物
阅读(895)
评论(3)
推荐(0)
2014年7月11日
贴一段demo代码,演示channel之间的同步
摘要: package mainimport ( "fmt" "time")func deskGoRoutine(index int, userChannel chan string, deskChannel chan string) { for { fmt.Println(...
阅读全文
posted @ 2014-07-11 12:00 自由出土文物
阅读(311)
评论(0)
推荐(0)
2014年7月8日
golang的指针到string,string到指针的转换
摘要: 由于某个需求,需要如题的转换,废话不多说,直接贴代码了,其实挺丑了,备用了func (this *Server) socketParserHandler(client *genTcpServer.Client, fullData []byte) { fmt.Println("original ...
阅读全文
posted @ 2014-07-08 19:10 自由出土文物
阅读(7276)
评论(0)
推荐(0)
2014年7月1日
golang的最简单的文件浏览web服务器
摘要: 网上看到的,记录下,备用package mainimport ( "net/http")func main() { http.Handle("/", http.FileServer(http.Dir("./"))) http.ListenAndServe(":8080", nil)...
阅读全文
posted @ 2014-07-01 12:37 自由出土文物
阅读(1419)
评论(0)
推荐(0)
上一页
1
···
25
26
27
28
29
30
31
32
33
···
45
下一页
公告