Re: [racket] Racket Web Server

2011-12-12 Thread jordan
. http://github.com/shofetim/Racket-the-Missing-Manual its -Jordan _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] Sending s-expr to repl

2010-06-24 Thread Jordan Johnson
See http://blog.racket-lang.org/2009/03/drscheme-repl-isnt-lisp.html for a detailed answer. Best, Jordan On Jun 24, 2010, at 12:12 AM, Mark Carter wrote: Scheme newbie here. I've always had a bee in my bonnet for the Lispy languages, but had never gotten into them fully for one r

Re: [racket] Call racket with long code from racket

2011-09-08 Thread Jordan Schatz
(process "echo \"Hello World with double quotes\"" You dont need the (require racket/system) the `system`, `process` etc functions are already in #lang racket. Also make sure that whatever you evaluate with racket -e '(somecode)' outputs something, or display will have

[racket] Vertical split

2011-10-28 Thread Jordan Johnson
Hi all, Quick question: Is there any way to change the Interactions/Definitions split in DrRacket to be a vertical split rather than horizontal? Thanks, jmj _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] Vertical split

2011-10-28 Thread Jordan Johnson
ab, select "Put interactions window beside the definitions window". On Fri, Oct 28, 2011 at 2:05 PM, Jordan Johnson wrote: Hi all, Quick question:  Is there any way to change the Interactions/Definitions split in DrRacket to be a vertical split rather than hori

[racket] I'd use an object for this in PHP, how do I handle it in racket?

2011-11-04 Thread Jordan Schatz
If it matters I'm likely to have 10-100 instances / threads of this running in parallel at a time... as many as I can fit on a machine. Shalom, Jordan _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

[racket] Why internal definitions?

2011-11-15 Thread Jordan Schatz
(+ x i j))) Is now considered better style then this? (define (foo2 x) (let ([i 10] [j 12]) (+ x i j))) Why? Shalom, Jordan _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] Why internal definitions?

2011-11-16 Thread Jordan Schatz
on some difference in meaning between internal defines, letrec, and local, and I don't see the difference. I feel like a dunce at the moment, but if there is something subtle that I'm missing, it seems like a good place for bugs to hid, and somewhere where I will want to enforce

[racket] formlets and . => .

2011-11-17 Thread Jordan Schatz
ch I think should be and appears to be equal to: (define date-formlet (formlet (div "Month:" ,{=> input-int month} "Day:" ,{=> input-int day}) (list month day))) But what does the => do? Is it a form of apply? Thanks, Jordan

[racket] formlet-fill

2011-11-18 Thread Jordan Schatz
ubmit"]))] (send/suspend/dispatch response-generator))) -- It seems like this would be a very common pattern... what is the "normal" way to do it? Thanks, Jordan _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] formlet-fill

2011-11-19 Thread Jordan Schatz
e to modify the values in the formlet before sending it to the client. Shalom, Jordan On Fri, Nov 18, 2011 at 04:10:29PM -0700, Jay McCarthy wrote: > You need to make a new formlet that knows about the default values. > > We could imagine a macro that makes this nicer, but in general i

Re: [racket] formlet-fill

2011-11-21 Thread Jordan Schatz
ttp://noionlabs.com/formlets/save-formlet.rkt the general pattern of how others are writing their formlets? (using a maker / generator function to create a form with initial values, and keeping it in a variable for the processing step?) Are there any open sourced web apps built in racket w

Re: [racket] Google Challenge

2011-11-22 Thread Jordan Schatz
ket starter package for racket: http://aichallenge.org/starter_packages.php Anyone care to write on? Shalom, Jordan _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

[racket] doctype in an xexpr?

2011-11-26 Thread Jordan Schatz
I don't see any way to include a DOCTYPE declaration in an xexpr? (define (start req) (response/xexpr "" `(html (head (title "Hello world!")) (body (p "Hey out there!") (except of course th

Re: [racket] doctype in an xexpr?

2011-11-28 Thread Jordan Schatz
e/xexpr > #:preamble #"" > `(html (head (title "Hello world!")) > (body (p "Hey out there!") > > On Sat, Nov 26, 2011 at 9:44 PM, Jordan Schatz wrote: > > > I don't see any way to include a DOCTYPE declaration in an x

[racket] Web server and URL dispatch

2011-12-02 Thread Jordan Schatz
--- I cant seem to get a server running that is using that dispatcher... Also I presume its possible to mix "pretty" urls made by dispatch-rules and embed/url ? Thanks, Jordan _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] Web server and URL dispatch

