python

Back Open Paginator
10.03.2026 22:02
davep (@davep@fosstodon.org)

Even more BlogMore: blog.davep.org/2026/03/10/even

#python #programming #ai #ssg




Show Original Post


10.03.2026 21:14
rasterweb (@rasterweb@mastodon.social)

Here's two examples of running command line stuff on iOS via Apple Shortcuts and a-Shell.

One shows the uptime of my phone, the other runs a Python script and shows the output.





Show Original Post


10.03.2026 20:55
riverfount (@riverfount@bolha.us)

Novo artigo no blog: asyncio na prática.

async/await não torna seu código automaticamente mais rápido. Se a tarefa é CPU-bound, você só adiciona complexidade sem ganho nenhum. A diferença aparece mesmo no I/O — e é dramática.

O artigo mostra os dois casos com exemplos reais, explica o event loop e quando vale (ou não) usar concorrência.

🔗 riverfount.dev.br/posts/asynci

Você já teve bug causado por uso errado de asyncio em produção?

#python #asyncio #concorrência #performance




Show Original Post


10.03.2026 20:30
ology (@ology@musician.social)

Here is a bit of #Python ( github.com/ology/Music/blob/ma ) telling my modular drums to play quasi-Euclidean beats with 4 gates of my #MIDI interface. The code randomly selects from a small list of note values and a velocity lambda. This part drives Plaits in its 5th "yellow model" and the Qu-bit Chord in minor mode.




Show Original Post


10.03.2026 20:08
villares (@villares@pynews.com.br)

Inspired by internet-janitor.itch.io/wiggl
Find the sketch-a-day archives and tip jar at: abav.lugaralgum.com/sketch-a-d
Code for this sketch at: github.com/villares/sketch-a-d #Processing #Python #py5 #CreativeCoding





Show Original Post


10.03.2026 20:05
feed (@feed@igeek.gamer-geek-news.com)

🤖 Setting Up a Google Colab AI-Assisted Coding Environment That Actually Works

This article focuses on Google Colab , an increasingly popular, free, and accessible, cloud-based Python environment that is well-suited for prototyping data analysis workflows and experimental cod...

📰 Source: MachineLearningMastery.com
🔗 Link: https://machinelearningmastery.com/setting-up-a-google-colab-ai-assisted-coding-environment-that-actually-works/

#AI #ArtificialIntelligence #Python #DataScience





Show Original Post


10.03.2026 19:58
encthenet (@encthenet@flyovercountry.social)

@meejah

This is very wrong and broken IMO.

You can add an element of a string to itself, but not a byte array.

a = 'str'
a += a[0]

Works, but this does not:
b = b'str'
b += b[0]

But this does work:
b += b[0:1]

Byte strings aren't strings but python pretends they are to make things "easier" but it violates the consistency of how it appears as an array.

Also, that this returns false is broken:
b[0] == b's'

#Python




Show Original Post


10.03.2026 19:21
p (@p@pixelfed.social)
Local AI Text-to-Speech Demo with Coqui TTS

Coqui TTS is an AI-powered text-to-speech synthesis platform that can automatically convert written text into natural-sounding speech. The system is based on modern deep learning models and can run entirely locally, making it particularly suitable for privacy-friendly applications and offline projects.

In this example, Coqui TTS is used directly through the Python API. This allows the model to be flexibly integrated into custom scripts and controlled automatically, for example to convert text into audio files or to process larger amounts of text.

Since many text-to-speech models can only process very long texts to a limited extent, the input text is divided into smaller sections (chunks) before processing. These are synthesized one after another and then combined into a complete audio output.

In this example, the model is executed locally on the CPU. Although some AI models support GPU acceleration, Coqui TTS can run reliably without specialized hardware and can therefore be used on many different systems.

The audio output generated by the model is initially a raw file. To improve sound quality, additional post-processing is recommended, such as removing clicks or artifacts, slightly smoothing audio transitions, or applying other minor corrections.

The Creepypasta used in this demo is in German and contains disturbing content.

https://creepypasta.fandom.com/de/wiki/Trypophobia

Video workflow:

- Recorded with OBS
- Edited in Kdenlive
- Transcoded with VAAPI (H.264)

No cloud, no API keys, real hardware, just Python.
Everything runs on Linux + Python (FOSS), so anyone can set this up.
No GPU? In this case… it doesn't matter.

#AI #TextToSpeech #CoquiTTS #Python #AIVoice #SpeechSynthesis #foss #LocalAI #OpenSourceAI #AItools #Artificialtelligence #AIDevelopment



Show Original Post


10.03.2026 19:19
p (@p@pixelfed.social)
Local AI Text-to-Speech Demo with Coqui TTS

Coqui TTS is an AI-powered text-to-speech synthesis platform that can automatically convert written text into natural-sounding speech. The system is based on modern deep learning models and can run entirely locally, making it particularly suitable for privacy-friendly applications and offline projects.

In this example, Coqui TTS is used directly through the Python API. This allows the model to be flexibly integrated into custom scripts and controlled automatically, for example to convert text into audio files or to process larger amounts of text.

Since many text-to-speech models can only process very long texts to a limited extent, the input text is divided into smaller sections (chunks) before processing. These are synthesized one after another and then combined into a complete audio output.

In this example, the model is executed locally on the CPU. Although some AI models support GPU acceleration, Coqui TTS can run reliably without specialized hardware and can therefore be used on many different systems.

The audio output generated by the model is initially a raw file. To improve sound quality, additional post-processing is recommended, such as removing clicks or artifacts, slightly smoothing audio transitions, or applying other minor corrections.

The Creepypasta used in this demo is in German and contains disturbing content.

https://creepypasta.fandom.com/de/wiki/Trypophobia

Video workflow:

- Recorded with OBS
- Edited in Kdenlive
- Transcoded with VAAPI (H.264)

No cloud, no API keys, real hardware, just Python.
Everything runs on Linux + Python (FOSS), so anyone can set this up.
No GPU? In this case… it doesn't matter.

#AI #TextToSpeech #CoquiTTS #Python #AIVoice #SpeechSynthesis #LocalAI #OpenSourceAI #AItools #Artificialtelligence #AIDevelopment



Show Original Post


10.03.2026 19:13
247CodeGirl (@247CodeGirl@mastodon.social)

Season 1 Lesson 7 Part 8 - Your First Steps - Find Multiple Instances of - Strings in Python





Show Original Post


10.03.2026 19:05
bitsgalore (@bitsgalore@digipres.club)

Interesting, the Bodleian library created a #Python library that converts #TIFF or #JPEG source images to #JP2 #JPEG2000 (using a #Kakadu wrapper), and does various quality checks on the result:

github.com/bodleian/image-proc

Will definitely give this a try for an upcoming in-house TIFF to JP2 conversion pilot project!




Show Original Post


10.03.2026 18:59
r (@r@fed.brid.gy)

I’m building my own new social platform for people into mostly crypto but also AI, and politics. A place for real conversations and open ideas. Still early and private. More soon. #crypto #indiedev #app #developer #website #python #custombackend #cloudflare





Show Original Post


1 ...348 349 350 351 352 353 354 355 356 357 358 ...1592
UP