Remove duplicate installation steps

Hi, Kepler community! 👋  Small docs UX enhancement proposal!
The Kepler Installation steps are in this repo's README and they are also in the kepler-docs repo / website, here.
The sections duplicated are from Requirement to Configure Prometheus to scrape Kepler-exporter endpoints.
I would like to remove the duplicated sections from this repo and replace them with a link that points to the Kepler website in order to make that the single source of truth. That way we don't have to maintain both.
Does this sound ok to you? If it does, I will take this action. Thanks :)

[x] Move the developer installation from the kepler repo's README to Developer.md. Add a link in the README. Rename Developer.md to CONTRIBUTING.md to follow the CNCF recommendations (here).
[x] Add a link to the kepler repo's README that links to the installations steps in kepler-docs.
[ ] ~Simplify Kepler Exporter installation~

~Simplify installation steps in the kepler-doc repo so that users are not required to clone the repo or do a make command in order to install Kepler's K8s manifests.~

I saw various projects do this as xxx-docs are for public new comer to whole project and
github readme is for project itself startup
maybe we can create a link if you think they might be inconsistent?

Ah, I see what you mean :) If I understand correctly, there should be 2 separate installation methods for Kepler:

Developer installation (in the kepler repo)
End-user installation (in the kepler-docs repo / website)

And Helm coming soon :)
Here are some suggestions:

Move the developer installation from the kepler repo's README to Developer.md. Add a link in the README. Rename Developer.md to CONTRIBUTING.md to follow the CNCF recommendations (here).
Simplify the end-user installation steps in the kepler-doc repo so that users are not required to clone the repo or do a make command in order to install Kepler's K8s manifests.
Add a link to the kepler repo's README that links to the simpler installations steps in kepler-docs.

What do you think?

I am ok with the proposal,  @rootfs @marceloamaral any comments?

LGTM.

@nikimanoledaki sounds good!

@nikimanoledaki  or @rootfs are we able to close this one as the 3rd task is out of date?


[FEA]: Add parquet support to write_to_file_stage.py

Is this a new feature, an improvement, or a change to existing functionality?
New Feature
How would you describe the priority of this feature request
Medium
Please provide a clear description of problem this feature solves
I want morpheus to write inference outputs in parquet format.
The current implementation of write_to_file_stage.py has some JSON and csv specific instructions in _convert_to_strings(), and raises NotImplementedError for other file types.
The inference outputs files in DFP can end up being pretty big, and are likely further processed, so a machine readable efficient format (like parquet) would make deployment more efficient.
Describe your ideal solution
write_to_file_stage.py
           def node_fn(obs: mrc.Observable, sub: mrc.Subscriber):

                # Ensure our directory exists
                os.makedirs(os.path.realpath(os.path.dirname(self._output_file)), exist_ok=True)

                # Open up the file handle
                with open(self._output_file, "a") as out_file:

                    def write_to_file(x: MessageMeta):

                     # new
                      if(path.suffix(self._output_file) == '.parquet'):
                        x.df.to_paruqet(self._output_file)

                      else:
                     # end new
                        lines = self._convert_to_strings(x.df)

Describe any alternatives you have considered
No response
Additional context
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct
[X] I have searched the open feature requests and have found no duplicates for this feature request

Hi @Tzahi-cpacket!
Thanks for submitting this issue - our team has been notified and we'll get back to you as soon as we can!
In the mean time, feel free to add any relevant information to this issue.

@Tzahi-cpacket After looking into this more, one issue is that our write_to_file_stage.py will iteratively write to files as messages are received and keep the file stream open for the duration of the stage. With CSV and JSON lines format, this works well to offload data to disk. However, the only library I found that supports appending to Parquet files is fastparquet. So this leaves a few options:

Keep all messages in memory until pipeline shutdown and then concat them into a single DataFrame which can be written to disk
Write to parquet using the fastparquet engine in pandas

This would require converting every DataFrame from GPU->CPU before writing to disk which will have a performance penalty

Write to a partitioned parquet dataset

Each message would be treated as a different partition
A rough outline of how this would work can be found here: https://docs.rapids.ai/api/cudf/legacy/api_docs/api/cudf.io.parquet.parquetdatasetwriter/

Are any of these options preferable over another?

perhaps we can discuss some questions regarding this?

Are you not concerned that the files (current  csv or json
implementation, future single parquet) become huge over time? This is not
just our usecase too, I mean in general.

There is something to be said for a "perpetual usecase", where the
pipeline is running for an extended period of time, weeks? months maybe?
Once we implement a "directory watcher" as the input stage, the pipeline
should never shut down, right? As far as we understand, we can even  update
the models using a second pipeline while the  inference pipeline is
working. So the pipeline will just keep on going, outputting forever.

Is it technically possible to build an output dataframe in memory during
pipeline operations, and flush it to a new file when the size has reached a
threshold, or when a delta-time ("every 10 minutes") has reached a
threshold?

We don't have to write in parquet, it's just a reasonable standard for
fast IO for medium and large size data. Do you have other suggestions? As
long as there is an open source reading library we could probably work
around it.  csv's and json are just not very size efficient once you go
beyond small data sets.

Cheers,
Tzahi
On Fri, Jun 30, 2023 at 10:54 AM Michael Demoret @.***>
wrote:

@Tzahi-cpacket https://github.com/Tzahi-cpacket After looking into this
more, one issue is that our write_to_file_stage.py will iteratively write
to files as messages are received and keep the file stream open for the
duration of the stage. With CSV and JSON lines format, this works well to
offload data to disk. However, the only library I found that supports
appending to Parquet files is fastparquet. So this leaves a few options:

Keep all messages in memory until pipeline shutdown and then concat
them into a single DataFrame which can be written to disk
Write to parquet using the fastparquet engine in pandas

This would require converting every DataFrame from GPU->CPU
before writing to disk which will have a performance penalty

Write to a partitioned parquet dataset

Each message would be treated as a different partition
A rough outline of how this would work can be found here:
https://docs.rapids.ai/api/cudf/legacy/api_docs/api/cudf.io.parquet.parquetdatasetwriter/
https://url.avanan.click/v2/___https://docs.rapids.ai/api/cudf/legacy/api_docs/api/cudf.io.parquet.parquetdatasetwriter/___.YXAzOmNwYWNrZXRuZXR3b3JrczphOmc6NGQ2Mjc3NmQxMTQwNjczZjIyNTYxMmIzOWVhOWNiNTQ6NjphYmU4OmU2NWMyZmE0ZDczMGYzZjhiOGU5MjcyNTI0MzM2YTQ0OTg4YjEzMjQyY2JjZTA0MDA2NzIyYTkzOGE1Y2I0Y2E6aDpU

Are any of these options preferable over another?
—
Reply to this email directly, view it on GitHub
https://github.com/nv-morpheus/Morpheus/issues/980#issuecomment-1614986833,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AVNVGEPG24JXQ6QJ6XCBKT3XN4HDXANCNFSM6AAAAAAZBHEEOE
.
You are receiving this because you were mentioned.Message ID:
@.***>


Property type redo

Redo of property_type fixes, with just property_type field but adding detection keywords to suggested strings.

Changes as I think we discussed, @bussec I added three possible values, the three former types with a detection method of count, which is I think applicable for our use case. Can you add some other possibilities (and correct mine if in error).

@javh it's a nit, but all 3 are UMIs.  But I don't care enough to make an issue of it if others feel differently.

I now added "fluorescence_intensity" as the measured parameter and added _by_ as a human-readable separator between the property type and the detection method.

@scharch I agree with you. But, I we decided to make the field a combination of readout and method.
@bussec I'm good with those changes.


Upgrade to JDK 8

It is time to upgrade to jdk8 now that 7 is EOL

:+1:

Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests

Updated


[typescript] Interface 'nanoexpressApp' incorrectly extends interface 'TemplatedApp'.

HI,
I met a error while testing typescript project.
===========================================
node_modules/nanoexpress/nanoexpress.d.ts:166:20 - error TS2430: Interface 'nanoexpressApp' incorrectly extends interface 'TemplatedApp'.
Types of property 'listen' are incompatible.
Type '(port: number, host?: string | undefined) => Promise' is not assignable to type '{ (host: RecognizedString, port: number, cb: (listenSocket: us_listen_socket) => void): TemplatedApp; (port: number, cb: (listenSocket: any) => void): TemplatedApp; }'.
Types of parameters 'port' and 'host' are incompatible.
Type 'RecognizedString' is not assignable to type 'number'.
Type 'string' is not assignable to type 'number'.
166   export interface nanoexpressApp extends AppTemplatedApp {
~~~~~~~~~~~~~~
Found 1 error.
In my humble opinion, seems uWS's TemplatedApp interface had been changed and the nanoexpress.d.ts was not updated properly.
Could you check it?

Hi and thanks for reporting, but it is known issue, if i am fix this issue, some TypeScript declaration does not work properly.
Any help would be great.

Hi @rushprint
Can you test nanoexpress v0.12.15 fixes this error or still exists?

I fixed errors already, but still want Confirmation from you.
Please, can you confirm, issue is fixed or still exists?

No answer, closing


Getting kuruonin:pagination to work with react komposer

I've crossposted this to https://github.com/Kurounin/Pagination/issues/7, but I'm hoping to find some help here too since this is fairly more active...
I'm using Meteor <IP_ADDRESS>, kurounin:pagination 1.0.9, and react-komposer 1.8.0 (npm package).
So here's my code for instantiating the pagination within composer function:
function composer(props, onData) {
  console.log('loading pages');
  const pagination = new Meteor.Pagination(UfcFighters);

  if( pagination.ready() ) {
    console.log('ready');
    const fighters = {
      columns: [
        { width: '5%', label: '', className: '' },
        { width: '20%', label: 'Name', className: 'text-center' },
        { width: '20%', label: 'Wins/Losses/Draws', className: 'text-center' },
        { width: '20%', label: 'Weight Class', className: 'text-center' },
        { width: '10%', label: 'Status', className: 'text-center' },
        { width: '10%', label: 'Rank', className: 'text-center' },
      ],
      data: pagination.getPage(),
    };
    onData(null, { fighters, pagination });
  }
};

Is this the proper use for React Komposer? I noticed that the Pagination would constantly load the subscription and never be ready to present the data. The console output would say 'loading pages' repeatedly, but it never says 'ready'.
Any advice would be appreciated.

Fixed via https://github.com/Kurounin/Pagination/issues/7#issuecomment-230347253
I'll close this.


load library

Hi,
I'm trying to use native-lib-loader to load the .so library inside the jar file.
the problem is that this library needs this kine of tree:
/META-INF
/lib
/linux_32
libxxx[-vvv].so
/linux_64
libxxx[-vvv].so
/osx_32
libxxx[-vvv].dylib
/osx_64
libxxx[-vvv].dylib
/windows_32
xxx[-vvv].dll
/windows_64
xxx[-vvv].dll
could you tell me how can I customize the target of the so library?
Thank you very much
Angelo

Hi Angelo, unfortunately I don't know the answer to your question off the top of my head. Frankly I'm also unable to support this project anymore because I stopped using Java years ago.


Are there any plans to support Avalonia?

Are there any plans to support Avalonia?

Support! Nowadays, the Avalonia framework is gaining popularity as a potential replacement for WPF, serving as a new generation cross-platform desktop application framework. If ReoGrid could support Avalonia in the future, it would be a great addition. Additionally, I suggest using SkiaSharp instead of System.Drawing, as it outperforms traditional GDI drawing in terms of performance and cross-platform capabilities.

我想问一下在ReoGrid还没有支持avalonia的时候，还有什么平替插件可以用吗？

https://github.com/kongdetuo/ReoGrid.Avalonia I forked this repository, but I didn't have enough time to refine it


mbed import/add over ssh forces to add a username

As a result of following issue/patch #278 mbed-cli now always looks for a username in the url, and if none found it appends the git user. At least that's how I understand it.
However this removes the option where username matching can be done through the SSH layer, either by finding a matching username on the remote server or through the SSH config file.
Our internal git server relies on this principle, which (I guess) is a very common setup, because it allows to restrict users to read/write on only the repos that they're allowed to work on. For example external consultants could also have access to this git server.
One bad way to solve this is by appending your git server's username to the lib file, but that would only work if your not part of a team working on the same project. Unless we overhaul the way users are configured on our git server so that we create a git user per team. The latter would be our administrator's nightmare.
Would it be possible to optionally allow to append a username to the import and add commands so that at least no username ends up in the urls?

ARM Internal Ref: MBOTRIAGE-841

@geoffrey-vl Definitely. I'll introduce this as a small patch to support non-username mode.

@geoffrey-vl I spoke too soon.
Falling back to git@ username was introduced to handle the way Github and Gitlab do authentication when converting URL from https to ssh.
For example, if I issue git clone ssh://host without username, then Git assumes that it should use my local host username, which in the case of Github and Gitlab will always return auth error, e.g.
$ git clone github.com:ARMmbed/mbed-cli
Cloning into 'mbed-cli'...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

It's rather confusing that Github doesn't allow developers to use different username than<EMAIL_ADDRESS>To solve your case, I think that you do the following:

Make sure that protocol conversion is not set via mbed config protocol --unset (local), and then mbed config protocol -G --unset (global).
Use standard Git ssh schema, e.g. mbed import ssh://host/path/repo

Let me know if this solves the issue.

So actually people should have ssh config setup correctly when using github/gitlab :-) Https is favored anyway, so I don't think it would be such a big effort for others to setup ssh correctly because it was their decision to opt for the less-favored ssh. So in the end I think we should at least be able to override/disable that behavior.
Aside of that, I've never set protocol in mbed config, I'm appending it do my import/add commands. And for my team that seems to be required since .lib files contain https url which fail because we only have ssh setup on our internal server. We're using mbed 1.5.1 though, could that be an issue?

