For reasons best not examined too closely I switch between between Mac and PC which, since I earn my crust largely with .Net development, means switching between Visual Studio and MS.Net and MonoDevelop with Mono.
Mono is very impressive, it is not at all a half hearted effort, and it does some stuff that MS haven’t done. But when switching environments, there’s always the occasional gotcha. Here are some that have got me, and some solutions.
Gotcha: Linq Expressions don’t work on Mono
Solution: Add a reference to System.Core to your project.
Question: What version of NUnit is built in to mono?
As of Feb 2011, it’s nunit 2.4.8.
Grrr. Where’s grep when you need it on a Windows box? No, you don’t need cygwin. You just need:
And yes it does regular expressions. For example:
Echo "Here Is A Sentence" | Findstr /i "\<Sen[a-zA-Z]*e\>"
TaskList /v | findstr /i "Where[']sGrep.exe"
As noted in Reading a Mac OS X disk from Windows if you can plug your Mac OS X drive into your Windows computer then you can use HFS Explorer to read it.
This works fine for Apple Time Machine Backups: look for the directory called /Backups.backupdb/ and within that, the name of your computer. You’ll find dated directories of your backups. If you’re just after the most recent version of your files, then look for a directory called “Latest”.
It’s quite clever — the folder for a given date shows you not just files backed up on that date but everything that was on your original disk at that date. The magic of file system links.
Catacombae – HFSExplorer is just what you need for reading a Mac OS X drive (an “HFS+” drive) from a windows computer.
It’s a self-contained slightly techy app but it gives you read access to the drive, copes with soft links and can copy from the HFS volume to your PC.