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.
$ 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
The reason I don’t have a plan is because if I have a plan I’m limited to today’s options.
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 restriction on the most valuable thing in the world: time.
(via parislemon)
Reblogged for truth! Why settle for anything less?
If I could hug a quote, I would.
Your work is going to fill a large part of your life, and the only way to be truly satisfied is to do what you believe is great work. And the only way to do great work is to love what you do.
- Steve Jobs
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…
About this video:
In early 1984 the Imagine team were working on a spectacular project known as Bandersnatch. The game was to come in an A4 sized box containing around 30 ‘goodies’ including a required additional piece of hardware for your Spectrum computer. The retail price of Bandersnatch was expected to be around £40 and it was to be a completely new concept in computer games. Apparently 10 professional artists were working on the graphics alone. Bandersnatch was never released. On the 9th of July 1984, Imagine went bust after only 18 months of operation. Interestingly, its demise was documented by a BBC television program.
This is an incredible piece of game industry history. A must watch.
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…

