PowerShell functions for the uninitiated (C# programmer)

Being a C# programmer, I recently found some use for Microsoft’s PowerShell (the cmd replacement). What’s nice about PowerShell is that it has full access to the .NET framework.

However, there are also some very pit falls when coming from C# (or any related programming language).

There’s one very mean pit fall when it comes to functions and their return values that – if you don’t exactly know how PowerShell works – makes you pull out your hair.

Read more →

Bug of the day: Acronis Drive Monitor

Although the Acronis Drive Monitor is a handy tool for keeping taps on your hard drives’ state, it also totally breaks USB 3.0 (at least on my Windows Server 2012).

Acronis Drive Monitor main window

Acronis Drive Monitor comes with a service called “Acronis Scheduler2 Service”. As long as this service runs, it somehow breaks access to my external USB 3.0 drives. If I try to copy files to my external drive, the progress will freeze after a minute or so (together with a explorer window trying to access the external drive).

Solution: Stop the service (USB drives will start working again immediately), or uninstall Acronis Drive Monitor completely.

How To Fix Multiple Items In The ‘Open With’ Menu in OS X

Did you ever get that annoying problem that in your “Open With” menu the same app shows multiple times?

Multiple items for the same app showing in OS X's "Open With" menu.

Fortunately, this is easy to fix. Just open up Terminal and paste in the following lines (all at once) to fix the problem!

/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user && pkill Finder

Cause of the problem: When you delete an application, its entry in the “Open With” menu is not deleted. This also applies to app updates, where the old version of the app is deleted and replaced by a new one (which gets its own menu entry). The problem probably only occurs for non-Mac App Store apps.

Bug of the Day: Mono for Android

Today’s bug is again sponsored by Mono for Android:

Random “The type or namespace name ‘XXX’ could not be found” errors when building

Mono for Android randomly produces “The type or namespace name ‘XXX’ could not be found” errors when building a solution. These errors don’t really exist and disappear after a rebuild.

https://www.youtube.com/watch?v=f7PMNHnUDFY