500 errors with Magento upgrade / installation

I was getting 500 errors after an installation. After surfing some forums I learned that the permissions should be the following (magento/ being your root Magento folder).  For some reason, they weren’t necessarily correct by default:

777

  • magento/var/.htaccess
  • magento/app/etc
  • magento/var
  • all the directories under magento/media

755

  • magento/
  • magento/install.php
  • magento/index.php

644

  • all other files

Hope this helps anyone who may have been in the same situation.

‘Last Lecture’ professor, Randy Pausch, dies at 47

Randy Pausch died today.  He became famous over the past year after delivering his inspirational last lecture about “Really Achieving Your Childhood Dreams” at Carnegie Mellon shortly after learning that he had pancreatic cancer and only months to live.  My thoughts are with his family and friends.

Donations can be made to the Pancreatic Cancer Action Network, 2141 Rosecrans Ave., Suite 7000, El Segundo, CA 90245, or to Carnegie Mellon’s Randy Pausch Memorial Fund (www.cmu.edu/giving/pausch).

You can watch his “Last Lecture” here.

Downloading Product Images from Amazon

If you have happen to have a list of ASINs and you want the product images from Amazon, it’s a lot easier than I expected to grab them. Their consistent naming structure makes it easy to put together a list of URLs to their Amazon’s product images of different sizes.

All images are available at http://images.amazon.com/images/P/

Then, you tack on your ASIN, in this case, we’ll use B0018QUCL2 (the excellent Rome 1960: The Olympics That Changed the World), a “.01″ to designate the US country code, and one of these final suffixes:

  • Large size: _SL500_.jpg
  • Medium size: ._SL160_.jpg
  • Small size: ._SL110_.jpg
  • Thumbnail size: ._SL110_.jpg
  • Tiny: ._SL75_.jpg
  • Very small (swatch) size: _SL30_.jpg

The final URL looks like this:
http://images.amazon.com/images/P/B0018QUCL2.01_SL500_.jpg

Once you get your list together, throw it into wget, and in minutes you’ll have the images you need for every single ASIN. For bonus fun, to add a “30% off” (or any percentage) badge to an image, append “_PE30″ to the URL, right after the “.01.” http://images.amazon.com/images/P/B0018QUCL2.01._PE99_SL500_.jpg