Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ptx
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
51 ms
·
841.
▲
by
ptx
5y ago
So the "dotnet" command is only in the SDK, not in the separately downloadable Runtime? Does the Runtime have some other command to launch an executable? Edit: Actually, the ".NET Runtime 6.0.4" [1] (not the SDK) definit
842.
▲
by
ptx
5y ago
Ah, yes, my mistake. Although PowerShell sends its own telemetry, the additional telemetry from the .NET platform is only sent when you use the dotnet command [1] and, as a special case, not when you very carefully invoke it only "in
843.
▲
by
ptx
5y ago
PowerShell "sends basic telemetry data to Microsoft [...] about the host running PowerShell, and information about how PowerShell is used" [1]. And since it relies on .NET, that also requires its own separate opt-out for its telem
844.
▲
by
ptx
5y ago
I see, thanks for clarifying. My reply was in reference to the "benefits of using a session over the raw password" and HTTP basic authentication more generally, so if Lenovo are using sessions it doesn't apply in this particu
845.
▲
by
ptx
5y ago
Everything is always* scoped to the entire function in Python. Perhaps that's not always ideal, but at least the rule is simple. * Well, not variables in generator expressions. There might be a few other exceptions.
846.
▲
by
ptx
5y ago
If you're sending the password in plaintext with every request and using it for authentication (e.g. using HTTP basic authentication) you're essentially logging in with every request, so you will have to hash the password in order
847.
▲
by
ptx
5y ago
Performance would be another benefit, wouldn't it? Password hashing algorithms are deliberately slow, so doing it for every request adds some overhead compared to doing it once and establishing a session ID. (Assuming that the password
848.
▲
by
ptx
5y ago
Azul published updated packages yesterday, including for some older non-LTS Java versions: https://www.azul.com/downloads/?package=jdk#download-openjdk
849.
▲
by
ptx
5y ago
Apparently you have to get a new CPU to fix this Java vulnerability, or alternatively a new PSU. (That is to say: a Critical Patch Update or a Patch Set Update . Did they really have to overload these TLAs?)
850.
▲
by
ptx
5y ago
What about when there's some environment-specific (or otherwise problematic) dependency that you need to mock because it can't be imported where you want to run the unit tests? Patching it afterwards doesn't work when the imp
851.
▲
by
ptx
5y ago
Hmm, perhaps there is no such thing as a constructor in Python then? As the documentation says, "__new__() and __init__() work together in constructing objects". In Java's constructors you already have access to the instance
852.
▲
by
ptx
5y ago
At the risk of showing my ignorance... what makes Python's __init__ fundamentally different from Java's constructors? The latter also has access to the "this" reference with some of its state initialized and some not.
853.
▲
by
ptx
5y ago
> No, that's not true. Which part is not true? It all looks correct to me.
854.
▲
What's New in Kotlin 1.6.20
(kotlinlang.org)
19 points
by
ptx
5y ago
|
5 comments
855.
▲
by
ptx
5y ago
And if you build from inside IntelliJ, I think it already does essentially the same thing (unless you tell it not to) by importing the Maven project into its internal build system and using a compiler daemon: https://www.jetbrain
856.
▲
by
ptx
5y ago
> having your build logic written in Kotlin seems like it is the right thing to do Yes, in the abstract it does, but the but way Gradle actually does that (evaluating different parts of the program in different special and magical ways
857.
▲
by
ptx
5y ago
Let's say we have a list of strings and want to filter for those starting with "a". In Kotlin, we can use an extension function defined on the standard Java ArrayList object: myStringList.filter { it.startsWith("a&qu
858.
▲
by
ptx
5y ago
Kotlin/JS actually does work with Maven [1] – it's just all the MPP and Kotlin/Native stuff that is heavily Gradle-focused. I hope they eventually get to updating the Maven plugins once the multiplatform features stabilize. [
859.
▲
by
ptx
5y ago
But the "proprietary crap" part is where they've implemented all of the Python support, among other things, isn't it? And last time I looked the license prohibited using Microsoft's proprietary plugins with VS Codiu
860.
▲
by
ptx
5y ago
> So much as suggesting you miss going to the office or seeing coworkers in person is met with an incredible amount of vitriol. This might be because some of those of us who want WFH perceive this as, in practice, carrying the (uninten
861.
▲
by
ptx
5y ago
The functionality in the msilib module is somewhat low-level anyway (it basically just opens the database for you and leaves the arcane incantations required for doing anything as an exercise for the reader) so it probably wouldn't be
862.
▲
by
ptx
5y ago
> A lean and mean standard library benefits platforms with limited resources like devices with just a few hundred kilobyte of storage (e.g. BBC Micro:bit). It probably would, but the standard library is never going to be reduced to tha
863.
▲
by
ptx
5y ago
But does "it won't work" mean "don't try this in your app" or does it mean that the system can be expected to safely run arbitrary untrusted code? The documentation makes it sound like it's primarily inten
864.
▲
by
ptx
5y ago
Is this sandbox intended as a security feature? According to the Redis documentation [1], "The sandbox attempts to prevent accidental misuse [...] Scripts should never [...] attempt to perform any other system call other than those sup
865.
▲
by
ptx
5y ago
Maybe upstream shouldn't make their security measures so fragile that everyone downstream has to resign themselves to not touching anything. Open source software is supposed to be modified and adapted. Is this Lua sandboxing really a g
866.
▲
by
ptx
5y ago
> I want to hear what the Russian people are being told Me too, but I don't think the Russian people are the main audience for the English, Spanish and French versions of RT. We'll have to rely on translations, from other sou
867.
▲
by
ptx
5y ago
Which section are you referring to? The one that says "Coding errors and hacks are common in DeFi"? You said that the contract, i.e. the software, is immutable. This means that it can't be patched. If it can be patched it
868.
▲
by
ptx
5y ago
> And I wouldn't source script from a 3rd party anyway, I never saw the security tradeoff as worth it. Doesn't subresource integrity [1], i.e. specifying the expected hash of the script, solve those security issues? Unless yo
869.
▲
by
ptx
5y ago
So they must have solved the problem of writing completely bug-free software then? Otherwise leaving your money with an unpatchable service seems like a really bad idea.
870.
▲
by
ptx
5y ago
> Most codecs sacrifice transparency to reach a bitrate and this one does the opposite. That's what LAME's presets and the Ogg Vorbis quality settings do as well, isn't it?
More ›