Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ben509
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
98 ms
·
811.
▲
by
ben509
7y ago
Pipenv's dependency resolution doesn't handle backtracking[1]. I've tried similar configurations with poetry and it doesn't seem to have a problem with them. [1]: https://github.com/pypa/pipenv/
812.
▲
by
ben509
7y ago
> These conventional security tools are designed to defend the digital perimeter – an antiquated strategy given today’s borderless networks. So perimeters are antiquated. Yet, in this case, a perimeter was not adequately enforced and was
813.
▲
by
ben509
7y ago
> Americans are over consuming food Overconsumption is generally less than 10% of their caloric needs, so they can't just drop a large source of nutrition.
814.
▲
by
ben509
7y ago
I think that's a fair point; fwiw I was just trying to clarify the article.
815.
▲
by
ben509
7y ago
I want to like jq, and for doing a simple lookup it's great, but I find when I try to do something complicated the syntax just doesn't click.
816.
▲
by
ben509
7y ago
You can use Automator to create a service with a shell script action; just pick Quick Action, the rest should be pretty obvious.
817.
▲
by
ben509
7y ago
It's converting numbers to floats and deleting additional precision. There are a few features that can cut out a ton of unnecessary whitespace, like keeping short lists and maps on a single line, and keeping singleton list brackets tig
818.
▲
by
ben509
7y ago
In CPython, a list comprehension looks like this internally: dis.dis(lambda y: [x + 1 for x in y]) 1 0 LOAD_CONST 1 (<code object <listcomp> at 0x106f441e0, file "<ipython-input-2-1f82f6afa2d
819.
▲
by
ben509
7y ago
The article argues the information collecting people agree to isn't evil. It then goes on to describe a whole other set of activities and their consequences, but doesn't characterize that one way or another. I don't need the
820.
▲
by
ben509
7y ago
> These people have significantly different mind and way of using products (especially tech products), than mass market. I think the point the article is trying to make is the high-expectation customers have or quickly find a way that de
821.
▲
by
ben509
7y ago
> With async communication, you can't. Not with email, but there's no reason in principle an async communication system can't do that.
822.
▲
by
ben509
7y ago
This is the reason whiteboarding gets a lot of hate. It's really a great way to get insight into how people approach problems and how fluent they are in a subject. And if they get something wrong, but they thought it through, that'
823.
▲
by
ben509
7y ago
I worked at AWS and interviewed SDE candidates, and thus had to enter updates into the system that manages the whole hiring process. They have interview notes going back to the company's founding. (FWIW, we could only view prior notes
824.
▲
by
ben509
7y ago
To Catholics, as with all Christians, God is Jesus Christ.[1] The Islamic view is that Jesus of Nazareth was a prophet.[2][3] (The audio answer is a bit long, but quite good.) The argument that Allah is the same as the Father in the Christi
825.
▲
by
ben509
7y ago
> You'd need to pin all transitive dependencies as well and cache the venv. I think to do this stuff, you need hooks in Jupyter to setup and teardown the venv before it runs the kernel. (And generally Jupyter would want to clean up
826.
▲
by
ben509
7y ago
I could see a case for it if you were finding line endings in bytes mode, and then casting a buffer to a UTF-8 string. Then you'd benefit from a reverse iterator, which UTF-8 supports just fine. I imagine the main reason people would u
827.
▲
by
ben509
7y ago
> I can see why data science types who use / produce a lot of (typically throwaway) Python code might be enamored with this I think that's honestly its killer app. I don't do data science, but I often use jupyter to write
828.
▲
by
ben509
7y ago
Any automated detection scheme can be thwarted by encryption as trivial as ROT13. You could leave a comment in README: "To decrypt, just run 'l33t-xor-crypt --key bob --file hacked-data.txt'" and Github's scanner is
829.
▲
by
ben509
7y ago
That's been my experience, I've done it but never anything that a scanning or tokenizing algorithm couldn't do. So being able to iterate over characters is important, but constant time access to a specific character seems ve
830.
▲
by
ben509
7y ago
Any dynamic language, as all the symbols are strings.
831.
▲
by
ben509
7y ago
Also, there is a QL that treats all values as sets, EdgeQL[1], and they get null for free. [1]: https://edgedb.com/docs/edgeql/overview#everything-is-a-set
832.
▲
by
ben509
7y ago
Yup, you get it for free if you normalize to 6th normal form. As you indicated, it's not a great idea in SQL DBMS's. https://en.wikipedia.org/wiki/Sixth_normal_form
833.
▲
by
ben509
7y ago
It's a trap! You think it's safer to return null than raise an exception. After all, the caller just needs to check. Of course, sometimes they don't. So if you're lucky it blows up in some completely unrelated part of
834.
▲
by
ben509
7y ago
They later mention Bottom and get into some discussion of a null value vs. an empty type. Interestingly, Haskell also has Data.Void.
835.
▲
by
ben509
7y ago
Maybe "it's natural" would have been more accurate than "it's quite common"; I was trying to word it to avoid it being read as claiming Google broadly is elitist. But, no, I can't cite a study, it's a
836.
▲
by
ben509
7y ago
The "do what makes sense" is limited because you have to ask questions to ascertain what makes sense. Some questions are easy to answer, but many questions can only be answered by doing a thing that takes work. And Scrum gives you
837.
▲
by
ben509
7y ago
When human beings are part of an association that is verifiably elite, it is quite common for them to have elitist attitudes.
838.
▲
by
ben509
7y ago
Yes, those are the same behavior. Both of them "may" accept it and "may" reject it, and "may" includes both "always" and "never". It is correct to the letter of LSP, but not the spirit of it
839.
▲
by
ben509
7y ago
> The only truly unforgiveable one is UnsupportedOperationException. The guy who wrote the collections API for Java didn't know the first thing about the Liskov Substitution Principle, and gave the world an implementation that viola
840.
▲
by
ben509
7y ago
> Some people truly believe in the LPs. Some people truly believe they can be used to get ahead and justify whatever actions they want to do. They can be the same people. There's an incoherence in any ethical system based on a set o
More ›