Daily Shaarli

All links of one day in a single page.

January 1, 2021

Immer schon vegan – Katharina Seiser

Gibt es traditionelle Pflanzenrezepte, die wirklich schmecken? Diese Frage hat sich Katharina Seiser, Autorin beliebter und bewährter Kochbücher, gestellt. ­Die Antwort ist ein wahrer veganer Schatz, hier erstmals in einem Kochbuch vereint: 70 geschmackvolle und immer schon rein pflanzliche Rezepte aus über 20 Ländern.

icdiff: side-by-side highlighted command line diffs

Your terminal can display color, but most diff tools don't make good use of it. By highlighting changes, icdiff can show you the differences between similar files without getting in the way. This is especially helpful for identifying and understanding small changes within existing lines.

Instead of trying to be a diff replacement for all circumstances, the goal of icdiff is to be a tool you can reach for to get a better picture of what changed when it's not immediately obvious from diff.

Calling Bullshit by Carl T. Bergstrom, Jevin D. West: 9780525509189

Bullshit isn’t what it used to be. Now, two science professors give us the tools to dismantle misinformation and think clearly in a world of fake news and bad data.

Misinformation, disinformation, and fake news abound and it’s increasingly difficult to know what’s true. Our media environment has become hyperpartisan. Science is conducted by press release. Startup culture elevates bullshit to high art. We are fairly well equipped to spot the sort of old-school bullshit that is based in fancy rhetoric and weasel words, but most of us don’t feel qualified to challenge the avalanche of new-school bullshit presented in the language of math, science, or statistics. In Calling Bullshit, Professors Carl Bergstrom and Jevin West give us a set of powerful tools to cut through the most intimidating data.

You don’t need a lot of technical expertise to call out problems with data. Are the numbers or results too good or too dramatic to be true? Is the claim comparing like with like? Is it confirming your personal bias? Drawing on a deep well of expertise in statistics and computational biology, Bergstrom and West exuberantly unpack examples of selection bias and muddled data visualization, distinguish between correlation and causation, and examine the susceptibility of science to modern bullshit.

We have always needed people who call bullshit when necessary, whether within a circle of friends, a community of scholars, or the citizenry of a nation. Now that bullshit has evolved, we need to relearn the art of skepticism.

Five tips for clear writing

Be authoritative. Tell your readers what they need to know, not what you might ideally like them to know. Tell them also what they need to think about it.

Save your readers time. If you are summarising a file of documents for them, you do not need to give them the experience of reading it themselves. Don’t use a piece of writing as a dumping ground for evidence; use the evidence sparingly to illustrate your argument.

Pick your battles. You may need to prove some points laboriously, especially if the ground is controversial. But you can’t do this across the board. Work out where a blow-by-blow account is necessary and where a simple allusion will suffice.

Don’t include details just because they are fun or interesting. If they don’t serve your argument or your story, they should go.

Observe the 5% rule. Any text, whether it’s a 1,000-page novel or a tweet, can be reduced by 5% without serious sacrifice of meaning. In fact, the true percentage is probably higher …

HOW TO LONGBOARD/SKATEBOARD FOR BEGINNERS - YouTube

So you just got your first longboard or cruiser board, now what!? Landyachtz team rider Alex Hannigan gives you all the tips he wishes he had when he started skateboarding. You’ll learn about foot placement, how to push, footbrake, turn, carve and whether you are goofy or regular! We’ll also give you some helpful tips like what to look for when picking a spot to skate. Comment below to let us know what other trick tips you’d like Alex to teach you.

Facehugger Leather Face Mask & Kit | Etsy

Whether you’re keeping safe from a pandemic, cosplaying, scaring passersby, practicing kissing, or just giving a lonely alien a hug, we’ve got just the thing for you! This Facehugger mask was patterned by the incredibly talented LeatherHub Patterns and is laser cut from 4-5 oz vegetable tanned leather. This li’l leather beauty is available as a completed mask or as a kit – the kit has everything you need to build, connect, sew, dye, and mold your Facehugger to your liking. One kit contains 60 laser cut leather pieces and requires anywhere from 4-10 hours of assembly, perfect for a weekend of crafting.

