- Q: In case of errors during SSL-setup of Bamboo
or1PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target1atlassian java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Җ: 1) Do: https://support.atlassian.com/bamboo/kb/how-to-secure-your-remote-agent-bamboo-server
2) and add to mentioned wrapper.conf: wrapper.java.additional.9=-Djavax.net.ssl.trustStorePassword=XXXXXX
3) run keytool -import -trustcacerts -alias [ALIAS_AS_IS_FROM_SERVER_CERT] -file C:\[MY_SERVER_MAIN_CERT.local].crt -keystore C:\Bamboo\bamboo.secure.client.ts
4) Open the URL in the web-browser:and export Bamboo’s ActiveMQ Broker from web-browser to *.crt file1http://my-bamboo-host:54663/?socket.verifyHostName=false&wireFormat.maxInactivityDuration=300000
5) Download KeyStore Explorer from here – https://keystore-explorer.org
6) Import exported ActiveMQ_Broker.crt into C:\Bamboo\bamboo.secure.client.ts
- Q: QtWebEngine CMake: GN FAILED. ninja: build stopped: subcommand failed
A: 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::StoredIterator12'make' => q[C:\\Program Files (x64)\\perl\\c\\bin\\make.exe],'make_arg' => q[CC=C:\\Program Files (x64)\\perl\\c\\bin\\gcc.exe],
– 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) - Q: WSL’да Qt creator’ның менюларын ничек зурайтырга?
Җ: export QT_SCALE_FACTOR=1.5 - Shadowsocks’ны икенче кулланучыга бирәсегез килсә, яңа /etc/shadowsocks-libev/alabuga.json дигән конфиг ясагыз да:
1systemctl enable shadowsocks-libev-server@alabuga.service --now123456789{"server": "0.0.0.0","mode":"tcp_and_udp","server_port":19112,"local_port":11181,"password":"серсүз","timeout":60,"method":"chacha20-ietf-poly1305"} - 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 сыйфатларында игътибарсыз калдырыла. - 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ны куеп була:

- Atlassian Bamboo өчен дә шулай ук – win1252 (“öoäöäoöäöaöaöääöäöaö”) булып күрсәтелсә, CP866-ны куерга кирәк:
bamboow.exe:

монда өстәгез:
12-Dfile.encoding=CP866-Dsun.jnu.encoding=CP866
conf\wrapper.conf’га өстәгез:
12wrapper.java.additional.#=-Dfile.encoding=CP866wrapper.java.additional.#=-Dsun.jnu.encoding=CP866 - 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!)
In the end of resource.h:
|
1 |
#include "resource_lists.h" |
In resource_lists.h:
|
1 2 3 4 |
#define RESOURCE_LIST \ X(IDR_MYRESOURCE1) \ X(IDR_MYRESOURCE2) \ X(IDR_MYRESOURCE3) |
The function:
|
1 2 3 4 5 6 7 |
/* X-Macros */ int StrToUIDwritten(const CString& resourceName){ #define X(id) if (resourceName.CompareNoCase(_T(#id)) == 0) return id; RESOURCE_LIST_WRITTEN #undef X return -1; // Not found } |
Using:
|
1 2 3 4 5 6 7 |
CString resname = L"IDS_WRITTEN" + CString(_T("45")); auto currentWritten = StrToUIDbmp(resname); -*************-- CString idsWritten; idsWritten.LoadString(currentWritten); |
MSBuild MSVC/QT integration to improve:
