Re: [racket] Weird Require Syntaxes

2010-09-10 Thread YC
Hopefully I read your message correctly that you are trying to define custom 'require' extensions, which the following could be what you are looking for: http://docs.racket-lang.org/reference/define.html#(mod-path._racket/require-syntax) Caveat - I've never used require-syntax so don't know for c

[racket] Weird Require Syntaxes

2010-09-10 Thread synx
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 In my efforts to create a dynamically loading environment, I'd like to do something like this: - --- #lang racket/base (define-for-syntax db (something)) (define-for-syntax (get-env key) (db-value db key)) (define-syntax env (lambda (form) (sy

Re: [racket] 2htdp/image question

2010-09-10 Thread Nadeem Abdul Hamid
Yes, it looks to me like it works fine now. I used yesterdays' nightly build: version 5.0.1.5--2010-09-09, on Windows XP. --- nadeem On Fri, Sep 10, 2010 at 6:22 PM, Robby Findler wrote: > I believe this has been fixed in the latest GIT version. If someone > has the opportunity and interest to ve

Re: [racket] handin client error retrieving certificate on non-english windows machines

2010-09-10 Thread Eli Barzilay
This looks like a problem of openssl not being able to deal with unicode paths on windows: http://stackoverflow.com/questions/2401059 There's a description of how to solve it, but it looks sounds very painful. On Sep 10, Ryan Golbeck wrote: > I wonder if anyone has had any problems with the h

Re: [racket] Looking for feedback on code style

2010-09-10 Thread Jos Koot
The bug is clear, I think. When a chosen pivot element results into two partitions of which one is empty and the other other one contains all elements left so far, it is obvious that another pivot element must be chosen, or else we obtain the same two partitions, one being empty, the other one cont

Re: [racket] 2htdp/image question

2010-09-10 Thread Robby Findler
I believe this has been fixed in the latest GIT version. If someone has the opportunity and interest to verify that under windows, I would be most grateful. More details can be found here, on the underlying issues (where to draw lines for rectangles): http://pre.racket-lang.org/docs/html/teach

[racket] handin client error retrieving certificate on non-english windows machines

2010-09-10 Thread Ryan Golbeck
I wonder if anyone has had any problems with the handin getting the local SSL certificate on non-English Windows machines. At least two of our students so far are getting errors like: ssl-load-verify-root-certificates!: load failed from: (error:2006D002:BIO routines:BIO_new_file:system lib) Whe

Re: [racket] 2htdp/image question

