Posts by Paulo Rogerio • 307 points
13 posts
-
3
votes1
answer56
viewsA: How to catch the 29th of February php datetime
I researched more on the subject and the solution I found was: $hoje = new DateTime('now', new DateTimeZone('America/Sao_Paulo')); $mesPassado = $hoje->modify('last day of previous month');…
-
4
votes1
answer56
viewsQ: How to catch the 29th of February php datetime
I do not know if it is a bug, I searched, I did not find it. But today, I need to recover a data from a month ago and to my surprise it happened this: $dateTime = new DateTime(); print_r($dateTime);…
-
0
votes0
answers12
viewsQ: update on Doctrine 2
To perform a symfony update using doctrine2. I know that we first refer to the entity by the id to see if it exists. If it exists we have to modify the object returned by the query. Then we modify…
phpasked Paulo Rogerio 307 -
0
votes1
answer235
viewsQ: Convert string to timestamp for java date
How to convert string to timestamp generated by php with the time() method generated for example : 1504541885 for Date in java
javaasked Paulo Rogerio 307 -
5
votes2
answers5377
viewsQ: Formatting date in java
I need to format a date that comes for example: 20161109103000 for 2016-11-09 10:30:00. I’ve tried to use SimpleDateFormat, DateTimeFormatter and I couldn’t format the date.…
-
1
votes0
answers32
viewsQ: Modify the user-agent in the upload in a Soap Jax-rpc request
I have a problem, I have a project in java that sends Soap requests by Jax-rpc format. Since now I have to modify the user-agent that is sent in the request. I already googled and…
javaasked Paulo Rogerio 307 -
0
votes1
answer137
viewsQ: subconsulta with 3 different tables using ilike in postgres
I’m having a question. How do I search a given text using ilike to know if this text exists in 3 related tables. ? I tried to exist but it did not give CREATE TABLE metodo ( id SERIAL NOT NULL,…
-
4
votes3
answers663
viewsQ: Method Object.values( ) does not work in internet explorer 9
Guys, I got a problem. In a javascript file that we use works normally the Object.values() method that takes an object and returns an array. But on the internet explore 9 does not work. Someone…
javascriptasked Paulo Rogerio 307 -
1
votes2
answers858
viewsQ: How to check if a table exists using jdbc java
How to check if a table exists in jdbc using Sqlite3?
-
0
votes2
answers2062
viewsQ: Find next multiple of 10 of a number in php
How to find the next number that is multiple of 10 in PHP? Example: $a = 142; How to get number 150?
phpasked Paulo Rogerio 307 -
0
votes1
answer175
viewsQ: Query with json type field in Doctrine 2 and Symfony 3
Does anyone know a way to perform a query using Doctrine which has a JSON field? Example query in Postgresql: select id, nome, tipo, '{"idUsuario":465,"login":"paulo"}'::json from public.usuarios…
-
0
votes2
answers11378
viewsQ: How to check duplicated elements in array?
I need to know if an array in Javascript has duplicate elements. Do you have a function in the jQuery API that does this? If not, how do I proceed?
-
0
votes2
answers179
viewsA: CSS3 Responsive Menu Dropdown are not working!
I downloaded the files and unzipped and worked on my machine using google Chrome and firefox. This example needs jquery to work. Make sure your application is "calling" jquery.