Exploring Algorithmic Image Processing for Large Format Printing | May 24 2026, 22:40

I’m playing with algorithmic image processing. Images only look interesting when printed in a large format – because all these fine lines merge when scaled to a phone screen. I’ll post a close-up in the comments.

It works like this: an image is given as input, and it is divided into squares of different sizes. Each square represents one number: how dark it is. The darker it is, the more lines are drawn inside. The lines are not straight – they are Bezier splines. They smoothly transition from one square to another because the points at the boundaries are shared. What results is not a grid, but a single continuous thread. Color – the image is split into CMYK channels (like in printing). Each channel is processed separately: its own grid, its own lines. Then the layers are superimposed on each other – and from three or four black-and-white plates, a colored picture emerges.

The image doesn’t look blocky because the splines smoothly transition from one square to another, but there is a problem: dividing the image into 10×10 squares essentially reduces the resolution tenfold. To correct this, several passes are made with different square sizes and shifted grids. The first pass uses large cells, the second is finer and shifted 10 pixels to the right, the third is even finer and shifted diagonally.

The entire process is controlled by a JSON config – separate parameters for each channel, specific settings for each pass within a channel. On output – SVG, which can be scaled to the size of a wall without loss of quality, and PNG, in which CMYK layers are superimposed with transparency.

Mastering Cross-Posting: From Facebook Frustrations to Dual Blogging Excellence | May 23 2026, 14:28

I have perfected the cross-posting from Facebook to my two blog sites [which almost no one visits] – beinginamerica.com and raufaliev.com. When a new post is published on Facebook, a mechanism is triggered to translate the post into English, process attached images, generate descriptions for them, create a title based on the text of the post and descriptions of the images, generate tags from the same basis, record the post in turso db – this is a cloud database, free up to certain limits, create embeddings via openai, record in qdrant cloud – this is also a cloud database, but vector-based, and finally, upload images to wordpress via API, and publish the post in English and Russian via API.

All would be well, but of all the APIs, the silliest one is Facebook’s. Firstly, for pages like mine, transitioned to New Experience, it’s almost impossible to use most of this API. Well, it’s possible, but you have to spend a long time proving to Facebook that you really need it, by showing startup documents, demonstrating the application, etc. Obviously, they are reluctant to deal with something that takes content out of their system. In addition, the token that gives access to the latest messages is relatively short-lived (possibly a few weeks), and it needs to be obtained anew through a browser only. So, any automation requires regular attention, otherwise it breaks.

If you mess up and don’t offload the latest posts through this Facebook Graph API in time, they just disappear from the list of recent ones and that’s it, no more API access to them. The only way is to request an archive download from Facebook. This download is also rather silly – it requires a lot of transformations and removing unnecessary stuff. For example, in the file containing posts, which I process, for some reason there are links that I sent in comments without accompanying text. And the comments are in a separate file!

To assign tags, I had to solve a separate challenge. Here’s the thing: there are about 10,000 posts over all time. That’s a big chunk, and you can’t build tags from it because it doesn’t fit into the contextual window of the LLM. But you need to. So, I did this: a script takes random posts from the 10,000 in such a volume that their total size is just below the specified limit in tokens, and at the end of this block, it adds the prompt “generate the most common tags for me, 30 pieces” (I simplify the prompt used). In the end, I ran this 10 times and got 10 sets of tags with 30 pieces each, generated for different slices of the database. That made 300 tags, some of which are complete duplicates, while others are synonyms and closely related in meaning. All this is fed into the LLM, and we get a list of tags and a hierarchy of tags. Now we have a limited set of tags that reflect the 10,000 posts as closely as possible. Turns out, that in almost 20 years on Facebook, my breakdown is as follows:

Tag Posts

==================================================

#Russia 3412

#Thoughts 3146

#Tech 3105

#Culture 2765

#Hobbies 2726

#AI 1603

#Science 1367

#Software 1358

#Travel 1298

#Learning 1138

#Society 1050

