frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

How to use AI with expressive writing without generating AI slop

https://idratherbewriting.com/blog/bakhtin-collapse-ai-expressive-writing
1•cnunciato•1m ago•0 comments

Show HN: LinkScope – Real-Time UART Analyzer Using ESP32-S3 and PC GUI

https://github.com/choihimchan/linkscope-bpu-uart-analyzer
1•octablock•1m ago•0 comments

Cppsp v1.4.5–custom pattern-driven, nested, namespace-scoped templates

https://github.com/user19870/cppsp
1•user19870•2m ago•1 comments

The next frontier in weight-loss drugs: one-time gene therapy

https://www.washingtonpost.com/health/2026/01/24/fractyl-glp1-gene-therapy/
1•bookofjoe•5m ago•1 comments

At Age 25, Wikipedia Refuses to Evolve

https://spectrum.ieee.org/wikipedia-at-25
1•asdefghyk•8m ago•3 comments

Show HN: ReviewReact – AI review responses inside Google Maps ($19/mo)

https://reviewreact.com
2•sara_builds•8m ago•1 comments

Why AlphaTensor Failed at 3x3 Matrix Multiplication: The Anchor Barrier

https://zenodo.org/records/18514533
1•DarenWatson•10m ago•0 comments

Ask HN: How much of your token use is fixing the bugs Claude Code causes?

1•laurex•13m ago•0 comments

Show HN: Agents – Sync MCP Configs Across Claude, Cursor, Codex Automatically

https://github.com/amtiYo/agents
1•amtiyo•14m ago•0 comments

Hello

1•otrebladih•15m ago•0 comments

FSD helped save my father's life during a heart attack

https://twitter.com/JJackBrandt/status/2019852423980875794
2•blacktulip•18m ago•0 comments

Show HN: Writtte – Draft and publish articles without reformatting, anywhere

https://writtte.xyz
1•lasgawe•20m ago•0 comments

Portuguese icon (FROM A CAN) makes a simple meal (Canned Fish Files) [video]

https://www.youtube.com/watch?v=e9FUdOfp8ME
1•zeristor•22m ago•0 comments

Brookhaven Lab's RHIC Concludes 25-Year Run with Final Collisions

https://www.hpcwire.com/off-the-wire/brookhaven-labs-rhic-concludes-25-year-run-with-final-collis...
2•gnufx•24m ago•0 comments

Transcribe your aunts post cards with Gemini 3 Pro

https://leserli.ch/ocr/
1•nielstron•28m ago•0 comments

.72% Variance Lance

1•mav5431•29m ago•0 comments

ReKindle – web-based operating system designed specifically for E-ink devices

https://rekindle.ink
1•JSLegendDev•30m ago•0 comments

Encrypt It

https://encryptitalready.org/
1•u1hcw9nx•30m ago•1 comments

NextMatch – 5-minute video speed dating to reduce ghosting

https://nextmatchdating.netlify.app/
1•Halinani8•31m ago•1 comments

Personalizing esketamine treatment in TRD and TRBD

https://www.frontiersin.org/articles/10.3389/fpsyt.2025.1736114
1•PaulHoule•33m ago•0 comments

SpaceKit.xyz – a browser‑native VM for decentralized compute

https://spacekit.xyz
1•astorrivera•33m ago•0 comments

NotebookLM: The AI that only learns from you

https://byandrev.dev/en/blog/what-is-notebooklm
2•byandrev•34m ago•1 comments

Show HN: An open-source starter kit for developing with Postgres and ClickHouse

https://github.com/ClickHouse/postgres-clickhouse-stack
1•saisrirampur•34m ago•0 comments

Game Boy Advance d-pad capacitor measurements

https://gekkio.fi/blog/2026/game-boy-advance-d-pad-capacitor-measurements/
1•todsacerdoti•34m ago•0 comments

South Korean crypto firm accidentally sends $44B in bitcoins to users

https://www.reuters.com/world/asia-pacific/crypto-firm-accidentally-sends-44-billion-bitcoins-use...
2•layer8•35m ago•0 comments

Apache Poison Fountain

https://gist.github.com/jwakely/a511a5cab5eb36d088ecd1659fcee1d5
1•atomic128•37m ago•2 comments

Web.whatsapp.com appears to be having issues syncing and sending messages

http://web.whatsapp.com
1•sabujp•38m ago•2 comments

Google in Your Terminal

https://gogcli.sh/
1•johlo•39m ago•0 comments

Shannon: Claude Code for Pen Testing: #1 on Github today

https://github.com/KeygraphHQ/shannon
1•hendler•39m ago•0 comments

Anthropic: Latest Claude model finds more than 500 vulnerabilities

https://www.scworld.com/news/anthropic-latest-claude-model-finds-more-than-500-vulnerabilities
2•Bender•44m ago•0 comments
Open in hackernews

Dark mode by local sunlight (2021)

https://www.ctnicholas.dev/articles/dark-mode-by-sunlight
32•gaws•3mo ago

