<?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-1386236209117835869</id><updated>2025-12-11T06:50:24.690-08:00</updated><category term="SQL Server"/><category term="iOS"/><category term="GIS"/><category term="IT"/><category term="SQL"/><category term="C#"/><category term="xcode"/><category term="ArcGIS Server 10"/><category term="IIS"/><category term="ASP.NET"/><category term="Objective-C"/><category term="Programming Styles"/><category term="Core Data"/><category term="ESRI"/><category term="Flex"/><category term="Windows Server 2008"/><category term="iOS Simulator"/><category term="iPad"/><category term="iPhone"/><category term="Mac OSX"/><category term="PostgreSQL"/><category term="SQL Azure"/><category term="SQLite"/><category term="UIImage"/><category term="WCF"/><category term="iTunes"/><category term="nslog"/><title type='text'>Jack of All Trades - Developer &amp;amp; IT</title><subtitle type='html'>IT and Development Journal</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://jackofalltradesdeveloper.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Ahmed Ibrahim Khattab</name><uri>http://www.blogger.com/profile/06343046874255002479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-gHQiAJRGsEvGSFiWLeLRutspzw2Tqz3n0JJjYrkENRxozxkGVkZgW8Y1_xJVIG9cd6xS7gyJzC_FpGe0Ky2hmCFtlhYfpX5OLm7awSXeljNQSZE8KCS3e6teuhnLR-w/s220/IMG_0777.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>38</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1386236209117835869.post-5673994858811647067</id><published>2012-09-07T13:08:00.002-07:00</published><updated>2012-10-19T00:55:47.414-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mac OSX"/><title type='text'>Hidden Library Folder in Mac OSX Lion</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
By Default the Library folder in your /Users/&amp;lt;UserName&amp;gt;/ is hidden&lt;br /&gt;
&lt;br /&gt;
To unhide this folder, you need to use the command in the terminal window:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #fafafa; color: #606060; font-family: &#39;Helvetica Neue&#39;, Verdana, Helvetica, Tahoma, Arial, sans-serif; font-size: 13px; line-height: 16px; text-align: -webkit-auto;&quot;&gt;chflags nohidden ~/Library/&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #fafafa; color: #606060; font-family: &#39;Helvetica Neue&#39;, Verdana, Helvetica, Tahoma, Arial, sans-serif; font-size: 13px; line-height: 16px; text-align: -webkit-auto;&quot;&gt;&lt;br /&gt;&lt;/span&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/AVvXsEgqWUaRYR2WpTAOq1S6dUInhoRPMfzIYVQxbEpseoM4lb1JF6Ho5fdl3RQ_P4hLh_3WsfdZFk_Od04YF72hdHw5PNcG7vBsfgBY_YqpQ264lhvwGaoc_bxBj_fIkWwu3x0GK_o9Q79NvJmu/s1600/Screen+Shot+2012-09-07+at+12.55.20+PM.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/AVvXsEgqWUaRYR2WpTAOq1S6dUInhoRPMfzIYVQxbEpseoM4lb1JF6Ho5fdl3RQ_P4hLh_3WsfdZFk_Od04YF72hdHw5PNcG7vBsfgBY_YqpQ264lhvwGaoc_bxBj_fIkWwu3x0GK_o9Q79NvJmu/s1600/Screen+Shot+2012-09-07+at+12.55.20+PM.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: #fafafa; color: #606060; font-family: &#39;Helvetica Neue&#39;, Verdana, Helvetica, Tahoma, Arial, sans-serif; font-size: 13px; line-height: 16px; text-align: -webkit-auto;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #fafafa; color: #606060; font-family: &#39;Helvetica Neue&#39;, Verdana, Helvetica, Tahoma, Arial, sans-serif; font-size: 13px; line-height: 16px; text-align: -webkit-auto;&quot;&gt;&lt;iframe bordercolor=&quot;#000000&quot; frameborder=&quot;0&quot; height=&quot;150&quot; hspace=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://ad.doubleclick.net/adi/N7433.148119.BLOGGEREN/B6533661.1018;sz=180x150;ord=[timestamp]?;lid=41000000026530730;pid=62149;usg=AFHzDLvANV_RDLBIxcXxV2A26ZCX2b7aRQ;adurl=http%253A%252F%252Fwww.abt.com%252Fproduct%252F62149%252FApple-MC975LLA.html;pubid=581324;price=%242199.00;title=Apple+MacBook+Pro+2.3G...;merc=Abt+Electronics+%26+Appliances;imgsrc=http%3A%2F%2Fcontent.abt.com%2Fmedia%2Fimages%2Fproducts%2FBDP_Images%2Fbig_MC975LLA-1.jpg;width=110;height=63&quot; vspace=&quot;0&quot; width=&quot;180&quot;&gt;&lt;/iframe&gt;&lt;iframe bordercolor=&quot;#000000&quot; frameborder=&quot;0&quot; height=&quot;150&quot; hspace=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://ad.doubleclick.net/adi/N7433.148119.BLOGGEREN/B6535994.1341;sz=180x150;ord=[timestamp]?;lid=41000000005217789;pid=23134494;usg=AFHzDLsmY3_9UDimOumosnmu5AXppqJBzQ;adurl=http%253A%252F%252Fwww.officemax.com%252Ftechnology%252Fprinters%252Finkjet-all-in-one-printers%252Fproduct-prod3490080%253Fcm_mmc%253DPerformics-_-Technology-_-Printers-_-Inkjet%252520All-in-One%252520Printers%2526ci_src%253D14110944%2526ci_sku%253D23134494;pubid=581324;price=%24149.99;title=HP+Officejet+Pro+8600+...;merc=OfficeMax;imgsrc=http%3A%2F%2Fwww.officemax.com%2Fcatalog%2Fimages%2F397x353%2F23134494i_01.jpg;width=95;height=85&quot; vspace=&quot;0&quot; width=&quot;180&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jackofalltradesdeveloper.blogspot.com/feeds/5673994858811647067/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/09/hidden-library-folder-in-mac-osx-lion.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/5673994858811647067'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/5673994858811647067'/><link rel='alternate' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/09/hidden-library-folder-in-mac-osx-lion.html' title='Hidden Library Folder in Mac OSX Lion'/><author><name>Ahmed Ibrahim Khattab</name><uri>http://www.blogger.com/profile/06343046874255002479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-gHQiAJRGsEvGSFiWLeLRutspzw2Tqz3n0JJjYrkENRxozxkGVkZgW8Y1_xJVIG9cd6xS7gyJzC_FpGe0Ky2hmCFtlhYfpX5OLm7awSXeljNQSZE8KCS3e6teuhnLR-w/s220/IMG_0777.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqWUaRYR2WpTAOq1S6dUInhoRPMfzIYVQxbEpseoM4lb1JF6Ho5fdl3RQ_P4hLh_3WsfdZFk_Od04YF72hdHw5PNcG7vBsfgBY_YqpQ264lhvwGaoc_bxBj_fIkWwu3x0GK_o9Q79NvJmu/s72-c/Screen+Shot+2012-09-07+at+12.55.20+PM.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1386236209117835869.post-2154863235723602855</id><published>2012-08-10T10:58:00.001-07:00</published><updated>2012-09-28T21:44:14.147-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="iPad"/><category scheme="http://www.blogger.com/atom/ns#" term="iPhone"/><category scheme="http://www.blogger.com/atom/ns#" term="iTunes"/><title type='text'>Easiest Way to copy a folder to your iOS App using iTunes</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Let&#39;s say that your folder name is &quot;MyFolder&quot;&lt;br /&gt;
&lt;br /&gt;
Rename your folder to &quot;MyFolder.bundle&quot;&lt;br /&gt;
&lt;br /&gt;
Copy it via iTunes to your App, and then rename to &quot;MyFolder&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;iframe bordercolor=&quot;#000000&quot; frameborder=&quot;0&quot; height=&quot;150&quot; hspace=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://ad.doubleclick.net/adi/N7433.148119.BLOGGEREN/B6675536.588;sz=180x150;ord=[timestamp]?;lid=41000000028007181;pid=UBM9780596527228;usg=AFHzDLuaiZRHFvyZyZN0mi-bQyia1gUM1w;adurl=http%253A%252F%252Fwww.cdsbooksdvds.com%252Fproduct.jhtm%253Fsku%253DUBM9780596527228;pubid=581324;price=%2445.65;title=Cisco+IOS+Cookbook+By+...;merc=CDS+Books+and+DVDS;imgsrc=http%3A%2F%2Fc381045.r45.cf1.rackcdn.com%2F9780596527228.jpg;width=64;height=85&quot; vspace=&quot;0&quot; width=&quot;180&quot;&gt;&lt;/iframe&gt;&lt;iframe bordercolor=&quot;#000000&quot; frameborder=&quot;0&quot; height=&quot;150&quot; hspace=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://ad.doubleclick.net/adi/N7433.148119.BLOGGEREN/B6675536.589;sz=180x150;ord=[timestamp]?;lid=41000000028007181;pid=UBM9781118107324;usg=AFHzDLsDNvSefCKUTd4jAdqZF7qOuYhBVQ;adurl=http%253A%252F%252Fwww.cdsbooksdvds.com%252Fproduct.jhtm%253Fsku%253DUBM9781118107324;pubid=581324;price=%2431.59;title=Beginning+Ios+Game+Dev...;merc=CDS+Books+and+DVDS;imgsrc=http%3A%2F%2Fc381141.r41.cf1.rackcdn.com%2F9781118107324.jpg;width=67;height=85&quot; vspace=&quot;0&quot; width=&quot;180&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jackofalltradesdeveloper.blogspot.com/feeds/2154863235723602855/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/08/easiest-way-to-copy-folder-to-your-ios.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/2154863235723602855'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/2154863235723602855'/><link rel='alternate' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/08/easiest-way-to-copy-folder-to-your-ios.html' title='Easiest Way to copy a folder to your iOS App using iTunes'/><author><name>Ahmed Ibrahim Khattab</name><uri>http://www.blogger.com/profile/06343046874255002479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-gHQiAJRGsEvGSFiWLeLRutspzw2Tqz3n0JJjYrkENRxozxkGVkZgW8Y1_xJVIG9cd6xS7gyJzC_FpGe0Ky2hmCFtlhYfpX5OLm7awSXeljNQSZE8KCS3e6teuhnLR-w/s220/IMG_0777.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1386236209117835869.post-6231345999081343759</id><published>2012-08-09T00:12:00.001-07:00</published><updated>2012-09-28T21:51:05.187-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Core Data"/><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="Objective-C"/><category scheme="http://www.blogger.com/atom/ns#" term="xcode"/><title type='text'>How to see Core Data internal Fetches and Predicates</title><content type='html'>&lt;TABLE&gt;&lt;TR&gt;&lt;TD&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I&#39;m not sure if the title is really correct, but adding this argument will show you what core data is doing internally:&lt;br /&gt;
&lt;br /&gt;
-com.apple.CoreData.SQLDebug 1&lt;br /&gt;
&lt;br /&gt;
You need to go to the app and choose &quot;Edit Scheme ...&quot;&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/AVvXsEiODZQYd3bSJe_-xKLlW8pIa9zMKZ0HXes2x2n_dvSb9Ui6V1DN94-5Rmrw6pOqeEBGUovDJuCWVp1FaH5Q9E4dY01P_AG_fIG79xYHW_lEysdBIQ8pPUtPXcdXpYRcoK1bCnuOj8okuF24/s1600/Screen+Shot+2012-08-09+at+12.03.52+AM.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/AVvXsEiODZQYd3bSJe_-xKLlW8pIa9zMKZ0HXes2x2n_dvSb9Ui6V1DN94-5Rmrw6pOqeEBGUovDJuCWVp1FaH5Q9E4dY01P_AG_fIG79xYHW_lEysdBIQ8pPUtPXcdXpYRcoK1bCnuOj8okuF24/s1600/Screen+Shot+2012-08-09+at+12.03.52+AM.png&quot; /&gt;&lt;/a&gt;&lt;/div&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: left;&quot;&gt;
Then select the Run Debug and in the &quot;Arguments Passed On Launch&quot; add the command &quot;-com.apple.CoreData.SQLDebug 1&quot;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&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/AVvXsEgPj1OSOIhUBft_1gbYFq4yk_SGrKeMNjrNsuK2mNyV2bSPRGkWfoHq22-Zshx239se1Y1HYTiKOagdfXjOXeqpTz1K_wsmsj1h99peVY1H-qos677fm-ZJDpsRGD3AT0K51Jt3tHHzWpwR/s1600/Screen+Shot+2012-08-09+at+12.05.44+AM.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/AVvXsEgPj1OSOIhUBft_1gbYFq4yk_SGrKeMNjrNsuK2mNyV2bSPRGkWfoHq22-Zshx239se1Y1HYTiKOagdfXjOXeqpTz1K_wsmsj1h99peVY1H-qos677fm-ZJDpsRGD3AT0K51Jt3tHHzWpwR/s1600/Screen+Shot+2012-08-09+at+12.05.44+AM.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
You will see in the Console information from Core Data like the below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;b&gt;CoreData: sql: SELECT 0, t0.Z_PK, t0.Z_OPT, t0.ZEMPLOYEENAME FROM ZEMPLOYEES t0 WHERE&amp;nbsp; t0.ZEMPLOYEEID = ?&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;b&gt;CoreData: annotation: sql connection fetch time: 0.0029s&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;b&gt;CoreData: annotation: total fetch execution time: 0.2109s for 24 rows.&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/TD&gt;&lt;TD&gt;
&lt;IFRAME SRC=&quot;http://ad.doubleclick.net/adi/N7433.148119.BLOGGEREN/B6675536.590;sz=180x150;ord=[timestamp]?;lid=41000000028007181;pid=UBM9786134589482;usg=AFHzDLvILnNECF8OOcfmSHTv5a2HJiYswA;adurl=http%253A%252F%252Fwww.cdsbooksdvds.com%252Fproduct.jhtm%253Fsku%253DUBM9786134589482;pubid=581324;price=%2462.50;title=Core+Data;merc=CDS+Books+and+DVDS;imgsrc=http%3A%2F%2Fc383360.r60.cf1.rackcdn.com%2F9786134589482.jpg;width=56;height=85&quot; WIDTH=180 HEIGHT=150 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no BORDERCOLOR=&#39;#000000&#39;/&gt;
&lt;IFRAME SRC=&quot;http://ad.doubleclick.net/adi/N7433.148119.BLOGGEREN/B6675536.603;sz=180x150;ord=[timestamp]?;lid=41000000028007181;pid=UBM9780470636176;usg=AFHzDLt6FyJqiZCZb6kWs1vaKFKUzWZalQ;adurl=http%253A%252F%252Fwww.cdsbooksdvds.com%252Fproduct.jhtm%253Fsku%253DUBM9780470636176;pubid=581324;price=%2434.54;title=Professional+iPhone+an...;merc=CDS+Books+and+DVDS;imgsrc=http%3A%2F%2Fc379990.r90.cf1.rackcdn.com%2F9780470636176.jpg;width=67;height=85&quot; WIDTH=180 HEIGHT=150 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no BORDERCOLOR=&#39;#000000&#39;/&gt;
&lt;/TD&gt;&lt;/TR&gt;
&lt;/TABLE&gt;</content><link rel='replies' type='application/atom+xml' href='http://jackofalltradesdeveloper.blogspot.com/feeds/6231345999081343759/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/08/how-to-see-core-data-internal-fetches.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/6231345999081343759'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/6231345999081343759'/><link rel='alternate' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/08/how-to-see-core-data-internal-fetches.html' title='How to see Core Data internal Fetches and Predicates'/><author><name>Ahmed Ibrahim Khattab</name><uri>http://www.blogger.com/profile/06343046874255002479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-gHQiAJRGsEvGSFiWLeLRutspzw2Tqz3n0JJjYrkENRxozxkGVkZgW8Y1_xJVIG9cd6xS7gyJzC_FpGe0Ky2hmCFtlhYfpX5OLm7awSXeljNQSZE8KCS3e6teuhnLR-w/s220/IMG_0777.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiODZQYd3bSJe_-xKLlW8pIa9zMKZ0HXes2x2n_dvSb9Ui6V1DN94-5Rmrw6pOqeEBGUovDJuCWVp1FaH5Q9E4dY01P_AG_fIG79xYHW_lEysdBIQ8pPUtPXcdXpYRcoK1bCnuOj8okuF24/s72-c/Screen+Shot+2012-08-09+at+12.03.52+AM.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1386236209117835869.post-4865611248397233596</id><published>2012-07-27T21:55:00.001-07:00</published><updated>2012-07-27T21:55:28.705-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><category scheme="http://www.blogger.com/atom/ns#" term="SQLite"/><title type='text'>SQLite Commands</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
TRIM Command:&lt;br /&gt;
&lt;br /&gt;
This command will remove spaces from the beginning and the end of the Field.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;UPDATE&lt;/span&gt; &lt;span style=&quot;color: #6aa84f;&quot;&gt;Employee&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;SET&lt;/span&gt; FirstName = &lt;span style=&quot;color: purple;&quot;&gt;TRIM(&lt;/span&gt;FirstName&lt;span style=&quot;color: purple;&quot;&gt;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: purple;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Lower Command:&lt;br /&gt;
&lt;br /&gt;
This command will make the value in the field lower case.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;UPDATE&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #6aa84f;&quot;&gt;Employee&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;SET&lt;/span&gt;&amp;nbsp;FirstName =&amp;nbsp;&lt;span style=&quot;color: purple;&quot;&gt;LOWER(&lt;/span&gt;FirstName&lt;span style=&quot;color: purple;&quot;&gt;)&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;color: purple;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: purple;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jackofalltradesdeveloper.blogspot.com/feeds/4865611248397233596/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/07/sqlite-commands.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/4865611248397233596'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/4865611248397233596'/><link rel='alternate' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/07/sqlite-commands.html' title='SQLite Commands'/><author><name>Ahmed Ibrahim Khattab</name><uri>http://www.blogger.com/profile/06343046874255002479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-gHQiAJRGsEvGSFiWLeLRutspzw2Tqz3n0JJjYrkENRxozxkGVkZgW8Y1_xJVIG9cd6xS7gyJzC_FpGe0Ky2hmCFtlhYfpX5OLm7awSXeljNQSZE8KCS3e6teuhnLR-w/s220/IMG_0777.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1386236209117835869.post-582821253682858448</id><published>2012-07-24T00:42:00.000-07:00</published><updated>2012-10-20T14:28:52.771-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="iOS Simulator"/><category scheme="http://www.blogger.com/atom/ns#" term="iPad"/><category scheme="http://www.blogger.com/atom/ns#" term="iPhone"/><category scheme="http://www.blogger.com/atom/ns#" term="UIImage"/><category scheme="http://www.blogger.com/atom/ns#" term="xcode"/><title type='text'>UIImage Showing in Simulator, but not on Device (iPad/iPhone)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I found this weird problem where I was able to see the image on the simulator, but when I ran it on the device (iPad/iPhone), it wouldn&#39;t show up, I tried :&lt;br /&gt;
&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;To clean the project and rebuild&lt;/li&gt;
&lt;li&gt;Delete the App from the device&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
And then I looked at the File Inspector and compared this image with others that were showing&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
And found out that the target was not checked for this image :&lt;/div&gt;
&lt;div&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/AVvXsEi7iSyAd1iRdsmz67VuPCfB3kYZE2tvIxH4oMn9AltzH4G6KW1Hvx0jZ6AVsBXph_5VCHVoXlejjPmDi4-L9Iyys0yvUmRx6qgdNjgSorsCf7rXx8i0dzdTt1QE5xXr1ap80KuVv7IL0WU4/s1600/Screen+Shot+2012-07-24+at+12.35.02+AM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7iSyAd1iRdsmz67VuPCfB3kYZE2tvIxH4oMn9AltzH4G6KW1Hvx0jZ6AVsBXph_5VCHVoXlejjPmDi4-L9Iyys0yvUmRx6qgdNjgSorsCf7rXx8i0dzdTt1QE5xXr1ap80KuVv7IL0WU4/s640/Screen+Shot+2012-07-24+at+12.35.02+AM.png&quot; width=&quot;374&quot; /&gt;&lt;/a&gt;&lt;/div&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;iframe bordercolor=&quot;#000000&quot; frameborder=&quot;0&quot; height=&quot;150&quot; hspace=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://ad.doubleclick.net/adi/N7433.148119.BLOGGEREN/B6675536.1154;sz=180x150;ord=[timestamp]?;lid=41000000028007181;pid=UBM9780321769602;usg=AFHzDLso6AYYRkLOFkN6NrRi3hqYfML_Iw;adurl=http%253A%252F%252Fwww.cdsbooksdvds.com%252Fproduct.jhtm%253Fsku%253DUBM9780321769602;pubid=581324;price=%2437.49;title=Ios+Development+By+War...;merc=CDS+Books+and+DVDS;imgsrc=http%3A%2F%2Fc383480.r80.cf1.rackcdn.com%2F9780321769602.jpg;width=68;height=85&quot; vspace=&quot;0&quot; width=&quot;180&quot;&gt;&lt;/iframe&gt;&lt;iframe bordercolor=&quot;#000000&quot; frameborder=&quot;0&quot; height=&quot;150&quot; hspace=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://ad.doubleclick.net/adi/N7433.148119.BLOGGEREN/B6675536.1159;sz=180x150;ord=[timestamp]?;lid=41000000028007181;pid=UBM9781430240686;usg=AFHzDLtNYxpjsbyL5RiCEks90yEBRsTEIg;adurl=http%253A%252F%252Fwww.cdsbooksdvds.com%252Fproduct.jhtm%253Fsku%253DUBM9781430240686;pubid=581324;price=%2424.69;title=Taking+Your+Ipad+2+to+...;merc=CDS+Books+and+DVDS;imgsrc=http%3A%2F%2Fc374484.r84.cf1.rackcdn.com%2F9781430240686.jpg;width=68;height=85&quot; vspace=&quot;0&quot; width=&quot;180&quot;&gt;&lt;/iframe&gt;&lt;iframe bordercolor=&quot;#000000&quot; frameborder=&quot;0&quot; height=&quot;150&quot; hspace=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://ad.doubleclick.net/adi/N7433.148119.BLOGGEREN/B6675536.1157;sz=180x150;ord=[timestamp]?;lid=41000000028007181;pid=UBM9781449308360;usg=AFHzDLvo3nK1iNDUBXLyeGTich-YOBuaKw;adurl=http%253A%252F%252Fwww.cdsbooksdvds.com%252Fproduct.jhtm%253Fsku%253DUBM9781449308360;pubid=581324;price=%2422.98;title=Developing+Ios+Applica...;merc=CDS+Books+and+DVDS;imgsrc=http%3A%2F%2Fc382184.r84.cf1.rackcdn.com%2F9781449308360.jpg;width=64;height=85&quot; vspace=&quot;0&quot; width=&quot;180&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jackofalltradesdeveloper.blogspot.com/feeds/582821253682858448/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/07/uiimage-showing-in-simulator-but-not-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/582821253682858448'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/582821253682858448'/><link rel='alternate' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/07/uiimage-showing-in-simulator-but-not-on.html' title='UIImage Showing in Simulator, but not on Device (iPad/iPhone)'/><author><name>Ahmed Ibrahim Khattab</name><uri>http://www.blogger.com/profile/06343046874255002479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-gHQiAJRGsEvGSFiWLeLRutspzw2Tqz3n0JJjYrkENRxozxkGVkZgW8Y1_xJVIG9cd6xS7gyJzC_FpGe0Ky2hmCFtlhYfpX5OLm7awSXeljNQSZE8KCS3e6teuhnLR-w/s220/IMG_0777.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7iSyAd1iRdsmz67VuPCfB3kYZE2tvIxH4oMn9AltzH4G6KW1Hvx0jZ6AVsBXph_5VCHVoXlejjPmDi4-L9Iyys0yvUmRx6qgdNjgSorsCf7rXx8i0dzdTt1QE5xXr1ap80KuVv7IL0WU4/s72-c/Screen+Shot+2012-07-24+at+12.35.02+AM.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1386236209117835869.post-3611396374850859598</id><published>2012-07-16T01:16:00.000-07:00</published><updated>2012-07-16T01:16:08.500-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><title type='text'>Escaping Single Quote in SQL Server Command</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
To escape a single quote in SQL Server, you need to replace it with &lt;b&gt;TWO&lt;/b&gt; single quotes:&lt;br /&gt;
&lt;br /&gt;
For example, if you have a command string that is like :&lt;br /&gt;
&lt;br /&gt;
UPDATE Employee SET Description = &#39;He&lt;b&gt;&#39;&lt;/b&gt;s Cool&#39; WHERE EmployeeID = 56&lt;br /&gt;
&lt;br /&gt;
This will have an error, so you will need to write it like below:&lt;br /&gt;
&lt;br /&gt;
UPDATE Employee SET Description = &#39;He&lt;b&gt;&#39;&#39;&lt;/b&gt;s Cool&#39; WHERE EmployeeID = 56&lt;br /&gt;
&lt;br /&gt;
Here&#39;s a C# Code to do it:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font: 9.5px Consolas; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: #1738f5;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #1738f5;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #1738f5;&quot;&gt;string&lt;/span&gt; EscapeSpecialCharachtersFromValue(&lt;span style=&quot;color: #1738f5;&quot;&gt;string&lt;/span&gt; SQLCommand)&lt;/div&gt;
&lt;div style=&quot;font: 9.5px Consolas; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;font: 9.5px Consolas; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #1738f5;&quot;&gt;try&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 9.5px Consolas; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div style=&quot;font: 9.5px Consolas; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;SQLCommand&amp;nbsp;=&amp;nbsp;&lt;/span&gt;SQLCommand&lt;span class=&quot;Apple-style-span&quot;&gt;.Replace(&lt;span style=&quot;color: #b52422;&quot;&gt;&quot;&#39;&quot;&lt;/span&gt;, &lt;span style=&quot;color: #b52422;&quot;&gt;&quot;&#39;&#39;&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 9.5px Consolas; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font: 9.5px Consolas; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #1738f5;&quot;&gt;catch&lt;/span&gt; (&lt;span style=&quot;color: #32a2ba;&quot;&gt;Exception&lt;/span&gt; ex) { &lt;span style=&quot;color: #32a2ba;&quot;&gt;Console&lt;/span&gt;.WriteLine(ex.Message); }&lt;/div&gt;
&lt;div style=&quot;font: 9.5px Consolas; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #1738f5;&quot;&gt;return&lt;/span&gt;&amp;nbsp;&lt;/span&gt;SQLCommand&lt;span class=&quot;Apple-style-span&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 9.5px Consolas; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
}&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jackofalltradesdeveloper.blogspot.com/feeds/3611396374850859598/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/07/escaping-single-quote-in-sql-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/3611396374850859598'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/3611396374850859598'/><link rel='alternate' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/07/escaping-single-quote-in-sql-server.html' title='Escaping Single Quote in SQL Server Command'/><author><name>Ahmed Ibrahim Khattab</name><uri>http://www.blogger.com/profile/06343046874255002479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-gHQiAJRGsEvGSFiWLeLRutspzw2Tqz3n0JJjYrkENRxozxkGVkZgW8Y1_xJVIG9cd6xS7gyJzC_FpGe0Ky2hmCFtlhYfpX5OLm7awSXeljNQSZE8KCS3e6teuhnLR-w/s220/IMG_0777.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1386236209117835869.post-2327252900352644222</id><published>2012-07-06T21:23:00.000-07:00</published><updated>2012-07-22T04:41:24.505-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Core Data"/><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="Objective-C"/><category scheme="http://www.blogger.com/atom/ns#" term="xcode"/><title type='text'>Fetching Data in Objective-C CoreData and using Concurrency</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
First, the problem is that when you fetch objects from core data, that doesn&#39;t end there, the objects that are returned back are NSManagedObjects, and so they are still linked with the Managed Object Context.&lt;br /&gt;
&lt;br /&gt;
So, usually you would initialize a new Managed Object Context and fetch the data from their, but when you try to pass your data to the main thread, all the &quot;Sub Objects&quot; are lost.&lt;br /&gt;
&lt;br /&gt;
OK, now let&#39;s jump in.&lt;br /&gt;
&lt;br /&gt;
First you need to create an NSOperationQueue in your header file:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #713ea3; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: #bb2d9d;&quot;&gt;@interface&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; myViewContainer : &lt;/span&gt;UIView&lt;span style=&quot;color: black;&quot;&gt; &amp;lt;&lt;/span&gt;UITableViewDelegate&lt;span style=&quot;color: black;&quot;&gt;, &lt;/span&gt;UITableViewDataSource&lt;span style=&quot;color: black;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;color: #713ea3; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;NSOperationQueue&lt;span style=&quot;color: black;&quot;&gt; *myQueue;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #713ea3;&quot;&gt;NSArray&lt;/span&gt; *fetchResults;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
}&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Allocate it in your classes init (At least before you use it)&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;color: #713ea3; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #4e8186;&quot;&gt;myQueue&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; = [[&lt;/span&gt;NSOperationQueue&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3e1f7c;&quot;&gt;alloc&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;color: #3e1f7c;&quot;&gt;init&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Now to populate the &quot;fetchResults&quot; NSArray that we&#39;ll call this function which will get all Employees with a specific last name:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
-(&lt;span style=&quot;color: #bb2d9d;&quot;&gt;void&lt;/span&gt;)getEmployeeDataWithLastName:(&lt;span style=&quot;color: #713ea3;&quot;&gt;NSString&lt;/span&gt; *)lastName&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
//&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times; font-size: small;&quot;&gt;Create An Operation&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #713ea3;&quot;&gt;NSBlockOperation&lt;/span&gt; *getDataOperation = [[&lt;span style=&quot;color: #713ea3;&quot;&gt;NSBlockOperation&lt;/span&gt; &lt;span style=&quot;color: #3e1f7c;&quot;&gt;alloc&lt;/span&gt;] &lt;span style=&quot;color: #3e1f7c;&quot;&gt;init&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
//&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times; font-size: small;&quot;&gt;Add the Execution Block that will concurrently fetch the results&lt;/span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [getDataOperation &lt;span style=&quot;color: #3e1f7c;&quot;&gt;addExecutionBlock&lt;/span&gt;:^{&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #713ea3;&quot;&gt;NSPredicate&lt;/span&gt; *employeePredicate = [&lt;span style=&quot;color: #713ea3;&quot;&gt;NSPredicate&lt;/span&gt; &lt;span style=&quot;color: #3e1f7c;&quot;&gt;predicateWithFormat&lt;/span&gt;:&lt;span style=&quot;color: #d12c26;&quot;&gt;@&quot;lastName like[c] %@&quot;&lt;/span&gt;,lastName];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #713ea3;&quot;&gt;NSArray&lt;/span&gt; *searchResults = &lt;span style=&quot;color: #bb2d9d;&quot;&gt;nil&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #713ea3;&quot;&gt;NSError&lt;/span&gt; *error = &lt;span style=&quot;color: #bb2d9d;&quot;&gt;nil&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #4e8186;&quot;&gt;myAppDelegate&lt;/span&gt; *appDelegate = (myAppDelegate *)[[UIApplication sharedApplication] delegate];&lt;/div&gt;
&lt;div style=&quot;color: #713ea3; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;NSManagedObjectContext&lt;span style=&quot;color: black;&quot;&gt; *managedObjectContext = [[&lt;/span&gt;NSManagedObjectContext&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3e1f7c;&quot;&gt;alloc&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;color: #3e1f7c;&quot;&gt;init&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [managedObjectContext &lt;span style=&quot;color: #3e1f7c;&quot;&gt;setPersistentStoreCoordinator&lt;/span&gt;:[appDelegate &lt;span style=&quot;color: #31595d;&quot;&gt;persistentStoreCoordinator&lt;/span&gt;]];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #713ea3;&quot;&gt;NSFetchRequest&lt;/span&gt; *searchRequest = [[&lt;span style=&quot;color: #713ea3;&quot;&gt;NSFetchRequest&lt;/span&gt; &lt;span style=&quot;color: #3e1f7c;&quot;&gt;alloc&lt;/span&gt;] &lt;span style=&quot;color: #3e1f7c;&quot;&gt;init&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #713ea3;&quot;&gt;NSEntityDescription&lt;/span&gt; *fetchDescription = [&lt;span style=&quot;color: #713ea3;&quot;&gt;NSEntityDescription&lt;/span&gt; &lt;span style=&quot;color: #3e1f7c;&quot;&gt;entityForName&lt;/span&gt;:&lt;span style=&quot;color: #d12c26;&quot;&gt;@&quot;Employees&quot;&lt;/span&gt; &lt;span style=&quot;color: #3e1f7c;&quot;&gt;inManagedObjectContext&lt;/span&gt;:managedObjectContext];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [searchRequest &lt;span style=&quot;color: #3e1f7c;&quot;&gt;setEntity&lt;/span&gt;:fetchDescription];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [searchRequest &lt;span style=&quot;color: #3e1f7c;&quot;&gt;setPredicate&lt;/span&gt;:employeePredicate];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; searchResults = [managedObjectContext &lt;span style=&quot;color: #3e1f7c;&quot;&gt;executeFetchRequest&lt;/span&gt;:searchRequest &lt;span style=&quot;color: #3e1f7c;&quot;&gt;error&lt;/span&gt;:&amp;amp;error];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb2d9d;&quot;&gt;if&lt;/span&gt; (searchResults == &lt;span style=&quot;color: #bb2d9d;&quot;&gt;nil&lt;/span&gt;) {&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #3e1f7c;&quot;&gt;NSLog&lt;/span&gt;(&lt;span style=&quot;color: #d12c26;&quot;&gt;@&quot;%@&quot;&lt;/span&gt;, [error &lt;span style=&quot;color: #3e1f7c;&quot;&gt;localizedDescription&lt;/span&gt;]);&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #713ea3;&quot;&gt;NSMutableArray&lt;/span&gt; *mangedObjectIDs = [[&lt;span style=&quot;color: #713ea3;&quot;&gt;NSMutableArray&lt;/span&gt; &lt;span style=&quot;color: #3e1f7c;&quot;&gt;alloc&lt;/span&gt;] &lt;span style=&quot;color: #3e1f7c;&quot;&gt;init&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb2d9d;&quot;&gt;for&lt;/span&gt; (Employees *employee &lt;span style=&quot;color: #bb2d9d;&quot;&gt;in&lt;/span&gt; searchResults) {&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [mangedObjectIDs addObject:employee.objectID];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;color: #3e1f7c; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [[&lt;/span&gt;&lt;span style=&quot;color: #713ea3;&quot;&gt;NSOperationQueue&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;mainQueue&lt;span style=&quot;color: black;&quot;&gt;] &lt;/span&gt;addOperationWithBlock&lt;span style=&quot;color: black;&quot;&gt;:^{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; featchResults = [[NSMutableArray alloc] init];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb2d9d;&quot;&gt;if&lt;/span&gt; ([searchResults &lt;span style=&quot;color: #3e1f7c;&quot;&gt;count&lt;/span&gt;]&amp;gt;&lt;span style=&quot;color: #2c2ecf;&quot;&gt;0&lt;/span&gt;) {&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #4e8186;&quot;&gt;myAppDelegate&lt;/span&gt; *appDelegate = (myAppDelegate *)[[UIApplication sharedApplication] delegate];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb2d9d;&quot;&gt;for&lt;/span&gt; (&lt;span style=&quot;color: #713ea3;&quot;&gt;NSManagedObjectID&lt;/span&gt; *employeeObjectID &lt;span style=&quot;color: #bb2d9d;&quot;&gt;in&lt;/span&gt; mangedObjectIDs) {&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #713ea3;&quot;&gt;NSManagedObject&lt;/span&gt; *emloyeeFromMainQueuesManagedObjectContex = [appDelegate.&lt;span style=&quot;color: #4e8186;&quot;&gt;managedObjectContext&lt;/span&gt; &lt;span style=&quot;color: #3e1f7c;&quot;&gt;objectWithID&lt;/span&gt;: employeeObjectID];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [featchResults addObject:emloyeeFromMainQueuesManagedObjectContex];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [&lt;span style=&quot;color: #bb2d9d;&quot;&gt;self&lt;/span&gt;.&lt;span style=&quot;color: #4e8186;&quot;&gt;tableView&lt;/span&gt; &lt;span style=&quot;color: #3e1f7c;&quot;&gt;reloadData&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; }];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; //&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times; font-size: small;&quot;&gt;Add the operation to the background queue&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot;&gt;&amp;nbsp; &amp;nbsp; [&lt;/span&gt;myQueue&lt;span class=&quot;Apple-style-span&quot;&gt;&amp;nbsp;addOperation:hotlinksOperation];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
}&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
And that&#39;s it, we concurrently fetched data and were able to retain it in our NSArray fetchResults&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jackofalltradesdeveloper.blogspot.com/feeds/2327252900352644222/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/07/fetching-data-in-objective-c-coredata.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/2327252900352644222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/2327252900352644222'/><link rel='alternate' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/07/fetching-data-in-objective-c-coredata.html' title='Fetching Data in Objective-C CoreData and using Concurrency'/><author><name>Ahmed Ibrahim Khattab</name><uri>http://www.blogger.com/profile/06343046874255002479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-gHQiAJRGsEvGSFiWLeLRutspzw2Tqz3n0JJjYrkENRxozxkGVkZgW8Y1_xJVIG9cd6xS7gyJzC_FpGe0Ky2hmCFtlhYfpX5OLm7awSXeljNQSZE8KCS3e6teuhnLR-w/s220/IMG_0777.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1386236209117835869.post-4254268554794113592</id><published>2012-07-06T18:58:00.001-07:00</published><updated>2012-07-06T18:58:55.582-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="Objective-C"/><category scheme="http://www.blogger.com/atom/ns#" term="xcode"/><title type='text'>iOS Objective-C File Operations</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Here are some ways to manipulate (Exists, Delete, ... etc.) files:&lt;br /&gt;
&lt;br /&gt;
Check if a File Exists:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #008425; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;// Get the Documents Directory or any directory you need.&lt;/div&gt;
&lt;div style=&quot;color: #3e1f7c; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #713ea3;&quot;&gt;NSURL&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; *documentDirectoryPath = [[[&lt;/span&gt;&lt;span style=&quot;color: #713ea3;&quot;&gt;NSFileManager&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;defaultManager&lt;span style=&quot;color: black;&quot;&gt;] &lt;/span&gt;URLsForDirectory&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;NSDocumentDirectory&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;inDomains&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;NSUserDomainMask&lt;span style=&quot;color: black;&quot;&gt;] &lt;/span&gt;lastObject&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #008425; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;// Append the file name to the directory&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #713ea3;&quot;&gt;NSString&lt;/span&gt; *filePath = [[documentDirectoryPath &lt;span style=&quot;color: #3e1f7c;&quot;&gt;path&lt;/span&gt;] &lt;span style=&quot;color: #3e1f7c;&quot;&gt;stringByAppendingPathComponent&lt;/span&gt;:&lt;span style=&quot;color: #d12c26;&quot;&gt;@&quot;FileName.txt&quot;&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;color: #008425; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;// Check if the file exists&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb2d9d;&quot;&gt;BOOL&lt;/span&gt; fileExists = [[&lt;span style=&quot;color: #713ea3;&quot;&gt;NSFileManager&lt;/span&gt; &lt;span style=&quot;color: #3e1f7c;&quot;&gt;defaultManager&lt;/span&gt;] &lt;span style=&quot;color: #3e1f7c;&quot;&gt;fileExistsAtPath&lt;/span&gt;:filePath];&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Delete a file:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #008425; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;// Get the Documents Directory or any directory you need.&lt;/div&gt;
&lt;div style=&quot;color: #3e1f7c; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #713ea3;&quot;&gt;NSURL&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; *documentDirectoryPath = [[[&lt;/span&gt;&lt;span style=&quot;color: #713ea3;&quot;&gt;NSFileManager&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;defaultManager&lt;span style=&quot;color: black;&quot;&gt;] &lt;/span&gt;URLsForDirectory&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;NSDocumentDirectory&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;inDomains&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;NSUserDomainMask&lt;span style=&quot;color: black;&quot;&gt;] &lt;/span&gt;lastObject&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #008425; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;// Append the file name to the directory&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #713ea3;&quot;&gt;NSString&lt;/span&gt; *filePath = [[documentDirectoryPath &lt;span style=&quot;color: #3e1f7c;&quot;&gt;path&lt;/span&gt;] &lt;span style=&quot;color: #3e1f7c;&quot;&gt;stringByAppendingPathComponent&lt;/span&gt;:&lt;span style=&quot;color: #d12c26;&quot;&gt;@&quot;FileName.txt&quot;&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;color: #008425; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;// Check if the file exists&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb2d9d;&quot;&gt;BOOL&lt;/span&gt; fileExists = [[&lt;span style=&quot;color: #713ea3;&quot;&gt;NSFileManager&lt;/span&gt; &lt;span style=&quot;color: #3e1f7c;&quot;&gt;defaultManager&lt;/span&gt;] &lt;span style=&quot;color: #3e1f7c;&quot;&gt;fileExistsAtPath&lt;/span&gt;:filePath];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;color: #008425; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;// If the file exists, then delete the file&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb2d9d;&quot;&gt;if&lt;/span&gt; (fileExists) {&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [[&lt;span style=&quot;color: #713ea3;&quot;&gt;NSFileManager&lt;/span&gt; &lt;span style=&quot;color: #3e1f7c;&quot;&gt;defaultManager&lt;/span&gt;] &lt;span style=&quot;color: #3e1f7c;&quot;&gt;removeItemAtPath&lt;/span&gt;:filePath &lt;span style=&quot;color: #3e1f7c;&quot;&gt;error&lt;/span&gt;:&amp;amp;error];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #3e1f7c; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3e1f7c; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;To Be Continued ....&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jackofalltradesdeveloper.blogspot.com/feeds/4254268554794113592/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/07/ios-objective-c-file-operations.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/4254268554794113592'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/4254268554794113592'/><link rel='alternate' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/07/ios-objective-c-file-operations.html' title='iOS Objective-C File Operations'/><author><name>Ahmed Ibrahim Khattab</name><uri>http://www.blogger.com/profile/06343046874255002479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-gHQiAJRGsEvGSFiWLeLRutspzw2Tqz3n0JJjYrkENRxozxkGVkZgW8Y1_xJVIG9cd6xS7gyJzC_FpGe0Ky2hmCFtlhYfpX5OLm7awSXeljNQSZE8KCS3e6teuhnLR-w/s220/IMG_0777.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1386236209117835869.post-3935994597341076663</id><published>2012-06-29T11:53:00.000-07:00</published><updated>2012-06-29T11:54:35.554-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="iOS Simulator"/><category scheme="http://www.blogger.com/atom/ns#" term="xcode"/><title type='text'>iOS Simulator Really Slow</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This was really annoying, and haven&#39;t found the solution, but was able to find what the problem was.&lt;br /&gt;
&lt;br /&gt;
Some people were suggesting resetting the contents of your simulator, this is a problem, because I would eventually be in this situation again.&lt;br /&gt;
&lt;br /&gt;
And don&#39;t get me started on the guy who actually wanted me to format my Mac!!!!!!&lt;br /&gt;
&lt;br /&gt;
So, I have about a million images in the simulator&#39;s directory:&lt;br /&gt;
&lt;br /&gt;
/Users/&amp;lt;Username&amp;gt;/Library/Application Support/iPhone Simulator/5.1/Applications/&amp;lt;AppID&amp;gt;/Documents&lt;br /&gt;
&lt;br /&gt;
I just moved those files to a different directory (Move not Copy, so that it only takes a second for my Mac to move the files)&lt;br /&gt;
&lt;br /&gt;
Then the app became much faster.&lt;br /&gt;
&lt;br /&gt;
Now, I have to find out how to still start my simulator up fast and I&#39;ll update this post.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jackofalltradesdeveloper.blogspot.com/feeds/3935994597341076663/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/06/ios-simulator-really-slow.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/3935994597341076663'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/3935994597341076663'/><link rel='alternate' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/06/ios-simulator-really-slow.html' title='iOS Simulator Really Slow'/><author><name>Ahmed Ibrahim Khattab</name><uri>http://www.blogger.com/profile/06343046874255002479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-gHQiAJRGsEvGSFiWLeLRutspzw2Tqz3n0JJjYrkENRxozxkGVkZgW8Y1_xJVIG9cd6xS7gyJzC_FpGe0Ky2hmCFtlhYfpX5OLm7awSXeljNQSZE8KCS3e6teuhnLR-w/s220/IMG_0777.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1386236209117835869.post-2708028666996269128</id><published>2012-05-24T12:40:00.001-07:00</published><updated>2012-07-28T22:08:44.814-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ArcGIS Server 10"/><category scheme="http://www.blogger.com/atom/ns#" term="GIS"/><title type='text'>Adding Features with Date Time to ArcGIS Server</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
So when trying to post date and time to ArcGIS Server&#39;s Feature Service fails.&lt;br /&gt;
&lt;br /&gt;
It gives an error &quot;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #ffaaaa; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;Invalid graphic features&lt;/span&gt;&quot; which gives the impression that there is a problem with your geometry, but it is more of a generic error that means that the feature itself could not be posted to the server.&lt;br /&gt;
&lt;br /&gt;
While analyzing the information that I was sending to the feature services and after reading more on the API documentation, I found out that the Server was essentially not accepting the Date that I was posting to it.&lt;br /&gt;
&lt;br /&gt;
I was posting to it : &quot;1/1/2012 13:00:00&quot;.&lt;br /&gt;
&lt;br /&gt;
Which makes sense since everyone could send different date formats, and the server would not be able to figure out what it is accepting.&lt;br /&gt;
&lt;br /&gt;
So to resolve this ArcGIS Server takes Epoch Time in Milliseconds, &lt;b&gt;milliseconds&lt;/b&gt; is the keyword here.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://en.wikipedia.org/wiki/Unix_time&quot; target=&quot;_blank&quot;&gt;Epoch Time (Unix Time)&lt;/a&gt;&amp;nbsp;is the number of seconds from midnight January 1st 1970.&lt;br /&gt;
&lt;br /&gt;
To change this to milliseconds, all you have to do is multiply it by 1000;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;For the Sharp Developers:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;public static DateTime FromUnixTime(long unixTime)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DateTime epoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return epoch.AddMilliseconds(unixTime);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; catch (Exception) { }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return new DateTime();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;For the Objective Developers:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: Menlo; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; margin: 0px;&quot;&gt;
+(&lt;span style=&quot;color: #713ea3;&quot;&gt;NSString&lt;/span&gt;*)ConvertDateStringToEpochTimeString:(&lt;span style=&quot;color: #713ea3;&quot;&gt;NSString&lt;/span&gt;*)dateTime{&lt;/div&gt;
&lt;div style=&quot;color: #713ea3; font-family: Menlo; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; margin: 0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;NSDateFormatter&lt;span style=&quot;color: black;&quot;&gt; *dateFormat = [[&lt;/span&gt;NSDateFormatter&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3e1f7c;&quot;&gt;alloc&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #3e1f7c;&quot;&gt;init&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #d12c26; font-family: Menlo; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; margin: 0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; [dateFormat &lt;/span&gt;&lt;span style=&quot;color: #3e1f7c;&quot;&gt;setDateFormat&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;@&quot;MM/dd/YYYY HH:mm:ss&quot;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; margin: 0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #713ea3;&quot;&gt;NSDate&lt;/span&gt; *Date = [dateFormat &lt;span style=&quot;color: #3e1f7c;&quot;&gt;dateFromString&lt;/span&gt;:dateTime];&lt;/div&gt;
&lt;div style=&quot;color: #3e1f7c; font-family: Menlo; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; margin: 0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #713ea3;&quot;&gt;NSString&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; *epochTime = [[&lt;/span&gt;&lt;span style=&quot;color: #713ea3;&quot;&gt;NSString&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;alloc&lt;span style=&quot;color: black;&quot;&gt;] &lt;/span&gt;initWithFormat&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #d12c26;&quot;&gt;@&quot;%f&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; , [Date &lt;/span&gt;timeIntervalSince1970&lt;span style=&quot;color: black;&quot;&gt;]*&lt;/span&gt;&lt;span style=&quot;color: #2c2ecf;&quot;&gt;1000&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; margin: 0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb2d9d;&quot;&gt;return&lt;/span&gt;&amp;nbsp;epochTime;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; margin: 0px;&quot;&gt;
}&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jackofalltradesdeveloper.blogspot.com/feeds/2708028666996269128/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/05/adding-features-with-date-time-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/2708028666996269128'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/2708028666996269128'/><link rel='alternate' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/05/adding-features-with-date-time-to.html' title='Adding Features with Date Time to ArcGIS Server'/><author><name>Ahmed Ibrahim Khattab</name><uri>http://www.blogger.com/profile/06343046874255002479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-gHQiAJRGsEvGSFiWLeLRutspzw2Tqz3n0JJjYrkENRxozxkGVkZgW8Y1_xJVIG9cd6xS7gyJzC_FpGe0Ky2hmCFtlhYfpX5OLm7awSXeljNQSZE8KCS3e6teuhnLR-w/s220/IMG_0777.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1386236209117835869.post-6476616741214824342</id><published>2012-05-22T11:47:00.001-07:00</published><updated>2012-07-14T21:18:25.490-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="nslog"/><category scheme="http://www.blogger.com/atom/ns#" term="xcode"/><title type='text'>NSLog Examples</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
To Log an NSInteger or a NSUInteger you can use:&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #e00005; font-family: Menlo; font-size: 11px;&quot;&gt;&lt;span style=&quot;color: #490085;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #e00005; font-family: Menlo; font-size: 11px;&quot;&gt;&lt;span style=&quot;color: #490085;&quot;&gt;NSLog&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;@&quot;Image Views value :%d&quot;&lt;span style=&quot;color: black;&quot;&gt;, [&lt;/span&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #428288;&quot;&gt;ImageView&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #7e1aad;&quot;&gt;subviews&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #490085;&quot;&gt;count&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;]);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #e00005; font-family: Menlo; font-size: 11px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #e00005;&quot;&gt;&lt;span style=&quot;color: black; font-family: inherit;&quot;&gt;To Log an NSString :&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #e00005;&quot;&gt;&lt;span style=&quot;color: black; font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #e00005; font-family: Menlo; font-size: 11px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #e00005; font-family: Menlo; font-size: 11px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #490085;&quot;&gt;NSLog&lt;/span&gt;(&lt;span style=&quot;color: #e00005;&quot;&gt;@&quot;Error : %@&quot;&lt;/span&gt;,exception.&lt;span style=&quot;color: #7e1aad;&quot;&gt;reason&lt;/span&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #e00005; font-family: Menlo; font-size: 11px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jackofalltradesdeveloper.blogspot.com/feeds/6476616741214824342/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/05/nslog-examples.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/6476616741214824342'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/6476616741214824342'/><link rel='alternate' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/05/nslog-examples.html' title='NSLog Examples'/><author><name>Ahmed Ibrahim Khattab</name><uri>http://www.blogger.com/profile/06343046874255002479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-gHQiAJRGsEvGSFiWLeLRutspzw2Tqz3n0JJjYrkENRxozxkGVkZgW8Y1_xJVIG9cd6xS7gyJzC_FpGe0Ky2hmCFtlhYfpX5OLm7awSXeljNQSZE8KCS3e6teuhnLR-w/s220/IMG_0777.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1386236209117835869.post-1342986213748194005</id><published>2012-04-13T18:31:00.001-07:00</published><updated>2012-04-13T18:31:52.141-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PostgreSQL"/><title type='text'>Installation Error with PostgreSQL</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
When installing PostgreSQL on a Windows Server 32 bit machine you get the below error:&lt;br /&gt;
&lt;br /&gt;
&quot;Problem running post-install step installation may not complete&lt;br /&gt;
The database cluster initialisation failed.&quot;&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/AVvXsEgGkZyGjHu7Wo6xmu3ePweHwa-qJhV64zos3PM_WTBOsDJixhCsZgnEeLlgXT0BoxaSv0gCXzSKPVoAlCTeR-CvMuK4wjllt1D-Noy-lHTRri-Y0LyLU9XZ1cbUd86OYggDCpM7kGDCBxjS/s1600/PostgresSetupError.JPG&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/AVvXsEgGkZyGjHu7Wo6xmu3ePweHwa-qJhV64zos3PM_WTBOsDJixhCsZgnEeLlgXT0BoxaSv0gCXzSKPVoAlCTeR-CvMuK4wjllt1D-Noy-lHTRri-Y0LyLU9XZ1cbUd86OYggDCpM7kGDCBxjS/s1600/PostgresSetupError.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
If you go to the Installer Log File located in&amp;nbsp;C:\Documents and Settings\&lt;b&gt;&amp;lt;Username&amp;gt;&lt;/b&gt;\Local Settings\Temp\1&lt;br /&gt;
&lt;br /&gt;
You will find:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #fafafa; font-family: verdana, arial, helvetica, sans-serif; font-size: 12px; line-height: 18px; text-align: -webkit-auto;&quot;&gt;Executing cscript //NoLogo &quot;C:\Program Files\PostgreSQL\9.0/installer/server/initcluster.vbs&quot; &quot;postgres&quot; &quot;postgres&quot; &quot;****&quot; &quot;C:\Program Files\PostgreSQL\9.0&quot; &quot;C:\Program Files\PostgreSQL\9.0\data&quot; 5432 &quot;DEFAULT&quot;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: #fafafa; font-family: verdana, arial, helvetica, sans-serif; font-size: 12px; line-height: 18px; text-align: -webkit-auto;&quot; /&gt;&lt;span style=&quot;background-color: #fafafa; font-family: verdana, arial, helvetica, sans-serif; font-size: 12px; line-height: 18px; text-align: -webkit-auto;&quot;&gt;Script exit code: 1&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
This is because PostgreSQL is trying to Run a VB Script, and VB Script is not registered&lt;br /&gt;
&lt;br /&gt;
Run the below script on Command Prompt to register the VB Script:&lt;br /&gt;
&lt;br /&gt;
regsvr32 %systemroot%\system32\vbscript.dll&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/AVvXsEjxtINA_-YNVM-5xg4RuQQolnwgBQ0BJK8HfZgUAe0To6dEX2pvTXcmXREkzujqjl59fF-MywrU_AsIDog0me2i1DS_aGhY7lygvId6WnF2iStXS2xPv5tUsgEiBrUHVGgwYUPX4P8HkIcx/s1600/RegisterVBScriptDLL.JPG&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/AVvXsEjxtINA_-YNVM-5xg4RuQQolnwgBQ0BJK8HfZgUAe0To6dEX2pvTXcmXREkzujqjl59fF-MywrU_AsIDog0me2i1DS_aGhY7lygvId6WnF2iStXS2xPv5tUsgEiBrUHVGgwYUPX4P8HkIcx/s1600/RegisterVBScriptDLL.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jackofalltradesdeveloper.blogspot.com/feeds/1342986213748194005/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/04/installation-error-with-postgresql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/1342986213748194005'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/1342986213748194005'/><link rel='alternate' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/04/installation-error-with-postgresql.html' title='Installation Error with PostgreSQL'/><author><name>Ahmed Ibrahim Khattab</name><uri>http://www.blogger.com/profile/06343046874255002479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-gHQiAJRGsEvGSFiWLeLRutspzw2Tqz3n0JJjYrkENRxozxkGVkZgW8Y1_xJVIG9cd6xS7gyJzC_FpGe0Ky2hmCFtlhYfpX5OLm7awSXeljNQSZE8KCS3e6teuhnLR-w/s220/IMG_0777.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGkZyGjHu7Wo6xmu3ePweHwa-qJhV64zos3PM_WTBOsDJixhCsZgnEeLlgXT0BoxaSv0gCXzSKPVoAlCTeR-CvMuK4wjllt1D-Noy-lHTRri-Y0LyLU9XZ1cbUd86OYggDCpM7kGDCBxjS/s72-c/PostgresSetupError.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1386236209117835869.post-6366334534195710802</id><published>2012-04-05T00:35:00.000-07:00</published><updated>2012-04-05T07:56:32.167-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming Styles"/><title type='text'>C# Singleton Example</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
A singleton is a design pattern that restricts the creation of more than one instance of a class.&lt;br /&gt;
&lt;br /&gt;
This design pattern generally creates a global variable, which is not a best practice.&lt;br /&gt;
&lt;br /&gt;
Usually we&#39;ll use this for an object that we need to be a global object and needs to be easily called and accessed.&lt;br /&gt;
&lt;br /&gt;
For this example we&#39;re going to create a class called messages, which will just contain a list of strings, and have the ability to add messages and check if they exist:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Messaging&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt;&quot;&gt;// A private instance of the class&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;private&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;static&lt;/span&gt;
&lt;span style=&quot;color: #2b91af;&quot;&gt;Messaging&lt;/span&gt; instance;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;private&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; System.Collections.Generic.&lt;span style=&quot;color: #2b91af;&quot;&gt;List&lt;/span&gt;&amp;lt;&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;&amp;gt;
Messages;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt;&quot;&gt;// The constructor for this message is private, so that cannot be instantiated&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;private&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; Messaging()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;try&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;Messages = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt;
System.Collections.Generic.&lt;span style=&quot;color: #2b91af;&quot;&gt;List&lt;/span&gt;&amp;lt;&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;&amp;gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;catch&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; { }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt;&quot;&gt;// This private static property, will check if the static instance of the message&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt;&quot;&gt;// is instantiated if it is then it will return the static instance, if not it will&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt;&quot;&gt;// create a new instance.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;static&lt;/span&gt;
&lt;span style=&quot;color: #2b91af;&quot;&gt;Messaging&lt;/span&gt; Instance&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;get&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; (instance == &lt;span style=&quot;color: blue;&quot;&gt;null&lt;/span&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;instance = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Messaging&lt;/span&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; instance;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt;
AddMessage(&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt; Message)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;Messages.Add(Message);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;bool&lt;/span&gt;
HasMessage(&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt; Message)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; Messages.Contains(Message);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
You can now access this class like below, you can statically add a message, and check if it exists in the instance.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt;&quot;&gt;Messaging&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;.Instance.AddMessage(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Hello World&quot;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
Now you can check if the message you added above exists.&amp;nbsp;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; (&lt;span style=&quot;color: #2b91af;&quot;&gt;Messaging&lt;/span&gt;.Instance.HasMessage(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Hello World&quot;&lt;/span&gt;))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt;&quot;&gt;// Will Return true&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jackofalltradesdeveloper.blogspot.com/feeds/6366334534195710802/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/04/c-singleton-example.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/6366334534195710802'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/6366334534195710802'/><link rel='alternate' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/04/c-singleton-example.html' title='C# Singleton Example'/><author><name>Ahmed Ibrahim Khattab</name><uri>http://www.blogger.com/profile/06343046874255002479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-gHQiAJRGsEvGSFiWLeLRutspzw2Tqz3n0JJjYrkENRxozxkGVkZgW8Y1_xJVIG9cd6xS7gyJzC_FpGe0Ky2hmCFtlhYfpX5OLm7awSXeljNQSZE8KCS3e6teuhnLR-w/s220/IMG_0777.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1386236209117835869.post-7232266302975872012</id><published>2012-03-31T01:09:00.002-07:00</published><updated>2012-04-05T00:35:26.601-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming Styles"/><title type='text'>Regular Expressions and C#</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;What
are regular expressions, and how are they used?&lt;/span&gt;&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white; line-height: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; line-height: 14px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Well regular expressions are formula’s that are used to search strings.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br style=&quot;background-color: white; line-height: 14px;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; line-height: 14px;&quot;&gt;Let’s use a simple example to demonstrate this:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; line-height: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; FindNamesWithRegEx()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;[] Names = { &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Will&quot;&lt;/span&gt;, &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;John&quot;&lt;/span&gt;,
&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Jeff&quot;&lt;/span&gt;, &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Bill&quot;&lt;/span&gt;,
&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;George&quot;&lt;/span&gt; };&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; Expression = &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;[BW]ill&quot;&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;for&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; (&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;
i = 0; i &amp;lt; Names.Length; i++)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; (Regex.IsMatch(Names[i], Expression))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt;&quot;&gt;Console&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;.WriteLine(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Found &quot;&lt;/span&gt;
+ Names[i]);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;else&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt;&quot;&gt;Console&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;.WriteLine(Names[i] + &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;
is not a name we’re looking for&quot;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; FindNamesWithOUTRegEx()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;[] Names = { &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Will&quot;&lt;/span&gt;, &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;John&quot;&lt;/span&gt;,
&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Jeff&quot;&lt;/span&gt;, &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Bill&quot;&lt;/span&gt;,
&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;George&quot;&lt;/span&gt; };&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;for&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; (&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;
i = 0; i &amp;lt; Names.Length; i++)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; (Names[i].Equals(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Will&quot;&lt;/span&gt;)
|| Names[i].Equals(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Bill&quot;&lt;/span&gt;))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt;&quot;&gt;Console&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;.WriteLine(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Found &quot;&lt;/span&gt;
+ Names[i]);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;else&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt;&quot;&gt;Console&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;.WriteLine(Names[i] + &lt;span style=&quot;color: #a31515;&quot;&gt;&quot; is
not a name we’re looking for &quot;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Tahoma, sans-serif; font-size: 6pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 13.5pt;&quot;&gt;Found Will&lt;br /&gt;
John is not a name we’re looking for&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 13.5pt;&quot;&gt;Jeff is not a name we’re looking for&lt;br /&gt;
Found Bill&lt;br /&gt;
George is not a name we’re looking for&lt;br /&gt;
&lt;br /&gt;
The above example
for simplicity wasn’t very useful, but we’ll go ahead and explain why even this
example is useful!&lt;br /&gt;
&lt;br /&gt;
First let’s analyze the “Expression” string in the
function (FindNamesWithRegEx):&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;string&lt;span style=&quot;font-size: 9.5pt;&quot;&gt; Expression = &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;[BW]ill&quot;&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 13.5pt;&quot;&gt;&lt;br /&gt;
when we placed [BW]ill, we informed the Regular
Expression engine that the first letter could be a ‘B’ or a ‘W’.&lt;span style=&quot;font-size: 13.5pt;&quot;&gt;&amp;nbsp;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
now if we wanted to find Bill, Will and Mill then
we can modify the expression to look like this:&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;string&lt;span style=&quot;font-size: 9.5pt;&quot;&gt; Expression = &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;[BWM]ill&quot;&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 13.5pt;&quot;&gt;but in
the second function (FindNamesWithOUTRegEx) you would have to add another
condition to the if statement:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;if&lt;span style=&quot;font-size: 9.5pt;&quot;&gt; (Names[i].Equals(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Will&quot;&lt;/span&gt;)
|| Names[i].Equals(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Bill&quot;&lt;/span&gt;) || Names[i].Equals(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Mill&quot;&lt;/span&gt;))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 13.5pt;&quot;&gt;&lt;br /&gt;
And every time you would have to add another
condition and another …. And woooooooh, you’ll have one big if statement!&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Regular Expression in Date Validity&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
Let&#39;s take a regular expression that will be more
useful, let&#39;s say you would like to check for the validity of a date (And we
won&#39;t be considering even the days of the month, or leap years).&lt;br /&gt;
&lt;br /&gt;
Now although this is useful, any dot net coder
will know that they can use:&lt;span style=&quot;font-size: 13.5pt;&quot;&gt;&amp;nbsp;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt;&quot;&gt;DateTime&lt;span style=&quot;font-size: 9.5pt;&quot;&gt; ParsedDateTimeString = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt;
DateTime();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt;&quot;&gt;DateTime&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;.TryParse(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;10/2/2010&quot;&lt;/span&gt;,
&lt;span style=&quot;color: blue;&quot;&gt;out&lt;/span&gt; ParsedDateTimeString);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 13.5pt;&quot;&gt;&lt;br /&gt;
But for goodness sake, we&#39;ll just do it using
regular expressions.&lt;span style=&quot;font-size: 13.5pt;&quot;&gt;&amp;nbsp;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial;&quot;&gt;&lt;br /&gt;
Now to do the same, you would have to write
something similar to the below function:&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;public&lt;span style=&quot;font-size: 9.5pt;&quot;&gt; static void ValidateDate()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt;&quot;&gt;DateTime&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; ParsedDateTimeString = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;DateTime&lt;/span&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt;&quot;&gt;DateTime&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;.TryParse(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;10/2/2010&quot;&lt;/span&gt;,
&lt;span style=&quot;color: blue;&quot;&gt;out&lt;/span&gt; ParsedDateTimeString);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;[] DateToValidate = { &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;10/20/2009&quot;&lt;/span&gt;, &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;10x20x2009&quot;&lt;/span&gt;,
&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;20/20/2009&quot;&lt;/span&gt;, &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;10/40/2009&quot;&lt;/span&gt;, &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;1a0/40/2009&quot;&lt;/span&gt;,
&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;10/4.5/2009&quot;&lt;/span&gt; };&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;for&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; (&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;
i = 0; i &amp;lt; DateToValidate.Length; i++)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;[] DateParts = DateToValidate[i].Split(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;/&quot;&lt;/span&gt;.ToCharArray());&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; (DateParts.Length != 3)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;DateParts = DateToValidate[i].Split(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;-&quot;&lt;/span&gt;.ToCharArray());&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; (DateParts.Length != 3)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt;&quot;&gt;Console&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;.WriteLine(DateToValidate[i] + &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;
is not valid&quot;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;continue&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; Month = 0, Day = 0, Year = 0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; (!&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;.TryParse(DateParts[0], &lt;span style=&quot;color: blue;&quot;&gt;out&lt;/span&gt;
Month))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt;&quot;&gt;Console&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;.WriteLine(DateToValidate[i] + &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;
is not valid, because the month field is not a number&quot;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;continue&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt;
(!&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;.TryParse(DateParts[1], &lt;span style=&quot;color: blue;&quot;&gt;out&lt;/span&gt; Day))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt;&quot;&gt;Console&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;.WriteLine(DateToValidate[i] + &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;
is not valid, because the day field is not a number&quot;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;continue&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; (!&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;.TryParse(DateParts[2],
&lt;span style=&quot;color: blue;&quot;&gt;out&lt;/span&gt; Year))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt;&quot;&gt;Console&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;.WriteLine(DateToValidate[i] + &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;
is not valid, because the year field is not a number&quot;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;continue&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; (Month &amp;lt; 1 || Month &amp;gt; 12)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt;&quot;&gt;Console&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;.WriteLine(DateToValidate[i] + &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;
is not valid, because the month is not between 1 &amp;amp; 12&quot;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;continue&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; (Day &amp;lt; 1 || Day &amp;gt; 31)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt;&quot;&gt;Console&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;.WriteLine(DateToValidate[i] + &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;
is not valid, because the day is not between 1 &amp;amp; 31&quot;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;continue&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; (Year &amp;lt; 1900 || Year &amp;gt; 2999)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt;&quot;&gt;Console&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;.WriteLine(DateToValidate[i] + &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;
is not valid, because the year is not between 1900 &amp;amp; 2999&quot;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;continue&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine(DateToValidate[i] +
&lt;span style=&quot;color: #a31515;&quot;&gt;&quot; is valid&quot;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 13.5pt;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
Since trying to write code to validate the date is
too time consuming, it would be better just to write the below:&lt;br /&gt;
&lt;br /&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; ValidateDate()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;[] DateToValidate = { &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;10/20/2009&quot;&lt;/span&gt;, &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;10x20x2009&quot;&lt;/span&gt;,
&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;20/20/2009&quot;&lt;/span&gt;, &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;10/40/2009&quot;&lt;/span&gt;, &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;1a0/40/2009&quot;&lt;/span&gt;,
&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;10/4.5/2009&quot;&lt;/span&gt; };&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; Expression = &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;[01][0-2][/\\.-]?[0-3][0-9][/\\.-]\\d{4}&quot;&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;for&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; (&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;
i = 0; i &amp;lt; DateToValidate.Length; i++)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; (Regex.IsMatch(DateToValidate[i], Expression))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt;&quot;&gt;Console&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;.WriteLine(DateToValidate[i] + &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;
Is Valid&quot;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;else&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt;&quot;&gt;Console&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;.WriteLine(DateToValidate[i] + &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;
Is Not Valid&quot;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 13.5pt;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
Now seeing how
Regular Expressions have helped us to solve this by writing two lines of code,
let&#39;s go ahead and analyze the below Regular Expression used to achieve this
validation:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;string&lt;span style=&quot;font-size: 9.5pt;&quot;&gt;
Expression = &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;[01][0-2][/\\.-]?[0-3][0-9][/\\.-]\\d{4}&quot;&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;[01] means that the first charachter can
either be a &#39;0&#39; or a &#39;1&#39;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
[0-2] means that the second charachter can be a
range from 0-2&lt;br /&gt;
&lt;br /&gt;
[/\\.-] means that the third charachter can either
be a &#39;/&#39; or &#39;.&#39; or &#39;-&#39;&lt;br /&gt;
&lt;br /&gt;
? means that the charachter(s) before the question
mark (in this case the [/\\.-])can be either zero or one. so the date can
either be 0212/2005 or 02/12/2005&lt;br /&gt;
&lt;br /&gt;
[0-3] means that the next charachter can be a
range from 0-3&lt;br /&gt;
&lt;br /&gt;
[0-9] means that the next charachter can be a
range from 0-9&lt;br /&gt;
&lt;br /&gt;
[/\\.-] means that the next charachter can either
be a &#39;/&#39; or &#39;.&#39; or &#39;-&#39;&lt;br /&gt;
&lt;br /&gt;
\\d means that the next charachter is a decimal
charachter from 0-9&lt;br /&gt;
&lt;br /&gt;
{4} means that the previous condition should be
duplicated 4 times (In this case it is the /d which means 4 decimal charachters)&lt;br /&gt;
&lt;br /&gt;
Hope you will find this useful, as this is a great
way to do validation.&lt;br /&gt;
&lt;br /&gt;
Here are a couple of Regular Expressions:&lt;br /&gt;
&lt;br /&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;&quot;&gt;
 &lt;tbody&gt;
&lt;tr&gt;
  &lt;td style=&quot;background: black; border: solid windowtext 1.0pt; mso-background-themecolor: text1; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.9pt;&quot; valign=&quot;top&quot; width=&quot;85&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: black; background-image: initial; background-origin: initial; color: white; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Regular Expression&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;background: black; border-left: none; border: solid windowtext 1.0pt; mso-background-themecolor: text1; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 166.5pt;&quot; valign=&quot;top&quot; width=&quot;222&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: black; background-image: initial; background-origin: initial; color: white; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Explanation&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;background: black; border-left: none; border: solid windowtext 1.0pt; mso-background-themecolor: text1; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: .75in;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: black; background-image: initial; background-origin: initial; color: white; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Example&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;background: black; border-left: none; border: solid windowtext 1.0pt; mso-background-themecolor: text1; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.7in;&quot; valign=&quot;top&quot; width=&quot;259&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: black; background-image: initial; background-origin: initial; color: white; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Matches&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: white; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.9pt;&quot; valign=&quot;top&quot; width=&quot;85&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;^&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 166.5pt;&quot; valign=&quot;top&quot; width=&quot;222&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Start of a string.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: .75in;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;^Ex&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.7in;&quot; valign=&quot;top&quot; width=&quot;259&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Expression, Example, Explanation, …&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.9pt;&quot; valign=&quot;top&quot; width=&quot;85&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;$&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 166.5pt;&quot; valign=&quot;top&quot; width=&quot;222&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;End of a string.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: .75in;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;$ill&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.7in;&quot; valign=&quot;top&quot; width=&quot;259&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;ill, Bill, Will, Phill, …&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.9pt;&quot; valign=&quot;top&quot; width=&quot;85&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 166.5pt;&quot; valign=&quot;top&quot; width=&quot;222&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Any character (except \n newline)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: .75in;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;p.t&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.7in;&quot; valign=&quot;top&quot; width=&quot;259&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;put, pat,pit, …&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.9pt;&quot; valign=&quot;top&quot; width=&quot;85&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;|&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 166.5pt;&quot; valign=&quot;top&quot; width=&quot;222&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Alternation.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: .75in;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;John|Jim&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.7in;&quot; valign=&quot;top&quot; width=&quot;259&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;“John” or “Jim”&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.9pt;&quot; valign=&quot;top&quot; width=&quot;85&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;{...}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 166.5pt;&quot; valign=&quot;top&quot; width=&quot;222&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Explicit quantifier notation.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: .75in;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;co{3}l &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.7in;&quot; valign=&quot;top&quot; width=&quot;259&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;coool&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.9pt;&quot; valign=&quot;top&quot; width=&quot;85&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;[...]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 166.5pt;&quot; valign=&quot;top&quot; width=&quot;222&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Explicit set of characters to match.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: .75in;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;li[fv]e &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.7in;&quot; valign=&quot;top&quot; width=&quot;259&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;life or live&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.9pt;&quot; valign=&quot;top&quot; width=&quot;85&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;(…)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 166.5pt;&quot; valign=&quot;top&quot; width=&quot;222&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Logical grouping of part of an expression.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: .75in;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;(life){2} &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.7in;&quot; valign=&quot;top&quot; width=&quot;259&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;lifelife&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.9pt;&quot; valign=&quot;top&quot; width=&quot;85&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;*&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 166.5pt;&quot; valign=&quot;top&quot; width=&quot;222&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;0 or more of previous expression.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: .75in;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;lo*se&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.7in;&quot; valign=&quot;top&quot; width=&quot;259&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;lse, lose, loose, loose, …&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.9pt;&quot; valign=&quot;top&quot; width=&quot;85&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;+&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 166.5pt;&quot; valign=&quot;top&quot; width=&quot;222&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;1 or more of previous expression.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: .75in;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;lo+se&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.7in;&quot; valign=&quot;top&quot; width=&quot;259&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;lose, loose, loose, …&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.9pt;&quot; valign=&quot;top&quot; width=&quot;85&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 166.5pt;&quot; valign=&quot;top&quot; width=&quot;222&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;0 or 1 of previous expression&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: .75in;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;lo?se&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.7in;&quot; valign=&quot;top&quot; width=&quot;259&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;lse or lose&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.9pt;&quot; valign=&quot;top&quot; width=&quot;85&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;\&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 166.5pt;&quot; valign=&quot;top&quot; width=&quot;222&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Escapes a special charachter&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: .75in;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;1\+2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.7in;&quot; valign=&quot;top&quot; width=&quot;259&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;1+2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.9pt;&quot; valign=&quot;top&quot; width=&quot;85&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;[aeiou]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 166.5pt;&quot; valign=&quot;top&quot; width=&quot;222&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Matches any single character included in&lt;br /&gt;
  the specified set of characters.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: .75in;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;p[aeiou]t&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.7in;&quot; valign=&quot;top&quot; width=&quot;259&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;pat,pet,pit,pot,put&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.9pt;&quot; valign=&quot;top&quot; width=&quot;85&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;[^aeiou]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 166.5pt;&quot; valign=&quot;top&quot; width=&quot;222&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Matches any single character not in the&lt;br /&gt;
  specified set of characters.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: .75in;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;p[^aei]t&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.7in;&quot; valign=&quot;top&quot; width=&quot;259&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;pot,put&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.9pt;&quot; valign=&quot;top&quot; width=&quot;85&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;[0-9a-fA-F]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 166.5pt;&quot; valign=&quot;top&quot; width=&quot;222&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Use of a hyphen (–) allows specification of&lt;br /&gt;
  contiguous character ranges.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: .75in;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;[A-C]ill&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.7in;&quot; valign=&quot;top&quot; width=&quot;259&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Aill,Bill,Cill&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.9pt;&quot; valign=&quot;top&quot; width=&quot;85&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;\w&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 166.5pt;&quot; valign=&quot;top&quot; width=&quot;222&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Matches any word character. \w is equivalent&lt;br /&gt;
  to [a-zA-Z_0-9].&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: .75in;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.7in;&quot; valign=&quot;top&quot; width=&quot;259&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.9pt;&quot; valign=&quot;top&quot; width=&quot;85&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;\W&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 166.5pt;&quot; valign=&quot;top&quot; width=&quot;222&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Matches any nonword character.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: .75in;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.7in;&quot; valign=&quot;top&quot; width=&quot;259&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.9pt;&quot; valign=&quot;top&quot; width=&quot;85&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;\s&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 166.5pt;&quot; valign=&quot;top&quot; width=&quot;222&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Matches any white-space character.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: .75in;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.7in;&quot; valign=&quot;top&quot; width=&quot;259&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.9pt;&quot; valign=&quot;top&quot; width=&quot;85&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;\S&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 166.5pt;&quot; valign=&quot;top&quot; width=&quot;222&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Matches any non-white-space character.&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: .75in;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.7in;&quot; valign=&quot;top&quot; width=&quot;259&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.9pt;&quot; valign=&quot;top&quot; width=&quot;85&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;\d&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 166.5pt;&quot; valign=&quot;top&quot; width=&quot;222&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Matches any decimal digit.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: .75in;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.7in;&quot; valign=&quot;top&quot; width=&quot;259&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.9pt;&quot; valign=&quot;top&quot; width=&quot;85&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;\D&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 166.5pt;&quot; valign=&quot;top&quot; width=&quot;222&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Matches any nondigit.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: .75in;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.7in;&quot; valign=&quot;top&quot; width=&quot;259&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jackofalltradesdeveloper.blogspot.com/feeds/7232266302975872012/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/03/regular-expressions-and-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/7232266302975872012'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/7232266302975872012'/><link rel='alternate' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/03/regular-expressions-and-c.html' title='Regular Expressions and C#'/><author><name>Ahmed Ibrahim Khattab</name><uri>http://www.blogger.com/profile/06343046874255002479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-gHQiAJRGsEvGSFiWLeLRutspzw2Tqz3n0JJjYrkENRxozxkGVkZgW8Y1_xJVIG9cd6xS7gyJzC_FpGe0Ky2hmCFtlhYfpX5OLm7awSXeljNQSZE8KCS3e6teuhnLR-w/s220/IMG_0777.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1386236209117835869.post-1347152995530849021</id><published>2012-03-26T23:40:00.000-07:00</published><updated>2012-04-05T00:35:39.146-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming Styles"/><title type='text'>C# If Statement Shorthand</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
The syntax of the shorthand if-statement is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Return Value&amp;gt; = (Condition) ? &amp;lt;True Result&amp;gt; : &amp;lt;False Result&amp;gt;;&lt;br /&gt;
&lt;br /&gt;
So below we have a function that will evaluate two values, and will return the maximum of the two.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; GetMax(&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; Value1, &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;
Value2)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; Max = -999;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;Max = (Value1 &amp;gt; Value2) ?
Value1 : Value2;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; Max;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; line-height: 115%;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jackofalltradesdeveloper.blogspot.com/feeds/1347152995530849021/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/03/c-if-statement-shorthand.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/1347152995530849021'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/1347152995530849021'/><link rel='alternate' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/03/c-if-statement-shorthand.html' title='C# If Statement Shorthand'/><author><name>Ahmed Ibrahim Khattab</name><uri>http://www.blogger.com/profile/06343046874255002479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-gHQiAJRGsEvGSFiWLeLRutspzw2Tqz3n0JJjYrkENRxozxkGVkZgW8Y1_xJVIG9cd6xS7gyJzC_FpGe0Ky2hmCFtlhYfpX5OLm7awSXeljNQSZE8KCS3e6teuhnLR-w/s220/IMG_0777.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1386236209117835869.post-6335507530178744630</id><published>2012-03-25T00:51:00.001-07:00</published><updated>2012-03-25T00:51:47.003-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ArcGIS Server 10"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="GIS"/><title type='text'>How to Get ArcGIS Server Layer Information</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This shows how to get information from ArcGIS Server&#39;s Layer&lt;br /&gt;
&lt;br /&gt;
To do this you will need to download a JSON Serializer, this solution use&#39;s Newton Soft&#39;s JSON Serializer&amp;nbsp;&lt;a href=&quot;http://james.newtonking.com/pages/json-net.aspx&quot; target=&quot;_blank&quot;&gt;JSON.NET&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
First you will Need the below classes:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Layer&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;
id, parentLayerId;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;
name;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;bool&lt;/span&gt;
defaultVisibility;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;List&lt;/span&gt;&amp;lt;&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;&amp;gt; subLayerIds;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;struct&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Extent&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;double&lt;/span&gt;
XMin, YMin, XMax, YMax;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;
Extent(&lt;span style=&quot;color: blue;&quot;&gt;bool&lt;/span&gt; InitializeMaxValues)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; (InitializeMaxValues)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;.XMin = 999999999999999;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;.XMax = -999999999999999;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;.YMin = 999999999999999;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;.YMax = -999999999999999;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;else&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;.XMin = 0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;.XMax = 0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;.YMin = 0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;.YMax = 0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; Extent(&lt;span style=&quot;color: blue;&quot;&gt;double&lt;/span&gt;
XMin, &lt;span style=&quot;color: blue;&quot;&gt;double&lt;/span&gt; YMin, &lt;span style=&quot;color: blue;&quot;&gt;double&lt;/span&gt;
XMax, &lt;span style=&quot;color: blue;&quot;&gt;double&lt;/span&gt; YMax)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;.XMin = XMin;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;.XMax = XMax;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;.YMin = YMin;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;.YMax = YMax;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;DetailedLayer&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;?
id { &lt;span style=&quot;color: blue;&quot;&gt;get&lt;/span&gt;; &lt;span style=&quot;color: blue;&quot;&gt;set&lt;/span&gt;;
}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Layer&lt;/span&gt;
parentLayer { &lt;span style=&quot;color: blue;&quot;&gt;get&lt;/span&gt;; &lt;span style=&quot;color: blue;&quot;&gt;set&lt;/span&gt;;
}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;
name, type, description, definitionExpression, geometryType, copyrightText,
htmlPopupType, displayField, capabilities;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;List&lt;/span&gt;&amp;lt;&lt;span style=&quot;color: #2b91af;&quot;&gt;Layer&lt;/span&gt;&amp;gt; subLayers;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;double&lt;/span&gt;
minScale, maxScale;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;bool&lt;/span&gt;
defaultVisibility, hasAttachments;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Extent&lt;/span&gt;
extent;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;object&lt;/span&gt;
drawingInfo, fields, typeIdField, types, relationships;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;static&lt;/span&gt;
&lt;span style=&quot;color: #2b91af;&quot;&gt;DetailedLayer&lt;/span&gt; GetDetailedLayerInfo(&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt; URL)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;try&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; url = URL.TrimEnd(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;/&quot;&lt;/span&gt;.ToCharArray())
+ &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;?f=pjson&quot;&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;System.Net.&lt;span style=&quot;color: #2b91af;&quot;&gt;WebResponse&lt;/span&gt;
response = &lt;span style=&quot;color: blue;&quot;&gt;null&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;System.Net.&lt;span style=&quot;color: #2b91af;&quot;&gt;HttpWebRequest&lt;/span&gt;
request = (System.Net.&lt;span style=&quot;color: #2b91af;&quot;&gt;HttpWebRequest&lt;/span&gt;)System.Net.&lt;span style=&quot;color: #2b91af;&quot;&gt;WebRequest&lt;/span&gt;.Create(url);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;request.Method = &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;GET&quot;&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;response = request.GetResponse();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; (response != &lt;span style=&quot;color: blue;&quot;&gt;null&lt;/span&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;System.IO.&lt;span style=&quot;color: #2b91af;&quot;&gt;StreamReader&lt;/span&gt;
myReader = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; System.IO.&lt;span style=&quot;color: #2b91af;&quot;&gt;StreamReader&lt;/span&gt;(response.GetResponseStream());&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; ResponseString = myReader.ReadToEnd();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt;&quot;&gt;DetailedLayer&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; newDetailedLayerInfo = Newtonsoft.Json.&lt;span style=&quot;color: #2b91af;&quot;&gt;JsonConvert&lt;/span&gt;.DeserializeObject(ResponseString, &lt;span style=&quot;color: blue;&quot;&gt;typeof&lt;/span&gt;(&lt;span style=&quot;color: #2b91af;&quot;&gt;DetailedLayer&lt;/span&gt;))
&lt;span style=&quot;color: blue;&quot;&gt;as&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;DetailedLayer&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; newDetailedLayerInfo;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;catch&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; (&lt;span style=&quot;color: #2b91af;&quot;&gt;Exception&lt;/span&gt; ex) { &lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine(ex.Message); }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;DetailedLayer&lt;/span&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;Now all you have to do is call the static function&amp;nbsp;&lt;/o:p&gt;&lt;span style=&quot;font-family: Consolas; font-size: 13px; text-indent: 48px;&quot;&gt;GetDetailedLayerInfo:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 13px; text-indent: 48px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt;&quot;&gt;DetailedLayer&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;.GetDetailedLayerInfo(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;http://GISServer/ArcGIS/rest/services/MyService/MapServer/31&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jackofalltradesdeveloper.blogspot.com/feeds/6335507530178744630/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/03/how-to-get-arcgis-server-layer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/6335507530178744630'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/6335507530178744630'/><link rel='alternate' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/03/how-to-get-arcgis-server-layer.html' title='How to Get ArcGIS Server Layer Information'/><author><name>Ahmed Ibrahim Khattab</name><uri>http://www.blogger.com/profile/06343046874255002479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-gHQiAJRGsEvGSFiWLeLRutspzw2Tqz3n0JJjYrkENRxozxkGVkZgW8Y1_xJVIG9cd6xS7gyJzC_FpGe0Ky2hmCFtlhYfpX5OLm7awSXeljNQSZE8KCS3e6teuhnLR-w/s220/IMG_0777.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1386236209117835869.post-1172870981914804294</id><published>2012-03-22T22:50:00.001-07:00</published><updated>2012-03-22T22:50:31.887-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL Azure"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><title type='text'>Copy Tables From SQL Server to SQL Azure via SQL Server Management Studio</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
In this Article we&#39;ll show how to Copy data from SQL Server to SQL Azure, we&#39;ll do this in three steps because you cannot copy data to a SQL Azure table that has no Clustered Index:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
When you try to export data you will very likely get an error because there is no Clustered Index. So SQL Server Management studio requires that a&amp;nbsp;&lt;/div&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/AVvXsEhLPY7Q9xiS2Zj3DmYSc0iarzIfdiudOE3NIIS-VBmLXhZFHpOwIfPFnxhw_dJAREUSr4ev8uo6Cv9j3fA6hZsqxfGzkYyY7KB130RrrcbkZM9JnQLrerafm5MQPWcSUdNWf53bnuByywNs/s1600/SQLServerToSQLAzure10.jpg&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/AVvXsEhLPY7Q9xiS2Zj3DmYSc0iarzIfdiudOE3NIIS-VBmLXhZFHpOwIfPFnxhw_dJAREUSr4ev8uo6Cv9j3fA6hZsqxfGzkYyY7KB130RrrcbkZM9JnQLrerafm5MQPWcSUdNWf53bnuByywNs/s1600/SQLServerToSQLAzure10.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&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: left;&quot;&gt;
An exception has occurred during data insertion, the message returned from the provider is: Tables without a clustered index are not supported in this version of SQL Server. Please create a clustered index and try again.&lt;/div&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/AVvXsEjeiFQtLLe9CWSO9CYrFeyTMIscFTzRbuOtVzSV08OLgcstp_9MG_l4N0fHw9DHeW36ZqqwC2NeclJz641X-DLG-4PQ54qevb85_0bVxZHYiC_PK8DIIMEn5ZrZ-5iYyh8daEViYTpHhXUY/s1600/SQLServerToSQLAzure11.jpg&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/AVvXsEjeiFQtLLe9CWSO9CYrFeyTMIscFTzRbuOtVzSV08OLgcstp_9MG_l4N0fHw9DHeW36ZqqwC2NeclJz641X-DLG-4PQ54qevb85_0bVxZHYiC_PK8DIIMEn5ZrZ-5iYyh8daEViYTpHhXUY/s1600/SQLServerToSQLAzure11.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
To resolve this, follow the below instructions&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
Select &quot;Export Data&quot; to open the export data wizard:&lt;/div&gt;
&lt;div&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/AVvXsEhzdBd3Lde0fvHEGcxA8bQVHq0zuvcaFHXLEsvJo89wlKq28QnIYQcsETyLY7gjQPnNvUqNQY9NoUh-oZU00ybpYHwBONtqnMEbeHyoQpijMNHp1oxGFIC14hE9J9lE15Ee1I81d-QkOcqa/s1600/SQLServerToSQLAzure.jpg&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/AVvXsEhzdBd3Lde0fvHEGcxA8bQVHq0zuvcaFHXLEsvJo89wlKq28QnIYQcsETyLY7gjQPnNvUqNQY9NoUh-oZU00ybpYHwBONtqnMEbeHyoQpijMNHp1oxGFIC14hE9J9lE15Ee1I81d-QkOcqa/s1600/SQLServerToSQLAzure.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&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/AVvXsEgm76xDIRUzo9z3PLC3WOAJqjH8dlSiwAITYCK27pSI7tlBeREv__UAnCZTptEVm16OWeRQ3Hk1JgQ4hxiwkMFOZlt30COKEsc0sMsoSdffjKFzQ6eas0Evbpu6vvtqbuqOcRFHm2AWpUv6/s1600/SQLServerToSQLAzure1.jpg&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/AVvXsEgm76xDIRUzo9z3PLC3WOAJqjH8dlSiwAITYCK27pSI7tlBeREv__UAnCZTptEVm16OWeRQ3Hk1JgQ4hxiwkMFOZlt30COKEsc0sMsoSdffjKFzQ6eas0Evbpu6vvtqbuqOcRFHm2AWpUv6/s1600/SQLServerToSQLAzure1.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&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: left;&quot;&gt;
Enter the information for the Server which you will copy the data from:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&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/AVvXsEiPp358vvXei5W2QwZP58ca0xdsjTGsISGtA8QmOhOiLfhFyb7UUkf4RolQeyxqEmibeHMfzORIcj4yGhUpLUafz_VoIH0SlisXaXQJZ4GaqgkZJTm1v-R3lLbnArzwzRNfaLiOLvTy9g5K/s1600/SQLServerToSQLAzure2.jpg&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/AVvXsEiPp358vvXei5W2QwZP58ca0xdsjTGsISGtA8QmOhOiLfhFyb7UUkf4RolQeyxqEmibeHMfzORIcj4yGhUpLUafz_VoIH0SlisXaXQJZ4GaqgkZJTm1v-R3lLbnArzwzRNfaLiOLvTy9g5K/s1600/SQLServerToSQLAzure2.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&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: left;&quot;&gt;
The server will be copied to SQL Azure, to connect to SQL Azure, you need to choose the Destination as &quot;.Net Framework Data Provider for SqlServer&quot;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Then you will need to enter the credentials&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;b&gt;Note:&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;b&gt;Your UserID should be in the format &quot;&amp;lt;username&amp;gt;@&amp;lt;SQL Azure Server&amp;gt;&quot;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;b&gt;Your Datasource should be in the format &quot;&amp;lt;SQL Azure Server&amp;gt;.database.windows.net&quot;&lt;/b&gt;&lt;/div&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/AVvXsEhInwu0Xht3GlG0AKfg_2qjFO-k3A3V4unixxPsuRqpWWQ164CfehF4dYXD0ogPXb5pv7kGhbLlYCVUh1h7VtV-CSMZkWGOLtDfgf1-lYIw7K2fxBSaZSkdPccid8P9EJMODUHVMLi2djbW/s1600/SQLServerToSQLAzure3.jpg&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/AVvXsEhInwu0Xht3GlG0AKfg_2qjFO-k3A3V4unixxPsuRqpWWQ164CfehF4dYXD0ogPXb5pv7kGhbLlYCVUh1h7VtV-CSMZkWGOLtDfgf1-lYIw7K2fxBSaZSkdPccid8P9EJMODUHVMLi2djbW/s1600/SQLServerToSQLAzure3.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&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: left;&quot;&gt;
Select &quot;&lt;b&gt;Copy Data from one or more tables or views&lt;/b&gt;&quot;, but because this process will not create the Cluster Index, it will only be useful in create the schema in SQL Azure.&lt;/div&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;/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/AVvXsEhBaiP9E7E7tEzNWZ52L0AzgskYczcKBTTGfnCGXp9IbqqaDABa4nDcVc2EkA1YNtVWigpqkxm8wFbzMRimq7wTo2I4S9LFlXti-_NXoz0syHyM0XQpPQCcFzJEXIjbd-7gTdtNaRtqQ-J3/s1600/SQLServerToSQLAzure4.jpg&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/AVvXsEhBaiP9E7E7tEzNWZ52L0AzgskYczcKBTTGfnCGXp9IbqqaDABa4nDcVc2EkA1YNtVWigpqkxm8wFbzMRimq7wTo2I4S9LFlXti-_NXoz0syHyM0XQpPQCcFzJEXIjbd-7gTdtNaRtqQ-J3/s1600/SQLServerToSQLAzure4.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&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: left;&quot;&gt;
Select the Table(s) that you want to copy in the next screen and click on edit mappings to check for any nvarchar(max) fields:&lt;/div&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/AVvXsEgWl2f69E3KzPGS_weGV3gQAT2pIbWtYXoe-F6Wj2CbXyPIN7EXJajJhX2_uKhtG_5T45dbdzpCfd4EEoBs0_7ES7btH8lBFEdqX4b0utCWOCpngN8GTQ6m_JCBClwQ5oyll122lRyqAHjX/s1600/SQLServerToSQLAzure5.jpg&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/AVvXsEgWl2f69E3KzPGS_weGV3gQAT2pIbWtYXoe-F6Wj2CbXyPIN7EXJajJhX2_uKhtG_5T45dbdzpCfd4EEoBs0_7ES7btH8lBFEdqX4b0utCWOCpngN8GTQ6m_JCBClwQ5oyll122lRyqAHjX/s1600/SQLServerToSQLAzure5.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&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: left;&quot;&gt;
For some reason, I&#39;m unable to copy any scheme that has nvarchar(max) (I need to do more research), but for now, the maximum allowed is 4000, so change that where ever you see max in the size column.&lt;/div&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/AVvXsEh5rk_fRQayAfwmcTtyWRLiOkDdl6RdS2wJMdsjSDXSVVRXTc-vK9xJdY7QOdjJvJnkdz9QalD536F1SHBS18TW8hyRACTv1PbmCQV0yZkIl9i7g5mKwxpU7XRR-xxsdUI7s-Lq7eEEEaEv/s1600/SQLServerToSQLAzure6.jpg&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/AVvXsEh5rk_fRQayAfwmcTtyWRLiOkDdl6RdS2wJMdsjSDXSVVRXTc-vK9xJdY7QOdjJvJnkdz9QalD536F1SHBS18TW8hyRACTv1PbmCQV0yZkIl9i7g5mKwxpU7XRR-xxsdUI7s-Lq7eEEEaEv/s1600/SQLServerToSQLAzure6.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&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: left;&quot;&gt;
To Insert the data after creating the Table in SQL Azure, we need to create a Cluster Index, so click on &quot;Edit SQL&quot;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&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/AVvXsEjbFVrzJnmQj1FbILr5SmTAUZI0ENiBklUCuDGTAHPp-Jwb2RfTM1b6N61EtQhnBQBa-uKQ_Brm3y0wdkbmz8HwNFVu2mLp6FR7R3YJQS9S2o73MRM6Kghy6B7sSw5FGuWQnSwun0kHI_PX/s1600/SQLServerToSQLAzure21.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;606&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbFVrzJnmQj1FbILr5SmTAUZI0ENiBklUCuDGTAHPp-Jwb2RfTM1b6N61EtQhnBQBa-uKQ_Brm3y0wdkbmz8HwNFVu2mLp6FR7R3YJQS9S2o73MRM6Kghy6B7sSw5FGuWQnSwun0kHI_PX/s640/SQLServerToSQLAzure21.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
When you open the &quot;Create Table SQL Statement&quot; window, add the command:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
CREATE CLUSTERED INDEX &amp;lt;Cluster Index Name&amp;gt; On &amp;lt;Table Name&amp;gt; (&amp;lt;Unique Column Identifier Name&amp;gt;)&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
CREATE CLUSTERED INDEX ExtTableInfoID On dbo.ExternalTableInfo (
ExternalTableInfoID)&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
This will let you create the Clustered Index right after Table Creation and before data is inserted.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
This screen will just notify you if there are any conflicts with the data types, and lets you say what to do in case of a conflict, I usually tell it to ignore.&lt;/div&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/AVvXsEjdgaGZc5PTgMOsOs9nxEd2_rQTVHPkHUjpy0wJm3RwAGc7RV5uQ3z52_ijLCVHjPhIyNHsEOkxeIjo7rRKY8o-O3ElTFIPDuv14yCUdUNget2iQiF3AHX0Uls9jX0t8VF3bCREHRrOLocV/s1600/SQLServerToSQLAzure7.jpg&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/AVvXsEjdgaGZc5PTgMOsOs9nxEd2_rQTVHPkHUjpy0wJm3RwAGc7RV5uQ3z52_ijLCVHjPhIyNHsEOkxeIjo7rRKY8o-O3ElTFIPDuv14yCUdUNget2iQiF3AHX0Uls9jX0t8VF3bCREHRrOLocV/s1600/SQLServerToSQLAzure7.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&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/AVvXsEidrMFxuukjD1EBMYYimGF0R5aEOnMdmtkSPexqjJujRZ5rAT7MJlFvL_BES7LJILdcWWevE3ngVqJ0Rlj51iGCL8FjoNBIrrBI_78rCtW_0agIlVB1hloTard8Pd9K0wFCmRafsG1DNCej/s1600/SQLServerToSQLAzure8.jpg&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/AVvXsEidrMFxuukjD1EBMYYimGF0R5aEOnMdmtkSPexqjJujRZ5rAT7MJlFvL_BES7LJILdcWWevE3ngVqJ0Rlj51iGCL8FjoNBIrrBI_78rCtW_0agIlVB1hloTard8Pd9K0wFCmRafsG1DNCej/s1600/SQLServerToSQLAzure8.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&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/AVvXsEhxAKqhXI0lqWZ3jCwo0uCl6onlr10fR5xBT49T9u7509A9zKCqhpg5pIk8pSZ-bu9OPRnI1WQE71HbRItPOHOk_AO3gSfd5Yg9WZwIW6jRuTwpQ8Cal0i79xJoMjuYAzIGHGM8FyOkj-Pn/s1600/SQLServerToSQLAzure9.jpg&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/AVvXsEhxAKqhXI0lqWZ3jCwo0uCl6onlr10fR5xBT49T9u7509A9zKCqhpg5pIk8pSZ-bu9OPRnI1WQE71HbRItPOHOk_AO3gSfd5Yg9WZwIW6jRuTwpQ8Cal0i79xJoMjuYAzIGHGM8FyOkj-Pn/s1600/SQLServerToSQLAzure9.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&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/AVvXsEipfFqzT08KmFEVou923RHDhtOZO3WcAQo7HZAFgH_A-bu1sDwkB5jB52TlIMtU48FNy4jXN4-sXpNPnEHMBr7hi3D26e52Gd2Y7PLtYbyWHrOkUiKon2ApfxbFxysl_qnHTrbN64u8ABAG/s1600/SQLServerToSQLAzure20.jpg&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/AVvXsEipfFqzT08KmFEVou923RHDhtOZO3WcAQo7HZAFgH_A-bu1sDwkB5jB52TlIMtU48FNy4jXN4-sXpNPnEHMBr7hi3D26e52Gd2Y7PLtYbyWHrOkUiKon2ApfxbFxysl_qnHTrbN64u8ABAG/s1600/SQLServerToSQLAzure20.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&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: left;&quot;&gt;
You have successfully copied the the data.&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jackofalltradesdeveloper.blogspot.com/feeds/1172870981914804294/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/03/copy-tables-from-sql-server-to-sql.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/1172870981914804294'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/1172870981914804294'/><link rel='alternate' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/03/copy-tables-from-sql-server-to-sql.html' title='Copy Tables From SQL Server to SQL Azure via SQL Server Management Studio'/><author><name>Ahmed Ibrahim Khattab</name><uri>http://www.blogger.com/profile/06343046874255002479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-gHQiAJRGsEvGSFiWLeLRutspzw2Tqz3n0JJjYrkENRxozxkGVkZgW8Y1_xJVIG9cd6xS7gyJzC_FpGe0Ky2hmCFtlhYfpX5OLm7awSXeljNQSZE8KCS3e6teuhnLR-w/s220/IMG_0777.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLPY7Q9xiS2Zj3DmYSc0iarzIfdiudOE3NIIS-VBmLXhZFHpOwIfPFnxhw_dJAREUSr4ev8uo6Cv9j3fA6hZsqxfGzkYyY7KB130RrrcbkZM9JnQLrerafm5MQPWcSUdNWf53bnuByywNs/s72-c/SQLServerToSQLAzure10.jpg" height="72" width="72"/><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1386236209117835869.post-9197129027289464745</id><published>2012-03-19T01:28:00.001-07:00</published><updated>2012-03-19T12:33:31.893-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ArcGIS Server 10"/><category scheme="http://www.blogger.com/atom/ns#" term="ESRI"/><category scheme="http://www.blogger.com/atom/ns#" term="GIS"/><category scheme="http://www.blogger.com/atom/ns#" term="IIS"/><title type='text'>Server Error When Accessing ArcGIS Rest Directory or When accessing Service After Upgrading ArcGIS Server to SP4</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
After upgrading ArcGIS Server Service Pack or doing a reinstall or GIS Post Install, you get the below ArcGIS Server Error

&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;br /&gt;
&lt;pre&gt;Server Error in &#39;/ArcGIS/rest&#39; Application.
--------------------------------------------------------------------------------

Server Host cannot be null. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: ESRI.ArcGIS.ADF.Connection.ServerHostNullException: Server Host cannot be null.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace: 


[ServerHostNullException: Server Host cannot be null.]
   ESRI.ArcGIS.ADF.Connection.AGS.AGSServerConnection.Connect(Boolean throwExceptionOnUnauthorizedAccess) +364
   ESRI.ArcGIS.ADF.Connection.AGS.AGSServerConnection..ctor(String host, Identity identity, Boolean connect) +41
   ESRI.ArcGIS.REST.RestAppConfig.CheckSecuritySetting(HttpContext ctx) +81
   ESRI.ArcGIS.REST.RestAppConfig..ctor(HttpContext context) +58
   ESRI.ArcGIS.REST.RestUtils.GetRestAppConfig(HttpContext context) +76
   ESRI.ArcGIS.REST.RestModule.System.Web.IHttpModule.Init(HttpApplication app) +28
   System.Web.HttpApplication.InitModulesCommon() +66
   System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +814
   System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +243
   System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +106
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +340
 &lt;/pre&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;/div&gt;
&lt;br /&gt;
First you should try to run the &quot;Web Services Post Install&quot; If you get the error &quot;Fatal Error Occurred with Services Configuration Settings&quot;&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/AVvXsEgbpfVnYxE3d6Epy-Ni6RDz4Flo1wqKw7-1oCxahoXFxpo2yq3Mz_JYmsTeo02pOMmRGjTtuhLWnGIKMD7vPBveBIjFpO8qL19q7NgeLBPzRsNdpRJaTS_VET7DE-QVgvPtR97opgUyk8W_/s1600/ArcGISServer_PostInstall_Error.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbpfVnYxE3d6Epy-Ni6RDz4Flo1wqKw7-1oCxahoXFxpo2yq3Mz_JYmsTeo02pOMmRGjTtuhLWnGIKMD7vPBveBIjFpO8qL19q7NgeLBPzRsNdpRJaTS_VET7DE-QVgvPtR97opgUyk8W_/s640/ArcGISServer_PostInstall_Error.PNG&quot; width=&quot;632&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
The problem is most probably because you have changed the location of the default website&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
To check this, Right click on the default website:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&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/AVvXsEjfs_W5ah-ij8Yqk3kzigqjOi5E2gBHf-xOb7u5sZpoquFDKnkhk9Ya6lBISkHS0bPNXVxUdyqCk0DkOiDTsFt6sU3Z6azoRNjbOVi4AJn83yYvfHlbVThY6X4IiLjUZWQkGnmIILGurOFT/s1600/IIS_DefaultWebsite_Properties.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/AVvXsEjfs_W5ah-ij8Yqk3kzigqjOi5E2gBHf-xOb7u5sZpoquFDKnkhk9Ya6lBISkHS0bPNXVxUdyqCk0DkOiDTsFt6sU3Z6azoRNjbOVi4AJn83yYvfHlbVThY6X4IiLjUZWQkGnmIILGurOFT/s1600/IIS_DefaultWebsite_Properties.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&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: left;&quot;&gt;
Check the Physical Path of the Default Website&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&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/AVvXsEjvFN9RJvGZzvgf7oGNpuSj47HtQHRybiktqUUcgAXiIRGlpGr3SUy5lBQwa9-SnTq_1x0yhhTinQEQ1MBo6r9byCbfFEULPGbD-OcZjsS0EFNXGgcGOp2-GJU1cOhEtO82tLVeRPpDxjVv/s1600/IIS_DefaultWebsite_AdvancedSettings.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/AVvXsEjvFN9RJvGZzvgf7oGNpuSj47HtQHRybiktqUUcgAXiIRGlpGr3SUy5lBQwa9-SnTq_1x0yhhTinQEQ1MBo6r9byCbfFEULPGbD-OcZjsS0EFNXGgcGOp2-GJU1cOhEtO82tLVeRPpDxjVv/s1600/IIS_DefaultWebsite_AdvancedSettings.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
What happens is when you try to install the&amp;nbsp;ArcGIS Server Service Pack or doing a reinstall or GIS Post Install, the post install place the ArcGIS directories in &quot;C:\Inetpub\wwwRoot&quot; and the Virtual Directory for the &quot;ArcGIS&quot; is referred to based on the location of the Physical Path.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
The easiest way to resolve this is to &lt;b&gt;temporarily&lt;/b&gt; revert the physical path of the Default Website to&amp;nbsp;&quot;C:\Inetpub\wwwRoot&quot;&amp;nbsp;do the&amp;nbsp;install the&amp;nbsp;ArcGIS Server Service Pack or doing a reinstall or GIS Post Install and then change the physical path of the Default Website to the location you like.&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jackofalltradesdeveloper.blogspot.com/feeds/9197129027289464745/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/03/server-error-when-accessing-arcgis-rest.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/9197129027289464745'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/9197129027289464745'/><link rel='alternate' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/03/server-error-when-accessing-arcgis-rest.html' title='Server Error When Accessing ArcGIS Rest Directory or When accessing Service After Upgrading ArcGIS Server to SP4'/><author><name>Ahmed Ibrahim Khattab</name><uri>http://www.blogger.com/profile/06343046874255002479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-gHQiAJRGsEvGSFiWLeLRutspzw2Tqz3n0JJjYrkENRxozxkGVkZgW8Y1_xJVIG9cd6xS7gyJzC_FpGe0Ky2hmCFtlhYfpX5OLm7awSXeljNQSZE8KCS3e6teuhnLR-w/s220/IMG_0777.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbpfVnYxE3d6Epy-Ni6RDz4Flo1wqKw7-1oCxahoXFxpo2yq3Mz_JYmsTeo02pOMmRGjTtuhLWnGIKMD7vPBveBIjFpO8qL19q7NgeLBPzRsNdpRJaTS_VET7DE-QVgvPtR97opgUyk8W_/s72-c/ArcGISServer_PostInstall_Error.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1386236209117835869.post-287220390201186264</id><published>2012-03-15T23:19:00.000-07:00</published><updated>2015-02-11T21:15:28.252-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="GIS"/><title type='text'>How to project a point from Geography to Web Mercator in C#</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div&gt;
When you get a geographical point and would like to project that to Web Mercator, to be used in Google, Bing, ESRI Maps ... etc.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Let&#39;s say you have a MapPoint class like below:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;MapPoint&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;double&lt;/span&gt; x { &lt;span style=&quot;color: blue;&quot;&gt;set&lt;/span&gt;; &lt;span style=&quot;color: blue;&quot;&gt;get&lt;/span&gt;; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;double&lt;/span&gt; y { &lt;span style=&quot;color: blue;&quot;&gt;set&lt;/span&gt;; &lt;span style=&quot;color: blue;&quot;&gt;get&lt;/span&gt;; }&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt;
MapPoint(&lt;span style=&quot;color: blue;&quot;&gt;double&lt;/span&gt; x, &lt;span style=&quot;color: blue;&quot;&gt;double&lt;/span&gt;
y)&lt;span style=&quot;color: green;&quot;&gt;//, SpatialReference sp)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.x
= x;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.y
= y;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
Use the below code to project:&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;MapPoint&lt;/span&gt;
ProjectPointToWebMercator(&lt;span style=&quot;color: #2b91af;&quot;&gt;MapPoint&lt;/span&gt;
PointToReproject)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;double&lt;/span&gt;
RadiansPerDegree = &lt;span style=&quot;color: #2b91af;&quot;&gt;Math&lt;/span&gt;.PI / 180;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;double&lt;/span&gt;
Rad = PointToReproject.y * RadiansPerDegree;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;double&lt;/span&gt;
FSin = &lt;span style=&quot;color: #2b91af;&quot;&gt;Math&lt;/span&gt;.Sin(Rad);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;double&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&amp;nbsp;DegreeEqualsRadians =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;0.017453292519943&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;double&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&amp;nbsp;EarthsRadius =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;6378137&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;double&lt;/span&gt; y =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;EarthsRadius&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;/ 2.0 * &lt;span style=&quot;color: #2b91af;&quot;&gt;Math&lt;/span&gt;.Log((1.0
+ FSin) / (1.0 - FSin));&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;double&lt;/span&gt;
x = PointToReproject.x *&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;DegreeEqualsRadians&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;*&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;EarthsRadius&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;return&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;MapPoint&lt;/span&gt;(x,
y);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jackofalltradesdeveloper.blogspot.com/feeds/287220390201186264/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/03/how-to-project-point-from-geography-to.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/287220390201186264'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/287220390201186264'/><link rel='alternate' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/03/how-to-project-point-from-geography-to.html' title='How to project a point from Geography to Web Mercator in C#'/><author><name>Ahmed Ibrahim Khattab</name><uri>http://www.blogger.com/profile/06343046874255002479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-gHQiAJRGsEvGSFiWLeLRutspzw2Tqz3n0JJjYrkENRxozxkGVkZgW8Y1_xJVIG9cd6xS7gyJzC_FpGe0Ky2hmCFtlhYfpX5OLm7awSXeljNQSZE8KCS3e6teuhnLR-w/s220/IMG_0777.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1386236209117835869.post-1309976188479070142</id><published>2012-03-10T00:40:00.001-08:00</published><updated>2012-03-10T01:07:02.649-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Flex"/><title type='text'>Get Formatted Current Date and Time in Flex</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Use the below function to get a Formatted Current Date and Time&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;span style=&quot;background-color: #eeeeee; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 18px;&quot;&gt;private function CurrentDateTimeString():String&lt;/span&gt;&lt;br /&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; vertical-align: baseline; width: auto;&quot;&gt;&lt;code style=&quot;background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;{               
    var CurrentDateTime:Date = new Date();
    var CurrentDF:DateFormatter = new DateFormatter();
    CurrentDF.formatString = &quot;MM/DD/YY LL:NN:SS A&quot;
    var DateTimeString:String = CurrentDF.format(CurrentDateTime);
    return DateTimeString;
}&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jackofalltradesdeveloper.blogspot.com/feeds/1309976188479070142/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/03/get-formatted-current-date-and-time-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/1309976188479070142'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/1309976188479070142'/><link rel='alternate' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/03/get-formatted-current-date-and-time-in.html' title='Get Formatted Current Date and Time in Flex'/><author><name>Ahmed Ibrahim Khattab</name><uri>http://www.blogger.com/profile/06343046874255002479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-gHQiAJRGsEvGSFiWLeLRutspzw2Tqz3n0JJjYrkENRxozxkGVkZgW8Y1_xJVIG9cd6xS7gyJzC_FpGe0Ky2hmCFtlhYfpX5OLm7awSXeljNQSZE8KCS3e6teuhnLR-w/s220/IMG_0777.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1386236209117835869.post-6422396780793448006</id><published>2012-03-10T00:03:00.000-08:00</published><updated>2012-04-05T00:36:12.986-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><title type='text'>Selecting Table Name From Table and Using Variable as a TableName</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Let&#39;s say you have a table called Employees&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Employees&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center; width: 100%;&quot; title=&quot;Employees Table&quot;&gt;
&lt;table border=&quot;1px&quot; style=&quot;text-align: center;&quot;&gt;
            &lt;tbody&gt;
&lt;tr&gt;
                &lt;td bgcolor=&quot;Black&quot; style=&quot;color: white;&quot;&gt;EmployeeID
                &lt;/td&gt;
                &lt;td bgcolor=&quot;Black&quot; style=&quot;color: white;&quot;&gt;FirstName
                &lt;/td&gt;
                &lt;td bgcolor=&quot;Black&quot; style=&quot;color: white;&quot;&gt;LastName
                &lt;/td&gt;
                &lt;td bgcolor=&quot;Black&quot; style=&quot;color: white;&quot;&gt;DepartmentTable&lt;/td&gt;
            &lt;/tr&gt;
&lt;tr&gt;
                &lt;td&gt;1
                &lt;/td&gt;
                &lt;td&gt;John
                &lt;/td&gt;
                &lt;td&gt;Appleseed
                &lt;/td&gt;
                &lt;td&gt;Department_IT&lt;/td&gt;
            &lt;/tr&gt;
&lt;tr&gt;
                &lt;td&gt;2
                &lt;/td&gt;
                &lt;td&gt;Steve
                &lt;/td&gt;
                &lt;td&gt;Bobs
                &lt;/td&gt;
                &lt;td&gt;Department_Accounting&lt;/td&gt;
            &lt;/tr&gt;
&lt;tr&gt;
                &lt;td&gt;3
                &lt;/td&gt;
                &lt;td&gt;Phil
                &lt;/td&gt;
                &lt;td&gt;Gates
                &lt;/td&gt;
                &lt;td&gt;Department_Transportation&lt;/td&gt;
            &lt;/tr&gt;
&lt;tr&gt;
                &lt;td&gt;4
                &lt;/td&gt;
                &lt;td&gt;John
                &lt;/td&gt;
                &lt;td&gt;Doe
                &lt;/td&gt;
                &lt;td&gt;Department_Sales&lt;/td&gt;
            &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;And that table has a field called DepartmentTable, which contains the name of the Table you want to select data from.&lt;/span&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;declare&lt;/span&gt;&lt;span style=&quot;color: windowtext; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; @TableName &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;varchar&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: windowtext; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;255&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;SELECT&lt;/span&gt;&lt;span style=&quot;color: windowtext; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; @&lt;/span&gt;
&lt;span style=&quot;color: #0d0e00; font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;TableName&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: windowtext; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;SELECT&lt;/span&gt;&lt;span style=&quot;color: windowtext; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;
DepartmentTable&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;color: windowtext; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; Employees&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;WHERE&lt;/span&gt;&lt;span style=&quot;color: windowtext; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; EmployeeID &lt;/span&gt;&lt;span style=&quot;color: grey; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: windowtext; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; 3&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;DECLARE&lt;/span&gt;&lt;span style=&quot;color: windowtext; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; @sqlCommand &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;varchar&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: windowtext; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;8000&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;SET&lt;/span&gt;&lt;span style=&quot;color: windowtext; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; @sqlCommand &lt;/span&gt;&lt;span style=&quot;color: grey; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: windowtext; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&#39;SELECT * FROM &#39;&lt;/span&gt;&lt;span style=&quot;color: windowtext; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;+&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: windowtext; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;@TableName&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;EXEC &lt;/span&gt;&lt;span style=&quot;color: grey; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: windowtext; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;@sqlCommand&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Department_Transportation&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center; width: 668px;&quot; title=&quot;Employees Table&quot;&gt;
&lt;table border=&quot;1px&quot; style=&quot;text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;Black&quot; style=&quot;color: white;&quot;&gt;TransportationID&lt;/td&gt;&lt;td bgcolor=&quot;Black&quot; style=&quot;color: white;&quot;&gt;TruckNumber&lt;/td&gt;&lt;td bgcolor=&quot;Black&quot; style=&quot;color: white;&quot;&gt;GasConsumption&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;1&lt;/td&gt;&lt;td&gt;1234&lt;/td&gt;&lt;td&gt;45&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;2&lt;/td&gt;&lt;td&gt;1324&lt;/td&gt;&lt;td&gt;55&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;3&lt;/td&gt;&lt;td&gt;1234&lt;/td&gt;&lt;td&gt;45&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;4&lt;/td&gt;&lt;td&gt;1324&lt;/td&gt;&lt;td&gt;55&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jackofalltradesdeveloper.blogspot.com/feeds/6422396780793448006/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/03/selecting-table-name-from-table-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/6422396780793448006'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/6422396780793448006'/><link rel='alternate' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/03/selecting-table-name-from-table-and.html' title='Selecting Table Name From Table and Using Variable as a TableName'/><author><name>Ahmed Ibrahim Khattab</name><uri>http://www.blogger.com/profile/06343046874255002479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-gHQiAJRGsEvGSFiWLeLRutspzw2Tqz3n0JJjYrkENRxozxkGVkZgW8Y1_xJVIG9cd6xS7gyJzC_FpGe0Ky2hmCFtlhYfpX5OLm7awSXeljNQSZE8KCS3e6teuhnLR-w/s220/IMG_0777.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1386236209117835869.post-4284283416173557015</id><published>2012-03-09T21:03:00.000-08:00</published><updated>2012-03-09T21:03:32.415-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ArcGIS Server 10"/><category scheme="http://www.blogger.com/atom/ns#" term="GIS"/><category scheme="http://www.blogger.com/atom/ns#" term="IIS"/><category scheme="http://www.blogger.com/atom/ns#" term="IT"/><title type='text'>ArcGIS Server Manager And Service Directory Giving 404 Error</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white; color: dimgrey; font-family: &#39;Helvetica Neue&#39;, &#39;Lucida Grande&#39;, &#39;Segoe UI&#39;, Arial, Helvetica, Verdana, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;So after you install ArcGIS Server you cannot access the Web interface for the Server Manager And Service Directory Giving 404 Error on Windows Server 2003 with IIS 6&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: dimgrey; font-family: &#39;Helvetica Neue&#39;, &#39;Lucida Grande&#39;, &#39;Segoe UI&#39;, Arial, Helvetica, Verdana, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&lt;br /&gt;&lt;/span&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/AVvXsEghX3RFGpUXcHU0NeNIQAKFuqOvJgr2OtF0hGZuNAhV5Wx9k9iv2gquTA0yIFAXqhDrYr0SQc_LTjsHHbf0cCfL6OtFvqGrLLfQkoVrPKpCAf66gbkKX3m3WftSNmCKrT7zQrQF08oOiC7M/s1600/ArcGISRestServicesDirectoryGiving404_1.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;478&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghX3RFGpUXcHU0NeNIQAKFuqOvJgr2OtF0hGZuNAhV5Wx9k9iv2gquTA0yIFAXqhDrYr0SQc_LTjsHHbf0cCfL6OtFvqGrLLfQkoVrPKpCAf66gbkKX3m3WftSNmCKrT7zQrQF08oOiC7M/s640/ArcGISRestServicesDirectoryGiving404_1.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: dimgrey; font-family: &#39;Helvetica Neue&#39;, &#39;Lucida Grande&#39;, &#39;Segoe UI&#39;, Arial, Helvetica, Verdana, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: dimgrey; font-family: &#39;Helvetica Neue&#39;, &#39;Lucida Grande&#39;, &#39;Segoe UI&#39;, Arial, Helvetica, Verdana, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;The problem is that ArcGIS Server requires ASP.NET v2.0, you need to enable this. Go To &quot;Internet Information Services&quot; IIS Manager --&amp;gt; Web Service Extension and enable ASP.NET V2.xxx like below:&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: dimgrey; font-family: &#39;Helvetica Neue&#39;, &#39;Lucida Grande&#39;, &#39;Segoe UI&#39;, Arial, Helvetica, Verdana, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&lt;br /&gt;&lt;/span&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/AVvXsEjRVl1aLsZkjGK-GV-jFDrhzTmFwBkcw11H9XfrzkAF3YW_mSqzlxIopKW_On3MscsUQe6mGzIW_KzDE_oYg0ef4rH5XWhvrsnmcDApIVeQhzOoHXdvkaZlFR7_4pMfq8-ceWjvnuokke22/s1600/ArcGISRestServicesDirectoryGiving404_2.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;454&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRVl1aLsZkjGK-GV-jFDrhzTmFwBkcw11H9XfrzkAF3YW_mSqzlxIopKW_On3MscsUQe6mGzIW_KzDE_oYg0ef4rH5XWhvrsnmcDApIVeQhzOoHXdvkaZlFR7_4pMfq8-ceWjvnuokke22/s640/ArcGISRestServicesDirectoryGiving404_2.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: dimgrey; font-family: &#39;Helvetica Neue&#39;, &#39;Lucida Grande&#39;, &#39;Segoe UI&#39;, Arial, Helvetica, Verdana, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jackofalltradesdeveloper.blogspot.com/feeds/4284283416173557015/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/03/arcgis-server-manager-and-service.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/4284283416173557015'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/4284283416173557015'/><link rel='alternate' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/03/arcgis-server-manager-and-service.html' title='ArcGIS Server Manager And Service Directory Giving 404 Error'/><author><name>Ahmed Ibrahim Khattab</name><uri>http://www.blogger.com/profile/06343046874255002479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-gHQiAJRGsEvGSFiWLeLRutspzw2Tqz3n0JJjYrkENRxozxkGVkZgW8Y1_xJVIG9cd6xS7gyJzC_FpGe0Ky2hmCFtlhYfpX5OLm7awSXeljNQSZE8KCS3e6teuhnLR-w/s220/IMG_0777.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghX3RFGpUXcHU0NeNIQAKFuqOvJgr2OtF0hGZuNAhV5Wx9k9iv2gquTA0yIFAXqhDrYr0SQc_LTjsHHbf0cCfL6OtFvqGrLLfQkoVrPKpCAf66gbkKX3m3WftSNmCKrT7zQrQF08oOiC7M/s72-c/ArcGISRestServicesDirectoryGiving404_1.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1386236209117835869.post-1770310561372065642</id><published>2012-02-24T21:39:00.001-08:00</published><updated>2012-02-24T21:39:41.734-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IT"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows Server 2008"/><title type='text'>Cannot Login to SQL Server from Network</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
If you can connect to SQL Server from the Server it is installed on, but can not connect from another computer on the network.&lt;br /&gt;
&lt;br /&gt;
The most probable reason is that Windows Firewall, which is on by default on Windows Server 2008 is blocking the port.&lt;br /&gt;
&lt;br /&gt;
If this a default instance, then the port is 1433.&lt;br /&gt;
&lt;br /&gt;
You can add an exception to the Windows Firewall by going to &quot;&lt;strong&gt;Start&lt;/strong&gt;&quot; --&amp;gt; &quot;&lt;strong&gt;Administrative Tools&lt;/strong&gt;&quot; --&amp;gt; &quot;&lt;strong&gt;Windows Firewall with Advanced Security&lt;/strong&gt;&quot;&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/AVvXsEj5HybxLxxTzjnFzePJfeEnsdaTqlbrdQ4IRAJJaeomuCWYLy9ojA-rg5eh3pr4UFWiAOrryQBTuv4eJ-HgcEQeGZA0LzXusn-rkReoOTefhhFyTFNzGhkAzLAL1T9GfXjpWMoYfgfOBDcF/s1600/HowToStartWindowsFirewall.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;614&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5HybxLxxTzjnFzePJfeEnsdaTqlbrdQ4IRAJJaeomuCWYLy9ojA-rg5eh3pr4UFWiAOrryQBTuv4eJ-HgcEQeGZA0LzXusn-rkReoOTefhhFyTFNzGhkAzLAL1T9GfXjpWMoYfgfOBDcF/s640/HowToStartWindowsFirewall.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Go To &lt;strong&gt;Inbound Rules&lt;/strong&gt; on the Left &lt;br /&gt;
Click on &lt;strong&gt;New Rule&lt;/strong&gt; On the Right&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/AVvXsEiWOsI0m3PbRusQH32SG7GLWfWnxURGQbcN7NFG6S5aC0tUdsA5WNih2rEIZ-8Q5YPHgbVuBGuXECMTF03AYd0IlZZ7Y-0upWhx7KE9-7tYTkpzOOCDaq9SN2b0p2UV93wjz-tCo-9BKZ-S/s1600/Firewall_CreateNewRule.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;378&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWOsI0m3PbRusQH32SG7GLWfWnxURGQbcN7NFG6S5aC0tUdsA5WNih2rEIZ-8Q5YPHgbVuBGuXECMTF03AYd0IlZZ7Y-0upWhx7KE9-7tYTkpzOOCDaq9SN2b0p2UV93wjz-tCo-9BKZ-S/s640/Firewall_CreateNewRule.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Select the Rule Type &quot;&lt;strong&gt;Port&lt;/strong&gt;&quot;&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/AVvXsEgx7b2hfUTQGMV9Z_ujABNKYPRSRwvNQ-cmIk3RlUngSIPO872UgyOTyD23RJ3kZTNw4bJK2xuNUSt90jvkadngQOj6K0xB7RWDTXF-LITRK1rwPnBrEOJvE0Nz4TN5BKC8vB420esc_wdr/s1600/Firewall_NewRule_SelectPort.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;510&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgx7b2hfUTQGMV9Z_ujABNKYPRSRwvNQ-cmIk3RlUngSIPO872UgyOTyD23RJ3kZTNw4bJK2xuNUSt90jvkadngQOj6K0xB7RWDTXF-LITRK1rwPnBrEOJvE0Nz4TN5BKC8vB420esc_wdr/s640/Firewall_NewRule_SelectPort.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Specify Port&amp;nbsp; Type as &quot;&lt;strong&gt;TCP&lt;/strong&gt;&quot; and enter the &quot;&lt;strong&gt;Specific local ports&lt;/strong&gt;&quot; as 1433&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/AVvXsEhq66AQQZxaqfRZN7g5F6kWJvks36GvQLPI7OGkmKtUR7wC0Bvo7Gxb6zvc9a-XSVNV_4kSr0EAR0dOKgNc8asZNXAydflMJ8jAF1AJrgbA5TtbkTUd9a-tSsdSe2_MLVc9cgPHQ8RtmzwR/s1600/Firewall_NewRule_SpecifyPort.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;512&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhq66AQQZxaqfRZN7g5F6kWJvks36GvQLPI7OGkmKtUR7wC0Bvo7Gxb6zvc9a-XSVNV_4kSr0EAR0dOKgNc8asZNXAydflMJ8jAF1AJrgbA5TtbkTUd9a-tSsdSe2_MLVc9cgPHQ8RtmzwR/s640/Firewall_NewRule_SpecifyPort.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&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: left;&quot;&gt;
In Action specify to &quot;&lt;strong&gt;Allow the Connection&lt;/strong&gt;&quot;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&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/AVvXsEhkQXiL0z9FlIJrWFgcR7h0edxq7pjEsgJLwVdu6lB8tKipF_FYi0w69dsstbcGZwBdiwcJjGh90QP28c1rf1jm90yzEAzmald2fultA3c5dWed-3Y2Ga0MoJpZ7x7vY4n6VTsiXpBqXunz/s1600/Firewall_NewRule_Action.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;510&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkQXiL0z9FlIJrWFgcR7h0edxq7pjEsgJLwVdu6lB8tKipF_FYi0w69dsstbcGZwBdiwcJjGh90QP28c1rf1jm90yzEAzmald2fultA3c5dWed-3Y2Ga0MoJpZ7x7vY4n6VTsiXpBqXunz/s640/Firewall_NewRule_Action.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Specify the Profiles that you need to have this Rule exposed to:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&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/AVvXsEiaN50moQsaT4nIV7iQ8weDDFJK4ihmmsNZbH99hZkQCg_8II3N2WHLypNxbSv48YpvIAogTSCZ8OQM_BlB-MTUSzHp9BC2TxLlFxGBf1TMqJf11vqNLBoIkuuL1XuFvNnKFRKYsYy1VhUg/s1600/Firewall_NewRule_SpecifyProfile.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;510&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaN50moQsaT4nIV7iQ8weDDFJK4ihmmsNZbH99hZkQCg_8II3N2WHLypNxbSv48YpvIAogTSCZ8OQM_BlB-MTUSzHp9BC2TxLlFxGBf1TMqJf11vqNLBoIkuuL1XuFvNnKFRKYsYy1VhUg/s640/Firewall_NewRule_SpecifyProfile.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Choose a name for this Rule:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&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/AVvXsEg36TUZAeWUKB38H-8VJPcNhFhqfN6VbmQWOKz9_DQX2eHmkdRrpwIyn_uT_9QfljjL52xrWj1tuc7XCuVoTRFJ0LuLzxC7y_8GTj90l1O7ijwoK9j_TPScoGBQIDfCFzCVT8_MYe73m9Lq/s1600/Firewall_NewRule_ChooseANameForThisRule.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;512&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg36TUZAeWUKB38H-8VJPcNhFhqfN6VbmQWOKz9_DQX2eHmkdRrpwIyn_uT_9QfljjL52xrWj1tuc7XCuVoTRFJ0LuLzxC7y_8GTj90l1O7ijwoK9j_TPScoGBQIDfCFzCVT8_MYe73m9Lq/s640/Firewall_NewRule_ChooseANameForThisRule.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
After this, you should be able to login.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
If this is on a server that is exposed to the internet, I would recommend that you limit the scope of this rules access to specific IP Addresses.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&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/AVvXsEiqd0mt2i0v3EFH1QH9aZk0yw132ILNykQFpmQbPNn3DWNi2d0tvBWJ_AtYj9Ll6_Jx1F709X1JnQVNKXF6gCxyng4HewCWSVyd4kQW6eYLUpTpan27JcwbjTjVdSwcSJ2P5Ea_G3AwBnDc/s1600/Firewall_Rule_ChangeScope.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/AVvXsEiqd0mt2i0v3EFH1QH9aZk0yw132ILNykQFpmQbPNn3DWNi2d0tvBWJ_AtYj9Ll6_Jx1F709X1JnQVNKXF6gCxyng4HewCWSVyd4kQW6eYLUpTpan27JcwbjTjVdSwcSJ2P5Ea_G3AwBnDc/s1600/Firewall_Rule_ChangeScope.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jackofalltradesdeveloper.blogspot.com/feeds/1770310561372065642/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/02/cannot-login-to-sql-server-from-network.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/1770310561372065642'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/1770310561372065642'/><link rel='alternate' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/02/cannot-login-to-sql-server-from-network.html' title='Cannot Login to SQL Server from Network'/><author><name>Ahmed Ibrahim Khattab</name><uri>http://www.blogger.com/profile/06343046874255002479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-gHQiAJRGsEvGSFiWLeLRutspzw2Tqz3n0JJjYrkENRxozxkGVkZgW8Y1_xJVIG9cd6xS7gyJzC_FpGe0Ky2hmCFtlhYfpX5OLm7awSXeljNQSZE8KCS3e6teuhnLR-w/s220/IMG_0777.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5HybxLxxTzjnFzePJfeEnsdaTqlbrdQ4IRAJJaeomuCWYLy9ojA-rg5eh3pr4UFWiAOrryQBTuv4eJ-HgcEQeGZA0LzXusn-rkReoOTefhhFyTFNzGhkAzLAL1T9GfXjpWMoYfgfOBDcF/s72-c/HowToStartWindowsFirewall.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1386236209117835869.post-4409668283196835992</id><published>2012-02-24T13:08:00.000-08:00</published><updated>2012-02-24T13:08:49.431-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IT"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><title type='text'>Restore Orphaned Logins in SQL Server After Restoring Database From Backup</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
After Restoring a database to a new server, you need to restore orphaned logins:&lt;br /&gt;
&lt;br /&gt;

&lt;br /&gt;
&lt;ol style=&quot;margin-bottom: 0mm; margin-top: 0mm;&quot; type=&quot;a&quot;&gt;
&lt;li style=&quot;list-style-type: none;&quot;&gt;&lt;ol style=&quot;margin-bottom: 0mm; margin-top: 0mm;&quot; type=&quot;a&quot;&gt;
&lt;li style=&quot;color: #010101; font-family: Calibri; font-size: 11pt; margin-left: 15pt; margin-right: 0pt; padding-left: 0pt;&quot;&gt;&lt;div style=&quot;margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; color: black; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;color: #010101; font-family: Calibri;&quot;&gt;&lt;span style=&quot;color: #010101; font-family: Calibri; font-size: 11pt; font-style: normal; font-weight: normal;&quot;&gt;Find out which logins have been orphaned&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;line-height: 14px; margin: 0mm 0mm 3.52mm 25mm; text-indent: 0mm;&quot;&gt;
&lt;span style=&quot;color: #010101; font-family: Calibri;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Run the following SQL Commad directly on the newly restored Database&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14px; margin: 0mm 0mm 3.52mm 25mm; text-indent: 0mm;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Courier New; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;EXEC&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Courier New; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;sp_change_users_login&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Courier New; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&#39;Report&#39;&lt;/span&gt;&lt;/span&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/AVvXsEgHQFRKyjNlO1WQ-vUi1XjuCehkUKiHMIuAe4-tEvA2OEy7FKngTep-TeSIYece5FBkDdUE2mdn-ra_xXQINShKEV-3qLYQzR8jlEM2lEyC4YHwAltwXWbLN4JztjhjXpQXOsobhV-p8UJn/s1600/FindOrphanedRecords.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/AVvXsEgHQFRKyjNlO1WQ-vUi1XjuCehkUKiHMIuAe4-tEvA2OEy7FKngTep-TeSIYece5FBkDdUE2mdn-ra_xXQINShKEV-3qLYQzR8jlEM2lEyC4YHwAltwXWbLN4JztjhjXpQXOsobhV-p8UJn/s1600/FindOrphanedRecords.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&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;/div&gt;
&lt;ol start=&quot;2&quot; style=&quot;margin-bottom: 0mm; margin-top: 0mm;&quot; type=&quot;a&quot;&gt;
&lt;li style=&quot;list-style-type: none;&quot;&gt;&lt;ol start=&quot;2&quot; style=&quot;margin-bottom: 0mm; margin-top: 0mm;&quot; type=&quot;a&quot;&gt;
&lt;li style=&quot;color: #010101; font-family: Calibri; font-size: 11pt; margin-left: 15pt; margin-right: 0pt; padding-left: 0pt;&quot;&gt;&lt;div style=&quot;margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; color: black; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;color: #010101; font-family: Calibri;&quot;&gt;&lt;span style=&quot;color: #010101; font-family: Calibri; font-size: 11pt; font-style: normal; font-weight: normal;&quot;&gt;If you have already created the Login in SQL Server, then you can Fix the login for &quot;User1&quot;:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;line-height: 14px; margin: 0mm 0mm 3.52mm 25mm; text-indent: 0mm;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Courier New; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;EXEC&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Courier New; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;sp_change_users_login&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Courier New; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&#39;Auto_Fix&#39;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Courier New; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Courier New; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&#39;User1&#39;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14px; margin: 0mm 0mm 3.52mm 25mm; text-indent: 0mm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14px; margin: 0mm 0mm 3.52mm 25mm; text-indent: 0mm;&quot;&gt;
&lt;span style=&quot;color: red; font-family: Courier New; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: black; font-family: Times New Roman; font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: red; font-family: Courier New; font-size: x-small;&quot;&gt;&lt;ol start=&quot;3&quot; style=&quot;margin-bottom: 0mm; margin-top: 0mm;&quot; type=&quot;a&quot;&gt;
&lt;li style=&quot;list-style-type: none;&quot;&gt;&lt;ol start=&quot;3&quot; style=&quot;margin-bottom: 0mm; margin-top: 0mm;&quot; type=&quot;a&quot;&gt;
&lt;li style=&quot;color: #010101; font-family: Calibri; font-size: 11pt; margin-left: 15pt; margin-right: 0pt; padding-left: 0pt;&quot;&gt;&lt;div style=&quot;margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; color: black; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;color: #010101; font-family: Calibri;&quot;&gt;&lt;span style=&quot;color: #010101; font-family: Calibri; font-size: 11pt; font-style: normal; font-weight: normal;&quot;&gt;If the login doesn&#39;t exist, then Fix the login for the database specific user&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;line-height: 14px; margin: 0mm 0mm 3.52mm 25mm; text-indent: 0mm;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Courier New; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;EXEC&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Courier New; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;sp_change_users_login&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Courier New; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&#39;Auto_Fix&#39;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Courier New; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Courier New; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&#39;User1&#39;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Courier New; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Courier New; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;NULL,&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Courier New; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&#39;User1Password&#39;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14px; margin: 0mm 0mm 3.52mm 25mm; text-indent: 0mm;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;div style=&quot;line-height: 14px; margin: 0mm 0mm 3.52mm 25mm; text-indent: 0mm;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;

&lt;/div&gt;
&lt;div style=&quot;line-height: 14px; margin: 0mm 0mm 3.52mm 25mm; text-indent: 0mm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jackofalltradesdeveloper.blogspot.com/feeds/4409668283196835992/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/02/restore-orphaned-logins-in-sql-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/4409668283196835992'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/4409668283196835992'/><link rel='alternate' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/02/restore-orphaned-logins-in-sql-server.html' title='Restore Orphaned Logins in SQL Server After Restoring Database From Backup'/><author><name>Ahmed Ibrahim Khattab</name><uri>http://www.blogger.com/profile/06343046874255002479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-gHQiAJRGsEvGSFiWLeLRutspzw2Tqz3n0JJjYrkENRxozxkGVkZgW8Y1_xJVIG9cd6xS7gyJzC_FpGe0Ky2hmCFtlhYfpX5OLm7awSXeljNQSZE8KCS3e6teuhnLR-w/s220/IMG_0777.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHQFRKyjNlO1WQ-vUi1XjuCehkUKiHMIuAe4-tEvA2OEy7FKngTep-TeSIYece5FBkDdUE2mdn-ra_xXQINShKEV-3qLYQzR8jlEM2lEyC4YHwAltwXWbLN4JztjhjXpQXOsobhV-p8UJn/s72-c/FindOrphanedRecords.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1386236209117835869.post-1736243758831161545</id><published>2012-02-24T12:40:00.001-08:00</published><updated>2012-04-05T00:36:26.612-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><title type='text'>Change the Default Location of SQL Server Database Files</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
You need to right click on the Server and select properties:&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/AVvXsEgMtgsBgnez492UVcS1eiyqpHQAdWXDr2bQWNIohG3Uu2A_NJV_SoX4R89gAd8ijN-g6juasjQGq4icZPp70o8nzXuRmPy8NBdesuxdUx3nRQ2u_-HAn0fDPqG3FbTKA0BpXyU5ZNx4_Rh6/s1600/SQLServerSelectServerProperties.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/AVvXsEgMtgsBgnez492UVcS1eiyqpHQAdWXDr2bQWNIohG3Uu2A_NJV_SoX4R89gAd8ijN-g6juasjQGq4icZPp70o8nzXuRmPy8NBdesuxdUx3nRQ2u_-HAn0fDPqG3FbTKA0BpXyU5ZNx4_Rh6/s1600/SQLServerSelectServerProperties.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&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: left;&quot;&gt;
Then Go to &quot;Database Settings&quot; from the left &quot;Page&quot; panel:&lt;/div&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/AVvXsEiyOkgUNHmVE1weWLaJranzd9Hxb-Vjgri5NHsurm5ZTxcP3YabJAVtxeVgaV2kOVhetRr3Px2t8viFKSRaV9-vBjcE2wI6sIPXyHeXB00kE6a4hIbHmMQIJ7CsqA6gYmSXNJ3blqgPb4st/s1600/SQLServerDefaultDatabaseFileLocations.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/AVvXsEiyOkgUNHmVE1weWLaJranzd9Hxb-Vjgri5NHsurm5ZTxcP3YabJAVtxeVgaV2kOVhetRr3Px2t8viFKSRaV9-vBjcE2wI6sIPXyHeXB00kE6a4hIbHmMQIJ7CsqA6gYmSXNJ3blqgPb4st/s1600/SQLServerDefaultDatabaseFileLocations.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jackofalltradesdeveloper.blogspot.com/feeds/1736243758831161545/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/02/change-default-location-of-sql-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/1736243758831161545'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1386236209117835869/posts/default/1736243758831161545'/><link rel='alternate' type='text/html' href='http://jackofalltradesdeveloper.blogspot.com/2012/02/change-default-location-of-sql-server.html' title='Change the Default Location of SQL Server Database Files'/><author><name>Ahmed Ibrahim Khattab</name><uri>http://www.blogger.com/profile/06343046874255002479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-gHQiAJRGsEvGSFiWLeLRutspzw2Tqz3n0JJjYrkENRxozxkGVkZgW8Y1_xJVIG9cd6xS7gyJzC_FpGe0Ky2hmCFtlhYfpX5OLm7awSXeljNQSZE8KCS3e6teuhnLR-w/s220/IMG_0777.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMtgsBgnez492UVcS1eiyqpHQAdWXDr2bQWNIohG3Uu2A_NJV_SoX4R89gAd8ijN-g6juasjQGq4icZPp70o8nzXuRmPy8NBdesuxdUx3nRQ2u_-HAn0fDPqG3FbTKA0BpXyU5ZNx4_Rh6/s72-c/SQLServerSelectServerProperties.PNG" height="72" width="72"/><thr:total>0</thr:total></entry></feed>