villares, to python Portuguese
@villares@pynews.com.br avatar
villares, to python Portuguese
@villares@pynews.com.br avatar
villares, (edited ) to comics Portuguese
@villares@ciberlandia.pt avatar
villares, to python
@villares@ciberlandia.pt avatar

I wrote this to demo a quick conversion of an image to grayscale with a dialog to select the file... then applied it to a picture of me and @rennerocha
taken by John as we were flying back home after wonderful :)

from tkinter.filedialog import askopenfilename<br></br>from pathlib import Path<br></br><br></br>from PIL import Image<br></br><br></br># Open a select file dialog (a bit ugly on my OS)<br></br>file_path_str = askopenfilename() # '' if cancelled<br></br>if file_path_str:  # guards against a cancelled dialog<br></br>    file_path = Path(file_path_str) # a pathlib.Path object from the str<br></br>    new_name = file_path.stem + '_altered' + file_path.suffix # keep suffix<br></br>    # Make it output a PNG if you want LA mode to keep alpha<br></br>    # new_name = file_path.stem + '_altered.png' maybe I should check for PNGs?<br></br>    output_path = file_path.parent / new_name<br></br>    try:  # to handle any exceptions (runtime errors while converting/saving)<br></br>        with Image.open(file_path) as im:  # load image<br></br>            altered_im = im.convert('L')   # to grayscale (use 'LA' to keep alpha)<br></br>            altered_im.save(output_path)   # save image<br></br>            print(f'Saved {output_path.name}!')<br></br>    except Exception as err:  # ... treat exception<br></br>        print(err)<br></br>
miketheman, to python
@miketheman@hachyderm.io avatar

Well, another is done (for me - continue for another couple of days!)

It was excellent catching up with old friends and meeting tons of new ones. Pittsburgh was definitely a super cool vibe, 2025 should be fun too.

I'm looking forward to recharging my depleted physical batteries, so I can jump into all the important work we have ahead of us to continue to support this amazing community.

See you online somewhere!!

codeandsupply, to Pittsburgh
@codeandsupply@hachyderm.io avatar

Hey folks, one last entreaty before the #PyConUS hashtag trails off.

We could really use your financial support. Our non-profit #ScholarshipFund is the travel sponsor for #PyCon US 2024.

We've recouped only 4% of what we gave. We're here to serve & happy to do it but could really use some boosts across the fediverse to drive donors so we can do it again.

Pls donate to help more people experience #Pittsburgh through tech conference travel:

https://codeandsupply.fund/donate

And then boost!

#Python

leanpub, to gpt
@leanpub@mastodon.social avatar

LLM Prompt Engineering For Developers by Aymen El Amri is on sale on Leanpub! Its suggested price is $29.00; get it for $12.50 with this coupon: https://leanpub.com/sh/YM2oXmFa

danzin, to python
@danzin@mastodon.social avatar

Did anyone in the fediverse attend the online/remote way?

I'm interested in trying it next year (hoping it'll be available again), but haven't seen any toots from online attendees.

In related news, it's been a blast watching all the PRs and issues from the sprints landing, I hope to participate next year.

treyhunner, to python
@treyhunner@mastodon.social avatar

You can use Python's "next" function to get the next line from a file

Read more 👉 https://trey.io/UFI8MG

leanpub, to Software
@leanpub@mastodon.social avatar

QuantLib Python Cookbook https://leanpub.com/quantlibpythoncookbook by Luigi Ballabio and Goutham Balaraman is the featured book on the Leanpub homepage! https://leanpub.com

leanpub, to ai
@leanpub@mastodon.social avatar

Neural Networks with Python by GitforGits | Asian Publishing House is on sale on Leanpub! Its suggested price is $34.99; get it for $22.39 with this coupon: https://leanpub.com/sh/Q8SJ2kv3

pyOpenSci, to opensource
@pyOpenSci@fosstodon.org avatar

💻 pip install ncompare and get started comparing the structure of two NetCDF datasets!

ncompare, a Python package in the pyOpenSci ecosystem, created by Daniel Kaufman, generates a view of the matching and non-matching groups and variables between two NetCDF datasets.

