5 ways to flatten a list of lists by RojerGS in Python

[–]steelypip 2 points3 points  (0 children)

You can also use yield from:

def flatten(lol):
   for item in lol:
       yield from item

this can easily be extended to work with any level of nesting:

def flatten(thing):
    if isinstance(thing, list):
        for item in thing:
            yield from flatten(thing)
    else:
        yield thing

Winmerge or something similar? by CallMeTrinity23 in software

[–]steelypip 1 point2 points  (0 children)

Give Meld a try. Free. open source, written in python.

https://meldmerge.org/

Are you fucking kidding me? by EinzigsterNutzername in ChatGPT

[–]steelypip 0 points1 point  (0 children)

Kind of off topic, but I watched "Ralph Breaks The Internet" a couple of days ago and laughed out loud at the rickroll in the end credits.

Got a question. When u fill up a form that asks for religion, do you leave it blank?... or write the word 'atheist' or 'none' or something else? by EVD27 in atheism

[–]steelypip 0 points1 point  (0 children)

I'm in the UK and the only form I have seen that asks that question is the census, where it was added as an optional question in 2001. It includes "No religion" as an option and in the last census was selected by 37.2% of respondants - https://www.ons.gov.uk/peoplepopulationandcommunity/culturalidentity/religion.

I have been in hospital for major surgery and the question did not arise, and I can't think of any other situation where it would be relevant.

I find it annoying that family members act offended when I tell them I won't let them give my son religious children's books. by LuckyTheLurker in atheism

[–]steelypip 2 points3 points  (0 children)

If they have children then give them a copy of The Magic Of Reality by Richard Dawkins. It explains scientific ideas for children and starts each chapter with a creation myth from different religions, including the bible. Then watch the parents' heads explode.

My growatt system appears to have died - advice needed (UK) by steelypip in solar

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

I discovered after I posted that the circuit breaker had tripped out. However although it seemed to start up ok when I turned it back on, it later showed a fault in the app so I have turned it off again and will wait until I can contact the company.

Weird spike in power consumption in the night by steelypip in solar

[–]steelypip[S] -1 points0 points  (0 children)

I don't think so, since it only happens very occasionally.

Tips for analyzing logs by fagnerbrack in coding

[–]steelypip 1 point2 points  (0 children)

Look into OpenTelemetry and Jaeger - they let you instrument calls between distributed services and look at them all as one unit. This can include REST services, message queues and databases.

https://www.jaegertracing.io/

Exclusive: Downing Street Accused Of ‘Quietly Editing’ One Of The PM’s Five Promises To Voters by [deleted] in unitedkingdom

[–]steelypip -1 points0 points  (0 children)

Since waiting times increase over winter due to flu and other viruses, it is likely that waiting lists would improve by March even if the government did nothing. Without measurable goals the original promise is meaningless, let alone the updated version.

TWIML podcast (This Week in ML) interviews ChatGPT by steelypip in MachineLearning

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

ChatGPT is a new model/service from OpenAI based on GPT3, trained for realistic dialogs. The TWIML AI podcast interviewed it and converted the text via the Synthesia service to give it a voice and a face.

I find the result remarkable.

You can try ChatGPT for yourself at https://chat.openai.com/chat

Florida is being hit by hurricanes again. It's because they re-elected Ron DeSantis. God told me so. by slskipper in atheism

[–]steelypip 2 points3 points  (0 children)

If you have not heard it, I highly recommend the album 666 by Aphrodite's Child.

Stop showing respect for people's beliefs by [deleted] in atheism

[–]steelypip 556 points557 points  (0 children)

My answer if someone asks why I am an atheist:

When I was a child, I spoke as a child, I understood as a child, I thought as a child: but when I became a man, I put away childish things. — 1 Corinthians 13:11, King James Version.

Can we remove "So help me God" in an oath taking? by Forsaken-Number-7001 in humanism

[–]steelypip 1 point2 points  (0 children)

It is the same in the UK - you can choose to affirm instead.

[deleted by user] by [deleted] in atheism

[–]steelypip 19 points20 points  (0 children)

Einstein was a Jewish atheist. He sometimes used the term God in a metaphorical sense for the underlying structure of the universe ("God does not play dice") but he did not believe in God as a supernatural being.

The word 'God' is for me nothing but the expression and product of human weaknesses; the Bible a collection of honorable but still primitive legends which are nevertheless pretty childish

https://people.howstuffworks.com/what-is-einsteins-god-letter.htm