对程序员来说,编程语言就是武器,但有的武器好用,有的武器不好用,有的武器甚至会杀了自己C语言是M1式加兰德步枪,很老但可靠。C++是双截棍,挥舞起来很强悍,很吸引人,但需要你多年的磨练来掌握,很多人希望改用别的武器。Perl语言是燃烧弹,曾经在战场上很有用,但现在很少人使用它。Java是M240通用...
分类:
编程语言 时间:
2014-09-03 11:01:16
阅读次数:
175
#!/usr/bin/python3import timeimport jsonimport reimport datetimeimport osimport uuidimport zipfileimport sysfrom configparser import RawConfigParserim...
分类:
编程语言 时间:
2014-09-03 10:57:36
阅读次数:
425
This week’s JavaScript newsRead this issue on the Web|Issue ArchiveJavaScript WeeklyIssue 185June 13, 2014Editor:Peter CooperFeaturedECMAScript 6 Sche...
分类:
编程语言 时间:
2014-09-03 10:57:16
阅读次数:
314
http://www.cnblogs.com/chio/archive/2007/06/11/779408.htmlhttp://www.cnblogs.com/SelaSelah/archive/2012/08/12/2634256.htmlhttp://www.cnblogs.com/Beyon...
分类:
编程语言 时间:
2014-09-03 10:56:56
阅读次数:
218
This week’s JavaScript newsRead this issue on the Web|Issue ArchiveJavaScript WeeklyIssue 182May 23, 2014Editor:Peter CooperFeaturedData-Binding Revol...
分类:
编程语言 时间:
2014-09-03 10:53:46
阅读次数:
418
This week’s JavaScript newsRead this issue on the Web|Issue ArchiveJavaScript WeeklyIssue 183May 30, 2014Editor:Peter CooperFeaturedIntroducing Socket...
分类:
编程语言 时间:
2014-09-03 10:53:06
阅读次数:
351
1. 定义一个MouseListener;2. 在mouseListener中增加mouseClicked事件;3. 由MouseEvent的getSource()获得List对象;4. 由List的getSelectedIndex()事件获得点击项的Index;5. 根据Index,用List的g...
分类:
编程语言 时间:
2014-09-03 10:51:56
阅读次数:
175
本来想找个“优雅”一点的方法,类似C#在调用C++方法时候的Invoke之类的。没找到,后来想想,其实也没必要,直接写就好了,算最优雅了吧。只是少了VS的Intelligence,有点不习惯罢了。事情起因:想写个带类似treeview功能的table,用的是jquey.load 方法,事件compl...
分类:
编程语言 时间:
2014-09-03 10:50:06
阅读次数:
467
This week’s JavaScript newsRead this issue on the Web|Issue ArchiveJavaScript WeeklyIssue 184June 6, 2014Editor:Peter CooperFeaturedCreate a TV Show T...
分类:
编程语言 时间:
2014-09-03 10:49:36
阅读次数:
393
One of the added bonuses of Dynamics CRM is its ability go where you go! With theSpring ’14 Wave Update, you can now download CRM to your tablet with ...
分类:
编程语言 时间:
2014-09-03 10:49:26
阅读次数:
300
项目地址:http://www.freeteam.cn/ 站内信 1.1.1?写信 从左侧管理菜单点击写信进入。 ? 输入收信人、标题、内容后点击发送按钮。 ? 1.1.2?收件箱 从左侧管理菜单点击收件箱进入。 ? 查看站内信 点击标题可以...
分类:
编程语言 时间:
2014-09-03 09:46:16
阅读次数:
301
记得前不久有一次面试被问到智能指针的实现,当时对智能指针只是听说但没有了解过,就乱七八糟地说了一遍。今天写了一遍智能指针,用了引用计数的概念。
主要思想就是,用一个新类对原本需要的类型进行了一层封装,这个新类中保存了原本的对象指针和一个引用计数的指针,之所以全部用指针来保存,就是因为会出现多个新类的对象引用到同一个指针,这样的话当我们修改原本对象的内容以及引用计数时,就很天然性地...
分类:
编程语言 时间:
2014-09-03 09:44:36
阅读次数:
221
JDK的动态代理public interface Subject { Object request(); void hello();}public class RealSubject implements Subject{ public RealSubject(){}; pu...
分类:
编程语言 时间:
2014-09-03 09:37:06
阅读次数:
215
Copy from :http://nijiaben.iteye.com/blog/1847212 在启动和运行期都可以加载agent代理,在启动的时候可通过-javaagent参数来执行agent代理,而在运行期就是通过attach这种机制动态load了。 如果在vm启动过程中加载agent,那....
分类:
编程语言 时间:
2014-09-03 09:36:46
阅读次数:
528
Copy from:http://tomee.apache.org/javaagent.htmlAdding a JavaAgentAdding a java agent is done via a vm parameter as follows:java -javaagent:openejb-ja...
分类:
编程语言 时间:
2014-09-03 09:36:16
阅读次数:
206
Copy from:http://dhruba.name/2010/02/07/creation-dynamic-loading-and-instrumentation-with-javaagents/Creation, dynamic loading and instrumentation wit...
分类:
编程语言 时间:
2014-09-03 09:35:46
阅读次数:
329