I can successfully serve one stateless webserver from one racket webserver
file.
I'd like to serve multiple stateless webservers from one racket webserver
file.
(define (my-app req)
(response/full
200 #"Okay"
(current-seconds) TEXT/HTML-MIME-TYPE
empty
(list (string->bytes/utf-8 (i
I don't see why the collection resolver has a problem because the desired
collection path: #, is shown to
be in the current-library-collection-paths:
(current-library-collection-paths)
'(# #
#)
Thanks
Don.
--
You received this message because you are subscribed to the Google Groups
"Racket
For some reason, the collection directories below does not include the only
collection directory that I use:
/home/don/.plt-scheme/4.2.1/collects
which I do have showing up in DrRacket's options: /Language/Choose
Language/ Collection Paths:
<>
/home/don/.plt-scheme/4.2.1/collects
--
$ raco setup ?
collection-path: collection not found
collection: "t"
in collection directories:
/home/don/.plt-scheme/4.2.1/collects
/home/don/.racket/8.1/collects
/home/don/racket/collects/
... [175 additional linked and package directories]
Thanks
--
You received this message b
$ raco setup ?
collection-path: collection not found
collection: "t"
How do I go about finding and removing: collection: "t" ?
Thanks.
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails f
The Racket Web Server makes use of a default index.html file that contains
the following 2 lines:
Welcome to the Racket Web server!
:
Please replace this page with your favorite index page.
Since relplacing the file is not sufficient to effect the change, I think
it must be necessary force
Does Racket have a function that returns the Package Source set in DrRacket?
The value can be set in:
DrRacket/Package Manager/Package Source:
I am looking for a way to obtain that value.
Thanks
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
Looking to trigger the end of a loop by the creation of a file.
Is this possible? Is this advisable?
Currently using:
a 'for' loop with
a 'for' loop guard expression to test for the existence of a file.
Tried file-exists? but that does not seem appropriate.
Tried using Racket function: filesystem-
When I specify 2 frames to be side-by-side using racket/gui, I believe I
would have no problem if all my prospective client platform did not have a
vertical Operating System taskbars.
Since I do have such a taskbar I must use code that takes the width of the
taskbar into account.
Since I intend
Is it true that 2 side-by-side frames must not be placed within a
horizontal-pane because the a frame's parent can only be another frame?
Thanks
Don
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receivi
Is there a racket/gui fn that returns width of an Operating System vertical
toolbar?
In linux and I imagine on Windows and macOS, when there exists a vertical
OS toolbar the values returned by get-display-size and get-client-size are
the same and are insufficient.
So,
Is there a racket/gui fn
In the case where there exists a vertical Operating System toolbar:
Creating a frame width that is half of the width given by
(get-display-size), then moving the resulting window to the right and left
of the screen you can see that if you had 2 windows of the same size they
would not touch each
Creating a frame width that is half of the width given by
(get-display-size), then moving the resulting window to the right and left
of the screen you can see that if you had 2 windows of the same size they
would not touch each other as you would expect.
For some reason, dividing the total pixel
How do I create a scrollable popup window?
I can create a dialog that is a popup but it is not scrollable.
The dialog class does not appear to have a scroll option.
Is this where I use a 'panel' class instead of the 'dialog' class?
--
You received this message because you are subscribed to the
Is it possible to specify a hierarchy of menu-item options in racket/gui
more than 2 deep?
In other words, I am able to define menu-item options such that I do get a
menu-bar with options that present sub options and I can call functions
using 'callback' from those suboptions, but I have thus f
When I specify as follows:
(define dialog2 (new dialog%
(label "Get-Prototype-dialog")
(style resize-border)
))
Returned error:
resize-border: unbound identifier in: resize-border
--
You received this message because yo
..
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com
Is it possible to effectively display a window with a bitmap background?
In racket/gui, I can see how to apply a bitmap to a button.
If the only way to display a bitmap is in a button, is it practical to size
the button to the entire frame or pane in the frame?
--
You received this message beca
Can I break my racket/gui program be broken down into multiple modules?
I am able to require modules through the callback function but not the GUI
definitions themselves.
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this
Where is the documentation that describes how to interpret the racket
syntax?
For example:
(get-file (message parent directory ...)) ;where the arg list of options
are optional but if included are positional meaning that to specify an
argument such as 'directory' means that the previous 2 args
I want the file manipulation popup in racket/gui to display a specified
dir, not the current directory.
Is that possible?
(get-file #f f) ;displays the popup showing the current directory in frame
f.
I expected the following to display the popup showing the specified
directory but it does not:
June 6, 2021 at 7:23:15 PM UTC-6 Philip McGrath wrote:
> On Sun, Jun 6, 2021 at 7:59 PM Ben Greenman wrote:
>
>> On 6/6/21, Don Green wrote:
>> >
>> > Can a new user defined pkg encompass nothing more than references to
>> > previously defined pkgs so
Can a new user defined pkg encompass nothing more than references to
previously defined pkgs so that every user created module references a
single user defined pkg?
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this gro
rch-paths
> <https://docs.racket-lang.org/reference/collects.html?q=PLTCOLLECTS#%28def._%28%28quote._~23~25kernel%29._use-user-specific-search-paths%29%29>
> ) in each case?
> On 6/5/21 6:39 PM, Don Green wrote:
>
> When I run drracket v 8.1 the additional collection is in e
When I run drracket v 8.1 the additional collection is in effect as
evidenced by:
(current-library-collection-paths) returns:
'(#
# #)
however when I open drracket by clicking on a .rkt file
(current-library-collection-paths) returns:
'( #
#)
How to fix this?
--
You received this message bec
(current-library-collection-paths)
'(#
# #)
I suspect the above is incorrect because I think the 8.1 path should be to
dir: /pkgs rather than /collects. Like this:
#
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this g
Now that I have learned of: config.rktd,
I think I'd rather use it, if it can be used to set
current-library-collection paths.
Should I just add to the config.rktd hash list:
(current-library-collection paths .
'(#
# #))
--
You received this message because you are subscribed to the Google G
?
On Friday, June 4, 2021 at 7:21:17 AM UTC-6 Matthew Flatt wrote:
> At Thu, 3 Jun 2021 20:26:59 -0700 (PDT), Don Green wrote:
> > Using DrRacket in linux:
> > When I run DrRacket from a terminal,
> >
> > (current-library-collection-paths) returns the expected paths
Using DrRacket in linux:
When I run DrRacket from a terminal,
(current-library-collection-paths) returns the expected paths, 3 of them.
However, when I open one of my .ss files which is associated with drracket,
the file opens in drracket but (current-library-collection-paths) returns
only 2 of
After upgrading to racket v.8.0, the DrRacket 'run' button does not work
consistently with one click.
Previously, a single click of the 'run' button performed it's function.
Now, I must cycle between clicking on the 'run' button, then click anywhere
in the body of the window and repeat until the
>From Racket doc: "File permissions are transferred from src to dest; on
Windows, the modification time of src is also transferred to dest."
Is the above line meant to imply that a unix/linux version of Racket will
NOT preserve file attributes using copy-file?
--
You received this message beca
Racket documentation claims that copy-file preserves attributes but I find
that this is not the case. The destination file date is the current date,
not the source file date.
Comments?
Don
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To un
Using Racket on Ubuntu. Was Racket version 7 now version 8.
New default racket-prefs file is in effect.
Still have access to older versions of racket-prefs.
Thought the new Racket install would continue to reference my previous
racket-prefs file.
a) Any thoughts about why any time I install new R
I have several versions of Racket installed.
Is there a way to switch between using one version and another? Example:
use Racket 8
then switch back to using Racket 7.
If there is no point in going back to a previous version, is there merit in
removing older versions.
Thanks. Don.
--
You rec
>> What if he has directories that aren’t part of an installed package? That
>> was my concern, and why I suggested manually deleting compiled subdirs.
>>
>
> That's right, but given:
>
> On Tue, Apr 13, 2021 at 8:16 PM Don Green wrote:
>
>> Welcome t
I have several versions of racket installed on Ubuntu linux at default
linux locations.
I think I should uninstall them all.
Then after downloading a PPA from the racket web site
install the version I want to a single directory. (I would be downloading
version: 7.8)
Does this sound like a plan so
apt get upgrade
Since Racket was installed on my system, apt get upgrade goes out and finds
the latest version of Racket and installs it. version 8.
I was having no problems with Racket.
In the future I'll use PPA to install new Racket versions when I want them
- and all to a single directory.
C
How to make a previously installed version of Racket current?
My O.S. is linux Ubuntu.
Is it a matter of running:
raco pkg install ...
again.
Thanks
Don.
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop rec
"You do not have permission to respond to author in this group."
upon clicking button [Respond To Author]
in Google Groups/ Racket
Is there a setting I can change or is just the way this group is configured
for all?
Thanks
Don
--
You received this message because you are subscribed to the Google
Should I be posting questions about Racket in us...@racket-lang.org?
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to racket-users+unsubscr...@googlegroups.com.
T
Any ideas what I can do to stop getting this message anytime I have
DrRacket running in 2 terminals in different workspaces on linux/Ubuntu.
"Error saving preferences" is the title in the popup window.
Text in the window is:
"The preferences file is locked (because ...) so your preference change
co
I could use some help narrowing down this problem using plt-web-server:
Context:
I can successfully run all code described in: Continue: Web Applications in
Racket, Chapters 1 through 17.
However, 'Chapter 18: Using HTTPS' where I run plt-web-server is giving me
a problem.
(I am using OS:Linux/Ubun
Racket code that could perform this list manipulation?
(every-n-lists-into-list '())
(every-n-lists-into-list 1 '((1) (2))) ;=> '(((1) (2)))
(every-n-lists-into-list 2 '((1) (2) (3) (4))) ;=> '(((1) (2)) ((3) (4)))
(every-n-lists-into-list 3 '((1) (2) (3) (4)) (5) (6))) ;=> '(((1) (2) (3))
((4) (5
;Design A:
;Rating: 1 out of 10
;Poor because it uses set!
(define print-two
(lambda (f)
(print (first f))
(set! f (rest f))
(print (first f))
(set! f (rest f))
f))
(void (print-two '(1 2))) ;=> 12
;-
;Design B:
;Rating: 2 out of 10
;Better because it nests
I looked in racket documentation and discussion archives for a
thread-through function as illustrated below but without success.
Any suggestions where I should look? OR please explain that line below only.
Looks like it is declaring thread-safe variables x e and any others I care
to list. Is that
What is/are the reason(s) for choosing the 'let*' construct over the
'define' construct?
(define (print-two f)
(let* ([_ (print (first f))]
[f (rest f)]
[_ (print (first f))]
[f (rest f)])
f))
(define print-two
(lambda (f)
(print (first f))
(set! f (rest f
?
In case it helps with the response, I am interested in reading more about
minimalist endeavours.
Thanks
Don Green
Racket Users list:
http://lists.racket-lang.org/users
Can Racket be installed under superuser (su) for administrative access to
all directories?
Any comments?
Thanks
Don Green
Racket Users list:
http://lists.racket-lang.org/users
inks method and also the planet software that
provides a sudo wrapper on some racket commands, but I have reasons for
wanting to first try the approach I am attempting above.
Thanks for any suggestions.
Don Green
Racket Users list:
http://lists.racket-lang.org/users
function is recommend?
I am aware of the (cdr (or ... form.
I am aware of the cond ... test-expr => proc-expr] form option.
Thanks
Don Green
Racket Users list:
http://lists.racket-lang.org/users
a\"b") ; => '("\"b" "b")
I'd prefer:
(regexp... "a\"b" ) ; => '("b")
Thanks.
Don Green
Racket Users list:
http://lists.racket-lang.org/users
I do not understand:
;To return pattern and everything left of first instance of pattern, use:
.*? inside #rx""; where ? means ___; or where .*? means
__; example:
(car (regexp-match* #rx".*?/" "12/4/6")) ; => "12/"
Can you replace
Regexp question: Is there a pattern that can match everything to left of
first pattern?
(regexp-match #rx"x.*" "12x4x6") ; => '("x4x6") ;returns everything to
right of first pattern x
(regexp-match #rx"___" "12x4x6") ; => '(&
each character I want matched but the
number of characters will vary. I imagine there might be a better way than
creating a function that counts the number of characters and then another
function that creates a regexp-match expression and another function that
runs that function.
Thanks for the advice.
Don Green
Racket Users list:
http://lists.racket-lang.org/users
*›|‹*regexp*›
Match either ‹*regexp*›, try left first
ex1
Thanks!
Don Green
Racket Users list:
http://lists.racket-lang.org/users
t;)
Any suggestions are appreciated. Thanks
Don Green
Racket Users list:
http://lists.racket-lang.org/users
series of characters with a function.
I cannot remove from a list, any series of characters with the same
function.
Any suggestions?
I can edit a file using string fns such as regexp-replace.
I have used list function: read-words/line.
Your advice?
Thanks.
Don Green
. My current work around is a call to an external program
which provides the regexp function at the speed needed.
Thanks for any comment(s).
Don Green
Racket Users list:
http://lists.racket-lang.org/users
What are the requirements & constraints for a function to be accepted for
inclusion in Racket?
Thanks
Don Green
Racket Users list:
http://lists.racket-lang.org/users
do this?
Thanks
Don Green
Racket Users list:
http://lists.racket-lang.org/users
Am I setting PLTCOLLECTS environment variable correctly?
Do I need to reference the PLTCOLLECTS variable somehow?
The following is contained in my shell file:
/home/don/Programs/hello-world.sh
#! /bin/bash
PLTCOLLECTS=/home/don/.plt-scheme/4.2.1/collects:
/home/don/bin/racket -t
/home/don/
I need (find-library-collection-paths) to return a list that includes the
path:
#
(find-library-collection-paths) ;returns:
'(#
#)
This path and directory exists:
#
What file contains the paths found by: (find-library-collection-paths)?
If so, should I manually add a path to that file
Please comment on the merits of 2 different methods of interfacing Racket
to a database.
Is Method B preferable to Method A? If so, why?
Method A
Instead of using the Racket fn:
(query-exec db1 "create temporary table table1 (...
I can use Racket's 'system' function, to issue SQLite3 sql com
Please comment on the merits of 2 different methods of interfacing Racket
to a database.
My use of the term ".import", is in reference to the SQLite3 database dot
command.
Is Method B preferable to Method A? If so, why?
Method A
Instead of using the Racket: connection function: (define db1
(s
How do I select "topic categories"?
Where do I define "topic categories"?
Under Racket list serve settings I see the following setting:
"Which topic categories would you like to subscribe to?" |No Topics Defined|
Clicking on the box containing the words "No Topics Defined", does nothing.
Do I n
One way to post a reply is by the gmane interface to this racket list serve,
then selecting the options: Action, then Follow Up.
Racket Users list:
http://lists.racket-lang.org/users
How to Gunzip
1) Create dirs: target and subdir: /target/source
2) Place all .gz files in subdir: /target/source
3) From target dir command line, run:
gunzip -r source ;note that the generated files at this stage are still not
readable.
4) Then run: zcat -r source > new.txt ;the file new.txt w
How to Gunzip
1) Create dirs: target and subdir: /target/source
2) Place all .gz files in subdir: /target/source
3) From target dir command line, run:
gunzip -r source ;note that the generated files at this stage are still
not readable.
4) Then run: zcat -r source > new.txt ;the file new.txt w
Hi,
Can I post answers to questions on users@racket-lang.org ?
If so, I am looking for some direction.
Is the entry point by email sent to users@racket-lang.org ?
If that is the case, how do I indicate the thread for it to appear under?
Thanks
Racket Users list:
http://li
Any ideas what the problem might be opening a .gz file on linux?
Gunzip goes through the motions and overwrites the 2012-June.txt.gz file,
creating file: 2012-June.txt. When a text editor attempts to open this
file, the file appears to have codes that prevent it from being
interpretted correctly.
For example,
I imagine that there were questions and answers about getting Racket to
access PLT Scheme collections.
I'd like to look for these on users@racket-lang.org archives but this seems
to be very tedious... select a dated archive, then seach for the subject,
select another dated archive, the
Hi,
The first line below shows my command line entry. The remaining lines show
the result.
Obviously, Racket is looking for a .rkt version of my .ss file. Do I
really have to change my extensions? There must be a better way.
Thanks
racket -i --addon /don/.plt-scheme/4.2.1/collects/DG/programs/a
Why are some Racket functions such a 'member' not designed as booleans?
I would expect 'member' to be a boolean.
I am inclined to write my own version of 'member' that is boolean.
Before I do, I am wondering if the bright person who designed the Racket
function: 'member', did so for some very good
Given the output of Racket's read-words/line function, which produces a
list of lists. Each word is in a list, each group of words on a line is in
a list, all within a list.
Any ideas on how to sort on the car (first element) of each list that
corresponds to a line?
In other words, I want to sort
I have been advised that when submitting bug reports I should not include
'required' statements that call my relevant collections.
Question 1: Should I copy any required collections directly into a copy of
my module before sending it along with my question? This would make the
code immediatly ex
I have been advised that when submitting bug reports I should not include
'required' statements that call my relevant collections.
Question 1: Should I copy any required collections directly into a copy of
my module before sending it along with my question? This would make the
code immediatly ex
What are some guidelines about use of paths?
Am I correct in thinking the following is a path:
#
Should I specify paths, such as above, rather than strings such as:
"/home/don/.plt-scheme/4.2.1/collects/DG/append2.ss"
(I notice that many Racket path functions convert my strings to paths. I
want t
Wondering...
Is the best way for me to learn about how to use Racket paths:
a) by asking the question in this mailing list,
OR,
b) by looking in some repository that has information on this. (If I
should look in a repository, which one?)
THANKS!
Racket Users list:
http://l
78 matches
Mail list logo