Groovy 1.7 power asserts
Asserts were a breath of fresh air sweeping over the JVM landscape with Groovy. Now, feel the power of Groovy 1.7's power asserts!
Stopping the dreaded double-form submission with jQuery
When developing forms, we web developers always have to guard against the dreaded double-form submit, when impatient (or even patient) users, depending on the latency of form submissions, hit the “submit” or “enter” button multiple times, causing havoc to the application.
What's REALLY going on in that HashSet.contains() method
We all know that contains() is a handy way to check for the presence of an item in a HashSet. The java docs state: "Returns true if this collection contains the specified element. More formally, returns true if and only if this collection contains at least one element e such that (o==null ? e==null : o.equals(e))." So, you just need to override equals() the way you want, and everything's hunky-dory, right? Wrong!
Submitting a form from an a href link using jquery
Okay, Okay, I admit it. I'm javascript challanged. As a Java developer, I've looked down my nose at paltry javascript, treating it as a "me-too" technology trying to cash in on the hype surrounding java all these years.
As a result, I've missed out on a lot of js goodies. And, with javascript entering a renaissance of sorts, combined with the wildfire-like buzz surrounding libraries such as jquery, it's high time I learn some.
How to uninstall a .deb package (Ubuntu)
New version of virtual box. Problem was, I needed to uninstall the old version first.
The power of Groovy closures
In the Java world, we don’t get closures until Java 7. Groovy already has them. Here's what I’ve learned about these important programming structures, and why they're powerful.