2011-12-02 Thread Jordan Schatz
----- Once I got it working, it makes sense; but maybe a more complete example could be added to the docs? Shalom, Jordan _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] Web server and URL dispatch

2011-12-05 Thread Jordan Schatz
rvlets together? If so that would be a nice addition to a more "complete" example. Overall its a really nice frameworks, and great docs... I am just finding it to be a steep learning curve and I thought I knew alot of languages / frameworks. Thanks, Jordan On Fri, Dec 02, 2011 at 09:44:

[racket] dispatch-rules

2011-12-08 Thread Jordan Schatz
mers") list-customers] [("invoice/export-invoices") export-invoices] [("invoice/import-invoices") import-invoices] [("invoice/create-invoice") create-invoice] [("invoice/list-invoices") list-invoices] [("invoice/payment-methods") pa

[racket] web server log format

2011-12-09 Thread Jordan Schatz
of the request, 512 vrs 2629, also every request size in the log is 512. Am I missing something? Thanks, Jordan _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

[racket] Running a webserver on port 80

2011-12-09 Thread Jordan Schatz
ssing that common practice is to use iptables to redirect to a high numbered port? What about iptables lack of support for IPv6 NAT? are there any commonly used work arounds? Thanks, Jordan _ For list-related administrative tasks: http://lists.racke

Re: [racket] web server log format

2011-12-09 Thread Jordan Schatz
sometime > tomorrow. > > Jay > > On Fri, Dec 9, 2011 at 5:07 PM, Jordan Schatz wrote: > > > I have a web server with logging setup like so: > > (serve/servlet start > > #:log-file "../logs/server" > > #:log-format '

Re: [racket] Running a webserver on port 80

2011-12-09 Thread Jordan Schatz
http://docs.racket-lang.org/web-server/faq.html ? -Jordan On Fri, Dec 09, 2011 at 09:09:11PM -0500, Neil Van Dyke wrote: > Jay McCarthy wrote at 12/09/2011 08:38 PM: > >On Fri, Dec 9, 2011 at 5:36 PM, Jordan Schatz > >mailto:jor...@noionlabs.com>> wrote: > > > >Wh

[racket] # in xexpr

2011-12-09 Thread Jordan Schatz
ot; also produces an invalid xexpr, though I'd rather not use if and have an else branch unless I really wanted it to be there. Thanks, Jordan _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] Racket Web Server

2011-12-11 Thread Jordan Schatz
he wrote up on github: http://github.com/jeapostrophe/m8b its helped alot to see actual code. -Jordan PS You also mentioned sedna. I'm guessing you might also be frustrated with relation databases? I am also tired of writing ORMs and am using the move to Racket as a good chance to mo

Re: [racket] Racket Web Server

2011-12-12 Thread Jordan Schatz
look at how the racket db collection handles things and add similar abstractions if they make sense. Contributions are very welcome : ) Shalom, Jordan On Mon, Dec 12, 2011 at 02:44:52PM +, nicolas.o...@gmail.com wrote: > Hi, > > Riak looks very nice indeed. Do you have any library to

Re: [racket] web server log format

2011-12-12 Thread Jordan Schatz
nformation about the response? It would seem that (especially) the response code would be valuable to include by default? Shalom, Jordan _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] web server log format

2011-12-12 Thread Jordan Schatz
u > send it. Thanks Eli... I didn't think of that. -Jordan _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] Racket documentation for web development is just awful!

2011-12-19 Thread Jordan Schatz
> write it with the help of list members here. I've got the barest of a start here: http://github.com/shofetim/Racket-the-Missing-Manual On Sat, Dec 17, 2011 at 11:18:03AM -0500, Matthias Felleisen wrote: > > Dear Racket Noon, thank you for outspoken criticism. There is no > question that all o

Re: [racket] Racket documentation for web development is just awful!

2011-12-19 Thread Jordan Schatz
b.com/shofetim/Racket-the-Missing-Manual please fork and help add what you think the docs need : ) Shalom, Jordan _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] Racket documentation for web development is just awful!

2011-12-19 Thread Jordan Schatz
robably not even cover that there are stateful servlets, and just say to use stateless ones, include how to use a data store (db, mongo, whatever) and don't cover serializing to disk. Suggest a directory layout and a way to organize servlets, view, model, and controller code. Or if MV