How NAT traversal works · Tailscale Blog

That’s fundamentally all that the STUN protocol is: your machine sends a “what’s my endpoint from your point of view?” request to a STUN server, and the server replies with “here’s the ip:port that I saw your UDP packet coming from.”

For example, we’ve observed that the UC Berkeley guest WiFi blocks all outbound UDP except for DNS traffic. No amount of clever NAT tricks is going to get around the firewall eating your packets. So, we need some kind of reliable fallback no matter what.

You could implement relays in a variety of ways. The classic way is a protocol called TURN (Traversal Using Relays around NAT). We’ll skip the protocol details, but the idea is that you authenticate yourself to a TURN server on the internet, and it tells you “okay, I’ve allocated ip:port, and will relay packets for you.” You tell your peer the TURN ip:port, and we’re back to a completely trivial client/server communication scenario.

Interactive Connectivity Establishment (ICE) protocol. Like STUN and TURN, ICE has its roots in the telephony world, and so the RFC is full of SIP and SDP and signalling sessions and dialing and so forth. However, if you push past that, it also specifies a stunningly elegant algorithm for figuring out the best way to get a connection.

Ready? The algorithm is: try everything at once, and pick the best thing that works. That’s it. Isn’t that amazing?

Let’s look at this algorithm in a bit more detail. We’re going to deviate from the ICE spec here and there, so if you’re trying to implement an interoperable ICE client, you should go read RFC 8445 and implement that.

vrothberg/vgrep: vgrep - a user-friendly pager for grep

vgrep is a pager for grep, git-grep, ripgrep and similar grep implementations, and allows for opening the indexed file locations in a user-specified editor such as vim or emacs. vgrep is inspired by the ancient cgvg scripts but extended to perform further operations such as listing statistics of files and directory trees or showing the context lines before and after the matches. vgrep runs on Linux, Windows and Mac OS.

oha — command-line utility in Rust // Lib.rs

Ohayou(おはよう), HTTP load generator, inspired by rakyll/hey with tui animation

Kubernetes and Networks - why is this so dang hard?

A brief look at models for integrating Kubernetes clusters into existing networks.

(20) Tim Weber on Twitter: "TIL: `which` in Shellscripts sollte vermieden werden. Es ist inkonsistent, unvollständig, nicht plattform-/shellübergreifend und noch nicht mal in POSIX. Stattdessen bietet sich `command` an, also z.B. `command -v tmux`. Vgl. https://t.co/JD1FcFL4lk & https://t.co/UQcHChr9Ek." / Twitter

TIL: which in Shellscripts sollte vermieden werden. Es ist inkonsistent, unvollständig, nicht plattform-/shellübergreifend und noch nicht mal in POSIX. Stattdessen bietet sich command an, also z.B. command -v tmux.

https://unix.stackexchange.com/questions/85249/why-not-use-which-what-to-use-then/85250#85250

https://pubs.opengroup.org/onlinepubs/9699919799/utilities/command.html

evgeni/cfgdiff: diff(1) all your configs

Ever tried comparing MySQL's my.cnf from a Debian and a Gentoo machine with diff(1) without going crazy?

diff(1) is an awesome tool, you use it (or similar implementations like git diff, svn diff etc) every day when dealing with code. But configuration files aren't code. Indentation often does not matter (yeah, there is diff -w and yeah, people use YAML for configs), order of settings does not matter and comments are just beautiful noise.
How?

cfgdiff will try to parse your configuration files, fetching all the relevant keys and values from them and then pretty-printing them in the original format. These results are then diffed and the diff is shown to you.

here's a cool view into the phenomenon i'm calling "zoomer unix"

Rewritten in Rust: Modern Alternatives of Command-Line Tools
https://zaiste.net/posts/shell-commands-rust/

Pro1 X Smartphone Functionality, Choice & Control | Indiegogo

