Archive for the 'Technology' Category

Unix shell scripts

Lately I’ve been using my macbook and imac side by side with one shared keyboard and mouse using Synergy. It works an absolute treat. However, I am bored of typing in commands in Terminal to get Synergy going so I’ve made my first shell scripts to allow my usual double clicking behaviour.

I’ve used Textmate to make two files, synergys.sh and synergyc.sh.

To start the server on the imac:
#!/bin/bash

echo "Starting synergy server"
/Applications/synergy-1.3.1/synergys -f --config /Applications/synergy-1.3.1/synergy.conf

To start the client on the macbook:
#!/bin/bash

echo "Starting synergy client"
/Applications/synergy-1.3.1/synergyc -f computername

and don’t forget to make it executable:
chmod +x filename.sh

and/or if you want it to be double clickable just rename the script to filename.command

Thanks d3vo for the pointers!

Sweating over your beepy device

Good ‘ol Merlin Mann, gotta love this quote:

Yeah, I know smart execs have delegated for centuries. But I can envision a world where sweating over your beepy electronic device starts looking about as “executive” and “pro-active” as sucking on a crack pipe in the break room.

Lately I’ve taken to treating the phone like any other information source, it can wait its turn. There’s a stack of magazines sitting under my desk that have been waiting longer for attention than some of my text messages. That hardly seems fair now, does it? ;-)

Recharge with UrPeePee

I love japanese stuff. Design, food, technology, scenery, snow, people and engrish. Now you can recharge these batteries using your own urine! I especially love that they are named NoPoPo. Well yes, using urine is better than using PoPo. Work with what you got I say.

Lego bartender

So I have the Lego NXT robotics kit and I’d love to find a way to make use of it at work, like having a robot that brings me a coffee, wherever I am in the office at the time.

Just saw this video of a bartender robot, I guess this would be just the first step toward my lego slave above.

Netscape 9

So Netscape is still making browsers. But why??

Mindscape are dreaming

Our neighbours up here in Pipitea House, Mindscape, are in this weeks’ Infotech. Apparently they’ve just released BackgroundMotion, not so surprisingly (since all the content is for Vista Ultimate’s DreamScene), Microsoft is pleased about it. I wonder if I’d like having a subtle video as a desktop background? Might be soothing. Unfortunately as I don’t have Vista Ultimate installed on my lappie I can’t try it out. In any case, nice clean looking website - and you can download the website sourcecode by clicking View Code at the bottom. Cool.

It’s great how I hear about what they’re doing by reading the newspaper 15 metres from their office ;)

Web 2.0 is just the Web, yeah, we know.

It seems to me that Netscape founder Marc Andreessen just wanted something to say, while everyone else was already talking. Basically, Marc points out that “Web 2.0″ is just a term for the way the web was always supposed to be, so we should just call it The Web. His point is entirely valid, but it really has taken a major evolutionary process to get here, so there is nothing wrong with giving it a name and being somewhat excited that we’re finally getting somewhere. Nutscrape had various version numbers while it still did essentially the same thing but incrementally (and debatably) better each time, didn’t it?

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?

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.

Rabbits love cables, but the feeling is not mutual.

Floppy the lopSo from the pit of despair I have risen to triumph over the bad bad rabbit. At home today with a cold I planned to do a whole days work but 30 minutes into it our apartment dwelling thee month old rabbit, Floppy, decided to chew through my laptop power cable. That reduced my work day down to 1hr (battery). Nobody has a new adapter in stock, and buying from Trademe would take days, so I went to Dick Smith and bought some pliers and heat shrink tubing and fixed the laptop and phone charger. Next I’ll fix the lamp.

The rabbit will not win. Also got a plastic cover for the bed. NO MORE POOS.