Saturday, June 13, 2015

Stack Overflow

JavaScript: The Good Parts   hQVTIJBZook
http://www.maritimejournal.com/__data/assets/pdf_file/0020/1033940/Javascript-The-Good-Parts.pdf

https://csharpguidelines.codeplex.com/downloads/get/540283#
http://www.digilife.be/quickreferences/QRC/Core%20CSharp%20and%20.NET%20Quick%20Reference.pdf
http://download-codeplex.sec.s-msft.com/Download/Release?

ProjectName=csharpguidelines&DownloadId=540283&FileTime=129983465469000000&Build=21029
https://www.ssw.com.au/ssw/Standards/Rules/RulestoBetterCode.aspx

Enumerable.Range

What is a Dimension, Fact and SCD?  mUGvYgYX13U

Delegate
A delegate is an object that holds a reference to a method with a particular parameter list and return type.
It is basically like an object-oriented, type-safe function pointer.
Delegates basically make it possible to treat methods as entities. You can then assign a delegate to a variable or pass it as a

parameter.

ceiling, floor, round

Concurrent Collections
s3AVbA29Q4yk
PD9JgDabn7Vr
KbebWyRFSEyG

GetValueOrDBNull<string>(name)
GetValueOrDBNull<int>(ID)

    private object GetValueOrDBNull<T>(T? param)
    {
        return param == null ? (object)DBNull.Value : param;
    }

The type 'T?' must be a non-nullable value type in order to use it as parameter 'T' in the generic type or method 'System.Nullable<T>'

Solution

GetValueOrDBNull<int>(ID)
The type 'int?' must be a reference type in order to use it as parameter 'T' in the generic type or method
    private object GetValueOrDBNull<T>(T param) where T : class
    {
        return param == null ? (object)DBNull.Value : param;
    }

    private object GetValueOrDBNull<T>(T? param) where T : struct
    {
        return param == null ? (object)DBNull.Value : param;
    }

watching touch moment pTbohb71Xo8

http://thinknook.com/hash-match-sql-server-graphical-execution-plan-2012-03-25/

Merge join Vs Hash join Vs Nested loop join in sql server
Hash Join 7ffoWkFomqY
Merge join 0nnarfhsHjI
HIFS9HQuWVU
Nested loop join SmDZaH855qE

http://stackoverflow.com/tags?page=56&tab=popular

http://stackoverflow.com/search?q=%5Bjquery%5D+Difference+between
http://stackoverflow.com/search?q=%5Blinq%5D+difference+between
http://stackoverflow.com/search?q=%5Bado.net%5D+difference+between

http://stackoverflow.com/search?q=%5Bwcf%5D+difference+between
http://stackoverflow.com/search?q=%5Bweb-service%5D+Difference+between

http://stackoverflow.com/search?q=%5Bc%23%5D+difference+between
http://stackoverflow.com/search?q=%5Basp.net%5D+difference+between
http://stackoverflow.com/search?q=%5Bmvc%5D+difference+between
http://stackoverflow.com/search?q=%5Bsql%5D+difference+between
http://stackoverflow.com/search?q=%5Boops%5D+difference+between
http://stackoverflow.com/search?q=%5Bcollection%5D+difference+between
http://stackoverflow.com/search?q=%5Bajax%5D+difference+between
http://stackoverflow.com/search?q=%5Bglobalization%5D+difference+between
http://stackoverflow.com/search?q=%5Bcache%5D+%5B.net%5D+difference+between
http://stackoverflow.com/search?q=%5Bregex%5D+Difference+between

http://stackoverflow.com/search?q=%5Btask-parallel-library%5D+Difference+between
http://stackoverflow.com/search?q=%5Basync-await%5D+Difference+between
http://stackoverflow.com/search?q=%5Bexception%5D+Difference+between
http://stackoverflow.com/search?q=%5Buml%5D+Difference+between
http://stackoverflow.com/search?q=%5Bauthentication%5D+Difference+between
http://stackoverflow.com/search?q=%5BCOOKIES%5D+Difference+between
http://stackoverflow.com/search?q=%5Blinq-to-sql%5D+Difference+between
http://stackoverflow.com/search?q=%5Bconcurrency%5D+Difference+between
http://stackoverflow.com/search?q=%5Bcasting%5D+Difference+between
http://stackoverflow.com/search?q=%5Bdelegates%5D+Difference+between
http://stackoverflow.com/search?q=%5Bjson.net%5D+Difference+between
http://stackoverflow.com/search?q=%5Bmembership%5D+Difference+between
http://stackoverflow.com/search?q=%5Bnormalization%5D+Difference+between

http://www.codeproject.com/Articles/18809/Enums-in-C

string value enum c#
Concurrent Collections
Accelerated C# Fundamentals
Best Practices in ASP.NET: Entities, Validation, and View Models
JavaScript and JSON with Ray Villalobos


