Document mapping type name can't start with '_', found: [_suggest]"}

Hi, thanks for creating this library!
I'm having trouble getting autocomplete/suggest to work, almost certainly user error on my part.
I'm following the example in activerecord_mapping_completion.rb.  But the elasticsearch server (6.4.2) doesn't seem to like mappings with names starting with underscore:
Error:
BookTest#test_autocomplete:
Elasticsearch::Transport::Transport::Errors::BadRequest: [400] {"error":{"root_cause":[{"type":"invalid_type_name_exception","reason":"Document mapping type name can't start with '_', found: [_suggest]"}],"type":"invalid_type_name_exception","reason":"Document mapping type name can't start with '_', found: [_suggest]"},"status":400}
    app/models/book.rb:96:in `autocomplete'
    test/models/book_test.rb:26:in `block in <class:BookTest>'

My mapping definition looks like the following:
  mapping do
    indexes :name, type: 'text' do
      indexes :suggest, type: 'completion'
    end

    indexes :id, type: 'long'
    indexes :user_id, type: 'long'
    indexes :url, type: 'text'
  end

Which results in:
{
  "books-test" : {
    "mappings" : {
      "book" : {
        "properties" : {
          "created_at" : {
            "type" : "date"
          },
          "id" : {
            "type" : "long"
          },
          "name" : {
            "type" : "text",
            "fields" : {
              "suggest" : {
                "type" : "completion",
                "analyzer" : "simple",
                "preserve_separators" : true,
                "preserve_position_increments" : true,
                "max_input_length" : 50
              }
            }
          },
          "updated_at" : {
            "type" : "date"
          },
          "url" : {
            "type" : "text"
          },
          "user_id" : {
            "type" : "long"
          }
        }
      }
    }
  }
}

Any idea what I might be doing wrong?

Hi @armhold Would you mind sharing the code that leads to the error? I.e. the code surrounding test/models/book_test.rb:26 and the code in the method BookTest#test_autocomplete.
Thanks!

Hi @estolfo thanks for your help.
In an effort to eliminate errors on my part, I'm now running the article example directly (I had to re-tool my project a bit and add libs+gems for sqlite3 and 'ansi' that the example uses). My only change to that file is to pass in the url for elasticsearch like:
Article.__elasticsearch__.client = Elasticsearch::Client.new url: 'elasticsearch:9200', log: true

and I am still getting a similar error:
2018-11-07 13:47:46 +0000: POST http://elasticsearch:9200/articles/_suggest [status:400, request:0.011s, query:N/A]
2018-11-07 13:47:46 +0000: > {"articles":{"text":"foo","completion":{"field":"title.suggest"}}}
2018-11-07 13:47:46 +0000: < {"error":{"root_cause":[{"type":"invalid_type_name_exception","reason":"Document mapping type name can't start with '_', found: [_suggest]"}],"type":"invalid_type_name_exception","reason":"Document mapping type name can't start with '_', found: [_suggest]"},"status":400}
2018-11-07 13:47:46 +0000: [400] {"error":{"root_cause":[{"type":"invalid_type_name_exception","reason":"Document mapping type name can't start with '_', found: [_suggest]"}],"type":"invalid_type_name_exception","reason":"Document mapping type name can't start with '_', found: [_suggest]"},"status":400}
Traceback (most recent call last):
	5: from app/models/article.rb:53:in `<main>'
	4: from /usr/local/bundle/gems/elasticsearch-api-6.1.0/lib/elasticsearch/api/actions/suggest.rb:42:in `suggest'
	3: from /usr/local/bundle/gems/elasticsearch-transport-6.1.0/lib/elasticsearch/transport/client.rb:131:in `perform_request'
	2: from /usr/local/bundle/gems/elasticsearch-transport-6.1.0/lib/elasticsearch/transport/transport/http/faraday.rb:20:in `perform_request'
	1: from /usr/local/bundle/gems/elasticsearch-transport-6.1.0/lib/elasticsearch/transport/transport/base.rb:323:in `perform_request'
/usr/local/bundle/gems/elasticsearch-transport-6.1.0/lib/elasticsearch/transport/transport/base.rb:205:in `__raise_transport_error': [400] {"error":{"root_cause":[{"type":"invalid_type_name_exception","reason":"Document mapping type name can't start with '_', found: [_suggest]"}],"type":"invalid_type_name_exception","reason":"Document mapping type name can't start with '_', found: [_suggest]"},"status":400} (Elasticsearch::Transport::Transport::Errors::BadRequest)

At this point I tend to suspect a mismatch between the elasticsearch server (6.4.2) and the gems I am specifying. bundle install is showing me the following:
Using elasticsearch-api 6.1.0
Using elasticsearch-transport 6.1.0
Using elasticsearch 6.1.0
Using elasticsearch-model 6.0.0
Using elasticsearch-rails 6.0.0

Is this a compatible configuration (there are apparently no released 6.1.x gems for -model and -rails)?
If it's helpful, I can carve out my project into a minimal rails project, Gemfile, Dockerfile, etc.  Thanks again for your time on this.

Hi @armhold
As per this issue https://github.com/elastic/elasticsearch/pull/20305, the separate _suggest endpoint has been deprecated. I would recommend using search instead and sending the suggest criteria in the body. I will update the example you referenced to reflect this deprecation. Let me know if that makes sense.
Please see this documentation for how to construct the search query to retrieve suggestions: https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters.html

Thank you @estolfo, I see what I need to do now.
Shouldn't the suggest method also be updated to reflect this deprecation? My initial problem was in calling that code, getting a similar error. Thank you.

Hi @armhold
I've added a deprecation tag to the documentation in this commit: https://github.com/elastic/elasticsearch-ruby/commit/34d4633e3513f383b227f64a5a0b0dc049308ddb
I will leave the method as-is, in case the gem is being used with an older version of elasticsearch.
If everything is sorted on your end, may I close this issue? Thanks!

Closing, thank you @estolfo !

my pleasure @armhold !


Internal error while type checking

Environment data

Language Server version: v2021.4.3
OS and version: Ubuntu 20.04.2 LTS
Python version (& distribution if applicable, e.g. Anaconda): 3.8.5

Expected behaviour
No internal error while type checking.
Actual behaviour
An internal error occurred while type checking file "/home/lindo/Develop/radar-ml/sgan.py": Error: Debug Failure. False expression.
at a.lock (/home/lindo/.vscode-server/extensions/ms-python.vscode-pylance-2021.4.3/dist/pyright-internal/src/analyzer/typeVarMap.ts:238:9)
at validateFunctionArgumentTypes (/home/lindo/.vscode-server/extensions/ms-python.vscode-pylance-2021.4.3/dist/pyright-internal/src/analyzer/typeEvaluator.ts:8080:24)
at callback (/home/lindo/.vscode-server/extensions/ms-python.vscode-pylance-2021.4.3/dist/pyright-internal/src/analyzer/typeEvaluator.ts:6349:28)
at useSpeculativeMode (/home/lindo/.vscode-server/extensions/ms-python.vscode-pylance-2021.4.3/dist/pyright-internal/src/analyzer/typeEvaluator.ts:17893:20)
at validateOverloadsWithExpandedTypes (/home/lindo/.vscode-server/extensions/ms-python.vscode-pylance-2021.4.3/dist/pyright-internal/src/analyzer/typeEvaluator.ts:6347:17)
at validateOverloadedFunctionArguments (/home/lindo/.vscode-server/extensions/ms-python.vscode-pylance-2021.4.3/dist/pyright-internal/src/analyzer/typeEvaluator.ts:6421:32)
at callback (/home/lindo/.vscode-server/extensions/ms-python.vscode-pylance-2021.4.3/dist/pyright-internal/src/analyzer/typeEvaluator.ts:7042:48)
at expandSubtype (/home/lindo/.vscode-server/extensions/ms-python.vscode-pylance-2021.4.3/dist/pyright-internal/src/analyzer/typeEvaluator.ts:3310:41)
at mapSubtypesExpandTypeVars (/home/lindo/.vscode-server/extensions/ms-python.vscode-pylance-2021.4.3/dist/pyright-internal/src/analyzer/typeEvaluator.ts:3326:13)
at ft (/home/lindo/.vscode-server/extensions/ms-python.vscode-pylance-2021.4.3/dist/pyright-internal/src/analyzer/typeEvaluator.ts:6960:28)
Logs

See problem message above from Visual Studio Code.

Code Snippet / Additional information

XXX

Thanks for the bug report. This appears to be a duplicate of https://github.com/microsoft/pylance-release/issues/1218, which I've already fixed.

This issue has been fixed in version 2021.5.0, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/main/CHANGELOG.md#202150-5-may-2021


Support similarity_score_threshold retrieval with Chroma

Fixes https://github.com/hwchase17/langchain/issues/5067
Verified the following code now works correctly:
db = Chroma(persist_directory=index_directory(index_name), embedding_function=embeddings)
retriever = db.as_retriever(search_type="similarity_score_threshold", search_kwargs={"score_threshold": 0.4})
docs = retriever.get_relevant_documents(query)

What is the range for "score_threshold"? Can you explain a little bit, please?
Is there also an option, to see how much of a score does source have? So I can easily decide what score_threshold should I use?
@jiayao


[BUG]orphan pod groups should be cleaned when scheduler restart

What happened:
When pod was deleted during scheduler's restarting, podDelete event will not be triggered.
So the podgroup cr will continue exist although the pod has been deleted.
What you expected to happen:
When scheduler restarts, maybe we need to clean orphan pod groups.

// Now restart the sheduler
$ k get pg
NAME       AGE
gang-job   7m34s

Anything else we need to know?:
Environment:

App version:
Kubernetes version (use kubectl version):
Install details (e.g. helm install args):
Node environment (for koordlet/runtime-proxy issue):

Containerd/Docker version:
OS version:
Kernal version:
Cgroup driver: cgroupfs/systemd

Others:

/assign buptcozy

Thanks for reporting the issue. I think this is indeed a problem. we will try fix it.

PodGroups are now no longer created if the Pod declares the gang spec using the annotation


Sorry i forgot some Files (De_Translation)

Pull request type

Please check the type of change your PR introduces:

[ ] Bugfix
[ ] New feature or enhancement
[ ] UI change (please include screenshot!)
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Documentation content changes
[ ] Internationalization and localization
[ ] Other (please describe):

What is the current behavior?

Issue Number: N/A
What is the new behavior?

Other information

Quality check
Before creating this PR:

[ ] Did you follow the code style guideline as described in CONTRIBUTING.md
[ ] Did you build the app and test your changes?
[ ] Did you check for accessibility? On Windows, you can use Accessibility Insights for this.
[ ] Did you verify that the change work in Release build configuration
[ ] Did you verify that all unit tests pass
[ ] If necessary and if possible, did you verify your changes on:

[ ] Windows
[ ] macOS
[ ] Linux

How did macos fail ??

How did macos fail ??

The CI seems flaky. I don't think your changes are responsible for it.


[OFFICIAL WEBSITE GITHUB SIGNIN ERROR]  An error has occurred. There was an error with your credentials, if you are using github, please check if your email is public.

An error has occurred.
There was an error with your credentials, if you are using github, please check if your email is public.
While trying to signin with github getting this issue even tho i have authorized from my side, so is it github issue or issue from langflow server? Tried 3 times to signin got same issue so asking here :-))
Will try tomorrow too but if it is fault from langflow side then i hope it gets fixed soon

Btw my email id is from google's gmail and is public, not using any personal email id or selfhosted mail server or temp email aliases.First time facing this issue so thought while signin with github so created issue

check if your Github account email is set to public, by default it's not


Hover and opacity effects included

Hover, opacity and other CSS effects included in the buttons.

There's a small thing, Those who have created PRs, for the last time create a new branch with your name and then raise a Pull Request.


Ongoing Improvements: Persona handling

Issue to track research/efforts regarding persona handling within tldw
Leaderboards:

https://livebench.ai/
https://huggingface.co/spaces/flowers-team/StickToYourRoleLeaderboard
https://huggingface.co/spaces/DontPlanToEnd/UGI-Leaderboard
https://novelchallenge.github.io/index.html
https://aider.chat/docs/leaderboards/

Relevant Research:

https://arxiv.org/abs/2311.10054

https://arxiv.org/abs/2411.13405
https://arxiv.org/abs/2411.00027

https://github.com/semperai/amica


Cannot put constants in value

The value attribute should be an arbitrary expression, including a constant, for example, the following should be valid value: 2012, but causes an error:
    qualifier:
      - property: P585
        value: 2012
        calendar: Q1985727
        precision: year
        time_zone: 0

fixed it in the backend

While resolving a cell, when the cell index of a qualifier is empty an exception is generated which is not caught. This results in not checking the qualifiers which are next in order resulting in not getting highlighted.

Resolved & Tested


Switch on JMustache

Very similar to Handlebars Java but much more lightweight footprint and faster since Handlebars.java uses Rhino + handlebars.js while JMustache is a pure Java implementation.

Done


Revert zstd

May be a memory leak

The code related to zst itself doesn't show any obvious signs of memory leaks. If there is a memory leak, it is likely due to an issue in the original code.

Memory leak is most likely in the library itself: https://github.com/commaai/openpilot/pull/33110


add HTTPS support and let'sencrypt cert generation via duckdns

Is still a WIP, i've opened the PR to have some suggestion (sorry for the cascading-promises in lecerts i was just too noob to implement await in coffeescript)
@BoLaMN can you suggest a way to intercept and send our IP to a DNS query via the module you already made?
actual usage:
create and store in key.key and cert.cert file an SSL valid certificate (PC must be online)
--acsurl="https://xxxx.duckdns.org" --certonly --duckdnstoken="xxxx"
than normal start with an server HTTPS server using the stored key.key and cert.cert
--acsurl="https://xxxx.duckdns.org" --https

As i didn't get how to use the builtin dns server (dns.coffee) i've added a server via another node lib https://github.com/BoLaMN/tch-exploit/pull/10/commits/538bdfe9ceb02fd72ebb3ce69df9b6338b2c0aee let me know if looks good for you, the dns server will be started via --dnsserver and will resolve all queries to tch-exploit's ip


Add support for non-deterministic games to AlphaZero

Addresses the issue #774.

@christianjans can you take a look at the LibTorch AZ changes?

Thank @christianjans !
I will contact the prople I know using it but generally it is ok to be backward-incompatible on the master branch, and we make this clear. For more stability the best is to use a release branch or fork.
Speaking of release we are hoping to release 1.1 in early March which this should make it in for. So then these new changes will be associated with that release branch.
I agree though that the code should adhere to the Google style guide just like the rest of the code base, so please fix these if there are any inconsistencies. I will go through the code tomorrow if you want to give a few examples. Also the fixes to the examples should also be made. Thanks.

@christianjans Thanks for the review! I now made the modifications you suggested, and also used the google style in my IDE to reformat my changes. I think they now look good. I corrected the argument description to reflect that MLP is also available as an option.
Also I modified alpha_zero_torch_game_example.cc as you suggested. Though it is important to note that, that was not enough to make it work with non deterministic games. Basically in non-deterministic games, actions can be performed by bots or chosen by state outcomes (in chance nodes). This made it hard to work with the current structure, so I modified it a bit. I deciding to commit this version as the previous version just does not work and it does not make sense to have it in the repository. I am open to different ideas to make it work though, if my changes are suboptimal here.
Finally, I successfully trained it to play backgammon, and it is able to beat a random player 100% of the time and vanilla MCTS more than 80% of the time. Interestingly I discovered that using GPU is actually slower when using such a small network (MLP, hidden size 128, num layers 2) so I am now running it on the CPU. Also in my case, the C++ version is only 2 times faster than the python version. Right now I started a long run with the python version, with 500 max simulations, which will take some time. I am looking forward to playing against it to test it :)

Hi all.  I'm interested in adapting the non-deterministic backgammon game to an incomplete information game.  I've managed to get the build_and_run_tests.sh to complete successfully under a new installation of Ubuntu.  I am struggling with running backgammon in both python and c++.  Can you share example scripts you ran to train/play backgammon? I would greatly appreciate any help and apologize for my ignorance.

Hi @gdsmithwmi,
Are you trying AlphaZero? If so, have you read these docs? https://github.com/deepmind/open_spiel/blob/master/docs/alpha_zero.md
It might be best to either open a new issue or try following up on this thread: https://github.com/deepmind/open_spiel/issues/774  (rather than this closed PR thread).

Thanks @lanctot I should have been clearer, I am trying AlphaZero.
I have read the docs, but I'll poke through again, if that doesn't work I'll try #774.
Thanks for your patience.

Of course. Maybe you can clarify about which version of AlphaZero you'd like to run: the python TF version, or the C++-based LibTorch version?

Hi again.  I was able to get the C++ LibTorch version running for
backgammon with the help of the documentation you pointed me to.
The secret is to use the --nn_model='mlp' flag, which I figured out from
reading through the thread.
I would really like to use python/TF as I am more familiar with both.
However, the "generic" alpha_zero.py script does not appear to be able to
handle
games with chance nodes.  I'm almost certainly missing something.
On Fri, Sep 23, 2022 at 1:59 PM lanctot @.***> wrote:

Of course. Maybe you can clarify about which version of AlphaZero you'd
like to run: the python TF version, or the C++-based LibTorch version?
—
Reply to this email directly, view it on GitHub
https://github.com/deepmind/open_spiel/pull/776#issuecomment-1256620470,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANHIBF2K4UWHGRYW6WDT373V7YD2VANCNFSM5M5IULCA
.
You are receiving this because you were mentioned.Message ID:
@.***>

Hmm, @egeozsoy added support to chance nodes to both C++ and Python MCTS, so I surprised to hear that. Can you post the error?

Sure, thanks for the help.  Here is what I try to run.  And below the
output.  I may also not have cuda installed correctly
as my running C++/torch version also does not appear to be using GPU
export PYTHONPATH=$PYTHONPATH:/home/me/open_spiel
export PYTHONPATH=$PYTHONPATH:/home/me/open_spiel/build/python
echo $PYTHONPATH
python3 open_spiel/python/examples/alpha_zero.py --game backgammon
--nn_model mlp actors 4
2022-09-24 13:55:39.871345: I
tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary
is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the
following CPU instructions in performance-critical operations:  AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate
compiler flags.
2022-09-24 13:55:39.945596: W
tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not
load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0:
cannot open shared object file: No such file or directory
2022-09-24 13:55:39.945613: I
tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart
dlerror if you do not have a GPU set up on your machine.
2022-09-24 13:55:39.960016: E
tensorflow/stream_executor/cuda/cuda_blas.cc:2981] Unable to register
cuBLAS factory: Attempting to register factory for plugin cuBLAS when one
has already been registered
2022-09-24 13:55:40.277131: W
tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not
load dynamic library 'libnvinfer.so.7'; dlerror: libnvinfer.so.7: cannot
open shared object file: No such file or directory
2022-09-24 13:55:40.277165: W
tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not
load dynamic library 'libnvinfer_plugin.so.7'; dlerror:
libnvinfer_plugin.so.7: cannot open shared object file: No such file or
directory
2022-09-24 13:55:40.277171: W
tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning:
Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU
with TensorRT, please make sure the missing libraries mentioned above are
installed properly.
2022-09-24 13:55:40.946311: I
tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:980] successful NUMA
node read from SysFS had negative value (-1), but there must be at least
one NUMA node, so returning NUMA node zero
2022-09-24 13:55:40.946460: W
tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not
load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0:
cannot open shared object file: No such file or directory
2022-09-24 13:55:40.946488: W
tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not
load dynamic library 'libcublas.so.11'; dlerror: libcublas.so.11: cannot
open shared object file: No such file or directory
2022-09-24 13:55:40.946513: W
tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not
load dynamic library 'libcublasLt.so.11'; dlerror: libcublasLt.so.11:
cannot open shared object file: No such file or directory
2022-09-24 13:55:40.946536: W
tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not
load dynamic library 'libcufft.so.10'; dlerror: libcufft.so.10: cannot open
shared object file: No such file or directory
2022-09-24 13:55:40.946560: W
tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not
load dynamic library 'libcurand.so.10'; dlerror: libcurand.so.10: cannot
open shared object file: No such file or directory
2022-09-24 13:55:40.946582: W
tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not
load dynamic library 'libcusolver.so.11'; dlerror: libcusolver.so.11:
cannot open shared object file: No such file or directory
2022-09-24 13:55:40.946603: W
tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not
load dynamic library 'libcusparse.so.11'; dlerror: libcusparse.so.11:
cannot open shared object file: No such file or directory
2022-09-24 13:55:40.946625: W
tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not
load dynamic library 'libcudnn.so.8'; dlerror: libcudnn.so.8: cannot open
shared object file: No such file or directory
2022-09-24 13:55:40.946631: W
tensorflow/core/common_runtime/gpu/gpu_device.cc:1934] Cannot dlopen some
GPU libraries. Please make sure the missing libraries mentioned above are
installed properly if you would like to use GPU. Follow the guide at
https://www.tensorflow.org/install/gpu for how to download and setup the
required libraries for your platform.
Skipping registering GPU devices...
Starting game backgammon
Traceback (most recent call last):
File "/home/grant/open_spiel/open_spiel/python/examples/alpha_zero.py",
line 99, in
app.run(main)
File "/home/grant/.local/lib/python3.10/site-packages/absl/app.py", line
308, in run
_run_main(main, args)
File "/home/grant/.local/lib/python3.10/site-packages/absl/app.py", line
254, in _run_main
sys.exit(main(argv))
File "/home/grant/open_spiel/open_spiel/python/examples/alpha_zero.py",
line 94, in main
alpha_zero.alpha_zero(config)
File
"/home/grant/open_spiel/open_spiel/python/algorithms/alpha_zero/alpha_zero.py",
line 514, in alpha_zero
raise ValueError("Game must be deterministic.")
ValueError: Game must be deterministic.
On Fri, Sep 23, 2022 at 3:20 PM lanctot @.***> wrote:

