Author: devonenote
-
Visual Studio plug-in: GhostDoc
Are your tired of documenting you code using C# /// XmlDoc syntax for each and every method? It is time for you to meet SubMain’s GhostDoc. SubMain’s GhostDoc is a Visual Studio plug-in the was design just for you. It will parse your method/property/parameters names and will create a great documentation just for you with…
-
Forget WordPress Admin Password
After setup local WordPress environment, WordPress will generate a password for admin logon. The password is so strong that forget the password can easily happen. The easiest way to get admin password back is reset it again in database. Here is the SQL command that will do it: UPDATE ‘wp_users’ SET ‘user_pass’ = MD5(‘PASSWORD‘) WHERE…
-
Install Local WordPress Environment on Windows
WordPress is one of most popular blog applications. This application is very easy to use however setup a local environment for theme or plugin development on windows system is not that easy for bloggers. In this post, I will walk thru you how to setup local WordPress environment using Microsoft Web Platform Installer 2.0 with…
-
C# reading from and write to text file
CSharp sample for reading from a text file and writing to a text file. //Reading from a text file System.IO.StreamReader srFile = new System.IO.StreamReader(@"c:foo.txt"); string str = srFile.ReadToEnd(); srFile.Close(); //Writing to a text file string lines = "foobar"; System.IO.StreamWriter swFile = new System.IO.StreamWriter(@"c:bar.txt"); swFile.WriteLine(lines); swFile.Close();
-
Change Theme in Outlook 2010
To change theme in Outlook 2010 Open outlook, click Files, then Options On the General tab, select a different theme in Color scheme drop down.
-
Some shortcuts no longer work in Outlook 2010
It turns out Alter Shortcuts, e.g Alt+R (Reply), Alt+L (Reply All), and Alt+W (Forward), no longer work in Outlook 2010 BETA at all, though they worked in Outlook 2007 and previous Office 2010 CTP version. Actually, these shortcuts are not lost, they just change Alt to Ctrl for some reason. Users have to use Ctrl+R…
-
OneNote: Unread Highlighting cannot be cleared
I recently upgraded to Office 2010 BETA and I notice an annoy bug in OneNote 2010. There is a feature in OneNote 2010 which will highlight unread content after notes are synced between two PCs. However, it can’t detect whether those content is read or not so the green highlighting will stay there forever. The…
-
Uncompress MSI File
Sometimes I need to unzip MSI file to view its content without actual installing it. I used to use a 3rd party tool named 7zip to extract MSI. Today I discover there is much easier way to do this with windows build in tool msiexec.exe The use msiexec to uncompress MSI file, you need to…
-
Batch Script Tips
Getting the current working directory cd /d %~dp0 Comment: %0 is the name of the batch file. ~dp gives you the drive and path.
-
SysInternals tools now accessible over UNC
Two tools that I use frequently when troubleshot issues on servers are Process Explorer and Process Monitor. Since these are not windows built in tools (though they owned by Microsoft), I always have to go to Sysinternals site and download them one by one. I just notice that SysInternals tools are accessible over a public…