Code Hinting & Autocompletion for CodeIgniter in PHPStorm

Finally, moving back and forth between models, views and controllers is just too distracting and time consuming. I had to find another way to navigate my way between codes. I tweeted asking about alternative IDEs in Mac OS X to achieve this. Turns out there is a way!

I got a tip from @LuisFAlonso (THANK YOU!) to check out instructions from a blog here. I followed the instructions and restarted PHPStorm afterwards. Sadly, it didn’t work :(

I did a Google search and was happy to read a blog post here. But it didn’t work (again). The instructions was to copy paste lines of comments directly to the system/core/Controller.php and system/core/Model.php. The thing is, my system folder is outside the public folder. So I copy pasted the Controller part to application/core/MY_Controller.php. It WORKED!

Now I’m happy with a new IDE and Code hinting + Autocompletion!

Jajan for Android Open Sourced at Github

Jajan for Android is now Open Sourced at Github a few hours ago. I personally hope that by looking at the source code provided, more and more developers will sync to the tune of how easy it is to create an Android application. I wrote most of the codes 7 August 2011 in under 4 hours. Using ready made libraries already available within Android and also other third party libraries, it helped to ease the complications.

The source code is NOT perfect, there’s a lot of places where it could be optimized aggressively even more. More of the optimization will most definitely lie within the ListView. At any case, it will load 100 search results, you can make this endless by loading an incremental of your choice.

The codes are available at https://github.com/tistaharahap/jajan/.

Excerpts from the README shown below:

JAJAN by Urbanesia
==================

Jajan is a simple app to showcase Urbanesia's API v1.0 and how you can extend for your own apps.

As of this writing, the initial commit is at sync with Jajan's binaries at Android Market which is version 1.1.1. Upcoming Jajan versions will NOT be published from the codebase here in Github, this repository is treated as an example for future third party apps by you.

Jajan is available in multiple platforms, go to , if your device is one of the supported platform, it will redirect to your device's application store or it may have you download a binary for your platform.

Hacking CodeIgniter for Persistent Timestamped Cache with Memcache

I’ve got myself a long title for a blog post this time. This post is exactly what the title says. Been twisting my head figuring out how to bypass CodeIgniter’s internal to hack CodeIgniter’s ability to do a persistent timestamped cache of generated HTML contents using Memcached. I couldn’t find any other way to speed up cached HTML content serving within the framework, so after a long talk with @chazzuka, I made the choice to skip framework.

The main purpose is actually what all websites want, to spit out content as fast as possible and maintaining a high satisfactory levels of perceived speed for users. CodeIgniter wasn’t built for that. To make matter more complicated, CodeIgniter has its own session handling mechanism, this made fundamental changes to caching for logged in users a risky business. Comparing the benefits and losses of the change, 0.00001242 second execution time outbid even the fastest execution time on our servers.

Please share the codes :)

Error when loading gists from http://gist.github.com/.

HandlerSocket Client Library for CodeIgniter

These past weeks, I’ve been amazed by the amazing performance offered by HandlerSocket right out of the box. You’d amaze yourself after reading a blog post by Yoshinori Matsunobu about the topic, he managed to get 750 thousands queries per second!

Well I wanted to try it on my own and see how it goes. Here’s a CodeIgniter library intended just for that!

Error when loading gists from http://gist.github.com/.

Amazon SES with Sendmail as Relay

Over and over, sendmail keeps getting whacked out of configuration and it’s puzzling why this keeps happening. I followed everything at Amazon SES’ instruction here with no luck.

So to set things straight once for all, here are the steps to make the changes permanent.

  1. Open up sendmail.mc typically located at /etc/mail
  2. Add FEATURE(`mailertable')dnl below where all the FEATURE() codes are
  3. Add the lines below at the end of file
    • MAILER_DEFINITIONS
      Maws-email, P=/etc/aws/ses-send-email.pl, F=mDFMuXn, U=mail, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, A=ses-send-email.pl -r -k /etc/aws/aws-credentials -e https://email.us-east-1.amazonaws.com -f $f $u
  4. Save the file
  5. Generate sendmail.cf by doing m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
  6. Open up mailertable typically located in /etc/mail and add .[TAB]aws-email:%0. Replace [TAB] with a real TAB character
  7. Build the mailertable database by doing makemap hash /etc/mail/mailertable < /etc/mail/mailertable
  8. Test the configuration by doing sendmail -bv test-email@domain.com
  9. If all goes well, restart sendmail by doing /etc/init.d/sendmail restart




OAUTHnesia for PHP

It’s 2012 now and Urbanesia is publishing a new OAUTHnesia client for Urbanesia’s API. This time it’s for PHP. Why it took so long to actually finish a PHP version is because we gave up on a third party library that is too complicated to do simple things. So without further ado, the codes are available below.


MSDN Blogs

MSDN Blogs.


photo of Batista Batista R Harahap batista@bango29.com
Jl. Bango II/29C, Pondok Labu
Cilandak , DKI Jakarta , 12450 Indonesia
62817847023

This hCard created with the hCard creator.