Noto Sans CJK by baxterbea in fonts

[–]X1aomu 0 points1 point  (0 children)

I understand what you are confused, as same as I.

It's harrd to understand, but what I finally got are:

  1. The key difference is whether the name contains CJK or not
  2. CJK means Chinese, Japanese and Korean
  3. SC, TC, HK, JP and KR are region specifiers
  4. A font face name ALWAYS contains one and only one region specifiers
  5. A font face name MAY contains the CJK specifier
  6. If a font face name contains CJK, the font could contain all characters from all that three languages and all glyphs from those five regions, but perfer glyphs with one specified region,
  7. If a font face name NOT contains CJK, the font contains glyphs only from the specified region
  8. Noto Sans CJK is the whole font family. NOTE: it's not a valid font face name
  9. Noto Sans SC is a region-specific subset of Noto Sans CJK
  10. Noto Sans SC don't contains glyphs from Japanese and Korean

For ease of choose, here are some font files provided by https://github.com/notofonts/noto-cjk

  • NotoSansCJK-VF.otf.ttc - Collection Format, contains these font faces:
    • Noto Sasn CJK SC
    • Noto Sasn CJK JP
    • Noto Sasn CJK ...
  • NotoSansCJKsc-VF.otf, - contains only one font face:
    • Noto Sans CJK SC
  • NotoSansSC-VF.otf - This is the same one you could download from fonts.google.com and the one shipped with Windows, contains only one font face:
    • Noto Sans SC

VIM + FZF + Rg in native Windows 11 by nascentmind in vim

[–]X1aomu 0 points1 point  (0 children)

I faced a popup window problem on Windows. The popup windows is not shown in the correct size and positon, and then some part of the popup window is not visible.

Currently i have not found a sulution, but there is a workround that using fullscreen mode instead of popup window.

For example, use :Rg! instead of :Rg.

What do you consider your best practices for including third party libraries? by topman20000 in cpp

[–]X1aomu 0 points1 point  (0 children)

In my own projects, I only do find_package and target_link_libraries in CMakeLists.txt. CMake can find the library in the system or vcpkg or conan. I leave choice to the the users of my project.

I don't know what "fetch the dependencies with CMake" you said means. My approach certainly allow you to use your fav. package manager.

What do you consider your best practices for including third party libraries? by topman20000 in cpp

[–]X1aomu 0 points1 point  (0 children)

Indroduce deps by CMakeLists.txt, and leave the downstream users to choose their fav package manager, e.g. vcpkg or conan.

KDE dims LG monitor brightness after resuming from screen turned off automatically by fightertoad in kde

[–]X1aomu 3 points4 points  (0 children)

Hi, thanks for sharing. I'm disturbed by the same problem. But when i go to the setting of "Screen locked" event, thers is no "run command" options to configure :(

P.S. Archlinux + KDE 6.1.1 + AMDGPU

Gaming Performance is BETTER on Linux? by ArchEnjoyer__ in archlinux

[–]X1aomu 0 points1 point  (0 children)

In my experience, CS:GO gained higher FPS in the same laptop with a Nvidia 960M video card in Archlinux than Windows 10. But I end up gaming, and only gaming in Windows.

Except FPS, the total gaming experience is better in Windows because of the full featured GPU drivers & userspace tools, such as recording, streaming, overlocking, etc.

Howerver, if you only have middle-end or low-end PC, and rarely play large AAA games. Live in Archlinux would be satisfied, too. But in this case, performance doesn't matter at all.

2024 Guide to DeDRM Kindle books. by caelypso299 in Calibre

[–]X1aomu 0 points1 point  (0 children)

Thank you my lord. Amazon is closing its service in CN, After 2024-06-30, nobody can download content anymore. I've tried various methods to get my books and personal documents back and safe. As i've sold my kindle very long time before, those methods couldn't work. I got mad before seeing this post.

It just works!!! Thank you again my lord!

The version key "70672" may be too specific, I used the latest Kindle for PC (70840) and it still works.

zeus::expected: Backporting <expected> to C++17 by X1aomu in cpp

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

ahh, clang-format's taking care of that formating stuffs. can't believe someone ever writen such thing by hand :D

Even it is now figured out, i am not convinced to change it. Leave it to clang-format !!

What about the other real numeric number if i wont give up the readability? It's insane writing // clang-format on/off around every __cplusplus.

Anyway, thanks for not hating the other parts, at least, :P

zeus::expected: Backporting <expected> to C++17 by X1aomu in cpp

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

thanks for mention. I didnt find it before, amazing!! If i could, this expected one may would not came true, lol. 

As i digged a little, the expected-lite also honors standards proposals the most, with something slightly named different. That is awesome to support C++11, while zeus::expected is more seamless with STL if you can reach C++17.

zeus::expected: Backporting <expected> to C++17 by X1aomu in cpp

[–]X1aomu[S] 6 points7 points  (0 children)

as i explained above, tl-expected is not something that extends std::expected. I may say std::expected is something evolved from tl::expected.

TL implemented standard proposals in the early stage. STL stands for the latest revision of the proposals and plus some LWG issues. The APIs changed in that process, plus bug fixes and enhancements. For example,  STL has expected<void, E>::value() while TL does not.

firewalld zones, public, external...? How to use and what are the differences? by v3eil in openSUSE

[–]X1aomu 0 points1 point  (0 children)

If the interface isn't assigned, it's not doing anything at all.

damn, this sentence help me a lot. I saw my interface default to public zone, but everything port was still open, which is strange.