HNHacker News
TopNewBestAskShowJobs

joveian

1,496 karma · joined August 21, 2013

submissionscomments
joveian··on No more boot loader: Please use the kernel instead
This link that has been posted a couple of times is a much better source for those of us who aren't going to watch a video:

https://fizuxchyk.wordpress.com/2024/06/13/nmbl-we-dont-need...

joveian··on SSH as a Sudo Replacement
The big advantage is if setuid and setgid support can be entirely removed. There are a bunch of special cases that have been added over the years to try to deal but increasing priviledges of a process is fundamentally more challenging in the unix security model than only ever lowering priviledges. Of course these days Linux has priviledge escalation via user namespaces as well.
joveian··on SSH as a Sudo Replacement
You can have multiple accounts with uid/gid 0 (and can set up smart card or u2f login too if you want).
joveian··on SSH as a Sudo Replacement
If you want traditional single user mode that drops you to a root shell even though your root account is locked add SYSTEMD_SULOGIN_FORCE=1 to the environment of rescue.service and emergency.service (systemctl edit rescue.service). Of course that exact solution isn't always a good idea depending on the situation but in general that situation can be delt with differently from normal access while running correctly.
joveian··on Understanding SPF, DKIM, and DMARC: A Simple Guide
For receiving custom domain email long term I think the usual thing would be to have the chosen email provider manage all email for the domain (setting up MX records) and not forward long term. That would require a paid account with Google it looks like, but at the point you are paying for your domain that seems reasonable (I'm not sure how much they charge). The fetch options are usually either time limited or expensive from what I've seen. I wouldn't be surprised if registrars don't forward correctly according to Google's instructions, they just want the least expensive thing that lets them advertise email as a feature, but maybe worth complaining anyway if they don't.

For personal accounts I don't think you can convince Google to accept mail from incorrectly configured senders, you would need to use a different service if you must receive it. For business accounts they are less strict, although Google still randomly drops mail and I wouldn't personally use them for that reason and others (I think they have good suggestions for how mail should be set up, though). I'm not trying to sell you anything and haven't even tried them yet (and have some questions I haven't asked yet) but purelymail.com is one that seems promising to me in general and is inexpensive with no extra fee for custom domains (if you aren't attached to the way Google handles mail; I'm guessing the archive search and general interface will be more clunky). I'm guessing you can configure SpamAssasin to not strictly reject mail from incorrectly configured senders as long as they aren't on spam lists (they say they reject those immediately), but I'm not sure.

Thinking about it more I'm guessing Google requires forwarders to check spam due to not wanting customers to configure trusted ARC forwarders like Microsoft does and so not forwarding spam makes it easier to convince them the forwarder isn't a spammer trying to blame others for the spam (they might also compare forwarded spam with what they receive directly). If a forwarder uses ARC and can convince them they aren't spamming then Google should trust their SPF assessment if you just mean senders who only have SPF configured. But if you want to receive email from old timers who insist that email should have no way to detect spam there may be no way to do that with Google (or a number of other providers).

joveian··on Understanding SPF, DKIM, and DMARC: A Simple Guide
I thought it might just be ambiguous language. It wasn't clear to me what you were trying to say and it could be read as implying what I have seen (incorrectly) stated in some DMARC descriptions elsewhere. Just trying to prevent any misunderstandings from anyone reading the thread and improve my own understading by checking that I got it right before posting. Thanks for clarifying what you ment :).
joveian··on Understanding SPF, DKIM, and DMARC: A Simple Guide
There seems to be incorrect information out there about strict alignment requesting more strict checking. Strict vs relaxed alignment is just about the domain being able to send mail from subdomains without extra DNS records on the subdomains (relaxed) or not (strict). The envelope from (for SPF) and d= domain (for DKIM) must match the DNS records used. If you don't use SPF for DMARC you don't use SPF for DMARC and it doesn't matter if the DMARC SPF alignment is strict or relaxed (there is no way in DMARC to require both DKIM and SPF to pass). It is still a good idea to always pass plain (non-aligned) SPF (just based on envelope from) since sometimes this is checked independently from DMARC.
joveian··on Understanding SPF, DKIM, and DMARC: A Simple Guide
If you do SRS correctly it will not pass DMARC alignment for your domain but it will pass plain SPF which does not have the DMARC alignment check and is sometimes checked independently from DMARC. If the sender included valid DKIM it should pass DMARC for the sender's domain as long as you don't alter the signed parts of the message (unless possibly if they do something annoying like sign the absense of X-Forwarded-To). Google also wants you to use ARC, add X-Forwarded-{To, For} headers, avoid forwarding spam, and use a different IP address or domain for forwarding vs sending mail from your domain. Some email providers let you indicate that you trust particular ARC forwarders but I don't think Google uses it that way.

https://support.google.com/mail/answer/175365?hl=en

I don't know why Google want to force forwarders to do spam filtering.

joveian··on I got tired of hearing that YC fired Sam, so here's what actually happened
This just means that there are exceptions for twitter.com that haven't been switched to x.com. I use uBlock Origin with all scripts and third party resources blocked by default and got this page when they switched to x.com, but it works once you unblock the same stuff on x.com that was unblocked on twitter.com.

The exception is that some accounts still require login to read. I'm not sure why but I'm guessing that it might be a per account setting that won't be set by accounts that haven't logged in for a long time (I don't have an acount to check). Actually, worble and ploum's comments below would explain what I see, I usually don't try to check the same content twice (or anything all that often) so I wouldn't notice if it sometimes works and sometimes doesn't.

joveian··on TTE: Terminal Text Effects
That was my first thought seeing the headline, but they are really clever. My first thought looking through the examples was that I wouldn't mind a progress bar that uses the swarm effect.

https://chrisbuilds.github.io/terminaltexteffects/img/effect...

joveian··on API Shouldn't Redirect HTTP to HTTPS
Consider: 4. Someone else logs unencrypted traffic for whatever reason and the attacker gets access to the log later.

MITM means that you need to be in the middle at the time of the attack and so is more limited than an attack that works on logs.

joveian··on "Deny, denounce, delay": The battle over the risk of ultra-processed foods
You can limit prep time to almost nothing with canned, frozen, or dehydrated produce and still come out ahead of the heavily processed stuff. If you are cooking with whole grains it can take a while, although buckwheat, (proso) millet (and other tiny grains), wild rice, and many lentils are fairly quick and more aren't too bad in a pressure cooker, although it still takes an hour until it is ready to eat. With electric pressure cookers you can just push a button and wait until it is done, although you should stay in ear shot for those rare cases where it doesn't seal fully correctly or the contents bubble out. Spending more time at the computer makes this easier, not harder, although of course the variety is limited vs stuff that takes more effort (however many people can enjoy various entertainment while cooking).

I'm suspicious that a big part of the issue is that advertising has convinced many people that cooking is necessarily more difficult than it actually can be. Particularly cooking for one person can be quite easy, although it gets harder with multiple people with different tastes.

Fruit is usually somewhat expensive in the US, although still quite a good deal compared to even poverty line income. Unfortunately, it seems like there has been a division where only membership-oriented or online stores have decent bulk while everywhere else tries to sell tiny quantities of grains, lentils, beans, and various other stuff.

joveian··on DuckDuckGo was down
Neat, I kept thinking there should be a way to add keywords to that list and now I know how to do it (execept for some reason you can only add a new engine with a keyword there and not add a keyword to an existing engine :( ). I use mozlz4 and aeson-pretty to look at the search.json.mozlz4 file.

https://github.com/jusw85/mozlz4

https://github.com/informatikr/aeson-pretty

To be fair you can also just right click on the URL bar when on a page that advertises having a search and click Add <name of search>. Or if you want to search by keyword you can right click on most search boxes and click "add a keyword for this search". Mycroft Project has a bunch of random search engines ready to add to Firefox (via right clicking on the URL bar when on the search entry page):

https://mycroftproject.com/

If you use more than one search engine, I like the Right Click Search addon to be able to search highlighted text with multiple engines easily (unfortunately not monitored by Mozilla but you can look over the code before installing and turn off updates since it is quite simple and requires no permissions):

https://addons.mozilla.org/en-US/firefox/addon/right-click- search/

The most privacy friendly way to search is to search the site you want to end up on when you know what site that is and they have a usable search.

For general search engines, I suggest giving Metager a try, it is a non-profit metasearch.

https://metager.org/

joveian··on Amber: Programming language compiled to Bash
"if ((age < 18)) ; then ..." works in bash.
joveian··on Amber: Programming language compiled to Bash
Or the lack of a portable stat :(.
joveian··on LLM-generated code must not be committed without prior written approval by core
One of the NetBSD developers is a Mercurial developer and I think the general plan for a while has been to switch to Mercurial once a few technical issues have been fixed. I'm not sure if that has fully happened now and it is just waiting on the right people having enough time or what the status is. I think NetBSD and OpenBSD are the last two actively maintained open source projects that use CVS, at least as far as I am aware.

However, at least for NetBSD (don't know about OpenBSD) there is an official mirror on Github and you can submit pull requests there if you want (I'm fairly sure this will stay the case even after a switch to Mercurial). Some of the main developers mostly use git until a commit is almost ready. I think the main practical difference from the project using git as the main repository for anyone who doesn't have commit access is that while commit messages will mention the contributor I don't think it is linked on github to the contributor in the same way it would usually be with an accepted pull request. At most there might be a tiny number of extremely minor issues with the repository conversion left, and I think those might have been fixed by now as well.

joveian··on Emoji History: The Missing Years
I remembered after a bit that some people teach their infants a simplified sign language to introduce them to language faster, so to the extent that spoken language evolves faster I'm guessing it is just because it is most widely used.
joveian··on Emoji History: The Missing Years
Good point, for best long term large distance mutual understanding it is probably best to avoid anyone using it too much and particularly kids.
joveian··on 16 years of CVE-2008-0166 – Debian OpenSSL Bug
It turns out there is a bit of an exception to this, which is that plain SPF only applies to the envelope from address, not the From: field, and failure of plain SPF is sometimes (I don't know how often) considered independently from DMARC.
joveian··on Emoji History: The Missing Years
At which point it would just be NIH to not just use Chinese. As I understand it, the Americas had vastly more linguistic diversity prior to European contact than the rest of the world combined. I don't know about further south but in at least much of North America sign language was used as a common language. I'd guess if you want to create what could be a universal language you would want to try to align written, spoken, tactile, and signed forms as much as possible, which would suggest directly aligning the signed and written forms as much as possible since both are (at least mostly) visual. And if possible keep the tactile version as close as possible as well. The spoken aspect seems like the hardest and maybe better to not bother with that at all.

Also, IMO emojis are too small. I've been wanting a 4x size for emoji (double width and height). With more compact writing systems you can make everything bigger.

joveian··on Elvish, expressive programming language and a versatile interactive shell
Thanks, I like that it seems similar enough to posix shell to draw me in before surprising me :). I like how the option vs arguments distinction is done and generally a lot of posix shell issues are improved. A few feature requests/impressions:

1) Maybe link at the top of the ref page to the learn page? I started looking at ref but some stuff I needed to know was much better explained under learn and it took me a while to notice that it was there also (I'm guessing the existance of ref would be more obvious from the learn page).

2) Local documentation is vital for a shell, if there is a way to generate a man page from the available documentation that would be quite helpful (at least instaling the website would be good, but that looks like a package issue that should be easy to do).

3) If I want the equivalent of fd -X but being able to use aliases (functions in elvish) there is from-terminated and (all) but despite the long command line lengths these days it can overflow. A builtin simplified version of xargs that works with elvish lists and aggregates arguments while breaking into acceptable length command lines would be great.

4) There seems to be no way to execute code from a different file in the current context? For bash to get aliases in fd -X you can use a complicated fd ... -X bash -ic '<alias> "$@"' 'fd bash', however it seems that elvish both doesn't have -i and has no way to even source the rc file from elvish -c? Or to split rc files into multiple files without using modules?

5) &> and to a lesser extent |& are handy in bash to simplify combining stderr and stdout. Hopefully elvish doesn't have the 2>&1 placement issues that posix shells do but even if not I'd consider a shorthand worthwhile.

6) Some type of cooperative locking would be helpful along the lines of Debian's lockfile-progs but built in to make it easy to avoid scripts that break if you accidently run it twice at the same time (ideally compatible with lockfile-progs unless there is a good reason not to be).

