<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8915965384076618075</id><updated>2025-02-07T09:24:55.865+02:00</updated><category term="SharePoint 2010"/><category term="SharePoint 2007"/><category term="SharePoint"/><category term=".NET Framework"/><category term="WCF"/><category term="C#"/><category term="ASP.NET"/><category term="Mac OS X"/><category term="SQL Server"/><category term="Advanced Search"/><category term="Event Receivers"/><category term="JavaScript"/><category term="Objective-C"/><category term="PowerShell"/><category term="Search Center"/><category term="SharePoint 2013"/><category term="Timer Job"/><category term="WebGL"/><category term="Active Directory"/><category term="AutoLayout"/><category term="CRM 2011"/><category term="Features"/><category term="IIS"/><category term="NewsGator"/><category term="Nintex Workflow 2007"/><category term="OWSTIMER.EXE"/><category term="Windows Live Writer"/><category term="Windows Server 2012"/><category term="Workflows"/><title type='text'>Recipes, problems and solutions</title><subtitle type='html'>The amazon forest of technology.&#xa;A collection of SharePoint, .NET Framework recipes, problems and solutions blog.&#xa;</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dpruna.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://dpruna.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>dpruna</name><uri>http://www.blogger.com/profile/10480546093988478935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>68</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8915965384076618075.post-2303372158121042328</id><published>2015-02-08T14:38:00.000+02:00</published><updated>2015-02-08T14:43:34.121+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2013"/><title type='text'>How to delete HtmlDesignLockedFile masterpages</title><content type='html'>&lt;h2&gt;
&lt;strong&gt;Server error: This file may not be moved, deleted, renamed, or otherwise edited.&lt;/strong&gt;&lt;/h2&gt;
You have made a copy of a &lt;strong&gt;HtmlDesignLockedFile&lt;/strong&gt; master page (i.e. HtmlDesignLockedFile xml attribute has its value set to true) and you cannot delete it, move it, rename it or modify it.&lt;br /&gt;
We you try to do the above operations you receive the following message:&lt;br /&gt;
&lt;blockquote&gt;
&lt;strong&gt;Server error: This file may not be moved, deleted, renamed, or otherwise edited.&lt;/strong&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4NZJgZwiWyBrxgczAnR_rrXlnVSexYBQf9HFxNA7ri-Y2GSnLUG1wV4GpuJyKqZzFr_Qm5ueIdvoSIMY84auPhjpS8LA3HUFGhQFOJD8ABT0cGpY-kr6NLraOustyRRveXYu6ApXLAwQ/s1600-h/image%25255B3%25255D.png&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidmLgNTgnlQojffr3QY-Ry6arHP7NjCm051yUSqP4oztm-qfyCOSMAWtCQWzk0RPd7ZwEpXq8rcTiIqUQ_yjtrBdoB3izfw-MrRCQwFxJaCae_XYQ_ouwH5DgbDAbx4t7NyPEhKpRJ70A/?imgmax=800&quot; height=&quot;156&quot; style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; title=&quot;image&quot; width=&quot;550&quot; /&gt;&lt;/a&gt;&lt;/blockquote&gt;
The solution is pretty simple but not obvious &lt;img alt=&quot;Smile&quot; class=&quot;wlEmoticon wlEmoticon-smile&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjysSXEf57ckhcb-E8J6ESb6Av54k3vTtem6opONlxAjXNFpRgcStsQbdQjOi_ifYKw3ck-qsDgRtWXcqhgQmPKhzuEyWJNqi1rDW9hGk6wkMrpNjoz5HYk7Ssx8cvg9xUlbZGHkZhF9Es/?imgmax=800&quot; style=&quot;border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none;&quot; /&gt;&lt;br /&gt;
Open site collection in SharePoint Designer, check out the file, edit it in advanced mode and remove the following line:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;background-color: #fcfffc; color: #141414; font-family: Verdana, arial, helvetica, clean, sans-serif; font-size: 14.6666669845581px; line-height: 24.9333343505859px;&quot;&gt;&amp;lt;&lt;/span&gt;mso:htmldesignlockedfile msdt:dt=&quot;string&quot;&amp;gt;true&lt;span style=&quot;background-color: #fcfffc; color: #141414; font-family: Verdana, arial, helvetica, clean, sans-serif; font-size: 14.6666669845581px; line-height: 24.9333343505859px;&quot;&gt;&amp;lt;/&lt;/span&gt;mso:htmldesignlockedfile&amp;gt;&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;/blockquote&gt;
After you remove the above line, just save file and then delete it.&lt;br /&gt;
That’s all folks!</content><link rel='replies' type='application/atom+xml' href='http://dpruna.blogspot.com/feeds/2303372158121042328/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dpruna.blogspot.com/2015/02/how-to-delete-htmldesignlockedfile.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/2303372158121042328'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/2303372158121042328'/><link rel='alternate' type='text/html' href='http://dpruna.blogspot.com/2015/02/how-to-delete-htmldesignlockedfile.html' title='How to delete HtmlDesignLockedFile masterpages'/><author><name>dpruna</name><uri>http://www.blogger.com/profile/10480546093988478935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidmLgNTgnlQojffr3QY-Ry6arHP7NjCm051yUSqP4oztm-qfyCOSMAWtCQWzk0RPd7ZwEpXq8rcTiIqUQ_yjtrBdoB3izfw-MrRCQwFxJaCae_XYQ_ouwH5DgbDAbx4t7NyPEhKpRJ70A/s72-c?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8915965384076618075.post-7355652773253612946</id><published>2015-01-25T16:19:00.002+02:00</published><updated>2015-01-25T16:19:18.487+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET Framework"/><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="WCF"/><title type='text'>There was an error downloading metadata from the address.</title><content type='html'>&lt;h2&gt;
There was an error downloading metadata from the address.&lt;/h2&gt;
Having a VS2012 solution with a console application and a WCF service application project.&lt;br /&gt;
When trying to add the WCF service as a service reference to the console application I get the following error:&lt;br /&gt;
&lt;blockquote&gt;
There was an error downloading metadata from the address. Please verify that you have entered a valid address.&lt;/blockquote&gt;
Looked over the internet for a solution but nothing I found worked in my case. Decided to step back a little and enabled service tracing.&lt;br /&gt;
This generated a trace file which viewed in &lt;em&gt;SvcTraceViewer.exe (Microsoft Service Trace Viewer)&lt;/em&gt; showed me the following exception being thrown:&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjhVzetkAUB88ruAcVxH5nlhBqekQAqEtQNjLsu98YDku2GdIq3dTT1c5R3EsXKRHBgt_3TeRnatNVdft7_ecDZe292jCDhgN-icSbWr-jcGXLC7SCNloUUe2oQUvMpqZ3zQYvLTaoj1E/s1600-h/service_reference_error_masked_1%25255B3%25255D.png&quot;&gt;&lt;img alt=&quot;service_reference_error_masked_1&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfsVO7NsAwEq48a8s6KUqmlaeOPqKaNVEAHc_l0SqB30JJz9-oINMLO4zFlXtU26ET1xkyH9owgCMgeTXInJR2dvelJ5cx0UmQe1g3QSfsjFNBrKLbD7l_qvNqNwGpd_O8893OzujQhLE/?imgmax=800&quot; height=&quot;279&quot; style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; title=&quot;service_reference_error_masked_1&quot; width=&quot;527&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
The exception thrown was &lt;em&gt;System.ServiceModel.CommunicationObjectAbortedException.&lt;/em&gt; What could this mean? Looked in the WCF project code for classes that implement &lt;em&gt;IDisposable&lt;/em&gt; interface.&lt;br /&gt;
Found one class and removed &lt;em&gt;IDisposable&lt;/em&gt; interface plus commented its implementation code.&lt;br /&gt;
Rebuilded the project and boom…could add the WCF service as a reference to the console application. Now why should it not work when &lt;em&gt;IDisposable&lt;/em&gt; is implemented…well, because in the implementation code I had put a &lt;em&gt;Debugger.Break()&lt;/em&gt; statement. After removing the statement everything worked perfectly.&lt;br /&gt;
Hope this helps in debugging these kind of errors…</content><link rel='replies' type='application/atom+xml' href='http://dpruna.blogspot.com/feeds/7355652773253612946/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dpruna.blogspot.com/2015/01/there-was-error-downloading-metadata.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/7355652773253612946'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/7355652773253612946'/><link rel='alternate' type='text/html' href='http://dpruna.blogspot.com/2015/01/there-was-error-downloading-metadata.html' title='There was an error downloading metadata from the address.'/><author><name>dpruna</name><uri>http://www.blogger.com/profile/10480546093988478935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfsVO7NsAwEq48a8s6KUqmlaeOPqKaNVEAHc_l0SqB30JJz9-oINMLO4zFlXtU26ET1xkyH9owgCMgeTXInJR2dvelJ5cx0UmQe1g3QSfsjFNBrKLbD7l_qvNqNwGpd_O8893OzujQhLE/s72-c?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8915965384076618075.post-639690208069682038</id><published>2014-12-29T15:08:00.001+02:00</published><updated>2015-01-02T23:21:56.224+02:00</updated><title type='text'>WCF Data Service Access Denied Exception</title><content type='html'>&lt;h2&gt;
WCF Data Service Access Denied Exception&lt;/h2&gt;
&lt;div&gt;
Working with a&amp;nbsp;WCF Data Service I configured the project to use local IIS in 
VS2012 project properties.&lt;br /&gt;
Created virtual directory and from what I’ve noticed, the virtual directory 
was created in VS2012&amp;nbsp;project path.&lt;br /&gt;
When I run the client web application which consumed the WCF Data Service I 
encountered the following exception:&lt;br /&gt;
&lt;blockquote&gt;
Access denied. Description: An error occurred while accessing the resources 
required to serve this request. You might not have permission to view the 
requested resources.&lt;br /&gt;
Error message 401.3: You do not have permission to view this directory or 
page using the credentials you supplied (access denied due to Access Control 
Lists). Ask the Web server&#39;s administrator to give you access to ‘{path to WCF 
project/WCFServiceName.svc’.&lt;/blockquote&gt;
Solution that worked for me was to give IUSR account Full Control permissions on WCF project directory.&amp;nbsp;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dpruna.blogspot.com/feeds/639690208069682038/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dpruna.blogspot.com/2014/12/wcf-data-service-access-denied-exception.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/639690208069682038'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/639690208069682038'/><link rel='alternate' type='text/html' href='http://dpruna.blogspot.com/2014/12/wcf-data-service-access-denied-exception.html' title='WCF Data Service Access Denied Exception'/><author><name>dpruna</name><uri>http://www.blogger.com/profile/10480546093988478935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8915965384076618075.post-5430243434469219253</id><published>2014-06-14T13:39:00.001+03:00</published><updated>2014-06-14T13:45:32.686+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2013"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows Server 2012"/><title type='text'>Did you know? Excel and SharePoint connection files</title><content type='html'>&lt;p&gt;On a windows server system, in order to use a connection file, stored in a SharePoint document library, in Excel you have to have Desktop Experience feature enabled on the windows server system.&lt;/p&gt;  </content><link rel='replies' type='application/atom+xml' href='http://dpruna.blogspot.com/feeds/5430243434469219253/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dpruna.blogspot.com/2014/06/did-you-know-excel-and-sharepoint.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/5430243434469219253'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/5430243434469219253'/><link rel='alternate' type='text/html' href='http://dpruna.blogspot.com/2014/06/did-you-know-excel-and-sharepoint.html' title='Did you know? Excel and SharePoint connection files'/><author><name>dpruna</name><uri>http://www.blogger.com/profile/10480546093988478935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8915965384076618075.post-309185627360944815</id><published>2014-03-18T09:32:00.000+02:00</published><updated>2014-03-18T09:32:15.914+02:00</updated><title type='text'>Hexagon Mines free for a limited time period</title><content type='html'>&lt;h2&gt;
Hexagon Mines free for a limited time period&lt;/h2&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqMIjXbbpI0D4BXtRh0zfpaDTr2FqA3jR4fH6zTVp2NGV2fQgcZgdJYH-JkJ9bZbQFRlbesjTrIpb69d5c4H08J-s4MX9EGZOECJ8SqJcUjKHQkNbQ8drlqcy9At7Xb9Dc7aUj2bxFxGk/s1600/iTunesArtwork%25402x.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqMIjXbbpI0D4BXtRh0zfpaDTr2FqA3jR4fH6zTVp2NGV2fQgcZgdJYH-JkJ9bZbQFRlbesjTrIpb69d5c4H08J-s4MX9EGZOECJ8SqJcUjKHQkNbQ8drlqcy9At7Xb9Dc7aUj2bxFxGk/s1600/iTunesArtwork%25402x.png&quot; height=&quot;320&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;a href=&quot;https://itunes.apple.com/ro/app/hexagon-mines/id775246149?mt=8&quot; target=&quot;_blank&quot;&gt;GET IT NOW!!!&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://dpruna.blogspot.com/feeds/309185627360944815/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dpruna.blogspot.com/2014/03/hexagon-mines-free-for-limited-time.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/309185627360944815'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/309185627360944815'/><link rel='alternate' type='text/html' href='http://dpruna.blogspot.com/2014/03/hexagon-mines-free-for-limited-time.html' title='Hexagon Mines free for a limited time period'/><author><name>dpruna</name><uri>http://www.blogger.com/profile/10480546093988478935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqMIjXbbpI0D4BXtRh0zfpaDTr2FqA3jR4fH6zTVp2NGV2fQgcZgdJYH-JkJ9bZbQFRlbesjTrIpb69d5c4H08J-s4MX9EGZOECJ8SqJcUjKHQkNbQ8drlqcy9At7Xb9Dc7aUj2bxFxGk/s72-c/iTunesArtwork%25402x.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8915965384076618075.post-3798615309228924491</id><published>2014-01-28T19:06:00.003+02:00</published><updated>2014-01-28T19:06:37.740+02:00</updated><title type='text'>Hexagon Mines available on Apple App Store</title><content type='html'>&lt;h2&gt;
Hexagon Mines available on Apple App Store&lt;/h2&gt;
&lt;div&gt;
My game, Hexagon Mines is now available on Apple App Store for both iPhone and iPad. Click on picture below to check it out!&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://itunes.apple.com/ro/app/hexagon-mines/id775246149?mt=8&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;Hexagon Mines&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCyrA6__zw4v3TadpLkqjYlpu-k_rNGeLT0q149nIGYU8-NBJ3R1Ia4SiDwbUuAdW3uX4t_B-ttCGMnN-ObJ4vV6720prLm9QqbJnOeE7m30bVOlPYYHSFtBRFVviMvbOQOBqZOEYue2A/s1600/iTunesArtwork@2x.png&quot; height=&quot;320&quot; title=&quot;Hexagon Mines&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dpruna.blogspot.com/feeds/3798615309228924491/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dpruna.blogspot.com/2014/01/hexagon-mines-available-on-apple-app.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/3798615309228924491'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/3798615309228924491'/><link rel='alternate' type='text/html' href='http://dpruna.blogspot.com/2014/01/hexagon-mines-available-on-apple-app.html' title='Hexagon Mines available on Apple App Store'/><author><name>dpruna</name><uri>http://www.blogger.com/profile/10480546093988478935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCyrA6__zw4v3TadpLkqjYlpu-k_rNGeLT0q149nIGYU8-NBJ3R1Ia4SiDwbUuAdW3uX4t_B-ttCGMnN-ObJ4vV6720prLm9QqbJnOeE7m30bVOlPYYHSFtBRFVviMvbOQOBqZOEYue2A/s72-c/iTunesArtwork@2x.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8915965384076618075.post-3237360278706573319</id><published>2013-09-07T14:09:00.002+03:00</published><updated>2013-09-07T14:12:58.186+03:00</updated><title type='text'>How to use ko.computed in javascript object literals</title><content type='html'>&lt;h2&gt;
How to use ko.computed in javascript object literals&lt;/h2&gt;
&lt;div&gt;
Tried to use &lt;i&gt;ko.computed&lt;/i&gt; and this in an object literal but without any luck.&lt;/div&gt;
&lt;div&gt;
Below code throws an error because inside &lt;i&gt;ko.computed&lt;/i&gt; you cannot have access to object literal properties:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;i&gt;var x = {&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; a: ko.observable(1),&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; b: ko.observable(2),&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; add: ko.computed(function() {&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* you cannot access already defined properties (i.e. a, b) from this scope or by using &quot;this&quot; */&lt;/i&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;i&gt;return a&amp;nbsp;+ this.b;&lt;/i&gt;&amp;nbsp;&lt;i&gt;&amp;nbsp; &amp;nbsp; &lt;/i&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; }&lt;i&gt;, this)&lt;/i&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;i&gt;};&lt;/i&gt;&lt;/blockquote&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
The workaround for this issue, is to create variables for each of the object literal&#39;s properties and then create the object literal. Thus the code becomes:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;i&gt;var&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;a = ko.observable(1),&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;b = ko.observable(2),&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;add = ko.computed(function() {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return a&amp;nbsp;+ b;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;});&lt;br /&gt;var x = {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; a: a,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; b: b,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; add: add&lt;br /&gt;};&lt;/i&gt;&lt;/blockquote&gt;
&lt;br /&gt;
Hope this helps...happy knockout.js coding&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dpruna.blogspot.com/feeds/3237360278706573319/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dpruna.blogspot.com/2013/09/how-to-use-kocomputed-in-javascript.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/3237360278706573319'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/3237360278706573319'/><link rel='alternate' type='text/html' href='http://dpruna.blogspot.com/2013/09/how-to-use-kocomputed-in-javascript.html' title='How to use ko.computed in javascript object literals'/><author><name>dpruna</name><uri>http://www.blogger.com/profile/10480546093988478935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8915965384076618075.post-8872125767397938717</id><published>2013-06-19T00:01:00.002+03:00</published><updated>2013-08-07T23:27:12.954+03:00</updated><title type='text'>JavaScript How to get elements by class name</title><content type='html'>&lt;h2&gt;
How to get elements by class name in JavaScript&lt;/h2&gt;
&lt;div&gt;
Have you worked with jQuery?&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
Yes, then it means you know how easy is to get elements by class name:&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;i&gt;$(&quot;.className&quot;)&lt;/i&gt;&lt;/blockquote&gt;
But, what do you do if you are constraint to use only JavaScript.&lt;br /&gt;
Dived into the properties of DOM elements and found two methods that can be used:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;i&gt;getElementsByClassName(&quot;className&quot;) &lt;/i&gt;- this is not supported by all browsers (i.e. IE)&lt;/li&gt;
&lt;li&gt;&lt;i&gt;querySelectorAll(&quot;.className&quot;)&lt;/i&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
Code to use this is as follows:&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;i&gt;var elements;&lt;br /&gt;if (typeof domElement.getElementsByClassName != &quot;undefined&quot;)&lt;br /&gt;&amp;nbsp; &amp;nbsp; elements = domElement.getElementsByClassName(&quot;className&quot;);&lt;br /&gt;else&lt;br /&gt;&amp;nbsp; &amp;nbsp;elements = domElement.querySelectorAll(&quot;.className&quot;);&lt;/i&gt;&lt;/blockquote&gt;
&lt;br /&gt;
Happy coding ;)</content><link rel='replies' type='application/atom+xml' href='http://dpruna.blogspot.com/feeds/8872125767397938717/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dpruna.blogspot.com/2013/06/javascript-how-to-get-elements-by-class.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/8872125767397938717'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/8872125767397938717'/><link rel='alternate' type='text/html' href='http://dpruna.blogspot.com/2013/06/javascript-how-to-get-elements-by-class.html' title='JavaScript How to get elements by class name'/><author><name>dpruna</name><uri>http://www.blogger.com/profile/10480546093988478935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8915965384076618075.post-69298641127400716</id><published>2013-06-09T03:22:00.000+03:00</published><updated>2013-06-09T03:22:18.703+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Advanced Search"/><category scheme="http://www.blogger.com/atom/ns#" term="Search Center"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><title type='text'>Tried IMS endpoints for operation Execute: Query lookup failed on 3 attempts.</title><content type='html'>&lt;h2&gt;
Tried IMS endpoints for operation Execute: Query lookup failed on 3 attempts.&lt;/h2&gt;
&lt;div&gt;







