<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>Code</title>
        <link>http://4volt.com/Blog/category/7.aspx</link>
        <description>Anything that has to do with writing code</description>
        <language>en-US</language>
        <copyright>4volt</copyright>
        <generator>Subtext Version 2.1.1.1</generator>
        <item>
            <title>US Droid + Root = Multitouch?</title>
            <link>http://4volt.com/Blog/archive/2009/11/16/us-droid-root-multitouch.aspx</link>
            <description>&lt;p&gt;After having the new Motorola Droid for about a week, I've been very impressed with it’s features, usability, and experience. &lt;/p&gt;
&lt;p&gt;Previously I was using a windows mobile phone, and as far as usability goes, Android is leaps and bounds better then even the latest (6.5) version of Windows Mobile.&lt;/p&gt;
&lt;p&gt;Although, when I show my phone to an iPhone users, they generally complain about the lack of multitouch, especially in the web browser, and the on-screen keyboard. I think that feature alone will end up being a major sticking point when people talk about switching from the iPhone to the Droid.&lt;/p&gt;
&lt;p&gt;As you may or may not know, the US version of the droid does not have multitouch in the apps that Google/Verizon distributes with the phone (including the browser and keyboard). The speculated reason why multitouch is not enabled in the US Droid is that apple’s patent on multi-touch that is not valid in Europe.&lt;/p&gt;
&lt;p&gt;After some little research there is a app (PicSay) in the Google Marketplace that takes advantage of multitouch on a stock, unmodified US Droid for zooming pictures. So, it is true that multi-touch is supported and enabled in hardware, but not taken advantage in software.&lt;/p&gt;
&lt;p&gt;My theory: &lt;strong&gt;multitouch is only disabled&lt;/strong&gt; by configuration in the Android OS, and if one were able to root the US Droid they could &lt;strong&gt;re-enable multitouch&lt;/strong&gt; with some simple configuration changes.&lt;/p&gt;
&lt;p&gt;This assumes that Google uses the same distribution of apps for both US and Europe. Although, if that is not the case, one could alternatively copy the European ROM (or apps) to the US phone with a minimum of fuss.&lt;/p&gt;
&lt;p&gt;I'm keeping my two fingers crossed for a root exploit in the near future, and the possibility of multitouch. At this point I think it’s probably too late in the game for Google/Verizon to change their minds about multitouch, though I hope they do. It would make the Droid a stronger competitor with the iPhone.&lt;/p&gt;
&lt;p&gt;Also, Android Marketplace developers should be, or may already be working on a multitouch version of the on screen keyboard. An independent app could take advantage of multitouch, and wouldn’t require rooting the phone, so you could type with two fingers.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Update 12-08-2009:&lt;/span&gt;&lt;br /&gt;
Dolphin (A 3rd party web browser) that you can get in the marketplace supports multi-touch. Search for it in the marketplace, it's free.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Update 12-10-2009:&lt;br /&gt;
&lt;/span&gt;A root exploit for android 2.0 on the droid was found and after reading into it, it looks like the apps in question were complied without the multi-touch libraries. It should be a matter of re-compiling or coping multi-touch binaries.&lt;span style="font-weight: bold;" /&gt;&lt;/p&gt;
&lt;p&gt;Since dolphin exits, I think if someone were to make a multi-touch on-screen keyboard, people would not have much to complain about .&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Update 01-29-2010:&lt;/span&gt;&lt;br /&gt;
This article is now out of date, but most people are just just downloading multi-touch apps and calling it good, though there are also some mutli-touch + root modifications you can do to the droid and nexus.&lt;/p&gt;&lt;img src="http://4volt.com/Blog/aggbug/180.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>4volt</dc:creator>
            <guid>http://4volt.com/Blog/archive/2009/11/16/us-droid-root-multitouch.aspx</guid>
            <pubDate>Mon, 16 Nov 2009 19:05:47 GMT</pubDate>
            <wfw:comment>http://4volt.com/Blog/comments/180.aspx</wfw:comment>
            <comments>http://4volt.com/Blog/archive/2009/11/16/us-droid-root-multitouch.aspx#feedback</comments>
            <wfw:commentRss>http://4volt.com/Blog/comments/commentRss/180.aspx</wfw:commentRss>
        </item>
        <item>
            <title>New Generative Art &amp;ndash; Missile Cloud</title>
            <link>http://4volt.com/Blog/archive/2009/07/29/new-generative-art-ndash-missile-cloud.aspx</link>
            <description>&lt;p&gt;&lt;a target="_blank" href="http://4volt.com/Blog/images/4volt_com/Blog/WindowsLiveWriter/NewGenerativeArtMissileCloud_16C/image_2.png"&gt;&lt;img height="402" width="600" src="http://4volt.com/Blog/images/4volt_com/Blog/WindowsLiveWriter/NewGenerativeArtMissileCloud_16C/image_thumb.png" alt="image" style="margin: 8px 0px 0px; display: inline;" title="image" /&gt;&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;Lately I’ve been playing around with generative art for framing and hanging, this is a collection from some code I wrote in Context Free. I’ve also recently discovered the function to render at high resolutions and really adds another dimension of detail in this kind of recursive art. &lt;/p&gt;
