<?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>Dev Journal &#187; ui</title>
	<atom:link href="http://blogs.atalayasec.org/dev/tag/ui/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.atalayasec.org/dev</link>
	<description>Thoughts from the _dev_ trench</description>
	<lastBuildDate>Mon, 27 Jul 2009 08:29:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Dropped support for IE6</title>
		<link>http://blogs.atalayasec.org/dev/2008/04/dropped-support-for-ie6/</link>
		<comments>http://blogs.atalayasec.org/dev/2008/04/dropped-support-for-ie6/#comments</comments>
		<pubDate>Wed, 09 Apr 2008 08:40:16 +0000</pubDate>
		<dc:creator>Francesco</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ui]]></category>

		<guid isPermaLink="false">http://blogs.atalayasec.org/dev/2008/04/dropped-support-for-ie6/</guid>
		<description><![CDATA[We&#8217;ve been silent on these pages recently. The reason for that is a series of meetings that we&#8217;ve had, plus some steering that we&#8217;re doing on our roadmap (more on this will follow).
One of the things that kept us busy in the past month has been this bug. Basically we were rendering awfully on IE.

We&#8217;d [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve been silent on these pages recently. The reason for that is a series of meetings that we&#8217;ve had, plus some steering that we&#8217;re doing on our roadmap (more on this will follow).</p>
<p>One of the things that kept us busy in the past month has been <a href="https://sourceforge.net/tracker/index.php?func=detail&amp;aid=1868627&amp;group_id=198199&amp;atid=964520" target="_blank">this bug</a>. Basically we were rendering awfully on IE.</p>
<p style="text-align: center"><img src="http://blogs.atalayasec.org/dev/wp-content/uploads/2008/04/ie-screen.png" alt="Our demo on IE6, a week ago…" height="304" width="462" /></p>
<p>We&#8217;d had this issue for a while and it was just time to get dirty on it. Working with <a href="http://synthview.com">Jan</a> has been really instructive and, beside reminding me that developers suck at designing UIs, I&#8217;ve learnt that supporting IE6 it&#8217;s not really a matter of throwing <a href="http://code.google.com/p/ie7-js/">fixes</a> or using javascript libraries reporting to support it (we use <a href="http://jquery.com/">JQuery</a> here).</p>
<p>We could get the basic layout fixed, but we didn&#8217;t get anywhere near solving all the issues we had so, after two days spent on black magic css-ing, we took the decision:  Atalaya (at least in its 1.x versions) won&#8217;t support IE6.</p>
<p>IE6 has still <a href="http://www.w3schools.com/browsers/browsers_stats.asp">30%</a> of browser share, but it&#8217;s been constantly declining over the past here and especially after IE7 was released. Also, our target users are probably the least likely to have IE6 on their corporate computers, which makes this decision reasonable after all.</p>
<p>This decision aligns with our objective of taking a fresh look at our UI for Atalaya 2.0 (hold on:)), thus not spending a lot of time on the current look&amp;feel (yes, the JFreeChart charts really suck we know).</p>
<p>Ah, the online <a href="http://atalayasec.org/demo">demo</a> has been updated with the fixes, and contains some new features also. Go check it out:)</p>
<p align="left">&nbsp;</p>
<p style="text-align: center">&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.atalayasec.org/dev/2008/04/dropped-support-for-ie6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JQuery RSS feed reader plugin</title>
		<link>http://blogs.atalayasec.org/dev/2008/02/jquery-rss-feed-reader-plugin/</link>
		<comments>http://blogs.atalayasec.org/dev/2008/02/jquery-rss-feed-reader-plugin/#comments</comments>
		<pubDate>Fri, 08 Feb 2008 09:15:00 +0000</pubDate>
		<dc:creator>Francesco</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[feed]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[rss]]></category>
		<category><![CDATA[ui]]></category>

		<guid isPermaLink="false">http://blogs.atalayasec.org/dev/2008/02/jquery-rss-feed-reader-plugin/</guid>
		<description><![CDATA[Post update! I have been away from this blog for quite a while now; sometimes things turn in a way you wouln&#8217;t expect&#8230; Since this post seems to still be pretty active, I&#8217;m planning an update to include some explanation,more context and feedbacks. Please be patient and thanks for your suggestions:)

I&#8217;ve finally decided to post [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Post update! </strong>I have been away from this blog for quite a while now; sometimes things turn in a way you wouln&#8217;t expect&#8230; Since this post seems to still be pretty active, I&#8217;m planning an update to include some explanation,more context and feedbacks. Please be patient and thanks for your suggestions:)</p>
<p/>
<p>I&#8217;ve finally decided to post another no-brainer JQuery plugin: a simple news box fed by an RSS feed. You can see an example on our project&#8217;s <a href="http://atalayasec.org">home page</a>. I had found <a href="http://www.nabble.com/RSS-Feed-Reader-to4997503s27240.html">the idea</a> on the JQuery mailing list but loving plugins (although not really good at it) I decided to wrap it up a bit.</p>
<p>The result is quite simple: just place a <code>div</code> somewhere and initialize it with a feed URL:</p>
<div class="hl-main">
<pre><span class="hl-brackets">&lt;</span><span class="hl-reserved">script</span><span class="hl-code"> </span><span class="hl-var">language</span><span class="hl-code">=</span><span class="hl-quotes">"</span><span class="hl-string">JavaScript</span><span class="hl-quotes">"</span><span class="hl-code"> </span><span class="hl-var">type</span><span class="hl-code">=</span><span class="hl-quotes">"</span><span class="hl-string">text/javascript</span><span class="hl-quotes">"</span><span class="hl-brackets">&gt;</span><span class="hl-code">
$('#rightcolumn').feedreader({
targeturl: 'http://blogs.atalayasec.org/atalaya/?feed=rss2'
});
</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">script</span><span class="hl-brackets">&gt;</span><span class="hl-code">
...
</span><span class="hl-brackets">&lt;</span><span class="hl-reserved">div</span><span class="hl-code"> </span><span class="hl-var">id</span><span class="hl-code">=</span><span class="hl-quotes">"</span><span class="hl-string">rightcolumn</span><span class="hl-quotes">"</span><span class="hl-brackets">&gt;</span><span class="hl-code">
</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">div</span><span class="hl-brackets">&gt;</span></pre>
</div>
<p>There are two other configuration options available; how many posts to put in the news box and the length of the text to be displayed for each item. A complete initialization would be then like the following:</p>
<div class="hl-main">
<pre><span class="hl-code">$</span><span class="hl-brackets">(</span><span class="hl-quotes">'</span><span class="hl-string">#rightcolumn</span><span class="hl-quotes">'</span><span class="hl-brackets">)</span><span class="hl-code">.</span><span class="hl-identifier">feedreader</span><span class="hl-brackets">(</span><span class="hl-brackets">{</span><span class="hl-code">
</span><span class="hl-identifier">targeturl</span><span class="hl-code">: </span><span class="hl-quotes">'</span><span class="hl-string">http://blogs.atalayasec.org/atalaya/?feed=rss2</span><span class="hl-quotes">'</span><span class="hl-code">,
</span><span class="hl-identifier">items</span><span class="hl-code">: </span><span class="hl-number">3</span><span class="hl-code">,
</span><span class="hl-identifier">descLength</span><span class="hl-code">: </span><span class="hl-number">15</span><span class="hl-code">
</span><span class="hl-brackets">}</span><span class="hl-brackets">)</span><span class="hl-code">;</span></pre>
</div>
<p>The code is pretty rough (and not really js-style) but functional. In case it&#8217;s useful to someone.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.atalayasec.org/dev/2008/02/jquery-rss-feed-reader-plugin/feed/</wfw:commentRss>
		<slash:comments>34</slash:comments>
		</item>
		<item>
		<title>A JQuery plugin for canvas pies</title>
		<link>http://blogs.atalayasec.org/dev/2008/02/a-jquery-plugin-for-canvas-pies/</link>
		<comments>http://blogs.atalayasec.org/dev/2008/02/a-jquery-plugin-for-canvas-pies/#comments</comments>
		<pubDate>Thu, 07 Feb 2008 16:15:00 +0000</pubDate>
		<dc:creator>Francesco</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[canvas]]></category>
		<category><![CDATA[charts]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[ui]]></category>

		<guid isPermaLink="false">http://blogs.atalayasec.org/dev/?p=9</guid>
		<description><![CDATA[These days I&#8217;ve been thinking on how to make Atalaya charts look better. This morning I&#8217;ve found this post that renders a canvas pie chart reading data from a table. Before trying to use it for real, I needed for the data table to disappear after rendering the chart.

The original code, from Stoyan Stefanov, is [...]]]></description>
			<content:encoded><![CDATA[<p>These days I&#8217;ve been thinking on how to make Atalaya charts look better. This morning I&#8217;ve found <a href="http://ajaxian.com/archives/canvas-pie-chart-from-datatable">this post</a> that renders a canvas pie chart reading data from a table. Before trying to use it for real, I needed for the data table to disappear after rendering the chart.</p>
<p><img src="http://blogs.atalayasec.org/dev/wp-content/uploads/2008/02/picture-1.png"/></p>
<p>The original code, from <a href="http://www.phpied.com/">Stoyan Stefanov</a>, is <a href="http://www.phpied.com/wp-content/uploads/2008/02/canvas-pie.html">here</a>. I&#8217;ve simply wrapped it in a jquery plugin. It&#8217;s enough to wrap the <code>canvas</code> and <code>table</code> elements in a <code>div</code>:</p>
<div class="hl-main">
<pre><span class="hl-brackets">&lt;</span><span class="hl-reserved">div</span><span class="hl-code"> </span><span class="hl-var">id</span><span class="hl-code">=</span><span class="hl-quotes">&quot;</span><span class="hl-string">pie</span><span class="hl-quotes">&quot;</span><span class="hl-brackets">&gt;</span><span class="hl-code">
	  </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">table</span><span class="hl-code"> </span><span class="hl-var">id</span><span class="hl-code">=</span><span class="hl-quotes">&quot;</span><span class="hl-string">mydata</span><span class="hl-quotes">&quot;</span><span class="hl-brackets">&gt;</span><span class="hl-code">
	    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">tr</span><span class="hl-brackets">&gt;</span><span class="hl-brackets">&lt;</span><span class="hl-reserved">th</span><span class="hl-brackets">&gt;</span><span class="hl-code">Lang</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">th</span><span class="hl-brackets">&gt;</span><span class="hl-brackets">&lt;</span><span class="hl-reserved">th</span><span class="hl-brackets">&gt;</span><span class="hl-code">Value</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">th</span><span class="hl-code">&lt;/</span><span class="hl-reserved">tr</span><span class="hl-brackets">&gt;</span><span class="hl-code">
	    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">tr</span><span class="hl-brackets">&gt;</span><span class="hl-brackets">&lt;</span><span class="hl-reserved">td</span><span class="hl-brackets">&gt;</span><span class="hl-code">JavaScript</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">td</span><span class="hl-brackets">&gt;</span><span class="hl-brackets">&lt;</span><span class="hl-reserved">td</span><span class="hl-brackets">&gt;</span><span class="hl-code">100</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">td</span><span class="hl-brackets">&gt;</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">tr</span><span class="hl-brackets">&gt;</span><span class="hl-code">
	    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">tr</span><span class="hl-brackets">&gt;</span><span class="hl-brackets">&lt;</span><span class="hl-reserved">td</span><span class="hl-brackets">&gt;</span><span class="hl-code">CSS</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">td</span><span class="hl-brackets">&gt;</span><span class="hl-brackets">&lt;</span><span class="hl-reserved">td</span><span class="hl-brackets">&gt;</span><span class="hl-code">200</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">td</span><span class="hl-brackets">&gt;</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">tr</span><span class="hl-brackets">&gt;</span><span class="hl-code">
	    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">tr</span><span class="hl-brackets">&gt;</span><span class="hl-brackets">&lt;</span><span class="hl-reserved">td</span><span class="hl-brackets">&gt;</span><span class="hl-code">HTML</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">td</span><span class="hl-brackets">&gt;</span><span class="hl-brackets">&lt;</span><span class="hl-reserved">td</span><span class="hl-brackets">&gt;</span><span class="hl-code">300</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">td</span><span class="hl-brackets">&gt;</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">tr</span><span class="hl-brackets">&gt;</span><span class="hl-code">
	    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">tr</span><span class="hl-brackets">&gt;</span><span class="hl-brackets">&lt;</span><span class="hl-reserved">td</span><span class="hl-brackets">&gt;</span><span class="hl-code">PHP</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">td</span><span class="hl-brackets">&gt;</span><span class="hl-brackets">&lt;</span><span class="hl-reserved">td</span><span class="hl-brackets">&gt;</span><span class="hl-code">50</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">td</span><span class="hl-brackets">&gt;</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">tr</span><span class="hl-brackets">&gt;</span><span class="hl-code">
	    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">tr</span><span class="hl-brackets">&gt;</span><span class="hl-brackets">&lt;</span><span class="hl-reserved">td</span><span class="hl-brackets">&gt;</span><span class="hl-code">MySQL</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">td</span><span class="hl-brackets">&gt;</span><span class="hl-brackets">&lt;</span><span class="hl-reserved">td</span><span class="hl-brackets">&gt;</span><span class="hl-code">30</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">td</span><span class="hl-brackets">&gt;</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">tr</span><span class="hl-brackets">&gt;</span><span class="hl-code">
	    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">tr</span><span class="hl-brackets">&gt;</span><span class="hl-brackets">&lt;</span><span class="hl-reserved">td</span><span class="hl-brackets">&gt;</span><span class="hl-code">Apache</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">td</span><span class="hl-brackets">&gt;</span><span class="hl-brackets">&lt;</span><span class="hl-reserved">td</span><span class="hl-brackets">&gt;</span><span class="hl-code">10</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">td</span><span class="hl-brackets">&gt;</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">tr</span><span class="hl-brackets">&gt;</span><span class="hl-code">
	    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">tr</span><span class="hl-brackets">&gt;</span><span class="hl-brackets">&lt;</span><span class="hl-reserved">td</span><span class="hl-brackets">&gt;</span><span class="hl-code">Linux</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">td</span><span class="hl-brackets">&gt;</span><span class="hl-brackets">&lt;</span><span class="hl-reserved">td</span><span class="hl-brackets">&gt;</span><span class="hl-code">30</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">td</span><span class="hl-brackets">&gt;</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">tr</span><span class="hl-brackets">&gt;</span><span class="hl-code">
	  </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">table</span><span class="hl-brackets">&gt;</span><span class="hl-code">
	  </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">canvas</span><span class="hl-code"> </span><span class="hl-var">id</span><span class="hl-code">=</span><span class="hl-quotes">&quot;</span><span class="hl-string">canvas</span><span class="hl-quotes">&quot;</span><span class="hl-code"> </span><span class="hl-var">width</span><span class="hl-code">=</span><span class="hl-quotes">&quot;</span><span class="hl-string">300</span><span class="hl-quotes">&quot;</span><span class="hl-code"> </span><span class="hl-var">height</span><span class="hl-code">=</span><span class="hl-quotes">&quot;</span><span class="hl-string">300</span><span class="hl-quotes">&quot;</span><span class="hl-brackets">&gt;</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">canvas</span><span class="hl-brackets">&gt;</span><span class="hl-code">
</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">div</span><span class="hl-brackets">&gt;</span></pre>
</div>
<p>and to initialize the plugin:</p>
<div class="hl-main">
<pre><span class="hl-code"> $</span><span class="hl-brackets">(</span><span class="hl-reserved">function</span><span class="hl-brackets">(</span><span class="hl-brackets">)</span><span class="hl-code"> </span><span class="hl-brackets">{</span><span class="hl-code">
         $</span><span class="hl-brackets">(</span><span class="hl-code">‘#</span><span class="hl-identifier">pie</span><span class="hl-code">‘</span><span class="hl-brackets">)</span><span class="hl-code">.</span><span class="hl-identifier">canvaspie</span><span class="hl-brackets">(</span><span class="hl-brackets">{</span><span class="hl-identifier">table</span><span class="hl-code">: ‘#</span><span class="hl-identifier">mydata</span><span class="hl-code">‘,</span><span class="hl-identifier">canvas</span><span class="hl-code">: ‘#</span><span class="hl-identifier">canvas</span><span class="hl-code">‘</span><span class="hl-brackets">}</span><span class="hl-brackets">)</span><span class="hl-code">
 </span><span class="hl-brackets">}</span><span class="hl-brackets">)</span><span class="hl-code">;</span></pre>
</div>
<p>The plugin hides the table and shows the pie. An example (and the plugin itself) can be found <a href="http://atalayasec.org/~villo/canvaspie.html">here</a>, in case someone finds it useful.</p>
<p>P.S: yes, I do need a code highlighter, sorry.</p>
<p>P.P.S: Thanks Stoyan for pointing me to <a href="http://www.hiliteme.com">hiliteme</a>.</p>
<p>Update: I&#8217;ve updated the test page to use <a href="http://excanvas.sourceforge.net/">ExplorerCanvas</a>, so now the test page should work on IE as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.atalayasec.org/dev/2008/02/a-jquery-plugin-for-canvas-pies/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
