Programming Leftovers
-
Perl Weekly Challenge 192: Binary Flip and Equal Distribution
-
Link-o-Rama: Stable Diffusion 2.0, Tragic birth of FM radio, story of goth: Dissociated Press
Stable Diffusion 2.0 is out! Things in the AI art space have been moving very quickly. Still lots of ethical, business and other implications, but I’m cautiously optimistic about it. I’ve been using Midjourney to generate art for the blog and been pretty happy with that use case.
-
This Week In Rust: This Week in Rust 470
-
Qt Creator 9 released
We are happy to announce the release of Qt Creator 9!
First of all you can read the change log directly in Qt Creator now, under Help > Change Log on Windows and Linux, and under Qt Creator > Change Log on macOS!
-
Working with 3D graphics and visual effects in Qt Design Studio
To build delightful automotive experiences, designers need advanced tools enabling the creation of outstanding graphical user interfaces with minimal time and effort. Qt Design Studio includes all the resources to easily create stunning UI applications that include state-of-the-art 3D graphics and run with optimal performance on any embedded system.
-
How to write tests in Python – NextGenTips
Testing your code often is a good thing to do. Imagine running a big project without any tests, what could be the implications if you change a feature it affects the functionality of the overall app? Will that be a good thing to do? For many, it is not. Let’s see how we can perform and write tests right from the start.
When starting out as a developer often write small unit tests to guarantee that the feature you have introduced really doing the intended function. Also, make sure you write some failing tests.
-
Write a C++ extension module for Python | Opensource.com
In a previous article, I gave an overview of six Python interpreters. On most systems, the CPython interpreter is the default, and also the poll in my last article showed that CPython is the most popular one. Specific to CPython is the ability to write Python modules in C using CPythons extensions API. Writing Python modules in C allows you to move computation-intensive code to C while preserving the ease of access of Python.
In this article, I’ll show you how to write an extension module. Instead of plain C, I use C++ because most compilers usually understand both. I have to mention one major drawback in advance: Python modules built this way are not portable to other interpreters. They only work in conjunction with the CPython interpreter. So if you are looking for a more portable way of interacting with C libraries, consider using the ctypes module.
-
Feeding events with syslog-ng PE to Azure Event Hub and Google Pub/Sub - Blog - syslog-ng Community - syslog-ng Community
The syslog-ng Premium Edition (PE) application is built on the solid foundation of syslog-ng Open Source Edition (OSE). PE inherits many of the OSE features and adds cloud-related features, among others. Our latest webinar shows you how to send log messages to Azure Event Hub and Google Pub/Sub.
-
Use arrays in Java | Opensource.com
In the Java programming language, an array is an ordered collection of data. You can use an array to store information in a structured way. It's useful to know the various ways you can retrieve that data when you need it. It's worth noting that in Java, an associative array (also called a dictionary in some languages) is called a hashmap. This article doesn't cover hashmaps, but you can read all about them in my Using a hashmap in Java article.