All Questions

2
answers

What is stream?

In both PHP and C #, languages that I have lately used in my day to day, I have come across a common term: Stream. Whenever I hear the word Stream , the first thing that comes to mind is YouTube, among other sites, which are often called "st...
asked on 08.08.2017 / 14:10
2
answers

What is a state machine?

I'm doing a site tour, researching on asynchronism, threads, parallelism, and the like. When I found this answer , I noticed that the author makes a citation regarding state machines . I did not quite understand what a state machine woul...
asked on 29.05.2017 / 14:12
2
answers

How to show only "x" characters in a div?

Hello, I'm developing a system where I will be publishing, but I would like that, in each publication, it shows "x" characters, and going from that value, it shows a button labeled "Show more", just like Facebook . If anyone knows how to do t...
asked on 01.02.2016 / 00:59
1
answer

How to limit the decimal places of the scanf of a double variable?

The exercise asks that the readings of double variables be limited to only one decimal place each. I tried to put "%.1lf" in scanf , just like we used in printf , but it did not work. How could I solve this? int ma...
asked on 12.08.2016 / 05:55
1
answer

The concept of High Order Functions in Javascript

I'm reading Eloquent Javascript to get a Javascript base. I was understanding well, since the fundamental does not change in relation to other languages, like data types (int, string, bool, objects, arrays). But I came to the Abstraction sec...
asked on 01.09.2016 / 20:25
3
answers

Hide image generated by Javascript

I'm using the sharethis plugin to share content on social networks. For this I am making the following call: <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=YOUR_PUBLISHER_ID"></script>Th...
asked on 27.02.2014 / 00:04
1
answer

Classes that implement interfaces are considered subclasses?

I have an interface Veiculo , a class Peugeot that implements Veiculo . This Peugeot is considered subclass?     
asked on 12.09.2016 / 02:47
1
answer

To learn C ++ is it necessary to learn C?

If I want to learn about C ++, do I need to learn C before or are they different things?     
asked on 10.12.2018 / 12:40
1
answer

JavaScript - Difference between 'this' and 'self'

I would like to understand and help the community with information. What's the difference between using this and self in JavaScript? Basically: What? Why use? How to use?     
asked on 03.05.2017 / 01:58
2
answers

Smart query with MySQL

I'm trying to make a more "smart" query in my DB, My question is how? I have a query : SELECT * from publicacao where titulo like '%$busca%'; and in my DB there are several publishing titles, for example: Farmácia Pharmácia Pharmacia...
asked on 22.11.2016 / 19:22