Category: Code

Doc5 Wiki Available for Download

Doc5 Wiki Available for Download

Slightly behind with this post but I finally have a new release of Doc5 available for download. New features include, Full WYSIWYG editing and no more trying to get used to the markup. (Not that it was difficult but people are used to risch editors these days) Complete redesign of the UI. Bootstrap makes for …

+ Read More

Permissions Problems with git pull

Permissions Problems with git pull

I’ve started working on Doc5 from a laptop in the last few months and have begun the pull/push process to get my Bitbucket repo and desktop machine all in sync. But when trying to get these sorted I found permissions problems on one of the local repos. When I tried to do a pull I …

+ Read More

Doc5 Beta Now in Testing

Doc5 Beta Now in Testing

After many years I have got a version of Doc5 up and available to use. It’s a vastly different wiki app than the previous version and most of the changes have been made in the last 9 months. The last version released for download was a different name and appeared before my son was born. …

+ Read More

Git Hosting and Issue Tracking

Git Hosting and Issue Tracking

I’ve been looking about for some free Git hosting and found that most options like Github require you to make the code available to everyone. So I was pleasantly surprised to find Bitbucket from those ingenious Aussies at Atlassian. There’s some excellent documentation, the system is easy to use and your first push from your …

+ Read More

Easy, Beautiful Charts with Flot

Easy, Beautiful Charts with Flot

I’ve been looking for a free, open source chart library for a while and was struggling to find something that was good enough (and handled time series and missing data points well). For a long time I’ve been using Fusion Charts (FC) and Open Flash Chart (OFC) in any in-house work and those products are …

+ Read More

Debug PHP Function Calls

Debug PHP Function Calls

Logging errors can be very helpful as your code base becomes huge. But sometime it’s still difficult to find out what’s calling the function that’s giving the error. Wouldn’t it be nice if there was a way to see how you’d got to that function? Well of course there’s a way in PHP – debug_backtrace. …

+ Read More

Beware the leading zero in Javascript parseInt()!

Beware the leading zero in Javascript parseInt()!

Exhibit A, parseInt(’01’); //equals 1 parseInt(’02’); //equals 2 parseInt(’03’); //equals 3 parseInt(’04’); //equals 4 parseInt(’05’); //equals 5 parseInt(’06’); //equals 6 parseInt(’07’); //equals 7 parseInt(’08’); //equals 0 !! parseInt(’09’); //equals 0 !! When Javascript encounters a leading zero it assumes an octal number. So when it sees 08 or 09 then there are problems. The fix …

+ Read More

Using PHP exec() with IIS6

Using PHP exec() with IIS6

There are a few work arounds I’ve found since having to use PHP under IIS6 and Windows 2003. Every now and again I come across something that just doesn’t work the same way with this variation of web server, OS and PHP. I needed to double-check the DNS hostname being reported from users on an …

+ Read More

Running WordPress & PHP Behind ISA Proxy

Running WordPress & PHP Behind ISA Proxy

Some things work well on their own but when mixed make your life hard. Things like Linux and PHP work very well. Microsoft ISA proxy also does a good job in a corporate MS environment. But making the two work together in a controlled environment can be an exercise in frustration. In this post I’ll …

+ Read More

Outlook Hates Line Breaks

Outlook Hates Line Breaks

If you’ve ever wondered why your plain text email message is randomly ignoring line breaks like n or rn then you’re not alone. I regularly use PHPMailer to send off automated emails and usually in plain text to keep it simple. What Outlook 2003 (and 2002 and 2007 versions apparently) likes to do is be …

+ Read More