Re: [racket-users] appending files

2016-01-25 Thread George Neuner
On 1/26/2016 12:39 AM, Scotty C wrote: here's what i'm doing. i make a large, say 1 gb file with small records and there is some redundancy in the records. i will use a hash to identify duplicates by reading the file back in a record at a time but the file is too large to hash so i split it.

Re: [racket-users] appending files

2016-01-25 Thread Robby Findler
You might want to use copy-port here. Robby On Mon, Jan 25, 2016 at 11:50 PM, Benjamin Greenman wrote: > If you don't mind all the indentation, this one is streaming. > > (define (concat file* destination) > (with-output-to-file destination #:exists 'append >

Re: [racket-users] appending files

2016-01-25 Thread Neil Van Dyke
Scotty C wrote on 01/26/2016 12:39 AM: i know that i can do this in a linux terminal window with the following: cat mytmp*.dat >> myoriginal.dat. i'd like to accomplish this from within the program by shelling out. can't figure it out. other methodologies that are super fast will be

[racket-users] appending files

2016-01-25 Thread Scotty C
here's what i'm doing. i make a large, say 1 gb file with small records and there is some redundancy in the records. i will use a hash to identify duplicates by reading the file back in a record at a time but the file is too large to hash so i split it. the resultant files (10) are about 100 mb

Re: [racket-users] appending files

2016-01-25 Thread Benjamin Greenman
If you don't mind all the indentation, this one is streaming. (define (concat file* destination) (with-output-to-file destination #:exists 'append (lambda () ;; 'cat' each file (for ([f (in-list file*)]) (with-input-from-file f (lambda () (for ([ln

Re: [racket-users] Using Racket server in production?

2016-01-25 Thread Jay McCarthy
I use the Web server in a few different places in production. The ones that get the most traffic are probably things like DrDr and the package server. I think Marc's post has more useful information than I could probably offer. Jay On Sun, Jan 24, 2016 at 2:16 PM, David Storrs

Re: [racket-users] Web server: can't get radio-group formlet to process

2016-01-25 Thread Marc Kaufmann
Done, although since it is my first pull request, let me know if I did it wrong (tried first without forking, which of course was nonsense). I tried to find a way to have the 'id' on radio the same as the 'for' on label, but I couldn't figure out well enough what is going on. Cheers, Marc On

Re: [racket-users] Re: #"HTTP/1.1 500 Okay" ??

2016-01-25 Thread Jay McCarthy
I definitely do not think it is an error, despite it not being traditional. I definitely do not want to change `response/output`, etc to have a complicated default for #:message. However, I did change the uses of #:code in the repository to use the traditional #:message strings. Jay On Sat,

[racket-users] Re: reaching connection pool limit on connection pool with +inf.0 limit?

2016-01-25 Thread Greg Williams
On Saturday, April 25, 2015 at 3:12:20 PM UTC-7, 'John Clements' via users-redirect wrote: > I have a long-running racket server that’s connecting to a MySQL back end. It > has a connection pool wrapped in a virtual connection, created like this: > > ;; create a connection to the database >

[racket-users] Basic Macrology by Ryan Culpepper and Claire Alvis

2016-01-25 Thread Anthony Carrico
Not sure where I ran across this recently: http://rmculpepper.github.io/malr/index.html 'Basic Macrology' is the first part of 'Macros and Languages in Racket' which is apparently a work in progress. I just finished up exercise 18 (a match macro). I wanted to give a shout out to Ryan and