Re: [racket] Web server: Disable timeout?

2012-03-30 Thread Jay McCarthy
There is a parameter called the initial-connection-timeout and you can give it +inf.0 which causes it to be forever in the future. Jay On 3/29/12, Michael W wrote: > So is it possible to disable the timeout on the web server? Or is > this a /very bad idea/? > > Right now I'm constructing my own

Re: [racket] Web server: Disable timeout?

2012-03-30 Thread Michael W
Hm. Thanks for the websockets link. Is it possible to do that with HTTP alone, as a fallback? By COMET, do you mean where the client disconnects and reconnects every so often? That's possible, and practical even, with the existing timeout behavior in the web server. I'm just seeing if it's possibl

Re: [racket] ufo structure problem

2012-03-30 Thread Roelof Wobben
Op 30-3-2012 12:17, Pierpaolo Bernardi schreef: On Fri, Mar 30, 2012 at 11:53, Roelof Wobben wrote: Op 30-3-2012 9:46, Pierpaolo Bernardi schreef: Hello Roelof, On Fri, Mar 30, 2012 at 09:32, Roelof Wobbenwrote: (define (show-ufo ufo) (place-image BLU (ufo-loc u) MTS)) But still I c

[racket] Racket Question

2012-03-30 Thread Danny Yoo
On Friday, March 30, 2012, Brandon T wrote: > Hi i have a question that i could not find an answer to on your site, not > could i find an answer on stack overload. By default, racket prints the > first 25 digits of a irrational fraction. i.e. > > >1/998 > 0.0010020040080160320641282... > > Just t

Re: [racket] Racket Question

2012-03-30 Thread Pierpaolo Bernardi
On Fri, Mar 30, 2012 at 07:03, Brandon T wrote: > Hi i have a question that i could not find an answer to on your site, not > could i find an answer on stack overload. By default, racket prints the > first 25 digits of a irrational fraction. i.e. > >>1/998 > 0.0010020040080160320641282... > > wher

Re: [racket] Racket Question

2012-03-30 Thread Robby Findler
Do you want to see the decimal expansion, or would you be happy with the fractional form? If the former, you can right click on one of the numbers to change the format, and then any numbers produced after that will have the new format. Also, just in case: do you really intend to be using rational

[racket] Racket Question

2012-03-30 Thread Brandon T
Hi i have a question that i could not find an answer to on your site, not could i find an answer on stack overload. By default, racket prints the first 25 digits of a irrational fraction. i.e. >1/9980.0010020040080160320641282... where ones that have more than 25 recurring digits have the ellips

Re: [racket] ufo structure problem

2012-03-30 Thread Roelof Wobben
Op 30-3-2012 9:46, Pierpaolo Bernardi schreef: Hello Roelof, On Fri, Mar 30, 2012 at 09:32, Roelof Wobben wrote: (define (show-ufo ufo) (place-image BLU (ufo-loc u) MTS)) But still I can't get the show-ufo work. Check carefully the name of your variables! Doesn't DrRacket give you an exp

Re: [racket] ufo structure problem

2012-03-30 Thread Pierpaolo Bernardi
Hello Roelof, On Fri, Mar 30, 2012 at 09:32, Roelof Wobben wrote: > (define (show-ufo ufo) >  (place-image BLU (ufo-loc u) MTS)) > > But still I can't get the show-ufo work. Check carefully the name of your variables! Doesn't DrRacket give you an explicative error message in this case? P. __

Re: [racket] ufo structure problem

2012-03-30 Thread Roelof Wobben
Sorry, I forget to give you the chapter and the book. Im talking about this chapter 2.5.2Programming with Structures Which can be found at this url: http://www.ccs.neu.edu/home/matthias/HtDP2e/htdp2e-part1.html#%28part._structure%29 Roelof Op 30-3-2012 9:32, Roelof

[racket] ufo structure problem

2012-03-30 Thread Roelof Wobben
Hello, I try to make the ufo exercise work on this chapter : So I have this : ; visual constants (define MTS (empty-scene 100 100)) (define BLU (place-image (rectangle 25 25 "solid" "blue") 50 50 MTS)) (define-struct velocity (dx dy)) ; A Velocity is a structure: (make-vel Number Number) ; int