HNHacker News
TopNewBestAskShowJobs

veonik

192 karma · joined January 10, 2013

words.
submissionscomments
veonik··on Spider venom kills varroa mites without harming honeybees
There’s far worse problems with Discovery ;) but really, much of Trek is ridiculous: “we went really fast around a sun and traveled back in time to _exactly_ when we need to be.” Convenient!
veonik··on A Roblox cheat and one AI tool brought down Vercel's platform
for real. join to read some AI slop. what a time to be alive!
veonik··on Parental controls aren't for parents
Not sure about Google but Apple has per-app time limits, per-app type time limits, overall screen time limits, time of day limits, parental review before app install, parental review before purchases can be made, etc. I've found it to be quite robust in managing my kids' access to the internet.
veonik··on Structured outputs on the Claude Developer Platform
I have had fairly bad luck specifying the JSONSchema for my structured outputs with Gemini. It seems like describing the schema with natural language descriptions works much better, though I do admit to needing that retry hack at times. Do you have any tips on getting the most out of a schema definition?
veonik··on Jules, our asynchronous coding agent
To add to the confusion, you can also just use Gemini via API (without Vertex AI). It shows up as a separate item in billing.

In the (latest, of three different) Go SDK, you can use either Vertex AI or Gemini. But not all features exist in either. Gemini can use uploaded files as attachments, and Vertex AI can use RAG stores, for example. Gemini uses API key based authentication, while Vertex AI uses the traditional credentials. All in the same SDK.

It's a mess.

veonik··on The double standard of webhook security and API security
It’s worth pointing out that Stripe, specifically, generates a per-endpoint secret for webhooks that is used for validating the signature.
veonik··on AniSora: Open-source anime video generation model
Dude… are you telling me it isnt actually finished? I am watching season 1 for the first time…
veonik··on Someone at YouTube needs glasses
Shh
veonik··on I Tasted Honda's Spicy Rodent-Repelling Tape – And I will do it again
Well, I can say that you definitely won't want to taste it twice.
veonik··on The Origins of Wokeness
I don't think the "be nice to everyone" is the thing people are annoyed with, rather it's the "you will be canceled if you step out of line even once" that comes along with it.
veonik··on [dead]
Can you get a working game generated? All I ever see is at least "Script error." with no clear way to debug. Having bolt try to fix it seems to just regenerate bits of the app but has failed to actually fix any problems so far.
veonik··on Docker Desktop Alternative
That is exactly why I needed it, too! :D

Be sure to increase RAM over the default 2GB as well, that SQL Server container is hungry and will crash without enough resources dedicated to it.

veonik··on Show HN: Container Desktop – Podman Desktop Companion
After some initial pains with colima, I tend to agree. Mostly, just needing to specify some VZ args[0] so I could run x86_64 docker images on my M-series.

Is there something in these desktop UIs that colima is completely missing?

[0] `colima start --vm-type=vz --vz-rosetta`

veonik··on Why I avoid using empty() in PHP? A Closer Look
Yep, that whole example after the float cast is bit silly. After the cast, the value can never be an empty string, or null. Not to mention, comparing a floating point value to an arbitrary, literal value (of zero in this case) is potentially problematic [1].

[1]: See the warning on this page, this applies to all languages with floating point arithmetic. https://www.php.net/manual/en/language.types.float.php

veonik··on Chandrayaan-3 Soft-landing [video]
"One small step for a man" is what he actually said, I think, or so I've heard. Apparently the "a" was lost due to radio interference.
veonik··on NASA has reestablished full communications with Voyager 2
For what it's worth, I actually agree. See: Curiosity or Ingenuity, both relatively new and far outperforming their expected life. Not to mention that I'm sure the ground-based transmitters that were used to actually fix Voyager 2 are likely not old, so it really isn't a case of "old is good" which helped in this case.

My comment is unfortunately an example where I let my late night shit-posting bleed over into HN, which is always regretted in the morning. Apologies ;)

veonik··on NASA has reestablished full communications with Voyager 2
They don't build 'em like they used to
veonik··on 1953 'Phantom' A-bomb film 'Hiroshima,' with 88,000 extras, screening in Tokyo
Barefoot Gen was also adapted as an anime movie and it's... rough. Another heart-wrenching anime related to the bombings is Grave of the Fireflies.
veonik··on Linux kernel use-after-free in Netfilter, local privilege escalation
Yikes... are other popular distros shipping with unprivileged user namespaces enabled by default?
veonik··on Use singular nouns for database table names
There's definitely some ambiguity there, that's a good point.

