November 2010
2 posts
Merge sort in JavaScript
Whenever I have a couple of minutes of spare time, I’m trying to learn more about algorithms . The first two algorithms were selection sort and insertion sort. Next up is merge sort. Merge sort is a bit different than selection and insertion sort. Selection and insertion sort are based on a loop inside a loop. That way you compare each value of a collection (one by one) to all the other...
Server-side PNG rendering of SWF images using...
The problem
We need to display thumbnails for 2D images, which are SWF files.
Option 1. Use embedded Flash
Pros:
quick drop-in solution;
Cons:
requirement for clients to have Flash installed in their browsers;
thumbnail displaying logic depends on what we are displaying (2D, 3D, photo) = additional complexity;
requires additional markup for embedding Flash;
is slow to load and...