Unable to build using mingw on Windows

Using #140, with mingw8, conan and Windows 10, the following errors appear:

Errors when compiling using mingw on Windows
C:/Users/maarten/source/repos/seasocks/src/main/c/seasocks/StringUtil.h:28:10: fatal error: netinet/in.h: No such file or directory
 #include <netinet/in.h>
          ^~~~~~~~~~~~~~
Scanning dependencies of target embedded
In file included from C:\Users\maarten\source\repos\seasocks\src\main\c\StringUtil.cpp:26:
C:\Users\maarten\source\repos\seasocks\src\main\c\seasocks/StringUtil.h:28:10: fatal error: netinet/in.h: No such file or directory
 #include <netinet/in.h>
          ^~~~~~~~~~~~~~
mingw32-make.exe[2]: *** [seasocks\src\main\c\CMakeFiles\seasocks_obj.dir\build.make:306: seasocks/src/main/c/CMakeFiles/seasocks_obj.dir/util/CrackedUri.cpp.obj] Error 1
mingw32-make.exe[2]: *** Waiting for unfinished jobs....
mingw32-make.exe[2]: *** [seasocks\src\main\c\CMakeFiles\seasocks_obj.dir\build.make:292: seasocks/src/main/c/CMakeFiles/seasocks_obj.dir/StringUtil.cpp.obj] Error 1
In file included from C:\Users\maarten\source\repos\seasocks\src\main\c\StringUtil.cpp:26:
C:\Users\maarten\source\repos\seasocks\src\main\c\seasocks/StringUtil.h:28:10: fatal error: netinet/in.h: No such file or directory
 #include <netinet/in.h>
          ^~~~~~~~~~~~~~
mingw32-make.exe[2]: *** [seasocks\src\main\c\CMakeFiles\seasocks_pic_obj.dir\build.make:292: seasocks/src/main/c/CMakeFiles/seasocks_pic_obj.dir/StringUtil.cpp.obj] Error 1
mingw32-make.exe[2]: *** Waiting for unfinished jobs....
C:\Users\maarten\source\repos\seasocks\src\main\c\HybiAccept.cpp:31:10: fatal error: arpa/inet.h: No such file or directory
 #include <arpa/inet.h>
          ^~~~~~~~~~~~~
C:\Users\maarten\source\repos\seasocks\src\main\c\HybiAccept.cpp:31:10: fatal error: arpa/inet.h: No such file or directory
 #include <arpa/inet.h>
          ^~~~~~~~~~~~~
In file included from C:\Users\maarten\source\repos\seasocks\src\main\c\util\CrackedUri.cpp:26:
C:/Users/maarten/source/repos/seasocks/src/main/c/seasocks/StringUtil.h:28:10: fatal error: netinet/in.h: No such file or directory
 #include <netinet/in.h>
          ^~~~~~~~~~~~~~
mingw32-make.exe[2]: *** [seasocks\src\main\c\CMakeFiles\seasocks_pic_obj.dir\build.make:96: seasocks/src/main/c/CMakeFiles/seasocks_pic_obj.dir/HybiAccept.cpp.obj] Error 1
mingw32-make.exe[2]: *** [seasocks\src\main\c\CMakeFiles\seasocks_obj.dir\build.make:96: seasocks/src/main/c/CMakeFiles/seasocks_obj.dir/HybiAccept.cpp.obj] Error 1
mingw32-make.exe[2]: *** [seasocks\src\main\c\CMakeFiles\seasocks_pic_obj.dir\build.make:306: seasocks/src/main/c/CMakeFiles/seasocks_pic_obj.dir/util/CrackedUri.cpp.obj] Error 1
C:\Users\maarten\source\repos\seasocks\src\main\c\HybiPacketDecoder.cpp:29:10: fatal error: arpa/inet.h: No such file or directory
 #include <arpa/inet.h>
          ^~~~~~~~~~~~~
In file included from C:\Users\maarten\source\repos\seasocks\src\main\c\seasocks\SynchronousResponse.cpp:28:
C:/Users/maarten/source/repos/seasocks/src/main/c/seasocks/StringUtil.h:28:10: fatal error: netinet/in.h: No such file or directory
 #include <netinet/in.h>
          ^~~~~~~~~~~~~~
In file included from C:\Users\maarten\source\repos\seasocks\src\main\c\internal/PageRequest.h:29,
                 from C:\Users\maarten\source\repos\seasocks\src\main\c\PageRequest.cpp:26:
C:/Users/maarten/source/repos/seasocks/src/main/c/seasocks/Request.h:30:10: fatal error: netinet/in.h: No such file or directory
 #include <netinet/in.h>
          ^~~~~~~~~~~~~~
In file included from C:/Users/maarten/source/repos/seasocks/src/main/c/seasocks/util/CrackedUriPageHandler.h:28,
                 from C:/Users/maarten/source/repos/seasocks/src/main/c/seasocks/util/PathHandler.h:28,
                 from C:\Users\maarten\source\repos\seasocks\src\main\c\util\PathHandler.cpp:26:
C:/Users/maarten/source/repos/seasocks/src/main/c/seasocks/Request.h:30:10: fatal error: netinet/in.h: No such file or directory
 #include <netinet/in.h>
          ^~~~~~~~~~~~~~
In file included from C:/Users/maarten/source/repos/seasocks/src/main/c/seasocks/WebSocket.h:28,
                 from C:\Users\maarten\source\repos\seasocks\src\main\c\seasocks/Connection.h:29,
                 from C:\Users\maarten\source\repos\seasocks\src\main\c\Server.cpp:29:
C:/Users/maarten/source/repos/seasocks/src/main/c/seasocks/Request.h:30:10: fatal error: netinet/in.h: No such file or directory
 #include <netinet/in.h>
          ^~~~~~~~~~~~~~
In file included from C:\Users\maarten\source\repos\seasocks\src\main\c\seasocks\SynchronousResponse.cpp:28:
C:/Users/maarten/source/repos/seasocks/src/main/c/seasocks/StringUtil.h:28:10: fatal error: netinet/in.h: No such file or directory
 #include <netinet/in.h>
          ^~~~~~~~~~~~~~
In file included from C:/Users/maarten/source/repos/seasocks/src/main/c/seasocks/WebSocket.h:28,
                 from C:\Users\maarten\source\repos\seasocks\src\main\c\seasocks/Connection.h:29,
                 from C:\Users\maarten\source\repos\seasocks\src\main\c\Server.cpp:29:
C:/Users/maarten/source/repos/seasocks/src/main/c/seasocks/Request.h:30:10: fatal error: netinet/in.h: No such file or directory
 #include <netinet/in.h>
          ^~~~~~~~~~~~~~
In file included from C:\Users\maarten\source\repos\seasocks\src\main\c\seasocks\StreamingResponse.cpp:28:
C:/Users/maarten/source/repos/seasocks/src/main/c/seasocks/StringUtil.h:28:10: fatal error: netinet/in.h: No such file or directory
 #include <netinet/in.h>
          ^~~~~~~~~~~~~~
C:\Users\maarten\source\repos\seasocks\src\main\c\HybiPacketDecoder.cpp:29:10: fatal error: arpa/inet.h: No such file or directory
 #include <arpa/inet.h>
          ^~~~~~~~~~~~~
In file included from C:\Users\maarten\source\repos\seasocks\src\main\c\seasocks\StreamingResponse.cpp:28:
C:/Users/maarten/source/repos/seasocks/src/main/c/seasocks/StringUtil.h:28:10: fatal error: netinet/in.h: No such file or directory
 #include <netinet/in.h>
          ^~~~~~~~~~~~~~
In file included from C:\Users\maarten\source\repos\seasocks\src\main\c\internal/PageRequest.h:29,
                 from C:\Users\maarten\source\repos\seasocks\src\main\c\PageRequest.cpp:26:
C:/Users/maarten/source/repos/seasocks/src/main/c/seasocks/Request.h:30:10: fatal error: netinet/in.h: No such file or directory
 #include <netinet/in.h>
          ^~~~~~~~~~~~~~
In file included from C:\Users\maarten\source\repos\seasocks\src\main\c\seasocks\Request.cpp:26:
C:/Users/maarten/source/repos/seasocks/src/main/c/seasocks/Request.h:30:10: fatal error: netinet/in.h: No such file or directory
 #include <netinet/in.h>
          ^~~~~~~~~~~~~~
In file included from C:\Users\maarten\source\repos\seasocks\src\main\c\internal/PageRequest.h:29,
                 from C:\Users\maarten\source\repos\seasocks\src\main\c\Connection.cpp:32:
C:/Users/maarten/source/repos/seasocks/src/main/c/seasocks/Request.h:30:10: fatal error: netinet/in.h: No such file or directory
 #include <netinet/in.h>
          ^~~~~~~~~~~~~~
In file included from C:\Users\maarten\source\repos\seasocks\src\main\c\internal/PageRequest.h:29,
                 from C:\Users\maarten\source\repos\seasocks\src\main\c\Connection.cpp:32:
C:/Users/maarten/source/repos/seasocks/src/main/c/seasocks/Request.h:30:10: fatal error: netinet/in.h: No such file or directory
 #include <netinet/in.h>
          ^~~~~~~~~~~~~~
In file included from C:\Users\maarten\source\repos\seasocks\src\main\c\seasocks\Request.cpp:26:
C:/Users/maarten/source/repos/seasocks/src/main/c/seasocks/Request.h:30:10: fatal error: netinet/in.h: No such file or directory
 #include <netinet/in.h>
          ^~~~~~~~~~~~~~
In file included from C:/Users/maarten/source/repos/seasocks/src/main/c/seasocks/util/CrackedUriPageHandler.h:28,
                 from C:/Users/maarten/source/repos/seasocks/src/main/c/seasocks/util/RootPageHandler.h:29,
                 from C:\Users\maarten\source\repos\seasocks\src\main\c\util\RootPageHandler.cpp:26:
C:/Users/maarten/source/repos/seasocks/src/main/c/seasocks/Request.h:30:10: fatal error: netinet/in.h: No such file or directory
 #include <netinet/in.h>
          ^~~~~~~~~~~~~~
In file included from C:/Users/maarten/source/repos/seasocks/src/main/c/seasocks/util/CrackedUriPageHandler.h:28,
                 from C:/Users/maarten/source/repos/seasocks/src/main/c/seasocks/util/PathHandler.h:28,
                 from C:\Users\maarten\source\repos\seasocks\src\main\c\util\PathHandler.cpp:26:
C:/Users/maarten/source/repos/seasocks/src/main/c/seasocks/Request.h:30:10: fatal error: netinet/in.h: No such file or directory
 #include <netinet/in.h>
          ^~~~~~~~~~~~~~
In file included from C:/Users/maarten/source/repos/seasocks/src/main/c/seasocks/util/CrackedUriPageHandler.h:28,
                 from C:/Users/maarten/source/repos/seasocks/src/main/c/seasocks/util/RootPageHandler.h:29,
                 from C:\Users\maarten\source\repos\seasocks\src\main\c\util\RootPageHandler.cpp:26:
C:/Users/maarten/source/repos/seasocks/src/main/c/seasocks/Request.h:30:10: fatal error: netinet/in.h: No such file or directory
 #include <netinet/in.h>
          ^~~~~~~~~~~~~~

It seems Mingw doesn't provide netinet/in.h:

https://stackoverflow.com/questions/1517762/sockets-in-mingw
https://stackoverflow.com/questions/4638604/where-does-one-get-the-sys-socket-h-header-source-file

Closing; we're really only targeting Linux (with some very minor affordances for other UNIX-like OSes). If you get mingw working, we'd accept patches for it, but it's not a goal right now. Thanks.


Post-tension-cables component in GH

