Friday, December 19, 2008

FTP server not working on Windows 2003

  1. Configure your firewall. Use the script from here:
  2. Make sure your anti-virus/anti-malware isn't blocking inbound FTP requests.

Friday, November 21, 2008

How to replace a broken default.master in SharePoint 3.0

If you mess up your default.master in SharePoint 3.0, you may get a "File not found" error on every page. To restore operation, use Windows explorer to go to the folder \\SharePointSite\DavWWWRoot\_catalogs\masterpage and copy a valid default.master file there.

Thursday, November 20, 2008

Displaying record ID in Sharepoint 2003

Put the following javascript in the Dispform.aspx and Editform.aspx:

function urlparm( name ){ name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\< /a>]"); var regexS = "[\\?&]"+name+"=([^&#]*)"; var regex = new RegExp( regexS ); var results = regex.exec( window.location.href ); if( results == null ) return ""; else return results[1];}

onetidPageTitle.innerHTML=' <h2 class="ms-pagetitle">ID: '+urlparm("ID")+'</h2>';

Get whois on an IP address in a web page

create a bookmark. Enter the following URL:

javascript:{var s = document.selection; var r = s.createRange(); var t= r.text; var""+t);}

Select an IP address on a web page. Click on the bookmark.

Tuesday, November 18, 2008

Set program output to environment variable in batch file

FOR /F "tokens=*" %A IN ('prog.exe') DO SET ENVVAR=%A

Sunday, November 9, 2008

How to stop a META REFRESH

Use Firefox 3. Go to Tools, Options, Advanced, General and check the box for "Warn me when websites try to redirect or reload the page".

Thursday, October 16, 2008

Software for HP 2840 printer won't install on XP without USB drivers (eg. virtual PC)

Copy the installation files from CD to hard disk. Find the file "HPZchk01.exe". Replace it with a "do nothing" exe file. Windows Notepad.exe will also do as a last resort.

Monday, October 6, 2008

Hack to convert Windows XP Home to Windows XP Professional

  • Open Registry Editor (regedit).
  • Navigate to HKEY_LOCAL_MACHINE/SYSTEM/ControlSet00X/Control/ProductOptions, where X is the highest number.
  • Delete the ProductSuite registry key.
  • Then, create a new DWORD value and named it as "Brand".
  • Set the "Brand" value data as 0.
  • Restart the system.
  • On boot up after the BIOS screen, press F8 to display Windows XP Startup Menu.
  • Choose Last Known Good Configuration.

Tuesday, September 30, 2008

Windows Vista LAN Access Local Only

Check default gateway via ipconfig /all. If a gateway of exists, delete it with route delete.

Wednesday, August 20, 2008

Multiple Concurrent Remote Desktops in Windows XP

After Windows XP Service Pack 3 Remote Desktop not disconnecting cleanly

Clear the checkbox "Reconnect if the connection is dropped" on the "Experience" tab.

Sunday, August 10, 2008

Decompile CHM into HTM

Thursday, August 7, 2008

Virtual Server could not open its emulated Ethernet switch driver.

Usually happens when you have installed a new network card or updated it's driver. Follow the procedures here to fix:

Wednesday, August 6, 2008

Hobocopy "stops" MS Virtual Server Guests

MS Virtual Server R2 SP1 has Shadown Copy integration. Using Hobocopy to copy running VHDs will cause Virtual Server to save the virtual guests. Currently no clean way around except to restore the virtual guests after Hobocopy has started.

Thursday, July 3, 2008

"network path not found" When joining Active Directory domain

Add "File and Printer Sharing" to the client PC/Server.

Thursday, May 8, 2008

Installing SVN on Windows 2003

Download svn-1.4.6-setup.exe from

svnadmin create c:\SvnRepo

Serve the repository svnserve -d -r c:\SvnRepo

test it by running:

svn info svn://localhost

Create a Windows service for the server :

sc create "SvnServer" binPath= "\"C:\Program Files\Subversion\bin\svnserve.exe\" --service --root \"c:\SvnRepo\"" DisplayName= "Subversion Server" depend= tcpip start= auto

Wednesday, May 7, 2008

The SQL Server (SQLEXPRESS) service terminated with service-specific error 3417 (0xD59).

The file "c:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\mastlog.ldf" is compressed but does not reside in a read-only database or filegroup. The file must be decompressed.

Saturday, April 12, 2008

Monday, February 11, 2008

Majordomo Bounce Header field too long (>1024)

Change the following option in

# The maximum character length of the _entire_ header for resend

Wednesday, February 6, 2008

Connect to SQL Express Embedded Edition With Management Studio

Start SQL Server Configuration Manager.
Set "Hide Instance" to "No" for "Protocols for MICROSOFT##SSEE".
Restart the service.

Friday, January 25, 2008

Disabling SELinux

Edit the file /etc/selinux/config.
Set SELINUX=permissive

Moodle refuse to login on CentOS 5

Disable SELinux

Wednesday, January 23, 2008

Postfix warning: connect to private/anvil: Connection refused

sh /etc/postfix/post-install upgrade-configuration
Jeffrey Ting Jeffrey Ting on Facebook Jeffrey Ting on Spock Jeffrey Ting on Plaxo Jeffrey Ting on Spoke Jeffrey Ting on LinkedIn