Lab 1: El internet antes de la web

1. En Zork, ¿qué hay al subir las gradas dentro de la casa? (50 puntos)

.zork
ZORK

Welcome to ZORK.
Release 13 / Serial number 040826 / Inform v6.14 Library 6/7
West of House
This is an open field west of a white house, with a boarded front door.
There is a small mailbox here.
A rubber mat saying 'Welcome to Zork!' lies by the door.

>GO NORTH
North of House
You are facing the north side of a white house.  There is no door here, and all the windows are barred.

>GO EAST
Behind House
You are behind the white house.  In one corner of the house there is a small window which is slightly ajar.

>LOOK
Behind House
You are behind the white house.  In one corner of the house there is a small window which is slightly ajar.

>OPEN WINDOW
With great effort, you open the window far enough to allow entry.

>ENTER WINDOW
Kitchen
You are in the kitchen of the white house.  A table seems to have been used recently for the preparation of food.  A passage leads to the west and a dark staircase can be seen
leading upward.  To the east is a small window which is open.
On the table is an elongated brown sack, smelling of hot peppers.
A bottle is sitting on the table.
The glass bottle contains:
 A quantity of water

>GO WEST
Living Room
You are in the living room.  There is a door to the east, a wooden door with strange gothic lettering to the west, which appears to be nailed shut, and a large oriental rug in
the center of the room.
There is a trophy case here.
A battery-powered brass lantern is on the trophy case.
There is an issue of US NEWS & DUNGEON REPORT dated 08/26/04 here.
On hooks above the mantelpiece hangs an elvish sword of great antiquity.

>TAKE LANTERN
Taken.

>TURN ON LANTERN
The lamp is now on.

>GO EAST
Kitchen
On the table is an elongated brown sack, smelling of hot peppers.
A bottle is sitting on the table.
The glass bottle contains:
 A quantity of water

>GO UP
Attic
This is the attic. The only exit is stairs that lead down.
There is a square brick here which feels like clay.
A large coil of rope is lying in the corner.
On a table is a nasty-looking knife.
  

Lo que hay al subir las gradas es un ladrillo cuadrado de arcilla, una gran bobina de cuerda en la esquina, y un cuchillo que se ve peligroso.

2. Escriban su nombre en ASCII (ascii art, no decimal) (5 puntos)

