Saturday, 31 December 2022

Basic JavaScript cheat

 / Declare a variable

let x;


// Assign a value to a variable

x = 5;


// Declare a variable and assign a value at the same time

let y = 10;


// Declare a constant

const PI = 3.14;


// Data types

let str = 'hello'; // string

let num = 42; // number

let bool = true; // boolean

let obj = {key: 'value'}; // object

let arr = [1, 2, 3]; // array

let func = function() {}; // function


// If statement

if (x > 10) {

  console.log('x is greater than 10');

} else {

  console.log('x is not greater than 10');

}


// For loop

for (let i = 0; i < 10; i++) {

  console.log(i);

}


// While loop

let j = 0;

while (j < 10) {

  console.log(j);

  j++;

}


// Do while loop

let k = 0;

do {

  console.log(k);

  k++;

} while (k < 10);


// Functions

function sayHello(name) {

  console.log(`Hello, ${name}!`);

}


sayHello('John');


// Arrow functions

let add = (x, y) => {

  return x + y;

};


console.log(add(5, 10));


// Objects

let person = {

  name: 'John',

  age: 30,

  sayHello: function() {

    console.log(`Hello, my name is ${this.name}`);

  }

};


console.log(person.name);

person.sayHello();


// Array methods

let numbers = [1, 2, 3, 4, 5];


// forEach

numbers.forEach(function(num) {

  console.log(num);

});


// map

let doubled = numbers.map(function(num) {

  return num * 2;

});

console.log(doubled);


// filter

let evens = numbers.filter(function(num) {

  return num % 2 === 0;

});

console.log(evens);


// reduce

let sum = numbers.reduce(function(total, num) {

  return total + num;

}, 0);

console.log(sum);

HTML cheat sheet

 Here is a basic HTML cheat sheet to help you get started with writing HTML code:

<!-- This is an HTML comment -->

<!-- These are the basic tags that you will need to structure your content -->

<html> 

  <head> 

    <!-- The head element typically contains information about the page, such as the title and any meta tags -->

  </head> 

  <body> 

    <!-- The body element contains the actual content of the page -->

  </body> 

</html>


<!-- The main heading of the page is marked up with the h1 element -->

<h1>This is a main heading</h1>


<!-- Subheadings are marked up with h2, h3, h4, h5, and h6 elements -->

<h2>This is a subheading</h2>

<h3>This is a subheading</h3>

<h4>This is a subheading</h4>

<h5>This is a subheading</h5>

<h6>This is a subheading</h6>


<!-- Paragraphs are marked up with the p element -->

<p>This is a paragraph.</p>


<!-- Links are marked up with the a element -->

<a href="http://www.example.com">This is a link</a>


<!-- Images are marked up with the img element -->

<img src="image.jpg" alt="This is an image">


<!-- Lists are marked up with the ul (unordered) or ol (ordered) elements, and list items are marked up with the li element -->

<ul>

  <li>Item 1</li>

  <li>Item 2</li>

  <li>Item 3</li>

</ul>


<ol>

  <li>Item 1</li>

  <li>Item 2</li>

  <li>Item 3</li>

</ol>


<!-- Tables are marked up with the table element, and rows are marked up with the tr element. Cells are marked up with the td (table data) or th (table header) elements -->

<table>

  <tr>

    <th>Heading 1</th>

    <th>Heading 2</th>

  </tr>

  <tr>

    <td>Row 1, Cell 1</td>

    <td>Row 1, Cell 2</td>

  </tr>

  <tr>

    <td>Row 2, Cell 1</td>

    <td>Row 2, Cell 2</td>

  </tr>

</table>


<!-- Forms are marked up with the form element, and form fields are marked up with various input elements -->

<form>

  <label for="name">Name:</label><br>

  <input type="text" id="name" name="name"><br>

  <label for="email">Email:</label><br>

  <input type="email" id="email" name="email"><br>

  <input type="submit" value="Submit">

</form>

Friday, 30 December 2022

Basic principles of software project management:

