Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Marcin Konarski
    @AmokHuginnsson
    sandbox ls gives me: /bin/sandbox: [Errno 22] Invalid argument
    DennisMitchell
    @DennisMitchell
    Try installing selinux-policy-sandbox and policycoreutils-sandbox as well, if they didn't get installed as dependencies.
    Marcin Konarski
    @AmokHuginnsson
    I do not know what would be smarter, dnf update on your side or sandbox configuration on mine ;)
    DennisMitchell
    @DennisMitchell
    Well, the update and test on my server takes only two commands.
    Marcin Konarski
    @AmokHuginnsson
    The new version is in the repo, so if you can test it, that would be great
    DennisMitchell
    @DennisMitchell
    Yep, it works now.
    Marcin Konarski
    @AmokHuginnsson
    cool, sandbox command works on my machine after I installer the packages you suggested, but my interpreter does nothing at all, just quiet exit
    DennisMitchell
    @DennisMitchell
    Like mine. The exact sandboxing on my end is a bit trickier.
    Marcin Konarski
    @AmokHuginnsson
    what should I do next to assist you?
    DennisMitchell
    @DennisMitchell
    I think we're done. Give me a few minutes to set everything up.
    Marcin Konarski
    @AmokHuginnsson
    cool :)
    DennisMitchell
    @DennisMitchell
    @AmokHuginnsson Regarding your setup suggestions on the web site, Fedora is deprecating yum in favor of dnf. Also, since GPG keys aren't working at the moment, I'd suggest replacing the base URL with https://codestation.org/fedora/ so SSL provides at least some security. Also, the GPG key in the repo file gives a 404.
    Marcin Konarski
    @AmokHuginnsson
    thank you, I will definitely fix those issues.
    I am not sure, but it looks like arguments are not passed to the script.
    DennisMitchell
    @DennisMitchell
    Marcin Konarski
    @AmokHuginnsson
    and there is this string ".code.tio" added to the output
    DennisMitchell
    @DennisMitchell
    That would be the source code file. I'm invoking the interpreter like this:
    huginn "${TIO_OPTIONS[@]}" .code.tio "$@" < .input.tio
    Marcin Konarski
    @AmokHuginnsson
    oh, ok, I understand now
    I really works! :)
    Great, thank you.
    DennisMitchell
    @DennisMitchell
    My pleasure. :)
    Marcin Konarski
    @AmokHuginnsson
    Can I put a link to your website on my website and screencast/tutorials?
    DennisMitchell
    @DennisMitchell
    Yes, of course. That's what it's there for.
    Marcin Konarski
    @AmokHuginnsson
    Great :)
    stasoid
    @stasoid
    @DennisMitchell Is language named cockfuck suitable for TIO?
    stasoid
    @stasoid
    @DennisMitchell What encoding field in languages.json is for? I need to know to create a pull request. I see that it is used only for byte count in frontend.js. But I always want byte count to be displayed properly, so should I always specify UTF-8?
    I can see that this field does not specify how in reality an interpreter processes a file. For example, Prelude is specified as having UTF-8 encoding, but when it displays errors it counts bytes, not UTF-8 characters.
    DennisMitchell
    @DennisMitchell
    @stasoid Neither the language nor its name.
    encoding is solely for the byte counter. It's supposed to mean that if the code is encoded in that encoding, this would be its size. It doesn't perform any checks.
    stasoid
    @stasoid

    Ok, I'm glad I asked before doing anything.

    @stasoid Neither the language nor its name.

    abhidevsgit
    @abhidevsgit
    Is it possible to setup TryItOnline to run on my own servers, using my custom code editor?
    pavelbraginskiy
    @pavelbraginskiy
    Yes
    It features somewhat outdated docs but they mostly still work
    abhidevsgit
    @abhidevsgit
    Thanks for your quick response @pavelbraginskiy . I did not find any end point to send my source code from my code editor to the TryItOnline back-end server.
    pavelbraginskiy
    @pavelbraginskiy
    @abhidevsgit There aren't really any API docs. You could try to dig through the source code to find how the backend is called, or look at what this Java wrapper, written by someone else, does: https://github.com/okx-code/TIOJavaWrapper
    I believe @DennisMitchell is working on a better public API but IDK when that might happen
    (Or this Java wrapper. IDK which is better, I've used neither: https://github.com/SocraticPhoenix/TioJ)
    abhidevsgit
    @abhidevsgit
    @pavelbraginskiy Thank you very much.
    @DennisMitchell Can you please let us know if you are working on TryItOnline public API as @pavelbraginskiy mentioned above?
    pavelbraginskiy
    @pavelbraginskiy
    If you have a stackexchange account you can chat in talk.tryitonline.net, which is generally checked by Dennis more frequently.
    abhidevsgit
    @abhidevsgit
    Sure. Thank's for your input. I appreciate your help. I will check the JavaWrapper's you mentioned earlier.
    DennisMitchell
    @DennisMitchell
    @abhidevsgit Yes, I'm working on a proper API, with JSON and docs.
    abhidevsgit
    @abhidevsgit
    @DennisMitchell Thank you very much. When can we expect it to be ready?
    pavelbraginskiy
    @pavelbraginskiy
    Soon(tm)
    DennisMitchell
    @DennisMitchell
    @abhidevsgit It's going to be a complete rewrite of the current backend, so it might still take some time. I hope to have a working version before the Fedora 30 upgrade (April 30).
    abhidevsgit
    @abhidevsgit
    Thank you @DennisMitchell
    abhidevsgit
    @abhidevsgit
    Hi @DennisMitchell, Can you please let us know the latest update regarding the TIO API?
    DennisMitchell
    @DennisMitchell
    @abhidevsgit I haven't been feeling well in the last months and didn't really get much done on the API...
    abhidevsgit
    @abhidevsgit
    @DennisMitchell Hope you feel better soon.