Programming
Many people use .NET framework library without reading documentation. Sometimes, it just like taking medicine without reading its label. Today, I found that there is a piece of code trying to read AssemblyInfo.cs and change the version of the .NET assembly based on the input. The code seems to work quite well for most of the files except for certain files. In each of those files, there is an extra "]" at the end. It took a while to see that it's using FileMode.OpenOrCreate instead of FileMode.Create....
As Bush's goverument proposed the extension of daylight saving time period, the daylight saving time will start in March and end in November in 2007 instead of April and October previously. This will cause a problem for unpatched system not to display time correctly. Therefore, several vendors have provided a patch for their own system including Microsoft. Microsoft released a KB928388 patch. What this patch does is to modify some registry keys that keep information about time offset and daylight...
Many times, people use Uri.ToString() to convert Uri back into String. However, based on the documentation, ToString() actually returns the canonical string representation of the actual URL. This means the special characters that were previously escaped will be unescaped. If you try to use a string that returns from the function, it will be ok in most case except when you have escaped characters in there such as "%20" (" "), "%2b" ("+"), "%25 ("%"), etc. To make the code works right, you should actually...
I'm an Intelli-J IDEA fan, but I will give it a try when Eclipse 3.2 is out tomorrow. http://www.eclipse.org/org/
Recently, I changed my code to use Application.EnableVisualSty... in .NET 2.0 and believed that most of the bugs that existed with .NET 1.1 should be fixed already. So I got a new exception AccessViolationException a lot recently and tried to locate the cause but without luck. I think it must happen because of this. I will try to remove it and see what happens.
A week ago, my colleague encountered a weird bug where a SOAP call via AXIS stopped responding and it kept hanging. Interestingly, this problem never happened on the other box or in windows machine. We dumped the stacktrace and found that SecureRandom implementation of JSSE is the part of the problem. A quick check via google yields something about /dev/random. It seems that Linux Kernel 2.4.X seems to have a problem with /dev/random. After it dumped out a couple hundreds bits, it will just block...
Look forward to RTM version!!!!! Download it @ MSDN Subscriber Download
I just used ImageAnimator class for the first time. And I ran into a problem pretty quickly. First, OnFocusChanged eventhandler will be fired from another thread handled by ImageAnimator => which is not a UI thread. So any UI operations are called in the event handler, you need to use Control.Invoke to call back into UI thread. Second, every time OnFocusChanged is called, it will make a lock using ReaderWriterLock. This worked fine until I made a callback using Control.Invoke. The deadlock appeared....
Yesterday, I came across a problem where I host JVM inside a process and use JNI to connect to JVM. Usually it should work fine. However, when you spin off a new thread from unmanaged world and make a JNI call into Java code that uses ClassLoader. That's where I ran into the problem. Since the thread is instantiated outside JVM, therefore, Thread.currentThread().getC... is not set properly. It would be defaulted to System/Bootstrap ClassLoader instead. Therefore, it cannot find the...
I would like to get a poll. When you are in a project that has a tight time constraint and you have some poor existing code base, what would you do? Are you going to leave it as is and get stuff done or refactor it all the way? Which way do you think will make the project done earlier? Why do you think so
Full Programming Archive