Musings of a Fondue

Teardown Radio

Original Date: June 28, 2014

Curious what a typical radio looks like inside?

Automation With Sikuli

Original Date: June 19, 2014

I had used BB Flashback to record a scene I was interested in animating. However, the program doesn’t come with a way to export several images at once. You have to export each one individually.

I had done this before for about 200 images and it was a never again experience! Through the magic of Google and StackOverflow, I came across Sikuli.

Speed Test - UI

Original Date: May 26, 2014

In the previous post, I used a Raspberry PI to gather a week’s worth of internet speed data.

I have a rough idea of what I want the D3 visualization to look like. My main inspiration is this one by Joseph Nudell where he visualizes his texting habits.

For the user interface I wanted big and fancy buttons and knobs. I searched the interwebs and came across several awesome Photoshop tutorials. My initial plan was to learn from them so that I could create my own custom designs from scratch. Learn I did but for now I will work with the designs from the tutorials and put my focus on the CSS.

Speed Test - Raspberry PI

Original Date: May 2, 2014

We were having some problems with consistent internet speed. I wanted to see how it varied over time by gathering a week’s worth of data and visualizing it with D3.

One option was to manually run the speed tests periodically. A more sane option, was to have a program do this.

I didn’t want to leave my computer forever on to accomplish this. And there was a Raspberry Pi sitting unused, that could stay running for days on end happily. So Pi it was.

But how to write such a program?

Sieve of Sundaram

Original Date: April 7, 2014

I was working through question 10 on Project Euler which requires you to find the sum of all primes below two million. I had written some code to find primes in previous questions, but it was far too slow to accomplish this. I hit Google to find efficient algorithms for prime number generation and came across the Sieve of Eratosthenes and the Sieve of Sundaram.

The article on the Sieve of Eratosthenes had a great gif by Sebastian Koppehel which showed visually how the sieve works. It was very clear and quickly gave you the gist of what was happening.

I thought it would be nice to have something similar for the Sieve of Sundaram so after I worked out how Sundaram’s sieve ticks, I made a similar gif for it.

I used JavaScript, HTML, and CSS to make it. See it in action here

If you want to see the code, right click and select view-source. It was cool to contribute something to a site I rely on so much!

A GUI for FFmpeg

Original Date: March 26, 2014

Similar idea as my previous GUI for Youtube-dl.

I wanted a GUI (Graphical User Interface) to interact with FFmpeg instead of using it through the command line.

Specifically, I was interested in using FFmpeg to capture frames from a video. (I do this often for sequences I’m interested in animating.)

This is how it came out.

Also, this time around I tried to make a tutorial for how to go about it. It’s not the greatest so I’m not going to direct link it. But at least if you search for “windows GUI tutorial” on YouTube, there’ll be one more playlist out there to help you out.

Scraping Pictures With Ruby

Original Date: March 19, 2014

Another snippet!

I was trying to get some images from this site. They are part of an animation sequence of about 200 images.

At about the sixtieth image it got quite tedious to right click and save each image manually.

So, I did a quick Google search for “using ruby to grab images from a site” and came across this answer on StackOverflow.

Only four lines of code! Four!