Windows 10 Cheatsheet

Command Prompts Shutdown /? and Press ENTER gives you options Shutdown /r exits Windows (prompting you to save any open files) and then restarts Shutdown /h to hibernate the local computer Shutdown /s /fw – This option performs a full shutdown, and then opens the UEFI firmware configuration interface as part of the next startup. Shutdown /r /o – […]

Entity Framework

Entity framework support the development of data-oriented software applications. It enables developers to work with data in the form of domain-specific objects and properties, such as customers and customer addresses, without having to concern themselves with the underlying database tables and columns where this data is stored. Entity framework can be installed on .NET Framework version […]

Getting IPHONE X (10)

After placing an online order for 3 weeks finally on monday 11/20/2017 the IPHONE package was delivered by UPS. Super excited with my new IPHONE. Shipment path: ZhengZhou, China -> Anchorage, AK, USA -> Louisville, KY, United States -> Mather, CA, United States -> Rocklin, CA, United States -> ROSEVILLE, CA, US I must say […]

ASP.NET MVC – 70-486

ASP.NET MVC Framework– is a lightweight, highly testable presentation framework– MVC Framework is defined in the System.Web.Mvc assembly– It makes it easier to manage complexity by dividing an application into the model, the view, and the controller.– It does not use view state or server-based forms. This makes the MVC framework ideal for developers who […]

HTML 5: Web Storage vs Cookies

Web Storage and Cookies are used to store data on client side. Both got its own storage and expiration limits. The benefits of using web storage and cookies is that more secure and large amounts of data can be stored locally and not affecting the website performance. Note: Some browsers have cookies disabled then local […]

Using ROW_NUMBER() with MS SQL SERVER

The introduction of ROW_NUMBER() function with SQL SERVER 2005 solves the problem of calculating row numbers. This is one of the exciting feature and eliminates the problem of creating additional temp tables to achieve the result. ROW_NUMBER function generates unique incrementing integers from 1 and on. They are only allowed in the SELECT and ORDER […]

React: Questions and Answers

What is the difference between using constructor vs getInitialState? When using ES6 classes then you should initialize state in the constructor class MyComponent extends React.Component { constructor(props) { super(props); this.state = { /* initial state */ }; } } Note: – this.state is assigned directly in the constructor, but everywhere else use this.setState() – you […]

Node: TypeError – path must be absolute

Node Errors: TypeError: path must be absolute or specify root to res.sendFile Solution: The error states that you need to specify an absolute path instead of relative path. There are two approach to solve this: Approach 1: dirname+index file – assuming that index.html is in the same directory as the script res.sendFile(__dirname + ‘/index.html’); Approach […]

PHP: Staircase Algorithm

Case Study Consider a staircase of size : # ## ### #### Observe that its base and height are both equal to , and the image is drawn using #symbols and spaces. The last line is not preceded by any spaces. Write a program that prints a staircase of size . Input Format A single […]