<?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>Mike Orth - Booya! &#187; Uncategorized</title>
	<atom:link href="http://mikeorth.com/category/uncategorized/feed" rel="self" type="application/rss+xml" />
	<link>http://mikeorth.com</link>
	<description>Flex, Actionscript</description>
	<lastBuildDate>Thu, 22 Dec 2011 15:08:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Increase Memory in Flash Builder / Eclipse for Mac OS</title>
		<link>http://mikeorth.com/2010/28</link>
		<comments>http://mikeorth.com/2010/28#comments</comments>
		<pubDate>Fri, 07 May 2010 16:15:39 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[flash builder]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[memory]]></category>
		<category><![CDATA[quicktips]]></category>

		<guid isPermaLink="false">http://mikeorth.com/?p=28</guid>
		<description><![CDATA[If you ever get the eclipse &#8220;Out of Memory&#8221; error, then you need to increase the default memory size.  It&#8217;s relatively easy, but you have to know where to look.
In your eclipse install folder, right click on the Eclipse launcher and choose &#8220;Show Package Contents&#8221;.  Then navigate to Contents/MacOS and open eclipse.ini.  [...]]]></description>
			<content:encoded><![CDATA[<p>If you ever get the eclipse &#8220;Out of Memory&#8221; error, then you need to increase the default memory size.  It&#8217;s relatively easy, but you have to know where to look.</p>
<p>In your eclipse install folder, right click on the Eclipse launcher and choose &#8220;Show Package Contents&#8221;.  Then navigate to Contents/MacOS and open eclipse.ini.  Change the min &#038; max values to:</p>
<p>-Xms128m<br />
-Xmx512m</p>
]]></content:encoded>
			<wfw:commentRss>http://mikeorth.com/2010/28/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Object Translator &#8211; Normalizing Objects</title>
		<link>http://mikeorth.com/2008/object-translator-normalizing-objects</link>
		<comments>http://mikeorth.com/2008/object-translator-normalizing-objects#comments</comments>
		<pubDate>Wed, 30 Jul 2008 01:17:48 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mikeorth.com/?p=11</guid>
		<description><![CDATA[This is an extension of a great blog from Justin Opitz on normalizing value objects.  We were discussing the a best way to take objects that are somewhat similar in form and conform them to an interface.  Normalizing objects allows you perform logic on data that is generic and more makes your code more [...]]]></description>
			<content:encoded><![CDATA[<p>This is an extension of a great blog from <a href="http://jwopitz.wordpress.com/2008/07/29/normalizing-value-objects-quick-tip/">Justin Opitz</a> on normalizing value objects.  We were discussing the a best way to take objects that are somewhat similar in form and conform them to an interface.  Normalizing objects allows you perform logic on data that is generic and more makes your code more reusable.</p>
<p>So imagine we have several different object types coming in, like Artist, Album, &amp; Track objects with properties that are similar, yet unique, including &#8220;artistName&#8221;, &#8220;albumName&#8221;, &#8220;trackName&#8221;, among others.  We want to put this into a VO with just &#8220;name&#8221;.</p>
<p>Below is a modified version of the translator.  If you have several different VOs that implement an interface then you may want the ability to assign them as needed.  Since it could be any one of the VOs being, we&#8217;ll pass it in as a wild card vo:*&#8221; and then return the newly assigned object.  Also, if the current propety doesn&#8217;t match a pattern we&#8217;re looking for, then it assigns it as-is.</p>
<p>So here&#8217;s what the function will look like:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">public static function TranslateObject ( targetObject:Object, vo:* ):*<br />
{<br />
<br />
for (var s:String in vo)<br />
{<br />
//we are going to check each prop name to see if there is a match for our<br />
//targetObject's known properties<br />
//obvious ly this list will grow the more props you have to normalize<br />
//however it only grows once regardless of the number of non-normalized VOs<br />
<br />
&nbsp; if (s.toLowerCase().indexOf('name') != -1)<br />
&nbsp; &nbsp; targetObject.name = String(vo[s]);<br />
<br />
&nbsp; else if (s.toLowerCase().indexOf('id') != -1)<br />
&nbsp; &nbsp; targetObject.id = int(vo[s]);<br />
<br />
&nbsp; else if (s.lowerCase().indexOf('genres') != -1)<br />
&nbsp; &nbsp; targetObject.genres = vo[s] as Array;<br />
<br />
&nbsp; else<br />
&nbsp; &nbsp; targetObject[s] = vo[s];<br />
<br />
&nbsp; return vo;<br />
}<br />
}</div></div>
]]></content:encoded>
			<wfw:commentRss>http://mikeorth.com/2008/object-translator-normalizing-objects/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>New Blog &#8211; Finally</title>
		<link>http://mikeorth.com/2008/new-blog-finally</link>
		<comments>http://mikeorth.com/2008/new-blog-finally#comments</comments>
		<pubDate>Thu, 27 Mar 2008 20:13:06 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mikeorth.com/ical/wpTEST/?p=3</guid>
		<description><![CDATA[I finally got my new blog up and running.  This is mainly here to serve as a placeholder, but in actuality, I&#8217;ll probably never delete it so I should try to at least put something useful here.I&#8217;ll be posting things that I have found to be helpful in my daily Flex development.  Also [...]]]></description>
			<content:encoded><![CDATA[<p>I finally got my new blog up and running.  This is mainly here to serve as a placeholder, but in actuality, I&#8217;ll probably never delete it so I should try to at least put something useful here.I&#8217;ll be posting things that I have found to be helpful in my daily Flex development.  Also I&#8217;ll be writing about issues I&#8217;ve come across that were painful to work around so hopefully someone else can reap the benefits of me banging my head against the wall.  I&#8217;ve done a lot of work with using audio in Flex so I will be writing about Sound as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://mikeorth.com/2008/new-blog-finally/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>Google Tracking Code</title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
</head>

<body>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>

<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-4604733-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>  
</body>
</html>

