Archive for August, 2008

ZF : Redirector Helper

Monday, August 18th, 2008

Se volete facilitarvi la vita con gli helper di ZF, nel caso di Redirector (Zend_Controller_Action_Helper_Redirector) , ricordatevi che i parametri sono nell’ordine inverso di analisi

[sourcecode language=”php”]
$this->_helper->redirector($action, $controller, $module, $params)

di cui solo il primo obbligatorio.

ZF: “views/helpers/Layout.php” failed to open stream: No such file or directory

Friday, August 15th, 2008

Ecco un carinissimo warninig che mi compare ogni volta voglia utilizzare i Layout del Zend Frameworrk. Il problema dove sta? ovviamente in zf, alla riga 160 di Loader.php.

Turning off Asus M50S light sensor

Tuesday, August 12th, 2008

As I’ve recently gotten this nice laptop, I’ve found that the light sensor really makes more problems then it solves so I’m shutting it down in both Windows (Fn+A) and in Linux.
Under linux all you need to do is:

echo 0 > /sys/devices/platform/asus-laptop/ls_switch

This fix is valid only for the current session, to persist the settings just install sysfsutils and then in /etc/sysfs.conf put


JBuilder 2008 and Windows Vista problems

Thursday, August 7th, 2008

So let’s say you try to install JBuilder 2008 under Windows Vista (32bit). Did all went smoothly? A friend of mine got a nice JVM terminated Exit code=-1 error. It would seem that if you modify the JBuilder.ini -Xmx parameter (initially over 800M) to 700M or 600M and if you run reset_JBuilder.bat it might finish the installation. An alternative is to modify JBuilder.ini the moment it gets created so you don’t have to wait twice.
Also it would seem sometimes class diagrams won’t show classes. My friend deleted all* packages and jars under JBuilder and put from eclipse 3.4 to the jbuilder 2088 plugins directory.
For the moment things seem to function.