Browse by Tags
All Tags »
act (RSS)
Memory leaks are always headache of developers. Do .NET developers no longer bother to worry about memory leaks because of garbage collection? Yes and NO. GC periodically find objects that cannot be accessed in the future and then reclaim the resources
Read More...
In my MSDN blog, I need “Recent Posts”, but I don’t need archive side bar. After having played with template for a while, still no luck. Hmmm, looks like I have to DIY it. Fortunately in News sidebar, you can fill in raw html including JavaScript . Then
Read More...
Run into the algorithm problem long time ago. Now post my answer here. A sorted array, say: {1,2,3,4,5,6,7,8,9,10,11,12}, do right rotate through carry unknown times, and then it might become: {6,7,8,9,10,11,12,1,2,3,4,5}. Now we need get the index of
Read More...
That FB app( http://apps.facebook.com/funnyqa/ ) is totally out of curiosity about how FB developer platform is working. Roughly it is like this: Get started cost -- ~10$/year for a website space; need a PC of course Technology platform -- LAMP. Website
Read More...
What I am talking about in this post might be well known to many people(too simple, sometimes naive?), but often most basic things make a difference. OK, get down to business. Thumbs rules for DB security might be: Define your security boundary(or attack
Read More...
Basically, window app UI, either WPF or traditional WinForm, is single threaded, which means only one thing can happen in the UI at any given time. To be specific, it is not generally possible to create an object on one thread, and access it from another.
Read More...
We often need to know a given object’s all properties at run time, for example, tracking a data container object’s properties changes across different components. Here is a simple helper class you can use to do this magic. namespace Helper { using System;
Read More...
In my previous post, I mentioned that I will write an article about adding a new column to your inbox. Here you go! What we will achieve Quite simple. Take a look at below screenshot and you will notice that a new column, SubjectLength , is added to the
Read More...
In this post, I’d like to talk about certain basics for Outlook 2007 starter programmers. Outlook 2007 is shipped with enhanced programmability in various ways. Looking at Outlook Object Model Reference , new users are often confused by terms such as
Read More...
In this post, I’d like to illustrate the power of LINQ with code sample. I query the web service published by eBay. Refer to this article about eBay API concepts. EbayItem.cs namespace LINQ2EbayResponse { class EbayItem { public string ItemID { get ;
Read More...
From time to time, we run into the scenarios of adding new columns to existing table with millions of records to meet emerging business needs. And these new columns often need initialized with default value. In this post, I’d like to illustrate my solution
Read More...
In this post, I’d like to discuss one interesting algorithm problem which took me quite a while to find an ideal solution. The problem is as followings: Array A and B are sorted with length of m and n respectively. Try to select median of the two arrays
Read More...
The major benefit of double check locking is to reduce the overhead of acquiring a lock by first testing the locking in an unsafe manner under a multi-threaded environment. It is widely used in the scenarios such as lazy initialization. Typical pseudo
Read More...
A stored procedure is an already written SQL statement that is saved in the database. It can take parameters; return objects you specified, just like what happens in any other programming languages you are familiar with. Why stored procedures instead
Read More...