7) Beyond that, some type of built in concurrency managed database based on elivish data types might be worth considering to simplify sharing state between independent execution of related utilities (or multiple execution of a single utility).

8) I like your idea of exposing more TUI abilities. In addition to what you said, being able to create a status line or two while preserving the scrolling history of other commands would be helpful (and this would be potentially interesting in an interactive shell also). I like your rprompt.

Overall, I like the look of elvish and for some reason it seems more approachable to me (not a big fan of lisp) than the PowerShell style shells.

joveian··on Sleep apnea: Mouthguards less invasive, just as effective as CPAP
In the US at least I think this time is usually 10 seconds.

https://www.cms.gov/medicare/coverage/evidence/cpap

joveian··on Why can't my mom email me?
However, the wide use of MTA-STS is quite recent so downgrade attacks have been possible. In fact, Fastmail seems to currently be messing up MTA-STS, I'm not sure if they are intending to enable it or not.

https://www.mailhardener.com/kb/mta-sts

joveian··on What we know about the xz Utils backdoor that almost infected the world
It doesn't seem to have been actually included in the Arch (binary) package but only because the backdoor build system itself didn't include the backdoor for Arch. If you cmp -l liblzma.so.5.6.1 between xz-5.6.1-1 and xz-5.6.1-2 there are only tiny differences. I'm guessing they didn't notice this before writing the advisory.

