All Questions

4
answers

In Javascript, how to check that an object is empty (without jQuery)?

By jQuery , I can tell if a Object is empty as follows: $.isEmptyObject({}); // true $.isEmptyObject(window); // false To know if a array is empty, we can do the same thing, but without jQuery it would look like t...
asked on 31.08.2015 / 22:20
2
answers

What are and how to identify aggregates in DDD?

In DDD there is the notion of aggregate. One setting I've seen there is as follows    Entity Compounds or Values Objects that are encapsulated in a single class. Aggregate serves to maintain the integrity of the model. We chose a class to ser...
asked on 05.02.2015 / 18:25
3
answers

How to print a constant in the middle of a string, without concatenating?

Is there any way to print a constant in the middle of a string , without using concatenation, how do you do with variables in PHP? Example: $nome = 'wallace'; echo "Meu nome é {$nome}"; For constants, I know I could print concatenatin...
asked on 15.09.2015 / 22:53
3
answers

How to prevent a method from printing data when calling a third-party API?

I am using an API and in some cases a feature of it prints on the screen when there are errors (api errors, not PHP). It happens that I call this API via AJAX and it breaks my code since the request ends up generating an invalid JSON. Is ther...
asked on 23.01.2014 / 19:36
7
answers

Format decimal places directly in the SQL command in Firebird

I have a ESTOQUE table containing a field called QTDE , this field has 3 decimal places. What would be the command to return straight from SQL formatted with 3 houses? Because the whole values are returning without the houses....
asked on 31.01.2014 / 14:04
2
answers

Leaving FullCalendar in the language pt-BR

Hello, I downloaded a fullcalendar template from Adan Shaw , but the default language is English, I would like to leave it in Portuguese. How do I make this change? Thank you.     
asked on 02.12.2015 / 13:32
3
answers

Pythonic way of defining setters and getters

Searching the internet I see that it is highly recommended not to use Setter and Getters in Python classes, however, I can not determine a way to access private values without using them. There are several recommendations on using properties, bu...
asked on 28.02.2017 / 05:32
3
answers

Validate credit card number

How do I validate credit card numbers? I will not be integrating with card operator, I just need to validate the number, as it does with validation with CPF.     
asked on 09.11.2015 / 20:26
2
answers

How do C hands work?

1st What is the difference between declaring: char* s and char *s ? 2nd Is it always necessary to use the malloc function whenever declaring a pointer ? Example: char* s = malloc(sizeof(char)); //ou apenas.....
asked on 30.12.2015 / 20:34
2
answers

Why does linux have an ISO for each processor architecture?

Hello, I would like to understand why Linux has several ISO's for each type of CPU (AMD64, i386, etc ...), because Windows does not need this, and how it is compiled for each type of architecture. If possible, pass on links that take th...
asked on 01.09.2015 / 17:55