Category Archives: Programming

Bits and pieces of know how picked up over the years.

Strange Shared Preferences Loss

Since recently deciding to try and avoid developing on the emulator I’ve come across a super annoying bug within Android which would basically lock you from being able to write to the shared preferences of your app. Examples are abound … Continue reading

Posted in Programming | Tagged , | Comments Off

Working on Things

First a quick lesson in Java (for myself). This was a half day lesson that I feel sheepish to admit but I figure hey, let me share! Below I will create an ArrayList which will contain a bunch of like … Continue reading

Posted in Programming | Tagged | Comments Off

PHP, AJAX, and Race Conditions

We came across a pretty interesting race condition regarding AJAX requests and our PHP back end. A quick search will find a few articles about the problem; this one I think sums it up best. There are some comments there … Continue reading

Posted in Programming | Tagged , | Comments Off

Flicka.mobi Goes Live

We’ve (Koa + me = MokaSocial, LLC) finally pushed out Flicka.mobi the official portal to Flicka, our Flickr application for the Android platform! It will bring all the free functionality of the Flickr website and add tons of integration into … Continue reading

Posted in Programming | Tagged | Comments Off

Rate Limiting in PHP

Recently I was having a discussion about putting together an API and some ideas about caching, rate limiting or flood protection, design patterns for rendering the output, scalability, and security came up. A while ago I came up with a … Continue reading

Posted in Programming | Tagged | 4 Comments

Emmm, Easter Egg Function

While carousing the code base I’ve been alerted of the existence of an interesting function: public static function the_answer_to_life_the_universe_and_everything() { $calculation = sqrt(9) * 12; $calculation = pow($calculation, 2); $calculation = ($calculation / 4); $calculation = ($calculation – 4); $calculation … Continue reading

Posted in Programming | 1 Comment

Stored Procedure: Part I

I finally got my stored procedure to work. Its a dynamic select stement for MySQL. It also has an output so you can check the executed query. Since this is a relatively new feature for MySQL (introduced with version 5) … Continue reading

Posted in Programming | 1 Comment