Portfolio of David Turner http://davidturner.name Thu, 26 May 2011 11:31:56 +0000 en hourly 1 Getting to Grips with HTML5 – Part 3 http://www.biggiantcrayon.com/post-getting-grips-html5-part-3/ http://davidturner.name/getting-grips-html5-part-3/#comments Fri, 09 Jul 2010 12:24:48 +0000 David Turner http://davidturner.name/?p=553 I’ve finally published Part 3 of my “Getting to Grips with HTML5” Series over on the BGC Network. This part in the series covers the process of converting a project from XHTML to HTML5.

]]>
http://davidturner.name/getting-grips-html5-part-3/feed/ 3
Display Related and Recent Posts http://www.sramekdesign.com/wordpress/display-recent-and-related-posts-without-duplicating-each-other/ http://davidturner.name/display-related-recent-posts/#comments Sun, 04 Jul 2010 13:48:38 +0000 David Turner http://davidturner.name/?p=538 Stumbled across this particular article that deals with adding Related Posts and Recent Posts into a WordPress theme without the need of a plugin.

]]>
http://davidturner.name/display-related-recent-posts/feed/ 0
What’s that? New content? http://davidturner.name/new-content/ http://davidturner.name/new-content/#comments Thu, 01 Jul 2010 09:37:24 +0000 David Turner http://davidturner.name/?p=503 Why yes, yes it is. Earlier today (technically yesterday when this post goes live) I added a new section to my site. For a while now I’ve been maintaining my 365 Design Blog over on Tumblr. It’s a fantastic system for me to manage that much content both quickly and easily. Unfortunately it’s not so fantastic, in my experience, is the ability to find posts at a later date.

For the most part, this isn’t much of a problem, as a lot of the stuff I work on is revisited later and is viewable as a result. This isn’t the case with everything however. There are several pieces of code that I have produced and I’ve meant to revisit at points, but simply never have have the time to trawl through everything I’ve put up here to re-visit them.

Something Old & Something New

Today sees a new section being kinda added here on my portfolio. It’s currently not listed anywhere in the navigation, whilst I try to determine how best to add it in, but people have been able to visit some of the content it provides previously. So what have I added? I’ve shifted my demos from a folder of my site and integrated them much better into my site’s design, adding them as a custom post type, which affords me a better control over things. This means that people can check out some of the code I’ve produced sporadically without having to go hunting it down, much like visitors to my site don’t have to hunt down my Portfolio.

I’ll be playing about with how best to add this new section into my site, but for those of you that are reading about it here, you can view my my code demonstrations here. I should point out that this new section also ties in with my Coding posts on my blog. The demos are to view the results, the posts look at things in a bit more depth. I’ll also be working to connect these two areas together a bit better in the near future.

Hope you like what you find in the new section, I hope to be adding to it a bit more in the near future, as well as updating the Code section to reflect all the new additions. Enjoy!

]]>
http://davidturner.name/new-content/feed/ 0
PHP Generated Mosaic http://davidturner.name/php-generated-mosaic/ http://davidturner.name/php-generated-mosaic/#comments Thu, 10 Jun 2010 10:22:42 +0000 David Turner http://davidturner.name/?p=420 This particular piece of experimentation came about as a result of needing to get reacquainted with PHP’s ability to generate images. Why? I was working on an image related piece of script and, at the time, couldn’t find anything suitable. It also gave me a chance to reacquaint myself with PHP scripting for something other than handling Database Content.

How?

PHP has a great deal of functionality when it comes to generating content to be displayed on a website. One thing it can’t do, by itself, is produce images. To do this it needs a little bit of help, in the form of the GD Library, which enables image generation with PHP. Two files were needed to generate the example. The first was the file that loops through all of the required number of images to get them displayed, and the second generating the images, which looks something like this:


<?php
$w = $_GET['w'];
$h = $_GET['h'];
$r = rand(0,255);
$g = rand(0,255);
$b = rand(0,255);
header("Content-type: image/png");
$im = @imagecreate($w, $h)
    or die('Cannot Initialize new GD image stream');
$background_color = imagecolorallocate($im, $r, $g, $b);
imagepng($im);
imagedestroy($im);
?>

This allows for easy image genration, passing in variables for the required width and height. Click the link below to see an example of it in action.

Demo

]]>
http://davidturner.name/php-generated-mosaic/feed/ 0
Revisiting Previous Work http://davidturner.name/revisiting-previous-work/ http://davidturner.name/revisiting-previous-work/#comments Wed, 09 Jun 2010 17:46:50 +0000 David Turner http://davidturner.name/?p=412 I’ve decided to start revisiting some of my old 365 Design Blog pieces. I’ll be doing this for a couple of reasons. The most notable of these is to provide me with a space in which I can cover the details of the material I have been producing in a bit more detail that I have afforded elsewhere. It will also allow me to revisit some old pieces and address flaws in them, if any exist, and to update my code.

It will also allow for visitors to my site to see a bit more about what I do, the thought process I take when doing it, and also most importantly, the why I do it. I’ll be looking over the various demos I have uploaded already over the next few days, so expect there to be new bits and pieces popping up here shortly.

]]>
http://davidturner.name/revisiting-previous-work/feed/ 0
WebINK Web Fonts http://www.extensis.com/en/WebINK/ http://davidturner.name/webink-web-fonts/#comments Sun, 06 Jun 2010 19:10:47 +0000 David Turner http://davidturner.name/?p=521 Extensis seem to be getting ready to launch their own web font service.

]]>
http://davidturner.name/webink-web-fonts/feed/ 0
Very Simple Tumblr SEO http://blog.kortina.net/post/62021975/very-simple-tumblr-seo-better-page-titles-1-go http://davidturner.name/very-simple-tumblr-seo/#comments Wed, 02 Jun 2010 19:08:25 +0000 David Turner http://davidturner.name/?p=518 Always wondered how best to get the title tag of Tumblr to be dynamic. Now I know.

]]>
http://davidturner.name/very-simple-tumblr-seo/feed/ 0
Getting to Grips with HTML5 – Part 2 http://www.biggiantcrayon.com/post-getting-to-grips-with-html5-part-2/ http://davidturner.name/grips-html5-part-2/#comments Tue, 01 Jun 2010 14:02:29 +0000 David Turner http://davidturner.name/?p=383 Earlier today I finished off Part 2 of my “Getting to Grips with HTML5” Series over on the BGC Network. The second part in the series details some of the differences between XHTML and HTML5, and how easy some of the changes are.

]]>
http://davidturner.name/grips-html5-part-2/feed/ 0
Ball Pool http://mrdoob.com/projects/chromeexperiments/ball_pool/ http://davidturner.name/ball-pool/#comments Thu, 27 May 2010 19:02:36 +0000 David Turner http://davidturner.name/?p=515 Who needs Flash for animation?

]]>
http://davidturner.name/ball-pool/feed/ 0
Getting to Grips with HTML5 – Part 1 http://www.biggiantcrayon.com/post-getting-to-grips-with-html5-part-1/ http://davidturner.name/grips-html5-part-1/#comments Sun, 23 May 2010 09:58:00 +0000 David Turner http://davidturner.name/?p=347 I’ve posted the first part of a series on HTML5 and how you can use it over on the BGC Blog. If you’re interested in using HTML5 either now or in the future then you should make sure to go check it out.

]]>
http://davidturner.name/grips-html5-part-1/feed/ 0