November 2007 Entries

New C# 3.0 - "Orcas": Language Features

Automatic Properties 1 using System; 2 3 namespace ConsoleApplication1 4 { 5     class Program 6     { 7         public string Name { get; set; } 8 9         static void Main(string[] args) 10         { 11             var p = new Program(); 12             p.Name = "Bart"; 13         } 14     } 15 } http://community.bartdesmet.net/blogs/bart/archive/2007/03/03/c-3-0-automatic-properties-explained.aspx   Object Initializers using System; class Oini {    public static void Main()    {       Customer c = new Customer();       c.Name = "Bart";       c.City = "Ghent";       c.Age  = 23;    } } Wouldn't it be nice to do this in just one line of code? I agree, it would be even nicer if the Customer class had a constructor that could help us, but you don't have...

DecentURL instead of TinyURL

I always go back and forth on wether using something like TinyUrl is worth the effort. For a vast majority of people, a short url is doesn't matter as long as they can click on it. However, as I spend more using a mobile device with a small screen screen, I am starting to see more benefit in shortening the url because it takes up less space. However, there is one major drawback to TinyUrl, you really have no idea where you will end up after you click the link. In addition, browsing the web is getting better on mobile devices, but...

Need test certifices for your CardSpace application ?

To use the CardSpace samples, SSL certificates, virtual Web directories and host file entries must be installed. I've waste a little time when trying to have a valid certificate for my InfoCard application. I think this link will help if you got the same situation http://msdn2.microsoft.com/en-us/library/aa967570.aspx  

Vista Command Prompt Tips

Microsoft has streamlined your ability to launch Command Prompt sessions in Windows Vista. Besides accessing the Command Prompt through the Start Menu, the following are three other methods to launch the Command Prompt with varying permission-levels. Shift and Right-Click You can hold down shift and right-click and you will get the option to "Open Command Window Here." This will open a Command Prompt that is queued to your current directory. Right-click for administrator privileges Additionally, you can edit the registry to add a right-click option for "Administrator Command Prompt Here." This is useful if you are buried in a directory and want to launch...