How To Install OpenCV-Python in Fedora

Hello Everyone,In this tutorial we will learn to setup OpenCV-Python in  Fedora operating system. We have tested this tutorial in Fedora 18 (64-bit) and Fedora 19 (32-bit). Basically, There are two ways to install OpenCV-Python in Fedora but here we will install it using relatively easy method.

1) Install  OpenCV-Python from Pre-built Binaries

Install all packages with the command blow in terminal.

$ yum install numpy opencv*

Now, it’s time to test whether it has been installed properly or not. Open Python IDLE (or IPython) and type the codes in Python terminal.

>>> import cv2
>>> print cv2.__version__

If there are no errors then  OpenCV-Pythons is installed properly.

Arithmetic operators in Python With Example

Generally, Arithmetic operators are used to perform mathematical operations like addition, subtraction, multiplication, divison and more.

+ Addition a + b = 10
Subtraction a – b = -10
* Multiplication a * b = 20
/ Division b / a = 10
% Modulus (Divides and returns remainder) b % a = 0
** Exponent 10 ** 3
Result: 1000
// Floor Division (Division that results into whole number adjusted to the left in the number line. The result of this division is the integral part of the result) >>> 10 // 3
3 >>> 10.0 // 3
3.0 >>>

Let’s take an example, b=10,c =0

a = 21
b = 10
c = 0

c = a + b
print “Result of c is “, c

c = a – b
print “Result of c is “, c

c = a * b
print “Result of c is “, c

c = a / b
print “Result of c is “, c

c = a % b
print “Result of c is “, c

a = 2
b = 3
c = a**b
print “Result of c is “, c

a = 10
b = 5
c = a//b
print “Result of c is “, c

Produces the following result −

Result of c is 31
Result of c is 11
Result of c is 210
Result of c is 2
Result of c is 1
Result of c is 8
Result of c is 2

Python Operators

This Chapter will be give you some idea about the various built-in python operators. In python, An operator is an object that is capable of manipulating a value. Generally it is being used to manipulate the value of operands. For example, in “1 + 2”, Where 1 and 5″are called operands and + is called operator.

Types of Operator

Python language supports the following types of operators.

  • Arithmetic Operators
  • Comparison (Relational) Operators
  • Bitwise Operators
  • Logical Operators
  • Membership Operators
  • Assignment Operators
  • Identity Operators

 

How to Install Nginx Latest Version on Ubuntu.

In this tutorial, we’re going to learn how to install Nginx latest version on Ubuntu. There are many  web server available in the market and Nginx is one of the popular webserver being used these days.

Good news is that Nginx package is availale by default in ubuntu’s repositories. In order to install latest version of Nginx, you need to add the official Nginx repository.

Open up your sources.list file by typing following command:

sudo nano /etc/apt/sources.list 

Now, press CTRL+W then CTRL+V to jump to the end of the file. After this, append the following two lines at the end of the file.

deb http://nginx.org/packages/mainline/ubuntu/ xenial nginx
deb-src http://nginx.org/packages/mainline/ubuntu/ xenial nginx 

Now, import Nginx public key using the commands below.

wget http://nginx.org/keys/nginx_signing.key

sudo apt-key add nginx_signing.key 

Steps To Install Nginx:

sudo apt-get update
sudo apt-get install nginx

Note: You should remove Nginx if you have installed it from Ubuntu software repository before instlling it.

sudo apt remove nginx nginx-common nginx-full nginx-core

Now after installing the Nginx, you need to unmask nginx.service file using the command below.

sudo systemctl unmask nginx

Now start Nginx.

sudo systemctl start nginx

 

How To Install Node.js In Ubuntu.

Node.js® is a JavaScript runtime built on Chrome’s V8 JavaScript engine. It is mostly used for developing server side application. Node is designed to build scalable network applications. In this post, we will learn to install Node.js In Ubuntu.

Run the following command.

sudo apt-get install nodejs

This will install all the necessary packages for Node.js and now we need to install node package manager.

sudo apt-get install npm

 After all above steps, You need to create a symbolic link to the Node.js folder.

At last,  run the Node –v command and npm –v to see the installed Node and it’s version

Now, you can start buidling apps 🙂

Install IntelliJ IDEA In Ubuntu 16.04, 17.04

Intellij IDEA is one of the most popular IDE.  Today we will talk about how to install Intellij IDEA in Ubuntu operating system. IntelliJ IDEA is a Java integrated development environment (IDE) developed by jetbrain or IntelliJ.

Steps To Install IntelliJ IDEA On Ubuntu Linux

Method 1

Before installing Intellij, you have to make sure that you have Ubuntu Make installed in your system. And even if you haven’t installed, you can install it by using following command.

sudo apt install ubuntu-make
sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make
sudo apt-get update
sudo apt-get install ubuntu-make

Now install IntelliJ IDEA Community edition by using below command:

umake ide idea

To install the IntelliJ IDEA Ultimate edition:

umake ide idea-ultimate

Steps To Uninstall  IntelliJ From your Ubuntu.

