python

Back Open Paginator
22.12.2025 06:51
mnvr (@mnvr@mastodon.social)

Adding a semicolon at the end of the last line of a cell supresses output - Useful if we just want the side effects (e.g. drawing a plot)





Show Original Post


22.12.2025 05:12
devto_vn_bot (@devto_vn_bot@mastodon.maobui.com)

Từ 2 tuần xuống còn 15 phút: Kiến trúc hệ thống di chuyển dữ liệu hiệu suất cao.

Sử dụng S3 để lưu file, Redis làm bộ nhớ tạm (có checkpoint & nén dữ liệu), Celery xử lý bất đồng bộ với 8 worker song song, chia nhỏ dữ liệu linh hoạt theo tài nguyên hệ thống.

Xử lý 1 triệu bản ghi trong 20 phút – không crash, phục hồi tự động, theo dõi thời gian thực.

#DataMigration #SystemDesign #Redis #Celery #Scalability #DevOps #Python #Backend #LậpTrình #KiếnTrúcHệThống #XửLýDữLiệu #TốiƯuHiệuSuất #D




Show Original Post


22.12.2025 04:13
amorillo (@amorillo@mastodon.social)

Developing a Python app using Azure Cosmos DB

github.com/Azure-Samples/azure




Show Original Post


22.12.2025 03:59
PowellDean (@PowellDean@fosstodon.org)

We use Azure DevOps at work. I have active stories across 4 different project boards. I use Obsidian for keeping more detailed notes.

I need a "single pane of glass" to work in. In my daily notes section, I can now add a note with a reference to a DevOps story. I wrote a Python program which then runs through Power Automate at the end of each day, and updates my comments directly to each referenced DevOps story. It's still a bit clunky, but it works for me.

#Obsidian #PowerAutomate #Python




Show Original Post


22.12.2025 02:52
villares (@villares@pynews.com.br)

Experimenting with multiple starting points (and the dark background). Maybe tomorrow I'll try to animate these a bit... 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


22.12.2025 02:31
TechKeysX (@TechKeysX@mastodon.social)

V - S1 EP12 Lab 3 - Machine Learning in Python - Accidental Class Variable - Shadowing in Python





Show Original Post


22.12.2025 01:57
senil (@senil@gts.social.senil.me)

Content warning:morshutalk-v2 dev thread I guess?


(Larger updates are prob going to be blog posts once things are off the ground and things are Allegedly Functional, but for now this'll do)

Today's "progress" (if I can even call it that) mostly just consists of getting the absolute basics down for how to structure things, refreshing myself on how to Python, and also pulling over the tiny bits of code that won't be changed from morshutalk-output (being the .wav file write). Still need to look into alternatives for a bunch of the packages, I want to try and use stuff that's up-to-date and doesn't rely on deprecated features like audioop.

I think I'm only going to have morshutalk-v2 support outputting the raw wav file, and/or convert it to opus (in an .ogg container) or, failing that, aac. Whether I'll have it always do both or not IDK, it depends on whether I can skip writing the wav file and can pass the appropriate bytearray into the encoder.

On Linux that's fairly easy so long that opusenc is installed, since I can just use subprocess to do a system call within the python code. But I really want to try and avoid doing anything like that - if I can get a mostly-straightforward transcode into opus or aac or whatever I'd be much happier, I want to try and avoid any system-level dependencies if possible. Mostly as an exercise in portability, and also to avoid any weirdness that'd come with versioning outside of my control.

But "technically functional" is better than "not functional" at least. The actual morshu-v2 class and all that doesn't exist yet, since that all has to wait for me to identify what libs are viable replacements for what the OG version of morshutalk uses, and what I can wrap into native Python code (if possible and if not painful to do so).

#MorshuTalk-v2 #Python




Show Original Post


22.12.2025 00:10
podfeet (@podfeet@chaos.social)

@eddietonkoi has taken nerdom up a notch. In this article, he explains why and how he created his own spelling and structure checker for his wife’s manuscripts using Regular Expressions and Python. I could not love this more.

podfeet.com/blog/2025/12/editi

#regex #python #fiction




Show Original Post


22.12.2025 00:02
frlan (@frlan@social.milchreislieferei.de)

Denkt daran, ein paar Euro wenn möglich, in die Kaffeekasse von wichtigen Softwareprojekten mit #Django oder der #PSF / #Python oder bei #Tor oder oder oder oder einzuwerfen. Im Grunde egal – eben bei eurem Freie Software-Universum und den Tools, die ihr regelmäßig nutzt.

Dank des Orangen Mannes sind viele Unterstützungen durch die USA ausgelaufen und Europa hat es nicht auf den Deckel gebracht, da einzustehen. Jetzt müssen wir ran.




Show Original Post


21.12.2025 23:20
davidvujic (@davidvujic@mastodon.nu)

The recording of the Q&A from my EmacsConf 2025 presentation is now published, where we talk about Emacs in general and the setup I use for Python development. Live and improvised 😀

#python #emacs #emacsconf2025

youtu.be/JIpcbE1XrKI?si=dALsqp




Show Original Post


21.12.2025 23:01
w (@w@bolha.tube)

Improvisando com FoxDot | taconi | Algorave Brasil 2025/12/20

bolha.tube/w/hx3yneu6ZviSpQ8dd




Show Original Post


21.12.2025 22:56
ax6761 (@ax6761@freeradical.zone)

How does passing an option value with spaces work in various option parsing software (in context of shell & #commandLineInterface)?

Expectation is that the option will have the entire string passed intact. This came up due to github.com/sahib/rmlint/issues .

#Python "argparse" & #Perl "Getopt::Long" are what I personally care for; may check self; did not have to think about this before.

#optionParsing #softwareDev




Show Original Post


1 ...781 782 783 784 785 786 787 788 789 790 791 ...1578
UP