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

2011-02-06 Thread YC
Cool! Interested in releasing a driver for it on planet? Does MysterX work with Mono in Linux/Mac? On Sun, Feb 6, 2011 at 2:36 PM, Greg Hendershott wrote: > P.S. Just roughly, for eample: https://gist.github.com/813783 > > On Sun, Feb 6, 2011 at 5:27 PM, Greg Hendershott > wrote: > >> I'd be v

Re: [racket] Making animations in racket (or, why racket is hard to transition to from scratch)

2011-02-06 Thread Yaron Minsky
On Sun, Feb 6, 2011 at 9:58 PM, Matthias Felleisen wrote: > > On Feb 5, 2011, at 9:55 PM, Yaron Minsky wrote: > > > it should be to build satisfying video games are really worth fixing. > > Yes they are! Any helpful proposals are appreciated and have been acted on > in the past. > Indeed. The Ra

Re: [racket] Making animations in racket (or, why racket is hard to transition to from scratch)

2011-02-06 Thread Matthias Felleisen
On Feb 5, 2011, at 9:55 PM, Yaron Minsky wrote: > it should be to build satisfying video games are really worth fixing. Yes they are! Any helpful proposals are appreciated and have been acted on in the past. (Perhaps I should start playing Scratch and Alice :-) ) > The key thing that I li

Re: [racket] Embedding multiline shell scipts

2011-02-06 Thread Eli Barzilay
6 hours ago, Jens Axel Søgaard wrote: > 2011/2/6 Jukka Tuominen : > > I'm trying to embed multiline shell scripts within a scheme function, but > > I'm not quite sure how to do it. > > Just a quick, ransom tip: Multi line strings can be written > conveniently with "here strings", > > #<

Re: [racket] Embedding multiline shell scipts

