<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>The Mini&#039;s View</title>
	<atom:link href="http://tangentlin.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://tangentlin.wordpress.com</link>
	<description>Journal for Rich User-Experience Application Development</description>
	<lastBuildDate>Thu, 26 Jan 2012 20:42:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='tangentlin.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>The Mini&#039;s View</title>
		<link>http://tangentlin.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://tangentlin.wordpress.com/osd.xml" title="The Mini&#039;s View" />
	<atom:link rel='hub' href='http://tangentlin.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Reindex entire database in SQL Server</title>
		<link>http://tangentlin.wordpress.com/2012/01/26/reindex-entire-database-in-sql-server/</link>
		<comments>http://tangentlin.wordpress.com/2012/01/26/reindex-entire-database-in-sql-server/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 20:42:26 +0000</pubDate>
		<dc:creator>Tangent</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://tangentlin.wordpress.com/?p=253</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tangentlin.wordpress.com&amp;blog=5917368&amp;post=253&amp;subd=tangentlin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><pre class="brush: sql;">

DECLARE @DatabaseTable VARCHAR(255)
DECLARE @sql NVARCHAR(500)
DECLARE @fillfactor INT
SET @fillfactor = 80
DECLARE TableCursor CURSOR FOR
SELECT TABLE_SCHEMA + '.' + TABLE_NAME AS DatabaseTable
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_TYPE='BASE TABLE'

