What more could you want?
chuck
This user hasn't shared any biographical information
Homepage: http://www.ozymo.com
Posts by chuck
Add your www with mod_rewrite
Jul 28th
It’s been said a million times, why do we need the www in the URL? The answer is simple: we want our sites to look professional. Here’s how to automatically prepend the www when some crazy hippie forgets it.
In the LoadModules section of the config, make sure mod_rewrite is enabled. On Red Hat or CentOS (or most others) it is by default:
In your LoadModules section, make sure that mod_rewrite is enabled. On Red Hat and CentOS, it is by default:
# grep mod_rewrite /etc/httpd/conf/httpd.conf
LoadModule rewrite_module modules/mod_rewrite.so
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/[^\.]+[^/]$
RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1/ [R=301,L]
Voíla. Bounce Apache, and visit. Make sure you’re cool enough not to type “www.”
/cs
Why I Love Being a Geek
Jun 25th
Moments like these are deeply cherished:
07:09 Russ: I can not believe Google put a front end to Usenet.
07:17 kale: why not
07:42 Russ: Why not what?
07:52 mostlychris: why what not why?
07:52 paul: why not why what not why, that’s why.
07:52 mostlychris: because
07:53 paul: touche
/cs
Lazy Umounting
Jun 11th
I came across a mounted sdb1 partition, but the physical device didn’t exist. This was on a Red Hat EL 5 box.
No files in the mount point, obviously, no users logged in but me, and I wasn’t standing in the directory. Even lsof couldn’t show me anything about that directory, and I almost cried when fuser -km reported nothing killed.
Umount gave this error:
# umount /dev/sdb1 umount: /dev/sdb1: device is busy umount: /dev/sdb1: device is busy
In the man page, I found the -l option for umount. The Lazy unmount. It says this:
Detach the filesystem from the filesystem hierarchy now, and cleanup all references to the filesystem as soon as it is not busy anymore.
Sounds good to me, and it worked, too. Just watch out for data loss.
/cs
Webmin Java-based File Manager and Mac, Safari
Jun 4th
So, Mac uses their own Java, and Webmin doesn’t like it.
I’ve found that opening Applications ->Utilities -> Java Preferences.app and clearing the cache helps. Click the Network tab, and click “Delete Files…” Optionally, uncheck “Keep temporary files for fast access” to make the fix permanent.
Hope this helps!
/cs
SOLVED – OS X Update 10.6.3 broke GPGMail with Mail.app
Apr 22nd
Here’s the error:
Internal error: -[MimePart getNumberOfAttachments:isSigned:isEncrypted:]: unrecognized selector sent to instance 0x118db5c90
Here’s more info: http://bit.ly/98pfQR Further to that mail list, I run GPG 2. Since it’s throwing a Cocoa error (unrecognized selector…) it’s gotta be something in the GPGMail app, likely having to do with the random, errant ways Apple changes its APIs.
I’ve no idea how to fix it, so I’m at the mercy of the devs. Good luck, fellows, and Godspeed.
/cs
UPDATE 100604: Thanks, Simon, for you link. Fixed it right up. After quitting Mail.app, I removed ~/Library/Mail/Bundles, and recreated that folder, then dropped this file into it and restarted Mail.app. I can encrypt again! huzzah!