5,693 karma · joined December 14, 2011
f(a++, b++)
That footgun doesn't seem to have very much impact in the real world that I've seen. Largely because people do not write complex expressions like that anymore. Since we already mostly avoid such expressions, we may as well take the benefit for designated initializers.> a script that counts the number of lines in files versioned by git
I'm saying that is not a realistic production program that most of us would need.
If you want it as a personal utility to use in your own shell, absolutely you can use bash. I'm responding to the idea that such a trivial script would have long term use in production.
This can be used to detect partially-bad network cables, because there is no reason you should ever receive a bad FCS.
So yes it comes close but it just goes to show you, there is always more detail hiding somewhere!
For people like me who have battled this demon before, it would help to explicitly say that you support any gzip file by way of this special magic. At least on my cursory reading of your page I did not understand this. And I never heard of gzrecover, so thanks for that too.
I like how the pugz paper starts with "Decompressing a file made by the gzip program at an arbitrary location is in principle impossible." Until today I believed the same!
I thought you had to write "sync points" inside a gzip file to support reading from locations other than the start. If you somehow bypass that requirement, can you explain how?
It's common to hear "How should I address you?" This is equivalent to the people here suggesting a "nickname" field (good idea).
There are people with only one name. Don't make them double it (Ananda Ananda).
There are people with several given names. But they may only want to be called by the first, or the first two, or the last.
There are people who wish to be called by their full name. They may find it jarring to be addressed by just one piece of their name.
Finally there are people who go by a name which is not part of their legal name at all. Short forms like Bob instead of Robert, but also freeform names for various reasons, perhaps the most sensitive being that some government official may have determined their legal name contrary to their own wishes. Imagine your mother named you Sue but someone decided that must be short for Susan and put that on your government documents.
Related: when people want to show which part of their name is the family name, they either make it all uppercase or underline it. You can see this on some CVs but it happens elsewhere too when a full name is going to be read by people who don't know the addressee.
There were digital watches with this feature sold by Optimum Time and Gill, but they have been unavailable since 2021 or so: https://www.tradeinn.com/bikeinn/en/gill-race-watch/1330814/...
I tried using a Garmin smart watch instead. It had a race start app, but it was way more fiddly than a non-smart race watch, to the point of not being usable for serious racing.
So while I would never buy the Yachtmaster, I appreciate its dedication to a function which is essential to racing sailors and poorly supported by other makers.
NumPy does have an official documented format which is straightforward to read and write from other languages if you write some code yourself, but still doesn't have very wide support outside of Python.
One day our friend was ill but three of us weren't going to miss the only sunny day of British summer so we went without him.
The ticket agent on the train was quite insistent that we were breaking the rules...and I guess in some sense we were, as the tickets did say four people had to travel together. We ended up with a "One time courtesy exception" so we could continue our journey.
National Rail later revised the program to a 33% discount for groups of 3 or more.