Awesome Conferences

Random technical tips, thoughts and rants

  1. On a Mac, if you SHIFT-CLICK the green dot on a window it opens it as wide and tall as possible (instead of the application-defined behavior)

  2. Even though "ls -l" displays a files permissions as "-rw-r--r--", you can't use "-rw-r--r--" in a chmod command. This is probably one of the most obvious but overlooked UI inconsistencies in Unix that nobody has fixed after all these years. Instead we force people to learn octal and type 0644. Meanwhile every book on Unix/Linux spends pages explaining octal just for this purpose. Time would have been better spent contributing a patch to chmod.

  3. If a network problem always happens 300 seconds after an event (like a VPN coming up or a machine connecting to the network) the problem is ARP, which has to renew every 300 seconds. Similarly, if it times out after exactly 2 hours, the problem is your routing system which typically expires routes after 2 hours of not hearing them advertised.

  4. Git rocks. I should have converted from SubVersion to Git years ago. Sadly I like the name SubVersion better. I hear Hg / Mercurial is better than Git, but Git had better marketing.

  5. Keep all your Unix "dot files" in sync with (and I'm not just saying that because my boss wrote it).

  6. People that use advanced Python-isms should not complain when I use features that have been in bash forever and, in fact, were in /bin/sh before most of us knew how to read.

  7. Years ago IETF started telling protocol inventors to avoid using broadcasts and use "local multicast" instead because it will help LAN equipment vendors scale to larger and larger LANs. If your LAN network vendor makes equipment that goes south when there is a lot of multicast traffic because it is "slow path'ed" through the CPU, remind them that They're Doing It Wrong.

  8. The best debugging tool in the world is "diff". Save the output /tmp/old. As you edit your code, write the output to /tmp/new then do "diff /tmp/old /tmp/new". When you see the change you want, you know you are done. Alternatively edit /tmp/old to look like the output you want. You've fixed the bug when diff has no output.

  9. Attend your local sysadmin conference. Regional conferences are your most cost effective career accelerator. You will learn technical stuff that will help you retain your job, do your job better, get promoted, or find a new job. Plus, you'll make local friends and contacts that will help you more than your average call to a vendor tech support line. There are some great ones in the Seattle and NJ/NY/Philly area all listed here.

No TrackBacks

TrackBack URL:

8 Comments | Leave a comment

Tom, small point: as you know, `chmod` takes mnemonic args "ugo+/-rwx". Your point remains, of course.

Re: #8, see #4. Save the output to Git :-).

On #2: at least for some versions of chmod, one can use a symbolic method, e.g. chmod u=rw,g=r,o=r filename. This only changes the point about octal, though, not the rest of the stated point.

If you're having wireless problems after a few minutes (defined at the AP), that's usually when key renegotiation happens on a WPA/WPA2 connection. Often an initial AP connection will work but key renewal will fail.

#4: Mg? Do you mean Hg / Mercurial?

Oops! Corrected!

Danielle, true you can use symbolic notation. I guess I should have said that the problem is that the symbolic notation isn't a superset of the "ls -l" format.

[...] remind them that They're Doing It Wrong.

Yes, that's just what I'm going to do, open my mouth to these people who think less of me and my opinion than my cat does.

I asked someone from Dell once (during a F2F lunch) about this sort of thing and the answer was, most people at most companies will think "If you knew what you were talking about, you'd be working here. You don't. So you don't. So shut up."

shift-clickgreen does not make the current window as wide & tall as possible in safari. it makes it as tall as possible and widens it to 1024 pixels if it's not that wide.

I think. :)

I really wish there were a way to maximize height and leave width alone. that's what I usually want.

for terminal, there's this applescript:

Leave a comment