Why is QsslSocket working with Qt 5.3 but not Qt 5.7 on Debian Stretch?

TL;DR Debian Stretch is shipped with OpenSSL 1.1; Qt uses OpenSSL 1.0; give Qt what it needs: apt install libssl1.0-dev Detailed answer From this answer about OpenSSL and Qt, I found a hint and I displayed SSL library version used for compile-time and run-time using: qDebug()<<“SSL version use for build: “<<QSslSocket::sslLibraryBuildVersionString(); qDebug()<<“SSL version use for … Read more

How to list all python virtual environments in Linux? [duplicate]

If only using the lowly virtualenv …{directory} to create a virtualenv, then there is just some directory somewhere that has that specific environment in it. You can only “list” these by running find on your $HOME directory (or any other list of directories you might have used to create virtualenvs) looking for python installations. Hopefully … Read more

Copy the contents of a file to clipboard from WSL to Windows?

Command: cat /path/to/file | clip.exe Description: cat command put the file contents to the output. It is then pipe to the clip.exe, a Win32 program, redirects output to the Windows clipboard. Do not forget to add the .EXE extension of the later one. There are multiple cat alternatives can be used, see this and this. … Read more

User script location linux (debian etch) [closed]

the information i got: /usr/local/sbin custom script meant for root /usr/local/bin custom script meant for all users including non-root chatlog snips from irc.debian.org #debian: (02:48:49) c33s: question: where is the _correct_ location, to put custom scripts for the root user (like a script on a webserver for createing everything needed for a new webuser)? is … Read more

Installing node.js on Debian 6.0

If anyone else needs step-by-step instructions, I used the following steps from Install Node.js on Debian Squeeze and it installed with no problems: sudo apt-get update && sudo apt-get install git-core curl build-essential openssl libssl-dev git clone https://github.com/nodejs/node.git cd node git checkout v5.0.0 (or the version you want to build) ./configure make sudo make install … Read more

What does the colon (:) and dash (-) in an Ubuntu dpkg version number mean?

The number before the : is the epoch. This overrides the version for ordering purposes, e.g. 3:3.1 is considered newer than 2:3.2. It’s used when a packager needs to downgrade a package in the repos for one of various reasons. The number (value, really) after the – is the release. It differentiates between different releases … Read more

Run shell script with node.js (childProcess)

The exec function callback has error, stdout and stderr arguments passed to it. See if they can help you diagnose the problem by spitting them out to the console: exec(‘~/./play.sh /media/external/’ + req.params.movie, function (error, stdout, stderr) { console.log(‘stdout: ‘ + stdout); console.log(‘stderr: ‘ + stderr); if (error !== null) { console.log(‘exec error: ‘ + … Read more

Faster forking of large processes on Linux?

On Linux, you can use posix_spawn(2) with the POSIX_SPAWN_USEVFORK flag to avoid the overhead of copying page tables when forking from a large process. See Minimizing Memory Usage for Creating Application Subprocesses for a good summary of posix_spawn(2), its advantages and some examples. To take advantage of vfork(2), make sure you #define _GNU_SOURCE before #include … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)