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? $ php -r ‘echo fmod(36,7.2);’… Continue reading fmod() in PHP is the worst !”#¤%&/()= function ever!
Ubuntu upgrade behind firewall
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 issue. However, Update Manager,… Continue reading Ubuntu upgrade behind firewall
Are you still using the old Java plugin for Firefox?
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.
Letting Go (of domain names) Is Never Easy
So, I have registered a few more domain names than I really need. The domain names are usually a result of this: I get a good (or bad) idea for a web site project I think of good (and bad) domain names for the project I register a domain name for the web site But,… Continue reading Letting Go (of domain names) Is Never Easy
Today’s thoughts about programming languages
Maybe some of you have heard me ranting about this already? I’m not productive enough in C++ and I feel too limited by Java A large chunk of Java frameworks seem to serve no other purpose than to workaround limitations in Java I believe (and hope!) that Java will cease to be the default language… Continue reading Today’s thoughts about programming languages
TaskFreak hacking part 2: date format
My TaskFreak hacking goes on. In Sweden we often use ISO 8601 format for dates (year-month-day), but TaskFreak does not offer this out of the box. Most date formatting comes from the DATE FORMATS section in include/config.php but even after changing these date formats I still don’t get all dates displayed as I would like.… Continue reading TaskFreak hacking part 2: date format
Facebook mail servers blacklisted by Spamhaus XBL!
To be more exact, some Facebook mail servers are listed in the Composite Blocking List (CBL), including but probably not limited to these: outmail002.ash1.tfbnw.net – 69.63.184.102 outmail004.ash1.tfbnw.net – 69.63.184.104 outmail007.ash1.tfbnw.net – 69.63.184.107 outmail009.ash1.tfbnw.net – 69.63.184.109 outmail110.ash1.tfbnw.net – 69.63.184.110 CBL is not very informative, but writes: ATTENTION: If you are running IPSwitch Imail, or similar shared… Continue reading Facebook mail servers blacklisted by Spamhaus XBL!
TaskFreak hacking: changing first day of week to Monday
I have two personal TaskFreak installations now: one at work and a personal one for everything else. Usually I run all my applications in English but the personal TaskFreak is in Swedish so the first thing I changed was a couple of things I didn’t agree with in the Swedish translation. Then there was the… Continue reading TaskFreak hacking: changing first day of week to Monday
Convert mailman translation to UTF-8
Why is the Swedish translation in ISO8859-1? Sooooo 20th century! 🙂 Templates cd /usr/share/mailman/sv for f in *; do mv $f $f.old; iconv -f iso8859-1 -t utf-8 $f.old > $f done rm *.old Translations cd /var/lib/mailman/messages/sv/LC_MESSAGES mv mailman.po mailman.po.original iconv -f iso8859-1 -t utf-8 mailman.po.original > mailman.po msgfmt mailman.po -o mailman.mo /etc/mailman/mm_cfg.py DEFAULT_CHARSET = ‘utf-8’… Continue reading Convert mailman translation to UTF-8
Hire me for my mind!
Ward Cunningham tweeted a link to an ad for an Agile Ruby Developer at AboutUs, Inc. Out of curiosity I took a look and it sounds like a fantastic opportunity for someone! What I liked most about the job ad was the last part: We’re hiring you for your mind. Please showcase it by answering… Continue reading Hire me for my mind!