<?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>My Little Black Book &#187; Webstock2010</title>
	<atom:link href="http://blog.williegoosen.com/category/conference/webstock2010/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.williegoosen.com</link>
	<description></description>
	<lastBuildDate>Tue, 24 Aug 2010 11:42:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Performance Bootcamp</title>
		<link>http://blog.williegoosen.com/2010/02/performance-bootcamp/</link>
		<comments>http://blog.williegoosen.com/2010/02/performance-bootcamp/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 12:10:35 +0000</pubDate>
		<dc:creator>Willie Goosen</dc:creator>
				<category><![CDATA[Webstock2010]]></category>
		<category><![CDATA[day3]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[workshop]]></category>

		<guid isPermaLink="false">http://blog.williegoosen.com/?p=89</guid>
		<description><![CDATA[Presenters : Amy Hoy @amyhoy Thomas Fuchs @thomasfuchs Sites: http://mir.aculo.us http://slash7.com/about/ photo credit: Chris Shiflett A quote from Thomas Fuchs&#8217; site&#8230; &#8220;You&#8217;re using my work every day, even if you&#8217;re not aware of it&#8221;. Thomas is the author of http://script.aculo.us and working group member of prototype.  Funnily enough williegoosen.com uses mootools, which uses prototype.  Amy has [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Chris Shiflett" href="http://www.flickr.com/photos/shiflett/3639618407/" target="_blank"><img class="alignright" style="border: 0pt none;" src="http://farm3.static.flickr.com/2270/2272128435_209181ef4d_m.jpg" border="0" alt="Amy Hoy and Thomas Fuchs" width="240" height="160" /></a> Presenters :</p>
<ul>
<li>Amy Hoy <a href="http://twitter.com/amyhoy" target="_blank">@amyhoy</a></li>
<li>Thomas Fuchs <a href="http://twitter.com/thomasfuchs" target="_blank">@thomasfuchs</a></li>
</ul>
<p>Sites:</p>
<ul>
<li> <a href="http://mir.aculo.us" target="_blank">http://mir.aculo.us</a></li>
<li> <a href="http://slash7.com/about/" target="_blank">http://slash7.com/about/</a></li>
</ul>
<p><small><a title="Attribution-NonCommercial-NoDerivs License" href="http://creativecommons.org/licenses/by-nc-nd/2.0/" target="_blank"><img src="../wp-content/plugins/photo-dropper/images/cc.png" border="0" alt="Creative Commons License" width="16" height="16" align="absmiddle" /></a> photo credit: <a title="Link to Chris Shiflett's photostream" rel="dc:creator cc:attributionURL" href="http://www.flickr.com/photos/shiflett/" target="_blank">Chris Shiflett</a></small></p>
<p>A quote from Thomas Fuchs&#8217; site&#8230; &#8220;You&#8217;re using my work every day, even if you&#8217;re not aware of it&#8221;. Thomas is the author of http://script.aculo.us and working group member of prototype.  Funnily enough williegoosen.com uses mootools, which uses prototype.  Amy has also made some rather cool tweet walls http://twistori.com/ and more recently http://letsfreckle.com/ a time sheeting app.</p>
<p>So I knew there were some tricks, having spent some time with ySlow in the weeks before, but was enlightened by the simple techniques that make a lot of difference.  Amy and Thomas did a great job of tag teaming through a rather dry subject and made it rather interesting, with one of the team walking through the slides and the other answering questions on a chat room style back-channel.</p>
<p>The talk started off with one of the rules being &#8220;only fix it if you need to&#8221; which i suppose makes a lot of sense. Tweaking performance can be a real fickle business, but if the users aren&#8217;t happy you have to fix it quick!</p>
<p>Test, don&#8217;t guess. benchmark. Make sure you can quantify the issue before you attempt any fixes so you can measure your improvement.</p>
<p>In some cases it will just be impossible to please your users but there are ways to keep people engaged and let them feel you are not ignoring them, while doing the heavy lifting in the background.</p>
<p><strong>Main areas of focus<br />
</strong> <em>Loading </em>-  connecting/spinning wheel, back-end speed, dns, latency * easiest win*.<br />
<em>Rendering </em>- white screen of death, you can see items still loading in the status bar.<br />
<em>Execution </em>- site stops responding after is completely rendered.</p>
<p>But to be honest there were just so many &#8220;oooh I should be doing that&#8221;, &#8220;woops shouldn&#8217;t be doing that&#8221; moments I will try and capture a bunch of them. Non-techy people can stop reading here.</p>
<p><strong>Do&#8217;s</strong></p>
<ul>
<li>Simple html = simple dom = faster rendering.</li>
<li>Use yslow and dommonster to identify issues.</li>
<li>JS scripts at the bottom of your pages.</li>
<li>Keep external assets to a minimum.</li>
<li>Set content expiry time frames correctly in the headers.</li>
<li>Yuicompressor + gzip to reduce .js .css .html size x5 smaller <a href="http://refresh-sf.com/yui/" target="_blank">http://refresh-sf.com/yui/</a>.</li>
<li>Merge .js files into a single .min.js file see <a href="http://getsprockets.org/" target="_blank">http://getsprockets.org/</a> and <a href="http://dailyjs.com/2010/01/27/pro-practices-1/" target="_blank">http://dailyjs.com/2010/01/27/pro-practices-1/</a>.</li>
<li>Reduce image size with http://smush.it 30% size reduction no loss.</li>
<li>Far future cache-headers (resolve updates issues by replacing with new file names).</li>
<li>Multiple asset hosts &#8211; assets on separate hosts than HTML allows for concurrent downloading.</li>
<li>Focus on whats important to users, webapps(gmail) focus on executing where as static pages (google search) focus on loading/rendering real fast.</li>
<li>Only HTML and maybe analytics JS should be load in subsequent loads rest should be cached.</li>
</ul>
<p><strong>Dont&#8217;s</strong></p>
<ul>
<li>JS in the middle of a page will block the execution of the whole page until its finished running, and can leave the user looking at an unrendered page.</li>
<li>404 requests really hurt.</li>
<li>Avoid slow external assets \ 3rd party libs.</li>
<li>Watch out for weight of frameworks, try microframeworks instead see underscore.js and emile.js.</li>
<li>Frameworks and widgets are frowned upon but if you have to script.aculo.us and jquery were mentioned</li>
</ul>
<p><strong>Interesting</strong></p>
<ul>
<li>Cool animation on how browser renders components does multiple sweeps over content to do the layout see <a href="http://en.boose.gr/gecko-reflow/">http://en.boose.gr/gecko-reflow/</a>.</li>
<li>Other open tabs can affect your sites performance or crash the whole browser.</li>
<li>-webkit-transforms are fast and very cool 2/3d stuff at 30-60fps for used on iphone and some android phones similar in jquery animation would be 5-10 fps.</li>
<li>If it takes long in real life to do something you could get away with a bit of lag, moving between forms and search should be instant.</li>
<li>Too many page assets becomes a performance hit conciser 3-5 streams for asset downloads being the default in a browser and will require cueing if more assest are required.</li>
<li>Dynatrace http://ajax.dynatrace.com/ IE tool for testing page loading.</li>
</ul>
<p>&#8220;Silence of more than four seconds become embarrassing because that implies a breaking of the thread of communication.&#8221; RB Miller(1968)</p>
<p>And if the conversations is still not happening after all the tuning, then its time to fake it!</p>
<ul>
<li>Perception is critical.</li>
<li>Tell people how long it will take &#8211; visual indication of progress can increase patience up to 5x.</li>
<li>User should feel like they are heard and their input is being considered.</li>
<li>Instant reaction even if action takes longer for action to complete.</li>
<li>Never leave the user bored.</li>
</ul>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://blog.williegoosen.com/2010/02/performance-bootcamp/&amp;t=Performance+Bootcamp" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=RT%3A%40willie_g+Performance+Bootcamp+-+http://tinyurl.com/26kbf75&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://blog.williegoosen.com/2010/02/performance-bootcamp/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://blog.williegoosen.com/2010/02/performance-bootcamp/&amp;title=Performance+Bootcamp" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-netvibes">
			<a href="http://www.netvibes.com/share?title=Performance+Bootcamp&amp;url=http://blog.williegoosen.com/2010/02/performance-bootcamp/" rel="nofollow" class="external" title="Submit this to Netvibes">Submit this to Netvibes</a>
		</li>
		<li class="shr-posterous">
			<a href="http://posterous.com/share?linkto=http://blog.williegoosen.com/2010/02/performance-bootcamp/&amp;title=Performance+Bootcamp&amp;selection=%20Presenters%20%3A%0D%0A%0D%0A%09Amy%20Hoy%20%40amyhoy%0D%0A%09Thomas%20Fuchs%20%40thomasfuchs%0D%0A%0D%0ASites%3A%0D%0A%0D%0A%09%20http%3A%2F%2Fmir.aculo.us%0D%0A%09%20http%3A%2F%2Fslash7.com%2Fabout%2F%0D%0A%0D%0A%20photo%20credit%3A%C2%A0Chris%20Shiflett%0D%0A%0D%0AA%20quote%20from%20Thomas%20Fuchs%27%20site...%20%22You%27re%20using%20my%20work%20every%20day%2C%20even%20if%20you%27re%20not%20aware%20of%20it%22.%20Thomas%20is%20the%20author%20of%20http%3A%2F%2Fscript" rel="nofollow" class="external" title="Post this to Posterous">Post this to Posterous</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://blog.williegoosen.com/2010/02/performance-bootcamp/&amp;title=Performance+Bootcamp" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://blog.williegoosen.com/2010/02/performance-bootcamp/&amp;title=Performance+Bootcamp" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-mail">
			<a href="mailto:?subject=%22Performance%20Bootcamp%22&amp;body=Link: http://blog.williegoosen.com/2010/02/performance-bootcamp/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A %20Presenters%20%3A%0D%0A%0D%0A%09Amy%20Hoy%20%40amyhoy%0D%0A%09Thomas%20Fuchs%20%40thomasfuchs%0D%0A%0D%0ASites%3A%0D%0A%0D%0A%09%20http%3A%2F%2Fmir.aculo.us%0D%0A%09%20http%3A%2F%2Fslash7.com%2Fabout%2F%0D%0A%0D%0A%20photo%20credit%3A%C2%A0Chris%20Shiflett%0D%0A%0D%0AA%20quote%20from%20Thomas%20Fuchs%27%20site...%20%22You%27re%20using%20my%20work%20every%20day%2C%20even%20if%20you%27re%20not%20aware%20of%20it%22.%20Thomas%20is%20the%20author%20of%20http%3A%2F%2Fscript" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://blog.williegoosen.com/2010/02/performance-bootcamp/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://blog.williegoosen.com/2010/02/performance-bootcamp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introduction to jQuery and jQuery UI</title>
		<link>http://blog.williegoosen.com/2010/02/jquery-intro/</link>
		<comments>http://blog.williegoosen.com/2010/02/jquery-intro/#comments</comments>
		<pubDate>Sun, 21 Feb 2010 02:24:27 +0000</pubDate>
		<dc:creator>Willie Goosen</dc:creator>
				<category><![CDATA[Webstock2010]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[day2]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[workshop]]></category>

		<guid isPermaLink="false">http://blog.williegoosen.com/?p=98</guid>
		<description><![CDATA[My respect only grew for John as he did a 3 hr live demo of jQuery  and jQuery UI, with only one minor hiccup which he fixed within minutes..... a true JavaScript ninja.]]></description>
			<content:encoded><![CDATA[<p><a title="John Resig" href="http://www.flickr.com/photos/87703047@N00/2537762643/" target="_blank"><img class="alignright" style="border: 0pt none;" src="http://farm3.static.flickr.com/2231/2537762643_818233102d_m.jpg" border="0" alt="John Resig" width="240" height="160" /></a> <small><a title="drewm" href="http://www.flickr.com/photos/87703047@N00/2537762643/" target="_blank"></a></small>Presenter: John Resig<br />
Twitter: <a href="www.twitter.com/jeresig" target="_blank">@jeresig</a><br />
Site: <a href="http://ejohn.org/" target="_blank">ejohn.org</a><br />
Lead Developer and creator of jQuery, and a JavaScript Evangelist at Mozilla</p>
<p><small><a title="Attribution-NonCommercial License" href="http://creativecommons.org/licenses/by-nc/2.0/" target="_blank"><img src="../wp-content/plugins/photo-dropper/images/cc.png" border="0" alt="Creative Commons License" width="16" height="16" align="absmiddle" /></a> <a href="http://www.photodropper.com/photos/" target="_blank">photo</a> credit: <a title="drewm" href="http://www.flickr.com/photos/87703047@N00/2537762643/" target="_blank">drewm</a></small></p>
<p>Second day of workshops at Webstock 2010 was first time i had a look at jQuery, i have had a play with script.aculo.us and mootools in the past, so jumped at the thought of a workshop with a creator of such a frame work, as they make JavaScript sooo much more bearable, especially for someone with a Java background.</p>
<p>My respect only grew for John as he did a 3 hr live demo of jQuery  and jQuery UI, with only one minor hiccup which he fixed within minutes&#8230;.. a true JavaScript ninja.</p>
<p>In essence jQuery it looked as simple as this:</p>
<ul>
<li>Find object</li>
<li>Do something with the set</li>
</ul>
<p>Couple of bits that got me interested:</p>
<ul>
<li>Lots of people agree jQuery is awesome, its used by Microsoft, Google, Mozilla, IBM, Amazon, HP, Intel, Ruby on Rails, WordPress, Django</li>
<li>Selectors uses CSS like syntax</li>
<li>Good looking, easy to read documentation that has recently been reviewed</li>
<li>Fails gracefully, if you layer jQuery over and already functioning website</li>
<li>Big community and plugins(use with care)</li>
</ul>
<p>My rough notes on the presentation on the points that stood out to me, for the full presentation see the link at the bottom of the page.</p>
<p><strong>Finding things<br />
</strong></p>
<ul>
<li>CSS Selectors with some special selectors like :first :hidden etc</li>
<li>jQuery Methods</li>
<li>Both are methods used for traversing the DOM</li>
<li>Can be chained together  <a href="http://api.jquery.com/jQuery"><br />
</a></p>
<pre>$("div").hide().css("color","blue");</pre>
</li>
</ul>
<ul>
<li>Chained Traversal ( pretty cool )
<pre>$("button")
  .parent().css("border", "3px solid red")
  .siblings().css("border", "3px solid green");</pre>
</li>
</ul>
<p><strong>Doing Things</strong></p>
<ul>
<li>Manipulation</li>
<li>Event handling(normally user actions)</li>
<li>Live Events for current and future elements(ajax)</li>
<li>Effects .animate ( pretty nice )</li>
<li>Helpers to load xml,  json or html with ajax</li>
</ul>
<p><strong>Plugins</strong></p>
<ul>
<li>Strong Community</li>
<li>Recomended ones were
<ul>
<li> jQuery UI</li>
<li>Validation</li>
<li>Ajax Form</li>
<li>jqGrid</li>
<li>jQuery Tools</li>
</ul>
</li>
<li>Themeroller &#8211; mechanism to style jQuery UI</li>
</ul>
<p><strong>Tips</strong></p>
<ul>
<li>Write in HTML first then layer jQuery over the top</li>
<li>Apply your jQuery to a fully functional site, this way if JavaScript fails your site is still fully functional</li>
<li>&#8220;return false&#8221; Disables the default old behavior</li>
<li>With server-side code, add conditional to check it the &#8220;ajax&#8221; header is present, if so strip off header and footer code and only display id=content, to reduce server traffic</li>
<li>Look at using jquery off CDN minimised and gziped optimized &#8211; on Google&#8217;s CDN, if its good enough</li>
</ul>
<p>As a round up I would definitely consider using jQuery on my next project, as with all frameworks im sure there will be some limitations as this kind of ease of use doesn&#8217;t come without trade-offs.</p>
<p>The full presentation can be found here <a href="http://ejohn.org/apps/workshop/intro/">http://ejohn.org/apps/workshop/intro/</a></p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://blog.williegoosen.com/2010/02/jquery-intro/&amp;t=Introduction+to+jQuery+and+jQuery+UI" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=RT%3A%40willie_g+Introduction+to+jQuery+and+jQuery+UI+-+http://tinyurl.com/24tpyu7&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://blog.williegoosen.com/2010/02/jquery-intro/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://blog.williegoosen.com/2010/02/jquery-intro/&amp;title=Introduction+to+jQuery+and+jQuery+UI" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-netvibes">
			<a href="http://www.netvibes.com/share?title=Introduction+to+jQuery+and+jQuery+UI&amp;url=http://blog.williegoosen.com/2010/02/jquery-intro/" rel="nofollow" class="external" title="Submit this to Netvibes">Submit this to Netvibes</a>
		</li>
		<li class="shr-posterous">
			<a href="http://posterous.com/share?linkto=http://blog.williegoosen.com/2010/02/jquery-intro/&amp;title=Introduction+to+jQuery+and+jQuery+UI&amp;selection=My%20respect%20only%20grew%20for%20John%20as%20he%20did%20a%203%20hr%20live%20demo%20of%20jQuery%20%20and%20jQuery%20UI%2C%20with%20only%20one%20minor%20hiccup%20which%20he%20fixed%20within%20minutes.....%20a%20true%20JavaScript%20ninja." rel="nofollow" class="external" title="Post this to Posterous">Post this to Posterous</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://blog.williegoosen.com/2010/02/jquery-intro/&amp;title=Introduction+to+jQuery+and+jQuery+UI" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://blog.williegoosen.com/2010/02/jquery-intro/&amp;title=Introduction+to+jQuery+and+jQuery+UI" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-mail">
			<a href="mailto:?subject=%22Introduction%20to%20jQuery%20and%20jQuery%20UI%22&amp;body=Link: http://blog.williegoosen.com/2010/02/jquery-intro/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A My%20respect%20only%20grew%20for%20John%20as%20he%20did%20a%203%20hr%20live%20demo%20of%20jQuery%20%20and%20jQuery%20UI%2C%20with%20only%20one%20minor%20hiccup%20which%20he%20fixed%20within%20minutes.....%20a%20true%20JavaScript%20ninja." rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://blog.williegoosen.com/2010/02/jquery-intro/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://blog.williegoosen.com/2010/02/jquery-intro/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Evolution of Web Security</title>
		<link>http://blog.williegoosen.com/2010/02/evolution-of-web-security/</link>
		<comments>http://blog.williegoosen.com/2010/02/evolution-of-web-security/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 09:27:12 +0000</pubDate>
		<dc:creator>Willie Goosen</dc:creator>
				<category><![CDATA[Webstock2010]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[day1]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[workshop]]></category>

		<guid isPermaLink="false">http://blog.williegoosen.com/?p=87</guid>
		<description><![CDATA[Presenter : Chris Shiflett Twitter: @shiflett Site: shiflet.org / analog.coop photo credit: Chris Shiflett Security is always a hot topic, and in today&#8217;s world it&#8217;s always good to have a fresh look at web security on the first day of the Webstock 2010 workshops. Chris Shiflett is currently part of a web development co-op Analog and [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Chris Shiflett" href="http://www.flickr.com/photos/shiflett/3639618407/" target="_blank"><img class="alignright" style="border: 0pt none;" src="http://farm4.static.flickr.com/3406/3639618407_c6e7cfbf66_m.jpg" border="0" alt="Chris Shiflett" width="240" height="160" /></a><br />
Presenter : Chris Shiflett<br />
Twitter: @shiflett<br />
Site: <a href="http://shiflet.org/" target="_blank">shiflet.org</a> / <a href="http://analog.coop" target="_blank">analog.coop</a></p>
<p><small><a title="Attribution-NonCommercial-NoDerivs License" href="http://creativecommons.org/licenses/by-nc-nd/2.0/" target="_blank"><img src="../wp-content/plugins/photo-dropper/images/cc.png" border="0" alt="Creative Commons License" width="16" height="16" align="absmiddle" /></a> photo credit: <a title="Link to Chris Shiflett's photostream" rel="dc:creator cc:attributionURL" href="http://www.flickr.com/photos/shiflett/" target="_blank"><strong>Chris Shiflett</strong></a></small></p>
<p>Security is always a hot topic, and in today&#8217;s world it&#8217;s always good to have a fresh look at web security on the first day of the Webstock 2010 workshops. Chris Shiflett is currently part of a web development co-op Analog and has a keen interest in PHP and web security.  He is also a webstock veteran and author of <a href="http://shiflett.org/books" target="_blank">Essential PHP Security</a>.</p>
<p>At risk of missing any of the important points, please check out the full presentation at the end of my notes.</p>
<p>Fundamentals</p>
<ul>
<li>Defense in depth, use all safeguards available, use <a href="http://www.owasp.org" target="_blank">owasp.org</a>.</li>
<li>Least privilege, lock the system down as much as possible.</li>
<li>Least complicated, complexity allows mistakes to happen.</li>
</ul>
<p>Golden Rule, ok more like a golden acronym &#8211; FI EO</p>
<ul>
<li>Filter input &#8211; ensure any inputs are what you expect and no more.</li>
<li>Escape output &#8211; ensure data going out is not misinterpreted.</li>
</ul>
<p>List of common exploits</p>
<ul>
<li><strong>Cross-Site Scripting</strong> &#8211; an XSS flaw occurs whenever an application takes user supplied data and sends it to a web browser without first validating or encoding that content. XSS allows attackers to execute script in the victim&#8217;s browser which can hijack user sessions, deface web sites and possibly introduce worms.</li>
<li><strong>Cross-Site Request Forgeries</strong> &#8211; a CSRF attack forces a logged-on victim&#8217;s browser to send a pre-authenticated request to a vulnerable web application, which then forces the victim&#8217;s browser to perform a hostile action to the benefit of the attacker. CSRF can be as powerful as the web application that it attacks.</li>
<li><strong>SQL Injection</strong> &#8211; injection occurs when user-supplied data is sent to an interpreter as part of a command or query. The attacker&#8217;s hostile data tricks the interpreter into executing unintended commands or changing data.</li>
<li><strong>Session Fixation</strong> &#8211; attempt to exploit the vulnerability of a system which allows one person to fixate (set) another person&#8217;s session identifier.</li>
<li><strong>Session Hijacking &#8211; </strong>session tokens are often not properly protected. Attackers compromise passwords, keys, or authentication tokens to assume other users&#8217; identities.</li>
<li><strong>Email Injection</strong> &#8211; similar to SQL injection.</li>
<li><strong>Remote Code Injection</strong> &#8211; similar to SQL injection.</li>
</ul>
<p>In a lot of  these attacks it is rather trivial to get the basics right by following the golden acronym FIEO, but all posible defences should be used for defence in depth.  The full presentaion goes into the ways to &#8220;Stop It&#8221;. Also do your own research to pick up on latest trends.  A rather concise resource was mentioned by @nzrob see www.owasp.org <a href="http://www.owasp.org/index.php/Top_10_2007" target="_self">Top 10 vulnerabilities</a> which gives large amount option to protect your application.</p>
<p>The full presentation can be found here,  <a href="http://shiflett.org/evolution-of-web-security.pdf" target="_blank">http://shiflett.org/evolution-of-web-security.pdf</a>.</p>
<p>Tips</p>
<ul>
<li>Specify character encoding and make sure it is consistant from front to back end.</li>
<li>Get users to reconfirm password for important actions like changing password.</li>
<li>Good understanding of http and session management helps with prevention.</li>
<li>Keep source code short and concise.  Complexity breeds flaws.</li>
<li>Human peception can also lead to perceved security breaches &#8211; see <a href="http://blogoscoped.com/archive/2008-01-28-n59.html" target="_self">SmugMug example</a>.</li>
<li>Host static files on separate subdomain to limit session token exposure.</li>
</ul>
<p>Final thoughs were around trending of user behaviour to identifying abnormalities and maybe using something like <a href="https://panopticlick.eff.or/" target="_blank">https://</a><a href="https://panopticlick.eff.or/" target="_blank">panopticlick</a><a href="https://panopticlick.eff.org/" target="_blank">.eff.org/</a> for uniquely identifying users from bots.</p>
<p>Chris did an excellent job in presenting the information in an easily ledgible format and good concrete examples. I am gutted I prioritised another talk over his &#8220;Security-Centered Design&#8221; talk at the Webstock conference but I&#8217;ll be sure to catch up on it when the video is available and post the link here if I remember.</p>
<p>Be Safe :)</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://blog.williegoosen.com/2010/02/evolution-of-web-security/&amp;t=Evolution+of+Web+Security" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=RT%3A%40willie_g+Evolution+of+Web+Security+-+http://tinyurl.com/2bj4rel&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://blog.williegoosen.com/2010/02/evolution-of-web-security/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://blog.williegoosen.com/2010/02/evolution-of-web-security/&amp;title=Evolution+of+Web+Security" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-netvibes">
			<a href="http://www.netvibes.com/share?title=Evolution+of+Web+Security&amp;url=http://blog.williegoosen.com/2010/02/evolution-of-web-security/" rel="nofollow" class="external" title="Submit this to Netvibes">Submit this to Netvibes</a>
		</li>
		<li class="shr-posterous">
			<a href="http://posterous.com/share?linkto=http://blog.williegoosen.com/2010/02/evolution-of-web-security/&amp;title=Evolution+of+Web+Security&amp;selection=%0D%0APresenter%20%3A%20Chris%20Shiflett%0D%0ATwitter%3A%20%40shiflett%0D%0ASite%3A%20shiflet.org%20%2F%20analog.coop%0D%0A%0D%0A%20photo%20credit%3A%20Chris%20Shiflett%0D%0A%0D%0ASecurity%20is%20always%20a%20hot%20topic%2C%20and%20in%20today%27s%20world%20it%27s%20always%20good%20to%20have%20a%20fresh%20look%20at%20web%20security%20on%20the%20first%20day%20of%20the%20Webstock%202010%20workshops.%20Chris%20Shiflett%20is%20currentl" rel="nofollow" class="external" title="Post this to Posterous">Post this to Posterous</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://blog.williegoosen.com/2010/02/evolution-of-web-security/&amp;title=Evolution+of+Web+Security" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://blog.williegoosen.com/2010/02/evolution-of-web-security/&amp;title=Evolution+of+Web+Security" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-mail">
			<a href="mailto:?subject=%22Evolution%20of%20Web%20Security%22&amp;body=Link: http://blog.williegoosen.com/2010/02/evolution-of-web-security/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A %0D%0APresenter%20%3A%20Chris%20Shiflett%0D%0ATwitter%3A%20%40shiflett%0D%0ASite%3A%20shiflet.org%20%2F%20analog.coop%0D%0A%0D%0A%20photo%20credit%3A%20Chris%20Shiflett%0D%0A%0D%0ASecurity%20is%20always%20a%20hot%20topic%2C%20and%20in%20today%27s%20world%20it%27s%20always%20good%20to%20have%20a%20fresh%20look%20at%20web%20security%20on%20the%20first%20day%20of%20the%20Webstock%202010%20workshops.%20Chris%20Shiflett%20is%20currentl" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://blog.williegoosen.com/2010/02/evolution-of-web-security/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://blog.williegoosen.com/2010/02/evolution-of-web-security/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
