Calibre PHP Patches


Two quick patches which should be in the next version of Calibre PHP. Adding File Size This shows the sizes of the eBook files. Screenshot shows a demonstration using the free "Hacking The BBC" eBook.

Continue reading →

Installing Calibre PHP


(These are mostly notes to myself!) I love Calibre, it's the perfect eBook management tool. It comes with a built in WWW server so you can easily access your library on the go. The only problem is that this really only works if you have a single machine dedicated to Calibre. For various reasons, I […]

Continue reading →

Displaying Twitter Photos via Entities


Twitter has announced that it will soon open up a native photo sharing service. Rather than using an external service like Embed.ly to retrieve thumbnails, all the data is embedded within Twitter Entities. So, if you request a status using "include_entities=true", you will be able to grab the image and display the thumbnail using the […]

Continue reading →

HOWTO: Twitpic and OAuth


I am no longer confused! Here is a quick tutorial in how to post images to Twitpic and Twitter when using OAuth. I'm indebted to Steve Corona of Twitpic, for his help with this. You can see the full code on Dabr's Google Code page. First of all, you'll need to have enabled OAuth for […]

Continue reading →

Twitpic OAuth - I'm Stuck


Twitpic has implemented an OAuth API. No more having to hand out passwords to all and sundy. Only I'm too much of a dunderhead to get it working. Perhaps it's a combination of heatstroke or this rotten head-cold, but I just can't see what I'm doing wrong. Any help much appreciated. The easy bit. It's […]

Continue reading →

Twitter and Linebreaks


As any student of computer science knows, line breaks are confusing. There are styles of line breaks unique to Unix, Mac and Windows - so what should a web renderer do when faced with a newline command? In HTML, it's simple, they should be ignored. But what when it is user generated text, not HTML? […]

Continue reading →

Why I Love Open Source


There are many reasons to love Open Source Software.  It's free (as in you pay nothing), it's free (as in speech) and - perhaps my favourite reasons - it's free (as in liberating). By liberating, I mean that one isn't tied down to the product roadmap and release schedule of the developers.  If I find […]

Continue reading →

Embedding Mobile YouTube in Dabr / Twitter


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*


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 →