All Questions

4
answers

How to remove parentheses from values in an array?

I have an array and I need to remove all parentheses from all the values of this array. Follow the array: $array = array( "chave1" => "(valor1)", "chave2" => "(valor2)", "chave3" => "(valor3)" ); I need you to look li...
asked on 03.01.2017 / 13:20
3
answers

How to invert an integer?

Notice this statement: /* * Faça um programa que peça um numero inteiro positivo e em seguida mostre * este numero invertido. Exemplo: * o 12376489 * => 98467321 * */ Console.Write("Informe um número inteiro para ser inv...
asked on 01.10.2017 / 20:55
3
answers

How to create functions in jQuery?

I would like to know the correct way, by following good practices, to create functions in jQuery. I've used it like this: var focusToEnd = function() { ... } And also like this: ; (function($) { $.fn.focusToEnd = function() {...
asked on 16.12.2013 / 20:23
3
answers

What is an absolute value?

Viewing the MySQL documentation you can find the mathematical function ABS (x) , which returns the absolute value of x . mysql> SELECT ABS(2); -> 2 mysql> SELECT ABS(-32); -> 32 What exactly is this absolute va...
asked on 05.09.2017 / 19:29
3
answers

How can I make a rand () that always generates only 4 random numbers?

How can I make a rand() that always only generate 4 random numbers, eg: 4562, 9370, 1028 ... My code it generates up to 4 numbers, but it has 3 times. $presenca = rand() % 4000;     
asked on 26.10.2017 / 15:19
3
answers

Remove page element with javascript

I'm making an application and I had a question: How can I remove an element from a page with javascript without using innerHTML = '' ? For example, I want to remove a div (like the example below) and all its contents: <div id="...
asked on 06.02.2014 / 17:04
4
answers

Is there a difference in using HTML5 attributes with or without true / false?

I would like to know if there is a problem in the code when I do not assign a Boolean value to disabled , readonly or required . I'm working with Java in the backend and the IDE points to an error in html when I assign a Boolean value to t...
asked on 10.07.2018 / 20:13
4
answers

Create button with icon next

I'm trying to create a button with an icon next to it, I'm using bootstrap framework icons, I'm breaking my head to do it, I know bootstrap has a component that does this, but it stays in another style, EX:     
asked on 17.12.2014 / 03:14
6
answers

How to change the PATH in Windows

I would like to know how I can change the PATH variable in the Windows environment. I am linux user but I know that windows also allows the use of this environment variable to find its executables.     
asked on 10.02.2014 / 13:16
8
answers

split / regex only on the first vertical bar "|"

I want to split the string into 2 parts (it will always be a array divide into two parts - or two elements) whenever a vertical bar | first case). For example: I have a string var string = "João|23anos"; I can give...
asked on 28.06.2017 / 19:45