Monday, April 13, 2009

Lab 6 Notes

I used ruby/gtk/glade for project 6. I was surprised how easy it is to use Glade (especially version 3) to design GUIs for Linux.

One of the hardest things I ran into was trying to figure our how to get images to show up in gtk. It ended up not being too complicated, I had to do something like gtk_image.buffer = Pixbuff.new().

I'm surprised that lab 5 started working, because I was not able to access the images I uploaded before, but I guess it's working now. Not sure why.

Wednesday, April 8, 2009

RE: appserver image submission

Artan,

I tried to comment on your blog, but I can't seem to get the comment submit screen to show up.
To generate a GUID, I just found a library for my language (ruby-guid). This wikipedia article talks about what GUIDs are and how they can be generated. Just from glancing at the page, however, it seems that using a library would be much easier than trying to do it myself. What language are you using?

Monday, March 23, 2009

X Forwarding with Fedora image

At first I couldn't figure out how to see X programs from the Fedora image on my local box. I installed the packages needed for xclock and ran ssh with the -X flag (and the -i flag for my identity file), but no luck. I found forum post suggesting using the -v flag. When I did that I saw debug output about xauth not being installed. I searched on that and found a useful post on an IBM forum. It turns out all I have to do is install xauth, and X seems to be forwarded properly.

I am considering using ruby-gtk2 for the next project. It's not installed on the CS lab computers I've tried so I thought I could use an image on EC2. Maybe that's a waste of resources, but it's nice to have that option. Haven't tried out the ruby-gtk2 yet, but I'll post on how it works.

Wednesday, March 18, 2009

RMagick and ImageMagick or GraphicsMagick

I decided to use ImageMagick, rather than GraphicsMagick. It seems the newest version of RMagick has a helpful convenience method that seems to make the thumbnails trivial. When using RMagick 1, that method didn't seem to exist. To use RMagick 2, however, I need to be using a recent version of ImageMagick, rather than GraphicsMagick. Good thing Ubuntu is so good at handling all the dependencies. I reckon Fedora will be as well.

It's pretty sweet that these tools can actually change these photos. Hopefully the watermark won't be too bad.

Tuesday, March 17, 2009

Installing RMagick with gems

Getting the RMagick ruby gem to install wasn't too bad. Ubuntu has an RMagick package in the apt repository, but I installed a newer version of gems a while ago, and have kind of gone down the road of installing most ruby libraries as gems rather than with the Ubuntu package manager (although that probably would have worked as well).

To get it set up, I just had to install the libgraphicsmanager1-dev package and let apt install it's dependencies. Then I used gem to install rmagick. The default "gem install rmagick" seems to look for ImageMagick, rather than GraphicsMagick, but a little searching led me to this page on the RMagick website, which says how to install the correct gem for GraphicsMagick. You just have to tell gem to install version 1.15.nn, where nn is part of some sort of version number, which, as of this writing, seems to be 1.15.17 (See this RubyForge page and follow the download link to see the newest version).

I haven't actually tried RMagick yet, but at least the gem installs without failing, so hopefully it shouldn't be too hard to reproduce on the Fedora Amazon image. Good luck, everyone!

Saturday, March 7, 2009

Cleared the Pictures and Comments Domains

I cleared the pictures and comments domain earlier today, so that the db would be consistent with s3. I did so by deleting and creating them. Things seem to be working now. Thanks for your patience.

I'm still not sure what the cs462-data bucket was used for. Does anyone remember? Sorry if your stuff was in it.

Friday, March 6, 2009

cs462-data and theimageproject Buckets Deleted

Whoops. I accidentally deleted the cs462-data and theimageproject buckets. They are back now, but the data is gone.

I think the best step is to clear the comments and pictures domains in the simpledb so that the data there matches what's in the theimageproject bucket. Please let me know if you disagree or have any other suggestions.

So, if you're seeing some strange behavior this is probably why. Sorry about that.