Namespace inheritence difference between VB.NET and C#

Recently, I’ve been involved in a .NET project that uses both VB.NET and C# projects in the same Visual Studio solution. Personally, I prefer C#, but VB.NET isn’t that hard to switch to, except that you can run into an unlogical namespace inconvenience.

VB.NET and C# handle the namespace inheritence in their class files and project files differently :S

VB.NET project

  1. Specify the Root namespace of your project as “Test.VB”
  2. Add the following class to that project:
    Namespace Test.VB.TestNamespace
    Public Class Class1
    'Some code
    End Class
    End Namespace

C# project

  1. Specify the Root namespace of your project as “Test.CS”
  2. Add the following class to your project:
    namespace Test.CS.TestNamespace
    {
    public class Class1
    {
    //Some code
    }
    }

Addressing those classes from your main project in the solution:

Test.CS.TestNamespace.Class1 class1;
Test.VB.Test.VB.TestNamespace.Class1 class2;

As you can see… The VB.NET class inherits the project’s namespace, the C# class doesn’t.

Disk Access Denied in Windows Vista

I recently updated my system’s hardware. Because it has quite a bit of extra power, I decided to give Windows Vista another try. (On the hardware and findings of Vista maybe later a bit more).

After installing most of the previous software (some needed updates to be compatible with Vista) I noticed that one of my USB drives wasn’t accessible anymore. My account has administrator privileges so that should be fine, but I still got an “Access Denied” error. When I disabled the new UAC system everything worked fine.
Now that could be the solution, to leave it just like that, but instead I wanted the UAC system enabled. After enabling it again, the error occurred again so I knew it had to do something with user rights.

On my previous system, a Windows XP, I selected only the Administrators group and Backup Operators (for my backup script) to have access. But under Vista that isn’t enough anymore.
Read the rest of "Disk Access Denied in Windows Vista" »

Amazon redesigns

Just before bedtime, I payed a visit to amazon.com and a nice surprise it was… Amazon is all dressed up for the holidays. Looking great!

… At first sight. I couldn’t resist looking “under the hood”. What a mess!!! Including embedded javascript and CSS. I had expected more from Amazon.com.

Gravatar now part of Automattic

About 2 weeks ago Automattic (the creators of Wordpress) acquired Gravatar.
Personally, I think it’s a good deal. Global avatars help you identify your posts/comments better so this improved usability.

Web trendmap 2.0

A beautiful and interactive web trendmap from Information Architects in japan.

[Via: FutureLab]

The exception is magic

When looking up __FILE__ in the PHP manual I came across this:

“A constant is an identifier (name) for a simple value. As the name suggests, that value cannot change during the execution of the script (except for magic constants, which aren’t actually constants).”

In my opinion, “magic constants” isn’t very descriptive. (same with magic_quotes)

TopStyle 3.5

Finally after… euhm… waaaay to long, a new TopStyle.

Finding your passion again

A very nice post at pickthebrain.com entitled: 17 Ways to Find Your Passion For Any and Everything. Something you must read if you want to enjoy what you do.

Version 5 - more cleaning

I’ve been doing some extra tweaks to the new layout and there are still more to come. Nothing much noticeably, except maybe the categories.
Some categories have been removed (Google, Personal Throughts, Search Engines,…) or replaced by tags, because that made more sense. The post in them aren’t gone, just moved to different categories (most likely the parent category of where they were).
I’ll be using tags more often, but going over all previous posts would be a bit too much work.

Professional drop down menu

I’m usually against down down menus on the internet. Not only because they hardly work in all browsers, but also because they usually look terrible.
This example at CSSplay however, looks and works great.