<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>MikeCann.co.uk &#187; HTML - MikeCann.co.uk - mikey see, mikey do!</title>
	<atom:link href="http://mikecann.co.uk/tag/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://mikecann.co.uk</link>
	<description>mikey see, mikey do!</description>
	<lastBuildDate>Sat, 28 Jan 2012 13:10:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Post To Tumblr &#8211; v0.2</title>
		<link>http://mikecann.co.uk/personal-project/post-to-tumblr-v0-2/</link>
		<comments>http://mikecann.co.uk/personal-project/post-to-tumblr-v0-2/#comments</comments>
		<pubDate>Sun, 17 Oct 2010 16:28:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Personal Projects]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[right-click]]></category>
		<category><![CDATA[tumblr]]></category>
		<category><![CDATA[Update]]></category>

		<guid isPermaLink="false">http://mikecann.co.uk/?p=1398</guid>
		<description><![CDATA[Just a quick update to my first chrome extension. Following a request someone left in the comments I have now added an option to set how the post should be published. So now you can choose whether you want your cat with a lime on its head to be posted to your drafts or your [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://mikecann.co.uk/wp-content/uploads/2010/10/Shot_0011.png"><img class="size-full wp-image-1400 alignnone" title="Shot_001" src="http://mikecann.co.uk/wp-content/uploads/2010/10/Shot_0011.png" alt="" width="310" height="307" /></a></p>
<p>Just a quick update to <a href="http://mikecann.co.uk/personal-project/my-first-chrome-extension-post-to-tumblr/">my first chrome extension</a>.</p>
<p>Following a request someone left in the comments I have now added an option to set how the post should be published. So now you can choose whether you want your cat with a lime on its head to be posted to your drafts or your queue or simply to your default wall.</p>
<p>You can grab the new version in the usual place on the Chrome Extensions Gallery -&gt;<a href="https://chrome.google.com/extensions/detail/dbpicbbcpanckagpdjflgojlknomoiah?hl=en"> https://chrome.google.com/extensions/detail/dbpicbbcpanckagpdjflgojlknomoiah?hl=en</a></p>
<p>I think it updates by its itself, but I cant be sure!</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://mikecann.co.uk/personal-project/post-to-tumblr-v0-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My First Chrome Extension &#8211; &#8220;Post To Tumblr&#8221;</title>
		<link>http://mikecann.co.uk/personal-project/my-first-chrome-extension-post-to-tumblr/</link>
		<comments>http://mikecann.co.uk/personal-project/my-first-chrome-extension-post-to-tumblr/#comments</comments>
		<pubDate>Thu, 14 Oct 2010 20:02:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Personal Projects]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Project]]></category>
		<category><![CDATA[tumblr]]></category>

		<guid isPermaLink="false">http://mikecann.co.uk/?p=1392</guid>
		<description><![CDATA[Mummy wow! Im a big boy now! I have just published my first Chrome extension. It was really annoying me that when I found a funny cat or some other silly image I would have to go through a whole ball-ache process to get that image on my Tumblr account. What I really wanted was [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://mikecann.co.uk/wp-content/uploads/2010/10/Shot_002.png"><img class="size-full wp-image-1393 alignnone" title="Shot_002" src="http://mikecann.co.uk/wp-content/uploads/2010/10/Shot_002.png" alt="" width="228" height="218" /></a></p>
<p>Mummy wow! Im a big boy now! I have just published my first Chrome extension.</p>
<p>It was really annoying me that when I found a funny cat or some other silly image I would have to go through a whole ball-ache process to get that image on <a href="http://mikeysee.tumblr.com">my Tumblr account</a>.</p>
<p>What I really wanted was some right-click-post action going on and wondered why no one had one it yet. So with an hour or so to spare I whipped this extension up really quick.</p>
<p>It uses the Chrome 6 Context Menu API so you obviously need to have Chrome 6 to be able to use it.</p>
<p>Currently it only posts images as that&#8217;s all I needed for now but if enough people want more then ill whip out the other data types.</p>
<p>The source couldn&#8217;t be any simpler really, infact this is it here:</p>
<div id="wpshdo_1" class="wp-synhighlighter-outer"><div id="wpshdt_1" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_1"></a><a id="wpshat_1" class="wp-synhighlighter-title" href="#codesyntax_1"  onClick="javascript:wpsh_toggleBlock(1)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_1" onClick="javascript:wpsh_code(1)" title="Show code only"><img border="0" style="border: 0 none" src="http://mikecann.co.uk/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_1" onClick="javascript:wpsh_print(1)" title="Print code"><img border="0" style="border: 0 none" src="http://mikecann.co.uk/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://mikecann.co.uk/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://mikecann.co.uk/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_1" class="wp-synhighlighter-inner" style="display: block;"><pre class="javascript" style="font-family:monospace;"><ol><li class="li1"><div class="de1">chrome.<span class="me1">contextMenus</span>.<span class="me1">create</span><span class="br0">&#40;</span><span class="br0">&#123;</span><span class="st0">&quot;title&quot;</span><span class="sy0">:</span> <span class="st0">&quot;Post Image To Tumblr&quot;</span><span class="sy0">,</span> <span class="st0">&quot;contexts&quot;</span><span class="sy0">:</span><span class="br0">&#91;</span><span class="st0">&quot;image&quot;</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="st0">&quot;onclick&quot;</span><span class="sy0">:</span> postImage<span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1"><span class="kw2">function</span> postImage<span class="br0">&#40;</span>info<span class="sy0">,</span> tab<span class="br0">&#41;</span></div></li><li class="li1"><div class="de1"><span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">	<span class="kw2">var</span> email <span class="sy0">=</span> localStorage<span class="br0">&#91;</span><span class="st0">&quot;tumblr_email&quot;</span><span class="br0">&#93;</span><span class="sy0">;</span></div></li><li class="li1"><div class="de1">	<span class="kw2">var</span> password <span class="sy0">=</span> localStorage<span class="br0">&#91;</span><span class="st0">&quot;tumblr_pass&quot;</span><span class="br0">&#93;</span><span class="sy0">;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">	<span class="kw1">if</span><span class="br0">&#40;</span><span class="sy0">!</span>email <span class="sy0">||</span> email<span class="sy0">==</span><span class="st0">&quot;&quot;</span> <span class="sy0">||</span> <span class="sy0">!</span>password <span class="sy0">||</span> password<span class="sy0">==</span><span class="st0">&quot;&quot;</span><span class="br0">&#41;</span></div></li><li class="li1"><div class="de1">	<span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">		<span class="kw3">alert</span><span class="br0">&#40;</span><span class="st0">&quot;Need to set your Tumblr username and password in the options before posting!&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span></div></li><li class="li1"><div class="de1">	<span class="br0">&#125;</span></div></li><li class="li1"><div class="de1">	<span class="kw1">else</span></div></li><li class="li1"><div class="de1">	<span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">		<span class="kw2">var</span> o <span class="sy0">=</span></div></li><li class="li1"><div class="de1">		<span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">			<span class="st0">&quot;email&quot;</span><span class="sy0">:</span>email<span class="sy0">,</span></div></li><li class="li1"><div class="de1">			<span class="st0">&quot;password&quot;</span><span class="sy0">:</span>password<span class="sy0">,</span></div></li><li class="li1"><div class="de1">			<span class="st0">&quot;type&quot;</span><span class="sy0">:</span><span class="st0">&quot;photo&quot;</span><span class="sy0">,</span></div></li><li class="li1"><div class="de1">			<span class="st0">&quot;source&quot;</span><span class="sy0">:</span>info.<span class="me1">srcUrl</span></div></li><li class="li1"><div class="de1">		<span class="br0">&#125;</span><span class="sy0">;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">		<span class="kw2">var</span> success <span class="sy0">=</span> <span class="kw2">function</span><span class="br0">&#40;</span>data<span class="sy0">,</span>textStatus<span class="sy0">,</span>request<span class="br0">&#41;</span></div></li><li class="li1"><div class="de1">		<span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">			<span class="kw1">if</span><span class="br0">&#40;</span>textStatus<span class="sy0">==</span><span class="st0">&quot;success&quot;</span><span class="br0">&#41;</span><span class="br0">&#123;</span> <span class="kw3">alert</span><span class="br0">&#40;</span><span class="st0">&quot;Image posted to Tumblr. Image -&gt; &quot;</span><span class="sy0">+</span>info.<span class="me1">srcUrl</span><span class="br0">&#41;</span><span class="sy0">;</span> <span class="br0">&#125;</span></div></li><li class="li1"><div class="de1">			<span class="kw1">else</span> <span class="br0">&#123;</span> <span class="kw3">alert</span><span class="br0">&#40;</span><span class="st0">&quot;Bad email or password&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span> <span class="br0">&#125;</span></div></li><li class="li1"><div class="de1">		<span class="br0">&#125;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">		$.<span class="me1">post</span><span class="br0">&#40;</span><span class="st0">&quot;http://www.tumblr.com/api/write&quot;</span><span class="sy0">,</span>o<span class="sy0">,</span> success<span class="br0">&#41;</span><span class="sy0">;</span></div></li><li class="li1"><div class="de1">	<span class="br0">&#125;</span></div></li><li class="li1"><div class="de1"><span class="br0">&#125;</span></div></li></ol></pre></div></div>
<p>Simples!</p>
<p>Theres even an option page where you put in your Tumblr details:</p>
<p><a href="http://mikecann.co.uk/wp-content/uploads/2010/10/Shot_003.png"><img class="size-full wp-image-1394 alignnone" title="Shot_003" src="http://mikecann.co.uk/wp-content/uploads/2010/10/Shot_003.png" alt="" width="239" height="241" /></a></p>
<p>Oh, there is one issue.</p>
<p>No matter what I tried I couldn&#8217;t manage to get the Tumblr API to return an error. So if you enter your username or password incorrectly it still reports success, not entirely sure why, if someone knows I would love to hear why!</p>
<p>Interested? You can go grab it over on the chrome extensions gallery page -&gt; <a href="https://chrome.google.com/extensions/detail/dbpicbbcpanckagpdjflgojlknomoiah?hl=en">HERE</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mikecann.co.uk/personal-project/my-first-chrome-extension-post-to-tumblr/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>The Case of The Transitional Doctype</title>
		<link>http://mikecann.co.uk/websites/the-case-of-the-transitional-doctype/</link>
		<comments>http://mikecann.co.uk/websites/the-case-of-the-transitional-doctype/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 19:44:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[WBFG]]></category>

		<guid isPermaLink="false">http://www.mikecann.co.uk/?p=785</guid>
		<description><![CDATA[I took a little break from my &#8216;top secret&#8217; project (more on this coming soon) this evening to do some much needed repair work on one of my flash games portals www.worldsbestflashgames.com. Top of my list was the fact that the index page doesn&#8217;t render correctly in IE7. What makes it odd is the fact [...]]]></description>
			<content:encoded><![CDATA[<p>I took a little break from my &#8216;top secret&#8217; project (more on this coming soon) this evening to do some much needed repair work on one of my flash games portals <a href="www.worldsbestflashgames.com">www.worldsbestflashgames.com</a>.</p>
<p>Top of my list was the fact that the index page doesn&#8217;t render correctly in IE7. What makes it odd is the fact that the category pages which are essentially identical to the index page rendered fine.This is what it looked like:</p>
<p><a href="http://mikecann.co.uk/wp-content/uploads/2009/12/ScreenHunter_01-Dec.-10-19.28.jpg"><img class="alignnone size-full wp-image-786" title="ScreenHunter_01 Dec. 10 19.28" src="http://mikecann.co.uk/wp-content/uploads/2009/12/ScreenHunter_01-Dec.-10-19.28.jpg" alt="ScreenHunter_01 Dec. 10 19.28" width="423" height="400" /></a></p>
<p>Normally when you hear that there is an issue with a site on IE and not on FF or other browsers you automatically assume its CSS, and so did I. After stripping the site down to its bear bones however, comparing the index page against the category page I will still getting this oddness.</p>
<p>To cut a long story short I worked my way up from the bottom of the page to the top until I reaced the very top line:</p>
<pre>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&gt;</pre>
<p>This line was the only line that differed in the index to the category page, which read:</p>
<pre>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"&gt;</pre>
<p>So I took out the &#8220;Transitional&#8221; and low and behold it worked!</p>
<p><a href="http://mikecann.co.uk/wp-content/uploads/2009/12/ScreenHunter_02-Dec.-10-19.41.jpg"><img class="alignnone size-large wp-image-787" title="ScreenHunter_02 Dec. 10 19.41" src="http://www.mikecann.co.uk/wp-content/uploads/2009/12/ScreenHunter_02-Dec.-10-19.41-1024x484.jpg" alt="ScreenHunter_02 Dec. 10 19.41" width="718" height="339" /></a></p>
<p>No idea what Transitional does, but I hope this helps someone else out in the future!</p>
]]></content:encoded>
			<wfw:commentRss>http://mikecann.co.uk/websites/the-case-of-the-transitional-doctype/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

