The server that hosts my web site will be swapping machines and IP
addresses tomorrow, so the tutorials I've got on it may be momentarily
innaccessible tomorrow. I'll try to get the DNS records corrected tomorrow
when the swap happens as quickly as I can. (I'm in Palm Springs now with
intermitte
Here's another approach, which is to wrap the port with one that raises
an exception before returning an EOF on read or peek:
#lang racket
(define (input-port->error-eof-input-port p [close? #t])
(define (handle-eof) (error "eof"))
(define (filter-result r)
(cond
[(eof-object? r) (ha
When using the "command-line" macro for parsing "raco" commands with
subcommands (e.g., "raco mycommand mysubcommand arg ..."), is there a
better way than the code fragment at the end of this message?
The main problem I have with this code fragment is that "raco mycommand
--help" is not very h
Here is a short example:
#lang racket
(require racket/promise
web-server/http/request-structs
web-server/formlets
net/url)
(define some-formlet
(formlet
(div "Checked Radio"
,{(default #"default" (radio #"checked-radio" #t)) . => . cr}
"Not-Checked
Hi,
it's me again, and whereas I don't know how dumb I am I sure might have been a
bit lazy :-;
Unfortunately, even after taking a bit more time, I don't know how it works.
Lastly, I've been trying this, which displayed fine:
(define f-choose-db
(let ((o (radio #"orcl" #t))
(r (radio
I don't feel any need in my heart and brain to write "examples" for such a
poorly undocumented piece of code like Racket Web Development library.To
shriram: kill the messenger of bad news! The easiest way is always to declare
troll those who does not nod at everything you, academic multiwriters
FYI,
I've just started to tinker with formlets, templates, and forms from Wufoo.
I forget things easily now, so I am writing down my study notes here
(https://github.com/racketeer/racketeering/tree/master/wufooing).
Looks like it could be of use to other newcomers to rkt. I would also
welcome cr
About five years ago, I wrote simple C extensions that our group has used on OS
X, Linux, and Windows. Today, I'd probably use the Foreign Function Interface.
Sometimes we used the KeySpan USB-Serial hardware with the same extension. It
might be possible to do what you show below entirely in Rac
On Dec 24, 2011, at 3:43 AM, Răzvan Rotaru wrote:
> Hi,
>
> I stumbled upon a compilation in parameter.plt:
>
> .
> ../../../../.racket/planet/300/5.1.3/cache/dherman/parameter.plt/1/3/main.ss:26:17:
> compile: unbound identifier in module in: flat-get
>
> The broken code is following:
> ;;
Let's just agree to ignore the troll, please.
Racket Users list:
http://lists.racket-lang.org/users
On Dec 26, 2011, at 2:46 AM, Dmitry Pavlov wrote:
> Hello,
>
> I would like to make read-byte and friends to
> throw an exception in case end of file is
> reached. That is, when I call read-byte,
> I know that the byte must be there, otherwise
> the input data is corrupt. I would prefer
> not to
On Dec 26, 2011, at 4:58 AM, Racket Noob wrote:
>
>
> From: racketn...@hotmail.com
> To: keyd...@gmx.de
> Subject: RE: [racket] formlets with radio button & checkbox example?
> Date: Mon, 26 Dec 2011 12:48:57 +0100
>
>
> No, you are not dumb. It's only that Racket web documentation sucks. But
hello,every one.
i am a new user of racket.Today i find i can write with emacs keybings
when i unchecked Enable keybindings in menus in General Preferences.but
Previously the keybinding of complete word is lost.any one can help me?
Racket Users list:
http://lists.racket-l
Thanks! (I should have thought to make sure my test case includes a
curve.)
At Mon, 26 Dec 2011 01:23:08 -0700, Michael W wrote:
> Ah, I found the issue.
>
> The "curve" case in the case statement on lines 289-296 of
> dc-path.rkt should read:
>
> (case (car a)
> [(move) (move-to (cadr a) (cad
From: racketn...@hotmail.com
To: keyd...@gmx.de
Subject: RE: [racket] formlets with radio button & checkbox example?
Date: Mon, 26 Dec 2011 12:48:57 +0100
No, you are not dumb. It's only that Racket web documentation sucks. But never
mind: there is also a Ruby on Rails, or maybe Django
Hello,
I would like to make read-byte and friends to
throw an exception in case end of file is
reached. That is, when I call read-byte,
I know that the byte must be there, otherwise
the input data is corrupt. I would prefer
not to check the result of every read-byte
call. What is the simplest way
Ah, I found the issue.
The "curve" case in the case statement on lines 289-296 of
dc-path.rkt should read:
(case (car a)
[(move) (move-to (cadr a) (caddr a))]
[(line) (line-to (cadr a) (caddr a))]
[(curve) (curve-to (cadr a) (caddr a)
(list-ref a 3) (list-ref a 4)
17 matches
Mail list logo