<?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>David Ehlers &#187; Code</title>
	<atom:link href="http://davidehlers.com/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://davidehlers.com</link>
	<description>Art, Algorithms, &#38; Design</description>
	<lastBuildDate>Mon, 14 Mar 2011 04:01:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>iPhone 4 Retina Display HTML/CSS</title>
		<link>http://davidehlers.com/2011/03/iphone-4-retina-display-htmlcss/</link>
		<comments>http://davidehlers.com/2011/03/iphone-4-retina-display-htmlcss/#comments</comments>
		<pubDate>Fri, 11 Mar 2011 18:32:51 +0000</pubDate>
		<dc:creator>David Ehlers</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[iPhone 4]]></category>
		<category><![CDATA[retina]]></category>

		<guid isPermaLink="false">http://davidehlers.com/?p=360</guid>
		<description><![CDATA[Here is a quick and easy way to make your html/css look good on an old iphone/ipod touch AND a new retina display iphone 4. Just try the following: 1) Add the proper meta tag into the html&#8217;s header. This version also locks the scale: &#60;meta name=&#34;viewport&#34; content=&#34;width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no&#34;&#62; 2) Add references to [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a quick and easy way to make your html/css look good on an old iphone/ipod touch AND a new retina display iphone 4. Just try the following:</p>
<p>1) Add the proper meta tag into the html&#8217;s header. This version also locks the scale:</p>
<p><pre><code>
&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0, 
maximum-scale=1.0, user-scalable=no&quot;&gt;
</code></pre></p>
<p>2) Add references to images where you want them in high-res, retina 2x. Note, the -webkit-background-size is the same as the original</p>
<p><pre><code>
#someDiv {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;background-image: url(images/myImage.png);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;width: 480px;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;height: 140px;
}

