The border-right-color property changes the color of the right border.ExampleYou can try to run the following code to implement the border-right-color property: p.demo { border:3px solid; border-right-color:#FF0000; } India is a country.
The border-top-color property changes the color of the top border.ExampleYou can try to run the following code to implement the border-top-color property: p.demo { border:3px solid; border-top-color:#FF0000; } Asia is a continent.
The newer threading module included with Python 2.4 provides much more powerful, high-level support for threads than the thread module discussed in the previous section.The threading module exposes all the methods of the thread module and provides some additional methods −threading.activeCount() − Returns the number of thread objects that are active.threading.currentThread() − Returns the number of thread objects in the caller's thread control.threading.enumerate() − Returns a list of all thread objects that are currently active.In addition to the methods, the threading module has the Thread class that implements threading. The methods provided by the Thread class are as follows −run() − The run() method is the entry point ... Read More
The border-left-style property changes the style of left border. You can try to run the following code to implement border-left-style property:Example Example showing left border
Process communication is the mechanism provided by the operating system that allows processes to communicate with each other. This communication could involve a process letting another process know that some event has occurred or transferring of data from one process to another. One of the models of process communication is the message passing model.Message passing model allows multiple processes to read and write data to the message queue without being connected to each other. Messages are stored on the queue until their recipient retrieves them. Message queues are quite useful for interprocess communication and are used by most operating systems.A ... Read More
To send an e-mail with mixed content requires to set Content-type header to multipart/mixed. Then, text and attachment sections can be specified within boundaries.A boundary is started with two hyphens followed by a unique number, which cannot appear in the message part of the e-mail. A final boundary denoting the e-mail's final section must also end with two hyphens.Attached files should be encoded with the pack("m") function to have base64 encoding before transmission.ExampleFollowing is the example, which sends a file /tmp/test.txt as an attachment. Try it once −#!/usr/bin/python import smtplib import base64 filename = "/tmp/test.txt" # Read a file and ... Read More
The border-color property specifies the color of a border. You can try to run the following code to implement the border-color property:Example p.demo { border:2px dashed; border-color:#800000; } Example showing border color property
The border-top-style property changes the style of top border.ExampleYou can try to run the following property to change the style of the top border: Example showing top border
To spawn another thread, you need to call following method available in thread module −thread.start_new_thread ( function, args[, kwargs] )This method call enables a fast and efficient way to create new threads in both Linux and Windows.The method call returns immediately and the child thread starts and calls function with the passed list of args. When function returns, the thread terminates.Here, args is a tuple of arguments; use an empty tuple to call function without passing any arguments. kwargs is an optional dictionary of keyword arguments.Example#!/usr/bin/python import thread import time # Define a function for the thread def print_time( threadName, delay): count = 0 ... Read More
The table-layout property is to help you control how a browser should render or lay out a table. This property can have one of the three values: fixed, auto or inherit.ExampleYou can try to run the following code to implement CSS table-layout property table.auto { table-layout: auto } table.fixed{ table-layout: fixed } 1000000000000000000000000000 10000000 100 1000000000000000000000000000 10000000 100
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP