Archive for the ‘Software’ Category

Magento admin browser caching

October 11th, 2010

Magento has an aggressive browser caching policy that sets a default expiration of “access plus 1 year”. That tells your browser to cache everything locally for 1 year after the first access. You may notice some weird behavior in your Magento admin with that on, though. Like, after editing a product you have to hit [...]

MySQL vs AppArmor solution

October 11th, 2010

This is a very specific problem related to AppArmor and MySQL with non-standard data and temp directories. I just upgraded a database server to Ubuntu 10.04.1 LTS and ran up against a problem related to AppArmor. AppArmor is… “…a kernel enhancement to confine programs to a limited set of resources. AppArmor’s unique security model is [...]

Teaching programming

June 30th, 2010

I just ran across another educational tool—Scratch—for teaching programming to kids. I love the idea behind these simplified programming environments because they make getting started very easy, show you results instantly, and remove all the frustration of setting up a programming environment. If you want to introduce your kids to programming, you might start with [...]

Fix for /javascript files not found in Apache

May 7th, 2010

Running an Apache server on Debian? Suddenly find you can’t access any files in /javascript? As part of a maintenance upgrade, somehow the javascript-common package was selected for me. It quietly installs a symlink javascript-common.conf in /etc/apache2/conf.d that globally aliases all /javascript URLs to /usr/share/javascript. Why? Who knows. I’m sure whoever did it meant well. [...]

Google Chrome application shortcuts and multiple identities

April 30th, 2010

I keep flipping between Chrome and Firefox. I’m currently back on Chrome (the speed!). One of the things I love about Firefox is the ability to create application shortcuts (using the Prism plugin). The cool thing about those shortcuts is that each one had it’s own user profile. I have multiple Google accounts and it [...]

WordPress + Ubuntu + Flash upload fixed

February 15th, 2010

Uploading media to WordPress using the built-in Flash uploader has been broken on Ubuntu for a long time (Karmic 9.10 + Flash 10.0 r42). The problem seems to be in Flash itself since I can upload fine to the same blog from a Windows machine. But I just installed the Flash Plugin 10.1 beta 2 and [...]

Checking the integrity of all JPG files in a directory

December 11th, 2009

I recently had a hard drive go bad on me which actually turned out to be a motherboard going bad. The hard drive may be fine but I don’t want to take any chances, and anyway, you can buy 1 terabyte now for about $70 US. There was definitely something goofy going on with access [...]

Changing the default Gnome terminal size

December 2nd, 2009

Information on changing the default Gnome terminal size is out there but it is scattered and scarce. I have two 20 inch monitors. The default size (80×24) is too small. Here’s how you can change the default. This applies to all launchers, menu items, and keyboard shortcuts: Run gconf-editor Open desktop → gnome → applications [...]

Testing for browser SSL warnings

September 24th, 2009

I use an automated deployment script for BigHugeLabs.com. I’ll regularly do around 10 deployments every day so it’s important that the system has as much automation as possible. The deploy script builds CSS and JS files, updates shared libraries, deploys files to several locations, and does some testing. One test I recently added was an [...]

Fix for MySQL binlogs not deleting themselves

April 14th, 2009

If you are using the expire_logs_days setting for automatic binary log removal in MySQL and your binary logs are not automatically deleting themselves (SHOW MASTER LOGS), it’s probably because the index is out of sync with the actual log folder. Manually remove the logs (/var/log/mysql) and then do RESET MASTER to get things back in [...]