16 June 2010

[UILabel sizeToFit]

This method is great for making a text label's height and width fit the text that's inside it.


CGRect frame = CGRectMake(0, 0, 320, 480);
UILabel *myLabel = [[UILabel alloc] initWithFrame:frame];
myLabel.text = @"Any size text string";
[myLabel sizeToFit];


Thanks to the Stack Overflow community for teaching me about this.

07 June 2010

Essential Keyboard Shortcut for Numbers

Numbers just isn't usable without a mouse if you don't know this shortcut. To paraphrase, Option-Return allows you to edit existing data in a cell.

I also found that you can start typing when a cell is selected to wipe out any existing content in that cell and replace it with what you type.

Hitting Enter while in edit mode leaves edit mode.

26 May 2010

Build script for iPhone ad-hoc distribution

Put this script in the root of your project directory, tweak for your project, and run it to build your iPhone app for ad-hoc distribution.



In case the script above isn't showing up for you, get it from here.

19 May 2010

Android - ignoring files from version control

To summarize the discussion here, you can ignore the following files and folders from version control for your Android app:

bin
gen
default.properties
.settings
.classpath
local.properties

12 May 2010

Tutorial: Turn Your Mac Into an AirPort Base Station

Awesome! If you're tech-savvy (and maybe even if you're not), this tutorial is unnecessary, but I didn't even know I could do this with my Mac! One more reason for me to love my Mac... :)

05 May 2010

The commuting paradox

I'm so glad I have a short drive to work and the ability to work from home when I need to. This post helped me to appreciate it even more.

03 May 2010

Quote: A very good senior programmer...

Linchpin: Are You Indispensable?


"A very good senior programmer (who might get paid $200,000) gets paid about the same as a great programmer, who delivers $5 million worth of value for the same price."

- Seth Godin, Linchpin

Thanks, Seth.