frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Termini – Open-Source Menu Bar Terminal for macOS

https://github.com/ModernProgrammer/Termini
1•reflextech•48s ago•1 comments

Big Yellow – Inside the Spirit Airlines Repo Operation [video]

https://www.youtube.com/watch?v=moEixIux1b0
1•codezero•1m ago•0 comments

Anthropic investigating claim of unauthorised access to Mythos AI tool

https://www.bbc.com/news/articles/cy41zejp9pko
1•artsandsci•2m ago•0 comments

Skyscraper-Size Asteroids, Failed Supernovas, and Interstellar Visitors

https://www.quantamagazine.org/rubin-tracks-skyscraper-size-asteroids-failed-supernovas-and-inter...
1•ibobev•4m ago•0 comments

Personal Finance Experience in ChatGPT

https://openai.com/index/personal-finance-chatgpt/
2•clayallsopp•6m ago•0 comments

Starting My Content Delivery Network

https://www.apalrd.net/posts/2026/asn_cdn/
1•speckx•7m ago•0 comments

Fossil: A Coherent Software Configuration Management System

https://fossil-scm.org/home/doc/trunk/www/index.wiki
1•Tomte•11m ago•0 comments

Teleporty – Physics-Grounded Teleportation Research

https://github.com/ninjahawk/teleporty
1•ninjahawk1•11m ago•0 comments

A framework for systematically addressing undefined behaviour in C++ Standard [pdf]

https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2026/p3100r6.pdf
1•agluszak•11m ago•0 comments

Fork, Explore, Commit: OS Primitives for Agentic Exploration

https://arxiv.org/abs/2602.08199
1•matt_d•11m ago•0 comments

'The Dark Wizard' Deconstructs the Mythology of the Dirtbag Rebel

https://www.climbing.com/culture-climbing/how-the-dark-wizard-deconstructs-the-mythology-of-the-d...
1•bryanrasmussen•12m ago•0 comments

How banned AI chips end up in China

https://www.the-substrate.net/p/how-banned-ai-chips-end-up-in-china
2•erwald•13m ago•1 comments

Segment Heap support for C++ projects in Visual Studio

https://devblogs.microsoft.com/cppblog/segment-heap-support-for-c-projects-in-visual-studio/
1•ibobev•13m ago•0 comments

Show HN: Billoop – generate Factur-X and UBL e-invoices from Shopify orders

https://apps.shopify.com/billoop
1•max-roma•14m ago•0 comments

Negation Neglect: When models fail to learn negations in training

https://arxiv.org/abs/2605.13829
1•Timofeibu•14m ago•0 comments

Drone Mishap with XM183 MiniBlast Redacted

https://www.documentcloud.org/documents/28124600-drone-mishap-with-xm183-miniblast-redacted/
1•rolph•14m ago•0 comments

Liquid AI releases fine-tuning harness for AI agents

https://lqh.ai/
1•pember•14m ago•0 comments

Apple iPhone's share of U.S. smartphone sales hits 75% at Big 3 carriers

https://macdailynews.com/2026/05/15/apple-iphones-share-of-u-s-smartphone-sales-hits-75-at-big-3-...
1•mgh2•15m ago•0 comments

Should we chaos test our agents?

https://github.com/Corbell-AI/evalmonkey
1•himmi-01•15m ago•1 comments

Doctor's AI notetaker may be making things up, Ontario audit finds

https://arstechnica.com/health/2026/05/your-doctors-ai-notetaker-may-be-making-things-up-ontario-...
1•Timofeibu•15m ago•0 comments

Cisco announces record revenue and 4k layoffs in the same day

https://arstechnica.com/information-technology/2026/05/cisco-announces-record-revenue-and-4000-la...
1•taubek•15m ago•0 comments

Even mild blows to the head disrupt the microbiome

https://www.nature.com/articles/d41586-026-01504-w
1•Brajeshwar•17m ago•0 comments

Exploitbench

https://exploitbench.ai/
1•anp•18m ago•0 comments

Project Gutenberg – keeps getting better

https://www.gutenberg.org/
28•JSeiko•20m ago•8 comments

What are Forward Deployed Engineers, and why are they so in demand?

https://newsletter.pragmaticengineer.com/p/forward-deployed-engineers
3•carlos-menezes•21m ago•0 comments

I love Linux, but I can't quit Windows

https://jpain.io/i-love-linux-but-i-cant-quit-windows/
9•speckx•22m ago•2 comments

Why do Windows editions on 32-bit x86 systems artificially limit RAM to 4 GB?

https://devblogs.microsoft.com/oldnewthing/20260512-00/?p=112316
1•supermatou•23m ago•0 comments

UCF Commencement Speaker Draws Boos After A.I. Remarks

https://www.nytimes.com/2026/05/14/style/ucf-commencement-ai-booed-gloria-caulfield.html
4•reaperducer•26m ago•3 comments

Google Analytics 4 Is Lying to You About AI Traffic

https://medium.com/@eliotdill/google-analytics-4-is-lying-to-you-about-ai-traffic-and-they-might-...
1•DillyDally125•27m ago•0 comments

5× faster fast_blur in image-rs

https://apas.tel/blog/optimizing-image-rs-blur
1•art049•27m ago•0 comments
Open in hackernews

Working with Git Patches in Apple Mail (2023)

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

Comments

johnrob•12mo 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•12mo ago
Oh that’s clever, I’ll try that out. Looks like you could just do a git diff > file.patch.

Neat.

johnrob•12mo 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•12mo 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•12mo 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•11mo 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•12mo 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•12mo ago
That’s a great idea, and very timely for me.
d3ckard•12mo ago
Thank you, will try. Useful bit of knowledge.
OskarS•12mo 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•12mo 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•12mo ago
Generating app passwords for those would work.
pm215•12mo 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•12mo ago
For Gmail, you can use https://github.com/google/gmail-oauth2-tools/tree/master/go/....
mathstuf•12mo 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•12mo ago
davmail supports smtp through outlook(365)
ndegruchy•12mo 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•12mo 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•12mo ago
I use an app password but https://github.com/AdityaGarg8/git-credential-email apparently supports OAuth with Gmail, yahoo and outlook
arthurmorgan123•12mo 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•12mo 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•12mo 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•12mo 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•12mo ago
If you work with git and patches a lot, stgit is worth a look.

https://stacked-git.github.io

johnisgood•12mo ago
At that point, why not just use Pijul or even Darcs?
smcameron•11mo 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/