davep , to Random stuff
@davep@fosstodon.org avatar

So after me nagging him for a year or more @mathsppblog has finally seen the light regarding Mastodon! (Unlikely because of me, but I’ll take the win).

He’s not tooted yet, but if is your thing I highly recommend you follow my fellow ex- developer and one of the 67%.

He sometimes does some maths stuff too I believe. 🤷🏻‍♀️

linuxmagazine , to Linux
@linuxmagazine@fosstodon.org avatar
Lorenanicole , to Random stuff
@Lorenanicole@mastodon.social avatar

is just data, I’m sorry to tell you, it doesn’t exist” - Pablo Galindo Salgado re: “Profiling at the speed of light”

javajuggler , to All things Python

here is some good content for those who want to learn python in a free and efficient way. join the site. https://chat-to.dev/post?id=298

SecOpsCeo , to Random stuff
@SecOpsCeo@infosec.exchange avatar

You could come hear me talk about building an implementation in , so maybe sign up today?
https://social.northbaypython.org/@NorthBayPython/112446043449939357

davep , to Programming
@davep@fosstodon.org avatar

I’ve just released v0.14.0 of Tinboard, my client for the . This release adds the start of an application settings dialog, with the first couple of options letting you set the default value for the "private" and “read-later" state of new bookmarks.

https://blog.davep.org/2024/05/14/tinboard-0-14-0.html

driving_crooner , to Memes in Solve a puzzle for me
@driving_crooner@lemmy.eco.br avatar

Normal people using AI: look how stupid this shit is!!

Terence Tao using AI: As an experiment, I asked to write code to compute, for each 𝑛, the length 𝑀(𝑛) of the longest subsequence of (1,\dots,n) on which the Euler totient function ϕ is non-decreasing. For instance, 𝑀(6)=5, because ϕ is non-decreasing on 1,2,3,4,5 (or 1,2,3,4,6) but not 1,2,3,4,5,6. Interestingly, it was able to produce an extremely clever routine to compute the totient function (that I had to stare at for a few minutes to see why it actually worked), but the code to compute (M(n)) was slightly off: it only considered subsequences of consecutive integers, rather than arbitrary subsequences. Nevertheless it was close enough that I was able to manually produce the code I wanted using the initial GPT-produced code as a starting point, probably saving me about half an hour of work. (and I now have the first 10,000 values of (M)). The results were good enough that I would likely turn to GPT again to provide initial code for similar calculations in the future. https://chat.openai.com/share/a022e1d6-dddc-4817-8bbd-944a3e742d9f

vwbusguy , to Random stuff
@vwbusguy@mastodon.online avatar

The library is over here making lists not iterable and harming my sanity this morning.

TypeError: 'V1NamespaceList' object is not iterable

nedbat , to Random stuff
@nedbat@hachyderm.io avatar

Remember that dicts can have tuples as keys! Consider a dict with (x,y) keys instead of nested lists for a grid. It simplifies sparse grids, "resizes" are automatic, it doesn't matter where (0,0) is, and you can use negative positions:

Adding more to the board in flexible ways. https://gist.github.com/nedbat/f22b03f70ceb9686881c4bcd442fad11

rhettallain , to Random stuff
@rhettallain@mastodon.social avatar

New video - using the rotation of a rigid object as an example of the Eigenvalue problem

https://youtu.be/bZf9N4aOVyg

Edent , to Random stuff
@Edent@mastodon.social avatar

🆕 blog! “Untappd to Mastodon - Updated!”

A few years ago, I wrote some code to post Untappd check-ins to Mastodon. I've recently updated it to also post a photo of the beer you're enjoying. First up, you'll need a file called config.py to hold all your API keys: instance = "https://mastodon.social" access_token = "…" write_access_token = "…" untappd_client_id = "…" untappd_cli…

👀 Read more: https://shkspr.mobi/blog/2024/05/untappd-to-mastodon-updated/

MrBerard , to EduTooters group
@MrBerard@pilote.me avatar

