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

Feb
4
comment Remote an element that doesn't have a parent
As long as the element is not attached to any document, it’s basically little more than a plain JS object. You can discard it with element = null;.
Feb
2
comment Javascript form submit doesn't submit properly
If it does have an href attribute, you trigger a GET request, because it's not the form that's submitted, but the <a id="sa-warning">. Add a return false; (quick 'n dirty) to the click handler.
Feb
2
comment Javascript form submit doesn't submit properly
@Nijn does the <a id="sa-warning"> indeed have no href attribute at all?
Feb
2
comment Javascript form submit doesn't submit properly
@JTC the button itself should submit a name=value pair, if given in the HTML.
Jan
29
comment JSON.parse() isn't working
jsonlint throws an error in the JSON that you provided (something about undefined, cannot locate it). Look at the browser's console log, maybe it shows a better debug message.
Jan
27
comment Regex issue unicode chars, is it safe to parse a Post to preg_match?
"An invalid subject will [...] match nothing"— php.net/manual/en/reference.pcre.pattern.modifiers.php. Are you sure, that the string that you feed into the regexp is valid UTF-8? Also, as Wiktor says, \pM and \pN are useful additions, maybe \pP for punctuation, too.
Jan
26
comment Django 1.3: __file__ contains wrong value (path to different app)
Thanks anyway! Time for me to dig deeper into Python's module loading...
Jan
26
comment Django 1.3: __file__ contains wrong value (path to different app)
OK, tested it. No change with 1.3.7, the problem persists.
Jan
26
comment Django 1.3: __file__ contains wrong value (path to different app)
By the way, I suspect something similar like what is described here: nedbatchelder.com/blog/200904/…. However, I already do use imp.load_module, and I checked the content of the *.pyc files, that is correct. So it's not the exact same issue.
Jan
26
comment Django 1.3: __file__ contains wrong value (path to different app)
Yes, it is common, that both modules are loaded at the same time. Think components, that are imported on request/use. The most recent minor version seems to be 1.3.7. I haven't used this, but try, if updating changes something.
Jan
26
asked Django 1.3: __file__ contains wrong value (path to different app)
Jan
25
awarded Caucus
Jan
25
comment Parse local HTML python (lxml)
html.fromstring wants a string. You feed it the result of etree.parse (not a string).
Jan
25
awarded Autobiographer
Jan
23
awarded javascript
Jan
21
answered Vim not showing longer unicode characters
Jan
21
comment Git: fatal: Cannot lstat '.README.swp': Permission denied
Um, rm .README.swp? Without git. Try quitting vim first, if that doesn't work, too.
Jan
21
comment Vim not showing longer unicode characters
What is the current file's encoding? set fileencoding? (with the ?). If it’s not utf-8 or similar, you’re out of luck, because the cat emoji won’t be representable in older encodings (like latin-1).
Jan
16
awarded Yearling
Jan
15
awarded Yearling
1 2 3 4 5