Component to construct and deconstruct post-tension cables in GH.
Input
Shape
Used to define PTC shape by base and inflection points.
It should be possible to define a PTC from a nurbs curve if base point tangent and inflection points can be extracted from the nurbs curve.
Customer is ok with shape input as in FEM-Design.
Would be nice with shape from nurbs though...
Manufacturing
Used for export of points for manufacturing/assembly.
FEM-Design GUI will generate the points based on a supplied list of params along the PTC. There could be a manufacturing input with a default list of parameters start = 0, step  = some value, end = 1. If the user wants to define bespoke parameters they can supply another list with start = 0, step  = some other value, end = 1

C# prototype with example script implemented.
Branch: https://github.com/strusoft/femdesign-api/tree/78-Post-tension-cables .
https://github.com/strusoft/femdesign-api/blob/01b15c9341060f6284290a9a7b815938157cfebd/FemDesign.Samples/C%23/SampleProgram.CreatePostTensionedCable.cs#L33-L78

Let's go with that. When we can set up the GH node graph to create the PTC we can better understand how the user-experience feels.
When we have a working node graph we can give it to the user, that requested the feature, for feedback.

🦗 Grasshopper prototype.
Branch: https://github.com/strusoft/femdesign-api/tree/78-Post-tension-cables .
Example: FemDesign.Samples\Grasshopper folder

Looks really nice!
I'll let the customer give us some feedback on this.

PTC cable for shell element

Don´t know at the moment. Will have a look tomorrow. Should this be fixed before closing 20.2.0?

Reinforcement.PtcShapeType This might have to be broken into subcomponents
Ok I've had a look at it. If we are doing Inflection places we should extract the PtcShapeInner (points, tangents and inflectionplace) to a separate GH component.

In that case I suggest we change the current:

To instead look/function like this:

This also better reflects how they are defined in the FEM-Design GUI:

The drawback is that we might have to check that the input is valid (no more than 1 Inflection place between 2 Base points etc.)

Remaining:

[ ] Consistent casing
[ ] Dynamo components (this could be a new case)
[ ] Deconstruct components (this could be a new case)
[ ] Icons


VIPER flow submission not implemented

The CreateSubmission and CanCreateSubmissionFromFormat functions are not implemented in benchmark_viper.py, so creating submission archives for VIPER is not possible using the devkit.

I'll add it to the devkit. In the meantime, have a look at the viper toolkit, specifically https://github.com/srrichter/viper/blob/master/prepare_submission.py


POC for removing gray overlays on ios

Fixes #1970

Tested on iOS simulator, seems to work as expected :)

LGTM. thanks for the fix!

Confirmed Android has similar highlight behavior with mouse events; pending update to add similar treatment for Android Chrome.

I don't know if this CSS helps:

{ -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }

@MarkDurbin104 the android issue is actually only caused by cursor: pointer. Then the webkit-tap-highlight-color trick is necessary to remove the highlight.

Reviewed, LGTM.


e2e plugin install specs are failing

This seems like a legit bug, as fixed in #2462
$ docker-compose run --rm -e DEBUG_KOMMANDO=true test rspec ./spec/features/plugin/install_spec.rb

plugin install
    *   Installing plugin aws .. |Called 'load' without the :safe option -- defaulting to safe mode.
You can avoid this warning in the future by setting the SafeYAML::OPTIONS[:default_mode] option (to :safe or :unsafe).
    *   Installing plugin aws .. /Gem::InstallError : invalid gem: package is corrupt, exception while verifying: YAML data doesn't evaluate to gem specification (Gem::Exception) in /root/.kontena/gems/2.3.3/cache/kontena-cli-1.3.0.gem
 [fail] Installing plugin aws
NAME  VERSION  DESCRIPTION
    *   Uninstalling plugin aws .. \RuntimeError : Plugin aws not installed
 [fail] Uninstalling plugin aws
  installs a plugin (FAILED - 1)
    *   Installing plugin aws .. /Called 'load' without the :safe option -- defaulting to safe mode.
You can avoid this warning in the future by setting the SafeYAML::OPTIONS[:default_mode] option (to :safe or :unsafe).
    *   Installing plugin aws .. -Gem::InstallError : invalid gem: package is corrupt, exception while verifying: YAML data doesn't evaluate to gem specification (Gem::Exception) in /root/.kontena/gems/2.3.3/cache/kontena-cli-1.3.0.gem
 [fail] Installing plugin aws
NAME  VERSION  DESCRIPTION
    *   Uninstalling plugin aws .. \RuntimeError : Plugin aws not installed
 [fail] Uninstalling plugin aws
  attempts to upgrade a plugin (FAILED - 2)

Failures:

  1) plugin install installs a plugin
     Failure/Error: expect(k.out).to match(/aws/)

       expected "\e[1mNAME\e[0m  \e[1mVERSION\e[0m  \e[1mDESCRIPTION\e[0m\r\n" to match /aws/
       Diff:
       @@ -1,2 +1,2 @@
       -/aws/
       +NAME  VERSION  DESCRIPTION

     # ./spec/features/plugin/install_spec.rb:12:in `block (2 levels) in <top (required)>'

  2) plugin install attempts to upgrade a plugin
     Failure/Error: expect(k.out).to match(/aws/)

       expected "\e[1mNAME\e[0m  \e[1mVERSION\e[0m  \e[1mDESCRIPTION\e[0m\r\n" to match /aws/
       Diff:
       @@ -1,2 +1,2 @@
       -/aws/
       +NAME  VERSION  DESCRIPTION

     # ./spec/features/plugin/install_spec.rb:19:in `block (2 levels) in <top (required)>'

Finished in 15.06 seconds (files took 0.20769 seconds to load)
2 examples, 2 failures

Failed examples:

rspec ./spec/features/plugin/install_spec.rb:8 # plugin install installs a plugin
rspec ./spec/features/plugin/install_spec.rb:15 # plugin install attempts to upgrade a plugin

Also, it looks like the kontena plugin install command does not exit with a non-zero code on plugin install errors, or the spec would have failed earlier:
/kontena/test # kontena plugin install aws && echo yay it worked
    *   Installing plugin aws .. /Called 'load' without the :safe option -- defaulting to safe mode.
You can avoid this warning in the future by setting the SafeYAML::OPTIONS[:default_mode] option (to :safe or :unsafe).
/Gem::InstallError : invalid gem: package is corrupt, exception while verifying: YAML data doesn't evaluate to gem specification (Gem::Exception) in /root/.kontena/gems/2.3.3/cache/kontena-cli-1.3.0.gem
 [fail] Installing plugin aws
yay it worked

Passing now with 1.3.1 fixes in #2462
plugin install
  installs a plugin
  attempts to upgrade a plugin


Fix Critical Security Vulnerability Caused by Circom Operator Misuse

Dear crema-labs team,
I am a web3 developer who recently came across your project while searching for an open-source AES implementation in Circom. Your project impressively implements the functionality of AES algorithm and CTR mode with clean, concise code that is easy to use. We appreciate your generosity in contributing this work to the open-source community under the MIT license.
However, we have identified some misuses of Circom syntax that lead to significant security vulnerabilities. In Circom, the --> and ==> operations are distinctly different. The latter combines --> with ===. The --> operation indicates how an honest prover should compute intermediate and output signals from input signals, while === adds corresponding constraints to the underlying R1CS system, ensuring that only inputs satisfying these constraints can pass zero-knowledge proof verification.
Therefore, most Circom code uses ==> for assignments to ensure the logic is encoded into the underlying R1CS system. The rare uses of --> include the Num2Bits template in circomlib's bitify.circom, where binary expansion computation is more complex than result verification due to R1CS limitations. Since R1CS (rank-1 constraint system, the underlying constraint system of Circom) only supports addition and multiplication in large prime fields, computing binary expansion is more difficult than verifying the expansion result. Binary expansion computation requires bitwise operations, which are not supported by the R1CS, while verifying the expansion result can be done using only multiplication and addition. Therefore, this template uses --> to compute the binary expansion, and checks the expansion result through the last line lc1 === in.
In your code, --> is used in some places without output verification, such as in SBox calculations. This allows malicious provers to arbitrarily specify SBox output results without detection by the zero-knowledge proof system. This is also why, when running yarn compile:test, it encounter numerous warnings such as
warning[CA01]: In template "SBox128()": Local signal out does not appear in any constraint.

This occurs because your code only specifies the behavior for an honest prover, without adding constraints to restrict a malicious prover from providing incorrect inputs.
We have reviewed all uses of --> in your code and made the following fixes:

Convert the round parameter to a template parameter, ensuring it's a compile-time constant rather than a signal (which malicious provers cannot modify).

Reimplement SBox and TBox using finite field operations instead of lookup tables, which are costly in R1CS. We've implemented basic GF(2^8) operations in finite_field.circom. For the finite field multiplication inversion operation (required for SBox calculation), we first find the inverse element through a lookup table, then perform finite field multiplication (which is much cheaper than finite field division).

Add overflow checks for IV+Nonce addition in GenerateCounterBlocks, supporting full 16-byte carry (instead of just the least significant 4 bytes).

Add input validation to EncryptCTR function, ensuring all signals are uint8 integers, preventing malicious provers from inputting out-of-range values.

We've applied and tested these modifications in our project. We're offering these changes to enhance your code's security and reliability.
These fixes increase non-linear constraints from 17,088 to 54,608 in cipher_4.circom compilation. This increase is due to the inclusion of computational checks for the heaviest operations, which were previously omitted.
We look forward to your feedback and would be happy to discuss these changes further.
Best regards,
Bruno

Hi Bruno,
Thank you for your review and the changes you shared! We appreciate your effort in improving the security of our code. We’ll reviewed your suggestions and are keen on merging them into the project soon


Add packaging

Hi,
I was looking at the parser and testing performance in an existing project environment, so I added configuration to package the code as a python package. Please take a look.
Regards,
Alex

Hi Alex,
Sorry I let this hang so long, I've been on leave and occupied with other things recently and am getting back into things just now.
I actually started building this into a PyPi package before taking leave, and intend to finish that work first just for my personal learning experience. However, your packaging /setup.cfg seem very robust, and I'd be happy to merge in this request once I've finished experimenting on my own. Hopefully I will be able to cycle back to this quickly. Thanks for your interest!
Anthony C.


Update mt.split to support list and tuple

What do these changes do?
update mt.split to support list and tuple as first argument
Related issue number
#1506

IMO, This PR covers the first part of #1506 , right?

IMO, This PR covers the first part of #1506 , right?

yes, only first part of #1506

Flake8 test failed, please remove the line
from operator import concat

which is not used.

The autoimport extension in vscode adds the unused imports

The autoimport extension in vscode adds the unused imports

Sigh... We mainly use pycharm for development.

The autoimport extension in vscode adds the unused imports

Sigh... We mainly use pycharm for development.

vscode is a good editor for me because i have to handle many other languages

Since the second part of #1506 is not actually a bug, but instead by design, we can close the issue after this PR, what do you think @YoshieraHuang ?

Since the second part of #1506 is not actually a bug, but instead by design, we can close the issue after this PR, what do you think @YoshieraHuang ?

OK, we can close the issue after this PR. Thank you for your help.

Since the second part of #1506 is not actually a bug, but instead by design, we can close the issue after this PR, what do you think @YoshieraHuang ?

OK, we can close the issue after this PR. Thank you for your help.

OK, I will edit the information so that it will close related issue after merged.


[Wallet] Tweak android emulator for speed

Description
Double the amount of RAM, disable audio, reduce screen resolution in order to reduce memory usage and speed up e2e tests.
We started seeing some out of memory errors when running the react packager. Also the emulator runs very slowly so thinking that more memory might help, especially since the CI machine has 8GB and we were only using 2GB.
Other changes
Describe any minor or "drive-by" changes here.
Tested
e2e
Related issues

Fixes #[issue number here]

