Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Javascript One-Line Ascii Animation Hack

2 views
Skip to first unread message

Kirk Is

unread,
May 22, 2002, 11:03:38 AM5/22/02
to
ObHack
Fun with button captions and Javascript:
http://kisrael.com/viewblog.cgi?date=2002.05.22

breaks in some Mac browsers, alas. (I don't think it's
the javascript so much as the rules for white space
and changing button captions)

Not as impressive as the legendary "Pacman in Postscript"
(but then what is?)

Technical note: for all 4 animations, each frame consists
of all the same characters as every other frame, just in a
different order. This makes sure IE doesn't feel the need
to change the size of the buttons.

--
QUOTEBLOG: http://kisrael.com SKEPTIC MORTALITY: http://kisrael.com/mortal
"God or somebody save us from any society founded on Darwinian principles."
--Richard Dawkins

Eli the Bearded

unread,
May 22, 2002, 2:06:20 PM5/22/02
to
In alt.hackers, Kirk Is <kirk...@alienbill.com> wrote:
> Fun with button captions and Javascript:
> http://kisrael.com/viewblog.cgi?date=2002.05.22

Heh.

> breaks in some Mac browsers, alas. (I don't think it's
> the javascript so much as the rules for white space
> and changing button captions)

I dunno. Mac IE is seriously broken WRT javascript.

> Not as impressive as the legendary "Pacman in Postscript"
> (but then what is?)

Ohh. Sounds fun, I've not seen that. I thought the HTTP
server in Postscript was prettry nifty, though. (It kinda
cheats by relying on inetd to do the socket stuff.) Googling
for it hasn't turned it up yet, but I did find out the
plugger/ghostscript works to display postscript in the
browser window.

ObHack:
Picked up a used scanner the other day. Going to try to get it
to work. Today I got past obstacle 1: the odd power cable
connector. It is an HP scanner and is labeled to take anything
from 100v to 250v. The connector was an odd two pin thing not
quite like any I have or could find. I opened the scanner and
looked at it from the inside. I wanted to remove the connector
and just have a power cable go in there, but that was going to
be a fair amount of work I saw. The connector is soldered to
the powersupply board and fits neatly next to the metal panel
in the back. But I noticed that on the side the case was just
plastic. I drilled a hole through the plastic and ran a spare
cord through there. Then I soldered the cord to the back of
of the connector and put everything back together again. Then
I went to hook it up, and noticed that the cable required is
not one of the ones I have lying around (twentyfive pin male
to female; all I have are twentyfive pin male to males or
twentyfive pin male to centronics). So I am delayed.

Not much hack there. Hmm.

ObHack2:
I regularly look at the editorial cartoons at
http://www.ucomics.com/editorials/, but since the links have
all been visited it is easy for me to forget which ones I've
viewed any particular day. So I took a click through counter
that gets a link name and a URL, and some PHP code and made
a page that has links that change everyday, but end up at the
same place:

href="/cgi/click?Link=20020522&URL=http://www.ucomics.com/tedrall/viewtr.htm"

Now the links change color after I visit them, but are reset
the next day.

Elijah
------
spiffier would change the links on the same schedule the comics change...

Kirk Is

unread,
May 22, 2002, 8:41:24 PM5/22/02
to
Eli the Bearded <*@qz.little-neck.ny.us> wrote:
> In alt.hackers, Kirk Is <kirk...@alienbill.com> wrote:
>> Fun with button captions and Javascript:
>> http://kisrael.com/viewblog.cgi?date=2002.05.22
> Heh.

It gets better. Or worse, depeding on your perspective:
here's a preview version of a game based on that principle:
http://alienbill.com/temp/dashteroids.html

Pretty interesting challenge, coming up with games that are playable with
a single click, and on a single horizontal line.

>> Not as impressive as the legendary "Pacman in Postscript"
>> (but then what is?)

> Ohh. Sounds fun, I've not seen that. I thought the HTTP
> server in Postscript was prettry nifty, though. (It kinda

Well, I met legendary in a literal sense. I'm not sure if it
was actually done, or even if I made up the concept myself
(obviously not implemented it!)--I thought maybe it appeared
in some FAQ or discussion on "what's a hack" but Google and
DejaGoogle are turning up blanks.


--
QUOTEBLOG: http://kisrael.com SKEPTIC MORTALITY: http://kisrael.com/mortal

Frickin' god! He's such a goodie good.
--http://www.advancednet.net/objectcity/o.htm

0 new messages