A beach bum based primarily out of Waikiki, the earthbound kid has cleverly deceived friends and acquaintances into believing her self-stylings as a would-be philosopher and raconteur at the University of Hawaii at Manoa.
I mean, the Lawrence paper has been on WordPress for like half a decade now. It's just in a hard spot because the niche it was made for got squeezed out of the market from the middle. If you have enough money for a developer, you probably also have enough money for a real backend UX.
From a programmer's perspective, I think everyone should try them once. It's like commenting out a portion of the code to see the effects as part of debugging. It's neat to be like, "Oh, if you just turn off the image stabilization, the walls look like waves, and then the pattern matcher takes over and goes crazy."
I find the setup as described confusing. What is stopping a customer from just triggering the Stripe call with an invalid code? Presumably, the answer is they can do it, but after the Stripe call, the order will be rejected at fulfillment time. So, the check is just a preflight, but the real validation comes later. (Or is there a signature involved? Could be, but TFA doesn't specify it.)
Either way, you can just do a quick JSON fetch call on the client side as part of client side validation once customers type the code into the box and then pass it along to the server for the final POST.
I’ve used it in prod before. It’s fine for small, focused sites. For example, I have some lists of people who journalists can contact. It uses decap to let editors manage the lists.
It's a common problem because American English no longer preserves the pronunciation difference, but posting to HN about it is a waste of time. Get a highway billboard and put it next to the ones about Jesus if it bothers you that much.
> Let’s say your app also allows promotional codes to be used, and that promo codes in your app live outside Stripe, because Stripe does not support promo codes for your type of product. What this means in practice is that before calling Stripe’s confirmPayment, you have to send a request to your server with the promo code that the user wants to apply. This request can respond in one of two ways - either the promo code is valid, or it isn’t. If it is valid, then you can go ahead and call confirmPayment. If it isn’t valid, then you need to render validation errors.
This is an extremely trivial bit of JavaScript, but it is made difficult because it is trying to use a JavaScript framework developed by people who hate JavaScript. Do the form validation on the client side to give users instant feedback and then do final validation on the server side where you enforce business rules. These are two different kinds of validation and it's not actually effort saving to try to combine them. If you have good client side validation, you can just be a hard ass on the server side because you know that anyone who gets the server side error is already bypassing client side validation, so they are being naughty to begin with. It makes like easier to keep the validation separate.
The Chinese have been doing this for decades. They'll do the equivalent of Cockney rhyming slang with Chinese characters so it will be like "fuck your mother" can be written like "grass mud horse" which can be interpreted as an Alpaca and then it gets weirder from there… https://en.wikipedia.org/wiki/Grass_Mud_Horse Xi Jinping looks like Winnie the Pooh, so you can talk about bears, honey, etc. The thing with the COVID riots that was shocking was that people were so fed up with the lockdowns that they just straight up said so without using any indecipherable codes.
I think both sides of the war are horrible war criminals, but Israel has repeatedly both bombed civilians and lied about bombing civilian, so it’s Occam’s razor that they did it here too, and the burden of proof is on them to provide any evidence at all for misfire theory.
Strange New Worlds has hinted that the timeline we’re on is shifted because Khan was supposed to conquer Earth in the 90s, but now it’s the 2030s due to various temporal shenanigans.
Don’t ruin perfectly good philistinism with your tedious facts. Whoever this Mr Eliot is, we have more important things to do, like fighting about Vim vs Emacs.
Who could have predicted that the obvious suspect did the thing that they had done before? Next you’ll tell me that the US bombed Nordstream or that China is covering up the lab leak.
Another application is to use the LLM to build an embeddings database, and then do semantic search only within that database. Don't just let the LLM talk about whatever it wants to hallucinate up, force it to use a set of known good answers while accepting natural language input and summarizing documents in the known good dataset.
This is already a thing. Crooks create a 1-900 number and then use stolen identities to call it from other phone accounts. They managed to rack up a couple of thousand dollars in charges on Verizon when they stole my identity in 2015.
I think if there's even a 49% chance that a certain kind of research caused the pandemic, it should be banned, because that's too high. Hell, even a 1% chance of another pandemic is too high, but I don't think any honest evaluator can put the odds of it having been a lab leak that low. It's not 100%, but I think anyone being honest with themselves about the evidence has to put it over at least 20%, and I think as high as 80%.
Sure, remember how useful GoF was during the pandemic? Oh wait, no, that was mRNA vaccines. In fact, if there was ever a time GoF could have been helpful, it would have been a global pandemic. So maybe it's a crappy technique that should be banned by all countries everywhere because it is all costs and no benefits. :-/
I mean, are we supposed to feel bad for a handful of scientists and not the millions of people who died and the billions whose lives were disrupted? Seriously?
Go's flag, log, image, and sql packages all work this way, so it's not just the HTTP router. I sort of see both sides. Having implicit registration makes it very easy to have different teams working on different packages and you just import the package and it registers itself. But it also makes the behavior of the resulting final binary hard to understand and based on implicit code instead of explicit. I personally try to just have one big routes() http.Handler function that returns everything all in one place, but I get why that isn't always practical.