All Questions

2
answers

Programming for iOS in virtual machine is feasible?

I'm an Android developer, but now I'm going to start developing for IOS as well. Is it functional to program iOS into a virtual machine? Or do I have to buy a Mac myself?     
asked on 16.06.2017 / 02:48
4
answers

Difference between prepare () and query ()?

I was doing select on a table. I went to see the result, returned false. Then I used query and it worked. What's the difference between the two? <?php $query = DB::getConn()->prepare('select * from tabela where id...
asked on 14.10.2015 / 22:37
1
answer

Concept of class, entity and objects

I'm reading about classes in C #, and an excerpt left me a bit confused. I know that classes are C # objects, and can be used in many ways. My question is in the following sentence: "A class can have both the attributes and methods of a...
asked on 08.05.2017 / 20:20
2
answers

Convert milliseconds to hh: mm format in java

I'm doing an Android game with a java engine where it has a Timer that stays all the time running during the Game ... This timer is a millisecond counter and is added in a long. In the end I need to convert this long to a format in hours and...
asked on 29.04.2014 / 07:47
2
answers

What does an enum with the [Flags] attribute mean and how does it work?

I was seeing how the FileInfo class works and I came across an enum: [Serializable] [ComVisible(true)] [Flags] public enum FileAttributes { ReadOnly = 1, Hidden = 2, System = 4, Directory = 16, Archive = 32, Devi...
asked on 03.01.2014 / 19:13
2
answers

Why did println run before printStackTace?

I was studying Java Handling Exceptions and this question came to me that I could not find on Google. Why in this example did he print the first line of printStackTrace, and already gave println, and then the rest of printStackTrace?  ...
asked on 10.05.2017 / 21:14
4
answers

What is the importance of indenting the code?

It is common to hear that it is important to keep the code indented, which is not a difficult task with the help of an IDE. Excluding languages that require indentation, such as Python, why is it important to keep the indented code? Is it jus...
asked on 16.03.2017 / 03:43
5
answers

What are strings started with @ within PHP comments?

I was reading a code, like this: /** * PHPMailer - PHP email creation and transport class * NOTE: Requires PHP version 5 or later * @package PHPMailer * @author Andy Prevost * @author Marcus Bointon * @author Jim Jagielski * @copyright...
asked on 06.03.2017 / 18:27
2
answers

foreach can replace fetch_array?

I saw in a video that the guy takes the query and plays it right in the foreach and can list without any problem, my question is this: if it really is possible, using only the foreach would be much more practical than using while with fetch_arra...
asked on 24.07.2016 / 22:03
3
answers

Random numbers are always the same

Why is this code always displaying the same random number results as a given? // Figura 6.9: fig06_09.cpp // Lança um dado de seis lados 6.000.000 de vezes. #include <iostream> using std::cout; using std::endl; #include <iomanip>...
asked on 29.08.2017 / 16:44