Raspberry Pi with Python

Posted on Mon 12 March 2018 in raspberry-pi

I've got a project using Raspberry Pi Zero W, and it make me so happy that I can use Python to program in Raspberry Pi. This tiny device is backed by Raspbian, a free operating system based on Debian optimized for Raspberry Pi hardware. The latest version is based on …

Continue reading

Sending Mail in Python

Posted on Mon 12 March 2018 in articles

We need to send mails sometimes, e.g. report sending service. email module in Python will work this for us.

from email.mime.application import MIMEApplication
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from email.utils import COMMASPACE, formatdate

def send_mail(server, port, account, password …

Continue reading

Python Anywhere

Posted on Sun 11 March 2018 in articles

I write this post to mark down some useful Python resources.

Full Stack Python - The right place to learn everything you need to create, deploy and operate production Python web applications.

Awsome Python - A curated list of awesome Python frameworks, libraries, software and resources.

MicroPython - MicroPython is a lean and …

Continue reading

Python 2 or Python 3

Posted on Sun 11 March 2018 in articles

If you ask me which Python version should be used, Python 2 or Python3?

My answer is: Python 3 absolutely!

Python 2.7 Countdown

Continue reading

First Post

Posted on Sat 10 March 2018 in articles

This is my first post and I did it in Python. How exciting!

This website is generated by Pelican and using theme Flex.

For code highlighting, I choose PYGMENTS_STYLE = 'solarized-dark', with a minor change that I add .highlight { font-size: 0.9em } to make highlighted code's font size a little smaller …

Continue reading