&lt;p&gt;The frames you see here are cropped sections of one of the renders I found interesting.&lt;/p&gt;
&lt;p&gt; &lt;a target="_blank" href="http://4volt.com/Blog/images/4volt_com/Blog/WindowsLiveWriter/NewGenerativeArtMissileCloud_16C/Upper%20Right_2.png"&gt;&lt;img height="197" width="295" src="http://4volt.com/Blog/images/4volt_com/Blog/WindowsLiveWriter/NewGenerativeArtMissileCloud_16C/Upper%20Right_thumb.png" alt="Upper Right" style="margin: 8px 0px 0px; display: inline;" title="Upper Right" /&gt;&lt;/a&gt; &lt;a target="_blank" href="http://4volt.com/Blog/images/4volt_com/Blog/WindowsLiveWriter/NewGenerativeArtMissileCloud_16C/Upper%20Left%20-%20blue_2.png"&gt;&lt;img height="197" width="295" src="http://4volt.com/Blog/images/4volt_com/Blog/WindowsLiveWriter/NewGenerativeArtMissileCloud_16C/Upper%20Left%20-%20blue_thumb.png" alt="Upper Left - blue" style="margin: 8px 0px 0px; display: inline;" title="Upper Left - blue" /&gt;&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;  &lt;/p&gt;
&lt;p&gt;  &lt;/p&gt;
&lt;p&gt;If you want to explore one of the 5000x3500px high-res frames, it’s here: &lt;a target="_blank" href="http://4volt.com/projects/random/MissileCloud8-vbx-5k.png"&gt;Missile Cloud 8 – VBX&lt;/a&gt; (7mb). I also have a 10k pixel, 22mb version, if anyone is interested I’ll post it here.&lt;/p&gt;
&lt;p&gt;The Context Free code is here: &lt;a target="_blank" href="http://4volt.com/projects/random/MissileCloud8.cfdg.txt"&gt;Missile Cloud&lt;/a&gt; (CFDG).&lt;/p&gt;&lt;img src="http://4volt.com/Blog/aggbug/174.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>4volt</dc:creator>
            <guid>http://4volt.com/Blog/archive/2009/07/29/new-generative-art-ndash-missile-cloud.aspx</guid>
            <pubDate>Wed, 29 Jul 2009 07:06:12 GMT</pubDate>
            <wfw:comment>http://4volt.com/Blog/comments/174.aspx</wfw:comment>
            <comments>http://4volt.com/Blog/archive/2009/07/29/new-generative-art-ndash-missile-cloud.aspx#feedback</comments>
            <slash:comments>3</slash:comments>
            <wfw:commentRss>http://4volt.com/Blog/comments/commentRss/174.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Papercraft Folded Box Generator</title>
            <link>http://4volt.com/Blog/archive/2009/04/15/papercraft-folded-box-generator.aspx</link>
            <description>&lt;p&gt;Zignig from &lt;a href="http://www.thingiverse.com" target="_blank"&gt;Thingiverse&lt;/a&gt; posted a python script called "&lt;a href="http://www.thingiverse.com/thing:442" target="_blank"&gt;Parametric Papercraft&lt;/a&gt;" that will draw boxes of any size based on my &lt;a href="http://4volt.com:8080/Blog/archive/0001/01/01/32.aspx"&gt;folded box design&lt;/a&gt;. It’s a cool idea that I highly recommend checking out.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://4volt.com:8080/Blog/images/4volt_com_8080/Blog/WindowsLiveWriter/PapercraftFoldedBoxGenerator_9AA2/image_2.png" target="_blank"&gt;&lt;img title="Wide, Flat and Square Boxes" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="227" alt="Wide, Flat and Square Boxes" src="http://4volt.com:8080/Blog/images/4volt_com_8080/Blog/WindowsLiveWriter/PapercraftFoldedBoxGenerator_9AA2/image_thumb.png" width="500" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;img title="Papercraft Box" height="213" alt="Papercraft Box" src="http://www.4volt.com/Blog/ImagePost/FunctionalPapercraftAFoldedBox_A21F/IMG_9793.jpg" width="320" /&gt;&lt;/p&gt;&lt;img src="http://4volt.com/Blog/aggbug/145.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>4volt</dc:creator>
            <guid>http://4volt.com/Blog/archive/2009/04/15/papercraft-folded-box-generator.aspx</guid>
            <pubDate>Wed, 15 Apr 2009 17:59:48 GMT</pubDate>
            <wfw:comment>http://4volt.com/Blog/comments/145.aspx</wfw:comment>
            <comments>http://4volt.com/Blog/archive/2009/04/15/papercraft-folded-box-generator.aspx#feedback</comments>
            <wfw:commentRss>http://4volt.com/Blog/comments/commentRss/145.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Generative Art: Context Free</title>
            <link>http://4volt.com/Blog/archive/2009/03/07/generative-art-context-free.aspx</link>
            <description>&lt;p&gt;&lt;a href="http://4volt.com/Blog/images/4volt_com/Blog/WindowsLiveWriter/GenerativeArtContextFree_B77F/tangle5-1_2.png" target="_blank"&gt;&lt;img title="CFDG - tangle5-1" style="display: inline; margin: 8px 0px 0px" height="295" alt="CFDG - tangle5-1" src="http://4volt.com/Blog/images/4volt_com/Blog/WindowsLiveWriter/GenerativeArtContextFree_B77F/tangle5-1_thumb.png" width="295" /&gt;&lt;/a&gt; &lt;a href="http://4volt.com/Blog/images/4volt_com/Blog/WindowsLiveWriter/GenerativeArtContextFree_B77F/tangle5-1_2.png" target="_blank"&gt;&lt;img title="CFDG - tangle5-1" style="display: inline; margin: 8px 0px 0px" height="295" alt="CFDG - tangle5-1" src="http://4volt.com/Blog/images/4volt_com/Blog/WindowsLiveWriter/GenerativeArtContextFree_B77F/tangle5-1_thumb.png" width="295" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;I’ve been playing around with &lt;a href="http://www.contextfreeart.org/"&gt;Context Free&lt;/a&gt; lately, it’s a 2D generative art program, meaning you can create art from code. Here’s the code for the above images:&lt;/p&gt;  &lt;div class="csharpcode"&gt;   &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;   1:  &lt;/span&gt;startshape SPIKES&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="lnum"&gt;   2:  &lt;/span&gt; &lt;/pre&gt;

  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;   3:  &lt;/span&gt;rule CENTER {&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="lnum"&gt;   4:  &lt;/span&gt;    10* {r 36} SPIKE { y 25}&lt;/pre&gt;

  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;   5:  &lt;/span&gt;}&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="lnum"&gt;   6:  &lt;/span&gt; &lt;/pre&gt;

  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;   7:  &lt;/span&gt;rule SPIKES {&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="lnum"&gt;   8:  &lt;/span&gt;    4* {r 90} SPIKE {}&lt;/pre&gt;

  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;   9:  &lt;/span&gt;}&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="lnum"&gt;  10:  &lt;/span&gt; &lt;/pre&gt;

  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;  11:  &lt;/span&gt;rule SPIKE {&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="lnum"&gt;  12:  &lt;/span&gt;    LSPIKE {}&lt;/pre&gt;

  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;  13:  &lt;/span&gt;}&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="lnum"&gt;  14:  &lt;/span&gt;rule SPIKE {&lt;/pre&gt;

  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;  15:  &lt;/span&gt;    LSPIKE { flip 90 }&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="lnum"&gt;  16:  &lt;/span&gt;}&lt;/pre&gt;

  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;  17:  &lt;/span&gt;rule BLOB {&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="lnum"&gt;  18:  &lt;/span&gt;    &lt;/pre&gt;

  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;  19:  &lt;/span&gt;}&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="lnum"&gt;  20:  &lt;/span&gt;rule LSPIKE {&lt;/pre&gt;

  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;  21:  &lt;/span&gt;    SQUARE {}&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="lnum"&gt;  22:  &lt;/span&gt;    LSPIKE { y 3 s 0.985 r 5}&lt;/pre&gt;

  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;  23:  &lt;/span&gt;}&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="lnum"&gt;  24:  &lt;/span&gt;rule LSPIKE 0.01 {&lt;/pre&gt;

  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;  25:  &lt;/span&gt;    SPIKE { r 90 }&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="lnum"&gt;  26:  &lt;/span&gt;    SPIKE { r -90 }&lt;/pre&gt;

  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;  27:  &lt;/span&gt;    LSPIKE { y 0.98 s 0.98 r 5}&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="lnum"&gt;  28:  &lt;/span&gt;}&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt; &lt;/p&gt;