&lt;div class=&quot;p1&quot;&gt;
Got this error while performing a Keyword Query Search.&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
The solution, for me, was to make the metadata property, on which the sorting was done…you&#39;ve guessed…sortable.&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dpruna.blogspot.com/feeds/69298641127400716/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dpruna.blogspot.com/2013/06/tried-ims-endpoints-for-operation.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/69298641127400716'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/69298641127400716'/><link rel='alternate' type='text/html' href='http://dpruna.blogspot.com/2013/06/tried-ims-endpoints-for-operation.html' title='Tried IMS endpoints for operation Execute: Query lookup failed on 3 attempts.'/><author><name>dpruna</name><uri>http://www.blogger.com/profile/10480546093988478935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8915965384076618075.post-3852728906080042484</id><published>2013-04-21T04:14:00.001+03:00</published><updated>2019-11-06T12:16:02.325+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2007"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><title type='text'>SharePoint CAML Query on Choice fields</title><content type='html'>&lt;h1&gt;
SharePoint CAML Query on Choice fields&lt;/h1&gt;
Stumbled a very interesting issue while developing a web part, that should display items based on a choice field. The choice field had the option of multi select ON.&lt;br /&gt;
The following choice values were defined:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;East&lt;/li&gt;
&lt;li&gt;North&lt;/li&gt;
&lt;li&gt;West&lt;/li&gt;
&lt;li&gt;South&lt;/li&gt;
&lt;li&gt;North-East&lt;/li&gt;
&lt;li&gt;South-East&lt;/li&gt;
&lt;li&gt;North-West&lt;/li&gt;
&lt;li&gt;South-West&lt;/li&gt;
&lt;/ul&gt;
The user had to choose the choice value and press a filter button.&lt;br /&gt;
The user could only choose one choice value, so the CAML for retrieving the items is pretty straight forward:&lt;br /&gt;
&lt;blockquote&gt;
&amp;lt;Where&amp;gt;&lt;br /&gt;
&amp;lt;Contains&amp;gt;&lt;br /&gt;
&amp;lt;FieldRef Name=&#39;MyField&#39;/&amp;gt;&amp;lt;Value Type=&#39;Choice&#39;&amp;gt;East&amp;lt;/Value&amp;gt;&lt;br /&gt;
&amp;lt;/Contains&amp;gt;&lt;br /&gt;
&amp;lt;/Where&amp;gt;&lt;/blockquote&gt;
Deployed the solution, added the web part to a page, but while testing something strange happened:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;for &quot;&lt;i&gt;East&lt;/i&gt;&quot; filter value, the items with &quot;&lt;i&gt;North-East&lt;/i&gt;&quot; and &quot;&lt;i&gt;South-East&lt;/i&gt;&quot; were also returned&lt;/li&gt;
&lt;li&gt;for &quot;West&quot; filter value, the items with &quot;North-West&quot; and &quot;South-West&quot; were also returned&lt;/li&gt;
&lt;li&gt;...&lt;/li&gt;
&lt;/ul&gt;
I thought that &lt;i&gt;Contains&lt;/i&gt;&amp;nbsp;works like &lt;i&gt;Contains()&lt;/i&gt; method on C# arrays works. But it seems it is not working like that at all.&lt;br /&gt;
This made me wonder…so I modified the CAML query and I replaced the &quot;&lt;i&gt;CONTAINS&lt;/i&gt;&quot; clause with &quot;&lt;i&gt;EQ&lt;/i&gt;&quot; clause. The final CAML query looked like below:&lt;br /&gt;
&lt;blockquote&gt;
&amp;lt;Where&amp;gt;&lt;br /&gt;
&amp;lt;Eq&amp;gt;&lt;br /&gt;
&amp;lt;FieldRef Name=&#39;MyField&#39;/&amp;gt;&amp;lt;Value Type=&#39;Choice&#39;&amp;gt;East&amp;lt;/Value&amp;gt;&lt;br /&gt;
&amp;lt;/Eq&amp;gt;&lt;br /&gt;
&amp;lt;/Where&amp;gt;&lt;/blockquote&gt;
And BINGO the correct results were displayed.&lt;br /&gt;
So my initial assumption, that querying by a choice field with multi selection using &quot;CONTAINS&quot; is the correct way to query, was wrong.&lt;br /&gt;
Query with EQ and your safe :P&lt;br /&gt;
Happy coding!!!</content><link rel='replies' type='application/atom+xml' href='http://dpruna.blogspot.com/feeds/3852728906080042484/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dpruna.blogspot.com/2013/04/sharepoint-caml-query-on-choice-fields.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/3852728906080042484'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/3852728906080042484'/><link rel='alternate' type='text/html' href='http://dpruna.blogspot.com/2013/04/sharepoint-caml-query-on-choice-fields.html' title='SharePoint CAML Query on Choice fields'/><author><name>dpruna</name><uri>http://www.blogger.com/profile/10480546093988478935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8915965384076618075.post-6008403742161438187</id><published>2013-03-14T04:07:00.001+02:00</published><updated>2013-03-23T05:05:19.936+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET Framework"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><title type='text'>Simple DataTable to JSON serializer</title><content type='html'>&lt;h1&gt;Simple .NET DataTable JSON serializer&lt;/h1&gt;
&lt;p&gt;Ever wanted to just populate a DataTable object and get the JSON out of it :)…Yes, Yes…really?...No…below is a simple implementation of a convertor that takes a DataTable and converts it to a JSON. This is made possible, thanks to Microsoft JavaScriptConvertor base class, found in &lt;span style=&quot;font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;System.Web.Script.Serialization namespace,&lt;/span&gt; which makes it very simple. &lt;/p&gt;
&lt;p&gt;&lt;img style=&quot;display: block; margin-left: auto; margin-right: auto;&quot; title=&quot;Screen Shot 2013-03-14 at 4.04.40 AM.png&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEga5nG0YJIAUwngdISBg1YZA6g1IN5pOXz_NIFoy26B-LikLKuJ4qeBZthX_6Z9t16dGVvstHpeNwB8b1lfQkSi1Q0O1vkttpuqWjC_wpTDefJblOwTbswC5k97xX54qbheNCPxPShbJB4/?imgmax=800&quot; alt=&quot;Screen Shot 2013 03 14 at 4 04 40 AM&quot; width=&quot;600&quot; height=&quot;367&quot; border=&quot;0&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Now in your code just:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Initialise a JavascritptSerializer object. &lt;/li&gt;
&lt;li&gt;Register the above convertor on it by calling &lt;span style=&quot;font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 16px;&quot;&gt;RegisterConvertors method&lt;/span&gt;&lt;/span&gt;. &lt;/li&gt;
&lt;li&gt;Call deserialize method by passing in your DataTable.&lt;/li&gt;
&lt;li&gt;And kaboom you got your JSON.&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;The actual code for the steps above can be found on Microsoft site…sorry lazy people.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dpruna.blogspot.com/feeds/6008403742161438187/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dpruna.blogspot.com/2013/03/simple-datatable-to-json-serializer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/6008403742161438187'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/6008403742161438187'/><link rel='alternate' type='text/html' href='http://dpruna.blogspot.com/2013/03/simple-datatable-to-json-serializer.html' title='Simple DataTable to JSON serializer'/><author><name>dpruna</name><uri>http://www.blogger.com/profile/10480546093988478935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEga5nG0YJIAUwngdISBg1YZA6g1IN5pOXz_NIFoy26B-LikLKuJ4qeBZthX_6Z9t16dGVvstHpeNwB8b1lfQkSi1Q0O1vkttpuqWjC_wpTDefJblOwTbswC5k97xX54qbheNCPxPShbJB4/s72-c?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8915965384076618075.post-2232006218442274826</id><published>2013-03-10T21:21:00.001+02:00</published><updated>2013-03-10T21:21:47.111+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mac OS X"/><category scheme="http://www.blogger.com/atom/ns#" term="Objective-C"/><title type='text'>How to hide UINavigationBar on master view controller</title><content type='html'>&lt;h1&gt;How to hide UINavigationBar on master view controller&lt;/h1&gt;
&lt;p&gt;Say for example that you have a master detail application. You want to hide the navigation bar in the master view controller to gain more space, but show it in the detail view controller. Well, you accomplish that by:&lt;/p&gt;
&lt;div&gt;&lt;ol&gt;
&lt;li&gt;In the master view controller override -viewWillAppear:animated method&lt;br /&gt;
&lt;p style=&quot;margin: 0px; font-size: 11px; font-family: Menlo;&quot;&gt;-(&lt;span style=&quot;color: #bb2ca2;&quot;&gt;void&lt;/span&gt;)viewWillAppear:(&lt;span style=&quot;color: #bb2ca2;&quot;&gt;BOOL&lt;/span&gt;)animated{&lt;/p&gt;
&lt;blockquote style=&quot;margin: 0 0 0 40px; border: none; padding: 0px;&quot;&gt;&lt;span style=&quot;color: #bb2ca2;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;.&lt;/span&gt;navigationController&lt;span style=&quot;color: #000000;&quot;&gt;.&lt;/span&gt;navigationBarHidden&lt;span style=&quot;color: #000000;&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: #bb2ca2;&quot;&gt;YES&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/blockquote&gt;
&lt;p style=&quot;margin: 0px; font-size: 11px; font-family: Menlo;&quot;&gt;}&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;In the detail view controller override -viewWillAppear:animated method&lt;br /&gt;
&lt;p style=&quot;margin: 0px; font-size: 11px; font-family: Menlo;&quot;&gt;-(&lt;span style=&quot;color: #bb2ca2;&quot;&gt;void&lt;/span&gt;)viewWillAppear:(&lt;span style=&quot;color: #bb2ca2;&quot;&gt;BOOL&lt;/span&gt;)animated{&lt;/p&gt;
&lt;blockquote style=&quot;margin: 0 0 0 40px; border: none; padding: 0px;&quot;&gt;&lt;span style=&quot;color: #bb2ca2;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;.&lt;/span&gt;navigationController&lt;span style=&quot;color: #000000;&quot;&gt;.&lt;/span&gt;navigationBarHidden&lt;span style=&quot;color: #000000;&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: #bb2ca2;&quot;&gt;NO&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/blockquote&gt;
&lt;p style=&quot;margin: 0px; font-size: 11px; font-family: Menlo;&quot;&gt;}&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt; &lt;/p&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dpruna.blogspot.com/feeds/2232006218442274826/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dpruna.blogspot.com/2013/03/how-to-hide-uinavigationbar-on-master.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/2232006218442274826'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/2232006218442274826'/><link rel='alternate' type='text/html' href='http://dpruna.blogspot.com/2013/03/how-to-hide-uinavigationbar-on-master.html' title='How to hide UINavigationBar on master view controller'/><author><name>dpruna</name><uri>http://www.blogger.com/profile/10480546093988478935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8915965384076618075.post-2191966127620001395</id><published>2013-03-06T21:01:00.001+02:00</published><updated>2013-03-06T21:01:53.899+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="NewsGator"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><category scheme="http://www.blogger.com/atom/ns#" term="WCF"/><title type='text'>SharePoint NewsGator activity feed paging</title><content type='html'>&lt;h1&gt;SharePoint NewsGator activity feed paging&lt;/h1&gt;
&lt;p&gt;SharePoint at last ;)…Had to retrieve NewsGator activity feeds using NewsGator&#39;s ActivityFeed.svc service, but I had to page the results.&lt;/p&gt;
&lt;p&gt;So how do NewsGator handle paging?&lt;/p&gt;
&lt;p&gt;Very elegantly I might say. It gives you all the information you need to construct the next web service call in the response of the current web service call. Check out the image below:&lt;/p&gt;
&lt;p&gt;&lt;img style=&quot;display: block; margin-left: auto; margin-right: auto;&quot; title=&quot;NewsGator-ActivityFeed.png&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJIV7eI_Rm5kwM-KsjQadFh69s2pchV2u0dnxW5n0wN_9cLJdjJ2XCwl92qGfV0Tb74ga2-S-O5fArX610omivCPwj_XyN3LF30FRauWaGaNaes75DgWrW9O0utaYOzKMQK-lEf7HKKVU/?imgmax=800&quot; alt=&quot;NewsGator Activity Feed&quot; width=&quot;600&quot; height=&quot;154&quot; border=&quot;0&quot; /&gt;&lt;/p&gt;
&lt;p&gt;As you can see, the response of the call is a XML. The &lt;strong&gt;feed&lt;/strong&gt; root element has two child elements that are interesting for us:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;pagingToken&lt;/strong&gt; - represents the paging information for the next activity feed result set.&lt;br /&gt;The pagingToken is formed like this:&lt;br /&gt;&lt;em&gt;{PageNumber};{PageSize};{LastItemDate}&lt;/em&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;{PageNumber}&lt;/strong&gt; - is the page number (page 1 in the image above)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;{PageSize}&lt;/strong&gt; - the number of items per page (25 items per page in the image above)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;{LastItemDate}&lt;/strong&gt; - the date and time of the last item on current page (2013-03-05T13:10:10:5200000Z in the image above)&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;&lt;strong&gt;hasMoreItems&lt;/strong&gt; - tells us if there are more activity feeds to be retrieved or not&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This is it…a very intuitive and elegant implementation.&lt;/p&gt;
&lt;p&gt;Cheers!&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://dpruna.blogspot.com/feeds/2191966127620001395/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dpruna.blogspot.com/2013/03/sharepoint-newsgator-activity-feed.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/2191966127620001395'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/2191966127620001395'/><link rel='alternate' type='text/html' href='http://dpruna.blogspot.com/2013/03/sharepoint-newsgator-activity-feed.html' title='SharePoint NewsGator activity feed paging'/><author><name>dpruna</name><uri>http://www.blogger.com/profile/10480546093988478935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJIV7eI_Rm5kwM-KsjQadFh69s2pchV2u0dnxW5n0wN_9cLJdjJ2XCwl92qGfV0Tb74ga2-S-O5fArX610omivCPwj_XyN3LF30FRauWaGaNaes75DgWrW9O0utaYOzKMQK-lEf7HKKVU/s72-c?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8915965384076618075.post-9155812133702216011</id><published>2013-03-06T01:44:00.001+02:00</published><updated>2013-03-06T01:45:39.588+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><title type='text'>Knockout JS: debugging bindings</title><content type='html'>&lt;p&gt;JavaScript again :) this time about JavaScript debugging. &lt;/p&gt;
&lt;p&gt;Had to make a simple application using Knockout JS.&lt;/p&gt;
&lt;p&gt;Because I didn&#39;t correctly specify the binding information, I received an incorrect binding exception thrown from within Knockout JS framework.&lt;/p&gt;
&lt;p&gt;How to figure out what binding information is incorrect?&lt;/p&gt;
&lt;p&gt;Turned out to be kind of simple. Turning on IE Developer Tools (F12), I could see the exact line were the exception was thrown. You have to have Knockout JS debugging version of the framework for easy debugging in IE.&lt;/p&gt;
&lt;p&gt;The exception was thrown in this part of code:&lt;/p&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;&#39;parseBindingsString&#39;: function(bindingsString, bindingContext, node) {&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt; &lt;/span&gt;&lt;br style=&quot;font-family: Calibri;&quot; /&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;            try {&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt; &lt;/span&gt;&lt;br style=&quot;font-family: Calibri;&quot; /&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;                var bindingFunction = createBindingsStringEvaluatorViaCache(bindingsString, this.bindingCache);&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt; &lt;/span&gt;&lt;br style=&quot;font-family: Calibri;&quot; /&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;                return bindingFunction(bindingContext, node);&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt; &lt;/span&gt;&lt;br style=&quot;font-family: Calibri;&quot; /&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;            } catch (ex) {&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt; &lt;/span&gt;&lt;br style=&quot;font-family: Calibri;&quot; /&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;                throw new Error(&quot;Unable to parse bindings.\nMessage: &quot; + ex + &quot;;\nBindings value: &quot; + bindingsString);&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt; &lt;/span&gt;&lt;br style=&quot;font-family: Calibri;&quot; /&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;            }&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt; &lt;/span&gt;&lt;br style=&quot;font-family: Calibri;&quot; /&gt;&lt;span style=&quot;font-family: Calibri; font-size: small;&quot;&gt;        }&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;More exactly at the &lt;em&gt;return bindingFunction(bindingContext, node)&lt;/em&gt; line. &lt;/p&gt;
&lt;p&gt;Inspecting bindingContext parameter, I discovered that it has a $data property which contains the actual item to bind.&lt;/p&gt;
&lt;p&gt;Base on data in my item, I put a conditional breakpoint on that line (i.e. break when &lt;em&gt;bindingContext.$data.person.firstName== &quot;x&quot;&lt;/em&gt;). &lt;em&gt;bindingString&lt;/em&gt; parameter will give the actual value of the &lt;em&gt;data-bind &lt;/em&gt;element attribute. Compare the values in &lt;em&gt;bindingString&lt;/em&gt; parameter with the properties of the object in &lt;em&gt;bindingContext.$data.person&lt;/em&gt; and your done.&lt;/p&gt;
&lt;p&gt;This way I found out what was the invalid binding property: personId which I misspelled it to personid :)&lt;/p&gt;
&lt;p&gt;Hope this helps…happy Knockout JS coding!&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://dpruna.blogspot.com/feeds/9155812133702216011/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dpruna.blogspot.com/2013/03/knockout-js-debugging-binding-binding.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/9155812133702216011'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/9155812133702216011'/><link rel='alternate' type='text/html' href='http://dpruna.blogspot.com/2013/03/knockout-js-debugging-binding-binding.html' title='Knockout JS: debugging bindings'/><author><name>dpruna</name><uri>http://www.blogger.com/profile/10480546093988478935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8915965384076618075.post-2891787061836693314</id><published>2013-03-03T18:37:00.001+02:00</published><updated>2013-03-03T18:41:03.099+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mac OS X"/><title type='text'>How to force trash empty on Mac OS</title><content type='html'>&lt;p&gt;Not much to say in this blog actually, just:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Right click on trash in dock&lt;/li&gt;
&lt;li&gt;Press and hold Option key&lt;/li&gt;
&lt;li&gt;Select Empty trash from contextual menu&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;That&#39;s all folks! :) &lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://dpruna.blogspot.com/feeds/2891787061836693314/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dpruna.blogspot.com/2013/03/how-to-force-trash-empty-on-mac-os.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/2891787061836693314'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/2891787061836693314'/><link rel='alternate' type='text/html' href='http://dpruna.blogspot.com/2013/03/how-to-force-trash-empty-on-mac-os.html' title='How to force trash empty on Mac OS'/><author><name>dpruna</name><uri>http://www.blogger.com/profile/10480546093988478935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8915965384076618075.post-1571381964225553457</id><published>2013-02-26T15:01:00.001+02:00</published><updated>2013-02-26T15:01:30.716+02:00</updated><title type='text'>JavaScript setTimeout subtleties</title><content type='html'>Encountered a strange behaviour with setTimeout function in Firefox.&lt;br /&gt;
Say you have the following JavaScript function:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigk1_Nju8_YQy3CrTktDJreOK3K0-a3CwAnuK-Z_ZEqhMwcQWImsHHUHKR3CaOsC1-1sOeGqXXjk6HZhM0ZDwL_PS2nQVWkflaQrII6Ee8itpTh6pGUlo_HTb5785RoD15hjWzkjs6QZs/s1600/JSsetTimeout.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigk1_Nju8_YQy3CrTktDJreOK3K0-a3CwAnuK-Z_ZEqhMwcQWImsHHUHKR3CaOsC1-1sOeGqXXjk6HZhM0ZDwL_PS2nQVWkflaQrII6Ee8itpTh6pGUlo_HTb5785RoD15hjWzkjs6QZs/s1600/JSsetTimeout.PNG&quot; height=&quot;150&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
and you want to call with a 300 ms delay.&lt;br /&gt;
&lt;br /&gt;
What you&amp;nbsp;usually&amp;nbsp;do is call it through the use of setTimeout function like below:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;i&gt;setTimeout(alertMe, 300);&lt;/i&gt;&lt;/blockquote&gt;
This works fine in Google Chrome but it does not work correctly in Firefox.&lt;br /&gt;
Why you say?&lt;br /&gt;
Because the value for the &lt;i&gt;alertMe&lt;/i&gt;&#39;s &lt;b&gt;name&lt;/b&gt; parameter will be set to random garbage values from memory.&lt;br /&gt;
In Google Chrome the value for &lt;b&gt;name&lt;/b&gt; parameter will return &lt;b&gt;undefined&lt;/b&gt;, while in Firefox will return random garbage numbers, thus the condition &lt;i&gt;name equals undefined&lt;/i&gt; will never be evaluated to true.&lt;br /&gt;
&lt;br /&gt;
So the correct and safe way to call the function alertMe through the use of setTimeout method is:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&lt;i&gt;setTimeout(function() { alertMe(null); }, 300);&lt;/i&gt;&lt;/b&gt;&lt;/blockquote&gt;
This way you can specify the value for alertMe&#39;s name parameter :D&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dpruna.blogspot.com/feeds/1571381964225553457/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dpruna.blogspot.com/2013/02/javascript-settimeout-subtleties.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/1571381964225553457'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/1571381964225553457'/><link rel='alternate' type='text/html' href='http://dpruna.blogspot.com/2013/02/javascript-settimeout-subtleties.html' title='JavaScript setTimeout subtleties'/><author><name>dpruna</name><uri>http://www.blogger.com/profile/10480546093988478935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigk1_Nju8_YQy3CrTktDJreOK3K0-a3CwAnuK-Z_ZEqhMwcQWImsHHUHKR3CaOsC1-1sOeGqXXjk6HZhM0ZDwL_PS2nQVWkflaQrII6Ee8itpTh6pGUlo_HTb5785RoD15hjWzkjs6QZs/s72-c/JSsetTimeout.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8915965384076618075.post-579781105928132060</id><published>2013-02-14T15:42:00.001+02:00</published><updated>2013-02-14T15:54:21.264+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AutoLayout"/><category scheme="http://www.blogger.com/atom/ns#" term="Mac OS X"/><category scheme="http://www.blogger.com/atom/ns#" term="Objective-C"/><title type='text'>Auto Layout still required after executing -layoutSubviews</title><content type='html'>&lt;p&gt;While changing some code in my application got this error:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;*** Assertion failure in -[PDxxxxView layoutSublayersOfLayer:], /SourceCache/UIKit_Sim/UIKit-2380.17/UIView.m:5776&lt;br /&gt;2013-02-14 15:24:31.770 xxxxApp[3603:c07] *** Terminating app due to uncaught exception &#39;NSInternalInconsistencyException&#39;, reason: &#39;Auto Layout still required after executing -layoutSubviews. PDxxxxxView&#39;s implementation of -layoutSubviews needs to call super.&#39;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Before changing the code the app ran smoothly and there were no problems. The view presented the data in a NSMutableArray.&lt;/p&gt;
&lt;p&gt;Looked over the view to see if there were any Auto Layout problems but I found none.&lt;/p&gt;
&lt;p&gt;Finally I managed to figure out that the problem was raising only when the NSMutableArray was empty. Changed the code accordingly and now everything is as it should.&lt;/p&gt;
&lt;p&gt;Hope this helps  anyone who gets this error.&lt;/p&gt;
&lt;!-- Technorati Tags Start --&gt;
&lt;p&gt;Technorati Tags: &lt;a href=&quot;http://technorati.com/tag/Objective-C&quot; rel=&quot;tag&quot;&gt;Objective-C&lt;/a&gt;, &lt;a href=&quot;http://technorati.com/tag/AutoLayout&quot; rel=&quot;tag&quot;&gt;AutoLayout&lt;/a&gt;, &lt;a href=&quot;http://technorati.com/tag/XCode&quot; rel=&quot;tag&quot;&gt;XCode&lt;/a&gt;&lt;/p&gt;
&lt;!-- Technorati Tags End --&gt;</content><link rel='replies' type='application/atom+xml' href='http://dpruna.blogspot.com/feeds/579781105928132060/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dpruna.blogspot.com/2013/02/auto-layout-still-required-after.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/579781105928132060'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/579781105928132060'/><link rel='alternate' type='text/html' href='http://dpruna.blogspot.com/2013/02/auto-layout-still-required-after.html' title='Auto Layout still required after executing -layoutSubviews'/><author><name>dpruna</name><uri>http://www.blogger.com/profile/10480546093988478935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8915965384076618075.post-2263114155922711133</id><published>2012-12-14T16:57:00.000+02:00</published><updated>2012-12-14T16:57:28.204+02:00</updated><title type='text'>PowerShell: Delete all items in a SharePoint list</title><content type='html'>I came across a situation were I needed to purge all items in a SharePoint list.&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;First step was to search the web for a simple and elegant solution, but didn&#39;t find anything.&lt;br /&gt;All presented solutions were using an&amp;nbsp;inverted&amp;nbsp;for loop.&lt;/li&gt;
&lt;li&gt;Second step was creating a simple and elegant solution. This is what I came up with:&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;i&gt;$web = Get-SPWeb &quot;URL of the web here&quot;&lt;/i&gt;&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;i&gt;&lt;/i&gt;&lt;i&gt;$itemArray = $web.Lists[&quot;Target List Name Here&quot;].Items | % { $_ }&lt;/i&gt;&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;i&gt;&lt;/i&gt;&lt;i&gt;$itemArray | % { $_.Delete() }&lt;/i&gt;&lt;/blockquote&gt;
How about that, just three lines of PowerShell code, which can also be written in a more compact way...&lt;br /&gt;
Why this works? I will let it as an&amp;nbsp;exercise&amp;nbsp;for you.&lt;br /&gt;
&lt;br /&gt;
PS:&lt;br /&gt;
I will not be liable for any losses or damages from the display or use of this information.&amp;nbsp;Use the code at your own risk.</content><link rel='replies' type='application/atom+xml' href='http://dpruna.blogspot.com/feeds/2263114155922711133/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dpruna.blogspot.com/2012/12/powershell-delete-all-items-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/2263114155922711133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/2263114155922711133'/><link rel='alternate' type='text/html' href='http://dpruna.blogspot.com/2012/12/powershell-delete-all-items-in.html' title='PowerShell: Delete all items in a SharePoint list'/><author><name>dpruna</name><uri>http://www.blogger.com/profile/10480546093988478935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8915965384076618075.post-5043525428197792532</id><published>2012-10-08T06:08:00.000+03:00</published><updated>2013-02-19T01:52:49.497+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PowerShell"/><title type='text'>Learning PowerShell Part 2: Sorting, Grouping and Formating Output</title><content type='html'>&lt;p&gt;Part 1: &lt;a href=&quot;http://dpruna.blogspot.com/2012/09/learning-powershell-part-1-first.html&quot;&gt;Learning PowerShell: First acquaintance&lt;/a&gt;&lt;br /&gt; &lt;br /&gt; Now that you know how to obtain information about &lt;strong&gt;PowerShell &lt;/strong&gt;commands and also learned about them, lets advance a little and try to filter, sort, and format the information that &lt;strong&gt;PowerShell &lt;/strong&gt;is returning. One method of doing this is by using pipelines.&lt;/p&gt;
&lt;h2&gt;&lt;span style=&quot;color: orange;&quot;&gt;PowerShell Pipelines&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;Pipeline command in &lt;strong&gt;PowerShell &lt;/strong&gt;is &lt;strong&gt;|&lt;/strong&gt;. Pipeline &lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;elements&lt;/span&gt; are commands that have one input and one output. They receive one input of information, process that information according to command intended logic and return the processed information back. The outputted information can be piped to another pipeline element for further processing.&lt;/p&gt;
&lt;h3 style=&quot;font-weight: normal;&quot;&gt;&lt;strong id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;font-size: 24px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: orange;&quot;&gt;Usefull Pipelines&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/h3&gt;
&lt;h4 style=&quot;font-weight: normal;&quot;&gt;&lt;strong id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;font-size: 19px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: orange;&quot;&gt;Filtering&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/h4&gt;
&lt;h3 style=&quot;font-weight: normal;&quot; dir=&quot;ltr&quot;&gt;&lt;strong id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;font-size: 16px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: orange;&quot;&gt;Where-Object&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/h3&gt;
&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;list-style-type: disc; vertical-align: baseline;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Filter a list of commands piped to it and passes filtered data to another pipe&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;list-style-type: disc; vertical-align: baseline;&quot;&gt;&lt;strong id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Alias: &lt;/span&gt;%&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 style=&quot;font-weight: normal;&quot;&gt;&lt;strong id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;font-size: 19px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: orange;&quot;&gt;Sorting&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/h4&gt;
&lt;h3 style=&quot;font-weight: normal;&quot; dir=&quot;ltr&quot;&gt;&lt;strong id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;font-size: 16px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: orange;&quot;&gt;Sort-Object&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/h3&gt;
&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;list-style-type: disc; vertical-align: baseline;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;vertical-align: baseline; white-space: pre-wrap;&quot;&gt;sorts output of a command by property values.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 style=&quot;font-weight: normal;&quot;&gt;&lt;strong id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;font-size: 19px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: orange;&quot;&gt;Grouping&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/h4&gt;
&lt;h3 style=&quot;font-weight: normal;&quot; dir=&quot;ltr&quot;&gt;&lt;strong id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: orange; font-size: small;&quot;&gt;Group-Object&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/h3&gt;
&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;list-style-type: disc; vertical-align: baseline;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Groups objects that contains the same value for specified properties&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;list-style-type: disc; vertical-align: baseline;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Useful to see the number of processes with the same properties&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;list-style-type: disc; vertical-align: baseline;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Example of such output can be seen below:&lt;br /&gt;&lt;span style=&quot;font-size: 15px; font-weight: normal;&quot;&gt;&lt;img title=&quot;group-object.png&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-HLB5NLzxBbh8g2tOjb8Iw5-uxAvd8rn7lYDuyu3hRmkezV-SjKBTaGZT_xaADOIGrePFx-7ODGCuzvFhDIoW-ylSwQKXJC1n6WQ6zwTT9pzBcw-0DVuenpuG5XRg-nXai0k-2J0aML0/?imgmax=800&quot; alt=&quot;Group object&quot; width=&quot;600&quot; height=&quot;63&quot; border=&quot;0&quot; /&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 style=&quot;font-weight: normal;&quot; dir=&quot;ltr&quot;&gt;&lt;strong id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: orange; font-size: small;&quot;&gt;-groupby propertyname&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/h3&gt;
&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;list-style-type: disc; vertical-align: baseline;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Is an argument to the format commands (format-table, format-list, etc.)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;list-style-type: disc; vertical-align: baseline;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Useful to see results grouped by the same properties (but not the number)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;list-style-type: disc; vertical-align: baseline;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Groups the pipeline input by the specified property &lt;img title=&quot;group1.png&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhG5O_p0g7AX8mFhp1PlcF32GjE51_3x98gBSPdR4iPPW5hUkKoPyCl2FWMqzT56xzEac1IqKP7YiBD-JiLYGW66flGBJrHocuzrF4yMbdfKDCfCMApkiaPL0OedWnChYw_FxHTwFVmbEU/?imgmax=800&quot; alt=&quot;Group1&quot; width=&quot;549&quot; height=&quot;494&quot; border=&quot;0&quot; /&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt; &lt;/div&gt;
&lt;ul style=&quot;font-weight: normal; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;font-weight: bold; list-style-type: disc; vertical-align: baseline;&quot;&gt;&lt;strong id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Example of such grouping can be seen below:&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: bold; list-style-type: disc; vertical-align: baseline;&quot;&gt;&lt;strong id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Another example is by running the following command:&lt;/span&gt;&lt;span style=&quot;font-style: italic; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;get-service | sort-object status, name | ft -groupby status | more &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;img title=&quot;group2.png&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2zfltChexO4zNE7eDswiCr3e53c6XK5yXp2icz22CXa6BMp8HipgzbH6SmdsH-afuhwTFFHwDSVankyCvwoOWInb-PKYYMkgXzd3V7uvgikKilvzpQgGyLCgHJxWsfjkuf_niDN7RBWw/?imgmax=800&quot; alt=&quot;Group2&quot; width=&quot;514&quot; height=&quot;324&quot; border=&quot;0&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 style=&quot;font-weight: normal;&quot;&gt;&lt;strong id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;font-size: 19px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: orange;&quot;&gt;Formating&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/h4&gt;
&lt;h3 style=&quot;font-weight: normal;&quot; dir=&quot;ltr&quot;&gt;&lt;strong id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: orange; font-size: small;&quot;&gt;Format-List&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/h3&gt;
&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;list-style-type: disc; vertical-align: baseline;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Format the output a list of properties in which each property appears on a new line&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;list-style-type: disc; vertical-align: baseline;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Alias: &lt;/span&gt;&lt;span style=&quot;text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;strong&gt;fl&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;list-style-type: disc; vertical-align: baseline;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Example of specifying properties to be shown:&lt;/span&gt;&lt;span style=&quot;font-style: italic; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;gwmi win32_logicaldisk | fl &lt;/span&gt;&lt;span style=&quot;font-style: italic; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;deviceid, drivetype, freespace&lt;/span&gt;&lt;span style=&quot;vertical-align: baseline; white-space: pre-wrap;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;font-style: italic; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;gwmi win32_logicaldisk | fl &lt;/span&gt;&lt;span style=&quot;font-style: italic; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;-propertyname deviceid, drivetype, freespace&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;list-style-type: disc; vertical-align: baseline;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Example of autosizing columns:&lt;/span&gt;&lt;span style=&quot;font-style: italic; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;gwmi win32_logicaldisk | fl deviceid, drivetype, freespace &lt;/span&gt;&lt;span style=&quot;font-style: italic; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;-autosize&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;list-style-type: disc; vertical-align: baseline;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;vertical-align: baseline;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;An  example of output can be seen below:&lt;/span&gt; &lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;img title=&quot;format-list.png&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLU1RJ8mHndMvrFkbf4JjSoPnDMNdqmH69xXYySIoeJHoVQkZo_X3lon0V6G6LDMOxJoFrSseOCRe2dkjGL-PkKz-h43rF71NB7DVYOBif2JnwVujNj2dQ7ftGunoXWBm0Ov7pGJNesPQ/?imgmax=800&quot; alt=&quot;Format list&quot; width=&quot;600&quot; height=&quot;368&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 15px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 style=&quot;font-weight: normal;&quot; dir=&quot;ltr&quot;&gt;&lt;strong id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: orange; font-size: small;&quot;&gt;Format-Table&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/h3&gt;
&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;list-style-type: disc; vertical-align: baseline;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Formats the output as a table&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;list-style-type: disc; vertical-align: baseline;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Alias:&lt;strong style=&quot;font-weight: normal;&quot;&gt; &lt;/strong&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;ft&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;list-style-type: disc; vertical-align: baseline;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Example of specifying properties to be shown:&lt;/span&gt;&lt;span style=&quot;font-style: italic; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;gwmi win32_logicaldisk | ft &lt;/span&gt;&lt;span style=&quot;font-style: italic; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;deviceid, drivetype, freespace&lt;/span&gt;&lt;span style=&quot;vertical-align: baseline; white-space: pre-wrap;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;font-style: italic; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;gwmi win32_logicaldisk | ft &lt;/span&gt;&lt;span style=&quot;font-style: italic; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;-propertyname deviceid, drivetype, freespace&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;list-style-type: disc; vertical-align: baseline;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Example of autosizing columns:&lt;/span&gt;&lt;span style=&quot;font-style: italic; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;gwmi win32_logicaldisk | ft deviceid, drivetype, freespace &lt;/span&gt;&lt;span style=&quot;font-style: italic; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;-autosize&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;list-style-type: disc; vertical-align: baseline;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;vertical-align: baseline; white-space: pre-wrap;&quot;&gt;An example of the output can be seen below:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 15px; font-weight: bold;&quot;&gt;&lt;img title=&quot;format-table.png&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyOcgZrI8Kh0K9CRGhGTboq90Ptd33ZeNjgv34Cg7ThYkiT3HT9nU-KSitccBGEAhZlXhAaZ3_ezcp6MkqqeApBLB1swBsyM2dPpRTxDF1lpZVXZ015s84XFdE-KH6tNVDavF55w3-UYw/?imgmax=800&quot; alt=&quot;Format table&quot; width=&quot;600&quot; height=&quot;74&quot; border=&quot;0&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 style=&quot;font-weight: normal;&quot; dir=&quot;ltr&quot;&gt;&lt;strong id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;color: orange; font-size: 16px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Format-Wide&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/h3&gt;
&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;list-style-type: disc; vertical-align: baseline;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Formats objects as a wide table that displays only one property of each object. Display data on multiple columns across the screen.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;list-style-type: disc; vertical-align: baseline;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Alias:&lt;strong style=&quot;font-weight: normal;&quot;&gt; &lt;/strong&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;fw&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;list-style-type: disc; vertical-align: baseline;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Example of specifying properties to be shown:&lt;/span&gt;&lt;span style=&quot;font-style: italic; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;gwmi win32_logicaldisk | fw &lt;/span&gt;&lt;span style=&quot;font-style: italic; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;deviceid, drivetype, freespace&lt;/span&gt;&lt;span style=&quot;vertical-align: baseline; white-space: pre-wrap;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;font-style: italic; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;gwmi win32_logicaldisk | fw &lt;/span&gt;&lt;span style=&quot;font-style: italic; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;-propertyname deviceid, drivetype, freespace&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;list-style-type: disc; vertical-align: baseline;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Example of autosizing columns:&lt;/span&gt;&lt;span style=&quot;font-style: italic; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;gwmi win32_logicaldisk | fw deviceid, drivetype, freespace &lt;/span&gt;&lt;span style=&quot;font-style: italic; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;-autosize&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;list-style-type: disc; vertical-align: baseline;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;vertical-align: baseline; white-space: pre-wrap;&quot;&gt;An example of the output can be seen below:&lt;span style=&quot;font-size: 15px; font-weight: bold;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;strong style=&quot;font-weight: normal;&quot;&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 style=&quot;font-weight: normal;&quot; dir=&quot;ltr&quot;&gt;&lt;strong id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;color: orange; font-size: 16px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Format-Custom&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;&lt;a style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot; href=&quot;https://lh4.googleusercontent.com/rDAFbPRynnohVIDTY8XmHQ76_BIEXNt3yXQceziDytcZWOvF-wjhU-Cgai490ah0RHRZ912tdSmzbqQ8Lj0cSo0rwBa56iEXy6DbTYrXHatXu3qawccx&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;list-style-type: disc; vertical-align: baseline;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Uses a customized view to format the output.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;list-style-type: disc; vertical-align: baseline;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Alias:&lt;strong style=&quot;font-weight: normal;&quot;&gt; &lt;/strong&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;fc&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li style=&quot;list-style-type: disc; vertical-align: baseline;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Example of specifying properties to be shown:&lt;/span&gt;&lt;span style=&quot;font-style: italic; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;gwmi win32_logicaldisk | fc &lt;/span&gt;&lt;span style=&quot;font-style: italic; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;deviceid, drivetype, freespace&lt;/span&gt;&lt;span style=&quot;vertical-align: baseline; white-space: pre-wrap;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;font-style: italic; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;gwmi win32_logicaldisk | fc &lt;/span&gt;&lt;span style=&quot;font-style: italic; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;-propertyname deviceid, drivetype, freespace&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;list-style-type: disc; vertical-align: baseline;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Example of autosizing columns:&lt;/span&gt;&lt;span style=&quot;font-style: italic; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;gwmi win32_logicaldisk | fc deviceid, drivetype, freespace &lt;/span&gt;&lt;span style=&quot;font-style: italic; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;-autosize &lt;br /&gt;&lt;img title=&quot;format-wide.png&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2akeRPAHcAnZyJ_uqQ5B0uPjlLZPY2KbFqmWY0uUseNQUrTwupTtYBnt-d5o7FeCYmmUjhZH_3cwc7qLZ3ymIB2LdrHX_k1iLGP9A-0SQqmtBGJcR9T003BIHrs4E7pHSlldDDwetFGM/?imgmax=800&quot; alt=&quot;Format wide&quot; width=&quot;600&quot; height=&quot;104&quot; border=&quot;0&quot; /&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;&lt;strong id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;font-size: 15px; white-space: pre-wrap;&quot;&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong id=&quot;internal-source-marker_0.7995181211736053&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;The &lt;/span&gt;&lt;span style=&quot;vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Format-Custom&lt;/span&gt;&lt;span style=&quot;font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; cmdlet formats the output of a command as defined in an &lt;/span&gt;&lt;span style=&quot;font-weight: bold; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;alternate view&lt;/span&gt;&lt;span style=&quot;font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;. &lt;/span&gt;&lt;span style=&quot;vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Format-Custom&lt;/span&gt;&lt;span style=&quot;font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; is designed to display views that are not just tables or just lists. You can use the views defined in the &lt;/span&gt;&lt;span style=&quot;font-weight: bold; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;*format.PS1XML&lt;/span&gt;&lt;span style=&quot;font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; files in the Windows PowerShell directory, or you can create your own views in new &lt;/span&gt;&lt;span style=&quot;font-weight: bold; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;PS1XML&lt;/span&gt;&lt;span style=&quot;font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; files and &lt;/span&gt;&lt;span style=&quot;font-weight: bold; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;use the Update-FormatData cmdlet&lt;/span&gt;&lt;span style=&quot;font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; to add them to Windows PowerShell.&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://dpruna.blogspot.com/feeds/5043525428197792532/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dpruna.blogspot.com/2012/10/learning-powershell-part-2-sorting.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/5043525428197792532'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/5043525428197792532'/><link rel='alternate' type='text/html' href='http://dpruna.blogspot.com/2012/10/learning-powershell-part-2-sorting.html' title='Learning PowerShell Part 2: Sorting, Grouping and Formating Output'/><author><name>dpruna</name><uri>http://www.blogger.com/profile/10480546093988478935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-HLB5NLzxBbh8g2tOjb8Iw5-uxAvd8rn7lYDuyu3hRmkezV-SjKBTaGZT_xaADOIGrePFx-7ODGCuzvFhDIoW-ylSwQKXJC1n6WQ6zwTT9pzBcw-0DVuenpuG5XRg-nXai0k-2J0aML0/s72-c?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8915965384076618075.post-1791911050598561931</id><published>2012-09-02T09:48:00.000+03:00</published><updated>2012-09-11T09:19:23.581+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PowerShell"/><title type='text'>Learning PowerShell Part 1: First acquaintance</title><content type='html'>&lt;h2&gt;
Helloooo PowerShell!&lt;/h2&gt;
Started to learn &lt;b&gt;PowerShell, &lt;/b&gt;thus&amp;nbsp;today I&#39;ll start a four part learning blog posts series on&amp;nbsp;&lt;b&gt;PowerShell&lt;/b&gt;.&lt;br /&gt;
The information contained in these blog posts will advanced as my knowledge of &lt;b&gt;PowerShell&lt;/b&gt; advances.&lt;br /&gt;
&lt;br /&gt;
So for the&amp;nbsp;beginning&amp;nbsp;it will be based on how to obtain information about &lt;b&gt;PowerShell &lt;/b&gt;through &lt;b&gt;PowerShell&lt;/b&gt;. I think that this method will help enrich your current &lt;b&gt;PowerShell &lt;/b&gt;knowledge and make you a better &lt;b&gt;PowerShell &lt;/b&gt;script writer.&lt;br /&gt;
&lt;br /&gt;
Let&#39;s get started then....&lt;br /&gt;
&lt;h2&gt;
What is &lt;b&gt;PowerShell&lt;/b&gt;?&lt;/h2&gt;
A not so new anymore and very powerful command line/scripting language for Windows.&lt;br /&gt;
You can compare it with Unix&amp;nbsp;bash.&lt;br /&gt;
&lt;h2&gt;
Why a SharePoint developer should learn PowerShell?&lt;/h2&gt;
Because is the replacement of &lt;i&gt;stsadm &lt;/i&gt;admin utility and because it will help you, more easily, perform admin tasks and tests related to your daily SharePoint tasks.&lt;br /&gt;
&lt;h2&gt;
PowerShell Basics&lt;/h2&gt;
Self learning PowerShell can be done with two commands:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;man &lt;/b&gt;(alias for &lt;b&gt;Get-Help&lt;/b&gt; command)&lt;/li&gt;
&lt;li&gt;&lt;b&gt;gcm &lt;/b&gt;(alias for &lt;b&gt;Get-Command&lt;/b&gt; command)&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
I&#39;ll be using aliases because they are more shorter then the actual commands and I&#39;m kind of a&amp;nbsp;lazy&amp;nbsp;person ;)&lt;/div&gt;
&lt;h3&gt;
Get-Help Command&lt;/h3&gt;
&lt;div&gt;
The first command,&amp;nbsp;&lt;b&gt;Get-Help&lt;/b&gt;,&lt;b&gt;&amp;nbsp;&lt;/b&gt;(and its unix alias &lt;b&gt;man&lt;/b&gt;&amp;nbsp;that I&#39;ll be using for now on :D) is the first command you should learn to work with. It will give all the information about any command in &lt;b&gt;PowerShell &lt;/b&gt;and furthermore it will give you access to &quot;&lt;b&gt;about_&lt;/b&gt;&quot; help topics.&lt;/div&gt;
&lt;h4&gt;
Getting help on a known command&lt;/h4&gt;
Say you know the command name but want to see what the man pages for that command contains. You type in PowerShell console:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;man get-command&lt;/b&gt;&lt;/blockquote&gt;
or&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;man gcm&lt;/b&gt;&lt;/blockquote&gt;
&lt;h4&gt;
Find a command that does the job you want to do&lt;/h4&gt;
If you don&#39;t know the command name but you know that it is a get command, you can display all get commands by typing:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;man get-*&lt;/b&gt;&lt;/blockquote&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidk48NVbt949lggSw1M3K9sFaEp28bznKyLohy84kTFmecWqzupB_dQLNLjAtlGZw6iaPs54evf-lWszS2OGtBDaH-XBjcRlOfEDpz1_M3lAd8k8geCAfNi6TAKIYOrTQKZFVoI7M8srM/s1600/get-help+wildcards.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;135&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidk48NVbt949lggSw1M3K9sFaEp28bznKyLohy84kTFmecWqzupB_dQLNLjAtlGZw6iaPs54evf-lWszS2OGtBDaH-XBjcRlOfEDpz1_M3lAd8k8geCAfNi6TAKIYOrTQKZFVoI7M8srM/s400/get-help+wildcards.PNG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
As you can see from the picture above this will give you all the commands that start with get-, will&amp;nbsp; give you the type of command (Function, Cmdlet, Script, etc.) and also a short description of what the command does.&lt;br /&gt;
This way you can find the command that you were looking for.&lt;br /&gt;
&lt;h4&gt;
Finding the information your looking for in help topics&lt;/h4&gt;
&lt;div&gt;
If you want to get a job done in &lt;b&gt;PowerShell &lt;/b&gt;and you do not know where to start then look into &lt;b&gt;PowerShell &lt;/b&gt;help topics.&lt;/div&gt;
&lt;div&gt;
Say you need to find an alias for a&amp;nbsp;command. Then you must look in the aliases help topic of &lt;b&gt;PowerShell&lt;/b&gt;. But what is that topic. Let&#39;s display all &lt;b&gt;PowerShell&amp;nbsp;&lt;/b&gt;topics&amp;nbsp;(all help topics or help files in &lt;b&gt;PowerShell&lt;/b&gt;&amp;nbsp;start with &quot;&lt;i&gt;about_&lt;/i&gt;&quot; prefix).&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;man about_*&lt;/b&gt;&lt;/blockquote&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVfeKzRJCEPHYYPRebIEIJ4WSxFNOYlqG4b_hk-yy6ybjWC2MSQUQYj-NmuGFBC7Skc_zLTUXaki6kX_2nXtCwGF1Ldnat-2ia8VMBLKwrbbCJym7uxuKBwKSi4gEk51tAkfpYpseBDDc/s1600/powershell_helpfiles.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;112&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVfeKzRJCEPHYYPRebIEIJ4WSxFNOYlqG4b_hk-yy6ybjWC2MSQUQYj-NmuGFBC7Skc_zLTUXaki6kX_2nXtCwGF1Ldnat-2ia8VMBLKwrbbCJym7uxuKBwKSi4gEk51tAkfpYpseBDDc/s400/powershell_helpfiles.PNG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
As you can see from the picture above&lt;i&gt; about_aliases&lt;/i&gt; topic is the first in the list.&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;man about_aliases&lt;/b&gt;&lt;/blockquote&gt;
in order to read about aliases.&lt;br /&gt;
&lt;h4&gt;
More on PowerShell &lt;i&gt;man &lt;/i&gt;command&lt;/h4&gt;
&lt;div&gt;
With the &lt;b&gt;man &lt;/b&gt;command you can get extract specialized information about a command like:&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;see usage examples by using the &quot;&lt;b&gt;-examples&lt;/b&gt;&quot; argument&lt;br /&gt;&lt;b&gt;man Get-Command -examples&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;see detailed information by using the &quot;&lt;b&gt;-detailed&lt;/b&gt;&quot; argument&lt;br /&gt;&lt;b&gt;man Get-Command -detailed&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;see full help by using the &quot;&lt;b&gt;-full&lt;/b&gt;&quot; argument&lt;br /&gt;&lt;b&gt;man Get-Command -full&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;h3&gt;
Get-Comamnd command (&lt;i&gt;gcm&lt;/i&gt;)&lt;/h3&gt;
When I first encountered the &lt;b&gt;gcm &lt;/b&gt;command I was wondering what is the difference between the &lt;b&gt;man &lt;/b&gt;and &lt;b&gt;gcm &lt;/b&gt;commands. It seems that both displays informations about the command parameter supplied to them...but more on this on a dedicated post. For know let&#39;s see&amp;nbsp;what &lt;b&gt;gcm&lt;/b&gt; shows us about &lt;b&gt;dir&lt;/b&gt;:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;gcm dir&lt;/b&gt;&lt;/blockquote&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9wDXUfXlC_quZmMVS2sfkY1YjxLvmrWMxRbbBUiuisA8yBNNH5uO1Ayoqmy49OYND40i1T38bqWYM7HQOE_VjiY1qz5ZGgJxJSQ0yKHNalDSuGqK1tOMABKSAv_AwISUJmK8M9mxN7fw/s1600/Get-Help+dir.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;28&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9wDXUfXlC_quZmMVS2sfkY1YjxLvmrWMxRbbBUiuisA8yBNNH5uO1Ayoqmy49OYND40i1T38bqWYM7HQOE_VjiY1qz5ZGgJxJSQ0yKHNalDSuGqK1tOMABKSAv_AwISUJmK8M9mxN7fw/s400/Get-Help+dir.PNG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
So it tells us that &lt;b&gt;dir&amp;nbsp;&lt;/b&gt;is an alias for&lt;b&gt; Get-ChildItem&amp;nbsp;&lt;/b&gt;command.&lt;br /&gt;
&lt;h4&gt;
Getting basic info on commands of specific types&lt;/h4&gt;
&lt;div&gt;
Say you want to find out what the aliases in the current &lt;b&gt;PowerShell &lt;/b&gt;session. You will make use of &quot;&lt;b&gt;-CommandType&lt;/b&gt;&quot; argument of &lt;b&gt;gcm&lt;/b&gt;&amp;nbsp;command like bellow:&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;gcm -CommandType alias&lt;/b&gt;&lt;/blockquote&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhunmYEywnL0KMiqmrdm8EHut3HmB6FOqbC8IqniiH9W7ca58TVC6mYtglbvLvvHrRzDA7ClUR_VYFKOuX9ruR25MQlDXBH4JHXb3YqczOK1r_SHKrZCmEqKGqYr_bQY_W3I3Oxdym3NLM/s1600/Get-Command+comandtype+alias.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;127&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhunmYEywnL0KMiqmrdm8EHut3HmB6FOqbC8IqniiH9W7ca58TVC6mYtglbvLvvHrRzDA7ClUR_VYFKOuX9ruR25MQlDXBH4JHXb3YqczOK1r_SHKrZCmEqKGqYr_bQY_W3I3Oxdym3NLM/s400/Get-Command+comandtype+alias.PNG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
There you go all aliases from current &lt;b&gt;PowerShell&lt;/b&gt;&amp;nbsp;session.&lt;br /&gt;
&lt;br /&gt;
In the next post will see more of &lt;b&gt;man &lt;/b&gt;and&lt;b&gt; gcm&lt;/b&gt;&amp;nbsp;in action, trying to obtain an .csv file with all aliases in &lt;b&gt;PowerShell&lt;/b&gt;. I will also&amp;nbsp;bring more &lt;b&gt;PowerShell &lt;/b&gt;commands to the table...so stay tooned... ;)</content><link rel='replies' type='application/atom+xml' href='http://dpruna.blogspot.com/feeds/1791911050598561931/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dpruna.blogspot.com/2012/09/learning-powershell-part-1-first.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/1791911050598561931'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/1791911050598561931'/><link rel='alternate' type='text/html' href='http://dpruna.blogspot.com/2012/09/learning-powershell-part-1-first.html' title='Learning PowerShell Part 1: First acquaintance'/><author><name>dpruna</name><uri>http://www.blogger.com/profile/10480546093988478935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidk48NVbt949lggSw1M3K9sFaEp28bznKyLohy84kTFmecWqzupB_dQLNLjAtlGZw6iaPs54evf-lWszS2OGtBDaH-XBjcRlOfEDpz1_M3lAd8k8geCAfNi6TAKIYOrTQKZFVoI7M8srM/s72-c/get-help+wildcards.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8915965384076618075.post-7486247052794405784</id><published>2012-08-21T23:59:00.000+03:00</published><updated>2012-08-21T23:59:06.922+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CRM 2011"/><title type='text'>An error occurred when verifying security for the message.</title><content type='html'>Running CRM Customer Portal I got the following error:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
An error occurred when verifying security for the message.&lt;/blockquote&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Verify that time is&amp;nbsp;synchronised&amp;nbsp;between the server that is hosting the CRM 2011 Customer Portal and the server that is hosting CRM 2011.&lt;br /&gt;
Immediately after time synchronization everything started to work.&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://dpruna.blogspot.com/feeds/7486247052794405784/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dpruna.blogspot.com/2012/08/an-error-occurred-when-verifying.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/7486247052794405784'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/7486247052794405784'/><link rel='alternate' type='text/html' href='http://dpruna.blogspot.com/2012/08/an-error-occurred-when-verifying.html' title='An error occurred when verifying security for the message.'/><author><name>dpruna</name><uri>http://www.blogger.com/profile/10480546093988478935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8915965384076618075.post-1479126520892687406</id><published>2012-07-03T22:11:00.001+03:00</published><updated>2013-03-27T03:35:59.377+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><title type='text'>Using DateTimeControl in SharePoint application page development</title><content type='html'>&lt;p&gt;I was in a need of a date time picker control that I could use in a SharePoint application page. Searched thought the web for an ASP.NET date time picker control but I wasn’t very pleased with results found.&lt;/p&gt;
&lt;p&gt;I realized that I didn’t like the controls found because I was comparing them with SharePoint date time picker. I was searching for a control that will mimic the one in SharePoint.&lt;/p&gt;
&lt;p&gt;Then it hit me, way not try to see if I can use the one in SharePoint.&lt;/p&gt;
&lt;p&gt;Looking through Microsoft.SharePoint.WebControls namespace I found the control that I was interested in: &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.datetimecontrol&quot; target=&quot;_blank&quot;&gt;DateTimeControl&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;It was just under my nose but I didn’t see it…probably because of the nose&lt;img class=&quot;wlEmoticon wlEmoticon-smile&quot; style=&quot;border-style: none;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitbUv1e5LV3nj6KEtycWVPxyJmuT0vFBVWxq-BYo79jZAInTGatfQw8v3VSpHwZcpgoK1Lbd3_b6iVEchkXU_8lAK4SwWS3H45wDAlxzZ4ew5QcWUZQaj5MYV47QIKSVyePaO5ORhO_H0/?imgmax=800&quot; alt=&quot;Smile&quot; /&gt;.&lt;/p&gt;
&lt;p&gt;So putting the control at work I discovered that it looked afoul. I was very disappointed at the beginning. Why would the one on SharePoint forms looked so nice and the one on my application page looked so ugly. Back to the documentation…and there it was the property that make my nose normal again…it is called &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.datetimecontrol.datepickerframeurl&quot; target=&quot;_blank&quot;&gt;DatePickerFrameUrl&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This property was not set correctly and therefore the control looked so ugly.&lt;/p&gt;
&lt;p&gt;The correct way to set this property is as follows:&lt;/p&gt;
&lt;div id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:ff154710-6e2c-46d7-a4d1-4ced0d28042a&quot; class=&quot;wlWriterEditableSmartContent&quot; style=&quot;margin: 0px; display: inline; float: none; padding: 0px;&quot;&gt;
&lt;div style=&quot;border: #000080 1px solid; color: #000; font-family: &#39;Courier New&#39;, Courier, Monospace; font-size: 10pt;&quot;&gt;
&lt;div style=&quot;background: #ddd; max-height: 300px; overflow: auto;&quot;&gt;&lt;ol style=&quot;background: #ffffff; margin: 0 0 0 2em; padding: 0 0 0 5px; white-space: nowrap;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;var&lt;/span&gt; dtField = (&lt;span style=&quot;color: #2b91af;&quot;&gt;SPFieldDateTime&lt;/span&gt;)field;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;var&lt;/span&gt; date = &lt;span style=&quot;color: #0000ff;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;DateTimeControl&lt;/span&gt; { DateOnly = (dtField.DisplayFormat == &lt;span style=&quot;color: #2b91af;&quot;&gt;SPDateTimeFieldFormatType&lt;/span&gt;.DateOnly) };&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;if&lt;/span&gt; (Web != &lt;span style=&quot;color: #0000ff;&quot;&gt;null&lt;/span&gt; &amp;amp;&amp;amp; Web.ServerRelativeUrl != &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;/&quot;&lt;/span&gt;)&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;    date.DatePickerFrameUrl = Web.ServerRelativeUrl + date.DatePickerFrameUrl;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Now the date picker looks and behaves like the one on SharePoint forms. An interesting thing to note is the value of this property…study it to get more insight on this control.&lt;/p&gt;
&lt;p&gt;Another SharePoint mystery solved&lt;img class=&quot;wlEmoticon wlEmoticon-winkingsmile&quot; style=&quot;border-style: none;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Pb6qeRPjQvqcDzqdM6L5qkf3CdxfMxdM2Ta2TYM60_MrOS5GuiNQYXhrpfgpDRxbyH47DqNtRD3UOvFyU2fkD_9MYxlfcWXfClk26_7-fNUhrqF8Egs1IpT2MDN6qifydMwm-IqhXnA/?imgmax=800&quot; alt=&quot;Winking smile&quot; /&gt;&lt;/p&gt;
&lt;div id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:1576185c-bdf8-4d1b-ba98-b46acf8dc68e&quot; class=&quot;wlWriterEditableSmartContent&quot; style=&quot;margin: 0px; display: inline; float: none; padding: 0px;&quot;&gt;Technorati Tags: &lt;a href=&quot;http://technorati.com/tags/SharePoint+2010&quot; rel=&quot;tag&quot;&gt;SharePoint 2010&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/Web+Controls&quot; rel=&quot;tag&quot;&gt;Web Controls&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dpruna.blogspot.com/feeds/1479126520892687406/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dpruna.blogspot.com/2012/07/using-datetimecontrol-in-sharepoint.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/1479126520892687406'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/1479126520892687406'/><link rel='alternate' type='text/html' href='http://dpruna.blogspot.com/2012/07/using-datetimecontrol-in-sharepoint.html' title='Using DateTimeControl in SharePoint application page development'/><author><name>dpruna</name><uri>http://www.blogger.com/profile/10480546093988478935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitbUv1e5LV3nj6KEtycWVPxyJmuT0vFBVWxq-BYo79jZAInTGatfQw8v3VSpHwZcpgoK1Lbd3_b6iVEchkXU_8lAK4SwWS3H45wDAlxzZ4ew5QcWUZQaj5MYV47QIKSVyePaO5ORhO_H0/s72-c?imgmax=800" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8915965384076618075.post-8083392663012553376</id><published>2012-05-28T03:07:00.001+03:00</published><updated>2012-05-28T03:09:03.429+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET Framework"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><category scheme="http://www.blogger.com/atom/ns#" term="WCF"/><title type='text'>Use XPathSelectElement on XML returned by SharePoint service reference methods</title><content type='html'>&lt;p&gt;In previous post we received the list and view &lt;em&gt;XElement&lt;/em&gt; from SharePoint &lt;em&gt;lists.asmx&lt;/em&gt; service reference by calling its &lt;em&gt;GetListAndView&lt;/em&gt; method.&lt;/p&gt; &lt;p&gt;As you already might of noticed all xml returned by SharePoint web services have at least one xml namespace. &lt;/p&gt; &lt;p&gt;This prevents &lt;em&gt;XPathSelectElement&lt;/em&gt; one parameter method to work correctly as it does not know how to work with namespace xml.&lt;/p&gt; &lt;p&gt;You must use the second overloaded &lt;em&gt;XPathSelectElement &lt;/em&gt;method, the one that receives a &lt;em&gt;IXmlNamespaceResolver&lt;/em&gt; parameter.&lt;/p&gt; &lt;p&gt;The class that implements the above mentioned interface is &lt;em&gt;XmlNamespaceManager. &lt;/em&gt;So we must create a instance of this class and pass it to &lt;em&gt;XPathSelectElement&lt;/em&gt; method like bellow:&lt;/p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:02af19c5-5ad2-4363-af82-03d4363cc0b5&quot; class=&quot;wlWriterEditableSmartContent&quot;&gt; &lt;div style=&quot;border: #000080 1px solid; color: #000; font-family: &#39;Courier New&#39;, Courier, Monospace; font-size: 10pt&quot;&gt; &lt;div style=&quot;background: #ddd; max-height: 300px; overflow: auto&quot;&gt; &lt;ol style=&quot;background: #ffffff; margin: 0 0 0 2.5em; padding: 0 0 0 5px; white-space: nowrap&quot;&gt; &lt;li&gt;&lt;span style=&quot;color:#0000ff&quot;&gt;var&lt;/span&gt; listAndViewSchema = client.GetListAndView(&lt;span style=&quot;color:#a31515&quot;&gt;&amp;quot;test&amp;quot;&lt;/span&gt;, &lt;span style=&quot;color:#a31515&quot;&gt;&amp;quot;{CD9AF200-75AB-47E3-9141-B13590DE2B3B}&amp;quot;&lt;/span&gt;);&lt;/li&gt; &lt;li style=&quot;background: #f3f3f3&quot;&gt;&lt;span style=&quot;color:#0000ff&quot;&gt;var&lt;/span&gt; reader = listAndViewSchema.CreateReader();&lt;/li&gt; &lt;li&gt;&lt;span style=&quot;color:#0000ff&quot;&gt;var&lt;/span&gt; nameTable = reader.NameTable;&lt;/li&gt; &lt;li style=&quot;background: #f3f3f3&quot;&gt;&lt;span style=&quot;color:#0000ff&quot;&gt;if&lt;/span&gt; (nameTable == &lt;span style=&quot;color:#0000ff&quot;&gt;null&lt;/span&gt;)&lt;/li&gt; &lt;li&gt;    &lt;span style=&quot;color:#0000ff&quot;&gt;throw&lt;/span&gt; &lt;span style=&quot;color:#0000ff&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color:#2b91af&quot;&gt;InvalidOperationException&lt;/span&gt;(&lt;span style=&quot;color:#a31515&quot;&gt;&amp;quot;nameTable is null&amp;quot;&lt;/span&gt;);&lt;/li&gt; &lt;li style=&quot;background: #f3f3f3&quot;&gt;&amp;nbsp;&lt;/li&gt; &lt;li&gt;&lt;span style=&quot;color:#0000ff&quot;&gt;var&lt;/span&gt; namespaceManager = &lt;span style=&quot;color:#0000ff&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color:#2b91af&quot;&gt;XmlNamespaceManager&lt;/span&gt;(nameTable);&lt;/li&gt; &lt;li style=&quot;background: #f3f3f3&quot;&gt;namespaceManager.AddNamespace(&lt;span style=&quot;color:#a31515&quot;&gt;&amp;quot;sp&amp;quot;&lt;/span&gt;, listAndViewSchema.Name.NamespaceName);&lt;/li&gt; &lt;li&gt;&amp;nbsp;&lt;/li&gt; &lt;li style=&quot;background: #f3f3f3&quot;&gt;&lt;span style=&quot;color:#0000ff&quot;&gt;var&lt;/span&gt; listSchema = listAndViewSchema.XPathSelectElement(&lt;span style=&quot;color:#a31515&quot;&gt;&amp;quot;//sp:List&amp;quot;&lt;/span&gt;, namespaceManager);&lt;/li&gt; &lt;li&gt;&lt;span style=&quot;color:#0000ff&quot;&gt;var&lt;/span&gt; viewSchema = listAndViewSchema.XPathSelectElement(&lt;span style=&quot;color:#a31515&quot;&gt;&amp;quot;//sp:View&amp;quot;&lt;/span&gt;, namespaceManager);&lt;/li&gt; &lt;/ol&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;p&gt;Now you can extract list schema and view schema…neat!&lt;/p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:ec8ec62a-1ec2-42fb-a576-b54e8cfc074c&quot; class=&quot;wlWriterEditableSmartContent&quot;&gt;Technorati Tags: &lt;a href=&quot;http://technorati.com/tags/XPath&quot; rel=&quot;tag&quot;&gt;XPath&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/XML&quot; rel=&quot;tag&quot;&gt;XML&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/SharePoint+2010&quot; rel=&quot;tag&quot;&gt;SharePoint 2010&lt;/a&gt;&lt;/div&gt;  </content><link rel='replies' type='application/atom+xml' href='http://dpruna.blogspot.com/feeds/8083392663012553376/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dpruna.blogspot.com/2012/05/use-xpathselectelement-on-xml-returned.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/8083392663012553376'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/8083392663012553376'/><link rel='alternate' type='text/html' href='http://dpruna.blogspot.com/2012/05/use-xpathselectelement-on-xml-returned.html' title='Use XPathSelectElement on XML returned by SharePoint service reference methods'/><author><name>dpruna</name><uri>http://www.blogger.com/profile/10480546093988478935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8915965384076618075.post-83003835757062859</id><published>2012-05-28T02:40:00.001+03:00</published><updated>2012-05-28T02:41:54.398+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><category scheme="http://www.blogger.com/atom/ns#" term="WCF"/><title type='text'>Exception of type ‘Microsoft.SharePoint.SoapServer.SoapServerException’ was thrown</title><content type='html'>&lt;p&gt;This blog post is a continuation of my previous one, &lt;a href=&quot;http://dpruna.blogspot.com/2012/05/consuming-sharepoint-listsasmx-web.html&quot; target=&quot;_blank&quot;&gt;Consuming SharePoint lists.asmx web service with WCF&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;While calling &lt;em&gt;GetListCollection&lt;/em&gt; method worked like charm, the calling of &lt;em&gt;GetListAndView&lt;/em&gt; method slapped me in the face with the following exception:&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghl-ttglrFg2KRlrnePGF64VUVC5FKgdPY9HiTpcOhA6lvMYYowk7lp9VmFHpg_Az_aHLWrzzwFNs33pf42xCTlXYq-3grkhyphenhyphenUygXgVaKAZI-sXQlFGo3S28TN8QVXwkhGZKYAyzWGzog/s1600-h/faultex%25255B3%25255D.png&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;faultex&quot; border=&quot;0&quot; alt=&quot;faultex&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRziFqx4oj99_mfZtuF_rY-lL0vvOt2QbZ2-K7cmhB7XhP2M7V_jkiqbrKa7B_RyWM7gPCPRyyPpUZWyf7U-2vqKQXPxBXu4dzu8HqnYBBQoeWdWlxJQCepMViTNjhLYWYX9rXA1rMmlA/?imgmax=800&quot; width=&quot;453&quot; height=&quot;258&quot;&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Weird at first…how could it be I said to myself. I was calling the method with parameters list name with value “&lt;em&gt;test&lt;/em&gt;”&amp;nbsp; and view name with value “&lt;em&gt;All Items&lt;/em&gt;”.&lt;/p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:03fd7bc8-e9da-4328-8fd9-fbfb568426a2&quot; class=&quot;wlWriterEditableSmartContent&quot;&gt; &lt;div style=&quot;border: #000080 1px solid; color: #000; font-family: &#39;Courier New&#39;, Courier, Monospace; font-size: 10pt&quot;&gt; &lt;div style=&quot;background: #ddd; max-height: 300px; overflow: auto&quot;&gt; &lt;ol style=&quot;background: #ffffff; margin: 0 0 0 2em; padding: 0 0 0 5px;&quot;&gt; &lt;li&gt;&lt;span style=&quot;color:#0000ff&quot;&gt;var&lt;/span&gt; listAndViewSchema = client.GetListAndView(&lt;span style=&quot;color:#a31515&quot;&gt;&amp;quot;test&amp;quot;&lt;/span&gt;, &lt;span style=&quot;color:#a31515&quot;&gt;&amp;quot;All Items&amp;quot;&lt;/span&gt;);&lt;/li&gt; &lt;/ol&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;p&gt;Keeping into account that the call to &lt;em&gt;GetList &lt;/em&gt;method&lt;em&gt;&amp;nbsp;&lt;/em&gt;worked I thought that there must be something wrong with the parameters. List name parameter was the same, so it must be something wrong with view name parameter.&lt;/p&gt; &lt;p&gt;Fired up &lt;a href=&quot;http://spm.codeplex.com/&quot; target=&quot;_blank&quot;&gt;SharePoint Manager 2010&lt;/a&gt; to make sure that the list and view are correct…and I was right. Looked at the site that I was consuming web services from and there it was:&lt;/p&gt; &lt;p&gt;&lt;em&gt;The name of the view (Name attribute of All Items view) was not “All Items” , as I was expected to be, it was a Guid, the view ID.&lt;/em&gt;&lt;/p&gt; &lt;p&gt;Copied the value of Name parameter and tested again the call to &lt;em&gt;GetListAndView&lt;/em&gt; and this time it worked flawlessly.&lt;/p&gt; &lt;p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:935e1659-eabc-4a36-8cbf-a2496009f7aa&quot; class=&quot;wlWriterEditableSmartContent&quot;&gt; &lt;div style=&quot;border: #000080 1px solid; color: #000; font-family: &#39;Courier New&#39;, Courier, Monospace; font-size: 10pt&quot;&gt; &lt;div style=&quot;background: #ddd; max-height: 300px; overflow: auto&quot;&gt; &lt;ol style=&quot;background: #ffffff; margin: 0 0 0 2em; padding: 0 0 0 5px;&quot;&gt; &lt;li&gt;&lt;span style=&quot;color:#0000ff&quot;&gt;var&lt;/span&gt; listAndViewSchema = client.GetListAndView(&lt;span style=&quot;color:#a31515&quot;&gt;&amp;quot;test&amp;quot;&lt;/span&gt;, &lt;span style=&quot;color:#a31515&quot;&gt;&amp;quot;{CD9AF200-75AB-47E3-9141-B13590DE2B3B}&amp;quot;&lt;/span&gt;);&lt;/li&gt; &lt;/ol&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt;&lt;/p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:46bd3b20-1559-485d-9b4b-39782e913392&quot; class=&quot;wlWriterEditableSmartContent&quot;&gt;Technorati Tags: &lt;a href=&quot;http://technorati.com/tags/Web+Services&quot; rel=&quot;tag&quot;&gt;Web Services&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/SharePoint+2010&quot; rel=&quot;tag&quot;&gt;SharePoint 2010&lt;/a&gt;&lt;/div&gt;  </content><link rel='replies' type='application/atom+xml' href='http://dpruna.blogspot.com/feeds/83003835757062859/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dpruna.blogspot.com/2012/05/exception-of-type-microsoftsharepointso.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/83003835757062859'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/83003835757062859'/><link rel='alternate' type='text/html' href='http://dpruna.blogspot.com/2012/05/exception-of-type-microsoftsharepointso.html' title='Exception of type ‘Microsoft.SharePoint.SoapServer.SoapServerException’ was thrown'/><author><name>dpruna</name><uri>http://www.blogger.com/profile/10480546093988478935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRziFqx4oj99_mfZtuF_rY-lL0vvOt2QbZ2-K7cmhB7XhP2M7V_jkiqbrKa7B_RyWM7gPCPRyyPpUZWyf7U-2vqKQXPxBXu4dzu8HqnYBBQoeWdWlxJQCepMViTNjhLYWYX9rXA1rMmlA/s72-c?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8915965384076618075.post-3212799012679654836</id><published>2012-05-28T01:40:00.001+03:00</published><updated>2012-05-28T01:40:53.225+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET Framework"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><category scheme="http://www.blogger.com/atom/ns#" term="WCF"/><title type='text'>Consuming SharePoint lists.asmx web service with WCF</title><content type='html'>&lt;p&gt;Today I was playing around with SharePoint web services.&lt;/p&gt; &lt;p&gt;Added a service reference (not web reference) to the VS2010 project and configured binding and endpoint address in order to consume &lt;em&gt;lists.asmx&lt;/em&gt; web service. The URL used was:&lt;/p&gt; &lt;p&gt;&lt;em&gt;http://servername:port/sites/dev/_vti_bin/lists.asmx?wsdl&lt;/em&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Binding configuration&lt;/strong&gt; is as follows:&lt;/p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:022c7279-6950-4318-99b8-be71daf0bdaf&quot; class=&quot;wlWriterEditableSmartContent&quot;&gt; &lt;div style=&quot;border: #000080 1px solid; color: #000; font-family: &#39;Courier New&#39;, Courier, Monospace; font-size: 10pt&quot;&gt; &lt;div style=&quot;background: #ddd; max-height: 300px; overflow: auto&quot;&gt; &lt;ol style=&quot;background: #ffffff; margin: 0 0 0 2.5em; padding: 0 0 0 5px; white-space: nowrap&quot;&gt; &lt;li&gt;&lt;span style=&quot;color:#0000ff&quot;&gt;var&lt;/span&gt; binding = &lt;span style=&quot;color:#0000ff&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color:#2b91af&quot;&gt;BasicHttpBinding&lt;/span&gt;(&lt;span style=&quot;color:#2b91af&quot;&gt;BasicHttpSecurityMode&lt;/span&gt;.TransportCredentialOnly)&lt;/li&gt; &lt;li style=&quot;background: #f3f3f3&quot;&gt;                              {&lt;/li&gt; &lt;li&gt;                                  Name = &lt;span style=&quot;color:#a31515&quot;&gt;&amp;quot;ListsSoap&amp;quot;&lt;/span&gt;,&lt;/li&gt; &lt;li style=&quot;background: #f3f3f3&quot;&gt;                                  CloseTimeout = &lt;span style=&quot;color:#2b91af&quot;&gt;TimeSpan&lt;/span&gt;.FromMinutes(1),&lt;/li&gt; &lt;li&gt;                                  OpenTimeout = &lt;span style=&quot;color:#2b91af&quot;&gt;TimeSpan&lt;/span&gt;.FromMinutes(1),&lt;/li&gt; &lt;li style=&quot;background: #f3f3f3&quot;&gt;                                  ReceiveTimeout = &lt;span style=&quot;color:#2b91af&quot;&gt;TimeSpan&lt;/span&gt;.FromMinutes(10),&lt;/li&gt; &lt;li&gt;                                  SendTimeout = &lt;span style=&quot;color:#2b91af&quot;&gt;TimeSpan&lt;/span&gt;.FromMinutes(1),&lt;/li&gt; &lt;li style=&quot;background: #f3f3f3&quot;&gt;                                  AllowCookies = &lt;span style=&quot;color:#0000ff&quot;&gt;false&lt;/span&gt;,&lt;/li&gt; &lt;li&gt;                                  BypassProxyOnLocal = &lt;span style=&quot;color:#0000ff&quot;&gt;false&lt;/span&gt;,&lt;/li&gt; &lt;li style=&quot;background: #f3f3f3&quot;&gt;                                  HostNameComparisonMode = &lt;span style=&quot;color:#2b91af&quot;&gt;HostNameComparisonMode&lt;/span&gt;.StrongWildcard,&lt;/li&gt; &lt;li&gt;                                  MaxBufferSize = &lt;span style=&quot;color:#2b91af&quot;&gt;Int32&lt;/span&gt;.MaxValue,&lt;/li&gt; &lt;li style=&quot;background: #f3f3f3&quot;&gt;                                  MaxBufferPoolSize = 524288,&lt;/li&gt; &lt;li&gt;                                  MaxReceivedMessageSize = &lt;span style=&quot;color:#2b91af&quot;&gt;Int32&lt;/span&gt;.MaxValue,&lt;/li&gt; &lt;li style=&quot;background: #f3f3f3&quot;&gt;                                  MessageEncoding = &lt;span style=&quot;color:#2b91af&quot;&gt;WSMessageEncoding&lt;/span&gt;.Text,&lt;/li&gt; &lt;li&gt;                                  TextEncoding = System.Text.&lt;span style=&quot;color:#2b91af&quot;&gt;Encoding&lt;/span&gt;.UTF8,&lt;/li&gt; &lt;li style=&quot;background: #f3f3f3&quot;&gt;                                  TransferMode = &lt;span style=&quot;color:#2b91af&quot;&gt;TransferMode&lt;/span&gt;.Buffered,&lt;/li&gt; &lt;li&gt;                                  UseDefaultWebProxy = &lt;span style=&quot;color:#0000ff&quot;&gt;true&lt;/span&gt;,&lt;/li&gt; &lt;li style=&quot;background: #f3f3f3&quot;&gt;                                  ReaderQuotas =&lt;/li&gt; &lt;li&gt;                                      {&lt;/li&gt; &lt;li style=&quot;background: #f3f3f3&quot;&gt;                                          MaxDepth = 32,&lt;/li&gt; &lt;li&gt;                                          MaxStringContentLength = 8192,&lt;/li&gt; &lt;li style=&quot;background: #f3f3f3&quot;&gt;                                          MaxArrayLength = 16384,&lt;/li&gt; &lt;li&gt;                                          MaxBytesPerRead = 4096,&lt;/li&gt; &lt;li style=&quot;background: #f3f3f3&quot;&gt;                                          MaxNameTableCharCount = 16384&lt;/li&gt; &lt;li&gt;                                      }&lt;/li&gt; &lt;li style=&quot;background: #f3f3f3&quot;&gt;                              };&lt;/li&gt; &lt;li&gt;&amp;nbsp;&lt;/li&gt; &lt;li style=&quot;background: #f3f3f3&quot;&gt;&amp;nbsp;&lt;/li&gt; &lt;li&gt;            binding.Security.Mode = &lt;span style=&quot;color:#2b91af&quot;&gt;BasicHttpSecurityMode&lt;/span&gt;.TransportCredentialOnly;&lt;/li&gt; &lt;li style=&quot;background: #f3f3f3&quot;&gt;            binding.Security.Transport.ClientCredentialType = &lt;span style=&quot;color:#2b91af&quot;&gt;HttpClientCredentialType&lt;/span&gt;.Ntlm;&lt;/li&gt; &lt;/ol&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;p&gt;&lt;strong&gt;Endpoint address:&lt;/strong&gt;&lt;/p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:9d0f7d75-3387-4cd0-8ec7-33f0e76114eb&quot; class=&quot;wlWriterEditableSmartContent&quot;&gt; &lt;div style=&quot;border: #000080 1px solid; color: #000; font-family: &#39;Courier New&#39;, Courier, Monospace; font-size: 10pt&quot;&gt; &lt;div style=&quot;background: #ddd; max-height: 300px; overflow: auto&quot;&gt; &lt;ol style=&quot;background: #ffffff; margin: 0 0 0 2em; padding: 0 0 0 5px;&quot;&gt; &lt;li&gt;&lt;span style=&quot;color:#0000ff&quot;&gt;var&lt;/span&gt; endpointAddress = &lt;span style=&quot;color:#0000ff&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color:#2b91af&quot;&gt;EndpointAddress&lt;/span&gt;(&lt;span style=&quot;color:#a31515&quot;&gt;&amp;quot;http://servername:port/sites/dev/_vti_bin/lists.asmx&amp;quot;&lt;/span&gt;);&lt;/li&gt; &lt;/ol&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;p&gt;&lt;strong&gt;SoapClient instance&lt;/strong&gt; created like this:&lt;/p&gt; &lt;p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:60ee2051-3167-48a7-a012-ffaed75aa577&quot; class=&quot;wlWriterEditableSmartContent&quot;&gt; &lt;div style=&quot;border: #000080 1px solid; color: #000; font-family: &#39;Courier New&#39;, Courier, Monospace; font-size: 10pt&quot;&gt; &lt;div style=&quot;background: #ddd; max-height: 300px; overflow: auto&quot;&gt; &lt;ol style=&quot;background: #ffffff; margin: 0 0 0 2em; padding: 0 0 0 5px; white-space: nowrap&quot;&gt; &lt;li&gt;&lt;span style=&quot;color:#0000ff&quot;&gt;var&lt;/span&gt; client = &lt;span style=&quot;color:#0000ff&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color:#2b91af&quot;&gt;ListsSoapClient&lt;/span&gt;(binding, endpointAddress);&lt;/li&gt; &lt;li style=&quot;background: #f3f3f3&quot;&gt;client.ClientCredentials.Windows.AllowedImpersonationLevel = &lt;span style=&quot;color:#2b91af&quot;&gt;TokenImpersonationLevel&lt;/span&gt;.Delegation;&lt;/li&gt; &lt;li&gt;client.ClientCredentials.Windows.AllowNtlm = &lt;span style=&quot;color:#0000ff&quot;&gt;true&lt;/span&gt;;&lt;/li&gt; &lt;li style=&quot;background: #f3f3f3&quot;&gt;client.ClientCredentials.Windows.ClientCredential.Domain = &lt;span style=&quot;color:#a31515&quot;&gt;&amp;quot;xxx&amp;quot;&lt;/span&gt;;&lt;/li&gt; &lt;li&gt;client.ClientCredentials.Windows.ClientCredential.UserName = &lt;span style=&quot;color:#a31515&quot;&gt;&amp;quot;xxx&amp;quot;&lt;/span&gt;;&lt;/li&gt; &lt;li style=&quot;background: #f3f3f3&quot;&gt;client.ClientCredentials.Windows.ClientCredential.Password = &lt;span style=&quot;color:#a31515&quot;&gt;&amp;quot;xxx&amp;quot;&lt;/span&gt;;&lt;/li&gt; &lt;/ol&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt;&lt;/p&gt; &lt;p&gt;Now in order to get list collection you make a call to &lt;em&gt;GetListCollection&lt;/em&gt; method like bellow:&lt;/p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:5f76d235-18af-41b4-b6ca-fb5a0a56597d&quot; class=&quot;wlWriterEditableSmartContent&quot;&gt; &lt;div style=&quot;border: #000080 1px solid; color: #000; font-family: &#39;Courier New&#39;, Courier, Monospace; font-size: 10pt&quot;&gt; &lt;div style=&quot;background: #ddd; max-height: 300px; overflow: auto&quot;&gt; &lt;ol style=&quot;background: #ffffff; margin: 0 0 0 2em; padding: 0 0 0 5px;&quot;&gt; &lt;li&gt;&lt;span style=&quot;color:#0000ff&quot;&gt;var&lt;/span&gt; xElem = client.GetListCollection();&lt;/li&gt; &lt;/ol&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;p&gt;Pretty straight forward, isn’t it?&lt;/p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:3be35a53-7cfc-4993-9352-dbbd9ea2e2cc&quot; class=&quot;wlWriterEditableSmartContent&quot;&gt;Technorati Tags: &lt;a href=&quot;http://technorati.com/tags/Web+Services&quot; rel=&quot;tag&quot;&gt;Web Services&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/SharePoint+2010&quot; rel=&quot;tag&quot;&gt;SharePoint 2010&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/WCF&quot; rel=&quot;tag&quot;&gt;WCF&lt;/a&gt;&lt;/div&gt;  </content><link rel='replies' type='application/atom+xml' href='http://dpruna.blogspot.com/feeds/3212799012679654836/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dpruna.blogspot.com/2012/05/consuming-sharepoint-listsasmx-web.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/3212799012679654836'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8915965384076618075/posts/default/3212799012679654836'/><link rel='alternate' type='text/html' href='http://dpruna.blogspot.com/2012/05/consuming-sharepoint-listsasmx-web.html' title='Consuming SharePoint lists.asmx web service with WCF'/><author><name>dpruna</name><uri>http://www.blogger.com/profile/10480546093988478935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>