<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="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" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-3843182671842475347</atom:id><lastBuildDate>Wed, 23 Sep 2026 05:00:47 +0000</lastBuildDate><category>VisualBasic.NET</category><category>Training</category><category>.Net</category><category>c#</category><category>.NET Apps</category><category>Cplusplus-Programs</category><category>Difference Between Concepts</category><category>asp.net</category><category>jquery</category><category>StructuredQueryLanguage(SQL)</category><category>Mono</category><category>monoandroid</category><category>Comparison</category><category>Asp.net MVC</category><category>Cplusplus Programming Concepts</category><category>Csharp</category><category>google</category><category>sql</category><category>MVC</category><category>bootstrap</category><category>Android</category><category>Angularjs</category><category>Javascript</category><category>google maps</category><category>php</category><category>twitter-bootstrap</category><category>Algorithm</category><category>Dotnet</category><category>Json File</category><category>Json To Javascript</category><category>Mobile-Responsive</category><category>Mobile-friendly</category><category>Nopcommerce</category><category>Nopcommerce Tutorial</category><category>Read Json</category><category>Responsive Website</category><category>Tech News</category><category>The Internship</category><category>WindowsTroubleshoot</category><category>java</category><category>jquery ajax</category><category>json</category><category>sql server</category><category>webhooks</category><category>whatsapp</category><category>AMP</category><category>Ajax</category><category>Bower</category><category>Data Structure Programs</category><category>Entity Framework</category><category>Google-AMP</category><category>Json Parsing</category><category>Json Parsing Object Under Object</category><category>MVC4</category><category>Microsoft</category><category>Parse Json Object</category><category>TechNews</category><category>Value Types</category><category>asp</category><category>git</category><category>google maps error</category><category>grunt</category><category>gulp</category><category>gulp vs grunt</category><category>news</category><category>stored procedure in sql</category><category>webapi</category><category>webapi vs webhooks</category><category>Abstract Class</category><category>Abstract Class vs Interface</category><category>Amazon Echo</category><category>Amzon</category><category>Android N</category><category>Anglarjs</category><category>AppHarbor</category><category>Architecture Principles</category><category>Asp.net Core</category><category>Azure</category><category>Azure Logging</category><category>Azure Troubleshoot website</category><category>Azure Website</category><category>Boxing and Unboxing</category><category>C</category><category>C++</category><category>CLR</category><category>CTE in SQL</category><category>Cloud</category><category>Code Architecture</category><category>Code First</category><category>CodeIgniter</category><category>Codeigniter open_basedir_restriction in effect</category><category>Collections</category><category>Common Table Expressions in SQL</category><category>Contact Me</category><category>Convert Date Format</category><category>Crud In AngularJS</category><category>Crystal Reports</category><category>Database in AngularJS</category><category>Date Format Mssql</category><category>Domain Extension</category><category>EF</category><category>Ecommerce</category><category>Event StopPropagation</category><category>Features of Android N</category><category>Freedom 251</category><category>Freedom 251 Cash on delivery</category><category>Generic</category><category>Generic vs Collections</category><category>Google Drive</category><category>Google Drive Api</category><category>Google Earthquake Information</category><category>Google Maps Upgraded</category><category>Google Street Maps</category><category>HTTP ERROR 500</category><category>How AMP works</category><category>How Bootstrap Works</category><category>IIS Internal Server Error</category><category>IIS Troubleshooting</category><category>Interface</category><category>Jquery Full Calender Integrated With ASP.NET</category><category>Jquery News Feed in PHP</category><category>Jquery vs AngularJS</category><category>Jquery vs Javascript</category><category>Jquery vs Javascript vs Angularjs</category><category>Keep and Peek Methods</category><category>MVC5</category><category>Magic Mirror</category><category>Make In india</category><category>Medical ATM&#39;s</category><category>Method OverRiding</category><category>Method Overloading</category><category>Microsoft sql server</category><category>Microsoft.Reporting.WebForms.ReportViewer</category><category>Mixed Mode Assembly Sqlite Error</category><category>Mobile development</category><category>MonoDevelop</category><category>NPM</category><category>Namotel</category><category>Namotel failed</category><category>Namotel website crashed</category><category>Non-www to www asp.net</category><category>Nopcommerce Error</category><category>OOPS</category><category>Object Pooling</category><category>PHP News Feed</category><category>POCO</category><category>Parse Error</category><category>Progress Bar Jquery</category><category>RedirectToAction</category><category>Report viewer</category><category>Reporting</category><category>SEO</category><category>SOLID</category><category>Search Engine Optimization</category><category>Seo Tips</category><category>Solid Principles</category><category>Sql Server Date Format Error</category><category>Stored Procedure Vs Function</category><category>Tempdata</category><category>Tempdata vs Session</category><category>The Persuit Of Happyness</category><category>The cockroach theory for self development</category><category>Uncaught TypeError: undefined is not a function</category><category>Url Rewrite</category><category>Views Vs Stored Procedure</category><category>Views in sql</category><category>Volunteer Mangement System</category><category>Web Development Vs Web Designing</category><category>Webhooks Vs WebSockets</category><category>What is Bower</category><category>Why Bower</category><category>Why we need boxing and unboxing</category><category>aapt.exe is invalid</category><category>android-sdk</category><category>angulajs</category><category>apache</category><category>apache error</category><category>apache_get_modules</category><category>app</category><category>beforeonunload</category><category>bind vs on jquery</category><category>black money</category><category>bootstrap 3</category><category>call to undefined function</category><category>cockroach theory</category><category>cplusplus</category><category>creation</category><category>crystal reports in asp.net</category><category>css3</category><category>datepicker error</category><category>dbf to csv</category><category>dbf to sql</category><category>dialog box in android</category><category>dialog box in monoandroid</category><category>donet</category><category>dotnetnuke</category><category>error MSB6004</category><category>event propagation vs event preventdefault</category><category>first application in monodevelop</category><category>function in sql</category><category>functions in sql</category><category>getting started with mono</category><category>git cheatsheet</category><category>git commands</category><category>git vs gitless</category><category>github</category><category>gitless version control system</category><category>google and stack overflow</category><category>google cast</category><category>google chrome</category><category>google font</category><category>google maps plans</category><category>google married</category><category>google page Insight</category><category>google search</category><category>google smarty pins</category><category>google translate</category><category>having clause</category><category>html5</category><category>httpget vs jsonp</category><category>inline table valued vs multi statement table valued</category><category>innovation</category><category>inspiration</category><category>install monoandroid on windows in visual studio</category><category>install monodevelop on linux</category><category>installing jekyll</category><category>installing python</category><category>jekyll</category><category>jquery error</category><category>jquery not working</category><category>jsonp</category><category>leverage Browser Cache</category><category>map api key</category><category>maps api error</category><category>mobile compatible</category><category>mod rewrite error</category><category>mod_rewrite</category><category>motivation</category><category>mysql</category><category>opencart</category><category>owin</category><category>owin error</category><category>pattern programs</category><category>phpmysql</category><category>printable bootstrap</category><category>programmer using google</category><category>programmers</category><category>python</category><category>reference types</category><category>responsive</category><category>self development</category><category>signalr error</category><category>sql server for linux</category><category>sqlite connectivity error</category><category>stack overflow and programmers</category><category>star pattern</category><category>system.webserver vs system.web</category><category>table valued functions in sql</category><category>triggers</category><category>vb</category><category>visual studio for mac</category><category>visualstudio</category><category>web optimization</category><category>web-forms vs mvc</category><category>web.config</category><category>webforms</category><category>where clause</category><category>where vs having</category><category>why angularjs</category><category>xml parsing</category><category>₹1000 ₹500 banned</category><title>geeksprogrammings</title><description>Be The Geek</description><link>http://geeksprogrammings.blogspot.com/</link><managingEditor>noreply@blogger.com (Heemanshu Bhalla)</managingEditor><generator>Blogger</generator><openSearch:totalResults>185</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3843182671842475347.post-1956936138566623091</guid><pubDate>Thu, 30 Mar 2017 07:20:00 +0000</pubDate><atom:updated>2017-03-30T00:20:39.262-07:00</atom:updated><title>Facebook getuser returning 0 Active access token required</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h1 itemprop=&quot;name&quot; style=&quot;background-color: white; border: 0px; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 22px; line-height: 1.3; margin: 0px 0px 0.5em; padding: 0px;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;F&lt;span style=&quot;border-color: initial; border-image: initial; border-style: initial; cursor: pointer; font-size: 24px; font-weight: normal; line-height: 1.35; margin-bottom: 0.5em;&quot;&gt;acebook getuser returning 0 and An Active access token must be used to query information about the current user&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;div&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;border-color: initial; border-image: initial; border-style: initial; cursor: pointer; font-size: 24px; font-weight: normal; line-height: 1.35; margin-bottom: 0.5em;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-color: initial; border-image: initial; border-style: initial; cursor: pointer; font-size: 24px; font-weight: normal; line-height: 1.35; margin-bottom: 0.5em;&quot;&gt;If you are getting above error after March 25, 2017 then you &amp;nbsp;may be using Facebook API version - 2.2. The reason of this error is facebook api version - 2.2 was only available until March 25,2017. That means you need to upgrade to Another updated version of facebook api. I prefer you to use Facebook API version 2.7 or version 2.8 as they are available until October 2018.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-color: initial; border-image: initial; border-style: initial; cursor: pointer; font-size: 24px; font-weight: normal; line-height: 1.35; margin-bottom: 0.5em;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-color: initial; border-image: initial; border-style: initial; cursor: pointer; font-size: 24px; font-weight: normal; line-height: 1.35; margin-bottom: 0.5em;&quot;&gt;If you Use Facebook api version 2.3 it is only available until July 2017. Check below dates of all Facebook API versions -&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-color: initial; border-image: initial; border-style: initial; cursor: pointer; font-size: 24px; font-weight: normal; line-height: 1.35; margin-bottom: 0.5em;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUqok5-E-XmEnE9QAybHbf2l99xJWEAy3YasaseEDBGogkeoYIeyVzHUJHws4sY_Bkv5nUIhRLUGneFIpJtYVQQmG3_DRuao1NyjqudbK8gURbJqV1GOKmAQqgRrHN0Bg0uqjd40_MXF0/s1600/Facebook-APi-Version_dates.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Facebook API Version &amp;amp; Expiration Dates&quot; border=&quot;0&quot; height=&quot;411&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUqok5-E-XmEnE9QAybHbf2l99xJWEAy3YasaseEDBGogkeoYIeyVzHUJHws4sY_Bkv5nUIhRLUGneFIpJtYVQQmG3_DRuao1NyjqudbK8gURbJqV1GOKmAQqgRrHN0Bg0uqjd40_MXF0/s640/Facebook-APi-Version_dates.PNG&quot; title=&quot;Facebook API Version &amp;amp; Expiration Dates&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Facebook API Version &amp;amp; Expiration Dates ( Image Source Facebook Api Documentation )&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
&lt;span style=&quot;border-color: initial; border-image: initial; border-style: initial; cursor: pointer; font-size: 24px; font-weight: normal; line-height: 1.35; margin-bottom: 0.5em;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-color: initial; border-image: initial; border-style: initial; cursor: pointer; font-size: 24px; font-weight: normal; line-height: 1.35; margin-bottom: 0.5em;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Heemanshu Bhalla&lt;/div&gt;</description><link>http://geeksprogrammings.blogspot.com/2017/03/facebook-getuser-returning-0-active.html</link><author>noreply@blogger.com (Heemanshu Bhalla)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUqok5-E-XmEnE9QAybHbf2l99xJWEAy3YasaseEDBGogkeoYIeyVzHUJHws4sY_Bkv5nUIhRLUGneFIpJtYVQQmG3_DRuao1NyjqudbK8gURbJqV1GOKmAQqgRrHN0Bg0uqjd40_MXF0/s72-c/Facebook-APi-Version_dates.PNG" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3843182671842475347.post-5852077145177940630</guid><pubDate>Sun, 26 Mar 2017 16:14:00 +0000</pubDate><atom:updated>2017-03-26T09:14:51.171-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">beforeonunload</category><category domain="http://www.blogger.com/atom/ns#">jquery</category><title>How to call a function before leaving page - Jquery beforeonunload</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
Hi guys, Shraing Code Snippet for Calling a function before leaving page. It may be required for variety of purposes. you can use it to track statistics for user&#39;s leaving from a website page to record that page for bounce pages statistics from where user is leaving website mostly. this is just a simple example you can use it for variety of way.&lt;br /&gt;
&lt;br /&gt;
you can share in comments for which purpose you may require this type of code functionality.&lt;br /&gt;
&lt;br /&gt;
**Jquery Code Example -**&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; $(window).bind(&#39;beforeunload&#39;, function(){&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; Func_ToInsert_Record();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; Alert(&#39;Thanks And Bye!&#39;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; });&lt;br /&gt;
&lt;br /&gt;
**Javascript Code Example -**&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; // Anonymous function&lt;br /&gt;
&amp;nbsp; &amp;nbsp; window.onbeforeunload = function(event) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; var message = &#39;&#39;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; if (window.event) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; console.log(window.event);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; console.log(event.currentTarget.performance);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; console.log(event.currentTarget.performance.navigation);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; console.log(event.currentTarget.performance.navigation.type);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; event = event || window.event;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; event.preventDefault = true;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; event.cancelBubble = true;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; event.returnValue = message;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Heemanshu Bhalla&lt;/div&gt;</description><link>http://geeksprogrammings.blogspot.com/2017/03/how-to-call-function-before-leaving.html</link><author>noreply@blogger.com (Heemanshu Bhalla)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3843182671842475347.post-1911074897329962251</guid><pubDate>Wed, 07 Dec 2016 12:38:00 +0000</pubDate><atom:updated>2016-12-07T04:38:17.823-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Difference Between Concepts</category><category domain="http://www.blogger.com/atom/ns#">having clause</category><category domain="http://www.blogger.com/atom/ns#">where clause</category><category domain="http://www.blogger.com/atom/ns#">where vs having</category><title>Difference Between Where and Having Clause</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
The WHERE clause does not work with aggregates like SUM,Count etc.&lt;br /&gt;
&lt;br /&gt;
The SQL above will not work, because the where clause doesn’t work with aggregates – like sum, avg, max, etc.. Instead, what we will need to use is the having clause. The having clause was added to sql just so we could compare aggregates to other values – just how the ‘where’ clause can be used with non-aggregates. Now, the correct sql will look like this:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Many time i have seen code where Having and where clause are misused see Examples Below -&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;BAD SQL:&lt;/b&gt;&lt;br /&gt;
select employee, sum(bonus) from emp_bonus&lt;br /&gt;
group by employee where sum(bonus) &amp;gt; 1000;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;GOOD SQL:&lt;/b&gt;&lt;br /&gt;
select employee, sum(bonus) from emp_bonus&lt;br /&gt;
group by employee having sum(bonus) &amp;gt; 1000;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;Difference between having and where clause&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
So we can see that the difference between the having and where clause in sql is that the where clause can not be used with aggregates, but the having clause can. One way to think of it is that the having clause is an additional filter to the where clause.&lt;br /&gt;
&lt;br /&gt;
Sql Standard Theory says WHERE Clause restricts the result set before returning rows and HAVING restricts the result set after retrieving all records.That&#39;s why WHERE is faster as compared to Having and that&#39;s why having is not used more commonly or always as that of Having so it should used in circumstances where it is necessary to use having and nothing else is possible like as in case we are using aggregate functions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Heemanshu Bhalla&lt;/div&gt;</description><link>http://geeksprogrammings.blogspot.com/2016/12/difference-between-where-and-having.html</link><author>noreply@blogger.com (Heemanshu Bhalla)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3843182671842475347.post-8752558749613289315</guid><pubDate>Tue, 06 Dec 2016 12:34:00 +0000</pubDate><atom:updated>2016-12-06T04:34:44.430-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Non-www to www asp.net</category><category domain="http://www.blogger.com/atom/ns#">Url Rewrite</category><title>How To Redirect Non-www to www in Asp.net</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
Please Follow Below Set of Steps to Redirect Non-www To www for your domain in asp.net or asp classic Web Application : -&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
1. Open web.config file of your Web Application&lt;br /&gt;
2. Before Closing of &amp;lt;/system.webserver&amp;gt; Add below code in order to redirect your domain&lt;br /&gt;
&amp;nbsp; &amp;nbsp; from xyz.com to http://www.xyz.com for all pages of your website -&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;system.webServer&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;rewrite&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;rules&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;rule name=&quot;Redirect domain.com to www&quot; patternSyntax=&quot;ECMAScript&quot; stopProcessing=&quot;true&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;match url=&quot;.*&quot; /&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;conditions&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;add input=&quot;{HTTP_HOST}&quot; pattern=&quot;^xyz.com$&quot; /&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/conditions&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;action type=&quot;Redirect&quot; url=&quot;http://www.xyz.com/{R:0}&quot; /&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/rule&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;lt;/rules&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/rewrite&amp;gt;&lt;br /&gt;
&amp;lt;/system.webServer&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Save web.config file and Upload it to Hosting Server&lt;br /&gt;
4. Now every request to xy.com will be rewritten with http://www.xyz.com&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Heemanshu Bhalla&lt;/div&gt;</description><link>http://geeksprogrammings.blogspot.com/2016/12/how-to-redirect-non-www-to-www-in-aspnet.html</link><author>noreply@blogger.com (Heemanshu Bhalla)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3843182671842475347.post-1571245551561885994</guid><pubDate>Tue, 06 Dec 2016 12:24:00 +0000</pubDate><atom:updated>2016-12-06T04:24:56.524-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Difference Between Concepts</category><category domain="http://www.blogger.com/atom/ns#">system.webserver vs system.web</category><category domain="http://www.blogger.com/atom/ns#">web.config</category><title>Difference Between System.Web and System.WebServer</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
System.web is the settings section for IIS6 and the built in cassini server (the test server in Visual Studio 2010 and before where you are targeting asp.net 3.5 or lower)&lt;br /&gt;
&lt;br /&gt;
The system.webserver is a child of the configuration section that means in web.config file &amp;lt;system.webserver&amp;gt; tag is placed under&lt;br /&gt;
&amp;lt;configuration&amp;gt; Tag.&lt;br /&gt;
&lt;br /&gt;
System.WebServer Tag is contained in web.config file in root directory of website. This file contains &lt;b&gt;configuration that needs to be implemented on IIS&lt;/b&gt; for Current project. Configuration coded in &amp;lt;system.webserver&amp;gt; Tag are implemented on IIS and are only applied to Project or Webapplication to which corresponding web.config Belongs. This Tag Can Exist is one of below formats in your project&#39;s web.config file in root directory of Web Application.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Empty &amp;lt;system.webserver&amp;gt; Tag Under &amp;lt;configuration&amp;gt; Tag -&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;configuration&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;lt;system.webServer&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;lt;/system.webServer&amp;gt;&lt;br /&gt;
&amp;lt;/configuration&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The system.web section is used in web.config file of Asp.net WebApplications for defining Server Configuration that are applicable for IIS 6, while the system.webserver version is used to configure IIS 7.0. IIS 7.0 includes a new ASP.NET pipeline and some configuration differences. you can check complete details on link below -&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://msdn.microsoft.com/en-us/library/bb763179.aspx&quot;&gt;https://msdn.microsoft.com/en-us/library/bb763179.aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
System.webserver is the Server Configuration section for IIS 7 and above, and the build in IIS Express server which is used in Visual Studio 2010 targeting asp.net 4 and any newer versions that are released in the future.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Sample of Web.config file Contains Both &amp;lt;system.web&amp;gt; and &amp;lt;system.webserver&amp;gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?xml version=&quot;1.0&quot;?&amp;gt;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Note: As an alternative to hand editing this file you can use the&lt;br /&gt;
&amp;nbsp; &amp;nbsp; web admin tool to configure settings for your application. Use&lt;br /&gt;
&amp;nbsp; &amp;nbsp; the Website-&amp;gt;Asp.Net Configuration option in Visual Studio.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; A full list of settings and comments can be found in&lt;br /&gt;
&amp;nbsp; &amp;nbsp; machine.config.comments usually located in&lt;br /&gt;
&amp;nbsp; &amp;nbsp; \Windows\Microsoft.Net\Framework\v2.x\Config&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;configuration&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;appSettings&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;add key=&quot;username&quot; value=&quot;admin-heemanshu@564496&quot;/&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;add key=&quot;password&quot; value=&quot;@htennty50!334#&quot;/&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/appSettings&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;connectionStrings/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;system.web&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;!--&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Set compilation debug=&quot;true&quot; to insert debugging&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; symbols into the compiled page. Because this&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; affects performance, set this value to true only&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; during development.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Visual Basic options:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Set strict=&quot;true&quot; to disallow all data type conversions&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; where data loss can occur.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Set explicit=&quot;true&quot; to force declaration of all variables.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; --&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;compilation debug=&quot;true&quot; strict=&quot;false&quot; explicit=&quot;true&quot;/&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;pages&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;namespaces&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;clear/&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;add namespace=&quot;System&quot;/&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;add namespace=&quot;System.Collections&quot;/&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;add namespace=&quot;System.Collections.Specialized&quot;/&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;add namespace=&quot;System.Configuration&quot;/&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;add namespace=&quot;System.Text&quot;/&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;add namespace=&quot;System.Text.RegularExpressions&quot;/&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;add namespace=&quot;System.Web&quot;/&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;add namespace=&quot;System.Web.Caching&quot;/&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;add namespace=&quot;System.Web.SessionState&quot;/&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;add namespace=&quot;System.Web.Security&quot;/&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;add namespace=&quot;System.Web.Profile&quot;/&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;add namespace=&quot;System.Web.UI&quot;/&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;add namespace=&quot;System.Web.UI.WebControls&quot;/&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;add namespace=&quot;System.Web.UI.WebControls.WebParts&quot;/&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;add namespace=&quot;System.Web.UI.HtmlControls&quot;/&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;/namespaces&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/pages&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;!--&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The &amp;lt;authentication&amp;gt; section enables configuration&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; of the security authentication mode used by&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ASP.NET to identify an incoming user.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;authentication mode=&quot;Windows&quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;!--&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The &amp;lt;customErrors&amp;gt; section enables configuration&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; of what to do if/when an unhandled error occurs&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; during the execution of a request. Specifically,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; it enables developers to configure html error pages&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; to be displayed in place of a error stack trace.--&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;customErrors mode=&quot;Off&quot; defaultRedirect=&quot;GenericErrorPage.htm&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;error statusCode=&quot;404&quot; redirect=&quot;FileNotFound.htm&quot;/&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/customErrors&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/system.web&amp;gt;&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;system.webServer&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;rewrite&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;rules&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;rule name=&quot;Redirect&quot; patternSyntax=&quot;ECMAScript&quot; stopProcessing=&quot;true&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;match url=&quot;.*&quot; /&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;conditions&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;add input=&quot;{HTTP_HOST}&quot; pattern=&quot;^xyz.com$&quot; /&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/conditions&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;action type=&quot;Redirect&quot; url=&quot;http://www.xyz.com/{R:0}&quot; /&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/rule&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/rules&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/rewrite&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/system.webServer&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/configuration&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Heemanshu Bhalla&lt;/div&gt;</description><link>http://geeksprogrammings.blogspot.com/2016/12/difference-between-systemweb-and.html</link><author>noreply@blogger.com (Heemanshu Bhalla)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3843182671842475347.post-7328790486879391866</guid><pubDate>Thu, 17 Nov 2016 13:03:00 +0000</pubDate><atom:updated>2016-11-17T05:03:21.502-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Common Table Expressions in SQL</category><category domain="http://www.blogger.com/atom/ns#">CTE in SQL</category><category domain="http://www.blogger.com/atom/ns#">sql</category><title>what are CTE? When and Why To Use CTE in SQL ?</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;What are CTE in SQL ?&lt;/b&gt;&lt;/h3&gt;
CTE are Common Table Expressions first introduced in Sql Server 2005. It is basically a result set or result holder or separate plugin / extension that can hold some complex query separately from main query and supply the named result set or result holder name in place of that complex query in main query.&lt;br /&gt;
&lt;br /&gt;
It really improves complexity of complex queries. It is specially used in queries that contains complex sub-queries in them. Using them makes our query more concise, improves readability of query and makes it easy for maintainable for long time for future use.&lt;br /&gt;
&lt;br /&gt;
CTE always start with Semicolon preceeded by &#39;with&#39; keyword and CTE are temporary result holders and are removed form memory after query executed its life is only during query is executing.&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;When To Use CTE&amp;nbsp;&lt;/b&gt;&lt;/h3&gt;
CTE is helpful to be used in Below two Conditions -&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&amp;nbsp;In order to reduce complexity of query with complex subqueries that will make code easy to read and maintain.&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;Very helpful to create Recursive query if required in some cases.&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;br /&gt;
you can read more about recursive queries with CTE on link below -&lt;br /&gt;
&lt;a href=&quot;https://technet.microsoft.com/en-us/library/ms186243(v=sql.105).aspx&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;Read More About How To Use Recursive Query With CTE&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Why We use ; ( Semicolon ) in start of CTE&lt;/b&gt;&lt;/h3&gt;
It is actually to ensure previous statement before with / CTE are terminated. Most of times&lt;br /&gt;
we use semicolon before with keyword in CTE as we don&#39;t know what is before CTE.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Example&lt;/b&gt; - Without semicolon may create problem in below code in some StoredProcedure&lt;br /&gt;
&lt;br /&gt;
DECLARE @foo int&lt;br /&gt;
WITH OrderedOrders AS&lt;br /&gt;
(&lt;br /&gt;
&amp;nbsp; &amp;nbsp; SELECT SalesOrderID, OrderDate from Orders;&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
Above query will create error in Stored Procedure as DECLARE @foo int is not ended with&lt;br /&gt;
semicolon and CTE&#39;s with keyword is not ended with ; ( Semicolon ). Better way will &amp;nbsp;to write this query in stored procedure or anywhere is below -&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DECLARE @foo int&lt;br /&gt;
;WITH OrderedOrders AS&lt;br /&gt;
(&lt;br /&gt;
&amp;nbsp; &amp;nbsp; SELECT SalesOrderID, OrderDate from Orders;&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
Now in this case semicolon before WITH Keyword will terminate previous statement first and then execute CTE&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Heemanshu Bhalla&lt;/div&gt;</description><link>http://geeksprogrammings.blogspot.com/2016/11/what-are-cte-when-and-why-to-use-cte-in.html</link><author>noreply@blogger.com (Heemanshu Bhalla)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3843182671842475347.post-238845254730326486</guid><pubDate>Thu, 17 Nov 2016 11:34:00 +0000</pubDate><atom:updated>2016-11-17T03:34:46.861-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">functions in sql</category><category domain="http://www.blogger.com/atom/ns#">inline table valued vs multi statement table valued</category><category domain="http://www.blogger.com/atom/ns#">sql</category><category domain="http://www.blogger.com/atom/ns#">table valued functions in sql</category><title>Table Valued Functions in Sql</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;What are Table Valued Functions in Sql ?&lt;/b&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
There are two types of “User Defined” fucntions in sql server&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;scalar function ( that returns single value in response to function call )&lt;/li&gt;
&lt;/ol&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;2. inline table valued ( that returns function result in tabulated form but query can single lined e.g. &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;3. return (select * from table_name). &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1. Inline Table Valued Functions&lt;/b&gt;&lt;br /&gt;
If function is made to execute a select query with or without parameters and return result as table type it comes in category of Inline table valued functions.&lt;br /&gt;
&lt;ol&gt;
&lt;/ol&gt;
&lt;b&gt;Sql Code Example -&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;
&lt;/code&gt;
&lt;br /&gt;
CREATE FUNCTION GetAuthorsByState( @state char(2) )&lt;br /&gt; RETURNS table AS&lt;br /&gt; RETURN (SELECT au_fname, au_lname FROM Authors WHERE state=@state)&lt;br /&gt; GO&lt;br /&gt;

&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;2. Multi-statement table valued Functions&lt;/b&gt;&lt;br /&gt;
Multi-statement table valued that returns function result in tabulated form but query may have multiple statements that can make changes to query and return the tabulated data. &lt;br /&gt;
&lt;br /&gt;
If functions is made to execute multiple sql statements including insert, update statements etc and return result as table type then it comes in category of Multistatement table valued functions&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;Example&lt;/b&gt;&lt;br /&gt;
&lt;ol&gt;
&lt;/ol&gt;
CREATE FUNCTION GetAuthorsByState( @state char(2) )&lt;br /&gt;RETURNS&lt;br /&gt;@AuthorsByState table (&lt;br /&gt;au_id Varchar(11),&lt;br /&gt;au_fname Varchar(20)&lt;br /&gt;)&lt;br /&gt;AS&lt;br /&gt;BEGIN&lt;br /&gt;INSERT INTO @AuthorsByState&lt;br /&gt;SELECT au_id,au_fname FROM Authors WHERE state = @state&lt;br /&gt;IF @@ROWCOUNT = 0&lt;br /&gt;BEGIN&lt;br /&gt;INSERT INTO @AuthorsByState VALUES (&#39;&#39;,&#39;No Authors Found&#39;)&lt;br /&gt;END&lt;br /&gt;RETURN&lt;br /&gt;END&lt;br /&gt;GO&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Heemanshu Bhalla&lt;/div&gt;</description><link>http://geeksprogrammings.blogspot.com/2016/11/table-valued-functions-in-sql.html</link><author>noreply@blogger.com (Heemanshu Bhalla)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3843182671842475347.post-5338977927071266799</guid><pubDate>Thu, 17 Nov 2016 06:37:00 +0000</pubDate><atom:updated>2016-11-16T22:37:36.384-08:00</atom:updated><title>Google Joined .NET Foundation</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
Its great news by microsoft that google joined .net foundation. Recently Samsung also joined .Net foundation for Tizen platform. Apart from everything its great that all tech companies are working collectively to make good environment for innovation.&lt;br /&gt;
&lt;br /&gt;
This Move of Big companies also gives inspiration to many developers working in different technologies to come and work together in a team. They have shown an example of working in a team that will empower and motivate many others in future and present.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkbAUPIoANviYtsvKF9YSZbRv8lBSYWZEbxDB6Yg5lYyDFN2FQcbi5TCiCqqJDzdkGE5AmALCis2UIXJQa2BGlDTtVFKtV-OoKweRnunlt2DOufb5xHXdV2d-VbWOJg_-V0NooqLxmv9o/s1600/Google-Dot-Net-Foundation.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;168&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkbAUPIoANviYtsvKF9YSZbRv8lBSYWZEbxDB6Yg5lYyDFN2FQcbi5TCiCqqJDzdkGE5AmALCis2UIXJQa2BGlDTtVFKtV-OoKweRnunlt2DOufb5xHXdV2d-VbWOJg_-V0NooqLxmv9o/s320/Google-Dot-Net-Foundation.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span id=&quot;goog_1990204576&quot;&gt;&lt;/span&gt;&lt;span id=&quot;goog_1990204577&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Google is now a member of the .NET Foundation, where it joins the likes of Red Hat, Unity, Samsung &amp;nbsp;Jet-brains and (of course) Microsoft in the Technical Steering Group.&lt;br /&gt;
&lt;br /&gt;
Google already allows developers on its Cloud Platform to deploy .NET applications&lt;br /&gt;
&lt;br /&gt;
Samsung, too, is deepening its commitment to .NET by launching support for it on its Tizen platform. As Samsung’s Hong-Seok Kim told me, Samsung was looking for a framework in addition to the web framework and C API that Tizen developers currently use to write their applications.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Heemanshu Bhalla&lt;/div&gt;</description><link>http://geeksprogrammings.blogspot.com/2016/11/google-joined-net-foundation.html</link><author>noreply@blogger.com (Heemanshu Bhalla)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkbAUPIoANviYtsvKF9YSZbRv8lBSYWZEbxDB6Yg5lYyDFN2FQcbi5TCiCqqJDzdkGE5AmALCis2UIXJQa2BGlDTtVFKtV-OoKweRnunlt2DOufb5xHXdV2d-VbWOJg_-V0NooqLxmv9o/s72-c/Google-Dot-Net-Foundation.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3843182671842475347.post-2076717681593776283</guid><pubDate>Thu, 17 Nov 2016 06:30:00 +0000</pubDate><atom:updated>2016-11-16T22:41:20.786-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Microsoft sql server</category><category domain="http://www.blogger.com/atom/ns#">news</category><category domain="http://www.blogger.com/atom/ns#">sql server for linux</category><category domain="http://www.blogger.com/atom/ns#">TechNews</category><title>SQL Server Public Preview available on Ubuntu</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhN4gtLxAbJlVO1W7_UugUsoYdIerj7rZL88KMNWQprUpUIqifcaVW5mAeNl46fRODZTdHCeb4ZtSjpyfsQdEwFBmoIGGzHObZVW43sv5_nTDoL5pHx9oIezv5jBzueKuoKVzEmjQuc1iI/s1600/SQL-Loves-Linux_2_Twitter-002-640x358.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhN4gtLxAbJlVO1W7_UugUsoYdIerj7rZL88KMNWQprUpUIqifcaVW5mAeNl46fRODZTdHCeb4ZtSjpyfsQdEwFBmoIGGzHObZVW43sv5_nTDoL5pHx9oIezv5jBzueKuoKVzEmjQuc1iI/s320/SQL-Loves-Linux_2_Twitter-002-640x358.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Microsoft has just announced its public preview of the next release of SQL Server, and Canonical is delighted to announce that this preview is available for Ubuntu.&lt;br /&gt;
&lt;br /&gt;
Moreover, with SQL Server on Ubuntu, there are significant cost savings, performance improvements, and the ability to scale &amp;amp; deploy additional storage and compute resources easier without adding more hardware.&lt;br /&gt;
&lt;br /&gt;
Read Complete Details Here - &lt;br /&gt;
&lt;br /&gt;
Full Article details&amp;nbsp;&lt;b&gt;&lt;a href=&quot;https://insights.ubuntu.com/2016/11/16/microsoft-loves-linux-ubuntu-available-on-sql-server-public-preview/&quot; target=&quot;_blank&quot;&gt;Sql Server Public Preview Available on Ubuntu&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;a href=&quot;http://www.sqlserveronlinux.com/&quot; target=&quot;_blank&quot;&gt;Download Sql Server on Linux&amp;nbsp;&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Heemanshu Bhalla&lt;/div&gt;</description><link>http://geeksprogrammings.blogspot.com/2016/11/sql-server-public-preview-available-on.html</link><author>noreply@blogger.com (Heemanshu Bhalla)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhN4gtLxAbJlVO1W7_UugUsoYdIerj7rZL88KMNWQprUpUIqifcaVW5mAeNl46fRODZTdHCeb4ZtSjpyfsQdEwFBmoIGGzHObZVW43sv5_nTDoL5pHx9oIezv5jBzueKuoKVzEmjQuc1iI/s72-c/SQL-Loves-Linux_2_Twitter-002-640x358.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3843182671842475347.post-4865589901926763149</guid><pubDate>Thu, 17 Nov 2016 06:27:00 +0000</pubDate><atom:updated>2016-11-16T22:38:22.222-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Microsoft</category><category domain="http://www.blogger.com/atom/ns#">news</category><category domain="http://www.blogger.com/atom/ns#">TechNews</category><category domain="http://www.blogger.com/atom/ns#">visual studio for mac</category><category domain="http://www.blogger.com/atom/ns#">visualstudio</category><title>Visual studio for mac is released</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8deI1PkmoWjLaOtP5cazwYBCUuQFM1EcOyDVlhMlv556BB4All61vp7m4ETWeuEPRZKdz1vT1u5BYQ3wE-n63nfU5K5uZTV1C3OFkqy6N8GnRKNVmGz_X3Kapm5v5yfbRgPfNQksAc9I/s1600/visual_studio_purple-930x462.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;158&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8deI1PkmoWjLaOtP5cazwYBCUuQFM1EcOyDVlhMlv556BB4All61vp7m4ETWeuEPRZKdz1vT1u5BYQ3wE-n63nfU5K5uZTV1C3OFkqy6N8GnRKNVmGz_X3Kapm5v5yfbRgPfNQksAc9I/s320/visual_studio_purple-930x462.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Very Nice Move from microsoft and cheers for Mac Users. Microsoft launched Visual studio preview for Mac .you can enjoy using dotnet development on mac platform now. Microsoft released Visual Studio for Mac it is currently in preview and still work is in progress for several tools. check download link below -&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;a href=&quot;https://www.visualstudio.com/visual-studio-pre-release-downloads/&quot; target=&quot;_blank&quot;&gt;Download Visual Studio Preview For Mac &lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Heemanshu Bhalla&lt;/div&gt;</description><link>http://geeksprogrammings.blogspot.com/2016/11/visual-studio-for-mac-is-released.html</link><author>noreply@blogger.com (Heemanshu Bhalla)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8deI1PkmoWjLaOtP5cazwYBCUuQFM1EcOyDVlhMlv556BB4All61vp7m4ETWeuEPRZKdz1vT1u5BYQ3wE-n63nfU5K5uZTV1C3OFkqy6N8GnRKNVmGz_X3Kapm5v5yfbRgPfNQksAc9I/s72-c/visual_studio_purple-930x462.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3843182671842475347.post-1911800344448219620</guid><pubDate>Wed, 09 Nov 2016 07:00:00 +0000</pubDate><atom:updated>2016-11-08T23:00:12.249-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">owin</category><category domain="http://www.blogger.com/atom/ns#">owin error</category><category domain="http://www.blogger.com/atom/ns#">signalr error</category><title>No assembly found containing an OwinStartupAttribute</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
The Common scenario that one of student got&amp;nbsp;was during creating signalr project from empty web project. so i would like to spread it online with others. you may have see Error Screen as shown in below Screenshots -&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;Error : No assembly found containing an OwinStartupAttribute.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;No assembly found containing a Startup or [AssemblyName].Starup class.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvH-Ui76FZus2fwkU2RoyAygm_yiw3Dv-bOaJHXdLFOn0vz_T-y0VeoAECEY6cu9KlmZbpqtXkCaHBH9VFk-0N2WOBhEFLHzV-Ju6NHzAqp2CzIFu_mHDDeFovLQNAo5biM5fBasXfG0E/s1600/signarl2.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;105&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvH-Ui76FZus2fwkU2RoyAygm_yiw3Dv-bOaJHXdLFOn0vz_T-y0VeoAECEY6cu9KlmZbpqtXkCaHBH9VFk-0N2WOBhEFLHzV-Ju6NHzAqp2CzIFu_mHDDeFovLQNAo5biM5fBasXfG0E/s640/signarl2.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzK0P_CREE-TRMnRMIZFMvx6y_QOWYQhTYEQvsTaJmzKFWvuHGtJGNSKmkMazKbwX_TvVc5lon0ns6KTKn3tuONc_1pI34pqdQj6YGPCQGqbrXmZN9NBhO1tJh7gHhdQ13UjUtPp4pmrY/s1600/signarl+error.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;278&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzK0P_CREE-TRMnRMIZFMvx6y_QOWYQhTYEQvsTaJmzKFWvuHGtJGNSKmkMazKbwX_TvVc5lon0ns6KTKn3tuONc_1pI34pqdQj6YGPCQGqbrXmZN9NBhO1tJh7gHhdQ13UjUtPp4pmrY/s640/signarl+error.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;No Assembly found containing an OwinStartupAttribute Error&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;b&gt;Solution For error&lt;/b&gt; : Simple straightforward solution is to Add Below code ( as shown in below screenshot ) in web.config under &amp;lt;configuration&amp;gt; tag as shown in image below. you error will be &lt;br /&gt;
gone&lt;br /&gt;
&lt;br /&gt;
line of Code to Add is written below and also shown written in Screenshot below&lt;br /&gt;
&lt;br /&gt;
&amp;lt;appSettings&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;add key=&quot;owin:AutomaticAppStartup&quot; value=&quot;false&quot; /&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;lt;/appSettings&amp;gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4RcmkJca2EDVAY-dklrG4d_uKt0FluTEq4eSSlP23ub9YnVud3YMaQOYv-S7h5jugzU0HK045q8AMvc2y3nsjlG8M_OwVbqG1c-DDe33PWAKs17-pI53MLsGmG4gY5ndyEF7hdmlPvAQ/s1600/error+signarel.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;190&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4RcmkJca2EDVAY-dklrG4d_uKt0FluTEq4eSSlP23ub9YnVud3YMaQOYv-S7h5jugzU0HK045q8AMvc2y3nsjlG8M_OwVbqG1c-DDe33PWAKs17-pI53MLsGmG4gY5ndyEF7hdmlPvAQ/s640/error+signarel.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Heemanshu Bhalla&lt;/div&gt;</description><link>http://geeksprogrammings.blogspot.com/2016/11/no-assembly-found-containing-owin-startup-attribute.html</link><author>noreply@blogger.com (Heemanshu Bhalla)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvH-Ui76FZus2fwkU2RoyAygm_yiw3Dv-bOaJHXdLFOn0vz_T-y0VeoAECEY6cu9KlmZbpqtXkCaHBH9VFk-0N2WOBhEFLHzV-Ju6NHzAqp2CzIFu_mHDDeFovLQNAo5biM5fBasXfG0E/s72-c/signarl2.PNG" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3843182671842475347.post-6359003646252141324</guid><pubDate>Wed, 09 Nov 2016 05:59:00 +0000</pubDate><atom:updated>2016-11-08T22:07:05.321-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">black money</category><category domain="http://www.blogger.com/atom/ns#">₹1000 ₹500 banned</category><title>₹500 and ₹100 Notes Banned In India : 25 Points You need to know</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
&lt;strong style=&quot;margin: 0px; outline: 0px; padding: 0px;&quot;&gt;&lt;br /&gt;&lt;/strong&gt;
&lt;span style=&quot;margin: 0px; outline: 0px; padding: 0px;&quot;&gt;NDA Government has implemented smart move as slap to Black Money holders. Money of Black Money Holders will be of no cost if they kept it in their safe lockers. GPS chip based notes will be out in market soon and old notes must need to be deposited in banks as announced by Government of India. Black money holders must need to take their money out in banks otherwise they will be of now use.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;margin: 0px; outline: 0px; padding: 0px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;margin: 0px; outline: 0px; padding: 0px;&quot;&gt;A Smart move By Government of India to out take thousands of crores of money from Black Money Holders in banks and charge them Taxes.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;margin: 0px; outline: 0px; padding: 0px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe width=&quot;320&quot; height=&quot;266&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/uWKJWgsFzq4/0.jpg&quot; src=&quot;https://www.youtube.com/embed/uWKJWgsFzq4?feature=player_embedded&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;span style=&quot;margin: 0px; outline: 0px; padding: 0px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
&lt;strong style=&quot;margin: 0px; outline: 0px; padding: 0px;&quot;&gt;1) Why is this scheme?&lt;/strong&gt;&lt;br /&gt;
The incidence of fake Indian currency notes in higher denomination has increased. For ordinary persons, the fake notes look similar to genuine notes, even though no security feature has been copied. The fake notes are used for antinational and illegal activities. High denomination notes have been misused by terrorists and for hoarding black money. India remains a cash based economy hence the circulation of Fake Indian Currency Notes continues to be a menace. In order to contain the rising incidence of fake notes and black money, the scheme to withdraw has been introduced.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;wp-caption alignleft&quot; id=&quot;attachment_2341366&quot; style=&quot;color: #333333; float: left; font-family: Georgia, arial; font-size: 16px; margin: 0px 10px 0px 0px; outline: 0px; padding: 0px; position: relative; width: 390px;&quot;&gt;
&lt;div class=&quot;wp-caption-text&quot; style=&quot;background-attachment: scroll; background-clip: initial; background-image: url(&amp;quot;https://s1.firstpost.in/wp-content/themes/firstpost2.0/images/trans_bg.png&amp;quot;); background-origin: initial; background-position: 0px 0px; background-repeat: repeat; background-size: initial; bottom: 0px; color: white; font-family: &amp;quot;Lucida Grande&amp;quot;, sans-serif; font-size: 14px; font-stretch: normal; height: auto; left: 0px; line-height: 20px; outline: 0px; padding: 5px 10px; position: absolute; width: 370px;&quot;&gt;
&lt;strong style=&quot;color: #333333; font-family: georgia, arial; font-size: 16px; margin: 0px; outline: 0px; padding: 0px;&quot;&gt;2) What is this scheme?&lt;/strong&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
The legal tender character of the notes in denominations of ₹ 500 and ₹ 1000 stands withdrawn. In consequence thereof withdrawn old high denomination (OHD) notes cannot be used for transacting business and/or store of value for future usage. The OHD notes can be exchanged for value at any of the 19 offices of the Reserve Bank of India or at any of the bank branches or at any Head Post Office or Sub-Post Office.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
&lt;strong style=&quot;margin: 0px; outline: 0px; padding: 0px;&quot;&gt;3) How much value will I get?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
You will get value for the entire volume of notes tendered at the bank branches / RBI offices.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
&lt;strong style=&quot;margin: 0px; outline: 0px; padding: 0px;&quot;&gt;4) Can I get all in cash?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
No. You will get upto ₹4000 per person in cash irrespective of the size of tender and anything over and above that will be receivable by way of credit to bank account.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
&lt;strong style=&quot;margin: 0px; outline: 0px; padding: 0px;&quot;&gt;5) Why I cannot get the entire amount in cash when I have surrendered everything in cash?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
The Scheme of withdrawal of old high denomination(OHD) notes does not provide for it, given its objectives.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
&lt;strong style=&quot;margin: 0px; outline: 0px; padding: 0px;&quot;&gt;6) ₹4000 cash is insufficient for my need. What to do?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
You can use balances in bank accounts to pay for other requirements by cheque or through electronic means of payments such as Internet banking, mobile wallets, IMPS, credit/debit cards etc.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
&lt;strong style=&quot;margin: 0px; outline: 0px; padding: 0px;&quot;&gt;7) What if I don’t have any bank account?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
You can always open a bank account by approaching a bank branch with necessary documents required for fulfilling the KYC requirements.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
&lt;strong style=&quot;margin: 0px; outline: 0px; padding: 0px;&quot;&gt;8) What if, if I have only JDY account?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
A JDY account holder can avail the exchange facility subject to the caps and other laid down limits in accord with norms and procedures.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
&lt;strong style=&quot;margin: 0px; outline: 0px; padding: 0px;&quot;&gt;9) Where can I go to exchange the notes?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
The exchange facility is available at all Issue Offices of RBI and branches of commercial banks/RRBS/UCBs/State Co-op banks or at any Head Post Office or Sub-Post Office.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
&lt;strong style=&quot;margin: 0px; outline: 0px; padding: 0px;&quot;&gt;10) Need I go to my bank branch only?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
For exchange upto 4000 in cash you may go to any bank branch with valid identity proof. For exchange over 4000, which will be accorded through credit to Bank account only, you may go to the branch where you have an account or to any other branch of the same bank.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
In case you want to go to a branch of any other bank where you are not maintaining an account, you will have to furnish valid identity proof and bank account details required for electronic fund transfer to your account.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
&lt;strong style=&quot;margin: 0px; outline: 0px; padding: 0px;&quot;&gt;11) Can I go to any branch of my bank?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
Yes you can go to any branch of your bank.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
&lt;strong style=&quot;margin: 0px; outline: 0px; padding: 0px;&quot;&gt;12) Can I go to any branch of any other bank?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
Yes, you can go to any branch of any other bank. In that case you have to furnish valid identity proof for exchange in cash; both valid identity proof and bank account details will be required for electronic fund transfer in case the amount to be exchanged exceeds ₹4000.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
&lt;strong style=&quot;margin: 0px; outline: 0px; padding: 0px;&quot;&gt;13) I have no account but my relative / friend has an account, can I get my notes exchanged into that account?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
Yes, you can do that if the account holder relative/friend etc gives you permission in writing. While exchanging, you should provide to the bank, evidence of permission given by the account holder and your valid identity proof.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
&lt;strong style=&quot;margin: 0px; outline: 0px; padding: 0px;&quot;&gt;14) Should I go to bank personally or can I send the notes through my representative?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
Personal visit to the branch is preferable. In case it is not possible for you to visit the branch you may send your representative with an express mandate i.e. a written authorisation. The representative should produce authority letter and his / her valid identity proof while tendering the notes.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
&lt;strong style=&quot;margin: 0px; outline: 0px; padding: 0px;&quot;&gt;15) Can I withdraw from ATM?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
It may take a while for the banks to recalibrate their ATMs. Once the ATMs are functional, you can withdraw from ATMs upto a maximum of ₹2,000/- per card per day upto 18th November, 2016. The limit will be raised to ₹4000/- per day per card from 19th November 2016 onwards.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
&lt;strong style=&quot;margin: 0px; outline: 0px; padding: 0px;&quot;&gt;16) Can I withdraw cash against cheque?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
Yes, you can withdraw cash against withdrawal slip or cheque subject to ceiling of ₹10,000/- in a day within an overall limit of ₹20,000/- in a week (including withdrawals from ATMs) for the first fortnight i.e. upto 24th November 2016.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
&lt;strong style=&quot;margin: 0px; outline: 0px; padding: 0px;&quot;&gt;17) Can I deposit withdrawn notes through ATMs, Cash Deposit Machine or cash Recycler?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
Yes, OHD notes can be deposited in Cash Deposits machines / Cash Recyclers.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
&lt;strong style=&quot;margin: 0px; outline: 0px; padding: 0px;&quot;&gt;18) Can I make use of electronic (NEFT/RTGS /IMPS/ Internet Banking / Mobile banking etc.) mode?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
You can use NEFT/RTGS/IMPS/Internet Banking/Mobile Banking or any other electronic/ non-cash mode of payment.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
&lt;strong style=&quot;margin: 0px; outline: 0px; padding: 0px;&quot;&gt;19) How much time do I have to exchange the notes?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
The scheme closes on 30th December 2016. The OHD banknotes can be exchanged at branches of commercial banks, Regional Rural Banks, Urban Cooperative banks, State Cooperative Banks and RBI till 30th December 2016.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
For those who are unable to exchange their Old High Denomination Banknotes on or before December 30, 2016, an opportunity will be given to them to do so at specified offices of the RBI, along with necessary documentation as may be specified by the Reserve Bank of India.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
&lt;strong style=&quot;margin: 0px; outline: 0px; padding: 0px;&quot;&gt;20) I am right now not in India, what should I do?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
If you have OHD banknotes in India, you may authorise in writing enabling another person in India to deposit the notes into your bank account. The person so authorised has to come to the bank branch with the OHD banknotes, the authority letter given by you and a valid identity proof (Valid Identity proof is any of the following: Aadhaar Card, Driving License, Voter ID Card, Pass Port, NREGA Card, PAN Card, Identity Card Issued by Government Department, Public Sector Unit to its Staff)&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
&lt;strong style=&quot;margin: 0px; outline: 0px; padding: 0px;&quot;&gt;21) I am an NRI and hold&amp;nbsp;&lt;a class=&quot;auto-link&quot; href=&quot;http://www.firstpost.com/topic/event/national-reconciliation-ordinance-profile-91721.html&quot; style=&quot;color: #3399cc; margin: 0px; outline: 0px !important; padding: 0px; text-decoration: none;&quot; target=&quot;_self&quot; title=&quot;NRO&quot;&gt;NRO&lt;/a&gt;&amp;nbsp;account, can the exchange value be deposited in my account?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
Yes, you can deposit the OHD banknotes to your&amp;nbsp;&lt;a class=&quot;auto-link&quot; href=&quot;http://www.firstpost.com/topic/event/national-reconciliation-ordinance-profile-91721.html&quot; style=&quot;color: #3399cc; margin: 0px; outline: 0px !important; padding: 0px; text-decoration: none;&quot; target=&quot;_self&quot; title=&quot;NRO&quot;&gt;NRO&lt;/a&gt;&amp;nbsp;account.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
&lt;strong style=&quot;margin: 0px; outline: 0px; padding: 0px;&quot;&gt;22) I am a foreign tourist, I have these notes. What should I do?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
You can purchase foreign exchange equivalent to ₹5000 using these OHD notes at airport exchange counters within 72 hours after the notification, provided you present proof of purchasing the OHD notes.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
&lt;strong style=&quot;margin: 0px; outline: 0px; padding: 0px;&quot;&gt;23) I have emergency needs of cash (hospitalisation, travel, life saving medicines) then what I should do?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
You can use the OHD notes for paying for your hospitalisation charges at government hospitals, for purchasing bus tickets at government bus stands for travel by state government or state PSU buses, train tickets at railway stations, and air tickets at airports, within 72 hours after the notification.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
&lt;strong style=&quot;margin: 0px; outline: 0px; padding: 0px;&quot;&gt;24) What is proof of identity?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
Valid Identity proof is any of the following: Aadhaar Card, Driving License, Voter ID Card, Pass Port, NREGA Card, PAN Card, Identity Card Issued by Government Department, Public Sector Unit to its Staff.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
&lt;strong style=&quot;margin: 0px; outline: 0px; padding: 0px;&quot;&gt;25) Where can I get more information on this scheme?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Georgia, arial; font-size: 16px; outline: 0px; padding: 0px 0px 15px;&quot;&gt;
Further information is available at our website (www.rbi.org.in) and GoI website (www.rbi.org.in).&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Heemanshu Bhalla&lt;/div&gt;</description><link>http://geeksprogrammings.blogspot.com/2016/11/500-and-100-notes-banned-in-india-25.html</link><author>noreply@blogger.com (Heemanshu Bhalla)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/uWKJWgsFzq4/default.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3843182671842475347.post-7477468217607852811</guid><pubDate>Wed, 02 Nov 2016 06:36:00 +0000</pubDate><atom:updated>2016-11-01T23:36:29.584-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">mysql</category><category domain="http://www.blogger.com/atom/ns#">sql</category><category domain="http://www.blogger.com/atom/ns#">sql server</category><category domain="http://www.blogger.com/atom/ns#">triggers</category><title>What are Instead of Triggers</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
Instead of triggers are used to reverse the default action of the query same as the word ‘insted of’ denotes. For example if we are going to execute query to delete record  in Empoyee table and we want to first check whether id of employee passed Exist in database or not then we can place a “Insted of Trigger” in database on Delete Operation for that particular table and we will place code in trigger to first check whether employee with specified id exist in db . IF yes then delete that employe , otherwise abort the query execution. &lt;br /&gt;
&lt;br /&gt;
In general language we use instead of triggers when we need to code - instead of doing xyz do abc . means we need to trigger the selection of operations in db depending on Values in database tables or other certain criteria. &lt;br /&gt;
&lt;br /&gt;
INSTEAD OF TRIGGERS can be classified further into three types as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;INSTEAD OF INSERT Trigger.&lt;/li&gt;
&lt;li&gt;INSTEAD OF UPDATE Trigger.&lt;/li&gt;
&lt;li&gt;INSTEAD OF DELETE Trigger.&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;b&gt;EXAMPLE&lt;/b&gt;&lt;br /&gt;
Below trigger will prevent the deletion of records from the table where Emp_Sal &amp;gt; 1200. If such a record is deleted, the Instead Of Trigger will rollback the transaction, otherwise the transaction will be committed. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;CREATE TRIGGER trgInsteadOfDelete ON [dbo].[Employee_Test] 
INSTEAD OF DELETE
AS
 declare @emp_id int;
 declare @emp_name varchar(100);
 declare @emp_sal int;
 
 select @emp_id=d.Emp_ID from deleted d;
 select @emp_name=d.Emp_Name from deleted d;
 select @emp_sal=d.Emp_Sal from deleted d;

 BEGIN
  if(@emp_sal&amp;gt;1200)
  begin
   RAISERROR(&#39;Cannot delete where salary &amp;gt; 1200&#39;,16,1);
   ROLLBACK;
  end
  else
  begin
   delete from Employee_Test where Emp_ID=@emp_id;
   COMMIT;
   insert into Employee_Test_Audit(Emp_ID,Emp_Name,Emp_Sal,Audit_Action,Audit_Timestamp)
   values(@emp_id,@emp_name,@emp_sal,&#39;Deleted -- Instead Of Delete Trigger.&#39;,getdate());
   PRINT &#39;Record Deleted -- Instead Of Delete Trigger.&#39;
  end
 END
GO&lt;/pre&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Heemanshu Bhalla&lt;/div&gt;</description><link>http://geeksprogrammings.blogspot.com/2016/11/what-are-instead-of-triggers.html</link><author>noreply@blogger.com (Heemanshu Bhalla)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3843182671842475347.post-6168167636394415371</guid><pubDate>Thu, 06 Oct 2016 11:36:00 +0000</pubDate><atom:updated>2016-10-06T04:36:37.488-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">webhooks</category><category domain="http://www.blogger.com/atom/ns#">Webhooks Vs WebSockets</category><title>Webhooks Vs WebSockets</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
WebSockets Can be used to exchange event notifications but it requires a constact network connection . Signalr is best example of Websockets that can be used within an Asp.net application&lt;br /&gt;
&lt;br /&gt;
Whereas WebHooks are for event notification across other web applications and other external services. It is similar to b2b communication.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Example&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
You can receive a WebHook when someone sends you money to your PayPal account. PayPal fires off a POST request to your predefined URL handler and then your app does something with that notification. You pre-configure everything on the PayPal side first. You also set up an application to handle the incoming POST request. The event notification is &quot;pushed&quot; to you in (near) real-time. No need to hold open a network connection while waiting for events.&lt;br /&gt;
&lt;br /&gt;
The two can be complementary. For example, when you receive the WebHook from PayPal, you can notify a logged in user on your webapp (using SignalR/WebSockets) that money has been received successfully.&lt;br /&gt;
&lt;br /&gt;
We Will Be Updating Articles With More Information Soon .....&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Heemanshu Bhalla&lt;/div&gt;</description><link>http://geeksprogrammings.blogspot.com/2016/10/webhooks-vs-websockets.html</link><author>noreply@blogger.com (Heemanshu Bhalla)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3843182671842475347.post-8407319762688480205</guid><pubDate>Thu, 06 Oct 2016 08:49:00 +0000</pubDate><atom:updated>2016-10-06T04:38:02.041-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">webapi</category><category domain="http://www.blogger.com/atom/ns#">webapi vs webhooks</category><category domain="http://www.blogger.com/atom/ns#">webhooks</category><title>What are Webhooks and Webhooks vs WebAPI ?</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&amp;nbsp;If you ever used API’s then you know they follow request - response mechanism . Every Request is followed by a Relevant API Response&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Example 1&lt;/b&gt; - &amp;nbsp;if we need to fetch our emails we will make a Reques to API with required credentials like Emailid, MessageCount and userid and API will give our Emails in Response to Source From where Request Came&lt;br /&gt;
&lt;br /&gt;
Whereas As &lt;b&gt;Webhooks works little different &lt;/b&gt;Sometime they are Called as &#39;Reverse APIs&#39; Webhooks Skips this request part there is no need to give any request to them they are set to give you response data without knocking them&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Best example&lt;/b&gt; will be Notification System Used by several Applications Like - Twilio, Dropbox for Giving Notifications to your System&lt;br /&gt;
Webhooks don’t require a request to be sent to give response they are set and programmed to provide details , messages , Notifications whenever available&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Example 2&lt;/b&gt;&lt;br /&gt;
You can receive a WebHook when someone sends you money to your PayPal account. PayPal fires off a POST request to your predefined URL handler and then your app does something with that notification. You pre-configure everything on the PayPal side first. You also set up an application to handle the incoming POST request. The event notification is &quot;pushed&quot; to you in (near) real-time. No need to hold open a network connection while waiting for events.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;For Using webhook,&lt;/b&gt; you need to register with the company providing the service by providing URL that will be your website url. That URL is a place in your application that will receive the data from that webhooks such notification messages and do something with it such as saving them to db and notifying to user . In some cases, you can tell the provider the situations when you’d like to receive data. Whenever there’s something new, the webhook will send it to your URL.&lt;br /&gt;
&lt;br /&gt;
we will continue to Adding More details to Post Soon ....&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Heemanshu Bhalla&lt;/div&gt;</description><link>http://geeksprogrammings.blogspot.com/2016/10/what-are-webhooks-and-webhooks-vs-webapi_6.html</link><author>noreply@blogger.com (Heemanshu Bhalla)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3843182671842475347.post-7511464992989647467</guid><pubDate>Thu, 06 Oct 2016 08:49:00 +0000</pubDate><atom:updated>2016-10-06T04:37:27.952-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">webapi</category><category domain="http://www.blogger.com/atom/ns#">webapi vs webhooks</category><category domain="http://www.blogger.com/atom/ns#">webhooks</category><title>What are Webhooks and Webhooks vs WebAPI ?</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&amp;nbsp;If you ever used API’s then you know they follow request - response mechanism . Every Request is followed by a Relevant API Response&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Example 1&lt;/b&gt; - &amp;nbsp;if we need to fetch our emails we will make a Reques to API with required credentials like Emailid, MessageCount and userid and API will give our Emails in Response to Source From where Request Came&lt;br /&gt;
&lt;br /&gt;
Whereas As &lt;b&gt;Webhooks works little different &lt;/b&gt;Sometime they are Called as &#39;Reverse APIs&#39; Webhooks Skips this request part there is no need to give any request to them they are set to give you response data without knocking them&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Best example&lt;/b&gt; will be Notification System Used by several Applications Like - Twilio, Dropbox for Giving Notifications to your System&lt;br /&gt;
Webhooks don’t require a request to be sent to give response they are set and programmed to provide details , messages , Notifications whenever available&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Example 2&lt;/b&gt;&lt;br /&gt;
You can receive a WebHook when someone sends you money to your PayPal account. PayPal fires off a POST request to your predefined URL handler and then your app does something with that notification. You pre-configure everything on the PayPal side first. You also set up an application to handle the incoming POST request. The event notification is &quot;pushed&quot; to you in (near) real-time. No need to hold open a network connection while waiting for events.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;For Using webhook,&lt;/b&gt; you need to register with the company providing the service by providing URL that will be your website url. That URL is a place in your application that will receive the data from that webhooks such notification messages and do something with it such as saving them to db and notifying to user . In some cases, you can tell the provider the situations when you’d like to receive data. Whenever there’s something new, the webhook will send it to your URL.&lt;br /&gt;
&lt;br /&gt;
I will continue to Adding More details to Post Soon ....&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Heemanshu Bhalla&lt;/div&gt;</description><link>http://geeksprogrammings.blogspot.com/2016/10/what-are-webhooks-and-webhooks-vs-webapi.html</link><author>noreply@blogger.com (Heemanshu Bhalla)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3843182671842475347.post-4932724681533964164</guid><pubDate>Tue, 04 Oct 2016 23:02:00 +0000</pubDate><atom:updated>2016-10-04T16:02:20.258-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">git</category><category domain="http://www.blogger.com/atom/ns#">git vs gitless</category><category domain="http://www.blogger.com/atom/ns#">gitless version control system</category><title>Gitless version control system</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-size: 14px; letter-spacing: 0.28px;&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;Gitless is an experimental version control system built on top of Git. Many people complain that Git is hard to use. We think the problem lies deeper than the user interface, in the concepts underlying Git. Gitless is an experiment to see what happens if you put a simple veneer on an app that changes the underlying concepts. Because Gitless is implemented on top of Git (could be considered what Git pros call a &quot;porcelain&quot; of Git), you can always fall back on Git. And of course your coworkers you share a repo with need never know that you&#39;re not a Git aficionado.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-size: 14px; letter-spacing: 0.28px;&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;h1 style=&quot;border: 0px; color: #333333; font-family: &amp;quot;Droid Sans&amp;quot;, Arial, Helvetica, sans-serif; font-size: 1.4em; font-style: inherit; font-weight: bold; letter-spacing: -0.03em; line-height: 2em; margin: 0px 0px 0.5em; outline: 0px; padding: 0px;&quot;&gt;
Gitless Set of Commands&lt;/h1&gt;
&lt;ul style=&quot;-webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Droid Serif&amp;quot;, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: normal; letter-spacing: 0.02em; line-height: 1.5em; list-style: disc outside; margin: 0px 0px 1em 3em; orphans: 2; outline: 0px; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin: 0px 0px 5px; outline: 0px; padding: 0px 0px 0px 0.25em;&quot;&gt;&lt;code style=&quot;border: 0px; color: #333333; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 0.9em; font-style: inherit; font-weight: normal; letter-spacing: 0.02em; line-height: 1.5em; margin: 0px; outline: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;http://gitless.com/#gl-init&quot; style=&quot;border: 0px; color: #00aa00; font-family: inherit; font-size: 12.6px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;&quot;&gt;gl init&lt;/a&gt;&lt;/code&gt;&amp;nbsp;- create an empty repo or create one from an existing remote repo&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin: 0px 0px 5px; outline: 0px; padding: 0px 0px 0px 0.25em;&quot;&gt;&lt;code style=&quot;border: 0px; color: #333333; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 0.9em; font-style: inherit; font-weight: normal; letter-spacing: 0.02em; line-height: 1.5em; margin: 0px; outline: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;http://gitless.com/#gl-status&quot; style=&quot;border: 0px; color: #00aa00; font-family: inherit; font-size: 12.6px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;&quot;&gt;gl status&lt;/a&gt;&lt;/code&gt;&amp;nbsp;- show status of the repo&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin: 0px 0px 5px; outline: 0px; padding: 0px 0px 0px 0.25em;&quot;&gt;&lt;code style=&quot;border: 0px; color: #333333; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 0.9em; font-style: inherit; font-weight: normal; letter-spacing: 0.02em; line-height: 1.5em; margin: 0px; outline: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;http://gitless.com/#gl-track&quot; style=&quot;border: 0px; color: #00aa00; font-family: inherit; font-size: 12.6px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;&quot;&gt;gl track&lt;/a&gt;&lt;/code&gt;&amp;nbsp;- start tracking changes to files&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin: 0px 0px 5px; outline: 0px; padding: 0px 0px 0px 0.25em;&quot;&gt;&lt;code style=&quot;border: 0px; color: #333333; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 0.9em; font-style: inherit; font-weight: normal; letter-spacing: 0.02em; line-height: 1.5em; margin: 0px; outline: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;http://gitless.com/#gl-untrack&quot; style=&quot;border: 0px; color: #00aa00; font-family: inherit; font-size: 12.6px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;&quot;&gt;gl untrack&lt;/a&gt;&lt;/code&gt;&amp;nbsp;- stop tracking changes to files&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin: 0px 0px 5px; outline: 0px; padding: 0px 0px 0px 0.25em;&quot;&gt;&lt;code style=&quot;border: 0px; color: #333333; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 0.9em; font-style: inherit; font-weight: normal; letter-spacing: 0.02em; line-height: 1.5em; margin: 0px; outline: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;http://gitless.com/#gl-diff&quot; style=&quot;border: 0px; color: #00aa00; font-family: inherit; font-size: 12.6px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;&quot;&gt;gl diff&lt;/a&gt;&lt;/code&gt;&amp;nbsp;- show changes to files&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin: 0px 0px 5px; outline: 0px; padding: 0px 0px 0px 0.25em;&quot;&gt;&lt;code style=&quot;border: 0px; color: #333333; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 0.9em; font-style: inherit; font-weight: normal; letter-spacing: 0.02em; line-height: 1.5em; margin: 0px; outline: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;http://gitless.com/#gl-commit&quot; style=&quot;border: 0px; color: #00aa00; font-family: inherit; font-size: 12.6px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;&quot;&gt;gl commit&lt;/a&gt;&lt;/code&gt;&amp;nbsp;- record changes in the local repo&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin: 0px 0px 5px; outline: 0px; padding: 0px 0px 0px 0.25em;&quot;&gt;&lt;code style=&quot;border: 0px; color: #333333; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 0.9em; font-style: inherit; font-weight: normal; letter-spacing: 0.02em; line-height: 1.5em; margin: 0px; outline: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;http://gitless.com/#gl-checkout&quot; style=&quot;border: 0px; color: #00aa00; font-family: inherit; font-size: 12.6px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;&quot;&gt;gl checkout&lt;/a&gt;&lt;/code&gt;&amp;nbsp;- checkout committed versions of files&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin: 0px 0px 5px; outline: 0px; padding: 0px 0px 0px 0.25em;&quot;&gt;&lt;code style=&quot;border: 0px; color: #333333; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 0.9em; font-style: inherit; font-weight: normal; letter-spacing: 0.02em; line-height: 1.5em; margin: 0px; outline: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;http://gitless.com/#gl-history&quot; style=&quot;border: 0px; color: #00aa00; font-family: inherit; font-size: 12.6px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;&quot;&gt;gl history&lt;/a&gt;&lt;/code&gt;&amp;nbsp;- show commit history&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin: 0px 0px 5px; outline: 0px; padding: 0px 0px 0px 0.25em;&quot;&gt;&lt;code style=&quot;border: 0px; color: #333333; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 0.9em; font-style: inherit; font-weight: normal; letter-spacing: 0.02em; line-height: 1.5em; margin: 0px; outline: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;http://gitless.com/#gl-branch&quot; style=&quot;border: 0px; color: #00aa00; font-family: inherit; font-size: 12.6px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;&quot;&gt;gl branch&lt;/a&gt;&lt;/code&gt;&amp;nbsp;- list, create, edit or delete branches&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin: 0px 0px 5px; outline: 0px; padding: 0px 0px 0px 0.25em;&quot;&gt;&lt;code style=&quot;border: 0px; color: #333333; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 0.9em; font-style: inherit; font-weight: normal; letter-spacing: 0.02em; line-height: 1.5em; margin: 0px; outline: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;http://gitless.com/#gl-switch&quot; style=&quot;border: 0px; color: #00aa00; font-family: inherit; font-size: 12.6px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;&quot;&gt;gl switch&lt;/a&gt;&lt;/code&gt;&amp;nbsp;- switch branches&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin: 0px 0px 5px; outline: 0px; padding: 0px 0px 0px 0.25em;&quot;&gt;&lt;code style=&quot;border: 0px; color: #333333; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 0.9em; font-style: inherit; font-weight: normal; letter-spacing: 0.02em; line-height: 1.5em; margin: 0px; outline: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;http://gitless.com/#gl-tag&quot; style=&quot;border: 0px; color: #00aa00; font-family: inherit; font-size: 12.6px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;&quot;&gt;gl tag&lt;/a&gt;&lt;/code&gt;&amp;nbsp;- list, create, or delete tags&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin: 0px 0px 5px; outline: 0px; padding: 0px 0px 0px 0.25em;&quot;&gt;&lt;code style=&quot;border: 0px; color: #333333; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 0.9em; font-style: inherit; font-weight: normal; letter-spacing: 0.02em; line-height: 1.5em; margin: 0px; outline: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;http://gitless.com/#gl-merge&quot; style=&quot;border: 0px; color: #00aa00; font-family: inherit; font-size: 12.6px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;&quot;&gt;gl merge&lt;/a&gt;&lt;/code&gt;&amp;nbsp;- merge the divergent changes of one branch onto another&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin: 0px 0px 5px; outline: 0px; padding: 0px 0px 0px 0.25em;&quot;&gt;&lt;code style=&quot;border: 0px; color: #333333; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 0.9em; font-style: inherit; font-weight: normal; letter-spacing: 0.02em; line-height: 1.5em; margin: 0px; outline: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;http://gitless.com/#gl-fuse&quot; style=&quot;border: 0px; color: #00aa00; font-family: inherit; font-size: 12.6px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;&quot;&gt;gl fuse&lt;/a&gt;&lt;/code&gt;&amp;nbsp;- fuse the divergent changes of one branch onto another&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin: 0px 0px 5px; outline: 0px; padding: 0px 0px 0px 0.25em;&quot;&gt;&lt;code style=&quot;border: 0px; color: #333333; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 0.9em; font-style: inherit; font-weight: normal; letter-spacing: 0.02em; line-height: 1.5em; margin: 0px; outline: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;http://gitless.com/#gl-resolve&quot; style=&quot;border: 0px; color: #00aa00; font-family: inherit; font-size: 12.6px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;&quot;&gt;gl resolve&lt;/a&gt;&lt;/code&gt;&amp;nbsp;- mark files with conflicts as resolved&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin: 0px 0px 5px; outline: 0px; padding: 0px 0px 0px 0.25em;&quot;&gt;&lt;code style=&quot;border: 0px; color: #333333; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 0.9em; font-style: inherit; font-weight: normal; letter-spacing: 0.02em; line-height: 1.5em; margin: 0px; outline: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;http://gitless.com/#gl-publish&quot; style=&quot;border: 0px; color: #00aa00; font-family: inherit; font-size: 12.6px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;&quot;&gt;gl publish&lt;/a&gt;&lt;/code&gt;&amp;nbsp;- publish commits upstream&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin: 0px 0px 5px; outline: 0px; padding: 0px 0px 0px 0.25em;&quot;&gt;&lt;code style=&quot;border: 0px; color: #333333; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 0.9em; font-style: inherit; font-weight: normal; letter-spacing: 0.02em; line-height: 1.5em; margin: 0px; outline: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;http://gitless.com/#gl-remote&quot; style=&quot;border: 0px; color: #00aa00; font-family: inherit; font-size: 12.6px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;&quot;&gt;gl remote&lt;/a&gt;&lt;/code&gt;&amp;nbsp;- list, create, edit or delete remote&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;repository&quot; style=&quot;background-color: white; border: 0px; color: #1475a2; font-family: &amp;quot;Droid Serif&amp;quot;, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 14px; letter-spacing: 1px; margin: 0px; outline: 0px; padding: 0px;&quot;&gt;&lt;h3 style=&quot;border: 0px; color: #333333; font-family: &amp;quot;Droid Sans&amp;quot;, Arial, Helvetica, sans-serif; font-size: 1em; font-style: inherit; letter-spacing: -0.03em; line-height: 2.45em; margin: 0px 0px 0.5em; outline: 0px; padding: 0px;&quot;&gt;
Creating a Repository&lt;/h3&gt;
&lt;/a&gt;&lt;span style=&quot;background-color: white; color: #323232; font-family: &amp;quot;Droid Serif&amp;quot;, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 14px; letter-spacing: 1px;&quot;&gt;&lt;/span&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Droid Serif&amp;quot;, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 14px; letter-spacing: 0.02em; line-height: 1.5em; margin-bottom: 1.5em; outline: 0px; padding: 0px;&quot;&gt;
Say you are in directory&amp;nbsp;&lt;code style=&quot;border: 0px; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 0.9em; font-style: inherit; letter-spacing: 0.02em; line-height: 1.5em; margin: 0px; outline: 0px; padding: 0px;&quot;&gt;foo&lt;/code&gt;&amp;nbsp;and you want turn it into a repository. You do this with the&lt;code style=&quot;border: 0px; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 0.9em; font-style: inherit; letter-spacing: 0.02em; line-height: 1.5em; margin: 0px; outline: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;gl-init&quot; style=&quot;border: 0px; color: #1475a2; font-family: inherit; font-size: 12.6px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px;&quot;&gt;gl init&lt;/a&gt;&lt;/code&gt;&amp;nbsp;command. This transforms the current working directory into an empty repository and you are now ready to start saving changes to files in&amp;nbsp;&lt;code style=&quot;border: 0px; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 0.9em; font-style: inherit; letter-spacing: 0.02em; line-height: 1.5em; margin: 0px; outline: 0px; padding: 0px;&quot;&gt;foo&lt;/code&gt;:&lt;/div&gt;
&lt;div class=&quot;code&quot; style=&quot;background-color: rgba(0, 0, 0, 0.8); border: 1px solid rgba(0, 0, 0, 0.8); box-shadow: rgba(0, 0, 0, 0.498039) 0px 0px 4px; color: #323232; font-family: &amp;quot;Droid Serif&amp;quot;, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 14px; letter-spacing: 1px; margin: 0px 0px 1.5em; outline: 0px; padding: 0px;&quot;&gt;
&lt;pre style=&quot;border: 0px; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 0.9em; font-style: inherit; font-weight: inherit; margin-bottom: 10px; margin-left: 10px; margin-top: 10px; outline: 0px; padding: 0px; word-wrap: break-word;&quot;&gt;&lt;code style=&quot;border: 0px; color: white; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 0.9em; font-style: inherit; letter-spacing: 0.02em; line-height: 1.5em; margin: 0px; outline: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;shell&quot; style=&quot;border: 0px; color: #1475a2; font-family: inherit; font-size: 11.34px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px;&quot;&gt;$&lt;/span&gt; mkdir foo
&lt;span class=&quot;shell&quot; style=&quot;border: 0px; color: #1475a2; font-family: inherit; font-size: 11.34px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px;&quot;&gt;$&lt;/span&gt; cd foo/
&lt;span class=&quot;shell&quot; style=&quot;border: 0px; color: #1475a2; font-family: inherit; font-size: 11.34px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px;&quot;&gt;$&lt;/span&gt; gl init
&lt;span class=&quot;ansi-green&quot; style=&quot;border: 0px; color: teal; font-family: inherit; font-size: 11.34px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px;&quot;&gt;✔ Local repo created in /MyFiles/foo&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Droid Serif&amp;quot;, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 14px; letter-spacing: 0.02em; line-height: 1.5em; margin-bottom: 1.5em; outline: 0px; padding: 0px;&quot;&gt;
In most cases there&#39;s already some existing repository you want to work on instead of starting with an empty repository. To make a local clone of a remote repository you can pass the URL of the repository as input to the same&amp;nbsp;&lt;code style=&quot;border: 0px; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 0.9em; font-style: inherit; letter-spacing: 0.02em; line-height: 1.5em; margin: 0px; outline: 0px; padding: 0px;&quot;&gt;gl init&lt;/code&gt;&amp;nbsp;command:&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #333333; font-family: &amp;quot;Droid Serif&amp;quot;, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 14px; letter-spacing: 0.02em; line-height: 1.5em; margin-bottom: 1.5em; outline: 0px; padding: 0px;&quot;&gt;
&lt;span style=&quot;background-color: #999999;&quot;&gt;&lt;span class=&quot;shell&quot; style=&quot;border: 0px; color: #1475a2; font-family: inherit; font-size: 11.34px; font-style: inherit; font-weight: inherit; letter-spacing: 0.2268px; margin: 0px; outline: 0px; padding: 0px; white-space: pre;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: white; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 11.34px; letter-spacing: 0.2268px; white-space: pre;&quot;&gt; mkdir experiment
&lt;/span&gt;&lt;span class=&quot;shell&quot; style=&quot;border: 0px; color: #1475a2; font-family: inherit; font-size: 11.34px; font-style: inherit; font-weight: inherit; letter-spacing: 0.2268px; margin: 0px; outline: 0px; padding: 0px; white-space: pre;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: white; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 11.34px; letter-spacing: 0.2268px; white-space: pre;&quot;&gt; cd experiment/
&lt;/span&gt;&lt;span class=&quot;shell&quot; style=&quot;border: 0px; color: #1475a2; font-family: inherit; font-size: 11.34px; font-style: inherit; font-weight: inherit; letter-spacing: 0.2268px; margin: 0px; outline: 0px; padding: 0px; white-space: pre;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: white; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 11.34px; letter-spacing: 0.2268px; white-space: pre;&quot;&gt; gl init https://github.com/spderosso/experiment
&lt;/span&gt;&lt;span class=&quot;ansi-green&quot; style=&quot;border: 0px; color: teal; font-family: inherit; font-size: 11.34px; font-style: inherit; font-weight: inherit; letter-spacing: 0.2268px; margin: 0px; outline: 0px; padding: 0px; white-space: pre;&quot;&gt;✔ Local repo created in /MyFiles/foo&lt;/span&gt;&lt;span style=&quot;color: white; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 11.34px; letter-spacing: 0.2268px; white-space: pre;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;ansi-green&quot; style=&quot;border: 0px; color: teal; font-family: inherit; font-size: 11.34px; font-style: inherit; font-weight: inherit; letter-spacing: 0.2268px; margin: 0px; outline: 0px; padding: 0px; white-space: pre;&quot;&gt;✔ Initialized from remote https://github.com/spderosso/experiment&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; font-family: &amp;quot;Droid Serif&amp;quot;, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 14px; letter-spacing: 0.02em; line-height: 1.5em; margin-bottom: 1.5em; outline: 0px; padding: 0px;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #333333;&quot;&gt;Complete Documentation Guide&lt;/span&gt;&lt;/b&gt;&lt;a href=&quot;http://gitless.com/#documentation&quot; style=&quot;color: #333333; letter-spacing: 0.28px;&quot;&gt;http://gitless.com/#documentation&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; line-height: 1.5em; margin-bottom: 1.5em; outline: 0px; padding: 0px;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Droid Serif, Times New Roman, Times, serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; letter-spacing: 0.28px;&quot;&gt;&lt;b&gt;Gitless Vs Git&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://gitless.com/#vs&quot; style=&quot;font-family: &amp;quot;Droid Serif&amp;quot;, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 14px; letter-spacing: 0.28px;&quot;&gt;http://gitless.com/#vs&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; line-height: 1.5em; margin-bottom: 1.5em; outline: 0px; padding: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Heemanshu Bhalla&lt;/div&gt;</description><link>http://geeksprogrammings.blogspot.com/2016/10/gitless-version-control-system.html</link><author>noreply@blogger.com (Heemanshu Bhalla)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3843182671842475347.post-8282159945480463859</guid><pubDate>Tue, 04 Oct 2016 22:45:00 +0000</pubDate><atom:updated>2016-10-04T15:45:41.219-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">git</category><category domain="http://www.blogger.com/atom/ns#">git cheatsheet</category><category domain="http://www.blogger.com/atom/ns#">git commands</category><category domain="http://www.blogger.com/atom/ns#">github</category><title>Git Cheatsheet</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
Git is the open source distributed version control system that allows to perform GitHub activities on your desktop. This cheat sheet summarizes commonly used Git command line instructions for quick reference.&lt;br /&gt;
&lt;br /&gt;
&lt;h1 style=&quot;border-bottom: 1px solid rgb(238, 238, 238); box-sizing: border-box; color: #333333; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; line-height: 1.25; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 0px !important; padding-bottom: 0.3em;&quot;&gt;
Git cheat list&lt;/h1&gt;
&lt;ul style=&quot;box-sizing: border-box; color: #333333; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 16px; margin-bottom: 0px !important; margin-top: 0px; padding-left: 2em;&quot;&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
list last 20 hashes in reverse&lt;/div&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;git log -n 20 --reverse --format=&quot;%h %ae %s&quot; --abbrev-commit
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
try a new output for diffing&lt;/div&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;git diff --compaction-heuristic ...
         --color-words ...
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
enable more thorough comparison&lt;/div&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;git config --global diff.algorithm patience
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
restoring a file from a certain commit relative to the latest&lt;/div&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;git checkout HEAD~&amp;lt;NUMBER&amp;gt; -- &amp;lt;RELATIVE_PATH_TO_FILE&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
restoring a file from a certain commit relative to the given commit&lt;/div&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;git checkout &amp;lt;COMMIT_HASH&amp;gt;~&amp;lt;NUMBER&amp;gt; -- &amp;lt;RELATIVE_PATH_TO_FILE&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
restoring a file from a certain commit&lt;/div&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;git checkout &amp;lt;COMMIT_HASH&amp;gt; -- &amp;lt;RELATIVE_PATH_TO_FILE&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
creating a diff file from unstaged changes for a&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;specific folder&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;git diff -- &amp;lt;RELATIVE_PATH_TO_FOLDER&amp;gt; changes.diff
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
applying a diff file&lt;/div&gt;
&lt;ul style=&quot;box-sizing: border-box; margin-bottom: 0px; margin-top: 0px; padding-left: 2em;&quot;&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;go to the root directory of your repository&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;run:&amp;nbsp;&lt;code style=&quot;background-color: rgba(0, 0, 0, 0.0392157); border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; margin: 0px; padding: 0.2em 0px;&quot;&gt;&amp;nbsp;git apply changes.diff&amp;nbsp;&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
show differences between last commit and currrent changes:&lt;/div&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;git difftool -d
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
referring to:&lt;/div&gt;
&lt;ul style=&quot;box-sizing: border-box; margin-bottom: 0px; margin-top: 0px; padding-left: 2em;&quot;&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;last commits&amp;nbsp;&lt;code style=&quot;background-color: rgba(0, 0, 0, 0.0392157); border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; margin: 0px; padding: 0.2em 0px;&quot;&gt;... HEAD~1 ...&lt;/code&gt;&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;last 3 commits&amp;nbsp;&lt;code style=&quot;background-color: rgba(0, 0, 0, 0.0392157); border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; margin: 0px; padding: 0.2em 0px;&quot;&gt;... HEAD~3 ...&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
show the history of changes of a file&lt;/div&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;git log -p -- ./Scripts/Libs/select2.js
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
ignoring whitespaces&lt;/div&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;git rebase --ignore-whitespace &amp;lt;BRANCH_NAME&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
pulling for fast-forward only (eliminating a chance for unintended merging)&lt;/div&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;git pull --ff-only
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
list of all tags&lt;/div&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;git fetch
git tag -l
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
archive a branch using tags&lt;/div&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;git tag &amp;lt;TAG_NAME&amp;gt; &amp;lt;BRANCH_NAME&amp;gt;
git push origin --tags
&lt;/code&gt;&lt;/pre&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
you can delete your branch now&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
get a tagged branch&lt;/div&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;git checkout -b &amp;lt;BRANCH_NAME&amp;gt; &amp;lt;TAG_NAME&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
list of all branches that haven&#39;t been merged to master&lt;/div&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;git branch --no-merge master
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
enable more elaborate diff algorithm by default&lt;/div&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;git config --global diff.algorithm histogram
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
list of all developers&lt;/div&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;git shortlog -s -n -e
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
display graph of branches&lt;/div&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;git log --decorate --graph --all --date=relative
&lt;/code&gt;&lt;/pre&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
or&lt;/div&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;git log --decorate --graph --all --oneline 
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
remembering the password&lt;/div&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;git config --global credential.helper store
git fetch
&lt;/code&gt;&lt;/pre&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
the first command tells git to remember the credentials that you are going to provide for the second command&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
path to the global config&lt;/div&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;C:\Users\Bykov\.gitconfig
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
example of a global config&lt;/div&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;[user]
   email = *****
   name = Aleksey Bykov
   password = *****
[merge]
   tool = p4merge
[mergetool &quot;p4merge&quot;]
   cmd = p4merge.exe \&quot;$BASE\&quot; \&quot;$LOCAL\&quot; \&quot;$REMOTE\&quot; \&quot;$MERGED\&quot;
   path = \&quot;C:/Program Files/Perforce\&quot;
   trustExitCode = false
[push]
   default = simple
[diff]
   tool = meld
   compactionHeuristic = true
[difftool &quot;p4merge&quot;]
   cmd = p4merge.exe \&quot;$LOCAL\&quot; \&quot;$REMOTE\&quot;
   path = C:/Program Files/Perforce/p4merge.exe
[difftool &quot;meld&quot;]
   cmd = \&quot;C:/Program Files (x86)/Meld/Meld.exe\&quot; \&quot;$LOCAL\&quot; \&quot;$REMOTE\&quot;
   path = C:/Program Files (x86)/Meld/Meld.exe
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
viewing differences between current and other branch&lt;/div&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;git difftool -d BRANCH_NAME
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
viewing differences between current and stash&lt;/div&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;git difftool -d stash
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
viewing differences between several commits in a diff tool&lt;/div&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;git difftool -d HEAD@{2}...HEAD@{0}
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
view all global settings&lt;/div&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;git config --global -l
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
delete tag&lt;/div&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;git tag -d my-tag
git push origin :refs/tags/my-tag
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
pushing tags&lt;/div&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;git push --tags
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
checking the history of a file or a folder&lt;/div&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;git log -- &amp;lt;FILE_OR_FOLDER&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
disabling the scroller&lt;/div&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;git --no-pager &amp;lt;...&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
who pushed last which branch&lt;/div&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;git for-each-ref --format=&quot;%(committerdate) %09 %(refname) %09 %(authorname)&quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
deleting remote branch&lt;/div&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;git push origin :&amp;lt;BRANCH_NAME&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
deleting remote branch localy&lt;/div&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;git branch -r -D &amp;lt;BRANCH_NAME&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
or to sync with the remote&lt;/div&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;git fetch --all --prune
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
deleting local branch&lt;/div&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;git branch -d &amp;lt;BRANCH_NAME&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
list&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;actual&lt;/span&gt;&amp;nbsp;remote branchs&lt;/div&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;git ls-remote --heads origin
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
list all remote (fetched) branches&lt;/div&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;git branch -r
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
list all local branches&lt;/div&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;git branch -l
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
find to which branch a given commit belongs&lt;/div&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;git branch --contains &amp;lt;COMMIT&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 16px; margin-top: 16px;&quot;&gt;
updating from a forked repository&lt;/div&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;git remote add upstream https://github.com/Microsoft/TypeScript.git
git fetch upstream
git rebase upstream/master&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;References :&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
https://services.github.com/kit/downloads/github-git-cheat-sheet.pdf&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Heemanshu Bhalla&lt;/div&gt;</description><link>http://geeksprogrammings.blogspot.com/2016/10/git-cheatsheet.html</link><author>noreply@blogger.com (Heemanshu Bhalla)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3843182671842475347.post-3270411198333836620</guid><pubDate>Sun, 18 Sep 2016 15:47:00 +0000</pubDate><atom:updated>2016-09-18T08:47:46.291-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Architecture Principles</category><category domain="http://www.blogger.com/atom/ns#">Code Architecture</category><category domain="http://www.blogger.com/atom/ns#">SOLID</category><category domain="http://www.blogger.com/atom/ns#">Solid Principles</category><title>SOLID Principles</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;SOLID Principles are set of rules that Help us to write Better quality of code . By Better quality of code &amp;nbsp;I mean Code that can talk , Code that is extensible , Code that is loosely coupled , Code that is abstract and secure . &lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
SOLID Principles guide us how we should design our Software / Web Applications . Most of the Unsuccessful Software lack SOLID Principles , How you design / Architecture your Software Defines the Healthy Life Span of your software . If Developers Don&#39;t Follow Good Principles Like SOLID etc while coding Software that makes Base of Software week and that kind of Software Surely lacks in Providing High Performance , High Scalability etc .&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;Why We Need SOLID Principles ?&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
If you have ever suffered from &amp;nbsp;Software Performing slow , lagging while operating it . Its a bug in their Software Architecture Design . Its does not matter or you may not know / experience any problem while designing low scalable system for small traffic website but when software usage is increased site needs to be more scalable in that case your code architecture will be tested and It is the case when Design Pattern , Code Architectures and SOLID Principles came into existence&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;When Do We Need SOLID Principles ?&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;I am not saying you should only use SOLID Principles and other Design Patterns and Principles only in large Scale Project .I am just saying their power , performance , scalability came Make&amp;nbsp;Tangible&amp;nbsp;Effect in Large Scale Projects .&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;MAKE SOLID Principles YOUR HABIT&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;Real World &amp;nbsp;Example Why we need SOLID&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
I love to connect code principles with real world examples that better way to understand them . Real world example for SOLID could be -&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Let say we all have good way of eating , sitting , wearing clothes , behaving with others , respecting others and we all follow our own made these principles both in home , office everywhere so All in All we have made our these rules Our HABITS . that&#39;s the thing i wish to say you why adopting these principles is good it is because they will improve our Code pattern and will eventually make our code quality better .&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
There is no definite tutorial to make code quality better you can only improve by improving your code habits .&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
SOLID Consist of 5 Principles :-&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
1. &amp;nbsp;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;S&lt;/span&gt;&lt;/b&gt;ingle Responsibility Principle ( SIP )&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
2. &amp;nbsp;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;O&lt;/b&gt;&lt;/span&gt;pen closed principle ( OCP )&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
3. &amp;nbsp;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;L&lt;/b&gt;&lt;/span&gt;iskov substitution principle ( LSP )&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
4. &amp;nbsp;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;I&lt;/b&gt;&lt;/span&gt;nterface segregation principle ( ISP )&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
4. &amp;nbsp;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;D&lt;/b&gt;&lt;/span&gt;ependency injection principle ( DIP )&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
We will be Covering Each SOLID Principle One By One . In that way you will get proper time to reaad blog article and understand it . If you have any question or confusion feel free to comment below . We will start First Principle of SOLID S - SIGNGLE RESPONSIBLITY PRINCIPLE in next post .&lt;br /&gt;&lt;br /&gt;Feel Free to Share geeksprogrammings with others .&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Heemanshu Bhalla&lt;/div&gt;</description><link>http://geeksprogrammings.blogspot.com/2016/09/solid-principles.html</link><author>noreply@blogger.com (Heemanshu Bhalla)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3843182671842475347.post-4780261819651602011</guid><pubDate>Sun, 28 Aug 2016 19:15:00 +0000</pubDate><atom:updated>2016-08-28T12:20:55.348-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Medical ATM&#39;s</category><title>Medical ATM&#39;s In India</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
Yes, You heard it right &#39;&lt;b&gt;Medical ATM&lt;/b&gt;&#39; . Similar to ATM Machines To Withdraw money Pilot Project for 1 year is launched in India in which Government has provided ATM&#39;s to Withdraw their medicines . You will be surprised &amp;amp; having &amp;nbsp;number of questions in your mind regarding what facility will be provided and how ?&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot; style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Medical ATM Will Connect Patients To Online-Doctor Who Will Register the Patient and Advice the Machine to Dispense Right Medicine&lt;/b&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTi3YOSkiHZgeDQf4Qgz41qCZp74A6e-Ov35amLMiv7KB-Tfe83MEQZHZRGehG24mqs_djpcI03NOQ8n2NtJ0iO7CTTi7VHTMfaCh_kLB0WMaO2yooFAgsqVGtYMEadP1R2LT3fa2KhhY/s1600/ATM2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;366&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTi3YOSkiHZgeDQf4Qgz41qCZp74A6e-Ov35amLMiv7KB-Tfe83MEQZHZRGehG24mqs_djpcI03NOQ8n2NtJ0iO7CTTi7VHTMfaCh_kLB0WMaO2yooFAgsqVGtYMEadP1R2LT3fa2KhhY/s640/ATM2.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Major Question in your mind could be &lt;b&gt;Who Will Give Prescription&lt;/b&gt; ? Yes , so Under this Project Whenever you visit a doctor you will be get a printed Bill With a Bar Code on it and yes that bar code will contain all information about you prescribed medicines It will act like a Medical Card your all your Health Info and you just need to Show Bar Code on your Medical Slip in front of Bar Code Scanner on ATM then ATM will push our your prescribed medicines to you after collecting money from you .&lt;br /&gt;
&lt;br /&gt;
Isn&#39;t this wonderful . Yes , Definitely . &lt;b&gt;Five ATMs&lt;/b&gt; have been lauched in four states of India — &lt;b&gt;MP, Himachal Pradesh, Odisha and Andhra Pradesh &lt;/b&gt;— under &amp;nbsp;Health Ministry pilot Project .&lt;br /&gt;
&lt;br /&gt;
India currently has 0.51 doctors per 1,000 population, half the 1:1,000 ratio recommended by World Health Organization. Rural India’s ratio is 0.63 per 10,000. This project is lauched due to massive shortage of doctors in the Country to help some people and fullfill the shortage of doctors on required Locations and Situations .&lt;br /&gt;
&lt;br /&gt;
From call centres, doctors will evaluate the condition of the patient — and if needed they will talk to Patients — and decide whether the person needs to be referred to a Clinic where doctor is available . In the latter case, a prescription will be generated and a command given automatically to the ATM to dispense only the drug prescribed, and no other. The MPHW will explain the dosage to the patient. And in case urgent referral is required, the &lt;b&gt;108 ambulance service &lt;/b&gt;will be made available at the sub-centre.&lt;br /&gt;
&lt;br /&gt;
Every ATM will be managed by &amp;nbsp;multipurpose public health worker (MPHW) or an auxiliary nurse midwife (ANM) armed with a multi-parameter patient vital monitor and other devices required for checking basic health parameters After successfull registeration of Patient these indicators would be transmitted to a medical call centre through a GSM-based monitor. In Beginning basic health parameters such as temperature, blood pressure, blood glucose and blood haemoglobin will be checked and the data instantly transmitted.&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Heemanshu Bhalla&lt;/div&gt;</description><link>http://geeksprogrammings.blogspot.com/2016/08/medical-atms-in-india.html</link><author>noreply@blogger.com (Heemanshu Bhalla)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTi3YOSkiHZgeDQf4Qgz41qCZp74A6e-Ov35amLMiv7KB-Tfe83MEQZHZRGehG24mqs_djpcI03NOQ8n2NtJ0iO7CTTi7VHTMfaCh_kLB0WMaO2yooFAgsqVGtYMEadP1R2LT3fa2KhhY/s72-c/ATM2.jpg" height="72" width="72"/><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3843182671842475347.post-255561215208620194</guid><pubDate>Sat, 27 Aug 2016 08:41:00 +0000</pubDate><atom:updated>2016-08-27T01:41:47.467-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">event propagation vs event preventdefault</category><category domain="http://www.blogger.com/atom/ns#">Javascript</category><category domain="http://www.blogger.com/atom/ns#">jquery</category><title>Javascript Event Propagation vs Event PreventDefault</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Event Propagation vs Event PreventDefault&lt;/b&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;h2&gt;
&lt;b&gt;Event Propagation&lt;/b&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;b&gt;Event&amp;nbsp;&lt;/b&gt;Propagation Stops the Event from bubbling or making the event Chain .&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Example&amp;nbsp;&lt;/b&gt;: - &amp;nbsp;A Click Event on a &amp;lt;td&amp;gt; tag will also fire click event on it&#39;s parent &amp;lt;tr&amp;gt; and this event chain also continues to parent &amp;lt;table&amp;gt; tag of that &amp;lt;tr&amp;gt; this makes a event chain in order to stop this event Chain propagation we can Use StopPropagation that Prevents this from happening.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;StopPropagation ( ) will stop that event from happening on&amp;nbsp;&lt;/span&gt;&lt;em style=&quot;background-color: white; border: 0px; color: #242729; font-family: arial, &amp;quot;helvetica neue&amp;quot;, helvetica, sans-serif; font-size: 15px; line-height: 19.5px; margin: 0px; padding: 0px;&quot;&gt;parent&lt;/em&gt;&lt;span style=&quot;background-color: white; color: #242729; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;&amp;nbsp;(the entire ancestors). When We Use StopPropagation only &amp;lt; td &amp;gt; Event will fire as per our Example above its parent &amp;lt; tr &amp;gt; or &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt; table &amp;gt; Click event will not fire .&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;StopPropagation ( ) Tells&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #242729; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;downward propagation of the event is stopped and also its upward propagation&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h2&gt;
&lt;b&gt;Event PreventDefault&lt;/b&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;b&gt;Event&lt;/b&gt;&amp;nbsp;PreventDefault () Prevents the Default Browser Action In Response the Event Triggered .&amp;nbsp;&lt;span style=&quot;background-color: white; color: #242729; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;The preventDefault method prevents an event from carrying out its default functionality&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Example :&lt;/b&gt;&amp;nbsp;If we want to Stop Form Submit on click of Submit Button in form we can use PreventDefault to stop the default form submit behaviour of submit button in form .&lt;br /&gt;
&lt;br /&gt;
As its name tells it just prevent occurence of the default behavior of event like if you need to prevent the click to occur on click event or stop entering of symbols in textbox if its character then make a check it entered character is symbol on keypress press and execute preventdefault ( ) to prevent default behavior of execution of &amp;nbsp;event on keypress and nothing will enter in textbox if its symbol .&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;&lt;b&gt;CODE EXAMPLE For StopPropagation&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i style=&quot;background-color: white; border: 0px; color: #242729; font-family: arial, &amp;quot;helvetica neue&amp;quot;, helvetica, sans-serif; font-size: 15px; line-height: 19.5px; margin: 0px; padding: 0px;&quot;&gt;&lt;/i&gt;&lt;br /&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot; style=&quot;background-color: #eff0f1; border: 0px; color: #393318; font-family: consolas, menlo, monaco, &amp;quot;lucida console&amp;quot;, &amp;quot;liberation mono&amp;quot;, &amp;quot;dejavu sans mono&amp;quot;, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace, sans-serif; font-size: 13px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;&quot;&gt;&lt;i style=&quot;background-color: white; border: 0px; color: #242729; font-family: arial, &amp;quot;helvetica neue&amp;quot;, helvetica, sans-serif; font-size: 15px; line-height: 19.5px; margin: 0px; padding: 0px;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;div&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;border: 0px; color: #e64320; margin: 0px; padding: 0px;&quot;&gt;onclick&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;border: 0px; color: #0f74bd; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;executeParent&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;border: 0px; color: #0f74bd; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;a&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;border: 0px; color: #e64320; margin: 0px; padding: 0px;&quot;&gt;href&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;border: 0px; color: #0f74bd; margin: 0px; padding: 0px;&quot;&gt;&#39;http://google.com&#39;&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;Click here to visit google.com&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;script&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
$&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&#39;a&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;click&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; color: #101094; margin: 0px; padding: 0px;&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;event&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
event&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;stopPropagation&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
$&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&#39;a&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;text&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&#39;Click event is going to be executed&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
$&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&#39;a&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;contents&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;().&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;unwrap&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;});&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; color: #101094; margin: 0px; padding: 0px;&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt; executeParent&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
alert&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&#39;here&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/i&gt;&lt;/pre&gt;
&lt;i style=&quot;background-color: white; border: 0px; color: #242729; font-family: arial, &amp;quot;helvetica neue&amp;quot;, helvetica, sans-serif; font-size: 15px; line-height: 19.5px; margin: 0px; padding: 0px;&quot;&gt;&lt;/i&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; font-size: 15px; line-height: 19.5px;&quot;&gt;&lt;span style=&quot;color: #242729; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;CODE EXPLANATION&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;b style=&quot;color: #242729; font-family: arial, &amp;quot;helvetica neue&amp;quot;, helvetica, sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;&amp;nbsp;For StopPropagation&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;div style=&quot;margin: 0px;&quot;&gt;
&lt;span style=&quot;background-color: white; font-size: 15px; line-height: 19.5px;&quot;&gt;&lt;span style=&quot;color: #242729; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;If you execute the code above, the function executeParent() will not be called and you will not get the javascript alert this time. This is due to us having prevented the propagation to the parent div using event.stopPropagation() method. Next you will see the hyperlink ‘Click here to visit google.com‘ replaced by the text ‘Click event is going to be executed‘ and immediately you will be redirected to google.com. This is because we haven’t prevented the default click action from triggering this time using event.preventDefault() method.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;b&gt;CODE EXAMPLE&lt;i style=&quot;background-color: white; border: 0px; color: #242729; font-family: arial, &amp;quot;helvetica neue&amp;quot;, helvetica, sans-serif; font-size: 15px; line-height: 19.5px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;For PreventDefault&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i style=&quot;background-color: white; border: 0px; color: #242729; font-family: arial, &amp;quot;helvetica neue&amp;quot;, helvetica, sans-serif; font-size: 15px; line-height: 19.5px; margin: 0px; padding: 0px;&quot;&gt;&lt;/i&gt;&lt;br /&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot; style=&quot;background-color: #eff0f1; border: 0px; color: #393318; font-family: consolas, menlo, monaco, &amp;quot;lucida console&amp;quot;, &amp;quot;liberation mono&amp;quot;, &amp;quot;dejavu sans mono&amp;quot;, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace, sans-serif; font-size: 13px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;&quot;&gt;&lt;i style=&quot;background-color: white; border: 0px; color: #242729; font-family: arial, &amp;quot;helvetica neue&amp;quot;, helvetica, sans-serif; font-size: 15px; line-height: 19.5px; margin: 0px; padding: 0px;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;div&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;border: 0px; color: #e64320; margin: 0px; padding: 0px;&quot;&gt;onclick&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;border: 0px; color: #0f74bd; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;executeParent&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;border: 0px; color: #0f74bd; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;a&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;border: 0px; color: #e64320; margin: 0px; padding: 0px;&quot;&gt;href&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;border: 0px; color: #0f74bd; margin: 0px; padding: 0px;&quot;&gt;&#39;http://google.com&#39;&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;Click here to visit google.com&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;script&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
$&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&#39;a&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;click&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; color: #101094; margin: 0px; padding: 0px;&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;event&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
event&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;preventDefault&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
event&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;stopPropagation&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
$&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&#39;a&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;text&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&#39;Click event prevented&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
$&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&#39;a&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;contents&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;().&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;unwrap&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;});&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; color: #101094; margin: 0px; padding: 0px;&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt; executeParent&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
alert&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&#39;here&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/i&gt;&lt;/pre&gt;
&lt;i style=&quot;background-color: white; border: 0px; color: #242729; font-family: arial, &amp;quot;helvetica neue&amp;quot;, helvetica, sans-serif; font-size: 15px; line-height: 19.5px; margin: 0px; padding: 0px;&quot;&gt;&lt;/i&gt;&lt;br /&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot; style=&quot;background-color: #eff0f1; border: 0px; color: #393318; font-family: consolas, menlo, monaco, &amp;quot;lucida console&amp;quot;, &amp;quot;liberation mono&amp;quot;, &amp;quot;dejavu sans mono&amp;quot;, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace, sans-serif; font-size: 13px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;&quot;&gt;&lt;/pre&gt;
&lt;i style=&quot;background-color: white; border: 0px; color: #242729; font-family: arial, &amp;quot;helvetica neue&amp;quot;, helvetica, sans-serif; font-size: 15px; line-height: 19.5px; margin: 0px; padding: 0px;&quot;&gt;&lt;b&gt;CODE EXPLANTION For PreventDefauls&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i style=&quot;background-color: white; border: 0px; color: #242729; font-family: arial, &amp;quot;helvetica neue&amp;quot;, helvetica, sans-serif; font-size: 15px; line-height: 19.5px; margin: 0px; padding: 0px;&quot;&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; border: 0px; font-size: 15px; line-height: 19.5px; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;color: #242729; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;i&gt;If you execute the code above, the function executeParent() will not be called and you will not get the javascript alert. This is due to us having prevented the propagation to the parent div using event.stopPropagation() method. Next you will see the hyperlink ‘Click here to visit google.com‘ replaced by the text ‘Click event prevented‘ and you will not be redirected to google.com. This is because we have prevented the default click action from triggering this time using event.preventDefault() method.&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;div style=&quot;margin: 0px;&quot;&gt;
&lt;i style=&quot;background-color: white; border: 0px; color: #242729; font-family: arial, &amp;quot;helvetica neue&amp;quot;, helvetica, sans-serif; font-size: 15px; line-height: 19.5px; margin: 0px; padding: 0px;&quot;&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Heemanshu Bhalla&lt;/div&gt;</description><link>http://geeksprogrammings.blogspot.com/2016/08/difference-between-event-stoppropagation-and-event-preventdefault.html</link><author>noreply@blogger.com (Heemanshu Bhalla)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3843182671842475347.post-8900667431007083141</guid><pubDate>Sat, 27 Aug 2016 08:39:00 +0000</pubDate><atom:updated>2016-08-27T01:39:30.087-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Event StopPropagation</category><category domain="http://www.blogger.com/atom/ns#">Javascript</category><title>Javascript Event StopPropagation</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/h2&gt;
&lt;h2&gt;
&lt;b&gt;Event Propagation&lt;/b&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;b&gt;Event &lt;/b&gt;Propagation Stops the Event from bubbling or making the event Chain .&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Example &lt;/b&gt;: - &amp;nbsp;A Click Event on a &amp;lt;td&amp;gt; tag will also fire click event on it&#39;s parent &amp;lt;tr&amp;gt; and this event chain also continues to parent &amp;lt;table&amp;gt; tag of that &amp;lt;tr&amp;gt; this makes a event chain in order to stop this event Chain propagation we can Use StopPropagation that Prevents this from happening.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;StopPropagation ( ) will stop that event from happening on&amp;nbsp;&lt;/span&gt;&lt;em style=&quot;background-color: white; border: 0px; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px; line-height: 19.5px; margin: 0px; padding: 0px;&quot;&gt;parent&lt;/em&gt;&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;&amp;nbsp;(the entire ancestors). When We Use StopPropagation only &amp;lt; td &amp;gt; Event will fire as per our Example above its parent &amp;lt; tr &amp;gt; or &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt; table &amp;gt; Click event will not fire .&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;StopPropagation ( ) Tells&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;downward propagation of the event is stopped and also its upward propagation&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;&lt;b&gt;CODE EXAMPLE&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i style=&quot;background-color: white; border: 0px; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px; line-height: 19.5px; margin: 0px; padding: 0px;&quot;&gt;&lt;pre class=&quot;default prettyprint prettyprinted&quot; style=&quot;background-color: #eff0f1; border: 0px; color: #393318; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;div&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;border: 0px; color: #e64320; margin: 0px; padding: 0px;&quot;&gt;onclick&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;border: 0px; color: #0f74bd; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;executeParent&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;border: 0px; color: #0f74bd; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;a&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;border: 0px; color: #e64320; margin: 0px; padding: 0px;&quot;&gt;href&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;border: 0px; color: #0f74bd; margin: 0px; padding: 0px;&quot;&gt;&#39;http://google.com&#39;&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;Click here to visit google.com&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;script&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
$&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&#39;a&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;click&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; color: #101094; margin: 0px; padding: 0px;&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;event&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
event&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;stopPropagation&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
$&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&#39;a&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;text&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&#39;Click event is going to be executed&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
$&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&#39;a&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;contents&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;().&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;unwrap&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;});&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; color: #101094; margin: 0px; padding: 0px;&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt; executeParent&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
alert&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&#39;here&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/i&gt;&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; font-size: 15px; line-height: 19.5px;&quot;&gt;&lt;span style=&quot;color: #242729; font-family: Arial, Helvetica Neue, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;CODE EXPLANATION&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; font-size: 15px; line-height: 19.5px;&quot;&gt;&lt;span style=&quot;color: #242729; font-family: Arial, Helvetica Neue, Helvetica, sans-serif;&quot;&gt;If you execute the code above, the function executeParent() will not be called and you will not get the javascript alert this time. This is due to us having prevented the propagation to the parent div using event.stopPropagation() method. Next you will see the hyperlink ‘Click here to visit google.com‘ replaced by the text ‘Click event is going to be executed‘ and immediately you will be redirected to google.com. This is because we haven’t prevented the default click action from triggering this time using event.preventDefault() method.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Heemanshu Bhalla&lt;/div&gt;</description><link>http://geeksprogrammings.blogspot.com/2016/08/event-stoppropagation-in-javascript.html</link><author>noreply@blogger.com (Heemanshu Bhalla)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3843182671842475347.post-2735159794268651975</guid><pubDate>Sat, 27 Aug 2016 08:33:00 +0000</pubDate><atom:updated>2016-08-27T01:33:01.797-07:00</atom:updated><title>Event Prevent Default in Javascript </title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/h2&gt;
&lt;h2&gt;
&lt;b&gt;Event PreventDefault&lt;/b&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;b&gt;Event&lt;/b&gt;&amp;nbsp;PreventDefault () Prevents the Default Browser Action In Response the Event Triggered .&amp;nbsp;&lt;span style=&quot;background-color: white; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;The preventDefault method prevents an event from carrying out its default functionality&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Example :&lt;/b&gt; If we want to Stop Form Submit on click of Submit Button in form we can use PreventDefault to stop the default form submit behaviour of submit button in form .&lt;br /&gt;
&lt;br /&gt;
As its name tells it just prevent occurence of the default behavior of event like if you need to prevent the click to occur on click event or stop entering of symbols in textbox if its character then make a check it entered character is symbol on keypress press and execute preventdefault ( ) to prevent default behavior of execution of &amp;nbsp;event on keypress and nothing will enter in textbox if its symbol .&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
CODE EXAMPLE&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i style=&quot;background-color: white; border: 0px; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px; line-height: 19.5px; margin: 0px; padding: 0px;&quot;&gt;&lt;/i&gt;&lt;br /&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot; style=&quot;background-color: #eff0f1; border: 0px; color: #393318; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;&quot;&gt;&lt;i style=&quot;background-color: white; border: 0px; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px; line-height: 19.5px; margin: 0px; padding: 0px;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;div&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;border: 0px; color: #e64320; margin: 0px; padding: 0px;&quot;&gt;onclick&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;border: 0px; color: #0f74bd; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;executeParent&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;border: 0px; color: #0f74bd; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;a&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;border: 0px; color: #e64320; margin: 0px; padding: 0px;&quot;&gt;href&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;border: 0px; color: #0f74bd; margin: 0px; padding: 0px;&quot;&gt;&#39;http://google.com&#39;&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;Click here to visit google.com&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;script&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
$&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&#39;a&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;click&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; color: #101094; margin: 0px; padding: 0px;&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;event&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
event&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;preventDefault&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
event&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;stopPropagation&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
$&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&#39;a&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;text&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&#39;Click event prevented&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
$&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&#39;a&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;contents&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;().&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;unwrap&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;});&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; color: #101094; margin: 0px; padding: 0px;&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt; executeParent&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
alert&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&#39;here&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; margin: 0px; padding: 0px;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;border: 0px; color: #7d2727; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/i&gt;&lt;/pre&gt;
&lt;i style=&quot;background-color: white; border: 0px; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px; line-height: 19.5px; margin: 0px; padding: 0px;&quot;&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot; style=&quot;background-color: #eff0f1; border: 0px; color: #393318; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;&quot;&gt;&lt;/pre&gt;
CODE EXPLANTION&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i style=&quot;background-color: white; border: 0px; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px; line-height: 19.5px; margin: 0px; padding: 0px;&quot;&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; border: 0px; font-size: 15px; line-height: 19.5px; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;color: #242729; font-family: arial, helvetica neue, helvetica, sans-serif;&quot;&gt;&lt;i&gt;If you execute the code above, the function executeParent() will not be called and you will not get the javascript alert. This is due to us having prevented the propagation to the parent div using event.stopPropagation() method. Next you will see the hyperlink ‘Click here to visit google.com‘ replaced by the text ‘Click event prevented‘ and you will not be redirected to google.com. This is because we have prevented the default click action from triggering this time using event.preventDefault() method.&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i style=&quot;background-color: white; border: 0px; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px; line-height: 19.5px; margin: 0px; padding: 0px;&quot;&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i style=&quot;background-color: white; border: 0px; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px; line-height: 19.5px; margin: 0px; padding: 0px;&quot;&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Heemanshu Bhalla&lt;/div&gt;</description><link>http://geeksprogrammings.blogspot.com/2016/08/event-preventdefault-in-javascript.html</link><author>noreply@blogger.com (Heemanshu Bhalla)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3843182671842475347.post-288644329420889537</guid><pubDate>Sat, 13 Aug 2016 21:32:00 +0000</pubDate><atom:updated>2016-08-13T14:32:44.859-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Difference Between Concepts</category><category domain="http://www.blogger.com/atom/ns#">httpget vs jsonp</category><category domain="http://www.blogger.com/atom/ns#">jsonp</category><title>Difference Between http get and jsonp</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;qtext_para&quot; style=&quot;color: #333333; font-family: Georgia, Times, &amp;quot;Times New Roman&amp;quot;, serif; font-size: 15px; line-height: 21px; margin-bottom: 1em; padding: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;qtext_para&quot; style=&quot;color: #333333; font-family: Georgia, Times, &amp;quot;Times New Roman&amp;quot;, serif; font-size: 15px; line-height: 21px; margin-bottom: 1em; padding: 0px;&quot;&gt;
An HTTP&amp;nbsp;&lt;b&gt;GET&lt;/b&gt;&amp;nbsp;request is what you get when you enter a URI in your browser or when you click on a link on a web page. Certain HTML elements, like also generate GET requests. GET requests a resource from the server. You can pass additional information to a server-side script by adding &#39;query parameters&#39; after the script, such as&amp;nbsp;&lt;span class=&quot;qlink_container&quot;&gt;&lt;a class=&quot;external_link&quot; href=&quot;http://example.com/?foo&amp;amp;bar=42&quot; rel=&quot;noopener nofollow&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: url(&amp;quot;data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%20standalone%3D%22no%22%3F%3E%0A%3Csvg%20width%3D%2214px%22%20height%3D%2214px%22%20viewBox%3D%220%200%2014%2014%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20xmlns%3Asketch%3D%22http%3A%2F%2Fwww.bohemiancoding.com%2Fsketch%2Fns%22%3E%0A%20%20%20%20%3C!--%20Generator%3A%20Sketch%203.5.2%20(25235)%20-%20http%3A%2F%2Fwww.bohemiancoding.com%2Fsketch%20--%3E%0A%20%20%20%20%3Ctitle%3Eexternal_link%3C%2Ftitle%3E%0A%20%20%20%20%3Cdesc%3ECreated%20with%20Sketch.%3C%2Fdesc%3E%0A%20%20%20%20%3Cdefs%3E%3C%2Fdefs%3E%0A%20%20%20%20%3Cg%20id%3D%22Page-1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%20sketch%3Atype%3D%22MSPage%22%3E%0A%20%20%20%20%20%20%20%20%3Cg%20id%3D%22external_link%22%20sketch%3Atype%3D%22MSLayerGroup%22%20fill%3D%22%23ccc%22%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M10%2C8%20C9.447%2C8%209%2C8.448%209%2C9%20L9%2C12%20L2%2C12%20L2%2C5%20L5%2C5%20C5.553%2C5%206%2C4.552%206%2C4%20C6%2C3.448%205.553%2C3%205%2C3%20L1%2C3%20C0.447%2C3%200%2C3.448%200%2C4%20L0%2C13%20C0%2C13.552%200.447%2C14%201%2C14%20L10%2C14%20C10.553%2C14%2011%2C13.552%2011%2C13%20L11%2C9%20C11%2C8.448%2010.553%2C8%2010%2C8%20L10%2C8%20Z%22%20id%3D%22Shape%22%20sketch%3Atype%3D%22MSShapeGroup%22%3E%3C%2Fpath%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M13%2C0%20L8%2C0%20C7.447%2C0%207%2C0.448%207%2C1%20C7%2C1.552%207.447%2C2%208%2C2%20L10.586%2C2%20L4.293%2C8.293%20C3.902%2C8.684%203.902%2C9.316%204.293%2C9.707%20C4.488%2C9.902%204.744%2C10%205%2C10%20C5.256%2C10%205.512%2C9.902%205.707%2C9.707%20L12%2C3.414%20L12%2C6%20C12%2C6.552%2012.447%2C7%2013%2C7%20C13.553%2C7%2014%2C6.552%2014%2C6%20L14%2C1%20C14%2C0.448%2013.553%2C0%2013%2C0%20L13%2C0%20Z%22%20id%3D%22Shape%22%20sketch%3Atype%3D%22MSShapeGroup%22%3E%3C%2Fpath%3E%0A%20%20%20%20%20%20%20%20%3C%2Fg%3E%0A%20%20%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E&amp;quot;); background-origin: initial; background-position: right 0.3em; background-repeat: no-repeat; background-size: 10.5px; color: #2b6dad; padding-right: 15px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Example Domain&lt;/a&gt;&lt;/span&gt;.&lt;/div&gt;
&lt;div class=&quot;qtext_para&quot; style=&quot;color: #333333; font-family: Georgia, Times, &amp;quot;Times New Roman&amp;quot;, serif; font-size: 15px; line-height: 21px; margin-bottom: 1em; padding: 0px;&quot;&gt;
Say you&#39;re on domain&amp;nbsp;&lt;span class=&quot;qlink_container&quot;&gt;&lt;a class=&quot;external_link&quot; data-tooltip=&quot;attached&quot; href=&quot;http://www.example.com/&quot; rel=&quot;noopener nofollow&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: url(&amp;quot;data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%20standalone%3D%22no%22%3F%3E%0A%3Csvg%20width%3D%2214px%22%20height%3D%2214px%22%20viewBox%3D%220%200%2014%2014%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20xmlns%3Asketch%3D%22http%3A%2F%2Fwww.bohemiancoding.com%2Fsketch%2Fns%22%3E%0A%20%20%20%20%3C!--%20Generator%3A%20Sketch%203.5.2%20(25235)%20-%20http%3A%2F%2Fwww.bohemiancoding.com%2Fsketch%20--%3E%0A%20%20%20%20%3Ctitle%3Eexternal_link%3C%2Ftitle%3E%0A%20%20%20%20%3Cdesc%3ECreated%20with%20Sketch.%3C%2Fdesc%3E%0A%20%20%20%20%3Cdefs%3E%3C%2Fdefs%3E%0A%20%20%20%20%3Cg%20id%3D%22Page-1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%20sketch%3Atype%3D%22MSPage%22%3E%0A%20%20%20%20%20%20%20%20%3Cg%20id%3D%22external_link%22%20sketch%3Atype%3D%22MSLayerGroup%22%20fill%3D%22%23ccc%22%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M10%2C8%20C9.447%2C8%209%2C8.448%209%2C9%20L9%2C12%20L2%2C12%20L2%2C5%20L5%2C5%20C5.553%2C5%206%2C4.552%206%2C4%20C6%2C3.448%205.553%2C3%205%2C3%20L1%2C3%20C0.447%2C3%200%2C3.448%200%2C4%20L0%2C13%20C0%2C13.552%200.447%2C14%201%2C14%20L10%2C14%20C10.553%2C14%2011%2C13.552%2011%2C13%20L11%2C9%20C11%2C8.448%2010.553%2C8%2010%2C8%20L10%2C8%20Z%22%20id%3D%22Shape%22%20sketch%3Atype%3D%22MSShapeGroup%22%3E%3C%2Fpath%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M13%2C0%20L8%2C0%20C7.447%2C0%207%2C0.448%207%2C1%20C7%2C1.552%207.447%2C2%208%2C2%20L10.586%2C2%20L4.293%2C8.293%20C3.902%2C8.684%203.902%2C9.316%204.293%2C9.707%20C4.488%2C9.902%204.744%2C10%205%2C10%20C5.256%2C10%205.512%2C9.902%205.707%2C9.707%20L12%2C3.414%20L12%2C6%20C12%2C6.552%2012.447%2C7%2013%2C7%20C13.553%2C7%2014%2C6.552%2014%2C6%20L14%2C1%20C14%2C0.448%2013.553%2C0%2013%2C0%20L13%2C0%20Z%22%20id%3D%22Shape%22%20sketch%3Atype%3D%22MSShapeGroup%22%3E%3C%2Fpath%3E%0A%20%20%20%20%20%20%20%20%3C%2Fg%3E%0A%20%20%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E&amp;quot;); background-origin: initial; background-position: right 0.3em; background-repeat: no-repeat; background-size: 10.5px; color: #2b6dad; padding-right: 15px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;www.example.com&lt;/a&gt;&lt;/span&gt;, and you want to make a request to domain&lt;span class=&quot;qlink_container&quot;&gt;&lt;a class=&quot;external_link&quot; href=&quot;http://www.example.net/&quot; rel=&quot;noopener nofollow&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: url(&amp;quot;data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%20standalone%3D%22no%22%3F%3E%0A%3Csvg%20width%3D%2214px%22%20height%3D%2214px%22%20viewBox%3D%220%200%2014%2014%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20xmlns%3Asketch%3D%22http%3A%2F%2Fwww.bohemiancoding.com%2Fsketch%2Fns%22%3E%0A%20%20%20%20%3C!--%20Generator%3A%20Sketch%203.5.2%20(25235)%20-%20http%3A%2F%2Fwww.bohemiancoding.com%2Fsketch%20--%3E%0A%20%20%20%20%3Ctitle%3Eexternal_link%3C%2Ftitle%3E%0A%20%20%20%20%3Cdesc%3ECreated%20with%20Sketch.%3C%2Fdesc%3E%0A%20%20%20%20%3Cdefs%3E%3C%2Fdefs%3E%0A%20%20%20%20%3Cg%20id%3D%22Page-1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%20sketch%3Atype%3D%22MSPage%22%3E%0A%20%20%20%20%20%20%20%20%3Cg%20id%3D%22external_link%22%20sketch%3Atype%3D%22MSLayerGroup%22%20fill%3D%22%23ccc%22%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M10%2C8%20C9.447%2C8%209%2C8.448%209%2C9%20L9%2C12%20L2%2C12%20L2%2C5%20L5%2C5%20C5.553%2C5%206%2C4.552%206%2C4%20C6%2C3.448%205.553%2C3%205%2C3%20L1%2C3%20C0.447%2C3%200%2C3.448%200%2C4%20L0%2C13%20C0%2C13.552%200.447%2C14%201%2C14%20L10%2C14%20C10.553%2C14%2011%2C13.552%2011%2C13%20L11%2C9%20C11%2C8.448%2010.553%2C8%2010%2C8%20L10%2C8%20Z%22%20id%3D%22Shape%22%20sketch%3Atype%3D%22MSShapeGroup%22%3E%3C%2Fpath%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M13%2C0%20L8%2C0%20C7.447%2C0%207%2C0.448%207%2C1%20C7%2C1.552%207.447%2C2%208%2C2%20L10.586%2C2%20L4.293%2C8.293%20C3.902%2C8.684%203.902%2C9.316%204.293%2C9.707%20C4.488%2C9.902%204.744%2C10%205%2C10%20C5.256%2C10%205.512%2C9.902%205.707%2C9.707%20L12%2C3.414%20L12%2C6%20C12%2C6.552%2012.447%2C7%2013%2C7%20C13.553%2C7%2014%2C6.552%2014%2C6%20L14%2C1%20C14%2C0.448%2013.553%2C0%2013%2C0%20L13%2C0%20Z%22%20id%3D%22Shape%22%20sketch%3Atype%3D%22MSShapeGroup%22%3E%3C%2Fpath%3E%0A%20%20%20%20%20%20%20%20%3C%2Fg%3E%0A%20%20%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E&amp;quot;); background-origin: initial; background-position: right 0.3em; background-repeat: no-repeat; background-size: 10.5px; color: #2b6dad; padding-right: 15px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;www.example.net&lt;/a&gt;&lt;/span&gt;. To do so, you need to cross domain boundaries, a no-no in most of browserland.&lt;/div&gt;
&lt;div class=&quot;qtext_para&quot; style=&quot;color: #333333; font-family: Georgia, Times, &amp;quot;Times New Roman&amp;quot;, serif; font-size: 15px; line-height: 21px; margin-bottom: 1em; padding: 0px;&quot;&gt;
Enter JSONP. When you make your request to a server that is JSONP enabled, you pass a special parameter that tells the server a little bit about your page. That way, the server is able to nicely wrap up its response in a way that your page can handle.&lt;/div&gt;
&lt;div class=&quot;qtext_para&quot; style=&quot;color: #333333; font-family: Georgia, Times, &amp;quot;Times New Roman&amp;quot;, serif; font-size: 15px; line-height: 21px; margin-bottom: 1em; padding: 0px;&quot;&gt;
For example, say the server expects a parameter called &quot;callback&quot; to enable its JSONP capabilities. Then your request would look like:&lt;/div&gt;
&lt;pre class=&quot;prettyprint linenums prettyprinted&quot; style=&quot;background: rgb(244, 244, 244); color: #333333; font-family: monospace, monospace; font-size: 15px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; overflow: auto; word-wrap: normal;&quot;&gt;&lt;ol class=&quot;linenums&quot; style=&quot;counter-reset: prettyprintlinenumber 0; font-size: 13px; list-style: none; margin: 0px; padding: 0px;&quot;&gt;
&lt;li class=&quot;L0&quot; style=&quot;color: #999999; counter-increment: prettyprintlinenumber 1; margin: 0px; padding: 0px 0px 0px 3em; position: relative;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: #666666;&quot;&gt;http&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;color: #60a0b0; font-style: italic;&quot;&gt;//www.example.net/sample.aspx?callback=mycallback&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/pre&gt;
&lt;div class=&quot;qtext_para&quot; style=&quot;color: #333333; font-family: Georgia, Times, &amp;quot;Times New Roman&amp;quot;, serif; font-size: 15px; line-height: 21px; margin-bottom: 1em; padding: 0px;&quot;&gt;
Without JSONP, this might return some basic JavaScript object, like so:&lt;/div&gt;
&lt;pre class=&quot;prettyprint linenums prettyprinted&quot; style=&quot;background: rgb(244, 244, 244); color: #333333; font-family: monospace, monospace; font-size: 15px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; overflow: auto; word-wrap: normal;&quot;&gt;&lt;ol class=&quot;linenums&quot; style=&quot;counter-reset: prettyprintlinenumber 0; font-size: 13px; list-style: none; margin: 0px; padding: 0px;&quot;&gt;
&lt;li class=&quot;L0&quot; style=&quot;color: #999999; counter-increment: prettyprintlinenumber 1; margin: 0px; padding: 0px 0px 0px 3em; position: relative;&quot;&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: #666666;&quot;&gt; foo&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: #666666;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #4070a0;&quot;&gt;&#39;bar&#39;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: #666666;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;}&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/pre&gt;
&lt;div class=&quot;qtext_para&quot; style=&quot;color: #333333; font-family: Georgia, Times, &amp;quot;Times New Roman&amp;quot;, serif; font-size: 15px; line-height: 21px; margin-bottom: 1em; padding: 0px;&quot;&gt;
However, with JSONP, when the server receives the &quot;callback&quot; parameter, it wraps up the result a little differently, returning something like this:&lt;/div&gt;
&lt;pre class=&quot;prettyprint linenums prettyprinted&quot; style=&quot;background: rgb(244, 244, 244); color: #333333; font-family: monospace, monospace; font-size: 15px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; overflow: auto; word-wrap: normal;&quot;&gt;&lt;ol class=&quot;linenums&quot; style=&quot;counter-reset: prettyprintlinenumber 0; font-size: 13px; list-style: none; margin: 0px; padding: 0px;&quot;&gt;
&lt;li class=&quot;L0&quot; style=&quot;color: #999999; counter-increment: prettyprintlinenumber 1; margin: 0px; padding: 0px 0px 0px 3em; position: relative;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: #666666;&quot;&gt;mycallback&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;({&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: #666666;&quot;&gt; foo&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: #666666;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #4070a0;&quot;&gt;&#39;bar&#39;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: #666666;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;});&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/pre&gt;
&lt;div class=&quot;qtext_para&quot; style=&quot;color: #333333; font-family: Georgia, Times, &amp;quot;Times New Roman&amp;quot;, serif; font-size: 15px; line-height: 21px; margin-bottom: 1em; padding: 0px;&quot;&gt;
As you can see, it will now invoke the method you specified. So, in your page, you define the callback function:&lt;/div&gt;
&lt;pre class=&quot;prettyprint linenums prettyprinted&quot; style=&quot;background: rgb(244, 244, 244); color: #333333; font-family: monospace, monospace; font-size: 15px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; overflow: auto; word-wrap: normal;&quot;&gt;&lt;ol class=&quot;linenums&quot; style=&quot;counter-reset: prettyprintlinenumber 0; font-size: 13px; list-style: none; margin: 0px; padding: 0px;&quot;&gt;
&lt;li class=&quot;L0&quot; style=&quot;color: #999999; counter-increment: prettyprintlinenumber 1; margin: 0px; padding: 0px 0px 0px 3em; position: relative;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: #666666;&quot;&gt;mycallback &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: #666666;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #007020; font-weight: bold;&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: #666666;&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;){&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: #666666;&quot;&gt; alert&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: #666666;&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: #666666;&quot;&gt;foo&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: #666666;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;};&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/pre&gt;
&lt;div class=&quot;qtext_para&quot; style=&quot;color: #333333; font-family: Georgia, Times, &amp;quot;Times New Roman&amp;quot;, serif; font-size: 15px; line-height: 21px; margin-bottom: 1em; padding: 0px;&quot;&gt;
&lt;b&gt;Major issue with JSONP&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;qtext_para&quot; style=&quot;color: #333333; font-family: Georgia, Times, &amp;quot;Times New Roman&amp;quot;, serif; font-size: 15px; line-height: 21px; padding: 0px;&quot;&gt;
you lose a lot of control of the request that creates doubts in maintaining security&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Heemanshu Bhalla&lt;/div&gt;</description><link>http://geeksprogrammings.blogspot.com/2016/08/difference-between-http-get-and-jsonp.html</link><author>noreply@blogger.com (Heemanshu Bhalla)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3843182671842475347.post-7049348205810732577</guid><pubDate>Fri, 12 Aug 2016 05:01:00 +0000</pubDate><atom:updated>2016-08-11T22:01:52.315-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">angulajs</category><category domain="http://www.blogger.com/atom/ns#">Difference Between Concepts</category><category domain="http://www.blogger.com/atom/ns#">jquery</category><title>Angularjs Vs Jquery</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;b&gt;Answer Angularjs Vs Jquery On Quora&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;a href=&quot;https://www.quora.com/What-are-the-advantages-of-using-AngularJS-over-JQuery/answer/Himanshu-Bhalla-5?srid=zs47&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;Angularjs Vs Jquery&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
jQuery will be used for things like higher level APIs, updating DOM elements, adding classes and wrapping XHR calls up nicely. Angular 1.x actually uses jQuery lite (jQLite) inside itself, or can use the full jQuery library if it&#39;s present before Angular at runtime. Using jQuery with Angular will unleash more power to Angular core as it knows you&#39;re using it, so it binds onto jQuery and passes you the full jQuery API instead of it&#39;s built-in jQLite.Remember that Angular is a data-binding MVVM framework, of which jQuery is not.&lt;br /&gt;&lt;br /&gt;
&lt;b&gt;See The Major Benefits in Angular JS as Compared To Jquery&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Below is Table List of Difference between jquery and Angularjs . See the Point search what that point means then analyze do you need the power or usage of that point in the project . On the basis of that Analyze Which one of them you need in your project&lt;br /&gt;&lt;br /&gt;
&lt;img src=&quot;https://qph.ec.quoracdn.net/main-qimg-c50e3bf273618e45f6af74819543ddf8?convert_to_webp=true&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Heemanshu Bhalla&lt;/div&gt;</description><link>http://geeksprogrammings.blogspot.com/2016/08/angularjs-vs-jquery.html</link><author>noreply@blogger.com (Heemanshu Bhalla)</author><thr:total>0</thr:total></item></channel></rss>