string constr = ConfigurationManager.ConnectionStrings["constr"].ConnectionString;
    using (SqlConnection con = new SqlConnection(constr))
    {
        using (SqlCommand cmd = new SqlCommand("Customers_CRUD"))
        {
            cmd.Parameters.AddWithValue("@Action", "SELECT");
            using (SqlDataAdapter sda = new SqlDataAdapter())
            {
                cmd.CommandType = CommandType.StoredProcedure;
                cmd.Connection = con;
                sda.SelectCommand = cmd;
                using (DataTable dt = new DataTable())
                {
                    sda.Fill(dt);
                    GridView1.DataSource = dt;
                    GridView1.DataBind();
                }
            }
        }
    }

length vs size in jquery
.size() is a Method call, which returns the length property.
So you either call the method to return the property, or you retrieve the property directly.

how to use break or continue in jquery each loop
return false; //this is equivalent of 'break' for jQuery loop
return; //this is equivalent of 'continue' for jQuery loop

What the difference between text(), html(), val() functions in jQuery ?

    $("#div1").html('<a href="example.html">Link</a><b>hello</b>');  //will render an actual link
    $("#div2").text('<a href="example.html">Link</a><b>hello</b>');  //html is visible to the user Note: tags are encoded
val() method only work with control like input, select, button etc. It not work with div, span, p etc.

Function vs method
A function is a piece of code that is called by name. It can be passed data to operate on (ie. the parameters) and can optionally return data (the

return value).

All data that is passed to a function is explicitly passed.

A method is a piece of code that is called by name that is associated with an object. In most respects it is identical to a function except for two

key differences.

It is implicitly passed for the object for which it was called.
It is able to operate on data that is contained within the class (remembering that an object is an instance of a class - the class is

the definition, the object is an instance of that data).

OPENQUERY vs OPENROWSET vs OPENDATASOURCE
subquery will be executed many times in a loop
position vs offset jquery
7sfft8InTPw CSS Spacing - Margin Vs. Padding in css
riQg0ozLktI CSS Positioning - Static, Relative, Absolute, Fixed
B41cq-INGXY attr vs prop in jquery

top, left, margin, padding, float in css, jquery
on, bind, live, click, trigger in jquery
Slice, Substring, Substr in javascript

EntityState
TransactionScope
OperationStatus

Microsoft.AspNet.Web.Optimization
Microsoft.Web.Infrastructure
Newtonsoft.Json
WebGrease
Antlr


tutplus
Authentication With ASP.NET Identity
Build a Store With a Payment Gateway in ASP.NET
Improving C# With Version 6
C# Programming .NET 4.5
Building a CMS With ASP.NET MVC5
SOLID Design Patterns in C#
Getting Started with ASP.NET MVC5
Testing in ASP.NET MVC
ASP.NET At Your Service: Web API
Design Patterns in C#
Regression Testing with Dan Wellman
Advanced C# with Derek Jensen
Learning TDD in C# with Derek Jensen
Object-Oriented JavaScript with Jeremy McPeak
CSS Less is More with Dan Wellman
PROJECT MANAGEMENT Working With Clients to Get Design Approval with Paul Boag
BUSINESS Promoting Your Services and Winning Work with Paul Boag
SERVICES Working with Clients (and Getting Paid!) with Wes McDowell
SERVICES Freelance Bootcamp with James Clear



Creative Problem Solving and Decision Making Techniques  by Milena Pajic
Confident Coding: A Journey to Automated Testing in ASP.NET MVC    by Wes Higbee
Ethical Hacking: Session Hijacking by Troy Hunt
Getting Started with Asynchronous Programming in .NET by Filip Ekberg
Data Analytics: Hands On by Ben Sullins
Measuring .NET Performance by Sasha Goldshtein
Securing Your Application with OAuth and Passport by Jonathan Mills
Marketing and Selling Your Own Products and Services  by Jason Alba
SQL Server: Index Fragmentation Internals, Analysis, and Solutions by Paul Randal
Managing Developers by Kevin Murray
WCF End to End by Miguel Castro
The MVC Request Life Cycle by Alex Wolf
Ethical Hacking: SQL Injection by Troy Hunt
C# Concurrent Collections by Simon Robinson
Best Practices in ASP.NET: Entities, Validation, and View Models by Shawn Wildermuth
Lessons from Real World .NET Code Reviews by Shawn Wildermuth
Accelerated C# Fundamentals by Scott Allen
TPL Async by Ian Griffiths
The Future of Technology Careers by Dan Appleman
Serialization in .NET 4.5 by Mohamad Halabi
Resumes and Self-marketing for Software Developers by Jason Alba
SQL Server: Change Data Capture by Jonathan Kehayias
C# Events, Delegates and Lambdas by Dan Wahlin
CSS Positioning by Susan Simkins
The Anatomy of Email Design in HTML by Stephen Sharp
Quick Start to Unity: Volume 1 by Joshua Kinney
C# Equality and Comparisons by Simon Robinson

lynda + Introducing query execution plans + with Gerry O'Brien

