mpartel

Age: 26

Aug
24
comment How can I return a 503 status in apache without invoking external scripts
Redirect 503 / seems to work.
Aug
7
comment Waitpid equivalent with timeout?
Isn't all CPU scheduling strictly speaking arbitrary on most (non-realtime) OSes? That is, you can have an arbitrarily long scheduling delay immediately after starting your worker no matter which timeout mechanism you use. That said, this solution is indeed likely to be somewhat less accurate than many others.
Jul
9
comment PhpStorm autocompletion in traits
I think tightly coupled traits are entirely reasonable in scenarios like this. In a (mostly) dynamic language, we must (mostly) rely on documentation to guide the users of our abstractions anyway. Superclasses have the problem of being hard to compose arbitrarily due to single inheritance. Custom assertion classes are fine when you want to do assertions, but that's just one special case.
Jul
2
awarded Curious
Jun
23
awarded Nice Answer
Jun
1
awarded Supporter
May
2
awarded Supporter
Apr
26
awarded Yearling
Feb
18
awarded Caucus
Feb
16
comment Does pointer arithmetic have uses outside of arrays?
@Karu: Oops, thanks, edited.
Feb
16
revised Does pointer arithmetic have uses outside of arrays?
`a + n` -> `*(a + n)`
Jan
27
awarded Popular Question
Jan
9
revised Static strategies or enums for small implementation changes in similar code?
elaborated on enum methods
Jan
9
answered Static strategies or enums for small implementation changes in similar code?
Jan
8
comment Efficient intersection of sets?
Certainly, they are very good implementations for the problems they do solve, but they don't directly solve all variations of every problem optimally. e.g. 'Useless' gave a very plausible improvement that exploited some reasonable assumptions that may well hold in the OP's case. (Of course all the usual warnings about premature optimization and benchmarking are still relevant.)
Jan
7
awarded Custodian
Jan
7
reviewed Approve suggested edit on Javascript to fix header and change logo size on joomla theme when scrolling
Jan
7
comment Efficient intersection of sets?
Isn't this the solution OP was trying to improve upon?
Jan
7
answered Efficient intersection of sets?
Jan
7
answered scala create equal/hashcode/tostring without case class
1 2 3 4 5