Category Archives: Projects

How to Automate Creating Directories Based on File Names and Moving Files Into Them in Linux

When I first started unlocking new features in Kodi, I noticed that all the artwork was making my library directories a bit unruly, so to help clean things up, I decided to move all the video files into their own folders. Unfortunately, I have quite a lot of video files. Fortunately, I uncovered a little bit of code to manage this task for me. Drop these two lines into a shell script and execute the script in your favorite flavor of Linux to create a subdirectory based on the name of each file in a given folder, then move that file into its respective directory.

find . -maxdepth 1 -type f -exec mkdir {}-DIR \; -exec mv {} {}-DIR \; ;

find . -maxdepth 1 -type d -exec rename "s:\..{2,3}-DIR::" {} \;

I’ve Made a Game!

I’ve been working with computer code–in one form or another–since typing BASIC commands to run games on my Commodore 64 back in the late 1980s. In elementary school, my friend Kyle and I would spend Saturday afternoons copying programs into QBasic from the back pages of 3-2-1 Contact magazine before moving on to designing and programming our own Zork-style text adventure games. In middle and high school, I moved into HTML and Flash, trying my hand at online interactivity. Eventually, I gave up on Windows and moved into the wonderful world of Linux, Bash, and Python.

Bringing it full circle, I’ve been taking a few coding boot camps, relearning the skills I haven’t used in earnest for years. I enjoy making things, and I miss building interactive things. So, for the first time in nearly two decades, I’ve built a game from scratch. It’s JavaScript, and it’s fairly simple, but it’s been a great exercise. Play it, have fun with it, and let me know what you think!

REACT!

REACT! screenshot

YouTube Update October 2016

Just a quick update for my subscribers to let you know what I’ve been working on and invite you to check out my website for more cool stuff!

Summer of 100 Photos, Day 100: The final photo of yourself

20160904_184443

I can’t think of a much better way to close the summer than an open-air concert at the world famous Hollywood Bowl featuring the incomparable John Williams.

Summer of 100 Photos, Day 99: Something that makes you feel accomplished

IMG_20160708_215212967 copy

Commercial pilot: Rotorcraft, Helicopter

That’s an achievement, and it took a damned lot of work to get, too.

Summer of 100 Photos, Day 97: Something Heart-shaped

pluto-planet-heart-color-image

A love letter from the edge of the Solar System.

Summer of 100 Photos, Day 96: A place you went today

IMG_20160711_133206454_HDRI do enjoy shitty Chinese food.