Re: [racket] monochrome bitmaps

2012-11-02 Thread Harry Spier
To clarify one point: Is a monochrome bitmap a greyscale bitmap or a black and white bitmap? I see from the documentation that the form (make-object bitmap% bits width height) produces a black and white bitmap but for the form I asked about (shown again below) subject to the restriction Matthew des

Re: [racket] DRRacket right-click menu fragility in Linux.

2012-11-02 Thread Robby Findler
I've pushed a fix to this. Thanks to Matthew for looking into it and sorting it out and sorry for the delay. Robby On Thu, Nov 1, 2012 at 3:32 PM, Ray Racine wrote: > When editing racket code in DR the right-click menu is very fragile on Linux > (Ubuntu 12.10). Upon right-clicking the menu pops

[racket] Responsibility & Etiquette (was Scriblogify Error -- I'm baaack!)

2012-11-02 Thread Patrick King
On Sat, Oct 27, 2012 at 11:19 AM, Matthias Felleisen wrote: > > On Oct 26, 2012, at 10:38 PM, Patrick King wrote: > > I was way too optimistic, and way too ashamed to bother the community > again. > > > > This should never be the case. > I disagree. The reason my problem wasn't solved the first t

[racket] how to run multiple servlets in a racket web server?

2012-11-02 Thread Kejia柯嘉
hi all, i read several examples showing how to deploy a servlet in a racket web server, but none mentions how to run multiple ones at a time. so, racket's web application model appeals single-servlet services? `` (serve/servlet start #:listen-ip #f #:port 8080) '' - kejia ☵☯☲ __

Re: [racket] Losing decimal in SQL Server query result

2012-11-02 Thread Ryan Culpepper
Update: I've looked at the ODBC docs again, and apparently I'm there's a whole convoluted process for retrieving numeric values that I'm not doing. Some of the drivers I tested with don't follow the convoluted process either, which is why I missed it. I'll try to commit a fix soon. Ryan On 1

Re: [racket] Scriblogify Error -- I'm baaack!

2012-11-02 Thread Patrick King
It works for Scriblogify as well as Scribble. Thanks, Matthew. On Sat, Oct 27, 2012 at 11:15 PM, Matthew Flatt wrote: > You're running into sandbox filesystem-protection rules. > > When you include a path in #:requires for `make-evaluator', then read > access is granted for that file in the sand

Re: [racket] Scope of PLaneT was: (no subject)

2012-11-02 Thread Edward Blake
Hello Neil, Matthias Thanks for the feedback and encouragement, adding the UPnP library to PLaneT was on my TODO list for sure, I figured I should write a bit of documentation first. I'll be checking out McFly Tools as well. I've assumed until now that PLaneT to be appropriate mainly for librarie

Re: [racket] An example of let-vs-define: SICP 2.64

2012-11-02 Thread Neil Van Dyke
Here's a different comparison of let-vs-internal-define, using your code. Your internal define example (hopefully whitespace doesn't get mangled by however you're reading this message): (define (partial-tree elts n) (cond [(= n 0) (values EMPTY-TREE elts)] [else (de

Re: [racket] An example of let-vs-define: SICP 2.64

2012-11-02 Thread Grant Rettke
On Fri, Nov 2, 2012 at 4:33 PM, Sam Tobin-Hochstadt wrote: > Just a cautionary tale,+++ > > Good point. Thanks for sharing. Racket Users list: http://lists.racket-lang.org/users

Re: [racket] An example of let-vs-define: SICP 2.64

2012-11-02 Thread Sam Tobin-Hochstadt
On Fri, Nov 2, 2012 at 5:29 PM, Grant Rettke wrote: > Internal define is awesome. I agree in general, but I did recently fix a bug in Typed Racket that was made possible entirely by use of internal `define`: https://github.com/plt/racket/commit/0e71f2d5dc#L1R16 The original code had a `let`, whi

Re: [racket] An example of let-vs-define: SICP 2.64

2012-11-02 Thread Grant Rettke
Internal define is awesome. On Fri, Nov 2, 2012 at 4:17 PM, Matthias Felleisen wrote: > > I guess we should take this also as a confirmation of the style guide :-) > > > On Nov 2, 2012, at 5:05 PM, Danny Yoo wrote: > > > I was just looking at exercise 2.64 of SICP, one that creates a BST out > o

Re: [racket] An example of let-vs-define: SICP 2.64

2012-11-02 Thread Matthias Felleisen
I guess we should take this also as a confirmation of the style guide :-) On Nov 2, 2012, at 5:05 PM, Danny Yoo wrote: > I was just looking at exercise 2.64 of SICP, one that creates a BST out of an > ordered list of elements: > > http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-16.h

[racket] An example of let-vs-define: SICP 2.64

2012-11-02 Thread Danny Yoo
I was just looking at exercise 2.64 of SICP, one that creates a BST out of an ordered list of elements: http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-16.html#%_thm_2.64 However, because of all the nested lets, I have to admit that I was having a hard time reading it! So I rewrote it w

Re: [racket] DRRacket right-click menu fragility in Linux.

2012-11-02 Thread Eli Barzilay
Three hours ago, Ray Racine wrote: > Basically when you right-click the menu flashes up and then > disappears.  If you are experiencing it, you would know it.  The > reason I mentioned that the right click menu in Chrome was fine was > to commuicate that it does not appear to be either a Unity/Gnom

