Ulrich Schwarz

Germany

absatzen.de

Age: 34

Nerd by day, nerd by night. LaTeX guru go-to person for half the department, and wrangling all things web by trade.

1h
comment “'NoneType' object is not iterable”: I know my function returns nothing, but
Don't use bare except, ever, it catches a lot more than you bargained for!
3h
comment Max Flow and NP, Need some Experts Verify this challenge?
The answer depends on whether you're a student just learning about the concepts or not. The step from optimization problem "maximize x" to decision problem "is there a solution of value c or better" (and from "find best solution" to "find best solution and say yes if its value is c or better") is mostly not spelled out after complexity 101.
15h
comment Remove all 'at' Jobs except first five jobs
tail -n +6 will start at line 6. (Yes, bizarre syntax.) Or, untested, sed -ne '6,$p'
15h
awarded Constituent
Apr
16
reviewed Approve suggested edit on Should I declare JavaScript variables and then initialize right after?
Apr
15
comment Plone/Apache custom error page
@fRiSi: yes. (If I recall, the 404 page has a 30x case, too, though, in case a page was previously known under that URL, so I guess the OP has to think about how much they want to chop out.)
Apr
14
comment SSL by IP or domain
A certificate can cover multiple names ("Subject Alternative Names"), and my vague memory is that they have the form DNS:www.foo.example in the config, so I guess there's a syntax to have naked IPs in there, too.
Apr
14
comment Can I use srcset attribute in css to edit resolution?
@ShastriH: didn't even use the "share" link ;-). Btw, -webkit-image-set can go anywhere an image is asked for, not only background, so it should cover all (Webkit) bases.
Apr
14
comment gzip compression does not work for all files
What content-type does it ship as? (This is independent of the file extension; you can look it up in the browser developer tools or using wget --server-response or th elike..)
Apr
14
answered Plone/Apache custom error page
Apr
14
comment CSS Above or Below Body for Speed?
Speed to what? Speed to see (possibly unstyled) text or speed to see the final fully formatted page?
Apr
14
comment How to find out if a system uses SysV, Upstart or Systemd initsystem
Very handwavy, couldn't you see what process has pid 1 and what strings says about it? For my Ubuntu box here, the results contain "upstart", now it's just data gathering ;)
Apr
14
answered Latex listings package deletekeywords option not working
Apr
13
reviewed Approve suggested edit on Chrome incorrect z-axis order with translate3d
Apr
12
comment how to validate that an input is email using javascript functions?
If you use input type="email", the browser will do the validation for you. (Also remember you always need to validate server-side either way.)
Apr
12
answered Multiple background image CSS repeat
Apr
11
answered Why does the height adjust when only width changes?
Apr
11
comment Why does the height adjust when only width changes?
possible duplicate of Why are margin/padding percentages in CSS always calculated against width?
Apr
11
comment Print line have special format and amount of comma
Just to make sure the obvious: your fields are separated by commas? (One of your sample lines has |, which I could see people using as separators.)
Apr
11
answered Show that L and Images cannot both be finite
1 2 3 4 5