Mastering Icon Fonts on the Web with Adi Purdila
Build a Store With a Payment Gateway in ASP.NET with Jeremy McPeak
Improving C# With Version 6 with Jeremy McPeak
Advanced C# with Derek Jensen
The CSS of the Future with Craig Campbell
Designing in the Browser With Bootstrap with Craig Campbell
Getting Started with ASP.NET MVC5  with Jeremy McPeak
Building a CMS With ASP.NET MVC5 with Jeremy McPeak
SOLID Design Patterns in C# with Derek Jensen
Programming .NET 4.5 with Jeremy McPeak
Bootstrap 3 for Web Design with Adi Purdila
Testing in ASP.NET MVC with Jeremy McPeak
Design Patterns in C# with Jeremy McPeak
Canvas Essentials with Jason Green
Working with Clients (and Getting Paid!) with Wes McDowell
Freelance Bootcamp with James Clear
ASP.NET At Your Service: Web API with Derek Jensen
Effective Navigation Development with Craig Campbell

Introduction to NULLIF, ISNULL, and COALESCE in SQL jSNgQ36OvS8


http://www.dotnetcurry.com/tutorials/dotnetinterview
Important Tips Every jQuery Developer Should Know
http://www.dotnetcurry.com/jquery/1073/jquery-developer-important-tips
difference between prop() and attr() in jquery?
http://fellowtuts.com/jquery/difference-between-attr-and-prop-in-jquery/
Difference Between Unique Index vs Unique Constraint Sql Server
Difference Between INTERSECT vs. INNER JOIN Sql Server
What are the Ways to Populate a Select Element with ASP.NET MVC and jQuery
http://www.dotnetcurry.com/ShowArticle.aspx?ID=466
$.ajax, $.get, $.post, $.getScript, $.getJSON

.submit() Vs :submit
.submit() is a function, used to submit a form. :submit is a selector, used to identify <input type="submit"> elements.


Pro ASP.NET MVC 5 Client
Pro ASP.Net MVC 5, 5th edition by Adam Freeman 1430265299_Pro
Angular, Knockout, Modernizr
await keyword, extension methods, lambda expressions, anonymous and dynamic types, and
Language Integrated Query (LINQ).

View Model vs Domain Model

Model Validation
This means that I am able to define validation criteria in one place and have it take effect anywhere in the application that the model
class is used.

How to read SQL Server execution plans daF6bAZsZRE
Query cost relative to batch
Key Lookup vs Seek Predicate vs Predicate
statistics
Index Spool

glad2teach  maths videos
EcV4TPbMUiQ 30 math tricks for fast calculations
00Vxnod-6iE What are Sub Query and Co-related Queries ?
KTvYHEntvn8
SQL Server join :- Inner join,Left join,Right join and full outer join
M9a5Rr9ef_Y How to use Cross Apply & Outer Apply in SQL Server
rnezIFDITJ8 SQL Server Having Fun with Apply

Statistics
https://www.simple-talk.com/content/print.aspx?article=1709
http://www.databasejournal.com/features/mssql/importance-of-statistics-and-how-it-works-in-sql-server-part-1.html
https://www.simple-talk.com/content/print.aspx?article=1744

collection
Difference between Dictionary and Hashtable
Difference between list.First(), list.ElementAt(0) and list[0]?
What's the difference between List<string> and IEnumerable<String>?
A List<string> is a concrete implementation of IEnumerable<string>. The difference is that IEnumerable<string> is merely a sequence of string but

a List<string> is indexable by an int index, can be added to and removed from and have items inserted at a particular index.

Basically, the interface IEnumerable<string> lets you stream the string in the sequence but List<string> lets you do this as well as modify and

access the items in the lists in specific ways. An IEnumerable<string> is general sequence of string that can be iterated but doesn't allow random

access. A List<string> is a specific random-access variable-size collection.
What is the difference between this two method calls? HashSet<T>.IsSubsetOf() HashSet<T>.IsProperSubsetOf()

C#
System.StringComparison.Ordinal
http://stackoverflow.com/search?q=%5Bc%23%5D+difference+between
http://stackoverflow.com/questions/4756065/difference-between-interface-abstract-class-sealed-class-static-class-and-par?s=726|1.9751

What's the difference between String and string?
Why is processing a sorted array faster than an unsorted array?
difference between `==` and .Equals()
Difference between Char.IsDigit() and Char.IsNumber() in C#
Difference between shadowing and overriding in C#?
What is the difference between a Field and a Property in C#?
What is the difference between const and readonly?
Difference between InvariantCulture and Ordinal string comparison
Difference between Covariance & Contra-variance
What's the difference between SortedList and SortedDictionary?
 Difference between shadowing and overriding in C#?
 difference between throw and throw new Exception(), throw ex
Difference between RegisterStartupScript and RegisterClientScriptBlock?
What's the difference between Assert.AreNotEqual and Assert.AreNotSame?
What is the difference between ToUpper() and ToUpperInvariant()?
Difference between “codebehind” and “source”
What is the difference between typeof and the is keyword?

difference between File.ReadAllLines() and File.ReadAllText()?
difference between Environment.SpecialFolders and Application folders

