<?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>The Mindful Coder &#187; Code</title>
	<atom:link href="http://themindfulcoder.com/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://themindfulcoder.com</link>
	<description>Code, yes. But think about it a little first.</description>
	<lastBuildDate>Sat, 21 Aug 2010 22:27:16 +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>Why Oracle may get away with it?</title>
		<link>http://themindfulcoder.com/2010/08/why-oracle-may-get-away-with-it/</link>
		<comments>http://themindfulcoder.com/2010/08/why-oracle-may-get-away-with-it/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 16:39:32 +0000</pubDate>
		<dc:creator>The Fat Oracle</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://themindfulcoder.com/?p=92</guid>
		<description><![CDATA[If you have read my previous post and want to get into the high level technical details of why Oracle thinks it might have a case, read Osvaldo Pinali Doederlein\&#8217;s blog on Java.net. It&#8217;s legal and perhaps speaks to why Oracle bought Sun in the first place. They don&#8217;t care about the community. They saw the [...]]]></description>
			<content:encoded><![CDATA[<p>If you have read my previous post and want to get into the high level technical details of why Oracle thinks it might have a case, read <a href="http://www.java.net/blog/8494">Osvaldo Pinali Doederlein\&#8217;s blog on Java.net</a>.</p>
<p>It&#8217;s legal and perhaps speaks to why Oracle bought Sun in the first place. They don&#8217;t care about the community. They saw the potential ransom they could hold the big companies like Google up for and that was the whole point of buying Sun. They have zero interest in spreading or encouraging the use of Java or its open-source community ideals.</p>
]]></content:encoded>
			<wfw:commentRss>http://themindfulcoder.com/2010/08/why-oracle-may-get-away-with-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle fulfills the oracular prediction of causing the demise of Java</title>
		<link>http://themindfulcoder.com/2010/08/oracle-fulfills-the-oracular-prediction-of-causing-the-demise-of-java/</link>
		<comments>http://themindfulcoder.com/2010/08/oracle-fulfills-the-oracular-prediction-of-causing-the-demise-of-java/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 14:47:56 +0000</pubDate>
		<dc:creator>The Fat Oracle</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Fundas]]></category>

		<guid isPermaLink="false">http://themindfulcoder.com/?p=88</guid>
		<description><![CDATA[Here are the patents that Oracle says Google is violating? The problem? Most of these patents were originally filed by Sun to see how much they can push the limits of what can be patented in response to being sued on similar flimsy basis by another firm (forget who) &#8211; successfully I might add. Judge [...]]]></description>
			<content:encoded><![CDATA[<p>Here are the patents that Oracle says Google is violating?</p>
<p>The problem? Most of these patents were originally filed by Sun to see how much they can push the limits of what can be patented in response to being sued on similar flimsy basis by another firm (forget who) &#8211; successfully I might add.</p>
<p>Judge for yourself. Here are the patents in question:</p>
<p><span style="font-family: arial, verdana, helvetica, sans-serif; line-height: 15px;"> </span></p>
<p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; font-size: 13px; margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-position: initial initial; background-repeat: initial initial; padding: 0px; border: 0px initial initial;">*************************************************</p>
<p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; font-size: 13px; margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-position: initial initial; background-repeat: initial initial; padding: 0px; border: 0px initial initial;"><em><strong>United States Patent 6,910,205 June 21, 2005</strong></em><br />
<a style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; font-size: 13px; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; text-decoration: none; color: #2e5e8d; background-position: initial initial; background-repeat: initial initial; padding: 0px; margin: 0px; border: 0px initial initial;" href="http://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO2&amp;Sect2=HITOFF&amp;p=1&amp;u=/netahtml/PTO/search-bool.html&amp;r=1&amp;f=G&amp;l=50&amp;co1=AND&amp;d=PTXT&amp;s1=6,910,205.PN.&amp;OS=PN/6,910,205&amp;RS=PN/6,910,205" target="_blank">Interpreting functions utilizing a hybrid of virtual and native machine instructions </a><br />
(The &#8220;Speeding Up Something Slow Makes It Faster&#8221; Patent)</p>
<p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; font-size: 13px; margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-position: initial initial; background-repeat: initial initial; padding: 0px; border: 0px initial initial;"><em><strong>United States Patent RE38,104 April 2003</strong></em><br />
<a style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; font-size: 13px; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; text-decoration: none; color: #2e5e8d; background-position: initial initial; background-repeat: initial initial; padding: 0px; margin: 0px; border: 0px initial initial;" href="http://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO2&amp;Sect2=HITOFF&amp;p=1&amp;u=/netahtml/PTO/search-bool.html&amp;r=1&amp;f=G&amp;l=50&amp;co1=AND&amp;d=PTXT&amp;s1=RE38,104.PN.&amp;OS=PN/RE38,104&amp;RS=PN/RE38,104" target="_blank">Method and apparatus for resolving data references in generated code<br />
</a>The &#8220;Direct is More Direct Than Indirect&#8221; Patent <em>(James Gosling&#8217;s Patent)</em></p>
<p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; font-size: 13px; margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-position: initial initial; background-repeat: initial initial; padding: 0px; border: 0px initial initial;"><em><strong>United States Patent 7,426,720 September 2008<br />
</strong></em><a style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; font-size: 13px; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; text-decoration: none; color: #2e5e8d; background-position: initial initial; background-repeat: initial initial; padding: 0px; margin: 0px; border: 0px initial initial;" href="http://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO2&amp;Sect2=HITOFF&amp;p=1&amp;u=/netahtml/PTO/search-bool.html&amp;r=1&amp;f=G&amp;l=50&amp;co1=AND&amp;d=PTXT&amp;s1=7,426,720.PN.&amp;OS=PN/7,426,720&amp;RS=PN/7,426,720" target="_blank">System and method for dynamic preloading of classes through memory space cloning of a master runtime system process</a><br />
The &#8220;Memory Access is Faster than Disc Access&#8221; Patent</p>
<p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; font-size: 13px; margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-position: initial initial; background-repeat: initial initial; padding: 0px; border: 0px initial initial;"><em><strong>United States Patent 5,966,702 October 12, 1999<br />
</strong></em><a style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; font-size: 13px; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; text-decoration: none; color: #2e5e8d; background-position: initial initial; background-repeat: initial initial; padding: 0px; margin: 0px; border: 0px initial initial;" href="http://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO2&amp;Sect2=HITOFF&amp;p=1&amp;u=/netahtml/PTO/search-bool.html&amp;r=1&amp;f=G&amp;l=50&amp;co1=AND&amp;d=PTXT&amp;s1=5,966,702.PN.&amp;OS=PN/5,966,702&amp;RS=PN/5,966,702" target="_blank">Method and apparatus for pre-processing and packaging class files</a><br />
The &#8220;Smells like WinZip&#8221;  Patent</p>
<p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; font-size: 13px; margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-position: initial initial; background-repeat: initial initial; padding: 0px; border: 0px initial initial;"><em><strong>United States Patent 6,125,447 September 2000<br />
</strong></em><a style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; font-size: 13px; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; text-decoration: none; color: #2e5e8d; background-position: initial initial; background-repeat: initial initial; padding: 0px; margin: 0px; border: 0px initial initial;" href="http://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO2&amp;Sect2=HITOFF&amp;p=1&amp;u=/netahtml/PTO/search-bool.html&amp;r=1&amp;f=G&amp;l=50&amp;co1=AND&amp;d=PTXT&amp;s1=6,125,447.PN.&amp;OS=PN/6,125,447&amp;RS=PN/6,125,447" target="_blank">Protection domains to provide security in a computer system </a><br />
The &#8220;Well, it works for Users and Groups&#8221; Patent</p>
<p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; font-size: 13px; margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-position: initial initial; background-repeat: initial initial; padding: 0px; border: 0px initial initial;"><em><strong>United States Patent 6,061,520 May 2000<br />
</strong></em><a style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; font-size: 13px; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; text-decoration: none; color: #2e5e8d; background-position: initial initial; background-repeat: initial initial; padding: 0px; margin: 0px; border: 0px initial initial;" href="http://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO2&amp;Sect2=HITOFF&amp;p=1&amp;u=/netahtml/PTO/search-bool.html&amp;r=1&amp;f=G&amp;l=50&amp;co1=AND&amp;d=PTXT&amp;s1=6,061,520.PN.&amp;OS=PN/6,061,520&amp;RS=PN/6,061,520" target="_blank">Method and system for performing static initialization</a><br />
The &#8220;Static Side-Step&#8221; Pattern</p>
<p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; font-size: 13px; margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-position: initial initial; background-repeat: initial initial; padding: 0px; border: 0px initial initial;">*************************************************</p>
<p>via <a href="http://www.theserverside.com/discussions/thread.tss?thread_id=60746">Can Andriod Pass the Copyright Test? &#8211; TheServerSide.com</a>.</p>
<p>Update: The company that sued Sun in the past that I mentioned above was IBM &#8211; weird I forgot it was them. See James Gosling&#8217;s (inventor of Java) comments here in this very informative summary of this show down &#8211; <a href="http://www.theserverside.com/report/The-Oracle-Google-Patent-Lawsuit-Demystified">The Oracle Google Patent Lawsuit Demystified</a></p>
<p>In particular:</p>
<blockquote><p>James Gosling mentioned that when he worked for Sun, <em>&#8220;IBM sued over a RISC patent that asserted that &#8216;if you make something simpler, it&#8217;ll go faster.&#8217; Seemed like a blindingly obvious notion that shouldn&#8217;t have been patentable, but we got sued, and lost.&#8221;</em> I can only imagine that seeing this patent of his involved in the fray put a bit of a smile on Gosling&#8217;s face.</p></blockquote>
<p>and</p>
<blockquote><p><strong>&#8220;There was even an unofficial competition to see who could get the goofiest patent through the system.&#8221;</strong><br />
-James Gosling</p></blockquote>
<p>Read the whole article. Good information.</p>
]]></content:encoded>
			<wfw:commentRss>http://themindfulcoder.com/2010/08/oracle-fulfills-the-oracular-prediction-of-causing-the-demise-of-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The good, bad and the ugly of Android</title>
		<link>http://themindfulcoder.com/2010/08/the-good-bad-and-the-ugly-of-android/</link>
		<comments>http://themindfulcoder.com/2010/08/the-good-bad-and-the-ugly-of-android/#comments</comments>
		<pubDate>Thu, 05 Aug 2010 21:11:25 +0000</pubDate>
		<dc:creator>The Fat Oracle</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Fundas]]></category>

		<guid isPermaLink="false">http://themindfulcoder.com/?p=75</guid>
		<description><![CDATA[Good? It&#8217;s open Bad? It&#8217;s open Ugly? It&#8217;s open Let me explain that. I am an Android fan boy because the platform is so open that I can do anything I want with it. The U.S. Army loves it, NASA is doing things with it that are out there (literally), and most importantly I just [...]]]></description>
			<content:encoded><![CDATA[<p>Good? It&#8217;s open</p>
<p>Bad? It&#8217;s open</p>
<p>Ugly? It&#8217;s open</p>
<p>Let me explain that.</p>
<p>I am an Android fan boy because the platform is so open that I can do anything I want with it. The <a href="http://androidcommunity.com/apps-for-the-army-wraps-up-android-comes-out-on-top-20100805/">U.S. Army</a> loves it, NASA is <a href="http://www.readwriteweb.com/archives/nasa_sends_android_phone_to_space.php">doing things with it</a> that are out there (literally), and most importantly I just saved 60 bucks in hotel Internet charges (boooo!) a couple of weekends ago when travelling using my Nexus One as a wifi access point &#8211; I mean what can&#8217;t it do? If you can thunk it, you can plunk it on the Android.</p>
<p>But as some burned soul once said evil is that which takes the good in us into the past to lesser freedom, lesser livingness, lesser intelligence, light and love. As over the top as that assessment is, that&#8217;s exactly what carriers out there do. Android is open to the extent that it allows carriers to disable all the goodness in Android and put horribly hobbled devices on the market. I bought a Nexus One a few months back and its such a dream &#8211; I can do anything with it. But I am a mobile developer and have had the opportunity (???) to play with devices that will soon be on the market from various carriers and they are horribly hobbled &#8211; you cannot download non-market place apps, the wifi hotspot function is gone, no USB tethering &#8211; everything that I take for granted on the Nexus One. Not cool.</p>
<p>Also not smart&#8230;and ugly as hell. Yesterday <a href="http://www.geeky-gadgets.com/no-tethering-and-wifi-hotspot-for-motorola-droid-with-android-2-2-04-08-2010/">Verizon put out a statement</a> saying that there will be no wifi hotspot or tethering on the Motorola Droid (on 2.2/Froyo) because apparently the Motorola hardware does not support it. Except that the same hardware can magically run both features when rooted. I mean come on, be outright about it and say you want to control the platform because you are afraid it will increase network load and you want to charge more for tethering and offer it as a paid-for option in the future. By lying, Verizon is saying we think you are fools who don&#8217;t know any better and forgetting that the base that goes for Android phones are usually the geekier of us.</p>
<p>And Google, sometimes you can be too open. Or let me put it this way &#8211; you can be artlessly open. Like when you install an Android app, the installer will show you all the permissions used by that app. This is one of the encouraging things about Android &#8211; it won&#8217;t allow me to develop an app that uses a phone feature without me explicitly declaring in the application manifest that I need those permissions. So when the end user is installing the app, he or she knows exactly what they are signing up for.</p>
<p>The problem is that the permissions listed for the end user state the &#8220;what&#8221; (what permissions are needed) but there is no framework to explain the &#8220;why&#8217; (why does this app require these permissions?). The result is that an end user either gets frightened away from installing an useful app after reading the frightening text during installation that this app needs access to your phone information including your number &#8211; when in reality the app probably is using your device id to identify you as a user so if you are to accidentally delete this app and reinstall it, your data would not be lost. Agreed that there are better ways to do it but my point is that brutal transparency is not as helpful as toned transparency. The impact at the other end of this kind of openness is that users become so used to seeing the permissions page during an install that they soon become immune to it and stop reading it all together. The boy who cried wolf thing.</p>
<p>There has to be a solution somewhere between the Android&#8217;s brute force openness and Apple&#8217;s now clichéd walled garden. But if it was a choice, I would never give up my Android for the iPhone. Thankfully I live in a world where I can own and enjoy both <img src='http://themindfulcoder.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
]]></content:encoded>
			<wfw:commentRss>http://themindfulcoder.com/2010/08/the-good-bad-and-the-ugly-of-android/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Android Development Quirks -1</title>
		<link>http://themindfulcoder.com/2010/06/android-development-quirks-1/</link>
		<comments>http://themindfulcoder.com/2010/06/android-development-quirks-1/#comments</comments>
		<pubDate>Sat, 26 Jun 2010 01:48:34 +0000</pubDate>
		<dc:creator>The Fat Oracle</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[debug log]]></category>
		<category><![CDATA[devices]]></category>
		<category><![CDATA[log not showing]]></category>
		<category><![CDATA[logcat]]></category>
		<category><![CDATA[view]]></category>

		<guid isPermaLink="false">http://themindfulcoder.com/?p=64</guid>
		<description><![CDATA[I just finished my first Android app and I loved the experience. I did come across many many not-so-obvious quirks of Android development &#8211; both in the tooling and the platform that I wanted to write in one long post. There was all in this one sticky on my desktop. Deleted it. It even asked [...]]]></description>
			<content:encoded><![CDATA[<p>I just finished my first Android app and I loved the experience. I did come across many many not-so-obvious quirks of Android development &#8211; both in the tooling and the platform that I wanted to write in one long post. There was all in this one sticky on my desktop. Deleted it. It even asked me to confirm I wanted to delete it and yet I went ahead and clicked yes.</p>
<p>I&#8217;ll just have to try to remember them going forward. For now, here&#8217;s one that might confuse you especially if you are debugging your Android app on both emulator and the device..or maybe multiple emulators.</p>
<p>Android debug, error,or log messages can be tracked through LogCat which looks something like this:</p>
<p style="text-align: left;"><a href="http://themindfulcoder.com/wp-content/uploads/2010/06/logcat.png"><img class="aligncenter size-medium wp-image-65" title="logcat" src="http://themindfulcoder.com/wp-content/uploads/2010/06/logcat-300x111.png" alt="" width="300" height="111" /></a></p>
<p style="text-align: left;">Now, while in the midst of happy debugging , if your log messages suddenly stop showing up in logcat &#8211; basically nothing is showing up in logcat &#8211; then it basically means that Android has for some reasons lost &#8220;focus&#8221; on your current emulator. This will most likely happen when you are triggering a debug session.</p>
<p style="text-align: left;">You fix this by opening up the devices view (Window-&gt;ShowView-&gt;Others-&gt;Devices) and selecting the emulator for which you want to see the debug messages. In the screenshot below, I&#8217;ve selected the device instead of the emulator. Now go back to the LogCat view and your log including what flew by before you selected the device should show up.</p>
<p style="text-align: left;"><a href="http://themindfulcoder.com/wp-content/uploads/2010/06/devices.png"><img class="aligncenter size-medium wp-image-66" title="devices" src="http://themindfulcoder.com/wp-content/uploads/2010/06/devices-300x151.png" alt="" width="300" height="151" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://themindfulcoder.com/2010/06/android-development-quirks-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WebOrb for .Net Installation on Windows 7</title>
		<link>http://themindfulcoder.com/2009/05/weborb-for-net-installation-on-windows-7/</link>
		<comments>http://themindfulcoder.com/2009/05/weborb-for-net-installation-on-windows-7/#comments</comments>
		<pubDate>Tue, 12 May 2009 17:38:52 +0000</pubDate>
		<dc:creator>The Fat Oracle</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Remoting]]></category>
		<category><![CDATA[500.23]]></category>
		<category><![CDATA[IIS 7]]></category>
		<category><![CDATA[IIS7]]></category>
		<category><![CDATA[WebOrb]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Windows Vista]]></category>

		<guid isPermaLink="false">http://themindfulcoder.com/2009/05/weborb-for-net-installation-on-windows-7/</guid>
		<description><![CDATA[The first problem I hit when I installed WebOrb for .Net is that after what looked like a successful installation, the installer took me to what was supposed to be the management console for WebOrb. However, I got the following error instead: &#8212;&#8211; Server Error in Application “Default Web Site/WebOrb30” Error Summary: Http Error 500.23 [...]]]></description>
			<content:encoded><![CDATA[<p>The first problem I hit when I installed <a href="http://www.themidnightcoders.com/products/weborb-for-net/overview.html">WebOrb for .Net</a> is that after what looked like a successful installation, the installer took me to what was supposed to be the management console for WebOrb. However, I got the following error instead:</p>
<p>&#8212;&#8211;</p>
<p>Server Error in Application “Default Web Site/WebOrb30”</p>
<p>Error Summary:</p>
<p>Http Error 500.23 – Internal Server Error</p>
<p>An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.</p>
<p><a href="http://themindfulcoder.com/wp-content/uploads/2009/05/webordhttp50023.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="WebOrdHttp50023" border="0" alt="WebOrdHttp50023" src="http://themindfulcoder.com/wp-content/uploads/2009/05/webordhttp50023-thumb.png" width="509" height="370" /></a> </p>
<p>I am working on Windows 7, so I am dealing with IIS7, not IIS6. I suspect you would face this issue on Windows Vista as well.</p>
<p>This happens because IIS7 hosts ASP.Net Applications using the ASP.NET Integrated mode by default. ASP.NET Integrated mode provides applications with a lot of very useful and efficiency-boosting features such as </p>
<ul>
<li>ASP.NET services such as Forms Authentication, URL Authorization, Output caching etc. are not available to all content types – where they were previously available only to ASP.NET content types such as .aspx pages.</li>
<li>IIS7 has tighter unified configuration for IIS and ASP.NET modules/handlers. </li>
<li>IIS’s modules were traditionally developed using the C++ server API and server extensions previously needed to be (not always but most of the time) developed in the ISAPI filter or extension extensibility mode. This is no longer the case and ASP.NET modules can now talk to the server pipeline directly.</li>
</ul>
<p>A good detailed explanation of the ASP.NET integration architecture and advantages can be read here:</p>
<p><a title="http://learn.iis.net/page.aspx/243/aspnet-integration-with-iis7/" href="http://learn.iis.net/page.aspx/243/aspnet-integration-with-iis7/">http://learn.iis.net/page.aspx/243/aspnet-integration-with-iis7/</a></p>
<p>However, this also means that applications, such as WebOrb which were not developed for IIS7 in particular and don’t use ASP.NET Integrated mode will break as shown above.</p>
<p>The solution is easy enough however – we basically take the first option listed in the “Things you can try” section of the error page. However, because the option text is a little cryptic, I thought I would list the specific steps:</p>
<ol>
<li>Open up command prompt in the administrative mode. (Make sure you are in admin mode else you will get an insufficient permissions error)</li>
<li>Go to C:\Windows\System32\inetsrv directory – assuming C:\Windows is your system root.</li>
<li>Type in      <br /><em>appcmd migrate config &quot;Default Web Site/weborb30”       <br /></em>This is assuming you deployed WebOrb under “Default Web Site” during installation. If not, just replace it with the name of the website you put WebOrb under instead.</li>
</ol>
<p>You should see something like this:   <br /><a href="http://themindfulcoder.com/wp-content/uploads/2009/05/enableintegratedpipeline.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="EnableIntegratedPipeline" border="0" alt="EnableIntegratedPipeline" src="http://themindfulcoder.com/wp-content/uploads/2009/05/enableintegratedpipeline-thumb.png" width="502" height="255" /></a> </p>
<p>Go back to the page where you got the error and refresh. You should see the management console which looks like the screenshot below. If you have already closed the window, just browse to <a title="http://localhost/weborb30/" href="http://localhost/weborb30/">http://localhost/weborb30/</a> assuming that’s where you put WebOrb. Your URL should look similar.</p>
<p><a href="http://themindfulcoder.com/wp-content/uploads/2009/05/weborbconsole.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="WebOrbConsole" border="0" alt="WebOrbConsole" src="http://themindfulcoder.com/wp-content/uploads/2009/05/weborbconsole-thumb.png" width="523" height="380" /></a> </p>
<p>We are set!</p>
]]></content:encoded>
			<wfw:commentRss>http://themindfulcoder.com/2009/05/weborb-for-net-installation-on-windows-7/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>WebOrb for .Net &#8211; Only viable Flex remoting solution for ASP.Net?</title>
		<link>http://themindfulcoder.com/2009/05/weborb-for-net-only-viable-remoting-solution-for-aspnet/</link>
		<comments>http://themindfulcoder.com/2009/05/weborb-for-net-only-viable-remoting-solution-for-aspnet/#comments</comments>
		<pubDate>Tue, 12 May 2009 16:35:51 +0000</pubDate>
		<dc:creator>The Fat Oracle</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Remoting]]></category>
		<category><![CDATA[IIS 7]]></category>
		<category><![CDATA[IIS7]]></category>
		<category><![CDATA[WebOrb]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Windows Vista]]></category>

		<guid isPermaLink="false">http://themindfulcoder.com/2009/05/weborb-for-net-only-viable-remoting-solution-for-aspnet/</guid>
		<description><![CDATA[I have been exploring the best ways to enable remoting of a Flex / Papervision3D project we have been working on. My goals were to avoid XML based RPC communication as that would mean having to write XML-to-Object mappings on both the Flex and the ASP.Net end. Several options emerged but in the end, WebOrb [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.themidnightcoders.com/products/weborb-for-net/overview.html"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; margin-left: 0px; border-left-width: 0px; margin-right: 0px" title="WeborbdotNet" border="0" alt="WeborbdotNet" align="right" src="http://themindfulcoder.com/wp-content/uploads/2009/05/weborbdotnet1.jpg" width="175" height="206" /></a> </p>
<p>I have been exploring the best ways to enable remoting of a Flex / Papervision3D project we have been working on. My goals were to avoid XML based RPC communication as that would mean having to write XML-to-Object mappings on both the Flex and the ASP.Net end. </p>
<p>Several options emerged but in the end, <a href="http://www.themidnightcoders.com/products/weborb-for-net/overview.html">WebOrb for .Net</a> seemed to be the most endorsed and robust option. I think a lot of headache is pushed out of the way when you enable your Flex and ASP.Net teams to work with their own Object models without having to worry about a communication XML Schema. WebOrb also seems to be strongly endorsed by Adobe considering the remoting posts written by Adobe Engineers use WebOrb – at least for ASP.Net remoting. Of course if I was on a Java/J2EE backend, I would probably go for BlazeDS.</p>
<p>I work for a company that has built Flex applications from back in the day it was called Flash MX and we have always defined our own XML-based remoting mechanisms. In fact I think we built one of the first truly enterprise scale, fully Actionscript based applications when we put out <a href="http://www.osellus.com/IRIS-PA">IRIS Process Author</a>. </p>
<p>The current project however – I can’t disclose the details as it would violate the NDA &#8211; will be our first project in which we take a different path – which will surely prove more efficient from the performance perspective, from the team separation perspective as well as the ease-of-use perspective.</p>
<p>I hope to write a series of posts on using WebOrb from the perspective of someone who has been used to doing things his own custom way before and is now using a standardized object-based remoting framework. I also hope to document any issues I come across that might prove helpful to others – especially considering I am on Windows 7 – uncharted territory for a lot of development tools.</p>
<p>If you know any other equally viable alternatives to WebOrb that I am not considering, please do let me know. </p>
]]></content:encoded>
			<wfw:commentRss>http://themindfulcoder.com/2009/05/weborb-for-net-only-viable-remoting-solution-for-aspnet/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Flex on the Mac</title>
		<link>http://themindfulcoder.com/2008/12/flex-on-the-mac/</link>
		<comments>http://themindfulcoder.com/2008/12/flex-on-the-mac/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 19:53:51 +0000</pubDate>
		<dc:creator>The Fat Oracle</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flex Builder 3]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[security sandbox violation]]></category>
		<category><![CDATA[Tiger]]></category>

		<guid isPermaLink="false">http://themindfulcoder.com/?p=6</guid>
		<description><![CDATA[I am used to doing most of my Flex dev on Windows. At home, I do it on my XP VM on my Mac. But I was having a conversation with some friends on Friendfeed a couple of days back about Microsoft having a development bias while Mac had a consumer bias – and during [...]]]></description>
			<content:encoded><![CDATA[<p>I am used to doing most of my Flex dev on Windows. At home, I do it on my XP VM on my Mac. But I was having a conversation with some friends on Friendfeed a couple of days back about Microsoft having a development bias while Mac had a consumer bias – and during the course of the discussion, it came home to me that I see my Mac as a pleasure boat – and not a platform I want to develop on. I immediately realized this was ridiculous because I have no problem developing on Linux – and the Mac OS is the pretty refined cousin of Linux who hasn’t forgotten her roots. </p>
<p>So I’ve decided to do at least some part of my dev on the Mac. Conveniently, I am currently working on architecting a Flex application for 3D modeling that uses Papervision3d. Flex Builder is Eclipse based and available on the Mac – perfect!</p>
<p>To keep my workspace and files synchronized between my work Windows machine and my Mac at home, I am in the process of setting up <a href="http://www.mesh.com/">Windows Live Mesh</a>. Live Mesh is looking amazing and works pretty flawlessly. The only problem is that their Mac client is still in tech preview and my account doesn’t have authorization yet to use it on the Mac <img src='http://themindfulcoder.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> . So I am using my XP VM on the Mac as my conduit to synch for now. I can’t wait for the Mac client to go live. More on how I use Mesh in future posts.</p>
<p>So I opened up my Flex project on the Mac version of Flex Builder 3. You soon realize subtle differences between the Windows and Mac versions of both the Flex Builder and the Flex compiler. Also, since I was using both Mac and Windows, I started mixing up my keyboard shortcuts – got annoying very quickly.</p>
<p>The first issue with using Flex on the mac was that as soon as I tried debugging my app, I got a ‘Security Sandbox Violation’. It was working just fine on Windows.    <br />&#160;</p>
<blockquote><p>*** Security Sandbox Violation ***      <br />Connection to xxxxxx_frontElev.dae halted &#8211; not permitted from <a href="file://localhost/Volumes/Anatta/work/xxxxxx/Prototype">file://localhost/Volumes/Anatta/work/xxxxxx/Prototype</a> I/bin-debug/main.swf       <br />SecurityError: Error #2148: SWF file <a href="file://localhost/Volumes/Anatta/work/xxxxxxx/Prototype">file://localhost/Volumes/Anatta/work/xxxxxxx/Prototype</a> I/bin-debug/main.swf cannot access local resource yyyyy_frontElev.dae. Only local-with-filesystem and trusted local SWF files may access local resources.       <br />&#160;&#160;&#160; at flash.net::URLStream/load()       <br />&#160;&#160;&#160; at flash.net::URLLoader/load()       <br />&#160;&#160;&#160; at org.ascollada.io::DaeReader/read()[/Volumes/Anatta/work/xxxxxxx/xxxxxxx/Libraries/papervision3d_SVN_Checkout/as3/trunk/src/org/ascollada/io/DaeReader.as:76]       <br />&#160;&#160;&#160; at org.papervision3d.objects.parsers::DAE/load</p>
<p>….</p>
</blockquote>
<p><font color="#777777">After digging around a little, turns out this was because of the sandbox settings on the Flash player on the Mac.</font></p>
<p><font color="#777777">To fix this, </font></p>
<ol>
<li><font color="#777777">Go to the compiler settings in&#160; your project’s properties via Project-&gt;Properties-&gt;FlexCompiler</font> </li>
<li><font color="#777777">In the ‘Additional compiler arguments:” settings, add        <br /><em>-use-network=false          <br /></em><a href="http://themindfulcoder.com/wp-content/uploads/2008/12/image1.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://themindfulcoder.com/wp-content/uploads/2008/12/image-thumb1.png" width="544" height="517" /></a>         <br /></font></li>
<li><font color="#777777">Click ok. </font></li>
</ol>
<p><font color="#777777">Should work fine. Hope it saves you some time if you are starting with Flex on the Mac.</font></p>
]]></content:encoded>
			<wfw:commentRss>http://themindfulcoder.com/2008/12/flex-on-the-mac/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>The Mindful Coder &#8211; Introducing&#8230;</title>
		<link>http://themindfulcoder.com/2008/12/the-mindful-coder-introducing/</link>
		<comments>http://themindfulcoder.com/2008/12/the-mindful-coder-introducing/#comments</comments>
		<pubDate>Sun, 21 Dec 2008 07:13:17 +0000</pubDate>
		<dc:creator>The Fat Oracle</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://themindfulcoder.com/?p=3</guid>
		<description><![CDATA[I work as a Software Design Engineer at a Downtown Toronto firm and have always wanted to have a blog purely for code and code related discussions. I have a couple of personal blogs but they didn’t seem the right place for technical posts – kind of obvious. So, introducing The Mindful Coder! This blog [...]]]></description>
			<content:encoded><![CDATA[<p>I work as a Software Design Engineer at a Downtown Toronto firm and have always wanted to have a blog purely for code and code related discussions. I have a couple of personal blogs but they didn’t seem the right place for technical posts – kind of obvious. So, introducing The Mindful Coder!</p>
<p>This blog will probably have posts related to whatever I happen to be working on. I don’t think it will be specific to any technology, framework or language. At least, there are no plans to scope it right now. It may happen that I keep going back to certain languages or technologies. It may also happen that certain topics or tech domains draw more interest and this blog obeys those demands. Anything is possible and I am excited about the possibilities.</p>
<p>Some tags you may expect initially: Flex, Actionscript, Team Foundation Server, C#, .Net, WPF, Silverlight, Popfly, iphone. </p>
<p>The one reason I decided to finally start this blog was that I have been writing a lot of internal “wiki posts” and documents inside our company (We use Sharepoint a lot). I noticed how much they help me evolve an idea – more often than not, my original solutions get sculpted during that 1 hour of writing that post or document. The conclusion I arrived at was that logging even the most mundane discovery or thought – especially when I am playing with something new will help the write-to-disk process.</p>
<p>Also, I have some devotion worthy developers as friends – rockstar developers who somehow manage to be awesomesauce and unbelievably down to earth at the same time. I plan to have then come on from time to time and share their thoughts too. While my posts will probably be mundane and dry, I fully expect their posts to be mind-expanding. </p>
<p>I am unbelievably excited about The Mindful Coder. I hope I sustain it and we take off. Blogging takes a lot of commitment and I am determined to commit this time <img src='http://themindfulcoder.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>I work a lot with Microsoft technologies but am also a big Apple fan boy. I go both ways <img src='http://themindfulcoder.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>Here’s how I will probably be punching out most of my posts:</p>
<p>Blogging client: Windows Live Writer (The best client out there)</p>
<p>OS: Win XP running on Mac OS X Leopard via VMWare Fusion</p>
]]></content:encoded>
			<wfw:commentRss>http://themindfulcoder.com/2008/12/the-mindful-coder-introducing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
