By grok2 | October 6, 2011
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 [...]
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.
By grok2 | March 31, 2011
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 [...]
By grok2 | February 3, 2011
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. [...]
By grok2 | November 22, 2010
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 [...]
Posted in Uncategorized | Tagged firebug |
By grok2 | November 18, 2010
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
Posted in Uncategorized | Tagged misc |
By grok2 | November 12, 2010
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…
Posted in Uncategorized | Tagged php |
By grok2 | October 18, 2010
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 [...]
Posted in Uncategorized | Tagged misc |
By grok2 | October 6, 2010
Based on the diagram from here…
Posted in Uncategorized | Tagged misc |
By grok2 | October 4, 2010
…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 [...]