Sunday, May 22, 2016

Meanwhile, in Edenvale

Crime in South Africa still out of hand....another armed robbery in Gauteng on Friday.

Click here for the full story from News24.

Saturday, May 21, 2016

New Star Trek on its way :)

Looks like we've got quite a bit of new Star Trek coming out, here's the trailer for the new feature film "Star Trek: Beyond":

I've also found the teaser trailer for the new series (doesn't show much, though) which will premiere on CBS in January 2017:

Iron Maiden Live in Cape Town (18/05/2016)

I was fortunate enough to be able to attend Iron Maiden's Cape Town leg of their 'The Book of Souls' Tour! What an awesome night :)

On the way we stopped to grab some munchies:

Video coming soon!

Friday, October 10, 2014

Mall robberies

Wow, what is up with all the robberies happening inside South African shopping centres now?

A colleague of mine at work mentioned to me yesterday that she actually did not want to go to the Istore to buy something cause she was scared they're going to rob her. My thoughts were, well if you're going to the Istore - you're probably going to get robbed one way or another in any case :)

Sunday, July 27, 2014

Phone thieves and tracking programs for Android

I find it really interesting that there are so many people (I must admit - I did it myself as well) that sign up for services like Lookout , Androidlost, and Prey.

But the unfortunate reality is that not one of these services mean anything when your phone has been stolen, every phone thief knows the first thing you do is switch it off.

So there's really no point to trying and track it then?

What I need is a thingy where you can track a phone even if the battery is removed.

Tuesday, May 27, 2014

Handy sed command to replace PHP error_reporting

With the new PHP 5.5.9 packaged with Ubuntu 14 I ended up with lots of "Standards Warnings" from PHP, since error_reporting(E_ALL) now includes this. So I wrote a quick one to replace it in every file in the current directory as well as in subdirectories:

find ./ -type f -exec sed -i -e 's/error_reporting(E_ALL);/error_reporting(E_ALL \& ~E_STRICT \& ~E_DEPRECATED);/g' {} \;

Works like a charm!

Wednesday, February 19, 2014

Mr. Selfridge

I've been watching this excellent show (since 'The Paradise' is on hold for now) about the life and times of Harry Gordon Selfridge and the department store (Selfridge & Co) that he started in 1909.

I was, however, very interested to see how much of it was manufactured and how much is based on actual truth, so I started looking around online and found this article with a bit of background on the real Mr. Selfridge. It seems the show isn't far off, although I would like to know if they are going to continue with the story and cover his whole life up to his death in 1947.

Apparently the real Mr. Selfridge died a penniless man who was mistaken more than once for being a homeless vagrant, since he actually lost the store during a later time period in his life.

The real Harry Gordon Selfridge

If so I think the best is still to come, I'm still on Season one!

Block whole countries via .htaccess on Ubuntu

Found a very handy tool today to generate .htaccess files if you have problems and wish to block certain countries from your site.

Just go visit IncrediBILL's HTACCESS TOOLS. Choose your countries you wish to block and copy/paste it directly into your .htaccess file. Easy as that.

Thanks for the handy tool Bill!

Thursday, October 17, 2013

IOS 7 + Cordova (Phonegap) issues and crashes

I tracked down two issues so far when creating Cordova apps for IOS 7 - so I thought I will mention it here.

1) If your IOS app contains divs that do not refresh until you start scrolling them - the problem is most likely this. A fix is outlined on that site but I've found in my case it worked better coupled with a Javascript settimeout() to make sure the screen elements are done rendering before applying the new z-index.

2) If your app just crashes but runs fine on IOS5 and 6 - the very first thing I'd recommend doing is check your CSS. This CSS will consistently crash both Safari and your Phonegap app on IOS 7.0.2, but works fine in IOS5 and 6:

.m-ui-checkbox input, .m-ui-radio input {
width: 0px !important;
height: 0px !important;

I realise that this CSS doesn't really make sense, (one would rather use display:none !important; in this case), but nonetheless it should not crash the browser.

Hope it helps someone out there.