6,062 karma · joined February 9, 2012
Hobbies: sailing, gardening, linguistics, food and cooking, archery.
Feel free to contact me; I'm on gmail.
// Does the same as `Number.prototype.toFixed` but without casting
// the return value to a string.
function toFixed(num, precision) {
const pow = 10 ** precision;
return Math.round(num * pow) / pow;
}
I know doubles are big, but doesn't this combination of multiply-and-divide introduce the possibility of precision issues that I'm assuming is not applicable to `toFixed`?Unless I'm wrong, I would be very hesitant to use this version of the method when I don't control the input.
GM is taking a different approach on the Silverado EV. Still looks like a normal truck, but it's been designed around the electric powertrain. So we'll see who wins that race.
I'm sure I'm not the only person in the world that just wants a normal car or truck, but electric.
When I'm using PowerShell as a scripting environment, I use the full name for every command and parameter, and even include the names of positional parameters.
I love that it can do both.
So the federal government is essentially taxing the state's citizens, then giving some amount of it back to the states in exchange for rowing the boat in the right direction. States that increase their own taxes to compensate for refusal of federal funds would become noncompetitive to other states who don't.
Luckily for us, banana plants grow like bromeliads. They flower and fruit then die. But not before sprouting several new stalks. So they're really easy to propagate by separating the new stalks once they get big enough.
Someone else posted this excellent article on it:
https://www.damninteresting.com/the-unfortunate-sex-life-of-...
EDIT: Apparently they're in fact the same cultivar. The bananas start off blue and ripen to yellow.
https://news.ycombinator.com/item?id=33036297
> I like this rule of thumb to know if a behavior can be a psychiatric disorder: "when it interferes with normal functioning". It's purposely vague and subject to interpretation but it's a good first filter.
If these new "addictions" aren't interfering with "normal functioning", then they're not disorders. They're just normal parts of that person's life.
You said it yourself. Bearer tokens have to be added manually, while cookies are automatic. So simply issuing a request to a backend will not include the bearer token, and you (as the attacker) have no way of actually gaining that token from your cross-site context.
> 1. The body of all written works.
> 2. The collected creative writing of a nation, people, group or culture.
> 3. (usually preceded by the) All the papers, treatises etc. published in academic journals on a particular subject.
> 4. Written fiction of a high standard.
So it sounds like you're basically describing definition (1). I make this judgement because "this tastes good" is not creative or fictional writing, which are key points in definitions (2) and (4).
English being a Germanic language is why the whole "no prepositions at the end of sentences" thing never made sense. That was a Latin rule. But Germanic languages have a property of augmenting verbs using prepositions. In German itself these are called "separable verbs".
Ich stehe auf. I stand up.
"Up" is not a preposition in this sentence. It's an integral part of the verb. That is, the verb is, in its entirety, "aufstehen" or "to stand up".
Meanwhile, this same phrase in Spanish uses reflexivity:
Levanto me. I lift myself.
Yay language!
On the other hand, depositing money is the normal status. Depositing what amounts to large sums over arbitrary periods of time is also normal. Directly to the point, the limit in place is not a restriction, but merely one that triggers mandatory reporting. The limit is very clear and absolute -- though at their discretion banks may report smaller transactions. Structuring is specifically about avoiding that limit and the accompanying questions and reporting.
So how would you rewrite this law to require mandatory reporting, but also not allow structuring? Because it's not apparently trivial how to achieve that goal any better than they did.
WITH one AS NOT MATERIALIZED (
SELECT 1 AS value, 'one' AS name
)
SELECT *
FROM one
As srcreigh said, this is the default since I believe PostgreSQL 12, as long as the CTE is only used a single time. If you use it more than once, it by default wants to materialize it instead of recalculating each time. You can also force materialization by dropping the `NOT`.Also note that materialization acts as an optimization fence. That is, PostgreSQL will not push down filter criteria and such from the query into the `WITH` clause. It can do such if it's not materialized.
And you're 100% correct that uptake in the long tail of smaller banks and credit unions is probably one of the biggest "issues" with the service. If your bank isn't signed up, there's nothing you can do as an individual except move to a bank that is. Systems like CashApp and Venmo don't have that issue.