Software project management involves the planning, organizing, and controlling of resources to deliver a software product within a specific timeline and budget. Here are some basic principles of software project management:

  • Define clear project goals: Establishing clear and measurable goals at the outset of a project helps to ensure that the project is focused and that progress can be tracked.

  • Create a project plan: A project plan outlines the tasks and milestones that need to be completed to deliver the software product. It should include a timeline, budget, and resources required.

  • Estimate project duration and cost: Accurate project duration and cost estimates are essential for planning and budgeting purposes. These estimates should be based on historical data and the complexity of the project.

  • Select the right project management methodology: There are many different project management methodologies to choose from, such as Agile, Waterfall, and Lean. Selecting the right methodology will depend on the nature of the project and the preferences of the team.

  • Monitor and control the project: It is important to regularly monitor the progress of the project and make adjustments as needed to stay on track. This may involve revising the project plan, adjusting the budget, or reassigning tasks.

  • Communicate effectively: Good communication is crucial for the success of any software project. It is important to establish clear lines of communication within the team and with stakeholders, and to ensure that everyone is kept informed of progress and any issues that arise.

By following these basic principles of software project management, you can effectively plan and execute your software project and deliver a high-quality product.

Project Management

 Question: What are Project Management Knowledge Areas and Processes ?

Project management is the process of planning, organizing, and controlling the

resources needed to complete a specific project within a given timeframe and budget.

There are several knowledge areas and processes that are commonly used in project

management:

1. Project integration management: This knowledge area involves coordinating all

aspects of a project, including the planning, execution, and monitoring of the project.

2. Project scope management: This knowledge area involves defining and controlling the

scope of the project, including the work that needs to be completed and the resources

that will be required.

3. Project time management: This knowledge area involves estimating, scheduling, and

controlling the time required to complete the project.

4. Project cost management: This knowledge area involves estimating, budgeting, and

controlling the costs of the project.

5. Project quality management: This knowledge area involves establishing and

maintaining standards for the quality of the project's deliverables.

6. Project resource management: This knowledge area involves acquiring and managing

the resources needed to complete the project, including personnel, equipment, and

materials.

7. Project communication management: This knowledge area involves planning and

coordinating the communication among project stakeholders, including the project

team, customers, and stakeholders.

8. Project risk management: This knowledge area involves identifying, analysing, and

responding to risks that may affect the project.


In addition to these knowledge areas, there are also several processes that are commonly used

in project management, including project initiation, planning, execution, monitoring and

controlling, and closing. These processes involve a series of activities that help to ensure that

the project is completed successfully.


Question: What are the different processes of project quality management?

Project quality management is the process of ensuring that the deliverables of a

project meet the defined quality standards and requirements. There are several processes that

are commonly used in project quality management, including:

1. Planning quality: This process involves identifying the quality standards and

requirements for the project, as well as developing a plan for ensuring that these

standards are met throughout the project. This may include setting up quality

checkpoints, establishing quality metrics, and developing quality assurance and

control processes.

2. Assessing quality: This process involves evaluating the quality of the project at

various stages to ensure that it meets the established standards and requirements. This

may include conducting inspections, testing, and reviewing project documents and

deliverables.

3. Controlling quality: This process involves implementing the quality plan and ensuring

that all project activities and deliverables meet the established quality standards. This

may include monitoring and measuring the quality of the project, identifying and

addressing any quality issues, and taking corrective action as needed.

4. Improving quality: This process involves continuously seeking ways to improve the

quality of the project, including identifying and implementing process improvements,

conducting root cause analysis to identify and eliminate quality issues, and providing

ongoing training and support to project team members.

5. Auditing quality: This process involves conducting periodic reviews of the project to

ensure that it is meeting the established quality standards and requirements. This may

include conducting internal or external quality audits, reviewing project documents,

and assessing the effectiveness of the quality management processes.


Overall, these processes work together to ensure that the project deliverables meet the defined

quality standards and requirements and that any issues that arise are identified and addressed

in a timely manner.


Question :What could be the reasons for project termination?

There are many reasons why a project may be terminated. Some common reasons

include:

1. Insufficient funding: If the project is no longer financially viable, it may be

terminated.

2. Change in business priorities: If the project no longer aligns with the organization's

goals or priorities, it may be terminated.

3. Poor performance: If the project is not meeting its objectives or is consistently behind

schedule, it may be terminated.

4. Change in leadership: If there is a change in leadership at the organization, the new

leadership may decide to terminate the project.

5. Unforeseen circumstances: If unexpected events or circumstances arise that make it

impossible to continue with the project, it may be terminated.

6. Lack of progress: If the project is not making sufficient progress, it may be

