Archive for the ‘Tips & Tricks’ Category

At work, we have multiple libraries that provide us with small small functionalities. This design keeps things simple and makes code sharing easy. But it also has it’s own set of problems. In very large projects where there are multiple branches and complicated dependencies, it’s impossible to ask customers to provide you with jar versions. [...]

Thursday, May 26th, 2011 at 11:41 | 0 comments
Categories: Java, Tips & Tricks
Tags:

It’s all to common for beginners of spring to stumble upon what may look like odd spring problems. Most users think that these are bugs while more often than not they are expected spring behaviour. I myself have stumbled upon my fair share of such problems. One such problem is clearing the data contained within [...]

Friday, February 13th, 2009 at 11:05 | 1 comment
Categories: Spring, Tips & Tricks
Tags: ,

More often than not you are required to secure your login pages and certain admin resources using secured socket layer (SSL) or TLS. This can be quite a task if you go around manually redirecting all your http requests to https and then configuring your server. Whats worse is that another team member may forget [...]

Wednesday, February 11th, 2009 at 18:28 | 1 comment
Categories: Tips & Tricks

A question commonly asked on the spring forums is that a service makes calls to multiple DAOs, how can ALL the calls be rolledback if any of the calls throws an exception. The simplest way to do this is to make your service transactional while keeping your DAOs non-transactional. Example Service : Notice the lack [...]

Friday, February 6th, 2009 at 17:07 | 4 comments
Categories: Spring, Tips & Tricks

ConcurrentHashMap is a pretty ignored class. Not many people know about it and not many people care to use it. The class offers a very robust and fast (comparatively, we all know java concurrency isn’t the fastest) method of synchronizing a Map collection. I have read a few comparisons of HashMap and ConcurrentHashMap on the [...]

Thursday, February 5th, 2009 at 13:16 | 8 comments
Categories: Java, Tips & Tricks
Tags:

Spring Framework is by the most versatile framework for java applications. It can be used with any kind of application, be it an applet, a swing app or a web application. Spring transaction management is one of the most powerful features of spring. It manages your transactions for you with minimal code, infact all you [...]

Saturday, January 31st, 2009 at 13:37 | 0 comments
Categories: Spring, Tips & Tricks

Everyone knows about the Amazon E-Commerce services and everyone loves it. It’s a simple, too simple really, way of starting your own Amazon affiliate store. Not to mention for gathering information from Amazon. Take a look at Amazon.com and you’ll see why people want that information, they have everything, literally. Amazon also has another very [...]

Saturday, May 27th, 2006 at 11:49 | 0 comments
Categories: PHP, Tips & Tricks
Tags:

Paypal‘s IPN can be frustrating at times and any programmer who’s worked with the IPN would know what the sandbox is for. It’s truly a wonderful thing. It let’s developers test out the IPN integration without having to spend anything through their own account.

Tuesday, April 11th, 2006 at 11:38 | 0 comments
Categories: PHP, Tips & Tricks
Tags:

Wonderful is the word. For those who don’t know what AWS is, it’s the Amazon API for accessing their info. There are hundreds and hundreds of sites out there using this API to power their affiliates stores. Amazon pays the affiliates 10% of all sales generated if the site manages to make a sale for [...]

Monday, November 21st, 2005 at 11:32 | 1 comment
Categories: PHP, Tips & Tricks
Tags:

I recently recieved a project from ScriptLance to generate PDF reports from MySQL data using PHP. I hadn’t really experimented with report generation in PHP so I had little idea what I was getting into. So I surfed over to PHP.net and started reading. A few minutes later I tried out a couple of examples [...]

Monday, November 21st, 2005 at 03:28 | 0 comments
Categories: PHP, Tips & Tricks
Tags:
TOP