Hmm, @egeozsoy https://github.com/egeozsoy added support to chance
nodes to both C++ and Python MCTS, so I surprised to hear that. Can you
post the error?
—
Reply to this email directly, view it on GitHub
https://github.com/deepmind/open_spiel/pull/776#issuecomment-1256688653,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANHIBF22EAXUCDL64XF7KS3V7YNJNANCNFSM5M5IULCA
.
You are receiving this because you were mentioned.Message ID:
@.***>

Ah. At this point I think it's a relatively simple change because the Python MCTS now properly supports chance nodes.
I think @egeozsoy added the actual support for chance also in the self-play, because I see it right here: https://github.com/deepmind/open_spiel/blob/3dc0ca65c90ad3d3642a4435781722744a1356b9/open_spiel/python/algorithms/alpha_zero/alpha_zero.py#L212
So I think it should be as simple as removing that check (on lines 513 and 514). But if those lines are still there, it probably means the case of chance games was never tested. If it runs for you, please let us know.. and maybe submit a Pull Request that removes those two lines.


Fix issue #351

Description
Add link to documentation generated for types/cluster_configuration_test.go
Fixes #351
Type of change

Documentation update

Testing steps
N/A

Codecov Report

Merging #377 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #377   +/-   ##
=======================================
  Coverage   70.39%   70.39%
=======================================
  Files          12       12
  Lines         652      652
=======================================
  Hits          459      459
  Misses        189      189
  Partials        4        4

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 a41194e...3ef5b9b. Read the comment docs.


Add bagisto

Bagisto is an Opensource eCommerce ecosystem to build and scale your business. We are proudly open-source. :rocket:

@prateek-webkul hey, thanks for your PR!
I am happy to add Bagisto, but I don't like the way you changed formating. Could you please submit a PR with just one line entry for Bagisto? (and no changes to other lines)
Thanks!

@garrrikkotua ,
Okay sure. I am closing this PR and raising a new one.


Show properties of an interface when hovering

Right now, when you define an interface an you hover over an item with that type, it only shows the name of the interface.
When you control-click, it shows you all the places where this interface is augmented, collapsed, so you need to open each one to see types.
However, when you use control-space to get completion, it shows all properties.
Would it be possible to show the compounded type of an interface on hover?

Duplicate of #38040


Why don't place a released apk of the IconExplorer in the Examples folder?

Because it would be additional maintenance work for me. Use the linked icon cheat sheets if you want something fast and easy.


[Question] How to stablish a ssl verify false connection using QdrantClient python SDK?

I've been trying to use QdrantClient within ssl verify false, or something like that, but was unable to.
There's also no other available example/question between all issues available, and neither setting https parameter to False has helped in any manner.
I keep receiving connection refused in this case, just used this example for deployment of my qdrant as stateful set.
https://github.com/siddhantprateek/qdrant/tree/main
The route in the browser is responding perfectly, which indicates to me that full https seems to be working, but for requesting in python it seems a little weird and it's not responding as expected.

I've managed to answer
Actually the reason of the blockage was due to already available port specified, when in fact using Route in Openshift, the port should be supressed.
These parameters were enough to make it work: port=None, https=False, verify=False.


Serializable multiple children

Is there a way to Serialize multiple children?
By way of an example, if I wanted to create the following XML document:
<entity>
	<childentity attr1=“attr1” attr2=“attr2” />
	<childentity attr1=“attr1” attr2=“attr2” />
</entity>

In theory, I should be able to do the following?
<?php

class ChildEntity implements \Sabre\Xml\XmlSerializable
{
	function xmlSerialize(\Sabre\Xml\Writer $writer)
	{
		$writer->write([
			[
				'name' => 'childentity',
				'attributes' => ['attr1' => 'attr1', 'attr2' => 'attr2'],
				'value' => ''
			]

		]);
	}
}

$writer = new \Sabre\Xml\Writer();
$writer->openMemory();
$writer->startElement('entity');
$writer->write([
	new ChildEntity(),
	new ChildEntity()
]);
$write->endElement();
echo $writer->outputMemory();

But this fails with the error:

When passing an array to ->write with numeric indices, every item must be an array containing the "name" and "value" key

Hi @russellgalpin. The recommended way to do this, is for your ChildEntity class to not write it's own element name. Xml serializers/deserializers should only read/write it's element value (attributes, text-content, child-elements) but not the element name itself.
So I would personally rewrite your example in this way:
<entity>
	<childentity attr1=“attr1” attr2=“attr2” />
	<childentity attr1=“attr1” attr2=“attr2” />
</entity>

In theory, I should be able to do the following?
<?php

include 'vendor/autoload.php';

class ChildEntity implements \Sabre\Xml\XmlSerializable
{
    function xmlSerialize(\Sabre\Xml\Writer $writer)
    {
        $writer->writeAttributes([
            'attr1' => 'attr1',
            'attr2' => 'attr2'
        ]);
    }
}

$writer = new \Sabre\Xml\Writer();
$writer->openMemory();
$writer->writeElement('entity', [
    [
        'name' => 'childentity',
        'value' => new ChildEntity()
    ],
    [
        'name' => 'childentity',
        'value' => new ChildEntity()
    ],
]);
echo $writer->outputMemory();

However, if you don't like that and you want to keep your current structure, you can just replace:
$writer->write([
	new ChildEntity(),
	new ChildEntity()
]);

with:
$writer->write(new ChildEntity());
$writer->write(new ChildEntity());

Would this not work in the original form if the childEntity() were able to serialise into the long form for an element? Hitting this issue myself, an array like this allows multiple submling elements of the same name:
                    'details' => [
                        [
                            'name' => 'detail',
                            'attributes' => [
                                'ID' => '1',
                            ],
                            'value' => '',
                        ],
                        [
                            'name' => 'detail',
                            'attributes' => [
                                'ID' => '2',
                            ],
                            'value' => '',
                        ],
                    ],

which gives this output:
<details>
    <detail ID="1"></detail>
    <detail ID="2"></detail>
</details>

I suspect the original issue, right at the top, is an extra level of [] included in the $writer->write(). Take out that initial wrapping [] it it may just work:
        $writer->write([
            'name' => 'childentity',
            'attributes' => ['attr1' => 'attr1', 'attr2' => 'attr2'],
            'value' => ''
        ]);

Yes probably =) and while I don't think attributes is ever required, value was but we're fixing that in version 1.3 (already on master)

Here is another approach: you can dive down into the entity element and write out multiple childEntity elements in that, then close the entity element. When you open an element, all $writer->write() calls write into that element.
For example, here is my Order serializer method, which takes a list of detail elements (the order line) and renders them into a single details element.
    function xmlSerialize(Writer $writer)
    {
        // Some elements at the order level.
        $writer->write([
            'customerref' => $this->getCustomerRef(),
            'shippingMethod' => $this->shippingMethod,
        ]);

        // The collection of order lines.
        $writer->startElement('details');

        // Write each order line.
        foreach($this->orderLines as $orderLine) {
            $writer->write([
                'detail' => $orderLine
            ]);
        }

        $writer->endElement();
    }

Just in case it's useful...


[dpg] Compile error when generating DPG client enabling sync stack

Ref: https://github.com/Azure/azure-sdk-for-java/pull/33719/files#r1123840809

We've fixed a few issues in DPG with sync stack mode https://github.com/Azure/autorest.java/pull/2001
But we haven't released a autorest.java with the fix. Plan to release one after azure-core/identity releases in March.
We can regen the purview share with it to see how it works.

It was recommended that we create models for the samples/tests.

@kevinmichaelbowersox the models should not be included in the package we ship. The models should be created manually to show how to test/use BinaryData.fromObject() in src/samples directory (not src/main).

@kevinmichaelbowersox
If you need to ship the models, the minimal requirement is that they need to be reviewed as well. One quick look can see some of them having naming problems, e.g. AdlsGen2AccountSink.

@samvaity
4.1.15 released
Do you need me to regen for purview sharing?

I think @kevinmichaelbowersox is taking care of that here - https://github.com/Azure/azure-sdk-for-java/pull/33878

@samvaity
4.1.15 released
Do you need me to regen for purview sharing?

Yes, I think we should do that and check sync stack generation works fine for DPG clients.

