Ubuntu provides the traditional Unix lp/lpr commands via the cupsys-bsd package, but they annoyingly don’t pick up the CUPS default printer.
How do you identify your current default printer from the command line?
lpstat -d
How do you set your preferred default printer?
lpoptions -d PRINTER_NAME
Ah, yes. But how do you find the names of your installed printers?
I somehow moved a file owned by root into the Trash, then I couldn’t make it go away: “Empty Trash” failed with permission problems. Thanks to the Ubuntu Geek blog—and especially commenter Ayenack—I found the secret location of the trash:
~/.local/share/Trash
The files in this folder can be chmod‘d and rm‘d just like any others (e.g.,
rm -rf ~/.local/share/Trash/*
is observationally equivalent to “Empty Trash”).
NOTE: The (otherwise very cool) GNOME Disk Usage Analyzer (aka Baobab) moves files to ~/.Trash—which is not the Trash—on “Move to Trash.” This is annoying.
[UPDATE 9/8/2008] If you do gksudo nautilus and delete files, then click on the trash icon in Nautilus it says, “The folder contents could not be displayed…” and “Empty Trash” is grayed out. But the files are in /root/.local/share/Trash, as you might expect. Just do
This video clip has been getting a lot of play in the liberal blogosphere (e.g., TPM):
In it, Mark Halperin says (with respect to the “how many houses” “controversy”):
My hunch is that this is going to end up being one of the worst moments of the entire campaign for … Barack Obama. I believe that this has opened the door up to not just Tony Rezko, in that ad, but to bringing up Reverend Wright, to bringing up his relationship with Bill Ayers…. It would have been hard for John McCain—given the way he says he’s going to run this campaign—to do all this stuff without the door being opened.
What’s interesting to me is that pretty much the entire panel jumps on him to say: that’s stupid, that’s illogical, that completely contradicts both objective reality and common sense. And he sticks to his guns, unfazed, and keeps making the argument for 2 minutes, 43 seconds.
It’s possible that Halperin is just exactly that blinkered and stupid. But it strikes me as the kind of argument I’d pitch over a beer and, after my drinking companions tore it apart, I’d shrug and say, “Yeah, that’s dumb. Forget it. I was just talking shit.” Maybe Halperin would say that over a beer, but he’s on TV. And on TV you never repudiate a stupid argument.
Comments Off on Being on television means never having to say you’re wrong
The most annoying thing in the world: when you’re saying something and your significant other is reading or watching TV or playing Scramble and not paying any attention to you.
The second most annoying thing in the world: when you are reading or watching TV or playing Scramble and your significant other won’t shut up.
Can you name a category of people (besides Republicans) who are often said to “take pride in being ignorant”? Here’s a hint. Here’s another. What is Barack Obama saying about John McCain?
Nota bene: Just kidding.
Comments Off on Did Barack Obama Play the Race Card… Again?
A place to document tips and tricks for the various Linux, LaTeX, OCaml, and other general computer-related topics that I encounter in my daily life and a repository for supposedly amusing observations, hyperlinks, recipes, reviews, travelogues, and political opinions written when I have a spare moment (or when I don't have a spare moment, but I don't feel like working)