<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Tech Space - Latest Comments</title><link xmlns="http://www.w3.org/2005/Atom" rel="http://api.friendfeed.com/2008/03#sup" href="http://disqus.com/sup/all.sup#forumcomments-4bd985e3" type="application/json"/><link>http://tech0x20.disqus.com/</link><description></description><atom:link href="http://tech0x20.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 19 Mar 2012 17:51:34 -0000</lastBuildDate><item><title>Re: Java code to test if a string is a valid java identifier.</title><link>http://tech0x20.com/2010/11/11/java-code-to-test-if-a-string-is-a-valid-java-identifier/#comment-469407667</link><description>&lt;p&gt;This code fails for any unicode letter that don't encode to single bytes.&lt;br&gt;To fix it, just use arg.toCharArray() and a char rather than a byte.&lt;/p&gt;

&lt;p&gt;This should return 'is valid':&lt;br&gt;$ java IdentifierTest Фрэнк&lt;br&gt;Identifier "Фрэнк" is not valid &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Guest</dc:creator><pubDate>Mon, 19 Mar 2012 17:51:34 -0000</pubDate></item><item><title>Re: How to Leave a Linked In Group</title><link>http://tech0x20.com/2011/03/17/how-to-leave-a-linked-in-group/#comment-268503947</link><description>&lt;p&gt;Very informative post.. You have mentioned very useful and profitable message for us..&lt;br&gt;&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;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Website Designer Riyadh</dc:creator><pubDate>Fri, 29 Jul 2011 03:35:20 -0000</pubDate></item><item><title>Re: Searching for a String in Environmental Variables in Powershell</title><link>http://tech0x20.com/2011/06/28/searching-for-a-string-in-environmental-variables-in-powershell/#comment-267546631</link><description>&lt;p&gt;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;br&gt;&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;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Website Designer Riyadh</dc:creator><pubDate>Thu, 28 Jul 2011 06:44:28 -0000</pubDate></item><item><title>Re: Searching for a String in Environmental Variables in Powershell</title><link>http://tech0x20.com/2011/06/28/searching-for-a-string-in-environmental-variables-in-powershell/#comment-237464994</link><description>&lt;p&gt;To avoid disappointmens in future:&lt;br&gt; &lt;br&gt;1. Select-String is not grep. ;) means: do not filter objects using it as you would filter command results in *nix shells.&lt;br&gt;2. Contains is for array operations, not for searching the string.&lt;br&gt;1,2,3,4 -contains 3&lt;br&gt;3. Regex compare for strings is done with -match operator.&lt;br&gt;That reduces all hard work to:&lt;br&gt;gv | ? { $_.Value -match 'Users' }&lt;br&gt;4. Simple pattern ('*', '?' and '[]') compare is done with -like operator.&lt;br&gt;gv | ? { $_.Value -like '*[u-v]se?s*' }&lt;br&gt; &lt;br&gt;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. :)&lt;br&gt;Good luck!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bartek Bielawski</dc:creator><pubDate>Wed, 29 Jun 2011 00:19:39 -0000</pubDate></item><item><title>Re: Searching for a String in Environmental Variables in Powershell</title><link>http://tech0x20.com/2011/06/28/searching-for-a-string-in-environmental-variables-in-powershell/#comment-237338568</link><description>&lt;p&gt;The thing here is that you have to remember that powershell is more of a programming language than a scripting language. 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. &lt;br&gt;For instance... type:&lt;/p&gt;

&lt;p&gt;gv | Get-Member&lt;/p&gt;

&lt;p&gt;..this will show all the members on the object types that gv outputs&lt;/p&gt;

&lt;p&gt;Note that the Value property on PSVariable is System.Object not System.String ... this is why select-string doesn't work.&lt;/p&gt;

&lt;p&gt;So...the 'downside' to powershell is you need to think like a .NET programmer.&lt;/p&gt;

&lt;p&gt;To answer your 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.&lt;/p&gt;

&lt;p&gt;Get-Variable | Where-Object { $_.Value -ne $null } | Where-Object { $_.Value.ToString().Contains("Users") }&lt;/p&gt;

&lt;p&gt;Short form&lt;/p&gt;

&lt;p&gt;gv | ? { $_.Value -ne $null } | ? {$_.Value.ToString().Contains("Users") }&lt;/p&gt;

&lt;p&gt;Now I consider myself a PS newbie - so there is probably a less verbose, neater way to do this. But this is it from first principles AFAIK.&lt;/p&gt;

&lt;p&gt;Hope that Helps&lt;/p&gt;

&lt;p&gt;Jim Burger&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim Burger</dc:creator><pubDate>Tue, 28 Jun 2011 22:22:28 -0000</pubDate></item><item><title>Re: How to Leave a Linked In Group</title><link>http://tech0x20.com/2011/03/17/how-to-leave-a-linked-in-group/#comment-223134629</link><description>&lt;p&gt;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.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Filtersweep</dc:creator><pubDate>Fri, 10 Jun 2011 09:31:48 -0000</pubDate></item><item><title>Re: Boxing of an Integer and conservation of space in Java</title><link>http://tech0x20.com/2010/06/09/boxing-of-an-integer-and-conservation-of-space-in-java/#comment-218911033</link><description>&lt;p&gt;beware of auto boxing gotcha in Java 5 .&lt;/p&gt;

&lt;p&gt; &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;&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">JP@ classpath in Java</dc:creator><pubDate>Mon, 06 Jun 2011 02:23:33 -0000</pubDate></item><item><title>Re: Java code to test if a string is a valid java identifier.</title><link>http://tech0x20.com/2010/11/11/java-code-to-test-if-a-string-is-a-valid-java-identifier/#comment-218910799</link><description>&lt;p&gt;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.&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">JP@ classpath in Java</dc:creator><pubDate>Mon, 06 Jun 2011 02:22:20 -0000</pubDate></item><item><title>Re: Linking a static library to Java using JNI</title><link>http://tech0x20.com/2007/02/09/linking-a-static-library-to-java-using-jni/#comment-218910476</link><description>&lt;p&gt;Thanks for sharing information.&lt;/p&gt;

&lt;p&gt;Javin&lt;br&gt; &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;&lt;br&gt; &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">JP@ classpath in Java</dc:creator><pubDate>Mon, 06 Jun 2011 02:20:28 -0000</pubDate></item></channel></rss>