2011-02-06 Thread Jukka Tuominen
Hi, having tested the program a bit further I noticed that it still behaves differently than intended in two ways 1) Preferably the inputs could take the same format as if in separate files, for example (define script1 " #!/usr/bin/expect command 1 command 2 command 3 ") (define script2

Re: [racket] Embedding multiline shell scipts

2011-02-06 Thread Eli Barzilay
7 hours ago, Neil Van Dyke wrote: > Once you get into "expect"-like interaction with a process using the > three streams at once, and doing pattern-matching while also > capturing the output, and doing this all efficiently, it's tricky. > [...] Dealing with the three streams and pattern matching o

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

2011-02-06 Thread Greg Hendershott
P.S. Just roughly, for eample: https://gist.github.com/813783 On Sun, Feb 6, 2011 at 5:27 PM, Greg Hendershott wrote: >> I'd be very happy if somebody found an ODBC connector gathering >> dust in the corner. > > I've tried using Racket's mysterx to talk to ADO and it seemed to work OK. > > On Sun

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

2011-02-06 Thread Greg Hendershott
> I'd be very happy if somebody found an ODBC connector gathering > dust in the corner. I've tried using Racket's mysterx to talk to ADO and it seemed to work OK. On Sun, Feb 6, 2011 at 3:48 AM, Stefan Schmiedl wrote: > On Sat, 5 Feb 2011 20:28:27 -0800 > Dave Yrueta wrote: > >> is there anyway

Re: [racket] Embedding multiline shell scipts

2011-02-06 Thread Jukka Tuominen
Great, thanks Thomas! br, jukka > -Original Message- > From: thomas.ch...@googlemail.com [mailto:thomas.ch...@googlemail.com]On > Behalf Of Thomas Chust > Sent: 06 February 2011 22:37 > To: Jukka Tuominen > Cc: users@racket-lang.org > Subject: Re: [racket] Embedding multiline shell scipt

Re: [racket] Embedding multiline shell scipts

2011-02-06 Thread Manfred Lotz
On Sun, 6 Feb 2011 21:37:12 +0100 Thomas Chust wrote: > 2011/2/6 Jukka Tuominen > : > > [...] > > I slightly modified the Manfred's code to capture the output > > [...] > > Hello, > > the code seems somewhat more complicated than necessary to me and it > lacks some cleanup and error handling. I

Re: [racket] Embedding multiline shell scipts

2011-02-06 Thread Thomas Chust
2011/2/6 Jukka Tuominen : > [...] > I slightly modified the Manfred's code to capture the output > [...] Hello, the code seems somewhat more complicated than necessary to me and it lacks some cleanup and error handling. I would suggest to use the available utilities from racket/port to simplify t

Re: [racket] Embedding multiline shell scipts

2011-02-06 Thread Jukka Tuominen
Hi all, I slightly modified the Manfred's code to capture the output (see below). It seems to do the job, but I haven't tried other cases yet or error handling, but it's good to continue from here. Thanks Manfred! Thank you everybody else, as well! I appreciate the shell scripting isn't the opti

Re: [racket] Embedding multiline shell scipts

2011-02-06 Thread Manfred Lotz
On Sun, 6 Feb 2011 18:37:31 +0100 Jens Axel Søgaard wrote: > 2011/2/6 Jukka Tuominen : > > I'm trying to embed multiline shell scripts within a scheme > > function, but I'm not quite sure how to do it. > > Just a quick, ransom tip: Multi line strings can be written > conveniently with "here stri

Re: [racket] Embedding multiline shell scipts

2011-02-06 Thread Neil Van Dyke
Tip: When constructing a shell command line or script programmatically, to be parsed by the shell, you have to be especially careful about quoting and escaping of any values that you plug in. This is a likely place for strange inputs to the construction to break the language, resulting in fail

Re: [racket] Embedding multiline shell scipts

2011-02-06 Thread Jens Axel Søgaard
2011/2/6 Jukka Tuominen : > I'm trying to embed multiline shell scripts within a scheme function, but > I'm not quite sure how to do it. Just a quick, ransom tip: Multi line strings can be written conveniently with "here strings", #<

[racket] WebSocket server dropping connections

2011-02-06 Thread Jakub Piotr Cłapa
I am using the WebSocket server and having problems with connections dropping unexpectedly. I am connecting from Chrome 10 (dev channel). In the connection handler I register callbacks (which get asynchronously called in other threads) and use ws-send! in them. The callback looks like this: #

Re: [racket] Embedding multiline shell scipts

2011-02-06 Thread Manfred Lotz
On Sun, 6 Feb 2011 16:14:42 +0100 Thomas Chust wrote: > 2011/2/6 Manfred Lotz : > > [...] > > I don't know how to merge stdout and stderr in proper sequence. > > [...] > > There is no such thing as proper sequencing of data flowing through > different streams. > > Due to buffering in system lib

Re: [racket] Embedding multiline shell scipts

2011-02-06 Thread Neil Van Dyke
Thomas Chust wrote at 02/06/2011 10:14 AM: 2011/2/6 Manfred Lotz : [...] I don't know how to merge stdout and stderr in proper sequence. [...] There is no such thing as proper sequencing of data flowing through different streams. Due to buffering in system libraries and the operating

Re: [racket] Embedding multiline shell scipts

2011-02-06 Thread Jukka Tuominen
The script itself could be considered as a single block returning a single output at the end. I tried the code, and I think it's almost there. To test it, I just added "ls" at the end of the sample script. It prints the directories and files nicely, but I cannot capture them for further processin

Re: [racket] Embedding multiline shell scipts

2011-02-06 Thread Thomas Chust
2011/2/6 Manfred Lotz : > [...] > I don't know how to merge stdout and stderr in proper sequence. > [...] There is no such thing as proper sequencing of data flowing through different streams. Due to buffering in system libraries and the operating system kernel it is also entirely impossible to r

Re: [racket] Embedding multiline shell scipts

2011-02-06 Thread Manfred Lotz
On Sun, 6 Feb 2011 16:06:19 +0200 "Jukka Tuominen" wrote: > > So, once i have created the script within racket as multiline string, > how do I actually run it within racket without writing or reading any > external files, and capture the output of the script for further > processing (also in rac

Re: [racket] Embedding multiline shell scipts

2011-02-06 Thread Thomas Chust
2011/2/6 Jukka Tuominen : > [...] > One more requirement that I forget to mention is that it should also > be possible to handle "expect" type of "automated conversations". > [...] Hello, if you want I/O redirection, you should, for example, use the procedure process [1] instead of system. > [..

Re: [racket] Embedding multiline shell scipts

2011-02-06 Thread Jukka Tuominen
So, once i have created the script within racket as multiline string, how do I actually run it within racket without writing or reading any external files, and capture the output of the script for further processing (also in racket). In other words, I could write the script into a file and run it

Re: [racket] Embedding multiline shell scipts

2011-02-06 Thread Manfred Lotz
On Sun, 6 Feb 2011 15:12:49 +0200 "Jukka Tuominen" wrote: > > Thanks Manfred and Thomas, > > I'm just about to try these. One more requirement that I forget to > mention is that it should also be possible to handle "expect" type of > "automated conversations". You can pass several independent c

Re: [racket] image.ss: can one make a rotation-invariant middle?

2011-02-06 Thread Robby Findler
(I see you answered this and I just missed the message before sending mine. Sorry for the noise.) Robby On Sun, Feb 6, 2011 at 7:26 AM, Robby Findler wrote: > I've pushed a change that makes place-image/align not insist on the > second image argument having a pinhole. That was too much checking.

Re: [racket] image.ss: can one make a rotation-invariant middle?

2011-02-06 Thread Robby Findler
I've pushed a change that makes place-image/align not insist on the second image argument having a pinhole. That was too much checking. Does that help? Robby On Sat, Feb 5, 2011 at 9:05 PM, Yaron Minsky wrote: > In playing around with image.ss, I've run into the following problem: the > center

Re: [racket] Embedding multiline shell scipts

2011-02-06 Thread Jukka Tuominen
Thanks Manfred and Thomas, I'm just about to try these. One more requirement that I forget to mention is that it should also be possible to handle "expect" type of "automated conversations". You can pass several independent commands with system/output without problem, but I had difficulties in fi

Re: [racket] image.ss: can one make a rotation-invariant middle?

2011-02-06 Thread Stephen Bloch
On Feb 5, 2011, at 11:18 PM, Yaron Minsky wrote: > Sorry for the noise: I think I answered my own question. You basically stick > a pinhole in the image you want to place at its desired center Yes, the "desired center" is sometimes tricky. In particular, what one probably means by the "cente

Re: [racket] Embedding multiline shell scipts

2011-02-06 Thread Thomas Chust
2011/2/6 Jukka Tuominen : > [...] > I'm trying to embed multiline shell scripts within a scheme function, but > I'm not quite sure how to do it. > [...] I just tried it and the procedure system [1] seems to have no problems executing multiline scripts passed to it. Ciao, Thomas [1] http://docs

Re: [racket] Embedding multiline shell scipts

2011-02-06 Thread Manfred Lotz
On Sun, 6 Feb 2011 11:26:40 +0200 "Jukka Tuominen" wrote: > > Hi all, > > I'm trying to embed multiline shell scripts within a scheme function, > but I'm not quite sure how to do it. > > With multiline shell scripts I mean the scripts that are usually > saved as separate files containing for e

[racket] Embedding multiline shell scipts

2011-02-06 Thread Jukka Tuominen
Hi all, I'm trying to embed multiline shell scripts within a scheme function, but I'm not quite sure how to do it. With multiline shell scripts I mean the scripts that are usually saved as separate files containing for example: --- #!/bin/sh while home do ... done --- I want to be able to con

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,