<?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>theCSSdiv</title>
	<atom:link href="http://www.thecssdiv.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thecssdiv.co.uk</link>
	<description>thinking, drinking and websites from Ross Bruniges</description>
	<lastBuildDate>Wed, 14 Mar 2012 08:48:31 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4-alpha-19948</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Retiring drumbeat.org &#8211; our plans</title>
		<link>http://www.thecssdiv.co.uk/2012/02/retiring-the-drumbeat-website/</link>
		<comments>http://www.thecssdiv.co.uk/2012/02/retiring-the-drumbeat-website/#comments</comments>
		<pubDate>Fri, 17 Feb 2012 11:27:41 +0000</pubDate>
		<dc:creator>Ross Bruniges</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[drumbeat]]></category>
		<category><![CDATA[make.mozilla.org]]></category>
		<category><![CDATA[mozilla]]></category>

		<guid isPermaLink="false">http://www.thecssdiv.co.uk/?p=192</guid>
		<description><![CDATA[Drumbeat.org in it&#8217;s current state has been live for a year and has helped support the Drumbeat community that: has produced numerous projects that have since become core components to the Mozilla Foundations work efforts, helped us run international events in Barcalona and London, lead numerous community events worldwide. We wanted a platform where people [...]]]></description>
			<content:encoded><![CDATA[<p>Drumbeat.org in it&#8217;s current state has been live for a year and has helped support the Drumbeat community that:</p>
<ul>
<li>has produced numerous projects that have since become core components to the Mozilla Foundations work efforts,</li>
<li>helped us run international events in Barcalona and <a href="http://www.mozillafestival.org">London</a>,</li>
<li>lead numerous community events worldwide.</li>
</ul>
<p>We wanted a platform where people could let people could tell the world about their web projects, have the community help them out and have them made better. We received loads, with some of my favourites being:</p>
<ul>
<li><a href="http://mozillapopcorn.org/">popcorn.js</a></li>
<li><a href="https://drumbeat.org/en-US/journalism/">the Mozilla Journalism project</a></li>
<li><a href="http://hackasaurus.org/en-US/">Hackasaurus</a></li>
<li><a href="http://www.universalsubtitles.org/en/">Universal Subtitles</a></li>
<li><a href="http://www.newsocialweb.org/">The New Social Web Project</a></li>
<li><a href="http://www.booki.cc/">Social Book Publishing</a></li>
<li><a href="http://p2pu.org/en/">Peer to Peer University</a></li>
<li><a href="http://http://openbadges.org/">the Open Badges Initiative</a></li>
</ul>
<p>These are all amazing projects but you might have noticed one thing &#8211; they&#8217;ve all now outgrown what we provide at drumbeat.org.<span id="more-192"></span> They have their own websites and twitter streams with some having their code posted on github for community involvement.</p>
<p>Now we have these tools and sites we&#8217;re looking at moving our focus from being a community of web builders to a community of web makers who will use the tools that we have previously made. We think it&#8217;s time that we let it relax in a warm chair by the fire with its&#8217; coat and slippers and remember the good old days and gaze lovingly at what the things that it has created go on to become. Last year when we carried out a survey on <a href="http://openmatt.wordpress.com/2011/08/25/the-evolution-of-drumbeat-org/">how we could evolve drumbeat.org</a> and discovered the two main reasons we found on why people were signing up was to hear about what Mozilla are up to and to contribute to an existing drumbeat project. Thankfully our plans for drumbeat.org will allow people to continue doing that.</p>
<h2>So what does this mean for you?</h2>
<p>On March 1st we will be turning off new site registrations, new projects and existing project content updates; recently the number of new projects coming in has dwindled and project updates have contained large amounts of spam anyways.</p>
<p>drumbeat.org will remain live but will be used to direct people to our site for web makers (URL to be decided) and provide access to the now external websites of our major drumbeat projects. It will be used to tell the story of what it created and what Mozilla are doing with those creations.</p>
<h3>What about my project page?</h3>
<p>On March 1st your project page will be turned off and redirect users to the homepage (drumbeat.org). If you let us know we can set up redirects from your project page to your new web presence so to not loose any SEO-juice you&#8217;ve built up. Please contact us or leave a comment below and provide the drumbeat URL and where you would like us to point that to. Using Hackasaurus as an example that would be https://drumbeat.org/en-US/projects/hackasaurus/ and http://hackasaurus.org</p>
<h3>What can I do to keep my project alive?</h3>
<p>As mentioned above if you&#8217;ve already set up an external project website it will be fine. Up to March 1st you may also use our site messaging system to message your followers of your plans. If not then there are numerous online tools that are free and can be used to keep people informed.</p>
<h4>Project updates</h4>
<p>Set up a project blog! There are many free options out there, some we would recommend are <a href="https://www.tumblr.com/">tumblr</a>, <a href="http://www.blogger.com/">blogger</a> or <a href="http://wordpress.com/">wordpress</a>.</p>
<p>If you&#8217;re looking for more short-hand options then creating a twitter feed, status.net stream or a hash tag for people to message at should be able to be integrated into your chosen blog easily.</p>
<h4>Code updates</h4>
<p>If you want people to be able to download, use, alter and potentially improve your code and you haven&#8217;t already then we recommend getting into an online code repository. This also comes with the benefit of your code being stored in the cloud and therefore safe from laptop failures.</p>
<p>The most popular is probably <a href="http://github.com">github.com</a> but if you&#8217;re familiar with version control systems other than git there are <a href="http://code.google.com/hosting/">google code</a> (with gives you Subversion, Mercurial AND git) and <a href="https://bitbucket.org/">bitbucket</a> (which gives you git and Mercurial).</p>
<h2>So what does this mean for drumbeat?</h2>
<p>We feel that drumbeat has been a huge success, the projects that it has made, the community that it has created and the people that it has put as into contact with. In 2012 we&#8217;re so excited to see how this community can help us more forward and make the next generation of web makers. You can read more about our our future plans over at <a href="http://openmatt.wordpress.com/2012/02/16/byebyedrumbeat/">http://openmatt.wordpress.com/2012/02/16/byebyedrumbeat/</a></p>
<p>We will also be blogging more about where we will be taking the Mozilla Foundation online presence. We&#8217;ll be doing it in iterations and in the open so feedback is always welcome. Keep your eyes posted on <a href="http://planet.drumbeat.org">our RSS feeds</a> for further information.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thecssdiv.co.uk/2012/02/retiring-the-drumbeat-website/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Come work with me for the Mozilla Foundation</title>
		<link>http://www.thecssdiv.co.uk/2012/02/come-work-with-me-at-mozilla/</link>
		<comments>http://www.thecssdiv.co.uk/2012/02/come-work-with-me-at-mozilla/#comments</comments>
		<pubDate>Wed, 08 Feb 2012 14:30:45 +0000</pubDate>
		<dc:creator>Ross Bruniges</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[drumbeat]]></category>
		<category><![CDATA[job]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[teamross]]></category>
		<category><![CDATA[webmakers]]></category>

		<guid isPermaLink="false">http://www.thecssdiv.co.uk/?p=208</guid>
		<description><![CDATA[We&#8217;re looking to recruit this week (14th March 2012) &#8211; watch this space! At the moment I&#8217;m the only developer on my team at Mozilla, in fact I&#8217;m the only person in my team. I am &#8220;Team Ross&#8221;. Thankfully in March this will change, we&#8217;ve already hired a designer and we&#8217;re looking to add at [...]]]></description>
			<content:encoded><![CDATA[<div class="alert">
<p>We&#8217;re looking to recruit this week (14th March 2012) &#8211; watch this space!</p>
</div>
<p>At the moment I&#8217;m the only developer on my team at Mozilla, in fact I&#8217;m the only person in my team. I am &#8220;Team Ross&#8221;. Thankfully in March this will change, we&#8217;ve already hired a designer and we&#8217;re looking to add at least another developer to work on supporting the Mozilla Foundations work, events and communities.</p>
<p>If that&#8217;s already got you wanting to apply then please have a read of the job spec and get your application in &#8211; <a href="http://careers.mozilla.org/en-US/position/oIkXVfwE">http://careers.mozilla.org/en-US/position/oIkXVfwE</a>.<span id="more-208"></span> If you&#8217;re looking for more information please read on&#8230;</p>
<h2>What will I be working on?</h2>
<p>Short answer &#8211; lots!</p>
<p>Detailed answer &#8211; just this week we&#8217;ve launched a the new <a href="http://www.mozillaopennews.org/">Knight-Mozilla Open News partnership</a>. The site right now is pretty basic and there are tons of improvements that need to be made. We want to do something around our events platform, including getting an events platform; you can read more about that through the thoughts of <a href="http://engagingopenly.wordpress.com/2012/02/06/the-infrastructure-for-self-organizing/">Ben Simon on the infrastructure of self-organising</a> and <a href="http://michellethorne.cc/2012/02/feature-requests-for-webmakers/">Michelle Thorne on potential feature requests for web makers</a> (trying to crowd source what things we might initially need). Mozilla are running a partnership with the National Science Foundation, Geni, Ignite and the White House called <a href="http://www.mozillaignite.org">Mozilla Ignite</a> so there is work to be done on that site as we build out the feature set there. Then there is the <a href="http://www.mozillafestival.org">Mozilla Festival</a>&#8230; So yeah, we&#8217;ll make sure you don&#8217;t get bored.</p>
<div class="photo_frame" style="width: 100%;"><img class="alignnone size-full wp-image-219" src="http://www.thecssdiv.co.uk/wp-content/uploads/2012/02/392019020_5b8714d802_z.jpg" alt="" width="640" height="480" />&#8220;Team Ross&#8221; as it currently stands (or sits) &#8211; come make it a proper team!</div>
<p>Of course all of your work will happen in the open &#8211; your code will be on github, our dev servers will have public access as will our bug tracking systems and wikis. I&#8217;ve found this a really exciting part of the job so far and it&#8217;s certainly not as scarey as you think it might be &#8211; people when commenting on your code are helping you make it better and there is a global knowledge base to tap into.</p>
<h2>What technology will I be using?</h2>
<p>Mozilla are a web company so everything will be based around HTML5. Server side we&#8217;ve got projects running on Django (using <a href="https://github.com/mozilla/playdoh">Mozilla Playdoh</a>), nodejs and wordpress. We&#8217;re not tied to one technology and decide on a project by project basis what is the best fit in terms of what&#8217;s most useful for the client and can produce the best experience for our end users.</p>
<h2>Where can I work from?</h2>
<p>Mozilla have, or soon will have offices in 9 locations worldwide but also are very open to remote working. So where ever you are reading this from if you think you&#8217;re a good fit then please apply!. London will have it&#8217;s office opening in the next month or so, I&#8217;ve been in, it&#8217;s looking great and has a good location in Covent Garden; it will also come with it&#8217;s own bar!</p>
<h2>So where do I apply?</h2>
<p>As mentioned above you can apply (don&#8217;t forget to include a github/bitbucket/googlecode URL) at <a href="http://careers.mozilla.org/en-US/position/oIkXVfwE">http://careers.mozilla.org/en-US/position/oIkXVfwE</a></p>
<p>Any further questions then please ask in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thecssdiv.co.uk/2012/02/come-work-with-me-at-mozilla/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Writing jQuery/javascript that doesn&#8217;t suck</title>
		<link>http://www.thecssdiv.co.uk/2011/07/london-jquery/</link>
		<comments>http://www.thecssdiv.co.uk/2011/07/london-jquery/#comments</comments>
		<pubDate>Sun, 03 Jul 2011 15:06:13 +0000</pubDate>
		<dc:creator>Ross Bruniges</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[accessibility]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[performance]]></category>

		<guid isPermaLink="false">http://www.thecssdiv.co.uk/?p=165</guid>
		<description><![CDATA[At the start of the year I was asked by the London Web Standards Group to do a talk at their January meet-up and after a bit of thinking I decided to talk about writing jQuery/javaScript that doesn&#8217;t suck; I&#8217;ve had to clean up plenty of badly written code in the past and I therefore [...]]]></description>
			<content:encoded><![CDATA[<p>At the start of the year I was asked by the London Web Standards Group to do a talk at their January meet-up and after a bit of thinking I decided to talk about writing <del datetime="2011-07-03T14:15:15+00:00">jQuery</del>/javaScript that doesn&#8217;t suck; I&#8217;ve had to clean up plenty of badly written code in the past and I therefore thought I had some decent things to say. It must have gone well as the London jQuery user group asked me to give it again in their July met-up (which is on the 4th July). I included reference to plenty of external sites in the talk and they can ALL be found in this post (and a few extra bonuses).<span id="more-165"></span></p>
<h2>The slides</h2>
<div style="width:425px" id="__ss_8494444"><strong style="display:block;margin:12px 0 4px"><a href="http://www.slideshare.net/rossbruniges/writing-jquery-that-doesnt-suck-london-jquery" title="Writing jQuery that doesn&#39;t suck - London jQuery">Writing jQuery that doesn&#39;t suck &#8211; London jQuery</a></strong><object id="__sse8494444" width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=london-jquery-110703094724-phpapp02&#038;stripped_title=writing-jquery-that-doesnt-suck-london-jquery&#038;userName=rossbruniges" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed name="__sse8494444" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=london-jquery-110703094724-phpapp02&#038;stripped_title=writing-jquery-that-doesnt-suck-london-jquery&#038;userName=rossbruniges" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object>
<div style="padding:5px 0 12px">View more <a href="http://www.slideshare.net/">presentations</a> from <a href="http://www.slideshare.net/rossbruniges">Ross  Bruniges</a>.</div>
</div>
<h2>The links</h2>
<h3>Organisation</h3>
<ul>
<li><a href="http://www.jslint.com/lint.html">JS Lint &#8211; the official site</a></li>
<li><a href="http://www.crockfordfacts.com">Crockford Facts</a></li>
<li><a href="http://addyosmani.com/blog/essentialjsdesignpatterns">Essential JavaScript and jQuery design patterns &#8211; FREE BOOK</a></li>
<li><a href="http://requirejs.org/">requireJS</a></li>
<li><a href="http://stackoverflow.com/questions/184618">A thread on amsuing thread on &#8216;best code comments&#8217;</a></li>
<li><a href="http://code.google.com/p/jsdoc-toolkit">JSDocToolkit &#8211; project page on Google code</a></li>
<li><a href="http://24ways.org/2010/documentation-driven-design-for-apis">Documentation-Driven Design for APIs by Frances Berriman on 24ways.org</a></li>
</ul>
<p>I like running jsLint as part of my build process, and it&#8217;s actually pretty easy. If you&#8217;re using the <a href="https://github.com/paulirish/html5-boilerplate">HTML5 boiler plate</a> it&#8217;s built into that and if you&#8217;re a git user you can install which runs it against your JS on each include and warns you of any problems &#8211; <a href="http://jish.github.com/pre-commit/">git pre-commit</a>.</p>
<h3>Performance</h3>
<ul>
<li><a href="http://www.slideshare.net/danwrong/java-script-fu-media-london">The Mysteries of JavaScript Fu by Dan Webb</a></li>
<li><a href="http://brandonaaron.net/blog/2010/03/4/event-delegation-with-jquery">Event delegation with jQuery by Brandon Aron</a></li>
<li><a href="http://dev.opera.com/articles/view/efficient-javascript/?page=all">Writing Efficient JavaScript by Mark &#8216;Tarquin&#8217; Wilton-Jones on dev.Opera</a></li>
</ul>
<h3>Don&#8217;t forget your accessibility</h3>
<ul>
<li><a href="http://juicystudio.com/article/making-ajax-work-with-screen-readers.php">Making AJAX work with screen-readers</a></li>
<li><a href="https://developer.mozilla.org/en/AJAX/WAI_ARIA_Live_Regions">WAI ARIA live regions on Mozilla Developer Center</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.thecssdiv.co.uk/2011/07/london-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Another weird IE6 (and 7 and 8) bug</title>
		<link>http://www.thecssdiv.co.uk/2009/08/another-weird-ie6-bug/</link>
		<comments>http://www.thecssdiv.co.uk/2009/08/another-weird-ie6-bug/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 20:56:15 +0000</pubDate>
		<dc:creator>Ross Bruniges</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[browsers]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[fail]]></category>
		<category><![CDATA[ie]]></category>

		<guid isPermaLink="false">http://www.thecssdiv.co.uk/?p=223</guid>
		<description><![CDATA[This morning I saw an email going around the LBi mailing list from one of the application developers mentioning some weird behavior noticed in IE. In a nutshell a load of CSS modules had been concatenated into one file leading to quite a large number of selectors being used. He found that after a certain [...]]]></description>
			<content:encoded><![CDATA[<p>This morning I saw an email going around the <a href="http://www.lbi.com/en/London/">LBi</a> mailing list from one of the application developers mentioning some weird behavior noticed in IE.</p>
<p>In a nutshell a load of CSS modules had been concatenated into one file leading to quite a large number of selectors being used. He found that after a certain point (4096 selectors) IE would ignore everything after it. I had never heard of this before and from reading some comments I got on Twitter a few other folk hadn’t either…<span id="more-223"></span></p>
<p>My boss found this online which would hint to it being this being true &#8211; <a href=http://msdn.microsoft.com/en-us/library/aa358796%28VS.85%29.aspx">http://msdn.microsoft.com/en-us/library/aa358796%28VS.85%29.aspx</a> but this being a DOM method I wanted to make sure the same went for the CSS parser.</p>
<p>After a chat with <a href="http://www.kryogenix.org/">Stuart Langridge</a> (who provided me with a useful python script to make the file) I have a use case and confirm this bug does indeed exist in IE &#8211; even in IE8.</p>
<p>Scroll down to the bottom of this iFrame (make sure you’re using IE) and you’ll see the final 5 ‘OK’s are in the default of black and not red as they should be styled! If you’re not a fan of iFrames it’s also availiable as an external link &#8211; <a href="http://thecssdiv.co.uk/downloads/crazy_selector_test.html">IE 4096 selector usecase</a>.</p>
<p><iframe src="http://www.thecssdiv.co.uk/downloads/crazy_selector_test.html" width="400" height="400"></iframe></p>
<p>In additional news IE will also bork when presented with more than 32 @import statements (<a href="http://www.agum.com/web/2008/03/11/internet-explorer-issue-maximum-of-32-css-import/">http://www.agum.com/web/2008/03/11/internet-explorer-issue-maximum-of-32-css-import/</a>) so in many ways if you have a shed load of CSS you’re damned if you do and damned if you don’t!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thecssdiv.co.uk/2009/08/another-weird-ie6-bug/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ask Ross anything!</title>
		<link>http://www.thecssdiv.co.uk/2009/03/ask-ross-anything/</link>
		<comments>http://www.thecssdiv.co.uk/2009/03/ask-ross-anything/#comments</comments>
		<pubDate>Sat, 28 Mar 2009 08:29:20 +0000</pubDate>
		<dc:creator>Ross Bruniges</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[barcamplondon6]]></category>
		<category><![CDATA[drunk]]></category>
		<category><![CDATA[hung-over]]></category>

		<guid isPermaLink="false">http://www.thecssdiv.co.uk/?p=138</guid>
		<description><![CDATA[Yesterday night I had planned to come home and write up some slides on something interesting for todays BarCamp at The Guardian offices. Instead of that I came home, noticed that there was beer in the fridge and decided it would be a good idea to drink them all. Therefore I have no slides, no [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday night I had planned to come home and write up some slides on something interesting for todays BarCamp at The Guardian offices. Instead of that I came home, noticed that there was beer in the fridge and decided it would be a good idea to drink them all.</p>
<p>Therefore I have no slides, no idea for an interesting talk and have decided that instead of me talking about stuff that I deem interesting I am going to throw those kind of choices out to you guys instead. In a blatant rip off of talks hosted by Norm! in recent BarCamps I will be taking questions from the audience (assuming I get one) on anything and everything (with hopefully amusing results).</p>
<p>If you didn&#8217;t manage to get a ticket but would still like me to answer your questions (I&#8217;m hoping that the talks may be recorded or videoed in some way) then please leave questions in the comments below (indeed this could be a good place for anyone at BarCamp or not to leave me their contributions&#8230;</p>
<p>Lets see how this one pans out&#8230;..</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thecssdiv.co.uk/2009/03/ask-ross-anything/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Simple jQuery concat/expando plug-in</title>
		<link>http://www.thecssdiv.co.uk/2008/11/simple-jquery-expando-plug-in/</link>
		<comments>http://www.thecssdiv.co.uk/2008/11/simple-jquery-expando-plug-in/#comments</comments>
		<pubDate>Sun, 02 Nov 2008 21:11:33 +0000</pubDate>
		<dc:creator>Ross Bruniges</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://www.thecssdiv.co.uk/?p=134</guid>
		<description><![CDATA[One of the &#8216;cool&#8217; little features I managed to shoe-horn into capitalradio.co.uk London Guide was a nice little jQuery plug-in that I called the &#8220;expando of win&#8221;. It&#8217;s a fairly simple piece of functionality but I&#8217;ve done it in a way that I&#8217;ve yet to see and is hopefully going to be a bit friendlier [...]]]></description>
			<content:encoded><![CDATA[<p>One of the &#8216;cool&#8217; little features I managed to shoe-horn into <a href="http://www.capitalradio.co.uk/london-guide/">capitalradio.co.uk London Guide</a> was a nice little jQuery plug-in that I called the &#8220;expando of win&#8221;. It&#8217;s a fairly simple piece of functionality but I&#8217;ve done it in a way that I&#8217;ve yet to see and is hopefully going to be a bit friendlier on performance by keeping DOM manipulations to a minimum. It can be seen live in a the wild on event pages such as  the fairly bizarre sounding <a href="http://www.capitalradio.co.uk/london-guide/events/body-worlds-and-the-mirror-of-time/28014/">Body Worlds and the Mirror of Time</a> held at the o2.<span id="more-134"></span></p>
<p>Opposed to hiding all links that you don&#8217;t want to be shown (this seems to be done in most example I found using inline styles of display: none) it adds a class to each of the items you want to be initially shown. Then to perform the show/hide a class on the containing list is toggled and CSS performs all the rest of the magic. So showing 100 new list items is all done via 1 single class change and not through adding inline styles to 100 list items; this just seems far more efficient to me.</p>
<p>You need do a little bit of work to get it working once you&#8217;ve included the JS on your page and instantiated it but nothing more than adding the following CSS to your stylesheet (you&#8217;ll of course have to change class names to suit your site)</p>
<pre><code>
/* note that the class 'truncate' gets added to the parent element through code */
.js .truncated li { display: none; }
.js .truncated li.displayed { display: list-item; }
</code></pre>
<p>You can then call the plug-in like so:</p>
<pre><code>
$('.big_list').truncate();
</code></pre>
<p>Written using the <a href="http://www.learningjquery.com/2007/10/a-plugin-development-pattern ">jQuery plug-in development pattern</a> it&#8217;s fully extendable so it you want to show more than the default number of list items you can dom equally if you want to provide additional text alongside the &#8216;show all&#8217; link you can do by providing over-rides in the form of a option object like so:</p>
<pre><code>
$('.big_list').truncate({
   init_shown: 20,
   displayed_class: 'show_me',
   link_suffix: 'winful events'
});
</code></pre>
<p>Chaining is also supported so you can call additional jQuery methods following it.</p>
<p>Currently only list elements (ordered and un-ordered lists) are supported (as I didn&#8217;t want to over-engineer things as for the use cases I had it didn&#8217;t need to do anything else) and if you try and call it on anything else if breaks out and returns itself so any potential chain isn&#8217;t broken. The same occurs when you try to use it on something with less list items than the initial value to show.</p>
<p>This is clearly not the best plug-in ever written but I think it&#8217;s nice and I like the fact that it goes around things in a different way to most other solutions I have seen. There are probably tons of improvements that could be made (and if you do please let me know so I can update my code here). I also love the way that jQuery allows for these kinda things to be written, and that fact that they are so damn easy to create.</p>
<p>Here is <a href="http://thecssdiv.co.uk/downloads/js/jquery.expando.js">the expando plug-in to download</a>, please use, change, distribute as you wish; just if you do use it let me know and don&#8217;t change the attribution to say you did it :></p>
]]></content:encoded>
			<wfw:commentRss>http://www.thecssdiv.co.uk/2008/11/simple-jquery-expando-plug-in/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Going cash free</title>
		<link>http://www.thecssdiv.co.uk/2008/10/going-cash-free/</link>
		<comments>http://www.thecssdiv.co.uk/2008/10/going-cash-free/#comments</comments>
		<pubDate>Sun, 05 Oct 2008 19:22:11 +0000</pubDate>
		<dc:creator>Ross Bruniges</dc:creator>
				<category><![CDATA[Rants]]></category>
		<category><![CDATA[experiment]]></category>
		<category><![CDATA[likely stupid]]></category>
		<category><![CDATA[money]]></category>

		<guid isPermaLink="false">http://www.thecssdiv.co.uk/?p=133</guid>
		<description><![CDATA[One thing that has been annoying me recently is the amount of cash that I seem to be spending on crap; mainly food crap. I&#8217;m generally fairly good with money and my standard technique is to take out a woad of cash at the start of the week (Saturday) and not spend anymore than that [...]]]></description>
			<content:encoded><![CDATA[<p>One thing that has been annoying me recently is the amount of cash that I seem to be spending on crap; mainly food crap. I&#8217;m generally fairly good with money and my standard technique is to take out a woad of cash at the start of the week (Saturday) and not spend anymore than that until the next Saturday (unless it&#8217;s been planned). Generally this seemed to work out fairly well &#8211; I hardly ever over spent but equally hardly ever had money left over to carry into the next week. As I didn&#8217;t plan to carry money over it wasn&#8217;t really a problem.</p>
<p>Since starting my new job (and getting a bit of a pay increase) I found that I could give myself a bit of extra spends each week. A few more pints down the pub, an extra side order with a meal out or an excursion somewhere could now all be mine. But as it happens I didn&#8217;t actually do or need any of this so the money started burning a whole in my wallet and was spent on crappy lunch meals that I don&#8217;t really need; money spending fail if you would.</p>
<p>The plan &#8211; to not take money out of the bank and use my cards for my planned spending. Will my urges mean that I buy crap on card? I really hope not but we will see. Equally has the price of living just increased and I actually needed that extra money??</p>
<p>Who knows, but I&#8217;ll be interested to see.</p>
<p>Thanks for reading a fairly pointless and uninteresting post (assuming anyone actually has).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thecssdiv.co.uk/2008/10/going-cash-free/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>barcamplondon5 slides &#8211; enrich the web with comments</title>
		<link>http://www.thecssdiv.co.uk/2008/09/barcamplondon5-slides/</link>
		<comments>http://www.thecssdiv.co.uk/2008/09/barcamplondon5-slides/#comments</comments>
		<pubDate>Tue, 30 Sep 2008 22:29:52 +0000</pubDate>
		<dc:creator>Ross Bruniges</dc:creator>
				<category><![CDATA[Rants]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[articles]]></category>
		<category><![CDATA[barcamplondon5]]></category>
		<category><![CDATA[best practise]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[teaching]]></category>

		<guid isPermaLink="false">http://www.thecssdiv.co.uk/?p=132</guid>
		<description><![CDATA[So yesterday I posted my slides from barcamplondon5 to slideshare and as cool as they indeed are I&#8217;m pretty sure that the serious points are easily missed without some supporting information &#8211; which is why I am writing this post right now. The main point I was trying to get across is that the web [...]]]></description>
			<content:encoded><![CDATA[<p>So yesterday I posted my <a href="http://www.slideshare.net/rossbruniges/enrich-the-web-with-comments-presentation">slides from barcamplondon5</a> to slideshare and as cool as they indeed are I&#8217;m pretty sure that the serious points are easily missed without some supporting information &#8211; which is why I am writing this post right now.</p>
<p>The main point I was trying to get across is that the web contains a lot of great content; but it also contains a lot of shit. To ensure that the good stuff gets the credit and exposure that it deserves and likewise so that the bad stuff gets highlighted as bad I believe that we must all comment on the bad that we see so that less experienced people don&#8217;t just blindly copy, paste and use it in their projects. This is even more of a necessity if the article is being promoted as a good one to read either through a good Google ranking or being linked to from a large magazine site or mailing list.<span id="more-132"></span></p>
<div id="__ss_625205" style="width: 425px; text-align: left;"><a style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" title="Enrich the web with comments" href="http://www.slideshare.net/rossbruniges/enrich-the-web-with-comments-presentation?type=powerpoint">Enrich the web with comments</a><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="src" value="http://static.slideshare.net/swf/ssplayer2.swf?doc=barcamp5-1222718104349759-8&amp;stripped_title=enrich-the-web-with-comments-presentation" /><embed type="application/x-shockwave-flash" width="425" height="355" src="http://static.slideshare.net/swf/ssplayer2.swf?doc=barcamp5-1222718104349759-8&amp;stripped_title=enrich-the-web-with-comments-presentation" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<div style="font-size:11px;font-family:tahoma,arial;height:26px;padding-top:2px;">View SlideShare <a style="text-decoration:underline;" title="View Enrich the web with comments on SlideShare" href="http://www.slideshare.net/rossbruniges/enrich-the-web-with-comments-presentation?type=powerpoint">presentation</a> or <a style="text-decoration:underline;" href="http://www.slideshare.net/upload?type=powerpoint">Upload</a> your own. (tags: <a style="text-decoration:underline;" href="http://slideshare.net/tag/rossbruniges">rossbruniges</a> <a style="text-decoration:underline;" href="http://slideshare.net/tag/commenting">commenting</a>)</div>
</div>
<p>I outlined a number of rules that I think should be followed when making comments:</p>
<ol>
<li>outlined and explain best practices that aren&#8217;t outlined in the article; if required link to a blog post supporting your points. If we can send people from a bad article to a good one I see this as a win</li>
<li>be nice!</li>
<li>no personal attacks</li>
<li>be constructive (which is basically a repeat of rule number 1)</li>
<li>focus on getting the basics right first &#8211; we need to ensure people are learning this correctly</li>
<li>don&#8217;t target and abuse source code &#8211; there may be reasons that it sucks balls (generally <acronym title="What You See Is What You Get">WYSISWYG</acronym>)</li>
</ol>
<p>Along with this I also included a number of examples of the kind of articles that I was &#8220;targeting&#8221;. These can be found at delicious under the tag &#8220;<a href="http://delicious.com/rossbruniges/article-fail">article-fail&#8221;</a> and I&#8217;ll soon be including these on the homepage here. If you want to follow my findings you can subscribe to the <a href="http://feeds.delicious.com/v2/rss/rossbruniges/article-fail">article-fail RSS feed</a> for instant updates! It currently contains things such as CSS techniques that don&#8217;t allow for text resizing and a JS technique that inserts a table into the mark-up because writing tables into your mark-up is stupid!</p>
<p>I hope that people start up with my &#8220;movement for web quality&#8221; &#8211; it should be a fairly painless process but the good that it can lead to should be massive (like in &#8220;jungle is massive&#8221;). It&#8217;d be great to think that people can start using the web as a legitimate learning tool again and not learn bad practice (the stuff we learn is generally the stuff that stays with us for life).</p>
<p>I have other plans for how this can be improved but that&#8217;s another post&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thecssdiv.co.uk/2008/09/barcamplondon5-slides/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>new CSS for IE6 (kinda)</title>
		<link>http://www.thecssdiv.co.uk/2008/09/new-css-for-ie6-kinda/</link>
		<comments>http://www.thecssdiv.co.uk/2008/09/new-css-for-ie6-kinda/#comments</comments>
		<pubDate>Mon, 29 Sep 2008 21:05:21 +0000</pubDate>
		<dc:creator>Ross Bruniges</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[cross browser]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[web dev]]></category>
		<category><![CDATA[wow]]></category>

		<guid isPermaLink="false">http://www.thecssdiv.co.uk/?p=131</guid>
		<description><![CDATA[When attending a &#8220;future of CSS&#8221; talk at barcamplondon5 I pointed out that a few of the things mentioned as being availiable in IE7 where actually available in IE6. Much amazement was created and people asked why these things weren&#8217;t that well known. To be honest I don&#8217;t know why but in an effort to [...]]]></description>
			<content:encoded><![CDATA[<p>When attending a &#8220;future of CSS&#8221; talk at barcamplondon5 I pointed out that a few of the things mentioned as being availiable in IE7 where actually available in IE6. Much amazement was created and people asked why these things weren&#8217;t that well known. To be honest I don&#8217;t know why but in an effort to raise better awareness I am writing this blog post!<span id="more-131"></span></p>
<p>So with no further or do here are a couple of CSS properties you may never have thought of using due to IE6 compatibility problems&#8230;.</p>
<h3>:first-letter</h3>
<p>Do you think that creating book style initial caps on your paragraphs? Well :first-letter is the thing for you! It&#8217;s a doddle to add this style to any paragraph, div, span &#8211; anything containing text!</p>
<pre><code>
p {
  font-weight: bold;
  font-size: 85%;
}
p:first-letter {
  font-style: italic;
  color: red;
  font-size: 100%;
}
</code></pre>
<h3>:first-line</h3>
<p>Very similar to :first-letter (thought probably not as useful) :first-line will render the first line of a block element different to the rest. Expand and contract the size of the element and the first-line changes to fit the text &#8211; can lead to style inconsistencies if you want specific words styled differently mind&#8230;</p>
<pre><code>
p {
  font-size: 85%;
}
p:first-line {
  font-size: 100%;
  font-weight: bold;
}
</code></pre>
<p>So there you go &#8211; if you were unaware of these properties here are a couple more strings to add to your CSS bow &#8211; and they really do work in IE6 (I promise :>)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thecssdiv.co.uk/2008/09/new-css-for-ie6-kinda/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>barcamplondon5 = win</title>
		<link>http://www.thecssdiv.co.uk/2008/09/barcamplondon5-win/</link>
		<comments>http://www.thecssdiv.co.uk/2008/09/barcamplondon5-win/#comments</comments>
		<pubDate>Mon, 29 Sep 2008 20:38:23 +0000</pubDate>
		<dc:creator>Ross Bruniges</dc:creator>
				<category><![CDATA[Rants]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[barcamplondon5]]></category>
		<category><![CDATA[conference]]></category>
		<category><![CDATA[rant]]></category>

		<guid isPermaLink="false">http://www.thecssdiv.co.uk/?p=130</guid>
		<description><![CDATA[My weekend was spent in Richmond at eBay&#8217;s awesome offices at barcamplondon5. It was nice to attend a barcamp again after organising the last one in London and always fun to present (my talk notes and slides will be up soon). After the general (and totally) unrequired hoo-hah from people regarding the &#8216;keynote&#8217; I hoped [...]]]></description>
			<content:encoded><![CDATA[<p>My weekend was spent in Richmond at eBay&#8217;s awesome offices at barcamplondon5. It was nice to attend a barcamp again after organising the last one in London and always fun to present (my talk notes and slides will be up soon).</p>
<p>After the general (and totally) unrequired hoo-hah from people regarding the &#8216;keynote&#8217; I hoped that people would come down, enjoy the offices for what it is (a totally awesome space), stay the full weekend, do some good presentations and make it yet another great barcamp and I was pleased on most of these accounts though the fact that there were over 50 no shows really pissed me off &#8211; these were people who didn&#8217;t even tell eBay they weren&#8217;t coming &#8211; I think for the next barcamp something should be done to ensure this doesn&#8217;t happen (I have ideas)<span id="more-130"></span> on punishments for the naughty attendees. I was also a bit annoyed with the drop out rate after day two (I always talk on day two so they missed out) but we can&#8217;t stop this from happening I guess.</p>
<p>While I know people like hearing about non-tech stuff at barcamps I like hearing interesting work related things so was happy to attend talks like <a href="http://www.slideshare.net/ginader/accessible-javascript-using-frameworks-barcamp-london-5-presentation/">Accessible JavaScript with Frameworks</a> from <a href="http://ginader.de">Dirk</a> and <del>Maintainable CSS</del><a href="2008/Sep/28/css-systems/">CSS Systems</a> from <a href="http://natbat.net/">Natalie Downe</a>. I equally couldn&#8217;t resist going to ew collegue Tomasz&#8217;s talk on &#8220;The Ancient Art of Stabbing People&#8221; &#8211; which was one of the most fantastically bizarre talks ever held at a barcamp I would think.</p>
<p>As I&#8217;ve said in my opening slides my talk notes are coming soon but I didn&#8217;t want to wait ages to get up my write up of a really well run event &#8211; so big congratulations to the eBay team of Dees, Johnny and Cian. Looking forward to barcamplondon6 &#8211; wherever that may be&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thecssdiv.co.uk/2008/09/barcamplondon5-win/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

