Nitya Raut has Published 221 Articles

urllib.robotparser - Parser for robots.txt in Python

Nitya Raut

Nitya Raut

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

705 Views

Web site owners use the /robots.txt file to give instructions about their site to web robots; this is called The Robots Exclusion Protocol. This file is a simple text-based access control system for computer programs that automatically access web resources. Such programs are called spiders, crawlers, etc. The file specifies ... Read More

How to find device airplane mode is changed in android?

Nitya Raut

Nitya Raut

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

710 Views

This example demonstrate about How to find device airplane mode is changed in android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml. ... Read More

Implement your own itoa() in C

Nitya Raut

Nitya Raut

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

2K+ Views

In this section we will see how to convert an integer number to a string.The logic is very simple. Here we will use the sprintf() function. This function is used to print some value or line into a string, but not in the console. This is the only difference between ... Read More

Multithreading in C

Nitya Raut

Nitya Raut

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

22K+ Views

Multithreading is a specialized form of multitasking and a multitasking is the feature that allows your computer to run two or more programs concurrently. In general, there are two types of multitasking: process-based and thread-based.Process-based multitasking handles the concurrent execution of programs. Thread-based multitasking deals with the concurrent execution of ... Read More

Sum of array using pointer arithmetic in C

Nitya Raut

Nitya Raut

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

1K+ Views

In this program, we need to find sum of array elements using pointer arithmetic.Here we use * which denotes the value stored at the memory address and this address will remain stored in the variable. Thus “int *ptr” means, ptr is a variable which contains an address and content of ... Read More

How to use SELECT Query in Android sqlite?

Nitya Raut

Nitya Raut

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

3K+ Views

Before getting into example, we should know what sqlite data base in android is. SQLite is an opensource SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation. SQLite supports all the relational database features. In order to access ... Read More

lvalue and rvalue in C

Nitya Raut

Nitya Raut

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

8K+ Views

An lvalue (locator value) represents an object that occupies some identifiable location in memory (i.e. has an address).rvalues are defined by exclusion. Every expression is either an lvalue or an rvalue, so, an rvalue is an expression that does not represent an object occupying some identifiable location in memory.For example, ... Read More

How to use removeFirst() in android LinkedBlockingDeque?

Nitya Raut

Nitya Raut

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

122 Views

Before getting into an example, we should know what LinkedBlockingDeque is. It is implemented by Collection interface and the AbstractQueue class. It provides optional boundaries based on linked nodes. It going to pass memory size to a constructor and helps to provide memory wastage in android.This example demonstrates about How ... Read More

How to update continues ui from Intent Service in Android?

Nitya Raut

Nitya Raut

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

578 Views

Before getting into example, we should know what is Intent service in android. Intent Service is going to do back ground operation asynchronously. When user call startService() from activity , it doesn’t create instance for each request and it going to stop service after done some action in service class ... Read More

How to enable webview java script in android?

Nitya Raut

Nitya Raut

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

1K+ Views

This example demonstrate about How to enable webview java script in android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml. ... Read More

Advertisements