merlin:


Adventure Time #13
I’m so sending this to John Siracusa.


“firewall header”

merlin:

Adventure Time #13

I’m so sending this to John Siracusa.

“firewall header”

Jacques Fuentes: A letter to my daughter, Augusta, in Ruby

jpfuentes2:

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.

Letter To Augusta

This is a real, working, program which outputs “Augusta, we <3…

4 months ago 120 ♥

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

This hymnal of corn , brought to you by chefkittie.com.
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:

lolmath

Algorithm discussed and a Ruby implementation provided! Love this sort of applied statistics. Discussion in link below on HN.

(Source: news.ycombinator.com)

The 10 Rules of a Zen Programmer

Seriously Zen. Topics include:

  1. Focus
  2. Keep your mind clean
  3. Beginners mind
  4. No ego
  5. There is no career goal
  6. Shut up
  7. Mindfulness. Care. Awareness
  8. There is no boss
  9. Do something else
  10. There is nothing special

I already see myself improving from some of these values.

Mou

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.

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 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.

1 2