umake -r ide idea
umake -r ide idea-ultimate

 

 

Method 2

Install  IntelliJ using PPA.( This method is valid for all Linux distributions based on Ubuntu)

Open Terminal and type the below command.

sudo add-apt-repository ppa:mmk2410/intellij-idea-community
sudo apt-get update
sudo apt-get install intellij-idea-community

Only Community version is available via this PPA.

To remove IntelliJ installed from the above PPA:

sudo apt-get remove intellij-idea-community
sudo add-apt-repository --remove ppa:mmk2410/intellij-idea-community

Who are We?

This is only a sample article, you can now start creating your own content.

Why Choose KnowAll?

KnowAll from HeroThemes is the ultimate Knowledge Base theme for WordPress. It comes pre-packaged with all the tools to setup and manage a successful support center. Reduce support tickets and have happier Customers

KnowAll is developed by HeroThemes, the number #1 knowledge base theme and plugin developers for WordPress. HeroThemes products are trusted by thousands of customers worldwide, thanks to dedicated one-to-one support and focused design.

Heroic Knowledge Base is packaged with KnowAll, it is the ultimate Knowledge Base plugin for WordPress. Offering some amazing knowledge base functionality, including analytics, knowledge base tools and dedicated widgets.

Purposeful Knowledge Base Design

Focused Design

KnowAll puts the knowledge base content front and center. On the homepage, the categories are displayed. Category icons give strong visual presence to your knowledge base while presenting a clean, intuitive design.

Instant Answers

Live search makes content discoverable in seconds, meaning users can get answers quicker than ever. Tag and category search is also supported.

Table of Contents

The table of contents makes navigating articles easy, it automatically detects headers in your articles and creates a navigation menu widget in the sidebar. It can be set to sticky, following the content and giving visual cues for longer articles.

Key Features

KnowAll is a knowledge base, wiki, FAQ theme for WordPress and comes packed with the following features:

  • Separate knowledge base article posts,
  • Article attachments,
  • Article view count metrics,
  • Custom categories,
  • Custom tags,
  • Custom slugs and urls,
  • Custom knowledge base sidebar,
  • WPML multilingual and multi language compatible,
  • Special knowledge base widgets,
  • Article voting,
  • Analytics dashboard,
  • User access control.

Knowledge Base WordPress Plugin

What is Heroic Knowledge Base?

The Heroic Knowledge Base is the Knowledge Base plugin for WordPress. It is perfect for providing customers with answers to common queries, or as general database of resources for visitors.

This plugin has been designed and developed by HeroThemes, the premier WordPress knowledge base specialists, our themes and tools are trusted by thousands of users worldwide, all backed by the HeroThemes support platform.

The Heroic Knowledge Base is a knowledge base, wiki, FAQ plugin for WordPress and comes packed with the following features:

  • Separate knowledge base article posts,
  • Article attachments,
  • Article view count metrics,
  • Custom categories,
  • Custom tags,
  • Custom slugs and urls,
  • Custom knowledge base sidebar,
  • WPML multilingual and multi language compatible,
  • Special knowledge base widgets,
  • Voting support with optional plugin,
  • User access support with optional plugin.

It’s simple to get started, works with any theme, and even includes demo content like this!

(Psssst. It’s included in KnowAll knowledge base theme package for WordPress)

Another Legal Page

This is only a sample article, you can now start creating your own content.

Why Choose KnowAll?

KnowAll from HeroThemes is the ultimate Knowledge Base theme for WordPress. It comes pre-packaged with all the tools to setup and manage a successful support center. Reduce support tickets and have happier Customers

KnowAll is developed by HeroThemes, the number #1 knowledge base theme and plugin developers for WordPress. HeroThemes products are trusted by thousands of customers worldwide, thanks to dedicated one-to-one support and focused design.

Heroic Knowledge Base is packaged with KnowAll, it is the ultimate Knowledge Base plugin for WordPress. Offering some amazing knowledge base functionality, including analytics, knowledge base tools and dedicated widgets.

Purposeful Knowledge Base Design

Focused Design

KnowAll puts the knowledge base content front and center. On the homepage, the categories are displayed. Category icons give strong visual presence to your knowledge base while presenting a clean, intuitive design.

Instant Answers

Live search makes content discoverable in seconds, meaning users can get answers quicker than ever. Tag and category search is also supported.

Table of Contents

The table of contents makes navigating articles easy, it automatically detects headers in your articles and creates a navigation menu widget in the sidebar. It can be set to sticky, following the content and giving visual cues for longer articles.

Key Features

KnowAll is a knowledge base, wiki, FAQ theme for WordPress and comes packed with the following features:

  • Separate knowledge base article posts,
  • Article attachments,
  • Article view count metrics,
  • Custom categories,
  • Custom tags,
  • Custom slugs and urls,
  • Custom knowledge base sidebar,
  • WPML multilingual and multi language compatible,
  • Special knowledge base widgets,
  • Article voting,
  • Analytics dashboard,
  • User access control.