Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Too
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
62 ms
·
961.
▲
by
Too
4y ago
Same famous problem for any kind of make-based build system, removing targets usually leave old files in your build directory. IIRC Bazel can avoid it but don’t know how, either it must keep a list of old files or compare the entirety of bu
962.
▲
by
Too
4y ago
Ansible, despite its declarative syntax, is actually just running actions imperatively from top to bottom. Each tiny action itself may be idempotent but removing one action will not undo it on the server. Even within single modules, modif
963.
▲
by
Too
4y ago
Seen exactly the same, sadly not just in one shop. Half completed stories would be split into part 1,2,3, or worse: renamed to " Attempt to implement...", just to make the burndown chart align at closure of sprint and give people
964.
▲
by
Too
4y ago
Must be some American thing. Here the knobs are always on the front, usually because the stove comes integrated on top of the oven, but even for glass tops the knobs come in a separate module that you mount under the stovetop and protrude o
965.
▲
by
Too
4y ago
One could also use this example for arguing the other way. AbstractFactory pattern would not be needed if Java had more rich feature set to begin with, in this particular example anonymous functions. (Which I believe it nowadays have). Patt
966.
▲
by
Too
4y ago
How else would you know if the clock on the micro is not correct if you don't have the oven to use as reference?
967.
▲
by
Too
4y ago
We got a new fancy coffee machine at work. Obviously with a big shiny touch screen attached. Best case, it requires 3 touch actions to get a standard coffee. One modal to select drink, one modal to select strength, one modal to confirm star
968.
▲
by
Too
4y ago
Such knobs should be the most obvious interface but sadly most of the analogue models on the market lack a lot of accuracy. Some times even up to 30s-1min range. Enough to be the difference between cold or over-cooked food. The best are oft
969.
▲
by
Too
4y ago
The worst model of this i used only had a single set of + and - buttons. Then a single selector-button for which area of the stove you wanted them to control. Have fun cooking with 2 zones, any time you need to adjust the heat of the next z
970.
▲
by
Too
4y ago
Never seen a stove with knobs on top of the stovetop. They are usually on the front of the bench. Removing point 1 and 3.
971.
▲
by
Too
4y ago
I want to like rust but the fact that there are replies with 9 different ways to write that loop posted here alone, and no consensus on which one is the idiomatic, is not a good sign.
972.
▲
by
Too
4y ago
Seen the same thing happen with devs that proud themself to write “simple” code. Sure, every individual script they write is simple in itself, but in the end you have thousands of them that don’t compose or reuse at all, with lots of implic
973.
▲
by
Too
4y ago
Similar mindset as Grafana Loki took for log search, rather than indexing each field like many others do. https://grafana.com/docs/loki/latest/best-practices/ ”don’t add a label for something until you
974.
▲
by
Too
4y ago
Can be optimized by assigning plusone = libplus.plusone, before using it as plusone(i). Otherwise it will do an attribute lookup in each loop iteration, Python has no way to assume zero side-effects of function calls, in case lib.plusone wa
975.
▲
by
Too
4y ago
https://prometheus.io/docs/introduction/faq/#why-do-you-pull... list a few reasons and also end with a note that it probably doesn't matter in the end. Personally, for smaller deployments, i like it beca
976.
▲
by
Too
4y ago
The rest of us can only hope Opentelemetry becomes more widely adopted. They have put in a lot of effort in decoupling the application instrumentation from the monitoring solution, to allow more rich instrumentation than just a prom-alike e
977.
▲
by
Too
4y ago
Had some American friends visiting me in Sweden. After a few days of being out in the city one of them paused and looked worried at me, asking if the economy here was tanking - because they saw so many 'unemployed' men with kids i
978.
▲
by
Too
4y ago
Mmmmmm, MS Teams... Don't get me started. Try pasting a code snippet into MS Teams, it will happily remove all the indentation - even if you paste it in a code block! Extra good luck with yaml. Some people at work now started taking sc
979.
▲
by
Too
4y ago
In Excel you can press F2 before pasting. That takes focus of the cell one level deeper to the input-box, where only plain text is allowed.
980.
▲
by
Too
4y ago
Let’s not forget that writing C extensions is the easy part. The even more sucky part is to distribute them and make sure it works on every OS, without every user having to apt install build-utils before they can pip install your package
981.
▲
by
Too
4y ago
Post its at home can be stolen, or photographed, while I'm out of the house. My phone plus my face? Without me noticing either? Not as easy. I still keep printed one-time recovery codes locked up and hidden to not be completely surrend
982.
▲
by
Too
4y ago
Not just temporary. Steel pans can get fantastic non-stick properties if you season them like a cast iron pan. In fact it's even more important to perform a dedicated seasoning on steel, because they don't absorb the fat as easy a
983.
▲
by
Too
4y ago
All time is not equal. Willpower is finite. People would look strange on me if i started shaving while commuting on the train. Here i have ample of time to read. One could also simply prefer watch junk on the telly to wind down after a long
984.
▲
by
Too
4y ago
A few assertions would have also stopped this. During buildup of the our_id list: assert (vimeoId not in our_ids). After creating the list: assert len(set(our_ids)) > 10000 and assert len(set(our_ids)) == len(our_ids) Bef
985.
▲
by
Too
4y ago
Vuejs has a interesting and great way to avoid such feedback loops even in the presence of 2-way data binding. Most importantly you wouldn't use any watchers/effects to trigger logic on property-updates, but rather you use what th
986.
▲
by
Too
5y ago
I like the idea of human readable identifiers. But generally feels like this class of error could be prevented with more type safety in the api and data model? Like deleteDevice(123) and deleteAccount(123), rather than delete(123). This is
987.
▲
by
Too
5y ago
This would just be equivalent to rollback to a checkpoint in time of the whole table. I think the question was more on a row-level. If you are just interested in global time traveling, there are many solutions, such as replaying the oplog f
988.
▲
by
Too
5y ago
Half of the universe nowadays run on containers with volume mounts. No need to be worried about it being a container per se. What you should worry about though is the underlying volume driver and its storage type. Volumes can be simple bin
989.
▲
by
Too
5y ago
Newer python versions come with what they call audit hooks, which can log events on for example file open. The open function already has such audit built in. https://peps.python.org/pep-0578/ It can be seen as somewher
990.
▲
by
Too
5y ago
CAP-theorem and configuration. When choosing a distributed database you are in a way already by definition giving up a chunk of of the C, Consistency. Once you have a distributed database, they often have a myriad of tuning parameters that
More ›