<?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>Web 3.0, 6 Bladed Razors, 7 Minute Abs &#187; Flickr</title>
	<atom:link href="http://www.zachleat.com/web/tag/flickr/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zachleat.com/web</link>
	<description></description>
	<lastBuildDate>Mon, 06 Feb 2012 17:09:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Double Whammy: OpenID and Microformats</title>
		<link>http://www.zachleat.com/web/double-whammy-openid-and-microformats/</link>
		<comments>http://www.zachleat.com/web/double-whammy-openid-and-microformats/#comments</comments>
		<pubDate>Fri, 23 May 2008 06:13:01 +0000</pubDate>
		<dc:creator>Zach Leatherman</dc:creator>
				<category><![CDATA[Application Design]]></category>
		<category><![CDATA[Interface Design]]></category>
		<category><![CDATA[Flickr]]></category>
		<category><![CDATA[hCard]]></category>
		<category><![CDATA[microformat]]></category>
		<category><![CDATA[OpenID]]></category>
		<category><![CDATA[Technorati]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://www.zachleat.com/web/?p=141</guid>
		<description><![CDATA[<a href="http://www.ownyouridentity.com/2008/04/30/get-satisfactions-nice-import-profile-feature/">Own your Identity had a great post today</a> detailing a great feature on the signup form of the <a href="http://getsatisfaction.com/people/new">Get Satisfaction</a> site.

They rely on the fact that sites like Twitter and Flickr publish an <a href="http://microformats.org/wiki/hcard">hCard microformat</a> for all of their users publicly on their website.]]></description>
			<content:encoded><![CDATA[<h3>Microformategery</h3>
<p><a href="http://www.ownyouridentity.com/2008/04/30/get-satisfactions-nice-import-profile-feature/">Own your Identity had a great post today</a> detailing a great feature on the signup form of the <a href="http://getsatisfaction.com/people/new">Get Satisfaction</a> site.</p>
<p>They rely on the fact that sites like Twitter and Flickr publish an <a href="http://microformats.org/wiki/hcard">hCard microformat</a> for all of their users publicly on their website.  If you go to <a href="http://twitter.com/zachleat/">my twitter page</a> and view the source, you&#8217;ll find the following code available to anyone (without authentication):</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;address&gt;
   &lt;ul class=&quot;about vcard entry-author&quot;&gt;
      &lt;li&gt;&lt;span class=&quot;label&quot;&gt;Name&lt;/span&gt; &lt;span class=&quot;fn&quot;&gt;Zach Leatherman&lt;/span&gt;&lt;/li&gt;
      &lt;li&gt;&lt;span class=&quot;label&quot;&gt;Location&lt;/span&gt; &lt;span class=&quot;adr&quot;&gt;Omaha, NE USA&lt;/span&gt;&lt;/li&gt;
      &lt;li&gt;&lt;span class=&quot;label&quot;&gt;Web&lt;/span&gt; &lt;a href=&quot;http://www.zachleat.com/&quot; class=&quot;url&quot; rel=&quot;me&quot;&gt;http://www.zachle...&lt;/a&gt;&lt;/li&gt;
      &lt;li id=&quot;bio&quot;&gt;&lt;span class=&quot;label&quot;&gt;Bio&lt;/span&gt; &lt;span class=&quot;bio&quot;&gt;UI Programmer, JavaScript Enthusiast, Soccer Hooligan&lt;/span&gt;&lt;/li&gt;
   &lt;/ul&gt;
&lt;/address&gt;</pre></div></div>

<p>The premise here is that hCard tells you how to parse this markup to get usable information.  The <code>adr</code> CSS class tells you what my address is.  The <code>fn</code> CSS class tells you what my name is, and so on.  So, Get Satisfaction goes and spiders this page behind the scenes and autopopulates your profile with what it can find.  Pretty sweet.</p>
<p>Now, they don&#8217;t limit you to the services they provide, which are: Flickr, Technorati, Twitter, Upcoming, and last.fm.  They provide an Other category for any hCard enabled URL (your personal homepage or perhaps an <a href="http://microformats.org/wiki/hresume">hResume</a> you have posted on the web).</p>
<h3>Integrate with OpenID</h3>
<p>However, why not take it to the next level?  Why not integrate this microformat functionality WITH an openid login system?  You&#8217;d be able to kill two birds (not a twitter joke) with one stone in some cases, since both Twitter and Technorati are also OpenID producers (re-echo: We need more consumers).</p>
<p>So, not only do you get the benefits of having OpenID authentication on your website, but you&#8217;d be able to prepopulate a certain amount of profile data with an hCard parser.  And the best part is, if you already have a <a href="http://remysharp.com/2008/04/24/stop-using-openid-why-how/">nice clean user interface</a> set up to handle different OpenID producers, there wouldn&#8217;t be any additional clutter on the interface to get this benefit.  It&#8217;d be transparent to the user when it works, and fall back to a normal empty profile form when it doesn&#8217;t.</p>
<p>What I&#8217;d like to see, is more sites that are OpenID producers, also serve hCard microformats as well.  If we can get all the major producers on board, we&#8217;d have a nice tidy little system going.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zachleat.com/web/double-whammy-openid-and-microformats/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Code Like the Big Boys: Flickr</title>
		<link>http://www.zachleat.com/web/code-like-the-big-boys-flickr/</link>
		<comments>http://www.zachleat.com/web/code-like-the-big-boys-flickr/#comments</comments>
		<pubDate>Mon, 31 Mar 2008 04:04:29 +0000</pubDate>
		<dc:creator>Zach Leatherman</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Flickr]]></category>
		<category><![CDATA[PNG]]></category>

		<guid isPermaLink="false">http://www.zachleat.com/web/?p=119</guid>
		<description><![CDATA[Code like the Big Boys is a series of posts about code solutions used by major websites. What can we learn from these professional websites to use in our own code? JavaScript Looking at the source code of the Flickr home page is actually pretty strange. For one, there is only one JavaScript source code [...]]]></description>
			<content:encoded><![CDATA[<p><em>Code like the Big Boys is a series of posts about code solutions used by major websites.  What can we learn from these professional websites to use in our own code?</em></p>
<p><strong>JavaScript</strong></p>
<p>Looking at the source code of the Flickr home page is actually pretty strange.  For one, there is only one JavaScript source code file (other than the advertising scripts), a solution for <a href="http://webfx.eae.net/dhtml/pngbehavior/pngbehavior.html">PNG Alpha Transparency in Internet Explorer</a>, included as an <a href="http://msdn2.microsoft.com/en-us/library/ms531018(VS.85).aspx">HTML Component</a>.  The source for the PNG Behavior script (credit to Erik Arvidsson) is unchanged, with the exception of the removal of some extraneous comments, but curiously enough no whitespace removed (a suggestion to save them a few bucks in bandwidth).  Looking at their HTML source, they seem to emphasize whitespace and readability over bandwidth savings, which seems fine to me.  At least their visitors (you and I) can more easily learn something from their code.</p>
<p><strong>CSS</strong><br />
They&#8217;ve taken the same route as one of the tips from <a href="http://snook.ca/archives/html_and_css/top_css_tips/">Jonathan Snook</a>, and declared all styles for an element on a single line.  They use your standard css to reset to a base starting point, much like YUI&#8217;s Reset CSS we&#8217;re all familiar with.  One interesting declaration I noticed prominently inside of their CSS was the .Butt css class, declared on their primary Search form button.  I&#8217;m curious to know the semantic meaning behind that one.</p>
<p>They use the <a href="http://www.info.com.ph/~etan/w3pantheon/style/starhtmlbug.html">tan hack</a> as well to isolate a CSS declaration for IE browsers:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #00AA00;">*</span> html <span style="color: #cc00cc;">#featured-image</span> cite <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-1px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>This is to workaround for an IE limitation to absolutely positioning content at the bottom of a relatively positioned div, in this case the black box containing the credits (or citation, hence the cite tag) inside of the feature image.</p>
<p><img src="http://www.zachleat.com/web/wp-content/uploads/2008/03/flickr_cite.jpg" alt="Flickr Citation Tag" title="flickr_cite" width="500" height="230" class="alignnone size-full wp-image-118" /></p>
<p>Another interesting CSS Hack they&#8217;ve employed involves the line-height for &lt;a&gt; tags containing Unicode characters to select different languages.  It starts out like <a href="http://www.dustindiaz.com/min-height-fast-hack/">Dustin Diaz&#8217;s min-height hack</a>, but throws a loop.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> !important<span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span> <span style="color: #808080; font-style: italic;">/**/</span><span style="color: #00AA00;">:</span><span style="color: #933;">13px</span><span style="color: #00AA00;">;</span></pre></div></div>

<p>I&#8217;m not familiar with the <code>/**/</code> syntax, and would really appreciate any information someone has on what platform this is targeting.  A comment would be nice!</p>
<p><strong>HTML</strong></p>
<p>Standard here, and they have some nice meta tags for the I-phone:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;meta name=&quot;viewport&quot; content=&quot;width=950&quot; /&gt;</pre></div></div>

<p>All in all, it&#8217;s short and sweet code for a home page.  It&#8217;s nice to see such clean code with an eye towards standards on a commercially successful site, many props to their programmers.  I&#8217;m scared to do my next in the series, because I&#8217;m 100% sure it won&#8217;t be as nice of a read as Flickr was.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zachleat.com/web/code-like-the-big-boys-flickr/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

