Here’s a useful tip on how to make bash check the window size between commands.
shopt -s checkwinsize
Here’s a useful tip on how to make bash check the window size between commands.
shopt -s checkwinsize
Lately, my PowerBook has become narcoleptic. It goes to sleep even when it’s plugged in and I’ve been using it actively. Pressing a key usually wakes it up right away but not always.
I asked about this today on a Mac users’ mailing list that we have at work and someone mentioned that this a known problem with a faulty trackpad temperature sensor. The machine thinks it’s overheating so it goes to sleep. I can see evidence of this in my /var/log/system.log
files:
Power Management received emergency overtemp signal. Going to sleep.
The above message appears in my logs 71 times!
Doing a search on this message, it seems that this problem is pretty common.
For a while I’ve been getting this Conduit Manager crash when trying to sync my Treo 650 with my PowerBook. This is really annoying, because the Treo gets stuck in the HotSync (pressing “Cancel” doesn’t work) and I have to do a reset.
If you are a fan of programming with Scheme, then you might like Scsh. Actually the name seems like a bit of a misnomer to me, since:
To give you the flavor of what it looks like, here’s a snippet of awk and the corresponding scsh, which I stole from here:
;;; Copy IN to OUT, prefixing each line with a timestamp, ;;; or, as we say in AWK, ;;; awk '{"date '"'"'+%b %e %T'"'"'" | getline d; ;;; close("date '"'"'+%b %e %T'"'"'"); print d, $0}' ;;; ;;; Quiz: why is the close() necessary? ;;; -Olin ;;; May 1997 (define (add-date in out) (while (not (eof-object? (peek-char in))) (format out "~a ~a\n" (format-date "~b ~d ~H:~M:~S" (date)) ; E.g., "Sep 3 22:43:11" (read-line in))))
Of course the strength of Bourne shell is that it’s on every Unixy machine out there and Scsh is on, well, a few Scheme hackers’ machines.
Steve Yegge, interesting as always:
GNU Nana is a free library providing improved support for assertion checking (as in assert.h) and logging (printf style debugging) in GNU C and C++. It provides support for some of the ideas of Eiffel, VDM, Z and Anna in GNU C/C++.