<?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 devhands</title>
	<atom:link href="http://www.devhands.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.devhands.com</link>
	<description>Inspired by consistent circumstances</description>
	<lastBuildDate>Tue, 08 Nov 2011 16:04:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>Comment on AJAX-based page update with graceful degradation by Stage week 7 – Maandag &#38; Dinsdag &#171; marliesstage</title>
		<link>http://www.devhands.com/2010/01/ajax-based-page-update-with-graceful-degradation/comment-page-1/#comment-28430</link>
		<dc:creator>Stage week 7 – Maandag &#38; Dinsdag &#171; marliesstage</dc:creator>
		<pubDate>Tue, 08 Nov 2011 16:04:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.devhands.com/?p=446#comment-28430</guid>
		<description>[...] http://www.devhands.com/2010/01/ajax-based-page-update-with-graceful-degradation/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.devhands.com/2010/01/ajax-based-page-update-with-graceful-degradation/" rel="nofollow">http://www.devhands.com/2010/01/ajax-based-page-update-with-graceful-degradation/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP preg_replace URL by Jacqui</title>
		<link>http://www.devhands.com/2010/02/php-preg_replace-url/comment-page-1/#comment-20733</link>
		<dc:creator>Jacqui</dc:creator>
		<pubDate>Wed, 18 May 2011 10:24:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.devhands.com/?p=469#comment-20733</guid>
		<description>I&#039;ve been searching all over for some script that does this! Thank you :)</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been searching all over for some script that does this! Thank you <img src='http://www.devhands.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to get the full path from the running bash script by Bernhard Wagner</title>
		<link>http://www.devhands.com/2010/01/how-to-get-the-full-path-from-the-running-bash-script/comment-page-1/#comment-17734</link>
		<dc:creator>Bernhard Wagner</dc:creator>
		<pubDate>Tue, 01 Feb 2011 15:22:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.devhands.com/?p=409#comment-17734</guid>
		<description>The shebang line is actually misleading:
#!/bin/sh
It should read:
 #!/bin/bash

