Dear Matthias,
Thank you very much and apologies. It works fine now. While going
over your example, I noticed a typo in my code, I should have coded
(require "get-devanagari-page1.rkt") instead of (require
"get-devanagari-page.rkt") which was an older version where I didn't
enclose the GUI cr
Apologies Danny,
I should have removed the line
"(require "imagemagick_interface.rkt")"
It has nothing to do with the GUI and is only used later on.
Harry
On Fri, Apr 20, 2012 at 5:13 PM, Danny Yoo wrote:
> Hi Harry,
>
> I'm a little confused, and need a little bit more information.
>
> I'm assum
Hi Harry,
I'm a little confused, and need a little bit more information.
I'm assuming that the first file in your message is
'imagemagick_interface.rkt'. Is it the file that constructs the GUI,
and provides the function 'get-devanagari-page'?
When you show the content of another file called 'ge
This works fine for me:
#lang racket/load
(module a racket/gui
(provide get-devanagari-page)
(define (get-devanagari-page)
(define main-ocr-frame (new frame%
[label "DEVANAGARI OCR"]
[width 1]
Dear list members,
Perhaps someone could explain this "module,require and provide" behaviour.
I've created a Racket module that provides a procedure that creates a
simple GUI dialog to return a file path and another module that uses
the procedure.
The module to create the GUI is:
#lang racket/
Hi Brian,
I wanted to revisit this! Reading back your comments and Eli's, I
think I see now that syntax-parameterize is not what I want, because
it doesn't respect lexical boundaries. The whole point of the 'outer'
I'm trying to define is to respect those boundaries, even as I'm
drilling holes in
Hello Mr. Spier,
I ran into this issue recently-are you using racket on Windows out of
curiosity? In short, I think you need to set auto-resize to #t explicitly
upon init'ing your message.
I submitted problem report 12714 to track this.
#|Setting up the first frame and parent.|#
(define parent1
> #lang racket
> (require racket/gui/base)
>
> #|Hello all,
> Patrick here-
> First, my apologies for posting a non-working example-I hope I didn't
> waste anyone's time. Secondly, thanks to Matthias and Robby for the
> corrections-I will certainly refer to these when I use eventspaces again.
>
>
> I've submitted a bug report on your behalf as:
>
> http://bugs.racket-lang.org/query/?cmd=view&pr=12713
Cool. Matthew Flatt fixed this a few seconds ago:
http://git.racket-lang.org/plt/25d7d49648..6dc3fbb72c
Racket Users list:
http://lists.racket-lang.org/users
You might think I'd know more, but this is the extent of my Apache knowledge:
http://docs.racket-lang.org/web-server-internal/Troubleshooting_and_Tips.html#(part._.How_do_.I_use_.Apache_with_the_.Racket_.Web_.Server_)
Jay
On Fri, Apr 20, 2012 at 10:16 AM, J G Cho wrote:
> My search on previous
> It looks like there is some error in section 6.1.1 of the Racket Guide.
>
> I think the picture is incorrect in that it show the files that should have
> been in 'machine' folder in 'db' folder and vice versa. The code sample
> refers them correctly I think but the picture is misleading.
Agreed:
I'm using a recent (nightly build) DrRacket (5.3.0.1--2012-04-12) on Vista
and observe that 'roman works, but 'script and 'symbol fail with the
message at the top left corner of the frame in a normal sized windows
system font.
- Kieron.
On Fri, Apr 20, 2012 at 7:33 AM, Harry Spier wrote:
> Dea
Try putting the RewriteRule inside a Location directive in the apache
config:
RewriteEngine on
RewriteRule ^(.*)$ http://localhost:8080/$1 [P,NE]
Does that help?
On 04/20/2012 09:16 AM, J G Cho wrote:
My search on previous discussions on this topic did not bring up a
definitive answer so all
at the very least, he may use a fac-simile
(define (for/list from to f)
(if (> from to) '()
(cons (f from)
(for/list (+ 1 from) to f
(define (id x) x)
(define (double n) (+ n n))
(define (fact n) (apply + (for/list 1 n id)))
(for/list 1 10 double)
(for/list 1 10 fact)
(fo
My search on previous discussions on this topic did not bring up a
definitive answer so allow me to ask this question one more time.
First, what does work:
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8000/
However, t
On Thu, Apr 19, 2012 at 11:30 PM, John Clements
wrote:
> Is WeScheme pinned on beginner for a while? My son is interested in writing a
> simple turn-based RPG in WeScheme---something it seems admirably suited for,
> by and large--but I'm dying for things like for/list. Am I missing a simple
> s
Hi,
It looks like there is some error in section 6.1.1 of the Racket Guide.
I think the picture is incorrect in that it show the files that should have
been in 'machine' folder in 'db' folder and vice versa. The code sample
refers them correctly I think but the picture is misleading.
Bikal
_
On Wed, Apr 18, 2012 at 08:54:54PM +0200, Pedro wrote:
> So to put it in a simple way, I need to tokenize all my data and
> create an index which I load into memory...?
> Is this how it is usually done? For example, does my browser (firefox)
> keep an index of all the words present in urls and page
Here is a solution in the DrRacket beginner language:
(require 2htdp/universe)
(require 2htdp/image)
(define (bundle x) (make-bundle x '() '()))
(launch-many-worlds
(universe 'n/a (on-new (λ (u nw) (bundle u))) (on-msg (λ (u w m) (bundle m)))
(state #t))
(big-bang 'n/a (to-draw (λ (w) (emp
I've created a simple message-box. It expands in width to display the
message, but if the title is longer than the message, then the title
is cut-off. Is there any way to have the message-box expand enough to
display the title in that case.
Thanks,
Harry Spier
Racket Users
Dear list members,
I'm using Windows Vista
When I create a window with a title as follows:
#lang racket/gui
;Top level window
(define main-ocr-frame (new frame%
[label "DEVANAGARI OCR"]
[width 1]
The right approach here, I believe, is to have some fields in the
canvas% that hold the most recently seen x and y coordinates. In
on-event, update those fields and call the refresh method of the
canvas. In on-paint, draw based on those coordinates.
Robby
On Thu, Apr 19, 2012 at 1:32 PM, Patrick
On Fri, Apr 20, 2012 at 2:16 AM, Laurent wrote:
>
> After developing a tool using a development link, I want to test the file
> injection of the package, so I removed the link.
> The problem is that the tool still loads on DrRacket startup, even though
> the development link does not appear in `ra
23 matches
Mail list logo