Skip to main content

Posts

Showing posts from May, 2019

Remove all the unnecessary branches from local Git.

Brief While using tortoise git. You might have observed below things. Branches deleted from  the remote sever i.e. GitHub, TFS But the branch is still available in your local. Purpose Update your local branches with the remote branches. Then remove all the branches from the local if deleted from the remote. Steps Right click in the local git repository folder. And click 'Git Bash UI' and type below command then press enter. git remote update origin --prune Refer below screenshot for reference.

Observable Vs Promise. All you need is here.

Brief An observable does everything that a promise does and more. It can always be switched to a promise with  toPromise()  method in case a promise is expected. An observable  must  be chosen over a promise if any feature that are intrinsic to observables and not promises and explained in detail in  related question  is in demand (notably incomplete observables and observables that receive multiple values) API that consumes it expects an observable and doesn't use  Observable.from(...) safety structure to unify observables and promises An observable  may  be chosen over a promise if the code where it's used uses observables exclusively. A promise  must  can be chosen over an observable if API that consumes it expects a promise and doesn't use  Observable.from(...)  safety structure. A promise  may  can be chosen over an observable if the code where it's used uses promises exclusively (notably  async  functions) it needs to be immediately subscribed a

Non-Static Class Vs Static Class Vs Singleton

Introduction If you are looking for below questions then the StackOverflow link below might help you in better way. Links: What are the advantages of non-static class over static class? Static class need not be instanciated. so we can directly use ClassName.MemberName, so then what is the use of nonstatic class? What is the use of a static class? Why use singleton instead of static class?

Headphone Jack Sound Problem (Worked For Me)

There are 5 ways. Try one by one and hope it will work for you too. For me ( Clean the headphone jack) worked. Make sure your headphones aren’t broken Check to see if the smartphone is connected to a different device via Bluetooth Clean the headphone jack Check audio settings and restart device Time to call the repairman Link https://www.androidauthority.com/headphone-jack-not-working-783743/

Internet vs internet, Internet vs Extranet Vs Intranet

Internet Vs internet The words internetwork and internet is [ sic ] simply a contraction of the phrase interconnected network. However, when written with a capital "I," the Internet refers to the worldwide set of interconnected networks. Hence, the Internet is an internet, but the reverse does not apply. The Internet is sometimes called the connected internet.

Constant vs Readonly vs Static Keywords in C#

Introduction  Constant vs Readonly vs Static Keywords in C#. Constant By default a constant is static, so you can't define them static from your side. Readonly We can also change the value of a Readonly at runtime or assign a value to it at runtime (but in a non-static constructor only). Static If we are declare a class as a static class then in this case all the class members must be static too.  The static keyword can be used effectively with classes, fields, operators, events, methods and so on effectively. Links C-SharpCorner Stack Overflow

Details of the object model in JavaScript similar to Class and Interface in Java/C#

Introduction JavaScript is an object-based language based on prototypes, rather than being class-based. Because of this different basis, it can be less apparent how JavaScript allows you to create hierarchies of objects and to have inheritance of properties and their values. Link Details of the object model Why no interface in JavaScript?

Session Storage in JQuery/JavaScript

Definition and Usage The localStorage and sessionStorage properties allow to save key/value pairs in a web browser. The sessionStorage object stores data for only one session (the data is deleted when the browser tab is closed). Tip:  Also look at the  localStorage  property which stores data with no expiration date. The data will not be deleted when the browser is closed, and will be available the next day, week, or year. Syntax window.sessionStorage Syntax for SAVING data to sessionStorage: sessionStorage.setItem("key", "value"); Syntax for READING data from sessionStorage: var lastname = sessionStorage.getItem("key"); Syntax for REMOVING saved data from sessionStorage: sessionStorage.removeItem("key"); Syntax for REMOVING ALL saved data from sessionStorage: sessionStorage.clear(); Technical Details Return Value: A Storage object Example <script> // Check browser support if (typeof(Stor

CS/IT Videos Course Links

Below are the links of the videos tutorials subjects wise. (Not yet completed fully) Links : THEORY OF COMPUTATION | AUTOMATA THEORY Digital electronics DBMS (Knowledge Gate) DBMS (Gate Smasher) Computer Networks (Knowledge Gate) Computer Networks (Gate Smashers) Compiler Design Operating System Data Structure (Knowledge Gate) Data Structure - NPTEL (Dr. P.P. Chakraborty) Software Engineering Principles and Practice Computer Fundamentals in Hindi Computer Graphics Computer Organization Architecture (Well Academy) Computer Organization and Architecture Lectures in Hindi

Administrative divisions of Nepal

The administrative divisions of Nepal ( Nepali : नेपालको प्रशासनिक विभाजन Nēpālakō praśāsanik vibhājana) are subnational administrative units of Nepal. The first level of country subdivisions of Nepal are the Provinces . Each province is further subdivided into districts , and each district into municipalities and rural municipalities . Link  Administrative divisions of Nepal

IIFE (Immediately Invoked Function Expression) inJavaScript function

Introduction An IIFE (Immediately Invoked Function Expression) is a JavaScript function that runs as soon as it is defined. ( function ( ) { statements } ) ( ) ; Examples The function becomes a function expression which is immediately executed. The variable within the expression can not be accessed from outside it. ( function ( ) { var aName = "Barry" ; } ) ( ) ; // Variable name is not accessible from the outside scope aName // throws "Uncaught ReferenceError: aName is not defined" Assigning the IIFE to a variable stores the function's return value, not the function definition itself. var result = ( function ( ) { var name = "Barry" ; return name ; } ) ( ) ; // Immediately creates the output: result ; // "Barry"   Link IIFE StackOverflow

Joins in the Sql Server

SQL Server: Joins This SQL Server tutorial explains how to use JOINS , both INNER and OUTER JOINS, in SQL Server (Transact-SQL) with syntax, visual illustrations, and examples. Description SQL Server (Transact-SQL) JOINS are used to retrieve data from multiple tables. A SQL Server JOIN is performed whenever two or more tables are joined in a SQL statement. There are 4 different types of SQL Server joins: SQL Server INNER JOIN (or sometimes called simple join) SQL Server LEFT OUTER JOIN (or sometimes called LEFT JOIN) SQL Server RIGHT OUTER JOIN (or sometimes called RIGHT JOIN) SQL Server FULL OUTER JOIN (or sometimes called FULL JOIN) So let's discuss SQL Server JOIN syntax, look at visual illustrations of SQL Server JOINS, and explore SQL Server JOIN examples. Please refer this link for details.