Mbed CLI 1.5.1 didn't handle well certain cases with private repositories. Could you please update to the latest Mbed CLI (1.7.3)?

Mbed version:
C:\Users\me\Downloads>mbed-cli --version 1.7.3 C:\Users\me\Downloads>git --version git version 2.17.1.windows.2
Cloning the application repo:
C:\Users\me\Downloads>git clone ssh://someserver/myapp Cloning into 'myapp'... remote: Counting objects: 1192, done. remote: Compressing objects: 100% (869/869), done. remote: Total 1192 (delta 644), reused 585 (delta 263)R Receiving objects: 100% (1192/1192), 982.07 KiB | 10.34 MiB/s, done. Resolving deltas: 100% (644/644), done.
Deploying without defining the protocol (fails because it tries to fetch over https):
C:\Users\me\Downloads\myapp>mbed deploy [mbed] Adding library "easy-connect" from "https://someserver/easy-connect" at rev #aa81de2177ba fatal: unable to access 'https://someserver/easy-connect/': Failed to connect to someserver port 443: Connection refused error: Could not fetch origin [mbed] ERROR: Unable to clone repository (https://someserver/easy-connect/#aa81de2177ba27d5da5dabf077583c11ef87cefa)
Deploying with defining the protocol (fails because it's using the wrong user):
C:\Users\me\Downloads\myapp>mbed deploy --protocol ssh [mbed] Adding library "easy-connect" from "ssh://git@someserver/easy-connect" at rev #aa81de2177ba git@someserver's password:
Running a mbed import ssh://someserver/myapp fails because it's also using the git user.


Add logic for getTotalPendingWithdrawalsCount

Description
Expose a method to get total pending withdrawals for account.
Update contract kit with the methods to retrieve a pending withdrawal for an account
Tested
Unit tested.
Related issues

Fixes #10118

Fixes #10119

Backwards compatibility
Not breaking change.

@soloseng

Should there also be a test for the added contractkit wrapper function?

We could add, although i noticed those have not been maintained for some time now, i have added a task here to update the backlog. https://github.com/celo-org/celo-monorepo/issues/10490


Packages at relative paths not found

I have a monorepo and am using Poetry to manage all the individual packages. (I'm not using Pants for this for other reasons.)
Packages depend on a mix of regular external libraries in pypi and local packages. For example:
[tool.poetry]
name = "ns_lexio_db"
version = "0.1.0"
description = ""
authors = []
license = "Proprietary"

[tool.poetry.dependencies]
python = "^3.6.5"
alembic = "0.9.7"
Click = "7.0"
ns_database_seeding = { path = "../lib/database_seeding", develop = true }
ns_python_core = { path = "../lib/python_core", develop = true }

[tool.poetry.dev-dependencies]

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

[tool.poetry.scripts]
lexio-db = "ns_lexio_db.cli:cli"

From here, the ns_database_seeding package depends on other internal packages and use path links too.
Next I export the requirements:
poetry export -f requirements.txt --without-hashes -o requirements.txt

which gives something like:
...
newrelic==<IP_ADDRESS>; python_full_version >= "3.6.5" and python_full_version < "4.0.0"
...
ns-feature-flag-client @ file:///Users/jdrake/talos2/lib/feature_flag_client; python_full_version >= "3.6.5" and python_full_version < "4.0.0"
...

To build the pex I run:
pex --requirement=requirements.txt --script=lexio-db --sources-directory=. --output-file=lexio-db.pex

But that fails with:
    ERROR: Command errored out with exit status 1:
     command: /Users/jdrake/.pex/venvs/s/2f33bdcc/venv/bin/python3.6 /Users/jdrake/.pex/venvs/s/2f33bdcc/venv/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /private/var/folders/4l/fzzb6qx11z34_6xfrs9w0pp80000gp/T/tmpfuc9lsur
         cwd: /private/var/folders/4l/fzzb6qx11z34_6xfrs9w0pp80000gp/T/pip-download-a3hcfey8/ns-admin
    Complete output (16 lines):
    Traceback (most recent call last):
      File "/Users/jdrake/.pex/venvs/s/2f33bdcc/venv/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py", line 280, in <module>
        main()
      File "/Users/jdrake/.pex/venvs/s/2f33bdcc/venv/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py", line 263, in main
        json_out['return_val'] = hook(**hook_input['kwargs'])
      File "/Users/jdrake/.pex/venvs/s/2f33bdcc/venv/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py", line 133, in prepare_metadata_for_build_wheel
        return hook(metadata_directory, config_settings)
      File "/private/var/folders/4l/fzzb6qx11z34_6xfrs9w0pp80000gp/T/pip-build-env-wq5hwh1m/overlay/lib/python3.6/site-packages/poetry/core/masonry/api.py", line 43, in prepare_metadata_for_build_wheel
        poetry = Factory().create_poetry(Path(".").resolve(), with_dev=False)
      File "/private/var/folders/4l/fzzb6qx11z34_6xfrs9w0pp80000gp/T/pip-build-env-wq5hwh1m/overlay/lib/python3.6/site-packages/poetry/core/factory.py", line 93, in create_poetry
        self.create_dependency(name, constraint, root_dir=package.root_dir)
      File "/private/var/folders/4l/fzzb6qx11z34_6xfrs9w0pp80000gp/T/pip-build-env-wq5hwh1m/overlay/lib/python3.6/site-packages/poetry/core/factory.py", line 251, in create_dependency
        extras=constraint.get("extras", []),
      File "/private/var/folders/4l/fzzb6qx11z34_6xfrs9w0pp80000gp/T/pip-build-env-wq5hwh1m/overlay/lib/python3.6/site-packages/poetry/core/packages/directory_dependency.py", line 41, in __init__
        raise ValueError("Directory {} does not exist".format(self._path))
    ValueError: Directory ../feature_flag_client does not exist
    ----------------------------------------
ERROR: Command errored out with exit status 1: /Users/jdrake/.pex/venvs/s/2f33bdcc/venv/bin/python3.6 /Users/jdrake/.pex/venvs/s/2f33bdcc/venv/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /private/var/folders/4l/fzzb6qx11z34_6xfrs9w0pp80000gp/T/tmpfuc9lsur Check the logs for full command output.
pid 80108 -> /Users/jdrake/.pex/venvs/8fa46d08dd05e0160395f355cccb51e48f384a1b/30f8c74d3988c60c0f5aeae7604ec76b6ce2368a/pex --disable-pip-version-check --no-python-version-warning --exists-action a --use-deprecated legacy-resolver --isolated -q --cache-dir /Users/jdrake/.pex download --dest /private/var/folders/4l/fzzb6qx11z34_6xfrs9w0pp80000gp/T/tmpanbshq0u/Users.jdrake..pyenv.versions.3.6.8.bin.python3.6 --requirement requirements.txt --index-url https://pypi.org/simple --retries 5 --timeout 15 exited with 1 and STDERR:
None

It seems like pex (or pip under the hood) is picking up on the pyproject.toml files for internal dependencies (via pip hook) but misinterpreting the relative paths. They are in each pyproject.toml file and poetry.lock file relative to that project, but it seems like pex or pip is interpreting them as relative to some virtualenv or current directory or something.
I am using the newest versions of pip, poetry, and pex.

Before digging into getting this style of PEX build working, can you try the much simpler PEP-517 strategy (I.E.: just let Poetry build it) below and report back?:
pex --script=lexio-db . --output-file=lexio-db.pex

ubuntu@ip-10-65-104-139:~/talos/db$ pex --script=lexio-db . --output-file=lexio-db.pex
    ERROR: Command errored out with exit status 1:
     command: /home/ubuntu/.pex/venvs/s/3b91b06e/venv/bin/python /home/ubuntu/.pex/venvs/s/3b91b06e/venv/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmp_w9llznd
         cwd: /tmp/pip-req-build-cbf0u8o8
    Complete output (16 lines):
    Traceback (most recent call last):
      File "/home/ubuntu/.pex/venvs/s/3b91b06e/venv/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py", line 286, in <module>
        main()
      File "/home/ubuntu/.pex/venvs/s/3b91b06e/venv/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py", line 269, in main
        json_out["return_val"] = hook(**hook_input["kwargs"])
      File "/home/ubuntu/.pex/venvs/s/3b91b06e/venv/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py", line 135, in prepare_metadata_for_build_wheel
        return hook(metadata_directory, config_settings)
      File "/tmp/pip-build-env-ho8yf7xl/overlay/lib/python3.6/site-packages/poetry/core/masonry/api.py", line 43, in prepare_metadata_for_build_wheel
        poetry = Factory().create_poetry(Path(".").resolve(), with_dev=False)
      File "/tmp/pip-build-env-ho8yf7xl/overlay/lib/python3.6/site-packages/poetry/core/factory.py", line 93, in create_poetry
        self.create_dependency(name, constraint, root_dir=package.root_dir)
      File "/tmp/pip-build-env-ho8yf7xl/overlay/lib/python3.6/site-packages/poetry/core/factory.py", line 251, in create_dependency
        extras=constraint.get("extras", []),
      File "/tmp/pip-build-env-ho8yf7xl/overlay/lib/python3.6/site-packages/poetry/core/packages/directory_dependency.py", line 41, in __init__
        raise ValueError("Directory {} does not exist".format(self._path))
    ValueError: Directory ../lib/database_seeding does not exist
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/ubuntu/.pex/venvs/s/3b91b06e/venv/bin/python /home/ubuntu/.pex/venvs/s/3b91b06e/venv/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmp_w9llznd Check the logs for full command output.
pid 10550 -> /home/ubuntu/.pex/venvs/c98b77f6c56c6f321bcf4fce331c971b0bd9b444/5690c24fbd8140971250cdec814b5f89a8262f94/pex --disable-pip-version-check --no-python-version-warning --exists-action a --use-deprecated legacy-resolver --isolated -q --cache-dir /home/ubuntu/.pex download --dest /tmp/tmpl8eywg5y/home.ubuntu..pyenv.versions.3.6.12.bin.python3.6 . --index-url https://pypi.org/simple --retries 5 --timeout 15 exited with 1 and STDERR:
None

Urg. This should mean Pip also fails? Can you try pip wheel . and report back?

Pre-emptively - seems relevant: https://stackoverflow.com/questions/64807176/pip-install-with-relative-paths-in-poetry

Ahh ok, so Poetry supports relative paths but not pip

Well, it does apparently but behind a flag. Can you try?: pip wheel --use-feature=in-tree-build .

If that works, I can probably expose an equivalent flag for that in Pex.

Oh interesting, good to know.
Same error:
ubuntu@ip-10-65-104-139:~/talos/db$ pip install -U pip
Requirement already satisfied: pip in /home/ubuntu/.pyenv/versions/3.6.12/lib/python3.6/site-packages (21.3.1)
ubuntu@ip-10-65-104-139:~/talos/db$ pip wheel --use-feature=in-tree-build .
DEPRECATION: In-tree builds are now the default. pip 22.1 will enforce this behaviour change. A possible replacement is to remove the --use-feature=in-tree-build flag.
Processing /home/ubuntu/talos/db
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
ERROR: Exception:
Traceback (most recent call last):
  File "/home/ubuntu/.pyenv/versions/3.6.12/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3021, in _dep_map
    return self.__dep_map
  File "/home/ubuntu/.pyenv/versions/3.6.12/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2815, in __getattr__
    raise AttributeError(attr)
AttributeError: _DistInfoDistribution__dep_map

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ubuntu/.pyenv/versions/3.6.12/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3101, in __init__
    super(Requirement, self).__init__(requirement_string)
  File "/home/ubuntu/.pyenv/versions/3.6.12/lib/python3.6/site-packages/pip/_vendor/packaging/requirements.py", line 117, in __init__
    raise InvalidRequirement(f"Invalid URL: {req.url}")
pip._vendor.packaging.requirements.InvalidRequirement: Invalid URL: ../lib/database_seeding

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ubuntu/.pyenv/versions/3.6.12/lib/python3.6/site-packages/pip/_internal/cli/base_command.py", line 164, in exc_logging_wrapper
    status = run_func(*args)
  File "/home/ubuntu/.pyenv/versions/3.6.12/lib/python3.6/site-packages/pip/_internal/cli/req_command.py", line 205, in wrapper
    return func(self, options, args)
  File "/home/ubuntu/.pyenv/versions/3.6.12/lib/python3.6/site-packages/pip/_internal/commands/wheel.py", line 144, in run
    requirement_set = resolver.resolve(reqs, check_supported_wheels=True)
  File "/home/ubuntu/.pyenv/versions/3.6.12/lib/python3.6/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 93, in resolve
    collected.requirements, max_rounds=try_to_avoid_resolution_too_deep
  File "/home/ubuntu/.pyenv/versions/3.6.12/lib/python3.6/site-packages/pip/_vendor/resolvelib/resolvers.py", line 482, in resolve
    state = resolution.resolve(requirements, max_rounds=max_rounds)
  File "/home/ubuntu/.pyenv/versions/3.6.12/lib/python3.6/site-packages/pip/_vendor/resolvelib/resolvers.py", line 374, in resolve
    failure_causes = self._attempt_to_pin_criterion(name)
  File "/home/ubuntu/.pyenv/versions/3.6.12/lib/python3.6/site-packages/pip/_vendor/resolvelib/resolvers.py", line 214, in _attempt_to_pin_criterion
    criteria = self._get_updated_criteria(candidate)
  File "/home/ubuntu/.pyenv/versions/3.6.12/lib/python3.6/site-packages/pip/_vendor/resolvelib/resolvers.py", line 204, in _get_updated_criteria
    for requirement in self._p.get_dependencies(candidate=candidate):
  File "/home/ubuntu/.pyenv/versions/3.6.12/lib/python3.6/site-packages/pip/_internal/resolution/resolvelib/provider.py", line 204, in get_dependencies
    return [r for r in candidate.iter_dependencies(with_requires) if r is not None]
  File "/home/ubuntu/.pyenv/versions/3.6.12/lib/python3.6/site-packages/pip/_internal/resolution/resolvelib/provider.py", line 204, in <listcomp>
    return [r for r in candidate.iter_dependencies(with_requires) if r is not None]
  File "/home/ubuntu/.pyenv/versions/3.6.12/lib/python3.6/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 236, in iter_dependencies
    requires = self.dist.iter_dependencies() if with_requires else ()
  File "/home/ubuntu/.pyenv/versions/3.6.12/lib/python3.6/site-packages/pip/_internal/metadata/pkg_resources.py", line 91, in iter_dependencies
    return self._dist.requires(extras)
  File "/home/ubuntu/.pyenv/versions/3.6.12/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2736, in requires
    dm = self._dep_map
  File "/home/ubuntu/.pyenv/versions/3.6.12/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3023, in _dep_map
    self.__dep_map = self._compute_dependencies()
  File "/home/ubuntu/.pyenv/versions/3.6.12/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3033, in _compute_dependencies
    reqs.extend(parse_requirements(req))
  File "/home/ubuntu/.pyenv/versions/3.6.12/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3094, in parse_requirements
    yield Requirement(line)
  File "/home/ubuntu/.pyenv/versions/3.6.12/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3103, in __init__
    raise RequirementParseError(str(e))
pip._vendor.pkg_resources.RequirementParseError: Invalid URL: ../lib/database_seeding

Hrm. OK. I don't think there is much I'm going to be able to do here. Is this workflow acceptable / does it even work for you?:
rm -rf dist/
poetry build -f wheel
pex dist/*.whl --script=lexio-db --output-file=lexio-db.pex

Ok, cloned this: https://github.com/ya-mori/python-monorepo
Poetry does not build all local deps :/. There is no nice way I can tell to get those local deps either. Poetry is too pretty in the relevant commands to sanely parse this:
$ poetry show
The virtual environment found in /home/jsirois/.pex/venvs/e758bce3929d6c303b73fc1bc283372ab12d38af/2d1d404c3de23b1810386195be7410700b1feb14 seems to be broken.
Recreating virtualenv project-two-kJAods8U-py3.9 in /home/jsirois/.cache/pypoetry/virtualenvs/project-two-kJAods8U-py3.9
absl-py                0.11.0                   Abseil Python Common Libraries, see https://github.com/abseil/abseil-py.
astunparse             1.6.3                    An AST unparser for Python
attrs                  20.3.0                   Classes Without Boilerplate
cachetools             4.2.1                    Extensible memoizing collections and decorators
certifi                2020.12.5                Python package for providing Mozilla's CA Bundle.
chardet                4.0.0                    Universal encoding detector for Python 2 and 3
flatbuffers            1.12                     The FlatBuffers serialization format for Python
gast                   0.3.3                    Python AST that abstracts the underlying Python version
google-auth            1.27.1                   Google Authentication Library
google-auth-oauthlib   0.4.3                    Google Authentication Library
google-pasta           0.2.0                    pasta is an AST-based Python refactoring library
grpcio                 1.32.0                   HTTP/2-based RPC framework
h5py                   2.10.0                   Read and write HDF5 files from Python
idna                   2.10                     Internationalized Domain Names in Applications (IDNA)
keras-preprocessing    1.1.2                    Easy data preprocessing and data augmentation for deep learning models
lib-one                0.1.0 ../../libs/lib-one
lib-two                0.1.0 ../../libs/lib-two
markdown               3.3.4                    Python implementation of Markdown.
more-itertools         8.7.0                    More routines for operating on iterables, beyond itertools
numpy                  1.19.5                   NumPy is the fundamental package for array computing with Python.
oauthlib               3.1.0                    A generic, spec-compliant, thorough implementation of the OAuth request-signing logic
opt-einsum             3.3.0                    Optimizing numpys einsum function
packaging              20.9                     Core utilities for Python packages
pluggy                 0.13.1                   plugin and hook calling mechanisms for python
protobuf               3.15.5                   Protocol Buffers
py                     1.10.0                   library with cross-python path, ini-parsing, io, code, log facilities
pyasn1                 0.4.8                    ASN.1 types and codecs
pyasn1-modules         0.2.8                    A collection of ASN.1-based protocols modules.
pyparsing              2.4.7                    Python parsing module
pytest                 5.4.3                    pytest: simple powerful testing with Python
requests               2.25.1                   Python HTTP for Humans.
requests-oauthlib      1.3.0                    OAuthlib authentication support for Requests.
rsa                    4.7.2                    Pure-Python RSA implementation
six                    1.15.0                   Python 2 and 3 compatibility utilities
tensorboard            2.4.1                    TensorBoard lets you watch Tensors Flow
tensorboard-plugin-wit 1.8.0                    What-If Tool TensorBoard plugin.
tensorflow             2.4.1                    TensorFlow is an open source machine learning framework for everyone.
tensorflow-estimator   2.4.0                    TensorFlow Estimator.
termcolor              1.1.0                    ANSII Color formatting for output in terminal.
typing-extensions      <IP_ADDRESS>                  Backported and Experimental Type Hints for Python 3.5+
urllib3                1.26.3                   HTTP library with thread-safe connection pooling, file post, and more.
wcwidth                0.2.5                    Measures the displayed width of unicode strings in a terminal
werkzeug               1.0.1                    The comprehensive WSGI web application library.
wrapt                  1.12.1                   Module for decorators, wrappers and monkey patching.

And:
$ poetry show --tree
The virtual environment found in /home/jsirois/.pex/venvs/e758bce3929d6c303b73fc1bc283372ab12d38af/2d1d404c3de23b1810386195be7410700b1feb14 seems to be broken.
Recreating virtualenv project-two-kJAods8U-py3.9 in /home/jsirois/.cache/pypoetry/virtualenvs/project-two-kJAods8U-py3.9
lib-one 0.1.0
lib-two 0.1.0
└── tensorflow ^2.4.1
    ├── absl-py >=0.10,<1.0
    │   └── six *
    ├── astunparse >=1.6.3,<1.7.0
    │   └── six >=1.6.1,<2.0 (circular dependency aborted here)
    ├── flatbuffers >=1.12.0,<1.13.0
    ├── gast 0.3.3
    ├── google-pasta >=0.2,<1.0
    │   └── six * (circular dependency aborted here)
    ├── grpcio >=1.32.0,<1.33.0
    │   └── six >=1.5.2 (circular dependency aborted here)
    ├── h5py >=2.10.0,<2.11.0
    │   ├── numpy >=1.7
    │   └── six * (circular dependency aborted here)
    ├── keras-preprocessing >=1.1.2,<1.2.0
    │   ├── numpy >=1.9.1 (circular dependency aborted here)
    │   └── six >=1.9.0 (circular dependency aborted here)
    ├── numpy >=1.19.2,<1.20.0 (circular dependency aborted here)
    ├── opt-einsum >=3.3.0,<3.4.0
    │   └── numpy >=1.7 (circular dependency aborted here)
    ├── protobuf >=3.9.2
    │   └── six >=1.9 (circular dependency aborted here)
    ├── six >=1.15.0,<1.16.0 (circular dependency aborted here)
    ├── tensorboard >=2.4,<3.0
    │   ├── absl-py >=0.4 (circular dependency aborted here)
    │   ├── google-auth >=1.6.3,<2
    │   │   ├── cachetools >=2.0.0,<5.0
    │   │   ├── pyasn1-modules >=0.2.1
    │   │   │   └── pyasn1 >=0.4.6,<0.5.0
    │   │   ├── rsa >=3.1.4,<5
    │   │   │   └── pyasn1 >=0.1.3 (circular dependency aborted here)
    │   │   └── six >=1.9.0 (circular dependency aborted here)
    │   ├── google-auth-oauthlib >=0.4.1,<0.5
    │   │   ├── google-auth >=1.0.0 (circular dependency aborted here)
    │   │   └── requests-oauthlib >=0.7.0
    │   │       ├── oauthlib >=3.0.0
    │   │       └── requests >=2.0.0
    │   │           ├── certifi >=2017.4.17
    │   │           ├── chardet >=3.0.2,<5
    │   │           ├── idna >=2.5,<3
    │   │           └── urllib3 >=1.21.1,<1.27
    │   ├── grpcio >=1.24.3 (circular dependency aborted here)
    │   ├── markdown >=2.6.8
    │   │   └── importlib-metadata *
    │   │       ├── typing-extensions >=3.6.4
    │   │       └── zipp >=0.5
    │   ├── numpy >=1.12.0 (circular dependency aborted here)
    │   ├── protobuf >=3.6.0 (circular dependency aborted here)
    │   ├── requests >=2.21.0,<3 (circular dependency aborted here)
    │   ├── six >=1.10.0 (circular dependency aborted here)
    │   ├── tensorboard-plugin-wit >=1.6.0
    │   └── werkzeug >=0.11.15
    ├── tensorflow-estimator >=2.4.0,<2.5.0
    ├── termcolor >=1.1.0,<1.2.0
    ├── typing-extensions >=3.7.4,<3.8.0 (circular dependency aborted here)
    └── wrapt >=1.12.1,<1.13.0
pytest 5.4.3 pytest: simple powerful testing with Python
├── atomicwrites >=1.0
├── attrs >=17.4.0
├── colorama *
├── importlib-metadata >=0.12
│   ├── typing-extensions >=3.6.4
│   └── zipp >=0.5
├── more-itertools >=4.0.0
├── packaging *
│   └── pyparsing >=2.0.2
├── pluggy >=0.12,<1.0
│   └── importlib-metadata >=0.12
│       ├── typing-extensions >=3.6.4
│       └── zipp >=0.5
├── py >=1.5.0
└── wcwidth *

Afaict you'll either need to build all needed local wheels yourself and then combine those with the exported poetry lock - lots of fiddly there. Otherwise it seems like #1361would work if implemented since it appears to be the case that poetry install does install local projects as dist-info distributions.

This gives the same error:
rm -rf dist/
poetry build -f wheel
pex dist/*.whl --script=lexio-db --output-file=lexio-db.pex
# pip._vendor.pkg_resources.RequirementParseError: Invalid URL: ../lib/database_seeding

I'll see if building all the local wheels could work. If it doesn't I'll probably end up refactoring the system around it to use a regular installation method.
Thanks so much for digging in @jsirois!

Aha, here is the issue:
$ unzip -qc dist/project_two-0.1.0-py3-none-any.whl project_two-0.1.0.dist-info/METADATA | grep Requires-Dist
Requires-Dist: lib-one @ ../../libs/lib-one
Requires-Dist: lib-two @ ../../libs/lib-two

Poetry is building invalid wheels via:

https://www.python.org/dev/peps/pep-0345/#version-specifiers ->
https://www.python.org/dev/peps/pep-0440/#file-urls

I'll see if this big has been filed. I do hope this is only the case for the build command or else it means its impossible to publish a valid set of dists to PyPI from a multi-project Poetry repo!

https://github.com/python-poetry/poetry/issues/4709

Ok, @jdrake the only way to get this working sanely in Pex will be if #1361 gets implemented; otherwise, Poetry is breaking too many PEPs to work with without writing a bunch of special case code to deal with Poetry projects. I'm going to close as won't fix in favor of #1361. Please speak up though if you have ideas on other ways for Pex to handle this.


path/filepath: Ext does not return correct values

Consider "path/.config" and ".gitignore". If I use filepath.Ext(path) on either one of those strings I would receive ".config" or ".gitignore".
https://play.golang.org/p/NVteIVi1wTM
This is in my opinion not correct. I opened a PR #37580 but @ianlancetaylor stated it would break compatibility and the function does as documentd.  Hence I closed it and opened this issue to start a discussion about it.
An extension for files exists as they provided meta data for operating systems for example to open them with a default application.
A dot file is a hidden file with a normal name. So .gitignore does not have the extension .gitignore the name of the file is gitignore. Similar to hidden folders.
If the file would be .gitignore.go then it would have the .go extension.
In any case filepath.Ext(path) does return an extension for those cases - hidden file, hidden folder- even though they do not have an extension.
A new method could be added which takes that into account or the old gets adjusted. Or maybe my understanding of extensions is just fundamentally wrong.

To be clear, I don't disagree with your definition of extensions.  I just think that the function behaves exactly as documented, and that we should not change the documentation and behavior without a very good reason.  The fact that the function doesn't quite correspond to most people's definition of extension does not seem to me to be a good enough reason.

The fact that the function doesn't quite correspond to most people's definition of extension does not seem to me to be a good enough reason.

In my eyes it is the reason. Yes, the function does exactly what is documented but that doesn't mean it is right and that's the reason why I am seeking a discussion to better understand the reasons for it.
My problem is that filepath.Ext(path)  does not work as one would expect it to work because it differs from the definition of file extensions: A filename extension is an identifier specified as a suffix to the name of a computer file.
So if I pass a hidden file without an extension to Ext() I would it expect to return no extension as the file just has a name.
Having a python background and also finding the same mechanics in rust, I wondered that golang behaved differently.
Examples Rust/Python

import os

# ('.gitignore', '')
print(os.path.splitext('.gitignore'))

# ('path/.config', '')
print(os.path.splitext('path/.config'))

# ('main', '.go')
print(os.path.splitext('main.go'))

use std::path::Path;

fn main() {

    // None
    println!("{:?}", Path::new(".gitignore").extension());

    // None
    println!("{:?}", Path::new("path/.config").extension());

    // go
    println!("{:?}", Path::new("main.go").extension())
}

And I cannot find a use case where someone depends on filepath.Ext() being implemented as it is now. For me the filepath.Ext(path) does not behave like a function designed working with files but more like a util string function.

IMO, the current behavior makes it unsuitable for anything since the result simply can't be trusted. What value do application developers get from it as-is? The fact it does what the documentation says it does only means it's badly implemented and conceived. It needs to correspond to how the supported operating systems' see/handle file extensions rather than to a bogus arbitrary definition.

Duplicate of #24239


Question: Get socket fileno() from flask.request

Hi,
Is there a way to get the socket or socket.fileno() from an incoming flask.request?
I'd like like manipulate the socket to force failures but I'm not able to find any related documentation.
Any help/direction would be appreciated. Thank you.

No, the WSGI application layer can't access this.


Update SIGs/Slack channels docs for Hubble

This page is missing the references for hubble community channels:
https://docs.cilium.io/en/latest/community/#slack

This was addressed in #13563.


⚠ Jenkins Plugins Artifactory has degraded performance

In 6be9aa0, Jenkins Plugins Artifactory (https://get.jenkins.io/plugins/artifactory/) experienced degraded performance:

HTTP code: 200
Response time: 2452 ms

Resolved: Jenkins Plugins Artifactory performance has improved in b2b5d08 after 26 minutes.


MetaMask txn error when selling certain cards

Error only occurs on some cards (e.g. "$300 eth" card had error, "Pen15 coin" did not).

Fixed with caching update.


Add P1 => P2 MongoDB Upgrade Guide

Describe this PR
This PR provides a short upgrade guide for those trying to migrate from Prisma 1 running on MongoDB to Prisma 2.

Closes https://github.com/prisma/docs/issues/2767
Once this is merged we can merge: https://github.com/prisma/pris.ly/pull/47

Just waiting on #3017


Graph | Data Strucutres | C++

Implementation of Graphs
Adding two new implementation of  Graph -
Type of Issue -
There is only one implementation of Graph using Adjacency list. I will add two more implementation which are Graph using Adjancency Matrix and Graph using Edge list.
Please add/delete options that are not relevant.

[x] Adding New Code
[x] Improving Code
[x] Improving Documentation
[x] Bug Fix

Programming Language
Please add/delete options that are not relevant.

[x] C++

Self Check

Ask for issue assignment before making Pull Request.
Add your file in the proper folder
Clean Code and Documentation for better readability
Add Title and Description of the program in the file

:star2: Star it :fork_and_knife:Fork it :handshake: Contribute to it!
Happy Coding,

Assign this to me.


Add disclaimer to cockroach dump docs

Fixes #1155

This change is

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/cb69371e6d371093054baee47d038dec56bfd07e/

Review status: 0 of 1 files reviewed at latest revision, all discussions resolved, some commit checks failed.

Comments from Reviewable

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/cb69371e6d371093054baee47d038dec56bfd07e/

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/cb69371e6d371093054baee47d038dec56bfd07e/

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/cb69371e6d371093054baee47d038dec56bfd07e/


Add neon target support

This PR:

[x] Copy https://github.com/BLAKE2/BLAKE2/tree/master/neon to BLAKE2/neon
[x] Add blake2b_init_key_with_param api to neon/blake2.h, like: https://github.com/nervosnetwork/blake2b-rs/commit/314060ef7d910e99246fa814221bf5860cde0a1f#diff-994064871e7b302d76f4980b8614efaa63f5317e98c805d86409adb0124da53dR74
[x] remove useless apis like blake2s, blake2xs, blake2sp

@zhangsoledad Please trigger the CI workflows.

https://github.com/actions/runner-images/issues/10820


Allow for passing/setting defaults to the 'requests' module.

Allow for passing/setting defaults to the 'requests' module.  This is useful for us where we'd like to specify a proxy and other things.

gotcha. I don't think merging your travis file is what you want here, though.
I can take a look at your other PR https://github.com/dweinstein/node-google-play/pull/20 which just has the one change to add your defaults and that seems logical that it might be useful for different use cases.
The reason the tests were failing probably has to do with the fact that travis won't use my secure env values when the PR is from a fork. this is to protect the PR from potentially stealing my secret values see this stackoverflow for a little more info on this.


Binary CRC8

Will this lib work on a 24bit string?  I need to calculate the CRC8 for a 24bit binary string.  I will append the CRC to the 24bit string to sent a SPI transaction from a teensy arduino to an ad74412r ADC device.
Can you point me to an example?
Thanks,
Chuck

Thanks for the question, it is pretty straightforward as you have a fixed length array.
The code below should get you started:
#include "CRC.h"

uint8_t  binaryString[24] = { 0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3 };

void setup()
{
  Serial.begin(115200);
  Serial.println(__FILE__);

  //  from CRC.h
  //  uint8_t crc8(const uint8_t *array, uint16_t length, const uint8_t polynome = 0xD5, const uint8_t startmask = 0x00, const
uint8_t endmask = 0x00, const bool reverseIn = false, const bool reverseOut = false);

  Serial.println( crc8(binaryString, 24), HEX);  // add or adjust other parameters if needed
  Serial.println( crc8(binaryString, 24), DEC);  // add or adjust other parameters if needed
  Serial.println( crc8(binaryString, 24), BIN);  // add or adjust other parameters if needed
}

if this solves the issue, you may close it.

received an error when i tried to run it...
sketch_jul01b:12: error: expected unqualified-id before 'const'
uint8_t endmask = 0x00, const bool reverseIn = false, const bool reverseOut = false);
^
sketch_jul01b:12: warning: unused variable 'endmask'
uint8_t endmask = 0x00, const bool reverseIn = false, const bool reverseOut = false);
^
Using library CRC at version 0.3.1 in folder: D:\ChuckW\Arduino\libraries\CRC
expected unqualified-id before 'const'

there is apparently a  \n  introduced in the copy / paste process.
I edited the sketch above, please try again

ok works now . I don't understand the string binaryString. My data will only be 1s and 0s as a 24 bit binary array, will this still work?

post your code

Also what is the polynomial being used?  I need to use C(x) = x8 + x2 + x1 + 1.
Please be patient I'm still learning this CRC stuff.

24 bits = 3 bytes, so you shoul try this
#include "CRC.h"

uint8_t  binaryString[3] = { 0b10011001, 0b01010101, 0b11110000 };  //  3 bytes as 24 bits

void setup()
{
  Serial.begin(115200);
  Serial.println(__FILE__);

  //  from CRC.h
  //  uint8_t crc8(const uint8_t *array, uint16_t length, const uint8_t polynome = 0xD5, const uint8_t startmask = 0x00, const uint8_t endmask = 0x00, const bool reverseIn = false, const bool reverseOut = false);

  Serial.println( crc8(binaryString, 3), HEX);
}

Thanks i believe this may work, I'll work with it and let you know.  I'll close the issue if all is good.  Thank you for helping me with this

Also what is the polynomial being used? I need to use C(x) = x8 + x2 + x1 + 1.

x8 + x2 + x1 + 1 ==>
1*x8 + 0*x7 + 0*x6 + 0*x5 + 0*x4 + 0*x3 + 1*x2 + 1*x1 + 1*x0  ==>
1      0      0      0      0      0      1      1      1  ==>
1 0000 0111  ==>
0000 0111 ==>
0x07  ==>

Serial.println( crc8(binaryString,     3,      0x07), HEX);
                        string       length  polynome

What is the x in the equation?  That is confusing to me.

I think i answered my own question.  is x the value of the bit at that location?  And when they ask for the initial value what is that and most of the time i see it as 0?

this explains all you ever want to know about CRC

http://www.sunshine2k.de/articles/coding/crc/understanding_crc.html

I think the CRC8 polynomial is not the one i need as I'm not getting the correct result.  I need it to be x8 + x2 + x1 + 1.  Can you add that poly to the code?

E.g. 0x41002E has a CRC of 0x27

Have you verified e.g with https://crccalc.com/ ?

You need to set the correct polynome
#include "CRC.h"

uint8_t  binaryString[3] = { 0x41, 0x00, 0x2E };  //  3 bytes as 24 bits

void setup()
{
  Serial.begin(115200);
  Serial.println(__FILE__);

  //  from CRC.h
  //  uint8_t crc8(const uint8_t *array, uint16_t length, const uint8_t polynome = 0xD5, const uint8_t startmask = 0x00, const uint8_t endmask = 0x00, const bool reverseIn = false, const bool reverseOut = false);

  Serial.println( crc8(binaryString, 3, 7), HEX);
}

void loop()
{
}

// -- END OF FILE --

output 27


Dropdown Menu View

Implemented a dropdown menu view

This PR has a lot of generated files included. Please remove those files.


(v0.9.1-release) Exclude TreeTest in jdk_lang for aix and win (#3550)

Exclude TreeTest in jdk_lang for aix and win

Signed-off-by: Longyu Zhang<EMAIL_ADDRESS>

This is a cherry pick from master branch. @llxia Could you review it? Thanks.


Add test for For command for time series list

Need to add tests for For command iterating time series list.

I updated the tests.  Close the issue.


Empty value is not valid

Looks like if value is empty it's not valid and when value is not valid it's not propagated to onTimeChange. I think it's not correct. There many cases when value may be empty (in my case too).
BTW, there is a lot of checks in isValid function, but in most cases first check will get you false and there is no reasons to continue checking.

@shir thanks for informing that, I have removed multiple unnecessary checks, altho I agree blank value can be valid at some points, see what @dima-bu has to say about this.

I'm facing this problem as well, and the worst thing is that when the component updates the previous value is set back.


SUPPORT: How does Netkan update a mod?

Hi, Sorry to raise this as an issue, but I figure this is possibly the best place?
So I've taken over the KDEX mod and added it to Netkan (many thanks for various assistances rendered so far!).  However, since re-releasing the original I've made several small patch releases, however Netkan does not appear to be picking them up, and hence they don't show up in CKAN either.
The v1.10 release -did- end up in CKAN, however that was after I asked a question on IRC so not sure if somebody poked something manually (unfortunately I wasn't able to hang around until someone was able to answer).
My impression was that every time I make a new release on GitHub, Netkan picks it up (after some time), generates the new ckan metadata, and updates the repository. However, according to the netkan bot run it was last checked 6 days ago, but there's been a point-release made 8 days ago.
So either I'm just being too impatient, or perhaps I've simply misunderstood how it's all supposed to work.
So my actual question is: what do I have to do to get an updated version of a mod, released on GitHub, into CKAN, preferably automagically?
Thanks.

Yeah, the netkan-bot seems to be stuffed. I'll chase @techman83.

I believe this is reporting the same problem as #5992 (the bot is not running), which I have updated to remove the ambiguity now that we have a report of a mod not updating (I previously was not sure whether the problem was with the bot running or just updating the status page). I'm going to close this issue to keep things tidy; please direct all further updates on this problem (or any other mod not updating) to that issue.
@politas, would it be OK if I made a public announcement about this on the forum thread? This could be causing confusion for many users and modders with the usual attendant forum traffic, and it would be nice to communicate the status since we know there's an issue.


Shift key gets stuck when dragging to fancy zones when using iLO Integrated Remote Console

ℹ Computer information

PowerToys version: 0.25.0
PowerToy Utility: FancyZones
Running PowerToys as Admin: Yes
Windows build number: [run "winver"] 10.0.18363.1198

📝 Provide detailed reproduction steps (if any)

Use shift key to drag a window to a fancy zone.
When the window snaps release the left mouse button and the shift key in a very short time compared to each other.
Specific shift key (left or right, whichever is originally used to drag) gets stuck.

✔ Expected result
Shift key getting released, keyboard locale staying intact.
❌ Actual result
Shift key gets stuck. Keyboard locale resets to English (normally kept at Turkish). Tapping on the specific shift key (left or right, originally used) once, releases the shift key. For example if this happens when you dragged with the right shift key, then the left shift key will not fix it. If you remove your finger from the shift key about at least a second after releasing the mouse button, this bug does not happen, shift gets released normally. It is timing sensitive.
📷 Screenshots

@memin1857
we haven't made any change in this code in the recent releases and it's the first time someone report such a problem.
Can you test it using a different keyboard to make sure it's not a problem with you current keyboard?

Tested with different keyboards (all wired) it is the same, this is not a problem with the keyboard.
I actualy found out why it is happening. It is only happening with the iLO Integrated Remote Console app of HPE servers. That app normally captures the keyboard input. So when I release the shift key, if the pointer is over the iLO console app at that time and the keyboard release/stroke from powertoys probabaly get lost to that console. (because they are forwarded to a remote server) I tested and it works normally when the shift button is released outside the iLO console app window.
So this is not a bug of powertoys but a conflict between apps that capture the keyboard. My current workaround is to release the shift key while the pointer is outside the iLO console app.
Not tested but this would probably happen with VMware/Virtualbox etc console windows too I guess as they capture the keyboard too.
I am not sure if it would be worth the time spend to have a workaround for this in the code, but it would benefit people dragging any app (mostly virtualization or remote consoles) to fancy zones. FYI

@memin1857
thanks for the follow up.
Is using a secondary mouse button to activate the zone a viable alternative for you?
I suspect that using a different key other than Shift is not a solution for your case since we already know it's not working for other apps like VMWare Workstation.

Yes, the non-primary mouse button works and is a viable alternative.
It is also fine if I just release the shift key while the pointer is already outside the keyboard capturing iLO console window.
As there is now two possible workarounds and this conflict is documented for community benefit, I guess we can close the issue. Thank you

Issue added to https://github.com/microsoft/PowerToys/wiki/Application-Compatibility


Update k3s main page

Update the main page for #1017 and #1018
This tweaks the main page to update the description of what we remove and add to k3s that sets us apart from k8s.
Closes https://github.com/rancher/k3s/issues/1017 and closes https://github.com/rancher/k3s/issues/1018

LGTM


Why do we need two separate projects for the tests?

What kind of problem is being solved this way?
The question is probably for @mitikov.

The .Tests project is more of an integration test, requiring a lot of moving parts to work correctly, including having generated test binaries.  The UnitTest project are standalone tests that do not require running "build_test_assets.cmd" (or whatever I named it).
For right now, this is SUPER useful to me because our internal infrastructure can't really handle generating test binaries (and putting them in a blob to download will be mildly expensive).  By having a separate UnitTests project I can have the unit tests run on every pull request and every checkin automatically without having to create a test resource binary drop.
I might merge those projects later if I figure out a way to do this without needing to payload tests.  (It's unfortunate that .Net Core doesn't support codedom...  I originally had them all working by compiling them and running as I went, but I've not come up with a good approach in .Net Core to do this without batch files and dependencies.)

thank you for the info

Yep, my idea was similar - to have unit and integration tests separate.
Integration tests to ensure API fetches data corretly from existing source.
While getting to know older ClrMD version, I was wondering how should code behave with the input data, so I had to capture snapshots with prototyped objects and inspect runtime values with debugger attached.
I aim integration test to be able answer most of the questions as coverage increases.
Today VS can locate API usages  -> would include integration tests -> show what to expect from the input data.
While unit tests are lightweight and focused on implementation logic, like how ClrMD treats in-process data.
As unit tests do not need to physically open memory snapshot, they are super fast with proper isolation - could be run in parallel.
Sorry for a late reply, Happy New Year 🤪


Add exhaustive function call inlining to spirv-opt

Inlining is done for all functions designated as entry points.
This pass is intended primarily to be used with other (yet to be added) passes designed to reduce SPIR-V file size, also targeting entry point functions. In this usage, inlining serves in lieu of interprocedural analysis.
The next pass will target elimination of function-scope variables and their loads, stores and access chains.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.

Thanks for making the changes.  The changes are good.
Still to review: core of the inline algorithm, and the tests.  Sorry for the delay.

np :)
Greg Fischer
Project Manager and Senior Engineer
LunarG, Inc. - 3D Driver Innovations
<EMAIL_ADDRESS><EMAIL_ADDRESS>On Wed, Feb 8, 2017 at 9:21 AM, David Neto<EMAIL_ADDRESS>wrote:

Thanks for making the changes. The changes are good.
Still to review: core of the inline algorithm, and the tests. Sorry for
the delay.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/KhronosGroup/SPIRV-Tools/pull/534#issuecomment-278376319,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHL6q1rvtKmAAdWFoecRos-cr2wMfvw1ks5raeuTgaJpZM4LowxB
.

Overall I found the core GenInline* function really long.  I'd suggest shortening it with more helper functions to make specific instructions.  Finding other ways to shorten it would also be good.

Ok, looks like the int to SpvStorageClass requires an explicit cast to satisfy MSVC.  I like constructor casts. :-)
In the interest of reusing some of my rebase work, I'll post an MR with the squashed commit and the fix, then wait for bots again.

[TIL.  GitHub has a feature where users with write access can add new commits to a pull request branch. That would have saved me the trouble of making a new branch. :-)
]

Squashed, rebased, and some trivial conflicts resolved.
Content is now on master with commit 04fcc6674
Thank you!

Thanks David and Lei!
Greg
Greg Fischer
Project Manager and Senior Engineer
LunarG, Inc. - 3D Driver Innovations
<EMAIL_ADDRESS><EMAIL_ADDRESS>On Thu, Mar 30, 2017 at 7:19 AM, David Neto<EMAIL_ADDRESS>wrote:

Squashed, rebased, and some trivial conflicts resolved.
Content is now on master with commit 04fcc66
https://github.com/KhronosGroup/SPIRV-Tools/commit/04fcc6674333914e9b8da9e4c103de638ef4c609
Thank you!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/KhronosGroup/SPIRV-Tools/pull/534#issuecomment-290407949,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHL6q7KILKIaD2TQKTv_PxpM89H2oRXTks5rq6vUgaJpZM4LowxB
.


Add optional left argument to both Add[Tatin|NuGet]Dependencies

This would allow silent test cases.

Rejected


How to get back the URI of the current document in an expression?

It is rather a request for a new feature or at least for some guidance.
Our system processes several hundreds and thousands of JSON response from various sources per day. There is an emerging demand to know the URI / URL / name of the currently processed document within the expression itself. (The driving force behind this request is that URL sometimes contains additional valuable information.) It could be something very similar to Saxon Xpath document-uri()
I've checked the documentation and have found that I could easily register new custom function to JacksonRuntime. It is awesome however I am a bit uncertain whether this would be the best approach since it would require my function to be stateful (ie. have a memory where the document url can be stored.)
Shall I create my custom runtime where I store the actual document URI and make my function stateless?
PS: I am using v0.2.1.

Stateful functions can work, but can be tricky to get right, especially in a multi-threaded environment.
You could do something like this:
public class DocumentUriFunction extends BaseFunction {
  private static String documentUri;

  public DocumentUriFunction() {
    super(/* there's actually no support for no-args functions, so you'd have to implement a new subclass of ArgumentConstraint and pass here */);
  }

  public void setDocumentUri(String documentUri) {
    this.documentUri = documentUri;
  }

  @Override
  protected <T> T callFunction(Adapter<T> runtime, List<FunctionArgument<T>> arguments) {
    return runtime.createString(documentUri);
  }
}

