<?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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
<channel>
	<title>Comments for Tech Space</title>
	
	<link>http://tech0x20.com</link>
	<description>Experiencing Tech as a Professional Techie</description>
	<lastBuildDate>Fri, 29 Jul 2011 07:35:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/CommentsForTechSpace" /><feedburner:info uri="commentsfortechspace" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:browserFriendly></feedburner:browserFriendly><item>
		<title>Comment on How to Leave a Linked In Group by Website Designer Riyadh</title>
		<link>http://feedproxy.google.com/~r/CommentsForTechSpace/~3/RoXv3PyMyA0/</link>
		<dc:creator>Website Designer Riyadh</dc:creator>
		<pubDate>Fri, 29 Jul 2011 07:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://tech0x20.com/?p=760#comment-380</guid>
		<description>Very informative post.. You have mentioned very useful and profitable message for us..
&lt;a href="http://www.adodis.com/Website-Design-Riyadh.php" rel="nofollow"&gt;Web Designer Riyadh&lt;/a&gt; | &lt;a href="http://www.adodis.com/Website-Design-Riyadh.php" rel="nofollow"&gt;Riyadh website design company&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Very informative post.. You have mentioned very useful and profitable message for us..<br />
<a href="http://www.adodis.com/Website-Design-Riyadh.php" rel="nofollow">Web Designer Riyadh</a> | <a href="http://www.adodis.com/Website-Design-Riyadh.php" rel="nofollow">Riyadh website design company</a></p>
<img src="http://feeds.feedburner.com/~r/CommentsForTechSpace/~4/RoXv3PyMyA0" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://tech0x20.com/2011/03/17/how-to-leave-a-linked-in-group/comment-page-1/#comment-380</feedburner:origLink></item>
	<item>
		<title>Comment on Searching for a String in Environmental Variables in Powershell by Website Designer Riyadh</title>
		<link>http://feedproxy.google.com/~r/CommentsForTechSpace/~3/zJ6ZtebKM6k/</link>
		<dc:creator>Website Designer Riyadh</dc:creator>
		<pubDate>Thu, 28 Jul 2011 10:44:00 +0000</pubDate>
		<guid isPermaLink="false">http://tech0x20.com/?p=813#comment-379</guid>
		<description>This article gives the light in which we can observe the reality. this is very nice one and gives indepth information about this topic. thanks for this nice article sharing with us..
&lt;a href="http://www.adodis.com/Website-Design-Riyadh.php" rel="nofollow"&gt;Web Designer Riyadh&lt;/a&gt; | &lt;a href="http://www.adodis.com/Website-Design-Riyadh.php" rel="nofollow"&gt;Riyadh website design company&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>This article gives the light in which we can observe the reality. this is very nice one and gives indepth information about this topic. thanks for this nice article sharing with us..<br />
<a href="http://www.adodis.com/Website-Design-Riyadh.php" rel="nofollow">Web Designer Riyadh</a> | <a href="http://www.adodis.com/Website-Design-Riyadh.php" rel="nofollow">Riyadh website design company</a></p>
<img src="http://feeds.feedburner.com/~r/CommentsForTechSpace/~4/zJ6ZtebKM6k" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://tech0x20.com/2011/06/28/searching-for-a-string-in-environmental-variables-in-powershell/comment-page-1/#comment-379</feedburner:origLink></item>
	<item>
		<title>Comment on Searching for a String in Environmental Variables in Powershell by Bartek Bielawski</title>
		<link>http://feedproxy.google.com/~r/CommentsForTechSpace/~3/dkNHEVsVj18/</link>
		<dc:creator>Bartek Bielawski</dc:creator>
		<pubDate>Wed, 29 Jun 2011 04:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://tech0x20.com/?p=813#comment-378</guid>
		<description>To avoid disappointmens in future:
 
1. Select-String is not grep. ;) means: do not filter objects using it as you would filter command results in *nix shells.
2. Contains is for array operations, not for searching the string.
1,2,3,4 -contains 3
3. Regex compare for strings is done with -match operator.
That reduces all hard work to:
gv | ? { $_.Value -match 'Users' }
4. Simple pattern ('*', '?' and '[]') compare is done with -like operator.
gv | ? { $_.Value -like '*[u-v]se?s*' }
 
