magpiebrain

Sam Newman's site, a Consultant at ThoughtWorks

Archive for ‘May, 2004’

Now that this site properly “validates (W3C Markup Validatior – validation results)”:http://validator.w3.org/check?verbose=1&uri=http%3A//www.magpiebrain.com/ as XHTML 1.0 Strict (with a little help from some PHP and the “W3C validator”:http://validator.w3.org/) I’m now starting to look at the markup itself. As you may know, the idea is that the XHTML should contain the semantic markup, and the CSS the presentation, which is a pattern I have used here. I have become concerned however about the quality of my markup. Lets look at a simple example. Currently, the links for each post are marked up like this (I’ve omitted @href@’s or the MT tags that generates this content):


May 4th in General | Permalink | Comments

Continue reading…

I’m slowly working my way down my website todo list, and today came to the topic of webpage compression. Webpage compression, when done right, is a robust solution to decreasing the size of your pages and hence speeding up page load times, all whilst coping with older browser types. Thanks go to posts at “Textism(Textism – Bigsmallbig – 21 November 02)”:http://www.textism.com/article/632/ and “Mark Pilgrim(Mark Pilgrim – A warning to others)”:http://diveintomark.org/archives/2002/11/21/a_warning_to_others for putting this on my radar in the first place.

The conventional approach to compressing your webpages is to use “mod_gzip”:http://sourceforge.net/projects/mod-gzip/. This module is run by Apache after all other modules have run – so it will work on dynamic content. Firstly, it determines if the client can understand gziped content – if it can it the webpage is compressed, otherwise the normal page is sent. This does require you have mod_gzip installed however and you have to associate the correct mine with the module. An excellent overview of mod_gzip can be found at “Web Compression(Compressing Web Output Using mod_gzip for Apache 1.3.x and 2.0.x)”:http://webcompression.org/gzip-compress.html, which is an excellent resource on the topic of website compression as a whole.
Continue reading…

Inspired by the rather enjoyable “meme(LaughingMeme – page 23, sentence 5: an autopsy)”:http://laughingmeme.org/archives/001960.html, I decided to integrate an ongoing series of Page 23 posts on my sidebar. To summarise the original aim of the meme, it has each participant write the fifth sentence on the 23rd page of the book they are currently reading. My slight subversion of the meme is to do the same for various books which I have read or am reading that I can recommend. The aim is to have a picture of the book, the sentence in question, and a link through to Amazon on my sidebar. I alsowant to vary the book displayed as often as possible. What I really want is a dynamic slideshow – which is what we are going to build now.
Continue reading…