11 2014 档案

摘要:http://www.blogjava.net/yongboy/archive/2013/04/28/398558.html 阅读全文
posted @ 2014-11-27 15:50 自由出土文物 阅读(318) 评论(0) 推荐(0) 编辑
摘要:修改第15行# gem 'therubyracer', platforms: :ruby去掉注释执行 bundle install 阅读全文
posted @ 2014-11-26 15:30 自由出土文物 阅读(133) 评论(0) 推荐(0) 编辑
摘要:ruby用pgsql做orm的时候,需要安装ruby-pg库,默认编译安装会提示缺少xx头文件 max下,我用的傻瓜式pgsql.app debian下 阅读全文
posted @ 2014-11-26 15:15 自由出土文物 阅读(304) 评论(0) 推荐(0) 编辑
摘要:参考这里http://blog.sina.com.cn/s/blog_77cb45a70102v1ja.html用起来最直观的不同点simple_one_for_one需要手工start_child 阅读全文
posted @ 2014-11-17 20:29 自由出土文物 阅读(265) 评论(0) 推荐(0) 编辑
摘要:转载的这里http://www.cnblogs.com/liuweiccy/p/4622075.html1.简介 Erlang要编写高容错性、稳定性的系统,supervisor就是用来解决这一问题的核心思想。通过建立一颗监控树,来组织进程之间的关系,通过确定重启策略、子进程说明书等参数信息来确定佣... 阅读全文
posted @ 2014-11-17 18:42 自由出土文物 阅读(962) 评论(0) 推荐(0) 编辑
摘要:一个是缺少mysql的开发包sudo apt-get install libmysqld-dev还有一个报错如下debian ExecJS::RuntimeUnavailable: Could not find a JavaScript runtime. See https://github.com... 阅读全文
posted @ 2014-11-15 18:14 自由出土文物 阅读(140) 评论(0) 推荐(0) 编辑
摘要:默认使用rebar创建的项目没法使用observer,可以如下操作修改app.src{application, tcp_server, [ {description, ""}, {vsn, "0.1"}, {registered, []}, ... 阅读全文
posted @ 2014-11-12 15:55 自由出土文物 阅读(186) 评论(0) 推荐(0) 编辑
摘要:很多时候,我们的程序需要一些预定义的参数,比如上次说的tcp_server的例子一般参数有几种途径,具体参考这里http://blog.yufeng.info/archives/2852app里面,env字段,比如,我们的tcp_server_app.src{application, tcp_ser... 阅读全文
posted @ 2014-11-06 13:09 自由出土文物 阅读(258) 评论(0) 推荐(0) 编辑
摘要:改来改去,最后放github了,贴的也累,蛋疼还有一个tcp批量客户端的,也一起了大概思路是混合模式使用erlang:send_after添加recv的超时处理send在socket的option里面可以设置超时accept,connect都可以在调用的时候传参处理有一点提醒inet:setopts... 阅读全文
posted @ 2014-11-05 19:43 自由出土文物 阅读(265) 评论(0) 推荐(0) 编辑
摘要:资料http://blog.yufeng.info/archives/2832借鉴自从http://blog.csdn.net/mycwq/article/details/18306753测试例子erl -name aaa@127.0.0.1 -setcookie 111 -heart -env H... 阅读全文
posted @ 2014-11-02 12:36 自由出土文物 阅读(153) 评论(0) 推荐(0) 编辑
摘要:抄自http://veniceweb.googlecode.com/svn/trunk/public/daily_tech_doc/erlang_global_20091109.txt1. 介绍:这个全局服务是通过一个global_name_server的process来提供的,这个进程存在于每一个... 阅读全文
posted @ 2014-11-02 10:21 自由出土文物 阅读(381) 评论(0) 推荐(0) 编辑
摘要:抄袭自http://www.erlangsir.com/2011/04/14/python-%E5%92%8Cerlang%E4%BA%92%E9%80%9A%E4%BE%8B%E5%AD%90/town.erl-module(town).-behaviour(gen_server).-export... 阅读全文
posted @ 2014-11-02 09:36 自由出土文物 阅读(263) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示