7. February 2014
xhinker
Windows8
It is the last day of Chinese New Year holiday. I cleaned my Working machine and free up almost 20g space, (120g ssd total). There are two simple ways to clean c driver. 1. disable hibernation and limit virtual memory 2. User WinDirStat to detect and view which file or folder occupy your disc, ...
[More]
30. August 2013
xhinker
DotNet
Code here:
static void SendMail3() {
MailMessage message = new MailMessage("from@microsoft.com", "to@microsoft.com", "subject", "test body");
message.To.Add("new@microsoft.com");
 ...
[More]
3. August 2012
xhinker
Windows8
I installed Windows 8 RC in VirtualBox with 25G virtual disk size, which squeezed with Office 2013 and Visual Studio 2012. Then, only 2G disk space is available. Now, I have two options, 1. Reinstall the Win8 2. Inscrease VHD size.
Thanks for this blog entry, I found the solution.http://ttcshelbyvi...
[More]
11. July 2012
xhinker
ASPNET , Web
1. Get host URL
function getHostUrl() {
var protocol = window.location.protocol;
var host = window.location.host;
return protocol + "//" + host;
}
2.Timer fu...
[More]
6. July 2012
xhinker
DotNet
I found myself always forget the connection string format. this is a memo for it.
1. User Id and password style
Data Source=myServerAddress;Initial Catalog=myDataBase;User Id=myUsername;Password=myPassword;
Initial Catalog can also be replaced by database
2. User Id and password with Trusted_Con...
[More]
1. Live Connect Developer Center
http://msdn.microsoft.com/en-us/live/
2.SignIn Scopes and permissions(wl.xxx)
http://msdn.microsoft.com/en-us/library/live/hh243646
3.Sigining Users in(c#)
http://msdn.microsoft.com/en-us/library/live/hh826543#csharp
4.Get Live Client Id
http://manage.dev.live...
[More]
3. May 2012
xhinker
DotNet
As the title indicates, the following code can calcuate words appearance frequence in a text file. to use this code,
1. run it and input a file name,
2. Press Enter, few seconds later, a result file will be created which contains the word frequence information.
class Program
{
...
[More]
1. Xaml Code inside root Grid element
<phone:PhoneApplicationPage.ApplicationBar>
<shell:ApplicationBar IsVisible="True" IsMenuEnabled="True"
&nb...
[More]
1. When do we use Dispatcher?
For example, if we create a new thread that will deal some time cost stuff. After the thread finish its work, we want to update the WPF UI. Then, it is time to use Dispatcher.
Dispatcher.Invoke(new Action(MethodName), null);
If ...
[More]
17. April 2012
xhinker
DotNet
I searched around the net for a C# rss reader, but samples are either too complicated or errors prone. DataSet.ReadXml() gets a bug...So, finnaly I realized that write one of my own rss reader would be a quick and better than use one from the internet. And I think this one is the BEST:)No more words...
[More]