Following the success of our first smartphone, the Pro1, team F(x)tec have been working closely with our customers and the wider tech community to bring you a special version of our award winning phone.

In partnership with XDA (one of the largest online tech communities) we present the Pro1-X; the smartphone that gives you control. Control over your data, control over your privacy, and choice over your software. For the first time, a high spec smartphone with your choice of Android, Lineage OS or Ubuntu Touch OS out of the box.

Digital Services Act: Regulierung der Datenökonomie eröffnet - A&W-Blog

Im Juni 2020 hat die Kommission eine öffentliche Konsultation über ihr lang angekündigtes Gesetzespaket zu digitalen Dienstleistungen gestartet. Rückmeldungen zu Online-Sicherheit, Haftung, Marktbeherrschung, Online-Werbung und intelligenten Verträgen etc. sollen bis 8. September eingeholt werden. Einerseits geht es darum, wie mit dem Digital Services Act die in der E-Commerce-Richtlinie aus dem Jahr 2000 festgelegten Regeln aktualisiert werden könnten. Andererseits sollen sogenannte Ex-ante-Vorschriften aufgestellt werden. Damit soll auf Märkten, die durch große Plattformen geprägt sind, fairer Wettbewerb auch für kleine Akteure gewährleistet werden können. Die Ergebnisse der Konsultation sollen in den Rechtsakt, der Ende 2020 von der Kommission veröffentlicht werden soll, einfließen. Umso wichtiger erscheint eine rege Teilnahme an diesem Konsultationsprozess.

Der Digital Services Act wird die Akteure, InteressenvertreterInnen und Stakeholder jahrelang beschäftigen

Running an IBM System 370 on a Raspberry Pi Zero #VintageComputing #PiDay @Raspberry_Pi « Adafruit Industries – Makers, hackers, artists, designers and engineers!

I have been running a full IBM System/370 Mainframe on a $20 Raspberry Pi Zero for ~5 months. Thousands of lines of COBOL and HLASM running flawless. Tested an entire bank’s mainframe COBOL on it.

htop-dev/htop: htop - an interactive process viewer

