javaparserJava 1.5 Parser and ASTA Java 1.5 Parser with AST generation and visitor support. The AST records the source code structure, javadoc and comments. It is also possible to change the AST
javaparserJava 1.5 Parser and ASTA Java 1.5 Parser with AST generation and visitor support. The AST records the source code structure, javadoc and comments. It is also possible to change the AST
将Blog中的JiaThis也改成异步加载了,现在GA,PLUSONE和JiaThis都是异步加载了,代码如下:<script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-??????-1']); _gaq.p
在单元测试框架中经常会遇到不同运行环境的问题,那如何判断当前的单元测试是运行在eclipse中,或是ant中,还是在maven中呢? 在intl-test中是通过以下的方法来判断在哪个环境下运行单元测试的: private static boolean isMavenTest() { &nb
IntroductionA simple browser based hosts manager.DetailsUsage:wget http://hatter-source-code.googlecode.com/svn/trunk/hostsmanager/hostsmanager.jarjava -jar hostsmanager.jar [-Dport=NNN]Then ope
Copied from: http://code.google.com/p/hatter-source-code/wiki/jtopIntroductionThe java edition command of top.UsageGet jtop:wget http://hatter-source-code.googlecode.com/svn/trunk/jtop/jtop.jarUs
无废话,源代码如下,也许存在BUG请大家告诉我,谢谢(特点:可以运行时动态设置permits): package me.hatter.tools.taskprocess.util.concurrent; import java.util.concurrent.atomic.AtomicInteger; import java.util.concu
背景: 需要根据数据库的记录迁移大量图片,需求大致如下: 根据SQL的条件迁移图片: select id, have_image, info_1, info2 from table_name where have_image='Y'; 根据上面的结果“ id, have_image, info_1, info2”即可迁移在存储系统中的图片文件。 有几点
ResourceProxy UsageWhat is ResourceProxy?ResourceProxy is a tool for online JavaScript, CSS debug. It is a proxy tool. ResourceProxy give you the way to format, modify the online JavaScript, CSS resou
设置Spring懒加载,通过在AbstractBeanDefinition中的构造函数加上“this.lazyInit=true;”实现,代码如下: ClassLoader cl = AbstractBeanDefinitionLoader.class.getClassLoader();
受到“poor man's profiler”这个工具的启发,于我就定了这个用于Java的Profiler工具,URL:http://code.google.com/p/j-profiler/源代码在LGPL协议下发布。使用方法如下:How to use hatter's java profiler tool1. check out the sourcesvn checko
AutoConfig介绍:AutoConfig是如下路径的文件: META-INF/autoconf/auto-config.xml 该文件可以在任何一个Jar包中都存在,且都会在运行前执行。 该文件内容格式如下: <config> <group> &l
周二(2011年12月13日)中午,服务器出现问题,新上的打水印功能出现不可用情况,有大量用户投诉过来。于是我被从晋升答辩评委席拖回来处理故障。 一看到这个故障我就傻眼了,发现用户打水印时好时坏,于是我自己也做了下测试,发现程序功能没有问题,但还是陆续有用户报告故障上来。 跟进问题发现,服务器 “/tmp” 文件夹下大量生成 &ldq
I’ve had problems connecting to my Ubuntu 9.10 server via Mac OS’ built-in VNC client, “Screen Sharing”. Frequently when I connect, I get a white screen with no ind
果然是一道大题目,值得学习一下:f = function() { return true; };g = function() { return false; };(function() { if (g() && [] == ![]) { f = function f() { return f
最近Oracle控告搜索巨人Google,宣称其Android智能手机操作系统上的Dalvik虚拟机侵犯了Java专利,这很自然让很多的开发人员感到担心。但大多数分析指出,这场诉讼对绝大多数Java开发人员将不会有多少的影响,但有些程序员却惊恐不安,他们已经开始寻找一种可替代的语言了。如果你也是这样,你是否考虑过转向JavaScript? “什么?”,你也许会诧异
十二组相克的食物,同时食用易引发生命危险。
我们以沉痛和愤怒的心情正式宣告,我所怀柔试验基地遭暴力拆毁,钱学森先生回国建立的首批实验室被夷为平地。2010年7月17日上午,试验基地的保安人员被一伙不明身份人员控制,失去人身自由。在此期间,共计9处房屋被大型铲车与推土机夷为平地,一批重要的科研装置和设备被砸毁掩埋。2010年7月22日至23日,该试验基地再遭持续地肆意毁坏,钱学森先生回国初期指导研制的科研装备等大量