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

Godot Engine - Multiplayer in Godot 4.0: Scene Replication (part 1)

It's finally time for the long-awaited post about the new multiplayer replication system that is being developed for Godot 4.0. Below, we will introduce the concepts around which it was designed, the currently implemented prototype, and planned changes to make it more powerful and user-friendly.

Design goals
Making multiplayer games has historically been a complex task, requiring ad-hoc optimizations and game-specific solutions. Still, two main concepts are almost ubiquitous in multiplayer games: some form of messaging, and some form of state replication (synchronization and reconciliation). While Godot does provide a system for messaging (i.e. RPC), it does not provide a common system for replication. In this sense, we had quite a few #networking meetings in August 2021 to design a replication API that could be used for the common cases, while being extensible via plugins or custom code. Read more

ColorTint Adds Translucent Overlay To Help People with Dyslexia, Scopic Sensitivity

For people with dyslexia, scopic sensitivity, and related conditions, GNOME has an extension to adds a a translucent colored overlay over your desktop that may help. It’s ‘ColorTint’ that adds an indicator applet in system tray area. User may click the drop down menu options to enable/disable the overlay, change the color via RGB slider bar, and adjust transparency via the Alpha slider. Read more

Android Leftovers

What Is Linux and Why Is It Important?

Linux is technically not a desktop operating system, but a kernel. The kernel is the part of your computer that enables physical hardware to communicate with what’s on-screen. The kernel is the reason text appears when you type, the cursor moves when you stroke the touchpad, and images appear on your monitor. In the early days of computing, programmers freely shared code and programs. This started to change when corporate entities like IBM, Apple, and Microsoft started to release copyrighted code that users couldn't view and came with restrictions on use. In response, the GNU Project was formed as an effort to create a fully functional computer powered by software that was still freely shared and distributed. Read more