<?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>Simplest Explanation</title>
	<atom:link href="http://simplestexplanation.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://simplestexplanation.com</link>
	<description>When you can't seem to find where Occam left his Razor.</description>
	<lastBuildDate>Tue, 03 Apr 2012 04:39:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Determine Goal Width and Height in Image Resizing</title>
		<link>http://simplestexplanation.com/2012/04/determine-goal-width-in-image-resizing/</link>
		<comments>http://simplestexplanation.com/2012/04/determine-goal-width-in-image-resizing/#comments</comments>
		<pubDate>Tue, 03 Apr 2012 04:33:18 +0000</pubDate>
		<dc:creator>MorganEngel</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Air]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[flex 3]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://simplestexplanation.com/?p=421</guid>
		<description><![CDATA[I find myself doing image manipulation on a regular basis. One of the common things I have to do is to fit an image into a max width or height. I&#8217;ve distilled this as best I can, and I think &#8230; <a href="http://simplestexplanation.com/2012/04/determine-goal-width-in-image-resizing/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I find myself doing image manipulation on a regular basis. One of the common things I have to do is to fit an image into a max width or height. I&#8217;ve distilled this as best I can, and I think this is as simple as it gets. It&#8217;s in PHP, but the logic should be applicable to any language.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$max_size</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">200</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$ratio</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$image_width</span><span style="color: #339933;">/</span><span style="color: #000088;">$image_height</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ratio</span><span style="color: #339933;">&gt;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$goal_width</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$max_size</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$goal_height</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$max_size</span><span style="color: #339933;">/</span><span style="color: #000088;">$ratio</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">else</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$goal_width</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$max_size</span><span style="color: #339933;">*</span><span style="color: #000088;">$ratio</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$goal_height</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$max_size</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://simplestexplanation.com/2012/04/determine-goal-width-in-image-resizing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Frustrations</title>
		<link>http://simplestexplanation.com/2012/03/linux-frustrations/</link>
		<comments>http://simplestexplanation.com/2012/03/linux-frustrations/#comments</comments>
		<pubDate>Thu, 29 Mar 2012 02:23:05 +0000</pubDate>
		<dc:creator>MorganEngel</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://simplestexplanation.com/?p=418</guid>
		<description><![CDATA[Ahhhh Linux, those who use you, claim to love you, but I propose they&#8217;re all just trying to sound superior. I use Linux. I can&#8217;t stand it. I often joke that OSX takes one extra step compared to Windows. Want &#8230; <a href="http://simplestexplanation.com/2012/03/linux-frustrations/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Ahhhh Linux, those who use you, claim to love you, but I propose they&#8217;re all just trying to sound superior. </p>
<p>I use Linux. I can&#8217;t stand it. I often joke that OSX takes one extra step compared to Windows. Want to move the window to the right side on Win 7? Drag it all the way to the right and it sticks 50% right. Want to do this in OSX? drag it till it&#8217;s about 50%, then resize it. Sure, can do it, but it&#8217;s one extra step. Comparatively, doing anything in Linux requires that you try it, fail, read a manual, take 5 extra steps AND pray. And even then, you don&#8217;t get the same result as everyone else. Linux flavors are as varied as grains of sand on the beach, and so, anything I post here will probably fall on blind ears unless you happen to be in the same place I was when I started. My apologies, I wish I had time to spin up a VM for every flavor of Linux to perform my explanations, but alas, I&#8217;d rather be coding. =D</p>
]]></content:encoded>
			<wfw:commentRss>http://simplestexplanation.com/2012/03/linux-frustrations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add PWD to Bash Default</title>
		<link>http://simplestexplanation.com/2012/03/add-pwd-to-bash-default/</link>
		<comments>http://simplestexplanation.com/2012/03/add-pwd-to-bash-default/#comments</comments>
		<pubDate>Mon, 26 Mar 2012 22:32:43 +0000</pubDate>
		<dc:creator>MorganEngel</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[Macintosh]]></category>
		<category><![CDATA[OSX]]></category>

		<guid isPermaLink="false">http://simplestexplanation.com/?p=412</guid>
		<description><![CDATA[I grew up with DOS, so call me a throwback user, but when I open Bash on my Mac, I&#8217;d really like to know where the heck I am. By default, the prompt shows your computer&#8217;s name, then the name &#8230; <a href="http://simplestexplanation.com/2012/03/add-pwd-to-bash-default/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I grew up with DOS, so call me a throwback user, but when I open Bash on my Mac, I&#8217;d really like to know where the heck I am. By default, the prompt shows your computer&#8217;s name, then the name of the directory you&#8217;re in. This works fine if you never have duplicate directory names, but when I&#8217;m doing dev work, I often have multiple windows open for staging/prod/dev work, and they all have the same name as they&#8217;re supposed to. This script goes into your ~/.profile file and will change bash to show something like</p>

<div class="wp_syntax"><div class="code"><pre class="sh" style="font-family:monospace;">~/Documents/Workspace/
&gt;</pre></div></div>

<p>Here&#8217;s the code you put into your ~/.profile file (create one if you need to):</p>

<div class="wp_syntax"><div class="code"><pre class="sh" style="font-family:monospace;">PS1=&quot;\[\033[0;32m\]\w/\n\[\033[0;0m\]&gt;&quot;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://simplestexplanation.com/2012/03/add-pwd-to-bash-default/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dynamically Add Collapsible Elements in Jquery Mobile</title>
		<link>http://simplestexplanation.com/2012/03/dynamically-add-collapsible-elements-in-jquery-mobile/</link>
		<comments>http://simplestexplanation.com/2012/03/dynamically-add-collapsible-elements-in-jquery-mobile/#comments</comments>
		<pubDate>Thu, 01 Mar 2012 16:47:17 +0000</pubDate>
		<dc:creator>MorganEngel</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Jquery]]></category>
		<category><![CDATA[Mobile]]></category>

		<guid isPermaLink="false">http://simplestexplanation.com/?p=403</guid>
		<description><![CDATA[I spent a long time trying to get this to work and finally success. This code produces a div with content and then reminds the JQuery Mobile framework to actually wire it up with classes, functionality, etc. $&#40;'&#60;div data-role=&#34;collapsible&#34;&#62;&#60;h3&#62;Title&#60;/h3&#62;&#60;p&#62;Content&#60;/p&#62;&#60;/div&#62;'&#41;.appendTo&#40;'[data-role=&#34;content&#34;]'&#41;; $&#40;'div[data-role=collapsible]'&#41;.collapsible&#40;&#123;theme:'c',refresh:true&#125;&#41;;]]></description>
			<content:encoded><![CDATA[<p>I spent a long time trying to get this to work and finally success.<br />
This code produces a div with content and then reminds the JQuery Mobile framework to actually wire it up with classes, functionality, <em>etc</em>.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;div data-role=&quot;collapsible&quot;&gt;&lt;h3&gt;Title&lt;/h3&gt;&lt;p&gt;Content&lt;/p&gt;&lt;/div&gt;'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">appendTo</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'[data-role=&quot;content&quot;]'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'div[data-role=collapsible]'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">collapsible</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>theme<span style="color: #339933;">:</span><span style="color: #3366CC;">'c'</span><span style="color: #339933;">,</span>refresh<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://simplestexplanation.com/2012/03/dynamically-add-collapsible-elements-in-jquery-mobile/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Insert Only If Missing</title>
		<link>http://simplestexplanation.com/2012/02/mysql-insert-only-if-missing/</link>
		<comments>http://simplestexplanation.com/2012/02/mysql-insert-only-if-missing/#comments</comments>
		<pubDate>Thu, 09 Feb 2012 23:13:36 +0000</pubDate>
		<dc:creator>MorganEngel</dc:creator>
				<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://simplestexplanation.com/?p=395</guid>
		<description><![CDATA[I was building a queue of projects with statuses into a mysql table. In my situation, I was expecting to have a project number, and a status. There&#8217;s a possibility that there would be many non-unique entries, wherein the same &#8230; <a href="http://simplestexplanation.com/2012/02/mysql-insert-only-if-missing/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I was building a queue of projects with statuses into a mysql table. In my situation, I was expecting to have a project number, and a status. There&#8217;s a possibility that there would be many non-unique entries, wherein the same project was published over and over successfully. I wanted to add a new line to the table only if there wasn&#8217;t already an existing request for the current project to be built. Most of the examples out there assume you can use unique identifiers, or use two calls to solve this, but I wanted a single mysql call to solve the whole thing.<br />
I found some good stuff on this, but only one answer actually gave me what I was looking for:<br />
If you have a situation where you can&#8217;t use unique data:</p>
<blockquote><p>NOTE: Your database table must not be empty for this to work. </p></blockquote>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">INSERT</span> <span style="color: #993333; font-weight: bold;">INTO</span> <span style="color: #ff0000;">`table`</span> <span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">`value1`</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">`value2`</span><span style="color: #66cc66;">&#41;</span> 
<span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #ff0000;">'stuff for value1'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'stuff for value2'</span> <span style="color: #993333; font-weight: bold;">FROM</span> <span style="color: #ff0000;">`table`</span> 
<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">EXISTS</span> <span style="color: #66cc66;">&#40;</span><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <span style="color: #993333; font-weight: bold;">FROM</span> <span style="color: #ff0000;">`table`</span> 
                  <span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #ff0000;">`value1`</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'stuff for value1'</span> <span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #ff0000;">`value2`</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'stuff for value2'</span><span style="color: #66cc66;">&#41;</span> 
<span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">1</span></pre></div></div>

<p>If you CAN use unique identifiers on your table, then this should work for you.</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">INSERT</span> <span style="color: #993333; font-weight: bold;">IGNORE</span> <span style="color: #993333; font-weight: bold;">INTO</span> <span style="color: #ff0000;">`table`</span>
<span style="color: #993333; font-weight: bold;">SET</span> <span style="color: #ff0000;">`value1`</span> <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'stuff for value1'</span><span style="color: #66cc66;">,</span>
<span style="color: #ff0000;">`value2`</span> <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'stuff for value2'</span>;</pre></div></div>

<p>thanks to: <a href="http://stackoverflow.com/questions/1361340/how-to-insert-if-not-exists-in-mysql">this page</a></p>
]]></content:encoded>
			<wfw:commentRss>http://simplestexplanation.com/2012/02/mysql-insert-only-if-missing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ActionScript 3 Math.round &lt; Number().toFixed()</title>
		<link>http://simplestexplanation.com/2011/12/actionscript-3-math-round-number-tofixed/</link>
		<comments>http://simplestexplanation.com/2011/12/actionscript-3-math-round-number-tofixed/#comments</comments>
		<pubDate>Tue, 06 Dec 2011 19:44:58 +0000</pubDate>
		<dc:creator>MorganEngel</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[AS3]]></category>

		<guid isPermaLink="false">http://simplestexplanation.com/?p=389</guid>
		<description><![CDATA[I just found out some of the fancy features that Numbers have in AS3 and how they&#8217;re going to make my life so much nicer. Typically if I wanted to round a number, I&#8217;d write it the following way: trace&#40;Math.round&#40;5.4321&#41;&#41;; &#8230; <a href="http://simplestexplanation.com/2011/12/actionscript-3-math-round-number-tofixed/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I just found out some of the fancy features that Numbers have in AS3 and how they&#8217;re going to make my life so much nicer. </p>
<p>Typically if I wanted to round a number, I&#8217;d write it the following way:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">round</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">5.4321</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p>But this way is much easier:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span>5.4321.<span style="color: #006600;">toFixed</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p>the toFixed method of numbers rounds to a specified decimal place. It assumes you mean 0 places, so toFixed() rounds to 0 decimal places. This means you don&#8217;t need to mess with any of the Math things for rounding. </p>
]]></content:encoded>
			<wfw:commentRss>http://simplestexplanation.com/2011/12/actionscript-3-math-round-number-tofixed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Determining if your browser has a vertical scrollbar showing</title>
		<link>http://simplestexplanation.com/2011/10/determining-if-your-browser-has-a-vertical-scrollbar-showing/</link>
		<comments>http://simplestexplanation.com/2011/10/determining-if-your-browser-has-a-vertical-scrollbar-showing/#comments</comments>
		<pubDate>Fri, 28 Oct 2011 17:52:57 +0000</pubDate>
		<dc:creator>MorganEngel</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://simplestexplanation.com/?p=386</guid>
		<description><![CDATA[In javascript, I needed to know if a browser was currently showing a scrollbar. This was fairly simple, but just thought I&#8217;d write it down. window.innerHeight &#60; document.documentElement.scrollHeight]]></description>
			<content:encoded><![CDATA[<p>In javascript, I needed to know if a browser was currently showing a scrollbar. This was fairly simple, but just thought I&#8217;d write it down.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">window.<span style="color: #660066;">innerHeight</span> <span style="color: #339933;">&lt;</span> document.<span style="color: #660066;">documentElement</span>.<span style="color: #660066;">scrollHeight</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://simplestexplanation.com/2011/10/determining-if-your-browser-has-a-vertical-scrollbar-showing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why a Single Point of Failure Can Be a Good Thing</title>
		<link>http://simplestexplanation.com/2011/09/why-a-single-point-of-failure-is-a-good-thing/</link>
		<comments>http://simplestexplanation.com/2011/09/why-a-single-point-of-failure-is-a-good-thing/#comments</comments>
		<pubDate>Tue, 13 Sep 2011 18:50:49 +0000</pubDate>
		<dc:creator>MorganEngel</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[Corporations]]></category>
		<category><![CDATA[Startups]]></category>

		<guid isPermaLink="false">http://simplestexplanation.com/?p=381</guid>
		<description><![CDATA[I&#8217;ve been working in the corporate world for a while now, and I finally have figured out my personal difficulties with the transition from a small company to a large one. I&#8217;ve been there for the growth of two companies &#8230; <a href="http://simplestexplanation.com/2011/09/why-a-single-point-of-failure-is-a-good-thing/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been working in the corporate world for a while now, and I finally have figured out my personal difficulties with the transition from a small company to a large one. I&#8217;ve been there for the growth of two companies from a relatively small number of people to a larger one. The first company grew like wildfire and is now doing massive layoffs. The second company seems to be doing quite a bit better, but there&#8217;s significantly more tension than there used to be.</p>
<p>Working for a startup is a lot like having a child. The company is uncertain, it&#8217;s unprotected, and it&#8217;s completely dependent on other people to make sure that it grows up and succeeds. Like a parent, each member of a startup contributes something huge and important to the company. Without any of the various pieces, the company would fail quickly, and everyone in the company knows it. But, also like a parent, each member of a startup is almost religious in their devotion to the company. Every member is a spof (single point of failure), but the whole thing often ends up feeling a lot more like family than work.</p>
<p>Now that the company I work for is more of a corporation than a startup, there&#8217;s been a lot of talk about spof and how I need to fix that&#8211;we need to hire more people, train them to overlap my job, and ensure that if I&#8217;m out, my projects won&#8217;t fall to the wayside. I understand the need to feel secure in our company&#8217;s capability, but the sense of devotion and radical fanaticism to the company I work for has nothing to do with its well-being. It all hinges on the feeling that I, as an individual contributor am needed&#8211;and badly. The more I&#8217;m needed, the more I&#8217;ll throw myself into the mix, the more I&#8217;ll work late nights, the more I&#8217;ll innovate, create, and expand what I do because I have the opportunity to help make the whole thing better. </p>
<p>This is not better for my social life, my side projects, or my blog, but it&#8217;s significantly better than the alternative. My company no longer needs me. They want me around (I hope) but the only thing standing between me and layoffs is money, and the ability for the company to make money is no longer directly influenced by me. I&#8217;m a cog in a machine, and it&#8217;s by design that I&#8217;ve lost the ability to be more.</p>
<p>I wonder if there&#8217;s an alternative to the malaise I feel. Do people show up to Microsoft every day and say &#8220;god I&#8217;m happy to be a programmer here?&#8221; If so, where do they find their satisfaction? I suppose if I had kids myself, I&#8217;d be feeling the priority shift, but if it&#8217;s done right, startups don&#8217;t have to completely take all your time either, they just need a little extra love. </p>
]]></content:encoded>
			<wfw:commentRss>http://simplestexplanation.com/2011/09/why-a-single-point-of-failure-is-a-good-thing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making a ComboBox only show ToolTips for Long Items</title>
		<link>http://simplestexplanation.com/2011/08/making-a-combobox-only-show-tooltips-for-long-items/</link>
		<comments>http://simplestexplanation.com/2011/08/making-a-combobox-only-show-tooltips-for-long-items/#comments</comments>
		<pubDate>Mon, 15 Aug 2011 18:21:13 +0000</pubDate>
		<dc:creator>MorganEngel</dc:creator>
				<category><![CDATA[flex]]></category>

		<guid isPermaLink="false">http://simplestexplanation.com/?p=376</guid>
		<description><![CDATA[I had a Flex Combobox that had contents too big to fit, but when I made it shorter to fit, the items would be cut off. There&#8217;s a brilliant solution on the FlexExamples site that handles it so: &#60;mx:ComboBox id=&#34;projectComboBox&#34; &#8230; <a href="http://simplestexplanation.com/2011/08/making-a-combobox-only-show-tooltips-for-long-items/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I had a Flex Combobox that had contents too big to fit, but when I made it shorter to fit, the items would be cut off. There&#8217;s a brilliant solution on the FlexExamples site that handles it so:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:ComboBox</span> id=<span style="color: #ff0000;">&quot;projectComboBox&quot;</span></span>
<span style="color: #000000;">             dataProvider=<span style="color: #ff0000;">&quot;{projectList}&quot;</span></span>
<span style="color: #000000;">             maxWidth=<span style="color: #ff0000;">&quot;400&quot;</span></span>
<span style="color: #000000;">             itemRenderer=<span style="color: #ff0000;">&quot;mx.controls.Label&quot;</span><span style="color: #7400FF;">/&gt;</span></span></pre></div></div>

<p>All this does is specify the use of a label control as the TextField in the ComboBox. Since Labels are made to truncate then produce tooltips automatically, this is amazingly simple. </p>
]]></content:encoded>
			<wfw:commentRss>http://simplestexplanation.com/2011/08/making-a-combobox-only-show-tooltips-for-long-items/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing the Sun JDK in Ubuntu Linux</title>
		<link>http://simplestexplanation.com/2011/08/installing-the-sun-jdk-in-ubuntu-linux/</link>
		<comments>http://simplestexplanation.com/2011/08/installing-the-sun-jdk-in-ubuntu-linux/#comments</comments>
		<pubDate>Sun, 14 Aug 2011 19:06:42 +0000</pubDate>
		<dc:creator>MorganEngel</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://simplestexplanation.com/?p=368</guid>
		<description><![CDATA[All I wanted was the Sun JDK on the new, shiny Ubuntu I spun up in VMWare. Eclipse (among other things) recommends you do this for performance reasons. So, I tried. I looked through the apt-get system, nothing. I looked &#8230; <a href="http://simplestexplanation.com/2011/08/installing-the-sun-jdk-in-ubuntu-linux/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>All I wanted was the Sun JDK on the new, shiny Ubuntu I spun up in VMWare. Eclipse (among other things) recommends you do this for performance reasons. So, I tried. I looked through the apt-get system, nothing. I looked at sun&#8217;s website and was greeted with a plethora of errors when I got the rpm, installed rpm using apt-get and then tried to rpm -ivh the package.<br />
this is what my error partially looked like:</p>

<div class="wp_syntax"><div class="code"><pre class="sh" style="font-family:monospace;">Failed dependencies:
	/bin/basename is needed by jdk-2000:1.7.0-fcs.i586
	/bin/cat is needed by jdk-2000:1.7.0-fcs.i586
	/bin/cp is needed by jdk-2000:1.7.0-fcs.i586
	/bin/gawk is needed by jdk-2000:1.7.0-fcs.i586
	/bin/grep is needed by jdk-2000:1.7.0-fcs.i586</pre></div></div>

<p>the final solution was on <a href="http://happy-coding.com/install-sun-java6-jdk-on-ubuntu-10-04-lucid/">happy-coding.com</a> and went as so (I would have linked, but it was tough to notice that you had to do 3 steps and not just two&#8211;keepin it simple):</p>

<div class="wp_syntax"><div class="code"><pre class="sh" style="font-family:monospace;">apt-repository &quot;deb http://archive.canonical.com/ lucid partner&quot;
sudo apt-get update
sudo apt-get install sun-java6-jdk</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://simplestexplanation.com/2011/08/installing-the-sun-jdk-in-ubuntu-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

