Notes


Slicing OS X fat binaries

Let’s say you have a fat OS X binary (aptly called RandomFatBinary) that might contain code for multiple architectures (PowerPC and i386) and you want to confirm that, and if so, slice out one the code for one (or both) architecture(s).

Start by identifying the multiple architectures using the file utility:

$ file RandomFatBinary
RandomFatBinary: Mach-O universal binary with 2 architectures: [ppc:Mach-O dynamically linked shared library ppc] [i386:Mach-O dynamically linked shared library i386]
RandomFatBinary (for architecture ppc):	Mach-O dynamically linked shared library ppc
RandomFatBinary (for architecture i386):	Mach-O dynamically linked shared library i386

Same thing can be accomplished using the lipo utility:

$ lipo -archs RandomFatBinary
ppc i386

IDA Pro can obviously do the same thing, if you have access to it.

IDA Pro

Obviously, the binary has two slices for PowerPC (ppc) and i386 architectures, now how do we get just the PowerPC slice?

$ lipo -remove i386 RandomFatBinary -output RandomFatBinary_ppc

This command will create a file named RandomFatBinary_ppc which will contain just the ppc slice (the i386 slice gets removed by the -remove i386 parameter). If you want to get the i386 slice, use the following command:

$ lipo -remove ppc RandomFatBinary -output RandomFatBinary_i386

Done. Make sure you don’t mix the commands and file names.

People

It occurs to me that most of the bitterness, hatred, and misery of the human condition is stuff that I’ve seen online. Most of the people I’ve known in my day-to-day life have been decent folks.

Rich

All rich people should be.

RIP Val Kilmer

RIP Val Kilmer

RIP Val Kilmer, see you beyond the Salton Sea. One of the best ever, love you Val, thank you for everything.

Dueling

Can we bring dueling back? I have a substantial list of people who have wronged me, that I would like to duel.

Software development

Once you realize that 90% of software development work is either useless or actively harmful to society, you can’t look back.

Achievements

We tell ourselves that material success will bring us joy and when it doesn’t we are left without room to run. Without anything to strive for successful people often feel that their achievements are empty.

Celebrities, actors, and others who live in the public eye feel it more acutely than others. Their careers feed on the fickle attentions of the plebiscite. If the public tastes have changed, they become washed up. Look at all the child actors who grow up into dysfunctional adults. Once they were no longer cute kids, the public had no use for them and acting, it seems, isn’t the best training for the “real world” of indifference and common neglect. Whereas once your needs were on everyone’s mind, now you’re just another anonymous no-face passer-by.

Goodbye, Dragon Inn, 2003

Goodbye, Dragon Inn, 2003

I don’t know, was there anything innovative here?

No one goes to the movies anymore, and no one remembers us anymore.

Production, not speculation

Always prioritise things that are real, work real jobs that make things you can see and touch. Go out with your high-school buddies instead of jerking off with your Discord clique. Production, not speculation. The West started falling when software engineers got paid twice more than hardware engineers.

The Conversation, 1974

The Conversation, 1974

The late Gene Hackman and Francis Ford Coppola in peak form in this classic surveillance thriller.

When I was a little baby, I used to love to bang my head up against the wall. No, really. I did. Sometimes I still feel like doing it ‘cause it’s comforting.

Nights of Cabiria, 1957

Nights of Cabiria, 1957

As long as Fellini’s Cabiria (the wonderful Giulietta Masina) smiles in the end of this tragicomic masterpiece, there is hope for all of us.

I sympathize with you. I came to tell you how moved I was. We can all pretend to be cynical and scheming. But when we’re faced with - purity and innocence - the cynical mask drops off and all that is best in us awakens.

The candid naivety of geeks

The whole point of the whole Amazon Alexa tech stack is to send information to Amazon. That’s the main goal of the thing. The fact that it is sometimes useful to you is a direct consequence of the thing sending information to Amazon. Just like Facebook linking you with friends is a consequence of you giving your information to Meta. Usefulness is only a byproduct of privacy invasion.

Having a fine-grained setting enabling “do not send all information to Amazon please” is, at best, wishful thinking. We had the same in the browser (“do-not-track”). It didn’t work. The candid naivety of geeks