Programming Leftovers
-
diziet | Rust for the Polyglot Programmer, December 2022 edition
I have reviewed, updated and revised my short book about the Rust programming language, Rust for the Polyglot Programmer.
It now covers some language improvements from the past year (noting which versions of Rust they’re available in), and has been updated for changes in the Rust library ecosystem.
With (further) assistance from Mark Wooding, there is also a new table of recommendations for numerical conversion.
-
My dmenu wrapper script and what it will invoke for me
Dmenu needs a wrapper script in order to do something useful, because all it does by itself is read autocompletion entries from standard input and write your selection to standard output. The traditional basic wrapper script runs a command found in your $PATH, or perhaps does some other single purpose action like passing a URL you entered to a browser. My wrapper script has always been a little more complicated, and has evolved to primarily do three different things: run commands (using a custom $PATH for dmenu), pass 'URLs' to my primary Firefox session, and start terminal sessions to local hosts, possibly using alternate usernames.
-
New tool: teeplus.py
This new tool, teeplus.py, is an extension of the tee command.
The tools takes (binary) data from stdin, and sends it to stdout, while also writing the data to a file on disk.
While the tee command requires a filename as argument, teeplus.py takes no arguments (only options).
-
The Python on Hardware Newsletter: Over10k subscribers, subscribe now! #CircuitPython #Python #RaspberryPi @micropython @ThePSF
The Python on Microcontrollers newsletter is the place for the latest news involving Python on hardware (microcontrollers AND single board computers like Raspberry Pi).
-
How I use Artipie, a PyPI repo | Opensource.com
While developing with Python as a student, I found that I needed some private centralized storage. This was so I could store binary and text data files, as well as Python packages. I found the answer in Artipie, an open source self-hosted software repository manager.
At university, my colleagues and I conducted research and worked with a lot of data from experimental measurements. I used Python to process and visualize them. My university colleagues at the time were mathematicians and didn't have experience with software development techniques. They usually just passed data and code on a flash drive or over email. My efforts to introduce them to a versioning system like Git were unsuccessful.
-
SciPy Differential Evolution
This article is about SciPy Differential Evolution (DE). SciPy is the library of the Python language, and Differential Evolution is the method or function of the SciPy library. Most people have been learning Python, whether they are developers or not, since Python’s numerous libraries and functions make it very secure and reliable. SciPy is frequently used for solving differential and algebraic equations, interpolation, optimization, etc. Here, we are discussing SciPy DE usage to help you understand how to implement the SciPy differential evolution function in Python applications.
-
Day 20: Sigils are an underappreciated programming technology - Raku Advent Calendar
Sigils – those odd, non-alphabetic prefix characters that many programmers associate with Bash scripting; the $ in echo $USER – have a bit of a bad reputation. Some programmers view them as “old fashioned”, perhaps because sigils are used in several languages that first gained popularity last millennium (e.g. BASIC, Bash, Perl, and PHP). Other programmers just view sigils as rather pointless, as “just a way of encoding type information” in variable names – basically a glorified version of apps Hungarian notation (which isn’t even the good kind of Hungarian notation).
Maybe sigils served a purpose in the bad old days, these critics say, but modern IDEs and editors give us all the type information we could want, and these tools have made sigils obsolete. Now that we have VS Code, we don’t have any reason to take the risk that someone might use sigils to write code that bears a suspicious resemblance to line noise, or perhaps to an extremely angry comic strip character.
-
2022.51 Hijacking D3 - Rakudo Weekly News
Anton Antonov has published another video, this time about their excellent new module Javascript::D3 to create beautiful graphs with Raku in Jupyter notebooks, or just even in HTML. It also comes with a blog post and comments on /r/rakulang. Check it out!
-
Would You Put AI Art In Your House?
What about you? Does your brain instantly rebel against this idea? And if so, do you think there’s a justifiable reason? Or are you letting society tell you what to like? If you have a real reason this isn’t real art I’m willing to be that kind of enthusiast. But it’d have to be a real reason, not one based on gatekeeping or peer pressure.
-
Updated Buildroot support for STM32MP1 platforms, ST BSP v4.1 - Bootlin's blog
Back in December 2021, we announced the buildroot-external-st project, which is an extension of the Buildroot build system with ready-to-use configurations for the STMicroelectronics STM32MP1 platforms. Later on, in July 2022, we updated it to the lastest Buildroot LTS 2022.02 and version 4.0 of ST BSP version.
More specifically, this project is a BR2_EXTERNAL repository for Buildroot, with a number of defconfigs that allow to quickly build embedded Linux systems for the STM32MP1 Discovery Kit platforms. It’s a great way to get started with Buildroot on those platforms.
-
The Top 100 QML Resources by KDAB
If you’re a reader of this blog, you probably know that we have a huge amount of quality material on QML and Qt Quick, among other topics. In fact, there is so much material that it can be hard to find what you need.
If that sounds familiar, you’ll want to bookmark this page! This blog captures a snapshot of the top 100 resources we offer on QML and Qt Quick. This mix of blogs, instructional videos, and other resources has been organized into simple, easy-to-understand categories with simple descriptions added when necessary.