Microsoft Windows 8 has built-in antivirus software called Windows Defender so we don’t need to install Microsoft Security Essential as in Microsoft Windows 7 or previous Windows version. If you need to install other third party antivirus software such as Norton Antivirus or McAfee, etc… you need to disable Windows Defender first. You cannot more than one antivirus software run at the same time. It will slowdown your machine and make it easy to crash.
I am much happy to use the Windows Defender on Microsoft Windows 8. It saves me at least fifty bucks per year on antivirus software.
Saturday, April 27, 2013
Monday, March 11, 2013
ASP.NET Questions and Answers – Part 3
What is a master page?
A master page is a template for other web pages in your web application with shared layout and functionality. The master page defines placeholder for the content which can overridden by content pages.
What is the Global.asax file?
The Global.asax file, also known as the ASP.NET application file, is an optional file that contains code for responding to application-level events raised by ASP.NET or by HttpModules. The Global.asax file resides in the root of an ASP.NET based application. At run time, Global.asax is parsed and compiled into a dynamically generated .NET Framework class derived from the HttpApplication base class. The Global.asax itself is configured so that any direct URL request for it is automatically rejected; external users cannot download or view the code written within it. Read more at msdn.microsoft.com
What is the difference between ASP and ASP.NET?
A master page is a template for other web pages in your web application with shared layout and functionality. The master page defines placeholder for the content which can overridden by content pages.
What is the Global.asax file?
The Global.asax file, also known as the ASP.NET application file, is an optional file that contains code for responding to application-level events raised by ASP.NET or by HttpModules. The Global.asax file resides in the root of an ASP.NET based application. At run time, Global.asax is parsed and compiled into a dynamically generated .NET Framework class derived from the HttpApplication base class. The Global.asax itself is configured so that any direct URL request for it is automatically rejected; external users cannot download or view the code written within it. Read more at msdn.microsoft.com
What is the difference between ASP and ASP.NET?
- ASP is interpreted. ASP.NET is compiled.
- ASP uses VBScript. However, ASP.NET uses C# and VB.NET which are compiled to Microsoft Intermediate Language (MSIL).
Related posts:
Labels:
.net framework,
computer programming,
interview,
Microsoft,
questions and answers,
web application,
web development
Thursday, March 7, 2013
SQL Questions and Answers - Part 3
What is a view?
A view can be thought of as either a virtual table or a stored query. The data accessible through a view is not stored in the database as a distinct object. What is stored in the database is a SELECT statement. The result set of the SELECT statement forms the virtual table returned by the view. ( msdn.microsoft.com )
What is an Index?
A Microsoft® SQL Server™ index is a structure associated with a table or view that speeds retrieval of rows from the table or view. An index contains keys built from one or more columns in the table or view. These keys are stored in a structure that allows SQL Server to find the row or rows associated with the key values quickly and efficiently. ( msdn.microsoft.com )
What are all the different types of indexes?These are different types of indexes in Microsoft SQL Server 2008R2:
Related posts:
SQL Questions and Answers – Part 3
SQL Questions and Answers – Part 2
SQL Questions and Answers – Part 1
A view can be thought of as either a virtual table or a stored query. The data accessible through a view is not stored in the database as a distinct object. What is stored in the database is a SELECT statement. The result set of the SELECT statement forms the virtual table returned by the view. ( msdn.microsoft.com )
What is an Index?
A Microsoft® SQL Server™ index is a structure associated with a table or view that speeds retrieval of rows from the table or view. An index contains keys built from one or more columns in the table or view. These keys are stored in a structure that allows SQL Server to find the row or rows associated with the key values quickly and efficiently. ( msdn.microsoft.com )
What are all the different types of indexes?These are different types of indexes in Microsoft SQL Server 2008R2:
- Clustered: A clustered index sorts and stores the data rows of the table or view in order based on the clustered index key. The clustered index is implemented as a B-tree index structure that supports fast retrieval of the rows, based on their clustered index key values.
- Nonclustered: A nonclustered index can be defined on a table or view with a clustered index or on a heap. Each index row in the nonclustered index contains the nonclustered key value and a row locator. This locator points to the data row in the clustered index or heap having the key value. The rows in the index are stored in the order of the index key values, but the data rows are not guaranteed to be in any particular order unless a clustered index is created on the table.
- Unique: A unique index ensures that the index key contains no duplicate values and therefore every row in the table or view is in some way unique. Both clustered and nonclustered indexes can be unique.
- Index with included columns: A nonclustered index that is extended to include nonkey columns in addition to the key columns.
- Full-text: A special type of token-based functional index that is built and maintained by the Microsoft Full-Text Engine for SQL Server. It provides efficient support for sophisticated word searches in character string data.
- Spatial: A spatial index provides the ability to perform certain operations more efficiently on spatial objects (spatial data) in a column of the geometry data type. The spatial index reduces the number of objects on which relatively costly spatial operations need to be applied.
- Filtered: An optimized nonclustered index, especially suited to cover queries that select from a well-defined subset of data. It uses a filter predicate to index a portion of rows in the table. A well-designed filtered index can improve query performance, reduce index maintenance costs, and reduce index storage costs compared with full-table indexes.
- XML: A shredded, and persisted, representation of the XML binary large objects (BLOBs) in the xml data type column.
Related posts:
SQL Questions and Answers – Part 3
SQL Questions and Answers – Part 2
SQL Questions and Answers – Part 1
Labels:
computer programming,
databases,
interview,
questions and answers,
sql
Wednesday, March 6, 2013
JavaScript Questions and Answers - Part 2
Continue random JavaScript Questions and Answers from previous post.
What are difference between global and local variables?
A variable that is declare outside of a function is a global variable, and its value is accessible and modifiable throughout your program. A variable that is declared inside a function is local. It is created and destroyed every time the function is executed, and it cannot be accessed by any code outside the function. ( msdn.microsoft.com )
How we define a class in JavaScript?
JavaScript does not have a class definition separate from the constructor. Instead, you define a constructor function to create objects with a particular initial set of properties and values. Any JavaScript function can be used as a constructor. You used the new operator with a constructor function to create a new object. ( developer.mozilla.org )
What is a JavaScript function?
JavaScript function is a block of code that will be executed when it was called by external code. A function begin with the function keyword, followed by the name, list of parameters if any, and a block of codes inside a curly braces. Function can return a value. Arguments are passed to function by a value.
What is a function expression?
A function expression is a function defined inside an expression. A function name in function expression can be omitted, in which case the function is anonymous. Example: var foo = function () { return 5; }
Related posts:
JavaScript Questions and Answers – Part 2
JavaScript Questions and Answers
What are difference between global and local variables?
A variable that is declare outside of a function is a global variable, and its value is accessible and modifiable throughout your program. A variable that is declared inside a function is local. It is created and destroyed every time the function is executed, and it cannot be accessed by any code outside the function. ( msdn.microsoft.com )
How we define a class in JavaScript?
JavaScript does not have a class definition separate from the constructor. Instead, you define a constructor function to create objects with a particular initial set of properties and values. Any JavaScript function can be used as a constructor. You used the new operator with a constructor function to create a new object. ( developer.mozilla.org )
What is a JavaScript function?
JavaScript function is a block of code that will be executed when it was called by external code. A function begin with the function keyword, followed by the name, list of parameters if any, and a block of codes inside a curly braces. Function can return a value. Arguments are passed to function by a value.
What is a function expression?
A function expression is a function defined inside an expression. A function name in function expression can be omitted, in which case the function is anonymous. Example: var foo = function () { return 5; }
Related posts:
JavaScript Questions and Answers – Part 2
JavaScript Questions and Answers
Sunday, February 24, 2013
MySQL error #1045 on GoDaddy phpMyAdmin
After I made a new MySQL databases, I logged in to phpMyAdmin to test and got this message:
What???
After couple attempts for a few hours, I decided to use a new difference password. Now it worked. It seem to me, there is a character in my initial password did not carry to or accepted by MySQL database.
#1045 – Access denied for user ‘myusername’@’10.10.10.10’ (using password: YES)
What???
After couple attempts for a few hours, I decided to use a new difference password. Now it worked. It seem to me, there is a character in my initial password did not carry to or accepted by MySQL database.
Friday, February 22, 2013
Verdana, Aria fonts on Ubuntu
Install Microsoft core fonts package by running this command in terminal:
For more info read http://www.tuxgarage.com/ 2011/11/ttf-mscorefonts- installer-ubuntu.html
Thursday, February 7, 2013
SQL Questions and Answers - Part 2
Continue from previous part.
What is a constraint?
Constraints let you define the way the Database Engine automatically enforces the integrity of a database. Constraints define rules regarding the values allowed in columns and are the standard mechanism for enforcing integrity. SQL Server supports the following classes of constraints:
NOT NULL specifies that the column does not accept NULL values.
CHECK constraints enforce domain integrity by limiting the values that can be put in a column.
UNIQUE constraints enforce the uniqueness of the values in a set of columns.
PRIMARY KEY constraints identify the column or set of columns that have values that uniquely identify a row in a table.
FOREIGN KEY constraints identify and enforce the relationships between tables.
Read more at http://msdn.microsoft.com/
What is a unique constraint?
A Unique constraint uniquely identified each record in a table. This provides uniqueness for the column or set of columns. Use a Unique constraint when you want to enforce the uniqueness of a column, or combination of columns, that is not the primary key. Unique constraint creates a non-clustered index on the column. Unique Key allows only one NULL Value.
What is a Foreign Key (FK)?
A foreign key (FK) is a column or combination of columns that is used to establish and enforce a link between the data in two tables. You can create a foreign key by defining a FOREIGN KEY constraint when you create or modify a table.
Read more at http://msdn.microsoft.com/
What is the difference between Primary Key (PK) and Unique Key (UK)?
A Primary Key (PK) can not have a Null value. A Unique Key can have one Null value.
Primary Key creates a clustered index on the column. Unique Key creates a non-clustered index on the column.
Each table may have only one PK but many unique constraints.
What is a join?
An SQL join clause combines records from two or more tables in a database. A JOIN is a means for combining fields from two tables by using values common to each. ANSI standard SQL specifies four types of JOIN: INNER, OUTER, LEFT, and RIGHT. As a special case, a table (base table, view, or joined table) can JOIN to itself in a self-join.
What are the types of join?
Inner Join: Inner join returns only the rows that have a match in both joined tables.
Right Outer Join: Right join returns all the rows from the right hand side table even though there are no matches in the left hand side table.
Left Outer Join: Left join returns all the rows from left hand side table even though there are no matches in the right hand side table.
Full Outer Join: Full join returns all rows in all joined tables are included, whether they are matched or not. Cross Join: Cross join return all rows from the left table. Each row from the left table is combined with all rows from the right table. Cross joins are also called Cartesian products.
Read more at http://msdn.microsoft.com/
Related posts:
SQL Questions and Answers – Part 3
SQL Questions and Answers – Part 2
SQL Questions and Answers – Part 1
What is a constraint?
Constraints let you define the way the Database Engine automatically enforces the integrity of a database. Constraints define rules regarding the values allowed in columns and are the standard mechanism for enforcing integrity. SQL Server supports the following classes of constraints:
NOT NULL specifies that the column does not accept NULL values.
CHECK constraints enforce domain integrity by limiting the values that can be put in a column.
UNIQUE constraints enforce the uniqueness of the values in a set of columns.
PRIMARY KEY constraints identify the column or set of columns that have values that uniquely identify a row in a table.
FOREIGN KEY constraints identify and enforce the relationships between tables.
Read more at http://msdn.microsoft.com/
What is a unique constraint?
A Unique constraint uniquely identified each record in a table. This provides uniqueness for the column or set of columns. Use a Unique constraint when you want to enforce the uniqueness of a column, or combination of columns, that is not the primary key. Unique constraint creates a non-clustered index on the column. Unique Key allows only one NULL Value.
What is a Foreign Key (FK)?
A foreign key (FK) is a column or combination of columns that is used to establish and enforce a link between the data in two tables. You can create a foreign key by defining a FOREIGN KEY constraint when you create or modify a table.
Read more at http://msdn.microsoft.com/
What is the difference between Primary Key (PK) and Unique Key (UK)?
A Primary Key (PK) can not have a Null value. A Unique Key can have one Null value.
Primary Key creates a clustered index on the column. Unique Key creates a non-clustered index on the column.
Each table may have only one PK but many unique constraints.
What is a join?
An SQL join clause combines records from two or more tables in a database. A JOIN is a means for combining fields from two tables by using values common to each. ANSI standard SQL specifies four types of JOIN: INNER, OUTER, LEFT, and RIGHT. As a special case, a table (base table, view, or joined table) can JOIN to itself in a self-join.
What are the types of join?
Inner Join: Inner join returns only the rows that have a match in both joined tables.
Right Outer Join: Right join returns all the rows from the right hand side table even though there are no matches in the left hand side table.
Left Outer Join: Left join returns all the rows from left hand side table even though there are no matches in the right hand side table.
Full Outer Join: Full join returns all rows in all joined tables are included, whether they are matched or not. Cross Join: Cross join return all rows from the left table. Each row from the left table is combined with all rows from the right table. Cross joins are also called Cartesian products.
Read more at http://msdn.microsoft.com/
Related posts:
SQL Questions and Answers – Part 3
SQL Questions and Answers – Part 2
SQL Questions and Answers – Part 1
Labels:
computer programming,
databases,
interview,
questions and answers,
sql
Subscribe to:
Posts (Atom)