https://github.com/QubesOS/qubes-issues/issues/9067#issuecom...

joveian··on Tell HN: Reddit now blocks VPN access via browser, 'old' subdomain included
It is not just shared IPs, I have a personal VPN/proxy that only I use (although in an IP range that likely includes shared VPNs) and it is blocked. It could be that they are blocking all "non-residential" IP addresses and the VPNs that work are using botnets (or some other way they get "residential" IP addresses) to route traffic.

My memory isn't that great and I rarely look at reddit (just the occasional search results) but I think there might have been a similar block on old for a bit earlier (closer to when the block on the main domain started).

joveian··on Backdoor in upstream xz/liblzma leading to SSH server compromise
Or exactly this kind of backdoor in open source but target proprietary software. I don't know of any survey but I'd be surprised if less than half of proprietary software used open source software one way or another and not surprised if it was quite a bit more than that.
joveian··on Backdoor in upstream xz/liblzma leading to SSH server compromise
Note that zstd (the utility) currently links to liblzma since it can compress and decompress other formats.
joveian··on Backdoor in upstream xz/liblzma leading to SSH server compromise
That is what I thought too but it wasn't hard to find:

https://darknetdiaries.com/transcript/21/

joveian··on RollerCoaster Tycoon at 25: 'It's mind-blowing how it inspired me'
I have mixed feelings about that one. The building is much better than RCT (1-3, the ones that I've played) both coasters and buildings, however I don't like the art style at all and the terrain is mostly flat and much less interesting. Also the additional goods movement and service building hiding aspects that they added somewhat detract from the fun in my opinion. In the first RCT only the entrance (and possibly exit, I don't remember) had to be above ground, so with a bit of coaxing you could build rides that are underground except for a hole above the entrance, which was neat. Also, unlike RCT3, Parkitect doesn't let you move the camera to a path view (grid layout and isometric view are not really related), which is something I like to do.

One thing RCT does better than other sim games I've played is having a ton of customization options (Parkitect does this too). I like Timberborn also and wish it would have more customization possibilities like the RCT games. There are some limitations in the RCT games, like setting up a free monorail system doesn't cause anyone to use it to get to the next ride they are heading to, but in terms of decorations there is quite a bit you can do with it.

joveian··on Mozilla will be retiring the Mozilla Location Service
I don't think it is worth going over this again here, as I said there was a HN thread with more info including your question discussed at some length. It sounds like they moved it to a lake to limit the chance of it happening again.
← PreviousPage 3 of 33Next →