Vanity GUIDs for Fun Maybe Profit

Here’s a GUID generator that delivers them in a configurable alphabet instead of the more familiar format e.g. 3F2504E0-4F89-41D3-9A0C-0305E82C3301. Basically a port of shortuuid in python by Stochastic Technologies. It is possible to have too much fun generating GUIDs for your next project… Just make sure your custom alphabet has unique characters and no one […]

Using the State Pattern for Adorning in XAML

Here’s a technique I used for adding overlay icons to represent various states of a base view model. Typically, you’ll have a DataTemplate for your primary view model. If the model can be in various states, however, it becomes annoying to manage the data triggers to change the look of the icon, e.g. using adorners.

Serving Images with MongoDB, GridFS and Flask

Recently, I’ve had the pleasure of accumulating over 1 million thumbnail and preview images on my drive. I like having as many files on my disk as the next guy, but I thought since I’m using MongoDB anyway, why not use GridFS to store the images! The trick was to fetch an image at a […]