# Ordering Index Vector with Java Streams

I bumped up against the following problem while doing some coding in Java 8 (and using streams where possible). Given a vector of objects $$x_1, \dots, x_N$$ that come from some domain having an ordering $$\le$$, find the vector of indices $$i_1, \dots, i_N$$ that sorts the original values into ascending order, i.e., such that …

More

# Creating A New MIME Type

I struggled a bit this afternoon creating a new MIME type and associating it with a particular application, so I’m going to archive the solution here for future reference. This was on a Linux Mint system, but I found the key information in a GNOME documentation page, so I suspect it works for Ubuntu and …

More

# Surviving an nVidia Driver Update

Scenario: I’m running Linux Mint 17.3 Rebecca (based on Ubuntu 14.04) on a PC with a GeForce 6150SE nForce 430 graphics card. My desktop environment is Cinnamon. The graphics card is a bit long in the tooth, but it’s been running fine with the supported nVidia proprietary driver for quite some time. Unfortunately, having no …

More

# The Infinite Jukebox

Didn’t get enough “Scatman” in the 90s? Now you can potentially loop those “ski-ba-bop-ba-dop-bop’s” for-ever with The Infinite Jukebox, “for when your favorite song just isn’t long enough.” This web app uses “the Echo Nest analyzer to break the song into beats…but at every beat there’s a chance that we will jump to a different …

More

# Teaching Kids to Write Code Through Writing Stories

In the last couple of years there’s been a noticeable push for developing programming and computer science skills in childhood education. In a blog post on MiddleWeb: All About the Middle Grades, Mark Gerl, writes about his experience at Computer Science Education Week. His post gets at the interconnectedness of programming languages, gaming, and student …

More