Paypal Mass Pay API
When I started working on the Paypal Mass API I found very few resources on it. So Im guessing this might serve as a useful guide for people starting off. This post only describes the setting up of the...
View ArticlePeriodic Database Backups
When you have a fairly stable web application running in production with reasonable user traffic (or even otherwise) backing up your production database provides you with a security net against...
View ArticleDo while loops in Ruby
I’ve been programming in Ruby for almost a year now and I had no clue this existed. I came across this when I was looking at how best to emulate a do while loop in Ruby. Apparently there is a do-while...
View ArticleUnderstanding the &: Ruby syntax
The symbol.to_proc method was something I hesitated to use for a long time because I found it be unclear and something that went against Ruby’s clear and easy to understand syntax. Though this subject...
View ArticleChaining methods using ‘tap’ method
The Ruby tap method is one the methods that makes you wonder about the thought that has gone behind writing the language. It belongs to Ruby 1.8.7 and above. What does tap do Tap allows you to create a...
View ArticleEvent Machine: A sample application to learn about event machine
I have been playing around with event machine for a couple of days now and have been trying to work out a basic (quick and ugly) example to understand how it could be used for simple applications....
View ArticleEventMachine: Deferring Time consuming tasks to a separate thread
A small update on my last post which focuses on building a sample twitter feed application using eventmachine and the twitter gem. If you’ve already gone through the documentation and references,...
View ArticleImproving on the original AMQP chat application
Continuing from where my earlier post on AMQP left off, this post describes the changes introduced to make the application more object oriented, shifting from the fanout exchange to direct exchanges...
View ArticleAsync Responses in Thin and a Simple Long Polling Server
I’ve been playing with Thin, the Ruby web server which packages the awesomeness of Rack, Mongrel and Eventmachine (\m/). However, the thing that blew me away completely was the James Tucker’s Async...
View ArticleMongodb – Understanding how journal mode works with j:true
One of things that has recently confused me with Mongodb while using Mongoid with the Moped driver is the use of the journal mode and the j:1 write concern. Journal Mode The journal mode ensures that...
View ArticlePaypal Mass Pay API
When I started working on the Paypal Mass API I found very few resources on it. So Im guessing this might serve as a useful guide for people starting off. This post only describes the setting up of the...
View Article