Categories
Python YouTube

Avoid recursive functions at all costs in Python

It’s been a long time since my last YouTube video. I have decided to create a new video to raise some awareness. The video is about why recursive functions should be avoided especially in Python. This is particularly important because Python became the most popular programming language on GitHub. And it means more people use […]

Categories
Pinebook Python

Draw an image in Pinebook framebuffer with Pygame

Part of my tinkering with my Pinebook is to play around with framebuffer. The reason is I can manipulate the display directly without going through X11. This is less resource intensive and especially useful for ARM powered devices. In this article, I show you how to draw an image in Pinebook framebuffer with Pygame library […]

Categories
Linux Python

How to install pip3 in Ubuntu 16.04

The default pip version for Ubuntu 16.04 is 2.7 which is quite outdated. For instance, it is impossible to get mpsyt to work with pip 2.7. Any attempt to install pip3 using sudo apt install python3-pip will be resulted in getting this message: python3-pip is already the newest version (8.1.1-2ubuntu0.4). Fortunately, there is an easy […]

Categories
Python

How to add keys to Python dictionary

Python has a strong feature to allow you to check availability of keys in a dictionary (AKA JSON string) on the fly and edit it. I recently, ran to a case that requires to check whether a particular keys are available in the dictionary. If keys are unavailable, add to the dictionary and persist it […]

Categories
Python

Python in one post

Two years ago when I started learning Python I had made a small note for myself as a quick reference which turned out to be so handy. The time I made the note I did not consider about sharing it. Now, after two years when I was working with Python for my Ubuntu Indicator Weather […]

Categories
Linux Python

How to create Ubuntu indicator with Python

For a long period of time, I wanted to make a simple Ubuntu unity indicator just to learn how they work. Finally in Christmas holidays I got a chance to search on the internet and came up with a simple idea of having a weather indicator. The result was great and I have ended up […]

Exit mobile version