Difference between Trace.Write() and Trace.TraceInformation()
What's the difference between String.Count and String.Length?
What is the difference between TotalFreeSpace and AvailableFreeSpace
Difference between new and override?
What is the difference between checked and unchecked?
Difference between DataView.Sort and DataTable.DefaultView.Sort ?
What is the difference between null and System.DBNull.Value?
What's the difference between Single.TryParse and float.TryParse in C#?
What's the difference between "Length", "Count()" and "Rank" for .net array?
What is the difference between Array.GetLength() and Array.Length?
what is difference between them? Loan loan = default(Loan); Loan loan = new Loan();
default is used for zeroing out values. For reference types, thats null. For value types, that is effectively the same as using new

without any arguments.
Loan loan = default(Loan); // null if Loan is a reference type
Loan loan = new Loan(); // new instance of Loan - Not Null
What's the difference between the WebConfigurationManager and the ConfigurationManager?
Difference between connection.close and connection.dispose
difference between UTF8Encoding.UTF8.GetBytes and Encoding.UTF8.GetBytes?
 Difference between DataView.Sort and DataTable.OrderBy().AsDataView()?
The difference between a destructor and a finalizer?
What is the difference between BufferedStream and MemoryStream
difference between Assert.IsNotNull(·) Assert.AreNotEqual(null,·)?
Difference between Delegate and MulticastDelegate?
What is the difference between Request.UserAgent and Request.Browser?
What's the difference between WebClient DefaultCredentials and NetworkCredentials?

22 - 50


Validation
Difference between ValidationMessage and ValidationMessageFor

cache
difference between HttpContext.Current.Cache.Insert and HttpContext.Current.Cache.Add
What is difference between HttpContext.Current.Cache and HttpContext.Response.Cache?

WCF
Life cycle of wcf
Difference between web reference and service reference?
Difference between WSDL and MEX [duplicate]
Conceptual difference between textEncoding and messageEncoding
what is the difference between Binding.RecieveTimeout and Binding.ReliableSession.InactivityTimeout
difference between a behaviour and a contract?
Difference between ConcurrencyMode “Single”/“Multiple” with InstanceContextMode “PerCall”
Difference between returnUnknownExceptionsAsFaults and includeExceptionDetailInFaults in WCF
Difference between netTcpContextBinding and netTcpBinding
Difference between IOperationBehavior and IContractBehavior?
what's the difference between net.tcp and TCP protocol?
What is the difference between point-to-point and end-to-end security?
Difference between WCF sync and async call?
Difference between OperationTimeout and SendTimeout in WCF
Difference between DataContractSerializer vs XmlSerializer
what's the difference between ServiceHost and WebServiceHost?
Differences between proxy object, service object and normal class object
Difference between BasicHttpBinding and NetHttpBinding in WCF
Difference between type and ServiceKnownType
What is the difference between Current, InstanceContext RequestContext on OperationContext?
Difference between ClientCredentialType=Windows and =Ntlm
What is the difference between ServiceBehavior and CallbackBehavior in WCF?
Difference between unicast and multicast probe request
Difference between basicHttp binding in webservices and WCF
difference between adding service reference and proxy class in WCF
What is the practical difference between transport and message reliability in WCF?
What is the difference between defining endpoints in web.config and registering routes in global.asax (for the services)
What is the difference between RequestInterceptor and MessageInspector?
What is the difference between an asp.net web method and a wcf service?
What is the difference between a WCF Service Application and a WCF Service Library?
ConnectionManagement.MaxConnections vs ServicePointManager.DefaultConnectionLimit
What are the differences between security mode="Transport" and security mode="TransportCredentialOnly"
difference between binding security and behavior security?
What is the difference between using WCF Routing feature(.Net 4.0) and IIS7 Load Balancing (Application Request Routing module)?
Differences between WCF self-hosting and IIS-hosting
Difference between a listener with no <filter> and one with <filter type=“”/>
Difference between ConcurrencyMode “Single”/“Multiple” with InstanceContextMode “PerCall”
How to enumerate endpoints urls?
Why is WCF serializing a Enum as a string?
difference between MaxConcurrentCalls and MaxConcurrentSessions property
configuring ssl for WCF
What's the difference between Transport security & Message security in WCF
What is the difference between setting TransactionFlowOption.Mandatory and TransactionScopeOption.Required?
WebHttpServiceHostFactory vs WebScriptServiceHostFactory vs WebServiceHostFactory
Thread.CurrentPrincipal Vs HttpContext.User Vs ServiceSecurityContext.Current
SessionMode and InstanceContextMode difference in WCF
maxReceivedMessagesize and readerquotas
MaxRequestLength Vs MaxReceivedMessageSize
When exactly do we use WCF transactions?
TCP VS HTTP Performance
What are the limitations of WCF HTTPBinding?
What is the purpose of using session in WCF
IExtensibleDataObject vs IExtensibleObject?
Impersonation in self-hosted WCF?
WCF Client credential types
WCF Service Memory Leaks
What ischannelfactory
http://www.codeproject.com/Tips/558163/Difference-between-Proxy-and-Channel-Factory-in-WC
How to change the WCF Service Url?
What are the advantages of using [DataContract] rather than [Serializable] in WCF
Transport security vs Message security
WCF wsHttpBinding with Transport Security
Duplex connection - Communication failure
Using WebServiceHostFactory Pros & Cons
WCF messageheader vs messagebodymember?
How channel factory get wcf service meta data
Bandwidth and throughput of a WCF connection
close vs abort ChannelFactory
Cancelling WCF calls with large data?
It is a good practice to use a stream if the file size is above a certain amount. At my work on the enterprise application we