Backwards compatibility
Brief explanation of why these changes are/are not backwards compatible.

Great find! These changes look really promising

Thanks! Let's see if they help. The tests now take roughly 45 mins and with this change it looks closer to 30 mins and hopefully fewer out of memory flakiness.


errors when running data plane unit tests on MacOS

Describe the bug
errors when running data plane unit tests on MacOS from main branch
Expected behavior
no errors when running data plane unit tests on MacOS from main branch
To Reproduce
Steps to reproduce the behavior.
Follow https://github.com/knative-sandbox/eventing-kafka-broker/blob/main/DEVELOPMENT.md#run-unit-tests
tested with
git rev-parse HEAD
329f504c6a83a6072c09859b47c4744919ea02c1

git branch --show-current
main

uname -a
Darwin m 21.4.0 Darwin Kernel Version 21.4.0: Fri Mar 18 00:45:05 PDT 2022; root:xnu-8020.101.4~15/RELEASE_X86_64 x86_64

java -version
openjdk version "17.0.3" 2022-04-19
OpenJDK Runtime Environment Homebrew (build 17.0.3+0)
OpenJDK 64-Bit Server VM Homebrew (build 17.0.3+0, mixed mode, sharing)

Running ./hack/run.sh unit-tests-data-plane  detailed output log in gist
https://gist.github.com/aslom/b6fa78664f4ab3b239722ed878c1c94c
Reported errors:
...
[ERROR] Tests run: 115, Failures: 0, Errors: 1, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for data-plane 1.0-SNAPSHOT:
[INFO]
[INFO] data-plane ......................................... SUCCESS [ 15.717 s]
[INFO] contract ........................................... SUCCESS [  0.486 s]
[INFO] core ............................................... FAILURE [ 50.188 s]
[INFO] receiver ........................................... SKIPPED
[INFO] dispatcher ......................................... SKIPPED
[INFO] benchmarks ......................................... SKIPPED
[INFO] tests .............................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:06 min
[INFO] Finished at: 2022-05-02T15:38:50-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project core: There are test failures.
[ERROR]

Knative release version
1.4
Additional context
Add any other context about the problem here such as proposed priority
Tested main branch

@aavarghese @pierDipi @matzew  maybe you have seen errors like that? do I miss something in setup for https://github.com/knative-sandbox/eventing-kafka-broker/blob/main/DEVELOPMENT.md#run-unit-tests ?

I tried with JDK15
java -version
openjdk version "15.0.2" 2021-01-19
OpenJDK Runtime Environment AdoptOpenJDK (build 15.0.2+7)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 15.0.2+7, mixed mode, sharing)

got the same errors
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR]   FileWatcherTest.shouldReceiveUpdatesOnUpdate » Timeout shouldReceiveUpdatesOnU...
[INFO]
[ERROR] Tests run: 115, Failures: 0, Errors: 1, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for data-plane 1.0-SNAPSHOT:
[INFO]
[INFO] data-plane ......................................... SUCCESS [ 11.565 s]
[INFO] contract ........................................... SUCCESS [  0.615 s]
[INFO] core ............................................... FAILURE [ 51.638 s]
[INFO] receiver ........................................... SKIPPED
[INFO] dispatcher ......................................... SKIPPED
[INFO] benchmarks ......................................... SKIPPED
[INFO] tests .............................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:03 min
[INFO] Finished at: 2022-05-03T10:05:10-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project core: There are test failures.
[ERROR]

Full output https://gist.github.com/aslom/6b4e926ace515c30f042544b52b55cae

I could find only one place FileWatcherTest.shouldReceiveUpdatesOnUpdate error mentioned
https://github.com/knative-sandbox/eventing-kafka-broker/pull/212#issuecomment-698210271


feat: decouple conformance failure from pytest failure (WIP)

This is a WIP PR implementing the remainder of #127  by decoupling conformance failures, i.e., whether or not a system under test has the expected behavior with respect to Substrait, from pytest/CI failures.
The PR depends on and, therefor, currently includes #133, #135, #136, #137, #138, and #140.

Hurray! CI passes for the first time ever 🚀

Now that all of the dependent PRs have been merged is it time to review?


Handle blank arguments on function call response

Sometime OpenAI returns empty string as an arguments to a function that has no parameters.
This PR aims to gracefully handle those cases by swapping blank arguments string with json for empty object.

@onhachoe Check out the error in the build

@sashirestela Just saw this, pushed a commit that fixes it.

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 95.26%. Comparing base (f8b29c9) to head (68cfbd3).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #166      +/-   ##
============================================
+ Coverage     95.24%   95.26%   +0.01%
- Complexity      136      137       +1
============================================
  Files            52       52
  Lines           610      612       +2
  Branches         26       27       +1
============================================
+ Hits            581      583       +2
  Misses           17       17
  Partials         12       12

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


Timing-driven FPGA Placement enabled

we have enabled timing-driven FPGA placement in AMF-Placer2 and it will be released publicly in Oct 2022.

The source code is under modularization for better reading, and it will be push to this repo before Oct 25th


Added link to Vuecasts in the menu and guide

Inspired by Laravel a link to Jeffrey Way's tutorials will be the best resource for anyone who wants to start learning Vue.

@kazupon wait what? One will first land up on the vuejs 's website to learn Vue and not on the awesome Vue list , many even don't know that list exists but everyone knows vuejs.org for sure. Also the tutorials by Jeff are definitely the best one , a really great alrenative to the docs. @yyx990803 your thoughts?

First, thanks for the PR.
The dropdown only contains links that are officially associated with the Vue team (except jobs, which we have a partnership with). I agree that Jeffrey's casts are excellent, but they are after all 3rd party. I'm hesitant about designating it as "the best" - I'd rather let learners explore all available ones.

@yyx990803 thank you for taking the time and responding! Also, since JS frameworks can be learned better by seeing things in action so a visual guide alternative to the textual guide would be the best for people like me starting with Vue (I am definitely not alone) for whom the docs are a bit overwhelming and Jeff comes to the rescue there. To the people I refer Laravel , when they go the docs and see the Laracast alrenative in the docs they immediately fell in love with Laravel seeing the guide/docs actually give you the every best guidance possible. Still since you are the one making final calls so it's up to you, no issues here :)
PS: I disagree on the term 'third party' here.


created egs/marybp

Hello - creating pull request...

Testing push mybranch on marybp/minicourse.

Testing ...


KeyError in unbind_shortcut with outdated settings.yaml

🐛 Bug
In working on a PR, I removed some of the shortcuts in default_shortcuts, which caused an error right here in the ActionManager:
https://github.com/napari/napari/blob/b37a1e2de01052b8d840ebda491965aede077091/napari/utils/action_manager.py#L349
not sure what the best approach is here.  could just catch the KeyError and move on (which solves the crash I had) but don't know if there's perhaps a way to cleanup the settings.yaml as well?
cc @Carreau

I'm not to sure, I can't reproduce even with an empty default_shortcuts, do you have a traceback ?

