Categories
Code

Brokencode GO

I recently saw a link on Hacker News about making a game of finding bugs in open source projects. Given the recent release of Pokémon GO, I whipped up this picture. If only my job was this easy, or this fun…

Brokencode GO

– The code in question is from Blender, though more specifically libopenjpeg, it seems. I grabbed a copy of the file for context and recreated the bug.
– I chose (ha) Venomoth as a nod to the first computer bug.
– 42 is, of course, The Answer.
– My first thought was “Offbyone”, but “Wrongvar” is pretty common, and easier to point out.

In other news, earlier this week I made a satirical hat based on Trump’s 2016 campaign slogan:
Make Everyone Else Worse

Categories
Code

Towers, Towers, Everywhere

Just a short note to say that I’ve been busy working on Office Attacks (iPad) for Arctic Empire. Since Arctic is a small company (even smaller than Artech) without a current publisher, getting the word out about our games can be a challenge. To that end, I’ve been writing “Dev Diary” blog posts all month about development of the game. And since we were showing it at the Ottawa International Game Conference yesterday, I decided to make one of the towers in real life last Friday. There are build instructions in the latest dev diary post. I like how it turned out.

OATowerBuild00

Categories
Code

MakeMyAlbumCover / Likeatron

I’m shutting down one of my older domains, so I’m just moving some things over here. These were originally posted in November 2010 and October 2010 respectively.

Make My Album Cover

A friend of mine announced that he no longer wanted makemyalbumcover.com, so I tried to think if I could do something with it. He was using it to host pictures he had made according to the album cover meme. I figured I could write something to automate the process of creating those kinds of images, so I wrote a script to do it.

http://www.makemyalbumcover.com/

Likeatron 3000

After Facebook started letting people add the “Like” button to their own sites, a lot of sites added it, but not everyone. Why should only some sites have all the fun? With this Greasemonkey script, you can add it to every page!

http://www.timpark.org/likeatron3000/

Categories
Code

tasktimes / did

I don’t like tracking my time. Marking down the start and end times of a task and finding the difference is annoying. Although you can easily redirect the output of “date” to a file, you still have to calculate the difference. So I wrote something to do it for me. This sort of thing has been done before, but I didn’t know about the other solutions before making mine. I call it “tasktimes”. It’s written in C and you can get it on GitHub. If you’re on Windows and don’t have a C compiler, you might try the Tiny C Compiler.

From the command-line, you simply type:

task "TPS reports"

to start a task and later on type:

task off

to complete it. To get the report, type:

task times

and you’ll get something like:

--- Misc ---
2012/12/03 09:01:12 Mo ( 8:31:42) TPS reports
                 Total   8:31:42

After writing tasktimes, I thought I’d try making a simpler program to let you note whether you completed a certain task each day. Again, it’s easy to save dates to a file, but I wanted the analysis portion. It’s basically a “don’t break the chain“-style motivational program called “did”. It can also be found on GitHub and is also written in C.

From the command-line, you simply type:

did code

to log a task or

did code yest

to log a task done yesterday. Just typing “did” will give you the report.

      ########################################################################
 code #OOOO--OOOOO--OOOOO--OOOOO--OOOOO--OOOOO--OOOOO--OOOOO--OOOOO--OOOOO--O#
  exe #OO-OO-OO-OO-OO-OO-OO-OO-OO-OO-OO-OO-OO-OO-OO-OO-OO-OO-OO-OO-OO-OO-OO-O#
write #-----------------------------------------------------------OOOOOOOOOOO#
      ########################################################################
 2013  0000000001111111111222222222233000000000111111111122222222200000000011
01-03  1234567890123456789012345678901123456789012345678901234567812345678901
       TWTFSSMTWTFSSMTWTFSSMTWTFSSMTWTFSSMTWTFSSMTWTFSSMTWTFSSMTWTFSSMTWTFSSM