Category Archives: Hobbies

Posts that have to do with my hobbies.

Rotation!

I was so surprised that this worked that I actually jumped out of my chair. When I hold down the “A” key the line rotates counter-clockwise around the blue circle (like a clock hand). I spent ages working this out … Continue reading

Posted in Programming | Leave a comment

Moving Around

I was thinking about Command & Conquer this morning, and realized that there’s a very simple feature in that game that I couldn’t work out in my head how to do myself: click on a location on the screen and … Continue reading

Posted in Programming | Leave a comment

Project Euler 14 Complete

Project Euler Problem 14 was quick to bang out: https://github.com/cheydrick/Project-Euler/blob/master/ProjectEuler14.c Problem 15 is intimidating.

Posted in Programming | Leave a comment

Project Euler 13 Complete

I finished up my solution to Project Euler 13: https://github.com/cheydrick/Project-Euler This one was easy to work out on paper, but irritating to implement. It’s pretty brute force, and I read a few solutions in the problem’s forum (which you get access … Continue reading

Posted in Programming | Leave a comment

Project Euler 12 complete

With the exception of one cosmetic change, I didn’t make any progress in the Project Euler problem set at all in 2013. I solved Problem 12 a while ago, but never brought it into the project as a whole, so … Continue reading

Posted in Programming | Leave a comment

VGA Mandelbrot Set

I read Masters of Doom a few weeks ago, and it inspired me to do some old-school DOS VGA graphics programming. https://github.com/cheydrick/VGA-Mandelbrot When I was a kid I played around with some sample programs that came with DJGPP or Borland … Continue reading

Posted in Programming | Leave a comment

Converting Pixel Coordinates to Graph Coordinates Redux

A year ago I wrote a post about converting screen pixel coordinates to graph coordinates: https://chrisheydrick.com/2012/11/01/converting-pixel-coordinates-to-graph-coordinates/ This is something you want to do if you need to map the location of a pixel to an arbitrary graph coordinate, which I needed … Continue reading

Posted in Programming | Leave a comment