&lt;p&gt;There’s a lot of cool stuff you can do with &lt;a href="http://www.contextfreeart.org/"&gt;Context Free&lt;/a&gt;, I’m looking forward to spending some more time with it.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://4volt.com/Blog/images/4volt_com/Blog/WindowsLiveWriter/GenerativeArtContextFree_B77F/tangle2_2.png" target="_blank"&gt;&lt;img title="CFDG - tangle2" style="display: inline; margin: 8px 0px 0px" height="295" alt="CFDG - tangle2" src="http://4volt.com/Blog/images/4volt_com/Blog/WindowsLiveWriter/GenerativeArtContextFree_B77F/tangle2_thumb.png" width="295" /&gt;&lt;/a&gt; &lt;a href="http://4volt.com/Blog/images/4volt_com/Blog/WindowsLiveWriter/GenerativeArtContextFree_B77F/tangle2_4.png" target="_blank"&gt;&lt;img title="CFDG - tangle2" style="display: inline; margin: 8px 0px 0px" height="295" alt="CFDG - tangle2" src="http://4volt.com/Blog/images/4volt_com/Blog/WindowsLiveWriter/GenerativeArtContextFree_B77F/tangle2_thumb_1.png" width="272" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://4volt.com/Blog/aggbug/123.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>4volt</dc:creator>
            <guid>http://4volt.com/Blog/archive/2009/03/07/generative-art-context-free.aspx</guid>
            <pubDate>Sat, 07 Mar 2009 21:10:13 GMT</pubDate>
            <wfw:comment>http://4volt.com/Blog/comments/123.aspx</wfw:comment>
            <comments>http://4volt.com/Blog/archive/2009/03/07/generative-art-context-free.aspx#feedback</comments>
            <wfw:commentRss>http://4volt.com/Blog/comments/commentRss/123.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Logging into TurboGears with Flex</title>
            <link>http://4volt.com/Blog/archive/2009/02/14/logging-into-turbogears-with-flex.aspx</link>
            <description>&lt;p&gt;I spent quite a bit of time today getting a Adobe Flex application to login into a TurboGears site and I couldn’t find any good articles on how to get it to work correctly, after quite a bit of trial and error I was able to figure it out. Here’s quick post on my findings.&lt;/p&gt;
