skip to content

Archive for November, 2009

Detecting iPhone/iPod version

In some cases it is required to change application behaviour depending on iPhone or iPod Touch device version.

#import <sys/utsname.h>;
...
struct utsname u;
uname(&u);

After calling uname() function, u.machine will be “iPod1,1″, “iPod2,1″ for iPod Touch and “iPhone1,1″, “iPhone1,2″, “iPhone2,1″ for iPhone (or similar depending on current device).

Source:

SQLite Sorcerer – great application for editing SQLite

Last few days I spent a lot of time looking for clean and simple tool for viewing and editing SQLite databases. As a user of Windows and Mac computers, I wanted it to be multiplatform so I could use it on both machines. And finally I found it – SQLite Sorcerer.

sqlite-sorcerer

It’s written using Adobe Flex and AIR so it runs as standalone application on all supported operating systems. There are no fancy features available in many commercial applications, but I am sure that there is everything that most users need during day-to-day usage of SQLite.

Download SQLite Sorcerer 1.5

RegExhibit

RegExhibit is great Mac OS X tool for testing regular expressions.

Python – testing regular expressions

Very nice and simple online Python regular expressions tester: Python Regular Expression Testing Tool.