Archive June 2011

Finding unique array combinations with PHP (permutations)

Posted by Danny Herran on Jun 23, 2011 in Backend | 5 comments

I was developing a website where people would place horse bets and the system should be able to calculate all the possible permutations based on the user selection. That means: finding all the possible combinations in a two dimensional array. I found a couple of functions but none of them would keep the array keys intact. So, I came up with this idea after a few gray hairs.

How to add a Twitter Poll to your website

Posted by Danny Herran on Jun 17, 2011 in Frontend, Social Networking | 1 comment

Twitter is great and with it comes great ideas from everywhere. Today, I decided to try a new kind of poll that I really liked and will boost your Twitter mentions a lot. I am talking about Twitter Polls. If you don’t know what it is, keep reading, you will enjoy it.

How to add the Google +1 button to your website

Posted by Danny Herran on Jun 2, 2011 in Other Stuff | No comments

Google Plus OneGoogle started rolling the +1 button as an experimental version of Google Search. Today, the +1 button is available to everyone and this means that “you” as a webmaster can add the +1 button to your website and let people share on Google your content.