April 2005 Entries
Well, a bunch of people have raised an issue with DesignMode property doesn't work quite well. Fabrice already suggested some workarounds which are 1. this.GetService(typeof(IDes... !=null 2. System.ComponentModel.Licen... == System.ComponentModel.Licen... 3. System.Diagnostics.Process.... == "devenv" Today, I just experienced a problem where I used method 3 to detect whether a control is in DesignMode or not. This test will fail...
Sometimes, I have to use function to define a constant in SQL Server. However, it doesn't perform as well as just plugging in constant value in there. Why can't we just have constant value in T-SQL? Don't tell me that there is a deterministic function. Most of the time, SQL Server just keeps calling the function although it does know that the function is deterministic
Sometimes, I have to connect to unmanaged system in which I have to initialize something at the beginning and need to clean up at the end. In this case, instead of writing a singleton class that have a finalizer, can't I have a class destructor to do this job
Recently, I got a bunch of e-mail from ebay saying that my credit card account has been compromised. I'd bet it is a spoof e-mail. Can any one confirm with that
http://science.slashdot.org
Why neitherC# compiler nor the language itself (through an ability of attribute) provide a way for developers to set their own stack size? Note: You can modify stack size manually through a utility called EditBin.exe (http://blogs.geekdojo.net/
Why does Microsoft introduce DBNull.Value while it can use null instead
It seems like Borland quietly dropped C#Builder from its website. Does it lose in C# IDE world to VS.NET completely
Yesterday, my colleague experienced a problem when trying to execute SQL statements through a linked server. The query was fine if execute alone like exec linkserver.northwind.dbo.Ge... '12/31/2004' However, when he executed it and try to insert the result into temp table insert into #ordersexec linkserver.northwind.dbo.Ge... '12/31/2004' The server just hung without doing anything furthur. He tried to kill SPID but it waited in KILL/ROLLBACK state forever. Cause: When executing SQL statements...
Slashdot posted an interesting article about new hitachi harddisk technology which is well represented in this flash video (Funny). This may help MP3 to be able to store 30,000 songs instead of roughly 3,000 songs today. http://www.hitachigst.com/h
Aaron Stebner posted an updated step to perform unattended install of VS.NET 2003. Great information. http://blogs.msdn.com/asteb
Due to c# specification, overloaded operator can only be implemented as a public static function only. This is unlike C++ where it allows both instance and static operator function. Eric Gunnerson did comment once that is because of the simplicity. Because of this limitation, you cannot declare an interface or an abstract class where you can define those operators and try to perform that operation on interface or an abstract class. This especially will impact generic class. More example to come later....
I would like to start asking some questions in C# + .NET in which I don't have answers yet. If you guys know the answers, please help answer that. I will try to maintain the list of answers. Thanks :) To kick off an infrequently asked question awaiting for answer, I would like to ask why .NET BCL does not offer the API to convert time from one timezone to the other time zone. You have some way to convert time from other timezone to your local timezone by using DateTime.Parse hack though...
Via http://blogs.msdn.com/dfeie... MSN 7.0 is gold already
I noticed that Brad would like to get Chris back I would like him to be back in the blogosphere as well. Please join this effort :)
You don't really have just 1GB on GMail anymore....Take a look at what I have right now.... You are currently using 787 MB (38%) of your 2053 MB Quoted from GMail's new feature list: G is for growthStorage is an important part of email, but that doesn't mean you should have to worry about it. To celebrate our one-year birthday, we're giving everyone one more gigabyte. But why stop the party there? Our plan is to continue growing your storage beyond 2GBs by giving you more space as we are able. We...