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. [...]
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 [...]
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 [...]
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 [...]
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 [...]
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 [...]
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 [...]
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.
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 [...]
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 [...]
