Amazon S3 CDN distribution for Menalto Gallery 3 v2 released

Well, after a few weeks of having this module used by many in the community as a beta module, and due to lack of bug reports since, I’m now convinced it’s stable enough to release. So, here it is.

[download id=”20″ format=”3″]

As always, direct comments, feedback and bug reports to the module’s official thread on Gallery’s forums.

That is all 🙂

Amazon S3 CDN distribution for Menalto Gallery 3 v2 BETA

I just posted beta version 2 of this module on the G3 forum. As I wrote there, but will write here too, here’s the changelog:

  • Access Key, Secret Key, and Bucket name validation
  • Ability to upload only thumbs, resizes, fullsizes, or any combination of the 3
  • Resolved compatibility with crossdomain issue in album organize. Thumbs are now vended from the local server as crossdomain blocks flash from loading these (though CoolIris is not affected, I’m not sure why)
  • Ability to (if used with updated Scheduler module (linked below)) sync and upload items to S3 via a cron job rather than “there-and-then”. This resolves the upload progress bar stalling/freezing/browser crashing issues while waiting for server to upload to S3
  • Spelling changes
  • Updated S3 lib to ignore SSL certificate mismatches. This resolves communicating data to S3 via SSL if required. The warning is still in place on the admin page though, as you may or may not still run into issues using SSL
  • Added support to move items around S3 when items are moved around the G3 installation. When images are now moved from album to album, the item is moved in S3 accordingly. Images are also updated on S3 when rotated. Haven’t tested this with the Watermark module yet though.
  • Resolved problem validating Access Key/Secret Key/Bucket Name info on first/new install of module (not affecting upgraders from version 1 of this module)
  • Resolved issues with Organize crashing as (0 of x items completed) when moving items between albums.
  • (Potentially) resolved issues that prevented Server Add module from working correctly.

Yet to come:

  • Use S3 for primary storage (useful for low-storage hosting accounts) – This is pegged for v3

You can download it here: [download id=”20″ format=”3″]

Please direct all feedback and bug reports to the thread on G3’s forum here.

A dog is for life, not just for Christmas

This isn’t something I normally post about, considering the nature of this blog and all. But I read this online, and it made me well up reading it. I just have to share it with you. It’s a letter called “A dog is for life, not just for Christmas”.

Dear Mom and Dad,

I died today. You got tired of me and took me to the shelter. They were overcrowded and I drew an unlucky number. I am in a black plastic bag in a landfill now. Some other puppy will get the barely used leash you left. My collar was dirty and too small, but the lady took it off before she sent me to the Rainbow Bridge.

Would I still be at home if I hadn’t chewed your shoe? I didn’t know what it was, but it was leather, and it was on the floor. I was just playing. You forgot to get puppy toys.

Would I still be at home if I had been housebroken? Rubbing my nose in what I did only made me ashamed that I had to go at all. There are books and obedience teachers that would have taught you how to teach me to go to the door.

Would I still be at home if I hadn’t brought fleas into the house? Without anti flea medicine, I couldn’t get them off of me after you left me in the yard for days.

Would I still be at home if I hadn’t barked? I was only saying “I’m scared, I’m lonely, I’m here! I’m here!”. I want to be your best friend.

Would I Still be at home if I made you happy? Hitting me didn’t make me learn how.

Would I still be at home if you had taken the time to care for me and to teach manners to me? You didn’t pay attention to me after the first week or so, but I spent all my time waiting for you to love me.

I died today.

With love,

Your Puppy *lick*

Remember – animals have feelings too.

Amazon S3 CDN distribution for Menalto Gallery 3

Announcing a new module for Gallery 3 by Bluespider Technical Solutions: Amazon S3 CDN

This module integrates deeply into the Gallery 3 code, and seamlessly redirects your web clients to your Amazon S3 bucket for content, leaving your web server only the task of serving up the Gallery 3 HTML pages. This module also hooks into item upload, move and delete events and copies, moves or deletes content from your S3 bucket as and when you create, move or delete it.

For galleries with content pre-added, we provide a task which performs a syncronisation between Gallery 3 and the S3 bucket for all content and album thumbnails, resizes and full sized images that would have otherwise been served up by Gallery 3.

Download it here: [download id=”20″ format=”3″]
Gallery Codex page here
HISTORICAL Support Forum Thread here
Use the comment box at the bottom of this page for support, or contact me directly. I’d rather you commented in the open forum though, since this is open source and all 🙂

Changelog
26th November 2010 :: Version 1 :: Initial release.
19th December 2010 :: Version 2 (beta)

  • Key, and Bucket name validation
  • Ability to upload only thumbs, resizes, fullsizes, or any combination of the 3
  • Resolved compatibility with crossdomain issue in album organize. Thumbs are now vended from the local server as crossdomain blocks flash from loading these (though CoolIris is not affected, I’m not sure why)
  • Ability to (if used with updated Scheduler module (linked below)) sync and upload items to S3 via a cron job rather than “there-and-then”. This resolves the upload progress bar stalling/freezing/browser crashing issues while waiting for server to upload to S3
  • Spelling changes
  • Updated S3 lib to ignore SSL certificate mismatches. This resolves communicating data to S3 via SSL if required. The warning is still in place on the admin page though, as you may or may not still run into issues using SSL
  • Added support to move items around S3 when items are moved around the G3 installation. When images are now moved from album to album, the item is moved in S3 accordingly. Images are also updated on S3 when rotated. Haven’t tested this with the Watermark module yet though.
  • Resolved problem validating Access Key/Secret Key/Bucket Name info on first/new install of module (not affecting upgraders from version 1 of this module)
  • Resolved issues with Organize crashing as (0 of x items completed) when moving items between albums.
  • (Potentially) resolved issues that prevented Server Add module from working correctly.

20th January 2011 :: Version 2 Final :: Release
29th January 2011 :: Version 2.1

  • Firstly, started using double digits for version numbers so I can create minor revisions
  • Added fields to database to store MD5 hashes of files. These are used to match the MD5 hash of the local file, and what the module thinks is uploaded, and also for comparison with S3 itself (which provides an MD5 hash when asked for bucket info)
  • Re-visited re-sync task. Taken out “emptying bucket” code (as there’s really no need it seems), and simplified the whole process, allowing the module to compare the MD5 hash of the local file against the same file path on S3, and upload/overwrite if they’re different, or if the module doesn’t believe the file has been uploaded.
  • Resolved issues of moving entire albums from one location to another and files disappearing. This invoked a re-visit of the move code as well and cleaned up quite a lot of unnecessary stuff.

Update: Bug in Magento 1.4.1.1 core affecting Catalog Price Rules targetting Customer Groups

I blogged here regarding a bug in Magento’s core affecting Catalog Price Rules under promotions. This would effect, for instance, wholesale pricing. Well, Magento confirmed on the bug report that this was fixed in their new release, 1.4.2.0-RC1. I’ve tested this on my staging server and confirm that this is the case.

Discount away!