<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12px"><div><span>Thanks.</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" size="2"> <b><span style="font-weight:bold;">From:</span></b> J Arcane <jarcane@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> Steve Graham <jsgrahamus@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> Racket Users <users@racket-lang.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Monday, September 22, 2014 9:35 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [racket] Hosting
the try-racket REPL.<br> </font> </div> <div class="y_msg_container"><br><div id="yiv9440392030"><div><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="yiv9440392030gmail_extra"><br clear="none"><div class="yiv9440392030gmail_quote">On Tue, Sep 23, 2014 at 12:11 AM, Steve Graham <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:jsgrahamus@yahoo.com" target="_blank" href="mailto:jsgrahamus@yahoo.com">jsgrahamus@yahoo.com</a>></span> wrote:<br clear="none"><blockquote class="yiv9440392030gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="qtdSeparateBR"><br><br></div><div class="yiv9440392030yqt0723414659" id="yiv9440392030yqt53448"><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 clear="none"></span></div><div><br clear="none"></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 rel="nofollow" shape="rect" ymailto="mailto:jay.mccarthy@gmail.com" target="_blank" href="mailto:jay.mccarthy@gmail.com">jay.mccarthy@gmail.com</a>><br clear="none"> <b><span style="font-weight:bold;">To:</span></b> J Arcane <<a rel="nofollow" shape="rect" ymailto="mailto:jarcane@gmail.com" target="_blank" href="mailto:jarcane@gmail.com">jarcane@gmail.com</a>> <br clear="none"><b><span
style="font-weight:bold;">Cc:</span></b> Racket Users <<a rel="nofollow" shape="rect" ymailto="mailto:users@racket-lang.org" target="_blank" href="mailto:users@racket-lang.org">users@racket-lang.org</a>>; Robby Findler <<a rel="nofollow" shape="rect" ymailto="mailto:robby@eecs.northwestern.edu" target="_blank" href="mailto:robby@eecs.northwestern.edu">robby@eecs.northwestern.edu</a>>; Marc Burns
<<a rel="nofollow" shape="rect" ymailto="mailto:m4burns@csclub.uwaterloo.ca" target="_blank" href="mailto:m4burns@csclub.uwaterloo.ca">m4burns@csclub.uwaterloo.ca</a>> <br clear="none"> <b><span style="font-weight:bold;">Sent:</span></b> Monday, September 22, 2014 12:05 PM<br clear="none"> <b><span style="font-weight:bold;">Subject:</span></b> Re: [racket] Hosting the try-racket REPL.<br clear="none"> </font> </div> <div><div><div class="yiv9440392030h5"><br clear="none">J and I chatted a little and he got his DNS working and also I added<br clear="none"><br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://try.racket-lang.org/">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 rel="nofollow" shape="rect" target="_blank" href="http://r-l.org/">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 rel="nofollow" shape="rect" ymailto="mailto:jarcane@gmail.com" target="_blank" href="mailto:jarcane@gmail.com">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 rel="nofollow" shape="rect" target="_blank" href="https://github.com/jarcane/try-racket">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 rel="nofollow" shape="rect" target="_blank" href="http://try-racket.org/">try-racket.org</a> yet; the servlet is public at <a rel="nofollow" shape="rect" target="_blank" href="http://104.131.18.192:8000/">http://104.131.18.192:8000/
</a>but<br clear="none">> I haven't figured out how to get <a rel="nofollow" shape="rect" target="_blank" href="http://try-racket.org/">try-racket.org</a> to go there yet.<br clear="none">><br clear="none">><br clear="none">> <<a rel="nofollow" shape="rect" ymailto="mailto:robby@eecs.northwestern.edu" target="_blank" href="mailto:robby@eecs.northwestern.edu">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 rel="nofollow" shape="rect" ymailto="mailto:m4burns@csclub.uwaterloo.ca" target="_blank" href="mailto:m4burns@csclub.uwaterloo.ca">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 rel="nofollow" shape="rect" target="_blank" href="https://github.com/voila/try-racket">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 rel="nofollow" shape="rect" target="_blank" href="http://try-racket.org/">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 rel="nofollow" shape="rect" target="_blank" href="http://bugs.racket-lang.org/query/?cmd=view%20audit-trail&pr=12465">http://bugs.racket-lang.org/query/?cmd=view%20audit-trail≺=12465</a><div><div class="yiv9440392030h5"><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 rel="nofollow" shape="rect" target="_blank" href="http://jarcane.github.com/">http://jarcane.github.com</a><br clear="none">>> ><br clear="none">>> >> ____________________<br clear="none">>> >> Racket Users list:<br clear="none">>> >> <a rel="nofollow" shape="rect" target="_blank" href="http://lists.racket-lang.org/users">http://lists.racket-lang.org/users</a><br clear="none">>> ><br clear="none">>> > ____________________<br clear="none">>> >
Racket Users list:<br clear="none">>> > <a rel="nofollow" shape="rect" target="_blank" href="http://lists.racket-lang.org/users">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 rel="nofollow" shape="rect" target="_blank" href="http://lists.racket-lang.org/users">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 rel="nofollow" shape="rect" target="_blank" href="http://jeapostrophe.github.io/">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 clear="none"><br clear="none"></div><div><br clear="none">____________________<br clear="none"> Racket Users list:<br clear="none"> <a rel="nofollow" shape="rect" target="_blank" href="http://lists.racket-lang.org/users">http://lists.racket-lang.org/users</a><br clear="none"></div><br clear="none"><br clear="none"></div></div></div> </div> </div> </div></div></div><br clear="none">____________________<br clear="none">
Racket Users list:<br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://lists.racket-lang.org/users">http://lists.racket-lang.org/users</a><br clear="none">
<br clear="none"></blockquote></div><br clear="none"></div></div></div><br><br></div> </div> </div> </div></body></html>