Why am I scared to death of President Bush?

General Comments Off

It’s not so much him as the people he surrounds himself with and installs into powerful positions. Donald Rumsfeld is bad enough, but Michael Hayden is totally insane, and is a frightening opponent of freedom in this country. How are people buying into Bush’s claims that he is liberating other countries when he’s going out of his way to take away our liberties?

Star Wars DVDs

General Comments Off

I sent Josh this link because he is such a Star Wars fanatic. He’s been much less of a Star Wars fanatic since the Special Edition came out, and has been pissed at Lucas for a few years because Lucas claimed he would never release the original, unedited, non-special edition of the original movies on DVD. But it seems that Lucas had a change of heart for some reason. The new set will come with both the special and non-special editions!

Gtk# in Windows

hacking Comments Off

I’m hacking on my Gtk# app in Windows right now, because Visual Studio is amazing. I
couldn’t seem to get pixbufs to load from relative paths, because I couldn’t figure out what the present working directory is on anything in Windows, so I started fooling with the resource manager.

This is a very cool thing. You can put strings or images or whatever you want in there, then access it from your app as Properties.Resources.Foo. Very nice.

However, if you’re using images then they’re obviously stored as a System.Drawing.Bitmap, and Gtk# wants to deal with things as a Gdk.Pixbuf. So here’s a quick snippet of code to deal with that:

using System;
using System.Drawing;
using System.Drawing.Imaging;

public Gdk.Pixbuf CreateFromResource( Bitmap bitmap ) {
BitmapData data = bitmap.LockBits( new Rectangle( 0, 0,
bitmap.Width, bitmap.Height,
PixelFormat.Format24bppRgb );
IntPtr scan = data.Scan0;
int size = bitmap.Width * bitmap.Height * 3;
byte[] bdata = new byte[ size ];

Gdk.Pixbuf pixbuf = null;

unsafe
{
byte* p = (byte*)scan;
for( int i = 0; i

Monodevelop

hacking Comments Off

So I started testing out Monodevelop for hacking on my resurrected Ludwig van. It’s pretty nice, I think. Obviously it’s pretty far from Visual Studio, but it’s not bad. The big new thing in the latest release is the integration of stetic, the user interface builder.

Maybe I’m retarded, but I just can’t ever seem to save time by using these UI builders. Glade was okay, but so far I can’t figure out how to use stetic in any remotely useful way. In this respect, I don’t feel that Visual Studio is much further along because its UI builder is pretty useless too. But as I said, maybe I’m just retarded.

IMDb

General Comments Off

Well, it looks like I finally made it into the Internet movie database. Very cool! I’ll get a photo submitted soon.