<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-658693724588200643</id><updated>2026-04-08T01:28:01.461-07:00</updated><category term="OOP &amp; C#.Net interview Questions"/><category term=".Net Framework interview questions and answers"/><category term="SQL server"/><category term="Codility"/><category term="Asp.Net"/><category term="Visual Studio"/><category term="WPF"/><category term="Asp.net mvc"/><category term="Auto Responder"/><category term="Binary Gap"/><category term="C#"/><category term="C# Concepts"/><category term="C# For Loop exception"/><category term="CSS"/><category term="Codility Cyclic Rotation Solution C#"/><category term="Codility FrogJmp Solution"/><category term="Codility OddOccurrencesInArray Solution C#.Net"/><category term="Codility TapeEquilibrium Solution C#"/><category term="Common table expression"/><category term="Delegates in C#.Net"/><category term="Entity Framework"/><category term="Error Code 1175"/><category term="Fiddle"/><category term="Group By"/><category term="Guid Default / Empty / Null parameter"/><category term="Handle exceptions in loop"/><category term="Kendo UI Editor"/><category term="My SQL"/><category term="OOPS"/><category term="Span value jquery"/><category term="WCF"/><category term="identity specification false"/><category term="line height"/><category term="null can not insert"/><category term="stringbuilder"/><category term="stringbuilder clear"/><category term="top 2 in group by for each group"/><title type='text'>DotNetPeople</title><subtitle type='html'>OOPS Concepts, OOPS interview questions, C#.Net interview questions, .Net framework  interview questions, Asp.Net  interview questions, SQL server interview questions, WCF  interview questions, WPF  interview questions, Angular Js  interview questions&#xa;</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dotnetpeoples.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default'/><link rel='alternate' type='text/html' href='http://dotnetpeoples.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default?start-index=26&amp;max-results=25'/><author><name>jatin</name><uri>http://www.blogger.com/profile/12823525541194838677</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>71</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-658693724588200643.post-3278695209443323006</id><published>2017-11-03T11:07:00.000-07:00</published><updated>2017-11-03T11:24:01.588-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="C# For Loop exception"/><category scheme="http://www.blogger.com/atom/ns#" term="Handle exceptions in loop"/><title type='text'>Continue loop iteration after exception is thrown</title><summary type="text">

One of my friend working on one project which has task and task has for loop inside.

Like this,

try
{
&amp;nbsp; &amp;nbsp; foreach (var item in collection)
&amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (item == null)
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; throw new Exception(&quot;item {0} is null&quot; + item);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&amp;nbsp; &amp;nbsp; }
}
catch (Exception</summary><link rel='replies' type='application/atom+xml' href='http://dotnetpeoples.blogspot.com/feeds/3278695209443323006/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetpeoples.blogspot.com/2017/11/continue-loop-iteration-after-exception.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/3278695209443323006'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/3278695209443323006'/><link rel='alternate' type='text/html' href='http://dotnetpeoples.blogspot.com/2017/11/continue-loop-iteration-after-exception.html' title='Continue loop iteration after exception is thrown'/><author><name>jatin</name><uri>http://www.blogger.com/profile/12823525541194838677</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-658693724588200643.post-6083461023531681672</id><published>2017-11-02T09:33:00.004-07:00</published><updated>2017-11-02T09:57:04.353-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Span value jquery"/><title type='text'>Set Span value using Jquery</title><summary type="text">


Using jQuery to set value on SPAN element
Let say we have below span element,
&amp;lt;Span id=&quot;spnTest&quot; class=&quot;red&quot;&amp;gt;&amp;lt;/span&amp;gt;
You can set value of span element using two ways,

 1) By Using Class name of Span
$(&quot;.red&quot;).text(&quot;Hello&quot;);

$(&quot;.red&quot;).html(&quot;Hello&quot;);


