2014年5月5日

Eclipse 插件

摘要: https://code.google.com/a/eclipselabs.org/p/logviewer/Grep Console 阅读全文

posted @ 2014-05-05 09:33 androidme 阅读(161) 评论(0) 推荐(0) 编辑

2014年3月5日

Using Notepad++ To Quickly Format XML

摘要: http://geek.sylvainw.com/2010/03/28/using-notepad-to-quickly-format-xml/My favorite way to quickly format a given chunk of XML is to useNotepad++and the XML Tools plugin. You can get Notepad++here. And the XML Tools plugin ishere(you’ll have to wait a few seconds before the download starts).Installi 阅读全文

posted @ 2014-03-05 15:57 androidme 阅读(437) 评论(0) 推荐(0) 编辑

2014年2月28日

批处理检测外部命令是否存在的模块

摘要: 编写批处理时经常需要用到外部命令,一些常用的命令一般的系统都会有,但是一些精简的系统上可能就没有了,如果没有做判断就可能导致程序出现未知的错误.一般检测文件是否存在可以使用IF EXIST filename 执行某个命令…但是这样只能检测当前目录下或指定目录的,而批处理的外部命令通过PATH变量来确定位置的.正常情况下可以通过以下命令来确定这个外部命令是否存在,for %I in (find.exe) do if "%~$PATH:I"=="" echo find命令不存在为了以后方便就写了一个模块,用于判断命令是否存在.Batchfile语言:批处理外 阅读全文

posted @ 2014-02-28 13:31 androidme 阅读(1026) 评论(0) 推荐(1) 编辑

2014年2月20日

springside4

摘要: https://github.com/springside/springside4/wiki/DesignDesign1. WebMVC Framwork: SpringMVC3.0 Restful的风格终于回归了MVC框架的简单本质,对比之下Struts2概念太复杂更新又太懒了。Template:JSP2.0且尽量使用JSP EL而不是taglib,万一要写taglib也用纯JSP来编写,一向是SpringSide的推荐,Freemarker们始终有点小众, 而Thymeleaf与美工配合度非常高,可惜也是太少用户了。Layout Decoration: Tiles的配置都太复杂了,Site 阅读全文

posted @ 2014-02-20 10:46 androidme 阅读(653) 评论(0) 推荐(0) 编辑

2014年2月18日

Asciiflow - ASCII Flow Diagram Tool

摘要: http://www.asciiflow.com 阅读全文

posted @ 2014-02-18 17:10 androidme 阅读(409) 评论(0) 推荐(1) 编辑

eclipse ${user}和${date}

摘要: 在Eclipse中使用类的自动注释时,@author ${user}, 这个值不会随着你更改系统用户名而改变。有的人会将这个 ${user} 变量直接替换为某个固定名称。 以下方法可以修改它的值。在Eclipse启动时加入参数 -vmargs -Duser.name="whateveryouwant"找到eclipse.ini 里面有-Duser.language=en 改为-Duser.language=zh-cn即可 阅读全文

posted @ 2014-02-18 12:33 androidme 阅读(467) 评论(0) 推荐(0) 编辑

2014年2月12日

Eclipse快捷键

摘要: Eclipse快捷键,Create a new class.Alt + Shift + N, C创建类属性输入String name;创建构造器 Generate constructorAlt + Shift + S, O,回车创建getter/setter Generate Getters and SettersAlt + Shift + S, R , 空格创建toString方法 Generate toString() methodAlt + Shift + S, S, 回车创建main函数 Create main method输入main, Alt + /, 回车创建foreach循环输 阅读全文

posted @ 2014-02-12 10:46 androidme 阅读(506) 评论(0) 推荐(0) 编辑

2014年2月8日

Exception testing

摘要: https://github.com/junit-team/junit/wiki/Exception-testingException testingExpected ExceptionsHow do you verify that code throws exceptions as expected? Verifying that code completes normally is important, but making sure the code behaves as expected in exceptional situations is vital too. For examp 阅读全文

posted @ 2014-02-08 16:26 androidme 阅读(248) 评论(0) 推荐(0) 编辑

[Junit] 测试方法执行顺序

