Re: [racket-users] Detecting mouse events on top of picts?

2016-06-07 Thread George Neuner
On 6/7/2016 3:40 PM, David Christiansen wrote: > Understood. Is it possible to define a region to represent the > clickable areas? This is the way I would do it if possible. > > I haven't done much GUI programming in Racket, so I don't know exactly > what it can do, but in, e.g., Windows GDI

Re: [racket-users] Detecting mouse events on top of picts?

2016-06-07 Thread Matthias Felleisen
Apologies, I was writing this response off line while I was reading your message and as i finished reading yours, I realized your problem was deeper. And apologies for wasting band width. > On Jun 7, 2016, at 3:39 PM, David Christiansen > wrote: > >> Why don’t

Re: [racket-users] RacketCon hotel discount?

2016-06-07 Thread Matthew Flatt
Yes, I'll ping the hotel again... At Tue, 7 Jun 2016 14:21:43 -0700 (PDT), Brian Adkins wrote: > I noticed that the 2015 RacketCon had a "RAC" group code for the hotel. I > already booked my hotel, but it's a changeable/cancelable reservation, so is > there going to be a group discount for the

[racket-users] RacketCon hotel discount?

2016-06-07 Thread Brian Adkins
I noticed that the 2015 RacketCon had a "RAC" group code for the hotel. I already booked my hotel, but it's a changeable/cancelable reservation, so is there going to be a group discount for the hotel for this year's conference also? If so, what is it, and when is it active? Brian -- You

[racket-users] Re: Anyone attending RacketCon but *not* Strange Loop ?

2016-06-07 Thread Brian Adkins
On Tuesday, June 7, 2016 at 4:07:36 PM UTC-4, Brian Adkins wrote: > Just out of curiosity, is anyone attending RacketCon, but not attending > Strange Loop? > > I'm probably in the minority, but there don't seem to be enough compelling > sessions this year for me (although I'd love to hear

[racket-users] Anyone attending RacketCon but *not* Strange Loop ?

2016-06-07 Thread Brian Adkins
Just out of curiosity, is anyone attending RacketCon, but not attending Strange Loop? I'm probably in the minority, but there don't seem to be enough compelling sessions this year for me (although I'd love to hear Matthew's and Andy's talk), so I'm considering flying in for RacketCon only.

Re: [racket-users] Detecting mouse events on top of picts?

2016-06-07 Thread David Christiansen
> Why don’t you check the location of the mouse movement? The coordinates are > close enough. I do check the location of the mouse movement to find a canvas location. What I was looking for a smarter way to do was to check whether or not that particular pixel was drawn by a particular pict that

[racket-users] (sixth RacketCon) Opportunity Grants

2016-06-07 Thread Vincent St-Amour
We are pleased to announce that (sixth RacketCon) will provide opportunity grants. These grants target Strange Loop opportunity grant [1] recipients who wish to attend RacketCon. The grants provide free RacketCon admission, as well as an additional hotel night, the night after RacketCon. If you

[racket-users] Re: Racket v6.5

2016-06-07 Thread nemo
On Thursday, 28 April 2016 15:57:50 UTC-4, Ryan Culpepper wrote: > Racket version 6.5 is now available from > > http://racket-lang.org/ [...] > Feedback Welcome The source built and runs on Solaris 10/sparc. (The previous version would not.) Thank you. N -- You received this message

Re: [racket-users] Transforming data for plot / discreet-histogram

2016-06-07 Thread Ben Greenman
For now, you can use sequence-map to turn the hashtable into a sequence of vectors. #lang racket (require math) (require plot) (discrete-histogram (sequence-map vector (in-hash (samples->hash '(1 2 3 4 4) But it would be nicer if discrete-histogram took a hash as input. On Tue, Jun 7,

Re: [racket-users] define-serializable-cstruct with versions?

2016-06-07 Thread Matthew Flatt
Sorry --- reading through your message one more time, I think I understand what you're saying. My example involved pointers to structures, and you're noting that *inlined* structures create a problem. One possibility is to treat a change to `_pond` as a change to `_forest`, too, and introduce a

Re: [racket-users] define-serializable-cstruct with versions?

2016-06-07 Thread Matthew Flatt
I think all this works ok. I've enclosed an example interaction from the docs, which I've just extended to evolve `fish` in addition to `aq`. So, it's all implemented, and I can push if it seems like an ok interface... At Tue, 7 Jun 2016 17:14:54 +0200, Berthold Bäuml wrote: > Sorry, I did not

Re: [racket-users] define-serializable-cstruct with versions?

2016-06-07 Thread Berthold Bäuml
Sorry, I did not think this through completely. Serialization of cstructs, as it is currently implemented, loses all “sub-structure” for non-pointer content, correct? But wouldn’t because of this lost sub-structure your alternative compatibility protocol also fail when it comes to

Re: [racket-users] Constructor-style printing for sets?

2016-06-07 Thread Alex Knauth
> On Jun 6, 2016, at 10:24 PM, Alex Knauth wrote: > > If I run this program: > > #lang racket > (set 1 2 3) > > It prints out the value: > > (set 1 2 3) > > That's wonderful! It uses nice constructor-style printing, just like I > wanted. That was without changing the

[racket-users] Transforming data for plot / discreet-histogram

2016-06-07 Thread Sean Kemplay
Hello, Something like the following would be ideal to build a histogram from a sequence of values read in via CSV #lang racket (require math) (require plot) (discrete-histogram (samples->hash '(1 2 3 4 4))) However discreet histogram takes a list of vectors. Is there a way to achieve

Re: [racket-users] smtp-send-message to gmail

2016-06-07 Thread George Neuner
On 6/7/2016 5:18 AM, Лера Гранкина wrote: I'm trying to send message using the code below, but I always get error "No reply from computer". (require net/smtp net/dns openssl/mzssl net/head) (smtp-send-message (dns-get-address "192.168.5.254" "smtp.gmail.com") "m...@gmail.com"

Re: [racket-users] Proper handling for a custom current-read-interaction?

2016-06-07 Thread Robby Findler
The intention here is that you should have a notion of an expression that is itself consistent and you should read until you get a whole one of those and then just return that. The different behavior you see in DrRacket and at the terminal window prompt will, yes, cause different behavior, but it

[racket-users] smtp-send-message to gmail

2016-06-07 Thread Лера Гранкина
I'm trying to send message using the code below, but I always get error "No reply from computer". (require net/smtp net/dns openssl/mzssl net/head) (smtp-send-message (dns-get-address "192.168.5.254" "smtp.gmail.com") "m...@gmail.com" '("m...@gmail.com") (standard-message-header "Sender