Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /customers/7/5/b/pappmaskin.no/httpd.www/wp-content/plugins/delicious_screenshots/wp_delicious_sceenshots.php on line 75
Warning: file_get_contents(http://feeds.del.icio.us/v2/json/mskogly/art?Fcount=6): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /customers/7/5/b/pappmaskin.no/httpd.www/wp-content/plugins/delicious_screenshots/wp_delicious_sceenshots.php on line 75
Warning: Invalid argument supplied for foreach() in /customers/7/5/b/pappmaskin.no/httpd.www/wp-content/plugins/delicious_screenshots/wp_delicious_sceenshots.php on line 79
If this works there should be about 6 thumbnails on this page, showing links bookmarked using Delicious, and tagged with «art».
Tonights nerdfest will include trying to use the SnapCasa and del.icio.us to generate a lovely page full of thumbnails, one for each url.
1. My 100 latest bookmarked urls from del.icio.us: http://feeds.delicious.com/v2/rss/mskogly?count=100
2. A SnapCasa login account.
3. A server that supports xslt transformation. (I’m running MAMP on my macbook, and pappmaskin is hosted on One.com)
4. A text editor. I’m using Dreamweaver for this, since it has some pretty good tools for building xslt. (Take a look at the Adobe Livedocs for more info on using it).
Just to make it easier to reuse and embed Youtube videos on different sites, and because it makes it easier to try out new ideas without adding messy bits to a larger project. Sort of like rapid prototyping/proof of concept before «committing» to a feature and spending alot of time integrating something you might end up throwing out.
//if you want to test with a local file
/* create the processor and import the stylesheet */
$proc = new XsltProcessor();
$xsl = $proc->importStylesheet($xsl);
//$proc->setParameter(null, «titles», «Titles»);
//not in use, but needed if you want to pass variables into the xslt from php
/* transform and output the xml document */
$newdom = $proc->transformToDoc($inputdom);
The easiest way would be to simply link each artist in their festival guide to the corresponding arist page, but the first problem is that the layouts are quite different. To solve this we changed the artist info page to take a folder id as a paramter, so that we can change its layout dynamically. And is so happens that we have a folder that has no layout at all, which means I can do something like this:
This gave me the sudden urge to just insert an iframe dynamically under each artist name in the festival guide, so that you can simply click on an artist, and get a ton of information, music, videos, etc, but the problem with this is that there is simply TOO MUCH information.
Luckily, the artist info page is build up of several smaller, freestanding pages, placed in the artist info page using iframes (mostly). This means that I can break it all up, and perhaps create a tabbed interface for each artist in the festival guide, which I will work some more on tomorrow.
But until then I want to test a few other things:
A few minutes ago I went through the list of the 17 bands that are scheduled to play at the Hove festival (www.hovefestivalen.no), seached them all up on youtube, and placed them in a standard youtube playlist. I then created a custom player, that looks like this:
Hove – Day 1:
Hove – Day 2
Perhaps it could be as easy as this? I you are reading a festival guide, what else do you need than a fast way to check out each artist? Is one youtube video is for me enough to tell me wether or not to see a band live? Perhaps.
I think I will insert this little youtube player in the page and ask around tomorrow if it works or not, and then I will do some tests with the youtube api to see if a can extract my playlist as xml and present is as I wish.
Norsk? Du finner en norsk versjon av denne artikkelen på NrkBeta.no
I recently made a Gameinfo service for spiller.no. It pulls in licenced gameinfo from our partner GameXplore though XML, and combines it with a search for related videoes from Youtube before it is presented on the page.
Youtube + Google Api
I made the Youtube part as a standalone page, and I include it with iframe. The reason I used Iframe was to make it easily reusable on other projects where it would fit to do something similar. I can for instance include it in my blog like this:
The page takes any search term as a GET, in this example it simply queries the youtube google api with the title of the game, with a few extra parameters (limit on the number of returned movies + a filter to remove «adult content»). I spent some time to create the XSLT to convert the xml from youtube/google to html, which is basically the same format for many of Googles services. I spent hours trying to find out if someone had created this already, but since I couldn’t find anything I had to create it myself. If you want to learn more about the youtube api I suggest starting at the Youtube Api group on Google Groups.
I have gotten some emails asking for the xslt for the youtube search, so I wanted to share it here:
This is my example output:
And here is the xslt I used to produce the above result:
If you have any questions, feel free to ask in the comments.
Spam? Porn? Nope!
I was of course a little worried about what the youtube search would return, so when testing I went through quite a few games to see if the search returned movies that were unrelated to the gametitle, or contained nudity, but so far it looks really good, the youtube videos are actually the most interesting part of the service, so I’m really happy with it!
Yesterday I also added gametrailers to the mix, check out the gamepage for Assassins Creed for an example (click on the huge image at the top of the page) to make it play. I have bought a lisence for the wonderful Jeroen FLV Media Player which I use to present the gametrailers.
New gametrailers page, based on blip.tv
After that I spent a few minutes to create a new page that lists all the latest gametrailers published through GameXplore. I use the Jeroen Flv Media Player for this page as well. I created this yesterday, so I have to debug it a little bit before we start to promote it, and I also have to consider to increase the video buffer time, it seems like blip.tv har pretty slow servers. Right now there is a five second buffer, which should be more than enough, but even with broadband connection the video stops and buffers every five second. I don’t want people to wait forever for the video to buffer, but it is super irritating when the video stops every 5 seconds to buffer, so I have to decide what to do with it. One (hard) solution could be to download all the .flv to my server and play them from there… I am a big fan of blip.tv, they have the best player around, and their cross posting abilities are great (at least in theory, I still haven’t gotten it to work with this blog or myspace), so I am a little dissapointed to discover that the blip.tv servers (or lines?) are so slow to deliver video. (to Norway at least).
Add the spiller.no Gameinfo search to your browser
Sjekk ut info, screenshots, trailers og anmeldelser på nye og kommende spill:
This is just a fast remake of the Hight Library Linky script. Its my first script, just wanted to check out how hard it would be to rework. Luckily for me it was super easy. It inserts links to two norwegian bibliographical databases.
Bibsys, containing material from universities and colleges.
And Sambok, containing material from most Public Libraries in Norway.
Pretty useful, at least in theory, since ISBN search is quite limiting. But it will have to do for now.
Grant Robinson : Montage-a-google launcher: «Montage-a-google is a simple web-based app that uses Google’s image search to generate a large gridded montage of images based on keywords (search terms) entered by the user. Not only an interesting way of browsing the net, it can also be used to create desktop pictures or even posters»‘