Articles

Integrating Flickr into your rails website

In this post I’m going to show you how I created the little Flickr stream you can see running down the right hand edge of this site.

Step 1: Get a Flickr API key

Visit this page and follow the instructions to get a key and write it down somewhere safe. Of course you are going to need a Flickr account to do this as well!

rails gotchas: restful_authentication not 2.0 compliant?

restful_authentication[1] is a great plugin, but the standard svn version is showing it's age. It's a whole month or so out of date... which is, of course, an eternity in the fast-paced world of Rails.
Luckily it's actually just moved home. You can find the up-to-date version on github

[1] Formerly known as acts_as_authenticated

Save images from any URL

Save images from any URL

Note: it will works only OS –> WINDOWS and Browser –>  IE

1. install Ruby

2. Install watir gem – gem install watir

3. Look this code

Code:

require ‘watir’
include Watir
#browser = Watir::IE.new
browser=Watir::IE.new
browser.visible=true
browser.goto(’http://www.misipile.com/’)

idx = 0

Github Bookmarklet For User Pages

I have a confession to make. I use github all the time. In order to feed the addiction, I decided to logically awesomeize github’s user page. What ensued was a jQuery plugin/bookmarklet which enhances the github user page with repository sorting. And yes, my addiction has only gotten worse.

Test Drive

Copy the bookmarklet:

Original Author Name: 
Gabriel Horner

rails gotchas: HttpMock not enough variables

A quickie for my own remembrance. I'm currently setting up HttpMock to test ActiveResource. I'd set up a few extra "routes" for it to mock out and kept getting the error below:
NoMethodError: undefined method `size' for :not_found: Symbol
For the code line:
mock.get "/users/#{uid}.xml", {}, :not_found
The fix was pretty simple - I'd just accidentally missed out the "nil" for the body - ie it

Rails - Useful Plugins

In updating myself I found some really useful Rals plugins for my next project.

Hoptoad Notifier

FilterableEnumerable

My recent post on Enumerable#filter created a bit of discussion on RubyFlow, which led to a m

Twitter Gem Reborn with Fewer Features and 100% More OAuth

In which I show off the rewritten Twitter gem and an example app that takes advantage of it.

The Twitter gem is kind of my baby. It was pretty much the first gem I created and as such I care for it a little more. When I originally created it, I knew nothing. I sucked. Now over time, I suck less and Twitter’s addition of OAuth seemed like the perfect time to completely rewrite it. Yay for rewrites!

Passenger 2.1.3 packages for Ubuntu Hardy

Phusion Passenger 2.1.3 has been released and we’ve updated our Ubuntu packages as usual.  Instructions in the usual place on our wiki.

More on data driven design

It’s hilarious to listen to and read designers talking about how they think google design sucks.

For example, in this podcast they all agree at the end that, in their expert design opinions, google needs to add more padding and whitespace.

RubyForge Theme | Rails Fire

RubyForge Theme

Tom Copeland recently brought to light the existence of my RubyForge theme. It’s been around for awhile, but not something we really announced (just a mention on the credits page).

I was pleasantly surprised by the number of people who’ve elected to use the theme. If you’re in the market for a change of pace, please try out the theme. Your feedback (as always), is welcome.