Inheritance in python:
http://www.dotnetperls.com/class-python
class A:
def width(self):
print("a, width called")
class B(A):
def size(self):
print("b, size called")
# Create new class instance.
b = B()
# Call method on B.
b.size()
# Call method from base class.
b.width()
::Python commands:
import math
dir(math) => will print all the functions of math module
#List comprehension:
http://www.secnetix.de/olli/Python/list_comprehensions.hawk
#postfix send only mail setup:
https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-postfix-as-a-send-only-smtp-server-on-ubuntu-14-04
Steps:
1. apt-get install mailutils
2. Select "internet site" for mail configuration
3. System mail name must have two words separated by dot (this is email domain name
mail sender uses to send email - not necessarily it should exist) Example:
test.test or rainbeats.com or ubuntuserver.com
4. edit:
/etc/postfix/main.cf
update the line:
old:
inet_interfaces = all
new:
inet_interfaces = localhost
5. Restart mail service:
service postfix restart