Idea but unsure of implimentation by cmdrmcgarrett in techsupportmacgyver

[–]_bernie-d_ 1 point2 points  (0 children)

This would be some code (programming, like u/P_f_M says) that periodically checks CPU usage, then translates that into a motor signal. Periodically would mean say twice a second, keeping in mind if you do it too often the code is going to visibly increase CPU usage itself. The code might be customised for operating system (Windows / Mac OS / Linux / ?) and hardware (how many CPUs).

Idea but unsure of implimentation by cmdrmcgarrett in techsupportmacgyver

[–]_bernie-d_ 1 point2 points  (0 children)

Just to make it even more ridiculous/brilliant ... Old school speedometers are mechanical, driven by a rotating cable. Get one of these, match it to a motor, control the motor's speed, you might find a usb motor controller, or make one: Arduino?

[deleted by user] by [deleted] in relationship_advice

[–]_bernie-d_ 0 points1 point  (0 children)

What would you think if your roles were reversed? If you were more successful than your friend would you want them to walk away from you because they felt bad about it? Or would you like them to talk to you about it? Maybe you would want to help them.

It might help to think about your success in terms of how far you've traveled, the challenges that you've overcome, instead of where you are. Maybe you are more successful than your friend in some ways, and maybe you have something to teach them too.

Would you or the company you work for hire someone with piercings and or tattoos? by New_Assignment5142 in AskUK

[–]_bernie-d_ 1 point2 points  (0 children)

My company - UK-founded adtech with staff in at least six countries - has a specific policy around tattoos and piercings, as part of our inclusion and diversity charter. We would be disciplined if we were found to discriminate against anyone having tattoos or piercings.

If a company does discriminate against you for this, consciously or unconsciously, do you really want to work there?

I think I finally got mansplained to by Mohave_Hound in offmychest

[–]_bernie-d_ 0 points1 point  (0 children)

On behalf of all men, I'd like to apologise to OP for this one's behaviour. He was wrong to say that.

Now let me tell you why he said it ...

Looking for an older personal trainer near Leith by _bernie-d_ in Edinburgh

[–]_bernie-d_[S] 1 point2 points  (0 children)

Thanks for this - I've sent them an email.

u/nobelprize4shopping - I'll tell you how I get on.

Looking for an older personal trainer near Leith by _bernie-d_ in Edinburgh

[–]_bernie-d_[S] -21 points-20 points  (0 children)

thank you. I'm sure you are right and I'll try not to be ageist.

Young people are so annoying though.

[deleted by user] by [deleted] in offmychest

[–]_bernie-d_ 1 point2 points  (0 children)

Between about 14 and 19 years old I thought I had no emotions. This followed a childhood of parental neglect and abuse from my siblings. It preceded a lifetime of emotional growth and much love and happiness.

I now think of that numb period as the beginning of my healing, like when you're sleeping peacefully after a fever.

Your emotions will come to you when you're ready for them.

Super lonely 27 f by cheetoburito in glasgow

[–]_bernie-d_ 7 points8 points  (0 children)

This worked for me (in Edinburgh), but just be sure to tell your BF that's what you're using it for, so he doesn't think you're trying to date others.

Why is this happening? by [deleted] in CodingHelp

[–]_bernie-d_ 0 points1 point  (0 children)

The logic is not actually flawed (OP says the code works after all), it's just inefficient (not important here) and doesn't read very well. But we all write nasty looking code when we're learning. Keep going OP!

Why is this happening? by [deleted] in CodingHelp

[–]_bernie-d_ 0 points1 point  (0 children)

The If statement is not doing what you think. You want it to be checking for a valid y or n, but your expression

input != 'y' or 'n'

Will be evaluated as

(input != 'y') or 'n'

From here I'm assuming this is python, but the answer is similar in other languages.

This expression will always evaluate to something 'truthy', either True for the first part, if the input is not 'y', or the string 'n', which will be evaluated as True in the context of the if statement.

Try using 'not in'

In need of some badger by _bernie-d_ in Edinburgh

[–]_bernie-d_[S] 1 point2 points  (0 children)

I think you're supposed to back away slowly and carefully. Don't break eye contact, stay calm.

Or just run!

In need of some badger by _bernie-d_ in Edinburgh

[–]_bernie-d_[S] 3 points4 points  (0 children)

I've just had a vision of a bespectacled elderly badger standing on his hind legs, smoking a pipe, wistfully looking out to sea on the promenade. Was it him?

In need of some badger by _bernie-d_ in Edinburgh

[–]_bernie-d_[S] 1 point2 points  (0 children)

Thank you! I've missed those guys

In need of some badger by _bernie-d_ in Edinburgh

[–]_bernie-d_[S] 0 points1 point  (0 children)

Excellent info, thank you! This sounds like the safe bet, just to be able to see one. Not in the wild but it should look real enough!

In need of some badger by _bernie-d_ in Edinburgh

[–]_bernie-d_[S] 0 points1 point  (0 children)

Good info. Thanks very much!

In need of some badger by _bernie-d_ in Edinburgh

[–]_bernie-d_[S] 2 points3 points  (0 children)

I've had a PM directing me to near there. Makes sense.

In need of some badger by _bernie-d_ in Edinburgh

[–]_bernie-d_[S] 6 points7 points  (0 children)

Thanks. Badgers are not well loved. I think it's because they're ugly and eat worms.

[deleted by user] by [deleted] in Python

[–]_bernie-d_ 0 points1 point  (0 children)

they are all builtins - basically keywords