Pradeep Elance has Published 298 Articles

How to Create a Shared Directory for All Users in Linux?

Pradeep Elance

Pradeep Elance

Updated on 03-Nov-2023 03:46:34

39K+ Views

When multiple users need access to the same set of directories of files then we need to create shared folders to be used by the users. In Linux there is concept of users and groups which can be given certain level of permissions that will enable them to share the ... Read More

Python program to find the IP Address of the client

Pradeep Elance

Pradeep Elance

Updated on 25-Aug-2023 00:22:01

61K+ Views

In this tutorial, we are going to find the IP address of the client using the socket module in Python. Every laptop, mobile, tablet, etc.., have their unique IP address. We will find it by using the socket module. Let's see the steps to find out the IP address of a device.Algorithm ... Read More

How to Copy File Permissions and Ownership to Another File in Linux?

Pradeep Elance

Pradeep Elance

Updated on 27-Jul-2023 13:29:22

1K+ Views

Many times while taking back up of data from one location to another or configuring software, we need to maintain the same level of ownership and permission of the files. Creating those permissions and granting ownership to individual files can be error prone of done by typing commands for each ... Read More

XMLRPC server and client modules in Python

Pradeep Elance

Pradeep Elance

Updated on 25-Jan-2021 07:51:19

4K+ Views

We can create our own cross-platform, language-independent server using the XML-RPC protocol.We use the SimpleXMLRPCServer to create the SimpleXMLRPCServer instance and tell it to listen for incoming requests. Next we define some functions to be part of the service and register those functions so that the server knows how to ... Read More

Python Code Objects

Pradeep Elance

Pradeep Elance

Updated on 25-Jan-2021 07:40:16

2K+ Views

Code objects are a low-level detail of the CPython implementation. Each one represents a chunk of executable code that hasn’t yet been bound into a function. Though code objects represent some piece of executable code, they are not, by themselves, directly callable. To execute a code object, you must use ... Read More

Python a += b is not always a = a + b

Pradeep Elance

Pradeep Elance

Updated on 25-Jan-2021 07:38:35

192 Views

If two variables are of the same data types and not iterators like list and dictionary etc, then the expressions a += b is same as a =+b gives the same result. But when n iterator is involved we can not always expect the same. Below is one of such ... Read More

Python - Create Test DataSets using Sklearn

Pradeep Elance

Pradeep Elance

Updated on 25-Jan-2021 07:19:19

423 Views

The Sklearn python library does provide sample data sets which can be used tocreate various graph plots. The usefulness of these datasets is in creating sample graphs and charts and predicting the behavior of the graph as the values changes. Also you can work on other parameters like deciding on ... Read More

Find maximum length sub-list in a nested list in Python

Pradeep Elance

Pradeep Elance

Updated on 25-Jan-2021 07:18:06

1K+ Views

we often deal with nested lists when doing data analysis in python. In this article, we will see how to find out the longest list among the elements in a nested list and then print this along with its length.Using lambda and mapWe declare a nested list and give it ... Read More

Python Generate QR Code using pyqrcode module?

Pradeep Elance

Pradeep Elance

Updated on 12-Jan-2021 13:46:33

558 Views

A QR code consists of black squares arranged in a square grid on a white background, which can be read by an imaging device such as a camera. It is widely used for many commercial tracking applications and payment and website login etc. for various applications aimed at mobile-phone users. ... Read More

Python Front and rear range deletion in a list?

Pradeep Elance

Pradeep Elance

Updated on 12-Jan-2021 13:44:05

229 Views

Using list slicingIn this approach we use slicing from both the front and rear of the list. The result is stored into a new list. The number of elements to be sliced can be a variable.Example Live DemolistA = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'] # Given list print("Given ... Read More

1 2 3 4 5 ... 30 Next
Advertisements