still got one in catalog
https://dev.azure.com/azure-sdk/public/_build/results?buildId=2614036&view=logs&jobId=3dc8fd7e-4368-5a92-293e-d53cefc8c4b3&j=3dc8fd7e-4368-5a92-293e-d53cefc8c4b3&t=ec247c96-ff2a-56b3-43b7-8e8a4c52422f
(test PR https://github.com/Azure/azure-sdk-for-java/pull/33921/checks?check_run_id=11841197114)
        @Post("/glossary/{glossaryGuid}/terms/export")
        @ExpectedResponses({200})
        @UnexpectedResponseExceptionType(
                value = ClientAuthenticationException.class,
                code = {401})
        @UnexpectedResponseExceptionType(
                value = ResourceNotFoundException.class,
                code = {404})
        @UnexpectedResponseExceptionType(
                value = ResourceModifiedException.class,
                code = {409})
        @UnexpectedResponseExceptionType(HttpResponseException.class)
        Mono<Response<Flux<ByteBuffer>>> exportGlossaryTermsAsCsv(
                @HostParam("Endpoint") String endpoint,
                @PathParam("glossaryGuid") String glossaryGuid,
                @QueryParam("api-version") String apiVersion,
                @BodyParam("application/json") BinaryData termGuids,
                @HeaderParam("Accept") String accept,
                RequestOptions requestOptions,
                Context context);

        @Post("/glossary/{glossaryGuid}/terms/export")
        @ExpectedResponses({200})
        @UnexpectedResponseExceptionType(
                value = ClientAuthenticationException.class,
                code = {401})
        @UnexpectedResponseExceptionType(
                value = ResourceNotFoundException.class,
                code = {404})
        @UnexpectedResponseExceptionType(
                value = ResourceModifiedException.class,
                code = {409})
        @UnexpectedResponseExceptionType(HttpResponseException.class)
        Response<Flux<ByteBuffer>> exportGlossaryTermsAsCsvSync(
                @HostParam("Endpoint") String endpoint,
                @PathParam("glossaryGuid") String glossaryGuid,
                @QueryParam("api-version") String apiVersion,
                @BodyParam("application/json") BinaryData termGuids,
                @HeaderParam("Accept") String accept,
                RequestOptions requestOptions,
                Context context);

We seems should use BinaryData for both? @srnagar

Yeah, we should be using BinaryData for both I believe. But I'll let @srnagar confirm.

@weidongxu-microsoft This should use BinaryData instead of Flux<ByteBuffer>.


Use correct URL for module documentation

Fixes https://github.com/germsvel/phoenix_test/issues/10

🎉 thanks for catching that and submitting a fix!


Setup Pictures?

Hi. Wondering if you could post a few pictures or a diagram of the physical layout of the three lasers and photo receivers? Particularly curious about alignment when measuring focal plane curtain shutters. As well shielding of the receivers to avoid ambient light and laser cross-talk. Many thanks.

Hi, Thanks for the question. I built the tester using an old macro bellows and 3D printed parts. The lasers are held in a ball and sockets mount so they can be adjusted to shine into the photoreceptors. I intend to update the repo with the models and some photos, but I've been a bit busy with work and other things, so keep a watch on it.

Build details added to readme, together with STL files for 3D printed parts and lots of images


Cannot install linear solver

I am struggling to get the ma57 solver working. @sshin23 : do you have an idea what I am doing wrong? I ran
sudo apt-get install gcc g++ gfortran patch wget pkg-config liblapack-dev libmetis-dev

To obtain the HSL code, I followed the following steps:

Go to http://hsl.rl.ac.uk/ipopt.
Choose whether to download either the Archive code or the HSL Full code. To download, select the relevant "source" link.
Follow the instructions on the website, read the license, and submit the registration form.
Wait for an email containing a download link (this should take no more than one working day).
Compile the HSL code via the COIN-OR Tools project ThirdParty-HSL.

(std) paul@paul-VirtualBox:/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software$ git clone https://github.com/coin-or-tools/ThirdParty-HSL.git
Cloning into 'ThirdParty-HSL'...
remote: Enumerating objects: 165, done.
remote: Counting objects: 100% (165/165), done.
remote: Compressing objects: 100% (102/102), done.
remote: Total 1239 (delta 106), reused 114 (delta 63), pack-reused 1074
Receiving objects: 100% (1239/1239), 1.16 MiB | 342.00 KiB/s, done.
Resolving deltas: 100% (831/831), done.
(std) paul@paul-VirtualBox:/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software$ cd ThirdParty-HSL
(std) paul@paul-VirtualBox:/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software/ThirdParty-HSL$ cd ..
(std) paul@paul-VirtualBox:/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software$ ls
0001_objectivePrior  Benchmark-Models-PEtab  coinhsl-2019.05.21.tar.gz  DisFit  petab_test_suite  ThirdParty-HSL
(std) paul@paul-VirtualBox:/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software$ tar -xzf coinhsl-2019.05.21.tar.gz

I then copied the coinhsl-2019.05.21 directory into /media/sf_DPhil_Project/Project07_Parameter Fitting/df_software/ThirdParty-HSL and renamed it to coinhsl. Next I configured, built and installed HSL:
(std) paul@paul-VirtualBox:/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software$ cd ThirdParty-HSL/
(std) paul@paul-VirtualBox:/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software/ThirdParty-HSL$ ./configure
configure: error: cannot find sources (coinhsl/common/deps.f) in . or ..
(std) paul@paul-VirtualBox:/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software/ThirdParty-HSL$ make
make: *** No targets specified and no makefile found.    -L/usr/lib/gcc/x86_64-linux-gnu/9 -L/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/9/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/9/../../.. -lgfortran -lm -lquadmath
checking for dummy main to link with Fortran 77 libraries... none
checking for Fortran 77 name-mangling scheme... lower case, underscore, no extra underscore
checking whether gfortran understands -c and -o together... yes
checking for gfortran... gfortran
checking whether we are using the GNU Fortran compiler... yes
checking whether gfortran accepts -g... yes
checking whether gfortran understands -c and -o together... yes
configure: WARNING: Libtool does not cope well with whitespace in `pwd`
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... no, using cp -pR
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking the archiver (ar) interface... ar
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for gfortran option to produce PIC... -fPIC
checking if gfortran PIC flag -fPIC works... yes
checking if gfortran static flag -static works... yes
checking if gfortran supports -c -o file.o... yes
checking if gfortran supports -c -o file.o... (cached) yes
checking whether the gfortran linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for gfortran option to produce PIC... -fPIC
checking if gfortran PIC flag -fPIC works... yes
checking if gfortran static flag -static works... yes
checking if gfortran supports -c -o file.o... yes
checking if gfortran supports -c -o file.o... (cached) yes
checking whether the gfortran linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
configure: libtool version info: -version-number 2:1:0
checking for pkgconf... no
checking for pkg-config... pkg-config
checking pkg-config is at least version 0.16.0... yes: 0.29.1
configure: pkg-config path is "/usr/local/lib/pkgconfig:"
checking for MC19... yes
checking for MA27... yes
checking for MA28... yes
checking for MA57... yes
checking for MA77... yes
checking for MA86... yes
checking for MA97... yes
checking for C interface to MC68... yes
checking for deps90.f90... yes
checking for function dsyev_ in -lmkl_core -lmkl_intel_lp64 -lmkl_sequential -lm ... no
checking for function dsyev in -lmkl_core -lmkl_intel_lp64 -lmkl_sequential -lm ... no
checking for function DSYEV_ in -lmkl_core -lmkl_intel_lp64 -lmkl_sequential -lm ... no
checking for function DSYEV in -lmkl_core -lmkl_intel_lp64 -lmkl_sequential -lm ... no
checking for lapack.pc and blas.pc... yes
checking for function dsyev_ in -L/usr/lib/x86_64-linux-gnu/atlas -llapack ... yes
checking for library containing cos... -lm
checking for package Metis with function metis_nodend... yes
checking metis.h usability... yes
checking metis.h presence... yes
checking for metis.h... yes
checking for Fortran flag to compile preprocessed .F files... none
checking how to define symbols for preprocessed Fortran... -D
checking for Fortran flag to compile preprocessed .f files... -cpp
checking for Fortran flag to compile preprocessed .f90 files... -cpp
checking for gfortran option to support OpenMP... -fopenmp
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating coinhsl.pc
config.status: creating config.h
config.status: creating CoinHslConfig.h
config.status: executing depfiles commands
config.status: executing libtool commands
configure: Configuration of CoinHSL successful
(std) paul@paul-VirtualBox:/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software/ThirdParty-HSL$ make
make  all-am
make[1]: Entering directory '/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software/ThirdParty-HSL'
  F77      coinhsl/common/deps.lo
coinhsl/common/deps.f:623:72:

  623 |               IF (IJFIR) 230,220,240
      |                                                                        1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
coinhsl/common/deps.f:1160:72:

 1160 |             IF (IFIR) 860,880,870
      |                                                                        1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
coinhsl/common/deps.f:1216:72:

 1216 |             IF (IFIR) 930,940,950
      |                                                                        1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
coinhsl/common/deps.f:2614:72:

 2614 |    10 IW1(I,1) = IW1(I-1,1) + LENR(I-1)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 10 at (1)
coinhsl/common/deps.f:2632:72:

 2632 |    30 LENR(II) = LENOFF(I)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 30 at (1)
coinhsl/common/deps.f:2644:72:

 2644 |    40 IQ(I) = I
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 40 at (1)
coinhsl/common/deps.f:2659:72:

 2659 |    50 ICN(JJ) = ICN(J)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 50 at (1)
coinhsl/common/deps.f:2668:72:

 2668 |    70 IW(II,1) = IP(I)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 70 at (1)
coinhsl/common/deps.f:2670:72:

 2670 |    80 IP(I) = IW(I,1)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 80 at (1)
coinhsl/common/deps.f:2722:72:

 2722 |   100     IW1(I,1) = IW1(I-1,1) + LENOFF(I-1)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 100 at (1)
coinhsl/common/deps.f:2835:72:

 2835 |    10 W(I) = ZERO
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 10 at (1)
coinhsl/common/deps.f:2845:72:

 2845 |    30   WROWL = WROWL + DABS(A(JJ))
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 30 at (1)
coinhsl/common/deps.f:2854:72:

 2854 |    80   W(J) = DMAX1(DABS(A(JJ)),W(J))
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 80 at (1)
coinhsl/common/deps.f:2860:72:

 2860 |   200 AMAXU = DMAX1(AMAXU,W(I))
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 200 at (1)
  F77      coinhsl/mc19/mc19d.lo
coinhsl/mc19/mc19d.f:37:72:

   37 |       DO 10 I=1,N
      |                                                                        1
Warning: Fortran 2018 deleted feature: Shared DO termination label 10 at (1)
  F77      coinhsl/ma27/ma27d.lo
  F77      coinhsl/ma28/ma28d.lo
coinhsl/ma28/ma28d.f:658:72:

  658 |           IF (IW1(INEW,3)-IW1(JNEW,3)) 40,60,50
      |                                                                        1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
coinhsl/ma28/ma28d.f:678:72:

  678 |             IF (JNEW-JCOMP) 80,130,90
      |                                                                        1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
  F77      coinhsl/ma57/ma57d.lo
  FC       coinhsl/common/deps90.lo
  FC       coinhsl/hsl_mc68/C/hsl_mc68i_ciface.lo
  FC       coinhsl/hsl_ma77/hsl_ma77d.lo
  FC       coinhsl/hsl_ma77/C/hsl_ma77d_ciface.lo
  FC       coinhsl/hsl_ma86/hsl_ma86d.lo
  FC       coinhsl/hsl_ma86/C/hsl_ma86d_ciface.lo
  FC       coinhsl/hsl_ma97/hsl_ma97d.lo
  FC       coinhsl/hsl_ma97/C/hsl_ma97d_ciface.lo
  CC       metis_adapter.lo
  F77LD    libcoinhsl.la
make[1]: Leaving directory '/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software/ThirdParty-HSL'
(std) paul@paul-VirtualBox:/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software/ThirdParty-HSL$ sudo make install
[sudo] password for paul:
make[1]: Entering directory '/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software/ThirdParty-HSL'
 /usr/bin/mkdir -p '/usr/local/lib'
 /bin/bash ./libtool   --mode=install /usr/bin/install -c   libcoinhsl.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libcoinhsl.so.2.1.0 /usr/local/lib/libcoinhsl.so.2.1.0
libtool: install: (cd /usr/local/lib && { cp -pR -f libcoinhsl.so.2.1.0 libcoinhsl.so.2 || { rm -f libcoinhsl.so.2 && cp -pR libcoinhsl.so.2.1.0 libcoinhsl.so.2; }; })
libtool: install: (cd /usr/local/lib && { cp -pR -f libcoinhsl.so.2.1.0 libcoinhsl.so || { rm -f libcoinhsl.so && cp -pR libcoinhsl.so.2.1.0 libcoinhsl.so; }; })
libtool: install: /usr/bin/install -c .libs/libcoinhsl.lai /usr/local/lib/libcoinhsl.la
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/sbin" ldconfig -n /usr/local/lib
/sbin/ldconfig.real: /usr/local/lib/libcoinhsl.so.2 is not a symbolic link

----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the 'LD_RUN_PATH' environment variable
     during linking
   - use the '-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to '/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
 /usr/bin/mkdir -p '/usr/local/include/coin-or/hsl'
 /usr/bin/install -c -m 644 CoinHslConfig.h coinhsl/hsl_mc68/C/hsl_mc68i.h coinhsl/hsl_ma77/C/hsl_ma77d.h coinhsl/hsl_ma86/C/hsl_ma86d.h coinhsl/hsl_ma97/C/hsl_ma97d.h '/usr/local/include/coin-or/hsl'
 /usr/bin/mkdir -p '/usr/local/lib/pkgconfig'
 /usr/bin/install -c -m 644 coinhsl.pc '/usr/local/lib/pkgconfig'
make[1]: Leaving directory '/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software/ThirdParty-HSL'
(std) paul@paul-VirtualBox:/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software/ThirdParty-HSL$

Unfortunately, I could not find where the library and binaries are installed:
(std) paul@paul-VirtualBox:/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software/ThirdParty-HSL$ cd /
(std) paul@paul-VirtualBox:/$ ls
'~'   bin   boot   cdrom   dev   etc   home   lib   lib32   lib64   libx32   lost+found   media   mnt   opt   proc   root   run   sbin   snap   srv   sys   tmp   usr   var
(std) paul@paul-VirtualBox:/$ cd opt
(std) paul@paul-VirtualBox:/opt$ ls
containerd  julia-1.0.5  VBoxGuestAdditions-6.0.20
(std) paul@paul-VirtualBox:/opt$ cd julia-1.0.5/
(std) paul@paul-VirtualBox:/opt/julia-1.0.5$ ls
bin  etc  include  lib  LICENSE.md  share
(std) paul@paul-VirtualBox:/opt/julia-1.0.5$ cd bin/
(std) paul@paul-VirtualBox:/opt/julia-1.0.5/bin$ ls
julia
(std) paul@paul-VirtualBox:/opt/julia-1.0.5/bin$ cd ..
(std) paul@paul-VirtualBox:/opt/julia-1.0.5$ cd lib/
(std) paul@paul-VirtualBox:/opt/julia-1.0.5/lib$ ls
julia  libjulia.so  libjulia.so.1  libjulia.so.1.0
(std) paul@paul-VirtualBox:/opt/julia-1.0.5/lib$ cd ..
(std) paul@paul-VirtualBox:/opt/julia-1.0.5$ ls
bin  etc  include  lib  LICENSE.md  share
(std) paul@paul-VirtualBox:/opt/julia-1.0.5$ cd ..
(std) paul@paul-VirtualBox:/opt$ ls
containerd  julia-1.0.5  VBoxGuestAdditions-6.0.20
(std) paul@paul-VirtualBox:/opt$ cd ..

(std) paul@paul-VirtualBox:/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software/ThirdParty-HSL$ ls
ar-lib              compile                   config.status              hsl_ma54_double.mod        hsl_ma97_double_ciface.mod   hsl_mc68_integer.mod  hsl_of01_integer.mod  LICENSE          metis_adapter.lo
coinhsl             config_coinhsl_default.h  config.sub                 hsl_ma64_double.mod        hsl_ma97_double.mod          hsl_mc68_single.mod   hsl_zb01_integer.mod  ltmain.sh        missing
CoinHslConfig.h     config.guess              configure                  hsl_ma77_double_iface.mod  hsl_mc34_double.mod          hsl_mc69_double.mod   hsl_zd11_double.mod   Makefile         README.md
CoinHslConfig.h.in  config.h                  configure.ac               hsl_ma77_double.mod        hsl_mc64_double.mod          hsl_mc78_integer.mod  install-sh            Makefile.am      stamp-h1
coinhsl.pc          config.h.in               depcomp                    hsl_ma86d_ciface.mod       hsl_mc68_double.mod          hsl_mc80_double.mod   libcoinhsl.la         Makefile.in      stamp-h2
coinhsl.pc.in       config.log                hsl_kb22_long_integer.mod  hsl_ma86_double.mod        hsl_mc68_integer_ciface.mod  hsl_of01_double.mod   libtool               metis_adapter.c
(std) paul@paul-VirtualBox:/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software/ThirdParty-HSL$

I also did not know which binaries I have to provide the path to, so I just provided the path to where I extracted the HSL library. Unfortunately, the file libhsl.so was not found:
(std) paul@paul-VirtualBox:/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software/ThirdParty-HSL$ julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.0.5 (2019-09-09)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> ENV["JULIA_IPOPT_LIBRARY_PATH"] = "/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software/"
"/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software/"

julia> import Pkg; Pkg.build("Ipopt")
  Building CodecZlib ─→ `~/.julia/packages/CodecZlib/5t9zO/deps/build.log`
  Building MbedTLS ───→ `~/.julia/packages/MbedTLS/X4xar/deps/build.log`
  Building ZipFile ───→ `~/.julia/packages/ZipFile/DW0Qr/deps/build.log`
  Building CodecBzip2 → `~/.julia/packages/CodecBzip2/T5yr7/deps/build.log`
  Building Ipopt ─────→ `~/.julia/packages/Ipopt/ruIXY/deps/build.log`

...

julia> for i_start in 1:1
           m = Model(with_optimizer(Ipopt.Optimizer, tol=1e-6, linear_solver="ma57"))
...
Optimizing:
Exception of type: OPTION_INVALID in file "../../../../Ipopt/src/Algorithm/IpAlgBuilder.cpp" at line 295:
 Exception message: Selected linear solver MA57 not available.
Tried to obtain MA57 from shared library "libhsl.so", but the following error occured:
libhsl.so: cannot open shared object file: No such file or directory

EXIT: Invalid option encountered.

Have you checked out the directory /usr/local/lib? Probably /media/sf_DPhil_Project/Project07_Parameter Fitting/df_software/ is where the source codes are and the shared library files are installed at /usr/local/lib, as indicated from the output message. Could you rebuild Ipopt.jl with
ENV["JULIA_IPOPT_LIBRARY_PATH"]  = "/usr/local/lib"

and try again?

Oh, I think this issue is fixed since we skyped. I should have closed it, sorry.


Python 3 compatibility?

Is the development guide up-to-date on Python versions supported?
https://github.com/awslabs/serverless-application-model/blame/master/DEVELOPMENT_GUIDE.rst#L20
Travis does have Python 3.6 build:
https://github.com/awslabs/serverless-application-model/blob/master/.travis.yml#L7

@gliptak Thanks for pointing this out. You're correct, Python 2.7 and 3.6 are the current officially supported python versions. We'll get that guide updated.

@jhood would you be interested in a PR to add Python 3.7 to Travis?

@gliptak Thanks so much for the offer! I would definitely be interested, but I actually went ahead and did that already as part of #968. Sorry, should have offered to let you do it! 😊

@jhood no worries. maybe I can add Python 3.8 whemn time comes :)

