Friday, March 30, 2018

Basic Linux Commands

There is the basic linux command and it's operation

  • ls – List

    ls lists the contents (files and folders) of the current working directory.

  • mkdir – Make Directory

    mkdir makes (or creates) a new directory.

  • pwd – Print Working Directory

    pwd prints the current working directory.

  • cd – Change Directory

    cd sets the given folder (or directory) as the current working directory for the current running session of the terminal

  • rmdir – Remove Directory

    rmdir removes (or deletes) the given directory.

  • rm – Remove

    rm removes the given file or folder. You can use rm -r to delete folders recursively.

  • cp – Copy

    cp copies the file or folder from one location to another location. You can use its cp -r option to copy folders recursively.

  • mv – Move

    mv moves a file or folder from one location to another location.

  • help

    --help lists all the available commands in the terminal. You can use ‘-h’ or ‘–help’ (help has two hyphens here) option with any command to get help for that specific command.

  • man – Manual

    man shows the manual page for the given command.

  • who – Who Is logged in

    who shows the list of currently logged in users.

  • exit

    exit ends the current terminal (bash) session.

  • shutdown

    shutdown shuts down your computer. You can use shutdown -r to restart your computer.


You can refer this screenshots to get best understand of above commands




$ man ls

Wednesday, March 28, 2018

Best offline documentation browser

Zeal

Zeal is the best offline documentation browser for software developers.



Zeal comes with 192 awesome docsets and These docsets are generously provided by Dash. You can also create your own.




Zeal can install on linux by
  $ sudo apt-get install zeal 





Introduction to arduino

Arduino is an open-source platform used for building electronics projects. Arduino consists of both a physical programmable circuit board (micro controller) and a IDE that runs on your computer. IDE used to write and upload computer code to the physical board.

Getting Start
buy an Arduino from e bay or arduino site or what ever you known place. There is many arduino product had interdused. Hear we are going to talk about uno mega and nano.

install the IDE
windows https://www.arduino.cc/en/Guide/Windows
Linux https://www.arduino.cc/en/Guide/MacOSX
Portable https://www.arduino.cc/en/Guide/PortableIDE
Mac https://www.arduino.cc/en/Guide/MacOSX
Using IDE
Standerd Function
  • void setup() { /* run once */ }// The code inside this function is run only once, when new code has been uploaded.

  • void loop() { /* run repeatedly */ }// The code inside this runs on a loop. Without any delay function, the default rate of delay is 1ms.

  • PinMode(pin_number, INPUT/OUTPUT);// This function declares a given pin to be input or output pin.

  • digitalWrite(pin_number,0/1/HIGH/LOW);//This function produces a digital signal of either HIGH(5V) or LOW(0V) on the given pin.

  • analogWrite(pin_number, value);//This function produces an analog signal varying between 0 to 5V on the given pin.

  • delay(time);// This function provides delay of given time (in milliseconds) during execution of the code.

  • digitalRead(pin_number);//This function reads the voltage on the given pin and outputs its value as either 0 or 1.

  • analogRead(pin_number);//This function reads the voltage on the given pin and outputs its value as an integer ranging from 0 to 1023.

  • Serial.begin(baud_rate);//This function begins serial communication between the microcontroller and the arduino.

  • Serial.print();//This function prints the value in its argument on the serial monitor of the arduino IDE.

First Arduino project blinking LED
Circuit Diagram
Code
// the setup function runs once when you press reset or power the board 
void setup() { 

pinMode(LED_BUILTIN, OUTPUT);      // initialize digital pin LED_BUILTIN as an output. 
               
             }  

// the loop function runs over and over again forever 
void loop() { 
digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level) 
delay(1000);                       // wait for a second 
digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW 
delay(1000);                       // wait for a second 

             } 

How to uplode the code Connect Arduino to your computer and select youer arduino bord from the tool=>bord=> and port from tool=>port=> you can compile and uplode the code using sketch menu
Assemble your circuit and upload the code. Enjoy the arduino experiences.

Sunday, March 25, 2018

Home made PCB ruler

PCB ruler is a device which use for understanding actual dimension of stranded electronic components. PCB rulers can bye from market easily


You can easily create PCB ruler by using any PCB printing method. This is an PCB ruler design by adafruit using cad-eagle


Saturday, March 24, 2018

How to install Node.js & npm on linux

To install npm in linux you can use terminal
 $ sudo apt-get install npm 

To install node.js you can use following commands

Node.js 8

curl -sL https://deb.nodesource.com/setup_8.x 
sudo -E bash - 
sudo apt-get install -y nodejs 

Node.js 9
curl -sL https://deb.nodesource.com/setup_9.x 
sudo -E bash - 
sudo apt-get install -y nodejs 

Update Node.js
sudo npm cache clean -f 
sudo npm install -g n 
sudo n stable 

Friday, March 23, 2018

How to use git

You can Install git from official web site
Basic git commands


$ git init                        //Initialize Local Git Repository   
$ git add                   //Add files to Index   
$ git status                      //Check Status of Working Tree   
$ git commit                      //Commit Changes in Index   
$ git commit -m 'message'         //Commit Changes in Index with message   
$ git push                        //push To Remote Repository   
$ git pull                        //pull Latest From Remote Repository   
$ git clone                       //clone Repository Into A New Directory   
$ git branch          //create a branch   
$ git checkout        //Switch between branch   
$ git merge           //Merge the branch 


Thursday, March 15, 2018

How to add item list on latex

You can add item list on latex using this code


Code
 \begin{itemize}     
\item MVC     
\item Singleton     
\item Factory     
\item DAO     
\item DTO     
\item Facade     
\item Observer 
\end{itemize} 

Monday, March 5, 2018

How to add image to latex

You can add image to latex document with wrapping

Code
  \usepackage{float}   
\begin{figure}[H]     
\begin{center}          
\includegraphics[width=0.9\textwidth]{image URL}     
\end{center}     
\caption{Image Caption} 
\end{figure}  

How to add my website to google search

you can submit your own website to the Google search engine using Search Console Which provide by Google