SitePoint Sponsor |
|
User Tag List
Results 151 to 175 of 219
Thread: PHP Quiz
-
Apr 19, 2003, 10:17 #151
Let's have a question from someone ...
SeanHarry Potter
-- You lived inside my world so softly
-- Protected only by the kindness of your nature
-
Apr 19, 2003, 12:39 #152
- Join Date
- Nov 2001
- Location
- Atlanta, GA, USA
- Posts
- 5,011
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Alright!
Write a php script which (assuming no timeout) would take over one year to complete.
Rule:
You can't use a loop that will obviously always evaluate true. Example:PHP Code:while(1) { doSomething(); } //no good
Using your unpaid time to add free content to SitePoint Pty Ltd's portfolio?
-
Apr 19, 2003, 13:01 #153
- Join Date
- Mar 2001
- Location
- Philadelphia, US
- Posts
- 2,205
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Assuming no timeout
PHP Code:sleep(5616000);
echo 'Done';
TuitionFree — a free library for the self-taught
Anode Says... — Blogging For Your Pleasure
-
Apr 19, 2003, 13:31 #154
- Join Date
- Nov 2001
- Location
- Atlanta, GA, USA
- Posts
- 5,011
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I'll accept that!
I was thinking of something along these lines:
PHP Code:$source = 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa';
preg_match('/a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*[b]/', $source);
// excution time = septillions of years
Your question, anode!Using your unpaid time to add free content to SitePoint Pty Ltd's portfolio?
-
Apr 19, 2003, 13:36 #155
- Join Date
- Mar 2001
- Location
- Philadelphia, US
- Posts
- 2,205
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
OK,
Describe a methodology(no code required, psudocode perhaps to illustrate a point) to program a Chess client in PHP. Difficulty levels are not required; the program is allowed to play to the best of its ability at all times.TuitionFree — a free library for the self-taught
Anode Says... — Blogging For Your Pleasure
-
Apr 19, 2003, 16:39 #156
Originally Posted by anode
-
Apr 19, 2003, 16:50 #157
- Join Date
- Mar 2001
- Location
- Philadelphia, US
- Posts
- 2,205
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I haven't been in an academic environment in about 5 years
TuitionFree — a free library for the self-taught
Anode Says... — Blogging For Your Pleasure
-
Apr 19, 2003, 20:09 #158
- Join Date
- Nov 2001
- Location
- Atlanta, GA, USA
- Posts
- 5,011
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by Egghead
Does this chess application need to be able to have strategy or does it just need to be able to follow the rules of chess?Using your unpaid time to add free content to SitePoint Pty Ltd's portfolio?
-
Apr 19, 2003, 20:14 #159
- Join Date
- Mar 2001
- Location
- Philadelphia, US
- Posts
- 2,205
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Should have probably been clearer on that. Yes it does, that's why I mentioned that it should play to the best of its ability(I'm under the impression most chess clients work "subtractively" as far as difficulty levels, to borrow a sound synthesis term.)
TuitionFree — a free library for the self-taught
Anode Says... — Blogging For Your Pleasure
-
Apr 19, 2003, 20:31 #160
- Join Date
- Nov 2001
- Location
- Atlanta, GA, USA
- Posts
- 5,011
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I had a feeling you meant that.
There's a relatively concise answer for this?
I ask because this seems kind of like something where I could think about it for eight hours and make some progress then walk to the bookstore and find that I have thought my way halfway through chapter one of a chess book, and there are 16 chapters, and each is twice as difficult as the last.Using your unpaid time to add free content to SitePoint Pty Ltd's portfolio?
-
Apr 19, 2003, 20:40 #161
- Join Date
- Mar 2001
- Location
- Philadelphia, US
- Posts
- 2,205
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Well, I guess if you were planning on building a production version
I meant maybe 50-100 words, maybe with a diagram (if I were answering, I'd do a diagram) describing the high-level design of the system.
If you guys think it's too hard wussies, I can give the floor back up.TuitionFree — a free library for the self-taught
Anode Says... — Blogging For Your Pleasure
-
Apr 20, 2003, 19:10 #162
- Join Date
- Aug 2001
- Location
- Livonia, MI, USA
- Posts
- 513
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Heh, maybe I'm a wuss, but there is a minor nitpick in the fact that if a pseudo class and a diagram are all that is necissary then the question is entirely language independent.
Edit: Evil evil typo-creating computer monkeys!!!Last edited by cyngon; Apr 20, 2003 at 19:55.
-
Apr 20, 2003, 19:20 #163
- Join Date
- Nov 2001
- Location
- Atlanta, GA, USA
- Posts
- 5,011
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Maybe the real challenge is to figure out how this could be related to PHP specifically. ;-)
(cyngon: I lease my keyboard from those same monkeys)Last edited by samsm; Apr 21, 2003 at 07:27.
Using your unpaid time to add free content to SitePoint Pty Ltd's portfolio?
-
Apr 21, 2003, 07:06 #164
This is a hell of a question! Wasn't one of the PHP quizzes (can't think of the site, but you get good prizes) similar to this?
SeanHarry Potter
-- You lived inside my world so softly
-- Protected only by the kindness of your nature
-
Apr 21, 2003, 07:41 #165
- Join Date
- Nov 2001
- Location
- Atlanta, GA, USA
- Posts
- 5,011
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Using your unpaid time to add free content to SitePoint Pty Ltd's portfolio?
-
Apr 21, 2003, 07:49 #166
That's the site I was thinking of, but I must have seen the chess question somewhere else
SeanHarry Potter
-- You lived inside my world so softly
-- Protected only by the kindness of your nature
-
Apr 21, 2003, 13:44 #167
- Join Date
- Mar 2001
- Location
- Philadelphia, US
- Posts
- 2,205
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by cyngon
TuitionFree — a free library for the self-taught
Anode Says... — Blogging For Your Pleasure
-
Apr 21, 2003, 16:17 #168
- Join Date
- Apr 2001
- Location
- Canada
- Posts
- 5,458
- Mentioned
- 1 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by samsm
Mike
It's not who I am underneath, but what I do that defines me.
-
May 2, 2003, 03:09 #169
- Join Date
- Feb 2003
- Location
- Norway
- Posts
- 109
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by cyborg from dh
If pigs could fly, the prize of bacon would reach the sky.
www.dosspirit.net - Norwegian reviews of DOS games
-
May 29, 2003, 07:37 #170
- Join Date
- Jun 2001
- Location
- Before These Crowded Streets
- Posts
- 9,446
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Ok, time to revive the thread. I have a non-PHP question but something most of you know a little about.
Apache web server derived its name from:
a) A multi-talented and faceted Native American tribe.
b) lots of patches making it "a patchy server"
c) A development codename that never was changed on stable release
d) Apache is actually an Anglofied german word.
-
May 29, 2003, 07:46 #171
B - at first it was literately 'a patchy server'
SeanHarry Potter
-- You lived inside my world so softly
-- Protected only by the kindness of your nature
-
May 29, 2003, 07:47 #172
- Join Date
- Jun 2001
- Location
- Before These Crowded Streets
- Posts
- 9,446
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Knew I shoukdn't have made it multiple choice.
-
May 29, 2003, 07:57 #173
Without looking, what is the latest version of PHP, not including release candidates?
SeanHarry Potter
-- You lived inside my world so softly
-- Protected only by the kindness of your nature
-
May 29, 2003, 08:00 #174
- Join Date
- Mar 2001
- Location
- Philadelphia, US
- Posts
- 2,205
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
4.3.2 released this morning.
TuitionFree — a free library for the self-taught
Anode Says... — Blogging For Your Pleasure
-
May 29, 2003, 08:02 #175
- Join Date
- Jun 2001
- Location
- Before These Crowded Streets
- Posts
- 9,446
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Was gonna say, but anode beat me.
Bookmarks