I'm dreaming of a white...

Post Reply
rjversluis
Site Admin
Posts: 42335
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

I'm dreaming of a white...

Post by rjversluis » 24.12.2013, 14:59

@all: if( Christmass == soon ) { Merry Christmass! }

Richard-TX
Posts: 1320
Joined: 10.07.2012, 04:00
Location: Texas, USA
Contact:

Post by Richard-TX » 25.12.2013, 15:50

Merry Christmas to you too Rob.


Here is a little goodie from the "Blast From The Past" Department.
Save the following as xmas.py

Code: Select all

#!/usr/bin/python
import sys
import time
with open("xmas-03.vt") as f:
  while True:
    c = f.read(1)
    if not c:
      break
    sys.stdout.flush()
    sys.stdout.write(c)

.
then execute the following


Code: Select all

wget http://artscene.textfiles.com/vt100/xmas-03.vt
python xmas.py
The reason that the program is needed to read and display the file is that when the data file was written, 9600 baud was fast and everything was modems and dialups. In other words, welcome to 1987.

Richard

Post Reply

Return to “Smalltalk”