The Real Json
Home
Pictures
The Real Json, including the real json in my blog, any mentions of the real js0n in my family tree and the real json in Folkestone.
Blog / forum etc:
Jan14
Pictures
I'm sure you've checked out Saturday's walk around Canterbury by now, I've merged in the photos that I took along the way now too. Involved a bit of a hack really, Flickr offers a geocoded feed of my photos, and will let me narrow that down to say just my pictures of Canterbury, but for my map on that page I want just the pictures that I took on a particular day. And oddly Flickr don't seem to do a feed by date. The way round it, add another tag when I upload the pictures. Bit fiddly, but it works, so now see all my photos I took that day, which I can then use to make the map (though actually I'm using the json version. As Clare points out, that needs arrows on it, so you can tell easily which way we were going, it's a squiqqly mess of lines at the moment. I quite like this example, but it involves overlaying images... if I'm just drawing a line between two points, I ought to be able to do it with maths, putting an arrow head on any line by drawing another couple of lines, I'll give it a go...
Comment / reply
Nov24
Pictures
Hmm, I smell bullshit, there's a supposedly fake GAP voucher doing the rounds offering a 60% discount at GAP today, I heard about this on www.bbc.co.uk/breakfast - don't worry though, GAP will still be offering a genuine 30% discount to anyone turning up with the fake 60% voucher. Nice PR work whoever started distributing that fake voucher, it got GAP on the news... if it can be traced back to anyone connected with the company, they really ought to be made to honour it.
This is completely different to my obviously fake Wagamama vouchers the other day, that was just a joke.
Think we're going into GAP today anyway, annoyingly we did some christmas shopping their last week and could have saved ourselves a bundle, but we're still after more baby clothes for Poppy today. I think it's safe to spoil that surprise here, she doesn't read the blog.
We did have long term plans to go to London again today, but no-one really felt like it when it came down to it so we're going to try and see the Terracotta Army in the new year instead. As there are no real vouchers on www.wagamama.com today we're going to try somewhere else for lunch, maybe Cafe Mauresque or an Italian...
Done more javascript; more classification of venues, see (for example) Cafes in Canterbury.
Time to run for the bus...
2007 :: Comment / reply
Nov22
Pictures
Some javascript messing about
Oh that'll come in handy for all those mashups based around me you've been planning... Not a straight feed of what I post every day, it searches the content of the site, probably seven or eight years worth of postings now.
JSON is "javascript object notation" btw (if you have no interest in javascript best stop reading now), presenting information in such a format you can slot it straight into a script without any more processing needed. XML is great for passing info around the web, except that AJAX requests specifically block you from fetching XML from another website, but you can call javascript from anywhere happily.
It works in the same way as the xml feeds, construct your call to my JSON API (ooh, get me) like this:http://www.clarkeology.com/javascript/your_callback_goes_here/squirrel+and+magpie.js
And that'll return something like:callback_goes_here( [{guid:10701,
link:"http://www.clarkeology.com/m/10701/10701/New+JSON+feed+of+my+blog",
title:"New JSON feed of my blog",
description:"Oh that'll come in handy for all those mashups based around me you've been planning... Not a straigh",
category:["javascript",
"json",
"feed",
"xml"],
geo:{lat:51.0800,
lon:1.1645}},
{guid:10278,
link:"http://www.clarkeology.com/m/10278/10278/Mods+and+rockers+all+over+again",
title:"Mods and rockers all over again",
description:"Yesterday I saw a turf war in Folkestone, a ferocious battle between six magpies and three squirrels",
geo:{lat:51.0800,
lon:1.1645}},
{guid:63,
link:"http://www.clarkeology.com/m/63/63/arcade+games",
title:"arcade games",
description:"Walked the long way round Listria Park on the way to Church Street today, and saw two magpies and a",
geo:{lat:51.0800,
lon:1.1645}}] )
Hmm, will reformat that later so it looks nicer here (don't know where all those backslashes came from, they're not there in the real json), and also I should investigate if there is an rss style standard for json blog feed, it's all very well me saying "my blog titles are called mSubject" but if no-one else is using that it's not really going to catch on for blogs... If you don't know what that is, then just come back later, I'm sure to post something about squirrels again soon.
To use these feeds of mine, you want to put some javascript on your page that grabs that feed and does something with it. If you're using the newer version of jquery.com say, you can whack some of my content into your page like this:
// hmm, bah just realised I've done something fundamentally unhelpful, I really do need to have "callback=" in my standard js url to fit in with other people's requirements...
$.getJSON("http://www.clarkeology.com/javascript/callback_goes_here/search.js jsoncallback=?",
function( js ){
for ( var i in js ) {
$('body').append( '<' + 'h2>' + js[i].title + '<' + '/a><' + '/h2><' + 'p>' + js[i].description + '<' + '/p>' ); }
});
I'm doing that on yourfolkestone.com/javascript
Will be extending this to cover other content soon, ie a list of pubs local to a particular postcode or something like that, won't that be nice?
2007 :: Comment / reply
Also there's an xml feed of the real json, a JSON feed, and a KML feed of the real json , search my the real json venue info, the real json on Your Folkestone.
Hope you found what you're looking for, if not please leave a message about "the real json".
Add the real json as a venue here, help me out, and the next person.
Google the site here
