Thanks, that's the way to go.
Am Montag, 10. September 2012 schrieb Carl Eastlund:
> The following expression should do what you want:
>
> (+ (string->number "1.2") 1)
>
> If you're starting from a symbol, use symbol->string before string->number.
>
> Carl Eastlund
>
> On Mon, Sep 10, 2012 at 12:4
On Mon, Sep 10, 2012 at 8:17 PM, Jay McCarthy wrote:
> I'm not sure what error you're referring to in the second case,
The error as posted on
http://stackoverflow.com/questions/12343071/how-to-make-the-time-out-of-one-connection-of-the-server-while-not-affecting-fol/12355117#12355117
..
> unle
Thanks. That's important because I do override a few methods. For example,
set-cell! erases pencil marks and clear-cell! puts them back in. But in most
cases the methods are not overridden.
Sent from my iPhone
On Sep 10, 2012, at 1:23 PM, Asumu Takikawa wrote:
> On 2012-09-10 12:35:52 -0700,
Thanks Danny, that does the trick nicely.
Cheers,
Kieron.
On Mon, Sep 10, 2012 at 2:00 PM, Danny Yoo wrote:
> > I see the function read-icos in file/ico, and also the function ico->argb
> > which gives a bytes? that represents an argb image, but I can't figure
> out
> > how to get from a bytes
On 2012-09-10 12:35:52 -0700, Gregory Woodhouse wrote:
> Now, here's my question. provide grid% with its own contract-out
> clause. It seems rather redundant (and presumably unnecessary) to
> repeat the methods from base-grid% in the contract for grid%.
You don't need to repeat the contracts unles
>
> 1. Is it in the pleasant universe of possibilities?
> 2. May it work as a package that you turn on and off?
> 3. How would it work? Would it be sort of disabling menu items and
> keybindings to "dumb it down" and adding the backend to have the repl
> delegate to the Clojure repl?
Hi Greg,
It
> I see the function read-icos in file/ico, and also the function ico->argb
> which gives a bytes? that represents an argb image, but I can't figure out
> how to get from a bytes? to an actual argb?.
Hi Kieron,
An argb has a vector that we can probably mutate. It also holds width
and height, so
I have a contract
(define base-grid/c
(class/c
(given? (->m coord? coord? boolean?))
(get-cell (->m coord? coord? digit?))
(get-cell/given (->m coord? coord? (values digit? boolean?)))
(set-cell! (->m coord? coord? digit? void?))
(set-given! (->m coord? coord? digit? void?))
(c
Hi all,
Does anyone know how to easily go from a *.ico file (maybe Windows only) to
a bitmap% or something else I can use in program?
I see the function read-icos in file/ico, and also the function ico->argb
which gives a bytes? that represents an argb image, but I can't figure out
how to get fro
I'm not sure what error you're referring to in the second case, unless
you mean that the timeout is shorter than the expected availability of
job A's results, in which case you should expect it to be an error,
because you went over the time limit.
If you used the LRU manager and then combined that
There is char->integer, but it produces the character's number in Unicode,
so #\1 would not map to 1. You may be best off in that case with
(string->number (string ch)) for any character ch.
Carl Eastlund
On Mon, Sep 10, 2012 at 1:19 PM, Gregory Woodhouse wrote:
> Is there a similar function fo
Is there a similar function for characters? I.e., one that will map #\1 to 1?
Sent from my iPhone
On Sep 10, 2012, at 9:44 AM, Carl Eastlund wrote:
> The following expression should do what you want:
>
> (+ (string->number "1.2") 1)
>
> If you're starting from a symbol, use symbol->string bef
2012/9/10 Daniel Bastos :
> It seems that if I give a very long string to query-rows, I get the
> following message.
>
> query-rows: unsupported type: (typeid string)
>
> Short queries are no problem. How do you guys do this properly?
The problem is not the length of the query, but a query which
The following expression should do what you want:
(+ (string->number "1.2") 1)
If you're starting from a symbol, use symbol->string before string->number.
Carl Eastlund
On Mon, Sep 10, 2012 at 12:41 PM, Nikolaus Klepp wrote:
> Hi all,
>
> In tinyscheme I can do this:
>
> > (+ (string->symbol
Hi all,
In tinyscheme I can do this:
> (+ (string->symbol "1.2") 1)
2.2
In racket that does not work, because
> (string->symbol "1.2")
'|1.2|
which is not a number. I can use this workaround:
> (+ (read (open-input-string "1.2")) 1)
2.2
But is there a clean way to get the above line from
To everyone on the list I am so sorry for accidentally emailing it.
On Mon, Sep 10, 2012 at 10:50 AM, Michael Wilber wrote:
> Good luck at your meeting! All of us on racket-user are cheering for
> you. :)
>
> Grant Rettke writes:
>> Hi Caleb,
>>
>> I'll head out at about 7:50 so I'll be there ab
On 09/10/2012 03:58 AM, Erich Rast wrote:
I agree with that one. Regarding this I also have a question. Sometimes
I just need one of multiple values, but this always bothers me somewhat.
Take for example
(let-values (([a b c] (values 1 2 3)))
(computation-with a))
Are the spurious bindings t
It seems that if I give a very long string to query-rows, I get the
following message.
query-rows: unsupported type: (typeid string)
Short queries are no problem. How do you guys do this properly?
Racket Users list:
http://lists.racket-lang.org/users
Good luck at your meeting! All of us on racket-user are cheering for
you. :)
Grant Rettke writes:
> Hi Caleb,
>
> I'll head out at about 7:50 so I'll be there about 8:20.
>
> Grant
>
> Racket Users list:
> http://lists.racket-lang.org/users
Racket U
Hi Caleb,
I'll head out at about 7:50 so I'll be there about 8:20.
Grant
Racket Users list:
http://lists.racket-lang.org/users
> > * Colon keywords -- Make symbols beginning with the colon character
> > read as keywords.
>
> +1, but I suspect that some people really prefer the #: because it
> makes the fact that it's only syntax apparent?
Count me among them. The #: is more consistent and typing one more
character doesn
On Mon, Sep 10, 2012 at 9:52 AM, Neil Van Dyke wrote:
> Two syntax tweaks I'd like to see in Racket 5.4:
>
> * Colon keywords -- Make symbols beginning with the colon character read
> as keywords. Possibly also make keywords print as starting with colon
> rather than pound-colon. I know some pe
Two syntax tweaks I'd like to see in Racket 5.4:
* Colon keywords -- Make symbols beginning with the colon character read
as keywords. Possibly also make keywords print as starting with colon
rather than pound-colon. I know some people don't mind "#:", but I
don't like typing it or looking a
Yes, you are right. define/provide-logger seems like the best way to go.
But a logger-out may still be useful to explicitly re-provide the names,
e.g. if the logger was defined in a 'private' file.
On Sat, 08 Sep 2012 01:48:18 +0200, Greg Hendershott
wrote:
That's a good point, Tobias.
24 matches
Mail list logo