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 Support item, if it fails with an error message saying:
The chosen folder is not a valid Android SDK. Please ensure you have installed it correctly, and enabled support for Android 2.2 (Froyo).
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 your project down can help you finish your project and not go crashing into a wall
.
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. But for something that is larger, requiring perhaps a multi-step process with things that can go wrong in each or all of the steps, it is much harder. I keep procrastinating for days on end until my puny brain has wrapped itself around whatever needs be done end-to-end and I feel that I will be able to take care of all the loose ends and all corner cases are considered — mentally. Only then can I start coding.
But this method does not scale and also it’s hard to give a project schedule and tell when you’ll be done with some module
.
I need to figure out some way of divide-and-conquer programming where I don’t need to have the entire thing in my head, but have just pieces of it in my head at a time, code that piece and be comfortable that the particular piece has been coded correctly — and that the way it’s been coded it will interact correctly with all the other pieces making the old adage of the sum of the parts being larger than the whole come true.
Oh well. I guess I cannot be everything all the time. Back to wrapping my head around this current problem…why is it that people find web-development easy and I keeping finding it hard and wondering why no-one sees that it is complicated distributed programming? That things can go wrong anytime and everywhere.
How do you deal with coding of such nature? Let me know in the comments.
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):
SendGrid
Postmark
CritSend
SocketLabs
Amazon SNS : It seems like SNS can be used for this and would be a cheaper option than the rest, but no personal experience with it.
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 dicing of the information (specially when debugging).