Posts by Victor Hartur de Carvalho • 182 points
16 posts
-
1
votes1
answer57
viewsQ: Why does spring data persist when I use a set?
I have a method more or less like the following within a service: @Transactional public void atualizarPosicoes(Integer novaPosicao, Long idTarefaAtualizada){…
-
1
votes3
answers367
viewsA: Search field with php and mysql. How not to differentiate special characters?
Dude, a solution would be in the query you convert everything to uppercase, or to minuscule, for example: SELECT * FROM produto WHERE nome = UPPER('nomeProduto') the UPPER() function transforms the…
-
1
votes1
answer474
viewsA: JAVA - Google maps api recover line distance
As recommended by @ramaral here’s the solution. I used as reference the geographical positions (latitude and longitude) I then have my straight that goes from -25.428781,-49.263291 until…
-
0
votes1
answer474
viewsQ: JAVA - Google maps api recover line distance
I am developing an app for android that uses the google maps API, everything is right with the app the problem is in the webservice that deals with the information collected by the app, at a certain…
-
3
votes2
answers192
viewsA: Generating a file that is output from a command only if a condition is met
I imagine that the grep will not solve in this case, but you can with shell script pick line by line from the contents of the top, then go from Voce create a logic to pick the time and compare for…
-
-3
votes4
answers650
viewsA: In production environment should errors be disabled?
Answering the question of EDIT, you should use Try/catch blocks and exceptions, I’m a little rusty in php but if I’m not mistaken it’s not so difficult and I’ve heard that php7 is easier still, so…
-
0
votes1
answer162
viewsA: doubts with the single page application of angular
Good evening Aderbal, depends, are you using angular 1 or 2? Angular 2 runs on a Node.js server at first and you have the option to "transpilate" the code to generate "pure" javascript and html. If…
-
0
votes3
answers2135
viewsA: Put the options of an input select in a variable
It is possible yes, even more using Jquery, there are several ways, if I am not mistaken Oce can bind an event for example: "onClick" in the options and then when the user clicks you perform a…
-
1
votes1
answer87
viewsA: How not to use so many activities?
Dude, if I mean right, you have a catalog with multiple shells, and you want to display them on a list where the user can select one and see the details, right? If yes, you are going the wrong way…
-
2
votes3
answers849
viewsA: How to go through each row of the database compare and update a specific column?
In the tags says it is mysql so you need to perform an update in the product table, it would be more or less like this: UPDATE produto SET PROD_ATIVO = 0 WHERE DATA_INCIAL > DATE("now") OR…
-
2
votes2
answers527
viewsA: Format date when performing Update in the registry - Postgresql
At the database level, if you selected this field as a date field or timestamp you do not format the date, who does this is the database itself, what you can do is take this data and format…
-
0
votes1
answer49
viewsA: Doubt about saving a data and updating a div right away
Can, whenever you make a request ajax Voce will have a callback function, which will be executed when the request finishes and return something, in the case of ajax would be something like this:…
-
0
votes3
answers766
viewsA: Capture page information on facebook
facebook provides an api for developers, https://developers.facebook.com/ you can go in there and read the documentation, but at first you will consume a Rest api, if you do not know how to work…
-
0
votes1
answer676
viewsA: Error while uploading files to Ubuntu with PHP
From what I saw your problem is with the permissions of the linux file system (thing that windows does not so it works) if I am not mistaken Oce need to give permissions in this folder for APACHE to…
phpanswered Victor Hartur de Carvalho 182 -
0
votes1
answer36
viewsA: Twitter Bootstrap does not load in jsp files
If you are using only jsp you don’t need any configuration, at first the webapp folder is the folder accessible by the web, then just put the file there and put the tag <link rel="stylesheet"…
twitter-bootstrapanswered Victor Hartur de Carvalho 182 -
0
votes0
answers109
viewsQ: Codeigniter by adding ". html" after controller name
I don’t know why when I try to perform an ajax call to the url "http://localhost/meusite/controller/method" I get a 404 error saying the following "The url…