All Questions

2
answers

What is syntax sugar and how does it work?

I have seen in some blogs the use of this term and would like to know: 1) The real meaning of this expression e; 2) How does a syntax work like the example below in java ? for (Foo foo : listFoo) { //CÓDIGO AQUI }     
asked on 15.04.2014 / 03:01
2
answers

How to generate noise in an image using python?

How to generate periodic noise of type Moiré in a grayscale image using Python?     
asked on 22.02.2014 / 02:17
2
answers

Inquiry Lambda

I have the following query in T-SQL : SELECT TOP (60) COUNT(*) AS QTD, SUM(Duration) AS Total, AVG(Duration) AS Media, MIN(Duration) AS Menor, LEFT (TextData, 80) AS TextData FROM Traces WITH (nolock) WHERE (StartTime &g...
asked on 20.03.2014 / 14:17
2
answers

What is the function of super in a Java constructor?

I have a child class that inherits from another abstract class, and the one in the class constructor has the following: Public aluno(String nome, int idade){ super(nome,idade); } What is the "super" function in the class constructor?  ...
asked on 24.12.2014 / 12:34
5
answers

Restriction of words in comments

I'm doing a gallery of images that in this gallery will have comments, the comments are already being sent to the DB and returning the way I wanted. But I need to make a filter for the comments, if they have any bad words the comment does not ri...
asked on 05.11.2015 / 12:41
3
answers

Insert video or HTML or external JS into a div

In the site I'm developing, I'd like to call an external video within a div , just using the video ID. Example: https://www.youtube.com/watch?v=UJAwNkhbYWM In case the video ID is this: UJAwNkhbYWM . Whenever you create...
asked on 06.08.2014 / 23:23
2
answers

Save and send selected item id in dropdowlinst

I'm trying to do a search by filtering through a dropdowlist. In summary, I select a level of instruction in a list and clicking on 'Search' I want to return the list of people who have that level of education. My problem is in identifying the i...
asked on 09.12.2015 / 19:48
1
answer

What are the improvements that the Spread Operator implementation will bring to the javascript?

I'm taking a look at new features of EcmaScript6 and saw that Spread Operator was implemented. It looks very similar to variadic function of PHP (which also uses Spread Operator ). Here's an example of how the di...
asked on 03.02.2016 / 16:30
2
answers

What is and how to implement a Listener in Java?

Although you have already asked the Differences between listeners and adapters in the swing and also Listeners are an implementation of Observer? , I would like a more detailed explanation. What are listeners in java? How to implement one?...
asked on 10.09.2017 / 22:01
2
answers

Use "left: -9999px" instead of "display: none"? But why?

I began to wonder about this subject a short time ago. I read in some article, which I can not remember what it is, that by "visibility issue" instead of using display: none or visibility: hidden should be used left: -9999px...
asked on 21.11.2017 / 18:03