I’ve been working on a syntax highlighting addin for powerpoint for some time now. I finally feel that it is stable enough to push a first version onto the interwebs.

You can use it on your slides to make code in there more readable and have a consistent styling. I know you can use “paste with keep formatting”, but I find it can be annoying.

I used Alsing.Syntaxbox and  NRtfTree to help with the heavy lifting. I modified them a bit, just by removing code I didn’t need.

What it does, essentially, is add a couple of buttons to a Ribbon. When you click a button, the addin detects which element was selected on a slide and applies syntax coloring of the selected language to it. To do this, a SyntaxDocument is created, it parses and calculates the styles for each word. Then I take the output of the SyntaxDocument and feed it into a RtfDocument. When that is done, i use the clipboard to do a rich paste into the element and apply some styles I like. It is written in C#. The syntax definition files are included as embedded resources.

To install the addin: unzip (using 7zip) the archive, then double click the SyntaxColoring.vsto file. This will install the plugin for you. You can remove it from your machine in “Add or remove programs”. In Powerpoint you can enable and disable the addin, or remove it if you don’t like it. Note that you might need to install the Visual Studio 2010 Tools for Office, before you can execute the vsto file.

Please provide feedback if you like this or if you have suggestions for improvement. Take the source code and make it better. This is released under a GPL licence. You can take it, modify it, but you have to give me credit and publish the source of your modifications. There is no support or warranty of any kind. The components I used are open source, so respect the licence of those.

My sister asked me how to download a movie file from picasaweb.

  • Open the video you want to download in firefox.
  • Select some text beginning the selection under the google-video screen to just above it. Right-click on the text under the video and choose “Show selected source” or “Bron van selectie bekijken”.
  • Search (Ctrl-F) for a tag called “videoUrl” in the sourcecode
  • Copy the Encoded url to the clipboard. (it is just behind the “=” sign)
  • It will look something like this:

http%3A%2F%2Fvp.video.google.com%2Fvideodownload%3Fversion%3D0%26secureurl%3DjgA … eURhpQ%26begin%3D0%26len%3D2147483647%26docid%3D0&hl=en_US&autoplay=yes

  • open http://www.us-webmasters.com/Decode-URLs/ and paste the encoded url there.
  • Click the button “Decode the Url”
  • Click on the decoded Url, firefox will ask to download an .flv file. Just do it.
  • You can rename the file later, you can open .flv files using VLC

Have fun!

Only download movies to which you have the rights (your own movies, or those under an appropriate creative commons licence)

Via blikkendoos, de blog van Pelle, leerde ik geni.com kennen. Aangezien genealogie een van mijn interesses is, schreef ik me in op de site. Ik begon met het uploaden van het gedcom bestand van mijn eigen stamboom-site, die nooit goed van de grond kwam. Die werd opgebouwd op basis van het verzamelwerk van nonkel Jan Vanhove, maar bood niet genoeg gebruiksgemak voor mijn familie. Het idee bij geni.com is om je familie zelf het werk te laten doen door ze uit te nodigen via e-mail. Ze kunnen dan zelf hun gegevens updaten en op hun beurt anderen uitnodigen.

Het is ongelooflijk hoe je op korte tijd een gigantisch familienetwerk op poten zet. Ikzelf creeerde met behulp van de gedcom database, en daarna ook manueel 708 profielen, van naaste en verre familie. Ik nodigde 46 familieleden uit, iedereen van wie ik het e-mail adres kende. Ondertussen zijn er 79 mensen uitgenodigd.
Nu, 3 dagen later, zijn er al 810 profielen waar ik mee verbonden ben. Er zijn al 142 foto’s bij de profielen geplaatst. Ik had niet verwacht dat het zo snel, zo’n groot succes ging zijn. Hopelijk blijft de boom groeien en vollediger worden.