Re: [racket] TR Parameterization Question

2012-11-02 Thread Ray Racine
Got it. Thanks for taking the time to clarify it for me. Ray On Fri, Nov 2, 2012 at 3:05 PM, Sam Tobin-Hochstadt wrote: > On Fri, Nov 2, 2012 at 2:40 PM, Ray Racine wrote: > > The immediate below works for me. It nags in the sense that S1 has a > > irrelevant type parameter. > > Below I atte

Re: [racket] TR Parameterization Question

2012-11-02 Thread Sam Tobin-Hochstadt
On Fri, Nov 2, 2012 at 2:40 PM, Ray Racine wrote: > The immediate below works for me. It nags in the sense that S1 has a > irrelevant type parameter. > Below I attempt to shift the type parameter inside, which the TR parse > happily allows. However, later things fall apart. > > One interpretatio

Re: [racket] flush is not enough, a list is needed

2012-11-02 Thread Laurent
You're using just `write', so you need some whitespace between items: > > > (with-input-from-string > (with-output-to-string (λ() (write 'x) (write 'y))) > read) > 'xy > Wow, thanks a lot, I would have never thought about that. I thought that 'write' was sending data, not mere character

[racket] TR Parameterization Question

2012-11-02 Thread Ray Racine
The immediate below works for me. It nags in the sense that S1 has a irrelevant type parameter. Below I attempt to shift the type parameter inside, which the TR parse happily allows. However, later things fall apart. One interpretation of what I'm tying to do is: S0 encodes a Collection of T, S1

Re: [racket] flush is not enough, a list is needed

2012-11-02 Thread Eli Barzilay
A few minutes ago, Laurent wrote: > Hi, > > In a small Racket client/server over tcp, the client sends > expressions that the server evaluates and returns the result to the > client, in a loop. The tcp ports are flushed after each send, but > it is still hanging, unless I wrap the sent values in

[racket] flush is not enough, a list is needed

2012-11-02 Thread Laurent
Hi, In a small Racket client/server over tcp, the client sends expressions that the server evaluates and returns the result to the client, in a loop. The tcp ports are flushed after each send, but it is still hanging, unless I wrap the sent values in lists, which is a bit surprising. So it looks l

Re: [racket] Evaluating a module with an unintended language

2012-11-02 Thread David Van Horn
On 11/1/12 10:11 PM, Matthias Felleisen wrote: I can't think of another way. But I am also wondering why you'd want to run a program written in language L in language K. -- Matthias This is something I want to do on occasion, where K is an abstraction of L (either a symbolic evaluator or an a

Re: [racket] DRRacket right-click menu fragility in Linux.

2012-11-02 Thread Ray Racine
Basically when you right-click the menu flashes up and then disappears. If you are experiencing it, you would know it. The reason I mentioned that the right click menu in Chrome was fine was to commuicate that it does not appear to be either a Unity/Gnome issue in general or a mouse hardware issu

Re: [racket] DRRacket right-click menu fragility in Linux.

2012-11-02 Thread Laurent
Shouldn't you click and stay clicked for the menu to remain visible? That's how it works on my Ubuntu in DrRacket, and I thought it was normal behavior. Laurent On Thu, Nov 1, 2012 at 9:44 PM, Vincent St-Amour wrote: > I'm having similar issues on Debian squeeze and wheezy and Ubuntu > 12.04. >

Re: [racket] Weird bug/feature with require, raco links, and xinit

2012-11-02 Thread Laurent
Thank you Eli, that clarifies most of it! > I think > that the rule of thumb to avoid such problems (besides the obvious one > of not using symlinks etc) is to always use string requires for > linking modules within a single collection/package/whatever, and > always use symbolic requires to refer

Re: [racket] Object% equal? for Hash#

2012-11-02 Thread Ted
> > But, now I have to had an attribute wich do not have to tested and I can't > > figure the best way out. > > > > Would I investigate with inspector or the equal<%> interface. > > Both ways, I don't know how to do this. The doc is pretty brief about that. > Are you saying that there are fiel

Re: [racket] (no subject)

2012-11-02 Thread Matthias Felleisen
Sounds great. Keep working, ask for help, push to Planet -- Matthias On Nov 1, 2012, at 11:36 PM, Edward Blake wrote: > > Hello Racketeers, > > I'm just introducing myself to the list. I've written a few projects in > Racket over the last few years and just lately decided to post them on

Re: [racket] Weird bug/feature with require, raco links, and xinit

2012-11-02 Thread Eli Barzilay
30 minutes ago, Laurent wrote: > [...] > > Now if on a login shell you type: > $ xinit -- :1 > you should get: > p in a.rkt: a > p in b.rkt: base > which does not look fine. I don't know what exactly would be different when you run things from xinit, but these problems can happen when a file can

[racket] Weird bug/feature with require, raco links, and xinit

2012-11-02 Thread Laurent
Hi, I've just been badly bitten by some strange 'require' behavior that took me several hours to track down. I don't know if it's a feature or a bug, but just in case let me share it. And if anyone has an explanation, that'd be informative. Long story short: If you 'raco link my-dir' and sometim