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

1d
awarded Supporter
1d
awarded Autobiographer
1d
comment Regular expression to remove a file's extension
Yes: jsperf.com/file-extension-extraction. However, it is a micro-optimization. So, if you do this only once in your code, take whatever solution you want. If you do this 1000 times every second (e.g. during scrolling) or inside a heavily used library, the gain will be noticeable.
2d
comment PHP post 500 internal server error and switch statement
Last line, the echo is not terminated with a ;.
Dec
16
comment htaccess / custom 404 page - everything seem to be fine, but it does not work (frustrated)
The main configuration (usually under /etc/apache2/): Does it allow .htaccess files? Also, the file name of new404.html must start with a /: httpd.apache.org/docs/2.2/mod/core.html#ErrorDocument
Dec
15
comment Add stdin as another file to a tar archive
Interesting! OK, that would indeed work, but I'm bound to Bash here.
Dec
11
awarded Good Answer
Dec
9
answered Element type 'date' when accessed by getElementsByTagName() shows it as 'text'
Dec
4
awarded Necromancer
Dec
1
comment two space tab is the safest one?
Sorry to issue a close vote, but this question has more to it than meets the eye. The battle of tabs vs spaces (and yes, how many) is sometimes fought religiously, and the best common ground is: Use what the code already uses, that you edit.
Dec
1
awarded Supporter
Dec
1
awarded Autobiographer
Nov
30
awarded Populist
Nov
29
comment Add stdin as another file to a tar archive
Well, --dereference does have an effect: Without, the packed /proc/self/fd/0 remains a symlink, with it it's a named pipe (the type that ls -F appends a | to). But a packed pipe is of limited use...
Nov
29
comment Add stdin as another file to a tar archive
This suffers from the same problem as my /proc solution: tar packs a pipe, not a regular file. On unpacking, it says: $ cat VERSION\ncat: VERSION: File or folder not found.
Nov
28
comment Best practices for passing HTML as JSON
"Any of that"? JSON.stringify is a JSON serializer. @OP there are edge cases, therefore I suggest JSON.stringify. One example: newlines are not allowed in JSON strings and must be encoded.
Nov
26
comment RegEx for time in JavaScript
I also linked to the Wikipedia article above. Tl;dr: It's a way to cater for minimal time differences caused by Earth's a bit irregular orbit around the sun.
Nov
26
comment RegEx for time in JavaScript
This problem (validating time input) has so many facets, that can go horribly wrong. E.g., have you heard of leap seconds? Yes, that's right, you can have 61 seconds under certain circumstances. It is of extreme importance, that you define clearly, under what conditions the regex shall be used and what the expected outcome is.
Nov
26
accepted Add stdin as another file to a tar archive
Nov
25
comment Add stdin as another file to a tar archive
Thanks! That's basically how I'm doing it right now. Doing a mktemp, adding it to the archive with --transform=s/tempfile/VERSION/ and then deleting. I was just hoping to make this step a little more concise with some kind of pipe magic.
1 2 3 4 5