Re: [racket-users] GUI zoom and normal-control-font

2020-08-20 Thread James Platt
On Aug 19, 2020, at 8:53 PM, George Neuner wrote: > Sorry, it was not clear to me that you wanted to resize widgets (child > windows). Typically when one speaks about a window's "content" they are > referring to text or imagery drawn onto the window's backing bitmap. I was going by

Re: [racket-users] GUI zoom and normal-control-font

2020-08-19 Thread James Platt
> > On 8/18/2020 12:31 PM, James Platt wrote: >> I'm looking at implementing a zoom contents (not zoom window) feature in a >> GUI with lots of elements and I'm wondering about the best way to do this. >> Most, if not all, standard GUI widgets in Racket can be resized

[racket-users] GUI zoom and normal-control-font

2020-08-18 Thread James Platt
I'm looking at implementing a zoom contents (not zoom window) feature in a GUI with lots of elements and I'm wondering about the best way to do this. Most, if not all, standard GUI widgets in Racket can be resized by changing the font size of their contents or label. Then redraw the widget

[racket-users] combo-field% glitch in Linux

2020-07-16 Thread James Platt
I'm seeing a glitch with all Racket combo fields when run in Linux Mint 19.3. When you click on the popup menu, it just flashes open for an instant and then disappears, the first item becomes selected without actually clicking on it with the mouse, and the callback is triggered. If you hold

Re: [racket-users] Re: DB hangs with postgres and broken network link

2020-07-03 Thread James Platt
I wonder if this is a more general TCP/IP issue rather than anything Postgres specific. I'm troubleshooting an issue where a TCP connection to a server is unexpectedly going down, once in a while, with no obvious indication. The solution, for now, is to have the client send a sort of ping

Re: [racket-users] Artifacts: code snippets that are too small to be a package.

2020-06-09 Thread James Platt
I just added an example to Artifacts with one way of using the qresults-list package to create a table and manipulate it with a right-click menu. I added quite a few comments which, I hope, will help people wanting to figure out how to use the qresults-list package. This package has been

[racket-users] Interpreting Racket profile stats

2020-06-05 Thread James Platt
I'm looking at profiling some code for performance and tried out the Racket profile package but I'm not sure what the numbers mean. Here is a very simple example: https://stackoverflow.com/questions/23988370/thorough-guide-for-profiling-racket-code Here's a run from my actual code:

Re: [racket-users] How to run multiple Racket installations?

2020-05-08 Thread James Platt
Would virtual machines be an option? You do have to have a pretty good host machine with lots of RAM. I do this mainly to have different development and testing environments. It works pretty smoothly on my Mac Pro, with VirtualBox for Linux and Windows guest machines and VMWare for macOS

Re: [racket-users] trickiness about the order of definitions in GUI code

2020-05-07 Thread James Platt
On May 7, 2020, at 12:44 AM, Philip McGrath wrote: > Rather than designing an ad hoc system of indirection that can handle all of > the complexity,* I suggest using the one that already exists: units, Racket's > original, first-class (rather than first-order) module system, offer support > for

Re: [racket-users] Re: trickiness about the order of definitions in GUI code

2020-05-06 Thread James Platt
enu (make-info-menu-item row-edit-menu table3) > > You could also have just one "make-row-edit-menu" function which creates all > menu items. > > Alex. > > On Thursday, May 7, 2020 at 7:50:01 AM UTC+8, James Platt wrote: > I'm working on organizing and documen

Re: [racket-users] trickiness about the order of definitions in GUI code

2020-05-06 Thread James Platt
Thanks, Jon. I'm going to try Alex's solution first but I may get back to this. On May 6, 2020, at 8:49 PM, Jon Zeppieri wrote: > On Wed, May 6, 2020 at 7:50 PM James Platt wrote: >> >> I'm working on organizing and documenting some things and I have some code, >> bel

[racket-users] trickiness about the order of definitions in GUI code

2020-05-06 Thread James Platt
I'm working on organizing and documenting some things and I have some code, below, which works but I don't understand why. Specifically, why don't I get an error about table3 not being defined? This is a very simplified version of what I'm working on. What I actually want to do is put all

[racket-users] Another suggestion for "The Racket Guide"

2020-04-08 Thread James Platt
While we are looking at the possibility of improving The Guide, one of the things which I find confusing in Racket documentation is that The Guide, The Reference and various manuals all look the same. On several occasions I have started in The Guide, followed links, and then discover that I am