.figlet Kevin Villagran
  _  __                 _            __     __  _   _   _                                        
 | |/ /   ___  __   __ (_)  _ __     \ \   / / (_) | | | |   __ _    __ _   _ __    __ _   _ __  
 | ' /   / _ \ \ \ / / | | | '_ \     \ \ / /  | | | | | |  / _` |  / _` | | '__|  / _` | | '_ \ 
 | . \  |  __/  \ V /  | | | | | |     \ V /   | | | | | | | (_| | | (_| | | |    | (_| | | | | |
 |_|\_\  \___|   \_/   |_| |_| |_|      \_/    |_| |_| |_|  \__,_|  \__, | |_|     \__,_| |_| |_|
                                                                    |___/ 
  

3. ¿Cuál es el output de éste programa de Brainf*ck? (20 puntos)

.bf ++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
[bf] Executing as Brainfuck code...
Hello World!
  

4. ¿Cómo pide auxilio una vaca paranoica? (10 puntos)

.cowsay 
AYUDENME POR LA GRAN DIABLA, POR FAVOR AYUDENME EL SIGUIENTE EN MORIR SERE YO POR LA GRAN CHUCHA, SAQUENME DE AQUI YA YA POR FAVOR YA
 _______________________________________________________________________________________________________________________________________ 
< AYUDENME POR LA GRAN DIABLA, POR FAVOR AYUDENME EL SIGUIENTE EN MORIR SERE YO POR LA GRAN CHUCHA, SAQUENME DE AQUI YA YA POR FAVOR YA >
 --------------------------------------------------------------------------------------------------------------------------------------- 
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
  

5. ¿Qué respuesta les dio la psicoterapeuta a la pregunta "what is life?" (10 puntos)

.eliza
HELLO, I AM ELIZA.

HELLO

HI. WHAT SEEMS TO BE YOUR PROBLEM?

WHAT IS LIFE?

WHAT ANSWER WOULD PLEASE YOU MOST?

SOMETHING THAT MAKES ME WANT TO CONTINUE WITH MY LIFE

WHAT DIFFERENCE WOULD IT MAKE IF WE TRUSTED EACH OTHER FULLY?

YOU TELL ME

WE WERE DISCUSSING YOU -- NOT ME.

HOW AGGRESSIVE

DOES THAT QUESTION INTEREST YOU?

WHICH ONE?

DO YOU WISH WE COULD SHAKE HANDS?

THAT WOULD BE NICE

BEING TERSE IS ONE WAY TO MAKE ME NERVOUS.

OK

HOW EXACTLY CAN I HELP YOU?

NO MORE

TRY RELAXING A BIT -- I REALLY CAN'T HURT YOU.

YES YOU DID

PLEASE TELL ME MORE ABOUT THIS.

YOU HATE ME

YOU'RE NOT REALLY TALKING ABOUT ME -- ARE YOU?

I AM

I DONT THINK YOU REALLY TRUST ME.

I DONT

WHAT WOULD YOU LIKE ME TO SAY IN RESPONSE TO THAT?

NOTHING

ARE YOU PREPARED TO ELABORATE?

NO

WHY 'NO'?

I DONT WANT TO
  

6. Coloquen un ejemplo de un fnord. (5 puntos)

.fnord
The Legion of Doom is imitated by Tel Aviv for the explosive blueprint.
  

7. En star wars (ascii) ¿qué carácter se usa para formar el pelo de Leia? (10 puntos)

     ,===                                                   
    (@o o@ 
El @ se usa.

8. En el emulador de apple, corran el software appleteach1 y luego el programa 34, corran todo el test, cuál fue su resultado? (20 puntos)

MY PROFILE RANKING OF YOU INDICATES:   
                                        
                                                             
         FIRST AND FOREMOST...          
                                        
   YOU HAVE SEXUAL INCLINATIONS         


NEXT...                        
                                        
   YOU TAKE ADVANTAGE OF ANY OPPORTUNITY

THIRDLY...                     
                                        
   YOU THINK THINGS OUT INTELLIGENTLY 

NEXT TO LAST...                
                                        
   YOU ARE RIGHTEOUS 

LASTLY...                      
                                        
   YOU ARE A LOVING PERSON  

 SO NOW YOU KNOW...               
                                        
 (BUT I'M NO PSYCHOLOGIST...)  
  

9. (10 puntos) Busquen en usenet y escojan algún post interesante

.usenet

news> read comp.sys.amiga
From: ucbvax!mark
Subject: network name change is in effect
Date: Tue May 12 12:39:01 1981
Newsgroups: net.general


I have renamed all the arpanet newsgroups from NET.whatever to fa.whatever.
This includes arpa-bboard, info-cpm, sf-lovers, human-nets, info-terms,
info-micro, arms-d, energy, unix-wizards, teletext, and home-sat.

If you are a subscriber to one or more of the above, you should use
netnews -s to change your subscription from, for example NET.human-nets
to fa.human-nets.

If you are a system administrator for netnews and you have not already
fixed your .sys file to know about the new names, you should do so
at once, or risk losing news.

        Mark


APPENDIX

The posts in the archive labeled b) above follow.  Yes, they're still
available in at least two other places; but with the uncertain status
of the early posts in the A-News Archive, I can't help thinking this
is a case of the more the merrier; and anyway, these help document
some of what I say above.

news.articles
>From jte Sat Apr 26 22:02:50 1980
at-bugs             : NET.general
"at" cannot schedule execution on March 1 during leap years.
        Fix: />59/s//>=59/

"at" cannot schedule an event during the following year
if requested by month and date.
        Fix: Unknown

If the shell script produced by "at" includes the assignment
of exported variables with special characters (e.g. $IFS)
the script can fail.
        Fix: A fairly good fix is
        /fprintf(file, "%s.n", .ep++);/c
                ++ix;
                fprintf(file, "%.*s'%s'\n", ix-*ep, *ep, ix);
                *ep++;
        .
        A better fix would scan *ep to take care of single
qoute marks in a shell variable.

>From jte Mon Apr 28 23:16:57 1980
ac-bugs             : NET.general
"ac" as distributed with V7 has several problems.
1) General terminal names are not supported. All terminals
   except the console must be named "ttynn". This causes
   serious accounting problems as logins on all other terminals
   are mapped into the console.
2) Ac looks for "}" to indicate a new date instead of the
   correct "{".
3) "Midnight" (-d option) is not always computed correctly.
4) Diagnostic messages are incomplete.

        Duke has rewritten ac and fixed these problems.
