Quantcast
Browsing all 168 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Book Review: Java Performance by Charlie Hunt and Binu John

If you want to: – learn about commands used for OS monitoring – understand about different components of JVM – monitor and tune JVM to improve its performance. then, Java Performance is the book you...

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


Parameterized Test Runner in JUnit

We all have written unit tests where in a single test tests for different possible input-output combinations. Lets look how its done by taking a simple fibonacci series example. The below code computes...

View Article

Image may be NSFW.
Clik here to view.

Book Review: RabbitMQ Essentials by David Dossot

I have been working on integrating with RabbitMQ to implement the messaging architecture. All the time I made use of the basic tutorials available on RabbitMQ site to wade through understanding...

View Article

Image may be NSFW.
Clik here to view.

Book Review: RESTful Web Services with Dropwizard by Alexandros Dallas

RESTful Web Services with Dropwizard` by Alexandros Dallas is a good guide to get started with dropwizard. The author covers most of the features of dropwizard which includes creating RESTful End...

View Article


Image may be NSFW.
Clik here to view.

Book Review: Murach’s Java Servlets And JSP 3rd Edition

Murach’s Java Servlets and JSP is the ONLY book you need to learn Web App Development in Java using JSP and Servlets. The book covers all the concepts required you to build a complete Web application...

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.

Book Review: Murach’s HTML5 and CSS3, 3rd Edition

Murach’s HTML5 and CSS3, 3rd Edition is a one stop solution to solve all your learning requirements for developing the front end of your applications. The books starts with introduction to HTML and CSS...

View Article

Image may be NSFW.
Clik here to view.

Monitoring and Profiling using VisualVM-1

I executed a simple GUI application which would load the CSV file and parse it and show the contents in a JTable. When the applications started- There was a JFrame, 2 JPanels, a JLabel and a JButton...

View Article

Image may be NSFW.
Clik here to view.

“val” versus “var” Declarations in Scala

Scala allows programmers to decide whether the variable is immutable or mutable. This can be done by using the keywords "val" and "var". Continue reading to know more about "val" and "var".

View Article


Image may be NSFW.
Clik here to view.

Tuples- Returning multiple values in Scala

When I was coding in Java I used to build Classes just to return multpile values and also sometimes used pass by reference (by means of using Objects). I really missed a permanent solution :( Scala has...

View Article

Image may be NSFW.
Clik here to view.

Control Structures in Scala- A brief overview

If Statements: Lets consider a first entry example of If statments, without using much of Scala’s features. This is a pretty simple and straight forward examples. Now lets add some Scala flavor in the...

View Article


Image may be NSFW.
Clik here to view.

How’s Scala different from Java?

Scala is statically type like Java but with Type Inferencing support. Which means that the scala compiler analyzes the code deeply to determine what type a particular value is. In Scala its not...

View Article

Image may be NSFW.
Clik here to view.

Traits in Scala- Deep Dive

Traits are units of code reuse in Scala. Traits encapsulates methods and field definitions. Their role is similar to that of interfaces in Java- A workaround for Multiple Inheritance. But unlike...

View Article


Image may be NSFW.
Clik here to view.

Null, null, Nil, Nothing, None, and Unit in Scala

Null– Its a Trait. null– Its an instance of Null- Similar to Java null. Nil– Represents an emptry List of anything of zero length. Its not that it refers to nothing but it refers to List which has no...

View Article

Image may be NSFW.
Clik here to view.

Working with Java Enumerated types (Enums)

In this post I would like to explain about Enums in Java. Though in my 2 years of coding in Java I have seldom used Enums but they do provide a lot of features when we are required to create a say...

View Article

Image may be NSFW.
Clik here to view.

Execute external process from within JVM using Apache Commons Exec library

Executing external command from within JVM often causes problems- be it in terms of the code to write and manage or in the ease of implementation. I had similar requirement in my Major project for my...

View Article
Browsing all 168 articles
Browse latest View live