All Questions

5
answers

How do I undo the last commit in git?

I accidentally committed the wrong files to git. How to undo this?     
asked on 30.01.2014 / 12:17
1
answer

What is the difference between these two implementations?

I was reading some articles on patterns and I was struck by a doubt in the following two examples. Suppose I have a single function that returns me an element by means of the ID sent as argument. The first one: var utils = (function(){ v...
asked on 27.03.2015 / 16:55
6
answers

How to create geometric shapes using CSS?

How can I make the geometric shapes below using preferably CSS? If it is not possible to do using only CSS, I also accept responses with other methods.     
asked on 24.11.2015 / 17:29
3
answers

How to compare dates in PHP?

I would like to know what function I use to compare two dates and return to larger ones. I have a form for HR registration in which the user will register their professional experiences being that the date of entry into employment can not be...
asked on 22.09.2014 / 20:55
2
answers

Change the collation and character set of the database, tables and corresponding columns

Some older projects were thought of in their immediate purpose and based on this the databases, tables and columns were prepared in a way limited to the intended scenario. In the sense of updating and adapting to a greater scalability of thes...
asked on 28.02.2014 / 22:51
3
answers

Connect LED via USB [closed]

How can I send a 5V pulse via a USB? Imagine a USB cable that has 4 wires (one generates 5V and the other negative pole). The two central strands remain. My question is how can I read via Delphi that these cables are getting 5V? Objective...
asked on 29.01.2015 / 16:18
2
answers

What is a regular expression?

In many codes I see functions with a set of special characters that seem to have a function of their own. I see this in almost every language, so what is it anyway, a class, a library, or what then? Although there is a response in this qu...
asked on 20.02.2017 / 08:34
1
answer

In new browsers now there will be no more synchronous requests?

I saw today in my Google Chrome , updated to version 40.0.2214.91 , a message that said    Synchronous XMLHttpRequest on the main thread is deprecated because of   its detrimental effects to the end user's experience translati...
asked on 23.01.2015 / 12:07
2
answers

How does PHP foreach work?

To clarify, this question is not about when foreach is used or what its differences are for other repetition loops , but rather on the operation of foreach itself. In documentation , little is said about exactly how fore...
asked on 21.09.2018 / 18:31
5
answers

How to prevent spam in contact forms without using CAPTCHA?

I'm looking for a simple and efficient solution to avoid spam in contact forms. The idea is that the client does not need to inform that he is a "person" (CAPTCHA example), the submitted form must be clean (the client should not see anything...
asked on 28.05.2014 / 23:41