<?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>Next Door Hacker &#187; programming</title>
	<atom:link href="http://www.nextdoorhacker.com/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nextdoorhacker.com</link>
	<description>I&#039;m just your friendly neighborhood hacker</description>
	<lastBuildDate>Mon, 05 Apr 2010 09:44:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Eclipse has block selection? Awesome! err.. finally</title>
		<link>http://www.nextdoorhacker.com/2009/12/eclipse-has-block-selection-awesome-err-finally/</link>
		<comments>http://www.nextdoorhacker.com/2009/12/eclipse-has-block-selection-awesome-err-finally/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 09:45:11 +0000</pubDate>
		<dc:creator>Prasanna</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[eclipse]]></category>

		<guid isPermaLink="false">http://www.nextdoorhacker.com/?p=203</guid>
		<description><![CDATA[Just noticed this &#8220;block selection&#8221; feature in eclipse. What this lets you do is select a block of text instead of just lines. Suppose you wanted to copy
1 class Hello:
2               def __init__(self):
3                               print &#8220;hello&#8221;
If you [...]]]></description>
			<content:encoded><![CDATA[<p>Just noticed this &#8220;block selection&#8221; feature in eclipse. What this lets you do is select a block of text instead of just lines. Suppose you wanted to copy</p>
<blockquote><p>1 class Hello:<br />
2               def __init__(self):<br />
3                               print &#8220;hello&#8221;</p></blockquote>
<p>If you wanted to copy this, I&#8217;d put in vim and run :%s/^\(\d\+\)\s //g [Double check this]<br />
to remove the line numbers or depending on how much I&#8217;d like to tinker, perl.. Now I can just do it in eclipse. Something I&#8217;ve wanted to do since my pre-regexp days..</p>
<p>Notepad++ has had this feature since forever, but its nice to see this in eclipse finally.<br />
http://www.vasanth.in/2009/03/31/eclipse-tip-block-selection-mode/</p>
<p>Granted, it doesn&#8217;t really really add much for me personally, I&#8217;ve heard a bunch of people ditching eclipse for Notepad++, so here you go!<br />
Cheers!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nextdoorhacker.com/2009/12/eclipse-has-block-selection-awesome-err-finally/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making scripts executable with vim hooks</title>
		<link>http://www.nextdoorhacker.com/2009/07/making-scripts-executable-with-vim-hooks/</link>
		<comments>http://www.nextdoorhacker.com/2009/07/making-scripts-executable-with-vim-hooks/#comments</comments>
		<pubDate>Sun, 12 Jul 2009 01:13:10 +0000</pubDate>
		<dc:creator>Prasanna</dc:creator>
				<category><![CDATA[automation]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.nextdoorhacker.com/?p=155</guid>
		<description><![CDATA[I write a lot of shell, python and sometimes perl scripts to get things done and it gets somewhat mildly annoying to set them as executable every once in a while. Here&#8217;s a trick from shell-fu Tip #858
I just added the following line to my ~/.vimrc
au BufWritePost * if getline(1) =~ &#8220;^#!&#8221; &#124; if getline(1) [...]]]></description>
			<content:encoded><![CDATA[<p>I write a lot of shell, python and sometimes perl scripts to get things done and it gets somewhat mildly annoying to set them as executable every once in a while. Here&#8217;s a trick from <a href="http://www.shell-fu.org/lister.php?id=858">shell-fu Tip #858</a></p>
<p>I just added the following line to my ~/.vimrc</p>
<blockquote><p>au BufWritePost * if getline(1) =~ &#8220;^#!&#8221; | if getline(1) =~ &#8220;/bin/&#8221; | if getline(1) =~ &#8220;/usr/bin&#8221; | silent !chmod a+x &lt;afile&gt; | endif | endif</p></blockquote>
<p>I have improved the script a little bit as I need to use python a lot (i.e, #!/usr/bin/env python)</p>
<p>If you have a better way to write the regex, comment here but I think this is good enough for most purposes.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nextdoorhacker.com/2009/07/making-scripts-executable-with-vim-hooks/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
