<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Suneth Mendis</title>
	
	<link>http://www.slackcoders.com/suneth</link>
	<description>One life, Live it!</description>
	<pubDate>Tue, 05 Aug 2008 01:27:22 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
	<language>en</language>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/SunethMendis" type="application/rss+xml" /><item>
		<title>Ignorance is your loss</title>
		<link>http://feeds.feedburner.com/~r/SunethMendis/~3/355864881/</link>
		<comments>http://www.slackcoders.com/suneth/2008/08/04/ignorance-is-your-loss/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 01:27:22 +0000</pubDate>
		<dc:creator>Suneth Mendis</dc:creator>
		
		<category><![CDATA[Gadgets]]></category>

		<category><![CDATA[WTF]]></category>

		<guid isPermaLink="false">http://www.slackcoders.com/suneth/?p=52</guid>
		<description><![CDATA[
       Last week I got my credit card out to buy few applications from the apple app store for my iPod Touch. But I didn&#39;t!!&#160;
    

       Most of the applications I wanted did not have the support for Metric unit [...]]]></description>
			<content:encoded><![CDATA[<p>
       Last week I got my credit card out to buy few applications from the apple app store for my iPod Touch. But I didn&#39;t!!&#160;
    </p>
<p>
       Most of the applications I wanted did not have the support for Metric unit system! It is absolutely shocking that most American iPhone application developers didn&#39;t bother or too ignorant to realize that the rest of the world have moved on with the metric unit system. US is pretty much the <a href="http://en.wikipedia.org/wiki/Image:Metric_system.png">only western country</a> in the world still stuck in dark ages. (Myanmar and Liberia are the other countries) Knowing the fact that iPhone was going international and the need for the support of metric units system is essential to sell the dam software!!!&#160;
    </p>
<p>
       I simply can&#39;t believe the stupidity and ignorance of these developers&#8230; It&#39;s your loss anyway!
    </p>
<img src="http://feeds.feedburner.com/~r/SunethMendis/~4/355864881" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.slackcoders.com/suneth/2008/08/04/ignorance-is-your-loss/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.slackcoders.com/suneth/2008/08/04/ignorance-is-your-loss/</feedburner:origLink></item>
		<item>
		<title>Auto coloring of child nodes using Prototype</title>
		<link>http://feeds.feedburner.com/~r/SunethMendis/~3/315236801/</link>
		<comments>http://www.slackcoders.com/suneth/2008/06/19/auto-coloring-of-child-nodes-using-prototype/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 07:32:08 +0000</pubDate>
		<dc:creator>Suneth Mendis</dc:creator>
		
		<category><![CDATA[JavaScript]]></category>

		<category><![CDATA[Prototype]]></category>

		<guid isPermaLink="false">http://www.slackcoders.com/suneth/?p=48</guid>
		<description><![CDATA[
       Inspired by David F. Miller&#39;s work in 2004 to color alternate table rows (Just like iTunes) I wrote this simple Prototype based script to do the same and a little but more. This script will color any list given that the list belong to a single parent.&#160;
  [...]]]></description>
			<content:encoded><![CDATA[<p>
       Inspired by David F. Miller&#39;s work in 2004 to color alternate table rows (Just like iTunes) I wrote this simple Prototype based script to do the same and a little but more. This script will color any list given that the list belong to a single parent.&#160;
    </p>
<p>
       Check out the <a href="http://slackcoders.com/suneth/Zebra/">demo</a> where the script is applied to a table and an unordered list.&#160;
    </p>
<h6>
       The script&#160;<br />
    </h6>
<pre class="code">
<span class="java_plain">function</span> <span class="java_type">Zebra</span><span class="java_separator">(</span><span class="java_plain">parentNode</span><span class="java_separator">,</span><span class="java_plain"> styles</span><span class="java_separator">)</span> <span class="java_separator">{</span>
    <span class="java_keyword">this</span><span class="java_separator">.</span><span class="java_plain">colorMe</span><span class="java_separator">(</span><span class="java_plain">parentNode</span><span class="java_separator">,</span><span class="java_plain"> styles</span><span class="java_separator">);</span>
<span class="java_separator">}</span>

<span class="java_type">Zebra</span><span class="java_separator">.</span><span class="java_plain">prototype</span> <span class="java_operator">=</span> <span class="java_separator">{</span>
<span class="java_plain">    colorMe</span><span class="java_operator">:</span><span class="java_plain"> function</span><span class="java_separator">(</span><span class="java_plain">parentNode</span><span class="java_separator">,</span><span class="java_plain"> styles</span><span class="java_separator">)</span> <span class="java_separator">{</span>
        <span class="java_keyword">if</span> <span class="java_separator">(</span><span class="java_plain">parentNode</span> <span class="java_operator">&#38;&#38;</span><span class="java_plain"> styles</span><span class="java_separator">)</span> <span class="java_separator">{</span>
<span class="java_plain">            var styleList</span> <span class="java_operator">=</span><span class="java_plain"> styles</span><span class="java_separator">.</span><span class="java_plain">split</span><span class="java_separator">(</span><span class="java_literal">&quot;,&quot;</span><span class="java_separator">);</span>
<span class="java_plain">            var parents</span> <span class="java_operator">=</span><span class="java_plain"> $$</span><span class="java_separator">(</span><span class="java_plain">parentNode</span><span class="java_separator">);</span>
            <span class="java_keyword">for</span> <span class="java_separator">(</span><span class="java_plain">var i</span><span class="java_operator">=</span><span class="java_literal">0</span><span class="java_separator">;</span><span class="java_plain"> i</span> <span class="java_operator">&#60;</span><span class="java_plain"> parents</span><span class="java_separator">.</span><span class="java_plain">length</span><span class="java_separator">;</span><span class="java_plain"> i</span><span class="java_operator">++</span><span class="java_separator">)</span> <span class="java_separator">{</span>
<span class="java_plain">                var currentParent</span> <span class="java_operator">=</span><span class="java_plain"> parents</span><span class="java_separator">[</span><span class="java_plain">i</span><span class="java_separator">];</span>
<span class="java_plain">                var children</span> <span class="java_operator">=</span><span class="java_plain"> currentParent</span><span class="java_separator">.</span><span class="java_plain">childElements</span><span class="java_separator">();</span>
                <span class="java_keyword">for</span> <span class="java_separator">(</span><span class="java_plain">var j</span><span class="java_operator">=</span><span class="java_literal">0</span><span class="java_separator">;</span><span class="java_plain"> j</span> <span class="java_operator">&#60;</span><span class="java_plain"> children</span><span class="java_separator">.</span><span class="java_plain">length</span><span class="java_separator">;</span><span class="java_plain"> j</span><span class="java_operator">++</span><span class="java_separator">)</span> <span class="java_separator">{</span>
<span class="java_plain">                    var currentChild</span> <span class="java_operator">=</span><span class="java_plain"> children</span><span class="java_separator">[</span><span class="java_plain">j</span><span class="java_separator">];</span>
<span class="java_plain">                    var k</span> <span class="java_operator">=</span> <span class="java_separator">(</span><span class="java_plain">j</span> <span class="java_operator">+</span> <span class="java_separator">(</span><span class="java_plain">styleList</span><span class="java_separator">.</span><span class="java_plain">length</span><span class="java_separator">))</span> <span class="java_operator">%</span><span class="java_plain"> styleList</span><span class="java_separator">.</span><span class="java_plain">length</span><span class="java_separator">;</span>
<span class="java_plain">                    currentChild</span><span class="java_separator">.</span><span class="java_plain">addClassName</span><span class="java_separator">(</span><span class="java_plain">styleList</span><span class="java_separator">[</span><span class="java_plain">k</span><span class="java_separator">]);</span>
                <span class="java_separator">}</span>
            <span class="java_separator">}</span>
        <span class="java_separator">}</span>
    <span class="java_separator">}</span>
<span class="java_separator">}</span>
</pre>
<h6>
       Usage<br />
    </h6>
<p>
       Usage is pretty simple.
    </p>
<p>
       <code>new Zebra(ParentNode, List of styles you like to alternate);</code>
    </p>
<h6>
       Example<br />
    </h6>
<pre class="code">
<span class="xml_plain">.odd { background: #fff; }</span>
<span class="xml_plain">.even { background: #edf3fe;}</span>

<span class="java_keyword">new</span> <span class="java_type">Zebra</span><span class="java_separator">(</span><span class="java_literal">&#39;ul&#39;</span><span class="java_separator">,</span><span class="java_literal">&#39;odd,even&#39;</span><span class="java_separator">);</span>
</pre>
<p>
       The beauty of it is that since its CSS driven, you can have any color imaginable and any number of colors to alternate.
    </p>
<img src="http://feeds.feedburner.com/~r/SunethMendis/~4/315236801" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.slackcoders.com/suneth/2008/06/19/auto-coloring-of-child-nodes-using-prototype/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.slackcoders.com/suneth/2008/06/19/auto-coloring-of-child-nodes-using-prototype/</feedburner:origLink></item>
		<item>
		<title>iFrame dynamic resizing revisited</title>
		<link>http://feeds.feedburner.com/~r/SunethMendis/~3/306453448/</link>
		<comments>http://www.slackcoders.com/suneth/2008/06/05/iframe-dynamic-resizing-revisited/#comments</comments>
		<pubDate>Thu, 05 Jun 2008 07:03:24 +0000</pubDate>
		<dc:creator>Suneth Mendis</dc:creator>
		
		<category><![CDATA[Coding]]></category>

		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.slackcoders.com/suneth/?p=47</guid>
		<description><![CDATA[Its time to revisit the burning question once again!
&#8220;Is there a reliable way to dynamically resize the iFrame height according to its contents?&#8221;
Well according to my previous post I thought I nailed it! But I soon found out it wasn&#8217;t all that reliable!  So it wasn&#8217;t the silver bullet I was hoping for. 
So as [...]]]></description>
			<content:encoded><![CDATA[<p>Its time to revisit the burning question once again!</p>
<h4><em>&#8220;Is there a reliable way to dynamically resize the iFrame height according to its contents?&#8221;</em></h4>
<p>Well according to <a href="http://www.slackcoders.com/suneth/2008/03/10/iframe-dynamic-resizing-solved/">my previous post</a> I thought I nailed it! But I soon found out it wasn&#8217;t all that reliable! <img src='http://www.slackcoders.com/suneth/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> So it wasn&#8217;t the silver bullet I was hoping for. </p>
<p>So as a part of &#8220;E2&#8243; development, my mate Rob and I started on a journey to conquer this once and for all! Our findings were some what disturbing!</p>
<p>First of all, there ISN&#8217;T a silver bullet that solves the problem for all the browsers. The basic problem is that iFrames (along with applets) are handled differently on browsers as compared to other elements. <a href="http://www.oratransplant.nl/2007/10/26/using-iframe-shim-to-partly-cover-a-java-applet/">In fact iframes are not handled by browsers at all, but by the OS.</a> So the solution will never be the same for all the browsers. So heres what we found. </p>
<h3>IE 6/7</h3>
<p>The solution is a nasty CSS hack. Until yesterday I have not heard about this trick. The trick is to have an expression like this in your CSS.<br />
<code><br />
.iframe { height: expression(document.documentElement.clientHeight + "px"); }</code></p>
<p>IE being a special browser, it detects this expression and resize your iFrame accordingly. But there is a down side to this. <a href="http://developer.yahoo.net/blog/archives/2007/07/high_performanc_6.html">Having expressions in your CSS affects your site&#8217;s performance.</a> But having battered by this issue for days and nights, I am willing to go down this path for now!</p>
<h3>FireFox 2 and 3 / Safari 3</h3>
<p>Yes, they both behave the same way! So trick here is to wrap your iframe with a DIV tag and assign an  absolute positioning to the DIV. </p>
<p><code>&lt;div id="iframe_wrap"&gt;&lt;iframe scrolling="auto" id="iframe" name="iframe" class="iframe" frameborder="0" src="source_page.html" width="100%" height="100%"&gt;&lt;/iframe&gt;&lt;/div&gt;</code></p>
<p>And then apply styles to the DIV tag like below. </p>
<p><code>#iframe_wrap {<br />
position:absolute;<br />
top: 60px;<br />
left: 0;<br />
right: 0;<br />
bottom: 0;<br />
}</code></p>
<p>This nice trick will get ride of the &#8220;double scrollbar&#8221; phenomenon as well. </p>
<p>So there you go. The job is done!!! (At least for now) Special thanks to <a href="http://www.rojotek.com/blog/">Rob</a> for doing most of the &#8220;googling&#8221;!</p>
<img src="http://feeds.feedburner.com/~r/SunethMendis/~4/306453448" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.slackcoders.com/suneth/2008/06/05/iframe-dynamic-resizing-revisited/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.slackcoders.com/suneth/2008/06/05/iframe-dynamic-resizing-revisited/</feedburner:origLink></item>
		<item>
		<title>Using jQuery with Prototype - Sweet!!!</title>
		<link>http://feeds.feedburner.com/~r/SunethMendis/~3/306453449/</link>
		<comments>http://www.slackcoders.com/suneth/2008/05/18/45/#comments</comments>
		<pubDate>Mon, 19 May 2008 00:36:57 +0000</pubDate>
		<dc:creator>Suneth Mendis</dc:creator>
		
		<category><![CDATA[Coding]]></category>

		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.slackcoders.com/suneth/?p=45</guid>
		<description><![CDATA[
       As many of us know there are 2 leading contenders for javascript frameworks. Prototype and jQuery. I have used prototype extensively in my applications but I do keep an eye on jQuery goodness from time to time. Being a Java developer, I personally like the syntax jQuery offers [...]]]></description>
			<content:encoded><![CDATA[<p>
       As many of us know there are 2 leading contenders for javascript frameworks. Prototype and jQuery. I have used prototype extensively in my applications but I do keep an eye on jQuery goodness from time to time. Being a Java developer, I personally like the syntax jQuery offers (pretty much OO looking syntax and therefore easy to read and understand) but prototype is not too bad either. Functionality wise none offers more than the other.&#160;
    </p>
<p>
       But jQuery seems to be the preferred choice of most people and therefore you will find alot of sleek plug-ins on the web as compared to prototype. But unfortunately for me I can&#39;t use jQuery while using prototype because of the obvious conflicts in the syntax. (the use of $ is different on 2 frameworks). At least that&#39;s what I thought until I found this!
    </p>
<p>
       <a href="http://docs.jquery.com/Using_jQuery_with_Other_Libraries"><code>jQuery.noConflict();</code></a>
    </p>
<p>
       Seems like jQuery found a way around. This is the sweetest bit of news I heard for a while!!! Because it means that i don&#39;t need to change my existing prototype code to enjoy jQuery goodness.&#160;
    </p>
<img src="http://feeds.feedburner.com/~r/SunethMendis/~4/306453449" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.slackcoders.com/suneth/2008/05/18/45/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.slackcoders.com/suneth/2008/05/18/45/</feedburner:origLink></item>
		<item>
		<title>“Fun” with Prototype and IE7 and Tables</title>
		<link>http://feeds.feedburner.com/~r/SunethMendis/~3/306453450/</link>
		<comments>http://www.slackcoders.com/suneth/2008/05/13/fun-with-prototype-and-ie7-and-tables/#comments</comments>
		<pubDate>Tue, 13 May 2008 07:07:08 +0000</pubDate>
		<dc:creator>Suneth Mendis</dc:creator>
		
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.slackcoders.com/suneth/?p=44</guid>
		<description><![CDATA[
       Its a known fact that DOM manipulation on TABLE in IE is a mine field. I thought I could get lucky with prototype when it comes to creating DOM elements on the fly. But apparently not! In particular html TABLES. So here are some of the &#34;gotcha&#34; moments [...]]]></description>
			<content:encoded><![CDATA[<p>
       Its a known fact that DOM manipulation on TABLE in IE is a mine field. I thought I could get lucky with prototype when it comes to creating DOM elements on the fly. But apparently not! In particular html TABLES. So here are some of the &quot;gotcha&quot; moments I&#39;ve had!
    </p>
<ol>
<li>
        Every table needs a body </p>
<p>
           <code>var table = Builder.node(&quot;table&quot;, [Builder.node(&quot;tr&quot;, [Builder.node(&quot;td&quot;)])]);</code>
        </p>
<p>
           This piece of code will render a nice table on Firefox and Safari. But unfortunately not on IE. You need to create a TBODY explicitly for IE to make sense out of this.&#160; So you need something like &#160; <code>var table = Builder.node(&quot;table&quot;, [Builder.node(&quot;tbody&quot;, [Builder.node(&quot;tr&quot;, [Builder.node(&quot;td&quot;)])])]);</code> for this to work.
        </p>
</li>
<li>
        Table with inline style attribute will break your javascript </p>
<p>
           <code>var table = Builder.node(&quot;table&quot;, [Builder.node(&quot;tbody&quot;, [Builder.node(&quot;tr&quot;, [Builder.node(&quot;td&quot; , {style:&quot;background:blue;&quot;})])])]);</code>
        </p>
<p>
           Again this piece of code will create a table with the single cell and the background is set to blue. Works like a charm in Firefox and Safari. But not IE7!&#160;This also applies to styles applied to table rows, columns and table headers. Only way around is to define a className attribute and assign a class name or set styles directly onto the DOM element like
        </p>
<p>
           <code>object.style.background=&quot;blue&quot;;</code>
        </p>
</li>
</ol>
<p>
       &#160;
    </p>
<p>
       Another very very annoying thing with prototype is that it does not have any error reporting mechanism. So the issues like these are harder to track down.
    </p>
<img src="http://feeds.feedburner.com/~r/SunethMendis/~4/306453450" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.slackcoders.com/suneth/2008/05/13/fun-with-prototype-and-ie7-and-tables/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.slackcoders.com/suneth/2008/05/13/fun-with-prototype-and-ie7-and-tables/</feedburner:origLink></item>
		<item>
		<title>What serious lack of sleep can do to a developer…</title>
		<link>http://feeds.feedburner.com/~r/SunethMendis/~3/306453451/</link>
		<comments>http://www.slackcoders.com/suneth/2008/05/08/what-serious-lack-of-sleep-can-do-to-a-developer/#comments</comments>
		<pubDate>Thu, 08 May 2008 23:37:08 +0000</pubDate>
		<dc:creator>Suneth Mendis</dc:creator>
		
		<category><![CDATA[Life]]></category>

		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://www.slackcoders.com/suneth/?p=42</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.slackcoders.com/suneth/wp-content/uploads/2008/05/picture-2.png"></a><a href="http://www.slackcoders.com/suneth/wp-content/uploads/2008/05/picture-21.png"><img class="aligncenter size-full wp-image-43" title="sleeping" src="http://www.slackcoders.com/suneth/wp-content/uploads/2008/05/picture-21.png" alt="" /></a></p>
<img src="http://feeds.feedburner.com/~r/SunethMendis/~4/306453451" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.slackcoders.com/suneth/2008/05/08/what-serious-lack-of-sleep-can-do-to-a-developer/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.slackcoders.com/suneth/2008/05/08/what-serious-lack-of-sleep-can-do-to-a-developer/</feedburner:origLink></item>
		<item>
		<title>iSurprise</title>
		<link>http://feeds.feedburner.com/~r/SunethMendis/~3/306453452/</link>
		<comments>http://www.slackcoders.com/suneth/2008/04/22/isurprise/#comments</comments>
		<pubDate>Wed, 23 Apr 2008 00:58:04 +0000</pubDate>
		<dc:creator>Suneth Mendis</dc:creator>
		
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://www.slackcoders.com/suneth/?p=38</guid>
		<description><![CDATA[Did you know, when you press APPLE+T on your Terminal.app on a Mac it actually opens up another tab in the terminal? What a nice surprise!
]]></description>
			<content:encoded><![CDATA[<p>Did you know, when you press APPLE+T on your Terminal.app on a Mac it actually opens up another tab in the terminal? What a nice surprise!</p>
<img src="http://feeds.feedburner.com/~r/SunethMendis/~4/306453452" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.slackcoders.com/suneth/2008/04/22/isurprise/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.slackcoders.com/suneth/2008/04/22/isurprise/</feedburner:origLink></item>
		<item>
		<title>Offline blog editor</title>
		<link>http://feeds.feedburner.com/~r/SunethMendis/~3/306453453/</link>
		<comments>http://www.slackcoders.com/suneth/2008/04/21/offline-blog-editor/#comments</comments>
		<pubDate>Mon, 21 Apr 2008 11:44:35 +0000</pubDate>
		<dc:creator>Suneth Mendis</dc:creator>
		
		<category><![CDATA[Hobbies]]></category>

		<category><![CDATA[Ideas]]></category>

		<guid isPermaLink="false">http://www.slackcoders.com/suneth/?p=37</guid>
		<description><![CDATA[Last year I started developing an offline blog editor during my free time. It started off as a self learning exercise to learn EditLive! codebase and polish up my long forgotten Java skills. I wrote a few tests, tried out a few APIs and after a few months I managed to come up with a [...]]]></description>
			<content:encoded><![CDATA[<p>Last year I started developing an offline blog editor during my free time. It started off as a self learning exercise to learn EditLive! codebase and polish up my long forgotten Java skills. I wrote a few tests, tried out a few <a href="http://wiki.java.net/bin/view/Javawsxml/RomePropono">APIs</a> and after a few months I managed to come up with a very basic but working blog editor built on top of EditLive! APIs. Being a Java application, it already came with an added advantage of running on multiple platforms.</p>
<p>But my progress sort of stalled after I was moved from tech support to product development. I have been having too much fun working on the new E2 project, I barely have the energy or the time for a side project like this. But the idea of building an offline blog editor still intrigues me. Simply because it is still an untapped market and there is so much potential to grow. As <a href="Last year I started developing an offline blog editor during my free time. It started off as a self learning exercise to learn EditLive! codebase and polishing up my long forgotten Java skills. I wrote few tests, tried out few APIs and after few months I manage to come up with a very basic but working blog editor build on top of EditLive! APIs. Being a Java application, it already came with an added advantage of running on multiple platforms. &nbsp;But my progress sort of stalled after I was moved from tech support to product development. I have been having too much fun working in new E2 project, I barely have the energy or the time for side project like this. But the idea of building an offline blog editor excites me alot. Simply because it is still an untapped market and there is so much potential. As &lt;a href=&quot;http://www.artkauffman.com/archives/review-marsedit-2-vs-ecto-3-beta/#comment-617&quot;>Daniel Jalkut points out in the comments&lt;/a>, only 1% of the bloggers actually enjoy the benefit of using an offline blog editor. &#8220;>Daniel Jalkut points out in the comments</a>, only 1% of the bloggers actually enjoy the benefit of using an offline blog editor. <a href="http://technorati.com/about/">Technorati</a> alone tracks more than 100 million blogs today.</p>
<p>Now that I&nbsp;have no time to develop my home grown editor, I looked for one on the web. I found 2 note-worthy contenders, on the Mac platform. <a href="http://infinite-sushi.com/software/ecto/">Ecto</a> and <a href="http://www.red-sweater.com/marsedit/">MarsEdit</a>. MarsEdit immediately captured my attention with its clean and very Mac-like UI. Ecto has more features but I didn&#8217;t really like the general flow of the application. However, Ecto is a few bucks cheaper and has rich text support which MarsEdit doesn&#8217;t. In my view MarsEdit seems to be the better software. If somehow MarsEdit can support rich text, it will definitely be the winner!&nbsp;</p>
<img src="http://feeds.feedburner.com/~r/SunethMendis/~4/306453453" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.slackcoders.com/suneth/2008/04/21/offline-blog-editor/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.slackcoders.com/suneth/2008/04/21/offline-blog-editor/</feedburner:origLink></item>
		<item>
		<title>What!?</title>
		<link>http://feeds.feedburner.com/~r/SunethMendis/~3/306453454/</link>
		<comments>http://www.slackcoders.com/suneth/2008/04/11/what/#comments</comments>
		<pubDate>Fri, 11 Apr 2008 23:47:40 +0000</pubDate>
		<dc:creator>Suneth Mendis</dc:creator>
		
		<category><![CDATA[Gadgets]]></category>

		<category><![CDATA[WTF]]></category>

		<guid isPermaLink="false">http://slackcoders.com/suneth/2008/04/11/what/</guid>
		<description><![CDATA[On the way back from Holy land trip to Israel I got myself a shiny new 16GB iPod Touch. More like an early birthday present from my better half&#8230; It was love at first sight! I love the sleek looking interface and easy of syncing with iTunes. Controls are much more intuitive as compared to my old [...]]]></description>
			<content:encoded><![CDATA[<p>On the way back from Holy land trip to Israel I got myself a shiny new 16GB iPod Touch. More like an early birthday present from my better half&#8230; It was love at first sight! I love the sleek looking interface and easy of syncing with iTunes. Controls are much more intuitive as compared to my old Creative Zen. But&#8230; I just found out that if you want to play a video podcast you need to navigate to Video &gt; Podcast on your iPod Touch and select the video you want to play. If you happen to goto Music &gt; Podcast &gt; and play the video podcast it will only show an album art and not the video&#8230;. WTF?! Could this be an honest mistake by Apple or a calculated measure to annoy people like me? (Just like their other gimmick to not add <a href="http://timelliott.us/2007/06/17/auto-sync-podcasts-on-an-ipod-shuffle/">auto podcast sync support to ipod shuffle</a>)</p>
<img src="http://feeds.feedburner.com/~r/SunethMendis/~4/306453454" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.slackcoders.com/suneth/2008/04/11/what/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.slackcoders.com/suneth/2008/04/11/what/</feedburner:origLink></item>
		<item>
		<title>Iframe dynamic resizing… SOLVED!</title>
		<link>http://feeds.feedburner.com/~r/SunethMendis/~3/306453455/</link>
		<comments>http://www.slackcoders.com/suneth/2008/03/10/iframe-dynamic-resizing-solved/#comments</comments>
		<pubDate>Mon, 10 Mar 2008 11:10:59 +0000</pubDate>
		<dc:creator>Suneth Mendis</dc:creator>
		
		<category><![CDATA[Coding]]></category>

		<guid isPermaLink="false">http://slackcoders.com/suneth/2008/03/10/iframe-dynamic-resizing-solved/</guid>
		<description><![CDATA[UPDATE (05/06/2008): Check out my next post for a better solution using CSS.
During the E2 development I ran into a very annoying iframe resizing problem. In simple terms iframe did not automatically resize in IE after the contents of the iframe had been loaded. This used to drive me nuts since the iframe appeared to be [...]]]></description>
			<content:encoded><![CDATA[<h4>UPDATE (05/06/2008): <a href="http://www.slackcoders.com/suneth/2008/06/05/iframe-dynamic-resizing-revisited/">Check out my next post for a better solution using CSS</a>.</h4>
<p>During the E2 development I ran into a very annoying iframe resizing problem. In simple terms iframe did not automatically resize in IE after the contents of the iframe had been loaded. This used to drive me nuts since the iframe appeared to be working fine in Firefox and Safari. I looked and tried a lot of solutions available on the web and finally came up with a Prototype, javascript solution which seems to be working like a charm! So heres the code&#8230;</p>
<ul>
<li>
<h4><strong>The page with an iframe</strong></h4>
</li>
</ul>
<p style="margin-left: 20px"><em>&lt;html&gt;<br style="margin-left: 20px" /> &lt;head&gt;<br style="margin-left: 20px" /> &lt;tittle&gt;Iframe Resizing&lt;/title&gt;<br style="margin-left: 20px" /> &lt;script type=&#8221;text/javascript&#8221; src=&#8221;resize.js&#8221;&gt;&lt;/script&gt;<br style="margin-left: 20px" /> &lt;/head&gt;<br style="margin-left: 20px" /> &lt;body&gt;<br style="margin-left: 20px" /> &lt;iframe width=&#8221;100%&#8221; height=&#8221;100%&#8221; scrolling=&#8221;auto&#8221; id=&#8221;iframe&#8221; name=&#8221;iframe&#8221; frameborder=&#8221;0&#8243; src=&#8221;SOMETHING.HTML&#8221; /&gt;&lt;/iframe&gt;<br style="margin-left: 20px" /> &lt;script type=&#8221;text/javascript&#8221; language=&#8221;JavaScript&#8221;&gt;<br style="margin-left: 20px" /> new Resize();<br style="margin-left: 20px" /> &lt;/script&gt;<br style="margin-left: 20px" /> &lt;/body&gt;<br style="margin-left: 20px" /> &lt;/html&gt;</em></p>
<ul>
<li>
<h4><strong>The Prototype based javascript (resize.js )</strong></h4>
</li>
</ul>
<p style="margin-left: 20px"><em>function Resize() {<br style="margin-left: 20px" /> this.init();<br style="margin-left: 20px" /> }<br style="margin-left: 20px" /> Resize.prototype = {<br style="margin-left: 20px" /> init: function() {<br style="margin-left: 20px" /> var userAgent = new String(navigator.userAgent).toLowerCase();<br style="margin-left: 20px" /> <br style="margin-left: 20px" /> if (userAgent.indexOf(&#8221;msie&#8221;, 0) &gt; 0) {//Only call it on IE<br style="margin-left: 20px" /> Event.observe(window, &#8216;load&#8217;, this.resizeIFrame.bindAsEventListener(this)); //This is where the magic happens<br style="margin-left: 20px" /> }<br style="margin-left: 20px" /> },</em></p>
<p style="margin-left: 20px"><em> resizeIFrame: function() {  <br style="margin-left: 20px" /> var frame = $(&#8217;iframe&#8217;);  <br style="margin-left: 20px" /> var renderedDocumentHeight = frame.contentWindow.document.body.scrollHeight;  <br style="margin-left: 20px" /> <br style="margin-left: 20px" /> if (renderedDocumentHeight &lt; 600) {       <br style="margin-left: 20px" /> renderedDocumentHeight = 600;//Set a minimum height in case the document is really small<br style="margin-left: 20px" /> }  <br style="margin-left: 20px" /> frame.height = renderedDocumentHeight;<br style="margin-left: 20px" /> }<br style="margin-left: 20px" /> }</em></p>
<img src="http://feeds.feedburner.com/~r/SunethMendis/~4/306453455" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.slackcoders.com/suneth/2008/03/10/iframe-dynamic-resizing-solved/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.slackcoders.com/suneth/2008/03/10/iframe-dynamic-resizing-solved/</feedburner:origLink></item>
	</channel>
</rss>
