Hide PostgreSQL User in OS X Lion 10.7

After installing PostgreSQL 8.4 on Lion, a PostgreSQL user pops up in the login window.
To hide system users (including the PostgreSQL user) type the following in your terminal:

sudo defaults write /Library/Preferences/com.apple.loginwindow Hide500Users -bool TRUE

Mac OS X 10.7 Lion Truecrypt Howto

Just so I can save you some time: Truecrypt 7.0a doesn’t work out of the box with Lion.

To get it running follow these steps:

  1. Download & Install Truecrypt 7.0a for Mac
  2. Download & Install: http://www.tuxera.com/mac/macfuse-core-10.5-2.1.9.dmg
  3. Reboot
  4. Use Truecrypt

Will iPhone 4 Blend?

Non issue. Just avoid holding it in that way.

Hilarious: Jon Stewart Appholes

The Daily Show With Jon Stewart Mon – Thurs 11p / 10c
Appholes
www.thedailyshow.com
Daily Show Full Episodes Political Humor Tea Party

Apotheken app launched today!

Get the iPhone Apotheken (Pharmacies) App here: http://www.apoapp.at

Zimt – OpenResearch iPhone Library

We just started our own public iPhone library: http://github.com/openresearch/zimt

For now it includes:

ZTFakeLocationManager

CLLocationManager subclass that can read a list of waypoints from a file and simulate location updates. Meant to be used on simulator for testing. See samples/FakeLocation

ZTWebSocket

Probably the first WebSocket client implementation written in Objective-C

Fuel Cell RC Car – fast and lasts long

http://www.horizonfuelcell.com/hobby_rc.htm

Pretty amazing!

How to get the current iPhone Language Code

We are currently developing an iPhone App which requires localization support and I ran into an issue while trying to get currently set language.

Cocoa Touch has a class called NSLocale which let’s you query the language by writing the following code:

[NSLocale currentLocale] objectForKey:NSLocaleLanguageCode];

At least one would expect so, but it actually gives you the language of the region format you have configured in your settings.

For example:
If you have your iPhone language set to ‘English’, but your region format is set to ‘Germany’, the call will return ‘de’ instead of ‘en’.

What you really should call is:

[[NSLocale preferredLanguages] objectAtIndex:0]

Because this gives you not the language associated with the region, but the language the device is actually configured for.

The Antikythera Mechanism

Advanced Imaging Reveals a Computer 1,500 Years Ahead of Its Time