Programming Leftovers
-
Frameless view with QtWidgets
One design characteristic of our QtWidgets is that they contain a lot of frames and frames inside other frames. This worked well with Oxygen style and its skeuomorphism shadow, less so with Breeze.
I first thought this was inheriten with QtWidgets and couldn’t be fixed without much effort. But fortunately, after looking a bit into Qt source codes and in particular in the internals of QDockAreaLayout, I discovered that the engine to draw and style the built-in components of QtWidgets: QStyle has a
QStyle::PE_IndicatorDockWidgetResizeHandle
primitive which allows drawing separators between detachable docks and similarly there isQStyle::CE_Splitter
to paint the separator between elements inside a QSplitter. This is huge because this means instead of drawing frames, we can render separator and then get rid of most of our frames in our apps. -
Firefox Developer Experience: Firefox DevTools Newsletter — 117
Developer Tools help developers write and debug websites on Firefox. This newsletter gives an overview of the work we’ve done as part of the Firefox 117 Nightly release cycle.
Firefox being an open source project, we are grateful to get contributions from people outside of Mozilla:
- Gregory Pappas removed the now unused
devtools.markup.mutationBreakpoints.enabled
pref (#1574540). This preference was used to control DOM Mutation Breakpoints, but they are now always enabled.
A DOM Mutation Breakpoint will pauses the code when the DOM node on which you have set the breakpoint is modified. The documentation contains further information on how to use them and how they can help you.
- Gregory Pappas removed the now unused
-
The Rust Programming Language Blog: Change in Guidance on Committing Lockfiles
For years, the Cargo team has encouraged Rust developers to commit their
Cargo.lock
file for packages with binaries but not libraries. -
Dirk Eddelbuettel: RcppArmadillo 0.12.6.3.0 on CRAN: New Upstream Bugfix
widely used by (currently) 1092 other packages on CRAN, downloaded 30.3 million / vignette) by Conrad and myself has been cited 549 times according
This release brings bugfix upstream release 12.6.3. We skipped 12.6.2 at CRAN (as discussed in the previous release notes) as it only affected Armadillo-internal random-number generation (RNG). As we default to supplying the RNGs from R, this did not affect RcppArmadillo. The bug fixes in 12.6.3 are for csv reading which too will most likely be done by R tools for R users, but given two minor bugfix releases an update was in order. I ran the full reverse-depenency check against the now more than 1000 packages overnight: no issues.
-
Just enough Makefile to be dangerous
Over the years, I have developed a bit of a love-hate relationship with make. On the plus side, it is ubiquitous, preinstalled on most UNIX systems, and widely used. On the other hand, its syntax can feel arcane and clunky, and it can prove hard to debug. In this article, I will go over the basic make concepts, and the set of best practices I've come to embrace as my own, to make make enjoyable to use.
Let's start with the beginning.
-
The Python Software Foundation has been authorized by the CVE Program as a CVE Numbering Authority (CNA)
When a vulnerability is disclosed in software you're depending on, the last thing you want is for the remediation process to be confusing or ad-hoc. Towards the goal of a more secure and safe Python ecosystem, the Python Software Foundation has been authorized by the CVE Program as a CVE Numbering Authority (CNA).
Being authorized as a CNA is one milestone in the Python Software Foundation's strategy to improve the vulnerability response processes of critical projects in the Python ecosystem. The Python Software Foundation CNA scope covers Python and pip, two projects which are fundamental to the rest of Python ecosystem.
-
How to solve "error: externally-managed-environment" when installing via pip3
I think some Python developers really want people like me to use virtual environments, but that's way too much effort when I don't really care to do that, thankyouverymuch. If you want to use venv more power to you. I just like getting stuff done on my little servers.
-
Amazon acquires Fig to enhance the command line for developers
Amazon.com Inc. has acquired Fig, a startup that focuses on providing developers a better experience at the command line interface with tools such as autocomplete and collaboration.