24.10.06

[Advanced Programming] ThreadStatic fields

ThreadStaticAttribute class gives us a very neat (and lazy) method for creating thread level static fields.


Any static field marked with ThreadStatic attribute will be unique for each thread accessing it.



public class ThreadStaticSample
{
   [ThreadStatic]
   private static List<string> stringList;

   // ...
}

Promoting Windows Vista --- stupid!

Are there more stupid ways to throw away marketing money?

http://www.clearification.com/


Duh!

19.10.06

Internet Explorer 7 Final – RunOnce troubles

If for some reason IE7 gets stuck on first load runonce webpage stating some kind of loading or server cache error, fear no more.

Open regedit,
find key "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main" and add two DWORD Values in it: RunOnceComplete and RunOnceHasShown, both with value "1".

Restart IE, and enjoy…