Random thoughts on Java, Python, Groovy, Node.js, Linux, Arduino, Embedded Devices and Computer Technology

How-To: Turn off Firefox browser cache during development

Sometimes (when your are developing) you may want to force fetching all content fresh all the time including images, resources such as style sheet etc. To facilitate this you can do the following: Open a new window or tab in Firefox. Type about:config in the address bar. Search for &#
Continue Reading →

How-To: Change Grails User work and cache directory under windows

The directions below will help you move the Grails user work and cache directory to a different location. Why? Sometimes your default “primary drive” may be running out of space and you need to move your workspace else where. How? Create a file called “settings.groov
Continue Reading →

IntelliJ - Live Template - main() method generation

IntelliJ - Live Template - main() method generation Type “psvm” Ctrl+J will generate the main method. Why “psvm”? “public static void main”
Continue Reading →

IntelliJ - serialVersionUID - enabling

If you are wondering why when you make a POJO bean to implement Serializable, IntelliJ does not throw any warnings to create the serialVersionUID variable… It’s because you need to enable it. Here’s how: Cheers!
Continue Reading →

How to extract public key from certificate?

How to extract public key from certificate? Recently I had to extract the public key from a certificate. Each time I do this I end up looking up the man pages for openssl and so I thought I’d blog it for myself and for others to use when needed. $ openssl x509 -inform pem -in ce
Continue Reading →

Importance of named windows and how to close all child windows

One of the questions posed by a friend of mine is this. In a typical website-application, you spawn a few child windows here and there and because of the nature of the application, you do not have a handle to all the child windows you spawn open… Then how do you close all the ch
Continue Reading →

Understanding Tomcat Configuration

Case #1: When the Tomcat config is this: Observe the “path” element in the “Context”. Then… http://localhost/index.jsp yields to the “index.jsp” under HelloWorld folder. http://localhost/HelloWorld/index.jsp yields to a “404 Page”. Case #2: When the Tomcat setu
Continue Reading →

Extract all images in PDF file in a directory (batch extract images)

Sometimes you need a way to extract all images in a PDF but then you have a directory of files and you need to extract them iteratively. Prerequisites: 1. Install Cygwin or linux environment with Perl support. 2. Install ImageMagick. 3. Install GhostScript. Afterward run the following
Continue Reading →

Weblogic 10.3 Heap Size (does not allow 3072mb)

Weblogic 10.3 Heap Size (does not allow 3072mb)
Continue Reading →

GWT and Spring Integration - java.net.InetAddress is a restricted class

GWT and Spring Integration - java.net.InetAddress is a restricted class
Continue Reading →

JBoss AS6 - Failed to resolve schema nsURI= location=persistence

Common porting error to JBoss AS6 - "Failed to resolve schema nsURI= location=persistence"
Continue Reading →

Weblogic 10.3 - Using clear passwords while in production mode

Weblogic 10.3 - Using clear passwords while in production mode
Continue Reading →

Notable difference between Apache Ant 1.7.x and 1.8.x - path and pathelement

Notable difference between Ant 1.7.x and 1.8.x - path and pathelement
Continue Reading →

GreaseMonkey to the rescue - fixing Apache Jackrabbit Site

Starting yesterday the Apache JackRabbit JCR website had an interesting problem. Someone must have made a change to the base template such that they had removed the SyntaxHighlighter code that needs to be appended to the header. I’ve opened an issue in their jira issue tracker.
Continue Reading →