All Questions

1
answer

Suppressing value when calling Javascript function

The code below does not pass a value to y but the code works anyway, does anyone know how it works? I would like to learn more about, does anyone know the name of this javascript feature? function base(x) { return function produto(y)...
asked on 09.06.2017 / 20:47
3
answers

Repeated letter counter in java

I made a method for counting repeated letters that are stored and ordered alphabetically within a list. The method is counting right but the bug is at the time of printing, it printa the letter and the amount of times that appears in the sentenc...
asked on 18.09.2017 / 02:36
2
answers

How to convert a nullable int to common int

I have a method that receives an integer that can be null , in case some method executions happen, but when I use this same variable in a place that uses int that can not be null, it appears that the overload is incorrect....
asked on 15.05.2017 / 19:51
2
answers

Why does not the array value 1 appear in the explode?

When I create the code: $urlAtual = "https://www.meusite.com.br/customer/account/create/"; $parteurl = explode('/', $urlAtual); for($i=0;$i<=6;$i++){ $parteurldesejada = $parteurl[$i] . "<br>"; echo $parteurldeseja...
asked on 17.07.2017 / 19:25
3
answers

How to create a custom list using data from four tables?

I have the following class: Nota { int id; int idFornecedor; int idProduto; int idClasse; } and I have the respective classes referring to the ids of the previous class: Fornecedor { int id; string descricao; } Pr...
asked on 11.04.2017 / 13:01
5
answers

Get object in array by description in index

Is it possible to use the property of an object as an index of an array , as described in the example below? using System; public class Program { public static void Main() { var myObjectArray = new MyObject[]{ new...
asked on 24.11.2017 / 12:53
3
answers

How to use ellipsis css3?

I'm trying and I'm doing the same explains in w3schools but it's not working. .box { width: 250px; text-overflow: ellipsis; border: 1px solid #000000; } <div class="box"> Lorem ipsum dolor sit amet, consectetur ad...
asked on 28.03.2017 / 00:56
3
answers

String with function name in JS

In javascript , how do I get the value of a string and use a function as a call, I save in the database which function to use in onchange of an input, exe: validaData validaCPF , diaUtil . Example: va...
asked on 09.10.2017 / 15:01
2
answers

Separate the value from the string

Colleagues. When calculating cart shipping, it is returning as follows: Iwonder,howdoIgetonlythevalue24.90?Well,Imustaddtothevalueofthecart.Seethecodesbelow:PHP$parametros=http_build_query($parametros);$url='http://ws.correios.com.br/calc...
asked on 17.03.2017 / 19:50
3
answers

How to stylize the "clean" icon of the input type search?

I need a way to style the × icon that is at the end of input[type="search"] . The input type search when focusing on the element, it has an × if it has a value filled in. Example: InoticedthatwhenItypetheinputsearch,this"x" often...
asked on 22.05.2017 / 18:04