![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Erlang
zgl_dm
这个作者很懒,什么都没留下…
展开
-
How to Eliminate Mnesia Overload Events
If you’re using mnesia disc_copies tables and doing a lot of writes all at once, you’ve probably run into the following message=ERROR REPORT==== 10-Dec-2008::18:07:19 ===Mnesia(node@host): ** WARNING ** Mnesia is overloaded: {dump_log, write_threshold}Th转载 2010-10-28 13:53:00 · 608 阅读 · 0 评论 -
erlang 安装
在安装过程中需要安装好几个工具包,每次重装都记不清楚。解决方案:apt-get build-dep erlang一次性全部安装上,确实很方便。原创 2011-07-20 14:55:48 · 924 阅读 · 0 评论 -
How to Eliminate Mnesia Overload Events
<br />If you're using mnesia disc_copies tables and doing a lot of writes all at once, you've probably run into the following message=ERROR REPORT==== 10-Dec-2008::18:07:19 ===<br />Mnesia(node@host): ** WARNING ** Mnesia is overloaded: {dump_log, write_转载 2011-05-04 19:17:00 · 765 阅读 · 0 评论 -
关于lists:member 与 sets:is_element 性能比较
<br />1> L = lists:seq(1,100000).[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22, 23,24,25,26,27,28,29|...]2> Fun1 = fun (X) -> lists:member(X, L) end.#Fun<erl_eval.6.13229925>3> Fun2 = fun (X) -> S = sets:from_list(L), sets:is_element(原创 2011-04-19 15:07:00 · 1348 阅读 · 0 评论 -
mochiweb_cookies
mochiweb_cookies<br /> (mochiweb)HTTP Cookie parsing and generating (RFC 2109, RFC 2965).<br />HTTP Cookie parsing and generating (RFC 2109, RFC 2965).DATA TYPESheader() = {Name::string(), Value::string()}proplist() = [{Key::string(), Value::string()}]转载 2011-04-14 15:28:00 · 613 阅读 · 0 评论 -
Extracting Unique Elements From a List
Problem You want to eliminate duplicate values from a list. Solution There are several possible solutions for this problem. Here are some of these: Using lists:usortThe lists module contains a wealth of list processing functionality. One possible so转载 2011-05-11 13:43:00 · 661 阅读 · 0 评论 -
erlang when 用法
<br /> 1 -module(when_test).<br /> 2 -export([test/1]). <br /> 3 <br /> 4 test(Content)-><br /> 5 Result = change(Con原创 2011-03-16 13:51:00 · 3795 阅读 · 0 评论 -
Date time manipulation howtos
<br />Erlang offers calendar module which provides computation of date, time and number of date time conversion functions. For more details, please refer to documentation for this module<br />Here are some examples:Data types<br /><br />Date = {Y转载 2010-11-25 18:16:00 · 564 阅读 · 0 评论 -
How to spawn a process
Erlang is all about processes and their communications. To create a process, we use BIF spawn/3 which returns the new process PID-module(spawn_process).-export([do_spawn/0, call/2]). call(Arg1, Arg2) -> io:format("~p ~p~n", [Arg1, Arg2]).转载 2010-11-26 11:43:00 · 936 阅读 · 0 评论 -
erlang——timer
timerMODULEtimerMODULE SUMMARYTimer FunctionsDESCRIPTIONThis module provides useful functions related to time. Unless otherwise stated, time is always measured in milliseconds. All timer functions return immediately, regardless of work car转载 2010-11-22 12:00:00 · 2478 阅读 · 0 评论 -
Module mochijson2
Module mochijson2DescriptionData TypesFunction IndexFunction DetailsYet another JSON (RFC 4627) library for Erlang.Copyright � 2007 Mochi Media, Inc.Authors: Bob Ippolito (bob@mochimedia.com).DescriptionYet another JSON (RFC 4627) library for Erlang.转载 2010-11-10 12:21:00 · 2743 阅读 · 0 评论 -
Erlang if 实例
<br />下面实现一个判断奇偶性的函数,代码如下:<br /> <br /> <br />-module(jiou).-compile(export_all).test(Num) -> if Num rem 2 == 0 -> io:format("ou shu~n"); true -> io:format("ji shu~n") end.原创 2010-11-05 17:17:00 · 1653 阅读 · 0 评论 -
Google ProtoBuf 支持N+1种语言
Action Script: http://code.google.com/p/protobuf-actionscript3/Action Script: http://code.google.com/p/protobuf-actionscript/Action Script: http://code.google.com/p/protocol-buffers-actionscript/C: http://code.google.com/p/protobuf-c/C#: http://github.com/原创 2010-11-02 15:34:00 · 3285 阅读 · 0 评论 -
实战 MochiWeb
1. 安装erlangsudo apt-get install erlang2. check erlang mochiwebsvn checkout http://mochiweb.googlecode.com/svn/trunk/ mochiweb-read-only好象已经迁移到这里了。git最近比较火。http://github.com/mochi/mochiweblanhui@lanhui-desktop:~/mochiweb-read-only$ lsdeps ebin转载 2010-11-01 18:20:00 · 2824 阅读 · 0 评论 -
erlang string 模块
erlang的string模块string翻译:gashero目录1 导出函数1.1 len(String) -> Length1.2 equal(String1,String2) -> bool()1.3 concat(String1,String2) -> String31.4 chr(String,Character) -> Index1.5 str(String,SubString) -> Index1.6 span(String,Chars) -> Length1.转载 2010-10-26 16:47:00 · 2394 阅读 · 0 评论 -
缺少ncurses包的解决办法
安装Erlang时出现如下问题:checking for kstat_open in -lkstat... nochecking for tgetent in -lncurses... nochecking for tgetent in -lcurses... nochecking for tgetent in -ltermcap... nochecking for tgete转载 2012-09-27 19:22:08 · 29727 阅读 · 2 评论