by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Marcin Konarski
    @AmokHuginnsson
    It is interesting that CentOS build could start though.
    DennisMitchell
    @DennisMitchell
    It works on Fedora as well, just not inside TIO's sandbox. Sandboxed programs are forbidden from modifying resource limits.
    Marcin Konarski
    @AmokHuginnsson
    Maybe CentOS does not support limits on some of those resources, and given setrlimit was not built-in.
    Oh, ok.
    DennisMitchell
    @DennisMitchell
    @AmokHuginnsson Is there a way to disable setting resource limits? An interpreter flag or something like that?
    Marcin Konarski
    @AmokHuginnsson
    You could put additional ulimit(s) in interpreter wrapper script.
    DennisMitchell
    @DennisMitchell
    No, those would also fail, for the same reason.
    Marcin Konarski
    @AmokHuginnsson
    Oh, right.
    :)
    Sorry.
    I will add some environment variable to disable this behavior.
    Marcin Konarski
    @AmokHuginnsson
    @DennisMitchell How did you block setrlimit? I want to test the fix on my side.
    DennisMitchell
    @DennisMitchell

    @AmokHuginnsson With SELinux. If you install the sandbox utility with

    dnf install policycoreutils-python-utils

    you can run your program with

    sandbox huginn --no-argv test.hgn

    to test it.

    Marcin Konarski
    @AmokHuginnsson
    thank you
    DennisMitchell
    @DennisMitchell
    Oddly enough, it doesn't print the error for me this way, but it doesn't do anything.
    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.