摘要: Junit 4.11里增加了指定测试方法执行顺序的特性测试类的执行顺序可通过对测试类添加注解 “@FixMethodOrder(value)” 来指定,其中value 为执行顺序三种执行顺序可供选择:默认(MethodSorters.DEFAULT),按方法名(MethodSorters.NAME_ASCENDING)和JVM(MethodSorters.JVM)当没有指定任何顺序时,按默认来执行Sorters1. MethodSorters.DEFAULT默认顺序由方法名hashcode值来决定,如果hash值大小一致,则按名字的字典顺序确定由于hashcode的生成和操作系统相关(以nat 阅读全文

posted @ 2014-02-08 16:23 androidme 阅读(714) 评论(0) 推荐(0) 编辑

windows 中 Eclipse 打开当前文件所在文件夹

摘要: 默认情况下使用eclipse打开当前文件所在文件夹很麻烦,需要右键点击 Package Explorer 中的节点选择属性,然后复制路径,再打开资源管理器,然后再把路径粘贴进去。而MyEclipse一直有一个很好用的工具在工具栏上,只要选中 Package Explorer 的节点,一点击这个图标就可以在资源管理器中打开文件了。MyEclipse 里面的插件名叫:Desktop toolbar。于是我就在 Eclipse 的工具栏配置中寻找这个插件,可是没有找到,经过在网上查阅资料后,终于找到了一个模拟这个插件的办法,配置和操作起来也比较简单,在这里分享给大家。依次展开如下菜单:Run --- 阅读全文

posted @ 2014-02-08 10:38 androidme 阅读(836) 评论(0) 推荐(0) 编辑

2014年2月3日

Guava

摘要: http://www.javacodegeeks.com/2012/10/google-guava-v07-examples.html 阅读全文

posted @ 2014-02-03 20:35 androidme 阅读(191) 评论(0) 推荐(0) 编辑

消息中间件的技术选型心得-RabbitMQ、ActiveMQ和ZeroMQ

摘要: RabbitMQ、ActiveMQ和ZeroMQ都是极好的消息中间件,但是我们在项目中该选择哪个更适合呢?很多开发者面临这个烦恼。下面我会对这三个消息中间件做一个比较,看了后你们就心中有数了。RabbitMQ是AMQP协议领先的一个实现,它实现了代理(Broker)架构,意味着消息在发送到客户端之前可以在中央节点上排队。此特性使得RabbitMQ易于使用和部署,适宜于很多场景如路由、负载均衡或消息持久化等,用消息队列只需几行代码即可搞定。但是,这使得它的可扩展性差,速度较慢,因为中央节点增加了延迟,消息封装后也比较大。ZeroMQ是一个非常轻量级的消息系统,专门为高吞吐量/低延迟的场景开发,在 阅读全文

posted @ 2014-02-03 18:20 androidme 阅读(522) 评论(0) 推荐(0) 编辑

Java Cache

摘要: Ehcachehttp://www.ehcache.org/Memcachedhttp://memcached.org/Serverhttp://blog.couchbase.com/memcached-144-windows-32-bit-binary-now-availablehttp://blog.elijaa.org/index.php?post/2010/08/25/Memcached-1.4.5-for-Windowshttp://blog.elijaa.org/index.php?post/2010/10/15/Memcached-for-WindowsRedishttp://r 阅读全文

posted @ 2014-02-03 18:02 androidme 阅读(138) 评论(0) 推荐(0) 编辑

2014年2月1日

使用Lingo增强JMS

摘要: 虽然activemq+jencks的jms轻量级解决方案已经很好地在psa中work了,尤其spring的JmsTemplate使得代码更简单,但是还是存在问题。问题来自暑期做psa的时候,linke突然提出要求,需要MDP返回些处理信息,比如处理结果、异常,以便后台监控和前台显示,但是,MDP没有返回值也没法返回异常,当时我只能无奈。Lingo解决了这个问题,它扩展了JMS,允许异步的函数调用。在下载了lingo-1.0-M1后(虽然1.2.1发布了,但是还没有文档支持,所以暂且用1.0),参考其自带的example,了解了它异步函数调用的代码思路。客户端拥有服务端的方法接口,客户端将cal 阅读全文

posted @ 2014-02-01 17:23 androidme 阅读(348) 评论(0) 推荐(0) 编辑

Lingo

摘要: http://lingo.codehaus.org/ 阅读全文

posted @ 2014-02-01 17:01 androidme 阅读(116) 评论(0) 推荐(0) 编辑

Asynchronous calls and remote callbacks using Lingo Spring Remoting

摘要: http://www.jroller.com/sjivan/entry/asynchronous_calls_and_callbacks_usingAsynchronous calls and remote callbacks using Lingo Spring RemotingAs mentioned in my previous blog entry, Lingo is the only Spring Remoting implementation that supports asynchronous calls and remote callbacks. Today I'll 阅读全文

posted @ 2014-02-01 13:50 androidme 阅读(420) 评论(0) 推荐(0) 编辑

Lingo (Spring Remoting) : Passing client credentials to the server

摘要: http://www.jroller.com/sjivan/entry/lingo_spring_remoting_passing_clientLingo (Spring Remoting) : Passing client credentials to the serverSpring Remoting allows you to export a service interface which a remote client then then look up. Once the remote service interface is looked up, the client can w 阅读全文

posted @ 2014-02-01 13:45 androidme 阅读(469) 评论(0) 推荐(0) 编辑

2014年1月31日

Java Something

摘要: Java静态代码检查工具 FindBugsFindBugs is a defect detection tool for Java that uses static analysis to look for more than 200 bug patterns, such as null pointer dereferences, infinite recursive loops, bad uses of the Java libraries and deadlocks. FindBugs can identify hundreds of serious defects in large ap 阅读全文

posted @ 2014-01-31 23:08 androidme 阅读(217) 评论(0) 推荐(0) 编辑

Database Designer

摘要: DBDesignerhttp://fabforce.net/dbdesigner4/index.phpDB Designer Forkhttp://sourceforge.net/projects/dbdesigner-fork/DB Schema Viewerhttp://sourceforge.net/projects/dbschemaviewer/http://eclipse-erd.sourceforge.net/www.databaseanswers.org/modelling_tools.htmhttp://argouml.tigris.org/http://www.visi.co 阅读全文

posted @ 2014-01-31 21:34 androidme 阅读(245) 评论(0) 推荐(0) 编辑

Eclipse UML插件

摘要: Green UMLhttp://green.sourceforge.net/AmaterasUMLhttp://amateras.sourceforge.jp/cgi-bin/fswiki_en/wiki.cgi?page=AmaterasUMLObjectAid UML Explorer (Not free)http://www.objectaid.com/EclipseUML (Not free)http://www.omondo.com/eUML2http://www.soyatec.com/euml2/EMF - Eclipse Modeling FrameworkGEF - Grap 阅读全文

posted @ 2014-01-31 20:00 androidme 阅读(229) 评论(0) 推荐(0) 编辑

导航