Muy apropiado en estos tiempos que corren en los que parece que la ley del más fuerte está a punto de imponerse.
Friday, 14 February 2025
El pájaro grande se come al pequeño
Friday, 7 February 2025
Bluesky posts and followers
Now that I am posting a random photo each day, I find myself looking forward to see which one will be posted. A few days ago an old photo got almost 300 likes and yesterday another old photo got also ~300 likes and over 30 reposts.
I have also been looking at my followers in Bluesky, most of which follow me because of one list I am in.
Monday, 3 February 2025
Even more flet adventures
The automated posts of random photos started well, however I wanted to have customized messages for each photo. That means writing a short message for each one. Not difficult, but tedious. Enter Gemini and flet.
I used this prompt to create a skeleton script of what I wanted. Of course the script did not work out of the box even after a few attempts. Still, good enough to start the debugging and make something useful.
I would like to create a flet app which allows the following:
-select folder with images (jpg and png file formats). Do not use filedialog for this. Use filepicker
-for each photo, the user can create image captions which are saved in separate text files (same name as photo, just with .txt extension)
I ended up with less than 80 lines of code to create this mini tool, which made the whole task a lot easier. At some point I may give a try to one of the image captioning ai models in Huggingface. Just not sure I want my photos captioned without supervision and the posted.
PS: I downloaded the Salesforce/blip-image-captioning-base model from Huggingface and gave it a try. Considering the low effort the hit rate is not bad. Still, not something I would trust being posted without supervision. The automated text generated for the five photos above was:Friday, 31 January 2025
Hello automated posting of photos in Bluesky
I posted a daily photo in IG for a long long time. This time round, I will be posting a photo each day in Bluesky using a script. Plus it is a random photo from a folder containing a few hundred of them, so it is also a surprise for me which one ges published each day. I would love to add Alt text, but that would require to run them all through some sort of AI (aka learning how to automate it). Not quite sure about that from the ethical point of view (plus who says the descriptions will be any good). On the other hand, creating descriptions for hundreds of photos is quite some work. Need to think about it.
Sunday, 19 January 2025
More flet adventures
After getting the photo collage desktop app to a reasonable state, I am looking now at using it as a web app, which turns out to be reasonably straight forward, although a few tweaks are required here and there. I got myself a small server in the cloud to do some trials and so far I managed to set up nginx as a reverse proxy, set up certificates with certbot, and set up two separate apps side by side which are launched as services.
Lots of learning. Also plenty of issues to fix so it shows well on mobiles and tablets and to manage upload and download of files. Still, plenty of fun.
Saturday, 18 January 2025
Good bye, CalendarPuzzle bot in twitter
After a bit more than three years, today the CalendarPuzzle posted its last post in Twitter. Sorry for the followers there, I do hope that they will make their way to Bluesky and follow the bot posting there.