@gliptak Looks like you have your chance :-) 3.8 is available for Lambda on AWS as of a few days ago.


Combine numpy run_constrained in meta.yaml to the run requirements

run_constrained override the run requirement thus the original code will disable the lowerbound numpy >=1.18

@sklam given https://github.com/numba/numba/pull/8103 passed CI for the 0.55.2 could this also be considered as passed?

It should


Is their some special handling or type inference for null values

I would like to know if there is some sort of special support for null values in Typescript, like the Maybe Types in Flow ?

See #185 and #1265


pub upgrade, pub build fails with transformers on latest 1.14 dev build (tracking bug)

Tracking bug for https://github.com/dart-lang/pub/issues/1379

This issue was moved to dart-lang/pub#1379

Looks like dart-lang/pub#1379 was closed, can we close this also?

Covered by these separate 1.14 issues
Isolate.spawn is broken in snapshots when run near a foreign .packages file dart-lang/sdk#25428
Open
Isolate.spawn is broken in snapshots when the original .packages file is missing dart-lang/sdk#25429
Open
Isolate.spawn is broken in snapshots when the original Dart file is missing dart-lang/sdk#25430


Missing data in function getMetadata

I am using Laravel storage. I can save extra metadata for s3 storage using:
Storage::disk($disk)->put($fileName, $body, $s3Params
$s3Params is an array with key 'Metadata'.
But I can not retrieve full metadata using:
Storage::disk($disk)->getMetadata($fileName)
I found the reason is with function: getMetadata, before return, it calls normalizeResponse(), which removes lots of data in the response and only returns standard metadata, customized metadata is removed.

This was recently fixed.


Update STREETNAME flag message to be more general

Flag message needs to be softened to reflect that it's possible another address element is still attached.  Discuss w/ Codie, David or Ana prior to making alteration to determine final verbage.

Updated STREETNAME flag to be slightly more descriptive.  Created dict with individual sets applicable to each county and updated streetnamecheck function now compares to that, as opposed to statewide list.


Add Context Path to HtmxResponse browser redirect

If I have setup a context path on my application.yml
server.servlet.context-path: /bot-webapp if I return new HtmxResponse().browserRedirect("/") , it doesn't automatically add the context path. I have to manually add it to the return  new HtmxResponse().browserRedirect("/bot-webapp")

I would not implement that, the org.springframework.web.servlet.view.RedirectView also does not consider the server.servlet.context-path
In your above example, if you do that
@GetMapping("/redirect")
public View redirect() {
    return new RedirectView("/redirect-target");
}

And you then perform GET /bot-webapp/redirect then your target will be /redirect-target instead of /bot-webapp/redirect-target - you would need to add the context-path parameter here as well.
So I'd stick with the default behaviour of Spring MVC here.

Thanks for this information @klu2 I will indeed align with the default behaviour of Spring MVC.


cal hash when mount

fix https://github.com/juicedata/juicefs-csi-driver/issues/363

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@7b2bf0b). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #370   +/-   ##
=========================================
  Coverage          ?   46.82%
