<?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>Geekality</title>
	<atom:link href="http://www.geekality.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.geekality.net</link>
	<description>With a hint of Social Ineptitude</description>
	<lastBuildDate>Sun, 05 Feb 2012 17:53:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>JavaScript: Delayed keypress event (sort of)</title>
		<link>http://www.geekality.net/2012/02/05/javascript-delayed-keypress-event-sort-of/</link>
		<comments>http://www.geekality.net/2012/02/05/javascript-delayed-keypress-event-sort-of/#comments</comments>
		<pubDate>Sun, 05 Feb 2012 17:48:18 +0000</pubDate>
		<dc:creator>Torleif</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.geekality.net/?p=1935</guid>
		<description><![CDATA[Wanted to do an AJAX call whenever the content of a field was changed. This can be done simply with the onchange event, but the problem is that you have to tab out of the field to make it fire. &#8230; <a href="http://www.geekality.net/2012/02/05/javascript-delayed-keypress-event-sort-of/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Wanted to do an AJAX call whenever the content of a field was changed. This can be done simply with the onchange event, but the problem is that you have to tab out of the field to make it fire. You can also do it with the keypress event, but then you&#8217;ll get one AJAX call for each and every keypress, which is just silly.</p>
<p>Found a <a href="http://www.openjs.com/scripts/events/check_after_typing.php">nice and easy solution</a>, and here it is slightly changed.</p>
<p><span id="more-1935"></span></p>
<div class="codecolorer-container javascript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #003366; font-weight: bold;">var</span> key_press_counter <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #003366; font-weight: bold;">function</span> check<span style="color: #009900;">&#40;</span>n<span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #006600; font-style: italic;">// Do something</span><br />
&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>n <span style="color: #339933;">==</span> key_press_counter<span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #006600; font-style: italic;">// Check field, do an ajax call, whatever</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<br />
$<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; check<span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#input'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">keypress</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; setTimeout<span style="color: #009900;">&#40;</span>check<span style="color: #339933;">,</span> <span style="color: #CC0000;">1000</span><span style="color: #339933;">,</span> <span style="color: #339933;">++</span>key_press_counter<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<p>It&#8217;s a bit sneaky, but you should be able to deduce how it works  <img src='http://www.geekality.net/wp-includes/images/blank.gif' alt=':wink:' class='wp-smiley smiley-20' /> Working sample over at <a href="http://samples.geekality.net/delay-check">samples.geekality.net/delay-check</a>.</p>
<p class="wp-flattr-button"></p> <p><a href="http://www.geekality.net/?flattrss_redirect&amp;id=1935&amp;md5=b81f378ebe7eed24928013c3adc75d0e" title="Flattr" target="_blank"><img src="http://www.geekality.net/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.geekality.net/2012/02/05/javascript-delayed-keypress-event-sort-of/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nice font for code</title>
		<link>http://www.geekality.net/2012/01/30/nice-font-for-code/</link>
		<comments>http://www.geekality.net/2012/01/30/nice-font-for-code/#comments</comments>
		<pubDate>Mon, 30 Jan 2012 11:56:15 +0000</pubDate>
		<dc:creator>Torleif</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Comfort]]></category>
		<category><![CDATA[Developer]]></category>
		<category><![CDATA[Editor]]></category>
		<category><![CDATA[Font]]></category>
		<category><![CDATA[IDE]]></category>

		<guid isPermaLink="false">http://www.geekality.net/?p=1928</guid>
		<description><![CDATA[Don&#8217;t remember where or how I came over this font&#8230; Might have been a tweet linking to this post&#8230; Either way, it&#8217;s a very nice font I think. Sure looks a lot better than the default Eclipse font anyways The &#8230; <a href="http://www.geekality.net/2012/01/30/nice-font-for-code/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Don&#8217;t remember where or how I came over this font&#8230; Might have been a tweet linking to <a href="http://codeulate.com/2009/11/making-githubs-code-readable/">this post</a>&#8230; Either way, it&#8217;s a very nice font I think. Sure looks a lot better than the default Eclipse font anyways <img src='http://www.geekality.net/wp-includes/images/blank.gif' alt=':roll:' class='wp-smiley smiley-15' /> </p>
<p>The font is called <em>Bitstream Vera Sans Mono</em>, and you can download it for free at <a href="http://www.dafont.com/bitstream-vera-mono.font">dafont.com/bitstream-vera-mono.font</a>. Go try it out!</p>
<p class="wp-flattr-button"></p> <p><a href="http://www.geekality.net/?flattrss_redirect&amp;id=1928&amp;md5=4acf20f4351ae7d3d4cebd7beb0dad4b" title="Flattr" target="_blank"><img src="http://www.geekality.net/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.geekality.net/2012/01/30/nice-font-for-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unicode test strings</title>
		<link>http://www.geekality.net/2012/01/20/unicode-test-strings/</link>
		<comments>http://www.geekality.net/2012/01/20/unicode-test-strings/#comments</comments>
		<pubDate>Fri, 20 Jan 2012 13:21:17 +0000</pubDate>
		<dc:creator>Torleif</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Text]]></category>
		<category><![CDATA[Unicode]]></category>

		<guid isPermaLink="false">http://www.geekality.net/?p=1909</guid>
		<description><![CDATA[Some strings you can shove into your application and see if you at least sort of handle Unicode correctly. For example, if you have a form which stores a text value in a database and then shows it later on &#8230; <a href="http://www.geekality.net/2012/01/20/unicode-test-strings/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Some strings you can shove into your application and see if you at least sort of handle Unicode correctly. For example, if you have a form which stores a text value in a database and then shows it later on a webpage, you can try to stick these in the form and see if they come out correctly in the other end.</p>
<ul>
<li>Iñtërnâtiônàližætiøn
<li>Ādam
</ul>
<p>First one includes many non-ascii characters. Second one starts with a multi-byte character.</p>
<p class="wp-flattr-button"></p> <p><a href="http://www.geekality.net/?flattrss_redirect&amp;id=1909&amp;md5=84c289deff62f05130b1633665612d28" title="Flattr" target="_blank"><img src="http://www.geekality.net/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.geekality.net/2012/01/20/unicode-test-strings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert windows-1252 to utf-8 on Windows</title>
		<link>http://www.geekality.net/2012/01/20/convert-windows-1252-to-utf-8-on-windows/</link>
		<comments>http://www.geekality.net/2012/01/20/convert-windows-1252-to-utf-8-on-windows/#comments</comments>
		<pubDate>Fri, 20 Jan 2012 10:28:28 +0000</pubDate>
		<dc:creator>Torleif</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Conversion]]></category>
		<category><![CDATA[Encoding]]></category>
		<category><![CDATA[Files]]></category>
		<category><![CDATA[Unicode]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.geekality.net/?p=1913</guid>
		<description><![CDATA[Tried to find out how to convert windows-1252 code files to utf-8 without messing up Norwegian characters today. Couldn&#8217;t really find anything good other than linux tools and php stuff. Finally, *facepalm*, I remembered it might be possible using Notepad&#8230; &#8230; <a href="http://www.geekality.net/2012/01/20/convert-windows-1252-to-utf-8-on-windows/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Tried to find out how to convert windows-1252 code files to utf-8 without messing up Norwegian characters today. Couldn&#8217;t really find anything good other than linux tools and php stuff. Finally, <em>*facepalm*</em>, I remembered it might be possible using Notepad&#8230; And sure enough, seems to work great. Just open up the windows-1252 encoded file in Notepad, then choose &#8216;Save as&#8217; and set encoding to UTF-8.</p>
<p>Hopefully I won&#8217;t forget this the next time I need it&#8230; <em>*sigh*</em></p>
<p class="wp-flattr-button"></p> <p><a href="http://www.geekality.net/?flattrss_redirect&amp;id=1913&amp;md5=e91b045b295f462214155dab7c90860d" title="Flattr" target="_blank"><img src="http://www.geekality.net/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.geekality.net/2012/01/20/convert-windows-1252-to-utf-8-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP: One way of differing between DEV and PROD environments with Kohana</title>
		<link>http://www.geekality.net/2012/01/12/php-one-way-of-differing-between-dev-and-prod-environments-with-kohana/</link>
		<comments>http://www.geekality.net/2012/01/12/php-one-way-of-differing-between-dev-and-prod-environments-with-kohana/#comments</comments>
		<pubDate>Thu, 12 Jan 2012 22:22:49 +0000</pubDate>
		<dc:creator>Torleif</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Environment]]></category>
		<category><![CDATA[Kohana]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Setup]]></category>

		<guid isPermaLink="false">http://www.geekality.net/?p=1904</guid>
		<description><![CDATA[Usually when I develop websites, they will be deployed to a domain, for example www.geekality.net. But when I develop this site locally, I usually want it to be in some sub-folder of localhost, since I usually have more than one &#8230; <a href="http://www.geekality.net/2012/01/12/php-one-way-of-differing-between-dev-and-prod-environments-with-kohana/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Usually when I develop websites, they will be deployed to a domain, for example www.geekality.net. But when I develop this site locally, I usually want it to be in some sub-folder of localhost, since I usually have more than one website going on, and I don&#8217;t want the trouble with virtual-hosts. So, to solve this for my Kohana websites I do the following simple thing. This technique would work for other websites programmed in PHP as well, but the PHP part would probably be a bit different.</p>
<p><span id="more-1904"></span></p>
<h2>Apache httpd.conf</h2>
<p>First of all, I add this to the end of my httpd.conf.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># Custom htaccess file<br />
AccessFileName .htaccess.local .htaccess</div></div>
<p>Make sure to check if there is already a line with AccessFileName though, and if it is, just edit that instead of adding another one <img src='http://www.geekality.net/wp-includes/images/blank.gif' alt=':)' class='wp-smiley smiley-1' /> </p>
<h2>Environment variables</h2>
<p>With that done, you can have one regular .htaccess which would be used in production and a local one for your machine.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">#.htaccess<br />
SetEnv KOHANA_ENV production<br />
SetEnv KOHANA_BASE /<br />
RewriteBase /</div></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">#.htaccess.local<br />
SetEnv KOHANA_ENV development<br />
SetEnv KOHANA_BASE /geekality/<br />
RewriteBase /geekality/</div></div>
<p>These two files can now live side by side, checked in to source control, and not cause any trouble. Alternatively you could set the local one to be ignored so that other developers could create their own setup.</p>
<h2>Kohana bootstrap</h2>
<p>Now comes the Kohana specific part. In my application/bootstrap.php I have the following (among other stuff of course).</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'KOHANA_ENV'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#123;</span><br />
&nbsp; Kohana<span style="color: #339933;">::</span><span style="color: #000088;">$environment</span> <span style="color: #339933;">=</span> <span style="color: #990000;">constant</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Kohana::'</span><span style="color: #339933;">.</span><span style="color: #990000;">strtoupper</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'KOHANA_ENV'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
Kohana<span style="color: #339933;">::</span><span style="color: #004000;">init</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><br />
&nbsp; <span style="color: #0000ff;">'base_url'</span> &nbsp; <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'KOHANA_BASE'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><br />
&nbsp; <span style="color: #0000ff;">'index_file'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span><br />
&nbsp; <span style="color: #0000ff;">'profile'</span> <span style="color: #339933;">=&gt;</span> Kohana<span style="color: #339933;">::</span><span style="color: #000088;">$environment</span> <span style="color: #339933;">!==</span> Kohana<span style="color: #339933;">::</span><span style="color: #004000;">PRODUCTION</span><span style="color: #339933;">,</span><br />
&nbsp; <span style="color: #0000ff;">'caching'</span> <span style="color: #339933;">=&gt;</span> Kohana<span style="color: #339933;">::</span><span style="color: #000088;">$environment</span> <span style="color: #339933;">!==</span> Kohana<span style="color: #339933;">::</span><span style="color: #004000;">DEVELOPMENT</span><span style="color: #339933;">,</span><br />
&nbsp; <span style="color: #0000ff;">'errors'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">TRUE</span><span style="color: #339933;">,</span><br />
<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<p>And that&#8217;s pretty much all there is to it. This way I don&#8217;t have to worry about not overwriting the .htaccess on my production server or stuff like that. The .htaccess is untouched and just for the production environment <img src='http://www.geekality.net/wp-includes/images/blank.gif' alt=':)' class='wp-smiley smiley-1' /> </p>
<p class="wp-flattr-button"></p> <p><a href="http://www.geekality.net/?flattrss_redirect&amp;id=1904&amp;md5=0e58ab261f2f2ee24146da7ab4c4b525" title="Flattr" target="_blank"><img src="http://www.geekality.net/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.geekality.net/2012/01/12/php-one-way-of-differing-between-dev-and-prod-environments-with-kohana/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Oracle: Finding all constraints and their affected columns</title>
		<link>http://www.geekality.net/2012/01/12/oracle-finding-all-constraints-and-their-affected-columns/</link>
		<comments>http://www.geekality.net/2012/01/12/oracle-finding-all-constraints-and-their-affected-columns/#comments</comments>
		<pubDate>Thu, 12 Jan 2012 17:18:28 +0000</pubDate>
		<dc:creator>Torleif</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Foreign Keys]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[RDMS]]></category>
		<category><![CDATA[Search]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.geekality.net/?p=1899</guid>
		<description><![CDATA[Found an SQL script to list all constraints in an Oracle database together with affected columns. Putting it here in case I need it again&#8230; Took a while to run, but sure beats having to look through all the table &#8230; <a href="http://www.geekality.net/2012/01/12/oracle-finding-all-constraints-and-their-affected-columns/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Found <a href="http://blog.mclaughlinsoftware.com/2009/03/05/validating-foreign-keys/">an SQL script</a> to list all constraints in an Oracle database together with affected columns. Putting it here in case I need it again&#8230; Took a while to run, but sure beats having to look through all the table definitions to find what exactly is preventing me from deleting a row&#8230;</p>
<div class="codecolorer-container sql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="sql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #993333; font-weight: bold;">SELECT</span> UC<span style="color: #66cc66;">.</span>OWNER<br />
<span style="color: #66cc66;">,</span> &nbsp; &nbsp; &nbsp;UC<span style="color: #66cc66;">.</span>CONSTRAINT_NAME<br />
<span style="color: #66cc66;">,</span> &nbsp; &nbsp; &nbsp;UCC1<span style="color: #66cc66;">.</span><span style="color: #993333; font-weight: bold;">TABLE_NAME</span><span style="color: #66cc66;">||</span><span style="color: #ff0000;">'.'</span><span style="color: #66cc66;">||</span>UCC1<span style="color: #66cc66;">.</span>COLUMN_NAME <span style="color: #ff0000;">&quot;CONSTRAINT_SOURCE&quot;</span><br />
<span style="color: #66cc66;">,</span> &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">'REFERENCES'</span><br />
<span style="color: #66cc66;">,</span> &nbsp; &nbsp; &nbsp;UCC2<span style="color: #66cc66;">.</span><span style="color: #993333; font-weight: bold;">TABLE_NAME</span><span style="color: #66cc66;">||</span><span style="color: #ff0000;">'.'</span><span style="color: #66cc66;">||</span>UCC2<span style="color: #66cc66;">.</span>COLUMN_NAME <span style="color: #ff0000;">&quot;REFERENCES_COLUMN&quot;</span><br />
<span style="color: #993333; font-weight: bold;">FROM</span> USER_CONSTRAINTS uc<br />
<span style="color: #66cc66;">,</span> &nbsp; &nbsp;USER_CONS_COLUMNS ucc1<br />
<span style="color: #66cc66;">,</span> &nbsp; &nbsp;USER_CONS_COLUMNS ucc2<br />
<span style="color: #993333; font-weight: bold;">WHERE</span> UC<span style="color: #66cc66;">.</span>CONSTRAINT_NAME <span style="color: #66cc66;">=</span> UCC1<span style="color: #66cc66;">.</span>CONSTRAINT_NAME<br />
&nbsp; <span style="color: #993333; font-weight: bold;">AND</span> UC<span style="color: #66cc66;">.</span>R_CONSTRAINT_NAME <span style="color: #66cc66;">=</span> UCC2<span style="color: #66cc66;">.</span>CONSTRAINT_NAME<br />
&nbsp; <span style="color: #993333; font-weight: bold;">AND</span> UCC1<span style="color: #66cc66;">.</span><span style="color: #993333; font-weight: bold;">POSITION</span> <span style="color: #66cc66;">=</span> UCC2<span style="color: #66cc66;">.</span><span style="color: #993333; font-weight: bold;">POSITION</span> <span style="color: #808080; font-style: italic;">-- Correction for multiple column primary keys.</span><br />
&nbsp; <span style="color: #993333; font-weight: bold;">AND</span> UC<span style="color: #66cc66;">.</span>CONSTRAINT_TYPE <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'R'</span><br />
<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> UCC1<span style="color: #66cc66;">.</span><span style="color: #993333; font-weight: bold;">TABLE_NAME</span><br />
<span style="color: #66cc66;">,</span> &nbsp; &nbsp; &nbsp; &nbsp;UC<span style="color: #66cc66;">.</span>CONSTRAINT_NAME;</div></div>
<p>If you&#8217;re just looking for one particular constraint you can of course also add <code class="codecolorer text default"><span class="text">and UC.CONSTRAINT_NAME = 'SOME NAME'</span></code> <img src='http://www.geekality.net/wp-includes/images/blank.gif' alt=':)' class='wp-smiley smiley-1' /> </p>
<p class="wp-flattr-button"></p> <p><a href="http://www.geekality.net/?flattrss_redirect&amp;id=1899&amp;md5=1e54a40d978718429a8c0f0fd8bba21f" title="Flattr" target="_blank"><img src="http://www.geekality.net/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.geekality.net/2012/01/12/oracle-finding-all-constraints-and-their-affected-columns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to change or remove file extensions in Windows</title>
		<link>http://www.geekality.net/2011/11/29/how-to-change-or-remove-file-extensions-in-windows/</link>
		<comments>http://www.geekality.net/2011/11/29/how-to-change-or-remove-file-extensions-in-windows/#comments</comments>
		<pubDate>Tue, 29 Nov 2011 18:14:05 +0000</pubDate>
		<dc:creator>Torleif</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[File extensions]]></category>
		<category><![CDATA[Files]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.geekality.net/?p=1887</guid>
		<description><![CDATA[Say you have a bunch of files and you want to quickly change or remove the file extension of all of them. Turns out that&#8217;s very simple to do with the command-line in Windows. I had no idea&#8230; Change ren &#8230; <a href="http://www.geekality.net/2011/11/29/how-to-change-or-remove-file-extensions-in-windows/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Say you have a bunch of files and you want to quickly change or remove the file extension of all of them. Turns out that&#8217;s very simple to do with the command-line in Windows. I had no idea&#8230;</p>
<h2>Change</h2>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">ren <span style="color: #000000; font-weight: bold;">*</span>.old <span style="color: #000000; font-weight: bold;">*</span>.new</div></div>
<p>Will change all files with &#8216;old&#8217; file extension to have the &#8216;new&#8217; file extension.</p>
<h2>Remove</h2>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">ren <span style="color: #000000; font-weight: bold;">*</span>.old <span style="color: #000000; font-weight: bold;">*</span>.</div></div>
<p>Will remove the &#8216;old&#8217; file extension.</p>
<p>Simple!</p>
<p class="wp-flattr-button"></p> <p><a href="http://www.geekality.net/?flattrss_redirect&amp;id=1887&amp;md5=81cb44554d778fd2cebd830b4320d4e4" title="Flattr" target="_blank"><img src="http://www.geekality.net/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.geekality.net/2011/11/29/how-to-change-or-remove-file-extensions-in-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

