Boldewyn

Germany

manuel-strehl.de

Age: 35

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...

2d
awarded Great Question
2d
awarded Guru
Apr
25
comment Can I change the behaviour of "raise" or "Exception"?
I was to write about sys.excepthook, but @IljaEverilä beat me to it with finding the dupe.
Apr
21
comment Why aren't linear background gradients working?
You have a comma missing after left.
Apr
18
awarded Notable Question
Apr
18
comment selected = selected in Codeigniter PHP
@Rajan um, no idea? What value do you want to be matched, when the <option> is selected? That one then. Something, that is not part of the same $site variable, that is the source of your <option>'s value, most probably.
Apr
18
comment selected = selected in Codeigniter PHP
From your PHPMyAdmin screenshot, when do you ever expect $site->id to be identical to $site->site_key?
Apr
14
comment Find article link by bibtex citation key
Additionally, global identification is what DOIs are for, but BibTeX identifiers are meant for internal use only. Totally different beasts.
Apr
14
comment .Finding the closes element in jQuery
closest() looks up the parent chain, not for siblings, children or other nodes.
Apr
12
comment Batch file opens Default Browser instead of Firefox
Cool, thank you!
Apr
12
comment Batch file opens Default Browser instead of Firefox
So if I understand this correctly, start interprets ...firefox.exe as the title and the URL as what should be started and is intelligent enough to detect an URL and feed it to the default browser?
Apr
12
comment Regex to match URL
@Eddie for your consideration: the answer is from '09, the comment from '11. In natural language you’d want to detect IRIs as well, which will come dangerously close to the useless /\w+\.\w+/u. What will we do then? Last resort is natural language processing and trying to parse the text to get a grasp of the meaning.
Apr
11
comment Is there a convenient way to classify files as "binary" or "text"?
Agreed. I used the long forms for ad hoc documentation, for people who don't know iconv. But -f and -t are usually better.
Apr
11
comment Is there a convenient way to classify files as "binary" or "text"?
Yes, that's the gist of my answer below. Only problem is, that that solution has to look at the whole file...
Apr
11
answered Is there a convenient way to classify files as "binary" or "text"?
Apr
11
comment Is there a convenient way to classify files as "binary" or "text"?
Just remember, depending on your file, that you might miss some text formats: application/xml (and similar like RSS), application/ecmascript, application/json, image/svg+xml, ... You'd have to whitelist those.
Apr
8
comment re.sub doesn't work properly in python
Also possible, one of the whitespaces might not be U+0020 but any of these (classically U+00A0). And if someone pulled a prank, the colon is this.
Apr
7
awarded Autobiographer
Apr
6
comment Mysql DATE_ADD() function is not working in Laravel DB::query() function
The error suggests, that it’s not the query, but what you do with the $result, which seems to be a PDOStatement.
Apr
6
comment JSON.parse get "Uncaught SyntaxError: Unexpected token h"
You need to escape the backslash, too. When you do for \"Date\", you make sure, that they survive Javascript and JSON sees those as string delimiters. If you also want JSON to ignore the quote, you need another backslash: \\\"https...
1 2 3 4 5