Posts by Bruno Felipe • 166 points
13 posts
-
3
votes2
answers12357
viewsA: How to make an INNER JOIN between two different databases on the same server in MYSQL?
Whereas the bank user has the appropriate permissions, yes. As can be seen in this topic (English), considering a base A and a base B, one can do SELECT <...> FROM A.tabelaA TA JOIN B.tabelaB…
mysqlanswered Bruno Felipe 166 -
0
votes2
answers658
viewsA: Pass button value to modal
How you use Jquery, you can use in your button, an attribute of type date-*, turning him into: <button data-itemid="{{item.id}}" onclick="OpenModalFor(this)"></button> And recover the…
-
0
votes2
answers868
viewsA: Google Maps Latitude Longitude does not find address, but exists on Google Maps
Putting as search in google maps "Rua Muller Carioba, 100, Jardim da Saude Sao Paulo SP", nothing was found. Putting the same search, without the number, found! Still anyway, your URL has an error:…
-
0
votes2
answers68
viewsA: Page Preview Error with PHP Code
Add the php tags, <?php and ?> for this part of the code: if ($error == "") { echo "Benvindo"; echo "<a href="index.php">Click aqui para entrar.</a>"; } else echo $error;…
phpanswered Bruno Felipe 166 -
1
votes3
answers80
viewsA: Doubt about instructions that can be implemented in Hibernate
Hibernate is a ORM (Object Relational Mapping), a "relational object mapping technique that allows to make a relation of the objects with the data they represent". Doing some small google searches:…
-
0
votes2
answers99
viewsA: Doubt REST - POST
Files work with return of success and error, as well as ajax calls. This way, you can run your files as follows: axios .post(url_da_api, objeto_postado) .then(function(data) { // Código a ser…
-
5
votes3
answers39830
viewsA: Configure . gitignore to not upload certain files
What you add in the . gitignore file will not be uploaded to your git repository. As described in official document: "The gitignore file specifies intentionally unreversioned files that Git should…
gitanswered Bruno Felipe 166 -
0
votes1
answer239
viewsA: Python2.7 with Opencv 3.3.0 - Videocapture problem
I decided to downgrade Opencv to Opencv 3.0.0. I copied cv.pyd to the Python Lib/site-Packages folder, and the opencv_ffmpeg300.dll file to the Python root folder, and it worked!
-
1
votes2
answers2058
viewsA: What would the route model look like for a Rest API in more complex operations?
Responding using your example (password recovery via email), we can look at this topic, where it is said: Tadeck (2012) - You can use Controllers as alternatives to perform more complex actions. In…
-
1
votes3
answers91
viewsA: Fetch the previous value of a php sql table?
If you have a field where you store the news date, you can do: SELECT <dados> FROM <tabela> WHERE <tabela.campo_data> < <parametro_data_com_data_do_video_atual> ORDER BY…
-
1
votes2
answers2222
viewsA: Postgresql currency conversion
If you intend to do the conversion directly in the database, in select, you can use the command to_char(number, format). In the format, use 0 means that box is mandatory. Use 9 means it is optional.…
postgresqlanswered Bruno Felipe 166 -
0
votes2
answers119
viewsA: How to expand a two elements simultaneously with Javascript?
Exchange the querySelector for querySelectorAll. The querySelector returns only the first object found, while the querySelectorAll returns all matching objects. Then use the forEach, to iterate…
-
0
votes1
answer239
viewsQ: Python2.7 with Opencv 3.3.0 - Videocapture problem
I’m running Opencv 3.3.0. with Python 2.7 on a Windows 7 Professional x64 machine, and when I run the code below, falls in the prints "Something went wrong" and "Finished ..." import cv2 capture =…