Some might say polaroids are a bit overdone when it comes to displaying your photos, but I’m going to be using the Flickr API to get a selection of images and hang them on a virtual line.
There’s a bit more to this though, as I’ll be showing you how to calculate the actual widths of our hanging polaroids so that we can fit as many on the line as possible without having them overlap. This may sound trivial, but when we’re hanging our pictures at an angle it becomes slightly more complex.
Continue reading “Creating polaroids using Flickr API (also how to space rotated elements correctly)” »
For those of us who are interested in computers and programming, I have a YouTube channel for you. It’s called Computerphile and it posts all sorts of interesting videos about computers, programming, and anything IT related. It’s run by a man named Brady from Nottingham University. He has several other channels, so it’s worth checking them all out!
jQuery BBQ creates a nice interface for manipulating your url without having to reload the page. This means that you can create bookmarkable content without having to reload the page every time you want to change a url parameter. This is great for creating AJAX based forms that can display results instantly while still being bookmarkable.
A lot of sites use this sort of functionality already. A good example of this is grooveshark, which uses the hash part of a url to store parameters. Drupal also includes jQuery BBQ in its base package. Page reloads take a long time, so in today’s world of responsive web pages and impatient users, putting url parameters in the hash part of a url makes a lot of sense.
Continue reading “Using jQuery BBQ to create an instant bookmarkable search with AJAX” »
If you have a video/photograph that has a plain background, such us you’d find if you used a green/blue screen or maybe on a plain sky background, you can create a chroma key effect. This is the same technique used by weather presenters and on hollywood movies to replace the background with something else.
We’ll go through some of the trials an tribulations of using this to replace the background of an image and even on a video. Continue reading “Creating a chroma key effect with HTML5 canvas.” »
If you’ve ever wanted to include content from another site on something you’re working on, then this is probably one of the simplest ways to do it using PHP. I’ll show you how to scrape a site for specific content using a simple to use PHP library.
Continue reading “Scraping a site using PHP” »
HTML5 brings us the amazing canvas element. The canvas element is useful for so many things, but here we will look at how to create a book using a canvas and a few other elements.
Continue reading “Making a fancy book using HTML5 canvases” »