Category Archives: Hobbies

Posts that have to do with my hobbies.

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

Problems Re-sizing SFML RenderWindow

I’ve been using the newly-released SFML 2.0 as an excuse to learn C++. It’s been quite interesting. While messing around with the SFML graphics capabilities I found that I can’t seem to reliably re-size the SFML render window without the … Continue reading

Posted in Hobbies, Programming | 1 Comment

Hello, Kerbal!

The tutorials on the official Kerbal Space Program wiki for setting up Visual Studio and making a simple mod are a bit vague in some areas. Here’s my take on making a mod in Kerbal Space Program. Anyone that knows … Continue reading

Posted in Hobbies, Programming | Leave a comment

Binary blunder

Something I was trying to figure out at work resulted in writing a make sure I understood how to write an array of numbers to a file. When I loaded the file for viewing it would (in places) be total … Continue reading

Posted in Programming | Leave a comment

Speeding up my Project Euler 10 implementation with threads

My implementation of Project Euler 10 takes almost 25 minutes to complete. It’s a very naive attempt, and there is a great deal of optimization that needs to happen – particularly in the function I use to determine if a … Continue reading

Posted in Hobbies, Programming | 2 Comments

Door number three

A third solution to the problem laid out in my last post is to stop doing two things at once. Right now I’m trying to create a graph structure from a 2d array and at the same time traverse the … Continue reading

Posted in Hobbies, Programming | Leave a comment

Making a graph data structure from an array

I think the problem I described yesterday is indeed a struggle with a graph data type. I’ve broken down the problem into something simple that demonstrates my larger test program’s problem. It’s all about knowing where you’ve been. I’ll illustrate … Continue reading

Posted in Hobbies, Programming | Leave a comment

Trying to get a grip on recursion and linked structures

My quest to solve the Colossal Cue Aventure’s third puzzle is taking me to the edge of my knowledge. The puzzle is basically all about finding a path through a set of rooms. I’m writing a test program to see … Continue reading

Posted in Programming | 1 Comment

My solution to the second Colossal Cue Adventure puzzle

A little bit of lunchtime coding. Oof, the source code formatting in WordPress is so bad. I guess my interspersed comments aren’t helping readability. Here’s a Gist: https://gist.github.com/4595437 I used Python because it has .append() and .pop() for lists ready to … Continue reading

Posted in Hobbies, Programming | 3 Comments