text:
Can't build it, undefined reference to Colors::outputColorCode

Ubuntu 16.04 xenial,
pc@pc:~/wasmdec$ g++ -v
Using built-in specs.
COLLECT_GCC=c++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.5' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.5)

Fail part
src/CodeGen.o: In function `wasmdec::CodeGenerator::CodeGenerator(std::vector<char, std::allocator<char> >*, bool, bool)':
/home/pc/wasmdec/src/CodeGen.cc:13: undefined reference to `wasm::WasmBinaryBuilder::read()'
src/CodeGen.o: In function `Colors::normal(std::ostream&)':
/home/pc/wasmdec/src/binaryen/src/support/colors.h:27: undefined reference to `Colors::outputColorCode(std::ostream&, char const*)'
src/CodeGen.o: In function `Colors::red(std::ostream&)':
/home/pc/wasmdec/src/binaryen/src/support/colors.h:28: undefined reference to `Colors::outputColorCode(std::ostream&, char const*)'
src/CodeGen.o: In function `Colors::magenta(std::ostream&)':
/home/pc/wasmdec/src/binaryen/src/support/colors.h:29: undefined reference to `Colors::outputColorCode(std::ostream&, char const*)'
src/CodeGen.o: In function `Colors::green(std::ostream&)':
/home/pc/wasmdec/src/binaryen/src/support/colors.h:32: undefined reference to `Colors::outputColorCode(std::ostream&, char const*)'

