My Final OpenGL Project: ChessGL3d

Posted by: on Mar 6, 2010 | No Comments

So I had an earlier post about starting my OpenGL experience for the first time. Well here is the culmination of my experience. I created a rough OpenGL version of Chess. I will post this as soon as I get some time. In the mean while, here are some screen shots. Enjoy.

WPF Context Menu Not Showing Up

Posted by: on Feb 14, 2010 | 2 Comments

So I came across a problem with WPF and context menus. Whenever I added a context menu to a right click on a window or panel it would simple not open. The only time that a context menu would appear is when I right clicked on a button or label that was a child of the panel I added it to. I searched everywhere online for a solution and couldn’t find one. Finally, I figured it out myself. For some strange reason, a context menu will not appear if you to not manually set a background color for a component or child component. So to fix the problem, simple set a background color for which components you want the top level context menu to appear.

Change Default Grub Settings In Ubuntu

Posted by: on Jan 24, 2010 | No Comments

I was surprised to see how wrong the entries on the Internet were about changing the default OS that grub boots into. Here are the correct instructions for how to do this (it has been tested on ubuntu 9.10).

sudo gedit /etc/default/grub

Then change the GRUB_DEFAULT=0 line to the number that you want to boot. i.e. if you are trying to boot into the 5 entry in the grub bootloader, put 5. You can also change the number of second grub will wait before booting using GRUB_TIMEOUT.

Then you need to update grub:

sudo update-grub

If you see something like this, congrats! You did it!

Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.31-17-generic
Found initrd image: /boot/initrd.img-2.6.31-17-generic
Found linux image: /boot/vmlinuz-2.6.31-14-generic
Found initrd image: /boot/initrd.img-2.6.31-14-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
done

Reboot to see the changes.

First post from my iPhone

Posted by: on Jan 6, 2010 | No Comments

My first post from my iPhone.

Java Othello Game Posted

Posted by: on Jan 6, 2010 | No Comments

Finally got around to posting my Othello game as an applet and jar download in the games section. I still haven’t felt like making an AI for it and I’m not sure when I will be able to do it, since I’ll have real work to do this semester and the rest of the time will be filled with relaxation time, specifically Star Trek: Online.

Anyway it’s nice when I get to post some of my work since it gives me a sense of actually accomplishing something once and a while, and my little game section seems to be growing fairly nicely .