All Questions

2
answers

Obtaining data from a grandchild form to the father

I work in a Windows Forms application, C #, IoC ninject. As the question says, obtain data from a grandchild form to the father (from the father a child form is called and this calls another form) and from the latter the data is taken and passed...
asked on 15.04.2017 / 03:09
3
answers

How to remove Sundays in a range of dates in Mysql?

I would like to know if there is any way in mysql to remove Sundays from a range of dates ie    Fecha inicIal : 2017-08-01 ( Y-m-d)    Fecha Final : 2017-08-31 ( Y-m-d) number of days: 31  number of Sundays...
asked on 01.08.2017 / 20:25
2
answers

Update array in React

Having the following code, this.state = { valores: ['A', 'B', 'C'] } How could I update an element in this array? Of the type: this.setState({ valores[1]: 'a' })     
asked on 24.11.2016 / 19:27
5
answers

Obtain age from the date of birth in Java

I want to calculate the age from a date of birth in Date format. I've tried with this code that seems to work fine, but is it the most convenient way? LocalDate hoy = LocalDate.now(); LocalDate nacimiento = usuarioActivo.getFechaNa...
asked on 13.06.2016 / 15:23
1
answer

for vs forEach vs. map

Working in JavaScript, I have two arrays that I need to combine to generate a concatenation of all its elements, for example: var array1 = ["A", "B", "C"]; var array2 = ["1", "2", "3"]; resultado = ["A1", "A2", "A3", "B1", "B2", "B3", "C1", "...
asked on 07.10.2016 / 15:12
2
answers

CSS conditional on language

When a CSS stylesheet is included, you can specify the media query directly on the link tag with the condition that must be met for those styles to apply: <link rel="stylesheet" media="(max-width: 480px)" href="moviles.css" />...
asked on 26.09.2016 / 18:41
2
answers

AngularJS-2 change the delimiters {{}}

I'm trying to use something similar to interpolateProvider in AngularJS 2 but I can not find something similar to this: AngularJS 1.x $ interpolateProvider $interpolateProvider.startSymbol('//'); $interpolateProvider.endSymb...
asked on 08.02.2016 / 22:32
4
answers

Wait for a for each with ajax requests to finish to continue

I'm doing forEach in a array but this loop has an ajax request inside for each repetition and I need to wait until all the ajax are ready to continue ordering the array that is filled with these requests, this It's my code. var g...
asked on 13.09.2018 / 18:50
2
answers

Validate at least one checkbox does not work

I'm doing a validation code for at least one checkbox in javascript. I relied on this example Since it allows to stop the process until validation is done. I can not get the code to work. function validate(e) { var formular...
asked on 21.09.2016 / 00:46
3
answers

How not to repeat variables with the same name for different functions

I have this javascript code: $().ready(function() { $("#aceptarEditar").click(function(){ var item = $('#idTemp').val(); $("#botones"+item).toggle(); $("#botonesEditar"+item).toggle();...
asked on 02.04.2018 / 20:24