&lt;h3&gt;Form Fields&lt;/h3&gt;
&lt;p&gt;The main trick is to get the POST form parameters correct. The default TurboGears “identity.form” parameters in your app.cfg are:&lt;/p&gt;
&lt;pre class="csharpcode"&gt;identity.form.user_name=&lt;span class="str"&gt;"user_name"&lt;/span&gt; identity.form.password=&lt;span class="str"&gt;"password"&lt;/span&gt; identity.form.submit=&lt;span class="str"&gt;"login"&lt;/span&gt;&lt;/pre&gt;
&lt;style type="text/css"&gt;&lt;![CDATA[
.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }]]&gt;&lt;/style&gt;
&lt;p&gt;   &lt;br /&gt;
To mimic those POST fields in Flex here’s what the mx:HTTPService would look like:&lt;/p&gt;
&lt;pre class="csharpcode"&gt;    &amp;lt;mx:HTTPService id=&lt;span class="str"&gt;"tg_login"&lt;/span&gt; method=&lt;span class="str"&gt;"POST"&lt;/span&gt; url=&lt;span class="str"&gt;"http://localhost:8080/"&lt;/span&gt; &lt;br /&gt;        result=&lt;span class="str"&gt;"handleResult(event)"&lt;/span&gt; fault=&lt;span class="str"&gt;"handleFault(event)"&lt;/span&gt; resultFormat=&lt;span class="str"&gt;"text"&lt;/span&gt;&amp;gt;&lt;br /&gt;    &lt;br /&gt;        &amp;lt;mx:request xmlns=&lt;span class="str"&gt;""&lt;/span&gt;&amp;gt;&lt;br /&gt;            &amp;lt;user_name&amp;gt;{username.text}&amp;lt;/user_name&amp;gt;&lt;br /&gt;            &amp;lt;password&amp;gt;{password.text}&amp;lt;/password&amp;gt;&lt;br /&gt;            &amp;lt;login&amp;gt;Submit&amp;lt;/login&amp;gt;&lt;br /&gt;        &amp;lt;/mx:request&amp;gt;&lt;br /&gt;    &amp;lt;/mx:HTTPService&amp;gt;&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;h3&gt;Crossdomain.xml&lt;/h3&gt;
&lt;p&gt;One other issue you may come across while testing on your local computer is Flex trying to read the crossdomain.xml file. &lt;/p&gt;
&lt;p&gt;Usually this file restricts what flash applications can post to your domain. That is a problem when testing since your Flex file is probably not hosted in your TurboGears project. (you would have to explicitly add it as a static file in order for it to be served)&lt;/p&gt;
&lt;p&gt;To avoid this problem you can create this crossdomain.xml file to allow access from all domains. Put the file in your TurboGears project directory under the \static\ folder. &lt;/p&gt;
&lt;pre class="csharpcode"&gt;&amp;lt;?xml version=&lt;span class="str"&gt;"1.0"&lt;/span&gt;?&amp;gt;&lt;br /&gt;&amp;lt;cross-domain-policy&amp;gt;&lt;br /&gt;  &amp;lt;allow-access-from domain=&lt;span class="str"&gt;"*"&lt;/span&gt; /&amp;gt;&lt;br /&gt;&amp;lt;/cross-domain-policy&amp;gt;&lt;/pre&gt;
&lt;style type="text/css"&gt;&lt;![CDATA[
.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }]]&gt;&lt;/style&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;To get that file hosted at the root of your site, you’ll need to add a static file entry in your app.cfg to include something that looks like this:&lt;/p&gt;
&lt;pre class="csharpcode"&gt;[/crossdomain.xml]&lt;br /&gt;static_filter.on = True&lt;br /&gt;static_filter.file = &lt;span class="str"&gt;"%(package_dir)s/static/crossdomain.xml"&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;   &lt;br /&gt;
Technically you could host your flex application file(s) in this same way, but eclipse would still launch the flex file from the wrong location when you compile/test.&lt;/p&gt;
&lt;h3&gt;Other Notes&lt;/h3&gt;
&lt;p&gt;Once you’ve logged in to TurboGears with Flex, you should be able to access any &lt;a href="mailto:“@identity.require"&gt;“@identity.require&lt;/a&gt;” restricted data in from TurboGears in Flex.&lt;/p&gt;
&lt;p&gt;When you are done with your development cycle and make your site public, you may want to remove crossdomain.xml from your site. Although, this only restricts clients that use the “honor system” and check for this file. If you want to truly restrict cross site scripting you should implement something on the backend.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;You can download the Flex Source here:&lt;/p&gt;
&lt;div&gt;&lt;a href="http://4volt.com/projects/random/Flex-to-TurboGearsLogin.zip"&gt;Flex-to-TurboGearsLogin.zip&lt;/a&gt;&lt;/div&gt;&lt;img src="http://4volt.com/Blog/aggbug/104.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>4volt</dc:creator>
            <guid>http://4volt.com/Blog/archive/2009/02/14/logging-into-turbogears-with-flex.aspx</guid>
            <pubDate>Sat, 14 Feb 2009 10:01:54 GMT</pubDate>
            <wfw:comment>http://4volt.com/Blog/comments/104.aspx</wfw:comment>
            <comments>http://4volt.com/Blog/archive/2009/02/14/logging-into-turbogears-with-flex.aspx#feedback</comments>
            <wfw:commentRss>http://4volt.com/Blog/comments/commentRss/104.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Flex LS, Spark Competition, and .Net Micro</title>
            <link>http://4volt.com/Blog/archive/2009/01/09/flex-ls-and-.net-micro.aspx</link>
            <description>&lt;p&gt;&lt;a href="http://www.sparkcontest.com/submissions/Detail.aspx?eid=141" target="_blank"&gt;&lt;img title="Shield Lines Logo - flexls" style="display: inline; margin: 8px 0px 0px" height="221" alt="Shield Lines Logo - flexls" src="http://4volt.com/Blog/images/4volt_com/Blog/WindowsLiveWriter/FlexLSand.NetMicro_149AF/Shield%20Lines%20Logo%20-%20flexls_3.jpg" width="295" align="right" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;I recently created a &lt;a href="http://www.sparkcontest.com/submissions/Detail.aspx?eid=141" target="_blank"&gt;entry&lt;/a&gt; for the Spark Competition, &lt;a href="http://www.sparkcontest.com/submissions/Detail.aspx?eid=141" target="_blank"&gt;go check it out and rate it highly&lt;/a&gt;. There’s 188 entries and the top 50 win a VIA Artigo Pico-ITX system which I’ve been excited to see since it’s release. I wrote a &lt;a href="http://4volt.com/Blog/archive/2008/12/09/5.aspx" target="_blank"&gt;blog entry&lt;/a&gt; about it back in December.&lt;/p&gt;  &lt;p&gt;The Spark Competition is for Microsoft's new embedded development environment focused on the new .&lt;a href="http://msdn.microsoft.com/en-us/embedded/bb267253.aspx" target="_blank"&gt;Net Micro framework&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;Microsoft's new framework is for lower-end microprocessors. While it is a Microsoft product it has some very interesting features like higher-level access to networking, interface, and data libraries. There are already some other competitors in this market, like the Linux based &lt;a href="http://www.gumstix.com/" target="_blank"&gt;gumstix&lt;/a&gt;.&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;The .NET Micro Framework brings a rich, managed-code environment to smaller, less expensive, and more resource-constrained devices. Requiring only a few hundred kilobytes of RAM and an inexpensive processor, the .NET Micro Framework was built from the ground up to let you build applications using familiar Visual Studio development tools.&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;The ARTiGO Pico-ITX is probably over powered for the mid-range embedded market, I’ve seen some &lt;a href="http://www.ghielectronics.com/details.php?id=107" target="_blank"&gt;cool things&lt;/a&gt; made with the .net micro framework on much more modest hardware, it does not require windows CE.&lt;/p&gt;  &lt;p&gt;In this video someone uses a USB(!) joystick to control a robot arm, he states the code only took a couple hours to write with the Micro environment.&lt;/p&gt;  &lt;p&gt;   &lt;/p&gt;&lt;div class="wlWriterEditableSmartContent" id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:cd8ea9bf-fa74-4098-a42b-8ab075d01c58" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;&lt;div&gt;&lt;object width="425" height="355"&gt;&lt;param name="movie" value="http://www.youtube.com/v/id11Ilqvq4k&amp;amp;color1=0xb1b1b1&amp;amp;color2=0xcfcfcf&amp;amp;feature=player_embedded&amp;amp;fs=1&amp;amp;hl=en" /&gt;&lt;embed src="http://www.youtube.com/v/id11Ilqvq4k&amp;amp;color1=0xb1b1b1&amp;amp;color2=0xcfcfcf&amp;amp;feature=player_embedded&amp;amp;fs=1&amp;amp;hl=en" type="application/x-shockwave-flash" width="425" height="355" /&gt;&lt;/object&gt;&lt;/div&gt;&lt;/div&gt;   &lt;p&gt;I don’t think the Micro environment is a perfect fit for all embedded projects, and I haven’t been able to find the licensing cost, but I doubt it’s free. On the other hand it does provide a lot of easy higher level libraries that are sure to cut down on development time.&lt;/p&gt;  &lt;p&gt;I’m interested in the platform purely because I already know the .net framework and I find it a good tool for rapid development of programs. My &lt;a href="http://4volt.com/projects/PSCombine/" target="_blank"&gt;PSCombine&lt;/a&gt; program is written in vb.net 2.0.&lt;/p&gt;&lt;img src="http://4volt.com/Blog/aggbug/69.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>4volt</dc:creator>
            <guid>http://4volt.com/Blog/archive/2009/01/09/flex-ls-and-.net-micro.aspx</guid>
            <pubDate>Sat, 10 Jan 2009 07:26:24 GMT</pubDate>
            <wfw:comment>http://4volt.com/Blog/comments/69.aspx</wfw:comment>
            <comments>http://4volt.com/Blog/archive/2009/01/09/flex-ls-and-.net-micro.aspx#feedback</comments>
            <wfw:commentRss>http://4volt.com/Blog/comments/commentRss/69.aspx</wfw:commentRss>
        </item>
        <item>
            <title>PSCombine 1.5.0</title>
            <link>http://4volt.com/Blog/archive/2008/12/30/pscombine-1.5.0.aspx</link>
            <description>&lt;p&gt;&lt;a href="http://4volt.com/Blog/images/4volt_com/Blog/WindowsLiveWriter/PSCombine1.1.0_2179/100_2.jpg" target="_blank"&gt;&lt;img title="100" style="display: inline; margin: 8px 0px 0px" height="401" alt="100" src="http://4volt.com/Blog/images/4volt_com/Blog/WindowsLiveWriter/PSCombine1.1.0_2179/100_thumb.jpg" width="600" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;I’ve just released version 1.5 of the PSCombine program. I’ve put quite a bit of time and effort into it the last few days trying to make it more flexible, and easier to use.&lt;/p&gt;  &lt;p&gt;Head over to &lt;a href="http://4volt.com/projects/PSCombine/" target="_blank"&gt;4volt.com/projects/PSCombine/&lt;/a&gt; to download the new version.&lt;/p&gt;  &lt;p&gt;If you enjoy PSCombine, you can always &lt;a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;amp;hosted_button_id=2181243" target="_blank"&gt;donate&lt;/a&gt;, or just drop me a note.&lt;/p&gt;  &lt;p&gt;Here’s a quick rundown on the new features:&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Live View&lt;/strong&gt;    &lt;br /&gt;When you are actively generating images you can use the “Live View” tab to view the images that Photoshop writes immediately after they are finished. So you can view your last image while your next one is being generated.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Issue Fixes     &lt;br /&gt;&lt;/strong&gt;Fixed issue when loading a small set of images&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Updates to logging system&lt;/strong&gt;    &lt;br /&gt;Blending modes are now listed by name instead of ID    &lt;br /&gt;A benchmarking text tells you on average how long each combination takes&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Advanced Settings&lt;/strong&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;strong&gt;Blending Table&lt;/strong&gt;      &lt;br /&gt;Allows you to change the minimum and maximum opacity for each blending mode, you can also disable blending modes you don’t like. Changes to the blending table take effect immediately, so you can tweak your settings while you are generating random images.&lt;/li&gt;    &lt;li&gt;&lt;strong&gt;The Filters Table&lt;/strong&gt;      &lt;br /&gt;Allows you to individually control which filters are used. There is also a reference table that shows on average how long each filter takes to run, witch may be useful for eliminating filters that take too much time. Changes to this table will also take effect immediately. &lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Allowed File Types&lt;/strong&gt;      &lt;br /&gt;You may add and remove which types of files Photoshop attempts to combine, these types can be any that Photoshop understands.&lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Keep PSCombine on top&lt;/strong&gt;      &lt;br /&gt;Keeps the PSCombine program on top of all other programs, this might be useful in conjunction with the “Live View” option. &lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Check for updates&lt;/strong&gt;      &lt;br /&gt;Automatically checks if there are updates to the program are available on the site, and provides a link to the updated installer&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;a href="http://4volt.com/Blog/images/4volt_com/Blog/WindowsLiveWriter/PSCombine1.1.0_2179/LiveView_2.jpg" target="_blank"&gt;&lt;img title="PSCombine - LiveView" style="display: inline; margin: 8px 0px 0px" height="295" alt="PSCombine - LiveView" src="http://4volt.com/Blog/images/4volt_com/Blog/WindowsLiveWriter/PSCombine1.1.0_2179/LiveView_thumb.jpg" width="252" /&gt;&lt;/a&gt; &lt;a href="http://4volt.com/Blog/images/4volt_com/Blog/WindowsLiveWriter/PSCombine1.1.0_2179/AdvSettings_2.jpg" target="_blank"&gt;&lt;img title="PSCombine - Advanced Settings" style="display: inline; margin: 8px 0px 0px" height="295" alt="PSCombine - Advanced Settings" src="http://4volt.com/Blog/images/4volt_com/Blog/WindowsLiveWriter/PSCombine1.1.0_2179/AdvSettings_thumb.jpg" width="252" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://4volt.com/Blog/images/4volt_com/Blog/WindowsLiveWriter/PSCombine1.1.0_2179/64_2.jpg" target="_blank"&gt;&lt;img title="64" style="display: inline; margin: 8px 0px 0px" height="197" alt="64" src="http://4volt.com/Blog/images/4volt_com/Blog/WindowsLiveWriter/PSCombine1.1.0_2179/64_thumb.jpg" width="295" /&gt;&lt;/a&gt; &lt;a href="http://4volt.com/Blog/images/4volt_com/Blog/WindowsLiveWriter/PSCombine1.1.0_2179/51_2.jpg" target="_blank"&gt;&lt;img title="51" style="display: inline; margin: 8px 0px 0px" height="197" alt="51" src="http://4volt.com/Blog/images/4volt_com/Blog/WindowsLiveWriter/PSCombine1.1.0_2179/51_thumb.jpg" width="295" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://4volt.com/Blog/aggbug/49.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>4volt</dc:creator>
            <guid>http://4volt.com/Blog/archive/2008/12/30/pscombine-1.5.0.aspx</guid>
            <pubDate>Wed, 31 Dec 2008 05:33:36 GMT</pubDate>
            <wfw:comment>http://4volt.com/Blog/comments/49.aspx</wfw:comment>
            <comments>http://4volt.com/Blog/archive/2008/12/30/pscombine-1.5.0.aspx#feedback</comments>
            <wfw:commentRss>http://4volt.com/Blog/comments/commentRss/49.aspx</wfw:commentRss>
        </item>
        <item>
            <title>PSCombine: Computer Assisted Art</title>
            <link>http://4volt.com/Blog/archive/2008/12/25/40.aspx</link>
            <description>&lt;p&gt; I've posted the first version of my image randomizer program, I like to think of it as "Computer Assisted Art".&lt;/p&gt;
