a public builder's Avatar

a public builder

@publicbuilder.bsky.social

doing some experiments to build something in public

151 Followers  |  2,492 Following  |  38 Posts  |  Joined: 13.03.2025  |  1.5042

Latest posts by publicbuilder.bsky.social on Bluesky

Preview
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: [{ ...

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...

09.08.2025 10:51 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

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.

06.08.2025 08:23 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Remember 1 hour of vibe-coding can save you 1 day of debugging.

30.07.2025 09:00 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image Post image

This is what I get for upload the wrong format of file for a batch generation task. I gave up.

13.07.2025 16:43 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

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.

13.07.2025 16:42 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
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...

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...

27.06.2025 07:23 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

The magic of next.js. You are building your nextjs container image, and it will actually try to connect to your database.

23.06.2025 15:59 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Based on a true story.

20.06.2025 20:56 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Creating a PR to the repo whose code base is mostly owned by you alone.

18.06.2025 05:54 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image Post image

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.

16.06.2025 12:43 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

My day so far.

15.06.2025 12:28 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

I have a solution and I don't know why it works.

14.06.2025 14:25 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

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

14.06.2025 14:00 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

For this simple task, you will need mitmproxy. How exciting!

12.06.2025 13:30 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
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...

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.

12.06.2025 13:14 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Google web fonts not working in Firefox. Getting DOMException: CSSStyleSheet.cssRules error. Β· Issue #16 Β· qq15725/modern-screenshot Steps To Reproduce Open a page with modern-screenshot in Firefox. Use a Google web font in the container. Generate image of the container (Containing the Google web font). The following error shows...

github.com/qq15725/mode... github.com/niklasvh/htm... It is headache

05.06.2025 12:18 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
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...

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.

05.06.2025 11:39 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

As a detective who has a lot of time bisecting, I love to solve nextjs mysteries like this. The less clues, the better.

30.05.2025 00:08 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image Post image

Nextjs is really a PITA.

29.05.2025 13:20 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

TIL that you need the runtime environment variable set to build a nextjs project. github.com/vercel/next....

18.05.2025 16:00 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I need to be more specific. I was using trpc for client-server communication. TRPC use zod for input/output schema (including serializing and deserializing) instead of static types. In this case, Static types + auto deriving serializer/deserializer will make the interface clearer and easier to use.

13.05.2025 15:55 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Just found out I needed github.com/fabien0102/t... to convert real types to a zod schema. Why would I want this instead of static types? Because, trpc, the End-to-end typesafe rpc framework prefers implicit types. I have to use zod for output validation! Oh my gosh.

13.05.2025 13:19 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

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.

13.05.2025 13:15 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0
Post image

Here is an even uglier solution to this.

12.05.2025 15:01 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image Post image

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.

12.05.2025 14:56 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
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/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.

07.05.2025 00:06 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

The old adage of "be conservative in what you send, be liberal in what you accept" is truer in typescript. The caller of the function which returns a value of type `HttpAgentOptions | HttpsAgentOptions` has no easy way to override any http or https specific options.

06.05.2025 23:57 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
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...

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.

06.05.2025 14:03 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
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...

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/...

06.05.2025 13:47 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
FAQ | Better Auth Frequently asked questions about Better Auth.

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... .

25.04.2025 06:02 β€” πŸ‘ 5    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

@publicbuilder is following 19 prominent accounts