<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for Distractable</title>
	<atom:link href="http://distractable.net/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://distractable.net</link>
	<description>embracing distractions of the digital age</description>
	<lastBuildDate>Wed, 03 Mar 2010 12:54:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on AppEngine and Resource Performance: Why you need a CDN by Damon</title>
		<link>http://distractable.net/tech/appengine-resource-performance-why-you-need-cdn/comment-page-1/#comment-135</link>
		<dc:creator>Damon</dc:creator>
		<pubDate>Wed, 03 Mar 2010 12:54:07 +0000</pubDate>
		<guid isPermaLink="false">http://distractable.net/?p=897#comment-135</guid>
		<description>Thanks for the deploy script Mike - very slick as per the app.yaml tricks to serve that cache busting (like the term) CSS and JS.

I had written some &lt;a href=&quot;http://groovy.codehaus.org/&quot; rel=&quot;nofollow&quot;&gt;groovy code&lt;/a&gt; for doing similar concatenation of javascript files in a project I was working on that was very javascript heavy.  I&#039;ve posted the groovy snippet as a &lt;a href=&quot;http://gist.github.com/296463&quot; rel=&quot;nofollow&quot;&gt;github gist&lt;/a&gt;, but it&#039;s definitely a bit raw still.  I might try and clean it up and integrate it with the YUI compressor and then write a quick post on how I intend to use it.

