Re: [racket] getting remote ip address

2013-05-14 Thread prad
E_ADDR is a standard environment variable, so all i needed to do was (getenv "REMOTE_ADDR") he also chastised me for not mentioning the cgi bit. :D -- in friendship, prad 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 friend

Re: [racket] racket as cgi error with sqlite

2013-03-29 Thread prad
ighttpd, maybe add a with-handlers around the failing db call > and write it to your own log file. > i have never done this - sounds really interesting. i would appreciate knowing where i can find info on how to do this. thx! -- in friendship, prad Racket Users l

[racket] racket as cgi error with sqlite

2013-03-27 Thread prad
th lighttpd (on debian). 2. if #1 isn't possible for some reason, any ideas on why i can read, but not write to the sqlite db? -- in friendship, prad Racket Users list: http://lists.racket-lang.org/users

[racket] login to a site

2013-02-13 Thread prad
i can keep accessing pages on the site? -- in friendship, prad Racket Users list: http://lists.racket-lang.org/users

Re: [racket] bib file foreign letters conversion

2012-12-07 Thread prad
ex. > If you need it, there's always (regexp-replace). > that's what i'm doing right now using a hash table with regexp-replace. i was just hoping someone else had done this in the past so i could steal it. :D -- in friendship, prad Racket Users list: http://lists.racket-lang.org/users

[racket] bib file foreign letters conversion

2012-12-07 Thread prad
bib tools in scriblib/autobib, but don't see these as being able to serve my present purpose. -- in friendship, prad Racket Users list: http://lists.racket-lang.org/users

[racket] include vs require

2012-09-03 Thread prad
e used? -- in friendship, prad Racket Users list: http://lists.racket-lang.org/users

Re: [racket] My new Racket blog....

2012-09-03 Thread prad
in friendship, prad Racket Users list: http://lists.racket-lang.org/users

Re: [racket] speeding up db.plt loading

2012-09-02 Thread prad
f course i have no access to the db). > > Hi Prad, > > > I want to follow up on this particular issue: it's very possible that > this particular PLaneT package was not properly compiled upon > installation. > > It's very easy to have PLaneT packages half-installed

Re: [racket] speeding up db.plt loading

2012-09-02 Thread prad
Neil Van Dyke writes: > If you instead try the following, is that sufficiently fast: > > (require db/base db/sqlite3) > wow! thx neil! -- in friendship, prad Racket Users list: http://lists.racket-lang.org/users

[racket] speeding up db.plt loading

2012-09-02 Thread prad
e)) is there anyway to speed up the loading? -- in friendship, prad Racket Users list: http://lists.racket-lang.org/users

[racket] html parser

2012-06-10 Thread prad
are there html parsers for racket? any particular recommendations? -- in friendship, prad Racket Users list: http://lists.racket-lang.org/users

Re: [racket] plots/graphics without drscheme

2012-05-11 Thread prad
beautifully. i'll just upgrade and all should go well! thx for all this!! -- in friendship, prad Racket Users list: http://lists.racket-lang.org/users

Re: [racket] plots/graphics without drscheme

2012-05-11 Thread prad
Neil Toronto writes: > On 05/11/2012 11:44 AM, prad wrote: >> i'm not using drscheme. >> >> how do i display things like >> (object:2d-view% ...) >> which are produced when we use plot etc. >> >> if i run a racket program from command line? &g

[racket] plots/graphics without drscheme

2012-05-11 Thread prad
i'm not using drscheme. how do i display things like (object:2d-view% ...) which are produced when we use plot etc. if i run a racket program from command line? i thought there might be something like a show function, but it doesn't seem to be in #lang racket -- in friend

Re: [racket] host not found error

2012-05-06 Thread prad
just worked from my local machine 3) used a public nameserver 8.8.8.8 crashes at the same number of records everytime! so at least we've eliminated the nameserver issue. now i'd better look at this port stuff. -- in friendship, prad Racket Users list: http://lists.racket-lang.org/users

Re: [racket] host not found error

2012-05-06 Thread prad
Danny Yoo writes: > On Sunday, May 6, 2012, prad wrote: > > i'm trying to understand a consistent error i'm getting while using a > racket program to get data from a website. > > i'm accessing the site to download certain posts using regexp

[racket] host not found error

2012-05-06 Thread prad
is reasoning correct? -- in friendship, prad Racket Users list: http://lists.racket-lang.org/users

Re: [racket] eval question

2011-05-21 Thread prad
Eli Barzilay writes: > About a minute ago, prad wrote: >> if i run the last line in the repl, it works. >> however, if i just try to run the program i the following error: >> >> compile: unbound identifier (and no #%app syntax transformer is bound) >> at: displ

[racket] eval question

2011-03-31 Thread prad
something like this? -- in friendship, prad _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] date format conversion

2011-02-12 Thread prad
is simply amazing! -- in friendship, prad _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] date format conversion

