CMAKE errors - Visual Studio

It appears the CMake version included with Visual Studio 2022 (not code) is not able to compile the binary:
Z:\Dev\dos-dev-template [main ≡]> cmake --build build
[0/2] Re-checking globbed directories...
[2/3] Building C object CMakeFiles/main.dir/src/main.c.obj
FAILED: CMakeFiles/main.dir/src/main.c.obj
Z:\Dev\dos-dev-template\tools\djgpp\bin\i586-pc-msdosdjgpp-gcc.exe   -IZ:/Dev/dos-dev-template/tools/djgpp/i586-pc-msdosdjgpp/sys-include/ -O3 -DNDEBUG -MD -MT CMakeFiles/main.dir/src/main.c.obj -MF CMakeFiles\main.dir\src\main.c.obj.d -o CMakeFiles/main.dir/src/main.c.obj -c Z:/Dev/dos-dev-template/src/main.c
Z:/Dev/dos-dev-template/src/main.c: In function 'main':
Z:/Dev/dos-dev-template/src/main.c:23:33: warning: implicit declaration of function 'rand' [-Wimplicit-function-declaration]
   23 |                         int x = rand() % 320;
      |                                 ^~~~
Z:/Dev/dos-dev-template/src/main.c:35:9: error: unknown type name 'FILE'
   35 |         FILE *file = fopen("assets/test.txt", "r");
      |         ^~~~
Z:/Dev/dos-dev-template/src/main.c:5:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
    4 | #include <sys/nearptr.h>
  +++ |+#include <stdio.h>
    5 |
Z:/Dev/dos-dev-template/src/main.c:35:22: warning: implicit declaration of function 'fopen' [-Wimplicit-function-declaration]
   35 |         FILE *file = fopen("assets/test.txt", "r");
      |                      ^~~~~
Z:/Dev/dos-dev-template/src/main.c:35:22: note: 'fopen' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
Z:/Dev/dos-dev-template/src/main.c:35:22: warning: initialization of 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
Z:/Dev/dos-dev-template/src/main.c:36:9: warning: implicit declaration of function 'fseek' [-Wimplicit-function-declaration]
   36 |         fseek(file, 0, SEEK_END);
      |         ^~~~~
Z:/Dev/dos-dev-template/src/main.c:36:24: error: 'SEEK_END' undeclared (first use in this function)
   36 |         fseek(file, 0, SEEK_END);
      |                        ^~~~~~~~
Z:/Dev/dos-dev-template/src/main.c:36:24: note: each undeclared identifier is reported only once for each function it appears in
Z:/Dev/dos-dev-template/src/main.c:37:30: warning: implicit declaration of function 'ftell' [-Wimplicit-function-declaration]
   37 |         long int num_bytes = ftell(file);
      |                              ^~~~~
Z:/Dev/dos-dev-template/src/main.c:38:24: error: 'SEEK_SET' undeclared (first use in this function)
   38 |         fseek(file, 0, SEEK_SET);
      |                        ^~~~~~~~
Z:/Dev/dos-dev-template/src/main.c:39:57: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
   39 |         unsigned char *file_content = (unsigned char *) malloc(num_bytes + 1);
      |                                                         ^~~~~~
Z:/Dev/dos-dev-template/src/main.c:5:1: note: include '<stdlib.h>' or provide a declaration of 'malloc'
    4 | #include <sys/nearptr.h>
  +++ |+#include <stdlib.h>
    5 |
Z:/Dev/dos-dev-template/src/main.c:39:57: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch]
   39 |         unsigned char *file_content = (unsigned char *) malloc(num_bytes + 1);
      |                                                         ^~~~~~
Z:/Dev/dos-dev-template/src/main.c:39:57: note: include '<stdlib.h>' or provide a declaration of 'malloc'
Z:/Dev/dos-dev-template/src/main.c:40:9: warning: implicit declaration of function 'fread' [-Wimplicit-function-declaration]
   40 |         fread(file_content, 1, num_bytes, file);
      |         ^~~~~
Z:/Dev/dos-dev-template/src/main.c:42:9: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   42 |         printf("%s\n", file_content);
      |         ^~~~~~
Z:/Dev/dos-dev-template/src/main.c:42:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Z:/Dev/dos-dev-template/src/main.c:42:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
Z:/Dev/dos-dev-template/src/main.c:42:9: note: include '<stdio.h>' or provide a declaration of 'printf'
ninja: build stopped: subcommand failed.

Version:
 cmake --version
cmake version 3.24.202208181-MSVC_2

CMake suite maintained and supported by Kitware (kitware.com/cmake).

Correction: This also happens with the official CMAKE version. Missing anything?

I didn't use git bash, but now I do, and the first executes fine, but the second doesn't:
sebas@FURNACE MINGW64 /z/dev/dos-dev-template (main)
$ cmake --build build
Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

  Checking File Globs
  main.c
Z:\Dev\dos-dev-template\tools\djgpp\i586-pc-msdosdjgpp\sys-include\pc.h(38,15): warning C4391: 'unsigned char inp(unsigned short)': incorrect return type for intrinsic function, expected 'int' [Z:\Dev\dos-dev-template\build\main.vcxp
roj]
Z:\Dev\dos-dev-template\tools\djgpp\i586-pc-msdosdjgpp\sys-include\pc.h(40,7): warning C4391: 'void outp(unsigned short,unsigned char)': incorrect return type for intrinsic function, expected 'int' [Z:\Dev\dos-dev-template\build\main
.vcxproj]
Z:\Dev\dos-dev-template\tools\djgpp\i586-pc-msdosdjgpp\sys-include\pc.h(41,7): warning C4391: 'void outpw(unsigned short,unsigned short)': incorrect return type for intrinsic function, expected 'unsigned short' [Z:\Dev\dos-dev-templa
te\build\main.vcxproj]
Z:\Dev\dos-dev-template\tools\djgpp\i586-pc-msdosdjgpp\sys-include\inlines/pc.h(14,1): error C2054: expected '(' to follow '__inline__' [Z:\Dev\dos-dev-template\build\main.vcxproj]
Z:\Dev\dos-dev-template\tools\djgpp\i586-pc-msdosdjgpp\sys-include\inlines/pc.h(15,1): error C2082: redefinition of formal parameter 'inportb' [Z:\Dev\dos-dev-template\build\main.vcxproj]
[repeated many times]

I'm sorry, it seems CMake is generating Visual Studio solutions instead of a Makefile on your system. I'll update the instructions tonight. Thanks for reporting!

Ah, in your last message, the log tells me that CMake isn't actually using DJGPP, but Microsoft Visual C++, which will not work. It also uses MSBuild. I have now updated the README.md to instruct people to install Ninja and make sure it's available on the command line via the PATH environment variable.
I'm currently trying this in a Windows virtual machine to make sure it works. If you get to do it before me, let me know.
Thanks for reporting!

OK, I've now confirmed that the new instructions which add Ninja to the set of tools work on a fresh Windows 11 install. So:

Install Git for Windows
Install CMake
Install VS Code including putting code.exe in the PATH (it's a default option in the installer)
Download Ninja and put ninja.exe in the CMake/bin folder (so you don't have to add another PATH entry)
Open Git Bash

git clone https://github.com/badlogic/dos-dev-template
cd dos-dev-template
./download-tools.sh
code .

In VS Code
7. If asked to select a kit, select djgpp
8. If asked to install clangd, install it
Run the debug target launch configuration. It will compiles the app, start dosbox and attach the debugger.

Thanks, no dice though!
Git bash:
cmake --build build
Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

  Checking File Globs
  Checking Build System
  Building Custom Rule Z:/Dev/dos-dev-template/CMakeLists.txt
  Building Custom Rule Z:/Dev/dos-dev-template/CMakeLists.txt
  main.c
Z:\Dev\dos-dev-template\tools\djgpp\i586-pc-msdosdjgpp\sys-include\pc.h(38,15): warning C4391: 'unsigned char inp(unsig
ned short)': incorrect return type for intrinsic function, expected 'int' [Z:\Dev\dos-dev-template\build\main.vcxproj]
Z:\Dev\dos-dev-template\tools\djgpp\i586-pc-msdosdjgpp\sys-include\pc.h(40,7): warning C4391: 'void outp(unsigned short
,unsigned char)': incorrect return type for intrinsic function, expected 'int' [Z:\Dev\dos-dev-template\build\main.vcxp
roj]
Z:\Dev\dos-dev-template\tools\djgpp\i586-pc-msdosdjgpp\sys-include\pc.h(41,7): warning C4391: 'void outpw(unsigned shor
t,unsigned short)': incorrect return type for intrinsic function, expected 'unsigned short' [Z:\Dev\dos-dev-template\bu
ild\main.vcxproj]
Z:\Dev\dos-dev-template\tools\djgpp\i586-pc-msdosdjgpp\sys-include\inlines/pc.h(14,1): error C2054: expected '(' to fol
low '__inline__' [Z:\Dev\dos-dev-template\build\main.vcxproj]

