Zerk Zone

Pages for the Creations of Ryan Armstrong

Arduino Leonardo Custom Joystick

Posted on June 28th, 2015 @ 2:35 pm by Zerker

As hinted at in the previous post: I made a joystick. While you can buy dedicated PCBs for custom joysticks (and I would potentially recommend this for most people), I felt like doing mine a bit more manually with an Arduino instead. And here’s how it looks!

JoyFront

(more…)

Comments (2)

Filed under: Hardware |

Why won’t my unofficial SNES adaptor work with Super Gameboy?

Posted on June 21st, 2015 @ 12:16 pm by Zerker

So recently I made myself a custom SNES Joystick. I’ll be posting about that later, but I noticed that it wouldn’t work with the Super Gameboy, despite working with other SNES games. I also noticed that my third-party PS2 to SNES adaptor as well as my NES to SNES adaptor wouldn’t work either! Something is clearly up with the Super Gameboy.

So I bought an oscilloscope.
(more…)

Comments (0)

Filed under: Hardware |

Image Gallery Script

Posted on October 11th, 2014 @ 9:45 am by Zerker

This is a script I wrote to generate an image gallery HTML file for a given folder, or for the Steam Screenshots folder. It will, by default, show the full resolution original image, so it can be useful for browsing a folder of moderate-sized images without having to rely on thumbnails. It can also generate thumbnails of any size if desired. Thumbnails are created into .thumb folders, which will be hidden in Unix-type OSes, but not (unfortunately) in Windows. Finally, the script can double-size and apply aspect ratio correction for smaller images (e.g. NES, SNES or DOS screenshots). These are sized using CSS attributes and do not generate a second copy of the image. Here’s an example gallery of X-Com screenshots with double-sizing and aspect ratio correction.

This can be run without any parameters to create the basic gallery in the current directory. For Windows users, you can also add a shortcut to the script in your SendTo folder to easily create a gallery for any folder by right clicking on it and using the SendTo menu.
(more…)

Comments (0)

Filed under: Programs/Libraries,Python |

Steam Image Scripts

Posted on October 11th, 2014 @ 9:32 am by Zerker

After finding most instructions for downloading Steam grid view images to be out-of-date, and same goes for the only grid view downloader I could find, I wrote my own.

I also put together a quick library that can create a dictionary of Steam applications on a given profile based on the JavaScript of the profile page (using JSON).
(more…)

Comments (0)

Filed under: Programs/Libraries,Python |

Convert Midi script

Posted on October 4th, 2014 @ 8:41 am by Zerker

This is script I recently cooked up after picking up MT32 and Roland SoundCanvas sound modules to play midi files and record the playback with said hardware synth. I then encoded the recordings and loaded them on my media player.

If you have a hardware synth (or quality software synth should such a thing exist) you should be able to use this.

usage: convertmidi.py [-h] [-d MIDIDEVICE] convertpath

Converts all mid files in a path to WAV. Uses the tools playsmf to play the midi files and sox to record the resulting audio. Both tools must be present on the system path. You should have your OS configured to record from whichever device the midi output will be sent to ahead of time.

positional arguments:
  convertpath    Path to process

optional arguments:
  -h, --help     show this help message and exit
  -d MIDIDEVICE  Midi Device identifier (default of 1 for first external
                 synth)

This script also requires Python 3.x. I’ve only tested this in Windows due to better support for my sound card, but there’s nothing particularly Windows-specific about the script. It should run fine in Linux with appropriate versions of playsmf and sox.

It also comes with a reset.mid file I downloaded from somewhere to reset the midi controller between songs in case anything gets stuck/confused. I’d love to also give credit for this file, but I can’t figure out where I got it anymore.

Download (1.4 kB)

Comments (0)

Filed under: Programs/Libraries,Python |

Gameboy Screenshot Gallery

Posted on July 8th, 2014 @ 3:54 pm by Zerker

Hello everyone. For the past month or two, I started a project to collect screenshots from (hopefully) every game released for the original Gameboy, and arrange them into a screenshot gallery. Here it is (with some samples), in TWO versions:

