All Questions

1
answer

Using synchronous methods along with asynchronous

For development reasons, I had to create a call to an asynchronous method in a synchronous method, but when I publish my project to the server, it is for an indefinite time running. Asynchronous method public static async Task<IEnumerabl...
asked on 26.01.2017 / 15:07
4
answers

Ajax request with pure Javascript (without APIs)

Generally, when we need to use Ajax requests using Javascript, we have handy APIs that help us with this (eg jQuery ). However, what would be the safest and cross-browser way to accomplish these requests (POST and GET) using pure Javasc...
asked on 30.01.2014 / 16:15
8
answers

Why is "SELECT * FROM table" bad?

It is often said that getting all the columns of a table through the SELECT * FROM tabela command is bad practice. Any recommendations without explanation are not helpful. So ... If it is bad practice, there must be a way to use it pro...
asked on 16.06.2014 / 21:26
18
answers

What is the best way to centralize an element vertically and horizontally?

What is the best way (by "best" I mean: with the widest possible compatibility between browsers and as simple as possible) to position an element in the center of the page, vertically and horizontally and independently of resolution using only...
asked on 29.01.2014 / 18:29
4
answers

MySQLi vs PDO - Which is the most recommended to use?

With mysql_* entering the deprecated state, the PHP documentation recommends using the PDO and MySQLi. Which do you recommend for use? PDO seems to be more suitable for working with object-oriented only than at the same time I saw...
asked on 06.03.2014 / 18:10
4
answers

Cross-browser way to copy text to Clipboard

I'm looking for ways to copy a text to clipboard via JavaScript, which works in most modern browsers, but there's too much information and it seems outdated. I know there is the Clipboard API and that it is partially supported by all (except...
asked on 25.05.2014 / 19:41
3
answers

What is the "with" in JavaScript?

What is with in JavaScript? Does it only work to get object values as if it were a variable, or is it also possible to set or change properties through it? Example: var obj = {nome: 'Stack Overflow'} with (obj) { console.log(no...
asked on 02.03.2015 / 13:59
1
answer

How to resolve merge conflict with git?

I had a merge conflict problem in git. This problem happened when two people were making the same modifications to the same file. The first person did the commit and I went to make another commit after her. Git refused and I tried three more tim...
asked on 28.04.2016 / 22:24
3
answers

How to list files and sub-directories in Delphi?

I created a project in Pascal-Object and at a given time it should list all the files and subdirectories located in the Desktop in tree, I found some examples in the WEB, but none was useful enough, because it only listd superficial directories...
asked on 08.02.2016 / 17:21
4
answers

What is console.log?

I see this in some JavaScript files: console.log(algumaCoisa); console.log("alguma coisa"); What is it good for and how does it work? I'm trying to make a custom log() for a Userscript (see How can I log information without using...
asked on 24.10.2014 / 19:21