<?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 The Hive Archive</title>
	<atom:link href="http://hivearchive.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://hivearchive.com</link>
	<description>Matt Michie&#039;s rants, raves, and thoughts</description>
	<lastBuildDate>Thu, 11 Feb 2010 00:36:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on I went to Canada and all I got was this lousy punch card by Phil</title>
		<link>http://hivearchive.com/2007/02/08/i-went-to-canada-and-all-i-got-was-this-lousy-punch-card/comment-page-1/#comment-46535</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Thu, 11 Feb 2010 00:36:11 +0000</pubDate>
		<guid isPermaLink="false">http://hivearchive.com/2007/02/08/i-went-to-canada-and-all-i-got-was-this-lousy-punch-card/#comment-46535</guid>
		<description>We had these keys in my college dorm in NYC. I graduated in &#039;07. Ours were purely mechanical, although the keys aren&#039;t based on an algorithm. There&#039;s a master &quot;template&quot; card that gets inserted into the lock which sets the pattern for the lock. After the lock is set, the master is destroyed (I know because I watched them change the locks when I got locked out). Only one copy of the key is made available to unlock the door for each template. If you lose it, your locks have to be changed again ($50 a pop at my school). At the end of each term, all locks were reset with new templates. Although it was super easy to make copies as spares, those spares were rendered inoperable at the end of each term.</description>
		<content:encoded><![CDATA[<p>We had these keys in my college dorm in NYC. I graduated in &#8216;07. Ours were purely mechanical, although the keys aren&#8217;t based on an algorithm. There&#8217;s a master &#8220;template&#8221; card that gets inserted into the lock which sets the pattern for the lock. After the lock is set, the master is destroyed (I know because I watched them change the locks when I got locked out). Only one copy of the key is made available to unlock the door for each template. If you lose it, your locks have to be changed again ($50 a pop at my school). At the end of each term, all locks were reset with new templates. Although it was super easy to make copies as spares, those spares were rendered inoperable at the end of each term.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Strange Colors in Video Playback by hb.smiley</title>
		<link>http://hivearchive.com/2006/06/25/strange-colors-in-video-playback/comment-page-1/#comment-46521</link>
		<dc:creator>hb.smiley</dc:creator>
		<pubDate>Wed, 10 Feb 2010 19:34:01 +0000</pubDate>
		<guid isPermaLink="false">http://hivearchive.com/2006/06/25/strange-colors-in-video-playback/#comment-46521</guid>
		<description>Thanks, mmichie and npr! Would never had known where to look without your help. Unchecking overlays worked great.</description>
		<content:encoded><![CDATA[<p>Thanks, mmichie and npr! Would never had known where to look without your help. Unchecking overlays worked great.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Python vs Perl vs Ruby vs PHP vs Java by .</title>
		<link>http://hivearchive.com/2006/07/07/python-vs-perl-vs-ruby-vs-php-vs-java/comment-page-1/#comment-45089</link>
		<dc:creator>.</dc:creator>
		<pubDate>Wed, 13 Jan 2010 10:33:00 +0000</pubDate>
		<guid isPermaLink="false">http://hivearchive.com/2006/07/07/python-vs-perl-vs-ruby-vs-php-vs-java/#comment-45089</guid>
		<description>Ruby doesn&#039;t scale.</description>
		<content:encoded><![CDATA[<p>Ruby doesn&#8217;t scale.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Bash one liner to randomize lines in file by Jadu Saikia</title>
		<link>http://hivearchive.com/2007/10/18/bash-one-liner-to-randomize-lines-in-file/comment-page-1/#comment-44961</link>
		<dc:creator>Jadu Saikia</dc:creator>
		<pubDate>Sun, 10 Jan 2010 13:33:44 +0000</pubDate>
		<guid isPermaLink="false">http://hivearchive.com/2007/10/18/bash-one-liner-to-randomize-lines-in-file/#comment-44961</guid>
		<description>&#039;Shuf&#039; and &#039;rl&#039; are good options here. Here are two small tutorial on my blog:

rl:
http://unstableme.blogspot.com/2010/01/randomize-lines-using-linux-rl-command.html

shuf:
http://unstableme.blogspot.com/2009/10/linux-shuf-command-generate-random.html</description>
		<content:encoded><![CDATA[<p>&#8216;Shuf&#8217; and &#8216;rl&#8217; are good options here. Here are two small tutorial on my blog:</p>
<p>rl:<br />
<a href="http://unstableme.blogspot.com/2010/01/randomize-lines-using-linux-rl-command.html" rel="nofollow">http://unstableme.blogspot.com/2010/01/randomize-lines-using-linux-rl-command.html</a></p>
<p>shuf:<br />
<a href="http://unstableme.blogspot.com/2009/10/linux-shuf-command-generate-random.html" rel="nofollow">http://unstableme.blogspot.com/2009/10/linux-shuf-command-generate-random.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on I went to Canada and all I got was this lousy punch card by kevin</title>
		<link>http://hivearchive.com/2007/02/08/i-went-to-canada-and-all-i-got-was-this-lousy-punch-card/comment-page-1/#comment-44926</link>
		<dc:creator>kevin</dc:creator>
		<pubDate>Sun, 10 Jan 2010 00:30:42 +0000</pubDate>
		<guid isPermaLink="false">http://hivearchive.com/2007/02/08/i-went-to-canada-and-all-i-got-was-this-lousy-punch-card/#comment-44926</guid>
		<description>in Vancouver, the flashing green means look out for pedestrians, but doesn&#039;t make any sense if you think about it.  In Toronto flashing green means left turn has the right of way.  I lived in both cities.</description>
		<content:encoded><![CDATA[<p>in Vancouver, the flashing green means look out for pedestrians, but doesn&#8217;t make any sense if you think about it.  In Toronto flashing green means left turn has the right of way.  I lived in both cities.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using PowerShell through SSH by natslovR</title>
		<link>http://hivearchive.com/2006/07/03/using-powershell-through-ssh/comment-page-1/#comment-44809</link>
		<dc:creator>natslovR</dc:creator>
		<pubDate>Thu, 07 Jan 2010 00:18:09 +0000</pubDate>
		<guid isPermaLink="false">http://hivearchive.com/2006/07/03/using-powershell-through-ssh/#comment-44809</guid>
		<description>&gt;or without interactive mode :
&gt;&gt; ssh -f administrator@my.server.com “powershell mycommand.exe”
&gt;Hope it will help some of you !!

QuikJensen, thanks, it helped a lot.</description>
		<content:encoded><![CDATA[<p>&gt;or without interactive mode :<br />
&gt;&gt; ssh -f <a href="mailto:administrator@my.server.com">administrator@my.server.com</a> “powershell mycommand.exe”<br />
&gt;Hope it will help some of you !!</p>
<p>QuikJensen, thanks, it helped a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Upgraded to Wordpress 2.9 by Samat</title>
		<link>http://hivearchive.com/2009/12/19/upgraded-to-wordpress-2-9/comment-page-1/#comment-44138</link>
		<dc:creator>Samat</dc:creator>
		<pubDate>Mon, 21 Dec 2009 06:23:31 +0000</pubDate>
		<guid isPermaLink="false">http://hivearchive.com/2009/12/19/upgraded-to-wordpress-2-9/#comment-44138</guid>
		<description>Ditto here for Drupal... even though much more superiorly designed, the problem is, of course, PHP.</description>
		<content:encoded><![CDATA[<p>Ditto here for Drupal&#8230; even though much more superiorly designed, the problem is, of course, PHP.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using PowerShell through SSH by Samuel</title>
		<link>http://hivearchive.com/2006/07/03/using-powershell-through-ssh/comment-page-1/#comment-43714</link>
		<dc:creator>Samuel</dc:creator>
		<pubDate>Sun, 13 Dec 2009 21:06:24 +0000</pubDate>
		<guid isPermaLink="false">http://hivearchive.com/2006/07/03/using-powershell-through-ssh/#comment-43714</guid>
		<description>I need some help,

I have setup my ssh-to-powershell environment on Windows, with my powershell .profile and registered my snapins.

I want to run PowerShell scripts from an SSH / PLINK remote session against a Windows Server hosting the SSH Server.

I have setup the following variable in my Powershell profile; eg. $domain = [ADSI] &quot;LDAP://domain_name:389/dc=local,dc=com&quot;
 

When I run this command on a SSH remote session; $domain.psbase.Get_children()
This is the result...

The following exception was thrown when trying to enumerate the collection: &quot;An
 operations error occurred.&quot;.
At C:\posh\getADRC.ps1:7 char:28
+ $domain.psbase.Get_children &lt;&lt;&lt;&lt; ()
    + CategoryInfo          : NotSpecified: (:) [], ExtendedTypeSystemException
    + FullyQualifiedErrorId : ExceptionInGetEnumerator





I have also placed the two commands in a .PS1 file and executed it via PLINK; eg. PLINK.EXE my_session_name C:\Scripts\getADRC.PS1
This is the result...

The following exception was thrown when trying to enumerate the collection: &quot;An
 operations error occurred.&quot;.
At C:\Scripts\getADRC.PS1:7 char:28
+ $domain.psbase.Get_children &lt;&lt;&lt;&lt; ()
    + CategoryInfo          : NotSpecified: (:) [], ExtendedTypeSystemException
    + FullyQualifiedErrorId : ExceptionInGetEnumerator



I would appreciate any help that I can get.


Also would appreciate it - if you could share any example scripts that you have written to run from a unix SSH session on to a Windows POSH session.


Thanks.</description>
		<content:encoded><![CDATA[<p>I need some help,</p>
<p>I have setup my ssh-to-powershell environment on Windows, with my powershell .profile and registered my snapins.</p>
<p>I want to run PowerShell scripts from an SSH / PLINK remote session against a Windows Server hosting the SSH Server.</p>
<p>I have setup the following variable in my Powershell profile; eg. $domain = [ADSI] &#8220;LDAP://domain_name:389/dc=local,dc=com&#8221;</p>
<p>When I run this command on a SSH remote session; $domain.psbase.Get_children()<br />
This is the result&#8230;</p>
<p>The following exception was thrown when trying to enumerate the collection: &#8220;An<br />
 operations error occurred.&#8221;.<br />
At C:\posh\getADRC.ps1:7 char:28<br />
+ $domain.psbase.Get_children &lt;&lt;&lt;&lt; ()<br />
    + CategoryInfo          : NotSpecified: (:) [], ExtendedTypeSystemException<br />
    + FullyQualifiedErrorId : ExceptionInGetEnumerator</p>
<p>I have also placed the two commands in a .PS1 file and executed it via PLINK; eg. PLINK.EXE my_session_name C:\Scripts\getADRC.PS1<br />
This is the result&#8230;</p>
<p>The following exception was thrown when trying to enumerate the collection: &quot;An<br />
 operations error occurred.&quot;.<br />
At C:\Scripts\getADRC.PS1:7 char:28<br />
+ $domain.psbase.Get_children &lt;&lt;&lt;&lt; ()<br />
    + CategoryInfo          : NotSpecified: (:) [], ExtendedTypeSystemException<br />
    + FullyQualifiedErrorId : ExceptionInGetEnumerator</p>
<p>I would appreciate any help that I can get.</p>
<p>Also would appreciate it &#8211; if you could share any example scripts that you have written to run from a unix SSH session on to a Windows POSH session.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Bash one liner to randomize lines in file by Moses</title>
		<link>http://hivearchive.com/2007/10/18/bash-one-liner-to-randomize-lines-in-file/comment-page-1/#comment-42492</link>
		<dc:creator>Moses</dc:creator>
		<pubDate>Tue, 10 Nov 2009 17:16:48 +0000</pubDate>
		<guid isPermaLink="false">http://hivearchive.com/2007/10/18/bash-one-liner-to-randomize-lines-in-file/#comment-42492</guid>
		<description>&quot;why don&#039;t you use shuf?  Why not use sort -R?&quot;
If I had shuf, or if my local /bin/sort supported -R, I would use it.  But I don&#039;t, which is why I&#039;m using something fork-y in bash.

&quot;why don&#039;t you just get shuf?&quot;
Because I don&#039;t have root and/or gcc on every machine I touch.

HOWEVER, with what was mentioned above, I can make shuf:

echo -e &#039;#!/bin/bash&#039;&quot;\n&quot;&#039;while read -r LINE; do echo &quot;$RANDOM $LINE&quot;; done &#124;sort &#124;sed -r &#039;&quot;&#039;s/^[0-9]+ //&#039;&quot; &gt; ~/bin/shuf
chmod 0755 ~/bin/shuf

Now I can put  &#124;shuf  into my chains of pipes.</description>
		<content:encoded><![CDATA[<p>&#8220;why don&#8217;t you use shuf?  Why not use sort -R?&#8221;<br />
If I had shuf, or if my local /bin/sort supported -R, I would use it.  But I don&#8217;t, which is why I&#8217;m using something fork-y in bash.</p>
<p>&#8220;why don&#8217;t you just get shuf?&#8221;<br />
Because I don&#8217;t have root and/or gcc on every machine I touch.</p>
<p>HOWEVER, with what was mentioned above, I can make shuf:</p>
<p>echo -e &#8216;#!/bin/bash&#8217;&#8221;\n&#8221;&#8216;while read -r LINE; do echo &#8220;$RANDOM $LINE&#8221;; done |sort |sed -r &#8216;&#8221;&#8217;s/^[0-9]+ //&#8217;&#8221; &gt; ~/bin/shuf<br />
chmod 0755 ~/bin/shuf</p>
<p>Now I can put  |shuf  into my chains of pipes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Color ls on OpenBSD by jake</title>
		<link>http://hivearchive.com/2006/05/26/color-ls-on-openbsd/comment-page-1/#comment-41582</link>
		<dc:creator>jake</dc:creator>
		<pubDate>Wed, 21 Oct 2009 22:13:22 +0000</pubDate>
		<guid isPermaLink="false">http://hivearchive.com/2006/05/26/color-ls-on-openbsd/#comment-41582</guid>
		<description>Smee again, colorls seems better. The fileutils one needs quite a few dependencies to be installed.</description>
		<content:encoded><![CDATA[<p>Smee again, colorls seems better. The fileutils one needs quite a few dependencies to be installed.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
