Readit News logoReadit News
p-squared commented on Ask HN: Any weird tips for weight loss?    · Posted by u/fatmoron
lkois · 4 years ago
I had some of that too though, that's kinda the idea. I found carby foods were most consistently weight adding, while meaty and fatty not so much.

I recall all you can eat bbqs actually resulting in weight loss the following day. But if I had a bowl of rice with them, I'd have the weight gain I feared. Moderate portions of Indian takeaway curries with Naan could keep my weight up for a few days.

That's not something I'd expect from pure calorie counting, nor do I understand what's actually going on or if it's good or bad etc. But it seemed useful to be aware of

p-squared · 4 years ago
On a day-to-day basis, weight measurement changes are dominated by changes in retained water. This will certainly correlate with daily food choices, but does not really reflect meaningful changes in body composition. Average your measurements over something like a week in order to gauge actual progress.
p-squared commented on Would Rust Secure Curl?   timmmm.github.io/curl-vul... · Posted by u/todsacerdoti
jcranmer · 5 years ago
One of the things the author neglects is the ease of use of newtypes in Rust. This can actually alleviate a lot of parsing issues, by making it impossible to use stuff without parsing.

An example of where I've recently done something like this is my sparse linear algebra code. I have distinct types for column and row vectors for a matrix, so that if I want to right-multiply A with a vector, the input has to be a column vector and the output has to be a row vector. Similarly, if I want to left-multiply A with a vector, the input has to be a row vector and the output has to be a column vector.

p-squared · 5 years ago
Maybe Rust makes newtypes _easy_, but certainly C supports similar idioms by way of wrapping data in a unique struct.
p-squared commented on How to Stabilize a Wobbly Table (2007)   maa.org/external_archive/... · Posted by u/crazyoscarchang
bvanderveen · 6 years ago
Best solution: replace it with a table with 3 points of contact with the ground. Three points define a plane; it's guaranteed not to wobble.
p-squared · 6 years ago
> Three points define a plane; it's guaranteed not to wobble.

This gets repeated a lot. I think if you stop to consider the common case of non-planar ground, you will see that this mathematical factoid isn't actually super-relevant.

(I will concede that it's not trivial to add a fourth leg and make it co-planar to the other three. But this often isn't the cause of wobble.)

p-squared commented on Netflix ends AirPlay support in an ongoing souring of its Apple relationship   arstechnica.com/gadgets/2... · Posted by u/e1ven
_bxg1 · 7 years ago
Netflix has been using anti-consumer dark patterns for years. I avoid their app now, since it forces trailers in your face on the main menu. If they want to further sabotage their own presence on Apple devices, that's fine with me. It'll give their competitors an opportunity.
p-squared · 7 years ago
> Netflix has been using anti-consumer dark patterns for years.

Examples? "Trailers in your face on the main menu" is not a "dark pattern": there is no element of deception involved. It's simply a user experience that you dislike. Similarly, removing AirPlay support may suck for consumers, but it's not deceptive.

p-squared commented on A perfect storm that brought down LinkedIn.com   engineering.linkedin.com/... · Posted by u/fanf2
fierro · 7 years ago
Nice ageism there at the end
p-squared · 7 years ago
The key phrase is "who are not fully aware of their responsibility". The commenter is not wrong in identifying a subset of the candidate pool which has a high risk of inadequate experience for this kind of work.
p-squared commented on Wisconsin’s $4.1B Foxconn factory boondoggle   theverge.com/2018/10/29/1... · Posted by u/gok
simplify · 7 years ago
How so?
p-squared · 7 years ago
The term "subsidy" implies that the state is actively paying out cash to Foxconn. If I'm correct that these are actually tax breaks, then the state is merely claiming less tax revenue from Foxconn than state law would otherwise dictate. That's tax revenue that the state wouldn't see at all in the absence of Foxconn. And if Foxconn's locally-generated revenue ends up being smaller than originally anticipated, then it would stand to reason that the effective reduction in tax revenue is reduced as well.

The article goes on and on about wasted subsidy funds (there are other valid criticisms of the deal, but this is the big one). The Foxconn deal may not be working out, but if everything is structured in terms of tax then the state finances are not really getting impacted.

p-squared commented on Wisconsin’s $4.1B Foxconn factory boondoggle   theverge.com/2018/10/29/1... · Posted by u/gok
njarboe · 7 years ago
In an article this long and $4.1 Billion in the title, it would be nice to see a simple listing of the subsidies. It is hard to know what is really being given to Foxconn. Seems like a combination of tax breaks and public infrastructure projects. Spending $300 million to expand an interstate near the factory a bit quicker that was slated for expansion anyway, should maybe not really be considered a public subsidy to Foxconn.
p-squared · 7 years ago
My recollection from earlier stories covering this deal is that "subsidy" actually means "tax break". If that's correct, then the tone of this story is very misleading.
p-squared commented on The Git project selects SHA-256 as the next-gen hash function to migrate to   public-inbox.org/git/2018... · Posted by u/avar
shakna · 8 years ago
The Background section of this [0] document explains it.

In short, git migrated to a hardened SHA-1 hash after the SHAttered [1] attack became known.

However, in the future more attacks against SHA-1 may be found, so git is trying to future-proof itself.

However, even in the case a hash function is no longer cryptographically secure, git doesn't lose out completely, just losing signing and shorthand fetches over the git protocol.

This project focuses on git with SHA256 and SHA-1 interchangeability, but doesn't address the git protocol side of things yet, which can come later.

[0] https://github.com/git/git/blob/master/Documentation/technic...

[1] https://shattered.io/

p-squared · 8 years ago
"Hardened SHA-1 hash" is a confusing way to characterize git's current hash behavior. There is no change in the hash--it continues to be SHA-1. The change is in git's business logic: it will detect hash inputs that look like a SHA-1 collision attack, and will refuse to proceed.
p-squared commented on Ask HN: Is big-endian dead?    · Posted by u/api
astrodust · 8 years ago
Maybe that mattered on serial connections, but on a 10Gbit switch you're talking nonsense.
p-squared · 8 years ago
Yeah, it's extremely unlikely that a high-speed serial phy would even expose a primitive word size any smaller than 32 bits. Byte-by-byte decoding is extraordinarily difficult at these data rates.

u/p-squared

KarmaCake day19August 1, 2014View Original