摘要: 1. erlang:module_info().2. erlang:fun_info(fun erlang:fun_info/1). 阅读全文
posted @ 2014-05-27 20:08 alanxiong2003 阅读(104) 评论(0) 推荐(0)
摘要: 1. erl -sname bar -setcookie test2. net_adm:ping('foo@mmpub').3. Pid = spawn(fun() -> F1 = fun(F) -> receive Res -> io:format("rec msg: ~w \n",[Res]) ... 阅读全文
posted @ 2014-05-21 23:34 alanxiong2003 阅读(93) 评论(0) 推荐(0)
摘要: 看电视电影里面绑架的桥段,我一直有个想法,为什么银行不开个业务 --给贼用的密码!给贼用的密码 功能很简单,除了正常的取钱功能外,就是自动在后台报警;这样银行给用户就是两个密码, 一个我们现在用的密码,另一个是 用户给贼用的密码,一旦用户被绑架,用户可以告诉贼为贼准备的密码,贼如果用这个密码取钱,就... 阅读全文
posted @ 2014-04-13 23:22 alanxiong2003 阅读(135) 评论(0) 推荐(0)
摘要: 1. #script -t 2 >timing.log -a output.session ; 进行操作录制; exit是退出录制;2. 回放: scriptreplay timing.log output.session 阅读全文
posted @ 2014-03-27 11:01 alanxiong2003 阅读(251) 评论(0) 推荐(0)
摘要: 1.手写菜单代码,保存成文件 code.txt view_menu->Append(ID_CreateText, _("Create Text Control")); view_menu->Append(ID_CreateHTML, _("Create HTML Control")); view_menu->Append(ID_CreateTree, _("Create Tree")); view_menu->Append(ID_CreateGrid, _("Create Grid")); 阅读全文
posted @ 2014-03-20 01:06 alanxiong2003 阅读(216) 评论(0) 推荐(0)
摘要: 以下内容均是在codelite上使用:1. 在rc文件中添加图标文件 ,默认是在 win_resources.rc 里面,添加如下内容sample ICON "sample.ico"sample是名字,"sample.ico"是图标实际名字;2. 在 Frame的构造函数里面添加如下语句:SetIcon(wxICON(sample));编译后运行ok; 阅读全文
posted @ 2014-03-19 14:58 alanxiong2003 阅读(752) 评论(0) 推荐(0)