Archives

Archive for the ‘Programming’ Category

If the debug session terminates unexpectedly when using the Flash Builder debugger to debug a Flash project in Firefox, this problem can be solved by going to about:config and changing dom.ipc.plugins.timeoutSecs from its default value to -1.

Nov 13th, 2011 | Filed under Flash

To customize the background image of the navigation bar, you can create a separate class extending UINavigationBar and override its drawRect method. To do that, first create a new class named STNavigationBar with the following definition in the STNavigationBar.h file: @interface STNavigationBar : UINavigationBar { } Then, implement the drawRect method in the STNavigationBar.m file: [...]

Jul 17th, 2011 | Filed under iOS

Since the short 1 is represented as 00 00 00 01 on big endian machines and 01 00 00 00 on little endian machines, it’s a rather straight forward matter to detect the endianness of a machine, by simply looking at how it stores a short. #include <stdio.h>   int main() { unsigned short i [...]

Jun 12th, 2011 | Filed under C, Programming

If you’d like the Android emulator to store its temporary files in a directory different from /tmp/android (maybe you’re sharing your computer with someone else that needs to run the emulator and you both want to run it at the same time), then there’s unfortunately no other way to do it but to change it [...]

May 3rd, 2011 | Filed under Android