Posts by Guilherme Nascimento • 98,651 points
2,383 posts
-
3
votes1
answer219
viewsA: How to know the number of possible occurrences found by the group() method of the Matcher class?
According to this reply from Soen the most you can achieve before Java 9 is to create a method or use replaceAll to rely on the method String.split Before the Java 9 You can add your class or create…
-
0
votes3
answers158
viewsA: Stylize overflow Hidden
Instead of trying to create a custom select from scratch, because it doesn’t just use a real select and customize it using some jQuery plugin (since you’re actually using jQuery), a very good…
-
1
votes1
answer254
viewsA: Image is visible before Animate.css and wow.js load
Since you didn’t post the code there’s no way to know where you went wrong, so I’m risking you kicking a few hypotheses: You forgot the new WOW(). init(); The new WOW().init(); should go at the…
-
0
votes2
answers130
viewsA: Error in Javascript
That makes no sense: if(!is_null($resultado)){ The mysqli_query will never return NULL, it will always fall in the same if, even if it gives error, in case it returned false and how false is not…
-
2
votes1
answer387
viewsA: Font icons BOOTSTRAP/CSS
To implement on your site you can use the fontawesome that today I believe to be the most complete: http://fontawesome.io Download http://fontawesome.io/assets/font-awesome-4.7.0.zip After…
-
3
votes3
answers947
viewsA: Insert PHP into Javascript
PHP does not interact with front-end, calling a Javascript function so it will never work: function continuar_produtos() { <?php //Codigo PHP aqui ?> } PHP has already been run before the page…
-
3
votes1
answer34
viewsA: I can’t get up to the server
The problem is that FORM can’t go in form: <!-- form fora ---> <form action="cadastralicitacao.php" method="post"> ... <div class="form-group"> <!-- form dentro ---> <form…
phpanswered Guilherme Nascimento 98,651 -
0
votes1
answer38
viewsA: How to identify the data type returned from a controller?
You can use the instanceof of PHP if ($objeto instanceof \Illuminate\Http\Response) { ... faz algo aqui ... } else if ($objeto instanceof \Illuminate\View\View) { ... faz algo aqui ... }…
-
2
votes1
answer1580
viewsA: Error in php Mailer
This is not a port issue, this is a security certificate issue if your server by default has not configured SSL, mainly from PHP 5.6: http://php.net/manual/en/migration56.openssl.php In php.ini one…
-
13
votes1
answer11212
viewsA: What exactly is a CLI?
CLI which means command-line interface (command line interface), it is briefly an interface that supports passing parameters via command line on terminals and/or similar. In other words, it is a…
terminologyanswered Guilherme Nascimento 98,651 -
0
votes1
answer1920
viewsA: How to open PDF in Delphi’s Webbrowser?
PDF.js will not open in the protocol file:///, due to security issues with XmlHttpRequest (ajax), the only way I see of making this work is to create a protocol of its own (if possible) in Delphi,…
-
4
votes2
answers216
viewsA: How to fix HTTP 500 error?
Missing one ; at the end of: $array = mysql_fetch_array($query) Change to: $array = mysql_fetch_array($query); I tested the rest and it looks normal. Observing: The functions as mysql_query,…
phpanswered Guilherme Nascimento 98,651 -
1
votes2
answers2684
viewsA: Read . js file and write to page using javascript
Yes it is possible to read an Excel using Javascript, as long as you use the Javascript API File or the . xls(x) is on the same server as your page, so you would use Ajax to pick as string. After…
-
1
votes1
answer86
viewsA: IE7 compatible CSS alternative
I’ll be honest, IE-7 is well outdated, if it were IE-8 would still be able to say something, because it is able to find users of Winxp and Winvista, although generally use alternative browsers or…
-
1
votes2
answers47
viewsA: Difficulty with responsive
It is because there is simply no rule for your columns inside the media-query (@media screen and (max-width: 600px)), that is if you didn’t "program" to do the "action" how do you expect it to work?…
-
4
votes1
answer377
viewsQ: Is it possible to select all Edittext text when in focus?
I have a EditText and when I use: editText.requestFocus(); I’d like you to select the whole text, it’s possible?
-
5
votes1
answer377
viewsA: Is it possible to select all Edittext text when in focus?
There are two ways, the first is to change the property of the EditText in the xml layout and add: android:selectAllOnFocus="true" The other is via script, no onCreate you set to select everything…
-
4
votes1
answer56
viewsA: How to know if an object can be focused
You can check the visibility, as I did in this answer /a/137851/3635 function getStyle(elem, prop) { if (elem.currentStyle) { //IE8 return elem.currentStyle[prop]; } else if…
javascriptanswered Guilherme Nascimento 98,651 -
0
votes1
answer280
viewsA: Paper limit size using printer_draw_text php
The function printer_draw_text works like this: printer_draw_text ( resource, string, posiçãoX, posiçãoY) You are increasing from 40 by 40 and probably after an amount of text you need to use:…
-
1
votes1
answer674
viewsA: When generating worksheet save it to the server
Just remove the: header('Content-Disposition: attachment;filename="planilha.xls"'); And change this: $objWriter->save('php://output'); For something like this:…
-
1
votes1
answer1200
viewsA: Send data without PHP refresh
As has been said in other posts and for those who are starting with HTML, within a specific HTML page can never repeat Ids, the meaning of ID is probably: IDentity Document (translated identity…
-
6
votes2
answers303
viewsA: Download attribute, new line in text file
Just use escape (since it doesn’t have accents or anything like that), it should look like this: If you have to work with accents or have spaces or the sign + you may have to use encodeURI or…
-
0
votes1
answer62
viewsA: Error inserting into MYSQL via PDO
As single quotes are not used for table names: 'formulariodadoscadastrais' You can use: `formulariodadoscadastrais` Or not to use: formulariodadoscadastrais Crase accents are used only when there…
pdoanswered Guilherme Nascimento 98,651 -
9
votes2
answers265
viewsA: When is a default argument evaluated in Python?
A function call is expected to create new objects for default values, but this is not what happens. Default values are created only once, when the function is defined. If that object is changed,…
-
3
votes7
answers49407
viewsA: How to install PIP in Windows 10?
It is very likely that you have installed Python inside the folder C:\Programs and Files or C:\Programs and Files (x64) (or another folder without write permission), i.e., your user is not allowed…
-
1
votes1
answer626
viewsA: Generate xml automatically
First that your foreach is doing nothing and second that the lista_xml is never called, your code does nothing simply, now the problems grave, single quotes do not interpret variables:…
-
2
votes1
answer107
viewsA: Login system giving error!
Your code is many errors, first one is missing ; and in the end: $conexao = mysqli_connect("localhost", "....", "....","....") Do so: $conexao = mysqli_connect("localhost", "....", "....","....");…
-
3
votes2
answers419
viewsA: how to correctly write php inside javascript
PHP does not communicate directly with the front-end, index is a variable of Javascript and not PHP, so PHP has already been processed and has already been executed, PHP will search index as if it…
-
1
votes1
answer3669
viewsA: Change font color Javascript/HTML/Jquery
Like you used to background: .css({"background": "COR DE FUNDO"}); Can use for font color: .css({"color": "COR DAS LETRAS"}); If you need to change both at once do: .css({ "background": "COR DE…
-
0
votes1
answer77
viewsA: How to use Jquery UI with Jquery 3.1
The .andSelf() was discontinued in jQuery 1.8, details: https://api.jquery.com/andself/ Use in his place addBack If it’s a bug in jQuery ui try upgrading to 1.12.1 (stable current version), if it…
-
3
votes1
answer651
viewsA: Set cursor focus position in Edittext
It is possible using EditText.setSelection + editText.getText().length() Just run: editText.setSelection(editText.getText().length()); You can arrive when the field is in focus and fire the…
-
1
votes2
answers185
viewsA: The mbstring is Missing - NGINX PHPMYADMIN PHP 7.0.23 CENTOS 7
I think in Centos just type: Heed: use this only if you have installed php via official repository, otherwise ignore this step yum install php-mbstring However if you are installed or you are not…
-
0
votes1
answer403
viewsA: How to do internal searches on the site by google via javascript
You can use the element gcse:search with the attribute as_sitesearch, for example: <gcse:search as_sitesearch="www.site_do_arthur.com"></gcse:search> Documentation:…
-
1
votes1
answer376
viewsA: Save Image Coming from Upload in a PHP variable
The server along with PHP before running your script has already done the "parse" of PAYLOAD and saved the image in the folder ./tmp configured by php.ini in upload_tmp_dir, then you can upload…
phpanswered Guilherme Nascimento 98,651 -
1
votes1
answer803
viewsA: Calling Javascript function from Java (Webview android)
There are two ways Protocol javascript: You can perform your function like this: webView.loadUrl("javascript:fechaCarrinho()"); Webview.evaluateJavascript Or you can use the…
-
8
votes1
answer4692
viewsA: Laravel no servidor Locaweb: Unexpected Character in input: ' (ASCII=92) state=1
Messages like: Warning: Unexpected character in input: '\' (ASCII=92) state=1 And: Parse error: syntax error, unexpected T_STRING Indicate two possibilities, either you edited something you…
-
0
votes3
answers1359
viewsA: How do I run the script after loading the page
As you are using jQuery/Zepto you can use the delegation of events and instead of executing at all times it would be enough to do so: $(document).on("click", "#capturarFoto", function () {…
-
2
votes1
answer1529
viewsA: Recover json ajax data
The "nome" this inside the key data and the key data is inside the variable of the same name (data), you may have imagined that the variable already represented the key, so instead of var nome =…
-
1
votes2
answers939
viewsA: Error: mysqli_fetch_assoc() expects Parameter 1 to be mysqli_result, Boolean Given
First, columns cannot be enclosed in single quotes: ... WHERE '".$coluna."' Second in doing this: LIKE '%'".$pesquisa."'%' It’s probably generating something like: LIKE '%'exemplo'%' In other words,…
-
6
votes1
answer284
viewsA: Import Python DLL into C++
Python is not a language "compiled", is a language "interpreted", or even programs like py2exe or cx_freeze send a stand-alone version of Python along with the version "python-compiled" in EXE and…
-
3
votes4
answers846
viewsA: How to find numbers larger than X in a list
To simplify you can use like this: minha_lista = [1,2,3,4,5] maior_que = 2 filtrados = [x for x in minha_lista if x > maior_que] #exibe os elementos print(filtrados) #conta os elementos…
pythonanswered Guilherme Nascimento 98,651 -
0
votes1
answer1920
viewsA: How to read web service XML on VB6?
You can use XMLHTTPRequest, that works well similar to that of javascript and to parse XML can use: Set doc = CreateObject("MSXML2.DOMDocument") doc.loadXML(xhr.responseText) And Xpath can be useful…
-
4
votes1
answer337
viewsA: Problems to display a foreach (php) inside an html code
PHP is PHP, HTML is HTML and string is string. Foreach will never perform within the string, you have to concatenate, in PHP to do this use .= thus: $foo = 'Olá '; $foo .= 'Mundo'; echo $foo; //Vai…
-
1
votes2
answers668
viewsA: Using <pre> Inside a PHP TAG of an html value
The <input type="text"> accepts only one line, and there is no way to add HTML within value: <input type="text" value="<pre>olá Mundo</pre>"> And <br> it won’t work…
-
5
votes2
answers3898
viewsA: How to make a date field containing only Month and Year Html
With HTML5 can use the type="month" <input type="month"> Supported by browsers: Chrome 20+ Edge 12 Opera 10.62+…
-
5
votes1
answer790
viewsA: Check whether the field is null in java and mysql
In java use: String descricao = result.getString(2); if (descricao == null) { //Nulo } else { //Não nulo } If you want to ignore rows containing a null column in mysql you can use IS NOT NULL thus:…
-
2
votes2
answers157
viewsA: Limit characters does not work after using Ctrl+ V
I believe if I perform a unique function and check with .summernote('code') the amount of text, to remove the markup and count use Regex: .replace(/<[^>]+>/g, "") $(document).ready(function…
javascriptanswered Guilherme Nascimento 98,651 -
2
votes1
answer1935
viewsA: Configure oci8 in xampp php7.18
You downloaded the incompatible/wrong client to use with this PHP dll, possibly the architecture of your PHP and the Oracle client are different, for example php is 64bit and the client is 32bit.…
-
2
votes1
answer859
viewsA: Force download of multiple dynamically generated files with Phpexcel
First, you cannot make multiple responses to an HTTP request: foreach ($sheets as $file) { ... header('Content-Type: application/vnd.ms-excel'); header('Content-Disposition:…
-
1
votes1
answer167
viewsA: Generate default . xls column file
Yes, just clone the node with .cloneNode(true) and make a recursion to remove the elements, like this one using jQuery or need the recursion, can elimitar the first and last column of each row used…