Batch Rename Files in Terminal Iteratively

Iteratively is a word!  Stupid spell check. Anyway, I had a bunch of sequentially named image files that needed to be renamed.  Here’s how I did it in the terminal: INDEX=0 for i in *; do mv $i slide-$INDEX.jpg; let INDEX=INDEX+1; done Given a directory full of files with names like foo_image_00001.jpg, foo_image_00002.jpg, etc.; this […]

OGG Encoding for HTML5 Audio

The html5 <audio> tag needs an mp3 file and and ogg file to be cross-browser compatible. For best results, only encode raw, wav, or aiff files this way. Mp3 to ogg will look like it works, but the file won't play on Firefox. Encode Install oggenc: $ sudo apt-get install vorbis-tools Encode: $ oggenc -q […]

.htaccess for Magento pretty URLs

I was pulling my hair out over this because Magento failed to produce an .htaccess file after I enabled url rewrites on my local dev server. I searched the old internets and found nothing! I ended up using the same .htaccess arguments as I do for WordPress and it worked great. To enable url rewrites, […]

And the eCC compatible shopping cart winner is…

Opencart! No wait… it was actually LiveCart. Ed. Note 9/8/11: LiveCart made me a liar.  Turns out its broken, the community is non-existent, and the documentation is incomplete.  After struggling with PHP error after error for hours yesterday, I’ve given it up and my search for an eCC compatible shopping cart continues.  I remain impressed […]

Livecart 500 Internal Server Error on Install

I just installed Livecart on my local development machine and got a 500 Internal Server error when I visited the site. My permissions were set correctly. The Apache log was showing this error: livecart/.htaccess: Options not allowed here Never seen that one before! I fixed it by following tristanC’s advice on this forum post. Just […]

eCC compatible shopping cart reviews

I have a client who uses eCC for quickbooks integration with their webstore. Originally we had them on the WP E-Commerce plugin, but the new version (3.8) is badly broken, and after a horrendous couple days trying to fix it I’m forced to abandon ship. So I went through the list of eCC compatible shopping […]

Disable WP E-Commerce scripts and stylesheets

This comes straight outta the getShopped forums: via cannobbio. To disable all scripts and stylesheets, add this code to the functions.php file in your theme folder: // Remove Styles function childtheme_deregister_styles() { wp_deregister_style( ‘wpsc-theme-css’ ); wp_deregister_style( ‘wpsc-theme-css-compatibility’ ); wp_deregister_style( ‘wpsc-product-rater’ ); wp_deregister_style( ‘wp-e-commerce-dynamic’); wp_deregister_style( ‘wpsc-thickbox’ ); wp_deregister_style( ‘wpsc-gold-cart’ ); } add_action( ‘wp_print_styles’, ‘childtheme_deregister_styles’, 100 […]