Category Archives: Musings

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 [...]

Posted in Musings | Leave a comment

.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, [...]

Posted in Musings | Leave a comment

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 [...]

Posted in Musings | Tagged | Leave a comment

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 [...]

Posted in Musings | Tagged | Leave a comment

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 [...]

Posted in Musings | Tagged | 3 Comments

Novacut is back!

Support Novacut, a pro open source video editor! Its an idea whose time has definitely come:

Posted in Musings | Leave a comment

Milholland Bicycle Company

Did I ever mention that my brother builds the best bikes in the world? He built a mountain bike for me that is the best thing I’ve ever ridden. Check him out! Sweet new website: http://www.milhollandcycles.com/ Facebook: Milholland Cycles

Posted in Musings | Leave a comment

Add Javascript to a Concrete5 template the right way

jQuery is included by default in Concrete5. Here’s how to add your own script: Put your .js file in the /js directory in the root of your Concrete5 install. In your theme’s elements/header.php file, add the following just before <?php Loader::element(‘header_required’); ?>: <?php $html = Loader::helper(‘html’); $this->addHeaderItem($html->javascript(‘my_script.js’)); ?> If you want to include your javascript [...]

Posted in Musings | 2 Comments

We’re getting the band back together!

I met my wife 5 years ago at the beginning of a run of the Sondheim musical Assassins at ART here in Portland. I played John Hinckley, Jr., the guy who shot Reagan in ’81. It was an amazing show, and not just because I met the love of my life. The show itself is [...]

Posted in Musings | Tagged | Leave a comment

Clever checkbox handling with PHP

An unchecked checkbox returns nothing when a form is submitted, but most of the time you want it to return something, so you can work with that $_POST variable. This is easy with the addition of a hidden input with the same name as your checkbox: <?php     // If the box was checked, keep it [...]

Posted in Musings | Leave a comment