|
Phantom Planet - "Quarantine 20/20" - YouTube
[Verse 1]
Behind the glass I watched the world
From cracks the blinds make when they're drawn
I watched the world for years this way
And that catches us up to this moment today
[Chorus]
Quarantine
The rock and the hard place I'm between
Quarantine
Quarantine
Quarantine
[Verse 2]
Oh, and it was you I did this for
I put the deadbolt on the door
Understand, I can't see you now
Realize it's not to keep me in
But to keep all the sickies out
[Chorus]
Quarantine
Such an ugly word for what I mean
Quarantine
Quarantine
Quarantine
Oh
[Bridge]
I heard you let some little flea
Give you that contagious disease
You let him climb right on you two
And it's been plaguing me, too
La-la-la-la, la-la-la-la
La-la-la-la, la-la-la-la
Realize it's not to keep me in
But to keep all the sickies out
[Chorus]
Quarantine
A rock and a hard place I'm between
Quarantine
Quarantine
Quarantine
Quarantine
Quarantine
Quarantine
Quarantine
Oh
Caveat Emptor.
"Progress doesn't come from early risers – progress is made by lazy men looking for easier ways to do things." Lazarus Long
|
|
|
|
|
The assignment is to write a function that returns the number of prime numbers that exist up to and including a given number. The solution is below but I'm having trouble interpreting it. The part I don't understand is the 'for y in range(3,x,2)' loop. The first time it runs, x = 3 so I see it as 'range(3,3,2) but this doesn't make sense because the middle number represents up to but not including. So a range of 3-2 doesn't make sense. Also why is 'else:' not lined up with 'if'?
def count_primes2(num):
primes = [2]
x = 3
if num < 2:
return 0
while x <= num:
for y in primes: # use the primes list!
if x%y == 0:
x += 2
break
else:
primes.append(x)
x += 2
print(primes)
return len(primes)
|
|
|
|
|
No snakes in the lounge!
There are ophidiophobics here, and they will not be polite to you.
The first thing you need to do, is: learn to read the red writing at the top of the page. Then post here: Ask a Question[^]
You will not make yourself at all popular if you just decide that rules do not apply to you - and when you want free help from people annoying them isn't a good idea.
The first thing I'd do is dump the Snake course, and find a real language to learn ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Quote: The part I don't understand is the 'for y in range(3,x,2)' loop. Do you realize there is no 'range' in the posted code?
|
|
|
|
|
1. Wrong forum, try "Questions".
2. Check the red text at the top of this page.
3. Learn a proper language, dup the snake.
4. Get a haircut! ...in a few weeks, after COVID-19.
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
After a four-year hiatus I have decided I want to play music again and I have joined a band. This is probably very bad timing since most of the places we will likely play have been ordered to shut down. I guess we will have plenty of time to rehearse.
Anyway, tonight is the first rehearsal following the (successful) audition. A little while ago the guitar player sent me an e-mail about learning another song that wasn't on the list. It's by The Police and it's called, "Don't Stand So Close To Me." For these days, I can't think of a more topical song than that.
-edit- it has morphed into an extended medley and maybe a whole set. We'll also play "Keep Your Hands To Yourself" by the Georgia Satellites.
Can you think of any other songs on the topic?
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
modified 20-Mar-20 0:05am.
|
|
|
|
|
I remember this one, I had the 45 rpm record.
Congrats What instrument do you play?
"Five fruits and vegetables a day? What a joke!
Personally, after the third watermelon, I'm full."
|
|
|
|
|
I play the bass primarily, and guitar and keys also. We switch around a bit. It's a lot of fun.
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
modified 20-Mar-20 1:46am.
|
|
|
|
|
Ditto.
And, coincidentally, I just ordered new strings (Rotosound flat wound), some blank nuts, and a maintenance kit for guitars. The bass (Musima Action 2001) has been sitting there since the DDR dissolved.
And I tore apart my amp trying to track down the intermittent no-sound problem. I *think* it's one of the pots.
|
|
|
|
|
phil.o wrote: What instrument do you play?
I used to play the chainsaw in a band.
It opened a lot of doors for me.
|
|
|
|
|
I used to play the triangle in a death-core band; but I quit, that was exhausting.
"Five fruits and vegetables a day? What a joke!
Personally, after the third watermelon, I'm full."
|
|
|
|
|
|
|
The State Of Things - Reverend And The Makers
|
|
|
|
|
"I can feel it coming in the air tonight" (Phil Collins?)
"Hold my hand and I'll kiss you. Tomorrow I'll miss you" (Beatles)
|
|
|
|
|
|
I Am a Rock - YouTube[^] - Simon and Garfunkle
Quote: Hiding in my room, safe within my womb
I touch no one and no one touches me
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
|
Appropriate. Hopefully it is not prophetic.
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
|
|
|
|
|
I posted a request earlier today regarding whether I should use Github or Dropbox for my current project and got some good feedback. I think I should use Github. Can I find a basic article on how to use Github from Visual Studio without Azure or some other stuff I don't use ? NO. I need a simple howto ( assuming nothing ) of how to create a HW project and push / fork / branch / share / pull and a myriad of other terms to GH from VS. Please help
"We can't stop here - this is bat country" - Hunter S Thompson - RIP
|
|
|
|
|
I found GitHub's online documentation to be fairly good. I have absolutely no patience for learning these kinds of systems, because I'd rather write code. But it didn't take long to get used to GitHub. Just jump in and you'll probably be OK. Sorry, but that's the best advice I can offer.
|
|
|
|
|
I prefer to use git command line, but here's the VS extension.
The best resource for git info in general is Git-SCM.
|
|
|
|
|
The command line?! You're a much better man than me. I use the VS extension and would only research the command line if I was trying to do something that didn't appear to be supported within the extension or when using GitHub in the browser.
|
|
|
|
|
I agree
Real programmers use butterflies
|
|
|
|
|
It's pretty easy to be honest and there are a lot of things you can do that aren't supported in any Git software I've used (GitHub Desktop or VS) like rebase and stash.
Most of what is commonly done can be done using add, commit, merge, branch, status, push, and pull. Not even any complicated options or multiple parameters. To each their own though
EDIT: Viewing branch histories is usually easier in graphical interfaces to be fair, but you can view that on GitHub or use git log --oneline --all --graph --decorate from the command line. I have an alias for it so I don't have to remember all that. Not as pretty as GitHub though.
modified 19-Mar-20 23:28pm.
|
|
|
|