Re: [racket-users] Stack overflow developer survey

2020-03-09 Thread James Platt
> https://stackoverflow.blog/2020/02/05/the-2020-developer-survey-is-now-open/ > > Represent! I tried this right after I saw this message on Friday and it said that the survey had already expired. I tried again with three different browsers, just now, to be sure it wasn't a glitch but I got

Re: [racket-users] Re: quick racket editor survey

2020-02-27 Thread James Platt
On Feb 26, 2020, at 10:44 AM, Stephen De Gabrielle wrote: > At 62 response, sadly the histogram doesn't show how many people use two or > even three editors. > https://www.surveymonkey.com/results/SM-GBD6J7ST7/ I am in transition between DrRacket and Emacs so I checked both of those two,

Re: [racket-users] keyboard shortcuts in a popup menu

2020-01-23 Thread James Platt
to display a '#\backspace' shortcut in Linux is the serious one in terms of practicality. On Jan 22, 2020, at 5:42 PM, George Neuner wrote: > > On 1/22/2020 4:44 PM, James Platt wrote: >> I'm working on some GUI code and I am seeing some glitches with keyboard >> shortcuts in popu

[racket-users] keyboard shortcuts in a popup menu

2020-01-22 Thread James Platt
I'm working on some GUI code and I am seeing some glitches with keyboard shortcuts in popup menus. I wonder if others are seeing the same things. In Racket 7.5 on macOS 10.11.6 "El Captian": Shortcuts defined in a menu-item% in a popup menu don't work unless the popup menu is displayed. In

Re: [racket-users] Re: macOS 10.10 Yosemite?

2020-01-06 Thread James Platt
On Jan 4, 2020, at 4:04 PM, Robby Findler wrote: > No Yosemite users to be found? At some point, I should build a Yosemite VM in VMWare for testing purposes but it isn't a priority at the moment. The thing is that Yosemite is one of those versions of macOS where the use cases to stick with

Re: [racket-users] Racket 7.5 DMG file does not open on OSX 10.11

2019-12-10 Thread James Platt
On Dec 6, 2019, at 9:56 PM, Darth Vadør wrote: > If it isn't too much trouble, I at least would really appreciate this. > One reason I think this is important is because Homebrew has a cask for > Racket, which uses the .dmg distribution. It sets up $PATH (and probably > other things I don't

Re: [racket-users] Racket 7.5 DMG file does not open on OSX 10.11

2019-12-10 Thread James Platt
On Dec 3, 2019, at 7:09 PM, John Clements wrote: > It sounds to me like an easy solution to your problems would be a > .tgz-bundled set, as e.g. we offer for Minimal Racket on the page > > https://download.racket-lang.org/releases/7.5/ > > specifically at the link > >

Re: [racket-users] Re: Racket 7.5 DMG file does not open on OSX 10.11

2019-12-03 Thread James Platt
On Nov 27, 2019, at 12:42 PM, Darth Vadør wrote: > I am having the same problem, and I am pretty sure that this is because the > new DMG uses the novel APFS format, which is not readable by our old HFS > computers. > As far as I know, HFS DMGs can be opened on new APFS Macs; would it be >

Re: [racket-users] Re: GUI (get-directory)

2019-12-03 Thread James Platt
On Nov 25, 2019, at 1:29 PM, Stephen De Gabrielle wrote: > Many packages contain an /examples folder, and adding examples is an easy way > to contribute. I did not know that. So, I guess the strategy is to find the git repository for the package and look there? In any case, I haven't been

Re: [racket-users] GUI (get-directory)

2019-12-03 Thread James Platt
On Nov 21, 2019, at 6:27 PM, Alexis King wrote: >> On Nov 21, 2019, at 11:21, James Platt wrote: >> >> If we can direct more of the energy of this community into, not just >> improving the documentation, but the way we do documentation, it would be a >> majo

Re: [racket-users] Re: GUI (get-directory)

2019-11-21 Thread James Platt
On Nov 20, 2019, at 3:31 AM, Jack Firth wrote: > Would it have helped if the get-directory documentation had included > examples? Many parts of Racket's documentation are lacking in example code, > especially the less-commonly-encountered parts. Indeed, I have previously mentioned the lack

Re: [racket-users] Re: raco distribute and runtime paths, conditioned on whether a package was installed at compile time