// ---

DocumentUriFunction documentUriFunction = new DocumentUriFunction();
FunctionRegistry defaultFunctions = FunctionRegistry.defaultRegistry();
FunctionRegistry customFunctions = defaultFunctions.extend(documentUriFunction);
RuntimeConfiguration configuration = new RuntimeConfiguration.Builder()
                                       .withFunctionRegistry(customFunctions)
                                       .build();
JmesPath<JsonNode> runtime = new JacksonRuntime(configuration);

// --

Expression<JsonNode> expression = jmespath.compile("something[?prop == document_uri()]");
documentUriFunction.setDocumentUri("foo.json");
JsonNode result = expression.search(input);

In a single threaded environment that would work fine, as long as you set the document URI before searching that's the value that will be returned by the function.
In a multi-threaded environment it's not that easy though. You would either have to keep one runtime per thread and ensure you never shared them between threads, or keep the document URI in a thread local (global variable essentially), or (not recommended) create a new runtime and recompile the expression for every invocation.
I guess you could implement your own runtime somehow – something I've been considering is to add a "search context", an object that would be passed around to every collaborator in a search. Such a context would be a good place to put a document URI. It's a pretty invasive change, though.
Did this help you at all? Did I understand what you were trying to do correctly?

Yes, you got it right. Thanks for the code snippet, really appreciated. It is good to know that I was on the right track.
Since our environment is multithreaded that is why I want to be more cautious. I may give TLS a try since I do not see how I could add search context to a custom runtime.
Anyway, thanks a lot for your input.