Black & White Gallery

Pea-Soup Green Gallery

Comments (0)

Filed under: Uncategorized |

Jetpack levels

Posted on May 17th, 2014 @ 7:31 am by Zerker

So I was reminded recently that I have a bunch of Jetpack levels on my hard drive I’ve never uploaded. Many of these aren’t really that good, some are sort-of embarrasing (World of Words Part 2), but there are a few Gems I’m mostly proud of. Some might actually be created by my friends, but it’s been so long I can’t tell them apart any more. Here they are:

(more…)

Comments (0)

Filed under: Levels |

Media Player Sync Scripts

Posted on December 7th, 2013 @ 9:50 am by Zerker

Having had trouble with media-player sync solutions in Linux, I decided to roll my own Python script to synchonize my media player automatically, and cover format conversion & playlist restructuring. Like the gmusicbrowser script, it’s not particularly user friendly. However, it should be useful for a variety of media players. Let me know if it works for you.

You will need:

  1. Python 3.x
  2. sox
  3. avconv if converting from m4a or converting to mp3
  4. vorbiscomment if converting to ogg
  5. appropriate avconv mp3 encoder package if converting to mp3. This is ‘libavcodec-extra-53′ in Ubuntu

Included in the download are three files:

mediasync.py
The module that does all the work
mediasync.html
Documentation for said module
syncphoneall.py
An example export script that uses the module to synchronize my android phone.

When you download this, have a look at the syncphoneall.py file to get an idea of how it works, then modify to suit your needs.

Download

mediasync.tar.tar.bz2 (8.2 kB)

Comments (0)

Filed under: Uncategorized |

gmusicbrowser playlist exporter

Posted on November 10th, 2013 @ 9:37 am by Zerker

So, this is a script I wrote a while ago to interpret the gmusicbrowser database format in python, then automatically create a series of playlists. It’s a little bit hackish and not particularly user friendly, but I’ve tried to document it reasonably well. If you’re a moderately technical user who uses gmusicbrowser, give it a shot and let me know if it’s useful for you.

Included in the download are three files:

gmusicbrowserplaylistexport.py
The module that does all the work
gmusicbrowserplaylistexport.html
Documentation for said module
exportplaylists.py
An example export script that uses the module to export a series of playlists.

When you download this, have a look at the exportplaylists.py file to get an idea of how it works, then modify to suit your database/export needs.

Note that this script was written for (and requires) Python 3.x.

Download

gmusicbrowserplaylistexport.tar.bz2 (6.6 kB)

Comments (0)

Filed under: Programs/Libraries,Python |

Cranberry Granola Bars

Posted on January 6th, 2013 @ 9:20 am by Zerker

This recipe is very similar to the Chocolate Granola Bar recipe, but with slightly adjusted proportions. This should work equally well with any other dried fruit. I’m not quite as happy with this recipe, so any suggestions are welcome.

3 cups Rolled (Large Flake) Oats
1 1/2 cups Additional Grains/Cereals
1/2 cup Coconut
1 1/2 cups Dried Cranberries
1 1/2 cup Water
6 tbsp Cornstarch
1/4 cup Liquid Honey
1 tbsp Brown Sugar
  1. Preheat oven to 350 F (175 C)
  2. In a bowl, mix the rolled oats, grains, cranberries and coconut.
  3. Measure the water, and add the cornstarch to the water (keep in the measuring cup). Stir the cornstarch until consistently mixed.
  4. In another measuring cup, measure the honey and add the brown sugar.
  5. Heat a large frying pan/stir fry pan on the stovetop at high heat, then add the cornstarch/water mixture. Stir and wait until the mixture is a consistent gel.
  6. Add the honey and sugar to the mixture and stir until consistently melted.
  7. Add rolled oats/coconut/cranberry/grain mixture and mix until evenly coated. Scoop onto a baking sheet, and flatten/shape as desired.
  8. Bake for approximately 15 minutes.
  9. Cut to desired size.
Comments (0)

Filed under: Recipes |

Next Page »