HNHacker News
TopNewBestAskShowJobs

Two4

366 karma · joined May 25, 2023

submissionscomments
Two4··on Plug and socket types around the world
As someone who has used most of these standards, save for some of the more esoteric ones, I can honestly say type M is best - all the benefits of type G, but won't literally stab your foot when you step on it (I'd link some nsfl photos if I weren't on mobile).

Built in fuses are quite archaic - circuit breakers are better, and if you really need one, build it into the appliance.

Any socket that is compatible with type C plugs tends to have plugs that easily break if any kind of bending or shearing force is applied to it while plugged in, and the equipment manufactured for it (adapters and multiplugs) tend to be cheap, not make good contact and allow the plug to fall out easily. I've never encountered a type M socket that didn't Just Work™

Two4··on As Economy Falters, China Looks to Army for Answers
The Russian military buildup on Ukraine's borders was obvious and believable, no one had a hard time seeing the Russians were going to invade. What really had the Ukrainian regime on the precipice, and was a harder sell in the lead-up to Z-day, was the internal coup attempt that would be coupled with it.
Two4··on Why are our keyboard not wireless?
Can't figure out how to delete this comment on this mobile client, please ignore
Two4··on Ask HN: I’m an FCC Commissioner proposing regulation of IoT security updates
Why does everyone compare things to houses? If you want to be more consistent with your building analogy, IoT sold to the public or enterprises are more like bars, except that each user has their own privately owned bar that may or may not be stocked by a central liquor company. If a user wants to check it's not possible for someone to break into his bar, or slip poison into his booze shipments, or redirect the shipments altogether, that's legitimate in my mind. Even if someone buys a bar intending to hijack booze shipments, the liability is still partially on the liquor company if they have not taken reasonable precautions against known risks. Imagine buying a bar and the liquor company who you're forced to use says "if you rattle any of the doorknobs or test the alarm works, we'll sue your pants off and throw you in jail" - does that seem fair?
Two4··on 8K TVs: Not Dead Yet, but Pretty Close
I friggin love rtings - I wish all reviews would dive so deep into the technicals and have such consistent processes.
Two4··on Juice jacking: The urban legend about phone charging that just won’t die
I thought they used the Russian consultants as a vector by infecting their laptops before they went inside the airgapped system? I was under the impression that this was the reason Stuxnet spread so far and wide, because it had to spread organically to the Russians' devices. Time for a Wikipedia rabbit hole, I guess.
Two4··on Ask HN: What's the best backend right now?
Yes - I once wrote an AWS lambda that was having issues with cold boot times, so I compiled it to a binary and bada bing bada boom, boot went from 2 seconds to about 200ms.

It's not a silver bullet though - some reflection features aren't supported, and reflection in general requires a bit of config at compile time to make sure all the required classes are loaded. This can make some plugin architectures unworkable, although I maintain that if you need reflection for pluggable code, you're probably doing it wrong.