📄 Check it out: https://ncompare.readthedocs.io/en/latest/

beanjbunny, to gamedev
@beanjbunny@nerdculture.de avatar

I fixed this bug in my code yesterday but I'm sitting here crying laughing about it today. Godot The Game Engine You've Been Waiting For really said with its whole chest, THAT NULL CHECK CAN'T STOP ME BECAUSE I CAN'T READ

popey, to ubuntu
@popey@mastodon.social avatar

Work it, baby!
An older Entroware Athena laptop is breaking more than a sweat. Poor little nVidia GTX 980M is struggling a touch! 😅

A screenshot of btop (bottom) with the cpu a little busy running some python. Getting a bit warm!

Bristow_69, to python French
@Bristow_69@framapiaf.org avatar

C'est parti pour la Nuit du Code au lycée 👍

Avec @harfeur !

tokudan, to python German
@tokudan@chaos.social avatar

Gibt's irgendwo Doku, in welcher Dateistruktur man ein generisches Projekt am sinnvollsten aufbaut?

malemburg, to python
@malemburg@mastodon.social avatar

I'm looking forward to speaking at PyCon Italia 2024, in Florence, Italy, later this week on Friday.

The title of the talk is "Advanced parsing of structured data using Python's new match statement". Given that the match statement still isn't used much in Python Land, I want to make people more aware of how useful it can be for parsing in Python.

https://2024.pycon.it/en/event/advanced-parsing-of-structured-data-using-pythons-new-match-statement

The talk resources are available on Github:

https://github.com/eGenix/egenix-advanced-match-parsing

mblayman, to python
@mblayman@mastodon.social avatar

🐍 On this Building SaaS with #Python and #Django, we went through the upgrade process of going from Tailwind 2 to 3. Along the way, I improved my dev toolchain. https://www.youtube.com/watch?v=Sqg7nSRlEEE

bbelderbos, to python
@bbelderbos@fosstodon.org avatar

Looking back upon an amazing #PyConUS 🐍🤯

It has shown me once more that although you’ll learn about cool #Python trends, ultimately it’s all about the people + the opportunity to connect F2F. 😍

Attend conferences! They are important for your career + ongoing inspiration💡 📈

davidr, to python
@davidr@hachyderm.io avatar

How much an insane dinosaur will I be if I ask my junior to use 2 space indents in vs the PEP-8 4 space waste-of-whitespace?

Actually, I think I might prefer 3, but I'm pretty sure everyone will hate me if I pick an odd prime...

halildeniz, to python
@halildeniz@mastodon.social avatar

hello everyone.

In today's article, we learn data types with Python at beginner level.

https://denizhalil.com/2024/05/21/learning-basic-data-types-in-python/

#python #pythonprogramming #datatyes #pythonbasics #pythontutoriol #coding

beanjbunny, to gamedev
@beanjbunny@nerdculture.de avatar

Some people code in python, I shit post.

ucodery, to python
@ucodery@fosstodon.org avatar

Missing #PyconUS already? Missed it altogether and waiting for video uploads? I just found out that my @PyGotham talk is up on YouTube https://youtu.be/zf5so0mmxbo?si=ergHpXQCjfx5KCsD
#Python #TechTalk #PyGothamTV

ramikrispin, to python
@ramikrispin@mstdn.social avatar

Opened my Monday on debugging/fighting Python dependencies on Docker image, how is your Monday so far? 😅

Gif credit: Giphy

#python #docker

asx, to python
@asx@hachyderm.io avatar

Now that PyCon is over and you are heading back to your home base with ideas on what to do, I want to remind you that CfP for PyOhio is open till May 26, 2024 AoE. Details on the CfP are here: https://www.pyohio.org/2024/speaking/cfp/
#pycon #pyconus #pyohio #python #cfp

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • kavyap
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • tacticalgear
  • khanakhh
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • everett
  • ngwrru68w68
  • Durango
  • megavids
  • InstantRegret
  • cubers
  • GTA5RPClips
  • cisconetworking
  • ethstaker
  • osvaldo12
  • modclub
  • normalnudes
  • provamag3
  • tester
  • anitta
  • Leos
  • lostlight
  • All magazines