Mac Os X
Fri, Aug 2, 2013
Many applications use Core data for iOS devices, others utilize frameworks like fmdb. But there are also people that write SQLite access from scratch. The comes the answer - how do you cache prepared statements (I will not discuss here why we cache prepared statements)? Well - I have implemented 2 methods: 1) Using C syntax to maintain array of sqlite_stmt* 2) Using NSPointerArray* to store sqlite_stmt* that are prepared First approach has it’s advantages in regards of using older SDKs (NSPointerArray is available from iOS 6.

Sun, Aug 5, 2012
If you are developing for Android, you probably have already abandoned the emulator that comes with Android SDK, and are testing and debugging on a real device. I cannot blame you - the emulator is awfully slow. Well I have good news for you - you can speed it up, if you are using uX system (Unix like - Linux, Mac OS X, BSD). The trick is very simple - and I suppose some of you have already activated it - mount /tmp folder into memory.

Sun, Apr 29, 2012

I had encounter several times that when using MaxOS X Lion, when I try to unlock system preferences (usually for setting user access, privacy settings, etc) - the unlock icon does not respond - does nothing.

Well - google-ing all over - I found my solution. Just open terminal and type the following 2 commands:

rm -rf ~/Library/Preferences/
sudo killall -9 securityd


Sat, Mar 17, 2012
Once you have experience (or not) with some uX system, at some point you have to deal with environment variables, especially if you intend to do some development. I used to come from Open Source uX systems, and some old ones like HPUX, AIX, Solaris. When I switched to OS X, which is to some extent BSD - I had to find the best way to deal with env. variables. So - here are the ones that I use

Sun, Dec 25, 2011
It is very unlikely, but that comes with MacOS is sometimes very buggy. Often it does not quit safely, and you have to kill it using Activity Monitor. It is especially annoying when it prevents computer from Shutdown. There is one trick, that at least for me - works every time. Before you quit the - turn all accounts offline: Wait until all accounts move to offline mode (Flash sign at the end of account) and quit Mail.