After a prolonged period of inactivity, new devs have taken over to support
htop. The new 3.0 release features lots of improvements (
https://github.com/htop-dev/htop/blob/master/ChangeLog ), mostly to
underlying low-level items.

Raspberry Pi for HAM Radio

Since 2012, the Raspberry Pi nano computer has become an increasingly important part of the DIY and « maker » community. The increase in power of the Raspberry Pi over the years offers very interesting possibilities for radio amateurs. Indeed, it allows not to permanently monopolize a PC in the decoding of frames with software like WSJT-X, FLDIGI, etc…, without forgetting the possibility to control the Raspberry Pi remotely and thus to be able to work outside the radio shack as I can sometimes do on my couch. Moreover, this nano computer is now widely used in any Hotspot (DMR or D-STAR).

bach-sh/bach: Bach Testing Framework

Bach is a Bash testing framework, can be used to test scripts that contain dangerous commands like rm -rf /. No surprises, no pain.

Get Organized With This Raspberry Pi E-Ink Calendar

But [Zonglin Li] has recently wrapped up a project which shows that e-ink has at least one more use case: personal calendars. You can get way with only updating the screen once a day so the refresh rate won’t matter, and the rest of the time it’s going to be static anyway so you might as well enjoy the energy savings of leaving the screen off. With a Raspberry Pi behind the scenes pulling data from the Internet, it can populate the calendar with everything from your personal schedule to when your favorite podcast drops.

Snap Together Mini Lamp by MakerBot - Thingiverse

A snap-together derivative of Mattraptions' Mini Desk Lamp.

Modified by Skimbal to use Tony Buser's snap fittings.
Instructions

Print all three plates.

Snap the arm togeather using the images as a guide.

Snap the Arm into the base.

Snap the Lamp onto the arm.

Add a light.

Smile.

Kristian Köhntopp: Go Away Or I Will Replace You With A Very Little Shell Script - YouTube

Keynote for the GUUG FFG 2015, Stuttgart (Video: FrosCON, deutsche Sprache)

Recap: measuring linux performance - how to avoid typical mistakes

In the last two weeks, Peter Zaitsev published a 4-part series on measuring Linux performance on this blog.

His writings cover the 4 main areas where you can spot performance problems on any Linux machine, with practical tips on how to draw the right conclusions. Here are the individual pieces:

Measuring Linux Performance: CPU
Measuring Linux Performance: Disk
Measuring Linux Performance: Memory
Measuring Linux Performance: Network

I found these gave a good overall summary of the things to be on the look-out for whenever you’re troubleshooting slow applications or slow servers.

[ANNOUNCE] nano-5.0 is released

• With --indicator (or -q or 'set indicator') nano will show a kind
of scrollbar on the righthand side of the screen to indicate where
in the buffer the viewport is located and how much it covers.
• With <Alt+Insert> any line can be "tagged" with an anchor, and
<Alt+PageUp> and <Alt+PageDown> will jump to the nearest anchor.
When using line numbers, an anchor is shown as "+" in the margin.
• The Execute Command prompt is now directly accessible from the
main menu (with ^T, replacing the Spell Checker). The Linter,
Formatter, Spell Checker, Full Justification, Suspension, and
Cut-Till-End functions are available in this menu too.
• On terminals that support at least 256 colors, nine new color
names are available: pink, purple, mauve, lagoon, mint, lime,
peach, orange, and latte. These do not have lighter versions.
• For the color names red, green, blue, yellow, cyan, magenta,
white, and black, the prefix 'light' gives a brighter color.
Prefix 'bright' is deprecated, as it means both bold AND light.
• All color names can be preceded with "bold," and/or "italic,"
(in that order) to get a bold and/or italic typeface.
• With --bookstyle (or -O or 'set bookstyle') nano considers any
line that begins with whitespace as the start of a paragraph.
• Refreshing the screen with ^L now works in every menu.
• In the main menu, ^L also centers the line with the cursor.
• Toggling the help lines with M-X now works in all menus except
in the help viewer and the linter.
• At a filename prompt, the first <Tab> lists the possibilities,
and these are listed near the bottom instead of near the top.
• Bindable function 'curpos' has been renamed to 'location'.
• Long option --tempfile has been renamed to --saveonexit.
• Short option -S is now a synonym of --softwrap.
• The New Buffer toggle (M-F) has become non-persistent. Options
--multibuffer and 'set multibuffer' still make it default to on.
• Backup files will retain their group ownership (when possible).
• Data is synced to disk before "... lines written" is shown.
• The raw escape sequences for F13 to F16 are no longer recognized.
• Distro-specific syntaxes, and syntaxes of less common languages,
have been moved down to subdirectory syntax/extra/. The affected
distros and others may wish to move wanted syntaxes one level up.
• Syntaxes for Markdown, Haskell, and Ada were added.

TRYING TO BUILD THE ULTIMATE RASPBERRY PI COMPUTER (ZERO TERMINAL V3)

Here's another iteration on the Zero Terminal projects I've been working on for a few years. For those of you who haven't seen them, I've been trying to design the most usable all in one Pi Zero computer out there.

This version departs a little from the previous ones, as it is more focused on modularity, and forgoes a keyboard as standard, though it is possible to add one, as I'll show you in a bit. The goal here was to create something very versatile, allowing for all sorts of use cases to unlock the Zero's potential. Anyways, let's take a look at it.

How to take back control of /etc/resolv.conf on Linux

Several DNS-related programs want to automatically manage the DNS name server and resolution configuration file at /etc/resolv.conf. In some situations, you may want to manage this file yourself. Here is how you identify which programs are automatically managing this file on your Linux distribution, and how you can take back manual control of the file.

There are quite a few different tools that fight to control a Linux system’s DNS resolution configuration file /etc/resolv.conf including netconfig, NetworkManager, resolvconf, rdnssd, and systemd-resolved.