The new version is available from "duke!~uucp/duke/cmd/ac.c".

>From swd Sun May  4 20:47:16 1980
look bugs           : NET.general
look(1) expects /usr/dict/words to be sorted with -d and -f
  options.  As distributed (on version 7) the wordlist is
  not correctly sorted.  As a result, "look ba" yields nothing.
Fix:    sort -d -f /usr/dict/words -o /usr/dict/words

>From research!dmr Tue May 13 03:27:25 1980
Floating-point bug in V7 Unix: NET.general
J. W. Stevenson of Vrije Universiteit in Amsterdam has
discovered and diagnosed a most interesting bug in
V7 Unix.  The problem is that the floating-point registers and
status are sometimes not saved across memory expansion via
sbreak() or stack growth or (less importantly) forks.
The problem only occurs when a swap is needed to
accomplish the expansion.

What happens is that the swap output IO is begun,
and then the registers are saved when the process
calls swtch() from sleep().
It is possible for the image to be written out before
the saving of the registers.

For reasons I do not fully understand situations can
occur in which the bug manifests itself consistently.
It seems to me that the register-saving should be finished
within a few hundred microseconds at most after initiation of IO
while the actual transfer (with ordinary moving-head disks)
will not begin for several milliseconds at least.
Nevertheless we have demonstrated the bug quite consistently;
by the usual sort of coincidence,
one of our machines began showing floating-point problems
the very same week that Stevenson's letter arrived.
(If the controller prefetches a significant amount of
data or if the disk is very fast then the consistency is not
surprising.)

At any rate, as suggested by Stevenson, the problem can be
fixed by adding the following code

        if (u.u_fpsaved == 0) {
                savfp(&u.u_fps);
                u.u_fpsaved = 1;
        }

to the following places in sys/slp.c:

before original line 507, "a2 = malloc(coremap, n);", in newproc();

and, after original line 564, "if(a2 == NULL) {", in expand().

