Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 4 years ago. Improve this question I hav…
Tag: linux
How do the clock function works in operating systems?
I don’t understand how clock function works within an operating system. First the documentation for clock function in www.cplusplus.com is: As far as I understand, the clock function must access directly some register within the CPU that is a counter for CPU cycles. How is this possible? I mean, any reg…
Where to execute bash command in visual studio?
I want to setup CI for my flutter project, and i need to encrypt the keystore file. For this i choose the following solution: https://docs.travis-ci.com/user/encrypting-files/ I am developing with visual studio code, also i have no idea about bash. I need to execute following command: Questions: Where do I ex…
Unable to mput all the files through sftp in the remote server using expect
I’m trying to mput all files present in the directory : /Test/XML/ into a remote sftp server with the help of expect utility. I’ve around 320 files in the directory: /Test/XML/. The size of each file is around 0.1 MB. There’s no error observed. Here’s my code: But the problem here is, …
How to install gcc8 using devtoolset-8-gcc
I am using CentOS Linux release 7.3.1611 which has gcc 4.8.5 20150623 installed. I am looking for a way to install a newer version of gcc, specially 8.1. I found the following site on how to install gcc v7 link 1 which describes how to install gcc v7 (using devtoolset-7-gcc*). I did follow the guidelines and …
ASCII Text Browser Vs. cURL
I hit this url : http://artii.herokuapp.com/make?text=abc+art&font=smisome1 I see this Then when I curl exact same URL curl http://artii.herokuapp.com/make?text=abc+art&font=smisome1 I got this 🤦🏻♂️ Does anyone know why this is happening ? Is there a specific flag in the curl I should pass to make it…
Print a column without 1st item of that column
Good night everybody, i want to print a column without printing the 1st item of that column. I want print the 4th column of this csv file: So i do this: But this print: But i only want the numbers, so i want to print all except the first line (MediaAcesso), how can i do this? Can i do this
Access List of Items from cURL Result
If u go to this url : http://artii.herokuapp.com/fonts_list, you will see a list of 417 items on the list. I’m trying to create a variable to store/access those list. I could not get it to work. I kept getting Any hints on how to do it ? Answer Starting with the assumption that the result is, in fact, o…
How to create a navigation menu in dotnet application?
I have created a console application which have a menu that allow me to navigate between the menu items. I handle the navigation logic in this method: here the full class. Now on windows all works well, but when I run this application on my linux with systemd I get: Unhandled Exception: System.InvalidOperatio…
Preventing expansion/evaluation of parameter in ssh command
I have a shell script that runs a docker container on a remote server. I’m trying to send the hostname of the remote server into the container but i just get the hostname of my local computer where i run the script. The command looks like this in the script: Both hostname and the environment variable ho…