A A

Archive | Ruby

How to Maintain Static Sites with Git & Jekyll

Tuesday, March 31, 2009

4 Comments

Static sites in this context just means non-database driven sites. Your static site can be an elaborate PHP script or just a few markup and image files. For this I am using Jekyll – A neat Ruby gem that makes your static sites dynamic. It lets you create layouts and embed custom variables in your [...]

Scraping Google Trends with Mechanize and Hpricot

Saturday, January 24, 2009

3 Comments

This is a small Ruby script that fetches the 100 trends of the day for a specific date. If multiple dates are searched, one can find out how many times a keyword occurred between two dates, or just find out what keywords are constantly appearing on the top 100 list. The script is incomplete and [...]

AnimeCrazy Scraper Example Using Hpricot & Mechanize

Sunday, January 11, 2009

2 Comments

This is a little (as of now incomplete) scraper I wrote to grab all the anime video code off of AnimeCrazy (dot) net. This site doesn’t host any videos on its own server, but just embeds ones that have been uploaded to other sites (Megavideo, YouTube, Vimeo, etc). I don’t know who the original uploaders [...]

Script to Quickly Setup WebApp Environment and Domain

Saturday, October 11, 2008

0 Comments

Just sharing a script I wrote to quickly deploy WordPress (and eventually a few other webapps) sites, which somebody might find useful. This uses Linode‘s API* to add the domain name to the DNS server along with some subdomains. If you’re using another server, (Slicehost, your own, etc), you can alter the dns class to [...]

Got API? Instantly Search API Documentation

Sunday, June 1, 2008

0 Comments

gotAPI.com does an excellent job congregating API documentation for numerous programming languages under an AJAX interface. No more bulging neck veins or fulmination when you can’t remember the order of those pesky arguments. No support for your favorite language? Contribute. You can add a gotAPI Search Widget to your site: http://www.gotapi.com/widgets/index.html See Ruby/Rails widget below [...]

How to POST Form Data Using Ruby

Thursday, April 24, 2008

3 Comments

POSTing data on web forms is essential for writing tools and services that interact with resources already available on the web. You can grab information from your Gmail account, add a new thread to a forum from your own app, etc. The following is a brief example on how this can be done in Ruby [...]

Expanding List of Ruby on Rails Sites, Editors, Tutorials, Cheat Sheets and More

Wednesday, January 2, 2008

9 Comments

Most of these Ruby on Rails related links are right out of my bookmarks. I checked for 404s and added more recent entries, but this list is far from complete. New blogs, sites, tutorials and tools are released on a daily basis. Just leave a comment or contact me if you want your link(s) or [...]

Using Vim as a Complete Ruby on Rails IDE

Thursday, December 13, 2007

36 Comments

NOTE: If you are experiencing segmentation faults with vim and rails.vim, see this post. When coding in Ruby on Rails, you’ll usually be switching between files and running scripts a lot. It can be time-consuming and frustrating coding Rails using a traditional text editor designed for working on big files individually. Vim lets you hop [...]