How to write upgrade command in the program - upgrade

Want to upgrade youtube-dl program in my program.
Going to pack youtube-dl and Java and use ProcessBuilder to launch youtube-dl.
Considered using pip but as long as read it's not proper way.
How should I upgrade youtube-dl python scripts in my program?
Here is my prototype. This is assume you can use youtube-dl command from your linux terminal.
Wanna port to Windows and MacOS.

I found very nice example code for downloading the latest version on Github.
https://github.com/joejoe2/wav-pcm/blob/master/updatecheck.java
When researching about wav waveform plotting I found this.
https://www.youtube.com/watch?v=FOZnBINrnXI

Related

Chmod u+x windows cmd

I'm trying to install Scalatra on windows seven and need to change a file to executable...the Scalatra documentation says to do this, which is unix. What is the windows equivalant?
chmod u+x srt
You can simply open the relevant folder with a unix command prompt (I use git bash) and execute the unix commands from there
To get scalatra-sbt going on Windows, either port you own sbt.bat from scalatra-sbt, or install chmod via cygwin.
Assuming you've successfully installed the rest of Conscript and giter8, you can start a project that downloads scalatra-sbt. From there, one can look through the ./sbt source, and port the bash script functionality to your own windows specific script, or install a unix compatibility layer into Windows. If you go down the "windows specific script" route, perhaps the scalatra-sbt would appreciate the project contribution.
The "unix compatibility layer" route will eventually allow you to run ./sbt. chmod is a unix command line function, and is provided in a default package of the tool set cygwin, which provides a complete lunix-like environment. Once inside a cygwin terminal, you can chmod your file, as mentioned in the scalatra-sbt first project.
Diving into the contents of ./sbt from scalatra-sbt, this is actually unix script wrapper around the scala build tool (also referred to, confusingly, as sbt). If while trying to run ./sbt you get strange '\r' errors, install the cygwin package dos2unix, and then run it on the sbt file. If you run into any "which: no curl in..." or "which: no wget in..." errors, go back to the cygwin installer, find those packages such as wget, and then install those programs.
By the way, the last thing the scalatra-sbt script runs is the Scala build tool. The Scala build tool sbt itself has many reported issues with cygwin's default configuration, so you will likely need to do more research. Depending on what issues you're running into on your specific setup, you may need to make changes to the end of the ./sbt script to adjust the parameters used to launch the Scala build tool.

How can I create a make file using Plugin builder with QGIS?

I am using the plugin "plugin builder" to generate a template. The plugin builder is also generating a make file. I am working on a computer using windows 7 and am trying to execute the make file using the command line of Windows (MS Dos). However, this doesen't work. This means that my *.ui and my *.qrc file are not compiled to python, if I understand correctly.
What can I do? I am not very familiar with pc or programming so I hope to finde someone who can give me an easy understandable answer. Thank you.
Run the code in the osgeo4w Shell
And follow the steps in here:
http://www.qgisworkshop.org/html/workshop/plugins_tutorial.html
If the osgeo4w shell doesn't work copy the qtcore4.dll and qtgui4.dll to the windows system directory first
Regards
'make', works in linux by default as it is part of its build system. For windows, you could try downloading GNU Make Setup from below link
GNU make link
afterwards, you should be able to run 'make' from your dos prompt

Compile standalone Windows .exe using MATLAB on a mac

I am currently using this code to compile a standalone .app file of a MATLAB GUI on my mac:
mcc -m eotvos.m -a ./*
This works perfectly and I have a fully-functional mac executable. Is there a way to create a windows executable on my mac? I know that code works within MATLAB on windows. Is there a way to create a .exe file on my mac?
As far as I am aware this is not possible. It is possible to cross compile between 32bit/64bit on the same OS but not between OS's. Though I cant find it explicitly in the docs at the moment. Will update if I do.

Compile GTK+ with Cygwin

I have created an application in linux with GTK2 as GUI. It uses some linux-specific headers (e.g. arpa/inet.h) so to run under Windows I have to compile it with Cygwin. I downloaded the latest installer and choose to install GTK2 and its dependencies. My program compiled fine. But it needs X server to be running! I has old-style, ugly graphics and it doesn't open in a different window, like all Windows' applications do, but inside X server's window. Because of this it can't be portable. I found that guide, which is exactly what I need, but I get an error when I run "make" for GTK2 (undefined reference for _IID_IFilePersist, although I have uuid installed - also tried it with gtk2.20). Can you suggest what to do to build my application with cygwin? Or what do I need to install for the "_IID_IFilePersist" error? Thanks in advance!
There's prebuilt packages for windows that doesn't rely on X. http://gtk-win.sourceforge.net/home/index.php/Downloads
If you don't want X server to be running, then you're going to have to port the linux-specific parts of your code and compile with MinGW rather than Cygwin.

Where can I find the gtk-builder-convert script?

I've built a small GUI app for work that uses some .glade files for pop-up windows. Recently, the ground beneath me was shifted - my environment was upgraded. Newer pyGTK versions require GTKBuilder and .xml files instead of Glade and .glade files and now my poor app is broken.
I need to convert the .glade file to the newer .xml file. Problem is Glade-3 is not on our system, and I can't find gtk-builder-convert on the web. I've looked at the Gnome GIT Browser, don't know where to start looking or how to search it.
Would anyone be kind enough to point me to the gtk-builder-convert python script?
gtk-builder-convert is part of GTK and it should already be installed on your system since you have GTK version 2.12 or higher. But if you really can't find it, here it is in the git browser: http://git.gnome.org/browse/gtk+/tree/gtk/gtk-builder-convert
ubuntu: install the tools by sudo apt-get install libgtk2.0-dev
but it is now deprecated
It worked on Linux for me using Gtk3+ and Glade3+ installed from conda by following steps.
Open your Gtk1+ older glade XML file designed in Glade1+ user interface in Glade3+ user interface.
Click on Save button in Glade3+ user interface.
Use this command after conda activate gtk-builder-convert infile outfile.