Readit News logoReadit News
dirkf commented on The Lost Art of Commit Messages   seyhan.me/blog/post/lost-... · Posted by u/drac89
Cthulhu_ · 9 months ago
A one-liner: sure. A ticket? No; ticket systems are transient and not always available. You shouldn't need to open an external system that may no longer exist in 20 years time (for example) to get the full context.

Compare the Linux commit history, every commit has its full context and explanation and they do not rely on external systems.

dirkf · 9 months ago
20? Try 5...

I"m working on a repository that uses at least four different jira ticket number formats. All commits should have a jira reference but I think only the current format can still be looked up. And maybe the predecessor if you know what jira field to query. All the rest are lost in corporate limbo. Not that those tickets added much more context to the actual commit...

So yeah, always write your commit messages as standalone as possible.

dirkf commented on Seer: A GUI front end to GDB for Linux   github.com/epasveer/seer... · Posted by u/turrini
j1elo · a year ago
DDD was taught to me when in University, 20 years ago, and it already felt clunky, my views are now much more moderate but Motif still feels like an eyesore.

Conversations over the years have shown me that DDD was a great inverse marketing tool, ironically pushing developers towards the embedded debugger UI in their favorite IDEs... despite DDD itself being indeed very powerful. But even "usefulness over aesthetics" has its limits!

dirkf · a year ago
There's one DDD feature that I haven't found elsewhere: its graphical representation of a struct and its contents. You can double-click on a pointer field and then it draws whatever that field pointed to, with a nice arrow connecting the two.

I've found it a very powerful yet compact way to visualize the state of a program when debugging.

dirkf commented on Heinz’s sustainable ketchup cap   lumafield.com/article/hei... · Posted by u/viasfo
seszett · 2 years ago
> I go through a 64 gallon trash bin a week.

That seems absurdly large to me.

64 gallons is 250 litres. We're four and we use about one 30 litres (8 gallons) bag for "rest" trash per week (everything not recyclable, including diapers which take a lot of space, so hopefully soon we can at least halve that trash volume) one 30 litres bag for recyclable plastic/metal every two weeks and maybe one 30 litres bag for compostable stuff (mostly just vegetable and fruit peels from cooking) every two weeks or so.

That's about 60 litres or 15 gallons per week for a normal-sized family. I can see some of my neighbours having somewhat larger bags, some with smaller bags, but I feel like we are mostly average for our area (in Belgium).

In fact, a quick search tells me that Belgians have produced on average 683 kg of trash per year in 2022, which comes to 13 kg per week per person and seems rather consistent with my numbers.

dirkf · 2 years ago
(Fellow country man here!) That still sounds like a lot to be honest. According to the yearly stats we receive from our trash collector: in 2021 our family of 4 produced 27,50kg of non-recyclables. That's not per month or per person but for all of us for the whole year. Granted, no diapers anymore here; that takes quite some space (and weight, which is more important since we pay per kg).

We saw a significant drop after they started collecting plastics separately. We have a 120 litre bin that we put to the curb every two months or so. I don't quite understand what people are throwing out all the time that you can fill a large bin every week...

dirkf commented on Qualcomm hardware support increasingly in good shape with Linux kernel   phoronix.com/news/Qualcom... · Posted by u/quic_bcain
dirkf · 2 years ago
On a related note: I have the impression Broadcom is more and more losing terrain to the likes of Qualcomm and Mediatek. A couple of years ago nearly everybody was using Broadcom chips in their products (or at least in the consumer-grade telecom devices I'm familiar with as part of my job). Now I'm seeing a shift away from them.

I can't really say if it's due to better features, price, vendor support, open source support, documentation, or perhaps all of the above. In any case, some competition is certainly welcome.

dirkf commented on Willow Protocol   willowprotocol.org/... · Posted by u/todsacerdoti
layer8 · 2 years ago
It’s like Dropbox, including sharing, but without a centralized service, instead peer-to-peer.
dirkf · 2 years ago
So something like https://syncthing.net/ ?
dirkf commented on curl - SOCKS5 heap buffer overflow - CVE-2023-38545   curl.se/docs/CVE-2023-385... · Posted by u/ehPReth
qwertox · 2 years ago
> If the hostname is detected to be longer than 255 bytes, curl switches to local name resolving and instead passes on the resolved address only to the proxy.

This sounds like an issue in itself, even if it is intended. Is that max length of the hostname a limitation of SOCKS5?

Let's assume you're using TOR through a SOCKS5 proxy, then any tool which uses libcurl will perform a local host lookup upon a https call (or redirect) to a long hostname, like one with a dynamically assigned UUID in a subdomain.

dirkf · 2 years ago
Note that they no longer do this fallback to local name resolving:

From the advisory:

  Starting in curl 8.4.0, curl no longer switches to local resolve mode if the name is too long but is instead rightfully returning an error.

dirkf commented on Cities turn to ‘extreme’ water recycling   e360.yale.edu/features/on... · Posted by u/CoBE10
erik_seaberg · 3 years ago
On one hand, we don't need potable water to flush a toilet. On the other hand, flushing a toilet with dirty water is going to leave your house smelling like whatever's in that water.
dirkf · 3 years ago
In my country it has been mandatory for at least a decade in any new construction or significant renovation to collect rain water and use it for at least flushing toilets.

It's not that expensive to install at that time and saves a lot of potable water. Seems like a no-brainer to me to do this everywhere.

dirkf commented on The case for flywheel storage in the Philippines   pv-magazine.com/2023/01/1... · Posted by u/1970-01-01
kerpotgh · 3 years ago
Doesn’t the average house use 30kwh per day. So you’d need one of these per 2-3 houses. At 5000 kg that doesn’t sound reasonable.
dirkf · 3 years ago
Average house where? Here in my European country the average is more like 10kWh per day.

u/dirkf

KarmaCake day405July 31, 2014View Original