frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

The Next Two Years of Software Engineering

https://addyosmani.com/blog/next-two-years/
1•napolux•1m ago•0 comments

iMessage-kit is an iMessage SDK for macOS

https://github.com/photon-hq/imessage-kit
1•rsync•2m ago•1 comments

How I'm Doing at the End of 2025

https://rmondello.com/2025/12/30/how-im-doing-at-the-end-of-2025/
1•gpi•4m ago•0 comments

Show HN: Engineering Schizophrenia: Trusting Yourself Through Byzantine Faults

2•rescrv•6m ago•0 comments

Show HN: Should I Buy It – Paste a link. Answer questions. Get a recommendation

https://shouldibuyit.net
1•samebaker22•7m ago•0 comments

The Cauldron in the Spectrogram Or: What Happens When You Think with Your Tools

https://mcauldronism.substack.com/p/the-cauldron-in-the-spectrogram
1•mcauldronism•8m ago•0 comments

Axioms of Polity

https://colinsteele.org/blog/axioms_of_polity/
1•cvillecsteele•11m ago•0 comments

Show HN: I Built a Mobile Coding App. What I Use It for Surprised Me

https://kibbler.dev/blog/beyond-coding-unexpected-uses-for-kibbler
1•kewun•14m ago•0 comments

Read Sundar Pichai's Remarks at the 2026 National Retail Federation

https://blog.google/company-news/inside-google/message-ceo/nrf-2026-remarks/
1•gmays•15m ago•0 comments

Colorado is looking for range riders to help reduce conflict with wolves

https://www.aspentimes.com/news/colorado-parks-wildlife-range-riding-program/
2•mooreds•15m ago•0 comments

Military Grade

https://en.wikipedia.org/wiki/Military_grade
4•simonebrunozzi•16m ago•2 comments

Influencers and OnlyFans models are dominating O-1 visa requests

https://www.theguardian.com/us-news/2026/jan/11/onlyfans-influencers-us-o-1-visa
3•Teever•16m ago•0 comments

Play chess via Slack DMs or SMS using an ASCII board

https://github.com/dvelton/dm-chess
2•dustfinger•17m ago•0 comments

Show HN: Sprig-config – Spring-like config for Python, layered YAML and secrets

https://pypi.org/project/sprig-config/
1•gigglesx•17m ago•0 comments

Embrace your lack: on Pluribus and LLMs

https://hollisrobbinsanecdotal.substack.com/p/embrace-your-lack
1•HR01•17m ago•0 comments

When msvc:musttail attribute silently fails

https://www.abareplace.com/blog/musttail/
1•todsacerdoti•19m ago•0 comments

Stablecoin transactions rose to $33T in 2025

https://www.bloomberg.com/news/articles/2026-01-08/stablecoin-transactions-rose-to-record-33-tril...
1•gametorch•21m ago•0 comments

Doom on Oscilloscope

https://twitter.com/speed_shit/status/2009987671435948419
1•defly•24m ago•1 comments

You should change your mobile app version format to year.week.iteration

https://www.photoroom.com/inside-photoroom/why-you-should-change-your-mobile-app-version-format-t...
1•ea016•25m ago•0 comments

Weird DNS Behavior on Alpine Linux – .local and mDNS

https://ozelot.fyi/blog/weird-dns-behavior-on-alpine-linux/
1•OzelotVillain•25m ago•1 comments

Supply Chain Games: What Have We Learned from the Semiconductor Shortage? (2021)

https://www.EmbeddedRelated.com/showarticle/1452.php
1•walterbell•26m ago•0 comments

Ask HN: Self Hosted Intercom.io Options

1•nodesocket•26m ago•0 comments

How to use changesets in Go workspaces

https://jakoblorz.de/posts/versioning-in-go-workspaces
1•jakoblorz•27m ago•0 comments

Walmart expands drone delivery with Wing to 150 more stores

https://www.axios.com/2026/01/11/walmart-drone-delivery-wing-los-angeles-miami
2•fortran77•27m ago•1 comments

Claude Coding A Blog Pipeline

https://clabs.org/blog/ClaudeCodingABlogPipeline
1•mooreds•28m ago•0 comments

Reification Not Decision Traces

https://twitter.com/TrustSpooky/status/2009477301378142679
1•ContextGraphs•29m ago•0 comments

Show HN: FitBee – A simpler and more focused alternative to MyFitnessPal

https://apps.apple.com/us/app/fitbee-calorie-macro-counter/id6443979108
1•yqiang•30m ago•0 comments

2026 is the Year of Self-hosting

https://fulghum.io/self-hosting
5•websku•31m ago•1 comments

Nanoservices: Why Serverless Got Architecture Right

https://mosheshaham.substack.com/p/nanoservices-why-serverless-got-architecture
2•ishener•33m ago•0 comments

AI-Constrained Governance on Ethereum: A Live Deployment

https://github.com/thetaicore/tai-constitutional-architecture
1•taicore•33m ago•1 comments
Open in hackernews

Working with Git Patches in Apple Mail (2023)

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

Comments

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

Neat.

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

https://stacked-git.github.io

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