Programming Leftovers
-
MaskRay ☛ Compiling C++ with the Clang API
This post describes how to compile a single C++ source file to an object file with the Clang API. Here is the code. It behaves like a simplified clang executable that handles -c and -S.
-
Dirk Eddelbuettel ☛ Thinking inside the box/Dirk Eddelbuettel: RcppTOML 0.2.3 on CRAN: Compiler Nag, Small Updates
TOMLis a file format that is most suitable for configurations, as it is meant to be edited by humans but read by computers. It emphasizes strong readability for humans while at the same time supporting strong typing as well as immediate and clear error reports. On small typos you get parse errors, rather than silently corrupted garbage. Much preferable to any and all of XML, JSON or YAML – though sadly these may be too ubiquitous now. TOML is frequently being used with the projects such as the Hugo static blog compiler, or the Cargo system of Crates (aka “packages”) for the Rust language.
-
Matt Webb ☛ Anti-Schelling points and waiting for my barista-made coffee (Interconnected)
So coffee is great for anti-Schelling points?
A Schelling point(Wikipedia) being a solution that allows for coordination without communication.
Such as: which side of the road to drive on. Each time they head out in their car, everyone in a country knows to choose a certain side and so magically people can share roads without colliding.
-
Medium ☛ Why I Still Use Ruby on Rails. Hello, friends!
Whether or not you’ve heard about Ruby on Rails (henceforth referred to as “Rails”) in a while, or ever, it is one of the classic web frameworks. It advanced the state of the art of web development in an undeniable way, such that most frameworks since then have taken heavy inspiration from it, though I would personally argue that Rails still has some strengths that other frameworks have not really been able to imitate
-
Dan MacKinlay ☛ Git tricks — The Dan MacKinlay stable of variably-well-consider’d enterprises
My own notes on git the source control system. This is one of the more heavily documented tools on the internet. As such, notes here are not intended to be a tutorial because the internet is full of those.
-
Perl / Raku
-
Arne Sommer ☛ Upper Group with Raku
You are given a string consists of english letters only.
Write a script to convert lower case to upper and upper case to lower in the given string.
-
-
Shell/Bash/Zsh/Ksh
-
Vincent Bernat ☛ Auto-expanding aliases in Zsh
To avoid needless typing, the fish shell features command abbreviations to expand some words after pressing space. We can emulate such a feature with Zsh: [...]
-
-
Java
-
The New Stack ☛ Vulnerability-Free Java Containers: A Practical Guide
In today’s cloud native landscape, securing Java applications isn’t just about the code we write but the entire container stack. While Java has maintained a strong security record, incidents like Log4Shell have shown us that vigilance is crucial. We need a comprehensive approach to preventing vulnerabilities, from the Java JRE base container image to our Java application dependencies and the application code itself.
Last year, I worked with a client who complained about vulnerabilities in their container base image for Node.js. That triggered me to do more research on base images, including Java.
-