Skip to main content


in reply to The Independent

So why is the guy who puts the podium outside No 10 allowed to be described as hot, or the king's equerry etc,


"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.

gbilder.com/posts/2024-12-02-1…

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…

#python #programming

Tech Cyborg reshared this.

in reply to sotolf

@sotolf Ooooh, that is very nice and more than a bit brainfucky. Was reading through the Nim docs and couldn't find the method and thought I just didn't know where I was looking...come to find out, I definitely wasn't looking in the right place...lol
in reply to Jason Weatherly

Yeah :) without is just a helper function I created myself:
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 :)
in reply to sotolf

@sotolf That makes more sense. I was thinking of something similar, buuut I remembered `combinations` from itertools...lol
in reply to sotolf

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!

codeberg.org/pswilde/AdventOfC…

in reply to Paul Wilde :dontpanic2: :smeghead:

@paul @sotolf Nice solve! I'm not gonna lie, #adventOfCode is all about learning for me and having fun comparing notes/solves with friends. Learned an absolute ton from not just the competition but from other people and how they tackled the problem. Also there's a very strong possibility that I'll try to tackle these solves with `nim` if I've got some extra time later on.
in reply to Jason Weatherly

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 :)

in reply to sotolf

@sotolf @paul That's really the best part: seeing how other people tackled the problems. Also, I should really write a quick module for input processing considering it always `pathlib` -> `Path` -> `[insert comprehension here]`...lmao
in reply to Jason Weatherly

Yeah, I just used readlines in python I think :p It's a long time since I've used it for aoc, and I write so many languages without list comprehensions that I kind of forget that they exist, and just do explicit loops instead :p
in reply to sotolf

@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


The Our Planet Our Future book club read and discussed Badvertising, which points out that advertising often urges us to do things contrary to our best interest, for example high-carbon activities such as flying, and buying SUVs, and argues that such advertising should be banned. There's a petition on the subject here.

Sustainable St Albans reshared this.




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…

🕎 🇵🇸 ☮️
#Gaza #Palestine



#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



Max shares, how he created Callr.ai an AI caller agent called Julia, and how Julia can be integrated into phone agents, transforming people's businesses, around a practical use case of AI. Not only does Julia schedule appointments and potentially replace that first line of phone calls but could be also integrated into CRMs and completely transform the way that cells and or internal requests services, HR processes are done. buzzsprout.com/2107763/episode… #Python #AI #CRM #HR #podcast #numpy #LLM


🐧 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".

github.com/steel-dev/steel-bro…



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.”

apnews.com/article/philippines…



If you die on Mastodon. You die in real life.
This entry was edited (3 weeks ago)

Rusty Bertrand reshared this.

in reply to Rusty Bertrand

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.



#Adobe #Illustrator is unfortunately the de facto standard in some graphical design. But why not use the fully #foss solution #Inkscape ? Let the foss be with you.
#floss #opensource #signalboost

Tech Cyborg reshared this.

in reply to OS-SCI

Inkscape is, in my opinion, more capable and intuitive. It’s sad to see Adobe holding a monopoly for so long. That said, I’m guilty of using After Effects too… but there are some great alternatives starting to emerge!


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

in reply to Smart Fox

@SmartFox If you consider Linux Open Source, they care enough to have two seats on the Linux Foundation Board, Microsoft + GitHub.
@bagder
in reply to Ricardo Martín

@ricardo
They bought their way into the board since they rely on Linux themselves nowadays. So much of their infrastructure is Linux.
@SmartFox @bagder


in reply to unusual_whales

Total credit card debt rose to $1.17 trillion during the third quarter, an increase of $24 billion from the previous quarter, according to the report. It marks the highest level on record in Fed data dating back to 2003.

Read more: t.co/mGc7VMKLKz

#news #finance #economics #stocks #options

in reply to unusual_whales

Are we sure Vladimir Putin isn't financing his war on Ukraine using fraudulent US credit cards?