Dirk Herrmann
A quiet enigma. We don't know anything about Dirk Herrmann yet.
Posts
There is one thing to clarify when mapping a float interval to an integer interval, namely how the boundaries of the float interval shall be mapped to the boundaries of the integer interval. Takin...
posted 6mo ago by Dirk Herrmann · edited 6mo ago by Dirk Herrmann
Assume this trivial logic puzzle which I have made up: There are three boys, Fred, John and Max. No two of the boys have the same age. Max is older than John. Fred is not the oldest one. Quest...
0 answers · posted 1y ago by Dirk Herrmann · edited 1y ago by Dirk Herrmann
What if a question is beginner level? I would say: Someone should answer it. Some of the beginner level questions on stackoverflow have received answers that explain things in wonderful ways. Be...
posted 1y ago by Dirk Herrmann
As @Quasímodo has shown, the search pattern \(abc.*\)\@<!bird\|bird\(.*xyz\)\@! solves your problem. But, why does it work, and why does your original approach not work? What you want to achi...
posted 12mo ago by Dirk Herrmann
grep is not the right tool for your case. You can use basename: basename a/b/c --> c basename a/b/c/ --> c or, in your case basename branches/features/arm_and_musl --> arm_...
posted 11mo ago by Dirk Herrmann
What does ptr() mean in this code? An expression like ptr followed by parentheses as in ptr() is a function call. In your example, ptr is a variable of type "pointer to function" because of t...
posted 1y ago by Dirk Herrmann · edited 1y ago by Dirk Herrmann
Note: This answer was written for a version of the question that focused on getting rid of the if-else, rather than on an explanation of the workings of the recursive tree-traversal. One way of ge...
posted 1y ago by Dirk Herrmann · edited 1y ago by Dirk Herrmann
To understand the concept of recursive tree traversal, I would like to give you an analogy. Imagine a labyrinth of rooms connected like a tree structure. That is, there is an entry to the first r...
posted 1y ago by Dirk Herrmann · edited 1y ago by Dirk Herrmann
The concept that is important to understand here is the concept of operator precedence. Assume you have an expression a + b * c. What does it mean? You could have the following options: (a + b) ...
posted 1y ago by Dirk Herrmann · edited 1y ago by Dirk Herrmann
The expectation for all posts is, that a post is always understood as the own work of the poster, who has the copyright and responsibility for it and offers it to the site according to the site's c...
posted 3mo ago by Dirk Herrmann
I like the idea, but more as an exercise or a demonstration what can be done with Python. I also like that the code comes with a set of test cases which are written in a way that they nicely serve...
posted 1y ago by Dirk Herrmann
To extend a bit on some points already mentioned: Regarding where to add checks on a case by case basis: If you have a static code analysis tool that can give you information about areas where pro...
posted 1y ago by Dirk Herrmann
One simple possibility to eliminate a set of lines with precisely known content is to use the patch tool. The below code shows an example shell script. The script calls patch on the file to be mo...
posted 1y ago by Dirk Herrmann
Some thoughts about your design / code (not repeating what was already said by Derek): You have chosen member _observers of class State to be a list, and member function register to append to ...
posted 1y ago by Dirk Herrmann
The way your code handles the variable i within the for loop seems to indicate a wrong understanding of the meaning of for i in range(1,n+2): range(1,n+2) will provide an object of type range. ...
posted 10mo ago by Dirk Herrmann · edited 10mo ago by Dirk Herrmann
Reputation | 1079 | |
Number of top-level posts | 1 | |
Number of answers | 25 | |
Sum of received votes (up minus down) | 111 | |
Number of edits made | 29 |
Earned Abilities
Statistics
Posts | ||
---|---|---|
Count | 26 | |
Questions | 1 | |
Answers | 25 | |
Articles | 0 |
Votes cast | ||
---|---|---|
Count | 58 |
Flags raised | ||
---|---|---|
Count | 2 |