<?xml version="1.0" encoding="UTF-8"?>
<tumblr version="1.0"><tumblelog name="finlay" timezone="US/Eastern" title="Finlay Craig"></tumblelog><posts start="0" total="56"><post id="20718094553" url="http://finlay.tumblr.com/post/20718094553" url-with-slug="http://finlay.tumblr.com/post/20718094553/prototype-iphone-ipad-apps-with-hype" type="regular" date-gmt="2012-04-08 16:09:43 GMT" date="Sun, 08 Apr 2012 12:09:43" unix-timestamp="1333901383" format="html" reblog-key="Cn0q2TiK" slug="prototype-iphone-ipad-apps-with-hype"><regular-title>Prototype iPhone/iPad Apps with Hype</regular-title><regular-body>&lt;p&gt;You’ve got a great idea for an iPad App, but you don’t have the technical skills to communicate that idea through XCode and Objective-C to your friends, so what can you do? Why not try &lt;a href="http://www.tumultco.com" title="Hype"&gt;Hype&lt;/a&gt; from Tumult. Hype creates HTML 5 webpages with exciting animations and interactions without the need to write any code.&lt;/p&gt;
&lt;p&gt;Now this isn&amp;#8217;t so much a review of Hype, but more what you can do with Hype to simulate a native app running on the iPhone or iPad.&lt;/p&gt;
&lt;p&gt;Hype includes templates and preferences that help you design interfaces perfectly for the iPhone and iPad dimensions. The issue is though, Hype exports these as web pages. Ok, so that&amp;#8217;s not so bad, but you still get the annoying navigation bars associated with Safari across the top of your prototype app that kill the illusion. &lt;/p&gt;
&lt;p&gt;Fortunately Apple have created a little bit of code you can stick in any HTML file that tells your iOS Device to treat that webpage as a WebApp, so your webpage can be saved to the home screen of an iOS Device, and opened without having to go into Safari, and without the navigation bar across the top of the browser.&lt;/p&gt;
&lt;p&gt;So here is what you&amp;#8217;ll need:&lt;/p&gt;
&lt;p&gt;1. A Mac&lt;/p&gt;
&lt;p&gt;2. Hype (14-day trial available from &lt;a href="http://www.tumultco.com/hype"&gt;www.tumultco.com/hype&lt;/a&gt; or you you can purchase it from the Mac App Store)&lt;/p&gt;
&lt;p&gt;3. &lt;a href="http://db.tt/geYELbz" title="Dropbox"&gt;Dropbox&lt;/a&gt; (2GB free account available &lt;a href="http://db.tt/geYELbz" title="Dropbox"&gt;HERE&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;4. A text/code Editor (something like TextWrangler, Espresso etc)&lt;/p&gt;
&lt;p&gt;(Hype is super easy to use and you&amp;#8217;ll pick it up very quickly)&lt;/p&gt;
&lt;p&gt;Once you&amp;#8217;ve got your Hype project complete you&amp;#8217;re going to want to export that to Dropbox. This is a feature supported by Hype. Once your project has exported, Hype will give you the option to copy the link to your exported project. Do that! (You can send anyone that link and they can view your project. Neat!)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;NOW FOR THE MAGIC CODE!&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;You&amp;#8217;ll have to find your Dropbox folder now. It&amp;#8217;s usually in your user folder next to your Documents, Pictures, Movie folders.&lt;/p&gt;
&lt;p&gt;In that folder you&amp;#8217;ll find &amp;#8216;Public&amp;#8217; in there, you&amp;#8217;ll find a folder that is the name of your project. In there is the HTML file that your Hype project lives on. (That&amp;#8217;s the page the link you copied earlier leads to). We are now going to need to go into there and add one extra line of code so that your iOS Device will let you this is a Web App.&lt;/p&gt;
&lt;p&gt;Open the &amp;#8216;projectname.html&amp;#8217; (replace &amp;#8216;projectname&amp;#8217; with your real project name) with your text editor. (I like Espresso from MacRabbit) In that file you should see some nice HTML code. If you look closely towards the top of that file you should see &amp;#8216;&amp;lt;head&amp;gt;&amp;#8217; and then a few lines later &amp;#8216;&amp;lt;/head&amp;gt;&amp;#8217; All the code contained within here is the setup code for that page. We are going to define in here that we want this Web Page to be treated as Web App.&lt;/p&gt;
&lt;p&gt;So somewhere in between &amp;#8216;&amp;lt;head&amp;gt;&amp;#8217; and &amp;#8216;&amp;lt;/head&amp;gt;&amp;#8217; find an empty line, or make one, and insert this line of code:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;lt;meta name=&amp;#8221;apple-mobile-web-app-capable&amp;#8221; content=&amp;#8221;yes&amp;#8221;&amp;gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Now save that file and close it, and you&amp;#8217;re done!&lt;/p&gt;
&lt;p&gt;To open that on your iOS Device, open that link you copied earlier, or right click on your &amp;#8216;projectname.html&amp;#8217; file, choose Dropbox, and Copy Public Link, and see what the page looks like. This time it should open in Safari just like a normal webpage.&lt;/p&gt;
&lt;p&gt;To save this to your home screen click on the box icon with the arrow on the Safari navigation bar, then choose &amp;#8216;Add to Home Screen&amp;#8217;. Name this what you like, and it will now be saved to your home screen. If you tap on that icon it will now launch like a native App! &lt;/p&gt;
&lt;p&gt;(To add stuff like a custom icon, there are lines of code for that too. For example, &amp;lt;link rel=&amp;#8221;apple-touch-icon&amp;#8221; href=&amp;#8221;icon.png&amp;#8221;/&amp;gt; will let you choose your own icon. It will have to be in your project folder next to your &amp;#8216;projectname.html&amp;#8217; file remember! For more advanced information, hit up &lt;a href="http://sixrevisions.com/web-development/html5-iphone-app/"&gt;&lt;a href="http://sixrevisions.com/web-development/html5-iphone-app"&gt;http://sixrevisions.com/web-development/html5-iphone-app&lt;/a&gt;&lt;/a&gt;)&lt;/p&gt;</regular-body><tag>iphone</tag><tag>ipad</tag><tag>html5</tag><tag>prototype</tag><tag>hype</tag><tag>mac</tag><tag>os x</tag></post><post id="17328117657" url="http://finlay.tumblr.com/post/17328117657" url-with-slug="http://finlay.tumblr.com/post/17328117657/busy-busy" type="regular" date-gmt="2012-02-09 19:37:27 GMT" date="Thu, 09 Feb 2012 14:37:27" unix-timestamp="1328816247" format="html" reblog-key="meXBpW4X" slug="busy-busy"><regular-title>Busy Busy!</regular-title><regular-body>&lt;p&gt;I don&amp;#8217;t know what happened to the time, but almost already 1 month into semester 2! I suppose times flies when you&amp;#8217;re having fun! So what&amp;#8217;s been keeping me busy?&lt;/p&gt;
&lt;p&gt;Well work the &lt;a href="http://www.themagdalen.co.uk" title="The Magdalen"&gt;The Magdalen&lt;/a&gt; is never ending. One magazine ends, another ends. (Not to mention planning the next again magazine too!)&lt;/p&gt;
&lt;p&gt;I&amp;#8217;ve been doing some fun work with one of my older clients, &lt;a href="http://www.domenicamoregordon.com" title="Domenica More Gordon"&gt;Domenica More Gordon&lt;/a&gt; (she&amp;#8217;s expanded her range of cards recently&amp;#8230;check them out!).&lt;/p&gt;
&lt;p&gt;Finally my latest client is &lt;a href="http://www.singderella.com" title="Singderella"&gt;Singderella&lt;/a&gt;. They have some exciting new stuff in the pipe line, so if music is your thing, then do check it out!&lt;/p&gt;
&lt;p&gt;Well actually that&amp;#8217;s not all there is to life right now&amp;#8230;there is that little thing called &amp;#8216;Uni&amp;#8217;. Third year is without question the most fun year yet. Last semester we were developing complex data visualisations using processing and arduino, and this semester i&amp;#8217;m designing two different iPad Apps. &lt;/p&gt;
&lt;p&gt;If the above list of activities doesn&amp;#8217;t say &amp;#8216;heaven&amp;#8217; to you then&amp;#8230;well you&amp;#8217;re not me!&lt;/p&gt;
&lt;p&gt;F&lt;/p&gt;</regular-body><tag>busy</tag><tag>work</tag><tag>ipad</tag><tag>domenica more gordon</tag><tag>singderella</tag><tag>The Magdalen</tag></post><post id="16304948985" url="http://finlay.tumblr.com/post/16304948985" url-with-slug="http://finlay.tumblr.com/post/16304948985/only-dullards-crippled-into-cretinism-by-a-fear-of" type="quote" date-gmt="2012-01-22 20:06:49 GMT" date="Sun, 22 Jan 2012 15:06:49" unix-timestamp="1327262809" format="html" reblog-key="I6nalubC" slug="only-dullards-crippled-into-cretinism-by-a-fear-of"><quote-text>Only dullards crippled into cretinism by a fear of being thought pretentious could be so dumb as to believe that there is a distinction between design and use, between form and function, between style and substance. If the unprecedented and phenomenal success of Steve Jobs at Apple proves anything it is that those commentators and tech-bloggers and “experts” who sneered at him for producing sleek, shiny, well-designed products or who denigrated the man because he was not an inventor or originator of technology himself missed the point in such a fantastically stupid way that any employer would surely question the purpose of having such people on their payroll, writing for their magazines or indeed making any decisions on which lives, destinies or fortunes depended.</quote-text></post><post id="8189006091" url="http://finlay.tumblr.com/post/8189006091" url-with-slug="http://finlay.tumblr.com/post/8189006091" type="photo" date-gmt="2011-07-28 22:45:25 GMT" date="Thu, 28 Jul 2011 18:45:25" unix-timestamp="1311893125" format="html" reblog-key="Nx5ZvYEz" slug="" width="612" height="612"><photo-url max-width="1280">http://25.media.tumblr.com/tumblr_lp2f7prL651qzjd2io1_1280.jpg</photo-url><photo-url max-width="500">http://24.media.tumblr.com/tumblr_lp2f7prL651qzjd2io1_500.jpg</photo-url><photo-url max-width="400">http://25.media.tumblr.com/tumblr_lp2f7prL651qzjd2io1_400.jpg</photo-url><photo-url max-width="250">http://25.media.tumblr.com/tumblr_lp2f7prL651qzjd2io1_250.jpg</photo-url><photo-url max-width="100">http://25.media.tumblr.com/tumblr_lp2f7prL651qzjd2io1_100.jpg</photo-url><photo-url max-width="75">http://24.media.tumblr.com/tumblr_lp2f7prL651qzjd2io1_75sq.jpg</photo-url></post><post id="8188752518" url="http://finlay.tumblr.com/post/8188752518" url-with-slug="http://finlay.tumblr.com/post/8188752518" type="photo" date-gmt="2011-07-28 22:38:41 GMT" date="Thu, 28 Jul 2011 18:38:41" unix-timestamp="1311892721" format="html" reblog-key="3ld68Two" slug="" width="450" height="336"><photo-url max-width="1280">http://25.media.tumblr.com/tumblr_lp2ewhGD5l1qzjd2io1_500.jpg</photo-url><photo-url max-width="500">http://25.media.tumblr.com/tumblr_lp2ewhGD5l1qzjd2io1_500.jpg</photo-url><photo-url max-width="400">http://25.media.tumblr.com/tumblr_lp2ewhGD5l1qzjd2io1_400.jpg</photo-url><photo-url max-width="250">http://25.media.tumblr.com/tumblr_lp2ewhGD5l1qzjd2io1_250.jpg</photo-url><photo-url max-width="100">http://24.media.tumblr.com/tumblr_lp2ewhGD5l1qzjd2io1_100.jpg</photo-url><photo-url max-width="75">http://25.media.tumblr.com/tumblr_lp2ewhGD5l1qzjd2io1_75sq.jpg</photo-url></post><post id="5481138820" url="http://finlay.tumblr.com/post/5481138820" url-with-slug="http://finlay.tumblr.com/post/5481138820/recent-work-hugh-buchanan" type="link" date-gmt="2011-05-14 15:07:00 GMT" date="Sat, 14 May 2011 11:07:00" unix-timestamp="1305385620" format="html" reblog-key="KPYMdEUR" slug="recent-work-hugh-buchanan"><link-text>Recent Work: Hugh Buchanan</link-text><link-url>http://www.hughbuchanan.co.uk</link-url><link-description>&lt;p&gt;I&amp;#8217;ve been doing more and more freelance Web Design recently, and here is my &lt;a title="Hugh Buchanan" href="http://www.hughbuchanan.co.uk"&gt;latest&lt;/a&gt; creation.&lt;/p&gt;
&lt;p&gt;It&amp;#8217;s the site for a Watercolourist &lt;a title="Hugh Buchanan" href="http://www.hughbuchanan.co.uk"&gt;Hugh Buchanan&lt;/a&gt;. Have a look, and let me know what you think.&lt;/p&gt;
&lt;p&gt;If you are interested in hiring me, please do get in touch at f@finlaycraig.com&lt;/p&gt;
&lt;p&gt;F&lt;/p&gt;</link-description></post><post id="3546756030" url="http://finlay.tumblr.com/post/3546756030" url-with-slug="http://finlay.tumblr.com/post/3546756030/dynamic-css-without-using-javascript" type="regular" date-gmt="2011-02-27 17:39:00 GMT" date="Sun, 27 Feb 2011 12:39:00" unix-timestamp="1298828340" format="html" reblog-key="9aEXRjMZ" slug="dynamic-css-without-using-javascript"><regular-title>Dynamic CSS without using JavaScript</regular-title><regular-body>&lt;p&gt;Let&amp;#8217;s say you want some dynamic graphics on your website, but you don&amp;#8217;t want to, or don&amp;#8217;t know how to use JavaScript.&lt;/p&gt;
&lt;p&gt;Well PHP might be the answer. The first thing I thought was, &amp;#8216;How do a I get PHP into my CSS File?&amp;#8217;. Well you don&amp;#8217;t!&lt;/p&gt;
&lt;p&gt;Inline CSS - most people hate it, but in this case, it can be useful.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;lt;style&amp;gt;&lt;/p&gt;
&lt;p&gt;#testdiv {&lt;/p&gt;
&lt;p&gt;height: 50px;&lt;/p&gt;
&lt;p&gt;background-color: red;&lt;/p&gt;
&lt;p&gt;&amp;lt;?php&lt;/p&gt;
&lt;p&gt;echo &amp;#8220;width: &amp;#8221; . 250 . &amp;#8220;px;&amp;#8221;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;lt;/style&amp;gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Stick that in your &amp;lt;head&amp;gt;&amp;lt;/head&amp;gt; tags, and PHP will write the width command for you! Now this is a very, very simple example, but use your imagination, and you&amp;#8217;d be &lt;a title="Progress..." href="http://www.finlaycraig.com/progress"&gt;surprised&lt;/a&gt; what you can do!&lt;/p&gt;</regular-body><tag>php</tag><tag>css</tag><tag>html</tag><tag>awesome</tag></post><post id="2794461597" url="http://finlay.tumblr.com/post/2794461597" url-with-slug="http://finlay.tumblr.com/post/2794461597/rankiac-review-keyword-tracking-link-statuses" type="regular" date-gmt="2011-01-17 13:45:02 GMT" date="Mon, 17 Jan 2011 08:45:02" unix-timestamp="1295271902" format="html" reblog-key="MYoMmClx" slug="rankiac-review-keyword-tracking-link-statuses"><regular-title>Rankiac Review | Keyword Tracking, Link Statuses, &amp; Backlink Monitoring</regular-title><regular-body>&lt;p&gt;If you wanted to find your website in Google, what would you search for? Possibly your sites name? Well that is one way of people finding you, but they are only going to find you that way, if they are actually looking for you. But if you want people to find you because of what you do, then you need to start thinking about your keywords.&lt;/p&gt;
&lt;p&gt;Your keywords, or keyword phrases, are the words and phrases that you would like to appear in Google for. For example, if you search &amp;#8216;Embed Tumblr Into Your Website&amp;#8217; this blog will come up in the top few results. That&amp;#8217;s because it is optimised for those keywords. So how do you track where you rank for those keywords?&lt;/p&gt;
&lt;p&gt;Well &lt;a href="http://rankiac.com/"&gt;Rankiac&lt;/a&gt; is the answer to your prayers!&lt;/p&gt;
&lt;p&gt;Rankiac is a tool which you can use to track all the keywords you could possibly need for your site, or even your competition. By using their comprehensive tools, you can receive daily updates on your sites performance, so you can optimise your site, in real time, for the phrases that you are interested in. &lt;/p&gt;
&lt;p&gt;Rankiac gives you the piece of mind that your site is in the place that you want it to be in Google, without you having to do the hardwork every single day.&lt;/p&gt;
&lt;p&gt;The system also provides the functionality to monitor links pointing at your site. These are called backlinks.&lt;/p&gt;
&lt;p&gt;Backlinks are one of the major factors in Googles rankings, and is used to determine how popular your website is around the internet. Rankiac allows you to monitor these links, so you can ensure that your site is still relevant, and ranking well.&lt;/p&gt;
&lt;p&gt;I&amp;#8217;ve found Rankiac to be an invaluable tool in keeping on top of my rankings. Rankiac gives me more time to work on creating great content on my site, without having to keep going back to check my results.&lt;/p&gt;
&lt;p&gt;I strongly recommend that you go and try it out, even if keywords are not something you think about much at the moment. Head over to &lt;a href="http://rankiac.com/"&gt;&lt;a href="http://rankiac.com/"&gt;http://rankiac.com/&lt;/a&gt;&lt;/a&gt; to start your &lt;strong&gt;free trial&lt;/strong&gt; now!&lt;/p&gt;</regular-body><tag>rankiac</tag><tag>seo</tag><tag>keywords</tag></post><post id="747395786" url="http://finlay.tumblr.com/post/747395786" url-with-slug="http://finlay.tumblr.com/post/747395786/embed-your-flickr-photos-on-your-site" type="regular" date-gmt="2010-06-28 23:50:00 GMT" date="Mon, 28 Jun 2010 19:50:00" unix-timestamp="1277769000" format="html" reblog-key="OoSjpMid" slug="embed-your-flickr-photos-on-your-site"><regular-title>Embed Your Flickr Photos On Your Site</regular-title><regular-body>&lt;p&gt;Here is any easy way to embed your photos from your flickr on your website in form which you can style. I&amp;#8217;ll even show you how to intergrate this into the famous &lt;a title="Lightbox Plugin" target="_blank" href="http://www.huddletogether.com/projects/lightbox2/"&gt;Lightbox&lt;/a&gt; plugin.&lt;/p&gt;
&lt;p&gt;We are going to use a little bit of PHP here, so you&amp;#8217;ll need end your files with .PHP instead of .HTML, .HTM, or .XHTML. Alternatively you can go behind the scenes a bit more at &lt;a title="Add .htaccess file to Server" target="_blank" href="http://finlay.tumblr.com/post/453497562/adding-a-htaccess-file-to-your-website"&gt;this post.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;1. &lt;strong&gt;Embed Latest Photo On Your Website&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Things you&amp;#8217;ll need to do - &lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a title="Get Flickr API Key" target="_blank" href="http://www.flickr.com/services/apps/create/apply"&gt;Get an API Key&lt;/a&gt; (Quick, easy &amp;amp; free!)&lt;/li&gt;
&lt;li&gt;&lt;a title="Get your Flickr ID" target="_blank" href="http://idgettr.com/"&gt;Get your Flickr ID&lt;/a&gt; (Not your username)&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;Here is the code that you will need to return your latest from your Flickr.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;lt;?php&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;$flickr_id =  &amp;#8217; &amp;#8216;;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;$api_key = &amp;#8217; &amp;#8216;;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;$size = &amp;#8216;s&amp;#8217;; //this can be &amp;#8216;s&amp;#8217; for small, &amp;#8216;t&amp;#8217; for thumbnail,&amp;#8217;m&amp;#8217; for medium, &amp;#8216;b&amp;#8217; for big, &amp;#8216;o&amp;#8217; for original, or empty for 500px wide.&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;// EDIT NOTHING UNDER HERE.&lt;span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;$xml = simplexml_load_file(&amp;#8216;http://api.flickr.com/services/rest/?method=flickr.people.getPublicPhotos&amp;amp;api_key=&amp;#8217;.$api_key.&amp;#8217;&amp;amp;extras=tags&amp;amp;user_id=&amp;#8217;.$flickr_id.&amp;#8217;&amp;amp;page=1&amp;amp;per_page=1&amp;#8217;);&lt;/p&gt;
&lt;p&gt;$photo = $xml-&amp;gt;photos-&amp;gt;photo;&lt;/p&gt;
&lt;p&gt;$farm = $photo-&amp;gt;attributes()-&amp;gt;farm;&lt;/p&gt;

&lt;p&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;$server = $photo-&amp;gt;attributes()-&amp;gt;server;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;$photoID = $photo-&amp;gt;attributes()-&amp;gt;id;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;$secretCode = $photo-&amp;gt;attributes()-&amp;gt;secret;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;$tags = $photo-&amp;gt;attributes()-&amp;gt;tags;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;$tags_array = explode(&amp;#8221; &amp;#8220;, $tags);&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;$title = $photo-&amp;gt;attributes()-&amp;gt;title;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;echo &amp;lt;img src=&amp;#8221;http://farm&amp;#8217;.$farm.&amp;#8217;.static.flickr.com/&amp;#8217;.$server.&amp;#8217;/&amp;#8217;.$photoID.&amp;#8217;_&amp;#8217;.$secretCode.&amp;#8217;_&amp;#8217;.$size.&amp;#8217;.jpg&amp;#8221;/&amp;gt;;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;?&amp;gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;So you need to fill in the gaps! First your Flickr ID, then your API Key, then the size that you would like your picture to be displayed at. That&amp;#8217;s it!&lt;/p&gt;
&lt;p&gt;2. &lt;strong&gt;Embed All Your Photos On Your Website&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;So we are taking what we learnt above, and adding a for loop, and a foreach loop. The for loop cycles through every page of photos you have uploaded. The foreach loop then goes through each page and returns each photo on that page. Simple!&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;lt;?php&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;$flickr_id =  &amp;#8217; &amp;#8216;;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;$api_key = &amp;#8217; &amp;#8216;;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;$size = &amp;#8216;s&amp;#8217;; //this can be &amp;#8216;s&amp;#8217; for small, &amp;#8216;t&amp;#8217; for thumbnail,&amp;#8217;m&amp;#8217; for medium, &amp;#8216;b&amp;#8217; for big, &amp;#8216;o&amp;#8217; for original, or empty for 500px wide.&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;// EDIT NOTHING UNDER HERE.&lt;span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;$xml = simplexml_load_file(&amp;#8216;http://api.flickr.com/services/rest/?method=flickr.people.getPublicPhotos&amp;amp;api_key=&amp;#8217;.$api_key.&amp;#8217;&amp;amp;extras=tags&amp;amp;user_id=&amp;#8217;.$flickr_id);&lt;span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;$pages = $xml-&amp;gt;photos-&amp;gt;attributes()-&amp;gt;pages;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;for($page=1; $page &amp;lt;=$pages; $page++) {&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;$xml = simplexml_load_file(&amp;#8216;http://api.flickr.com/services/rest/?method=flickr.people.getPublicPhotos&amp;amp;api_key=&amp;#8217;.$api_key.&amp;#8217;&amp;amp;extras=tags&amp;amp;user_id=&amp;#8217;.$flickr_id.&amp;#8217;&amp;amp;page=&amp;#8217;.$page);&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;foreach($xml-&amp;gt;photos-&amp;gt;photo as $photo) {&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;$farm = $photo-&amp;gt;attributes()-&amp;gt;farm;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;$server = $photo-&amp;gt;attributes()-&amp;gt;server;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;$photoID = $photo-&amp;gt;attributes()-&amp;gt;id;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;$secretCode = $photo-&amp;gt;attributes()-&amp;gt;secret;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;$tags = $photo-&amp;gt;attributes()-&amp;gt;tags;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;$tags_array = explode(&amp;#8221; &amp;#8220;, $tags);&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;$title = $photo-&amp;gt;attributes()-&amp;gt;title;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;echo &amp;#8216;&amp;lt;img src=&amp;#8221;http://farm&amp;#8217;.$farm.&amp;#8217;.static.flickr.com/&amp;#8217;.$server.&amp;#8217;/&amp;#8217;.$photoID.&amp;#8217;_&amp;#8217;.$secretCode.&amp;#8217;_&amp;#8217;.$size.&amp;#8217;.jpg&amp;#8221;/&amp;gt;&amp;#8217;;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;}&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;}&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;?&amp;gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;3. Adding a LightBox Effect&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;So you&amp;#8217;ve got all your photos onto your website, but now you want to display them in an attractive LightBox. Well first of all head over to &lt;a title="Lightbox Plugin" target="_blank" href="http://www.huddletogether.com/projects/lightbox2/"&gt;Lightbox&lt;/a&gt; and download the Scripts and CSS which you need to embed on your page. (Their instructions are great, so i&amp;#8217;m not going to take you through that bit!)&lt;/p&gt;
&lt;p&gt;For LightBox to reconise pictures you need to add an attribute to a &amp;lt;a href&amp;gt; tag. So we are going to have to generate another URL. You need to add &amp;#8216;rel=&amp;#8221;lightbox&amp;#8221;&amp;#8217; into your link.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Here is the code you need to swap -&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Swap this&lt;/em&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;echo &amp;#8216;&amp;lt;img src=&amp;#8221;http://farm&amp;#8217;.$farm.&amp;#8217;.static.flickr.com/&amp;#8217;.$server.&amp;#8217;/&amp;#8217;.$photoID.&amp;#8217;_&amp;#8217;.$secretCode.&amp;#8217;_&amp;#8217;.$size.&amp;#8217;.jpg&amp;#8221;/&amp;gt;&amp;#8217;;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;em&gt;For&lt;/em&gt;&lt;/p&gt;
&lt;blockquote&gt;echo &amp;#8216;&amp;lt;a href=&amp;#8221;http://farm&amp;#8217;.$farm.&amp;#8217;.static.flickr.com/&amp;#8217;.$server.&amp;#8217;/&amp;#8217;.$photoID.&amp;#8217;_&amp;#8217;.$secretCode.&amp;#8217;.jpg&amp;#8221; rel=&amp;#8221;lightbox&amp;#8221; title=&amp;#8221;&amp;#8217;.$title.&amp;#8217;&amp;#8221;&amp;gt;&amp;lt;img src=&amp;#8221;http://farm&amp;#8217;.$farm.&amp;#8217;.static.flickr.com/&amp;#8217;.$server.&amp;#8217;/&amp;#8217;.$photoID.&amp;#8217;_&amp;#8217;.$secretCode.&amp;#8217;_&amp;#8217;.$size.&amp;#8217;.jpg&amp;#8221;/&amp;gt;&amp;lt;/a&amp;gt;&amp;#8217;;&lt;br/&gt;&lt;/blockquote&gt;
&lt;p&gt;Hey presto! You have embedded Flickr on your website! Now I don&amp;#8217;t want to give too much away, but you this should be a pretty good place to start!&lt;/p&gt;
&lt;p&gt;Enjoy, Finlay.&lt;/p&gt;</regular-body></post><post id="746032499" url="http://finlay.tumblr.com/post/746032499" url-with-slug="http://finlay.tumblr.com/post/746032499/downloading-takes-forever" type="regular" date-gmt="2010-06-28 16:06:15 GMT" date="Mon, 28 Jun 2010 12:06:15" unix-timestamp="1277741175" format="markdown" reblog-key="ogde5vxv" slug="downloading-takes-forever"><regular-title>Downloading takes Forever! </regular-title><regular-body>&lt;p&gt;Today has been a great day. Managed to get dug into some PHP in WordPress. What has been really interesting though is that I&amp;#8217;m developing a WordPress site, but also using WordPress as my change log.&lt;/p&gt;

&lt;p&gt;So for it&amp;#8217;s worked really well as a change log. I can title posts, tag them, categorise them, embed code snippets and more. But what I an really looking forward to is being able to share everything I&amp;#8217;ve learnt you you, the Internets! If it&amp;#8217;s already on WordPress (in a private capacity) it shouldn&amp;#8217;t be that difficult to bring it across to a live blog with more generic examples, right?!&lt;/p&gt;

&lt;p&gt;Writing about what I&amp;#8217;ve already learnt this year (I&amp;#8217;ve only been coding HTML, CSS and PHP since January 2010) has already proven very useful. I can remind myself of how I did certain things, and share that with people with a simple link. Awesome!&lt;/p&gt;

&lt;p&gt;Anywho, back to the PHP!&lt;/p&gt;</regular-body></post><post id="716522034" url="http://finlay.tumblr.com/post/716522034" url-with-slug="http://finlay.tumblr.com/post/716522034/i-can-haz-ham" type="photo" date-gmt="2010-06-20 00:27:18 GMT" date="Sat, 19 Jun 2010 20:27:18" unix-timestamp="1276993638" format="markdown" reblog-key="G62gBlla" slug="i-can-haz-ham" width="600" height="800"><photo-caption>&lt;p&gt;I can haz ham?&lt;/p&gt;</photo-caption><photo-url max-width="1280">http://www.tumblr.com/photo/1280/finlay/716522034/1/tumblr_l4aemw6vh01qzjd2i</photo-url><photo-url max-width="500">http://25.media.tumblr.com/tumblr_l4aemw6vh01qzjd2io1_500.jpg</photo-url><photo-url max-width="400">http://25.media.tumblr.com/tumblr_l4aemw6vh01qzjd2io1_400.jpg</photo-url><photo-url max-width="250">http://24.media.tumblr.com/tumblr_l4aemw6vh01qzjd2io1_250.jpg</photo-url><photo-url max-width="100">http://25.media.tumblr.com/tumblr_l4aemw6vh01qzjd2io1_100.jpg</photo-url><photo-url max-width="75">http://25.media.tumblr.com/tumblr_l4aemw6vh01qzjd2io1_75sq.jpg</photo-url></post><post id="529010691" url="http://finlay.tumblr.com/post/529010691" url-with-slug="http://finlay.tumblr.com/post/529010691/embed-tumblr-into-your-website" type="regular" date-gmt="2010-04-17 21:33:00 GMT" date="Sat, 17 Apr 2010 17:33:00" unix-timestamp="1271539980" format="html" reblog-key="EZ7Qmzd7" slug="embed-tumblr-into-your-website"><regular-title>Embed Tumblr Into Your Website</regular-title><regular-body>&lt;p&gt;In my exploration to learn on how to Embed Tumblr into my website, I came across the Tumblr API (Application Programming Interface). As I am no expert in coding, and having very little experience with PHP, XML etc, I wanted to find out how I could Embed Tumblr with the Tumblr API on a basic, and easy to use level.&lt;/p&gt;
&lt;p&gt;If you&amp;#8217;ve read my previous post on how to Embed your latest Tweet into your website, then you may have heard me ranting and raving about SimpleXML. Essentially (from what i&amp;#8217;ve learnt so far&amp;#8230;), lets you extract specific &amp;#8216;bits&amp;#8217; of information from XML files, and do &amp;#8216;stuff&amp;#8217; with those &amp;#8216;bits&amp;#8217;. Very handy if you want to Embed Tumblr on your website!&lt;/p&gt;
&lt;p&gt;If you don&amp;#8217;t know what an XML File is then that&amp;#8217;s ok. An XML file is just a really organised way of structuring data. For the likes of the Tumblr API, XML files are used to store all the information in your latest blog posts, so that you can go in and take out only the essential information and do &amp;#8216;stuff&amp;#8217; with that.&lt;/p&gt;
&lt;p&gt;So let&amp;#8217;s begin!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1. Retrieving your latest post from Tumblr&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;To tell Tumblr you want to return your latest post you have to give Tumblr a few pieces of information. &lt;/p&gt;
&lt;ul&gt;&lt;li&gt;That the post is on your blog&lt;/li&gt;
&lt;li&gt;That you want the latest post&lt;/li&gt;
&lt;li&gt;The type of post (text, photo, quote&amp;#8230;)&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;Lets get our Tumblr XML Feed up then. We do that like this:&lt;/p&gt;
&lt;blockquote&gt;&lt;a href="http://finlay.tumblr.com/api/read"&gt;http://finlay.tumblr.com/api/read&lt;/a&gt;&lt;/blockquote&gt;
&lt;p&gt;If you stick that address into your browsers navigation bar, that will take you to the XML file where all my Tumblr posts are. Because we have not defined any parameters for what we would like Tumblr to return, it will just go ahead and send back everything I&amp;#8217;ve ever written. So we&amp;#8217;ve got to do something about that!&lt;/p&gt;
&lt;p&gt;To tell Tumblr what we want back, we had information onto the end of the URL above, and it will send back that information. We start this by adding a &amp;#8216;?&amp;#8217; to the end of the URL, and then list of the parameters one by one, separated by a &amp;#8216;&amp;amp;&amp;#8217;. &lt;/p&gt;
&lt;p&gt;To tell Tumblr you want to bring back the latest post you have to tell it which post you would like to start at, and and how many posts to return. So as with all things computing, we start at 0, and tell Tumblr to return 1 entry. This is done like this:&lt;/p&gt;
&lt;blockquote&gt;&lt;a href="http://finlay.tumblr.com/api/read?start=0&amp;amp;num=1"&gt;http://finlay.tumblr.com/api/read?start=0&amp;amp;num=1&lt;/a&gt;&lt;/blockquote&gt;
&lt;p&gt;So we&amp;#8217;ve told Tumblr that we want to read from my blog (through the API), from the first post (denoted by &amp;#8216;start=0&amp;#8217;) and that we want to return 1 post (denoted by &amp;#8216;num=1&amp;#8217;).  Easy! We&amp;#8217;re one step closer to Embedding Tumblr on your site!&lt;/p&gt;
&lt;p&gt;Now we tell Tumblr what kind of post we would like to return. For the purpose of this demonstration we will return a text post. This is done like so:&lt;/p&gt;
&lt;blockquote&gt;&lt;a href="http://finlay.tumblr.com/api/read?start=0&amp;amp;num=1&amp;amp;type=text"&gt;http://finlay.tumblr.com/api/read?start=0&amp;amp;num=1&amp;amp;type=text&lt;/a&gt;&lt;/blockquote&gt;
&lt;p&gt;So stick that into your browser and that will return my latest text post.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2. Finding what we want to Embed and Spitting it Out!&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Now that we&amp;#8217;ve got the right information back, we now need to know how to get into that, and bring back only the bits we want. To do so, you need to be able to read the XML file in it&amp;#8217;s pretty, organised way. Now if you go to that URL we made earlier for returning my latest text post, it won&amp;#8217;t look that neat. But if you right-click on that page and select &amp;#8216;View Source&amp;#8217;, your browser will show you the raw XML File. We can then look through this and take out what we want!&lt;/p&gt;
&lt;p&gt;So let&amp;#8217;s assume we want to first return the Title of the Post (but this will work for anything in the XML File). So after a quick inspection we can see that the Title of my latest post is stored in the tag:&lt;/p&gt;
&lt;blockquote&gt;&amp;lt;regular-title&amp;gt;&amp;lt;/regular-title&amp;gt;&lt;/blockquote&gt;
&lt;p&gt;So, using SimpleXML in PHP, we can tell our PHP look through for that tag, and then return it&amp;#8217;s entire contents. (Because that partiucular tag has a hyphen in it, we have to put {&amp;#8217; on either side of the tag so that SimpleXML can read it) We do that like so:&lt;/p&gt;
&lt;blockquote&gt;$title = $xml-&amp;gt;posts-&amp;gt;post-&amp;gt;{&amp;#8216;regular-title&amp;#8217;};&lt;/blockquote&gt;
&lt;p&gt;In this example i&amp;#8217;ve created a variable called &amp;#8216;title&amp;#8217; to give me somewhere to store the title.&lt;/p&gt;
&lt;p&gt;We then use the echo command to print that out on my webpage. On my site I wanted to have the title of my latest blog post be a &amp;#8216;&amp;lt;h1&amp;gt;&amp;#8217; so I concatenated (stuck together) my &amp;#8216;&amp;lt;h1&amp;gt;&amp;#8217; tags with the title of the blog post in my echo of the title. Like this:&lt;/p&gt;
&lt;blockquote&gt;echo &amp;#8216;&amp;lt;h1&amp;gt;&amp;#8217;.$title.&amp;#8217;&amp;lt;/h1&amp;gt;&amp;#8217;;&lt;/blockquote&gt;
&lt;p&gt;So now you can do that with the title, just do the same thing with the &amp;#8216;&amp;lt;regular-body&amp;gt;&amp;#8217; tag to bring back the body of your post. That is, almost, all you need to Embed Tumblr on your website.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;But what if you want to only bring back a taster of your latest blog post?&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Good question! If you want to Embed Tumblr into your site, it may be useful to give the user a snippet of the blog instead of the whole thing. Well what we can do is take the contents of the &amp;#8216;&amp;lt;regular-body&amp;gt;&amp;#8217;, and tell our PHP that we only want to use X number of characters from that in our webpage. Do that like this:&lt;/p&gt;
&lt;blockquote&gt;
&lt;blockquote&gt;$post = $xml-&amp;gt;posts-&amp;gt;post-&amp;gt;{&amp;#8216;regular-body&amp;#8217;};&lt;/blockquote&gt;
&lt;blockquote&gt;$small_post = substr($post,0,320);&lt;/blockquote&gt;
&lt;blockquote&gt;echo $small_post;&lt;br/&gt;&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;p&gt;So what we&amp;#8217;ve done there is we&amp;#8217;ve taken the contents of the tag &amp;#8216;&amp;lt;regular-body&amp;gt;&amp;#8217;, and we&amp;#8217;ve then used the substr() function in PHP to take only the first 320 characters from the post. Then we saved that into a variable called &amp;#8216;small_post&amp;#8217; and then we printed that. Easy!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;SO HERE IS ALL THE CODE YOU&amp;#8217;RE GONNA NEED TO EMBED TUMBLR WITH THE BLOG TITLE, REDUCED BLOG BODY, AND THE LINK TO THE ORIGINAL POST!&lt;/strong&gt;&lt;/p&gt;
&lt;blockquote&gt;&amp;lt;?php&lt;/blockquote&gt;
&lt;blockquote&gt;$request_url = &amp;#8220;http://finlay.tumblr.com/api/read?type=post&amp;amp;start=0&amp;amp;num=1&amp;#8221;;&lt;/blockquote&gt;
&lt;blockquote&gt;$xml = simplexml_load_file($request_url);&lt;/blockquote&gt;
&lt;blockquote&gt;$title = $xml-&amp;gt;posts-&amp;gt;post-&amp;gt;{&amp;#8216;regular-title&amp;#8217;};&lt;/blockquote&gt;
&lt;blockquote&gt;$post = $xml-&amp;gt;posts-&amp;gt;post-&amp;gt;{&amp;#8216;regular-body&amp;#8217;};&lt;/blockquote&gt;
&lt;blockquote&gt;$link = $xml-&amp;gt;posts-&amp;gt;post[&amp;#8216;url&amp;#8217;];&lt;/blockquote&gt;
&lt;blockquote&gt;$small_post = substr($post,0,320);&lt;/blockquote&gt;
&lt;blockquote&gt;echo &amp;#8216;&amp;lt;h1&amp;gt;&amp;#8217;.$title.&amp;#8217;&amp;lt;/h1&amp;gt;&amp;#8217;;&lt;/blockquote&gt;
&lt;blockquote&gt;echo &amp;#8216;&amp;lt;p&amp;gt;&amp;#8217;.$small_post.&amp;#8217;&amp;lt;/p&amp;gt;&amp;#8217;;&lt;/blockquote&gt;
&lt;blockquote&gt;echo &amp;#8220;&amp;#8230;&amp;#8221;;&lt;/blockquote&gt;
&lt;blockquote&gt;echo &amp;#8220;&amp;lt;/br&amp;gt;&amp;lt;a target=frame2 href=&amp;#8217;&amp;#8221;.$link.&amp;#8221;&amp;#8217;&amp;gt;Read More&amp;lt;/a&amp;gt;&amp;#8221;; &lt;/blockquote&gt;
&lt;blockquote&gt;?&amp;gt;&lt;/blockquote&gt;

&lt;p&gt;So there you have it! Everything that you could need to get started if you want to Embed Tumblr into your website.&lt;/p&gt;
&lt;p&gt;If you have any questions please leave a comment below or email me directly - hello@finlaycraig.com&lt;/p&gt;
&lt;p&gt;Happy Blogging!&lt;/p&gt;
&lt;p&gt;&lt;span&gt;ps&amp;#8230; Have you used this to Embed Tumblr into your website? If so, let me know in the comments below!&lt;/span&gt;&lt;/p&gt;</regular-body></post><post id="453474552" url="http://finlay.tumblr.com/post/453474552" url-with-slug="http://finlay.tumblr.com/post/453474552/embed-twitter-in-your-website" type="regular" date-gmt="2010-03-17 00:00:00 GMT" date="Tue, 16 Mar 2010 20:00:00" unix-timestamp="1268784000" format="html" reblog-key="9D1BxZHB" slug="embed-twitter-in-your-website"><regular-title>Embed Twitter In Your Website</regular-title><regular-body>&lt;p&gt;Recently Twitter has become the main outlet for Social Media on the Web, so it&amp;#8217;s only logical that people want to embed twitter on their personal websites.&lt;/p&gt;
&lt;p&gt;But what if you are one of those people who doesn&amp;#8217;t want a nasty Widget on their site? Well here is the solution to embed twitter fast - 1 line of PHP:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;lt;?php             &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;echo simplexml_load_file(&amp;#8220;http://twitter.com/statuses/user_timeline/yourusername.xml?count=1&amp;#8221;)-&amp;gt;status-&amp;gt;text;                       &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;?&amp;gt; &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;It&amp;#8217;s really that easy! Simply substitute your username into the PHP to embed twitter into your website!&lt;/p&gt;
&lt;p&gt;There are three small points to make though.&lt;/p&gt;
&lt;ol&gt;&lt;li&gt;If you have your Twitter feed set to private, you won&amp;#8217;t be able to embed twitter.&lt;/li&gt;
&lt;li&gt;You will have to change your webpage to .php instead of .html. &amp;#8230; OR&lt;/li&gt;
&lt;li&gt;You need to have a &amp;#8216;.htaccess&amp;#8217; file in your root folder (where you store your website). Otherwise rename your file with .php at the end instead of .html.&lt;/li&gt;
&lt;/ol&gt;&lt;p&gt;Check out &lt;a title="Add '.htaccess' File." href="http://tumblr.com/xy17i00yi"&gt;this&lt;/a&gt; post on how to create a &amp;#8216;.htaccess&amp;#8217; file if you don&amp;#8217;t already know.&lt;/p&gt;
&lt;p&gt;Thanks to &lt;a title="Mike Vanis's Twitter" href="http://twitter.com/mikevanis"&gt;@mikevanis&lt;/a&gt; and &lt;a title="Pablo's Twitter" href="http://twitter.com/hellopablo"&gt;@hellopablo&lt;/a&gt; for help on how to embed twitter.&lt;/p&gt;
&lt;p&gt;And that is how you embed twitter on your website.&lt;/p&gt;
&lt;p&gt;Happy Tweeting!&lt;/p&gt;
&lt;p&gt;Finlay&lt;/p&gt;
&lt;p&gt;ps&amp;#8230;Use this on your site? Leave a comment below and tell me how you got on!&lt;/p&gt;</regular-body><tag>easy</tag><tag>embed</tag><tag>htaccess</tag><tag>one line of code</tag><tag>php</tag><tag>php noob</tag><tag>simplexml</tag><tag>tweet</tag><tag>twitter</tag><tag>embed twitter</tag></post><post id="453497562" url="http://finlay.tumblr.com/post/453497562" url-with-slug="http://finlay.tumblr.com/post/453497562/adding-a-htaccess-file-to-your-website" type="regular" date-gmt="2010-03-16 23:00:00 GMT" date="Tue, 16 Mar 2010 19:00:00" unix-timestamp="1268780400" format="html" reblog-key="HUOWnnYI" slug="adding-a-htaccess-file-to-your-website"><regular-title>Adding a '.htaccess' File To Your Website</regular-title><regular-body>&lt;p&gt;Now let me just start by saying I am no expert in Web Development, or programming for that matter. But I know a nice piece of code when I see it!&lt;/p&gt;
&lt;p&gt;It was when I was experimenting with PHP that I learnt about the power of SimpleXML, and immediately thought how useful that could be for Twitter. So I wrote one line of code that would &lt;a title="Embed Tweet with 1 Line of PHP" href="http://tumblr.com/xy17hzj7c"&gt;embed your latest Tweet&lt;/a&gt; in your website. &lt;/p&gt;
&lt;p&gt;To get that working you need a &amp;#8216;.htaccess&amp;#8217; file. Essentially this files let you run PHP script inside your HTML/XHTML Webpages.&lt;/p&gt;
&lt;ol&gt;&lt;li&gt;Create a new file names &amp;#8216;.htaccess&amp;#8217; (without the inverted commas) in your favorite text editor.&lt;/li&gt;
&lt;li&gt;Put this line of code in that file, save, and close the file &amp;#8216;&lt;span&gt;AddType application/x-httpd-php .html .htm .xhtml&amp;#8217;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Upload this to your Web Host, into your root folder (the folder where your website lives)&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;p&gt;Hurray! Your &amp;#8216;.htaccess&amp;#8217; file should now be up and running! If in doubt, contact your webhost.&lt;/p&gt;
&lt;p&gt;I take no responsibility if this does anything nasty to your website, so on your head be it! (But it really shouldn&amp;#8217;t!)&lt;/p&gt;
&lt;p&gt;Enjoy!&lt;/p&gt;
&lt;p&gt;Finlay&lt;/p&gt;</regular-body><tag>.htaccess</tag><tag>set up</tag><tag>add</tag><tag>php</tag><tag>twitter</tag><tag>tweet</tag></post><post id="373192265" url="http://finlay.tumblr.com/post/373192265" url-with-slug="http://finlay.tumblr.com/post/373192265/the-really-really-easy-way-to-host-your-first-site" type="regular" date-gmt="2010-02-06 01:19:00 GMT" date="Fri, 05 Feb 2010 20:19:00" unix-timestamp="1265419140" format="html" reblog-key="SUzlVbHN" slug="the-really-really-easy-way-to-host-your-first-site"><regular-title>The Really Really Easy Way to Host Your First Site</regular-title><regular-body>&lt;p&gt;Are you trying to make your first Website, but you can barely even code, let alone host your website on a web server?&lt;/p&gt;
&lt;p&gt;Well if that&amp;#8217;s you then i&amp;#8217;ve found the perfect, FREE, solution for you!&lt;/p&gt;
&lt;ol&gt;&lt;li&gt;Head over to &lt;a title="Dropbox" target="_blank" href="http://www.dropbox.com"&gt;&lt;a href="http://www.dropbox.com"&gt;www.dropbox.com&lt;/a&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Download and Install the free software. (This should place a folder called &amp;#8216;Dropbox&amp;#8217; in your user folder. Usually can be found at eg /Finlay/Dropbox/)&lt;/li&gt;
&lt;li&gt;Copy your website into the &amp;#8216;Public&amp;#8217; folder located in your &amp;#8216;Dropbox&amp;#8217; folder &lt;/li&gt;
&lt;li&gt;Right-click on the HTML file that is your website, go the option &amp;#8216;Dropbox&amp;#8217;, and choose &amp;#8216;Copy Public Link&amp;#8217;.&lt;/li&gt;
&lt;li&gt;Now you have copied the web address where you can find your website to your clipboard.&lt;/li&gt;
&lt;li&gt;Head over to your web browser, paste the address in, and Hey Presto, that&amp;#8217;s your site!&lt;/li&gt;
&lt;/ol&gt;&lt;p&gt;The best thing about using Dropbox to host your website is that every time you update your files, your website gets updated instantly!&lt;/p&gt;
&lt;p&gt;How easy can it get!&lt;/p&gt;
&lt;p&gt;If you have any more questions please leave a comment below and I will be more than happy to help you if I can!&lt;/p&gt;
&lt;p&gt;Finlay&lt;/p&gt;</regular-body><tag>free web hosting</tag><tag>host website on dropbox</tag><tag>dropbox.com</tag><tag>getdropbox</tag><tag>host first website for free</tag><tag>first web site</tag><tag>free hosting</tag><tag>free web hosting</tag><tag>simple hosting</tag><tag>other uses for dropbox</tag></post><post id="359580727" url="http://finlay.tumblr.com/post/359580727" url-with-slug="http://finlay.tumblr.com/post/359580727/wow-so-simple-yet-so-mesmerising-hope-you" type="video" date-gmt="2010-01-29 12:55:07 GMT" date="Fri, 29 Jan 2010 07:55:07" unix-timestamp="1264769707" format="html" reblog-key="WMB5BVHe" slug="wow-so-simple-yet-so-mesmerising-hope-you"><video-source>http://vimeo.com/8851579</video-source><video-caption>&lt;p&gt;Wow. So simple, yet so mesmerising.&lt;/p&gt;
&lt;p&gt;Hope you enjoyed this as much as I did.&lt;/p&gt;
&lt;p&gt;F&lt;/p&gt;</video-caption><video-player>&lt;iframe src="http://player.vimeo.com/video/8851579" width="400" height="300" frameborder="0"&gt;&lt;/iframe&gt;</video-player><video-player max-width="500">&lt;iframe src="http://player.vimeo.com/video/8851579" width="500" height="375" frameborder="0"&gt;&lt;/iframe&gt;</video-player><video-player max-width="250">&lt;iframe src="http://player.vimeo.com/video/8851579" width="250" height="187" frameborder="0"&gt;&lt;/iframe&gt;</video-player></post><post id="343036854" url="http://finlay.tumblr.com/post/343036854" url-with-slug="http://finlay.tumblr.com/post/343036854/i-am-a-firm-believer-that-anyone-can-do-anything" type="quote" date-gmt="2010-01-19 19:43:00 GMT" date="Tue, 19 Jan 2010 14:43:00" unix-timestamp="1263930180" format="html" reblog-key="awnpeXV2" slug="i-am-a-firm-believer-that-anyone-can-do-anything"><quote-text>I am a firm believer that anyone can do anything, you just have to work hard enough at it.</quote-text><quote-source>&lt;p&gt;As part of my Design Studies in the first semester of my 2009 studying at the University of Dundee, I was given the assignment to write my own G2 (Guardian Newspaper supplement) article.&lt;/p&gt;
&lt;p&gt;I wrote about my experiences since leaving school.&lt;/p&gt;
&lt;p&gt;I thought i&amp;#8217;d share this with the world. So if you would like to read, feel free to download the PDF from &lt;a title="Finlay Craig G2 Article" href="http://dl.dropbox.com/u/826240/Finlay.pdf"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;F&lt;/p&gt;
&lt;p&gt;p.s - Please take this article with a handful of salt, and enjoy.&lt;/p&gt;</quote-source></post><post id="342386271" url="http://finlay.tumblr.com/post/342386271" url-with-slug="http://finlay.tumblr.com/post/342386271/upcycling" type="regular" date-gmt="2010-01-19 08:30:00 GMT" date="Tue, 19 Jan 2010 03:30:00" unix-timestamp="1263889800" format="html" reblog-key="MG2ZNvVM" slug="upcycling"><regular-title>Upcycling</regular-title><regular-body>&lt;p&gt;&lt;b&gt;Today in Design Studies we were given our latest brief - UPCYCLED STORIES&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;The aims of this project are:&lt;/p&gt;
&lt;p&gt;•	To deepen the understanding of the design process&lt;/p&gt;
&lt;p&gt;•	To develop the drawing ability of students to allow them to express their ideas more effectively&lt;/p&gt;
&lt;p&gt;•	To explore the roles of typography and storyboarding in design&lt;/p&gt;
&lt;p&gt;•	To develop the ability to create artefacts that communicate predefined aesthetic values&lt;/p&gt;
&lt;p&gt;•	To develop an understanding of the importance of drawing as a medium for the expression of ideas&lt;/p&gt;
&lt;p&gt;•	To develop an understanding of sustainability in relation to design&lt;/p&gt;
&lt;p&gt;The idea is to take old or broken house hold objects and to create four creatures from them.&lt;/p&gt;
&lt;p&gt;After returning from the Dundee Recycling Centre we realised that we had, subconsciously, returned with lots of objects that were round. So we&amp;#8217;ve decieded to take follow the theme of of &amp;#8216;Nocturnal Creatures of Dundee&amp;#8217;.&lt;/p&gt;
&lt;p&gt;Check of these pictures below. We were going for the wide eyed look. I think we pulled it off quite nicely!&lt;/p&gt;
&lt;p&gt;F&lt;/p&gt;
&lt;p&gt;&lt;img src="http://media.tumblr.com/tumblr_kwhjmwZ1g81qzgaaz.jpg"/&gt;&lt;img src="http://media.tumblr.com/tumblr_kwhjnarxTB1qzgaaz.jpg"/&gt;&lt;/p&gt;</regular-body><tag>design studies</tag><tag>visual expression</tag><tag>dundee</tag><tag>dundee university</tag><tag>university of dundee</tag><tag>university of fundee blog</tag><tag>IMD</tag><tag>Interactive Media Design</tag><tag>Innovative Product Design</tag><tag>recyle</tag><tag>upcycle</tag></post><post id="339577646" url="http://finlay.tumblr.com/post/339577646" url-with-slug="http://finlay.tumblr.com/post/339577646/how-to-effectivly-run-a-group-project-online" type="regular" date-gmt="2010-01-17 20:14:26 GMT" date="Sun, 17 Jan 2010 15:14:26" unix-timestamp="1263759266" format="html" reblog-key="2I00lFJA" slug="how-to-effectivly-run-a-group-project-online"><regular-title>How to Effectivly Run a Group Project Online</regular-title><regular-body>&lt;p&gt;Since starting my Interactive Media Design Degree in September of 2009, I have learned the importance of running group projects well. So today I thought I&amp;#8217;d share with you the way I like to keep a project on track using two online tools.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;1. GoogleWave &lt;/b&gt;&lt;/p&gt;
&lt;p&gt;Imagine Email and Instant Messaging combined into one super communicator. That&amp;#8217;s GoogleWave. It takes the best strengths from Email, and those from Instant Messaging and gives you an environment where you can work collaboratively with other people, in real time.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Instead of sending around lots of messages, reply&amp;#8217;s and forwards your conversation is held in one central place.&lt;/b&gt; This is the fundamental idea behind GoogleWave, you start and reply to &amp;#8216;Waves&amp;#8217;. You don&amp;#8217;t have to make sure you have included all the correct people in an email conversation. Everyone who is part of the Wave will see all the updates as soon as they happen.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;What you type is sent out in real-time.&lt;/b&gt; So if you are reply to someones comment from earlier, other people in the Wave could be watching at the same time. What this means is you don&amp;#8217;t have to wait around to think about what your reply will be. In a conventional Instant Messaging Conversation you have to wait to read what the other person is saying. With GoogleWave you can see what they are trying to say, as soon as they start typing. Think how much time you waste waiting to receive an IM. GoogleWave gets rid of that.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;So why does this help your project organisation?&lt;/b&gt; Because each person involved in the project can keep everyone informed in what is going. If you begin using GoogleWave like an Instant Messaging Client, then the other users in your project can see what was said, and understand how the conversation went, thus keeping everyone in the loop.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;2. Dropbox&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;Imagine having a folder on your Desktop, that whenever you changed its contents, those changes were uploaded to the Internet. Ok, sounds like an easy way to back up some files. &lt;b&gt;Dropbox is unique because you can share the contents of any folder in your Dropbox so others can view or edit its contents, as well as receive any updates you make.&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;A very simple idea, implemented perfectly. For example, say your working on a website with a friend, but you would like them to be able to see all the changes you make the code and design. With Dropbox, you would simply share the folder where the website was contained. The other person would then download its contents, and their computer would be updated everytime you made any changes to your files.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;So why does this help your project organisation? &lt;/b&gt;Put simply, it means everyone has the same files, and every knows where the project is at. Whenever one person changes or adds a file, every other computer sharing that folder gets those updates.&lt;/p&gt;
&lt;p&gt;So with both of these tools, you can keep in contact, and up to date with any number of projects over the Internet, in real-time. That&amp;#8217;s the important bit - real-time. No waiting around and everyone is kept in the loop so the project can move forward without having to worry about everyone having the most recent files.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Oh yeah, and they are FREE!&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://wave.google.com"&gt;http://wave.google.com&lt;/a&gt; is currently in Private Preview state, but if you want an invitation drop me an email to hello@finlaycraig.com and i&amp;#8217;ll send one your way.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.dropbox.com"&gt;http://www.dropbox.com&lt;/a&gt; is free up to 3GB, or you can upgrade if you really want.&lt;/p&gt;
&lt;p&gt;I hope this come in handy, and helps you keep on top of those projects!&lt;/p&gt;
&lt;p&gt;&lt;b&gt;What are your tips for keeping on top of big projects?&lt;/b&gt;&lt;/p&gt;</regular-body><tag>google wave</tag><tag>googlewave</tag><tag>dropbox</tag><tag>collaberative</tag><tag>collab</tag><tag>working in groups</tag><tag>working with other people</tag><tag>working online</tag><tag>up to date</tag><tag>in the loop</tag><tag>file backup</tag><tag>email alternative</tag><tag>instant messaging alternative</tag></post><post id="324242121" url="http://finlay.tumblr.com/post/324242121" url-with-slug="http://finlay.tumblr.com/post/324242121/it-was-worth-the-work-the-summer-of-2009-was" type="photo" date-gmt="2010-01-09 02:02:00 GMT" date="Fri, 08 Jan 2010 21:02:00" unix-timestamp="1263002520" format="html" reblog-key="qiq7KSWF" slug="it-was-worth-the-work-the-summer-of-2009-was" width="800" height="600"><photo-caption>&lt;p&gt;&lt;b&gt;It was worth the work.&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;The summer of 2009 was definitely my toughest summer yet. Everyday was mad, but I enjoyed it. But I&amp;#8217;m already planning my Summer 2010.&lt;/p&gt;
&lt;p&gt;At times working was tough and lonely, but boy was it worth it!&lt;/p&gt;
&lt;p&gt;In the end I made it to Dundee, and I would never have achieved as much as I have if it wasn&amp;#8217;t for my trusty MacBook Pro. It was what I was working towards, and it is better than I could ever have expected.&lt;/p&gt;
&lt;p&gt;&amp;#8216;Live by the  - Die by the &amp;#8217;&lt;/p&gt;
&lt;p&gt;F&lt;/p&gt;</photo-caption><photo-url max-width="1280">http://www.tumblr.com/photo/1280/finlay/324242121/1/tumblr_kvyiznUQbp1qzjd2i</photo-url><photo-url max-width="500">http://25.media.tumblr.com/tumblr_kvyiznUQbp1qzjd2io1_500.jpg</photo-url><photo-url max-width="400">http://24.media.tumblr.com/tumblr_kvyiznUQbp1qzjd2io1_400.jpg</photo-url><photo-url max-width="250">http://25.media.tumblr.com/tumblr_kvyiznUQbp1qzjd2io1_250.jpg</photo-url><photo-url max-width="100">http://25.media.tumblr.com/tumblr_kvyiznUQbp1qzjd2io1_100.jpg</photo-url><photo-url max-width="75">http://24.media.tumblr.com/tumblr_kvyiznUQbp1qzjd2io1_75sq.jpg</photo-url></post></posts></tumblr>

