Category Archives: Thoughts

Sysadmins these days

How can a person working as a server admin look at following PHP lines and in all seriousness decide that it’s suspicious?

if ( preg_match( '/^\s*(create|alter|truncate|drop)\s/i', $query ) ) {

              $return_val = $this->result;

            } elseif ( preg_match( '/^\s*(insert|delete|update|replace)\s/i', $query ) ) {

            if ( $this->use_mysqli ) {

             $this->rows_affected = mysqli_affected_rows( $this->dbh );

                } else {

              $this->rows_affected = mysql_affected_rows( $this->dbh );

                }

Yes, it’s impossible to knows every PHP function, but not bothering to RTFM and not being able to “decipherer” a fairly simple regular expression, shows complete lack of competence.
I’d stay away from any company employing this tech monkey who asks for help on Twitter. The second noun in his Twitter moniker explains more than the first. Hi there, @monkeypigs.

His allegations would not bother me if not for subsequent spreading of FUD on Twitter and forums. That was a prick move and not acknowledging the mistake is irresponsible at best. I didn’t deny responsibility for my actions. Now’s your turn to show some responsibility and retract your failed allegations, Garry.

Final verdict: People should not make any decisions if they don’t understand what they are talking about.

Live each day as if it’s your last

There is this saying:

Live each day as if it’s your last

I never liked it because it allows for wide interpretation.

I believe, everyone should strive to live every day so that people have something nice to say and remember when you are gone. They shouldn’t have to come up with general phrases like “He was a nice person” and similar.

Alan Turing – The Codebreaker

An obligatory TL;DR

Alan Turing was a genius who defined the basic principles of how computers operate and he helped to end World War II by working on deciphering of Enigma messages. He was a homosexual.

The actual post

In the light of upcoming flick The Imitation Game, I re-watched an earlier TV documentary about Alan Turing – Codebreaker. This time it touched me more than the first. What follows are my thoughts and expansion on the main facts.

When Alan Turing took his own life, he didn’t leave a note. However, he left a legacy with far reaching effects and it has to be appreciated.

UK could have become the major player in computer technologies if they hadn’t treated the genius as badly as they did. Especially during his last years. Many people  nowadays should be thankful for having jobs and opportunities that would simply not be there if not for a man who started the revolution of computing machines. Although, society has come a long way since then in regard to treating people with different sexuality. Who knows – first personal computers could have been created by the Brits as early as 1960s if it wasn’t for the draconian laws of that time that were made even worse by cold war paranoia.

This could and should be used as a perfectly valid argument to make arguing homophobes shut up if he or she had ever used a computer or even works in the industry. And don’t get me started about those on-line comments by homophobic trolls.

If you are homophobic and you’re not reading this on a piece of paper, just think about the hypocrisy. Even the screen you are reading these words would not be possible without the basic principle of using ones and zeroes in computers, and it was invented by a gay person.

I’d like to finish this piece with a quote;

Science is a differential equation. Religion is a boundary condition.

— Alan Mathison Turing

Post image: Decoding Alan Turing by Charis Tsevis