473,396 Members | 1,827 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Cookie Monster

Does anyone know the code for the cookie monster app? It is a little
app that when you start it up it says "I want a cookie" and if you
answer anything but "cookie" it asks you agian. If you answer "cookie"
it goes away. It was on the movie "Hackers" i belive. I also saw it
in a learning python book but can't remember which one. If someone
could please post the code for it on this mailing list. Thanks a
lot!!!

Kevin From Not-So-Sunny California
Think Diffrent!

Jul 18 '05 #1
6 2217
Patrick Zittle wrote:
Does anyone know the code for the cookie monster app? It is a little
app that when you start it up it says "I want a cookie" and if you
answer anything but "cookie" it asks you agian. If you answer "cookie"
it goes away. It was on the movie "Hackers" i belive. I also saw it in
a learning python book but can't remember which one. If someone could
please post the code for it on this mailing list. Thanks a lot!!!


You mean this?

while raw_input('I want a cookie. ') != 'cookie':
pass

-Peter
Jul 18 '05 #2
hey, shall we start a sourceforge project for this?

;)
"Peter Hansen" <pe***@engcorp.com> wrote in message
news:l7********************@powergate.ca...
Patrick Zittle wrote:
Does anyone know the code for the cookie monster app? It is a little
app that when you start it up it says "I want a cookie" and if you
answer anything but "cookie" it asks you agian. If you answer "cookie"
it goes away. It was on the movie "Hackers" i belive. I also saw it in
a learning python book but can't remember which one. If someone could
please post the code for it on this mailing list. Thanks a lot!!!


You mean this?

while raw_input('I want a cookie. ') != 'cookie':
pass

-Peter

Jul 18 '05 #3
On Wednesday 28 July 2004 08:32, Guyon Morée wrote:
hey, shall we start a sourceforge project for this?

;)
"Peter Hansen" <pe***@engcorp.com> wrote in message
news:l7********************@powergate.ca...
Patrick Zittle wrote:
> Does anyone know the code for the cookie monster app? It is a
> little app that when you start it up it says "I want a cookie"
> and if you answer anything but "cookie" it asks you agian. If
> you answer "cookie" it goes away. It was on the movie "Hackers"
> i belive. I also saw it in a learning python book but can't
> remember which one. If someone could please post the code for
> it on this mailing list. Thanks a lot!!!


You mean this?

while raw_input('I want a cookie. ') != 'cookie':
pass

-Peter


Chuckle... This thing is approaching voting age by now. I remember
it was available for the amiga back in the late 80's-90's time frame.
That one was written in arexx IIRC. And ISTR that we had one written
in Basic09 for the tRS-80 Color Computer running os9 in the mid 80's.
I think its like the locusts, with a somewhat faster lifecycle. :-)
--
Cheers, Gene
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
99.23% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com attorneys please note, additions to this message
by Gene Heskett are:
Copyright 2004 by Maurice Eugene Heskett, all rights reserved.
Jul 18 '05 #4
Guyon Morée wrote:
"Peter Hansen" <pe***@engcorp.com> wrote:
Patrick Zittle wrote:
Does anyone know the code for the cookie monster app? It is a little
app that when you start it up it says "I want a cookie" and if you
answer anything but "cookie" it asks you agian. If you answer "cookie"
it goes away. It was on the movie "Hackers" i belive. ...
while raw_input('I want a cookie. ') != 'cookie':
pass

hey, shall we start a sourceforge project for this?

;)


Knowing SourceForge, there are almost certainly three such
projects already begun, none with released code.

See also http://www.multicians.org/cookie.html for background,
which points out that this has nothing to do with the Cookie
Monster of Sesame Street fame, but instead was inspired by a
cereal commercial in the 60s, featuring an annoying cartoon bear.

-Peter
Jul 18 '05 #5
Gene Heskett wrote:
Chuckle... This thing is approaching voting age by now. I remember
it was available for the amiga back in the late 80's-90's time frame.
That one was written in arexx IIRC. And ISTR that we had one written
in Basic09 for the tRS-80 Color Computer running os9 in the mid 80's.
I think its like the locusts, with a somewhat faster lifecycle. :-)