terminated.

7. Scope creep: If the project scope expands significantly beyond what was originally

planned, it may be terminated.


It's important to note that project termination should not be undertaken lightly, as it can have

significant consequences for all stakeholders involved. Before deciding to terminate a project,

it's important to carefully consider the potential impacts and alternatives.


Apex Cheat Sheet

Here is a basic Apex cheat sheet that you can use as a reference while creating your Apex class or in your Interview preparation:

// Declare a class

public class MyClass {


}


// Declare a class with a constructor

public class MyClass {

  public MyClass() {


  }

}


// Declare a class with a method

public class MyClass {

  public void myMethod() {


  }

}


// Declare a class with a property

public class MyClass {

  public Integer myProperty { get; set; }

}


// Declare a class with a static property

public class MyClass {

  public static Integer myProperty { get; set; }

}


// Declare an interface

public interface MyInterface {


}


// Declare an interface with a method

public interface MyInterface {

  void myMethod();

}


// Declare an interface with a property

public interface MyInterface {

  Integer myProperty { get; set; }

}


// Implement an interface

public class MyClass implements MyInterface {

  public void myMethod() {


  }


  public Integer myProperty { get; set; }

}


// Declare an enum

public enum MyEnum {

  VALUE1,

  VALUE2,

  VALUE3

}


// Declare a trigger

trigger MyTrigger on MyObject__c (before insert, before update) {

  // trigger logic here

}


// Declare a batch Apex class

global class MyBatchClass implements Database.Batchable<SObject> {

  global Database.QueryLocator start(Database.BatchableContext bc) {

    // query logic here

  }


  global void execute(Database.BatchableContext bc, List<SObject> scope) {

    // processing logic here

  }


  global void finish(Database.BatchableContext bc) {

    // cleanup logic here

  }

}


// Declare a scheduled Apex class

global class MyScheduledClass implements Schedulable {

  global void execute(SchedulableContext sc) {

    // scheduled logic here

  }

}


// Declare a class with a @testmethod

@isTest

private class MyTestClass {

  @isTest

  static void myTestMethod() {

    // test logic here

  }

}

I hope this helps!

Sunday, 14 February 2021

 What exactly does Salesforce do?

One of the explanations that Salesforce is so popular is that it's full of features like no other CRM software; features like contact management, workflow creation, task management, opportunity tracking, collaboration tools, customer engagement tools, analytics and an intuitive, mobile-ready dashboard

Sunday, 26 March 2017

Social Media पर दिखता देश का विकास:

सड़क बनी है या नही ,पानी आ रहा है या नही ,बीजली आ रही है या नही सोशियल मीडीया पर बहस जारी है ! आज के इस युग मे भी सरकार को अपनी योजनयो को भी एक तो जनता के लए ,दूसरी सोशियल मीडीया पर ,तीसरी मीडीया पर मगर आज की सरकारे जनता के लए तो छोड़कर सोशियल मीडीया और मीडीया पर फोकस कर रही है अगर इन चीज़ो पर फोकस कर लिया तो समझो चुनाव जीत लिया गया ! सरकार अपने कामो को दिखावा मीडीया के कमेरे के समाने ज़्यादा कर रही है !!

*सरकार सड़क पर :मीडीया के कमेरे के सामने
*सरकार सफाई मे जुटी है:मीडीया के कमेरे के सामने
*सरकार निर्देश दे रही :मीडीया के कमेरे के सामने
*सरकार बैठके कर रही है :मीडीया के कमेरे के सामने
*सरकार पैदल ही पाँच मंज़िल नाप रही है:मीडीया के कमेरे के सामने 
*कमेरे के सामने ही इप्स,दगप को निर्देश :मीडीया के कमेरे के सामने
*सरकार रोमियो को खदेड़ रही है :मीडीया के कमेरे के सामने
*बड़ी बड़ी मीटिंग कमेरे के सामने :मीडीया के कमेरे के सामने
*पोलीस वालो को तलब कमेरे के सामने :मीडीया के कमेरे के सामने
*सरकार कुछ जानना चाहती है तो कमेरे के सामने:मीडीया के कमेरे के सामने 
*झाड़ू लग रहा है तो मीडिया के सामने :मीडीया के कमेरे के सामने
*कॅबिनेट मीटिंग कमेरे के सामने 

विनीत यादव!