Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Merad
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
331.
▲
by
Merad
4y ago
What type of workflow do you use where you regularly want to commit only some of your changes to a file? I honestly don't think I've ever had that need.
332.
▲
by
Merad
4y ago
I think the accuracy should be fine, cell phones typically have a GPS accuracy of 5-10 m. The problem is that you won't be able to rely on it. You probably won't have any GPS signal at all in an underground parking garage, and e
333.
▲
by
Merad
4y ago
Flying a small plane like this really isn't all that hard as long as a) the weather is good, b) the plane itself is working normally, and c) you have a basic understanding of how the controls work. When people are learning to fly for
334.
▲
by
Merad
4y ago
Typically you want concurrency checks to be based on something managed by the database (rowversion and xmin being the go to options) rather than timestamps, because timestamps can lie. IME at least, last modified timestamps are usually mor
335.
▲
by
Merad
4y ago
Nope, they're very different things. Database transactions protect you against data corruption if two commands try to modify the same row at the same time. Concurrency checks (which are arguably poorly named) prevent changes from bei
336.
▲
by
Merad
4y ago
XML is too flexible for its own good. It's not hard to come up with a simple XML schema for basic data that's functionally equivalent to json, but there are probably a dozen different ways that you could structure the schema to a
337.
▲
by
Merad
4y ago
That's why I tend to prefer using PUT for idempotent updates... at least the semantics are (should be?) a little more clear. But if you really want to avoid users stomping on each other's changes you basically have to implement c
338.
▲
by
Merad
4y ago
4-5 years ago (when the popularity of node was skyrocketing but es6 was still relatively new) I remember some people arguing passionately that it was good to maximize code reuse, i.e. better to pull in a package with one utility than to wri
339.
▲
by
Merad
4y ago
Good callout! Using verbiage like "sponsoredby" or "sponsorof" in the url could help clarify the relationship and make it read more literally, i.e. to answer "does marcus sponsor marc" you could use meta/
340.
▲
by
Merad
4y ago
I'm approaching 40 so I don't really disagree with you, but I do find it fascinating in its own way. I tried TikTok a couple years ago and deleted it after a week. I could tell that it was massaging my brain in the right ways to
341.
▲
by
Merad
4y ago
Like many things, it might be simple and intuitive _once you already know how it works_. Looking at it for the first time, my reaction was similar that of the GP. My $0.02: if the question is "using meta storage, does user marcus spo
342.
▲
by
Merad
4y ago
I mean no offense, but this is insane. I have a cat that I love like it's my child, so I sympathize with where you're coming from, but come on. You're basically saying that people with legitimate medical conditions caused by
343.
▲
by
Merad
4y ago
I'd be willing to bet the "hit the countermeasures immediately" reflex was because they were landing. Low altitude, low speed, no ability to maneuver. If somebody was shooting at you in that situation the missile would be on
344.
▲
by
Merad
4y ago
Unless you have supercruise capability (which only four fighters in the world have) flying supersonic consumes and enormous amount of fuel, so flying any distance at supersonic speeds pretty much requires aerial refueling. IIRC you also nee
345.
▲
by
Merad
4y ago
Where are you getting the 2.5m figure from? The article you linked doesn't give a figure as far as I can see, but it says sediments have been found 4m above _current_ tide levels and that water went 29km inland in Scotland. Both of th
346.
▲
by
Merad
4y ago
He has told people almost that exact thing. I recall an interview from about a decade ago where some asked RMS a question similar to the one the GP mentions, but their phrasing was more like, "I need to make money from software to feed
347.
▲
by
Merad
5y ago
> Battery electric mowers can run forever with a single spare battery because the batteries charge faster than they're drained. The problem with electric tools is that the battery life heavily depends what you're doing. I als
348.
▲
by
Merad
5y ago
Neat idea, but it seems to me like a critical part of making a new language of any kind is documenting it so that others can learn it and use it. On that note, can anyone explain the syntax that seems to use pipes in a function declaration
349.
▲
by
Merad
5y ago
The article contradicts its own title. This isn't a new route, the same polar route was used 35 years ago up until the cold war ended and they were allowed to overfly Russian airspace.
350.
▲
by
Merad
5y ago
> But if an attacker steals a token, they can make that same API call and charge a card to pay themselves. I can't speak for every payments product but in the one I work with tokenized cards are tied to one merchant. A compromised t
351.
▲
by
Merad
5y ago
In the US contracts aren't very common for average employees. I assume that executives and maybe upper management have contracts, but not the peons. Most of the US also has at-will employment so they don't _need_ a reason to fir
352.
▲
by
Merad
5y ago
We use a tool called AutoFixture to automatically generate objects being tested. It will automatically mock constructor dependencies, so a change like you described doesn't require any test changes unless the new mock requires some s
353.
▲
by
Merad
5y ago
Lazy loading has been disabled by default since EF Core came out.
354.
▲
by
Merad
5y ago
Whoever wrote that code either doesn't know the framework or perhaps is doing a custom implementation for some performance optimization. All you need to do to return a plain text response from an action method is `return Content("
355.
▲
by
Merad
5y ago
Kestrel is the web server that Asp.Net Core runs on by default. It's part of the application. Building an app that has the runtime bundled with it (no need to install .Net) or a single file executable is just a matter of setting a few
356.
▲
by
Merad
5y ago
No doubt it can vary wildly depending on your life circumstances. Personally most of my hobbies are sedentary (reading, gaming, plastic models) and I don't have kids or pets that require me to be active in some way. A normal day for me
357.
▲
by
Merad
5y ago
> walking just ~8k steps per day You kind of gloss over this, but 8k steps is around 3 miles of walking for the average person. You might be able to get that "naturally" if you live in an urban area and go out on foot every day
358.
▲
by
Merad
5y ago
I can't remember details but I'm positive I've read about such a capability being developed in the 70s or 80s. I think it was an airborne radar system similar to AWACS except looking at the ground, combined with computer syst
359.
▲
by
Merad
5y ago
You're missing my point because you're focused on the database query. I'm talking about the web application framework. If this was written in Asp.Net, for example, the password field would be declared as a string and the da
360.
▲
by
Merad
5y ago
If you use any strongly typed language with a halfway decent framework you _don't_ have to think about this because the request will automatically be validated and rejected for invalid input before your code is ever hit.
More ›