Gregg Wallace remarks ‘inappropriate and misogynistic’, No 10 says as culture secretary holds crunch talks with BBC
https://www.independent.co.uk/news/uk/politics/gregg-wallace-bbc-masterchef-investigation-b2657320.html?utm_source=flipboard&utm_medium=activitypub
Posted into News @news-Independent
"Eventually, the muscle burn, the pump of my arms, the cool wind, and the damp silver city unrolling before me airlift me away from my divorce-scheming. It’s like a mechanical claw seizes me from a scrum of dusty toys. Eventually, I see something so pretty, perhaps sunlight gleaming upon the corrugated bay."
#TodaysPoem #poetry @poetry
Twenty Thousand Steps by Kim Magowan (2024 Emerge Literary Journal) tinyurl.com/36uejjyj
poetry group reshared this.
There is literally no-one in the world who knows more about CrossRef and about the Principles of Open Scholarly Infrastructure (POSI) than @gbilder
If he says there's a problem with CrossRef's commitment to POSI, you'd better believe there is.
reshared this
Wooo, day 2 of #adventOfCode finished. Didn't spend a ton of time optimizing, mostly because it's still running pretty fast, but gets the right answer quickly regardless. github.com/JamesTheBard/advent…
Tech Cyborg reshared this.
proc without(sek: seq[int], idx: int): seq[int] =
if idx == 0: return sek[1..^1]
concat(sek[0..<idx], sek[idx+1..^1])
it just concats the numbers before the index with the numbers after it :)
Damn, both your codes are much more elegant than mine.
I ended up having to do quite a lot of debugging to catch some edge cases in part 2 so my code became fairly heavy
Still, runs in less than 10ms so I'm not fussed... it works!
Yeah, it's my favourite way with these too, and I have been doing them for a long time (first time parttaking was in 2016 so I have gotten some nice things)
This will probably be nice for Paul, it's my template that I usually start with for each day, it basically takes the input and splits it into lines, and then sends it to the parse function, I then change the type for Parsed to the datastructure that I want and I'm off running, it has been quite helpful for me at least :)
paste.sr.ht/~sotolf/43315f0b36…
It's just so much fun to go through other people's solutions after I have done mine and see how others tackled the thing.
Other than that my solution is very similar to pauls, just probably with a bit more experience in writing exactly this kind of problem :)
@sotolf @paul I used to use `.readlines()` but realized that you can just loop over the `.open()` construct as it will also yield each line in the file. The `.readlines()` returns a list of every line in the file whereas just using `.open()` will yield each line as needed.
```python
a = [i for i in open("input.txt", 'r')]
```
...will end up the same as...
```python
a = [i for i in open("input.txt", 'r').readlines()]
```
```
Python 3.12.6 (main, Sep 8 2024, 13:18:56) [GCC 14.2.1 20240805] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> [i for i in open("example.txt")]
['7 6 4 2 1\n', '1 2 7 8 9\n', '9 7 6 2 1\n', '1 3 2 4 5\n', '8 6 4 4 1\n', '1 3 6 7 9']
>>> [i for i in open("example.txt").readlines()]
['7 6 4 2 1\n', '1 2 7 8 9\n', '9 7 6 2 1\n', '1 3 2 4 5\n', '8 6 4 4 1\n', '1 3 6 7 9']
```
Petition: Ban fossil fuel advertising and sponsorship
Sustainable St Albans reshared this.
The Public Is Watching as Conservators Carefully Restore a Rembrandt Masterpiece to Its Former Glory
https://www.smithsonianmag.com/smart-news/the-public-is-watching-as-conservators-carefully-restore-a-rembrandt-masterpiece-to-its-former-glory-180985534/?utm_source=flipboard&utm_medium=activitypub
Posted into Smartnews @smartnews-Smithsonianmag
The Palestinian Forum in Britain said that it is “deeply troubling that key figures in the UK, such as Labour Party Leader Keir Starmer and Foreign Secretary David Lammy, persist in denying the reality of genocide and ethnic cleansing against Palestinians,” in spite of “the overwhelming evidence and the testimonies of survivors, human rights organisations, and now, even Israeli insiders.”
middleeastmonitor.com/20241202…
#Python Pop Quiz 🐍❓
What will be the output if you run this code?
A) Outer ZeroDivisionError exception caught
B) Error: You divided by zero!
C) Error: You divided by zero! Finally executed
D) Finally executed
E) None of the above
🐧 As Melhores Distribuições Linux para Você Experimentar em 2025 🚀
Com tantas opções incríveis no universo Linux, qual será a ideal para você? Descubra as distribuições que estão se destacando este ano e escolha a que melhor atende às suas necessidades!
👉 Confira no blog: nova.escolalinux.com.br/blog/a…
#Linux #DistribuiçõesLinux #OpenSource #Tecnologia #2024
Interesting:
"Steel is an #opensource #browser API for #AI agents & apps.
"The best way to build live web agents and browser automation tools".
WhaleDeck 2 widgets, also available for macOS, are coming along nicely.
#iOSDev #docker #buildinpublic
“An impeachment complaint was filed Monday against Philippine Vice President Sara Duterte, who is facing a legal storm over a death threat she made against the president and her alleged role in extra-judicial killings of drug suspects, corruption and failure to stand up to Chinese aggression in the disputed South China Sea.”
Rusty Bertrand reshared this.
Here's alt text for the image:
A black t-shirt features a design in bright green pixel art. The text "GET IN LOSER" is at the top, followed by a picture of an ox pulling a covered wagon. Below the wagon is the text "WE'RE GETTING DYSENTERY". The overall style is humorous and reminiscent of 8-bit video game graphics.
#floss #opensource #signalboost
Tech Cyborg reshared this.
For a Linux and Open Source person such as yours truly, there is simply no point in becoming a Microsoft MVP. It is an honor and a kind of award, but after two months on the inside I can now say that absolutely nothing they offer in the program interests me.
Zero Open Source stuff. Zero about protocols. Zero about any Open technologies at all. 100% boring.
This is not a dis on other MVPs. It just describes how it works for me.
reshared this
Report: electric bills could increase up to 70% in next 5 years to meet data center demand
Report: electric bills could increase up to 70% in next 5 years to meet data center demand
A new report estimates energy prices for Virginians will need to increase by 25 to 70 percent in the next five years to meet the growing demand for data centersWGME
Paul Sutton
in reply to The Independent • • •