OPEN TableCursor
FETCH NEXT FROM TableCursor INTO @DatabaseTable
WHILE @@FETCH_STATUS = 0
BEGIN
SET @sql = 'DBCC DBREINDEX('''+ @DatabaseTable + ''')'
PRINT (@sql)
EXEC (@sql)
FETCH NEXT FROM TableCursor INTO @DatabaseTable
END
CLOSE TableCursor
DEALLOCATE TableCursor
GO

</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tangentlin.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tangentlin.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tangentlin.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tangentlin.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tangentlin.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tangentlin.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tangentlin.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tangentlin.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tangentlin.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tangentlin.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tangentlin.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tangentlin.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tangentlin.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tangentlin.wordpress.com/253/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tangentlin.wordpress.com&amp;blog=5917368&amp;post=253&amp;subd=tangentlin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tangentlin.wordpress.com/2012/01/26/reindex-entire-database-in-sql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d9ce48cb7ccd26bbb2fc028886c4a553?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Tangent</media:title>
		</media:content>
	</item>
		<item>
		<title>Viewing ActionScript Documentation offline, fast!</title>
		<link>http://tangentlin.wordpress.com/2012/01/24/viewing-actionscript-documentation-offline-fast/</link>
		<comments>http://tangentlin.wordpress.com/2012/01/24/viewing-actionscript-documentation-offline-fast/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 17:29:04 +0000</pubDate>
		<dc:creator>Tangent</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[AsDoc]]></category>
		<category><![CDATA[ActionScript]]></category>

		<guid isPermaLink="false">http://tangentlin.wordpress.com/?p=247</guid>
		<description><![CDATA[Back in the days of Flex Builder 3.0, Adobe has bundled an offline reference for ActionScript and Flex framework API.  The reference is more than just an HTML documentation as it provided a nice outline view of all the packages, &#8230; <a href="http://tangentlin.wordpress.com/2012/01/24/viewing-actionscript-documentation-offline-fast/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tangentlin.wordpress.com&amp;blog=5917368&amp;post=247&amp;subd=tangentlin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Back in the days of Flex Builder 3.0, Adobe has bundled an offline reference for ActionScript and Flex framework API.  The reference is more than just an HTML documentation as it provided a nice outline view of all the packages, classes as well as method and properties.  Starting Flash Builder 4.0, such feature has gone away.</p>
<p><a href="http://airdoc.be/home/" target="_blank">Doc?</a> has come and filled the void, and it does more than just providing references for Flex framework.  It is a parser that parses through online/offline ActionScript documentations, index and store the documentations in local database, which is extremely useful as I collect a bunch of open-source libraries, and the documentations come in handy.</p>
<p>So hit the link and give the program a try.  Don&#8217;t forget to send the project donation (or beer <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  ) if you find it cooler than I say in the blog.</p>
<p><a href="http://tangentlin.files.wordpress.com/2012/01/doc.png"><img class="alignnone size-full wp-image-251" title="Doc? Interface" src="http://tangentlin.files.wordpress.com/2012/01/doc.png?w=593&#038;h=361" alt="" width="593" height="361" /></a></p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tangentlin.wordpress.com/247/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tangentlin.wordpress.com/247/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tangentlin.wordpress.com/247/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tangentlin.wordpress.com/247/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tangentlin.wordpress.com/247/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tangentlin.wordpress.com/247/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tangentlin.wordpress.com/247/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tangentlin.wordpress.com/247/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tangentlin.wordpress.com/247/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tangentlin.wordpress.com/247/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tangentlin.wordpress.com/247/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tangentlin.wordpress.com/247/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tangentlin.wordpress.com/247/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tangentlin.wordpress.com/247/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tangentlin.wordpress.com&amp;blog=5917368&amp;post=247&amp;subd=tangentlin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tangentlin.wordpress.com/2012/01/24/viewing-actionscript-documentation-offline-fast/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d9ce48cb7ccd26bbb2fc028886c4a553?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Tangent</media:title>
		</media:content>

		<media:content url="http://tangentlin.files.wordpress.com/2012/01/doc.png" medium="image">
			<media:title type="html">Doc? Interface</media:title>
		</media:content>
	</item>
		<item>
		<title>Got an iPad/iPhone, and wish to print from it?</title>
		<link>http://tangentlin.wordpress.com/2012/01/05/got-an-ipadiphone-and-wish-to-print-from-it/</link>
		<comments>http://tangentlin.wordpress.com/2012/01/05/got-an-ipadiphone-and-wish-to-print-from-it/#comments</comments>
		<pubDate>Fri, 06 Jan 2012 02:58:25 +0000</pubDate>
		<dc:creator>Tangent</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[AirPrint]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[print]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://tangentlin.wordpress.com/?p=244</guid>
		<description><![CDATA[My wife, who is generally against and staying away from electronics, suddenly asked if she could print things off her iPhone.  I took her phone, and tried Print, only to find that I need to have AirPrint enabled printers in &#8230; <a href="http://tangentlin.wordpress.com/2012/01/05/got-an-ipadiphone-and-wish-to-print-from-it/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tangentlin.wordpress.com&amp;blog=5917368&amp;post=244&amp;subd=tangentlin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>My wife, who is generally against and staying away from electronics, suddenly asked if she could print things off her iPhone.  I took her phone, and tried Print, only to find that I need to have AirPrint enabled printers in the network.  My good old printer was made long before the age of i-Devices.  I thought my luck was out.</p>
<p>After a few minutes of googling, I came to realize that there is this free software called <a href="http://netputing.com/airprintactivator/">AirPrint Activator</a>, which allows my Mac to become an AirPrint server.  After a minute of download and following the step, and also remember to enable print sharing, my wife was thrill to see her iPhone pictures slowly emerge from my laserjet.</p>
<p>Looks like Windows users are not left in the cold, there is this post <a href="http://lifehacker.com/5697186/enable-ios-airprint-support-for-windows" target="_blank">showing steps to enable AirPrint on PC</a>.  They are not as streamline as AirPrint Activator, but I am sure one day some genius is going to spend the time get it quick and easy for the mass.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tangentlin.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tangentlin.wordpress.com/244/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tangentlin.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tangentlin.wordpress.com/244/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tangentlin.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tangentlin.wordpress.com/244/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tangentlin.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tangentlin.wordpress.com/244/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tangentlin.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tangentlin.wordpress.com/244/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tangentlin.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tangentlin.wordpress.com/244/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tangentlin.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tangentlin.wordpress.com/244/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tangentlin.wordpress.com&amp;blog=5917368&amp;post=244&amp;subd=tangentlin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tangentlin.wordpress.com/2012/01/05/got-an-ipadiphone-and-wish-to-print-from-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d9ce48cb7ccd26bbb2fc028886c4a553?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Tangent</media:title>
		</media:content>
	</item>
		<item>
		<title>TestFlightApp &#8211; Testing iOS app without the pain of iTunes</title>
		<link>http://tangentlin.wordpress.com/2011/12/15/testflightapp-testing-ios-app-without-the-pain-of-itunes/</link>
		<comments>http://tangentlin.wordpress.com/2011/12/15/testflightapp-testing-ios-app-without-the-pain-of-itunes/#comments</comments>
		<pubDate>Fri, 16 Dec 2011 03:10:05 +0000</pubDate>
		<dc:creator>Tangent</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iTunes]]></category>

		<guid isPermaLink="false">http://tangentlin.wordpress.com/?p=241</guid>
		<description><![CDATA[My recently laptop HD crash prompted me to get a new laptop.  As part of the iTunes default, there is no easy way for me to designate my new laptop to synchronize app with my i-Devices without losing all the &#8230; <a href="http://tangentlin.wordpress.com/2011/12/15/testflightapp-testing-ios-app-without-the-pain-of-itunes/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tangentlin.wordpress.com&amp;blog=5917368&amp;post=241&amp;subd=tangentlin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>My recently laptop HD crash prompted me to get a new laptop.  As part of the iTunes default, there is no easy way for me to designate my new laptop to synchronize app with my i-Devices without losing all the app data.  In other words, besides my business data, all my Angry Birds, Plants vs. Zombie records and progress would be wiped clean, and I would have to go through the pain to start again.</p>
<p>Normally I would not have to synchronize my applications, but when it comes to deploying my iOS application to my device, I would have to go through iTunes.  This forces me to look into alternative to avoid all the hassles.  My Google search quickly led me to <a href="http://www.testflightapp.com" target="_blank">TestFlightApp.com</a>, within minutes, I am able to upload app, distribute it to team for testing, and even collect statistics and crash data.  It just works!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tangentlin.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tangentlin.wordpress.com/241/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tangentlin.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tangentlin.wordpress.com/241/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tangentlin.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tangentlin.wordpress.com/241/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tangentlin.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tangentlin.wordpress.com/241/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tangentlin.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tangentlin.wordpress.com/241/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tangentlin.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tangentlin.wordpress.com/241/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tangentlin.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tangentlin.wordpress.com/241/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tangentlin.wordpress.com&amp;blog=5917368&amp;post=241&amp;subd=tangentlin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tangentlin.wordpress.com/2011/12/15/testflightapp-testing-ios-app-without-the-pain-of-itunes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d9ce48cb7ccd26bbb2fc028886c4a553?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Tangent</media:title>
		</media:content>
	</item>
		<item>
		<title>Overcome Flash Profiler Security sandbox violation error</title>
		<link>http://tangentlin.wordpress.com/2011/12/02/overcome-flash-profiler-security-sandbox-violation-error/</link>
		<comments>http://tangentlin.wordpress.com/2011/12/02/overcome-flash-profiler-security-sandbox-violation-error/#comments</comments>
		<pubDate>Sat, 03 Dec 2011 03:07:42 +0000</pubDate>
		<dc:creator>Tangent</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Flash Builder]]></category>
		<category><![CDATA[Flash Player]]></category>

		<guid isPermaLink="false">http://tangentlin.wordpress.com/?p=232</guid>
		<description><![CDATA[Recently I had to profile one of my Flex projects, but found that I got endlessly trapped by an error look like the following: Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: file:///some_path/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf?host=localhost&#38;port=### cannot load data from localhost:### I &#8230; <a href="http://tangentlin.wordpress.com/2011/12/02/overcome-flash-profiler-security-sandbox-violation-error/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tangentlin.wordpress.com&amp;blog=5917368&amp;post=232&amp;subd=tangentlin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently I had to profile one of my Flex projects, but found that I got endlessly trapped by an error look like the following:</p>
<blockquote><p>Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: file:///<em>some_path</em>/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf?host=localhost&amp;port=### cannot load data from localhost:###</p></blockquote>
<p>I have tried to install/uninstall Flash debug player as well as Flash Builder, but both still yielded the same error.  It has taken me some time to find out a solution to get profiler working.</p>
<h2>Step 1: Make sure the ProfilerAgent.swf is allowed in Flash&#8217;s global security setting</h2>
<p>This is done by adding the location of the ProfilerAgent.swf in Flash Player&#8217;s Trusted Location Settings.  The setting may be changed in Windows&#8217; Control Panel as screenshot below:</p>
<p><a href="http://tangentlin.files.wordpress.com/2011/12/flash-setting.png"><img class="alignnone size-full wp-image-234" style="border-color:black;border-style:solid;border-width:1px;" title="Flash Player's Security setting" src="http://tangentlin.files.wordpress.com/2011/12/flash-setting.png?w=593" alt=""   /></a></p>
<h2></h2>
<h2>Step 2: Edit mm.cfg file to enable Profiler</h2>
<p>To locate the mm.cfg, type in %HOMEDRIVE%%HOMEPATH% in Windows Explorer&#8217;s address bar, or follow <a href="http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7fc9.html" target="_blank">the instruction here</a>.  Open the mm.cfg in Notepad or your favorite text editor.  The configuration in mm.cfg is a bunch of simple setting=value.  Adobe only provides a subset of settings in <a href="http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7fc9.html" target="_blank">their instruction</a>, but there are a lot more <a href="http://jpauclair.net/2010/02/10/mmcfg-treasure/" target="_blank">undocumented settings</a>.  To cut to the chase, make sure the following settings are in mm.cfg</p>
<blockquote>
<pre> ProfileFunctionEnable=1
 ProfilingOutputFileEnable=1
 RendererProfilingEnable=1</pre>
</blockquote>
<p>Save the changes, and restart the profiler (no computer restart necessary), and ditto!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tangentlin.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tangentlin.wordpress.com/232/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tangentlin.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tangentlin.wordpress.com/232/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tangentlin.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tangentlin.wordpress.com/232/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tangentlin.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tangentlin.wordpress.com/232/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tangentlin.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tangentlin.wordpress.com/232/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tangentlin.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tangentlin.wordpress.com/232/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tangentlin.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tangentlin.wordpress.com/232/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tangentlin.wordpress.com&amp;blog=5917368&amp;post=232&amp;subd=tangentlin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tangentlin.wordpress.com/2011/12/02/overcome-flash-profiler-security-sandbox-violation-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d9ce48cb7ccd26bbb2fc028886c4a553?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Tangent</media:title>
		</media:content>

		<media:content url="http://tangentlin.files.wordpress.com/2011/12/flash-setting.png" medium="image">
			<media:title type="html">Flash Player&#039;s Security setting</media:title>
		</media:content>
	</item>
		<item>
		<title>Using Databind in ASP.NET Application &#8211; 1</title>
		<link>http://tangentlin.wordpress.com/2011/07/18/using-databind-in-asp-net-application-1/</link>
		<comments>http://tangentlin.wordpress.com/2011/07/18/using-databind-in-asp-net-application-1/#comments</comments>
		<pubDate>Mon, 18 Jul 2011 19:17:53 +0000</pubDate>
		<dc:creator>Tangent</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://tangentlin.wordpress.com/?p=212</guid>
		<description><![CDATA[This post is to present a new approach of implementing ASP.NET GUI by incorporating databinding (DBN) instead of the traditional data assignment (DA) approach. Traditional Approach Traditionally, assigning a value to a server control involves a code-behind assignment, for example, &#8230; <a href="http://tangentlin.wordpress.com/2011/07/18/using-databind-in-asp-net-application-1/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tangentlin.wordpress.com&amp;blog=5917368&amp;post=212&amp;subd=tangentlin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This post is to present a new approach of implementing ASP.NET GUI by incorporating databinding (DBN) instead of the traditional data assignment (DA) approach.</p>
<h3>Traditional Approach</h3>
<p>Traditionally, assigning a value to a server control involves a code-behind assignment, for example, assigning a label with a person&#8217;s birthday would have code similar to the following:</p>
<p><pre class="brush: xml;">
&lt;!--ASPX--&gt;
&lt;asp:Label id=&quot;lblBirthdayDate&quot; /&gt;
</pre><br />
<pre class="brush: csharp;">
//C#
lblBirthdayDate.Text = person.Birthday.ToLongDateString();

</pre></p>
<p>If somewhere in the page the birthday should also be displayed as short date, developer would then have to create another label, and assign it:</p>
<p><pre class="brush: xml;">
&lt;!--ASPX--&gt;
&lt;asp:Label id=&quot;lblBirthdayDate&quot; /&gt;
...
&lt;asp:Label id=&quot;lblAnotherBirthdayDate&quot; /&gt;
</pre><br />
<pre class="brush: csharp;">
//C#
lblBirthdayDate.Text = person.Birthday.ToLongDateString();
lblAnotherBirthdayDate.Text = person.Birthday.ToShortDateString();

</pre></p>
<p>Let&#8217;s say later, customer would like to see birthday information displayed different, such as removing one label or another, developer would have to remove the label from the ASPX markup as well as the code behind, recompile the DLL and deploy both the DLL and the markup.</p>
<p>Things can quickly get out of hand and any changes would take long time to develop, test and deployment.</p>
<p>The new databinding approach comes to rescue this mess.</p>
<h3>The New Approach</h3>
<p>The address the scenario above, only two additional lines of logic need to be introduced to the code behind:</p>
<p><pre class="brush: csharp;">
public class MyPage : System.Web.UI.Page

{

public PersonModel Person { get; set; }

protected override void OnPreRender(EventArgs e)

{

base.OnPreRender(e);

Person = new MyPageController().GetCurrentPerson();  // for the purpose of the page, we are not discussing how the data is retrieved.

DataBindChildren();

}

}

</pre></p>
<p>The aspx markup would look like this:</p>
<p><pre class="brush: xml;">
Person's Birthday:  &lt;%# Person.Birthday.ToLongDateString() %&gt;
...
Person's Birthday Date in Short Form: &lt;%# Person.Birthday.ToShortDateString() %&gt;
</pre></p>
<h2>Why the New Approach</h2>
<p>The new approach offers a few advantage over the old approach:</p>
<h3>1. Separation of Concerns</h3>
<p>The new approach has the code behind focus on gathering the raw data the page would need to render its content.  It, however, does not have to concern about how the content should appear (ie. color, css, or even data formatting).</p>
<p>The markup of the page concerns about how the content (in a model like class) should be rendered, it is not responsible for gathering the data but rendering data as is.</p>
<p>This saves back-end developers from concerning the appearance of the page, but focusing on gathering all the data the page needs, and exposing the data to the markup.</p>
<h3><strong>2. Clarity</strong></h3>
<p>Because of separation of concern, the markup code becomes clear how the data should be rendered, instead of being intertwined with a page&#8217;s life-cycle.  The sample above issues the databind at OnPreRender, this allows all controls properly initialized before data is bound to the controls.</p>
<h3>3.  Testable</h3>
<p>For developers, because the code-behind is now responsible for data gathering, it is possible to develop unit test to test if the page model has the correct values; as for designers, they can develop mock page model values to ensure that controls are properly rendered.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tangentlin.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tangentlin.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tangentlin.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tangentlin.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tangentlin.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tangentlin.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tangentlin.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tangentlin.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tangentlin.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tangentlin.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tangentlin.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tangentlin.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tangentlin.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tangentlin.wordpress.com/212/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tangentlin.wordpress.com&amp;blog=5917368&amp;post=212&amp;subd=tangentlin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tangentlin.wordpress.com/2011/07/18/using-databind-in-asp-net-application-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d9ce48cb7ccd26bbb2fc028886c4a553?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Tangent</media:title>
		</media:content>
	</item>
		<item>
		<title>Open Folder in Windows Explorer from Eclipse or Visual Studio</title>
		<link>http://tangentlin.wordpress.com/2011/07/07/open-folder-in-windows-explorer-from-eclipse-or-visual-studio/</link>
		<comments>http://tangentlin.wordpress.com/2011/07/07/open-folder-in-windows-explorer-from-eclipse-or-visual-studio/#comments</comments>
		<pubDate>Fri, 08 Jul 2011 01:44:51 +0000</pubDate>
		<dc:creator>Tangent</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://tangentlin.wordpress.com/?p=219</guid>
		<description><![CDATA[Occasionally I feel the need of opening a folder/package in Windows Explorer right from my favorite IDE&#8217;s (Eclipse or Visual Studio), I have been going through the pain of manually find the folder, well, a little bit of Google Search helps. &#8230; <a href="http://tangentlin.wordpress.com/2011/07/07/open-folder-in-windows-explorer-from-eclipse-or-visual-studio/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tangentlin.wordpress.com&amp;blog=5917368&amp;post=219&amp;subd=tangentlin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Occasionally I feel the need of opening a folder/package in Windows Explorer right from my favorite IDE&#8217;s (Eclipse or Visual Studio), I have been going through the pain of manually find the folder, well, a little bit of Google Search helps.</p>
<p>The Eclipse way: <a href="http://startexplorer.sourceforge.net/" target="_blank">StartExplorer</a> plugin</p>
<p>The Visual Studio way: <a href="http://visualstudiogallery.msdn.microsoft.com/e5f41ad9-4edc-4912-bca3-91147db95b99" target="_blank">PowerCommands</a> for Visual Studio Addin from Microsoft</p>
<p>&nbsp;</p>
<p>For those who hate plugin&#8217;s and wish to add such feature manually in Eclipse, there are approaches through External Tools over <a href="http://edeustace.wordpress.com/2010/11/01/open-folder-in-windows-explorer-from-eclipse/" target="_blank">here</a>, and <a href="http://www.eclipsezone.com/eclipse/forums/t77655.html" target="_blank">here</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tangentlin.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tangentlin.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tangentlin.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tangentlin.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tangentlin.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tangentlin.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tangentlin.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tangentlin.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tangentlin.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tangentlin.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tangentlin.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tangentlin.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tangentlin.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tangentlin.wordpress.com/219/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tangentlin.wordpress.com&amp;blog=5917368&amp;post=219&amp;subd=tangentlin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tangentlin.wordpress.com/2011/07/07/open-folder-in-windows-explorer-from-eclipse-or-visual-studio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d9ce48cb7ccd26bbb2fc028886c4a553?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Tangent</media:title>
		</media:content>
	</item>
		<item>
		<title>404 Error in .NET Remoting</title>
		<link>http://tangentlin.wordpress.com/2011/03/31/404-error-in-net-remoting/</link>
		<comments>http://tangentlin.wordpress.com/2011/03/31/404-error-in-net-remoting/#comments</comments>
		<pubDate>Thu, 31 Mar 2011 21:38:43 +0000</pubDate>
		<dc:creator>Tangent</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[404]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[remoting]]></category>

		<guid isPermaLink="false">http://tangentlin.wordpress.com/?p=198</guid>
		<description><![CDATA[In some rare occassion .NET Remoting service may throw a 404 error. Besides the obvious cause of URL misconfiguration as the error implied, the error can also be caused by the size of the Remoting call. If the total size &#8230; <a href="http://tangentlin.wordpress.com/2011/03/31/404-error-in-net-remoting/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tangentlin.wordpress.com&amp;blog=5917368&amp;post=198&amp;subd=tangentlin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In some rare occassion .NET Remoting service may throw a 404 error.  Besides the obvious cause of URL misconfiguration as the error implied, the error can also be caused by the size of the Remoting call.  If the total size of the objects being sent to the Remoting server (not client) exceeds the configuration limit, IIS would throw a 404 error, even though the error has little to do with File not Found.</p>
<p>To fix this error, one of the ways is through changing the Web.config to allow larger request size limit, this can be achieved by changing the setting under system.webServer / security / requestFilter / requestLimits @ maxAllowedContentLength .  For example:</p>
<p><strong>Remedy:</strong></p>
<p><pre class="brush: xml;">
&lt;system.webServer&gt;
  &lt;security&gt;
    &lt;requestFiltering&gt;
      &lt;requestLimits maxAllowedContentLength=&quot;56700000&quot; /&gt;&lt;!-- in bytes --&gt;
    &lt;/requestFiltering&gt;
  &lt;/security&gt;
&lt;/system.webServer&gt;
</pre></p>
<p>Related Post: <a href="http://weblogs.asp.net/jgalloway/archive/2008/01/08/large-file-uploads-in-asp-net.aspx" target="_blank">Large file uploads in ASP.NET</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tangentlin.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tangentlin.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tangentlin.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tangentlin.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tangentlin.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tangentlin.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tangentlin.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tangentlin.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tangentlin.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tangentlin.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tangentlin.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tangentlin.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tangentlin.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tangentlin.wordpress.com/198/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tangentlin.wordpress.com&amp;blog=5917368&amp;post=198&amp;subd=tangentlin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tangentlin.wordpress.com/2011/03/31/404-error-in-net-remoting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d9ce48cb7ccd26bbb2fc028886c4a553?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Tangent</media:title>
		</media:content>
	</item>
		<item>
		<title>Flex 4.1 SDK Slow Compile Time</title>
		<link>http://tangentlin.wordpress.com/2011/01/25/flex-4-1-sdk-slow-compile-time/</link>
		<comments>http://tangentlin.wordpress.com/2011/01/25/flex-4-1-sdk-slow-compile-time/#comments</comments>
		<pubDate>Wed, 26 Jan 2011 02:00:10 +0000</pubDate>
		<dc:creator>Tangent</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://tangentlin.wordpress.com/?p=195</guid>
		<description><![CDATA[After upgrading to Flex 4.1, I notice the compile speed dropped noticeably, finally, someone found out the cause and even shared a solution: http://yerii.wordpress.com/2010/12/15/why-has-flex-sdk-4-x-x-become-sluggish-for-some-and-how-you-can-get-it-rolling-again/<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tangentlin.wordpress.com&amp;blog=5917368&amp;post=195&amp;subd=tangentlin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After upgrading to Flex 4.1, I notice the compile speed dropped noticeably, finally, someone found out the cause and even shared a solution:</p>
<p><a href="http://yerii.wordpress.com/2010/12/15/why-has-flex-sdk-4-x-x-become-sluggish-for-some-and-how-you-can-get-it-rolling-again/">http://yerii.wordpress.com/2010/12/15/why-has-flex-sdk-4-x-x-become-sluggish-for-some-and-how-you-can-get-it-rolling-again/</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tangentlin.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tangentlin.wordpress.com/195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tangentlin.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tangentlin.wordpress.com/195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tangentlin.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tangentlin.wordpress.com/195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tangentlin.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tangentlin.wordpress.com/195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tangentlin.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tangentlin.wordpress.com/195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tangentlin.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tangentlin.wordpress.com/195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tangentlin.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tangentlin.wordpress.com/195/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tangentlin.wordpress.com&amp;blog=5917368&amp;post=195&amp;subd=tangentlin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tangentlin.wordpress.com/2011/01/25/flex-4-1-sdk-slow-compile-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d9ce48cb7ccd26bbb2fc028886c4a553?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Tangent</media:title>
		</media:content>
	</item>
		<item>
		<title>Type Coercion failed Error on Start</title>
		<link>http://tangentlin.wordpress.com/2011/01/03/type-coercion-failed-error-on-start/</link>
		<comments>http://tangentlin.wordpress.com/2011/01/03/type-coercion-failed-error-on-start/#comments</comments>
		<pubDate>Tue, 04 Jan 2011 03:49:31 +0000</pubDate>
		<dc:creator>Tangent</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[ActionScript]]></category>

		<guid isPermaLink="false">http://tangentlin.wordpress.com/?p=182</guid>
		<description><![CDATA[Recently I have upgraded my project with the latest Flex 4.1 SDK.  After a few small chokes, the project has largely been a smooth sail.  However, a mysterious error starts popping up everytime when my Flash movie starts: The error &#8211; &#8220;TypeError: &#8230; <a href="http://tangentlin.wordpress.com/2011/01/03/type-coercion-failed-error-on-start/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tangentlin.wordpress.com&amp;blog=5917368&amp;post=182&amp;subd=tangentlin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently I have upgraded my project with the latest Flex 4.1 SDK.  After a few small chokes, the project has largely been a smooth sail.  However, a mysterious error starts popping up everytime when my Flash movie starts:</p>
<p><a href="http://tangentlin.files.wordpress.com/2011/01/flex41-runtime-error-1034.png"><img class="alignnone size-full wp-image-183" title="Flex Movie runtime error" src="http://tangentlin.files.wordpress.com/2011/01/flex41-runtime-error-1034.png?w=593" alt="TypeError: Error #1034: Type Coercion failed error at Flex movie start"   /></a></p>
<p>The error &#8211; &#8220;TypeError: Error: #1034: Type Coercion failed&#8221; seems to throw even before the Flex application is initialized as none of stack trace information indicates code error from my Flex application.</p>
<p>I then created another empty Application in the same Flex project, strangely enough, I have the same error; but with a different project I see no issue.  This leads me to believe that something is  wrong with the library I have used.</p>
<p>Eventually, I have located the code:</p>
<p><pre class="brush: as3;">

/** Flag for initializing the styles */
private static var classConstructed:Boolean = classConstruct();

/** Initialize styles to default values */
private static function classConstruct():Boolean
{
if ( !FlexGlobals.topLevelApplication.styleManager.getStyleDeclaration( &quot;SomeComponent&quot; ) )
{
// If SomeComponent has no CSS definition,
// create one and set the default value.
var newStyleDeclaration:CSSStyleDeclaration = new CSSStyleDeclaration();
newStyleDeclaration.setStyle( &quot;selectorColor&quot;, 0xFF0000 );

FlexGlobals.topLevelApplication.styleManager.setStyleDeclaration( &quot;SomeComponent&quot;, newStyleDeclaration, true );
}
return true;
}

</pre></p>
<p>Apparently the code above causes the problem, which might have something to deal with deprecated code since Flex 3.</p>
<p>Through the exercise of hunting down this runtime error, I concluded the steps of troubleshooting such kind of error.</p>
<ol>
<li>Create an empty project with an empty movie, if it runs, that means Flex Compiler is healthy.</li>
<li>Create an empty Application with the problematic application, if it runs, that means the Project has issue with its libraries; otherwise, the problem may lie in the code of the application.</li>
<li>One-by-one, remove the SWC libraries referenced by the application, and run the empty Application everytime an SWC is removed until the error disppears.</li>
<li>Troubleshoot the issue in the problematic SWC.</li>
</ol>
<p>Happy Flexing!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tangentlin.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tangentlin.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tangentlin.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tangentlin.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tangentlin.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tangentlin.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tangentlin.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tangentlin.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tangentlin.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tangentlin.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tangentlin.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tangentlin.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tangentlin.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tangentlin.wordpress.com/182/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tangentlin.wordpress.com&amp;blog=5917368&amp;post=182&amp;subd=tangentlin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tangentlin.wordpress.com/2011/01/03/type-coercion-failed-error-on-start/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d9ce48cb7ccd26bbb2fc028886c4a553?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Tangent</media:title>
		</media:content>

		<media:content url="http://tangentlin.files.wordpress.com/2011/01/flex41-runtime-error-1034.png" medium="image">
			<media:title type="html">Flex Movie runtime error</media:title>
		</media:content>
	</item>
	</channel>
</rss>