2) By Using Id of Span
$(&quot;#spnTest&quot;).text(&quot;Hello&quot;);

$(&quot;#spnTest&quot;).html(&quot;Hello&quot;);


</summary><link rel='replies' type='application/atom+xml' href='http://dotnetpeoples.blogspot.com/feeds/6083461023531681672/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetpeoples.blogspot.com/2017/11/set-span-value-using-jquery.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/6083461023531681672'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/6083461023531681672'/><link rel='alternate' type='text/html' href='http://dotnetpeoples.blogspot.com/2017/11/set-span-value-using-jquery.html' title='Set Span value using Jquery'/><author><name>jatin</name><uri>http://www.blogger.com/profile/12823525541194838677</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-658693724588200643.post-2346610781160936159</id><published>2017-11-02T09:24:00.001-07:00</published><updated>2017-11-02T09:26:06.235-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="stringbuilder"/><category scheme="http://www.blogger.com/atom/ns#" term="stringbuilder clear"/><title type='text'>stringbuilder clear</title><summary type="text">

How to Clear stringbuilder string.

StringBuilder stringBuilder = new StringBuilder();

Just use Clear method on stringbuilder object to clear stringbuilder content.

stringbuilder.Clear();


</summary><link rel='replies' type='application/atom+xml' href='http://dotnetpeoples.blogspot.com/feeds/2346610781160936159/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetpeoples.blogspot.com/2017/11/stringbuilder-clear.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/2346610781160936159'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/2346610781160936159'/><link rel='alternate' type='text/html' href='http://dotnetpeoples.blogspot.com/2017/11/stringbuilder-clear.html' title='stringbuilder clear'/><author><name>jatin</name><uri>http://www.blogger.com/profile/12823525541194838677</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-658693724588200643.post-7209135214749909701</id><published>2017-10-25T03:14:00.001-07:00</published><updated>2017-10-25T10:32:03.080-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Kendo UI Editor"/><category scheme="http://www.blogger.com/atom/ns#" term="line height"/><title type='text'>Change line height in Kendo UI Web editor</title><summary type="text">Change line height in Kendo UI Web editorWe can do it by configuring the stylesheet property of the editor, and then configuring the tools that will apply the styles to the selected content.$(&quot;#editor&quot;).kendoEditor({
  tools: [
    { name: &quot;formatting&quot;, items: [
      { text: &quot;Error&quot;, value: &quot;.Error&quot; },
      { text: &quot;OK&quot;, value: &quot;.OK&quot; },
      { text: &quot;Inline Code&quot;, value: &quot;.inCode&quot; }
    ] }
  </summary><link rel='replies' type='application/atom+xml' href='http://dotnetpeoples.blogspot.com/feeds/7209135214749909701/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetpeoples.blogspot.com/2017/10/change-line-height-in-kendo-ui-web.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/7209135214749909701'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/7209135214749909701'/><link rel='alternate' type='text/html' href='http://dotnetpeoples.blogspot.com/2017/10/change-line-height-in-kendo-ui-web.html' title='Change line height in Kendo UI Web editor'/><author><name>jatin</name><uri>http://www.blogger.com/profile/12823525541194838677</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-658693724588200643.post-8270104283558073179</id><published>2017-10-11T10:02:00.001-07:00</published><updated>2017-10-11T10:06:49.377-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CSS"/><title type='text'>line height CSS</title><summary type="text">

What is Line Height in CSS? 




- Line Height property defines amount of height in which text content is written in HTML.



Properties of Line Height:


Normal:&amp;nbsp;



This is default Height line, generally around 100% to 120%.&amp;nbsp;



e.g.: Default Height line in word document.



Number:



A number that will be multiplied with the current font size to set the line height.

Length:

&amp;</summary><link rel='replies' type='application/atom+xml' href='http://dotnetpeoples.blogspot.com/feeds/8270104283558073179/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetpeoples.blogspot.com/2017/10/line-height-css.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/8270104283558073179'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/8270104283558073179'/><link rel='alternate' type='text/html' href='http://dotnetpeoples.blogspot.com/2017/10/line-height-css.html' title='line height CSS'/><author><name>jatin</name><uri>http://www.blogger.com/profile/12823525541194838677</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxQlLTKyOSTE3ADl2MXAFWFGgGboLk9nkQ_eWTsiSzVVWZ774Enr0fLTMaBnMoP-LMKlVAt7OJgAiDv9_7OBDEdcJ6p7mcLojlPHLtRpQVGIx5DSaZIDZIoKpMjC1lqvvLgBOuXJ79mbQ/s72-c/CSS+Line+Height.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-658693724588200643.post-905545429843588873</id><published>2017-10-08T06:39:00.002-07:00</published><updated>2017-10-08T06:39:39.886-07:00</updated><title type='text'>Application&#39;s path in a .NET console application</title><summary type="text">

How can I get the application&#39;s path in a .NET console application? OR&amp;nbsp;Get path for my assembly.

System.Reflection.Assembly.GetEntryAssembly().Location;


</summary><link rel='replies' type='application/atom+xml' href='http://dotnetpeoples.blogspot.com/feeds/905545429843588873/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetpeoples.blogspot.com/2017/10/applications-path-in-net-console.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/905545429843588873'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/905545429843588873'/><link rel='alternate' type='text/html' href='http://dotnetpeoples.blogspot.com/2017/10/applications-path-in-net-console.html' title='Application&#39;s path in a .NET console application'/><author><name>jatin</name><uri>http://www.blogger.com/profile/12823525541194838677</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-658693724588200643.post-768154884020426065</id><published>2017-10-05T11:05:00.003-07:00</published><updated>2017-10-05T11:12:45.281-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL server"/><title type='text'>Using Replace in Update statement SQL</title><summary type="text">

Using Replace in Update statement SQL

Suppose you have following table &#39;MasterData&#39; table in SQL,









You want to replace &#39;!!&#39; by &#39;{{&#39; and &#39;||&#39; by &#39;}}&#39; in data column of table. How would you do it.


=&amp;gt; You can do it by using Replace function in Update statement of SQL Server as below,

 

UPDATE dbo.MasterData

SET Value = REPLACE(REPLACE(Data, &#39;!!&#39;, &#39;{{&#39;),&#39;||&#39;,&#39;}}&#39;)


WHERE ID = 1


</summary><link rel='replies' type='application/atom+xml' href='http://dotnetpeoples.blogspot.com/feeds/768154884020426065/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetpeoples.blogspot.com/2017/10/using-replace-in-update-statement-sql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/768154884020426065'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/768154884020426065'/><link rel='alternate' type='text/html' href='http://dotnetpeoples.blogspot.com/2017/10/using-replace-in-update-statement-sql.html' title='Using Replace in Update statement SQL'/><author><name>jatin</name><uri>http://www.blogger.com/profile/12823525541194838677</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQYW1S1gwOhNXZdnX2r91TyMZCC-MBvv2Aku4dqGGZTtn3fX4IUGWnHI6SYxmjVYhoHBvktTEyDIPMos7vkVm7XuS_bThsYLhiT8CEQYVjlUawkIyOmpZiSKcKqIHPejxOcAVdmeID2o0/s72-c/Update+SQL.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-658693724588200643.post-9139551231521818954</id><published>2017-09-25T01:25:00.000-07:00</published><updated>2017-09-25T01:25:14.897-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Guid Default / Empty / Null parameter"/><title type='text'>How to assign default or null or empty parameter to Guid </title><summary type="text">
One of my friend working on one project, and he wants to assign the null / Empty / default parameter to guid,


public void SampleFunction(Guid guidParameter = Guid.Empty)
{
}

But the compiler complains that Guid.Empty is not a compile time constant.

Solution&amp;nbsp;

We can use,
public void SampleFunction(Guid guidParameter = new Guid()){
  // when called without parameters this will be true
  </summary><link rel='replies' type='application/atom+xml' href='http://dotnetpeoples.blogspot.com/feeds/9139551231521818954/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetpeoples.blogspot.com/2017/09/how-to-assign-default-or-null-or-empty.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/9139551231521818954'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/9139551231521818954'/><link rel='alternate' type='text/html' href='http://dotnetpeoples.blogspot.com/2017/09/how-to-assign-default-or-null-or-empty.html' title='How to assign default or null or empty parameter to Guid '/><author><name>jatin</name><uri>http://www.blogger.com/profile/12823525541194838677</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-658693724588200643.post-7377972004190080139</id><published>2017-09-16T05:13:00.005-07:00</published><updated>2017-10-25T10:31:38.853-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Auto Responder"/><category scheme="http://www.blogger.com/atom/ns#" term="Fiddle"/><title type='text'>Fiddler Wildcard AutoResponse For URL parameters</title><summary type="text">Suppose you want to enable autoresponder for perticular URL like,

https://dotnetpeoples.blogspot.in/Employee/Login?id=12345
but every time id changes when we re-fresh this page, so autoresponder not considering it,
so just do below 2 steps it will work for you guys,


Step 1: &amp;nbsp;Enable Automatic responses &amp;amp; unmatched request passthrough



Step 2: In Rule Editor Changed below URL as,

</summary><link rel='replies' type='application/atom+xml' href='http://dotnetpeoples.blogspot.com/feeds/7377972004190080139/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetpeoples.blogspot.com/2017/09/fiddler-wildcard-autoresponse-for-url.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/7377972004190080139'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/7377972004190080139'/><link rel='alternate' type='text/html' href='http://dotnetpeoples.blogspot.com/2017/09/fiddler-wildcard-autoresponse-for-url.html' title='Fiddler Wildcard AutoResponse For URL parameters'/><author><name>jatin</name><uri>http://www.blogger.com/profile/12823525541194838677</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgESi6WGtlkJaHrcm9K69OwwT4XbKQwYdsklCjEDdjuDWi35BfixRwe_2nDTVlhQMXJ9-P9iJGq_c39xwp1OzjDDutrYHLDwVfHcCjxcpJKQD_F7j3d4I7WVifiZJ-_66aL5RDWW-jXJZA/s72-c/Autoresponder.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-658693724588200643.post-2995884412077572751</id><published>2017-01-05T23:39:00.000-08:00</published><updated>2017-01-29T05:26:43.674-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Entity Framework"/><category scheme="http://www.blogger.com/atom/ns#" term="identity specification false"/><title type='text'>How to set identity specification set to false globally in entity framework</title><summary type="text">



We can globally turn off this feature by removing StoreGeneratedIdentityKeyConvention Convention as below,




public class OurContext : DbContext&amp;nbsp;
{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
protected override void OnModelCreating(DbModelBuilder modBuilder) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; modBuilder.Conventions.Remove&amp;lt;StoreGeneratedIdentityKeyConvention&amp;gt;();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
}
}


</summary><link rel='replies' type='application/atom+xml' href='http://dotnetpeoples.blogspot.com/feeds/2995884412077572751/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetpeoples.blogspot.com/2017/01/how-to-set-identity-specification-set.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/2995884412077572751'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/2995884412077572751'/><link rel='alternate' type='text/html' href='http://dotnetpeoples.blogspot.com/2017/01/how-to-set-identity-specification-set.html' title='How to set identity specification set to false globally in entity framework'/><author><name>jatin</name><uri>http://www.blogger.com/profile/12823525541194838677</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-658693724588200643.post-1243688407038010623</id><published>2016-12-22T22:39:00.001-08:00</published><updated>2016-12-22T22:39:09.658-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio"/><title type='text'>microsoft visual studio can not set breakpoint in c# file</title><summary type="text">

Microsoft visual studio can not set breakpoint in c# file

I was getting same error in one of my project, and after 15 to 20 mins of search &amp;amp; practical i found very simple solution as below,



BUILD &amp;gt; Clean Solution

BUILD &amp;gt; Build Solution



Hope it will help you guys.





</summary><link rel='replies' type='application/atom+xml' href='http://dotnetpeoples.blogspot.com/feeds/1243688407038010623/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetpeoples.blogspot.com/2016/12/microsoft-visual-studio-can-not-set.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/1243688407038010623'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/1243688407038010623'/><link rel='alternate' type='text/html' href='http://dotnetpeoples.blogspot.com/2016/12/microsoft-visual-studio-can-not-set.html' title='microsoft visual studio can not set breakpoint in c# file'/><author><name>jatin</name><uri>http://www.blogger.com/profile/12823525541194838677</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-658693724588200643.post-6149350259650980157</id><published>2016-11-12T02:28:00.002-08:00</published><updated>2016-11-12T02:33:34.715-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="WCF"/><title type='text'>WCF InvalidOperationException: A binding instance has already been associated to listen URI</title><summary type="text">

Here you missed the&amp;nbsp;address&amp;nbsp;attribute in your metadata endpoint.




A binding instance has already been associated to listen URI




Without it WCF thinks that you want to host the mex endpoint at the same address as other endpoints.









</summary><link rel='replies' type='application/atom+xml' href='http://dotnetpeoples.blogspot.com/feeds/6149350259650980157/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetpeoples.blogspot.com/2016/11/wcf-invalidoperationexception-binding.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/6149350259650980157'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/6149350259650980157'/><link rel='alternate' type='text/html' href='http://dotnetpeoples.blogspot.com/2016/11/wcf-invalidoperationexception-binding.html' title='WCF InvalidOperationException: A binding instance has already been associated to listen URI'/><author><name>jatin</name><uri>http://www.blogger.com/profile/12823525541194838677</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi32mySnOX0B6MjkJWx3KwGctFCn-i47kTISydvsA7JBzj-L-rYdD7BPYMtgxkasq0dUx5k0S0n9gF5WXTWIJpgLkmx6F-8XBoOCE9WL6iqtNKyNMjdMR8vhAEJM8_9-HrJR6DO2S0V9wI/s72-c/A+binding+instance+has+already+been+associated+to+listen+URI.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-658693724588200643.post-488800812128460310</id><published>2016-06-26T06:40:00.000-07:00</published><updated>2017-01-05T23:40:14.803-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net mvc"/><category scheme="http://www.blogger.com/atom/ns#" term="null can not insert"/><title type='text'>Cannot insert the value NULL into column in ASP.NET MVC Entity Framework</title><summary type="text">

Cannot insert the value NULL into column in ASP.NET MVC Entity Framework

One of my friend was trying simple MVC application [CRUD application] CRUD means&amp;nbsp;

C - Create, R - Read, U - Update &amp;amp; D- delete&amp;nbsp;



and he was getting error like&amp;nbsp;&quot;Cannot insert the value NULL into column in ASP.NET MVC Entity Framework&quot; from almost more than half hour as below,




entity framework null</summary><link rel='replies' type='application/atom+xml' href='http://dotnetpeoples.blogspot.com/feeds/488800812128460310/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetpeoples.blogspot.com/2016/06/cannot-insert-value-null-into-column-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/488800812128460310'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/488800812128460310'/><link rel='alternate' type='text/html' href='http://dotnetpeoples.blogspot.com/2016/06/cannot-insert-value-null-into-column-in.html' title='Cannot insert the value NULL into column in ASP.NET MVC Entity Framework'/><author><name>jatin</name><uri>http://www.blogger.com/profile/12823525541194838677</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiodBxQ-U5R6J08TcVPr2gCcVPBEK8dv9jaC9vn05BUtXILZCyFmoADmOQPWgCOY3IuMvIV2CyfmVf175oSWwKV78hqlo0GYbvIMfETPTHQZZmYkPreGQs1eFMzJLGi_DW92ifUl5dFU1o/s72-c/entity+framework+null+value+issue+for+id+key.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-658693724588200643.post-4187797970371629725</id><published>2016-06-13T08:43:00.000-07:00</published><updated>2016-06-27T07:03:53.539-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Delegates in C#.Net"/><title type='text'>Delegates in C# with examples</title><summary type="text">

Delegate is type
safe function pointer.



Function pointer: points/holds referernce
to a method.



Type safe: &amp;nbsp;return type and signature of method must be
same as signature and return type of method else you will get compilation error.



Syntax: &amp;nbsp;Very
much similar to the method with the delegate keyword.



It is similar to a
class, we need to create instance of it and pass in the </summary><link rel='replies' type='application/atom+xml' href='http://dotnetpeoples.blogspot.com/feeds/4187797970371629725/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetpeoples.blogspot.com/2016/06/delegates-in-c-with-examples.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/4187797970371629725'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/4187797970371629725'/><link rel='alternate' type='text/html' href='http://dotnetpeoples.blogspot.com/2016/06/delegates-in-c-with-examples.html' title='Delegates in C# with examples'/><author><name>jatin</name><uri>http://www.blogger.com/profile/12823525541194838677</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-658693724588200643.post-4431387713757399735</id><published>2016-06-11T20:15:00.004-07:00</published><updated>2016-06-11T20:33:48.019-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".Net Framework interview questions and answers"/><title type='text'>.Net Framework interview questions and answers part2</title><summary type="text">

6. What is Common Language Specification (CLS)?

This is a subset of the CTS, which all .NET languages are expected to support. It was always a&amp;nbsp;dream of Microsoft to unite all different languages in to one umbrella and CLS is one-step&amp;nbsp;towards that. Microsoft has defined CLS, which are nothing but guidelines that language should follow so that it can communicate with other .NET </summary><link rel='replies' type='application/atom+xml' href='http://dotnetpeoples.blogspot.com/feeds/4431387713757399735/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetpeoples.blogspot.com/2016/06/net-framework-interview-questions-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/4431387713757399735'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/4431387713757399735'/><link rel='alternate' type='text/html' href='http://dotnetpeoples.blogspot.com/2016/06/net-framework-interview-questions-and.html' title='.Net Framework interview questions and answers part2'/><author><name>jatin</name><uri>http://www.blogger.com/profile/12823525541194838677</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-658693724588200643.post-7594747578990873426</id><published>2016-05-29T10:20:00.000-07:00</published><updated>2016-05-29T10:20:30.363-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codility"/><title type='text'>PermCheck Codility Solution in C#.Net</title><summary type="text">

PermCheck Codility Solution in C#.Net&amp;nbsp;









Check whether array A is a permutation.






Solution:


public static int PermCheck(int[] A)
        {
            int l = A.Length;
            int Result = 1;
            if (l == 0)
            {
                return Result = 1;
            }
            else
            {
                Array.Sort(A);
                for (int i = 0; </summary><link rel='replies' type='application/atom+xml' href='http://dotnetpeoples.blogspot.com/feeds/7594747578990873426/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetpeoples.blogspot.com/2016/05/permcheck-codility-solution-in-cnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/7594747578990873426'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/7594747578990873426'/><link rel='alternate' type='text/html' href='http://dotnetpeoples.blogspot.com/2016/05/permcheck-codility-solution-in-cnet.html' title='PermCheck Codility Solution in C#.Net'/><author><name>jatin</name><uri>http://www.blogger.com/profile/12823525541194838677</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPsLcIp54J4uGIzYx_cEuMM4pRxqzLf9gII506qg100SuT8PL4O0IqHLKUpBCdk6s5JLJbO9OJpxwhmDqbv4i_Ns9oseCq6o4lSpH91rZEPHhPOysk2do00SI15rGmkr62xIwa_mjLn4g/s72-c/Perm+Check.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-658693724588200643.post-2569350075687152890</id><published>2016-05-29T10:02:00.001-07:00</published><updated>2016-05-29T10:02:18.866-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codility"/><title type='text'>FrogRiverOne Codility C# solution</title><summary type="text">

FrogRiverOne Codility C# solution&amp;nbsp;

Find the earliest time when a frog can jump to the other side of a river.

Solution:

public static int FrogRiverOne(int X, int[] A)
        {
            bool[] leavesInPosition = new bool[X + 1];

            int occupiedPositions = 0;
            for (int i = 0; i &amp;lt; A.Length; i++)
            {
                int position = A[i];
                </summary><link rel='replies' type='application/atom+xml' href='http://dotnetpeoples.blogspot.com/feeds/2569350075687152890/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetpeoples.blogspot.com/2016/05/frogriverone-codility-c-solution.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/2569350075687152890'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/2569350075687152890'/><link rel='alternate' type='text/html' href='http://dotnetpeoples.blogspot.com/2016/05/frogriverone-codility-c-solution.html' title='FrogRiverOne Codility C# solution'/><author><name>jatin</name><uri>http://www.blogger.com/profile/12823525541194838677</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiM9WO2e1CowWRwAvCbuGqyK52fk6HWnwhUc_-z9jiTirUdkoeTCqLoOtAbXdMz0oppcHCIxOJ34hQ_y4OeTWOT47r-7nL7JdeIVln2qY8SHquSEhCVS5VgODWiCyK0u7WN1wjrSdRjeAQ/s72-c/FrogRiverOne.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-658693724588200643.post-4841556342709261185</id><published>2016-05-28T00:34:00.001-07:00</published><updated>2016-05-28T01:12:26.774-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codility"/><title type='text'>Codility PermMissingElem C# Solution</title><summary type="text">

Codility PermMissingElem C# Solution

Find the missing element in a given permutation.





Solution:


public static int MissingInt(int[] A)
        {
            if (A.Length != 0 &amp;amp;&amp;amp; A.Length == 1)
                return A[0] == 1 ? 2 : 1;
            else if (A.Length != 0 &amp;amp;&amp;amp; A.Length &amp;gt; 1)
            {
                Array.Sort(A);
                if (A[0] != 1)
</summary><link rel='replies' type='application/atom+xml' href='http://dotnetpeoples.blogspot.com/feeds/4841556342709261185/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetpeoples.blogspot.com/2016/05/codility-permmissingelem-c-solution.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/4841556342709261185'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/4841556342709261185'/><link rel='alternate' type='text/html' href='http://dotnetpeoples.blogspot.com/2016/05/codility-permmissingelem-c-solution.html' title='Codility PermMissingElem C# Solution'/><author><name>jatin</name><uri>http://www.blogger.com/profile/12823525541194838677</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTTYstkJi6IwH65hwUMOJHBMjx9EWMr92iltT2dmrhcofuN-YdA7tyOkkYMB8huzHTeXzK39G07ouKtWdK9cuNaa0MIlKdv4-gqLIhVhzeIGoVPB3_OYt3mp-0mb6of090FN1oVyTg3Tw/s72-c/PermMissingElement.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-658693724588200643.post-3782341046047383753</id><published>2016-05-20T08:25:00.000-07:00</published><updated>2016-05-21T00:54:57.557-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codility TapeEquilibrium Solution C#"/><title type='text'>Codility TapeEquilibrium Solution C#</title><summary type="text">


Codility TapeEquilibrium Solution C#&amp;nbsp;

Minimize the value |(A[0] + ... + A[P-1]) - (A[P] + ... + A[N-1])



Solution:




Here we need to add two namespaces,&amp;nbsp;



using System;

//
you can also use other imports, for example:

using System.Collections.Generic;
using System.Linq;





&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public int solution(int[] A)

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {</summary><link rel='replies' type='application/atom+xml' href='http://dotnetpeoples.blogspot.com/feeds/3782341046047383753/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetpeoples.blogspot.com/2016/05/codility-tapeequilibrium-solution-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/3782341046047383753'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/3782341046047383753'/><link rel='alternate' type='text/html' href='http://dotnetpeoples.blogspot.com/2016/05/codility-tapeequilibrium-solution-c.html' title='Codility TapeEquilibrium Solution C#'/><author><name>jatin</name><uri>http://www.blogger.com/profile/12823525541194838677</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiucZXNdgYRXOUXq7fbBLCHhCU9KZZEREQKcpSlWf6bjXUFMomTgee73ZcD5rnhbCNu3WLAT7uYE-ZhLpkcgsekfN2gwE8MysvUM3bArULxECrF3m_Sdh-wjiRvy78wibVP7WygVeiWqGc/s72-c/TapeEquilibrium.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-658693724588200643.post-5402381216934152080</id><published>2016-05-17T10:05:00.001-07:00</published><updated>2016-05-17T10:22:45.914-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codility"/><category scheme="http://www.blogger.com/atom/ns#" term="Codility FrogJmp Solution"/><title type='text'>Codility FrogJmp Solution C#</title><summary type="text">

Codility FrogJmp Solution C# - Count minimal number of jumps from position X to Y.



Solution:




public int solution(int X, int Y, int D)
        {
            int distance = Y - X;
            int div = (distance / D);
            int mod = (distance % D);
            if (mod != 0)
            {
                return div + 1;
            }
            else
            {
                </summary><link rel='replies' type='application/atom+xml' href='http://dotnetpeoples.blogspot.com/feeds/5402381216934152080/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetpeoples.blogspot.com/2016/05/codility-frogjmp-solution-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/5402381216934152080'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/5402381216934152080'/><link rel='alternate' type='text/html' href='http://dotnetpeoples.blogspot.com/2016/05/codility-frogjmp-solution-c.html' title='Codility FrogJmp Solution C#'/><author><name>jatin</name><uri>http://www.blogger.com/profile/12823525541194838677</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5pwAyI6xNFnzCkD58KOcnx_yW5PJQyun6DE5IUlssLftWFnFCk2135pFvz5qAEJdkhSUVEMP31XfqtbnOrHijzoHIHxbynj9mdEftzudIn6gewElOmdy9c8QTbHZVZxz7pS1tnOMZuIk/s72-c/FrogJum.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-658693724588200643.post-1756087435388176864</id><published>2016-05-15T10:59:00.003-07:00</published><updated>2016-05-20T07:03:56.913-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codility OddOccurrencesInArray Solution C#.Net"/><title type='text'>Codility Odd Occurrences In Array Solution C#.Net</title><summary type="text">

Codility Odd Occurrences In Array Solution C#.Net

[ Find value that occurs in odd number of elements.]

Solution:




public int solution(int[] A)

{

&amp;nbsp; &amp;nbsp;int unMatchNumber = A[0];

&amp;nbsp; &amp;nbsp;for (int i = 1; i &amp;lt; A.Length; i++)

&amp;nbsp; &amp;nbsp;{

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; unMatchNumber = unMatchNumber ^
A[i];

&amp;nbsp; &amp;nbsp;}

&amp;nbsp;return unMatchNumber;

}





And here goes, got</summary><link rel='replies' type='application/atom+xml' href='http://dotnetpeoples.blogspot.com/feeds/1756087435388176864/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetpeoples.blogspot.com/2016/05/codility-odd-occurrences-in-array.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/1756087435388176864'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/1756087435388176864'/><link rel='alternate' type='text/html' href='http://dotnetpeoples.blogspot.com/2016/05/codility-odd-occurrences-in-array.html' title='Codility Odd Occurrences In Array Solution C#.Net'/><author><name>jatin</name><uri>http://www.blogger.com/profile/12823525541194838677</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDv6YWIVwanI0__xPmrSFjFg4v0fMVAfF7aey_u85w6_TSJTFP6yowDySND-5b3oqVjFHsrE6YoydA0XqpiOMhPGuIgg7uAOHhe5xs0oztXBXoRu9Jq2gEvGzdNT9RUcrCiiQTql8e_Vw/s72-c/Odd+occurance+in+array.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-658693724588200643.post-6369533153170643921</id><published>2016-05-15T07:03:00.002-07:00</published><updated>2016-07-01T05:53:04.165-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codility"/><category scheme="http://www.blogger.com/atom/ns#" term="Codility Cyclic Rotation Solution C#"/><title type='text'>Codility Cyclic Rotation Solution C#</title><summary type="text">

Codility Cyclic Rotation Solution C#
Solution:&amp;nbsp;



public static int[] Solution(int[] A, int K)

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int l = A.Length;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int start = l - K;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int [] </summary><link rel='replies' type='application/atom+xml' href='http://dotnetpeoples.blogspot.com/feeds/6369533153170643921/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetpeoples.blogspot.com/2016/05/codility-cyclic-rotation-solution-c.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/6369533153170643921'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/6369533153170643921'/><link rel='alternate' type='text/html' href='http://dotnetpeoples.blogspot.com/2016/05/codility-cyclic-rotation-solution-c.html' title='Codility Cyclic Rotation Solution C#'/><author><name>jatin</name><uri>http://www.blogger.com/profile/12823525541194838677</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggfuVzOftHEGDYP5FDf8EVQHGj6MzqKKfnl3LwskVkZmTC3R2ra6u-YHv2RVS6bN1nqYGdrQzkKcNoKhB3unT3GgLOsHXu7z3dvCjoMTLe-ZcMWFc2xCYjDD9N8W7TVTxA1oa3VQ5-lN4/s72-c/Codility+Cyclic+Rotation.png" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-658693724588200643.post-2739699746837678762</id><published>2016-05-14T22:19:00.001-07:00</published><updated>2016-05-20T07:04:33.181-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Binary Gap"/><category scheme="http://www.blogger.com/atom/ns#" term="Codility"/><title type='text'>Codility binary gap solution C#</title><summary type="text">

Codility binary gap solution C#


Find
longest sequence of zeros in binary representation of an integer.

Solution:

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public int&amp;nbsp;GetBinaryGap(int N)

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string binaryValue = Convert.ToString(N, 2);



&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;int </summary><link rel='replies' type='application/atom+xml' href='http://dotnetpeoples.blogspot.com/feeds/2739699746837678762/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetpeoples.blogspot.com/2016/05/codility-binary-gap-solution-c.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/2739699746837678762'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/2739699746837678762'/><link rel='alternate' type='text/html' href='http://dotnetpeoples.blogspot.com/2016/05/codility-binary-gap-solution-c.html' title='Codility binary gap solution C#'/><author><name>jatin</name><uri>http://www.blogger.com/profile/12823525541194838677</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6q14E_YCl0ojTJhHNbqN5155wVtCPnbXIs4NMKKawci-qN_RP0ZpSHVX8zMBi-dHLqF6AbU3yfFhg_QKr51BnU_2nFAKQccseLUbJf5_VAFGFRhqtF-edNxMRXd48IiABzj6xoANKkjo/s72-c/Binary+Gap.png" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-658693724588200643.post-6949386883879382118</id><published>2016-05-08T11:36:00.002-07:00</published><updated>2016-07-06T06:25:08.577-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Common table expression"/><category scheme="http://www.blogger.com/atom/ns#" term="Group By"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL server"/><category scheme="http://www.blogger.com/atom/ns#" term="top 2 in group by for each group"/><title type='text'>How to get difference of top 2 records of each group in SQL Server order by date</title><summary type="text">
I went though today Codility&amp;nbsp;online&amp;nbsp;exam for one of the top investment banking client interview, and I found one interesting question on SQL as below,



Question:&amp;nbsp;

Get top 2 records of each group /category&amp;nbsp;in SQL Server, order by date and then get difference between them by category wise



In SQL Terms:

Retrieve difference between top 2 records of each group in sql server</summary><link rel='replies' type='application/atom+xml' href='http://dotnetpeoples.blogspot.com/feeds/6949386883879382118/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetpeoples.blogspot.com/2016/05/how-to-get-difference-of-top-2-records.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/6949386883879382118'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/6949386883879382118'/><link rel='alternate' type='text/html' href='http://dotnetpeoples.blogspot.com/2016/05/how-to-get-difference-of-top-2-records.html' title='How to get difference of top 2 records of each group in SQL Server order by date'/><author><name>jatin</name><uri>http://www.blogger.com/profile/12823525541194838677</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQX1YraWPtypx0tNDljiE-idflvd_m1A99gXaknGA9LNvMQEPmm1omz72buSfmu6G_7S3sxGMrm6m6l50VSePtB_td9rR9TOFJ_SuGsNfb67wQ0I4Ugg2VADWcQ2b63GLaza4Z8Y8Usx0/s72-c/SQL+1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-658693724588200643.post-6988696939706926158</id><published>2016-04-26T05:11:00.000-07:00</published><updated>2016-04-26T11:39:01.974-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Error Code 1175"/><category scheme="http://www.blogger.com/atom/ns#" term="My SQL"/><title type='text'>YOU ARE USING SAFE UPDATE MODE AND YOU TRIED TO UPDATE A TABLE WITHOUT A WHERE THAT USES A KEY COLUMN</title><summary type="text">

ERROR CODE 1175. TO DISABLE SAFE MODE, TOGGLE THE OPTIONS IN PREFERENCES --&amp;gt; SQL EDITOR --&amp;gt; QUERY EDITOR --&amp;gt; RECONNECT

You are Using&amp;nbsp;SAFE UPDATE MODE AND YOU TRIED TO UPDATE A TABLE WITHOUT A WHERE THAT USES A KEY COLUMN


One of my LinkedIn friend got above error while truncating table in MY-SQL, so i suggested er very simplest solution as below,

Ans&amp;nbsp;-

A. What is the </summary><link rel='replies' type='application/atom+xml' href='http://dotnetpeoples.blogspot.com/feeds/6988696939706926158/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetpeoples.blogspot.com/2016/04/you-are-using-safe-update-mode-and-you_26.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/6988696939706926158'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/658693724588200643/posts/default/6988696939706926158'/><link rel='alternate' type='text/html' href='http://dotnetpeoples.blogspot.com/2016/04/you-are-using-safe-update-mode-and-you_26.html' title='YOU ARE USING SAFE UPDATE MODE AND YOU TRIED TO UPDATE A TABLE WITHOUT A WHERE THAT USES A KEY COLUMN'/><author><name>jatin</name><uri>http://www.blogger.com/profile/12823525541194838677</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>