Archive for May, 2007

Gapminder - visualising and playing with data

Wow check out these awesome graphs from gapminder.org, “free software that visualises human development”. Fantastic way of presenting statistics. Isn’t interactivity great? It makes learning fun!

While on the topic of sustainability, have you considered your Triple Bottom Line lately?

World’s longest pizza

PMQ at the world's longest pizzaPMQ have posted about the world’s longest pizza, at 264 metres it is a certified Guiness World Record. It doesn’t say whether or not it was all eaten, or whether it tasted any good! For that matter, it doesn’t tell us what the toppings were either. Perhaps it evolved from one end to the other? Did it taste better at the start when they were all fresh and motivated, or better at the end when they’d all had lots of practice?

5 hours, 100 people… hmm that is less that 53cm of pizza per hour per person. I can make pizza faster than that! ;)

Who’s gonna be a Supermodel

Just heard Mark Hanify (local rockstar) from Supermodel speaking on KiwiFM and then their new song, Send Me Dreaming. Such a lovely song. Very well done lads, looking forward to more gigs and drinks.

Wellington > Auckland

Well, this supports my claim that you really don’t need a car when you live in Wellington CBD. More workers in Wellington CBD than Auckland CBD. I didn’t know that.

On a related note, I really like how my gmail calendar (using ghs) sends me sms messages 15mins before my appointments. Just enough time to get to a meeting anywhere in Wellington CBD even if I’ve forgotten all about it. Better than phone calendar reminders, somehow much less irritating.

Finally trying out Silverstripe

So after knowing the team at Silverstripe for years and thinking for the same amount of time that I should try out their CMS, I am right now giving up my Saturday to do just that. It suddenly occurred to me that I should blog about it while I do it. Please remember that this is not so much a review as my log of my first encounter, I may well be an idiot (but if that be true, I could hardly figure it out for myself now could I), and by the time you read this, there could be a new version of Silverstripe. I am using 2.01.

I am going to rebuild the Spikefin website. Currently it has no CMS although in truth that is no big deal when you are both the developer and maintainer of a site. Something I expect to change over time as I have been the maintainer of the Spikefin site in name only (the “mechanic’s car” syndrome).

First, lets start with the reasons I have taken so long to give it a go:

  1. It’s written using PHP, I don’t know PHP, and PHP is a recursive anagram which makes me think there will be other things about it designed simply to confuse me so that other people can laugh at me.
  2. When I first found out about Silverstripe I honestly thought they were a little crazy for trying to build a world class CMS when there are so many others already. Also I didn’t want to pay a monthly fee for using it (even though they offered it to me free multiple times when we shared office space at Creative HQ, I didn’t want to be that annoying “customer” that doesn’t pay properly or at all but still expects top service).
  3. I really have been wanting a Java based CMS or some mythical perfect mix of Java and Flash that was custom built for me. Its been a case of not really knowing what I want but wanting something nonetheless, so ending up with nothing.

So why give it a go now?

  1. Because it is now open source. To me this signals a coming of age. It is a brave thing to open up your code to criticism from a very critical community.
  2. Because Spikefin really needs a new website and I don’t want to be the sole person maintaining it, so might as well use something that nobody at Spikefin knows so that we are all on equal footing when it comes to making a change.
  3. Because I am very interested in what other local companies are achieving and would like to whole heartedly support them. Also, I regularly refer people their way and need to validate that the product is any good if I am going to keep doing so ;)

Ok lets get moving.

INSTALLATION

First I downloaded the php-based installer and ran it on a linux server. I was highly impressed when it told me exactly what things were not up to scratch on that machine, namely I need to upgrade PHP and MySQL and allocate more RAM to PHP. These things are not an option right now on that box, so…

Second I downloaded the Windows installer and ran it on my XP laptop. All sweet (of course, I hear you say, but I am always wary of anything that installs servers, dbs and uses ports, presuming that I will end up spending hours scratching my head). I now have a default site accessible at http://localhost:3000/home/. My first question is whether I have to have that “home” bit there for the homepage? I’ll see about that later.

NOW LETS START USING IT

Log in using defaults. Not asked to change them, easy enough to do under Security. Tried to set up a name for my site and basic settings (whatever they might be) like that, can’t find where to do that though.

Everything looks very nice. The fading tooltip in the bottom right looks nice too, but it is a disparate rollover to which I am fundamentally opposed - good for status messages but bad for tooltips.

Went looking for presentation related settings. I guess I was expecting to find some sort of theme chooser. Clicked through the help docs but they don’t mention any presentation related topics in there. Found *a* theme on the silverstripe website and installed it. Having made no content changes the layout was screwy for the example homepage so I uninstalled it again for now.

Ok now following tutorial 1. Pretty much what I’ve done so far. Install the theme provided there. Looks the same as the default?

So I get that Page.ss is the template file. I’d like to have been recommended something to edit/view it with already and told how to configure that something so that I get code colouring. Presume ss stands for silverstripe. I thought it was stylesheet to begin with. I’ve chosen Notepad++ to edit the file for now. Added ss to the User Extensions for HTML under the Settings -> Styler Configurator and reopened the file. Colourful.

Making progress. Good tutorial btw. However, I have a problem. The home page has disappeared from the live site. I’ve made a few more pages and published everything, and visited with ?flush=1 to clear the template cache, but the Products page is behaving like the home page, actually it just seems like the navigation is screwed in general. AHA! I refreshed the whole admin page and found that actually the home page has become a child of the products page and some other page is a child of that in there. No wonder I was confused. How did that happen? Several pages now show as unpublished. Bit more drag and drop and now its ok. Is there no way to publish everything at once?

Getting my priorities straight, I am trying to make a page called Fish Fun where I want to put the Spikefin Slalom Game for now. Have put my swf in the assets folder and clicked the flash icon on the toolbar in the CMS. I’m told to choose a folder from a dropdown box but there’s nothing in the box to choose from. Stuck. Ok sorted for now, have just found the html button and put the flash object tag in there myself and that seems to have worked fine. Onward with the tutorial. New templates…

Having real trouble getting it to use my new template for the home page. Seems simple enough but it just isn’t changing. I’ve flushed the cache. I’ve triple checked my settings and the filenames. Stuck. Ok sorted now, it seems that I need to run the db build each time I add or remove .ss files (not just ?flush=1) which I didn’t gather from the tutorial, I thought it was just php code pages.

Tutorial 1 now complete. Time for a coffee.

Ok Tutorial 2 has gone without a hitch. Great news. Makes me think my father could be using this himself to build his new Mayfield Audio site that he’s been wanting for years… Looking forward to the blog plugin though. It seems a little silly to create a page for each news entry.

Tutorial 3 has been going well, except that I ticked “Email form on submit” which has given a bunch of problems. Guess I’ll leave that for now. Definitely want a contact form to be sending messages through as email though. Racing a bit now. Skipping the poll creation, looks pretty cool though.

Tutorial 4. Site Search.

There we go. I now have the basics of a new Spikefin website. Better write some content!

Conclusions thus far:

  1. Silverstripe is very good.

Climbing

I have always loved climbing things. I think its my father’s fault. I recall that he used to put lollies in trees when I was a young’n. The truth is I prefer fruit to lollies anyway, but now I prefer a challenge to what comes naturally (thanks Dad).
Anyway, spent the weekend at a lodge with Trent and bunch of awesome people for his 30th birthday. What a great idea. So of course we scaled this waterfall at great personal risk. It was a lot slipperier than it looks.