May 22

Azure Blob Storage Metadata Specified value has invalid Control characters.

When setting blob metadata you may come across the problem where a name or value contains an invalid control character. If you look at the official site you will see that metadata keys must adhere to the C# variable naming rules for identifiers. However nowhere on the site does it tell you what the value of the key value pair can be. If you get this error try removing any symbols. The character which caused my problem was a hyphen – . Please leave a comment if you find any more characters that are not allowed as metadata values.

Thanks :)

EDIT: I found this post which seems to suggest that url encoding will solve the issue.

EDIT V2: Uri.EscapeUriString(“Value”); and Uri.UnescapeDataString(“Blobvalue”); Will do the trick just escape on the way in and Unescape on the way out.

May 14

Reload Iframe without adding an entry to History IE

I have been working on getting a cross site collection list view in SharePoint and have implemented it with a page viewer web part. On load a variable is pulled from the page and changes the src of the iframe to show related documents. There is only one problem. IE! When the src changes IE keeps a history so when you press back it reloads the iframe with the original content.

This is not how I want it to work. So I need to change the src of the iframe without adding to the IE history. After looking around I found this, which says you need to create it dynamically. However I can’t do this because for some reason SharePoint doesn’t like me adding new iframes to the page. I also tried putting an iframe within a HTML form webpart but that didn’t display.

After a while I found this, which says you can use window.frames['frame_name'].location.replace(“….”);

Finally! Just add your frame name and the new location and the first one won’t be kept in history.

May 14

Murphy’s law

I decided I would ride my bike in today so I could pick up my new light. Turns out the light is amazing and a really good deal too. It’s a route7 led from torpedo 7. 900 lumens of white light and 3 hrs of run time. It’s plenty for seeing where you are going in complete darkness.
Unfortunately the ride home was less amazing. It was pouring down and just 3kms from home I got a flat. That’ll teach me to always make sure I have my spare and a pump!