
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 26504 Articles for Server Side Programming
1K+ Views
We might have to draw lines on an image for various purposes like drawing, scribbling, tracking the movements of a point etc. so it is necessary to know how to connect 2 points in image processing. OpenCV is a library of programming functions primarily for real-time computer vision. The library is cross-platform and licensed as free and open source software under the Apache License. In this article, we will learn how we can connect a new point to the previous point on an image with a straight line using OpenCV-Python. Connecting a Points on with the Previous One ... Read More
12K+ Views
OpenCV is a library of programming functions primarily for real-time computer vision. The library is cross-platform and licensed as free and open source software under the Apache License. It is written in C++ and has Python bindings that make it easy to use in Python applications. In this article we are going to learn how to Convert BGR and RGB with python and OpenCV. Before proceeding further first of all let us understand BGR and RGB. What are BGR and RGB RGB and BGR are both color models used to represent colors in digital images. However, the main difference between ... Read More
3K+ Views
Python is a powerful programming language that has various applications in the world of software engineering and is very widely used. We can create various types of applications using Python. We can also make a CLI script in Python which can be used to automate many tasks. We can also then package the CLI scipt. For these scripts to be used by other we need to package and distribute these applications. So we must know how we can package a command line python script. This article will guide you through all the steps needed to package a python script and ... Read More
367 Views
Python is a very popular and powerful programming language which is used to create a large number of applications with different purpose. A command line interface script or CLI script is a script that performs a specific task which is scripted, when it is executed through command line and it is used to automate so many tasks. A CLI script is very useful for developers. We can also create these CLI scripts in python. After creating a CLI script we can also package it and share it with other programmers to use. Therefore, we must know how to package ... Read More

692 Views
In Haskell, we will convert double type variables into string by using user-defined function, doubleToString along with show function and Text.Printf and Data.Text module. In the first example, we are going to use ( let valueString = show input) and in the second example, we are going to use (doubleToString d = printf "%.2f" d). And in the third example, we are going to use (doubleToString d = unpack $ pack $ show d). Algorithm Step 1 − The program execution will be started from main function. The main() function has whole control of the program. It ... Read More

1K+ Views
In Haskell, we will convert string type variables into double by using user-defined function, stringToDouble along with read annotation, readMaybe and double functions. In the first example, we are going to use ( let value = read input :: Double) and in the second example, we are going to use (stringToDouble s = readMaybe s). And in the third example, we are going to use (stringToDouble s = case double $ pack s of). Algorithm Step 1 − The program execution will be started from main function. The main() function has whole control of the program. It ... Read More

904 Views
In Haskell, we will convert double type variables into int by using user-defined function, doubleToInt along with floor, round and ceiling functions. In the first example, we are going to use (doubleToInt d = floor d) function and in the second example, we are going to use (doubleToInt d = round d). And in the third example, we are going to use (doubleToInt d = ceiling d). Algorithm Step 1 − The doubleToInt function is defined using floor function as, doubleToInt d = floor d. Step 2 − The program execution will be started from main function. The ... Read More

2K+ Views
In Haskell, we will convert int type variables into double by using user-defined function, intToDouble along with fromIntegral, realToFrac and realPart functions. In the first example, we are going to use (intToDouble n = fromIntegral n) function and in the second example, we are going to use (intToDouble n = realToFrac n). And in the third example, we are going to use (intToDouble n = realPart (fromIntegral n :+ 0)). Algorithm Step 1 − The intToDouble function is defined using fromIntegral function. Step 2 − The program execution will be started from main function. The main() function has ... Read More

3K+ Views
In Haskell, we will convert int type variables into string by using user-defined function, intToString along with show, map and printf functions. In the first example, we are going to use (intToString n = show n) function and in the second example, we are going to use (intToString n = intercalate "" (map show [n])). And in the third example, we are going to use (intToString n = printf "%d" n). Algorithm Step 1 − The intToString function is defined using show function as, intToString n = show n. Step 2 − The program execution will be started ... Read More

1K+ Views
In Haskell, we will convert string type variables into integer by using user-defined function, stringToInt along with read and readMaybe functions. This can also be implemented using pattern matching and recursion. In the first example, we are going to use (stringToInt str = readMaybe str) function and in the second example, we are going to use (stringToInt "" = Nothing; stringToInt ('-':xs) = negate ; stringToInt xs; stringToInt xs = case reads xs of [(n, "")] -> Just n and _ -> Nothing). Algorithm Step 1 − The stringToInt function is defined using readMaybe function Step 2 ... Read More