thermin | 1 year ago | on: Fast food is already automated
thermin's comments
thermin | 2 years ago | on: PostgreSQL – Don't Do This
> I think best practice is to have PostgreSQL run in UTC and always store a time zone, that way you're always aware of time zone info and aren't restricted in the future.
thermin | 2 years ago | on: PostgreSQL – Don't Do This
thermin | 2 years ago | on: PostgreSQL – Don't Do This
I literally DO NOT understand, how is this good advice.
My backend service exists in some abstraction of a Linux environment, with a fixed timezone, most commonly UTC. It maintains a pool of connections to Postgres, all sharing the same Postgres user, and the same timezone.
Why on earth would I prefer a timestampz to timestamp? Why would I even involve the server timezone into this equation?
I want to store timestamps in a uniform way, I store them in UTC as timestamps. If I stored them in a timestampz column, if the server timezone were to adjust, I'd get literally different values.
If I want to store timezone values per user (of my service), or per operation (that my users perform), then again, surely I have to handle that users move and change their timezones. Again, how does timestampz with its reliance on the connection timezone serve me?
thermin | 3 years ago | on: “Clean” code, horrible performance
thermin | 3 years ago | on: How many layers of UI inconsistencies are in Windows 11?
The "document-oriented" window management and the fact that you can Cmd+X selected text, but not selected files is deeply bizarre.
thermin | 3 years ago | on: The Pixel Watch is official: $349, good looks, and a four-year-old SoC
I want a nice-looking, curved-screen watch that feels snappy and fluid and has a non-terrible UI (so not Samsung or FitBit), has decent Wear OS update policy (so not Huawei or Xiaomi), and is compatible with an Android phone (not Apple, which otherwise would be ideal).
I guess they made the watch for me personally. I will buy it while fully realizing they will drop it before the third year comes — at least I'll have a nice Android watch for these two years.
thermin | 3 years ago | on: In Hasidic Enclaves, Failing Yeshivas Flush with Public Money
thermin | 3 years ago | on: Adaptive Cards
thermin | 4 years ago | on: New USB-C logos make picking USB cables, chargers less confusing
Why would you assume it would work? Just because the connectors fit together? Both my computer monitor and my TV have two HDMI input ports. Should I fault the HDMI protocol (and any connector standard where server and client sides are physically identical) that I can't daisy-chain them?
My grandma has a microUSB Android tablet and a microUSB feature phone. I set up for her a dual USB-A charger and two identical microUSB cables that are always plugged in, so she can use either one or both. I don't quite see the problem with the USB-C setup either: get several high-powered chargers for her so that she can use whichever one.
But I get it. The times really did have changed; one piece of information - the wattage of the charger - that was hidden from the consumer is now reified: all chargers fit, but only some of them are powerful enough. Fortunately, it's mostly a question of comparing integer numbers: my phone's 25W, and the charger is 30W - it fits! My laptop is 45W though, bummer. I should get a >=45W charger for it.
But for that nuisance we traded away the obnoxious burden of distinguishing between Pump Express and QuickCharge and Adaptive Fast Charge and Adaptive Super Fast Charge, between Lenovo thick or thin barrel plugs or yellow rectangle plug, between multiple generations of Apple laptop plugs, of insane proprietary connectors like Nikon's UC-E6, of having to power hubs externally (thank god for 15W minimum), of the anticonsumer pricing of the vendors' proprietary tech, and (fingers crossed) of the ridiculous mix and match approach Apple has to its iPhone and iPad lines.
It seems to be a good deal.
By the way, I fondly remember a Sony Ericsson K510i I had in high school :) That toothy connector was finicky as hell (something I'm reminded of by lower quality USB-C hubs).
thermin | 4 years ago | on: New USB-C logos make picking USB cables, chargers less confusing
thermin | 4 years ago | on: New USB-C logos make picking USB cables, chargers less confusing
thermin | 4 years ago | on: New USB-C logos make picking USB cables, chargers less confusing
Never were much into electrical engineering, to my own chagrin.
thermin | 4 years ago | on: New USB-C logos make picking USB cables, chargers less confusing
Only pure USB PD chargers can get certified.
Anker for example makes only a handful of such chargers, and none in the brand new Nano II series are certifiable.
thermin | 4 years ago | on: New USB-C logos make picking USB cables, chargers less confusing
thermin | 4 years ago | on: New USB-C logos make picking USB cables, chargers less confusing
thermin | 4 years ago | on: New USB-C logos make picking USB cables, chargers less confusing
At least I'm not afraid that the 65W USB PD charger will fry my phone lol
thermin | 4 years ago | on: New USB-C logos make picking USB cables, chargers less confusing
>You need a PD charger and not a QC charger...
Impossible, all USB-C QC chargers are also USB PD chargers.
>into the correct usb port to charge the laptop
The port is either marked (everything but MacBooks) or doesn't matter (MacBooks, pretty sweet).
>buy an original charger for your laptop
Good! Now you have a USB PD charger that covers your laptop and also every device you own that's lighter in wattage. Less chargers to pack when travelling :)
>you're back at where we were 20 years ago
No, not at all. 20 to 10 years ago all charging ports (including on cameras, phones, everything) were barrel plugs of slightly different diameter; everybody's cranking out their own boxy black chargers putting out maddening variations on the same ~20V for laptops and 3-5V for smaller devices, you can't share chargers between devices, can't always find the replacement, especially if the device is on the older side. Buying a device with a different connector - bam, old charger goes to e-waste (or e-bay).
>but it won't charge. You need a fast charger...
EU makes it mandatory to say on the packaging what wattage the device needs, and what wattage the chager can provide. Granted, the laptops are not covered by the EU proposition in question yet, but have patience, we don't now have those 240W chargers for nothing :)
thermin | 4 years ago | on: New USB-C logos make picking USB cables, chargers less confusing
Of course, it's better now with Thunderbolt 4 where every Thunderbolt 4 cable is also an honest to god USB4 cable, and it's not as confusing for the consumer.
thermin | 4 years ago | on: New USB-C logos make picking USB cables, chargers less confusing
They already had USB4 cable logos denoting either 20Gbps or 40Gbps (still on the USB-IF website). This is in fact a rebranding, and the first USB logos since the very beginning of the standard that don't feature the trident.
Or are you concerned that the app is not compatible with the Android 9-based custom ROM you are rocking?