[racket] a scribble comment

2010-11-27 Thread scouic
Hi, I've writen a documentation, using the Scribble tool. When I want to display functions, I use the @schemeblock[ ] tag. But if there is some comments like "i love foo", there are not displayed. Could you explain me a way for display the comments, it's better for explain functions when people r

Re: [racket] Racket under Linux (ubuntu)

2010-11-15 Thread scouic
> > > By clicking the textes (i.e. "File") nothing happens, no menu appears. > I had the same problem, but it's ok : or : - you must click and hold the click, then get off the mouse as if the menu appeared. At this point, menu appears ... - click and get off the mouse, menu appears - use the keys

Re: [racket] bindings without request

2010-11-11 Thread scouic
i've totally forgot this one, and it works perfectly ! with just a number, it's very simple ... (if (empty? (get-bindings/get)) "empty parameters" (car (extract-bindings "number" (get-bindings/get big thanks ! -mw _ For list-related ad

Re: [racket] bindings without request

2010-11-11 Thread scouic
I'm looking since two hours a feint to circumvent this problem, but I have no solution ... How can I do to get the parameters from one page to another without bindings & cie ? thanks for your help, -mw 2010/11/11 Jay McCarthy > The Web Server's request parsing and binding handling cannot be use

[racket] bindings without request

2010-11-11 Thread scouic
Hi all, I've misunderstood the bindings from the webserver. I have a cgi program wich displays a webpage with an input field named number at 127.0.0.1/cgi-bin/input and wich calls (via a form) /cgi-bin/extract-input. For example, after sending, the url could be 127.0.0.1/cgi-bin/extract-input?num

Re: [racket] CGI headers

2010-11-09 Thread scouic
Hey, with the command line mzscheme it works, so i don't know where is the problem : actually, try.cgi is this one : #!c:/Racket/mzscheme.exe (display "HTTP/1.1 200 OK \r\n") (display "Content-type: text/plain; charset=iso-8859-1 \n\n") (display "hello") The apache access log says : 127.0.0.1 - -

[racket] CGI headers

2010-11-08 Thread scouic
Hi all, i've just understood the CGI way-of-life (yes, i'm happy) First, i have a perl super-easy script (file saved as test.cgi) who prints "hello", this is it #!c:\Strawberry\perl\bin\perl.exe print "Content-type: text/plain; charset=iso-8859-1\n\n"; print "hello"; It works perfectly,, when i'm

[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] apache configuration for racket

2010-10-26 Thread scouic
nobody has an apache configuration to run Dr.racket files in localhost ? =/ _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

[racket] apache configuration for racket

2010-10-24 Thread scouic
Hi, i have a local apache server (win$) and i would like to know how can i configure it for that, when i'm connecting at 127.0.0.1, it launches a Racket executable file, for example index.rkt (or index.exe) ? actually, index.rkt is a simply webpage [example] (require web-server/sevlet /formlets /s

Re: [racket] with-handlers string->xexpr fail

2010-10-22 Thread scouic
i've understood, big thanks for your help ! have a nice day, -mw _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] with-handlers string->xexpr fail

2010-10-22 Thread scouic
I thought invalid-xexpr? was necessarily a boolean returning # t or # f ... thank you very much for your explanation David _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

[racket] with-handlers string->xexpr fail

2010-10-22 Thread scouic
Hi, i learn with-handlers mechanism, and i don't understand what's wrong in this piece of code ? #lang racket (require xml) (define a-good-string "hi there!") (define a-bad-string "hi there!") (define (panoramix s) (with-handlers ((exn:invalid-xexpr? (lambda (e) 'UFO))) (string->xexpr s)))

Re: [racket] reliable path comparison?

2010-10-21 Thread scouic
Hi, i think that the problem is the \ character, because this works : #lang racket (equal? (regexp-replace* "" (path->string (build-path "C:\\")) "/") (regexp-replace* "" (path->string (build-path "C:\\")) "/")) and returns true have a nice day, -mw 2010/10/21 Danny Yoo > I'm t

Re: [racket] a simple? regexp-match/replace

2010-10-20 Thread scouic
Hey noel, thank you, it works perfectly. However, i have the following problem : i can't modify my cookie-value ... my blog starts with (define start request) ( my-home-page request)) next, (define (my-home-page request) (define foo (make-cookie "id" "my-content") (set! foo (set-cookie "id"

[racket] a simple? regexp-match/replace

2010-10-20 Thread scouic
Hi all, i'm reading the documentation on cookies (net/cookie), and i try to save with a cookie an user action in my blog. For example, the cookie "my-cookie" has this content : id=blabla; Version=1 OR this one : id="bla bla"; Version=1 How can i just extract the string "bla bla" or blabla ? thank

Re: [racket] A list of vectors

2010-10-19 Thread scouic
thank you Everett, this is perfect and simpliest =) _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] A list of vectors

2010-10-18 Thread scouic
Big thanks, this works now \o/ _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

[racket] A list of vectors

2010-10-18 Thread scouic
Hi all, here more than three hours that i'm locked on a function, i defer to you =) My problem : i have a list of vectors, each vectors represents a text syntax (not html syntax, just text), and were created with the result of a format sqlite SELECT operation. For example, my list of vectors L is

Re: [racket] ftp connexion

2010-10-16 Thread scouic
thanks. Before, i'm just trying to write a function 'ftp-upload-file, because it can serve for many users .. if i can't do that, i'll post here :) 2010/10/16 Neil Van Dyke > scouic wrote at 10/16/2010 09:14 AM: > > i have written a bash file (ubuntu) and a ba

