All Questions

5
answers

Problem with link rel="stylesheet / less" ...

I'll start studying LESS, but the problem is that I can not move to the first step. If I put <link rel="stylesheeet/less"...> does not work. Only work if I put <link rel="stylesheeet"...> without /less . I'v...
asked on 10.12.2014 / 15:00
2
answers

Methods without parameters and with parameters

Declaration methods without parameters: void exemploDeMetodo(){ int i; } Calling methods without parameters: exemploDeMetodo(); If I want to do a parameterized method it's like? Is it like this? void exemplo(int i){ faz al...
asked on 02.11.2014 / 18:18
3
answers

How to return most common words in a text with PHP?

I'd like to know how best to return the most frequent occurrences of substrings in a string containing text. Example: $texto = "Hoje nós vamos falar de PHP. PHP é uma linguagem criada no ano de ..."; And the output: array( "PHP" =>...
asked on 29.06.2014 / 20:55
2
answers

Remove an item from a List

Well, I have a method that I query on my bank and compare with a List<Carros> . My intention is, for each item that contains both in my query, and in my List<Carros> , I remove the item from my List<Carros> ....
asked on 08.05.2015 / 16:33
3
answers

Call Java application via PHP

I created a Java application here in my company however they want to call this application in Java via a website made in PHP. I would like to know if it is possible for me to make a PHP code that calls a Java application, no matter the form if i...
asked on 09.06.2015 / 15:27
3
answers

How to deal with multiple queries?

I have a question regarding good programming practice. How to handle multiple queries on a single page in PHP. For example, the code: $qr = "SELECT historico.*, funcionarios.nome FROM historico INNER JOIN funcionarios ON (historico.funcion...
asked on 20.05.2014 / 04:59
2
answers

How to remove formatting from the GETDATE () command

I'm developing an application that will be used by multiple clients simultaneously, I'd like to use Day, Month, Year, Hour, Minute, Second and Millisecond as id and / that the : function returns?     
asked on 28.05.2015 / 14:32
2
answers

How do I return the ID of a record right after it is entered?

I'm doing a Java application in conjunction with a MySQL database and would like to know what would be the best command to return an auto increment ID of the database shortly after the registry was entered. My application will work with multi...
asked on 24.05.2015 / 23:20
3
answers

Sort List in java

I have List<Pessoa> where the attributes of the object are: Name, age, address, etc. I have a Screen where I insert people in this list and generate a report, I would like to display this object sorted by Name. How can I do this?  ...
asked on 15.07.2015 / 18:29
2
answers

Is there a jQuery selector that takes the html of its own tag and also the content?

Example: <div id="quadro" style="float:left"> <h1>Quadro de horários</h1> </div> If I use $("#quadro").html() I only get h1, but I want the html of h1 and the div itself. I need something dynam...
asked on 12.08.2015 / 15:47