Playing with the youtube api

Recently I’ve been asked how easy it will be to get the initial screenshot of a youtube video attached in an email template with as less pain as possible. A bit of googling told me that you can get all public information of a video using the following endpoing https://gdata.youtube.com/feeds/api/videos/videoid?v=2 By using one of my favourite songs… http://www.youtube.com/watch?v=OguPPZ_7u60 The request becomes… https://gdata.youtube.com/feeds/api/videos/OguPPZ_7u60?v=2 Just to test a bit whats going on I’ve tested the url with...

January 11, 2014 · 1 min · Argyrios Gounaris

Extending array_intersect to support multidimensional arrays

Recently I fell into a quite interesting problem. Imagine that you want to send a mass email. You have two different set of arrays. One is your mailing list and the second is your filter email list. The final recipients will be the array_intersect of those 2 arrays. So far so good… But what if the elements of the first array are also arrays? And what if you have stored values seperated by semicolon or any other character?...

December 22, 2013 · 3 min · Argyrios Gounaris

Weekend projects

Before I create this blog I had in my mind that bloging for software would have been extremely easy and that I would have constantly ideas to share with the community. I was totally wrong!! The hardest part of bloging is being unique and authentic. I see so many bloggers copying each other, so many tutorials looking “similar” and so my people doing this for the sake of blogging. I find no interest into doing tutorials that you can already google them, or writing a post sharing what I already know in order to convince a future employer of how awesome I am....

December 22, 2013 · 2 min · Argyrios Gounaris

Profiling php scripts

After a looong time I decided to start “documenting” my php ideas and techniques in this personal blog. Just to start with something, I wanted to share with you a simple profiling technique which includes xdebug and webgrind. I’m using a mac and I will not get into details on how to setup php and xdebug. You can use the default php version that MacOS comes with, or handle different versions with homebrew, there are plenty of tutorials out there....

November 23, 2013 · 2 min · Argyrios Gounaris