Quantcast
Channel: Code Archives - Experiences Unlimited
Browsing all 18 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Using ROWNUM with ORDER BY in Oracle SQL

Lot of times you have tried to use ROWNUM clause along along with the ORDER BY clause and must have been treated with a different output than you expected. You would expect the ROWNUM to be applied...

View Article


Image may be NSFW.
Clik here to view.

Using JAXB to generate Java Objects from XML document

Quite sometime back I had written about Using JAXB to generate XML from the Java, XSD. And now I am writing how to do the reverse of it i.e generating Java objects from the XML document. There was one...

View Article


Image may be NSFW.
Clik here to view.

Using BULK COLLECT INTO construct in Oracle PLSQL

At times when you are programming in PLSQL you would want to fetch multiple records into an ARRAY or some collection. One approach to do is to loop through the result of the SQL query and then keep...

View Article

Creating External DSLs using ANTLR and Java

In my previous post sometime back I had written about creating Internal DSLs in Java. In the book Domain Specific Languages by Martin Fowler, he discusses about another type of DSL called External DSLs...

View Article

DSL based approach to input Graph data in graph theory based java programs

Most of us have coded some programs which deal with graph theory algorithms like finding the shortest path between two vertices, finding the minimum spanning tree for a given graph and so on. In each...

View Article


Image may be NSFW.
Clik here to view.

HTML5 Geolocation API with Goolge Maps

I have been reading Head First HTML5 and read about the Geolocation support in HTML5 and also went through the example they have shared about using the Google Maps with HTML5 geolocation API. It was an...

View Article

A brief introduction to using Option and Either classes

Previously I had written about Companion classes in Scala and there in I had mentioned one of its uses i.e defining the apply method to support object literals. In this post I am continuing from where...

View Article

Deep dive into Optional class API in Java 8

We all as Java programmers been through the situation where in we invoke a method to get some value and then instead of directly invoking some methods on the return value, we first have to check that...

View Article


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 all 18 articles
Browse latest View live