April 2012
2 posts
“The corn city central is where we play corn city central fructose all day...”
– This hymnal of corn , brought to you by chefkittie.com.
Apr 18th
4 tags
How Not To Sort By Average Rating →
PROBLEM: You are a web programmer. You have users. Your users rate stuff on your site. You want to put the highest-rated stuff at the top and lowest-rated at the bottom. You need some sort of “score” to sort by. The solution: Algorithm discussed and a Ruby implementation provided! Love this sort of applied statistics. Discussion in link below on HN.
Apr 3rd
March 2012
2 posts
5 tags
Unsecured Mass Assignment is Bad
A slew of github gists. I don’t understand why people don’t make these blog posts, I can only imagine the traffic they’re getting. Embedding gists is easy. Homakov shows us how he was able to compromise Github.com Jbarnette shows us how to make your Rails app warn on ActiveRecord::Base#update_attributes Wycats creates a Proposal for Improving Mass Assignment DHH on how...
Mar 7th
3 tags
The 10 Rules of a Zen Programmer →
Seriously Zen. Topics include: Focus Keep your mind clean Beginners mind No ego There is no career goal Shut up Mindfulness. Care. Awareness There is no boss Do something else There is nothing special I already see myself improving from some of these values.
Mar 3rd
2 notes
February 2012
1 post
Rails Went Off The Rails: Why I’m Rebuilding Archaeopteryx In CoffeeScript  What’s the waiter doing with the computer screen?  Skim Fat-free client-side templates with Slim and CoffeeScript “Crazy Deep” Rails 3.2 Example Apps and Tutorials Chaplin - “Chaplin is an example architecture for JavaScript applications using the Backbone.js library. The code is derived from...
Feb 24th
November 2011
2 posts
Mou
If you use Markdown, stop what you’re doing and check out Mou. Biggest features is as you type preview window, but it’s full of awesome features like custom color themes, fullscreen mode, and exporting to html.
Nov 8th
10 tags
Converting flac to alac using ffmpeg
In my last post I showed how to convert flac to mp3 using the lame encoder. In this post, I’ll show how to convert your flac audio files to alac (Apple Lossless Audio Codec). The main reason to convert flac to alac is to preserve lossless audio files in iTunes and even play them on your iPod/iPhone, natively. All that you need is to install ffmpeg, via Homebrew: $ brew install --use-gcc...
Nov 8th
7 notes
October 2011
1 post
6 tags
Bash one-liner to convert a directory of flac...
$ for file in *.flac; do flac -cd "$file" | lame -h -V0 - "${file%.flac}.mp3"; done V0 just because `-b 320` can be rather silly. On a Mac using Homebrew, just do the following: brew install lame flac
Oct 26th
21 notes
August 2011
5 posts
5 tags
“The reason I don’t have a plan is because if I have a plan I’m limited to...”
– Sheryl Sandberg profiled in The New Yorker (via garychou) 100% agree. It’s the same reason why I don’t like to schedule meetings in advance. I much prefer to do them on the fly because there are a million variables in a day that change constantly. What appears to be organization is actually just a...
Aug 28th
128 notes
6 tags
Aug 18th
2,195 notes
Matt explains why you should keep your SSH keys on...
Matt J.: it's like you have a specific call that you use to bring your falcon back to your arm
Matt J.: but then you go and buy a new jeep to get to the aviary
Matt J.: just because you have a new jeep, your falcon doesnt need a new call
Matt J.: he still knows the same call
Aug 15th
4 notes
9 tags
giant robots smashing into other giant robots:... →
thoughtbot-giantrobots: It’s been two and a half years since my last laptop. It’s neat to look back and see how much has improved since then for setting up a Ruby development environment. Of particular note, Homebrew, RVM, and Bundler did not exist back then. Here’s how I set up an OS X 10.7 (Lion) thoughtbot laptop…
Aug 15th
56 notes
3 tags
Aug 2nd
1 note
March 2011
1 post
kung fu grippe: The (Imperfect) Art of Sending... →
merlin: Securer file sharing with Dropbox « practically efficient Zip your files Put the zip file in your Dropbox ‘Public’ folder Email the file link, not the file Great advice on sending sensitive stuff via Dropbox . And pretty close to what I do. With this handful of paranoid additions…
Mar 14th
124 notes