Dennis Ritchie, creator of the C programming language, has died at age 70.
This soon after my post on Steve Jobs, I’m unable to write much on the subject. But the C programming language was a major invention in the history of computers, and a significant step in the evolution of computers from academia and processing centres to programs for the real world.
I never met Steve Jobs. I’ve never even been in the same room as him, or (to my knowledge), the same city.
So why am I choked up about his death? Because I love the man for what he accomplished, and how he’s changed the world.
Continue reading “Steve Jobs shaped my life”
With Automatic Reference Counting (ARC) coming out soon, you could argue this post is coming almost too late. But there’s a lot of confusion over this, and I don’t think ARC will help much if you don’t understand the why of memory management.
After a couple years, I’ve come to adopt some very simple rules for memory management.
Continue reading “Objective-C memory management”
So you’ve set your Wii to 480p, then moved it back to a TV that supports only 480i. How do you fix it?
I searched for this for a while and found a few wrong and complicated answers.
Continue reading “How to reset Wii to lower resolution”
Blocks have many complicated uses, from event-based code to multithreading. But they can also be used for very trivial tasks, such as removing redundant lines from code.
Here’s a common operation for me: Split a list into sublists based on some piece of data changing within a loop. When the loop is over, dump whatever’s left into another sublist.
Continue reading “Blocks to remove redundancy”
Install Flux right now.
What does it do? Well, at sunset it adjusts the color temperature of your monitor to make it warmer and less glaring. At sunrise, it adjusts it back.
I installed it yesterday afternoon; yesterday and today at sunset, it automatically adjusted my monitor’s color temperature. The difference on the eyes is nothing short of amazing. And if you need to do some accurate color work, it has a menu that lets you turn it off for an hour.
What if you want to rename a file that’s used in multiple Xcode projects? Well, previously I’d rename the file in one project, then open each project in series and correct broken references. But I discovered today that this is unnecessary. If you open all of your projects first, Xcode will fix the references across all of your open projects as you rename files in any of the projects.
For all I know, this has always been a feature of Xcode. But I’ve never noticed it before. So for this stunning display of common sense: Well done, Apple!
Peter Hosey posted a list of warnings he turns on. Here’s the warnings I turn on. It’s mostly the same list.
Rather than set these per project, I have a .xcconfig file I add to my project. I then base each build configuration off this file. Changing the .xcconfig file changes all projects based on it (though with the current Xcode, it’s sometimes necessary to reload the project to get the settings to take).
Continue reading “Better Xcode warnings through .xcconfig files”
How do you change UINavigationBar’s title color? You can’t, directly, but you can substitute your own view.
Continue reading “Changing UINavigationBar’s title text color”