are writing, if it is bigger than 16kb then we stream it. If it is less than that, we buffer. Our file service is specially designed to handle this logic.
When you have the transfer mode of your service set to buffer, it will buffer on the client as well as on the service when you

are transmitting your data. This means if you are sending a 300mb file, it will buffer all 300mb during the call on both ends before the call is

complete. This will definitely create bottlenecks. For performance reasons, this should only be when you have small files that buffer quickly.

Otherwise, a stream is the best way to go.
If the majority or all of your files are larger files I'd switch to using a stream.
RequestInterceptor VS MessageInspector?

http://stackoverflow.com/search?page=9&tab=relevance&q=%5bwcf%5d%20difference%20between

Architucture
http://www.codeproject.com/Articles/493389/Four-ways-of-passing-data-between-layers
http://www.c-sharpcorner.com/UploadFile/paulabraham/Building3TierAppPA11282005053625AM/Building3TierAppPA.aspx
3-layer Architucture
3-tire Architucture
What is Service oriented Architecture?

ADO.NET
Difference between Initial Catalog and Database keyword in connection string
Difference between SqlDataReader.Read and SqlDataReader.NextResult
Is There Any Difference Between SqlConnection.CreateCommand and new SqlCommand?
what is the difference between data adapter and data reader?
What is the difference between dataview and datatable?
What is the difference between ExecuteScalar, ExecuteReader and ExecuteNonQuery?
Difference between transaction in SQL Server and ADO.NET?
Is there a big technical difference between VARBINARY(MAX) and IMAGE data types?
what is difference betwn sqlcommand.parameters.add() and sqlcommand.parameters.addwithvalue()

How to pass null value
           foreach (IDataParameter param in objParmList)
                if (param.Value == null || string.IsNullOrEmpty(Convert.ToString(param.Value))
                    || string.IsNullOrWhiteSpace(Convert.ToString(param.Value)))
                    param.Value = DBNull.Value;
(or)
person.Birthday ?? (object)DBNull.Value;

Why we need to cast to object, because DBNull and datetime is different datatype

Connection pooling in ado.net(in connection string)
data transfer objects (DTO)
data access Layer (DAL)
Business access Layer (BAL)
Database.BeginTransaction vs Transactions.TransactionScope
What is the recommended batch size for SqlBulkCopy?


Localization
InvariantCulture
CurrentCulture
CurrentUICulture
InstalledUICulture
Difference between CurrentCulture, InvariantCulture, CurrentUICulture and InstalledUICulture
What is system.globalization(internalization), localization
Linq
http://stackoverflow.com/questions/796246/what-is-the-difference-between-linq-query-expressions-and-extension-methods/796263?s=820|

0.8275#796263
Let vs into
http://www.codeproject.com/Articles/231164/Into-and-let-in-LINQ-Let-vs-Into
what is the difference between linq query with Take and without?
what is the difference between System.Linq.Enumerable.WhereListIterator & System.Linq.Enumerable.WhereSelectListIterator?
what is the difference between LINQ and ADO.net
What is the difference between expand and include in Linq?
What is the difference between Contains, Any, all in LINQ?
http://besttechnologyblog.com/2013/11/17/linq-quantifiers-how-to-use-all-any-contains-operators/
Any VS .Exists - Whats the difference?
Any() vs where()
take vs takewhile, take vs first, take vs top
where vs find, where vs single, where vs findAll, where vs firstordefault
select vs selectmany, select vs find, select vs select new, select vs foreach
Difference Between Select and SelectMany
http://www.dotnet-tricks.com/Tutorial/linq/N74N160714-Difference-between-Select-and-SelectMany-in-LINQ.html
What is the difference between IQueryable<T> and IEnumerable<T>?
Difference between List.All() and List.TrueForAll()
What is the difference between LINQ ToDictionary and ToLookup
difference between FirstOrDefault(func) & Where(func).FirstOrDefault()?
Difference between “Equals” and “SequenceEqual”?
Difference between First() and Find()
Difference between using .First() and .Where().First()
What is the difference between expand and include in Linq?
When to use .First and when to use .FirstOrDefault with LINQ
Difference between Lookup() and Dictionary(Of list())
Difference between First, FirstOrDefault, single vs singleOrDefault
http://www.technicaloverload.com/linq-single-vs-singleordefault-vs-first-vs-firstordefault/
SingleOrDefault checks if there is more data, and throws an exception if there is a second row
FirstOrDefault simply returns the first row
First(), Take(1), Single Performance
http://stackoverflow.com/questions/10455414/with-entity-framework-is-it-better-to-use-first-or-take1-for-top-1?s=960|0.7764
LINQ Include vs Join. Are they equivalent?
orderby vs sort, orderby vs list sort, orderby vs thenby
Difference between OrderByDescending (OrderBy) and AddOrder
What's the difference between FindAll and Select?
When to use Cast() and Oftype() in Linq
https://kkryczka.wordpress.com/2010/10/05/cast-vs-oftype-in-linq/
Skip() vs Skipwhile()
where vs takewhile
TransactionScope vs Transaction
Lookup() and Dictionary(Of list())
Where(predicate) vs. FirstOrDefault(predicate)
Single vs First
InsertOnSubmit() vs Add()
Any() vs .Length > 0
Length only exists for some collection types such as Array.
Any is an extension method that can be used with any collection that implements IEnumerable<T>.
If Length is present then you can use it, otherwise use Any.

