<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">
<channel>
	<title>Comments for PowerShell Station</title>
	
	<link>http://powershellstation.com</link>
	<description>Mike's PowerShell Musings</description>
	<lastBuildDate>Wed, 11 Aug 2010 23:54:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/CommentsForPowershellStation" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="commentsforpowershellstation" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Comment on PowerShell and MongoDB by Doug</title>
		<link>http://powershellstation.com/2010/08/10/powershell-and-mongodb/comment-page-1/#comment-311</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Wed, 11 Aug 2010 23:54:29 +0000</pubDate>
		<guid isPermaLink="false">http://powershellstation.com/?p=293#comment-311</guid>
		<description>Thanks for posting it Mike. I may have a small MongoDB project and this will shortcut my work.

You've made us collectively smarter.

One of the ideas I like about using MongoDB/RavenDB is I can get going quickly without defining schemas up front.

Thanks again for the post.

Doug</description>
		<content:encoded><![CDATA[<p>Thanks for posting it Mike. I may have a small MongoDB project and this will shortcut my work.</p>
<p>You&#8217;ve made us collectively smarter.</p>
<p>One of the ideas I like about using MongoDB/RavenDB is I can get going quickly without defining schemas up front.</p>
<p>Thanks again for the post.</p>
<p>Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Identity Function by mike</title>
		<link>http://powershellstation.com/2010/08/01/the-identity-function/comment-page-1/#comment-279</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Mon, 02 Aug 2010 14:30:22 +0000</pubDate>
		<guid isPermaLink="false">http://powershellstation.com/?p=284#comment-279</guid>
		<description>When I first tried to recreate this (I dimly remembered seeing it somewhere, and I really wanted to avoid quoting all the items in a large list), I tried something like your suggestion.

Unfortunately, by specifying an argument ($x), you've lost all of the magic.  This will bind $x to the first item in the list, and the rest get bound to $args.  If you pass "a b c" as to your scriptblock, you only get "a" back.  The usefulness in this comes from getting the list of arguments back as an array.

Thanks for the comment.</description>
		<content:encoded><![CDATA[<p>When I first tried to recreate this (I dimly remembered seeing it somewhere, and I really wanted to avoid quoting all the items in a large list), I tried something like your suggestion.</p>
<p>Unfortunately, by specifying an argument ($x), you&#8217;ve lost all of the magic.  This will bind $x to the first item in the list, and the rest get bound to $args.  If you pass &#8220;a b c&#8221; as to your scriptblock, you only get &#8220;a&#8221; back.  The usefulness in this comes from getting the list of arguments back as an array.</p>
<p>Thanks for the comment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Identity Function by Doug</title>
		<link>http://powershellstation.com/2010/08/01/the-identity-function/comment-page-1/#comment-278</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Mon, 02 Aug 2010 12:44:43 +0000</pubDate>
		<guid isPermaLink="false">http://powershellstation.com/?p=284#comment-278</guid>
		<description>That is cool. Didn't know that was the identity function. I came across this from Bruce Payette and Jeffrery Snover and use it like this all the time:

function ql {$args}

$list = ql tom dick harry

Also, isn't this also the identity function in PowerShell?

{param($x) $x}

Then you can apply the identity function to the identity function:

&amp; {param($x) $x} {param($x) $x}

Good stuff</description>
		<content:encoded><![CDATA[<p>That is cool. Didn&#8217;t know that was the identity function. I came across this from Bruce Payette and Jeffrery Snover and use it like this all the time:</p>
<p>function ql {$args}</p>
<p>$list = ql tom dick harry</p>
<p>Also, isn&#8217;t this also the identity function in PowerShell?</p>
<p>{param($x) $x}</p>
<p>Then you can apply the identity function to the identity function:</p>
<p>&#038; {param($x) $x} {param($x) $x}</p>
<p>Good stuff</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Executing SQL the Right Way in PowerShell by SQLPSX Developer Blog | Sev17</title>
		<link>http://powershellstation.com/2009/09/15/executing-sql-the-right-way-in-powershell/comment-page-1/#comment-159</link>
		<dc:creator>SQLPSX Developer Blog | Sev17</dc:creator>
		<pubDate>Sun, 21 Mar 2010 15:54:04 +0000</pubDate>
		<guid isPermaLink="false">http://powershellstation.com/?p=74#comment-159</guid>
		<description>[...]  [...]</description>
		<content:encoded><![CDATA[<p>[...]  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The PowerShell Bug That Wasn’t, and More Package Management by Fred</title>
		<link>http://powershellstation.com/2010/01/20/the-powershell-bug-that-wasnt-and-more-package-management/comment-page-1/#comment-119</link>
		<dc:creator>Fred</dc:creator>
		<pubDate>Thu, 28 Jan 2010 19:30:39 +0000</pubDate>
		<guid isPermaLink="false">http://powershellstation.com/?p=255#comment-119</guid>
		<description>What you get is an error from your sample code, because you can't dot-source a function in bash (I just tried it), but only a file.

I can't think of a cognate way to test this in bash; it has been a very long time since I did any bash scripting.</description>
		<content:encoded><![CDATA[<p>What you get is an error from your sample code, because you can&#8217;t dot-source a function in bash (I just tried it), but only a file.</p>
<p>I can&#8217;t think of a cognate way to test this in bash; it has been a very long time since I did any bash scripting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The PowerShell Bug That Wasn’t, and More Package Management by mike</title>
		<link>http://powershellstation.com/2010/01/20/the-powershell-bug-that-wasnt-and-more-package-management/comment-page-1/#comment-112</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Tue, 26 Jan 2010 23:57:35 +0000</pubDate>
		<guid isPermaLink="false">http://powershellstation.com/?p=255#comment-112</guid>
		<description>I hadn't thought about other shells...I don't really know much about bash (other than "learn bash in 24 minutes" kind of stuff).   I wonder if it has the kind of scoping that PowerShell does and how that plays out with its version of dot-sourcing.</description>
		<content:encoded><![CDATA[<p>I hadn&#8217;t thought about other shells&#8230;I don&#8217;t really know much about bash (other than &#8220;learn bash in 24 minutes&#8221; kind of stuff).   I wonder if it has the kind of scoping that PowerShell does and how that plays out with its version of dot-sourcing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The PowerShell Bug That Wasn’t, and More Package Management by Fred</title>
		<link>http://powershellstation.com/2010/01/20/the-powershell-bug-that-wasnt-and-more-package-management/comment-page-1/#comment-111</link>
		<dc:creator>Fred</dc:creator>
		<pubDate>Tue, 26 Jan 2010 23:52:08 +0000</pubDate>
		<guid isPermaLink="false">http://powershellstation.com/?p=255#comment-111</guid>
		<description>I'm not sure if the behavior is the same in them, but bash (and probably other unix scripting languages) use dot sourcing. :-)</description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure if the behavior is the same in them, but bash (and probably other unix scripting languages) use dot sourcing. <img src='http://powershellstation.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Executing SQL the Right Way in PowerShell by SQL PowerShell Extensions (SQLPSX) 2.0 Released « PowerShell Station</title>
		<link>http://powershellstation.com/2009/09/15/executing-sql-the-right-way-in-powershell/comment-page-1/#comment-78</link>
		<dc:creator>SQL PowerShell Extensions (SQLPSX) 2.0 Released « PowerShell Station</dc:creator>
		<pubDate>Wed, 06 Jan 2010 00:39:22 +0000</pubDate>
		<guid isPermaLink="false">http://powershellstation.com/?p=74#comment-78</guid>
		<description>[...]  [...]</description>
		<content:encoded><![CDATA[<p>[...]  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Writing your own PowerShell Hosting App (Part 3) by Writing your own PowerShell Hosting App (part 5) « PowerShell Station</title>
		<link>http://powershellstation.com/2009/10/27/writing-your-own-powershell-hosting-app-part-3/comment-page-1/#comment-44</link>
		<dc:creator>Writing your own PowerShell Hosting App (part 5) « PowerShell Station</dc:creator>
		<pubDate>Wed, 18 Nov 2009 01:30:41 +0000</pubDate>
		<guid isPermaLink="false">http://powershellstation.com/?p=127#comment-44</guid>
		<description>[...]  [...]</description>
		<content:encoded><![CDATA[<p>[...]  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Writing your own PowerShell Hosting App (Part 1. Introduction) by Episode 91 – Oisin Grehan on Pmodem and Modules « PowerScripting Podcast</title>
		<link>http://powershellstation.com/2009/10/12/writing-your-own-powershell-hosting-app-part-1-introduction/comment-page-1/#comment-23</link>
		<dc:creator>Episode 91 – Oisin Grehan on Pmodem and Modules « PowerScripting Podcast</dc:creator>
		<pubDate>Mon, 09 Nov 2009 02:28:36 +0000</pubDate>
		<guid isPermaLink="false">http://powershellstation.com/?p=111#comment-23</guid>
		<description>[...]  [...]</description>
		<content:encoded><![CDATA[<p>[...]  [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
