<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: PHP pixel mapper story</title>
	<atom:link href="http://diary.braniecki.net/2008/12/21/php-pixel-mapper-story/feed/" rel="self" type="application/rss+xml" />
	<link>http://diary.braniecki.net/2008/12/21/php-pixel-mapper-story/</link>
	<description>Open-source development violates almost all known management theories.</description>
	<lastBuildDate>Sat, 03 Sep 2011 18:43:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: zbraniecki</title>
		<link>http://diary.braniecki.net/2008/12/21/php-pixel-mapper-story/comment-page-1/#comment-26203</link>
		<dc:creator>zbraniecki</dc:creator>
		<pubDate>Tue, 23 Dec 2008 00:33:07 +0000</pubDate>
		<guid isPermaLink="false">http://diary.braniecki.net/?p=749#comment-26203</guid>
		<description>I tried to go with Robert&#039;s approach but it will not work. The bars have translucent shadows that overlap when put one over another and the result looks bad.

I can go with one of two ways now:

1) SVG with fallback to PHP
2) &lt;table&gt; with two &lt;td&gt;&#039;s with the bar.

A List Apart idea is great for plain simple bars. but it will not work in my case for the reasons mentioned above (shadows, translucency etc.)</description>
		<content:encoded><![CDATA[<p>I tried to go with Robert&#8217;s approach but it will not work. The bars have translucent shadows that overlap when put one over another and the result looks bad.</p>
<p>I can go with one of two ways now:</p>
<p>1) SVG with fallback to PHP<br />
2) &lt;table> with two &lt;td>&#8217;s with the bar.</p>
<p>A List Apart idea is great for plain simple bars. but it will not work in my case for the reasons mentioned above (shadows, translucency etc.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Axel Hecht</title>
		<link>http://diary.braniecki.net/2008/12/21/php-pixel-mapper-story/comment-page-1/#comment-26183</link>
		<dc:creator>Axel Hecht</dc:creator>
		<pubDate>Mon, 22 Dec 2008 11:12:35 +0000</pubDate>
		<guid isPermaLink="false">http://diary.braniecki.net/?p=749#comment-26183</guid>
		<description>Just to quote the evil, I wonder if you could have just called into the google charts API ;-)</description>
		<content:encoded><![CDATA[<p>Just to quote the evil, I wonder if you could have just called into the google charts API <img src='http://diary.braniecki.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oliver P. from Munich, Germany</title>
		<link>http://diary.braniecki.net/2008/12/21/php-pixel-mapper-story/comment-page-1/#comment-26180</link>
		<dc:creator>Oliver P. from Munich, Germany</dc:creator>
		<pubDate>Mon, 22 Dec 2008 09:27:29 +0000</pubDate>
		<guid isPermaLink="false">http://diary.braniecki.net/?p=749#comment-26180</guid>
		<description>A List Apart: Accessible Data Visualization with Web Standards
http://alistapart.com/articles/accessibledatavisualization</description>
		<content:encoded><![CDATA[<p>A List Apart: Accessible Data Visualization with Web Standards<br />
<a href="http://alistapart.com/articles/accessibledatavisualization" rel="nofollow">http://alistapart.com/articles/accessibledatavisualization</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zbraniecki</title>
		<link>http://diary.braniecki.net/2008/12/21/php-pixel-mapper-story/comment-page-1/#comment-26178</link>
		<dc:creator>zbraniecki</dc:creator>
		<pubDate>Mon, 22 Dec 2008 08:47:15 +0000</pubDate>
		<guid isPermaLink="false">http://diary.braniecki.net/?p=749#comment-26178</guid>
		<description>well, the basic problem with all CSS approaches is that it&#039;s counter semantic.

There is no semantic reason to have two IMG&#039;s there. (There is hardly reason to have any btw. - it&#039;s just graphical representation of the data. Not content itself), and if we go with Robert&#039;s approach (pretty neat I must say) we still have a green bar that has no semantic meaning in the XHTML code. (in other words - there is IMG with a green bar there with no reason but to blend with other pieces to suddenly look good on the modern web browser because of hacks).

The optimal way would be to present the value (75%) and replace it with the bar in CSS, but that&#039;s not possible at all :(</description>
		<content:encoded><![CDATA[<p>well, the basic problem with all CSS approaches is that it&#8217;s counter semantic.</p>
<p>There is no semantic reason to have two IMG&#8217;s there. (There is hardly reason to have any btw. &#8211; it&#8217;s just graphical representation of the data. Not content itself), and if we go with Robert&#8217;s approach (pretty neat I must say) we still have a green bar that has no semantic meaning in the XHTML code. (in other words &#8211; there is IMG with a green bar there with no reason but to blend with other pieces to suddenly look good on the modern web browser because of hacks).</p>
<p>The optimal way would be to present the value (75%) and replace it with the bar in CSS, but that&#8217;s not possible at all <img src='http://diary.braniecki.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://diary.braniecki.net/2008/12/21/php-pixel-mapper-story/comment-page-1/#comment-26167</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Mon, 22 Dec 2008 04:54:57 +0000</pubDate>
		<guid isPermaLink="false">http://diary.braniecki.net/?p=749#comment-26167</guid>
		<description>I didn&#039;t even see Jesper&#039;s idea, his is probably the best yet.  Only two images, no extra PHP scripts.</description>
		<content:encoded><![CDATA[<p>I didn&#8217;t even see Jesper&#8217;s idea, his is probably the best yet.  Only two images, no extra PHP scripts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Accettura</title>
		<link>http://diary.braniecki.net/2008/12/21/php-pixel-mapper-story/comment-page-1/#comment-26159</link>
		<dc:creator>Robert Accettura</dc:creator>
		<pubDate>Mon, 22 Dec 2008 01:05:14 +0000</pubDate>
		<guid isPermaLink="false">http://diary.braniecki.net/?p=749#comment-26159</guid>
		<description>@zbraniecki: I don&#039;t really think it&#039;s a hack.  You could do it in 100% valid HTML:

&lt;div style=&quot;width: 100px; background: red;&quot;&gt;
&lt;img src=&quot;pixel.png&quot; width=&quot;60&quot; height=&quot;5&quot;/&gt;
&lt;/div&gt;

Then again, what constitutes a hack or not in html/css is all a matter of perspective.  There&#039;s *much* worse out there.</description>
		<content:encoded><![CDATA[<p>@zbraniecki: I don&#8217;t really think it&#8217;s a hack.  You could do it in 100% valid HTML:</p>
<p>&lt;div style=&#8221;width: 100px; background: red;&#8221;&gt;<br />
&lt;img src=&#8221;pixel.png&#8221; width=&#8221;60&#8243; height=&#8221;5&#8243;/&gt;<br />
&lt;/div&gt;</p>
<p>Then again, what constitutes a hack or not in html/css is all a matter of perspective.  There&#8217;s *much* worse out there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Strontsman</title>
		<link>http://diary.braniecki.net/2008/12/21/php-pixel-mapper-story/comment-page-1/#comment-26154</link>
		<dc:creator>Aaron Strontsman</dc:creator>
		<pubDate>Sun, 21 Dec 2008 23:40:56 +0000</pubDate>
		<guid isPermaLink="false">http://diary.braniecki.net/?p=749#comment-26154</guid>
		<description>Why would using CSS to position single parts of the bar be hacky?

(BTW: My idea would have been to use 4 DIVs, one for round edges at the beginning, green part (stretched to the right size), red part, round edges -- exceptions (that is static images) for 0 and 100%)</description>
		<content:encoded><![CDATA[<p>Why would using CSS to position single parts of the bar be hacky?</p>
<p>(BTW: My idea would have been to use 4 DIVs, one for round edges at the beginning, green part (stretched to the right size), red part, round edges &#8212; exceptions (that is static images) for 0 and 100%)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://diary.braniecki.net/2008/12/21/php-pixel-mapper-story/comment-page-1/#comment-26148</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Sun, 21 Dec 2008 22:09:18 +0000</pubDate>
		<guid isPermaLink="false">http://diary.braniecki.net/?p=749#comment-26148</guid>
		<description>I&#039;d have gone with the CSS approach myself - we use a similar approach extensively on our product for doing things like graphical buttons, and I don&#039;t consider it at all hacky. It&#039;s a perfectly good solution to the problem, entirely standards compliant, and works fine on IE7 (we don&#039;t care about 6) and any standards-compliant browser.

From memory we actually go slightly further, and tile the different images into the same png file, using offsets to display the correct part. Works just as well, and reduces the number of files needing to be downloaded.</description>
		<content:encoded><![CDATA[<p>I&#8217;d have gone with the CSS approach myself &#8211; we use a similar approach extensively on our product for doing things like graphical buttons, and I don&#8217;t consider it at all hacky. It&#8217;s a perfectly good solution to the problem, entirely standards compliant, and works fine on IE7 (we don&#8217;t care about 6) and any standards-compliant browser.</p>
<p>From memory we actually go slightly further, and tile the different images into the same png file, using offsets to display the correct part. Works just as well, and reduces the number of files needing to be downloaded.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zbraniecki</title>
		<link>http://diary.braniecki.net/2008/12/21/php-pixel-mapper-story/comment-page-1/#comment-26144</link>
		<dc:creator>zbraniecki</dc:creator>
		<pubDate>Sun, 21 Dec 2008 19:37:55 +0000</pubDate>
		<guid isPermaLink="false">http://diary.braniecki.net/?p=749#comment-26144</guid>
		<description>@justin: That&#039;s a neat idea. I did not consider it, but I could offer SVG for SVG enabled browsers, and PHP generated PNG for others...

@all: Thanks for your ideas. I did not consider doing it with CSS for two reasons:
1) I&#039;m a bit afraid of who it could cut off from seeing it properly
2) I&#039;m trying to create the website in 100% non-hacky web standard style. No dirty hacks, everything as near as possible to HTML5/XHTML1.0 etc. I would like the website to be an example of how clean can the website code be.

Unfortunately I think your concept with two cropped images positioned over one another is the *cheapest* for the user and server, so I think I will use it instead of my PHP generator despite my disgust to such dirty hacks. (because it proves that web technologies are not yet there...)

I will also try to play with SVG concept with a fallback to such thing...
Thanks for your help! :)</description>
		<content:encoded><![CDATA[<p>@justin: That&#8217;s a neat idea. I did not consider it, but I could offer SVG for SVG enabled browsers, and PHP generated PNG for others&#8230;</p>
<p>@all: Thanks for your ideas. I did not consider doing it with CSS for two reasons:<br />
1) I&#8217;m a bit afraid of who it could cut off from seeing it properly<br />
2) I&#8217;m trying to create the website in 100% non-hacky web standard style. No dirty hacks, everything as near as possible to HTML5/XHTML1.0 etc. I would like the website to be an example of how clean can the website code be.</p>
<p>Unfortunately I think your concept with two cropped images positioned over one another is the *cheapest* for the user and server, so I think I will use it instead of my PHP generator despite my disgust to such dirty hacks. (because it proves that web technologies are not yet there&#8230;)</p>
<p>I will also try to play with SVG concept with a fallback to such thing&#8230;<br />
Thanks for your help! <img src='http://diary.braniecki.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin Dolske</title>
		<link>http://diary.braniecki.net/2008/12/21/php-pixel-mapper-story/comment-page-1/#comment-26142</link>
		<dc:creator>Justin Dolske</dc:creator>
		<pubDate>Sun, 21 Dec 2008 19:24:28 +0000</pubDate>
		<guid isPermaLink="false">http://diary.braniecki.net/?p=749#comment-26142</guid>
		<description>Sure would be easy with  or SVG. :-)

Hmm, I wonder if it would be easy to construct a client-side data: URI for the image. Perhaps as a hacky uncompressed PNG, or some other file format that&#039;s easy to manipulate.</description>
		<content:encoded><![CDATA[<p>Sure would be easy with  or SVG. <img src='http://diary.braniecki.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Hmm, I wonder if it would be easy to construct a client-side data: URI for the image. Perhaps as a hacky uncompressed PNG, or some other file format that&#8217;s easy to manipulate.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

