Posts

This profile is from a federated server and may be incomplete. Browse more on the original instance.

villares, to random Portuguese
@villares@ciberlandia.pt avatar

A #Dreamhost tip, I learned the hard way... if you forget you host a friend's site that is using an old PHP version (like, before 8.0) you'll pay an extra USD 5 every month, billed as PHP extra support or something. Ouch! Just update the PHP version :-S

villares, (edited ) to python Portuguese
@villares@ciberlandia.pt avatar
villares, to random Portuguese
@villares@ciberlandia.pt avatar
villares, to random
@villares@ciberlandia.pt avatar
villares, to python Portuguese
@villares@ciberlandia.pt avatar

Faz uns dois meses eu andei mexendo na minha página sobre transformações do sistema de coordenadas (no contexto de desenho com ( + ). Eu ia ficar feliz se alguém aqui quiser dar uma olhada/revisada e oferecer algum feedback....

https://abav.lugaralgum.com/material-aulas/Processing-Python-py5/transformacoes_coordenadas.html

jackson,
@jackson@bolha.us avatar

@villares quem sabe o @rochacbruno ou o @dunossauro ...

villares,
@villares@ciberlandia.pt avatar

@jackson @rochacbruno @dunossauro ia ser puro luxo :)

Mas se você quiser comentar também... :)

villares, to random Portuguese
@villares@ciberlandia.pt avatar

https://www.youtube.com/watch?v=b1FfZo_Pm7Q Streaming da reunião da #Tecniquim rolando!

villares, (edited ) to python Portuguese
@villares@ciberlandia.pt avatar

Would anyone know of an offline -like editor for , that is, something with blocks like , but to run programs on a normal local Python interpreter?

Update: It seems that is based on , but the later is more well known, so I edited this toot to make it more "findable". Also, I asked a question at the blockly email forum, let's see if someone answers...

mdione,
@mdione@en.osm.town avatar

@villares can pull it off because the language is pretty simple. has so many features I don't think it would make ani sense. and if you would tune the language down, might as well go with scratch. also, maybe check "No Code".

villares,
@villares@ciberlandia.pt avatar

@mdione Hi Marcos, people have done quite some Python with blocks already... sure it is a subset, but it is possible to map all the most important constructs. Have a look at https://hourofpython.trinket.io/from-blocks-to-code-with-trinket and https://think.cs.vt.edu/blockpy/

villares, to saopaulo Portuguese
@villares@ciberlandia.pt avatar

"Grandes Galerias" (conhecida popularmente como "Galeria do Rock") projeto de Maria Bardelli e Ermanno Siffredi https://arquivo.arq.br/projetos/galeria-do-rock

villares, to random Portuguese
@villares@ciberlandia.pt avatar

Amanhã (terça-feira 28/6) 19h30 tem nosso encontro pra fazer a Tecniquim, um zine sobre arte e programação, no Garoa (e também online)

villares, (edited ) to random
@villares@ciberlandia.pt avatar

I've been using #Processing's Catmul-Rom "curve vertex" for maybe 10 years now and I still manage to get it wrong and get frustraded 🤡 #CreativeCoding

update: the problem was some assumptions about the data I was getting...

villares, (edited ) to random Portuguese
@villares@ciberlandia.pt avatar

My students want o use emojis with (obviously they want to display lewd stuff, like aubergines [falling with pymunk]) and it seems like this is not that easy ... 😭​

(just showing emojis kind of works, https://discourse.processing.org/t/use-emoji-in-fonts-in-processing/43685/10 but I think I'm in trouble trying to get the glyph's shapes with undocumented PFont's .getShape()... maybe I'll post more about this if I can figure exactly what is going on)

villares,
@villares@ciberlandia.pt avatar

[public update to previous post]
hahahaha, I was kind of expecting something like this: GoToLoop went diving into the Processing source to see how getShape works... https://discourse.processing.org/t/getting-a-pshape-from-an-emoji/44479

I'm not really sure I'll pursue this, I have to think carefully, choose my battles, save my energy :D

cc @py5coding

villares, to random German
@villares@ciberlandia.pt avatar

@andreasjung It costs little to enforce masks and many people won't come if they are not required. It was great we had them. I wish we had more open air activities as well.

andreasjung,
@andreasjung@mastodon.social avatar

@villares it is not anyone's business anymore to care about our personal health and their risks. Point.

villares,
@villares@ciberlandia.pt avatar

@andreasjung sure, sure, let's do super spreader sprints </sarcasm>

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

I wrote this to demo a quick #Python #Pillow #PIL 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 #PyConUS24 :)

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>
villares, (edited ) to saopaulo
@villares@ciberlandia.pt avatar

Back to after a magical week in Pittsburgh...

ana,
@ana@ayom.media avatar

@villares meu nariz coça só de ver esse ar seco e poluído do fim da tarde :ablobeyes:

villares,
@villares@ciberlandia.pt avatar

@ana é... tá seco e poluído mesmo :(

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