My office buddies. on Flickr.
I wanted to creatively express my affection for my daughter, Augusta, in a way I know best. I chose Ruby for its flexibility and elegance. My hope is to introduce her to its boundless beauty someday soon using this composition.
This is a real, working, program which outputs “Augusta, we <3…
The corn city central
is where we play
corn city central
fructose all day
run that ball, plow that field
all the sugars is what we yield
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.
(Source: news.ycombinator.com)
- 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 37signals commonly avoids Mass Assignment vulnerabilities. Should be used in addition to attr_accessible.
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.
- 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 moviepilot.com, a large single-page application.”
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 ffmpeg
This can take a couple minutes as it installs all of its dependencies and compiles. Note that the --use-gcc flag is used because as of this writing ffmpeg does not compile with LLVM, and there are several issues already open about it.
And then to change a directory full of flac files to alac, run this bash one-liner:
$ for file in *.flac; do ffmpeg -i "$file" -acodec alac "`basename "$file" .flac`.m4a"; done;
This process didn’t take long at all. It appears that there isn’t any transcoding happening, more likely just a repackaging of data.
I found several other solutions of interest like Fluke to play flac files in iTunes but you would still need to convert them inside iTunes to alac, and, as of this writing, Fluke does not work with iTunes on OS X 10.7 (Lion) in 64-bit mode. You can how ever bypass that by running iTunes in 32-bit mode.
Another tool I found was XLD but I did not test this option since the ffmpeg option was so simple and easy.




