Re: [racket] getting remote ip address

2013-05-14 Thread prad
Jay McCarthy writes: > You want the tcp-addresses function ... > thx jay! i think i misled with my question though by not providing enough info - especially like i'm trying to get the ip address of the client through a cgi script. my son solved my problem by pointing out that REMOTE_ADDR is a s

Re: [racket] How to connect to twitter streaming API?

2013-05-14 Thread Stephen Chang
Caveat: I'm only going by what I found here: https://dev.twitter.com/docs. But I havent tried any of it out so I dont know if I'll be able to field any more detailed questions. Also, apologies if you already know all this. 1) Looks like the first thing you need to do is to create a twitter app: ht

Re: [racket] Bootstrap teachpacks

2013-05-14 Thread Danny Yoo
Hi Lawrence, You probably need to also install the support teachpack file "bootstrap-common.rkt", which can be found here: http://www.bootstrapworld.org/materials/resources/source-files/Teachpacks/ Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Question about resolution of variable-name conflicts in namespaces

2013-05-14 Thread Robby Findler
The short answer is that the top-level is hopeless, as Matthew has discussed at some length here and elsewhere. If you really need to eval code, can you first put it into a module? Robby On Tue, May 14, 2013 at 11:09 AM, Matthew Butterick wrote: > Suppose x-is-foo.rkt is this: > > (module x-is

Re: [racket] Question about resolution of variable-name conflicts in namespaces

2013-05-14 Thread Matthew Butterick
Some more excavation into the docs revealed that the preferred technique is to use namespace-require for the initial import only, and then use eval statements for the rest. That helped me resolve a difficult bug. But it didn't resolve this variable-override mystery, because this: #lang racket (req

Re: [racket] getting remote ip address

2013-05-14 Thread Jay McCarthy
You want the tcp-addresses function http://docs.racket-lang.org/reference/tcp.html?q=addresses#%28def._%28%28lib._racket%2Ftcp..rkt%29._tcp-addresses%29%29 Jay On Tue, May 14, 2013 at 12:07 PM, prad wrote: > in php i can do this: > $ip=$_SERVER['REMOTE_ADDR']; > > to find out what the client ip

Re: [racket] connectivity with AWS and S3?

2013-05-14 Thread Neil Van Dyke
Geoffrey S. Knauth wrote at 05/14/2013 05:25 PM: My question is, is there anyone else out there in Racket-land who has used AWS as part of the application? I'll be running on AWS hardware and some of the big files will have to be stored on S3. Greg Hendershott developed an open source Ra

[racket] connectivity with AWS and S3?

2013-05-14 Thread Geoffrey S. Knauth
I have a new potential project starting and I have my choice of language. It will be doing a lot of web navigation (as a user would, just faster) and it has to run in an AWS [1] environment and interact with AWS S3 buckets [3]. I know I can do this with Scala or Python, but there are aspects o

Re: [racket] Maybe self-inclusion should be forbidden

2013-05-14 Thread Danny Yoo
Are you sure you should be using "include"? Is there a reason why you're using "include", and not "require"? If you take advantage of Racket's module system, it should prevent you from creating import cycles. Have you looked at: http://docs.racket-lang.org/guide/modules.html yet? ___

[racket] Maybe self-inclusion should be forbidden

2013-05-14 Thread Alfred Zhong
Hi Dear Racket experts, I once accidentally include a file in itself like: In foo.scm (include "foo.scm") And it causes infinite loop. Maybe this should be forbidden in the language spec. Thanks, Alfred Racket Users list: http://lists.racket-lang.org/users

[racket] getting remote ip address

2013-05-14 Thread prad
in php i can do this: $ip=$_SERVER['REMOTE_ADDR']; to find out what the client ip address is. how do i do it in racket? i looked at request-client-ip provided by web-server/http/request-structs but that seems to require i run the racket webserver. -- in friendship, prad

Re: [racket] Kernel size for flomap-gaussian-blur

2013-05-14 Thread Neil Toronto
On 05/11/2013 01:56 PM, dmitry.cherkassov.dcherkas...@gmail.com wrote: Hi. Can't find convolution kernel dimensions in the docs, neither they can be specified via arguments. Any ideas what they are? A kernel centered at x with standard deviation σ has its minimum at floor(x-3*σ) and its maxim

[racket] Call for Papers: Workshop on Functional Art, Music, Modeling, and Design (colocated with ICFP)

2013-05-14 Thread Brent Yorgey
== FARM 2013: Call for Papers ACM SIGPLAN Workshop on Functional Art, Music, Modeling and Design Boston, Massachusetts, USA 28th September, 2013 (directly after ICFP)

[racket] Kernel size for flomap-gaussian-blur

2013-05-14 Thread Dmitry . Cherkassov . dcherkassov
Hi. Can't find convolution kernel dimensions in the docs, neither they can be specified via arguments. Any ideas what they are? Thanks. -- With best regards, Dmitry Racket Users list: http://lists.racket-lang.org/users

Re: [racket] eval function works at REPL but not in file

2013-05-14 Thread Alfred Zhong
Thanks a lot, Matthew! That works! On Tue, May 14, 2013 at 8:06 AM, Matthew Flatt wrote: > Hi Alfred, > > See > > http://docs.racket-lang.org/guide/eval.html#(part._namespaces) > > Matthew > > At Tue, 14 May 2013 07:01:51 -0400, Alfred Zhong wrote: > > Hi Racket experts, > > > > I am reading

[racket] Question about resolution of variable-name conflicts in namespaces

2013-05-14 Thread Matthew Butterick
Suppose x-is-foo.rkt is this: (module x-is-foo racket (define x 'foo) (provide x)) If you open another file and try this: (require "x-is-foo.rkt") (define x 'bar) You'lll get a "identifier already imported" error. OK, that much I understand. Here's the question. When you do this: (paramet

[racket] Bootstrap teachpacks

2013-05-14 Thread Lawrence Bottorff
Is there any documentation on how to set up and run Bootstrap lessons using DrRacket? For example, I'm trying through DrRacket to install the downloaded teachpack for Bootstrap and I get: default-load-handler: cannot open input file path: /home/borgauf/.racket/5.3.3/collects/installed-teachpacks

Re: [racket] eval function works at REPL but not in file

2013-05-14 Thread Matthew Flatt
Hi Alfred, See http://docs.racket-lang.org/guide/eval.html#(part._namespaces) Matthew At Tue, 14 May 2013 07:01:51 -0400, Alfred Zhong wrote: > Hi Racket experts, > > I am reading SICP and trying this piece of code using Racke: > > (define (definition-value exp) > (if (symbol? (cadr exp

[racket] eval function works at REPL but not in file

2013-05-14 Thread Alfred Zhong
Hi Racket experts, I am reading SICP and trying this piece of code using Racke: (define (definition-value exp) (if (symbol? (cadr exp)) (caddr exp) (make-lambda (cdadr exp) ; formal parameters (cddr exp) ; body ) ) ) (define (make-lam

[racket] How to connect to twitter streaming API?

2013-05-14 Thread SD
Dear All, This is my first message here, and first of all thank you for the excellent documentation already available. I tried to browse the past messages and the documentation available online but I couldn't find any information on how to query the twitter streaming API. I'm interested in getting

[racket] Intro Project: Racket support in MediaWiki's GeSHi highligher

2013-05-14 Thread Tim Brown
Folks, I have notified the GeSHi and Rosetta Code (a user of MediaWiki) of my racket.php script, and have made it a personal mission to poke them every week or so. However, they are both very busy and assure me that integrating it *is* on their to do lists. I have put a note on the Intro Project