=========================================
  Files             ?       26
  Lines             ?     2988
  Branches          ?        0
=========================================
  Hits              ?     1399
  Misses            ?     1491
  Partials          ?       98

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 7b2bf0b...89d89da. Read the comment docs.


BL-588 Removed unnecessary fields from Meeting and MeetingUpdate schema

Description
Removed the updated_at field from Meeting because we do not need an update field before it has been updated.
Also removed meeting_id and created_at from MeetingUpdate because we do not want these to be updated.
Fixes # BL-586
Type of change

[x] New feature

Checklist:

[x] My code follows PEP8 style guide
[x] I have removed unnecessary print statements from my code
[x] I have made corresponding changes to the documentation if necessary
[x] My changes generate no errors
[x] No commented-out code
[x] Size of pull request kept to a minimum
[x] Pull request description clearly describes changes made & motivations for said changes

Loom video

It's hard to overstate the importance of such detailed maintenance. Maybe "most important maintenance ever" would be overstating it, but only relatively.

A very detailed change, and a clear Loom Video to demonstrate the purpose! Nice work.


Datatable filter reset causes Uncaught RangeError: Maximum call stack size exceeded

Bug report
What I did:
Hello, my model contains column named "date". It is in MySQL "Date" type. I would like to filter it with default filter method.
My code:
		$this->crud->addFilter(
			[
				'type' => 'date',
				'name' => 'date',
				'label'=> __('backend.date')
			]
		);

What I expected to happen:
Properly working filters.
What happened:
It works fine except for one thing.
If i push reset filter button, it causes following error in console and creating endless amount of ajax requests.
Uncaught RangeError: Maximum call stack size exceeded
    at y (jquery.dataTables.min.js:76)
    at Ba (jquery.dataTables.min.js:110)
    at jquery.dataTables.min.js:111
    at Za (jquery.dataTables.min.js:109)
    at s.<anonymous> (jquery.dataTables.min.js:111)
    at s.iterator (jquery.dataTables.min.js:99)
    at s.<anonymous> (jquery.dataTables.min.js:111)
    at s.rows (jquery.dataTables.min.js:102)
    at s.<anonymous> (jquery.dataTables.min.js:116)
    at s.row (jquery.dataTables.min.js:102)

What I've already tried to fix it:
That only happens if data column is named "date", if i use column with different name it works fine, for certain reasons i cant just rename that column name for now, so any tips would be appreciated.
Backpack, Laravel, PHP, DB version:
Backpack - 3.4
Laravel - 5.6
PHP 7.1
Thank you.

Hi @oranog ,
Thanks for the bug report. I can confirm that is happening, and I'll be working on it ASAP. As far as I can tell, this bug must have been introduced here: https://github.com/Laravel-Backpack/CRUD/commit/9602491865ecf4c46363afde41eb0784f8be0e4a
But I don't see how. On it!

Hi @oranog ,
Just fixed this, it's currently in PR https://github.com/Laravel-Backpack/CRUD/pull/1433
I'm going to close this issue as I'm going to merge the PR today.
Cheers! Thanks for letting us know about the issue.


🚀 Feature: Additional variables for e-mail template

🔖 Feature description
Adding additional variables similar to {shareUrl} and {creator}. Can we please also add {desc} for the description of share and {fileList} of the list of files and sizes? And {expires} could show when it would expire.
🎤 Pitch
This would bring it on parity with WeTransfer sent e-mails even more I believe. And this way you could personalize the e-mail subject even more by having the {desc} in it, for example.
e.g. instead of the subject constantly being generic "Files shared with you" you could make it "Download: {desc}" and make it turn into "Download: Michael's photos from prom"

@stonith404 i'll work on this

Thanks for this, @iUnstable0!
Would it be possible to add a files variable too? Here is a WeTransfer e-mail for reference to show what I mean:

sure that sounds fun!


Time for a new release?

The last release was two years and two days ago. The main branch contains fixes for issues like #176 that would be nice to get into a release (the incorrect Decoding error 58: invalid ADLER32 encountered error).
Linux distributions keep shipping the last stable releases even though the main branch is in a better state than the last release.
Ping @lvandeve.

bump

Yes, please. https://github.com/google/zopfli/commit/7113f4e96bd26df27c46d590df95e517b966f10d features from 3 years ago are missing.

Work


Domain is still pointing somewhere else

I configured my subdomain leafyleaf.is-cool.me with a CNAME record to point to a GitHub Pages site in #33 a couple of days ago, but it's still pointing somewhere else. Running a DNS check returns these A records but no CNAME.
dig output:
$ dig leafyleaf.is-cool.me +nostats +nocomments +nocmd
;leafyleaf.is-cool.me.          IN      A
leafyleaf.is-cool.me.   300     IN      A       <IP_ADDRESS>
leafyleaf.is-cool.me.   300     IN      A       <IP_ADDRESS>

You can check now I think it was the problem with proxy

I configured my subdomain leafyleaf.is-cool.me with a CNAME record to point to a GitHub Pages site in #33 a couple of days ago, but it's still pointing somewhere else. Running a DNS check returns these A records but no CNAME.
dig output:
$ dig leafyleaf.is-cool.me +nostats +nocomments +nocmd
;leafyleaf.is-cool.me.          IN      A
leafyleaf.is-cool.me.   300     IN      A       <IP_ADDRESS>
leafyleaf.is-cool.me.   300     IN      A       <IP_ADDRESS>

@akpi816218 You can check now I think it was the problem with proxy

$ dig leafyleaf.is-cool.me +nostats +nocomments +nocmd ;leafyleaf.is-cool.me.          IN      A leafyleaf.is-cool.me.   300     IN      CNAME   akpi816218.github.io. akpi816218.github.io.   3600    IN      A       <IP_ADDRESS> akpi816218.github.io.   3600    IN      A       <IP_ADDRESS> akpi816218.github.io.   3600    IN      A       <IP_ADDRESS> akpi816218.github.io.   3600    IN      A       <IP_ADDRESS>

That looks great! Let me just fix something on GitHub Pages and I'll report back.

@LightHostingFree everything's fine now, thanks for your help! closing this issue.


Support for replica sets

Nice work on the driver so far! I'm wondering, do you have any plans to add support for replica sets including failover?

:+1:

@jerp I think that adding replica set support will really boost the elixir / phoenix community.
Using mongodb in production without replica set it's not really possible. My company has a project that I really would like to migrate to phoenix and it's impossible without replica set support. I think there is a lot of developers in the same position. If you need help I can try and add the replica set support myself. If you already working on it I would like to help anyway I can.

Just a suggestion, not sure how feasible it is: Would it be possible to achieve this goal by writing an Elixir wrapper around the Mongo C driver? https://github.com/mongodb/mongo-c-driver
I used the same approach to get to a production quality Rust driver quickly: https://github.com/thijsc/mongo-rust-driver
Not sure how the concurrency model of Erlang and a C driver using threads and a connection pool would mesh though..


A bug(when defined a self-defined action raise NotImplementedError)

when you defind a self-defind action in you file action.py like:
from rasa_core_sdk import Action
from rasa_core_sdk.forms import FormAction
class MyFormAction(FormAction):
      def submit():
            pass
      def name:
           return "my_form_action"

when you run you action whill  raise the NotImplementedError
to solve this bug,  change file excutor.py
in class ActionExecutor, change function register_package. changes mark by bold xx.
old:
`
def register_package(self, package):
try:
self._import_submodules(package)
except ImportError:
logger.exception("Failed to register package '{}'."
"".format(package))
    actions = utils.all_subclasses(Action)

    for action in actions:
        if not action.__module__.startswith("**rasa_core.**"):
            self.register_action(action)

new:
def register_package(self, package):
try:
self._import_submodules(package)
except ImportError:
logger.exception("Failed to register package '{}'."
"".format(package))
    actions = utils.all_subclasses(Action)

    for action in actions:
        if not action.__module__.startswith("**rasa_core**"):
            self.register_action(action)

`

sorry, in rasa-core-sdk==0.11.2   has this problems ,but you solved it


Two scheme switching examples are not working in scheme_switching.cpp

FloorViaSchemeSwitching() and FuncViaSchemeSwitching() are throwing a segfault.
It looks like the fix is to replace the following line
auto cTemp = cc->EvalCKKStoFHEW(c1);

with
auto cTemp = cc->EvalCKKStoFHEW(c1, slots);

In a commit on Feb 7, numCtxts was specified as the length for std::vector<std::shared_ptr> LWEciphertexts(numCtxts), but numCtxts is verified later. Moving https://github.com/openfheorg/openfhe-development/blob/main/src/pke/lib/scheme/ckksrns/ckksrns-schemeswitching.cpp#L1401 to https://github.com/openfheorg/openfhe-development/blob/main/src/pke/lib/scheme/ckksrns/ckksrns-schemeswitching.cpp#L1407 should resolve it.


