Re: [racket] Pruning DrRacket 's "open recent" files list

2012-04-24 Thread Laurent
You can also edit your racket-prefs.rktd file in your `(find-system-dir 'home-dir)' directory if you just want to empty the history. Be careful not to break anything though. Laurent On Wed, Apr 25, 2012 at 04:26, Nadeem Abdul Hamid wrote: > In the "Preferences" dialog, there is a "General" tab

Re: [racket] Example of using OpenSSL instead of mzcrypto

2012-04-24 Thread Neil Van Dyke
Neil Van Dyke wrote at 04/24/2012 03:13 PM: One reason for avoiding linking native code libraries is that they are often written in C/C++, and this means that memory-corrupting bugs often exist in them. Memory-corrupting bugs can be a nightmare for debugging, and I prefer to keep sources of th

Re: [racket] What about an Racket Artifacts thread?

2012-04-24 Thread Galler
Neil, Let me respond to your argument with a specific question. Below is some code that sets up fluid-like dynamic variable bindings using Jay's web-cells. I haven't put this code up on GitHub (or elsewhere) (define/contract (make-dyno-bindings ids) (-> (listof symbol?) (listof (cons/c symbo

Re: [racket] Pruning DrRacket 's "open recent" files list

2012-04-24 Thread Nadeem Abdul Hamid
In the "Preferences" dialog, there is a "General" tab with a slider control that allows you to set the number of recent items displayed. On Tue, Apr 24, 2012 at 9:20 PM, Harry Spier wrote: > Dear list members, > > Is it possible to prune  the DrRacket "open recent" files list. > > Thanks, > Harry

[racket] Pruning DrRacket 's "open recent" files list

2012-04-24 Thread Harry Spier
Dear list members, Is it possible to prune the DrRacket "open recent" files list. Thanks, Harry Spier Racket Users list: http://lists.racket-lang.org/users

Re: [racket] What about an Racket Artifacts thread?

2012-04-24 Thread Neil Van Dyke
Historical info and a concern... There used to be a Scheme Cookbook wiki, which was an effort to build something like a Perl cookbook of the time. It was a good idea in principle, but two of the problems were: (1) Most cookbook entries should have been "use library package X, the introductor

Re: [racket] What about an Racket Artifacts thread?

2012-04-24 Thread Galler
Sam, I love it and added a few more. Thanks Zack On Tue, Apr 24, 2012 at 7:35 PM, Sam Tobin-Hochstadt wrote: On Tue, Apr 24, 2012 at 7:17 PM, Galler wrote: My Suggestion: Is there room, either on the blog, or in the user group, for a Racket Artifacts thread i.e. subj: How to call open

Re: [racket] What about an Racket Artifacts thread?

2012-04-24 Thread Sam Tobin-Hochstadt
On Tue, Apr 24, 2012 at 7:17 PM, Galler wrote: > My Suggestion: > > Is there room, either on the blog, or in the user group, for a Racket > Artifacts > thread > > i.e. > subj: How to call openSSL > subj: How to build a MAC for a stateless URI > subj: How to build a key generator > subj: How to cl

[racket] What about an Racket Artifacts thread?

2012-04-24 Thread Galler
Eli, Neil This thread raises an interesting point. An Artifact is herein defined as some piece of Racket code that does a useful piece of work. Some of the lesser lights in the community, (such as myself) will, over the course of a working day, come up with a useful Artifact or two. Three conc

Re: [racket] Example of using OpenSSL instead of mzcrypto

2012-04-24 Thread Eli Barzilay
An hour and a half ago, Neil Van Dyke wrote: > I'd put those port close calls in a "dynamic-wind" cleanup thunk. > I'd also catch the exceptions that could be raised by the > port-closing procedure itself in the cleanup thunk. And I'd make > sure that any custodian I was using didn't close the por

Re: [racket] Stateless Web Server: Generating a response on a stuffer error

2012-04-24 Thread Galler
Wow. Thank you very much. On Tue, Apr 24, 2012 at 4:31 PM, Jay McCarthy wrote: There was no way to do this, but I just added the 92nd keyword to serve/servlet to do it: #:servlet-responder (λ (url exn) (response/xexpr `(html (bo

Re: [racket] Stateless Web Server: Generating a response on a stuffer error

2012-04-24 Thread Jay McCarthy
There was no way to do this, but I just added the 92nd keyword to serve/servlet to do it: #:servlet-responder (λ (url exn) (response/xexpr `(html (body "Some other message" allows you to inspect the exception and return a differ

Re: [racket] Example of using OpenSSL instead of mzcrypto

2012-04-24 Thread Neil Van Dyke
Calling these tools can be a little more complicated. I'd put those port close calls in a "dynamic-wind" cleanup thunk. I'd also catch the exceptions that could be raised by the port-closing procedure itself in the cleanup thunk. And I'd make sure that any custodian I was using didn't close

Re: [racket] Example of using OpenSSL instead of mzcrypto

2012-04-24 Thread Neil Van Dyke
Galler wrote at 04/24/2012 01:14 PM: Neil V. mentioned his preference for directly calling the OpenSSL libraries To be clear, OpenSSL includes both linkable native code libraries and the "openssl" command-line executable. I have had good success using various crypto algorithms by calling the

Re: [racket] Need some help for my first real experiment with scheme

2012-04-24 Thread Danny Yoo
On Wed, Apr 18, 2012 at 1:15 PM, Danny Yoo wrote: >> >> I think the subfield you're looking for is called "information retrieval", >> and there are textbooks on it. > > Managing Gigabytes, for example: > >    http://ww2.cs.mu.oz.au/mg/ Another book that just came out that looks good is: Introduc

Re: [racket] Example of using OpenSSL instead of mzcrypto

2012-04-24 Thread Galler
Yes. Absolutely correct. I should have done this. Please include the following three lines to close the three ports created by the (process..) call. (close-input-port (first res)) (close-output-port (second res)) (close-input-port (fourth res)) R./ Zack On Tue, Apr 24, 2012 at 1:21 PM,

Re: [racket] Need some help for my first real experiment with scheme

2012-04-24 Thread Danny Yoo
On Mon, Apr 23, 2012 at 10:18 AM, Pedro wrote: > Ok, thank you all  for the input, however I'm still missing an important > detail. > So I build a suffix tree, but how exactly do I refer to the target documents? > Should I tie a reference to each document in which the string occurs > to each node

Re: [racket] Example of using OpenSSL instead of mzcrypto

2012-04-24 Thread Robby Findler
One comment here: you really want to be sure that you close all three of the ports that process returns, or else you'll run into problems if you use this in a larger context. Robby On Tue, Apr 24, 2012 at 12:14 PM, Galler wrote: > > > Neil V. mentioned his preference for directly calling the Ope

[racket] Example of using OpenSSL instead of mzcrypto

2012-04-24 Thread Galler
Neil V. mentioned his preference for directly calling the OpenSSL libraries vs. using mzcrypto (planet vyzo/crypto) I wanted to provide a small example using this technique for generating and retrieving a 1024 bit unencrypted private key in PEM format. (define res (process "openssl genrsa 10

Re: [racket] Need some help for my first real experiment with scheme

2012-04-24 Thread Pedro
Ok, thank you all for the input, however I'm still missing an important detail. So I build a suffix tree, but how exactly do I refer to the target documents? Should I tie a reference to each document in which the string occurs to each node? I can't think of other way to do it. On Fri, Apr 20, 2