Posts

themoviedb.org PHP class

This has been superceeded by This Post This class I have written has been some time in the making, its currently the whats powering the alpha version of 2statereviews V2.    Things it will do for you: Will pull down Actor or Movie information from themoviedb.org using the API (currently defaults to V2.1) and sort info into an array i.e. $tmdb->movie_info('11'); $tmdb->actor_info('738'); Will pull down Actor or Movie Searches into an Array $tmdb->actor_search('John Cussack'); $tmdb->movie_search('the empire strikes back'); will cache the output from themoviedb.org locally with a configurable TTL so as to speed things up. Some examples have been provided. Note: you'll need to provide your own API key. Download V1 here

Iphone Restore 1604 Error

Image
[caption id="" align="aligncenter" width="479" caption="Iphone Restore EPIC FAIL!"] [/caption] Past couple of days have been a slight horror, when I rebooted my Iphone and it didn't come back. Just sat stuck on the Apple logo, with spinner on top not spinning. So I went through an horrific day without my phone. That night I frantically tried to restore the firmware 3.1.2, I kept getting the 1604 Error. Reading online there is lots of talk about deleting or moving your Iphone profile from the app settings directory, none of these solutions worked for me including the tool Ireb. I tried several USB leads, having had one previously fail, but still nothing. Solution for me was to use another machine windows 7 this time, was previously trying on XP, and It worked first time. Can only assume this is some very picky code in the usb communication.

Re Twitter your twitter feed

knocked up a quick function to put the links back into my twitter feed, after i pull it down using their API. it will take the text you input and create links around the @<username> #Hashtags and any links i.e.  twitpic's etc.  Not rocket science but could save you 30minutes of trying to get your head around regex again. function _twittertext($tweets) { $tweets = preg_replace('/http:\/\/([\\d\\w.\/]+)/', '<a href="http://$1">http://$1</a>', $tweets); $tweets = preg_replace('#@([\\d\\w]+)#', '<a href="http://twitter.com/$1">$0</a>', $tweets); $tweets = preg_replace('/#([\\d\\w]+)/', '<a href="http://twitter.com/#search?q=%23$1">$0</a>', $tweets); return $tweets; }

My XBMC Multi Room audio challenge.

Image
Recently I have successfully migrated away from SKY HD and from Freeview+ to an entirely XBMC based solution.  Most importantly this solution currently has a very high WAF .  My setup is built using XBMC live in an overly powerful PC in a rather nice silverstone media center case. My current problem is now I have relegated all of my media to the lounge,  using the ipod dock in the kitchen with a meagre 16GB Ipod seems positively lacking when, your media centre is connected directly to a 5Tb NAS.  What happens now is you play music in the lounge and turn it way up to a probably neighbour unsuitable level to be able to properly enjoy it in the kitchen.  This is why I crave multi room audio, I wrote a while back why I think XBMC is a far better and cheaper solution than the Sonos solution, though Sonos still do have the killer feature present and correct.

XBMC Gmail notifications.

I have this php script currently running on my nas to let me know if I have any new mail.  It works with gmail.com, googlemail.com and google app address’.  I simply use cron to execute the script every 15 minutes. i.e. (0,15,30,45 17-23 * * * php /var/www/checkgmail.php > /dev/null   #Check Gmail) 1: <?php 2: $emailaddress = 'someemailaddress@gmail.com' ; // i.e. bob@gmail.com or bob@bobsdomain.com if you use google apps 3: $password = 'somepassword' ; // email password 4: $xbmcaddress = '192.168.1.1' ; // IP or hostname of your xbmc 5: $xbmcport = '8080' ; // port the xbmc web server is running on. 6: 7: 8: $domain = explode( '@' ,$emailaddress); 9: if ($domain[ '1' ] == 'gmail.com' || $domain[ '1' ] == 'googlemail.com' ) 10: { 11: $use_googleapps = false ; 12: } else { 13: $use_googleapps = true ; 14: } 15: if ($use_googleapps == t...

Iphone 2g MMS on BT Total Broadband Anywhere

Image
[caption id="" align="alignright" width="300" caption="MMS Enable your 2g Iphone"] [/caption] I have succesfully got MMS working on my Iphone 2g with BT Total Broadband anywhere / BTMobile, and have solved the problem where the mms APN settings do not save.

Using Gmail as a Sendmail Relay

The revenge this time its personal! K I just setup sendmail to relay using gmail again,  thought I better post what I have done as my original now out of date post is still getting quite a lot of views. This is based on my Ubuntu 8.10 Server ( 2.6.27-11-server) all patched up todays date and then I did the below.