Language Selection

English French German Italian Portuguese Spanish

Python Programming Leftovers

Filed under
Development
  • PyDev of the Week: Tommy Falgout

    This week we welcome Tommy Falgout (@lastcoolname) as our PyDev of the Week! Tommy works on the Robo-Clippy project. You can see what else he is up to by checking out his website. Let’s take a few moments to get to know Tommy better!

    Can you tell us a little about yourself (hobbies, education, etc):

    I grew up in the bayous of Louisiana, and while everyone else was interested in 4-wheeling and hunting, I gravitated towards computers and spent hours on my Commodore 64. Early on, I knew what it meant to be an outcast.

    As I matured, my hobbies became numerous and varied, but all focused around my passion of building. For 5 years hosted and competed in Dallas/Fort Worth’s annual trebuchet competition: Slingfest, and was even featured on an episode of Dude Perfect on Nickelodeon as a Trebuchet expert (complete with my own IMDB page!). I also volunteer at a local Makerspace in Plano, TX (TheLab.ms), built a LEGO Robotic Clippy and competed in the Red Bull Soapbox Derby race. After a few exciting near-misses from bodily harm, I’ve settled down and recently taken up crochet and hobby electronics.

  • Weighted K-Means Clustering example - artificial countries

    One of fields where WKMC algorithm can be applied is demographics. Imagine a situation, in which you would like to see how people group or would group if all administation divisions or historical conflicts disappeared or ethnical, national or tribal identity would not matter? How would then people go about creating communities?

  • enum_switch: a enum-based switch thing for Python

    I am doing a series of videos (spanish only!) about "modern Python", showing the modern replacements for things that are ... dense in their original forms.

    So, I showed Poetry as an alternative to writing your setup.py and Click as a way to do things easier than argparse, and Pathlib instead of os.path and then I wanted to show Enums. Which are not so new since they have been there since Python 3.4 but I feel they are not used widely enough.

    And then I noticed that they help do a "safer" version of the classical Python version of C's switch / case where you can be sure of not leaving any values unhandled.

  • The Best Resources for Developers to Learn Finance

    Software developers should understand the basics of finance not only to manage their own money but also to understand how businesses' software projects are funded.

    Understanding how other people who work in accounting, finance and project management think about business and finance in particular can help you make better architectural decisions when trying to build maintainable systems. Code is only one aspect of a large software project so working with others and viewing the world through their discipline will help you immensely as you advance your career.

  • Global variables in python

    In Python, there has only an object data type for all global variables. No matter that is a string or number, a python programmer does not need to declare the data type of that variable before using it because each variable in Python is an object variable.

  • How to build a CSS pre-processor (like SASS) from scratch

    If you are in web development, maybe you've heard of Sass, Less, Pug, Stylus etc. All these are pre-processors. In this tutorial we're going to build nothing less than a functional css pre-processor from scratch with variables and functions. This type of new language is called source-to-source compiled. If you are thrilled, i hope not to disappoint you.

More in Tux Machines

5 best practices for using open source community leaderboards

It takes a community of people with varying skill sets and expertise to build open source software. Leaderboards have become a way for open source communities to track progress and showcase and celebrate top-performing contributors. If leaderboards are done right, they can increase participation, motivate contributors with gamification, and enhance the community. But leaderboards can also have adverse outcomes—including discouraging participation. The Community Health Analytics Open Source Software (CHAOSS) community, a Linux Foundation project, focuses on bringing standardization to open source project health and metrics. Leaderboards are a topic that keeps coming up during those conversations. Initially, this blog post was a presentation I made for Upstream 2021, the Tidelift event that kicked off Maintainer Week, a weeklong celebration of open source maintainers. This article will explore five best practices to help communities use leaderboards successfully and improve their project health through metrics. Read more

How to Install Java 17 in Ubuntu 20.04, 21.10, Linux Mint 20

A quick guide on how to install the latest Java 17 in Ubuntu 20.04, 20.10 and Linux Mint 20.x. Read more

Rufus for linux? Not available, Use these best alternatives

Rufus for Linux, yes, everybody who has ever used this bootable USB creator tool which is only available for Windows, definitely wished to have it for Linux operating systems too. However, although it is not directly available for Linux, we can still use it with the help of Wine software. But again even after installing it using Wine on Ubuntu, in our case, it couldn’t recognize the attached USB drives, which again closed the door for normal users to use Rufus on Linux. Thus in such scenarios what do? Don’t worry. The Rufus is not the only software for creating a bootable USB drives in the world. There are also few other best alternatives to Rufus that we can use easily on Linux operating systems. And here today we will discuss such opensource or free tools for creating bootable drives on Linux Distros. Read more

5 Reasons Purism's Librem Laptops Are More Secure Than Your Notebook

If you're looking for a secure laptop computer, you have several options. Thumb readers, facial recognition, and built-in encryption all offer considerable security. But these features – typically backed up by the operating system – are prone to failure, one way or another. For example, facial recognition can be bypassed using various techniques. Purism is a company that assembles Linux computers, complete with a secure operating system and hardware kill switches. These features – while eschewing potential points of entry found on other laptops – make Purism laptops particularly attractive to any user concerned about online privacy and security. Read more