[racket] cgi dynamic link

2010-10-31 Thread scouic
Hi all, i have a problem within the creation of "dynamic links" : I have a racket blog, and i have a function who takes all posts from a database (posts = body + title ) and creates a link (make-url ... request) with the title who refers to a new page that display the body. This perfectly works.

Re: [racket] 2htdp/image Sierpinski

2010-10-31 Thread Stephen Bloch
On Oct 31, 2010, at 10:24 AM, Robby Findler wrote: Overall, tho, we'd like to be able to support this kind of thing, but we need to do a better job. As I'm writing this, I wonder if we could exploit the sharing in the image. In your example, there are only 11 calls to 'square' that turn into th

Re: [racket] [BULK] 2htdp/image Sierpinski

2010-10-31 Thread Stephen Bloch
On Oct 31, 2010, at 12:18 AM, Gregor Kiczales wrote: Also I would have thought that 'forcing' the image by actually drawing it would save the bitmap so that future drawing was faster. But I may not understand how this is actually working. I suggested something like this some months ago --

Re: [racket] problems running moby from source

2010-10-31 Thread Danny Yoo
> thanks for the information, I will definitely check it out! > Speaking of "checking out", should I check out the 'mzc' branch to be able to > more conveniently inspect the code from under the 'phone' directory, or will > this be merged into the 'master' branch? > (I've only worked with cvs and

Re: [racket] problems running moby from source

2010-10-31 Thread keyd...@gmx.de
Hi Danny, thanks for the information, I will definitely check it out! Speaking of "checking out", should I check out the 'mzc' branch to be able to more conveniently inspect the code from under the 'phone' directory, or will this be merged into the 'master' branch? (I've only worked with cvs and

Re: [racket] 2htdp/image Sierpinski

2010-10-31 Thread Robby Findler
There are a few things going on here. When you say (carpet 300 "red"), you're actually asking Racket to draw more than 42,000 squares, which can take some time (plus more than 20,000 intermediate overlaid shapes to work thru to get to the squares). Also, the redrawing you're seeing isn't specific t

Re: [racket] 2htdp/image Sierpinski

2010-10-31 Thread Marc L. Smith
I adapted the Sierpinski example from the racket-lang.org home page for Intermediate Student Language. The parameter represents recursive depth, which requires no division and a single local definition. If it weren't for the local, this would be a BSL program: (require 2htdp/image) ;; Examples (d

[racket] tweaking source code without loosing comments and formatting

2010-10-31 Thread Jukka Tuominen
Hi all, I'd like to do some tricks on scheme source code. The problem is that I loose all comments and formatting in the process. Here is what I have now: ;; Helper functions (define (number-of-arguments lambda-without-inputs) (length (cdadr lambda-without-inputs))) (define (named-lambda-with

Re: [racket] Scribble: Page break in LaTeX output

2010-10-31 Thread Jens Axel Søgaard
2010/10/31 Matthew Flatt : > At Sun, 31 Oct 2010 11:05:14 +0100, Jens Axel Søgaard wrote: >> What is the simplest way to generate a page break in the LaTeX output? > > I don't think we have anything built in, but you can use `element' to > construct an element using "newpage" as the style, which wi

Re: [racket] Scribble: Page break in LaTeX output

2010-10-31 Thread Matthew Flatt
At Sun, 31 Oct 2010 11:05:14 +0100, Jens Axel Søgaard wrote: > What is the simplest way to generate a page break in the LaTeX output? I don't think we have anything built in, but you can use `element' to construct an element using "newpage" as the style, which will generate a `\newpage{}' in the L

[racket] Scribble: Page break in LaTeX output

2010-10-31 Thread Jens Axel Søgaard
Hi all, What is the simplest way to generate a page break in the LaTeX output? -- Jens Axel Søgaard _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users