Two4··on Ask HN: What's the best backend right now?
I'm a big fan of JDK 21 with Helidon 4/Nima on the backend - most use cases covered, but very tight and light in dependencies and pretty much completely platform independent. You also have the option of compiling it AoT with GraalVM for a very quick-loading and low-memory near-native binary. Virtual threads mean much easier scaling, as you can do thread-per-request with a synchronous API. (Although I'm not sure if Graal supports java 21 yet, I'll have to check)
Two4··on As I get older, I just don't care about new technology
My team was asked how we should store data that is variable in structure and depth. When I suggested using mongo and not trying stuff it into a SQL db, I was looked at like I had suggested blending my firstborn for margaritas. People seem to think that NoSQL is dead and was always a bad idea.
Two4··on Reid Hoffman: Musk 'bought what Putin was selling, hook, line, sinker'
Which NYT article? What earlier contemporary reporting?
Two4··on Ask HN: What's the biggest red flag you've encountered during a hiring process?
Many jobseekers will be in this thread, looking for tips. Seems like a smart place to pick up candidates.
Two4··on Helidon Níma: A Java microservices framework based on virtual threads
As soon as you start talking thread pools, you're talking about async task dispatching at some level, even if it's abstracted away at the API level. What I'm talking about is using a virtual thread, not event-driven shuttling of stateful objects between threads via task queues, to complete a request from start to finish.
Two4··on Helidon Níma: A Java microservices framework based on virtual threads
Non-MicroProfile Helidon uses a reactive interface for most things, which lends itself well to async operations. It a very nice, simple and powerful abstraction that makes async relatively easy. IMO anything webserver or client should be async when virtual threads aren't available, due to Java having the tendency to quickly build up a ton of threads when you use the one-thread-per-request model. That being said, virtual threads does make that model viable at scale, so reactive async probably isn't as necessary.
Two4··on Software engineering lessons from RCAs of greatest disasters
I don't think they're referring to dudebros' js, they're referring to systems software and the ability to deliver relatively secure updates over insecure channels. I've even delivered a signed firmware update to a microprocessor in a goddamn washing machine over UART. Why can't we do this for a jet?
Two4··on Ask HN: I get nauseous while playing first person view games
If possible, always use an FOV of 90 degrees or more. I often find console ports that have too tight an FOV and no way to adjust it make me queasy (they're intended to be played from the couch). Another possibility is to make the crosshair bigger, or use a crosshair overlay - if you don't have something to "anchor" your perspective, it can cause nausea
Two4··on Eight months pregnant and arrested after false facial recognition match
Translation translation: someone has leveled valid criticism about a nationwide problem in a country that propagandises itself to be the best in the world and I've drank the koolaid so now I need to be super touched about it
Two4··on Pay no attention to the USB port behind the “no USB” sticker
If this is true then why, for the love of God, can I not walk into my local and buy a halfway decent printer?
Two4··on The Secretive World of Penile Enlargement
Suicide rate is around 4 times higher for men in Western societies, but suicide attempts by women are at least twice that of men. More lethal, messier suicide methods are more popular among men, and in my opinion, it's because women are socialised to be more considerate of those who will find their body.
Two4··on Why do cloud providers keep building datacenters in Phoenix?
More or less, yes, although I'm not sure what you mean by "solar most abundant and cost-effective"
Two4··on Play deprivation is a major cause of the teen mental health crisis
While your comment addresses the most common factors contributing to addiction, it doesn't really answer the question of how to let children experience the consequences of addiction in a way that's low stakes and not irreversible.
Two4··on List of APIs that require declared reasons
Did you also delete Messenger, Instagram, Whatsapp and Threads?
Two4··on Bidet Shower – Hand Bidet, Commode/Toilet/Bum Shower, Health Faucet, Bum Gun
Wet wipes, no matter how much the manufacturer claims, are not flushable. They don't break down in water like toilet paper (why would they? defeats their purpose), and clog sewage lines like a mofo. Even if they don't affects the lines in your property, they very likely gather somewhere downstream. The alternative is throwing them in some kind of receptacle, which I understand is acceptable in some countries anyway due to poor sewage infrastructure.
Two4··on Spartans Were Losers
Total war is distinct from civil war or regional conflict - none of the parties you mentioned are completely committed at every level possible to victory (or at least the other side losing). Britain and Germany can both be thought of as being in states of total war at varying times during WW2.
Two4··on No longer a cold case? Police confirm search warrant Tupac Shakur's 1996 killing
Tupac certainly had some fairly high ranking civil servants, lawmen and politicians as enemies, or at least detractors. His parents were both considered political extremists, and the FBI kept a very thorough dossier on him, as he was considered a threat to the political establishment in the same vein as black civil rights leaders in the sixties and seventies. His death was convenient at best, a conspiracy at worst. It's not surprising that the investigation was cursory and left to go cold.
Two4··on Why do cloud providers keep building datacenters in Phoenix?
Using solar without batteries to supplement baseload requirements is a great cost-cutting exercise, because it reduces grid draw when data center power requirements are highest (business hours) and electricity is most expensive. You can also add batteries later if they start to make more business sense.
Two4··on California couple charged nearly $30K for one Uber ride
This smacks of some kind of microservice failure causing a bad default/fallback currency identifier value to be used before the transaction made it to the card payment rails.
Two4··on San Francisco Activists Are ‘Coning’ Cruise, Waymo Robotaxis to Disable Them
Anyone who speculates with 401k money on relatively risky tech stocks and startups should either be prevented from gambling with other people's money or should accept the risk to their own money.
Two4··on What's the problem that SSH tunneling is trying to solve?
I can't say I know what problem it's solving in your particular situation, but I've found SSH tunnelling useful for redirecting cloud VPS traffic to my local box to pinpoint and debug issues in an IDE - though these days it's all k8s and it's much easier to drop your machine in as a particular node.
Two4··on Is there an open source project to remove background from images, serverside?
Adapting the code to run on node.js may not be too terrible - I haven't looked at the repo (on mobile), but I've had luck porting non-DOM-related client js libs to server libs before.
Two4··on Construction Time Again: The quality crisis in American building
I concur with the other reply to your comment - Americans (I assume you're American) have a love affair with drywalling and timber framing that astounds me. It seems like it's a recipe for poor soundproofing and massive fire hazard.
← PreviousPage 9 of 10Next →