Posts by Alisson Pelizaro • 373 points
23 posts
-
1
votes2
answers1948
viewsA: Convert seconds to hours in Extjs
I had trouble finding a JS function that actually works. I’ll leave here the one who attended to my needs: function segParaHora(time, with_seg = true){ var hours = Math.floor( time / 3600 ); var…
-
0
votes1
answer127
viewsA: Validation of <input type="text" required name="name" ng-model="warning.name" />
Anderson, there must be a better way to validate this, since you are using Angular. However, here are some editions that can satisfy you: take out the event onsubmit of <form> and add a name…
-
2
votes1
answer162
viewsA: I need to connect to an external socket server via URL
I solved my problem using the library ratchetphp/Pawl on Github. This library allows PHP connection as a client in a WSS.…
-
2
votes1
answer162
viewsQ: I need to connect to an external socket server via URL
First of all, I know there are thousands of tutorials teaching sockets internet throughout. However, I did not find anything specifically for my difficulty, so I resorted to ONLY. I need to create a…
-
3
votes2
answers258
viewsQ: Is it possible to manipulate SESSION variables to perform SQL Injection?
I’m not an expert on cyber attacks and I have a little doubt about the safety of my projects. Basically one of the ways I prevent injections SQL is creating a function "treatString()", for example,…
-
1
votes2
answers687
viewsA: Send a recorded video via Javascript by input type="file"
I was able to solve it with Wallace’s help. Follow the final code: var form = new FormData(); recorder.camera.stop(); //Objeto Recorder contendo o video gravado via WRTC form.append('video',…
-
1
votes2
answers687
viewsQ: Send a recorded video via Javascript by input type="file"
I am doing a questionnaire system for a client. From this questionnaire some questions should be answered by video. When opening the question page the camera already starts recording the user. I am…
-
0
votes1
answer322
viewsA: What should I return in a REST API when the results are either true or false?
The API I currently use returns NULL in the event of false and 1 in the event of true in a sub array. Returning 404 is not ideal, as it refers to "address not found" and hints that the guy requested…
-
1
votes0
answers351
viewsQ: Too much delay in query only in Mysql
Here in the company we have PG and Mysql databases, these two banks are networked and are identical in both structure and data, where a "robot" mirrors them every 10 min. So far so good... It turns…
-
0
votes1
answer101
viewsA: PHP and Mysql Division without rest in PHP task division
Friend, I did it here, but I couldn’t compile it. I believe it’s enough for you to understand the logic I applied... I hope it helps you! <?php $qtdTarefas = 49; $qtdFuncionarios = 4; $aux = 0;…
-
0
votes2
answers663
viewsA: Left Join or Sub-Select? which one has the best performance?
By Isaac Junior: The mystery of how Sqlserver operates internally is hard to solve. It is quite possible that in some cases the difference is only in syntax and Sql Server operates in the same way.…
-
0
votes2
answers137
viewsA: Read files and automatically put in the desired line;
As you said you will use excel, I recommend developing this in VBA. It will not evade the concept of your problem and is a language with very (very) support of people on the internet. I do not…
-
1
votes2
answers1298
viewsA: Which tool to use for sending SMS in Arabic
Mate, you’ll have to find some company messaging (nexmo, zenvia, etc.) and hire their service. To make the integration with your system there will be all the support of the company you hired…
-
2
votes2
answers4389
viewsA: Force a DIV element into the bottom
Buddy, I had a chat last month and I didn’t bother to leave the messages in the bottom, I just printed them from the oldest to the newest one under the other and I forced the DIV SCROLL always down.…
-
0
votes4
answers1457
viewsA: How to make the screen scroll by clicking on a <a> tag
Buddy, since the other alternatives didn’t work out, you can use Scrolltop together on your onclick. The comic is: $('html, body').scrollTop(0); Suppose the place you want to go down is at 1200px…
-
1
votes4
answers1457
viewsA: How to make the screen scroll by clicking on a <a> tag
Puts the #Tad-review ID in your link reference. Ex: <a href="#tab-review" onclick="$('a[href=\'#tab-review\']').trigger('click'); return false;"><?php echo $reviews; ?></a> / <a…
-
1
votes2
answers1977
viewsA: HTML - Why use, or not use, " /> " to close tags without content?
The idea of closing the tags without children comes from XML, in a proposal to unify the two languages by creating XHTML. However, as far as I know this has not gone forward - nor has this…
-
-1
votes1
answer453
viewsA: Send parameters via GET to a friendly URL
Is that in Rewriterule is already delimiting the url with the '?'. Try using this URL with the '&': http://www.dominio.com.br/pt/products/&q=test Hug!!…
-
0
votes2
answers13
viewsA: I can’t get the file size
Try to put file.files[0].size in place of file.size
phonegap-buillderanswered Alisson Pelizaro 373 -
2
votes5
answers3285
viewsA: Remove the space between two Ivs
There are several ways you can do this. You can put: display: inline-block; width: calc(100% - 1px); in both divs.…
cssanswered Alisson Pelizaro 373 -
2
votes1
answer255
viewsA: Access Database on client machine from Web Application
I don’t know if that’s the need, but if there really is a database server started on each client, you can configure your application to grab the client’s IP and connect the BD on that IP. I did…
-
0
votes3
answers2815
viewsA: How to import an html page into another html?
If you don’t want to import js from w3schools to use the "W3-include-html" attribute that Patricia mentioned, you can do this using the <iframe> same html. Or even use a programming language…
-
0
votes1
answer2811
viewsQ: Upload an entire folder via FTP using DOS
I need to upload a folder (~300mb) that contains files from a framework (Magento) to the cloud server where my application is. The server GUI only allows you to upload files individually and the…