Saturday, April 12, 2008

Javascript Stopped Working in Internet Explorer

Re-install Windows Scripting Host.

Monday, February 11, 2008

Majordomo Bounce Header field too long (>1024)

Change the following option in majordomo.cf:

# The maximum character length of the _entire_ header for resend
$MAX_TOTAL_HEADER_LENGTH = 1024;

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

Tuesday, December 11, 2007

SC.EXE value pair oddity

The command-line syntax for SC is rather odd. Key/valuepairs are specified as "key= value" (without the double-quotes). The"key=" part must not have any spaces, and the "value" part MUST beseparated from the "key=" by a space.

Thursday, October 4, 2007

Import of Excel 2007 sheet into Sharepoint 3 : Method 'Post' of object 'IOWSPostData' failed

  1. Open C:\Program Files\Microsoft Office\Office12\1033\EXPTOOWS.XLA in Excel.
  2. ALT-F11 to open Visual Basic for Applications.
  3. Right-click publishForm and "View Code".
  4. Find the method Sub Initialize(List, Title, URL, QuickLaunch)
  5. Change lVer = Application.SharePointVersion(URL) to lVer = 2 . For some reason, Sharepoint appears to return "0".
  6. Save. This step is important...
  7. Try again. Equally important...

Wednesday, September 19, 2007

Supplying user credentials to Sharepoint 2 from a client program

// C#
myCredentials = new System.Net.NetworkCredential(username, password, domain);
mywebs = new SPWebs.Webs();
mywebs.Credentials = myCredentials;
mylists = new SPLists.Lists();
mylists.Credentials = myCredentials;

Re-install the Server Service

To re-install "Server Service" in Windows 2003/XP, delete and re-install "File and Printer Sharing for Microsoft Networks" in network connection properties of your current network connection. Reboot in between.

Re-installing the Workstation Service

To re-install "Workstation Service" in Windows 2003/XP, delete and re-install "Client for Microsoft Networks" in network connection properties of your current network connection. Don't forget to reboot in between.

Monday, August 20, 2007

Sound in Virtual PC and Windows 2003 Server

Get the SoundBlaster 16 driver files ctlsb16.sys and wdma_ctl.inf from Windows XP

Thursday, August 2, 2007

Review of Sanyo Xacti HD2 High Definition Digital Movie Camera




Don't expect too much and you won't be disappointed. The image quality is acceptable rather than superlative. The comparable Sony Cybershot DSC-M2 produces a slightly better quality picture. There is a slight lag between pressing the video record button and the the camera responding which is the most annoying thing so far. Battery life is a great deal better than the Sony. It will also accept the latest 8GB SDHC cards which gives you hours of filming. The anti-shake is impressive at low zoom and okay at high zoom. The macro mode will focus down to within an inch which is impressive. In short, for slightly better quality, buy the Sony, but for battery life and features, buy the Sanyo.

Wednesday, July 25, 2007

Fix for IIS 6.0 not delivering file types

Right-click on IIS in MMC, and add the file extension to the MIME Types

Tuesday, June 5, 2007

Anti-framing Javascript

<script language="JavaScript">

if (top.frames.length!=0) {

var toploc = "";

try{

toploc = top.location.host.toString();

}

catch(e){

// if you can't get the top location, it means you are being framed by another domain...
pop out

top.location=self.document.location;

}

}

</script>
 
Jeffrey Ting Jeffrey Ting on Facebook Jeffrey Ting on Spock Jeffrey Ting on Plaxo Jeffrey Ting on Spoke Jeffrey Ting on LinkedIn