2010-09-10 Thread Justin Zamora
This is a bug/limitation of the Windows implementation. I filed a bug report against this a few months ago (http://bugs.racket-lang.org/query/?cmd=view&pr=10969). It apparently has something to do with the way 1-pixel lines are drawn and clipped on different platforms. Justin On Fri, Sep 10, 20

[racket] 2htdp/image question

2010-09-10 Thread Mark Engelberg
Why is it that (empty-scene 100 100) produces a white scene with a black border around all four edges, but (place-image (circle 10 'solid 'red) 10 10 (empty-scene 100 100)) produces a scene with a black border only on its top and left edges? (This is in Racket 5.0.1 on Windows) ___

Re: [racket] Looking for feedback on code style

2010-09-10 Thread Jos Koot
(select 3 '(1 1 2 2 3 3 4 4 5 5 6 6 7 7)) with http://programmingpraxis.com/2009/12/11/selection/ runs into an infinite loop. I think shuffling beforehand is not enough. The pivot element must be choosen randomly from the remaining list of numbe

Re: [racket] Literate Programming and Scribble

2010-09-10 Thread Hugh Myers
Time passes regards MathML: Of the major web browsers, recent versions of Gecko browsers (e.g., Firefox and Camino)[5], WebKit browsers (e.g., Chrome and Safari) and the Opera web browser support MathML natively. Opera, since version 9.5, supports MathML for CSS profile,[6][7] but is unable to po

Re: [racket] ODBC Racket

2010-09-10 Thread Ryan Culpepper
SrPersist has not been maintained. The sources are still available in the git repository, but they haven't been updated to new versions of the Racket C API, so they don't compile. There are many database connectivity packages on PLaneT: http://planet.racket-lang.org As far as I know, howeve

Re: [racket] runtime-path + dynamic-require ?

2010-09-10 Thread Laurent
On Fri, Sep 10, 2010 at 19:01, Matthew Flatt wrote: > I've been planning to add something like `define-runtime-module-path' > that does not require the module but that causes all of its > dependencies to be included in an executable. I'll move that up on my > list of things to do. > Excellent! M

Re: [racket] Literate Programming and Scribble

2010-09-10 Thread Karl Winterling
On 9/9/2010 8:31 PM, Eli Barzilay wrote: MathJax is the best solution I've seen so far -- but it's kind of cheating... "If we can't get broad support for renering math, we'll do it ourselves." This makes the result much less appealing as proper support -- like relying on js (probably means tha

Re: [racket] running web app from DrRacket versus command line

2010-09-10 Thread Sam Tobin-Hochstadt
On Fri, Sep 10, 2010 at 2:42 PM, Scott Hickey wrote: > I cloned the sample twitter app from the git repo > http://github.com/jeapostrophe/pltwitter.git and can run the app form > DrRacket v5.0.1. > > If I try to run from the command line using "mzscheme -f main.ss", > nothing happens - no errors o

[racket] running web app from DrRacket versus command line

2010-09-10 Thread Scott Hickey
I cloned the sample twitter app from the git repo http://github.com/jeapostrophe/pltwitter.git and can run the app form DrRacket v5.0.1. If I try to run from the command line using "mzscheme -f main.ss", nothing happens - no errors or warnings - I just get the unix system prompt back. Is there a

Re: [racket] querying for compile-time information

2010-09-10 Thread Danny Yoo
On Thu, Sep 9, 2010 at 5:21 PM, Ryan Culpepper wrote: > One way is a compile-time table. See, for example, the implementation of > typed scheme/racket: > > www.ccs.neu.edu/scheme/pubs/scheme2007-ctf.pdf Thank you all for the help! Ok, I think I've got something usable now; I've put it up on gith

Re: [racket] Looking for feedback on code style

2010-09-10 Thread Deren Dohoda
This format is a pretty good idea. I like how HTDP pushes it from the beginning. But is something like this a good idea? Welcome to DrRacket, version 5.0 [3m]. Language: racket; memory limit: 1024 MB. > (require user/help) > (help foo) No help available. > (help help) help (or (name -> void) (void

Re: [racket] runtime-path + dynamic-require ?

2010-09-10 Thread Matthew Flatt
I've been planning to add something like `define-runtime-module-path' that does not require the module but that causes all of its dependencies to be included in an executable. I'll move that up on my list of things to do. At Fri, 10 Sep 2010 11:02:59 -0500, Robby Findler wrote: > DrRacket does not

Re: [racket] what is this thing: '#(struct:foo 3 4) ?

2010-09-10 Thread Casey Klein
On Fri, Sep 10, 2010 at 11:40 AM, John Clements wrote: > > On Sep 10, 2010, at 9:34 AM, Matthew Flatt wrote: > >> At Fri, 10 Sep 2010 09:21:28 -0700, John Clements wrote: >>> I've spent long enough with the docs on this not to feel too embarrassed >>> about >>> this question: what kind of value i

Re: [racket] what is this thing: '#(struct:foo 3 4) ?

2010-09-10 Thread John Clements
On Sep 10, 2010, at 9:34 AM, Matthew Flatt wrote: > At Fri, 10 Sep 2010 09:21:28 -0700, John Clements wrote: >> I've spent long enough with the docs on this not to feel too embarrassed >> about >> this question: what kind of value is produced by >> >> '#(struct:foo 3 4) >> >> (N.B. the leadin

Re: [racket] what is this thing: '#(struct:foo 3 4) ?

2010-09-10 Thread Matthew Flatt
At Fri, 10 Sep 2010 09:21:28 -0700, John Clements wrote: > I've spent long enough with the docs on this not to feel too embarrassed > about > this question: what kind of value is produced by > > '#(struct:foo 3 4) > > (N.B. the leading quote) Are you by chance using the PLAI language that is d

Re: [racket] what is this thing: '#(struct:foo 3 4) ?

2010-09-10 Thread Sam Tobin-Hochstadt
On Fri, Sep 10, 2010 at 12:21 PM, John Clements wrote: > I've spent long enough with the docs on this not to feel too embarrassed > about this question: what kind of value is produced by > > '#(struct:foo 3 4) Just to plug Doug's excellent software: [sa...@punge:~/work plt] r Welcome to Racket

Re: [racket] what is this thing: '#(struct:foo 3 4) ?

2010-09-10 Thread Robby Findler
It is a vector (of length 3 with a symbol and two numbers inside). Robby On Fri, Sep 10, 2010 at 11:21 AM, John Clements wrote: > I've spent long enough with the docs on this not to feel too embarrassed > about this question: what kind of value is produced by > > '#(struct:foo 3 4) > > (N.B. th

[racket] what is this thing: '#(struct:foo 3 4) ?

2010-09-10 Thread John Clements
I've spent long enough with the docs on this not to feel too embarrassed about this question: what kind of value is produced by '#(struct:foo 3 4) (N.B. the leading quote) ... and how can I extract its values? The problem is that I'm trying to use "write" and "read" on the built-in "date" str

Re: [racket] runtime-path + dynamic-require ?

2010-09-10 Thread Robby Findler
DrRacket does not, that's right. I think you'd have to do something to tell your distribution packer about the dynamically required files from the outside, I'm sorry to say. AT least I don't see a better way, but maybe others do. Robby On Fri, Sep 10, 2010 at 10:41 AM, Laurent wrote: > > > On F

Re: [racket] runtime-path + dynamic-require ?

2010-09-10 Thread Laurent
On Fri, Sep 10, 2010 at 17:38, Robby Findler wrote: > On Fri, Sep 10, 2010 at 10:18 AM, Laurent > wrote: > > > > > > On Fri, Sep 10, 2010 at 17:06, Laurent wrote: > >> > >> > >> On Fri, Sep 10, 2010 at 16:43, Sam Tobin-Hochstadt > >> wrote: > >>> > >>> On Fri, Sep 10, 2010 at 10:34 AM, Laurent

Re: [racket] runtime-path + dynamic-require ?

2010-09-10 Thread Robby Findler
On Fri, Sep 10, 2010 at 10:18 AM, Laurent wrote: > > > On Fri, Sep 10, 2010 at 17:06, Laurent wrote: >> >> >> On Fri, Sep 10, 2010 at 16:43, Sam Tobin-Hochstadt >> wrote: >>> >>> On Fri, Sep 10, 2010 at 10:34 AM, Laurent >>> wrote: >>> > >>> > So now, how do I make things work with `dynamic-req

Re: [racket] runtime-path + dynamic-require ?

2010-09-10 Thread Laurent
On Fri, Sep 10, 2010 at 17:06, Laurent wrote: > > > On Fri, Sep 10, 2010 at 16:43, Sam Tobin-Hochstadt wrote: > >> On Fri, Sep 10, 2010 at 10:34 AM, Laurent >> wrote: >> > >> > So now, how do I make things work with `dynamic-require' ? >> > Do all paths need to be defined as runtime-paths in my

Re: [racket] runtime-path + dynamic-require ?

2010-09-10 Thread Laurent
On Fri, Sep 10, 2010 at 16:43, Sam Tobin-Hochstadt wrote: > On Fri, Sep 10, 2010 at 10:34 AM, Laurent > wrote: > > > > So now, how do I make things work with `dynamic-require' ? > > Do all paths need to be defined as runtime-paths in my "splash.rkt", > > to use only normal relative paths in dynam

Re: [racket] runtime-path + dynamic-require ?

2010-09-10 Thread Sam Tobin-Hochstadt
On Fri, Sep 10, 2010 at 10:34 AM, Laurent wrote: > > So now, how do I make things work with `dynamic-require' ? > Do all paths need to be defined as runtime-paths in my "splash.rkt", > to use only normal relative paths in dynamically required files? > Or can I get completely rid of runtime-path?

[racket] runtime-path + dynamic-require ?

2010-09-10 Thread Laurent
Hi all, Previously I was using runtime-paths for all images, docs, and files that I used in some project, so that once it is compiled, everything works fine, all files are correctly included in the distribution. But now I want to use the framework/splash lib, which needs my code to be required by

Re: [racket] xmlrpc with racket problem

2010-09-10 Thread Jay McCarthy
This means the XMLRPC package is incompatible with the release you are using. Jay On Fri, Sep 10, 2010 at 12:32 AM, Tobias Salzmann wrote: > Hello, > > I have a problem with the xmlrpc from planet system. > firstly my source code: > Server: > --- > #lang racke

Re: [racket] [redex] define list for metafunctions

2010-09-10 Thread Eric Tanter
That's great, thanks Casey! -- Éric On Sep 9, 2010, at 7:43 PM, Casey Klein wrote: > On Wed, Sep 8, 2010 at 10:36 AM, Eric Tanter wrote: >> Hi, >> >> Is there a way to have the (define ...) dropdown button be customized for >> define-metafunction, so that it displays the name of the metafunc

[racket] ODBC Racket

2010-09-10 Thread Tobias Salzmann
Hello is there an OBDC connection as SrPersist and SchemeQL in racket? Unfortunately I could not find anything. Tobias _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users