<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>gunce</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/cagatay/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/cagatay/feed.xml</link>
    <description />
    <lastBuildDate>Wed, 17 Apr 2019 03:18:55 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Cloud computing for daily life</title>
      <link>https://docs.microsoft.com/archive/blogs/cagatay/cloud-computing-for-daily-life</link>
      <pubDate>Sat, 13 Apr 2013 13:44:00 GMT</pubDate>
      <dc:creator><![CDATA[cagataykurt]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/cagatay/2013/04/13/cloud-computing-for-daily-life/</guid>
      <description><![CDATA[Cloud computing is changing our lives
" In January, visits from the United States to some of these...]]></description>
      <content:encoded><![CDATA[<p>Cloud computing is changing our lives</p>
<p>" In January, visits from the United States to some of these fashion-conscious sites increased exponentially compared with the previous year, according to Experian Hitwise, the Internet tracking firm. About 60 percent of the visits were from women. Pinterest, the scrapbooking site where members post to virtual boards their favorite images from around the Web, has much of this traffic. It is now among the 10 most-visited social networks, along with Facebook, Twitter and YouTube, even though it&rsquo;s not yet officially out of beta either. One would think that these sites, with their legions of followers, would be among the most monetizable areas of the Web, because browsing them can lead directly to online retail portals. And certainly some small businesses and artists have benefited from the links posted on sites like Pinterest and Polyvore. But industry observers say there is still a gulf between browsing and buying; consumers may be flinging open their closets online, but their wallets have yet to follow. Internet start-ups are experimenting with business models: advertising, selling access to analytics, creating contest platforms"*</p>
<p>One way is the online wardrobes like <a title="pureple.com" href="http://www.pureple.com">http://www.pureple.com</a> The Pureple team has made it easy for the user to keep their online wardrobe with them at all times; both the website and iPhone app are available for members at no charge. For those that prefer the android device, the design team is working diligently to perfect the wardrobe app.</p>
<p>&nbsp;</p>
<p>* Ny Times Fashion</p>]]></content:encoded>
    </item>
    <item>
      <title>Don't Talk To Me</title>
      <link>https://docs.microsoft.com/archive/blogs/cagatay/dont-talk-to-me</link>
      <pubDate>Wed, 10 Feb 2010 09:26:00 GMT</pubDate>
      <dc:creator><![CDATA[cagataykurt]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/cagatay/2010/02/10/dont-talk-to-me/</guid>
      <description><![CDATA[Is the message when you wear your earphones of your zune/ipod/iphone. Its kinda isolates you from...]]></description>
      <content:encoded><![CDATA[<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><FONT size=3><FONT face=Calibri>Is the message when you wear your earphones of your zune/ipod/iphone. Its kinda isolates you from the outer world because you are busy. As our culture get modernized we are losing human integration between us. I went to grocery store the other day and used self-check out. I didn’t need to talk to anyone , even that small talk with the cashier, it was not there and needed. We are in a world you can literally survive without physically interacting with anyone. I wanted to say except work but even that you can make money without talking or physically<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>interacting with people. Technology is separating us apart from each other. At first the only way to communicate was by physically be in the same location, then telephone was invented(I skip the letter history) and now we use email, the degree of interaction drops with technology. I recently read a user study report which says people find email more convenient than using a phone and definitely more convenient than meeting physically. As technology evolve the degree we interact with people changes and decreases. Don’t you think this is a problem ? <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></FONT></P>]]></content:encoded>
    </item>
    <item>
      <title>HashTable vs Dictionary Performance</title>
      <link>https://docs.microsoft.com/archive/blogs/cagatay/hashtable-vs-dictionary-performance</link>
      <pubDate>Wed, 20 Jan 2010 22:10:00 GMT</pubDate>
      <dc:creator><![CDATA[cagataykurt]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/cagatay/2010/01/20/hashtable-vs-dictionary-performance/</guid>
      <description><![CDATA[Last week I needed to implement a little complex data structure for our last project. I needed to...]]></description>
      <content:encoded><![CDATA[<P style="MARGIN: 0in 0in 10pt" class=MsoNormal><FONT size=3 face=Calibri>Last week I needed to implement a little complex data structure for our last project. I needed to keep keys in a hashtable like structure for fast access but I also needed a queue structure to remove LRU item since the size in the memory is limited. For the hashtable I used c# hashtable which takes any object as the key and I implemented this. Since the value can be any object I need to do casting when I retrieved objects from hashtable. We had a code review with my lead and he asked why I chose hashtable<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>versus dictionary. A dictionary is more self explanatory since you need to specify types but a hashtable must have better performance, at least I assumed so but he was not sure about that. <SPAN style="mso-spacerun: yes">&nbsp;</SPAN>Anyway when I had time I wrote a small app to test hashtable and dictionary performance in c#. I add 10k guids to both and search for a different set of 10k guids(so that I will have the worst case search result which is not exist). At the end What I found is dictionary has nearly %33 better performance over hashtable but if I change dictionary comparison to case insensitive it did its job in 3x times of hashtable. So if you don’t have case sensitivity issue, dictionary is a better alternative for string key types.</FONT></P>]]></content:encoded>
    </item>
    <item>
      <title>How to set anonymous Authentication for a vroot in IIS</title>
      <link>https://docs.microsoft.com/archive/blogs/cagatay/how-to-set-anonymous-authentication-for-a-vroot-in-iis</link>
      <pubDate>Fri, 26 Jun 2009 14:48:00 GMT</pubDate>
      <dc:creator><![CDATA[cagataykurt]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/cagatay/2009/06/26/how-to-set-anonymous-authentication-for-a-vroot-in-iis/</guid>
      <description><![CDATA[&nbsp;
It is always a good time to write a blog if your source code access permission expires and...]]></description>
      <content:encoded><![CDATA[<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p><FONT size=3 face=Calibri>&nbsp;</FONT></o:p></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><FONT size=3><FONT face=Calibri>It is always a good time to write a blog if your source code access permission expires and you wait for someone to approve your request. Since I couldn’t find a good example how to do this and spend some time this thing deserves its blog post. What I want is a very basic operation: I want to set anonymous access for a vroot and I must do this in a scriptable way so that other devs in our team can deploy the WCF service that I am developing. <SPAN style="mso-spacerun: yes">&nbsp;</SPAN>Before appcmd.exe to manipulate IIS configs we had adsutil.vbs scripts which is kind a straight forward. I found appcmd a little bit challenging but more powerful. <o:p></o:p></FONT></FONT></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><o:p><FONT size=3 face=Calibri>&nbsp;</FONT></o:p></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><FONT size=3><FONT face=Calibri>So here is the way to make a vroot anonymous<o:p></o:p></FONT></FONT></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><o:p><FONT size=3 face=Calibri>&nbsp;</FONT></o:p></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><FONT size=3><FONT face=Calibri>%systemroot%\system32\inetsrv\APPCMD set<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>config "Default Web Site/myVroot" /section:system.webServer/security/authentication/anonymousAuthentication<SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN>/enabled:"True"<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>/userName:"" /commit:apphost<o:p></o:p></FONT></FONT></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><o:p><FONT size=3 face=Calibri>&nbsp;</FONT></o:p></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><FONT size=3><FONT face=Calibri>Don’t forget to do an iisreset to see the effects. As you can see the username is empty so an anonymous request will work under the identity of the appPool of this vroot but you can make it work under any other identity. And you must add /commit:apphost to make this change applied to the configuration. <o:p></o:p></FONT></FONT></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><FONT size=3><FONT face=Calibri>If you want to change any other property take a look at the section of the property in application.config file and put it as section parameter. Never hand edit the application.config file. <o:p></o:p></FONT></FONT></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><o:p><FONT size=3 face=Calibri>&nbsp;</FONT></o:p></P>]]></content:encoded>
    </item>
    <item>
      <title>Public Key Cryptography in Our Lives</title>
      <link>https://docs.microsoft.com/archive/blogs/cagatay/public-key-cryptography-in-our-lives</link>
      <pubDate>Thu, 11 Jun 2009 21:52:00 GMT</pubDate>
      <dc:creator><![CDATA[cagataykurt]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/cagatay/2009/06/11/public-key-cryptography-in-our-lives/</guid>
      <description><![CDATA[I am sure you heard about this interview question “a king wants to send a locked box to another king...]]></description>
      <content:encoded><![CDATA[<P style="MARGIN: 0in 0in 10pt" class=MsoNormal><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p><FONT size=3 face=Calibri></FONT></o:p></P><FONT size=3 face=Calibri>I am sure you heard about this interview question “a king wants to send a locked box to another king but he must use a pirate as a carrier, how can he make sure the pirate cannot open the box without breaking it".</FONT> 
<P style="MARGIN: 0in 0in 10pt" class=MsoNormal><FONT size=3 face=Calibri>The correct solution is to use a public-key-like scheme, where somehow first king get a lock from second king and seal the box with this lock and of course only second king has the key to open it. <IMG style="WIDTH: 114px; HEIGHT: 160px" src="http://ts3.images.live.com/images/thumbnail.aspx?q=724200522678&amp;id=cda946932aab4fc8edf92999f735dd42&amp;url=http%3a%2f%2fwww.countryretreatsolutions.co.uk%2fIVN_Hand_with_Key.jpg" width=114 height=160 mce_src="http://ts3.images.live.com/images/thumbnail.aspx?q=724200522678&amp;id=cda946932aab4fc8edf92999f735dd42&amp;url=http%3a%2f%2fwww.countryretreatsolutions.co.uk%2fIVN_Hand_with_Key.jpg"></FONT></P>
<P style="MARGIN: 0in 0in 10pt" class=MsoNormal><FONT size=3 face=Calibri>So this is a way to narrate<A href="http://en.wikipedia.org/wiki/Public-key_cryptography" target=_blank mce_href="http://en.wikipedia.org/wiki/Public-key_cryptography"> public key cryptography</A>, as I was thinking about this I asked myself if there are any other situations in real our daily lives that we use a scheme like this and I found 2. Our email addresses are actually a form of our public keys, We distribute them freely (without fearing from spam:) and when a website wants to send a secret or verify our identity (if we really own the email address and Facebook really uses this to understand if you belong to a certain company and/or university) they use our public key but only we using our passwords (our private keys) can read(decrypt) the message (assuming no body reads our emails along the way... yeah definitely not :). One more scenario is our home addresses which are another form of public keys and in this case our private keys are in fact our metal keys to mailbox.</FONT></P>
<P style="MARGIN: 0in 0in 10pt" class=MsoNormal><FONT size=3 face=Calibri>So can you think of any other scenarios that we use public key cryptography in our daily lives?</FONT></P>
<P style="MARGIN: 0in 0in 10pt" class=MsoNormal><FONT size=3 face=Calibri><A href="http://www.limoon.net/">www.limoon.net</A> </FONT></P>]]></content:encoded>
    </item>
    <item>
      <title>I want to be a manager but I don't have management experience</title>
      <link>https://docs.microsoft.com/archive/blogs/cagatay/i-want-to-be-a-manager-but-i-dont-have-management-experience</link>
      <pubDate>Sun, 15 Mar 2009 20:18:00 GMT</pubDate>
      <dc:creator><![CDATA[cagataykurt]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/cagatay/2009/03/15/i-want-to-be-a-manager-but-i-dont-have-management-experience/</guid>
      <description><![CDATA[A- &nbsp;I want to be a dev lead or at least I want to try out leadership
B- good for you.
A- the...]]></description>
      <content:encoded><![CDATA[<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT face=Calibri size=3>A- <SPAN style="mso-spacerun: yes">&nbsp;</SPAN>I want to be a dev lead or at least I want to try out leadership</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT face=Calibri size=3>B- good for you.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT face=Calibri size=3>A- the only problem is I don’t have enough experience to start with</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT face=Calibri size=3>B- maybe you should ask your lead for a project you can act as lead.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT face=Calibri size=3>A- I already asked but he said we don’t have anything right now so I will wait.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p><FONT face=Calibri size=3>&nbsp;</FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT face=Calibri size=3>Just asking is for an opportunity is proactive I am OK but should we stop there, is work the only place we can get experience? The answer is NO. There are a lot of opportunities outside the work that can give same (or bigger) challenges we can have at work. For example nonprofit project: I am sure your church, mosque, temple, community … is looking for someone to manage a small project from start to finish. And you know what? Working on non-profit projects are more challenging than work, since there is no money to motivate people, you really must be smart while defending your ideas. You want someone to do something? You need to be 10 times convincing than you are at work. </FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT face=Calibri size=3>And as an added bonus to getting experience you will be introduced to many people that you can add to your professional network. So are you up for a management challenge?</FONT></P>]]></content:encoded>
    </item>
    <item>
      <title>How to Remove ACLs from CSP Key Containers</title>
      <link>https://docs.microsoft.com/archive/blogs/cagatay/how-to-remove-acls-from-csp-key-containers</link>
      <pubDate>Sun, 08 Feb 2009 13:55:00 GMT</pubDate>
      <dc:creator><![CDATA[cagataykurt]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/cagatay/2009/02/08/how-to-remove-acls-from-csp-key-containers/</guid>
      <description><![CDATA[Using Cryptographic Service providers is the way to implement PKI on PCs and we are using it for our...]]></description>
      <content:encoded><![CDATA[<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT face=Calibri size=3>Using Cryptographic Service providers is the way to implement PKI on PCs and we are using it for our project. Lately I needed to remove some ACLs for an upgrade scenario.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>I searched the msdn for related info but couldn’t find a direct API to change ACLs on key containers. Then Shawn<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>a security expert at Microsoft helped me to use RSACryptoServiceProvider object to alter keycontainer ACLs. If a modified <SPAN style="COLOR: black">CspParameters.CryptoKeySecurity </SPAN>RSACryptoServiceProvider <SPAN style="mso-spacerun: yes">&nbsp;</SPAN>constructor, it will change the ACLs on key container. Actually you can use same method to add a new ACL, just add the desired rule using <FONT face="Courier New" size=2>CryptoKeySecurity.AddAccessRule(rule)</FONT>.&nbsp;Here is a sample function to remove a user from key container access. </FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">public</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> <SPAN style="COLOR: blue">void</SPAN> RemoveKeyContainerAccess(<SPAN style="COLOR: blue">string</SPAN> userName, <SPAN style="COLOR: blue">string</SPAN> CSPName, <SPAN style="COLOR: blue">string</SPAN> keyContainerName)<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>NTAccount account = GetAccount(userName);<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>CspParameters cspParams = <SPAN style="COLOR: blue">new</SPAN> CspParameters(1, CSPName, keyContainerName);<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>cspParams.Flags = CspProviderFlags.UseMachineKeyStore;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>CspKeyContainerInfo container = <SPAN style="COLOR: blue">new</SPAN> CspKeyContainerInfo(cspParams);<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: green">//get the original acls first<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>cspParams.CryptoKeySecurity = container.CryptoKeySecurity;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: green">//Search for the account given to us and remove it from accessrules<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">foreach</SPAN> (CryptoKeyAccessRule rule <SPAN style="COLOR: blue">in</SPAN> cspParams.CryptoKeySecurity.GetAccessRules(<SPAN style="COLOR: blue">true</SPAN>, <SPAN style="COLOR: blue">false</SPAN>, <SPAN style="COLOR: blue">typeof</SPAN>(NTAccount)))<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">if</SPAN> (rule.IdentityReference.Equals(account))<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>cspParams.CryptoKeySecurity.RemoveAccessRule(rule);<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>}<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: green">//persist accessrules on key container.<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>RSACryptoServiceProvider cryptoServiceProvider = <SPAN style="COLOR: blue">new</SPAN> RSACryptoServiceProvider(cspParams);<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><SPAN style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>}<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><SPAN style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes"></SPAN></SPAN>&nbsp;</P>]]></content:encoded>
    </item>
    <item>
      <title>Dynamic Programming Adventure</title>
      <link>https://docs.microsoft.com/archive/blogs/cagatay/dynamic-programming-adventure</link>
      <pubDate>Tue, 02 Dec 2008 12:05:00 GMT</pubDate>
      <dc:creator><![CDATA[cagataykurt]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/cagatay/2008/12/02/dynamic-programming-adventure/</guid>
      <description><![CDATA[&nbsp;
Since I have time during my vacation, I wanted to spend some fun time with my laptop solving...]]></description>
      <content:encoded><![CDATA[<P class=MsoNoSpacing style="MARGIN: 0in 0in 0pt"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p><FONT face=Calibri size=3>&nbsp;</FONT></o:p></P>
<P class=MsoNoSpacing style="MARGIN: 0in 0in 0pt"><FONT face=Calibri size=3>Since I have time during my vacation, I wanted to spend some fun time with my laptop solving Mathematical/computer programming problems. I found <A class="" href="http://projecteuler.net/" target=_blank mce_href="http://projecteuler.net/">Project Euler</A> website while checking <A class="" href="http://delicious.com/" target=_blank mce_href="http://delicious.com/">del.icio.us</A> popular bookmarks about <A class="" href="http://delicious.com/popular/algorithms" target=_blank mce_href="http://delicious.com/popular/algorithms">algorithms</A>. The first problem I solved was <A class="" href="http://projecteuler.net/index.php?section=problems&amp;id=208" mce_href="http://projecteuler.net/index.php?section=problems&amp;id=208">Problem #208 Robot Walks</A>. I chose to solve it because I liked the title (it reminded me the problems that I worked on while I was getting ready for <A class="" href="http://olympiads.win.tue.nl/ioi/ioi96/contest/index.html" mce_href="http://olympiads.win.tue.nl/ioi/ioi96/contest/index.html">IOI</A> during high school) and it was one of the difficult ones on the site (tough it turned out to be Relatively easy). I will not tell you how I solved the problem in case you want to try yourself . It took some time to figure out to model the problem. After finding the solution I tried<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>a brute force approach. Even for a limited set it took more than 10 sec to solve. I tried the full set but I had to stop after couple of minutes without any answer. Then I figured out there were many small sub problems that my algorithm re calculate again and again. To save time I needed to calculate once and save it and use recalculated values instead of trying to re calculate. I calculated the space to store all possible combinations and I needed an array with a size less than 1 GB which I could allocate on my laptop ... anyway at the end , my small program found the solution under 500 milliseconds. This is the beauty of dynamic programming. You can find a nice explanation of <A class="" href="http://www.catonmat.net/blog/mit-introduction-to-algorithms-part-ten/" mce_href="http://www.catonmat.net/blog/mit-introduction-to-algorithms-part-ten/">dynamic programming here</A> . </FONT></P>
<P class=MsoNoSpacing style="MARGIN: 0in 0in 0pt"><o:p><FONT face=Calibri size=3>&nbsp;</FONT></o:p></P>
<P class=MsoNoSpacing style="MARGIN: 0in 0in 0pt"><FONT face=Calibri size=3><STRONG>12 Years ago</STRONG></FONT></P>
<P class=MsoNoSpacing style="MARGIN: 0in 0in 0pt"><o:p><FONT face=Calibri size=3>&nbsp;</FONT></o:p></P>
<P class=MsoNoSpacing style="MARGIN: 0in 0in 0pt"><FONT face=Calibri size=3>I remember during high school I worked on PCs that had 2-4 MB of ram. When I was working on this kind of problems back then, I almost never considered allocating memory to save sub problem results since memory was a limited resource. I usually spent more time on finding a more fine-tuned algorithm with many heuristics to save on CPU time. <SPAN style="mso-spacerun: yes">&nbsp;</SPAN>It is not the case anymore, this is a mind shift for me. </FONT></P>
<P class=MsoNoSpacing style="MARGIN: 0in 0in 0pt"><SPAN style="mso-spacerun: yes"><FONT face=Calibri size=3>&nbsp; </FONT></SPAN></P>
<P class=MsoNoSpacing style="MARGIN: 0in 0in 0pt"><SPAN style="mso-spacerun: yes"><FONT face=Calibri size=3>Aziz Cagatay Kurt</FONT></SPAN></P>]]></content:encoded>
    </item>
    <item>
      <title>Changing UseDsMapper for site binding</title>
      <link>https://docs.microsoft.com/archive/blogs/cagatay/changing-usedsmapper-for-site-binding</link>
      <pubDate>Fri, 19 Sep 2008 00:26:00 GMT</pubDate>
      <dc:creator><![CDATA[cagataykurt]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/cagatay/2008/09/19/changing-usedsmapper-for-site-binding/</guid>
      <description><![CDATA[I recently worked on an issue to enable ds mapper usage for our web service to enable x509...]]></description>
      <content:encoded><![CDATA[<P>I recently worked on an issue to enable ds mapper usage for our web service to enable x509 authentication. Here is a sample c# code to make this binding change for IIS7 using .NET&nbsp;3.0.</P>
<P>ServerManager srvMgr = new ServerManager();<BR>Site DefaultSite = srvMgr.Sites["Default Web Site"];//you can also use site id</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; foreach (Binding binding in DefaultSite.Bindings)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (binding.Protocol.Equals(URI.<FONT color=#0033cc>UriSchemeHttps</FONT>, StringComparison.InvariantCultureIgnoreCase))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bindingFound = true;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; binding.UseDsMapper = true&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }//Commit only if we need to<BR>if(bindingFound)<BR>&nbsp;&nbsp;&nbsp;&nbsp; srvMgr.CommitChanges();<BR></P>]]></content:encoded>
    </item>
    <item>
      <title>Random Code Generator</title>
      <link>https://docs.microsoft.com/archive/blogs/cagatay/random-code-generator</link>
      <pubDate>Tue, 22 May 2007 20:08:00 GMT</pubDate>
      <dc:creator><![CDATA[cagataykurt]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/cagatay/2007/05/22/random-code-generator/</guid>
      <description><![CDATA[A few days ago I was working on a bug, I prepared the fix tested it then I found a nicer way of...]]></description>
      <content:encoded><![CDATA[<FONT face=Calibri>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3>A few days ago I was working on a bug, I prepared the fix tested it then I found a nicer way of doing something and changed the fix again then tested it but I realized I forgot a “not” (! In c#) which spoil the code terribly. One character. So as an engineer I started thinking about this, why it happened and is there a way to prevent this or if not, is there a way to automatically fix this. <SPAN style="mso-spacerun: yes">&nbsp;</SPAN>Automatically fix this , Automatically fix this , Automatically fix this , who can fix it automatically? Can a software fix another software?<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>It might not be feasible right now for a software to code something but at least can it randomly attack a piece of code change stuff, dump if’s , loops <SPAN style="mso-spacerun: yes">&nbsp;</SPAN>, manipulate variables etc .Or if we want to start scratch we will give function signature, <SPAN style="mso-spacerun: yes">&nbsp;</SPAN>set of correct inputs and out puts and do not care what is inside the function . Can a software randomly <SPAN style="mso-spacerun: yes">&nbsp;</SPAN>dump lines into this function ,build it , run it and satisfy the input/output requirements ? <SPAN style="mso-spacerun: yes">&nbsp;</SPAN>If you say a it is impossible how about we have a dictionary of ready lines and software can mix and match lines from the dictionary. I am sure this will be a dream machine for lazy developers : ) . <SPAN style="mso-spacerun: yes">&nbsp;</SPAN>But don’t underestimate lazy people, <SPAN style="mso-spacerun: yes">&nbsp;</SPAN>they are the reasons for many inventions ; ). Anyway this much of daydreaming is enough for today, I need to go back to my longhorn RC bugs<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>which will not be fixed automatically for sure. <SPAN style="mso-spacerun: yes">&nbsp;</SPAN><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></P></FONT>]]></content:encoded>
    </item>
  </channel>
</rss>