<?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"
	>

<channel>
	<title>The Workshop</title>
	<atom:link href="http://www.eclips3media.com/workshop/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.eclips3media.com/workshop</link>
	<description>Smart web designing and web development. The eclips3.media (ECLM) development blog.</description>
	<pubDate>Tue, 07 Oct 2008 15:39:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>Quick tip: Variable Naming Conventions</title>
		<link>http://www.eclips3media.com/workshop/2008/10/07/quick-tip-variable-naming-conventions/</link>
		<comments>http://www.eclips3media.com/workshop/2008/10/07/quick-tip-variable-naming-conventions/#comments</comments>
		<pubDate>Tue, 07 Oct 2008 11:35:12 +0000</pubDate>
		<dc:creator>liquid</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://www.eclips3media.com/workshop/?p=55</guid>
		<description><![CDATA[I am just in the middle of a huge code re-factoring. I am dealing with a huge amount of code which was previously made by someone else. Most of you probably know that working with someone else&#8217;s code is most of the time a pain in the ass. It gets even worse when it leaks [...]]]></description>
			<content:encoded><![CDATA[<p>I am just in the middle of a huge code re-factoring. I am dealing with a huge amount of code which was previously made by someone else. Most of you probably know that working with someone else&#8217;s code is most of the time <em>a pain in the ass</em>. It gets even worse when it leaks in documentation.</p>
<p>So, for this really simple reason I decided to start writing quick-tips about coding which will hopefully help keeping your code clean and easy to understand. Here&#8217;s the first one.</p>
<h3>Use reasonable and self-explanatory variable names</h3>
<p>Think about how much time you often spend on figuring out what a variable is used for or what it is supposed to be. There are some <strong>bad</strong> examples:</p>

<div class="wp_syntax"><div class="code"><pre class="php php"><span style="color: #666666; font-style: italic;"># a lot of code before...</span>
&nbsp;
<span style="color: #000088;">$b</span> <span style="color: #339933;">=</span> SomeObject<span style="color: #339933;">::</span><span style="color: #004000;">getByID</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">12</span><span style="color: #009900;">&#41;</span>;
<span style="color: #000088;">$na</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Cutting Edge&quot;</span>;
<span style="color: #000088;">$nu</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">12</span>;
<span style="color: #000088;">$c</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="">'Audi'</span><span style="color: #339933;">,</span> <span style="">'BMW'</span><span style="color: #339933;">,</span> <span style="">'Mercedes'</span><span style="color: #339933;">,</span> <span style="">'Aston Martin'</span><span style="color: #009900;">&#41;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;"># a lot of code after...</span></pre></div></div>

<p>Could you explain what those variables are meant to be? You will probably need to find the answer for that some other part of your code. A better way is to indicate the types and <em>use self-explanatory variable names</em>:</p>

<div class="wp_syntax"><div class="code"><pre class="php php"><span style="color: #666666; font-style: italic;"># a lot of code before...</span>
&nbsp;
<span style="color: #000088;">$oBox</span> <span style="color: #339933;">=</span> SomeObject<span style="color: #339933;">::</span><span style="color: #004000;">getByID</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">12</span><span style="color: #009900;">&#41;</span>;
<span style="color: #000088;">$sName</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Cutting Edge&quot;</span>;
<span style="color: #000088;">$iNumber</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">12</span>;
<span style="color: #000088;">$aCars</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="">'Audi'</span><span style="color: #339933;">,</span> <span style="">'BMW'</span><span style="color: #339933;">,</span> <span style="">'Mercedes'</span><span style="color: #339933;">,</span> <span style="">'Aston Martin'</span><span style="color: #009900;">&#41;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;"># a lot of code after...</span></pre></div></div>

<p>In this example, the first characters indicate the data types of each variable (&#8221;<strong>o</strong>&#8221; means that the variable in subject is an object, &#8220;<strong>s</strong>&#8221; stands for strings, &#8220;<strong>i</strong>&#8221; indicates integers and so on. Pretty straight-forward.)</p>
<p>You may ask why this is a big deal. I tell you:</p>
<ul>
<li>Easier to understand,</li>
<li>You know what to expect from a variable,</li>
<li>Others will understand the structure of your code a lot faster,</li>
<li>Also, it will be even easier for you too to maintain if you need to get back to your own code after a while.</li>
</ul>
<p>So guys, please remember: <strong>Keep your code clean and sensible</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.eclips3media.com/workshop/2008/10/07/quick-tip-variable-naming-conventions/feed/</wfw:commentRss>
		</item>
		<item>
		<title>ECLM theme ported to XCode</title>
		<link>http://www.eclips3media.com/workshop/2008/10/06/eclm-theme-ported-to-xcode/</link>
		<comments>http://www.eclips3media.com/workshop/2008/10/06/eclm-theme-ported-to-xcode/#comments</comments>
		<pubDate>Mon, 06 Oct 2008 11:05:29 +0000</pubDate>
		<dc:creator>liquid</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[XCode]]></category>

		<guid isPermaLink="false">http://www.eclips3media.com/workshop/?p=50</guid>
		<description><![CDATA[A couple of months ago I&#8217;ve published our TextMate theme file which turned out to be really popular. Since that I&#8217;ve started experimenting with XCode but I could not get used to any of its default color themes.

I started to port our original TextMate theme to XCode. This is a quick screenshot of it, download will be [...]]]></description>
			<content:encoded><![CDATA[<p>A couple of months ago I&#8217;ve published our TextMate theme file which turned out to be really popular. Since that I&#8217;ve started experimenting with XCode but I could not get used to any of its default color themes.</p>
<div></div>
<div id="attachment_51" class="wp-caption aligncenter" style="width: 160px"><a rel="lightbox" href="http://www.eclips3media.com/workshop/wp-content/uploads/2008/10/xcode_with_eclm.png"><img class="size-thumbnail wp-image-51" title="xcode_with_eclm" src="http://www.eclips3media.com/workshop/wp-content/uploads/2008/10/xcode_with_eclm-150x150.png" alt="XCode using the ECLM Color theme" width="150" height="150" /></a><p class="wp-caption-text">XCode using the ECLM Color theme</p></div>
<p>I started to port <a href="/workshop/2007/12/06/eclips3media-eclm-textmate-theme/">our original TextMate theme</a> to XCode. This is a quick screenshot of it, download will be available soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.eclips3media.com/workshop/2008/10/06/eclm-theme-ported-to-xcode/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Twitter Said To Be Abandoning Ruby on Rails</title>
		<link>http://www.eclips3media.com/workshop/2008/05/02/twitter-said-to-be-abandoning-ruby-on-rails/</link>
		<comments>http://www.eclips3media.com/workshop/2008/05/02/twitter-said-to-be-abandoning-ruby-on-rails/#comments</comments>
		<pubDate>Fri, 02 May 2008 17:06:47 +0000</pubDate>
		<dc:creator>liquid</dc:creator>
		
		<category><![CDATA[Ruby on Rails]]></category>

		<category><![CDATA[scaling]]></category>

		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.eclips3media.com/workshop/?p=41</guid>
		<description><![CDATA[There was always a mess and confusion around the scaling abilities of Rails.
We’re hearing this from multiple sources: After nearly two years of high profile scaling problems, Twitter is planning to abandon Ruby on Rails as their web framework and start from scratch with PHP or Java (another solution is to stick with the Ruby [...]]]></description>
			<content:encoded><![CDATA[<p>There was always a mess and confusion around the scaling abilities of Rails.</p>
<blockquote><p>We’re hearing this from multiple sources: After nearly two years of high profile scaling problems, <a href="http://www.twitter.com">Twitter</a> is planning to abandon Ruby on Rails as their web framework and start from scratch with PHP or Java (another solution is to stick with the Ruby language and move away from the Rails framework).</p></blockquote>
<p>.. as it was written yesterday on <a href="http://www.techcrunch.com/2008/05/01/twitter-said-to-be-abandoning-ruby-on-rails/">Techcrunch</a>.</p>
<p>On the other hand, <a href="http://www.loudthinking.com/about.html">David Heinemeier Hansson</a> (creator of Ruby On Rails) <a href="http://www.loudthinking.com/arc/000479.html">wrote a post</a> on <a href="http://www.loudthinking.com/">Loud Thinking</a> (his personal Blog) about the scaling opportunities of the framework.</p>
<p>Well, I am about to dig deeper into this very exciting question and share my experiences.</p>
<p>UPDATE: Just got noticed by <a href="http://twitter.com/dagobart">Arnold Funken</a> on Twitter:</p>
<p><a href="http://twitter.com/ev/statuses/801530348"><img class="aligncenter size-full attachment wp-att-42" title="Evan Williams on Twitter" src="http://www.eclips3media.com/workshop/wp-content/uploads/2008/05/picture-2.png" alt="" width="500" height="180" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.eclips3media.com/workshop/2008/05/02/twitter-said-to-be-abandoning-ruby-on-rails/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Element.Update(), flash and IE7</title>
		<link>http://www.eclips3media.com/workshop/2008/05/02/elementupdate-flash-and-ie7/</link>
		<comments>http://www.eclips3media.com/workshop/2008/05/02/elementupdate-flash-and-ie7/#comments</comments>
		<pubDate>Fri, 02 May 2008 13:27:38 +0000</pubDate>
		<dc:creator>liquid</dc:creator>
		
		<category><![CDATA[Front-end]]></category>

		<category><![CDATA[Flash and Flash Lite]]></category>

		<category><![CDATA[Prototype]]></category>

		<guid isPermaLink="false">http://www.eclips3media.com/workshop/?p=40</guid>
		<description><![CDATA[Yesterday I ran into an issue with IE7 again (well, I assume not too many of you are surprised, ehh).
When I was trying to move an element in the DOM (actually update) with an other element&#8217;s innerHTML including a flash object, the movie (.swf) forgot to load. Right clicking on the flash file you can see the [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I ran into an issue with IE7 again (well, I assume not too many of you are surprised, ehh).</p>
<p>When I was trying to move an element in the DOM (actually update) with an other element&#8217;s innerHTML including a flash object, the movie (.swf) forgot to load. Right clicking on the flash file you can see the following message, greyed out:</p>
<p>&#8220;Movie not loaded&#8221;</p>
<p>This is an example snippet of the code:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript javascript">&lt;div id=&quot;video&quot;&gt;
	&lt;object classid=&quot;clsid:d27cdb6e-ae6d-11cf-96b8-444553540000&quot; width=&quot;184&quot; height=&quot;140&quot; codebase=&quot;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0&quot;&gt;&lt;param name=&quot;bgcolor&quot; value=&quot;999999&quot; /&gt;&lt;param name=&quot;quality&quot; value=&quot;high&quot; /&gt;&lt;param name=&quot;allowScriptAccess&quot; value=&quot;always&quot; /&gt;&lt;param name=&quot;allowNetworking&quot; value=&quot;all&quot; /&gt;&lt;param name=&quot;src&quot; value=&quot;/videos/15.swf&quot; /&gt;&lt;embed type=&quot;application/x-shockwave-flash&quot; width=&quot;184&quot; height=&quot;140&quot; src=&quot;/videos/15.swf&quot; allownetworking=&quot;all&quot; allowscriptaccess=&quot;always&quot; quality=&quot;high&quot; bgcolor=&quot;999999&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;otherElement&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">update</span><span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;video&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">innerHTML</span><span style="color: #009900;">&#41;</span>;
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Using IE7, Prototype 1.5 and Flash Player 9 on Windows XP.</p>
<p>This problem does not seem to occur in normal browsers (like Safari or Firefox), they load the movie file perfectly. I thought it would be good to share with others, maybe you guys know a workaround, or I can warn others before they will have to face the same problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.eclips3media.com/workshop/2008/05/02/elementupdate-flash-and-ie7/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Safari 3.1 and Prototype conflicts</title>
		<link>http://www.eclips3media.com/workshop/2008/03/25/safari-31-and-prototype-conflicts/</link>
		<comments>http://www.eclips3media.com/workshop/2008/03/25/safari-31-and-prototype-conflicts/#comments</comments>
		<pubDate>Tue, 25 Mar 2008 11:21:39 +0000</pubDate>
		<dc:creator>liquid</dc:creator>
		
		<category><![CDATA[Front-end]]></category>

		<category><![CDATA[Firefox 3]]></category>

		<category><![CDATA[JavaScript]]></category>

		<category><![CDATA[Prototype]]></category>

		<category><![CDATA[Safari 3]]></category>

		<guid isPermaLink="false">http://www.eclips3media.com/workshop/2008/03/25/safari-31-and-prototype-conflicts/</guid>
		<description><![CDATA[Apple has shipped the new version of Safari last week, which has enhanced usage of JavaScript. From now on Safari 3.1 natively supports getElementsByClassName, which is good, Safari can process and execute this function even faster than before. The upcoming version of Firefox also implements native support. Good. Performance upgrades are always good, and even [...]]]></description>
			<content:encoded><![CDATA[<p>Apple has shipped the <a href="http://docs.info.apple.com/article.html?artnum=307467">new version of Safari</a> last week, which has enhanced usage of JavaScript. From now on Safari 3.1 natively supports <strong>getElementsByClassName</strong>, which is good, Safari can process and execute this function even faster than before. The <a href="http://www.mozilla.com/en-US/firefox/3.0b4/releasenotes/">upcoming version of Firefox</a> also implements native support. Good. Performance upgrades are always good, and even more welcome nowadays in our &#8216;ultra-interactive&#8217; web of 2.0 applications.</p>
<p>But on the other side, this causes issues for <a href="http://www.prototypejs.org/">Prototype-based websites</a>, there is a conflict between the native and the Prototype methods, which both have the same name.</p>
<p>For example if you are accessing a bunch of elements like this:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript javascript">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'foo'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">getElementsByClassName</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;bar&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span>Element.<span style="color: #660066;">hide</span><span style="color: #009900;">&#41;</span>;</pre></div></div>

<p>It will not behave like it did before. Hmm. You do not need to scream and shout now, until the Prototype team comes out with a solution you can still use this syntax:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript javascript">$$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#foo .bar&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span>Element.<span style="color: #660066;">hide</span><span style="color: #009900;">&#41;</span>;</pre></div></div>

<p>Easy, huh? So be aware that your sites may be broken for Safari users and replace the affected lines with the workaround mentioned above.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.eclips3media.com/workshop/2008/03/25/safari-31-and-prototype-conflicts/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Rails 2.0 is finally out</title>
		<link>http://www.eclips3media.com/workshop/2007/12/12/rails-20-is-finally-out/</link>
		<comments>http://www.eclips3media.com/workshop/2007/12/12/rails-20-is-finally-out/#comments</comments>
		<pubDate>Tue, 11 Dec 2007 23:45:36 +0000</pubDate>
		<dc:creator>liquid</dc:creator>
		
		<category><![CDATA[Ruby on Rails]]></category>

		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://www.eclips3media.com/workshop/2007/12/11/rails-20-is-finally-officially-out/</guid>
		<description><![CDATA[Yes, you are right. It is finally finished after about a year in the making. This is a fantastic release that’s absolutely stuffed with great new features, loads of fixes, and an incredible amount of polish. So let&#8217;s digg into the new features and everybody: update your stuff to get even more funky!
Update details can [...]]]></description>
			<content:encoded><![CDATA[<p>Yes, you are right. It is finally finished after about a year in the making. This is a fantastic release that’s absolutely stuffed with great new features, loads of fixes, and an incredible amount of polish. So let&#8217;s digg into the new features and everybody: update your stuff to get even more funky!</p>
<p>Update details can be found <a href="http://weblog.rubyonrails.org/2007/12/7/rails-2-0-it-s-done">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.eclips3media.com/workshop/2007/12/12/rails-20-is-finally-out/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Custom cursor &#8220;bug&#8221; in ActionScript3</title>
		<link>http://www.eclips3media.com/workshop/2007/12/11/custom-cursor-bug-in-actionscript3/</link>
		<comments>http://www.eclips3media.com/workshop/2007/12/11/custom-cursor-bug-in-actionscript3/#comments</comments>
		<pubDate>Tue, 11 Dec 2007 17:28:06 +0000</pubDate>
		<dc:creator>dain</dc:creator>
		
		<category><![CDATA[Flash and Flash Lite]]></category>

		<category><![CDATA[as3]]></category>

		<category><![CDATA[cursor]]></category>

		<category><![CDATA[custom]]></category>

		<category><![CDATA[mouse]]></category>

		<guid isPermaLink="false">http://www.eclips3media.com/workshop/2007/12/11/custom-cursor-bug-in-as3/</guid>
		<description><![CDATA[If you ever want to use a custom mouse cursor in AS3 (for say dragging) with rollover/rollout events toggling it (so it will only change the cursor for certain movie-clips), bear this in mind:
When the user moves the mouse to the right with a certain (slowish) speed, the (original) hidden mouse cursor will go over [...]]]></description>
			<content:encoded><![CDATA[<p>If you ever want to use a custom mouse cursor in AS3 (for say dragging) with rollover/rollout events toggling it (so it will only change the cursor for certain movie-clips), bear this in mind:<br />
When the user moves the mouse to the right with a certain (slowish) speed, the (original) hidden mouse cursor will go over the custom cursor, so it will fire the rollout event. Then when Flash updates the custom cursor position, the original mouse cursor won`t be over the custom one anymore, so it fires the rollout event, thus the cursor blinks quite noticeably. And no, the event.updateAfterEvent() won`t help either.</p>
<p>The workaround for this is to add the MouseEvent.MOUSE_MOVE listener to the stage and watch the event.target in the handler function and toggle the custom cursor using that, so you can specify that Flash shouldn`t do the toggling (= keep the custom cursor on) when the mouse goes over it.</p>
<p>So it isn`t necessarily a Flash Player bug, because this behavior makes sense (the mouse updates much more frequently than the .swf), but well annoying to figure out anyway.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.eclips3media.com/workshop/2007/12/11/custom-cursor-bug-in-actionscript3/feed/</wfw:commentRss>
		</item>
		<item>
		<title>eclips3.media (ECLM) TextMate Theme</title>
		<link>http://www.eclips3media.com/workshop/2007/12/06/eclips3media-eclm-textmate-theme/</link>
		<comments>http://www.eclips3media.com/workshop/2007/12/06/eclips3media-eclm-textmate-theme/#comments</comments>
		<pubDate>Wed, 05 Dec 2007 22:35:20 +0000</pubDate>
		<dc:creator>liquid</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[environment]]></category>

		<category><![CDATA[productivity]]></category>

		<category><![CDATA[textmate]]></category>

		<guid isPermaLink="false">http://www.eclips3media.com/workshop/2007/12/06/eclips3media-eclm-textmate-theme/</guid>
		<description><![CDATA[I usually check several development forums and I&#8217;ve found a thread on Rails Forum about development environments where people share a screenshot about their tools. I did this too, after several examples. Since my TextMate Theme got so many respects I decided to share it with the public.
One of its main benefits is that it [...]]]></description>
			<content:encoded><![CDATA[<p>I usually check several development forums and I&#8217;ve found <a href="http://railsforum.com/viewtopic.php?pid=46884#p46884">a thread</a> on Rails Forum about development environments where people share a screenshot about their tools. I did this too, after several examples. Since my TextMate Theme got so many respects I decided to share it with the public.</p>
<p>One of its main benefits is that it separates the different data structures, functions, variables, comments, etc. So it is easier to look up your code.</p>
<p><a rel="lightbox" href="http://www.eclips3media.com/workshop/wp-content/uploads/2007/12/dev_wallpaper.png" title="Development Environment"><img src="http://www.eclips3media.com/workshop/wp-content/uploads/2007/12/dev_wallpaper.thumbnail.png" alt="Development Environment" /></a></p>
<p>So, if you like it, it can be found <a href="http://www.eclips3media.com/workshop/wp-content/uploads/2007/12/eclips3media_eclm_textmate_theme.zip" title="eclips3.media (ECLM) TextMate Theme">here</a>.</p>
<p>Copyright: This theme was originally improved from the one what we can see in <a href="http://www.railscasts.com/">Ryan Bates&#8217; Railscasts</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.eclips3media.com/workshop/2007/12/06/eclips3media-eclm-textmate-theme/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Flash textfield height error using device fonts</title>
		<link>http://www.eclips3media.com/workshop/2007/12/03/flash-textfield-height-error-using-device-fonts/</link>
		<comments>http://www.eclips3media.com/workshop/2007/12/03/flash-textfield-height-error-using-device-fonts/#comments</comments>
		<pubDate>Mon, 03 Dec 2007 14:42:32 +0000</pubDate>
		<dc:creator>dain</dc:creator>
		
		<category><![CDATA[Flash and Flash Lite]]></category>

		<category><![CDATA[actionscript 2.0]]></category>

		<category><![CDATA[device font]]></category>

		<category><![CDATA[hack]]></category>

		<category><![CDATA[height]]></category>

		<category><![CDATA[textfield]]></category>

		<category><![CDATA[textheight]]></category>

		<guid isPermaLink="false">http://www.eclips3media.com/workshop/?p=21</guid>
		<description><![CDATA[I`ve ran into a rather annoying bug today, if you want to use either the _height or textHeight property of a textfield using device fonts and set to autoSize, it`ll add a phantom line, so will report the heights as if there was an extra line in the textfield.
The fix for it is quite random [...]]]></description>
			<content:encoded><![CDATA[<p>I`ve ran into a rather annoying bug today, if you want to use either the _height or textHeight property of a textfield using device fonts and set to autoSize, it`ll add a phantom line, so will report the heights as if there was an extra line in the textfield.</p>
<p>The fix for it is quite random as well, you have to ADD a &#8220;\n&#8221; (=new line) at the end of your text and whooops, the phantom line is gone.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.eclips3media.com/workshop/2007/12/03/flash-textfield-height-error-using-device-fonts/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Problems with RMagick 1.5.x</title>
		<link>http://www.eclips3media.com/workshop/2007/11/16/problems-with-rmagick-15x/</link>
		<comments>http://www.eclips3media.com/workshop/2007/11/16/problems-with-rmagick-15x/#comments</comments>
		<pubDate>Fri, 16 Nov 2007 11:54:52 +0000</pubDate>
		<dc:creator>liquid</dc:creator>
		
		<category><![CDATA[Ruby on Rails]]></category>

		<category><![CDATA[rmagick]]></category>

		<guid isPermaLink="false">http://www.eclips3media.com/workshop/?p=20</guid>
		<description><![CDATA[Last week one of our webistes went down for some unknown reason, and I&#8217;ve found this kind of error message in production.log:
LoadError (Expected xy file to define ...)
Of course this is a useless error message which means Rails couldn&#8217;t find a controller file which has been still at its proper path of course. What to [...]]]></description>
			<content:encoded><![CDATA[<p>Last week one of our webistes went down for some unknown reason, and I&#8217;ve found this kind of error message in production.log:</p>
<pre>LoadError (Expected xy file to define ...)</pre>
<p>Of course this is a useless error message which means Rails couldn&#8217;t find a controller file which has been still at its proper path of course. What to do now? If you need a more detailed error log, there is a solution to force Rails to log errors in deeper detail, just set your caching classes to true in your environment.rb file:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby ruby">config.<span style="color:#9900CC;">cache_classes</span> = <span style="color:#0000FF; font-weight:bold;">true</span></pre></div></div>

<p>After restarting the webserver, and reloading the page, I could get a proper and useful error message, Rails pointed that the error is in RMagick gems. Take a quick look on the new error message in the log:</p>
<pre>RuntimeError (This version of RMagick was created to run with ImageMagick 6.3.3
but ImageMagick 6.3.6 is installed on this system. You should either
1) Configure and build RMagick for ImageMagick 6.3.6, or
2) download ImageMagick 6.3.3 from file:///usr/local/share/doc/ImageMagick-6.3.3/index.html and install it.
):</pre>
<p>Now this is something what you can use to start debugging. After reinstalling RMagick, the problem has been solved, and the site was up and online again. Just do the following 3 easy steps:</p>
<pre>gem uninstall rmagick
gem install rmagick
apachectl restart</pre>
<p>Done, hoorraaay!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.eclips3media.com/workshop/2007/11/16/problems-with-rmagick-15x/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
