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)
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
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
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.
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 tha
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:
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
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
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
>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
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
(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
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, 3 of them.
> &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
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
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 i
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
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
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
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
..
--
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
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
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
> 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 to Racket v
"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
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.
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
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
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
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
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
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
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
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
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:
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.
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
$ 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
$ 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
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
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
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
43 matches
Mail list logo