Ilikestuffblog - ilikestuffblog.com - I Like Stuff

Latest News:

Do you Want to Spam Your LinkedIn Contacts and Be Humiliated? Try FounderDating. 26 Apr 2013 | 10:11 pm

A week ago, a friend of mine asked me to write a recommendation for him on FounderDating.com. I happily complied, and when I was done writing the recommendation I was shown pictures of a bunch of my L...

Establishing a Connection to a Non-Default Database in Rails 3.2 22 Sep 2012 | 08:55 am

If you’ve ever built a Rails app in which some models don’t connect to the default database, you know that establish_connection is the method you would call make the connection. But before I get to th...

You Should Update One Gem at a Time with Bundler. Here’s How. 2 Jul 2012 | 06:21 am

[Update: added example of updating the sextant gem, which causes Rails to be updated as well.] Hey Ruby developers, When you run bundle update to update your gems, it updates all of them at once. If...

How to Find a Record in ActiveRecord Using either an ID Or an Object 13 Jun 2012 | 12:58 am

Have you ever written written code in an ActiveRecord model where you wanted the caller to be able to pass in either an object or an id? In this example you want to know if a user has read a post. Yo...

How to Make HTML5 Autofocus Work in IE 30 Mar 2012 | 01:51 pm

If you want to use HTML5′s autofocus attribute and make it work in all browsers, here’s an easy way to do it in one line of jQuery. This code will bail out and do nothing if the browser supports HTML5...

Send a Page from Safari to Opera Mini When You Need to Reflow Text on the iPhone 26 Mar 2012 | 11:12 am

You’re on your iPhone surfing the tweets and you come across a link to an article or discussion you want to read. You click it and start reading. But the text is too small so you two-finger zoom. But ...

19-Minute Video: CoffeeScript for Rubyists 12 Jan 2012 | 06:44 pm

If you’re a Ruby programmer and want a quick little intro to CoffeeScript so you can decide whether you might want to use it, check out the 19-minute talk I gave last week at a really fun Code Social ...

How to Free Up Inactive (Blue) Memory in Mac OS X 10 Nov 2011 | 07:48 am

Want to turn Activity Monitor’s “blue” (inactive) memory to “green” (free) on your Mac without closing any programs? Run Terminal and type: My memory went from  to   the last time I did this. Not to...

Use Spin for Faster Test Iterations 5 Nov 2011 | 07:10 am

Do you ever re-run the same Rails test file over & over while working on a feature and trying to “make it green?” Change the code, run the test, change the code, run the test, etc. (I’m talking about ...

Dear GitHub: Please Improve Your Notifications 15 Jul 2011 | 01:00 pm

An Open Letter to GitHub Dear GitHub, Hi guys! Guess what: GitHub’s great. Yeah, you know that. But hey: could you please fix GitHub notifications? They seriously suck. No, really, I mean it. They...

Recently parsed news:

Recent searches: