Fixing Duplicate Icons in OSX Launchpad

I know, a little off-topic for a mostly SharePoint/.NET blog, but after a recent upgrade I found I had duplicate iPhoto icons in Launchpad. That frustrated me. I did a bit of Googling, and found others had the same problem, and were suggesting deleting the database that stores the Launchpad’s details. When the Dock was reloaded, it would recreate that database. Unfortunately, it would also lose the layout of all your folders and icons.

“Delete the database”, I thought, “It’s a database, how hard can it be to fix that?”

So I set out to fix the database without deleting it, and losing all my folders… Continue reading “Fixing Duplicate Icons in OSX Launchpad”

Advertisements
Fixing Duplicate Icons in OSX Launchpad

Lorem() function to create a Lorem Ipsum in Word

Just a little tip – you can create Lorem Ipsum text in Word 2007 or later. Just type:

=lorem(5,6)

…and press return. The numbers refer to the number of paragraphs and the number of sentences per paragraph respectively.

Lorem() function to create a Lorem Ipsum in Word

Outlook Plugin – Finding the ImageMSO for the ribbon

Ages ago, I wrote an Outlook plugin for saving emails (.msg files) from Outlook 2003 to SharePoint 2007. Well, the time had come to upgrade that to Outlook 2010. Broadly speaking, that went well, with one exception – what icon to show in the ribbon?

I didn’t want to go through the pain of designing my own icon (in its various different sizes), so I decided to highjack one of the office ones. The customer I was dealing with wanted the ‘Filing cabinet’ icon of the ‘Auto Archive Settings’ button.

AutoArchive settings on the ribbon

Fine, no problem, it’s built in – in it’s various sizes and resolutions. Except – what is its ID? Continue reading “Outlook Plugin – Finding the ImageMSO for the ribbon”

Outlook Plugin – Finding the ImageMSO for the ribbon

PowerPoint Slideshows (.pps) open as PowerPoint Files

Hmm. One of our salesmen called up today with an interesting problem. We’d published some PowerPoint presentations as slide shows (.pps files). If you open one of these, it should just launch PowerPoint into the presentation. However, he was opening them from our website and they were opening as a normal PowerPoint (.ppt) file. That is they were opening ready for editing, not in presentation mode. Weird.

I remembered having seen this before, but a bit of poking around showed that my fix was still in place. Curious. When I clicked on the link to the presentation I got the ‘Download or Open’ dialog thingy:

Vista's File Open or Save Dialog in Internet Explorer

First off I noticed that the file extension was .pps – good. I tried opening the file – and it opened it as if it were a .ppt file. Weird. So then I tried the other option – I saved it to my local machine and opened it locally. This time it opened correctly – it opened as a slideshow.

Hmm. So, they’re the same file, but something different is happening when they open. I wondered if it was to do with the HTTP headers, but the same difference occurs when the file is being served with the application/vnd.ms-pps or just text/html (we run MCMS 2002 on a IIS webserver but publish as static content to an Apache server. They serve the file as different mime types, but have the same result – Open opens the file for editing and Save and open shows the slideshow).

Next up, I tried the same experiment using Firefox. If you choose to Open the file rather than save it, it opens the slideshow – correctly! And if you save it, well, it saves the .pps file which, again, opens correctly.

text/html mime-type application/vnd.ms-pps mimetype
“Open” “Save” and open “Open” “Save” and open
IE7 WRONG OK WRONG OK
Firefox OK OK OK OK

So it looks like Internet Explorer will not open a .pps file as a slideshow irrespective of the mime type sent by the server and the .pps extension (and it’s file association in windows). However, if you save the file locally, it will. Weird.

The only thing that I can think is that this is some sort of security feature, but it’s a bit odd – after all, shouldn’t Firefox do this then?

PowerPoint Slideshows (.pps) open as PowerPoint Files

VMWARE: WinXP Pro SP2 License Key doesn't work with MSDN Disc

I was trying an installation of a volume license edition of Windows XP Professional from MSDN disc 2430.2 (January 2007) to a new VMWare virtual machine. Our license key didn’t work though, despite use checking the key repeatedly, and trying every WinXP license key in the building.

In the end, on the advice of another developer, I started again with a new VM. I left the memory at 256Mb (my previous one was 1024Mb), removed the floppy, and previously I was running the ISO image from a CD, and this time I ran it from a hard disc. This worked. I don’t know which of these three factors was the relevant one, but if you’re doing an installation like that, I recommend trying those things.

VMWARE: WinXP Pro SP2 License Key doesn't work with MSDN Disc

Restrict or Permit formatting changes in Word Documents

Word 2007 lets you restrict the styles and formatting people can use in documents based on a particular template. I suspect that this will be useful for me in restricting the styles used in SharePoint’s Rich Client Authoring (aka Smart Client Authoring – I wish they’d pick a terminology).

Just as a quick example, though, you get do this through the manage styles dialog. To open this, open the styles menu from the ribbon, and select the manage styles option: Continue reading “Restrict or Permit formatting changes in Word Documents”

Restrict or Permit formatting changes in Word Documents