⚠ SceneTime has degraded performance

In afef1dc, SceneTime ($ST) experienced degraded performance:

HTTP code: 200
Response time: 8718 ms

Resolved: SceneTime performance has improved in 2a9c113 after 7 minutes.


SlashRemover optimization

Removes regex and uses loops instead.
Does not copy the entirety of req->path() for trailing slash remover, as we remove its last N slash characters anyway.
It's one pass, meaning lookup, replacement, and erasure all happen in one swipe through the path.

I noticed config.example.json for some reason is included with the commits, I'll try to remove it.

I have more optimization in mind for removeExcessiveSlashes, will see how far it can go

It's possible to optimize it further by changing the order of dupIdx and trailIdx finders in findExcessiveSlashes. My concern is cache locality from traversing the string backwards, if it has no impact, then by swapping their order it could improve performance further.

That's it for optimization.

@an-tao This has been thoroughly tested and is working as expected, shall we merge?

@an-tao This has been thoroughly tested and is working as expected, shall we merge?

@Mis1eader-dev Sorry I'm a little busy, I'll check it out and merge it when I have time.


fix(prow-jobs): fix node selector for job pull-notify-when-compatibility-sections-changed

Why:
deno official image have not arm64 container images currlently.
Signed-off-by: wuhuizuo<EMAIL_ADDRESS>

