Link:
https://dannyman.toldme.com/2006/12/26/thunderbird-hotkeys/
Just thinking out loud here after some casual Googling left me unsatisfied . . .
I like Thunderbird, mostly, but while it has an extensions interface, I am finding it lacking for basic customization. For example, I like to toss e-mails in an “archive” folder . . . but as far as I can tell I have to drag messages to the folder every time I want to archive them! I dug around and found the “file” button . . . but that thing is just awful! I’d like to . . . press “a” or something, or click an icon, and get the mail archived that way. (Like, to delete a message I press “delete” . . . eh?)
Has anyone found a useful configuration option / extension / doohickey to realize this stuff? Or should I re-acquaint myself with mutt for e-mail triage?
1 Comment
Link:
https://dannyman.toldme.com/2006/12/12/photorescue-recover-digital-images/
Well, I owe a plug, here . . . and a reminder note for myself if this happens again!
My third Canon camera has suffered a death comparable to my second Canon camera. So, I ordered myself a Christmas present today: a Fujifilm FinePix F30 — should be here Wednesday!
Anyway, one thing my second Canon camera did for a very long time was to EAT pictures I had taken. I tried multiple cards but they would just randomly get corrupted in the camera, and Canon went to great lengths to presume that the problem was with me, and not with their camera. (They got sued for doing that–yay class actions!) I am still bugged that I lost pictures of Clapham Junction and of the Eiffel Tower! Grr! Anyway, when I got to Thailand I slowed down enough to find a work-around to the problem of my second Canon: PhotoRescue! (more…)
2 Comments
Link:
https://dannyman.toldme.com/2006/11/29/crontab-l-u-star/
For production systems, I think it is best to use a single, centralized /etc/crontab
, which simplifies the job of tracking batch processes. On a production system, batch scripts should be sufficiently robust such that if they are resource or lock-intensive, they make sure everything is okay before they get to work. Stuff like user crons and fcrontab can live in your development and corporate servers.
Of course, sometimes you inherit production systems with people who don’t think like you do. You’ll need to review what random user crons are running on each system. With any luck you’ll have a sane OS that keeps the user crontabs in a well-documented location. (FreeBSD? /var/cron/tabs
. . . SuSE . . . still not sure . . .) Of course, luck is a fickle mistress, and sometimes you have to do it the evil way:
> cat /etc/passwd | awk -F : '{print "echo crontabs for user "$1"\ncrontab -l -u "$1"\n"}' > /tmp/crontabs.sh
> head /tmp/crontabs.sh
echo crontabs for user root
crontab -l -u root
echo crontabs for user bin
crontab -l -u bin
echo crontabs for user daemon
crontab -l -u daemon
echo crontabs for user lp
> sudo sh /tmp/crontabs.sh | mail -s "`hostname` crontabs" $USER
If you are borrowing my “recipe” you will likely want to put your e-mail address where it says $USER . . . and, you may have to do the same for fcron as well. Bah!
cat /etc/passwd | awk -F : '{print "echo fcrontabs for user "$1"\n/usr/local/bin/fcrontab -l -u "$1"\n"}' > /tmp/fcrontabs.sh
sudo sh /tmp/fcrontabs.sh | mail -s "`hostname` fcrontabs" $USER
Feedback Welcome
Link:
https://dannyman.toldme.com/2006/10/24/howto-swapon-file/
Scenario: a Linux system with two drives. The system was built with resiliency as a priority, but availability is not critical. So, the filesystems were mounted atop md raid1 for resiliency, and the swap was striped across an md raid0 for performance.
One disk failed and was removed from the system. System returns to service on remaining drive until RMA is completed. Users are informed that the system is available but does not have swap space. Consensus is reached to add some temporary swap space via a swapfile. (more…)
2 Comments
Link:
https://dannyman.toldme.com/2006/10/10/mac-a-la-mode/
I drove down to Mountain View yesterday and met Brian and Jessica for dinner. I also picked up the remote control for the TV Brian gifted us last year. He gave me another remote for the DVD player he also gave me last year, and then there was another TV remote that was nearly identical.
We puzzled a bit, and then I realized that this other TV remote was for a TV I bought years earlier, and had traded to Joe for the TiVo he had won. Joe had lived with Brian prior to my living with Brian, and when he moved he must have forgotten his remote.
Later that night, I was talking to Mike, who has the TiVo that I traded to Joe, which I gave to Mike when I went to travel, since Brian didn’t want it. Mike upgraded the TiVo, and has another connected to the satellite, would I like my old TiVo back, in all its upgraded glory? Not really, though I asked if he might want my car, since I never drive it any more, and could perhaps do without, but due to sentimentality, I would rather “keep it in the family.” (more…)
1 Comment
Link:
https://dannyman.toldme.com/2006/09/13/sleep/
japolo: haha, danny quotes locutus of borg in his code
anna: locutus was cool
dman: hrmmm.
dman: that sounds familiar … care to paste a bit, sir?
japolo: # “Sleep.” –Locutus
japolo: sleep($sleep);
I used to love Star Trek: The Next Generation. But that was pretty damn lame when the Borg got blown up just when they were about to destroy Earth because someone told them to sleep. Now, it just makes me grin.
There are three lights!
5 Comments
Link:
https://dannyman.toldme.com/2006/09/06/serial-console-woes/
So, I’m setting up a box. I need to test different filesystem configurations, which will involve a lot of boot-configure-install-post-install-benchmark cycles. We have a nice network boot infrastructure, but getting serial booting to work is always fun. Today I found that the vendor has set up BIOS “remote access” to COM2. Funny thing, the box only has one serial port! So, I set that to COM1, and configure console redirection only up to the boot loader, tell the bootloader that I want text console=ttyS0
and we’re in business!
But man, if SuSE’s YaST aint a bloody mess when it downgrades to text on a serial port:
What you don’t see here is the constant slow screen-redraw, constant pressing control-L. This is what it looks like at a good moment!
I think I understand why. I mean, I would think that Linux developers would take serial consoles and text mode to heart. After all, that’s the whole point, right? But that’s how I think, because I manage dozens of servers at a time, remote, and all my boxes are rack-mount jobbies with lots o’ fans and nobody wants to be in the same room.
But the developers who hack on Linux probably aren’t hard-core SysAdmins. Their dev system is some beat-up old hardware sitting near their desk, wired up to a spare VGA monitor, so yeah, text mode is kind of an afterthought. Especially given the pain in the butt that setting up serial consoles can be!
2 Comments
Link:
https://dannyman.toldme.com/2006/08/22/mysql-backup-grant-privileges/
Q: What privileges must I grant to a MySQL user to allow them to run mysqldump
?
A: LOCK TABLES, SELECT seems to do the trick.
Example: GRANT LOCK TABLES, SELECT ON mydatabase.* TO 'backup'@'backuphost' IDENTIFIED BY 'somecoolpassword';
Principle of least-privilege: don’t entrust your backup host with the power to hurt the database if you don’t have to. SELECT allows the user to read data, and LOCK TABLES allows the user to lock the tables while running a “snapshot” . . . and of course, narrow the privileges to a specific user-host-password tuple.
3 Comments
Link:
https://dannyman.toldme.com/2006/08/16/linux-uptime-reset/
dman: Anyone ever been on a Unix box and see uptime reset without a reboot?
SmooveB: dman: yes
David: dman: yes
***dman smiles
David: dman: my personal favorate is the rollover or the negative rollover
SmooveB: dman: linux in particular
dman: LINUX, you say?
David: SmooveB: fancy that, that’s where I’ve seen it too
It seems that this issue is near and dear to those involved in “the uptime project” where, I guess, geeks sit around comparing uptime size. Which is kind of juvenile. However, this bug gave me a hearty laugh:
How reproducible:
ALWAYS
Steps to Reproduce:
1. Boot Linux system
2. Go away for 497 days
3. check uptime
That would be a bitch to QA! (more…)
2 Comments
Link:
https://dannyman.toldme.com/2006/08/14/quotes-quotes-quotes/
While waiting on a file transfer, perhaps I can share a variety of quotes that have caught my mind lately.
I attended San Francisco’s Unitarian Universalist church for the first time this Sunday. One of the hymns has some lyrics which I dug:
We’ll be a land building up ancient cities,
Raising up devastations from old;
Restoring ruins of generations.
Oh, we’ll build a land of people so bold.
Barabara Zanotti
“We’ll Build a Land”
Then, several quotes from the August, 2006 issue of The Sun, dealing mostly with romantic relationships. (A subject especially near and dear to my heart this year.)
It remains inexplicable to me that we can finally become happy again after someone we love has died. Yet there I stood at the end of my bed, a scant four years out, feeling happy. Was this not betrayal? It does not help to say that the dead are gone and do not care. The problem of grief is never with them; it is with us, with those who remain. Like the bed we lie in, it is ours.
Susan Carol Hauser
“The Marriage Bed”
And a bunch of “Sunbeams” starting with something light-yet-presidential: (more…)
1 Comment
Link:
https://dannyman.toldme.com/2006/07/26/unix-trick-block-and-page/
Well, I hope to give some cool narrative of the big move to San Francisco, the awesomeness of my new pad, and the joy joy experience of a hip new job, but for now, I’ll share a little Unix trick.
You ever had a job to do that consisted of issuing a time-consuming command, waiting a long time, then issuing the next time-consuming command, waiting a long time . . . meanwhile, you wander off and focus on other things and the time-consuming command has completed but long ago you stopped paying any attention whatever?
Well, what I do, is ask Unix to page me when the command completes. “Hey, boss! Wake up! Time to look at me again!”
This is pretty easy to rig up. For example, this morning I had to copy a series of CD-ROMs, swapping between each copy, so my command looks like:
cp -rp /media/cdrom/* 10.1 && echo "copy done" | mail -s "copy done" pager@example.com
If you don’t already “get” it, I’ll explain:
cp -rp /media/cdrom/* 10.1
- This is the time-consuming command: copy the contents of the CD-ROM to a directory.
&&
-
- This means “if the last command completed successfully, execute the next command.” Like a conditional operator in your favorite programming language. Of course, in this context,
;;
is probably smarter, as it means “after the last command terminates, successfully or otherwise, execute the next command.” (Even if the copy screws up, I still want to know, right?)
echo "copy done" | mail -s "copy done" pager@example.com
- Say “copy done” and send that to the
mail
command, with the subject “copy done”, and send that to pager@example.com.
Hrmmm, my pager just went off. I guess I am done posting for now!
5 Comments
Link:
https://dannyman.toldme.com/2006/07/06/pen-in-the-tube/
So, we had this “swamp cooler” that had been used to augment cooling in the machine room for a time. It has been sitting unused since before I started working here a few years ago. It takes up some space, but I could never remove it because it was attached to a hose in the wall, to drain the water.
Well, this morning my colleague complained that the water was starting to smell, so I took it upon myself as the Senior Systems Administrator to solve the problem, once and for all!
We found that the tube actually ran to the sink in the kitchen next to the machine room. I pondered many ways to remove the tube without spilling water in our machine room. Tourniquet? Well, the zip-ties couldn’t compress the hose enough. In the end, I unfastened the hose from under the sink and plugged it with a pen.
From there, it was a straightforward task to pull the tube back through the wall and remove the swamp cooler, freeing us up several cubic feet of valuable machine room!
I was digging around under the sink when a coworker asked “so you’re a plumber now, huh?” I confessed that us systems guys like to think we can do hardware, but really we’re just kind of dangerous, and the right solution would have been to call the facilities people.
I started a set on Flickr to catalog such feats.
1 Comment
Link:
https://dannyman.toldme.com/2006/05/02/google-subscribe-button/
I was talking to a co-worker about how awesome the Google Personalized home page is. There’s an advanced interface where you can paste in just about any URL and get it aggregated on the page. How neat is that? Well, it would be even neater if there was a button in the web browser, so you could just visit a web site, and add it to your Google Home Page.
Well, I have done this before … I didn’t invent it, but this little JavaScript bookmark does the trick: (more…)
Feedback Welcome
Link:
https://dannyman.toldme.com/2006/04/18/1906-earthquake-dst/
So, today is the 100th anniversary of the 1906 earthquake which leveled much of San Francisco. To mark the occasion, people got up as early at 4:30AM to attend the festivities, held at 5:17AM, the time when the earthquake struck. Just yesterday I started thinking “but San Francisco didn’t practice Daylight Saving Time in 1906. Are they making the centenarians get up an hour earlier than the actual event?”
Yes! Somebody more insane than me has already written about this, thus justifying the entire blog-o-sphere, in my mind. The sun rose at 6:31AM today, in San Francisco–just fifteen minutes after the actual centennial of the Earthquake. But, thanks to Daylight Saving Time, very old people were forced out of bed at what would have been 3:30AM, to celebrate an hour and fifteen minutes before sunrise.
“Oh, the humanity!”
1 Comment
Link:
https://dannyman.toldme.com/2006/04/12/dst-energy-conservation/
Hello,
I have no empirical evidence, but since the clock was shifted, I can report that I have found it harder to get out of bed. As a consequence, I have been missing the cut-off time to access the bus and been relying on a personal automobile to get to work. My personal energy consumption has seen a substantial increase as a result of DST.
I had weird thoughts about this problem this morning. There have been reports lately that more and more Americans are working earlier and earlier hours. Record numbers of people are now up at 6AM, 5AM . . . imagine all that energy they are burning in the morning, turning up artificial lighting and climate controls because they are up before the sun! And then going to bed when it is still light out!
Perhaps, perhaps, we would save daylight if we moved everyone’s clocks backward! We could measure average working hours each year and then adjust the DST offset so that no matter how much earlier or later people were working . . .
Of course, this stupid idea would never get enacted. Er, well, DST got enacted! How was that? Business concerns–golfers, sporting goods, and others figured than an extra hour of daylight in the afternoon would bring them greater profits. So, if we were to reverse DST . . . perhaps McDonald’s and Burger King, IHOP, Starbuck’s coffee . . . the longer the morning . . .
Anyhow.
Feedback Welcome
« Newer Stuff . . . Older Stuff »
Site Archive