Archive for May, 2006

Gallant: It’s level one compliant!

Mr. Gallant, the cities IT guru has reviewed the debacle know as frederictontourism.com and have given our local newspaper, the Daily Gleaner the definitive answer as to why the site is as broken as it is … it was never meant to be compliant with all browsers, only those which meet the W3C’s “level one” testing.

It’s possible that Mr. Gallant, being a public servant has information that I simply don’t have, or that he’s reached a pinnacle of web excellence that I have failed to reach because while I explored the W3C’s online validation service at http://validator.w3.org/, I don’t see levels of compliance, only a pass or fail.

It appears that Mr. Gallant knows something that the rest of the Internet does not.

On another note, the accessibility of the website which as reviewed in depth last week, it’s interesting to note the front page story of the Gleaner this week in which the city is found to be less accessible for the disabled citizens of Fredericton as it could be.

When it comes to accessibility, and the lack of effort put forward by the city to accommodate those who need a little bit of extra support, it is refreshing to see that their inability to create a website capable of being viewed in browsers for the blind is at least consistent with their general attitude towards the citizens of Fredericton with disabilities.

I agree with Peter Haggert in his editorial today, its bad enough that the city choose to over look the highly qualified and cost competitive firms here in Fredericton, but to continue allowing the mess of a site to stay online is ridiculous. The city should take it down until it can be fixed and dress down those responsible for this mistake.

Tourism Fredericton … response from the city.

Well it’s no surprise, the investigative team (consisting from what I can tell of Deputy Mayor Mike O’Brian) has determined that spending our tax payers dollars on a busted up tourism site, was done by the books.

It appears after an exhaustive review of the situation, taking at least part of the day today, Mr. O’Brian and Maurice Gallant, the City’s Chief Information Officer have agreed that the method Mr. Gallant used to award the contract to an Ontario firm, was fair.

To quote Mr. O’Brian: “I have reviewed this with Mr. Gallant and I am satisfied that everything was done in accordance with City policy. Council empowers staff to purchase professional services in amounts under $50,000 without the requirement of a public tender.”

While I commend Mr. O’Brian on pursuing this matter, I am left pondering questions about the process and how the budget for this website was established or more to the point … was it worth it?

Tourism Fredericton

Thursday’s front page of the Gleaner featured two articles of note, the first that New Brunswick jobs are at risk and immediately below it, an article in which the city is attempting to defend sending our tax dollars to an Ontario firm to build a website. The tourismfredericton.com website is a prime example of what is wrong in New Brunswick and the sickness that is rampant in our municipal offices.

Local businesses are the heart of our community and account for 80% of the jobs in Fredericton yet our tax dollars are sent to Ontario web design firms because as Mr. Jellinek erroneously points out, the city is looking for the “bang for the buck”.

Personally, I don’t build the type of website the city needed for tourismfredericton.com and as such, would not have bid on the project but I am offended by the thought that our municipal tax dollars are routinely sent out of the city to firms in Moncton, Nova Scotia and Ontario when qualified, talented and affordable firms are here in the city.

In the future, I hope that city hall will take the time to survey local companies before simply sending my hard earned dollars away from my community.

Creating a cache on phpWebSite

I’ve been going nuts for the past month or so, looking for a static cache for phpWebsite, a great CMS application.

In the end, I’ve hacked together a little something and it works perfectly, all you have to do is paste this code in your index.php file, and create a file called “staticindex.html” in your root folder (chmod 777 of course).

Now, the site will check the age of staticindex.html every 5 minutes, if it’s too old it will generate a new one, otherwise it’ll serve up the static version.

if ($_GET[’cache’] == ‘1′) {

} else {
if (empty($_GET) && empty($_POST) && empty($_SESSION[”OBJ_user”])) {

$fileage = date(’U’)-filemtime(’staticindex.html’);
// if it’s new, show it
if ($fileage < 300) {

echo file_get_contents(’staticindex.html’);

} else {

// Open the file and erase the contents if any
$fp = fopen(“staticindex.html”, “w”);

// Write the data to the file
fwrite($fp, implode(chr(13),file(‘http://www.yourwebsite.com/index.php?cache=1′)));

// Close the file
fclose($fp);
echo file_get_contents(’staticindex.html’);

}

die;
}}