Categories

Archives

Transaction on CakePHP when using Oracle


Warning: array_keys() [function.array-keys]: The first argument should be an array in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 3643

Warning: Invalid argument supplied for foreach() in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 3643

Warning: array_keys() [function.array-keys]: The first argument should be an array in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 3651

Warning: Invalid argument supplied for foreach() in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 3651

Warning: array_keys() [function.array-keys]: The first argument should be an array in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 3654

Warning: Invalid argument supplied for foreach() in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 3654

Warning: array_keys() [function.array-keys]: The first argument should be an array in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 3643

Warning: Invalid argument supplied for foreach() in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 3643

Warning: array_keys() [function.array-keys]: The first argument should be an array in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 3651

Warning: Invalid argument supplied for foreach() in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 3651

Warning: array_keys() [function.array-keys]: The first argument should be an array in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 3654

Warning: Invalid argument supplied for foreach() in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 3654

Warning: array_keys() [function.array-keys]: The first argument should be an array in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 1925

Warning: Invalid argument supplied for foreach() in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 1925

Warning: Invalid argument supplied for foreach() in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 2290

Warning: implode() [function.implode]: Argument must be an array in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 3242

Warning: array_keys() [function.array-keys]: The first argument should be an array in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 3265

Warning: Invalid argument supplied for foreach() in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 3265

Warning: Invalid argument supplied for foreach() in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 3306

Warning: array_keys() [function.array-keys]: The first argument should be an array in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 3357

Warning: Invalid argument supplied for foreach() in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 3357

Warning: array_keys() [function.array-keys]: The first argument should be an array in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 3502

Warning: Invalid argument supplied for foreach() in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 3502

Following my post on http://monmonja.com/blog/2008/07/transaction-on-cakephp-12/ where i use CakePHP and MySQL to do transaction, now i’m using oracle and $this->Model->begin() is not working and the fix for that is
  |  copy code |? 1$this->Model->begin();2$returnQuery = $this->Model->getDataSource()->query($query);3if($returnQuery !== false){4 $this->Model->getDataSource()->commit();5}else{6 $this->Model->getDataSource()->rollback();7}
Hope this helps

Youtube + WinAmp Playlist = Music in the background

I had been a big winamp 2 fan and until now i still think its the best music player in windows, back in the late 90s if you have your winamp playlist on the web, your a cool guy. Those playlist until now are still on the web but to my surprise some of them [...]

Starting MySQL with XAMPP on Mac

Had a problem with XAMPP on mac especially on MySQL, where it tells you to check the log files on the errors? I had the same problem and the way if fix it is through the terminal typing this command
/Applications/XAMPP/xamppfiles/share/mysql/mysql.server start
To stop it
/Applications/XAMPP/xamppfiles/share/mysql/mysql.server stop

Trace your post data in server side using HttpPost in Android

By default you could trace your variables or your post data (or even get data) using breakpoints, but after that what happens between android and your server is a bit hard to trace specially if somewhere a long the way there’s an error on your post data. This piece of code is from my flash [...]