<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="weebly" -->
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" >

<channel><title><![CDATA[Arda Basoglu - Blog]]></title><link><![CDATA[http://www.ardabasoglu.com/blog.html]]></link><description><![CDATA[Blog]]></description><pubDate>Tue, 15 May 2012 04:19:43 -0800</pubDate><generator>Weebly</generator><item><title><![CDATA[How To Sync Gmail Contacts With iPhone Without Any Problem]]></title><link><![CDATA[http://www.ardabasoglu.com/1/post/2012/05/how-to-sync-gmail-contacts-with-iphone-without-any-problem.html]]></link><comments><![CDATA[http://www.ardabasoglu.com/1/post/2012/05/how-to-sync-gmail-contacts-with-iphone-without-any-problem.html#comments]]></comments><pubDate>Mon, 07 May 2012 02:24:19 -0800</pubDate><category><![CDATA[Uncategorized]]></category><guid isPermaLink="false">http://www.ardabasoglu.com/1/post/2012/05/how-to-sync-gmail-contacts-with-iphone-without-any-problem.html</guid><description><![CDATA[Syncing&nbsp;your iPhone contacts might get ugly if you do not know how to do it or you use an app that is not well tailored for your needs.&nbsp;In this tutorial I'm going to show you how to sync your Gmail contacts (with groups) with your iPhone. Let's get started.First, you need to backup your contacts from your Gamil account. To do that, go to Contacts and hit More tab and you will see a dropdown li [...] ]]></description><content:encoded><![CDATA[<div class="paragraph" style='text-align:left;'>Syncing&nbsp;your iPhone contacts might get ugly if you do not know how to do it or you use an app that is not well tailored for your needs.&nbsp;In this tutorial I'm going to show you how to sync your Gmail contacts (with groups) with your iPhone. Let's get started.<br /><br />First, you need to backup your contacts from your Gamil account. To do that, go to <strong>Contacts </strong>and hit <strong>More </strong>tab and you will see a dropdown list. Choose <strong>Export </strong>and export your contacts as <strong>Google CSV format</strong>. If everything goes wrong you can bring all your contacts back from this backup. Besides you can save this file to your backup drive for another use.<br /></div>  <div><div class="wsite-image wsite-image-border-thin " style="padding-top:10px;padding-bottom:10px;margin-left:0;margin-right:0;text-align:center"> <a> <img src="http://www.ardabasoglu.com/uploads/2/2/4/3/2243848/9067829_orig.jpg" alt="Export Gmail Contacts" style="width:100%;max-width:878px" /> </a> <div style="display:block;font-size:90%"></div> </div></div>  <div><div class="wsite-image wsite-image-border-thin " style="padding-top:10px;padding-bottom:10px;margin-left:0;margin-right:0;text-align:center"> <a> <img src="http://www.ardabasoglu.com/uploads/2/2/4/3/2243848/1073588_orig.jpg" alt="Export Gamil Contacts in Google CSV format" style="width:100%;max-width:536px" /> </a> <div style="display:block;font-size:90%"></div> </div></div>  <div class="paragraph" style='text-align:left;'>After backing up your contacts go to <strong>Settings/ Mail,Contacts, Calender</strong> on your iPhone and delete all the mail accounts before synchronization. You need to do it since synchronizing works best this way. Othervise you will end up with duplicate contacts or other unwanted behavior.<br /></div>  <div><div class="wsite-image wsite-image-border-thin " style="padding-top:10px;padding-bottom:10px;margin-left:0;margin-right:0;text-align:center"> <a> <img src="http://www.ardabasoglu.com/uploads/2/2/4/3/2243848/8685396_orig.jpg" alt="Delete All Email Accounts From iPhone" style="width:100%;max-width:320px" /> </a> <div style="display:block;font-size:90%"></div> </div></div>  <div><div class="wsite-image wsite-image-border-thin " style="padding-top:10px;padding-bottom:10px;margin-left:0;margin-right:0;text-align:center"> <a> <img src="http://www.ardabasoglu.com/uploads/2/2/4/3/2243848/4331758_orig.jpg" alt="Delete iPhone Email Account" style="width:100%;max-width:320px" /> </a> <div style="display:block;font-size:90%"></div> </div></div>  <div class="paragraph" style='text-align:left;'>Next step is to install the required app. It is called <strong>Contacts EXtreme by POPo's Innovation Ltd</strong>. It was a free app when I installed it.<br /></div>  <div><div class="wsite-image wsite-image-border-thin " style="padding-top:10px;padding-bottom:10px;margin-left:0;margin-right:0;text-align:center"> <a> <img src="http://www.ardabasoglu.com/uploads/2/2/4/3/2243848/7816927_orig.jpg" alt="Install Contacts EXtreme on iPhone" style="width:100%;max-width:320px" /> </a> <div style="display:block;font-size:90%"></div> </div></div>  <div class="paragraph" style='text-align:left;'>When the installation is complete run <strong>Contacts EXtreme,</strong> hit <strong>More </strong>tab, scroll down and choose <strong>Clear iPhone Contacts</strong>. Later, choose <strong>Clear Local Sync Data</strong> (probably you don't need to do this if this is your first use; however, clearing local sync data won't give any damage).<br /></div>  <div><div class="wsite-image wsite-image-border-thin " style="padding-top:10px;padding-bottom:10px;margin-left:0;margin-right:0;text-align:center"> <a> <img src="http://www.ardabasoglu.com/uploads/2/2/4/3/2243848/6116340.jpg" alt="Clear iPhone Contacts via Contacts EXtreme" style="width:100%;max-width:320px" /> </a> <div style="display:block;font-size:90%"></div> </div></div>  <div><div class="wsite-image wsite-image-border-thin " style="padding-top:10px;padding-bottom:10px;margin-left:0;margin-right:0;text-align:center"> <a> <img src="http://www.ardabasoglu.com/uploads/2/2/4/3/2243848/6521331_orig.jpg" alt="Clear Local Sync Data via Contacts EXtreme" style="width:100%;max-width:320px" /> </a> <div style="display:block;font-size:90%"></div> </div></div>  <div class="paragraph" style='text-align:left;'>As a final step scroll up and choose <strong>Sync with Gmail Contacts</strong>. That's it.<br /></div>  <div><div class="wsite-image wsite-image-border-thin " style="padding-top:10px;padding-bottom:10px;margin-left:0;margin-right:0;text-align:center"> <a> <img src="http://www.ardabasoglu.com/uploads/2/2/4/3/2243848/2337975_orig.jpg" alt="Sync with Gmail Contacts" style="width:100%;max-width:320px" /> </a> <div style="display:block;font-size:90%"></div> </div></div>  <div class="paragraph" style='text-align:left;'>All these steps worked for me. If they do not work you please leave a comment and I'll try to help you.&nbsp;<br /></div>]]></content:encoded></item><item><title><![CDATA[.Net Windows Forms login form with a progress bar control]]></title><link><![CDATA[http://www.ardabasoglu.com/1/post/2011/07/net-windows-forms-login-form-with-a-progress-bar-control.html]]></link><comments><![CDATA[http://www.ardabasoglu.com/1/post/2011/07/net-windows-forms-login-form-with-a-progress-bar-control.html#comments]]></comments><pubDate>Mon, 18 Jul 2011 09:15:15 -0800</pubDate><category><![CDATA[Uncategorized]]></category><guid isPermaLink="false">http://www.ardabasoglu.com/1/post/2011/07/net-windows-forms-login-form-with-a-progress-bar-control.html</guid><description><![CDATA[  If you are using a login form in your .Net Windows Forms application you mig [...] ]]></description><content:encoded><![CDATA[<div ><div style="text-align: center;"><a><img src="http://www.ardabasoglu.com/uploads/2/2/4/3/2243848/2599525.png" style="margin-top: 10px; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; border-width:1px;padding:3px;" alt="Picture" class="galleryImageBorder" /></a><div style="display: block; font-size: 90%; margin-top: -10px; margin-bottom: 10px;"></div></div></div>  <div  class="paragraph editable-text" style=" text-align: left; ">If you are using a login form in your .Net Windows Forms application you might want to show a progress bar to the user during authentication takes a little time. Doing that makes your application responsive and makes the users think your application is doing some work and not stuck.&nbsp;</div>  <div  class="paragraph editable-text" style=" text-align: left; ">You choose the Style property of the progress bar as "Marquee" since you do not know how long authentication will take (possibly not more than 1 or 2 seconds but sometimes servers may respond a little longer than that).<br /></div>  <div  class="paragraph editable-text" style=" text-align: left; ">By creating the progress bar control with the Marquee style, you can animate it in a way that shows activity but does not indicate what proportion of the task is complete. The highlighted part of the progress bar moves repeatedly along the length of the bar. You can start and stop the animation, and control its speed.</div>  <div  class="paragraph editable-text" style=" text-align: left; ">In this example when the user enters the user name / password and hits the "Go" button, the lengthy operation is emulated by Thread.Sleep(3000) call. All the labels, textboxes and the submit button are disabled when the highlight of the progress bar moves for 3 seconds. After it finishes moving the controls are enabled again and progress bar is hidden by Hide() method of itself. This gives the cue to the users that they cannot change their input during the authentication process.</div>  <h2  style=" text-align: left; ">Download the code (Visual Studio project)</h2>  <div ><div style="margin: 10px 0 0 -10px"> <a href="http://www.ardabasoglu.com/uploads/2/2/4/3/2243848/loginwithprogressbar.zip"><img src="http://www.weebly.com/weebly/images/file_icons/gz.png" width="36" height="36" style="float: left; position: relative; left: 0px; top: 0px; margin: 0 15px 15px 0; border: 0;" /></a><div style="float: left; text-align: left; position: relative;"><table style="font-size: 12px; font-family: tahoma; line-height: .9;"><tr><td colspan="2"><b> loginwithprogressbar.zip</b></td></tr><tr style="display: none;"><td>File Size:  </td><td>10 kb</td></tr><tr style="display: none;"><td>File Type:  </td><td> zip</td></tr></table><a href="http://www.ardabasoglu.com/uploads/2/2/4/3/2243848/loginwithprogressbar.zip" style="font-weight: bold;">Download File</a></div> </div>  <hr style="clear: both; width: 100%; visibility: hidden"></hr></div>  ]]></content:encoded></item><item><title><![CDATA[Peynir, ekmek, zeytin, domates, biber]]></title><link><![CDATA[http://www.ardabasoglu.com/1/post/2011/07/peynir-ekmek-zeytin-domates-biber.html]]></link><comments><![CDATA[http://www.ardabasoglu.com/1/post/2011/07/peynir-ekmek-zeytin-domates-biber.html#comments]]></comments><pubDate>Wed, 13 Jul 2011 13:30:00 -0800</pubDate><category><![CDATA[Uncategorized]]></category><guid isPermaLink="false">http://www.ardabasoglu.com/1/post/2011/07/peynir-ekmek-zeytin-domates-biber.html</guid><description><![CDATA[K&#305;zarm&#305;&#351; ekmek &uuml;zerinde Bergama tulumu ve Gemlik zeytini ve balkonumda yeti&#351;en taze biber ve domates. A&#287;z&#305;m suland&#305;.   [...] ]]></description><content:encoded><![CDATA[<div  class="paragraph editable-text" style=" text-align: left; ">K&#305;zarm&#305;&#351; ekmek &uuml;zerinde Bergama tulumu ve Gemlik zeytini ve balkonumda yeti&#351;en taze biber ve domates. A&#287;z&#305;m suland&#305;.</div>  <div ><div style="text-align: center;"><a><img src="http://www.ardabasoglu.com/uploads/2/2/4/3/2243848/5518974.jpg?613" style="margin-top: 5px; margin-bottom: 5px; margin-left: 5px; margin-right: 5px; border-width:1px;padding:3px;" alt="Peynir, ekmek, zeytin, domates, biber" class="galleryImageBorder" /></a><div style="display: block; font-size: 90%; margin-top: -5px; margin-bottom: 5px;"></div></div></div>  ]]></content:encoded></item><item><title><![CDATA[Encrypting the Windows Forms Application Settings]]></title><link><![CDATA[http://www.ardabasoglu.com/1/post/2010/12/encrypting-the-windows-forms-application-settings.html]]></link><comments><![CDATA[http://www.ardabasoglu.com/1/post/2010/12/encrypting-the-windows-forms-application-settings.html#comments]]></comments><pubDate>Tue, 28 Dec 2010 07:41:52 -0800</pubDate><category><![CDATA[Uncategorized]]></category><guid isPermaLink="false">http://www.ardabasoglu.com/1/post/2010/12/encrypting-the-windows-forms-application-settings.html</guid><description><![CDATA[Sometimes you need to keep sensitive information in a Windows Forms application settings file. The settings file is plain text by default. In this case, you'd better encrypt this sensitive information, like a password, to protect from someone capturing the file (user.config, app.config depending on your choice) and seeing the content of the settings file and trying to abuse it.Encrypting settings is very easy. Al [...] ]]></description><content:encoded><![CDATA[<div  class="paragraph editable-text" style=" text-align: left; ">Sometimes you need to keep sensitive information in a Windows Forms application settings file. The settings file is plain text by default. In this case, you'd better encrypt this sensitive information, like a password, to protect from someone capturing the file (user.config, app.config depending on your choice) and seeing the content of the settings file and trying to abuse it.<br /><br /><span>Encrypting settings is very easy. Al you need is:</span><ul><li>A settings class derives from <span style="font-weight: bold;">ApplicationSettingsBase</span></li><li>An encryption utility class</li><li>A couple of lines to get, set and save the settings</li></ul>You can see the example files below and you can dowload the working VS 2010 Project here. You'll be needing .NET Framework 4.0.<br /><br /></div><div ><div style="margin: 10px 0 0 -10px"><a href="http://www.ardabasoglu.com/uploads/2/2/4/3/2243848/encryptingwindowsformssettings.zip"><img src="http://www.weebly.com/weebly/images/file_icons/gz.png" width="36" height="36" style="float: left; position: relative; left: 0px; top: 0px; margin: 0 15px 15px 0; border: 0;" /></a><div style="float: left; text-align: left; position: relative;"><table style="font-size: 12px; font-family: tahoma; line-height: .9;"><tr><td colspan="2"><b> encryptingwindowsformssettings.zip</b></td></tr><tr style="display: none;"><td>File Size:  </td><td>96 kb</td></tr><tr style="display: none;"><td>File Type:  </td><td> zip</td></tr></table><a href="http://www.ardabasoglu.com/uploads/2/2/4/3/2243848/encryptingwindowsformssettings.zip" style="font-weight: bold;">Download File</a></div></div><hr style="clear: both; width: 100%; visibility: hidden"></hr></div><h2  style=" text-align: left; ">A settings class derives from <span style="font-weight: bold;">ApplicationSettingsBase</span></h2><div ><div id="148559296806381389" align="left" style="width: 100%; overflow-y: hidden;" class="wcustomhtml"><div class="csharp" style="font-family:monospace;color: #006; border: 1px solid #d0d0d0; background-color: #f0f0f0;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System</span><span style="color: #008000;">;</span><br /><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Configuration</span><span style="color: #008000;">;</span><br /><br /><span style="color: #0600FF; font-weight: bold;">namespace</span> EncryptingWindowsFormsSettings <br /><span style="color: #008000;">&#123;</span><br />&nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">internal</span> <span style="color: #6666cc; font-weight: bold;">class</span> AppSettings <span style="color: #008000;">:</span> ApplicationSettingsBase<br />&nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Shared secreet is used for encryption</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// You can change this according to your preference</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #0600FF; font-weight: bold;">const</span> <span style="color: #6666cc; font-weight: bold;">string</span> SharedSecret <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;sSDffdf46FFs&quot;</span><span style="color: #008000;">;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// this attribute specifies that an application settings group or </span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// property contains distinct values for each user of an application</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#91;</span>UserScopedSetting<span style="color: #008000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">string</span> Password<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; get<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// this part is necessary </span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// for the first time when there is still nothing to</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// read in the settings file. In other words, the</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// &quot;Password&quot; is null or empty.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">try</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Crypto is the utiliy class that holds the encryption logic</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// You can use your own encryption utility class for more control</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">return</span> Crypto<span style="color: #008000;">.</span><span style="color: #0000FF;">DecryptStringAES</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">string</span><span style="color: #008000;">&#41;</span><span style="color: #0600FF; font-weight: bold;">this</span><span style="color: #008000;">&#91;</span><span style="color: #666666;">&quot;Password&quot;</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">&#41;</span>, SharedSecret<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">catch</span> <span style="color: #008000;">&#40;</span>FormatException<span style="color: #008000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// simply return nothing in case of exception</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">return</span> <span style="color: #008000;">&#40;</span><span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">string</span><span style="color: #008000;">&#41;</span><span style="color: #0600FF; font-weight: bold;">this</span><span style="color: #008000;">&#91;</span><span style="color: #666666;">&quot;Password&quot;</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// When you save the settings, the password will be encrypted</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">this</span><span style="color: #008000;">&#91;</span><span style="color: #666666;">&quot;Password&quot;</span><span style="color: #008000;">&#93;</span> <span style="color: #008000;">=</span> Crypto<span style="color: #008000;">.</span><span style="color: #0000FF;">EncryptStringAES</span><span style="color: #008000;">&#40;</span>value, SharedSecret<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />&nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br /><span style="color: #008000;">&#125;</span><br />&nbsp;</div></div></div><h2  style=" text-align: left; ">An encryption utility class</h2><div ><div id="431283739994012130" align="left" style="width: 100%; overflow-y: hidden;" class="wcustomhtml"><div class="csharp" style="font-family:monospace;color: #006; border: 1px solid #d0d0d0; background-color: #f0f0f0;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System</span><span style="color: #008000;">;</span><br /><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.IO</span><span style="color: #008000;">;</span><br /><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Security.Cryptography</span><span style="color: #008000;">;</span><br /><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Text</span><span style="color: #008000;">;</span><br /><br /><span style="color: #0600FF; font-weight: bold;">namespace</span> EncryptingWindowsFormsSettings<br /><span style="color: #008000;">&#123;</span><br />&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Encrypt/Decrypt string in .NET</span><br />&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// http://stackoverflow.com/questions/202011/encrypt-decrypt-string-in-net</span><br />&nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #6666cc; font-weight: bold;">class</span> Crypto<br />&nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #0600FF; font-weight: bold;">readonly</span> <span style="color: #6666cc; font-weight: bold;">byte</span><span style="color: #008000;">&#91;</span><span style="color: #008000;">&#93;</span> Salt <span style="color: #008000;">=</span> Encoding<span style="color: #008000;">.</span><span style="color: #0000FF;">ASCII</span><span style="color: #008000;">.</span><span style="color: #0000FF;">GetBytes</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;dE4ffrTy7/!&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/// &lt;summary&gt;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/// Encrypt the given string using AES. &nbsp;The string can be decrypted using </span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/// DecryptStringAES(). &nbsp;The sharedSecret parameters must match.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/// &lt;/summary&gt;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/// &lt;param name=&quot;plainText&quot;&gt;The text to encrypt.&lt;/param&gt;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/// &lt;param name=&quot;sharedSecret&quot;&gt;A password used to generate a key for encryption.&lt;/param&gt;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #6666cc; font-weight: bold;">string</span> EncryptStringAES<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">string</span> plainText, <span style="color: #6666cc; font-weight: bold;">string</span> sharedSecret<span style="color: #008000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">string</span><span style="color: #008000;">.</span><span style="color: #0000FF;">IsNullOrEmpty</span><span style="color: #008000;">&#40;</span>plainText<span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">throw</span> <a style="color: #000060;" href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> ArgumentNullException<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;plainText&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">string</span><span style="color: #008000;">.</span><span style="color: #0000FF;">IsNullOrEmpty</span><span style="color: #008000;">&#40;</span>sharedSecret<span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">throw</span> <a style="color: #000060;" href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> ArgumentNullException<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;sharedSecret&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #6666cc; font-weight: bold;">string</span> outStr<span style="color: #008000;">;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Encrypted string to return</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RijndaelManaged aesAlg <span style="color: #008000;">=</span> <span style="color: #0600FF; font-weight: bold;">null</span><span style="color: #008000;">;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #008080; font-style: italic;">// RijndaelManaged object used to encrypt the data.</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">try</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// generate the key from the shared secret and the salt</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Rfc2898DeriveBytes key <span style="color: #008000;">=</span> <a style="color: #000060;" href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> Rfc2898DeriveBytes<span style="color: #008000;">&#40;</span>sharedSecret, Salt<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Create a RijndaelManaged object</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// with the specified key and IV.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aesAlg <span style="color: #008000;">=</span> <a style="color: #000060;" href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> RijndaelManaged<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aesAlg<span style="color: #008000;">.</span><span style="color: #0000FF;">Key</span> <span style="color: #008000;">=</span> key<span style="color: #008000;">.</span><span style="color: #0000FF;">GetBytes</span><span style="color: #008000;">&#40;</span>aesAlg<span style="color: #008000;">.</span><span style="color: #0000FF;">KeySize</span> <span style="color: #008000;">/</span> <span style="color: #FF0000;">8</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aesAlg<span style="color: #008000;">.</span><span style="color: #0000FF;">IV</span> <span style="color: #008000;">=</span> key<span style="color: #008000;">.</span><span style="color: #0000FF;">GetBytes</span><span style="color: #008000;">&#40;</span>aesAlg<span style="color: #008000;">.</span><span style="color: #0000FF;">BlockSize</span> <span style="color: #008000;">/</span> <span style="color: #FF0000;">8</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Create a decrytor to perform the stream transform.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ICryptoTransform encryptor <span style="color: #008000;">=</span> aesAlg<span style="color: #008000;">.</span><span style="color: #0000FF;">CreateEncryptor</span><span style="color: #008000;">&#40;</span>aesAlg<span style="color: #008000;">.</span><span style="color: #0000FF;">Key</span>, aesAlg<span style="color: #008000;">.</span><span style="color: #0000FF;">IV</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Create the streams used for encryption.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008000;">&#40;</span>MemoryStream msEncrypt <span style="color: #008000;">=</span> <a style="color: #000060;" href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> MemoryStream<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008000;">&#40;</span>CryptoStream csEncrypt <span style="color: #008000;">=</span> <a style="color: #000060;" href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> CryptoStream<span style="color: #008000;">&#40;</span>msEncrypt, encryptor, CryptoStreamMode<span style="color: #008000;">.</span><span style="color: #0000FF;">Write</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008000;">&#40;</span>StreamWriter swEncrypt <span style="color: #008000;">=</span> <a style="color: #000060;" href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> StreamWriter<span style="color: #008000;">&#40;</span>csEncrypt<span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">//Write all data to the stream.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; swEncrypt<span style="color: #008000;">.</span><span style="color: #0000FF;">Write</span><span style="color: #008000;">&#40;</span>plainText<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; outStr <span style="color: #008000;">=</span> Convert<span style="color: #008000;">.</span><span style="color: #0000FF;">ToBase64String</span><span style="color: #008000;">&#40;</span>msEncrypt<span style="color: #008000;">.</span><span style="color: #0000FF;">ToArray</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">finally</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Clear the RijndaelManaged object.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>aesAlg <span style="color: #008000;">!=</span> <span style="color: #0600FF; font-weight: bold;">null</span><span style="color: #008000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aesAlg<span style="color: #008000;">.</span><span style="color: #0000FF;">Clear</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Return the encrypted bytes from the memory stream.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">return</span> outStr<span style="color: #008000;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/// &lt;summary&gt;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/// Decrypt the given string. &nbsp;Assumes the string was encrypted using </span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/// EncryptStringAES(), using an identical sharedSecret.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/// &lt;/summary&gt;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/// &lt;param name=&quot;cipherText&quot;&gt;The text to decrypt.&lt;/param&gt;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/// &lt;param name=&quot;sharedSecret&quot;&gt;A password used to generate a key for decryption.&lt;/param&gt;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #6666cc; font-weight: bold;">string</span> DecryptStringAES<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">string</span> cipherText, <span style="color: #6666cc; font-weight: bold;">string</span> sharedSecret<span style="color: #008000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">string</span><span style="color: #008000;">.</span><span style="color: #0000FF;">IsNullOrEmpty</span><span style="color: #008000;">&#40;</span>cipherText<span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">throw</span> <a style="color: #000060;" href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> ArgumentNullException<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;cipherText&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">string</span><span style="color: #008000;">.</span><span style="color: #0000FF;">IsNullOrEmpty</span><span style="color: #008000;">&#40;</span>sharedSecret<span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">throw</span> <a style="color: #000060;" href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> ArgumentNullException<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;sharedSecret&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Declare the RijndaelManaged object</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// used to decrypt the data.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RijndaelManaged aesAlg <span style="color: #008000;">=</span> <span style="color: #0600FF; font-weight: bold;">null</span><span style="color: #008000;">;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Declare the string used to hold</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// the decrypted text.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #6666cc; font-weight: bold;">string</span> plaintext<span style="color: #008000;">;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">try</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// generate the key from the shared secret and the salt</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Rfc2898DeriveBytes key <span style="color: #008000;">=</span> <a style="color: #000060;" href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> Rfc2898DeriveBytes<span style="color: #008000;">&#40;</span>sharedSecret, Salt<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Create a RijndaelManaged object</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// with the specified key and IV.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aesAlg <span style="color: #008000;">=</span> <a style="color: #000060;" href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> RijndaelManaged<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aesAlg<span style="color: #008000;">.</span><span style="color: #0000FF;">Key</span> <span style="color: #008000;">=</span> key<span style="color: #008000;">.</span><span style="color: #0000FF;">GetBytes</span><span style="color: #008000;">&#40;</span>aesAlg<span style="color: #008000;">.</span><span style="color: #0000FF;">KeySize</span> <span style="color: #008000;">/</span> <span style="color: #FF0000;">8</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aesAlg<span style="color: #008000;">.</span><span style="color: #0000FF;">IV</span> <span style="color: #008000;">=</span> key<span style="color: #008000;">.</span><span style="color: #0000FF;">GetBytes</span><span style="color: #008000;">&#40;</span>aesAlg<span style="color: #008000;">.</span><span style="color: #0000FF;">BlockSize</span> <span style="color: #008000;">/</span> <span style="color: #FF0000;">8</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Create a decrytor to perform the stream transform.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ICryptoTransform decryptor <span style="color: #008000;">=</span> aesAlg<span style="color: #008000;">.</span><span style="color: #0000FF;">CreateDecryptor</span><span style="color: #008000;">&#40;</span>aesAlg<span style="color: #008000;">.</span><span style="color: #0000FF;">Key</span>, aesAlg<span style="color: #008000;">.</span><span style="color: #0000FF;">IV</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Create the streams used for decryption. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #6666cc; font-weight: bold;">byte</span><span style="color: #008000;">&#91;</span><span style="color: #008000;">&#93;</span> bytes <span style="color: #008000;">=</span> Convert<span style="color: #008000;">.</span><span style="color: #0000FF;">FromBase64String</span><span style="color: #008000;">&#40;</span>cipherText<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008000;">&#40;</span>MemoryStream msDecrypt <span style="color: #008000;">=</span> <a style="color: #000060;" href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> MemoryStream<span style="color: #008000;">&#40;</span>bytes<span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008000;">&#40;</span>CryptoStream csDecrypt <span style="color: #008000;">=</span> <a style="color: #000060;" href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> CryptoStream<span style="color: #008000;">&#40;</span>msDecrypt, decryptor, CryptoStreamMode<span style="color: #008000;">.</span><span style="color: #0000FF;">Read</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008000;">&#40;</span>StreamReader srDecrypt <span style="color: #008000;">=</span> <a style="color: #000060;" href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> StreamReader<span style="color: #008000;">&#40;</span>csDecrypt<span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Read the decrypted bytes from the decrypting stream</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// and place them in a string.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; plaintext <span style="color: #008000;">=</span> srDecrypt<span style="color: #008000;">.</span><span style="color: #0000FF;">ReadToEnd</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">finally</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Clear the RijndaelManaged object.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>aesAlg <span style="color: #008000;">!=</span> <span style="color: #0600FF; font-weight: bold;">null</span><span style="color: #008000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aesAlg<span style="color: #008000;">.</span><span style="color: #0000FF;">Clear</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">return</span> plaintext<span style="color: #008000;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />&nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br /><span style="color: #008000;">&#125;</span></div></div></div><h2  style=" text-align: left; ">A couple of lines to get, set and save the settings</h2><div ><div id="970623937588134443" align="left" style="width: 100%; overflow-y: hidden;" class="wcustomhtml"><div class="csharp" style="font-family:monospace;color: #006; border: 1px solid #d0d0d0; background-color: #f0f0f0;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System</span><span style="color: #008000;">;</span><br /><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Windows.Forms</span><span style="color: #008000;">;</span><br /><br /><span style="color: #0600FF; font-weight: bold;">namespace</span> EncryptingWindowsFormsSettings<br /><span style="color: #008000;">&#123;</span><br />&nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">partial</span> <span style="color: #6666cc; font-weight: bold;">class</span> Form1 <span style="color: #008000;">:</span> Form<br />&nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">private</span> AppSettings _appSettings<span style="color: #008000;">;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> Form1<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; InitializeComponent<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Load <span style="color: #008000;">+=</span> Form1_Load<span style="color: #008000;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #6666cc; font-weight: bold;">void</span> Form1_Load<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">object</span> sender, EventArgs e<span style="color: #008000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// get an instance of the AppSettings object</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _appSettings <span style="color: #008000;">=</span> <a style="color: #000060;" href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> AppSettings<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// bind the 'Text' property of textBoxPassword with </span><br />&nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// the 'Password' property of _appSettings</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; textBoxPassword<span style="color: #008000;">.</span><span style="color: #0000FF;">DataBindings</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Add</span><span style="color: #008000;">&#40;</span><a style="color: #000060;" href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> Binding<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Text&quot;</span>, _appSettings, <span style="color: #666666;">&quot;Password&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #6666cc; font-weight: bold;">void</span> ButtonCloseClick<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">object</span> sender, EventArgs e<span style="color: #008000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _appSettings<span style="color: #008000;">.</span><span style="color: #0000FF;">Save</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />&nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br /><span style="color: #008000;">&#125;</span><br />&nbsp;</div></div></div>]]></content:encoded></item><item><title><![CDATA[Aylık ve Yıllık Enflasyon Değişim Tabloları; 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010]]></title><link><![CDATA[http://www.ardabasoglu.com/1/post/2010/11/aylik-ve-yillik-enflasyon-degisim-tablolari-2002-2003-2004-2005-2006-2007-2008-2009-2010.html]]></link><comments><![CDATA[http://www.ardabasoglu.com/1/post/2010/11/aylik-ve-yillik-enflasyon-degisim-tablolari-2002-2003-2004-2005-2006-2007-2008-2009-2010.html#comments]]></comments><pubDate>Wed, 03 Nov 2010 02:29:13 -0800</pubDate><category><![CDATA[Uncategorized]]></category><guid isPermaLink="false">http://www.ardabasoglu.com/1/post/2010/11/aylik-ve-yillik-enflasyon-degisim-tablolari-2002-2003-2004-2005-2006-2007-2008-2009-2010.html</guid><description><![CDATA[Aylık ve Yıllık Enflasyon Değişim Tabloları&nbsp;TÜFE (AYLIK)&nbsp;      &nbsp;    2002    2003    2004    2005    2006    2007    2008    2009    2010        OCAK [...] ]]></description><content:encoded><![CDATA[<div ><div id="608509537833106093" align="left" style="width: 100%; overflow-y: hidden;" class="wcustomhtml"><h1>Ayl&#305;k ve Y&#305;ll&#305;k Enflasyon De&#287;i&#351;im Tablolar&#305;</h1><p>&nbsp;</p><h3>T&Uuml;FE (AYLIK)</h3><p>&nbsp;</p><table border="1" bordercolor="#cccccc" cellpadding="4" cellspacing="0">  <tbody><tr>    <td>&nbsp;</td>    <td>2002</td>    <td>2003</td>    <td>2004</td>    <td>2005</td>    <td>2006</td>    <td>2007</td>    <td>2008</td>    <td>2009</td>    <td>2010</td>  </tr>  <tr>    <td>OCAK</td>    <td>5,3</td>    <td>2,6</td>    <td>0,7</td>    <td>0,55</td>    <td>0,75</td>    <td>1,00</td>    <td>0,80</td>    <td>0,29</td>    <td>1,85</td>  </tr>  <tr>    <td>&#350;UBAT</td>    <td>1,8</td>    <td>2,3</td>    <td>0,55</td>    <td>0,02</td>    <td>0,22</td>    <td>0,43</td>    <td>1,29</td>    <td>-0,34</td>    <td>1,45</td>  </tr>  <tr>    <td>MART</td>    <td>1,2</td>    <td>3,10</td>    <td>0,89</td>    <td>0,26</td>    <td>0,27</td>    <td>0,92</td>    <td>0,96</td>    <td>1,10</td>    <td>0,58</td>  </tr>  <tr>    <td>N&#304;SAN</td>    <td>2,1</td>    <td>2,09</td>    <td>0,59</td>    <td>0,71</td>    <td>1,34</td>    <td>1,21</td>    <td>1,68</td>    <td>0,02</td>    <td>0,60</td>  </tr>  <tr>    <td>MAYIS</td>    <td>5,1</td>    <td>0,6</td>    <td>1,6</td>    <td>0,92</td>    <td>1,88</td>    <td>0,50</td>    <td>1,49</td>    <td>0,64</td>    <td>-0,36</td>  </tr>  <tr>    <td>HAZ&#304;RAN</td>    <td>0,6</td>    <td>-0,2 -</td>    <td>0,13</td>    <td>0,10</td>    <td>0,34</td>    <td>-0,24</td>    <td>-0,36</td>    <td>0,11</td>    <td>-0,56</td>  </tr>  <tr>    <td>TEMMUZ</td>    <td>1,4</td>    <td>-0,37</td>    <td>0,22</td>    <td>-0,57</td>    <td>0,86</td>    <td>-0,73</td>    <td>0,58</td>    <td>0,25</td>    <td>-0,48</td>  </tr>  <tr>    <td>A&#286;USTOS</td>    <td>2,2</td>    <td>0,2</td>    <td>0,58</td>    <td>0,85</td>    <td>-0,44</td>    <td>0,02</td>    <td>-0,24</td>    <td>-0,30</td>    <td>0,40</td>  </tr>  <tr>    <td>EYL&Uuml;L</td>    <td>3,5</td>    <td>1,9</td>    <td>0,94</td>    <td>1,02</td>    <td>1,29</td>    <td>1,03</td>    <td>0,45</td>    <td>0,39</td>    <td>1,23</td>  </tr>  <tr>    <td>EK&#304;M</td>    <td>3,3</td>    <td>1,4</td>    <td>2,22</td>    <td>1,79</td>    <td>1,27</td>    <td>1,81</td>    <td>2,60</td>    <td>2,41</td>    <td>1,83</td>  </tr>  <tr>    <td>KASIM</td>    <td>2,9</td>    <td>1,6</td>    <td>1,54</td>    <td>1,40</td>    <td>1,29</td>    <td>1,95</td>    <td>0,83</td>    <td>1,27</td>    <td>0,03</td>  </tr>  <tr>    <td>ARALIK</td>    <td>1,6</td>    <td>0,9</td>    <td>0,45</td>    <td>0,42</td>    <td>0,23</td>    <td>0,22</td>    <td>-0,41</td>    <td>0,53</td>    <td>&nbsp;</td>  </tr></tbody></table><p>&nbsp;</p><h3>T&Uuml;FE (YILLIK)</h3><p>&nbsp;</p><table border="1" bordercolor="#cccccc" cellpadding="4" cellspacing="0">  <tbody><tr>    <td>&nbsp;</td>    <td>2002</td>    <td>2003</td>    <td>2004</td>    <td>2005</td>    <td>2006</td>    <td>2007</td>    <td>2008</td>    <td>2009</td>    <td>2010</td>  </tr>  <tr>    <td>OCAK</td>    <td>73,2</td>    <td>26,4</td>    <td>16,2</td>    <td>9,23</td>    <td>7,93</td>    <td>9,93</td>    <td>8,17</td>    <td>9,50</td>    <td>8,19</td>  </tr>  <tr>    <td>&#350;UBAT</td>    <td>73,1</td>    <td>27,0</td>    <td>14,28</td>    <td>8,69</td>    <td>8,1</td>    <td>10,16</td>    <td>9,10</td>    <td>7,73</td>    <td>10,13</td>  </tr>  <tr>    <td>MART</td>    <td>65,1</td>    <td>29,41</td>    <td>11,83</td>    <td>7,94</td>    <td>8,16</td>    <td>10,86</td>    <td>9,15</td>    <td>7,89</td>    <td>9,56</td>  </tr>  <tr>    <td>N&#304;SAN</td>    <td>52,7</td>    <td>29,45</td>    <td>10,18</td>    <td>8,18</td>    <td>8,83</td>    <td>10,72</td>    <td>9,66</td>    <td>6,13</td>    <td>10,19</td>  </tr>  <tr>    <td>MAYIS</td>    <td>46,2</td>    <td>30,7</td>    <td>8,88</td>    <td>8,70</td>    <td>9,86</td>    <td>9,23</td>    <td>10,74</td>    <td>5,24</td>    <td>9,10</td>  </tr>  <tr>    <td>HAZ&#304;RAN</td>    <td>42,6</td>    <td>29,8</td>    <td>8,93</td>    <td>8,95</td>    <td>10,12</td>    <td>8,60</td>    <td>10,61</td>    <td>5,73</td>    <td>8,37</td>  </tr>  <tr>    <td>TEMMUZ</td>    <td>41,3</td>    <td>27,44</td>    <td>9,57</td>    <td>7,82</td>    <td>11,69</td>    <td>6,90</td>    <td>12,06</td>    <td>5,39</td>    <td>7,58</td>  </tr>  <tr>    <td>A&#286;USTOS</td>    <td>40,2</td>    <td>24,9</td>    <td>10,04</td>    <td>7,91</td>    <td>10,26</td>    <td>7,39</td>    <td>11,77</td>    <td>5,33</td>    <td>8,33</td>  </tr>  <tr>    <td>EYL&Uuml;L</td>    <td>37,0</td>    <td>23,0</td>    <td>9,00</td>    <td>7,99</td>    <td>11,19</td>    <td>7,12</td>    <td>11,13</td>    <td>5,27</td>    <td>9,24</td>  </tr>  <tr>    <td>EK&#304;M</td>    <td>33,4</td>    <td>20,8</td>    <td>9,86</td>    <td>7,52</td>    <td>9,98</td>    <td>7,70</td>    <td>11,99</td>    <td>5,08</td>    <td>8,62</td>  </tr>  <tr>    <td>KASIM</td>    <td>31,8</td>    <td>19,3</td>    <td>9,79</td>    <td>7,61</td>    <td>9,86</td>    <td>8,40</td>    <td>10,76</td>    <td>5,53</td>    <td>7,29</td>  </tr>  <tr>    <td>ARALIK</td>    <td>29,7</td>    <td>18,4</td>    <td>9,32</td>    <td>7,72</td>    <td>9,65</td>    <td>8,39</td>    <td>10,06</td>    <td>6,53</td>    <td>&nbsp;</td>  </tr></tbody></table><p>&nbsp;</p><h3>TEFE (AYLIK)</h3><p>&nbsp;</p><table border="1" bordercolor="#cccccc" cellpadding="4" cellspacing="0">  <tbody><tr bordercolor="#CCCCCC">    <td>&nbsp;</td>    <td>2002</td>    <td>2003</td>    <td>2004</td>    <td>2005</td>    <td>2006</td>    <td>2007</td>    <td>2008</td>    <td>2009</td>    <td>2010</td>  </tr>  <tr>    <td>OCAK</td>    <td>4,2</td>    <td>5,6</td>    <td>2,6</td>    <td>-0,41</td>    <td>1,96</td>    <td>-0,05</td>    <td> 0,42</td>    <td>0,23</td>    <td>0,58</td>  </tr>  <tr>    <td>&#350;UBAT</td>    <td>2,6</td>    <td>3,1</td>    <td>1,64</td>    <td>0,11</td>    <td>0,26</td>    <td>0,93</td>    <td> 2,56</td>    <td>1,17</td>    <td>1,66</td>  </tr>  <tr>    <td>MART</td>    <td>1,9</td>    <td>3,20</td>    <td>2,10</td>    <td>1,26</td>    <td>0,25</td>    <td>0,97</td>    <td> 3,17</td>    <td>0,29</td>    <td>1,94</td>  </tr>  <tr>    <td>N&#304;SAN</td>    <td>1,8</td>    <td>1,76</td>    <td>2,65</td>    <td>1,21</td>    <td>1,94</td>    <td>0,80</td>    <td> 4,50</td>    <td>0,65</td>    <td>2,35</td>  </tr>  <tr>    <td>MAYIS</td>    <td>0,4</td>    <td>-0,6</td>    <td>-0,03</td>    <td>0,20</td>    <td>2,77</td>    <td>0,39</td>    <td> 2,12</td>    <td>-0,05</td>    <td>-1,15</td>  </tr>  <tr>    <td>HAZ&#304;RAN</td>    <td>1,2</td>    <td>-1,9</td>    <td>-1,05</td>    <td>-0,48</td>    <td>4,02</td>    <td>-0,11</td>    <td> 0,32</td>    <td>0,94</td>    <td>-0,50</td>  </tr>  <tr>    <td>TEMMUZ</td>    <td>2,7</td>    <td>-0,54</td>    <td>-1,52</td>    <td>-0,74</td>    <td>0,86</td>    <td>0,06</td>    <td> 1,25</td>    <td>-0,71</td>    <td>-0,16</td>  </tr>  <tr>    <td>A&#286;USTOS</td>    <td>2,1</td>    <td>-0,2</td>    <td>0,79</td>    <td>1,04</td>    <td>-0,75</td>    <td>0,85</td>    <td>-2,34</td>    <td>0,42</td>    <td>1,15</td>  </tr>  <tr>    <td>EYL&Uuml;L</td>    <td>3,1</td>    <td>0,1</td>    <td>1,85</td>    <td>0,78</td>    <td>-0,23</td>    <td>1,02</td>    <td>-0,90</td>    <td>0,62</td>    <td>0,51</td>  </tr>  <tr>    <td>EK&#304;M</td>    <td>3,1</td>    <td>0,6</td>    <td>3,23</td>    <td>0,68</td>    <td>0,45</td>    <td>-0,13</td>    <td> 0,57</td>    <td>0,28</td>    <td>1,21</td>  </tr>  <tr>    <td>KASIM</td>    <td>1,6</td>    <td>1,7</td>    <td>0,75</td>    <td>-0,95</td>    <td>-0,29</td>    <td>0,89</td>    <td> -0,03</td>    <td>1,29</td>    <td>-0,31</td>  </tr>  <tr>    <td>ARALIK</td>    <td>2,6</td>    <td>0,6</td>    <td>0,13</td>    <td>-0,04</td>    <td>-0,12</td>    <td>0,15</td>    <td> -3,54</td>    <td>0,66</td>    <td>&nbsp;</td>  </tr></tbody></table><p>&nbsp;</p><h3>TEFE (YILLK)</h3><p>&nbsp;</p><table border="1" bordercolor="#cccccc" cellpadding="4" cellspacing="0">  <tbody><tr bordercolor="#CCCCCC">    <td>&nbsp;</td>    <td>2002</td>    <td>2003</td>    <td>2004</td>    <td>2005</td>    <td>2006</td>    <td>2007</td>    <td>2008</td>    <td>2009</td>    <td>2010</td>  </tr>  <tr>    <td>OCAK</td>    <td>92,0</td>    <td>32,6</td>    <td>10,8</td>    <td>10,70</td>    <td>5,11</td>    <td>9,37</td>    <td>6,44</td>    <td>7,90</td>    <td>6,30</td>  </tr>  <tr>    <td>&#350;UBAT</td>    <td>91,8</td>    <td>33,4</td>    <td>9,14</td>    <td>10,58</td>    <td>5,26</td>    <td>10,13</td>    <td>8,15</td>    <td>6,43</td>    <td>6,82 </td>  </tr>  <tr>    <td>MART</td>    <td>77,5</td>    <td>35,15</td>    <td>7,97</td>    <td>11,33</td>    <td>4,21</td>    <td>10,92</td>    <td>10,50</td>    <td>3,46</td>    <td>8,58</td>  </tr>  <tr>    <td>N&#304;SAN</td>    <td>58,0</td>    <td>35,08</td>    <td>8,91</td>    <td>10,17</td>    <td>4,96</td>    <td>9,68</td>    <td>14,56</td>    <td>-0,35 1</td>    <td>0,42 </td>  </tr>  <tr>    <td>MAYIS</td>    <td>49,3</td>    <td>33,7</td>    <td>9,56</td>    <td>5,59</td>    <td>7,66</td>    <td>7,14</td>    <td>16,53</td>    <td>-2,46</td>    <td>9,21 </td>  </tr>  <tr>    <td>HAZ&#304;RAN</td>    <td>46,8</td>    <td>29,6</td>    <td>10,53</td>    <td>4,25</td>    <td>12,52</td>    <td>2,89</td>    <td>17,03</td>    <td>-1,86</td>    <td>7,64</td>  </tr>  <tr>    <td>TEMMUZ</td>    <td>45,9</td>    <td>25,57</td>    <td>9,44</td>    <td>4,26</td>    <td>14,34</td>    <td>2,08</td>    <td>18,41</td>    <td>-3,75</td>    <td>8,24 </td>  </tr>  <tr>    <td>A&#286;USTOS</td>    <td>43,9</td>    <td>22,7</td>    <td>10,52</td>    <td>4,32</td>    <td>12,32</td>    <td>3,72</td>    <td>14,67</td>    <td>-1,04</td>    <td>9,03 </td>  </tr>  <tr>    <td>EYL&Uuml;L</td>    <td>40,9</td>    <td>19,1</td>    <td>12,50</td>    <td>4,38</td>    <td>10,55</td>    <td>5,02</td>    <td>12,29</td>    <td>0,47</td>    <td>8,91 </td>  </tr>  <tr>    <td>EK&#304;M</td>    <td>36,1</td>    <td>16,1</td>    <td>15,48</td>    <td>2,57</td>    <td>10,94</td>    <td>4,41</td>    <td>13,29</td>    <td>0,19</td>    <td>9,92 </td>  </tr>  <tr>    <td>KASIM</td>    <td>32,8</td>    <td>16,2</td>    <td>14,40</td>    <td>1,60</td>    <td>11,67</td>    <td>5,65</td>    <td>12,25</td>    <td>1,51 </td>    <td>8,17</td>  </tr>  <tr>    <td>ARALIK</td>    <td>30,8</td>    <td>13,9</td>    <td>13,84</td>    <td>2,66</td>    <td>11,58</td>    <td>5,94</td>    <td>8,11</td>    <td>5,93 </td>    <td>&nbsp;</td>  </tr></tbody></table><p>&nbsp;</p><p>Kaynak: T&uuml;rkiye &#304;statistik Kurumu </p></div></div>]]></content:encoded></item><item><title><![CDATA[rack-1.2.1/lib/rack/utils.rb:138:in `union': can't convert Array into String (TypeError)]]></title><link><![CDATA[http://www.ardabasoglu.com/1/post/2010/10/rack-121librackutilsrb138in-union-cant-convert-array-into-string-typeerror.html]]></link><comments><![CDATA[http://www.ardabasoglu.com/1/post/2010/10/rack-121librackutilsrb138in-union-cant-convert-array-into-string-typeerror.html#comments]]></comments><pubDate>Thu, 07 Oct 2010 15:33:57 -0800</pubDate><category><![CDATA[Uncategorized]]></category><guid isPermaLink="false">http://www.ardabasoglu.com/1/post/2010/10/rack-121librackutilsrb138in-union-cant-convert-array-into-string-typeerror.html</guid><description><![CDATA[I encountered the below error when I tried to do "heroku db:pull"&nbsp;&nbsp;&nbsp; c:/ruby/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/utils.rb:138:in]  `union': can't convert Array into String   then I commented the related line in utils.rb&nbsp;&nbsp; [...] ]]></description><content:encoded><![CDATA[<div  class="paragraph editable-text" style=" text-align: left; ">I encountered the below error when I tried to do <span style="font-weight: bold;">"heroku db:pull"</span><br /><span></span><br /><span></span>&nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">c:/ruby/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/utils.rb:138:in]  `union': can't convert Array into String</span> <br /><br /><span></span>  then I commented the related line in utils.rb<br /><span></span><br /><span></span>&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-weight: bold;"># ESCAPE_HTML_PATTERN = Regexp.union(ESCAPE_HTML.keys)  </span><br /><span></span><br /><span></span>and everything worked fine <br /><span></span><br /><span></span></div>]]></content:encoded></item><item><title><![CDATA[YAML error occurred parsing ]]></title><link><![CDATA[http://www.ardabasoglu.com/1/post/2010/10/yaml-error-occurred-parsing.html]]></link><comments><![CDATA[http://www.ardabasoglu.com/1/post/2010/10/yaml-error-occurred-parsing.html#comments]]></comments><pubDate>Wed, 06 Oct 2010 11:34:18 -0800</pubDate><category><![CDATA[Uncategorized]]></category><guid isPermaLink="false">http://www.ardabasoglu.com/1/post/2010/10/yaml-error-occurred-parsing.html</guid><description><![CDATA[E&#287;er heroku da uygulama ger&ccedil;ekle&#351;tiriyorsan&#305;z ve &nbsp;&nbsp;&nbsp;&nbsp; $ heroku rake db:fixtures:loadkomutunu &ccedil;al&#305;&#351;t&#305;rd&#305;&#287;&#305;n&#305;zda a&#351;a&#287;&#305;da [...] ]]></description><content:encoded><![CDATA[<div  class="paragraph editable-text" style=" text-align: left; ">E&#287;er <a title="" href="http://heroku.com/">heroku </a>da uygulama ger&ccedil;ekle&#351;tiriyorsan&#305;z ve <br /><span></span><br />&nbsp;&nbsp;&nbsp;<span style="color: rgb(0, 0, 0);">&nbsp; </span><font style="color: rgb(0, 0, 0);" size="3">$ <span></span><span>heroku</span> rake db:fixtures:load</font><br /><br /><span></span><span>komutunu &ccedil;al&#305;&#351;t&#305;rd&#305;&#287;&#305;n&#305;zda a&#351;a&#287;&#305;daki hatay&#305; al&#305;yorsan&#305;z.</span><br /><br /><span></span><font style="color: rgb(0, 0, 0);" size="2">&nbsp;&nbsp;&nbsp;&nbsp; "...<span></span>rake aborted! a YAML error occurred parsing Please note tha t YAML must be consistently indented using spaces. Tabs are not allowed..."</font><br /><br /><span>sorun hata mesaj&#305;ndaki "Tab" larla ile ilgili olmayabilir ve bir ihtimal fixture dosyalar&#305;n&#305;zda ge&ccedil;en <span style="font-weight: bold;">T&uuml;rk&ccedil;e karakterlere</span> ve dosyan&#305;n <span style="font-weight: bold;">encoding</span></span>' ine dayanabilir. E&#287;er fixture dosyalar&#305;n&#305;zda T&uuml;rk&ccedil;e karakterler bulunuyorsa dosya encoding ayar&#305;n&#305; <span style="font-weight: bold;">utf-8 </span>olarak de&#287;i&#351;tirmeyi deneyebilirsiniz.<br /><span></span><br /><span></span><br /></div><div ><div style="text-align: center;"><a><img src="http://www.ardabasoglu.com/uploads/2/2/4/3/2243848/2223663.png?679" style="margin-top: 10px; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; border-width:1px;padding:3px;" alt="yaml utf-8 encoding turkish characters" class="galleryImageBorder" /></a><div style="display: block; font-size: 90%; margin-top: -10px; margin-bottom: 10px;">T&uuml;rk&ccedil;e karakter i&ccedil;eren YAML dosyas&#305;n&#305; heroku i&ccedil;in utf-8 encoding i&#351;aretlemenizde fayda var</div></div></div>]]></content:encoded></item><item><title><![CDATA[Yankoltuk, 2010-07-31]]></title><link><![CDATA[http://www.ardabasoglu.com/1/post/2010/08/yankoltuk-2010-07-31.html]]></link><comments><![CDATA[http://www.ardabasoglu.com/1/post/2010/08/yankoltuk-2010-07-31.html#comments]]></comments><pubDate>Mon, 02 Aug 2010 18:00:25 -0800</pubDate><category><![CDATA[Uncategorized]]></category><guid isPermaLink="false">http://www.ardabasoglu.com/1/post/2010/08/yankoltuk-2010-07-31.html</guid><description><![CDATA[Bu sefer herkes kamerya bakıyor. Ben hariç :)Uzun bir aradan sonra t&uuml;m ekip birar [...] ]]></description><content:encoded><![CDATA[<div ><div style="text-align: center;"><a><img src="http://www.ardabasoglu.com/uploads/2/2/4/3/2243848/4905969.jpg?691" style="margin-top: 10px; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; border-width:1px;padding:3px;" alt="Picture" class="galleryImageBorder" /></a><div style="display: block; font-size: 90%; margin-top: -10px; margin-bottom: 10px;">Bu sefer herkes kamerya bak&#305;yor. Ben hari&ccedil; :)</div></div></div><div  class="paragraph" style=" text-align: left; ">Uzun bir aradan sonra t&uuml;m ekip biraraya geldik. &#304;stanbul'un k&uuml;resel iklim de&#287;i&#351;ikli&#287;ine ayak uyduran kavurucu bir yaz Cumartesi'de Nero Cafe'nin klimayla so&#287;utulmu&#351; &uuml;st salonunda rahat bir &ccedil;al&#305;&#351;ma ortam&#305;na yerle&#351;tik. Herkes laptoplar&#305; a&ccedil;t&#305; ve Yankoltuk'u test ettik. Bir d&uuml;zine bug ve iyile&#351;tirme tekliflerini ticketlar haline getirdikten sonra evlere da&#287;&#305;ld&#305;k. Son derece verimli bir &ccedil;al&#305;&#351;ma oldu&#287;unu s&ouml;ylemeliyim. Kod yazmaktan ar&#305;n&#305;p b&ouml;yle bir &ccedil;al&#305;&#351;ma yapmak ta ayr&#305;ca hepimiz i&ccedil;in keyifli oldu. &#350;imdi tekrar Bo&#287;a&ccedil;'la bir araya gelip kod yazmam&#305;z gerekecek. Bu sefer i&#351;lerimizin b&uuml;y&uuml;k bir b&ouml;l&uuml;m&uuml;n&uuml; bitirmi&#351; olman&#305;n rahatl&#305;&#287;&#305;yla ama...<br /></div>]]></content:encoded></item><item><title><![CDATA[Yankoltuk, 2010-07-23]]></title><link><![CDATA[http://www.ardabasoglu.com/1/post/2010/08/yankoltuk-2010-07-23.html]]></link><comments><![CDATA[http://www.ardabasoglu.com/1/post/2010/08/yankoltuk-2010-07-23.html#comments]]></comments><pubDate>Mon, 02 Aug 2010 17:57:21 -0800</pubDate><category><![CDATA[Uncategorized]]></category><guid isPermaLink="false">http://www.ardabasoglu.com/1/post/2010/08/yankoltuk-2010-07-23.html</guid><description><![CDATA[Çok sıcak bir Cuma akşamında Yankoltuk çalışması. Boğaç Aslanyürek, Arda Başoğlu [...] ]]></description><content:encoded><![CDATA[<div ><div style="text-align: center;"><a><img src="http://www.ardabasoglu.com/uploads/2/2/4/3/2243848/1161335.jpg?682" style="margin-top: 10px; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; border-width:1px;padding:3px;" alt="Yankoltuk, Arda Ba&#351;o&#287;lu, Bo&#287;a&ccedil; Aslany&uuml;rek" class="galleryImageBorder" /></a><div style="display: block; font-size: 90%; margin-top: -10px; margin-bottom: 10px;">&Ccedil;ok s&#305;cak bir Cuma ak&#351;am&#305;nda Yankoltuk &ccedil;al&#305;&#351;mas&#305;. Bo&#287;a&ccedil; Aslany&uuml;rek, Arda Ba&#351;o&#287;lu</div></div></div><div  class="paragraph" style=" text-align: left; ">Yankoltuk i&ccedil;in tekrar Bo&#287;a&ccedil;'la birlikte bir Cuma gecesi &ccedil;al&#305;&#351;mas&#305; yapt&#305;k. Sabah kalt&#305;&#287;&#305;m&#305;zda da geceden kalma baz&#305; hatalar&#305; ay&#305;klad&#305;k ve nihayet Yankoltuk'un ilk major versiyonunu bitirdik. Ba&#351;&#305;ndan beri yapmak istedi&#287;imiz ama zaman yetersizli&#287;inden tamamlayamad&#305;&#287;&#305;m&#305;z kordinat baz&#305;nda aramay&#305; bitirdik. Art&#305;k Yankoltuk kullan&#305;c&#305;lar&#305; arama sonu&ccedil;lar&#305;n&#305; arad&#305;klar&#305; A-B aras&#305;ndaki yolculuklar&#305; kordinat baz&#305;nda bulacaklar. Bu &ouml;zellik Google Map API sayesinden sa&#287;lan&#305;yor. Biz bu API ile Yankoltuk'u b&uuml;t&uuml;nle&#351;tirdik. Biraz sanc&#305;l&#305; bir s&uuml;re&ccedil; oldu&#287;unu s&ouml;ylemem laz&#305;m. Bize yeni olan baz&#305; teknolojiler kulland&#305;k; bu y&uuml;zden &ouml;&#287;renmek i&ccedil;in ge&ccedil;irdi&#287;imiz zaman da olduk&ccedil;a uzundu. Bundan sonra art&#305;k arkam&#305;za yaslan&#305;p bir dizi test yapaca&#287;&#305;z, hatalar varsa bunlar&#305;n &uuml;st&uuml;ne gidecei&#287;iz. Bunlar bitince de iyile&#351;tirme ile ilgili &ccedil;al&#305;&#351;malara ba&#351;layaca&#287;&#305;z.<br /></div>]]></content:encoded></item><item><title><![CDATA[...sokaktaki insanın dahi idrak edeceği kadar...]]></title><link><![CDATA[http://www.ardabasoglu.com/1/post/2010/07/sokaktaki-insann-dahi-idrak-edecei-kadar.html]]></link><comments><![CDATA[http://www.ardabasoglu.com/1/post/2010/07/sokaktaki-insann-dahi-idrak-edecei-kadar.html#comments]]></comments><pubDate>Wed, 07 Jul 2010 14:38:19 -0800</pubDate><category><![CDATA[Uncategorized]]></category><guid isPermaLink="false">http://www.ardabasoglu.com/1/post/2010/07/sokaktaki-insann-dahi-idrak-edecei-kadar.html</guid><description><![CDATA[Ba&#351;l&#305;&#287;&#305; herg&uuml;n ziyaret etti&#287;im g&uuml;venilir bir haber sitesinden al&#305;nt&#305;lad&#305;m. Sokataki adam&#305;n &ccedil;ok zeki olmad&#305;&#287;&#305;n&#305; ima eden bir c&uuml;mle sadece. Haberin g&uuml;venilirli&#287;i &ccedil;ok &ouml;nemli de&#287;il asl&#305;nda, bu lafa biz zaten al&#305;&#351;&#305;&#287;&#305;z; kan&#305;ksam&#305;&#351;&#305;z: sokaktaki adam "zor idrak eder". Yani sokaktaki adam&#30 [...] ]]></description><content:encoded><![CDATA[<div  class="paragraph" style=" text-align: left; ">Ba&#351;l&#305;&#287;&#305; herg&uuml;n ziyaret etti&#287;im g&uuml;venilir bir haber sitesinden al&#305;nt&#305;lad&#305;m. Sokataki adam&#305;n &ccedil;ok zeki olmad&#305;&#287;&#305;n&#305; ima eden bir c&uuml;mle sadece. Haberin g&uuml;venilirli&#287;i &ccedil;ok &ouml;nemli de&#287;il asl&#305;nda, bu lafa biz zaten al&#305;&#351;&#305;&#287;&#305;z; kan&#305;ksam&#305;&#351;&#305;z: sokaktaki adam "zor idrak eder". Yani sokaktaki adam&#305;n pek bir&#351;ey bildi&#287;i yok. Peki sokaktaki adamlar her&#351;eyi anlam&#305;yorsa bunun sorumlusu kim? Size alternatif birka&ccedil; cevap: Hepimiz, devlet, h&uuml;k&uuml;met...Bu laf&#305; kullanan bir milletvekili; bizden biri. Bizim abimiz, ablam&#305;z, karde&#351;imiz, amcam&#305;z, kom&#351;umuz...neyse...K&ouml;t&uuml; olan o milletvekilinin ikiy&uuml;zl&uuml;l&uuml;&#287;&uuml; esasen. Gerekti&#287;inde o "sokaktaki adam"&#305;n oyuyla &ouml;v&uuml;nen, gerekti&#287;inde o adam&#305; a&#351;a&#287;&#305;layan ve &uuml;st&uuml;ne o insanlar&#305; temsil etti&#287;ini s&ouml;yleyen biri. Bu arada o adamlar&#305;n e&#287;itimiyle de ilgili y&uuml;k&uuml;ml&uuml;l&uuml;&#287;&uuml; olan biri. Sormak istedi&#287;m &#351;u: "demokratik, parlementer sistem" sizce de asl&#305;nda "ideal bir&#351;ey" olarak bir ill&uuml;zyon de&#287;il mi? Sahiden biz insanlar&#305;n b&ouml;yle bir d&uuml;zene ihtiyac&#305; var m&#305;? Ben bu aralar daha &ccedil;ok d&uuml;&#351;&uuml;n&uuml;yorum. Siz de bir d&uuml;&#351;&uuml;n&uuml;n bakal&#305;m... :) 400+ adam milyonlar&#305;n hayat&#305;yla oynamal&#305; m&#305;?</div>]]></content:encoded></item></channel></rss>

