Posts by Hugo Barbato • 31 points
6 posts
-
0
votes1
answer80
viewsA: Socket Hex with checksum
When reading the PHP documentation regarding the XOR function, I noticed that the language does not distinguish between string, decimal or hexadecimal. And as I have noticed in several cases,…
-
0
votes1
answer80
viewsQ: Socket Hex with checksum
I’m developing a communication socket between a tracker and the server. The socket is working perfectly. My problem is with communication when it comes to checking the checksum. The device sends a…
-
1
votes2
answers109
viewsA: Search filter that does not filter
Check whether the query is OK. And try instead: if(!is_null($servico) && !empty($servico)) $sql = "SELECT * FROM teste WHERE servico LIKE '".$servico."' ORDER BY servico ASC"; Using this…
-
1
votes1
answer43
viewsA: SCRIPT to Convert and Save Addresses
HICCUP FOUND I noticed that I was making several requests per second to google, which exceeded their limit, however such requests were not necessary since I only needed the final and initial…
-
0
votes1
answer43
viewsQ: SCRIPT to Convert and Save Addresses
I developed a script to convert a coordinate in a REST API with Cakephp $lat and $lng in formatted addresses. The script checks if the coordinate is saved in the bank, if negative it searches google…
-
1
votes2
answers398
viewsA: How to center a div with auto width?
If you want a div responsive auto tuning and it remains centralized use the following css: .centralizar{width:20%; margin: 0 auto;} If you want to increase the div, just increase the width…
cssanswered Hugo Barbato 31