Core data peer-to-peer synchronization

by john on November 15, 2013

Drew McCormack is the developer of ensembles: Ensembles extends Apple’s Core Data framework to add peer-to-peer synchronization for Mac OS and iOS. Multiple SQLite persistent stores can be coupled together via a file synchronization platform like iCloud or Dropbox. The (…)

Read the rest of this entry »

Using Python to disassemble a block in LLDB

by john on November 15, 2013

Luckily, LLDB has a very powerful script bridging interface where the entire LLDB API is available as Python functions. In this article I’ll go through the creation of a Python script that we will be able to invoke from the (…)

Read the rest of this entry »

Create a basic web-server on Mac OS X

by john on November 14, 2013

Mac OS X (including Mavericks) has an integrated web-server. This is really handy if you need to do run through some basic development/testing from your Mac, without the trouble of finding/configuring a remote server. Follow these steps: 1) Run the (…)

Read the rest of this entry »

Create bootable Mavericks install on USB drive

by john on November 14, 2013

ars technica explains how to create a bootable install of Mavericks on a USB stick. This is a nice to have if your harddrive ever goes south.

cURL open source tool and library

by john on November 13, 2013

cURL: Curl is a command line tool for transferring data specified with URL syntax. libcurl is the library curl is using to do its job. cURL is an awesome tool for talking to web-services via the command line. You can (…)

Read the rest of this entry »

Code review and auditing tools

by john on November 12, 2013

Phabricator is an open source collection of tools for: reviewing and auditing code; browsing repositories; tracking bugs; hiding stuff from coworkers; and also some other things. so features; such applications; In addition to the GUI interface, there are command line (…)

Read the rest of this entry »

Using bitwise operators in C and Objective-C

by john on November 11, 2013

One of the wonderful(?) things about Objective-C is that it’s based on C. Part of the power of C is bit-bashing, where you can manipulate individual bits inside of a piece of memory…That being said, there are times where bitwise (…)

Read the rest of this entry »

Simplified grand central dispatch (GCD) coding

by john on November 7, 2013

Rasmus Andersson is the developer of LazyDispatch: I’m a lazy person and so it hurts me when I have to write so much to do such common things as to schedule various blocks of code in various dispatch queues. This (…)

Read the rest of this entry »

Python, iOS 7 screenshots and the status bar

by john on November 5, 2013

Dr. Drang writes a Python script to capture iOS app screenshots, overlaying the status bar for consistency. If you are just getting started with Python, this is a good example that demonstrates some basic image manipulation with Python.

Enable copy and paste in Finder Quick Look

by john on November 4, 2013

By default, Quick Look does not allow copy/paste when previewing a document. Here’s a quick fix. From a terminal enter the following: $ defaults write com.apple.finder QLEnableTextSelection -bool TRUE; $ killall Finder

Why are there two NSObjects in Cocoa?

by john on November 4, 2013

Mike Ash does a bang up job answering this question: There are two NSObjects in Cocoa, a class and a protocol. Why both? What purpose do they serve? Mike briefly covers namespaces, root classes, proxies and protocols.

Manage Mavericks tags from the command line

by john on November 1, 2013

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 (…)

Read the rest of this entry »

Web toolkit to automatically display online status

by john on October 31, 2013

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.

How to fix Xcode 5 quick help bug

by john on October 31, 2013

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 (…)

Read the rest of this entry »

Becoming a programmer, a personal summary

by john on October 30, 2013

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 (…)

Read the rest of this entry »

Crash course on AWK

by john on October 30, 2013

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 (…)

Read the rest of this entry »

C regular expression engine for data streams

by john on October 29, 2013

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.

UIColor macros for Objective-C

by john on October 29, 2013

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 (…)

Read the rest of this entry »