/approve


feat: Implement abstract EvaluationHarness class

This is a part of a series of PRs that revolves around implementing an evaluation harness (c.f https://github.com/deepset-ai/haystack/issues/7526).
EvaluationHarness provides the base interface for class that implement usecase-specific evaluation harnesses. It's meant to be generic over its inputs, overrides and outputs. A key feature of this abstraction is the support for overriding the initial parameters of arbitrary components in the evaluated (and evaluation) pipeline. It leverages the Pipeline abstraction's serialization hooks to transparently instantiate new pipeline internally for each set of overrides.
No unit tests are provided as this class does not implement any new functionality.
Blocked by #2.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 88.889%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
8

Relevant Lines:
9

💛  - Coveralls


arch: arm: fix bug in linker symbol definitions for application memory

The definitions of __app_ram_end and __app_ram_size linker
symbols have been erroneously placed outside the last linker
section of application memory. This commit fixes the problem.
Signed-off-by: Ioannis Glaropoulos<EMAIL_ADDRESS>

@andrewboie @AdithyaBaglody , please, take a quick look; this was, unfortunately miss-configured while cleaning up the script.

Codecov Report

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

@@           Coverage Diff           @@
##           master   #11978   +/-   ##
=======================================
  Coverage   48.17%   48.17%
=======================================
  Files         281      281
  Lines       43362    43362
  Branches    10393    10393
=======================================
  Hits        20889    20889
  Misses      18318    18318
  Partials     4155     4155

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 8ec7c73...f63a650. Read the comment docs.


Add annotations to task update request api

Signed-off-by: Kathryn Baldauf<EMAIL_ADDRESS>(cherry picked from commit 95ba6e9f750e60e304c0fcc4e31627a478c4069b)

We should update the title to make it clear this is a backport. How about [fork/release/1.4] prefixed?
A link to the original containerd/containerd PR would be good too.

[fork/release/1.4]

Ah, yes good point. I keep forgetting that part :p


Allow Editing the Tier Long Description From the UI

User story
As a collective admin, I can edit my collective tiers' long description so that I have a more aesthetically pleasing display for my tier descriptions, avoiding the need to cut off the short description on the card view
Best solution for this problem
Adding a WYSIWYG HTML editor for the long description field of tiers.
MVP
The best solution to the problem is not too complicated to be the MVP
Metrics
How many users now use the long description feature after they can edit it from the UI
Documentation
The API apparently already has support for the long description, and, in fact, the Webpack collective is actually using it, but I assume that the only way they were able to accomplish this was by directly accessing the API.

OK, I just found the button to edit the long description :facepalm:

And that is after I was literally spending time trying to get a development environment setup to fix this, before just deciding to use the API manually. :upside_down_face:
So...this may or may not need to be implemented, but my confusion at how to actually edit the description might be cause for thinking about whether or not there is a way we could help people find that feature.

@zicklag to better understand how we may improve things here, where did expect to find the editor? What could have helped you to find this button?

So I just realized why I didn't seen the button. I was previewing the changes I made to the tiers in a separate tab as an anonymous user, which, of course, doesn't have the edit button on it! That's why I didn't see it, so I would expect that to be more more rare than I initially thought that you would miss that button.
It was still a little confusing to me in the tier edit admin page. I really felt like there should have been a long description WYSIWYG here:

My intuition would have led me to believe that everything that could be edited about the Tier would have been in that screen right there with the rest of the info.

My intuition would have led me to believe that everything that could be edited about the Tier would have been in that screen right there with the rest of the info.

That makes sense. We need to improve the experience around this "standalone page", it feels unfinished and it has generated some issues like #3718 #3528. The redesign (#3438) should hopefully improve things.
I'm closing now as there is no immediate actionable, but I'll the feedback to @opencollective/design so they can take it into consideration.
Thank you for documenting your experience and sharing your experience @zicklag, this is very valuable for us.

Sounds good, thanks for taking the feedback and for helping to provide Open Collective. I have just started getting into it and I am really blown away with how nice the service is. Keep it up! :+1:


not work with filament moduler package

im using this widget in my Najam named Module in my filament admin panel
and this error shows
cannot read properties of undefined (reading 'modules.najma.filament.widgets.map')

Can you provide a code snippet or a repo with a demo?

Im having the same issue.
The widget is loading but the following error is thrown
livewire.js?id=239a5c52:1203 Alpine Expression Error: Cannot read properties of undefined (reading 'leaflet-map-widget')
In the packageRegistered method of my module I initialised a livewire component and it is rendering the view succesfully:
Livewire::component('leaflet-map-widget', LeafletMapWidget::class);
This is the widget class, which I added to the module.
`<?php
namespace Uxit\ModuleTransportOrder\Livewire;
use Webbingbrasil\FilamentMaps\Actions;
use Webbingbrasil\FilamentMaps\Marker;
use Webbingbrasil\FilamentMaps\Widgets\MapWidget;
class LeafletMapWidget extends MapWidget
{
protected int | string | array $columnSpan = 2;
protected bool $hasBorder = false;

public function getMarkers(): array
{
    return [
        Marker::make('pos2')->lat(-15.7942)->lng(-47.8822)->popup('Hello Brasilia!'),
    ];
}

public function getActions(): array
{
    return [
        Actions\ZoomAction::make(),
        Actions\CenterMapAction::make()->zoom(2),
    ];
}

}
`


Numbers on sidebar gone, unable to add lines

Description
What steps will reproduce the problem?

I was using spyder on a laptop that was connected to a dock, then i removed the laptop from the dock and now spyder is unusable, the numbers on the left side are gone and i cannot add lines by pressing enter. I have tried resettig spyder to factory settings and reinstalling, but nothing fixes it. this message appears on anaconda when i launch spyder:
DirectWrite: CreateFontFaceFromHDC() failed (Unspecified error) for QFontDef(Family="DejaVu Sans Mono", pointsize=10, pixelsize=13, styleHint=5, weight=75, stretch=100, hintingPreference=0) LOGFONT("DejaVu Sans Mono", lfWidth=0, lfHeight=-13) dpi=96
QWindowsFontEngine::QWindowsFontEngine: GetTextMetrics failed (The operation completed successfully.)
 Thanks for opening this issue. I'm not sure what's causing this issue, but here are some things you can try (in order):

Try conda update qt pyqt qtconsole spyder spyder-kernels qtpy sip at the Anaconda prompt
Update your OS and GPU drivers
Install PyOpenGL with conda install pyopengl
Try starting Spyder in different opengl modes, with spyder --opengl=software; spyder --opengl=desktop and spyder --opengl=gles
If you have multiple GPU  (e.g. Nvidia discrete and Intel integrated, common in higher end laptops), or have another you can use, try disabling/forcing one or the other
If you haven't already, create a new, clean conda environment, and see if the problem still persists:

conda create -n spyder-env -c defaults spyder
conda activate spyder-env
spyder

If this doesn't work, try creating another new environment with -c conda-forge instead of -c defaults, to see if Qt 5.12 don't have the issue.

Let me know if any of this helps and if not, we will continue looking for a solution.

Thank you for answering @juanis2112 !
I tried all the suggestions you gave, but nothing seems to fix the issue :/
I tried to manually delete all related files that i could find and reinstall anaconda, but the problem still appears.

Hey @Captain-Squiggles , really sorry you're still experiencing this issue; I'm honestly baffled as to what could be causing this. The error messages certainly seem related as the problem appears to be something with font rendering, but they mostly seem to trace back to specific versions of Qt, developer errors or other problems that don't seem directly related to yours.
The fact that it started suddenly after a display/system configuration change and persists even after a reinstall and settings reset indicates to me that there might be either some state not managed by Spyder (font caches, Qt temp files, etc) that is causing it, or some other non-Anaconda packages installed on your machine that may be causing it, but I'm really not sure.
After racking my brain, here are some more things to try:

Change the fonts used by Spyder under Preferences > Appearance > Fonts and see if they make any difference; also try changing the options under the Main interface section
Under the View menu, try Lock panes and toolbars, as well as Fullscreen mode and Spyder Default Layout & Reset to Spyder default under the Window Layouts submenu
Try updating QtAwesome with conda update qtawesome
Use an application like CCleaner to remove your temporary files, old prefetch data and window size/location cache and follow this procedure to remove the font cache: https://help.extensis.com/hc/en-us/articles/360008494153-How-to-rebuild-the-Font-Cache-in-Windows-Universal-Type-Client-6
Run
If this still doesn't work, I can scour over your config and debug info to see if I can find any clues to this mystery. Please paste the output of the following commands run in Anaconda prompt inside code blocks, like so:

```
COMMAND OUTPUT HERE
```

where python
python -c "import sys; print(sys.executable)"
python -m site
conda info
conda list in your normal Spyder env (probably base, the default) and in the new environments you created in the last two steps above

Hey @Captain-Squiggles , really sorry you're still experiencing this issue; I'm honestly baffled as to what could be causing this. The error messages certainly seem related as the problem appears to be something with font rendering, but they mostly seem to trace back to specific versions of Qt, developer errors or other problems that don't seem directly related to yours.
The fact that it started suddenly after a display/system configuration change and persists even after a reinstall and settings reset indicates to me that there might be either some state not managed by Spyder (font caches, Qt temp files, etc) that is causing it, or some other non-Anaconda packages installed on your machine that may be causing it, but I'm really not sure.
After racking my brain, here are some more things to try:

Change the fonts used by Spyder under Preferences > Appearance > Fonts and see if they make any difference; also try changing the options under the Main interface section
Under the View menu, try Lock panes and toolbars, as well as Fullscreen mode and Spyder Default Layout & Reset to Spyder default under the Window Layouts submenu
Try updating QtAwesome with conda update qtawesome
Use an application like CCleaner to remove your temporary files, old prefetch data and window size/location cache and follow this procedure to remove the font cache: https://help.extensis.com/hc/en-us/articles/360008494153-How-to-rebuild-the-Font-Cache-in-Windows-Universal-Type-Client-6
Try downgrading to Qt 5.6 by running conda install qt=5.6 pyqt=5.6 in the environment you created in the second to last step you followed previously
Move or remove the directory listed in the output of python -m site --user-site in Anaconda prompt, if anything is there (you may need to show invisible files or type/paste the path manually)
Run conda clean --all --yes, then follow the procedure specified under Option 2 (then proceed with Option 1 as indicated) on the Anaconda uninstall page (the page appears to be down right now for some reason), and finally manually manually remove any remaining contents of the Anaconda directory (listed under base environment in the output of conda info; make sure to run before uninstalling), and reinstall Anaconda once more

If this still doesn't work, I can scour over your config and debug info to see if I can find any clues to this mystery. Please paste the output of the following commands run in Anaconda prompt inside code blocks, like so:
```
COMMAND OUTPUT HERE
```

where python
python -c "import sys; print(sys.executable)"
python -m site
conda info
conda list in your normal Spyder env (probably base, the default) and in the new environments you created in the last two steps above

Also, please attach the output file produced by dxdiag (type it in the Start menu or any command prompt, and click Save all information). Thanks!

Wow, such a simple solution!
Changing the font did in fact solve the issue! (for some reason?) :smile:
Thank you for putting so much thought and time into my issue, i highly appreciate it.
DxDiag.txt

Great, thanks! So glad it worked :smile:
Seems like something got stuck with the font chosen for the application that made things stop working, and even a Spyder settings reset didn't fix it (since it was lower level in Qt or the OS).
My pleasure to help, and happy Spydering!


Compute names for partition block devices correctly

Add a dev_part function to properly compute the numbered partition on the named block device, and use it throughout.  This seems to fix issue #226 .

Looks good to me. Thanks!


Failed to open a WebSocket connection

I am trying to host a cloudlink python server on repl but I keep getting the same error:
Failed to open a WebSocket connection: empty Connection header.
You cannot access a WebSocket server directly with a browser. You need a WebSocket client.
What am I to do?

I am trying to host a cloudlink python server on repl but I keep getting the same error:
Failed to open a WebSocket connection: empty Connection header.
You cannot access a WebSocket server directly with a browser. You need a WebSocket client.
What am I to do?

Have you actually tried connecting via the CloudLink extension? It's expected to show that error within the browser preview on Replit.


[Question]: why only user question history put in chat llm?

Describe your problem
When I was debugging the agent page, I noticed that only the user's historical questions are input into the large model. Why aren't the large model's responses and the user's inputs combined as historical input to the large model?
use QWenChat chat_streamly
history
[{'role': 'system', 'content': '回答用户的问题'}, {'role': 'user', 'content': '1+2'}, {'role': 'user', 'content': '2+3'}]

Bug fixed.


Make .parse(...) and similar default to .then_ignore(end()) behaviour, with opt-out

Closed by #299.


Wandb

Add weight and biases reporting to new Megatron based code.
deploy_cluster.sh now sets two enviroment variables to enable the wandb code:

DS_EXE: the path to the deepy.py executable. If not set the examples reset to using the deepspeed command
WANDB_TEAM: the wandb org account (e.g. eleutherai)

Example run: https://wandb.ai/eleutherai/neox/groups/dykFhi4GiBmdsJYyQ7pa9r?workspace=user-joshlk


Provision Crunchy Bridge Database Instance from Admin View. Resolves DBAAS-541

With this PR, the following changes were implemented -

2 Test cases were added to existing CrunchyDB Test Suite to cover Provisioning of Database Instance from Admin view for Valid and Invalid Provider Accounts
Required Object Repository(resources/object_repo/create_dbinstance_obj.resource) and Keyword Resource file(resources/keywords/create_instance.resource) were added for the above task
Logging method was changed to Log Info on both stdout and Log file
Expansion of SideBar Menu was optimized

Marks tentative completion of subtask DbaaS-451 under DbaaS-514
Signed-off-by: Harsh Kumar<EMAIL_ADDRESS>

Logs attached for reference - pull27_logs.zip

@harshkumarRH I hope we need to perform some maintenance for the patch release, shall we mark it as WIP and merge with master or keep this open until my maintenance efforts done? LMKYT

@mrrajan This PR is only for the changes needed for Provisioning DB Instance, it should not include any changes for Patch release. I believe we should merge this PR and start with the maintenance changes after that. Any maintenance changes addressing the scenarios of this PR will be covered in subsequent PRs


Segfault in pocketsphinx.packSArg() when calling sphinx.NewDecoder()

When calling sphinx.NewDecoder(), I've been seeing segfaults in pocketsphinx.packSArg() that I'm having a hard time understanding. I was initially seeing these in a larger codebase, but only when I imported the low-level pocketsphinx package in addition to the higher-level sphinx package (even if I didn't call into pocketsphinx). I tried to make a minimal program demonstrating the issue, but now I'm seeing the segfault even without importing pocketsphinx.
Here's the minimal program:
package main

import "github.com/xlab/pocketsphinx-go/sphinx"

func main() {
    dec, err := sphinx.NewDecoder(sphinx.NewConfig())
    if err != nil {
        panic(err)
    }
    defer dec.Destroy()
}

Here's the crash (while using pocketsphinx-go at 8abf820ce):
% go run sphinx.go
unexpected fault address 0x7cccd74dc018
fatal error: fault
[signal SIGSEGV: segmentation violation code=0x1 addr=0x7cccd74dc018 pc=0x470dda]

goroutine 1 [running]:
runtime.throw(0x4bb5ce, 0x5)
        /usr/lib/go-1.14/src/runtime/panic.go:1112 +0x72 fp=0xc000043da0 sp=0xc000043d70 pc=0x437e52
runtime.sigpanic()
        /usr/lib/go-1.14/src/runtime/signal_unix.go:694 +0x3cc fp=0xc000043dd0 sp=0xc000043da0 pc=0x44bbac
github.com/xlab/pocketsphinx-go/pocketsphinx.packSArg(0xc000180000, 0x800, 0x800, 0x7cccd74d7360)
        /home/danerat/go/src/github.com/xlab/pocketsphinx-go/pocketsphinx/cgo_helpers.go:1451 +0x7a fp=0xc000043e50 sp=0xc000043dd0 pc=0x470dda
github.com/xlab/pocketsphinx-go/pocketsphinx.Args(0x0, 0x8, 0xc000043ee8)
        /home/danerat/go/src/github.com/xlab/pocketsphinx-go/pocketsphinx/util.go:14 +0x80 fp=0xc000043e90 sp=0xc000043e50 pc=0x471cc0
github.com/xlab/pocketsphinx-go/sphinx.(*Config).CommandLn(0xc000012200, 0x4a6f60)
        /home/danerat/go/src/github.com/xlab/pocketsphinx-go/sphinx/config.go:37 +0x38 fp=0xc000043ef0 sp=0xc000043e90 pc=0x489758
github.com/xlab/pocketsphinx-go/sphinx.NewDecoder(0xc000012200, 0x0, 0x0, 0xc000012200)
        /home/danerat/go/src/github.com/xlab/pocketsphinx-go/sphinx/sphinx.go:30 +0x3d fp=0xc000043f40 sp=0xc000043ef0 pc=0x48a83d
main.main()
        /home/danerat/temp/20200520/sphinx.go:6 +0x51 fp=0xc000043f88 sp=0xc000043f40 pc=0x48ab71
runtime.main()
        /usr/lib/go-1.14/src/runtime/proc.go:203 +0x212 fp=0xc000043fe0 sp=0xc000043f88 pc=0x43a4a2
runtime.goexit()
        /usr/lib/go-1.14/src/runtime/asm_amd64.s:1373 +0x1 fp=0xc000043fe8 sp=0xc000043fe0 pc=0x464c71
exit status 2

This is on a Debian 10.4 system running the 4.19.98 kernel, using these prebuilt packages:
ii  libpocketsphinx-dev:amd64       0.8+5prealpha+1-2+b2 amd64        Speech recognition tool - front-end library development files
ii  libpocketsphinx3:amd64          0.8+5prealpha+1-2+b2 amd64        Speech recognition tool - front-end library
ii  libsphinxbase-dev:amd64         0.8+5prealpha+1-3+b1 amd64        Speech recognition tool - development files
ii  libsphinxbase3:amd64            0.8+5prealpha+1-3+b1 amd64        Speech recognition tool - shared library
ii  pocketsphinx                    0.8+5prealpha+1-2+b2 amd64        Speech recognition tool
ii  pocketsphinx-en-us              0.8+5prealpha+1-2    all          Speech recognition tool - US English language model

I get the same segfault from sphinx.NewDecoder() if I pass options to NewConfig, so it doesn't seem to be triggered by having an empty command line. I haven't yet been brave enough to try compiling PocketSphinx from source.
And thanks for making this package! I'm not very knowledgeable about CGo, so it's been extremely handy to have this.

After looking at the code, I see the problem. pocketsphinx.Args is defined as follows:
func Args() []Arg {
        __ret := C.ps_args()
        var __v = make([]Arg, 2048)
        packSArg(__v, __ret)
        return __v
}

The generated packSArg function iterates over the supplied []Arg, so it's reading past the end of the array returned by ps_args:
// packSArg reads sliced Go data structure out from plain C format.
func packSArg(v []Arg, ptr0 *C.arg_t) {
    const m = 0x1fffffff
    for i0 := range v {
        ptr1 := (*(*[m / sizeOfArgValue]C.arg_t)(unsafe.Pointer(ptr0)))[i0]
        v[i0] = *NewArgRef(unsafe.Pointer(&ptr1))
    }
}

I've created pull request #20 to fix this.


There is a problem using the code

Hi!When I run the code, I get the following error, I checked that the data is on the cpu, but I'm not sure if it's a problem with HDN.py?
Traceback (most recent call last):
File "C:/Users/75172/Desktop/papers/code/MINDG-main/src/MINDG.py", line 375, in
run('DAVIS')
File "C:/Users/75172/Desktop/papers/code/MINDG-main/src/MINDG.py", line 326, in run
pred = mindg_model( v_d, v_p, idx_1,idx_2)
File "C:\anaconda3\envs\FP-GNN\lib\site-packages\torch\nn\modules\module.py", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "C:/Users/75172/Desktop/papers/code/MINDG-main/src/MINDG.py", line 42, in forward
pred1 = self.view1_model(v_d, v_p) # sequence
File "C:\anaconda3\envs\FP-GNN\lib\site-packages\torch\nn\modules\module.py", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "C:\anaconda3\envs\FP-GNN\lib\site-packages\DeepPurpose\DTI.py", line 50, in forward
v_P = self.model_protein(v_P)
File "C:\anaconda3\envs\FP-GNN\lib\site-packages\torch\nn\modules\module.py", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "C:\anaconda3\envs\FP-GNN\lib\site-packages\DeepPurpose\encoders.py", line 102, in forward
v = self._forward_features(v.double())
File "C:\anaconda3\envs\FP-GNN\lib\site-packages\DeepPurpose\encoders.py", line 97, in _forward_features
x = F.relu(l(x))
File "C:\anaconda3\envs\FP-GNN\lib\site-packages\torch\nn\modules\module.py", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "C:\anaconda3\envs\FP-GNN\lib\site-packages\torch\nn\modules\conv.py", line 313, in forward
return self._conv_forward(input, self.weight, self.bias)
File "C:\anaconda3\envs\FP-GNN\lib\site-packages\torch\nn\modules\conv.py", line 310, in _conv_forward
self.padding, self.dilation, self.groups)
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0! (when checking argument for argument weight in method wrapper___slow_conv2d_forward)

RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0!
Check your codes. The error message means that some tensors are on cpu and the other are on cuda. This is not supported.

Hi!When I run the code, I get the following error, I checked that the data is on the cpu, but I'm not sure if it's a problem with HDN.py?
Traceback (most recent call last): File "C:/Users/75172/Desktop/papers/code/MINDG-main/src/MINDG.py", line 375, in run('DAVIS') File "C:/Users/75172/Desktop/papers/code/MINDG-main/src/MINDG.py", line 326, in run pred = mindg_model( v_d, v_p, idx_1,idx_2) File "C:\anaconda3\envs\FP-GNN\lib\site-packages\torch\nn\modules\module.py", line 1194, in _call_impl return forward_call(*input, **kwargs) File "C:/Users/75172/Desktop/papers/code/MINDG-main/src/MINDG.py", line 42, in forward pred1 = self.view1_model(v_d, v_p) # sequence File "C:\anaconda3\envs\FP-GNN\lib\site-packages\torch\nn\modules\module.py", line 1194, in _call_impl return forward_call(*input, **kwargs) File "C:\anaconda3\envs\FP-GNN\lib\site-packages\DeepPurpose\DTI.py", line 50, in forward v_P = self.model_protein(v_P) File "C:\anaconda3\envs\FP-GNN\lib\site-packages\torch\nn\modules\module.py", line 1194, in _call_impl return forward_call(*input, **kwargs) File "C:\anaconda3\envs\FP-GNN\lib\site-packages\DeepPurpose\encoders.py", line 102, in forward v = self._forward_features(v.double()) File "C:\anaconda3\envs\FP-GNN\lib\site-packages\DeepPurpose\encoders.py", line 97, in _forward_features x = F.relu(l(x)) File "C:\anaconda3\envs\FP-GNN\lib\site-packages\torch\nn\modules\module.py", line 1194, in _call_impl return forward_call(*input, **kwargs) File "C:\anaconda3\envs\FP-GNN\lib\site-packages\torch\nn\modules\conv.py", line 313, in forward return self._conv_forward(input, self.weight, self.bias) File "C:\anaconda3\envs\FP-GNN\lib\site-packages\torch\nn\modules\conv.py", line 310, in _conv_forward self.padding, self.dilation, self.groups) RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0! (when checking argument for argument weight in method wrapper___slow_conv2d_forward)

I encountered the same issue. Have you resolved it? I added model.to(device) to the model but it still throws an error.
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0! (when checking argument for argument weight in method wrapper___slow_conv2d_forward)

I advise that you can try you tensor code only on CPU, detailed codes as follow:
// device=torch.device('cpu')
run('DAVIS', phase="train",batch_size=32,epochs=5,learning_rate=5e-4,lr_step_size=10,seed_id=10,device=torch.device('cpu'))