加载中
web应用编码处理

http urlencode: url只允许使用ascii字符集; 允许的字符包括:1,字符 "a" 到 "z"、"A" 到 "Z" 和 "0" 到 "9";2,特殊字符 "."、"-"、"*" 和 "_";。 其他任何字符需要urlcoding。 字符首...

spring integration fixed-delay的实现

如下配置: <int:service-activator input-channel="channel" ref="serviceActivator" method="execute"> <int:poller receive-timeout="1000" fixed-delay="600" task-executor="taskExecut...

mongodb写安全的相关配置

客户端: WriteConcern JOURNAL_SAFE 日志安全模式,每一次写操作需要等待日志被同步刷新(fsync_data, msync)到磁盘上,server才会返回给客户端成功写入的响应。 服务端:journalCommitIn...

Firefox,Chrome插件

Firefox: Firebug Inspect HTML and modify style and layout in real-time Use the most advanced JavaScript debugger available for any browser Accurately analyze network usage and...

使用callback实现自定义的erlang行为模式

之前erlang中自定义行为模式,需要导出behaviour_info函数,比如: -module(gen_foo). -export([behaviour_info/1]). behaviour_info(callbacks) -> [{foo, 0}, {bar, 1}, {baz, 2}]; b...

gen_server的enter_loop分析

在看ranch user guide的过程中,发现实现protocol handler需要使用特殊的gen_server形式,也就是enter_loop函数调用,事例代码如下: -module(echo_protocol). -behaviour(ranch_protocol). ...

erlang的类型规范type和opaque的区别

erlang中声明新类型,使用type和opaque关键字 type的使用 -module(module1). -export_type([my_tup2/0]). -type my_tup2() :: {my_tup2, atom(), atom()}. -module(module2). -export([ma...

2013/03/30 16:18
3.7K
蛋疼的erlang dialyzer

dialyzer:erlang的静态代码分析工具 -module(module1). -export([main/0]). -export_type([my_tup2/0]). -opaque my_tup2() :: {atom(), atom()}. -spec foo5(my_tup2())-> ok. foo5({_,...

tmux使用

tmux快捷键 tmux在会话中使用大量的快捷键来控制多个窗口、多个会话等。 Ctrl+b #激活控制台;此时以下按键生效 系统操作 ? #列出所有快捷键;按q返回 d #脱离当前会话;这样可以暂时返回She...

ETS Concurrency

Concurrency This module provides some limited support for concurrent access. All updates to single objects are guaranteed to be both atomic and isolated. This means that an upda...

解析Erlang日志组件lager的lager_transform模块

使用 lager 的时候,在编译应用的时候,需要加入选项 {parse_transform, lager_transform} erlc 会在编译你的项目源代码的时候,把生成的 abstract format forms 交给 lager_transform 模块的...

没有更多内容

加载失败,请刷新页面

返回顶部
顶部