[racket-users] Re: How to test that a file is syntactically correct, but don't run it

2016-11-25 Thread Andrew Kent
On Friday, November 25, 2016 at 8:28:16 PM UTC-5, David K. Storrs wrote:
> As part of my pre-checkin test suite I'd like to be able to check that all 
> files are syntactically correct, but I don't want to actually execute them 
> because, e.g. executing 'server.rkt' would start the server and I don't want 
> that.  Is there a way to do this?  Nothing I see under 'raco help' or the 
> racket docs suggests a solution.

Does 'raco make' fit the bill?

-- 
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.


Re: [racket-users] How to test that a file is syntactically correct, but don't run it

2016-11-25 Thread Matthew Butterick

On Nov 25, 2016, at 5:28 PM, David Storrs  wrote:

> As part of my pre-checkin test suite I'd like to be able to check that all 
> files are syntactically correct, but I don't want to actually execute them 
> because, e.g. executing 'server.rkt' would start the server and I don't want 
> that.  Is there a way to do this?  Nothing I see under 'raco help' or the 
> racket docs suggests a solution.

Perhaps move your code into a `start-server` function, and invoke it with 
`(module+ main (start-server))`? 

-- 
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] How to test that a file is syntactically correct, but don't run it

2016-11-25 Thread David Storrs
As part of my pre-checkin test suite I'd like to be able to check that all
files are syntactically correct, but I don't want to actually execute them
because, e.g. executing 'server.rkt' would start the server and I don't
want that.  Is there a way to do this?  Nothing I see under 'raco help' or
the racket docs suggests a solution.

-- 
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.


Re: [racket-users] css and js files when using scribble

2016-11-25 Thread Matthew Butterick

On Nov 25, 2016, at 12:54 PM, Jos Koot  wrote:

> Every time I click Scribble HTML in DrRacket
> 
> for a scribble/manual module in a separate directory 
> I find that a number of css files and two js files are produced in the same 
> directory (Windows 7)
> 
> Are these files always the same? 
> If so can't we put them in Appdata.Roaming, in order to avoid multiple 
> copies? 
> Or may be they can be pre-included in the Racket tree?
> 
> I expect there is a good reason for generating a new set of css and js files 
> for every (HTML) file produced by scribble,
> 
> but I have not the slightest idea why.
> 


IIUC, when you click "Scribble HTML", Scribble makes a self-contained render, 
which necessarily includes the CSS and JavaScript files that the HTML files 
depend on. (Corollary: this render has no dependencies on local resources, so 
it can be moved anywhere, e.g., a remote web server.)

But when you install a package normally (e.g., via `raco pkg install ...`), 
Racket can rely on the shared copy of those files used by all documentation, so 
they are not duplicated.


-- 
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] css and js files when using scribble

2016-11-25 Thread Jos Koot
Hi,

Every time I click Scribble HTML in DrRacket
for a scribble/manual module in a separate directory
I find that a number of css files and two js files are produced in the same 
directory (Windows 7)

Are these files always the same?
If so can't we put them in Appdata.Roaming, in order to avoid multiple copies?
Or may be they can be pre-included in the Racket tree?

I expect there is a good reason for generating a new set of css and js files 
for every (HTML) file produced by scribble,
but I have not the slightest idea why.

Thanks, Jos



-- 
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] Help in finding tutor

2016-11-25 Thread David Lee
I am asking for help to find a tutor. I have spent hours trying to find a tutor 
to explain the concepts of racket for my high school son. I have found a few 
sites where they would do his homework but none that would teach. Would like a 
Skype tutor.

The following is the book and assignments he needs to understand:
Link to online book: http://www.ccs.neu.edu/home/matthias/HtDP2e/part_one.html
He needs help understanding the concepts of exercises 30-60 excluding 32 and 33.

He is working on the exercises in the online book: How to Design Programs 2nd 
Edition in the Fixed Sized Data section

Thank you
David
dleeo...@gmail.com

-- 
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.


Re: [racket-users] Package catalog - can't connect

2016-11-25 Thread 書瀚張
Problem solved.
It is the China GFW again. I tried a proxy and it works.



在 2016年11月21日星期一 UTC+8上午1:16:00,Matthew Flatt写道:
> At Sun, 20 Nov 2016 09:07:00 -0800 (PST), 書瀚張 wrote:
> > 在 2016年4月19日星期二 UTC+8下午8:02:39,Matthew Flatt写道:
> > > At Mon, 18 Apr 2016 14:32:20 -0700, Jordan Johnson wrote:
> > > > So I tried downloading a newer version of OpenSSL 
> > > > (1.0.2g 1 Mar 2016), and now it fails with:
> > > > 
> > > > ssl-connect: connect failed (error:14090086:SSL 
> > > > routines:ssl3_get_server_certificate:certificate verify failed)
> > > >   context…: [stack trace follows]
> > > 
> > > I've seen these kinds of problems where the set of trusted certificates
> > > had not been updated recently enough. Maybe there's an update for the
> > > "ca-certificates" package for your installation?
> > > 
> > > You could also try setting the `PLT_PKG_SSL_NO_VERIFY` environment
> > > variable. As a workaround, that's a last resort, but it might help
> > > clarify whether it issue is with the set of trusted root certificates.
> > 
> > 
> > I have the same problem, in Windows 10.
> > The error message is:
> > ```
> > Resolving "collections-lib" via 
> > https://download.racket-lang.org/releases/6.7/catalog/
> > package-catalog-lookup: error from server
> >   URL: 
> > https://download.racket-lang.org/releases/6.7/catalog/pkg/collections-lib?versi
> > on=6.7
> >   status code: 403
> > ```
> > 
> > I never have to install any certificates in Windows before. Maybe there's 
> > something wrong in the server?
> 
> The correct response from the server for that request is a 404 error
> (not found) instead of a 403 (forbidden).
> 
> I get a 404 when accessing the URL directly. Unfortunately, I don't
> have a good guess at why you're getting a 403.
> 
> Matthew

-- 
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.


Re: [racket-users] Racket backwards compatible to schemer books?

2016-11-25 Thread Tim Johnson
* Tim Johnson  [161122 03:41]:
> Hello racketeers :
> 
> I retired as a coder. Now I can write in whatever programming
> language I wish to. 
> 
> I'd like to learn racket. I intend to start by working off of the
> Schemer books. I have the first three.
> 
> Is racket fully compatible to the code in the schemer books?
> If not, is there a site that would detail any incompatibilities?
Thank you Sam and George (and Matthias too for his OTL reply).
That's enough to get me going. 

:) Now let's see if this message (sent from my desktop) takes 5 days
to get thru...

-- 
Tim 
http://www.akwebsoft.com, http://www.tj49.com

-- 
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.