“Devagar com o #Andor que o santo é de barro.”
Quinta que vem vamos fazer “partĂculas” (bolinhas que se movem) com Python, Ă© uma boa introdução Ă s ideias de orientação a objetos (na minha opiniĂŁo).
Não vou por o link direto da página em que documentamos os nossos encontros do grupo de estudos, no hackmd, por medo de bots de spam, mas está na imagem. Tem registros e código dos encontros anteriores…
#SescAvPaulista #SãoPaulo #TecnologiaseArtes #Python #py5 #ProgramaçãoCriativa
Quinta que vem vamos fazer “partĂculas” (bolinhas que se movem) com Python, Ă© uma boa introdução Ă s ideias de orientação a objetos (na minha opiniĂŁo).
Não vou por o link direto da página e que documentamos os nossos encontros do grupo de estudos no hackmd por medo de bots de spam, mas está na imagem. Tem registros e código dos encontros anteriores…
#SescAvPaulista #SãoPaulo #TecnologiaseArtes #Python #py5 #ProgramaçãoCriativa
Quinta que vem vamos fazer “partĂculas” (bolinhas que se movem) com Python, Ă© uma boa introdução Ă s ideias de orientação a objetos (na minha opiniĂŁo).
Tem na imagem o link da página em que documentamos os nossos encontros do grupo de estudos (hackmd . io / @ sesc-av-paulista / estudos-em-python, aqui com espaços por medo de bots de spam). Lá mantemos registros e código dos encontros anteriores…
#SescAvPaulista #SãoPaulo #TecnologiaseArtes #Python #py5 #ProgramaçãoCriativa
Cones are MESSED UP #Numberphile
#py5 can export #GIFAnimations (check out py5_tools.animated_gif()) but how to draw an existing #GIF inside your sketch?
How strange… my Manjaro #XFCE woke up this morning with the cute mouse desktop wallpaper image missing!
Hopefully I could point the Desktop configurations back to /usr/share/backgrounds/xfce4/
How strange… my Manjaro #XFCE woke up this morning with the cute mouse desktop wallpaper image missing!
Hopefully I could point the Desktop configurations back to /usr/share/backgrounds/xfce4/
«The official OSMnx reference paper has just been published open-access by Geographical Analysis: [link below] Years in the making, this article describes what OSMnx does and why it does it that way. But wait, there’s more! I also discuss many lessons learned over the past decade in geospatial software development […]» — @gboeing@gboeing
Modeling and Analyzing Urban Networks and Amenities With OSMnx
https://onlinelibrary.wiley.com/doi/10.1111/gean.70009
#Python #OSMnx #geoviz #geopandas #FLOSS #geospatial #OpenAccess
There is no need for class wrappings, “singleton” or “borg” pattern implementations, when you are doing small #CreativeCoding interactive or animated sketches.
Sometimes, keeping global state is needed, and the best, simplest, most readable, teachable way to do it is with some global variables (module scope in Python).
These aren’t the software engineering patterns you’re looking for. #GlobalVariablesCanBeOK
My friend @lr once articulated brilliantly something I had not figured out very well before: American filmmakers have a fixation with torture (and serial killers). I don’t want to watch that. For what I heard, I won’t be watching the second season of The Last of Us :(
I encourage you to think about the things you consume. This may sound like the behavior of a “prude catholic” (they ask around and warn friends about lewd contents in order to avoid it) but I don’t think it’s the same. Dehumanizing violence should be dealt with more carefully.
…like this gorgeous “PDF Export Complex 3D” by Marius Watz (http://mariuswatz.com/).
#Processing IDE comes with a rich collection of example sketches. A few years ago I have started converting the legacy Processing #Python mode examples to #py5 but I never finished it… would you like to help? It could be as easy as trying to run some examples and reporting if they work or not. And if you find a broken one I could help you fix it (or I could fix it myself…)
“Como são aplicadas as receitas públicas [federais no Brasil]? Como são financiadas as despesas públicas [federais no Brasil]?”
AttributeError: py5 has no field or function named "SHIT". Did you mean "SHIFT"?
yes I did!
` elif (not wall_start and
py5.is_key_pressed and
py5.key_code == py5.SHIFT):`
Have you noticed how “Ghormese” in #Andor sounds like French? It’s not French obviously, but the sound of it. I’s like French people talking on an invented language.
I love Daniel Shiffman and the people porting NOC examples, but their insistence on wrapping everything in classes, and in this particular example, to put them on separate files… Take this L-System example: https://github.com/nature-of-code/noc-2-processing-port/blob/main/chapter8/Example_8_9_LSystem/Example_8_9_LSystem.pde
And the JS original: https://natureofcode.com/fractals/#l-systems (you have to open the p5js editor and click a lot to find the lsystem.js file)
In my view it doesn’t help at all learners grasp what is going on to have to switch to two other tabs to look at a few lines of code that could be two functions.
Ignore for a moment it’s Python and compare the previous code to these procedural implementations:
https://abav.lugaralgum.com/material-aulas/Processing-Python-py5/LSystem.html
(Now, I take back the “ignore for a moment it’s Python”, and I suggest you marvel at the elegance of the Python dict)
#natureofcode #Processing #LSystem #Python #JavaScript #ObjectOriented #procedural
#Café O Bibelô em #SãoPaulo, abre 9h–18h de terça a domingo. Rua General Jardim, 295.
#Rush - Xanadu (Live From The Montreal Forum / 1981)
Caption at a certain point on the video: “(majestic whimsical #music)”
So, would you like to tell me how you use #KateIDE with #Python ?
Any “must have” plug-ins?
Something to manage virtual envs?
#KDE #FLOSS
I have an SSD external drive that mounts on one Manjaro machine but is completely invisible (nothing on lsusb
) on another Manjaro machine… any tips? No hub being used, just an USB A to C adapter (and I have tested changing it and this setup used to work on both machines!)
Would you like to learn the very basics of #programming? I can teach you.
I like to teach #Python in the context of making drawings, if you already know how to program but would like to learn some Python or some #CreativeCoding, I can help! Maybe you know someone who would enjoy this?
Schedule a free chat with me and we can discuss further details like time availability and my rates. All my teaching materials are free and open, but I need income to keep producing them. Some generous people make small recurring donations. https://abav.lugaralgum.com/links
I should have another look at #Kate
https://docs.kde.org/stable5/en/kate/kate/kate-application-plugin-external-tools.html
«I used to laugh at my Chilean father’s paranoia about life in the US – not any more» — Stacy Torres
https://www.theguardian.com/us-news/ng-interactive/2025/apr/27/chile-trump-pinochet-authoritarianism
Novo portal da #biblioteca da área de #engenharia e #arquitetura - BAE #Unicamp
Has anyone tried the dark arts of converting #SVG to #shapely recently? :(
Maravilhosa live de aniversário da Live de Python do @dunossauro@dunossauro
https://www.youtube.com/live/IE8coapVoSk
Sensacional…
-> um comentário que conecta com o final da live, as contas do Mastodon todas geram feeds RSS, é só acrescentar .rss no final da url :)
so… maybe I should try a new fresh approach. I gave up avoiding adding a new data structure and created a drawing_dict to iterate and draw. At this point it contains a reference to a drawing function and the attributes to use… it should give me enough flexibility. I’m using shapes as keys,
I have to think about the case of the complex body…
so… maybe I should try a new fresh approach. I gave up avoiding adding a new data structure and created a drawing_dict to iterate and draw. At this point it contains a reference to a drawing function and the attributes to use… it should give me enough flexibility. I’m using shapes as keys,
I have to think about the case of the complex body… the body should be the key in that case. But then, removing stuff will be harder.
https://github.com/villares/sketch-a-day/blob/main/2025/sketch_2025_04_27/sketch_2025_04_27.py
#PyPodcats Hidden Figures of #Python #podcast @pypodcats@pypodcats
Episode 8, with Mojdeh Rastgoo:
https://pypodcats.live/episodes/ep-8/
«We interviewed Mojdeh Rastgoo, the newest member of PyPodcats!
Since discovering Python and the open-source community, Mojdeh has been actively involved in the Python ecosystem. She gave her first tutorial in 2018 at EuroSciPy and has since contributed in many ways. She is a member of the PSF Code of Conduct Working Group, a co-organizer of PyLadies Paris, and now a host of PyPodcats!
In this episode, Mojdeh shares more about herself and her passion for the community. We also take a look back at 2024, discuss our plans for 2025, and introduce a few new changes, including our Open Collective account, where you can support us.
Be sure to listen to the episode to hear about our plans and get to know your new host Mojdeh!»
I want to simplify #pymunk + #py5 use for my students but I struggle with finding good strategies… Pymunk has two types of (linked) objects for each simulated object: body and shape. For complex objects (like concave shapes) you can use more than one convex shape linked to the same body. In these cases I usually want to have an extra shape to draw and hide the triangulation.
I don’t want to keep extra data structures to track the simulation objects to draw. I tried both extending and monkey patching either body or shape objects to be “drawable” so I can just iterate the native pymunk structures and ask stuff to draw themselves (would be nice, huh?), but there is always some snag. If I extend shape classes, I stumble on the complex objects with many shapes drawn with divisions. If I extend the Body class, the problem is static objects have shapes but share a virtual constant body, more of a flag, so I can’t add anything to it, so back to keeping track of a separate list of static shapes… Then performance & serialization issues, I want to be able to easily pickle simulations, but if I add Py5Shape objects to the extended/modified classes they become unpickable…
I have bigger fishes to fry right now (the paralyzing PhD) but this is something I would like to pair with someone more experienced to work on.
Aqui diz que dá pra acessar vários jornais e revistas pelo serviço BibliON, mas eu acho que é tudo mentira, não achei nenhum jornal ou revista :(
If you enjoy anything #chess related, @lichess@lichess is a fantastic, and #FLOSS, platform.
As I recover from yesterday’s viral episode (ugh!) I’m getting some distraction playing the wonderful (and often hard for me) #lichess puzzles: https://lichess.org/training
What does “dev” (developer) mean?
compare and take your own conclusions!
PyMunk with py5 https://github.com/villares/sketch-a-day/tree/main/2025/sketch_2025_04_23
PyMunk with pygame https://github.com/viblo/pymunk/blob/master/pymunk/examples/balls_and_lines.py
#PyMunk #py5 #2Dphysics #CreativeCoding #pygame #pygamece #collisions
muito tempo atrás em uma galáxia muito distante:
https://garoa.net.br/wiki/Introdu%C3%A7%C3%A3o_%C3%A0_programa%C3%A7%C3%A3o_com_Python%2BProcessing
(9 anos atrás no @garoa@garoa )
Inscrições para pessoas mentoras voluntárias na iniciativa BOSS* estão abertas! #Plone #Python #JavaScript
https://docs.google.com/forms/d/e/1FAIpQLSdGeBCRXoGZpR5NERMQEmJRy__sKJDmXsuo2mB3jaFEDYGe1w/viewform
”*BOSS (Big Open Source Sibling) é uma iniciativa de mentoria que visa engajar grupos sub representados na tecnologia para que comecem a contribuir para comunidades Open Source.
Nessa mentoria, muito mais do que desenvolver habilidades tĂ©cnicas, as participantes aprendem competĂŞncias Ăşteis Ă s comunidades Open Source, como se comunicar, trabalhar de forma assĂncrona e remota, desenvolver coletivamente, etc.”
“Step inside the studio of Palestinian-American artist Samia Halaby, one of the earliest innovators of digital art.”
https://www.youtube.com/watch?v=SdrYqKOBe5E
via @guilhermesv@guilhermesv
I’m obviously completely biased, but, if you are an educator teaching #Python and using #pygame / #pygamece, do check out #py5 (https://py5coding.org).
I’m sure other sprite & game stuff must be easier in pygame, but I’m adapting a #PyMunk example, and IMHO, events are so much easier in py5…
(I’ll try post it here tomorrow, I should be doing something else, as usual…)
Chamada aberta da Revista LusĂłfona de Estudos Culturais (RLEC):
https://rlec.pt/index.php/rlec/announcement/view/91
«O presente número temático “Arte, Educação e Comunidade” pretende realçar projetos e práticas que, em contextos educativos formais e não formais priorizem o sentido de comunidade e pertencimento com e através das artes.»
I should be working on my PhD but I’m distracted by:
- My mouse scrolling wheel is jumpy and I can’t fix it, I’ve done many searches about the problem.
- I have an external SSD drive for backup that works perfectly on another computer but is not recognized at all on my main computer (no mention of it on
lsusb
).
Greg Wilson, insightful, scary but plausible…
Segurança da informação Ă© difĂcil, me surpreende que nĂŁo vejamos vazamentos diários de comunicações de polĂticos…
“Lindenmayer Systems, Fractals, and Plants” (PRUSINKIEWICZ; HANAN, 1989) https://link.springer.com/book/10.1007/978-1-4757-1428-9
Bom feriado pra vocĂŞ cujo SSD externo parou de reconhecer :-/
The role of developer skills in #AgenticCoding — Birgitta Böckeler
https://martinfowler.com/articles/exploring-gen-ai/13-role-of-developer-skills.html
via @lr
Testing #AppImageLauncher, an #appimage helper for #Linux (I’m on #Manjaro #XFCE) …
Logo mais 14h30 no #SescAvPaulista vamos fazer #AutĂ´matosCelulares com #Python e #py5
https://abav.lugaralgum.com/material-aulas/Processing-Python-py5/automatos-celulares.html
Várias unidades do #SescSP
fecham sexta-feira 18/4, abrem 19/4, 20/4 e 21/4, mas fecham terça-feira 22/4… confira a lista completa
https://www.sescsp.org.br/editorial/horarios-de-funcionamento-feriado-de-18-e-21-de-abril/
VĂdeo muito simpático sobre a nossa lĂngua dividida em duas (lĂnguas irmĂŁs?)
“Ep. 51 - Galego vs. PortuguĂŞs: A mesma lĂngua?!”
What are you using to edit #markdown locally? I write educational stuff with lots of images, I would like to see them in a preview…
I’m on Linux, and I’d like some #FLOSS tool #fedirecommend
I hope one day (after I finish my PhD) I’ll manage to read many of the wonderful books by @allendowney@allendowney I always start them an then get distracted :((((
Top of my list are
- Think Complexity (lot’s of themes I enjoy, like #graphs and #CellularAutomata) https://greenteapress.com/complexity2/html/index.html
- Think Stats (now on a new 3rd Edition) https://allendowney.github.io/ThinkStats/index.html
“O Governo Federal continua se enroscando mais e mais no WhatsApp.” :((