Reproducible Builds (diffoscope): diffoscope 234 released
234. This version includes the following changes:
[ FC Stegerman ]
* test_text_proper_indentation requires at least file version 5.44.
(Closes: reproducible-builds/diffoscope#329)
234. This version includes the following changes:
[ FC Stegerman ]
* test_text_proper_indentation requires at least file version 5.44.
(Closes: reproducible-builds/diffoscope#329)
Just days after a build-fix
release (for aarch64) and still only a few weeks after the 0.2.0
release of RcppTOML
and its switch to toml++, we have
another bugfix release 0.2.2 on CRAN also bringing release 3.3.0 of
toml++ (even if we
had large chunks of 3.3.0 already incorporated).
TOML is 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.
The package was building fine on Intel-based macOS provided the
versions were recent enough. CRAN, however, aims for the
broadest possibly reach of binaries and builds on a fairly ancient macOS
10.13 with clang version 10. This confused toml++ into (wrongly)
concluding it could not build when it in fact can. After a hint from Simon that Apple in their infinite
wisdom redefines clang version ids, this has been reflected in version
3.3.0 of toml++ by
Mark so we should now build
everywhere. Big thanks to everybody for the help.
The short summary of changes follows.
Courtesy of my CRANberries, there is a diffstat report for this release. More information is on the RcppTOML page page. Please use the GitHub issue tracker for issues and bugreports. If you like this or other open-source work I do, you can sponsor me at GitHub.Changes in version 0.2.2 (2023-01-29)
- New toml++ version 3.3.0 with fix to permit compilation on ancient macOS systems as used by CRAN for the Intel-based builds.
This post by Dirk Eddelbuettel originated on his Thinking inside the box blog. Please report excessive re-aggregation in third-party for-profit settings.
#!/bin/sh
#
# Author: Petter Reinholdtsen
# License: GPL v2 or later at your choice.
#
# Validate the MIME setup, making sure motor types have
# application/vnd.openmotor+yaml associated with them and is connected
# to the openmotor desktop file.
retval=0
mimetype="application/vnd.openmotor+yaml"
testfile="test/data/real/o3100/motor.ric"
mydesktopfile="openmotor.desktop"
filemime="$(xdg-mime query filetype "$testfile")"
if [ "$mimetype" != "$filemime" ] ; then
retval=1
echo "error: xdg-mime claim motor file MIME type is $filemine, not $mimetype"
else
echo "success: xdg-mime report correct mime type $mimetype for motor file"
fi
desktop=$(xdg-mime query default "$mimetype")
if [ "$mydesktopfile" != "$desktop" ]; then
retval=1
echo "error: xdg-mime claim motor file should be handled by $desktop, not $mydesktopfile"
else
echo "success: xdg-mime agree motor file should be handled by $mydesktopfile"
fi
exit $retval
It is a simple way to ensure your users are not very surprised when
they try to open one of your file formats in their file browser.
As usual, if you use Bitcoin and want to show your support of my
activities, please send Bitcoin donations to my address
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b.
Greetings from Viluppuram, Tamil Nadu, South India!
As a preparation and warm-up for DebConf in September, the Debian
people in India have organized a miniDebConf. Well, I don t want to be
unfair to them They have been regularly organizing miniDebConfs for
over a decade, and while most of the attendees are students local to
this state in South India (the very tip of the country; Tamil Nadu
is the Eastern side, and Kerala, where Kochi is and DebConf will be
held, is the Western side), I have talked with attendees from very
different regions of this country.
This miniDebConf is somewhat similar to similarly-scoped events I have
attended in Latin America: It is mostly an outreach conference, but
it s also a great opportunity for DDs in India to meet in the famous
hallway track.
India is incredibly multicultural. Today at the hotel, I was somewhat
surprised to see people from Kerala trying to read a text written in
Tamil: Not only the languages are different, but the writing systems
also are. From what I read, Tamil script is a bit simpler to Kerala s
Mayalayam, although they come from similar roots.
Of course, my school of thought is that, whenever you visit a city,
culture or country that differs from the place you were born, a
fundamental component to explore and to remember is Food! And one
of the things I most looked forward for this trip was that
precisely. I arrived to the Chennai Airport
(MAA) 8:15 local time yesterday
morning, so I am far from an expert but I have been given (and most
happily received) three times biryani (pictured in the photo by this
paragraph).
It is delicious, although I cannot yet describe the borders of what
should or should not be considered proper biryani): The base dish is
rice, and you go mixing it with different sauces or foods. What
managed to surprise us foreigners is, strangely, well known for us
all: there is no spoon. No, the food is not pushed to your mouth
using metal or wooden utensils. Not even using a tortilla as back
home, or by breaking bits of the injera that serves also as a dish,
as in Ethiopia. Sure, there is naan, but it is completely optional,
and would be a bit too much for as big a big dish as what we have
got. Biryani is eaten With the tools natural to us primates: the
fingers. We have learnt some differnt techniques but so far, I am
still using the base technique (thumb-finger-middle).
I m closing the report with the photo of the closing of the conference
as it happens. And I will, of course, share our adventures as they
unfold in the next couple of days. Because Well, we finished with
the conference-y part of the trip, but we have a full week of
(pre-)DebConf work ahead of us!
Witch Wells, AZ Snow
kubeadm install.
After passing the two corresponding certifications, my opinion on cloud operators is that it is very much a step back in the direction of proprietary software. You can rebuild their cloud stack with opensource components, but it is also a lot of integration work, similar to using the Linux from scratch distribution instead of something like Debian. A good middle point are the OpenShift and OKD Kubernetes distributions, who integrate the most common cloud components, but allow an installation on your own hardware or cloud provider of your choice.
| AWS | Azure | OpenShift | *OpenShift upstream project& |
|---|---|---|---|
| Cloud Trail | Kubernetes API Server audit log | Kubernetes | |
| Cloud Watch | Azure Monitor, Azure Log Analytics | OpenShift Monitoring | Prometheus, Kubernetes Metrics |
| AWS Artifact | Compliance Operator | OpenSCAP | |
| AWS Trusted Advisor | Azure Advisor | Insights | |
| AWS Marketplace | Red Hat Market place | Operator Hub | |
| AWS Identity and Access Management (IAM) | Azure Active Directory, Azure AD DS | Red Hat SSO | Keycloack |
| AWS Elastisc Beanstalk | Azure App Services | OpenShift Source2Image (S2I) | Source2Image (S2I) |
| AWS S3 | Azure Blob Storage** |
ODF Rados Gateway | Rook RGW |
| AWS Elastic Block Storage | Azure Disk Storage | ODF Rados Block Device | Rook RBD |
| AWS Elastic File System | Azure Files | ODF Ceph FS | Rook CephFS |
| AWS ELB Classic | Azure Load Balancer | MetalLB Operator | MetalLB |
| AWS ELB Application Load Balancer | Azure Application Gateway | OpenShift Router | HAProxy |
| Amazon Simple Notification Service | OpenShift Streams for Apache Kafka | Apache Kafka | |
| Amazon Guard Duty | Microsoft Defender for Cloud | API Server audit log review, ACS Runtime detection | Stackrox |
| Amazon Inspector | Microsoft Defender for Cloud | Quay.io container scanner, ACS Vulnerability Assessment | Clair, Stackrox |
| AWS Lambda | Azure Serverless | Openshift Serverless* |
Knative |
| AWS Key Management System | Azure Key Vault | could be done with Hashicorp Vault | Vault |
| AWS WAF | NGINX Ingress Controller Operator with ModSecurity | NGINX ModSecurity | |
| Amazon Elasticache | Redis Enterprise Operator | Redis, memcached as alternative | |
| AWS Relational Database Service | Azure SQL | Crunchy Data Operator | PostgreSQL |
| Azure Arc | OpenShift ACM | Open Cluster Management | |
| AWS Scaling Group | Azure Scale Set | OpenShift Autoscaler | OKD Autoscaler |
* OpenShift Serverless requires the application to be packaged as a container, something AWS Lambda does not require.
** Azure Blob Storage covers the object storage use case of S3, but is itself not S3 compatible
| Series: | Edinburgh Nights #1 |
| Publisher: | Tor |
| Copyright: | 2021 |
| Printing: | 2022 |
| ISBN: | 1-250-76777-6 |
| Format: | Kindle |
| Pages: | 329 |

BEGIN:VEVENT
DTSTART;TZID=Australia/Sydney:20230206T000000
DTEND;TZID=Australia/Sydney:20230206T000000
SUMMARY:School Term starts
END:VEVENT
The event starting and stopping date and time are the DTSTART and DTEND lines. Both of them have the date of 2023/02/06 or 6th February 2023 and a time of 00:00:00 or midnight. So the calendar is doing the right thing, we need to fix the feed!
The Fix
I wrote a quick and dirty PHP script to download the feed from the real site, change the DTSTART and DTEND lines to all-day events and leave the rest of it alone.
<?php
$site = $_GET['s'];
if ($site == 'site1')
$REMOTE_URL='https://site1.example.net/ical_feed';
elseif ($site == 'site2')
$REMOTE_URL='https://site2.example.net/ical_feed';
else
http_response_code(400);
die();
$fp = fopen($REMOTE_URL, "r");
if (!$fp)
die("fopen");
header('Content-Type: text/calendar');
while (( $line = fgets($fp, 1024)) !== false)
$line = preg_replace(
'/^(DTSTART DTEND);[^:]+:([0-9] 8 )T000[01]00/',
'$ 1 ;VALUE=DATE:$ 2 ',
$line);
echo $line;
?>
It s pretty quick and nasty but gets the job done. So what is it doing?
s and match it to either site1 or site2 to obtain the URL. If you only had one site to fix you could just set the REMOTE_URL variable.fopen() and nasty error handling.while loop to read the contents of the remote site line by line.preg_replace is a Perl regular expression replacement. The PCRE is:
BEGIN:VEVENT
DTSTART;VALUE=DATE:20230206
DTEND;VALUE=DATE:20230206
SUMMARY:School Term starts
END:VEVENT
The calendar then shows it properly as an all-day event. I would check the script works before doing the next step. You can use things like curl or wget to download it. If you use a normal browser, it will probably just download the translated file.
If you re not seeing the right thing then it s probably the PCRE failing. You can check it online with a regex checker such as https://regex101.com. The site has saved my PCRE and match so you got something to start with.
Calendar settings
The last thing to do is to change the URL in your calendar settings. Each calendar system has a different way of doing it. For Google Calendar they provide instructions and you want to follow the section titled Use a link to add a public Calendar .
The URL here is not the actual site s URL (which you would have put into the REMOTE_URL variable before) but the URL of your script plus the ?s=site1 part. So if you put your script aliased to /myical.php and the site ID was site1 and your website is www.example.com the URL would be https://www.example.com/myical.php?s=site1 .
You should then see the events appear as all-day events on your calendar.
After my previous efforts, I wrote up a PKCS#11 module of my own that had no odd restrictions about using non-RSA keys and I tested it. And things looked much better - ssh successfully obtained the key, negotiated with the server to determine that it was present in authorized_keys, and then went to actually do the key verification step. At which point things went wrong - the Sign() method in my PKCS#11 module was never called, and a strangedebug1: identity_sign: sshkey_sign: error in libcrypto
sign_and_send_pubkey: signing failed for ECDSA "testkey": error in libcrypto"
nid = EC_GROUP_get_curve_name(curve); if (nid == NID_X9_62_prime256v1) return ECDSA_do_sign_new(dgst,dgst_len,eckey); return ECDSA_do_sign_ex(dgst,dgst_len,NULL,NULL,eckey);What this means is that if you ask ECDSA_do_sign() to sign something on a Mac, and if the key in question corresponds to the NIST P256 elliptic curve type, it goes down the ECDSA_do_sign_new() path and never calls the registered callback. This is the only key type supported by the Apple Secure Enclave, so I assume it's special-cased to do something with that. Unfortunately the consequence is that it's impossible to use a PKCS#11 module that uses Secure Enclave keys with the shipped version of OpenSSH under macOS. For now I'm working around this with an SSH agent built using Go's agent module, forwarding most requests through to the default session agent but appending hardware-backed keys and implementing signing with them, which is probably what I should have done in the first place.
This is the second of a two-part post covering my goals for 2023. See the first part to understand the vision, mission and strategy driving these goals. I want to thank my friend Nat, and Will Larson whose annual reviews I ve always enjoyed reading for inspiring me to write these posts. I ve found the process articulating my motivations and goals very useful to clarify my thoughts and create tangible next steps. I m grateful for that in and of itself, but I also hope that by publishing this you too might find it interesting, and the additional public accountability it creates will be a positive encouragement to me.
For the fourth year in a row, I've asked Soci t de Transport de Montr al,
Montreal's transit agency, for the foot traffic data of Montreal's subway.
By clicking on a subway station, you'll be redirected to a graph of the
station's foot traffic.