[racket-users] Re: Embedding image files in a executable file

2018-03-29 Thread 若草春男
It fails the following case, too: [foo.rkt] #lang racket (require 2htdp/universe) (define foo-image [ [Insert] - [Insert Image...] in DrRacket ]) (void (big-bang 0 (on-draw (lambda (s) foo-image The file "foo.rkt" is runnable. But, the compiled executable "foo.exe" displays the

[racket-users] Re: Why is there a space in the path to the Racket application on MacOSX?

2018-03-29 Thread Eric Eide
David Storrs writes: > Second the desire for this not to be the case. Personally, my > solution is just to rename the folder after installing it. I am > currently working with binaries from > /Applications/Racket_v6.11/bin/... FWIW, I make a symlink (with no spaces in

[racket-users] Mozart's Musical dice with rsound

2018-03-29 Thread Daniel Prager
For fun, I've written a program to synthesise random compositions based on Mozart's musical dice procedure, with results played courtesy of rsound. [Program appended.] See this Daily Programmer challenge for background:

[racket-users] Re: Why is there a space in the path to the Racket application on MacOSX?

2018-03-29 Thread HiPhish
I think you are trying to solve the wrong problem. If people want to use a command-line tool they should know how to use the command line first. They don't have to know every arcane feature of the Bourne Shell, but knowing to escape spaces or quote strings is the bare minimum. Think about it

Fwd: [racket-users] Mozart's Musical dice with rsound

2018-03-29 Thread 'John Clements' via Racket Users
Oops forgot to cc: users. Dan, if you respond, could you respond to this one rather than the one I sent only to you? Sorry. John > Begin forwarded message: > > From: John Clements > Subject: Re: [racket-users] Mozart's Musical dice with rsound > Date: March 29, 2018

[racket-users] Contract work

2018-03-29 Thread James Platt
My company, Biomantica, is working on an SBIR grant application and we would like to be able to include statements from people who would be willing to do Racket contract work for us contingent on our getting the grant. What we really need is just to show that we have people we can call on who

Re: [racket-users] raco pkg downloads source code with a future timestamp

2018-03-29 Thread Greg Trzeciak
You are right - sample cached file I tried has a timestamp of 12:50 while unpacked files frome cached are all with timestamp 13:50 On Thursday, March 29, 2018 at 1:29:11 PM UTC+2, Matthew Flatt wrote: > > At Thu, 29 Mar 2018 04:09:00 -0700 (PDT), Greg Trzeciak wrote: > > Here are some tests

Re: [racket-users] raco pkg downloads source code with a future timestamp

2018-03-29 Thread Matthew Flatt
How about a direct use of `file-or-directory-modify-seconds`? Does (file-or-directory-modify-seconds "test-file" (current-seconds)) on an existing "test-file" set the timestamp on "test-file" to the current time? At Thu, 29 Mar 2018 04:38:23 -0700 (PDT), Greg Trzeciak wrote: > You are right -

Re: [racket-users] raco pkg downloads source code with a future timestamp

2018-03-29 Thread Matthew Flatt
At Thu, 29 Mar 2018 04:09:00 -0700 (PDT), Greg Trzeciak wrote: > Here are some tests and observations > * The problem doesn't appear outside of raco pkg (ie: git clone uses > correct dates, writing files from racket - also correct) > * cache file for downloaded content is correctly timestamped >

[racket-users] raco pkg downloads source code with a future timestamp

2018-03-29 Thread Greg Trzeciak
This is a continuation of the previous thread: https://groups.google.com/forum/#!topic/racket-users/kYk-x5Zn5EE the title of this one is more appropriate to the problem. On my Windows 10 machine all packages are downloaded and the files are timestamped +1h or +2h into the future (in

Re: [racket-users] raco pkg downloads source code with a future timestamp

2018-03-29 Thread Greg Trzeciak
The time set by it is correct (current) On Thursday, March 29, 2018 at 1:55:19 PM UTC+2, Matthew Flatt wrote: > > How about a direct use of `file-or-directory-modify-seconds`? Does > > (file-or-directory-modify-seconds "test-file" (current-seconds)) > > on an existing "test-file" set the

Re: [racket-users] sharing an awesome plot - warms the cockles of my heart

2018-03-29 Thread Sanjeev Sharma
Thanks so much Mr. Williams. I posted that last item then disappeared - I had one of my CPA exams (I failed, but i always think that after an exam) & just had to force myself not to check my email for a couple of days. I hope it didn't take you too long. Unless, like me, you program like some

Re: [racket-users] Mozart's Musical dice with rsound

2018-03-29 Thread Daniel Prager
Thanks John I've made updates (below) based on your suggestions, and the overall effect is pleasing. 1. The use of asdr fixed the choppiness, although I don't really understand what I'm doing. [I understand that asdr stands for Attack-Decay-Sustain-Release

[racket-users] Re: Why is there a space in the path to the Racket application on MacOSX?

2018-03-29 Thread JCG
Count me in as a person who renames racket installations without spaces. It is more prudent to design file names without special characters, escapes, or quotes. Otherwise, any shell script that might otherwise work on most unix file names may fail. It's just not worth the hassle guessing if