My MSN

Click OK to add this content

 
Content Preview: rss
-+forget,repeat and memory
1 days ago
This afternoon, one of my collegues asked me to look at his codes cause his asp.net upload file codes could not work. the phonomynon is: on his dev computer, it worked well, but it failed after deployed to our production environment. What he want is to add as possible as many files on an asp.net page and upload them to the server by clicking one upload button. I remembered doing such functionality two years ago, but I could not memorize the implementation details at all. So I had to look for related articles on this my blog site. Did my memory become worse than before? I think so a bit. I forgot something and I have to struggle repeating my feeling to try to catch and memorize it. I am old.
-+Make good preparation for MES go live
3 days ago
Finally our MES project will go live on 2nd 12 after almost 4 months mutual effort with our vendor. It will be a busy month no doubt. The program will be modified frequently when end user start to face it and to explorer it, a lot of refactor work wil evitably be done within a tight time frame. May it succeed!
-+anoyed trojan virus
65 days ago
anoyed trojan! I was surfing last night when my browser prompt me one window, immediately followed is something like voice broadcast began to anoy me. My ituite told me that it must be some kind virus. So I have to stop to scan the memory for virus, within several minites, some trojan was detected and was reported that it damaged my system file. Then I rebooted my computer and did full scan for the drive, checked security settings on my computer, the user account & group policy, the windows firewall, the shared resources, the security patches, after almost one hour's work, finally, the trojan was cleared completely. But there is one thing that I confused, how I got  my computer infected? I checked my browser history and found no clue.
-+dev skill lesson plans
120 days ago
C# dev skill lesson plans for the next 2 weeks. 1. anonymous method & delegate 2. LINQ 3. lamda expression 4. extension method 5. query expression   this time, focus on anonymous method & delegate. delegate 1. delegate's signature consists of parameters and return type. 2. each method which matches delegate's signature can be assigned to the delegate. 3. covariance allows delegate defining a general return type and one method which has matched the signature and more derived return type can be assigned to it, yet contravariance allows defining a general parameter type when declaring delegate. 4.generic delegate can be used with typical design patterns   anonymous method 1. essentially a way pass code block as delegate parameter, reducing the unnecessary overhead.
-+System.Threading.Timer
187 days ago
In one of our system, there is a task which demands to check the incoming mail task periodically and send it out if any. Since it is a sole task, no need to much communicated heavily between threads, just scan the database mail table to pull out these task and send. Compared the currently existing three different APIs in .NET, one is mainly for windows form application, one is for accurate and complex server multiplethread application, and the third one is the lightweight timer for simple thread task, it is System.Threading.Timer. I chose the last one as my solution. Here I put the  presudo codes for further reference.   System.Threading.Timer timer = new System.Threading.Timer(new TimerCallback(WorkerClass.ExecuteMailTask)); timer.Change(1000,0); // specify start timer after 1 second   ... in my WorkerClass, I define one static method ExecuteMailTask to stop timer temporarily and execute the mail task. the following is the preseudo codes   ExecuteMailTask(object ...
© 2009 MicrosoftMicrosoft