Archive for November, 2009
Tuesday, November 10th, 2009
I hate floating point artithmetic and I really hate fmod() in PHP. It's useless.
fmod — Returns the floating point remainder (modulo) of the division of the arguments
If you calculate 36 modulo 7.2? What do you get? Zero, yes. 7.2*5=36. No remainder!
What if you use fmod in PHP?
$ ...
Posted in Web developmnet | 2 Comments »
Friday, November 6th, 2009
I'm currently upgrading my Ubuntu-in-VirtualBox at work from Jaunty to Karmic, but at first it didn't work at all. Update Manager got stuck when I clicked the "Upgrade" button.
Due to the Big Corporate Firewall all Internet access must go through the the Enterprisey Proxy so I immediately suspected a firewall/proxy ...
Posted in Ubuntu | No Comments »
Wednesday, November 4th, 2009
In about:plugins, what's the filename of the Java plugin?
Is it libjavaplugin_oji.so? If so, you should update to the new Java plugin. Run:
sudo update-alternatives --config xulrunner-1.9-javaplugin.so
Now select libnpjp2.so instead and restart Firefox.
Source: Out of date java 6 plugin installed.
Posted in Ubuntu | 3 Comments »