Search
The Way of the Software Engineer

Archive for November, 2010

Simulating Bezier Curves with CSS

Posted by admin on November 18th, 2010

I recently had to make a visual editor that included lines between different boxes to define the ‘flow’ of a process (think UML). Rendering something like this in a web page is sometime tricky when you want the line to look fluid between it’s two connecting points. What I wanted was something like Bezier curves. [...]

Mayor / Celebrity Programming Puzzle

Posted by admin on November 10th, 2010

Also known as the “mayor problem” or “mayor puzzle”, this is a directed graph puzzle where a group of people have single directed relationships. That is person A knows person B, but person B may or may not know person A. The puzzle is to find a person in this group that everyone knows, but [...]