<div dir="ltr">Hmm.<div><br></div><div>Alright, replacing the calls to slideshow with calls directly to pict, as well as commenting out the racket/gui/base calls successfully gets the code to run without X.</div><div><br></div><div>However, something about how it converts the picts for web isn't working, so instead of a neat little circle, for instance, I get "(pict '(prog #<procedure:... etc." instead.</div><div><br></div><div>I suspect this is probably something to do with a difference in behavior in how images are converted by the server, which does a convertible? test and then runs:</div><div> (run-code ev `(bytes-append #"data:image/png;base64,"</div><div>                         (base64-encode (convert ,res 'png-bytes) #"")))</div><div><span dir="ltr"><br></span></div><div><span dir="ltr">At an idiot's guess, something is different about how pict is making the images, so convertible? is #f and the code just prints the (pict '(prog... stuff. </span></div><div><span dir="ltr"><br></span></div><div><span dir="ltr">I've set up a fork here: <a href="https://github.com/jarcane/try-racket">https://github.com/jarcane/try-racket</a></span></div><div>I'm still working on getting the DNS set properly though, so no <a href="http://try-racket.org">try-racket.org</a> yet; the servlet is public at <a href="http://104.131.18.192:8000/">http://104.131.18.192:8000/</a> but I haven't figured out how to get <a href="http://try-racket.org">try-racket.org</a> to go there yet.</div><div><span dir="ltr"><br></span></div><div><span dir="ltr"><br></span></div><div><span dir="ltr"><<a href="mailto:robby@eecs.northwestern.edu" target="_blank">robby@eecs.northwestern.edu</a>></span> wrote:</div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Maybe you can use  slideshow/code-pict instead?<br>
<span class=""><font color="#888888"><br>
Robby<br>
</font></span><div class=""><div class="h5"><br>
On Sun, Sep 21, 2014 at 6:00 PM, Marc Burns <<a href="mailto:m4burns@csclub.uwaterloo.ca">m4burns@csclub.uwaterloo.ca</a>> wrote:<br>
> The culprit is the slideshow/code module loaded into the sandbox<br>
> evaluator. Requiring slideshow/code attempts to establish an X server<br>
> connection.<br>
><br>
> On Mon, Sep 22, 2014 at 12:12:37AM +0300, J Arcane wrote:<br>
>> Greetings,<br>
>><br>
>> For some time now, it's bothered me a bit that Racket doesn't have an<br>
>> online REPL currently hosted anywhere. There's one written here:<br>
>> <a href="https://github.com/voila/try-racket" target="_blank">https://github.com/voila/try-racket</a><br>
>><br>
>> But no one's hosted it anywhere. So I took it upon myself to fix that. I've<br>
>> purchased <a href="http://try-racket.org" target="_blank">try-racket.org</a> and a basic DigitalOcean droplet to host it on,<br>
>> but I've hit a snag: I can't get it to run.<br>
>><br>
>> It runs more or less without trouble on my personal FreeBSD box, but on my<br>
>> Debian 7 droplet I waded through countless dependency issues until finally<br>
>> I reached what seems to be this same error:<br>
>><br>
>> <a 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&pr=12465</a><br>
>><br>
>> Presuming that perhaps this was in someway trying to run Racket in an<br>
>> actual GUI window whether I wanted it to or not, I attempted to run it as<br>
>> --script, but this just quits silently instead, leaving no servlet behind<br>
>> either.<br>
>><br>
>> Any ideas what I might be doing wrong? or have I hit a proper bug? (IME<br>
>> it's usually the former ... )<br>
>><br>
>> John Berry<br>
>> <a href="http://jarcane.github.com" target="_blank">http://jarcane.github.com</a><br>
><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>
> ____________________<br>
>   Racket Users list:<br>
>   <a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
</div></div></blockquote></div><br></div></div>