Re: [racket-users] fail on http server response not actually a failure?

2015-10-05 Thread George Neuner
On 10/5/2015 11:24 PM, Paolo Giarrusso wrote: It sounded confusing that you could close a connection "too early" after all data was sent. But it makes some sense for AJAX with some sort of persistent connections. Still, no reason for error output to appear — a server has to deal with this, as it

[racket-users] Re: Writing text to a file with correct newlines

2015-10-05 Thread Josh English
On Monday, October 5, 2015 at 2:04:16 AM UTC-7, Paolo Giarrusso wrote: > On Monday, October 5, 2015 at 1:07:31 AM UTC+2, Josh English wrote: > > I am trying to learn Racket by creating a Todo manager based on the > > Todo.txt format by Gina Trapani (http://todotxt.com/) > > > > I also have an And

Re: [racket-users] fail on http server response not actually a failure?

2015-10-05 Thread Paolo Giarrusso
On 6 October 2015 at 03:42, George Neuner wrote: > On 10/5/2015 4:40 PM, Paolo Giarrusso wrote: >> >> On Monday, October 5, 2015 at 10:21:38 PM UTC+2, Neil Van Dyke wrote: >> > 'John Clements' via Racket Users wrote on 10/05/2015 03:26 PM: >> > > is this what I would expect to see if a client ju

Re: [racket-users] 'clear' equivalent in DrRacket

2015-10-05 Thread Paolo Giarrusso
On 6 October 2015 at 01:45, Aman wrote: > > Thanks Laurent and Paolo. When you say (send a-text insert string), how are > you getting a-text ? > What I wanted was not to design a new editor window, but to modify or 'send' > some command to current editor (the default one when we launch DrRacke

Re: [racket-users] fail on http server response not actually a failure?

2015-10-05 Thread George Neuner
On 10/5/2015 4:40 PM, Paolo Giarrusso wrote: On Monday, October 5, 2015 at 10:21:38 PM UTC+2, Neil Van Dyke wrote: > 'John Clements' via Racket Users wrote on 10/05/2015 03:26 PM: > > is this what I would expect to see if a client just gave up and closed the TCP connection before the response

Re: [racket-users] 'clear' equivalent in DrRacket

2015-10-05 Thread Aman
Thanks Laurent and Paolo. When you say (send a-text insert string), how are you getting a-text ? What I wanted was not to design a new editor window, but to modify or 'send' some command to current editor (the default one when we launch DrRacket) to clear some content or scroll down to hide th

Re: [racket-users] Looking for an in-memory databases library to explore data

2015-10-05 Thread Vincent St-Amour
I'm not aware of a complete querying solution, but here are a few pointers that may be useful. - If you store your data as lists, you can go a long way with standard list combinators, such as `map`, `filter` and `fold`. `group-by` (from `racket/list` if you're running from git head, or `unstab

Re: [racket-users] fail on http server response not actually a failure?

2015-10-05 Thread Paolo Giarrusso
On Monday, October 5, 2015 at 10:21:38 PM UTC+2, Neil Van Dyke wrote: > 'John Clements' via Racket Users wrote on 10/05/2015 03:26 PM: > > is this what I would expect to see if a client just gave up and closed > > the TCP connection before the response was written, > > I've seen similar errors

Re: [racket-users] fail on http server response not actually a failure?

2015-10-05 Thread Neil Van Dyke
'John Clements' via Racket Users wrote on 10/05/2015 03:26 PM: is this what I would expect to see if a client just gave up and closed the TCP connection before the response was written, I've seen similar errors logged by people using my SCGI package. I believe you're correct that it almost

Re: [racket-users] syntax write using @-syntax

2015-10-05 Thread Greg Hendershott
> I think you're right. My application is the replacement tool for McFly, and > I want to eliminate the need for distributed packages to need a package > dependency like on `mcfly-runtime`. Maybe you don't need to eliminate that? It would only be a build dependency: A using package's info.rkt wou

[racket-users] fail on http server response not actually a failure?

2015-10-05 Thread 'John Clements' via Racket Users
I have a long-running http server process, and I get a lot of error output that looks like this: fprintf: output port is closed context...: /home/clements/racket/share/pkgs/web-server-lib/web-server/http/response.rkt:52:0: output-response-head33 /home/clements/racket/share/pkgs/web-ser

Re: [racket-users] 'clear' equivalent in DrRacket

2015-10-05 Thread Paolo Giarrusso
On Monday, October 5, 2015 at 10:56:50 AM UTC+2, Laurent Orseau wrote: > I don't think there is anything like this right now, but in case anyone wants > to do that, my first impression is,  that such a command should not > completely erase the previous content but only hide it (by scrolling down

Re: [racket-users] syntax write using @-syntax

2015-10-05 Thread Greg Hendershott
I was hoping you'd chime in, Eli. > > (match stx-or-sepxr > > [(? syntax? stx) (print/at-exp (syntax->datum stx))] > That's a major mistake! Well, syntax->datum usually is. :) But the usual reason why it's a mistake, seemed N/A here, to produce a plain text .scrbl file. Thanks for pointing

Re: [racket-users] crash in nightly build

2015-10-05 Thread Matthew Flatt
At Mon, 5 Oct 2015 08:32:00 -0600, Matthew Flatt wrote: > You could configure with `--enable-strip` That should have been `--disable-strip`. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving email

Re: [racket-users] crash in nightly build

2015-10-05 Thread Matthew Flatt
At Mon, 05 Oct 2015 17:16:34 +0300, Dmitry Pavlov wrote: > I am going to get you a stack trace. > Am I correct that in order to get the stack trace, I have to rebuild > Racket with -G and run it in gdb? Racket builds with `-g` by default, but `make install` uses `strip`. You could configure with `

Re: [racket-users] crash in nightly build

2015-10-05 Thread Dmitry Pavlov
Matthew, Sorry I am a bit late on this. It is good to know that you keep track on crash reports even as vague as mine. Here is an update: -- My crash remains with the nightly build that I installed on Saturday (Oct 3); -- I do not use places; -- I do not use any new advanced macro facilities (

[racket-users] Re: Writing text to a file with correct newlines

2015-10-05 Thread Paolo Giarrusso
On Monday, October 5, 2015 at 11:04:16 AM UTC+2, Paolo Giarrusso wrote: > On Monday, October 5, 2015 at 1:07:31 AM UTC+2, Josh English wrote: > > I am trying to learn Racket by creating a Todo manager based on the > > Todo.txt format by Gina Trapani (http://todotxt.com/) > > > > I also have an An

[racket-users] Re: Writing text to a file with correct newlines

2015-10-05 Thread Paolo Giarrusso
On Monday, October 5, 2015 at 1:07:31 AM UTC+2, Josh English wrote: > I am trying to learn Racket by creating a Todo manager based on the Todo.txt > format by Gina Trapani (http://todotxt.com/) > > I also have an Android tablet that uses a todo.txt application. This > application uses "\n\r" at

Re: [racket-users] 'clear' equivalent in DrRacket

2015-10-05 Thread Laurent
I don't think there is anything like this right now, but in case anyone wants to do that, my first impression is, that such a command should not completely erase the previous content but only hide it (by scrolling down for example). I tried very quickly to do that using `set-position` of `text%` b

Re: [racket-users] DrRacket plugins: getting language of current editor

2015-10-05 Thread Paolo Giarrusso
On Sunday, October 4, 2015 at 9:00:17 PM UTC+2, Robby Findler wrote: > Yes that is how you get it.  > > > But I think that maybe instead you should use the save-port method of the > editor. That's how you get what drr puts into the files it saves. You should > get the metadata and the "only wxm