2011-02-12 Thread prad
Neil Van Dyke writes: > prad wrote at 02/12/2011 08:17 PM: >> is there a function which will convert >> "February 12, 2011" >> to >> "2011-02-12" > > Racket search turns up "string->date" and "date->string". You ca

[racket] date format conversion

2011-02-12 Thread prad
is there a function which will convert "February 12, 2011" to "2011-02-12" or do we need to write it ourselves? -- in friendship, prad _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] Possible bug with sine and cosine (simple floating-point issue?)

2011-01-06 Thread prad
in the mid 80s. :D -- in friendship, prad _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] Possible bug with sine and cosine (simple floating-point issue?)

2011-01-06 Thread prad
70s (though neither have things in this detailed explanation or proofs!) and am looking forward to going through the paper in the future. -- in friendship, prad _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] Possible bug with sine and cosine (simple floating-point issue?)

2011-01-06 Thread prad
no doubt better explanations, but this is what i found on short notice). -- in friendship, prad _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] geiser evaluation not working

2010-12-25 Thread prad
On Mon, 13 Dec 2010 18:11:22 -0800 prad wrote: > ok with some fiddling and re-reading i was able to get this to work. > it puts out a > ,enter (file ) > in the repl when i start it with C-u C-c C-z > i also found out today why i was having problems sometimes and not others

Re: [racket] Question about package, library and module

2010-12-17 Thread prad
tead of the way it is for 6.1 module_basics: (provide rp) (define (rp ostr lst) (apply format ostr lst))) which seems to be for a file to which you provide a direct path as in (require "utils.rkt") many thanks! -- In friendship, prad ... wit

Re: [racket] Question about package, library and module

2010-12-16 Thread prad
ny progress after reading 6.3 module paths either. :( -- In friendship, prad ... with you on your journey Towards Freedom http://www.towardsfreedom.com (website) Information, Inspiration, Imagination - truly a sit

Re: [racket] geiser evaluation not working

2010-12-13 Thread prad
i don't pick up on things too quickly sometimes. it's a great package as is quack - much appreciation to both you and neil!. i look forward to using both! many thanks for your help! -- In friendship, prad ... with you on your journey Towards F

[racket] geiser evaluation not working

2010-12-13 Thread prad
quot;) (setq geiser-mode-smart-tab-p t) what do i need to do to get geiser eval to be sent to the repl? -- In friendship, prad ... with you on your journey Towards Freedom http://www.towardsfreedom.com (website) Informatio

Re: [racket] multi-replace function

2010-12-08 Thread prad
few days ago while going through the guide (the make-pipe part): file:///usr/share/racket/doc/guide/regexp-match.html thx again! -- In friendship, prad ... with you on your journey Towards Freedom http://www.towardsfreedom.com (website) Information, Inspira

[racket] multi-replace function

2010-12-06 Thread prad
gex a good thing to use in these situations anyway because it's not like there's anything that's going to be thrown at them that will stress the system out ... or is that a bad attitude? -- In friendship, prad ... with you on your journ

Re: [racket] read text file

2010-12-06 Thread prad
On Mon, 6 Dec 2010 19:48:14 -0700 Jay McCarthy wrote: > Try file->string > thx jay and sam! file->string works very nicely for what i'm doing, but i'll check the read-all out later. interesting that now i have so many options! :D -

[racket] read text file

2010-12-06 Thread prad
racket? (other than read-line right through to the end of the file, may be?) or is reading it all in at one shot not considered the right way to do it here? -- In friendship, prad ... with you on your journey Towards Freedom http://www.towardsfre

Re: [racket] Exploratory programming?

2010-11-30 Thread prad
provides should enable me to get what i want in a timely fashion. the entire racket setup is the highest quality system we've ever encountered. -- In friendship, prad ... with you on your journey Towards Freedom http://www.towardsfreedom.com (website

[racket] dbd-spgsql.plt date problem

2010-11-28 Thread prad
ead of what i was getting" (tm:date 0 0 0 0 18 9 18 0) so i can probably get it to work right eventually, but is there a way i can modify the actual file i'm getting from planet? -- In friendship, prad ... with you on your journey Towards F

[racket] quack-view-keyword-docs

2010-11-27 Thread prad
ommon lisp?). -- In friendship, prad ... with you on your journey Towards Freedom http://www.towardsfreedom.com (website) Information, Inspiration, Imagination - truly a site for soaring I's _ F

Re: [racket] quack qunundrum

2010-11-26 Thread prad
rce. no problem though i think quack is just fine for me presently - i have a lot to learn with what i have. thank you. -- In friendship, prad ... with you on your journey Towards Freedom http://www.towardsfreedom.com (websit

[racket] quack qunundrum

2010-11-26 Thread prad
-r and i can even compile the entire buffer without difficulty. any thoughts on what i can do to get C-c C-c working? -- In friendship, prad ... with you on your journey Towards Freedom http://www.towardsfreedom.com (website) Information, Inspiration, Imaginati