Code Monkey home page Code Monkey logo

Comments (10)

theotherp avatar theotherp commented on May 25, 2024

Thank you.

from nzbhydra2.

deanishe avatar deanishe commented on May 25, 2024

Those java options are extracted from the python obfuscation

The wrapper script works on macOS (after you install PyYAML).

Until then things like restart won't work

It works with the wrapper script.

from nzbhydra2.

theotherp avatar theotherp commented on May 25, 2024

I'll remove the PyYAML dependency soon (it's just used to read one single entry).

In the long term I hope to replace the python based wrapper with a leaner custom written, but that will have to wait until the base program runs fine.

from nzbhydra2.

deanishe avatar deanishe commented on May 25, 2024

install/maintain two languages and an add-on package

Python is part of macOS, so requiring Python isn't really an issue.

my first choice of JRE (SE 9)

Fortunately, I have a much older version installed from the last time a program I wanted to run was unfortunately written in Java 😜

I'm not 100% sure about this, but I think if you install the JDK instead of the JRE, you get a /usr/bin/java command, which saves faffing around trying to figure out where your JRE is installed.

In any case, I have a /usr/bin/java. I can't remember exactly why, but I certainly didn't put it there myself.

from nzbhydra2.

deanishe avatar deanishe commented on May 25, 2024

leaner custom written

The Python wrapper runs in about 0.1s. Given that the app proper takes 200x longer to start up, I'd say there's little to be gained by optimising the wrapper.

from nzbhydra2.

theotherp avatar theotherp commented on May 25, 2024

It's more about the file size and memory usage.

from nzbhydra2.

theotherp avatar theotherp commented on May 25, 2024

PyYAML dependency is gone.

from nzbhydra2.

 avatar commented on May 25, 2024

The new wrapper works (with the stock version of python) if I specify a value for xmx, but if I don't the parameter list looks like it has an embedded cr after 128 and before "M" and java complains. I've stared at the code and don't see it.

Other than that everything looks good.

from nzbhydra2.

deanishe avatar deanishe commented on May 25, 2024

Except that nzbhydra1 does not run with the shipping version of python (2.7.10)

We're talking about NZBHydra 2, and I'm running it right now with the system 2.7.10.

Yes, it does, which is why my first suggestion

But your recommendation was the minimal JRE…

Thank you for playing

If you're going to be rude, at least try to be correct as well…

from nzbhydra2.

theotherp avatar theotherp commented on May 25, 2024

@Alrescha-git Thanks for the contribution :-)

from nzbhydra2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.