home.social

#workarounds — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #workarounds, aggregated by home.social.

  1. Digital paperwork anno 2024: Convert your PDF to Postscript, then reconvert it to PDF. You might be able to use your digital signature now. (The original PDF was only meant to be printed.)

    #lifehack #workarounds #ps2pdf forever

  2. With libusb_get_bus_number(), and libusb_get_port_numbers(), one can easily construct a path like /sys/bus/usb/devices/{BUS}-{PORTS} to access the string descriptors as "product", "manufacturer", and "serial" (if present). And /sys/bus/usb/devices/{BUS}-{PORTS}:{CONFIGNUM}-{INTERFACENUM} has "interface" for the interface string descriptor (if present).

    #projects #xdebug #libusb #workarounds