frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Making RAM at Home [video]

https://www.youtube.com/watch?v=h6GWikWlAQA
69•kaipereira•1d ago•14 comments

ChatGPT Images 2.0

https://openai.com/index/introducing-chatgpt-images-2-0/
593•wahnfrieden•9h ago•500 comments

Diverse organic molecules on Mars revealed by the first SAM TMAH experiment

https://www.courthousenews.com/preserved-for-billions-of-years-organic-compounds-found-on-mars/
17•geox•18h ago•0 comments

SpaceX says it has agreement to acquire Cursor for $60B

https://twitter.com/spacex/status/2046713419978453374
411•dmarcos•6h ago•518 comments

Acetaminophen vs. ibuprofen

https://asteriskmag.com/issues/14/the-mystery-in-the-medicine-cabinet
94•nkurz•1d ago•28 comments

The Vercel breach: OAuth attack exposes risk in platform environment variables

https://www.trendmicro.com/en_us/research/26/d/vercel-breach-oauth-supply-chain.html
287•queenelvis•11h ago•105 comments

Drunk Post: Things I've Learned as a Senior Engineer

https://luminousmen.substack.com/p/drunk-post-things-ive-learned-as
64•zdw•4h ago•23 comments

Laws of Software Engineering

https://lawsofsoftwareengineering.com
883•milanm081•17h ago•443 comments

A printing press for biological data

https://www.owlposting.com/p/the-printing-press-for-biological
7•crescit_eundo•1d ago•0 comments

Britannica11.org – a structured edition of the 1911 Encyclopædia Britannica

https://britannica11.org/
247•ahaspel•11h ago•93 comments

CrabTrap: An LLM-as-a-judge HTTP proxy to secure agents in production

https://www.brex.com/crabtrap
99•pedrofranceschi•13h ago•28 comments

Stephen's Sausage Roll remains one of the most influential puzzle games

https://thinkygames.com/features/10-years-of-grilling-stephens-sausage-roll-remains-one-of-the-mo...
155•tobr•3d ago•73 comments

Framework Laptop 13 Pro

https://frame.work/laptop13pro
1043•Trollmann•10h ago•547 comments

FBI looks into dead or missing scientists tied to NASA, Blue Origin, SpaceX

https://fortune.com/2026/04/21/scientists-disappear-die-nasa-space-blue-origin-spacex/
61•ineedasername•1h ago•9 comments

Meta to start capturing employee mouse movements, keystrokes for AI training

https://www.reuters.com/sustainability/boards-policy-regulation/meta-start-capturing-employee-mou...
407•dlx•10h ago•325 comments

Cal.diy: open-source community edition of cal.com

https://github.com/calcom/cal.diy
173•petecooper•10h ago•46 comments

Changes to GitHub Copilot individual plans

https://github.blog/news-insights/company-news/changes-to-github-copilot-individual-plans/
371•zorrn•1d ago•136 comments

Windows Server 2025 Runs Better on ARM

https://jasoneckert.github.io/myblog/server-2025-arm64/
79•jasoneckert•3d ago•72 comments

Some secret management belongs in your HTTP proxy

https://blog.exe.dev/http-proxy-secrets
5•tosh•2d ago•0 comments

Edit store price tags using Flipper Zero

https://github.com/i12bp8/TagTinker
306•trueduke•2d ago•292 comments

Claude Code to be removed from Anthropic's Pro plan?

https://bsky.app/profile/edzitron.com/post/3mjzxwfx3qs2a
427•JamesMcMinn•7h ago•422 comments

Hunting a 34 year old pointer bug in EtherSlip

https://www.brutman.com/Adventures_In_Code/EtherSlip_ARP/EtherSlip_ARP.html
8•mbbrutman•2d ago•0 comments

Running a Minecraft Server and more on a 1960s UNIVAC Computer

https://farlow.dev/2026/04/17/running-a-minecraft-server-and-more-on-a-1960s-univac-computer
205•brilee•3d ago•33 comments

Global growth in solar "the largest ever observed for any source"

https://arstechnica.com/science/2026/04/global-growth-in-solar-the-largest-ever-observed-for-any-...
39•tambourine_man•3h ago•3 comments

Show HN: VidStudio, a browser based video editor that doesn't upload your files

https://vidstudio.app/video-editor
259•kolx•16h ago•81 comments

Theseus, a Static Windows Emulator

https://neugierig.org/software/blog/2026/04/theseus.html
89•zdw•2d ago•13 comments

San Diego rents declined following surge in supply

https://www.kpbs.org/news/economy/2026/03/27/san-diego-rents-declined-more-than-19-of-nations-top...
156•littlexsparkee•3h ago•110 comments

Optimizing Tail Sampling in OpenTelemetry with Retroactive Sampling

https://victoriametrics.com/blog/kubecon-eu-2026-sampling/index.html
11•valyala•3d ago•0 comments

Trellis AI (YC W24) Is hiring engineers to build self-improving agents

https://www.ycombinator.com/companies/trellis-ai/jobs/SvzJaTH-member-of-technical-staff-product-e...
1•macklinkachorn•11h ago

My practitioner view of program analysis

https://sawyer.dev/posts/practitioner-program-analysis/
42•evakhoury•1d ago•4 comments
Open in hackernews

Working with Git Patches in Apple Mail (2023)

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

Comments

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

Neat.

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

https://stacked-git.github.io

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