Comments

pavelai•3mo ago
Good idea to make it more humane. It should depend on insolation in the current place (it could differ in close locations), or user preferences. I'd prefer to turn automatic dark mode off at all. It would be great if the transition to dark mode be invisible. Like after locking laptop's screen, not in the process of work.
vachina•3mo ago
I think it would be more useful to toggle it based on ambient lighting.
dheera•3mo ago
Enter the era when every website wants camera permissions ...

Or maybe there is some other sensor you could use? Like if photoelectric effect triggered some noise in your microphone or slightly more TCP retransmissions some such

semolino•3mo ago
Most devices have a built-in ambient light sensor:

https://en.wikipedia.org/wiki/Ambient_light_sensor

vladvasiliu•3mo ago
What do you mean "most"? Maybe the phones, but PCs rarely have them. Outside macbooks, I only have seen one PC with a light sensor.
semolino•3mo ago
I meant most mobile devices. I think my TV has one as well.
Jaxan•3mo ago
Currently, the switch from light to dark (or vice versa) is very disruptive. Imagine switching every few minutes just because some clouds pass by, to me that sounds terrible.
dSebastien•3mo ago
Reminds me of f.lux: https://justgetflux.com/
noir_lord•3mo ago
or gtk-redshift (if you are on X11).

Happily KDE has it built in and does both location detection, enter co-ords or click map for setting it how you want.

Pyrodogg•3mo ago
Even with Flux, setting the profile automatically breaks down at high latitudes. If you're far enough from the equator, the sun can sod off most of the year as for how it relates to human biorythms.

I'm 60°N, as with my alarm clock, I've set a static profile to follow 365 days a year since the sun is unreliable.

alfanick•3mo ago
I use Noir extension on my iphone/ipad, does it automatically when iOS/iPadOS goes into night/dark mode (which is also geo-based). Works great on OLED screens!
jader201•3mo ago
Most people that I know that prefer dark mode (myself included) prefer it regardless of sunlight or ambient lighting.
dheera•3mo ago
I prefer dark mode for image-heavy content and coding, and light mode for long amounts of natural language text, regardless of time of day.
wffurr•3mo ago
It has to be really bright before I will switch my ebook app or feed reader to black on white instead of white on black.

At a certain point, white text on black just isn’t readable but the inverse is somehow.

lukan•3mo ago
I used to think I am like this, until I noticed, in bright daylight readability is way way better in light mode. So nowdays I switch depending on the light settings (and curse all the apps who do not follow the OS settings, where I have to do it manually).
skydhash•3mo ago
For me it’s light themes all the way. I rather turn the brightness down than switch to dark mode.
throw-the-towel•3mo ago
Conversely, I prefer light mode regardless of sunlight.
minus7•3mo ago
In my experience that's because most users run their monitors on 100% brightness instead of turning that down. I prefer light mode unless it's really dark.
Lalabadie•3mo ago
I suspect a lot of the comfort preferences come from there.

The average monitor has a brightness level equivalent to screaming in a study room, and a color calibration that assumes fluorescent office lighting.

SurceBeats•3mo ago
Nice! We considered this exact approach but never shipped it in the end. The geolocation permission is probably unnecessary friction and probably an overkill imho... Timezone + rough location (country-level from IP) would get 95% accuracy without the prompt. Most users will bounce on that permission dialog.

Solid work though, especially the twilight transitions. Loving it!!!

0x1ceb00da•3mo ago
This should be an OS feature and apps should just use the system theme.
gruez•3mo ago
Both iOS and Android allow you to set dark mode by some schedule, and that's conveyed by their respective browsers to websites.
Jaxan•3mo ago
It is an OS setting to follow sunrise/sunset.
marcosdumay•3mo ago
Well, it is in KDE + Firefox. And yeah, the simplistic idea that day = bright and night = dark fails all the time, the OS has already other settings to deal with those failures, and your site or app should just use the system theme.
CharlesW•3mo ago
Please use `prefers-color-scheme` to respect users' environments and default preferences instead. It's also worth noting that, for some people, this is more than just a cosmetic choice.
gruez•3mo ago
From TFA:

>Automatically setting the theme is a nice touch for most, but accessibility comes first, and if the user has a preference, it's always right to respect their choice.

>You can check for users' colour scheme preferences in CSS & JavaScript with the following snippets:

CharlesW•3mo ago
I'm glad it's mentioned, but I was trying to say "never do the thing TFA recommends" in a less harsh way, and inadvertently dulled my point.
cluckindan•3mo ago
Syncing dark mode or f.lux or OS night mode to local sunlight is nice if you live near the equator, but for folks living in the far north, it actually makes seasonal changes so much worse.

Let the user decide the schedule, please.

