Recent Posts

Archive

Valid CSS! Valid XHTML 1.0 Strict I use the Smarty Template Engine

Blog

Dexter is dead. Long live Dexter.

Wednesday, December 23, 2009

"Dexter" - my MacBook Pro - died early this morning.

I put him to sleep last night, and when I got up this morning, he refused to wake up. The power light would come on, the DVD drive would make a sound, then the light would go out again.

I tried all the reset procedures, with no luck. So today I dropped him off for repairs, and strangely enough, I'm hoping a dead hard drive is to blame.

I'm hoping this is the case because I'd imagine a hard drive is fairly quick and easy to replace. Of course, at the same time, I'm also hoping my Time Capsule backup works!

So for now I'm back using my old G5 Powermac. It's actually not as slow as I remember it. I'm glad that I hadn't got rid as I was thinking of doing: I haven't used it for a few months now because a) it consumes a lot of power, even when turned off, and b) it can't run Snow Leopard.

Maybe if I wish really hard, and be good all day tomorrow, Santa will bring me a shiny new laptop for Christmas! (though I hear Santa already spent all his money on a storage unit for his parking space)

New design

Tuesday, December 01, 2009

A week or so ago I started messing around with a test page to learn a few more things about CSS, and to see if I could manage to make a nice-looking, XHTML-compliant page that looked exactly the same in all the popular browsers. After gradually messing with it more and more, I got to liking the simplicity of the page. A few minutes in Photoshop gave it a bit more colour, and I was sold.

And that's what you see here right now.

Technically, I believe the design itself is completely XHTML 1.0 Strict and CSS 2.1 compliant, but the code I use for on the Photos page (Frontbox) seems to throw a CSS error or two, and basically none of my blog posts from Blogger do not comply with XHTML (especially all the embedded Youtube videos). Ideally I'd like to fix that, but it would be too much of a pain. At least this worked as a proof of concept that I may actually be able to make a fully compliant site. :)

Once the design was ready, it still took a few days of work to get it to play nicely with Blogger. In the end, I had to make a Blogger classic template that actually builds a PHP script with the content hard-coded into a few variables. This data file is included when the site is rendered, so that the recent entries etc down the right are always there, and always up to date.

Another change I made was to use the Smarty template engine to keep the data and layout separate. It's the first time I've used Smarty, and it was pretty easy to write all the templates necessary, so it's definitely something I may use again in the future.

The last part of the re-design was to include a Photos page, which pulls data from my Picasaweb albums via RSS. I'd done this over on travellingoakeys.com so it came together pretty quick.

The only thing I still need to sort out is the comments on the blog entries. Hopefully that's not too hard.

I think that's enough tech talk for the night. I hope you like the new design.

Update: I've fixed the CSS validation issues with Frontbox :D Also, you can verify my site is XHTML compliant by validating the Sites page. Just for that, I'm displaying the compliance badges on the right over there -->

Labels: ,

Comments
  • Test comment :)
    posted by Blogger aaron at 7:13 AM
  • well done aaron :)
    posted by Blogger sq2 at 8:08 PM