[BUG] AGPL license is sometimes not reported as restrictive

I have following pom.xml file:
<project>
    <modelVersion>4.0.0</modelVersion>
    <groupId>g</groupId>
    <artifactId>a</artifactId>
    <version>0.0.1</version>

    <dependencies>
        <dependency>
            <groupId>org.json</groupId>
            <artifactId>json</artifactId>
            <version>20190722</version>
        </dependency>

        <dependency>
            <groupId>com.itextpdf</groupId>
            <artifactId>itextpdf</artifactId>
            <version>5.5.13</version>
        </dependency>

        <!-- <dependency>
            <groupId>com.google.code.gson</groupId>
            <artifactId>gson</artifactId>
            <version>2.8.5</version>
        </dependency> -->
    </dependencies>

    <licenses>
        <license>
            <name>Apache License, Version 2.0</name>
            <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
            <distribution>repo</distribution>
            <comments>A business-friendly OSS license</comments>
        </license>
    </licenses>
</project>

com.itextpdf:itextpdf is licensed under restrictive AGPL license, however analysis shows 0 restrictive licenses.
When I add another package (com.google.code.gson:gson:2.8.5) to my stack, it suddenly shows 1 restrictive license. Although there doesn't seem to be a way how to pin point which of the dependencies is the one with restrictive license.
VSCode(please complete the following information):

OS: linux
VSCode version 1.37.1
Dependency Analytics Version 0.0.12

Also it's a bit strange that JSON license (org.json:json) is not reported. The license is effectively non-free.

The result without com.google.code.gson:gson:2.8.5 in the stack:

The result with com.google.code.gson:gson:2.8.5 in the stack:

@msrb @arajkumar This is not an issue. The behaviour is correct. When there are 2 deps, it cannot decide which dep is an outlier. When another dep is added, having a permissive lic, then it shows the restrictive lic. However, Michal has a  point that the UI is a bit misleading in providing this information. Probably we can think about this.

https://jira.coreos.com/browse/APPAI-906

Yes, the UI is super confusing. It says "flag any unknown/restricted license(s) present". That's clearly not the case. Based on what Yusuf said, It seems like underlying backend service provides information about "outlier licenses" and UI misinterprets the information. If we accept the fact that the number is correct, then the way it is presented in UI is very misleading.

The only thing i would like to add here is that it gives the outliers only in case, where they have a restrictive license.

@yzainee , Can you please close this if it is not an issue?

@yzainee , Can you please close this if it is not an issue?

This is not an issue.

This is not an issue.


updated inssider (4.2.2)

This probably needs to be shasum :no_check

This probably needs to be shasum :no_check

