All Questions

1
answer

What is Event-Dispatching Thread (EDT) in GUIs?

When you are learning how to construct graphical interfaces with swing / AWT , you hear a lot about the Event-Dispatching Thread (or EDT ). Although I already have a certain coexistence with
asked on 25.02.2016 / 14:15
2
answers

What to Serve for Class in Python

I'm new to programming but there's one thing I do not understand. What is the class in Python? Because it seems to me that with function I can do everything without using class . I already ran the net, but I did not find anything...
asked on 20.02.2015 / 20:51
1
answer

How do I know when to use each of the execution functions?

How each of the PHP functions works: pcntl_exec('/caminho/executar'); exec('/caminho/executar'); shell_exec('/caminho/executar'); Is there any uniqueness among the 3 examples mentioned above? Although it is clea...
asked on 03.12.2015 / 18:13
5
answers

Update list after push AngularJS

I have a list with several data ( $scope.messages ), but only some data interest me. After loading this list I make a foreach and get only the data that interest me and give push to a new list. This way: angular.forEach($sc...
asked on 19.11.2015 / 20:09
3
answers

Extract data from txt file to use in autocomplete

   Update: Just for the record, you do not need to use jQuery-ui, it might be another solution. I'm creating a autocomplete for a form, which should include all the options of the CBO - Brazilian Code of Occupations Unlike the zi...
asked on 10.04.2015 / 18:16
1
answer

What is the difference between test and debugging?

In the book "Introduction to Software Testing" by Ammann & Offutt mentions in p.32 the 5 levels maturity models of software testing:    Level 0 - There is no difference between testing and debugging.    Level 1 - The purpose of a test i...
asked on 27.08.2016 / 04:09
2
answers

functions and methods in PHP are case-insensitive?

Some time ago, due to an accident at the time of a debug I realized that PHP is not case sensitive at the time of a function call. Example: print_r($teste); print_R($teste); Print_R($teste); The same thing happens for the methods of...
asked on 11.02.2015 / 15:24
4
answers

Is it appropriate to create a 'CSS Sprite' with images of disparate dimensions?

Is it appropriate to create a CSS Sprite with disparate-sized images? For I have exact 20 images where their height and width are limited: Maximum image height is 60px; Maximum width is 100px; But the dimensions of each image var...
asked on 29.05.2015 / 14:26
3
answers

Why in so many ways check if a value is NULL? How to standardize?

There are certain things that still do not come into my head in relation to PHP. Because there is the is_null function, when we can simply compare the values through a comparison operator. Such as $variable === NULL ? And why...
asked on 24.02.2015 / 13:14
1
answer

ORDER BY only day without time

In MySQL I have a column timestamp called dia_cadastr o (2016-06-21 11:27:32), in the query I want to give a ORDER BY only on the day, and disregard the time. That is, if they have products registered the same day, then it g...
asked on 24.06.2016 / 15:07