251107 ------ A small script to build HTML presentations: let a=[...document.getElementsByClassName("slide")].map((a,b)=>[ a,"slidenote"==(b=a.nextElementSibling)?.className?b:a]),b=0,c=0, d=()=>a[b][c].scrollIntoView(),e=new BroadcastChannel("s"),l=a. length-1;d();e.onmessage=({data:a})=>{c^=a.c,b=a.b,d()};document. addEventListener("keypress",({key:f})=>{b+=(f=="j")-(f== "k");b=b<0?0:b>l?l:b;c^=f=="n";e.postMessage({c,b});d()}) 251103 ------ Recurso para programação rápida e exemplos um pouco melhor que o codepen em termos de ter 2 paineis lado a lado (parece francês? o que também é bom) https://www.codepuzzle.io/ 251030 ------ Autopoietic Mutualism Qual o futuro dos sistemas IA+Humanos? https://utopai.substack.com/p/autopoietic-mutualism 251024 ------ Arduino tutorials: https://randomnerdtutorials.com/25-arduino-shields/   251018 ------ Free ebooks foundation https://github.com/ebookfoundation Very interesting: https://unplannedobsolescence.com/blog/what-dynamic-typing-is-for/ HTMX, DSL, Webdev... very good position that I totally agree with. 251013 ------ Prompts for LLMs Meet me where I am (Vygotsky's theory of zone of proximal development): Gauge my understanding from what I write. If unclear, ask one question about my current knowledge level, then proceed. This one is amazing to have excelent “conversations” with the machine. 251013 ------ Omarchy Arch based Hyprland - tiling window manager Install: Download ISO https://omarchy.org/ Burn to USB with Balena https://etcher.balena.io/ Boot - Profit. Manual https://learn.omacom.io/2/the-omarchy-manual Ditching Windows 10 Microsoft will ditch Windows 10 tomorrow as a measure to push the sell of new AIed computers. I still have one machine (A Lenovo E15) that is very capable still running Windows 10. It was previously with Ubuntu but it will go back to Linux soon. I'll do the switch back to Linux on that machine during Xmas 2025. And I'll try out Omarchy[1]. [1]: https://omarchy.org/ 251011 ------ Arrays count occurences if you have an array A=[1,1,1,3,4] and want to count the number of 1s in A... in python A.count(1) in julia count(i->(i==1), A) hm... better for some things where your condition is more complex, but if you write count(1, A) it doesn't default to "equality" and crashes. in C ... iterate over the array and sum those occurrences up? What? Isn't there a better way? Using `at` on the mac Do this first: sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.atrun.plist Being Pedantic alias dcc='gcc -Wall -Werror -Wpedantic -Wextra -std=c99' C resources https://en.cppreference.com/w/c/language.html https://www.cprogramming.com/ https://www.iso.org/standard/82075.html https://gcc.gnu.org/ Why C? Tried many languages, but end up returning to C even if it cuts you up sometimes. Think I'll do AoC 2025 (if it goes on) in C. 251010 ------ Playing with minimal layouts. Just changed everything in this log file, so I don't have to html like there's no other thing to do. Let's see if this works. In any case this is just text with a style tag at the end. Browsers can handle all these things. 251009 Pillow (Python image library) [2]documentation 251003 Andei a mexer nos estilos da página, torná-la um pouco mais única, mais pessoal e embora não seja tão simples como antes em termos de CSS, agora está um pouco mais ‘estranha’, e isso nem sempre é uma coisa má. 251002 Para referência rápida em bash nome_ficheiro=${full_path##*/} nome_pasta=${full_path%/*} O # é match a partir da esquerda, o % é match a partir da direita, dois do mesmmo é greedy 251001 [3]Arduino as ISP Algumas boards utilizam o ATmega328PB e precisam do [4]Minicore 250930 Computer Vison? Descarreguei o livro do [5]Richard Szeliski. 1000 páginas sobre o assunto. Algo interessante irei encontrar para ler. Atractores Caóticos com visualizações muito interessantes. [6]Random Attractors Found using Lyapunov Exponents E que tal o Atractor de Hénon escrito em Julia? [7]Orbiting the Hénon Attractor 250929 A página dos comandos builtin também é muito interessante: [8]builtin Zsh commands Uma página muito interessante com documentação para os Hooks da ZSH. [9]Hook Functions Alguns one liners são mesmo interessantes: chpwd() ls TRAPERR() print -u2 ERROR, Exit code: $? No mundo atual, parece que tudo se está a partir em cacos, de repente uma loucura dirigente acha que vai mudar o mundo a murro. Onde vamos parar? Na Moldova o partido pró-europeu conseguiu manter uma maioria absoluta. Tudo o que Europa não precisava neste momento da história era o começar de uma aliança de países pró-Putin ali para os lados dos Cárpatos. 1h walk This is a simple log, no RSS, no anything. Just a simple html file that is edited directly on the servers. Sometimes I just want something that stores stuff without creating a "Post" Another entry? References 1. https://www.sixhat.net/rss.xml 2. https://pillow.readthedocs.io/en/stable/index.html 3. https://docs.arduino.cc/built-in-examples/arduino-isp/ArduinoISP/ 4. https://github.com/MCUdude/MiniCore 5. https://szeliski.org/Book/ 6. https://paulbourke.net/fractals/lyapunov/ 7. https://observablehq.com/@yurivish/orbiting-the-henon-attractor 8. https://zsh.sourceforge.io/Doc/Release/Shell-Builtin-Commands.html 9. https://zsh.sourceforge.io/Doc/Release/Functions.html