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>

Saturday, April 21, 2007

To recover from a System32\NTOSKRNL.EXE missing or corrupt error on Win2k3

Boot to Recovery Console. Then:

cd "c:\windows\driver cache\i386"
expand sp1.cab -F:ntoskrnl.exe c:\windows\system32

Saturday, January 6, 2007

Moo, Moo, Blue Cow

Moo, moo, blue cow,
Have you any milk?
Yes sir, yes sir,
Three buckets full.

One for the farmer,
One for the wife,
And one for the little cat
Who lives in the house.

Created by Jessica Ting, age 4.

Tuesday, January 2, 2007

Tabbed DNN menu

userootbreadcrumbarrow="false" - Ensures that the arrows do not appear.
leftseparator=" " - If you don't insert a non-breaking space here, the left side of the tab will collapse.
rightseparator=" " - If you don't insert a non-breaking space here, the right side of the tab will collapse.
leftseparatorcssclass="YourClassName" - This is the left-hand side of your tab in its "Off" state, so specifiy a height and width for the class as well as a non-repeating background image.
rightseparatorcssclass="YourClassName" - This is the right-hand side of your tab in its "Off" state, so specifiy a height and width for the class as well as a non-repeating background image.
rootmenuitemselectedcssclass="YourClassName" - This is your Mouseover state for the tabs. By creating this class, you can specify a different rollover state for the Main menu items and the Submenu items.
leftseparatorbreadcrumbcssclass="YourClassName" - This is the right-hand side of your tab in its "On" state, so specifiy a height and width for the class as well as a non-repeating background image.
rightseparatorbreadcrumbcssclass="YourClassName" - This is the right-hand side of your tab in its "On" state, so specifiy a height and width for the class as well as a non-repeating background image.
rootmenuitembreadcrumbcssclass="YourClassName" - This is the body of your tab in its "On" state, so specifiy a height and width for the class as well as a horizontally-repeating background image.
That covers the left and right-hand sides of tabs in both their "On" and "Off" states, as well as the background for a tab in its "On" state.
To achieve the background for the "Off" tabs, apply the tab's background image to the MainMenu_MenuContainer class.
 
Jeffrey Ting Jeffrey Ting on Facebook Jeffrey Ting on Spock Jeffrey Ting on Plaxo Jeffrey Ting on Spoke Jeffrey Ting on LinkedIn