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

2d
comment Color SVG from external CSS
Yep, that's it. You can think of it as a barrier, that the <img> tag is creating between the HTML and SVG. There are also some other alternatives to get the CSS to the SVG: <style>@import</style> in the SVG, or a Link HTTP header attached to the SVG (might not work cross-browser, but you don't need to touch the SVG file).
2d
comment Color SVG from external CSS
Nope. CSS always takes advantage over attributes: style attribute -> <style> declarations -> fill="green" That was made deliberately to allow for automatic transformations (think XSLT) to be overwritten later by stylesheets.
2d
comment <? print $var; ?> dangerous or not?
This advice stems from times, when PHP had register_globals on per default. That setting would dump all GET, POST and REQUEST parameters as global variables. Hence a request to script.php?var=malicious would print malicious. The register_globals setting is nowadays widely accepted as a terrible thing and most certainly disabled.
2d
comment Error: "ValueError: No JSON object could be decoded"
If in doubt, if the data is valid JSON, you can post the contents that you fetch to services like JSONLint.
Jan
29
comment cp {fileList}* dir_name where fileList contains files and directories
OK, I see the point for not letting beginners learn unattended from ABS. And yes, the maintenance interval and quality of the examples are sometimes far from optimal. (But still, it is a large resource of annotated solutions to common problems. So, the gist is, ABS yes, but with huge content warning for beginners.)
Jan
29
comment How to upload a .txt or .docx file in canvas using javascript
Look at OwnCloud: They do previews like that for text and Word docs (although I don't know, if they use canvas for all the other things apart from PDF). But when you look at their source, you'll most likely find, that this is a non-trivial feature. Maybe you can incorporate OwnCloud itself in your product?
Jan
28
comment cp {fileList}* dir_name where fileList contains files and directories
@JohnTracy if you want (or must) venture deeper into bash scripting, you should check out the Advanced Bash Scripting Guide (where "advanced" is a misnomer, since it targets beginners, too).
Jan
28
comment What To Use Instead Of CSS Filters
Who says, CSS filters are bad practice per se? They are not so widely supported, and overdoing will hurt performance, but apart from that they are exactly the tools designed for your need here.
Jan
28
comment cp {fileList}* dir_name where fileList contains files and directories
I fail to understand, why your script is any more complicated than cp -r "$1"/* "$2"/* "$3" (+ sanity checks). Could you specify more?
Jan
28
comment How to remove main list items' anchor using jQuery?
the > ul is unnecessary, since #menu itself is the first ul. Try #menu > li > a.
Jan
28
comment How to upload a .txt or .docx file in canvas using javascript
How would a rendered .docx file in canvas look like? How would the browser know what to show? (If you want to show a thumbnail/preview, you will need a server-side component, that renders that after the upload.) There is only one non-image format, that I know to be reliably presented in canvas: PDf via Mozilla's pdf.js (which you need to include first).
Jan
28
comment How to upload a .txt or .docx file in canvas using javascript
So, to get this straight, in principle the question has nothing to do with canvas, but with uploading files via AJAX?
Jan
27
comment Does assigning to innerHTML delete HTML subtree?
I'm wondering, who dealt out the -1...
Jan
27
comment Does assigning to innerHTML delete HTML subtree?
To add to @Bjorn's answer: It's a terrible idea to remove the children first, because each such action triggers a redraw in the browser, making your UI sluggy. You lose all speed in that action, that setting innerHTML directly gains.
Jan
27
comment How can I use mysqli_query inside PHP class?
Using $connect as a parameter is actually considered good practice (google for "dependency injection"). For example, it makes your code easier to test.
Jan
23
awarded Notable Question
Jan
23
comment Git conflict but no one line showing
or execution rights. If somehow on the way (file systems, chmod, ...) the file changed permissions from rw-rw-rw- to rwxrwxrwx, that might be a source, too.
Jan
21
comment Tabs between words
Seems like you are looking for the <table> element, no?
Jan
21
comment svg overflow in IE
Like svg:not(:root) { overflow: hidden; }?
Jan
21
comment how to bypass robots.txt while crawling
Maybe you have problems with Cross-Origin-Requests, not with robots.txt?
1 2 3 4 5