I was puzzled on why #syncthing on my laptop was showing "2021-06-02" as last synchronization date with my #raspberrypi.
So I logged in my raspi via ssh, and magically the two devices started to sync.
A quick look at the raspberrpi's journal (# journalctl --since=today) showed:

ago 02 17:22:20 raspberrypi systemd[32888]: pam_unix(systemd-user:session): session opened for user pi(uid=1000) by (uid=0)
[...]
ago 02 17:22:21 raspberrypi syncthing[32908]: [start] INFO: syncthing v1.12.1-ds1 "Fermium Flea" (go1.15.9 linux-arm64) debian@debian 2021-04-08 21:52:00 UTC

🤦
I had setuped Syncthing to start with a user #systemd service unit, so the service was running only when user had log in and was stopped when the user logs out!

I want the synced files to be own by the user, so I have to run Synchthing from a system unit, but as my user. Now.. I could copy the user service file and set up a system service file from there but.... the kind developers of Syncthing have done that for us already!

It's been a matter of

$ systemctl --user disable syncthing.service --now
$ sudo systemctl enable synching@pi.service --now

where pi is the user Synching will run as... nice!

Penguins on a Plane


questa è vecchia, recuperata grazie alla wayback machine. L'originale è del 2007. Purtroppo mancano le immagini di contorno

Trama:
Un'agente dell'FBI porta a bordo di un aereo dei pinguini, senza sapere che il personaggio seduto a fianco a lui è un dirigente microsoft.
Quando, per una turbolenza, i pinguini scappano dalla stiva facendo irruzione tra i passeggeri, il dirigente entra in panico e dirotta l'aereo, minacciando i piloti e le hostess con una copia di windows vista premium, urlando "developers! developers! developers!"
Sarà compito di un ornitologo in pensione (S.L. Jackson) riportare la situazione alla calma, ritornando a un mestiere che aveva lasciato per colpa di una tragica vicenda.

in reply to Sebastian "spaetz" Spaeth

You can load the bitmap into a Gdk.PixBuf, then you can do whatever.
git.sr.ht/~fabrixxm/zint-vapi/…

I wanted to have the bitmap field as uint8[], mostly because looks vala-y and because it's what is in Gdk.PixBuf.from_data()'s signature).
I found that it needs a length to works with Gdk.PixBuf.from_data(), so I added the get_bitmap() method to set the length.. It works but I don't know if it's the correct solution... there so much things I'm not sure about and docs are useful only up to a point...

(as a side node, the zint.h header I have on disk has a bitmap_byte_length field which would be so good to use as length value for bitmap (setting it directly in field's annotation in vapi) but looks like is not used and docs doesn't mention it.....)

Questo sito utilizza cookie per riconosce gli utenti loggati e quelli che tornano a visitare. Proseguendo la navigazione su questo sito, accetti l'utilizzo di questi cookie.