[racket-users] Possible to serve multiple stateless webservers?
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 (include-template "file.htm" ) (serve/servlet my-app #:listen-ip #f #:port 8000 #:servlet-path "/webserver.rkt" #:extra-files-paths (list (build-path "/home/don/ServerX/clients/a1")) #:stateless? #t ) ;With current configuration directory must contain both the .rkt and .htm files. ;Assuming 1 .rkt file could serve multiple servelets, I would also need to learn how to ;reference the .htm files in different directories. -- 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/d/msgid/racket-users/beaa2ef6-afd2-4686-829a-390eb69f5620n%40googlegroups.com. Beyond the Racket Users Google Group, Racket Discussions take place on Discourse ( https://racket.discourse.group/ ) and Discord ( https://discord.gg/6Zq8sH5 ). Discussion (but less active) also takes place on the Racket Slack https://racket.slack.com/ ( sign up at https://racket-slack.herokuapp.com/ ), and IRC #racket https://kiwiirc.com/nextclient/irc.libera.chat/#racket --- 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/d/msgid/racket-users/72c4ef76-cd88-4712-8305-f5da78caa040n%40googlegroups.com.
[racket-users] collection resolver problem...
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" 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/d/msgid/racket-users/8738956b-1416-4ed3-90ed-daca03343ea6n%40googlegroups.com.
[racket-users] How shall I add collection path?
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 -- Error Msg: standard-module-name-resolver: collection not found for module path: DG/all/copy-dir-without-subdirs collection: "DG/all" in collection directories: /home/don/.racket/8.1/collects /home/don/racket/collects/ ... [175 additional linked and package directories] context...: /home/don/racket/share/pkgs/scribble-lib/scribble/search.rkt:69:5: loop [repeats 1 more time] /home/don/racket/share/pkgs/scribble-lib/scribble/xref.rkt:122:2: xref-binding-tag .../private/coroutine.rkt:20:33 /home/don/racket/share/pkgs/gui-lib/framework/private/coroutine.rkt:47:20 /home/don/racket/share/pkgs/gui-lib/framework/private/coroutine.rkt:56:0: coroutine-run /home/don/racket/collects/racket/contract/private/arrow-val-first.rkt:486:18 /home/don/racket/share/pkgs/drracket/drracket/private/syncheck/blueboxes-gui.rkt:457:4: update-the-strs method in docs-text-gui-mixin /home/don/racket/share/pkgs/gui-lib/framework/private/logging-timer.rkt:41:0: log-timeline/proc /home/don/racket/share/pkgs/gui-lib/mred/private/wx/common/timer.rkt:34:38 /home/don/racket/share/pkgs/gui-lib/mred/private/wx/common/queue.rkt:435:6 /home/don/racket/share/pkgs/gui-lib/mred/private/wx/common/queue.rkt:486:32 /home/don/racket/share/pkgs/gui-lib/mred/private/wx/common/queue.rkt:634:3 -- 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/d/msgid/racket-users/e57f509e-613c-4dad-a72f-52a2c12b8fd0n%40googlegroups.com.
[racket-users] how could I obtain more context to isolate the problem?
$ 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 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/d/msgid/racket-users/68500d28-f497-456f-9eac-b44aeb5e4523n%40googlegroups.com.
[racket-users] how do I remove a specified collection?
$ 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 from it, send an email to racket-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/57fecc34-3485-415b-8c9d-fcb57ef4d15cn%40googlegroups.com.
[racket-users] replace this page with your favorite index page - how
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 a re-compile - in some way. Any recommendation? -- 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/d/msgid/racket-users/e0fe6f9e-67f6-4c41-b014-dcae3ee065bbn%40googlegroups.com.
[racket-users] function that returns Package Source string
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. 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/d/msgid/racket-users/58fbd58f-59ad-4957-8ab2-69373f5b98ben%40googlegroups.com.
[racket-users] Looking to trigger the end of a loop by the creation of a file.
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-change-evt but that did not seem appropriate. Is it possible to trigger an end condition on a 'for' loop by the creation of a file? I suspect my problem is that it takes a significant amount of time for the operating system to register the creation of a file. So maybe the best that can be done is to use file-exists? as it works but there a many loops of the 'for' loop before the end condition takes effect. Any comments? -- 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/d/msgid/racket-users/adaf4e50-7430-4d2e-923a-5a0cdff24ebfn%40googlegroups.com.
[racket-users] problem of gui layout using side-by-side frames
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 to distribute to others who may have: a) no vertical taskbar; or b) a wider vertical taskbar; or c) multiple vertical taskbars no single offset can be used and it is outside the scope of the racket/gui to know what the offset would need to be. I am currently of the belief that I should refrain from using side-by-side frames. The upshot is that I can then no longer use menus either because menus can only exist in frames and I would need more that the single top-level frame. Any suggestions? I am currently thinking I should use the panel-tab with a couple of panels each containing an editor-canvas and place buttons on these panels instead of using menus. -- 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/d/msgid/racket-users/55476319-ee52-46e4-8605-4f0822c806f8n%40googlegroups.com.
[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?
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 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/d/msgid/racket-users/47e3cecb-86e0-4e02-8c25-f52c55aabfc4n%40googlegroups.com.
[racket-users] racket/gui fn that returns width of O.S. toolbar?
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 that returns width of an Operating System vertical toolbar? 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 from it, send an email to racket-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/0dc0af8e-066a-43d3-b983-f8f272b16d45n%40googlegroups.com.
[racket-users] OS toolbar affects frame width and (get-display-size)...
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 other as you would expect. For some reason, dividing the total pixel width in HALF, DOES NOT give 2 windows that will fill the space. ;Instead there is a mysterious gap that happens to be about the width of the O.S. vertical toolbar. Can anyone explain? 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 from it, send an email to racket-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/224eef3b-7cba-42cb-a979-03b135438bd5n%40googlegroups.com.
[racket-users] frame width and (get-display-size) ...
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 width in HALF, DOES NOT give 2 windows that will fill the space. ;Instead there is a mysterious gap that happens to be about the width of the O.S. vertical toolbar. Can anyone explain? 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 from it, send an email to racket-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/1e605128-50b3-4578-bf60-2aaa68016006n%40googlegroups.com.
[racket-users] How do I create a scrollable popup window?
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 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/d/msgid/racket-users/c50eaeeb-2690-4da4-b7a0-43b97b10f970n%40googlegroups.com.
[racket-users] Is it possible to specify a hierarchy of menu-item options in racket/gui more than 2 deep?
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 far not been successful at creating a deeper hierarchy of subsuboptions. -- 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/d/msgid/racket-users/1378d110-2b7e-44bc-b717-e2f5358c2235n%40googlegroups.com.
[racket-users] Trying to specify resize-border for instance of dialog
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 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/d/msgid/racket-users/dea0122e-02ab-4d79-8432-e32b8e733fc4n%40googlegroups.com.
[racket-users] ..
.. -- 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/d/msgid/racket-users/b77baa3a-7ae6-44e0-a6e0-3f0aff1e9a2cn%40googlegroups.com.
[racket-users] Is it possible to effectively display a window with a bitmap background?
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 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/d/msgid/racket-users/565f3573-8759-4d72-8277-35bf3297befdn%40googlegroups.com.
[racket-users] Can I break my racket/gui program be broken down into multiple modules?
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 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/d/msgid/racket-users/ee435195-1c19-41ad-9f47-d37f30c63fdbn%40googlegroups.com.
Re: [racket-users] Using get-file in racket/gui ...
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 must also be specified. On Thursday, June 10, 2021 at 7:53:53 AM UTC-6 Plane wrote: > Of course, I meant the third, not fourth. Oops! > > On Thu, 10 Jun 2021, Crystal Jacobs wrote: > > > Looking at the docs: > > > > > https://docs.racket-lang.org/gui/Windowing_Functions.html?q=get-file#%28def._%28%28lib._mred%2Fmain..rkt%29._get-file%29%29 > > > > It seems like the second argument is the message shown in the title of > the > > pop-up window. You can include a path as the fourth argument: > > > > (get-file #f f "/home/don/projects") > > > > -Crystal > -- 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/d/msgid/racket-users/534bb7cb-b646-4cb5-ae7c-6d8c7d476ed2n%40googlegroups.com.
[racket-users] Using get-file in racket/gui ...
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: (get-file (string->path "/home/don/projects") f) Any suggestions? Don -- 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/d/msgid/racket-users/c1fdeeb1-e2c1-4ff1-8353-2d6e61399a61n%40googlegroups.com.
Re: [racket-users] Can a new user defined pkg encompass nothing more than references to previously defined pkgs?
Following from Philip's 3rd point, which I think is very relevant, I surmise that I really should: 1) build libraries ;that reference my code (These libraries are built within a user-defined package.) 2) Then my initial question, refined, becomes: Can a new user defined library encompass nothing more than references to previous user defined libraries? (I think the answer is: yes). 3) Since the library is said to be referenced through their collection-based paths this leads me to wonder: Am I expected to create my own pathed-collection that gives my code independence from the default installled racket pathed-collections? Then am I to use: (current-library-collection-links paths) to link my collection into the racket system? I would then expect (current-library-collection-paths) to return the 2 default racket v. 8.1 collection-paths, and my own collection-path. On Sunday, 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 that every user created module references a >> > single user defined pkg? >> >> Yes. You can make a new package whose main.rkt provides lots of >> identifiers from other packages. > > > I can see at least three different interpretations of the question. In an > attempt to clear up any possible misunderstandings, let me try to pull them > apart: > >1. Ben's answer is correct if the question really meant, "so that >every user created module references a single user defined" *module*. >The omnibus module (`#lang reprovide` is a good choice) may be in the same >package as other user-defined modules that use it, or additional packages >may depend on the package containing the omnibus module. >2. If the question instead meant, "so that every user created" >*package* "references a single user defined pkg", the answer is also >yes, but in a different way. A good example of this would be the >"typed-racket" package, which combines the packages "typed-racket-lib" and >"typed-racket-doc". The "typed-racket" consists simply of an "info.rkt" >file with appropriate definitions for `deps` and `implies`. >3. On the other hand, if the question literally meant, "so that every >user created module references a single user defined pkg", then the > answer, >strictly speaking, is no, because modules can not refer to packages per se. > > The third possibility is where I see the most potential for > misunderstanding. From Package Management in Racket", § 1.1 "What is a > Package?" < > https://docs.racket-lang.org/pkg/getting-started.html#%28part._.What_is_a_.Package_%29 > >: > >> A package >> <https://docs.racket-lang.org/pkg/Package_Concepts.html#%28tech._package%29> >> is not something that you refer to directly in your Racket programs. >> Instead, a package >> <https://docs.racket-lang.org/pkg/Package_Concepts.html#%28tech._package%29> >> is a set of libraries that fit into the collection >> <https://docs.racket-lang.org/reference/collects.html#%28tech._collection%29> >> >> hierarchy, and you refer to libraries through their collection >> <https://docs.racket-lang.org/reference/collects.html#%28tech._collection%29>-based >> >> paths. Libraries that are close in the hierarchy may be provided by >> different packages, while a single package may provide libraries that are >> far from each other in the hierarchy (but that are conceptually related, >> somehow). >> >> Racket documentation tells you which package provides a given library. >> For example, the documentation for the pict/face >> <https://docs.racket-lang.org/pict/More_Pict_Constructors.html#%28mod-path._pict%2Fface%29> >> >> library says that it is provided by the pict-lib package.If you’re >> reading this in a web browser, click pict/face >> <https://docs.racket-lang.org/pict/More_Pict_Constructors.html#%28mod-path._pict%2Fface%29> >> >> to go straight to its documentation. >> >> Over time, packages may be refactored so that a library moves to a >> different package, but the original package should continue to provide the >> library, too, by declaring a dependency on the new package. More generally, >> a package is intended to have an interface that only grows in terms of >> libraries, bindings, and functionality, which provides a basic level of >> backward compatibility. Incompatible changes should be implemented in a new >> package. >> > > -Philip > > -- 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/d/msgid/racket-users/02264bb7-27c0-4f79-9ad4-75626c3b4b7an%40googlegroups.com.
[racket-users] Can a new user defined pkg encompass nothing more than references to previously defined pkgs?
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 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/d/msgid/racket-users/e13fc410-8d3d-4ec0-a811-20b94832ad0bn%40googlegroups.com.
Re: [racket-users] PLTCOLLECTS env var is not always in effect - Why?
In reply to Sage Gerard: $ racket (use-user-specific-search-paths) ;returns: #t clicking on .rkt file that opens the file in racket: (use-user-specific-search-paths) ;returns: #t On Saturday, June 5, 2021 at 5:06:37 PM UTC-6 Sage Gerard wrote: > What is the value of (use-user-specific-search-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 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 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...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/racket-users/b219d197-9989-4a0e-9f92-ad8bec01fbb0n%40googlegroups.com > > <https://groups.google.com/d/msgid/racket-users/b219d197-9989-4a0e-9f92-ad8bec01fbb0n%40googlegroups.com?utm_medium=email_source=footer> > . > > -- > ~slg > > -- 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/d/msgid/racket-users/e4c2f150-e965-4666-9e9f-33be9266be3bn%40googlegroups.com.
[racket-users] PLTCOLLECTS env var is not always in effect - Why?
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 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/d/msgid/racket-users/b219d197-9989-4a0e-9f92-ad8bec01fbb0n%40googlegroups.com.
[racket-users] This v 8.1 collection path looks incorrect...
(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 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/d/msgid/racket-users/a48793dd-ef9e-4329-bbee-4d3f1aa2a6f4n%40googlegroups.com.
[racket-users] Re: config.rktd
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 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/d/msgid/racket-users/3ca2d559-93bf-4a90-9188-f1f1126638dan%40googlegroups.com.
Re: [racket-users] Regarding collections ...
To answer Mathew Flatt's question: "Do you expect 3" (paths) "because you have an environment variable set, or something like that? " Answer: Yes. I can run a shell file that contains: #! /bin/bash export PLTCOLLECTS="/home/don/.plt-scheme/4.2.1/collects:" Many of my programs are accessible from that path. --- Sounds like ideally I should begin creating my own pkg(s) that are outside a collection path, and link it by specifying a current-library-collection-links parameter. In the mean time I'd like to add the collection path. --- Currently, When I open DrRacket and run: (current-library-collection-paths) it returns: '(# # #) which is correct and no problems, however when I click on a .ss file in the file-manager, the file is opened in drracket v.8.1 but (current-library-collection-paths) returns only: '(# #) The problem seems to be that the file-manager needs to set PLTCOLLECTS="/home/don/.plt-scheme/4.2.1/collects: to set the env. variable so that drracket can find #. Is there a more convenient method to achieve what I am after by making some configuration in racket rather than in my file-manager? 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, 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 the 3 desired collection paths. > > I think we're missing some context: Why do you expect 3 paths from > `(current-library-collection-paths)`? > > A normal configuration would have just 2 paths, but it's possible to > have more due to command-line flags, environment variables, or > configuration in "config.rktd". Do you expect 3 because you have an > environment variable set, or something like that? > > > > Should I use info.rkt to specify the 3 desired collection paths? > > An "info.rkt" file will not change the collection-paths parameter. > Normally, instead of adding new collection paths, new collections are > added through packages. Those packages are found through the > `current-library-collection-links` parameter, which points to files > that contain more paths. > > > Matthew > -- 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/d/msgid/racket-users/f65fd3a4-8f74-44ab-933f-fc9a30a93933n%40googlegroups.com.
[racket-users] Regarding collections ...
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 the 3 desired collection paths. Should I use info.rkt to specify the 3 desired collection paths? -- 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/d/msgid/racket-users/9d0038c1-0b59-4da4-a025-870a0b3cc5d8n%40googlegroups.com.
[racket-users] DrRacket run button needs several clicks to work...
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 'run' function executes. Any suggestions? Seems like the run button does not acquire focus reliably. Anyone else experiencing this frustrating aspect? Thanks Don. (Racket is installed on Ubuntu v.16.04). -- 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/d/msgid/racket-users/e5394cc4-881c-4905-ab77-bad9cf6b5fe1n%40googlegroups.com.
[racket-users] copy-file does not preserve file attributes on linux version of Racket...
>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 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/d/msgid/racket-users/563b1c16-ec16-4b0f-86d8-a26a937e02abn%40googlegroups.com.
[racket-users] copy-file does not preserve attributes (file date)...
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 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/d/msgid/racket-users/ce3181be-4fdf-4f36-8c87-983d9877cc9an%40googlegroups.com.
[racket-users] racket-prefs
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 Racket it points to new racket-prefs file? b) Should I manually reconfigure the new racket-prefs file? c) Should I backup the new racket-prefs file and position a copy of the previous file in it's place? Thanks Don -- 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/d/msgid/racket-users/6cb07d53-d44c-4cc7-a694-521ea47e2bcan%40googlegroups.com.
[racket-users] Questions about multiple Racket installations...
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 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/d/msgid/racket-users/fcf25a75-cfe3-4ece-a65b-df55592845ean%40googlegroups.com.
Re: [racket-users] Is this a good uninstall then install Racket plan...
All I really need to do is click [Check Syntax] button in DrRacket and all the modules/files in the program recompile. So there really is no problem. Took me a while to realize this. I would still like confirmation that it should be okay for me to clean up by removing all versions of Racket that are no longer current (by: raco pkg remove ...) And I would still like to know that if I don't remove previously installed versions of Racket, that I can switch between them. How does one make a previously installed version - current. (I might choose to keep them installed if it is possible to ocassionally make use of them. If it is not possible to make any of them current, then there is no point in keeping them on my system.) Thanks. Don. On Tuesday, April 13, 2021 at 8:42:18 PM UTC-6 Philip McGrath wrote: > On Tue, Apr 13, 2021 at 10:31 PM John Clements > wrote: > >> 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 v8.0 [cs]. >> > (current-library-collection-paths) >> '(# >> # >> #) >> >> My code files all begin here: /home/don/.plt-scheme/4.2.1/collects/... >> > > It looks like the code files are all linked as collections directly (i.e. > not via the package system). I think `raco setup --clean && raco setup` > should take care of anything under those directory trees (recursively). > > -Philip > -- 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/d/msgid/racket-users/26a00595-092e-4b23-b3e9-233432e5dd8en%40googlegroups.com.
[racket-users] Is this a good uninstall then install Racket plan...
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 sound okay? I gather from the comments I have received from John Clements, that he suspects I am having some sort of problem that is motivating the desire to return to an earlier version of Racket. I believe the problem is where I have placed my racket code files. I've been putting off moving them and would like to continue putting off moving them. I inadvertently upgraded to Racket v8.0 a couple of days ago. Welcome to Racket v8.0 [cs]. > (current-library-collection-paths) '(# # #) My code files all begin here: /home/don/.plt-scheme/4.2.1/collects/... Racket error message when I run: $ my-prog read-compiled-linklet: version mismatch expected: "8.0" found: "7.8" in: /home/don/.plt-scheme/4.2.1/collects/DG/all/a/b/fn/filename-from-path-and-filename/compiled/filename-from-path-and-filename_ss.zo So, since my compiled file was compiled under Racket version 7.8, there is a mismatch since the Racket now installed is Racket v. 8.0. Thus the reason I'd like to return to running Racket v. 7.8. Thanks for your advice. Don -- 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/d/msgid/racket-users/134d170b-500d-4959-b842-6d4713329ffdn%40googlegroups.com.
[racket-users] I ran from a terminal: apt get upgrade
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. Currently, Racket is installed to linux default locations on my system. Is the only way for me to go back to an earlier version, I've got several installed, to use raco pkg install ... ? Don -- 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/d/msgid/racket-users/23cbd6e6-faa3-46ea-8114-8f672db71a0cn%40googlegroups.com.
[racket-users] How to make a previously installed version of Racket current?
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 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/d/msgid/racket-users/57b5f74e-25a0-4d21-aec8-bdd036e6673bn%40googlegroups.com.
[racket-users] "You do not have permission to respond to author in this group."
"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 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/d/msgid/racket-users/bcee693a-fbac-4716-8d59-512f3fc889b2n%40googlegroups.com.
[racket-users] Should I be posting questions about Racket in us...@racket-lang.org?
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. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/CANeurs%2BSLZLDXDpK_OsePowNuT%3DAQycJPnqLG_K-qFfZ8Gaw%3DA%40mail.gmail.com.
[racket-users] "Error saving preferences" when not trying to save preferences...
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 could not be saved." I am not trying to change preferences! The popup appears when I go back and forth between running instances of DrRacket. -- 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/d/msgid/racket-users/CANeurs%2BVA5po2Kk7KizB7AN5jDDGmBJ3oBn7B7qTAtG6i3SxPQ%40mail.gmail.com.
[racket-users] Help narrow down problem using plt-web-server:
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/Ubuntu 16.04). I suspect that I: (a) may be misusing plt-web-server; or (b) have not actually installed my server-cert.pem properly even though the verification operation indicates a successful installation: openssl verify -CApath /etc/ssl/certs server-cert.pem returns: server-cert.pem: OK ;or (c) may have some other problem. - From: .../collects/DG/programs/processorX/URL/proc/proc-url/proc-url.ss When I run plt-web-server from a terminal, at a $ prompt, in my application directory: $ plt-web-server --ssl I get the message: tcp-listen: listen failed port number: 443 system error: Address already in use; errno=98 context...: .../more-scheme.rkt:261:28 /usr/share/racket/pkgs/compatibility-lib/mzlib/kw.rkt:468:41: run-server Or When I run plt-web-server from a terminal, at a # prompt, in my application directory: # plt-web-server --ssl I get no feedback, and eventually close the terminal. - Q. I believe the port: 443 is a root level port, therefor I suspect I am expected to run plt-web-server as root. That is the only reason I am trying to run it from a # prompt. I have also tried running: $plt-web-server -p 8000 --ssl because I believe the 8000 port is not a root level port. Comments? Q. Can I run 'plt-web-server --ssl' from a terminal opened to any directory because it will, by default, refer to .../default-web-root/configuration-table.rkt? configuration-table.rkt contains line: (default-indices "index.html" "index.htm"), so I'll be happy to see that file displayed in my firefox browser. Q. Do I have to make a firefox-specific configuration regarding the server-cert.pem file? Q. I understand how to run my application as a servlet using racket -t . When I get one of these running properly: $plt-web-server --ssl or $plt-web-server [-f -p -a --ssl] where do I specify ? ...that I used when calling servlet with 'racket -t '. Seems that plt-web-server only runs either the default configuration-table.rkt or another configuration-table.rkt from another location if I specify it in the -f argument. Thanks Don. -- 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. For more options, visit https://groups.google.com/d/optout.
[racket-users] Given any list, group n number of sublists into a single list
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) (6))) Thanks Don -- 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. For more options, visit https://groups.google.com/d/optout.