WSL2 - Ubuntu:
(note download script needs to be run as bash ./download-tools.sh:
bash ./download-tools.sh
Installing GDB
https://marioslab.io/dump/dos/gdb/gdb-7.1a-djgpp-linux.zip
Installing DJGPP
https://marioslab.io/dump/dos/djgpp/djgpp-linux64-gcc1210.tar.bz2

cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=tools/toolchain-djgpp.cmake -S . -B build                                                    ❮  
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
System is unknown to cmake, create:
Platform/linux-djgpp to use this system, please post your config file on discourse.cmake.org so it can be added to cmake
CMake Error at CMakeLists.txt:2 (project):
  The CMAKE_C_COMPILER:

    /mnt/z/Dev/dos-dev-template/tools/djgpp/bin/i586-pc-msdosdjgpp-gcc

It appears djgpp was or I'm missing some other dependency:
find tools/
tools/
tools/djgpp.zip
tools/dosbox-x.conf
tools/gdb
tools/gdb/gdb
tools/toolchain-djgpp.cmake

 ~#@❯  cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE=tools/toolchain-djgpp.cmake -S . -B build
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
System is unknown to cmake, create:
Platform/linux-djgpp to use this system, please post your config file on discourse.cmake.org so it can be added to cmakeCMake Error at CMakeLists.txt:2 (project):
  The CMAKE_C_COMPILER:

    /mnt/z/Dev/dos-dev-template/tools/djgpp/bin/i586-pc-msdosdjgpp-gcc

  is not a full path to an existing compiler tool.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.

CMake Error at CMakeLists.txt:2 (project):
  The CMAKE_CXX_COMPILER:

    /mnt/z/Dev/dos-dev-template/tools/djgpp/bin/i586-pc-msdosdjgpp-g++

  is not a full path to an existing compiler tool.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.

-- Configuring incomplete, errors occurred!
See also "/mnt/z/Dev/dos-dev-template/build/CMakeFiles/CMakeOutput.log".
See also "/mnt/z/Dev/dos-dev-template/build/CMakeFiles/CMakeError.log".

VSCode:
cmake --build build && Z:\dev\dos-dev-template/tools/dosbox-x/dosbox-x -conf Z:\dev\dos-dev-template/tools/dosbox-x.conf -fastlaunch -exit Z:\Dev\dos-dev-template\build\main.exe && exit
CMake is re-running because Z:/Dev/dos-dev-template/build/CMakeFiles/generate.stamp is out-of-date.
  the file 'Z:/Dev/dos-dev-template/build/CMakeCache.txt'
  is newer than 'Z:/Dev/dos-dev-template/build/CMakeFiles/generate.stamp.depend'
  result='-1'
System is unknown to cmake, create:
Platform/linux-djgpp to use this system, please post your config file on discourse.cmake.org so it can be added to cmake
Your CMakeCache.txt file was copied to CopyOfCMakeCache.txt. Please post that file on discourse.cmake.org.
-- Configuring done
-- Generating done
-- Build files have been written to: Z:/Dev/dos-dev-template/build
[0/2] Re-checking globbed directories...
[2/3] Building C object CMakeFiles/main.dir/src/main.c.obj
FAILED: CMakeFiles/main.dir/src/main.c.obj
Z:\Dev\dos-dev-template\tools\djgpp\bin\i586-pc-msdosdjgpp-gcc.exe   -IZ:/Dev/dos-dev-template/tools/djgpp/i586-pc-msdosdjgpp/sys-include/ -O3 -DNDEBUG -MD -MT CMakeFiles/main.dir/src/main.c.obj -MF CMakeFiles\main.dir\src\main.c.obj.d -o CMakeFiles/main.dir/src/main.c.obj -c Z:/Dev/dos-dev-template/src/main.c
Z:/Dev/dos-dev-template/src/main.c: In function 'main':
Z:/Dev/dos-dev-template/src/main.c:23:33: warning: implicit declaration of function 'rand' [-Wimplicit-function-declaration]
   23 |                         int x = rand() % 320;
      |                                 ^~~~
Z:/Dev/dos-dev-template/src/main.c:35:9: error: unknown type name 'FILE'
   35 |         FILE *file = fopen("assets/test.txt", "r");
      |         ^~~~
[etc]

Debug does work though. It is just that release somehow refuses.
Summarized:

VSCode: Release build doesn't work, but debug does work
Git bash: Build doesn't work, I think it takes the wrong compiled
WSL: Doesn't work, I suppose I'm missing some kind of dependency

Please delete the build/ folder, then issue both the CMake configure and
build commands. Post the entire log here.
Your last try via GitBash still says it's using MS Build and not Ninja.
Please pull the latest changes from this repo and make sure you can execute
ninja in Git Bash.
On Fri, Dec 23, 2022, 16:55 Sebastiaan Dammann @.***>
wrote:

Thanks, no dice though!
Git bash:
cmake --build build
Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Checking File Globs
Checking Build System
Building Custom Rule Z:/Dev/dos-dev-template/CMakeLists.txt
Building Custom Rule Z:/Dev/dos-dev-template/CMakeLists.txt
main.c
Z:\Dev\dos-dev-template\tools\djgpp\i586-pc-msdosdjgpp\sys-include\pc.h(38,15): warning C4391: 'unsigned char inp(unsig
ned short)': incorrect return type for intrinsic function, expected 'int' [Z:\Dev\dos-dev-template\build\main.vcxproj]
Z:\Dev\dos-dev-template\tools\djgpp\i586-pc-msdosdjgpp\sys-include\pc.h(40,7): warning C4391: 'void outp(unsigned short
,unsigned char)': incorrect return type for intrinsic function, expected 'int' [Z:\Dev\dos-dev-template\build\main.vcxp
roj]
Z:\Dev\dos-dev-template\tools\djgpp\i586-pc-msdosdjgpp\sys-include\pc.h(41,7): warning C4391: 'void outpw(unsigned shor
t,unsigned short)': incorrect return type for intrinsic function, expected 'unsigned short' [Z:\Dev\dos-dev-template\bu
ild\main.vcxproj]
Z:\Dev\dos-dev-template\tools\djgpp\i586-pc-msdosdjgpp\sys-include\inlines/pc.h(14,1): error C2054: expected '(' to fol
low 'inline' [Z:\Dev\dos-dev-template\build\main.vcxproj]

WSL2 - Ubuntu:
(note download script needs to be run as bash ./download-tools.sh:
bash ./download-tools.sh
Installing GDB
https://marioslab.io/dump/dos/gdb/gdb-7.1a-djgpp-linux.zip
Installing DJGPP
https://marioslab.io/dump/dos/djgpp/djgpp-linux64-gcc1210.tar.bz2
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=tools/toolchain-djgpp.cmake -S . -B build                                                    ❮  
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
System is unknown to cmake, create:
Platform/linux-djgpp to use this system, please post your config file on discourse.cmake.org so it can be added to cmake
CMake Error at CMakeLists.txt:2 (project):
The CMAKE_C_COMPILER:
/mnt/z/Dev/dos-dev-template/tools/djgpp/bin/i586-pc-msdosdjgpp-gcc

It appears djgpp was or I'm missing some other dependency:
find tools/
tools/
tools/djgpp.zip
tools/dosbox-x.conf
tools/gdb
tools/gdb/gdb
tools/toolchain-djgpp.cmake

~#@❯  cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE=tools/toolchain-djgpp.cmake -S . -B build
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
System is unknown to cmake, create:
Platform/linux-djgpp to use this system, please post your config file on discourse.cmake.org so it can be added to cmakeCMake Error at CMakeLists.txt:2 (project):
The CMAKE_C_COMPILER:
/mnt/z/Dev/dos-dev-template/tools/djgpp/bin/i586-pc-msdosdjgpp-gcc

is not a full path to an existing compiler tool.
Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.
CMake Error at CMakeLists.txt:2 (project):
The CMAKE_CXX_COMPILER:
/mnt/z/Dev/dos-dev-template/tools/djgpp/bin/i586-pc-msdosdjgpp-g++

is not a full path to an existing compiler tool.
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
-- Configuring incomplete, errors occurred!
See also "/mnt/z/Dev/dos-dev-template/build/CMakeFiles/CMakeOutput.log".
See also "/mnt/z/Dev/dos-dev-template/build/CMakeFiles/CMakeError.log".
VSCode:
cmake --build build && Z:\dev\dos-dev-template/tools/dosbox-x/dosbox-x -conf Z:\dev\dos-dev-template/tools/dosbox-x.conf -fastlaunch -exit Z:\Dev\dos-dev-template\build\main.exe && exit
CMake is re-running because Z:/Dev/dos-dev-template/build/CMakeFiles/generate.stamp is out-of-date.
the file 'Z:/Dev/dos-dev-template/build/CMakeCache.txt'
is newer than 'Z:/Dev/dos-dev-template/build/CMakeFiles/generate.stamp.depend'
result='-1'
System is unknown to cmake, create:
Platform/linux-djgpp to use this system, please post your config file on discourse.cmake.org so it can be added to cmake
Your CMakeCache.txt file was copied to CopyOfCMakeCache.txt. Please post that file on discourse.cmake.org.
-- Configuring done
-- Generating done
-- Build files have been written to: Z:/Dev/dos-dev-template/build
[0/2] Re-checking globbed directories...
[2/3] Building C object CMakeFiles/main.dir/src/main.c.obj
FAILED: CMakeFiles/main.dir/src/main.c.obj
Z:\Dev\dos-dev-template\tools\djgpp\bin\i586-pc-msdosdjgpp-gcc.exe   -IZ:/Dev/dos-dev-template/tools/djgpp/i586-pc-msdosdjgpp/sys-include/ -O3 -DNDEBUG -MD -MT CMakeFiles/main.dir/src/main.c.obj -MF CMakeFiles\main.dir\src\main.c.obj.d -o CMakeFiles/main.dir/src/main.c.obj -c Z:/Dev/dos-dev-template/src/main.c
Z:/Dev/dos-dev-template/src/main.c: In function 'main':
Z:/Dev/dos-dev-template/src/main.c:23:33: warning: implicit declaration of function 'rand' [-Wimplicit-function-declaration]
23 |                         int x = rand() % 320;
  |                                 ^~~~

Z:/Dev/dos-dev-template/src/main.c:35:9: error: unknown type name 'FILE'
35 |         FILE *file = fopen("assets/test.txt", "r");
  |         ^~~~

[etc]
Debug does work though. It is just that release somehow refuses.
Summarized:

VSCode: Release build doesn't work, but debug does work
Git bash: Build doesn't work, I think it takes the wrong compiled
WSL: Doesn't work, I suppose I'm missing some kind of dependency

—
Reply to this email directly, view it on GitHub
https://github.com/badlogic/dos-dev-template/issues/1#issuecomment-1364061532,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAD5QBGAHH6HOSYKNDC5NITWOXDQDANCNFSM6AAAAAATHVX6XA
.
You are receiving this because you modified the open/close state.Message
ID: @.***>

I fixed the errors you got in your last log. Building in release mode will not include all of gdbstub.h, which pulls in the includes needed for the functions that are uknown in your last log.


Documentation

Adds documentation to README.md, describing the variables and  adding more detailed instructions.
Includes also changes from https://github.com/adelpopelkova/lenscalc/pull/17

Test results are the same with the code from the main branch as well as with the code from this branch:
There is one failing test with the following combination (on both branches):
----------------------------- Captured stdout call -----------------------------
D: 0.02223679991, 0.0312500000000000
n1: 1.0003, -0.0312500000000000
nL: 1.5, 0.468750000000000
n2: 1.0003, 0
CT: 3, -40.0000000000000
EFL: 44.9704995344359, 32.0000000000000


shutdown command got hung

Thanks for this nice project!
I've created the initrd and vmlinux file, and start the VM successfully! Then when I run shutdown command, it just got hung and not respond anymore. Do you have any idea?
1999/11/30 00:00:01 Welcome to u-root!
                              _
   _   _      _ __ ___   ___ | |_
  | | | |____| '__/ _ \ / _ \| __|
  | |_| |____| | | (_) | (_) | |_
   \__,_|    |_|  \___/ \___/ \__|

loading .bashrc started.
1999/11/30 00:00:01 ip: Link not found
1999/11/30 00:00:01 ip: Link not found
nohup: PID TTY            TIME CMD
appending output to 'nohup.out'
31 console    00:00:00 defaultsh
51 null       00:00:00 nohup
52 console    00:00:00 ps
loading .bashrc finished.
defaultsh-5.0# exit
exit
sh-5.0# shutdown
[ 1125.322811][   T60] reboot: System halted

Thanks for the comment.
I am glad you are interested in gokvm!
I've gotten other comments (e.g. #87 ) about shutdown, but haven't tackled it yet. But I think it's an important feature and I'd like to work on it.

Same as #87. Can be closed.


VAST 3 and ad pods

Hello,
Will the plugin work with VAST 3 format? I'm triying the demo at http://mailonline.github.io/videojs-vast-vpaid/index_4.html and I'm getting this error on the console:
AD ERROR: VAST Error: on VASTClient.getVASTAd.buildAd, error parsing xml VASTError {message: "VAST Error: on VASTClient.getVASTAd.buildAd, error parsing xml", code: 100} []
The xml is this: http://www8.smartadserver.com/ac?siteid=99082&pgid=645173&fmtid=40646&ab=1&tgt=&oc=1&out=vast&ps=2&pb=0&visit=S&vcn=s&tmstp=4653465465
Thank you

Hi yes  is works with most of the cases. Is not working with that one because there is an Error with parser not handling empty AdParameters.
<AdParameters xmlEncoded="true">
<![CDATA[ ]]>
</AdParameters>

I will try to fix it tomorrow


Update package naming to be org.opensearch.dataprepper from com.amazon.dataprepper

Is your feature request related to a problem? Please describe.
The project is in the opensearch project and the naming should likewise be adjusted.
Describe the solution you'd like
com.amazon will be replaced with org.opensearch in all files

You might find https://github.com/opensearch-project/opensearch-plugins/blob/main/UPGRADING.md#opensearch-plugins useful in case there's more than just namespace renaming.

As of now, the only remaining projects with the old com.amazon package are:

peer-forwarder
otel-metrics-source
otel-metrics-raw-processor

We are removing the peer-forwarder plugin so that should not be a problem.


Cyber Bullying classsification using NLP (BERT)

💥 Proposal
I want to make a model that classifies the emails into Cyber bullying category or not
the dataset i am gonna use is:-https://www.kaggle.com/datasets/priyanshusethi/cyber-bullying-dataset
I am gonna make this model using BERT
@khusheekapoor @theyashwanthsai
I am interested in doing this project
so kindly assign me this issue
Thank You : )

