Ruby

Testing Sinatra Multipart File Uploads

Learn how to test sinatra file uploads using rack-test.

Communicating Between Ruby and PHP Using Named Pipes

Through the mkfifo command we can create a named pipe which allows us to communicate locally between processes as if we were simply writing to a regular file descriptor.

Pomodoro command line app written in Ruby

Pomodoro is a time / task management technique aimed at short iterations, in which you take a break after each task has been completed. This Rubygem allows you to manage all your tasks via the command-line with an extremely easy to use interface

DataMapper Pager Pagination Gem

dm-pager is a pagination gem for DataMapper, providing a feature rich pagination solution for both limiting records as well as the rendered html markup.

DataMapper lock gem

dm-lock is a gem we designed to provide optimistic locking capabilities to DataMapper.

Better Ruby Retryable Method

Simple, tiny, and efficient method for retrying a block of Ruby code several times.

The Evolution Of Ruby Iteration

Becoming proficient with Ruby requires that you have a good understanding of many aspects of the language, however I would consider iteration the foundation for most of this functionality.

Ruby Base64 Encoding and Decoding

Extremely simple base64 encoding and decoding.

Ruby Binary And Hex

Many of Ruby's to_* methods such as to_s, to_i, etc allow you to specify the base of which to convert to. For example base 2 is binary because its simply made up of 1s and 0s, on the other hand base 10 is decimal which is what we are all used to, and base 8 is octal, base 16 is hex, and so on.
Syndicate content