[racket] Handin server?

2011-12-29 Thread Jordan Johnson
Hi all, Where can one find the current version of the handin server (and any docs for it)? (Aside from mailing list messages about solving problems, the most relevant thing I've found via Google search is a directory on pre.plt-scheme.org, which I'm suspecting is out of date since it's on the

Re: [racket] question about client side http post

2012-01-02 Thread Jordan Schatz
ring->bytes/utf-8 (format "key=~a" data))]) (port->string (post-pure-port url data (save-remote! "hello-world") Works for me... Jordan On Mon, Jan 02, 2012 at 05:03:20PM -0500, J G Cho wrote: > I am trying to do client side HTTP POST using > > (requi

[racket] mime/multipart parsing

2012-01-06 Thread Jordan Schatz
I thought it would write the headers, and message body, but instead I get an empty list, and an empty string. I've been at it for a few hours and I don't see what is wrong Thanks : ) Jordan Racket Users list: http://lists.racket-lang.org/users

Re: [racket] mime/multipart parsing

2012-01-07 Thread Jordan Schatz
ot;" -- It looks like the message I am working with doesn't conform to RFC. But it also seems like a sane thing for the net/mime library to check for and handle? If so I should be able to add it and send a pull reques

Re: [racket] mime/multipart parsing

2012-01-08 Thread Jordan Schatz
/mime' for that outer message?) > > SirMail, which has been my mail client, uses `net/mime', so I'm fairly > confident that the library works on real messages --- no problems in > the last decade or so. > > At Sat

[racket] a question of style, and one of performance

2012-01-08 Thread Jordan Schatz
so (date-display-format original-format) seems like it should go last, but I need my return value... What I have looks hacky, whats the "correct" way to do it? Thanks! Jordan Racket Users list: http://lists.racket-lang.org/users

Re: [racket] a question of style, and one of performance

2012-01-09 Thread Jordan Schatz
ork is in PHP, and in it you can only use simple values (no variables, functions, class methods etc) as default function arguments. -Jordan On Sun, Jan 08, 2012 at 03:42:51PM -0500, Danny Yoo wrote: > On Sun, Jan 8, 2012 at 3:23 PM, Jordan Schatz wrote: > > This code runs, but I'

Re: [racket] mime/multipart parsing

2012-01-09 Thread Jordan Schatz
Jan 08, 2012 at 12:17:34PM -0700, Matthew Flatt wrote: > At Sun, 8 Jan 2012 06:59:47 -0700, Jordan Schatz wrote: > > > Was this input perhaps extracted as a part of an enclosing multi-part > > > message? (Maybe not using `net/mime' for that outer message?) > > The

[racket] Performance difference between BSL and #lang racket

2012-01-12 Thread Jordan Johnson
d; I don't, however, see anything in his code that would be obviously responsible. Thanks for any insight you might be able to offer. Best, Jordan Racket Users list: http://lists.racket-lang.org/users

[racket] sirmail

2012-01-15 Thread Jordan Schatz
Does sirmail have any spam filtering abilities? I see the filtering of messages based on a message header regexp but I'm in need of something that learns from spam / ham and can autoclassify. Thanks, Jordan Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Whither ProfessorJ

2012-01-17 Thread Jordan Schatz
> Excising all Java silliness would leave one with the empty set: { }. > But, thank you for your explanation. I believe you've said here > that you plan to resume work on the book "real soon now" ... I look > forward to that product eagerly. I know that Java has its place, I think that place is a

[racket] Handin server on remote Linux server

2012-01-17 Thread Jordan Johnson
o work? (My mental model is: students submit files to server, instructor downloads a copy of the directory, and runs/checks the submissions locally.) By the way, this reminded me: is there a straightforward way to collect the test cases from a submission, and run them on code that I'v

[racket] Change DrRacket autosave/backup file locations?

2012-02-07 Thread Jordan Johnson
activity log. (I know, I know, I can use git or another version control system...but for the very short coding projects I usually do, that seems like overkill, really.) Best, Jordan Racket Users list: http://lists.racket-lang.org/users

[racket] Ensuring data fed to web-server/templates is textual

2012-02-07 Thread Jordan Johnson
where that would be. Best, Jordan Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Ensuring data fed to web-server/templates is textual

2012-02-09 Thread Jordan Johnson
, could attaching such a property be done without changing how the image%s are instantiated? Thanks, Jordan > Is that okay with you, Eli? > > Jay > > On Tue, Feb 7, 2012 at 4:50 PM, Jordan Johnson wrote: >> Hi all, >> >> I'm using web-server/templates

[racket] image equality and evaluators

2012-02-09 Thread Jordan Johnson
Hi all, Definitions: #lang racket (require racket/sandbox lang/imageeq) (define ev (make-evaluator '(special beginner) #:requires '(2htdp/image))) Interactions: > (image? (ev '(rectangle 2 2 'solid 'blue))) #f > (image=? (ev '(rectangle 2 2 'solid 'blue)) >

Re: [racket] image equality and evaluators

2012-02-09 Thread Jordan Johnson
Sweet. I'll try that out when I get back to the machine tomorrow. Thanks for the speedy help! Best, jmj -- Sent from my Android phone with K-9 Mail. Robby Findler wrote: On Thu, Feb 9, 2012 at 9:12 PM, Eli Barzilay wrote: > The other way is what gets you what you want: you need to use > `sa

[racket] Fwd: Handin server - question re teachpacks

2012-03-06 Thread Jordan Johnson
d with :user-error-message; it says nothing about paths or files. Any help is appreciated. Thanks. Best, Jordan Racket Users list: http://lists.racket-lang.org/users

[racket] Sandbox needs to access preferences? Why?

2012-03-13 Thread Jordan Johnson
server. solution.rkt is a file I have written in ISL, which depends only on 2htdp/image and a library I've linked as hw/solutions. Can you identify what may be triggering the attempt to read preferences, and how I can either avoid it or grant appropriate read permissions? Thanks... Be

Re: [racket] Sandbox needs to access preferences? Why?

2012-03-14 Thread Jordan Johnson
sharing. Thanks for your help. Best, jmj > > Robby > > On Tue, Mar 13, 2012 at 3:06 PM, Jordan Johnson wrote: >> Hi all, >> >> I'm trying to write a checker script for the handin server (which is running >> on my Mac), and when i try handing an assi

Re: [racket] racket and libcURL

2012-03-21 Thread Jordan Schatz
, and full control of headers, I haven't had any need of curl. - Jordan Racket Users list: http://lists.racket-lang.org/users

Re: [racket] idiomatic and fast

2012-04-28 Thread Jordan Johnson
> From: Joe Gilray > To: Racket mailing list > Subject: [racket] idiomatic and fast > > I'm trying to come up with the most idiomatic way to generate triangle > numbers that is also fast: > > (for/list ([i (in-range 2 22)]) (for/sum ([j (in-range i)]) j)) > > works but is slow because it regen

[racket] Audio input

2012-05-21 Thread Jordan Johnson
nough audio I/O work to confirm or refute this idea, or offer a better way, please let me know. Thanks! Best, Jordan Racket Users list: http://lists.racket-lang.org/users

[racket] Method + URL based dispatch

2012-05-26 Thread Jordan Schatz
/web-server/dispatch.html?q=url%20dispatch doesn't appear to supports this style of use. Is there anything built in that supports this style of usage? Thanks, Jordan Racket Users list: http://lists.racket-lang.org/users

[racket] Serving http and https from the same server

2012-05-28 Thread Jordan Schatz
Is it possible to serve http and https from the same servlet? I would like to serve most of my application over SSL, but have a way to redirect people from http to https. - Jordan Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Serving http and https from the same server

2012-05-29 Thread Jordan Schatz
That doesn't seem to work for me, attached are the server I'm using for testing, a throw away cert and private key, and a test script to request the page over https and http. I am using Racket v5.3.0.9 HTTPS is served fine, but the HTTP requests returns empty. Thanks, Jordan

[racket] code metrics

2012-05-29 Thread Jordan Schatz
lines per module - Average number of lines per function - Maximum number of lines per function etc. If it was smart enough to identify duplicate function definitions (from different modules), unneeded requires, and unused provides, that would be extra awesome : ) Thanks, J

Re: [racket] Web server templates

2012-06-06 Thread Jordan Schatz
start server work flow by coding/testing everything outside of the server, and then just doing integration testing in the server. So using unit tests, creating request structures, checking the responses from my functions etc. Now about 80% - 90% of my coding/testing happens with the server not running.

[racket] unwrapping a list

2012-06-11 Thread Jordan Schatz
(regexp-split #rx"/" "2012/06/06")]) ) Would be handy too... - Jordan Racket Users list: http://lists.racket-lang.org/users

Re: [racket] unwrapping a list

2012-06-11 Thread Jordan Johnson
Hi Jordan, The simplest change I see to your code... (define-values (year month day) (regexp-split #rx"/" "2012/06/06")) ...is this: (define-values (year month day) (apply values (regexp-split #rx"/" "2012/06/06"))) Best, jmj -- Sent from my

Re: [racket] Racket v5.3

2012-08-13 Thread Jordan Johnson
I'm curious: what use cases call for the new generics as opposed to the old class & interface system? I'm trying to get a clearer picture of the motivation for the new functionality, and the differences between old-style class-based OO code and this struct-based kind. Best, jmj -- Sent from

[racket] Webserver, SSL, and intermediate certificates

2012-09-21 Thread Jordan Schatz
I have an SSL certificate that depends on an intermediate certificate, but I cant find anything in the documentation on how to tell the web server that my cert needs the intermediate certificate... Are intermediate certificates supported? anyone know of a work around? Thanks, Jordan

Re: [racket] Webserver, SSL, and intermediate certificates

2012-09-21 Thread Jordan Schatz
le it from there, but I haven't had any luck: http://www.geeklab.info/2011/01/how-to-use-chained-ssl-certificates/ StartSSL (startssl.com) issues free certs, which could be used for testing. Thanks, Jordan On Fri, 21 Sep 2012 12:25:25 -0600, Jay McCarthy wrote: > I don't know what they

Re: [racket] Webserver, SSL, and intermediate certificates

2012-09-21 Thread Jordan Schatz
I tried, the web server doesn't give an error, but all the browsers I've tried still complain about the missing intermediate CA. On Fri, 21 Sep 2012 22:11:32 +0200, Stefan Schmiedl wrote: > On Fri, 21 Sep 2012 11:24:39 -0600 > Jordan Schatz wrote: > > > > >

Re: [racket] Webserver, SSL, and intermediate certificates

2012-09-23 Thread Jordan Schatz
d come first, and then any intermediate certs. Thanks! Jordan On Fri, 21 Sep 2012 15:32:22 -0600, Jordan Schatz wrote: > > I tried, the web server doesn't give an error, but all the browsers I've tried > still complain about the missing intermediate CA. > > On Fri, 21 Sep

[racket] Web server warnings?

2012-09-23 Thread Jordan Schatz
For awhile now the webserver spits out abunch of these messages: peek-byte: input port is closed context...: /home/jordan/bin/lib/racket/collects/web-server/private/dispatch-server-unit.rkt:74:2: connection-loop I think it only happens when the server is using SSL, is it an indication

[racket] DnD launch Racket script on Win 7

2012-09-24 Thread Jordan Johnson
Hi all, What do I need to do in order to start a Racket script on Windows (Win 7 is specifically what I have here) by dragging a file onto its icon? Is the cmdline library what handles such calls? Actually, now that I'm trying to do the dragging, I see Windows doesn't want to treat the script

[racket] html -> pdf?

2012-09-25 Thread Jordan Schatz
way around. Thanks, Jordan Racket Users list: http://lists.racket-lang.org/users

Re: [racket] html -> pdf?

2012-09-26 Thread Jordan Schatz
te "hard copy" PDF from content marked up in html and CSS, since html+css is nicer to work with then PS / PDF, and since I already have the content in HTML form... Thanks, Jordan On Tue, 25 Sep 2012 14:16:34 -0500, Carson Chittom wrote: > Jordan Schatz writes: > > > Is any

[racket] Typesetting a .rkt file from one of the HtDP languages

2012-09-26 Thread Jordan Johnson
g the three lines that DrRacket inserts), and obtain either HTML or an object I can insert in a Scribble document? It seems like this should be kind of basic, so pardon me if I'm missing something that should be obvious. How would I go about doing this? Thanks, Jordan ___

[racket] Meaning of "@" notation in TR

2012-10-18 Thread Jordan Johnson
Hi all, I'm puzzled by this cryptic notation in Typed Racket (copied from the docs): (λ: ([x : Number

Re: [racket] Meaning of "@" notation in TR

2012-10-18 Thread Jordan Johnson
t; type. This is useless information in the number >case, because Typed Racket already knows (Number @ 0) implies (! False >@ 0). > >-Ian >- Original Message - >From: "Matthias Felleisen" >To: "Jordan Johnson" >Cc: users@racket-lang.org >Sent: Th

[racket] min and max representable dates

2015-03-01 Thread Jordan Johnson
Hi all, Am I right in thinking the min and max dates that racket/date can handle are platform-dependent? If so, is there any constant I can reasonably use as a least or greatest representable date? I’ve looked in racket/date.rkt and see that there’s some code that appears to be doing binsearch

Re: [racket] How can I dump (display) the variables defined in current the global environment

2015-03-01 Thread Jordan Johnson
On Mar 1, 2015, at 5:37 PM, Rufus wrote: > And also > a function to save this state (variables in the global environment) in a > fashion that could be quickly/easily (ie one short function call) be > reloaded the next day to continue from where I left off. The typical workflow in DrRacket is to u

Re: [racket] min and max representable dates

2015-03-02 Thread Jordan Johnson
On Mar 2, 2015, at 6:59 AM, Hendrik Boom wrote: > On Sun, Mar 01, 2015 at 04:07:57PM -0800, Jordan Johnson wrote: >> >> I expect a pretty conservative estimate is A-OK if it’d be sure of >> not throwing an error on 32+-bit systems; >> I see 2^32 seconds would get u

Re: [racket] run big-bang universe server on headless server?

2015-03-02 Thread Jordan Johnson
I'd imagine running it under Xvfb would be worth a try: http://en.wikipedia.org/wiki/Xvfb I know I've used that to be able to run gracket-text stuff on my Linux VPS before. Don't know if there's anything in universe that would pose an obstacle, however. Best, Jordan On F

[racket-users] ANN: cookies library for clients and servers

2015-04-07 Thread Jordan Johnson
Hi all, This weekend I added to the package catalog a set of libraries (named net-cookies) for managing cookies as per RFC6265, the most recent cookie RFC. Documentation: http://pkg-build.racket-lang.org/doc/cookies/index.html Source: https://github.com/RenaissanceBug/racket-cookies Examples

[racket-users] TR typed-racket-more library docs

2015-06-26 Thread Jordan Johnson
er lib goes beneath its (require …) rectangle on the TR libs page linked above. The wrapper libs get separate HTML files in the TR reference. I don’t have a preference, but would gladly do some writing if the main TR devs suggest where. Regards, Jordan -- You received this message because y

Re: [racket-users] Moving an image with the keyboard

2015-06-26 Thread Jordan Johnson
Hi Patrick, The problem you’re up against is that in the code you’ve attached, we don’t have a clear picture of what the signatures for your functions are, nor of the “world” upon which big-bang operates. Standard practice in HtDP-based courses dictates that every big-bang program should have a

[racket-users] TR: require/typed and parametric polymorphism

2015-07-02 Thread Jordan Johnson
Hi all, If I’m reading the docs & source correctly, it looks like it’s impossible to use require/typed to attach a parametric type to an import. Is that right? I’m also a bit curious if that’s because adding that capability is a difficult or impossible proposition. Cheers, jmj -- You receive

[racket-users] Scribble: referencing struct fields

2015-07-23 Thread Jordan Johnson
Hi all, What are the appropriate function and the preferred practice for referring to struct fields in a Scribble document? For example, if I’m writing the defstruct* body text and want to say, “the x field is intended for blah blah blah”, is @racket[x] the right way to typeset the field name “

[racket-users] Scribble undefined tags

2015-07-24 Thread Jordan Johnson
Hi all, I have a file main.scrbl in the same directory as a file main.rkt. In the .scrbl file, I have (require (for-label "main.rkt")) and several defproc and defstruct* forms. For some reason, one of my defstruct* forms works as expected, while all of the other defstruct* and defproc forms p

[racket-users] TR: Option values

2015-07-26 Thread Jordan Johnson
Hi all, Writing TR code, I find that the more I use the Option type, the more I want something like Haskell’s Maybe monad. Is there any existing tool I’m missing, that provides for applying functions to values of type (Option x), by propagating failures? If not, would it be sensible to include

Re: [racket-users] Scribble undefined tags

2015-07-26 Thread Jordan Johnson
s more reliable to use fully-qualified package >> names with `for-label`, e.g. >> >> (require (for-label jordan/package)) >> >> rather than >> >> (require (for-label "main.rkt")) >> >> Once upon a time I had similar problems, and no

[racket-users] Scribble: Wrap text in examples/interactions?

2015-08-09 Thread Jordan Johnson
Hi all, Is there a way to get long lines of text in a Scribble @examples block to wrap? (Perhaps looking something like DrRacket’s wrapped lines?) Thanks, jmj -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and

[racket-users] Frog/Scribble: h* tag substitution

2015-08-27 Thread Jordan Johnson
tion 2} renders as > Section 2 So far it’s just the H* tags I’ve found misbehaving. So, my plea to Greg & other Scribblers: can you give any insight into where the H3 might be getting replaced with an H1? Thanks, Jordan [1] https://github.com/greghendershott/frog [2] http://docs.ra

Re: [racket-users] Frog/Scribble: h* tag substitution

2015-08-29 Thread Jordan Johnson
behavior you're talking about, but in post sources I wouldn't. For example, for semantic reasons, I would never want an H1 in a post; the containing page already has a top-level header. So, I'll think about it and let you know if a decent compromise comes to mind. Best,

[racket-users] Multiple colorschemes for multiple DrR versions?

2015-09-09 Thread Jordan Johnson
Hi all, Is there a way to specify that DrRacket use a certain color scheme for a certain version, or to dynamically choose a color scheme at startup? It occurred to me that since I sometimes run a DrRacket built from the nightly snapshots and sometimes run the latest stable build, it’d be nice

Re: [racket-users] racket users fight for their right to colon keywords

2015-10-26 Thread Jordan Johnson
though I also appreciate the extra visual distinction of an octothorp'd keyword. Best, Jordan -- 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 ra

Re: [racket-users] A template/example to use to build a workflow illustration/flowchart in slideshow

2016-01-15 Thread Jordan Johnson
Yes. The slideshow tutorial referenced near the top of http://docs.racket-lang.org/slideshow/index.html ("Run Tutorial") incorporates a slideshow in which you can inspect the source. Best, Jordan > On Jan 13, 2016, at 5:10 PM, C K Kashyap wrote: > > Dear group, > >

[racket-users] Playing sound

2016-01-27 Thread Jordan Johnson
from one audio file to another? More generally, what are currently our best tools for incorporating music and sound effects into Racket games? Best, Jordan -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group

Re: [racket-users] Playing sound

2016-01-29 Thread Jordan Johnson
; (stop-playing! stream token at-time #:fade-out time-duration) Yep, that should do what he wants. Best, Jordan -- 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 i

Re: [racket] sqlite: how to open a database via the web ?

2010-10-15 Thread Jordan Schatz
;t be downloaded directly by a browser. Shaloml, Jordan On Fri, Oct 15, 2010 at 11:27:50PM +0200, scouic wrote: > Hi, > I'm locked on a problem in creating my interactive blog. > So far, I was managing the localhost without any problems. My function that > opens the b

[racket] Stuck on HtDP 25.2.6

2010-10-25 Thread Luke Jordan
#| 25.2.6 Develop a variant of quick-sort that uses only one comparison function, say, <. Its partitioning step divides the given list alon into a list that contains the items of alon smaller than (first alon) and another one with those that are not smaller. Use local to combine the functions int

[racket] Math Guidance

2010-11-03 Thread Luke Jordan
Hi, I hope that this is an appropriate topic for this mailing list. I'm in need of some direction. I've been programming recreationally for a few years and I'm beginning a serious study with the goal of doing it professionally. One of my early goals is to complete HtDP. I'm full-time employed and

Re: [racket] Generative recursion

2010-11-03 Thread Luke Jordan
I found implementing this trickier than grasping the solution as well. Stick with it. I don't see that you need any functions related prime numbers. Perhaps if input is prime that is a trivial case, but try to focus on what the output is: A list of numbers that can evenly divide the input. Thos

Re: [racket] Math Guidance

2010-11-04 Thread Luke Jordan
Thanks for the valuable input! I feel more sure of my footing. Onward... _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] Generative recursion

2010-11-05 Thread Luke Jordan
Wow, I came up with a really weird solution then, based on the fact that append "eats" occurrences of empty: (append empty empty empty empty (list 4)) is (list 4). I divided input by a copy of itself inside a call to append, then looped with (sub1 input), returning empty if input/(sub1 modified-in

Re: [racket] Newbie question

2010-11-10 Thread Luke Jordan
Think of how, with multiplication, you could convert a sequence of digits into a whole number that you could compare to another whole number. On Nov 10, 2010 2:40 PM, "André Toscano" wrote: Hi all! I'm new to programming. I'm trying to learn on my own in my spare time, not a student in any scho

  1   2   3   >