Posts by Wictor Chaves • 8,445 points
320 posts
-
4
votes1
answer1052
viewsA: Return File Name in Batch
Yes, this is a simple example, it takes the parameter "set arg1=%1" and then displays the value "echo %arg1%". or It takes the file path you dragged "set arg1=%1" and then shows the path "echo…
-
1
votes2
answers943
viewsQ: Use of if __name__=='__main__'. Why is the class not instantiated?
There is little time that I am using Python and there are some things that I still get confused, my doubt is in this code: import unittest from selenium import webdriver from…
pythonasked Wictor Chaves 8,445 -
0
votes1
answer199
viewsA: Ajax data - Pagination
What your ajax this doing is calling the page unidade.php and pass as parameter the variable currentPage, if you don’t have a call on the page unidade.php the page code class.crud.php never will be…
-
3
votes2
answers466
viewsA: How to merge two multidimencional arrays, disregarding repeated values?
This code removes all repeated values. <?php $entrada1 =…
-
0
votes4
answers453
viewsA: Table change constraint with subquery
However many functions Mysql has, it was created to be a lightweight bank, and whether or not it would suffer some "losses" before its competitors. And your documentation explains this lack as…
-
1
votes2
answers471
viewsA: Open BLOB in php
Try this way: <?php //header('Content-Type: image/jpeg'); include('conexao.php'); include('funcoes.php'); $sqlImagem = "SELECT foto from combustivel_abastece;"; $consultaImagem =…
-
0
votes2
answers326
viewsA: Force require on display:None
Set width and height to "0", so it won’t be "display:None" and won’t appear the same way. width:0; height:0;
-
4
votes1
answer712
viewsA: Fade effect with CSS3
Your code is missing a key: @-webkit-keyframes fundo { 10%{ -webkit-filter: grayscale(10%); -moz-filter: grayscale(10%); -ms-filter: grayscale(10%); -o-filter: grayscale(10%); filter:…
-
0
votes3
answers1616
viewsA: How to create a button inside an iframe to close it
This code needs to use jquery. If iframe cannot cease to exist, then on the page you call in iframe do the button and put the id of the element you want to remove this way: $(function(){…
-
0
votes1
answer387
viewsA: jquery Dropzone.js with duplicate file check using md5
The process to check using md5 is very time consuming, so first check the size and then use md5.
-
0
votes1
answer384
viewsA: Download an encrypted file from a url
I had to go first to Base64 to "refkey". refkey = base64.b64decode(refkey)
-
0
votes1
answer384
viewsQ: Download an encrypted file from a url
I have this URL, it’s an encrypted Whatsapp image: https://mmg-fna.whatsapp.net/d/f/Agli1Cej_5hAtjpKhGZ3xl2TKU9dWRXcOE_k0KLvJOWZ.enc And this is the key to decrypting:…
-
1
votes1
answer656
viewsA: Select dynamically inserted HTML elements with Javascript
I believe you didn’t post all the code, but I’ve been through a similar problem, when creating a button dynamically the "click" event didn’t work on the buttons created. I tried to take the event…
-
1
votes1
answer1426
viewsA: Foreach inside another array in php
$params['email'] = $PAGSEGURO_EMAIL; $params['token'] = $PAGSEGURO_TOKEN; ... foreach($product_list_array as $index => $item) { $item = 'itemId' . $index; …
-
2
votes2
answers910
viewsA: How to call a variable from others?
You can call the instance using a string: Dim NameOfMyClass As String = "ConsoleApplication1.MyClassA" Dim MyInstance As Object = Activator.CreateInstance(Type.GetType(NameOfMyClass))…
-
1
votes1
answer174
viewsA: While, limit the result
Try to get the timestamp month $php_date = getdate($timestamp); $mes = date("m", $timestamp); So every change of the month you create the line break.
phpanswered Wictor Chaves 8,445 -
-1
votes1
answer302
viewsA: Problem running SELECT in a phpmyadmin table
"... but showing only the contents of the first three columns of the table ...", It may be a problem with the coding of phpmyadmin, try using the command "SELECT * FROM Score" in the terminal and…
-
0
votes1
answer2367
viewsA: PHP foreach Multidimensional Array
I believe this makes it easier to maintain: <?php $carros["toyota"]["modelos"] = array("corrola","allion","Ranx","mark"); $carros["Mazda"]["modelos"] = array("Atenza","Demio","MPV");…
-
0
votes2
answers1127
viewsA: Multiple downloads with PHP and mPDF
It’s because of this line: $arquivoHtml = str_replace('%TESTE%', $teste, $arquivoHtml); you have to replace the name here first: __SYSTEM_URL__.'/templates/teste.html' And then add to…
-
0
votes1
answer387
viewsQ: jquery Dropzone.js with duplicate file check using md5
If you use a simple check in the "addedfile" event of the "Dropzone" component it works normally by sending a file, or adding several at a time and also selecting several and sending at once.…