Category Archives: Uncategorized

Using LiveCode (RunRev) with SDK Platform Android 2.2, API 8, revision 3

The current (LiveCode 4.6.3, Oct 2011) release of LiveCode for Android development does not accept the revision 3 directory structure of the Android 2.2 (Froyo) SDK and needs some directory structure tweaking as below: Copy the folder <android-sdk>\platform-tools\ to <android-sdk>\platforms\android-8\tools\ You need to do this when in the Edit menu Preferences dialog for the Mobile [...]

Share
Posted in Uncategorized | Tagged , , , | Leave a comment

Fragmentation when allocating memory

To reduce fragmentation specially in high-activity code, allocate temporary buffers (buffers that will live only for a short while) from a separate memory pool. The idea is to avoid long-lived buffers and short-lived buffers from being allocated from the same pool.

Share
Posted in Uncategorized | Tagged | Leave a comment

Focus on the road not the wall

An interesting essay on being the CEO by Ben Horowitz. The ideas he suggests for managing your own psychology as a CEO also appears useful in general. The following stood out for me: Focus on the road not the wall Focusing on things that need to be done and not focusing on things that bring [...]

Share
Posted in Uncategorized | Tagged | Leave a comment

Coding and Holding The Big Picture in Your Head

I find that I am often unable to complete some piece of code unless I have a mental picture of the whole thing in my head. And this is a huge problem. For small things, it is fairly easy to get a mental picture of what needs to be done and my coding happens fast. [...]

Share
Posted in Uncategorized | Tagged | Leave a comment

Firefox Firebug Add-On Notes

If you don’t see JavaScript that you know is on the page you are browsing, in the Script tab, then reload the page. If you want to see JavaScript errors as they happen on the page, look in the Console tab. In the Script tab, breakpoints can only be set on lines whose line numbers [...]

Share
Posted in Uncategorized | Tagged | Leave a comment

Ignoring white space when performing diff with Subversion

Subversion doesn’t seem to have support for ignoring white space changes when performing a diff against revisions. But it has an option to invoke an external diff utility. So I generally invoke GNU diff with it’s ignore white-space option as in below: svn diff –diff-cmd diff -x -uw /path/to/file

Share
Posted in Uncategorized | Tagged | Leave a comment

PHP function and method names are case-insensitive

Wow! You learn something new everyday. Today, I learned that PHP function and method names are case-insensitive! This after a couple of years of using PHP off and on…

Share
Posted in Uncategorized | Tagged | Leave a comment

Hosted SMTP / SMTP Relay Service

A few hosted SMTP (or SMTP Relay Service) providers (their servers are whitelisted, they manage bounces and can send out large volumes of email without attracting the attention of spam blacklisters or ISPs): SendGridPostmarkCritSendSocketLabsAmazon SNS : It seems like SNS can be used for this and would be a cheaper option than the rest, but [...]

Share
Posted in Uncategorized | Tagged | Leave a comment

Who is suing who in the mobile world…

Based on the diagram from here…

Share
Posted in Uncategorized | Tagged | Leave a comment

If you are going to print tablular information…

…in a console as a result of some debugging or control command, then try to ensure that any column that uses string or such similar output does not have spaces within that column. This helps with parsing output using tools like awk that are able to split by column and help with subsequent slicing and [...]

Share
Posted in Uncategorized | Tagged | Leave a comment