I want to make a model that classifies the emails into Cyber bullying category or not
the dataset i am gonna use is:-https://www.kaggle.com/datasets/priyanshusethi/cyber-bullying-dataset
I am gonna make this model using BERT
@khusheekapoor @theyashwanthsai
I am interested in doing this project
so kindly assign me this issue
Thank You : )

@lcs2022026 - you can go ahead! We are assigning you 21 days for this project, after which it will be assigned to someone else if not completed. All the best!
Name the file as: algorithm_dataset.ipynb and link it in the readme of the labeled directory as algorithm - dataset.

Hello I'm a GSSoC'23 Contributor. Please assign this issue to me if it is not closed yet!


add example grafana dashboard

I allowed myself to create an example Grafana dashboard making use of the metrics. What do you think? Do they make sense? Any other ideas what would make sense for such a dashboard?

I've included most of your feedback. I would like to add a table as suggested by you, but I'm still fighting with the grafana / prometheus queries for that ... not sure when I can contribute those and if you want to wait or pull in the suggested example dashboard at one point.

Codecov Report

Merging #14 (d48082b) into main (d766f9e) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #14   +/-   ##
=======================================
  Coverage   95.61%   95.61%
=======================================
  Files          23       23
  Lines         934      934
=======================================
  Hits          893      893
  Misses         41       41

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d766f9e...d48082b. Read the comment docs.


[vcpkg-docs] Better documentation for triplets

From https://github.com/Microsoft/vcpkg/pull/1111#issuecomment-302555645

Buildsystem Integration page could explain how to use non-default triplets.

From https://github.com/Microsoft/vcpkg/pull/1111#issuecomment-302627088

And how to change default triplet to something else

From https://github.com/Microsoft/vcpkg/pull/1111#issuecomment-304138759

I think should be also page about triplet recommended naming convention.
Something like that:
[architecture][-platform][-toolchain][-linkage][-stl][-no_exceptions][-no_rtti]

architecture: arm, x86, x64
platform: uwp, windows
toolchain: vc142, vc150
linkage: static
stl: md, mt
no_exceptions
no_rtti

for Android: https://developer.android.com/ndk/guides/standalone_toolchain.html
[architecture][-platform][-compiler][-linkage][-stl][-no_exceptions][-no_rtti]

architecture: x86, x86_64, armv7...
platform: android-13 (api level)
compiler: gcc-version
linkage: static
stl: gabi++_static, gabi++_shared, stlport_static, stlport_shared, gnustl_static, gnustl_shared, c++_static, c++_shared
no_exceptions
no_rtti

Additionally, we need to pull in the information from https://blogs.msdn.microsoft.com/vcblog/2016/11/01/vcpkg-updates-static-linking-is-now-available/

I've added a triplets page in 20af69aaf906940cd0e968e06de1167d7789202a which covers some of this.


feat: install_and_run_script (PEP 721)

See https://github.com/wntrblm/nox/issues/808#issuecomment-210613849. This makes using PEP 723 easier and more directly supported.

Looks good to me. :)


Bug fix loss func

previously the function was returning a loss of dimension [batch_size, 59, 59, 6], where 59, 59, 6 is the dimension of input image.
This is not the expected dimension for a custom TensorFlow loss function.
Now with a scalar return type, the model trains much better.

Also here an other exemple where this is not needed.
https://www.tensorflow.org/probability/examples/Probabilistic_Layers_VAE
I think what I don't understand is why you end up having the full tensor shape as output of the log_prob. There is probably a confusion between event shape and sample shape as explained in
https://www.tensorflow.org/probability/examples/Understanding_TensorFlow_Distributions_Shapes
Note that I am saying all these things without touching the code (don't have time right now) so I might completely by wrong.
@BastienArcelin want to comment ?

It's ok to do a sum or a mean.
Ultimately what changes is a constant for multiplication.
It's ok to do just a tf.math.mean() on the entire array, it's just that the coefficient of the kl divergence and probably the lr that needs to be updated accordingly.
You are right about the first example. It will work because the return type still has a dimension of [batch_size].
When you return something of the dimension [batch_size] TensorFlow implicitly performs the mean. (I have already checked that these are giving the exact same values for loss, but Junpeng told me to take the mean explicitly anyway so I did).
The problem arises when there are more dimensions to the loss.
I don't know the exact specifics here but If you refer to https://www.tensorflow.org/api_docs/python/tf/keras/losses/Loss
the return type has a different dimension from the input.
To avoid confusion I think it is better to stick to the scalar. It definitely works always.

Also here an other exemple where this is not needed. https://www.tensorflow.org/probability/examples/Probabilistic_Layers_VAE
I think what I don't understand is why you end up having the full tensor shape as output of the log_prob. There is probably a confusion between event shape and sample shape as explained in https://www.tensorflow.org/probability/examples/Understanding_TensorFlow_Distributions_Shapes
Note that I am saying all these things without touching the code (don't have time right now) so I might completely by wrong.
@BastienArcelin want to comment ?

The prediction is a distribution on each pixel and log prob gives pixel-wise log_prob here to the return type should have image dimension but I did not check it.

The prediction is a distribution on each pixel and log prob gives pixel-wise log_prob here to the return type should have image dimension but I did not check it.

Right I get it now, the sum turns the pixel-wise log_prob into a global one for the image and the mean averages over the batch. Makes sense. Then an explanation in the function could be nice, and maybe scalar added to the function name.

@aboucaud I added a description in the function docstring. Maybe we can merge this for now?


raftstore: fix TiKV delete files before ingesting

Signed-off-by: Little-Wallace<EMAIL_ADDRESS>
What problem does this PR solve?
Issue Number: close https://github.com/tikv/tikv/issues/10438
Problem Summary:
See issue
What is changed and how it works?
Proposal: xxx
What's Changed:
Check switchmode before deleting files
Related changes

PR to update pingcap/docs/pingcap/docs-cn:
PR to update pingcap/tidb-ansible:
Need to cherry-pick to the release branch

Check List
Tests

Manual test (add detailed scripts or steps below)

Side effects

Performance regression

Consumes more CPU
Consumes more MEM

Breaking backward compatibility

Release note

None

/merge

See the problem explain in #10438

/merge

/test

/test

/test

/test

/test

/test

/test


feat: add FREKVENS support

Added the LED matrix definition for the IKEA FREKVENS cube. Due to almost identical hardware, the project runs just as well on the Frekvens with an ESP32.
https://www.ikea.com/de/de/p/frekvens-multibeleuchtung-led-schwarz-30420354/

Did you also desolder the original chip as in the instructions here? Or can it be left in place after disconnecting the power from it?

Did you also desolder the original chip as in the instructions here? Or can it be left in place after disconnecting the power from it?

Yes - I removed the PCB containing the original controller.

there is a microphone in the FREKVENS.Its connected to the green PCB opposit to the VCC/GND SCR/CLK etc. pins.  I ASSUME the mic pin can go to a analog input of the ESP. Have you tried that ? What is the function of the red/white/black wires going to the SW1/SW2/COM pins on the green PCB? I guess these are the swiches. So SW1 -> GPIOx, SW2 -> GPIOy and COM ?

No need to answer my earlier questions. It's clear that SW1 and SW2 are the switches with a common pin which goes to GND (unfortunately that is the red cable). The mic needs a pre-amp which I added and connected the output of the pre-amp to a analog input of the ESP. Not yet sure what to do with it.
However, the FREKVENS addons to the original code works for me and could be merged from my point of view.


Create affinity map

Similar to the class example from 2/28

Quotes I found to create for affinity map
This is why we can’t just say, take out the trash. When you look at the list to teach there’s a lot to, taking out the trash, properly.
Everyone needs to take out the trash well. It’s a simple thing once you can do it but go to any college flat share and there are some suspect bins.
Each option has their pros and cons and by trial and error since this is a learning opportunity each family finds their level for each contribution.
Reconnect in a fun and meaningful way so that these contributions have the high expectation of success without the regular nagging and everyone has the chance to deliver because we all know what to do and are competent. Training.
Those four words your children should not be afraid to ask before a task: Show me how again.
http://growingnimblefamilies.com/contribution-magic-words
Those are some of the best memories that I have. My daughter and son I taught to wash clothes at age 9. It is just like teaching, they learn colors, what water temperature and measurements. I think the biggest thing is at 7 they can still see it as a game and not work. :)
Makes them feel good knowing that they can do something by themselves.
It makes them feel like they have their own little job to do everyday. It builds independents
https://www.care.com/c/questions/3288/are-things-like-helping-around-the-home-and-taking/
What I did was ask them how to make it so they do remember. This way it's not like I'm blaming them or forcing them into anything but I'm telling them that it's important to me that you DO remember. Since they're coming up with the solution, the onus is also more on them :/
How do you deal with a roommate who doesn't take out the ...https://forums.premed101.com › ... › The Lounge

Key traits:
Loved that the trash could be portable/easy-to-move
"I just roll our single can 70 meters from our garage to the street, once every two weeks."
Like to keep track of their chores/ remember what they have to do.
"What I did was ask them how to make it so they do remember"
Make it fun and entertaining.
"Those are some of the best memories that I have. My daughter and son I taught to wash clothes at age 9. It is just like teaching, they learn colors, what water temperature and measurements. I think the biggest thing is at 7 they can still see it as a game and not work. :)"
"Makes them feel good knowing that they can do something by themselves."
"This is why we can’t just say, take out the trash. When you look at the list to teach there’s a lot to, taking out the trash, properly. Imagine if your child followed these steps, taking out the trash would run a lot smoother in your home for everyone."
"Everyone needs to take out the trash well. It’s a simple thing once you can do it but go to any college flat share and there are some suspect bins."
"Each option has their pros and cons and by trial and error since this is a learning opportunity each family finds their level for each contribution."
"Reconnect in a fun and meaningful way so that these contributions have the high expectation of success without the regular nagging and everyone has the chance to deliver because we all know what to do and are competent. Training."

Key features to consider:

leadership board/ reminders to take it out.
^^ This could be done by either phone notifications or just a light that beeps to take it out
a leadership board to show when the participants took out trash last and any other scores we all
portable/ easy to move trashcan
a way to ensure it smells good
Easy for kids to pick up maybe. So not too big of a trash can.

Redo for key traits/ grouping
Those who don’t like doing chores
It's not that it's difficult, really, but it is pretty tedious. It also depends upon an individual's tolerance for clutter and/or filth. Traditionally, I'm pretty happy to live in a pile of books and papers, because that doesn't bother me, but I'm pretty fastidious about the kitchen and bathrooms because leaving those places out of order produces what is, to me, actual filth. I've met people who blow a gasket if their books are shelved incorrectly. It gets to a point where personal preference comes into it.
I think I hate housework because I'm not really producing anything, I'm just working to maintain a certain condition of my household.
I have 4 stepchildren whom we have full custody.. 17, 15, 14, 11 and I have a 2 1/2 month old..  They do to an extent but it's usually having to fight them to do it, which is mentally exhausting in and of itself. And I love all my kids to death which is why I do it…But like most people say there's no joy to it.
I, myself, hate to do housework, It’s boring and repetitive. So, instead, I pay a woman to come in every week to clean my place. She gets an additional bit of income, and I don’t have to bother. To me, that’s worth it.
Those who like doing chores
I love doing my household chores, specially cooking and cleaning. It gives me satisfaction and happiness. Being busy, I normally source out my cleaning task . During lockdown, I have only two jobs cleaning and cooking. I do out of my happiness. I can't breathe in messy house.
Housework is the ultimate in visible, concrete outcomes. You can see the change you made, and it’s so satisfying. So, for the most part, yes, I like doing housework.
Those who prefer doing chores alone
I’m a bit adhd so I start doing one thing then skip to another and pretty soon I’ve got quite a few things started but none finished. Yes the fix for it is speed which since I’m already in opiates they won’t give me speed obviously to get my mind right… So I’m probably better off alone so that nobody else gets all confused about what it is I’m doing. I have it all going right in my mind, but finishing what I started is hard!
 So I will wait until my husband is at work and my daughter is at school to do the housework.
Alone, headphones in my ears and listening to music that makes me want to move! The music motivates but also helps block out any distractions, both external and internal.
Those who prefer doing chores with assistance
Those are some of the best memories that I have. My daughter and son I taught to wash clothes at age 9. It is just like teaching, they learn colors, what water temperature and measurements. I think the biggest thing is at 7 they can still see it as a game and not work. :)
Those who like doing only some chores
I love laundry.  I stand at my bed and I fold everything carefully, placing it in drawers as I go. Then I wait. Then thirty minutes has passed, and I do it again. There’s something so comforting about laundry. Plus, I have clean clothes when I’m done, which is a tangible bonus.


