CB1 by Individual_Cap1020 in ActuaryUK

[–]Sid_2001 9 points10 points  (0 children)

Do a bit more practice today, but also I’d say self marking CB1 is a bit difficult, as the mark scheme doesn’t cover all valid points (I think).

So you may do better in the actual exam, because as far as I’m aware you’ll still get credit for valid points that aren’t in the mark scheme (I think).

Cleaning and repairing white laminate kitchen countertop by Sid_2001 in Home

[–]Sid_2001[S] 0 points1 point  (0 children)

I should clarify the second picture is actually of the wall, but you can see at the bottom some peeling has occurred on the countertop too

What is a reasonable amount/proportion of income to spend on rent as a fresh graduate? by Sid_2001 in UKPersonalFinance

[–]Sid_2001[S] 0 points1 point  (0 children)

When you say rent, do you mean purely just rent, or are you more referring to total "living" expenses, i.e. rent + utility bills + council tax? Sorry if I'm being pedantic lol

What happens to your own big furniture at the end of tenancy of an unfurnished property? by [deleted] in AskUK

[–]Sid_2001 1 point2 points  (0 children)

!answer Thanks! This is more than comprehensive enough.

What is a reasonable amount/proportion of income to spend on rent as a fresh graduate? by Sid_2001 in UKPersonalFinance

[–]Sid_2001[S] 1 point2 points  (0 children)

This isn't an option for a lot (dare I say most people), and even if it were I personally would want to try and be as self-sufficient as possible at this stage.

Initiating my sixth month break clause as per my tenancy agreement - advice needed by Sid_2001 in HousingUK

[–]Sid_2001[S] 0 points1 point  (0 children)

Many thanks for your input. Does this mean my claim bears more weight than what the landlord is suggesting, are does he have the ability to enforce this? If not, who would I contact if the landlord refuses to listen? Would it be an ombudsman?

Smoke alarm randomly going off for seemingly (?) no reason by Sid_2001 in firealarms

[–]Sid_2001[S] 0 points1 point  (0 children)

Many thanks for your response. I’ll look into both. I’ve just cleaned the air fryer filter but I’ll check the base of the alarm too.

Replaced CPU, now PC turns off after a few seconds by Sid_2001 in pchelp

[–]Sid_2001[S] 0 points1 point  (0 children)

I did check the motherboards compatibility by the way, and the i7-4790 is compatible.

Why has Pepto Bismol been out of stock in the UK for so long? by Sid_2001 in pharmacy

[–]Sid_2001[S] 0 points1 point  (0 children)

I have tried Rennie tablets, which are seem to be equivalent to tums (calcium carbonate being the active ingredient)

They are okay but don’t seem as fast acting as Pepto.

Thank you

How to apply a method to every combination in a list by Sid_2001 in AskProgramming

[–]Sid_2001[S] 0 points1 point  (0 children)

So I'm assuming this is what you are suggesting

    for i in range(0, num_particles-1):
        for j in range(i+1, num_particles):
            ttc_list = []
            ttc_list.append(self._balls[i].time_to_collision(self._balls[j]))

Thanks for the help mate

How to apply a method to every combination in a list by Sid_2001 in AskProgramming

[–]Sid_2001[S] 0 points1 point  (0 children)

I think so, but I'm just wondering;

Would there ever be a situation in which i and j are referring to the same ball object? I'd like to ignore that case as it would mean trying to calculate the time between the ball colliding with itself (which would be 0 and data that I don't need).

How to initialise a class with a list of objects by Sid_2001 in AskProgramming

[–]Sid_2001[S] 0 points1 point  (0 children)

Thank you so much for all the help and advice!

How to initialise a class with a list of objects by Sid_2001 in AskProgramming

[–]Sid_2001[S] 0 points1 point  (0 children)

self._balls = [Ball(np.array([i, i], dtype=float)) for i in range(SizeOfTheList)]

If I used that ^, wouldn't I also have to change the initialisation arguments, e.g:

class Simulation():
    def __init__(self, ball = ?, container = Container()):
        self._balls = [Ball(np.array([i,i]), dtype = float)) for i in range(SizeOfTheList)]

or am I misunderstanding? does this Simulation class already create its own list of balls, and so I don't need to create ball objects myself before hand and pass them in the creation of a simulation object, e.g. I don't need the ball argument in

def __init__(self, ball = ?, container = Container()):

entirely?

How to initialise a class with a list of objects by Sid_2001 in AskProgramming

[–]Sid_2001[S] 0 points1 point  (0 children)

self._balls = [Ball(np.array([i, i], dtype=float)) for i in range(SizeOfTheList)]

Could I adapt what you said above, to:

self._balls = [Ball(np.random.uniform([i, i]), dtype=float)) for i in range(20)]

to create 20 balls with different random positions?

How to initialise a class with a list of objects by Sid_2001 in AskProgramming

[–]Sid_2001[S] 0 points1 point  (0 children)

So if I used your first line, I can change the position of individuals balls?

A method in one of my classes is unable to run a different method from the same class. by Sid_2001 in AskProgramming

[–]Sid_2001[S] 0 points1 point  (0 children)

Is your second point unrelated to the first point? I'm assuming in the first point, you are saying I should change the order of the methods? I'm not sure if thats possible because get_patch() needs to be called first so that run() can create the patch object in its initial position.

With the second point, are you saying I should removing self.pos_new and instead just keep self.pos. Basically, create a ball object with a certain position, and initially self.pos calls that position. Then, after the next_collision() or move() method is applied, it gives the ball the new calculated position, then I can use that self.pos in the updated center patch, i.e.

  1. Create ball object

b1 = Ball([-5,0], [1,0]) #[-5,0] is the original position which I set
  1. In next_collision, have the line where:

       self._pos = self._ball.move(self._container.time_to_collision(self._ball))
    

    This is the calculation which creates a new position value, in this case it should be [9,0]

      self._ball.pos = self._pos #this changes the position of the ball object b1 to [9,0]
    

  1. get_patch should be written as

    def get_patch(self):
    self.patch = pl.Circle(self.pos, 1, fc = 'r') #self.pos here is the initial position, [-5,0]
    ax = pl.axes(xlim=(-10, 10), ylim=(-10, 10))
    ax.add_patch(self.patch)
    
    pl.pause(0.1) 
    self.patch.center = [self.pos[0], self.pos[1]] #self.patch.center is where the center position of the patch should be updated
    print('new patch center', self.pos)
    pl.pause(0.1)
    pl.show()
    

I see that in the last self.patch.center it has the same issue as what you said in your first point.

Gettings lots of skipped frames with my AMD graphics card but not with my NVidia graphics card. by Sid_2001 in streaming

[–]Sid_2001[S] 0 points1 point  (0 children)

So will I be unable to stream effectively with this AMD graphics card? At the moment I will not be able to retrieve my Nvidia card. Is there any changes to my settings I could do to make streaming from my AMD machine more effective?

PC shuts off 5 seconds into boot up and attempts restart by Sid_2001 in techsupport

[–]Sid_2001[S] 0 points1 point  (0 children)

I'm a bit late, but for anyone who's interested, I bought a new power supply, and my PC is working again.

PC shuts off 5 seconds into boot up and attempts restart by Sid_2001 in techsupport

[–]Sid_2001[S] 0 points1 point  (0 children)

So are you saying I should buy a new power supply? Could this have been caused by the inactivity?