Programming Leftovers
-
Thoughts on teaching generative text literacy
This would be the first in a series of lessons that I would want to convey. Having clear expectations on the veracity of AI-generated text is, in my book, a foundation: something that should be taught at the earliest possible opportunity. From there, ideas like prompting can be explored: the idea that, with natural language, you can tune the response to a question. "Explain this to me like I am five", or "Convey this point in bullet points", or variants thereof are interesting. I am especially intrigued by how language models can convey the same concept in different ways.
-
How am I supposed to safely disable this warning on ARM GCC?
I recently ran into an interesting warning on newer versions of ARM GCC, including the latest (as of this writing) Arm GNU Toolchain 12.3.Rel1. In particular I’m dealing with arm-none-linux-gnueabihf-g++. Here’s a very simple example program that demonstrates the warning: [...]
-
Fix convert Void pkg db to Puppy db format
Previous post about supporting Void Linux .xbps packages:
https://bkhome.org/news/202309/woofq-support-to-build-withvoid-xbps-packages.html
Have now got the '0setup', '1download' and '2createpackages' scripts to work in woofQ.
One problem is that support/void/cvt.sh (called from void0setup) performs an incomplete db conversion. 'cvt.sh' is written in awk, that I have less than rudimentary capability with. I know that the awk language is wonderful, and have always intended to learn more about it. Anyway, I fixed a couple of db issues by putting in some extra code in '0setup':
-
OE and woofQ change to usr-merge
I have not been a fan of "usr-merge"; however, many mainstream distributions have changed, or are planning to change, to it. Let's see, Fedora, Mageia, Ubuntu, Arch, openSUSE and Void have changed, and Debian intends to do so in the next release.
OpenEmbedded/Yocto has the capability, via adding "usrmerge" to the DISTRO_FEATURES variable. "usrmerge" was introduced to OE in 2017:
-
Hubert Figuière: Dev Log August 2023
Didn't really do anything on Niepce in August, so no updates on that front. However I worked on a few other things.
libopenraw
A lot of work done on it. See my other wlog post. The short version is that I should look towards releasing 0.4.0 sometime soon.
Since that last post, I have added a long standing to-do item: code to generate test cases so I can run a non regression test suite on existing files. However I get hit with flaws in the various XML serde crates.
-
Python Tarfile
The Python “tarfile” module is used to perform various functions on tarfile, such as creating and reading tar files in various modes, extracting tar files, etc.
-
Python Min() Function
In Python, the inbuilt “min()” function retrieves the smallest item/element in an iterable such as a list, string, or dictionary.
-
Pandas Groupby Apply
In Python, the “df.apply()” method is used along with the “df.groupby()” method to apply the specified function to the DataFrame group data.
-
XLSX to CSV in Python
The “df.to_csv()” method of the “pandas” module and “Openpyxl” and “CSV” modules are used to convert XLSX to CSV in Python.
-
Pandas Crosstab() Function
The “pandas.crosstab()” function of the “pandas” module determines the simple cross-tabulation of single or multiple factors.