Migrate unified account feature

Describe the task
Migrate unified account feature

BA doc: https://www.notion.so/subwallet/Master-acccount-d99f9e17956343e9a11cae981a2eadfa?pvs=4#74b7ff5ce07e46978226db507bbb6844
Design: https://www.figma.com/design/aEnkI859zkZaIpyzPidYwh/SubWallet-Apps?node-id=25402-294281&t=vqBRLw7MaMsrqaLS-4

Will resolve in https://github.com/Koniverse/SubWallet-Extension/issues/3926


⚠ Bofrost.lu has degraded performance

In 5aa6afb, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 2221 ms

Resolved: Bofrost.lu performance has improved in 73c87e6 after 13 minutes.


balena-yocto-scripts: Update to v1.17.x

@balena-ci I self-certify!

@resin-jenkins test this please


Translation for the page 'Hooks -> Using the Effect Hook'

Please help us translating this page in Italian!
Aiutaci a tradurre questa pagina in Italiano!
You can find all the details about how to help here: https://github.com/reactjs/it.reactjs.org/issues/1
GRAZIE! :smile:

Hey,
just submitted my PR #212
I'm open for any improvement :)


If user submits --filter-types as lowercase, just capitalize it or don't check it against REGEX

C:\Users\Root\Documents\GitHub\cfn-sweeper>cfn_sweeper --region ca-central-1 --filter-types AWS::EC2::instance
'AWS::EC2::instance'
Sorry - AWS::EC2::instance isnt supported just yet!
{}
C:\Users\Root\Documents\GitHub\cfn-sweeper>cfn_sweeper --region ca-central-1 --filter-types AWS::EC2::Instance

Closing - we decided to provide functionality to show supported resource types instead in #34 - this was both easier to implement, and given that CloudFormation itself is Case Sensitive, probably less confusing for the user


feat: support database.createCollection

I think it would be better to support database.createCollection

What is the difference between now?
This kinda seams unnecessary

@lucsoft db.createCollection(...) is not like db.collection(...). createCollection method is used to set extra configs to the collection (like schema validations)
https://www.mongodb.com/docs/manual/reference/command/create/


Messages that contain _ don't go to Telegram

wtf

Messages that start and end with _ turn to italics. Something to do with Markdown?

Markdown should be escaped before sending to Telegram. _ should be converted to \_ for example


Not working on WSL

For some reason, I can't get this to work on my Windows machine using Debian on WSL2. I'm not even too sure if the problem is related to WSL but I'm assuming as it works on macOS fine. Anyone know what it could be?
bsh ➡ fvm install stable
/usr/bin/env: ‘bash\r’: No such file or directory

@peterlobster not sure how to approach this can you run a —verbose, is it even running fvm?

@leoafarias Thanks for stepping in. Here's the output with --verbose...
bsh ➡ fvm install --verbose stable
[     0.014s] Version: stable - already installed.
/usr/bin/env: ‘bash\r’: No such file or directory

@peterlobster are you sure the create did not run? Can you do fvm --vebose flutter --version?

@leoafarias Yes, cause there are no output files created. Kinda, this is what I get back...
bsh ➡ fvm --verbose flutter --version
[     0.019s] Version: stable - already installed.
[     0.025s] Link is setup correctly
[     0.025s] fvm: running version "stable"

/usr/bin/env: ‘bash\r’: No such file or directory

@peterlobster I am not sure what could be happening, but I believe that when its Windows it looks for .bat file, which I don't think it would run.

@leoafarias Could it be that I'm interop'ing the FVM_HOME folder between FVM on Linux, Windows, and Sidekick on Windows?

I think that could be having different side effects but I am not sure. In theory by the time it hits this fvm:running version, it found the SDK, and its creating a process linking to it.
My first thought is that this line
// Extension per platform
String _binExt = Platform.isWindows ? '.bat' : '';

Might be giving problems since it thinks it is windows.
Any way you can clone the repo and install the fvm version locally to debug this?
You can just run
pub global activate --source path .

Once you inside the cloned fvm repo

@leoafarias Should I uninstall first? I installed it via brew.

@leoafarias Any word on what I should do?

I don’t to be honest. Did you try installing through pub? After uninstalling from brew?

For some reason, I can't get this to work on my Windows machine using Debian on WSL2. I'm not even too sure if the problem is related to WSL but I'm assuming as it works on macOS fine. Anyone know what it could be?
bsh ➡ fvm install stable
/usr/bin/env: ‘bash\r’: No such file or directory

@leoafarias  some error on macOS. (installed fvm with brew)

@kevindaizj not sure if this is an fvm error.. since the binary does not even run… do you have other packages from brew also running on that env?


Fixes NMS-254

Verify address is not null before obscuring it

ok to test

lgtm

grrr this testTargetFileGeneration failure is annoying

ok to test


Remove incorrect /dockershim alias

Update https://kubernetes.io/dockershim not to use an in-page redirect to https://kubernetes.io/zh/blog/2022/02/17/dockershim-faq/
This fixes up a previous, inadvertent mistake where the alias was retained during localization.
Fixup for PR #32342
/area blog
/language zh
/priority important-soon

/lgtm

/approve


Switched to generating the kubernetes json with java

Refer to this link for build results (access rights to CI server needed):
https://fabric8-ci.fusesource.com/job/fabric8-quickstarts-master-pullreq/559/
Test PASSed.


Add integrated support for capturing Oban errors

@whatyouhide Once this is released you should come by and add mention of it to the Oban docs 🙂

Hi @whatyouhide , thank you for this! I have custom instrumentation already and comparing it to the code from this PR it looks more straightforward. I wonder e.g. why did you decide not to use the stacktrace and other fields from meta which are exposed for error reporting purposes as Oban documents here? And would you care to explain in what scenarios the stacktrace could be empty and why it's important to fill it in with something?

@michallepicki there are details about why the stacktrace is empty and other tidbits in this article: https://getoban.pro/articles/enhancing-error-reporting


Using [self constaints] to find constaint

I dont find your modification except your re-indentation

Hi,
I marked the line with a comment. ;-)
sorry for all the indentations.... My Xcode does this...
BTW: Take a look at this category of UIView. Maybe you can use this as well ;-) https://github.com/dreyhomedev/UIView-DHNHideByConstraints

Thank you for this link, this category is great. I understand your modification but can you fix the demo project cause it's not works anymore

Sure, I'll try :-)


Update README.md to use files from release-4.7 branch

Right now it uses files from the master branch. This is wrong, we always want to use the files from the release-4.7 branch.

@jensfr really nit, would it make sense to change links to use sandboxed-containers-operator instead of kata-operator?

