Quantcast
Browsing latest articles
Browse All 18 View Live

Double Brace Initialization Idiom and its drawbacks

This post is inspired by the Double Brace Initialization concept explained here. This technique can be used for creating and initializing objects and represent these operations in a single expression....

View Article


JSON Processing support in JavaEE 7 and JSR-353

Warning: preg_replace() [function.preg-replace]: Unknown modifier 't' in /home/sanaulla/public_html/blog/wp-content/plugins/jetpack/class.photon.php on line 288 Warning: preg_replace()...

View Article


Getting started with Mocking in Java using Mockito

We all write unit tests but the challenge we face at times is that the unit under test might be dependent on other components. And configuring other components for unit testing is definitely an...

View Article

Image may be NSFW.
Clik here to view.

Simple Aspect Oriented Programming (AOP) using CDI in JavaEE

We write service APIs which cater to certain business logic. There are few cross-cutting concerns that cover all service APIs like Security, Logging, Auditing, Measuring Latencies and so on. This is a...

View Article

Very useful Console Window for windows

ConEmu (http://www.fosshub.com/ConEmu.html) is a very useful and much much better Console window for Windows. It acts as a facade over the cmd.exe. There are loads of good things in it and highly...

View Article


Using Google Guava Cache for local caching

Lot of times we would have to fetch the data from a database or another webservice or load it from file system. In cases where it involves a network call there would be inherent network latencies,...

View Article

Image may be NSFW.
Clik here to view.

Getting rid of Getters and Setters in your POJO

We all have read in Java books about encapsulation of fields in Java class and also when ever you code you are asked to take special care in encapsulating the fields and providing explicit Getters and...

View Article

Image may be NSFW.
Clik here to view.

Setting up sharded mongodb cluster in localhost

I have been playing around with MongoDb, thanks to the M101J Course offered by Mongodb University. These NoSQL datastores are gaining popularity due to a number of reasons and one among them being the...

View Article


Image may be NSFW.
Clik here to view.

WebUI Popover – Useful wrapper over Bootstrap Popover

Github Project page: WebUI Popover. Some of the examples: To create a closeable popover: $("#popover-elem").webuiPopover({ content: "Closeable content", title: "Closeable", closeable:true }); To create...

View Article


Image may be NSFW.
Clik here to view.

Using ROWNUM to paginate the data in Oracle

In one of my previous posts, I showed you how to use ROWNUM with ORDER BY clause. Building on that in this post I will show you how you can paginate your results using ROWNUM in Oracle DB and how you...

View Article
Browsing latest articles
Browse All 18 View Live