Today's Leftovers
-
The American Association of Insurance Services & The Linux Foundation Welcome Jefferson Braswell as openIDL Project Executive Director
The American Association of Insurance Services (AAIS) and the Linux Foundation welcome Jefferson Braswell as the new Executive Director of the openIDL Project.
-
Add custom windows to GDB: Programming the TUI in Python | Red Hat Developer
The GNU Debugger (GDB), a popular free and open source tool for C and C++ programmers, offers a Text User Interface (TUI) to split the console into multiple windows and display different content in each window. One window will always be a command window, in which you enter the usual GDB commands, but you might also have a source code window, a register contents window, or a disassembly window. Since GDB 11, you can use a Python API to add new window types. This API can be incredibly useful, allowing you to customize GDB to visualize your application's data in new ways.
Note: The Python API for adding TUI windows was actually added to GDB 10. Unfortunately, prior to GDB 11, the gdb.TuiWindow.write call had some bugs that were not resolved until GDB 11.
In this article, the first in a two-part series, you'll learn how to create a window and load it with dynamic content. The real power of the TUI will be shown in the second article, which shows how to display useful information from GDB.
-
Scheduling a Python Script with Crontab – TecAdmin
Many companies use the Python programming language for data science applications, machine learning models, and other types of analytical tasks. Since Python is often only used for specific projects, many businesses have to integrate it into their workflow programmatically. This means they need a way to automate the process so it runs independently when needed and on a schedule. Fortunately, there are ways to integrate Python with cron jobs to automate execution as frequently as necessary.
In this article, you will learn how to schedule Python using cron and some useful examples of when and how you might use these practices in your organization.