Re: [racket-users] aws package fails against google cloud storage

2016-09-07 Thread 'John Clements' via Racket Users
> On Sep 7, 2016, at 1:02 PM, Sam Tobin-Hochstadt wrote: > > Isn't there also the option of using the aws pkg at the hash from before the > change to v4? Yes, definitely. (In fact, that’s what I wound up doing, after a git bisect.) I might just fork and branch and

Re: [racket-users] aws package fails against google cloud storage

2016-09-07 Thread Sam Tobin-Hochstadt
Isn't there also the option of using the aws pkg at the hash from before the change to v4? Sam On Wed, Sep 7, 2016 at 3:23 PM 'John Clements' via Racket Users < racket-users@googlegroups.com> wrote: > > > On Sep 7, 2016, at 10:48 AM, Tony Garnock-Jones > wrote: > > > > On

Re: [racket-users] aws package fails against google cloud storage

2016-09-07 Thread 'John Clements' via Racket Users
> On Sep 7, 2016, at 10:48 AM, Tony Garnock-Jones wrote: > > On 09/06/2016 02:40 PM, 'John Clements' via Racket Users wrote: >> Obvious fixes that I don’t like: >> >> 1) stop using google cloud storage, starting using Amazon S3. >> 2) use the old PLaneT version instead of

Re: [racket-users] aws package fails against google cloud storage

2016-09-07 Thread Tony Garnock-Jones
On 09/06/2016 02:40 PM, 'John Clements' via Racket Users wrote: > Obvious fixes that I don’t like: > > 1) stop using google cloud storage, starting using Amazon S3. > 2) use the old PLaneT version instead of the shiny new pkg version. > > Any other suggestions? 3) maybe there's a "google API"

Re: [racket-users] TR + Hash tables -> chaperone errors ?

2016-09-07 Thread Sam Tobin-Hochstadt
It's not clear what's going on here without seeing more of the code. A minimal example isn't necessary, just something runnable. Sam On Wed, Sep 7, 2016 at 1:31 PM, 'John Clements' via Racket Users wrote: > I’m getting chaperone errors that seem to occur when

[racket-users] TR + Hash tables -> chaperone errors ?

2016-09-07 Thread 'John Clements' via Racket Users
I’m getting chaperone errors that seem to occur when calling a function defined in TR that uses hash-union to construct hash tables from another file. Here’s the text of the error: procedure chaperone: non-chaperone result; received a 2nd argument that is not a chaperone of the original 2nd

Re: [racket-users] Re: lambda and the equivalent define / "defun"

2016-09-07 Thread Jon Zeppieri
On Wed, Sep 7, 2016 at 12:18 PM, Jon Zeppieri wrote: > > Note that this function still generates a list as output. I suppose it > could instead generate as many values as there are initial elements of xs, > Uh, and you can disregard this statement altogether, since it's

Re: [racket-users] Re: lambda and the equivalent define / "defun"

2016-09-07 Thread Jon Zeppieri
On Wed, Sep 7, 2016 at 12:18 PM, Jon Zeppieri wrote: > > > ``` > #lang racket/base > > (require racket/match) > > (define (foldl* proc init . xs) > (match xs > ['() init] > [(cons x xs) (apply foldl* proc (proc x init) xs)])) > ``` > > I should provide an example.

Re: [racket-users] Re: lambda and the equivalent define / "defun"

2016-09-07 Thread Jon Zeppieri
On Wed, Sep 7, 2016 at 11:54 AM, Sanjeev Sharma wrote: > Just illustrates the changing structure (increased nesting depth) on each > recursive call > > The initial call to t2 changes the structure of the > argument/parameter - it puts in a list where there was no list. > >

Re: [racket-users] Re: lambda and the equivalent define / "defun"

2016-09-07 Thread Sanjeev Sharma
Just illustrates the changing structure (increased nesting depth) on each recursive call The initial call to t2 changes the structure of the argument/parameter - it puts in a list where there was no list. Each recursive call from inside t2 again changes the structure, adding an enclosing '()

Re: [racket-users] handin server error

2016-09-07 Thread Spencer Florence
This is a little bit of a hack and weakens the handin server security but adding the following to the top of your checker file should make this error go away: ``` (require handin-server/sandbox) (sandbox-path-permissions (cons (list 'read"/") (sandbox-path-permissions))) ```

Re: [racket-users] TR warning with pict3d-canvas% (in pict3d)

2016-09-07 Thread Tim Brown
:-( Latest nightly "snapshot 6.6.0.4--2016-09-07(42f4784/a)" still throws the error. Tim On 07/09/16 15:37, Sam Tobin-Hochstadt wrote: > I think this is fixed in the git repository. Can you try a snapshot build and > see if that works? > > Sam > > On Wed, Sep 7, 2016 at 10:35 AM Tim Brown

[racket-users] TR warning with pict3d-canvas% (in pict3d)

2016-09-07 Thread Tim Brown
Folks (Neil?), Another type issue, but this time with pict3d. I am trying to use the following code to display a sphere. But there seems to be an issue throwing up a warning. A warning that “will become an error in a future release”. A warning that also seems to be using up a lot of juice to

Re: [racket-users] Re: lambda and the equivalent define / "defun"

2016-09-07 Thread Jon Zeppieri
On Wed, Sep 7, 2016 at 8:33 AM, Sanjeev Sharma wrote: > Thanks for joining in. > > The amended question had nothing to do with the earlier example > Okay. > > I'm wondering if there's a quick, standard (and easily understood) idiom > (without an internal helper function)

Re: [racket-users] typed/racket/gui : possible bug in slider%.get-value

2016-09-07 Thread Sam Tobin-Hochstadt
Thanks for noticing this! The type of `get-value` was wrong, probably due to reading `position-integer?` in the docs as `positive-integer?`, or something like that. I'll push a repair. Sam On Wed, Sep 7, 2016 at 7:47 AM, Tim Brown wrote: > The following code produces a

Re: [racket-users] Re: lambda and the equivalent define / "defun"

2016-09-07 Thread Sanjeev Sharma
Thanks for joining in. The amended question had nothing to do with the earlier example I'm wondering if there's a quick, standard (and easily understood) idiom (without an internal helper function) to recur on the variable argument list y The flatten's not ideal - I may want to retain some

[racket-users] typed/racket/gui : possible bug in slider%.get-value

2016-09-07 Thread Tim Brown
The following code produces a contract error; I think TR is making assumptions that it probably shouldn’t be. Please could someone investigate. Thanks, Tim ;;; #lang typed/racket/gui (define f (new frame% [label "Frame"])) (define

Re: [racket-users] Racket module creation in org-mode?

2016-09-07 Thread Stephen De Gabrielle
Sorry, I'm not sure I understand what you mean. You can use the module form to define more than one module in a file. There is also the sub-modules functionality. Both are documented at https://docs.racket-lang.org/guide/Module_Syntax.html#%28part._module-syntax%29 Kind regards Stephen On Tue,

Re: [racket-users] aws package fails against google cloud storage

2016-09-07 Thread 'John Clements' via Racket Users
> On Sep 6, 2016, at 5:42 PM, Greg Hendershott > wrote: > > Until this thread today, I wasn't even aware the AWS package could be > used with GCS. > > It was a fair amount of work to update things to use v4 sig a year ago: > >