Cheers,
Damon.</description>
		<content:encoded><![CDATA[<p>Thanks for the deploy script Mike &#8211; very slick as per the app.yaml tricks to serve that cache busting (like the term) CSS and JS.</p>
<p>I had written some <a href="http://groovy.codehaus.org/" rel="nofollow">groovy code</a> for doing similar concatenation of javascript files in a project I was working on that was very javascript heavy.  I&#8217;ve posted the groovy snippet as a <a href="http://gist.github.com/296463" rel="nofollow">github gist</a>, but it&#8217;s definitely a bit raw still.  I might try and clean it up and integrate it with the YUI compressor and then write a quick post on how I intend to use it.</p>
<p>Cheers,<br />
Damon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on AppEngine and Resource Performance: Why you need a CDN by Mike K.</title>
		<link>http://distractable.net/tech/appengine-resource-performance-why-you-need-cdn/comment-page-1/#comment-134</link>
		<dc:creator>Mike K.</dc:creator>
		<pubDate>Wed, 03 Mar 2010 12:46:07 +0000</pubDate>
		<guid isPermaLink="false">http://distractable.net/?p=897#comment-134</guid>
		<description>Actually, that app.yaml line looks more complicated than it needs to be. I think it could just be:


- url: /css/prod/.*
  static_files: static/css/prod.css
  upload: static/css/prod.css</description>
		<content:encoded><![CDATA[<p>Actually, that app.yaml line looks more complicated than it needs to be. I think it could just be:</p>
<p>- url: /css/prod/.*<br />
  static_files: static/css/prod.css<br />
  upload: static/css/prod.css</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on AppEngine and Resource Performance: Why you need a CDN by Mike K.</title>
		<link>http://distractable.net/tech/appengine-resource-performance-why-you-need-cdn/comment-page-1/#comment-133</link>
		<dc:creator>Mike K.</dc:creator>
		<pubDate>Wed, 03 Mar 2010 12:38:18 +0000</pubDate>
		<guid isPermaLink="false">http://distractable.net/?p=897#comment-133</guid>
		<description>Ah, right - I missed that part! :) 

An example deploy script is below. Actually, the IDs are just fake. If you change the ID part of the URL to a new ID, it will still work! And, yes, it is purely for cache busting purposes.

The dynamic ID is achieved by serving the CSS etc like so in the app.yaml file:

- url: /css/prod/([^-]+)-.*
  static_files: static/css/\1.css
  upload: static/css/(.*)


Okay, here is the deploy script (there is a separate tests script that will exit if the tests don&#039;t pass).

== AppEngine deploy script ==

#!/bin/sh

export APPLICATION_ID=&quot;my_app_id&quot;

cd $MY_APP_DIR

# The tests all must run successfully.
./tests.sh

echo &quot;** PUBLIC CSS...\n&quot;
cat static/css/base.css \
    static/css/file1.css \
    static/css/file2.css \
    static/css/etc.css &gt; /tmp/precompile.css.tmp;
java -jar /usr/bin/yuicompressor-2.4.2.jar \
     --type css /tmp/precompile.css.tmp \
     -o static/css/prod.css
echo &quot;\tCSS has been compiled (static/css/prod.css)\n&quot;

echo &quot;** PUBLIC JS...\n&quot;
cat static/js/mootools-1.2.3-core.js \
    static/js/base.js \
    static/js/file1.js \
    static/js/file2.js \
    static/js/etc.js &gt; /tmp/precompile.js.tmp
java -jar /usr/bin/yuicompressor-2.4.2.jar \
     --type js /tmp/precompile.js.tmp \
     -o static/js/prod.js
echo &quot;\tJS has been compiled (static/js/prod.js)\n&quot;

echo &quot;** DEPLOYING...\n&quot;
appcfg.py update $MY_APP_DIR

echo &quot;** DONE!\n&quot;
echo &quot;** CLEANUP...&quot;

rm /tmp/precompile.css.tmp
rm /tmp/precompile.js.tmp
rm $MY_APP_DIR/static/css/prod.css
rm $MY_APP_DIR/static/js/prod.js</description>
		<content:encoded><![CDATA[<p>Ah, right &#8211; I missed that part! <img src='http://distractable.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
<p>An example deploy script is below. Actually, the IDs are just fake. If you change the ID part of the URL to a new ID, it will still work! And, yes, it is purely for cache busting purposes.</p>
<p>The dynamic ID is achieved by serving the CSS etc like so in the app.yaml file:</p>
<p>- url: /css/prod/([^-]+)-.*<br />
  static_files: static/css/\1.css<br />
  upload: static/css/(.*)</p>
<p>Okay, here is the deploy script (there is a separate tests script that will exit if the tests don&#8217;t pass).</p>
<p>== AppEngine deploy script ==</p>
<p>#!/bin/sh</p>
<p>export APPLICATION_ID=&#8221;my_app_id&#8221;</p>
<p>cd $MY_APP_DIR</p>
<p># The tests all must run successfully.<br />
./tests.sh</p>
<p>echo &#8220;** PUBLIC CSS&#8230;\n&#8221;<br />
cat static/css/base.css \<br />
    static/css/file1.css \<br />
    static/css/file2.css \<br />
    static/css/etc.css &gt; /tmp/precompile.css.tmp;<br />
java -jar /usr/bin/yuicompressor-2.4.2.jar \<br />
     &#8211;type css /tmp/precompile.css.tmp \<br />
     -o static/css/prod.css<br />
echo &#8220;\tCSS has been compiled (static/css/prod.css)\n&#8221;</p>
<p>echo &#8220;** PUBLIC JS&#8230;\n&#8221;<br />
cat static/js/mootools-1.2.3-core.js \<br />
    static/js/base.js \<br />
    static/js/file1.js \<br />
    static/js/file2.js \<br />
    static/js/etc.js &gt; /tmp/precompile.js.tmp<br />
java -jar /usr/bin/yuicompressor-2.4.2.jar \<br />
     &#8211;type js /tmp/precompile.js.tmp \<br />
     -o static/js/prod.js<br />
echo &#8220;\tJS has been compiled (static/js/prod.js)\n&#8221;</p>
<p>echo &#8220;** DEPLOYING&#8230;\n&#8221;<br />
appcfg.py update $MY_APP_DIR</p>
<p>echo &#8220;** DONE!\n&#8221;<br />
echo &#8220;** CLEANUP&#8230;&#8221;</p>
<p>rm /tmp/precompile.css.tmp<br />
rm /tmp/precompile.js.tmp<br />
rm $MY_APP_DIR/static/css/prod.css<br />
rm $MY_APP_DIR/static/js/prod.js</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on AppEngine and Resource Performance: Why you need a CDN by Damon</title>
		<link>http://distractable.net/tech/appengine-resource-performance-why-you-need-cdn/comment-page-1/#comment-132</link>
		<dc:creator>Damon</dc:creator>
		<pubDate>Wed, 03 Mar 2010 12:20:03 +0000</pubDate>
		<guid isPermaLink="false">http://distractable.net/?p=897#comment-132</guid>
		<description>Hey Mike,

Yep was getting around to the CSS + JS compression (I mention it but admittedly it&#039;s right at the end of the post).  In reality, I knew I was doing this a bit back to front but I&#039;m the kind of guy that will read the last page in a book so I know where I&#039;m going (well, not really, but that&#039;s about the best analogy I had).

If you get the time would be really interested in hearing more about your deploy script, as I notice it appends a build ID or something to both the CSS and JS resources as part of the deployment, which I&#039;m guessing prevents later pain with cached versions of those files.

Thanks for the response, and hope business continues to grow for you guys over @ Shoes of Prey.

Cheers,
Damon.</description>
		<content:encoded><![CDATA[<p>Hey Mike,</p>
<p>Yep was getting around to the CSS + JS compression (I mention it but admittedly it&#8217;s right at the end of the post).  In reality, I knew I was doing this a bit back to front but I&#8217;m the kind of guy that will read the last page in a book so I know where I&#8217;m going (well, not really, but that&#8217;s about the best analogy I had).</p>
<p>If you get the time would be really interested in hearing more about your deploy script, as I notice it appends a build ID or something to both the CSS and JS resources as part of the deployment, which I&#8217;m guessing prevents later pain with cached versions of those files.</p>
<p>Thanks for the response, and hope business continues to grow for you guys over @ Shoes of Prey.</p>
<p>Cheers,<br />
Damon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on AppEngine and Resource Performance: Why you need a CDN by Mike K.</title>
		<link>http://distractable.net/tech/appengine-resource-performance-why-you-need-cdn/comment-page-1/#comment-131</link>
		<dc:creator>Mike K.</dc:creator>
		<pubDate>Wed, 03 Mar 2010 12:08:17 +0000</pubDate>
		<guid isPermaLink="false">http://distractable.net/?p=897#comment-131</guid>
		<description>Hi Damon

Nice post. I have to say I don&#039;t have a lot of experience with CDNs - however, if I can make a really simple suggestion to improve page load speed, it would be to use a JavaScript/CSS compressor to concatenate all of your files into a single master JavaScript or CSS file. 

That way you&#039;re only serving 2 HTTP requests - 1 for CSS and 1 for JavaScript - instead of something like the 8 or 9 you&#039;re currently doing. 

We use YUI Compressor on Shoes of Prey - and we&#039;ve built it into our deploy script so it all happens magically when we&#039;re launching a new version. On a dev machine we serve out all of the individual files to make it easier to debug.

I also set my default cache expiration in AppEngine to 5 days for static files. This may actually be the default, I can&#039;t remember....

Hope that helps!

Mike :)</description>
		<content:encoded><![CDATA[<p>Hi Damon</p>
<p>Nice post. I have to say I don&#8217;t have a lot of experience with CDNs &#8211; however, if I can make a really simple suggestion to improve page load speed, it would be to use a JavaScript/CSS compressor to concatenate all of your files into a single master JavaScript or CSS file. </p>
<p>That way you&#8217;re only serving 2 HTTP requests &#8211; 1 for CSS and 1 for JavaScript &#8211; instead of something like the 8 or 9 you&#8217;re currently doing. </p>
<p>We use YUI Compressor on Shoes of Prey &#8211; and we&#8217;ve built it into our deploy script so it all happens magically when we&#8217;re launching a new version. On a dev machine we serve out all of the individual files to make it easier to debug.</p>
<p>I also set my default cache expiration in AppEngine to 5 days for static files. This may actually be the default, I can&#8217;t remember&#8230;.</p>
<p>Hope that helps!</p>
<p>Mike <img src='http://distractable.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on JAOO Conference Brisbane &#8211; First Day Wrap-up by JAOO Conference Brisbane &#8211; Second Day Wrap-Up &#171; Distractable</title>
		<link>http://distractable.net/tech/jaoo-conference-brisbane-first-day-wrap-up/comment-page-1/#comment-130</link>
		<dc:creator>JAOO Conference Brisbane &#8211; Second Day Wrap-Up &#171; Distractable</dc:creator>
		<pubDate>Wed, 03 Mar 2010 10:37:46 +0000</pubDate>
		<guid isPermaLink="false">http://distractable.net/?p=469#comment-130</guid>
		<description>[...] per yesterday&#8217;s post, if you have experiences or different opinions on the day then feel free to leave a comment here or [...]</description>
		<content:encoded><![CDATA[<p>[...] per yesterday&#8217;s post, if you have experiences or different opinions on the day then feel free to leave a comment here or [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on iPhone and Android Web Application Frameworks by web &#8216;n&#8217; mobile Blog &#187; Blog Archive &#187; Mobile Web Apps - what´s that?</title>
		<link>http://distractable.net/coding/iphone-android-web-application-frameworks/comment-page-1/#comment-125</link>
		<dc:creator>web &#8216;n&#8217; mobile Blog &#187; Blog Archive &#187; Mobile Web Apps - what´s that?</dc:creator>
		<pubDate>Fri, 19 Feb 2010 15:55:47 +0000</pubDate>
		<guid isPermaLink="false">http://distractable.net/?p=631#comment-125</guid>
		<description>[...] Distractable liefert eine kleine Übersicht über Frameworks zur Entwicklung von mobilen WebApps [...]</description>
		<content:encoded><![CDATA[<p>[...] Distractable liefert eine kleine Übersicht über Frameworks zur Entwicklung von mobilen WebApps [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Running in Thongs (Flip-Flops) &#8211; My Struggle with Depression by Damon</title>
		<link>http://distractable.net/thoughts/my-struggle-with-depression/comment-page-1/#comment-91</link>
		<dc:creator>Damon</dc:creator>
		<pubDate>Sun, 31 Jan 2010 09:15:40 +0000</pubDate>
		<guid isPermaLink="false">http://distractable.net/?p=792#comment-91</guid>
		<description>Hey All,

Thanks again for the positive comments and your openness with regards to your own or your family situations.

@Lisa - thanks for the tip regarding the book.  I have picked up &lt;a href=&quot;http://www.bookdepository.co.uk/book/9780380810338/Feeling-Good&quot; rel=&quot;nofollow&quot;&gt;Feeling Good&lt;/a&gt; by David D. Burns, but I&#039;m a bit of a serial &quot;book purchaser but never reader&quot;.  Pretty solid little book, and what I have read so far is good, so I do need to try and get back to it.  

Damon.</description>
		<content:encoded><![CDATA[<p>Hey All,</p>
<p>Thanks again for the positive comments and your openness with regards to your own or your family situations.</p>
<p>@Lisa &#8211; thanks for the tip regarding the book.  I have picked up <a href="http://www.bookdepository.co.uk/book/9780380810338/Feeling-Good" rel="nofollow">Feeling Good</a> by David D. Burns, but I&#8217;m a bit of a serial &#8220;book purchaser but never reader&#8221;.  Pretty solid little book, and what I have read so far is good, so I do need to try and get back to it.  </p>
<p>Damon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Running in Thongs (Flip-Flops) &#8211; My Struggle with Depression by Lisa</title>
		<link>http://distractable.net/thoughts/my-struggle-with-depression/comment-page-1/#comment-89</link>
		<dc:creator>Lisa</dc:creator>
		<pubDate>Sun, 31 Jan 2010 05:02:28 +0000</pubDate>
		<guid isPermaLink="false">http://distractable.net/?p=792#comment-89</guid>
		<description>Thanks Damon for sharing and for being so honest and open. I had my first bout of severe depression 12 years ago which lasted more than a year and included psychosis. I tried many medications which never helped at the time. However talking regularly with a psychologist did help and so did daily walking. At the time I didn&#039;t want to live anymore, it was too painful. 
I have been fortunate to have not suffered depression since until recently. I often say to my husband that it&#039;s like being on a merry-go-round and I just want to get off. I am currently re-reading the book &#039;Beating the Blues&#039; by Susan Tanner and Jullian Ball, have you read it? I found it helped alot in challenging my thinking (cognitive therapy). I am determined this time to nip it in the bud before it gets too bad, I have a 2 and a half year old child to be around for and be a positive role model to.  
&#039;Hooray&#039; to our loved ones who are with us through thick and thin.</description>
		<content:encoded><![CDATA[<p>Thanks Damon for sharing and for being so honest and open. I had my first bout of severe depression 12 years ago which lasted more than a year and included psychosis. I tried many medications which never helped at the time. However talking regularly with a psychologist did help and so did daily walking. At the time I didn&#8217;t want to live anymore, it was too painful.<br />
I have been fortunate to have not suffered depression since until recently. I often say to my husband that it&#8217;s like being on a merry-go-round and I just want to get off. I am currently re-reading the book &#8216;Beating the Blues&#8217; by Susan Tanner and Jullian Ball, have you read it? I found it helped alot in challenging my thinking (cognitive therapy). I am determined this time to nip it in the bud before it gets too bad, I have a 2 and a half year old child to be around for and be a positive role model to.<br />
&#8216;Hooray&#8217; to our loved ones who are with us through thick and thin.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Running in Thongs (Flip-Flops) &#8211; My Struggle with Depression by Johanna Baker-Dowdell</title>
		<link>http://distractable.net/thoughts/my-struggle-with-depression/comment-page-1/#comment-87</link>
		<dc:creator>Johanna Baker-Dowdell</dc:creator>
		<pubDate>Fri, 29 Jan 2010 23:20:51 +0000</pubDate>
		<guid isPermaLink="false">http://distractable.net/?p=792#comment-87</guid>
		<description>Thank you for being so brave to share your story Damon.

It particularly resonates with me right now as I can recognise a lot of what you have described in my husband over the five or so years. He has just recently been diagnosed with a mild form of depression and has started taking medication. We have good and bad days just like you and Cath do.

Thanks again.</description>
		<content:encoded><![CDATA[<p>Thank you for being so brave to share your story Damon.</p>
<p>It particularly resonates with me right now as I can recognise a lot of what you have described in my husband over the five or so years. He has just recently been diagnosed with a mild form of depression and has started taking medication. We have good and bad days just like you and Cath do.</p>
<p>Thanks again.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
