All Questions


What is and what is an abstract class for?

In object orientation, what is the meaning of an abstract class? What is its purpose?     
asked on 17.09.2015 / 15:07

What is the difference between the "element element" and "elementelement" selectors?

I was looking at the Twitter Bootstrap code, and I found this css: .table-condensed>tfoot>tr>td { /* ... */ } In the operating sense, what would be the difference between just putting a space between the elements, and putting...
asked on 20.01.2014 / 23:49

How to capture a photo via the user's webcam and send via POST?

How to perform the procedure of capturing the user's webcam image in a registration form to send via POST ? I'm looking for a solution that is compatible with most browsers and is simple to implement.     
asked on 05.07.2014 / 19:03

How to measure code performance in PHP?

To measure performance and compare two codes in javascript , I do the following in the browser console: // Vamos testar o código 1 console.time('teste1'); for (var i = 0; i++ < 10000;) { $('#table tr').addClass('destaque'); } cons...
asked on 06.01.2014 / 22:08

Reduce the size of an image and maintain the aspect ratio with CSS

If I have a horizontal image (320x205), <div class="container"> <img src="imagem.jpg" width="320" height="205" /> </div> and I put the CSS rule .container img { max-width: 200px; } , the reduction is not proporti...
asked on 17.09.2014 / 23:46

How to horizontally center one div within another?

How can I horizontally center a div that is inside another div using only CSS? In this case, we can assume that div external outer has width of 100%. <div id="outer"> <div id="inner">Este é o elem...
asked on 21.12.2013 / 16:27

How to get unique values in a JavaScript array?

In PHP, when I have array with duplicate values, it is possible to get only single values through the function array_unique . Example: $array = ['a', 'b', 'b', 'c', 'c']; array_unique($array); // ['a', 'b', 'c'] But I neede...
asked on 01.09.2016 / 14:48

How can I not allow a character to be typed in the textbox, with javascript / jquery?

I have a Textbox: <input type="text" name="indice" class="number"> I wanted it when someone typed a comma in this Textbox to block it from appearing in Textbox. How to do this in the best way? I would not want it if the person k...
asked on 15.01.2014 / 18:24

Is it possible to handle receiving data in camel casing using OData?

In the Register method of the WebApiConfig class I have set a CamelCasePropertyNamesContractResolver public static void Register(HttpConfiguration config) { //Resto do código removido para brevidade co...
asked on 25.05.2016 / 15:37

How to remove accents and other graphic signals from a String in Java?

How to remove accents and other graphic signals from a String in Java? Ex .: String s = "maçã"; String semAcento = ???; // resultado: "maca"     
asked on 11.12.2013 / 17:36