<?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>KenKinder.com &#187; patch</title>
	<atom:link href="http://kenkinder.com/tag/patch/feed/" rel="self" type="application/rss+xml" />
	<link>http://kenkinder.com</link>
	<description>Ken Kinder&#039;s personal website</description>
	<lastBuildDate>Mon, 14 Jun 2010 22:27:25 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to fix NiftyCube IE 8 width problem</title>
		<link>http://kenkinder.com/2009/10/26/how-to-fix-niftycube-ie-8-width-problem/</link>
		<comments>http://kenkinder.com/2009/10/26/how-to-fix-niftycube-ie-8-width-problem/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 17:28:57 +0000</pubDate>
		<dc:creator>Ken Kinder</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Bugs]]></category>
		<category><![CDATA[diff]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[patch]]></category>

		<guid isPermaLink="false">http://kenkinder.com/?p=241</guid>
		<description><![CDATA[At work we use this tool called NiftyCube to round corners of elements (it even works with divs that have gradients in them). The problem, however, is that on Internet Explorer 8, 100% width divs are shrunk to the contents of the div.

That happens because NiftyCube has code to correct rendering problems in previous version [...]]]></description>
			<content:encoded><![CDATA[<p>At work we use this tool called <a href="http://www.html.it/articoli/niftycube/index.html">NiftyCube</a> to round corners of elements (it even works with divs that have gradients in them). The problem, however, is that on Internet Explorer 8, 100% width divs are shrunk to the contents of the div.</p>
<p><span id="more-241"></span></p>
<p>That happens because NiftyCube has code to correct rendering problems in previous version of IE. Since IE 8 renders more elements correctly, NiftyCube&#8217;s hack actually makes things worse in IE 8. To fix the problem, disable their fix for IE 8. Apply this change to niftycube.js:</p>

<div class="wp_syntax"><div class="code"><pre class="diff" style="font-family:monospace;">Index: tuber/trunk/common/web/htdocs/assets/js/niftycube.js
===================================================================
<span style="color: #888822;">--- a/tuber/trunk/common/web/htdocs/assets/js/niftycube.js</span>
<span style="color: #888822;">+++ b/tuber/trunk/common/web/htdocs/assets/js/niftycube.js</span>
<span style="color: #440088;">@@ -<span style="">156</span>,<span style="">7</span> +<span style="">156</span>,<span style="">22</span> @@</span>
 <span style="">&#125;</span>
&nbsp;
<span style="color: #00b000;">+function getIeVersion<span style="">&#40;</span><span style="">&#41;</span> <span style="">&#123;</span></span>
<span style="color: #00b000;">+    var rv = -<span style="">1</span>;</span>
<span style="color: #00b000;">+    if <span style="">&#40;</span>navigator.appName == 'Microsoft Internet Explorer'<span style="">&#41;</span> <span style="">&#123;</span></span>
<span style="color: #00b000;">+        var ua = navigator.userAgent;</span>
<span style="color: #00b000;">+        var re = new RegExp<span style="">&#40;</span>&quot;MSIE <span style="">&#40;</span><span style="">&#91;</span><span style="">0</span>-<span style="">9</span><span style="">&#93;</span><span style="">&#123;</span><span style="">1</span>,<span style="">&#125;</span><span style="">&#91;</span>\.0-<span style="">9</span><span style="">&#93;</span><span style="">&#123;</span><span style="">0</span>,<span style="">&#125;</span><span style="">&#41;</span>&quot;<span style="">&#41;</span>;</span>
<span style="color: #00b000;">+        if <span style="">&#40;</span>re.exec<span style="">&#40;</span>ua<span style="">&#41;</span> != null<span style="">&#41;</span> <span style="">&#123;</span></span>
<span style="color: #00b000;">+            rv = parseFloat<span style="">&#40;</span>RegExp.$<span style="">1</span><span style="">&#41;</span>;</span>
<span style="color: #00b000;">+        <span style="">&#125;</span></span>
<span style="color: #00b000;">+    <span style="">&#125;</span></span>
<span style="color: #00b000;">+    return rv;</span>
<span style="color: #00b000;">+<span style="">&#125;</span></span>
<span style="color: #00b000;">+</span>
 function FixIE<span style="">&#40;</span>el<span style="">&#41;</span><span style="">&#123;</span>
 if<span style="">&#40;</span>el.currentStyle!=null &amp;&amp; el.currentStyle.hasLayout!=null &amp;&amp; el.currentStyle.hasLayout==false<span style="">&#41;</span>
<span style="color: #991111;">-    el.style.display=&quot;inline-block&quot;;</span>
<span style="color: #00b000;">+    var ver = getIeVersion<span style="">&#40;</span><span style="">&#41;</span>;</span>
<span style="color: #00b000;">+    if <span style="">&#40;</span>ver &lt; <span style="">8</span><span style="">&#41;</span> <span style="">&#123;</span></span>
<span style="color: #00b000;">+        el.style.display=&quot;inline-block&quot;;</span>
<span style="color: #00b000;">+    <span style="">&#125;</span></span>
 <span style="">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://kenkinder.com/2009/10/26/how-to-fix-niftycube-ie-8-width-problem/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Patch for meld to show multiple comparisons</title>
		<link>http://kenkinder.com/2009/09/16/patch-for-meld-to-show-multiple-comparisons/</link>
		<comments>http://kenkinder.com/2009/09/16/patch-for-meld-to-show-multiple-comparisons/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 00:26:38 +0000</pubDate>
		<dc:creator>Ken Kinder</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[diff]]></category>
		<category><![CDATA[meld]]></category>
		<category><![CDATA[patch]]></category>

		<guid isPermaLink="false">http://kenkinder.com/?p=230</guid>
		<description><![CDATA[I really like meld as a visual diff tool, but I wanted to have have it show multiple comparisons at once from the commandline. In the GUI, you can create multiple tabs for multiple comparisons, but there is (was) no way to do it directly from the command line. So, I wrote a patch that [...]]]></description>
			<content:encoded><![CDATA[<p>I really like <a href="http://meld.sourceforge.net/">meld</a> as a visual diff tool, but I wanted to have have it show multiple comparisons at once from the commandline. In the GUI, you can create multiple tabs for multiple comparisons, but there is (was) no way to do it directly from the command line. So, I wrote a patch that lets you use it like this:</p>
<pre>meld spam.orig spam.mine - eggs.orig eggs.mine - pants.orig pants.mine</pre>
<p>The usage is the same as it was before, but now you can specify multiple comparisons, separated by &#8220;-&#8221;. We&#8217;ll see if the patch is accepted; I <a href="http://article.gmane.org/gmane.comp.gnome.meld.general/990">posted</a> it to the mailing list. In the meantime, you can <a title="patch for meld to support multiple files" href="http://kenkinder.com/wp-content/uploads/2009/09/meld-multiple-diffs-patch.patch">download it here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kenkinder.com/2009/09/16/patch-for-meld-to-show-multiple-comparisons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
