[racket] Whalesong 1.8 released

2011-11-21 Thread Danny Yoo
Hi everyone, This release addresses some bugs: --- Bugs fixed: * appcache manifests did not allow for external network communication. * --compress-javascript didn't work under certain situations in 1.7. * view-up, view-down, view-left, view-right produced bad error messages without trace

Re: [racket] file will not read into the program

2011-11-21 Thread Jakub Hadam
Thank you all for the suggestions, it was indeed the .txt extension. Now I was able to run the program, however the results were not separated, they were all in just one line. But I'm not going to worry about that. Also thank you for suggesting the other resources, but so far I like the HtDP and I

Re: [racket] file will not read into the program

2011-11-21 Thread Stephen Bloch
On Nov 21, 2011, at 3:35 PM, Todd O'Bryan wrote: > This is just a guess, but perhaps Windows has helpfully added a ".txt" > extension (or some other nonsense) to the end of your filename? You > might try looking at the file's properties, just to make sure > something weird isn't going on. Or jus

[racket] Fwd: gui application open without frame?

2011-11-21 Thread Louis-Philippe
thanks, I just also found this... but anyway, I realised the root menu is really only usefull in OSX... won't rely on it... 2011/11/21 Matthew Flatt > You need to install a quit handler via `application-quit-handler'. > The quit handler is invoked by the "Quit" menu item. > > At Mon, 21 Nov 20

Re: [racket] file will not read into the program

2011-11-21 Thread Todd O'Bryan
This is just a guess, but perhaps Windows has helpfully added a ".txt" extension (or some other nonsense) to the end of your filename? You might try looking at the file's properties, just to make sure something weird isn't going on. On another note, as long as your Fahrenheit->Celsius function wor

Re: [racket] gui application open without frame?

2011-11-21 Thread Matthew Flatt
You need to install a quit handler via `application-quit-handler'. The quit handler is invoked by the "Quit" menu item. At Mon, 21 Nov 2011 15:08:37 -0500, Louis-Philippe wrote: > right now, having > (yield (make-semaphore)) > at the end of my program, the application doesn't exit and my root menu

Re: [racket] gui application open without frame?

2011-11-21 Thread Louis-Philippe
right now, having (yield (make-semaphore)) at the end of my program, the application doesn't exit and my root menu-bar stays... but the quit menu doesn't work anymore... should I override it, but with what, or am I missing something? thanks! 2011/11/21 Matthew Flatt > At Mon, 21 Nov 2011 13:4

Re: [racket] gui application open without frame?

2011-11-21 Thread Matthew Flatt
At Mon, 21 Nov 2011 13:40:06 -0500, Louis-Philippe wrote: > I looked around the docs for racket/gui and I can't find how to do > something very basic... how can I leave a racket/gui app opened after all > windows have closed so that the root menu-bar can stay visible? You'll need to add a call to

Re: [racket] formlet-fill

2011-11-21 Thread Jordan Schatz
On Mon, Nov 21, 2011 at 06:32:18AM -0700, Jay McCarthy wrote: > I can imagine implementing something like... > > (define record-formlet > (formlet > ;; Define the input format > ([name (hash-ref this 'name)] > [company (hash-ref this 'company)] >

[racket] gui application open without frame?

2011-11-21 Thread Louis-Philippe
H racket peoples! I looked around the docs for racket/gui and I can't find how to do something very basic... how can I leave a racket/gui app opened after all windows have closed so that the root menu-bar can stay visible? thanks! L-P _ For list

Re: [racket] plot: HOLY MOLEY!

2011-11-21 Thread Neil Toronto
On 11/21/2011 04:36 AM, Marijn wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02-11-11 14:55, Laurent wrote: Which is just absolutely amazing. But then, just on a total whim, I used the mouse to... grab and turn it ?!?? JAW DROPS OPEN HERE. Wow, that is cool! For those who want

[racket] file will not read into the program

2011-11-21 Thread Jakub Hadam
Hello, I'm using DrRacket as an accompanying material for the HtDP book. I'm learning it by myself, not as a part of a schooll assignment. I have a problem with the exercise 2.2.1 - when I run the convert-file program it doesn't want to accept the input file, the error message I get is: > (conve

Re: [racket] Color names in the-color-database

2011-11-21 Thread Stephen Bloch
On Nov 21, 2011, at 8:16 AM, Matthew Flatt wrote: > At Sun, 20 Nov 2011 22:26:57 -0500, Nadeem Abdul Hamid wrote: >> Is there a convenient way to get a list of the color names in >> the-color-database (in racket/draw)? I see the 'colors' hash table >> defined in collects/racket/draw/private/colo

Re: [racket] [plai] consistent output

2011-11-21 Thread Robby Findler
I think the plan is to change pconvert so that it prints as `(foo 1 2)' by default (and then change the teaching languages to bring back the "make" prefixes). Robby On Mon, Nov 21, 2011 at 6:50 AM, Jay McCarthy wrote: > From your email below, Matthew, I get the impression that you think some of

Re: [racket] formlet-fill

2011-11-21 Thread Jay McCarthy
Your version that breaks mainly breaks because you are mutating the record and recomputing the formlet, rather than saving the formlet in the continuation for both the display and the processing. As far as what you'd like to write, I think that's a good start, but there's a few problems. 1) A lin

Re: [racket] Color names in the-color-database

2011-11-21 Thread Matthew Flatt
At Sun, 20 Nov 2011 22:26:57 -0500, Nadeem Abdul Hamid wrote: > Is there a convenient way to get a list of the color names in > the-color-database (in racket/draw)? I see the 'colors' hash table > defined in collects/racket/draw/private/color.rkt but don't see any > way to access it to extract the

Re: [racket] [plai] consistent output

2011-11-21 Thread Jay McCarthy
>From your email below, Matthew, I get the impression that you think some of this can't be fixed inside the PLAI language itself, because there's no other option at the Racket level. Is that correct? Jay On Sun, Nov 20, 2011 at 7:48 AM, Matthew Flatt wrote: > At Sun, 20 Nov 2011 09:31:02 -0300,

Re: [racket] plot: HOLY MOLEY!

2011-11-21 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02-11-11 14:55, Laurent wrote: >> >> >> Which is just absolutely amazing. But then, just on a total >> whim, I used the mouse to... grab and turn it ?!?? JAW DROPS >> OPEN HERE. >> > > Wow, that is cool! > > For those who want to try that rig