// now replace that div&#039;s image with the 2x iphone 4 version:
@media only screen and (-webkit-min-device-pixel-ratio: 2) {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #someDiv { background-image: url(images/myImage@2x.png); 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -webkit-background-size: 480px 140px; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //note: the actual image is 960x280
}
</code></pre></p>
<p><a href="https://developer.apple.com/library/safari/#documentation/AppleApplications/Reference/SafariWebContent/OptimizingforSafarioniPhone/OptimizingforSafarioniPhone.html%23//apple_ref/doc/uid/TP40006517-SW1">Safari Developer Library Ref</a></p>
]]></content:encoded>
			<wfw:commentRss>http://davidehlers.com/2011/03/iphone-4-retina-display-htmlcss/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone SDK Alternatives</title>
		<link>http://davidehlers.com/2010/02/iphone-sdk-alternatives/</link>
		<comments>http://davidehlers.com/2010/02/iphone-sdk-alternatives/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 18:27:13 +0000</pubDate>
		<dc:creator>David Ehlers</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Corona]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[sdk]]></category>
		<category><![CDATA[Unity]]></category>

		<guid isPermaLink="false">http://davidehlers.com/?p=258</guid>
		<description><![CDATA[Besides xCode, here are couple alternate iPhone SDKs. At first glance/installation, Corona makes it dead simple to create flash like games/interactions. It uses a simple LUA scripting language. The Unity 3D for the iPhone is a subset of the larger Unity 3D engine but definitely worth a look if you are building a game or [...]]]></description>
			<content:encoded><![CDATA[<p>Besides xCode, here are couple alternate iPhone SDKs. At first glance/installation, Corona makes it dead simple to create flash like games/interactions. It uses a simple LUA scripting language. The Unity 3D for the iPhone is a subset of the larger Unity 3D engine but definitely worth a look if you are building a game or 3d iPhone app.</p>
<p>Find them here:</p>
<ul>
<li>Corona <a href="http://www.anscamobile.com/corona/">http://www.anscamobile.com/corona/</a></li>
<li>Unity 3D  <a href="http://unity3d.com/unity/whats-new/iphone-1.5.1">http://unity3d.com/unity/whats-new/iphone-1.5.1</a></li>
<li>Phone Gap: <a href="http://phonegap.com/download">http://phonegap.com/download</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://davidehlers.com/2010/02/iphone-sdk-alternatives/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Field &#8211; Experimental Code and Art</title>
		<link>http://davidehlers.com/2010/01/field-experimental-code-and-art/</link>
		<comments>http://davidehlers.com/2010/01/field-experimental-code-and-art/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 00:52:29 +0000</pubDate>
		<dc:creator>David Ehlers</dc:creator>
				<category><![CDATA[3d]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Visualization]]></category>

		<guid isPermaLink="false">http://davidehlers.com/?p=252</guid>
		<description><![CDATA[Love this: http://www.openendedgroup.com/field/ Field is a development environment for experimental code and digital art in the broadest of possible senses. While there are a great many development environments and digital art tools out there today, this one has been constructed with two key principles in mind: Embrace and extend — rather than make a personal, private and [...]]]></description>
			<content:encoded><![CDATA[<p>Love this:</p>
<p><strong><a href="http://www.openendedgroup.com/field/">http://www.openendedgroup.com/field/</a></strong></p>
<p><strong><img class="alignleft" style="border: 3px solid white;" title="Field" src="http://www.openendedgroup.com/field/attachment/wiki/OverviewBanners2/drawing1.png?format=raw" alt="" width="380" height="261" /></strong></p>
<p>Field is a development environment for <em>experimental code</em> and <em>digital art</em> in the broadest of possible senses. While there are a great many development environments and digital art tools out there today, this one has been constructed with two key principles in mind:</p>
<ul>
<li style="font-size: 1em; list-style-image: url(http://openendedgroup.com/wp-content/uploads/common/grayhand.png); margin-left: -30px; margin-bottom: 0.3em;"><strong>Embrace and extend</strong> — rather than make a personal, private and pristine code utopia, Field tries to bridge to as many libraries, programming languages, and ways of doing things as possible. The world doesn&#8217;t necessarily need another programming language or serial port library, nor do we have to pick and choose between data-flow systems, graphical user interfaces or purely textual programming — <em>we can have it all</em> in the right environment and we can both leverage the work of others and take control of our own tools and methods.</li>
</ul>
<ul>
<li style="font-size: 1em; list-style-image: url(http://openendedgroup.com/wp-content/uploads/common/grayhand.png); margin-left: -30px; margin-bottom: 0.3em;"><strong>Live code makes anything possible</strong> — Field tries to replace as many &#8220;features&#8221; with editable code as it can. Its programming language of choice is Python — a world class, highly respected and incredibly flexible language. As such, Field is intensely customizable, with the glue between interface objects and data modifiable inside Field itself. Field takes seriously the idea that its user — you — are a programmer / artist doing serious work and that you should be able to reconfigure your tools to suit your domain and style as closely as possible.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://davidehlers.com/2010/01/field-experimental-code-and-art/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why Apple Supports HTML 5 (Sorry Adobe/Flash)</title>
		<link>http://davidehlers.com/2009/09/applehtml5/</link>
		<comments>http://davidehlers.com/2009/09/applehtml5/#comments</comments>
		<pubDate>Sun, 20 Sep 2009 21:37:17 +0000</pubDate>
		<dc:creator>David Ehlers</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[html 5]]></category>
		<category><![CDATA[standards]]></category>

		<guid isPermaLink="false">http://davidehlers.com/?p=225</guid>
		<description><![CDATA[Interesting article over at apple insider on standards, apple, and html 5. While the standard isn&#8217;t yet finished, Apple is already using HTML 5 as an important component in the company&#8217;s strategies, ranging from the iPod touch and iPhone&#8217;s mobile browser to Safari on the Mac and PC, from Dashboard widgets to new iTunes LP [...]]]></description>
			<content:encoded><![CDATA[<p>Interesting article over at apple insider on standards, apple, and html 5.</p>
<p>While the standard isn&#8217;t yet finished, Apple is already using HTML 5 as an important component in the company&#8217;s strategies, ranging from the iPod touch and iPhone&#8217;s mobile browser to Safari on the Mac and PC, from Dashboard widgets to new iTunes LP content, and from MobileMe apps to the latest iTunes Store.</p>
<p><a href="http://www.appleinsider.com/articles/09/09/19/why_apple_is_betting_on_html_5_a_web_history.html&#038;page=1">Why HTML 5</a></p>
]]></content:encoded>
			<wfw:commentRss>http://davidehlers.com/2009/09/applehtml5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>bithacks</title>
		<link>http://davidehlers.com/2009/06/bithacks/</link>
		<comments>http://davidehlers.com/2009/06/bithacks/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 00:35:09 +0000</pubDate>
		<dc:creator>David Ehlers</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://davidehlers.com/?p=163</guid>
		<description><![CDATA[Peteris Krumins writes, &#8220;Bit hacks are ingenious little programming tricks that manipulate integers in a smart and efficient manner. Instead of performing some operation (such as counting the 1 bits in an integer) by looping over individual bits, these programming nuggets do the same with one or two carefully chosen bitwise operations.&#8221; &#38; &#8211; bitwise [...]]]></description>
			<content:encoded><![CDATA[<p>Peteris Krumins writes, &#8220;Bit hacks are ingenious little programming tricks that manipulate integers in a smart and efficient manner. Instead of performing some operation (such as counting the 1 bits in an integer) by looping over individual bits, these programming nuggets do the same with one or two carefully chosen bitwise operations.&#8221;</p>
<blockquote><p><strong>&amp;   &#8211;  bitwise and<br />
|   &#8211;  bitwise or<br />
^   &#8211;  bitwise xor<br />
~   &#8211;  bitwise not<br />
&lt;&lt;  &#8211;  bitwise shift right<br />
&gt;&gt;  &#8211;  bitwise shift left</strong></p>
<p>fun here: <a href="http://www.catonmat.net/blog/low-level-bit-hacks-you-absolutely-must-know/">http://www.catonmat.net/blog/low-level-bit-hacks-you-absolutely-must-know/</a></p>
<p><strong><br />
</strong></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://davidehlers.com/2009/06/bithacks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google o3d</title>
		<link>http://davidehlers.com/2009/04/google-o3d/</link>
		<comments>http://davidehlers.com/2009/04/google-o3d/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 20:46:16 +0000</pubDate>
		<dc:creator>David Ehlers</dc:creator>
				<category><![CDATA[3d]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Papervision 3D]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[o3d]]></category>

		<guid isPermaLink="false">http://davidehlers.com/?p=160</guid>
		<description><![CDATA[http://code.google.com/apis/o3d/ Forget papervision (and it&#8217;s processor hogging code) O3D is an open-source web API for creating rich, interactive 3D applications in the browser. This API is shared at an early stage as part of a conversation with the broader developer community about establishing an open web standard for 3D graphics.]]></description>
			<content:encoded><![CDATA[<p><a href="http://code.google.com/apis/o3d/">http://code.google.com/apis/o3d/</a></p>
<p>Forget papervision (and it&#8217;s processor hogging code)</p>
<p>O3D is an open-source web API for creating rich, interactive 3D applications in the browser. This API is shared at an early stage as part of a conversation with the broader developer community about establishing an open web standard for 3D graphics.</p>
]]></content:encoded>
			<wfw:commentRss>http://davidehlers.com/2009/04/google-o3d/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Malo CSS</title>
		<link>http://davidehlers.com/2008/12/malo-css/</link>
		<comments>http://davidehlers.com/2008/12/malo-css/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 23:23:11 +0000</pubDate>
		<dc:creator>David Ehlers</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://davidehlers.com/?p=120</guid>
		<description><![CDATA[I am not sold on this framework &#8211; but it is awfully small. I give them that. Malo is ultra small css library for building web sites. It is meant to be structural base for small or medium web sites.Malo derives from it&#8217;s bigger brother Emastic CSS Framework. Why should you use Malo? Because it&#8217;s: Ultra [...]]]></description>
			<content:encoded><![CDATA[<p><strong><em>I am not sold on this framework &#8211; but it is awfully small. I give them that.</em></strong></p>
<p><a title="Malo" href="http://code.google.com/p/malo/"><strong>Malo</strong></a> is ultra small css library for building web sites. It is meant to be structural base for small or medium web sites.Malo derives from it&#8217;s bigger brother Emastic CSS Framework.</p>
<p>Why should you use Malo?</p>
<p>Because it&#8217;s:</p>
<p>Ultra small (compressed is 0,25 kb or 8 lines of CSS! )<br />
Personalized width of the page in (%, px, em)<br />
Super flexible.<br />
Easy to use.<br />
How Malo works?<br />
Malo is based on the principle that every column can be divided into two, three, four and five parts.</p>
]]></content:encoded>
			<wfw:commentRss>http://davidehlers.com/2008/12/malo-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adobe Labs&#8217; Cocomo</title>
		<link>http://davidehlers.com/2008/11/adobe-labs-cocomo/</link>
		<comments>http://davidehlers.com/2008/11/adobe-labs-cocomo/#comments</comments>
		<pubDate>Sun, 30 Nov 2008 16:27:17 +0000</pubDate>
		<dc:creator>David Ehlers</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[social]]></category>

		<guid isPermaLink="false">http://davidehlers.com/?p=118</guid>
		<description><![CDATA[An useful way to create social apps? Not sure yet, but looks interesting. What is up with Acrobat.com Codename &#8220;Cocomo&#8221; is a Platform as a Service that allows Flex developers to easily add real-time social capabilities into their RIA (rich Internet applications). Comprised of both Flex-based client components and a hosted services infrastructure, Cocomo allows [...]]]></description>
			<content:encoded><![CDATA[<p>An useful way to create social apps? Not sure yet, but looks interesting. What is up with Acrobat.com</p>
<p>Codename &#8220;Cocomo&#8221; is a Platform as a Service that allows Flex developers to easily add real-time social capabilities into their RIA (rich Internet applications). Comprised of both Flex-based client components and a hosted services infrastructure, Cocomo allows you to build real-time, multi-user applications with Flex in less time than ever before. And because Acrobat.com hosts the service, issues like deployment, maintenance, and scalability are taken care of for you.</p>
<p>Add social features to your existing Flex apps or build totally new ones, such as real-time productivity/collaboration apps, multiplayer games, and audio/video chat.</p>
<p>Features of the Cocomo beta include the following:</p>
<ul>
<li> VoIP Audio</li>
<li>Webcam Video</li>
<li>Chat</li>
<li>Multi-User Whiteboards</li>
<li> Real-Time File Sharing</li>
<li>User Management</li>
<li>Roles and Permissions</li>
<li>Robust Data Messaging</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://davidehlers.com/2008/11/adobe-labs-cocomo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Processing</title>
		<link>http://davidehlers.com/2008/11/processing/</link>
		<comments>http://davidehlers.com/2008/11/processing/#comments</comments>
		<pubDate>Tue, 25 Nov 2008 16:38:55 +0000</pubDate>
		<dc:creator>David Ehlers</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[processing]]></category>

		<guid isPermaLink="false">http://davidehlers.com/?p=115</guid>
		<description><![CDATA[I love processing, and now its 1.0: The Processing project today announced the immediate availability of the Processing 1.0 product family, the highly anticipated release of industry-leading design and development software for virtually every creative workflow. Delivering radical breakthroughs in workflow efficiency &#8211; and packed with hundreds of innovative, time-saving features &#8211; the new Processing [...]]]></description>
			<content:encoded><![CDATA[<div>
<p>I love processing, and now its 1.0:</p>
<p>The Processing project today announced the immediate availability of the Processing 1.0 product family, the highly anticipated release of industry-leading design and development software for virtually every creative workflow. Delivering radical breakthroughs in workflow efficiency &#8211; and packed with hundreds of innovative, time-saving features &#8211; the new Processing 1.0 product line advances the creative process across print, Web, interactive, film, video and mobile.</p>
<p><a href="http://processing.org">http://processing.org</a></div>
]]></content:encoded>
			<wfw:commentRss>http://davidehlers.com/2008/11/processing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>YUI Library 3</title>
		<link>http://davidehlers.com/2008/08/yui-library-3/</link>
		<comments>http://davidehlers.com/2008/08/yui-library-3/#comments</comments>
		<pubDate>Sat, 23 Aug 2008 15:26:15 +0000</pubDate>
		<dc:creator>David Ehlers</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[yui]]></category>

		<guid isPermaLink="false">http://davidehlers.com/?p=94</guid>
		<description><![CDATA[Yahoo has released a pr1 of their revised YUI Library. The YUI team is pleased to announce YUI 3.0 Preview Release 1. This preview is an early look at what we&#8217;re working on for the next generation of YUI Library. Pleasereview the API, play with the examples, and read the documentation on this site for details; download [...]]]></description>
			<content:encoded><![CDATA[<p>Yahoo has released a pr1 of their revised <a href="http://developer.yahoo.com/yui/3/">YUI Library.</a></p>
<p>The YUI team is pleased to announce YUI 3.0 Preview Release 1. This preview is an early look at what we&#8217;re working on for the next generation of YUI Library. Please<a href="http://developer.yahoo.com/yui/3/api/">review the API</a>, play with <a href="http://developer.yahoo.com/yui/3/examples/">the examples</a>, and read the documentation on this site for details; <a href="http://sourceforge.net/projects/yui/">download YUI 3.0 PR1</a> on the YUI project area on SourceForge; you can find us with questions or comments on the <a href="http://tech.groups.yahoo.com/group/yui3/">YUI 3.x discussion group</a>.</p>
<p>This YUI 3.x is part of the broader <a href="http://developer.yahoo.com/yui">YUI Library</a> project, which is a coherent collection of JavaScript and CSS resources that make it easier to build richly interactive applications in web browsers. They have been released as open source under a<a href="http://developer.yahoo.com/yui/license.html">BSD license</a> and are free for all uses.</p>
]]></content:encoded>
			<wfw:commentRss>http://davidehlers.com/2008/08/yui-library-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

