- FAQs (10)
- Game Programming (8)
- Installing Ruby (8)
- NoSQL Databases (2)
- Padrino (5)
- Rapid Game Prototyping with Gosu (17)
- Sinatra (9)
- Text Adventure Games (7)
- The Mechanize 2.0 Handbook (7)
- Using the Git Version Control Tool with Ruby (14)
Making Digraphs in Ruby
Digraphs are extremely useful for hierarchical data visualization. However, they're not very easy to generate yourself. This is where Graphviz and the Graph gem come in.
The Mechanize 2.0 Handbook
Mechanize is a library for automated interaction with web sites. For all intents and purposes, it acts like a web browser with no user interface. It downloads web pages, can click on links, fill out and submit forms, store cookies, etc. Mechanize is useful for automated crawling, testing and scraping of web sites.
The JSON Gem
It's easy to jump into parsing and generating JSON in Ruby with the json gem. It provides an API for parsing JSON from text as well as generating JSON text from arbitrary Ruby objects. It's easily the most used JSON library in Ruby.
Spotlight on Gems: interactive_editor
Every once in a while, you come across a gem or library that seems so simple and natural, you think it aught to be a feature built into Ruby. Well, interactive_editor is one of those gems. In short, it allows you to launch an editor from IRB to edit your code, without having to rely on IRB's sketchy editing.
Interfacing with the Arduino on Linux
How to interface with the Arduino's serial port on Linux.
Automatically Following Followers on Twitter
Since the Twitter API makes it easy to do anything you can do on the website, writing a script to automatically follow followers is very simple.
Update Twitter From an RSS Feed
This Ruby script to update Twitter from an RSS feed is what's often referred to as a "mashup." Mashups interface one protocol to another, or one website to another. This mashup takes information from an RSS feed and posts it as updates to Twitter.
Be Notified of New Twitter Updates by IM
It's a pain to switch to a Web browser every you want to check your Twitter updates. This script solves that by sending you an instant message (IM) using the Jabber protocol when there's something new to see on Twitter.
Spotlight on Gems: Dynahash
The dynahash gem allows you to access hash members as if they were attributes.
How to Send Email with Ruby on Rails
How to send email with SMTP in Ruby.
How to Use Ruby to Check Email
Learn to use Ruby's pre-installed POP3 libraries to check your email.
Generating Cryptograms With Ruby
This Ruby script will generate a cryptogram out of any text file. It can be used to decrypt messages for various tasks and will be of particular interest to Geocachers!
How to Write Log Messages in Ruby
How to create and write to log files in Ruby.
How to Check Email with Ruby
How to check your POP3 email accounts in Ruby.
Challenges to test your Ruby programming skills.
Deploy Applications with Capistrano
How to deploy Ruby applications with Capistrano.
Test-driven Development with Rails
Use test-driven development to ensure your Rails applications work as intended.
The Rake Build Language
Use the Rake build language to automate tasks.
ARGF, a Shortcut for Scripts
A common task in command line scripts is to take each file listed on the command line and read them as one long stream of bytes. Ruby has a convenient shortcut for that: ARGF.
Use SQLite with Rails
How to use SQLite (a smaller database program than MySQL) with Rails.
Redcar is a self-hosting Ruby editor. It's written in Ruby, it's extensible in Ruby and its primary focus is editing Ruby code. It's currently in active development and it's getting quite mature.
Getting the Domain From a Hostname
The question was asked: "Given a hostname, how do I get the domain?" There are a few simple solutions to this, but they're all wrong.
Command Line Tools using Execute
There are numerous libraries to parse command line parameters, but they all involve some sort of API or meta language to define these arguments. The Execute gem skips this step and provides a command line interface for a class with just a few lines of code added. The only catch is that you code must follow a few simple conventions.
Structure of a JSON Document
JSON is a data serialization format for communicating between applications. It's a text format that features a lightweight syntax and closely mirrors the common data structures in modern programming languages.