Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 24 2018 19:41

    TheJaredWilcurt on master

    Update ugui.js (compare)

  • Jun 15 2018 02:26
    TheJaredWilcurt commented #10
  • Jun 14 2018 22:06
    AlonsoEnrique opened #10
  • Jan 05 2018 18:15

    TheJaredWilcurt on master

    fix missing l in html fix, get… Merge pull request #9 from Basi… (compare)

  • Jan 05 2018 18:15
    TheJaredWilcurt closed #9
  • Jan 05 2018 18:15
    TheJaredWilcurt commented #9
  • Jan 02 2018 23:05
    Basilmir opened #9
  • Dec 30 2017 23:02
    GAMHer commented #8
  • Dec 29 2017 16:35
    TheJaredWilcurt commented #8
  • Dec 29 2017 15:28
    GAMHer edited #8
  • Dec 29 2017 15:27
    GAMHer opened #8
  • Nov 15 2017 00:22
    Aspvik commented #7
  • Nov 13 2017 02:47
    Aspvik commented #7
  • Nov 13 2017 01:10
    Aspvik commented #7
  • Nov 13 2017 01:04
    Aspvik commented #7
  • Nov 13 2017 01:02
    Aspvik commented #7
  • Nov 13 2017 01:02
    Aspvik commented #7
  • Nov 12 2017 20:18
    Aspvik commented #7
  • Nov 12 2017 17:13
    TheJaredWilcurt commented #7
  • Nov 10 2017 23:32
    Aspvik commented #7
JadianRadiator
@JadianRadiator
the insert a zip thing right now is actually just a curiosity that's unrelated to making my windows linker
The Jared Wilcurt
@TheJaredWilcurt
or just place the package.json next to the nw.exe
JadianRadiator
@JadianRadiator
I'll be using a folder named package.nw
and not insert a zip file
only trying the zip because I'm curious if it would work with a zip that isn't compressed
The Jared Wilcurt
@TheJaredWilcurt
yes, however there is still overhead of copying the files to a new folder
JadianRadiator
@JadianRadiator
How do I integrate this into my app?
I'm too anxious about breaking something to trial & error how and where to insert it.
require('fs').existsSync(desiredFilePath)
also, do I have to use npm compiling for my app to use github updates?
JadianRadiator
@JadianRadiator
or is that just an update notifier that doesn't actually update the app?
The Jared Wilcurt
@TheJaredWilcurt
fs is built in to Node. Node is built in to NW.js. You can run that line of code in the same places/way you would run any JS code for a website/in a browser. NW.js will understand.
all that code does is check if a path exists
if you are using modules that are not built in to node, then you can npm install them and it will download them into a folder called node_modules. That folder needs to be shipped with your app, if your app uses the code in those modules
UGUI has an advanced feature to "check for updates". it is set up to check if there is a newer version off the app on github. https://ugui.io/api/#toc44
JadianRadiator
@JadianRadiator
Sooo... I just use that line to hide the submit button?
Or grey it out or something?
The Jared Wilcurt
@TheJaredWilcurt
You're wanting to add in your own custom logic. which is fine, but you'll need to understand how to code a website for that. UGUI is meant to just give a basic interaction with a CLI. If the user has to interact with a folderpicker dialog, they can't really pick a folder that doesn't exist
If you know HTML/JS you can extend the app out to do anything you want though
JadianRadiator
@JadianRadiator
I was planning on the folder picker to pick the location where the sym link will be located,
with a text field to set the name of the sym link
JadianRadiator
@JadianRadiator
I'm also most likely the only one that'll ever use it
JadianRadiator
@JadianRadiator
I should have realized this sooner,
but I'm putting in a looot of work and effort in the name of being lazy over this
The Jared Wilcurt
@TheJaredWilcurt
then you should have a different field for the name, then combine them in the <arg>s
JadianRadiator
@JadianRadiator
any idea what Node.js module I'd need to be able to play videos off of my Plex server via it's local ip web panel?
The Jared Wilcurt
@TheJaredWilcurt
I would recommend launching a different executable for that. like VLC or something. that is a lot of work to deal with codecs and streaming video. It is possible, but you will need to build out a solution, not find a premade module
The Jared Wilcurt
@TheJaredWilcurt
there are several VLC node modules you could look at if you wanted to ship a portable copy of VLC with your app. Some are windows-only though, so be aware of that if you are trying to make something cross-platform
The Jared Wilcurt
@TheJaredWilcurt
and some do not ship with it at all, and just assume that it is globally installed in the PATH
JadianRadiator
@JadianRadiator
well I'm mainly just wanting it for myself.
Although, the Plex web client uses html5 to play videos embeded into the web page
The Jared Wilcurt
@TheJaredWilcurt
yes, but browsers have very limited codec support
JadianRadiator
@JadianRadiator
oh well, I'l be sticking with using my normal browser for now
UGUI uses NW.js which is built on Chromium, so many video files that play in Chrome won't play in Chromium without additional FFMPG setup
JadianRadiator
@JadianRadiator
I just realized something that make's looking this up a total waste of time for me.
originally to save resources while watching
which I'd only need if I was playing a game at the same time
and if I'm watching stuff through Plex, I wouldn't be playing a game
The Jared Wilcurt
@TheJaredWilcurt
I'm pretty sure you can get a network path or URL to your plex server and open that up directly in VLC. and that will be the lowest resource approach to playback
JadianRadiator
@JadianRadiator
I can, but VLC would have to be able to load/run html for it to actually work for this
or I'd have to manually copy/paste the video's feed from a normal browser looking at it
well, they have a Windows client.
So I'll be going through that...probably
The Jared Wilcurt
@TheJaredWilcurt
no, your plex server will act as a web server on one port, but a media server on another port. Only the webserver port will return HTML files, the others use other transfer protocols (not HTTP/HTTPS)
JadianRadiator
@JadianRadiator
I'd have to go through the webserver port to get the videos' transfer protocol addresses
The Jared Wilcurt
@TheJaredWilcurt
you can set up your router to give that plex server a dedicated internal IP Address, so it will be consistent, then it's just finding out what the settings are for ports/paths and from then it's pretty predictable
oh, you're saying browsing for the video
well you may be better off with just a file share, as long as you don't care about see the posters or whatever, and just care about reading the file name and watching the video
JadianRadiator
@JadianRadiator
using plex since it keeps track of how far into the movie I am across platforms.
I have an Oculus GO, which has it's own Plex client app.
JadianRadiator
@JadianRadiator
I need the code for pushing output to a text area again.
Chat's not scrolling back enough for me to get it myself....
I didn't back it up before switching computers.
The Jared Wilcurt
@TheJaredWilcurt
<cmd executable="myexe">
  <arg>--whatever "((folderPicker.fullpath))"</arg>
</cmd>
var child = exec(executableAndArgs,
  // Throw errors and information into console
  function (error, stdout, stderr) {
    var output = [];
    console.log(executableAndArgs);
    console.log('stdout: ' + stdout);
    console.log('stderr: ' + stderr);
    output.push(executableAndArgs);
    output.push('stdout: ' + stdout);
    output.push('stderr: ' + stderr);

    if (error !== null) {
      console.log('Executable Error: ' + error);
      output.push('Executable Error: ' + error);
    }
    console.log('---------------------');
    output.push('---------------------');
    $('#TXT-OutArea').text(output.join('\n'));
  }
);
?
I'm not sure what you want, I scrolled up and those were the last two code blocks
JadianRadiator
@JadianRadiator
I switched to a different computer since I sold my previous one