Re: [racket] ftp connexion

2010-10-16 Thread scouic
sorry, first message has not been sent : this is it : Hi all, I have a little problem for ftp connexion : i want to download my_file.txt at example.com/upload/my_file.txt in my current directory : this is my code : (define cd (current-directory)) (define foo (ftp-establish-connection "example.com"

Re: [racket] ftp connexion

2010-10-16 Thread scouic
nb : i've search a way to launch a file from racket, but i found nothing ... if you have links, i'm interested _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] sqlite: how to open a database via the web ?

2010-10-15 Thread scouic
I've understood the local path, but i thought i could put it on the web. Noel, you say that sqlite only works on local, so what should i do to manage with DrRacket a database imported via the internet (example.com/database.db?) thanks, -mw _ For l

[racket] sqlite: how to open a database via the web ?

2010-10-15 Thread scouic
Hi, I'm locked on a problem in creating my interactive blog. So far, I was managing the localhost without any problems. My function that opens the blog involves opening a database "database.db" which contains the blog posts (cf Continue racket doc) : (define (start request) (render-blog-page (ini

Re: [racket] About security for an input password

2010-10-15 Thread scouic
Yeah you're right, big thanks _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

[racket] About security for an input password

2010-10-15 Thread scouic
Hi, As you know in other languages, it exists failures with security of passwords, for example type 1OR1 with escape ' " strings, etc. I am trying to make an interactive blog, and all users can post comments at each posts, but only guys who know the password can create, update, delete posts, etc.

Re: [racket] How to interpret the html code from an input field ?

2010-10-14 Thread scouic
Perfect, thanks _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

[racket] How to interpret the html code from an input field ?

2010-10-14 Thread scouic
Hi, I'm trying to make an interactive blog with the racket blog continue doc, and, when an user creates a new post or puts a comment, the result is displayed in a textarea, for keep the formatting ( for example the indentation of a piece of code ). But textarea is not a really good solution, and i

Re: [racket] Informations about sqlite database

2010-10-07 Thread scouic
Ok, big thanks. _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] Informations about sqlite database

2010-10-07 Thread scouic
Thanks, i've just understand alot of things with the sqlite doc page. But I still have one problem, i create a table "posts", and each time, i add things on the table. Is it possible, when things were added, to save the current database for example in ((current-directory) "data.sqlite") ? If it's

[racket] Informations about sqlite database

2010-10-07 Thread scouic
Hi, I am trying to learn, through Racket doc, the web server, servlet, etc.. and i'm locked to the databases. I understood how to write in the sqlite database, but i don't know how to save it ( the backup is automatic ? ) In the doc Racket ( http://docs.racket-lang.org/continue/#%28part._.Using_.Fo