12 2013 档案
摘要:http://www.alicebot.org/about.html
阅读全文
摘要:本文共两部分:1.http://dev.tutsplus.com/tutorials/create-a-flash-login-system-using-php-and-mysql-part-1--active-51472.http://dev.tutsplus.com/tutorials/create-a-flash-login-system-using-php-and-mysql-e28093-part-2--active-5580
阅读全文
摘要:一、有些元素的默认情况下没有长度属性的,所以在其style内指定width属性是不会起作用的。应对措施:使其浮动,float:left/right,浮动的元素长度和宽带都默认是0的,需要指定长度和宽度。
阅读全文
摘要:第一行第二行第三行这个表格去掉了单元格之间的纵向分隔线第第第 一二三 列列列 这个表格去掉了单元格之间的横向分隔线 横线 竖线 都没了 ...
阅读全文
摘要:转自:http://www.neoease.com/apache-virtual-host/Windows 是市场占有率最高的 PC 操作系统, 也是很多人的开发环境. 其 VirtualHost 配置方法与 Linux 上有些差异, 以下方式适合原生 Apache, XAMPP 和 WAMP 套件...
阅读全文
摘要:1.exit(Pid,Reason)貌似不会引起gen_server的terminate()的执行。猜测依据:erlang编程指南的第十二章的272页终止 当从 回调函数中的一个收到stop结果时(init除外),或当捕获存在而发生了异常进程终止时,就会触发terminate(Reason,LoopData)回调函数。在terminate/2中,你可以取消在init/1中所做的事情。这将忽略它的返回值。
阅读全文
摘要:该写法源自:http://sg.8864.com/
阅读全文
摘要:转自:http://www.blogjava.net/sealyu/archive/2010/01/08/308640.html一般在将div居中显示时,使用css:divX{margin:0auto;}此css在firefox下是好的,但是在ie下不起作用,网上看到原因如下:margin: 0 auto 看看内容居中否如上调试结果,IE6.0是不居中的,当然解决的办法可以是对网页主体“”声明文本居中,即[ Copy ] [ Run ] [ Save ]margin: 0 auto 看看内容居中否(加了body文本居中)然后,单个div的CSS居中,非要扯上?于是在不采用“”声明文本居中的情况
阅读全文
摘要:https://github.com/rvirding/luerl
阅读全文
摘要:转自:http://www.cnblogs.com/futuredo/archive/2012/10/26/2737644.htmlFunctions1 Pattern matching模式匹配Pattern matching in function head and incaseandreceiveclauses are optimized by the compiler. With a few exceptions, there is nothing to gain by rearranging clauses.函数头以及case和receive子句中的模式匹配是经过编译器优化的。重新整理
阅读全文
摘要:转自:http://www.cnblogs.com/futuredo/archive/2012/10/19/2727204.htmlConstructing and matching binariesErlang/OTP R15B02In R12B, the most natural way to write binary construction and matching is now significantly faster than in earlier releases.在R12B版本中,构造和匹配二进制数据最自然的方式,相比较之前的版本其效率有了明显提高。To construct a
阅读全文
摘要:转自:http://www.cnblogs.com/futuredo/archive/2012/10/17/2726416.htmlCommon Caveats(常见注意事项)Erlang/OTP R15B02 Here we list a few modules and BIFs to watch out for, and not only from a performance point of view. 这里我们列出了需要注意的一些模块和内置函数,不仅仅是从性能的角度来看。 1 The timer module 定时器模块 Creating timers usingerlang...
阅读全文
摘要:转自:http://www.cnblogs.com/futuredo/archive/2012/10/16/2725770.htmlThe Eight Myths of Erlang PerformanceErlang/OTP R15B021 Myth: Funs are slow Fun函数很慢(这里应该是指Module:Function(Arguments)这种形式的函数,其中M,F,A可以是变量类型,值不是固定的) Yes, funs used to be slow. Very slow. Slower thanapply/3. Originally, funs were imple..
阅读全文
摘要:转自:http://www.cnblogs.com/futuredo/archive/2012/10/22/2734186.htmlList handling1 Creating a list创建一个列表Lists can only be built starting from the end and attaching list elements at the beginning. If you use the++operator like this列表只能从尾端开始创建,从头部加入元素。如果你像这样使用++操作符List1 ++ List2you will create a new lis
阅读全文
摘要:一、使用spawn(Fun)生成新的进程,在Fun中调用ets:new(Arg),在new()后能查到新的ets表的信息,但是在别的进程以及控制台都查不到该ets表的信息。原因:普通的spawn()生成的进程执行完任务后就会自动关闭了,由于进程的关闭由该进程创建的ets表也会随之关闭。
阅读全文
摘要:转自:http://blog.csdn.net/flyinmind/article/details/7740540项目中用到erlang,同时也用到mysql。惯例,google。但是,按照网上说的做,有些出入,行不通,需要自己摸索,下面记录我摸索的东西。1、下载erlang-mysql-driver;下载地址:https://github.com/dizzyd/erlang-mysql-driver2、解压到mysql目录,不罗嗦了;3、编译要先配置erlang路径,在/etc/profile中,将erlang的bin路径写入比如PATH=$PATH:/home/erlang/bin否则提示
阅读全文
摘要:一、show processlist:查询数据库连接的状态二、show slave status;三、数据库连接的超时时间show global variables like '%timeout%';set global wait_timeout=10;set global interactive_timeout=10;四、查询表的信息。## 获取数据库下的全部的表的名字。SELECT table_name FROM information_schema.tables WHERE table_schema='ygzj' and table_type ='
阅读全文
摘要:https://github.com/Eonblast/Emysqlhttps://github.com/denglf/erlang-db-driverhttps://github.com/dizzyd/erlang-mysql-driver(推荐)https://github.com/Eonbla...
阅读全文
摘要:1> list_to_binary(["select * from aa limit","1",",","97"]).>2> list_to_binary(["select * from aa limit",integer_to_list(1),",","97"]).>3> list_to_binary(["select * from aa limit",1,"97"]). >不理
阅读全文