Category: Development

  • Final Visual Studio 2010 available for download

    Visual Studio 2010, the best version of Visual Studio ever, is now available for download in Microsoft download center. The build number for RTM VS2010 and CLR4 is 4.0.30319.1. Here is link for free trial Visual Studio 2010 Professional Visual Studio 2010 Ultimate Training Resources Visual Studio 2010 and .NET Framework 4 Training Kit Visual…

  • MSI and WIX How to Tutorials

    WiX tutorial http://www.tramontana.co.hu/wix/ Introducing WiX http://www.ondotnet.com/pub/a/dotnet/2004/04/19/wix.html WiX Tutorial – Steps to Create an Installer MSI with WiX http://www.dalun.com/wix/01.09.2005.htm Windows Installer Guide from Microsoft MSDN http://msdn.microsoft.com/library/en-us/msi/setup/windows_installer_guide.asp General WiX Documentation and Help Windows Installer XML (WiX) v3.0 Help http://wix.sourceforge.net/manual-wix3/main.htm WiXUI dialog library guide http://wix.sourceforge.net/manual-wix2/WixUI_dialog_library.htm

  • Find Dead Code

    Dead code means block of code that is not reachable in application. They can cause noisy in code debugging and confuse developers. Sometimes I might spend a few hours to figure out why a breakpoint never hit. Most of code defect is result of old function no longer used and referenced. Remove them will prevent…

  • List of dev and test tools for IE8

    From http://www.microsoft.com/windows/internet-explorer/readiness/testing-tools.aspx Here is a list of convenient development and test tools to help test and modify applications to run on Internet Explorer 8: Debugging websites Debugging User Agent String Changes This program produces a report on Internet Explorer’s current User Agent String, along with scripts to simulate User-Agent Strings for other Internet Explorer versions…

  • Delete blank lines from text file

    This note is for a few quick ways to delete all blank lines from a text file. sed ‘/^$/d’ file > file_new grep -v "^$" file > file_new (This is for Notepad++ users) Select all text (shortcut Ctrl+A) and then click Menu TextFX -> TextFX Edit -> Delete Blank Lines

  • 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…

  • 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();

  • 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.