All Questions

1
answer

Sort dataTable by attribute

On the JSF page, it picks up the managed bean from the list of any objects. public class Ob implements Serializable { private Integer id; private Date data; private String descrição; } I wanted to mount the table more or less li...
asked on 13.07.2015 / 01:38
1
answer

How to send data via POST and retrieve in PHP?

How do I send the data via POST with the send-json method, value 0, following my PHP code: // Recupera os dados $nomeUsuario = $_POST['nome']; $cpfUsuario = $_POST['cpf']; $bairroUsuario = $_POST['bairro']; $emailUsuario = $_POST['email...
asked on 19.06.2015 / 22:14
1
answer

MongoDB in production

I have an application that uses MongoDB, I'm getting to the end of its development and I just started thinking about how the installation of this bank would be done in the production environment. During development the collections were being c...
asked on 29.08.2015 / 16:08
2
answers

HTTP GET using localhost

I'm creating an application using phonegap + onsen framework that will be powered by Web Services (RestFul). But I can not make a conversation between the two parties. My call to the Web Service looks like this: $http.get('http://localho...
asked on 30.07.2015 / 03:34
1
answer

Improve the performance of a query

How could I improve this query, which returns me the top 10 sales to assemble a chart, so that it processes faster? set @startDate :='2015-01-03'; set @endDate :='2015-05-31'; set @dst_id:=1; SELECT SUM(vnd_quantidade) as quantidade, (S...
asked on 29.06.2015 / 14:25
1
answer

Write the result of a variable in the mysql database using python passed as parameter

I have a database in mysql that contains a table with multiple expressions. I can extract the expressions through procedure , solve them, but when I want to return the calculation value to the bank with another procedure , thi...
asked on 26.06.2015 / 04:43
3
answers

In a data class can you have properties other than those generated automatically?

Kotlin allows you to simplify the creation of what we call POJO in Java: data class Person(val firstName: String, val lastName: String) We get a class with the getter for all variables declared in the constructor as well as the methods...
asked on 11.08.2017 / 20:00
2
answers

How to format the date of an input [date] in the format dd / mm / yyyy '?

I have a page, built with AngularJS, which has a input [type = date] . Basically, what I want is to take that date and format (ie, display to the user) using the format 'dd/MM/yyyy' (for example: 28/05/2015 ). What is the pr...
asked on 29.05.2015 / 04:48
1
answer

Is PHP considered open source?

Is PHP considered open source? If so, are there repositories such as Chromium where we can see their "guts" and / or collaborate for their development? If not, does it have any rights to CGI, C, C ++ languages? Since they were used for their cre...
asked on 29.11.2017 / 20:57
3
answers

Animation in pictures

Is there any way to make an image rotate for example by 90 degrees when clicked on it? I want that by clicking on the image, it takes a turn, like a clock hand for example.     
asked on 14.08.2017 / 19:15