<?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>Luke Berndt</title>
	<atom:link href="http://lukeberndt.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://lukeberndt.com</link>
	<description>I am kind of a big deal...</description>
	<lastBuildDate>Sat, 15 May 2010 16:40:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Color in KML is all wrong!</title>
		<link>http://lukeberndt.com/2010/color-in-kml-is-all-wrong/</link>
		<comments>http://lukeberndt.com/2010/color-in-kml-is-all-wrong/#comments</comments>
		<pubDate>Sat, 15 May 2010 16:40:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://lukeberndt.com/2010/color-in-kml-is-all-wrong/</guid>
		<description><![CDATA[I am working on building a Widget for the ESRI Flex Viewer that will import KML files from Google Earth. It is pretty easy to do, they already have a widget which imports GeoRSS feeds and Google has sample Flex Code for importing KML files into a Flex Google Maps viewer. The real work is [...]]]></description>
			<content:encoded><![CDATA[<p>I am working on building a Widget for the <a href="http://resources.esri.com/arcgisserver/apis/flex/index.cfm?fa=codeGalleryDetails&amp;scriptId=15905">ESRI Flex Viewer</a> that will import KML files from Google Earth. It is pretty easy to do, they already have a widget which imports GeoRSS feeds and Google has sample Flex Code for importing KML files into a Flex Google Maps viewer. The real work is turning the structures the Google parser builds into Graphic Objects which the ESRI Flex Viewer can take. Not exactly rocket science, but it has taken a lot of detective work because some aspects are less than obvious.</p>
<p>A real head scratcher for me was getting the colors right. All of the KML files I imported would have some of their colors off. I took me a while to figure out that color are not encoded in a standard way in KML files. Color in KML files are encoded using Hex, similar to HTML, except they also include an Alpha channel. Each Channel (red, green, blue &amp; alpha) are given 32 bits (0-255), which is converted into two Hexadecimal characters (0 &#8211; F). All this is pretty standard. The difference is that the Channels in KML colors are written down in a different order than almost every other standard. The order of the channels in KML is Alpha-Blue-Green-Red (ABGR) as opposed to the standard Alpha-Red-Green-Blue (ARGB). Flash takes in an integer conversion from the hex format, which is easy to do. The problem is that it expects the hex channels to be encoded in the RGB order. Once I figured this out I was able to put together a pretty simple encoder/converter. It may not be pretty but it gets the job done!</p>
<p style="font: 11.0px Monaco"><span style="color: #3424ff">private</span> <span style="color: #00ae76">function</span> setKmlColor(kmlColor:String)</p>
<p style="font: 11.0px Monaco">{</p>
<p style="font: 11.0px Monaco"><span style="color: #73a9d9">var</span> abgr:uint = parseInt(kmlColor,16);</p>
<p style="font: 11.0px Monaco"><span style="color: #73a9d9">var</span> alphaUint:uint =(abgr&gt;&gt; 24) &amp; 0xFF;</p>
<p style="font: 11.0px Monaco"><span style="color: #73a9d9">var</span> blueUint:uint = (abgr &gt;&gt; 16) &amp; 0xFF;</p>
<p style="font: 11.0px Monaco"><span style="color: #73a9d9">var</span> greenUint:uint = (abgr &gt;&gt; 8) &amp; 0xFF;</p>
<p style="font: 11.0px Monaco"><span style="color: #73a9d9">var</span> redUint:uint = abgr &amp; 0xFF;</p>
<p style="font: 11.0px Monaco"><span style="color: #73a9d9">var</span> colorUint = (redUint &lt;&lt; 16);</p>
<p style="font: 11.0px Monaco">colorUint += (greenUint &lt;&lt; 8);</p>
<p style="font: 11.0px Monaco">colorUint += (blueUint);</p>
<p style="font: 11.0px Monaco"><span style="color: #3424ff">this</span>._color = colorUint;</p>
<p style="font: 11.0px Monaco"><span style="color: #3424ff">this</span>._alpha = alphaUint / 255;</p>
<p style="font: 11.0px Monaco">}</p>
]]></content:encoded>
			<wfw:commentRss>http://lukeberndt.com/2010/color-in-kml-is-all-wrong/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Zend Framework, Gdata, Blogger and AuthSub</title>
		<link>http://lukeberndt.com/2010/zend-framework-gdata-blogger-and-authsub/</link>
		<comments>http://lukeberndt.com/2010/zend-framework-gdata-blogger-and-authsub/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 20:32:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://lukeberndt.com/2010/zend-framework-gdata-blogger-and-authsub/</guid>
		<description><![CDATA[So I am working on adding the ability to post to Blogger on the current project I am working on. It has been a tricky road getting there, so I thought I would &#8220;document&#8221; my learning trail. First place to start out is this getting started page for posting to Blogger using Gdata. There is [...]]]></description>
			<content:encoded><![CDATA[<p>So I am working on adding the ability to post to Blogger on the current project I am working on. It has been a tricky road getting there, so I thought I would &#8220;document&#8221; my learning trail.</p>
<ol>
<li>First place to start out is this <a href="http://code.google.com/apis/blogger/docs/1.0/developers_guide_php.html#GettingStarted">getting started page</a> for posting to Blogger using Gdata.</li>
<li>There is an extension to the Zend Framework that makes it easy to work with Gdata API in PHP. You can either use entire Zend Framework, or just the <a href="http://framework.zend.com/download/gdata">Gdata Client.</a></li>
<li>There is an explanation for installing and configuring the Gdata Client and the Zend Framework, <a href="http://code.google.com/apis/gdata/articles/php_client_lib.html">here</a>.</li>
<li>I am installing this on MAMP, (a self-contained PHP, MySQL package) and was having trouble getting the php include_path to work correctly. I tried this <a href="http://markmail.org/message/oau7glho5twacpel">method out</a> and it works fine. Basically you create a symbolic link to the /library/Zend folder, call the link Zend and place it next to the <b>php</b> folder at: /Applications/MAMP/bin/php5/lib. You then have to change the <b>php.ini</b> file located at /Apps/<em>MAMP</em>/conf/php5 and change the include_path to include_path = &#8220;.:/Applications/MAMP/bin/php5/lib&#8221;.</li>
<li>The build for just the Gdata Client instead of the entire framework is missing <a href="http://framework.zend.com/issues/browse/ZF-8786">a file</a>. Just comment out line 50 of client.php. Supposedly future builds will fix this problem.</li>
<li>The sample code for doing AuthSub uses a function called getCurrentUrl(); I couldn&#8217;t find this function anywhere so I just hardcoded it.</li>
<li>The sample code gives an include block:
<pre>
require_once 'Zend/Loader.php';
Zend_Loader::loadClass('Zend_Gdata');
Zend_Loader::loadClass('Zend_Gdata_Query');
</pre>
<p><span style="font-family: monospace; white-space: pre;">Zend_Loader::loadClass(&#8216;Zend_Gdata_ClientLogin&#8217;); <span style="font-family: Helvetica; white-space: normal;"><br />
    This is for doing a client login instead of AuthSub, which is used for connecting to Google via another website. In order to do this you need to include the class for this. Do this by adding this line:<br />
    <font color="#000000" face="Monaco"><span style="background-color: transparent;">Zend_Loader::loadClass(&#8216;Zend_Gdata_AuthSub&#8217;);<span style="font-family: Helvetica;">&nbsp;&nbsp;&nbsp;</span></span></font></span></span>
  </li>
<li>Another error in the AuthSub sample code. Here is the block:
<pre>
function getAuthSubUrl()
{
$next = getCurrentUrl();
$scope = 'http://www.google.com/blogger/feeds/';
$secure = false;
$session = true;
return Zend_Gdata_AuthSub::getAuthSubTokenUri($next, $scope, $secure, $session);
}$authSubUrl = getAuthSubUrl();
</pre>
<p><span style="font-family: monospace; white-space: pre;">echo &#8216;&lt;a href=\&#8221;$authSubUrl\&#8221;&gt;login to your Google account&lt;/a&gt;&#8217;;<br /></span> The scope is set incorrectly. It should not goto google.com. In the text below and the sample URL, they have it correct. It should be:<br />
    $scope = &#8216;http://www.blogger.com/feeds/&#8217;;
  </li>
<li>Turns out that they forgot to load another class needed for the blogger. Add this line following the other Zend_Loaders. You need it in order to view all of the Blogs a user has.<br />
  <font class="fixed_width" face="Courier, Monospaced">Zend_Loader :: loadClass(&#8216;Zend_Gdata_Feed&#8217;);</font></li>
</ol>
<p>Yea&#8230; so not what I would call out of the box functionality. I will add more to this as I work with the API and find other fun things to work around.</p>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://lukeberndt.com/2010/zend-framework-gdata-blogger-and-authsub/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Wave</title>
		<link>http://lukeberndt.com/2009/google-wave/</link>
		<comments>http://lukeberndt.com/2009/google-wave/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 03:07:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://lukeberndt.com/2009/google-wave/</guid>
		<description><![CDATA[I got my Google Wave invite&#8230; now what? Is anyone using it for anything cool yet?]]></description>
			<content:encoded><![CDATA[<p>I got my Google Wave invite&#8230; now what? Is anyone using it for anything cool yet?</p>
]]></content:encoded>
			<wfw:commentRss>http://lukeberndt.com/2009/google-wave/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Gadgets</title>
		<link>http://lukeberndt.com/2009/google-gadgets/</link>
		<comments>http://lukeberndt.com/2009/google-gadgets/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 02:58:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://lukeberndt.com/2009/google-gadgets/</guid>
		<description><![CDATA[I am working on a new top secret project and part of it involves a Google Gadget. I just spent 2 hours trying to work out why links get stuck in an iframe instead of the parent page. Here is the answer that took a while to find: External Links Gadgets that wish to direct [...]]]></description>
			<content:encoded><![CDATA[<p>I am working on a new top secret project and part of it involves a Google Gadget. I just spent 2 hours trying to work out why links get stuck in an iframe instead of the parent page.</p>
<p>Here is the answer that took a while to find:</p>
<h3>External Links</h3>
<p>Gadgets that wish to direct the user to a third-party site should do so in a new window. All links should set <code>target="_blank"</code> in any <code>href</code> tags so that external links do not open inside of the gadget&#8217;s iframe.</p>
]]></content:encoded>
			<wfw:commentRss>http://lukeberndt.com/2009/google-gadgets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sustainable Software</title>
		<link>http://lukeberndt.com/2009/sustainable-software/</link>
		<comments>http://lukeberndt.com/2009/sustainable-software/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 14:37:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://lukeberndt.com/?p=40</guid>
		<description><![CDATA[Interesting, comparing sustainable architecture to software development. Long term impacts of IT spending. The cost of software failures get externalized as software profits. Another great presentation at Gov 2.0 summit]]></description>
			<content:encoded><![CDATA[<p>Interesting, comparing sustainable architecture to software development. Long term impacts of IT spending. The cost of software failures get externalized as software profits.</p>
<p>Another great presentation at Gov 2.0 summit</p>
]]></content:encoded>
			<wfw:commentRss>http://lukeberndt.com/2009/sustainable-software/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Smart People at Gov 2.0</title>
		<link>http://lukeberndt.com/2009/smart-people-at-gov-2-0/</link>
		<comments>http://lukeberndt.com/2009/smart-people-at-gov-2-0/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 13:42:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://lukeberndt.com/2009/smart-people-at-gov-2-0/</guid>
		<description><![CDATA[I just saw Aneesh talk at the Gov 2.0 summit. I really hope the smartness at the administration level starts trickling down to the agency level.]]></description>
			<content:encoded><![CDATA[<p>I just saw Aneesh talk at the Gov 2.0 summit. I really hope the smartness at the administration level starts trickling down to the agency level.</p>
]]></content:encoded>
			<wfw:commentRss>http://lukeberndt.com/2009/smart-people-at-gov-2-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gov 2.0 Expo &amp; Summit</title>
		<link>http://lukeberndt.com/2009/gov-2-0-expo-summit/</link>
		<comments>http://lukeberndt.com/2009/gov-2-0-expo-summit/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 02:00:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://lukeberndt.com/?p=36</guid>
		<description><![CDATA[I went to the Gov 2.0 Summit today. It was a great experience. It was really great to see all these people coming to together for Gov. I am excited for the Summit tomorrow. It should bring together some real heavy hitters. They also announced the winners of Apps for America. Data Masher got the [...]]]></description>
			<content:encoded><![CDATA[<p>I went to the Gov 2.0 Summit today. It was a great experience. It was really great to see all these people coming to together for Gov. I am excited for the Summit tomorrow. It should bring together some real heavy hitters.</p>
<p>They also announced the winners of Apps for America. Data Masher got the top slot, Gov Pulse got second, and This we Know got third. A great showing from everyone. Apparently the votes were very close.</p>
]]></content:encoded>
			<wfw:commentRss>http://lukeberndt.com/2009/gov-2-0-expo-summit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apps for America 2 &#8211; winners</title>
		<link>http://lukeberndt.com/2009/apps-for-america-2-winners/</link>
		<comments>http://lukeberndt.com/2009/apps-for-america-2-winners/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 20:20:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://lukeberndt.com/?p=33</guid>
		<description><![CDATA[They have announced the winners for Apps for America 2. I submitted two apps which I had clobbered together. Unfortunately I didn&#8217;t make it as a finalist or win the visualization prize. The Apps that did win were written by teams of people who actually know what they are doing&#8230; I am just happy I [...]]]></description>
			<content:encoded><![CDATA[<p>They have announced the winners for Apps for America 2. I submitted<a href="http://lukeberndt.com/2009/submitted-two-apps/"> two apps </a>which I had clobbered together. Unfortunately I didn&#8217;t make it as a<a href="http://www.sunlightlabs.com/blog/2009/apps-america-finalists/"> finalist</a> or win the <a href="http://www.sunlightlabs.com/blog/2009/visualization-prize-goes/">visualization prize</a>. The Apps that did win were written by teams of people who actually know what they are doing&#8230; I am just happy I got something working. This was my first experience using PHP to pull web data from APIs and I learned a lot. I am still hoping I win one of the 10 honorable mentions!</p>
]]></content:encoded>
			<wfw:commentRss>http://lukeberndt.com/2009/apps-for-america-2-winners/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Submitted two apps</title>
		<link>http://lukeberndt.com/2009/submitted-two-apps/</link>
		<comments>http://lukeberndt.com/2009/submitted-two-apps/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 18:29:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://lukeberndt.com/?p=30</guid>
		<description><![CDATA[I submitted two apps to the Apps for America 2 contest. They provide an interface to the USASpending.gov website, taking you current location and providing information on the federal money being spent locally. Local Spending &#8211; Provides you information on the federal money being spent in your current zip code, district or state. Local Recovery [...]]]></description>
			<content:encoded><![CDATA[<p>I submitted two apps to the <a href="http://www.sunlightlabs.com/contests/appsforamerica2/">Apps for America 2 contest</a>. They provide an interface to the <a href="http://www.usaspending.gov">USASpending.gov</a> website, taking you current location and providing information on the federal money being spent locally.</p>
<p><a href="http://www.lukeberndt.com/spending">Local Spending</a> &#8211; Provides you information on the federal money being spent in your current zip code, district or state.</p>
<p><a href="http://www.lukeberndt.com/recovery">Local Recovery</a> &#8211; Provides the amount of federal recovery money that has been spent in your current zip code, district or state.</p>
<p>While I hope I win something, I had a lot of fun just working on the apps. I got to learn a lot about using PHP to pull in information from an API and restructure it. Good times!</p>
]]></content:encoded>
			<wfw:commentRss>http://lukeberndt.com/2009/submitted-two-apps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CrisisCamp DC</title>
		<link>http://lukeberndt.com/2009/crisiscamp-dc/</link>
		<comments>http://lukeberndt.com/2009/crisiscamp-dc/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 01:04:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://lukeberndt.com/?p=29</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><a href="http://lukeberndt.com/wp-content/uploads/2009/06/p-1600-1200-f8d138b5-3171-4095-89c4-f27172a5e81e.jpeg"><img src="http://lukeberndt.com/wp-content/uploads/2009/06/p-1600-1200-f8d138b5-3171-4095-89c4-f27172a5e81e.jpeg" alt="" width="225" height="300" class="alignnone size-full wp-image-364" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://lukeberndt.com/2009/crisiscamp-dc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
