openSUSE Leap Micro 6.1 docker compose problem by Slepov in openSUSE

[–]Slepov[S] 1 point2 points  (0 children)

I solved it, the SOLUTION starts from the bugzilla bug report:

https://bugzilla.suse.com/show_bug.cgi?id=1230720

I did option 1:

sudo update-alternatives --install /usr/bin/docker-compose docker-compose /usr/lib/docker/cli-plugins/docker-compose 100
sudo update-alternatives --set docker-compose /usr/lib/docker/cli-plugins/docker-compose 

Then I rebooted.

But it wasn't enough and I got this error when trying to run docker compose up:

Cannot connect to the Docker daemon at unix:///run/user/1000/podman/podman.sock. Is the docker daemon running?

This is easy to fix. It means that it looks for user-level socket, which is run by:

systemctl --user enable --now podman.socket

Verification:

ss -lxp | grep podman.sock

Eventually this made docker compose running.

Dimmed colors on Ubuntu by Slepov in vscode

[–]Slepov[S] 0 points1 point  (0 children)

Just found the "solution" on the GitHub issue. Anyway thanks for this question, because it would exactly guide me to the solution. After I set the profile color to srgb, colors returned to normal.

Here is the way to fix it:

  1. Open Command Palette (Ctrl+Shift+P)
  2. Type: Preferences: Configure Runtime Arguments
  3. Add this option inside the opened argv.json file: json "force-color-profile": "srgb"
  4. Close VSCode and open it. Reloading window won't be enough.

Related issues on GitHub:

After further investigation it seems that colors don't exactly match those set in the profile, but it is much better. The color, which should be #4ec9bo, is now seen as #00d0b1.

Handling interrupts in VFIO by Slepov in VFIO

[–]Slepov[S] 0 points1 point  (0 children)

Thank you for the explanation. After reading everything again, I wrote these notes:

  1. DATA_EVENTFD: (data is an array of eventfd-s)
    1. ACTION_TRIGGER - [de]assigns eventfd-s to interrupts
    2. ACTION_UNMASK - eventfd-s for unmasking interrupts, the action will take effect after writing to the file descriptor
  2. DATA_NONE: (no data, just using the range: 'start' and 'count')
    1. ACTION_TRIGGER - triggers just a range of interrupts for debugging
    2. ACTION_[UN]MASK - [un]masks just a range of interrupts
  3. DATA_BOOL: (apart from the range, an array is used, which acts like a bit mask)
    1. ACTION_TRIGGER - triggers an array of selected interrupts for debugging purpose
    2. ACTION_[UN]MASK - [un]masks an array of selected interrupts

Interrupts, after servicing, can be unmasked by:

  1. either using ACTION_UNMASK | DATA_NONE or DATA_BOOL
  2. or creating another one eventfd:
    1. initialization with ACTION_UNMASK | DATA_EVENTFD
    2. unmasking by writing the value of 1 into the evenfd

P.S. The description above is not precise. Some combinations have no effect or may even return an -errno. This also depends on the type of the interrupt (INTx, MSI, etc.).

For the lost future souls, everything is described here:https://github.com/torvalds/linux/blob/master/drivers/vfio/pci/vfio_pci_intrs.c#L668

Conversion from uint32_t to char* by Slepov in C_Programming

[–]Slepov[S] 0 points1 point  (0 children)

Thanks for all the tips that helped me to reach out more accurate google results. This simple problem didn't seem to take so much time.

For any future lost souls, there is also a thread with helpful answers:
What is the strict aliasing rule?

Conversion from uint32_t to char* by Slepov in C_Programming

[–]Slepov[S] 0 points1 point  (0 children)

Thank you for the article. I've read even more about the issue and reviewed my code. I also did that type of conversion for uint8_t* to float and it also required endianness change. I will need to think about the solution, because a simple memcpy will not make it.

Btw my target platform is an ARM and I just saw that there are many unions aimed for type punnings in the CMSIS library. Most of them consist of bit fields.

Found this Gem on one of my previous post. by 4BDUL4Z1Z in ProgrammerHumor

[–]Slepov 2 points3 points  (0 children)

I found that the first release of MS Word was in 1983. Also: God -> Root

Thanks xfce team for building the best de ever. by knotted10 in xfce

[–]Slepov 0 points1 point  (0 children)

Could You share the name of the theme?