C++ Templates for XCode 3.2

Note: These project templates have not been tested in XCode 4 but I do intend to revisit this and make sure everything is kept up to date. Here are a couple of Project templates I made for XCode 3.2. One for a WxWidgets based project (wxMac 2.8), and one for a GLUT project. Hope they …

Continue reading ‘C++ Templates for XCode 3.2’ »

Nethack on OS X 10.6 (Snow Leopard)

Update: Verified that this still works using XCode tools 4 (compiler: llvm-gcc-4.2) on OS 10.6.7 (Snow Leopard). O.K. So, this is kind of a followup to a previous post I did about how I like to setup Nethack on my Mac. However, more recently, some of the patches I had used stopped working on later …

Continue reading ‘Nethack on OS X 10.6 (Snow Leopard)’ »

Quick Org-Mode Hacks

Recently , I’ve come to rely on Emacs for more or less everything I do on a computer. Of course, in work there are some exceptions: We must use Outlook for emails (the bulk), various windows only business tools (the cruft), etc. But, as far as possible I will use Emacs because I love the …

Continue reading ‘Quick Org-Mode Hacks’ »

Protecting Code from Uncertainty

if (2 > 5) { fprintf( stderr, “This shouldn’t happen!\n” ); } else { //continue as normal } It really amuses me when I see code sections commented as “This shouldn’t happen” … It usually means that the programmer is about 98% certain that no condition will occur in which the code is executed. However, …

Continue reading ‘Protecting Code from Uncertainty’ »

GLUT on Mac OS X

I was having a problem using Glut (GL Utility Toolkit) on my Mac today – despite the number of sites saying that it was a snap to set up:  ”Just add the GLUT.Framework to your project and compile.”  – Well, my program was compiling OK, but running it would always result in a “bus error” …

Continue reading ‘GLUT on Mac OS X’ »