Friday, March 25, 2011

XChat Configuration

I'm an IRC newbie even though I've been using email for 15+ years. IRC seems great for those issues that benefit from the experience of many but aren't large or important enough to warrant hitting the mailboxes of 100 people. It also seems useful for determining the magnitude of an issue. Anyway, now that I'm using IRC, I wanted to make my client of choice, XChat, less annoying to use:

  • XChat highlights a channel when any new messages show up, including join/quit. So, as long as join/quit messages are displayed, the channel highlight wasn't very informative. I learned that it's easy to disable join/quit messages. Note that in in XChat 2.8.6, the "hide" option is under "Settings".
  • By default, XChat starts with no server connection and no channels. You can get it automatically connect and open channels via the "XChat"/"Network List..." menu. "Edit..." your server, check "Auto connect to this server at startup" and click the button next to "Favorite channels" to provide a list of auto-connect channels.

Tuesday, March 22, 2011

Deleting Old Files

Deleting old files should be an easy task, right? find can locate them and rm can delete them. But, what's the right combination? xargs must be useful as it converts newline-separated data into space separated data, but the first thing I tried didn't work because there were spaces in some of my file names:

$ find -mtime +90 | xargs ls
ls: cannot access ./download: No such file or directory
...
The xargs man page provides one solution:
...filenames containing blanks and/or new‐lines are incorrectly processed by xargs. In these situations it is better to use the -0 option, which prevents such problems. When using his option you will need to ensure that the program which produces the input for xargs also uses a null character as a separator. If that program is GNU find for example, the -print0 option does this for you.
Another option is to tell xargs to use newline as the delimiter. 'course, I'd recommend that you first try listing the files to see what you'll be deleting. Hence the ls in these examples. You should change to rm when you're ready to destroy.
$ find -mtime +90 -print0 | xargs -0 ls
$ find -mtime +90 | xargs -d "\n" ls

Thursday, March 10, 2011

Google Chrome 10: Flash Out of Date

If you're like me and just upgraded to Google Chrome 10 (10.0.648.127), you may find that you get Flash is "Out of Date" error messages. IIUC, Chrome 9 used it's own build-in flash player, but Chrome 10 has switched back to using the Adobe one. Also IIUC, Chrome 10 expects Flash 10 and will complain if the available flash is 9 or older. At first, I thought I was out-of-luck since this Adobe TechNote says that Chrome's flash is built-in, but I found that after uninstalling (Adobe) flash, not even the "Run this time" option would work. So, I tried reinstalling Adobe flash. It grabbed version 10 of Adobe flash, and, Poof! Flash was working again without the warning message. This even though I'm on Debian oldstable (5.0 aka lenny). So, if you run into this issue, I'd recommend installing Adobe flash 10. It appears that on Debian-like distributions (e.g. Ubuntu), this is as easy as:

$ sudo apt-get remove libflashplugin-nonfree
$ sudo apt-get install libflashplugin-nonfree

Update (3/24/11): Users on the Google Help Forum have suggested checking chrome://plugins to see if Chrome is using the Firefox's outdated plugin (/home/username/.mozilla/plugins/). If so, try deleting the outdated plugin and restarting Chrome.