That's what I said. Parent said
There's value in having your backtrace surfaced to end users
HN user
That's what I said. Parent said
There's value in having your backtrace surfaced to end users
You can even do what I did in the first program I ever wrote and use php code as a storage format.
__halt_compiler() is fantastic for this (mixing code + data). I've done it a few times.
Might be better to think of the LLM as the student, and you're an imposter tutor. You're trying to assess the kid's knowledge without knowing the material yourself, but the kid is likely to lie when he doesn't know something to try to impress you, hoping that you don't know your stuff either. So you just have to keep probing him with more questions to suss out if he's at least consistent.
https:// please.
My manager gave me gruff the other day for adding a TODO that I had no intention of ever doing. TODOs are like a get out of jail free card. Don't want to do something the reviewer is likely going to call out? Just add a TODO.
I've declared quality bankruptcy. Decisions are now driven by user needs. Did I half-ass that feature? Yes. Is anyone actually using it despite crying it's essential? No. Then it's not getting cleaned up. Are they not using it because it's shoddy? I guess we'll never know.
Always write the simplest thing you can, but no simpler.
I don't think so. Time and time again the client will insist on stuff like "the customer only needs a single email address/phone number" but you're going to pay for that one later if you do the simple thing and add an "email" column.
Same for addresses.
And a whole bunch of other stuff...you need to normalize the heck out of your DB early on, even if you don't need it now. The code you can mostly make a mess of, just choose a good tech stack.
I've come to understand the difference between programmer and software engineer, but what's the difference between (software) developer and programmer?
Just drop the flat fee. Stripe is 2.9% + 30c. If they did 3% and no flat fee, then on $1 you'd get 97 cents instead of less than 70. I assume the CC companies are charging a flat fee too...unless that's just Stripe's own thing.
Hopefully the work was underway for awhile already, and maybe they just launched it now because the damage is already done?
I thought it was pretty good actually. Most of these leak disclosures usually say things like "We do not have evidence they accessed any secrets" or something like that, because they don't "know" what the hackers did once they were in. At least huggingface is saying "Yeah, they probably accessed secrets but we can't confirm it"
probably the URL got cut off and the base64 got corrupt.
I used to use VSCode for this but then they went and effed it up by adding so much spam to the app. If I happened to have an SSH open connection previously, it just reconnects to that and makes me wait, and then I have to press buttons to get back to a blank local workspace. Or sometimes it like splash up a "We added a bunch of features you didn't need" page. Ugh.
base64 is the opposite of compressed. Does it actually apply compression before base64-encoding? Doesn't really look like it by watching the URL.
Should have used base65536.
99% sure Chrome will sync your search settings across devices if you log in. Firefox and Vivaldi also let you log into the browser and sync.
I'd give up instantly and outsource it to a SaaS. I'm no expert on email but I know enough to know it's a PITA and managing delivery is a thing, and you have to make sure your DNS is configured right out the receiver will just reject it, there's reputations to consider, you probably want to throttle how fast you send it.. ugh.
From Earth. They can connect to either satellite from Earth.
they’ve successfully reached their orbits and managed to receive signals [from Earth] from a simple 3.5mm Bluetooth chip over an astonishing distance of 600 km.
I was trying to fetch key-value pairs out of a database using PHP+PDO the other day and I knew there was a nice easy to do it but I couldn't remember how. Something about fetchAll, maybe PDO::FETCH_GROUP|PDO::FETCH_COLUMN.... what was it?
So I asked a couple LLMs. They wrote out loops for me to format the data how I wanted. I could have copy-and-pasted that in and it would probably have worked. But I felt there was something better yet, so back to Google I go.
It's `PDO::FETCH_KEY_PAIR`. It's built-in. But oddly kind of hard to find unless you know the right thing to search for, and "key pair" was not springing to my mind.
Point is, if you just let the LLMs do your work you won't even find these better ways of doing things. And I'm quite afraid of what the LLMs are going to do to Google, Stackoverflow and documentation in general. In a couple users it'll be ungoogleable too.
I especially like when I'm looking for a particular method on a class I've never used before and it just makes one up for me as though it exists.
But TypeScript and C# are both awesome.
I both game and program on Windows. I don't know what people are crying about. I've got Docker. I've got WSL. I've got a high quality IDE (IntelliJ). Everything works and runs great.
I also run Debian at work and that's also perfectly good for writing code, just not gaming.
But no, I don't use Mail in Windows. I've been using Gmail since it came out in 2004....and was perfectly happy with it until just this second. I just found an email from 2004 wherein I had emailed myself a project, and Gmail has blocked it because it thinks it's a virus. The solution? Export the EML and open it in Mail on Windows. Funny.
on my Macbook Pro at 60Hz (1080p).
I think you just answered yourself. Some of us like to play games at 4K at 80Hz+, with no subscription fees, no internet bandwidth requirements, no added latency, and ability to mod.
I tried to do the pre-signed URL thing but gave up quickly. I don't know how you'd do it properly. You're going to want a record of that in your database, right? So what, you have the client upload the image and then send a 2nd request to your server to tell you they uploaded it?
I ended up piping it through my server. I can limit file size, authenticate, insert it into my DB and do what not this way.
Haha. Auto-correct. I think I meant light "work" editing maybe??
Those are pretty fast but I suspect spending nearly any amount of time running some model to spit out an icon is too much time. I should be able to load a directory with 1000s or 10s of thousands of files extremely quickly.
AI lying to deny that HP Lovecraft had a childhood pet
GPT4 told me with no hesitation.
No, actually. Thank you for that.
Your "Double vs. Github Copilot" page is great.
I've signed up for the Jetbrains waitlist.
Your boss comes up to you and says "I need this by Tuesday" and then storms out of the room. You look down at your watch to confirm you're not crazy. Today is Tuesday. When does your boss need it by?
We could technically do # of minutes since 1970-01-01T00:00:00 (or whatever) & seconds though, no? (int32 minutes, double seconds) would get us a pretty big range in a pretty compact format.