All Questions

4
answers

What is the difference between display: none and visibility: hidden?

I know that both hide the element, but there is in practice some difference between: #foo{ display:none; } and #foo { visibility:hidden; }     
asked on 20.12.2014 / 20:53
6
answers

What is the difference between padding and margin in CSS?

So I realize that I see a setback to another element when the left, top, right e bottom. Is there a difference between margin and padding in CSS? A response with examples (images or code) would help a lot in understand...
asked on 14.03.2017 / 15:36
5
answers

How to calculate the age of a person with JS, from the date of birth?

How can I calculate the age of a person in Javascript from the date of birth? I tried something like: function idade(dia, mes, ano) { return new Date().getFullYear() - ano; } idade(11, 12, 1980); // 33 idade(15, 2, 2011); // 2 idade(5...
asked on 11.02.2014 / 07:11
2
answers

Clipper still exists?

Clipper was a widely used language in the 1980s and even through the 1990s. Especially in some countries like Brazil. In fact many administrative systems still used today were made in it. But is it still possible to develop modern software using...
asked on 13.12.2014 / 20:15
6
answers

Algorithm against Brute-force

I've been thinking of an algorithm against Brute-force attacks that, as we saw in iCloud case , it can generate large headaches if treated with indifference. Initially I thought of this flow: Login Attempt:    [define uma sessio...
asked on 15.09.2014 / 15:00
5
answers

What is Vanilla JS?

I have already found this term in several places, "Vanilla JS". It seems to be cited as a framework , but in the codes where it is quoted and on the site itself the code presented is pure JavaScript.     
asked on 15.01.2015 / 13:00
4
answers

Is it possible to make a tooltip with pure CSS?

Is it possible to make a tooltip with pure CSS? That is, without jQuery, without Javascript, but only with CSS. For example, I want to do this based on the following element: <a href="#" data-tooltip="Meu texto aqui" >LINK</a>...
asked on 04.12.2015 / 13:00
5
answers

Difference between single and double quotation marks in PHP

What is the difference between single quotes and double quotation marks in PHP? Yesterday I was working with a JSON string from google calendar I used explode('\n', .. to separate a string. When I used the explode in "Mon Jul 7,...
asked on 06.02.2014 / 20:24
8
answers

Exporting an HTML / PHP page to PDF

How to export an HTML page to a PDF file? Having a default document where you can change variables within this template, then export that page to an A4 format PDF file, without spoiling the layout. Code sample: $conteudo_html = ' <...
asked on 20.12.2013 / 16:23
2
answers

What are the differences between Dependency Injection and Control Inversion?

Sometimes it seems like we are talking about the same thing (of course, it is not) when these concepts are being used. What is the real difference between them? When to use one or the other?     
asked on 13.06.2014 / 16:05