RSS Element,demiblog Class,Language,Link,Title,Description channel,,en_GB,http://tobyinkster.co.uk/tag/javascript/,"Articles Tagged with ""Javascript""", item,B,en_GB,http://tobyinkster.co.uk/blog/2007/08/12/php-debugging-with-style/,12/08/2007: PHP Debugging with Style -OR- How I Learned to Stop Worrying and Love the Bug,"
PHP lets you define your own error handler, so I decided to get a bit fancy. MegaErrorHandler (MEH) outputs its errors as specially-formatted HTML comments, with the details of the error encoded using JSON.
A small client-side script, with an associated stylesheet then pulls this data out of the comments and formats it as a nice little interactive bug-viewing console, allowing you to view a stack trace for each bug, inspect superglobals, view the syntax-highlighted source code for the file where the error occurred, check the list of defined constants and other useful things…
" item,B,en_GB,http://tobyinkster.co.uk/blog/2007/06/22/politics-map-uk/,22/06/2007: Political Map of the UK,"(Requires Javascript.)
A two-dimensional graph requires two axes — that is, two sets of scales on which the data points must be assessed. In politics there are many candidate axes, some listed below, of which we can only choose two:
I’ve chosen the first two from that list, as I felt they were likely to provide the most interesting picture of politics in the UK…
" item,A,en_GB,http://tobyinkster.co.uk/article/web-abbr/,Abbreviations,"There are two HTML elements for dealing with abbreviations: <acronym> and <abbr>.
So what’s the difference? Although it is generally agreed that any shortening of a word or phrase is an abbreviation, and that some abbreviations are acronyms, there are two schools of thought on deciding exactly which abbreviations are acronyms…
"