[racket-users] Rosetta Code: Level 1st (that's FIRST) with TCL

2015-04-28 Thread Tim Brown
Folks, I've just done a quick burst of cherry picking tasks on Rosetta Code (www.rosettacode.org). I took a quick look at: * http://rosettacode.org/wiki/Category:Tcl and * http://rosettacode.org/wiki/Category:Racket And they both have the line: The following 845 pages are in this category, out

[racket-users] Re: Rosetta Code: Level 1st (that's FIRST) with TCL

2015-04-28 Thread Tim Brown
Oh dear! That didn't last long. It seems, that Racket now has 846 tasks. It is now no longer the /joint/ most popular programming language on Rosetta Code. Tim On Wednesday, 29 April 2015 00:38:53 UTC+1, Tim Brown wrote: I do believe that Tcl and Racket are now jointly the most popular

Re: [racket-users] Handling concurrent requests in the web server

2015-04-28 Thread Tim Brown
David, Jay proved to me that the web-server was working with an experiment involving Apache Bench (ab); which is a nifty tool, I must say! I'm still no wiser as to why the browser serialises GETs to a single server. Hypothetically, if I wanted to AJAX the replies from my script into two divs --

[racket-users] Handling concurrent requests in the web server

2015-04-27 Thread Tim Brown
. REQUEST @ 1430151106 RESPONSE @ 1430151116 :: #f REQUEST @ 1430151116 RESPONSE @ 1430151126 :: #f So, a pair of requests which could be serviced in 10s + a tiny bit are taking 20s. How do I serve this servlet so that it handles requests in parallel. Thanks in advance, Tim -- Tim Brown CEng

[racket-users] Re: web-server http-digest-auth: nonce has \r\n

2015-05-07 Thread Tim Brown
I wonder if base64-encode should rather be patched with a #:last-newline? (Default #t) argument. Tim On 7 May 2015 17:37:18 BST, Tim Brown tim.br...@cityc.co.uk wrote: Folks, I've just tried to use web-server/http-digest-auth, and it seems that make-digest-auth-header generates an invalid

Re: [racket-users] Re: web-server http-digest-auth: nonce has \r\n

2015-05-08 Thread Tim Brown
often than keeping it. On May 7, 2015 2:22 PM, Tim Brown t...@timb.net wrote: I wonder if base64-encode should rather be patched with a #:last-newline? (Default #t) argument. Tim On 7 May 2015 17:37:18 BST, Tim Brown tim.br...@cityc.co.uk wrote: Folks, I've just tried to use web-server/http

Re: [racket-users] Re: web-server http-digest-auth: nonce has \r\n

2015-05-08 Thread Tim Brown
(temporarily) to my install? Should I have used raco? Some fancy gittery? Regards, Tim -- Tim Brown CEng MBCS tim.br...@cityc.co.uk City Computing Limited · www.cityc.co.uk City House · Sutton Park Rd

Re: [racket-users] Rosetta Code: Level 1st (that's FIRST) with TCL

2015-05-05 Thread Tim Brown
://rosettacode.org/wiki/Category:Tcl#mw-pages http://rosettacode.org/wiki/Category:Racket#mw-pages This is what I based my announcement on. Which give Tcl 851 and Racket 850. So it looks like game on, people! Tim -- Tim Brown CEng MBCS tim.br...@cityc.co.uk

[racket-users] web-server http-digest-auth: nonce has \r\n

2015-05-07 Thread Tim Brown
the header to be truncated (and therefore invalidated) by my browser. I don't know if it's actually upsetting my call to response; but in any case it's a problem. I'm also not sure if there should also be a comma between the nonce and opaque. I've put together a patch for your perusal. tim-brown-patch

[racket-users] Typed Racket: Shuffle Polymorphic Function problem

2015-05-18 Thread Tim Brown
Folks, I'm trying to write a shuffle function in TR, composed of a Cutter function and a Riffler function. I start with a few types and implementations for a cutter and a riffler. The shuffler is basically (riffle (cut deck)): -- #lang

Re: [racket-users] Typed Racket: Shuffle Polymorphic Function problem

2015-05-18 Thread Tim Brown
)) Sam On Mon, May 18, 2015 at 4:15 AM Tim Brown t...@timb.net mailto:t...@timb.net wrote: I have tried everything (with the exception of the right thing) to mould this function to my will: - used longhand types rather than the define-types Riffler, Cutter and Shuffler - All'ed

[racket-users] Pull requests for net/url

2015-05-29 Thread Tim Brown
libraries and all sorts; which make it even less economical to include. Regards, Tim -- Tim Brown CEng MBCS tim.br...@cityc.co.uk City Computing Limited · www.cityc.co.uk City House · Sutton Park Rd

[racket-users] truncated text-outline rendering on dc-path%

2015-05-28 Thread Tim Brown
? Tim Brown -- You received this message because you are subscribed to the Google Groups Racket Users group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.

[racket-users] Does scribble/lp2 allow for test submodule

2015-06-02 Thread Tim Brown
. there is a `scribble/lp2' language Is it now possible to write test cases in a `test' sub-module of a literate program for testing with `raco test'? Tim -- Tim Brown CEng MBCS tim.br...@cityc.co.uk City Computing Limited

Re: [racket-users] truncated text-outline rendering on dc-path%

2015-05-29 Thread Tim Brown
Thank you Matt. I'm glad that, for once, it wasn't the result of my failure to set something up! Regards, Tim (Apologies for whatever format this message comes in... I'm using the google mobile groups app) -- You received this message because you are subscribed to the Google Groups Racket

Re: [racket-users] truncated text-outline rendering on dc-path%

2015-05-29 Thread Tim Brown
Thank you Matt. I'm glad that, for once, it wasn't the result of my failure to set something up! Regards, Tim (Apologies for whatever format this message comes in... I'm using the google mobile groups app) -- You received this message because you are subscribed to the Google Groups Racket

Re: [racket-users] truncated text-outline rendering on dc-path%

2015-05-29 Thread Tim Brown
Thank you Matt. I'm glad that, for once, it wasn't the result of my failure to set something up! Regards, Tim (Apologies for whatever format this message comes in... I'm using the google mobile groups app) -- You received this message because you are subscribed to the Google Groups Racket

[racket-users] help please on git/github pull request

2015-07-02 Thread Tim Brown
a conflict in my branch changes) · Do I reimplement the changes (not a problem except a new PR would lose the old PR's comments which I'm not sure is a good thing) · Can someone take it over? (That would be me inflicting work on others) Any suggestions would be well received. Tim -- Tim

[racket-users] scribble/lp and test modules (redux)

2015-07-02 Thread Tim Brown
is the correct pattern for writing unit tests in scribble/lp modules (basically so I can raco test all my .rkt files)? · Am I just /missing something/ as per usual? · Should I use the first style, and re-export m through a second file? Tim -- Tim Brown CEng MBCS tim.br...@cityc.co.uk

Re: [racket-users] help please on git/github pull request

2015-07-03 Thread Tim Brown
. Remember how no one likes a dirty fork, so we’re diligently using git pull --ff-only upstream master? That's been well drilled into my (mostly by Greg's doc). Which is why I'm asking before doing anything! Tim -- Tim Brown CEng MBCS tim.br...@cityc.co.uk

[racket-users] Re: scribble/lp and test modules (redux)

2015-07-07 Thread Tim Brown
Is there something wrong with this question? This issue has been bugging me for a while :-/ Tim On Thursday, July 2, 2015 at 12:24:00 PM UTC+1, Tim Brown wrote: I have the following scribble module (in /tmp/tim.rkt) #lang scribble/lp @(chunk * (module m racket (provide x

Re: [racket-users] Regarding plt/racket PR#948 (net/url-string)

2015-08-12 Thread Tim Brown
Thank you Vincent. Tim On 12/08/15 15:19, Vincent St-Amour wrote: Hi Tim, It looks like your PR accidentally fell through the cracks. Sorry about that. I'll have a look at it today. Thanks again for your contributions! Vincent -- Tim Brown CEng MBCS tim.br...@cityc.co.uk

[racket-users] Garbage Collection of Places

2015-08-17 Thread Tim Brown
/6.2.1-d --enable-backtrace --disable-strip --enable-noopt Tim -- Tim Brown CEng MBCS tim.br...@cityc.co.uk City Computing Limited · www.cityc.co.uk City House · Sutton Park Rd · Sutton · Surrey · SM1 2AE

[racket-users] Re: Garbage Collection of Places

2015-08-17 Thread Tim Brown
On 17/08/15 15:02, Tim Brown wrote: I am observing a memory leak with place-channels. I have long-lived (or very busy server “places” ) which I think are exhausting VM memory and causing spectacular failures -- core dumps, spins and other fun I came to Racket to avoid. Please could someone

[racket-users] Re: Garbage Collection of Places

2015-08-17 Thread Tim Brown
On 17/08/15 15:15, Tim Brown wrote: To explain my need of insane numbers of places, I [...] I mean place-channels, the population of places is fixed. -- Tim Brown CEng MBCS tim.br...@cityc.co.uk City

Re: [racket-users] Garbage Collection of Places

2015-08-17 Thread Tim Brown
17, 2015 at 10:03 AM Tim Brown tim.br...@cityc.co.uk mailto:tim.br...@cityc.co.uk wrote: Folks, I am observing a memory leak with place-channels. I have long-lived (or very busy server “places”) which I think are exhausting VM memory and causing spectacular failures -- core

Re: [racket-users] Garbage Collection of Places

2015-08-17 Thread Tim Brown
is just too horrible to contemplate :-O . And send brave souls like you to face the horrors. Thanks for volunteering. I've pushed a repair as commit 641c56b6e9. I expect that patch would apply cleanly to v6.2.1. Tim -- Tim Brown CEng MBCS tim.br...@cityc.co.uk

Re: [racket-users] Re: send-new-place-channel-to-named-dest usage question

2015-08-09 Thread Tim Brown
, Tim Brown wrote: On 06/08/15 11:29, Tim Brown wrote: (define node (create-place-node localhost #:listen-port 6344)) ;; [!] this prints out (to stdout) (6344) As a minor side issue, create-place-node prints what looks like a list of the listen port number to standard out. (Or it prints

Re: [racket-users] Website Eyecandy from days gone by

2015-08-14 Thread Tim Brown
Thanks Eli. On 13/08/15 18:30, Eli Barzilay wrote: On Mon, Aug 10, 2015 at 5:35 AM, Tim Brown tim.br...@cityc.co.uk wrote: Folks, The “PLT Scheme” website, as was, had a set of preview pictures along the left hand side which scrolled in a “fish-eyed” kind of way (you either know what I’m

[racket-users] Regarding plt/racket PR#948 (net/url-string)

2015-08-12 Thread Tim Brown
; but please could someone look at this PR and let me know whether there is anything wrong with it, anything I can do, or any other feedback. Again apologies for the impatience; but, in my experience, occasionally things need a nudge :-) Tim https://github.com/plt/racket/pull/948 -- Tim Brown

Re: [racket-users] Regarding plt/racket PR#948 (net/url-string)

2015-08-12 Thread Tim Brown
On 12/08/15 17:20, Vincent St-Amour wrote: Pull request merged. Super! Thanks again for your contributions, and sorry again for the delay. They're nothing compared to what you guys are doing all the time. :-) Tim -- Tim Brown CEng MBCS tim.br...@cityc.co.uk

[racket-users] Website Eyecandy from days gone by

2015-08-10 Thread Tim Brown
-- Tim Brown CEng MBCS tim.br...@cityc.co.uk City Computing Limited · www.cityc.co.uk City House · Sutton Park Rd · Sutton · Surrey · SM1 2AE · GB T:+44 20 8770 2110 · F:+44 20 8770 2130

Re: [racket-users] postgresql-connect and #:notification-handler

2015-07-14 Thread Tim Brown
://www.convextech.ca/~m4burns/pqnotify/ If nothing else works, this undocumented chunk of code with external dependencies will let you do what you want. Cheers, Marc On Jul 14, 2015, at 10:20 AM, Tim Brown tim.br...@cityc.co.uk mailto:tim.br...@cityc.co.uk wrote: Folks, I have an application

[racket-users] postgresql-connect and #:notification-handler

2015-07-14 Thread Tim Brown
be appreciated. [1] Ironically: if this query is included, NH is called, because the notifcation is posted before the query returns. [2] http://www.postgresql.org/docs/9.4/static/sql-notify.html Regards, Tim -- Tim Brown CEng MBCS tim.br...@cityc.co.uk

[racket-users] Testing environment variable changes

2015-10-19 Thread Tim Brown
setting, putenv some environment variables then test again? I can do this out of a sandbox, but would this be a usual approach? Tim -- Tim Brown CEng MBCS <tim.br...@cityc.co.uk> City Computing Limited · www.ci

Re: [racket-users] Testing environment variable changes

2015-10-19 Thread Tim Brown
in the net library. Regards, Tim On 19/10/15 12:56, Jay McCarthy wrote: > On Mon, Oct 19, 2015 at 6:16 AM, Tim Brown <tim.br...@cityc.co.uk> wrote: >> Folks, >> >> I’m coming close to writing unit tests for my “URL proxies from the >> environment” code. >

Re: [racket-users] Re: Case for net/url.rkt to read HTTP proxy servers from environment

2015-10-14 Thread Tim Brown
I’m having a truly difficult time documenting this. I have cloned out my (not quite ready to release any more) tim-brown/racket repo. Checked out the proxy-servers-from-env branch; which has the changes in url.rkt: https://github.com/tim-brown/racket/blob/proxy-servers-from-env/racket/collects

Re: [racket-users] Re: Case for net/url.rkt to read HTTP proxy servers from environment

2015-10-14 Thread Tim Brown
widespread enough. > Changing a variable before starting specific command is not hard per se, and > it's not hard to have some alias for it: > `http_proxy=$PLT_HTTP_PROXY racket ...` > -- Tim Brown CEng MBCS <tim.br...@cityc.co.uk> ━

Re: [racket-users] Testing environment variable changes

2015-10-20 Thread Tim Brown
aren't.) > >The docs and tests look fine otherwise if the other crew like this >design. > >Jay > >On Mon, Oct 19, 2015 at 10:16 AM, Tim Brown <tim.br...@cityc.co.uk> >wrote: >> Jay, >> >> PR#1089 has changes to allow current-proxy-servers and >>

Re: [racket-users] Re: Case for net/url.rkt to read HTTP proxy servers from environment

2015-10-14 Thread Tim Brown
On Wed, Oct 14, 2015 at 4:32 AM, Tim Brown <tim.br...@cityc.co.uk> wrote: >> I was (still am, in fact) in two minds about using a standard proxy or >> using an “application-specific” prefix. I’ve got to document and test >> the new code; while I’m doing that anyone who wants

[racket-users] Re: Case for net/url.rkt to read HTTP proxy servers from environment

2015-10-12 Thread Tim Brown
documented in the PR at the moment. Could someone form an opinion of this PR for me :-) Thanks, Tim On Friday, October 9, 2015 at 2:39:26 PM UTC+1, Tim Brown wrote: > Is there any merit in taking the current environment variable values > (on UNIX at least) of “proxy”, “http_proxy” and “https

Re: [racket-users] Case for net/url.rkt to read HTTP proxy servers from environment

2015-10-10 Thread Tim Brown
: > If there are standard variables, I think it would be great to take them. > > On Fri, Oct 9, 2015 at 9:39 AM, Tim Brown <tim.br...@cityc.co.uk > <mailto:tim.br...@cityc.co.uk>> wrote: > > Is there any merit in taking the current environment variable values >

[racket-users] Case for net/url.rkt to read HTTP proxy servers from environment

2015-10-09 Thread Tim Brown
Is there any merit in taking the current environment variable values (on UNIX at least) of “proxy”, “http_proxy” and “https_proxy” and loading them by default into current-proxy-servers? (net/url.rkt l.26) Are these even the right variables to go for? What do we think? Tim -- Tim Brown CEng

[racket-users] raco pkg install behind proxy

2015-10-09 Thread Tim Brown
ch-and-continue .../minimal-racket/share/racket/collects/racket/contract/private/arrow-val-first.rkt:324:3 .../minimal-racket/share/racket/collects/pkg/private/download.rkt:93:0: download-repo!24 .../minimal-racket/share/racket/colle

Re: [racket-users] More Racket Place abuse^H^H^H^H^H issues

2015-08-31 Thread Tim Brown
Matthew, Thanks again. That wasn't the cleanest bug report, and I was really hoping it wasn't attibutable to some flaky library software on my system (especially since *I* needed PostgreSQL to trigger it). Again, many thanks for working on and fixing the bug. I'm away from work at the moment,

Re: [racket-users] More Racket Place abuse^H^H^H^H^H issues

2015-09-03 Thread Tim Brown
of the cost? Tim -- Tim Brown CEng MBCS <tim.br...@cityc.co.uk> City Computing Limited · www.cityc.co.uk City House · Sutton Park Rd · Sutton · Surrey · SM1 2AE · GB T:+44 20 8770 2

[racket-users] Issues with `head-pure-port'

2015-09-04 Thread Tim Brown
#:break (string=? p "")) p) 3. Poking around url.rkt, I notice that `http-conn-impure-port' makes a pipe with a limit of 4096 bytes. http-client.rkt, which is directly required by url.rkt, defines (but does not provide) `PIPE-SIZE' -- also 4096. Is there any me

Re: [racket-users] Serializable Continuations in Sandboxes

2015-09-17 Thread Tim Brown
can grok directly. I > believe that you problem does not have to with the web-language, but > just with using serialize. > -- Tim Brown CEng MBCS <tim.br...@cityc.co.uk> City Computing L

Re: [racket-users] Serializable Continuations in Sandboxes

2015-09-17 Thread Tim Brown
ing the sandbox boundary too often. But AFAICT both implementations of external-my-deserialize cross the boundary equally as often. Of course, only one of them works. Thanks again for the assistance. Tim -- Tim Brown CEng MBCS <tim.br...@cityc.co.uk>

[racket-users] Somewhere to keep racket snippets

2015-09-09 Thread Tim Brown
Folks, This morning I wrote a function which seemed quite sharable. It took a pict, converted it into a PNG bytes, base64-encode'd it and put it into an tag. It was all of three lines long, was too short to (IMO) put into a library, but I thought it was a valuable “snippet”. Is there

Re: [racket-users] Re: More Racket Place abuse^H^H^H^H^H issues

2015-09-23 Thread Tim Brown
I have installed the patch, and my installation is now passing its stress test. FYI, I put a quick printf() in to show when the bc->link is null (i.e. when the bug would have manifested) -- it occurred 3 times in a run of 10M messages. Rare, indeed. Thanks for deaing with this so promptly. Tim

[racket-users] Re: More Racket Place abuse^H^H^H^H^H issues

2015-09-22 Thread Tim Brown
Matthew, I have built and installed: Welcome to Racket v6.2.900.17. on the same machine described in the original post. The test script below has started failing again. Has the code reverted back to its old behaviour? Tim On Monday, August 24, 2015 at 3:59:03 PM UTC+1, Tim Brown wrote

Re: [racket-users] Re: send-new-place-channel-to-named-dest usage question

2015-09-21 Thread Tim Brown
Matthew, On Sunday, August 9, 2015 at 11:11:00 AM UTC+1, Tim Brown wrote: > On 8 August 2015 15:13:01 BST, Matthew Flatt <mfl...@cs.utah.edu> wrote: > >I fixed the minor issue, but I haven't been able to figure out how > >`send-new-place-channel-to-named-dest` is meant t

[racket-users] Broadcasting to distributed places

2015-09-21 Thread Tim Brown
can’t find_ the correct way to share the work out this way. Does anyone have any ideas (better yet, experience) of doing this; using place-socket-bridge% , or otherwise? Regards, Tim Brown -- Tim Brown CEng MBCS <tim.br...@cityc.co

[racket-users] format-id and blue arrows

2015-12-04 Thread Tim Brown
Some context: I am actually using `prepare` to prepare some database queries. So I have macros to define: find-a-thing-sql and find-a-thing-sql/prepared For the most part I use find-a-thing-sql/prepared in my queries; so *that* is what I want to jump back to the definition of using "Jump to Binding Occ

Re: [racket-users] format-id and blue arrows

2015-12-04 Thread Tim Brown
ally needs to set up some > properties on the identifier. > > If you (or anyone) wants to look into fixing this, these are the relevant > docs: > > http://docs.racket-lang.org/tools/Check_Syntax.html > > Look for the description of "sub-range-binders&quo

Re: [racket-users] format-id and blue arrows

2015-12-04 Thread Tim Brown
These examples seem to work fine without syntax-local-introduce on the identifiers. What is s-l-i’s role in this code? Tim -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send

[racket-users] Rosetta Code Progress

2015-11-30 Thread Tim Brown
ys folk have put up there. Tim Brown BTW: My “Popular Languages Report” (http://timb.net/popular-languages.html) reported 900 a while back... but it is double-counting. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubsc

[racket-users] Re: [racket] PLT_HTTP_PROXY and PLT_NO_PROXY honoured (#1089)

2015-11-20 Thread Tim Brown
Matt, (n.b. the message on GitHub is a bcc: of one I've sent to racket users) Sorry, I got diverted to other more “urgent” things (he who pays the piper...). That's why I took so long finishing the job; and rushing at the end, why I left garbage like net/url-proxy in the commit. So THANK

[racket-users] drracket / postgresql error when opening connection for syntax

2016-04-06 Thread Tim Brown
6.4. > (version) "6.4" $ uname -a Linux tim-8 4.4.0-1-amd64 #1 SMP Debian 4.4.6-1 (2016-03-17) x86_64 GNU/Linux -- Tim Brown CEng MBCS <tim.br...@cityc.co.uk> City Computing Limited ·

Re: [racket-users] drracket / postgresql error when opening connection for syntax

2016-04-06 Thread Tim Brown
em-type 'machine) uses the output of `uname`. >> >> On Wed, Apr 6, 2016 at 5:47 PM, Tim Brown <tim.br...@cityc.co.uk >> <mailto:tim.br...@cityc.co.uk>> wrote: >> >> Folks, >> >> I’m experimenting with creating functions from a PostgreSQL d

Re: [racket-users] drracket / postgresql error when opening connection for syntax

2016-04-06 Thread Tim Brown
; > On 04/06/2016 08:06 AM, WarGrey Gyoudmon Ju wrote: >> I met this problem before. >> (system-type 'machine) uses the output of `uname`. -- Tim Brown CEng MBCS <tim.br...@cityc.co.uk> C

Re: [racket-users] drracket / postgresql error when opening connection for syntax

2016-04-06 Thread Tim Brown
> > Sam > > On Wed, Apr 6, 2016 at 5:05 PM, Tim Brown <tim.br...@cityc.co.uk> wrote: >> Not so quick! :-) >> >> I’m allowed to run /bin/uname (-rwxr-xr-x permissions) >> So why do I get a permissions error from racke

[racket-users] racket/contract warning

2016-03-29 Thread Tim Brown
mer be changing its behaviour to satisfy racket/contract; or is this just some debug that has been left at too high an importance level? Tim -- Tim Brown CEng MBCS <tim.br...@cityc.co.uk> City Computin

[racket-users] Arrows and syntax parameters

2016-05-23 Thread Tim Brown
to put arrows between [P]->[Y] and [Q]->[Z] ? Thanks, Tim -- Tim Brown CEng MBCS <tim.br...@cityc.co.uk> City Computing Limited · www.cityc.co.uk City House · Sutton Park Rd · Sutton · S

[racket-users] Typo in syntax-class documentation?

2016-05-11 Thread Tim Brown
I found this in the documentation for syntax-class (Link to this section with @secref["stxparse-attrs" #:doc '(lib "syntax/scribblings/syntax.scrbl")]): Consider the following code: (define-syntax-class quark (pattern (a b ...))) (syntax-parse some-term [(x

Re: [racket-users] HTTP Headers use byte->string/utf-8

2016-05-05 Thread Tim Brown
Thanks Jay, Will check on it during work tomorrow. Tim -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more

Re: [racket-users] HTTP Headers use byte->string/utf-8

2016-05-06 Thread Tim Brown
works now with your workload? > > Jay - D 64:33 -- Tim Brown CEng MBCS <tim.br...@cityc.co.uk> City Computing Limited · www.cityc.co.uk City House · Sutton Park Rd · Sut

[racket-users] HTTP Headers use byte->string/utf-8

2016-05-05 Thread Tim Brown
pe for in the future? Tim [1] http://stackoverflow.com/questions/4400678/http-header-should-use-what-character-encoding [2] https://tools.ietf.org/html/rfc7230#section-3.2.4 -- Tim Brown CEng MBCS <tim.br...@cityc.co.uk>

[racket-users] How can I differentiate between a here string and a "" string?

2016-04-20 Thread Tim Brown
he here string? Thanks, Tim PS: Ow, I’ve just thought; I’ve got a similar problem with: (parse "'Hello\", said John") and its #\\ quoting. Does anyone have any ideas about this -- Tim Brown CEng MBCS <tim.br...@cityc.co.uk> ━━━

Re: [racket-users] How can I differentiate between a here string and a "" string?

2016-04-20 Thread Tim Brown
than that, for all the cases of string escapes that you want > to handle. > > Infix package docs: > http://docs.racket-lang.org/infix-manual/index.html > Infix package source: > https://github.com/soegaard/infix/tree/master > >> On Apr 20, 2016, at 5:

Re: [racket-users] How can I differentiate between a here string and a "" string?

2016-04-20 Thread Tim Brown
ion currently. You could > try using read tables to recover it or suggest a patch to read to not > discard it, I suppose. > > Good luck and I hope life continues to surprise. ;P > > Robby > > On Wed, Apr 20, 2016 at 7:46 AM, Tim Brown <tim.br...@cityc.co.uk> wrot

Re: [racket-users] HTTP Headers use byte->string/utf-8

2016-05-07 Thread Tim Brown
Thanks, Jay, for highlighting the warning which pretty well says that if I do what I did then I deserve what happened to me :-) More generally, is there any means of "annotating" that a function/library is deprecated (I assume you'd consider that library to be deprecated). So that I would have

[racket-users] How do I "make base"

2016-08-03 Thread Tim Brown
e top-level checkout dir", to quote stamourv. A git clone later and I *still* don't have base in any makefile. Folks... how do I either make base or get as minimal a racket installation as I can with a capable raco? Thanks in anticipation, Tim -- Tim Brown - t...@timb.net - +44(0)77717141

Re: [racket-users] How do I "make base"

2016-08-04 Thread Tim Brown
everything else via `raco pkg install`. Binaries, including raco, end up in `racket/racket/bin`. -- William J. Bowman On Wed, Aug 03, 2016 at 06:02:53PM +0100, Tim Brown wrote: Here's hoping someone can answer this without too much (any) difficulty: I have the Unix source in racket-6.6-src.tgz from

Re: [racket-users] Testing an HTTPS (over HTTP CONECT) proxy

2016-08-10 Thread Tim Brown
a good >> session (by dumping an interaction with a real server) >> >> 3) Require squid or something to be present when testing >> >> 4) Find a public proxy server that can be used to test >> >> -- >> >> I recommend 2. >> >> Jay >&g

[racket-users] Testing an HTTPS (over HTTP CONECT) proxy

2016-08-09 Thread Tim Brown
is a straightforward enough exercise. However, I’m a bit stuck with testing. I have a new clone of tim-brown/racket and a `make` is building, DOWNLOADING and INSTALLING the packages. The capitals are because I am so excited! So, as far as I can tell: it “works for me”. I guess that isn’t what most engineers

[racket-users] Best practice for using .../private files from packages (pict3d)

2017-01-26 Thread Tim Brown
? Or any other thoughts on the matter. Tim † It took something like 30 minutes to `raco pkg install pict3d` on this thing, so `raco make _utility_` is probably a non-starter. -- Tim Brown CEng MBCS <tim.br...@cityc.co

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

2016-09-07 Thread Tim Brown
;;; Runtime error is: -- broke its own contract promised: Index produced: -1 in: Index contract from: cast blaming: cast (assuming the contract is correct) at: unsaved-editor:18.6 ---------

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

2016-09-08 Thread Tim Brown
Sam, On the off-chance that the snapshot I used was somehow “stale”: I have just done a fresh racket install from git; I have 'raco pkg install -i pict3d' And retried the test. I still get the type errors. Tim On 07/09/16 16:47, Tim Brown wrote: > :-( > > Latest nightly "sn

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

2016-09-07 Thread Tim Brown
cpointers 20 [#:opaque CType ctype?] 21 ) .. which seems perfectly innocuous to me :-/ Tim -- Tim Brown CEng MBCS <tim.br...@cityc.co.uk> City Computing Limited · www.cityc.co.uk City House · Sutt

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

[racket-users] TR issue with the type of expt

2016-09-27 Thread Tim Brown
rds, Tim Version: 6.6.0.4--2016-09-08(-/f) [3m]. -- Tim Brown CEng MBCS <tim.br...@cityc.co.uk> City Computing Limited · www.cityc.co.uk City House · Sutton Park Rd · Sutton · Surrey

Re: [racket-users] TR issue with the type of expt

2016-09-27 Thread Tim Brown
/i/ forgot about that. And there you have it: (-> Nonnegative-Real Real Real) Don’t laugh, but the irony (tragedy) is that I’m using it to implement some quaternion stuff. On 27/09/16 14:43, Pierpaolo Bernardi wrote: > On Tue, Sep 27, 2016 at 3:23 PM, Tim Brown <tim.br...@cityc.co.

[racket-users] Any work on demo.racket-lang.org?

2017-04-24 Thread Tim Brown
d am ready to go...) But before I duplicate effort (or miss an opportunity to help out), has anyone else started anything similar (specifically for Racket)? I have already been pointed at "The Scheme Cookbook", community.schemewiki.org and other things like pasterack.org Tim -- Tim

Re: [racket-users] Best way to write run-once-and-cache functions?

2017-04-26 Thread Tim Brown
On Wednesday, April 26, 2017 at 5:21:41 AM UTC+1, Jon Zeppieri wrote: > (define conf > (delay > (with-input-from-file ...))) > > Then just (force conf) whenever you want the value. I tend to call promises xxx-promise (e.g. conf-promise), to remind me not to use them without force'ing them.

Re: [racket-users] Any work on demo.racket-lang.org?

2017-04-25 Thread Tim Brown
Matthew, I’m no lawyer, but... On Tuesday, April 25, 2017 at 4:45:29 PM UTC+1, Matthew Butterick wrote: > PS about Rosetta Code generally. As a user, its utility is hugely > undermined by the fact that I can't take code from the site and easily > adapt / reuse it (at least, if I want to comply

[racket-users] Re: Any work on demo.racket-lang.org?

2017-04-25 Thread Tim Brown
Greg, On Monday, April 24, 2017 at 9:13:30 PM UTC+1, Greg Trzeciak wrote: > Regarding the Rosetta Code scraper - I have 90% of the task completed - I > will post my code on github sometime tomorrow. It still needs some work to > have it published - the number of code samples is huge so is the

Re: [racket-users] Any work on demo.racket-lang.org?

2017-04-25 Thread Tim Brown
t LP is good. There is another approach I have read of “Code Guide” http://natpryce.com/articles/000798.html: > Code Guide is a kind of opposite of Literate Programming. Fascinating little experiment. But LP, being not-so-interactive can be printed onto paper. I’m kinda seeing why this in t