Re: [racket-users] Is this running in DrRacket or as a script?

2020-09-02 Thread Stefan Schmiedl
also uncheck the "main" submodule as I use this one only for the command line.) HTH, Laurent On Wed, Sep 2, 2020 at 8:44 AM Stefan Schmiedl <stefan.schmi...@gmail.com> wrote: Greetings, I find myself coding some more in DrRacket on my local Win10 PC. The finished program is

[racket-users] Is this running in DrRacket or as a script?

2020-09-02 Thread Stefan Schmiedl
Greetings, I find myself coding some more in DrRacket on my local Win10 PC. The finished program is to be run on a remote linux server. I like to keep the code set up for the production environment but to test it locally I need to configure some things differently. Currently I'm doing this manua

Re: [racket-users] Question regarding the function printBoard board

2019-04-23 Thread Stefan Schmiedl
"orenpa11" , 23.04.2019, 20:53: > Hi > I am using the functionprintBoard board (DrRacket Pretty Big) > > (printBoard '((0 0 2 0) (0 0 0 0) (0 0 8 0) (0 0 0 0))) > and the result is > > (0 0 2 0) > (0 0 0 0) > (0 0 8 0) > (0 0 0 0) > "" No, it is not. The *print output* is (0 0 2 0) (

Re: [racket-users] Places and many cores? (File descriptor limit?)

2018-11-04 Thread Stefan Schmiedl
Hello Matt, "Matt Jadud" , 04.11.2018, 22:47: > I won't be able to investigate more until tomorrow or Tuesday, > given my schedule. I might start by asking for a bump in the file descriptor > from the sysadmins. You could also try to _reduce_ one of the limits of the current session a

[racket-users] Searching for packages

2018-08-12 Thread Stefan Schmiedl
"Andrew J" , 12.08.2018, 02:09: > I typically use either threading or composition... > (require threading) > (define (foo x) > (~> x > f g h bar)) "threading" is not included in the default racket installer, so how do I get it? The package manager tells me that there is a "threading"

Re: [racket-users] opinions on YAML as communication tool

2016-10-22 Thread Stefan Schmiedl
'John Clements' via Racket Users (21.10. 16:32): > > > On Oct 21, 2016, at 12:42 PM, Tony Garnock-Jones wrote: > > > > You know how Excel guesses whether things are dates or not and messes > > things up as a consequence? YAML does that too. YAML does not guess, the processor does. Just like "u

Re: [racket-users] opinions on YAML as communication tool

2016-10-21 Thread Stefan Schmiedl
'John Clements' via Racket Users (21.10. 01:21): > I thought hard about scribble and JSON (and xml, yecch), but I think > that YAML and sexps are the two viable candidates, and I’m guessing > that if non-programmers have to edit it, they’ll be less likely to > botch the YAML one. My timesheet and

[racket-users] "Systematic Program Design" by Gregor Kiczales on edx.org

2015-05-20 Thread Stefan Schmiedl
Gregor Kiczales is offering a course on Systematic Program Design (https://www.edx.org/course/systematic-program-design-part-1-core-ubcx-spd1x) starting June 2. It promises to be an extended and improved reincarnation (three! parts) of the coursera offering. Racket (with various Student Languag

Re: [racket] Webserver, SSL, and intermediate certificates

2012-09-21 Thread Stefan Schmiedl
On Fri, 21 Sep 2012 11:24:39 -0600 Jordan Schatz wrote: > > I have an SSL certificate that depends on an intermediate certificate, but I > cant find anything in the documentation on how to tell the web server that my > cert needs the intermediate certificate... Are intermediate certificates > su

Re: [racket] sad user face?

2012-02-19 Thread Stefan Schmiedl
On Sat, 18 Feb 2012 23:31:03 -0500 David Van Horn wrote: > On 2/18/12 9:23 PM, J. Ian Johnson wrote: > > More important than the word choice, the representative character of the > > book is male. Potential female readers will not see this book as for them > > because they don't identify with th

[racket] POP3 client

2012-02-01 Thread Stefan Schmiedl
Greetings, is there a POP3 client module for racket somewhere out there? Thanks, s. -- "This is why Science and Mathematics are still much fun: You discover things that seem impossible to be true and then get to figure out why it's impossible for them not to be." -- Vi Hart: Spiral

Re: [racket] DrRacket needs work

2011-11-13 Thread Stefan Schmiedl
On Sat, 12 Nov 2011 23:11:15 -0500 Sam Tobin-Hochstadt wrote: > We, and in particular Robby, have put a lot of effort into making > DrRacket a useful programming environment. If you have specific ways > of making it better, or even specific things that you found > off-putting or difficult, that

Re: [racket] command-line racket with mred components

2011-03-04 Thread Stefan Schmiedl
On Fri, 4 Mar 2011 14:43:14 -0600 Don Blaheta wrote: > A few days later I tried it again and it was broken. Huh? After a > certain amount of experimentation, I discovered that if I was ssh'ed > into a machine from my office desktop machine, the racket script didn't > work, but if I was ssh'ed i

Re: [racket] tests/eli-tester feedback (Was: Racket unit testing)

2011-02-15 Thread Stefan Schmiedl
On Mon, 14 Feb 2011 17:10:13 -0500 Eli Barzilay wrote: > Not really. Started as a private hack, grew to be a little more > useful, but still not enough to be a proper library. I'm quite content with a single tool, I really don't require a whole library for the kind of tests that my son and I

Re: [racket] tests/eli-tester feedback (Was: Racket unit testing)

2011-02-13 Thread Stefan Schmiedl
On Sun, 13 Feb 2011 12:16:59 -0500 Eli Barzilay wrote: > Not documented, and not distributed by default (since it still lives > as just a file in the `tests' collection). Hidden like an easter egg :-) > The second issue is that currently it catches almost *all* errors, > including syntax erro

Re: [racket] tests/eli-tester feedback (Was: Racket unit testing)

2011-02-13 Thread Stefan Schmiedl
On Sun, 13 Feb 2011 13:35:48 -0500 Stephen Bloch wrote: > > On Feb 13, 2011, at 12:16 PM, Eli Barzilay wrote: > > >>> the `=>' is going to be required > > -or- there's a single expression to test for a non-#f result, and > > you'll use a nested `test' expression for those non-#f things. This >

Re: [racket] Racket unit testing, was Re: date format conversion

2011-02-13 Thread Stefan Schmiedl
On Sun, 13 Feb 2011 07:27:35 -0600 Robby Findler wrote: > On Sun, Feb 13, 2011 at 3:20 AM, Stefan Schmiedl wrote: > > > > Are there specific reasons or situations when using > > > >        (require test-engine/racket-tests) > > > > is "super

[racket] Racket unit testing, was Re: date format conversion

2011-02-13 Thread Stefan Schmiedl
On Sat, 12 Feb 2011 21:40:48 -0500 Neil Van Dyke wrote: > prad wrote at 02/12/2011 08:54 PM: > > my son helped me understand what it was doing after we looked check-expect > > up. so this runs a function for you and checks to see that the result is > > really what you say it is going to be! >

Re: [racket] Support for MS SQL in Racket?

2011-02-06 Thread Stefan Schmiedl
On Sat, 5 Feb 2011 20:28:27 -0800 Dave Yrueta wrote: > is there anyway > to write MS SQL Server scripts in Racket that work in a MS SQL server > environment? Hi Dave, creating SQL scripts is just a matter of building the right string for the job at hand. If nobody comes up with a smarter idea,

Re: [racket] recent server outage

2011-01-26 Thread Stefan Schmiedl
On Wed, 26 Jan 2011 07:12:32 -0600 Robby Findler wrote: > Most of the downtime was > dealing with little changes compared to the old version of the OS and > sorting out selinux permissions. As I went through these pains myself during the last 36 hours, I want to offer a big THANK YOU for doing

Re: [racket] [racket-dev] server availability

2011-01-21 Thread Stefan Schmiedl
Racketeers, how much effort would it be to keep a rsync'ed copy of the files relevant for the end-user on another machine? Then you could make (require (planet...)) a bit smarter to check a list of server (mirrors) for the packages and the impact on racket users would be minimized. s. ___

Re: [racket] racket http server, major GC: -216 bytes collected

2011-01-11 Thread Stefan Schmiedl
On Tue, 11 Jan 2011 16:28:50 -0600 Robby Findler wrote: > I don't quite understand if you're showing us the full output or if > we're seeing something that's abridged somehow (I thought you were > saying that we're seeing only one line for every 20 seconds, but that > would mean that the webserve

Re: [racket] racket http server, major GC: -216 bytes collected

2011-01-11 Thread Stefan Schmiedl
Dear readers, I have some more experimental data on this issue. On Mon, 10 Jan 2011 18:00:35 +0100 Stefan Schmiedl wrote: > On Mon, 10 Jan 2011 06:53:36 -0700 > Matthew Flatt wrote: > > > Meanwhile, I'm not sure why you're seeing GCs at all when the server is >

Re: [racket] Scribble experience

2011-01-10 Thread Stefan Schmiedl
On Mon, 10 Jan 2011 15:20:34 +0100 Jens Axel Søgaard wrote: > Can Internet Explorer 9 show inline pdfs? Hint: Do not equate inline display of non-image objects with modern browsers. Most of my browsers on most of my machines store the pdf and open it using the "canonical" viewer. Actually, I ha

Re: [racket] racket http server, major GC: -216 bytes collected

2011-01-10 Thread Stefan Schmiedl
On Mon, 10 Jan 2011 06:53:36 -0700 Matthew Flatt wrote: > At Sun, 9 Jan 2011 20:19:23 +0100, Stefan Schmiedl wrote: > > Well, that was about two hours ago. The reference GC instance is > > still idling away at 18330232 bytes, just as before, but the web server > > inst

Re: [racket] racket http server, major GC: -216 bytes collected

2011-01-09 Thread Stefan Schmiedl
On Sun, 9 Jan 2011 09:48:12 -0600 Robby Findler wrote: > You can call collect-garbage (from a separate thread with a sleep or > something). As reference, lets run racket with 10 sec GC loop waiting for input: $ racket -W debug -e '(define (loop) (collect-garbage) (sleep 10) (loop)) (thread

Re: [racket] racket http server, major GC: -216 bytes collected

2011-01-09 Thread Stefan Schmiedl
On Sun, 9 Jan 2011 07:20:03 -0700 Jay McCarthy wrote: > FWIW, I have no clue. Good, that means it is interesting :-) Is there a way to increase the major GC frequency? It would make investigating this a lot faster if it occurred every few seconds instead of the default setting that it has now.

[racket] racket http server, major GC: -216 bytes collected

2011-01-08 Thread Stefan Schmiedl
Hi, today I was dabbling around with my servlet study, and switched on debugging output for racket. ste...@g128 racket % racket -W debug -u vacation-loop.rkt GC [minor] at 1484840 bytes; 644984 collected in 1 msec GC [minor] at 2219568 bytes; 650160 collected in 1 msec GC [minor] at 4256

[racket] clean up after stateless servlets

2011-01-03 Thread Stefan Schmiedl
Final question for today: Are stateless servlets supposed to be "forgettable"? Using stateful servlets I can use e.g. redirect/get/forget to render a concluded "session" (relatively) inaccessible. Is there a similar mechanism for stateless servlets that I am just not seeing? Thanks, s. _

Re: [racket] to local or not to local

2011-01-03 Thread Stefan Schmiedl
On Mon, 3 Jan 2011 12:20:51 -0500 Matthias Felleisen wrote: > > On Jan 3, 2011, at 12:18 PM, Stefan Schmiedl wrote: > > > Is there a coding style guideline for racket? A place where > > questions like this one are answered already? > > > I have had five pages fo

Re: [racket] stateless servlets problem

2011-01-03 Thread Stefan Schmiedl
On Mon, 3 Jan 2011 16:14:01 + Noel Welsh wrote: > On Mon, Jan 3, 2011 at 3:13 PM, Stefan Schmiedl wrote: > > Is there a public (readonly) repository somewhere > > that I could tap into? > > https://github.com/plt/racket > Thanks, s. ___

Re: [racket] to local or not to local

2011-01-03 Thread Stefan Schmiedl
On Mon, 3 Jan 2011 11:33:19 -0500 Matthias Felleisen wrote: > There is. An experienced programmer (*) should go with the second form. > > (*) someone who can handle error messages and subtle changes to them. hehe ... sounds like a challenge :-) I'll be a good boy then, and use local from now

[racket] to local or not to local

2011-01-03 Thread Stefan Schmiedl
Hi. In the web-server related documentation, I see the preferred way to create local procedures as (define (start request) (local ((define (response-generator...)) (define (some-handler...))) (do-something-with-these))) Another way to create local procedures is (define

Re: [racket] stateless servlets problem

2011-01-03 Thread Stefan Schmiedl
On Mon, 3 Jan 2011 07:04:23 -0700 Jay McCarthy wrote: > I've dug into this deeper and it turns out that it is an error in the > Web Server. Yay, I've still got it :-) I am good at stumbling upon errors whenever I try something new ... > The code that sets up servlets abuses the fact that the

Re: [racket] stateless servlets problem

2011-01-02 Thread Stefan Schmiedl
On Sun, 2 Jan 2011 19:23:42 +0100 Stefan Schmiedl wrote: For now I'm content with having a web server that can serve > static files, call functions to handle requests or dispatch to different > (kinds of) servlets. Not sure that having such a beast run in the wild > is such a grea

Re: [racket] stateless servlets problem

2011-01-02 Thread Stefan Schmiedl
On Sun, 2 Jan 2011 16:30:09 +0100 Stefan Schmiedl wrote: > I'm especially curious now, why racket complains about my code, > which is quite similar to what dispatch/servlet > (web-server/servlet-dispatch.rkt) > is doing: > > (if stateless? > (make-statele

Re: [racket] stateless servlets problem

2011-01-02 Thread Stefan Schmiedl
On Sun, 2 Jan 2011 07:45:53 -0700 Jay McCarthy wrote: > The make*servlet functions are internal APIs of the Web Server that > create data structures to represent servlets. You don't want to use > those. You want to use #lang racket (for stateful) or #lang web-server > (for stateless) and using se

[racket] stateless servlets problem

2011-01-02 Thread Stefan Schmiedl
Greetings. I can't create a stateless servlet in racket 5.0.2 (gentoo amd64). I _can_ create a stateful servlet with (define (default-lru-manager) (make-threshold-LRU-manager (lambda (request) `(html (head (title "Page Has Expired."))