Archive | Java

23 August 2011 ~ 0 Comments

Updating Google Calendar with MS Project Tasks – 2 – Revisited

This is the 2nd part in the series. Please refer to Updating Google Calendar with MS Project Tasks – Revisited for Part 1, including how to build the code. In the previous post we saw, how to list all the Calendar’s. In this post we shall build upon the code to list all the calendar’s [...]

Continue Reading

10 August 2011 ~ 0 Comments

Hunting down CPU hogging Java Thread

Most of us have encountered a situation to find cause of high CPU usage in Java application. Profiling is the best way, but at times running Profiler in production is not an option. Fortunately, there is a simple way, if you are running your app on *nix. Lets explore how to find this. Find the [...]

Continue Reading

Tags: , ,

11 July 2011 ~ 2 Comments

Updating Google Calendar with MS Project Tasks – Revisited

Back in 2008, wrote the post on Updating Google Calendar with MS Project. Since then, lot many people had asked for the code, and myself felt that getting the code on github would be great. I shall keep complete the post in 2 parts, starting with setup, listing the calendars and then winding up with [...]

Continue Reading

13 May 2011 ~ 0 Comments

A Simple LRU Cache

Recently, while working on a module has a need of very light weight fixed size LRU cache. There are definitely lot of caching solutions around, but decided to try a simple Map based solution. Surprisingly, the solution using LinkedHashMap turned out to be simplest. Here is the snippet. Removed all additional validation and other stuff [...]

Continue Reading

23 November 2009 ~ 1 Comment

Getting Started with Terracotta

Abstract In this small post we shall explore Terracotta, a leading pure Java Scalability platform. The discussion is based on the AtomicInteger example from Terracotta site, which shows how to implement a Cluster wide id generator (Actually it’s the Sequencer example, but to keep my steps simple had used AtomicInteger). The reason why I choose [...]

Continue Reading