PHP Bashing

let's do a little php bashing on my way :) found this posted by 0xq1

% php -a
Interactive shell

php > if ((true == "true") && ("true" == 0) && (0 == false)) echo "wtf!";
wtf!

anybody want to try to explain, what is going on?

more ...

simcard routing (bug?)

i got an interesting bug with a mobile phone from my mum. In fact, it is not a bug from the phone itself. Imagine, you are upgrading your phone and want to stay with your number. but you get a new one as well. so we have the following setup ...

more ...

geometric progression modified

During a night out, a friend brought up an interesting topic: if you have a fixed length and you always walk the half which is left, you will never get to the end, but it's trending towards it. In fact it is written like this: $\sum\limits_{i=1 ...

more ...

birthday paradox modified

Not long ago, i wrote an article about the famous birthday paradox. Basically, it says: take an amount of people and calculate the possibility two of them have them same day as their birthday. The possibility is crazy high. Now the basic idea: We calculate the total amount of combination ...

more ...