lucasban•3mo ago
I believe most OS that have an option to do this by location also allow for manually specifying the schedule
halapro•3mo ago
I know this is from 2021, but for the love of god stop with the toggles. I have one toggle, it works system-wide. Respect it. You don't have to guess what theme I want, I already told my OS.
kccqzy•3mo ago
Strong disagree here. Many apps don't implement dark mode in the way I want. They seem to think dark mode is for conserving battery life on OLED displays and make the majority of their UI #000000. That's not what I want. I want a subtle shade of grey. I'd rather choose light mode for an individual app if that app doesn't implement dark mode correctly.

Another point is that some types of content just don't work with dark mode. Maps for example. I have used multiple apps that use maps or present data on a map. None of the maps look good when dark. As such I always turn off dark mode if an app displays maps as part of its main user journey.

JoshTriplett•3mo ago
Interesting, this is the first time I've heard that opinion. For myself, I get annoyed whenever a dark mode isn't #000000; it's not about saving battery, it's about the pixels being off, which I find more readable. (I got an OLED specifically because it makes it more comfortable spending time in a terminal.)

Can you say more about your use case and why you prefer gray over black?

kccqzy•3mo ago
Black is too much contrast. The high contrast simply hurts my eyes. For a gray theme nicely done, look at the GitHub gray theme (called "soft dark") as an example.
JoshTriplett•3mo ago
Fascinating. Different use cases for different people. On GitHub, I use the default dark mode ("dark default") and then enable "high contrast", which makes the background black. (I also get annoyed when light modes are dark grey on light grey, rather than black on white for maximum contrast.)

There's a CSS preference for contrast. It seems easy enough to handle `@media(prefers-contrast: low)` and set a gray background. The contentious part would presumably be the default; I would have thought #000000 was the obvious default for a dark mode but apparently that's not what everyone prefers. Ideally, OSes and browsers would expose controls for this in a straightforward way, the way they handle dark mode. https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/A...

6031769•3mo ago
Sure, but the default for any app should be to use the setting from the OS/DE/WM and only diverge from that if the user consciously decides to alter it in the app's settings (in whichever direction).
lucasban•3mo ago
My understanding is that white on pure black can be troublesome for people with a certain level of astigmatism as they will experience halation, which can make things appear blurrier.
marcosdumay•3mo ago
> That's not what I want. I want a subtle shade of grey.

Does your preference change if you reduce your screen brightness?

Bright features over a really dark background can be unsettling, but that's about screen adjustment, not really about the software colors.

Anyway, I do argue that people shouldn't just pick #000 and #fff by default. But that's because if you are already using the extremes of your palette, you can't get a more extreme one when you need to emphasize something. The arguments on "unnatural" colors and visual preferences all seem baseless to me, because those numbers don't correspond with any actual physical color, they are all relative.

About dark maps, I've seen it done well. Exactly once, and I can't point you the software because it was embedded and I don't remember what the device was. But as hard as it seems to be, it is still possible.

gadrev•3mo ago
Just like sibling here, hard disagree.

I don't like all toggles to be gone since dark mode quality varies a lot, and also I may want some sites or apps one way and some another way. So removing the choice and slapping all configuration under a single "dark/light" browser toggle really annoys me, especially when sites stop providing the toggles because it's more convenient to just use the CSS property and do less. To me it's another step in the dumbing down of the UIs that I regret.

Perfectly ok with defaulting to that global setting though.

Similar vibes to the relative date infection with no option to opt out and get the full date in most sites nowadays.

thenthenthen•3mo ago
Would be nice to fade instead of binary dark/light
growt•3mo ago
Nice experiment, but my Mac already switches to dark mode at the right time (I’m sure windows and Linux can do the same if you want it that way). So defaulting to system preference would already result in the same behaviour (while also covering users who always prefer light or dark).
triclops200•3mo ago
That's funny, I implemented something similar for my stumpwm config (common lisp window manager). I created a matrix of themes for the WM, emacs, my terminal (kitty), Firefox, and my RGB light panels that change with time of day: day, late afternoon/evening, sunset/twilight, night, post-midnight, and then broken into multiple desktop variations as a way of visually knowing what virtual desktop I'm currently on. Stumpwm coordinates all of the themes for all the apps and synchronizes them with time and desktop and whatnot.

Really helps with circadian rhythm, I've found. Especially because I take a live webcam feed and convolve a hexagonal mask to match my light panel's layout, so it's like having a low res window from whatever webcam I would like. And, at sunset to night, it smoothly fades the light panels into a display that represents a angle compressed sky projection of the stars relative to a fixed location moon with live phase displayed.

Obligatory images:

The day themes: https://youtu.be/danulUB-J-k

Light panels: https://imgbox.com/MQfPNjtI <- sunset on the hex display

https://imgbox.com/qcrFxncU <- random cloudy day hex display

https://imgbox.com/EOFk63WZ <- a night still of the hex display

nicbou•3mo ago
DarkModeBuddy uses the Mac's light sensor. It works so well that I wonder why it's not how the OS works.

I don't care if it's sunny outside. Rainy days in Germany can get quite dark long before Night Shift kicks in.

acephal•3mo ago
I never use this. Where I live, one will require dark mode well before the calculated sunset.