Posts by Robson • 174 points
8 posts
-
1
votes2
answers585
viewsA: Display results of Join in view with Laravel
Imagining the scenario that a category has several products, and several products may belong to the same category, we have a relationship n:m. I recommend the following: Filing cabinet Product.php:…
-
0
votes4
answers64
viewsA: jQuery does not return value
It wasn’t very clear your intention with the code. But try this, from what I understand you want to check if any of the options has been selected: function checkRadioPeriodo() { let $periodos =…
-
4
votes4
answers13602
viewsA: Check that the array() is empty with PHP
In addition to the solutions presented by @Rbz, you can create a method as suggested below to verify your data array and receive a Boolean return to validate the omission of data in the submission.…
-
3
votes4
answers1605
viewsA: Turn Messagedigest MD5 into a string
You are returning the string representation of bytes returned by the Messagedigest method. The code to represent what you want is this: String original = "teste md5"; try { MessageDigest md =…
-
3
votes1
answer624
viewsQ: Is it necessary to close Mongodb connections with Pymongo?
I am working on a REST API with Python (Flask + Mongodb) and during development I checked that, nowhere in the code, had I released the resources from the database. I have researched around but…
-
1
votes1
answer339
viewsA: Create python executable: Pyos_inputhook is not available for Interactive use of Pygtk
Taken directly from a Issue of the repository of pyinstaller: Fixed this Issue on my end. Pyinstaller wasn’t including $PYTHONDIR/site-Packages/pandas/lib.so` just copied this into the dist…
-
0
votes3
answers61
viewsA: Multiple entries in class attribute do not work
Just as a complement to @rray’s reply, because I don’t have a reputation yet to comment, you can just do it, too: echo '<div class="alert alert-success" role="alert">Logado com…
-
2
votes1
answer153
viewsA: Why is uploading images to my Digitalocean server so slow?
Speak up. Guy, in the community DO have some guys recommending to execute the command ifconfig eth0 txqueuelen 10000 to force the upload rate increase for every droplet you own. However, there is…