Skip to main content

Posts

Showing posts from 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.
[download]

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.

[download]


references:

Splitdown- A Ghost like Editor for WordPress

Different between Paypal Javascript API and Classic API

Last time i did a mistake in my project.
I used PaypalJavascriptButton from github.

#IPN --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'. 

2D Game Engine

Giderious Studio - (language: Lua)
Android In-App BillingiOS In-App PurchaseiAd - Monetize Module for iOSFlurry - Monetize Module crossplatform Unity2D - (language: Js, C#, Boo) Android In-App Billing : youtubeiOS In-App Purchase: youtubeMonetize
Adobe Game SDK - (language: ActionScript)
Android In-App BillingiOS In-App PurchaseAdmobDevelopement In Action Loom SDK Android In-App Billing & iOS In-App PurchaseAdmobYoutube channel
Corona SDK - (language: Lua) Android In-App Billing & iOS In-App PurchaseAdmob : sample SaladGame - (no programming skill required)

iOS In-App PurchaseIn-App Billing (not available)Mobclix - monetize module

COLT JS - (language: Js) Developement In Action Extra: Soomla - provide solution for develope to work with virtual goods on the most great 2D game engine like Unity and Cocos2Dx.42 way to monetize your app10 unity monetize plugin
*Please let me know your suggestion. Thanks.

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 settingsetc Oh no! I need to; remove OSX Serveruninstall OSX Serverdisable OSX Serverkill 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 - https://gist.github.com/ihsanberahim/7945452
OSX Server apache plist file - https://gist.github.com/ihsanberahim/7945476
Don't forget to restart apache

#terminal sudo apachectl restart

Have fun!

reference: http://www.maxum.com/Rumpus/Blog/OSXServer.html

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?
get your the volume UDIDput in '/etc/fstab/' as shown below



refer this article

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 2.6.3.3& the rom from 'Android Revolution HD'
rom - http://android-revolution-hd.blogspot.com/p/android-revolution-hd-mirror-site-var.htmlrecovery - http://forum.xda-developers.com/showthread.php?t=24164312# put rom file in the phone 3# Flash recovery TWRP 2.6.3.3
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. 

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.


Extra:

DemoInstallation guide

PHP Environment on Maverick

I just move to Maverick since release day and some of my php environment configuration changed.
apache - refer hereenable php moduleupdate document rootgit-ftp/ezyang - refer hereupdate gitpython thats all. Have fun!

Drupal - Move from live to local environment

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

#Problem

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

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

3. investigate & update the database

turn off ssl - refer here 4. update setting files  update settings.php - refer here 5. update .htaccess
thats all.

Installation phalconphp in AWS completed

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

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?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.

Reference:

http://docs.phalconphp.com/en/latest/reference/install.htmlhttp://stackoverflow.com/questions/1454629/aws-ssh-access-permission-denied-publickey-issuehttps://help.ubuntu.com/community/ApacheMySQLPHP

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 exit

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

Reference: http://stackoverflow.com/questions/2604727/how-can-i-connect-to-android-with-adb-over-tcp

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;

HTML5 adalah HTML yang diintegrasikan elemen-elemennya dengan fungsi yang ada pada sesuai peranti itu.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!

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.

Note:

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.


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:


http://phalconphp.com/en/downloadhttp://www.jeremymorgan.com/tutorials/linux/how-to-install-apache-php-and-mysql-on-ubuntu-12-dot-10-quantal-quetzal/http://askubuntu.com/questions/172698/how-do-i-install-sublime-text-2http://www.sublimetext.com/forum/viewtopic.php?f=3&t=13205 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!