All Questions

1
answer

Pick up news from a specific site

At the moment I'm looking for a solution to implement a module in my App to get news from a specific site and show it on the news module screen. Can anyone tell me a way?     
asked on 24.09.2015 / 13:18
2
answers

Can I use "cin" and "getline" in the same code?

I was fixing the whitespace problem with getline , but I got this problem where the question "Enter the employee name:" is skipped, how do I solve this? cout<<"\n\nDigite o nome da empresa: "; getline (cin,nom...
asked on 13.12.2015 / 15:51
3
answers

How to register a log in PHP?

I have a code in php that is doing checks on the server and when it is online or offline it returns a different message: <?php $server='LOJA 01 - '; $conectado = @ fsockopen('10.200.0.100', 135, $numeroDoErro, $stringDoErro, 1); // Este ú...
asked on 11.09.2016 / 20:18
2
answers

How to load default image if src="" can not find?

Is there any way to load a default image using only HTML , if the first src="" can not find the file? <img src="ola_mundo.png" alt="Olá Mundo"> // Existe algum atributo para isso?     
asked on 22.11.2016 / 14:14
1
answer

How do I know if Java is running on 32 or 64 bits?

Is there any command for me to use where it returns if my java is 32 or 64 bits in the Java language? Something like System.getProperty("java.version"); Something like that only comes back to me if Java is 32 or 64 bits.     
asked on 23.10.2015 / 18:32
1
answer

What does "Run in the JVM" mean?

Languages like Scala, Kotlin, Clojure and others "run on the JVM". What does this mean? What does the JVM provide for them? How much are "dependent" on the JVM? Do they only run on the JVM? Do these languages generate a ....
asked on 08.08.2017 / 02:16
1
answer

What is the relationship between OOP and code security?

Is there any basis for thinking that an object-oriented programming style is safer than structural?     
asked on 11.08.2015 / 04:00
2
answers

What's the difference in instantiating, initializing and declaring a variable?

Many articles on the internet refer to these verbs, regardless of the programming language. But sometimes they are all confused or permuted, which causes a lot of confusion. What does "instantiate", "initialize" and "declare" a variable mean?...
asked on 09.02.2017 / 00:01
2
answers

How to check if a value is iterable by foreach in PHP?

In PHP, not only arrays are iterable, but also some specific objects. For example, objects that implement the interface Iterator or even IteratorAggregate . Another example is stdClass and ArrayObject , which ite...
asked on 11.01.2017 / 12:42
2
answers

Exchange of messages between objects, what does it mean?

What does the term exchange of messages between objects in Object Oriented Programming mean?     
asked on 11.09.2015 / 20:53