Posts by Guilherme Nascimento • 98,651 points
2,383 posts
-
5
votes1
answer3027
viewsA: Anonymous function returns: syntax error, Unexpected T_FUNCTION
If you are getting this error it is because your PHP is an "old" version. Anonimas functions are available since PHP 5.3.0. Source: http://php.net/manual/en/functions.anonymous.php Check PHP…
-
5
votes2
answers992
viewsA: Voice link between two points
About PHP: I’m not going to say that it’s impossible to do PHP, but maybe it’s a tough path, because it’s going to take something to capture the audio of people in the conference, save this data in…
-
10
votes1
answer7977
viewsA: external access with wamp
We recommend you hire a professional service as a "lodging" from professional websites and upload via FTP or SSH (or SFTP) to the folder public_html or www, depends a lot on the server. However if…
-
6
votes4
answers19850
viewsA: How to get the key pressed?
One of the possible reasons is that the use of event direct as you did is equivalent to window.event, however this event is not accessible by all browsers. You must use the first parameter of the…
javascriptanswered Guilherme Nascimento 98,651 -
3
votes2
answers417
viewsA: Add hours with the Final Countdown plugin
To add hours to the result you can use new Date. You can directly use the new Date() in the first parameter of countdown in a format more recognised by the Date.parse like the ISO 8601, read on…
-
2
votes2
answers404
viewsA: App style in pure CSS3 breaks while running on Android
Reported: Units of measurement with View-port percentage There are many CSS properties not yet implemented by all browsers, especially mobiles. Some points to consider It is not because a property…
-
6
votes2
answers579
viewsA: Is it possible to use stylesheet in an app?
The Views Android "do not use"/"does not support" Stylesheet (stylesheet) what you can change is the textColor the typeface, etc by the XML of View. For example: <TextView…
-
2
votes1
answer123
viewsA: Hide filenames at compression time
As stated in the Superuser, just add you > NUL: at the end of the command, it would look something like this: 7z u -t7z destino\arquivo.7z origem\arquivo.*. > NUL: Note that it hides…
-
0
votes1
answer1496
viewsA: (#200) Permissions error facebook
I find the first error irrelevant, because to use the API it is mandatory to use the TOKEN, so I will talk about the second error. (#11) Post search has been deprecated According to this response…
facebook-graph-apianswered Guilherme Nascimento 98,651 -
13
votes4
answers17554
viewsA: What is the difference between 401 Unauthorized and 403 Forbidden?
401 Unauthorized Is similar to 403 Forbidden, but we use it specifically when an authentication is required and it fails or is not done. It is usually used with HTTP Basic Authentication 403…
-
11
votes1
answer4164
viewsA: Get source code from Google Chrome extension page
As answered by Soen it is possible: manifest.json Note: Change <all_urls> for something like "*:*//site1.com", "*://*site2.com", these sites would need you to "free access" to can make…
-
1
votes1
answer1198
viewsA: How to print/export (pdf, xls, printer) the graphics from google Chart?
You say export to "printer", it doesn’t really make sense to me, but I’ll assume you just want to print with Ctrl + P or that the browser print dialog is called directly. If that’s really it, then…
-
2
votes1
answer1110
viewsA: Fixed sidebar adjustment for mobile devices
To achieve the effect, you will need to use @media(max-width: 767px) { and @media(min-width: 768px) { to make the necessary adjustments. According to the link navbar-Fixed-top: A body spacing is…
twitter-bootstrapanswered Guilherme Nascimento 98,651 -
8
votes2
answers45048
viewsA: Create dynamic JS table to use in HTML
To create dynamic elements with Javascript, you must use document.createElement and to add to another existing html element, you must use Node.appendChild(). To create a table, you should call…
-
1
votes3
answers134
viewsA: "Undefined is not a Function" when calling "tabs"
I assume you’re using protocol FILE instead of an HTTP server on your machine. The use of the abbreviated protocol // only works if the page is loaded on HTTP. On pages with protocol FILE the // is…
-
2
votes1
answer1421
viewsA: Canvas occupy the entire screen with css
The height: 100% only work if you use position: absolute (or fixed) or Quirck Mode (is not recommended, always use a doctype). A way to solve would be like this (in this case recommend fixed, if you…
-
5
votes1
answer1178
viewsQ: How to filter a SELECT with n:m and bring all characteristics?
I’m using n:m to create a system of attributes/characteristics for certain products, so I can reuse the same attributes for more than one product, the table is something like: When I run a SELECT…
-
3
votes1
answer103
viewsQ: How to install Qt for MSVC without the Microsoft IDE?
You can install Qt and the MSVC compiler without installing the Microsoft IDE? I downloaded this version of Qt 5.4.0 for Windows 32-bit (VS 2013, Opengl, 694 MB) and installed, but I do not have…
-
2
votes1
answer98
viewsQ: Is it possible to encode line by line in Base64?
I have a code that takes binary files and converts them into Base64, but there are very large files and this ends up using much of the machine’s memory (and even process). To read large files…
-
1
votes3
answers4561
viewsA: Validate Datetime on the client
The problem in . NET The translation of: The Conversion of a datetime2 data type to a datetime data type resulted in an out-of-range value. It would be something like: Conversion of date type…
-
1
votes1
answer433
viewsA: Open PHP Local Server from VB.NET application
If I understand, you have a WAMP server installed on your machine (I assume it’s Apache, Mysql and PHP) I will assume that your Apache is using Apachehandler instead of Fastcgi in the "Server API "…
vb.netanswered Guilherme Nascimento 98,651 -
1
votes2
answers1421
viewsA: Center vertically on a <span>
You can apply display: inline-block;, at the span and to the form and you will probably achieve the desired result, something like: #form_filter div.row > form, #form_filter div.row > span {…
-
1
votes2
answers205
viewsA: Why match returns an object - JAVASCRIPT
.match can return both Array how much null and both are "considered" object by Javascript, on the line: bs = as[x].match(/a/i); returns null in the first loop and array in the second, typeof will…
javascriptanswered Guilherme Nascimento 98,651 -
2
votes1
answer144
viewsA: Why create the folder and not upload the image in sequence?
Your indentation and markup are bad (sorry for the sincerity) if failures do not happen is by sheer luck. Returning to the subject, there are the following problems with your code: @ to omit errors…
-
1
votes1
answer684
viewsA: $. ajax does not answer
From the comments in the code, I’ve come to assume that you’re using something like <form> <input type="submit" id="submitbuy"> </form> May be occurring three problems: By clicking…
-
4
votes1
answer500
viewsA: Some devices can’t find my app in the playstore
There are two problems in your XML Error in xml <activity android:name="br.com.insideweb.multpesquisa.view.RedeSocialView" android:screenOrientation="portrait" /> <activity…
androidanswered Guilherme Nascimento 98,651 -
4
votes2
answers887
viewsA: Check if variable has been set
Variables in C/C++ cannot be used if they are not defined, because the compiler will issue an error message and your project will not be compiled, in other words, there is no way to check whether…
-
24
votes3
answers2439
viewsA: What is the real advantage of using a Callback and what is thread/multithread?
The largest Javascript process is consider a single event. If you perform a long operation within this event the process may lock for a few moments the browser (or other software that uses…
-
2
votes1
answer984
viewsA: Android - Application restarting after minimization
To prevent the application from "rebooting" after minimizing, you must save the instance For this you must use the methods onSaveInstanceState, onRestoreInstanceState and super.onCreate in his…
-
2
votes2
answers698
viewsA: How to encode a number in PHP
As you said, the case of "security" is to prevent it is possible to deduce the number of products or customers, I suggest you use PHP. In case you can create a function in a document and include…
-
3
votes2
answers953
viewsA: How to install PHP server with separate components
Easyphp, Xampp, Wamp are not "official things" of PHP, they are "facilitators" for the installation of existing software, that is, install using Xampp or Easyphp are only alternatives to "official…
-
2
votes2
answers814
viewsA: Funcao mail in php
It’s not because the function mail() returned true and the email came out of your server and got to the recipient’s server which means it will be delivered. Until I understand there is no way to…
-
1
votes2
answers1298
viewsA: How to recover a value within the setTimeout function with jquery?
The function setTimeout is considered "asynchronous" (remembering the thread of other languages) and so what runs within it is the part of the other events. But you can access the variable within…
javascriptanswered Guilherme Nascimento 98,651 -
2
votes1
answer109
viewsA: Get extension permissions
It’s like I said in your other two questions Marta, you should read the documentation and make sure you’re using the example of the way it’s there. In this case (permissions) the link is this:…
google-chrome-extensionanswered Guilherme Nascimento 98,651 -
0
votes2
answers101
viewsA: SVG kartograph file
I can not reproduce the problem, so I will point out possible errors in the code: In your code you are using version 1.9.1 of Jquery <script…
-
1
votes1
answer459
viewsA: Duplicate entry '213' for key 'PRIMARY'
CREATE TABLE IF NOT EXISTS `%%PREFIX%%shipping_vars` ( It is a command that is ignored if the table already exists, so what happens is this table already exists And the values of Insert are already…
mysqlanswered Guilherme Nascimento 98,651 -
4
votes4
answers249
viewsA: Most common words among Rows
Can be done in php with preg_split (can be used explode but this only supports one character at a time, and in the case of whitespaces the best is REGEX) and one vector, in case you can preferably…
-
1
votes2
answers3862
viewsA: Display dynamic images using Razor
After reading your comment in the @Ciganomorrisonmendez reply, I noticed that you are not using "routes" in the images, so I will assume that the images show this way…
-
0
votes1
answer736
viewsA: How to access the url of the current tab
As stated in the Soen, read about this at: Tab API Browser Action API An example of using your js file would be something like: chrome.tabs.getSelected(null, function(tab) { console.log(tab.url);…
google-chrome-extensionanswered Guilherme Nascimento 98,651 -
2
votes4
answers3066
viewsA: How to make a Hello World on ASP.NET MVC?
MVC is not something specific to ASP.NET, so much so that it is totally possible to work without MVC, because it is not a requirement, it is only a standard project software. To get a sense of this…
-
2
votes1
answer791
viewsA: How to call the application "call number" in a webview?
You don’t necessarily have to call one Intent, you can use the "tel URI Scheme", in this way: <a href="tel:0110000000">Chamar</a> Or with javascript: window.location = "tel:0110000000";…
androidanswered Guilherme Nascimento 98,651 -
1
votes2
answers619
viewsA: How to add a (full) div to Asp:Panel using jquery?
There are 3 initial questions: Note that to add inside the panel you should use appendTo, for append add after element and not inside You apparently want to add #divPesquisar inside…
-
5
votes1
answer1432
viewsA: Is it possible to know how many customers are connected to Serversocket?
I don’t know if there is one ID per user that helps to identify who are the clients, but in the matter of TCP servers, what can always be counted is the connection made by a client and from this…
-
8
votes3
answers1335
viewsA: How to use an object to add to an attribute?
You are adding one Object (class Customer) to variable $ana $ana = new Cliente('ana'); So here $this->dono = $dono; receives an object (and not a string) public function __construct($nome,$dono){…
-
1
votes1
answer346
viewsA: Add Html5 Player automatically
Note: that this is a "chameleon question" (from my point of view) and the answer is about this question /revisions/45339/2 Your initial question: Q: I own Youtube videos, Vimeo and mp4 videos. I own…
-
1
votes1
answer131
viewsA: Extension for Chrome does not run
At first the extension worked normally and makes exactly what you ask for in its manifest, it creates a button with an icon and nothing else, see the image: I believe what you want is to use the…
google-chrome-extensionanswered Guilherme Nascimento 98,651 -
2
votes1
answer95
viewsA: Prevent elements from breaking down within an overflow
The elements don’t break down because of overflow:;, they break because the child elements are limited to the width. A quick solution is to use the css property white-space: nowrap; in its parent…
-
8
votes2
answers17330
viewsA: How to make basic live stream with HTML5 video API and PHP?
Live stream (live stream) As stated in SO-en, the PHP is not indicated for the use of "live stream" (live stream). I will not say that it is impossible to do PHP, but maybe it is a hard way, because…
-
1
votes2
answers1266
viewsA: Regex time greater than 00:00
Using the set; and get; in your case you can create a "mixed REGEX", it would be something like: ^(00:[0-5][1-9]|00:[1-5][0-9]|0[1-9]+[:][0-5][0-9]|[1-9]+[:][0-5][0-9])$ Your code should look like…
-
3
votes3
answers672
viewsQ: What is the advantage of using Function(window, Document, Undefined)
I noticed a long time ago that many libraries are using something like: (function(window, document, undefined){ //exemplo de script console.log(window, document); })(window, document); or…