Boldewyn

Germany

manuel-strehl.de

Age: 34

Boldewyn is the name of the donkey in German fables (at least, the ones from Goethe). Despite its bad name, a donkey is an animal with its own head and quite a portion of wit.

As someone pointed out once, if you say to a horse to jump down that abyss, it would happily do so, whereas the donkey would give you a kick where you deserve it to.

And someone else pointed out, that laziness is a core requirement for a good developer...

13h
comment Is it possible to make own syntax rules in Python?
FYI, pathlib uses this technique in a fantastic way: They overload __div__() to allow path notations like q = p / 'init.d' / 'reboot'.
13h
comment Is it possible to make own syntax rules in Python?
@Ffisegydd was close. myarray[:, 4] selects from the first array element up until the one with index (, 4) (a tuple). I assume, Numpy reacts to that with a custom __getitem__() implementation.
Feb
27
comment How to structure tags for a table where each row is a form?
You are not the first one to have this problem: stackoverflow.com/questions/4035966/…
Feb
27
comment How to name a Github repository?
See also this question: stackoverflow.com/questions/11947587/…
Feb
27
comment How to name a Github repository?
Also, another one of mine: github.com/Codepoints/Codepoints.net. This is a long-running project and I haven't encountered any technical problems with the dot in it.
Feb
27
comment How to name a Github repository?
Coincidentally, I pushed a repo with a dot to Github just yesterday: github.com/Boldewyn/.vim. Works like a charm.
Feb
26
comment PHP compare equality, emtpy string, "0" and 0
If you are interested in many more of those interesting PHP behaviors, I suggest the all-time classic here.
Feb
26
comment Autoclose alert doesn't alert
Where does the jQuery .alert() method come from? A plugin? Which one? What is the console saying?
Feb
25
comment What's the best way of distinguishing bools from numbers in Python?
@user5061 thanks! I removed the statement completely, since it doesn't work at all for this purpose. The a.__class_ is bool was a neat idea to add to the tests, by the way!
Feb
25
revised What's the best way of distinguishing bools from numbers in Python?
remove flawed example
Feb
24
comment Disabling a button in HTML using javascript
@Jimnah you can accept it (little gray hook below votes).
Feb
24
comment What's the best way of distinguishing bools from numbers in Python?
Indeed! My Python 2.7 says: 1 in (True, False) is True This is surprising. :(
Feb
24
comment What's the best way of distinguishing bools from numbers in Python?
Cool! If you also have other ideas how to distinguish bools from integers, I'm curious to see how those will do.
Feb
24
revised What's the best way of distinguishing bools from numbers in Python?
added 473 characters in body
Feb
24
comment What's the best way of distinguishing bools from numbers in Python?
Try stmt3 = "123 is True or 123 is False= (basically my answer below). It is yet faster than stmt2, because it doesn't create a new list (True, False) on each comparison.
Feb
24
comment What's the best way of distinguishing bools from numbers in Python?
@MalikBrahimi No. True and False are specific instances of the class bool(int). Literal 0 and 1 are instances of int().
Feb
24
answered What's the best way of distinguishing bools from numbers in Python?
Feb
24
comment What's the best way of distinguishing bools from numbers in Python?
Alternatively, since bools are exclusively from [True, False], you could do value is True or value is False, but I doubt, that it's faster.
Feb
23
comment Confusion with height:auto
Ah, the magic of float and clearfix! You might be interested in reading this other question: stackoverflow.com/questions/8554043/what-is-clearfix
Feb
23
comment Remove partially duplicate lines using a Bash script
If you know the length of the first two columns, you can use uniq --check-chars=N for this.
1 2 3 4 5