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.

Queues Visible

Thanks Brad, Bracken, and Devlin,

There is a right_aws sqs implementation for the newer queues and I can see our queues when I use it. Just had to look farther into the documentation.

Thursday, March 5, 2009

Possible Cause of Queue Trouble

The error I am getting involves parts of this message:
...QueueAlreadyExists...This queue already exists for another wsdl version. Queue names must be unique across wsdl versions....
I did a search and found a helpful page at the Amazon Web Services site. It seems that if we're using different versions of the API we may not be able to see the queues. I am using right_aws for ruby, which the documentation says uses the 2007-05-01 API. The newest version appears to be 2008-01-01. What are others using? I asked Devlin about it and I'll post if there's something we can think of.

Having Trouble with Queues

For the 2nd half of the App Server I am having troubles using the necessary queues. I can only see 2 queues, named "processing" and "storage". As far as I know I need to be able to access all the queues named on the wiki. I'll look into it and ask Devlin and post what I find out. If anyone has any suggestions, I'd appreciate a comment. Thanks.

Wednesday, February 18, 2009

Ratings * 100

I was thinking that the rating returned by simpleDB were a sum of all the ratings, so that the average rating could be found by dividing simpleDB's rating by the rating count. I think I was wrong. It seems that simpleDB's rating is the rating reported to the client times 100.

/list/recent in under 70 lines

I am using Sinatra (thanks for the tip Devlin) to make the http endpoints. It is neat how you can get a RESTful interface with such little code.
On to /list/popular, which should be less than 70 lines, if I've listened to anything I've been taught about avoiding code duplication.

Friday, February 6, 2009

POSTing image conntinued...

rest-client:
As a poster on a page I linked to mentioned, I can't figure out how to make rest-client post in multipart.

curb (ruby bindings for libcurl):
Rails was segfaulting.

curl on the command line:
A little hacky, but it works. I actually had a picture show up in the approval queue!

Also, I didn't change some hard coded image id's for the rate submitter and comment submitter, so that explains why rating would get back a number successfully, but on a refresh it wouldn't persist.