2019-11-18 Thread James Platt
On Nov 16, 2019, at 3:49 AM, Bogdan Popa wrote: > > James Platt writes: > >> Would this now be the preferred method to include a copy of the SQLite >> library. required by the DB module, to your distribution? The >> software I am working on requires a n

Re: [racket-users] Re: raco distribute and runtime paths, conditioned on whether a package was installed at compile time

2019-11-15 Thread James Platt
On Nov 12, 2019, at 10:13 PM, Matthew Flatt wrote: >> Although you can find the files using `find-share-dir` and/or >> `find-user-share-dir`, adding a 'share mode to `define-runtime-path` >> would make it possible for `raco distribute` to find and carry along a >> directory/file when it's

[racket-users] DTLS

2019-11-08 Thread James Platt
I looking at implementing DTLS (TLS for UDP) and I see that ports->ssl-ports in the openssl package does not specify that the port has to be TCP. Does that mean that this should already work with UDP? If so, has anyone done much work with this? James -- You received this message because

Re: [racket-users] running the wrong sqlite3

2019-08-20 Thread James Platt
On Aug 19, 2019, at 9:24 PM, John Clements wrote: > Perhaps you need to configure your lib-search-dir setting? > > https://docs.racket-lang.org/raco/config-file.html?q=lib-search-dir#%28idx._%28gentag._65._%28lib._scribblings%2Fraco%2Fraco..scrbl%29%29%29 Thanks for the help but I think

[racket-users] running the wrong sqlite3

2019-08-19 Thread James Platt
I'm having an issue where I can't seem to get Racket to run the right version of sqlite3. At least, I'm assuming that's the problem because the syntax error below occurs in an older version but not the current version of sqlite3. My Terminal command path has the correct version. What can I

Re: [racket-users] Re: Do custodians shutdown when Racket exits?

2019-08-06 Thread James Platt
On Aug 6, 2019, at 1:54 PM, Tony Garnock-Jones wrote: > How can a UDP socket survive process exit? > I don't knot but this appears to happen. On macOS, the open port shows in netstat but not lsof. You can find the process ID with netstat but then, when you go to kill it, kill says there

Re: [racket-users] Re: Gui editable grid/table

2019-07-22 Thread James Platt
There is also qresults-list, which is from Alex Harsanyi's ActivityLog2 application. You can see how it is used in that application. https://pkgs.racket-lang.org/package/qresults-list https://github.com/alex-hhh/ActivityLog2 On Jul 22, 2019, at 7:22 AM, Roman Klochkov wrote: >

Re: [racket-users] The case, and a proposal, for elegant syntax in #lang racket2

2019-07-18 Thread James Platt
Like others have said, I'm not sure that syntax is really the issue with Racket adoption. For me, the difficulty in moving to Racket from other languages is not the syntax, it's other things. Lot's of parentheses don't bother me. Writing (2 + 2) as (+ 2 2) is a little weird but It's not

[racket-users] HTML rendering

2019-06-21 Thread James Platt
I've been looking at HTML rendering in Racket and the Browser package looks interesting, especially since it can execute Racket code from a special HTML tag. https://docs.racket-lang.org/browser/index.html The problem is that the rendering it does is too simple. It's about on the level of

Re: [racket-users] RacketCon hotel group rate

2019-06-14 Thread James Platt
I actually booked rooms at a hotel across the street from the Little America for much less. In all the conferences and other events I have been to, I don't think I have ever, even once, found the group-rate rooms at the host hotel to be the best deal. James On Jun 14, 2019, at 3:40 PM,

Re: [racket-users] Enabling/disabling menu items

2019-06-11 Thread James Platt
On Jun 11, 2019, at 4:54 PM, Matthew Flatt wrote: > At Tue, 11 Jun 2019 16:45:05 -0400, James Platt wrote: >> It looks like there is not way to enable and disable (grey out) menu >> items the way that there is with buttons. > > There's no `enable` initialization ar

[racket-users] Enabling/disabling menu items

2019-06-11 Thread James Platt
It looks like there is not way to enable and disable (grey out) menu items the way that there is with buttons. So my question is whether the expectation is that you add and remove items from a menu instead or is this a reasonable feature request for a new version of Racket? To illustrate what

Re: [racket-users] Re: Distributing executables with homebrew

