@villares@ciberlandia.pt

ciberlandia.pt

Publica√ß√Ķes p√ļblicas de @villares@ciberlandia.pt

Recent twts from @villares@ciberlandia.pt

I really like @bitartbot@bitartbot an I always wanted to try some of the patterns with #py5 (#Processing + #Python), also #numpy vectorization seemed cool to try…

#print(pattern) img = py5.create_image_from_numpy(pattern * 255, 'L') py5.image(img, 0, 0, py5.width, py5.height) py5.save('out.png') @np.vectorize def func(x, y): try: return (~(int((x & y) / (x ^ 8)) | ((y * 10) % (~x)))) % 3 > 0 except ZeroDivisionError: return 0 py5.run_sketch(block=False) " target="_blank"> Image

‚§č Read More

Uma pena que com a pandemia eu não aguentei continuar o meu boletim por email, teve alguns bons até :(
Esse aqui era cheio de referências comparando aprender a programar com aprender uma língua estrangeira.

A pity that with the pandemic I couldn’t keep up with my newsletter, it had some good instalments I suppose :(
This one was full of references comparing learning to code with learning a foreign language.

https://abav.lugaralgum.com/sketch-mail/2019-20

‚§č Read More

Meu lembrete periódico de que a melhor tradução em português do termo #generative é gerativo/gerativa, como atesta esta obra de 1976 sobre gramática gerativa (conceito introduzido pelo Chomsky na década de 50) https://buscaintegrada.ufrj.br/Record/aleph-UFR01-000348587

Est√©tica Gerativa (como traduziu Haroldo de Campos e depois J√ļlio Plaza e M√īnica Tavares o manifesto Generative Aesthetics de Max Bense)
Arte gerativa > Design gerativo > inteligência Artificial gerativa

Generate -> gerar
Generative -> gerativo/gerativa

‚§č Read More

#Processing #Python #numpy #shapely #py5 #sketchAday for 24th and 25th May

#def draw(): background(200) fill(255, 100) draw_shapely(mp) fill(0, 200, 0, 200) draw_shapely(union) save('out.png') def draw_shapely(shp): if isinstance(shp, (MultiPolygon, MultiLineString)): for p in shp.geoms: draw_shapely(p) elif isinstance(shp, Polygon): begin_shape() for x,y in shp.exterior.coords: vertex(x,y) for hole in shp.interiors: begin_contour() for x,y in hole.coords: vertex(x,y) end_contour() end_shape(CLOSE) elif isinstance(shp, LineString): with push_style(): no_fill() begin_shape() for x,y in shp.coords: vertex(x,y) end_shape()" target="_blank"> Image

Image

‚§č Read More

O @lr que expressou muito bem algo que eu sentia mas não sabia dizer: que grande M é o fetiche que os estadunidenses tem com tortura! Nos filmes e seriados e tal, que grande M.
Eu n√£o quero ver cenas de tortura!

‚§č Read More

Will I ever get a good #numpy intuition?

I was making some clumsy left-right comparisons and swaps with grid.T[1:] vs. grid.T[:-1] and it worked. Now I tried grid vs. np.roll(grid, …) and I’m struggling to make the masks for the swap work :(

‚§č Read More