Roto

Written 09:46 am 10/1/2013 Modifed 10:30 am 10/1/2013

With the creation of the Bureau of Facts and Statistics, I am also announcing my new microframework off of which it is based: Roto. Roto is a simple PHP framework that lets you build web applications quickly, by using scoped views and components (Widgets). It is used as a composer package, and all class files are under the namespace "Roto". It's still in development, but will be updated over time as I use it for my upcoming community text-adventure site: Peril.io (under development). Router ...

Url2Ascii (Color)

Written 11:18 am 3/29/2013 Modifed 04:15 pm 4/4/2013

Kim Jong Un approves. I made a utility a while ago to convert images to ascii, for covert reddit browsing ability. I recently added color to it. The script gives you a number of customizations- you can change the x / y ratio for your glyphs, which characters get printed out, and at what brightness, and you can calibrate the colors to match your terminal. This is specifically for 8 color terminals The inner workings have it resampling the image to your indicated terminal size. It then ...

Open File Dialog from the Shell (Mac)

Written 07:09 am 11/15/2012 Modifed 12:15 pm 11/21/2012

I'm not going to say that I'm an evil genius, or that I'm even a genius, but it was remarkably difficult to find any resources on prompting an open file dialog from the mac shell. We can use Applescript to give us some GUI elements within a bash script. For linux users, see the "dialog" command. I wanted to make my minecraft modloader easier for users who don't really understand the shell. I have seen scripts curl scripts, then piping them through bash, so I decided on doing that. The problem ...

Minecraft Mod Installer Script (Mac)

Written 10:45 pm 11/7/2012 Modifed 12:22 pm 11/21/2012

Frustrated with installing mods in minecraft (mac), I wrote a shell script that does all the step by step installation for you. In the terminal, just use the following script I've only ever used this to install the X Ray Mod, so I can't claim that it will work with every mod. This is just a handy shortcut for installing mods the standard way. (I know, I'm a cheater. But I needed some diamonds.) To run it without downloading, simply paste this command into Terminal.app (Hit ⌘+[Space], ...

Exodus: Godaddy

Written 05:17 pm 11/2/2012 Modifed 05:48 pm 11/2/2012

I feel stupider every time I see this picture So over the past couple of weeks, I've been moving my domains and hosting off of GoDaddy in favor of IWantMyName for DNS and Dreamhost for hosting. This is something that I have been planning to do for a while, but have never spent the time. Why was I using GoDaddy to begin with? Look, we were all young once. My first server side programming job was at the University of Minnesota, where I developed for their Moodle instance. I wanted to have a ...

Google Bar Chart Whitespace Fix

Written 02:14 pm 10/1/2012 Modifed 12:48 pm 11/14/2012

For some web projects, I use google charts to visualize user statistics. They offer many various types of charts, like bar graphs, line charts, scatter points, pie charts, and even QR codes. Developers can see more here Specifically with the bar charts, we have encountered issues where the chart gives itself a lot of leading and trailing white-space before we actually see any chart content. It usually centers the page around the bar graph. This is a write-up of how I mitigated some of the ...

Voxel Shape Generator

Written 11:36 am 7/4/2012 Modifed 10:09 pm 2/8/2015

Use this tool to make spheres for Minecraft and the like. Idea originally stolen from Neil Fraser, but more recently inspired by friendly competition with my friend Jesse, whose Circle Generator seems a little two dimensional. Update (2/8/2015) Attempting to make this a little more bad-ass. See here Update (3/14/2013) GUI makeover- I'm attempting to speed everything up by only rendering tables when you're ready for them. I also added isometric modeling (with culling this time) in canvas ...

Conway's Game of Life

Written 09:04 am 7/4/2012 Modifed 06:57 pm 7/18/2012

Conway's Game of Life is a very basic artificial life simulator. It arranges a grid of dead or alive cells, and for each generation, applies a set of rules to determine if the cell will be dead or alive. The rules are as follows: If the cell is alive and has more than three neighbors, it dies from overcrowding. If the cell is alive and has less than two neighbors, it dies from loneliness. If the cell is dead, but has three living neighbors, it becomes alive. All other cells retain their ...