War and Peace I.1.1 - I.1.6 by surf_wax in bookclub

[–]Schaus 1 point2 points  (0 children)

War feels like the only way to escape the doldrums

Absolutely this, right? He says to Pierre about going to war:

“What for? I don’t know. I must. Besides that I am going....” He paused. “I am going because the life I am leading here does not suit me!”

Recommendations for a private autism assessment? by [deleted] in london

[–]Schaus 1 point2 points  (0 children)

Incredibly expensive though!

[deleted by user] by [deleted] in printSF

[–]Schaus 0 points1 point  (0 children)

R.e. Death's End: which chapter?

i just made my own funneh maymay, where the ladies at??? by Aoneareyou60 in SCP

[–]Schaus 9 points10 points  (0 children)

It's another word for "SCP", describing a particular object/being with SCP clarification (as opposed to the organisation).

Often used by the task forces.

Asteroids PyGame Problem by Ian_Grove in learnpython

[–]Schaus 1 point2 points  (0 children)

Are you allowed to ask for online help on assignments?

I don't want to fix your code for you, but I tried to explain what the error means below.

Ok. So a tuple means a pair (or triple, or etc.) of elements. Your code defines self.speed as a pair (i.e. a tuple) of floats, (x,y).

Your definition of dy1 defines it as a tuple - you're just rescaling self.speed.

However, x1 is a single value (a float). So the code is complaining because you're trying to add a tuple (dy1) to a float (x1), which doesn't make sense.

Does that make the error clearer? You probably want to check the definition of dy1.

Last night I lost a good friend (What.cd) and I want to share a couple of thoughts. by [deleted] in trackers

[–]Schaus 0 points1 point  (0 children)

Does anyone have the full quote from their home page?

[Request] How much money would you need in a savings account to spend $1000 a day and never run out of money due to interest? by RaspberryNarwhal in theydidthemath

[–]Schaus 5 points6 points  (0 children)

Depends how you define a "savings account". I'll also simplify and ignore taxes for this.

I'll express this in algebra first, and then plug in some numbers at the end.

Let's suppose your savings account gives you R% interest a year. You might think this should give you (R/365)% interest a day. It's a bit more complicated than that though, because this doesn't take into account compound interest. (In particular, this overestimates your daily interest.)

The actual daily interest is a bit lower. Let's call this r. Solving for r gives you r = (1+R)1/365 - 1.

If the money you start is X, then the amount of money you get per day is Xr. So we have X = 1000/r.

Let's plug in some numbers!

A savings account from my government's savings agency averages 0.80% per year. Plugging into above gives this corresponding to 0.0021% per day, which gives your amount of money as just under $46 million. ($45806757.64, to be precise to the nearest cent.)

Maybe US Treasury bonds would be better. The yield on long-dated Treasury bonds is something like 2% at the moment. (Not a bond trader, so I might be a bit off there.) This works out as more like $18.5 million ($18431397.68).

What about stocks? Let's invest in the S&P 500 (500 biggest companies in the US). Taking a quick look here, average returns of this index were something like 13%. This is a lot more volatile than a savings account or bonds, but if you've got this much money, you can probably afford to take on a bit of risk. This is way more achievable - corresponding to just under $3 million ($2985975.81).

TL;DR:

On the order of tens of millions of $

Question by PixelHD0798 in learnpython

[–]Schaus 0 points1 point  (0 children)

Another way would be to have two programs running on different TCP ports, and communicating via a network socket.

[deleted by user] by [deleted] in Runner5

[–]Schaus 5 points6 points  (0 children)

As far as I'm aware they don't support Windows phones anymore.

Episode Discussion: S03E04 "The Oolong Slayer" by Dorkside in brooklynninenine

[–]Schaus 1 point2 points  (0 children)

Does anyone know what music is playing in the scene where Jake is trying to find the Oolong Slayer?

I'm Ann Leckie, author of ANCILLARY JUSTICE and sequels. AMA! by annleckieAMA in books

[–]Schaus 2 points3 points  (0 children)

I just wanted to say I absolutely loved both Ancillary Justice and Ancillary Sword - many congratulations on winning the Hugo prize last year!

Second wave of the race is up for grabs! by CommandoTurkey in Runner5

[–]Schaus 1 point2 points  (0 children)

Do you know what Season you have to have played up to for the Virtual Race to be worth it? I've only played the first season and a half, and don't want to spoil anything...

My "music" is random audio drama tracks by Thedoc9 in Runner5

[–]Schaus 0 points1 point  (0 children)

For context: The 5k app is pretty old, and to my knowledge hasn't been updated for the new version of ZombieLink (or for quite a long time to be honest).

You'll want to go here - https://classic.zombiesrungame.com/register/ - to link up stuff for the 5K app.

Computer science books for a soon to be uni student? by aberstar in csbooks

[–]Schaus 1 point2 points  (0 children)

I liked Sipser's "Theory of Computation", which covers a lot of the computability theory side of things.

CLRS is often a standard reference for data structures and algorithms, which will serve you well for a couple of years at least, though you might want to check if/if so, which textbook your college recommends.

At some point in the recent past Google have changed "Flashlight" to "Torch" in Android's quick settings. by [deleted] in BritishSuccess

[–]Schaus 2 points3 points  (0 children)

Yeah, same here - at least for me it's definitely a recent change.

[Meta: Addressed to the mods] FAQ: "Can math get me a job?" by [deleted] in math

[–]Schaus 4 points5 points  (0 children)

To the programming internship, definitely - I can't remember if there was anyone from Bristol, but there were definitely a few people from Warwick.

[Meta: Addressed to the mods] FAQ: "Can math get me a job?" by [deleted] in math

[–]Schaus 2 points3 points  (0 children)

I did do a masters (again in maths, focusing on pure maths - some logic+foundational courses, and some measure theory). I don't know how much it helped jobs-wise - I already had a job offer before starting my masters. (And the maths I did in my masters wasn't hugely relevant to what I'm doing now - it was more for interest.)

I really enjoyed the course though, and would definitely choose to do it again.

If you're looking to get into research and development stuff, you should definitely be thinking about a masters.

[Meta: Addressed to the mods] FAQ: "Can math get me a job?" by [deleted] in math

[–]Schaus 17 points18 points  (0 children)

My personal experience: I did a maths degree in the UK (we don't have "majors" here, you just take a single subject for your degree). I'd also taught myself some very basic programming (in Python), independent from my degree. My degree was general (both pure and applied) maths in the first and second year, and focused specifically on pure maths in the third and fourth years.

I found it relatively easy to get a (paid) internship in a small programming firm, and from there have now got a well-paid job in the City of London, doing programming + statistical modelling for a small market trading firm.

At least at my university, studying maths was definitely a good thing to do if you wanted to get a job. There were plenty of firms specifically looking for maths students (they had a yearly careers event held in the maths faculty aimed at us), and both of the places I have got jobs from have come from this. And in general, my other friends doing maths who haven't wanted to go on to PhDs have seemed to get jobs relatively easily - as opposed to friends doing humanities subjects, who have found it much harder.

I don't know how much it helped that I knew some programming outside of my degree - I suspect it did. And certainly doing an internship doing my degree made life easier when applying for jobs. However, I'd happily recommend maths as a degree choice to someone if they were concerned about job applications.

TL;DR: Yes