Posts by Diogenes Silveira • 179 points
11 posts
-
0
votes4
answers426
viewsA: Contest question: logic error and semantic error?
The problem: The mean cannot be an integer because if the sum of n1 and N2 results in an odd number, the mean will not be an integer. I believe that this is a mistake of logic too. I found this in…
-
5
votes2
answers5686
viewsA: What is the difference between htmlspecialchars() and htmlentities()?
They do the same thing except for a few characters " < > & " CASE 1: $html = "onclick='location:/?page=1&cat=3'" echo htmlspecialchars($html); result:…
phpanswered Diogenes Silveira 179 -
1
votes1
answer330
viewsA: Total in shopping cart
Dude, I ran a test on your code using the website http://phptester.net/ and worked normally. Obs: 1 - In good practice programming never use special characters such as "ç" in variables 2- Before…
phpanswered Diogenes Silveira 179 -
0
votes2
answers57
viewsA: How do I add files that were uploaded to the git repository?
Have you checked at the root of the project if you have any files called ".gitignore" This file may be ignoring zip files (*.zip) or else the folder where the upload is done!
gitanswered Diogenes Silveira 179 -
2
votes1
answer37
viewsA: Placing a form-inline within a panel-group and continuing all elements online
If you want to align H4 it has to be inside the form and with the form-inline class as well. Example: https://jsfiddle.net/mzygnyb2/1/…
-
1
votes1
answer1277
viewsA: optional mask caractére with Jquery maskedInput does not work
By your example it was meant to work. I have worked on several projects and whenever we use a mask plugin, we give preference to http://igorescobar.github.io/jQuery-Mask-Plugin/ This I guarantee,…
-
1
votes2
answers331
viewsA: Synchronize objects of the same Array with the index of different pages
Well, from what I understand, you are filtering to appear only the item with that specific id, if you want it to appear all just remove the filter, in case it would look like this: <div…
-
1
votes2
answers2266
viewsA: Publish application with Entity Framework + Mysql
I’ve suffered enough with it! At Locaweb, it only works with the Mysqlconnector version below 6.3 or 5.3, I don’t remember right! Just download the old Nector, replace the dll, and change their…
-
0
votes3
answers719
viewsA: Adapt JS Code to IE8 and IE9
The last time I did I ended up hiding when I was the ie8 in your case would do more or less like this: function createObjectURL ( file ) { if ( window.webkitURL ) { return…
-
2
votes3
answers843
viewsA: Hide/edit the <select> appearance
Hello, leave your code as is, unfortunately this is a bug of the new Mozilla 30+ Look https://bugzilla.mozilla.org/show_bug.cgi?id=649849#c59 https://wiki.mozilla.org/B2G/Schedule_Roadmap But for…
-
1
votes1
answer1275
viewsA: Search for element in an array using array.foreach
I don’t understand what you wanted to do in your role, but in case you want to compare if it contains an item in an angular foreach, try to do so: $scope.allow = [{"url":"google.com"},…