Еш бирелә торган сораулар

  • Q: Чтобы постоянно в каждом проекте по новой не писать ф-цию get_env():
    Или так (под винду)
  • Q: QtWebEngine CMake: GN FAILED. ninja: build stopped: subcommand failed
    Җ: apt install ninja-build gn pkg-config build-essential libssl-dev llvm БУЛЫШМАДЫ.
    ә менә dmesg’ны җибәргәч, күрдем: Out of memory: Killed process gn, total-vm
    virt-машинаның ОЗУ’ын 8Гб-тан 32Гб-ка арттыргач, бөтен әйбер хатасыз җыелды

  • Q: How to install CPAN’s “Devel::Camelcadedb” into Strawberry Perl to using debugging in Windows IDEA Perl5?
    Җ: Download and copy WinGNU’s make.exe and dependencies into path where perl is installed (in my case C:\Program Files (x64)\perl\c\bin)
    – add C:\Program Files (x64)\perl\c\bin to system PATH, so Perl/CPAN can find gcc.exe and make.exe
    – add to C:\Program Files (x64)\perl\perl\lib\CPAN Config.pm:
    - cpan > install Hash::StoredIterator
    – cd C:\Program Files (x64)\perl\cpan\build\Devel-Camelcadedb-v2023.1-6 (where CPAN failed last time to make install)
    – make
    – make install
  • Q: How to converting strings to Resource IDs?
    A: To convert a string to a named resource ID (within a string table defined in resource.h), you’ll typically need to implement an X-macros for converting resource IDs to strings. Please note, that builtin MSVS resource editor doesn’t support editing them (but it works)
  • In the end of resource.h:

    In resource_lists.h:

    The function:

    Using:

  • Q: WSL’да Qt creator’ның менюларын ничек зурайтырга?
    Җ: export QT_SCALE_FACTOR=1.5
  • Shadowsocks’ны икенче кулланучыга бирәсегез килсә, яңа /etc/shadowsocks-libev/sborka.json дигән конфиг ясагыз да:
  • Q: LNK2019 unresolved external symbol _memcpy_s referenced in function int __cdecl ReadMemory(void *,unsigned char *,unsigned long) WinampKeyboardPlugin winamp_kbd\shrmem.obj
    Җ: /nodefaultlib опциясы өстәлмәгән икәнне тикшерегез – алай булса, бөтен гадәттәгечә *.DLL’лар IDE сыйфатларында игътибарсыз калдырыла.
  • MSBuild MSVC/QT integration to improve:

  • Q: Bad characters in a console log output QtCreator?
    Җ: This error appears because Qt Creator reports errors in CP1251 encoding, but Windows console output is CP866 in russian version of Windows.

    өстәмә – компиляторның нәтиҗәләрендә мәҗбүри UTF-8ны куеп була:

  • Q: CMake: pthread.h – No such file or directory / LNK1104
    Җ: симәккә option(CMAKE_USE_WIN32_THREADS_INIT “using WIN32 threads” ON) өстәгез
  • C: Ничек линукста бирелгән юллары белән бөтен файлларны табырга?
    Җ: find / -type f | xargs grep -ril “бу юлны эзлим”
  • С: Qt’s MSVC x64’s CDB debugger: Win32 error 0n87
    Җ: Project properties -> Build & Run -> Run -> Run configuration -> Remove (and recreate!)
Insert math as
Block
Inline
Additional settings
Formula color
Text color
#333333
Type math using LaTeX
Preview
\({}\)
Nothing to preview
Insert