Category Archives: Programming

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

SFML in Xcode 5

I followed the official SFML tutorial for getting SFML programs to compile in Xcode, but kept failing to build because none of the libraries were linking. http://www.sfml-dev.org/tutorials/2.1/start-osx.php I fixed it by manually adding them in the “Linked Libraries and Frameworks” … Continue reading

Posted in Programming | Leave a comment

Chocolate Quest

I’m trying to get better at C++ and learn the SFML framework, and my wife likes chocolate. What follows makes perfect sense. Chocolate Quest Part One is a small and very simple game I wrote for my wife to play. … Continue reading

Posted in Hobbies, Programming | Leave a comment

Handy Python trick with list data

I had to manipulate a large amount of text data at work, and came across two neat tricks I’d like to remember. If I have a Product A that’s always bundled with Product B, but I also sell Product B … Continue reading

Posted in Hobbies, Programming | Leave a comment

A few notes on compiling SFML on Ubuntu

I finally got around to updating my Ubuntu Linux box to 13.04, and now I want to do my SFML studies on it. I wasn’t able to just download the SFML development binaries and header files and compile my test … Continue reading

Posted in Programming | Leave a comment

Visualizing the Mandelbrot Set with SFML: C Style

I use fractals as my “Hello World” when I want to explore graphics libraries. Since I’m learning SFML at the same time I’m learning C++ I figured it would be a good idea to explore different ways of doing the … Continue reading

Posted in Programming | Leave a comment

C++ Parent Class and Member Initialization

This is a small bit of code to remind me of what I learned today about how to pass values to a parent class, as well as initialize member variables in the child class constructor. The output is: ParentClass was … Continue reading

Posted in Programming | Leave a comment