January 14th, 2008 Digg This
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
- Specify the Root namespace of your project as “Test.VB”
- Add the following class to that project:
Namespace Test.VB.TestNamespace
Public Class Class1
'Some code
End Class
End Namespace
C# project
- Specify the Root namespace of your project as “Test.CS”
- 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.
Filed under: .NET
December 5th, 2007 Digg This
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" »
Filed under: Windows
November 5th, 2007 Digg This
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.
Filed under: Blurbs, Web Standards
October 31st, 2007 Digg This
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.
Filed under: Blurbs
October 30th, 2007 Digg This
Filed under: Trends
October 30th, 2007 Digg This
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)
Filed under: Blurbs, PHP
October 23rd, 2007 Digg This
Finally after… euhm… waaaay to long, a new TopStyle.
Filed under: Blurbs
October 23rd, 2007 Digg This
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.
Filed under: Blurbs
October 12th, 2007 Digg This
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.
Filed under: Announcements
October 12th, 2007 Digg This
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.
Filed under: Web, Web Design