&lt;p&gt;&lt;a href="http://4volt.com/projects/PSCombine/"&gt;http://4volt.com/projects/PSCombine/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you have any issues installing or using the program, &lt;a href="mailto:jeremy@4volt.com?subject=PSCombine"&gt;email me&lt;/a&gt;, or post a message here.&lt;/p&gt;
&lt;p&gt;Update: I've released version 1.0.4 that solves some incompatibility issues with Photoshop CS3. If you previously were having issues and were running CS3, download and install 1.0.4.&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;&lt;a target="_blank" href="http://4volt.com/Blog/images/4volt_com/Blog/WindowsLiveWriter/PSCombine_5326/SetupView_2.jpg"&gt;&lt;img height="295" width="252" src="http://4volt.com/Blog/images/4volt_com/Blog/WindowsLiveWriter/PSCombine_5326/SetupView_thumb.jpg" alt="SetupView" style="margin: 8px 0px 0px; display: inline;" title="SetupView" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://4volt.com/Blog/aggbug/40.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>4volt</dc:creator>
            <guid>http://4volt.com/Blog/archive/2008/12/25/40.aspx</guid>
            <pubDate>Thu, 25 Dec 2008 13:54:39 GMT</pubDate>
            <wfw:comment>http://4volt.com/Blog/comments/40.aspx</wfw:comment>
            <comments>http://4volt.com/Blog/archive/2008/12/25/40.aspx#feedback</comments>
            <slash:comments>6</slash:comments>
            <wfw:commentRss>http://4volt.com/Blog/comments/commentRss/40.aspx</wfw:commentRss>
        </item>
        <item>
            <title>PSCombine: Computer Assisted Art</title>
            <link>http://4volt.com/Blog/archive/2008/12/20/34.aspx</link>
            <description>&lt;p&gt;&lt;a href="http://4volt.com/Blog/images/4volt_com/Blog/WindowsLiveWriter/Imageaday9RandomIntroduction_11212/1176_2.jpg"&gt;&lt;img height="400" width="600" title="1176" style="display: inline;" alt="1176" src="http://4volt.com/Blog/images/4volt_com/Blog/WindowsLiveWriter/Imageaday9RandomIntroduction_11212/1176_thumb.jpg" /&gt;&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;I’ve written a program that randomly selects photos from my collection and then combines them with a random opacity and blending mode. Generally, I generate 5,000 random combinations then manually sort though them and select my favorites. About 1 in 150 make the cut. &lt;/p&gt;
