All Questions

1
answer

What is segmentation fault?

This error often occurs with faulty codes. I do not see it occurring in other languages. Why does it occur? What does it mean?     
asked on 13.01.2017 / 11:31
4
answers

Remove duplicate names with regular expression

Suppose I have the following vector, with the names of presidents of the republic: presidentes <- c("da Fonseca, DeodoroDeodoro da Fonseca", "Peixoto, FlorianoFloriano Peixoto", "de Morais, PrudentePrudente de Morais", "Sales, CamposCampo...
asked on 30.08.2016 / 20:58
1
answer

What's the difference between parseInt () and Number ()?

What is the difference between parseInt() and Number() ? If you use: console.log(parseInt('100')); console.log(parseInt('1')); console.log(parseInt('a')); console.log(Number('100')); console.log(Number('1'));...
asked on 27.01.2017 / 00:01
2
answers

Is there any way to change a commit message?

I work with git on all projects in the company where I work. Unfortunately, some programmers end up putting any message, in a hurry, into commit . This makes things harder, because instead of you seeing the description of what was d...
asked on 18.02.2016 / 12:11
3
answers

MVC class diagram

I'm developing a web system in php, where all controllers extend their respective models, for example: I have a userController and a userModel, my question is as follows, in the precise class diagram represent the controller's methods. p> Anot...
asked on 02.04.2017 / 00:50
1
answer

Is it possible to initialize only some members of an array in C already in its definition?

I know you can do this: int a[5] = { 0, 3, 8, 0, 5 }; or int a[5]; a[1] = 3; a[2] = 8; a[4] = 5; Can you do the same in just one line, already in the definition?     
asked on 22.03.2017 / 12:33
3
answers

How to dynamize a numerical sequence of 3 in 3 numbers following the order?

Type: 1 2 3 ... 4 5 6 ... 7 8 9 And so on. Example var clic = 0; function mais() { if (clic == 1) { document.getElementById('txt').textContent += "1 2 3 " } else if (clic == 2) { document.getElementById('txt').tex...
asked on 15.02.2017 / 00:16
2
answers

Are static classes shared by threads?

Are static classes, methods, and properties shared across the application's threads? That is, if I modify the static property foo in ThreadA , and then modify the same static property foo in ThreadB , what will be th...
asked on 16.06.2016 / 15:32
2
answers

What makes an object eligible to be allocated on the stack?

Link to the article: link   "The programming language (Java) does not offer the possibility to let the programmer decide if an object should be generated in the stack.   But in certain cases it would be desirable to allocate an object on   ...
asked on 04.04.2016 / 23:27
1
answer

Differences over WCF, WebService and WebApi with Asp.net?

I will create a service to make my company's data available to a customer. But I am evaluating the creation of the services and I came across this technical doubt. I know there are differences between the 3, but I do not know exactly how to eval...
asked on 25.02.2016 / 17:07