Lab 5

April 17, 2009 at 1:59 am

This was a breeze lab, after lab4. I found some really good tutorials on manipulating images with PHP’s gd libary. This lab didn’t take very long at all. One thing I would like to do (which is very simple) is to delete the images from my hard drive whenver I’m done storing them into the S3.
One problem I ran into with this lab is testing. Someone had left their image processing deamon running and I was never able to test mine live on the cloud. That issue replicated into another app server deamon, where messages were taken out of the /imageresults queue to the /approvalprocess queue. It turns out that the image description, submituser, and submitdate, were being put as arrays into the /approvalprocess sqs. It took me about a half hour to find out that before encoding the message into json, I had to enclose the description, submituser, and submitdate variables into double quotes so only the value got stored.

So, when creating the array instead of doing

$msg = array(…, ‘description’ => $description, …)

I had to do,

$msg = array(…, ‘description’ => “$description”, …)

Entry filed under: Distributed Systems, Uncategorized. Tags: .

Lab 4 Lab 6


Calendar

April 2009
M T W T F S S
« Mar   Aug »
 12345
6789101112
13141516171819
20212223242526
27282930  

Most Recent Posts


Follow

Get every new post delivered to your Inbox.