I spent a little bit of time check out both webtest and jWebUnit. Here are my first impression: webtest is declarative and XML configuration file driven. If you like configuration management more than programming, you might like this format. All you need is edit the test definition and hit the run command, no compilation necessary. […]Read more "webtest and jWebUnit: first impression"
One thing about writing AJAX calls is that you are limited to calling the same server for security reasons. To work around this issue, I gave this proxy a try and it worked for me and saved me time writing my own. The follow-up questions I have about this proxy implementations are: 1. It’s only […]Read more "HTTP Proxy Servlet"
While looking for sample code on how to work with Date in Java, I found the following page that has simple ways to let you use some predefined formats. Pretty cool.Read more "A simple way to work with Date in Java"
I was using forward in a servlet to forward a request to a JSP and that didn’t display some of the images in a JSP. So, I found this page that shows how to use redirect. I find this a good page that explains the difference between the two approaches.Read more "Forward vs Redirect"
Firstly, I figure out the format that I wanted by looking at this page. Next, I figure out how to get the date value I wanted by looking at this page. Pretty easy stuff.Read more "Date in Java"
… is to play with a tester like this one, while reading this page.Read more "A great way to learn Regular Expression…"
Today, I relearned to use regular expression to extract certain data out of well formed HTML pages. There are many books and articles with sample code, such as this one, so I’ll just briefly note down a few things here. .*? means any arbitrary number of characters. This essentially tell the parser to ignore or […]Read more "A Taste of Regular Expression in Java"
While trying to configure Java plug-in for Firefox on AMD64/Linux, I realized that only 32bit version of plug-in is available. So, here is a RFE for the JVM team/community: Please do add this feature.Read more "RFE: Please add 64-bit version for Java applet/Java Web Start support"
The HDFView “is a visual tool for browsing and editing NCSA HDF4 and HDF5 files.” The Linux version appears to be 32-bit and not having all the necessary 32-bit libraries caused my system unable to run it. So, I tried to run Solaris version. I had to tweak HDFVIEW_HOME and JAVAPATH variables in <HDFVIEW_HOME>/bin/hdfview.sh to […]Read more "Notes on running NCSA HDFView"
There are several ways to profile JVM, here is one way according to “Solaris Performance and Tools“: -Xrunhprof:cpu=times,monitor=y,depth=8,file=path_to_result_file Note: monitor=y specifies that locks should be observed msa=y turns on Solaris microstate accounting depth=8 sets the depth of the stack displayed To get an accurate profile you should run a kill -3 <pid> at the very […]Read more "Notes on hprof"