Posts by Rodrigo Guiotti • 2,317 points
66 posts
-
0
votes1
answer728
viewsA: Change Time of Commit
Use git filter-branch with a filter to change the field you want: GIT_AUTHOR_DATE or GIT_COMMITTER_DATE look like the best options for your case. If you want to make changes to the…
-
5
votes2
answers4914
viewsA: How to delimit a string field in c#
You probably want something that truncates the message. const int MaxTamanhoEndereco = 30; var endereco = "Rua dos Bobos, número Zero"; if (endereco .Length > MaxTamanhoEndereco ) endereco =…
-
0
votes3
answers1740
viewsA: Add a char to each iteration for c++
There are many possible solutions to the question. For example, it is possible to add the fixed characters outside the loop and the repeatable character inside it as in the code below, the problem…
c++answered Rodrigo Guiotti 2,317 -
2
votes2
answers15565
viewsA: What are the differences between Kernel and Microkernel?
In practice, it depends more on the application. If you are going to work with a Desktop PC, it is worth counting on all the features of a complete kernel or even considering support for several…
-
1
votes3
answers539
viewsA: Byte separation
The same way you did the writing... now you need to do the reading. Just follow the same order. For example, you put the size with writeInt and read with readInt. Do the same pro remainder (if you…
javaanswered Rodrigo Guiotti 2,317 -
6
votes3
answers2210
viewsA: What is the purpose of the builder of an Enum?
Works similarly, but you can’t call the builder yourself. In the example you put, the constructor is called twice and MASCULINO and FEMININO are initialized with past value (1 and 2 respectively).…
-
2
votes1
answer4109
viewsA: Converting char vector to string - C++
1) Why don’t you make name a direct char vector since you convert it to it later? Also no need to copy beyond 10 positions, since you will ignore. char name[10]; 2) You limit your name in the vet…
-
0
votes3
answers1754
viewsA: What is called the replaceable method in the constructor?
The way to fix this problem is not to use methods that are replaceable (since Java does not use the virtual word) within the constructor. Only use static, private or final methods in manufacturers.…
-
0
votes2
answers57
viewsA: Redirect Flex input to a string
You can pass the file by argument. ./inputfile test That’s what the argc and argv of the main function are for. int main(int argc, char **argv) argc is the number of parameters received. In the…
-
3
votes1
answer499
viewsA: How to use Git commands without sudo?
You have two options: 1) Checkout as another user. ("git checkout ..."). 2) Change the permission throughout the project so that the user you want can use the filesystem. (chown -R)…
gitanswered Rodrigo Guiotti 2,317 -
12
votes6
answers4038
viewsA: What is lexical analysis?
What would be the Lexical Analysis? It is the analysis of lines of characters to create symbols that facilitate the understanding of what is written there. Lexical Analysis and Parsing/Parser is…
-
3
votes2
answers998
viewsA: Is there any way to change a commit message?
You can change the latest message with the command: git commit --Amend To change older messages, you need to change the base from where you are working so that the latest one is the top.…
gitanswered Rodrigo Guiotti 2,317 -
8
votes3
answers590
viewsA: Doubt about Inheritance
This is the desirable behavior to have polymorphism. When casting, the class is not converted, but it can be understood as a class from which it inherited. This is advantageous so that you can, for…
-
2
votes1
answer533
viewsA: Indefinite reference in C++
This is not a good way to solve this problem because every time you make a change to the.cpp account file, you will need to recompile the main.cpp file. The best would be to hit the way it is…
-
1
votes1
answer54
viewsA: Doubt in receiving data
In real time, it can be difficult, not to mention impossible. Some delay you should have, since you have the network between computers in the middle. The best way to communicate is a server client…
javaanswered Rodrigo Guiotti 2,317 -
2
votes1
answer37
viewsA: Problems with bandwidth limits
On average, each view is consuming just over 8 Mega to 2700 views consume 22GB. It seems consistent with the content of your site? To improve this, the way is to optimize even (reduce images, pages,…
serveranswered Rodrigo Guiotti 2,317