Welcome to the home of the
Technical Essays of Morten Fangel
This is collection of essays written by me, Morten Fangel. My hope is that these essays inspire you to create a better solution than the one I outline. I've tried to keep examples small and generic enough to allow for easy extension of the solutions described in my essays.
If you want to know more about me personally or if you want to know how to contact me, you should check out my personal site: sevengoslings.net
The essays:
-
Packing Images in a Grid with Dynamic Programming
A proposed solution for packing images in a grid with rows of uniform widths. By using dynamic programming a optimal solution for when to introduce line- breaks can be found, and then each row can be scaled to meet the desired width. -
Mobile Detection with Varnish and Drupal
An outline on how to get Varnish to detect if the user is using a mobile device to access your site and how to have a cache group for each device type. I will also talk about how you can then get Drupal to serve your site with a mobile friendly theme when Varnish detected a mobile device.