Questions tagged as 'linux'

1
answer

Subtract time in nanoseconds

I have a file.txt file with this: 15:31:16.481 15:31:09.215 15:31:09.211 15:31:00.019 15:30:59.593 15:30:53.246 15:31:21.244 15:31:17.646 19:17:51.124 19:17:49.691 19:17:48.296 19:17:36.297 19:17:57.565 19:17:51.449 14:48:...
asked by 16.10.2018 / 05:01
1
answer

Icon associated with a file type in Linux

I have the following code to get the icon associated with a file type, implemented for Windows : #if defined(Q_OS_WIN) #include <QFileInfo> #include <QtWinExtras/QtWin> QIcon IconFromFile(const QString& fileName) { QIcon...
asked by 29.05.2018 / 07:56
2
answers

MYSQL does not allow entering the engine

I have mysql installed on ubuntu but when I want to enter the databases with the command: sudo mysql -u root -p It does not allow me to enter, the following error appears: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (usi...
asked by 05.06.2018 / 00:06
1
answer

Obtain user folder for any user in Linux (Ubuntu)

I've recently come across functionality that does not seem to be currently implemented in python. Currently we can obtain the active user's folder in several ways (speaking of linux): import os os.environ("HOME") os.path.expanduser("~/")...
asked by 12.06.2017 / 17:38
1
answer

How can you increase dates in a shell?

Description: I need to take a date in dd / mm / yyyy format and increase the day. For example, having a date 01/01/2017 , the idea is to have the following output: 02/01/2017 Code: I am trying with date -d "${fecha_ultim...
asked by 06.01.2017 / 21:29
1
answer

Get shell variable from C

This is the code I was testing, but for some reason the output I get is nothing. #include <stdio.h> #include <stdlib.h> int main (int argc,char*argv[], char *envp[]){ FILE *fp; char path[1035]; fp=popen("/bin/echo ${CO...
asked by 28.04.2017 / 19:31
1
answer

Why do I get this error when compiling my project in Windows?

Good morning, I am trying to compile my android project in Windows since the development of it was in Linux but when trying to run the application I get this message. I do not know if something similar ever happened to someone.  ...
asked by 04.04.2017 / 17:42
1
answer

Uninstall Java 9

I want to uninstall everything related to java 9 in linux, in order to install Oracle Java 1.8. When entering java -version I get: " -bash: /usr/bin/java: No existe el archivo o el directorio" . But when doing javac -version...
asked by 03.04.2018 / 00:03
1
answer

Is there an alternative for Raspberry pi and connect SSH under NAT?

Dear, I am working on a project with RPI3 and connected to a 3G Mobile Broadband, which has blocked ports SSH 22, is there any option to create a tunnel via web, to be able to access the SSH of the machine? Greetings.     
asked by 18.12.2017 / 19:41
2
answers

.net Core auto executable

After creating my first console application with .Net Core 1.1 in Windows 10 with Visual Studio 2017 I copied to my server Linux - Ubuntu 16.04.3 LTS (already with the .Net Core framework installed). I have successfully executed the comma...
asked by 20.08.2017 / 00:25