Quantcast
Channel: Ruby – Sid__
Browsing all 11 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

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 Article


Image may be NSFW.
Clik here to view.

Periodic 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 Article


Image may be NSFW.
Clik here to view.

Do 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 Article

Image may be NSFW.
Clik here to view.

Understanding 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 Article

Image may be NSFW.
Clik here to view.

Chaining 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 Article


Image may be NSFW.
Clik here to view.

Event 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 Article

Image may be NSFW.
Clik here to view.

EventMachine: 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 Article

Image may be NSFW.
Clik here to view.

Improving 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 Article


Image may be NSFW.
Clik here to view.

Async 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 Article


Image may be NSFW.
Clik here to view.

Mongodb – 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 Article

Image may be NSFW.
Clik here to view.

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 Article
Browsing all 11 articles
Browse latest View live


Latest Images