Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/30/20 in Posts

  1. The training point is about more than just "recertification" each year being only 5 hours. The US also badly fails up front in preparing cops for their jobs in the first place. https://work.chron.com/long-train-cop-21366.html https://www.theatlantic.com/international/archive/2020/06/america-police-violence-germany-georgia-britain/612820/ The rest of that 2nd article from The Atlantic also has good ideas on how to begin repairing our broken system.
    1 point
  2. Here is the spreadsheet. I have calculated enough iterative values for different values of lambda {2, (1+√5) ,4} and starting values {0.35, 0.40, 0.45.} It can be seen that lambda =2 quickly converges, lambda = 4 displays the famous 'frequency doubling between two values' and lambda = 4 results in a chaotically varying result. I have appended the spreadsheet for anyone who wants to play with it. chaos1.xls
    1 point
  3. Hey everyone, hope you are doing fine in these tumultuous times! Edit: I found my mistake: I used 'if' instead of 'elif', therefore the code executes: is r larger than 2, if not, ArrayB = Array (which is the original array of length 10). I have the following code, what I don't understand is that without the 'if r > 2:' part of the code, len(ArrayB) will be 20 in both cases (r =2) but with this piece of code, which is not running, len(ArrayB) becomes 10 (= losing False variables). I don't understand how why this piece of code affects the rest of my code, when r is not larger than 2? I am running python 3.8 in Pycharm r = 2 Array = [0,1,2,3,4,5,6,7,8,9] if r < 1: ArrayB = [1] * int(r*len(Array)) Const = len(Array)/len(ArrayB) for i in range(len(ArrayB)): ArrayB[i] = Array[int(i*Const)] if r > 1 and r <= 2 : ArrayB = [False]*int(r*len(Array)) for i in range(len(Array)): ArrayB[int(i*r)] = Array[i] print(len(ArrayB)) # First len(ArrayB) print(ArrayB) # First print(ArrayB) # if r > 2: #Uncomment this part and len(ArrayB) afterwards becomes 10 # print('r is bigger than 2') # ArrayB = [False] * int(r * len(Array)) # for i in range(len(Array)): # ArrayB[int(i*r)] = Array[i] else: ArrayB = Array print(len(ArrayB)) # Second len(ArrayB) print(ArrayB) # Second print(ArrayB) output with all code active: 20 [0, False, 1, False, 2, False, 3, False, 4, False, 5, False, 6, False, 7, False, 8, False, 9, False] 10 [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] output without if r >2: code: 20 [0, False, 1, False, 2, False, 3, False, 4, False, 5, False, 6, False, 7, False, 8, False, 9, False] 20 [0, False, 1, False, 2, False, 3, False, 4, False, 5, False, 6, False, 7, False, 8, False, 9, False Thank you for your time! Edit: problem found, if statements should be elif - Dagl
    1 point
  4. Hi Alex, I think the USA could learn something from the North European countries. Your proposals are very much in line with what I know of the police in the Netherlands, Switzerland, and probably also the Scandinavian countries. Try 'the norden - police' on Youtube (24 Minutes; the part about Prison might be interesting too).
    1 point
  5. That's the whole point of "defund the police" - they are not trained for many of the jobs they are being asked to do, and money would be better spent on people trained to do those jobs. And we run into problems when people trained in the use of guns are asked to do jobs where guns are way down on the list of solutions to the problem. (When all you have is a hammer, and all that). You use the money to hire people trained for these other tasks. That way, fewer police are needed. Your bit about specialization points to this. I was reading recently how this has already happened. Once upon a time police were summoned for medical emergencies, and transported people to the hospital. But police are not trained to deal with medical emergencies. When we replaced police and police cars with EMTs and ambulances, we got a better result. https://twitter.com/JamieFord/status/1272273637173637120 "Defund the police" is applying that same rationale to other aspects of what is now police work. Don't send untrained people with guns into situations where guns won't help, and might make it worse. Send people trained in that particular situation. (BTW, I do more than 5 hours of training per year as a federal employee. If police aren't doing more than 5 hours then that's a broken system)
    1 point
  6. Incandescent sources, like the filament in a light bulb, are very 'dirty'. The light they emit spans a range of wavelengths/frequencies, in a 'lopsided' Gaussian distribution, peaking at the wavelength/frequency characteristic of the temperature of the filament ( see black body radiation curves ). What you want is an emission which is characteristic of a specific energy difference, which will give only that specific energy ( frequency/wavelength ). LEDs are one such source, as they emit light at the characteristic energy of their band gap, and are readily sourced in differing colors. Lasers would be another source, as they emit light based on electron orbital transitions ( again a specific energy difference), but are a little harder to source.
    1 point
  7. I'd be embarrassed to admit how many hours i've wasted in the tub thinking about that one... (in my defence...never an hour at one time)
    1 point
  8. Everything copied and pasted. Thanks
    1 point
  9. The error is caused by an outdated Truffle and inconsistent Solidity version not returning the expected JSON result to putBalance. The tests themselves are not written in JavaScript. You are better off learning the latest versions of Truffle and Solidity . $ sudo apt-get update $ sudo apt-get install nodejs $ sudo apt-get install ethereum $ sudo apt-get install geth $ sudo npm install -g truffle $ mkdir MetaCoin $ cd MetaCoin $ truffle unbox metacoin //Open a seperate terminal and run $ cd MetaCoin $ testrpc //Back in the original terminal $ truffle test
    1 point
  10. The axion field rapidly runs over the potential barriers and eventually begins oscillations when sufficiently slowed down by friction. Credit: Co & Harigaya https://phys.org/news/2020-06-case-axion-dark-gains-traction.amp
    1 point
  11. Totally agree. +1. Nobody understood division by zero here, except you, @ahmet. Plus the question, has been satisfactorily answered, I think. Unless the OP has any further question. To me, end of story. Edit: Unless you have any further comments on how Gödel's theorem could imply that we can prove 2+2=5, in which case, I unrest my case. Edit 2: It seems the OP made a mistake in the title. They meant, I think, ¿Can't we prove (from Gödel's theorem) that 2+2=4?
    1 point
  12. This is a poorly worded argument. Come on, you can do better than this. Of course it EXISTS, it's here, it's a real thing, despite what you might think about its efficacy. Your argument is trivially proven false. Whether it should be taken seriously as a study is what you're really talking about. The fact is, MANY people have been helped by psychiatry. I can EASILY provide many citations supporting this argument. That some didn't get help doesn't mean it should be "dismantled". Would you dismantle Alcoholics Anonymous just because it doesn't work for some people?
    1 point
  13. His name is Jocko Willink (I spelled his last name wrong). Here is the video. The part about training starts at 2:30.
    0 points
  14. Newton (centuries ago) has 3 laws of Motion: LAWS - I say again: L A W S, which are incontrovertible. Darwin (more than a century ago) had a notion which is NOT a law of ANYTHING - meaning he was like my uncle who had a notion he could fly. Both of these dudes are DEAD! My uncle left a wife and four children. Darwin left confusion and hope amongst those who refute/doubt Creationism. Whether it was a God, gods, cottage cheese or a yield sign everything on Earth was created. The purpose: I have not the foggiest! Dogma? I give it little credibility as it is the creation of man
    -2 points
  15. One MUST understand that although "science" states that the human body contains +-60% that not a drop of water exists (other than in the bladder). Proof? Stick yourself ANYWHERE with a sharp object and record the amount of water that issues forth: ZERO. Blood is a semi-liquid (there are also semi-solids and semi-gases) as is spit or any other bodily fluid. Blood is a Creation which cannot be duplicated in the laboratory or explained by "science". The so-called "expert", Balwin uses a snail "heart" for an example. Snails do not have hearts - nor blood.
    -3 points
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.