All Questions

2
answers

Convert datetime "DD / MM / YYYY" to a string "YYMMDD" in C #

I have the value of a date in a DateEdit which the default value is DD/MM/YYYY and I need to convert it to a string format YYMMDD to show it in a TextBox since it will define the name of a task on that date....
asked on 09.08.2017 / 14:30
3
answers

How to use ternary operator

good afternoon, I have a very specific question, what happens is that I want the user to enter a number and according to this establish whether the vehicle is a car or motorcycle, I think I already achieve it but not very well, after this I want...
asked on 26.08.2017 / 17:40
2
answers

Know if a number is even or odd using indirect recursion

Is it possible to solve an exercise where you are asked to know if a number is even or odd using indirect recursion? The slogan is: Make a recursive Algorithm that allows to know if a number is odd using indirect recursion What I do is the...
asked on 20.09.2017 / 09:47
3
answers

enable and disable div with hover

<div class="desabilitar"> <input type="text" > <label>Input 1</label> </div> <div class="desabilitar"> <input type="text" > <label>Input 2</label> </div> <div class="desabil...
asked on 11.08.2017 / 13:57
2
answers

Remove duplicates in an array of objects in PHP

I have an array of objects and I wanted to know if there is any way to eliminate the duplicates. array_unique() does not detect it. The solution that works for me is to go through it, take ["tagname"] from another array, elimin...
asked on 30.08.2017 / 08:45
2
answers

Is std :: function equivalent to a pointer?

I was practicing with lambdas and I found the following code: auto make_fibo() { return [](int n) { std::function<int(int)> recurse; recurse = [&](int n){ return (n<=2)? 1 : recurse(n-1) + recurse(n-2); };...
asked on 05.11.2015 / 00:26
3
answers

Even using BigDecimal I have problems with rounding

Why should I use BigDecimal in this case, I do not get the expected result? double value1 = 5.68; double value2 = 2.45; System.out.println(BigDecimal.valueOf(value1 + value2)); DEPARTURE: 8.129999999999999 EXPECTED: 8.13     
asked on 16.12.2015 / 15:20
3
answers

Obtain item with point in class name with JQuery

It turns out that following the documentation of the library fancybox I find that to define the behavior of its elements through classes, a syntax must be followed like the following: <a href="http://www.dominio-ejemplo.mx/pagina" class="...
asked on 15.12.2015 / 01:14
2
answers

Send phrase to web service using JSON

I have a small problem when sending a phrase using JSON to a web service, if I send a string without spaces like String name="Jose" ;, there is no problem, but when trying to send a whole sentence, the consultation is not done. What would be the...
asked on 09.12.2018 / 21:48
1
answer

Update content by changing the parameter of the URL with routerLink in Angular 7

I'm working with Angular 7 and when changing the URL parameter I do not update the content because it does not reload the constructor or the ngOnInit, all the URLs call the same components for example CategoryComponent but depending on the param...
asked on 27.12.2018 / 13:17