Could not build with CPU backend

Hello everyone,
I attempted to compile the flashlight from source but failed.
After successfully installing mkl-dnn/arrayfire/floo/googletest, I did the following to compile flashlight:
mkdir -p build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DFLASHLIGHT_BACKEND=CPU

I got the compiling errors as follows:
[  1%] Performing build step for 'cereal'
[  1%] No install step for 'cereal'
[  1%] Completed 'cereal'
[  1%] Built target cereal
[  1%] Building CXX object CMakeFiles/flashlight.dir/flashlight/autograd/backend/cpu/Conv2D.cpp.o
In file included from /home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:18:0:
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/MkldnnUtils.h: In constructor ‘fl::detail::MkldnnStream::MkldnnStream()’:
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/MkldnnUtils.h:26:44: error: ‘mkldnn::stream::kind’ has not been declared
   MkldnnStream() : stream_(mkldnn::stream::kind::eager) {}
                                            ^~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/MkldnnUtils.h: At global scope:
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/MkldnnUtils.h:77:27: error: ‘primitive_desc’ in ‘struct mkldnn::memory’ does not name a type
     const mkldnn::memory::primitive_desc& desc);
                           ^~~~~~~~~~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp: In function ‘fl::Variable fl::conv2d(const fl::Variable&, const fl::Variable&, const fl::Variable&, int, int, int, int, int, int, int)’:
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:86:28: error: ‘mkldnn::memory::format’ has not been declared
   auto formatAny = memory::format::any;
                            ^~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:90:29: error: ‘mkldnn::memory::format’ has not been declared
   auto formatNCHW = memory::format::nchw;
                             ^~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:92:31: error: ‘mkldnn::memory::format’ has not been declared
       (groups == 1) ? memory::format::oihw : memory::format::goihw;
                               ^~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:92:54: error: ‘mkldnn::memory::format’ has not been declared
       (groups == 1) ? memory::format::oihw : memory::format::goihw;
                                                      ^~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:178:75: error: no matching function for call to ‘mkldnn::memory::memory(<brace-enclosed initializer list>, void*)’
       {{{mInputDims}, dataType, formatNCHW}, mkldnnEngine}, inputRaw.get());
                                                                           ^
In file included from /home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:14:0:
/usr/local/include/mkldnn.hpp:900:5: note: candidate: mkldnn::memory::memory(const mkldnn::memory::desc&, const mkldnn::engine&)
     memory(const desc &md, const engine &aengine)
     ^~~~~~
