Battery level indicator

Would it be possible to include a battery icon or percentage somewhere in pegasus ? I thought it could be a valuable feature for RP2 users.

Hi, it's been a long time, but the latest version has a battery indicator :)


Add examples

Please, please add a basic example somewhere.
At the moment I have absolutely no idea how to use any of your stuff.

See https://github.com/dwrensha/capnpc-rust/tree/master/example/addressbook and https://github.com/dwrensha/capnp-rpc-rust/tree/master/examples . I suppose I should link to these in the README.

Fantastic, thanks!

Fixed in https://github.com/dwrensha/capnproto-rust/commit/dbea7103d2bd8081bf27653c2a641bb50525336e.


[Feature] Support variable-based nested config in tspconfig.yaml

Clear and concise description of the problem
What is supported in now.
  '@azure-tools/typespec-powershell':
    prefix: 'Az'
    service-name: Sphere
    module-name: "{prefix}.{service-name}

It works as expected. The tsp compiler could handle the variable well and parse it to:
  '@azure-tools/typespec-powershell':
    prefix: 'Az'
    service-name: Sphere
    module-name: "Az.Sphere"

What is not supported now
If there is a nested variable, it will not work.
  '@azure-tools/typespec-powershell':
    prefix: 'Az'
    service-name: Sphere
    metadata:
      authors: Microsoft Corporation
      owners: Microsoft Corporation
      description: "Microsoft Azure PowerShell: { service-name} cmdlets"

The tsp compiler will convert it as below with {service-name} not replaced by Sphere
  '@azure-tools/typespec-powershell':
    prefix: 'Az'
    service-name: Sphere
    metadata:
      authors: Microsoft Corporation
      owners: Microsoft Corporation
      description: "Microsoft Azure PowerShell: { service-name} cmdlets"

Checklist

