09. March 2013 · Comments Off on Getting Subtasks and Dependencies working in flyspray · Categories: Uncategorized · Tags: ,

Having been working on redoing the subtask dependencies working in Flyspray, this on face value looked like quite a simple exercise in fixing a few bugs, but actually was signficantly more complex and some of the areas of interest need to be considered in terms of the effect on the overall usage of the application

For example when looking at a bug is better to have more information on the page to make your decision on what to do next easier (but by definition a more complex user interface) or less information (a cleaner interface but with more navigation required to get to the information)

anyway where i ultimately got to was the image below, however it will be intersting to see the feedback that is given when it goes out in the wild.


03. February 2013 · Comments Off on PHP Yesterdays Date or other Date in Past or Future · Categories: Uncategorized

When using php and mysql for reporting it is common to have to get yesterday’s date or even a week ago to get the correct results from the report. So to make it easy for the user I will pre-populate the date fields with yesterday or an older date. This is pretty easy to do and there are a couple ways to achieve the same thing.

Here is an example of 2 different ways to do it, this will give you 7 days before the current date.

$weekbefore = mktime(0, 0, 0, date(“m”), date(“d”)-7, date(“y”));
$weekbefore = date( strtotime(-7 days”));

This can then be broken down into the month, day, and year with the following code.

$month1 = date(“n”,$weekbefore);
$day1 = date(“j”,$weekbefore);
$year1 = date(“Y”,$weekbefore);

This will give you the ability to preselect the date selectors on your report web pages so users will not have to but they will have the option to make the date whatever the want if needed.

These examples will also work for dates in the future, so say 3 days from now.

$threedaysfromnow = mktime(0, 0, 0, date(“m”), date(“d”)+3, date(“y”));
$threedaysfromnow = date( strtotime(“+3 days”));

03. February 2013 · Comments Off on Reviewing the stack… · Categories: Uncategorized

I always endeavour to find the most pleasing set of tools that are available to me at any particular time and it turns out that it is that time of year again…

So what’s changed, well first of all i have moved from a blogger based blog to my own webserver and domain name running a WordPress installation, this felt like the right time to make this move and coincides with my desire to start making some more things that i work on publically available.

Other changes have been quite noticeable…

Windows 7 –> Windows 8

Netbeans –> PhpStorm

SVN –> Git

PHP 4 –> PHP 5

And finally i have stopped programming in .net for the time being whilst i fully get up to speed with the new features of PHP 5 in fairness everything that i have seen and played with on PHP 5 is actaully closing the gap between .net and PHP which makes it an environment where i am quite happy to switch between c# and PHP.