Posts

Showing posts from November, 2021

Linux 'nohup' command

  That's what makes Linux so good: you put in something, and that effort multiplies. It's a positive feedback cycle.                ----- Linus Torvald   nohup is a POSIX command which means "no hang up". Its purpose is to execute a command such that it ignores the HUP (hangup) signal and therefore does not stop when the user logs out. An output that would normally go to the terminal goes to a file called nohup.out, if it has not already been redirected. The first of the commands below starts the program abcd in the background in such a way that the subsequent logout does not stop it.                                  $ nohup abcd &                                  $ exit On Linux, running a job with  nohup  automatically clos...

WebDriverIO installation

  webdriverIO setup and installation commands: -- npm init -- npm install webdriverio --save-dev -- npm install @wdio/cli -- npx wdio config -- npm install chai --save-dev -- npm install chai-webdriverio --save-dev -- npm install local-runner --save-dev Allure Report https://khyatisehgal.wordpress.com/2020/08/14/generating-allure-reports-in-webdriverio/

Pizza cut problem

 What is the maximum number of pieces possible for n cuts in a pizza? class MaxPieces {             // Function for finding maximum pieces      // with n cuts.      static int findMaximumPieces( int n)      {          return 1 + n * (n + 1 ) / 2 ;      }             // Driver Program to test above function      public static void main(String arg[])      {                     System.out.print(findMaximumPieces( 3 ));      } }