frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

You don't have to say something about every terrible thing

https://www.natesilver.net/p/you-dont-have-to-say-something-about
2•PaulHoule•4m ago•0 comments

AI fabricates 21 out of 23 citations lawyer sanctioned reported to state bar [pdf]

https://www4.courts.ca.gov/opinions/documents/B331918.PDF
1•1vuio0pswjnm7•5m ago•0 comments

Simplenote is no longer in active development

https://forums.simplenote.com/forums/topic/customer-update-on-simplenote/
1•kelvinquee•5m ago•0 comments

Is a new AI paradigm based on raw electromagnetic waves feasible?

2•sadpig70•13m ago•1 comments

How to get samples back from Mars

https://caseyhandmer.wordpress.com/2025/09/13/how-to-get-samples-back-from-mars/
1•surprisetalk•16m ago•0 comments

Can you help us crack the Dickens Code?

https://dickenscode.org/
1•surprisetalk•22m ago•0 comments

Agpe Account

1•agpe•24m ago•0 comments

Visual programming is stuck on the form

https://interjectedfuture.com/visual-programming-is-stuck-on-the-form/
1•iamwil•39m ago•0 comments

Inside the Battle to Protect Time

https://www.ft.com/content/7e04ee01-ba6a-4880-b7e1-c0d695b156b8
2•pseudolus•42m ago•1 comments

Gambit: An efficient implementation of the Scheme programming language

https://github.com/gambit/gambit
1•pykello•43m ago•0 comments

Toxic Fumes Are Leaking into Airplanes, Sickening Crews and Passengers

https://www.wsj.com/business/airlines/air-travel-toxic-fumes-64839d6e
4•yeknoda•43m ago•2 comments

Fil's C Compiler

https://fil-c.org/compiler
2•pizlonator•45m ago•0 comments

The trade-offs of fine-grained progressive rollouts

https://surfingcomplexity.blog/2025/09/13/the-hidden-trade-offs-of-fine-grained-progressive-rollo...
1•azhenley•48m ago•0 comments

Fine-grained HTTP filtering for Claude Code

https://ammar.io/blog/httpjail
1•ammario•49m ago•0 comments

PSA: Systemd-networkd segfault regression in Debian 13.1 for some users

https://lists.debian.org/debian-devel/2025/09/msg00108.html
2•3np•51m ago•1 comments

Digital Museum of Planetary Mapping

https://planetarymapping.elte.hu/
2•tokai•52m ago•0 comments

Fantasy or faith? One company's AI-generated Bible content stirs controversy

https://www.npr.org/2025/09/07/nx-s1-5518263/ai-bible-christianity-content
1•CharlesW•1h ago•2 comments

China is ditching the dollar, fast: Officials believe the yuan has come of age

https://www.economist.com/china/2025/09/10/china-is-ditching-the-dollar-fast
16•Geekette•1h ago•2 comments

Cuba entirely without power following electric grid collapse

https://www.nbcnews.com/news/latino/cuba-entirely-power-electric-grid-collapse-rcna230360
4•bookofjoe•1h ago•1 comments

HN Discuss: thoughts on the butlerian jihad

2•gooob•1h ago•1 comments

BSD-user-4-Linux project

https://www.freebsd.org/status/report-2024-10-2024-12/qemu_l4b/
1•todsacerdoti•1h ago•0 comments

Coroutine prime number sieve (2022) [pdf]

https://www.cs.dartmouth.edu/~doug/sieve/sieve.pdf
2•ebcode•1h ago•0 comments

Redox Development Priorities for 2025/26

https://www.redox-os.org/news/development-priorities-2025-09/
3•Bogdanp•1h ago•0 comments

Improving Multi-Threaded Applications via a Lightweight Memory Allocation Core

https://arxiv.org/abs/2508.20253
1•PaulHoule•1h ago•0 comments

Do I Need Kubernetes?

https://doineedkubernetes.com/
3•brendanashworth•1h ago•0 comments

H100 PCIe – 1.86 TB/s memcpy roofline and 8× uplift

2•GPUrouter•1h ago•0 comments

Land vs. Expand in the AI Era

https://guruchahal.substack.com/p/land-vs-expand-in-the-ai-era
1•jordanhroga•1h ago•0 comments

AI Made a Movie About Its Own Future [video]

https://www.youtube.com/watch?v=ZxvPdYMw_Sw
1•fcpguru•1h ago•1 comments

Email Signatures and the Power of Defaults

https://buttondown.com/blog/email-signatures-history
1•Twixes•1h ago•0 comments

Video games are taking longer to make, but why?

https://www.bbc.com/news/articles/cq8eyzde513o
3•andsoitis•1h ago•0 comments
Open in hackernews

Working with Git Patches in Apple Mail (2023)

https://btxx.org/posts/mail/
50•todsacerdoti•3mo ago

Comments

johnrob•3mo ago
Once I discovered how git apply can take diff files (or patch files) as input, I stopped using git stash in favor of plain old files. Easier to list and browse the contents of prior edits, also you can grep the files as method of search. I’ve even found myself copying and editing the diffs before applying.
barbazoo•3mo ago
Oh that’s clever, I’ll try that out. Looks like you could just do a git diff > file.patch.

