ProgrammingPython

Python ternary operator

Today's Python discovery: Python doesn't have the C style ?: ternary operator (e.g.: cond ? valueIfTrue : valueIfFalse). But as of Python 2.5 it has a ternary operator with its own syntax: value_when_true if condition else...
Programming

Setuid demystified

Interesting that the Unix calls for setting user ids of processes are so varied and so complex, that they warranted an entire paper. I only skimmed, but I did get a pretty good description of the "saved uid" parameter of the...