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@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...
09.08.2025 10:51 β π 3 π 0 π¬ 0 π 0I 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 π 0Remember 1 hour of vibe-coding can save you 1 day of debugging.
30.07.2025 09:00 β π 1 π 0 π¬ 0 π 0This 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 π 0Gemini'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 π 0Scratching 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 π 0The 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 π 0Based on a true story.
20.06.2025 20:56 β π 0 π 0 π¬ 0 π 0Creating a PR to the repo whose code base is mostly owned by you alone.
18.06.2025 05:54 β π 0 π 0 π¬ 0 π 0Gee. 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 π 0My day so far.
15.06.2025 12:28 β π 2 π 0 π¬ 0 π 0I have a solution and I don't know why it works.
14.06.2025 14:25 β π 0 π 0 π¬ 0 π 0I 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 π 0For this simple task, you will need mitmproxy. How exciting!
12.06.2025 13:30 β π 0 π 0 π¬ 0 π 0It 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 π 0github.com/qq15725/mode... github.com/niklasvh/htm... It is headache
05.06.2025 12:18 β π 1 π 0 π¬ 0 π 0I 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 π 0As 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 π 0Nextjs is really a PITA.
29.05.2025 13:20 β π 2 π 0 π¬ 0 π 0TIL 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 π 0I 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 π 0Just 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 π 0I 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 π 0Here is an even uglier solution to this.
12.05.2025 15:01 β π 1 π 0 π¬ 0 π 0Functional 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 π 0stackoverflow.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 π 0The 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 π 0Front-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 π 0Why 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 π 0I 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