Showing posts with label bash. Show all posts
Showing posts with label bash. Show all posts

Wednesday, August 27, 2014

Chuck Norris-ing a .pkg installer into submission (Updated 28-11-2014)

Or: How to install Legacy Mac OS X SDKs for Xcode

As you explore open-source Mac software, you will eventually have to build for older versions of OS X.

But you will need older OS X SDKs.

The solution? Roundhouse-kick an old, defenseless Xcode installer into a bloody mess, of course! Then you can find all its subinstallers—including the legacy SDKs!

Friday, July 12, 2013

Reading the Microsoft Word docx file format

After having done some programming to read Microsoft Word files, I thought I'd write about how the Word 2007 or Office Open XML file format is put together. This isn't complete, but this will get you started.

Cracking the door open

When investigating a mystery file, the first thing a Unix junkie does is run file on it. file is a nifty program that will try to identify what sort of data it's looking at, without paying any attention to the file extension. Let's do that now:
$ ls
Lecture 1.docx
$ file Lecture\ 1.docx 
Lecture 1.docx: Zip archive data, at least v2.0 to extract