All Questions

2
answers

Try - Catch and Variable not initialized

I just learned the basic structure of the Try-Catch and I made a small code to test it, but it gives me an uninitialized variable error. Can someone instruct me a little about this? I leave the code: public static void main(String[] args) {...
asked on 22.03.2018 / 05:45
2
answers

Can (a == 1 && a == 2 && a == 3) be evaluated as true?

This is an interview question: Is it possible in Javascript that (a == 1 && a == 2 && a == 3) can evaluate true ? Reference: Related question in SOen     
asked on 24.01.2018 / 14:15
4
answers

OnClick event assignment using document.getElementById

Code function asignarEventos() { var uno = document.getElementById("uno"); var dos = document.getElementById("dos"); var tres = document.getElementById("tres"); var arreglo = [uno, dos, tres]; for (var i = 0; i <...
asked on 01.08.2017 / 15:05
4
answers

Count how many elements with the same class are with JQuery

I would like to know how I can count the elements that exist with the same class in an HTML to be able to be with JQuery but with JavaScript also OK. Thank you! Example div class="hola" div class="hola" div class="hola"    A s...
asked on 17.04.2018 / 15:54
3
answers

Smoothing of fonts with 8-bit color per point

I am using uGui to display fonts on the screen. But the final result is not as satisfactory as it should be. The hardware is quite limited: color of 8 bpp (256 colors in total), with 3 bits for red, 3 bits for green, and 2 bits for blue (3: 3:...
asked on 10.05.2018 / 12:09
2
answers

Javascript dates

Good morning, I had the following question, can it be done that when a input type="date "have passed more than 65 years difference between today's date and the one put by the users, a input type="radio" will be deactivated? That...
asked on 26.10.2016 / 10:59
1
answer

Spectrogram [Array] to 3D spectrogram, Listplot3d

I have a question in wolfram mathematica . What happens is that I have an array of data and I can generate a espectrograma , what I need is to generate this same spectrogram in 3 dimensions,    2D Spectrogram    3D Spect...
asked on 18.12.2015 / 17:58
4
answers

Understanding the absence of pointers in Python

In some simple applications that I have had to write in C / C ++ I have seen the ease with which certain tasks are solved using pointers . Now, more interested in another language: Python, I have noticed the absence of this concept. What is the...
asked on 04.12.2015 / 00:00
7
answers

Write only once each key, ignoring the repetitions

I want that when a key is pressed a long time it does not write several times. ejemplo: tecla tiempo resultado a 3seg a I made this code but it does not work, use the 3 events. var texto=document.getElem...
asked on 19.03.2017 / 17:32
3
answers

C ++ Alternative to getch ()?

Do you know any alternative to the getch() function? because it's from the Conio library (which is not standard) and I would like to know if there is any standard alternative for C ++. I have this code: do { tecla = getch();...
asked on 21.02.2017 / 23:30