Archive for June, 2011

Finding unique array combinations with PHP (permutations)

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.
Read more

How to add a Twitter Poll to your website

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.
Read more

How to add the Google +1 button to your website

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.
Read more

Twitter adds a one-stop ‘Follow’ button for websites

Twitter Follow ButtonGood news for us developers. Twitter added a new “Follow” button so people can one-click and follow you without leaving your website. It even pops a couple of tweets and some information about your profile!
Read more

follow me on Twitter