Re.Mark

My Life As A Blog

Archive for July 2007

Backing up OS X command-line style

with one comment

I bought an external drive recently.  I bought it partly to back up the files on my main computer – a trusty Mac.  It came bundled with Retrospect Express.  I’ve tried to use Retrospect Express, but we don’t get along too well.  Before I got the drive, I’d read about using rsync to backup OS X.  So, I thought I’d give that a go.  I followed the instructions here.  Works a treat, and simple as you like.  Sometimes the command line is all you need.  For the easily scared among you, keep your eyes averted from the following warning to be found towards the bottom of the article:

Using command line utilities without experience can have unpredictable consequences including loss of data.

Advertisements

Written by remark

July 30, 2007 at 10:46 pm

Try Ruby

leave a comment »

Let’s say you fancy trying a little Ruby.  Maybe you just read about IronRuby.  Then you should try ruby, a web application that lets you try Ruby.

Written by remark

July 23, 2007 at 10:53 pm

Posted in Development, General, Tools

Installing Parallels Tools in Ubuntu

leave a comment »

I didn’t realise that version 3.0 of Parallels allows you to install the tools for Linux OSes.  Reading the release notes for the latest build, I discovered this useful feature.  And the instructions here show you how to do it in Ubuntu.  No more Control+Alt to release the mouse for me.

Written by remark

July 21, 2007 at 11:43 am

Posted in OS X, Tools, Ubuntu

New build of Parallels 3.0

leave a comment »

Build 4560 of Parallels Desktop for Mac is out.  I’ve upgraded and all is well.  The new build includes updated Parallels Tools.  I’ve finally got around to installing the release version of Windows Vista (with the image being on an external drive – connected with Firewire.)  There are rumours that version 3.5 will have Aero support.  Right now the Experience Score Thingy (TM) won’t run through – I can live without it I suppose.

Written by remark

July 21, 2007 at 11:15 am

Posted in General, OS X, Tools

ActiveMQ and SQL Server

leave a comment »

At first, when I tried to use SQL Server (2000) with ActiveMQ there was an error. The error was:

Failed to acquire lock: com.microsoft.sqlserver.jdbc.SQLServerException: Line 1: FOR UPDATE clause allowed only for DECLARE CURSOR.

I’m using the jtds jdbc driver. I attached a profiler and the SQL that SQL Server finds offensive is:

SELECT * FROM ACTIVEMQ_LOCK FOR UPDATE

I searched through the Nabble forums for ActiveMQ and found the answer here. My jtds config looks like this:

<bean id="jtds-ds" class="net.sourceforge.jtds.jdbcx.JtdsDataSource">
	<property name="serverName" value="localhost"/>
	<property name="portNumber" value="1433"/>
	<property name="databaseName" value="databaseName"/>
	<property name="user" value="userName"/>
	<property name="password" value="password"/>
</bean>

and my persistence adapter is configured like this:

<persistenceAdapter>
    <journaledJDBC journalLogFiles="5" dataDirectory="../activemq-data" dataSource="#jtds-ds" useDatabaseLock="false"/>
</persistenceAdapter>

The useDatabaseLock=False being the important bit.

All of which seems to work.

Written by remark

July 19, 2007 at 4:43 pm

Testing changes

leave a comment »

As you start to adopt unit testing, you’ll notice that you start to design your code differently.  Being able to test your code thoroughly becomes the imperative.  And, maybe counter-intuitively, that imperative promotes good design.  Some of that good design may not be what you thought was good design before.  This post, by Tim Ottinger, is an excellent description of the changes you’ll observe.

Written by remark

July 18, 2007 at 8:31 pm

British Computer Society says no

leave a comment »

As you can read here, the British Computer Society believes that it already has the definitive architectural qualification, so there’s no need for another certification – in contrast to Matt Deacon’s recent comments.  However, it sounds like there may be moves afoot to map the Microsoft architectural qualification to the BCS equivalent.

Written by remark

July 16, 2007 at 9:44 pm