>From vax135!ucbvax!mark Tue May 27 23:39:00 1980
uux bug             : NET.v7bugs
A bug in uux prevents the - option from working with binary files.
To fix it, in uux.c, search for "fputs".  (It's in an if (pipein) {.)
replace the fgets/fputs loop by
                while ((c = getc(stdin)) != EOF)
                        putc(c, fpd);
and declare c somewhere to be an int.  (I put the line
                register int c;
right after the if (pipein).)

Fixing this bug will allow the new uusend program, which will be released
shortly, to work, allowing the transfer of binary files across indirect
uucp links.

>From unc!smb Thu May 29 19:44:57 1980
at bug              : NET.general
The 'at' command insists on creating the spool file in mode 644, regardless
of your umask setting.  Thus one is unable to create confidential requests.

>From swd Thu Jun 26 10:58:16 1980
uucp bug            : NET.general
In distributed v7 uucp, if the USERFILE grows
to over 15 lines, uucico will die.
Fix: in chkpth.c chg line 14 from
        struct userpath Upt[15];
to
        struct userpath Upt[MAXUSERS];
As distributed, MAXUSERS is 20.  Chkpth will check
and complain if USERFILE has more lines than MAXUSERS.

>From swd Thu Jul 10 10:42:51 1980
mkconf bug          : NET.v7bugs
Some time ago a bug was reported in scanf relating to
scanning the format string "%d%c".  (This bug is fixed
in the duke version of stdio.)
It seems that mkconf.c REQUIRES this bug in order to work.
Thus we suggest the following fix to mkconf.c:

diff mkconf.c.good mkconf.c.original
107c107
<       "       trap; br7+10.           / 11/70 parity\n",
>       "       trap; br7+7.            / 11/70 parity\n",
739,740d738
<       if (n == 0)
<               n = sscanf(line, "%s%s%ld", keyw, dev, &num);

>From sid!cf Thu Jul 10 22:33:51 1980
Unix alive on P-E 3240: NET.general
Wollongong Unix has just been installed on a Perkin Elmer 3240
at the University of Melbourne.  It is alive and well running
two users.  Those tired of VAX delivery times or Unibus Adapter
troubles can take heart.

More info later.

>From vax135!ucbvax!cory:optvax:horton Fri Jul 11 01:11:04 1980
ucbopt lives        : NET.general
The optvax at UCB, on the Berknet, has been added to the news network.
This vax is a private vax with a few research projects going on on it.
It is connected off the ucbcory machine, corresponding to the
physical configuration of the Berknet.
        Mark Horton

>From trt Wed Aug 13 09:48:33 1980
col                 : NET.v7bugs
The buffer-flush bug in col(1) that was mentioned in previous news
is due to using an automatic (local) variable for buffering stdout:
        char fbuff[BUFSIZ];
should be changed to
        static char fbuff[BUFSIZ];
(exit() also works since main() will not return before flushing.)
Col(1) is just one of several V7 programs with this flaw.

In the Duke version of stdio one can bypass the problem with
        setbuf(stdout, SYSBUF);
where SYSBUF is a flag indicating buffering is desired.

>From vax135!ucbvax!cory:optvax:jimbo Mon Sep 29 20:40:00 1980
Spice & Splice mail aliases: NET.general
We are creating mail aliases for distribution of occasional messages of
interest and reporting of bugs for both the Spice and Splice circuit
simulation programs.  This is not really for user consulting but to
make it easier to report bugs or find out what has been fixed already.
Interested parties who would like to put a name on one or both should
send a note to:

        esvax.spice@berkeley    (over ARPA-Net)
        ucbopt!spice            (over "uucp")
or
        esvax.splice@berkeley   (over ARPA-Net)
        ucbopt!splice           (over "uucp")

These aliases should be used for all incoming messages.

        Jim

>From decvax!shannon Tue Nov 11 17:26:58 1980
DEC on Usenet       : NET.general

DEC now has a Unix system on the Usenet uucp network.
Anyone with questions about or problems with DEC hardware
and it's relationship (interaction) with Unix, feel free
to contact us.  We are members of the Telecommunications
Industry Group (TIG or Telco) of DEC and are actively
involved with Unix on current and new DEC hardware.

Currently, we are routing all Usenet traffic through duke.
If necessary or desirable, we could poll other systems as
well.  For now, mail duke!decvax!person.  Our network
names, etc. are below, feel free to contact us.

decvax!shannon  - Bill Shannon (formerly of Case Western Reserve Univ.)
decvax!aps      - Armando Stettner
  

10. Traduzcan la siguiente frase a clave morse: (10 puntos)

.morse
message? ye shall be as gods
-.-- .  ... .... .- .-.. .-..  -... .  .- ...  --. --- -.. ...