September 2011
7 posts
4 tags
PHP DOCUMENT_ROOT in Windows Servers
Being a Mac user somehow makes you tend to forget others in Windows world. Recently, one of my app failed to redirect my script to proper url simply because it was not be able to detect $_SERVER['DOCUMENT_ROOT'] variable. I thot I have already fixed this, but unfortunately it is not or my assumptions was wrong. So, being a lazy developer, Googling surely help me and found this solution: // let's...
Sep 28th
4 notes
Git Is Simpler Than You Think
nfarina: It was about one year ago that we switched to Git. Previously, we used Subversion, through the Mac app Versions, which (rightly) holds an Apple Design Award. I made the executive decision to leave our comfy world of Versions because it seemed clear that Git was winning the Internet. There was much grumbling from my teammates, who were busy enough doing actual work thank you...
Sep 27th
635 notes
3 tags
iPhone charging but not detected by iTunes
I just notice this in the last few weeks that my iPhone does not synced with my computer. Checking on iTunes by clicking on iTunes > Preferences… > Devices tab, my Device backups list is empty. Now, that’s weird. Checking on my USB did say that it recognised my iPhone. So, I did some googling and found out that it’s the iTunes Helper.app which have caused the issue. By...
Sep 21st
2 notes
4 tags
Plugging mcrypt into PHP →
If you had issue with phpMyAdmin regarding mcrypt module, please do the following: download mcrypt library from http://sourceforge.net/projects/mcrypt/files/Libmcrypt/2.5.8/ not the mcrypt then, you need to get to know your current PHP version using phpinfo(); mine is PHP-5.3.6, so I would download the following file from php.net - http://museum.php.net/php5/php-5.3.6.tar.gz before do any...
Sep 18th
1 note
3 tags
Linux: Set OR Change The Library Path
In short: vim /etc/ld.so.conf.d/centos.conf add the following path: /usr/local/lib to activate path: ldconfig to verify path: ldconfig -v | grep /usr/local/lib Enjoy!
Sep 13th
11 notes
8 tags
marvalle shares: Installing Ruby on Rails on... →
marvalle: First erase old versions of ruby (comes with 1.8.5): sudo yum erase ruby ruby-libs ruby-mode ruby-rdoc ruby-irb ruby-ri ruby-docs Since Rails uses sqlite for its test applications install it: yum install sqlite Then install all tools needed for ruby dev: sudo yum install…
Sep 13th
5 notes
4 tags
MySQL Error 1153 -- Got a packer bigger than...
Being a developement team, sometimes you need to do some simulation on your on notebook but to found that during the mysql migration (i’m using command line to do the import) has give me an error 1153. What is 1153 error?, well it basically inform you that during the migration, you have hit the max allowed packet. In layman term, your sql file is too big to be handled by the mysql. In order...
Sep 12th
25 notes