Programming for kids
Posted on 28 Apr 2009 at 12:02
MySQL fan Ian Wrigley discusses computer programming for children, and goes back in time with linux.
Anyway, when I teach these courses I'm often asked whether MySQL can do this or that obscure operation (often this question will come from Oracle DBAs, as Oracle is a behemoth of a program that can do absolutely anything, no matter how pointless). My answer is often that while MySQL can't do that particular thing on its own, there's a third-party tool available that will enable it to do so, and often that tool is part of an excellent package called Maatkit by the estimable Baron Schwartz, a true MySQL master.
If you're a MySQL DBA and you haven't yet come across Maatkit, you owe it to yourself to check it out. It consists of a collection of utilities that do such things as analyse the slow query log by connection ID, monitor replication slaves and try to restart them in case of errors, monitor the delay in replication of a slave behind a master, and even control a replication slave so that it purposely stays a certain amount of time behind the master. (The latter is very useful for catching errors such as people inadvertently dropping databases - as long as you notice before the slave has caught up, you've potentially saved the pain of having to restore from a complete backup.)
The Maatkit utilities are all written in Perl and they work best on Unix or Linux machines: indeed, Maatkit is now included as a standard part of some Linux distributions. Baron Schwartz is very well known in the MySQL community, and this collection of utilities shows why. It's an invaluable part of any MySQL DBA's toolkit, and I can't recommend it highly enough, especially given that it's absolutely free!
Back In Time for Linux
Mac users will be - or ought to be - familiar with Time Machine, the built-in backup software that comes with OS X version 10.5. The basic idea of Time Machine is that it takes regular incremental backups of your work, adding only changed items to its store. Well, now there's a similar (if rather simpler) program for Linux called Back In Time. Once you've installed it you tell it which directories you want it to back up, and how often it should take snapshots. It will then go ahead and do it and present you with a display of all the files that it's saved for any given snapshot. From there you can select the files you want to restore and choose where they should be copied to.
Since Back In Time takes snapshots so regularly you can restore any earlier version of a file, if a file changes regularly it will have backed up many copies. Deep down, Back In Time is simply a graphical front-end on to the rsync tool, a particularly impressive Linux/Unix tool that's used to compare two directories and copy only what's different between the two. There are none of the cute graphics in Back In Time that you see in Apple's Time Machine, but then many of us are quite happy without such frills and froth. Everyone should have a backup strategy in place and Back In Time is definitely a neat little addition to your arsenal. I've started using it on a Linux machine that I use for testing, and it will make its way onto all the other machines in our office in the very near future.
Ian Wrigley
Ian Wrigley runs W A Communications, a Los Angeles-based technology consultancy. He's an advocate of open-source technologies, particularly on the server side, and is on the board of directors of the British Academy of Film and Televsion Arts/Los Angeles.
advertisement
- Getting to grips with Microsoft's IT Health Environment Scanner
- Virtualise your servers
- The changing face of travel gadgets
- Build your own distributed file system
- The bulletproof Dell that costs an arm and a leg
- Microsoft Office 2010 Technical Preview: Q&A
- Lawnmowers, the TyTN II and one odd insurance request
- There'll never be a bulletproof OS
- How far can we trust apps?
- Five nice touches in Outlook 2010
- Why Britain's watchdogs have fewer teeth than goldfish
- Tabbed documents: how to make Office 2010 great
- Outlook 2010 People Pane – does it spell death to Xobni
- Microsoft Outlook 2010 screenshots
- Co-Authoring in Word 2010 and SharePoint Foundation 2010
- Microsoft Outlook 2010 screenshots: Backstage view
- Flash 10.1: Developing for Desktop and Device
- Microsoft Office 2010 screenshots: Recover unsaved items
- Microsoft Word 2010 screenshots: Text Effects
- Microsoft Word 2010: inserting screenshots
- Q&A: Why Conficker was a victim of its own success
- App developers losing faith in Android
- Biz Stone: Murdoch's Google veto will "fail fast"
- Google adds automatic captions to YouTube
- China ramps up cyber spying
- Mozilla maintains dependence on Google
- Windows 7 flying off the shelves
- Google Chrome OS: full details unveiled
- AOL slashes 2,500 jobs
- YouTube begins streaming full-length shows
advertisement
Printed from www.pcpro.co.uk


