OS X Eject button

December 29th, 2008

A small collection of keyboard shortcuts that breath new life into the Eject button in OS X.

Screen to sleep
ctrl + shift + eject

Computer to sleep
option + cmd + eject

Computer restart
ctrl + cmd + eject

Computer shutdown
ctrl + option + cmd + eject

phil Mac

SharePoint 2007 - An unexpected error has occurred

December 1st, 2008

Sometimes things can and do go wrong when working with WSS or SharePoint.  The first port of call should be the SharePoint Log files.

If this help then its a good idea to change the default behavour of the .NET web application to allow the application stack traces to be shown when the page fails to render.  Simply locate your web applications web.config file and make the following changes:

From:
<SafeMode MaxControls="200" CallStack="false" DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="false">

To:
<SafeMode MaxControls="200" CallStack="true” DirectFileDependencies=”10″ TotalFileDependencies=”50″ AllowPageLevelTrace=”false”>

and also

From:
<customErrors mode="On" />

To:
<customErrors mode="Off” />

phil Microsoft, SharePoint , , ,

Using Windows Clip Art on a Mac

August 20th, 2008

Having recently convinced my wife that she needed to make the switch to Mac OS X I was horrified to find that the Mac would not open WMF files.  Over the years I have accumulated a large collection of clip art files in the WMF (Windows Metafile) file format and didn’t really want to start again.

I found the quickest way to resolve this was to convert all of my existing WMF file into the PICT file format.  Using one of my Linux servers I ran the following shell command against my picture library:

find /home/user/clipart/ *.WMF -print0 | while IFS= read -rd $'\0' f;
do echo "[$f]“;
convert “$f” “$f.pict”;
rm -f “$f”;
done

This creates a list of files who’s file-name ends with WMF.  We then loop through each of these file-names converting each and saving it with a .pict file extension.  The IFS= read -rd parameters are absolutely necessary should your WMF files contain spaces.

phil Linux, Mac, Microsoft ,