Category Archives: Web

GIFs

In a vague attempt to try to organise my growing GIF collection, I set up a large chain of actions to take a URL of a GIF and upload it to my new bukkit-style site, gif.alexforey.com.

I browse most of the GIFs in my life on Reddit, though Alienblue, and the easiest method of sharing the URL of the GIF is to email  it.

So whenever I want to save a GIF, I email myemail+gifs@alexforey.com.

The email’s subject is the description I want to give my GIF, and the body is the URL.

Then there’s a filter in Gmail that takes any email sent to myemail+gifs@alexforey.com and gives it the label of ‘gif’, and archives it (“skipping the inbox”).

I then have an IFTTT recipe to take new emails with the label ‘gif’, and save them to Dropbox, with the file name being the description.

Finally, I have Dropbox Automator upload any new files in that Dropbox folder via FTP to gif.alexforey.com.

It’s a bit hacky, but it works, and it’s quite a neat system, until I can think of something better.

Little Printing

On Wednesday, I went to the first of BERG‘s Little Printer After School Clubs, or as Alice put it:

It was great fun, and I got to meet some interesting people in person, like Alex Muller, Devin Hunt,  and a few others. In short, I talked to lots of people, wrote lots of code, and ate too much pizza. I could get used to that.

But the title of this post is Little Printing, so I guess that’s what I intended to write about.

Designing for the Little Printer is harder than you think – because it is a mix of mediums. You are designing for print, so it’s print design – but you have to use the code of web design to achieve it. So that’s one factor of designing your publication.

That, along with content, is enough to make a publication. But to make a good publication, you have to think about where the reader will be reading your publication, and hence what access to other things they have.

There’s no point making a publication that is designed for the morning, but required scissors because you will most likely be reading it on the tube – where you won’t have access to them.

There’s no point making a publication that is designed for the morning, but required access to the internet because you might also be reading it on the tube, where there is no WiFi or 3G.

I think you get where I’m going here.

You have to think about the environment your reader will be in, as well as what content might be useful to them, where to get it, and designing and creating assets for the whole thing.

So, bearing this in mind, I have created no less than two publications.

The first of which is for Markpond, my bookmarking website. You can choose to print out either your two most recent bookmarks, or two random bookmarks from your history. I think the latter is much more fun, as you can look back in time and find out what you were reading, and your results will be different every time. You also have the choice of including today’s popular bookmark, although I still need to do some work on the algorithm that chooses that.

Here’s what that one looks like on screen (@ 100% zoom):

And now in reality:

Markpond in Print

You’ll notice the QR codes. People seem to have collected this hatred of them – but I still quite like them. I don’t like it when they’re using in stupid ways by advertising agencies, but I do like the idea of being able to encode a digital link into a real life object, and being able to convert it back to digital whenever I want to. It saves you the time and effort of having to type the URL back into your tiny smartphone.

One of the things that struck me was just how little the Little Printer prints. That sounds obvious, but when you view the same publication on a screen it is at least twice the width and height of its real-life counterpart.  And hence your font-sizing is all wrong, the spacing is uneven, and it just looks a bit off.

And that’s the point of these Little Printer After School Clubs – to be able to see your publication in real life before anyone else does. The most accurate you can get online is by using BERG’s Rapid Prototyper, but even then the fonts aren’t quite right.

So anyway my second publication was On This Day (in History), and is basically just what it says. It can either pull from the BBC’s On This Day Feed (which used to work, but now doesn’t. I’m fixing it), or the Wikipedia one. The BBC feed is more old-current affairs, and the Wikipedia one is more historical events (battles, that sort of thing). So you can choose what you like.

It’s on GitHub, so if you want you can have a poke around, and see how I structure my publications in PHP. The publication for Markpond is structured in almost exactly the same way, except that it also has to dive right into the core function files of Markpond to go and get bookmarks, generate QR codes, etc.

I can’t wait to see what other people do with the Little Printer, an I’m really excited for it’s release some time in November. Hopefully both my publications will be on the starting line-up when Little Printers start arriving in homes. I guess the only problem is that I can’t afford one (yet), so let’s just sit tight and see what the Raspberry Pi Summer Coding Competition Judges think of Markpond.

photostream

Well this was unexpected

I don’t usually blog about small things – but since I updated iCloud control panel in Windows this has popped up:

It behaved rather bizarrely, and appears to have a system path of Computer\Photo Stream. No proper file path or anything, it’s just appeared. I’m not even sure if it is a folder – it might be an empty folder that is filled with not-actual-files by the iCloud Control Panel, and when I copy a file from the folder, it simply downloads it from iCloud.

I’d be interested if anyone could explain how this works.

The Fortrus

I have started another thing. Whoops.

But this time, it’s a tech blog; and I think it’s fair to say it’s fairly awesome. It’s not just me however, because otherwise there wouldn’t be much point of a blog other than this one. In fact, as far as I know, there’s Henry Dyer, Amos Jackson, Robert Young, Nicolas Weninger, Albert Meek and Hugo Cheema-Grubb. I really can’t be bothered to link to all their pages. It will take a long time, and it will get boring.

And then I have to explain why I named it what I did. Oh, except you still don’t know. Well in that case it’s called “The Fortrus”, and it has the most epic badass domain name out there – http://fortr.us. And that’s not the short name either. And it was called the Fortrus because of the links to a pre-existing group at school self-named “The Fortress of Solitude”, after that place in one of Marvel’s comics. And to fit that in with an inexpensive yet also awesome domain name, I deliberately misspelt it.

And isn’t that interesting. It also has a Twitter and a Facebook Page (shudder).

And now some stuff for geeks. You may be wondering a) how I got my own hosted short URLs, that you can find in the Twitter feed; and b) how I got it to tweet automatically through my own app on Twitter. Well, two simple plugins for WordPress.org (which I’m obviously using as the engine for this blog) can do the job for you.

The first is “la petite url”, which is the one that allows you to have your own short URLs. That’s cool, and requires virtually zero-configuration.

The second is “TweetUpdater”, which nicely enough has integration the “la petite url” built right in. The only difference is that you can make your own Twitter app, go into the plugin editor in WordPress and replace the current tokens with the one from your app. Now whenever your WordPress bot Tweets, in the info you can see it was “via The Fortrus”. Interesting.

One last thing – I’m using the BackWPup to back up my entire installation of WordPress both on this blog and at the Fortrus, so that you can effectively nuke my servers and I’ll still have  an instantly replaceable blog. The cool thing about BackWPup is that it can back up to many different places simultaneously, and so I’ve set it to save to Dropbox and email. And so to kill either this blog or the Fortrus, you’d have to blow up my servers, Dropbox’s servers, Google’s server’s and my house.

Good luck trying.