andreyv's comments

andreyv | 1 year ago | on: Glibc Buffer Overflow in Iconv

Even the original version 1507 is still supported on the LTSC channel. Support for UTF-8 manifest was added only in version 1903.

andreyv | 1 year ago | on: Kate editor on all platforms

Old does not mean bad. Even a decade later Wayland struggles to provide basic features that were built in the X protocol.

andreyv | 2 years ago | on: GTK: Introducing Graphics Offload

First person shooters. Vertical synchronization causes a noticeable output delay.

For example, with a 60 Hz display and vsync, game actions might be shown up to 16 ms later than without vsync, which is ages in FPS.

andreyv | 4 years ago | on: Bugs in Hello World

Right — ferror() does not set errno, and so perror() is not appropriate here. fprintf(stderr, ...) would be better.

andreyv | 4 years ago | on: Bugs in Hello World

In C, and many other languages, the file stream error state is saved after each operation, so you can skip error checking on every output line and only do

  if (fflush(stdout) != 0 || ferror(stdout) != 0)
  {
    perror("stdout");
    return EXIT_FAILURE;
  }
at the end of the program. The same should be done for stderr as well.

In GNU programs you can use atexit(close_stdout) to do this automatically.

andreyv | 4 years ago | on: Why “process substitution” is a late feature in Unix shells

> So there is no way to abort a bash script if something like <(sort nonexistent) fails.

The process ID of the last executed background command in Bash is available as $!.

  cat <(sort nonexistent)
  wait $! || echo fail
gives

  sort: cannot read: nonexistent: No such file or directory
  fail

andreyv | 4 years ago | on: Dell removed Fn+Left/Right for Home/End from all its products

Dell also removed trackpoint and all touchpad buttons, and made up/down arrow keys half height on the new Latitude laptops.

These are not the changes one would expect to see in a professional-grade laptop. On the other hand, the Lenovo line looks good in this regard.

andreyv | 5 years ago | on: The X.Org Server Is Abandonware?

In fast-paced games it is essential to disable vertical synchronization as well, trading possible tearing for less input lag.

Does Wayland support this?

page 1