<div dir="ltr">It's a known issue. Alex Knauth has submitted a rough solution to my fork of it; I'll get it merged and pushed to the server shortly.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 23, 2014 at 12:11 AM, Steve Graham <span dir="ltr"><<a href="mailto:jsgrahamus@yahoo.com" target="_blank">jsgrahamus@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12px"><div><span>I get errors when trying to type in a multi-line function.  Am I doing something wrong?<br></span></div><div><br></div>  <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12px"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12pt"> <div dir="ltr"> <hr size="1">  <font face="Arial"> <b><span style="font-weight:bold">From:</span></b> Jay McCarthy <<a href="mailto:jay.mccarthy@gmail.com" target="_blank">jay.mccarthy@gmail.com</a>><br> <b><span style="font-weight:bold">To:</span></b> J Arcane <<a href="mailto:jarcane@gmail.com" target="_blank">jarcane@gmail.com</a>> <br><b><span style="font-weight:bold">Cc:</span></b> Racket Users <<a href="mailto:users@racket-lang.org" target="_blank">users@racket-lang.org</a>>; Robby Findler <<a href="mailto:robby@eecs.northwestern.edu" target="_blank">robby@eecs.northwestern.edu</a>>; Marc Burns
 <<a href="mailto:m4burns@csclub.uwaterloo.ca" target="_blank">m4burns@csclub.uwaterloo.ca</a>> <br> <b><span style="font-weight:bold">Sent:</span></b> Monday, September 22, 2014 12:05 PM<br> <b><span style="font-weight:bold">Subject:</span></b> Re: [racket] Hosting the try-racket REPL.<br> </font> </div> <div><div><div class="h5"><br>J and I chatted a little and he got his DNS working and also I added<br clear="none"><br clear="none"><a shape="rect" href="http://try.racket-lang.org/" target="_blank">http://try.racket-lang.org/</a><br clear="none"><br clear="none">as an alias for it.<br clear="none"><br clear="none">In general, the Racket team is willing to give out subdomains of<br clear="none"><a href="http://r-l.org" target="_blank">r-l.org</a> for projects that would like them, so they don't have to buy<br clear="none">their own DNS addresses. Just email the list or one of us directly to<br clear="none">ask.<br clear="none"><br clear="none">Jay<br clear="none"><br clear="none">On Mon, Sep 22, 2014 at 1:17 AM, J Arcane <<a shape="rect" href="mailto:jarcane@gmail.com" target="_blank">jarcane@gmail.com</a>> wrote:<br clear="none">> Hmm.<br clear="none">><br clear="none">> Alright, replacing the calls to slideshow with calls directly to pict, as<br clear="none">> well as commenting out the racket/gui/base calls successfully gets the code<br clear="none">> to run without X.<br clear="none">><br clear="none">> However, something about how it converts the picts for web isn't working, so<br clear="none">> instead of a neat little circle, for instance, I get "(pict '(prog<br clear="none">> #<procedure:... etc." instead.<br clear="none">><br clear="none">> I suspect this is probably something to do with a difference in behavior in<br clear="none">> how images are converted by the server, which does a convertible? test and<br clear="none">> then runs:<br clear="none">>  (run-code ev `(bytes-append
 #"data:image/png;base64,"<br clear="none">>                          (base64-encode (convert ,res 'png-bytes) #"")))<br clear="none">><br clear="none">> At an idiot's guess, something is different about how pict is making the<br clear="none">> images, so convertible? is #f and the code just prints the (pict '(prog...<br clear="none">> stuff.<br clear="none">><br clear="none">> I've set up a fork here: <a shape="rect" href="https://github.com/jarcane/try-racket" target="_blank">https://github.com/jarcane/try-racket</a><br clear="none">> I'm still working on getting the DNS set properly though, so no<br clear="none">> <a href="http://try-racket.org" target="_blank">try-racket.org</a> yet; the servlet is public at <a shape="rect" href="http://104.131.18.192:8000/" target="_blank">http://104.131.18.192:8000/ </a>but<br clear="none">> I haven't figured out how to get <a href="http://try-racket.org" target="_blank">try-racket.org</a> to go there yet.<br clear="none">><br clear="none">><br clear="none">> <<a shape="rect" href="mailto:robby@eecs.northwestern.edu" target="_blank">robby@eecs.northwestern.edu</a>> wrote:<br clear="none">>><br clear="none">>> Maybe you can use  slideshow/code-pict instead?<br clear="none">>><br clear="none">>> Robby<br clear="none">>><br clear="none">>> On Sun, Sep 21, 2014 at 6:00 PM, Marc Burns <<a shape="rect" href="mailto:m4burns@csclub.uwaterloo.ca" target="_blank">m4burns@csclub.uwaterloo.ca</a>><br clear="none">>> wrote:<br clear="none">>> > The culprit is the slideshow/code module loaded into the sandbox<br clear="none">>> > evaluator. Requiring slideshow/code attempts to establish an X server<br clear="none">>> > connection.<br clear="none">>> ><br clear="none">>> > On Mon, Sep 22, 2014 at
 12:12:37AM +0300, J Arcane wrote:<br clear="none">>> >> Greetings,<br clear="none">>> >><br clear="none">>> >> For some time now, it's bothered me a bit that Racket doesn't have an<br clear="none">>> >> online REPL currently hosted anywhere. There's one written here:<br clear="none">>> >> <a shape="rect" href="https://github.com/voila/try-racket" target="_blank">https://github.com/voila/try-racket</a><br clear="none">>> >><br clear="none">>> >> But no one's hosted it anywhere. So I took it upon myself to fix that.<br clear="none">>> >> I've<br clear="none">>> >> purchased <a href="http://try-racket.org" target="_blank">try-racket.org</a> and a basic DigitalOcean droplet to host it<br clear="none">>> >> on,<br clear="none">>> >> but I've hit a snag: I can't get it to run.<br clear="none">>> >><br clear="none">>> >> It runs more or less without trouble
 on my personal FreeBSD box, but on<br clear="none">>> >> my<br clear="none">>> >> Debian 7 droplet I waded through countless dependency issues until<br clear="none">>> >> finally<br clear="none">>> >> I reached what seems to be this same error:<br clear="none">>> >><br clear="none"></div></div>>> >> <a shape="rect" href="http://bugs.racket-lang.org/query/?cmd=view%20audit-trail&pr=12465" target="_blank">http://bugs.racket-lang.org/query/?cmd=view%20audit-trail≺=12465</a><div><div class="h5"><br clear="none">>> >><br clear="none">>> >> Presuming that perhaps this was in someway trying to run Racket in an<br clear="none">>> >> actual GUI window whether I wanted it to or not, I attempted to run it<br clear="none">>> >> as<br clear="none">>> >> --script, but this just quits silently instead, leaving no servlet<br clear="none">>> >> behind<br clear="none">>> >> either.<br clear="none">>> >><br clear="none">>> >> Any ideas what I might be doing wrong? or have I hit a proper bug? (IME<br clear="none">>> >> it's usually the former ... )<br clear="none">>> >><br clear="none">>> >> John Berry<br clear="none">>> >> <a shape="rect" href="http://jarcane.github.com/" target="_blank">http://jarcane.github.com</a><br clear="none">>> ><br clear="none">>> >> ____________________<br clear="none">>> >>   Racket Users list:<br clear="none">>> >>   <a shape="rect" href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br clear="none">>> ><br clear="none">>> > ____________________<br clear="none">>> >   Racket Users list:<br clear="none">>> >   <a shape="rect" href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br clear="none">><br clear="none">><br clear="none">><br clear="none">> ____________________<br clear="none">>   Racket Users list:<br clear="none">>   <a shape="rect" href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br clear="none">><br clear="none"><br clear="none"><br clear="none"><br clear="none">-- <br clear="none">Jay McCarthy<br clear="none"><a shape="rect" href="http://jeapostrophe.github.io/" target="_blank">http://jeapostrophe.github.io</a><br clear="none"><br clear="none">           "Wherefore, be not weary in well-doing,<br clear="none">      for ye are laying the foundation of a great work.<br clear="none">And out of small things proceedeth that which is great."<br clear="none">             
             - D&C 64:33<div><br><br></div><div><br clear="none">____________________<br clear="none">  Racket Users list:<br clear="none">  <a shape="rect" href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br clear="none"></div><br><br></div></div></div> </div> </div>  </div></div><br>____________________<br>
  Racket Users list:<br>
  <a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
<br></blockquote></div><br></div>