The Debian Janitor is an automated system that commits fixes for (minor) issues in Debian packages that can be fixed by software. It gradually started proposing merges in early December. The first set of changes sent out ran lintian-brush on sid packages maintained in Git. This post is part of a series about the progress of the Janitor. As of dpkg 1.16.2 and apt 0.8.13, Debian has full support for multi-arch. To quote from the multi-arch implementation page:
Multiarch lets you install library packages from multiple architectures on the same machine. This is useful in various ways, but the most common is installing both 64 and 32- bit software on the same machine and having dependencies correctly resolved automatically. In general you can have libraries of more than one architecture installed together and applications from one architecture or another installed as alternatives.The Multi-Arch specification describes a new Multi-Arch header which can be used to indicate how to resolve cross-architecture dependencies. The existing Debian Multi-Arch hinter is a version of dedup.debian.net that compares binary packages between architectures and suggests fixes to resolve multi-arch problems. It provides hints as to what Multi- Arch fields can be set, allowing the packages to be safely installed in a Multi-Arch world. The full list of almost 10,000 hints generated by the hinter is available at https://dedup.debian.net/static/multiarch-hints.yaml. Recent versions of lintian-brush now include a command called apply-multiarch-hints that downloads and locally caches the hints and can apply them to a package maintained in Git. For example, to apply multi-arch hints to autosize.js:
$ debcheckout autosize.js
declared git repository at https://salsa.debian.org/js-team/autosize.js.git
git clone https://salsa.debian.org/js-team/autosize.js.git autosize.js ...
Cloning into 'autosize.js'...
[...]
$ cd autosize.js
$ apply-multiarch-hints
Downloading new version of multi-arch hints.
libjs-autosize: Add Multi-Arch: foreign.
node-autosize: Add Multi-Arch: foreign.
$ git log -p
commit 3f8d1db5af4a87e6ebb08f46ddf79f6adf4e95ae (HEAD -> master)
Author: Jelmer Vernoo <jelmer@debian.org>
Date: Fri Sep 18 23:37:14 2020 +0000
Apply multi-arch hints.
+ libjs-autosize, node-autosize: Add Multi-Arch: foreign.
Changes-By: apply-multiarch-hints
diff --git a/debian/changelog b/debian/changelog
index e7fa120..09af4a7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+autosize.js (4.0.2~dfsg1-5) UNRELEASED; urgency=medium
+
+ * Apply multi-arch hints.
+ + libjs-autosize, node-autosize: Add Multi-Arch: foreign.
+
+ -- Jelmer Vernoo <jelmer@debian.org> Fri, 18 Sep 2020 23:37:14 -0000
+
autosize.js (4.0.2~dfsg1-4) unstable; urgency=medium
* Team upload
diff --git a/debian/control b/debian/control
index 01ca968..fbba1ae 100644
--- a/debian/control
+++ b/debian/control
@@ -20,6 +20,7 @@ Architecture: all
Depends: $ misc:Depends
Recommends: javascript-common
Breaks: ruby-rails-assets-autosize (<< 4.0)
+Multi-Arch: foreign
Description: script to automatically adjust textarea height to fit text - NodeJS
Autosize is a small, stand-alone script to automatically adjust textarea
height to fit text. The autosize function accepts a single textarea element,
@@ -32,6 +33,7 @@ Package: node-autosize
Architecture: all
Depends: $ misc:Depends
, nodejs
+Multi-Arch: foreign
Description: script to automatically adjust textarea height to fit text - Javascript
Autosize is a small, stand-alone script to automatically adjust textarea
height to fit text. The autosize function accepts a single textarea element,
For more information about the Janitor's lintian-fixes efforts, see the landing page.
I have been late to adopt an on-premise cloud solution as the security of Owncloud a few years ago wasn't so stellar (cf. my comment from 2013 in Encryption files ... for synchronization across the Internet). But the follow-up product Nextcloud has matured quite nicely and we use it for collaboration both in the company and in FLOSS related work at multiple nonprofit organizations.
There is a very annoying "feature" in Nextcloud though that the designers think menu items for apps at the top need to be limited to eight or less to prevent information overload in the header. The whole item discussion is worth reading as it it an archetypical example of design prevalence vs. user choice.
And of course designers think they are right. That's a feature of the trade.
Luckily code can be changed and there are many comments floating around the Internet to change const minAppsDesktop = 8. In this case it is slightly complicated by the fact that the javascript code is distributed in compressed form (aka "minified") as core/js/dist/main.js and you probably don't want to build the whole beast locally to change one constant.
Basically
gh cli tool, and this
is all over HN, it might make sense to write a note about my clumsy
aliases and shell functions I cobbled together in the past
month. Background story is that my dayjob moved to GitHub
coming from Bitbucket. From my point of view the WebUI for
Bitbucket is mediocre, but the one at GitHub is just awful
and painful to use, especially for PR processing. So I longed
for the terminal and ended up with
gh
and
wtfutil
as a dashboard.
The setup we have is painful on its own, with several orgs
and repos which are more like monorepos covering several
corners of infrastructure, and some which are very focused on
a single component. All workflows are anti GitHub workflows,
so you must have permission on the repo, create a branch in
that repo as a feature branch, and open a PR for the merge back
into master.
gh functions and aliases
# setup a token with perms to everything, dealing with SAML is a PITA
export GITHUB_TOKEN="c0ffee4711"
# I use a light theme on my terminal, so adjust the gh theme
export GLAMOUR_STYLE="light"
#simple aliases to poke at a PR
alias gha="gh pr review --approve"
alias ghv="gh pr view"
alias ghd="gh pr diff"
### github support functions, most invoked with a PR ID as $1
#primary function to review PRs
function ghs
gh pr view $ 1
gh pr checks $ 1
gh pr diff $ 1
# very custom PR create function relying on ORG and TEAM settings hard coded
# main idea is to create the PR with my team directly assigned as reviewer
function ghc
if git status grep -q 'Untracked'; then
echo "ERROR: untracked files in branch"
git status
return 1
fi
git push --set-upstream origin HEAD
gh pr create -f -r "$(git remote -v grep push grep -oE 'myorg-[a-z]+')/myteam"
# merge a PR and update master if we're not in a different branch
function ghm
gh pr merge -d -r $ 1
if [[ "$(git rev-parse --abbrev-ref HEAD)" == "master" ]]; then
git pull
fi
# get an overview over the files changed in a PR
function ghf
gh pr diff $ 1 diffstat -l
# generate a link to a commit in the WebUI to pass on to someone else
# input is a git commit hash
function ghlink
local repo="$(git remote -v grep -E "github.+push" cut -d':' -f 2 cut -d'.' -f 1)"
echo "https://github.com/$ repo /commit/$ 1 "
wtfutil
I have a terminal covering half my screensize with small dashboards listing
PRs for the repos I care about. For other repos I reverted back to mail notifications
which get sorted and processed from time to time. A sample dashboard config looks
like this:
github_admin:
apiKey: "c0ffee4711"
baseURL: ""
customQueries:
othersPRs:
title: "Pull Requests"
filter: "is:open is:pr -author:hoexter -label:dependencies"
enabled: true
enableStatus: true
showOpenReviewRequests: false
showStats: false
position:
top: 0
left: 0
height: 3
width: 1
refreshInterval: 30
repositories:
- "myorg/admin"
uploadURL: ""
username: "hoexter"
type: github
The -label:dependencies is used here to filter out dependabot PRs in the
dashboard.
Workflow
Look at a PR with ghv $ID, if it's ok ACK it with gha $ID.
Create a PR from a feature branch with ghc and later on merge it with ghm $ID.
The $ID is retrieved from looking at my wtfutil based dashboard.
Security Considerations
The world is full of bad jokes. For the WebUI access I've the full array of pain
with SAML auth, which expires too often, and 2nd factor verification for my account
backed by a Yubikey. But to work with the CLI you basically need an API token
with full access, everything else drives you insane. So I gave in and generated
exactly that. End result is that I now have an API token - which is basically a
password - which has full power, and is stored in config files and environment
variables. So the security features created around the login are all void now.
Was that the aim of it after all?
If you clear your browser cookies regularly (as you should do), Google will annoy you with a full screen cookie consent overlay these days. And - of course - there is no "no tracking consent, technically required cookies only" button. You may log in to Google to set your preference. Yeah, I'm sure this is totally following the intent of the EU Directive 2009/136/EC (the "cookie law").
Unfortunately none of the big "anti-annoyances" filter lists seem to have picked that one up yet but the friendly folks from the Computerbase Forum [German] to the rescue. User "Sepp Depp" has created the following filter set that WFM:
Add this to your uBlock Origin "My filters" tab:
! Google - remove cookie-consent-popup and restore scroll functionality google.*##.wwYr3.aID8W.bErdLd google.*##.aID8W.m114nf.t7xA6 google.*##div[jsname][jsaction^="dg_close"] google.*##html:style(overflow: visible !important;) google.*##.widget-consent-fullscreen.widget-consent
export LIBGL_ALWAYS_SOFTWARE=1I previously wrote about using this just for Kmail to stop it crashing [1]. But after doing that I still had other problems with video and disabling all GL on the NVidia card was necessary. The latest problem I ve had is that even when using that configuration things don t go well. When I run the reboot command I end up with a kernel message about the GPU not responding and then it doesn t reboot. That means that the BIOS update doesn t apply, a hard reboot signals to the system that the new BIOS wasn t good and I end up with the old BIOS again. I discovered that disabling sddm (the latest xdm program in Debian) from starting on boot meant that a reboot command would work. Then I ran the BIOS update script and it s reboot command worked and gave a successful BIOS update. So I ve gone from a 2013 BIOS to a 2018 BIOS! The update list says that some CVEs have been addressed, but the spectre-meltdown-checker doesn t report any fewer vulnerabilities.
Very thrilled to announce a new package RcppSpdlog which is now on CRAN in its first release 0.0.1. We had tweeted once about the earliest version which had already caught the eyes of Gabi upstream.
RcppSpdlog bundles spdlog, a wonderful header-only C++ logging library with all the bells and whistles you would want that was written by Gabi Melman, and also includes fmt by Victor Zverovic.
I had meant to package this for a few years now but didn t find an (easy, elegant) way to completely lift stdout / stderr and related uses which R wants us to remove for smoother operations from R itself including synchronized input/output. It was only a few weeks ago that I realized I should subclass a logger (or, more concretely, a sink for a logger) which could then use R input/output. With the right idea the implementaton was easy, and [Gabi]((https://github.com/gabime) was most helpful in making sure R CMD check would not see one or two remaining C++ i/o operations (which we currently do by not activating a default logger, and substituing REprintf() in one call). So this is now clean and sween and a simple use is included in an example in the package we can show here too (in slightly shorter form minus the documentation header):
// this portmanteau include also defines the r_sink we use below, and which
// diverts all logging to R via the Rcpp::Rcout replacement for std::cout
#include <RcppSpdlog>
// [[Rcpp::export]]
void exampleRsink()
std::string logname = "fromR"; // fix a name for this logger
auto sp = spdlog::get(logname); // retrieve existing one
if (sp == nullptr) sp = spdlog::r_sink_mt(logname); // or create new one if needed
// change log pattern (changed from [%H:%M:%S %z] [%n] [%^---%L---%$] )
sp->set_pattern("[%H:%M:%S.%f] [%n] [%^%L%$] [thread %t] %v");
sp->info("Welcome to spdlog!");
sp->error("Some error message with arg: ", 1);
sp->warn("Easy padding in numbers like :08d ", 12);
sp->critical("Support for int: 0:d ; hex: 0:x ; oct: 0:o ; bin: 0:b ", 42);
sp->info("Support for floats :03.2f ", 1.23456);
sp->info("Positional args are 1 0 ..", "too", "supported");
sp->info(" :<30 ", "left aligned");
The only sour grapes, if any, are over the CRAN processing. This was originally uploaded three weeks ago. As a new package, it got extra attention and some truly idiosyncratic attention to two details that were already supplied in the first uploaded version. Yet it needed two rounds of going back and forth for really no great net gain, yet wasting a week each time. I am not all that impressed by this, and not particularly pleased either, but I presume is the tax we all pay in order to enjoy the unsurpassed richness of the CRAN repository system which continues to work just flawlessly. If you like this or other open-source work I do, you can now sponsor me at GitHub. For the first year, GitHub will match your contributions.Changes in RcppSpdlog version 0.0.1 (2020-09-08)
- Initial release with added R/Rcpp logging sink example
This post by Dirk Eddelbuettel originated on his Thinking inside the box blog. Please report excessive re-aggregation in third-party for-profit settings.
Four years ago somebody posted a comment-thread describing how you could start writing a little reverse-polish calculator, in C, and slowly improve it until you had written a minimal FORTH-like system:
At the time I read that comment I'd just hacked up a simple FORTH REPL of my own, in Perl, and I said "thanks for posting". I was recently reminded of this discussion, and decided to work through the process.
Using only minimal outside resources the recipe worked as expected!
The end-result is I have a working FORTH-lite, or FORTH-like, interpreter written in around 2000 lines of golang! Features include:
( and ) are ignored, as expected.
\ to the end of the line are also supported.float64).., or print).emit).." Hello, World ").drop, dup, over, swap)do/loop.if, else, and then.star which just outputs a single start-character:
: star 42 emit ;
Now we can call that (NOTE: We didn't add a newline here, so the REPL prompt follows it, that's expected):
> star
*>
To make it more useful we define the word "stars" which shows N stars:
> : stars dup 0 > if 0 do star loop else drop then ;
> 0 stars
> 1 stars
*> 2 stars
**> 10 stars
**********>
This example uses both if to test that the parameter on the stack was greater than zero, as well as do/loop to handle the repetition.
Finally we use that to draw a box:
> : squares 0 do over stars cr loop ;
> 4 squares
****
****
****
****
> 10 squares
**********
**********
**********
**********
**********
**********
**********
**********
**********
**********
For fun we allow decompiling the words too:
> #words 0 do dup dump loop
..
Word 'square'
0: dup
1: *
Word 'cube'
0: dup
1: square
2: *
Word '1+'
0: store 1.000000
2: +
Word 'test_hot'
0: store 0.000000
2: >
3: if
4: [cond-jmp 7.000000]
6: hot
7: then
..
Anyway if that is at all interesting feel free to take a peak. There's a bit of hackery there to avoid the use of return-stacks, etc. Compared to gforth this is actually more featureful in some areas:
There are a number of large and very successful Debian Local Groups
(Debian France, Debian Brazil and Debian Taiwan, just to name a few),
but what can we do to help support upcoming local groups or help spark interest
in more parts of the world?
There has been a session about
Debian Local Teams at Debconf20
and it generated quite a bit of constructive discussion in the live stream
(recording available at
https://meetings-archive.debian.net/pub/debian-meetings/2020/DebConf20/),
in the session's Etherpad
and in the IRC channel (#debian-localgroups). This article is an attempt at
summarizing the key points that were raised during that discussion, as well as
the plans for the future actions to support new or existent Debian Local Groups
and the possibility of setting up a local group support team.
Pandemic situation
During a pandemic it may seem strange to discuss offline meetings, but this is
a good time to be planning things for the future. At the same time, the current
situation makes it more important than before to encourage local interaction.
Reasoning for local groups
Debian can seem scary for those outside. Already having a connection to Debian - especially
to people directly involved in it - seems to be the way through
which most contributors arrive. But if one doesn't have a connection,
it is not that easy; Local Groups facilitate that by improving networking.
Local groups are incredibly important to the success of Debian
since they often help with translations, making us more diverse, support,
setting up local bug squashing sprints, establishing a local DebConf team
along with miniDebConfs, getting sponsors for the project and much more.
Existence of a Local Groups would also facilitate access to "swag" like stickers
and mugs, since people not always have the time to deal with the process
of finding a supplier to actually get those made.
The activity of local groups might facilitate that by organizing related logistics.
How to deal with local groups, how to define a local group
Debian gathers the information about Local Groups in its
Local Groups wiki page (and subpages).
Other organisations also have their own schemes, some of them featuring a map,
blogs, or clear rules about what constitutes a local group. In the case of Debian
there is not a predefined set of "rules", even about the group name.
That is perfectly fine, we assume that certain local groups may be very small,
or temporary (created around a certain time when they plan several activities,
and then become silent). However, the way the groups are named and how they are
listed on the wiki page sets expectations with regards to what kinds of activities
they involve.
For this reason, we encourage all the Debian Local Groups to review their entries
in the Debian wiki, keep it current
(e.g. add a line "Status: Active (2020)), and we encourage informal groups of
Debian contributors that somehow "meet", to create a new entry in the wiki page, too.
What can Debian do to support Local Groups
Having a centralized database of groups is good (if up-to-date),
but not enough. We'll explore other ways of propagation and increasing visibility,
like organising the logistics of printing/sending swag and facilitate access
to funding for Debian-related events.
Continuation of efforts
Efforts shall continue regarding Local Groups.
Regular meetings are happening every two or three weeks;
interested people are encouraged to explore some other relevant DebConf20 talks
(Introducing Debian Brasil,
Debian Academy: Another way to share knowledge about Debian,
An Experience creating a local community on a small town),
websites like Debian flyers
(including other printed material as cube, stickers),
visit the events section of the Debian website
and the Debian Locations wiki page,
and participate in the IRC channel #debian-localgroups at OFTC.
My inverter has unfortunately died, and I wanted to replace it with the
same model. Ideally before I lose the contents of the fridge. It's a 24v
inverter, which is not at all as easy to find a replacement for as a 12v
inverter would be.
Somehow Walmart was the only retailer that
had it available
with a delivery estimate: Just 2 days.
It's the second day now, with no indication they've shipped it.
I noticed the "sold and shipped by Zoro", so went and
found it on that website.
So, the reality is it ships direct from China via container ship. As does
every product from Zoro, which all show as 2 day delivery on Walmart's website.
I don't think this is a pandemic thing. I think it's a trying to compete
with Amazon and failing thing.
This one rarely returns to its proper place, instead living in the small pile
of records permanently next to my turntable. I'm a late convert to Primal
Scream: I first heard the 10 minute Andrew Weatherall mix of Come
Together on
Tom Robinson's 6Music show. It's a
remarkable record, more so to think that it's quite hard, in isolation, to
actually hear Primal Scream's contribution. This is very much Weatherall's track,
and (to me, at least) it does a great job of encapsulating the house music
explosion of the time.
It's interesting to hear Terry Farley's mix, partially because the band's
contribution is more evident, so you can get a glimpse of the material that
Weatherall had to work with.
RIP Andrew Weatherall, 1963-2020.
Like each month, here comes a report about the work of paid contributors to Debian LTS.
Individual reports
In August, 237.25 work hours have been dispatched among 14 paid contributors. Their reports are available:
No comment Liked this article? Click here. My blog is Flattr-enabled.
Just to remind myself because I keep forgetting it again and again: If you get washed out colors when doing color to alpha and then recombine layers in GIMP, that is due to the new default in GIMP 2.10 that combines layers in linear RGB.
This creates problems because Color to Alpha works in perceptual RGB, and the recombination in linear creates washed out colors. The solution is to right click on the respective layer, select Composite Space , and there select RGB (perceptual) . Here is the bug report that has been open since 2 years.
Hoping that for next time I remember it.
Yesterday I did the first release of my OpenPGP compatible keyserver, onak, in 4 years. Actually, 2 releases because I discovered my detection for various versions of libnettle needed some fixing.
It was largely driven by the need to get an updated package sorted for Debian due to the removal of dh-systemd, but it should have come sooner. This release has a number of clean-ups for dealing with the hostility shown to the keyserver network in recent years. In particular it implements some of dkg s Abuse-Resistant OpenPGP Keystores, and finally adds support for verifying signatures fully. That opens up the ability to run a keyserver that will only allow verifiable updates to keys. This doesn t tie in with folk who want to run PGP based systems because of the anonymity, but for those of us who think PGP s strength is in the web of trust it s pretty handy. And it s all configurable to taste; you can turn off all the verification if you want, or verify everything but not require any signatures, or even enable v3 keys if you feel like it.
The main reason this release didn t come sooner is that I m painfully aware of the bits that are missing. In particular:
0.6.0 - 13th September 20200.6.1 - 13th September 2020
- Move to CMake over autoconf
- Add support for issuer fingerprint subpackets
- Add experimental support for v5 keys
- Add read-only OpenPGP keyring backed DB backend
- Move various bits into their own subdirectories in the source tree
- Add support for full signature verification
- Drop v3 keys by default when cleaning keys
- Various code cleanups
- Implement pieces of draft-dkg-openpgp-abuse-resistant-keystore-03
- Add support for a fingerprint blacklist (e.g. Evil32)
- Deprecate the .conf configuration file format
- Drop version info from armored output
- Add option to deny new keys and only allow updates to existing keys
- Various pieces of work removing support for 32 bit key IDs and coping with colliding 64 bit key IDs.
- Remove support for libnettle versions that lack the full SHA2 suite
- Fixes for compilation without nettle + with later releases of nettle
Step by step cups debugging ( here with a network printer)/etc/cups/printers.conf and change the ErrorPolicy for each printer from stop-printer to retry-job.
You can connect to a running pod with oc/kubectl rsh pod_name, or start a copy of a running pod with oc debug pod_name, but as best practises recommend unprivileged, slim container images, where do you get sosreport, kdump, dig and nmap for troubleshooting ? Fortunately you can start either a transient Debian troubleshooting container with:oc run troubleshooting-pod --stdin --tty --rm --image=docker.io/library/debian:busteror a Red Hat Entreprise Linux:| Editor: | Maya Schenwar |
| Editor: | Joe Macar |
| Editor: | Alana Yu-lan Price |
| Publisher: | Haymarket Books |
| Copyright: | June 2016 |
| ISBN: | 1-60846-684-1 |
| Format: | Kindle |
| Pages: | 250 |
Next.