It’s another of those cases. Since we have an appcast (and we’ll automate checking those), we can actually keep a checksum here and reap its benefits without downsides (unless the user tries to install it in the exact interval between upstream upgrading the app and us updating the cask.

Merged as 2d02a1f69a842708823d75792bdaff976370ca09.


contracts/, tests/: restore verify hooks

There should be 7 "pairs" of comptroller hooks in cToken:

mint allowed + verify
redeem allowed + verify (currently being used)
borrow allowed + verify
repay borrow allowed + verify
liquidate borrow allowed + verify
seize allowed + verify
transfer allowed + verify

Also, there is one more comptroller hook:

flashloan allowed (only in CCollateralCapErc20)


Game crashes with Cloth Config Api

Mod Name
Cloth Config Api
Mod Homepage
https://modrinth.com/mod/cloth-config/version/11.1.118+fabric
Minecraft version
1.20.1
Describe the bug
[Note : I'm on PojavLauncher] I've recently downloaded a file called "Remarkably Optimized" that helps you reduce lag for low end devices and since my phone doesn't work well for computer games, I downloaded it, but the game crashes when I join servers.
Steps to reproduce

Use Cloth Config Api
Run the game
Join any servers
Crashes
(Only happens to me me for some reason)

Logs
Additional context
No response

use the forge version of cloth config api it will work with fabric mod

Custom server APIs (such as Mohist, Magma, Arclight) are not supported. This also applies to launchers for mobile platforms (Pojav, FoldCraft) and pirated launchers.
Such platforms provide unpredictable environments in which mods might not function as expected, and therefore we can't provide support for them. Ensuring mod compatibility is the platform's duty, just like Connector tries its best to achieve parity when running Fabric mods on Forge.
This is explained in our FAQ.


Document how to use this bundle with the Symfony Cache component.

Symfony 3.1 comes with the a cache component. I believe it should be possible to configure the app and system pools to use SncRedis, however no documentation or examples are available. Could this use case be added to the documentation?

Use the RedisAdapter directly: https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Cache/Adapter/RedisAdapter.php

I use SNCRedis for spooling mail and in some other places for non-caching purposes (locking and spooling) as well. So it would be nice to reuse the same connection. I managed to do this using the following config:
framework:
    cache:
        app: cache.adapter.redis
        default_redis_provider: snc_redis.default

Another advantage of this setup is that cache calls using the cache component will be included in the SNCRedis-item in developer toolbar. I thought it might be worth mentioning this possibility in the documentation.

@Sander-Toonen is this configuration working? I am working exactly on the same thing and don't have a clue in how to achieve this, could you help with some examples and setup from your experience?

@reypm You can refer here: https://github.com/symfony/framework-bundle/blob/fc11aa3f2c0170efd354b4e3badaf1fb6455327b/Tests/Functional/app/CachePools/redis_config.yml
What @Sander-Toonen gave above is correct.

@teohhanhui yes but even though the docs here are really poor. At least a working example should be enough can you provide some of them?

Anyway it should be a good idea that some kind of mention of Symfony 3 Cache Component was put somewhere here in docs. Right now it's a bit confusing how SncRedisBundle releates to this new Cache Component, how they can work together and if there is even still a need to use SncRedisBundle for new applications if there is new component handling this out of the box.

As there are two configurable cache pool cache.app and cache.system, I wanted to avoid collision by storing them in a separate DB, please find the conf I used:
#app/config/services.yml
    framework_cache_app.redis:
        parent: cache.adapter.redis
        tags:
          - {name: "cache.pool", provider: "snc_redis.framework_cache_app", clearer: "cache.default_clearer"}

    framework_cache_system.redis:
        parent: cache.adapter.redis
        tags:
          - {name: "cache.pool", provider: "snc_redis.framework_cache_system", clearer: "cache.default_clearer"}

snc_redis:
    clients:
        # ...
        framework_cache_app:
            type: predis
            alias: framework_cache_app
            dsn: "%redis_dsn.framework_cache_app%"
        framework_cache_system:
            type: predis
            alias: framework_cache_system
            dsn: "%redis_dsn.framework_cache_system%"

PRs better explaining the current state of affairs welcome   😄

PR integrating it in a nice way welcome   😁      Kinda stoked on time myself.


nnn: 4.3 → 4.4

Motivation for this change
Changelog
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] x86_64-linux
[x] aarch64-linux (cross)
[x] x86_64-darwin
[x] aarch64-darwin (cross)

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Relase notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Please fix the commit message:
nnn: 4.3 -> 4.4

Why? Unicode arrow symbol is widely used and even prefered as discussed here https://discourse.nixos.org/t/vs-in-a-commit-message/11180

Please fix the commit message:
nnn: 4.3 -> 4.4

Why? Unicode arrow symbol is widely used and even prefered as discussed here https://discourse.nixos.org/t/vs-in-a-commit-message/11180

https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#submitting-changes
Unless there is a consensus (e.g.: update CONTRIBUTING.md) I would much prefer to follow the document. So please update your commit message.

Result of nixpkgs-review pr 147139 run on x86_64-linux 1

1 package built:

nnn


[maistra-2.4] OSSM-6857 Ensure validating webhook works when both 2.x and 3.x are installed

When you install 3.x, the default version for some CRDs changes from e.g. v1beta1 to v1. This causes kubectl to default to using the v1 version. But this caused the validating webhook in 2.x to fail, because it was invoked with the v1 version of the resource, which it doesn't understand. The root cause was that the validatingwebhookconfiguration previously specified that it supports all apiVersions.
In this commit, we specify the actual apiVersions that the webhook supports. For example, for DestinationRules, the updated validatingwebhookconfiguration causes kubernetes to convert the DestinationRule from v1 to v1beta before invoking the webhook.

/retest

I am going to fix the 2.4 duplicated jobs.


Add @jglick to mock-load-builder & prep for CD & GH Issues

Description
Would like to be able to easily ship stuff like https://github.com/jenkinsci/mock-load-builder-plugin/pull/5. @Vlatombe
Reviewer checklist (not for requesters!)

[ ] Check this if newly added person also needs to be given merge permission to the GitHub repo (please @ the people/person with their GitHub username in this issue as well). If needed, it can be done using an IRC Bot command
[ ] Check that the $pluginId Developers team has Admin permissions while granting the access.
[ ] In the case of plugin adoption, ensure that the Jenkins Jira default assignee is either removed or changed to the new maintainer.
[ ] If security contacts are changed (this includes add/remove), ping the security officer (currently @daniel-beck) in this pull request. If an email contact is changed, wait for approval from the security officer.

There are IRC Bot commands for it

I think I am good. Thanks again!

Granting commit access also fixes the teams admin permissions


feat: change build system to tsup

Finally one and the same build system for all packages

@sapphiredev pack

@sapphiredev pack


I Need dark Mode

Hey guys if you can enable dark mod then feel free to comment and fork the repo.

I would like to implement.

Also please add enhacement label to it. Thanks !

Also please add enhacement label to it. Thanks !

Hey @neeraj15022001 Please check your code i merged your code but its not working.

I will check

@SahityaRoy i just opened live website it's working as expected. If not working in your case, please try opening in incognito and if still not working send me a screen recording.

@SahityaRoy please close this issue as it is resolved.


Sparsification of huge matrix

Describe the current behavior
Currently, the only way in TensorFlow to convert a dense matrix into a sparse one (assuming it has only few non-zero values) is to use tf.where (afaik). tf.where does however allocate a lot of memory (it seems like 4 times the size of the dense matrix). So for huge dense matrices, this approach fails.
Describe the expected behavior
By first counting the number of nonzero elements, then allocating the appropriate amount of memory, and then determining the non-zero values, this can be be done with very little memory (as much as there are non-zero elements).
This is the approach that the cusparse library follows and it works great. Unfortunately, there is no way to use e.g. dense2csr or dense2coo in TensorFlow.
In my opinion this is a bug, because tf.where requires far too much memory.

@martinwicke do you know if anyone owns tf.where / SparseTensors?

I don't know of anyone specifically responsible for tf.where.
The fact that we don't use cusparse is an issue. Writing a specialized op for this would probably be a good idea (basically to_sparse(dense) -> tf.SparseTensor via dense2coo).

FYI: it might not be as bad as I reported (I accidentally had a rather dense matrix); but it's clearly no where near cusparse dense2coo. Would be great if this could be improved. Or would it be possible to access the GPU memory of a tensor directly and use it in another framework (in PyTorch I can share tensors using dlpack with CuPy which has cusparse support). dlpack support for TensorFlow would be awesome.

@asimshankar @alextp In Python (and for EagerTensors), we have Tensor.numpy(). But that still causes a transfer to host memory and possibly a copy if things are not aligned. Should we allow access to the TensorBuffer from Python?
Clearly, users would need to be responsible with resulting memory issues, but as long as the Python Tensor object isn't destroyed the memory should also be safe, correct?

@ebrevdo has looked at cusparse in tf.
It's not hard to add a way to get the GPU memory of a tensor, but it's likely to be inefficient because we'd need to sync the GPU stream before that memory was useful for anything, and using anything you computed using that memory would require another sync.
OTOH it's not that much C++ code to make tf ops to do exactly this thing you want.

We have some TF code that basically adds support for CSR matrices in tensorflow, using cusparse and DT_VARIANT types.  But we don't have a maintainer.  I'm tempted to do this as a SIG and get some distributed maintenance help from e.g. external users & nvidia.  @martinwicke @alextp wdyt?

(unfortunately I don't have enough cycles to maintain the codebase!)

Trying to put this out as a SIG would be great.
On Tue, Nov 20, 2018 at 5:12 PM ebrevdo<EMAIL_ADDRESS>wrote:

(unfortunately I don't have enough cycles to maintain the codebase!)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/issues/23754#issuecomment-440490694,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAATxc7FXjBukLIlsINLUSem0cLUUPj1ks5uxKiVgaJpZM4YesLe
.

--

Alex

Probably SIG-addons is the right place for this. It'll be maintaining several ops. There's a call for content out now on the mailing list.
@armando-fandango
@seanpmorgan

@martinwicke I started a thread to keep track of new Addons that we plan to review after our initial move out of contrib
@ebrevdo Would you be able to provide a link to the code for CSR matrix support using cusparse

Nagging Assignee @skye: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

There's a plan to release the code as part of a SIG repository; I don't have an ETA.

Hi @jonasrauber ,
At present we have a high level API tf.sparse.from_dense() which can be used for sparsification of Dense Tensor. Please refer to attached source here for more details. Also attached here is a gist for demo on a Dense Tensor to Sparse Tensor along with size where I observed Reduction in size from 80b to 48b.
I hope this will solve the purpose.
Thankyou!


Add checkpointing conforming to Spark Streaming to from_kafka_batched().

This PR serves two purposes:

Remove all GPU-dataframe/cudf-related tests, since they would now live as part of RAPIDS' cuDF.

Implement a checkpointing feature (conforming as much as possible to Spark Streaming) in from_kafka_batched(). The checkpointing feature is paramount to any stream processing pipelines today in production; below is the design of the current checkpointing feature in this PR (although I expect this to get modified and become more robust with time and review(s)).

Checkpointing:
a. from_kafka_batched() has another parameter checkpointing which defaults to None.
b. Users wanting to opt out of checkpointing can use streamz as is —  that is the consumers would read the Kafka topic from the starting offsets every single time.
c. Users who want to use checkpointing in their pipelines can provide a path in their checkpointing parameter in from_kafka_batched(). If a directory doesn't exist at this path, streamz would now create one — this is where checkpoints would live.
d. The directory structure inside this path conforms to Spark Streaming. There would be topic-level directories, and then checkpoints within these sub-directories. Checkpoints would be named after the batch number they come from, i.e., 5.txt would be the 5th batch that streamz processed.
e. A checkpoint file in each topic would be a text-file with a nested JSON of the form {'group.id': {partition:offset, partition:offset, ...}, 'group.id':{.., ..}}. An example is shown below:
{'custreamz': {'0': 1, '2': 2, '6': 1, '10': 2, '11': 1, '12': 1, '19': 1, '20': 1}}. Here, custreamz is the group.id.
f. Like Spark Streaming, only the last few (in this PR, I have hard-coded this number to 5) checkpoints are maintained, the older checkpoints are deleted.
g. Now, if the stream is restarted, or shut down/killed for some reason,  and a consumer wants to start from the latest offsets, it can just specify the checkpoint path in from_kafka_batched() and the stream starts reading from the latest checkpoint stored within.
Below is a checkpointing consumer test notebook. Please have a look at the example outputs to understand how the checkpointing is working. Also, please note that I am printing the latest checkpoints as they get saved for now, to verify the correctness. As things get more approvable, I will make the code more mergeable.
checkpointing_consumer_test.ipynb.zip
I would also appreciate thoughts on how/what test cases I could add.

Hm, I'm really not sure here - this seems like a much more general point that we might want to apply to any state-holding stream. Thoughts, @CJ-Wright ?

Hm, I'm really not sure here - this seems like a much more general point that we might want to apply to any state-holding stream. Thoughts, @CJ-Wright ?

Are you talking about a generalized checkpointing solution? If yes, I think we can only create an abstract solution as each data source is likely going to require a different method.

I agree with Jarod.
Checkpointing with Kafka as a source is one of the most important things today in streaming production use cases, hence this first step.

Is this a general problem which each source solves with its own syntax? If so then we might consider having a solution which has the same streamz syntax but caters to each source in its own syntax.

@CJ-Wright Yes, that's right. Spark provides checkpointing for a few sources — Kafka, SQS, S3, etc. But since streamz only has a single source used in production pipelines today — Kafka seems like the priority for now. Kafka consumers in the same group would share offsets, and can be resilient to streamz/Kafka failures this way. We can probably add checkpointing for text files and sockets later on, but this would be different syntax altogether, since streamz APIs for reading from Kafka and textfiles is different.

Is it possible to de-couple this from the source itself? So that there is a checkpoint node? Is this an accumulate node which writes to a file somewhere?

Is it possible to de-couple this from the source itself?

There's a couple of things here, IMO. Having an API like stream.from_kafka_batched(.., ..).checkpointing(path) would decouple stuff, but would involve passing around a lot of information. Moreover, there would still not be a generic checkpointing implementation across sources.
I'd be happy to implement anything cleaner in terms of API if someone can help me out here!

When you say "still not be a generic checkpointing implementation" do you mean that each source has its own syntax or that each has their own concerns which are not expressible in a single syntax?

The only other source I think it would make sense to implement checkpointing for would be textfiles. I meant that the checkpointing implementation for textfiles would be completely different from the one for Kafka — it would require information from from_textfile(). So, it's easier implemented if checkpointing is passed a parameter in API rather than decoupling.
Apologies for not being clearer earlier.

Another thing to note here is that Spark, Flink has the same syntax to read from different sources, so it is easy to decouple checkpointing. Since this is not the case with streamz, I'm not sure whether decoupling checkpointing would be the correct move here.

I would make a lot of sense to me from an API point of view, if there was a common .checkpoint() method which certain sources knew how to implement - i.e., this is an ordinary method, not a stream operation. They should probably return the source itself, to keep a similar behaviour with other stream nodes (although I don't think that the checkpointing should be counted as a node); maybe sources that don't checkpoint just return the node as a no-op.

It might be worthwhile having checkpoint as a node, since that would allow any graph walking things to access it (eg. build a walker which builds pieces of a gui for all the params of a pipeline)

You have a point, but it also (to my mind) breaks some assumptions, by directly affecting how the upstream node works.

That's fair. Maybe we need to document that this is different, since it would behave different than other foo.bar() syntax things.

Closing this PR for now.
After a few discussions, I realized that this implementation of checkpointing is logically incorrect  — checkpointing should be implemented after writing to a sink (Streamz only has Kafka for now), i.e., so that we can keep track of how much data has been processed.
Currently, I was adding checkpoints as soon as data was read using from_kafka_batched(). Spark, too, only has write-stream checkpointing in order to not lose track of how much data has been 'processed'. @jsmaupin Do you want to add something to this?
I will fix this, and reopen a PR soon.


Create dcifuen.md

Added my own profile information

Help! Can someone please take a look and comment? Thanks!

@dcifuen Sorry for only getting to this now. LGTM.
:+1:


CodeBuild fails to execute a python command....

Module 4, step 3-A.
CodeBuild failed to execute a python command:

Please help take a look at this issue.
Thanks a lot!
John Nguyen
<EMAIL_ADDRESS>

In Ubuntu 20.04 there is no python-pip package anymore, only python3-pip.
Also the command is called pip3 not only pip
This issue is actually fixed in https://github.com/aws-samples/aws-modern-application-workshop/pull/244, 	https://github.com/aws-samples/aws-modern-application-workshop/pull/235, https://github.com/aws-samples/aws-modern-application-workshop/pull/223, https://github.com/aws-samples/aws-modern-application-workshop/pull/218, https://github.com/aws-samples/aws-modern-application-workshop/pull/212, https://github.com/aws-samples/aws-modern-application-workshop/pull/208 and https://github.com/aws-samples/aws-modern-application-workshop/pull/206.

The docker file for module 3 and 4 were still not using pip3 and python3-pip the build I cloned about a week ago (approximately feb 6, 2021).
Also in Module 5, step 3 A - you're missing the command for adding the s3 bucket. It looks like you intended to have it there because the sentence ended with a ":".

Dockerfile on module 4 still did not updated to python3


Overlay switches to wrong desktop when using multiple desktops on Windows 10

Scenario: I have two desktops open (opening the second one via Win + Ctrl + D), and then I start path of exile and start the overlay.
When I press ctrl + d to check the price of an item, the overlay switches focus to the second desktop, as if I had pressed Win + Ctrl + Right to switch desktops, so I can no longer see the game - instead I see the overlay window on top of whatever was open on the second desktop. When I close the price check window via Esc, it switches back to the original desktop again.
When there are multiple desktops active, the overlay should always use the same one as the Path Of Exile window.

Still an issue, I have 3 screens and for most of the time the tool is useless and pain in the *** instead of helpful:( Please make it possible to select screen or something, thanks!