React Hooks Main Points To Note From Documentation

useState() : Takes One argument – the initial value of variable Uses Array destructuring feature. e.g. := const [variableName, functionName] = useState(value) Where : variableName : that will be stored in state functionName: The that will be used to set the value of variableName value : the initial value of variable variableName useEffect() : The … Read moreReact Hooks Main Points To Note From Documentation

Mount Volumes to Windows Server in Hetzner Cloud

At the time of writing this article there were not any instructions for attaching Hetzner cloud volume with Hetzner cloud windows server. Hetzner only provides instructions for Linux and not for windows. Disk Management or Diskpart  utility or any other software was not helpful for me. So, you can do it easily by following below … Read moreMount Volumes to Windows Server in Hetzner Cloud

Install aria2 1.34.0 or 1.35.0 on CentOS 7

I have created a rpm with latest source of aria2. This rpm is built for centos 7. You can download the latest rpm from link below: https://dl.dropboxusercontent.com/s/vrh8kod21mzvvt9/aria2-1.35.0-0.x86_64.rpm Version: 1.35 https://dl.dropboxusercontent.com/s/vrh8kod21mzvvt9/aria2-1.34.0-0.x86_64.rpm Version: 1.34 gpgcheck have to be turned off because rpm is not signed. Run following command to install aria2 : Install the rpm using: How … Read moreInstall aria2 1.34.0 or 1.35.0 on CentOS 7

Compile and Integrate OpenCv 3.4.1 Into Codeblocks 17.12 With GCC 5.1.0

Needed Tools: OpenCv 3.4.1 Windows self-extracting archive Download CodeBlocks 17.12 Without Mingw Download Cmake 3.12 .msi Download TDM-GCC-64 (tdm64-gcc-5.1.0-2.exe) Download Common Sense Download 🙂 Steps: Install and open Cmake Download and Extract Opencv (exe is a type of package. It will ask you the path when you open the opencv.exe)  in directory c:\Opencv Create new … Read moreCompile and Integrate OpenCv 3.4.1 Into Codeblocks 17.12 With GCC 5.1.0

Install a MEAN (MongoDB, Express JS, Angular JS, Node JS) Stack

We have used Centos 7.5 64bit to install the stack. So, follow below steps as root user: yum -y update yum -y install epel-release yum -y update yum -y install node NPM may not be installed try below command: yum -y install npm mkdir /home/web cd /home/web npm install express –save vi /etc/yum.repos.d/mongodb-org-4.0.repo Insert following … Read moreInstall a MEAN (MongoDB, Express JS, Angular JS, Node JS) Stack

Get Interface Speed In Linux Using Shell Script

Following is the shell script you can use to check the current throughput of network interface #!/bin/bash var=0 interface=”eth0″ while [ $var -eq 0 ] do tx=`cat /sys/class/net/$interface/statistics/tx_bytes` rx=`cat /sys/class/net/$interface/statistics/rx_bytes` sleep 1s tx1=`cat /sys/class/net/$interface/statistics/tx_bytes` rx1=`cat /sys/class/net/$interface/statistics/rx_bytes` txw=`expr $tx1 – $tx` rxw=`expr $rx1 – $rx` echo “$txw:$rxw” | cat > /home/speed.txt done Please check $interface variable … Read moreGet Interface Speed In Linux Using Shell Script