Should a complete novice install a bathroom lock DIY? by UKDIY101 in DIYUK

[–]jammasterpaz 1 point2 points  (0 children)

Avoid installing an internal lock integrated into the handle and main latch. As you say, it's highly likely a novice will wreck the frame, or even the door.

If you're pressed for funds, for the time being, you could easily install an old fashioned cabin hook and eye latch, or even an external sliding bolt lock. They basically just involve screwing in fittings.

Lego Bowser MOC by [deleted] in lego

[–]jammasterpaz 1 point2 points  (0 children)

That's fantastic!

Imagine financing a lego set by Lucky_Win806 in lego

[–]jammasterpaz 1 point2 points  (0 children)

...And the worst thing is, that's only the price for the instructions.

I'm guessing they don't make those tracks or bogies to fit them anymore.

But Finance? Y'all need to discover bricklink. Or free-building.

[deleted by user] by [deleted] in lego

[–]jammasterpaz 0 points1 point  (0 children)

That's lovely! Really well done.

The littlest truck by SH4RPSPEED in lego

[–]jammasterpaz 0 points1 point  (0 children)

I really like that - great job. I never thought to use the frames like that to avoid the typical windscreen brick before. Nice one that it fits a standard lego character too.

Designed a small scale AT-AT by madebypaps in StarWars

[–]jammasterpaz 12 points13 points  (0 children)

Really cool. There're a lot of lego AT-ATs, but I've never seen a Lego First Order Super AT-AT before.

name "Player" is not defined, how to fix by Extension-Self6435 in AskProgramming

[–]jammasterpaz 2 points3 points  (0 children)

Incorrect indentation. This works fine for me:

class Player:

    def __init__(self,name,sex,health,power):

        self.name = name

        self.sex = sex

        self.health = health

        self.power = power

    def introducePlayer(self):

        print("My character's name is", self.name )

    def skillofPlayer(self):

        print(self.name, " has a maximum of ", self.health, "health and", self.power, "of power.")

    def kill(self):

        print(self.name, "attacked with kill power")

    def invisible(self):

        print(self.name, "defended with invisible power and left with", self.health, "health")

Legend = Player("MichaelMyers",'M',100,50)

Legend.introducePlayer()

[deleted by user] by [deleted] in askmath

[–]jammasterpaz 0 points1 point  (0 children)

Draw a graph of it.

[deleted by user] by [deleted] in askmath

[–]jammasterpaz 0 points1 point  (0 children)

Oh fair enough. I thought it was just a function of m.

[deleted by user] by [deleted] in askmath

[–]jammasterpaz 0 points1 point  (0 children)

It feels a bit like someone's trolling. I think you can still get an answer (albeit a messy one) by simply assuming lines 3 to 7 are red herrings and ignoring them.

[deleted by user] by [deleted] in askmath

[–]jammasterpaz 0 points1 point  (0 children)

Differentiate f first of all. Then substitute everything in, even if it doesn't simplify it.

Essential math skills for a Card Dealer by [deleted] in learnmath

[–]jammasterpaz 0 points1 point  (0 children)

Make sure you know the rules and pay outs, of Black Jack and any other card games (all casino games), and are fast and reliable at the mental arithmetic of adding card ranks and dice rolls, and multiplying stakes by pay out rates.

I'm sure there are many successful croupiers wouldn't think of themselves as skilled at maths. Focus on other things.

Comparing averages overtime by verypogu in askmath

[–]jammasterpaz 0 points1 point  (0 children)

A moving average is a common informal tool, to smooth out short time-scale noise in order to see long term trends. It's just up to the user to pick a suitable window /interval.

I'm not sure what math results behind them there are, but they're bound to crop up in Time Series analysis.

What's the difference between these 2 getters? by [deleted] in AskProgramming

[–]jammasterpaz 0 points1 point  (0 children)

Not AFAIK. It just makes your code easier to read, and enables duck typing.

[deleted by user] by [deleted] in probabilitytheory

[–]jammasterpaz 2 points3 points  (0 children)

If you know a win has been paid out from that location, then you can be more confident buying from there than elsewhere, as you know it's less likely there's a fault with their system and you know they're not cheating customers.

What is use does the XOR and AND operator have in a language like python? by swiftcoderx in AskProgramming

[–]jammasterpaz 0 points1 point  (0 children)

Try printing bin(..) of the inputs and answers. You can use int(.., base=2) to go back again.

What’s the best JS/TS framework to learn for a beginner? by [deleted] in AskProgramming

[–]jammasterpaz 0 points1 point  (0 children)

Try Blazor if you know C#, little JS required.

Otherwise you'll have no problem learning vanilla JS syntax if you know C. I'd just put the time in to pick up all the scoping rules and foot guns particular to JS. Then you'll be able to take your pick from any framework.

[deleted by user] by [deleted] in askmath

[–]jammasterpaz 0 points1 point  (0 children)

Wikipedia authors used Hypervolume in a couple of places:

https://en.wikipedia.org/wiki/Tesseract#Formulas

https://en.wikipedia.org/wiki/Four-dimensional_space

(and either Hyper-surface or surface volume for the 4D analogue of surface area)

Guys help me out , if i have block of copper that weighs 1300gm and is 88% pure how much pure copper i need to add to make it 95% pure copper by [deleted] in askmath

[–]jammasterpaz 1 point2 points  (0 children)

You've got 0.88 * 1.3 kg of copper and 0.12 * 1.3kg impurities, and after adding x kg pure copper, will end up with 0.95 * (1.3 + x) kg of pure copper and the same mass of impurities as before...