摘要: wxWidgets是个非常优秀的跨平台库,既可以用来开发GUI程序,也可以用来开发事件驱动的无GUI服务器程序。wxWidgets的事件处理机制为线程间通信提供了又一个便利的方法。下面是具体步骤:1、头文件中定义事件ID或直接使用wxID_ANY;#define ID_MY_THREAD_EVENT2、主线程中定义事件处理函数;void OnMyThreadEvent(wxThreadEvent& event);3、事件关联表中增加事件与处理函数的关联;BEGIN_EVENT_TABLE(MyApp,wxApp) EVT_THREAD(ID_MY_THREAD_EVENT, MyApp 阅读全文
posted @ 2011-03-22 17:49 ALLI Look for Lost Idylls 阅读(2407) 评论(0) 推荐(0) 编辑
摘要: Thanks tohttp://support.microsoft.com/kb/314053andhttp://www.cnblogs.com/eaglet/archive/2010/09/21/1832233.htmlWindows的所有 TCP/IP 参数都是注册表值,这些值分别位于以下两个不同的子项下: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\ServicesTcpip\ParametersTcpip\Parameters\Interfaces\适配器 ID注意:适配器 ID 是 TCP/IP 绑定到的网络适配器。要确定适配器 I 阅读全文
posted @ 2011-01-15 11:08 ALLI Look for Lost Idylls 阅读(618) 评论(0) 推荐(0) 编辑
摘要: Step 1[代码]add the following lines[代码]Step 2[代码]add the following line[代码]Step 3[代码]Thanks tohttp://blog.urbanairship.com/blog/2010/09/29/linux-kernel-tuning-for-c500k/ 阅读全文
posted @ 2011-01-14 18:27 ALLI Look for Lost Idylls 阅读(342) 评论(0) 推荐(0) 编辑
摘要: column1column2column3column4column5column6columnxvalue1value2value3value4value5value6{"k1":v1,"k2":v2,"k3":v3} 阅读全文
posted @ 2011-01-13 20:28 ALLI Look for Lost Idylls 阅读(535) 评论(0) 推荐(0) 编辑
摘要: LinuxTCP连接数修改Thankshttp://zbszone.javaeye.com/blog/826199一、文件数限制修改(1)vi/etc/security/limits.conf*soft nofile 10240*hard nofile 10240(2) vi/etc/pam.d/loginsession required /lib/security/pam_limits.so二、网络端口限制修改(1) vi /etc/rc.d/rc.local/sbin/modprobe ip_conntrack#加载ip_contrack模块# /sbin/sysctl –p# 使/etc 阅读全文
posted @ 2011-01-11 10:10 ALLI Look for Lost Idylls 阅读(5876) 评论(0) 推荐(0) 编辑
摘要: 感谢http://www.jobbole.com/entry.php/399-%E5%A6%82%E4%BD%95%E9%9D%A2%E8%AF%95%E7%A8%8B%E5%BA%8F%E5%91%98%EF%BC%9F如果你要面试一个程序员,应该问他什么问题?  有人在Hacker News的讨论区里,请求指点,怎么才能在面试中发现合格的人。众人纷纷出主意,有很多高质量的回帖,我觉得挺有启发,就整理出了下面这篇文章。  一、提问之前的准备  首先,最重要的是,你自己一开始就应该想清楚:1. 需要新员工完成什么样的任务?2. 怎样的人能完成这样的任务?3. 哪些途径和方法可以发现这样的人?  阅读全文
posted @ 2010-12-21 20:49 ALLI Look for Lost Idylls 阅读(442) 评论(0) 推荐(0) 编辑
摘要: English XML version:http://www.google.com/ig/api?weather=beijinghttp://www.google.com/ig/api?weather=,,,30670000,104019996中文XML天气信息:http://www.google.com/ig/api?hl=zh-cn&weather=beijinghttp://www.... 阅读全文
posted @ 2010-11-28 09:35 ALLI Look for Lost Idylls 阅读(3139) 评论(0) 推荐(1) 编辑
摘要: find -name .svn -print0 | xargs -0 rm -rf 阅读全文
posted @ 2010-11-26 09:33 ALLI Look for Lost Idylls 阅读(166) 评论(0) 推荐(0) 编辑
摘要: /*********************************************************************\ * * * epolys.js b... 阅读全文
posted @ 2010-11-12 11:49 ALLI Look for Lost Idylls 阅读(2535) 评论(0) 推荐(0) 编辑
摘要: /* * Hash Tables in Javascript * Thanks http://www.mojavelinux.com/articles/javascript_hashes.html */ function Hash() { this.length = 0; this.items = new Array(); for (var i = 0; i < arguments.l... 阅读全文
posted @ 2010-11-03 20:10 ALLI Look for Lost Idylls 阅读(282) 评论(0) 推荐(0) 编辑