Putty and the disappearing cursor

Steve Neal Tool support, Uncategorized Leave a Comment

I’ve had this problem with Putty on and off for years. It’s default black background commonly hides the windows text cursor when the mouse rolls over the terminal window. When this happens I need to rummage around on the internet to find a solution, so I thought I’d make a note of it here on my blog this time instead. …

Searching for files in an Ant script

Steve Neal Development, Tool support Leave a Comment

This is a simple technique for determining whether or not files matching a given pattern exist within your project. Unlike the available task, this does not require that you need to know the exact name of the file when creating the build file. It is therefore very useful for checking existence of generated/downloaded artefacts. I’ll demonstrate the technique with an …

Using Mockito to Unit Test Java Applications

Steve Neal Development, Java Programming, Tool support 23 Comments

If you’ve spent any time writing unit tests then you’ll know that it’s not always straight-forward. Certain things are inherently hard to test. In this post I’ll show you the basic principles of creating mock objects with a little help from the Mockito mocking tool. One common problem faced when unit testing is how to test one object when it …

Configuring MySQL on Mac OS X

Steve Neal Development, Tool support 1 Comment

I found the documentation for MySQL a little rough around the edges recently when I needed to change a configuration setting for it – everything seemed spread around their comprehensive PDF documentation and it took me a little while to fathom my way through it. It’s not often that changes to MySQL configuration need to be made. This post is, …

A Unix Command to Recursively Delete all .svn Folders

Steve Neal Development, Tool support 5 Comments

I recently needed to check out a project from Subversion and then delete all of the .svn files from the project directories. Google found me a few different ways to do this, but none of them seemed to deal with a case where some of the directory and file names had spaces or quotes in them – as mine did. After a little experimenting, I figured out how some simple Unix commands that could be combined using pipes to do this.