Filed under Technical

Subdomains, pretty urls and some config

This post sort of collates information about using subdomains to make your urls look much nicer. Say suppose you are building a tumblr like service, then you would also think of providing subdomain based urls for each of your customers. Lets consider for the sake of explanation that you have a website called sconesandtea.com and … Continue reading »

Sqlserver Non-clustered indexes and deadlocks

ORM tools and other abstraction on RDBMS have become ubiquitous. But there is no substitute for understanding the basics of a database. This opinion of mine was only reinforced by a recent issue which I was fixing with a colleague. Bug: Error log for showed the below exception System.Data.SqlClient.SqlException: Transaction (Process ID 53) was deadlocked … Continue reading »

Customize gradle directory structure

I started using gradle very recently. It is so much more easy to understand than maven. I guess I am not intelligent enough for maven. Gradle also follows a very similar directory structure to maven. But I wanted to change it as per my projects directory structure. project project/src project/test All I had to do … Continue reading »

CI – Have we forgotten the integration bit?

Almost all software that has every been built had to go through an integration stage in one way or another. It is quite odd that many software projects even to this day look at integration as a separate phase in the project. But things are changing quite fast and many projects adopting Continuous Integration. This … Continue reading »

Agile Bengaluru 2010

Its been a week since agile bengaluru 2010. It was a really nice experience to meet J. B. Rainsberger, Jeff Patton, David Hussman, Naresh Jain and many more people all in one place. I liked the venue even though there was no wifi . More than anything else I really appreciate the “go green” theme. … Continue reading »

Coroutines – back to basics

Ruby 1.9 Fibers has got me reading about Coroutines. Thought I should put all my understanding somewhere, as I read and understand coroutines in more depth. Most of the content in this post just a aggregation of various sources. Coroutines are program components that allow multiple entry points and can return any number of times. … Continue reading »

I hate ORM

The title is not meant to start a war over the concept of ORM. I appreciate the effort that has gone into mappers. But lets take a look at why I hate ORMs. (Dont hate me because I hate ORM ) Prelude I am beginning to wonder how many applications that we build really need … Continue reading »

Consume REST webservices in java using rapa

I have been reading about REST webservices for quite a while now. But rails still seems to have the best support for consuming REST webservices (ActiveResource). It is magical the way active resource works. Even if the magical and dynamic behavior may not be completely possible in java, it would be helpful if we have … Continue reading »

Access GMail with imap using java mail api

I had to search through quite a few web pages for this. So I am putting it here for future reference. My concience pricks for putting all the code in main method. But I guess this is an exception. import java.util.Properties; import javax.mail.Folder; import javax.mail.Message; import javax.mail.MessagingException; import javax.mail.NoSuchProviderException; import javax.mail.Session; import javax.mail.Store; public class … Continue reading »