Chandu yadav has Published 1091 Articles

Python GNU readline Interface

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:23

855 Views

The readline is UNIX specific module. It defines a number of functions to read and write history files in easier way from python interpreter. We can use this module directly or using the rlcompleter module. This module settings may affect the built-in input() method prompt and also the interactive ... Read More

FILTER_VALIDATE_IP constant in PHP

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:23

780 Views

The FILTER_VALIDATE_IP constant validates an IP address. Flags FILTER_FLAG_IPV4 − The value must be a valid IPv4 address FILTER_FLAG_IPV6 − The value must be a valid IPv6 address FILTER_FLAG_NO_PRIV_RANGE − The value must not be within a private range FILTER_FLAG_NO_RES_RANGE − The value must not be within a reserved ... Read More

What I have to study to make a career in robotics?

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:23

122 Views

To study robotics, you must have a degree in engineering. To make a career in this profession, you should acquire the knowledge of the related fields like electronics, mechanics, and computer science.

Secure Hashes and Message Digest in Python

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:23

2K+ Views

For the secure hash and message digest process, we should use the hashlib module. This module implements a common interface for different secure hash algorithm like SHA1, SHA224, SHA256, SHA512 etc. Also the RSA’s MD5 algorithm. Older algorithms are known as the Message Digest and the new methods are called ... Read More

How to dynamically allocate a 2D array in C?

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:23

17K+ Views

A 2D array can be dynamically allocated in C using a single pointer. This means that a memory block of size row*column*dataTypeSize is allocated using malloc and pointer arithmetic can be used to access the matrix elements. A program that demonstrates this is given as follows. Example Live Demo ... Read More

Convenient Web-browser controller in Python

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:23

1K+ Views

To display web based documents to users by using python, there is a module called webbrowser. It provides high level interface to handle web documents. On UNIX based system, this module supports lynx, Netscape, Mosaic etc browsers. For Windows and Macintosh, it uses the standard browsers. To use this module, ... Read More

Which is faster between C++ and C#?

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:23

281 Views

C++ is a middle-level language. It was developed by Bjarne Stroustrup in 1979. It is just an enhancement to C language and an object-oriented language. C# is modern and object-oriented language developed by Anders Hejlsberg. It is a part of the .NET framework. It is designed for Common Language Infrastructure ... Read More

Explain C# Quantifiers in regular expression

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:23

418 Views

Quantifiers in C# specify how many instances of the previous element (which can be a character, a group, or a character class) must be present in the input string for a match to occur. Quantifier Description Pattern Matches * Matches the previous element zero ... Read More

Resource Usage Information using Python

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:23

891 Views

To measure the UNIX resource usage, we need to use the resource module into our programs. This module also can control the resource utilization. To use this module, we should import it using − import resource Resource Limits In this module we can use the setrlimit() to limit ... Read More

How to quit/ exit from MySQL stored procedure?

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:23

3K+ Views

We can quit/ exit from MySQL stored procedure with the help of the LEAVE command. The following is the syntax. Leave yourLabelName; The following is an example. Here, we are creating a new procedure. mysql> delimiter // mysql> CREATE PROCEDURE ExitQuitDemo2(IN Var1 VARCHAR(20)) -> ... Read More

Advertisements