2019-06-10 Thread James Platt
Another consideration with Homebrew is how far back you want to go with OS support. They recently ended support for macOS 10.11 "El Capitan". In fact, it's the very first thing which has become an issue for me still running El Capitan. I don't know exactly how far back you can support with

Re: [racket-users] Re: Racket development on ARM

2019-05-15 Thread James Platt
On May 15, 2019, at 11:25 PM, Daniel Lister wrote: > I do my racket projects using android with an external keyboard plugged in as > well, here's how I do it: > > -Install termux > -Inside termux, do a pkg install unstable-repo > -You can now install racket > > I haven't had any issues so

[racket-users] Racket development on ARM

2019-05-15 Thread James Platt
I'm looking at the idea of writing Racket code on an ARM device. Specifically, I have a tablet, which shipped with Android, with an external keyboard. I have a few questions but I think I should start with the most fundamental. Is Lineage OS the best choice or would something else be

Re: [racket-users] Error handling for the GUI

2019-03-25 Thread James Platt
On Mar 25, 2019, at 12:49 PM, Matthias Felleisen wrote: > See how precise the exn message is: 2nd arg of 1st arg of f ~~ not a boolean? Okay. So the exn message is generated in a systematic way which I can count on. I didn't realize that. Thanks. -- You received this message because you

Re: [racket-users] Error handling for the GUI

2019-03-25 Thread James Platt
On Mar 25, 2019, at 12:05 PM, Matthias Felleisen wrote: > Your exception handlers may test a contract failure to any level. You can > specify this in the predicate part of with-handlers or via match on the exn > within the handler function. Regexp matching works well here. It's obvious

Re: [racket-users] Error handling for the GUI

2019-03-25 Thread James Platt
On Mar 23, 2019, at 5:49 PM, Greg Hendershott wrote: > But -- contract violations aren't like that. They're about some code > surprising some other code. I think the only hope here is, run the > code enough (before the user ever does) to flush out the bad code > assumptions and fix them.

Re: [racket-users] Error handling for the GUI

2019-03-22 Thread James Platt
> Robby > > On Fri, Mar 22, 2019 at 3:09 PM James Platt wrote: > I'm working on displaying informative error messages in a GUI and I have been > finding that many of the things I need to handle are contract violations in > downstream functions. The thing is that it seems like

[racket-users] Error handling for the GUI

2019-03-22 Thread James Platt
I'm working on displaying informative error messages in a GUI and I have been finding that many of the things I need to handle are contract violations in downstream functions. The thing is that it seems like there ought to be a better way than the methods I can think of. It's very simple to

Re: [racket-users] Re: Use cases for tables and records

2019-02-22 Thread James Platt
In R, I have extensively used the sqldf package, which allows you to execute SQL commands on one or more data frames and get the results back as another data frame. You can connect it to different database engines to handle the SQL. Although sqlite is the default, I mostly used PostgreSQL

Re: [racket-users] Re: Autocomplete from a list

2019-02-17 Thread James Platt
On Feb 14, 2019, at 9:22 PM, Alex Harsanyi wrote: > There are two solutions I can think of: > > (1) derive combo-field% and override the on-popup method to construct the > choice menu dynamically based on what is selected in the combo box field. > This has a few disadvantages, namely (a) you

[racket-users] Autocomplete from a list

2019-02-14 Thread James Platt
I have a situation where I want a Racket GUI combo-field% (or some other GUI element) to allow the user to select an exact item (uniquely matching a database key) from a list that is too long to display all at once. I'm thinking that some form of auto completion would be best. In Framework, I

Re: [racket-users] delays in message delivery

2019-02-08 Thread James Platt
On Feb 8, 2019, at 12:51 PM, Robby Findler wrote: > There are some messages that get held up in the spam traps that > requires one of the admins to explicitly approve (this happens when > the post comes from someone on the list, but where they post with a > different email address, I believe).

[racket-users] delays in message delivery

2019-02-08 Thread James Platt
I noticed recently that there have been several messages to this list which took an excessively long time to get to me. For example, two messages from George Neuner, which arrived today, were actually sent on Wednesday. Since I am having messages delivered to my desktop client, I decided to

Re: [racket-users] Beginning of the end for googlegroups?

2019-01-29 Thread James Platt
On Jan 25, 2019, at 8:51 PM, Neil Van Dyke wrote: > Regarding hosting of the email list server... worst case, were Google Groups > to shut down with no good migration offering... if we can't find a turn-key > email list service we like, we could always run the time-honored MailMan on > either

