Posts by Valter Junior • 83 points
12 posts
-
0
votes1
answer184
viewsA: Sublimetext error
In full 2021 and this error still persists. Actually now the problem is also happening with the Java Script Next - ES6 Syntax package (…
-
0
votes6
answers6752
viewsA: Get the list of prime numbers smaller than N
A different solution: VLimite = 1000 VPrimos = [] VComposto = [] VLimite = VLimite + 1 for i in range(VLimite): if (i + 1) == 1: VComposto = VComposto + [i + 1] if (i + 1) not in VComposto: if (i +…
pythonanswered Valter Junior 83 -
0
votes2
answers624
viewsA: php cannot copy remote file, but download it from the browser
The question is old, but the solution is new (10/12/2019): $VContext = stream_context_create(["http" => ['method' => 'GET', 'header' => ['Cookie: security=true'."\r\n", 'User-Agent' =>…
-
0
votes7
answers59028
viewsA: Refactoring function to remove punctuation, spaces and special characters
I developed a different way to remove all special characters and accents. <?php $VString = "Matan-zá@Ç/_454ç8"; echo "Com caracteres especiais e acentos: " . $VString . "<br>"; $VString =…
-
1
votes0
answers519
viewsQ: How to find the density (PPI) of the image?
I’ve seen a lot of people with the same doubt, but I can’t find anything solved. If you open an image in GIMP and/or Photoshop and click on Resize Image it is possible to discover the resolution of…
-
4
votes1
answer1426
viewsQ: Find out which image size was inserted by input file
I am creating a system to organize the images of a site, that is, I will store information such as name, extension, size, height, width, ... and I am having difficulties to get the data of height…
-
0
votes3
answers2363
viewsA: Enable 'Access-Control-Allow-Origin' in jQuery [xml]
If create a php file and do: <?php call_user_func($_POST['funcao']); function cotacao(){ /* Faço load do arquivo xml */ $xml =…
-
1
votes3
answers2363
viewsQ: Enable 'Access-Control-Allow-Origin' in jQuery [xml]
I don’t have access to .htaccess server and need to enable Cors on jQuery The code to access Webservice is: $(document).ready(function(){ jQuery.support.cors = true; $.ajax({ url:…
-
0
votes1
answer140
viewsA: Search with Jquery does not work in Firefox
I decided to do the search differently and solved the problem: $(document).on('keyup', '#iPesquisa', function(){ $("#tabela tr").hide(); $("#tabela…
-
0
votes1
answer38
viewsA: I’m not able to load properly
I was able to solve the problem and improve this code. Sharing: arrayJanela = [];//Variavel global localStorage.setItem("zIndex", 3);//Set do primeiro zIndex $(document).ready(function() { $("#menu…
jqueryanswered Valter Junior 83 -
0
votes1
answer38
viewsQ: I’m not able to load properly
The system does the LOAD, but when I click a second time on any link the same duplicates the link and if you click again it quadruples and so on and the exit button only works on the first page that…
jqueryasked Valter Junior 83 -
0
votes1
answer140
viewsQ: Search with Jquery does not work in Firefox
I created a code to search for information in a table and the code just doesn’t work in Firefox The error that appears in firefox is: Error: Syntax error, unrecognized Expression: Unsupported…