Author Archives: Chris Heydrick

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

Salsa, as easy as 1, 2, 3!

Originally posted on Violetana:
I grew up eating my mom’s fresh salsa, or “pico de gallo,”  which I eventually started making myself.  Later, though I wanted to venture out, and after discovering the wonderfulness that is roasted tomatoes, made some…

Posted in Uncategorized | Leave a comment

Mojo Frankenstein

I haven’t touched this site in a while, but for a very good reason! I’ve spent all my hobby time getting into shape and practicing so that I could do this: I’ve played with these guys before, and it’s always … Continue reading

Posted in Music | 1 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

Order Matters Inside of C++ Classes

Confession time: I’ve been putting some effort into learning C++, after years of swearing I’d stick with straight C. The push to C++ has been driven by SFML, which I’d really like to play with. The SFML documentation and samples … Continue reading

Posted in Programming | Leave a comment