
Erlang/OTP
code4now
wx号:code4now,欢迎一起讨论技术问题
展开
-
2015-1-11 【erlang】erl中的make -make 参数 以及 Emakefile
光棍节??????? :-) 学习erlang开发时,在某个Makefile中发现,在使用erl时使用 -make 选项,于是查找手册学习之,顺带了解了Emakefile 1.困惑的出现 erl -make 2.erts-5.9.3.1手册上关于erl的-make选项的解释 3.原来是等于调用了make模块all()函数原创 2015-01-11 16:29:55 · 2862 阅读 · 0 评论 -
2015-1-11 【erlang】Emakefile的{d,Macro} {d,Macro,Value}的小理解
先来段抄的,来自 http://blog.sina.com.cn/s/blog_96b8a15401012ezu.html Erlang有个类似Makefile的文件Emakefile负责编译erl程序, 格式是 Erlang代码 {Modules, Options}. 其中Modules是一个atom,或者是一个atom的列表。 这些atom 可以是一原创 2015-01-11 20:24:03 · 1146 阅读 · 0 评论 -
2015-1-22【erlang】Cowboy学习记录-关于Routing章节
官方文档:http://ninenines.eu/docs/en/cowboy/HEAD/guide/routing/ Cowboy does nothing by default. 翻译: (忽略。。。。) To make Cowboy useful, you need to map URLs to Erlang modules that will handle the requ原创 2015-01-22 10:13:17 · 1778 阅读 · 0 评论 -
2015-1-22【erlang】Cowboy学习记录-关于Constraints章节
Constraints Cowboy provides an optional constraints based validation feature when interacting with user input. Constraints are first used during routing. The router uses constraints to more accurate原创 2015-01-22 14:45:02 · 911 阅读 · 0 评论 -
2015-1-22【erlang】Cowboy学习记录-关于Static files章节
Static files Cowboy comes with a special handler built as a REST handler and designed specifically for serving static files. It is provided as a convenience and provides a quick solution for serving原创 2015-01-22 15:12:35 · 1470 阅读 · 0 评论 -
2015-2-26【erlang】 构造伪随机数,来测试需要随机数据的erlang代码
今天还在闷头写erlang 服务器程序的测试代码。在上线阶段加入,逆向分析逻辑代码,真是蛋疼,erlang,没有想象中的好掌握。嗯,不懂之处,要多问问老大,有时候,他们一句点醒,可以省下自己很多宝贵的生命,继而提高效率。 今天写erlang测试代码的时候,碰到了一个问题,就是某个源代码中的逻辑部分需要用到 random:uniform()/random:uniform(N),而随机数原创 2015-02-26 15:40:52 · 1152 阅读 · 0 评论