[X] Follow our Code of Conduct
[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Think about what nested config should look like and how it relates to cli


Add instruction for fish config

Thanks a ton for this!. (sorry ... i need to learn how to contribute properly)
FWIW. Could you add this installation tip for the fish config to the readme.

Create a file for the function using vim ~/.config/fish/functions/gi.fish and enter the below code

# Credit: https://geowarin.github.io/the-missing-fish-shell-tutorial.html
# Credit: https://github.com/joeblau/gitignore.io

function gi
  curl -L -s https://www.gitignore.io/api/$argv;
end

Which operating system(s) does that command apply to?

Oh. That is for Mac OSX (El Capitan) but I think it should work for Ubuntu too on the fish terminal.

Why does is this line not added to ~/.config/fish/config.fish ?

Why is this added to  ~/.config/fish/functions/gi.fish and not to ~/.config/fish/config.fish?

I've added this command to the wiki's advanced command line improvements.  If we can get this to a place where it's tested on multiple platforms then I'd be fine to merge it into the main README.md.


sc-2045 create aliases for imports

@elysee15 it looks like this branch needs to be rebased with main to update it with respect to the new contact handling.


unittest/test_numpy_interoperability.py inadvertently puts additional unittests on a fixed seed

Description
The following code in test_numpy_interoperability.py sets a numpy seed unilaterally, thereby making deterministic the random numbers used in subsequent unittests: https://github.com/apache/incubator-mxnet/blob/2abf0b8c2b3361c73c9dfdeabdb8a88278b693d0/tests/python/unittest/test_numpy_interoperability.py#L515-L528
Also, since the code is executed on import of the file, this sets the seed in advance of the with_seed() mechanism, thereby forcing determinism on a large number of other modules that import this test file, including test_operator_gpu.py.
We clearly want to get back to our usual mode of running tests non-deterministically with different random data each time, to ensure a robust framework.  Thus, having noticed this issue during the development of my current PR https://github.com/apache/incubator-mxnet/pull/18694, I have included a fixing commit https://github.com/apache/incubator-mxnet/pull/18694/commits/6567b61d219fa984d5c1b8c3987990ca04b73575 .
@vexilligera and @reminisce, could you review my fix and comment, or suggest an alternative fix via another PR?  For example, you may want to evaluate whether the test is able to support random data of some appropriate distribution.  Also, you may want to evaluate whether performing all the set-up functions of this test module lazily on first use, rather than as done currently at file import, is generally a better practice.  Thanks.
Error Message
I noticed this problem when different runs of the CI would flag the same failing test with the same rnd seed. [Output not retained]
What have you tried to solve it?

See referenced PR and fixing commit

While technically a different issue, test_numpy_interoperability.py has a spurious print statement: https://github.com/apache/incubator-mxnet/blob/2abf0b8c2b3361c73c9dfdeabdb8a88278b693d0/tests/python/unittest/test_numpy_interoperability.py#L2896-L2902
I've removed this in PR https://github.com/apache/incubator-mxnet/pull/18694 commit https://github.com/apache/incubator-mxnet/pull/18694/commits/3d47acba82e44b6b731ff048905472c8c0c2f8de.

fixed by #18694


Fix update knowledge bases description

Why:
It appears that the summary mentions 'delete,' whereas it should provide a description of the update to the knowledge bases.
What's being changed (if available, include any code snippets, screenshots, or gifs):
Check off the following:

[x] I have reviewed my changes in staging, available via the View deployment link in this PR's timeline (this link will be available after opening the PR).

For content changes, you will also see an automatically generated comment with links directly to pages you've modified. The comment won't appear if your PR only edits files in the data directory.

[x] For content changes, I have completed the self-review checklist.

@syossan27 Thank you so much for submitting a PR with this fix! ✨ Your change looks great - would you be able to resolve the conflicts on this branch when you have a moment? We're happy to get this merged right after 💛

Dooool,;")#@33#@$


[53] Update compatibility to Sklearn .18.

Currently, spark-sklearn gives deprecation warnings when used with sklearn version .18 because several classes in grid_search and cross_validation were refactored into a new module called model_selection. The changes here make spark-sklearn compatible with the changes introduced in sklearn .18.
The most critical changes reflected in the new version of sklearn is that:
sklearn.model_selection.GridSearchCV now has:
cv_results_ : dict of numpy (masked) ndarrays - A dict with keys as column headers and values as columns, that can be imported into a pandas DataFrame.
best_estimator_ : estimator - Estimator that was chosen by the search, i.e. estimator which gave highest score (or smallest loss if specified) on the left out data. Not available if refit=False.
best_score_ : float - Score of best_estimator on the left out data.
best_params_ : dict - Parameter setting that gave the best results on the hold out data.
best_index_ : int - The index (of the cv_results_ arrays) which corresponds to the best candidate parameter setting.
scorer_ : function - Scorer function used on the held out data to choose the best parameters for the model.
n_splits_ : int - The number of cross-validation splits (folds/iterations).
While spark-sklearn.GridSearchCV has:
grid_scores_ : list of named tuples
best_estimator_ : estimator - Estimator that was chosen by the search, i.e. estimator which gave highest score (or smallest loss if specified) on the left out data. Not available if refit=False.
best_score_ : float - Score of best_estimator on the left out data.
best_params_ : dict - Parameter setting that gave the best results on the hold out data.
scorer_ : function - Scorer function used on the held out data to choose the best parameters for the model.
The biggest is that sklearn added the more comprehensive cv_results_ which adds data that the formerly compatible grid_scores_ is lacking.
Note: This version of spark-sklearn is not compatible with sklearn <= .17.

Currently, spark-sklearn gives deprecation warnings when used with sklearn version .18 because several classes in grid_search and cross_validation were refactored into a new module called model_selection. The changes here make spark-sklearn compatible with the changes introduced in sklearn .18.
The most critical changes reflected in the new version of sklearn is that:
sklearn.model_selection.GridSearchCV now has:
cv_results_ : dict of numpy (masked) ndarrays - A dict with keys as column headers and values as columns, that can be imported into a pandas DataFrame.
best_estimator_ : estimator - Estimator that was chosen by the search, i.e. estimator which gave highest score (or smallest loss if specified) on the left out data. Not available if refit=False.
best_score_ : float - Score of best_estimator on the left out data.
best_params_ : dict - Parameter setting that gave the best results on the hold out data.
best_index_ : int - The index (of the cv_results_ arrays) which corresponds to the best candidate parameter setting.
scorer_ : function - Scorer function used on the held out data to choose the best parameters for the model.
n_splits_ : int - The number of cross-validation splits (folds/iterations).
While spark-sklearn.GridSearchCV has:
grid_scores_ : list of named tuples
best_estimator_ : estimator - Estimator that was chosen by the search, i.e. estimator which gave highest score (or smallest loss if specified) on the left out data. Not available if refit=False.
best_score_ : float - Score of best_estimator on the left out data.
best_params_ : dict - Parameter setting that gave the best results on the hold out data.
scorer_ : function - Scorer function used on the held out data to choose the best parameters for the model.
The biggest is that sklearn added the more comprehensive cv_results_ which adds data that the formerly compatible grid_scores_ is lacking.
Note: This version of spark-sklearn is not compatible with sklearn <= .17.

CC @dsackin

Oh!  I just realized: since we're switching from the deprecated GridSearch to the new model_selection.GridSearchCV, we'll have to switch to those tests as well.  test_grid_search_1.py and test_grid_search_2.py do a bit of Python magic to leverage the existing sklearn tests, but hopefully we can just switch to the new sklearn submodule and have it work.


Display font size with zoom in code editor and refresh on settings change

Fixes #23879
@akien-mga suggested in the issue it could make more sense to display the font size instead of the zoom, so I made it so it displays both like this (in this order because IMO it makes more sense than Zoom: "zoom" ("font_size"):

Of course if people prefer to keep only zoom or only font size I will revert it.

Thanks!


Var-order-transfer-unit-test and non-uniform ConvergenceStudy rates

A small PR which

fixes a variable order transfer test (before the where was no refinement happening in the test)
adds support in the ConvergenceStudy to produce correct rates for adaptive h-ref

PR
Author
Editor
Reviewers
Assignment
Approval
Merge

#2860
@psocratis
@tzanio
@tzanio + @brendankeith
3/1/22
⌛due 3/15/22
⌛due 3/22/22

This PR is now under review (see the table in the PR description). To help with the review process, please do not force push to the branch.

Merged in next for testing...


Add RateLimitError to jsonrpc

Issue: https://github.com/sourcegraph/sourcegraph/issues/56455.
Jetbrains part: https://github.com/sourcegraph/jetbrains/pull/111
Test plan
tbd

Thanks @mkondratek I will make sure someone checks this out!

@jdorfman  Im not familiar with the agent part of the codebase, so it's probably best to tag someone else from the jetBrains team to verify. @sourcegraph/jetbrains-plugin ?

@abeatrix my bad I'm going to move this to JetBrains repo

Fyi this is one of the VirtusLabs contractors from the shared slack channel, not a random contributor


Installation fails at poetry install --no-dev

I had problems installing Poetry (it didn't appear with poetry --version after installation; I tried different methods). Finally it worked, but now I cannot move step forward and use poetry install --no-dev in enex2notion's folder.
Here is my configuration:

Poetry version 1.1.13
Python 2.7.18
Python 3.9.13
pip 22.1 from /opt/homebrew/lib/python3.9/site-packages/pip (python 3.9)
pipx 1.0.0

Terminal says this (click)
Installing dependencies from lock file

Package operations: 1 install, 0 updates, 0 removals

  • Installing pymupdf (1.19.6): Failed

  EnvCommandError

  Command ['/Users/jakub/Library/Caches/pypoetry/virtualenvs/enex2notion-cSoCjhGn-py3.10/bin/pip', 'install', '--no-deps', 'file:///Users/jakub/Library/Caches/pypoetry/artifacts/6b/7c/af/7535c83df8c3f1fcf8950fc7539c8c3be8162811582af606547c33dd64/PyMuPDF-1.19.6.tar.gz'] errored with the following return code 1, and output:
  Processing /Users/jakub/Library/Caches/pypoetry/artifacts/6b/7c/af/7535c83df8c3f1fcf8950fc7539c8c3be8162811582af606547c33dd64/PyMuPDF-1.19.6.tar.gz
    Preparing metadata (setup.py): started
    Preparing metadata (setup.py): finished with status 'done'
  Building wheels for collected packages: PyMuPDF
    Building wheel for PyMuPDF (setup.py): started
    Building wheel for PyMuPDF (setup.py): finished with status 'error'
    error: subprocess-exited-with-error

    × python setup.py bdist_wheel did not run successfully.
    │ exit code: 1
    ╰─> [20 lines of output]
        running bdist_wheel
        running build
        running build_py
        creating build
        creating build/lib.macosx-12-arm64-cpython-310
        creating build/lib.macosx-12-arm64-cpython-310/fitz
        copying fitz/__init__.py -> build/lib.macosx-12-arm64-cpython-310/fitz
        copying fitz/fitz.py -> build/lib.macosx-12-arm64-cpython-310/fitz
        copying fitz/utils.py -> build/lib.macosx-12-arm64-cpython-310/fitz
        copying fitz/__main__.py -> build/lib.macosx-12-arm64-cpython-310/fitz
        running build_ext
        building 'fitz._fitz' extension
        creating build/temp.macosx-12-arm64-cpython-310
        creating build/temp.macosx-12-arm64-cpython-310/fitz
        clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/usr/local/include/mupdf -I/usr/local/include -Imupdf/thirdparty/freetype/include -I/usr/local/include/freetype2 -I/usr/X11R6/include/freetype2 -I/opt/homebrew/include -I/opt/homebrew/include/mupdf -I/opt/homebrew/include/freetype2 -I/Users/jakub/Library/Caches/pypoetry/virtualenvs/enex2notion-cSoCjhGn-py3.10/include<EMAIL_ADDRESS>-c fitz/fitz_wrap.c -o build/temp.macosx-12-arm64-cpython-310/fitz/fitz_wrap.o
        fitz/fitz_wrap.c:2755:10: fatal error: 'fitz.h' file not found
        #include <fitz.h>
                 ^~~~~~~~
        1 error generated.
        error: command '/usr/bin/clang' failed with exit code 1
        [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip.
    ERROR: Failed building wheel for PyMuPDF
    Running setup.py clean for PyMuPDF
  Failed to build PyMuPDF
  Installing collected packages: PyMuPDF
    Running setup.py install for PyMuPDF: started
    Running setup.py install for PyMuPDF: finished with status 'error'
    error: subprocess-exited-with-error

    × Running setup.py install for PyMuPDF did not run successfully.
    │ exit code: 1
    ╰─> [22 lines of output]
        running install
        /Users/jakub/Library/Caches/pypoetry/virtualenvs/enex2notion-cSoCjhGn-py3.10/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
          warnings.warn(
        running build
        running build_py
        creating build
        creating build/lib.macosx-12-arm64-cpython-310
        creating build/lib.macosx-12-arm64-cpython-310/fitz
        copying fitz/__init__.py -> build/lib.macosx-12-arm64-cpython-310/fitz
        copying fitz/fitz.py -> build/lib.macosx-12-arm64-cpython-310/fitz
        copying fitz/utils.py -> build/lib.macosx-12-arm64-cpython-310/fitz
        copying fitz/__main__.py -> build/lib.macosx-12-arm64-cpython-310/fitz
        running build_ext
        building 'fitz._fitz' extension
        creating build/temp.macosx-12-arm64-cpython-310
        creating build/temp.macosx-12-arm64-cpython-310/fitz
        clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/usr/local/include/mupdf -I/usr/local/include -Imupdf/thirdparty/freetype/include -I/usr/local/include/freetype2 -I/usr/X11R6/include/freetype2 -I/opt/homebrew/include -I/opt/homebrew/include/mupdf -I/opt/homebrew/include/freetype2 -I/Users/jakub/Library/Caches/pypoetry/virtualenvs/enex2notion-cSoCjhGn-py3.10/include<EMAIL_ADDRESS>-c fitz/fitz_wrap.c -o build/temp.macosx-12-arm64-cpython-310/fitz/fitz_wrap.o
        fitz/fitz_wrap.c:2755:10: fatal error: 'fitz.h' file not found
        #include <fitz.h>
                 ^~~~~~~~
        1 error generated.
        error: command '/usr/bin/clang' failed with exit code 1
        [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip.
  error: legacy-install-failure

  × Encountered error while trying to install package.
  ╰─> PyMuPDF

  note: This is an issue with the package mentioned above, not pip.
  hint: See above for output from the failure.
  WARNING: You are using pip version 22.0.4; however, version 22.1.1 is available.
  You should consider upgrading via the '/Users/jakub/Library/Caches/pypoetry/virtualenvs/enex2notion-cSoCjhGn-py3.10/bin/python -m pip install --upgrade pip' command.

  at ~/.local/pipx/venvs/poetry/lib/python3.10/site-packages/poetry/utils/env.py:1195 in _run
      1191│                 output = subprocess.check_output(
      1192│                     cmd, stderr=subprocess.STDOUT, **kwargs
      1193│                 )
      1194│         except CalledProcessError as e:
    → 1195│             raise EnvCommandError(e, input=input_)
      1196│
      1197│         return decode(output)
      1198│
      1199│     def execute(self, bin, *args, **kwargs):

jakub@MacBook-Pro enex2notion % poetry run enex2notion
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File<EMAIL_ADDRESS>line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/Users/jakub/enex2notion/enex2notion/cli.py", line 18, in <module>
    from enex2notion.note_parser import parse_note
  File "/Users/jakub/enex2notion/enex2notion/note_parser.py", line 9, in <module>
    from enex2notion.note_parser_webclip_pdf import parse_webclip_to_pdf
  File "/Users/jakub/enex2notion/enex2notion/note_parser_webclip_pdf.py", line 6, in <module>
    import fitz
ModuleNotFoundError: No module named 'fitz'

I don't have much experience with terminal, I just follow the instructions.

Have you tried using pre-compiled binary?

Also you can install it using homebrew now
$ brew install vzhd1701/tap/enex2notion

I tried all of them. Each time I have problems with pymupdf. I tried to install it independently, but I don't really know how. I follow the instructions there, but I don't know what to do with mupdf-1.20.0-rc1-source.tar.gz. I'm trying to learn how to install .tar.gz programs, but I don't find any help online. I can dig more, but is it the right path at least?

Homebrew should build it properly. Could you please show me the log that you are getting when you install it using brew install vzhd1701/tap/enex2notion command?

The brew installation does not produce any errors

**Log here**
enex2notion --token 1665b198a633b9555a8167c509d30213383baad84741aedcd8289771fa686fc7237c2340f214b95252d2e67171e1dac6eb5f46e0ec711162cce9c31f656961aa8caeba43e243ae3d51b1efee0c87 "/Users/jakub/Documents/webclipper.enex"

However, I still cannot launch enex2notion
I try: cd enex2notion and then enex2notion --help or enex2notion --version or enex2notion --token (...) and all I get is zsh: command not found: enex2notion.

Homebrew actually fails to do the installation bit in your case because of that error about the "Command Line Tools are too outdated". Have you tried to resolve it by doing what it suggests?

I feel dumb that I didn't figure it out myself, but it works! Thank you so much. Is there a way to support your work somehow?


HTTP Status 500 on some file uploads, including MP4: XHR returned response code 500

Type of issue

[ ] Bug report
[ ] Feature request
[X] Support request

Uploader type

[X] Traditional
[ ] S3
[ ] Azure

Support Request
Fine Uploader version
5.14.1
Browsers where the bug is reproducible
Safari, Chrome and Firefox (all up-to-date) on Mac OS X.
Server is Linux (CentOS 6) running Tomcat 8.0.35 with Java 1.8.0_91.
Question
We have just started using FineUploader (as we finally migrate away from Java Applets that are no longer supported for multi-file uploads with DND) and it's mostly working great.  That is, nearly all files we throw at it, it uploads them all just fine.
However, we do get the below error shown when uploading larger MP4s (41MB), but not for smaller MP4s (31.5MB).  We can (usually) succeed with a larger ZIP file (51.5MB), so it doesn't seem to be just a file size issue:
Error on file number 0 - Test.mp4.  Reason: XHR returned response code 500
On a normal, successful upload, our Tomcat 8 activity log shows:
xx.xx.xxx.xxx - - [21/Mar/2017:15:59:49 -0700] "POST /ssd/sendMessage/attachment.jsp?m=4305704838241 HTTP/1.1" 200 17
xx.xx.xxx.xxx - - [21/Mar/2017:15:59:49 -0700] "GET /ssd/sendMessage/attachment.jsp?m=4305704838241&fineuploaderdone=1 HTTP/1.1" 200 17446
xx.xx.xxx.xxx - - [21/Mar/2017:16:01:24 -0700] "POST /ssd/sendMessage/attachment.jsp?m=4305704838241 HTTP/1.1" 500 5155
xx.xx.xxx.xxx - - [21/Mar/2017:16:01:41 -0700] "GET /ssd/sendMessage/attachment.jsp?m=4305704838241&fineuploaderdone=1 HTTP/1.1" 200 14658
Because we are integrating with an old webapp that doesn't really use much javascript and our system generally expects pages to reload after each request, we use the main endpoint to submit the file, and when it's completed, we use another URL with the fineuploaderdone=1 param added in the onAllComplete callback to set the location.href so we get a final GET request that causes the page to reload and show the results of the uploaded file.
Because it's an older webapp, it also used a multipart/form-data uploader from O'Reilly in a package com.oreilly.servlet.MultipartRequest.
For grins, we updated that code to use org.apache.commons.fileupload.servlet.ServletFileUpload and it did not resolve anything.  In fact, it oddly also had some trouble with the status 500 being returned on the 51.5MB ZIP file as well.
When in Java debug, we can see it just seems to crap out (no exception thrown) in the file upload code, as if Tomcat gets the error 500 and then just halts our servlet so we cannot see any underlying cause for the 500.  We see no errors in Tomcat logs that indicate memory errors, exceptions or the like.
Related code
My HTML form tag:
<form method="post" action="/ssd/sendMessage/attachment.jsp;jsessionid=435E79DE28006DA1E4986D82315B7CF3?m=4305704838243" enctype="multipart/form-data" id="qq-form">

Your Fine Uploader template markup (if using Fine Uploader UI and the issue is UI-related)

Sorry, but there's not much help I can offer. If you were unable to uncover the reason for the 500 error on your server, there is certainly no way for me to make that determination.

That's too bad.  I mean, with a simple  control, the file uploads fine (and is also the same multipart/form-data).  This would seem to indicate that our web server has no real issue accepting the file, just when it's transmitted via fineuploader.
Is there anything I can add to the javascript setup to help track down why it might suffer this when using xhr?  According to the progress meter, 100% of the file is transferred before it craps out.

While not positive, this small change seems to resolve that MP4 issue, ensuring the charset=UTF-8 is added to the form's enctype:
enctype="multipart/form-data;charset=UTF-8"
Hope this may help others who get this odd result.

This would seem to indicate that our web server has no real issue accepting the file, just when it's transmitted via fineuploader.

Fine Uploader sends standard multipart encoded upload requests by default, just as if the files were sent by a traditional form submit. The issue is most definitely with your server. Take a look at some of the Java server-side examples for reference.

Is there anything I can add to the javascript setup to help track down why it might suffer this when using xhr?

The issue is server-side, not client-side. So you'll need to either inspect the response payload in the browser and/or set breakpoints or log messages on your server to determine where the problem lies.

Thanks.  I'll keep investigating.

In case anybody sees this exchange:
You were right.  It was an out of memory error (damned tiny test server!) that somehow didn't appear in the tomcat logs.  I finally discovered this using the 'debug' option and looking at the javascript console where our "status code 500" error page included this helpful bit of information.  This also explains how it seemed to work, then failed, etc. and we couldn't figure out what the difference was.


Fix - Modifying the assertion on the "Item" component to use the "displayName"prop

Changing the verification of types to use the "displayName" prop instead of the pure type.
This allows Higher Order Components to be used inside the Item component and behave exactly like original components by just setting their "displayName" accordingly.
The same behavior already exists on the "componentWillReceiveProps" lifecycle.
Also optimized the children verification on the "renderChildren" method to run across all children only once instead of one time for each component group (Label, Input and Icon).
The need for this modification came from the need to insert a mask on the "Input" component, which was accomplished by the use of a Higher Order Component.
This, on the other hand, changed the type of the Input to the "MaskedInput", which was the HOC type and by doing so, the floating label item stopped to recognize the "inputProps" and to pass them through to the Input child.
Feel free to comment and I'll be happy to contribute more. 🤖

After reading the Contribute Guidelines, I'm still confused if whether should I commit the dist files generated after the transpile task or not.
I'll update accordingly if necessary. 🤖

@gvarandas just checked this PR against the example in #2011. Updating the HOC Input didn't change the state. Can you check this.

@akhil-geekyants just updated the example.
I've forgotten to set the displayName of the HOC.
Please verify again. 🤖

Actually, I've just realized that theres still a problem with the HOC assertion because the "Item" component changes its type.
I'll update the PR and comment here when ready.

@akhil-geekyants the PR is updated with some optimizations and corrections.

Kept the child types immutable, allowing the HOC to function properly whenever inserted as children of the Item component;
Optimized the rendering loop inside the "renderChildren" method;

Please review again. 🤖

@akhil-geekyants @SupriyaKalghatgi any news on this?

@gvarandas just checked this. Didn't work for me. Can you create a test repo for us to check (pointing native-base to this branch)

@akhil-geekyants sure. Will publish and link the repo here soon enough.
Thank you.

@gvarandas Any updates on this?

@SupriyaKalghatgi sorry for the delay. Was having a busy week. 🚀
Noticed that my last commit on the PR was missing the updated "dist" files, which probably caused the confusion. Just fixed that and created the configured repo with the proposed solution working.
Feel free to reach me up. 🤖

@gvarandas One more step needed before merging this PR
Your code quite old, since we had 5 releases after you submitted this PR
Please pull the latest from master and update the PR
Also you can skip transpile

@SupriyaKalghatgi done! Please check it out. 🤖

@gvarandas This PR fixes #2011
But fails in case of icons with Floating label
This is with existing code of Item.js

This is with code from your PR

this should be the last commit probably
looks fine to me

@SupriyaKalghatgi is this going to get merged? We're waiting for a new release to correct a production bug. 🤖

yes, this week

#2264 issue due to this PR, reverting this


Remove duplicated button in Install web page

Fix #27934
Regression #25648

Wrong branch? The fix should be on main branch.

Wrong branch? The fix should be on main branch.

The main branch is okay. I linked the wrong PR.
The PR linked is right but the manual backport to 1.20 of that PR forgets to delete these two lines.


Highlight diff when comparing data classes

data class Foo(a: String, b: String, c: String)
Foo("a", "b", "c") shouldBe Foo("a", "a", "a")

should output something like
Foo("a", "b", "c") did not equal Foo("a", "a", "a"):
  - diff in field b: "b" did not equal "a"
  - diff in field c: "c" did not equal "a"
```

This might be useful to take into account.
https://assertj.github.io/doc/#assertj-core-recursive-comparison


SQL Syntax Error with CanBeOneOfMany if primaryKey of related model is null

Laravel Version: 8.3.4 (Lumen)
PHP Version: 8.0
Database Driver & Version:

Description:
SQL parsers adds empty column to query. Problems exists in core Laravel till today as I see in repo.
Steps To Reproduce:
Add relation to your model
public function test()
{
    return $this->hasOne(Relation::class)->ofMany('sorted_column');
}

Relation have to be with nulled primaryKey
<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Relation extends Model
{
    protected $primaryKey = null;

    public $incrementing = false;

    public $timestamps = false;
}

Problems starts when $keyName became null in here https://github.com/laravel/framework/blob/10.x/src/Illuminate/Database/Eloquent/Relations/Concerns/CanBeOneOfMany.php#L77
Possible solution is to ignore null here https://github.com/laravel/framework/blob/10.x/src/Illuminate/Database/Eloquent/Relations/Concerns/CanBeOneOfMany.php#L93
if (!$column) {
    continue;
}

Hey there,
Unfortunately we don't support this version anymore. Please check out our support policy on which versions we are currently supporting. Can you please try to upgrade to the latest version and see if your problem persists? If so, please open up a new issue and we'll help you out.
Thanks!

Please also don't open Lumen issues on the framework repo.

@driesvints I mentioned in first paragraph "Problems exists in core Laravel till today as I see in repo." So with almost 100% sure it exists in 10.x also.

@driesvints are you going to recheck it for 10.x ?


CX Stored_XSS @ src/main/java/org/t246osslab/easybuggy/troubles/DeadlockServlet2.java [master]

Stored_XSS issue exists @ src/main/java/org/t246osslab/easybuggy/troubles/DeadlockServlet2.java in branch master
Method selectUsers at line 114 of src\main\java\org\t246osslab\easybuggy\troubles\DeadlockServlet2.java gets data from the database, for the rs element. This element’s value then flows through the code without being properly filtered or encoded and is eventually displayed to the user in method responseToClient at line 31 of src\main\java\org\t246osslab\easybuggy\core\servlets\AbstractServlet.java. This may enable a Stored Cross-Site-Scripting attack.
Severity: High
CWE:79
Checkmarx
Lines: 125

Code (Line #125):
            rs = stmt.executeQuery("select * from users where ispublic = 'true' order by id " + ("desc".equals(order) ? "desc" : "asc"));

Issue still exists.
SUMMARY
Issue has total 1 vulnerabilities left to be fix (Please scroll to the top for more information)

Issue still exists.
SUMMARY
Issue has total 1 vulnerabilities left to be fix (Please scroll to the top for more information)


Prediction

How to use question generation model to generate questions from the text we have?

I was looking at the code to understand how "focus words" are derived.
Looks like in the script "QG_data_loader.py" lines 265 to 295, they use source sentence and the target question to derive the "focus words".
My question is how is it possible to use this for prediction, where we will not have the target question to derive the "focus words" for a given sample.
Thanks. BTW thanks for making the code available, and it is very well written.


Rather than adding a build script host the artifacts in your repo

Rather than adding a build script, which will run on every pod install, which is slower, you can host the built artifacts on this repo and refer it in the podspec itself. That will be much faster in terms of build times.

Yes, it would be faster, but do you really want to trust to unknown Github repo? It's unsafe. No one can be sure whether the provided 'built artifacts' have malicious inclusions or not. On the contrary, having just scripts you can inspect them and be sure that all is right.
The building takes long for the first time only. Cocoapods caches artifacts and uses them next time you do 'pod install' without rebuilding.

I understand your concern, but the other pods like OpenSSL-Universe are hosting xcframework. From the podspec you can see the git repo referenced and from their one can see the build script used, but I agree it doesn't totally address the concern you pointed out.

The building takes long for the first time only

Agreed, but it might cause a timeout on CI for the first run and on subsequent runs one will have to do caching.


Rewrite the "integration" section in the README

Do not advise to use a package object as it leads to increased compilation times.

closed with #30


DL4J Spark + CUDA: CI NaN evaluation issue

On current master, I'm seeing a CUDA-specific test failure: TestSparkDl4jMultiLayer.testEvaluationSimple
https://jenkins.konduit.ai/blue/organizations/jenkins/konduitai%2Fdeeplearning4j/detail/PR-364/1/pipeline
Basically, NaNs appear in the predictions (network output) during evaluation.
It's intermittent, but also reproducible locally on Windows (if I run the test in a loop).
Adding NaN check seems to "fix" it (i.e., not reproducible when enabled).
Nd4j.getExecutioner().setProfilingConfig(ProfilerConfig.builder().checkForNAN(true).checkWorkspaces(true).build());

[2020-04-08T01:39:04.441Z] o.a.s.e.Executor - Exception in task 1.0 in stage 13.0 (TID 53)
[2020-04-08T01:39:04.441Z] java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Cannot perform evaluation with NaNs present in predictions: 640 NaNs present in predictions INDArray
[2020-04-08T01:39:04.441Z] 	at org.deeplearning4j.spark.impl.evaluation.EvaluationRunner$EvaluationFuture.get(EvaluationRunner.java:242)
[2020-04-08T01:39:04.442Z] 	at org.deeplearning4j.spark.impl.evaluation.EvaluationRunner$EvaluationFuture.get(EvaluationRunner.java:214)
[2020-04-08T01:39:04.442Z] 	at org.deeplearning4j.spark.impl.multilayer.evaluation.IEvaluateFlatMapFunction.call(IEvaluateFlatMapFunction.java:73)
[2020-04-08T01:39:04.442Z] 	at org.deeplearning4j.spark.impl.multilayer.evaluation.IEvaluateFlatMapFunction.call(IEvaluateFlatMapFunction.java:38)
[2020-04-08T01:39:04.442Z] 	at org.apache.spark.api.java.JavaRDDLike.$anonfun$mapPartitions$1(JavaRDDLike.scala:153)
[2020-04-08T01:39:04.442Z] Caused by: java.lang.IllegalStateException: Cannot perform evaluation with NaNs present in predictions: 640 NaNs present in predictions INDArray
[2020-04-08T01:39:04.442Z] 	at org.nd4j.base.Preconditions.throwStateEx(Preconditions.java:641)
[2020-04-08T01:39:04.442Z] 	at org.nd4j.base.Preconditions.checkState(Preconditions.java:286)
[2020-04-08T01:39:04.442Z] 	at org.nd4j.evaluation.classification.Evaluation.eval(Evaluation.java:403)
[2020-04-08T01:39:04.442Z] 	at org.deeplearning4j.nn.multilayer.MultiLayerNetwork.doEvaluationHelper(MultiLayerNetwork.java:3459)
[2020-04-08T01:39:04.442Z] 	at org.deeplearning4j.nn.multilayer.MultiLayerNetwork.doEvaluation(MultiLayerNetwork.java:3406)

Closing in favor if this, which is the underlying cause: https://github.com/eclipse/deeplearning4j/issues/8831


(EAI-51): Globalize TypeScript and eslint config

Jira: https://jira.mongodb.org/browse/EAI-51
Changes

Adds tsconfig file at root, which gets extended in each package
Adds eslintrc likewise
Fixes various linting issues
Adds lint script to packages that didn't have one
Renamed "dist" to "build" for consistency

Notes

Verified that references tsconfig won't appear in npm published packages

to address the currently failing CI you can:

in your local env rm -rf package-lock.json and _node_modules
npm i
commit and push

this is a vite related issue that comes up frequently.

I think something is messed up in the UI package, getting this error on JSX throughout the project:
'React' refers to a UMD global, but the current file is a module. Consider adding an import instead.ts(2686)

Also we should add the renamed build/ directories to .gitignore


Documentation of FormView.form_class produces warning

The documentation of the attribute form_class in views which inherit from Django's FormView produces the following warning when executing sphinx-build:
WARNING: :1: (WARNING/2) Bullet list ends without a blank line; unexpected unindent.
It took me a while to figure out what the problem is, because there is no reference to the source code which produced this warning.
Looking at the verbose debug output of sphinx-build, I noticed the following:
   .. py:attribute:: CustomView.form_class
      :module: app.views

      Docstring for this attribute

      **Form fields:**

      * ``field1``: Field1 (:class:`~django.forms.fields.CharField`)
      alias of :class:`CustomForm`

So the form fields are appended to the docstring by sphinxcontrib-django and the "alias" is appended because the value of the field in a class. The missing new line between the bullet list and the "alias"-line causes the warning.

This was not a problem of this extension, but of Sphinx itself and was fixed in version 3.3.0: sphinx-doc/sphinx#8190


pull request for e2e test at 01/04/2017 14:15:40

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Update "wait" fields

Is your feature request related to a problem?
Plugin is only capable of "waiting" on Deployment workloads.
The current wait_deployments fields is hard coded to running kubectl rollout status for Deployments only (https://github.com/NYTimes/drone-gke/blob/57c5e00070efb62240c37b5f5d6d22c5878a3ddf/main.go#L628).
The rollout command is capable of checking the status for multiple workload types (https://github.com/kubernetes/kubernetes/blob/426ef9d349bb3a277c3e8826fb772b6bdb008382/pkg/kubectl/cmd/rollout/rollout_status.go#L95).
Describe the solution you'd like

Create a wait wait field:

wait:
  - deployment/xyz
  - statefulset/abc
  - ds/my-daemon-set

Deprecate the wait_deployments field (with a warning message in the logs).
Remove the wait_deployments field in a future version bump.

Describe alternatives you've considered
n/a
Additional context
n/a

We discussed this issue in PR 124 and it was recommended we do not introduce a new option and instead just generalized the existing wait-deployments to handle additional types.  That approach was taken in PR 125.


Remove scenario

resolves #364

Pull Request Test Coverage Report for Build 3042

36 of 39 (92.31%)  changed or added relevant lines in 8 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.009%) to 89.384%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

flow/envs/base_env.py
11
12
91.67%

flow/envs/bottleneck_env.py
0
2
0.0%

Totals

Change from base Build 3036:
0.009%

Covered Lines:
7763

Relevant Lines:
8685

💛  - Coveralls


Logic fix for changed external behavour

As discussed in https://github.com/ffMathy/FluffySpoon.AspNet.LetsEncrypt/pull/20, letsencrypt must've changed their API responses, so we need to change this project accordingly.

Mange tak, og lige over! ;)


Automate Zero Downtime Scaling Test

As a maintainer of NGF
I want to automate the zero downtime scaling test
So that I do not need to run it manually in the future.
Acceptance

The zero downtime scaling test is automated to the point of being able to run the entire test from running a script.
The relevant results of the test are output as a result of the test.

@kate-osborn For the sake of automation, do you think we can adjust this test to use a single cluster? Right now it uses a 10 node cluster to ensure NGF is running multiple Pods on one node, and a 25 node cluster to ensure NGF runs 1 Pod per node.
Maybe we run with a 10 node cluster and run one test with 10 NGF Pods, and one test with 25 NGF pods. This way our pipeline doesn't need to manage two clusters.

@sjberman yes, that sounds good


[Feature Request]: Make invoking the action panel by click easier.  (Allow for jiggle in pointing device while clicking)

What would you like to happen?
Currently to invoke the Action panel to select transforms you must have absolutely no movement of the pointing device or no sliding on a trackpad while clicking.  It would be a much improved user experience if a modest amount of jiggle would be ignored while clicking to allow the dialog to trigger.
Issue Priority
Priority: 3
Issue Component
Component: Hop Gui

Could you clarify what is meant here @usbrandon?  Which panel and how do you want to select transforms?


NCCL error when trying xmap on 4 T4 GPUs

Hi,
First, thank you for making this library available, I love it!
I tried to reproduce the example from the xmap documentation (https://jax.readthedocs.io/en/latest/notebooks/xmap_tutorial.html) on a VM with 4 T4 GPUs.
I am using conda and the requirements used are:
name: jax-env
channels:
  - defaults
  - conda-forge
dependencies:
  - python=3.8
  - numpy==1.19.5
  - pandas==1.2.5
  - six==1.15.0
  - pip=21.0.1
  - pip:
      - --find-links https://storage.googleapis.com/jax-releases/jax_releases.html
      - jax==0.3.2
      - optax==0.0.9
      - dm-haiku==0.0.6
      - regex==2022.1.18
      - tokenizers==0.11.5
      - tensorflow==2.6.0
      - neptune-client==0.14.3
      - biopython==1.79
      - jaxlib==0.3.0+cuda11.cudnn82
      - tqdm==4.56.0`

I launched this snippet of code (taken from the documentation):
import jax
import jax.numpy as jnp
import numpy as np
from jax import lax
from jax.experimental.maps import Mesh, xmap
from jax.nn import one_hot, relu
from jax.scipy.special import logsumexp

def named_predict(w1: jnp.ndarray, w2: jnp.ndarray, image: jnp.ndarray) -> jnp.ndarray:
    hidden = relu(lax.pdot(image, w1, "inputs"))
    logits = lax.pdot(hidden, w2, "hidden")
    return logits - logsumexp(logits, "classes")

def named_loss(
    w1: jnp.ndarray, w2: jnp.ndarray, images: jnp.ndarray, labels: jnp.ndarray
) -> jnp.ndarray:
    predictions = named_predict(w1, w2, images)
    num_classes = lax.psum(1, "classes")
    targets = one_hot(labels, num_classes, axis="classes")
    losses = lax.psum(targets * predictions, "classes")
    return -lax.pmean(losses, "batch")

if __name__ == "__main__":
    # Start script
    devices = jax.local_devices()
    print(f"Start test, detected devices: {devices}")

    # Generate dummy data
    w1 = jnp.zeros((784, 512))
    w2 = jnp.zeros((512, 10))
    images = jnp.zeros((128, 784))
    labels = jnp.zeros(128, dtype=jnp.int32)

    # Prepare xmapped function
    in_axes = [
        ["inputs", "hidden", ...],
        ["hidden", "classes", ...],
        ["batch", "inputs", ...],
        ["batch", ...],
    ]
    loss = xmap(
        named_loss,
        in_axes=in_axes,
        out_axes=[...],
        axis_resources={"batch": "x", "hidden": "y"},
    )

    # Prepare devices mesh
    num_devices = len(devices)
    assert num_devices >= 2 and num_devices % 2 == 0
    devices = np.array(jax.local_devices()).reshape((2, num_devices // 2))
    print(f"Device mesh: {devices}")

    # Run meshed computations
    with Mesh(devices, ("x", "y")):
        print("Loss computed on mesh: ", loss(w1, w2, images, labels))

    print("End of test.")

I got the following output:
Start test, detected devices: [GpuDevice(id=0, process_index=0), GpuDevice(id=1, process_index=0), GpuDevice(id=2, process_index=0), GpuDevice(id=3, process_index=0)]
/opt/conda/envs/jax-env/lib/python3.8/site-packages/jax/experimental/maps.py:492: UserWarning: xmap is an experimental feature and probably has bugs!
  warn("xmap is an experimental feature and probably has bugs!")
Device mesh: [[GpuDevice(id=0, process_index=0) GpuDevice(id=1, process_index=0)]
 [GpuDevice(id=2, process_index=0) GpuDevice(id=3, process_index=0)]]
2022-04-27 12:30:21.693000: E external/org_tensorflow/tensorflow/compiler/xla/pjrt/pjrt_stream_executor_client.cc:2124] Execution of replica 2 failed: INTERNAL: external/org_tensorflow/tensorflow/compiler/xla/service/gpu/nccl_utils.cc:326: NCCL operation ncclCommInitRank(comm.get(), nranks, id, rank) failed: unhandled system error
2022-04-27 12:30:21.693490: E external/org_tensorflow/tensorflow/compiler/xla/pjrt/pjrt_stream_executor_client.cc:2124] Execution of replica 3 failed: INTERNAL: external/org_tensorflow/tensorflow/compiler/xla/service/gpu/nccl_utils.cc:326: NCCL operation ncclCommInitRank(comm.get(), nranks, id, rank) failed: unhandled system error
2022-04-27 12:30:31.317787: E external/org_tensorflow/tensorflow/compiler/xla/service/gpu/nccl_utils.cc:144] This thread has been waiting for 10s and may be stuck:
2022-04-27 12:30:31.317860: E external/org_tensorflow/tensorflow/compiler/xla/service/gpu/nccl_utils.cc:144] This thread has been waiting for 10s and may be stuck:
2022-04-27 12:30:31.693344: F external/org_tensorflow/tensorflow/compiler/xla/pjrt/pjrt_stream_executor_client.cc:2264] Replicated computation launch failed, but not all replicas terminated. Aborting process to work around deadlock. Failure message (there may have been multiple failures, see the error log for all failures):

external/org_tensorflow/tensorflow/compiler/xla/service/gpu/nccl_utils.cc:326: NCCL operation ncclCommInitRank(comm.get(), nranks, id, rank) failed: unhandled system error
Aborted (core dumped)

If I change the version of Jax from 0.3.2 to 0.3.0 (without changing anything else), then I obtain a different error:
Start test, detected devices: [GpuDevice(id=0, process_index=0), GpuDevice(id=1, process_index=0), GpuDevice(id=2, process_index=0), GpuDevice(id=3, process_index=0)]
/opt/conda/envs/jax-env/lib/python3.8/site-packages/jax/experimental/maps.py:544: UserWarning: xmap is an experimental feature and probably has bugs!
  warn("xmap is an experimental feature and probably has bugs!")
Device mesh: [[GpuDevice(id=0, process_index=0) GpuDevice(id=1, process_index=0)]
 [GpuDevice(id=2, process_index=0) GpuDevice(id=3, process_index=0)]]
Traceback (most recent call last):
  File "scripts/xmap_test.py", line 62, in <module>
    with Mesh(devices, ("x", "y")):
AttributeError: __enter__

Please, do not hesitate if you need more information.
Thanks a lot!

@ranzenTom I ran into a similar problem as yours and I later found out that there was a mismatch between the CUDA version the driver was using (11.4) and the CUDA libraries I had loaded (11.1).

In my case, I work on a HPC cluster and I can load different versions of CUDA via environment modules. The fix was as simple as loading CUDA 11.4 via: module load cuda/11.4. I am not sure if this is your case, but I hope it helps.

Click here to see the example code that produced the error.
#!/usr/bin/env python3

import jax
import jax.numpy as jnp
import numpy as np

from jax.experimental.pjit import pjit
from jax.experimental.maps import Mesh
from jax.experimental import PartitionSpec

# Create device mesh
mesh = Mesh(np.array(jax.devices()).reshape((2, 2)), ("x", "y"))

# Create matrix and vector
M = jnp.eye(8)
v = jnp.arange(8).reshape((8, 1))

spec = PartitionSpec("x", "y")

f = pjit(jnp.dot,
         in_axis_resources=(spec, None),
         out_axis_resources=spec)

with mesh:
    output = f(M, M)

print(output)

Given there was no follow-up and we can't reproduce this, I'm going to declare the issue stale.
(Please retry with an up to date jax/jaxlib, if it's still a problem.)


Add multiple selectable attribute values

Actions before raising this issue

[X] I searched the existing issues and did not find anything similar.
[X] I read/searched the docs

Is your feature request related to a problem? Please describe.
Currently, the label attributes of cvat do not support multiple options. For example, checkbox can only select true or false, and radio can select only one value from multiple values. However, when labeling, you often need to select multiple values. For example, I have a label chart, and one of its attributes is chart_type, which contains multiple values (line, bar, pie, etc.). Some charts may contain multiple attributes at the same time. In this case, multiple selections are required. The current possible solution is to make each value a checkbox attribute, but this will increase the complexity of the attribute list.
Describe the solution you'd like
Add an attribute that can select multiple values
Describe alternatives you've considered
No response
Additional context
No response

#7500


Hotfix release for menu update

Making the menu changes PRed last night live.

@kave
@rosskarchner
@kurtw
@richaagarwal

Travis failure is the periodic Sheer indexing failure. Proceeding with merge.


windows does not display

1: Windows 10 can be compiled and run on the local device. Copy the exe to other devices to run as an administrator. You can see it in the task manager, but the program is not displayed.
Other devices: windows10 and windows7
astilectron: 0.55.0
electron: 11.4.3
{
"app_name": "ceshi",
"icon_path_darwin": "resources/icon.icns",
"icon_path_linux": "resources/icon.png",
"icon_path_windows": "resources/icon.ico"
}
2: Adding a signature still doesn't work

Did you add a proper logger using this option ? If not, could you add it ?
Once you've done it, could you open the exe in the terminal and paste logs output here?

What logs do you see when you run test.exe through the terminal ?

Found it, in the C:\Users\liuhedong\AppData\Roaming\test\vendor directory, electron-windows-amd64-v11.4.3.zip cannot be downloaded.
Can the download be turned off?
Copy electron-windows-amd64-v11.4.3.zip?

In China, you cannot open github.com without using a proxy.
Many users do not use proxies.
I want to copy electron-windows-amd64-v11.4.3.zip to C:\Users\liuhedong\AppData\Roaming\test\vendor directory, how to set it? Or set a download link.
Is it only possible to modify the source code?

The compilation includes electron, why do you need to download it?

Since you're using the bundler, you should use the bootstrap (check out the demo). In the code you've shared, you're not using the bootstrap, therefore bundler will be useless since it will download vendors every time.


How to set the initial data of the TimeFunction？

Once the TimeFunction defined then its initial data value is set to zero. But I want to use other initial data not zero

You can either

directly add values to it's data u.data[0]=....
Create an operator for it if the condition is fancy

You can check the CDs examples and tutorials for illustration that all use an initial condition

这是来自QQ邮箱的自动回复邮件。收到！

OK，I get it.Thank you very much  !
------------------ 原始邮件 ------------------
发件人:                                                                                "devitocodes/devito"                                                                                @.>;
发送时间: 2022年3月23日(星期三) 晚上6:25
@.>;
<EMAIL_ADDRESS>主题: Re: [devitocodes/devito] How to set the initial data of the TimeFunction？ (Issue #1886)
You can either
directly add values to it's data u.data[0]=....
Create an operator for it if the condition is fancy
You can check the CDs examples and tutorials for illustration that all use an initial condition
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

For example
https://github.com/devitocodes/devito/blob/master/examples/cfd/01_convection.ipynb


Flutter Test: scrollUntilVisible no longer works in Flutter 3.16.0

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Steps to reproduce

Ran tests in Flutter 3.13.6
All tests ran through
Upgraded Flutter to 3.16.0
Tests are failing when scrollUntilVisible was in use

Expected results
A Widget is located in a ListView. To find and verify it's visibility I used scrollUntilVisible because it's located on the bottom of the ListView.

Actual results
Test is failing because the expected item cannot be found.
Warning
Warning: A call to tap() with finder "Found 1 widget with type "TextButton": [
  TextButton(dependencies: [MediaQuery, _InheritedTheme, _LocalizationsScope-[GlobalKey#5d4ca], _ScrollableScope], state: _ButtonStyleState#30c27),
]" derived an Offset (Offset(400.0, 610.0)) that would not hit test on the specified widget.
Maybe the widget is actually off-screen, or another widget is obscuring it, or the widget cannot receive pointer events.
Indeed, Offset(400.0, 610.0) is outside the bounds of the root of the render tree, Size(800.0, 600.0).
The finder corresponds to this RenderBox: RenderSemanticsAnnotations#757d8 relayoutBoundary=up7
The hit test result at that offset is: HitTestResult(HitTestEntry<HitTestTarget>#139be(_ReusableRenderView#f5ee3), HitTestEntry<HitTestTarget>#bec53(<AutomatedTestWidgetsFlutterBinding>))
#0      WidgetController._getElementPoint (package:flutter_test/src/controller.dart:1409:25)
#1      WidgetController.getCenter (package:flutter_test/src/controller.dart:1292:12)
#2      WidgetController.tap (package:flutter_test/src/controller.dart:613:18)
#3      main.<anonymous closure> (file:///C:/path/to/flutter/App/test/screens/settings/settings_screen_test.dart:36:18)
<asynchronous suspension>
#4      testWidgets.<anonymous closure>.<anonymous closure> (package:flutter_test/src/widget_tester.dart:168:15)
<asynchronous suspension>
#5      TestWidgetsFlutterBinding._runTestBody (package:flutter_test/src/binding.dart:1013:5)
<asynchronous suspension>
#6      StackZoneSpecification._registerCallback.<anonymous closure> (package:stack_trace/src/stack_zone_specification.dart:114:42)
<asynchronous suspension>
To silence this warning, pass "warnIfMissed: false" to "tap()".
To make this warning fatal, set WidgetController.hitTestWarningShouldBeFatal to true.

Code sample
Code sample
testWidgets('SettingsScreen: logout', (WidgetTester tester) async {
    await loadWidget(tester);

    final buttonFinder = find.byType(TextButton);
    await tester.scrollUntilVisible(buttonFinder, 500); // error occurs here
    await tester.tap(buttonFinder);
    await tester.pumpAndSettle();

    verify(authenticationRepository.logoutUser());
    expect(find.byType(SettingsScreen), findsNothing);
    expect(find.byType(StartupScreen), findsOneWidget);
});

Flutter Doctor output
Doctor output
[√] Flutter (Channel stable, 3.16.0, on Microsoft Windows [Version 10.0.22621.2715], locale de-AT)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.7.5)
[√] Android Studio (version 2022.3)
[√] IntelliJ IDEA Ultimate Edition (version 2022.1)
[√] VS Code (version 1.84.2)
[√] Connected device (4 available)
[√] Network resources

• No issues found!

Hi @danagbemava-nc, thanks for the fast response!
I did some more research and stumbled across the error. It is due to the physics: isLoading ? const NeverScrollableScrollPhysics() : null. If I delete that, the test works. But I have not changed any code in this section - so it worked in the previous version of flutter.
You can find the code here. I have made some sections unrecognizable where the business logic is contained.
SettingsScreen
class SettingsScreen extends StatelessWidget {
  const SettingsScreen({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
            title: Text(AppLocalizations.of(context)?.settings_title ?? '')),
        body: const Shimmer(child: SettingsScreenBody()));
  }
}

class SettingsScreenBody extends StatelessWidget implements BaseScreenBody {
  const SettingsScreenBody({super.key});

  @override
  Widget build(BuildContext context) {
    return BlocProvider(
      create: (_) => SettingsBloc(
          authenticationRepository: context.read<AuthenticationRepository>(),
          settingsRepository: context.read<SettingsRepository>())
        ..add(SettingsFetchEvent()),
      child: Center(child: BlocBuilder<SettingsBloc, SettingsState>(
          builder: (context, settingsState) {
        if (settingsState is SettingsLogoutState) {
          WidgetsBinding.instance.addPostFrameCallback((_) {
            Navigator.pushAndRemoveUntil(
                context,
                MaterialPageRoute(builder: (context) => const StartupScreen()),
                ModalRoute.withName('/'));
          });
          return Container();
        } else {
          final isLoading = settingsState is SettingsLoadingState;

          return RefreshIndicator(
              onRefresh: () async => onRefresh(context),
              child: ListView(
                  physics:
                      isLoading ? const NeverScrollableScrollPhysics() : null,
                  children: [
                      // some children
                  ]));
        }
      })),
    );
  }

  @override
  Future<void> onRefresh(BuildContext context) async {
    context.read<SettingsBloc>().add(SettingsFetchEvent());
  }
}

SettingsBloc
class SettingsBloc extends Bloc<SettingsEvent, SettingsState> {
  final AuthenticationRepository authenticationRepository;
  final SettingsRepository settingsRepository;

  SettingsBloc(
      {required this.authenticationRepository,
      required this.settingsRepository})
      : super(SettingsLoadingState()) {
    on<SettingsFetchEvent>((_, emit) async => _onSettingsFetchEvent(emit));
    on<SettingsLogoutEvent>((_, emit) async => _onLogoutEvent(emit));
  }

  void _onSettingsFetchEvent(Emitter<SettingsState> emit) async {
    _emitLoadingState(emit);
    emit(SettingsState(someData: await settingsRepository.getSomeData()));
  }

  void _onLogoutEvent(Emitter<SettingsState> emit) {
    authenticationRepository.logoutUser();
    emit(SettingsLogoutState());
  }

  void _emitLoadingState(Emitter<SettingsState> emit) {
    emit(SettingsLoadingState());
  }
}

Test of SettingsScreen
testWidgets('SettingsScreen: logout', (WidgetTester tester) async {
    // mock generated with @GenerateNiceMocks([MockSpec<AuthenticationRepository>()])
    final authenticationRepository = MockAuthenticationRepository();
    final settingsRepository = MockSettingsRepository();

    await tester.pumpWidget(MultiRepositoryProvider(providers: [
      RepositoryProvider<AuthenticationRepository>(
          create: (context) => authenticationRepository),
      RepositoryProvider<SettingsRepository>(
          create: (context) => settingsRepository),
    ], child: const MaterialApp(home: SettingsScreenBody())));

    final buttonFinder = find.byType(TextButton);
    await tester.scrollUntilVisible(buttonFinder, 500);
    await tester.tap(buttonFinder);
    await tester.pumpAndSettle();

    verify(authenticationRepository.logoutUser());
    expect(find.byType(SettingsScreen), findsNothing);
    expect(find.byType(StartupScreen), findsOneWidget);
});

Is this sufficient or should I recreate everything in a separate project?

Hi @tformatix, would it be possible for you to provide a test case without any third-party packages? This would help us to know if the failure is indeed caused by something in the framework.

Hi @danagbemava-nc, I can't reproduce it without third party packages. Therefore it must be caused by flutter_bloc or mockito.
I think we can close this issue at this stage, sorry for taking your time.

That's alright, if you do manage to come up with a sample that doesn't involve any third-party packages, do leave a comment below with the sample and I will reopen this.
Thank you


Cannot find module './question'

I copied and pasted the code then tested, but it doesn't work.
{
"errorMessage": "Cannot find module './question'",
"errorType": "Error",
"stackTrace": [
"Function.Module._load (module.js:417:25)",
"Module.require (module.js:497:17)",
"require (internal/module.js:20:19)",
"Object. (/var/task/index.js:16:19)",
"Module._compile (module.js:570:32)",
"Object.Module._extensions..js (module.js:579:10)",
"Module.load (module.js:487:32)",
"tryModuleLoad (module.js:446:12)",
"Function.Module._load (module.js:438:3)"
]
}
when I call this function in ASK, it doesn't retrun anything.
Anyone here can help me?

I don't see the './question' module in the index.js:
https://github.com/alexa/skill-sample-nodejs-fact/blob/en-US/lambda/custom/index.js
Where do you see that code? I don't think this is the right Repo.

The fact sample skill doesn’t load any modules called question, but the trivia sample skill does.  The trivia skill has a different set of instructions to deploy to Lambda. You’ll either have to upload a zip file or use the ask cli to push up your code.
Sent with GitHawk

I fixed this issue by creating a new project folder, thank you guys. I will close this question


excuse me, this is support for Mx 64 2.0 right?

Sorry, Now I understand. but I need more questions about the position reference to ? centimeter, motor value, or something

The position is in radians.


Error after update: Cannot read property '$id' of undefined

I updated to 1.5.0 and take this error:
    at arguments.(anonymous function) (chrome-extension://ighdmehidhipcmcojjgiloacoafjmpfk/dist/hint.js:2001:19)
    at Scope.$digest (http://localhost:3000/bower_components/angular/angular.js:16664:23)
    at Scope.scopePrototype.$digest (chrome-extension://ighdmehidhipcmcojjgiloacoafjmpfk/dist/hint.js:2016:23)
    at Scope.$apply (http://localhost:3000/bower_components/angular/angular.js:16928:24)
    at Scope.scopePrototype.$apply (chrome-extension://ighdmehidhipcmcojjgiloacoafjmpfk/dist/hint.js:2079:22)
    at bootstrapApply (http://localhost:3000/bower_components/angular/angular.js:1694:15)
    at Object.invoke (http://localhost:3000/bower_components/angular/angular.js:4604:19)
    at doBootstrap (http://localhost:3000/bower_components/angular/angular.js:1692:14)
    at Object.angular.resumeBootstrap (http://localhost:3000/bower_components/angular/angular.js:1720:12)
    at maybeBootstrap (chrome-extension://ighdmehidhipcmcojjgiloacoafjmpfk/dist/hint.js:569:11)```

Can you please provide a demo of the problem in a plnkr.co or similar?

It might be related to batarang (see https://github.com/angular/batarang/issues/285).

it is a problem with AngularJS Batarang.
if I disabled Batarang it works ok.

That's is probably something that needs to be fixed in batarang.
But we need a demo (or at least a live example of something failing with batarang enabled).

Let's focus the discussion in https://github.com/angular/batarang/issues/285


Add RazorCodeBackground classification

Fixes: https://github.com/dotnet/aspnetcore/issues/29601

Closing this out since platform limitations prevented us from implementing this the way that we want to.

Safe to delete the branch or would it best to preserve for future reference?

I'll keep it locally in case we need it later.


chore(deps): update ci dependencies

This PR contains the following updates:

Package
Type
Update
Change

common-dev-assets

digest
5ef1022 -> a66adc9

github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper
require
minor
v1.22.0 -> v1.23.0

Release Notes

terraform-ibm-modules/ibmcloud-terratest-wrapper (github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper)
v1.23.0
Compare Source
Features

added json comparison functions (#593) (1781c81)

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

/run pipeline

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


remove archive button if data is already archived

Currently I cannot tell if a data set has already been archived

well, It does show that for one of the data sets I archived, but not for another. It may be that the first data set I tried did not actually archive.

once I refreshed the "see archived data link" disappeared.

I tried to recreate this, but I couldn't. I've made substantial changes yesterday on data provisioning and archiving part, so it's possible that some kind of backward incompatibility has caused it. Can you re-run the task again?

when I go to the process page, all finished apps still have the option to archive their data even though they have already been archived. When I click archive, the green archive button disappears and it now says see archived dataset. When I refresh the page, it goes back to showing the green archive button again.

Currently, I am using task.config to store the archive status. The ability to update the task is meant for admin, so I need to find a different way to do this.
I am planning to introduce a new collection to store all data provenance information. Most likely, this issue need to be fully resolved as part of that update.


Flux in Short: update with new features

link to OCI support
mention new security features?
new integrations?

What else?

Refer to https://fluxcd.io/flux/flux-e2e/ as well?

Mention UIs


Add Generated Code comment and attribute

Add autogenerated indicators

This will this comment to the beginning of files:
// <auto-generated/>

and this attribute to generated classes:
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Dunet.Generator", "1.12.0-alpha1+93c3e1da5c20f1834c4f972af510a84545b96ae6")]

This is tested in this branch: https://github.com/hwoodiwiss/DunetCoverletTest/tree/test-dunet-update
Workflow run with successful build: https://github.com/hwoodiwiss/DunetCoverletTest/actions/runs/7601009687/job/20699905213#step:4:56

Closes #214


feat(select): add compareWith property

Short description of what this resolves:
Using objects as values was only supported by comparing object equality (===) but not by content. This PR adds a compareWith property that accepts a property name (ie id) or a function of the shape (o1, o2) => boolean that is used to determine equality.
Changes proposed in this pull request:

Add compareWith prop
Move internal option comparison logic to its own function: compareOptions

Ionic Version: 4.0.0
Fixes: #14598

ETA for this?

@remisture 🤷♂ Whenever the Ionic team reviews it. Hard to say..

Thank you for the PR!
I have this added to review for 4.1.0. We were working out the process for how we would move forward with features so we haven't been adding them, but we are now! Although I'd almost consider this a fix as it's a regression. I have added myself and some other coworkers to review this.
My only request at first glance is could you please move the test out of the preview/ folder - maybe we could change the basic test? We're planning to remove the preview folders that's why I ask. 🙂

Will do @brandyscarney!

Thank you @zakton5 !


Popup send eth

add send eth page in popup

Error 'Uncaught (in promise) Error: Send user operation fail' on popup closure.

TODO: Retrieve the latest UserOpHash from Extension's Storage and fetch related information from Bundler in the Popup.
Disable the Send button if the previous userOp is still pending on-chain (null result from eth_getUserOperationByHash).


Basic RBAC

Desired Behavior
Stream Registry should provide basic RBAC.
Benefits

Pluggable authentication mechanism for various authentication backends
Basic, extensible role mechanism to allow administrators to implement RBAC policies

cc: @teabot

Dupe of #23


Support device path mapping and permission in ctr

issue: https://github.com/containerd/containerd/issues/5046
Usage:
UNIX:
      ctr run --device=<PATH>
      ctr run --device=<HOST PATH>:<CONTAINER PATH>
      ctr run --device=<HOST PATH>:<CONTAINER PATH>:<PERMISSION>

Window: (Support cli to set CONTAINER PATH, but do not use)
     ctr run --device=IDType://ID

Use the : symbol as the device separator. In this issue https://github.com/moby/moby/issues/8604, it is discussed that it is difficult to design this separator in the cli. Currently, docker only supports the : symbol。

Thanks for the update.
Also, some CI jobs are failing. I think its unrelated to this change.

@akhilerm PTAL


loader: attach programs using tcx

For more detailed descriptions, please refer to the individual commits.
On a high level, this PR:

attaches TC progs using bpf_link (tcx) respecting upgrade and downgrade paths
uses per-endpoint bpffs dirs, at e.g. /sys/fs/bpf/cilium/endpoints/12345/links/cil_to_container
adds netns-driven tests for attaching skb progs via tcx
adds a Helm flag (enableTXC) to optionally disable the feature to ease integration with other tools

Closes https://github.com/cilium/cilium/issues/27632

Connectivity tests fail because currently the TCX API in cilium/ebpf doesn't do a feature test, so on kernels without TCX support creating links fails and we don't fall back to the old behavior. Opened https://github.com/cilium/ebpf/pull/1294 to add a feature test in ebpf-go.
The build every commit action will continue to fail because I've separate commits for vendoring the lib changes and fixing the query programs API breakage. I'll keep them separate so the fix can easily be applied to the renovate PR that updates the ebpf-go dependency.

/test

/test

/test

Needs rebase on top of https://github.com/cilium/cilium/pull/31553 when merged.

ACK for Timos refactorings. Can't actually give the PR real approval, because it's my own PR :grin:

/test

/test

/test

/test

/test

/test

/test

/test

Overall LGTM, just a couple of nits. Wrt docs, should we mention/explain that enabling tcx will skip any other existing legacy tc attachments?

/test

/test

Some minor comments/questions about the code otherwise lgtm.

/test

I wonder if this is something we should elevate to release-note/major given the potential performance impacts. This seems like a great thing to tout in the release blog.

:wave: looking at https://github.com/cilium/cilium/actions/runs/8931592322. What's the current upgrade/downgrade impact of this feature - in particular without https://github.com/cilium/cilium/pull/32228 merged? Do we need to switch some of the bpf-next downgrade CI tests to bpf.enableTCX=false, until v1.15 is sorted?

👋 looking at https://github.com/cilium/cilium/actions/runs/8931592322. What's the current upgrade/downgrade impact of this feature - in particular without #32228 backported? Do we need to switch some of the bpf-next downgrade CI tests to bpf.enableTCX=false, until v1.15 is sorted?

I just did the backport of mentioned PR in https://github.com/cilium/cilium/pull/32337 . The ci-ipsec-upgrade test I've seen sporadically fail on various kernels though, not only bpf-next.

What's the current upgrade/downgrade impact of this feature - in particular without https://github.com/cilium/cilium/pull/32228 backported?

Without the backport there is a tiny race for downgrade where tcx gets removed and legacy tc installed so for a short window there is nothing attached. With the backport it's atomic. The upgrade is also atomic, that is, tcx is installed and then tc legacy removed (if tcx is installed successfully it takes precedence and legacy tc is not run). Lets see if the backport helps.

What's the current upgrade/downgrade impact of this feature - in particular without #32228 backported?

Without the backport there is a tiny race for downgrade where tcx gets removed and legacy tc installed so for a short window there is nothing attached. With the backport it's atomic. The upgrade is also atomic, that is, tcx is installed and then tc legacy removed (if tcx is installed successfully it takes precedence and legacy tc is not run). Lets see if the backport helps.

I'm at attempt 7 for the bpf-next downgrade from main to v1.15 in https://github.com/cilium/cilium/actions/runs/8927670014, which includes the txc work. And as the workflow is meant to be sensitive enough for such tiny blips, I'm very inclined to blame this race window ;).
Can we please flip the default to bpf.enableTCX=false, until the next v1.15 patch release is through and we can offer a smooth downgrade?

What's the current upgrade/downgrade impact of this feature - in particular without #32228 backported?

Without the backport there is a tiny race for downgrade where tcx gets removed and legacy tc installed so for a short window there is nothing attached. With the backport it's atomic. The upgrade is also atomic, that is, tcx is installed and then tc legacy removed (if tcx is installed successfully it takes precedence and legacy tc is not run). Lets see if the backport helps.

I'm at attempt 7 for the bpf-next downgrade from main to v1.15 in https://github.com/cilium/cilium/actions/runs/8927670014, which includes the txc work. And as the workflow is meant to be sensitive enough for such tiny blips, I'm very inclined to blame this race window ;).
Can we please flip the default to bpf.enableTCX=false, until the next v1.15 patch release is through and we can offer a smooth downgrade?

Ah yes, I thought the downgrade tests would test against latest v1.15 branch, not patch release. Cc @ti-mo lets default to false until then wdyt?

(PR is here https://github.com/cilium/cilium/pull/32342 )

@julianwiedmann I've retriggered the job you referenced previously and it is now passing: https://github.com/cilium/cilium/actions/runs/8927670014/job/24559664765. Your 7 runs prior to that pulled a v1.15 image before we merged the seamless downgrade path 4h ago. So I don't think bpf.enableTCX=false is necessary anymore.

@julianwiedmann I've retriggered the job you referenced previously and it is now passing: https://github.com/cilium/cilium/actions/runs/8927670014/job/24559664765. Your 7 runs prior to that pulled a v1.15 image before we merged the seamless downgrade path 4h ago. So I don't think bpf.enableTCX=false is necessary anymore. I'll also rerun it a couple times more to gather some additional data points.

:shrug: I give up on understanding the downgrade tests. So the minor downgrade is running against the previous minor's branch tip, and not the previous minor's current release. And from a quick git archaeology, that was always the case? Then we should be good indeed. Sorry for the noise. Thank you @rgo3 for keeping me honest!

I feel the same :sweat_smile:.
But yes, I believe and have seen in the CI logs that we install previous minor's branch tip, in this case v1.15. To me that also makes the most sense for the minor tests, given the previous minor's branch tip will be the code we support minor downgrades to once released. Otherwise, we would have to backport things, wait until it's merged and released, and only then can move forward with the PR for main (something we did in the past, including this PR), which always felt quite tedious to me.