Any
if it finds the first match, the loop terminates
What is the difference between IQueryable<T> and IEnumerable<T>?
ILookup<TKey, TVal> vs. IGrouping<TKey, TVal>
null in Linq query
http://weblogs.asp.net/scottgu/the-new-c-null-coalescing-operator-and-using-it-with-linq
p.SubTypeID and not.SubTypeID both can be null. But one null not equal to other null
p.SubTypeID == not.SubTypeID ||
(p.SubTypeID == null && not.SubTypeID == null)


Order by descending based on condition
// Common code:
var hosters = from e in context.Hosters_HostingProviderDetail
              where e.ActiveStatusID == pendingStateId;

// The difference between ASC and DESC:
hosters = (sortOrder == SortOrder.ASC ? hosters.OrderBy(e => e.HostingProviderName) : hosters.OrderByDescending(e =>

e.HostingProviderName));

// More common code:
returnList = hosters.ToList<Hosters_HostingProviderDetail>();

Why use .AsEnumerable() rather than casting to IEnumerable<T>?
http://stackoverflow.com/questions/2013846/why-use-asenumerable-rather-than-casting-to-ienumerablet/2013976?s=720|

0.8578#2013976

Difference between “Equals” and “SequenceEqual”?
yield return versus return select
http://stackoverflow.com/search?page=13&tab=relevance&q=%5blinq%5d%20difference%20between

InsertAllOnSubmit vs InsertOnSubmit
There is no difference at all, InsertAllOnSubmit actually calls the InsertOnSubmit

Does foreach execute the query only once?
http://stackoverflow.com/questions/13250561/does-foreach-execute-the-query-only-once/13250644?s=885|0.8034#13250644
Parallel.ForEach vs ParallelEnumerable.ForAll


Array.Count() much slower than List.Count()

