Re: [racket-users] Re: using ryanc's oauth2 package with Google?

2016-02-15 Thread Fred Martin
hahah! I finished my "interacting with Google Drive via Racket" experiment. Basically, it recursively collects subfolders, and then lets you issue a search query over all of them at once. If anyone wants to check it out, the code is here: https://github.com/fgmart/google-drive-racket. I

Re: [racket-users] preserve objects created in REPL after adding/changing proc definitions?

2016-02-15 Thread Fred Martin
Matt Jadud pointed me at https://docs.racket-lang.org/reference/serialization.html, which allowed me to save my object in my definitions buffer along Neil's suggestion. :) Greg, I tried un-checking the "enforce constant definitions" box and after restarting DrRacket, it now allows me to

Re: [racket-users] preserve objects created in REPL after adding/changing proc definitions?

2016-02-15 Thread Fred Martin
Hi Neil, thanks. In my case presently, "long-computation" is gathering up results from a bunch of net queries, and the result is a list of hash objects. I don't think your suggestion will work for this? Also the nature of your suggestion is making me nervous that I'm asking for something

[racket-users] preserve objects created in REPL after adding/changing proc definitions?

2016-02-15 Thread Fred Martin
This may be a silly question. Suppose I do something in the REPL that takes a while to compute: (define important-object (long-computation)) and now I want to write new procedures (or modify existing ones) that will work with important-object. Is there any way to do this? If I change code

[racket-users] using ryanc's oauth2 package with Google?

2016-02-14 Thread Fred Martin
Hi all, I am trying to get oauth working with Google so I can write some Google Drive code in Racket. I set up an "installed application" in a project in my Google dev console, and copied its ID to my Racket code. When I try to get a token, it seems like everything is working -- I log into my

[racket-users] Re: using ryanc's oauth2 package with Google?

2016-02-14 Thread Fred Martin
So... even though I chose "Other" as the client type, my API credentials were created with a secret. I had to copy the secret into my client constructor request. >From my reading of the oauth 2 API docs, I thought "installed app" clients >weren't supposed to have secrets? Anyway at this