Chandu yadav has Published 1165 Articles

Convenient Web-browser controller in Python

Chandu yadav

Chandu yadav

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

776 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

207 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

Access to the Shadow Password Database in Python

Chandu yadav

Chandu yadav

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

209 Views

To access the UNIX shadow password database, we should use the spwd module. We need enough privileges to access this file. The shadow password database entries are like tuple like object. To use the spwd module, we should import it using − import spwd The ... Read More

Explain C# Quantifiers in regular expression

Chandu yadav

Chandu yadav

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

282 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

Terminal Control Functions in Python

Chandu yadav

Chandu yadav

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

915 Views

To change the terminal controls in the Unix system, we can use the tty related methods in Python. Using the tty module, we can set two different modes of the terminal. The raw Mode and the cbreak mode. To use the tty module, we should import it using − ... Read More

Resource Usage Information using Python

Chandu yadav

Chandu yadav

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

684 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

2K+ 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

MySQL select query to select rows from a table that are not in another table?

Chandu yadav

Chandu yadav

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

2K+ Views

For our example, we will create two tables and apply Natural Left Join to get the rows from a table not present in the second table. Creating the first table. mysql> create table FirstTableDemo -> ( -> id int, -> ... Read More

How to remove all non-alphanumeric characters from a string in MySQL?

Chandu yadav

Chandu yadav

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

2K+ Views

Non-alphanumeric characters are as follows − @, !, #, &, (), ?, / There is no inbuilt function to remove non-alphanumeric characters from a string in MySQL. Therefore, we create a function which removes all non-alphanumeric characters. The function declaration and definition is as follows. mysql> delimiter ... Read More

php_strip_whitespace() function in PHP

Chandu yadav

Chandu yadav

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

62 Views

The php_strip_whitespace() function returns source with stripped comments and whitespace. Syntax php_strip_whitespace(file_path) Parameters file_path − The path of file. Return The php_strip_whitespace() function returns stripped source code on success. Example The above code strip all the comments and whitespace.

Advertisements