<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>The Technical Adventures of Adam Weigert - All Comments</title><link>http://weblogs.asp.net/adweigert/default.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Debug Build: 20510.895)</generator><item><title>re: PowerShell: Threading Enhancements FTW!</title><link>http://weblogs.asp.net/adweigert/archive/2008/04/30/powershell-threading-enhancements-ftw.aspx#6210354</link><pubDate>Thu, 22 May 2008 14:42:47 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6210354</guid><dc:creator>SQLDBA</dc:creator><description>&lt;p&gt;Great Article! I am trying to use it. &lt;/p&gt;
&lt;p&gt;Inside a [ScriptBlock]:&lt;/p&gt;
&lt;p&gt;1. How can I call the cmdlets (e.g Add-Item) without getting &amp;quot;Cannot invoke this function because the current host does not impl&lt;/p&gt;
&lt;p&gt;ement it.&amp;quot; error?&lt;/p&gt;
&lt;p&gt;2. Can I load in assembly (like Microsoft.SqlServer.Smo) and use the objects in that assembly?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6210354" width="1" height="1"&gt;</description></item><item><title>re: PowerShell: Threading Enhancements FTW!</title><link>http://weblogs.asp.net/adweigert/archive/2008/04/30/powershell-threading-enhancements-ftw.aspx#6208608</link><pubDate>Wed, 21 May 2008 20:40:28 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6208608</guid><dc:creator>adweigert</dc:creator><description>&lt;p&gt;You need to use the Invoke-ThreadExpression function to put the function in the new thread (runspace).&lt;/p&gt;
&lt;p&gt;Invoke-ThreadExpression $thread { function foo($bar) { echo &amp;quot;$bar!&amp;quot; } }&lt;/p&gt;
&lt;p&gt;Set-ThreadVariable $thread &amp;quot;name&amp;quot; &amp;quot;PowerShell Rocks&amp;quot;Start-Thread -thread $thread { $value = foo $name } | Out-Null&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6208608" width="1" height="1"&gt;</description></item><item><title>re: PowerShell: Threading Enhancements FTW!</title><link>http://weblogs.asp.net/adweigert/archive/2008/04/30/powershell-threading-enhancements-ftw.aspx#6208555</link><pubDate>Wed, 21 May 2008 20:18:11 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6208555</guid><dc:creator>Scripter</dc:creator><description>&lt;p&gt;How can I run a function asyncly? The code&lt;/p&gt;
&lt;p&gt;$thread = Start-Thread {&lt;/p&gt;
&lt;p&gt; &amp;nbsp;&amp;amp; Myfunction 5&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;doesn't work. Help!&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6208555" width="1" height="1"&gt;</description></item><item><title>re: PowerShell: Threading Enhancements FTW!</title><link>http://weblogs.asp.net/adweigert/archive/2008/04/30/powershell-threading-enhancements-ftw.aspx#6174149</link><pubDate>Fri, 09 May 2008 17:55:20 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6174149</guid><dc:creator>gregwellslex</dc:creator><description>&lt;p&gt;Hi, I just joined &lt;a rel="nofollow" target="_new" href="http://www.touristtravelinfo.info/ukraine-travel-kiev-to-lviv/"&gt;www.touristtravelinfo.info/ukraine-travel-kiev-to-lviv&lt;/a&gt; &amp;nbsp;- &lt;a rel="nofollow" target="_new" href="http://images.372morf.com/i.gifthe"&gt;images.372morf.com/i.gifthe&lt;/a&gt; board. I came here before but decided to join today.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6174149" width="1" height="1"&gt;</description></item><item><title>re: PowerShell: Threading for PowerShell v1.0</title><link>http://weblogs.asp.net/adweigert/archive/2008/04/29/powershell-threading-for-powershell-v1-0.aspx#6162142</link><pubDate>Tue, 06 May 2008 11:58:34 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6162142</guid><dc:creator>adweigert</dc:creator><description>&lt;p&gt;Yes, and I can't wait for RTM! Unfortunately, I needed threading now and couldn't use a CTP in production. :)&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6162142" width="1" height="1"&gt;</description></item><item><title>re: PowerShell: Threading for PowerShell v1.0</title><link>http://weblogs.asp.net/adweigert/archive/2008/04/29/powershell-threading-for-powershell-v1-0.aspx#6160806</link><pubDate>Mon, 05 May 2008 23:55:35 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6160806</guid><dc:creator>Keith Hill</dc:creator><description>&lt;p&gt;Have you had a look at the new *-PSJob and *-Runspace cmdlets in the V2.0 CTP2 drop? &amp;nbsp;&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6160806" width="1" height="1"&gt;</description></item><item><title>PowerShell: Threading Enhancements FTW!</title><link>http://weblogs.asp.net/adweigert/archive/2008/04/29/powershell-threading-for-powershell-v1-0.aspx#6144661</link><pubDate>Wed, 30 Apr 2008 13:25:12 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6144661</guid><dc:creator>The Technical Adventures of Adam Weigert</dc:creator><description>&lt;p&gt;To build on the threading library I mentioned here , I've added some functionality to make it easier&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6144661" width="1" height="1"&gt;</description></item><item><title>Try/Catch/Finally в PowerShell</title><link>http://weblogs.asp.net/adweigert/archive/2007/10/10/powershell-try-catch-finally-comes-to-life.aspx#6123205</link><pubDate>Wed, 23 Apr 2008 05:22:08 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6123205</guid><dc:creator>PowerShell и другие скрипты</dc:creator><description>&lt;p&gt;PowerShell очень классный язык, но тем не менее очень молодой. И по этой причине в нём зачастую нет того чего хочется. Пока нет. Но так как он всё же очень классный - то чего нет можно дописать Вот к примеру если кому то не хватает привычной конструкции&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6123205" width="1" height="1"&gt;</description></item><item><title>Try/Catch/Finally ?? PowerShell &amp;laquo; PowerShell ?? ???????????? ??????????????</title><link>http://weblogs.asp.net/adweigert/archive/2007/10/10/powershell-try-catch-finally-comes-to-life.aspx#6123189</link><pubDate>Wed, 23 Apr 2008 05:19:38 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6123189</guid><dc:creator>Try/Catch/Finally ?? PowerShell « PowerShell ?? ???????????? ??????????????</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Try/Catch/Finally ?? PowerShell &amp;amp;laquo; PowerShell ?? ???????????? ??????????????&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6123189" width="1" height="1"&gt;</description></item><item><title>re: C#: My First Lambda Expression</title><link>http://weblogs.asp.net/adweigert/archive/2007/12/16/c-my-first-lamba-expression.aspx#5464558</link><pubDate>Mon, 17 Dec 2007 11:42:48 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5464558</guid><dc:creator>adweigert</dc:creator><description>&lt;p&gt;You picked up on my, I'm not sure about this feeling, like all new things, gotta try it out, and yes, you could argue a simple one-line IF statement is easier to read. So, one thing I discovered was I moved the IsNullOrEmpty statement to an extension method so it became the above, Validator.ThrowIf(name.IsNullOrEmpty(), () =&amp;gt; new ArgumentNullException(&amp;quot;name&amp;quot;));&lt;/p&gt;
&lt;p&gt;My biggest irk would be the one-line IF, I by standard always have something like that wrapped in squigglies and at minimum on four lines.&lt;/p&gt;
&lt;p&gt;The idea was to have something like a WriteIf method but not allocating the object unless it was needed.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5464558" width="1" height="1"&gt;</description></item></channel></rss>