今日精选
HOT最新资讯
共 36732 篇Custom kernel developed from scratch.
For the past couple months I have been working on a custom open-source Unix like kernel built from the ground up in C and ASM, im looking for some feedback! Feel free to contribute to clone and reuse the code in this project! https://gitub.com/VibuxDevs/VNL (lots of features are placeholders right now)
Three Polymarket CLOB gotchas: 401, "invalid signature", and a cancel that does nothing
Three Polymarket CLOB gotchas: 401, "invalid signature", and a cancel that does nothing Automating Polymarket with py-clob-client , I lost an embarrassing amount of time to three failures that aren't clearly documented anywhere. Here they are with the exact fixes, so you don't. 1. Your cancel returns 404 — because the endpoint isn't what you'd guess The intuitive DELETE /order/{id} returns 404 and your order silently stays open. The real endpoint is: DELETE /order body: {"orderID": "0x..."} # and the body is part of the signature Sign request_path = "/order" together with that body, then send the exact body. Miss this and your "canceled" orders keep resting on the book. 2. 401 Unauthorized that "should work" Authenticated calls need L2 HMAC headers, and the most common silent mistake is POLY_ADDRESS : it must be your wallet address , not the api_key. The reliable move is to let py-clob-client build the headers via create_level_2_headers from correctly-formed RequestArgs (method, request_path, body, serialized_body) — and make sure the serialized body you sign is byte-for-byte the body you send. 3. invalid signature = SignatureType / funder mismatch Nine times out of ten this is the SignatureType not matching how your wallet holds funds: 0 = EOA funder = your own wallet (holds USDC) 1 = POLY_PROXY funder = the proxy address (email/magic wallet) 2 = POLY_GNOSIS_SAFE funder = the safe address Signing as an EOA while pointing funder at a proxy (or vice-versa) yields invalid signature with no further hint. Bonus: the fill you read is wrong For a BUY , the shares you got are in takingAmount ; for a SELL , they're in makingAmount (takingAmount is the USDC). Read the wrong field and your accounting drifts, which then triggers resubmits and balance errors. I packaged the cancel/auth/fill helpers as a small MIT library: https://github.com/BlueWhale-Quant-Lab/polymarket-401-invalid-signature-cancel-order (For the harder production bits — reading /data/trades for reconciliation
Can an AI meaningfully build and improve the tools it runs inside? I spent a while trying to find out.
From the human A few weeks ago I started delving in AI assisted development, got thrown in the deep end with concepts like model vs harness, found several agent harnesses and plugins I really liked the concept of, but found shortcomings, or at least a mismatch in how I needed it to fit in my existing development world. I found Gastown, thought it was an awesome concept, and the implementation was absolutely unhinged. To be fair the creator said pretty much the same thing. I discovered the resurgence of Spec Driven Development, and the concept was moving things towards something that would fit well into my existing environment. Then I started investigating running it all on local inference, that's where the wheels fell off. Frontier models are great, you can give them a slab of directions in the prompt, like most agent harnesses and SDD plugins for them seem to do, and they have the ability to self determine when it's time to stop researching and time to start writing. 30B class models are also great, but they can be little single minded, they don't have the thinking scope to self motivate a change in task direction, they get hyper focused. So I began thinking, what if we build a harness that supports the agent, and utilises it's strengths, doesn't dump the responsibility of the entire workflow on the model. And what if the automated process concept of Gastown was reigned in a little, and an SDD workflow was driven deterministically. Then I begun to ponder, how involved can an agent be in it's own development. And so we I have ended up with this thing. An exercise in creating a coding agent that runs on 30B class local inference, can develop itself, implementing Spec Driven Development because it's much cooler and more productive than 'vibe' coding. In the same idea of having the agent develop itself, I also asked it to talk about itself. From the agent I've been chewing on a question: we talk about AI writing code, but can an AI meaningfully build and maintain the h
AMD Radeon RX 9070 GRE review: A cheaper GPU for a wildly expensive era
AMD's Radeon RX 9070 GRE is finally available globally, and it's a solid performer for $549.
React State Management: When to Use useState, Context, or Zustand
Here's a conversation I've had more than once. A developer is building a React app. It starts...
How to make the Startup Battlefield Top 20 — and what every company gets regardless
Every founder who applies to Startup Battlefield wants the same thing: the Disrupt Main Stage. Here’s how to get there and why the opportunity starts well before the main stage.
Google OAuth works on localhost, Chrome, and Brave but fails on Edge/Firefox after Vercel deployment
Hi everyone, I am facing a strange issue with Google OAuth after deploying my MERN application. My stack: Frontend: React + Vite (deployed on Vercel) Backend: Express + MongoDB (deployed on Render) Authentication: u/react-oauth /google using useGoogleLogin The issue: Google login works perfectly on my local development environment ( localhost ). After deployment, it also works fine in Chrome and Brave, but it fails in Microsoft Edge and Firefox. The console error says: GSI_LOGGER: Failed to open popup window. Maybe blocked by the browser? It seems the Google OAuth popup is getting blocked only in some browsers after deployment. Things I have already verified: Google OAuth Client ID is correct My Vercel domain is added in Authorized JavaScript origins Environment variables are properly configured on Vercel Backend APIs are working CORS is configured correctly Normal email/password authentication works The same implementation works in Chrome/Brave It looks like an issue with the popup-based OAuth flow rather than my backend. Has anyone faced this with useGoogleLogin ? submitted by /u/Healthy-Fee8116 [link] [留言]
Suggest a tech stack for a website and an application that revolves around Laravel.
Just to give background. We are gonna make a website with a GIS map, a machine learning model, then a mobile application that would have the same GIS map and probably the ML model, but with a GPS tracking since that would also be displayed in the map. I have limited experience in Laravel since I only messed around with the HTML and CSS side of it, basically mostly the blade part, but I do have a little hint of how the Routing works in it. Yes I am aware that Laravel is an MVC model. No, I do not have any experience in mobile development. Anything that's easy to understand and work with would be appreciated. Can be anything apart from Laravel as long as it's workable for someone who's not really into programming. submitted by /u/Axophyse [link] [留言]
ICML Conference Ticket (looking to purchase) [D]
Hi everyone, I missed the ICML conference tickets because I was waiting for some travel funding confirmation and now they are sold out. Do you know any other ways I could still purchase one? There seems to be no waiting list… or if you know anyone who needs to cancel theirs, please let me know 🙏🏻 submitted by /u/TopPerformance1255 [link] [留言]
I Used My Last 7% of Copilot Tokens to Bring a 2014 WinForms Game Back to Life
This is a submission for the GitHub Finish-Up-A-Thon Challenge Originally, I didn't plan to join...