Category: Java
-
Podcasts for Developers
Until I started to travel on a regular basis I haven’t been aware of the value and information that can be found audio podcasts for developers. I thought, “Come on, what can you learn from listening to a radio?”. Nevertheless, since I had to fulfill my time with something other than staring at empty space…
-
Dbunit composite primary keys
For some task I was doing I had to make a snapshot of mysql database having only jdbc connection available. I wasn’t able to use mysqldump (remote access) or other backup tools (I wanted to do this as part of my java program – programmatically). So, I came across http://dbunit.sourceforge.net/ which allowed me to backup…
-
Apache CXF Linux Deployment
A short reminder of small issues I had with deploying Apache CXF web service I built on linux server (CentOS in my case): yum install tomcat5 went really well 🙂 and then I had to add webapps and manager packages with separate commands. tomcat5 package depends on jdk-1.4 so in case you haven’t already installed…
-
Griffon eclipse support plugin
Recently I was playing with griffon which I used together with jung library to visualize binary decision diagrams. In this regard, I had to make several small projects. Since I do that in my spare time, at the moment I start a new project I forgot how I managed to integrate previous griffon project with…
-
Debugging GUI events
Debugging gui events is usually not possible with regular line per line debugging and is done mostly by tracing. For debugging code that relies on Java swing events like drag and drop, mouse moving, etc., having something similar to code below is very useful: In this way you trace not only current function but also…
-
Groovy blob and mysql
In certain occasions e.g. when you want to save scrapped html page or just a specific part of it (e.g. div with its contents) the recommendation I found is to use the blob type and save xml document as binary stream. In groovy, this is achieved in a rather simple way: class Document { int…
-
Groovy meliorates and dries
Dynamic languages are very popular at this time and you probably had insight into at least one of them (Ruby, Python, Groovy). If you are bound to Java platform the best way to “be dynamic” IMHO is to work with Groovy. Apart from the http://groovy.codehaus.org/ where you can find documentation, getting started examples etc. there…
-
HtmlUnit as Java Screen Scraping Library
If you are needing behavior ‘as though a real browser was scraping and using the page’ HtmlUnit is definitely the best option available. It was designed for testing websites but works great for screen scraping and navigating through multiple pages. It takes care of cookies and other session-related stuff and can execute (if you want…
-
Swing blog recommendation
Pushing-pixels by Kirill Grouchnikov is a dynamic blog on GUIs with a special attention to swing. It has weekly digest on popular swing links and is good place to start when searching for news in that field.
-
Java Resources
Ok, lets recommend resources in following categories: ebooks, blogs, forums. Ebooks: The JavaSeries is supported, endorsed, and authored by the creators of the Java technology at Sun Microsystems, Inc. It is the official place to go for complete, expert, and definitive information on Java technology. The books in this Series provide the inside information you…