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

Permute an array in PHP

I wrote this function recently when I could not find it in the PHP function list. Please provide any optimizations you discover! function permute($array) { $results = array(); if (count($array) == 1) { $results[] = $array; } else { for ($i = 0; $i < count($array); $i++) { $first = array_shift($array); $subresults = permute($array); array_push($array,… Continue reading Permute an array in PHP