[racket-users] Given any list, group n number of sublists into a single list

2017-05-17 Thread Don Green
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)

[racket-users] Help narrow down problem using plt-web-server:

2019-01-10 Thread Don Green
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

[racket-users] "Error saving preferences" when not trying to save preferences...

2020-05-29 Thread Don Green
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

[racket-users] Should I be posting questions about Racket in us...@racket-lang.org?

2020-10-31 Thread Don Green
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.

Re: [racket-users] Can a new user defined pkg encompass nothing more than references to previously defined pkgs?

2021-06-07 Thread Don Green
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

Re: [racket-users] Using get-file in racket/gui ...

2021-06-10 Thread Don Green
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

[racket-users] Using get-file in racket/gui ...

2021-06-10 Thread Don Green
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:

[racket-users] Can I break my racket/gui program be broken down into multiple modules?

2021-06-24 Thread Don Green
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

[racket-users] Is it possible to effectively display a window with a bitmap background?

2021-06-25 Thread Don Green
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-users] copy-file does not preserve attributes (file date)...

2021-05-10 Thread Don Green
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

[racket-users] copy-file does not preserve file attributes on linux version of Racket...

2021-05-10 Thread Don Green
>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

[racket-users] DrRacket run button needs several clicks to work...

2021-05-19 Thread Don Green
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

[racket-users] This v 8.1 collection path looks incorrect...

2021-06-04 Thread Don Green
(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

Re: [racket-users] Regarding collections ...

2021-06-04 Thread Don Green
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

[racket-users] Re: config.rktd

2021-06-04 Thread Don Green
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

[racket-users] PLTCOLLECTS env var is not always in effect - Why?

2021-06-05 Thread Don Green
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

Re: [racket-users] PLTCOLLECTS env var is not always in effect - Why?

2021-06-05 Thread Don Green
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

[racket-users] Can a new user defined pkg encompass nothing more than references to previously defined pkgs?

2021-06-06 Thread Don Green
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

[racket-users] Regarding collections ...

2021-06-03 Thread Don Green
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

[racket-users] Is it possible to specify a hierarchy of menu-item options in racket/gui more than 2 deep?

2021-06-25 Thread Don Green
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

[racket-users] How do I create a scrollable popup window?

2021-06-25 Thread Don Green
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

[racket-users] ..

2021-06-25 Thread Don Green
.. -- 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

[racket-users] Trying to specify resize-border for instance of dialog

2021-06-25 Thread Don Green
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

[racket-users] racket-prefs

2021-04-18 Thread Don Green
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

Re: [racket-users] Is this a good uninstall then install Racket plan...

2021-04-14 Thread Don Green
> 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

[racket-users] "You do not have permission to respond to author in this group."

2021-04-13 Thread Don Green
"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

[racket-users] I ran from a terminal: apt get upgrade

2021-04-13 Thread Don Green
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.

[racket-users] How to make a previously installed version of Racket current?

2021-04-13 Thread Don Green
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

[racket-users] Is this a good uninstall then install Racket plan...

2021-04-13 Thread Don Green
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

[racket-users] Questions about multiple Racket installations...

2021-04-14 Thread Don Green
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

[racket-users] frame width and (get-display-size) ...

2021-08-05 Thread Don Green
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

[racket-users] OS toolbar affects frame width and (get-display-size)...

2021-08-05 Thread Don Green
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

[racket-users] 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?

2021-08-07 Thread Don Green
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

[racket-users] racket/gui fn that returns width of O.S. toolbar?

2021-08-06 Thread Don Green
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

[racket-users] problem of gui layout using side-by-side frames

2021-08-11 Thread Don Green
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

[racket-users] Looking to trigger the end of a loop by the creation of a file.

2021-10-02 Thread Don Green
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:

[racket-users] function that returns Package Source string

2021-11-21 Thread Don Green
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.

[racket-users] replace this page with your favorite index page - how

2022-02-25 Thread Don Green
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

[racket-users] how do I remove a specified collection?

2022-08-08 Thread Don Green
$ 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

[racket-users] how could I obtain more context to isolate the problem?

2022-08-08 Thread Don Green
$ 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

[racket-users] How shall I add collection path?

2022-08-08 Thread Don Green
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

[racket-users] collection resolver problem...

2022-08-08 Thread Don Green
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-users] Possible to serve multiple stateless webservers?

2022-11-11 Thread Don Green
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