Posts by Pedro Witzel • 358 points
15 posts
-
0
votes1
answer16
viewsA: Error using Gradle distribution
By error seems to me more a problem with a git merge. Do git status for more information and then take a look at the file Script1.groovy to see if there are no balises that indicate a merge in…
-
1
votes1
answer30
viewsA: How to call a function more than once in a lambda Expression?
Unfortunately Jenkins does not support all groovy options. Especially in older versions. I’m on 2.241 and the code down worked: // usa o readFile fornecido pelo Jenkins def file_text = readFile…
-
1
votes1
answer40
viewsA: Chaining of pipelines
The variable executarJobB There’s no need for that. If the user accepts with Encadear the job continues and goes straight to build. But if it cancels, the build fails. Then maybe you didn’t want it,…
-
0
votes1
answer107
viewsA: Encrypt password in groovy
You have two options byte[] messageDigest = ... Or def messageDigest = ... It’s long since posting, but for future reference.
-
1
votes1
answer371
viewsA: Linux - Symolic Link + Dropbox
The ideal is to have the file you want to share saved in the Dropbox, for example: /home/me/Dropbox/sublime/.config Then on every computer you plan to use sublime you overwrite the original sublime…
-
1
votes2
answers303
viewsA: Edit local files without committing
The ideal would be to create a directory where you would put the required files running and delete it with the .gitignore. For example, create a directory called build and when launching the run,…
-
7
votes3
answers300
viewsQ: Recover groups of a regular expression in Perl
I am running this regular expression to separate the digits of a version: ([\d]+)+ As you can see in this example, it works well enough to cover my needs. However, I have to add this treatment in a…
-
1
votes2
answers4158
viewsA: How to create a dynamic chained list within another dynamic list in C?
The variables prox_* has the wrong name, which can lead to confusion. For example, prox_musica is typified with album. If the intention is to create chained lists, the ideal is that the variable has…
-
0
votes2
answers117
viewsA: Transfer all files from a directory
According to the address format of your directory, I believe you are on a Windows system. The libraries for C++ for directory search are: Findfirstfile and Findnextfile See here a simple example of…
-
2
votes2
answers357
viewsA: How to access information from a. torrent file?
There is the library libtorrent in C++. But it also provides a python interface if Voce is more comfortable with this language. import libtorrent info = libtorrent.torrent_info('test.torrent') for f…
-
1
votes1
answer904
viewsA: Program in C where you have to remove a student from a vector
As said by @Luiz Vieira in the comments of the question, the two loops could be merged. For examples where it reads encontrou == 1 in the second loop, could be exchanged for…
canswered Pedro Witzel 358 -
1
votes1
answer110
viewsA: C# Movement of Files
What happens is that due to your 1000000000 iterations loop, when the file does not exist in the output System.IO.File.Exists(saida + code + ".png") == false he moves entrada.ToString() + "t (" + i…
c#answered Pedro Witzel 358 -
3
votes1
answer81
viewsA: How to use different heights for BMI in C?
I believe your mistake comes from break within the ifs, that breaks the for of the variable j (even so it is not recommended to use loops breaks). Trade him for Else if in the next condition.…
canswered Pedro Witzel 358 -
0
votes2
answers92
viewsA: How to take the signature of changed methods in a commit
GIT already identifies, when possible, the method that has been modified. Just launch the command: git show $COMMIT To better filter the result can be by command line (via linux) git show $COMMIT |…
-
1
votes2
answers236
viewsA: How to receive an X number ranging from 0 to 10 100 in C?
How about progressively stock the number in a double? #include <math.h> //pow() int c; long double valor = 0.0; double potencia_de_dez = 0; while ( (c = getchar()) != EOF ) { //Incrementa…
canswered Pedro Witzel 358