Blog Archives

How to easily write in MediaWiki

MediaWiki is a very popular free and open-source wiki software that powers some of the most visited wikis on the Internet including the Wikipedia. You can also host it in your own environment for your own wiki requirements or for

Tagged with: , , ,
Posted in Blog, HowTos

My Rolling Debian System

A few weeks back, I switched my home laptop to Debian and I wanted to write about my reasons behind choosing Debian and my experience with it for the first few days. But before I dive into that, here’s a

Tagged with: , , ,
Posted in Blog, Debian

Higher Order Functions in Java?

Higher order functions are those functions that can return functions as their results. The returned function can then be invoked in the same way as you would invoke a normal function. In programming languages like Python, where functional programming is

Tagged with: , , ,
Posted in Blog, Java

Inconsistent space width across editors

I had a weird problem today when my perfectly indented code comments from Vi editor were looking like a mess in Geany. The pound signs were all out of line though they look perfectly aligned when opened in Vi editor.

Tagged with: , , , , ,
Posted in Blog

Opening large JSON files with Geany

A few days back at work I was trying to open a fairly large unformattedĀ (a single line) JSON file generated through one of the junit tests. At first I tried to open it in Eclipse since my Eclipse JEE IDE

Tagged with: , , , ,
Posted in Blog

Correct Way of Using EntityManager in Singleton EJB

This week and last week I spent a lot of time writing code to implement the persistence feature for our module with EJB 3 at work. This is the first time I was working with EJB so there was quite

Tagged with: , , , , , ,
Posted in Blog, Java

EntityManager with try-with-resource

try-with-resource is the new feature introduced in Java 1.7 to automatically close a resource after using. It basically helps you to avoid a finally block at the end of the try-catch block to close any resource that needs closing like

Tagged with: , , , , ,
Posted in Blog, Java