Sacramento, CA

Sunny 64° | 35°

Seattle, WA

Sunny 57° | 35°

Buk Life

Archive for July, 2009

7 July 2009

Amazon S3 Tricks

We use Amazon S3 as an easy and cheap CDN on many projects. Here’s some interesting things I learned recently while researching how to stop direct downloading or linking to media files:

  1. Any file on S3 can be turned into a torrent by adding ?torrent to the filename.  As in http://bucket.s3.amazonaws.com/myfile.zip?torrent.  I read about this over here.
  2. S3Stat looks like a useful tool for viewing your S3 logs.  In particularly, checking for direct linking from other sites.
  3. You can make auto expiring links using S3 (documentation here).  This is the meat of what I wanted to find out.  Using the Query String Request Authentication (page 24 of the PDF) you can specify an expire time for a link.  As I take it (and we haven’t implemented this yet, so I’m not positive), you would set the read access of the file to “Authenticated Users.”  Then you would construct the URL to the file using your public AWS access key, the expire time, and then a signature that includes a hash of your request with the expire time and your private key.  So if you set the expire time to something only a few seconds after the current timestamp, that link should not be useable again.

6 July 2009

Copy paste between Fireworks and Flash

I don’t often batch import layered files (PSD, PNG) into Flash or even copy graphics into it.  But what I DO find really handy is copying text between the apps.  This worked in CS3 but it’s gotten better (more accurate) in CS4.  You can copy a whole group in and the font, size, and color are all maintained (or close enough, you usually have to nudge line height).  This saves tons of time when you’re populating a whole FLA from a text heavy design while keeping the text editable for the inevitable copy change.  Notice in this video how I can bring in multiple text boxes at a time.