Thursday, 23 July 2020

Scrum Tutorial - part 1

Scrum Tutorial - part 1

Question: What is Scrum?
Scrum is an agile framework which is used for developing, delivering the software products.
Now its also used in other fields like research, sales and marketing.

Question: Who is Scrum team?
  1. Product owner:
    The Product Owner is responsible for maximising the value of the product resulting from work of the Development Team.
  2. Developers:
    The Development Team consists of professionals who do the work.
  3. Scrum Master:
    The Scrum Master is responsible for promoting and supporting Scrum as defined in the Scrum Guide.

Question: What are uses of Scrum?
  1. Research and identify viable markets, technologies, and product capabilities
  2. Develop products and enhancements
  3. Develop and sustain Cloud (online, secure, on-demand) and other operational environments for product
  4. Maintain products

Question: What are 3 pillars of Scrum?
  1. Transparency
    What task have done and what are pending and what team are doing will be visible to the Scrum team members and stockholder of product.
  2. Inspection
    Scrum users must frequently inspect Scrum artifacts and progress.
  3. Adaptation
    If an inspector determines that one or more aspects, then that can be taken.

Question: What are events of scrum?
  1. Sprint Planning
  2. Daily Scrum
  3. Sprint Review
  4. Sprint Retrospective

Question: What are Scrum Master Service to the Product Owner?
  1. Finding techniques for effective Product Backlog management
  2. Helping the Scrum Team understand the need for clear and concise items
  3. Ensuring the Product Owner knows how to arrange the Product Item to maximize value
  4. Facilitating Scrum events as requested or needed.
  5. Ensuring that goals, scope, and product domain are understood by everyone on the Scrum Team

Question: What are Scrum Master Service to the Product Owner?
  1. Removing impediments to the Development Team’s progress
  2. Coaching the Development Team in self-organization and cross-functionality
  3. Facilitating Scrum events as requested or needed
  4. Coaching the Development Team
  5. Helping the Development Team to create high-value products

Question: What are Scrum Master Service to the Organisation?
  1. Causing change that increases the productivity of the Scrum Team
  2. Leading and coaching the organisation in its Scrum adoption
  3. Planning Scrum implementations within the organisation
  4. Helping employees and stakeholders

Wednesday, 22 July 2020

How to determine a user's IP address in node

How to determine a user's IP address in node
Question: How to determine a user's IP address in node?
We can use request.connection.remoteAddress to detect the IP Address in node but sometimes server is running behind the load balancer, In this case we need to check for x-forwarded-for

exports.check_node = function(req, res) {
    var ip = req.headers['x-forwarded-for'] || 
     req.connection.remoteAddress || 
     req.socket.remoteAddress ||
     (req.connection.socket ? req.connection.socket.remoteAddress : null);

Question: How can I use wait In Node.js?
You can use setTimeout function similar to javascript

function function1() {    
    console.log('Welcome to My Console,');

function function2() {    

setTimeout(function2, 3000); //call second
function1(); //Call first

Question: Command to remove all npm modules in windows?
  1. Remove module local
    Go to directory with name of node_modules under current project. DELETE all the folder.
  2. C:\Users\DELL\AppData\Roaming\npm\node_modules
    Delete all the files

Question: Node.js check if path is file or directory?
For this, you need to install the fs module.
var fs = require('fs');
stat = await fs.lstat(PATH_HERE)

Question: What is use of app.use in express?
app.use is a method to configure the middleware used by Express.

Question: Difference between process.stdout.write and console.log?
console.log() calls process.stdout.write with formatted output.
console.log() explains in library
console.log = function (d) {
  process.stdout.write(d + '\n');

Question: How to Detect if file called through require or directly by command line?
if (require.main === module) {
    console.log('called directly');
} else {
    console.log('required as a module');

Question: What is the use of next() in express?
It passes control to the next matching route.
For Example:
app.get('/user/:id?', function(req, res, next){
    var id =;
    if (id) {
        // do something
    } else {