I'd probably say that users_facts would be a to-many join table between users and facts, like if you had one row per fact and a multiple facts per user though that example doesn't really make sense here (could just have the FK exist in Fact and not need a join table). If UserFacts were stored in a table with multiple facts in one row about a single user, I would probably call that table user_facts.

Would probably also be fine with running across either in any codebase (or even singular table names, for that matter! as long as it's consistent :D )

veonik··on Use singular nouns for database table names
I wrote a top level comment but I really don't understand this argument. Just because the model is "multiple facts about a user" does not mean you have to jump through hoops to name the database table. It would just be user_facts, wouldn't it? That seems intuitive and straightforward to me, even if the class name is also plural.
veonik··on Use singular nouns for database table names
Some of these arguments are a little questionable imo.

"It reads well everywhere else in the SQL query:"

You can alias the table names and have it read well in all places, and this mostly only matters if you are actually writing SQL and not using an ORM directly, which the next point seems to imply you would be using.

"The name of the class you’ll store the data into is singular (User). You therefore have a mismatch, and in ORMs (e.g., Rails) they often automatically pluralize, with the predictable result of seeing tables with names like addresss."

Almost any modern "pluralize" implementation would handle this correctly. Rails would call the table `addresses`.

"Some relations are already plural. Say you have a class called UserFacts that store miscellaneous information about a user, like age and favorite color. What will you call the database table?"

You would call the table user_facts... Am I missing something?

veonik··on LattePanda Announces Sigma, a 'Hackable Single Board Server'
Wow can it really achieve 2.5gbps throughput on its ethernet?
veonik··on Shrinkflation, SanDisk Style
Sure, not saying there isn't any discrepancy-- just that the discrepancy is in the measuring methods. I was showing that there _is_ a way to produce a 16GB number (albeit in terms of GB, not GiB) given the number of blocks physically available, that's all.
veonik··on Shrinkflation, SanDisk Style
It's a 16GB module in the "1GB is 1000MB" sense that drive manufacturers follow-- 31266816 blocks at 512 bytes each is 16008609792.
veonik··on Ask HN: How do you add novelty to your days?
As a counterpoint, I'd say that my kids have brought a return novelty for a lot of things. Doing stuff with them that I've done before but they haven't is completely new again for me, too.

edit: to be clear, though, I'm not suggesting OP has kids to bring excitement back to life ;)

veonik··on Ask HN: LinkedIn sent me a cease and desist for my Chrome extension. Help?
The point is that lawyers sent the cease and desist, so the other side does have lawyers at their beck and call. If you want to do anything other than what they demand you do, you are risking more lawyery-action. And even if you do comply, that doesn't stop them from continuing to bring action against you for some other reason, or for damages, or whatever they want, really.

It may not be a system that is geared towards fair play, but if you want to play at all, you really should have a lawyer, too.

veonik··on Microsoft Transitions U.S. FTEs to “Discretionary Time Off”
It can be hard to figure out which is which for the company before getting hired though. Asking about programs that encourage PTO is a good way that I've found to suss out these types of details.

My current job offers a few "extra" things on top of unlimited PTO like during the summer, a $100 bonus if you post a pic of some activity you did on PTO (literally anything, and can even opt out of sharing if you are so inclined) or more recently, a "competition" for the best use of PTO. I think someone reading a book in a hammock won.

veonik··on Ask HN: Was I pwned? [resolved]
WiFi calling is multicast, I think, so your phone just basically broadcasts it to the network and every device will see it, though only your router will actually do anything with it.

There's examples of WiFi calling causing this type of issue, described as a packet storm. For example, here's a reddit post with similar symptoms you're describing. https://www.reddit.com/r/networking/comments/3g31mc/iphone_w...

veonik··on Is SLS Worth the Cost?
Real Engineering did a video about this[0] and mentioned that SLS was really just a way to create jobs that happens to result in a massive rocket at the end. This makes sense to me and neatly explains the apparently intentionally overblown budget.

[0]: https://www.youtube.com/watch?v=0waPJXaZgEg

Page 1 of 2Next →