Category Archives: Programming
Weather Database Hits Half-Million
The Mutaku weather database project has finally surpassed a half-million datapoints. Large data achievements arriving right around Pi Day always seem that much sweeter.
Transposing Matrices in Python
Situation: We have a list of nested lists (list of matrices) that we wish to transpose. Solution: Utilize chain to iterate over our master list (x), flattening it, and then we iterate over the elements and return these as a … Continue reading
Checking your SSH key Fingerprint
As many of you probably are already well aware, Github recently was made aware of a mass-assignment vulnerability (1). If you aren’t caught up, you can find the info here on the Github blog (2, 3). This afternoon, Github sent … Continue reading
Analyzing Brute Force Attempts in BASH
If you have a public facing SSH server running on the standard port, your message log is probably filled with failed authentication attempts from brute force attacks. Let’s mash up some quick BASH commands to analyze this data. For our … Continue reading
Finding Images with Python
Let’s say we wish to take a directory, the current directory in this example, and gather all the image files. This could be helpful if we were then going to use PIL or Image Magick to manipulate those files, or … Continue reading
Monty Hall Sneak Peak
Coming Soon: Monty Hall game player in Python. For now, here is a little teaser: The code is hosted, of course, on GitHub and can be found here: https://github.com/mutaku/Monty-Hall-Game As soon as I get the rest of it written up I’ll … Continue reading
Bash Snippet for Git Users
Keeping track of what branch you are using while in a git repository can be a bit of a pain. Adding the following code to your ~/.bashrc file can make it a bit easier since it will prepend your prompt … Continue reading
End of an Era : Uptime FAIL!
Well, we had a huge power problem on Sunday that resulted in 2 fire trucks and 2 electric utility crews coming to the house. Long story short, this picture should sum up the sadness involved:
Migrating to XFCE
The following was from a Google+ post that I figured I would share here as well. Well I think I’m finally switching my main desktop from KDE to XFCE. Too much flash and pizazz and having to turn off behaviors … Continue reading
Python – Dynamically Printing to Single Line of Stdout
It’s that time again; code snippet time. This is a short and sweet bit of a code that has some really practical and powerful implications. When handling large amounts of data processing, it’s often desirable to keep the user informed … Continue reading
