Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
n2d4
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
27 ms
·
451.
▲
by
n2d4
3y ago
That's exactly what DP is, every DP formulation of a recursive function is bottom up vs. top down (eg. think of the steps you need to do to get from recursive Fibonacci to DP, or knapsack). LCS is not special in that regard
452.
▲
by
n2d4
3y ago
It is though, it's just a matter of perspective. The recursive method would look like this: str1 = ... str2 = ... def lcs(i, j): if i <= 0 or j <= 0: return 0 res = max(score(i-1, j), score(i, j-
453.
▲
by
n2d4
3y ago
Only nasty to find diameter of general graphs, right? If you know you have a tree, just root it at a random vertex and recursively compute `max(largest diameter of children, sum of the two biggest heights of children)`
454.
▲
by
n2d4
3y ago
> If you look up any texts that describe LCS they don't refer to it as using memoization. I challenge that actually, several resources online consider it memoization (I would too): https://www.geeksforgeeks.org/lon
455.
▲
by
n2d4
3y ago
Pytorch did use GH secrets for the valuables and you can see that this wasn't enough, right there in the OP, because the self-hosted runners are still shared
456.
▲
by
n2d4
3y ago
> If firing 40 people every quarter is normal for you then your company culture is fucked. Turnover in sales is often 25-40% across industries, some are voluntary, but just as many aren't. If about half of all departures are firings
457.
▲
by
n2d4
3y ago
A high comments-to-points ratio is bad on HN because it triggers the flame war detector.
458.
▲
by
n2d4
3y ago
Those contests are never about the actual code/algorithms they produce, it's always about recruiting the people who write them. For the price of $1mil (plus a bit of engineering time) they got a list of talented engineers who have
459.
▲
by
n2d4
3y ago
If you don't use the client library (and never expose the anon key) you're most likely fine. If you do (even if just for Supabase Auth or so) your data is exposed and you need to enable RLS on all affected tables ASAP or an attack
460.
▲
by
n2d4
3y ago
I mean, I don't disagree, but what I'm saying is that SQL/Postgres (hence also Supabase) was not designed for databases accessed from untrusted clients, instead, it's an afterthought and it shows. Whether it's a &qu
461.
▲
by
n2d4
3y ago
I just checked, and newly created tables without RLS are accessible to anyone: After running `CREATE TABLE x` in my SQL client (which succeeds with no warning), if I go back to the table UI on Supabase it says "WARNING: You are allowin
462.
▲
by
n2d4
3y ago
It only has access disabled if you enable RLS on that table. If you do `CREATE TABLE`, or don't check the checkbox in the UI (TBF it's big and green and has a warning that's hard to miss), then access is public. I guess my ma
463.
▲
by
n2d4
3y ago
I think Supabase is much better than Firebase, but I find its security model worse; Firebase was very clearly designed with this in mind, while Supabase is just a Postgres DB with RLS as an afterthought. One particular thing that annoys me
464.
▲
by
n2d4
3y ago
Yes, ALPHV/Blackcat blackmailed MeridianLink by hacking them and then filing a SEC whistleblower complaint [1]. As always, Matt Levine has a wonderful article on it: https://archive.ph/Yffbh [1] https://www.
465.
▲
by
n2d4
3y ago
For more crucial PII (such as SSN, health data, payment info, etc), vendors are generally required to have certifications from a third-party auditor (such as SOC2). If the big companies fail to check that, then yes, they can be made liable.
466.
▲
by
n2d4
3y ago
When you create the database, you're asked whether you want to give everyone access (development mode), or whether no one gets it (production mode). If you choose the development mode, it will automatically disable that access after a
467.
▲
by
n2d4
3y ago
As your link says, they're hedge d (adjective form), but not hedges. They are supposed to have low volatility themselves, but they don't counteract the volatility of other investments in your portfolio
468.
▲
by
n2d4
3y ago
The incentive is that you can take your headset off and have a real face-to-face conversation with your coworkers. And when you want to go back and focus, you put the headset back on and are free of distractions. I tried this for a few days
469.
▲
by
n2d4
3y ago
That's not where the "hedge" comes from, it's called that because they use hedging and other strategies to (hopefully) deliver constantly positive returns, uncorrelated to the market. (Which ironically makes it useless a
470.
▲
by
n2d4
3y ago
It's great publicity for their fund which is super important, because the goal of a hedge fund manager is not to make the portfolio go up, it's to convince their clients that the portfolio will go up.
471.
▲
by
n2d4
3y ago
I think you made a typo, "at most as secure" should be "at least as secure" :) But you're right, the important takeaway here is that encrypting with a weak and a strong cipher sequentially may be less secure than ju
472.
▲
by
n2d4
3y ago
> It's not the current management's fault either, that's the problem. Of course it is! Elon bought Twitter and all that came with it, including all the contracts set up by the previous management. You could have an argum
473.
▲
by
n2d4
3y ago
Not relatively recent! The feature is from 2009: https://news.ycombinator.com/item?id=607271
474.
▲
by
n2d4
3y ago
So what you're saying is that there is no free/cheap way to waste/get rid of energy? If there were, surely the energy companies would do that instead of paying consumers to use it?
475.
▲
by
n2d4
3y ago
In that case, is my assumption that it's easy to waste energy wrong? I thought you could just shortcircuit the grid (or well, have a little bit of resistance, just not too much, and some way to transfer the heat), that'll just get
476.
▲
by
n2d4
3y ago
Could you just intentionally waste a lot of energy when the price is negative to make a lot of money? Is there a limit on how much you can use? Of course you shouldn't do that, but I wonder how their business model looks like. I assu
477.
▲
by
n2d4
3y ago
It does work on other reflective actions, parent is just wrong; in the paper, they specifically run the experiment on a dataset of political affiliation over time
478.
▲
by
n2d4
3y ago
It's much more likely that T-Mobile sends a fine to Bandwidth (who then just forwards it to the customer). T-Mobile can't just terminate business with Bandwidth along with all of their genuine customers, so a fine encourages them
479.
▲
by
n2d4
3y ago
Besides what the sibling comment said, what's most interesting (imo) is that you can manipulate the vectors like that. The fact that you can average the vectors for January and March, and get better results for February, is pretty surp
480.
▲
by
n2d4
3y ago
Kind of. You still need some data from the "future" to extrapolate it: In the paper, they take an LLM finetuned on 2015 political affiliation data, and add to it the difference between 2020 and 2015 Twitter data, and show that the
More ›