• Skip to primary navigation
  • Skip to main content

Bryan Strawser

  • About Me
  • Academics & Research
  • Work
  • Contact
You are here: Home / Archives for General

General

A quote from Holmes

by Bryan Strawser · Apr 26, 2003

Not sure that I agree with my distinguished fellow American…

Oliver Wendell Holmes. “Don’t flatter yourself that friendship authorizes you to say disagreeable things to your intimates. The nearer you come into relation with a person, the more necessary do tact and courtesy become. Except in cases of necessity, which are rare, leave your friend to learn unpleasant things from his enemies; they are ready enough to tell them.” [Motivational Quotes of the Day]

Filed Under: General

Indeed!

by Bryan Strawser · Apr 24, 2003


QOTD. Victor Hugo: “An invasion of armies can be resisted, but not an idea whose time has come.” [Adam Curry: Adam Curry’s Weblog]

Filed Under: General

Caffeine

by Bryan Strawser · Apr 23, 2003

Yes, indeed, it’s possible to drink too much caffeine. I am feeling a little buzzy.

Filed Under: General

Well now…

by Bryan Strawser · Apr 22, 2003

Week ahead: Server sound-off. The tech focus is on servers this week, as Microsoft finally releases its oft-delayed and renamed Windows Server 2003. Also, earnings action continues. [CNET News.com]

Filed Under: General

Grumble Grumble

by Bryan Strawser · Apr 21, 2003

So Nicole has a cable modem, but it turns out that you need to only use that Mac address..

No problem, I think. I’ll just clone over the Mac address on the Powerbook and goto town.

Nope, not that easy. You can’t do that without patching the kernel.

Grumble grumble.

So i’m contemplating just buying an Airport Base Station tomorrow and being done with it. Hmm.. We’ll see…

Filed Under: General

So Who Do We Fight Next?

by Bryan Strawser · Apr 19, 2003

Worth Reading: So Who Do We Fight Next ?.

Very interesting.  Its not clear to me that he’s wrong at all:



Not to jump the gun, so to speak, but our campaign to stabilize the Middle East via forcible regime change is not certain to stop at Baghdad. Instead, we may be on to Damascus, or Tehran, or even Riyadh.

If the United States is fighting a long war against radical Islamism (we are), and if a key to our strategy in that war is to eliminate regimes that we say may support terrorism (it is), and as we have already shown that we’ll fight without United Nations approval, then more fighting seems almost inevitable.  More…

[The FuzzyBlog!]

Filed Under: General

Keeping Your Server From Running

by Bryan Strawser · Apr 19, 2003

Keeping Your Server From Running Out of Disc Space.

Keeping Your Server From Running Out of Disc Space


Not too long ago, I got a panicked IM from someone I know in Blogspace.  “Scott my server won’t let me log in to Movable Type.  Can you help me?”  He shot me a root password and I started reviewing the logs, checking for DB errors, etc.  Then either he or I thought of “does it have free disc space”?  A quick “df -h” told us /dev/hda1/ was at 100%.  That’s bad.  So we cleaned up some stuff and I thought he might benefit from some code I wrote a while back.  What it does is once per day send me a report via email like this:

Filesystem            Size  Used Avail Use% Mounted on
/dev/hda3 18G 17G 561M 97% /
/dev/hda1 23M 4.1M 17M 19% /boot
none 250M 0 250M 0% /dev/shm
10.225.183.68:/ 36G 23G 11G 67% /mnt/10.225.183.68


Once a word has been allowed to escape, it cannot be recalled.
— Quintus Horatius Flaccus (Horace)

The key thing here isn’t the code.  That’s pretty damn simple.  The big deal is that I made it interesting by appending the results of the standard Unix tool fortune to it.  Here’s another example:

Filesystem            Size  Used Avail Use% Mounted on
/dev/hda3 18G 17G 561M 97% /
/dev/hda1 23M 4.1M 17M 19% /boot
none 250M 0 250M 0% /dev/shm
10.225.183.68:/ 36G 23G 11G 67% /mnt/10.225.183.68


If you would understand your own age, read the works of fiction produced
in it. People in disguise speak freely.

We all get way to many automated things via email and if you at least make them interesting then you might bother to read them. 


Here’s the php code.  There are lots of ways to make it better but I just dashed it off.  Perhaps it will be useful. 


Note: The real lesson here is that more developers need to start taking user psychology into account.  I’ve had boring sysadmin reports before and I used to generally just delete them.  Now I actually read them since I never know what might be in them.  If I had been a little bit smarter, I would have varied the fortune routine to sometimes give 2 fortunes or 5 or maybe insert a random picture from the net. 

[The FuzzyBlog!]

Filed Under: General

« Previous Page
Next Page »

Copyright © 2025 · No Sidebar Pro on Genesis Framework · WordPress · Log in