Embedding Python in C++ Applications with boost::python: Part 2

In Part 1, we took a look at embedding Python in C++ applications, including several ways of calling Python code from your application. Though I earlier promised a full implementation of a configuration parser in Part 2, I think it’s more constructive to take a look at error parsing. Once we have a good way [...]

Share

Embedding Python in C++ Applications with boost::python: Part 1

In the Introduction to this tutorial series, I took at look at the motivation for integrating Python code into the Granola code base. In short, it allows me to leverage all the benefits of the Python language and the Python standard library when approaching tasks that are normally painful or awkward in C++. The underlying [...]

Share

My Terrible Experience with MochaHost

A couple of years ago, I caught the bug that is the modern day twentysomething equivalent of a mid-life crisis: I wanted to start a blog. I looked around very briefly (whoops), then signed up for a very cheap shared hosting account with MochaHost, a hosting provider, starting my blog muchtooscrawled.com. I didn’t really write [...]

Share

New On The Beer List: Smoked Porter by Stone Brewing Co.

A surprise from my wonderful girlfriend, the Stone Smoked Porter is like a prize boxer made of naught but smoke – each sip is a smoky punch to the face, but the source of the punch is almost immediately out of reach. Your mouth briefly stings from the assault, but upon collecting yourself, you have to [...]

Share

New On The Beer List: Brooklyn Monster Ale

I am literally about to fall over. I have had a ridiculous week leading up to and culminating in our Earth Day release of Granola 3.3 and the brand-spanking-new Granola Dash. The development team has put in a tremendous effort and produced a fine product, and I am spent. As we did last year for [...]

Share

New On The Beer List: Rochefort 8

Having mowed my nightmare of a lawn, I felt justly deserving of a couple brews and a pita pizza. It wasn’t climbing, but I did feel exhausted and terrible, and my hands hurt, so we’ll call it even. A beer in the Belgian Trappist tradition, the Rochefort 8, from the Brasserie de Rochefort, is proof [...]

Share

New On The Beer List: St. Bernardus Prior 8

After a day of hard bouldering, nothing soothes quite like a frosted pint on the worn hands. I refuse to do anything until I’ve had a beer. Given that today was absolutely stunning in Blacksburg, and I try my best to climb when it’s stunning, it was no surprise to see me this evening in [...]

Share

Project Euler Problem 69

Problem 69 is beautiful in its simplicity. A clever bit of algebra and a homespun (or ripped off from Wikipedia) library function rip into this problem like me into a microbrew. Wait, can you rip into a beer? Problem 69 Problem 69 asks: “Find the value of n <= 1,000,000 for which n/φ(n) is a maximum.”, where [...]

Share

New On The Beer List: Raging Bitch Belgian IPA by Flying Dog Brewery

Blacksburg, VA, my current home for the past three and a half years, is frequently the dullest place on Earth. Paradoxically, I also feel sometimes as though my friends and I don’t share any hobbies or interest, and that, frankly, their hobbies are all boring. At times like this, I like to grab onto my [...]

Share

New On The Beer List: Black Mocha Stout by Highland Brewing Co.

Highland Brewing Co., out of Asheville, NC and thus fairly local, makes a number of beers that I would describe as “awesome”. One of my favorites is the Black Mocha Stout, according to their website “Highland’s most robust beer.” Year-round, but particularly in the winter when it’s chilly, I love drinking stouts. Rich, robust flavors [...]

Share