All Questions

2
answers

Run function according to the status of a checkbox

Good people, it turns out that I have a theme, I'm doing an interface to control an arduino that I have, and what I did was with JavaScript send a GET request when you press the power button and another by pressing the power off button, which I...
asked on 31.12.2016 / 16:58
1
answer

random numbers every so often

Does anyone know how to generate random numbers every minute? Right now I only have one for where it sends 3 data just for nothing, but it sends them instantly, and I need every minute to throw a random number at me. for(int i =0; i<3; i...
asked on 05.11.2018 / 07:02
1
answer

Apply animation to div with background image

I have the following code #preloader { position: fixed; top:0; left:0; right:0; bottom:0; background: #fff; z-index: 100; } #loader { width: 150px; height: 150px; position: absolute; left:50%;...
asked on 05.12.2018 / 17:40
1
answer

Problem with processes and memory reserve

I have the following exercise: Perform a program that expands N child processes. Each child must share a variable called counter, which must be initialized to zero. This variable must be incremented by each thread 100 times. Print the variabl...
asked on 18.12.2018 / 21:25
2
answers

strcmp gives unexpected results

I was practicing a bit of c to refresh my memory and there are some lines that are not working for me: int main(){ char nombre[20]; int cont = 3; printf("Ingresa tu nombre de usuario\n"); fgets(nombre,20,stdin); fflush(st...
asked on 09.10.2018 / 17:57
1
answer

Unable to open 'file_name': File not found (/ path / to / the / file)

I compile a program with gcc . Since VSCode I open a source file, and I set a stop point. Next, on the target machine, I throw the gdbserver with the appropriate arguments. The debugger runs and is waiting for connections....
asked on 14.11.2018 / 08:50
1
answer

Get the full name of a property

I am working on C #, using Linq Dynamic to do some sorting, so I was generated the need to obtain the names of the properties as string . When the properties are simple, they do not generate any conflict, since I can use nameof()...
asked on 22.11.2018 / 14:07
1
answer

No Find the JDK in Ubuntu 14.04

I have a problem trying to install android Studio on Ubuntu 14.04. I get the following error:    ERROR: Cannont start Android Studio   No JDK found. Please validate either STUDIO_JDK, JDK_HOME or JAVA_HOME environment variable points to vali...
asked on 26.12.2015 / 04:25
1
answer

Difference between db.collection.ensureIndex () and db.collection.createIndex () on mongodb

Is there a difference between creating an index using the ensureIndex() command and the createIndex() of MongoDB?     
asked on 04.12.2015 / 20:31
1
answer

Write in a txt file

What I want is to add "a line of text" every time the code is executed. However what I get is to replace all the content of the txt. I leave my code here. const fs = require("fs"); let ruta = './log.txt' let texto = "Esto es una prueba \n\t";...
asked on 21.12.2018 / 16:52