Musings of a Fondue

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!

A Budding Interest in Hardware

Original Date: March 17, 2014

The following sites have exposed me to a whole world I had no idea existed. And it’s mind blowing!

Eager to learn their language, and since this battery charger was the closest thing on hand I could open up, it will be my guinea pig. My goal with the charger is to be able to identify all the components on it, how they work together to accomplish their intended task, draw a schematic for it, and recreate its PCB. I figure in the process I’ll learn a lot about Hardware and Electronics.

Battery charger


top view

Eagle PCB Layout

Original Date: March 16, 2014

I was going through a SparkFun tutorial on reading schematics, when I decided to use it as an opportunity to learn a thing or two about PCB layout.

My candidate circuit was that of the FT231x breakout board mentioned in the article. SparkFun releases all of its products as Open Source Hardware, so the relevant schematics were provided on the product page.

Once Tedious

Original Date: March 11, 2014

What would once have been a very tedious selection with the CTRL key literally took a minute by writing a simple code snippet (and using Chrome’s console to run it). =D!


Became this,