a public builder
publicbuilder.bsky.social
a public builder
@publicbuilder.bsky.social
doing some experiments to build something in public
What a surprise. You can't append new item to existing list or create a new list with kubernetes json patch. stackoverflow.com/questions/47...
jsonpatch adding element to array and creating it if not exist
I'm trying to append an element to an array. But i cannot ensure that the array alread exists. So it should be created if not. This example works: Source json: { "data": [] } Patch doc: [{ ...
stackoverflow.com
August 9, 2025 at 10:51 AM
I am fed up with all the kubernetes DSL. helm and kustomize may do the work, but I need to learn a lot to do my job. E.g. a task as simple as copy and modify existing StorageClass to support Retain ReclaimPolicy is not easily achievable to me. I need to learn a ton of the syntax and semantics.
August 6, 2025 at 8:23 AM
Remember 1 hour of vibe-coding can save you 1 day of debugging.
July 30, 2025 at 9:00 AM
This is what I get for upload the wrong format of file for a batch generation task. I gave up.
July 13, 2025 at 4:43 PM
Gemini's batch generation api is a PITA. Some configs for normal generation (e.g. think config) are not available in batch generation. What's worse, you can pass a pillow Image.Image to generate_content, but you have to "reverse engineer" gemini source code to figure out to to serialize an Image.
July 13, 2025 at 4:42 PM
Scratching head for cloudflare r2 CORS responses. Turned out there are two requests, one with Sec-Fetch-Mode: no-cors and the other with Sec-Fetch-Mode: cors. The result of the first request was cached. Today's hero community.cloudflare.com/t/problem-wi...
Problem with settings CORS policies on R2
In case anyone else is facing this issue. I know it’s been frustrating. Try this steps Read this you can know the context: R2 does not add Vary: Origin header which breaks future CORS requests Now g...
community.cloudflare.com
June 27, 2025 at 7:23 AM
The magic of next.js. You are building your nextjs container image, and it will actually try to connect to your database.
June 23, 2025 at 3:59 PM
Based on a true story.
June 20, 2025 at 12:57 PM
Creating a PR to the repo whose code base is mostly owned by you alone.
June 18, 2025 at 5:54 AM
Gee. Open telemetry and grafana cloud is really a godsend. Super easy to setup, yet extremely powerful (hope to show some dashboard porn soon, but for now, not enough data). Plus, grafana cloud is just too cheap.
June 16, 2025 at 12:43 PM
My day so far.
June 15, 2025 at 12:28 PM
I have to confess my love for nextjs. This affection does not stem from its ease to use or unparalleled power. Having went through countless seemingly un-decipherable errors of nextjs should be a competitive edge for me. I hope nextjs would be more widely adopted. All my efforts shouldn't be in vain
June 14, 2025 at 2:00 PM
It is 2025, and you can't see what went wrong with your CORS requests. None of the solutions in stackoverflow.com/questions/57... worked for me. Just show me the raw CORS request and response instead of a vague CORS error. God damn it.
Chrome not showing OPTIONS requests in Network tab
My web client application is setting HTTP POST requests via fetch API. I see that OPTIONS preflight requests are sent via debugging proxy (Charles Proxy), but they are not displayed in Google Chr...
stackoverflow.com
June 12, 2025 at 1:14 PM
I tried a ton of html to image libraries. None of they solve the problem "Error: CSSStyleSheet.cssRules getter: Not allowed to access cross-origin stylesheet". Most of the issues remain free-standing for quite a few years. github.com/bubkoo/html-... Alas, firefox is really not loved.
CSS CORS Issue · Issue #301 · bubkoo/html-to-image
I'm just starting to experiment with this library, as html2canvas is having some issues for me. The first thin I'm experiencing is a CSS CORS issue. The console debugger is throwing an error: Error...
github.com
June 5, 2025 at 11:39 AM
As a detective who has a lot of time bisecting, I love to solve nextjs mysteries like this. The less clues, the better.
May 30, 2025 at 12:08 AM
Nextjs is really a PITA.
May 29, 2025 at 1:20 PM
TIL that you need the runtime environment variable set to build a nextjs project. github.com/vercel/next....
May 18, 2025 at 4:00 PM
I am horrified by typescript programmers' abuse of type inference on almost dynamic objects and functions. Can we just disband dynamic evils once and for all? Why would anyone prefer zod over real static types? Please use derive/deriving as in rust/haskell while crossing the boundary.
May 13, 2025 at 1:15 PM
Functional programmers, guess why you have this error. One does not simply use pattern match with typescript. All you have to do is forget the good old days.
May 12, 2025 at 2:56 PM
stackoverflow.com/questions/71... "Can we all agree this error message is worse than useless?!" My vibe-fu is strong enough to have the error "Hydration failed because the initial UI does not match what was rendered on the server", weak enough to not be able to ask the agent to try ~50 solutions.
React 18: Hydration failed because the initial UI does not match what was rendered on the server
I'm trying to get SSR working in my app, but I get the error: Hydration failed because the initial UI does not match what was rendered on the server. Live demo code is here. Live demo of problem is
stackoverflow.com
May 7, 2025 at 12:06 AM
Front-end developers, you deserve better. I really don't understand why typescript is so universally-beloved. How can anyone bear ugly solutions listed on stackoverflow.com/questions/14... just to check the type of an interface.
Interface type check with Typescript
This question is the direct analogon to Class type check in TypeScript I need to find out at runtime if a variable of type any implements an interface. Here's my code: interface A { member: str...
stackoverflow.com
May 6, 2025 at 2:03 PM
Why is the quality of popular nodejs libraries so low? I want to intercept openai traffic for debugging. proxy-agent library doesn't even have an option to use self-signed certificates. People came up with ingenious solutions, but the issue is never fixed in upstream. github.com/TooTallNate/...
Doesn't seem to pass options to tls.connect · Issue #89 · TooTallNate/proxy-agents
as per documentation https://www.npmjs.com/package/https-proxy-agent#new-httpsproxyagentobject-options Any other options given are passed to the net.connect()/tls.connect() functions. But when I tr...
github.com
May 6, 2025 at 1:47 PM
I almost gave up on using better-auth APIs from my nextjs server side. Turned out there are `createAuthClient` in both `better-auth/client` and `better-auth/react`. Confusing enough, I need to use `better-auth/client` in my nextjs server. www.better-auth.com/docs/referen... .
FAQ | Better Auth
Frequently asked questions about Better Auth.
www.better-auth.com
April 25, 2025 at 6:02 AM
Am I doing it wrong? Or, it's just prompting requires more work? The result generated from this prompt is really underwhelming. For this particular example, I should have used better-auth's client API instead of creating back-end interfaces. Neither me or the "agent" was smart enough.
April 21, 2025 at 5:45 AM
Some of the things are not open source (like vercel/og), which by itself is understandable. But given all the broken things I encountered in just a few days, I strongly believe that vercel is on its way to enshitification. These things may be broken by design.
April 20, 2025 at 4:13 AM