All Questions

3
answers

Back files deleted in Git

Friends, good afternoon. I removed some files inside the server, however I need them again, I have them in the git repository. How do I redownload the repository files?     
asked on 25.04.2016 / 20:43
3
answers

Cut string on the last occurrence of a character in a string

I have text in a column that has information separated by "-" (hyphen) and I need to remove the last and last but one information. Examples: Transform " Informacoes - Separadas - Por - Hifen " into " Informacoes - Separadas ";...
asked on 30.05.2016 / 22:42
1
answer

Gps or antenna triangulation - How to know the accuracy of the location?

I have an app that uses the api Location and works right on most devices, but it has one that even the GPS does not work with proper accuracy (goes over the house and not on the street). By the test I made it uses triangulation of antennas ev...
asked on 20.04.2016 / 16:37
1
answer

Open a div according to your ID

I have a menu that, when right-clicking, it opens in DIV . Everything happens inside a tr (line) of a table . My problem is the following , I have a table with several tr , and each of them gets a ID . A...
asked on 13.04.2016 / 13:51
2
answers

Larger and smaller number

I need to sort three numbers and I can not use for or vectors. I know it's easy but I can not do it. My problem is: I can not save the highest value. public static void main(String[] args) { Scanner sc = new Scanner(System....
asked on 29.01.2016 / 17:31
2
answers

Tag picture does not work on phones and IE11

I'm working with the <picture> tag to use its responsive function and inserting multiple sizes of the same image into a single object according to the screen resolution by the "media" parameter of the <source> tag. In c...
asked on 19.02.2016 / 00:17
1
answer

Split by character | does not return all expected elements

I have a file with similar lines as the following: 42|a|b|c|d||f||h||||||||||||||||||| I need to split by character | so my code does as follows: String linha42 = "42|a|b|c|d||f||h|||||||||||||||||||"; String[] campos = linha42.split(Patt...
asked on 02.03.2016 / 21:58
2
answers

How to undo the mouse scroll (zoom) action on an Iframe in google map

How to undo the mouse scroll action on google map in this Iframe? Is it possible to do this directly in this code or do I have to use Java Script? If you have to use js, how do I get this Iframe to load only after all other files? <...
asked on 20.04.2016 / 14:57
1
answer

What is the benefit of using closures in PHP?

Eg: Why use a closure for this function: We could do the same thing without a closure, but why use this class? public function getTotal($tax) { $total = 0.00; $callback = function ($quantity, $product) use ($tax, &$tota...
asked on 09.07.2014 / 21:32
3
answers

Count the columns of a MySQL table using PHP

How can I count the columns of a MySQL table using PHP, does anyone know of any commands to do this? I tried to do this but it did not work: $sql4 = mysql_query("show fields from ".$tabela) or die('erro na query'); $rows4=mysql_fetch_array(...
asked on 26.06.2014 / 14:11