<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title># Used Code</title>
	<atom:link href="http://usedcode.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://usedcode.wordpress.com</link>
	<description>for daily uses</description>
	<lastBuildDate>Fri, 14 Oct 2011 20:22:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='usedcode.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title># Used Code</title>
		<link>http://usedcode.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://usedcode.wordpress.com/osd.xml" title="# Used Code" />
	<atom:link rel='hub' href='http://usedcode.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Vocabularies in Software Development</title>
		<link>http://usedcode.wordpress.com/2011/10/14/vocabularies-in-software-development/</link>
		<comments>http://usedcode.wordpress.com/2011/10/14/vocabularies-in-software-development/#comments</comments>
		<pubDate>Fri, 14 Oct 2011 20:22:25 +0000</pubDate>
		<dc:creator>gregory_vincic</dc:creator>
				<category><![CDATA[illustration]]></category>

		<guid isPermaLink="false">http://usedcode.wordpress.com/?p=127</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=usedcode.wordpress.com&amp;blog=5370177&amp;post=127&amp;subd=usedcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://usedcode.files.wordpress.com/2011/10/untitleddrawing1.png"><img class="aligncenter size-full wp-image-129" title="Vocabularies in Software Development" src="http://usedcode.files.wordpress.com/2011/10/untitleddrawing1.png?w=720&#038;h=540" alt="Vocabularies in Software Development" width="720" height="540" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/usedcode.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/usedcode.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/usedcode.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/usedcode.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/usedcode.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/usedcode.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/usedcode.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/usedcode.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/usedcode.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/usedcode.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/usedcode.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/usedcode.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/usedcode.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/usedcode.wordpress.com/127/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=usedcode.wordpress.com&amp;blog=5370177&amp;post=127&amp;subd=usedcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://usedcode.wordpress.com/2011/10/14/vocabularies-in-software-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/662dd53b43881486edbd91c2aa087093?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">agrion</media:title>
		</media:content>

		<media:content url="http://usedcode.files.wordpress.com/2011/10/untitleddrawing1.png" medium="image">
			<media:title type="html">Vocabularies in Software Development</media:title>
		</media:content>
	</item>
		<item>
		<title>Changing root password in LDAP</title>
		<link>http://usedcode.wordpress.com/2010/05/11/changing-root-password-in-ldap/</link>
		<comments>http://usedcode.wordpress.com/2010/05/11/changing-root-password-in-ldap/#comments</comments>
		<pubDate>Tue, 11 May 2010 11:38:22 +0000</pubDate>
		<dc:creator>gregory_vincic</dc:creator>
				<category><![CDATA[ldap]]></category>

		<guid isPermaLink="false">http://usedcode.wordpress.com/?p=122</guid>
		<description><![CDATA[/etc/init.d/ldap stop /usr/sbin/slappasswd # Enter passwords # output should be something like {SSHA} aslfjlasdjflsadfjlsfjlasldfjsalk # Edit /etc/ldap/slapd.d/cn\=config/olcDatabase\=\{1\}hdb.ldif # Add/Modify olcRootPW: {SSHA} aslfjlasdjflsadfjlsfjlasldfjsalk # Save /etc/init.d/ldap start<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=usedcode.wordpress.com&amp;blog=5370177&amp;post=122&amp;subd=usedcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre>/etc/init.d/ldap stop
/usr/sbin/slappasswd
<span style="color:#ff0000;"># Enter passwords
# output should be something like</span>
{SSHA} aslfjlasdjflsadfjlsfjlasldfjsalk
<span style="color:#ff0000;"># Edit </span><span style="color:#ff0000;">/etc/ldap/slapd.d/cn\=config/olcDatabase\=\{1\}hdb.ldif</span>
<span style="color:#ff0000;"># Ad<span style="color:#ff0000;">d</span></span><span style="color:#ff0000;">/Modify</span>
olcRootPW: {SSHA} aslfjlasdjflsadfjlsfjlasldfjsalk
<span style="color:#ff0000;"># Save</span>
/etc/init.d/ldap start</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/usedcode.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/usedcode.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/usedcode.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/usedcode.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/usedcode.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/usedcode.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/usedcode.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/usedcode.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/usedcode.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/usedcode.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/usedcode.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/usedcode.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/usedcode.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/usedcode.wordpress.com/122/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=usedcode.wordpress.com&amp;blog=5370177&amp;post=122&amp;subd=usedcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://usedcode.wordpress.com/2010/05/11/changing-root-password-in-ldap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/662dd53b43881486edbd91c2aa087093?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">agrion</media:title>
		</media:content>
	</item>
		<item>
		<title>Print week number with date</title>
		<link>http://usedcode.wordpress.com/2010/04/23/print-week-number-with-date/</link>
		<comments>http://usedcode.wordpress.com/2010/04/23/print-week-number-with-date/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 11:15:37 +0000</pubDate>
		<dc:creator>gregory_vincic</dc:creator>
				<category><![CDATA[oneliner]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://usedcode.wordpress.com/?p=120</guid>
		<description><![CDATA[﻿﻿date +V -d YYYY-MM-DD<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=usedcode.wordpress.com&amp;blog=5370177&amp;post=120&amp;subd=usedcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre>﻿﻿date +V -d YYYY-MM-DD
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/usedcode.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/usedcode.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/usedcode.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/usedcode.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/usedcode.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/usedcode.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/usedcode.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/usedcode.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/usedcode.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/usedcode.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/usedcode.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/usedcode.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/usedcode.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/usedcode.wordpress.com/120/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=usedcode.wordpress.com&amp;blog=5370177&amp;post=120&amp;subd=usedcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://usedcode.wordpress.com/2010/04/23/print-week-number-with-date/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/662dd53b43881486edbd91c2aa087093?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">agrion</media:title>
		</media:content>
	</item>
		<item>
		<title>Clone hard-drive with ddrescue</title>
		<link>http://usedcode.wordpress.com/2010/04/07/clone-hard-drive-with-ddrescue/</link>
		<comments>http://usedcode.wordpress.com/2010/04/07/clone-hard-drive-with-ddrescue/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 07:21:25 +0000</pubDate>
		<dc:creator>gregory_vincic</dc:creator>
				<category><![CDATA[oneliner]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://usedcode.wordpress.com/?p=108</guid>
		<description><![CDATA[Insert hard-drive as slave Boot with sysresccd Create partition table on new disc with gparted ddrescue -d /dev/sda /dev/sdb /tmp/ddrescue.log Shutdown Make new disc primary, with  jumpers or cables Remove CD Reboot<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=usedcode.wordpress.com&amp;blog=5370177&amp;post=108&amp;subd=usedcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<ol>
<li><span style="color:#ff0000;">Insert hard-drive as slave</span></li>
<li><span style="color:#ff0000;">Boot with <a href="http://www.sysresccd.org/Main_Page">sysresccd</a></span></li>
<li><span style="color:#ff0000;">Create partition table on new disc with gparted</span></li>
<li>ddrescue -d /dev/sda /dev/sdb /tmp/ddrescue.log</li>
<li><span style="color:#ff0000;">Shutdown</span></li>
<li><span style="color:#ff0000;">Make new disc primary, with  jumpers or cables<br />
</span></li>
<li><span style="color:#ff0000;">Remove CD </span></li>
<li><span style="color:#ff0000;">Reboot</span></li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/usedcode.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/usedcode.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/usedcode.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/usedcode.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/usedcode.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/usedcode.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/usedcode.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/usedcode.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/usedcode.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/usedcode.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/usedcode.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/usedcode.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/usedcode.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/usedcode.wordpress.com/108/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=usedcode.wordpress.com&amp;blog=5370177&amp;post=108&amp;subd=usedcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://usedcode.wordpress.com/2010/04/07/clone-hard-drive-with-ddrescue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/662dd53b43881486edbd91c2aa087093?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">agrion</media:title>
		</media:content>
	</item>
		<item>
		<title>Revert multiple changes in working directory</title>
		<link>http://usedcode.wordpress.com/2010/04/05/revert-multiple-changes-in-working-directory/</link>
		<comments>http://usedcode.wordpress.com/2010/04/05/revert-multiple-changes-in-working-directory/#comments</comments>
		<pubDate>Mon, 05 Apr 2010 19:03:22 +0000</pubDate>
		<dc:creator>gregory_vincic</dc:creator>
				<category><![CDATA[oneliner]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://usedcode.wordpress.com/?p=105</guid>
		<description><![CDATA[svn status &#124; grep -v "?" &#124; awk '{ print $2 }' &#124; xargs svn revert $1<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=usedcode.wordpress.com&amp;blog=5370177&amp;post=105&amp;subd=usedcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre>svn status | grep -v "?" | awk '{ print $2 }' | xargs svn revert $1</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/usedcode.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/usedcode.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/usedcode.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/usedcode.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/usedcode.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/usedcode.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/usedcode.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/usedcode.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/usedcode.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/usedcode.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/usedcode.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/usedcode.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/usedcode.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/usedcode.wordpress.com/105/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=usedcode.wordpress.com&amp;blog=5370177&amp;post=105&amp;subd=usedcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://usedcode.wordpress.com/2010/04/05/revert-multiple-changes-in-working-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/662dd53b43881486edbd91c2aa087093?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">agrion</media:title>
		</media:content>
	</item>
		<item>
		<title>Three + 1 most important rules for code readability</title>
		<link>http://usedcode.wordpress.com/2010/03/31/three-1-most-important-rules-for-code-readability/</link>
		<comments>http://usedcode.wordpress.com/2010/03/31/three-1-most-important-rules-for-code-readability/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 20:50:17 +0000</pubDate>
		<dc:creator>gregory_vincic</dc:creator>
				<category><![CDATA[Software Development]]></category>

		<guid isPermaLink="false">http://usedcode.wordpress.com/?p=95</guid>
		<description><![CDATA[Keeping your code readable is a key element of productive programing. Depending on which language you write your code in there are specific rules. E.g. SUN published in 1999 Code Conventions for the JavaTM Programming Language also IBM published a series of articles back in 2001 on perl programming, The road to better programming. Google [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=usedcode.wordpress.com&amp;blog=5370177&amp;post=95&amp;subd=usedcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Keeping your code readable is a key element of productive programing. Depending on which language you write your code in there are specific rules. E.g. SUN published in 1999<a href="http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html"> Code Conventions for the JavaTM Programming Language</a> also IBM published a series of articles back in 2001 on perl programming,<a href="http://www.ibm.com/developerworks/library/l-road1.html"> The road to better programming</a>. Google has about 40 milion more hits on <a href="http://www.google.se/search?hl=sv&amp;client=firefox-a&amp;hs=dLk&amp;rls=org.mozilla%3Aen-US%3Aofficial&amp;q=programming+guidelines&amp;meta=&amp;aq=f&amp;aqi=&amp;aql=&amp;oq=&amp;gs_rfai=">programming guidelines</a>.</p>
<p>Most of us write code in at least three or four languages which could result in many coding styles to follow. Refactoring code is a way to really learn what counts for readability and what doesn&#8217;t. I found myself following couple of rules refactoring both my own and others code, making it more readable. I&#8217;d repeatedly do this</p>
<ol>
<li>Group variable declarations at beginning of block</li>
<li>One statement / line</li>
<li>New line spacing between blocks of code</li>
</ol>
<p>When reading the code you can then skip the declaration part, usually nothing interesting happens there. The short one line statements and new line separated blocks of code are way easily read and understood.</p>
<p>Don&#8217;t forget the +1 rule</p>
<p style="text-align:left;"><em><strong>Have fun!</strong></em></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/usedcode.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/usedcode.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/usedcode.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/usedcode.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/usedcode.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/usedcode.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/usedcode.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/usedcode.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/usedcode.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/usedcode.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/usedcode.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/usedcode.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/usedcode.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/usedcode.wordpress.com/95/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=usedcode.wordpress.com&amp;blog=5370177&amp;post=95&amp;subd=usedcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://usedcode.wordpress.com/2010/03/31/three-1-most-important-rules-for-code-readability/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/662dd53b43881486edbd91c2aa087093?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">agrion</media:title>
		</media:content>
	</item>
		<item>
		<title>Source control and commit messages</title>
		<link>http://usedcode.wordpress.com/2009/11/26/source-control-and-commit-messages/</link>
		<comments>http://usedcode.wordpress.com/2009/11/26/source-control-and-commit-messages/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 22:51:13 +0000</pubDate>
		<dc:creator>gregory_vincic</dc:creator>
				<category><![CDATA[oneliner]]></category>

		<guid isPermaLink="false">http://usedcode.wordpress.com/?p=85</guid>
		<description><![CDATA[Using Trac and Subversion for source control. When something changes &#8211; see the Timeline What changed within file[s] &#8211; see the Changeset What is the issue &#8211; read the Ticket description So what&#8217;s left for the commit message? well this is what I think &#8220;One sentence; describing your action in relation to the Ticket description.&#8221; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=usedcode.wordpress.com&amp;blog=5370177&amp;post=85&amp;subd=usedcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Using Trac and Subversion for source control.</p>
<ul>
<li><strong>When</strong> something changes &#8211; see the <strong>Timeline</strong></li>
<li><strong>What</strong> changed within file[s] &#8211; see the <strong>Changeset</strong></li>
<li style="text-align:justify;"><strong>What</strong> is the issue &#8211; read the <strong>Ticket</strong> <strong>description</strong></li>
</ul>
<p style="text-align:left;">So what&#8217;s left for the commit message? well this is what I think</p>
<p style="text-align:center;"><em>&#8220;One sentence; describing your action <strong>in relation</strong> to the <strong>Ticket</strong> <strong>description</strong>.&#8221;</em></p>
<p style="text-align:left;">Let&#8217;s break it down</p>
<p style="text-align:left;">&#8220;One sentence&#8221; &#8211; means that you should keep your changes really small. If you feel the need to write more than one sentence. Split the commit into two.</p>
<p style="text-align:left;">&#8220;describe your action in relation to the <strong>Ticket</strong> description&#8221; &#8211; this one is important; only say which part of the described issue you have addressed. Unless the ticket is design or refactoring related one, no reference to code changes should be made. This information is already available in the changeset.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/usedcode.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/usedcode.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/usedcode.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/usedcode.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/usedcode.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/usedcode.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/usedcode.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/usedcode.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/usedcode.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/usedcode.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/usedcode.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/usedcode.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/usedcode.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/usedcode.wordpress.com/85/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=usedcode.wordpress.com&amp;blog=5370177&amp;post=85&amp;subd=usedcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://usedcode.wordpress.com/2009/11/26/source-control-and-commit-messages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/662dd53b43881486edbd91c2aa087093?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">agrion</media:title>
		</media:content>
	</item>
		<item>
		<title>Prepend log with sed</title>
		<link>http://usedcode.wordpress.com/2009/06/16/prepend-log-with-sed/</link>
		<comments>http://usedcode.wordpress.com/2009/06/16/prepend-log-with-sed/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 09:00:06 +0000</pubDate>
		<dc:creator>gregory_vincic</dc:creator>
				<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://usedcode.wordpress.com/?p=72</guid>
		<description><![CDATA[#!/bin/sh LOGFILE=/var/log/latestfirst.log prepend() { line=$1 sed -i "1i $line" $LOGFILE } prepend "a" prepend "b" prepend "c"<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=usedcode.wordpress.com&amp;blog=5370177&amp;post=72&amp;subd=usedcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre>#!/bin/sh
LOGFILE=/var/log/latestfirst.log

prepend()
{
  line=$1
  sed -i "1i $line" $LOGFILE
}

prepend "a"
prepend "b"
prepend "c"</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/usedcode.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/usedcode.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/usedcode.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/usedcode.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/usedcode.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/usedcode.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/usedcode.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/usedcode.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/usedcode.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/usedcode.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/usedcode.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/usedcode.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/usedcode.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/usedcode.wordpress.com/72/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=usedcode.wordpress.com&amp;blog=5370177&amp;post=72&amp;subd=usedcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://usedcode.wordpress.com/2009/06/16/prepend-log-with-sed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/662dd53b43881486edbd91c2aa087093?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">agrion</media:title>
		</media:content>
	</item>
		<item>
		<title>Print UID of logged in user</title>
		<link>http://usedcode.wordpress.com/2009/04/28/print-uid-of-logged-in-user/</link>
		<comments>http://usedcode.wordpress.com/2009/04/28/print-uid-of-logged-in-user/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 19:19:34 +0000</pubDate>
		<dc:creator>gregory_vincic</dc:creator>
				<category><![CDATA[oneliner]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://usedcode.wordpress.com/?p=68</guid>
		<description><![CDATA[id -u<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=usedcode.wordpress.com&amp;blog=5370177&amp;post=68&amp;subd=usedcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre>id -u</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/usedcode.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/usedcode.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/usedcode.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/usedcode.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/usedcode.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/usedcode.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/usedcode.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/usedcode.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/usedcode.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/usedcode.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/usedcode.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/usedcode.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/usedcode.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/usedcode.wordpress.com/68/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=usedcode.wordpress.com&amp;blog=5370177&amp;post=68&amp;subd=usedcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://usedcode.wordpress.com/2009/04/28/print-uid-of-logged-in-user/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/662dd53b43881486edbd91c2aa087093?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">agrion</media:title>
		</media:content>
	</item>
		<item>
		<title>svn undo revision 100</title>
		<link>http://usedcode.wordpress.com/2009/04/09/svn-undo-commit-100/</link>
		<comments>http://usedcode.wordpress.com/2009/04/09/svn-undo-commit-100/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 08:27:23 +0000</pubDate>
		<dc:creator>gregory_vincic</dc:creator>
				<category><![CDATA[shell]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[undo]]></category>

		<guid isPermaLink="false">http://usedcode.wordpress.com/?p=63</guid>
		<description><![CDATA[# Revert changes to working directory svn merge -r 100:99 http://path/to/svn/trunk . # Commit changes svn commit -m "Undoing revision 100"<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=usedcode.wordpress.com&amp;blog=5370177&amp;post=63&amp;subd=usedcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre><span style="color:#ff0000;"># Revert changes to working directory</span>
svn merge -r 100:99 http://path/to/svn/trunk .
<span style="color:#ff0000;"># Commit changes</span>
svn commit -m "Undoing revision 100"</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/usedcode.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/usedcode.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/usedcode.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/usedcode.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/usedcode.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/usedcode.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/usedcode.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/usedcode.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/usedcode.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/usedcode.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/usedcode.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/usedcode.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/usedcode.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/usedcode.wordpress.com/63/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=usedcode.wordpress.com&amp;blog=5370177&amp;post=63&amp;subd=usedcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://usedcode.wordpress.com/2009/04/09/svn-undo-commit-100/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/662dd53b43881486edbd91c2aa087093?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">agrion</media:title>
		</media:content>
	</item>
	</channel>
</rss>
