Category Archives: Uncategorized

How to extend Visual Studio Xaml Designer

I do want to extend Visual Studio Xaml designer with a context menu, but encountered many troubles. To get start,  this page helps. To choose right extension method, I inspected source code of similar tools. For my case, it’s StyleCop. … Continue reading

Posted in Uncategorized | Leave a comment

用PowerShell批量编辑ID3

很多MP3的ID3是BIG5编码的 用下边这个PowerShell脚本可以批量把title, author变成简体中文 $big5 = [Text.Encoding]::GetEncoding(950) $root = “<your mp3 folder>” $files = Get-ChildItem $root -Filter “*.mp3” -Recurse foreach($file in $files) {   $wmp = New-object –COM WMPlayer.OCX; $media = $wmp.newMedia($file.FullName); $newTitle = $big5.GetString([Text.Encoding]::Default.GetBytes($media.GetItemInfo(“Title”))); $media.SetItemInfo(“Title”, $newTitle); $newAuthor = $big5.GetString([Text.Encoding]::Default.GetBytes($media.GetItemInfo(“Author”))); $media.SetItemInfo(“Author”, … Continue reading

Posted in Uncategorized | Leave a comment

没装office如何看doc/docx文件

有人说了,我们可以安装word viewer。确实不错,可word viewer也得下载一会儿,最主要是我根本不想装多余的软件。现在SkyDrive就可以在线查看word, excel和ppt文件了,对于excel还可以在线编辑。Have a try. Office Live也有相同功能。

Posted in Uncategorized | Leave a comment

how to send gmail from ubuntu terminal

Telnet won’t work because gmail requires SSL now. Prepare your user/password in base64 encoding. openssl s_client -CApath /etc/ssl/certs/ -connect smtp.gmail.com:465 -crlf (-crlf is important) SMTP session:helo auth login UserInBase64 PasswordInBase64 mail from: <sender> rcpt to: <to> data . quit

Posted in Uncategorized | Leave a comment

How run Windows Virtual PC and VirtualBox at the same time

Posted in Uncategorized | Leave a comment

Visual Studio don’t response when I create new project or stop debugging

Today, I found visual studio didn”t response for more one minute when creating new project or just stopping debugging. It was quit annoying! I had to wait and wait everytime I stopped debugging and wanted to change some code. I didn’t know … Continue reading

Posted in Uncategorized | Leave a comment

新机器

嘎嘎

Posted in Uncategorized | 5 Comments