Recent content by NotASmurf

  1. N

    Using delicate 5V IC to toggle 12V device with MOSFET, Diode, resistor

    technically 40ma on both, but in practice runs 80ma most of the time
  2. N

    Using delicate 5V IC to toggle 12V device with MOSFET, Diode, resistor

    It is an arduino uno, and yes to the emitter position
  3. N

    Using delicate 5V IC to toggle 12V device with MOSFET, Diode, resistor

    Hey all, I have a 5v IC that is triggered by a sensor to unlock the 12v lock, I am using a NPN transistor as a switch with the 5v VCC as the gate, I need it to sink back to the GND of the IC without blowing it, is this safe? If not what changes would you suggest, it has been years since I've had...
  4. N

    I Finding the Sun's Angle from Longitude, Latitude & Time/Date

    Same thing as you actually lol, solar panels, except I need to calculate savings given the roof size and geographic location. Not for paid work, just need to know if they're worth the cost within the first year. Each panel gives 425w at optimal efficiency, but wanted more accurate kwh per...
  5. N

    I Finding the Sun's Angle from Longitude, Latitude & Time/Date

    If you had your longitude/latitude, and the time/date, how could I go about working out the angle between your normal and the sun? At first I was doing a simplistic approach of assuming elliptical orbit in only two dimensions and that the Earth is a perfect sphere,Can I get a more accurate...
  6. N

    Explain this line "thread& operator = (const thread&) = delete;"

    here delete, thread, and const are obviously keywords, I saw this when the system libraries threw a breakpoint, not my code, I'm new at this and that line of code makes very little sense to me, afaik, (const thread&) should be a conversion operator, how can you set an operator to a statement...
  7. N

    Win32 globalhook keylogger, why are the number keys not consecutive?

    nope, if I type a, it prints 65, so that's fine (although it's weird that it uses uppercase notation for lowercase charecters), although left and right shift are `160 and 161 respectively. When it should be 15 in ascii.
  8. N

    Win32 globalhook keylogger, why are the number keys not consecutive?

    I'm using a globalhook into the keyboard for key capture, if I look up the ascii values for the keys 1-9, I see 48-57. Now the actual logger shows 480 491 502 513 524 535 546 557 568 Sure, maybe it's ascii, maybe its because they're not numpad keys, but regardless, why are the numbers not...
  9. N

    Numpy multidimensional array assigment unknown logic error

    https://stackoverflow.com/questions/56045860/numpy-multidimensional-array-assigment-unknown-logic-error/56047328#56047328 got answered here, but thanks for taking the time to reply, the array isn't defined by me, its returned from an opencv function.
  10. N

    Numpy multidimensional array assigment unknown logic error

    I'm confused as to why this bubble sort I'm implementing is setting _all_ items to one of the items (I have no idea which one as array is too big) the data type is of ... [[1128 1026 1192 1023]] [[ 771 195 858 196]] [[ 953 1799 955 1738]]] when I have an array of int, this same algorithm...
  11. N

    I Would these (unrealistic) conditions imply gravitons existed?

    You're 100% right, terribly phrased question on my part, I butchered physics like how engineers ruin math
  12. N

    I Would these (unrealistic) conditions imply gravitons existed?

    So quantum states collapse when observed, ie they are interacted with, if one had an uncharged massive particle, in a true vacuum (yes, this assumption is egregious, not your usual "ignore air resistance"), and the state of the aforementioned particle collapsed, would that imply gravitons did...
  13. N

    I Determine P(t = x) if % of sample drawn from gaussian > t

    Ok so I made a program that takes all possible 6 length (arbitrary number for now) sample subsets, this is a simplified example, where the distribution is linear. Now we notice that when t = 0 , 59.049% of the time 5/6 elements of the sample were bigger than t, when t = 1 20.48% of the time 3/6...
Back
Top