Full build log
pc@pc:~$ git clone --recursive https://github.com/wwwg/wasmdec
Cloning into 'wasmdec'...
remote: Counting objects: 1176, done.
remote: Total 1176 (delta 0), reused 0 (delta 0), pack-reused 1176
Receiving objects: 100% (1176/1176), 2.09 MiB | 120.00 KiB/s, done.
Resolving deltas: 100% (766/766), done.
Checking connectivity... done.
Submodule 'src/binaryen' (https://github.com/WebAssembly/binaryen.git) registered for path 'src/binaryen'
Cloning into 'src/binaryen'...
remote: Counting objects: 48133, done.
remote: Compressing objects: 100% (53/53), done.
remote: Total 48133 (delta 41), reused 43 (delta 23), pack-reused 48056
Receiving objects: 100% (48133/48133), 57.83 MiB | 187.00 KiB/s, done.
Resolving deltas: 100% (41231/41231), done.
Checking connectivity... done.
Submodule path 'src/binaryen': checked out 'd38eeadc55a4b3a97b2879ba3d13a50224c28df6'
Submodule 'test/emscripten' (https://github.com/kripken/emscripten.git) registered for path 'test/emscripten'
Submodule 'test/spec' (https://github.com/WebAssembly/testsuite.git) registered for path 'test/spec'
Submodule 'test/waterfall' (https://github.com/WebAssembly/waterfall.git) registered for path 'test/waterfall'
Cloning into 'test/emscripten'...
remote: Counting objects: 105296, done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 105296 (delta 6), reused 8 (delta 4), pack-reused 105276
Receiving objects: 100% (105296/105296), 152.21 MiB | 176.00 KiB/s, done.
Resolving deltas: 100% (72848/72848), done.
Checking connectivity... done.
Submodule path 'src/binaryen/test/emscripten': checked out '1d979a75722a513b586e6705d662ff4ee0ea832b'
Cloning into 'test/spec'...
remote: Counting objects: 890, done.
remote: Total 890 (delta 0), reused 0 (delta 0), pack-reused 890
Receiving objects: 100% (890/890), 551.25 KiB | 144.00 KiB/s, done.
Resolving deltas: 100% (604/604), done.
Checking connectivity... done.
Submodule path 'src/binaryen/test/spec': checked out '8b1077b8a9e75054ec373b064a25fd23e9a39719'
Cloning into 'test/waterfall'...
remote: Counting objects: 2336, done.
remote: Compressing objects: 100% (23/23), done.
remote: Total 2336 (delta 20), reused 20 (delta 11), pack-reused 2302
Receiving objects: 100% (2336/2336), 595.24 KiB | 160.00 KiB/s, done.
Resolving deltas: 100% (1696/1696), done.
Checking connectivity... done.
Submodule path 'src/binaryen/test/waterfall': checked out '900646fc880d526160b0df9b78bc9dd4f02dc1ab'
pc@pc:~$ cd wasmdec
pc@pc:~/wasmdec$ sudo make all
[sudo] password for pc:
make binaryen
make[1]: Entering directory '/home/pc/wasmdec'
cd src/binaryen && cmake . && make
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- No build type selected, default to Release
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Building with -std=c++11
-- Building for platform x86-64
-- Building with -Wall
-- Building with -Werror
-- Building with -Wextra
-- Building with -Wno-unused-parameter
-- Building with -fno-omit-frame-pointer
-- Building with -fPIC
-- Building with -O2
-- Building with -UNDEBUG
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pc/wasmdec/src/binaryen
make[2]: Entering directory '/home/pc/wasmdec/src/binaryen'
make[3]: Entering directory '/home/pc/wasmdec/src/binaryen'
make[4]: Entering directory '/home/pc/wasmdec/src/binaryen'
Scanning dependencies of target wasm
make[4]: Leaving directory '/home/pc/wasmdec/src/binaryen'
make[4]: Entering directory '/home/pc/wasmdec/src/binaryen'
[  1%] Building CXX object src/wasm/CMakeFiles/wasm.dir/literal.cpp.o
[  2%] Building CXX object src/wasm/CMakeFiles/wasm.dir/wasm.cpp.o
[  3%] Building CXX object src/wasm/CMakeFiles/wasm.dir/wasm-binary.cpp.o
[  4%] Building CXX object src/wasm/CMakeFiles/wasm.dir/wasm-io.cpp.o
[  5%] Building CXX object src/wasm/CMakeFiles/wasm.dir/wasm-s-parser.cpp.o
[  6%] Building CXX object src/wasm/CMakeFiles/wasm.dir/wasm-type.cpp.o
[  7%] Building CXX object src/wasm/CMakeFiles/wasm.dir/wasm-validator.cpp.o
[  8%] Linking CXX static library ../../lib/libwasm.a
make[4]: Leaving directory '/home/pc/wasmdec/src/binaryen'
[  8%] Built target wasm
make[4]: Entering directory '/home/pc/wasmdec/src/binaryen'
Scanning dependencies of target ir
make[4]: Leaving directory '/home/pc/wasmdec/src/binaryen'
make[4]: Entering directory '/home/pc/wasmdec/src/binaryen'
[  9%] Building CXX object src/ir/CMakeFiles/ir.dir/ExpressionAnalyzer.cpp.o
[ 10%] Building CXX object src/ir/CMakeFiles/ir.dir/ExpressionManipulator.cpp.o
[ 11%] Building CXX object src/ir/CMakeFiles/ir.dir/LocalGraph.cpp.o
[ 12%] Linking CXX static library ../../lib/libir.a
make[4]: Leaving directory '/home/pc/wasmdec/src/binaryen'
[ 12%] Built target ir
make[4]: Entering directory '/home/pc/wasmdec/src/binaryen'
Scanning dependencies of target asmjs
make[4]: Leaving directory '/home/pc/wasmdec/src/binaryen'
make[4]: Entering directory '/home/pc/wasmdec/src/binaryen'
[ 13%] Building CXX object src/asmjs/CMakeFiles/asmjs.dir/asm_v_wasm.cpp.o
[ 14%] Building CXX object src/asmjs/CMakeFiles/asmjs.dir/shared-constants.cpp.o
[ 15%] Linking CXX static library ../../lib/libasmjs.a
make[4]: Leaving directory '/home/pc/wasmdec/src/binaryen'
[ 15%] Built target asmjs
make[4]: Entering directory '/home/pc/wasmdec/src/binaryen'
Scanning dependencies of target cfg
make[4]: Leaving directory '/home/pc/wasmdec/src/binaryen'
make[4]: Entering directory '/home/pc/wasmdec/src/binaryen'
[ 16%] Building CXX object src/cfg/CMakeFiles/cfg.dir/Relooper.cpp.o
[ 17%] Linking CXX static library ../../lib/libcfg.a
make[4]: Leaving directory '/home/pc/wasmdec/src/binaryen'
[ 17%] Built target cfg
make[4]: Entering directory '/home/pc/wasmdec/src/binaryen'
Scanning dependencies of target emscripten-optimizer
make[4]: Leaving directory '/home/pc/wasmdec/src/binaryen'
make[4]: Entering directory '/home/pc/wasmdec/src/binaryen'
[ 18%] Building CXX object src/emscripten-optimizer/CMakeFiles/emscripten-optimizer.dir/optimizer-shared.cpp.o
[ 19%] Building CXX object src/emscripten-optimizer/CMakeFiles/emscripten-optimizer.dir/parser.cpp.o
[ 20%] Building CXX object src/emscripten-optimizer/CMakeFiles/emscripten-optimizer.dir/simple_ast.cpp.o
[ 21%] Linking CXX static library ../../lib/libemscripten-optimizer.a
make[4]: Leaving directory '/home/pc/wasmdec/src/binaryen'
[ 21%] Built target emscripten-optimizer
make[4]: Entering directory '/home/pc/wasmdec/src/binaryen'
Scanning dependencies of target passes
make[4]: Leaving directory '/home/pc/wasmdec/src/binaryen'
make[4]: Entering directory '/home/pc/wasmdec/src/binaryen'
[ 22%] Building CXX object src/passes/CMakeFiles/passes.dir/pass.cpp.o
[ 23%] Building CXX object src/passes/CMakeFiles/passes.dir/CoalesceLocals.cpp.o
[ 24%] Building CXX object src/passes/CMakeFiles/passes.dir/CodePushing.cpp.o
[ 25%] Building CXX object src/passes/CMakeFiles/passes.dir/CodeFolding.cpp.o
[ 26%] Building CXX object src/passes/CMakeFiles/passes.dir/ConstHoisting.cpp.o
[ 27%] Building CXX object src/passes/CMakeFiles/passes.dir/DeadCodeElimination.cpp.o
[ 28%] Building CXX object src/passes/CMakeFiles/passes.dir/DuplicateFunctionElimination.cpp.o
[ 29%] Building CXX object src/passes/CMakeFiles/passes.dir/ExtractFunction.cpp.o
[ 30%] Building CXX object src/passes/CMakeFiles/passes.dir/Flatten.cpp.o
[ 31%] Building CXX object src/passes/CMakeFiles/passes.dir/Inlining.cpp.o
[ 32%] Building CXX object src/passes/CMakeFiles/passes.dir/LegalizeJSInterface.cpp.o
[ 33%] Building CXX object src/passes/CMakeFiles/passes.dir/LocalCSE.cpp.o
[ 34%] Building CXX object src/passes/CMakeFiles/passes.dir/LogExecution.cpp.o
[ 35%] Building CXX object src/passes/CMakeFiles/passes.dir/I64ToI32Lowering.cpp.o
[ 36%] Building CXX object src/passes/CMakeFiles/passes.dir/InstrumentLocals.cpp.o
[ 37%] Building CXX object src/passes/CMakeFiles/passes.dir/InstrumentMemory.cpp.o
[ 38%] Building CXX object src/passes/CMakeFiles/passes.dir/MemoryPacking.cpp.o
[ 39%] Building CXX object src/passes/CMakeFiles/passes.dir/MergeBlocks.cpp.o
[ 40%] Building CXX object src/passes/CMakeFiles/passes.dir/Metrics.cpp.o
[ 41%] Building CXX object src/passes/CMakeFiles/passes.dir/NameList.cpp.o
[ 42%] Building CXX object src/passes/CMakeFiles/passes.dir/OptimizeInstructions.cpp.o
[ 43%] Building CXX object src/passes/CMakeFiles/passes.dir/PickLoadSigns.cpp.o
[ 44%] Building CXX object src/passes/CMakeFiles/passes.dir/PostEmscripten.cpp.o
[ 45%] Building CXX object src/passes/CMakeFiles/passes.dir/Precompute.cpp.o
[ 46%] Building CXX object src/passes/CMakeFiles/passes.dir/Print.cpp.o
[ 47%] Building CXX object src/passes/CMakeFiles/passes.dir/PrintCallGraph.cpp.o
[ 48%] Building CXX object src/passes/CMakeFiles/passes.dir/RelooperJumpThreading.cpp.o
[ 49%] Building CXX object src/passes/CMakeFiles/passes.dir/ReReloop.cpp.o
[ 50%] Building CXX object src/passes/CMakeFiles/passes.dir/RemoveImports.cpp.o
[ 51%] Building CXX object src/passes/CMakeFiles/passes.dir/RemoveMemory.cpp.o
[ 52%] Building CXX object src/passes/CMakeFiles/passes.dir/RemoveUnusedBrs.cpp.o
[ 53%] Building CXX object src/passes/CMakeFiles/passes.dir/RemoveUnusedNames.cpp.o
[ 54%] Building CXX object src/passes/CMakeFiles/passes.dir/RemoveUnusedModuleElements.cpp.o
[ 55%] Building CXX object src/passes/CMakeFiles/passes.dir/ReorderLocals.cpp.o
[ 56%] Building CXX object src/passes/CMakeFiles/passes.dir/ReorderFunctions.cpp.o
[ 57%] Building CXX object src/passes/CMakeFiles/passes.dir/TrapMode.cpp.o
[ 58%] Building CXX object src/passes/CMakeFiles/passes.dir/SafeHeap.cpp.o
[ 59%] Building CXX object src/passes/CMakeFiles/passes.dir/SimplifyLocals.cpp.o
[ 60%] Building CXX object src/passes/CMakeFiles/passes.dir/SSAify.cpp.o
[ 61%] Building CXX object src/passes/CMakeFiles/passes.dir/Untee.cpp.o
[ 62%] Building CXX object src/passes/CMakeFiles/passes.dir/Vacuum.cpp.o
[ 63%] Linking CXX static library ../../lib/libpasses.a
make[4]: Leaving directory '/home/pc/wasmdec/src/binaryen'
[ 63%] Built target passes
make[4]: Entering directory '/home/pc/wasmdec/src/binaryen'
Scanning dependencies of target support
make[4]: Leaving directory '/home/pc/wasmdec/src/binaryen'
make[4]: Entering directory '/home/pc/wasmdec/src/binaryen'
[ 64%] Building CXX object src/support/CMakeFiles/support.dir/archive.cpp.o
[ 65%] Building CXX object src/support/CMakeFiles/support.dir/bits.cpp.o
[ 66%] Building CXX object src/support/CMakeFiles/support.dir/colors.cpp.o
[ 67%] Building CXX object src/support/CMakeFiles/support.dir/command-line.cpp.o
[ 68%] Building CXX object src/support/CMakeFiles/support.dir/file.cpp.o
[ 69%] Building CXX object src/support/CMakeFiles/support.dir/safe_integer.cpp.o
[ 70%] Building CXX object src/support/CMakeFiles/support.dir/threads.cpp.o
[ 71%] Linking CXX static library ../../lib/libsupport.a
make[4]: Leaving directory '/home/pc/wasmdec/src/binaryen'
[ 71%] Built target support
make[4]: Entering directory '/home/pc/wasmdec/src/binaryen'
Scanning dependencies of target wasm-merge
make[4]: Leaving directory '/home/pc/wasmdec/src/binaryen'
make[4]: Entering directory '/home/pc/wasmdec/src/binaryen'
[ 72%] Building CXX object CMakeFiles/wasm-merge.dir/src/tools/wasm-merge.cpp.o
[ 73%] Linking CXX executable bin/wasm-merge
make[4]: Leaving directory '/home/pc/wasmdec/src/binaryen'
[ 73%] Built target wasm-merge
make[4]: Entering directory '/home/pc/wasmdec/src/binaryen'
Scanning dependencies of target wasm-reduce
make[4]: Leaving directory '/home/pc/wasmdec/src/binaryen'
make[4]: Entering directory '/home/pc/wasmdec/src/binaryen'
[ 74%] Building CXX object CMakeFiles/wasm-reduce.dir/src/tools/wasm-reduce.cpp.o
[ 75%] Building CXX object CMakeFiles/wasm-reduce.dir/src/wasm-interpreter.cpp.o
[ 76%] Linking CXX executable bin/wasm-reduce
make[4]: Leaving directory '/home/pc/wasmdec/src/binaryen'
[ 76%] Built target wasm-reduce
make[4]: Entering directory '/home/pc/wasmdec/src/binaryen'
Scanning dependencies of target wasm-opt
make[4]: Leaving directory '/home/pc/wasmdec/src/binaryen'
make[4]: Entering directory '/home/pc/wasmdec/src/binaryen'
[ 77%] Building CXX object CMakeFiles/wasm-opt.dir/src/tools/wasm-opt.cpp.o
[ 78%] Building CXX object CMakeFiles/wasm-opt.dir/src/wasm-interpreter.cpp.o
[ 79%] Linking CXX executable bin/wasm-opt
make[4]: Leaving directory '/home/pc/wasmdec/src/binaryen'
[ 79%] Built target wasm-opt
make[4]: Entering directory '/home/pc/wasmdec/src/binaryen'
Scanning dependencies of target wasm-shell
make[4]: Leaving directory '/home/pc/wasmdec/src/binaryen'
make[4]: Entering directory '/home/pc/wasmdec/src/binaryen'
[ 80%] Building CXX object CMakeFiles/wasm-shell.dir/src/tools/wasm-shell.cpp.o
[ 81%] Building CXX object CMakeFiles/wasm-shell.dir/src/wasm-interpreter.cpp.o
[ 82%] Linking CXX executable bin/wasm-shell
make[4]: Leaving directory '/home/pc/wasmdec/src/binaryen'
[ 82%] Built target wasm-shell
make[4]: Entering directory '/home/pc/wasmdec/src/binaryen'
Scanning dependencies of target wasm-as
make[4]: Leaving directory '/home/pc/wasmdec/src/binaryen'
make[4]: Entering directory '/home/pc/wasmdec/src/binaryen'
[ 83%] Building CXX object CMakeFiles/wasm-as.dir/src/tools/wasm-as.cpp.o
[ 84%] Linking CXX executable bin/wasm-as
make[4]: Leaving directory '/home/pc/wasmdec/src/binaryen'
[ 84%] Built target wasm-as
make[4]: Entering directory '/home/pc/wasmdec/src/binaryen'
Scanning dependencies of target binaryen
make[4]: Leaving directory '/home/pc/wasmdec/src/binaryen'
make[4]: Entering directory '/home/pc/wasmdec/src/binaryen'
[ 85%] Building CXX object CMakeFiles/binaryen.dir/src/binaryen-c.cpp.o
[ 86%] Linking CXX shared library lib/libbinaryen.so
make[4]: Leaving directory '/home/pc/wasmdec/src/binaryen'
[ 86%] Built target binaryen
make[4]: Entering directory '/home/pc/wasmdec/src/binaryen'
Scanning dependencies of target asm2wasm
make[4]: Leaving directory '/home/pc/wasmdec/src/binaryen'
make[4]: Entering directory '/home/pc/wasmdec/src/binaryen'
[ 87%] Building CXX object CMakeFiles/asm2wasm.dir/src/tools/asm2wasm.cpp.o
[ 88%] Building CXX object CMakeFiles/asm2wasm.dir/src/wasm-emscripten.cpp.o
[ 89%] Linking CXX executable bin/asm2wasm
make[4]: Leaving directory '/home/pc/wasmdec/src/binaryen'
[ 89%] Built target asm2wasm
make[4]: Entering directory '/home/pc/wasmdec/src/binaryen'
Scanning dependencies of target s2wasm
make[4]: Leaving directory '/home/pc/wasmdec/src/binaryen'
make[4]: Entering directory '/home/pc/wasmdec/src/binaryen'
[ 90%] Building CXX object CMakeFiles/s2wasm.dir/src/tools/s2wasm.cpp.o
[ 91%] Building CXX object CMakeFiles/s2wasm.dir/src/wasm-emscripten.cpp.o
[ 92%] Building CXX object CMakeFiles/s2wasm.dir/src/wasm-linker.cpp.o
[ 93%] Linking CXX executable bin/s2wasm
make[4]: Leaving directory '/home/pc/wasmdec/src/binaryen'
[ 93%] Built target s2wasm
make[4]: Entering directory '/home/pc/wasmdec/src/binaryen'
Scanning dependencies of target wasm-dis
make[4]: Leaving directory '/home/pc/wasmdec/src/binaryen'
make[4]: Entering directory '/home/pc/wasmdec/src/binaryen'
[ 94%] Building CXX object CMakeFiles/wasm-dis.dir/src/tools/wasm-dis.cpp.o
[ 95%] Linking CXX executable bin/wasm-dis
make[4]: Leaving directory '/home/pc/wasmdec/src/binaryen'
[ 95%] Built target wasm-dis
make[4]: Entering directory '/home/pc/wasmdec/src/binaryen'
Scanning dependencies of target wasm2asm
make[4]: Leaving directory '/home/pc/wasmdec/src/binaryen'
make[4]: Entering directory '/home/pc/wasmdec/src/binaryen'
[ 96%] Building CXX object CMakeFiles/wasm2asm.dir/src/tools/wasm2asm.cpp.o
[ 97%] Linking CXX executable bin/wasm2asm
make[4]: Leaving directory '/home/pc/wasmdec/src/binaryen'
[ 97%] Built target wasm2asm
make[4]: Entering directory '/home/pc/wasmdec/src/binaryen'
Scanning dependencies of target wasm-ctor-eval
make[4]: Leaving directory '/home/pc/wasmdec/src/binaryen'
make[4]: Entering directory '/home/pc/wasmdec/src/binaryen'
[ 98%] Building CXX object CMakeFiles/wasm-ctor-eval.dir/src/tools/wasm-ctor-eval.cpp.o
[100%] Linking CXX executable bin/wasm-ctor-eval
make[4]: Leaving directory '/home/pc/wasmdec/src/binaryen'
[100%] Built target wasm-ctor-eval
make[3]: Leaving directory '/home/pc/wasmdec/src/binaryen'
make[2]: Leaving directory '/home/pc/wasmdec/src/binaryen'
make[1]: Leaving directory '/home/pc/wasmdec'
make installBinaryen
make[1]: Entering directory '/home/pc/wasmdec'
if [ -d "/usr/lib64" ]; then cp src/binaryen/lib/libbinaryen.so /usr/lib64/; else cp src/binaryen/lib/libbinaryen.so /usr/lib/; fi
make[1]: Leaving directory '/home/pc/wasmdec'
make default
make[1]: Entering directory '/home/pc/wasmdec'
Build source src/WasmUtils.cc
g++ -g -std=c++14 -Isrc/binaryen/src -c -Wall src/WasmUtils.cc -o src/WasmUtils.o
src/WasmUtils.cc: In static member function ‘static wasm::FunctionType* wasmdec::util::resolveFType(wasm::Module*, wasm::Name)’:
src/WasmUtils.cc:5:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i = 0; i < m->functionTypes.size(); ++i) {
                    ^
src/WasmUtils.cc: In static member function ‘static std::__cxx11::string wasmdec::util::getLiteralValue(wasm::Literal*)’:
src/WasmUtils.cc:51:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
Build source src/WasmContext.cc
g++ -g -std=c++14 -Isrc/binaryen/src -c -Wall src/WasmContext.cc -o src/WasmContext.o
Build source src/Emitter.cc
g++ -g -std=c++14 -Isrc/binaryen/src -c -Wall src/Emitter.cc -o src/Emitter.o
Build source src/main.cc
g++ -g -std=c++14 -Isrc/binaryen/src -c -Wall src/main.cc -o src/main.o
Build source src/CodeGen.cc
g++ -g -std=c++14 -Isrc/binaryen/src -c -Wall src/CodeGen.cc -o src/CodeGen.o
Build source src/convert/Conversion.cc
g++ -g -std=c++14 -Isrc/binaryen/src -c -Wall src/convert/Conversion.cc -o src/convert/Conversion.o
src/convert/Conversion.cc: In static member function ‘static std::__cxx11::string wasmdec::Convert::getDecl(wasm::FunctionType*, std::__cxx11::string)’:
src/convert/Conversion.cc:171:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i = 0; i < typ->params.size(); ++i) {
                    ^
src/convert/Conversion.cc:175:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if (i != (typ->params.size() - 1)) {
         ^
src/convert/Conversion.cc: In static member function ‘static std::__cxx11::string wasmdec::Convert::getDecl(wasm::FunctionType*, wasm::Name)’:
src/convert/Conversion.cc:188:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i = 0; i < typ->params.size(); ++i) {
                    ^
src/convert/Conversion.cc:192:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if (i != (typ->params.size() - 1)) {
         ^
src/convert/Conversion.cc: In static member function ‘static std::__cxx11::string wasmdec::Convert::getDecl(wasm::Function*)’:
src/convert/Conversion.cc:205:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i = 0; i < fn->params.size(); ++i) {
                    ^
src/convert/Conversion.cc:209:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if (i != (fn->params.size() - 1)) {
         ^
src/convert/Conversion.cc: In static member function ‘static std::__cxx11::string wasmdec::Convert::parseOperandList(wasmdec::Context*, wasm::ExpressionList*, int)’:
src/convert/Conversion.cc:246:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (int i = 0; i < list->size(); ++i) {
                     ^
src/convert/Conversion.cc:250:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if (i != (list->size() - 1)) {
          ^
src/convert/Conversion.cc: In static member function ‘static std::__cxx11::string wasmdec::Convert::getUnary(std::__cxx11::string, wasm::UnaryOp)’:
src/convert/Conversion.cc:263:9: warning: enumeration value ‘ExtendS8Int32’ not handled in switch [-Wswitch]
  switch (op) {
         ^
src/convert/Conversion.cc:263:9: warning: enumeration value ‘ExtendS16Int32’ not handled in switch [-Wswitch]
src/convert/Conversion.cc:263:9: warning: enumeration value ‘ExtendS8Int64’ not handled in switch [-Wswitch]
src/convert/Conversion.cc:263:9: warning: enumeration value ‘ExtendS16Int64’ not handled in switch [-Wswitch]
src/convert/Conversion.cc:263:9: warning: enumeration value ‘ExtendS32Int64’ not handled in switch [-Wswitch]
src/convert/Conversion.cc: In static member function ‘static std::__cxx11::string wasmdec::Convert::resolveType(wasm::WasmType)’:
src/convert/Conversion.cc:164:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
src/convert/Conversion.cc: In static member function ‘static std::__cxx11::string wasmdec::Convert::getHostFunc(wasm::HostOp)’:
src/convert/Conversion.cc:359:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
Build source src/convert/BlockConverter.cc
g++ -g -std=c++14 -Isrc/binaryen/src -c -Wall src/convert/BlockConverter.cc -o src/convert/BlockConverter.o
src/convert/BlockConverter.cc: In static member function ‘static std::__cxx11::string wasmdec::Convert::getFuncBody(wasmdec::Context, bool)’:
src/convert/BlockConverter.cc:23:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (int i = 0; i < vars->size(); ++i) {
                     ^
Build source src/convert/ExpressionParser.cc
g++ -g -std=c++14 -Isrc/binaryen/src -c -Wall src/convert/ExpressionParser.cc -o src/convert/ExpressionParser.o
Link wasmdec
g++ -Lsrc/binaryen/lib -lbinaryen src/WasmUtils.o src/WasmContext.o src/Emitter.o src/main.o src/CodeGen.o src/convert/Conversion.o src/convert/BlockConverter.o src/convert/ExpressionParser.o -o wasmdec
src/CodeGen.o: In function `wasmdec::CodeGenerator::CodeGenerator(std::vector<char, std::allocator<char> >*, bool, bool)':
/home/pc/wasmdec/src/CodeGen.cc:13: undefined reference to `wasm::WasmBinaryBuilder::read()'
src/CodeGen.o: In function `Colors::normal(std::ostream&)':
/home/pc/wasmdec/src/binaryen/src/support/colors.h:27: undefined reference to `Colors::outputColorCode(std::ostream&, char const*)'
src/CodeGen.o: In function `Colors::red(std::ostream&)':
/home/pc/wasmdec/src/binaryen/src/support/colors.h:28: undefined reference to `Colors::outputColorCode(std::ostream&, char const*)'
src/CodeGen.o: In function `Colors::magenta(std::ostream&)':
/home/pc/wasmdec/src/binaryen/src/support/colors.h:29: undefined reference to `Colors::outputColorCode(std::ostream&, char const*)'
src/CodeGen.o: In function `Colors::green(std::ostream&)':
/home/pc/wasmdec/src/binaryen/src/support/colors.h:32: undefined reference to `Colors::outputColorCode(std::ostream&, char const*)'
collect2: error: ld returned 1 exit status
Makefile:11: recipe for target 'wasmdec' failed
make[1]: *** [wasmdec] Error 1
make[1]: Leaving directory '/home/pc/wasmdec'
Makefile:38: recipe for target 'all' failed
make: *** [all] Error 2
pc@pc:~/wasmdec$

Fixed, thanks @technic-tec

authors: KosBeg wwwg

repo: wwwg/wasmdec


text:
Support for specific release_tag and repository

Added 2 new input fields:

release_tag : to allow specifying the release_tag to use
repository : to allow specifying the repository to use

Improved readme by adding this fields, more examples and better explaining the setup of the action.
Added action.yml for the action definition as peer https://help.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions to avoid warnings when using the action.

@wyozi here you go :)

@wyozi please let me know if something looks wrong. Waiting for your approval & release in order to remove my fork.

releasing the package directly for lack of answer...

source: gharchive/pull-request

repo: wyozi/download-gh-release-asset

license: MIT

license_type: permissive

license_source: github-api


text:
Applying Filters on Video runtime before saving!?

Is it possible to apply filters on video runtime, before saving it to destination ?!/
Would appreciate any response.

Sure, you can just reuse the real-time recording part. Please try it yourself.

Thank you, it worked well.
Does you library contain any functionality to trim a vid ?

Thank you sir, now how can I implement something similar to onfinish listener when using CGEFFmpegNativeLibrary.generateVideoWithFilter(....); which is after the video is saved

The function is blocking, you can write a function to wrap that, and add your onFinish.

source: gharchive/issue

authors: CesarJNasr wysaid

repo: wysaid/android-gpuimage-plus

license: mit

license_source: bigquery


text:
加滤镜生成视频文件大了一倍

videoFrameRecorder选择不压缩和高质量压缩，视频由3M变为6.7M，加了一倍多，中等质量压缩又减小到980k又小了三分之一，之前导出过美拍的视频，加完滤镜视频后大小和加之前类似，能否实现？

能不能相对精确地控制压缩率

这类问题， 你应该使用本repo的方法生成最清晰（大概最大）的视频文件， 然后自己用 avfoundation 处理成你自己能接受的（自己平衡大小和清晰度）， 我这里不会帮你完成你的精细需求

非常感谢你对我的帮助，本世纪最后一个问题，我也想和你一样自己写滤镜，剪辑....和视频制作相关的的功能，非常想知道需要学习哪方面的知识，我看过《AVFoundation开发秘籍》，还需要哪方面的知识和书籍？

写滤镜的话需要看的是OpenGL相关的东西哦~~ 你多看看OpenGLES相关的吧， 尤其是API文档: https://www.khronos.org/opengles/sdk/docs/man/

authors: huishuyi wysaid

repo: wysaid/ios-gpuimage-plus


text:
How to determine hit_height

How did you determine the value of hit_height in the ShuttleSet data?
Thank you.

Hello,
If the hitting location is higher than the net, it is labeled as 1; 0 otherwise.

authors: muhabdulhaq wywyWang

repo: wywyWang/CoachAI-Projects


text:
Make vxe-grid work with PeachScript/vue-infinite-loader.

（必填）这个需求解决了什么问题：
I want to use PeachScript/vue-infinite-loader with vxe-grid similar to this example using Element UI:
https://peachscript.github.io/vue-infinite-loading/guide/use-with-el-table.html
Here is a working example:
https://jsfiddle.net/PeachScript/uyjb6z34/
I can't get this to work with vxe-grid. I'm using the pager slot with force-use-infinite-wrapper=".vxe-table--body-wrapper".

To your knowledge, should this be possible?
If it's not possible, please provide an alternative solution for infinite scrolling in vxe-grid.
If there is no solution for infinite scrolling, please implement one.

截图或在线链接：
？
建议的 API 是什么样的：
？
是否已有其他不错的替代方案：
？

Not supported, you can listen for scroll events to handle.

Not supported, you can listen for scroll events to handle.

repo: x-extends/vxe-table


text:
表格校验提示的位置能否修改

可复现的链接：
无
问题描述与截图：
我想修改表格校验的提示的位置

现在的位置是在单元格的下方，我想修改到表格上方，想知道表格本身有没有这样的配置？
期望的结果：
No response
操作系统：
win10
浏览器版本：
chrome
vue 版本：
3
vxe-table 版本：
4.5.13

手动给提示的class上添加transform属性就能调整位置


text:
no longer work

Hello there we were really enjoying the software but in latest arch updates it no longer works. When trying to hit Apply for a profile it says RGB Device /dev/acer-gkbbl-0 not available :( can you please help?

Hi, when the device is not available it means that the kernel module (basically the driver) is either not installed or not loaded. This often happens after a kernel update and is usually fixed by reinstalling (and therefore recompiling) the kernel module. Please refer to the project page of the kernel module for more information https://github.com/JafarAkhondali/acer-predator-turbo-and-rgb-keyboard-linux-module in their bug tracker you can find multiple similar threads like this one for example https://github.com/JafarAkhondali/acer-predator-turbo-and-rgb-keyboard-linux-module/issues/113 . Once the module has been reinstalled RGB Config should work again.
A simple way that usually fixes this problem is to download the above mentioned repository, then run the uninstall script followed by the install_service script. You might need to reboot afterwards.
Hope that helps. Feel free to get back to me if something is not clear.


text:
Set Dependabot

To automate package updates it is good to use Dependabot

Closing this issue as decided that Dependabot is not needed.


text:
Add solution to Troubleshooting

Closes: #363, #317
The cargo config file was not the fix for this issue. I found the solution here: https://github.com/PyO3/pyo3/issues/742#issuecomment-577332616

You can ignore the test failure for now. It is the same than https://github.com/PyO3/pyo3/issues/288

authors: Robert-Steiner little-dude

repo: xainag/xain-fl


text:
Added RequestAccessEnabled, AvatarURL and WebURL to Group struct (GetGroup)

The Group struct misses three values returned by the GetGroup details API, namely RequestAccessEnabled, AvatarURL and WebURL:
$> curl --header "PRIVATE-TOKEN: <my token>" http://mygitlab/api/v3/groups/57
returns
{   "id":57,   "name":"first-group",   "path":"first-group",   "description":"",   "visibility_level":10,   "lfs_enabled":true,   "avatar_url":"http://mygitlab/uploads/group/avatar/57/home-icon.png",   "web_url":"http://mygitlab/groups/first-group",   "request_access_enabled":true,   "full_name":"first-group",   "full_path":"first-group",   "parent_id":null,   "projects":[],   "shared_projects":[] }

Thanks @dihedron

authors: dihedron svanharmelen

repo: xanzy/go-gitlab


text:
Fixed wrong bracket in example code

Very very small fix in the Usage example in the README file.

Thx! LGTM!

authors: mazebuhu svanharmelen


text:
Include multiple storages?

Hello,
I've got different servers in different datacentres.
Now it would be the best to backup the content to storage-daemons that are located in the same datacenter (I don't have to pay for internal traffic).
Is it possible to define multiple storage-daemons and add clients according to their location?

Yes, I do this too.  For each of the clients, set bacula::params::storage to the fqdn of the storage box.  I also set different pools for certain clients with bacula::client::default_pool so I can keep user retention settings different than server retention settings, etc.  Hope that helps.

I hope you got this working for your environment.  Let me know if there are other questions here.


text:
Unexpected behavior for .map_over_subtree

I want to apply a weighted mean over every dataset in a tree but cannot map a function as expected.
Take this simple example:
import xarray as xr
import numpy as np
a = xr.DataArray(np.random.rand(3,4, 10), dims=['x','y', 'time'], coords={'area':(['x','y'],np.random.rand(3,4))}).to_dataset(name='data')
b = xr.DataArray(np.random.rand(2,6, 14), dims=['x','y', 'time'], coords={'area':(['x','y'],np.random.rand(2,6))}).to_dataset(name='data')

dt = datatree.DataTree.from_dict({'a':a, 'b':b})
dt

DataTree('None', parent=None)
├── DataTree('a')
│       Dimensions:  (x: 3, y: 4, time: 10)
│       Coordinates:
│           area     (x, y) float64 0.5258 0.4488 0.9383 0.7907 ... 0.7133 0.2833 0.5557
│       Dimensions without coordinates: x, y, time
│       Data variables:
│           data     (x, y, time) float64 0.4141 0.06808 0.1853 ... 0.5805 0.0713 0.6484
└── DataTree('b')
        Dimensions:  (x: 2, y: 6, time: 14)
        Coordinates:
            area     (x, y) float64 0.9447 0.6305 0.7047 0.687 ... 0.916 0.732 0.6114
        Dimensions without coordinates: x, y, time
        Data variables:
            data     (x, y, time) float64 0.1824 0.3305 0.1357 ... 0.9851 0.09906 0.8442

I am defining a very simple weighted mean function:
def weighted_mean(ds):
    return ds.weighted(ds.area).mean(['x', 'y'])

which works as expected on a single dataset:
weighted_mean(a)

But when I try to map this over the tree
dt_mapped = dt.map_over_subtree(weighted_mean)

I get this:
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In[61], line 1
----> 1 dt_mapped = dt.map_over_subtree(weighted_mean)

File /srv/conda/envs/notebook/lib/python3.10/site-packages/datatree/datatree.py:992, in DataTree.map_over_subtree(self, func, *args, **kwargs)
    964 """
    965 Apply a function to every dataset in this subtree, returning a new tree which stores the results.
    966
   (...)
    987     One or more subtrees containing results from applying ``func`` to the data at each node.
    988 """
    989 # TODO this signature means that func has no way to know which node it is being called upon - change?
    990
    991 # TODO fix this typing error
--> 992 return map_over_subtree(func)(self, *args, **kwargs)

File /srv/conda/envs/notebook/lib/python3.10/site-packages/datatree/mapping.py:207, in map_over_subtree.<locals>._map_over_subtree(*args, **kwargs)
    195 node_kwargs_as_datasetviews = dict(
    196     zip(
    197         [k for k in kwargs_as_tree_length_iterables.keys()],
   (...)
    202     )
    203 )
    205 # Now we can call func on the data in this particular set of corresponding nodes
    206 results = (
--> 207     func(*node_args_as_datasetviews, **node_kwargs_as_datasetviews)
    208     if not node_of_first_tree.is_empty
    209     else None
    210 )
    212 # TODO implement mapping over multiple trees in-place using if conditions from here on?
    213 out_data_objects[node_of_first_tree.path] = results

Cell In[57], line 11, in weighted_mean(ds)
     10 def weighted_mean(ds):
---> 11     return ds.weighted(ds.area).mean(['x', 'y'])

File /srv/conda/envs/notebook/lib/python3.10/site-packages/xarray/core/weighted.py:488, in Weighted.mean(self, dim, skipna, keep_attrs)
    481 def mean(
    482     self,
    483     dim: Dims = None,
    484     skipna: bool | None = None,
    485     keep_attrs: bool | None = None,
    486 ) -> T_Xarray:
--> 488     return self._implementation(
    489         self._weighted_mean, dim=dim, skipna=skipna, keep_attrs=keep_attrs
    490     )

File /srv/conda/envs/notebook/lib/python3.10/site-packages/xarray/core/weighted.py:550, in DatasetWeighted._implementation(self, func, dim, **kwargs)
    546 def _implementation(self, func, dim, **kwargs) -> Dataset:
    548     self._check_dim(dim)
--> 550     return self.obj.map(func, dim=dim, **kwargs)

File /srv/conda/envs/notebook/lib/python3.10/site-packages/xarray/core/dataset.py:5957, in Dataset.map(self, func, keep_attrs, args, **kwargs)
   5955         v._copy_attrs_from(self.data_vars[k])
   5956 attrs = self.attrs if keep_attrs else None
-> 5957 return type(self)(variables, attrs=attrs)

File /srv/conda/envs/notebook/lib/python3.10/site-packages/datatree/datatree.py:121, in DatasetView.__init__(self, data_vars, coords, attrs)
    115 def __init__(
    116     self,
    117     data_vars: Optional[Mapping[Any, Any]] = None,
    118     coords: Optional[Mapping[Any, Any]] = None,
    119     attrs: Optional[Mapping[Any, Any]] = None,
    120 ):
--> 121     raise AttributeError("DatasetView objects are not to be initialized directly")

AttributeError: DatasetView objects are not to be initialized directly

strangely if I modify the function to return a dataarray and map it
def weighted_mean_da(ds):
    return ds.data.weighted(ds.area).mean(['x', 'y'])

dt_mapped_da = dt.map_over_subtree(weighted_mean_da)
dt_mapped_da

It gives me the desired result, but I am not sure if this is intended behavior (the return dataarray is converted back to a dataset?)

I was using v0.0.10 for the record

This bug is something to do with not properly copying node.ds (or not converting it to a Dataset instead of DatasetView) before it gets passed to the user function in map_over_subtree

I am not sure if this is intended behavior (the return dataarray is converted back to a dataset?)

Yes that's intended - nodes of a tree can't hold just one DataArray, they actually extract all the underlying variable objects and reorganise them into something which makes the node look like it is a Dataset. So you should expect DataArrays to be promoted to sigle-variable Datasets.

You can actually reproduce this with just
dt = datatree.DataTree(data=a)
weighted_mean(dt.ds)

It's because dt.ds returns an immutable DatasetView object, which is like Dataset except you can't change it or create one yourself directly. That latter restriction prevents the type() call in xarray.weighted from working though.
I should be able to fix it either by:

Not passing the DatasetView in map_over_subtree
Removing the restriction on instantiating a DatasetView.

Actually a better solution here might have been to re-implement .map on DatasetView, as that would get around the problematic type(self) call in Dataset.map. This would be useful because it probably better to be passing immutable DatasetView objects to map_over_subtree if we can (see #266 for one motivation).

authors: TomNicholas jbusecke

repo: xarray-contrib/datatree


text:
Add idealised (cartesian) sample for testing purposes

Added ideal.nc, an idealised cartesian test file, sourced from my current cyclone research.
Included variables are:

XLAT, XLONG, DZS, U, V, W, REFL_10CM

Hey Max, thanks for the pull request. Could you also include the Times variable and check if you need other variables by calling .xwrf.postprocess()? We should actually fall back to the XTIME coordinate and I'll work on that in xwrf#169. But in order to get your enhancement merged asap, I'd suggest just adding the Times variable to the data.

Actually, I just saw that the west_east_stag dimensions are of size 480 and the west_east dimension is of size 80. Could you make a new pull request (pull your local git first) and either have the west_east_stag size be 81 or just not clip any of the horizontal coordinates? I think either solution would be fine. Thanks :) and sorry I didn't catch that earlier

authors: MaxEtherington lpilz

repo: xarray-contrib/xwrf-data


text:
Reorganise media tiles in About page

Is it possible to move the "Games" tile in What can Kodi do for me? section up with the rest of the media tiles?
Not too concerned about how the last two lines are ordered so it does not need to be a direct swap of the two tiles.

Done and available to preview in staging at: https://kodi-tv-staging.netlify.app/about/.  I'll leave this open until we merge the change into main.

Change merged into main. If the new order still doesn't make sense, please reopen this issue.

authors: KarellenX pkscout

repo: xbmc/kodi-tv


text:
Add support for Incognito mode

Hello, Kudos to the team of rn-pdf-reader-js I love it!.
I wanted to ask that since this lib uses WebView,  will it be possible to add support for incognito mode?. Cause am trying to stop users from taking screenshots some pdf's, If is possible I will be willing to do the PR myself if the team is too busy to do that.

What do you mean exactly?
I wonder to understand what is an incognito mode...

You are able to specify any WebView props, please read the README

repo: xcarpentier/rn-pdf-reader-js


text:
Functional test

Pull request header
Pull request description

[ ] Updated version in setup.py and catsim/init.py

test failures

repo: xcist/main


text:
🛑 Polygon is down

In 5231738, Polygon (https://polygon.codeforces.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Polygon is back up in 1bdc902 after 8 minutes.


text:
Add archive for python-clang_5.0 [dunfell]

For the buld of the proprietary DDK we still need python-clang_5.0. Unfortunately required archive is not accessible anymore because author dropped support.
So we took archive from yocto's caches and put it directly into recipes' files.

Updated according to comment in #55.

RB is added.
Additional explanation is provided in the recipe, to address the comment.
Tested.
Ready to be merged.

repo: xen-troops/meta-xt-rcar


text:
Jedis should not require localhost to be resolved so it can run clean in serverless env

Expected behavior
Jedis should not require localhost to be resolved so it can run clean in serverless env - aws lambda.
Actual behavior
When running jedis on aws lambda, it tries to resolve localhost which is not available in serverless env resulting in a "SEVERE" log output.
Write here what happens instead ...
15:02:45 SEVERE: cant resolve localhost address
15:02:45 java.net.UnknownHostException: ip-10-29-121-116: ip-10-29-121-116: unknown error
15:02:45 at java.net.InetAddress.getLocalHost(InetAddress.java:1505)
15:02:45 at redis.clients.jedis.HostAndPort.getLocalHostQuietly(HostAndPort.java:105)

Steps to reproduce:
Use jedis client in aws lambda to connect to aws redis service endpoint
public class RedisClientDao {
private static JedisPool pool = null;

static {
    String endpoint = Preconditions.checkNotNull((String)Config.get("CACHE_ENDPOINT"));
    JedisPoolConfig poolConfig = new JedisPoolConfig();
    poolConfig.setJmxEnabled(false);
    pool = new JedisPool(poolConfig, endpoint);

}

public static Jedis getRedisClient() {
    return pool.getResource();
}
}

Redis / Jedis Configuration
jedis 2.9.0 running on java 1.8 running on aws lambda connecting to redis 3.2.4
Jedis version:
2.9
Redis version:
3.2.4
Java version:
1.8

I suppose it is related with https://github.com/xetorthio/jedis/issues/1367, https://github.com/xetorthio/jedis/pull/1099, https://github.com/xetorthio/jedis/pull/1076 and was merged as part of https://github.com/xetorthio/jedis/pull/1342. My proposal is to:

Introduce HostAndPortBuilder. It should resolve localhost if configured to do so.

or

Introduce extra more conditional logic to HostAndPort.parseString, e.g.:

    boolean doLocalhostAliasing = System.getProperty("redis.clients.jedis.doLocalhostAliasing") != null;
    return new HostAndPort( doLocalhostAliasing ? convertHost(host) : host, port);

@marcosnils, @xetorthio, @allanwax any ideas?

The original intent of the fix I submitted was to resolve the problem of specifying localhost in a cluster.  The fix changed localhost to the ip of the localhost so that node information passed around would succeed.  Putting a conditional on this is fine with me but may affect testing.
What will the default value of this flag be?

is there a prior release/version I can use which may not have this issue? This issue is a blocker for me.

@xoraes can you try 2.8.x? That release shouldn't have this logic. I'm on vacation atm, I'll check this issue next week
@heartsavior can u take a look if u have some time plz??

@marcosnils encountered the same issue. working fine with 2.8.1

@jkrahul thx. I'll close this if confirmed it works with 2.8.1

Whoops, we need to fix this somehow so it works in future versions. Anyone willing to craft a PR?. I don't have too much time in my hands lately.

This error is occurring not just in serverless env (AWS Lambda), but in AWS ec2 instances also.

@jkrahul thx for reporting. Any chances you'd like to craft a patch for this?

@marcosnils Will do

@marcosnils I have looked at the way AWS uses REDIS and the few examples that I saw do not use an IP address to set up the connection but instead use an ENDPOINT address.  I'd also like to say that I'm not an AWS user.
The examples I saw treat REDIS as a single instance and setting up the Jedis instance looks something like
try (Jedis jedis = new Jedis(Global.CLUSTER_ENDPOINT, 6379, 10000);) {
    jedis.hset(f.dayOfFile, "content", f.xmlFile);
}

HostAndPort would not seem to be used at all in creating a Jedis instance.  Again, this is based upon the limited amount of example code I could find.  So using HostAndPort in an AWS context may be meaningless.  However that is not to say that it couldn't be.
So along that line of reasoning I've come up with a proposed change to HostAndPort that may make the problem better but not necessarily make the problem go away.
public static String convertHost(String host) {
	try {
		/*
		 * Validate the host name as an IPV4/IPV6 address.
		 * If this is an AWS ENDPOINT it will not parse.
		 * In that case accept host as is.
		 *
		 * Costs: If this is an IPV4/6 encoding, e.g. 127.0.0.1 then no DNS lookup
		 * is done.  If it is a name then a DNS lookup is done but it is normally cached.
		 * Secondarily, this class is typically used to create a connection once
		 * at the beginning of processing and then not used again.  So even if the DNS
		 * lookup needs to be done then the cost is miniscule.
		 */
		InetAddress inetAddress = InetAddress.getByName(host);

		// isLoopbackAddress() handles both IPV4 and IPV6
		if (inetAddress.isLoopbackAddress() || host.equals("0.0.0.0") || host.startsWith("169.254"))
			return LOCALHOST_STR;
		else
			return host;
	}
	catch (Exception e) {
		// Not a valid IP address
		log.logp(Level.WARNING, HostAndPort.class.getName(), "convertHost", "'" + host + "' is not a valid IP address", e);
		return host;
	}
}

This basically 'punts' on ENDPOINT addresses and handles IP addresses in the normal way.  It does not change the value of LOCALHOST_STR but perhaps a method should be added: setLocalhost(String localhost)

@marcosnils @allanwax Along with this, Lazy resolution of static variable LOCALHOST_STR should be done to avoid the exception in the first place.

Something like this maybe
...
protected static String localhost = null;
...
// isLoopbackAddress() handles both IPV4 and IPV6
		if (inetAddress.isLoopbackAddress() || host.equals("0.0.0.0") || host.startsWith("169.254"))
			return getLocalhost();
		else
			return host;
...
public static void setLocalhost(String localhost) {
    this.localhost = localhost;
}

public String getLocalhost() {
    if (localhost != null) {
        return localhost;
    }
    else {
        return localhost = getLocalHostQuietly();
    }
}
...

@allanwax @jkrahul thx the feedback. I don't have time to craft a PR currently. I hope @jkrahul has some time to do it soon.

TEST is failling in master branch
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.005 sec <<< FAILURE! - in redis.clients.jedis.tests.ModuleTest testModules(redis.clients.jedis.tests.ModuleTest)  Time elapsed: 0.005 sec  <<< ERROR! redis.clients.jedis.exceptions.JedisDataException: ERR unknown command 'MODULE' 	at redis.clients.jedis.tests.ModuleTest.testModules(ModuleTest.java:34)

@marcosnils @allanwax TEST case is failing
testModules(redis.clients.jedis.tests.ModuleTest)  Time elapsed: 0.006 sec  <<< ERROR! redis.clients.jedis.exceptions.JedisDataException: ERR unknown command 'MODULE' 	at redis.clients.jedis.tests.ModuleTest.testModules(ModuleTest.java:34)

@jkrahul you need to use latest redis from unstable branch in order for it to work.  https://github.com/xetorthio/jedis/blob/1f1e23b26a4aa244ebfdbcbcdf489b630c841884/.github/CONTRIBUTING.md#jedis-test-environment

any updates?

@user20161119 I don't know if this has been included yet but when it is, you can manually set the value of localhost to whatever you want and then it will not be looked up

thanks @allanwax  we integrate jedis with spring data,i am looking for the setting in xml config as follow:
	<bean id="jedisConnectionFactory"
		class="org.springframework.data.redis.connection.jedis.JedisConnectionFactory">
		<property name="hostName" value="${redis_baseinfo_ip}" />
		<property name="port" value="${redis_baseinfo_port}" />
		<property name="password" value="${redis_baseinfo_password}" />
		<property name="poolConfig">
			<bean class="redis.clients.jedis.JedisPoolConfig">
				<property name="maxTotal" value="${redis_baseinfo_pool_maxActive}" />
				<property name="maxIdle" value="${redis_baseinfo_pool_maxIdle}" />
				<property name="testOnBorrow" value="true" />
			</bean>
		</property>
	</bean>

I don't use XML to configure my Redis but to do so I imagine you will have to create a bean for HostAndPort and set a property for localHost.  I believe it is static so once set it should get used.
And maybe this bean should be created before the pool.  Don't know

authors: allanwax jkrahul marcosnils smagellan user20161119 xoraes

repo: xetorthio/jedis


text:
data type of ttl in restore api should be of long type instead of int type

Expected behavior
dump and restore commands expect ttl to be in milliseconds. So, we use pttl command api along with dump command api, and pttl api uses Long data type to hold ttl value. But, when we want to restore the serialized data using restore command api, it expects ttl value to be of int type. This is a problem for very large ttl values.
Actual behavior
type of ttl argument in restore command api should be of long type instead of int type.
Write here what happens instead ...
Steps to reproduce:
Please create a reproducible case of your problem. Make sure
that case repeats consistently and it's not random

convert 365 days to milliseconds, and save it as expire time of some key in redis
use dump and pttl jedis api to serialize the key's value and to get keys ttl value respectively
restore above serialized value using restore api

Redis / Jedis Configuration
single node setup
Jedis version:
2.7.3
Redis version:
3.2.8
Java version:
1.8.0_121

It's long in the master branch https://github.com/xetorthio/jedis/blob/5c2b5858fcac335b67fc0eb00b503a1c71644b19/src/main/java/redis/clients/jedis/commands/JedisCommands.java#L37

authors: hsmhsm marcosnils


text:
Changing Icon

Can I change the icon of the DatePicker?

Of curse, with the iconSource property.

Thanks!

@feyy can you please share example for same.
Also please let me know how can i apply calendar icon like mentioned in below Native base link:
 <Icon name='home' />
https://docs.nativebase.io/Components.html#icon-def-headref
Thanks in Advance.

@AgNm according to the documentation you provided, Native Base's Icon uses Ionicons from React Native Vector Icons, so maybe this can help.
I'm using react-native-vector-icons, and I was able to use one of the vector icons by converting it first to bitmap, by using its getImageSource method, like this:
import MaterialIcon from 'react-native-vector-icons/MaterialIcons'

class Main extends Component {

  constructor(props) {
    super(props)
    MaterialIcon.getImageSource('access-time', 20, 'black').then(
      (source) => this.timeIcon = source
    )
    ...
  }

  render() {
            <DatePicker
              date={this.state.time}
              mode="time"
              placeholder="Time"
              confirmBtnText="Confirm"
              cancelBtnText="Cancel"
              iconSource={this.timeIcon}
            />
  }
}

use iconComponent property.
like this:
import Icon from 'react-native-vector-icons/MaterialIcons'

class Main extends Component {

  ...
  render() {
            <DatePicker
              date={this.state.startDate}
              mode="datetime"
              placeholder="Start Date"
              iconComponent={
                <Icon
                size={30}
                color='#333333'
                name='access-time'
                />
             }
            />
  }
}

Hi, is it possible to locate iconComponent on the left? It's on the right by default. Thanks!

Hi, is it possible to locate iconComponent on the left? It's on the right by default. Thanks!

Ya,  Just add custom Property
customStyles={{
dateIcon: {
position: 'absolute',
left: 0,
top: 4
}
}}

Hi, is it possible to locate iconComponent on the left? It's on the right by default. Thanks!

Ya, Just add custom Property
customStyles={{
dateIcon: {
position: 'absolute',
left: 0,
top: 4
}
}}

hey this isn't working for me! can you help?

authors: AgNm Almighty-aravind alawneh0 dhcmega elhamsarikhani feyy fvicente kiranojhanp

repo: xgfe/react-native-datepicker


text:
qq能防撤回，但没有出现LiteLoaderQQNT等设置

qq版本9.9.7-21453，能正常防撤回，但qq设置里并没有出现LiteLoaderQQNT等设置，无法设置撤回显示等。所以撤回的消息还在，但没有“已撤回”的提示。这怎么解决？测试了一些更新的版本，只有最新版qq9.9.15_28498里出现了LiteLoaderQQNT设置，其他都没有出现。

qq版本是9.9.7-21453

撤回的消息还在，但没有“已撤回”的提示

render层炸了，检查是否有不合适的插件，不兼容插件会把整个渲染层炸掉，建议只装一个插件试试。
另外，通过命令行运行QQ： qq --enable-logging可以通过日志输出观察报错信息来确定是哪里炸了（会有报错文件名）

我也遇到了同样的问题，我感觉应该是LiteLoaderQQNT(1.2.0)不兼容较低版本的QQNT，可以安装QQNT9.9.12-25765(LiteLoaderQQNT 1.2.0的最低兼容版本)来兼容。我这边是能防撤回图片的（除了一张十分特别的图片死活测试都无法反撤回，不知道是什么bug）

可以尝试#96中的办法，也许有效


text:
Overlay with SGPokemap raid data?

What do you think of overlaying "live" raid data? So people can immediately tell which current raids are in a potential ex-raid gym.
I don't know the SGPokemap dev personally though, so not sure how he'd respond to it.

I would also like to do this, but it would also be costly in terms of providing a backend service, and I do not want to leech off others' server's resources (given the amount of visitors that would put a strain on their server load that already requires donations)

That's true. What about something like this:

a cron once every 15 minutes (since eggs pop up an hour before this should be ample time, while limiting load on sgpokemap to 4 requests per hour)
removing the Google maps link and instead link to the raid on sgpokemap so the creators at least get some advertising revenue

Of course should definitely reach out to the creators. Maybe they'll offer to do it the other way round even? Haha. Would be happy to try and ask if you're open, and can maybe contribute a little code.

authors: wasabigeek xiankai

repo: xiankai/sg-pokemongo-ex-raid-map


text:
这本书已经学习完毕,请问xiaolubird大佬,能给个后续学习思路,相关书籍推荐么?

这本书已经学习完毕,请问xiaolubird大佬,能给个后续学习思路,相关书籍推荐么?

后面可以接触更上层的调度和平台方面，比如Kubernetes.
下层可以学习一下containerd 的实现

authors: johnnylei xianlubird

repo: xianlubird/mydocker


text:
🚸 Don't show dropdown if there is only one translation

What do you think about that?

@Zebradil  Thanks for your feedback!
My opinion is, showMenuLanguageChooser just an option. if there is only one translation, and the user don't need dropdown menu, he could add an "menu item" to the config easily as before.
But if he like the dropdown menu, and we change like this, he will not be able to show the dropdown menu.
So I think, we don't need change the showMenuLanguageChooser behavior for now.

Well, quite reasonable :-)

authors: Zebradil xianmin

repo: xianmin/hugo-theme-jane


text:
1.3.2版本怎样调用高德 JS 库？

怎样调用高德JS库 获取当前位置？

naReady事件和AMapLoaderService都无效。由于是ionic3项目，ngx-amap不能升级到高版本，应该如何解决？

repo: xieziyu/ngx-amap


text:
自製 ZipSDCardLoader 的問題

參照了Demo中的 class: ZipSDCardLoader extends SkinSDCardLoader 來進行自定義的zip包換膚，
目前使用自定義 zip 實現換膚功能是可行的，但是有個小問題不知是否是我理解有誤。
為了達成自製的unzip strategy，
不會(也不能)呼叫 SkinCompatResources.getInstance().setupSkin(...)涵式。
這使得SkinCompatResources中的mSkinName一直都會是空字串。
進一步影響到getDrawable(...)涵式當中的參數skinName會維持空字串。
我目前的的work aound是在 ZipSDCardLoader 底下新增一個 String mSkinName;
並在 loadSkinInBackground(...) 中讓 mSkinName = skinName;
而在getDrawable(...)涵式當中就使用mSkinName 來代替空字串的 skinName

zip换肤是可以和其他的换肤组合起来使用的。
资源加载优先级: 动态设置资源-加载策略中的资源-插件式换肤/应用内换肤-应用资源。

我也遇到同样的问题
使用自定义SkinSDCardLoader时，
如果SkinSDCardLoader#getSkinPath使用的是自定义的路径（官方demo中的路径也不行），
那么SkinSDCardLoader#loadSkinInBackground时，取不到pkgName。
导致不会执行SkinCompatResources#setupSkin方法。
这样获取资源文件时就取不到skinName了，一直是空字串。
我看了一下demo，demo中没有用skinName，而是把路径写死了。
这样多少皮肤切换时就用了。
能否给一个能读取到skinName的解决方案呢？
另：目前我使用的解决方案也是 @CaviarWang 上文提到的解决方案。
非常感谢。

authors: CaviarWang dyguests ximsfei

repo: ximsfei/Android-skin-support


text:
CUDA out of memory

Hi Xintao,
I currently study GAN to help super-resolution task, e.g. ESRGAN.
When I tried to run your code from DIV2K training set, I keeps getting run time error: CUDA out of memory.
I have two question about this.

How much memory it spends to run ESRGAN?
Tried to allocate 12.00MiB (GPU 0; 3.95 GiB total capacity; 3.46 GiB already allocated; 1.56 MiB
free; 2.38MiB cached)
Where and how can I modify your architecture to have a smaller arch in order to fit my environment?

It consumes about 2~5G GPU memory depending on the input size.
You can modify the architecture in this file https://github.com/xinntao/BasicSR/blob/master/codes/models/modules/architecture.py

It consumes about 2~5G GPU memory depending on the input size.
You can modify the architecture in this file https://github.com/xinntao/BasicSR/blob/master/codes/models/modules/architecture.py

Hi Xintao,
I encounterd the same problem with my 1080Ti which has 11GB memory. I trained the model with 128*128 DIV2K patches and batchsize = 8. But the "CUDA out of memory" still bothers me. Is there anything wrong with my settings?

try reducing batchsize

authors: BeepBump Ir1d WMCh xinntao

repo: xinntao/BasicSR


text:
Move the cpu feature info line

Address #2747

Coverage decreased (-0.4%) to 83.38% when pulling e3fb0e86a5e6affacffdb044df30f69e09316cf7 on rust-av:fix-info-cpufeatures into 245f0d39b2d83773b7be9d7385fa48ac94895f4f on xiph:master.

authors: coveralls lu-zero


text:
Afvalwijzer all sensor unavailable

Support guidelines

[X] I've read the support guidelines

Description
Afvalwijzer integration does not seem to load, and all sensors show "unavailable". Integration does show up in HACS and can update. Updated several times in the last month, but still nothing helps. Removing all files from the custom_components/afvalwijzer and copying in the new files does also not help.
Expected behaviour
Sensors show a state, but they don't
Actual behaviour
Everything was working just fine, but all afvalwijzer sensors now report "unavailable"  and info states "This entity is no longer being provided by the afvalwijzer integration."
Version
Home Assistant 2022.10.5 Supervisor 2022.10.0 Operating System 9.3 Frontend 20221010.0 - latest
HASS logs

logger -> logs -> custom_components.afvalwijzer: debug in you configuration.yaml
home-assistant.log

Hi, did you upgrade to the latest release of afvalwijzer? In the logfiles I don't see anything about afvalwijzer besides HASS recognizes the component.
Are you using the latest release: 2022.11.02?
What does you configuration look lijk (postal_code, provider)?

Thanks Xirixiz,
Yes I agree that it is strange. I am on 11.02. Config did not changes since it is working (should not have) and looks like (house number blurred) (provider is I think suez but worked through afvalwijzer, at leat Afvalwijzer app on android/iOS gives me info)
logger:
default: info
logs:
custom_components.afvalwijzer: debug
sensor:

platform: afvalwijzer
provider: mijnafvalwijzer        # (required, default = mijnafvalwijzer) either choose mijnafvalwijzer, afvalstoffendienstkalender or rova
postal_code: 3721AL              # (required, default = '')
street_number:  xx                # (required, default = '')
suffix: ''                       # (optional, default = '')
exclude_pickup_today: true       # (optional, default = true) to take or not to take Today into account in the next pickup.
default_label: Geen              # (optional, default = Geen) label if no date found
id: ''                           # (optional, default = '') use if you'd like to have multiple waste pickup locations in HASS
exclude_list: ''                 # (optional, default = '') comma separated list of wast types (case ignored). F.e. "papier, gft"

eh.. formatting from the configuration suffers from automated formatting error. It is
logger:
default: info
logs:
custom_components.afvalwijzer: debug
sensor:

platform: afvalwijzer
provider.... etc

Yep I had checked that and came to the same conclusion. Any suggestion
beside building everything from scratch??  Not looking forward to that as I
have a maze
On Tue, 1 Nov 2022 at 16:31, Bram van Dartel @.***>
wrote:

I just checked but the component is working as expected. I receive the
following data.
There seems to be something wrong with your HASS instance or so....
{'pmd': datetime.datetime(2022, 11, 9, 0, 0), 'takken': datetime.datetime(2022, 11, 10, 0, 0), 'gft': datetime.datetime(2022, 11, 14, 0, 0), 'restafval': datetime.datetime(2022, 11, 18, 0, 0), 'papier': datetime.datetime(2022, 11, 19, 0, 0), 'kerstbomen': 'Geen'}
{'pmd': datetime.datetime(2022, 11, 9, 0, 0), 'takken': datetime.datetime(2022, 11, 10, 0, 0), 'gft': datetime.datetime(2022, 11, 14, 0, 0), 'restafval': datetime.datetime(2022, 11, 18, 0, 0), 'papier': datetime.datetime(2022, 11, 19, 0, 0), 'kerstbomen': 'Geen'}
{'next_date': datetime.datetime(2022, 11, 9, 0, 0), 'next_in_days': 8, 'next_type': 'pmd', 'today': 'Geen', 'tomorrow': 'Geen', 'day_after_tomorrow': 'Geen'}
['gft', 'kerstbomen', 'papier', 'pmd', 'restafval', 'takken']
['day_after_tomorrow', 'next_date', 'next_in_days', 'next_type', 'today', 'tomorrow']
The provider for you should be "mijnafvalwijzer"
—
Reply to this email directly, view it on GitHub
https://github.com/xirixiz/homeassistant-afvalwijzer/issues/205#issuecomment-1298709114,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APLBB5W2DF45WYC5HRA3E33WGEZTTANCNFSM6AAAAAARUAD4HQ
.
You are receiving this because you authored the thread.Message ID:
@.***>

Yeah. Remove the integration, remove the config, restart hass. Reinstall the integration, add the config again (type manually, don't copy/paste), restart hass...
Could it be you have new sensors perhaps? Can you check that in the states section in developer?

I have the same issue. On my dashboard it shows:

I know it was working last weekend. Upgraded Afvalwijzer from 10.2 to the latest, but also HASS to 2022.11.01.
The weird thing is that it doesn't show up under 'Integraties' but according to HACS it should be installed. The only mention in the log is the well-known one:
2022-11-05 03:05:43.966 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration afvalwijzer which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant

That is weird indeed. Maybe it's an issue with HASS itself...
What if you disable debugging and try again, what happens then?
What is your postal code? Maybe I can simulate the issue.

2022.11.1 has been released. I've been testing it with the postal code provided earlier. Both with or without debugging the component is working fine for me.

That is weird indeed. Maybe it's an issue with hass itself... as data is normally showing up when running the afvalwijzer component outside hass, especially since the component doesn't load or doesn't throw an error. The warning is normal and is always showing btw.
What if you disable debugging and try again, what happens then? What is your postal code? Maybe I can simulate the issue.

I disabled debug and it's still working fine. Guess Hass must have messed up some things. I run Hass in a Docker-container on a RPi4. Well, seems problems solved, but after noticing this earlier this morning (well actually yesterday-evening) I searched and stumbled upon this thread.

I have removed the integration, removed the config, restarted, reinstalled
(restarted, it loads but all sensors are unavailabed ) added the config
again. Still all afvalwijzer sensors are unavailable.
[image: image.png]
I updated to the 11.1 - also that did not make a difference. Not sure if I
have new sensors. But looking at my sensors overall, I have some weird
sensors also unavailable not familiar to me. That is suspicious. They seem
all related to alexa media player integration.
On Tue, 1 Nov 2022 at 17:05, Bram van Dartel @.***>
wrote:

Yeah. Remove the integration, remove the config, restart hass. Reinstall
the integration, add the config again (type manually, don't copy/paste),
restart hass...
Could it be you have new sensors perhaps? Can you check that in the states
section in developer?
—
Reply to this email directly, view it on GitHub
https://github.com/xirixiz/homeassistant-afvalwijzer/issues/205#issuecomment-1298761873,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APLBB5UKTKC5GVAO4XQYZMDWGE5TVANCNFSM6AAAAAARUAD4HQ
.
You are receiving this because you authored the thread.Message ID:
@.***>

Solved it - @xirixiz , your hunch was correct - additional sensor definition in the configuration.yaml (as opposed as one sensor definition with separate categories underneath was the culprit. Thus not
sensor

xxxxx
sensor
yyyy

but
sensor

xxxx
yyyy

simple stupid mistake.
Thanks for you help

Great! Nice that the issue has been resolved!

authors: GesturV pluim003 xirixiz

repo: xirixiz/homeassistant-afvalwijzer


text:
Support Scala 2.13.

Bump Scala 2.12.8 -> 2.12.10
Bump sbt 1.2.8 -> 1.3.2

There are a couple of additional deprecation warnings, but can't be fixed without either dropping 2.11 support, or adding separate sources for 2.11 so decided to leave as is.

Thanks! We don't need to support 2.11 any more, it's too old. Please feel free to just remove 2.11 support.

Thanks for your PR.
I've created a commit based on your PR:
https://github.com/xitrum-framework/scala-xgettext/commit/cf701b855bea15c8a106e5c0eeb10a7fa46df1e8
I've released version 1.5.4 which supports Scala 2.13.

Thanks for your PR.
I've created a commit based on your PR:
https://github.com/xitrum-framework/scala-xgettext/commit/cf701b855bea15c8a106e5c0eeb10a7fa46df1e8
I've released version 1.5.4 which supports Scala 2.13.

repo: xitrum-framework/scala-xgettext


text:
registerSupportProtocolWithHTTP:(BOOL)supportHTTP 请教

这里的参数在实际场景下怎么使用？ 我看demo里面设置的是NO，但发起的都是http请求？ 意思是不拦截吗？

WKMessageHandlerProtocol 这个的使用场景又是什么？》 🙏

jxb_loadRequestURLString  这一系列方法什么使用调用啊？

1、拦截http(s)的请求一定要谨慎，这回导致post请求body数据丢失，建议你不要拦截。
2、WKMessageHandlerProtocol是H5和native的通信协议。
3、一系列方法就是初始化栈方法，丢一个你要请求的资源地址进来。

多谢作者的耐心回复了！>___<

authors: dustturtle xiubojin

repo: xiubojin/JXBWKWebView


text:
HybridViewController中没有代码

HybridViewController没有任何代码呀

这个控制器本来想写一些常见新闻页的实现代码，但是工程量太大，没时间写。

authors: wuzaozhou xiubojin


text:
assignment4 from logan0czy

(^0^)

很棒，继续加油~


text:
fail to use the tool since tool selection is inaccurate

I am trying to use EChart tool to draw a plot. However, I feel it's really hard..
It tries to write echarts tool in python but not adopt the tool directly..

Thanks for your question, the same reason as https://github.com/xlang-ai/OpenAgents/issues/67 ~

@Timothyxxx Thanks! I will switch to GPT-4 and give it another try. I will close this issue and let's track the problem in #67

authors: Jeffwan Timothyxxx

repo: xlang-ai/OpenAgents


text:
Add libntl

Before adding new features and new modules, please go to issues to submit the relevant feature description first.
Write good commit messages and use the same coding conventions as the rest of the project.
Please commit code to dev branch and we will merge into master branch in feature
Ensure your edited codes with four spaces instead of TAB.

增加新特性和新模块之前，请先到issues提交相关特性说明，经过讨论评估确认后，再进行相应的代码提交，避免做无用工作。
编写友好可读的提交信息，并使用与工程代码相同的代码规范，代码请用4个空格字符代替tab缩进。
请提交代码到dev分支，如果通过，我们会在特定时间合并到master分支上。
为了规范化提交日志的格式，commit消息，不要用中文，请用英文描述。

我建议你还是省事点，直接 port 到 xmake.lua 说不定还快了。。这个 repo 又没几个文件

删去了 mingw 以及其它平台，因为依赖的 xmake-repo 中的 gmp 只支持 linux 与 macosx；
它原始提供的脚本只能 native 编译，所以加了 native 限制；
参考了其它包描述，为原始脚本设置了合适的 CXX CXXFLAGS 等。

authors: Guyutongxue waruqi

repo: xmake-io/xmake-repo


text:
cuda nvcc does not respect c++ standards

描述问题
xmake.lua
set_languages("c++17")
target("main")
    add_files("main.cu")

报错namespace std has no member variant，检查xmake -v发现nvcc没有加-std=c++17 的flag
期待的结果
nvcc应该正确设置c++版本的flag：
https://stackoverflow.com/questions/63036624/how-to-enable-c17-code-generation-in-vs2019-cuda-project
用msvc时加
-std=c++17 -Xcompiler "/std:c++17"

用gcc/clang时加
-std=c++17

错误信息
[ 25%]: ccache compiling.release prog05/main.cu
/usr/bin/ccache /usr/local/cuda/bin/nvcc -c -Xcompiler -fPIE -O3 -I /home/xq114/.xmake/packages/t/taskflow/v3.2.0/141b4057e59b4b7994004386609dd4bf/include -I /usr/local/cuda/include --extended-lambda -m64 -o build/.objs/prog05/linux/x86_64/release/prog05/main.cu.o prog05/main.cu
checking for flags (-MMD -MF) ... ok
> nvcc "-MMD" "-MF" "/dev/null"
error: @programdir/modules/private/async/runjobs.lua:232: @programdir/modules/private/action/build/object.lua:78: @programdir/modules/core/tools/nvcc.lua:356: /home/xq114/.xmake/packages/t/taskflow/v3.2.0/141b4057e59b4b7994004386609dd4bf/include/taskflow/core/../utility/traits.hpp(100): error: namespace "std" has no member "variant"
/home/xq114/.xmake/packages/t/taskflow/v3.2.0/141b4057e59b4b7994004386609dd4bf/include/taskflow/core/../utility/traits.hpp(100): error: expected a ">"
/home/xq114/.xmake/packages/t/taskflow/v3.2.0/141b4057e59b4b7994004386609dd4bf/include/taskflow/core/../utility/traits.hpp(100): error: expected a ";"
/home/xq114/.xmake/packages/t/taskflow/v3.2.0/141b4057e59b4b7994004386609dd4bf/include/taskflow/core/../utility/traits.hpp(110): error: namespace "std" has no member "is_trivial_v"
/home/xq114/.xmake/packages/t/taskflow/v3.2.0/141b4057e59b4b7994004386609dd4bf/include/taskflow/core/../utility/traits.hpp(110): error: type name is not allowed
/home/xq114/.xmake/packages/t/taskflow/v3.2.0/141b4057e59b4b7994004386609dd4bf/include/taskflow/core/../utility/traits.hpp(111): error: labels can be referenced only in function definitions
/home/xq114/.xmake/packages/t/taskflow/v3.2.0/141b4057e59b4b7994004386609dd4bf/include/taskflow/core/../utility/traits.hpp(111): error: expected a ";"
/home/xq114/.xmake/packages/t/taskflow/v3.2.0/141b4057e59b4b7994004386609dd4bf/include/taskflow/core/../utility/traits.hpp(111): error: expected a "}"
8 errors detected in the compilation of "prog05/main.cu".
stack traceback:
    [C]: in function 'error'
    [@programdir/core/base/os.lua:829]: in function 'raise'
    [@programdir/modules/core/tools/nvcc.lua:356]: in function 'catch'
    [@programdir/core/sandbox/modules/try.lua:127]: in function 'try'
    [@programdir/modules/core/tools/nvcc.lua:311]:
    [C]: in function 'compile'
    [@programdir/modules/private/action/build/object.lua:78]: in function 'script'
    [@programdir/modules/private/action/build/object.lua:91]: in function '_build_object'
    [@programdir/modules/private/action/build/object.lua:116]: in function 'jobfunc'
    [@programdir/modules/private/async/runjobs.lua:208]:
    [C]: in function 'trycall'
    [@programdir/core/sandbox/modules/try.lua:121]: in function 'try'
    [@programdir/modules/private/async/runjobs.lua:201]: in function 'cotask'
    [@programdir/core/base/scheduler.lua:365]:

stack traceback:
        [C]: in function 'error'
        @programdir/core/base/os.lua:829: in function 'raise'
        @programdir/modules/private/async/runjobs.lua:232: in function 'catch'
        @programdir/core/sandbox/modules/try.lua:127: in function 'try'
        @programdir/modules/private/async/runjobs.lua:201: in function 'cotask'
        @programdir/core/base/scheduler.lua:365: in function <@programdir/core/base/scheduler.lua:362>

相关环境
请提供编译和运行环境信息，下面是一些必须填写的基础信息，便于我们针对性排查问题：

xmake版本：2.5.7
xmake运行平台：Debian 11
xmake目标平台：linux x86_64

这种小改动，直接帮忙加一下就好了，我还得重新搞cuda环境，https://github.com/xmake-io/xmake/blob/b9d4b06cb993b737a28d59561c3b5b4002a429f9/xmake/modules/core/tools/nvcc.lua#L172
目前之前走的 --std c++14 格式传给 nvcc ，它应该会内部根据 gcc/msvc 自动处理，可以加个 --std c++17 试试

repo: xmake-io/xmake


text:
xmake project -k compile_commands generate incorrect data

Xmake Version
2.7.7
Operating System Version and Architecture
Ubuntu 20.04
Describe Bug
xmake project -k compile_commands geneate incorrect data:
1, -include src/pch.h & -include-pch build/.objs/test/windows/x86_64/release/src/pch.h.pch missing
2,  -isystem incorrectly generated to -I
Expected Behavior
correct generate compile_command.json
Project Configuration
No response
Additional Information and Error Logs
No response

Sorry, for the duplicated report. I found #3020


text:
links not found when add_deps("openmp")

Xmake 版本
2.9.3
操作系统版本和架构
Fedora
描述问题
https://github.com/xmake-io/xmake-repo/actions/runs/9920625780/job/27407697804?pr=4611
error: @programdir/core/package/package.lua:2406: package(openmp): links not found!
openmp本来就没有link
期待的结果
正常安装package
工程配置

附加信息和错误日志

再试试

还是不行，应该是#ldflags > 0才对吧；还有就是https://github.com/xmake-io/xmake/blob/dev/xmake/core/package/package.lua#L2021-L2029 这里没考虑 fetchinfo 为boolean的情况，直接判断fetchinfo.version会出问题，是不是参考https://github.com/xmake-io/xmake/blob/dev/xmake/core/package/package.lua#L1739-L1749 处理下？

还是不行，应该是#ldflags > 0才对吧；

好了，再试试

还有就是https://github.com/xmake-io/xmake/blob/dev/xmake/core/package/package.lua#L2021-L2029 这里没考虑 fetchinfo 为boolean的情况，直接判断fetchinfo.version会出问题，是不是参考https://github.com/xmake-io/xmake/blob/dev/xmake/core/package/package.lua#L1739-L1749 处理下？

返回 boolean 原本就是不对的，当初早期可能有几个不规范的，改下包就好了。。现在统一只能返回 table

还是不行

还是不行

我这里正常，links not found 的问题没了。。
> checking for c links(omp)
> checking for c snippet(test)
  => install openmp latest .. ok

反而是 openmp 这个包自从加了 fortran 后，ldflags 没设置对，导致 macos 下 test 测试不过，多了 -fopenmp 的 ldflags。。我改了下。。
https://github.com/xmake-io/xmake-repo/pull/4663

应该可以了 https://github.com/xmake-io/xmake-repo/pull/4663


text:
Provide a way to export only modified configs

你在什么场景下需要该功能？
https://github.com/xmake-io/xmake/issues/2401
有时需要在一个config模板上增加新的config，目前xmake中不提供config-update功能，只能通过
xmake f --export=template.txt
xmake f --import=template.txt --a=on

来实现。但这种做法存在一些问题，例如项目中存在a,b,c三个option，其中b的值依赖a而变动。（例如a=off时b设为on）这时运行
xmake f --a=on
xmake f --export=template.txt
xmake f --import=template.txt --a=off

就会出现问题，template.txt中b为off，最后的效果相当于xmake f --a=off --b=off，产生conflict。https://github.com/xmake-io/xmake/issues/2401 中提到的config-update插件似乎也不能处理这种情况。
描述可能的解决方案
类似VSCode的做法，只记录modified configs，而非记录全部configs：
xmake f --a=on
xmake f --export=template.txt

template.txt
{ a = true }

对非手动设置的默认config留给项目自己决定，不记录/导出。这样就避免了之前提到的conflict。
可以先提供xmake f --export-modified 选项并保留之前的做法，3.0投票确认是否要更改为默认行为
描述你认为的候选方案
用 export-modified 和 import 实现一个官方的 config-update ，原有export行为保留；config-update运行的时候输出一行实际的config命令
> xmake config --a=on --c=on
...
> xmake config-update --a=off
run: xmake config --c=on --a=off
...

这样可以很清晰地看到是否有config conflict，和直接输入xmake config --c=on --a=off是一样的。
其他信息
Related issues/comments:
A way to change config without having to respecify all config, maybe separate some configs such as mode from other configs. It's quite painful to work with a lot of config because of that.
Originally posted by @SirLynix in https://github.com/xmake-io/xmake/issues/5527#issuecomment-2320448497
https://github.com/xmake-io/xmake/issues/5041
https://github.com/xmake-io/xmake/issues/2401
https://github.com/xmake-io/xmake/issues/823

但这种做法存在一些问题，例如项目中存在a,b,c三个option，其中b的值依赖a而变动。（例如a=off时b设为on）这时运行

就是因为依赖联动很难搞，所以我一直没支持 config update，因为支持了，联动不了，反而会引入各种暗坑，导致用户各种报障，还很难复现和调试

所以才需要学vscode的存modified的方式，vscode的模式还能支持合并多个设备不同的setting，也是很成熟的解决方案了；而且也不一定非要提供config update，提供一个modified config就行了

但这种做法存在一些问题，例如项目中存在a,b,c三个option，其中b的值依赖a而变动。（例如a=off时b设为on）这时运行

就是因为依赖联动很难搞，所以我一直没支持 config update，因为支持了，联动不了，反而会引入各种暗坑，导致用户各种报障，还很难复现和调试

所以才需要学vscode的存modified的方式，vscode的模式还能支持合并多个设备不同的setting，也是很成熟的解决方案了；而且也不一定非要提供config update，提供一个modified config就行了

不懂，如果三个 option 都存在依赖关系, a -> b -> c，并且这三要么全是 true 要么全是 false ，互相关联的。
我仅仅修改存储 c 的状态
那 a 和 b 的状态怎么同步？我改完 c 直接 build 不就报错了么？

对非手动设置的默认config留给项目自己决定，不记录/导出。这样就避免了之前提到的conflict。

那不是还得用户手动分析关系后，手动再去改 a/b? 要是没去改呢 不也会出错么

不懂，如果三个 option 都存在依赖关系, a -> b -> c，并且这三要么全是 true 要么全是 false ，互相关联的。
我仅仅修改存储 c 的状态
那 a 和 b 的状态怎么同步？我改完 c 直接 build 不就报错了么？

对非手动设置的默认config留给项目自己决定，不记录/导出。这样就避免了之前提到的conflict。

那不是还得用户手动分析关系后，手动再去改 a/b? 要是没去改呢 不也会出错么

如果是这样互相关联的情况，b c都应该设成 set_showmenu(false) ，不暴露接口。暴露出来的只应该是能改、能影响其他option的接口。这种问题和有没有config update 无关，暴露c出来直接执行xmake f --c=on也会报错，xmake不需要处理所有的conflict，只需要不在命令行基础上引入新的conflict就行了

不懂，如果三个 option 都存在依赖关系, a -> b -> c，并且这三要么全是 true 要么全是 false ，互相关联的。
我仅仅修改存储 c 的状态
那 a 和 b 的状态怎么同步？我改完 c 直接 build 不就报错了么？

对非手动设置的默认config留给项目自己决定，不记录/导出。这样就避免了之前提到的conflict。

那不是还得用户手动分析关系后，手动再去改 a/b? 要是没去改呢 不也会出错么

如果是这样互相关联的情况，b c都应该设成 set_showmenu(false) ，不暴露接口。暴露出来的只应该是能改、能影响其他option的接口。

不一定，联动有可能只是默认值联动，不是强制联动的。比如 --plat/--arch 都是暴露的
如果 xmake f -p linux ，没有指定 arch，那么 arch 默认可以联动到 linux 支持的 arch 上去。。但是用户还是可以 xmake f -p linux -a x86_64 强制全部指定。
比如现在支持了增量更新。
首次用户配置，xmake f -p linux -a x86_64
第二次用户配置切了平台，xmake f -p iphoneos
这时候的 arch 到底应该是之前用户指定的 x86_64 还是iphoneos 默认的 arm64 呢？
目前的全量配置，也支持联动，但是仅仅只需要支持默认值联动，也就是 arch 会自动切到 arm64，其实反而是最合理的。
如果是增量更新，如果还是用之前用户指定的 x86_64 其实不对的，但是要支持联动，就不仅仅是默认值的联动关系了，这块实现上，目前的机制处理起来就更复杂了，目前不太好实现。但要是不处理，那么状态就不一致冲突了。各种配置多了，用户自己都记不清哪些 option 当前是哪些状态了，然后编译报错了，就各种提 issues 。

不一定，联动有可能只是默认值联动，不是强制联动的。比如 --plat/--arch 都是暴露的
如果 xmake f -p linux ，没有指定 arch，那么 arch 默认可以联动到 linux 支持的 arch 上去。。但是用户还是可以 xmake f -p linux -a x86_64 强制全部指定。
比如现在支持了增量更新。
首次用户配置，xmake f -p linux -a x86_64 第二次用户配置切了平台，xmake f -p iphoneos
这时候的 arch 到底应该是之前用户指定的 x86_64 还是iphoneos 默认的 arm64 呢？
目前的全量配置，也支持联动，但是仅仅只需要支持默认值联动，也就是 arch 会自动切到 arm64，其实反而是最合理的。
如果是增量更新，如果还是用之前用户指定的 x86_64 其实不对的，但是要支持联动，就不仅仅是默认值的联动关系了，这块实现上，目前的机制处理起来就更复杂了，目前不太好实现。但要是不处理，那么状态就不一致冲突了。各种配置多了，用户自己都记不清哪些 option 当前是哪些状态了，然后编译报错了，就各种提 issues 。

可以不改默认行为，提供一个增量更新的接口或者导出更改过的options的接口就好了。上面的行为如果在增量更新里面等价于
xmake f -p linux -a x86_64 -p iphoneos

出错误是应该的，这种情况就应该用全量更新清除之前设置。
（p.s. 实际上这种同时需要产出两种target的情况直接切config会覆盖之前的detect cache等，来回切换并不太方便，一般我会直接开两个子文件夹build_linux和build_ios然后分别在里面跑xmake -P ..，这样每个文件夹的detect cache、config等都是独立的）

p.s. 实际上这种同时需要产出两种target的情况直接切config会覆盖之前的detect cache等，来回切换并不太方便，一般我会直接开两个子文件夹build_linux和build_ios然后分别在里面跑xmake -P ..，这样每个文件夹的detect cache、config等都是独立的）

现在各种 cache 原本就是根据 plat/arch 独立存储的，为啥会冲突，我来回各种切，也没见啥问题
 .xmake/macosx/x86_64/cache/detect

出错误是应该的，这种情况就应该用全量更新清除之前设置。

现在的问题就是，支持了增量更新，遇到这种错误的频率就变的更多了，有需要用户手动全量，然后对于大部分用户，并不了解这些机制和原理，就会各种趟坑后过来开 issues 问，很容易被劝退，而全量更新，至少目前 cmake/autoconf 目前也都是，至少行为上一致，熟悉这种方式。

可以不改默认行为，提供一个增量更新的接口或者导出更改过的options的接口就好了

为了个配置，额外再去加个 xmake config-update 太臃肿了，现在内置的命令已经太多了。而且每次更新配置，要敲这么长，也不见得比全量的省事。
后面，增量可以考虑做，但前提是，需要先完全解决依赖联动的问题。就比如这里提到的 menuconf option 的状态联动。https://github.com/xmake-io/xmake/issues/4878
只有把这个问题彻底解了，那就没必要分 xmake config 和 xmake config-update 了。到时候，config-update 反而显得冗余了。
关于如何联动，目前我暂时没时间想好怎么弄，可能会考虑 option 里面加个 on_changed/on_updated 来实现用户修改状态的快速更新。

而全量更新，至少目前 cmake/autoconf 目前也都是，至少行为上一致，熟悉这种方式。

这个其实不准确，cmake/autoconf机制上是不支持更新的，要新的config就必须开新的文件夹，不然直接报错。所以微软才搞了个CMakePresets.json来实现增量更新，VS里Modified内容放到CMakePresets.json里，VS调用cmake的时候从CMakePresets.json生成设置。在同一个文件夹config多次的功能只有xmake才有，谈不上方式已经熟悉，其实我这边“理所当然”觉得多次config应该增量的新用户更多，只是来提issue问的比较少。

为了个配置，额外再去加个 xmake config-update 太臃肿了，现在内置的命令已经太多了。而且每次更新配置，要敲这么长，也不见得比全量的省事。

这个说法赞同，而且确实支持联动之后不再需要config-update了。目前可以不用官方提供config-update，只修改一下config --export的行为作为权益之计也足够了，需要增量更新的可以自己用modified export实现。上面微软搞得那套实际上也就是modified export。xmake-vscode插件里内部也可以用增量更新，目前vscode里点击build自动先运行xmake f --plat=windows --arch=x64，把之前设置的config都清除了，导致gui基本没法用，有增量更新的实现方式也可以参考VS支持CMake的方式，先把gui用起来


text:
Can't build after install via pod

when buid project after install via pod 'PagerTabStripView', '~> 2.0' in Xcode 12.4

Hi! Could you update your Xcode to version 12.5?  Let us know if it's still happening

Hi @minhson95th! The library compatibility requires XCode 12.5+.

authors: cecipirotto minhson95th mtnbarreto

repo: xmartlabs/PagerTabStripView


text:
embedding、rerank等模型使用UI启动的时候 无法设置replica，希望能增加这个选项。

Is your feature request related to a problem? Please describe
UI启动embedding、rerank模型无法设置replica。
Describe the solution you'd like
UI启动embedding、rerank模型时候增加 replica选项。

@yiboyasss Can you look at this requirements?

repo: xorbitsai/inference


text:
支持从UI上给 reranker model 设置 batch_size

Feature request / 功能建议
支持从UI上给 reranker model 设置 batch_size
Motivation / 动机
在实际使用场景下，不同的硬件和chunk size 需要设定不同的batch_size以最大化reranker性能
Your contribution / 您的贡献
N/A

如果设置 batch_size 是什么行为？

authors: qinxuye wlmzfx


text:
如何给Sqltemplate添加自定义函数

如何给Sqltemplate添加自定义函数,使用html/template模板进行解析.想添加个自定义函数.总是提示未定义.一步一步debug发现只使用了官方库的默认函数查找对比

你是使用的标准库的模板引擎么？

你是使用的标准库的模板引擎么？

是的.示例代码如下
main.go
`package main
import (
"fmt"
_ "github.com/go-sql-driver/mysql"
"github.com/xormplus/xorm"
"html/template"
"time"
)
var (
engine *xorm.Engine
)
func main() {
engine, err := xorm.NewEngine("mysql", fmt.Sprintf("%s:%s@tcp(%s:%s)/%s?charset=utf8&parseTime=True&loc=Local", "root", "", "127.0.0.1", "3306", "mysql"))
if err != nil {
panic(err)
}
engine.ShowExecTime(true)
engine.ShowSQL(true)
tpl := xorm.Default("./templates", ".tpl")
t := template.New("ShowTimestamp").Funcs(template.FuncMap{"ShowTimestamp": ShowTimestamp})
tpl.Template["ShowTimestamp"] = t
fmt.Println(t.DefinedTemplates())
err = engine.RegisterSqlTemplate(tpl)
if err != nil {
panic(err)
}
}
// 显示时间戳
func ShowTimestamp(val string) string {
fmt.Println(val)
return fmt.Sprintf("%d", time.Now().Unix())
}
`
tpl文件内容如下
select * from user {{. | ShowTimestamp}}
报错提示
panic: template: query.tpl:2: function "ShowTimestamp" not defined

暂不支持这种用法

对Default模板引擎新增这个功能，你可以试下看看

对Default模板引擎新增这个功能，你可以试下看看

测试了正常.
还有一个问题
在使用?变量名进行占位时,变量内容中如果带有点(.),只会判断前面的内容为map的key
Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '?.hardkey ORDER BY create_at desc LIMIT 20' at line 1
实际上我使用的是  device.hardkey = ?device.hardkey 这样的方式进行占位,除了where部分   orderby部分好像不能进行这样占位.

请贴一下你的详细代码，我看下你的具体使用方式

请贴一下你的详细代码，我看下你的具体使用方式

`package main
import (
"fmt"
_ "github.com/go-sql-driver/mysql"
"github.com/xormplus/xorm"
)
var (
engine *xorm.Engine
)
func main() {
engine, err := xorm.NewEngine("mysql", fmt.Sprintf("%s:%s@tcp(%s:%s)/%s?charset=utf8&parseTime=True&loc=Local", "root", "root", "127.0.0.1", "3306", "nice_control"))
if err != nil {
panic(err)
}
engine.ShowExecTime(true)
engine.ShowSQL(true)
m := make(map[string]interface{})
m["mgr_role.role_id"] = 1
sql := SELECT 	'mgr_user', 	mgr_user.*, 	'mgr_user_role', 	mgr_user_role.*, 	'mgr_role', 	mgr_role.*  FROM 	mgr_user 	LEFT JOIN mgr_user_role ON mgr_user.user_id = mgr_user_role.user_id 	LEFT JOIN mgr_role ON mgr_user_role.role_id = mgr_role.role_id  WHERE 	mgr_role.role_id = ?mgr_role.role_id
result := engine.SQL(sql, &m).Query()
if result.Error != nil {
panic(result.Error)
}
}`
mgr_role.role_id 为1时正常查询的结果集如下:

`Name
Value

mgr_user
mgr_user

user_id
1

account
admin

password
admin

status
1

qq
123456

mail
123456@qq.com

phone
10010

desc
管理员

login_count
382

version
8

create_time
2019-04-08 17:37:43

login_time
2019-08-19 10:57:33

mgr_user_role
mgr_user_role

id
1

user_id
1

role_id
1

mgr_role
mgr_role

role_id
1

role_name
admin

role_desc
系统管理员

status
1

version
31

create_time
2019-04-11 17:23:22

update_time
2019-08-13 15:23:56

map中的key如果包含(.),这样在使用名称占位时就会出现问题.

请贴一下你的详细代码，我看下你的具体使用方式

`package main
import (
"fmt"
_ "github.com/go-sql-driver/mysql"
"github.com/xormplus/xorm"
)
var (
engine *xorm.Engine
)
func main() {
engine, err := xorm.NewEngine("mysql", fmt.Sprintf("%s:%s@tcp(%s:%s)/%s?charset=utf8&parseTime=True&loc=Local", "root", "", "127.0.0.1", "3306", "mysql"))
if err != nil {
panic(err)
}
engine.ShowExecTime(true)
engine.ShowSQL(true)
m := make(map[string]interface{})
m["mgr_role.role_id"] = 1
sql := SELECT 	'mgr_user', 	mgr_user.*, 	'mgr_user_role', 	mgr_user_role.*, 	'mgr_role', 	mgr_role.*  FROM 	mgr_user 	LEFT JOIN mgr_user_role ON mgr_user.user_id = mgr_user_role.user_id 	LEFT JOIN mgr_role ON mgr_user_role.role_id = mgr_role.role_id  WHERE 	mgr_role.role_id = ?mgr_role.role_id
result := engine.SQL(sql, &m).Query()
if result.Error != nil {
panic(result.Error)
}
}`
mgr_role.role_id 为1时正常查询的结果集如下:

`Name
Value

mgr_user
mgr_user

user_id
1

account
admin

password
admin

status
1

qq
123456

mail
123456@qq.com

phone
10010

desc
管理员

login_count
382

version
8

create_time
2019-04-08 17:37:43

login_time
2019-08-19 10:57:33

mgr_user_role
mgr_user_role

id
1

user_id
1

role_id
1

mgr_role
mgr_role

role_id
1

role_name
admin

role_desc
系统管理员

status
1

version
31

create_time
2019-04-11 17:23:22

update_time
2019-08-13 15:23:56

map中的key如果包含(.),这样在使用名称占位时就会出现问题.

占位符中不要出现"."之类的符号，因为在多种复杂场景中会导致分析词法错误

不同数据库和数据库驱动对占位符的实现和支持也是不一样的。另外这里的占位符和实际提交到数据库中的占位符不是一个事情。中间是经过转换的，这也必须按不同数据库和数据库驱动的要求来

不同数据库和数据库驱动对占位符的实现和支持也是不一样的。另外这里的占位符和实际提交到数据库中的占位符不是一个事情。中间是经过转换的，这也必须按不同数据库和数据库驱动的要求来

不同数据库和数据库驱动对占位符的实现和支持也是不一样的。另外这里的占位符和实际提交到数据库中的占位符不是一个事情。中间是经过转换的，这也必须按不同数据库和数据库驱动的要求来

ok,现在已有办法是将占位符中的.转换为_放入sql中进行查询.

repo: xormplus/xorm


text:
BUG: generate proper code for custom aggregation func

What do these changes do?
For custom aggregation func, make the argument of eq, ne and other comparison op a tuple, whose length equals the number of dataframe's column.
Related issue number

Fixes #404
Check code requirements

[x] tests added / passed (if needed)
[ ] Ensure all linting tests pass

Should this place be uncommented? https://github.com/xprobe-inc/xorbits/blob/e6b765e65fe326f18d7b161cf18d0ad50593ea30/python/xorbits/_mars/dataframe/groupby/tests/test_groupby_execution.py#L1677

Should this place support on cuda?
test_aggregate_on_same_funcs UT in dataframe/reduction/tests/test_reduction_execution

Should this place support on cuda?
test_aggregate_on_same_funcs UT in dataframe/reduction/tests/test_reduction_execution
https://github.com/xprobe-inc/xorbits/blob/e6b765e65fe326f18d7b161cf18d0ad50593ea30/python/xorbits/_mars/dataframe/reduction/tests/test_reduction_execution.py#L1202-L1204C50

Yes. I've updated the test.

Should this place support on cuda?
test_aggregate_on_same_funcs UT in dataframe/reduction/tests/test_reduction_execution
https://github.com/xprobe-inc/xorbits/blob/e6b765e65fe326f18d7b161cf18d0ad50593ea30/python/xorbits/_mars/dataframe/reduction/tests/test_reduction_execution.py#L1202-L1204C50

Yes. I've updated the test.

Currently there are two comments in the code # @support_cuda, only one of them is changed in this PR, do we need to change back the other one I mentioned?

The other test case is for aggregation with custom functions, which is not supported by cudf yet.

repo: xprobe-inc/xorbits


text:
[NEW] JSSI 2024

Name: JSSI
Website: https://www.ossir.org/conference/jssi-2024/
Date(s): 12 mars 2024
Location: Paris, France
Twitter/Mastodon Handle:  @OSSIRFrance
Free: N

Conférence annuelle en français par l'association pro OSSIR

Merci !

authors: lcheylus xsa

repo: xsa/infosec-events


text:
Add Support for Loading DTB Overlays

Prepare for the future by adding a feature to enable a user to load/unload a DTB Overlay.
Example:
Load:
sudo mkdir /sys/kernel/config/device-tree/overlays/DIPexample
su -c 'cat irtempi2c.dtbo > /sys/kernel/config/device-tree/overlays/DIPexample/dtbo'
Unload:
sudo rmdir /sys/kernel/config/device-tree/overlays/DIPexample/

So far, one commit against this, forgot to put the issue number the commit message:
1c4168cf0dcda972b4f352eca3dea91878ab51e8

PR #12 merged.


text:
🛑 🇹🇼 边缘节点-台湾 (EdgeNode-Taiwan) is down

In 4c26b2c, 🇹🇼 边缘节点-台湾 (EdgeNode-Taiwan) ($SECRET_SITE_TW) was down:

HTTP code: 0
Response time: 0 ms

Resolved: 🇹🇼 边缘节点-台湾 (EdgeNode-Taiwan) is back up in 7c3454e.


text:
🛑 🇨🇳 转发-上海移动 (Forward-ShangHaiCM) is down

In 4518255, 🇨🇳 转发-上海移动 (Forward-ShangHaiCM) ($SECRET_SITE_SHCM) was down:

HTTP code: 0
Response time: 0 ms

Resolved: 🇨🇳 转发-上海移动 (Forward-ShangHaiCM) is back up in 98bf9c5 after 40 minutes.


text:
Landmarksfolder

Where is this or should this landmark folder reside?
Thanks!

Did you ever figure out where the folder was?

authors: BLCKPSTV ProGamerGov


text:
[svelte-flow] base.css: controls not styled

Describe the Bug
...
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
...
Expected behavior
...
Screenshots or Videos
No response
Platform

OS: [e.g. macOS, Windows, Linux]
Browser: [e.g. Chrome, Safari, Firefox]
Version: [e.g. 91.1]
...

Additional context
No response

fixed in 0.0.20

Controls set the background
？

authors: moklick peterkogo totoago

repo: xyflow/xyflow


text:
申请入群

写过隔壁mp的帮助文档
https://github.com/Putarku/MoviePilot-Help
邮箱:zxd479704772@gmail.com

已发邮件给你，请看邮件消息

authors: Putarku xylplm

repo: xylplm/media-saber-wiki


text:
Implement janice as alternative to evepraisal

Janice offers faster responses, more accurate plex/skill injector pricing and "split" which is very valuable for indu evaluation.
Website: https://janice.e-351.com/
API: https://github.com/E-351/janice
Thanks for considering it!

Thanks for the suggestion!
I'm remaking the tool with Xbox Game Bar Widget to turn it into a real overlay. I'll remember to add it in.

So I've decided the best course of action is to revive the current version before moving on to Game Bar, considering the current Game Bar SDK doesn't support transparency yet. Plus, I don't know why but apparently people are running EVE on Windows 7 or even in virtual machines for multiboxing.
I have started to clean up this mess I left two years ago. 😄 You can see development progress in the dev branch. Janice support will be added. Some of my friends also suggested ceve-market.org and I'll likely count that in as well.

Awesome! Thanks for resuming this tool - I'm using it almost every day 🙌

Janice implemented, along with a big bunch of internal changes. Set your market and data source of choice in the settings and you're good to go.
In my experience Janice seems to be much slower than Evepraisal though. I had to increase the network timeout limit to prevent it from erroring out. Tell me if this isn't supposed to happen.
Oh and, there's a bunch of new features I'm looking to add in the future. Persistant appraisals, buy/sell switching, etc...

Just added support for Janice's new markets. :)


text:
Compilation explaining

Hi,
I'm currently using Druid with big satisfaction and I'm really interested to your extension.
Can someone explain how to install these on Druid?
I'm currently running compiled version of Druid, how should I add your code?
Thanks
Maurizio

Adding the jars and respective dependencies to the class path should be enough, thought !
Which extension are you planing to use, like that i can provide more help on how to use it.

I'm planning to use metric-collector in order to enqueue Druid Metrics on Kafka.
Are somewhere already compiled jar file or does I need to do it?
Thanks
Maurizio

Sorry, we publish jars only internally at Yahoo. You would need to create the jars your self.
for instance mvn clean test dependency:copy-dependencies

by the way the best way to do it is to include the extension as a maven module, thus you can get all the jars in the same time in addition you can pin your self the versions. I hope this helps.

authors: b-slim tutunci

repo: yahoo/druid-extensions


text:
history state pushed twice

I am experiencing an issue where the history state is pushed twice in a single route when calling navigateAction. RouteStore handles both NAVIGATE_START and NAVIGATE_SUCCESS events by updating the store and calling emitChange. Since handleHistory listens to RouteStore, it's componentDidUpdate method ends up being called twice, once for each of those two events. There are no checks in componentDidUpdate to prevent the history state from being pushed twice.
Am I somehow misusing something here?
My proposed fix is to only push the history state when the navigation is complete and succeeds, probably by checking this.props.isNavigateComplete and this.props.currentNavigateError in componentDidUpdate. Does this sound like a reasonable strategy? I should note that many of handleHistory's tests will need to change since many of the tests test state after routeStore._handleNavigateStart is called.

We do check the url to see if it is the same before we call pushState/replaceState here: https://github.com/yahoo/fluxible-router/blob/master/lib/handleHistory.js#L158
Can you check to see why this check is not working for you?
The history change is expected to change immediately and not on completion of the action. The idea is that this is the same behavior that you get when you do a full HTTP load of a page: the url changes and then the actually HTTP call happens.

Ah, yes you are right - I missed that logic before. The behavior makes sense. In my case, nav.url was not url encoded and getUrl() was returning an encoded version during the second call.
Thanks for the help.

authors: mridgway pumpikano

repo: yahoo/fluxible-router


text:
啥时候支持获取抖音弹幕数据呢

啥时候支持获取抖音弹幕数据呢

这个没有规划，现在正在全力开发反思模块和训练框架


text:
Enable audible notifications

Fixes #8
Why not just use the audio notification already build into node-notify?

I did see that option, but couldn't decipher what the doc about it meant:
sound: true, // Only Notification Center or Windows Toasters

but at least we get some sounds for some people. right? that's what it means?

I think it translates to: "This works on OS X and on Windows 8"
It leaves Linux and earlier Windows out in the cold, which sucks. So we should ideally come up with a solution that works on all target platforms.
I think that makes more sense as a PR for node-notify, though, rather than adding the functionality to yakyak.

+1. go for it.

authors: algesten davidbanham

repo: yakyak/yakyak