Hacking Into A Java Class

Official Java Docs may call it Anonymous Inner Classes or name it with some other heavy-weight formal jargon, but I would like to call it hacking into a Java class because with this technique you can inject your code into an existing class method.
read more »

How To Create A Maven Webapp In Eclipse?

I like Maven because it makes dependency resolution easier and I like Eclipse because it is lightweight (at least lighter than other Java IDEs) and configurable. But I hate when it comes to creating a Maven webapp in Eclipse because it is overly complicated. Till the time a simpler solution appears, here is what you need to do to create one:
read more »

Java Nested Classes In A NutShell

The Java programming language allows you to define a class within another class. Such a class is called a nested class and is illustrated here:

class OuterClass {

...

    class NestedClass {

     ...

    }

}

read more »

The BackboneJS Way of Thinking

So you are frustrated tackling BackboneJS and wondering why it isn’t solving your problems as you had expected it to, after hearing about its glorious penetration in many high profile projects. Well, join the club, you are not alone. Here I’ll share my expectations when I imported BackboneJS for the first time in my project and my learning that I gained after weeks of trial and error and frustration.
read more »

Why Backbone-Relational Sucks?

Apologies for being blunt, but this is what I truly feel after weeks of struggle with Backbone-Relational. Some of the features library boasts are great, but some other problems make its usage horrible. So if you are lured by the cool features this framework claims, here is my candid advice: keep some Disprin tablets along because it is going to give you some serious headaches.
read more »

Backbone.LayoutManager: How to prepend a view?

Backbone.LayoutManager v0.6.6 docs state that:

If you wish to change append to prepend you can easily change how the View is inserted by setting a new append function.

read more »

Basic Maven Installation

1- Download latest Maven library from the following URL http://maven.apache.org/download.html. .

2- Unzip the file at some proper location (in my case its C:\Program Files\Apache Software Foundation\apache-maven-2.0.9).

3- Make sure your JAVA_HOME environment variable is set to Java home directory. read more »

How To Stylize Ordered Lists <ol> With Pure CSS?

Ordered lists <ol> allow you to show incrementing numbers (or other counters) next to your list items. For example, let’s list down seven books of A Song of Ice and Fire using <ol>:
read more »

A Better Technique To Create A Speech Balloon With Pure CSS

In one of my older posts, we learned about creating a speech balloon with pure CSS. As I mentioned at the end of the post, the technique had a little flaw in it: in order to create an arrow along the box, we had to prepend a new div within the box div. Although it did serve the purpose, it didn’t look much sophisticated. In this post, I will try to explain how we can create the arrow without prepending a new div within the box div. Hence the only thing you will need to balloonify any HTML element would be to add class “balloon” in it.
read more »

java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config

I created a Maven (maven-archetype-webapp) application and applied mvn eclipse:eclipse on it to make it compatible with Eclipse. When I ran the project I hit this exception:
read more »