Neat.

johnrob•3mo ago
You’ll also want to familiarize with “git apply -3 <file name>”, for when a diff can’t be applied cleanly. It will try “harder” to merge (three way method) and if it still fails it invokes the conflict merge “UX”:

<<<<<<<<<

=========

>>>>>>>>>

smcameron•3mo ago
There's also Neil Brown's "wiggle" program for applying patches that don't apply.

https://github.com/neilbrown/wiggle

although on debian based systems I think you can just "apt install wiggle"

johnisgood•3mo ago
What does "applying patches that don't apply" mean exactly?

I know about wiggle, but I have not used it, to be honest.

smcameron•3mo ago
It means that if you do "patch -p1 --dry-run < some.patch", and it complains that it doesn't apply, wiggle can sometimes apply it anyway, and also, if you do "patch -p1 < some.patch", and it partially applies but with rejected hunks, wiggle can try to apply the rejected hunks.
johannes1234321•3mo ago
git diff an pipe works, but committing and then `git format-patch` can export multiple patches and then includes metadata (commit message, date, author, etc.) which can make reasoning about such files a lot easier. In a plain diff you only got filename as metadata.
RaoulP•3mo ago
That’s a great idea, and very timely for me.
d3ckard•3mo ago
Thank you, will try. Useful bit of knowledge.
OskarS•3mo ago
That is a very neat trick, I agree.

I personally approaches stashes as undoable "clean up", and I never have anything really important that I want to save there. If I do have something like that, I just commit with a "WIP <some-descriptive-string>" message and don't push it, then a "git reset --mixed HEAD^" when I want to get back to it.

However, just FYI: you can "grep" your stashes really easily if you want to. just "git stash list -p" gives you the diffs for all the stashes, by default in "less" where you can search them, but you can pipe it to grep if you want. I somewhat frequently do that with "git log", if I want to know "when did this variable change?" or whatever, just "git log -p" to get the log with diffs in less, then search for whatever it was with a slash.

teeray•3mo ago
Maybe slightly O/T, but has anyone found a decent way to `git send-email` with email hosts that demand OAuth? (looking at you Outlook and Gmail)
ravetcofx•3mo ago
Generating app passwords for those would work.
pm215•3mo ago
Yeah, I use an app specific password with Gmail, like the setup suggested by https://git-send-email.io/#step-2

Exchange historically had a tendency to mangle emails sent through it (whitespace changes, line wrap, etc), which is obviously bad news for patchmails. I dunno if it's any better these days.

computerfriend•3mo ago
For Gmail, you can use https://github.com/google/gmail-oauth2-tools/tree/master/go/....
mathstuf•3mo ago
I use msmtp with a tool from the oauth2-tools repo to do the rotation token dance. Need to register your own app with Google though.
dmarinus•3mo ago
davmail supports smtp through outlook(365)
ndegruchy•3mo ago
Yeah, I used DAVMail with Emacs+MSMTP+MPOP+notmuch for ages. Works really well, the only occasional thing I had to do was reauthenticate the token, which pops up in a browser window.
ozarker•3mo ago
I think you could set up postfix to smtp forward to those services. So it could handle the oauth2 and you wouldn’t need to configure your client
p_wood•3mo ago
I use an app password but https://github.com/AdityaGarg8/git-credential-email apparently supports OAuth with Gmail, yahoo and outlook
arthurmorgan123•3mo ago
I tried this with Gmail and Outlook. Works flawlessly and also doesn't need to authenticate frequently. The Authen::SASL thing was a catch though.

git-send-email also has some quirks for Outlook which have been recently merged.

palata•3mo ago
I like doing it with aerc [1]. It's even possible to use aerc in parallel to another email client. Just open aerc for git-related emails, and that's it!

[1]: https://drewdevault.com/2022/07/25/Code-review-with-aerc.htm...

kazinator•3mo ago
View the e-mail raw in your browser, select all, copy, paste into git apply.

Then you don't need that message to be in a file-based inbox that is accessible from your git repo.

And in that case you are still likely going to have to copy and paste something to get the correct path.

sircastor•3mo ago
It looks like Apple Mail has plugin support, I wonder if you could author a plugin that’d provide a button to apply the diff.
smcameron•3mo ago
If you work with git and patches a lot, stgit is worth a look.

https://stacked-git.github.io

johnisgood•3mo ago
At that point, why not just use Pijul or even Darcs?
smcameron•3mo ago
Because the codebase you're working on is on github?

And I think you may underestimate the power of stgit. You can manage thousands of patches concurrently, no problem. If you're a maintainer getting patches from loads of people all the time, this is valuable. stgit has it's origins in quilt, which in turn has its origins in Andrew Morton's patch scripts[1], and I know for a fact that Andrew Morton actually managed thousands of patches at a time for years in his work on the linux kernel, because I once sent him a patch against those scripts, and he complained it was slow because I used an O(n^2) algorithm, which worked fine with a handful of patches, and I asked him how many patches he had, and he told me a number that was multiple thousands, so this isn't a hypothetical example.

[1] https://lwn.net/Articles/13518/