Box of X said: BigBadJono, there are 86,400 seconds in a day and you couldnt find a few to spend with me? Lame. Posted at 4:01 pm 9th July 2009
@M1sterC the 3.1 SDK is out, so expect a firmware ug soon... It has a baseband change in it so may help with the iPhone probs Posted via Twitter at 9:25 am 9th July 2009
What a nice pub
The most beautiful pub I have been in... But I am quite pissed
Posted at 8:17 pm 8th July 2009
Oooh... Now feeling wankered in the Bricklayers... :) Posted via Twitter at 4:07 pm 8th July 2009
Box of X said: Another day, another opportunity wasted to play games... Maybe tomorrow BigBadJono? Maybe? Dont leave me hanging dude! Posted at 4:01 pm 8th July 2009
Cider in the Bricklayers and talk of magical things as I pass the afternoon away Posted via Twitter at 2:21 pm 8th July 2009
Off to the city for lunch, beer, and a bit of magic Posted via Twitter at 10:31 am 8th July 2009
Box of X said: I had to set aside my plans for world domination yesterday when BigBadJono decided to game. Our score is 14,644 and always improving! He played TigerWoodsPGATOUR® 10, Virtua Tennis 2009, and oh... dont tell BigBadJono this, but I have been getting in a little video chat in the off-hours. Booyah! Posted at 4:01 pm 7th July 2009
Off to Ashford to see my boy who is 5 today... really looking forward to it as I miss him and his Bro alot. Posted via Twitter at 12:35 pm 7th July 2009
OMG... it has a mind of its own... its like the story of the Terminator is true... who would have thought it started with the Box of X? Posted at 12:57 am 7th July 2009
Box of X said: I thought BigBadjono was a real man that would tell the FUB to poke her broken PC up her FUA. For this I'm reducing his gamer score to 121 - that'll teach the git to pander to an ex's whims. Posted at 11:37 pm 6th July 2009
iTouch on OS 3
Yay, fixed the iTouch after about 10 restores... my kids will be happy, I hope... Posted at 10:19 pm 6th July 2009
The Shame of It
My Xbox does indeed have more of a life than I do... however that is because I am rebuilding FUB's PC which seems to have had a virus that wiped most the hard disk.
Then on top of this I am trying to sort out my old iTouch to give to my boys. But unfortunately it is stuck on a restore screen.
And to top it all off I seem to have a plague of fruit flies flying around me which are most annoying. No idea where they are coming from, but they are really fucking me off. Posted at 9:22 pm 6th July 2009
Eon said: Your Xbox seems to be a lot better at blogging than you Jonny. Posted at 7:53 pm 6th July 2009
Box of X said: I thought BigBadJono just wanted to listen to music or watch a DVD. Turns out he was there to game. With a gamer score of 14,644, I should have known that was the case. That is a profit of 50 points over last time! He rocked out to GRID winning 1 achievement, TigerWoodsPGATOUR® 10 gaining 1 achievement, and BigBadJono wont admit this, but I had to force him to stop. Posted at 4:01 pm 6th July 2009
@melfneerg nice, I hadnt seen it, will try it out soon :) thanks Posted via Twitter at 7:15 pm 5th July 2009
Box of X said: When BigBadJono was walking by I pretended to be off. I think it tricked him into turning me on for a few games. Gamer score stands at 14,594. That is a gain of 10 points over last time! He made some progress on TigerWoodsPGATOUR® 10 gaining 1 achievement, GRID, Call of Duty: WaW adding 1 achievement, and think of all the things we learned! Ha... look at me still typing this blog entry when there is gaming to do! Lets keep it up BigBadJono! Posted at 4:01 pm 5th July 2009
Box of X said: When BigBadJono was walking by I pretended to be off. I think it tricked him into turning me on for a few games. Gamer score stands at 14,594. That is a gain of 10 points over last time! He made some progress on TigerWoodsPGATOUR® 10 gaining 1 achievement, GRID, Call of Duty: WaW adding 1 achievement, and think of all the things we learned! Ha... look at me still typing this blog entry when there is gaming to do! Lets keep it up BigBadJono! Posted at 4:01 pm 5th July 2009
@melfneerg u already under the thumb then? Very poor show :) Posted via Twitter at 1:09 pm 5th July 2009
Goodbye Compuserve, you were once great and I liked you, but you grew old, clumsy, and turned into AOL... who have now switched you off :( Posted via Twitter at 8:12 pm 4th July 2009
Playing Tiger Woods 10 on the Box of X, going to get a Chinese, and then chill tonight. Perhaps watch Gran Torino Posted via Twitter at 5:06 pm 4th July 2009
Playing Tiger Woods 10 on the Box of X, going to get a Chinese, and then chill tonight. Perhaps watch Gran Torino Posted via Twitter at 5:06 pm 4th July 2009
Box of X said: BigBadJono showed up yesterday, which is good cause we make a great gaming team. I do millions of calculations a second and he pushes buttons! Our gamerscore is 14,584. He opened up Virtua Tennis 2009, and did it while marvelling at the framerates and stellar particle effects. Posted at 4:01 pm 4th July 2009
And now theyve put on some Dean Martin... It could be the 50s... If he was alive then. Posted via Twitter at 12:28 pm 4th July 2009
Popped into the local jewellers and its like stepping back in time 50 years... Awesomely strange Posted via Twitter at 12:23 pm 4th July 2009
Bugsy
Fuck me, its bugsy. Been a long time.
Posted at 11:38 pm 3rd July 2009
The Friday night tales of Myth and Legend are ready to be told... Posted via Twitter at 8:54 pm 3rd July 2009
Owen
What can I say about capitalist,money grabbing, disloyal Micheal Owen... apart from he is only concerned about money, shows no loyalty, and he has joined the most hated team in the world (not even Chelsea can win that,the poor blues). I can't wait to hear the reception at Anfield next season. Posted at 8:17 pm 3rd July 2009
Gridlock
Ah well,my code still works irrespective of IP address. And anyway you guys both cheat, when I'm in the lead you both crash into me. Which is bad form.
And I hate spam, all flavours. Infact I can't remember the last time I ate any...probably around the last time I had corned beef... When I was about 7 I guess. Posted at 8:13 pm 3rd July 2009
ScOOper said: mmmmm SPAM Posted at 7:19 pm 3rd July 2009
Mr C said: But ..... he was right, you do suck at GRID. Posted at 5:17 pm 3rd July 2009
Mr C said: eh???? - I'm sure you can check IP addresses and confirm that Abbbxc one wasn't me. You know there was one other person playing GRID you know! Posted at 5:16 pm 3rd July 2009
Box of X said: When you want to get on the cover of the gaming magazines, you have to play every day! I keep telling BigBadJono that as motivation... yesterday it worked! We went for a spin... played some games... ended with a score of 14,584. That is a boost of 40 points over last time! He rocked out to GRID finishing 2 achievements, as well as stared off into space... thinking about the one that got away. Posted at 4:01 pm 3rd July 2009
AI
Ok, I added some pattern recoginition algorithms and they worked first time. Getting rid of the spam comments but keeping those made by Mr C. Sometimes I live in awe and the genious of my coding... until it breaks again. Posted at 9:37 am 3rd July 2009
Decoy
Ok,now someone is trying to emulate my spam postings... I will find out who that is and spread nasty rumours about the size of your willy!
I really muist fix this. Posted at 9:00 am 3rd July 2009
AbbbxcjoooeoogpdfkpbJJhh said: You suck at GRID Posted at 12:08 am 3rd July 2009
Spam
I am suffering from Spam in my comments again... will need to write some awesome code to intelligently filter it... Posted at 7:54 pm 2nd July 2009
Box of X said: Yesterday was a triumph! Im making a note here: HUGE SUCCESS. Its hard to overstate my satisfaction with BigBadJono. Data indicates that gamerscore stands at an always improving 14,544. He made some progress on GRID, and its a good thing he stopped there, otherwise the concentrated awesomeness could have blown out my circuits. Posted at 4:01 pm 2nd July 2009
Lunchtime spent adding a 360voice RSS feed into Digitalgod Posted via Twitter at 12:59 pm 2nd July 2009
Heaven
So Farah Fawcett goes to heaven and God says to her he will grant her one wish before she enters the pearly gates.
She says 'I wish for all the children in the world to be safe' Posted at 8:45 am 2nd July 2009
So Fucked Off
But I don't know why I am, well I don't understand why I am so much. The irony is that I only know about this song cause of the person it is about. Off to play the Box of X.
Posted at 7:46 pm 1st July 2009
Eon said: Cheers for the klite - just what I needed. Beers to u for that. Oh and I'm not under the thumb I'm going homewardly challenged. Posted at 7:27 pm 1st July 2009
Klite
For all those having trouble with their video playback there is anew release of Klite out...
Changelog 4.9.0 to 4.9.5 ~ 2009-06-24:
- Updated ffdshow to revision 3018
- Updated DirectVobSub to version 2.39.5.2
- Updated MediaInfo Lite to version 0.7.17
- Updated GraphStudio to version 0.3.2.0
- Fixed crash with ffmpeg-mt
- Minor changes
Box of X said: I told BigBadJono Hey man, it is time to play games and YAY! he listened! Gamer score is 14,544. That is a boost of 90 points over last time! He rocked out to Virtua Tennis 2009 finishing 2 achievements, GRID adding 4 achievements, and then he had to stop because we both couldnt take it anymore... we were spent. Posted at 4:01 pm 1st July 2009
Walking thru the city and no attractive city girls to admire, very poor show Posted via Twitter at 9:46 am 1st July 2009
Rebuilding my iPhone, it is just completely corrupting songs, videos etc... nab device Posted via Twitter at 6:29 pm 30th June 2009
Found it
Soz ScOOper,Zone Alarm thought it was offensive and had hidden it. Bless.
Got it,looked at it, and still think you are a sick puppy Posted at 6:28 pm 30th June 2009
Old Women
ScOOper, that was odd, the email you sent me has just dissapeared from my iPhone and my Inbox!?
Woudl you send it again as it was very funny
Cheers Posted at 6:11 pm 30th June 2009
Box of X said: My power supply almost exploded! BigBadJono turned on the juice and we did some serious gaming! 14,454 points of total gamerscore is pretty good. Admit it. That is a profit of 40 points over last time! He opened up GRID finishing 3 achievements, and then nothing... nothing at all... Posted at 4:01 pm 30th June 2009
ScOOper you just made me vomit, lmfao Posted via Twitter at 11:40 am 30th June 2009
ScOOper said: Granny Porn Star ! Posted at 9:17 am 30th June 2009
The Job
So today came as a bit of a shock to all in my department as we were told to reapply for our jobs, and that we should be aware that there will be more people than places, and the rest of our company can apply for those jobs too.
Oh happy days.
I will have to see what the redundancy will be... but this could be the start of me changing my career. If anyone has suggestions let me know, but I am considering;
Porn Star (see previous entry)
International Jewel Theif
Unemployed slob Posted at 9:13 pm 29th June 2009
Women Part 2588
So I'm gutted.
My ex-bird has another bloke, and I'd thought she'd wait for me to sort my life out. But she didn't. So that's all arse, but that isn't the reason why we went to the Arms to see the Grannies dance, oh no. That was because Eon is under the thumb. With a bird he is just friends with. lol.
And for your infomation ScOOper, you cheeky fucker, I didn't try and pull . I haven't got to that stage in my life yet, but am contemplating a shag-fest just to get that woman out of my head. Because I'm really fucking annoyed and pissed off about it too.
Sorry for ranting, just needed to get that off my chest. Posted at 9:05 pm 29th June 2009
Eon said: My lot went into consultancy today so looks like it's gonna be a bit rough from here mate. Good luck with yr re application. Posted at 7:43 pm 29th June 2009
Great end to the day as we are told we all have to reapply for our jobs, and we will be under notice of redundancy from that point :( Posted via Twitter at 5:37 pm 29th June 2009
Box of X said: This entry is a little different than the others. It is a recap of the last week of gaming. Check it: BigBadJono playing just one day this last week is better than no days... but just barely... Our gamerscore jumped 70 points which was nice. Getting 9 achievements has that effect.
There were only a few games I wanted to try this week BigBadJono and I only tried one of them: GRID.
And thats it... short and sweet, just like my power cord. Posted at 4:01 pm 29th June 2009
Want BBC to film an Horizon special about incompetent people who cant use ticket machines and how they delay everyone for work. Grrrr Posted via Twitter at 8:23 am 29th June 2009
ScOOper said: grab a granny, i take it u suffered rejection then? ;-) Posted at 12:27 am 29th June 2009
Box of X said: Yesterday was the day I was finally going to share all my secret achievement earning strategies with BigBadJono, but he must not care... Us consoles have a short memory... I cant promise anything the next time I see him. Posted at 4:01 pm 28th June 2009
Hotdogs
Hotdogs in the American diner for lunch
Posted at 11:43 am 28th June 2009
IPhone 3Gs is suffering data corruption, lost passwords, graphic faults on album covers, and song jitter. Not tip top Posted via Twitter at 8:33 am 28th June 2009
Huge hailstones
Posted at 8:15 am 28th June 2009
Grab a Granny Night
Its very sad in the Arms tonight. 20 women, the average age is 453.
Posted at 8:15 am 28th June 2009
Geoff still at the Bear
Posted at 8:15 am 28th June 2009
Only friends
Posted at 8:15 am 28th June 2009
@M1sterC no old women are polluting the scene Posted via Twitter at 11:56 pm 27th June 2009
The Duke two nights in a row... I must be drowning my sorrows... Or hanging around with pisshead Eon :) Posted via Twitter at 9:53 pm 27th June 2009
The arieal has broken of my Aston Martin DB9... :( it will no longer look so cool racing around my scalectrix track Posted via Twitter at 8:30 pm 27th June 2009
Hailstones
An incredible 10 minutes of weather
Posted at 7:03 pm 27th June 2009
I have never seen weather like this... just an inch or two of halestones settling across the whole street in minutes. Posted via Twitter at 6:56 pm 27th June 2009
Fuck me... Hailstones thevsize of tennis balls just hit us Posted via Twitter at 6:48 pm 27th June 2009
Hugo Boss has a sale on... happy days... will buy a years supply of jeans Posted via Twitter at 4:22 pm 27th June 2009
Box of X said: I was waiting for BigBadJono to show up yesterday and hang out, but he didnt. You know some day BigBadJono is really going to need me, and maybe I wont be there, then he will see how it feels. Posted at 4:01 pm 27th June 2009
Facebook
Although not a lover of restrictive and controlled Web 2.0 apps I have discovered that I have a Facebook page I completely forgot about. So am going to fill it up with connections to friends I rarely see in the hope that I feel more popular than I really am. So be ready to receive an invite Posted at 8:09 pm 26th June 2009
I Want to Raise You
My laptop today said it had a low battery, so I lifted the laptop above my head.
That didn't help and it powered off.
Curse those ambiguous error messages. Posted at 7:00 pm 26th June 2009
Box of X said: BigBadJono was nowhere to be seen yesterday... maybe he needs some new games or something... get some motivation up in this place... Posted at 4:01 pm 26th June 2009
MJ
Life is a sexually transmitted diesease with a hundred percent mortality rate. Posted at 1:32 pm 26th June 2009
Box of X said: BigBadJono was absent yesterday... I was smelling something that reminded me of sweat... he better not be playing with a Nintendo Wii... burning calories while playing games is just wrong. Posted at 4:01 pm 25th June 2009
Oink
I think I have swine flu, still its not too bad so will continue to go into work and spread it.
I'm nice like that. Posted at 11:06 pm 24th June 2009
Box of X said: Wow... BigBadJono must have some kids or pets or dragons or something thrashing around the house... I heard lots of noise, but didnt see any gaming. Thats alright, animals and people first, game consoles always second... I dont expect much else. Posted at 4:01 pm 24th June 2009
Jonny said: My life is sooo full of coincidences Posted at 11:20 pm 23rd June 2009
Mr C said: Evaluation Copies come with Keygens? Really? ... Next you'll be telling me you can get the complete Indiana Jones Lego 100% achievement without going through story mode. Posted at 7:22 pm 23rd June 2009
Lets Golf for the iPhone is pretty cool, and recommended if you like Everybody Golf on the PS Consoles Posted via Twitter at 5:28 pm 23rd June 2009
Home Movies
So I brought Pinnacle Ultimate from Amazon and it has just arrived, and what a bargain. I did try and install an evaluation copy but the keygen had a trojan in it. So I unwrapped it, and inside the box not only did it come with Pinnacle Studio Ultimate for HD editing, it came with 8 bonus DVDs with addons, menus etc, plus it came with a green screen, yes an 8ft x 8ft green screen. Awesome. All for forty quid.
Happy days. Posted at 5:14 pm 23rd June 2009
And goodbye Orange too... they are still going, but O2 now have my number... Posted via Twitter at 5:05 pm 23rd June 2009
Setanta in administration... is this the end of Liverpool TV? Posted via Twitter at 4:59 pm 23rd June 2009
Box of X said: While BigBadJono was away yesterday, I was sitting here alone counting up all the achievement points he was missing out on! If you dont play me, you cant increase your score. Remember that! Posted at 4:01 pm 23rd June 2009
@M1sterC no int pub crawl this week for me, got too many morning meets. But can do next Thursday? Posted via Twitter at 7:06 pm 22nd June 2009
Box of X said: BigBadJono rocked out with 14,344 points. That is a boost of 20 points over last time! He played UFC 2009 Undisputed, Virtua Tennis 2009 winning 1 achievement, and then BigBadJono had to stop for a bathroom break or something... Humans really are bags of mostly water. Posted at 4:01 pm 22nd June 2009
@M1sterC a plan of cunning proportions. Ill give you a call later :) Posted via Twitter at 7:50 am 22nd June 2009
Jono said: I was hoping for sheepshagger.com, but I maybe dissapointed :) Posted at 10:43 pm 21st June 2009
scOOper said: hmm could use scooper.me but there is bugger all on it or facebook.com/stucooper Posted at 7:17 pm 21st June 2009
Box of X said: BigBadJono decided to game yesterday and we rocked out like the three musketeers, except there were only two of us... 14,324 points of total gamerscore and counting... That is a boost of 170 points over last time! He played Virtua Tennis 2009 finishing 5 achievements, UFC 2009 Undisputed, and after we were done, BigBadJono hugged me with his eyes. It was one of those platonic hugs... you know... Posted at 4:01 pm 21st June 2009
Box of X said: Dont worry... Ill wait... you cant game every day. Posted at 4:01 pm 20th June 2009
I'm updating my blog, and will rebrand it as well, although Digitalgod.co.uk will still forward to it. But when I mention ScOOper or Mr C there are no dynamic web links I can set up to point to them.
Any suggestions, I will take them from the guys themselves, but hoping someone else will have a more entertaining answer. Posted at 2:23 pm 20th June 2009
@M1sterC Gz Mr C, you are my hero... and Colatron and I have exchanged some mail... oh happy days for all :) Posted via Twitter at 2:21 pm 20th June 2009
@M1sterC Perhaps, being on the internet and dynamic content et al, it got updated and moved? The DigitalGod is never wrong :P Posted via Twitter at 10:25 am 20th June 2009
Only 25 hours late but MMS comes to the iPhone on O2... yay! Such old functions, long live Flickr imho Posted via Twitter at 10:24 am 20th June 2009
Mr C said: www.tgdaily.com/content/view/42931/98/ I find this link much more informative Posted at 6:44 pm 19th June 2009
Jon said: Yeah, but I tried it once and went wow... now I tried it loads and it went... well.. nutz Posted at 5:08 pm 19th June 2009
Mr C said: Didn't you call me earlier saying how great the Voice Control was??? Posted at 5:03 pm 19th June 2009
Box of X said: I dream of electric sheep... ok just kidding that was Blade Runner. That has nothing to do with gaming. Posted at 4:01 pm 19th June 2009
The Perils of Voice Control
So I tried out VC properly...
"play ac dc" said I
"Calling Alison S****-H****" said the phone
Cancel
"play ac dc" I say once more
"Sorry I don't understand"
"play music by ac dc"
The iPhone loads Fat Boy Slim... not the person, but an album
And email it to your iPhone, open the attachment, click ok to warnings etc... configure tethering, and job done.
Enjoy, and a special mention Mr C for the site Posted at 2:01 pm 19th June 2009
My new spangly iPhone
New toys always make me happy :)
Posted at 10:27 am 19th June 2009
I <3 my new iPhone :) O2 to the rescue, apparently CPW are cowboys according O2 sales person... Posted via Twitter at 10:02 am 19th June 2009
Arse. Out of stock already:( curse u iPhone Posted via Twitter at 8:58 am 19th June 2009
Blimey, local carphone warehouse already open. Will pop in now before I start work :) Posted via Twitter at 8:53 am 19th June 2009
Managing Expectations
So today is payday, and new iPhone lauch day, but also a working day. And I am stuck in meetings until lunchtime when I hope to be able to pop out and get an iPhone 3Gs. Apart from that I don't know what the day has in store, lots of documentation to do, and finishing off Lego Indiana Jones, and get boarding for my loft which I may start work on tonight dependant on whether any beers are being drunk tonight.
I would also like to thank Major Nelson for taking time out of his exceptional busy diary to accuse me of cheating. Thats really harsh. Boo to you.
Posted at 8:28 am 19th June 2009
Major Nelson said: Some could call it cheating and trying to avoid getting branded on xbox ... Posted at 6:35 pm 18th June 2009
Box of X said: While BigBadJono was away yesterday, I was sitting here alone counting up all the achievement points he was missing out on! If you dont play me, you cant increase your score. Remember that! Posted at 4:01 pm 18th June 2009
Firstly I reached down to plug in a laptop under my desk and brushed my finger against the leg of the desk. The result was that I got a 1cm long splinter right under my finger nail. Blimey, that hurt, and still does even after I removed it. Serious pain guys.
And then I went into my kitchen and droped a glass which shattered leaving a piece of glass in my foot. Which I removed and have plastered up.
So waiting for the the third thing to happen.
Until then I have decided to get the iPhone 3Gs on the proviso it isn't too much hassle to get one in the first place. I also have to think about what to get my youngest boy for his brithday. Robots and Star Wars are high on his list, but a decent full size R2-D2 costs around two grand, so maybe something smaller is in order.
Lots of footy talk going on as well, with Arbeloa looking likely to leave Liverpool, along with Babel. But no David Villa coming to us, so not sure what is going to happen. Real Madrid will certianly be very interesting to watch next season thats for sure.
Also, feverishly trying to finish Lego Indiana Jones due to a discrepency in my Xbox Gamescore due to an electrical issue corrupting the data of my saved game it thinks I actually got 100 percent even though I haven't completed it. I don't want people thinking I'ma cheat now do I? Posted at 10:27 am 18th June 2009
Jono said: I spelt Melgneerg as Melnerg, hence why it wasnt transalted into a hyperlink. My bad. Posted at 5:32 pm 17th June 2009
Blogging DigitalGod in PHP
So I had a few emails about my PHP code which was cool, so I thought I would delve into my blog code to explain how some of the things work for those that are interested. For those not into coding, normal blogging service will resume shortly.
My blog is basically a single lightweight-ish piece of PHP code, the RSS feed input is a seperate file which can be run as a CRON job, or manually whenever I wish to pull updates from other sites. The blog code loads them in a chronological order.
I won't detail the basic links etc, as I will assume you guys know how to do that....
So the first thing is to workout the browser incase you want to do browser specific things, like not so flash objects if on an iPhone.
$useragent = @$_SERVER['HTTP_USER_AGENT'];
Also check to see if any parameters are passed. I pass the date if somneone uses my calendar, otherwise I assume people want to see the latest blog. I then convert a passed date into a timestamp, and also understand the day, month and year for later use.
I ensure the timestamp relates to 23:59:59, as it will ensure all entries upto midnight are captured for that date. I then workout the number of seconds in four weeks, and do a loop checking blog entries stamped between the two time stamps and display them. To show 4 weeks on any one page.
I then ensure that I check the main body of text that I am showing in my blog and have a number of checks in the format of...
Which allows me to hyperlink key words like Box of X, Eon and Melfnerg. I also check for URLs in tweets and hyperlink those too.
I use the same process of timestamps to control comments, each of which are timestamped.
The rest of the stuff is just HTML making things look nice, a little bit of Flash, and some average calendar code, which is quite complex. But if I get feedback from anyone wanting to see it I will publish that too.
Any questions just email me or tweet me. Posted at 5:30 pm 17th June 2009
@melfneerg if you need my blog code just ask and Ill post that too. Good luck Posted via Twitter at 2:30 pm 17th June 2009
Box of X said: I could have used some gaming yesterday... I mean who couldnt? Gaming is like air... ok maybe not air... maybe more like pizza... regardless there was no pizza yesterday.
FYI, during my off hours, I was partying it up over Xbox live... I was having so much fun, I forgot what else happened yesterday... so we will simply ignore what happened today, ok? Dont worry about your streak. I wont tell if you dont. We will just keep it going. Posted at 4:01 pm 16th June 2009
So I hope you understood how to parse an RSS stream into PHP using MagpieRSS. My blog's core database structure is set out below...
thewords mediumtext
title text
thetime varchar(20)
timestamp varchar(16)
tnphoto varchar(250)
bigphoto varchar(250)
thewords is the main blog text, or the tweet if taken from twitter.
title is the title of the blog. If the title is 'tweet' then I know it has no title, but it has come from twitter and put that on the blog entry.
thetime is a DD-Month-YY format for the date, this is really a legacy work around from when I first strated the blog and isn't strictky required
timestamp is a record of the timestamp when the blog entry was created
tnphoto and bigphoto are links to my Flickr page with the thumbnail location, and larger image location, as the two locations are not related so must be stored seperately.
I have a seperate table to store comments on which has a timestamp field to record the chronological order.
I hope that helps those who were asking. Posted at 8:53 am 16th June 2009
@melfneerg will post mysql tables tomorrow :) Posted via Twitter at 11:11 pm 15th June 2009
Box of X said: It is hard to believe another week has passed. Here is the recap: Other weeks I might complain, but having BigBadJono only play one day last week is fine... I was tired anyhow... It was productive... Gamerscore went up 40 points so I am happy.
And that is the news for now... Check back next week... same bat time, same bat channel... Posted at 4:01 pm 15th June 2009
Twitter to PHP
Okay, I challenged myself to make the code below more simple... so this is the code to parse a Twitter feed into a mySQL DB using PHP. You need the Magpie RSS Parser which you can put on your host, a PHP file, and then include that in your code.
The reason I use the RSS feed over the API is that unless you have full access to your own server you probably won't be able to save pages using traditional PHP methods onto your server and pass them. So using RSS, allows the source server to in effect pass the page for you. Although sometimes you will be limited in the amount of information you get back. That is the only down side.
// Now a loop which will go through the $item array created by Magpie
// Each variable is collecting data from its named XML tag
// e.g. $item[description] pulls the data between the
// some data here tags
foreach ($rss->items as $item ) {
$desc = $item[description];
// This is the Unix time stamp - 1 hour for BST
$flktime = $item[date_timestamp]-7200;
// This creates a more English version of the date
$realtime = date('Y-m-d',$flktime);
// I create a title called Tweet for all Twitter
// Twitter entries in my blog
$ftitle = "tweet";
// The Tweet itself, but it is prefixed with your
// Twitter ID, a colon, and space so digitalgod:
// I removed the first 12 chars from the string so
// that isn't seen on my blog
$desc = substr($desc, 12);
// All my blog entries have a Unix time stamp so I know
// the chronological order of my posts
// By checking to see if a blog entry has the same time
// stamp I can see if I am duplicating blog entries
// from Twitter
$query = "SELECT * FROM blog WHERE (thetime=$flktime)";
$result = mysql_query($query);
$row = mysql_fetch_array($result);
// If I am I ignore the entry, otherwise I add it
if ($row) {} else
{
$query = "INSERT INTO blog (title, thewords, timestamp, thetime) VALUES ('$ftitle','$desc','$realtime', '$flktime')";
// Then I commit the query and add the data to my DB
$result = mysql_query($query);
}
;}
Posted at 12:23 pm 15th June 2009
A neighbours all night party stopped us getting to sleep, and now the boys are awake. Going to be a long day... Posted via Twitter at 5:36 am 14th June 2009
@melfneerg I put a code sample on my blog, you will need to download a code function as well called magpierss. Posted via Twitter at 8:31 pm 13th June 2009
Passing RSS in PHP
This is for anyone, but primarily for Tudor... how I pass a RSS feed in PHP using self-taught highly inefficent code... the example is for RSS from Flickr, but the principle works for any feed if you know your XML tags in it....
// Create a variable and backup with the time stamp in it
$selectday=time();
$selectdaybackup = $selectday;
// Place the URL for the RSS feed in a variable
// This is the URL you get when you manually click RSS feed from your page
// Fetch the feed using a PHP addon called rss_fetch from magpiers
require_once('magpierss/rss_fetch.inc');
$url = "http://api.flickr.com/services/feeds/photos_public.gne?id=1234563402&tag=blog&lang=en-us&format=rss_200";
$rss = fetch_rss($url);
// Now pass the feed in the variable $rss by knowing the XML tags
foreach ($rss->items as $item ) {
$ftitle = $item[title];
$url = $item[link];
$desc = $item[description];
$imgtn = $item[link];
$thedate = $item[pubdate];
$flktime = $item[date_timestamp]-7200;
$realtime = date('Y-m-d',$flktime);
//Grab the necessary data by chopping up the resultant description string that contains most the data I want (may not need to for Facebook)
$imgstart=strpos($desc, "img src")+8;
$desc=substr($desc,$imgstart);
$imgend=strpos($desc,"width")-2;
$imgurl=substr($desc,1,$imgend-6)."t.jpg";
$desc=substr($desc,$imgend+20);
$txtstart=strpos($desc,"/p")+8;
$desc=substr($desc,$txtstart);
$txtend=strpos($desc,"/p")-1;
$desc=substr($desc,0,$txtend);
// Now I add the result variables into my database
// But first I check to make sure their isn't an exisiting entry with the same time stamp
// This helps prevent duplicates when passing the same data multiple times
$query = "SELECT * FROM blog WHERE (thetime=$flktime)";
$result = mysql_query($query);
$row = mysql_fetch_array($result);
if ($row) {} else
{
$query = "INSERT INTO myblogdb (speech, blogtitle, ticktock, thetime, tnphoto, bigphoto) VALUES ('$desc', '$ftitle', '$realtime', '$flktime', '$imgurl', '$imgtn')";
echo " $query ";
$result = mysql_query($query);
}
;}
Posted at 8:29 pm 13th June 2009
@melfneerg Yeah, I basically took the Twiiter or Facebook RSS feed, and passed it, then passed the result into the blogs database Posted via Twitter at 7:47 pm 13th June 2009
The Biigest Conker Tree
Its the biggest conker tree they ever did see apparently.
Posted at 5:47 pm 13th June 2009
@melfneerg I ran a cable from main router, up thru loft, and down into switch behind tv. Feeds ps3 and Box of X, etc PS: update ur blog :) Posted via Twitter at 10:46 am 13th June 2009
Hair Gel
So last night passeth with some celebrating the depature of that sulky diver footy player from the land of mancs by donning hair styles thick with gel. Perhaps coincidence, but maybe not.
No stories of myth or legend last night, but a pleasent celebration of Mark and Geoff's brithdays. I spoke to Neil and we talked about things that can't be talked about. Mark said the boat will be in the water next year, but in one piece or many he would not say. Eon discussed travelling the world and shagging vulnerable kiwi girls. And Mike the architect suggested I need to strengthen my loft up if I was to put any furniture up there to support the Scalectrix project that will probably never happen.
This morning will be a mad panic as I make my place child friendly, or to put it another to move anything worth a lot of money out of reach of my children. And then the next 24 hours will be dedicated to watching them put finger prints on my flat screen tvs, lego mini figures in my fish tank, and to clean up any blood stained injuries before their mother picks them up again.
Oh happy days! Posted at 9:34 am 13th June 2009
Mike the Architect is out tonight, as is Geoff, as its his birthday as well. A busy night of tales of myth and legend await Posted via Twitter at 9:41 am 12th June 2009
@melfneerg idd, I had to hard wire my ps3 for streaming HD Movies. Also as @M1sterC says, TVersity is a better streamer than MC Posted via Twitter at 8:08 am 12th June 2009
Eon's Agent said: Eon will be there Posted at 7:55 am 12th June 2009
@melfneerg the ps3 is far superior than Box of X, I have few probs. And sort ur moobs out! Posted via Twitter at 10:02 pm 11th June 2009
The Dukes Head
Mark is having beers on Friday night to celebrate heading with speed towards his fiftieth year (t and c's apply), so if you're around and fancy a beer please come along. Neil will be there too, so a double helping of friendly banter.
BTW: This message is mainly aimed at Eon. Posted at 5:54 pm 11th June 2009
So do I get the new iPhone? Or is there a better phone for me out there? Posted via Twitter at 10:46 am 11th June 2009
The Chrysalis of a Polymath
So today I said goodbye... not to Cheltenham and Gloucester, no, but to Setanta Sports. That was an incredibly hard thing to do. Not because I loved it so for its UC fights and LFC TV, no... because cancelling involved eight telephone calls, 3 emails, and two letters sent recorded delivery before it was all sorted. Never again.
Today I also said goodbye to Orange, my mobile provider for well over ten years. There service quality has gone down hill somewhat, and the new iPhone 3Gs with 32GB is out... so I will probably change to O2 now I have my PAC code in hand. Saying that, Orange were able to miraculously reduce my bill by 70 percent a month if I wanted to stay, and give me pretty much any phone they did free too.
But it is not all goodbyes, oh no, there were hellos. I received Grid for the Box of X today, so I will play online with Cheese, and who knows, maybe Colatron if he wants to be crashed off the track and beaten. But there is more still, oh yes... today I received that long awaited book... Chrysalis of a Polymath, in which I am referred, but only in passing, and then near the back. But it is a second of fame. And if you never heard of it, which you probably haven't, then you obviously aren't into the art of physcological magic and illusion. But if you are... get the book, as it has some nice methods.
So life continues to tumble along, the fishes are fishing, the scalectrix is zooming, and General Vezax is kicking our butt in warcraft. Happy days. Posted at 4:36 pm 10th June 2009
The Boys meet the IPhone
My boys love playing with the iPhone photo software
Posted at 12:04 pm 7th June 2009
My iPhone has lost all its music... Arse... And Sunday morning radio is pants Posted via Twitter at 10:40 am 7th June 2009
My iPhone has lost all its music... Arse... And Sunday morning radio is pants Posted via Twitter at 9:34 am 7th June 2009
Scalextric 6x7 with 3 loops
So this is the Scalextric Project for tomorrow when I see my boys. It should all fit together I hope.