3,359 reputation
726
bio website
location
age
visits member for 2 years, 9 months
seen Mar 18 at 11:07

Jan
9
comment if ('constant' == $variable) vs. if ($variable == 'constant')
@crazy2be: Speak for yourself. CppCheck currently warns against this kind of errors and saved my neck a couple times. If you mean assignment, it suggests extra pair of parentheses, if((q=!p)) goes without warning.
Jan
9
asked Creating huge decision tree
Jan
9
accepted Representing a rule in a ruleset
Jan
4
comment Representing a rule in a ruleset
Actually, yes, in essence you could say that - but it would be quite narrowly specialized (so broad, general DSL rules would apply only marginally) and this question pertains to internal representation of its fundamental tokens. If we have a simple engine at the core, we can start building syntax and features from there. This is to work in resource-limited environment and on a budget, so no "let's think up some fancy syntax and then write a complex compiler and a sophisticated engine for that", but rather "get a working engine, add some rudimentary user-friendliness when it's done.")
Jan
4
asked Representing a rule in a ruleset
Jan
4
comment Are immutable/stateless singletons bad?
I really wonder what real-life scenario could require this kind of feature.]
Jan
4
comment Root cause analysis in event correlation
As I wrote, "tokenized", I meant the logs are primarily machine-readable, and only then parsed into something user-readable. Bit flags denoting conditions of specific detection points etc. I can read internal state of the main module but must depend on (tokenized) messages of external modules. Reinventing the wheel may be necessary because this is to work on an embedded device, JBoss is far, far too heavyweight. Adding a lightweight interpreter of some programming language might be viable but I'm afraid it still may be too much.
Jan
4
comment Are immutable/stateless singletons bad?
@StampedeXV: Yes, a stateful singleton certainly. A stateless and immutable one - I'd be really curious to hear any examples but I'm not holding my breath.
Jan
4
answered Are immutable/stateless singletons bad?
Jan
4
asked Root cause analysis in event correlation
Jan
2
answered How to effectively do manual debugging?
Jan
2
comment How to effectively do manual debugging?
1. Eliminate half the possible causes. Problem vanishes. 2. Restore that half, and eliminate the other. Problem vanishes. 3. Eliminate only few possible causes. Problem vanishes if you eliminate any arbitrary 20% of them. 4. Start examining performance, underlying engine and running in circles. 5. Panic.
Dec
21
awarded  Nice Answer
Dec
21
comment Are all security threats triggered by software bugs?
A chance of a computer system corrupting the permission bits on random files is entirely possible. A file that is globally writable and SUID root can be trivially edited to elevate user permissions.
Dec
21
comment Are all security threats triggered by software bugs?
@DocBrown: Yes - sometimes reduction of security is required as cost-performance tradeoff...
Dec
21
comment Are all security threats triggered by software bugs?
@ChrisF: Thanks for putting in words what I wanted to say but didn't know how. Edited answer to clarify.
Dec
21
revised Are all security threats triggered by software bugs?
edit per comments
Dec
21
revised Are all security threats triggered by software bugs?
deleted 2 characters in body
Dec
21
answered Are all security threats triggered by software bugs?
Nov
30
answered When do I bite the bullet and hire a developer?