Showing posts with label meme. Show all posts
Showing posts with label meme. Show all posts

January 5, 2009

Oldest Files Meme

Happy New Year! Brandon Rhodes started this meme, which seemed worth continuing to me.
  1. Run the following script in your home directory. (You might want to use less to read the output.)
  2. Ignore files whose date does not reflect your own activity.
  3. List the oldest files in a blog post and discuss!
#!/usr/bin/env python
"""Print last-modified times of files beneath '.', oldest first."""
import os, os.path, time
paths = ( os.path.join(b,f) for (b,ds,fs) in os.walk('.') for f in fs )
for mtime, path in sorted( (os.lstat(p).st_mtime, p) for p in paths ):
print time.strftime("%Y-%m-%d", time.localtime(mtime)), path
OK, omitting some font files I bought from Adobe, here are the results:
1988-02-12 ./tools/doc/classify.1
1988-02-12 ./tools/doc/getmail.1
1988-02-12 ./tools/doc/mailio.3l
1991-10-13 ./writing/wdp.rv
1992-08-10 ./chum/SCCS/s.sch.trm
The first three are manual pages for Icon programs that I wrote to handle email folders. classify filtered a mail file, ordering its messages by subject line; getmail extracted messages by number; and mailio was a primitive library used by the other utilities. Man, 21 years ago! Just in case you want to read the ancient manual pages I've linked each file name to its man2html output.

wdp.rv is a review I wrote, probably for the Sun UK User Group magazine, of the Island Software Write, Draw and Paint tools. I've been a writer or sorts all my life, and involved with user groups quite a lot, too.

s.sch.trm is the source control master (for the venerable SCCS source code control system that used to come on Sun workstiations) of a termcap file for a Wyse-60 terminal. I suppose I could use CSSC to try and revive it, but I don't know anyone nowadays who uses Wyse-60s. I can't think of any reason why I should have kept that file except for inertia.

I hadn't realised I've been using source code control so long. Although the SCCS files for most things are no longer in evidence I used it a lot at Sun from 1985. Other gems I came across that I'd completely forgotten about include a database publishing utility from 1994 that I used to drive FrameMaker from various databases, and a system that would merge the alias files from a bunch of UUCP sites to allow the use of simple email aliases rather than the bang-ridden paths that preceded the domain name system.

An interesting exercise in nostalgia. I think I'll allow them to live a bit longer.

November 12, 2008

Phrase From Nearest Book

Well, here's a turn-up. I spotted this meme on Grig Georghiu's blog.
  • Grab the nearest book.
  • Open it to page 56.
  • Find the fifth sentence.
  • Post the text of the sentence in your journal along with these instructions.
  • Don’t dig for your favorite book, the cool book, or the intellectual one: pick the CLOSEST.
As luck would have it I am on a trip to San Diego and the only book I have with me is Rapture for the Geeks by Richard Dooling. [Disclaimer: Richard was kind enough to send me this book in return for a programming favor I did him some time ago]. By the most amazing coincidence, when I examine the bookmark I placed to make a telephone call I see I am currently reading page 56! Here's the fifth sentence:
If he is gay, man needs man; otherwise, man needs woman.
This doesn't actually represent the compelling nature of Dooling's prose particularly well. For that I like the next two sentences rather better:
Not photos or Web clips or blog entries or text messages or e-mails or even video clips taken of or sent by woman. Man needs woman in the flesh, in meatspace, where he-meat meets she-meat to beget meatlets.
Anyway, it will be interesting to see what others come up with.