@jensfr really nit, would it make sense to change links to use sandboxed-containers-operator instead of kata-operator? (also in #102 )

yes, it would. I mean both works, but we should update it anyway. I'll change it. Thanks!


Meeting Minutes - Kick Off Meeting on Feb 24

Came up with team contract
Decided on the project topic:
Simple EDA
i.	Correlation maps (input: features to be correlated; output: correlation maps)  - Chuck
ii.	Exploratory Plots for numerical features( input: x, y, color/fill, title, size of text, color; output: altair/matplot objects (e.g. Scatter plots))   - Deepka
iii.	Exploratory Plots for categorical features (input: x, y, color/fill, title, size of text, color; output: altair/matplot objects (e.g. histogram or bar charts)   - Nick
Creating the project structure with cookiecutter and poetry  - Nick
Updating the documents: contributor.md, conduct.md, contributing.md  - Chuck
Manage project task via GitHub Project and Issues
Don't need to fork the repo, but branch out for each task

google doc link to team contract
https://docs.google.com/document/d/1rirPyw0br-bLzHrMu_FvFWfD2KojmIfpD-HE2Gk_ntc/edit?usp=sharing

Great teamwork!


Update package.json

Coverage remained the same at 98.883% when pulling d66f7c023120c1275f31e66d8ef3bce94b789c1b on wswebcreation-patch-1 into ee1d723677878ca6f63200cd0ef6b9e8a77e4774 on master.


Setup edge deployments to 'preflight' and 'live' balena environments

I setup two fleets in balena called 'preflight' (we can use this one to run integration tests, control releases etc) and 'live' (for customer and other important edge devices). These are managed through github environments. Like in zuuul, we need an explicit approval to deploy the live fleet. Talking through with Tyler, there are a few key next steps here:

Setting up integration tests through the preflight fleet.
Improve unit tests
Get live fleet into a state where we feel comfortable that it works without much manual intervention for our customers. This is where I'm most unclear about next steps.

Ok, missed the check in the pre-flight fleet, but now I'm still confused why we immediately push to the live fleet after pushing to the pre-flight fleet


Testing done for ID5 for Database functionality

Database functionality has been (or will be) added soon! While we might not be able to do the depth of testing we may currently want, it should probably be tested at least a decent amount to make sure it at least is in naively working order.
This may require looking into react-redux to do; here is a good (simple) guide on testing in react-redux:
https://redux.js.org/recipes/writingtests

Repurposed for ID5 because it was never closed.


Add is_interactable tag to MaterialTag

Adds support for the isInteractable() check on Materials. Summarizes notes and oddities as described here:
https://hub.spigotmc.org/stash/projects/SPIGOT/repos/bukkit/browse/src/main/java/org/bukkit/Material.java#8593-8609

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Add typed buffers to UnionArray (#3880)

Which issue does this PR close?

Part of #3880
Rationale for this change

It currently isn't possible to interact with a UnionArray's buffers in a type-safe way. This is at odds with the other array types, and causes issues migrating away from storing ArrayData under arrays.
What changes are included in this PR?

Are there any user-facing changes?
This changes the return type of UnionArray::value_offset to be correct

I'll review this today.


socket module not built when cross compiling with mingw

Compiling with latest mingw-w64 (GCC 7.2.0) from archlinux, the build runs but the socket module is not built: when imported from the interpreter it gives this error:
>>> import socket
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "Z:\home\woggioni\build\python-cmake-buildsystem\build\Lib\socket.py", line 47, in <module>
    import _socket
ImportError: No module named _socket

I managed to enable the socket module setting BUILTIN_SOCKET=ON in cmake cache, but stil I do not understand why this is not enbled by default, as it is when making a native build

To follow up on this, I suggest you perform  additional testing using the corresponding images maintained in dockcross. See https://github.com/dockcross/dockcross#summary-cross-compilers
Relevant images are the following:

Image name
Target arch
Compiler
Target OS
Description

dockcross/windows-shared-x86
x86
GCC
Windows
based on MXE/MinGW-w64 with win32 threads and dynamic linking.

dockcross/windows-shared-x64
x86_64
GCC
Windows
based on MXE/MinGW-w64 with win32 threads and dynamic linking.

dockcross/windows-shared-x64-posix
x86_64
GCC
Windows
based on MXE/MinGW-w64 with posix threads and dynamic linking.

dockcross/windows-static-x86
x86
GCC
Windows
based on MXE/MinGW-w64 with win32 threads and static linking.

dockcross/windows-static-x64
x86_64
GCC
Windows
based on MXE/MinGW-w64 with win32 threads and static linking.

dockcross/windows-static-x64-posix
x86_64
GCC
Windows
based on MXE/MinGW-w64 with posix threads and static linking.

It may also be sensible to update the CircleCI configuration to test using the image that makes the most sense base on your use case.


Export Emissions Module Automation Suite

https://github.com/US-EPA-CAMD/easey-testing/pull/282

Local test - exports same files as above ^
https://github.com/US-EPA-CAMD/easey-testing/pull/283


I can't use sh step on docker agent.

Jenkins : 2.102
Docker plugin : 1.1.2
Docker : 17.12.0-c3

[dood] Running shell script
sh: can't create<EMAIL_ADDRESS>nonexistent directory
sh: can't create<EMAIL_ADDRESS>nonexistent directory

Docker-workflow-plugin 1.15 is released.
After I update my jenkins, this issue is not occured.
Great!


DO NOT MERGE UNTIL 2.2.0 - Release documentation

Description
This commit includes the changes to the documentation for release 2.2.0.
Issues Resolved
This commit includes the changes to the documentation for Babelfish release 2.2.0 (community release 14.5).  The documentation includes a blog post, release notes, updates to the escape hatches page, an updated unsupported features page (specific to 2.2.0), and the supporting artifacts that make the content display on the website.
Check List

[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the BSD-3-Clause License.

I've pushed this PR at the command line, so am manually closing the PR...


setSortKey does not create an error message when key is too large

I use the setSortKey to only keep text labels for the largest places in a given tile or subpart of a tile.
My processFeatures function looks like this:
  @Override
  public void processFeature(SourceFeature sourceFeature, FeatureCollector features) {
    if (sourceFeature.isPoint() && sourceFeature.hasTag("wikidata") && sourceFeature.hasTag("name") && (sourceFeature.hasTag("place") || sourceFeature.hasTag("natural") || sourceFeature.hasTag("waterway", "waterfall")))
    {
      var feature = features.point("qrank");
      feature
        .setZoomRange(0, 14)
        .setSortKey(-getQRank(sourceFeature.getTag("wikidata")))
        .setPointLabelGridSizeAndLimit(
          12, // only limit at z_ and below
          128, // break the tile up into _x_ px squares
          5 // any only keep the _ nodes with lowest sort-key in each _px square
        )
        .setBufferPixelOverrides(ZoomFunction.maxZoom(12, 128))
        .setAttr("@qrank", getQRank(sourceFeature.getTag("wikidata")));
      for (var entry : sourceFeature.tags().entrySet()) {
        feature.setAttr(entry.getKey(), entry.getValue());
      }
    }
  }

This works really well in Switzerland where the QRanks are I think all below 2.4M or so. But for larger cities, the label gets dropped. For example, Milano is not included in the map:

https://wipfli.github.io/swiss-map/#map=8.78/45.5971/9.3084
I think this is because the QRank of Milano is 4402075 while the maximum allowed key is int SORT_KEY_MAX = 4194303.
From the source code, I would have expected to get an error message when I give a too large or a too small sort key, but I did not get any error message. Is this expected?
I think this is the relevant part of Planetiler:
    public Feature setSortKey(int sortKey) {
      assert sortKey >= FeatureGroup.SORT_KEY_MIN && sortKey <= FeatureGroup.SORT_KEY_MAX : "Sort key " + sortKey +
        " outside of allowed range [" + FeatureGroup.SORT_KEY_MIN + ", " + FeatureGroup.SORT_KEY_MAX + "]";
      this.sortKey = sortKey;
      return this;
    }

I've run into this as well. If there's not already some reference in the documentation (if there is I've missed it) maybe mentioning somewhere that -ea should be given to the JVM is a good idea.

What is -ea?

Thanks for the hint...

Thanks

yeah I use assert here so it throws when run from tests but has no runtime overhead. The original intended workflow here would be to have a unit test that exposes the issue (or at least run once with -ea to test), but do you think always logging a warning at runtime would be better?

Probably it is enough to highlight the -ea flag in the readme. Should I make a pull request?


Add return Result<Value, Error> for paired returns

Each completion with return of (value, error) should have a completion with the return of Result type

I think it'd be better to replace the existing functions rather than add the Result version as an additional overload. Having both is mostly just confusing for people getting started with the API.


failing on "gpg' install - ubuntu 16 node

Hi there!
The role installs the gpg module on debian-like machines, but it seems that for the ubuntu 16 it is the gnupg .
TASK [atosatto.docker-swarm : Install apt-transport-https and gpg if necessary.] ***********************
fatal: [worker01]: FAILED! => {"changed": false, "msg": "No package matching 'gpg' is available"}

Hi @fabianochagas do you have the gnupg package already installed on your boxes?
I am thinking that the only solution would be probably either to duplicate this task or to avoid installing gpg.

I might have found a workaround in #73 that will be part of a v2.2.0 release that I will be tagging as soon as the tests against master are green.
Thanks for reporting this issue!

Thanks a lot!


Fix EncodingError/DecodingError bridging to NSError

What's in this pull request?
Fixes bridging of these error types to NSError and LocalizedError. CustomNSError conformance only enables bridging for types which are declared in the same module as the conformance. Since we cannot use CustomNSError in the stdlib, we need to use other entry points to allow this bridging.

@swift-ci Please test macOS

@swift-ci Please smoke test macOS

@swift-ci Please smoke test Linux

Whoops, I just realized I'd pushed the wrong version of this. Rebasing and repushing momentarily.

Actually, going to reopen this as a new PR with a different set of changes.


GUI bug in Studio 2.3.0 when selecting a Connection

Bug Report
Steps to Reproduce:

Click the connection link of an established connection in the Studio GUI

Expected Result:
Access the connection configuration from the GUI by clicking on the left menu in the Studio GUI

Actual Result:
We get ejected from the session when clicking the established Connection in the studio GUI.
To access the connection, we need to go through the textual view.  This is manageable, as we don't need to access the connection configuration very much.  The main issue is that the mapping link is just underneath it and we click the wrong link time to time, with unpleasant outcome as we lose any work that wouldn't have been sync'ed.
Environment:
Studio  2.3.0
SDLC 0.64.1
Engine 2.52.2
Additional Context:
This issue didn't happen with the prior version that we were running (although it was an old one)

Thanks @pierrelamy! We will investigate and come back to you. I wasn't able to re-produce it just yet but will look into it further.

@pierrelamy  is this the issue on the connection with the username password authentication  ? This was fixed, we just need to do a release.

i.e. to test, you can use the SNAPSHOT Docker image of finos/legend-studio:snapshot

Thanks for addressing the issue.  We'll look to confirm that it has been fixed once we upgrade the version.

We updated to the Studio version 2.6.0 and confirmed that this issue has been addressed.  Thank you!


Issue: can't install kcc on (MX) Linux through pip even with the proper dependencies

So I just wanna quickly preface by saying I'm still pretty new to Linux, so the solution might be easier than I thought.
I want to install the PyPI version of KCC, but even when installing the right dependencies, I get this chunk of code:
$ pip install --user KindleComicConverter Collecting KindleComicConverter   Using cached https://files.pythonhosted.org/packages/c9/6e/4f505433628dbe45b38227ae8b388bf14cf1344824b938663ecaf97a8b97/KindleComicConverter-5.5.2.tar.gz Collecting PyQt5>=5.6.0 (from KindleComicConverter)   Could not find a version that satisfies the requirement PyQt5>=5.6.0 (from KindleComicConverter) (from versions: ) No matching distribution found for PyQt5>=5.6.0 (from KindleComicConverter)
And also, I noticed a problem when installing the second line of dependencies through pip:
$ pip3 install --user --upgrade pillow python-slugify psutil pyqt5 raven Collecting pillow   Using cached https://files.pythonhosted.org/packages/f5/79/b2d5695d1a931474fa68b68ec93bdf08ba9acbc4d6b3b628eb6aac81d11c/Pillow-7.0.0-cp37-cp37m-manylinux1_x86_64.whl Collecting python-slugify   Using cached https://files.pythonhosted.org/packages/92/5f/7b84a0bba8a0fdd50c046f8b57dcf179dc16237ad33446079b7c484de04c/python-slugify-4.0.0.tar.gz     Complete output from command python setup.py egg_info:     Traceback (most recent call last):       File "<string>", line 1, in <module>     ModuleNotFoundError: No module named 'setuptools'     ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-nm8qdu4w/python-slugify/
Any idea what I should do to get this working?

sudo apt install python3 python3-dev python3-pip libpng-dev libjpeg-dev p7zip-full
sudo -H pip3 install PyQt5==5.14.0
sudo -H pip3 install KindleComicConverter
The last version of PyQt5 dont install on debian based.

sudo apt install python3 python3-dev python3-pip libpng-dev libjpeg-dev p7zip-full
sudo -H pip3 install PyQt5==5.14.0
sudo -H pip3 install KindleComicConverter
The last version of PyQt5 dont install on debian based.

After running this commands u said I keep getting the same results.
Collecting KindleComicConverter
Using cached https://files.pythonhosted.org/packages/c9/6e/4f505433628dbe45b38227ae8b388bf14cf1344824b938663ecaf97a8b97/KindleComicConverter-5.5.2.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'setuptools'
----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-vhht859s/KindleComicConverter/

@Apollucas @alannssantos @PedePanoOriginal
is the problem still present with the last version?
some dependencies have been fixed and there is a new testPyPi
https://github.com/ciromattia/kcc/blob/master/README.md#pypi

flatpak is now the recommended version for linux
https://flathub.org/apps/details/io.github.ciromattia.kcc
reopen issue if needed


[ISSUE #7974] Add repeatedly read same offset log to find unexpected situations

Which Issue(s) This PR Fixes

Fixes #7974
Brief Description

How Did You Test This Change?

Codecov Report
Attention: Patch coverage is 70.00000% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 42.83%.  Consider uploading reports for the commit 442ed23 to get more accurate results

Files
Patch %
Lines

...etmq/tieredstore/core/MessageStoreFetcherImpl.java
62.50%
2 Missing and 1 partial :warning:

Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #7975      +/-   ##
=============================================
- Coverage      42.85%   42.83%   -0.03%
- Complexity     10353    10355       +2
=============================================
  Files           1270     1270
  Lines          88619    88627       +8
  Branches       11395    11396       +1
=============================================
- Hits           37975    37960      -15
- Misses         45962    45990      +28
+ Partials        4682     4677       -5

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Class function

Description

Replaced generateContrastColors, generateBaseScale, and generateAdaptiveTheme functions with new classes
Added classes Color, BackgroundColor, and Theme
Renamed fixColorVaue to convertColorValue since the function name did not match what it does.
Renamed binarySearch to getMatchingRatioIndex since the function is more than just a binary search and specific to finding a matching ratio's index
Enhanced getMatchingRatioIndex to find next highest contrast value for positive contrasts and next smallest value for negative contrasts.
Added tests for new classes
Updated tests to validate enhanced getMatchingRatioIndex returns optimal color value
Updated Colors tab in UI to work with new Classes

Motivation

1. Optimization
Class functions allow us to generate color scales only when necessary, such as when key colors or interpolation space change. Previously, these scales would regenerate when any parameter is changed. When using "smooth" interpolation, this dramatically slows down color output.
2. User experience
Class functions are a more approachable and understandable construct for the operation of Leonardo. This refactor could help to make the tool easier to use and document.
Example of new use case:
  // Define a background color as BackgroundColor
  let gray = new BackgroundColor({"name": 'gray', colorKeys: ['#cacaca', '#323232'], colorspace: 'HSL', ratios: [1, 1.2, 1.4, 2, 3, 4.5, 6, 8, 12, 21]});

  // Define each color scale as a Color
  let blue = new Color({"name": 'blue', colorKeys: ['#0000ff'], colorspace: 'LAB', ratios: [2, 3, 4.5, 8, 12]});
  let red = new Color({"name": 'red', colorKeys: ['#ff0000'], colorspace: 'RGB', ratios: [2, 3, 4.5, 8, 12]});

  // Define the adaptive theme as Theme
  let theme = new Theme({colors: [gray, blue, red], backgroundColor: gray, lightness: 90});

  // Use setters & getters to change or return values. For contrast colors (generated color values):
  let themeColors = theme.contrastColors;

Screenshots

To-do list

[ ] Need to update Themes tab in UI to work with new Classes

[x] I have read the CONTRIBUTING document.

[ ] This pull request is ready to merge.

Thank you @fedeci 👍


Roll engine 77c3512ec85e..141dc785dec9 (9 commits)

git@github.com:flutter/engine.git/compare/77c3512ec85e...141dc785dec9
git log 77c3512ec85e..141dc785dec9 --no-merges --oneline
2019-11-14<EMAIL_ADDRESS>Roll src/third_party/skia e57ca4931952..c1c4634dcb07 (15 commits) (flutter/engine#13866)
2019-11-14<EMAIL_ADDRESS>[flow][fuchsia] Add more tracing to layers and Fuchsia surface pool (flutter/engine#13864)
2019-11-14<EMAIL_ADDRESS>[fuchsia] Package flutter_frontend_server snapshot for fuchsia (flutter/engine#13865)
2019-11-14<EMAIL_ADDRESS>Guard against orphaned semantic objects from referencing dead accessibility bridge on iOS (flutter/engine#13857)
2019-11-14<EMAIL_ADDRESS>Fix test to account for pixel ratio transformations being framework responsibility. (flutter/engine#13850)
2019-11-14<EMAIL_ADDRESS>RendererContextSwitch guard flutter's gl context rework. (flutter/engine#13812)
2019-11-14<EMAIL_ADDRESS>Roll src/third_party/skia d860a78fd60c..e57ca4931952 (44 commits) (flutter/engine#13862)
2019-11-14<EMAIL_ADDRESS>Roll fuchsia/sdk/core/mac-amd64 from 7XOyl... to VMTIz... (flutter/engine#13861)
2019-11-14<EMAIL_ADDRESS>Roll src/third_party/dart dc35290111..dc808f3fcb (5 commits) (flutter/engine#13859)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

Trybots failed. These were the failed builds: https://cirrus-ci.com/task/6356589723779072

Commit queue failed; closing this roll.


Problem integrating node modules with webpack

React Boilerplate
Issue Type

[x ] Bug (https://github.com/react-boilerplate/react-boilerplate/blob/master/.github/CONTRIBUTING.md#bug-reports)

Description
I am having troubles implementing external bootstrap libraries with the react-boilerplate. This is potentially related to the webpack configuration but I can't find anything related in the documentation. I would recommend a guide to adding node_module extensions that need client-sided-inclusions.
Following Setup in the module:

Browser returns error that the require statement didn't return a function:

Steps to reproduce
npm install @sketchpixy/rubix --save
import { Button } from '@sketchpixy/rubix';
<Button></Button>

Versions

React-Boilerplate (see package.json): 3.4.0
Node/NPM: 4.1.2
Browser: Chrome

I appreciate insight into this issue.

Having exactly the same issue, because of that, I gave up on templates and went for UI frameworks. Semantic-ui seems really good and close to rubix theme that I've tried to use too.

Great to hear that I'm not alone. :) @Amurmurmur Can you send me a link?
I just got this to work by fixing the code and compiling rubix-bootstrap with the fixes. Great learning about this boilerplate aswell. Will share some insights tomorrow.

@nenti I would appreciate it so much, if you could unveil a solution on implementing a rubix template with this boilerplate 👍  :)

I quit the rubix path now because it was not as straight forward as  I need it to be for my project. Looking forward to finding any styled-component based admin template. There seems to be a gap in the reactt world for a sufficient solution right now.
The solution for me was to grab the rubix-boilerplate folder and fix the request frame issue described above by moving the import to the file heads with import requestFrame from 'request-frame';. Then you can build it and copy the dist folder to the node_modules folder of your project.
From here you can import the components from that module as shown in the rubix demo. After I tried to get the SideNav bar to work with react-boilerplate I gave up and went with plain semantic ui. Too much pain for too less outcome for my project.

@nenti
Thank you very much for the explanation.
Even from your workaround it sounds dramatically hard, and as I said, I just did exactly what you did, I switched to a UI framework such as Semantic-ui, and gave up on templates. xD
👍

Hello,
A new version of @sketchpixy/rubix is available to fix this issue.


contentPadding affect the alignment of dropdown as well

The content padding also affect the alignment dropdown list and inkwell with this content padding set. I would like to give some left padding to the error text but it affect the dropdown also
DropdownButtonFormField2<String>(
  decoration: InputDecoration(
    isDense: true,
    contentPadding: EdgeInsets.only(left: 25),
  ),
  ...

You cannot give padding to the error text individually as the widget responsible for rendering the error string is InputDecorator. It's a Flutter related issue, you cannot do that with DropdownButton or TextFormField too.
You've 2 solutions:

Use a hacky solution by returning error string in your validator as: return '           ' + 'error text';
Make a custom error widget.

Hope that helps.


How to use the reverse proxy

Hello,
i'm trying to understand how to use the reverse proxy but i didn't quite get it.
Can you help me and explain how to use it ?

I just recently added this to the readme: https://github.com/davenuman/bowline#docker-subnet-proxy-for-nice-urls
Does that aswer your question?
One thing I just thought of is that it assumes you don't have anything using port 80. Running invoke_proxy will fail if you already have something on port 80 docker or otherwise.

Hello dave,
I indeed followed those instructions but i don't understand how to use it. I mean, I've the following containers running:
301a199039bd        proxy_dnsmasq:latest               "/usr/sbin/dnsmasq -   12 hours ago        Up 12 hours         53/tcp              proxy_dnsmasq_1
2b1e6640b833        davenuman/bowline-web-php:latest   "/start.sh"            12 hours ago        Up 12 hours         80/tcp              ristorantidrupal_web_1
aa88ebef53b0        mysql:5.5                          "/entrypoint.sh mysq   12 hours ago        Up 12 hours         3306/tcp            ristorantidrupal_db_1

No nginx. Furthermore, i don't see how to use the domain name in my pc to access the container instead of using the ip directly. Is there something i need to configure on my pc to use the dnsmasq in order to resolve projectname.localtest.me?

projectname.localtest.me should resolve to <IP_ADDRESS> and the nginx docker container should be using port 80 on your localhost.
When I do docker ps | grep proxy i see this:
790e4b8bb157        nginx:latest                       "nginx -g 'daemon of   2 days ago          Up 2 days           443/tcp, <IP_ADDRESS>:80->80/tcp     proxy_nginx_1
485c08dba5a1        proxy_dnsmasq:latest               "/usr/sbin/dnsmasq -   2 days ago          Up 2 days           53/tcp                          proxy_dnsmasq_1

If nginx isn't running check the logs with docker logs proxy_nginx_1. I think the likely reason is that port 80 is already in use so it quits. Another way to check is to restart and see if there are helpful error message:
fig -f lib/proxy/fig.yml stop
fig -f lib/proxy/fig.yml start

If you do have something on port 80 (LAMP or MAMP, etc) then either stop that service or edit the lib/proxy/fig.yml file and change 80:80 to 8080:80 or such and try again.

ps. if you do edit the lib/proxy/fig.yml file then the url projectname.localtest.me:8080 or whatever port you set in the config.


Build(deps-dev): Bump @types/styled-components from 5.1.23 to 5.1.24 (#2954)

Pull request opened by the merge tool on behalf of #2954

Processing this pull request


[Nginx ingress controller] Downtime of service exposed via Ingress while doing upgrade.

Test System:

Baremetal CoreOS
Network: Flannel
K8s 1.4.6
nginx-ingress-controller:0.8.3

Steps to reproduce
create a Deployment consisting of a simple service like a bare nginx
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: weather-app
spec:
  replicas: 3
  strategy:
    rollingUpdate:
      maxSurge: 1
      maxUnavailable: 1
  template:
    metadata:
      labels:
        app: weather-app
        track: stable
        attempt: "1"
    spec:
      containers:
      - name: weather-app
        lifecycle:
            preStop:
                exec:
                    command: ["/usr/sbin/nginx","-s","quit"]
        image: nginx:latest
        ports:
        - containerPort: 80
        imagePullPolicy: Always
        readinessProbe:
          httpGet:
            path: /
            port: 80
          failureThreshold: 3
          successThreshold: 1
          periodSeconds: 5
          timeoutSeconds: 1
          initialDelaySeconds: 0
        livenessProbe:
          httpGet:
            path: /
            port: 80
          failureThreshold: 3
          successThreshold: 1
          periodSeconds: 10
          timeoutSeconds: 1
          initialDelaySeconds: 15

Service
apiVersion: v1
kind: Service
metadata:
  labels:
    app: weather-app
  name: weather-app
  namespace: k8-demo
  clusterIP: <IP_ADDRESS>
  ports:
  - port: 80
    protocol: TCP
    targetPort: 80
  selector:
    app: weather-app
  sessionAffinity: None
  type: ClusterIP

Ingress Resource
apiVersion: v1
items:
- apiVersion: extensions/v1beta1
  kind: Ingress
  metadata:
    name: weather-demo
    namespace: k8-demo
  spec:
    rules:
    - host: weather-demo.internal.ch
      http:
        paths:
        - backend:
            serviceName: weather-app
            servicePort: 80
          path: /

Perform update by simply increasing the attempt  label, and kubectl apply -f deploy.yaml
while in a terminal fetching the NGINX web page every second with watch -n "curl http://weather-demo.internal.ch"
Expected results
The Deployment is updated with no downtime
Actual results

New pods are created
Old pods are deleted once new ones have Running state
New pods answer
URL returns a 504 Error from NGINX resource controller for a few seconds
Service reestablished.

If at the same time I expose the service via NodePort and curl there, the service is always available.

I believe a fix for this can be found at https://github.com/kubernetes/ingress/issues/322#issuecomment-298016539

I'm seeing exactly the same thing,  I set
< replicas: 3 and >
< maxSurge: 3  maxUnavailable: 0 >


Feature Request: Weekly Note Template & Set Location

First off, thanks for a great plugin. Just noticing the weekly note option in the command dialog so I tried it out.
I have a weekly note template in my _Templates folder that I'd like to use for the "Open Weekly Note" command. I also have a weekly note folder located at Personal/Weekly Notes so it would be great to set the location of these autogenerated noted.
If #36 was also implemented then it would be great to do a Daily Note one and folks could simply use this plugin in place of the vanilla Obsidian one.

whoops, figured it out via readme :)

whoops, figured it out via readme :)


peerDependencies

In your tutorial you include react, react-dom, and styled-components in both "dependencies" and "peerDependencies". With npm 6.4.1 (at least), this seems to have the side effect of installing all 3 without warning the consuming app of unmet dependencies. Maybe worth clarifying in the tutorial.

Thanks for reporting! I'll leave this open until I patch the course accordingly.


CVE-2023-6378 found from security team scans

We're a customer of Axways (I'm having to comment from my personal account), and we were reviewing use of yamles-utils in our container to setup CICD.
We've been notified after building with the latest version of this source that vuln CVE-2023-6378 was found pertaining to logback.  It's noted that this only applies if using receivers, and I'm not 100% sure how to validate this package does or does not use them.  Is there any way we could get some info on whether this package is actually vulnerable, or if we can provide something to our security team to note it's safe to use?
If it helps, it looks like it's pinging off of "ch.qos.logback/logback-core 1.3.7, and ch.qos.logback/logback-classic 1.3.7"

The logback-classic library is used for the KeePass plugin only. If you don't need the plugin, just disable it the module from the build process.
Nevertheless, the receiver component is not used by tool.
I'll provide a new version with updated dependencies.


feat: add timezonedb 2023.4 release

update timezonedb with release 2023.4

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


problem in getting it work

Hello there sir, I installed your script on my server , and everything seems to be fine
the only problem is when i open the OpenVPN and connect via my server
the ip of my computer still the same , not mention that I have another server from another company come with the openvpn installed and it’s work just fine .

Run the following commands in your server and paste the output:
cat /etc/rc.local
ifconfig
Run again the iptables command present on your /etc/rc.local file. Does it throw any error?
Please, also paste the client connection log.

#!/bin/sh -e
iptables -t nat -A POSTROUTING -s <IP_ADDRESS>/24 -j SNAT --to <IP_ADDRESS>
iptables -t nat -A PREROUTING -p udp -d <IP_ADDRESS> --dport 53 -j REDIRECT --to-port 1194

rc.local

This script is executed at the end of each multiuser runlevel.
Make sure that the script will "exit 0" on success or any other
value on error.

In order to enable or disable this script just change the execution
bits.

I see you are using the system as a remote desktop on Ubuntu... could you be using some firewall by any chance? Take a look at https://github.com/Nyr/openvpn-install/pull/25, for example.
This looks like a problem with your custom setup and not with the script. As the readme specifies, this script is designed to be used on a clean system and it's impossible to support each custom configuration or firewall out there, I can't help any further.
Just so you know: I am personally using this script on Debian with one of my Online.net servers, so it's not a problem with the provider.
Good luck.

im using the server as seedbox , and ubuntu desktop environment
so what do i have to do , so i can make the script work with mine .
and is it work as http proxy too ?

I don't know what exact your setup is. I can only say it works on a default Ubuntu/Debian install. If you are using a fiewall, you would need to add exceptions, but again I don't know much about your setup.
An HTTP proxy has nothing to do with a VPN. You can tunnel HTTP connections using OpenVPN and this script, if that's what you want.

okay sir, im gonna buy a vps from the company you listed on your post.
and i will install it , and feed you back on the matter
thank you sir.


python setup.py install error

python setup.py install
error in cudarray setup command: CUDA back-end wants to be able to remove cudarray.cudarray_wrap, but the distribution doesn't contain any packages or modules under cudarray.cudarray_wrap
How to solve, thank you very much

I update the setup.py. Now another problem is ：
“”running build_ext
building 'cudarray.numpy_backend.nnet.conv_bc01' extension
gcc -std=gnu99 -fno-strict-aliasing -g -O2 -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/lib/python2.7/site-packages/numpy/core/include -I/usr/local/include/python2.7 -c cudarray/numpy_backend/nnet/conv_bc01.c -o build/temp.linux-x86_64-2.7/cudarray/numpy_backend/nnet/conv_bc01.o
gcc: cudarray/numpy_backend/nnet/conv_bc01.c: No such file or directory
“”
I am not familiar with cpython and I indeed could not find cudarray/numpy_backend/nnet/conv_bc01.c. Is the conv_bc01.c generated by compling the code at the first step "make"?
The version of cython is 0.22 Python version: 2.7

conv_bc01.c gets generated by the call to cythonize().
Regarding your initial problem: You might need to call sudo python setup.py install because you are trying to install to system directories. Alternatively, you could perform a user install.

Thanks for your quick reply, I will try your method.
If I want to code my own c++ cuda function for some special cases, how can I embed the c++ cuda function into python routine, Need I to learn cython first? could u give quick guide?
thank you

You need to 1) implement your CUDA functionality, 2) wrap the functionality in Cython and 3) expose it to Python using cudarray.ndarray objects.

thank u

Hi  andersbll
sorry to bother you again,  I try to install it today again, but another problem is
"
Traceback (most recent call last):
File "setup.py", line 5, in
import numpy
File "/usr/local/lib/python2.7/site-packages/numpy/init.py", line 153, in
from . import add_newdocs
File "/usr/local/lib/python2.7/site-packages/numpy/add_newdocs.py", line 13, in
from numpy.lib import add_newdoc
File "/usr/local/lib/python2.7/site-packages/numpy/lib/init.py", line 18, in
from .polynomial import *
File "/usr/local/lib/python2.7/site-packages/numpy/lib/polynomial.py", line 19, in
from numpy.linalg import eigvals, lstsq, inv
File "/usr/local/lib/python2.7/site-packages/numpy/linalg/init.py", line 50, in
from .linalg import *
File "/usr/local/lib/python2.7/site-packages/numpy/linalg/linalg.py", line 29, in
from numpy.linalg import lapack_lite, _umath_linalg
ImportError: libmkl_rt.so: cannot open shared object file: No such file or directory
"
PS:
The numpy(1.8) used on my machine was complied with MKL and it worked.  I also set the enviroment var path for MKL LIB.

Sorry, can't help you with that.

OK, thank you all the same.
By the way, does cudarray support selection as follows："
row_select_index=[0,2,3,10,0],gp_A is a garray with a shape(M,N)
gp_A[row_select_index]
？


Abstract type cleanup

This cleans up the code at src/composition/abstract_types.jl to make it more resilient to additions to the abstract type Model hierarchy at MLJModelInterface.
Builds on https://github.com/JuliaAI/MLJModelInterface.jl/pull/107

Codecov Report

Merging #605 (b040dab) into dev (a202a68) will increase coverage by 0.02%.
The diff coverage is 33.33%.

@@            Coverage Diff             @@
##              dev     #605      +/-   ##
==========================================
+ Coverage   86.00%   86.02%   +0.02%
==========================================
  Files          37       37
  Lines        3200     3192       -8
==========================================
- Hits         2752     2746       -6
+ Misses        448      446       -2

Impacted Files
Coverage Δ

src/composition/models/methods.jl
57.44% <0.00%> (ø)

src/composition/abstract_types.jl
40.00% <40.00%> (-21.54%)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a202a68...b040dab. Read the comment docs.


e2e tests for atomic bridge

After the BlockchainService has been implemented, its time to complete the e2e tests. Test that a succesful swap occurs from Eth -> Movement and that the correct moveth is minted. Make sure to write test cases for cases where expect the bridge to revert.
For these e2e tests it makes sense for us to use the CLI and call the contract methods directly with the CLI.

Integrated https://github.com/movementlabsxyz/movement/pull/297


Update circle win orb and increase machine size

Fixes WB-NNNN
Fixes #NNNN
Description
What does the PR do?
Testing
How was this PR tested?
Checklist

Name PR "[WB-NNNN][WB-MMMM] Add support for..." similar to entries in CHANGELOG.md
Include reference to internal ticket "Fixes WB-NNNN" (and github issue "Fixes #NNNN" if applicable)

not needed for now


snowflake-snowpark-python 1.15.0

snowflake-snowpark-python 1.15.0
Destination channel: defaults
Links

PKG-4602
dev_url (pypi): https://github.com/snowflakedb/snowpark-python/tree/v1.15.0
conda-forge: https://github.com/conda-forge/snowflake-snowpark-python-feedstock/blob/main/recipe/meta.yaml
pypi: https://pypi.org/project/snowflake-snowpark-python/1.15.0

Explanation of changes:

bump version

Linter check found the following problems:
ERROR conda.cli.main_run:execute(124): `conda run conda-lint /tmp/abs_b4nwl1gqim/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:32: python_build_tool_in_run: The python build tool setuptools is in run depends
===== Final Report: =====
0 Errors and 1 Warning were found


Adding a campign migration example

Note: Pls focus on Step0 and Step5, the remaining examples share the functionality.

LGTM


NeRFshop-like feature

Is it possible to integrate the "editable" feature to the studio viewer?

It's possible, but we would rely on the community to help integrate this feature.


Add JSON-edit-action

Github action for editing a json file.
https://github.com/deef0000dragon1/json-edit-action

@deef0000dragon1 thank you for your contribution!


chore: add SfBadge component

Scope of work
Finish SfBadge Component
Screenshots of visual changes

supports different types and full-width via CSS modifier
Checklist

[x] I followed composition rules for my component
[x] I tested the component in most common device sizes (can be tested in Storybook from viewport addon in top menu)

Hey, thank you. One thing that differs from design is badge size. It;s 160px on designs (10rem). I guess this should be a min-width with proper padding.
Full width option should be achievable through SCSS modifier

Hey, thank you. One thing that differs from design is badge size. It;s 160px on designs (10rem). I guess this should be a min-width with proper padding.
Full width option should be achievable through SCSS modifier

Ok. This is what I confused if min-width should be set. The SfAlert component is without min-width.

Those examples might be helpful for you @decadef20  (Product Listing on the left)
https://www.figma.com/file/hrwE3VsMBHgdJoS86rVr4W/Desktop-%26-Mobile-Vue-Storefront?node-id=99%3A0

Those examples might be helpful for you @decadef20 (Product Listing on the left)
https://www.figma.com/file/hrwE3VsMBHgdJoS86rVr4W/Desktop-%26-Mobile-Vue-Storefront?node-id=99%3A0

Should we take the small size which displayed on the product list into consideration?

It confuses me too so I will ask our designer about intentions

Ok i have the answer. It shouldn't have fixed width. Her initial idea looked like this:

but then she changed to what I posted before so the badge should have only a padding, not fixed width.
Sorry for confusion. If you want I can merge it in and correct by myself

Ok i have the answer. It shouldn't have fixed width. Her initial idea looked like this:

but then she changed to what I posted before so the badge should have only a padding, not fixed width.
Sorry for confusion. If you want I can merge it in and correct by myself

Feel free to correct me If I do it wrong.

Thank you, it's perfect now ;)

One thing that is missing is description and installation guide in stories -> could you please add them?

It works well in my local preview.
There are both description and usage.
@filrak


[ExpansionPanel] Expand icon button calls onChange twice per click

The expand icon button calls the onChange function twice per click.
It was tripping me up when I was trying to perform an action when the panel was expanded (and only wanted the action performed once).
Expected Behavior
Should only call onChange once (i.e. when the state of the panel changes).
Current Behavior
Calls it twice per state change (ONLY when the expanded button is clicked - it calls only once when the summary section is clicked, which is inconsistent). Upsets things when trying to perform an action based on a state change (ends up doing it twice). Can be worked around by maintaining a local instance variable and comparing with the provided expanded parameter.
onExpandChange = (event, expanded) => {
  if (expanded && expanded != this.prevExpanded) {
    // Call server and do other stuff
  }
  this.prevExpanded = expanded;
}

Steps to Reproduce (for bugs)
Example of behavior (to show double call):
CodeSandbox Example Link

When ExpansionPanelSummary is included, it also uses the provided onChange handler, so it will be called twice in your example.  The bug in your example is that you aren't considering the second parameter that is passed to the onChange handler: expanded
See this fork of your codesandbox
In your example, you were toggling a class instance variable whenever it was called.  The updated example has modified toggleExpand (and the button's click handler) so that the expanded parameter, which comes from the internal state of the component, is used to update your state.

@kgregory  Thanks. The example I provided with the class instance variable was only to catch the double call. I have edited my initial post to explain a little more accurately why it is a problem.
The double call is a little counter intuitive (and I can't think of any situation where it would make sense - even the Controlled Accordion demo doesn't seem to need it). Everything behaves as expected if all you are doing is handling something keyed off the expanded parameter value, but not if you are doing something that is acting upon a state transition. i.e. if I do a server call when the component is expanded, I'll end up calling it twice. Of course I could maintain a class instance variable (as I did above) and do a comparison to avoid the double up, but it seems a little unnecessary and unexpected.
Maybe some note in a docs/demo might help others?

You’re right, it shouldn’t call twice.  Reopening.

@kgregory Thanks again. What led me down this path was another problem I was trying to debug. I've finally managed to replicate it in codesandbox. The problem seems to be if I set the expanded prop with a variable that isn't a component state, the expanded prop is updated with the correct value, but the panel doesn't respond (even though it is definitely re-rendered). I had a quick look using the React debug tools and I can see the prop being updated, but the internal expanded state of the component is not being changed.
You can check it out here.
The situation I am encountering this (in my code) is where I have wrapped the component and am passing the expanded property down via props (like a HoC).
I wondered if it may have been related to this issue. If not, should I create another thread?

@hivemind9000 you’re initializing this.exp to undefined

The issue comes from the fact that we listen twice to the onClick event. I don't think that it's needed. Worse, it's introducing unexpected behavior. We can simply remove this line:
https://github.com/mui-org/material-ui/blob/fd7facc447dea934704be92d208e6268a48c9d02/src/ExpansionPanel/ExpansionPanelSummary.js#L137

@kgregory Interesting, I didn't realize the isControlled flag was only set in the componentWillMount phase. I can see it does that also in SwitchBase and Tooltip, but not in Input. Input allows control to be switched from internal to external at any stage of the component lifecycle. Instead of being an instance variable, it's a method that accepts props as a parameter (which default to this.props if not provided).
isControlled(props = this.props) {
  return hasValue(props.value);
}

This is really a question for you and @oliviertassinari - what is considered best practice? It would be good to have a consistent approach (which could be noted in the documentation eventually). My preference is the approach in the input component, as it otherwise can trip up the developer who doesn't know about how this framework approaches controlled components. Unless there's a serious downside to changing control after instantiation (looking through the code I couldn't see one).
My case is a little unique as I'm building a development framework on top of react and material-ui that enables apps to be built without JavaScript (using a high-level declarative expression language instead). My problem is that some of the "variables" used in expressions may not be initialized by the user prior to the component being instantiated, leading to this unexpected behavior (as there's no feedback in the console log). I can try and catch it somehow, but would prefer "it just works"... 👍

@hivemind9000 I agree with you.  Input uses the preferred pattern.

I will try to make some time for this issue tonight.

@kgregory Thank you. To be noted, the PR only fix:

Expand icon button calls onChange twice per click

I think that you surfaced an interesting inconsistency issue regarding the controlled behavior of the Input component.


Add 90% ES CPU alarms to the list of those disabled for the data refresh

Description

Presently, we disable the Elasticsearch 50% CPU alarm during the course of the data refresh process. Since #4683, the data refresh has also been tripping the Elasticsearch 90% CPU alarm as well. We should add this to the list of alarms which get disabled. Specifically:
https://github.com/WordPress/openverse/blob/d500b7764c411f7d228ae12c57dce519c8709610/catalog/dags/common/cloudwatch.py#L73-L72
We should add another enable_alarm_actions call for ES Prod CPU utilization above 90%.

@WordPress/openverse-maintainers
Is the fix for this issue just adding
cw_wrapper.enable_alarm_actions("ES Production CPU utilization above 90%", enable)
after
cw_wrapper.enable_alarm_actions("ES Production CPU utilization above 50%", enable)?

Hey @coson-lu! That's correct.

@WordPress/openverse-maintainers
I can work on this issue.


Fix panic in array_agg(distinct) query

Which issue does this PR close?

Closes #10486 .
Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

Thanks @alamb !


Client: real-time syntax highlighting

GitHub Gists offers syntax highlighting inferred from the filename while modifying the text in the editor, which leads to a considerably nicer experience compared to having a separate tab for previews. Only when the filename ends in .md, do they render the preview tab.
Perhaps implementing something similar should be considered for this project as well. I realize this would not be trivial, as the syntax highlighting seems to take place on the server side at the moment.

This happens now, try changing the filename (markdown is implied)


Make Database<>::ScanEntries const.

Shamelessly stolen from #777, which I couldn't bear to see so complex. :wink:

Like a thief in the night, stealing yer pillows.

PRESSING GREEN BUTTONS ON MY PR, MAKING ME LOOK MESSY! :wink:

It's morally mine, and you're on holiday anyway.
Just wait 'til you see what I've done to your desk.

I'm only partially on holiday. And now I'm a bit worried about my desk... :smiley:


CSS Grid Layout Supporting?

Is this a bug report?
No, Information request
I heard about CSS Grid Layout "Display: grid" So I wonder if React Native will support it?
Thanks

@facebook-github-bot no-template

I found that it is a feature request so I added to requests here
https://react-native.canny.io/feature-requests/p/css-grid-layout-supporting