&lt;p&gt;The following photos were randomly combined and mixed to create interesting new art. I like to think of this as "Computer Assisted Art".&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;I’ve published my most recent gallery here: &lt;a href="http://www.4volt.com/art/Default.aspx?Gallery=Random+Set+2008" target="_blank"&gt;4volt.com/art/&lt;/a&gt;, the images in this post are from there, as well as part of my &lt;a href="javascript:void(0);/*1230458445121*/"&gt;ImageBook 2008&lt;/a&gt; printed book (also available as PDF) that I'm giving away as a contest this week, all you have to do to enter is leave a comment.&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;I've posted the PSRandom program, you'll need: Windows, Photoshop CS3 or CS4, and .NET. Give it a try and see what you think.  &lt;a href="http://4volt.com/projects/PSCombine/"&gt;http://4volt.com/projects/PSCombine/&lt;/a&gt;.&lt;/p&gt;
&lt;table cellspacing="0" cellpadding="2" border="0" width="610"&gt;
    &lt;tbody&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="305"&gt;&lt;a href="http://4volt.com/Blog/images/4volt_com/Blog/WindowsLiveWriter/Imageaday9RandomIntroduction_11212/1413_2.jpg" target="_blank"&gt;&lt;img height="442" width="295" title="1413" style="margin: 0px; display: inline;" alt="1413" src="http://4volt.com/Blog/images/4volt_com/Blog/WindowsLiveWriter/Imageaday9RandomIntroduction_11212/1413_thumb.jpg" /&gt;&lt;/a&gt;&lt;/td&gt;
            &lt;td valign="top" width="305"&gt;&lt;a href="http://4volt.com/Blog/images/4volt_com/Blog/WindowsLiveWriter/Imageaday9RandomIntroduction_11212/2276_2.jpg" target="_blank"&gt;&lt;img height="221" width="295" title="2276" style="display: inline;" alt="2276" src="http://4volt.com/Blog/images/4volt_com/Blog/WindowsLiveWriter/Imageaday9RandomIntroduction_11212/2276_thumb.jpg" /&gt;&lt;/a&gt;&lt;a href="http://4volt.com/Blog/images/4volt_com/Blog/WindowsLiveWriter/Imageaday9RandomIntroduction_11212/1604_2.jpg" target="_blank"&gt;&lt;img height="213" width="295" title="1604" style="margin: 8px 0px 0px; display: inline;" alt="1604" src="http://4volt.com/Blog/images/4volt_com/Blog/WindowsLiveWriter/Imageaday9RandomIntroduction_11212/1604_thumb.jpg" /&gt;&lt;/a&gt;&lt;/td&gt;
        &lt;/tr&gt;
    &lt;/tbody&gt;
