[racket-users] How to download image using net/http-client?

2018-10-16 Thread Chansey
e "google.png" can not be open by image viewer. Is there any reference code or tutorial for downloading image and save files using http-client ? Thanks. Br, Chansey -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubsc

Re: [racket-users] How to download image using net/http-client?

2018-10-16 Thread Chansey
t; buffer parts i think. > > > Le mar. 16 oct. 2018 à 21:17, Chansey > a > écrit : > >> >> Dear all, >> >> I wrote some experiment code for net/http-client. >> >> The purpose is downloading some images from web. >> >> This is my code

[racket-users] What's the next book, after HtDP SICP and EoPL?

2018-12-01 Thread Chansey
e next book, after HtDP SICP and EoPL? Thanks in advance. Regards, Chansey -- 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...@go

[racket-users] Re: Is there any way to redefine printf in main.rkt ?

2019-04-01 Thread Chansey
I know this is not a good style, but is it possible to hack temporarily? On Tuesday, April 2, 2019 at 12:54:45 AM UTC+8, Chansey wrote: > > My racket project consists of several module files (e.g.: "foo.rkt", > "bar.rkt", ...). > > The entry module file

Re: [racket-users] Is there any way to redefine printf in main.rkt ?

2019-04-01 Thread Chansey
I've found a way. Use (current-output-port out). On Tuesday, April 2, 2019 at 1:02:05 AM UTC+8, gneuner2 wrote: > > > On 4/1/2019 12:54 PM, Chansey wrote: > > My racket project consists of several module files (e.g.: "foo.rkt", > > "bar.rkt", ...). &g

Re: [racket-users] Is there any way to redefine printf in main.rkt ?

2019-04-01 Thread Chansey
Dear George, Your method is also very well. Because using with-output-to-file to wrapper main.rkt is enough, not must in every module files. Thanks. On Tuesday, April 2, 2019 at 1:30:09 AM UTC+8, gneuner2 wrote: > > > On 4/1/2019 1:09 PM, Siyuan Chen wrote: > > Dear George, > > > > This

Re: [racket-users] Is there any way to redefine printf in main.rkt ?

2019-04-01 Thread Chansey
More elegant way is combining with-output-to-file with dynamic-require (with-output-to-file FILE (lambda () (dynamic-require "main.rkt" #f)) ) On Tuesday, April 2, 2019 at 1:53:47 AM UTC+8, Chansey wrote: > > Dear George, > > Your method is also very w