I'm sorry (that was a poor bug report) ...

        Returns
        -------

        shortcut: str | None
            previously bound shortcut.
        """
>       action = self._actions[name]
E       KeyError: 'napari:also_select_layer_above'

napari/utils/action_manager.py:349: KeyError

Following the instructions above, I don't get any fails:
╰─ pytest napari/_qt/_tests/test_qt_viewer.py -x                 (napari-dev) ─╯
============================= test session starts ==============================
platform darwin -- Python 3.10.10, pytest-7.3.1, pluggy-1.0.0
PyQt5 5.15.7 -- Qt runtime 5.15.8 -- Qt compiled 5.15.6
rootdir: /Users/piotrsobolewski/Dev/napari
configfile: pyproject.toml
plugins: hypothesis-6.75.1, qt-4.2.0, napari-plugin-engine-0.2.0, napari-0.5.0a2.dev109+gd91f4ee5, cov-4.0.0, npe2-0.7.1.dev24+g31e8b32, pretty-1.2.0
collected 50 items

napari/_qt/_tests/test_qt_viewer.py ...s.......................s.....sss [ 72%]
.........s....                                                           [100%]

=============================== warnings summary ===============================
napari/_qt/_tests/test_qt_viewer.py::test_qt_viewer
  /Users/piotrsobolewski/Dev/miniforge3/envs/napari-dev/lib/python3.10/site-packages/jupyter_client/connect.py:20: DeprecationWarning: Jupyter is migrating its paths to use standard platformdirs
  given by the platformdirs library.  To remove this warning and
  see the appropriate new directories, set the environment variable
  `JUPYTER_PLATFORM_DIRS=1` and then run `jupyter --paths`.
  The use of platformdirs will be the default in `jupyter_core` v6
    from jupyter_core.paths import jupyter_data_dir, jupyter_runtime_dir, secure_write

napari/_qt/_tests/test_qt_viewer.py::test_qt_viewer
  /Users/piotrsobolewski/Dev/miniforge3/envs/napari-dev/lib/python3.10/site-packages/qtconsole/client.py:12: DeprecationWarning: zmq.eventloop.ioloop is deprecated in pyzmq 17. pyzmq now works with default tornado and asyncio eventloops.
    from zmq.eventloop import ioloop, zmqstream

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
============================= slowest 10 durations =============================
1.29s call     napari/_qt/_tests/test_qt_viewer.py::test_qt_viewer_clipboard_with_flash
0.86s call     napari/_qt/_tests/test_qt_viewer.py::test_qt_viewer
0.81s call     napari/_qt/_tests/test_qt_viewer.py::test_screenshot
0.63s call     napari/_qt/_tests/test_qt_viewer.py::test_new_labels
0.63s call     napari/_qt/_tests/test_qt_viewer.py::test_new_points
0.62s call     napari/_qt/_tests/test_qt_viewer.py::test_new_shapes_empty_viewer
0.58s call     napari/_qt/_tests/test_qt_viewer.py::test_z_order_adding_removing_images
0.44s setup    napari/_qt/_tests/test_qt_viewer.py::test_qt_viewer
0.40s call     napari/_qt/_tests/test_qt_viewer.py::test_points_layer_display_correct_slice_on_scale
0.40s call     napari/_qt/_tests/test_qt_viewer.py::test_mixed_2d_and_3d_layers[True]
Results (20.98s):
        44 passed
         6 skipped
         2 warnings

There's been a lot of changes to shortcuts, so perhaps this is solved?


Remove an element in the List with index is correct but invalid in the List

I have the list of an object and in the object have the widget.
The List<Object> can add or remove the object.
When I remove the object in this list, the value in this object is correct. but the widget in this object is incorrect.
Why? The widget in the Object should belong to this object. This should be correct. How to fix this? Is this bug?
example code:
Try to add a field 2 times and type the name of the first field with 'A' and 'B' for the second then remove the first field('A' should be removed). the rest of the field will show 'A'.
import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(home: Scaffold(body: Center(child: MyWidget())));
  }
}

class MyWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Testpage();
  }
}

class Testpage extends StatefulWidget {
  const Testpage({Key? key}) : super(key: key);

  @override
  State<Testpage> createState() => _TestpageState();
}

class _TestpageState extends State<Testpage> {
  List<TestWidgetGroup> fieldList = [];

  @override
  Widget build(BuildContext context) {
    print('\nBuild\n');
    List<Widget> children = [];
    for (int index = 0; index < fieldList.length; index++) {
      print(
          '\nindex at $index, name = ${fieldList[index].object.name}, phone = ${fieldList[index].object.phone}'); // correct value
      children.add(Padding(
        padding: const EdgeInsets.all(10.0),
        child: Column(children: [
          fieldList[index].nameField,
          fieldList[index].phoneField,
          Center(
              child: TextButton(
                  onPressed: () => setState(() => fieldList.removeAt(index)),
                  child: const Text('remove'))),
        ]),
      ));
    }
    return Scaffold(
        backgroundColor: Colors.brown,
        body: SafeArea(
            child: Column(
          children: children +
              [
                Center(
                    child: TextButton(
                        onPressed: () =>
                            setState(() => fieldList.add(TestWidgetGroup())),
                        child: const Text('add')))
              ],
        )));
  }
}

class TestWidgetGroup {
  TestObject object = TestObject();
  late Widget nameField =
      buildTextField((v) => object.name = v, 'name: ${object.name}');
  late Widget phoneField =
      buildTextField((v) => object.phone = v, 'phone: ${object.phone}');
}

class TestObject {
  String? name;
  String? phone;
}

Widget buildTextField(Function(String?) onChanged, String text) {
  print(text);
  return TextFormField(onChanged: onChanged);
}

The TestWidgetGroup class has late fields nameField and phoneField, which means that their values will be initialized when they are first accessed. However, this will result in a runtime error because the TextFormField widgets are being created inside a loop where their indices are being changed. To fix this, you can replace the late keyword with the ### ‘get’ keyword and make the nameField and phoneField fields getters. This way, they will be re-evaluated each time they are accessed, and the correct TextFormField widget will be returned.
The buildTextField function has a text parameter, but it is never used in the function. You can remove the text parameter if it is not needed.
The TextButton widget is not a built-in Flutter widget. You can use the FlatButton widget instead.
The Testpage class extends StatefulWidget, but its createState method does not return a TestpageState object, but rather an object of a different type, _TestpageState. You can change the return type of the createState method to TestpageState to fix this issue.
The TextFormField widget's onChanged parameter expects a function with a single String parameter, but the function passed to it in the buildTextField function has a parameter of type String?, which is equivalent to a nullable String type. You can change the type of the function's parameter to String to fix this issue.
`import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(home: Scaffold(body: Center(child: MyWidget())));
}
}
class MyWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Testpage();
}
}
class Testpage extends StatefulWidget {
const Testpage({Key? key}) : super(key: key);
@override
State createState() => _TestpageState();
}
class _TestpageState extends State {
List fieldList = [];
@override
Widget build(BuildContext context) {
print('\nBuild\n');
List children = [];
for (int index = 0; index < fieldList.length; index++) {
print(
'\nindex at $index, name = ${fieldList[index].object.name}, phone = ${fieldList[index].object.phone}'); // correct value
children.add(Padding(
padding: const EdgeInsets.all(10.0),
child: Column(children: [
fieldList[index].nameField,
fieldList[index].phoneField,
Center(
child: TextButton(
onPressed: () => setState(() => fieldList.removeAt(index)),
child: const Text('remove'))),
]),
));
}
return Scaffold(
backgroundColor: Colors.brown,
body: SafeArea(
child: Column(
children: children +
[
Center(
child: TextButton(
onPressed: () =>
setState(() => fieldList.add(TestWidgetGroup())),
child: const Text('add')))
],
)));
}
}
class TestWidgetGroup {
TestObject object = TestObject();
Widget get nameField => buildTextField((v) => object.name = v, 'name: ${object.name}');
Widget get phoneField => buildTextField((v) => object.phone = v, 'phone: ${object.phone}');
}
class TestObject {
String? name;
String? phone;
}
Widget buildTextField(Function(String?) onChanged, String text) {
print(text);
return TextFormField(onChanged: onChanged);
}
`

The underlying text of the TextFormFields are controlled by a text controller, which isn't specified here. This means on every state change the text controller is created anew. This might be causing each new text controller to take the values of the previous textcontrollers in the TextFormFields at their previous positions in the children list, even though the underlying data is correct.
You can preserve the original values by storing an instance of a TextController for both name and phone TextFormFields and use each pair of controllers for each TextFormField you have.
class TestWidgetGroup {
  TestObject object = TestObject();

  // create text controllers
  final TextEditingController nameController = TextEditingController();
  final TextEditingController phoneController = TextEditingController();

  String get name => object.name ?? "null";
  String get phone => object.phone ?? "null";

  // pass controllers during initial creation of TextFormFields
  late Widget nameField = buildTextField((v) => object.name = v, nameController);
  late Widget phoneField = buildTextField((v) => object.phone = v, phoneController);
}
...

// use each controller to manage the text of each TextFormField
Widget buildTextField(Function(String?) onChanged, TextEditingController controller) {
  return TextFormField(controller: controller, onChanged: onChanged);
}

@rui-han-crh  Thank you. This code work success.
But in my project, I have a custom text field with the stateful widget that uses the TextEditingController and disposes of in this state. So I must pass the TextEditingController and I must remove dispose() in the custom widget.
How to make it easy?
Why does the flutter make the controller remove always remove the last of the list instead of the target index?

Now I can do it by using the Key. Add List<Key> fieldKeyList = []; with a unique string.
code:
import 'package:flutter/material.dart';
import 'package:mongo_dart/mongo_dart.dart' as mongo;

class Testpage extends StatefulWidget {
  const Testpage({Key? key}) : super(key: key);

  @override
  State<Testpage> createState() => _TestpageState();
}

class _TestpageState extends State<Testpage> {
  List<TestWidgetGroup> fieldList = [];
  List<Key> fieldKeyList = [];

  @override
  Widget build(BuildContext context) {
    print('\nBuild\n');
    List<Widget> children = [];
    for (int index = 0; index < fieldList.length; index++) {
      print('\nindex at $index, name = ${fieldList[index].object.name}, phone = ${fieldList[index].object.phone}'); // correct value
      children.add(Padding(
        key: fieldKeyList[index],
        padding: const EdgeInsets.all(10.0),
        child: Column(children: [
          fieldList[index].nameField,
          fieldList[index].phoneField,
          Center(
              child: TextButton(
                  onPressed: () {
                    fieldKeyList.removeAt(index);
                    setState(() => fieldList.removeAt(index));
                  },
                  child: const Text('remove'))),
        ]),
      ));
    }
    return Scaffold(
        backgroundColor: Colors.brown,
        body: SafeArea(
            child: Column(
          children: children +
              [
                Center(
                    child: TextButton(
                        onPressed: () {
                          fieldKeyList.add(Key(mongo.ObjectId().$oid));
                          setState(() => fieldList.add(TestWidgetGroup()));
                        },
                        child: const Text('add')))
              ],
        )));
  }
}

class TestWidgetGroup {
  TestObject object = TestObject();
  late Widget nameField = buildTextField((v) => object.name = v, 'name: ${object.name}');
  late Widget phoneField = buildTextField((v) => object.phone = v, 'phone: ${object.phone}');
}

class TestObject {
  String? name;
  String? phone;
}

Widget buildTextField(Function(String?) onChanged, String text) {
  print(text);
  return TextFormField(onChanged: onChanged);
}

However, why does the flutter make the controller remove always remove the last of the list instead of the target index?

Hi @SittiphanSittisak
This issue doesn't seem to describe a bug or a feature request. Please see https://flutter.dev/community for resources and asking questions like this,
you may also get some help if you post it on Stack Overflow and if you need help with your code, please see https://www.reddit.com/r/flutterhelp/
Closing, as this isn't an issue with Flutter itself. If you disagree, please write in the comments and I will reopen it.
Thank you

In my opinion, assume you have the List of Widget (List<Widget>) and you want to delete some widgets in this list, the flutter will remove this widget. Yes, this works successfully. But the flutter can't do that completely when you put the Field that has a controller property to this list. When you remove the widget at index = n, the flutter will remove this widget but the controller inside this widget is still alive. When the widget at index = n+1 becomes index = n, the controller doesn't follow the host widget. So all widgets will use the controller of before itself. I think this should not be that. Which cases must use this feature? Why the flutter doesn't remove the widget and the controller of itself?
This does not always happen in the same widget. But happened every widget that has the controller is placed next to each other.
You can try this code by

Add the name field 2 times.
Add the age field 2 times.
press 1 in the first field and 2, 3, and 4 respectively.
Click remove the first field.
You will see the value on the left is correct but the input box of rest field is incorrect.
The 2 fields (from all fields 1, 2, 3, 4) use the controller of 1, and the 3 use the controller of 2(but can't receive it maybe the inputFormatters was changed), and the 4 use controller of the 3.

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(home: MyPage());
  }
}

class MyPage extends StatefulWidget {
  const MyPage({Key? key}) : super(key: key);

  @override
  State<MyPage> createState() => _MyPageState();
}

class _MyPageState extends State<MyPage> {
  Widget removeNameFieldButton(int index) => IconButton(
      onPressed: () => setState(() {
            nameList.removeAt(index);
            nameFieldList.removeAt(index);
          }),
      icon: const Icon(Icons.remove_circle_outline));

  Widget removeAgeFieldButton(int index) => IconButton(
      onPressed: () => setState(() {
            ageList.removeAt(index);
            ageFieldList.removeAt(index);
          }),
      icon: const Icon(Icons.remove_circle_outline));

  late final Widget addNameFieldButton = ElevatedButton(
    onPressed: () => setState(() {
      int index = nameFieldList.length;
      void onChanged(String value) => setState(() => nameList[index] = value);
      nameList.add('');
      nameFieldList.add(NameField(onChanged: onChanged));
    }),
    child: const Text('Add name field'),
  );
  late final Widget addAgeFieldButton = ElevatedButton(
    onPressed: () => setState(() {
      int index = ageFieldList.length;
      void onChanged(String value) => setState(() => ageList[index] = value);
      ageList.add('');
      ageFieldList.add(AgeField(onChanged: onChanged));
    }),
    child: const Text('Add age field'),
  );

  final List<String> nameList = [];
  final List<String> ageList = [];

  final List<Widget> nameFieldList = [];
  final List<Widget> ageFieldList = [];

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.blueAccent,
      body: SafeArea(
        child: Center(
          child: SingleChildScrollView(
            child: Column(
              children: [
                Row(mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [addNameFieldButton, addAgeFieldButton]),
                ...nameFieldList.asMap().entries.map((entry) => Row(children: [Text('name = ${nameList[entry.key]} '), Expanded(child: entry.value), removeNameFieldButton(entry.key)])),
                ...ageFieldList.asMap().entries.map((entry) => Row(children: [Text('age = ${ageList[entry.key]} '), Expanded(child: entry.value), removeAgeFieldButton(entry.key)])),
              ],
            ),
          ),
        ),
      ),
    );
  }
}

class NameField extends StatefulWidget {
  final Function(String) onChanged;

  const NameField({Key? key, required this.onChanged}) : super(key: key);

  @override
  State<NameField> createState() => _NameFieldState();
}

class _NameFieldState extends State<NameField> {
  final TextEditingController _controller = TextEditingController();

  @override
  void dispose() {
    _controller.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return TextFormField(
      controller: _controller,
      decoration: const InputDecoration(
        labelText: 'press name',
      ),
      onChanged: widget.onChanged,
    );
  }
}

class AgeField extends StatefulWidget {
  final Function(String) onChanged;

  const AgeField({Key? key, required this.onChanged}) : super(key: key);

  @override
  State<AgeField> createState() => _AgeFieldState();
}

class _AgeFieldState extends State<AgeField> {
  final TextEditingController _controller = TextEditingController();

  @override
  void dispose() {
    _controller.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return TextFormField(
      controller: _controller,
      inputFormatters: [FilteringTextInputFormatter.digitsOnly],
      decoration: const InputDecoration(
        labelText: 'press age',
      ),
      onChanged: widget.onChanged,
    );
  }
}

What do you think?
Is this feature required? Why? Which cases use this feature?


Added in support for Gitbash on Windows OS

Description
Link to Feature Request:  https://github.com/devnw/gvm/issues/30
New Feature: Ability for gvm to support Gitbash running on Windows OS.  (64bit Windows)

Added switching to support Windows OS so that script downloads zip file vs tar for alternative OS
Updated checksum process to use Windows native checksum for sha256
Generalized the downloaded file extension so it's a clean switch between .zip and .tar
Since Windows doesn't handle symlinks gracefully had to introduce an explicit delete of the symlink directory before any new link is created.  (Windows only).

Examples
Sample Run below of a simple go version switch (all credit to the gvm team, this is simply a port to Windows + Gitbash)

In order to test make sure you are running a modern version of Windows i.e. Windows 10 64bit.
Install Gitbash:  https://www.makeuseof.com/install-git-git-bash-windows/   ( ✔  Make sure you allow symlinks during install because gvm depends on it to link user to the elected version of go).

Thanks for the PR. I'll try and get to it in the next day or so. I'll stand up a VM to test as well.

@jdaniel-cpts Weekend ended up busier than expected. Will try and get to this this week. Sorry for the delay.

@jdaniel-cpts Weekend ended up busier than expected. Will try and get to this this week. Sorry for the delay.

No problem!


Added Dark Theme and Light Theme Button

Fixed #14
Hi @bgalek @DMMPrice @samratghosh291 @arnab-4 @ShekharHans
Added a Theme Change Button.
Hope this gets Merged

please attached an screenshot.


Remove version: DeaDBeeF.DeaDBeeF version 1.9.5

[Automated] It returns code over 400 in all urls
Microsoft Reviewers: Open in CodeFlow

URL: https://sourceforge.net/projects/deadbeef/files/travis/windows/1.9.5/deadbeef-1.9.5-windows-x86_64.exe/download
OK
(Automated message - build 923)

Close with reason: Package still available.;


Remove declaration of unused variables

Signed-off-by: Patrik Stas<EMAIL_ADDRESS>

Codecov Report

Merging #380 (8d2c57a) into main (a318ce2) will decrease coverage by 43.67%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             main     #380       +/-   ##
===========================================
- Coverage   66.19%   22.51%   -43.68%
===========================================
  Files         154       18      -136
  Lines       14583     1128    -13455
  Branches     2877      284     -2593
===========================================
- Hits         9653      254     -9399
+ Misses       2593      799     -1794
+ Partials     2337       75     -2262

Flag
Coverage Δ

integration-aries-vcx
?

unittests-agency-client
22.51% <ø> (ø)

unittests-aries-vcx
?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

agency_client/src/agency_client.rs
0.00% <0.00%> (-9.10%)
:arrow_down:

agency_client/src/get_message.rs
0.00% <0.00%> (-3.25%)
:arrow_down:

agency_client/src/payload.rs
0.00% <0.00%> (ø)

agency_client/src/httpclient.rs
0.00% <0.00%> (ø)

aries_vcx/src/utils/uuid.rs

...ries_vcx/src/handlers/out_of_band/sender/sender.rs

aries_vcx/src/messages/forward.rs

aries_vcx/src/utils/file.rs

aries_vcx/src/handlers/connection/cloud_agent.rs

aries_vcx/src/handlers/connection/public_agent.rs

... and 130 more

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 a318ce2...8d2c57a. Read the comment docs.


Unity Integration

Unity Wrapper for RealSense SDK 2.0

Screen capture of the RealSenseTextures scene

Overview
The Unity wrapper for RealSense SDK 2.0 allows Unity developers to add streams from RealSense devices to their scenes using provided textures.
We aim to provide an easy to use prefab which allows device configuration, and texture binding using the Unity Inspector, without having to code a single line of code.
Using this wrapper, Unity developers can get a live stream of Color, Depth and Infrared textures. In addition we provide a simple way to align textures to one another (using Depth), and an example of background segmentation.

Sensor Options have no effect except for Visual Presets!
Please add interface for adjusting options on the fly!

Hi @tufeixp,
This is a only the first drop of the Unity integration with the SDK.
At the moment the RealSenseDevice script exposes the Options so that you can set some option across all sensors before initialization. In the future we have plans to provide a customized Inspector which could answer your requirements.
In the meanwhile, since the RealSenseDevice is a singleton you can use your own custom script to control the options in runtime:
foreach (var sensor in RealSenseDevice.Instance.ActiveProfile.Device.Sensors)
{
    foreach (var option in sensor.Options)
    {
        //Edit option
    }
}

@tufeixp, here's a quick draft I created for how to add such a thing:
https://gist.github.com/zivsha/d5de6e419f540dad61b2557c5235892b
Just add it to some game object and you will be able to edit the options at runtime.
IMPORTANT : This will not work with versions earlier than 2.10.0 (which fixed the sensor info wrapping in PR #1157)

Hi @zivsha thanks, it works. But why only 20 items available to adjust, I see 41 items at the Option enum list? Where I just need the HolesFill option enabled to 5 to give a smoother hole-less depthMap, otherwise it'd be too noisy to use! Besides, are you working on a middleware to generate an occlusion dynamic mesh on the fly, or connect to unity's spatial mapping system, this can be very useful for AR developers.

@tufeixp the camera_options enum is used for both sensors and processing blocks (such as the colorizer and filters). The supported options for a sensor are not all possible camera_options so you only see part of them. To enable holes filling you need to apply the Spatial Filter on the image before creating a texture from it (and set its option of Holes Filling to 5). This is not support yet by the Unity wrapper and was actually only added yesterday to the C# wrapper (PR #1169, thanks to @satoshi-maemoto).
We are planning on enriching the Unity integration with additional features, and creating a 3D mesh is a desired one, unfortunately at the moment I don't know when this will be ready, but as we've already said we try to be open with our work and will share this information once it is concrete.

@cseJuha , let continue this discussion in the issue you opened.

Hi @zivsha , thanks for the script you posted on this thread 4 days ago - I found it very helpful.
On a separate note, I'm looking to change the colorscheme for the Colorized Depth. I have previously spoken with @dorodnic  about this and he informed me that the best two ways were: a) a shader or b) changing the hard-coded values & re-compiling. I'm a complete novice with Unity Shaders and I was wondering if you had an example shader for changing the colorscheme of the Colorized Depth Stream?

Hi @gjmsoftware ,
I don't have anything like that at the moment, but before adding the Colorizer I've experimented with a gradient shader that took 2 textures (color and depth) where the color texture is a simple gradient of you choice, and the shader would colorize each depth pixel according to its normalized ([0-1]) value, picked from the gradient. You can try to read here on how to create a simple shader, and take a look at the shaders we currently provide in the unity wrapper, mix the two together to return a color per depth pixel. Keep in mind that this method is does not rely on histogram equalization and might provide poor color distinction (unless you add some logic to it).


rc.conf.local logic doesn't work as intended yet

I'll investigate this myself, this is just a tracker so I remind myself.
I think we might need to add some logic to net_api.py for rc.conf.local, eg in functions wired_card_added and wifi_card_added.
The reason that it doesn't work as intended for me yet is because I have defined all interfaces identically as networkmgr would've done in rc.conf.local, but it still writes to rc.conf.

There was a PR to fix that issue and the newest NerwotkMgr does not have that problem.

I see, thanks. Could you push this fix to FreeBSD ports? Or are you waiting on the rework as you mentioned in the individual PR before creating a new tag.

I will I have some minor improvement that I want to get in, but I am not sure how FreeBSD users will like to have networkmgr override default devd entry.

https://github.com/ghostbsd/networkmgr/blob/master/src/setupnic.conf

I did a quick scan, per FreeBSD hierarchy, this setupnic.conf file should go in /usr/local/etc/devd/.
When I look at some other files present, maybe the correct naming convention should be networkmgr.conf, see image below.

Furthermore it seems that the default devd.conf in /etc/devd.conf already includes the wifi regex for us.

I think the file is fine to ship as is for FreeBSD. It might be nice if you could check to remove the double wifi-regex definitions, maybe move them from this file to /etv/devd.conf in GhostBSD?

I was not aware if wifi-driver-regex of devd.conf would have work that is why I did add in setupnic.conf.
I remove it and test it when I get my improvement in.

That should do it https://github.com/ghostbsd/networkmgr/commit/c5c543db57dff1d2fbc47ab97f6cdd880ab9c29e

https://github.com/freebsd/freebsd-ports/commit/6022b5e24de357464bdb3db9b7863ad56bee3072

@driesmp feel free to open tickets if there any other problems.


Avoid selecting UI elements

This addresses https://github.com/looker-open-source/malloy/pull/451 in the simplest way. We could still also consider merging #492.

I like this over mine, as it avoids adding clutter 👍


Document update request

[Enter feedback here]
My customer is using delta query and read this page. It is difficult for the customer to understand how to use query.
The points the customer could not undarstand well.
#1 What is the key used by the ASA to insert, update, and delete the reference data?
#2 Is operation in the sample query required? Or can it be customized?
#3 Are there any way to see current reffering table in ASA?
For this reason, could you please add the following description to your documentation?
#1 operation and watermark are required items and cannot be renamed
#2 We don't need a key column to delete, but we need to set all columns in select
Ava
https://teams.microsoft.com/l/message/19:aa42f7f4a4bd4daf88581ddc76faf624@thread.skype/1646661104245?tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47&groupId=f4ae42e4-0a6c-44b7-8865-20266713a849&parentMessageId=1646661104245&teamName=Stream Analytics Product Team - CSS Collaboration&channelName=一般&createdTime=1646661104245
Thank you
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: cb04b783-69ee-9797-10d1-ed83fb78563a
Version Independent ID: 10fe3d4f-873d-520c-63e1-caafead4355a
Content: Use SQL Database reference data in an Azure Stream Analytics job
Content Source: articles/stream-analytics/sql-reference-data.md
Service: stream-analytics
GitHub Login: @enkrumah
Microsoft Alias: ebnkruma

@cinamori  Thanks for the feedback! I have assigned the issue to the content author to evaluate and update as appropriate.

#re-assign: @anboisve

#assign: @anboisve

There is no key used to insert, update, or delete reference data.  The delta query exposes the changes that were made to the reference data.  Seems here the customer is having challenges understanding how the Delta query works.  Will make small iterations to crystalize purpose of delta query and how it works.
The 'operation' is part of the delta query.  When you author the delta query, the results include column 'operation' which defines if the row is inserted or deleted between @deltastarttime and @deltaendtime.
We do not expose the reference table in ASA.

Will look at where it makes sense to update documentation based on points above.

Update sql-reference-data.md #91614 has proposed changes.

@CHEEKATLAPRADEEP-MSFT I've made the changes to the doc. Can we close this? I am unable to on my end.

Thank you for revising. Could you please add that users should use watermark and operation  correctly and are not able to edit that's column name?

@CHEEKATLAPRADEEP-MSFT the user asked if 'operation' is required, the documentation does state that it is.  'Operation' is part of the delta query.  It also states that the query must add 'Watermark' and delta queries without 'watermark' may result in incorrect reference data.  I am still reviewing the doc to look for other improvements [PR#91614].  We can close this.

#please-close


Declaration error

A PHP Error was encountered
Severity: Runtime Notice
Message: Declaration of colorAxis::values() should be compatible with configOptions::values()
Filename: configs/colorAxis.php
Line Number: 0
Backtrace:
File: /home/azov/php/test.ru/application/libraries/Gcharts.php
Line: 257
Function: _error_handler
File: /home/azov/php/test.ru/application/libraries/Gcharts.php
Line: 257
Function: __construct
File: /home/azov/php/test.ru/application/controllers/user/Mainpage.php
Line: 8
Function: __construct
File: /home/azov/php/test.ru/index.php
Line: 292
Function: require_once
How to fix this problem? Thanks

I no longer maintain this library, please use the active fork of this, Lavacharts


How to specify IP for hub?

Hi,
My Harmony Hub is attached in <IP_ADDRESS> network. ioBroker is running in <IP_ADDRESS> network.
Because of the two different networks, the harmony adapter is not able to find my harmony hub.
Is there a way to specify the harmony hub directly by ip address? I coulnd't find any setting for that :/

Im sorry but the Adapters life cycle is build around the SSDP Discovery, I'm afraid you can't just put in the IP. Maybe you can forward the Multicast traffic to you network?


Activation email template

Create an activation email template that is nice to look at. The current template is very basic. Spice it up!

It was spiced up but the issue was forgotten, closing it now.


when explain categories, it have problem

Describe the bug
when i write the categories on hexo's md files like the following
pattern 1:
categories:
- c1
- c2

pattern 2:
categories:
- [c1, sc1]
- [c2, sc2]

it will explain like the following by "hexo g", but can explain it correctly by this extension.
pattern 1:

c1

c2

pattern 2:

c1

sc1

c2

sc2

Plugin version(please complete the following information):
v0.1.20

I will take a look at how Hexo handle this, and thanks for your feedback.
categories:
- [c1, sc1]
- [c2, sc2]

It Has support in version 0.1.21. Please upgrade the extension.


Github settings

Please, add github settings.
Settings must be include:

labels and repo settings
PR template
Issue template

Is it a good time to finish template repo or introduce some generators? (readme, gitignore, labels, .github folder, etc.)?

Sounds good. Maybe you have some url on some generators or where I can find it?

@xferra and this?)


Update Slurm modules to 5.9.1 release from SchedMD

The 5.9.1 release of slurm-gcp solution from SchedMD includes an update to support placement policies attached to named reservations. I have confirmed that the 5.9 series of images has received family updates as of 2023-10-05.
Submission Checklist
Please take the following actions before submitting this pull request.

Fork your PR branch from the Toolkit "develop" branch (not main)
Test all changes with pre-commit in a local branch #
Confirm that "make tests" passes all tests
Add or modify unit tests to cover code changes
Ensure that unit test coverage remains above 80%
Update all applicable documentation
Follow Cloud HPC Toolkit Contribution guidelines #

I think you missed: tools/cloud-build/Dockerfile: pip install --no-cache-dir -r https://raw.githubusercontent.com/SchedMD/slurm-gcp/5.9.0/scripts/requirements.txt && examples/README.md:> pip3 install -r https://raw.githubusercontent.com/SchedMD/slurm-gcp/5.9.0/scripts/requirements.txt examples/README.md:> pip3 install -r https://raw.githubusercontent.com/SchedMD/slurm-gcp/5.9.0/scripts/requirements.txt didn't you?

Resolved


def get_associated_token_address(owner: PublicKey, mint: PublicKey) -> PublicKey:

When I put solana.PublicKey in there I get an error because it can not bytes(PublicKey). Same for string of publickeys for example: "CrTsxdaVbrUrS9Qr9dwgdjbsfRUg7YuKidqAFNC1ctpG" isnt working. I already tried to add raw_encoding but didnt seem to work.

can you provide sample code?

Not about making a PublicKey: get_associated_token_address(owner: PublicKey, mint: PublicKey) does not work with solana.PublicKeys

Not about making a PublicKey: get_associated_token_address(owner: PublicKey, mint: PublicKey) does not work with solana.PublicKeys

it should work sir. please provide the code in order to reproduce with the error.

bytes(PublicKey) will not work, you can try it. Neither does bytes(String).

get_associated_token_address(PublicKey("CrTsxdaVbrUrS9Qr9dwgdjbsfRUg7YuKidqAFNC1ctpG"),PublicKey("HYoEbVtyHL3Nfu5e2eecCHkxD4Wys34KvV8VujVRhUbv"))

bytes(PublicKey) will not work, you can try it. Neither does bytes(String).

owner = PublicKey("CrTsxdaVbrUrS9Qr9dwgdjbsfRUg7YuKidqAFNC1ctpG")

mint =  PublicKey("CrTsxdaVbrUrS9Qr9dwgdjbsfRUg7YuKidqAFNC1ctpG")

ata = get_associated_token_address(owner, mint)

print(ata)

change mint key. it should work. sorry I'm on mobile.

File "C:\Users\Robin\PycharmProjects\Api\test\lib\site-packages\spl\token\instructions.py", line 1133, in get_associated_token_address
seeds=[bytes(owner,"raw_unicode_escape"), bytes(TOKEN_PROGRAM_ID), bytes(mint,"raw_unicode_escape")], program_id=ASSOCIATED_TOKEN_PROGRAM_ID
TypeError: encoding without a string argument

which solana-py version is this sir?

I updated my solana.py and python interpreter and the error is now gone. Thank you!


Orbital Laser causes extreme lag. Constant timed outs

Version of Advanced Rocketry
1.7.10-1.4.0-9
Have you verified this is an issue in the latest unstable build
Y
Version of LibVulpes
1.7.10-0.2.8-31
Version of Minecraft
1.7.10
Crash report or log (if applicable)
https://pastebin.com/LcJ5gStm
Description of the problem
Turned on orbital laser and landed on the planet it was mining. Constantly rubber banded while landing. then timed out. now whenever someone loads the orbital laser chunk on the station, it timed out everyone.

Is this still a issue? Please comment if it is and i will reopen if if you are unable? We are closing old issues to see what is still relevant and needs to be fixed.


Random featured Passenger Showcase on the Homepage

This PR implements a part of issue #590 :steam_locomotive:
This is a work in progress :building_construction:
Preview : https://deploy-preview-606--codingtrain.netlify.app/
Loading on a simulated slow connection :

@shiffman Hello! I think this is ready for review :steam_locomotive: Feel free to put any passenger showcase you like in the list :smiley:
I stayed with showing only one showcase for now, as a first step.
By the way, I think think PR might interact with PR #610

Wonderful! This is fantastic! I've tested it and so will go ahead and merge. @runemadsen or @fdoflorenzano what do you think about us adjusting the design to feature 2 or 3 showcase projects. I'm not sure about this. Maybe that would create too much imbalance on the homepage?

Awesome! I think it would be fine to have more than one passenger showcase. I think you should be able to stack them easily on top of each other, and the only problem will be the duplicated heading. You could consider rewriting it so the heading gets its own row and then you have 2-3 passenger showcase submissions listed below in rows. This way, you could keep most of the current layout.


Failed to compile: Unexpected token

Bug Report
Describe the bug

 ERROR  Failed to compile with 3 errors                                                                                09:51:13
 error  in D:/workspace/education-webclient/node_modules/docz/dist/index.esm.js

Module parse failed: Unexpected token (16:38)
You may need an appropriate loader to handle this file type.
| import { MDXProvider } from '@mdx-js/react';
|
> const BasePlayground = loadable(() => import('./chunk.esm2.js'));
| const Playground = props => typeof window !== 'undefined' ? (createElement(Suspense, { fallback: null },
|     createElement(BasePlayground, Object.assign({}, props)))) : null;

 @ ./.docz/app/root.jsx 9:0-59 17:2-15 20:19-23 27:25-31
 @ ./.docz/app/index.jsx
 @ multi D:/workspace/education-webclient/node_modules/docz-core/node_modules/react-dev-utils/webpackHotDevClient.js ./.docz/app/index.jsx

 error  in D:/workspace/education-webclient/node_modules/docz-theme-default/dist/index.esm.js

Module parse failed: Unexpected token (251:34)
You may need an appropriate loader to handle this file type.
| `;
|
> const CodeMirror = loadable(() => import('./chunk.esm2.js'));
| const getLanguage = (children) => {
|     const defaultLanguage = 'jsx';

 @ ./.docz/app/root.jsx 11:0-39 18:29-34
 @ ./.docz/app/index.jsx
 @ multi D:/workspace/education-webclient/node_modules/docz-core/node_modules/react-dev-utils/webpackHotDevClient.js ./.docz/app/index.jsx

 error  in ./.docz/app/imports.js

Module parse failed: Unexpected token (8:11)
You may need an appropriate loader to handle this file type.
| export var imports = {
|   'src/index.mdx': function srcIndexMdx() {
>     return import(
|     /* webpackPrefetch: true, webpackChunkName: "src-index" */
|     'src/index.mdx');

 @ ./.docz/app/root.jsx 12:0-36 28:13-20
 @ ./.docz/app/index.jsx
 @ multi D:/workspace/education-webclient/node_modules/docz-core/node_modules/react-dev-utils/webpackHotDevClient.js ./.docz/app/index.jsx

In order to allow us to quickly reproduce you issue please include a link to a reproduction repository.
Expected behavior
A clear and concise description of what you expected to happen..
Environment

OS: [Windows 10]
Node/npm version: [e.g. Node 10.14.1/npm 6.5.0]

Additional context/Screenshots
Add any other context about the problem here. If applicable, add screenshots to help explain.

I hit this same issue as well running a fresh install of 1.0.4 in a Babel-Typescript project

Hi, could you provide a minimal demo to reproduce this error? Thanks!

I've been dealing with #808, but unfortunately, it still hasn't been solved.
package.json
"devDependencies": {
    "@babel/core": "^7.3.3",
    "@babel/plugin-proposal-class-properties": "^7.3.3",
    "@babel/plugin-proposal-decorators": "^7.3.0",
    "@babel/plugin-proposal-object-rest-spread": "^7.3.2",
    "@babel/plugin-syntax-dynamic-import": "^7.2.0",
    "@babel/plugin-transform-runtime": "^7.2.0",
    "@babel/preset-env": "^7.3.1",
    "@babel/preset-react": "^7.0.0",
    "@babel/preset-typescript": "^7.3.3",
    "@storybook/addon-actions": "^4.1.11",
    "@storybook/react": "^4.1.11",
    "@types/archiver": "^2.1.2",
    "@types/circular-dependency-plugin": "^5.0.0",
    "@types/classnames": "^2.2.7",
    "@types/color": "^3.0.0",
    "@types/commander": "^2.12.2",
    "@types/compression-webpack-plugin": "^2.0.0",
    "@types/connect-history-api-fallback": "^1.3.1",
    "@types/enhanced-resolve": "^3.0.6",
    "@types/enzyme": "^3.1.9",
    "@types/enzyme-adapter-react-16": "^1.0.2",
    "@types/fs-extra": "^5.0.3",
    "@types/html-webpack-plugin": "^2.30.3",
    "@types/http-proxy-middleware": "^0.17.4",
<EMAIL_ADDRESS>"^2.4.3",
    "@types/jest": "^23.3.10",
    "@types/lodash": "^4.14.106",
    "@types/minimist": "^1.2.0",
    "@types/node": "^9.6.1",
    "@types/ramda": "^0.25.24",
    "@types/react": "^16.7.18",
    "@types/react-dom": "^16.0.11",
    "@types/react-redux": "^5.0.19",
    "@types/react-router-dom": "^4.2.6",
    "@types/react-test-renderer": "^16.0.1",
    "@types/react-virtualized": "^9.18.11",
    "@types/recompose": "^0.26.1",
    "@types/shelljs": "^0.8.3",
    "@types/storybook__addon-actions": "^3.0.3",
    "@types/storybook__react": "^3.0.7",
    "@types/warning": "^3.0.0",
    "@types/webpack": "^4.1.3",
    "@types/webpack-bundle-analyzer": "^2.9.2",
    "add-asset-html-webpack-plugin": "^2.1.3",
    "archiver": "^3.0.0",
    "awesome-typescript-loader": "^5.2.1",
    "babel-loader": "^8.0.4",
    "cache-loader": "^1.2.5",
    "chart.js": "^2.8.0",
    "circular-dependency-plugin": "^5.0.2",
    "colors": "^1.3.3",
    "commander": "^2.19.0",
    "compression-webpack-plugin": "^2.0.0",
    "connect-history-api-fallback": "^1.5.0",
    "cross-env": "^5.1.6",
    "css-loader": "^2.0.1",
    "enzyme": "^3.3.0",
    "enzyme-adapter-react-16": "^1.1.1",
    "fast-glob": "^2.2.6",
    "file-loader": "^2.0.0",
    "fs-extra": "^6.0.1",
    "glob": "^7.1.2",
    "happypack": "^5.0.0",
    "hard-source-webpack-plugin": "^0.13.1",
    "html-webpack-plugin": "^3.2.0",
    "http-proxy-middleware": "^0.18.0",
    "husky": "^1.3.1",
    "jest": "^23.6.0",
    "jest-styled-components": "^5.0.1",
    "koa-connect": "^2.0.1",
    "loader-utils": "^1.1.0",
    "minimist": "^1.2.0",
    "react-chartjs-2": "^2.7.4",
    "react-test-renderer": "^16.4.0",
    "source-map-loader": "^0.2.4",
    "style-loader": "^0.23.1",
    "thread-loader": "^2.0.0",
    "ts-jest": "^23.10.5",
    "ts-node": "^6.2.0",
    "tsconfig-paths": "^3.3.2",
    "tsconfig-paths-webpack-plugin": "^3.2.0",
    "tslint": "^5.10.0",
    "tslint-config-prettier": "^1.10.0",
    "tslint-react": "^3.5.1",
    "typescript": "^3.3.1",
    "webpack": "4.28.4",
    "webpack-bundle-analyzer": "^2.13.1",
    "webpack-cli": "^3.2.3",
    "webpack-dev-server": "^3.1.14",
    "webpack-serve": "^1.0.4"
  },

Same here
log | project

hi @arvigeus :
Thanks for the re-produce repo. I reproduce the same error by using npm. However, everything goes well by using yarn. You can have a try of yarn first to bypass this problem. And I'll try to figure out how to bypass this in docz.

I'm having this problem with yarn. yarn doesn't bypass this problem. You can reproduce this issue right now using the latest create-react-app has I've done here: https://github.com/MarkMurphy/docz-issue-808

I'm also having the same issue using yarn. In some versions ago adding ansi-styles to our resolutions was fixing this issue:
"resolutions": {
  "ansi-styles": "^3.2.0"
},

However, that isn't working anymore.

Same issue with create-react-app (latest version) + using yarn.
yarn create react-app app
 yarn add docz docz-theme-default --dev
yarn docz:dev
Failed to compile.

./node_modules/docz/dist/index.esm.js 23:38
Module parse failed: Unexpected token (23:38)
You may need an appropriate loader to handle this file type.
| import { MDXProvider } from '@mdx-js/react';
|
> const BasePlayground = loadable(() => import('./chunk.esm2.js'));
| const Playground = props => typeof window !== 'undefined' ? createElement(Suspense, {
|   fallback: null```

Run yarn add --dev webpack

This solved it for me. No need to install webpack

This solved it for me. No need to install webpack

Seems to work, thanks.


stateStorageStrategy localStorage does not increase session counters

We are looking into changing the stateStorageStrategy from cookie to localstorage. The current mechanism to detect a new session is the absence of the _sp_ses cookie which expires after the configured sessionCookieTimeout. The problem is, that localstorage does not have an expiry mechanism, so the the _sp_ses.xxxx key in local storage stays forever.
The timestamps are properly written to the _sp_id.xxxx key in local storage. And the timestamps are actually enough to detect a beginning of a new session. Of current timestamp and last visit time stamp are longer apart from each other than the session duration, the counter could be incremented.
And then we could get rid of _sp_ses cookie/localstorage key.
What do you think?

@mhadam any thoughts?

Hi Christophe! That seems reasonable, and no problems really occur to me at first glance. I’ll try to get this in a new release within the next couple weeks.

Thank you!

The issue has been addressed at Snowplow forums (https://discourse.snowplowanalytics.com/t/session-not-tracked-correctly/3026). Can it be prioritized? Especially as it seems to be slight workaround for ITP2.2.

Hi @grzegorzewald we can take a look at this next week and get back to you!

Thanks Steve, much appreciated

I owe everyone on this thread an update! Sincere apologies for the radio silence.
One thing that has held things up on this is that we ideally don't want to ship a change before we've completed a new suite of integration tests for the tracker. We've had to roll patches to a few tracker releases recently following up on regression bugs, and even a few is a few too many! With histories and configurations as long as our trackers, they're hard to manually test. So we're investing time in automated tests that build confidence that the release is going to work, end to end, as intended and in perpetuity. We'd like to get at least the beginnings of these tests and cover off some critical paths before rolling out any change to the storage strategy.
We're in a position to prioritise both the tests and this change now, so we'll hopefully not keep you waiting too long. I've made a note to keep this thread updated with progress. Thank you for your patience!


Error after entering film name: ('.' is not recognized as an internal or external command, operable program or batch file)

The full error is:

Command failed: ./node_modules/.bin/magnet --rows 10 "Sneakers"
'.' is not recognized as an internal or external command,
operable program or batch file.

This happens in both Powershell and CMD.

Currently using Node 8.4.0 x64 on Windows 10 Pro.

It should be fixed with the latest version, 1.2.0.
Do you confirm?

Can confirm it's now working :)


mxnet package in r (3.5.1) - It doesn't have lstm and gluon

After I have installed mxnet package in RStudio (R-3.5.1) - I didn't find lstm and few other functions in mxnet package. Please provide other link where I can download mxnet containing complete functions as mentioned in mxnet documentations or any other resource to get those functions.
Have installed using below lines as mentioned on mxnet page
cran <- getOption("repos")
cran["dmlc"] <- "https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/"
options(repos = cran)
install.packages("mxnet")
**library(mxnet)
mx.lstm()
Error in mx.lstm() : could not find function "mx.lstm"
mx.gluon.nn.Sequential
Error: object 'mx.gluon.nn.Sequential' not found**

Hi @TS0713 , the R package for now is still under heavy implementation. Grab a guy who is working on this:
@anirudhacharya could you please help to see if there is any alternative solution to this?
@mxnet-label-bot please add [feature, R] label here.

Hi,
Thanks for your support. Indeed I have tried installing for R version below
3.5.0 , still I am not able to find gluon and lstm . Please suggest me the
process to install mxnet for installing on R stuido along with R version
which contains gluon and lstm. The link which you have provided for lstm
doesn't have version details of R and mxnet .  Awaiting for your reply.
Regards
Pavan Satya
On Mon 13 Aug, 2018, 12:54 PM Anirudh<EMAIL_ADDRESS>wrote:

@TS0713 https://github.com/TS0713 gluon is not yet supported in the R
API. For lstm, you can check this tutorial for pointers on how to use it -
https://mxnet.incubator.apache.org/tutorials/r/charRnnModel.html
We will soon try to get more tutorials in place on using lstm and gru
units.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/apache/incubator-mxnet/issues/12119#issuecomment-412430378,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AVijVEIjkKmUpNggUTuEzVqDhM0iSvgzks5uQSmugaJpZM4V3gP_
.

Hi @TS0713 As @anirudhacharya mentioned, R does not have Gluon support. However, you can try using LSTM example on the latest MXNetR package. Please follow install instructions as mentioned over here https://mxnet.apache.org/install/index.html?platform=Linux&language=R&processor=CPU&prev=master# based on your OS and let us know if you face any issues.

seeking gluon in R +1


Set up deployment (e.g. on Heroku)

We should get a basic deployment of this code running soon to catch any initial issues.

This is done at https://quality-lac-data-beta.herokuapp.com/
This is manually updated by pushing the code currently.


fix: threadApiManager

fix #1174
fix #1243

relates to https://github.com/sammchardy/python-binance/pull/1404

https://github.com/conor19w/Binance-Futures-Trading-Bot/issues/61
@carlosmiei @pcriadoperez guys you can see the exact error me and many ppl faced

@carlosmiei don't remember to be honest. But I can definetly say that this warning/error disable MANY open-source python written trading platform which use this as a lib.

@alkhachatryan but can you confirm that this code does not hang when you run it? https://github.com/sammchardy/python-binance/pull/1404#issuecomment-2434712948

@carlosmiei sorry, for now dont have a chance to check it. I have ubuntu 22, you can up the ubuntu 22 container and run that code in your container

LGTM

I think this might also be related: https://github.com/sammchardy/python-binance/issues/1459

coverage: 54.704%. remained the same
when pulling b740ad1bfda94e0169fa0cd01ff8db9fd5e07d40 on pcriadoperez:thread-fix
into 2ce30ca5058f42574e8bde30f37ace17777525a4 on sammchardy:master.

@alkhachatryan As you can see in this PR we added a test that runs on multiple python versions (3.7.89/10/11/12) and with this fix it is working as expected.

@alkhachatryan I will merge this PR and release a new version, please let us know if that causes any error on your side.
Besides that, you can now inject the loop in the constructor, which might be useful for you as well, example:
 twm = ThreadedWebsocketManager(loop=asyncio.get_event_loop())

@carlosmiei good job! Will be back here in case of any fire


[Fp16] MIOpen integration or layout transpose issue with FP16_INF and FP16_MAX

[Observations]
On gfx90a platform, with the input
input.txt
# /opt/rocm/bin/MIOpenDriver convfp16 -n 5 -c 1 -H 3 -W 3 -k 3 -y 1 -x 1 -p 0 -q 0 -u 1 -v 1 -l 1 -j 1 -m conv -g 1 -F 4 -t 1 -V 0 --dump_output 1 --in_data input.txt.bin --dout_data dout.txt.bin
MIOpenDriver convfp16 -n 5 -c 1 -H 3 -W 3 -k 3 -y 1 -x 1 -p 0 -q 0 -u 1 -v 1 -l 1 -j 1 -m conv -g 1 -F 4 -t 1 -V 0 --dump_output 1 --in_data input.txt.bin --dout_data dout.txt.bin
Read data from input file input.txt.bin
Could not open file dout.txt.bin for reading
PRNG seed: 12345678
Wrote output to file dump_in.bin
Wrote output to file dump_dout.bin
MIOpen Backward Weights Conv. Algorithm: 5, Solution: 110/ConvAsmImplicitGemmGTCDynamicWrwXdlopsNHWC
GPU Kernel Time Backward Weights Conv. Elapsed: 0.024996 ms (average)
stats: name, n, c, ho, wo, x, y, k, flopCnt, bytesRead, bytesWritten, GFLOPs, GB/s, timeMs
stats: bwdw-conv1x1u1, 5, 1, 3, 3, 1, 1, 3,  270, 0, 0, 0, 0, 0.024996
Wrote output to file dump_bwd_dwei_gpu.bin

The IGEMM kernel gave output:

[65504. 65504. 65504.]

But the expected output (from direct convolution) should be:

[inf, inf, inf]

[Analysis]

65504 is FP16_MAX
It is determined that the iGEMM kernel actually generates INF
@JehandadKhan @atamazov Now it is suspected that during data-layout transpose or MIOpen integration, the INF is reinterpreted as MAX?

@carlushuang  could you help to comment on this issue if anything is missing? Thanks!

hotfix is here:
https://github.com/ROCmSoftwarePlatform/MIOpen/pull/2497

The root cause is in this case wrw kernel using atomic, and in the solver it will use CastTensor() function to cast from fp32->fp16
However, the in the source code of cast function : src\kernels\MIOpenSubTensorOpWithCastTensorKernel.cl, it will clamp to MAX value.
            _FLOAT_SRC temp_src = *(src + sindex + srcOffset);
#if MIOPEN_SRC_TYPE == 3 && MIOPEN_DST_TYPE == 4
            temp_src *= alpha;
            *(dst + dindex + dstOffset) = float_to_bfloat16(temp_src);
#else
            bool over_flow = (alpha * ((float)temp_src)) >= ((float)MAX_VAL);
            *(dst + dindex + dstOffset) =
                (_FLOAT_DST)(over_flow ? MAX_VAL : alpha * ((float)temp_src));
#endif
        }

@junliume @JehandadKhan @carlushuang First of all, it should be noted that the convolution code we generate is focused on performance, not IEEE-754 correctness. Convolutions should provide maximum performance, provided that the accuracy is sufficient for the neural networks to function correctly.
That is why the OpenCL kernels (for example) are compiled with the -cl-fast-relaxed-math option, which neither guarantees high precision for many operations nor provides correct handling of special numbers. In particular, this option enables -cl-finite-math-only, which meaning is obvious. See https://man.opencl.org/clBuildProgram.html for more info. HIP and ASM kernels should follow the same policy wrt precision vs performance.
Please also note that the result of MAX instead of INF can be interpreted as a difference of 1ULP, which is sufficient accuracy for convolutions.
So the test that checks for INF on output is questionable.
From the other hand, if we want to make the test passing, fixing the cat kernel (as triaged by @carlushuang) is a way to go. But please note that while this resolves the immediate problem, we cannot always guarantee the expected special number result (INF) due to the the above.
WRT implementation of the full-blown fix. Git blame shows that over_flow flag is used in the kernels from the beginning. That is all what I found in the public repo. Therefore I highly recommend:

Investigate the code (git blame and observe review comments etc) in the private repo, starting from https://github.com/AMDComputeLibraries/MLOpen/pull/1327
If the investigation gives clear results (we want to know why this conversion of INF to MAX is performed), then develop and apply correct fix.
Otherwise (if we do not clearly know the reasons of the questionable conversion), I recommend skipping it but only when the kernel is used in convolutions. That would require adding one more build-time parameter to the kernel or adding one more real-time parameter.
Similar fix should be applied to other casting kernels and other convolution solvers that leverage them.

@carlushuang Thanks for triaging the issue!

I want to make two points.
First, frameworks rely on backward convolution kernels for fp16 (and likewise fp8) producing infs when computation results overflow. It is not an IEEE-754 compliance issue, it is a fundamental requirement.
Second, whatever the reasoning was for that clamp into finite range, we can probably agree that applying it only on the positive side can't possibly be correct.
From the frameworks perspective, it would be best if the cast kernel clamped into finite range for forward but not backward convolutions. If that is too hard, then it should clamp at all.

@JehandadKhan  and @atamazov  (CC: @carlushuang) we could change the logic and only "clamp" in the forward direction? Then we could let it be tested through a whole round of staging and trying to identify if there are any issues long before the next release.

@ekuznetsov139 Thanks for the explanation of the frameworks' requirement.
@JehandadKhan @carlushuang I can work on this if no one else is doing it yet. The plan is to implement the 3rd and 4th bullets from https://github.com/ROCmSoftwarePlatform/MIOpen/issues/2496#issuecomment-1788879539. It seems like we have little time.
@junliume

we could change the logic and only "clamp" in the forward direction?

Sure, and this seems the best solution from the frameworks' POV.

@junliume @JehandadKhan The fix is implemented in #2538.
The fix is very conservative (minimal functional changes because release branching date is near). We should consider other option: remove clamping controls (introduced in this PR) and keep clamping permanent, but replace clamping to MAX with clamping to INF. This seems mathematically correct (and can't break https://github.com/ROCmSoftwarePlatform/MIOpen/issues/2496 again), and should slightly improve performance, but let's do that after release branching.
Therefore I recommend but keeping this ticket open (after merging #2538) but lowering its urgency, and then closing after implementing clamping to INF.

@junliume @ekuznetsov139 The fix is merged into develop. If the problem is resolved, then I suggest lowering the urgency of this issue to "normal" and removing the milestone (see previous comment).


Feature/reducers actions

#2 Milestone - Add Reducers and Actions
In this feature branch, I have implemented or Added the below things as per requirement.

Added Redux Toolkit npm install react-redux @reduxjs/toolkit
Structured as follows:

/src
    |---/components
    |---/redux
        |--- /books
                | books.js
        |--- /categories
                | categories.js
        | configureStore.js
    | index.js

Added the action-types for both bookReducer and categoriesReducer.
Added the action-creators for both reducer (above mentioned).
Configured the Redux Store.
Combined both the reducers into rootReducer.
Followed the best practices.

Thank you so much @uwadonat ❤


fix(COM-1376) completely disables rich text features when plain text mode is on

Checklist

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Please check if the PR fulfills these requirements

[x] Tests for the changes have been added (for bug fixes / features)
[x] Storybook or docs have been added / updated (for bug fixes / features)

Storybook Link (Link to a local storybook url to review new functionality)
https://5eed577398d08d0022b52d76-btlsyywcjl.chromatic.com/?path=/story/components-editors-markdowneditor--plain-editor-mode

@wescosta do you think the UI test failing might be related to your changes? or flaky test?

Looks like this is wrong in all other tests except in this one that it is fixed now. The initial value is being tracked as a change


Granted not working with secret-service backend on EC2 instances

Reported via our community Slack:
cquinn@armbox:~$ assume --verbose -c shitposting
DEBUG: starting update check
2022/09/13 19:09:47 [keyring] Considering backends: [secret-service kwallet keyctl pass file]
2022/09/13 19:09:47 [keyring] Failed backend secret-service: The name org.freedesktop.secrets was not provided by any .service files
2022/09/13 19:09:47 [keyring] Failed backend kwallet: The name org.kde.kwalletd5 was not provided by any .service files
2022/09/13 19:09:47 [keyring] Failed backend keyctl: accessing "" keyring failed: unknown scope ""
2022/09/13 19:09:47 [keyring] Failed backend pass: The pass program is not available
? Enter passphrase to unlock "/home/cquinn/.granted/cred-store" ********
DEBUG: Partition is detected as aws for region us-west-2...
cquinn@armbox:~$

cquinn@armbox:~$ granted settings
SETTING               	VALUE
logging verbosity     	INFO

update-checker-api-url	update.api.granted.dev:443

ExportCredentialSuffix

DefaultBrowser        	STDOUT

CustomBrowserPath

CustomSSOBrowserPath

LastCheckForUpdates   	Tuesday

Keyring               	<nil>

Ordering

Working through some testing here, as we suspect https://github.com/common-fate/granted/commit/da54a021e4cf790c62954a0196e20f39d119dc44 may be the commit which broke things.
Amazon Linux - ARM
amzn2-ami-kernel-5.10-hvm-2.0.20220805.0-arm64-gp2
v0.2.9
No keychain settings in config
[ec2-user@ip-10-0-11-47 ~]$ cat ~/.granted/config
DefaultBrowser = "FIREFOX_STDOUT"
CustomBrowserPath = ""
CustomSSOBrowserPath = ""
LastCheckForUpdates = 3
Ordering = ""
ExportCredentialSuffix = ""

[ec2-user@ip-10-0-11-47 ~]$ assume --verbose demo-sandbox1
2022/09/21 11:42:52 [keyring] Considering backends: [keyctl pass file]
2022/09/21 11:42:52 [keyring] Failed backend keyctl: accessing "" keyring failed: unknown scope ""
2022/09/21 11:42:52 [keyring] Failed backend pass: The pass program is not available
DEBUG: GetValidCachedToken: The specified item could not be found in the keyring
DEBUG: starting update check
If browser is not opened automatically, please open link:
https://device.sso.ap-southeast-2.amazonaws.com/?user_code=RRWB-VVXZ
DEBUG: exec: "xdg-open,x-www-browser,www-browser": executable file not found in $PATH
Awaiting authentication in the browser...
2022/09/21 11:43:17 [keyring] Considering backends: [keyctl pass file]
2022/09/21 11:43:17 [keyring] Failed backend keyctl: accessing "" keyring failed: unknown scope ""
2022/09/21 11:43:17 [keyring] Failed backend pass: The pass program is not available

with ‘file’ keyring backend
[ec2-user@ip-10-0-11-47 ~]$ cat ~/.granted/config
DefaultBrowser = "FIREFOX_STDOUT"
CustomBrowserPath = ""
CustomSSOBrowserPath = ""
LastCheckForUpdates = 3
Ordering = ""
ExportCredentialSuffix = ""
[Keyring]
  Backend = "file"
[ec2-user@ip-10-0-11-47 ~]$ assume --verbose demo-sandbox1
2022/09/21 11:50:30 [keyring] Considering backends: [file]
? Enter passphrase to unlock "/home/ec2-user/.granted/cred-store" DEBUG: starting update check

[demo-sandbox1](ap-southeast-2) session credentials will expire 2022-09-21 12:50:33 +0000 UTC

v0.1.12
curl -OL releases.commonfate.io/granted/v0.1.12/granted_0.1.12_linux_arm64.tar.gz
sudo tar -zxvf ./granted_0.1.12_linux_arm64.tar.gz -C /usr/local/bin/

with no keychain settings in config
[ec2-user@ip-10-0-11-47 ~]$ cat ~/.granted/config
DefaultBrowser = "FIREFOX_STDOUT"
CustomBrowserPath = ""
LastCheckForUpdates = 0
[ec2-user@ip-10-0-11-47 ~]$ assume --verbose demo-sandbox1
2022/09/21 11:55:46 [keyring] Considering backends: [keyctl pass file]
2022/09/21 11:55:46 [keyring] Failed backend keyctl: accessing "" keyring failed: unknown scope ""
2022/09/21 11:55:46 [keyring] Failed backend pass: The pass program is not available
? Enter passphrase to unlock "/home/ec2-user/.granted/cred-store" DEBUG: starting update check
DEBUG: connecting to update checker
                                                                  DEBUG: connected to update checker

[demo-sandbox1](ap-southeast-2) session credentials will expire 2022-09-21 12:55:51 +0000 UTC

with ‘file’ keyring backend
[ec2-user@ip-10-0-11-47 ~]$ cat ~/.granted/config
DefaultBrowser = "FIREFOX_STDOUT"
CustomBrowserPath = ""
CustomSSOBrowserPath = ""
LastCheckForUpdates = 3
Ordering = ""
ExportCredentialSuffix = ""
[Keyring]
  Backend = "file"

[ec2-user@ip-10-0-11-47 ~]$ assume --verbose demo-sandbox1
2022/09/21 11:54:32 [keyring] Considering backends: [file]
? Enter passphrase to unlock "/home/ec2-user/.granted/cred-store" DEBUG: starting update check

[demo-sandbox1](ap-southeast-2) session credentials will expire 2022-09-21 12:54:34 +0000 UTC


rbd: use different variable instead of builtin cap attribute

`cap` builtin function returns the capacity of a type. Its not
good practice to use this builtin function for other variable
names, removing it here

Ref# https://golang.org/pkg/builtin/#cap

Signed-off-by: Humble Chirammal<EMAIL_ADDRESS>

Please explain in the commit message why this is needed. Is it because a new Golang version that adds cap as builtin? I do not get any warning/error messages, and CI just works too.
Consider an empty commit message as not acceptable in 99% of all cases.

@nixpanic updated the commit message with the details. Please review.

@humblec we got few other places
internal/util/validate.go:85:   for _, cap := range req.GetVolumeCapabilities() {
internal/util/validate.go:86:           if m := cap.GetAccessMode().Mode; m == csi.VolumeCapability_AccessMode_MULTI_NODE_READER_ONLY || m == csi.VolumeCapability_AccessMode_SINGLE_NODE_READER_ONLY {

please take care of them too.

Sure... Thanks :+1:

@pkalever done.. May be this time the Grep foo worked for me .. I dont see any more such instances, however please confirm from your end too!

There is still a member called cap in internal/csi-common/driver.go for type CSIDriver. This needs changing too.

Oh. Checking..

There is still a member called cap in internal/csi-common/driver.go for type CSIDriver. This needs changing too.

Sure.. Done there too @nixpanic