• 0 Posts
  • 42 Comments
Joined 1 year ago
cake
Cake day: August 3rd, 2023

help-circle

  • CheezyWeezle@lemmy.worldtoProgrammer Humor@lemmy.mlGender.js
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    11 months ago

    Kind of. With hoisting, the compiler/interpreter will find variable declarations and execute them before executing the rest of the code. Hoisting leaves the variables as undefined until the code assigning the value to the variable is executed. Hoisting does not initialize the variables.

    For example:

    console.log(foo);
    var foo;
    //Expected output: console logs ‘null’

    foo = ‘bar’;
    console.log(foo);
    var foo;
    //Expected output: console logs ‘bar’

    console.log(foo === undefined);
    var foo;
    //Expected output: console logs ‘true’

    This means you can essentially write your code with variable declarations at the end, but it will still be executed as though the declarations were at the beginning. Your initializations and value assignments will still be executed as normal.

    This is a feature that you should probably avoid because I honestly cannot think of any good use case for it that won’t end up causing confusion, but it is important to understand that every variable within your scope will be declared at the beginning of execution regardless of where it is written within your code.



  • Maybe you should go read the article and actually read my comment. The article literally agrees with everything I said within the first few paragraphs. Negative temperatures do not and cannot exist under the classical definition, but the overall state of a system can reach a configuration that behaves like a negative temperature would, yet this is achieved by raising the temperature above what would tend towards infinity. Once again, it can be useful to represent certain configurations of systems of matter as a negative temperature with added context, and that’s why negative temperatures are a thing in science. It’s also why there are things like the summation of all natural numbers (1+2+3+4+…) being equal to -1/12. If you actually add up the natural numbers you get infinity, but ignoring that can yield useful results.

    You are also absolutely wrong about temperature being dependent on all energy. Temperature is literally defined as the measurement of kinetic energy in a system. Are you actually suggesting that if I put an apple on an elevator, it’s temperature is going to be increased when I send it up? Or that if I inject that apple with cold diesel fuel it will heat up? Those things would increase the energy of the apple, but not increase the kinetic energy and therefore the temperature does not rise.


  • What makes you say that isn’t what an absolute scale is? It definitely is what an absolute scale is. For example, distance is measured on an absolute scale. Negative ten meters would be equal to positive ten meters. In the classic definition of temperature measuring the total kinetic energy of matter, a negative temperature would be equivalent to a positive temperature, as it is measuring how much the particles are moving. Similar to velocity (also an absolute scale), if a particle is moving at a particular speed, X, then moving at that same speed backwards would be -X, but it is still the same speed.

    Negative temperatures are used to express something different from the classic definition of temperature, because the particles are not doing less than zero movement. Once a particle reaches absolute zero, it cannot move any less, but it can still have other properties that are directly tied to temperature change. Therefore, if purely expressing the classic definition of temperature, a negative temperature cannot exist, so any negative temperature would necessarily have to be equivalent to the same positive temperature. Of course, in any actual scientific conversation, the classic definition of temperature would be understood to be inadequate.




  • You may know the difference between a DAC and Amp, but you clearly don’t understand what I’m trying to say. I’m saying that a DAC doesn’t have its own power output. It literally takes a digital signal, and converts it to analog. In order for it to add any power to the signal, it needs to include an amplifier. Otherwise, the signal will always be a little bit weaker due to the power loss from traveling through the DAC. Most DAC units have at least a weak amplifier for this reason, but there are some units that are just a DAC. And the Amp part isn’t going to be controlling the digital volume, i.e. changing the system volume on your device. It will operate on its own volume control, so regardless of how limited the output is from your phone, it will still be made louder as it amplifies the volume independently of the phone. A unit that is just a DAC doesn’t have any way to amplify the signal it receives, so it will never be able to make it louder.

    You said explicitly that the android system will limit the output of any DAC, but that is wrong on multiple counts. The android system will not limit the output of a DAC because a DAC itself just 1:1 outputs an analog signal converted from a digital source so there is nothing to limit. The android system will also not limit the output from an Amplifier because it literally is not capable of that. That’s like saying your water faucet can limit how hot your water can get when you boil it on the stove. An Amp increases the power of the signal after it has already left the phone.



  • The manifest (at least how I am using the term) is whatever metadata a file has, and the format and location of this metadata can differ between operating systems. Usually the manifest is generated by the operating system based off of header data from the file itself, and details about the file that the operating system can deduce, such as file size, origin, location, file type, etc. In Windows you can view this info by right clicking/opening the context menu on any file and selecting “Properties”, on macOS by opening the context menu and selecting “Get Info”, and on other OSes such as linux/freeBSD it will be something similar.

    There are other usages for “manifest” depending on the context, for example a manifest.xml would be something a developer would include with an android app that has configuration settings and properties for the app.





  • Yeah I’m guessing this is a false positive based on heuristic analysis, i.e. the TOR program has a lot of the same behaviors as malicious programs. Of course it is more accurate to say that the malicious programs are copying TOR behavior or just straight using TOR code, whatever the case may be.

    My main issue is that it kind of shows a lack of due diligence. I assume the official TOR binaries are signed, so the official TOR binaries should be exempted from these heuristic positives. If the binaries are unsigned/have no valid certificates, then I can totally understand the false positive. At that point, the user should know they are installing software that cannot be automatically verified as being safe, and antivirus should never assume that something is safe otherwise. Like you said, for typical users this should be the expected behavior. Users can always undo Windows Defender actions and add exemptions.


  • That’s only applicable when someone is altering a coin for fraudulent purposes, such as changing a coin to appear as a different denomination, or melting down coins for their metal. Those acts are considered to be defrauding the United States. Defacing currency in a way that is not altering the denomination or attempting to defraud in some way is not punishable.