Beni Cherniavsky-Paskin

Results 502 comments of Beni Cherniavsky-Paskin

A separate counters file sounds risky under git merges, it could go out of sync. But I think it's possible to do a kinda "mark and sweep" garbage collection -...

Same here, I started to use the idiom `html.UnescapeString(strip.StripTags(...))`. See https://github.com/openshift-online/ocm-sdk-go/pull/274 for an example. I think this is worth documenting in the README. I believe the correct order is strip...

You can try using any torrent client, with the destination being on a virtual filesystem that's actually backed by separate chunks. - https://superuser.com/questions/700281/mountable-filesystem-that-automatically-splits-files suggests http://chunkfs.florz.de/ - https://github.com/JohannesBuchner/chunk-fuse is another implementation,...

After a few days flailing around newm source there were basic things I still didn't understand; reading the Python part of pywm helped a lot :+1: It is indeed pretty...

## C Python control flow The C interface is remarkably narrow: ```py from ._pywm import ( run, register, damage ) ``` These are ignorant of Python classes; they mostly communicate...

## C->Python data flow, events, "UpstreamState" In general, pywm's private callbacks for events e.g. `PyWM._modifiers` first save data in attributes, then call the public abstract method e.g. `self.on_modifiers(self.modifiers, last_modifiers)`. This...

## Widget lifecycle ```mermaid sequenceDiagram participant C participant wm as PyWM instance participant down_state as PyWMDownstreamState instance participant widget as SomeWidgetClass instance note over wm: create_widget(WidgetClass, ...) wm -->> widget:...

Another neat trick allowed by `process()` / `down_state.get()` split is that you may switch different downstream classes dynamically :bulb:. - IIUC newm does this during animations, newm/interpolation.py defines several sub-classes...

On Fedora, I have e.g. these files: ```sh > rpm -qf /usr/lib/libwayland-server.so.0 /usr/include/wayland-server.h libwayland-server-1.20.0-4.fc36.i686 wayland-devel-1.20.0-4.fc36.x86_64 ``` so try `sudo dnf install libwayland-server wayland-devel`

yeah, this one is pretty mysterious: ``` > rpm -qf /usr/lib64/pkgconfig/glesv2.pc libglvnd-devel-1.4.0-2.fc36.x86_64 ```