Skip to main content

Seven Things - Tagged by Rob Allen

I was surprised that I made it to the Seven Things thread started by Tony Bibbs, but Rob Allen was so kind to "tag" me and now it's my honor to find seven more victims.

Seven Things you might not know about me:
  • When I was 16, I had a private pilot license (PPL) learned at the Airport of Antwerp. The first year I managed to have enough flying hours to keep my permit but the second year I just couldn't find time to have the minimum required hours to keep my permit. Looking back at this moment in time, I do find it sad I didn't made the effort in maintaining this.
  • I graduated high-school as an accountant and had a job as a junior accountant at the Benelux head office of Century21, but after one month I was already convinced being an accountant was something I didn't wanted to do for the rest of my life. And never spoke of this part in my life again.
  • I never finished college. I was studying IT at the "Hogeschool Antwerpen" and after college hours I worked at the customer care center of an European ISP called World Online (no longer exists). When doing my second year IT they offered me a job as developer and I accepted the offer.
  • I met my wife during a LAN party at Telenet (Belgian Telco), where I was working as an in-house developer and my wife was on her last day as security guard (student job).
  • I'm Dutch, although I'm living in Belgium.
  • My wife told me we were pregnant on the last evening of ZendCon07 and I celebrated this news in a StarBucks shop just around the corner of the Motel6 I was staying at.
  • Our son was born on Father's day being the best gift a dad could wish for.
 Now it's my turn to tag people:
For my tagged victimes, do follow the following rules:
  • Link your original tagger(s), and list these rules on your blog.
  • Share seven facts about yourself in the post - some random, some wierd.
  • Tag seven people at the end of your post by leaving their names and the links to their blogs.
  • Let them know they’ve been tagged by leaving a comment on their blogs and/or Twitter.


Popular posts from this blog

Deploy Docker containers fast to Microsoft Azure

DEPLOY DOCKER CONTAINERS FAST TO MICROSOFT AZURE It’s hard to ignore the fact thatDockeris a way to move forward for rapid application development, distributed architectures and microservices. For developersDockeroffers great advantages as they can build their containers specifically for the task they work on. They grab a base image of a container, modify it for their purpose and prepare the functionality inside the container. Quality, testing and security teams now have a single instance to look at and ensure all functional and regulatory requirements are met. System engineers now don’t have to worry about providing a system with the required specs as the container is already provisioned for that purpose. But where do you deploy yourDockercontainers? You can set up your existing bare metal infrastructure to allow them to run containers, but this also means you need to learn about securing your container infrastructure, which is not an easy task. Luckily “the cloud” offers container …

Speeding up database calls with PDO and iterators

When you review lots of code, you often wonder why things were written the way they were. Especially when making expensive calls to a database, I still see things that could and should be improved.
No framework development When working with a framework, mostly these database calls are optimized for the developer and abstract the complex logic to improve and optimize the retrieval and usage of data. But then developers need to build something without a framework and end up using the basics of PHP in a sub-optimal way.

$pdo = new \PDO( $config['db']['dsn'], $config['db']['username'], $config['db']['password'] ); $sql = 'SELECT * FROM `gen_contact` ORDER BY `contact_modified` DESC'; $stmt = $pdo->prepare($sql); $stmt->execute(); $data = $stmt->fetchAll(\PDO::FETCH_OBJ); echo 'Getting the contacts that changed the last 3 months' . PHP_EOL; foreach ($data as $row) { $dt = new \DateTime('2015-04-…

PHP Arrays - Associative Arrays or Hash Maps

Associative array or hash maps are listings of key and value pairs with a posibility to nest additional keys and values. An associative array is a very powerful construct within PHP.

In our previous article we discussed simple arrays, which in their turn are indexed associative arrays under the hood. Take the following example:

$array = [

Is in fact an indexed associative array under the hood:

$array = [
0 => 'apple',
1 => 'banana',
2 => 'chocolate',

But associative arrays can be so much more than just an indexed array, and you will find many database operations returning arrays where the fields of a table are the keys in the array while their values are also the values within the array.

$productRowData = [
'product_id' => 1234,
'brand_id' => 321,
'product_name' => 'Our awesome product',
'prodcut_description' => 'This is our most awesome product.&#…