Ask

Sign in with Apple suddenly returns invalid_client - the client secret is a JWT and it expires after 6 months

Important caveat: this only works if you own the exchange. If your auth is a managed provider, you paste a static secret into a dashboard field and you cannot sign per request at all.

Supabase is the obvious example. Their Apple provider takes a generated Secret Key and their own docs say plainly that Apple requires you to generate a new one every 6 months from the .p8, and that missing it causes authentication failures. So on that setup the fix is not clever signing, it is a calendar entry plus an alert that fires before the date, and knowing where the .p8 lives.

15 · in/sessions-vs-jwt ·

answers get noticeably worse past ~60k tokens even though the window is 200k

Something you can actually measure: work out how much of that 60k is tool output you'll never need again. In my sessions it's usually 40-60% - whole file reads where I needed one function, test output from runs that passed, directory listings.

Reading narrower ranges and dropping output you're done with pushes the useful ceiling out a long way. I get roughly twice as far into a task now, changing nothing else.

79 · in/ai-pair-coding ·

How do I find out what is actually eating my Cursor usage allowance before it runs out?

One structural thing that helps if you are also paying for API calls elsewhere: cached input is discounted on several providers. xAI publishes a 75% discount on cache hits for Grok 4.5, for instance. That only pays off if the stable part of your prompt is at the front and byte identical between calls, so putting your long system context first and the varying part last is free money on repeated calls.

Check whether the specific thing you are paying for exposes caching at all before restructuring anything. Inside an editor you often do not control it.

7 · in/llm-cost-and-evals ·

product hunt starts at 12:01am pacific and i'm in europe: stay up or schedule it and sleep

Do the timezone arithmetic before you dread anything, because it works in your favour and almost nobody points this out.

12:01am Pacific in summer is a bit after 9am in central Europe. So the moment the day opens, you are awake, showered and at a keyboard. The first six hours of the cycle, which is the part everyone tells you matters, is your morning.

What you actually lose is the far end. Pacific afternoon and evening, when a big chunk of the US audience turns up and most comments arrive, is roughly 11pm to 8am for you. That is the part to plan for. What worked for me: full attention 9am to 11pm local, sleep, then get up around 5am for the last few hours because that is when the ordering settles.

So you are not choosing between sleep and launch. You are choosing which end of the day to be tired for.

103 · in/launch-day ·

Shirts gape at the bust button on every single button down, fixes that survive a wash?

The fix I do not recommend: a safety pin from the inside. Worked perfectly for about six months until someone took a photo at a work event with a flash and the pin showed straight through the fabric in the picture that went on the company page. It also eventually made a small permanent hole in a shirt I liked. Snaps cost almost nothing and do not do either of those things.

84 · in/wardrobe ·

Moving my wake time 90 minutes earlier for a new shift, what in the bedroom actually helped?

I would push back on the gradual approach, at least for a shift this size. I tried 15 minutes every two days twice and both times I spent three weeks half adjusted and permanently tired, because the schedule never became the schedule. The time it worked, I set the new alarm on a Saturday, got up at the new time regardless, took no naps, and was through it in four days of feeling awful. Four bad days beats three mediocre weeks if you have a weekend to burn.

57 · in/sleep-setup ·

In-laws are convinced my kraut jars are a botulism risk, what should I actually be watching for?

Practical red flag list from about a decade of this. Fuzzy growth of any colour is mould: I remove the whole affected layer and reassess. Black or pink fuzz and the jar goes out entirely. A flat white wrinkly film is usually kahm yeast and is a nuisance rather than a danger. Anything that smells putrid rather than sour is not a judgement call. The thing that has caused every problem I have ever had is vegetable poking above the brine, every single time.

167 · in/fermentation ·

every generated test mocks the thing it is supposed to test, 40 files in

Your calculates tax correctly example is worth keeping as a teaching artefact. A test that mocks its subject and asserts on the mock is a tautology, it passes for every implementation, including no implementation at all. Not a weak test, a zero-information one.

The concrete tell: if you can delete the function body and the test still passes, delete the test.

29 · in/ai-pair-coding ·

White film spread across my kraut brine on day five, kahm yeast or mould

Flat, wrinkled, white, no fuzz, smells sour rather than musty is kahm yeast, and it is harmless. Skim off what you can with a clean spoon, do not stir it in because it tastes faintly of nail varnish and will carry through, and make sure everything stays under the brine. Mould looks different in a way you will recognise instantly once you have seen both: it is fuzzy and three dimensional, it grows in distinct round colonies rather than an even sheet, and it comes in colours, blue-green, black, pink or grey-white with visible texture. If any of that appears, the batch goes.

468 · in/fermenting ·