But this “blonde joke(Great Blonde Joke)”:http://www.sbpoet.com/2006/01/how_far_would_y.html is rather good, even if the punchline is a long time in coming…
Colleague Ivan Moore is offering to “consult in his spare(Ivan Moore – Show Me The Money)”:http://ivan.truemesh.com/archives/000575.html time to help raise money for the state school his children attend. Ivan is great, so if you need to Agile/XP advise/coaching he’s well worth the money.
If you haven’t met Ivan, a good summary came courtesy of another colleague:
Ivan has two states – anxious and asleep. If he’s awake, he’s anxious
Just a quick note after a long absence (no doubt a flood of posts will now follow, preceding another too long gap). Anyway, “London 2.0rc2(London 2.0rc1 on Upcoming.org)”:http://upcoming.org/event/47958/ is on for this Tuesday. Once again it’ll be combining the Python meetup, and will be open to all Ruby, Django, Rails, Python, RSS, Catalyst, web.py, TurboGears, Java, RDF and Struts enthusiasts, and interested observers. After missing the last two (which is bad form as an organiser) I’ll be making a concerted effort to put in a prolonged apperance.
If you’re coming, you could either signup on “Upcoming.org”:http://upcoming.org/event/47958/, or leave a comment here. As normal, it’s from 6pm til late at the “Old Bank of England(Upcoming’s entry for the Old Bank of England)”:http://upcoming.org/venue/16413.
By Simon at diner the other night, attempting to explain how pairing forces you to write better code:
Well, if you had to walk around in your underwear all the time, you’d go to the gym, wouldn’t you?
*We need a snappier name…
As the calendar gets a little crowded in December, myself, Simon and Jez have decided to combine the Java, Django/Rails and Python nights together in one big bash at the Old Bank Of England, on the 12th of December, from 7pm onwards. As normal there is no particular agenda, although people wanting to do demos are more than welcome (just let me know first so we can publicise it).
Oh, and as Jez has had to stick a deposit down for the reserved space, please leave a comment to let us know you’re coming!
Using a Dilbert cartoon as an example of why your manager is wrong is not an example of good consultancy skills.
Recieved from Amazon on the 7th of November:
Dear Amazon.co.uk Customer,
We’ve noticed that customers who have purchased Hot Fuss by The Killers have also ordered Hot Fuss by The Killers. For this reason, you might like to know that Hot Fuss will be released on November 21, 2005. You can pre-order your copy for just GBP 11.99 by following the link below.
Mind you, I enjoyed it so much the first time around…
It was with some sense of chagrin that I learnt that a high-profile, previously standards compliant and accessible site had been redesigned using cutting edge webdesign techniques, circa 1996. Goodbye CSS, hello tables. I could understand this (to a point) if it wasn’t for the fact that the resulting Disney Store UK site is just so _damn ugly_.
Andy Clarke’s response is very restrained, and at the same time funny. Molly Holzschlag, lead of the Web Standards Project goes for the jugular, pointing out that the new site is riddled with bugs, is slow, their email doesn’t seem to work, and is probably in violation of the Disability Discrimination Act.
Continue reading…
…as Civilization IV: has arrived
Now we’ve worked out what files you want backed up, and we’ve sorted automatic authentication, the only thing left to do is schedule our backups. Unfortunately we can’t make use of the very handy iSync or Backup tools to do this (Apple don’t seem keen on opening up these tools up, as they no-doubt help sell expensive .Mac accounts).
h3. cron
cron is available on all *NIX systems, and is a well established solution to running all kinds of house keeping tasks. On OSX 10.4 however cron is being phased out in favour of launchd which we’ll look at next.
launchd
As of OSX 10.4 a new daemon called launchd has been added. Eventually this will replace tools such as cron, rc and xinetd – however it’s low on the userfriendly scale right now. Unlike cron’s simple crontab file, launchd requires XML files which can be a pain to edit without something like the shareware program launchd editor. Hopefully later OSX releases might bundle a decent UI for managing it.
Anacron + launchd – for those who like to switch their computers off
Both cron and the newer launchd suffer from the same problem when it comes to running routine housekeeping tasks – if the computer isn’t on when a task is scheduled, the task won’t get run, and even when you switch the computer on again, neither tool can work out that it should try and catch up by running the task on startup.
So using either cron or launchd means that if we use either task to manage our backups, the computer has to be on when the backup is scheduled to run.
Anacron attempts to solve these deficiencies. It stores a record of when each job was last run, so on startup it can work out if it needs to catch up. This is especially handy for laptops which are probably only on for a few hours a day.
Depending on your operating system, you can either get anacron setup to work with cron, or launchd. Assuming you take the anacron + launcd approach, grab Ronald Florence’s highly useful Anacron for OSX 10.4 installer. Once installed, you should have a file /etc/anacrontab which will look like this:
#period delay job-identifier command 1 5 cron.daily periodic daily 7 10 cron.weekly periodic weekly 30 15 cron.monthly periodic monthly
The first field is the frequency of the job – 1 means daily, 7 means weekly and 30 means monthly. The second value is the delay in minutes between anacron realising a job needs to be run, and it actually getting scheduled. The third field is a unique identifier for the job, and finally the command itself.
To simplify things we should create a simple script which contains our rsync command(s) – for now you can place it into your bin directory, and call it something sensible like backup. Next, assuming you want to run the backup job daily, add the following line to /etc/anacrontab:
1 10 backup.user /Users/johnsmith/bin/backup
To make sure anacron is working (and is picking up your job) simply start Console.app, and select Open System Log from the File menu – you should see its output. If you need to tweak your backup job, you can remove the record of the previous run /var/spool/anacron/ – it should contain one file per record in anacrontab. Then, you can force anacron to rerun the job by executing anacron -n.
And there you have it! Trouble free, secure backups that will get run even if you switch your computer on for only a few hours each day.