Re: [racket-users] Beginning of the end for googlegroups?

2019-01-29 Thread James Platt
On Jan 29, 2019, at 3:08 PM, 'John Clements' via Racket Users wrote: > For what it’s worth, I’m firmly in the “let’s wait and see” camp. I’m not > worried about losing archives…I think I personally have just about all of the > messages that have been posted to the google group, and I don’t

Re: [racket-users] Places code not using all the CPU

2018-10-08 Thread James Platt
I wonder if this has anything to do with mitigation for Spectre, Meltdown or the other speculative execution vulnerabilities that have been identified recently. I understand that some or all of the patches affect the performance of multi-CPU processing in general. James -- You received

Re: [racket-users] Re: Upgrading Racket

2018-10-03 Thread James Platt
> "/Applications/Racket v7.0/bin" >/etc/paths.d/racket`. > > -Philip > > > On Tue, Oct 2, 2018 at 9:53 PM James Platt wrote: > I'm just now getting back to this after returning from Racketcon. I ran > `raco setup` as the user and again as root and it did

Re: [racket-users] Re: Upgrading Racket

2018-10-02 Thread James Platt
I'm just now getting back to this after returning from Racketcon. I ran `raco setup` as the user and again as root and it did not solve the problem. So then I tried `raco setup -c` but this gave permission errors (unlike the previous commands). so I ran `sudo raco setup -c' and then `sudo

[racket-users] Upgrading Racket

2018-09-28 Thread James Platt
I just tried upgrading to Racket 7 on one of my machines (macOS 10.11.6) and I get the error shown below in DrRacket. I thought I should mention it since I am probably not the only one. I installed with the obvious method, which is to just drag the new Racket folder over to applications as it

[racket-users] Jewel is Jewelbox?

2018-09-28 Thread James Platt
In the PLT Games included with Racket 7, there is a game called Jewel. It's very much like a game from a while back that was called Jewelbox. This was something like 20 years ago and I remember it mainly because I still have the little drawstring bag which the disk came in. It was

Re: [racket-users] GUI problem -- main window loosing focus when two dialog boxes are opened

2018-05-08 Thread James Platt
No problem on macOS 10.11.6 "El Capitan", Racket 6.10, or on macOS 10.13.4 "High Sierra", Racket 6.12. On May 7, 2018, at 8:46 PM, Alex Harsanyi wrote: > I have a problem with the Racket GUI where the main application window looses > focus if two dialog boxes are opened than closed. The

[racket-users] Contract work

2018-03-29 Thread James Platt
My company, Biomantica, is working on an SBIR grant application and we would like to be able to include statements from people who would be willing to do Racket contract work for us contingent on our getting the grant. What we really need is just to show that we have people we can call on who

Re: [racket-users] Splitting up a GUI source file?

2018-03-23 Thread James Platt
> May be relevant > > https://pkgs.racket-lang.org/package/spreadsheet-editor Indeed, I got part way through working with that package for this exact purpose but ran into glitches. The main thing is just a lack of documentation. At this point, I am favoring the idea of borrowing

Re: [racket-users] Splitting up a GUI source file?

2018-03-23 Thread James Platt
> I am trying to create a GUI program, my problem is that the source code for > the > GUI portion is growing out of control and I don't know how to split it up. I'm not sure if this will really answer your question but you may want to look at some code from MrEd Designer and see how it splits

Re: [racket-users] Re: Sorting a list-box%

2018-03-05 Thread James Platt
On Mar 5, 2018, at 4:00 PM, Alex Harsanyi wrote: > If you want to look at a possible implementation, I wrote a wrapper around > list-box% for exactly the purpose of showing SQL query results in a > list-box%. It supports sorting, adding, deleting and updating individual > rows, and you can

[racket-users] Sorting a list-box%

2018-03-05 Thread James Platt
I'm working on something which is leading to a cascade of questions so I suppose that I should just start by explaining what I am trying to do. I have written some code which takes the results of an SQL query and displays it as a table in a GUI using list-box%. This works and I am now writing

Re: [racket-users] Want to send email with net/smtp. An error to fix.

2018-01-19 Thread James Platt
> > (And is the html thing really that big a deal?) > > > It's likely that part of the reason they were caught in a spam trap was > because they were HTML and formatted with both very large font and half a > dozen different colors. Also, as George points out, HTML formatting gets > fouled