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.
In 1991, amongst a series of theorems about rounding in floating point arithmetic calculations, the author parenthetically noted that rounding a number to 53 significant digits, and then rounding it again to 52 significant digits, might produce a different answer compared to when you do the rounding to 52 digits all in one go. He all but apologised for the parenthesis, noting it was “highly unlikely to affect any practical program adversely.”
19 years and 10 months later a researcher discovered that the “Mark of the Beast Bug” could freeze almost any computer in the world, and that millions of webservers could be taken down by it almost at the touch of a button — because of an error when rounding a very very small number, first to 53 significant digits, and then to 52.
If you’re struggling to find WMI Class definitions it might be because half the useful ones are listed under Win32 Classes.
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"
It is an interesting fact that searching for bing affiliate program doesn’t bring up anything useful. The top hit when I did the search in bing itself was quite amusing though.
In fact, you’re probably looking for this: search advertising with Bing.
Hope that helps.