[racket-users] Re: Add fns or at least sample code for getting column names from table?

2016-12-29 Thread George Neuner
On Thu, 29 Dec 2016 17:23:48 -0500, "'John Clements' via Racket Users" wrote: > >> On Dec 28, 2016, at 12:51, David Storrs wrote: >> >> There's also this: >> >> (query-rows db >>" >>SELECT column_name >>

Re: [racket-users] Narrow radix of string->number.

2016-12-29 Thread Gustavo Massaccesi
I'm not too worried about a x4 slowdown in number->string because I don't expect it to be in a tight loop, but it would be nice that it were faster. I made some tests. (You must change the 100 to number-to-convert in your sample program.) I made a new function number->string**, replacing

Re: [racket-users] New website design feedback

2016-12-29 Thread 'John Clements' via Racket Users
> On Dec 29, 2016, at 09:46, Matthew Butterick wrote: > > >> On Dec 23, 2016, at 6:55 AM, Greg Trzeciak wrote: >> >> 1. There is one thing that frustrates me most when I stumble upon new >> website/package/repository for the first time and I have no

Re: [racket-users] Add fns or at least sample code for getting column names from table?

2016-12-29 Thread 'John Clements' via Racket Users
> On Dec 28, 2016, at 12:51, David Storrs wrote: > > There's also this: > > (query-rows db >" >SELECT column_name > FROM information_schema.columns > WHERE table_schema = 'your_schema' > AND

Re: [racket-users] Fix Ctr+F search on the new website?

2016-12-29 Thread Philip McGrath
I can confirm that Command F searching for "extensive" with Chrome 55.0.2883.95 on Mac OS Sierra 10.12.1 gives me this problem: it finds one match (under the "Batteries Included") image, but I can't see the highlighting until I hover over the image. -Philip On Thu, Dec 29, 2016 at 11:42 AM, Leif

Re: [racket-users] New website design feedback

2016-12-29 Thread Matthew Butterick
> On Dec 23, 2016, at 6:55 AM, Greg Trzeciak wrote: > > 1. There is one thing that frustrates me most when I stumble upon new > website/package/repository for the first time and I have no previous > knowledge of its content. It is due to the amount of time it takes me to

Re: [racket-users] Fix Ctr+F search on the new website?

2016-12-29 Thread Leif Andersen
> (For instance, Chrome on Mac OS does not have this problem.) Really? I get the same problem on Chrome on Mac OS. That's bizarre. Namely, chrome 55.0.2883.95, and OS X El Capitan. I also get it with Firefox 50.1 on OS X El Capitan I have not tried it anywhere else. > What are you doing on

Re: [racket-users] Fix Ctr+F search on the new website?

2016-12-29 Thread Matthew Butterick
> On Dec 28, 2016, at 6:18 AM, Leif Andersen wrote: > > I noticed that Ctr+F based searching is kind of uncomfortable on the new > website. Namely, if I am searching for a word that is located below one of > the images, it gets highlighted like you would expect, but the

[racket-users] Re: Racket-ese for Scheme `define-record-type' protocol?

2016-12-29 Thread Eric Eide
Matthew Flatt writes: > The separate `make-racr-specification` function is how I would write > it, including using `make-` as a prefix. Thank you for the help! -- --- Eric Eide

[racket-users] Re: Fix Ctr+F search on the new website?

2016-12-29 Thread Dupéron Georges
Good catch! I looked this up a bit, unfortunately it seems that there is no reliable way to detect when the browser's search feature is started, let alone know where the results are and which one is currently highlighted. None of the options available is entirely satisfactory: * Use JavaScript

RE: [racket-users] Racket-ese for Scheme `define-record-type' protocol?

2016-12-29 Thread Matthew Flatt
The `#:guard` option doesn't let you change the arity of the constructor, so I don't think that's what Eric wants. The separate `make-racr-specification` function is how I would write it, including using `make-` as a prefix. At Thu, 29 Dec 2016 10:53:49 +0100, "Jos Koot" wrote: > Doesn't (struct

RE: [racket-users] Racket-ese for Scheme `define-record-type' protocol?

2016-12-29 Thread Jos Koot
Doesn't (struct ... #:guard guard-proc ...) not do what you want? See the doc on struct. Jos -Original Message- From: racket-users@googlegroups.com [mailto:racket-users@googlegroups.com] On Behalf Of Eric Eide Sent: jueves, 29 de diciembre de 2016 2:55 To: Racket Users Subject: