Tux Machines

Programming Leftovers

Posted by Roy Schestowitz on Apr 09, 2023

=> Cytron CM4 Maker Board review – Part 2: NVMe SSD, RTC, Buzzer, Grove modules, ChatGPT… | New YouTue Videos About GNU/Linux and Free Software

Generate Random RGB Colors in Python

=> ↺ Generate Random RGB Colors in Python

Random RGB Colors can be generated in two formats in Python, one is the hex code and the other is the set of values for Red, Green, and Blue.

Python Decorators Demystified: A Comprehensive Guide

=> ↺ Python Decorators Demystified: A Comprehensive Guide

Python decorators are a powerful and expressive feature that allows you to modify the behavior of functions or methods in a clean and maintainable way. They can be used to perform various tasks, such as logging, memoization, and access control, without modifying the code of the decorated function.

Update: dnsresolver.py Version 0.0.3

=> ↺ Update: dnsresolver.py Version 0.0.3

I added support for label * (wildcard label). dnsresolver_V0_0_3.zip (http)MD5: 18958CEEB8CD62B50D6533A477008649SHA256: E8BB634C9D5562D640D23AA426948D166977193931794E67761F1BCD2436466E

Python Decorators: Concepts and Examples

=> ↺ Python Decorators: Concepts and Examples

Decorators are a powerful concept in Python programming that allows you to modify the behavior of functions or classes in an elegant and reusable way. This article will provide an overview of Python decorators, discussing their core concepts and showcasing examples of creating and applying them in your code.

Create a List of Lists in Python

=> ↺ Create a List of Lists in Python

To create a list of lists in Python, use the bracket notation used for list initialization or use the append() method to add lists into a list.

Python error: list indices must be integers or slices, not a tuple

=> ↺ Python error: list indices must be integers or slices, not a tuple

This error is caused by passing a tuple instead of an index value or a range of index values to access the elements of the list.

10 Reasons Why You Should Consider Next.js In your Next Project

=> ↺ 10 Reasons Why You Should Consider Next.js In your Next Project

Next.js is a React-based open-source framework used for building server-side rendered (SSR) web applications.  Next.js provides an excellent developer experience, thanks to its developer-friendly features like automatic code splitting, hot module replacement, and easy deployment.

Archivy Is A Full-Featured Knowledge Base System For Developers and Researchers

=> ↺ Archivy Is A Full-Featured Knowledge Base System For Developers and Researchers

Archivy is an outstanding open-source knowledge repository that empowers you to learn and retain information using your own personal and extensible wiki. It is an exceptional bookmarking and archiving system that enables you to save any webpage content as soon as you bookmark it.

Writing Helios drivers in the Mercury driver environment

=> ↺ Writing Helios drivers in the Mercury driver environment

Helios is a microkernel written in the Hare programming language and is part of the larger Ares operating system. You can watch my FOSDEM 2023 talk introducing Helios on PeerTube.

=> ↺ Helios | ↺ Hare | ↺ Ares | ↺ on PeerTube

Let’s take a look at the new Mercury driver development environment for Helios.
As you may remember from my FOSDEM talk, the Ares operating system is built out of several layers which provide progressively higher-level environments for an operating system. At the bottom is the Helios microkernel, and today we’re going to talk about the second layer: the Mercury environment, which is used for writing and running device drivers in userspace. Let’s take a look at a serial driver written against Mercury and introduce some of the primitives used by driver authors in the Mercury environment.

=> ↺ Mercury

=> ↺ Helios | ↺ Hare | ↺ Ares | ↺ on PeerTube | ↺ Mercury

=> gemini.tuxmachines.org

Proxy Information
Original URL
gemini://gemini.tuxmachines.org/n/2023/04/09/Programming_Leftovers.1.gmi
Status Code
Success (20)
Meta
text/gemini;lang=en-GB
Capsule Response Time
139.488445 milliseconds
Gemini-to-HTML Time
1.657906 milliseconds

This content has been proxied by September (3851b).