#Nature 958

#Education 915

#Business 902

#Art 894

#Programming 889

#Humor 840

#History 807

#Gadgets 750

#Moscow 713

#USA 614

#Cinema 567

#Webdev 493

#Music 476

#Sports 473

#Mindset 443

#Auto 400

#Books 386

and so on. This list includes both tags from the limited list and tags that the LLM appointed to content simply because it didn’t find anything suitable in the limited one.

Tags from the limited list became categories on the site. The rest of the tags + these just became regular wordpress tags.

As for image search. I had two ideas on how to do it. The first – OpenCLIP. It’s pretty straightforward but requires hosting the model somewhere. Easy on my machine, but inconvenient to start it each time, plus I planned to move the migrator to a cheap server on Amazon. It’s also okay to calculate in cloud models, but you have to pay a bit, which is yet another dependency. But the main thing – it works quite well without it. I generate descriptions for images using OpenAI, which is used for translating into English anyway, and then create embeddings using a large model. So far, all search tests are a great success. Especially when there’s text on the image, and it’s a big question whether OpenCLIP would have interpreted it successfully.

In the end:

1) wordpress raufaliev.com – free

2) wordpress beinginamerica.com – free

3) turso db where all posts are stored – free

4) qdrant cloud where embeddings are stored – free

5) openai for translation and image descriptions – not free, but inexpensive (cost $30 for post processing over a year).

I attach two screenshots – how the search by images works, and by texts, as well as the migrator dashboard.

Nadezhda’s Firsts: Oil Painting and Piano | March 12 2026, 18:55

Last week, Nadezhda Shulga painted an oil painting for the first time in her life and played the piano with one hand for the first time in her life! Nadya, well done!!! She asked me so many times to paint nature, that she eventually went ahead and painted it herself.

The Lost Version of Repin’s “Unexpected”: A Revolutionary Woman’s Tale | March 01 2026, 23:59

It turns out that in the first version of the painting “Unexpected” the main character was a woman, a Narodovoltsy revolutionary! This was a smaller version, later Repin painted a larger one with a man – the one everyone knows.

And the first version is kept in the Tretyakov Gallery but it is not displayed.

Well, as everyone knows. In general, Russian and Ukrainian artists are hardly known outside their countries. There seems to be one painting by Repin in the Metropolitan Museum of NY and a few in the Orsay, but that’s almost nothing, and I wouldn’t be surprised if they are all in storage.

Here people know Rublev, the Russian avant-garde (Malevich, Kandinsky, Chagall), but nobody (except professionals) knows Shishkin, Levitan, Vasnetsov, Surikov, Savrasov. Despite the fact that many of them studied in Europe and worked from there. Remember Ivanov and his “The Appearance of Christ Before the People”.

Now I’m googling why. They write that the French considered Russian art of that era something akin to journalism in oil. Like, using the canvas as a platform to preach morals, tell stories, expose social injustices. Social drama, suffering peasants, harsh winter landscapes, and execution scenes – all this seemed frightening to Americans. Kind of like Dostoevsky in oil. How can you hang that above a fireplace?

Exploring the Tango Vibes: Astor Piazzolla and Beyond | February 23 2026, 06:31

A few days ago, I decided to Google whether Astor Piazzolla’s music would be performed anywhere nearby, and saw that this very weekend, close by in Strathmore, there is a Tango After Dark show featuring Piazzolla’s music, accompanied by an Argentine orchestra and Argentine tango dancers. Really cool, but I didn’t bring any recordings here.

While Googling what this exotic instrument the local soloist was playing – the bandoneon – I stumbled upon a very very very cool concert of Mario Pietrodarchi accompanied by the Minsk Orchestra. This concert occupies the top five spots in the most popular recordings of the Belarusian State Chamber Orchestra – just go to popular and listen to everything, all of it’s great. You’ve probably already heard Libertango and Oblivion without me, they are ubiquitous, so I’m attaching Angel’s Dance (Milonga del angel) in the comments.