Posts by Guilherme Nascimento • 98,651 points
2,383 posts
-
1
votes1
answer1047
viewsA: html and body height 100%
Yes the solution can be place height: 100%; in html, body, because this is not a condition of the flex but of the HTML5 DOCTYPE, formerly in the HTML4 the DOCTYPE Transitional did not need, assumed…
-
2
votes1
answer164
viewsA: Webclient.Downloadfile(Address, Filename) Doubt using variable
Probably this: string UltimaVersao = DownloadVersion.Split('\n')[0]; It’s returning something you can’t imagine, you probably hope for something like 1.0.1, but maybe this is returning something…
-
4
votes1
answer54
viewsA: How to send more than one value by Return
You can use an array on return: $char = $pdoG->prepare("SELECT * FROM u_hero WHERE id_idx = :id"); $char->bindValue(":id",$id); $char->execute(); return array( 'datos' =>…
-
2
votes1
answer715
viewsA: Google Map not shown
The grid system must be conflicting with the height of the map, change this: <div class="row"> <div id="map" class="col-6"></div> <div class="col-6">teste</div>…
-
0
votes1
answer49
viewsA: How do I change screen content using php
If I understood what you want is that when after the person chooses an option that option is saved, this is it? And it also has what @Paulo said, exchange the form for: <form action=""…
phpanswered Guilherme Nascimento 98,651 -
0
votes1
answer559
viewsA: Qstring accents in Qt 5.9 results in bizarre characters
There are 2 reasons why this occurs: it is because QString internally works with latin1, the other reason is that All files generated by Qtcreator are encoded in UTF-8, or even the .cpp and .h So…
-
5
votes1
answer5075
viewsA: I need a movie API that returns Json
There is the The Open Movie Database, is a Restful service that returns movie data from different sources, to make a data query can use so: http://www.omdbapi.com/?t=The+Prestige&apikey=<sua…
-
1
votes1
answer597
viewsA: Save the value of a variable on the outside and then import it in Batch
Yes it is possible, just do so to save: set /a EXEMPLO=1 >arquivo.txt echo %EXEMPLO% And to read in another .bat do this: set /p OUTRA_VARIAVEL=<arquivo.txt echo %OUTRA_VARIAVEL%…
-
1
votes2
answers1100
viewsA: User limit in a PHP application
Question: I found that it is possible to limit the maximum number of users online on the system via apache(httpd.conf) No, this limiting sessions in apache is not done for users, the limits in…
-
1
votes1
answer70
viewsA: Problems with using Return
I believe you want to do this: def foobar(): print(1 + 1) n = input() print(2) return n # retona aqui bar = foobar() # Pega o valor de n e coloca na variável baz print(baz) # exibe baz if baz in…
python-3.xanswered Guilherme Nascimento 98,651 -
2
votes1
answer211
viewsA: How many threads should I split a task into?
The cores/colors are not directly related to "your Threads", nor does it mean that if you use 4 threads it will run each one on a different core, who manages it is the operating system and not its…
-
1
votes2
answers1138
viewsA: SOAP client.php
Missing one ; at the end of: echo $client->soma(3, 5) . "<br />" Should be: echo $client->soma(3, 5) . "<br />"; Then this error may be occurring: Parse error: syntax error,…
-
2
votes4
answers814
viewsA: Why can’t we return a void call in a void return waiting method?
According to the documentation link void (C# Reference) , when you use void it specifies that the method will not return any value The void is also used in a unprotected context to declare a pointer…
-
2
votes1
answer565
viewsA: webcam "You have denied camera access" Chrome + php
The message in particular: You have denied camera access Indicates that you previously denied camera access to previously for the specific domain, it is not necessarily connected to HTTPS, to…
-
0
votes1
answer168
viewsA: Problem with Domdocument Openssl
The problem is the address certificate https://sistemasweb.sefaz.ba.gov.br/sistemas/DTE/Contribuinte/SSL/ASLibrary/Login, it is invalid, but it can also occur, even if they fix the site, your PHP…
-
1
votes1
answer1237
viewsA: how I style H1 with an image
The author problem was a BUG in Chrome Beta, as himself commented: I managed to solve friend, I used the beta Chrome, then I changed gave it right The image in other browsers worked perfectly, but…
-
2
votes2
answers595
viewsA: Height x Width - Javascript - External Image
Can use new Image (https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/Image) To get the original image width and height use: naturalWidth naturalHeight As described in…
-
3
votes1
answer1642
viewsA: Phpmailer works only on some versions
You probably downloaded Phpmailer from an unofficial source or from a very old source, so PHP7 has changed a lot, you have to download Phpmailer from the correct source. Download from this link…
-
1
votes3
answers687
viewsA: Bundleconfig.Cs is even needed
Webapi does not use BundleConfig.cs "directly", just for the record due to the tag you added Asp.net-web-api, Webapi is for creating services with REST, and can have the Json or Xml format in the…
-
7
votes2
answers39510
viewsA: How to remove accents and other graphic signals from a Java String?
If you are Java7+ you can use this solution found in Soen https://stackoverflow.com/a/1215117/1518921 First import this: import java.text.Normalizer; import java.util.regex.Pattern; Then add this to…
-
4
votes2
answers723
viewsA: How to post without reloading the page?
This $.post nay is a Javascript function, is a function that is part of a lib/library for Javascript that is added manually by you. This library/lib may be jQuery or it may be Zepto (or other…
-
1
votes1
answer162
viewsA: Mysql lost connection in While PHP
The use of init_set will not always have an effect on the php.ini What I think is your problem is that you have created a query that is bringing many results, because you are probably not using…
-
0
votes1
answer44
viewsA: Invalid argument for chmod()?
But there’s not much point in using chmod in a file that is in the folder ./tmp operating system, you must first use the move_upload and then apply chmod in the new destination. It would also be…
-
3
votes1
answer1354
viewsA: How do I get value from the first line of a Text(txt) file?
Try this: with open('lista.txt', 'r') as f: primeira_linha = f.readline() The with will use the file and close and the readline will read the first line.…
-
1
votes1
answer539
viewsA: Using the Select 2 plugin - How to disable select click
Select2 uses jQuery, so you can use the delegation to control and apply the preventDefault, being like this: $(document).on("click", ".select2-result-repository button", function (e) {…
-
1
votes1
answer95
viewsA: How to Deploy Api with Composer / Slimframework
The way you organized the folders and the index.php, yes just send the contents of the folder Backend via FTP to the "root" folder of the HTTP server. On SHARED servers and VPS is usually the folder…
-
3
votes1
answer164
viewsA: In an Ajax XHR request, in HTTP_ACCEPT what is the meaning of q=0.01?
The q= is the "weight" factor, or is used to indicate the priority for the server (back-end), it is important to note that this can be used in other headers besides the Accept as an example:…
-
3
votes1
answer48
viewsA: Use $_SESSION value in function
It’s probably the lack of quotation marks: var select = <?php echo $_SESSION['aprovado']?>; Should be: var select = "<?php echo $_SESSION['aprovado']?>"; And one detail quoted by…
-
0
votes1
answer94
viewsA: How to catch dyndns via php
Use the gethostbyname, it will return the IP (Ipv4) corresponding to the address, example: <?php $ip = gethostbyname('meu_host_foo_bar.dyndns.org'); echo $ip; An important detail is that if the…
phpanswered Guilherme Nascimento 98,651 -
1
votes3
answers434
viewsA: Synchronous query in Sqlite using Ionic
I could use the idea of @LINQ, but made the opitional callback: public requisicaoXPTA(callback) { this.database.executeSql("SELECT * FROM tbl_xpta", []).then((data) => { if (callback)…
-
0
votes1
answer192
viewsA: Charset setting difficulty in PHP
The str_split does not work with Unicode Use preg_split('//u', $texto, null, PREG_SPLIT_NO_EMPTY); and save the document as UTF-8 NO GOOD, thus: <!DOCTYPE html> <html lang="pt-br">…
-
2
votes1
answer65
viewsA: "Automatic" footer
Identical to what I suggested in Footer always at the bottom of the page, just change the selectors for your elements. You’ll have to match position: relative with absolute, is not at all obscure,…
-
2
votes2
answers819
viewsA: Do not apply filter css to child element
No, the blur is a filter, so there is no way to undo, note that even applying filter: none will not work, see an example just to understand the problem (This is not the solution, it’s a test): html,…
css3answered Guilherme Nascimento 98,651 -
3
votes1
answer243
viewsQ: How to validate a script in PEP8?
I noticed some questions that asked about PEP8, something like "in this way is correct?", recent example: Problems with PEP8 indentation rules Then I wondered, is there any way to know if the code…
-
3
votes1
answer243
viewsA: How to validate a script in PEP8?
There is the https://github.com/PyCQA/pycodestyle, to install via pip use the following command: pip install pycodestyle Example of use in a file with "problems": pycodestyle --first…
-
0
votes1
answer142
viewsA: Images with content-type as text/html, how to solve?
I think it’s a typo, because the images are accessing this: /Home/app/views/imgs/... Instead: /app/views/imgs/... Correcting: public function index(){ include 'app/views/index.php'; $images = new…
-
2
votes2
answers57
viewsA: NAN as a result of a function
This: var pm = parseInt().PMINT; this var dm = parseInt().DMINT; And this var dm = parseInt().HDINT; They just don’t make sense, the .PMINT, .DMINT and .HDINT are not the same thing as PMINT, DMINT…
javascriptanswered Guilherme Nascimento 98,651 -
5
votes2
answers906
viewsA: How to avoid user logout when closing your browser with PHP?
Every session is a cookie, but the cookie data is saved on the server instead of the browser, the session cookie is like a token You can use the session_set_cookie_params void…
-
1
votes3
answers1096
viewsA: Getting a binary file and saving it again
Probably reading is missing something, you can try reading the contents using this: import java.nio.file.FileSystems; import java.nio.file.Files; import java.nio.file.Path; ... Path p =…
-
1
votes2
answers3130
viewsA: Python - Module: Tkinter - window manipulation
To remove edges/decoration from a window in the TkInter use the method: .overrideredirect(True) Example of use: from tkinter import Tk, Label, Button class Exemplo: def __init__(self, aplicacao): #…
-
0
votes2
answers3107
viewsA: How to generate executable program . jar in VS Code?
If you have an updated version of Visual Studio Code you can configure in task.json. First you need to create a "project folder", click the button Add workspace, as in the image: You may notice that…
-
3
votes1
answer8802
viewsA: Voice recognition in python
There is the Speechrecognition supporting the following Apis/engines: CMU Sphinx (works offline!) Google Speech Recognition Google Cloud Speech API Wit.ai Microsoft Bing Voice Recognition Houndify…
python-3.xanswered Guilherme Nascimento 98,651 -
3
votes2
answers2068
viewsA: Access localhost
Apache is a service that uses the HTTP protocol (which is based on TCP) SMTP is a separate service and protocol, which has nothing to do with HTTP and websites IMAP and POP3 are other services and…
-
2
votes1
answer973
viewsA: Insert html code into markdown file
I believe that most (probably none) cannot embark a <iframe>, that is to say Youtube player it won’t work directly, what you can do is put an image with a link to the Youtube address, you can…
-
1
votes2
answers139
viewsA: Force file . EML open directly in e-mail client
This is just an additional to the answer. A cool tool for this would be the http://filext.com, although having a Unix-based or Linux-based system is possible to do this via the command line.…
-
1
votes1
answer1565
viewsA: Blank iframe
This problem has nothing to do with SSL/HTTPS, the error message is: Refused to display 'https://sandbox-app.vindi.com.br/customer/bills/6740?token=1fd4b0cc-2f66-4b3e-9bac-7c9988e64646' in a frame…
-
8
votes1
answer484
viewsA: Is PHP considered open source?
Yes it is open-source, but it is licensed under their own license The PHP License, version 3.01, which implies several issues that can be "legal", including the use of the name "PHP", I can not…
phpanswered Guilherme Nascimento 98,651 -
3
votes2
answers457
viewsA: Use "left: -9999px" instead of "display: None"? But why?
So I guess properties like: left: -9999px used to move back from the screen (or from the box-model of an element) one or more elements text-indent: -9999px used to backward the screen text (or the…
-
6
votes2
answers949
viewsA: How do I make IFRAME editable?
Use the designMode=on, but this must be defined within the document inside the iframe, set directly in the element <iframe> won’t work, so for example create an iframe like this: var editor =…
-
1
votes1
answer136
viewsA: How to send a GIF on Whatsapp programmatically on Android?
According to this answer https://stackoverflow.com/a/39656904/1518921 can do this (but of course it will depend on the version of Whatsapp) private void shareGif(String resourceName){ String baseDir…