September 2013

You are currently browsing the monthly archive for September 2013.

I recently came across several bin/cue files on my OS X machine and realized that it’s a huge pain in the ass to convert these to an ISO image.

These directions will show you how to convert bin/cue files into an ISO image on a Mac OS X – including, how to convert a bin/cue AUDIO CD to a bunch of MP3 tracks.


Step 1: Download and unzip (go here for the latest version/original source)

Step 2: After unzipping, copy the bchunk executable into a temporary directory – preferably into the same location as your bin/cue files. This way, after you are all done, you can simply delete it.

Step 3: Open up a Terminal window and navigate to that directory.

Then make bchunk executable by issuing this command:

sudo chmod a+x bchunk

Step 4: Now we are going to actually convert those pesky bin/cue file(s) into an ISO Image.

Simply run bchunk by issuing the following command:

bchunk file.BIN file.CUE outputfile

Note: file.BIN and file.CUE reflect the bin/cue files you are trying to convert.

That will give us something like:

binchunker for Unix, version 1.2.0 by Heikki Hannikainen Created with the kind help of Bob Marietta , partly based on his Pascal (Delphi) implementation.
Support for MODE2/2352 ISO tracks thanks to input from
Godmar Back, Colas Nahaboo
and Matthew Green.
Released under the GNU GPL, version 2 or later (at your option).
Reading the CUE file:
Track 1: MODE1/2352 01 00:00:00
Writing tracks:
1: outputfile.iso 685/685 MB [********************] 100 %

Note: If you are missing a cue file, you will have to create a CUE file manually.

Step 5: Party like a rockstar in your underpants.

That’s it!


Help! bchunk is generating a bunch of .cdr files instead of a ISO file!

I kept getting a bunch of .cdr files initially. This was because my image was a multitrack Audio/Data disc. If you are faced with the same problem, you have two options.

You can either use bin2iso (get the entire toolset here) to convert the bin/cue image into a single ISO


…simply use the -w flag in bchunk to generate a bunch of .WAV files.

I used the latter because using bin2iso kept giving me broken ISO’s.

So, basically, you would use:

bchunk -w Image.bin Image.cue track

This will generate a bunch of track01.wav, track02.wav, track03.wav etc.. files which could be converted to MP3.

I hate iTunes and would recommend All2MP3 for all you OSX fanboys.

I know. I know. It’s a pain in the ass.

If you have a better method, I’d love to hear about it.

Amazon Listmania is nice.

It can drastically reduce the amount of back breaking research when it comes to compiling book lists on a certain topic/category. What if you were researching multiple amazon book lists and compiling your own list for some purpose? Do you copy and paste each title one by one? I hope not.

Here’s the problem: What if the book list(s) you are interested in contain 30, 60, 100 books and you need to export it to somewhere in plain old text?

Let’s say I am researching horror novels and I have found a worthy list.

I recently had this problem and I used a solution involving curl and regular expressions:

note: replace the listmania URL with your own. You will need to be on a *nix/linux/OSx machine.

curl -s | sed -n '/class="listItem">/s/.* alt="\([^"]*\).*/\1/p'

This will filter out all the useless junk from the page, parse out the Book Title and deliver it to you ONE LINE at a time in a readable (text) format.

This is the result:

Books of Blood, Vols. 1-3
The Best of H. P. Lovecraft: Bloodcurdling Tales of Horror and the Macabre
Song of Kali
The Shining
I Am Legend
The Silence of the Lambs
In the Flesh
Pet Sematary
Dark Gods
Hell House
The Haunting of Hill House
The Exorcist
Night Shift (Signet)
Something Wicked This Way Comes
The Damnation Game
The Stand: Expanded Edition: For the First Time Complete and Uncut (Signet)
The Night of the Ripper
Summer of Night (Aspect Fantasy)
Blue World
Dracula (Signet Classics)
'Salem's Lot
The Vampire Lestat (Vampire Chronicles, Book II)

Neat huh?

If you use this, please send me a chocolate muffin and a bottle of brandy as a sign of appreciation. You are welcome 😉

If you find that the command above stops working after several runs, Amazon is likely blocking the use of curl (I mean, who wants to be scraped uninvitingly?). In this case, simply change the default user-agent of curl to something else, so it looks like this:

curl -A 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:23.0) Gecko/20100101 Firefox/23.0' -s | sed -n '/class="listItem">/s/.* alt="\([^"]*\).*/\1/p'

That’s it.