Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Diggsey
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
31 ms
·
211.
▲
by
Diggsey
5y ago
If someone drops their wallet by accident, and you take it, you are still stealing. The ultimate "source of truth" for payments is not the payment system, but the law, so if a payment was made in error, then the receiver has a leg
212.
▲
by
Diggsey
5y ago
The fact that to execute the malware you need to be able to see it. If there's something that's visible whose job is to execute the payload hidden in the SSD, then that's the part that could be detected by AV software. That s
213.
▲
by
Diggsey
5y ago
Injecting code into another process is well supported :P 1) VirtualAllocEx some memory to hold the path to a DLL you want to inject. 2) WriteProcessMemory to write the path to that memory. 3) CreateRemoteThread passing in the address of `Lo
214.
▲
by
Diggsey
5y ago
I thought it would be a fun challenge to do Advent of Code without actually writing any code! I imposed a rule of no Apps Script (cell formulas only). Fair warning: some of the linked spreadsheets are very large, and may make your browser v
215.
▲
Show HN: Advent of Code 2021 in Google Sheets
(docs.google.com)
2 points
by
Diggsey
5y ago
|
1 comments
216.
▲
by
Diggsey
5y ago
Except microsoft actually listened to feedback before rolling this out everywhere: https://docs.microsoft.com/en-us/uwp/api/windows.graphics.ca... Plus there's almost certainly some registry key you coul
217.
▲
by
Diggsey
5y ago
That's a pretty clear line... On the one side, even if the US government is not adequately regulating private companies today, it could begin doing so tomorrow, or if it's a question of legality, any individual or group could brin
218.
▲
by
Diggsey
5y ago
I use DDG by default, but sadly it's quite noticeably worse than Google, so I end up having to override it frequently :(
219.
▲
by
Diggsey
5y ago
- Code is not prose. It's not read like a book so it's not clear that an "ideal measure for continuous text" is at all relevant. - Most lines are short even if the limit is more than 80 characters, so you're unlikel
220.
▲
by
Diggsey
5y ago
There are two "components" to what used to be `msvcrt.lib`: - The C runtime library (now `ucrt.lib` AKA the universal C runtime) - The compiler runtime (now `vcruntime.lib`) The former has a stable API, but the latter doesn't
221.
▲
by
Diggsey
5y ago
That's not a great reason to use strings to identify classes though... Why not just give `Impls` a special attribute: class ExampleImpl(Foo, metaclass=Impl): target = Bar Or do the entire thing via a decorator:
222.
▲
by
Diggsey
5y ago
> it has really poor energy/l Compared to fuel yes. Compared to batteries, even at relatively low pressures, I think hydrogen still wins even by volume, and at higher pressures it's an order of magnitude difference. > In Eur
223.
▲
by
Diggsey
5y ago
Most of the problems with hydrogen for cars comes from how you produce that hydrogen. Obviously, producing hydrogen from methane to power cars is a stupid idea if your goal is to reduce greenhouse gases. However, pure electric cars are only
224.
▲
by
Diggsey
5y ago
To be clear, even without `--locked`, cargo will use the dependencies from the lockfile, as long as the lockfile is not out of date compared to Cargo.toml. However, for development, you normally want cargo to update the lockfile after you c
225.
▲
by
Diggsey
5y ago
> As an example, the proof-of-concept proc macro attack from the article could be addressed by running proc macros in a wasm sandbox. I know there’s been some exploratory work done towards that. Sure, you can (and we absolutely should) s
226.
▲
by
Diggsey
5y ago
There's going to be a risk to running someone else's code. There are two factors here: 1) Do I trust the code I think I'm running. 2) Am I actually running the code I think I'm running. With (1) there's not really a
227.
▲
by
Diggsey
5y ago
> Since virtually every value is going to be different, indexing and searching on that field is (almost) no better than having no index on the datetime field at all. Do you mean exact equality is rarely what you want because most of the
228.
▲
by
Diggsey
5y ago
That's absolutely micromanaging and negative. The goal of school isn't just to pass the tests. If a kid fails to revise for a test, but it doesn't matter because their parent will just look up the schedule and force them to r
229.
▲
by
Diggsey
5y ago
> They’re pretty much seen as an anti-pattern by most people today That's a bold statement :)
230.
▲
by
Diggsey
5y ago
Spanner, CockroachDB and similar are really exciting, but the fact that none of them support stored procedures begs the question of whether it's inherently hard/impossible to do so in a distributed database, or whether that just h
231.
▲
by
Diggsey
5y ago
Also, it's not really the case that exceptions (when not thrown) are zero-cost in C++, and not because of the instruction cache or increase to static data size. The cost is that exception-throwing functions inhibit many of the optimiza
232.
▲
by
Diggsey
5y ago
The size limit makes a lot of sense when you look at the transaction model. When you write to FDB, none of the writes are even sent to the server until you attempt to commit the transaction, so this limit is actually a "maximum request
233.
▲
by
Diggsey
5y ago
pg_upgrade has a `link` option that when used reduces the time take to ~15 seconds. IMO, that counts as "near-zero downtime".
234.
▲
by
Diggsey
5y ago
The motivating example for this seems to be completely broken: --- Start a transaction BEGIN SAVEPOINT active_record_1 --- Look up the account SELECT * FROM credit_accounts WHERE customer_id = 1 --- Insert the acco
235.
▲
by
Diggsey
5y ago
Maybe things have improved a lot since I last tried VR, but the combination of low effective resolution and distortion from the fresnel lens (which also produces a kind of discretization effect similar to visible pixels) meant it was very u
236.
▲
by
Diggsey
5y ago
The Azure web console is light-years ahead of GCP's console, it's so much nicer to use. GCP's console is just stupid though. It takes so long to load, and instead of just making it faster, they made it load in incremental
237.
▲
by
Diggsey
5y ago
Deleting a database is probably a bad example, but my point still stands: even if you are not trasferring code back and forth, runtime state is enough to be a problem. What if your runtime state includes an `is_authorized` flag or similar
238.
▲
by
Diggsey
5y ago
> Imagine a programming language runtime whose runtime state (i.e. lexical scope) is partially broadcast over network as it happens, kind of like a remote debugger. This sounds absolutely terrifying from a security perspective... What&#x
239.
▲
by
Diggsey
5y ago
Just going to leave this here... https://onlinereadfreenovel.com/piers-anthony/47321-in_the_b...
240.
▲
by
Diggsey
5y ago
Not that much more complicated - but perhaps that's because you're over-simplifying the case of a household spending more than it earns. As with a household, when spending exceeds income the government has to take out a loan (usua
More ›