I want to use lsof to create a list of open files in a folder. I’m using macOS, but understand this is common to *nix. In man lsof, it seems the the -Fn option is closest to what I want, but I can’t get further than that. I’m piping to cut to get to just the filename. So this is
Gnuplot : 2 questions about my histograms X axis and add percentage
I need to generate a gnuplot histogram in order to see the CPU and RAM evolution of my cluster per month : I want to generate the histogram from this file : To do that, this my code : For the moment, I have this result : But as you can see, I have a problem with my x axies.
Eclipse: The SWT browser widget could not be created
I have installed eclipse (4.10) on my Linux Machine (KDE Neon 5.15) and everything works quite well except for the JavaDoc. Whenever I view the JavaDoc-hover, I get a plain text representation and at the bottom it says Further investigation led me to create a minimal SWT-example using the SWT Browser widget: …
vscode python linux: how to automatically open terminal in right venv?
every time I open a vscode workspace I get a terminal the isn’t attached to the right venv, although I did put the right python path in ws.code-workspace.json: is there a way to automatically get the terminal running in the right venv? Answer Your steps to detect the venv path are correct, but: The righ…
An error about TypeError: expected str, bytes or os.PathLike object, not NoneType
I tried to correct English grammar by running a model. My development environment is Linux + Anaconda3 + Python 3.6 + CUDA 9.0 + tensorflow1.9.0 After I ran the model, there was the following problem with the test: How should I solve this problem? Answer It would be helpful to see some code but it looks like …
Why I get a 500 only on kestrel?
I got a ASP.NET Core 2.0 WEB-API and it should work on kestrel because it will be hostet there. When I start with Kestrel (look at my launchSettings below) there is a POST and I always get a 500 returning without going into the code. Means I leave breackpoints everywhere and when I execute the POST in Swagger…
Error while loading library “libicuuc.so.63” on termux
Since I have made an update of packages on Termux via: R can’t start, I receive this error message: I tried to reinstall the package ‘libicu’ through: but it has not worked: Does anyone have any tips or ideas? Answer I have never used linux, It is uncertain. Have you tried this code? Regardi…
Getting the sql server default backup folder on Linux with T-SQL
For SQL Server on Windows for getting default backup folder we can use master.dbo.xp_instance_regread: But for Linux it does not work. Can anyone help with T-SQL approach (I only find SSMS solution here)? Answer I’ve never found a non-registry way to get the backup directory reliably in t-sql. I usually…
Printing current time in milliseconds or nanoseconds with printf builtin
We can print the current time with the builtin printf function, without needing to invoke an external command like date, like this: How can we make printf to print milliseconds or nanoseconds as well? Using %3N or %N in the format string doesn’t work: However, the date command works fine: This is on a R…
SFTP using Python Paramiko directly between two remote machines
I have a code where I have to login into a Unix server. After that I have to sftp into some server and have download few files to that Unix server. I am using Pythons’ Paramiko command to login into Unix server. I know by using sftp.get(filepath, localpath), I can sftp files from SFTP server to local ma…