Posts by Guilherme Nascimento • 98,651 points
2,383 posts
-
5
votes3
answers713
viewsA: How to update page title with notifications?
They may be a problem in PHP if you are not using the sum by Javascript, but if you are in front-end then I will explain what may be occurring. Supposing the code actually is this (since what was…
javascriptanswered Guilherme Nascimento 98,651 -
0
votes1
answer1137
viewsA: Microsoft Vbscript Runtime error '800a01a8' Object required: '[Undefined]'
I believe the correct method is Items and not Item. I mean that .Item can’t other .Item. So this: ' Recuperando os Dados Digitados ---------------------- num_rc =…
-
0
votes1
answer23
viewsA: Server hosted application layout
By your comment the problem is that here is: 52.88.183.202/Avaliacao/Content/bootstrapcss.map When you should be calling me that: 52.88.183.202/Avaliacao/Content/bootstrap.css.map The problem is how…
-
1
votes1
answer1323
viewsA: Click on button does not work
I believe the event: driver.find_element_by_class_name(' x-form-file-input').click Should be called that .click() and the method find_element_by_class_name search tags with attribute class and not…
-
3
votes1
answer502
viewsA: Python and Selenium: Syntaxerror: invalid syntax
Whenever you see that the problem is in a row look also in the previous lines, usually errors of Parser (Syntactic analysis) may be in these lines above, in your case the problem is here:…
-
2
votes7
answers1134
viewsA: Select a file by name in PHP
I don’t understand if you want to fetch the files, or if they are already listed and you want to extract the number ahead. If you want to extract the number you can use the explode so (this way the…
-
13
votes2
answers1166
viewsQ: Is it acceptable to use <H2>, <H3>, <p>, <div> tags within links/anchors (<a></a>)?
It is acceptable in question SEO and semantics to use tags like <h2>, <h3>, <p> and <div> inside <a href=""></a>? I noticed that to make items on a page people…
-
0
votes1
answer51
viewsA: Configure register_tick_function() in xampp
I don’t know what your code is, but it’s likely you haven’t declared the ticks=1, the documentation in Portuguese does not present a correct example, according to the documentation in English:…
phpanswered Guilherme Nascimento 98,651 -
5
votes2
answers384
viewsA: "Text" type input similar to the Stack Overflow tag system
The element that looks like a <input> is actually a <div>, the <input> this inside it and the tags that appear are Divs inserted with document.createElement. Autocomplete (when…
-
3
votes1
answer585
viewsA: Is using get_magic_quotes_gpc with stripslashes a bad practice for compatibility?
The preferable is to actually somehow inform the person who is using the script that there is some configuration problem, the reason is the performance. Imagine that the script is receiving a lot of…
-
3
votes1
answer585
viewsQ: Is using get_magic_quotes_gpc with stripslashes a bad practice for compatibility?
The magic_quotes_gpc is obsolete since the PHP5.3 and removed in PHP5.4, but still can be enabled in 5.3, I know it is unlikely a production server present such a configuration, but the doubt here…
-
2
votes2
answers214
viewsA: How do I do other Jquery effects?
jQuery only has two effects by default, however using jquery-ui it is possible to add a number of effects like: Blind, Bounce, Clip, Drop, Explode, Fade, Fold, Highlight, Puff, Pulsate, Scale,…
-
2
votes2
answers360
viewsA: Page mode landscape does not fit
So as said the problem occurs on the Desktop too, this is due to the height: 100%, because it does not work with the maximum page height but view-port, a simple way to solve would be to use the…
-
1
votes2
answers109
viewsA: How to fix "dancinha" (Flicker) of icons Webfont when doing page Load?
You can try one of these options <link> with pre-effice inside <head>: <!doctype html> <html> <head> <link rel="prefetch" href="(url)"> </head> So being the…
-
6
votes2
answers5403
viewsA: How to find out which extensions are installed in my PHP?
Terminal Apart from the quoted terminal command in the other answer: $ php -m Using php There is still the option to do it in PHP, which is nice to display maybe on a Dashboard or if you have…
phpanswered Guilherme Nascimento 98,651 -
15
votes2
answers7415
viewsQ: Why use error_reporting with display_errors and display_startup_errors?
I’ve been using only for a long time: error_reporting(E_ALL|E_STRICT); To debug scripts (note that I use E_STRICT only to maintain compatibility with older versions of PHP), but I noticed that other…
-
1
votes1
answer47
viewsA: How to take 0. out of PHP round
I don’t know if to say what the best way to do it is because I don’t know what the goal will be, since your code seems to me something with a percentage but I can’t be sure what you really want to…
phpanswered Guilherme Nascimento 98,651 -
3
votes2
answers1807
viewsA: "Class 'Mongoclient' not found" error
In the documentation of php.net there is the following warning: Heed: The extension that defines this class is obsolete. Instead you should use the extension Mongodb. Alternatives for this class:…
-
1
votes1
answer614
viewsA: Access /index.php as /index (without ".php")
It wouldn’t just replace . html with . php: RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /login.php [L] RewriteRule ^index$…
-
1
votes1
answer133
viewsA: Remove "www" from domain by forwarding 301
Note: At first I thought it was a duplicate of How to redirect from non-www to www? but while reading I noticed that the question here is to remove "www" and not add, in the other question I did not…
-
13
votes2
answers8715
viewsA: What is the use of using foreign keys?
Besides help describe the relationship in the models, foreign keys are mainly used to maintain data integrity, ie imagine that you have two tables linked by a foreign key and have data in the table…
-
0
votes2
answers1563
viewsA: How do I email multiple people with Phpmailer?
The method ClearAddresses clears all addresses, so I believe in case you were trying to use it to clear repeated addresses, but as the documentation it has no parameter:…
-
6
votes1
answer3723
viewsA: How to see on the desktop the mobile version of this site that is not responsive?
It’s not necessary extensions or plugins, Chromium-based browsers have advanced tools for simulating devices such as smartphones and tablets. Simulate mobile browsers Navigate to the site of…
-
2
votes2
answers364
viewsA: How to block a website with Delphi, vbs or msdos?
On the line: Append(dd); // aqui ocorre "File access denied" Or: Set Fso = CreateObject("Scripting.FileSystemObject") ' aqui dá "Acesso negado" Occurs the denied access for two possible reasons: You…
-
1
votes2
answers730
viewsA: Text Editor with RTF support
Your question makes me understand that it is about Delphi and html should be just the end result. Can not understand well and what the goal, if Delphi is mandatory or can be an application in html…
-
4
votes4
answers8168
viewsA: Is it possible to make an IF with javascript directly in html?
Do this only in the front-end, It won’t bring any security. Any malicious person will be able to control things as long as they have the minimum of knowledge, anyway you can use combined with css,…
-
10
votes4
answers1239
viewsA: Format city names and ignore words like "do", "dos", "das", "da", etc
As an alternative, I would do so: <?php function formatarString($str, $glue = ' ') { //torna minúscula e divide string por espaços, tabs e outros do meta-caractere \s (remove espaços…
-
1
votes3
answers1452
viewsA: URL problem with Toolbar /
Instead of: Route::controller('/', 'FrontendController'); Do this: Route::controller('', 'FrontendController'); In the documentation there is no Slash indication inside the parameter in the prefix…
-
2
votes2
answers1524
viewsA: HTACCESS URL rewriting by ignoring existing files and folders
This occurred because you did not check whether the folder exists and another detail instead: RewriteRule ^painel - [L] Prefer this: RewriteRule ^painel/ - [L] Without the bar . htaccess will accept…
-
3
votes1
answer647
viewsA: Read and write xlsm file in php
Generate files with PHPExcel or even simple things may cause excessive use of memory, this may be caused by the library or it may be caused by the way you wrote the codes or the file in the input…
-
2
votes2
answers2151
viewsA: Publish Laravel 5 in a subfolder
Laravel works as the root of your site, that is, it is a framework totally oriented to create all applications, from your Dashboard, to multiple sub-domains (see:…
laravelanswered Guilherme Nascimento 98,651 -
4
votes1
answer1318
viewsA: PHP script that lists and edits other files
Listing everything at once is a bad idea, unless you just want to run something in these files and folders, but don’t list everything. Actually what you want is a "file manager" (file manager): PHP…
phpanswered Guilherme Nascimento 98,651 -
15
votes1
answer10998
viewsA: How websocket works in php
Websocket In websockets the process is quite similar to normal HTTP, but the difference is that we do not close the connection and we do not need to order the server again to know when there is…
-
2
votes1
answer1566
viewsQ: Transforming grids into Carousel (slider)
I would like to know if it is possible to make a group of cols-* stay as carouel/slider only when less than 750px. First of all, for those who do not understand bootstrap well, both grids and…
-
7
votes1
answer2455
viewsA: Is the __destruct method useful?
There is, but first you have to understand at what moments it runs. The concept is similar to other languages such as C++, the __destruct is always triggered when the reference of a "class called"…
-
19
votes1
answer8210
viewsA: window.history.back returning only one page
The windows.history.back() returns only one page, if you want to return more pages you should use windows.history.go(-2) for example. This history.go(-1) amounts to this history.back() This will…
-
0
votes2
answers555
viewsA: Controller pulling database data from wrong place
I don’t know much about Laravel, I believe his example: 'mysql' => [ 'driver' => 'mysql', 'host' => env('DB_HOST', 'localhost'), 'database' => env('DB_DATABASE', 'forge'), 'username'…
-
0
votes2
answers1972
viewsA: Route does not execute controller method
If you look at the network tab in your browser’s developer tools you will probably notice error 404. From what I understand the folder public your project is not the main folder, the Laravel to work…
-
3
votes2
answers6008
viewsA: How do I make the browser not store image caching with HTML or PHP?
I recommend using the filemtime(...) with the ?, similar to the example from @Bacco, it returns the last of the file update, so the cache will only be updated if there are even modifications in it:…
-
0
votes2
answers1440
viewsA: How to pass controller variable to view
You can use the extract combined with func_get_arg() which looks similar to some popular frameworks and uses an anonymous function (requires php5.3) to avoid accessing the class scope, as in this…
-
1
votes1
answer82
viewsA: Audio with first 30 seconds mute
There is a strange error, I do not know how there was no syntax error, but here you used quotes inside the quotes of the first argument of exec: ... -af "volume=enable='between(t,0,30)':volume=0"…
-
4
votes1
answer85
viewsA: Error in php in my syntax
Actually the error is mysql syntax: SELECT * FROM 'loja_categorias' ORDER BY id DESC In mysql we do not use apostrophes (single quotes) to select tables and columns where the sign of ` should be…
-
2
votes3
answers632
viewsA: Can apache rewrite to external url?
You can even only redirect to the server without rewriting, but you can face blockages with the Referer: or difficulties with using the canvas images for example, because of CORS. The recommended is…
-
0
votes4
answers352
viewsA: Error inserting json in Mysql with PHP
Prefer not to use the old API mysql_, try mysqli or Pdo, as you will have the option of bind which will also avoid this type of problem with the characters. See this answer: Why should we not use…
-
3
votes1
answer967
viewsA: Guzzle and asynchronous requests in PHP
As far as I know PHP does not support asynchronous events natively, precisely because it is synchronous, ie it is a layer of requisition and reply and I don’t see so much need to run two events at…
-
1
votes1
answer862
viewsA: How to get HTML field value through webview using javascript?
For some time I do not work with Android, but can use the evaluateJavascript, similar to this answer, I’m not sure if anything has changed in the new Android Apis, but at first this is it:…
androidanswered Guilherme Nascimento 98,651 -
2
votes2
answers346
viewsA: Error: Parse error: syntax error, Unexpected '}'
To display html next to php you must use echo or: ?> seu html aqui <?php Thus: while($linha = mysqli_fetch_array($resultado)) { ?> <html><form id="form_Usuario" method="POST"…
-
8
votes1
answer11610
viewsA: Error running program: Unsupported major.minor version 52.0
I believe this error message means you need Java 8 In Eclipse I believe the path is this Window > Preferences > Java > Compiler then seek the Compiler compliance level and set to 1.8 (I…
javaanswered Guilherme Nascimento 98,651 -
4
votes2
answers1276
viewsA: How to lock an executable file and prevent it from opening on Windows?
First you must learn the basics of c# and probably of Visualstudio, there is no way to skip steps, this will only make the path harder. After learning about: Variables Function Classes Object…
-
5
votes3
answers399
viewsA: while list 4 in 4 result within div
What’s left is to isolate the Ivds .row of the elements <span> or if span appears independent of % 4 then he shouldn’t even be inside the while and the % 4 should always be compared to 1 or 0…
phpanswered Guilherme Nascimento 98,651