Wednesday, June 24, 2015

jQuery load() Not Work or Firing

Maybe it is just the cached or the element container. Just happened today that jQuery.load()
seems not to work at all. After googling i came out with specifiying

$.ajaxSetup({cache: false, async: false});

The async:false just addition since i prefer synchronous connection than asynchronous.
Also redundant to add random number at the end of url query

$('.container').load("http://myweb/app/" + Math.random(100000000));

Fire! and did not work :(( After double check that i found out the .container was missing
or overwrite by accident to other name. Fix has been patched and Fire! Ohh Yeah! it works.

while(true){ keepCoding("^^"); }

Sunday, June 21, 2015

XAMPP 32 bit unable to run on Xubuntu 64 bit

Just happened to download xampp 1.8.0 and unable to start apache and other applications. Strangely xubuntu only shows that phpstatus failed at line 4 saying php is no such file or directory. No luck on
googling but my past experienced tells that xampp 1.7 to 1.8 are 32bit. Ok, give it a try to install
glibc.i686 and apparently libc6 is the equivalent on xubuntu.

Firstly we have to add the 32bit arch by
$ sudo dpkg --add-architecture i386
$ sudo apt-get install libc6
It will install all necessary libs.

Re-run php
$ /opt/lampp/bin/php -a

It will show the prompt meaning it runs successful.

while(true){ keepCoding("^^"); }