The reference I just sent in another post mentions at the end that
at least one publication has called this the earliest known computer
virus, according to the author of the program (though he doesn't agree).
Jul 18 '05 #6
On Wednesday 28 July 2004 09:15, Peter Hansen wrote:
Gene Heskett wrote:
Chuckle... This thing is approaching voting age by now. I
remember it was available for the amiga back in the late 80's-90's
time frame. That one was written in arexx IIRC. And ISTR that we
had one written in Basic09 for the tRS-80 Color Computer running
os9 in the mid 80's. I think its like the locusts, with a somewhat
faster lifecycle. :-)


The reference I just sent in another post mentions at the end that
at least one publication has called this the earliest known computer
virus, according to the author of the program (though he doesn't
agree).


Chuckle... Yes, I too have seen that description. OTOH, the versions
I've had were all totally benign. Since most viri tend to make one
sick, I don't think this one qualified as anything more than a
playtoy for those with a restricted IQ. All you had to do was type
'cookie' and it went away. You also had to either run it by hand, or
edit it into the startup files, it was not auto-installing like these
vicious winderz things going around today.

Yeah I can call it winderz, or windoze on this property since the only
windows here are made out of clear glass and mounted in sliding
frames in the walls. Or are displayed in X.

BG never had anything of his in this house except the basics that came
with the TRS-80 Color Computer, and that bloody stinking abortion
they had the gaul to call a basic for the amiga. It violated every
programming recommendation ever made for amigados, like using the
upper 8 bits of a 32 bit address for data because the 68000 only had
a 24 bit address bus. I ran it once on a 68000 machine, and managed
to invite a guru meditation within 1 minute. I forthwith deleted it
and bought a copy of SAS/C, and later arexx, followed by rexxplus,
which was a compiler that made standalone code out of your arexx
scripts. I did, with idea help from another amiga user up the road a
few miles, some nice stuff in arexx, like a cron that beats Paul V's,
gui and all, and a home automation system based on the x-10 gadgets,
gui and all, linked to the cron of course.

But time marches on, and as I near the 70th birthday, those creative
juices no longer flow so easily, dammit.
--
Cheers, Gene
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
99.24% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com attorneys please note, additions to this message
by Gene Heskett are:
Copyright 2004 by Maurice Eugene Heskett, all rights reserved.
Jul 18 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Michael Foord | last post by:
I could have titles this question 'Cookie monster' I suppose... but that would have been very cheesy. Anyway, I'm experimenting with the Cookie module. In the absence of needing anything more...
5
by: brettr | last post by:
When I reference document.cookie, there is a long string of key=value; pairs listed. I may have 100 hundred cookies on my hard drive. However, most only have one key=value pair. Does the...
4
by: socialism001 | last post by:
I'm trying to store a value in a cookie but its not working. Can anyone see what I might be doing wrong. Thanks, Chris ~~~~~~~~~~~~~~~~~~ <script language="javascript">...
9
by: Marco Krechting | last post by:
Hi All, I have a page with a list of hyperlinks. I want to save information in a cookie about the fact that I entered an hyperlink or not. When I click one of the hyperlinks I want this stored...
3
by: Wysiwyg | last post by:
After a server created cookie is processed on the client I want it removed, cleared, or expired in the javascript block but have been unable to do this. If I set a cookie value in the server code...
4
by: nico | last post by:
I store the authenticated user in a session cookie. This cookie expires after an hour. Now for some reason sometimes the client browser decides not to send the session cookie information with a new...
3
by: HIK | last post by:
I have an ASP.NET application on a Win2k3 server. The user is directed to form B (with a query string that contains the logon information). Form B refers to Form A which validates the user...
7
by: CoreyWhite | last post by:
You know what I have to say to the giant spaghetti monster? Do you want to know? Do you? Well I'm tired of sucking on your spaghetti and chewing on your fresh meat balls! It isn't only about...
5
by: cbhoem | last post by:
Hi - I am trying my hand at python cookies. I'm confused about a few things though. Do the python cookies get written to a cookies text file? I have simple code below -- I see the cookie in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.