Case1: Open file1 in vi. Select a few lines(select copy is enabled). Paste in a different place. Case 2: run the command less file1. From the console, select some lines. Paste in a different place. In case2, I see that there are new lines introduced at where the line display shifts to new line. So, if the ter…
Tag: linux
why my unix domain socket can’t work
there are two simple program to demo the unix domain DGRAM socket. and the following is the result: it seems like nothing wrong here. but, I get nothing from the server. I don’t know why it can’t run as I expect. Answer You should be sending to /var/run/lsvr.sock not to /var/run/lcli.sock. Also yo…
Signal all processes in process group except self
I am writing a program which multiple processes will run concurrently. In this program, there is a need for one process to suspend all other participants temporarily. In order to spare myself the overhead of tabulating all participant process ID’s in a shared page and signaling them individually, I have…
Error: Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (64)
using ionic serve in ionic v3 project on ubuntu … it’s giving below error – Error: Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (64) For more information on which environments are supported please see: https://github.com/sass/node-sass/releas…
youtube-dl sometime hangs with “[ffmpeg] Correcting container”
Ubuntu 16.04 I have a bash script that attemts to download a youtube video. The output is below. The problem is that sometimes it works perfectly (completes quickly). But most of the time it hangs on “Correcting container….”. Does anyone know why? Answer I installed the latest ffmpeg and use…
Eclipse error when trying to configure for using Groovy in a Gradle project
On a Windows machine I’ve been using Groovy in Gradle projects in Eclipse for some time now. Now I’m trying to configure for a Linux machine. (Linux Mint MATE). uname -a gives this: Linux mike-Latitude-E6410 4.4.0-53-generic #74-Ubuntu SMP Fri Dec 2 15:58:04 UTC 2016 i686 i686 i686 GNU/Linux Eclip…
Zip command on Linux includes whole folder structure
I’m currently incorporating continuous integration on a project I’m working on at work using Bamboo. We are using ANT scripts to do the build automation, and as the final task we’re using the linux Zip command to create a release zip file. The problem is that the zip file contains the whole …
Get variable name while iterating over array in bash
What I have is an array with some variables. I can iterate to get the values of those vars but what I need is actually their names (values will be used elsewhere). Going with var[i] won’t work cause I will have different names. I guess I could workaround this by creating another array with the names …
Explain Linux commit message that patches/secures POP SS followed by a #BP interrupt (INT3)
This is in reference to CVE-2018-8897 (which appears related to CVE-2018-1087), described as follows: A statement in the System Programming Guide of the Intel 64 and IA-32 Architectures Software Developer’s Manual (SDM) was mishandled in the development of some or all operating-system kernels, resulting…
Losing stdout data in python
I’m trying to make a python script which is going run a bash script on a remote machine via ssh and then parse its output. The bash script outputs lot of data (like 5 megabytes of text / 50k lines) in stdout and here is a problem – I’m getting all the data only in ~10% cases. In other 90%