Re: Lame Newbie
Article: 7897 of alt.hackers From: elf@ee.ryerson.ca (Luis Fernandes) Newsgroups: alt.hackers Subject: Re: Lame Newbie Date: 28 May 1995 09:48:22 -0400 Organization: Ryerson Polytechnic University Lines: 92 Approved: That's a rather lovely pair of...um, nevermind Message-ID: x0agc7pgwp.fsf@gemini.ee.ryerson.ca NNTP-Posting-Host: gemini.ee.ryerson.ca In-reply-to: steve1@genesis.nred.ma.us's message of 28 May 1995 08:50:09 GMT X-Mailer: VM Version 5.70 (beta) X-Newsreader: (ding) Gnus v0.75 Status: RO
(There's also a java TTT game on the Web (see URL, below)). >>>>> "steve1" == steve belczyk <steve1@genesis.nred.ma.us> writes: > I want to write a Web chess game... Sun is sponsoring a hotjava applet contest (http://java.sun.com); 1st prize is their Voyager SPARCstation ($US 15K). If you have access to Solaris 2.x, then you should seriously consider writing a Chess applet and entering the contest. Netscape is going to license java for their browser; in a little while, java-capable browsers will be the standard and cgi scripts will be a waste of time. ObHack: #!/bin/sh # # atoroot: Set the root-window (usually login) of an X display to # tiled-bitmap of a given string (usually the hostname). # # Author: Nick Colonello, nick@ee.ryerson.ca # (with a *little* help from Luis Fernandes, elf@ee.ryerson.ca) # Finished, Thu Dec 16 18:03:57 EST 1993 after a 2-hr hacking session # # Usage: atoroot <string> # # This program may be used to identify hosts (especially those # configured as X-terminals running off the same host). Use of this # program precludes the need to physically attach identifying labels, # which get grottier with age, to machines . # # NOTES: # This program is normally run by xdm; site-wide use of this program # requires 3 files to be modified(or created): xdm-config, Xsetup_0 and # Xsetup_remote. To test it, just run it from the command-line. # # (Note that the path /usr/X11R5/lib/ in the examples below should be # replaced by the path specific to your site). # # In xdm-config, the resource DisplayManager*setup, is set to point to # scripts that run atoroot as follows: # !Xsetup_remote is the script for remote machines # DisplayManager*setup: /usr/X11R5/lib/X11/xdm/Xsetup_remote # !Xsetup_0 is the script for local displays # DisplayManager._0.setup: /usr/X11R5/lib/X11/xdm/Xsetup_0 # # Xsetup_0: # /usr/local/bin/atoroot `hostname` # #do other things, like run xconsole... # # Xsetup_remote: # #Pass host-name without the display-number # /usr/local/bin/atoroot `echo $DISPLAY | sed 's/:.*$//'` # # BUGS # This has only been tested on Suns. # # Copyright (c) 1993 Nick Colonello # This program is provided AS IS without so much as a hint of any # warranty or support. # TMP1=/tmp/xdmset1.$$ TMP2=/tmp/xdmset2.$$ TMP3=/tmp/xdmset3.$$ L=`echo $1 | wc -c` L=`expr \( $L - 1 \) \* 8` /usr/5bin/banner $1 | sed "s/$/ /" | tr " " "-" | cut -c1-${L} >$TMP1 sed 's/./-/g' <$TMP1 >$TMP2 (paste -d"-" $TMP1 $TMP2 ; paste -d"-" $TMP2 $TMP1 ) | # comment-out the following while-loop for a smaller-looking font effect while read LINE do echo $LINE echo $LINE done | # Un-comment the following line for a bigger-looking font effect #sed -e 's/-/--/g' -e 's/#/##/g' | atobm >$TMP3 xsetroot -bg gray -fg white -bitmap $TMP3 rm -f $TMP1 $TMP2 $TMP3