Thu, Nov 14
Web

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 following from a terminal:
sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plist

2) Place html content into the folder /Library/WebServer/Documents/

3) Open web-browser and point to: http://localhost/filename

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.

Wed, Nov 13

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 use libcurl if you need to embed cURL functions into an application, for example a test tool to exercise your Mac or iOS apps.

Tue, Nov 12

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 tools available.

Mon, Nov 11
C

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 operations appear in the Cocoa APIs, so it’s good to be comfortable with a couple of basic operations.

With that intro, Mark Dalrymple of Big Nerd Ranch covers the basics of working with bits and the related operators.

Thu, Nov 7

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 little thing lets me write less code with the added bonus of making the result more readable.

LazyDispatch includes code to simplify usage of dispatch queues, blocks and timers.

Tue, Nov 5

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.

Mon, Nov 4

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

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.