<?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>The Swan Song</title>
	<atom:link href="http://www.justinswan.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.justinswan.com</link>
	<description>Not always graceful...</description>
	<lastBuildDate>Fri, 19 Aug 2011 00:42:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
		<item>
		<title>YouTube iframe video stays above overlays</title>
		<link>http://www.justinswan.com/youtube-iframe-overlays.html</link>
		<comments>http://www.justinswan.com/youtube-iframe-overlays.html#comments</comments>
		<pubDate>Fri, 19 Aug 2011 00:33:39 +0000</pubDate>
		<dc:creator>Justin</dc:creator>
				<category><![CDATA[Website Development]]></category>
		<category><![CDATA[embed]]></category>
		<category><![CDATA[iframe]]></category>
		<category><![CDATA[preg_replace]]></category>
		<category><![CDATA[wmode]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://www.justinswan.com/?p=178</guid>
		<description><![CDATA[I had a YouTube video staying on top of a jQuery lightbox overlay and knew from past experience that it requires setting the wmode = opaque. You can use transparent but opaque is apparently faster (see http://stackoverflow.com/questions/886864/differences-between-using-wmode-transparent-opaque-or-window-for-an-embed). The problem was, &#8230; <a href="http://www.justinswan.com/youtube-iframe-overlays.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I had a YouTube video staying on top of a jQuery lightbox overlay and knew from past experience that it requires setting the wmode = opaque. You can use transparent but opaque is apparently faster (see <a href="http://stackoverflow.com/questions/886864/differences-between-using-wmode-transparent-opaque-or-window-for-an-embed">http://stackoverflow.com/questions/886864/differences-between-using-wmode-transparent-opaque-or-window-for-an-embed</a>).</p>
<p>The problem was, YouTube videos are now being embedded via an iframe and I wasn&#8217;t sure how to go about getting the embed code to use the wmode setting.<br />
I found an answer on YouTube itself from <a href="http://www.youtube.com/watch?v=hTCAeGIBaxw">360creations</a>. All good. Just add &amp;wmode=transparent to the end of the YouTube URL, that&#8217;s easy, except our administrators add the YouTube embed code (pulled from YouTube without the wmode code added) via an admin section and I needed a way to automate adding this using PHP.</p>
<p>Quick solution:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$youtube_embed_code</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;iframe src=&quot;http://www.youtube.com/embed/hTCAeGIBaxw&quot; frameborder=&quot;0&quot; width=&quot;560&quot; height=&quot;345&quot;&gt;&lt;/iframe&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$patterns</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'/youtube.com\/embed\/([a-zA-Z0-9._-]+)/'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$replacements</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'youtube.com/embed/$1?wmode=transparent&quot;'</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$patterns</span><span style="color: #339933;">,</span> <span style="color: #000088;">$replacements</span><span style="color: #339933;">,</span> <span style="color: #000088;">$youtube_embed_code</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.justinswan.com/youtube-iframe-overlays.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>jQuery URL shortener</title>
		<link>http://www.justinswan.com/jquery-url-shortener.html</link>
		<comments>http://www.justinswan.com/jquery-url-shortener.html#comments</comments>
		<pubDate>Mon, 28 Jun 2010 02:26:29 +0000</pubDate>
		<dc:creator>Justin</dc:creator>
				<category><![CDATA[Website Development]]></category>
		<category><![CDATA[bit.ly]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[jquery plugin]]></category>
		<category><![CDATA[url shortener]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.justinswan.com/?p=158</guid>
		<description><![CDATA[jQuery url shortener using the bit.ly API <a href="http://www.justinswan.com/jquery-url-shortener.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Hi y&#8217;all,</p>
<p>My first jQuery plugin. Your welcome to use it (including commerical), re-code it and provide suggestions, please just keep reference to myself and to <a href="http://jquery-howto.blogspot.com/2009/04/shorten-long-urls-with-jquery-bitly.html">Uzbekjon</a>.</p>
<p>It uses the <a href="http://bit.ly">http://bit.ly</a> API so you&#8217;ll need your own account and API key. The code format is based on <a href="http://www.learningjquery.com/2007/10/a-plugin-development-pattern">Mike Alsup&#8217;s Plugin Development Pattern</a>.</p>
<p>Download <a href="http://www.justinswan.com/wp-content/uploads/2010/06/jquery.shorten_url.js">jquery.shorten_url.js</a></p>
<p>&nbsp;</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">/*
* jQuery Bit.Ly Shorten Url Plugin
* 2010 Justin Swan
* License: Creative Commons Attribution-Share Alike 3.0 Australia Licence
* Original Author: Uzbekjon (http://jquery-howto.blogspot.com/2009/04/shorten-long-urls-with-jquery-bitly.html)
* Version: 1.0.0
*
* Grateful for any feedback on improvements.
*
* Call: $(input field).shorten_url(long url)
* Returns: shortened url as value for input field.
*
*/</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//</span>
<span style="color: #666666; font-style: italic;">// start closure</span>
<span style="color: #666666; font-style: italic;">//</span>
<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
$<span style="color: #339933;">.</span>fn<span style="color: #339933;">.</span>shorten_url <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>url<span style="color: #339933;">,</span>options<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #666666; font-style: italic;">// Extend our default options with those provided.</span>
<span style="color: #000000; font-weight: bold;">var</span> opts <span style="color: #339933;">=</span> $<span style="color: #339933;">.</span>extend<span style="color: #009900;">&#40;</span>$<span style="color: #339933;">.</span>fn<span style="color: #339933;">.</span>shorten_url<span style="color: #339933;">.</span>defaults<span style="color: #339933;">,</span> options<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">return</span> this<span style="color: #339933;">.</span><span style="color: #990000;">each</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$this</span> <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span>this<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// format url to request</span>
<span style="color: #000000; font-weight: bold;">var</span> daurl <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;http://api.bit.ly/shorten?&quot;</span>
<span style="color: #339933;">+</span><span style="color: #0000ff;">&quot;version=&quot;</span><span style="color: #339933;">+</span>opts<span style="color: #339933;">.</span>version
<span style="color: #339933;">+</span><span style="color: #0000ff;">&quot;&amp;longUrl=&quot;</span><span style="color: #339933;">+</span>url
<span style="color: #339933;">+</span><span style="color: #0000ff;">&quot;&amp;login=&quot;</span><span style="color: #339933;">+</span>opts<span style="color: #339933;">.</span>login
<span style="color: #339933;">+</span><span style="color: #0000ff;">&quot;&amp;apiKey=&quot;</span><span style="color: #339933;">+</span>opts<span style="color: #339933;">.</span>apiKey
<span style="color: #339933;">+</span><span style="color: #0000ff;">&quot;&amp;history=&quot;</span><span style="color: #339933;">+</span>opts<span style="color: #339933;">.</span>history
<span style="color: #339933;">+</span><span style="color: #0000ff;">&quot;&amp;format=json&amp;callback=?&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Utilize the bit.ly API</span>
$<span style="color: #339933;">.</span>getJSON<span style="color: #009900;">&#40;</span>daurl<span style="color: #339933;">,</span> <span style="color: #000000; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>data<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #666666; font-style: italic;">// Make a good use of short URL</span>
<span style="color: #000088;">$this</span><span style="color: #339933;">.</span>val<span style="color: #009900;">&#40;</span>data<span style="color: #339933;">.</span>results<span style="color: #009900;">&#91;</span>url<span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span>shortUrl<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
&nbsp;
$<span style="color: #339933;">.</span>fn<span style="color: #339933;">.</span>shorten_url<span style="color: #339933;">.</span>defaults <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span>
version<span style="color: #339933;">:</span> <span style="color: #0000ff;">'2.0.1'</span><span style="color: #339933;">,</span>
login<span style="color: #339933;">:</span> <span style="color: #0000ff;">'bitlyapidemo'</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// your bit.ly account login</span>
apiKey<span style="color: #339933;">:</span> <span style="color: #0000ff;">'R_0da49e0a9118ff35f52f629d2d71bf07'</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// your api key here</span>
history<span style="color: #339933;">:</span> <span style="color: #0000ff;">'0'</span><span style="color: #339933;">,</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">//</span>
<span style="color: #666666; font-style: italic;">// end of closure</span>
<span style="color: #666666; font-style: italic;">//</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span>jQuery<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.justinswan.com/jquery-url-shortener.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Thunderbird &#8211; RSS showing snippet rather than html page</title>
		<link>http://www.justinswan.com/thunderbird-rss-showing-snippet-rather-than-html-page.html</link>
		<comments>http://www.justinswan.com/thunderbird-rss-showing-snippet-rather-than-html-page.html#comments</comments>
		<pubDate>Sun, 15 Nov 2009 21:10:56 +0000</pubDate>
		<dc:creator>Justin</dc:creator>
				<category><![CDATA[Raw & Uncategorized]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[RSS]]></category>
		<category><![CDATA[Thunderbird]]></category>

		<guid isPermaLink="false">http://www.justinswan.com/?p=141</guid>
		<description><![CDATA[Having image/html troubles with Thunderbird? RSS account showing brief description instead of the full html web page? This may not be the only solution but it was the one I discovered worked for me and was from my own actions &#8230; <a href="http://www.justinswan.com/thunderbird-rss-showing-snippet-rather-than-html-page.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Having image/html troubles with Thunderbird? RSS account showing brief description instead of the full html web page? This may not be the only solution but it was the one I discovered worked for me and was from my own actions that caused it.</p>
<p>Did you happen to change your email settings to display messages as simple HTML at some stage? If so, turn it back to Original HTML. Hey presto! Thunderbird&#8217;s RSS reader displays the full web page again and also, displays images in your email again.</p>
<p>For more information, see <a href="http://kb.mozillazine.org/Images_in_messages_do_not_appear">http://kb.mozillazine.org/Images_in_messages_do_not_appear</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.justinswan.com/thunderbird-rss-showing-snippet-rather-than-html-page.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery email obfuscation</title>
		<link>http://www.justinswan.com/jquery-email-obfuscation.html</link>
		<comments>http://www.justinswan.com/jquery-email-obfuscation.html#comments</comments>
		<pubDate>Thu, 03 Sep 2009 00:35:13 +0000</pubDate>
		<dc:creator>Justin</dc:creator>
				<category><![CDATA[Website Development]]></category>
		<category><![CDATA[email obfuscation]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.justinswan.com/?p=134</guid>
		<description><![CDATA[Was looking for a way to hide or obfuscate email addresses from spam bots and found this Google groups page which was pretty much what I was after for a solution, however this plugin isn&#8217;t quite complete. Javascripts .replace only &#8230; <a href="http://www.justinswan.com/jquery-email-obfuscation.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Was looking for a way to hide or obfuscate email addresses from spam bots and found <a href="http://groups.google.com/group/jquery-en/browse_thread/thread/d895c01afd26297d/691f160473f2fcb4?lnk=raot">this Google groups page</a> which was pretty much what I was after for a solution, however this plugin isn&#8217;t quite complete. Javascripts .replace only works once, normally, so an email address with multiple &#8216; DOT &#8216; s will not deobfuscate correctly.</p>
<p>A quick Google later&#8230; here&#8217;s my solution</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">jQuery<span style="color: #339933;">.</span>fn<span style="color: #339933;">.</span>deobfuscate <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
<span style="color: #b1b100;">return</span> this<span style="color: #339933;">.</span><span style="color: #990000;">each</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
<span style="color: #000000; font-weight: bold;">var</span> content <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span>this<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>text<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;&lt;/</span>code<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">/* grab the part inside the braces, swap out placeholders, and trim
*/</span>
<span style="color: #000000; font-weight: bold;">var</span> obfuscated <span style="color: #339933;">=</span> content<span style="color: #339933;">.</span>match<span style="color: #009900;">&#40;</span><span style="color: #339933;">/</span>\<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">.*</span><span style="color: #009900;">&#41;</span>\<span style="color: #009900;">&#93;</span><span style="color: #339933;">/</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">/*
for(var i=0;i&lt;obfuscated.length();i++){
alert(obfuscated[i]);
}
*/</span>
<span style="color: #000000; font-weight: bold;">var</span> address <span style="color: #339933;">=</span> obfuscated<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span>
<span style="color: #339933;">.</span>replace<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">' AT '</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'@'</span><span style="color: #009900;">&#41;</span>
<span style="color: #339933;">.</span>replace<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> RegExp<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">' DOT '</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'g'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'.'</span><span style="color: #009900;">&#41;</span>
<span style="color: #339933;">.</span>replace<span style="color: #009900;">&#40;</span><span style="color: #339933;">/</span>^\s<span style="color: #339933;">+|</span>\s<span style="color: #339933;">+</span>$<span style="color: #339933;">/</span>g<span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">/* get everything before the braces and trim
*/</span>
<span style="color: #000000; font-weight: bold;">var</span> text <span style="color: #339933;">=</span> content<span style="color: #339933;">.</span>match<span style="color: #009900;">&#40;</span><span style="color: #339933;">/.</span>?<span style="color: #009900;">&#91;</span>^<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">+/</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
text <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>text<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">!=</span> content<span style="color: #009900;">&#41;</span>
? text<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span>replace<span style="color: #009900;">&#40;</span><span style="color: #339933;">/</span>^\s<span style="color: #339933;">+|</span>\s<span style="color: #339933;">+</span>$<span style="color: #339933;">/</span>g<span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span>
<span style="color: #339933;">:</span> address<span style="color: #339933;">;</span>      <span style="color: #666666; font-style: italic;">// if there's no text part, use the address</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> title <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span>this<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>attr<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'title'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
&nbsp;
$<span style="color: #009900;">&#40;</span>this<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>replaceWith<span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&lt;a href=&quot;mailto:'</span> <span style="color: #339933;">+</span> address <span style="color: #339933;">+</span> <span style="color: #0000ff;">'&quot; title=&quot;'</span> <span style="color: #339933;">+</span>
title <span style="color: #339933;">+</span> <span style="color: #0000ff;">'&quot;&gt;'</span> <span style="color: #339933;">+</span> text <span style="color: #339933;">+</span> <span style="color: #0000ff;">'&lt;/a&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>note the second .replace now contains a new Regex() command which looks for all occurrances of &#8216; DOT &#8216;. Works a treat.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.justinswan.com/jquery-email-obfuscation.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash CS4 unexpectedly quits</title>
		<link>http://www.justinswan.com/flash-cs4-unexpectedly-quits.html</link>
		<comments>http://www.justinswan.com/flash-cs4-unexpectedly-quits.html#comments</comments>
		<pubDate>Tue, 21 Jul 2009 00:13:31 +0000</pubDate>
		<dc:creator>Justin</dc:creator>
				<category><![CDATA[Website Development]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[cs4]]></category>
		<category><![CDATA[flash]]></category>

		<guid isPermaLink="false">http://www.justinswan.com/flash-cs4-unexpectedly-quits.html</guid>
		<description><![CDATA[What a pain in the arse this was&#8230; reinstalled CS4 design premium twice to try and resolve but everytime I opened up an Adobe CS3 or CS4 file the Flash would unexpectedly quit. If I tried opening Flash CS4 first &#8230; <a href="http://www.justinswan.com/flash-cs4-unexpectedly-quits.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>What a pain in the arse this was&#8230; reinstalled CS4 design premium twice to try and resolve but everytime I opened up an Adobe CS3 or CS4 file the Flash would unexpectedly quit. If I tried opening Flash CS4 first then opening the file, Flash would just hang and become non responsive.</p>
<p>It turns out the solution is quite simple, but perhaps time consuming. After reading <a href="http://jobemakar.blogspot.com/2008/10/how-to-crash-flash-cs4-with-single.html">http://jobemakar.blogspot.com/2008/10/how-to-crash-flash-cs4-with-single.html</a>, I attempted the suggested fix of looking for corrupt fonts. Actually, I skipped the looking part and removed all the fonts from my fonts folder that Windows would allow me, then added the fonts from a work mates PC. All working happily now, the migration from CS3 to CS4 is complete.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.justinswan.com/flash-cs4-unexpectedly-quits.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Litecommerce breaks with new Google Analytics code</title>
		<link>http://www.justinswan.com/litecommerce-breaks-with-new-google-analytics-code.html</link>
		<comments>http://www.justinswan.com/litecommerce-breaks-with-new-google-analytics-code.html#comments</comments>
		<pubDate>Thu, 04 Jun 2009 23:05:43 +0000</pubDate>
		<dc:creator>Justin</dc:creator>
				<category><![CDATA[Website Development]]></category>
		<category><![CDATA[analytics]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[litecommerce]]></category>

		<guid isPermaLink="false">http://www.justinswan.com/?p=125</guid>
		<description><![CDATA[Google have updated their Analytics code again, this time adding a javascript try statement to prevent Javascript errors being displayed in the browser. This is a good thing, however, as provided by Google, this new code breaks the LiteCommerce template &#8230; <a href="http://www.justinswan.com/litecommerce-breaks-with-new-google-analytics-code.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Google have updated their Analytics code again, this time adding a javascript try statement to prevent Javascript errors being displayed in the browser. This is a good thing, however, as provided by Google, this new code breaks the LiteCommerce template parser. The only solution I currently have is to wrap the Javascript statements in html comments. I had tried wrapping the Google Stats code with the CDATA method but this still breaks the LiteCommerce template parser as well (see <a href="http://javascript.about.com/library/blxhtml.htm">http://javascript.about.com/library/blxhtml.htm</a> for Javascript validation fixes).</p>
<p>Here is my current solution (in skins/default/main.tpl) where ****** is your Google Analytics account number and ** is your site number:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">&lt;span style=&quot;color: #0000ff;&quot;&gt;<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #006600; font-style: italic;">// &lt;![CDATA[</span>
<span style="color: #003366; font-weight: bold;">var</span> gaJsHost <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;https:&quot;</span> <span style="color: #339933;">==</span> document.<span style="color: #660066;">location</span>.<span style="color: #660066;">protocol</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">?</span> <span style="color: #3366CC;">&quot;https://ssl.&quot;</span> <span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;http://www.&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
document.<span style="color: #000066; font-weight: bold;">write</span><span style="color: #009900;">&#40;</span>unescape<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;%3Cscript src='&quot;</span> <span style="color: #339933;">+</span> gaJsHost <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// ]]&gt;&lt;/script&gt;</span>
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #006600; font-style: italic;">// &lt;![CDATA[</span>
<span style="color: #000066; font-weight: bold;">try</span><span style="color: #009900;">&#123;</span>
<span style="color: #003366; font-weight: bold;">var</span> pageTracker <span style="color: #339933;">=</span> _gat._getTracker<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;UA-******-**&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
pageTracker._trackPageview<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">catch</span><span style="color: #009900;">&#40;</span>err<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span>
<span style="color: #006600; font-style: italic;">// ]]&gt;&lt;/script&gt;</span>&lt;/span&gt;</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.justinswan.com/litecommerce-breaks-with-new-google-analytics-code.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Tesla makes the electric family car a reality</title>
		<link>http://www.justinswan.com/electric-family-car-very-much-a-reality.html</link>
		<comments>http://www.justinswan.com/electric-family-car-very-much-a-reality.html#comments</comments>
		<pubDate>Tue, 19 May 2009 12:11:02 +0000</pubDate>
		<dc:creator>Justin</dc:creator>
				<category><![CDATA[Being Green]]></category>

		<guid isPermaLink="false">http://www.justinswan.com/?p=122</guid>
		<description><![CDATA[I was reading a couple of weeks back that Tesla have a new electric car for the family, in the form of the Tesla Model S. Perhaps a little more under powered than the Tesla Roadster they certainly are tackling &#8230; <a href="http://www.justinswan.com/electric-family-car-very-much-a-reality.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignright" style="width: 510px"><a href="http://www.teslamotors.com/"><img title="Tesla Model S" src="http://farm4.static.flickr.com/3620/3388564188_4427beac12.jpg" alt="Tesla Model S - no oil here!" width="500" height="333" /></a><p class="wp-caption-text">Tesla Model S - an electric car for all families</p></div>
<p>I was reading a couple of weeks back that Tesla have a new electric car for the family, in the form of the <a href="http://www.teslamotors.com/media/image_library.php?catId=72157615861202561">Tesla Model S</a>. Perhaps a little more under powered than the <a href="http://www.teslamotors.com/media/image_library.php?catId=72157612440485369">Tesla Roadster</a> they certainly are tackling it the right way with a 45 minute recharge and range of up to 450+ kilometres. Initial design and development went into the Roadster and sold at a prestige price to help build their business and develop their technologies even further so that they may build and sell more electric cars to a larger audience at gradually more realistic prices.  The number of sales locations are definitely increasing and with electric cars that look as good as these, and peform as well, if not better than your traditional oil burner, who wouldn&#8217;t want one.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.justinswan.com/electric-family-car-very-much-a-reality.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Is humanity finally changing it&#8217;s ways?</title>
		<link>http://www.justinswan.com/is-humanity-finally-changing-its-ways.html</link>
		<comments>http://www.justinswan.com/is-humanity-finally-changing-its-ways.html#comments</comments>
		<pubDate>Tue, 19 May 2009 11:57:02 +0000</pubDate>
		<dc:creator>Justin</dc:creator>
				<category><![CDATA[Being Green]]></category>
		<category><![CDATA[climate change]]></category>
		<category><![CDATA[electricity]]></category>
		<category><![CDATA[renewable energy]]></category>
		<category><![CDATA[solar power]]></category>

		<guid isPermaLink="false">http://www.justinswan.com/?p=119</guid>
		<description><![CDATA[Two articles in the news recently have inspired a bit of hope for the direction of humanity. Mr Rudd has announced that Australia will soon be the home of the largest solar powered electricity generator in the world and Obama &#8230; <a href="http://www.justinswan.com/is-humanity-finally-changing-its-ways.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Two articles in the news recently have inspired a bit of hope for the direction of humanity. Mr Rudd has announced that Australia will soon be the home of the largest solar powered electricity generator in the world and Obama is finally going to regulate probably the worlds biggest consumer of oil (<a href="http://www.timesonline.co.uk/tol/news/world/us_and_americas/article6317920.ece">http://www.timesonline.co.uk/tol/news/world/us_and_americas/article6317920.ece</a>) for the first time in history. Whilst writing this article I was trying to find the page on the Australian Government website and discovered that Arizona is also inspiring to have the world&#8217;s largest power plant. This has got to be good news right? Competition for the worlds largest solar power plant?</p>
<p><a href="http://www.inhabitat.com/2008/02/25/world%E2%80%99s-largest-solar-power-plant-coming-to-arizona-in-2011/">http://www.inhabitat.com/2008/02/25/world%E2%80%99s-largest-solar-power-plant-coming-to-arizona-in-2011/</a> @280 megawatts<br />
<a href="http://www.pm.gov.au/media/Interview/2009/interview_1000.cfm">http://www.pm.gov.au/media/Interview/2009/interview_1000.cfm</a> @1000 megawatts</p>
<p>Bring it on&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.justinswan.com/is-humanity-finally-changing-its-ways.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Global Financial Crisis Brings Positive Thoughts</title>
		<link>http://www.justinswan.com/global-financial-crisis-brings-positive-thoughts.html</link>
		<comments>http://www.justinswan.com/global-financial-crisis-brings-positive-thoughts.html#comments</comments>
		<pubDate>Fri, 20 Feb 2009 13:15:46 +0000</pubDate>
		<dc:creator>Justin</dc:creator>
				<category><![CDATA[Raw & Uncategorized]]></category>
		<category><![CDATA[gfc]]></category>
		<category><![CDATA[global financial crisis]]></category>
		<category><![CDATA[positive thinking]]></category>

		<guid isPermaLink="false">http://www.justinswan.com/?p=93</guid>
		<description><![CDATA[It&#8217;s a strange title and a bit of a challenge to write about as it is forcing me to expose more of my persona than I&#8217;m usually willing to do and have been afraid to to for some time. It&#8217;s &#8230; <a href="http://www.justinswan.com/global-financial-crisis-brings-positive-thoughts.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s a strange title and a bit of a challenge to write about as it is forcing me to expose more of my persona than I&#8217;m usually willing to do and have been afraid to to for some time. It&#8217;s also going to be a challenge for me to write this in proper engwish as my writing skills are very scratchy. I don&#8217;t like to ruffle feathers or discourage people from their own beliefs and therefore don&#8217;t usually talk or write about what&#8217;s on my mind.  But this year is a year where I want to challenge my own boundaries, break some of those old moulds, and get back to living life with a positive frame of thought, so here it is&#8230;</p>
<p>About 8 years ago, I delved into meditation and spirituality to overcome anxiety and depression. This was particularly fruitful and led to a state of &#8216;nirvana&#8217; for a period of three/four days before my ego stepped back in and took over, crash landing back into what most people will call reality. This state of nirvana has not been reached since and has almost become the holy grail of my existence. Some say this is the honey moon period on the path of spirituality. Eight years on I have strayed from these beliefs (and not reached the holy grail), however, I&#8217;m finding now more than ever, that these beliefs are beneficial for me to remain positive, calm and relaxed.</p>
<p>Throughout my spiritual journey, there have been a few important self discoveries (despite my wise and wonderful wife already telling me many times before I finally clicked). I learned that my own spiritual journey is a journey within, not a journey in reaching out and not relying on other people to provide me with whatever I may be seeking. Other people cannot provide me peace, only I can do that with my own thoughts, beliefs and actions.</p>
<p>I was taught that whatever experiences are evolving into &#8216;now&#8217; are a result of my thoughts, beliefs and actions. This includes events on a personal and global level. These beliefs lead to taking on full personal responsibility for everything that effects me.  The world is a reflection of my perception. The hardest part for me to believe and accept is that even the subconscious learned behaviours from my childhood can be a factor in what happens in my life and it&#8217;s very easy to slip into the &#8216;blame game&#8217; for the bad things that happen. If I feel and believe the world is out to get me, then the world will pretty much work it&#8217;s magic and set the stage to play &#8216;out to get me&#8217;, at least until I turn my thoughts around to positive ones again.</p>
<p>All of this leads me to my thoughts on the Global Financial Crisis (or what I&#8217;m starting to call, Global Financial Change). All the news and alarm bells of doom and gloom is only solidifying the bad news that people are losing jobs and that the cost of living is increasing. What do you do in times like these? Being fearful does not benefit anyone and if what I have been taught holds true then it is only going to make the situation worse. So, for me to be at peace with the whole scenario, I need to look at this in a new light, and positively, so that I can make a difference for myself and to do my bit for humanity.</p>
<p><strong>Unique times call for Unique thinking and Unique opportunities. </strong><br />
I see the current climate as change, people always fear change, but what if this so called crisis is all about clearing out the corruption that has been unchecked for years, then it&#8217;s got to be a good thing right? What if the whole situation is meant to make you question what it is you really want to do for a career or even life after feeling safe in your job for x number of years? In a lot of ways, the crisis is creating opportunity for humanity to refine and improve the way things are done, and bring life back to basics. With food shortages, there&#8217;s going to be increased focus on new ways to create more food, more efficiently which could quite likely solve the food crisis in third world countries once the financial markets stabilize. It may also, lessen the gap between rich and poor as the top 1% of the population have less freedom to pilfer money into their own bank accounts. Banks will need to be more accountable and have more focus on the customer who puts money into their accounts due to a lack of money to borrow in hedge funds or off the book records (or whatever it is they do). New energy solutions will be created in an effort to drive down the costs of driving cars and powering the grid.</p>
<p>I have no doubt it&#8217;s going to be challenging for humanity to resolve this, but when looked at in a positive light, this next year or so will most certainly be interesting.</p>
<p>Is the global financial crisis getting on top of you? Need some friendly counselling to help you through? Visit <a href="http://www.lifeguidefor.me">Life Guide For Me</a> for free counseling.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.justinswan.com/global-financial-crisis-brings-positive-thoughts.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash playing mp3 too fast on some machines</title>
		<link>http://www.justinswan.com/flash-playing-mp3-too-fast-on-some-machines.html</link>
		<comments>http://www.justinswan.com/flash-playing-mp3-too-fast-on-some-machines.html#comments</comments>
		<pubDate>Wed, 18 Feb 2009 23:44:02 +0000</pubDate>
		<dc:creator>Justin</dc:creator>
				<category><![CDATA[Website Development]]></category>
		<category><![CDATA[chipmunks]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flashplayer]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[web browser]]></category>

		<guid isPermaLink="false">http://www.justinswan.com/?p=97</guid>
		<description><![CDATA[If you ever have a Flash file that plays your MP3&#8242;s like chipmunks have raided your record collection, try re-encoding your MP3 with a constant bit rate and a sample rate as a multiple of 44.1kHz. Newer Flash Player plugins &#8230; <a href="http://www.justinswan.com/flash-playing-mp3-too-fast-on-some-machines.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you ever have a Flash file that plays your MP3&#8242;s like chipmunks have raided your record collection, try re-encoding your MP3 with a constant bit rate and a sample rate as a multiple of 44.1kHz. Newer Flash Player plugins have resolved this problem, however there are always old versions of Flash Player out there so it is the web developers duty to resolve.</p>
<p>Big thanks go to:Walt of <a href="http://www.moonfruitlounge.com">MoonFruitLounge</a>, for this post <a href="http://www.moonfruitlounge.com/post/2007/11/30/My-music-is-playing-back-too-fast-it-now-sounds-like-Chipmunks">http://www.moonfruitlounge.com/post/2007/11/30/My-music-is-playing-back-too-fast-it-now-sounds-like-Chipmunks</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.justinswan.com/flash-playing-mp3-too-fast-on-some-machines.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

