Scroll to Top

With regards to the issue with the debugger not able to install breakpoints, I believe we have found a solution. If you face the same issue where you cannot debug with Eclipse due the error I had described in my previous post, try switching to Eclipse Kepler R2. That worked for...

Definitions A full m-arr tree is one which has either m children or no children at all. Extending that definition a Binary Tree (hereby referred to as BT) should have either 2 children or no children at all. Now let’s make a claim. Claim: A full m-arr tree with i internal...

What is it and why should I care? Order statistic trees are a modification of Binary Search Trees or in generate B-Trees. It has the same structure of a BST with just one addition structurally and as a result supports two additional methods: Select and Rank. Structurally each node...

The 0-1 Knapsack problem is a very famous problem that can be solved using dynamic programming in pseudo-polynomial time. A variation of the problem can be defined as follows: You have a Knapsack that can store M items. You have N items with weights W and values V each respectively....

Recently I was working on a GeoKettle plugin and faced the following error: Unable to install breakpoints due to missing line number attributes. Modify compiler options to generate line number attributes. GeoKettle was compiled on version 1.6 and thus, if you are on a version greater...

Uploaded some photos from our Austin and San Antonio trip. ...

Question: Given a number N, create all possible valid combinations of parenthesis. For example, given 2, all valid combinations would be: ()() and (()) – equal opening and closing parens.   Solution This question is a very nice template of the build on top of base cases...

To explain the problem, say we have the following tree: And we want to store elements at every level in a separate list. For this  example, we would have the following three lists: 1 2 3 4 5 6 7 We will use the usual BFS algorithm but with a small modification. To know the level,...

AWS ElastiCache cannot be accessed from the outside. Amazon cites latency issues as the cause for it but this may turn out to be a deal breaker for many customers. Here’s why: The entire infrastructure might not be AWS based Private-public hybrid clouds is a very real scenario...

I faced this error yesterday while working on a GeoKettle plugin: Exception in thread “main” java.lang.NoSuchMethodError: org.pentaho.di.i18n.BaseMessages.getString(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String; Apparently this happens when...

There are so many options for this right? But lets look at the facts. Nothing is for free and there are so many places where you don’t want your photos to be even if its for free. Major services like Dropbox, OneDrive etc would charge you anywhere between $5-$10 a month once...

Recently I was writing some code that had to be used by multiple threads in the same application. That reminded me of writing about the oh, so important race condition and how to avoid it in a multi-threaded application. What is race condition and why should I care about it? A race...

I had been getting calls from somebody called Sylvestar from Microsoft “tech support” for a few days now and since I had some free time today, decided to have some fun with the scammers. The guy was Indian and judging by his accent probably from the southern part of...

070601eb01_f1

REST is the new buzzword in town and more often than not I have seen people claiming their webservices being RESTful when they are not. So here is a list of things that make your webservice NOT RESTful. It should not perform an action The REST architecture is resource based, meaning...

Found this old and gold article at Funspace. Great actor but even better is the humor surrounding him. Enjoy! ...

This content is password protected. To view it please enter your password below: Password: ...

One of our projects at Tango uses Stormpath and who doesn’t use Jackson, right. So while using version 1.0.beta of their JAVA SDK, I came across this problem. My project used jackson-asl version 0.9.5 and the Stormpath JAVA SDK uses version 1.9.11 of jackson-mapper-asl. This...

Zocalo is a file sharing service from Amazon. Its still in limited preview but I just got access to it. So here’s a video of my first experience of Amazon Zocalo. ...

I am sure you know the differences between integration and unit testing but for the sake of completeness I am going to re-iterate the major difference from the perspective of a test designer. When designing an unit test, you are concerned only about that one class, so all data coming...