BTW: get-help where-object -examples would probably get you there before I wrote my comment. Help i PS is really greate resources on how to use it... :) To see all articles about operators you can do get-help operators. about_operators contains basic info that could also save you few dissapointments. :)
Good luck!</description>
		<content:encoded><![CDATA[<p>To avoid disappointmens in future:<br />
 <br />
1. Select-String is not grep. <img src='http://tech0x20.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  means: do not filter objects using it as you would filter command results in *nix shells.<br />
2. Contains is for array operations, not for searching the string.<br />
1,2,3,4 -contains 3<br />
3. Regex compare for strings is done with -match operator.<br />
That reduces all hard work to:<br />
gv | ? { $_.Value -match &#8216;Users&#8217; }<br />
4. Simple pattern (&#8216;*&#8217;, &#8216;?&#8217; and &#8216;[]&#8216;) compare is done with -like operator.<br />
gv | ? { $_.Value -like &#8216;*[u-v]se?s*&#8217; }<br />
 <br />
BTW: get-help where-object -examples would probably get you there before I wrote my comment. Help i PS is really greate resources on how to use it&#8230; <img src='http://tech0x20.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  To see all articles about operators you can do get-help operators. about_operators contains basic info that could also save you few dissapointments. <img src='http://tech0x20.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> <br />
Good luck!</p>
<img src="http://feeds.feedburner.com/~r/CommentsForTechSpace/~4/dkNHEVsVj18" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://tech0x20.com/2011/06/28/searching-for-a-string-in-environmental-variables-in-powershell/comment-page-1/#comment-378</feedburner:origLink></item>
	<item>
		<title>Comment on Searching for a String in Environmental Variables in Powershell by Jim Burger</title>
		<link>http://feedproxy.google.com/~r/CommentsForTechSpace/~3/3XHSIdTwF0I/</link>
		<dc:creator>Jim Burger</dc:creator>
		<pubDate>Wed, 29 Jun 2011 02:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://tech0x20.com/?p=813#comment-377</guid>
		<description>The thing here is that you have to remember that powershell is more of a programming language than a scripting lanugage. I.E Get-* will output typed objects, not string values. The upshot is that we can actually do some really complicated filtering... there is more to these objects than just their string data that you see output on the screen. 
For instance... type:

Get-Member -InputObject gv[0] 

..this will show all the members on the object type that gv outputs

Note that the Value property is System.Object not System.String ... this is why select-string doesn't work.

So...the 'downside' to powershell is you need to think like a .NET programmer.

To answer you're q, to do what you want without hitting the filesystem, you need to drill into the string representation of the Value property. I did it using powershells where clause. (there are probably better ways - Im no PS guru). In long form.

Get-Variable | Where-Object { $_.Value -ne $null } | Where-Object { $_.Value.ToString().Contains("Users") }

Short form

gv | ? { $_.Value -ne $null } | ? {$_.Value.ToString().Contains("Users") }

Now I consider myself a PS newbie - so there is probably a less verbose, neater way to do this. But htis is it from first principles AFAIK.

Hope that Helps

Jim Burger


</description>
		<content:encoded><![CDATA[<p>The thing here is that you have to remember that powershell is more of a programming language than a scripting lanugage. I.E Get-* will output typed objects, not string values. The upshot is that we can actually do some really complicated filtering&#8230; there is more to these objects than just their string data that you see output on the screen. <br />
For instance&#8230; type:</p>
<p>Get-Member -InputObject gv[0] </p>
<p>..this will show all the members on the object type that gv outputs</p>
<p>Note that the Value property is System.Object not System.String &#8230; this is why select-string doesn&#8217;t work.</p>
<p>So&#8230;the &#8216;downside&#8217; to powershell is you need to think like a .NET programmer.</p>
<p>To answer you&#8217;re q, to do what you want without hitting the filesystem, you need to drill into the string representation of the Value property. I did it using powershells where clause. (there are probably better ways &#8211; Im no PS guru). In long form.</p>
<p>Get-Variable | Where-Object { $_.Value -ne $null } | Where-Object { $_.Value.ToString().Contains(&#8220;Users&#8221;) }</p>
<p>Short form</p>
<p>gv | ? { $_.Value -ne $null } | ? {$_.Value.ToString().Contains(&#8220;Users&#8221;) }</p>
<p>Now I consider myself a PS newbie &#8211; so there is probably a less verbose, neater way to do this. But htis is it from first principles AFAIK.</p>
<p>Hope that Helps</p>
<p>Jim Burger</p>
<img src="http://feeds.feedburner.com/~r/CommentsForTechSpace/~4/3XHSIdTwF0I" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://tech0x20.com/2011/06/28/searching-for-a-string-in-environmental-variables-in-powershell/comment-page-1/#comment-377</feedburner:origLink></item>
	<item>
		<title>Comment on How to Leave a Linked In Group by Filtersweep</title>
		<link>http://feedproxy.google.com/~r/CommentsForTechSpace/~3/sVvHbikdBvw/</link>
		<dc:creator>Filtersweep</dc:creator>
		<pubDate>Fri, 10 Jun 2011 13:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://tech0x20.com/?p=760#comment-376</guid>
		<description>It works, but is about as byzantine as possible.  They even have the leave group button "greyed out" to discourage me from clicking on it.</description>
		<content:encoded><![CDATA[<p>It works, but is about as byzantine as possible.  They even have the leave group button &#8220;greyed out&#8221; to discourage me from clicking on it.</p>
<img src="http://feeds.feedburner.com/~r/CommentsForTechSpace/~4/sVvHbikdBvw" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://tech0x20.com/2011/03/17/how-to-leave-a-linked-in-group/comment-page-1/#comment-376</feedburner:origLink></item>
	<item>
		<title>Comment on Boxing of an Integer and conservation of space in Java by JP@ classpath in Java</title>
		<link>http://feedproxy.google.com/~r/CommentsForTechSpace/~3/WEK28rQz4fo/</link>
		<dc:creator>JP@ classpath in Java</dc:creator>
		<pubDate>Mon, 06 Jun 2011 06:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://tech0x20.com/?p=651#comment-375</guid>
		<description>beware of auto boxing gotcha in Java 5 .

 &lt;a href="http://javarevisited.blogspot.com/2011/02/how-hashmap-works-in-java.html" rel="nofollow"&gt;How HashMap in Java gets values &lt;/a&gt;
</description>
		<content:encoded><![CDATA[<p>beware of auto boxing gotcha in Java 5 .</p>
<p> <a href="http://javarevisited.blogspot.com/2011/02/how-hashmap-works-in-java.html" rel="nofollow">How HashMap in Java gets values </a></p>
<img src="http://feeds.feedburner.com/~r/CommentsForTechSpace/~4/WEK28rQz4fo" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://tech0x20.com/2010/06/09/boxing-of-an-integer-and-conservation-of-space-in-java/comment-page-1/#comment-375</feedburner:origLink></item>
	<item>
		<title>Comment on Java code to test if a string is a valid java identifier. by JP@ classpath in Java</title>
		<link>http://feedproxy.google.com/~r/CommentsForTechSpace/~3/iqkadJXmG0A/</link>
		<dc:creator>JP@ classpath in Java</dc:creator>
		<pubDate>Mon, 06 Jun 2011 06:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://tech0x20.com/?p=727#comment-374</guid>
		<description>great post, here is good link about  &lt;a href="http://javarevisited.blogspot.com/2010/10/why-string-is-immutable-in-java.html" rel="nofollow"&gt;Why String is immutable in Java &lt;/a&gt; , you might find it interesting.
</description>
		<content:encoded><![CDATA[<p>great post, here is good link about  <a href="http://javarevisited.blogspot.com/2010/10/why-string-is-immutable-in-java.html" rel="nofollow">Why String is immutable in Java </a> , you might find it interesting.</p>
<img src="http://feeds.feedburner.com/~r/CommentsForTechSpace/~4/iqkadJXmG0A" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://tech0x20.com/2010/11/11/java-code-to-test-if-a-string-is-a-valid-java-identifier/comment-page-1/#comment-374</feedburner:origLink></item>
	<item>
		<title>Comment on Linking a static library to Java using JNI by JP@ classpath in Java</title>
		<link>http://feedproxy.google.com/~r/CommentsForTechSpace/~3/MSRUT1cmm_w/</link>
		<dc:creator>JP@ classpath in Java</dc:creator>
		<pubDate>Mon, 06 Jun 2011 06:20:00 +0000</pubDate>
		<guid isPermaLink="false" />
		<description>Thanks for sharing information.

Javin
 &lt;a href="http://javarevisited.blogspot.com/2010/10/difference-between-hashmap-and.html" rel="nofollow"&gt;Hashtable vs HashMap in java &lt;/a&gt;
 </description>
		<content:encoded><![CDATA[<p>Thanks for sharing information.</p>
<p>Javin<br />
 <a href="http://javarevisited.blogspot.com/2010/10/difference-between-hashmap-and.html" rel="nofollow">Hashtable vs HashMap in java </a><br />
 </p>
<img src="http://feeds.feedburner.com/~r/CommentsForTechSpace/~4/MSRUT1cmm_w" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://tech0x20.com/2007/02/09/linking-a-static-library-to-java-using-jni/comment-page-1/#comment-373</feedburner:origLink></item>
	<item>
		<title>Comment on Importing an ftp blogger blog into WordPress 2.7 by Stephen Tucker</title>
		<link>http://feedproxy.google.com/~r/CommentsForTechSpace/~3/5bezBcygocs/</link>
		<dc:creator>Stephen Tucker</dc:creator>
		<pubDate>Wed, 03 Feb 2010 03:11:11 +0000</pubDate>
		<guid isPermaLink="false">http://tech0x20.com/2009/01/10/importing-an-ftp-blogger-blog-into-wordpress-27/#comment-319</guid>
		<description>Great idea.  Now that Blogger is deprecating ftp, I'm in the process of switching my stuff over to Wordpress.
.-= Stephen Tucker´s last blog ..&lt;a href="http://allegrodigital.com/?p=123" rel="nofollow"&gt;Eviction Notice&lt;/a&gt; =-.</description>
		<content:encoded><![CDATA[<p>Great idea.  Now that Blogger is deprecating ftp, I&#8217;m in the process of switching my stuff over to WordPress.<br />
.-= Stephen Tucker&#180;s last blog ..<a href="http://allegrodigital.com/?p=123" rel="nofollow">Eviction Notice</a> =-.</p>
<img src="http://feeds.feedburner.com/~r/CommentsForTechSpace/~4/5bezBcygocs" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://tech0x20.com/2009/01/10/importing-an-ftp-blogger-blog-into-wordpress-27/comment-page-1/#comment-319</feedburner:origLink></item>
	<item>
		<title>Comment on The democratization of the news #cnnfail #IranElection by Josh</title>
		<link>http://feedproxy.google.com/~r/CommentsForTechSpace/~3/rDohESBOmo4/</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Mon, 15 Jun 2009 05:32:37 +0000</pubDate>
		<guid isPermaLink="false">http://tech0x20.com/?p=504#comment-219</guid>
		<description>You know, this is all really insane...the election results smell real fishy...but I'm not gonna come out and say there was foul play...there has been major problems with elections all over that area of the world...so it wouldn't be a huge surprise to me to find out that elections weren't pure</description>
		<content:encoded><![CDATA[<p>You know, this is all really insane&#8230;the election results smell real fishy&#8230;but I&#8217;m not gonna come out and say there was foul play&#8230;there has been major problems with elections all over that area of the world&#8230;so it wouldn&#8217;t be a huge surprise to me to find out that elections weren&#8217;t pure</p>
<img src="http://feeds.feedburner.com/~r/CommentsForTechSpace/~4/rDohESBOmo4" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://tech0x20.com/2009/06/14/the-democratization-of-the-news-cnnfail-iranelection/comment-page-1/#comment-219</feedburner:origLink></item>
</channel>
</rss>

