Adnan Hodzic: How I replaced myself with a genAI chatbot using Gemini
It s been 5 years since I created auto-cpufreq. Today, it has over 6000 stars on GitHub, attracting 97 contributors, releasing 47 versions, and reaching what...
It s been 5 years since I created auto-cpufreq. Today, it has over 6000 stars on GitHub, attracting 97 contributors, releasing 47 versions, and reaching what...
I ve always been a fan of template engines that work with text files, mainly to work with static site generators, but
also to generate code, configuration files, and other text-based files.
For my own web projects I used to go with Jinja2, as all my projects were written
in Python, while for static web sites I used the template engines included with the tools I was
using, i.e. Liquid with Jekyll and
Go Templates (based on the text/template
and the html/template go packages) for Hugo.
When I needed to generate code snippets or configuration files from shell scripts I used to go with
sed and/or
envsubst, but lately things got complicated and I started to use
a command line application called tmpl that uses the Go
Template Language with functions from the Sprig library.
gitlab-ci) to generate configuration files and code snippets because it uses the same syntax used by
helm (easier to use by other DevOps already familiar with the format) and the binary is small and
can be easily included into the docker images used by the pipeline jobs.
One interesting feature of the tmpl tool is that it can read values from command line arguments and from multiple
files in different formats (YAML, JSON, TOML, etc) and merge them into a single object that can be used to render the
templates.
There are alternatives to the tmpl tool and I ve looked at them (i.e. simple ones like
go-template-cli or complex ones like
gomplate), but I haven t found one that fits my needs.
For my next project I plan to evaluate a move to a different tool or template format, as tmpl is not being actively
maintained (as I said, I m using my own fork) and it is not included on existing GNU/Linux distributions (I packaged it
for Debian and Alpine, but I don t want to maintain something like that without an active community and I m not
interested in being the upstream myself, as I m trying to move to Rust instead of
Go as the compiled programming language for my projects).
A new minor release of RcppFastFloat
just arrived on CRAN. The
package wraps fast_float, another
nice library by Daniel Lemire. For
details, see the arXiv
preprint or published
paper showing that one can convert character representations of
numbers into floating point at rates at or exceeding one gigabyte per
second.
This release updates the underlying fast_float library
version to the current version 7.0.0, and updates a few packaging
aspects.
Courtesy of my CRANberries, there is also a diffstat report for this release. For questions, suggestions, or issues please use the [issue tracker][issue tickets] at the GitHub repo.Changes in version 0.0.5 (2025-01-15)
- No longer set a compilation standard
- Updates to continuous integration, badges, URLs, DESCRIPTION
- Update to fast_float 7.0.0
- Per CRAN Policy comment-out compiler 'diagnostic ignore' instances
This post by Dirk Eddelbuettel originated on his Thinking inside the box blog. If you like this or other open-source work I do, you can now sponsor me at GitHub.
The new years starts with a FAI release. FAI 6.2.5 is available
and contains many small improvements. A new feature is that the
command fai-cd can now create ISOs for the ARM64 architecture.
The FAIme service uses the newest
FAI version and the Debian most recent point release 12.9.
The FAI CD images were also updated.
The Debian packages of FAI 6.2.5 are available for Debian stable (aka
bookworm) via the FAI repository adding this line to sources.list:
deb https://fai-project.org/download bookworm koeln
Using the tool extrepo, you can also add the FAI repository to your host
# extrepo enable fai
FAI 6.2.5 will soon be available in Debian testing via the official
Debian mirrors.
A new maintenance release 0.4.23 of RProtoBuf
arrived on CRAN earlier today,
about one year after the previous
update. RProtoBuf
provides R with bindings for the
Google Protocol Buffers
( ProtoBuf ) data encoding and serialization library used and
released by Google, and deployed very widely in numerous projects as a
language and operating-system agnostic protocol.
This release brings a number of contributed PRs which are truly
appreciate. As the package dates back fifteen+ years, some code corners
can be crufty which was addressed in several PRs, as were two updates
for ongoing changes / new releases of ProtoBuf itself. I also
made the usual changes one does to continuous integrations, README
badges and URL as well as correcting one issue the
checkbashism script complained about.
The following section from the NEWS.Rd file has full details.
Thanks to my CRANberries, there is a diff to the previous release. The RProtoBuf page has copies of the (older) package vignette, the quick overview vignette, and the pre-print of our JSS paper. Questions, comments etc should go to the GitHub issue tracker off the GitHub repo.Changes in RProtoBuf version 0.4.23 (2022-12-13)
- More robust tests using
toTextFormat()(Xufei Tan in #99 addressing #98)- Various standard packaging updates to CI and badges (Dirk)
- Improvements to string construction in error messages (Michael Chirico in #102 and #103)
- Accommodate ProtoBuf 26.x and later (Matteo Gianella in #104)
- Accommodate ProtoBuf 6.30.9 and later (Lev Kandel in #106)
- Correct
bashismissues inconfigure.ac(Dirk)
This post by Dirk Eddelbuettel originated on his Thinking inside the box blog. If you like this or other open-source work I do, you can sponsor me at GitHub.
Another year of data from Soci t de Transport de Montr al, Montreal's
transit agency!
A few highlights this year: