Re: [racket-users] Re: Posting Events To Window Asynchronously From Different Thread?
I tried queue-callback this evening. Just what I needed! Thank you. -- 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.
Re: [racket-users] Re: Posting Events To Window Asynchronously From Different Thread?
I tried queue-callback this evening. Just what I needed! Thank you. On Monday, November 19, 2018 at 6:31:04 PM UTC-6, Alex Harsanyi wrote: > > The `send-message-to-window` has a corresponding `on-message` method which > needs to be implemented in the target control for it to do something useful > so it is not a general replacement for `PostMessage`, but it can be used > for cases where PostMessage is called with WM_USER, messages. > > The Windows `PostMessage` function is used for posting any message, and > windows GUI uses messages for everything. For example, to set the icon for > a toplevel window, one can send the WM_SETICON message as in: > > PostMessage(aWindow, WM_SETICON, ICON_SMALL, anIcon) > > The way to do hat in Racket is to call `set-icon`: > > (send a-frame set-icon an-icon #f 'small) > > However, the above call will have unexpected results if called from a > thread that is not the event handling thread: the correct way to make the > call from another thread is to use `queue-callback` like so: > > (queue-callback (lambda () (send a-frame set-icon an-icon #f 'small)) > > I am not sure which methods on GUI classes are safe to be called from a > non-event handling thread, but most of them are not, so I use > `queue-callback` for all such cases. The PostMessage call works from any > thread, not just the event handling thread, so this problem does exist in > the Win32 API. > > Alex. > > On Tuesday, November 20, 2018 at 6:32:14 AM UTC+8, Philip McGrath wrote: >> >> There is a send-message-to-window function ( >> http://docs.racket-lang.org/gui/Windowing_Functions.html#%28def._%28%28lib._mred%2Fmain..rkt%29._send-message-to-window%29%29), >> >> though I've never used it, and it sounds like it is different from what you >> describe. >> >> -Philip >> >> >> On Mon, Nov 19, 2018 at 5:22 PM Alex Harsanyi >> wrote: >> >>> >>> >>> I think `queue-callback` is the closest "general" equivalent: it allows >>> invoking methods on GUI objects from outside the event handler thread. It >>> can also be used to schedule some work to be done outside a GUI widget's >>> callback invocation. >>> >>> If you actually want to post specific messages to a window, you will >>> have to map "PostMessage" via FFI and you can find the target window handle >>> using `get-client-handle`. This will only work on the windows platform. >>> >>> >>> https://docs.racket-lang.org/gui/Windowing_Functions.html?q=ququq-callback#%28def._%28%28lib._mred%2Fmain..rkt%29._queue-callback%29%29 >>> >>> Alex. >>> >>> On Monday, November 19, 2018 at 7:42:12 PM UTC+8, Jason Stewart wrote: In Windows, we have a SendMessage() function for dispatching a window event synchronously, and PostMessage() for asynchronously queuing an event to a specified window from any thread. Is there a way to do PostMessage() from Racket's GUI library? Eventspaces feels warm, but couldn't find what I was looking for in it: https://docs.racket-lang.org/gui/windowing-overview.html?q=sleep#%28part._eventspaceinfo%29 -- >>> 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. >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- 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.
Re: [racket-users] Re: Posting Events To Window Asynchronously From Different Thread?
The `send-message-to-window` has a corresponding `on-message` method which needs to be implemented in the target control for it to do something useful so it is not a general replacement for `PostMessage`, but it can be used for cases where PostMessage is called with WM_USER, messages. The Windows `PostMessage` function is used for posting any message, and windows GUI uses messages for everything. For example, to set the icon for a toplevel window, one can send the WM_SETICON message as in: PostMessage(aWindow, WM_SETICON, ICON_SMALL, anIcon) The way to do hat in Racket is to call `set-icon`: (send a-frame set-icon an-icon #f 'small) However, the above call will have unexpected results if called from a thread that is not the event handling thread: the correct way to make the call from another thread is to use `queue-callback` like so: (queue-callback (lambda () (send a-frame set-icon an-icon #f 'small)) I am not sure which methods on GUI classes are safe to be called from a non-event handling thread, but most of them are not, so I use `queue-callback` for all such cases. The PostMessage call works from any thread, not just the event handling thread, so this problem does exist in the Win32 API. Alex. On Tuesday, November 20, 2018 at 6:32:14 AM UTC+8, Philip McGrath wrote: > > There is a send-message-to-window function ( > http://docs.racket-lang.org/gui/Windowing_Functions.html#%28def._%28%28lib._mred%2Fmain..rkt%29._send-message-to-window%29%29), > > though I've never used it, and it sounds like it is different from what you > describe. > > -Philip > > > On Mon, Nov 19, 2018 at 5:22 PM Alex Harsanyi > wrote: > >> >> >> I think `queue-callback` is the closest "general" equivalent: it allows >> invoking methods on GUI objects from outside the event handler thread. It >> can also be used to schedule some work to be done outside a GUI widget's >> callback invocation. >> >> If you actually want to post specific messages to a window, you will have >> to map "PostMessage" via FFI and you can find the target window handle >> using `get-client-handle`. This will only work on the windows platform. >> >> >> https://docs.racket-lang.org/gui/Windowing_Functions.html?q=ququq-callback#%28def._%28%28lib._mred%2Fmain..rkt%29._queue-callback%29%29 >> >> Alex. >> >> On Monday, November 19, 2018 at 7:42:12 PM UTC+8, Jason Stewart wrote: >>> >>> In Windows, we have a SendMessage() function for dispatching a window >>> event synchronously, and PostMessage() for asynchronously queuing an event >>> to a specified window from any thread. >>> >>> Is there a way to do PostMessage() from Racket's GUI library? >>> >>> Eventspaces feels warm, but couldn't find what I was looking for in it: >>> >>> >>> https://docs.racket-lang.org/gui/windowing-overview.html?q=sleep#%28part._eventspaceinfo%29 >>> >>> >>> -- >> 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 . >> For more options, visit https://groups.google.com/d/optout. >> > -- 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.
Re: [racket-users] Racket-on-Chez snapshot builds
> On Nov 19, 2018, at 2:06 PM, Matthew Flatt wrote: > > Although Racket-on-Chez is not yet ready to replace the existing > implementation of Racket for most purposes, it should generally work > now --- and it might even be useful for some purposes. Many, many > details have to be right for Racket-on-Chez to assemble itself into a > snapshot distribution, so this is a significant milestone. Thank you for the all your effort & hard work to get Racket-on-Chez this far. This week, I've gone over to using the Racket-on-Chez snapshots exclusively. They are stable & fast enough for everything I do with Racket. There are bugs, of course, though so far all small. And Matthew has been fixing them as fast as I can file them. For that matter, if you've ever wondered "what can I do to improve Racket-on-Chez, without being a 1337 h4x0r?" I suggest that you also use the snapshots and file bugs. Because that will make Racket-on-Chez better, sooner, for everyone. One tip, if you haven't used the snapshots before (I hadn't): I've switched to installing my own packages in "--scope user" rather than "--scope installation". This keeps the packages out of the snapshot folder, so the snapshot can be easily replaced without disturbing the rest. To infinity and beyond. -- 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.
Re: [racket-users] Re: Posting Events To Window Asynchronously From Different Thread?
There is a send-message-to-window function ( http://docs.racket-lang.org/gui/Windowing_Functions.html#%28def._%28%28lib._mred%2Fmain..rkt%29._send-message-to-window%29%29), though I've never used it, and it sounds like it is different from what you describe. -Philip On Mon, Nov 19, 2018 at 5:22 PM Alex Harsanyi wrote: > > > I think `queue-callback` is the closest "general" equivalent: it allows > invoking methods on GUI objects from outside the event handler thread. It > can also be used to schedule some work to be done outside a GUI widget's > callback invocation. > > If you actually want to post specific messages to a window, you will have > to map "PostMessage" via FFI and you can find the target window handle > using `get-client-handle`. This will only work on the windows platform. > > > https://docs.racket-lang.org/gui/Windowing_Functions.html?q=ququq-callback#%28def._%28%28lib._mred%2Fmain..rkt%29._queue-callback%29%29 > > Alex. > > On Monday, November 19, 2018 at 7:42:12 PM UTC+8, Jason Stewart wrote: >> >> In Windows, we have a SendMessage() function for dispatching a window >> event synchronously, and PostMessage() for asynchronously queuing an event >> to a specified window from any thread. >> >> Is there a way to do PostMessage() from Racket's GUI library? >> >> Eventspaces feels warm, but couldn't find what I was looking for in it: >> >> >> https://docs.racket-lang.org/gui/windowing-overview.html?q=sleep#%28part._eventspaceinfo%29 >> >> >> -- > 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. > -- 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] Re: Posting Events To Window Asynchronously From Different Thread?
I think `queue-callback` is the closest "general" equivalent: it allows invoking methods on GUI objects from outside the event handler thread. It can also be used to schedule some work to be done outside a GUI widget's callback invocation. If you actually want to post specific messages to a window, you will have to map "PostMessage" via FFI and you can find the target window handle using `get-client-handle`. This will only work on the windows platform. https://docs.racket-lang.org/gui/Windowing_Functions.html?q=ququq-callback#%28def._%28%28lib._mred%2Fmain..rkt%29._queue-callback%29%29 Alex. On Monday, November 19, 2018 at 7:42:12 PM UTC+8, Jason Stewart wrote: > > In Windows, we have a SendMessage() function for dispatching a window > event synchronously, and PostMessage() for asynchronously queuing an event > to a specified window from any thread. > > Is there a way to do PostMessage() from Racket's GUI library? > > Eventspaces feels warm, but couldn't find what I was looking for in it: > > > https://docs.racket-lang.org/gui/windowing-overview.html?q=sleep#%28part._eventspaceinfo%29 > > > -- 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.
Re: [racket-users] Racket-on-Chez snapshot builds
If you use Travis CI with Greg's wonderful https://github.com/greghendershott/travis-racket script, as of this morning you can build against the Racket-on-Chez snapshots by adding a "RACKET_VERSION" of "HEADCS" to your build matrix. -Philip On Mon, Nov 19, 2018 at 5:06 PM Matthew Flatt wrote: > The Utah snapshot site now includes Racket-on-Chez builds for x86_64 > Windows, Mac OS, and Linux: > > http://pre.racket-lang.org/ >-> follow the "University of Utah" link >-> scroll down to "Racket CS" > > Although Racket-on-Chez is not yet ready to replace the existing > implementation of Racket for most purposes, it should generally work > now --- and it might even be useful for some purposes. Many, many > details have to be right for Racket-on-Chez to assemble itself into a > snapshot distribution, so this is a significant milestone. > > Try it out. Report bugs at > >https://github.com/racket/racket/issues > > > Here are some issues that we already know about: > > * Load times can be slower. > > * Compile times can be slower, including package installation. > > * Errors that originate from Chez Scheme have non-Rackety messages. >Values in those error message can look especially strange. > > * Not all `racket` command-line arguments are handled, yet. > > * Not all core Racket tests pass, yet. > > * No cross-compilation, yet. > > * No single-precision flonums, no extflonums. > > -- > 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. > -- 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] Racket-on-Chez snapshot builds
The Utah snapshot site now includes Racket-on-Chez builds for x86_64 Windows, Mac OS, and Linux: http://pre.racket-lang.org/ -> follow the "University of Utah" link -> scroll down to "Racket CS" Although Racket-on-Chez is not yet ready to replace the existing implementation of Racket for most purposes, it should generally work now --- and it might even be useful for some purposes. Many, many details have to be right for Racket-on-Chez to assemble itself into a snapshot distribution, so this is a significant milestone. Try it out. Report bugs at https://github.com/racket/racket/issues Here are some issues that we already know about: * Load times can be slower. * Compile times can be slower, including package installation. * Errors that originate from Chez Scheme have non-Rackety messages. Values in those error message can look especially strange. * Not all `racket` command-line arguments are handled, yet. * Not all core Racket tests pass, yet. * No cross-compilation, yet. * No single-precision flonums, no extflonums. -- 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.
Re: [racket-users] What is the expected PLT package catalog refresh rate? Is it not refreshing now?
The package build server runs overnight, so the documentation should show up some time tomorrow morning. Maybe, though, it would be better if the catalog recognized that there is documentation in the "info.rkt" file and gave a more specific message when the only problem is that it just hasn't built yet. -Philip On Mon, Nov 19, 2018 at 3:44 PM Ryan Kramer wrote: > Thanks Jay, it looks like it worked. Or at least, "raco pkg install > plisqin" works. But I'm not sure why "This package needs documentation" > still shows up. Is something wrong with my info.rkt, or should I give PLT > some more time? > > David, thanks for your interest. Did you install using "raco pkg install > plisqin"? Because then you should be able to find the documentation in your > pkgs directory. On my Windows machine, it gets installed here: > C:/Users/kramer/AppData/Roaming/Racket/7.1/pkgs/plisqin/doc/plisqin/index.html > Now, to answer your questions: > 1) The DB diagram came from SQL Server Management Studio. > 2) This could be a nice feature to have. Take a look at sections 3.2.1 and > 3.2.2 to see how I generate the code manually for now. > 3) I don't see myself getting into DDL anytime soon. I am primarily > focused on queries right now. Maybe take a look at section 6.1 to see what > I'm thinking about doing next. > > > On Mon, Nov 19, 2018 at 10:58 AM David Storrs > wrote: > >> >> >> On Mon, Nov 19, 2018 at 11:50 AM Jay McCarthy >> wrote: >> >>> That error means, "The package server knows about this package but >>> never got a checksum, so I'm giving up." It would be fixed once the >>> server updates (which I just noticed it do after I kicked it for >>> Kramer) >>> >> >> Cool, thanks for letting me know. >> >> >> Kramer, this package looks very cool. I skimmed through the examples but >> didn't dive deep, so I still have a lot of questions. Full documentation >> would be great, but filling in the README would be more than enough. >> >> Some of the aforementioned questions: >> >> * Did the code autogenerate that UML diagram, or did you create it >> elsewhere? >> >> * Can plisqin introspect an existing database and generate code to >> describe it? If not, is that a feature you would consider adding? It >> would be nice to be able to start from an existing schema, then evolve it >> from the code. >> >> * If you do have/add the 'introspect an existing DB' functionality, it >> would allow you to auto-generate DDL for upgrade / rollback on the schema. >> Is that a feature you might add? >> >> >> >>> Jay >>> On Mon, Nov 19, 2018 at 11:47 AM David Storrs >>> wrote: >>> > >>> > I tried to install it and got this: >>> > >>> > $ raco pkg install plisqin >>> > Resolving "plisqin" via >>> https://download.racket-lang.org/releases/6.11/catalog/ >>> > Resolving "plisqin" via https://pkgs.racket-lang.org >>> > raco pkg install: cannot use empty checksum for Git repostory package >>> source >>> > source: https://github.com/default-kramer/plisqin.git >>> > >>> > You can force a refresh by going to the top-right corner where your >>> name is, click that, and then choose "re-scan all my packages". >>> > >>> > >>> > >>> > On Sun, Nov 18, 2018 at 8:03 PM wrote: >>> >> >>> >> I've just uploaded a package to the PLT catalog: >>> https://pkgd.racket-lang.org/pkgn/search?tags=author%3Adefault.kramer%40gmail.com >>> >> >>> >> But I don't think it is refreshing? It tells me "This package has >>> been modified since the package index was last rebuilt. The next index >>> refresh is scheduled for Monday, November 19th, 2018 12:58:07am (UTC)." >>> >> >>> >> It always says the next refresh is less than 5 minutes away. But the >>> message remains.after waiting 5 or more minutes. >>> >> >>> >> (Other clues that make me think it is not refreshing: PLT tells me >>> "This package needs documentation" even though it has documentation. And >>> "raco pkg install plisqin" finds nothing.) >>> >> >>> >> -- >>> >> 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. >>> > >>> > -- >>> > 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. >>> >>> >>> >>> -- >>> -=[ Jay McCarthy http://jeapostrophe.github.io]=- >>> -=[ Associate ProfessorPLT @ CS @ UMass Lowell ]=- >>> -=[ Moses 1:33: And worlds without number have I created; ]=- >>> >>> -- >>> 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
Re: [racket-users] What is the expected PLT package catalog refresh rate? Is it not refreshing now?
Thanks Jay, it looks like it worked. Or at least, "raco pkg install plisqin" works. But I'm not sure why "This package needs documentation" still shows up. Is something wrong with my info.rkt, or should I give PLT some more time? David, thanks for your interest. Did you install using "raco pkg install plisqin"? Because then you should be able to find the documentation in your pkgs directory. On my Windows machine, it gets installed here: C:/Users/kramer/AppData/Roaming/Racket/7.1/pkgs/plisqin/doc/plisqin/index.html Now, to answer your questions: 1) The DB diagram came from SQL Server Management Studio. 2) This could be a nice feature to have. Take a look at sections 3.2.1 and 3.2.2 to see how I generate the code manually for now. 3) I don't see myself getting into DDL anytime soon. I am primarily focused on queries right now. Maybe take a look at section 6.1 to see what I'm thinking about doing next. On Mon, Nov 19, 2018 at 10:58 AM David Storrs wrote: > > > On Mon, Nov 19, 2018 at 11:50 AM Jay McCarthy > wrote: > >> That error means, "The package server knows about this package but >> never got a checksum, so I'm giving up." It would be fixed once the >> server updates (which I just noticed it do after I kicked it for >> Kramer) >> > > Cool, thanks for letting me know. > > > Kramer, this package looks very cool. I skimmed through the examples but > didn't dive deep, so I still have a lot of questions. Full documentation > would be great, but filling in the README would be more than enough. > > Some of the aforementioned questions: > > * Did the code autogenerate that UML diagram, or did you create it > elsewhere? > > * Can plisqin introspect an existing database and generate code to > describe it? If not, is that a feature you would consider adding? It > would be nice to be able to start from an existing schema, then evolve it > from the code. > > * If you do have/add the 'introspect an existing DB' functionality, it > would allow you to auto-generate DDL for upgrade / rollback on the schema. > Is that a feature you might add? > > > >> Jay >> On Mon, Nov 19, 2018 at 11:47 AM David Storrs >> wrote: >> > >> > I tried to install it and got this: >> > >> > $ raco pkg install plisqin >> > Resolving "plisqin" via >> https://download.racket-lang.org/releases/6.11/catalog/ >> > Resolving "plisqin" via https://pkgs.racket-lang.org >> > raco pkg install: cannot use empty checksum for Git repostory package >> source >> > source: https://github.com/default-kramer/plisqin.git >> > >> > You can force a refresh by going to the top-right corner where your >> name is, click that, and then choose "re-scan all my packages". >> > >> > >> > >> > On Sun, Nov 18, 2018 at 8:03 PM wrote: >> >> >> >> I've just uploaded a package to the PLT catalog: >> https://pkgd.racket-lang.org/pkgn/search?tags=author%3Adefault.kramer%40gmail.com >> >> >> >> But I don't think it is refreshing? It tells me "This package has been >> modified since the package index was last rebuilt. The next index refresh >> is scheduled for Monday, November 19th, 2018 12:58:07am (UTC)." >> >> >> >> It always says the next refresh is less than 5 minutes away. But the >> message remains.after waiting 5 or more minutes. >> >> >> >> (Other clues that make me think it is not refreshing: PLT tells me >> "This package needs documentation" even though it has documentation. And >> "raco pkg install plisqin" finds nothing.) >> >> >> >> -- >> >> 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. >> > >> > -- >> > 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. >> >> >> >> -- >> -=[ Jay McCarthy http://jeapostrophe.github.io]=- >> -=[ Associate ProfessorPLT @ CS @ UMass Lowell ]=- >> -=[ Moses 1:33: And worlds without number have I created; ]=- >> >> -- >> 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. >> > -- 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.
Re: [racket-users] Posting Events To Window Asynchronously From Different Thread?
I haven't done a lot of work with the GUI so there might be a more appropriate mechanism that I'm not aware of, but I suspect that async channels would fit your needs: https://docs.racket-lang.org/reference/async-channel.html Define a channel, have one GUI element read from it and other GUI elements write to it. On Mon, Nov 19, 2018 at 6:42 AM Jason Stewart wrote: > In Windows, we have a SendMessage() function for dispatching a window > event synchronously, and PostMessage() for asynchronously queuing an event > to a specified window from any thread. > > Is there a way to do PostMessage() from Racket's GUI library? > > Eventspaces feels warm, but couldn't find what I was looking for in it: > > > https://docs.racket-lang.org/gui/windowing-overview.html?q=sleep#%28part._eventspaceinfo%29 > > > -- > 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. > -- 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.
Re: [racket-users] What is the expected PLT package catalog refresh rate? Is it not refreshing now?
On Mon, Nov 19, 2018 at 11:50 AM Jay McCarthy wrote: > That error means, "The package server knows about this package but > never got a checksum, so I'm giving up." It would be fixed once the > server updates (which I just noticed it do after I kicked it for > Kramer) > Cool, thanks for letting me know. Kramer, this package looks very cool. I skimmed through the examples but didn't dive deep, so I still have a lot of questions. Full documentation would be great, but filling in the README would be more than enough. Some of the aforementioned questions: * Did the code autogenerate that UML diagram, or did you create it elsewhere? * Can plisqin introspect an existing database and generate code to describe it? If not, is that a feature you would consider adding? It would be nice to be able to start from an existing schema, then evolve it from the code. * If you do have/add the 'introspect an existing DB' functionality, it would allow you to auto-generate DDL for upgrade / rollback on the schema. Is that a feature you might add? > Jay > On Mon, Nov 19, 2018 at 11:47 AM David Storrs > wrote: > > > > I tried to install it and got this: > > > > $ raco pkg install plisqin > > Resolving "plisqin" via > https://download.racket-lang.org/releases/6.11/catalog/ > > Resolving "plisqin" via https://pkgs.racket-lang.org > > raco pkg install: cannot use empty checksum for Git repostory package > source > > source: https://github.com/default-kramer/plisqin.git > > > > You can force a refresh by going to the top-right corner where your name > is, click that, and then choose "re-scan all my packages". > > > > > > > > On Sun, Nov 18, 2018 at 8:03 PM wrote: > >> > >> I've just uploaded a package to the PLT catalog: > https://pkgd.racket-lang.org/pkgn/search?tags=author%3Adefault.kramer%40gmail.com > >> > >> But I don't think it is refreshing? It tells me "This package has been > modified since the package index was last rebuilt. The next index refresh > is scheduled for Monday, November 19th, 2018 12:58:07am (UTC)." > >> > >> It always says the next refresh is less than 5 minutes away. But the > message remains.after waiting 5 or more minutes. > >> > >> (Other clues that make me think it is not refreshing: PLT tells me > "This package needs documentation" even though it has documentation. And > "raco pkg install plisqin" finds nothing.) > >> > >> -- > >> 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. > > > > -- > > 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. > > > > -- > -=[ Jay McCarthy http://jeapostrophe.github.io]=- > -=[ Associate ProfessorPLT @ CS @ UMass Lowell ]=- > -=[ Moses 1:33: And worlds without number have I created; ]=- > > -- > 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. > -- 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.
Re: [racket-users] What is the expected PLT package catalog refresh rate? Is it not refreshing now?
That error means, "The package server knows about this package but never got a checksum, so I'm giving up." It would be fixed once the server updates (which I just noticed it do after I kicked it for Kramer) Jay On Mon, Nov 19, 2018 at 11:47 AM David Storrs wrote: > > I tried to install it and got this: > > $ raco pkg install plisqin > Resolving "plisqin" via > https://download.racket-lang.org/releases/6.11/catalog/ > Resolving "plisqin" via https://pkgs.racket-lang.org > raco pkg install: cannot use empty checksum for Git repostory package source > source: https://github.com/default-kramer/plisqin.git > > You can force a refresh by going to the top-right corner where your name is, > click that, and then choose "re-scan all my packages". > > > > On Sun, Nov 18, 2018 at 8:03 PM wrote: >> >> I've just uploaded a package to the PLT catalog: >> https://pkgd.racket-lang.org/pkgn/search?tags=author%3Adefault.kramer%40gmail.com >> >> But I don't think it is refreshing? It tells me "This package has been >> modified since the package index was last rebuilt. The next index refresh is >> scheduled for Monday, November 19th, 2018 12:58:07am (UTC)." >> >> It always says the next refresh is less than 5 minutes away. But the message >> remains.after waiting 5 or more minutes. >> >> (Other clues that make me think it is not refreshing: PLT tells me "This >> package needs documentation" even though it has documentation. And "raco pkg >> install plisqin" finds nothing.) >> >> -- >> 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. > > -- > 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. -- -=[ Jay McCarthy http://jeapostrophe.github.io]=- -=[ Associate ProfessorPLT @ CS @ UMass Lowell ]=- -=[ Moses 1:33: And worlds without number have I created; ]=- -- 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.
Re: [racket-users] What is the expected PLT package catalog refresh rate? Is it not refreshing now?
I tried to install it and got this: $ raco pkg install plisqin Resolving "plisqin" via https://download.racket-lang.org/releases/6.11/catalog/ Resolving "plisqin" via https://pkgs.racket-lang.org raco pkg install: cannot use empty checksum for Git repostory package source source: https://github.com/default-kramer/plisqin.git You can force a refresh by going to the top-right corner where your name is, click that, and then choose "re-scan all my packages". On Sun, Nov 18, 2018 at 8:03 PM wrote: > I've just uploaded a package to the PLT catalog: > https://pkgd.racket-lang.org/pkgn/search?tags=author%3Adefault.kramer%40gmail.com > > But I don't think it is refreshing? It tells me "This package has been > modified since the package index was last rebuilt. The next index refresh > is scheduled for Monday, November 19th, 2018 12:58:07am (UTC)." > > It always says the next refresh is less than 5 minutes away. But the > message remains.after waiting 5 or more minutes. > > (Other clues that make me think it is not refreshing: PLT tells me "This > package needs documentation" even though it has documentation. And "raco > pkg install plisqin" finds nothing.) > > -- > 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. > -- 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] Posting Events To Window Asynchronously From Different Thread?
In Windows, we have a SendMessage() function for dispatching a window event synchronously, and PostMessage() for asynchronously queuing an event to a specified window from any thread. Is there a way to do PostMessage() from Racket's GUI library? Eventspaces feels warm, but couldn't find what I was looking for in it: https://docs.racket-lang.org/gui/windowing-overview.html?q=sleep#%28part._eventspaceinfo%29 -- 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.