&lt;/table&gt;&lt;img src="http://4volt.com/Blog/aggbug/34.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>4volt</dc:creator>
            <guid>http://4volt.com/Blog/archive/2008/12/20/34.aspx</guid>
            <pubDate>Sun, 21 Dec 2008 03:29:27 GMT</pubDate>
            <wfw:comment>http://4volt.com/Blog/comments/34.aspx</wfw:comment>
            <comments>http://4volt.com/Blog/archive/2008/12/20/34.aspx#feedback</comments>
            <slash:comments>15</slash:comments>
            <wfw:commentRss>http://4volt.com/Blog/comments/commentRss/34.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Genetic Algorithms</title>
            <link>http://4volt.com/Blog/archive/2008/12/08/2.aspx</link>
            <description>&lt;img alt="Flash Based Genetic Algorithm" src="/blog/ImagePost/001-ga.jpg" /&gt;
&lt;p&gt;I came across this flash based genetic algorithm on Hack A Day.&lt;/p&gt;
&lt;p&gt;If you are unfamiliar with genetic programming, the concept is for a program to "evolve" a solution to a given problem. A random population of candidates is generated and each is scored against each other and the fittest survive to the next generation where they are again randomly modified. With enough time and a good scoring system you can evolve a solution, this little flash app perfectly illustrates the concept.&lt;/p&gt;
&lt;p&gt;In this instance flash tries to evolve a car where the red dots (passengers) are protected from the bumpy road. The score is based on how long the passengers survive without touching the bumpy road.&lt;/p&gt;
&lt;p&gt;I find this field of programming extremely interesting. The kinds of problems that can be solved with this approach is potentially unlimited. Specifically, I would love to see more projects combining genetic algorithms with robotic control systems which would replace the tedious motion routines. Imagine a genetically programmed robot that could learn to move for itself with any hardware while keeping itself charged and preforming tasks.&lt;/p&gt;
&lt;embed height="400" width="500" src="http://www.wreck.devisland.net/ga/ga.swf" quality="high" type="application/x-shockwave-flash" /&gt;  &lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.wreck.devisland.net/ga/" target="_new"&gt;www.wreck.devisland.net/ga/&lt;/a&gt;&lt;img src="http://4volt.com/Blog/aggbug/2.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>4volt</dc:creator>
            <guid>http://4volt.com/Blog/archive/2008/12/08/2.aspx</guid>
            <pubDate>Tue, 09 Dec 2008 06:47:26 GMT</pubDate>
            <wfw:comment>http://4volt.com/Blog/comments/2.aspx</wfw:comment>
            <comments>http://4volt.com/Blog/archive/2008/12/08/2.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://4volt.com/Blog/comments/commentRss/2.aspx</wfw:commentRss>
        </item>
    </channel>
</rss>