/usr/local/include/mkldnn.hpp:900:5: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const mkldnn::memory::desc&’
/usr/local/include/mkldnn.hpp:889:5: note: candidate: mkldnn::memory::memory(const mkldnn::memory::desc&, const mkldnn::engine&, void*)
     memory(const desc &md, const engine &aengine, void *ahandle) {
     ^~~~~~
/usr/local/include/mkldnn.hpp:889:5: note:   candidate expects 3 arguments, 2 provided
/usr/local/include/mkldnn.hpp:577:8: note: candidate: mkldnn::memory::memory(const mkldnn::memory&)
 struct memory: public handle<mkldnn_memory_t> {
        ^~~~~~
/usr/local/include/mkldnn.hpp:577:8: note:   candidate expects 1 argument, 2 provided
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:181:77: error: no matching function for call to ‘mkldnn::memory::memory(<brace-enclosed initializer list>, void*)’
       {{{mOutputDims}, dataType, formatNCHW}, mkldnnEngine}, outputRaw.get());
                                                                             ^
In file included from /home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:14:0:
/usr/local/include/mkldnn.hpp:900:5: note: candidate: mkldnn::memory::memory(const mkldnn::memory::desc&, const mkldnn::engine&)
     memory(const desc &md, const engine &aengine)
     ^~~~~~
/usr/local/include/mkldnn.hpp:900:5: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const mkldnn::memory::desc&’
/usr/local/include/mkldnn.hpp:889:5: note: candidate: mkldnn::memory::memory(const mkldnn::memory::desc&, const mkldnn::engine&, void*)
     memory(const desc &md, const engine &aengine, void *ahandle) {
     ^~~~~~
/usr/local/include/mkldnn.hpp:889:5: note:   candidate expects 3 arguments, 2 provided
/usr/local/include/mkldnn.hpp:577:8: note: candidate: mkldnn::memory::memory(const mkldnn::memory&)
 struct memory: public handle<mkldnn_memory_t> {
        ^~~~~~
/usr/local/include/mkldnn.hpp:577:8: note:   candidate expects 1 argument, 2 provided
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:185:23: error: no matching function for call to ‘mkldnn::memory::memory(<brace-enclosed initializer list>, void*)’
       weightsRaw.get());
                       ^
In file included from /home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:14:0:
/usr/local/include/mkldnn.hpp:900:5: note: candidate: mkldnn::memory::memory(const mkldnn::memory::desc&, const mkldnn::engine&)
     memory(const desc &md, const engine &aengine)
     ^~~~~~
/usr/local/include/mkldnn.hpp:900:5: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const mkldnn::memory::desc&’
/usr/local/include/mkldnn.hpp:889:5: note: candidate: mkldnn::memory::memory(const mkldnn::memory::desc&, const mkldnn::engine&, void*)
     memory(const desc &md, const engine &aengine, void *ahandle) {
     ^~~~~~
/usr/local/include/mkldnn.hpp:889:5: note:   candidate expects 3 arguments, 2 provided
/usr/local/include/mkldnn.hpp:577:8: note: candidate: mkldnn::memory::memory(const mkldnn::memory&)
 struct memory: public handle<mkldnn_memory_t> {
        ^~~~~~
/usr/local/include/mkldnn.hpp:577:8: note:   candidate expects 1 argument, 2 provided
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:193:37: error: ‘using element_type = struct mkldnn::convolution_forward::primitive_desc {aka struct mkldnn::convolution_forward::primitive_desc}’ has no member named ‘src_primitive_desc’; did you mean ‘primitive_desc’?
   auto inputPrimDesc = fwdPrimDesc->src_primitive_desc();
                                     ^~~~~~~~~~~~~~~~~~
                                     primitive_desc
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:194:39: error: ‘using element_type = struct mkldnn::convolution_forward::primitive_desc {aka struct mkldnn::convolution_forward::primitive_desc}’ has no member named ‘weights_primitive_desc’; did you mean ‘primitive_desc’?
   auto weightsPrimDesc = fwdPrimDesc->weights_primitive_desc();
                                       ^~~~~~~~~~~~~~~~~~~~~~
                                       primitive_desc
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:195:38: error: ‘using element_type = struct mkldnn::convolution_forward::primitive_desc {aka struct mkldnn::convolution_forward::primitive_desc}’ has no member named ‘dst_primitive_desc’; did you mean ‘primitive_desc’?
   auto outputPrimDesc = fwdPrimDesc->dst_primitive_desc();
                                      ^~~~~~~~~~~~~~~~~~
                                      primitive_desc
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:202:23: error: unable to deduce ‘auto’ from ‘outputMemoryInit’
   auto outputMemory = outputMemoryInit;
                       ^~~~~~~~~~~~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:204:15: error: ‘primitive_desc’ is not a member of ‘mkldnn::memory’
       memory::primitive_desc(outputPrimDesc)) {
               ^~~~~~~~~~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:211:29: error: ‘mkldnn::memory::format’ has not been declared
   auto formatBias = memory::format::x;
                             ^~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:213:73: error: no matching function for call to ‘mkldnn::memory::memory(<brace-enclosed initializer list>, void*)’
       {{{mBiasDims}, dataType, formatBias}, mkldnnEngine}, biasRaw.get());
                                                                         ^
In file included from /home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:14:0:
/usr/local/include/mkldnn.hpp:900:5: note: candidate: mkldnn::memory::memory(const mkldnn::memory::desc&, const mkldnn::engine&)
     memory(const desc &md, const engine &aengine)
     ^~~~~~
/usr/local/include/mkldnn.hpp:900:5: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const mkldnn::memory::desc&’
/usr/local/include/mkldnn.hpp:889:5: note: candidate: mkldnn::memory::memory(const mkldnn::memory::desc&, const mkldnn::engine&, void*)
     memory(const desc &md, const engine &aengine, void *ahandle) {
     ^~~~~~
/usr/local/include/mkldnn.hpp:889:5: note:   candidate expects 3 arguments, 2 provided
/usr/local/include/mkldnn.hpp:577:8: note: candidate: mkldnn::memory::memory(const mkldnn::memory&)
 struct memory: public handle<mkldnn_memory_t> {
        ^~~~~~
/usr/local/include/mkldnn.hpp:577:8: note:   candidate expects 1 argument, 2 provided
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:228:51: error: ‘struct mkldnn::stream’ has no member named ‘submit’
   detail::MkldnnStream::getInstance().getStream().submit(network);
                                                   ^~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp: In lambda function:
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:265:11: error: ‘inputMD’ is not captured
           inputMD,
           ^~~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:250:3: note: the lambda has no capture-default
   ](std::vector<Variable>& inputs, const Variable& grad_output) {
   ^
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:130:8: note: ‘<typeprefixerror>inputMD’ declared here
   auto inputMD = memory::desc({mInputDims}, dataType, formatAny);
        ^~~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:266:11: error: ‘weightMD’ is not captured
           weightMD,
           ^~~~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:250:3: note: the lambda has no capture-default
   ](std::vector<Variable>& inputs, const Variable& grad_output) {
   ^
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:132:8: note: ‘<typeprefixerror>weightMD’ declared here
   auto weightMD = memory::desc({mWeightDims}, dataType, formatWeight);
        ^~~~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:267:11: error: ‘outputMD’ is not captured
           outputMD,
           ^~~~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:250:3: note: the lambda has no capture-default
   ](std::vector<Variable>& inputs, const Variable& grad_output) {
   ^
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:131:8: note: ‘<typeprefixerror>outputMD’ declared here
   auto outputMD = memory::desc({mOutputDims}, dataType, formatAny);
        ^~~~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:281:38: error: ‘formatNCHW’ is not captured
           {{{mOutputDims}, dataType, formatNCHW}, mkldnnEngineBwd},
                                      ^~~~~~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:250:3: note: the lambda has no capture-default
   ](std::vector<Variable>& inputs, const Variable& grad_output) {
   ^
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:90:8: note: ‘<typeprefixerror>formatNCHW’ declared here
   auto formatNCHW = memory::format::nchw;
        ^~~~~~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:282:30: error: no matching function for call to ‘mkldnn::memory::memory(<brace-enclosed initializer list>, void*)’
           gradOutputRaw.get());
                              ^
In file included from /home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:14:0:
/usr/local/include/mkldnn.hpp:900:5: note: candidate: mkldnn::memory::memory(const mkldnn::memory::desc&, const mkldnn::engine&)
     memory(const desc &md, const engine &aengine)
     ^~~~~~
/usr/local/include/mkldnn.hpp:900:5: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const mkldnn::memory::desc&’
/usr/local/include/mkldnn.hpp:889:5: note: candidate: mkldnn::memory::memory(const mkldnn::memory::desc&, const mkldnn::engine&, void*)
     memory(const desc &md, const engine &aengine, void *ahandle) {
     ^~~~~~
/usr/local/include/mkldnn.hpp:889:5: note:   candidate expects 3 arguments, 2 provided
/usr/local/include/mkldnn.hpp:577:8: note: candidate: mkldnn::memory::memory(const mkldnn::memory&)
 struct memory: public handle<mkldnn_memory_t> {
        ^~~~~~
/usr/local/include/mkldnn.hpp:577:8: note:   candidate expects 1 argument, 2 provided
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:285:37: error: ‘formatNCHW’ is not captured
           {{{mInputDims}, dataType, formatNCHW}, mkldnnEngineBwd},
                                     ^~~~~~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:250:3: note: the lambda has no capture-default
   ](std::vector<Variable>& inputs, const Variable& grad_output) {
   ^
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:90:8: note: ‘<typeprefixerror>formatNCHW’ declared here
   auto formatNCHW = memory::format::nchw;
        ^~~~~~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:286:29: error: no matching function for call to ‘mkldnn::memory::memory(<brace-enclosed initializer list>, void*)’
           gradInputRaw.get());
                             ^
In file included from /home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:14:0:
/usr/local/include/mkldnn.hpp:900:5: note: candidate: mkldnn::memory::memory(const mkldnn::memory::desc&, const mkldnn::engine&)
     memory(const desc &md, const engine &aengine)
     ^~~~~~
/usr/local/include/mkldnn.hpp:900:5: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const mkldnn::memory::desc&’
/usr/local/include/mkldnn.hpp:889:5: note: candidate: mkldnn::memory::memory(const mkldnn::memory::desc&, const mkldnn::engine&, void*)
     memory(const desc &md, const engine &aengine, void *ahandle) {
     ^~~~~~
/usr/local/include/mkldnn.hpp:889:5: note:   candidate expects 3 arguments, 2 provided
/usr/local/include/mkldnn.hpp:577:8: note: candidate: mkldnn::memory::memory(const mkldnn::memory&)
 struct memory: public handle<mkldnn_memory_t> {
        ^~~~~~
/usr/local/include/mkldnn.hpp:577:8: note:   candidate expects 1 argument, 2 provided
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:289:38: error: ‘formatWeight’ is not captured
           {{{mWeightDims}, dataType, formatWeight}, mkldnnEngineBwd},
                                      ^~~~~~~~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:250:3: note: the lambda has no capture-default
   ](std::vector<Variable>& inputs, const Variable& grad_output) {
   ^
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:91:8: note: ‘<typeprefixerror>formatWeight’ declared here
   auto formatWeight =
        ^~~~~~~~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:290:26: error: no matching function for call to ‘mkldnn::memory::memory(<brace-enclosed initializer list>, void*)’
           weightRaw.get());
                          ^
In file included from /home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:14:0:
/usr/local/include/mkldnn.hpp:900:5: note: candidate: mkldnn::memory::memory(const mkldnn::memory::desc&, const mkldnn::engine&)
     memory(const desc &md, const engine &aengine)
     ^~~~~~
/usr/local/include/mkldnn.hpp:900:5: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const mkldnn::memory::desc&’
/usr/local/include/mkldnn.hpp:889:5: note: candidate: mkldnn::memory::memory(const mkldnn::memory::desc&, const mkldnn::engine&, void*)
     memory(const desc &md, const engine &aengine, void *ahandle) {
     ^~~~~~
/usr/local/include/mkldnn.hpp:889:5: note:   candidate expects 3 arguments, 2 provided
/usr/local/include/mkldnn.hpp:577:8: note: candidate: mkldnn::memory::memory(const mkldnn::memory&)
 struct memory: public handle<mkldnn_memory_t> {
        ^~~~~~
/usr/local/include/mkldnn.hpp:577:8: note:   candidate expects 1 argument, 2 provided
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:301:30: error: unable to deduce ‘auto’ from ‘gradInputMemoryInit’
       auto gradInputMemory = gradInputMemoryInit;
                              ^~~~~~~~~~~~~~~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:304:19: error: ‘primitive_desc’ is not a member of ‘mkldnn::memory’
           memory::primitive_desc(gradInputPrimitiveDesc)) {
                   ^~~~~~~~~~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:316:55: error: ‘struct mkldnn::stream’ has no member named ‘submit’
       detail::MkldnnStream::getInstance().getStream().submit(networkBackwards);
                                                       ^~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:344:13: error: ‘inputMD’ is not captured
             inputMD,
             ^~~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:250:3: note: the lambda has no capture-default
   ](std::vector<Variable>& inputs, const Variable& grad_output) {
   ^
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:130:8: note: ‘<typeprefixerror>inputMD’ declared here
   auto inputMD = memory::desc({mInputDims}, dataType, formatAny);
        ^~~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:345:13: error: ‘weightMD’ is not captured
             weightMD,
             ^~~~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:250:3: note: the lambda has no capture-default
   ](std::vector<Variable>& inputs, const Variable& grad_output) {
   ^
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:132:8: note: ‘<typeprefixerror>weightMD’ declared here
   auto weightMD = memory::desc({mWeightDims}, dataType, formatWeight);
        ^~~~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:346:13: error: ‘biasMD’ is not captured
             biasMD,
             ^~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:250:3: note: the lambda has no capture-default
   ](std::vector<Variable>& inputs, const Variable& grad_output) {
   ^
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:133:8: note: ‘<typeprefixerror>biasMD’ declared here
   auto biasMD = memory::desc({mBiasDims}, dataType, formatAny);
        ^~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:347:13: error: ‘outputMD’ is not captured
             outputMD,
             ^~~~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:250:3: note: the lambda has no capture-default
   ](std::vector<Variable>& inputs, const Variable& grad_output) {
   ^
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:131:8: note: ‘<typeprefixerror>outputMD’ declared here
   auto outputMD = memory::desc({mOutputDims}, dataType, formatAny);
        ^~~~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:356:13: error: ‘inputMD’ is not captured
             inputMD,
             ^~~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:250:3: note: the lambda has no capture-default
   ](std::vector<Variable>& inputs, const Variable& grad_output) {
   ^
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:130:8: note: ‘<typeprefixerror>inputMD’ declared here
   auto inputMD = memory::desc({mInputDims}, dataType, formatAny);
        ^~~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:357:13: error: ‘weightMD’ is not captured
             weightMD,
             ^~~~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:250:3: note: the lambda has no capture-default
   ](std::vector<Variable>& inputs, const Variable& grad_output) {
   ^
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:132:8: note: ‘<typeprefixerror>weightMD’ declared here
   auto weightMD = memory::desc({mWeightDims}, dataType, formatWeight);
        ^~~~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:358:13: error: ‘outputMD’ is not captured
             outputMD,
             ^~~~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:250:3: note: the lambda has no capture-default
   ](std::vector<Variable>& inputs, const Variable& grad_output) {
   ^
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:131:8: note: ‘<typeprefixerror>outputMD’ declared here
   auto outputMD = memory::desc({mOutputDims}, dataType, formatAny);
        ^~~~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:373:37: error: ‘formatNCHW’ is not captured
           {{{mInputDims}, dataType, formatNCHW}, mkldnnEngineBwd},
                                     ^~~~~~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:250:3: note: the lambda has no capture-default
   ](std::vector<Variable>& inputs, const Variable& grad_output) {
   ^
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:90:8: note: ‘<typeprefixerror>formatNCHW’ declared here
   auto formatNCHW = memory::format::nchw;
        ^~~~~~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:374:34: error: no matching function for call to ‘mkldnn::memory::memory(<brace-enclosed initializer list>, void*)’
           inputRawBackwards.get());
                                  ^
In file included from /home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:14:0:
/usr/local/include/mkldnn.hpp:900:5: note: candidate: mkldnn::memory::memory(const mkldnn::memory::desc&, const mkldnn::engine&)
     memory(const desc &md, const engine &aengine)
     ^~~~~~
/usr/local/include/mkldnn.hpp:900:5: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const mkldnn::memory::desc&’
/usr/local/include/mkldnn.hpp:889:5: note: candidate: mkldnn::memory::memory(const mkldnn::memory::desc&, const mkldnn::engine&, void*)
     memory(const desc &md, const engine &aengine, void *ahandle) {
     ^~~~~~
/usr/local/include/mkldnn.hpp:889:5: note:   candidate expects 3 arguments, 2 provided
/usr/local/include/mkldnn.hpp:577:8: note: candidate: mkldnn::memory::memory(const mkldnn::memory&)
 struct memory: public handle<mkldnn_memory_t> {
        ^~~~~~
/usr/local/include/mkldnn.hpp:577:8: note:   candidate expects 1 argument, 2 provided
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:377:38: error: ‘formatNCHW’ is not captured
           {{{mOutputDims}, dataType, formatNCHW}, mkldnnEngineBwd},
                                      ^~~~~~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:250:3: note: the lambda has no capture-default
   ](std::vector<Variable>& inputs, const Variable& grad_output) {
   ^
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:90:8: note: ‘<typeprefixerror>formatNCHW’ declared here
   auto formatNCHW = memory::format::nchw;
        ^~~~~~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:378:30: error: no matching function for call to ‘mkldnn::memory::memory(<brace-enclosed initializer list>, void*)’
           gradOutputRaw.get());
                              ^
In file included from /home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:14:0:
/usr/local/include/mkldnn.hpp:900:5: note: candidate: mkldnn::memory::memory(const mkldnn::memory::desc&, const mkldnn::engine&)
     memory(const desc &md, const engine &aengine)
     ^~~~~~
/usr/local/include/mkldnn.hpp:900:5: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const mkldnn::memory::desc&’
/usr/local/include/mkldnn.hpp:889:5: note: candidate: mkldnn::memory::memory(const mkldnn::memory::desc&, const mkldnn::engine&, void*)
     memory(const desc &md, const engine &aengine, void *ahandle) {
     ^~~~~~
/usr/local/include/mkldnn.hpp:889:5: note:   candidate expects 3 arguments, 2 provided
/usr/local/include/mkldnn.hpp:577:8: note: candidate: mkldnn::memory::memory(const mkldnn::memory&)
 struct memory: public handle<mkldnn_memory_t> {
        ^~~~~~
/usr/local/include/mkldnn.hpp:577:8: note:   candidate expects 1 argument, 2 provided
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:381:38: error: ‘formatWeight’ is not captured
           {{{mWeightDims}, dataType, formatWeight}, mkldnnEngineBwd},
                                      ^~~~~~~~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:250:3: note: the lambda has no capture-default
   ](std::vector<Variable>& inputs, const Variable& grad_output) {
   ^
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:91:8: note: ‘<typeprefixerror>formatWeight’ declared here
   auto formatWeight =
        ^~~~~~~~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:382:31: error: no matching function for call to ‘mkldnn::memory::memory(<brace-enclosed initializer list>, void*)’
           gradWeightsRaw.get());
                               ^
In file included from /home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:14:0:
/usr/local/include/mkldnn.hpp:900:5: note: candidate: mkldnn::memory::memory(const mkldnn::memory::desc&, const mkldnn::engine&)
     memory(const desc &md, const engine &aengine)
     ^~~~~~
/usr/local/include/mkldnn.hpp:900:5: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const mkldnn::memory::desc&’
/usr/local/include/mkldnn.hpp:889:5: note: candidate: mkldnn::memory::memory(const mkldnn::memory::desc&, const mkldnn::engine&, void*)
     memory(const desc &md, const engine &aengine, void *ahandle) {
     ^~~~~~
/usr/local/include/mkldnn.hpp:889:5: note:   candidate expects 3 arguments, 2 provided
/usr/local/include/mkldnn.hpp:577:8: note: candidate: mkldnn::memory::memory(const mkldnn::memory&)
 struct memory: public handle<mkldnn_memory_t> {
        ^~~~~~
/usr/local/include/mkldnn.hpp:577:8: note:   candidate expects 1 argument, 2 provided
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:386:52: error: ‘using element_type = struct mkldnn::convolution_backward_weights::primitive_desc {aka struct mkldnn::convolution_backward_weights::primitive_desc}’ has no member named ‘src_primitive_desc’; did you mean ‘primitive_desc’?
       auto inputPrimitiveDesc = bwdWeightPrimDesc->src_primitive_desc();
                                                    ^~~~~~~~~~~~~~~~~~
                                                    primitive_desc
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:388:30: error: ‘using element_type = struct mkldnn::convolution_backward_weights::primitive_desc {aka struct mkldnn::convolution_backward_weights::primitive_desc}’ has no member named ‘diff_dst_primitive_desc’; did you mean ‘primitive_desc’?
           bwdWeightPrimDesc->diff_dst_primitive_desc();
                              ^~~~~~~~~~~~~~~~~~~~~~~
                              primitive_desc
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:390:30: error: ‘using element_type = struct mkldnn::convolution_backward_weights::primitive_desc {aka struct mkldnn::convolution_backward_weights::primitive_desc}’ has no member named ‘diff_weights_primitive_desc’; did you mean ‘diff_weights_desc’?
           bwdWeightPrimDesc->diff_weights_primitive_desc();
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
                              diff_weights_desc
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:396:32: error: unable to deduce ‘auto’ from ‘gradWeightsMemoryInit’
       auto gradWeightsMemory = gradWeightsMemoryInit;
                                ^~~~~~~~~~~~~~~~~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:398:19: error: ‘primitive_desc’ is not a member of ‘mkldnn::memory’
           memory::primitive_desc(gradWeightsPrimitiveDesc)) {
                   ^~~~~~~~~~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:405:33: error: ‘mkldnn::memory::format’ has not been declared
       auto formatBias = memory::format::x;
                                 ^~~~~~
/home/vuh/works/tools/flashlight/flashlight/autograd/backend/cpu/Conv2D.cpp:408:33: error: no matching function for call to ‘mkldnn::memory::memory(<brace-enclosed initializer list>, void*)’
           biasRawBackwards.get());

It looks to me that the errors are related to MKL-DNN package. But I had no problem with cmake at all and cmake can link to installed mkl-dnn.
Would you able to help me on this? Thanks!

@duyvuleo — you can try re-cloning, building, and installing MKL-DNN from an older version (possibly v0.18?) before rebuilding flashlight? There have been some significant API changes in the last week or two, and it's possible master is incompatible. I'll look into this further.

Hi @duyvuleo and @jacobkahn - confirming that building MKL-DNN from v0.18.1 addressed this issue for me.

@jacobkahn : great advise. It works now. I can compile flashlight properly. But it turns out that "make test" failed with 3 out 6 tests. Do you know the reasons? Is it normal?
vuh@VB-Ubuntu-18:~/works/tools/flashlight/build$ make test
Running tests...
Test project /home/vuh/works/tools/flashlight/build
Start 1: AutogradTest
1/6 Test #1: AutogradTest .....................***Failed   45.56 sec
Start 2: OptimTest
2/6 Test #2: OptimTest ........................***Failed    0.04 sec
Start 3: ModuleTest
3/6 Test #3: ModuleTest .......................***Failed    2.77 sec
Start 4: SerializationTest
4/6 Test #4: SerializationTest ................***Failed    1.88 sec
Start 5: DatasetTest
5/6 Test #5: DatasetTest ......................   Passed    0.55 sec
Start 6: MeterTest
6/6 Test #6: MeterTest ........................   Passed    0.03 sec
33% tests passed, 4 tests failed out of 6
Total Test time (real) =  50.83 sec
The following tests FAILED:
1 - AutogradTest (Failed)
2 - OptimTest (Failed)
3 - ModuleTest (Failed)
4 - SerializationTest (Failed)
Errors while running CTest
Makefile:106: recipe for target 'test' failed
make: *** [test] Error 8
Note that: I built it from Ubuntu Virtual Machine (using VirtualBox).

@duyvuleo — the tests that failed look like those involving ArrayFire. Did you build ArrayFire from source? If not, and if you've installed ArrayFire with the prebuilt libraries, can you check that your CUDA and NVIDIA driver meet the requirements? Otherwise, I'd try building ArrayFire from source then rebuilding flashlight.

Closing due to inactivity. Feel free to reopen.

cmake .. -DCMAKE_BUILD_TYPE=Release -DFLASHLIGHT_BACKEND=CPU

@shubhamrc49
Could you post the full log to understand where it crashes exactly?


Test Issue for learning purpose

This is a test Issue please ignore.

Please don't use this repository for such tests. Please use your own repository or fork instead.


fix(#172) - Update Cartfile.resolved

This PR should fix #172 as carthage bootstrap would fail building locally


Smn snkl patch 2

So far quick reply buttons (e.g. for Facebook) can't really be used efficiently with rasa_core. Also Facebook buttons are forced to type postback, e.g. preventing Login buttons.
Proposed changes:

Added respective string representation for quick replies to channel.py, interactive.py and console.py similar to the button_to_string function
Changed the _add_postback_info function in facebook.py to only set button type to postback if button type is not specified by user
Changes made by @smn-snkl

Status (please check what you already did):

[x] made PR ready for code review
[x] added some tests for the functionality
[ ] updated the documentation
[x] updated the changelog

@tmbo what do you think about adding that stuff to the dispatcher? Not sure if it's not a bit too facebook specific

Maybe we can think of a more generic naming. Most platforms however, support some form of reply suggestions, e.g. Facebook's quick replies, Google's suggestion chips, Telegram's Reply Keyboard Markup

Thanks a lot for the added facebook feature :+1: - I'll merge it as it is now, we'll need to refactor the input/output channels a bit more in the coming weeks and we can come up with a better name then


Next builds static HTML files for pages on 'target: serverless' instead of lambda's

Bug report
Describe the bug
Next builds static HTML files for pages on 'target: serverless' instead of lambda's
To Reproduce
I followed this tutorial completely, shouldn't be anything weird in it.
https://medium.com/@johnapost/building-a-serverless-react-app-on-firebase-functions-930511483c59
Expected behavior
I expect Next to build my pages as lambda's so I can use them accordingly
Screenshots
My output for building the About and Index pages with target: serverless

System information

OS: [Windows]
Version of Next.js: [e.g. 9.0.0]

Additional context
When building, the shell even confirms what it is doing:
Compiled successfully.

Page            Size     Files  Packages
┌   /_app       2.04 kB    195         0
├   /_document
├   /_error     7.58 kB    230         0
├ ⚡ /About      420 B      196         0
└ ⚡ /Index      420 B      196         0

λ  (Lambda)       page was emitted as a lambda (i.e. getInitialProps)
⚡  (Static File)  page was prerendered as static HTML

Hi, this is a new optimization in Next.js v9. When pages are static and don't have getInitialProps we auto export them to HTML files. See here for more info.


[Bug] Chart not hiding axisPointer when programmatically hiding tooltip

Version
5.4.2
Link to Minimal Reproduction
https://codepen.io/isazulay/pen/wvYppNN
Steps to Reproduce

Wait 2 seconds: a tooltip automatically pops up on the second datapoint and the axisPointer is being shown for this datapoint
Wait 2 seconds: the tooltip automatically hides

Current Behavior
The axisPointer remains visible after the tooltip is hidden.
Expected Behavior
The axisPointer is also hidden after dispatching the hideTip action, since the showTip action is triggering it to show.
Environment
- OS: MacOS Ventura
- Browser: Chrome 112.0.5615.137
- Framework: Vue@3

Any additional comments?
I was trying to get a tooltip to show on a different graph on the same page when hovering over another graph. Showing and hiding was no problem, but it was just the axisPointer that stayed visible that is preventing us from implementing this.

workaround by replacing the chart
    setTimeout(() => {
      myChart.dispatchAction({ type: 'hideTip' });
      myChart.dispatchAction({ type: 'downplay' });
      myChart.setOption(option, true);
    }, 2000)

@helgasoft thanks! I also got quite a well working workaround from stackoverflow where replacing the graph is not needed:
myChart.dispatchAction({
    type: 'hideTip'
});
myChart.dispatchAction({
    type: 'showTip',
    seriesIndex: 0,
    dataIndex: -1
});

https://stackoverflow.com/questions/76183021/apache-echarts-not-hiding-axis-pointer-when-programmatically-hiding-tooltip

ok, good one!
Surprising, this bug has been around since 2017 (#7303, #8892), probably a longevity record.


when I try install material2, I have error connected with webpack

Bug?:
when I try install material2, I have error:

npm ERR! Darwin 16.0.0
npm ERR! argv "/usr/local/bin/node" "/Users/username/projects/ng-project/node_modules/.bin/npm" "install" "--save" "@angular/material"
npm ERR! node v6.7.0
npm ERR! npm  v2.14.21
npm ERR! code EPEERINVALID
npm ERR! peerinvalid The package<EMAIL_ADDRESS>does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer<EMAIL_ADDRESS>wants webpack@1 || ^2.1.0-beta
npm ERR! peerinvalid Peer<EMAIL_ADDRESS>wants webpack@*
npm ERR! peerinvalid Peer<EMAIL_ADDRESS>wants<EMAIL_ADDRESS>|| ^2 || ^2.1.0-beta
npm ERR! peerinvalid Peer<EMAIL_ADDRESS>wants<EMAIL_ADDRESS>|| ^2.1.0-beta
npm ERR! peerinvalid Peer<EMAIL_ADDRESS>wants webpack@1 || 2 || ^2.0.0-beta || ^2.1.0-beta
npm ERR! peerinvalid Peer<EMAIL_ADDRESS>wants<EMAIL_ADDRESS>npm ERR! Please include the following file with any support request:
npm ERR!     /Users/username/projects/ng-project/npm-debug.log

Steps to reproduce:
npm install -g angular-cli
ng new ng-project
cd ng-project
npm install --save @angular/material
Versions of Angular, OS, node, npm

angular 2
mac os Sierra
node v6.7.0
npm  v2.14.21

You should be able to safely ignore those peerinvalid errors (i.e even if you see them, everything should still work so just don't worry about them), but run npm install -g npm because 2.14.21 is very out of date.

I have npm v 3.10.8 on my machine outside folder with angular cli project. But when I inside folder with angular cli project, npm v shows me version 2.14

This isn't a problem with material; it is due to other packages in your environment.

when i did what written in readme file (https://github.com/angular/material2/blob/master/GETTING_STARTED.md install angular-cli and material) - result is error, why this is not a bug?


Does this offer suggestions on style?

For example: { } Style? I know there are not standards yet for swift but some people seem to prefer using the c# style of {}  instead of the more readable
https://github.com/raywenderlich/swift-style-guide

This plugin simple runs your file through the Swift compiler to find any errors or warnings it might produce. As far as I know the Swift compiler does not offer any style warnings.

Oh ok. So if I am already using xcode then I won't benefit. I was confused
on what linter was meant to do.
What are you thoughts if all I wanted was to get my curly braces to line up
a certain way?
Thanks!
On Thursday, February 5, 2015, Kepler Sticka-Jones<EMAIL_ADDRESS>wrote:

This plugin simple runs your file through the Swift compiler to find any
errors or warnings it might produce. As far as I know the Swift compiler
does not offer any style warnings.
—
Reply to this email directly or view it on GitHub
https://github.com/k2b6s9j/linter-swiftc/issues/2#issuecomment-73173254.

So this is a plugin for Atom. If you are content with using Xcode for your Text Editor and IDE this really isn't the plugin for you.
But, when you say line up do you just want Xcode to assist you with styling? I believe there is a way to go about this using Xcode.

@masters3d You're probably looking for linter-swiftlint and SwiftLint.


Build pipeline: better matrix names

Description
This PR introduces a bit of code duplication in the build pipeline to improve the names of the resulting checks.
Let me know whether you prefer the previous or the current solution.
How Has This Been Tested?
Checking the outcome of the pipelines

/merge


Change from AIC to BIC

This seems to help a little with the multinoulli problem, at least "Age" is now correctly identified without using the multinoulli distribution. Fixes #208

Although small thing - should the docstring in the information_criterion() of the BaseDistribution be changed?

Merging so I can use this in my pilot today; will convert comment by @Samuwhale to issue


chore(imports): Direct internal imports

As per discussions https://github.com/TechnologyAdvice/stardust/pull/570#discussion_r81445116 and https://github.com/TechnologyAdvice/stardust/issues/524#issuecomment-250935483:

updates all internal imports to be directly to the file instead of using the index.js in each "type" folder
remove the index files in "type" folders.

Open questions:

Should each top-level component (e.g. Button get its own index file? Would make it possible to do import Button from 'stardust/elements/Button instead of needing the double /Button/Button. Sub-components would still be referenced at the nested path, which I think makes sense stardust/elements/Button/ButtonContent. Thoughts?

I'm for the index files. If you didn't want to bring in index files, you could toss a package.json file in each dir and set the main key to Button.js. Not saying this is the best thing to do but it is another option.

Agree on not duplicating the component name in import paths.  My first thought is an index.js file as well.

Heads up:

https://github.com/TechnologyAdvice/stardust/issues/524#issuecomment-250935483 Lastly, the common tests for exported components needs updated. The failure message instructs users to export their components in those index files. Once we remove them, that message is no longer valid. It should instead instruct users to export their components in the main index file.

Current coverage is 100% (diff: 100%)

Merging #610 into master will not change coverage

@@           master   #610   diff @@
====================================
  Files         119    119
  Lines        1915   1915
  Methods         0      0
  Messages        0      0
  Branches        0      0
====================================
  Hits         1915   1915
  Misses          0      0
  Partials        0      0

Powered by Codecov. Last update ecbf72a...581a6da

Just force-pushed a small change. I was going to update the tests to use the index-based imports but decided against it. I kinda like having the test import directly from the file they're testing.
Otherwise this is g2g I think 👍

:thumbsup: Great work, will review and merge soon as I can.


fix double call to onBeforeRender

If pageContextInit has some client data, and onBeforeRender's env is { server: true, client: true }, then the onBeforeRender hook was being called both on server- and client-side upon navigation.

👌


Update to latest superagent which has a fixed cookiejar.

This updates to the latest superagent, which includes a cookiejar that addresses some bugs.

I also have encountered bugs in the current version of supertest that really come from the older version of superagent it's using.
+1 for merger!

+1 for updating the superagent dependency. Actually, why does supertest use ~ dependencies? We wouldn't need this kind of PR with ^ dependencies (which means: use latest version with matching major version number – which should guarantee compatibility).

+1 For ^1.0.0.

Any updates?

+1 for superagent v1.7.2

Since this repo seems to be abandoned, we can use one of the forks with updated dependencies, see here and here.

Sorry I have been absent for a while, I'm back and can get this merged in.
Can you also up the version ^1.7.2 for me being pedantic?

Done.

I am excited to back out my horrible postinstall hax. :tada:


[1.10.2] Crash on New World Creation

Crash Report: https://paste.ee/p/YEYmI
Forge Version: *.2554 for MineCraft 1.10.2
Mod Version: 2.6-1.10.2
Description:  Crash during generating a new world after updating to 2.6 and removing the configuration file in order to incorporate the new changes.
Potential Conflict: Given your work on lighting and shadows, OptiFine/Shaders may be interfering.  Will test and update with results.

After a bit of testing I was unable to reproduce the crash.  I even recreated the world using OptiFine/Shaders (including world seed) and the world generated and loaded fine.  That being said, at all stages of my testing I found that 2.6 is definitely taxing my system more than previous versions.  As these are beta releases, these things are to be expected, though.  I'll be reverting back to 2.5 for now.
Not sure if you want to take a deeper look at the ticking error or not; so I'll leave this open for you to close at your discretion.

Dammit this ugly bug are able to appear only when other mod will access world in parallel async thread.
#3841

In StructPro 2.7 You can set TICKER=false to prevent such issues


Rotating line rather than moving with mouse

I created a Macaw Line within a Shape and move the line (Shape) in the onPan method line.place.move(dx: event.dx, dy: event.dy). This works great but I would like to rotate the line rather than move it if it is selected near the end of the line. I've played with place.rotate but nothing is working for me. Do you have an example of rotating with the mouse?
Thanks for all of your prior help.

Hi Douglas,
I'm sorry for late response. If it's still the case, I would recommend you to change shape.form to the new Line according to your mouse coordinates. This will be easier then calculating rotation angle.

Closing this issue. Please open another one if you have other questions.


Initialize ops module with necessary functions

Overview
This PR adds all the necessary functions for calculations and computations to an ops module. This includes the following:

gps 3dsig value is currently hard-coded to 0.05 m

Yepp. This is just the default value, user is able to specify what they want it to be 😄

This PR closes #29, #34, #35, #38, #39, #40, #41


Seem to have an issue in working with Service principle login and Azure monitor

trying to use powershell to pull CPU usage metrics but keep failing with
Exception type: AzPSApplicationException, Message: Microsoft.Azure.Commands.Common.Exceptions.AzPSApplicationException: No subscription found in the context.  Please ensure that the credentials you provided are authorized to access an Azure subscription, then run Connect-AzAccount to login.
at Microsoft.Azure.Commands.Common.Authentication.Factories.ClientFactory.CreateArmClient[TClient](IAzureContext context, String endpoint)
at Microsoft.Azure.Commands.Insights.ManagementCmdletBase.get_MonitorManagementClient()
at Microsoft.Azure.Commands.Insights.Metrics.GetAzureRmMetricDefinitionCommand.ProcessRecordInternal()
at Microsoft.Azure.Commands.Insights.MonitorCmdletBase.ExecuteCmdlet(), Code: Null, Status code:Null, Reason phrase: Null
$conn = Get-AutomationConnection -Name 'AzureRunAsConnection'
#Connect-AzAccount -Tenant $conn.TenantId -ApplicationId $conn.ApplicationId -CertificateThumbprint $conn.CertificateThumbprint -ServicePrincipal
Add-AzureRmAccount -EnvironmentName "AzureCloud" -ServicePrincipal -TenantId $conn.TenantId -ApplicationId $conn.ApplicationId -CertificateThumbprint $conn.CertificateThumbprint
$resourceManagerVMList = @(Get-AzureRmResource | where {$_.ResourceType -like "Microsoft.*/virtualMachines"} | sort Name)
Write-Output "Processing [$($resourceManagerVMList.Count)] virtual machines found in subscription"
foreach($vm in $resourceManagerVMList)
{
    $vm1 = Get-AzureRmVM -ResourceGroupName $vm.ResourceGroupName -Name $vm.Name

    $resourceID = $vm1.Id

write-output "resource ID " $resourceID
    $endTime = Get-Date
    $startTime = $endTime.AddMinutes(-1440)
    $timeGrain = '00:01:00'
    $metricName = 'Percentage CPU'
    $metricData = Get-AzureRmMetric -ResourceId $resourceID -TimeGrain $timeGrain -StartTime $startTime -EndTime $endTime -MetricName $metricName
    Write-Output "[$($vm1.ResourceGroupName)]:[$($vm1.Location)]:[$($vm1.Name)]:[$($vm1.HardwareProfile.VmSize)]:[$($metricData)]"
    #break;
}

@Sriram-Kumar1 Can you provide a link to the sample in this repo that you're experiencing issues with?


[CHORE] Add cargo-audit CI workflow

cargo-audit is an additional tool that will audit dependencies for crates with security vulnerabilities reported to the RustSec Advisory Database.
Example:
https://github.com/bytecodealliance/wasmtime/blob/main/.github/workflows/cargo-audit.yml

Fixed by #353


Updates the AWS Beanstalk instructions

Summary

The PR includes updated instructions to reflect the latest flow for Elastic Beanstalk.
The existing instructions also referred to the Dockerrun.aws.json from the mattermost/mattermost-docker repo which is archived. Plus Beanstalk does not support multi-container option anymore either. Hence the PR also includes an update to the Dockerrun.aws.json file link from the mattermost/mattermost-docker-preview repo. The one from the mattermost/docker repo wont work as it is. I plan to create another PR later if I am able to figure out a solution for it.

Ticket Link

Fixes https://github.com/mattermost/docs/issues/5097

Thanks for participating in Hacktoberfest! You can claim your sticker set here: https://get.printfection.com/hacktober21/4144583267 @sangramrath

Thanks again @sangramrath for this great documentation update!


[BUG]  unable to view pod logs in a proxied setup on rke2 cluster code 503: 503 Service Unavailable

Rancher Server Setup

Rancher version: v2.6.11-rc8
Installation option (Docker install/Helm Chart): helm

If Helm Chart, Kubernetes Cluster and version (RKE1, RKE2, k3s, EKS, etc): rke2, v1.24.10+rke2r1

Proxy/Cert Details:

Information about the Cluster

Kubernetes version: v1.24.10+rke2r1
Cluster Type (Local/Downstream): downstream

If downstream, what type of cluster? (Custom/Imported or specify provider for Hosted/Infrastructure Provider): linode (node driver), custom (aws nodes)

User Information

What is the role of the user logged in? (Admin/Cluster Owner/Cluster Member/Project Owner/Project Member/Custom)

If custom, define the set of permissions: cluster owner, standard user

Describe the bug

root caused issue
There is an issue connecting back to the proxy for rke2 clusters after the cluster is in an active state. Pod logs are not viewable through the UI, and viewing them through kubectl results in a code 503: 503 Service Unavailable
original comment:
the container longhorn-driver-deployer when deploying longhorn on a cluster using a proxy is unable to reach a stable state. after 5 minutes, it ends up in a crashLoopBackoff state due to a timeout
To Reproduce

deploy a proxy
deploy a downstream rke2 cluster in rancher, specifying to use the proxy (1 node per role)
view logs on any pod in the proxied downstream cluster

original steps:

deploy longhorn on the downstream, proxied cluster
wait for longhorn to finish deploying and check status of all longhorn pods

Result
pod logs are not viewable
original steps:
the longhorn-driver-deployer container fails to reach a stable point.
Expected Result

the pod logs should be viewable
original steps:
longhorn should be able to deploy behind a proxy.
Screenshots

Additional context

the same setup without using a proxy results in all longhorn pods / workloads in a healthy state.
seems isolated to rke2
unknown if this is affecting v2.7+

@slickwarren What version you encountered this issue?
cc @khushboo-rancher I believe we have tested Longhorn in proxy mode. Do we have seen this issue?

@innobead We have not seen this kind of issue before.
@slickwarren helped me and created a similar setup to reproduce the issue, the observation is as below.
I see there are proxy connection error logs in the pods not only in the Longhorn-system's pod but other pods (fleet-agent, rke2-ingress-nginx-controller) in the cluster also have error same logs.
kubectl logs longhorn-driver-deployer-7bff4c9d8f-8znpd -n longhorn-system
Error from server: Get "https://ip:10250/containerLogs/longhorn-system/longhorn-driver-deployer-7bff4c9d8f-8znpd/longhorn-driver-deployer": proxyconnect tcp: proxy error from <IP_ADDRESS>:9345 while dialing ec2-ip.us-east-2.compute.amazonaws.com:3131, code 503: 503 Service Unavailable

khushboo@Khushboos-MacBook-Pro workspace % kubectl logs longhorn-manager-h5z95 -n longhorn-system
Error from server: Get "https://ip:10250/containerLogs/longhorn-system/longhorn-manager-h5z95/longhorn-manager": proxyconnect tcp: proxy error from <IP_ADDRESS>:9345 while dialing ec2-ip.us-east-2.compute.amazonaws.com:3131, code 503: 503 Service Unavailable

khushboo@Khushboos-MacBook-Pro workspace % kubectl -n longhorn-system logs longhorn-ui-66fc578685-c5q5f
Error from server: Get "https://ip:10250/containerLogs/longhorn-system/longhorn-ui-66fc578685-c5q5f/longhorn-ui": proxyconnect tcp: proxy error from <IP_ADDRESS>:9345 while dialing ec2-ip.us-east-2.compute.amazonaws.com:3131, code 503: 503 Service Unavailable

khushboo@Khushboos-MacBook-Pro workspace % kubectl -n kube-system logs rke2-ingress-nginx-controller-85zxv
Error from server: Get "https://ip:10250/containerLogs/kube-system/rke2-ingress-nginx-controller-85zxv/rke2-ingress-nginx-controller": proxyconnect tcp: proxy error from <IP_ADDRESS>:9345 while dialing ec2-ip.us-east-2.compute.amazonaws.com:3131, code 503: 503 Service Unavailable

khushboo@Khushboos-MacBook-Pro workspace % kubectl -n cattle-fleet-system logs fleet-agent-7bd4b645c8-mnbnr
Error from server: Get "https://ip:10250/containerLogs/cattle-fleet-system/fleet-agent-7bd4b645c8-mnbnr/fleet-agent": proxyconnect tcp: proxy error from <IP_ADDRESS>:9345 while dialing ec2-ip.us-east-2.compute.amazonaws.com:3131, code 503: 503 Service Unavailable

@slickwarren Looks like there is some issue in the proxy setup, can you please confirm that the setup is working fine?

after further investigation, this is looking like a proxy issue.
As @khushboo-rancher mentioned, no logs are able to be viewed from the rke2 cluster using a proxy. using kubectl yields the error code 503: 503 Service Unavailable.  Checking the same use case with rke1 does show correct logs, and does not have an error.

As discussed in the team channel, RKE2 behavior is expected

After further investigation, this is not looking like a setup issue.

the rke1 port requirements also list 10250, but as mentioned earlier rke1 is working fine
after updating the squid.conf (the proxy is a docker container running a squid proxy) to include all the rke2 port requirements as both safe_ports and ssl_ports, the error is the same

given the port requirement page only lists the ports to be open on TCP, I was not expecting enabling SSL_ports would make a difference, but was worth a shot. Unfortunately it seems there is some other underlying issue.
note: this is not a regression, and we see the same behavior on v2.6.9 in our tests.


SVG Support

Most of Cash's methods currently work on preexisting SVG elements ( addClass, css, attr, at least in Chrome. Haven't tested deeper. ), but Cash does not work for creating SVG elements ( $('<rect />') ).
Demo
This is likely related to our current parseHTML. Pull request #105 does not seem to fix it, but we may be able to add some sort of whitelist to use an SVG document fragment (  doc.implementation.createDocument('http://www.w3.org/2000/svg') ) instead of the normal document fragment ( doc.implementation.createHTMLDocument(); ).
Is this something we want to support? Manipulating SVG is something I do frequently, so having cash's easy API available to create SVG would be quite helpful.

Absolutely

I've tried implementing this in a few different ways, but I keep running into a strange issue where every other time the SVG elements are not created with the proper namespace. The element is created and works as a normal element, but because it isn't namespaced correctly (either null or http://www.w3.org/1999/xhtml) it will not display.
Creating an entire SVG in one string is fine, and probably already works with the existing parseHTML
$('<svg viewBox="0 0 100 50"><circle cx="40" cy="25" r="20" fill="#F00" /><circle cx="50" cy="25" r="20" fill="#0F0" /><circle cx="60" cy="25" r="20" fill="#00F" /></svg>').prependTo(document.body);

But creating them individually with Cash causes the every-other issue:
var $svg = $('<svg viewBox="0 0 100 50" />').prependTo(document.body);
var $redCircle = $('<circle cx="40" cy="25" r="20" fill="#F00" />').appendTo($svg); // Works fine!
var $greenCircle = $('<circle cx="50" cy="25" r="20" fill="#0F0" />').appendTo($svg); // Where's my green circle?
var $blueCircle = $('<circle cx="60" cy="25" r="20" fill="#00F" />').appendTo($svg); // This one works.

Here are the different methods I've tried, all react the same across Chrome, Firefox & Safari. The issue seems to even persist across different methods. Not sure what's going on here and Google doesn't seem to be turning up anything. Any thoughts? Something I'm missing?
CodePen Tests

DOM Parser could be the answer, though it's only supported in IE10+, breaking our IE9 compatibility.

crazy idea here...
could we just store/convert <svg> tags as <div> fragments, and then after all manipulation is done, convert back to SVG ?
I wonder if these issues are why I can't even run .addClass() on <svg>in jQuery ?

Latest version of jQuery should support class manipulation for SVG. In
testing on Chrome, Cash works for that. May be issues in IE or something.
Worth further testing to be sure.
The issue I'm having is the SVG elements aren't in the correct namespace so
they don't display when in an SVG element. We might be able to set the
namespace after they're created, but I don't think converting to div would
help, at least in the creation process.
On Wed, May 11, 2016 at 3:47 AM Simon Goellner<EMAIL_ADDRESS>wrote:

crazy idea here...
could we just store/convert  tags as  fragments, and then after
all manipulation is done, convert back to SVG ?
I wonder if these issues are why I can't even run .addClass() on in
jQuery ?
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/kenwheeler/cash/issues/120#issuecomment-218399094

It appears that namespaceURI is a read-only property, so it can't be converted after creation, either. Hm.

Ah! The issue was apparently RegExp.test incorrectly returning a false-y value, appending the SVG element to the regular document fragment. Instead, using String.match works as expected. Updated CodePen
Now to run some performance tests on the different methods...

I'm closing this since as of cash v3 we have better SVG support, all the snippets of code posted here that didn't work before work now, like: $('<rect />'), $('<svg viewBox="0 0 100 50" />') and $('<circle cx="40" cy="25" r="20" fill="#F00" />').


Confused about the FQDN option

https://learn.microsoft.com/en-us/azure/aks/ingress-tls?tabs=azure-cli#configure-an-fqdn-for-the-ingress-controller seems to imply that AKS will assign me a subdomain under <AZURE REGION NAME>.cloudapp.azure.com.
In the provided example it uses DNS_LABEL="demo-aks-ingress".
However, I'm super confused about how that could possibly work...I assume each IP would need its own unique label (i.e. subdomain)?
But how can we determine whether a given "DNS_LABEL" is available or not?
Especially given Method 2 which just sets some annotation on the ingress-nginx-controller service...
Aside:  Create an ingress controller has us create our ingress controller via a helm release named ingress-nginx.  Howevever, in this Use TLS with an ingress controller section the helm update command uses nginx-ingress...it would be good to be consistent and update that to helm update ingress-nginx ....

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: ada58160-dc50-b977-d3bc-65f92406e16d
Version Independent ID: 5c596e04-fddb-effe-3b72-575f4df42d4e
Content: Use TLS with an ingress controller on Azure Kubernetes Service (AKS) - Azure Kubernetes Service
Content Source: articles/aks/ingress-tls.md
Service: container-service
GitHub Login: @rayoef
Microsoft Alias: rayoflores

@lmsurpre
Thanks for your feedback! We will investigate and update as appropriate.

In my opinion the idea of just specifying a service.beta.kubernetes.io/azure-dns-label-name annotation and that will become your subdomain is a bit too magical.
I liked the approach you (Azure) took the HTTP Application Routing stuff, where its integrated into the DNS Zone services.
Still user friendly, but namespaced by your cluster (so avoids the global uniqueness issue) and visible to the user.

FWIW I disagree that this isn't a docs issue.
It may be more than just a docs issue, but at the very least the documentation should be more clear about what this DNS_LABEL thing is and what are the considerations for setting it.

@lmsurpre
Thanks for your feedback! I've assigned this issue to the author who will investigate and update as appropriate.
@rayoef
Can you please check and add your comments on this doc update request as applicable.

Thank you so much for your feedback!
We've added an item to our backlog for this issue and will prioritize accordingly.
#please-close


如何进行多卡inference？[API Design]

在lmflow.pipeline.inferencer.Inferencer中，默认只使用了1块GPU
self.local_rank = int(os.getenv("LOCAL_RANK", "0"))

要如何做可以进行多卡inference
时长记录：
训练 1000条QA数据，10epoch， 8卡3090， 时长6小时
推理165条数据，单卡3090，时长6小时43分钟
训练和推理使用的deepspeed config均为config/ds_config_zero3_for_eval

这个指令不是默认使用一块GPU，os.getenv("LOCAL_RANK") 就是在获取当前GPU编号。
在这个文件里，把CUDA_VISIBLE_DEVICES改成多卡试试
https://github.com/OptimalScale/LMFlow/blob/main/scripts/run_evaluation_with_lora.sh

This command does not use a GPU by default, os.getenv("LOCAL_RANK") is to get the current GPU number.
In this file, try changing CUDA_VISIBLE_DEVICES to multi-card
https://github.com/OptimalScale/LMFlow/blob/main/scripts/run_evaluation_with_lora.sh

这个指令不是默认使用一块GPU，os.getenv("LOCAL_RANK") 就是在获取当前GPU编号。 在这个文件里，把CUDA_VISIBLE_DEVICES改成多卡试试 https://github.com/OptimalScale/LMFlow/blob/main/scripts/run_evaluation_with_lora.sh
This command does not use a GPU by default, os.getenv("LOCAL_RANK") is to get the current GPU number. In this file, try changing CUDA_VISIBLE_DEVICES to multi-gpu https://github.com/OptimalScale/LMFlow/blob/main/scripts/run_evaluation_with_lora.sh

使用了双卡3090进行测试，仍然大概是3分钟推理出一条数据
CUDA_VISIBLE_DEVICES=0,1 \
  deepspeed examples/new_get_answer1.py \
      --deepspeed configs/ds_config_zero3_for_eval.json \
      --model_name_or_path ${model} \

这里是我的代码：https://gist.github.com/AlphaGogoo/c9095e0c001bd8a052a707581f80ad8e

If gpu memory allowed, you can use deepspeed zero 2 config which is much faster than zero 3.
3 min for one example seems you are offloading something to cpu, normally should be 5s per example.

This issue has been marked as stale because it has not had recent activity. If you think this still needs to be addressed please feel free to reopen this issue. Thanks


GIS: Add GIS integration feature to Datagrok

Description: research and implement GIS (geographic information system) integration features to Datagrok.

[x] Explore and research GIS that allows integration to the WEB-based platforms
Open source GIS systems
All other GIS systems
[x] Study and test existing Leaflet feature
[x] Study and test existing Google Maps feature

At the moment base functionality of GIS was added to the Datagrok as a Viewer.
The next steps will be some stress-testing of GIS module to determine it's limitations and bottlenecks, refactoring of UI, geocoding features and further integration to the Datagrok based on semantic types.


Installation problem

After installing spinqkit using the command pip install spinqkit, I could not run the provided example in this document
I could run it only after downgrading 'ANTLR' and 'python-igraph' libraries to a version that was released around December 2021.
I am using Windows 10 and Python 3.9.

Thanks for your issues. The spinqkit packages is still in alpha. We have updated the latest version but not push to the repository

Hi,
We just publish a new version which specifies the required packages. SpinQKit is now available on Windows, Linux, and MacOS. Could you please try again and let us know if you see any new issue? Thank you!


Automl script

First working version of AutoML script. There is a lot more to do in the future but I think this is a good starting point.

Closing this. I am working in a completely new version.


Update to Swift 4 reveals new issue: The following binaries use incompatible versions of Swift

After I updated my App to Swift 4 I get this error message:
error: The following binaries use incompatible versions of Swift:
/Users/Konrad/Library/Developer/Xcode/DerivedData/ExploreYourCity-btthjezgywzvnmduiurzwgwzrven/Build/Products/Debug-iphoneos/Cosmos/Cosmos.framework/Cosmos
/Users/Konrad/Library/Developer/Xcode/DerivedData/ExploreYourCity-btthjezgywzvnmduiurzwgwzrven/Build/Products/Debug-iphonesimulator/ExploreYourCity.app/ExploreYourCity
I can not find a solution to this misstake. Whats wrong?

Library setup method: CocoaPods
Version of the library. Example: 12.0.1.
Xcode version. Example:9.0.1.
OS version. Example: iOS 11.0.
*Swift Version: Swift 4.0.

Hi, thanks for reporting. I have not seen such an error before, unfortunately. I would suggest searching the error text on stackoverflow or asking a question there. Sorry.

Do you still have the issue?

Closing the issue. Feel free to reopen if needed.


Alexa stopped sending notifications to magic mirror

Was working well previously, but found it today where Alexa would respond "Ok" when I would try to turn the page, but magic mirror doesn't acknowledge that it got a notification from Alexa.

Just tried deleting all the devices and discovering devices again - only stop pm2 was found.

Have you discovered a second time and restart the mirror? Also the WiFi could be a problem. Is had the Problem that Alexa was in the 5 GHz WiFi and my Pi in the 2.4 GHz WiFi. Disable one of them when you discover. I hope it works then. Maybe your used Alexa Generation didn't work. Which do you use? I hope that works for you


Why double newline after imports if the next item is a variable?

Just noticed now that reorder-python-imports forces 2 newlines after imports regardless if the next thing after the import is a class, function or a variable.
Just curious as I couldn't find anything in the pep about this, is it intended?

pep8 suggests separating toplevel things with two linebreaks

It says here "Separate top-level function and class definitions with two blank lines."
Maybe I'm comparing this tool too much with isort? :cactus:

Heh perhaps.  I ran into a similar problem when implementing this here and this was the easiest approach.  pep8 doesn't seem to enforce either direction (maybe it should?).

Yeah maybe, I prefer to have a newline separating my docstrings/comments in the top from the imports and just a single newline separating imports if the next declaration is a variable

Actually I've thought of a more clever way to solve this.  I'm going to take a stab at a PR to solve it.


Is it necessary that Every time I use Image in prompt

I am trying to use this Model as text only sometimes like Laama model and both image+text in its prompt sometimes as VLM Model.
I only see example of using it for VLM with Image+text in its every prompt.
query = 'Describe this image'
image = Image.open(requests.get('https://github.com/THUDM/CogVLM/blob/main/examples/1.png?raw=true', stream=True).raw).convert('RGB')
inputs = model.build_conversation_input_ids(tokenizer, query=query, history=[], images=[image])  # chat mode
inputs = {
    'input_ids': inputs['input_ids'].unsqueeze(0).to('cuda'),
    'token_type_ids': inputs['token_type_ids'].unsqueeze(0).to('cuda'),
    'attention_mask': inputs['attention_mask'].unsqueeze(0).to('cuda'),
    'images': [[inputs['images'][0].to('cuda').to(torch.bfloat16)]],
}

Question:
How to use it like Laama model with only text and optionally images if user needs. And In my testing this Model with only Text like

write for loop to find odd numbers in python.
who is the president of united states.
the model has not performed well compared to Laama or mistral...!
Any Idea why..!

Thank you in advance.

Hi, just hoping in to check any answers...! Thank you

The base model used for cog-vlm is vicuna-7b-v1.5. To utilize the pure text mode, it's important to prepend the vicuna-7b-v1.5 prompt to your text. For example:
template = "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions. USER: {} ASSISTANT:"

input_sample1 = model.build_conversation_input_ids(
    tokenizer,
    images=[],
    query=template.format(['hello']),
    history=[],
    )
input_sample2 = model.build_conversation_input_ids(
    tokenizer,
    images=[],
    query=template.format(['who is the president of united states']),
    history=[],
    )

You should observe model outputs similar to:
[
    'Hello! How can I assist you today?</s>',
    'As of my knowledge cutoff in September 2021, the President of the United States was Joe Biden. However, please note that my training data only goes up to that date, and there is a possibility that there might have been a change in leadership since then.</s>'
]

It's important to note that the LLM of cogvlm-base has not been trained. cogvlm-grounding, built on the cogvlm-base, has had its LLM part trained using LoRA. cogvlm-chat, also based on cogvlm-base, its LLM part has been fully trained. Therefore, even if we add the vicuna-7b-v1.5 prompt, the results from the chat version might slightly differ.
Furthermore, when not using the vicuna chat template, it should display capabilities similar to llama2-base. This can be observed with cogvlm-base. cogvlm-grounding showed minor repetitions, while cogvlm-chat, as shown in the issue, produced some gibberish output. This may be related to the absence of system prompts during the training of cogvlm-chat/grounding.


ProducesAttribute should not inherit from ResultFilterAttribute

Currently [Produces(...)] inherits from ResultFilterAttribute which implements IAsyncResultFilter. [Produces(...)] does no async work, and would be better served as IResultFilter.
https://github.com/aspnet/Mvc/blob/ee2cfa1963ee7f8195130d41330f94d4622ca89a/src/Microsoft.AspNetCore.Mvc.Core/ProducesAttribute.cs
Async filters have a perf cost (two awaits and some state machine allocations) which show up in TechEmpower high throughput scenarios.

Notice the fall-off here in the %ages. This would have the overhead of a virtual call if it were a sync filter. In context this about 3-4% of CPU time.

This is suggested for a 2.0 release. Obviously this is a breaking change.


REDESIGN-16 - Add sticky header to the Homepage

Could work similar to the one on the Polymer Brandpage

I also like some aspects of the d3 page which provides a carrousel with the images of the library components in an eye-catchy way.
Cheers
M
Sent from my iPhone

On Jan 5, 2016, at 5:04 PM, jessica<EMAIL_ADDRESS>wrote:
Could work similar to the one on the Polymer Brandpage
—
Reply to this email directly or view it on GitHub.

@manuelcorpas Yes that's really a fancy design element - we'll check if we can have something similar in the header


using decode('ascii', 'ignore') changes asn name

Some asnames have special characters like âçã and using decode('ascii', 'ignore') removes them, which, as I see, is not a good thing as it changes source data. This change fixes the problem.

Running some tests first. Looks good for RDAP since it defaults to utf-8 responses (https://tools.ietf.org/html/rfc7483#section-12.1).

I found a bug with the HTTP asn lookups, issue #98 opened. I will go ahead and merge this unless my tests fail.

Please make the above noted changes and I will merge. I want to keep the errors 'ignore' flag for now pending extensive testing.

Added to dev via 0062fd5654d22905e3bae08875a23f402809b0c9


enquiry : multi tenant

hi all,
i am new on the python/flask-sqlalchemy. has been researching the internet, but didnt find any sample that somebody do this with flask-sqlachemy. i will appreciate if you can point me to the direction also.
i am developing rest api, that will return result from different database schema based on userid.
e.g. userid = 1, db schema = tenant1.
userid = 2 , db schema = 2.
understand that currently flask-sqlalchemy allow multi database with binding. but are we allow to add binding configurable in database?
What i mean is something like this.

store the userid and db mapping in database table. [common table for all tenants]
userid = 1, db schema = tenant1.
userid = 2 , db schema = tenant2
when somebody run a query on the rest api by passing userid, i will use pymysql connectiong (with sqlalchemy) to retrieve the schema and then bind the schema accordingly to the URI.
e.g app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://root:root@localhost/' + [tenant based on userid]
i have done point 1 and 2, but once the schema is bind, i am not able to switch schema.
what i mean is that if userid =1 have first query the rest api, the rest api will always bind to tenant1.
even though i change the URI to "tenant2",
app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://root:root@localhost/' + tenant2
the query will still return the data in tenant1.

is it possible to be done in flask-sqlalchemy?
Many thanks in advance.
Thanks

I have the same question as you. Did you solve this problem?


Update synology-surveillance-station.json

incorrect exe file fixed

After updating with scoop, the shim will try to execute an exe file that does not exist, my proposed pull request updates to the correct exe file.

Closes #XXXX

Relates to #XXXX

[X] I have read the Contributing Guide.

/verify


EDU-935 Update antd to latest version

[Hopefully nicely finally] closes https://educandu.atlassian.net/browse/EDU-935.

Great (and huge) job on the update! Looks good and seems to be more performant actually. There's one thing I realized that looks a little bit odd: In the search result table we have a 1px horizontal line between the rows, but the row with the hover on it doesn't have the line (neither on top nor on the bottom), so it looks a little bit confusing when moving with the mouse over the table. Is that also on your browser?

Thanks 😊 🙏
Yes, that table hover (d)effect the one thing that I could not fix nicely and that AntD introduced. Should I look into overwriting the ant classes to remove this?

Great (and huge) job on the update! Looks good and seems to be more performant actually. There's one thing I realized that looks a little bit odd: In the search result table we have a 1px horizontal line between the rows, but the row with the hover on it doesn't have the line (neither on top nor on the bottom), so it looks a little bit confusing when moving with the mouse over the table. Is that also on your browser?

Thanks blush pray Yes, that table hover (d)effect is the one thing that I could not fix nicely and that AntD introduced. Should I look into overwriting the ant classes to remove this?

Ah, I see. I'm not sure if it only confused me because it's different than before or because it looks weird in general. If you find an override and it's not too much effort and hacking, it would be nice to keep those lines also when hovering.

Great (and huge) job on the update! Looks good and seems to be more performant actually. There's one thing I realized that looks a little bit odd: In the search result table we have a 1px horizontal line between the rows, but the row with the hover on it doesn't have the line (neither on top nor on the bottom), so it looks a little bit confusing when moving with the mouse over the table. Is that also on your browser?

Thanks blush pray Yes, that table hover (d)effect is the one thing that I could not fix nicely and that AntD introduced. Should I look into overwriting the ant classes to remove this?

Ah, I see. I'm not sure if it only confused me because it's different than before or because it looks weird in general. If you find an override and it's not too much effort and hacking, it would be nice to keep those lines also when hovering.

I shall attempt and see what I find then. It does look weird for me too of course but I wasn't sure if I should try and go so much against the AntD styling.

Great (and huge) job on the update! Looks good and seems to be more performant actually. There's one thing I realized that looks a little bit odd: In the search result table we have a 1px horizontal line between the rows, but the row with the hover on it doesn't have the line (neither on top nor on the bottom), so it looks a little bit confusing when moving with the mouse over the table. Is that also on your browser?

Thanks blush pray Yes, that table hover (d)effect is the one thing that I could not fix nicely and that AntD introduced. Should I look into overwriting the ant classes to remove this?

Ah, I see. I'm not sure if it only confused me because it's different than before or because it looks weird in general. If you find an override and it's not too much effort and hacking, it would be nice to keep those lines also when hovering.

I shall attempt and see what I find then. It does look weird for me too of course but I wasn't sure if I should try and go so much against the AntD styling.

Fixed! sunglasses I also removed some pre-existing overrides to the table header to have them all look similar across out tables.

Cool :heart_eyes:


a high severity vulnerability introduced in selenium-cucumber-js

Hi, a vulnerability https://www.npmjs.com/advisories/1464 is introduced in selenium-cucumber-js via:
●<EMAIL_ADDRESS>➔<EMAIL_ADDRESS>➔<EMAIL_ADDRESS>➔<EMAIL_ADDRESS>➔<EMAIL_ADDRESS>phantomjs-prebuilt is a legacy package. It has not been maintained for about 3 years, and is not likely to be updated.
Is it possible to migrate phantomjs-prebuilt to other package to remediate this vulnerability?
I noticed several migration records for phantomjs-prebuilt in other js repos, such as

in backstopjs, version 3.8.9 ➔ 3.9.0, remove phantomjs-prebuilt via commit
in aegir, version 8.1.2 ➔ 9.0.0, remove phantomjs-prebuilt via commit

Are there any efforts planned that would remediate this vulnerability or migrate phantomjs-prebuilt?
Thanks
; )

Nothing planned, but happy to accept a PR :)

I think that PR is https://github.com/john-doherty/selenium-cucumber-js/pull/108 ?


Basejump: Request Header Parser Microservice - Ambiguous User Stories

Challenge Basejump: Request Header Parser Microservice has an issue.
There is only one user story:

I can get the IP address, language and operating system for my browser.

This is super ambiguous.  I think it needs to be more specific about returning that data as JSON.
Maybe:

I can see my browser's IP address, language and operating system as a JSON object.

Unless it's really supposed to be this wide open.

I agree. Otherwise I think the instinct on a challenge like this would be to return this information in the form of a small webpage, which wouldn't really be an API project anymore.

I think the instinct on a challenge like this would be to return this information in the form of a small webpage

That was exactly what I was planning to do until I saw the demo site.
@QuincyLarson Do you have strong feelings about the definition of this project?

If this is still an interest it would make a great starter issue for @yourfirstpr

I'd like to work on this issue if it still needs fixing

Maybe change it to be like: https://www.freecodecamp.com/challenges/url-shortener-microservice or https://www.freecodecamp.com/challenges/timestamp-microservice. These ones give a bit more information.

I'm going to go with @SaintPeter's suggestion:

I can get my browser's IP address, language, and operating system as a JSON object.

Does that sound alright?


Allow direct configuration of target

This PR allows users to directly configure what target to build a Rust crate for. In the current version of cargo2nix you can cross-compile crates by using a Nix crossSystem, but that only lets you specify target types that are supported by Nix. At first this might sound like a contrived limitation, but there is a real use case for this, SGX builds. The Fortanix EDP uses a tier 3 target called x86_64-fortanix-unknown-sgx. Since there isn't a corresponding Nix system, you can't cross compile to the Fortanix ABI.
I solve this problem by allow configuration of build target in mkCrate and makePackageSet. This allows the user to pass in whatever target they please, with a fallback to the standard realHostTriple method.
I am new to the cargo2nix project, so apologizes if I have made these changes in a clumsy manor, or not followed PR etiquette strictly.

Will this break existing Cargo.nix files?
The minor branch is where I'm currently gathering up changes. The target for the rust channel is configured in a really similar way.
I'm likely going to break this into two commits. That's usually easier to apply when it comes to handling generated changes.
Taking a break. Will review in more detail later.

This will break existing Cargo.nix files. I have made some fixes and changes in our internal branch to this PR that I will push up now. You can see the new commit here: https://github.com/sphw/cargo2nix/commit/8edd83a16b4dc304c23bcee48f77894863c1eab4

I apologize for the amount of disruption to the master branch.  I'm aiming to get this change in right after releasing 0.9.1.  Recommend creating a new branch and harvesting the non-generated changes and then re-generating.
It will be better to keep the generated files in separate commits in case a re-generation is needed by another change.

Master is ready to build on top of again.  Sorry for the chaos of all the force pushes.  I will definitely bring this PR in.  I want to address #129 also.

Changes have been eaten in #214  and tested.   Remembered to add you to the commit author.  Thanks!
I made some modification that enabled old Cargo.nix to be used (if no explicit target is passed) and probably two minor changes to the offsets to enable the build.rs to be configured for the correct platform
In the future, not that stdenv.buildPlatform is for build and stdenv.hostPlatform is for the "target".  stdenv.targetPlatform is usually an implementation detail of gcc's that might need to cross compile to make a compiler that runs on a different host and puts out code for a third target


Deploy code with value

Before, we couldn't use the deployCode cheatcode with value on contract construction.


Improve the error message

Description
Improve the error message for when a state store has not been set for actor usage and actors are used
Issue reference
Please reference the issue this PR will close: https://github.com/dapr/dapr/issues/4273
Checklist
Please make sure you've  completed the relevant tasks for this PR, out of the following list:

[x] Code compiles correctly
[ ] Created/updated tests
[x] Unit tests passing
[x] End-to-end tests passing
[ ] Extended the documentation / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]
[ ] Specification has been updated / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]
[ ] Provided sample for the feature / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]

Thanks @theonefx!


Do not run vercel on gh-pages

Vercel is currently failing on gh-pages because the website folder is missing. This is expected as we don't want to run website preview there

Warnings

:warning:
This PR is approved with no milestone set. If merged, it won't appear in the detekt release notes.

  Generated by :no_entry_sign: dangerJS against 8c4474d3fc94236d5961b4fa1e15bb1345750b1b


Recommend latest version in missing dependency message

As mentioned in https://github.com/tipsy/javalin/pull/767, this adds a hyperlink to the missing dependency message to allow developers to easily find the latest version (not every IDE has hints for this).
Example output:
-------------------------------------------------------------------
Missing dependency 'Jtwig'. Add the dependency.

pom.xml:
<dependency>
    <groupId>org.jtwig</groupId>
    <artifactId>jtwig-core</artifactId>
    <version>5.87.0.RELEASE</version>
</dependency>

build.gradle:
compile "org.jtwig:jtwig-core:5.87.0.RELEASE"

Find the latest version here:
https://search.maven.org/search?q=g%3Aorg.jtwig+AND+a%3Ajtwig-core
-------------------------------------------------------------------

Thank you @zimmi !

Thanks ! This has been released now - https://javalin.io/news/2019/11/03/javalin-3.6.0-released.html


Improve testconfig handling

We could provide a dummy TestConfig.env even if it doesn't work. This helps developers to fill in their working credentials.
DotNetEnv doesn't throw an exception when reading a non-existent file. We need to add explicit test to make sure the file is there; only if when the test fails, we log the trace there.

Close since this has been implemented.

By: https://github.com/Laserfiche/lf-api-client-core-dotnet/commit/6771ade90a91020e154344d0d3f3448f608759ef


Cannot obtain first Carbon Nanotube

GregTech CEu Version
v2.4.0
Gregicality Multiblocks Version
v1.1.4
Gregicality Science Version
v0.0.1
Modpack Used
GregTech Expert 2
Addons Installed
No response
Environment
SP
New Worlds
Yes
Cross-Mod Interaction
No
Expected Behavior
you can obtain carbon nanotube
Actual Behavior
Carbon Nanotube dust -> Carbon Allotrope Mixture -> Graphene-Aligned  Carbon Nanotube -> Cycloparaphenylene -> Carbon Nanotube Ingot (single line chain)
Steps to Reproduce
install GCYS
Additional Information
No response

Carbon Nanotubes are first produced as a Long Rod.


python38Packages.dulwich: 0.20.24 -> 0.20.25

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python38Packages.dulwich is: "Simple Python implementation of the Git file formats and protocols"
meta.homepage for python38Packages.dulwich is: "https://www.dulwich.io/"
meta.changelog for python38Packages.dulwich is: "https://github.com/dulwich/dulwich/blob/dulwich-0.20.25/NEWS"
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS

Warning: a test defined in passthru.tests did not pass

/nix/store/ixbjdv4vhnax7wadbh7gd4ihp75kcwyc-python3.8-dulwich-0.20.25/bin/dul-receive-pack passed the binary check.

/nix/store/ixbjdv4vhnax7wadbh7gd4ihp75kcwyc-python3.8-dulwich-0.20.25/bin/dul-upload-pack passed the binary check.

/nix/store/ixbjdv4vhnax7wadbh7gd4ihp75kcwyc-python3.8-dulwich-0.20.25/bin/dulwich passed the binary check.

/nix/store/ixbjdv4vhnax7wadbh7gd4ihp75kcwyc-python3.8-dulwich-0.20.25/bin/.dul-receive-pack-wrapped passed the binary check.

/nix/store/ixbjdv4vhnax7wadbh7gd4ihp75kcwyc-python3.8-dulwich-0.20.25/bin/.dul-upload-pack-wrapped passed the binary check.

/nix/store/ixbjdv4vhnax7wadbh7gd4ihp75kcwyc-python3.8-dulwich-0.20.25/bin/.dulwich-wrapped passed the binary check.

2 of 6 passed binary check by having a zero exit code.

4 of 6 passed binary check by having the new version present in output.

found 0.20.25 with grep in /nix/store/ixbjdv4vhnax7wadbh7gd4ihp75kcwyc-python3.8-dulwich-0.20.25

found 0.20.25 in filename of file in /nix/store/ixbjdv4vhnax7wadbh7gd4ihp75kcwyc-python3.8-dulwich-0.20.25

directory tree listing: https://gist.github.com/2037f2fbebbdbccbe81dc513a137d513

du listing: https://gist.github.com/23ae3f0101384d274c19fc652f97c9c0

Rebuild report (if merged into master) (click to expand)

92 total rebuild path(s)

24 package rebuild(s)

24 x86_64-linux rebuild(s)
24 i686-linux rebuild(s)
20 x86_64-darwin rebuild(s)
24 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
breezy
cabal2nix
dep2nix
devpi-client
errbot
flatpak-builder
haskellPackages.cabal2nix-unstable
hydra-unstable
klaus
nix-prefetch-bzr
nix-prefetch-scripts
nix-update-source
python38Packages.breezy
python38Packages.check-manifest
python38Packages.dulwich
python38Packages.klaus
python39Packages.breezy
python39Packages.check-manifest
python39Packages.dulwich
python39Packages.klaus
rabbitvcs
reno
vcstool
xandikos

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/ixbjdv4vhnax7wadbh7gd4ihp75kcwyc-python3.8-dulwich-0.20.25 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python38Packages.dulwich https://github.com/r-ryantm/nixpkgs/archive/216ade27abb156cc4f298e829f644066f2564afd.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/ixbjdv4vhnax7wadbh7gd4ihp75kcwyc-python3.8-dulwich-0.20.25
ls -la /nix/store/ixbjdv4vhnax7wadbh7gd4ihp75kcwyc-python3.8-dulwich-0.20.25/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
nixpkgs-review took longer than 45m and timed out

Maintainer pings
cc @k0ral for testing.

Result of nixpkgs-review pr 135514 at 216ade27 run on aarch64-linux 1

2 packages failed to build:

devpi-client
xandikos

20 packages built successfully:

breezy (python39Packages.breezy)
cabal2nix
dep2nix
errbot
flatpak-builder
haskellPackages.cabal2nix-unstable
hydra-unstable
klaus (python39Packages.klaus)
nix-prefetch-bzr
nix-prefetch-scripts
nix-update-source
python38Packages.breezy
python38Packages.check-manifest
python38Packages.dulwich
python38Packages.klaus
python39Packages.check-manifest
python39Packages.dulwich
rabbitvcs
reno
vcstool

Note that build failures may predate this PR, and could be nondeterministic or hardware dependent.
Please exercise your independent judgement. Does something look off? Please file an issue or reach out on IRC.


Test if PVC outside argo fixing the issue

/retest

/retest

Checked manually with quay.io/redhat-appstudio/pull-request-builds:has-3bfb57601c71602b98895e927ecaaf33071f4b0e image. The fix is working properly.

/retest

The test above, failed due to different reason. The appstudio volume is present and not in deletion state.

/retest

/retest


chore(release): :bookmark: 1.1.1

1.1.1 (2023-06-25)
Bug Fixes

project: :ambulance: update plugin id in manifest.json (81d8f74)

:tada: This PR is included in version 1.1.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Create issue templates

Closes #85
Description of the issue #85
There is the possibility to define issue template in github. This could help format issues for case A and case B proposed by @stap-m here
In these templates we could setup section so that the request of @han-f can be fulfilled.
Here are the instructions for implementing that.
Here is an example of what it looks like when someone clicks on the "New Issue" button.
We should decide if we store the templates under docs/, .github/ or in the root of the repository (it must be one of the three)

@stap-m , @han-f can you review this one quickly (merge it directly yourself if you accept it, you can also push your changes directly on this branch as I won't be working on it today). This way the issues template will be available

Looks good from my point of view. many thanks.

Looks good from my point of view. many thanks. Would you like to implement more than the two templates that can currently be seen when clicking the example?

yes, the example was just to show how it would look, the files I propose to change are under the "Files changes" Tab at the top of this discussion.

Looks good to me too. Thanks!


[feature] How do I listen for every messages in a group chat?

Tried .on('message') and also .hears() but it seems not to be working.

the only things that I get the bot to observe messages is to start with a slash, for eg: /test

solved by turning off privacy mode in BotFather prompt.


[stable/weave-cloud] Switch to using Docker Hub, bump version

What this PR does / why we need it:
Which issue this PR fixes
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

fixes #

Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[ ] DCO signed
[ ] Chart Version bumped
[ ] Variables are documented in the README.md

/lgtm


Bump etcd version to v3.5.6 for 1.22-1.24

Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/lgtm

/approve


Cant change file name case on windows

When I try to rename "atomize" to "Atomize" I get error: c:\Main\Work\syncretic\app\utils\Atomize.ts already exists.
VSCode version: 1.18.1
MoveTS version: 1.50
Windows: 8.1 Pro

Solution is to pass { overwrite: true } to moveAsync due to https://github.com/overlookmotel/fs-extra-promise/issues/25 and maybe use newer fs-extra.

Happens also on osx


Edit does not work for annual leave

When editting the annual leave field, java.lang.reflect.InvocationTargetException happens.

Add command also do not work

Solved


#17 Add tests to ensure build tasks still complete even if source dir…

…ectories don't exist

Coverage remained the same at 68.622% when pulling cef2dbb202505a342b96420625d4f6650425d91c on feature/17-missing-top-level-folder-support into 1742660adf2346a61f8cdbcca048b866251cee88 on master.


add upx as post run

the upx reduce the file size about 70%
form 15MB to 4,4MB
$ upx -vvv --lzma gopass
                       Ultimate Packer for eXecutables
                          Copyright (C) 1996 - 2020
UPX 3.96        Markus Oberhumer, Laszlo Molnar & John Reiser   Jan 23rd 2020

        File size         Ratio      Format      Name
   --------------------   ------   -----------   -----------
  14741504 ->   4575504   31.04%   linux/amd64   gopass

Packed 1 file.
$ ./gopass version
gopass 1.15.3 go1.19.4 linux amd64
$

Signed-off-by: berlin4apk<EMAIL_ADDRESS>

No activity on this draft in a while. Feel free to re-open if you still intent to finish it.
But in that case please do provide some reasoning why we would want this.


activate the perimetral status with the integration

hi
i try with personalized but activate only the perimetral
i try with in home but activarte the partial
i need to activate the perimetral and the partial at the same time
thanks for future answer
bye

When you did the initial installation, did you select the checkbox that says "Is there a perimetral alarm?"
If you did and it doesn't work, can you send logs, please?

actually, I think I know what the problem is. Will fix in the next release.

The latest release (2.7.1) should have fixed this


#1: add support for horses in database initialization

added "INSERT INTO types VALUES (7, 'horse');" to sql.data

/paulo - can you please review this pull request?

/paulo - can you check now?