OT: In a perfect world…
…there would be no bugs.

…there would be no bugs.

$obj = new s3();The readObject() function merely calls socket_read with a maximum number of bytes to return set to 4096. The $key requested in the test case is not even this large. Also, readObject() returns raw data and does not parse the response header.
$obj->connect();
$obj->requestObject($bucket, $key); // generates a request and writes to the socket
$timer->start();
$data = $obj->readObject(); // reads response from the socket
error_log(sprintf("took %s sec", $timer->get_time()));
$obj = new s3();I am hoping to stream media from S3, but this delay is very noticeable when scanning through clips. Will I be able to leverage S3 into my application? Or will there always be a long delay while S3 locates my files on their storage network before sending me back some data?
$obj->connect();
$obj->requestObject($bucket, $key); // generates a request and writes to the socket
usleep(2000000); // sleep for two seconds
$timer->start();
$data = $obj->readObject(); // reads response from the socket
error_log(sprintf("took %s sec", $timer->get_time()));
I thought I'd post this here in case anyone runs across the same issue I did.
If you have a working Ubuntu 7.10 image, and you use ec2-bundle-vol to create a new image and then you can't log into the new image you're probably having the same problem I had, which is that the network wasn't working at all on the rebundled image. To confirm that you can look at the console output from the failed instance with "ec2gcons".
The issue was that the network device was trying to bind to the device with the same ethernet address that it had before. This is caused by /etc/udev/rules.d/70-persistent-net.rules. You need to make sure that file doesn't appear in the new image, the easiest thing is probably to just delete the file on the current image before re-bundling. I actually did it differently (I don't like my solution, I'd like to find a better one), I edited the AMI tools and added that file as a hard-coded exclusion.
Another way might be to remove /etc/udev/rules.d/75-persistent-net-generator.rules, which generates the 70-persistent-net.rules file.
If you think of a more elegant way let me know. Hope that helps!
Paul
So, I’m new here and used to do business through ebay. I got sick of the hidden fees, so checked out Amazon. Listed a few "test" items
If you’ve been trying to download and install Quicksilver in order to get Leopard up to snuff, you’ve probably noticed that the Quicksilver site is down. In fact, it’s been down for quite a few days now. Fear not, Quicksilver lovers, as the application’s developer contacted us to let us know that the last version we posted about included a bug that caused some Quicksilver installations to ping for updates like crazy, which brought down the homepage. That, consequently, has meant no one has been able to download Quicksilver or any Quicksilver plugins for a few days. So, whether you want to install Quicksilver fresh or you’ve already got it installed, go grab the latest version from the link below (it’s a direct link) and help put out the fire for the folks who who so kindly bring us Quicksilver free of charge.
Did you know that you can jump straight to a Wikipedia search or start composing an email directly from Yahoo's search box? Weblog Digital Inspiration highlights five cool Yahoo search tricks—like the two mentioned above—that Google doesn't do.
For instance, type !wiki google in Yahoo! search box to search Google in Wikipedia.com. Other popular shortcuts are !ebay, !amazon, and !flickr. You can also execute these from the Firefox search box without changing the default search engine.