Fast way to find the difference between two numbers
< ?php
function diff($a, $b) {
return ($a < $b) ? ($b - $a) : ($a - $b);
}
?>
Update: Apparently I was to tired when I wrote this, a lot faster method is like Søren mentions: abs($a-$b) :)
Installing Adobe Reader 9.2 in Ubuntu 9.10
To install Adobe Reader 9.2 in Ubuntu 9.10, you have to enable the Canonical Partner Repository. Go to System -> Administration -> Software Sources
Select Third-Party Software and and check the checkbox for http://archive.canonical.com/ubuntu partner.
Close and accept to reload.
It is now possible to install "acroread" by
sudo apt-get install acroread
Or from System -> Administration -> Synaptic Package Manager, but for some reason it is not found in Ubuntu Software Center?
Update: 2009-11-03 @ 00:56
According to https://wiki.ubuntu.com/SoftwareCenter version 3 of the SoftwareCenter will offer "commercial software for sale". But according to http://www.ghacks.net/2009/10/30/the-new-ubuntu-software-center/ and http://blogs.techrepublic.com.com/opensource/?p=1031 it should be possible to install "commercial/non-free software" in version 3.
In Ubuntu 10.4 the Software Center should replace "Synaptic, Software Sources, Gdebi, and possibly the Update Manager" according to http://en.wikipedia.org/wiki/Ubuntu_Software_Center, so version 3 should be out at that time - I hope :)