BeeTeeDubs, I'm going live in ten with a Tutorial drawing flags with turtle graphics.

Really it's about abstraction and decomposition.
@edutooters

Live Coding: Drawing flags with
https://youtube.com/live/LLiHSBzxNBE?si=4qSVSJXe7pkMgT9z

jobsfordevelopers Bot , to Random stuff
@jobsfordevelopers@mastodon.world avatar
vic , to 3goodthings group
@vic@howcyborgs.chat avatar

  1. Live music at the Brangwyn Hall tonight - mind blown by Caroline Shaw's "The Observatory"
  2. Sunset & sea smell & birdsong
  3. Beginning to understand well enough to start wrangling some local data to "Dig Where I Stand" (any tips for styling matplotlib to only display years on the x axis? )

@3goodthings

rasterweb , to Random stuff
@rasterweb@mastodon.social avatar

What are some good (simple!) options for automagically posting RSS stuff on the Fediverse?

This works with Mastodon well enough, but I'd love a list of alternatives.

➡️ https://github.com/aserper/masto-rss

ThePSF , to Random stuff
@ThePSF@fosstodon.org avatar

Will you be at @pycon US this year? Join the fun and sign up to volunteer at the PSF Booth (or another location) for a couple of hours! Volunteering at is a great way to meet awesome folks in our community 🫶
https://us.pycon.org/2024/volunteers/volunteering/

treyhunner , to Random stuff
@treyhunner@mastodon.social avatar
davep , to Random stuff
@davep@fosstodon.org avatar

Is it in general, or perhaps specifically? Either way I think it’s time to switch framework and language. 😧

nixCraft , to Linux
@nixCraft@mastodon.social avatar

Are Ksh scripts still used in production environments? Or has Bash become the dominant scripting choice nowadays?

shtrom ,
@shtrom@piaille.fr avatar

@nixCraft Haven't seen a serious ksh script in 20+ years.

I try no to use (isms) in prod though, and stick to sh, as enforced with, https://www.shellcheck.net/ (because it's probably gonna run in bash anyway, but could be dash).

If I really need a bashism, it's a good indication that it's time to switch to .

fictionable , to Podcast
@fictionable@lor.sh avatar

Does your laptop have a mind of its own? Robert Neuwirth shares a file that booted up on his screen and wrote itself to the hard drive in The Disambiguation.

Catch this exclusive short story and listen to Neuwirth explain why he filled it with computer code at https://fictionable.world

@bookstodon

davep , to Random stuff
@davep@fosstodon.org avatar

Doing some pre-dinner coding, working some more on my toy client for the .

https://www.youtube.com/watch?v=7dTwJQn_Ggw

davep , to Random stuff
@davep@fosstodon.org avatar

WTFs at LLMs being silly aside… I’ve got the core loop of the interaction code really narrowed down now. async context manager to hide all the detail FTW!

kaateeh , to Random stuff
@kaateeh@infosec.exchange avatar
sloanlance , to Random stuff
@sloanlance@mastodon.social avatar

alchemy…

class X:  
 def __init__(self): self.n = 0  
 def __getattr__(self, key):  
 self.n += len(key)  
 return self  
 def __str__(self):  
 return f'{self.n} characters'

print(X().moby.fubar) # 9 characters

python_discussions Bot , to Programming
@python_discussions@mastodon.social avatar
  • All
  • Subscribed
  • Moderated
  • Favorites
  • supersentai
  • WatchParties
  • Rutgers
  • jeremy
  • Lexington
  • cragsand
  • mead
  • RetroGamingNetwork
  • loren
  • steinbach
  • xyz
  • PowerRangers
  • AnarchoCapitalism
  • kamenrider
  • Mordhau
  • WarhammerFantasy
  • itdept
  • AgeRegression
  • mauerstrassenwetten
  • MidnightClan
  • space_engine
  • learnviet
  • bjj
  • Teensy
  • khanate
  • electropalaeography
  • neondivide
  • fandic
  • All magazines