Embedding Mobile YouTube in Dabr / Twitter

by @edent | # # # # # | 3 comments | Read ~367 times.

I've decided to add a preview of YouTube videos into Dabr, the mobile Twitter service. The code is fairly simple - although I still suck at regular expressions. if (preg_match_all('#youtube.com/watch?v=([_-dw]+)#', $tmp, $matches, PREG_PATTERN_ORDER) > 0) { foreach ($matches[1] as $match) { $images[] = theme('external_link', "http://m.youtube.com/watch?v={$match}", "<img src='http://i.ytimg.com/vi/{$match}/1.jpg' class='twitpic' />"); } } Here's how it looks. … Continue reading →

This Machine Stops Fascists*

by @edent | # # # #

There has been much discussion recently as to whether the BNP are becoming more acceptable to mainstream voters. Are people really happy to let the world know that they support the BNP and their policies?  Will they publicly show their allegiance on a social networking site like twitter? Do you know how many of your… Continue reading →