Since the solution involving readlink is only usable with /bin/bash but not with a plain /bin/sh. As it stands, a script containing the above lines will fail with:
./tst2.sh: 2: Bad substitution
dirname: missing operand
Try `dirname --help&#039; for more information.</description>
		<content:encoded><![CDATA[<p>The shebang line is actually misleading:<br />
#!/bin/sh<br />
It should read:<br />
 #!/bin/bash</p>
<p>Since the solution involving readlink is only usable with /bin/bash but not with a plain /bin/sh. As it stands, a script containing the above lines will fail with:<br />
./tst2.sh: 2: Bad substitution<br />
dirname: missing operand<br />
Try `dirname &#8211;help&#8217; for more information.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Double motd and last login by Aleksandr Tsertkov</title>
		<link>http://www.devhands.com/2008/10/double-motd-and-last-login/comment-page-1/#comment-17113</link>
		<dc:creator>Aleksandr Tsertkov</dc:creator>
		<pubDate>Tue, 11 Jan 2011 19:02:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.devhands.com/?p=102#comment-17113</guid>
		<description>long holidays. cleaning up now, sorry.</description>
		<content:encoded><![CDATA[<p>long holidays. cleaning up now, sorry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Double motd and last login by GigaHooker</title>
		<link>http://www.devhands.com/2008/10/double-motd-and-last-login/comment-page-1/#comment-16999</link>
		<dc:creator>GigaHooker</dc:creator>
		<pubDate>Thu, 06 Jan 2011 21:02:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.devhands.com/?p=102#comment-16999</guid>
		<description>So lot of spam.. WHY?! 
Moderator, WTF??????</description>
		<content:encoded><![CDATA[<p>So lot of spam.. WHY?!<br />
Moderator, WTF??????</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to get the full path from the running bash script by kgas</title>
		<link>http://www.devhands.com/2010/01/how-to-get-the-full-path-from-the-running-bash-script/comment-page-1/#comment-14505</link>
		<dc:creator>kgas</dc:creator>
		<pubDate>Tue, 28 Sep 2010 13:17:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.devhands.com/?p=409#comment-14505</guid>
		<description>If a set of files path is stored in another file. Now how to find the absolute path without using sed or substitution.
for eg:
Toshare.txt contains
~/Test/File1.txt
~/Best/song1.mp3
now reading this in a variable say ts and readlink -f $ts will fail.
otherwise how to check this condition
ts=&quot;~/Test/File1.txt&quot; ----&gt; readlink fails (how to make it work)
ts=~/Test/File1.txt ------&gt; readlink works</description>
		<content:encoded><![CDATA[<p>If a set of files path is stored in another file. Now how to find the absolute path without using sed or substitution.<br />
for eg:<br />
Toshare.txt contains<br />
~/Test/File1.txt<br />
~/Best/song1.mp3<br />
now reading this in a variable say ts and readlink -f $ts will fail.<br />
otherwise how to check this condition<br />
ts=&#8221;~/Test/File1.txt&#8221; &#8212;-&gt; readlink fails (how to make it work)<br />
ts=~/Test/File1.txt &#8212;&#8212;&gt; readlink works</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Frameworks suck! by Andrew</title>
		<link>http://www.devhands.com/2010/09/frameworks-suck/comment-page-1/#comment-14186</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Sun, 12 Sep 2010 17:51:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.devhands.com/?p=542#comment-14186</guid>
		<description>He-he :) This is exaclty that you wanted! :)</description>
		<content:encoded><![CDATA[<p>He-he <img src='http://www.devhands.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  This is exaclty that you wanted! <img src='http://www.devhands.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to get the full path from the running bash script by Aleksandr Tsertkov</title>
		<link>http://www.devhands.com/2010/01/how-to-get-the-full-path-from-the-running-bash-script/comment-page-1/#comment-13535</link>
		<dc:creator>Aleksandr Tsertkov</dc:creator>
		<pubDate>Tue, 17 Aug 2010 10:08:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.devhands.com/?p=409#comment-13535</guid>
		<description>Thanks for the more reliable solution!</description>
		<content:encoded><![CDATA[<p>Thanks for the more reliable solution!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to get the full path from the running bash script by kazoolist</title>
		<link>http://www.devhands.com/2010/01/how-to-get-the-full-path-from-the-running-bash-script/comment-page-1/#comment-13518</link>
		<dc:creator>kazoolist</dc:creator>
		<pubDate>Mon, 16 Aug 2010 20:13:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.devhands.com/?p=409#comment-13518</guid>
		<description>A note:

If it&#039;s possible that the script desiring it&#039;s own path is being run by being sourced (http://ss64.com/bash/period.html), rather than working off of $0 you&#039;ll want to work from ${BASH_SOURCE[0]}, so the full command would be:

echo $(dirname $(readlink -f ${BASH_SOURCE[0]}))</description>
		<content:encoded><![CDATA[<p>A note:</p>
<p>If it&#8217;s possible that the script desiring it&#8217;s own path is being run by being sourced (<a href="http://ss64.com/bash/period.html" rel="nofollow">http://ss64.com/bash/period.html</a>), rather than working off of $0 you&#8217;ll want to work from ${BASH_SOURCE[0]}, so the full command would be:</p>
<p>echo $(dirname $(readlink -f ${BASH_SOURCE[0]}))</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Subversion hook php framework by Adam</title>
		<link>http://www.devhands.com/2010/01/subversion-hook-php-framework-in/comment-page-1/#comment-10869</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Mon, 22 Mar 2010 00:48:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.devhands.com/?p=422#comment-10869</guid>
		<description>Thanks for the reply Aleksandr... I&#039;m looking forward to the updates! You&#039;re right about using php_check_syntax() and that was the way I had initially developed the test, but I quickly found out that the function was removed in php 5.0.5. The php manual says to use &quot;php -l ...&quot; instead, so the extra grunt work was needed =\

There was one other change I had to make to CommitTests.php because of our environment. &quot;svnlook&quot; is not part of the user&#039;s path... so the change adds a path to svnlook:
public static $SVNLOOK = &quot;/usr/local/subversion/bin/svnlook&quot;;

then each command would use the variable, i.e.:
$cmd = self::$SVNLOOK.&quot; log -t &#039;{$this-&gt;_transaction}&#039; &#039;{$this-&gt;_repository}&#039;&quot;;

Maybe the $SVNLOOK variable could just default to &quot;svnlook&quot; without the path, then the full path could be added only if needed...? Just an idea.

Thanks again for sharing and updating... it&#039;s much appreciated!
Adam</description>
		<content:encoded><![CDATA[<p>Thanks for the reply Aleksandr&#8230; I&#8217;m looking forward to the updates! You&#8217;re right about using php_check_syntax() and that was the way I had initially developed the test, but I quickly found out that the function was removed in php 5.0.5. The php manual says to use &#8220;php -l &#8230;&#8221; instead, so the extra grunt work was needed =\</p>
<p>There was one other change I had to make to CommitTests.php because of our environment. &#8220;svnlook&#8221; is not part of the user&#8217;s path&#8230; so the change adds a path to svnlook:<br />
public static $SVNLOOK = &#8220;/usr/local/subversion/bin/svnlook&#8221;;</p>
<p>then each command would use the variable, i.e.:<br />
$cmd = self::$SVNLOOK.&#8221; log -t &#8216;{$this-&gt;_transaction}&#8217; &#8216;{$this-&gt;_repository}&#8217;&#8221;;</p>
<p>Maybe the $SVNLOOK variable could just default to &#8220;svnlook&#8221; without the path, then the full path could be added only if needed&#8230;? Just an idea.</p>
<p>Thanks again for sharing and updating&#8230; it&#8217;s much appreciated!<br />
Adam</p>
]]></content:encoded>
	</item>
</channel>
</rss>

