<?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>Lokesh Dhakar &#187; Development</title>
	<atom:link href="http://www.lokeshdhakar.com/category/development/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lokeshdhakar.com</link>
	<description></description>
	<lastBuildDate>Wed, 01 Jul 2009 21:26:22 +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>Biking DC Mashup</title>
		<link>http://www.lokeshdhakar.com/2008/11/24/dc-bike-lanes-google-map/</link>
		<comments>http://www.lokeshdhakar.com/2008/11/24/dc-bike-lanes-google-map/#comments</comments>
		<pubDate>Mon, 24 Nov 2008 21:20:27 +0000</pubDate>
		<dc:creator>Lokesh</dc:creator>
				<category><![CDATA[Biking]]></category>
		<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://www.lokeshdhakar.com/?p=88</guid>
		<description><![CDATA[DC&#8217;s bike lanes and routes drawn on a Google Map. Inspired by the Apps for Democracy contest which encouraged developers to build useful applications from DC&#8217;s Data Catalog, I built a Google Maps mashup which displays bike lanes and signed bike routes. Use the map as a starting to point to plan your ride through [...]]]></description>
			<content:encoded><![CDATA[<h2>DC&#8217;s bike lanes and routes drawn on a Google Map.</h2>
<p><a href="http://lokeshdhakar.com/projects/bikingdc/"><img src="/images/2008/bikingdc_thumb.png" alt="BikingDC Google Map Mashup" class="diagram-alt" /></a><span class="dropcap">I</span>nspired by the <a href="http://www.appsfordemocracy.org/">Apps for Democracy</a> contest which encouraged developers to build useful applications from <a href="http://data.octo.dc.gov/">DC&#8217;s Data Catalog</a>, I built a Google Maps mashup which displays bike lanes and signed bike routes. Use the map as a starting to point to plan your ride through the city.</p>
<div class="files">
<div class="file map">
<a href="http://www.lokeshdhakar.com/projects/bikingdc/">View the Biking DC Map</a><br />
<span class="specs">Google Map</span>
</div>
</div>

<h3>Tech Notes</h3>
<p>The &#8216;<a href="http://dcatlas.dcgis.dc.gov/catalog/info.asp?info=2315&#038;pagesize=10&#038;page=1&#038;search_type=search_by_keyword&#038;keyword=bicycle">Bicycle Lane</a>&#8216; and &#8216;<a href="http://dcatlas.dcgis.dc.gov/catalog/info.asp?info=1483&#038;pagesize=10&#038;page=1&#038;search_type=search_by_keyword&#038;keyword=bike">Signed Bike Route</a>&#8216; KMZ files from the DC Data Catalog are used. Data is pulled daily. Before displaying, the files are filtered to display only existing bike lanes.</p>]]></content:encoded>
			<wfw:commentRss>http://www.lokeshdhakar.com/2008/11/24/dc-bike-lanes-google-map/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Lightbox 2.03 released</title>
		<link>http://www.lokeshdhakar.com/2007/04/16/lightbox-203-released/</link>
		<comments>http://www.lokeshdhakar.com/2007/04/16/lightbox-203-released/#comments</comments>
		<pubDate>Mon, 16 Apr 2007 18:51:05 +0000</pubDate>
		<dc:creator>Lokesh</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Lightbox]]></category>

		<guid isPermaLink="false">http://www.lokeshdhakar.com/2007/04/16/lightbox-203-released/</guid>
		<description><![CDATA[A minor update with a couple of bug fixes, a handful of tweaks, and some small niceties added. After much delay comes the new update. I&#8217;m not extending the functionality at this point but making some tweaks and fixing some of the small bugs. You can grab it from the main page: Lightbox JS v2.03 [...]]]></description>
			<content:encoded><![CDATA[<h2>A minor update with a couple of bug fixes, a handful of tweaks, and some small niceties added.</h2>

<p><span class="dropcap">A</span>fter much delay comes the new update. I&#8217;m not extending the functionality at this point but making some tweaks and fixing some of the small bugs. You can grab it from the main page: <a href="http://www.lokeshdhakar.com/projects/lightbox2/">Lightbox JS v2.03</a></p>

<ul>
	<li>Object and Embed elements hidden on Lightbox activation, prevents Flash movies and other media from appearing <em>through</em> Lightbox image</li>
	<li>extended keyboard support (arrow keys, esc key)</li>
	<li>added toggle in Javascript file to turn off animations</li>
	<li>imagemap support</li>
	<li>valid CSS</li>
	<li>clicking anywhere in &#8216;shadow&#8217; closes Lightbox</li>
	<li>removeDuplicates function works with incontiguous items</li>
	<li>a bit of code cleanup</li>
</ul>

<p>Like I said, minor stuff.</p>]]></content:encoded>
			<wfw:commentRss>http://www.lokeshdhakar.com/2007/04/16/lightbox-203-released/feed/</wfw:commentRss>
		<slash:comments>172</slash:comments>
		</item>
		<item>
		<title>Messageboard</title>
		<link>http://www.lokeshdhakar.com/2006/05/19/messageboard/</link>
		<comments>http://www.lokeshdhakar.com/2006/05/19/messageboard/#comments</comments>
		<pubDate>Fri, 19 May 2006 15:17:13 +0000</pubDate>
		<dc:creator>Lokesh</dc:creator>
				<category><![CDATA[Lightbox]]></category>
		<category><![CDATA[huddletogether.com]]></category>

		<guid isPermaLink="false">http://www.lokeshdhakar.com/2006/05/19/messageboard/</guid>
		<description><![CDATA[634 comments into the game, a new forum is up for discussing modifications, features, troubleshooting, etc. related to the Lightbox scripts. You can find it here: Huddletogether.com Forum Better late then never? The forum is run with Vanilla, a web forum created by the team over at Lussumo.]]></description>
			<content:encoded><![CDATA[<p>634 comments into the game, a new forum is up for discussing modifications, features, troubleshooting, etc. related to the Lightbox scripts. You can find it here:
<a href="http://www.lokeshdhakar.com/forum/">Huddletogether.com Forum</a></p>

<p>Better late then never? The forum is run with <a href="http://getvanilla.com/">Vanilla</a>, a web forum  created by the team over at <a href="http://lussumo.com/">Lussumo</a>.</p>


]]></content:encoded>
			<wfw:commentRss>http://www.lokeshdhakar.com/2006/05/19/messageboard/feed/</wfw:commentRss>
		<slash:comments>44</slash:comments>
		</item>
		<item>
		<title>Lightbox JS v2.0</title>
		<link>http://www.lokeshdhakar.com/2006/03/29/lightbox-v20/</link>
		<comments>http://www.lokeshdhakar.com/2006/03/29/lightbox-v20/#comments</comments>
		<pubDate>Wed, 29 Mar 2006 09:05:32 +0000</pubDate>
		<dc:creator>Lokesh</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Lightbox]]></category>

		<guid isPermaLink="false">http://www.lokeshdhakar.com/2006/03/29/lightbox-v20/</guid>
		<description><![CDATA[Lightbox JS v2.0 &#8211; Go check it out! Use the comments on this entry to post and discuss bugs, questions, and troubleshoot the script. I&#8217;ll be in and out of here. 3/31/06: I&#8217;ve Released a minor update v2.01 that fixes IE6 centering and smooths out the kinks in the resize transition. If you&#8217;re looking for [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.lokeshdhakar.com/projects/lightbox2/">Lightbox JS v2.0</a> &#8211; Go check it out!</p>

<p>Use the comments on this entry to post and discuss bugs, questions, and troubleshoot the script. I&#8217;ll be in and out of here.</p>

<p><strong>3/31/06</strong>: I&#8217;ve Released a minor update <a href="http://www.lokeshdhakar.com/projects/lightbox2/#download">v2.01</a> that fixes IE6 centering and smooths out the kinks in the resize transition. If you&#8217;re looking for multi-line captions or keyboard navigation, expect another minor update this weekend.</p>

<p><strong>4/4/06</strong>: New update <a href="http://www.lokeshdhakar.com/projects/lightbox2/#download">v2.02</a> that keeps the layout in check when captions extend to multiple lines. Keyboard navigation has also been enabled. Lastly, the addition of a variable in the lightbox.js configuration section to control the speed of the resize transitions.</p>]]></content:encoded>
			<wfw:commentRss>http://www.lokeshdhakar.com/2006/03/29/lightbox-v20/feed/</wfw:commentRss>
		<slash:comments>911</slash:comments>
		</item>
		<item>
		<title>Squeaky Clean CSS</title>
		<link>http://www.lokeshdhakar.com/2006/02/16/practical-web-development-tips/</link>
		<comments>http://www.lokeshdhakar.com/2006/02/16/practical-web-development-tips/#comments</comments>
		<pubDate>Fri, 17 Feb 2006 03:10:52 +0000</pubDate>
		<dc:creator>Lokesh</dc:creator>
				<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://www.lokeshdhakar.com/?p=57</guid>
		<description><![CDATA[I thought I&#8217;d share a little bit of what I&#8217;ve learned from noodling around with stylesheets these past few years. Here are some basic organizational practices I try to follow. ( Much of this might be old hat for you, and if so, just think of it as a refresher. I run into enough messy [...]]]></description>
			<content:encoded><![CDATA[<p>I thought I&#8217;d share a little bit of what I&#8217;ve learned from noodling around with stylesheets these past few years. Here are some basic organizational practices I try to follow. ( Much of this might be old hat for you, and if so, just think of it as a refresher. I run into enough messy stylesheets that I thought this might be of some interest. )</p>

<span id="more-57"></span>
<h3>Grouping Your Styles</h3>
<p>Group your styles into categories (ex. layout, typography, forms, so on) and visually seperate them in your css file. A title and table of contents doesn&#8217;t hurt either:</p>
<pre><code>/*
	HuddleTogether.com Screen Styles

	Table of Contents:
		layout
		typography
		forms
*/

/* layout
----------------------------------------------- */

/* typography
----------------------------------------------- */

/* forms
----------------------------------------------- */</code></pre>
<h3>Choosing Your Categories</h3>
<p>Even though I do have some common practices, I don&#8217;t have a &#8216;template&#8217; for how to breakdown styles into categories.</p>

<p>For starters, I almost always have <em>layout</em> and <em>typography</em> categories. With <em>typography</em> defining the sitewide look and feel. Depending on the complexity, I may break out the <em>table</em> and <em>form</em> styles into their own categories.</p>

<p>Next, I address the physical sections of the page with their own categories: <em>header</em>, <em>sidebar</em>, <em>content</em>, and <em>footer</em> for example. Lastly, I collect the page and  content section specific styles and place them in their own category (and sometimes subcategories).</p>

<h3>Importing Stylesheets</h3>
<p>Another method is to categorize the styles and place them in seperate CSS files which are all imported by one main CSS file. I find this method good in theory but it can lead to overlapping styles, <a href="http://www.stuffandnonsense.co.uk/archives/css_specificity_wars.html">specification issues</a>, and general confusion if you&#8217;re not very careful:</p>

<pre><code>@import url("layout.css");
@import url("typography.css");
@import url("forms.css");</code></pre>
<h3>Linebreaks and Indenting</h3>
<p>When styling multiple tags, ids, or classes with common attributes, display each on its own line. Also, indent closing braces. Both these actions keep the left column clean so you can quickly skim your stylesheet:</p>
<pre><code>h2,
h3,
h4 {
	font-weight: bold;
	padding-bottom: 1.5em;
	}
h5 {
	font-weight: normal;
	font-size: 1.5em;
	padding-bottom: 0;
	}</code></pre>
<h3>Descendant Selectors</h3>
<p>Use descendant selectors generously and consistently to keep your styles grouped neatly and <a href="http://www.stuffandnonsense.co.uk/archives/css_specificity_wars.html">CSS specificity</a> in check:</p>
<pre><code>#header {}
#header .logo {}
#header .logo img {}
</code></pre>
<h3>Quick Disable</h3>
<p>A trick I use all the time to temporarily disable a style attribute involves simply adding an &#8216;x&#8217; in front of the attribute name. It&#8217;s safer then cutting and quicker then commenting out:</p>
<pre><code>#footer{
	border-top: 1px solid #e5e5e5;
	xborder-bottom: 1px solid #e5e5e5;
	}</code></pre>
<h3>Keeping Track of Divs</h3>
<p>Quick HTML pointer. For div tags that stay open for a number of lines, add a small comment after the closing tag about the opening div&#8217;s id or class:</p>
<pre><code>&lt;div id="content"&gt;
	&lt;h2&gt;&lt;/h2&gt;
	&lt;p&gt;&lt;/p&gt;
	&lt;p&gt;&lt;/p&gt;
	&lt;p&gt;&lt;/p&gt;
	&lt;p&gt;&lt;/p&gt;
&lt;/div&gt;&lt;!-- end #content--&gt;</code></pre>]]></content:encoded>
			<wfw:commentRss>http://www.lokeshdhakar.com/2006/02/16/practical-web-development-tips/feed/</wfw:commentRss>
		<slash:comments>102</slash:comments>
		</item>
		<item>
		<title>Lightbox != Lightshow</title>
		<link>http://www.lokeshdhakar.com/2006/01/17/lightshow-js-note/</link>
		<comments>http://www.lokeshdhakar.com/2006/01/17/lightshow-js-note/#comments</comments>
		<pubDate>Tue, 17 Jan 2006 13:05:45 +0000</pubDate>
		<dc:creator>Lokesh</dc:creator>
				<category><![CDATA[Lightbox]]></category>

		<guid isPermaLink="false">http://www.lokeshdhakar.com/2006/01/17/lightshow-js-note/</guid>
		<description><![CDATA[Lightshow JS script is still in the works, just taking a bit longer then expected. It is similar to the Lightbox JS script with a few bonus features helpful for viewing photos in &#8216;sets.&#8217; More details to come. For now I&#8217;d recommend you browse the recent comments and take a look at others who have [...]]]></description>
			<content:encoded><![CDATA[<p>Lightshow JS script is still in the works, just taking a bit longer then expected.  It is similar to the Lightbox JS script with a few bonus features helpful for viewing photos in &#8216;sets.&#8217; More details to come. For now I&#8217;d recommend you browse the recent comments and take a look at others who have extended the script with &#8216;gallery&#8217; functionality.</p>

<p>Question: Anyone have an idea why my RSS feed appears &#8216;broken&#8217; at the moment? I&#8217;m using WordPress 1.5. hmm&#8230; </p>]]></content:encoded>
			<wfw:commentRss>http://www.lokeshdhakar.com/2006/01/17/lightshow-js-note/feed/</wfw:commentRss>
		<slash:comments>150</slash:comments>
		</item>
		<item>
		<title>Lightbox JS &#8211; update</title>
		<link>http://www.lokeshdhakar.com/2006/01/10/lightbox-js-update/</link>
		<comments>http://www.lokeshdhakar.com/2006/01/10/lightbox-js-update/#comments</comments>
		<pubDate>Wed, 11 Jan 2006 03:45:34 +0000</pubDate>
		<dc:creator>Lokesh</dc:creator>
				<category><![CDATA[Lightbox]]></category>

		<guid isPermaLink="false">http://www.lokeshdhakar.com/2006/01/10/lightbox-js-update/</guid>
		<description><![CDATA[Now with captions! I&#8217;ve also fixed a couple of minor issues involving extra-large images falling out of the viewport and a small gap in the overlay in Firefox. Also, it&#8217;s more keyboard friendly now. Thanks for all the comments and suggestions. Grab the latest files here: Lightbox JS Just a teaser, but per many requests [...]]]></description>
			<content:encoded><![CDATA[<p>Now with captions! I&#8217;ve also fixed a couple of minor issues involving extra-large images falling out of the viewport and a small gap in the overlay in Firefox. Also, it&#8217;s more keyboard friendly now. Thanks for all the comments and suggestions.</p>

<p>Grab the latest files here: <a href="/projects/lightbox/">Lightbox JS</a></p>

<p>Just a teaser, but per many requests for extended functionality, I am working on a complimentary &#8216;photo-gallery&#8217; script. It will include forward/back navigation, preloading, and much more. Check back next week.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lokeshdhakar.com/2006/01/10/lightbox-js-update/feed/</wfw:commentRss>
		<slash:comments>500</slash:comments>
		</item>
		<item>
		<title>Lightbox JS</title>
		<link>http://www.lokeshdhakar.com/2006/01/02/lightbox-js/</link>
		<comments>http://www.lokeshdhakar.com/2006/01/02/lightbox-js/#comments</comments>
		<pubDate>Tue, 03 Jan 2006 02:32:51 +0000</pubDate>
		<dc:creator>Lokesh</dc:creator>
				<category><![CDATA[Lightbox]]></category>

		<guid isPermaLink="false">http://www.lokeshdhakar.com/2006/01/02/lightbox-js/</guid>
		<description><![CDATA[I wrote a simple script for bloggers and other friendly folk to overlay images on their site called Lightbox JS. I&#8217;ve recieved lots of nice words and feedback, all of which is soaked up and appreciated.]]></description>
			<content:encoded><![CDATA[<p>I wrote a simple script for bloggers and other friendly folk to overlay images on their site called <a href="/projects/lightbox/">Lightbox JS</a>. I&#8217;ve recieved lots of nice words and feedback, all of which is soaked up and appreciated.</p>]]></content:encoded>
			<wfw:commentRss>http://www.lokeshdhakar.com/2006/01/02/lightbox-js/feed/</wfw:commentRss>
		<slash:comments>246</slash:comments>
		</item>
	</channel>
</rss>
