Elegant Bash Conditionals
How to write better bash scripts by replacing if-statements with something much more elegant
Every blog post that took off on Hacker News, ranked by the votes of its best submission. 49,267 posts.
How to write better bash scripts by replacing if-statements with something much more elegant
Over the last few years I’ve gradually given up on Twitter. This has been a long term process because of how deeply my professional and intellectual life was embedded into the service. Not on…
When making a start in a new field it is common to feel overwhelmed. You may lack confidence or feel as though you are not good enough or that you are lacking some prerequisite. You will explore these issues in this post and learn that such feelings can lead to actions that can consume a […]
I was recently recommended as a pinch-hitter keynote speaker for a Linux conference by a friend who wasn’t going to be able to present due to a scheduling conflict. She put me in touch with the conference organizers, and they reached out to me with the exciting email subject “We want YOU to keynote [conference…
tl;dr: The ODROID-C2 is a very solid competitor to the Raspberry Pi model 3 B, and is anywhere from 2-10x faster than the Pi 3, depending on the operation. The software and community support is nowhere near what you get with the Raspberry Pi, but it's the best I've seen of all the Raspberry Pi clones I've tried. The…
This page has permanently moved to: https://blog.oxplot.com/dont-ask-for-personal-details
2016 so far wins my lifetime award for most depressing and disturbing year ever (on the front of the larger world one reads about in the newspaper and elsewhere, personally things are fine, thanks)…
If you do Linux systems programming, you will have likely pored over man pages, either on the command line or, my personal preference, using the excellent man7.org or linux.die.net. I’ve always seen …
I recently received a message from a friend of mine, a young man named Mike. He told me that Digital Minimalism had changed his life. ... Read more
I bought Braid on the promise of lavish visuals and neat puzzles with temporal mechanics, and on this basis I was rewarded. I found some frustration with the controls, which I eventually traced to dodgy keyboard drivers - the game wouldn't register the up or down arrows while I ...
An exercise in spotting agenda journalism: dissecting a 2022 𝑁𝑒𝑤 𝑌𝑜𝑟𝑘 𝑇𝑖𝑚𝑒𝑠 article on teen vaping sentence by sentence to show how it pins an EVALI hospitalization on legal nicotine vapes while never quite saying so—since the actual cause was illegal THC products. Every misleading sentence is technically true.
I enjoy breaking websites.
The new Windows 10 update coming in a few weeks. It's called Windows 10 ...
From the highly eclectic blog of Mark Dominus
ffmpeg is a wonderful library for creating video applications or even general purpose utilities. ffmpeg takes care of all the hard work of video processing by doing all the decoding, encoding, muxing and demuxing for you. This can make media applications much simpler to write. It's simple, written in C, fast, and can…
I like Python, but wish it had static typing. The added safety would go a long way to improving quality and reducing development time. So today I tried to make use of type annotations and a static type-checker called mypy. After a few basic tests, I was excited. But my glee turned to disappointment rather […]
Originally, the domain part of a web address was all ASCII (so no accents, no emojis, no Chinese characters). This was extended a long time ago thanks to something called internationalized domain name (IDN). Today, in theory, you can use any Unicode character you like as part of a domain name, including emojis…
Sending a ping by creating an ICMP socket normally requires root: you can’t create a raw socket to send ICMP packets without it. The ping command line tool works without root however, how is that possible? It turns out you can create a UDP socket with a protocol flag, which allows you to send the ping rootless. I…
This is a fun one. I’ve spent more time than I’d care to admit staring at LLM output. And there’s something that I’ve noticed: LLM-generated prose has a kind of… vibe. It’s difficult to describe,…
You're probably reading this page because you've attempted to access some part of my blog (Wandering Thoughts) or CSpace , the wiki thing it's part of. Unfortunately you're using a browser version that my anti-crawler precautions consider suspicious, most often because it's too old (most often this applies to versions…
The Long-termist's Field Guide: 1,000 Ideas For The Next 1,000 Years
This was originally posted as an answer to a Quora question about how long it takes Chinese kids to learn their “alphabet”. I’m editing it…
#Democrat, #VoteBlue, #Bernie, #JohnOliver, and 24 other hashtags Instagram censored on the day of Trump's inauguration.