jquery
Difference between .success() and .complete()?
event.preventDefault() vs. return false
what is the difference between trigger and on in jquery?
what is the difference between $$ and $ in jquery?
what is the difference between $(“.anything”).click() and $(“.anything”).bind(click) in jquery?
what is the difference between .submit() vs :submit  in jquery?
What is the difference between $ and $.fn in jquery?
what is the difference between jquery has() and filter() methods in jquery
What is the difference between jQuery's mouseout() and mouseleave() in jquery?
What is the difference between a click and mouseclickin JavaScript?
What is the difference between focusin/focusout vs focus/blur in jQuery?
What is the difference between screenX/Y, clientX/Y and pageX/Y javascript?
what is the difference between width, innerWidth and outerWidth, height, innerHeight and outerHeight in jQuery
what is the difference between null and undefined?
What is the difference between $ and $.fn in jquery?
What is the difference between .addBack() and .parent() in jquery?
What is the difference between .resolve() and .promise() in jquery?
What is the difference between window.innerWidth window.outerWidth in javascrip?
What is the difference between alert and window.alert?
What is the difference between single and double quotes in javascript?
What is the difference between substr and substring?
Difference between jQuery parent() and closest() functions
What's the difference between jQuery's replaceWith() and html()?
Difference between innerText and html
Difference between $.ajax() and $.get() and $.load()
difference between get() and eq() in jquery
Difference between screen.availHeight and window.height()
Difference between prepend() and prependTo()
Difference between using .html() and .contents()
Difference between jQuery wrap and wrapAll
Difference between jQuery .hide() and .css(“display”, “none”)
Differences between detach(), hide() and remove()
what is difference between success and .done() method of $.ajax
 $.when() difference between .then() and .done()
 Difference between element.each and .each(element) in jquery
 Difference between $(“#orderedlist”).find(“li”) and $(“#orderedlist li”)
 What's the difference between after() and insertAfter()
 What is the difference between typof and $.type()?
 difference between offset().top and element.offsetTop
 What is the difference between .resolve() and .promise()?
 What is the difference between .addBack() and .parent()?
 difference between first('a') and find('a:eq(0)')
 difference between :first and :first-child
 What is the difference between scrollTop() method and scrollTop property in jQuery?
 What's the difference between jQuery .width(), style.width, and jQuery .css('width')
sql
what is the difference between != and <> in sql server
what is the difference between like and patindex in sql server
what is the difference between {Server Name} localhost vs .\SqlExpress in sql server?

CSS
What is the difference between “word-break: break-all” versus “word-wrap: break-word” in CSS?
what is the difference between == and === in JavaScript?
What is the difference between px, em and ex in css?
what is the difference between external and internal css?
What is the difference between overflow:hidden and display:none in css?
What is the difference Display vs. Visibility in css?
http://stackoverflow.com/questions/6456468/css-width-and-max-width
CSS: Width and Max-Width
CSS: padding vs margin vs border
css: position, float, overflow
img {
    max-width: 150px;
    max-height: 120px;
    width: auto !important;
    height: auto !important;
}

width vs max-width

html
what is the difference between for, name and id?
What is the difference between <section> and <div>?


General
Difference Between Loose Coupling and Tight Coupling

asp.net
What is the difference between <% %> and <%=%>?
what is the difference between <%=%> and <%#%>
what is the difference between Parent and NamingContainer in a Gridview
what is the difference between Eval and Bind functions in ASP.Net?
what is the difference between RowIndex and DataItemIndex?
 difference between Server.MapPath("."), Server.MapPath("~"), Server.MapPath(@"\") and Server.MapPath("/")?
What is the difference between HttpContext.Current.Request.IsAuthenticated and HttpContext.Current.User.Identity.IsAuthenticated?
Difference between Server.MapPath and Page.MapPath
What's the difference between HttpContext.Handler and HttpContext.CurrentHandler?


.net
What is the difference between a framework and a library?
what is the difference between 32 bit and 64 bit .net frameworks max memory?
what is the difference between unsafe code and unmanaged code in C#?

wcf
What is the difference between net.tcp and http in WCF?
What is the difference between HttpResponseMessage and HttpResponseException
what is the difference between webservice and webapplication?
what is the difference between IOperationBehavior vs IServiceBehavior vs IContractBehavior?
what is the difference between WCF Service Application Vs WCF Service Library

oops
What is the difference between an abstract function and a virtual function?
What is the difference between extends and override in oops in c#?
 What is the difference between IFoo foo = new Foo() and Foo foo = new Foo()

localization
What is the difference between CurrentCulture and CurrentUICulture properties of CultureInfo in .NET?

generics
Difference between IsGenericType and IsGenericTypeDefinition
what is the difference between ReadOnlyCollection<T> and ReadOnlyCollectionBuilder<T> in .Net?
What is the difference between Serialization and Marshaling?

C#
what is the difference between a background and foreground thread In CLR?
What is the difference between a deep copy and a shallow copy?
what is the difference between application server and web server?
what is the difference between array and ArrayList?
what is the difference between ArrayList and Hashtable in C#?
What is the difference between boxing/unboxing and type casting?
what is the difference between CacheDependency and HostFileChangeMonitor in C#?
What is the difference between checked and unchecked in C#?
what is the difference between ConfigurationManager.GetSection and Configuration.GetSection?
What is the difference between const and readonly?
What is the difference between const and static?
what is the difference between datetime and timestamp
what is the difference between Decimal, Float and Double in .NET?
What is the difference between Directory.EnumerateFiles vs Directory.GetFiles?
What is the difference between File.ReadAllLines() and File.ReadAllText()?
what is the difference between foreach and delegate loop in c#
what is the difference between HashMap and Hashtable?
what is the difference between HasRequired and HasOptional
what is the difference between HTTP methods GET, POST, PUT and DELETE
what is the difference between HttpContext.Current.Cache and HttpContext.Response.Cache?
what is the difference between literal comparison and variable comparison
What is the difference between lock and Mutex in  C#?
what is the difference between MemoryCache vs ObjectCache in .net 4.0?
what is the difference between mutable and immutable
what is the difference between normal typecasting and using “AS” keyword
What is the difference between POST and GET?
what is the difference between public static and static public?
What is the difference between Server.Transfer and Response.Redirect?
what is the difference between session.Close() and session.Dispose()
what is the difference between ShowFooter and FooterRow.Visible
what is the difference between the keywords default and new in C#?
what is the difference between ToUpper() and ToUpperInvariant() in C#?
Why is processing a sorted array faster than an unsorted array?
What is the difference between Javascript,Jquery and Ajax programming?
What is the difference between Server.MapPath and HostingEnvironment.MapPath?
What is the difference between Session.Abandon() and Session.Clear() in ASP.Net?
What is the difference between null and System.DBNull.Value?
What is the difference between object relational mapping and data access layer in mvvm?
What is the difference between Gtk.Bin.Destroy() and Gtk.Bin.Dispose()
What is the difference between AsyncPostBack and SyncPostBack?
What is the difference between Application State and Application Session?
What is the difference between new[] and new string[]?
What is the difference between Call Stack and Stack Trace?
What is the difference between ResolveUrl and ResolveClientUrl?
What is the difference between HttpUtility.HtmlEncode and Server.HtmlEncode
What is the difference between Convert.ToBoolean(string) and Boolean.Parse(string)?
What is the difference between Array.GetLength() and Array.Length?
What is the difference between File.Exists(“”) and FileInfo exists
What is the difference between ReadOnly and Enabled?
What is the difference between Web farm and Web Garden?
What is the difference between Request.QueryString and Request.ServerVariables?
What is the difference between jaggedarray vs multidimensional array?
What is the difference between between DependencyResolver.SetResolver and HttpConfiguration.DependecyResolver?
What is the difference between Session.Clear() vs. Session.Contents.Clear()
What is the difference between design and architectural patterns?
What is the difference between App.Config and Web.Config in .Net?
What is the difference between ListItemType.AlternatingItem and ListItemType.Item in C#?

what is the difference between new Object{} and new Object(){}?
ar something = new SomeThing()
{
    Property = "SomeProperty"
}
and this way

var something = new SomeThing
{
    Property = "SomeProperty"
}
There is no difference. You can omit the empty braces in this case. For the compiler, those two are 100% equivalent.


What is the difference between Request.UserAgent and Request.Browser?
What is the difference between explicit and implicit type casts?
What is the difference between HostingEnvironment class and HttpRuntime class?
What is the difference between web.config assemblies element and project file Reference element
What is the difference between HashSet<T> and List<T> in generics?
What is the Difference between Math.Floor() and Math.Truncate()

ASP.NET  6
Difference between HttpRuntime.Cache and HttpContext.Current.Cache?
Difference between Session and HttpContext.Current.Session
What's the difference between <system.web> and <system.webServer>?
Difference between RegisterStartupScript and RegisterClientScriptBlock?
Difference between a Postback and a Callback
Difference between Databound & Databind
Difference between viewstate and controlstate
Difference between System.Web.Cache and HTTPContext.Curent.Cache
Difference between Session.Clear() vs. Session.Contents.Clear()
difference between Page_Load() and OnLoad()?
difference between doPostBack & DoPostBackWithOptions
Difference between Datareader, DataAdapter, Dataset, DataView
What’s the difference between Response.Write() and Response.Output.Write()?
What is the difference between HttpContext.Current.Request.IsAuthenticated and HttpContext.Current.User.Identity.IsAuthenticated?
Difference between Server.MapPath and Page.MapPath
What is the difference between Server.MapPath and HostingEnvironment.MapPath?
What's the difference between HttpContext.Handler and HttpContext.CurrentHandler?
Difference between ViewState[“object”] and Page.Items[“object”]
Difference between DropDownList.SelectedItem.Value And DropDownList.SelectedValue (ASP.NET)
What's the difference between <#eval and <#bind in asp.net
What is the difference between Hyperlink control and link control in ASP.NET?
@ Master” directive: difference between “ClassName” and “Inherits” attributes
Why is there a difference between ClientID and UniqueID?
What's the difference between HttpContext.Current.User and Thread.CurrentPrincipal in asp.net?
Response.Redirect("http://www.google.com"); and Response.Write("REDIRECT=http://www.google.com");?
Cache
difference between asp.net cache object and application object

SessionState
Difference between “InProc” & “stateServer” mode in SessionState on ASP.NET

ADO.NET
what is the Difference between ExecuteReader ExecuteScalar and ExecuteNonQuery in ado.net?
What is the difference between SqlCommand.CommandTimeout and SqlConnection.ConnectionTimeout?
what is the difference between data adapter and data reader?

TPL
What is the difference between Task.Factory.StartNew and new Thread().Start()?
What is the difference between multi threading and tasks?
What is the difference between a process and a thread
what is the difference between Task and Thread?

MVC
what is the difference between `Response.Redirect()` and `Redirect()` in Mvc?
what is the difference between <%= and <%: in mvc?
What is the difference between Href and Url.Content in mvc?
What is the difference between html.AttributeEncode vs html.Encode in mvc?
what is the difference between Html.Partial vs Html.RenderPartial & Html.Action vs Html.RenderAction in mvc?
What is the difference between “RedirectToAction” and “return Action()”?
What is the difference between html.AttributeEncode vs html.Encode in MVC?
What is the difference between <%# and <%= in ASP.NET MVC?
What is the difference between ViewResult() and ActionResult() in mvc?

SQL
What is the difference between SqlException and SqlExecutionException?
What is the difference between Index Rebuilding and Index Reorganizing in sql server?


what is the difference between loopstate.Break(), loopState.Stop() and CancellationTokenSource.Cancel()

Object Oriented CSS
Object Oriented javascript
PATINDEX in sql server

stop after it finds the very first matching row
Where as the COUNT(*) must read each and every row in the entire table to determine if they match the criteria and how many there are.

PARAMETER SNIFFING

httpcontext vs httpruntime
What is the difference between HttpContext.Current.Session and HttpContext.current.Item.
What is the difference between HttpContext.Current.Session and Page.Session vs HttpApplication.Session

Convert.ToString(Session["UserId"]) vs (string)Session["UserId"]

article.php?aid=97708
article.php?module=magazine&aid=105668

No comments:

Post a Comment