<?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 for cyberz.org</title>
	<atom:link href="http://www.cyberz.org/blog/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cyberz.org/blog</link>
	<description>Andrea Leofreddi's homepage</description>
	<lastBuildDate>Thu, 04 Mar 2010 18:29:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9-rare</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on SVGPan: a Javascript SVG (Viewer) Pan/Zoom/Drag library by andrea</title>
		<link>http://www.cyberz.org/blog/2009/12/08/svgpan-a-javascript-svg-panzoomdrag-library/comment-page-1/#comment-43</link>
		<dc:creator>andrea</dc:creator>
		<pubDate>Thu, 04 Mar 2010 18:29:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberz.org/blog/?p=96#comment-43</guid>
		<description>Hello James,
some time ago I got svgpan.js working on Internet Explorer with the svgweb flash renderer. Unfortunately I haven&#039;t seen any svg zoom&amp;pan implementations around (that&#039;s why I wrote one). If you are going to use svgpan with svgweb let me know the results :)

Andrea</description>
		<content:encoded><![CDATA[<p>Hello James,<br />
some time ago I got svgpan.js working on Internet Explorer with the svgweb flash renderer. Unfortunately I haven&#8217;t seen any svg zoom&#038;pan implementations around (that&#8217;s why I wrote one). If you are going to use svgpan with svgweb let me know the results <img src='http://www.cyberz.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Andrea</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SVGPan: a Javascript SVG (Viewer) Pan/Zoom/Drag library by james</title>
		<link>http://www.cyberz.org/blog/2009/12/08/svgpan-a-javascript-svg-panzoomdrag-library/comment-page-1/#comment-42</link>
		<dc:creator>james</dc:creator>
		<pubDate>Thu, 04 Mar 2010 14:21:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberz.org/blog/?p=96#comment-42</guid>
		<description>Andrea,

Thank you for the quick response. The script works correctly now, and I kind of figured that the scrollbar on the browser was messing some things up, but the strange thing is that safari computes the data correctly. I am just now learning about svg and how to use script to control svg. It appears that the svg webkit by Brad Neuberg has a zoom and pan prototype that he is working on that will work with his cross browser flash render engine. Have you had any success in getting this to work? If so do you have any tips or sites that may help?

Have not been able to find any samples that show how Brad is getting it to work.

Thanks again,

James.</description>
		<content:encoded><![CDATA[<p>Andrea,</p>
<p>Thank you for the quick response. The script works correctly now, and I kind of figured that the scrollbar on the browser was messing some things up, but the strange thing is that safari computes the data correctly. I am just now learning about svg and how to use script to control svg. It appears that the svg webkit by Brad Neuberg has a zoom and pan prototype that he is working on that will work with his cross browser flash render engine. Have you had any success in getting this to work? If so do you have any tips or sites that may help?</p>
<p>Have not been able to find any samples that show how Brad is getting it to work.</p>
<p>Thanks again,</p>
<p>James.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SVGPan: a Javascript SVG (Viewer) Pan/Zoom/Drag library by andrea</title>
		<link>http://www.cyberz.org/blog/2009/12/08/svgpan-a-javascript-svg-panzoomdrag-library/comment-page-1/#comment-41</link>
		<dc:creator>andrea</dc:creator>
		<pubDate>Thu, 04 Mar 2010 13:33:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberz.org/blog/?p=96#comment-41</guid>
		<description>Hello James,
It looks like the code gets confused by the attributes of the root svg tag. For testing purposes I copied your SVG on my website, removed the svg attributes and got it working on http://www.cyberz.org/projects/SVGPan/architecture_by_location.svg . Also a width/height greater than screen will make a scrollbar appear confusing the browser when using the wheel (the svg gets zoomed and the window gets scrolled down as well), so it should be avoided.

Hope it helps.

Regards,
  Andrea</description>
		<content:encoded><![CDATA[<p>Hello James,<br />
It looks like the code gets confused by the attributes of the root svg tag. For testing purposes I copied your SVG on my website, removed the svg attributes and got it working on <a href="http://www.cyberz.org/projects/SVGPan/architecture_by_location.svg" rel="nofollow">http://www.cyberz.org/projects/SVGPan/architecture_by_location.svg</a> . Also a width/height greater than screen will make a scrollbar appear confusing the browser when using the wheel (the svg gets zoomed and the window gets scrolled down as well), so it should be avoided.</p>
<p>Hope it helps.</p>
<p>Regards,<br />
  Andrea</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SVGPan: a Javascript SVG (Viewer) Pan/Zoom/Drag library by james</title>
		<link>http://www.cyberz.org/blog/2009/12/08/svgpan-a-javascript-svg-panzoomdrag-library/comment-page-1/#comment-40</link>
		<dc:creator>james</dc:creator>
		<pubDate>Thu, 04 Mar 2010 04:01:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberz.org/blog/?p=96#comment-40</guid>
		<description>The code works beautifully on safari, but there seems to be an issue in firefox where the wheel only zooms out:

http://www.studiojarch.com/architecture/architecture-by-location/

Any ideas why this might be?</description>
		<content:encoded><![CDATA[<p>The code works beautifully on safari, but there seems to be an issue in firefox where the wheel only zooms out:</p>
<p><a href="http://www.studiojarch.com/architecture/architecture-by-location/" rel="nofollow">http://www.studiojarch.com/architecture/architecture-by-location/</a></p>
<p>Any ideas why this might be?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Bash delirium (delirio in bash) by daphiel</title>
		<link>http://www.cyberz.org/blog/2008/04/18/delirii-in-bash/comment-page-1/#comment-39</link>
		<dc:creator>daphiel</dc:creator>
		<pubDate>Tue, 23 Feb 2010 16:24:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberz.org/blog/?p=19#comment-39</guid>
		<description>deeeeliiiriumzorz</description>
		<content:encoded><![CDATA[<p>deeeeliiiriumzorz</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SVGPan: a Javascript SVG (Viewer) Pan/Zoom/Drag library by andrea</title>
		<link>http://www.cyberz.org/blog/2009/12/08/svgpan-a-javascript-svg-panzoomdrag-library/comment-page-1/#comment-38</link>
		<dc:creator>andrea</dc:creator>
		<pubDate>Tue, 02 Feb 2010 10:50:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberz.org/blog/?p=96#comment-38</guid>
		<description>Many thanks for your contribution!</description>
		<content:encoded><![CDATA[<p>Many thanks for your contribution!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SVGPan: a Javascript SVG (Viewer) Pan/Zoom/Drag library by Jack</title>
		<link>http://www.cyberz.org/blog/2009/12/08/svgpan-a-javascript-svg-panzoomdrag-library/comment-page-1/#comment-37</link>
		<dc:creator>Jack</dc:creator>
		<pubDate>Tue, 02 Feb 2010 07:20:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberz.org/blog/?p=96#comment-37</guid>
		<description>Oops, jumped the gun for a bit, the patch for &lt;b&gt;handleMouseWheel(evt)&lt;/b&gt; should&#039;ve been:

var delta;
if (evt.wheelDelta) {
&#160;&#160;&#160;delta = evt.wheelDelta / 3600; // Chrome/Safari
}
else {
&#160;&#160;&#160;delta = -1 * evt.detail / 90; // Mozilla
}
var z = 1 + delta; // Zoom factor: 0.9/1.1

This version reversed the zooming direction (up -&gt; zoom in, down -&gt; zoom out) so that it&#039;s consistent with zooming behavior in browsers. The zoom factor is now consistent across browsers as well.</description>
		<content:encoded><![CDATA[<p>Oops, jumped the gun for a bit, the patch for <b>handleMouseWheel(evt)</b> should&#8217;ve been:</p>
<p>var delta;<br />
if (evt.wheelDelta) {<br />
&nbsp;&nbsp;&nbsp;delta = evt.wheelDelta / 3600; // Chrome/Safari<br />
}<br />
else {<br />
&nbsp;&nbsp;&nbsp;delta = -1 * evt.detail / 90; // Mozilla<br />
}<br />
var z = 1 + delta; // Zoom factor: 0.9/1.1</p>
<p>This version reversed the zooming direction (up -&gt; zoom in, down -&gt; zoom out) so that it&#8217;s consistent with zooming behavior in browsers. The zoom factor is now consistent across browsers as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SVGPan: a Javascript SVG (Viewer) Pan/Zoom/Drag library by Jack</title>
		<link>http://www.cyberz.org/blog/2009/12/08/svgpan-a-javascript-svg-panzoomdrag-library/comment-page-1/#comment-36</link>
		<dc:creator>Jack</dc:creator>
		<pubDate>Tue, 02 Feb 2010 07:01:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberz.org/blog/?p=96#comment-36</guid>
		<description>Following is the patch for the mousewheel problem with Safari/Chrome:

&lt;b&gt;setupHandlers(root)&lt;/b&gt;

   &lt;strike&gt;window.addEventListener(&#039;DOMMouseScroll&#039;, handleMouseWheel, false);&lt;/strike&gt;

   if (navigator.userAgent.toLowerCase().indexOf(&#039;webkit&#039;) &gt;= 0) {
      window.addEventListener(&#039;mousewheel&#039;, handleMouseWheel, false); // Chrome/Safari
   }
   else {
      window.addEventListener(&#039;DOMMouseScroll&#039;, handleMouseWheel, false);
   }

&lt;b&gt;handleMouseWheel(evt)&lt;/b&gt;

   &lt;strike&gt;var z = 1.00 + delta / 90; // Zoom factor: 0.9/1.1&lt;/strike&gt;

   var z;
   if (evt.detail) {
      z = 1.00 + delta / 90; // Zoom factor: 0.9/1.1
   }
   else {
      z = 1.00 + evt.wheelDelta / 1200; // Zoom factor: 0.9/1.1
   }</description>
		<content:encoded><![CDATA[<p>Following is the patch for the mousewheel problem with Safari/Chrome:</p>
<p><b>setupHandlers(root)</b></p>
<p>   <strike>window.addEventListener(&#8217;DOMMouseScroll&#8217;, handleMouseWheel, false);</strike></p>
<p>   if (navigator.userAgent.toLowerCase().indexOf(&#8217;webkit&#8217;) &gt;= 0) {<br />
      window.addEventListener(&#8217;mousewheel&#8217;, handleMouseWheel, false); // Chrome/Safari<br />
   }<br />
   else {<br />
      window.addEventListener(&#8217;DOMMouseScroll&#8217;, handleMouseWheel, false);<br />
   }</p>
<p><b>handleMouseWheel(evt)</b></p>
<p>   <strike>var z = 1.00 + delta / 90; // Zoom factor: 0.9/1.1</strike></p>
<p>   var z;<br />
   if (evt.detail) {<br />
      z = 1.00 + delta / 90; // Zoom factor: 0.9/1.1<br />
   }<br />
   else {<br />
      z = 1.00 + evt.wheelDelta / 1200; // Zoom factor: 0.9/1.1<br />
   }</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SVGPan: a Javascript SVG (Viewer) Pan/Zoom/Drag library by Jack</title>
		<link>http://www.cyberz.org/blog/2009/12/08/svgpan-a-javascript-svg-panzoomdrag-library/comment-page-1/#comment-35</link>
		<dc:creator>Jack</dc:creator>
		<pubDate>Tue, 02 Feb 2010 06:59:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberz.org/blog/?p=96#comment-35</guid>
		<description>Thanks for the great code, I&#039;ve gone ahead and used it in my project already.

&lt;b&gt;Test&lt;/b&gt;&lt;strike&gt;strike&lt;/strike&gt;</description>
		<content:encoded><![CDATA[<p>Thanks for the great code, I&#8217;ve gone ahead and used it in my project already.</p>
<p><b>Test</b><strike>strike</strike></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Nagios nrpe and sudo: &#8220;NRPE: Unable to read output&#8221; by andrea</title>
		<link>http://www.cyberz.org/blog/2009/01/03/nagios-nrpe-and-sudo-nrpe-unable-to-read-output/comment-page-1/#comment-34</link>
		<dc:creator>andrea</dc:creator>
		<pubDate>Tue, 19 Jan 2010 21:41:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberz.org/blog/?p=49#comment-34</guid>
		<description>It looks like there are some check md scripts that will work without root privileges (those using /proc/mdstat) and some requiring it (those using mdadm).</description>
		<content:encoded><![CDATA[<p>It looks like there are some check md scripts that will work without root privileges (those using /proc/mdstat) and some requiring it (those using mdadm).</p>
]]></content:encoded>
	</item>
</channel>
</rss>
