Fri, Nov 1

As a guy who spends much of his time in a terminal, this looks interesting…

James Berry:

tag is a command line tool to manipulate tags on Mac OS X 10.9 Mavericks files, and to query for files with those tags. tag can use the file system’s built-in metadata search functionality to rapidly find all files that have been tagged with a given set of tags.

Thu, Oct 31
Web

Offline.js:

…a library to automatically alert your users when they’ve lost internet connectivity. It captures AJAX requests which were made while the connection was down, and remakes them when it’s back up, so your app reacts perfectly.

Recently I was coding in Xcode 5 … and I noticed a bug when trying to view the quick help for a symbol. This is usually done by option clicking on a symbol in the Xcode editor pane. The quick help popup window would show up and then rapidly shrink down to nothing. Most mysterious.

Oliver Jones shares the command line fix provided by Apple to fix this innocuous bug.

Wed, Oct 30

Robert Read on how to become a programmer:

To be a good programmer is difficult and noble. But it is really child’s play compared to everything else that a good programmer must do to make a software system that succeeds…In this essay I attempt to summarize as concisely as possible those things that I wish someone had explained to me when I was twenty-one.

Interesting and thought provoking, even if you are an experienced coder.

Bill Phillips of Big Nerd Ranch presents a short intro to AWK:

If I’m hacking together something on the command line, chances are good that I’m using AWK for some part of it.

There are plenty of great resources on how to use AWK. Rather than write another one, this short post will show you the basics of what AWK is, and what it’s good for.

This is a good post to get the 30,000 foot view of AWK and its use on Mac OS X.

Tue, Oct 29

Yichun Zhang is the author of sregex, a non-backtracking regular expression engine designed to work on large data streams.

The syntax follows Perl 5 regex. There is an included test suite, also written in Perl.

Below are two macros I paste into most every project. Besides saving a few keystrokes, they work well when using the color picker application. Let’s look at the macros first:

#define RGB(r, g, b) 
    [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1]
#define RGBA(r, g, b, a) 
    [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:a]

Here’s the code without/with the macro:
Read more »

Mon, Oct 28

Don Southard on AppleScript and Mavericks:

Once I started to sink my teeth into some of the power-user features, though, it didn’t take long for me to really get sucked into trying out every new geeky addition, specifically all of the new AppleScript features.

In a surprising turn of events, Apple decided to breath new life into AppleScript and make it easier than ever to write clean and reusable scripts.

Graham Lee on the history of Cocoa:

First there came message-passing object oriented programming, in the form of Smalltalk. Well, not first, I mean first there was Simula 67, and there were even things before that but every story has to start somewhere. In 1983 Brad Cox added Smalltalk messaging to the C language to create the Object-Oriented pre-compiler. In his work with Tom Love at Productivity Products International, this eventually became Objective-C.

Graham goes on to provide information on a series of books, all leading to what we now know as Cocoa.

Happy Birthday Cocoa.