All Questions

2
answers

What are the size limits of variables in Ruby?

I would like to know the size limit of variables of the following types: String - What is the largest number of characters I can have in a single string ? Integer and Float - What is the largest and smallest number that can be repre...
asked on 26.05.2014 / 21:23
3
answers

SQL command to display specific records of the "id" field

What SQL statement would display the records where the id field was 22, 23, 25 and 27?     
asked on 30.08.2014 / 02:21
3
answers

Why in JavaScript, 7 (a number) is not an instance of Number?

When we do the following test, we return false . console.log(7 instanceof Number); // FALSE However, in the second test, true is returned. var number = new Number('3'); console.log(number instanceof Number) // TRUE In a s...
asked on 20.07.2015 / 16:22
9
answers

How to assign a parameterized function to the click without executing it?

Explanation: I have an application that defaults to a mostraGrupos() event and when it is executed, it finally drops off the element and tries to assign the escondeGrupos() function to the same element. Code: function mostr...
asked on 28.07.2014 / 13:05
2
answers

What does PSR mean?

Hello everyone, I recently found a term called PSR in the PHP area, but the topic was not very enlightening in defining the real meaning of the word PSR, I saw that it was related to the Object Oriented area, I did a google search and I did not f...
asked on 12.09.2014 / 15:14
2
answers

TODO - What is it, what is its usefulness and how to use it?

I've seen a lot of this "TODO" word, mostly in IDE's and I've always been curious to know what it is. Example: // TODO: alguma coisa escrita código.... Now the questions: What is EVERYTHING? What is its usefulness? How to use...
asked on 02.04.2016 / 02:12
2
answers

How to escape quotes in PostgreSql?

I have a function in postgresql function f_criaproduto(p_texto text) , I have to pass as f_criaproduto(' meu produto é 'televisao' da melhor qualidade') . How can I escape the quotes in the text?     
asked on 11.02.2014 / 12:36
1
answer

Why is it better to use char [] than String for passwords?

Using Swing, the getPassword() method of JPasswordField returns an array of char[] characters instead of returning String as getText() (which by the way is deprecated). Should I not use String to stor...
asked on 04.09.2017 / 19:26
2
answers

How to continue running a script, even after sending the data to the browser?

When I asked the question What is the solution for asynchronous processes in PHP? , basically what I had in mind was this question:    "Is there a way to complete a request from a client, but leave a process running in the same script that s...
asked on 30.09.2017 / 17:30
2
answers

How to pass Int to Base64 in PHP?

Base64 can store 6 bits for each character used. Assuming we are using int64 or uint64 we use 64 bits, which could be represented in ~ 11 characters. I've tried answer this question , but PHP fails to convert the values correctly. $int = 5...
asked on 31.12.2017 / 21:56