Monday, December 30, 2013

Wordpress Stuff #1

Writr Themes 
this theme highly recomanded for all programmer from newbie to pro level

with this theme i want to move my blogger to self-hosted Wordpress.


Markdown Editor in Wordpress

Wordpress Visual editor very bad for me. This is because they strip off some HTML element. Sometime, users with no programming skill hard to write article in the editor.

So, markdown looks better, simple and very straight forward.



Wednesday, December 18, 2013

Different between Paypal Javascript API and Classic API

Last time i did a mistake in my project.

I used PaypalJavascriptButton from github.

--Javascript Version

I thought 'data-callback' used to make auto return but it is not. That parameter used to trigger IPN.
Auto return actually triggered by 'data-return' and
cancel payment triggered by 'data-cancel_return'.

You will be warned by Paypal via email if you not actually use the IPN and they will block your IPN if no futher action taken.

--Classic version

Note: If you need Paypal Data Transaction (PDT) you must read 'How to setup IPN listener' in production mode / sandbox mode. This is because PDT require 'IPN'. 

Sunday, December 15, 2013

2D Game Engine

Giderious Studio - (language: Lua)
Unity2D - (language: Js, C#, Boo)

Adobe Game SDK - (language: ActionScript)
SaladGame - (no programming skill required)

COLT JS - (language: Js)

*Please let me know your suggestion. Thanks.

Friday, December 13, 2013

Disable OSX Server on Mac

Just imagine.
You are the one who very love Mac because you can setup your apache web server just some settings.

Suddenly you have installed OSX Server.

Now you see,

  • all your virtual host not work.
  • you don't know how to point the OSX Server to match your apache settings
  • etc
Oh no! I need to;
  • remove OSX Server
  • uninstall OSX Server
  • disable OSX Server
  • kill OSX Server
You feel like crazy to do clean install your OSX back.

Wait wait wait....

You just need to bring back your 'org.apache.httpd.plist'.
Lets see what OSX Server done on your apache...

Before OSX Server install:

After OSX Server install:

Original apache plist file -
OSX Server apache plist file -

Don't forget to restart apache

sudo apachectl restart

Have fun!


Off Autoplay HTC Sync Manager

HTC Sync Manager always appear if my phone connected to my computer.
It is harassing me!

Don't worry. Here i explain a bit about HTC Sync Manager.

I know you hate it but you need to know that Samsung can't do what HTC does.

Topic: HTC device provide 'Internet pass-throught'.

Mostly, HTC device provide 'Internet pass-throught'.

HTC 'Internet pass-throught' is sharing the device internet to your computer via USB connection.
Then, you can shot a Wifi hotspot.

So, everyone love you because you can share your internet connection.

This is the most important thing you should know why we need HTC Sync Manager.

Topic: How to avoid HTC Sync Manager software keep autoplay?

 set the circle tick uncheck. Thats All.

Topic: How to avoid HTC Sync Manager volume auto-mounting on OSX Mac?
  1. get your the volume UDID
  2. put in '/etc/fstab/' as shown below

refer this article

Tuesday, December 3, 2013

My HTC One with KitKat installed!

I only want to share how i did. I'm using 'Android Revolution HD 40.3'.

1# Download TWRP & the rom from 'Android Revolution HD'
  • rom -
  • recovery -
2# put rom file in the phone
3# Flash recovery TWRP 
put the .img file in your 'android-sdk/platform-tools/'

type in terminal:

./fastboot flash recovery <recovery_file_name.img>./fastboot erase cache
./fastboot reboot-bootloader 

4# install the rom from the recovery

thats all. 

Monday, December 2, 2013

Grunt on OSX Maverick

I face very fun problem to start using Grunt. I already follow many guides and tutorials about the Grunt installation on Mac but i still cannot execute 'grunt' command in the terminal.

Lastly, i saw someone type in the terminal:

npm grunt

in this video.

So, my idea is. Add an alias in your .bash_profile like this:

alias grunt="npm grunt"

thats all.


Friday, October 25, 2013

PHP Environment on Maverick

I just move to Maverick since release day and some of my php environment configuration changed.
  1. apache - refer here
    • enable php module
    • update document root
  2. git-ftp/ezyang - refer here
    • update gitpython
thats all. Have fun!

Sunday, September 29, 2013

Drupal - Move from live to local environment

Today i experienced in moving drupal from live to local environment.


  1. Site redirected to live site when i open 'user/login'
Problem may come from the site SSL setting, default Drupal settings, or the HTACCESS configuration.


1. copy whole site folder to local server. (example: /public_html)
2. copy the database to local server.

3. investigate & update the database

4. update setting files
5. update .htaccess

thats all.

Friday, September 20, 2013

Installation phalconphp in AWS completed

I just install phalconphp in AWS Freetier instance.
I faced 2 problems only prior installation;

  1. E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
  2. make: command not found

sudo apt-get remove make
sudo apt-get install make

AWS still charge you even your take the freetier one but its not to much.
People always want to point the server ip to his or her domain.
So you need to know how to configure CNAME or you can use AWS Route53 paid service.
Thats all.


Tuesday, September 17, 2013

Android debugging over wifi

1. We need to start over all USB debugging from terminal

#to kill all previous connection
adb kill-server

2. Revoke USB debugging authorization Android > Settings > Developer > Revoke USB....

3. Replug your phone to computer
4. Set adb tcpip port from terminal
#to set adb tcpip port
adb tcpip 5555

5. Make sure your phone set tcpip port 5555

#to connect your phone as super user from your computer
adb shell

#to set the port
setprop service.adb.tcp.port 5555

#exit from the android shell

6. connect to phone
#to set the port
adb connect [your-phone-ip]


Laravel 4 get started in MacOSX terminal

  • Create  your project folder
  • Install composer

$ curl -sS | php

  • Install laravel using composer

php composer.phar create-project laravel/laravel your-project-name --prefer-dist


Saturday, September 14, 2013

Susah tak HTML5?

Apabila ada seseorang ditanya tentang HTML5 depan aku, aku akan diam kan diri dengar apa yang orang itu jawab.

Biasanya mereka akan pandang atas. Memikirkan jawapan untuk soalan itu. Kemudian dijawabnya panjang lebar.


2 perkara asas yang kita perlu tahu dan mungkin yang hanya perlu diambil berat;

  1. HTML5 adalah HTML yang diintegrasikan elemen-elemennya dengan fungsi yang ada pada sesuai peranti itu.
  2. HTML5 datang untuk meringkaskan HTML terdahulu.
picture from Complete Web 2.0

Itu sahaja. Sesuatu yang kita tahu kita akan bimbang untuk menggunakannya. Selain itu, kita hilang arah bagaimana untuk menguasainya sekiranya kita fahaminya dengan keadaan kompleks.

Ringkaskan HTML5?
Selamat mencuba!

Wednesday, September 4, 2013

Android foreground &background event firing

Hey guys, here i wanna share the way to implement foreground and background event firing.

In appcelerator titanium, we need to wait the first window opened before we register the events. Thats all.


if you want to implement background service trigger after application minimized as happen in iOS, you should use 'stop' event. This is because 'pause' event also fired when ever your window blured.

In android, window blur event triggered when ever a dialog opened or a modal window opened.

So, simple to say here is android puase event equal to window blur event.

Check out the code in my personal repo here.

Tuesday, August 27, 2013

OSX and Ubuntu for me

Today morning, i read about PhalconPHP again.

I know Lavarel is good enough but PhalconPHP promise better perfomance. So i decided to use PhalconPHP.

I already setup PHP environment on my OSX. I don't want to mess it up.
So i use my Ubuntu 12.04 in my VM Fusion to setup PhalconPHP.

I still need OSX because no Adobe Creative suite in Ubuntu.
I need Ubuntu because very hard to setup cron on OSX.

Both OS got pro. and con.

If you want to follow what i did, let's refer these:

I add extra reference for those who want use sublime text.


So, i will start my journey in REST API, Front End, Back end and mobile developement with in Ubuntu (VM Fusion) and OSX.

Any opinoin? feel free to share with me. Thx!