Feature Request: Integrate OpenAI Assistant API

Description
It would be highly beneficial to integrate the OpenAI Assistant API to enhance user interactions and provide intelligent assistance.
Rationale

Enhanced Interaction: Provides a more dynamic and responsive user experience.
Intelligent Assistance: Offers smart suggestions and help based on user queries.
Future-proofing: Keeps the application updated with the latest AI advancements.

Suggested Approach

Research and evaluate the OpenAI Assistant API capabilities.
Design a plan to integrate it into our current system architecture.
Develop and test the integration thoroughly.

Potential Challenges

API Limitations: Understanding the limitations and constraints of the OpenAI Assistant API.
Integration Complexity: Ensuring the API integrates smoothly with our existing setup.
Cost Management: Assessing and managing the cost of API usage.

Additional Notes

Continuous monitoring and improvement post-integration will be essential.
Collaborate with OpenAI support for any technical assistance.

this issue generate by Agent


Fix #224609

Refer https://github.com/archlinux/svntogit-packages/blob/packages/x264/trunk/PKGBUILD#L55
Description of changes

Things done

Built on platform(s)

[x] x86_64-linux
[x] aarch64-linux
[x] x86_64-darwin
[x] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[x] sandbox = relaxed
[x] sandbox = true

[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

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

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Please check the conventions for commit messages: https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md#commit-conventions
You can amend your commit to change the commit message and then force-push the branch.

Done.

This will need to be retargeted at the staging branch using the approach outlined in https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#rebasing-between-branches-ie-from-master-to-staging

What happened about so much rebuild?

Many packages indirectly depend on x264 through packages like ffmpeg.


Add AXI manager and DMA capability support for Active Caliptra mode

The following should be added to the Integration spec:
In Active Mode, Caliptra can use the SHA Accelerator via DMA block by initiating AXI-to-AXI transfer to the SHA accelerator. Access is protected by an AXI ID filter.
In Active Mode, SHA Accelerator may only be used by Caliptra and is unavailable to the rest of the SoC.


[ComplianceRecordingBot] Use of self-signed wildcard SSL certificate for cloud service -testing

Hi,
I'm working on a compliance policy recording bot sample.
I would like to know, whether it is okay to use self-signed wildcard certification for cloud service deployment? or is it causing to any errors or service not working properly because of the self-signed SSL? have any try or experience related to this?
if anyone can help me with this, that would be really great.
Thanks

You have you use real SSL for cloud deployment, self signed will not work. For local debugging self signed will work

Oki. Thanks.
I used a self-signed cert for cloud deployment. All went well without an error. But compliance bot not getting the call and cloud service logs or calls URLs are not working. Maybe the use of a self-signed cert can be the reason. But need to check more.


Method timeouts are unpredictable

First up, read_timeout (passed to init) isn't a timeout on the 'read' function but a urllib read timeout, and the docstrings are not clear on that, which is how I came to read the code.
Second, it's not enough alone to control the timeout on functions.  I'd like my calls to return with a 'couldn't complete' in a predictable time.  The read timeout's only a part of it, and indeed setting the read timeout to 2s actually results in about 8s of waiting because there's also a bunch of retries.  I think there's also a connect timeout that comes into play.  Obviously, allow_reconnect also affects timeouts.
As it happens you can get to self.http and set up its retry and timeout settings, but I don't imagine that's quite how you meant it to work.
My thought is that the retry and timeout settings (as urllib offers them) could be init options, and we could document how long a call will run before failing in at least some circumstnaces.

Actually, I see I missed the 'timeout' param on 'read' and 'watch' as well, but same thing: if I suspend etcd, a read with a 2s timeout takes 8s, and a watch with a 2s timeout is the same.  (Watches do indeed take 2s when the connection establishes properly.)  If there's nothing obvious to change then documentation would help.


avoid the navigation bar

fixing https://github.com/android/camera-samples/issues/283
inspired by https://stackoverflow.com/a/50775459/192373

Camera2SlowMotion and Camera2Video could potentially benefit from this fix as well

Luckily, these are not bit-accurate copies of Camera2Basic, as utils/YuvToRgbConverter.kt, so they can be handled by a separate PR.
Actually, I have once asked elsewhere why you chose to keep these copies of utils separate for each example, given that they are all managed in a common repository?

Actually, I have once asked elsewhere why you chose to keep these copies of utils separate for each example, given that they are all managed in a common repository?

It's due to technical limitations around how some tools automatically make use of these samples, including Android Studio.


Log scale display or log-transformed data needed for some variables display in violin plots

The default non-logged view is not helpful for Immune Feature Trends violin plots for variables such as mutation rates and neoantigen counts

@vthorsson Please try the submodules branch to take a look.


Version - 2.1.2 - In coreapi module ImportError: cannot import name exceptions

Having followed this https://django-rest-swagger.readthedocs.io/en/latest/ .
When I installed swagger all these modules got installed
django-rest-swagger==2.1.2
coreapi-2.3.3  djangorestframework-3.7.3  jinja2-2.10  openapi-codec-1.3.2  requests-2.18.4  simplejson-3.13.2

As I tried to google it, I figured it may be some incompatibility with some versions of the modules, based on similar such exceptions.
in settings.py I have
INSTALLED_APPS = [
    ...
    'rest_framework_swagger',
    ...
]

urls.py
from rest_framework_swagger.views import get_swagger_view
schema_view = get_swagger_view(title='Api Doc')

urlpatterns = [
    url(r'^api-doc/', schema_view),
    ...
    ]

Exception
File "/home/User/AFL-504/mindwave/urls.py", line 18, in <module>
    from rest_framework_swagger.views import get_swagger_view
  File "/home/User/AFL_ENV/local/lib/python2.7/site-packages/rest_framework_swagger/views.py", line 8, in <module>
    from . import renderers
  File "/home/User/AFL_ENV/local/lib/python2.7/site-packages/rest_framework_swagger/renderers.py", line 1, in <module>
    import coreapi
  File "/home/User/AFL_ENV/local/lib/python2.7/site-packages/coreapi/__init__.py", line 2, in <module>
    from coreapi import auth, codecs, exceptions, transports, utils
  File "/home/User/AFL_ENV/local/lib/python2.7/site-packages/coreapi/auth.py", line 1, in <module>
    from coreapi.utils import domain_matches
  File "/home/User/AFL_ENV/local/lib/python2.7/site-packages/coreapi/utils.py", line 1, in <module>
    from coreapi import exceptions
ImportError: cannot import name exceptions

Any help figuring it out is appreciated.

I'm having the same problem, have you figured it out?


Fix ballerina stacktrace. Fix runtime errors tests

This PR resolves #2145. Stack traces are now consistent for the scenarios described in #2145.
Stacktrace when running the program by giving the package:
error in ballerina program: failed to get string from json. Jsonpath $.address does not match any element: No results for path: $['address']
	 at samples.main:testJson(mainFunction.bal:12)
	 at samples.main:main(mainFunction.bal:7)

Stacktrace when running the program by giving the file name:
error in ballerina program: failed to get string from json. Jsonpath $.address does not match any element: No results for path: $['address']
	 at testJson(mainFunction.bal:12)
	 at main(mainFunction.bal:7)

Fixed with https://github.com/ballerinalang/ballerina/pull/2205


keyboardShortcuts on modal not reacting to "enter" key pressed

Trying to submit form when i press enter inside modal, even though keyboardShortcuts is set to true for modal, only escape key works (exits modal). However, when I'm in one of the textfields and submit "enter" key, no action is being taken.
Demo:
http://jsfiddle.net/pgfm6yt0/10/
Test: Enter 'enter' key
Expected result: Modal's onApprove function is triggered
Actual result: No action is taken
Final thoughts: If this is not supported, then how can one go around supporting this on their side? i.e. how can I make the modal react to enter key press?
Thanks

This isn't anything todo with the modal, it seems to be because you don't have an submit input in your form. http://jsfiddle.net/vpfyn06g/
Also take a look here https://stackoverflow.com/a/26433820/7325243

That doesn't answer my question; I need the onApprove method to be triggered when the key that is pressed down is enter inside that modal.
Can this be done or not, and if not then what is keyboardShortcuts for?

You will need to write some custom JavaScript since SUI doesn't have support for that.

You can't access the settings of a component therefore you can't call the onApprove method set in the settings.
My advice would be to move the function out of the options and just call it inside your enter click event.

Sounds good, thanks for the help. Closing this issue.


update flake inputs

Relevant Issues

None
Description

Updates some nix sources to keep the package up to date
Reasoning

This keeps the package secure and up to date
Did you:

[x] Join the Piston CLI Discord Community?
[N/A] If dependencies have been added or updated, run pipenv lock?
[N/A] Lint your code (pipenv run lint)?
[x] Set the PR to allow edits from contributors?

I'm not sure how to test the workflow.

I'm not sure how to test the workflow.

You can test the workflow on your fork.

I'm not sure how to test the workflow.

You can test the workflow on your fork, it should add those commits on the cron jobs, since there are no other restrictions that I can see.
Another comment is that, I think it should open a pull request rather than committing directly to main from a branch update-flake-inputs.

I'm not sure how to test the workflow.

You can test the workflow on your fork, it should add those commits on the cron jobs, since there are no other restrictions that I can see.
Figured it out. :)
Another comment is that, I think it should open a pull request rather than committing directly to main from a branch update-flake-inputs.

I think that committing directly to is fine. Because this is an unstable/development package. If users want to use the stable version of piston-cli, they should use the one from nixpkgs. Also, multiple other projects do this: https://github.com/nix-community/neovim-nightly-overlay and https://github.com/nix-community/emacs-overlay


load_entry_point errors

:~$ firetv-server
Traceback (most recent call last):
File "/usr/local/bin/firetv-server", line 9, in
load_entry_point('firetv==1.0.5', 'console_scripts', 'firetv-server')()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 351, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2363, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2088, in load
entry = import(self.module_name, globals(),globals(), ['name'])
File "/usr/local/lib/python2.7/dist-packages/firetv/main.py", line 23, in
import yaml
ImportError: No module named yaml
Tried firetv-server -d my device address:5555 still same error message.
pip --version = pip 1.5.4 from /usr/lib/python2.7/dist-packages (python 2.7)
Kept running install until all dependencies were met. Device is on and active. ADB works without issue. However cannot get server to run.
Thank you for any assistance.

ImportError: No module named yaml

Have you tried to install yaml module? pyyaml for example?

Yes. The main errors above that remain. Now it says...
:~$ firetv-server
Traceback (most recent call last):
File "/usr/local/bin/firetv-server", line 9, in
load_entry_point('firetv==1.0.5', 'console_scripts', 'firetv-server')()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 351, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2363, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2088, in load
entry = import(self.module_name, globals(),globals(), ['name'])
File "/usr/local/lib/python2.7/dist-packages/firetv/main.py", line 24, in
from flask import Flask, jsonify, request, abort
ImportError: No module named flask
Is not the ImportError unrelated to the errors preceding it?
Thank you

Yes, ImportError tells you which package or module is missing. Did you install the python-firetv with pip? It lists here flask & pyaml as dependencies: https://github.com/happyleavesaoc/python-firetv/blob/master/setup.py

pip install firetv or pip install firetv[firetv-server], depending on what you want to achieve, should install all the necessary dependencies. If the error persists, please reopen this issue or create a new one.


Allow Promise in onChange, onClick

Currently we only allow functions, but nothing that can return a promise.

Promise type was not added for eg. Radio in onChange method.

Should be promise also in Card and Alert?
https://github.com/kiwicom/orbit-components/blob/46575d20a46c9bdf538337cdc1f8b17eac27365e/src/Card/index.js.flow#L6
https://github.com/kiwicom/orbit-components/blob/46575d20a46c9bdf538337cdc1f8b17eac27365e/src/Alert/index.js.flow#L12
cc @tomashapl


[Bug] can not execute myssql-to-clickhouse job

Search before asking

[X] I had searched in the issues and found no similar issues.

What happened
Run Error！when use seatunnel run mysql-to-clickhouse command;
but mysql-to-mysql is success!
SeaTunnel Version
2.3.3
SeaTunnel Config
# Set the basic configuration of the task to be performed
env {
  execution.parallelism = 1
  job.mode = "BATCH"
  checkpoint.interval  = 1000
}

source {
  Jdbc {
        url = "jdbc:mysql://<IP_ADDRESS>:3306/test?serverTimezone=GMT%2b8"
        driver = "com.mysql.cj.jdbc.Driver"
        connection_check_timeout_sec = 100
        user = "root"
        password = "123456"
        query = "SELECT `id`, `username`, `info`, `age` FROM `users`"
        parallelism=1
        connection_check_timeout_sec=30
        result_table_name=Tableuser
    }
}

sink {
  Clickhouse {
    host = "<IP_ADDRESS>:8123"
    database = "default"
    table = "test"
    username = "default"
    password = ""
  }
}

Running Command
sh bin/seatunnel.sh --config config/xxx.conf -m local

Error Exception
java.util.concurrent.CompletionException: com.hazelcast.nio.serialization.HazelcastSerializationException: java.lang.ClassCastException: cannot assign instance of com.clickhouse.client.ClickHouseNode to field org.apache.seatunnel.connectors.seatunnel.clickhouse.shard.Shard.node of type com.clickhouse.client.ClickHouseNode in instance of org.apache.seatunnel.connectors.seatunnel.clickhouse.shard.Shard

Zeta or Flink or Spark Version
seatunnel 2.3.3
Java or Scala Version
java 1.8
Screenshots
No response
Are you willing to submit PR?

[X] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

用flink cdc吧。这个bug太多了。

@wjhphp hi,Can you give us more information,will you contribute to this?

?

i have the same question too


Implement Watson Alternative Dialogue Component

This component must be a Dialogue Component, and your operation must reproduce the operation of the Watson Conversation service.

This issue #12 is a part of this.

@arthurTemporim I begin the development of this component on https://github.com/ralphg6/david-watson-dialogue


added lrn, cleaned up gen_exp

Can now calculate lrn (which needs to be able to be able to calculate b^x for any x). This means we can now generate a design for GoogleNet (I'm pretty sure).
Also cleaned up code for gen_exp.py (based on comments to #1226). One note is that @cgyurgyik  suggested to try to infer when the base is e.
One suggestion I didn't implement yet is inferring when the base is e, rather than passing it as a flag. I think we could probably do this, but rn I'm leaning towards not doing it since I don't think it is worth the work. It seems like this only matters when we're writing test cases, and passing the base_is_e flag doesn't seem that much worse than inferring when our base will be e or not.

I think we could probably do this, but rn I'm leaning towards not doing it since I don't think it is worth the work.

Ah, for some reason I thought we passed in the base/exponent into our test files. I see now that isn't the case. In any case, the main confusion to me lies with the fact that the file is called gen_exp.py and we have a base_is_e flag. Maybe a more trivial fix here is renaming the file to include your new generalizations.

We may also want to update the documentation https://docs.calyxir.org/tools/exp-generator.html


To improve readability, add commas to numbers

summary
To improve readability, add commas to numbers
expected result

California has 7,881 ICU Beds. Normally 3,231 are unoccupied. We estimate there are currently 2,037 COVID cases in the ICU, or 63% of typically free beds. This suggests less ability to absorb a wave of new COVID hospitalizations.

actual result

California has 7881 ICU Beds. Normally 3231 are unoccupied. We estimate there are currently 2037 COVID cases in the ICU, or 63% of typically free beds. This suggests less ability to absorb a wave of new COVID hospitalizations.

environment
(device, browser, mobile / web)
link
https://staging.covidactnow.org/us/ca
screenshot
(you can copy/paste images directly in)

Issue addressed https://github.com/covid-projections/covid-projections/issues/680


Question: reusing complex swagger annotation

First of all, thanks for the great tool (spring-fox)!
Is there a way of reusing a complex springfox annotation on multiple methods without copy and pasting?
My question is described in more detail here: http://stackoverflow.com/questions/36475452/reuse-complex-spring-fox-swagger-annotation
I am using springfox-swagger2, version 2.2.2 .
Thanks in advance.

@blinse in 2.4.0 you can add additional operation parameters via the docket.

great that works.


feat: Subscriptions

Removing old profile emails handling and replacing it with a link to...
...a new subscriptions UI in Vue (on a new route)

replaces #8074

fyi @jennifer-richards it's pretty much ready to use a subscriptions API now

fyi @jennifer-richards it's pretty much ready to use a subscriptions API now

Great - working on that and hope to have something usable soon

@rjsparks @jennifer-richards  I just wanted to check whether I've changed the email UX in the way you'd expect. The existing profile's page emails table was replaced with a link to manage subscriptions. Thoughts?
before

after

Hm. I'd assumed there'd be a distinction between addresses linked to the person and subscriptions using those addresses. The addresses are used in other ways, and include addresses that may be entirely disabled. Some of the "other ways" are subscriptions of a sort if you squint, but not to mailing lists. (Thinking of things like alerts, draft update notifications, etc)
Not to say it can't work the way you've suggested, just that I'd need to see more about what's behind the Manage Subscriptions button and how that'd accommodate the other address features.

That scope of removal was just a guess, and I have no particular opinion about the scope, so I'm happy to change it to whatever is decided.
It sounds like they still need to be able to add emails on this route. Do they also still need to change primary and active email?
I would be interested in seeing/developing a wireframe UX mockup before more development if that's possible? Any level of quality accepted.

I think a realtime conversation in addition to sketching might make sense.
One bit of confusion that might be present - the addresses used for Roles are not subscriptions.
We have two concepts on the existing form and we're adding a third eventually:

The email addresses known for this Person and their usability state
The email addresses to use when something in the datatracker is going on that involves one of a Person's Roles (this is not just sending mail, but is also about what address to present in the UI when speaking about that Person in that Role).
(yet to be added) The set of mailman3 subscriptions managed for this Person


feat: reshape finally

after reading readme again, i think I've understood reshape incorrectly. Will change it after dinner

Codecov Report

Merging #148 (c64a8e1) into main (f5375af) will decrease coverage by 0.05%.
The diff coverage is 92.00%.

:exclamation: Current head c64a8e1 differs from pull request most recent head c207e10. Consider uploading reports for the commit c207e10 to get more accurate results

@@            Coverage Diff             @@
##             main     #148      +/-   ##
==========================================
- Coverage   99.26%   99.20%   -0.06%
==========================================
  Files          53       53
  Lines        3137     3155      +18
  Branches      777      781       +4
==========================================
+ Hits         3114     3130      +16
- Misses         13       15       +2
  Partials       10       10

Impacted Files
Coverage Δ

src/validators/PassthroughValidator.ts
90.47% <88.23%> (-9.53%)
:arrow_down:

src/lib/Shapes.ts
100.00% <100.00%> (ø)

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 f5375af...c207e10. Read the comment docs.


BUG: If I click the explore all amps button at the top, the pill on the right still says "All"

https://tonehunt.org/?filter=amp
https://tonehunt.org/?page=1&filter=amp&sortBy=newest&sortDirection=desc
Weird to have two separets URLS too

Fixed on next update.
Closing.

Fixed on next update. Closing.

when will that be roughly

Currently testing. Should be up in a couple of hours.

Currently testing. Should be up in a couple of hours.

could uou tag all the github ideas?

Currently testing. Should be up in a couple of hours.

also awrdome so haopy to hear thank you so much


⚠ ClamAV has degraded performance

In 492c10e, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 65 ms

Resolved: ClamAV performance has improved in abf54dc.


Restrictions on ingress CIDR for unknown ports

Hi,
I'm trying to create a scenario that passes a security group that has a /0 ingress for known ports (eg 80/443) but fails if any other port has a range of less than /8.
is that possible to do?

Hi Steve,
This is not specific to a network right ? It is just the netmask, as I understand ?
So you are not looking for <IP_ADDRESS>/8 (or any other /8 network) but specifically any network with /8 cidr ?

Hi,
A specific network would be nice but for now just looking at netmask would be great.
Thanks :)

Ok then, that requires a new step :) I will change this issue as a Feature Request and implement it as soon as possible. I think this is a good idea.
Currently you can achieve this for a specific network, but just pure netmask is not supported till it is implemented :)
Few more days please :)

That's great, thanks for replying so quickly.
I was looking at using regex - something like
Then it must not have tcp protocol and port 0-65535 for "^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$" regex
But I couldn't get it working.  Also, I don't know how to get both parts (for the known and unknown ports) to work as one feature.
thanks :)

Unfortunately regex are not supported on that step, but that is another good idea ! :)

Hi,  I wonder if you've had a chance to look at this at all just yet?
Thanks
Steve

Hi @SteveL1 ,
It has been quite hectic days for the last few weeks. Apologies for the delay. :( I am planning to have a look to all issues around the end of this week.

Hi,
I think those of us that are fortunate to still be working seem to be busier than before lockdown!!!
Appreciate your time looking at this :)
Thanks
Steve

Added this functionality within 894a36c4.  Will release today.


fix: handle resource aggregate with function default in sort

default of resource aggregate (unlike query aggregate's default_value) can be a function and need to be resolved before usage.

🚀 Thank you for your contribution! 🚀


requirement: Improve error message for unpinned URL requirements

Closes #354

(env) tetsuo@Alexs-MacBook-Pro pip-audit % pip-audit -r requirements.txt --no-deps
WARNING:pip_audit._cli:--no-deps is supported, but users are encouraged to fully hash their pinned dependencies
WARNING:pip_audit._cli:Consider using a tool like `pip-compile`: https://pip-tools.readthedocs.io/en/latest/#using-hashes
Traceback (most recent call last):
  File "/Users/tetsuo/Code/pip-audit/env/bin/pip-audit", line 8, in <module>
    sys.exit(audit())
  File "/Users/tetsuo/Code/pip-audit/pip_audit/_cli.py", line 432, in audit
    for (spec, vulns) in auditor.audit(source):
  File "/Users/tetsuo/Code/pip-audit/pip_audit/_audit.py", line 66, in audit
    for dep, vulns in self._service.query_all(specs):
  File "/Users/tetsuo/Code/pip-audit/pip_audit/_service/interface.py", line 150, in query_all
    for spec in specs:
  File "/Users/tetsuo/Code/pip-audit/pip_audit/_dependency_source/requirement.py", line 120, in collect
    for _, dep in self._collect_cached_deps(filename, reqs):
  File "/Users/tetsuo/Code/pip-audit/pip_audit/_dependency_source/requirement.py", line 318, in _collect_cached_deps
    for req, dep in self._collect_preresolved_deps(
  File "/Users/tetsuo/Code/pip-audit/pip_audit/_dependency_source/requirement.py", line 265, in _collect_preresolved_deps
    raise RequirementSourceError(
pip_audit._dependency_source.requirement.RequirementSourceError: requirement de-core-news-sm is not pinned, URL requirements must be pinned with #egg=your_package_name==your_package_version: de-core-news-sm from https://github.com/explosion/spacy-models/releases/download/de_core_news_sm-3.2.0/de_core_news_sm-3.2.0.tar.gz#egg=de-core-news-sm (from RequirementLine(line_number=1, line='https://github.com/explosion/spacy-models/releases/download/de_core_news_sm-3.2.0/de_core_news_sm-3.2.0.tar.gz#egg=de-core-news-sm', filename=PosixPath('requirements.txt')))


Fix for problem with host without a owning cluster.

Added test.
Modified host factory to include storage.
https://bugzilla.redhat.com/show_bug.cgi?id=1306538

@gmcculloug
Please Review

@billfitzgerald0120 Please put the Bugzilla URL in the commit message so that it is properly handled by the bot.

@billfitzgerald0120 You'll probably have to update the bug manually since the Bugzilla URL wasn't in your commit message.
cc @gmcculloug

@bdunne
I updated the BZ and included the URL : https://github.com/ManageIQ/manageiq/pull/6894
Thanks

@bdunne Meant to update the commit message itself.  In the future, please do this.


Update virtual-network/virtual-network-tcpip-performance-tuning document

Removed redundancies and information that is no longer true.

#sign-off

Due to the upcoming Ignite conference, all merging and publishing is on hold until the morning of 11/15.
This PR is ready for merge on 11/15.
#label: "event-triaged-to-10AM"
#label: "missed-content-complete"
#label: "aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team


Clarify implemented Kyber version

I assume this is implementing version 3 (as opposed to e.g. the NIST version), as that's stated by https://github.com/antontutoveanu/crystals-kyber-javascript . But I didn't find specific info about this.
Is the assumption correct? If so, do you have plans to implement the NIST draft version (https://csrc.nist.gov/pubs/fips/203/ipd)?

Your assumption is correct, and I also recognized the need to follow the NIST draft (ML-KEM).
However, I still do not understand the difference between v3 and ML-KEM...

The differences are listed in page two of the draft 🙂

FYI I've implemented the ML-KEM changes here, in case you want to apply them to this repo too (I could also open a PR; we still need to maintain a separate fork to support browsers without native BigInts).

@larabr Thanks for your information.
Although I'd like you to send a PR to merge your updates including the support for old browsers here, it is probably a tedious work for you, so I will try to merge them to some extent on my end.


tellurium pip package not working on python 3.6 with pip 9.0.2: KeyError: 'pip._vendor.urllib3.contrib'

Hi all,
I just tried to run tellurium in a clean virtualenv and get the following error when trying to do:
import tellurium

or
import tellurium as te

Python 3.6.3 (default, Oct  6 2017, 08:44:35)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.2.1 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import tellurium
---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
<ipython-input-1-c43a5795b314> in <module>()
----> 1 import tellurium

~/envs/test/lib/python3.6/site-packages/tellurium/__init__.py in <module>()
    129
    130 # Package utilities
--> 131 from tellurium.utils.package import (
    132     searchPackage,
    133     installPackage,

~/envs/test/lib/python3.6/site-packages/tellurium/utils/package.py in <module>()
      5
      6 from __future__ import print_function, absolute_import
----> 7 import pip
      8
      9

~/envs/test/lib/python3.6/site-packages/pip/__init__.py in <module>()
     43 from pip.utils import get_installed_distributions, get_prog
     44 from pip.utils import deprecation, dist_is_editable
---> 45 from pip.vcs import git, mercurial, subversion, bazaar  # noqa
     46 from pip.baseparser import ConfigOptionParser, UpdatingDefaultsHelpFormatter
     47 from pip.commands import get_summaries, get_similar_commands

~/envs/test/lib/python3.6/site-packages/pip/vcs/mercurial.py in <module>()
      7 from pip.utils import display_path, rmtree
      8 from pip.vcs import vcs, VersionControl
----> 9 from pip.download import path_to_url
     10 from pip._vendor.six.moves import configparser
     11

~/envs/test/lib/python3.6/site-packages/pip/download.py in <module>()
     38 from pip.locations import write_delete_marker_file
     39 from pip.vcs import vcs
---> 40 from pip._vendor import requests, six
     41 from pip._vendor.requests.adapters import BaseAdapter, HTTPAdapter
     42 from pip._vendor.requests.auth import AuthBase, HTTPBasicAuth

~/envs/test/lib/python3.6/site-packages/pip/_vendor/requests/__init__.py in <module>()
     96
     97 from . import utils
---> 98 from . import packages
     99 from .models import Request, Response, PreparedRequest
    100 from .api import request, get, head, post, patch, put, delete, options

~/envs/test/lib/python3.6/site-packages/pip/_vendor/requests/packages.py in <module>()
     10     for mod in list(sys.modules):
     11         if mod == package or mod.startswith(package + '.'):
---> 12             sys.modules['pip._vendor.requests.packages.' + mod] = sys.modules["pip._vendor." + mod]
     13
     14 # Kinda cool, though, right?

KeyError: 'pip._vendor.urllib3.contrib'

This seems to be a bug/issue in the lates pip. Just posting this here so people will find a solution.
Workaround is to down-grade pip to 9.0.1 via
pip install pip==9.0.1

Best Matthias

Found the pip issue. This seems to be a major issue affecting many projects, so hopefully fixed soon
https://github.com/pypa/pip/issues/5081
But also affecting us right now.

That's a nasty one. Let's keep this issue until the issue is resolved.

Yes, but seems this will not be fixed. This is basically the code in tellurium to install packages. But not officially supported :/ and probably only will get worse.

As I understand it, the issue is with code that uses import pip to access internal functionality of pip. We've never supported such usage officially, and we have explicitly documented that lack of support for some time now (albeit only in the "latest" version of the docs at https://pip.pypa.io/en/latest/user_guide/#using-pip-from-your-program, because we haven't had a new stable release since that doc section was added). We also announced a reorganisation of the internals to make it clear that use of internal APIs is unsupported, last October (see https://mail.python.org/pipermail/distutils-sig/2017-October/031642.html). That change, which is in pip 10, will break any such usage regardless of what pip a possible pip 9.0.3 release would do. So it's hard to see this as a sudden, unexpected breakage.

I've uninstalled pip 9.0.2
H
On Mon, Mar 19, 2018 at 2:43 PM, Matthias König<EMAIL_ADDRESS>wrote:

Yes, but seems this will not be fixed. This is basically the code in
tellurium to install packages. But not officially supported :/ and probably
only will get worse.
As I understand it, the issue is with code that uses import pip to access
internal functionality of pip. We've never supported such usage officially,
and we have explicitly documented that lack of support for some time now
(albeit only in the "latest" version of the docs at
https://pip.pypa.io/en/latest/user_guide/#using-pip-from-your-program,
because we haven't had a new stable release since that doc section was
added). We also announced a reorganisation of the internals to make it
clear that use of internal APIs is unsupported, last October (see
https://mail.python.org/pipermail/distutils-sig/2017-October/031642.html).
That change, which is in pip 10, will break any such usage regardless of
what pip a possible pip 9.0.3 release would do. So it's hard to see this as
a sudden, unexpected breakage.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/sys-bio/tellurium/issues/354#issuecomment-374390439,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABAZDkveEr7H_ojBpQ4wM69vpBBiddoJks5tgCZlgaJpZM4Sw6O_
.

Basically we have to rewrite the few lines of code used for pip imports via the following

Having said all of the above, it is worth covering the options available if you decide that you do want to run pip from within your program. The most reliable approach, and the one that is fully supported, is to run pip in a subprocess. This is easily done using the standard subprocess module:

subprocess.check_call([sys.executable, '-m', 'pip', 'install', 'my_package'])

If you want to process the output further, use one of the other APIs in the module:
reqs = subprocess.check_output([sys.executable, '-m', 'pip', 'freeze'])

Thanks Matthias, I'll fix that line in Tellurium.

@matthiaskoenig : This seems as good a place to ask as any: you aren't using these tellurium wrappers for pip any more, are you?  I assume that nowadays everyone just uses pip directly.  I noticed them because they use distutils which is being removed in 3.12, and figured I'd just remove the functionality entirely.


Execute as a script with mutecompiler

Description

Script execution made simple with SML/NJ - This change is to give the programmers and developers the capability of running a SML program as a script. Also the capability to mute and unmute compiler messages. Programmers and developers can write a SML program and run the program like a script over the command prompt.
Related Issue

Motivation and Context

How Has This Been Tested?

Execute-as-a-script-with-mutecompiler.txt


Database existence checks

There are a few places in the backend where we check whether some row/object exists in the database, e.g.
some_user = session.query(User).filter(some stuff).one_or_none()
if not some_user:
    # do something

Also in the communities stuff where we check if a user is an admin/member/etc. These queries basically do a SELECT * FROM ... WHERE ... in the database, and ship back the whole resulting row to the backend.
This is wasteful and the way we do this all is not standardized and uniform across the codebase, so we should clean it up. We should instead have a standard way to do it, maybe with a helper function.
Requires making sure the SQL generated by such a helper function is sensible.
This was discussed in https://github.com/Couchers-org/couchers/pull/715#discussion_r615091459.

I picked a one_or_none() is None at random and dumped the resulting query string. Original:
SELECT users.id AS users_id, users.username AS users_username, users.email AS users_email, users.hashed_password AS users_hashed_password, users.phone AS users_phone, users.phone_status AS users_phone_status, ST_AsEWKB(users.geom) AS users_geom, users.geom_radius AS users_geom_radius, users.city AS users_city, users.hometown AS users_hometown, users.joined AS users_joined, users.last_active AS users_last_active, users.last_notified_message_id AS users_last_notified_message_id, users.name AS users_name, users.gender AS users_gender, users.pronouns AS users_pronouns, users.birthdate AS users_birthdate, users.full_name AS users_full_name, users.avatar_key AS users_avatar_key, users.hosting_status AS users_hosting_status, users.meetup_status AS users_meetup_status, users.verification AS users_verification, users.community_standing AS users_community_standing, users.occupation AS users_occupation, users.education AS users_education, users.about_me AS users_about_me, users.my_travels AS users_my_travels, users.things_i_like AS users_things_i_like, users.about_place AS users_about_place, users.languages AS users_languages, users.countries_visited AS users_countries_visited, users.countries_lived AS users_countries_lived, users.additional_information AS users_additional_information, users.is_banned AS users_is_banned, users.max_guests AS users_max_guests, users.last_minute AS users_last_minute, users.has_pets AS users_has_pets, users.accepts_pets AS users_accepts_pets, users.pet_details AS users_pet_details, users.has_kids AS users_has_kids, users.accepts_kids AS users_accepts_kids, users.kid_details AS users_kid_details, users.has_housemates AS users_has_housemates, users.housemate_details AS users_housemate_details, users.wheelchair_accessible AS users_wheelchair_accessible, users.smoking_allowed AS users_smoking_allowed, users.smokes_at_home AS users_smokes_at_home, users.drinking_allowed AS users_drinking_allowed, users.drinks_at_home AS users_drinks_at_home, users.other_host_info AS users_other_host_info, users.sleeping_arrangement AS users_sleeping_arrangement, users.sleeping_details AS users_sleeping_details, users.area AS users_area, users.house_rules AS users_house_rules, users.parking AS users_parking, users.parking_details AS users_parking_details, users.camping_ok AS users_camping_ok, users.accepted_tos AS users_accepted_tos, users.filled_contributor_form AS users_filled_contributor_form, users.new_email AS users_new_email, users.new_email_token AS users_new_email_token, users.new_email_token_created AS users_new_email_token_created, users.new_email_token_expiry AS users_new_email_token_expiry
FROM users, cluster_subscriptions
WHERE %(param_1)s = cluster_subscriptions.cluster_id AND users.id = cluster_subscriptions.user_id AND cluster_subscriptions.role = %(role_1)s AND users.id = %(id_1)s

With .count() instead:
 SELECT count(*) AS count_1
FROM (SELECT users.id AS users_id, users.username AS users_username, users.email AS users_email, users.hashed_password AS users_hashed_password, users.phone AS users_phone, users.phone_status AS users_phone_status, users.geom AS users_geom, users.geom_radius AS users_geom_radius, users.city AS users_city, users.hometown AS users_hometown, users.joined AS users_joined, users.last_active AS users_last_active, users.last_notified_message_id AS users_last_notified_message_id, users.name AS users_name, users.gender AS users_gender, users.pronouns AS users_pronouns, users.birthdate AS users_birthdate, users.full_name AS users_full_name, users.avatar_key AS users_avatar_key, users.hosting_status AS users_hosting_status, users.meetup_status AS users_meetup_status, users.verification AS users_verification, users.community_standing AS users_community_standing, users.occupation AS users_occupation, users.education AS users_education, users.about_me AS users_about_me, users.my_travels AS users_my_travels, users.things_i_like AS users_things_i_like, users.about_place AS users_about_place, users.languages AS users_languages, users.countries_visited AS users_countries_visited, users.countries_lived AS users_countries_lived, users.additional_information AS users_additional_information, users.is_banned AS users_is_banned, users.max_guests AS users_max_guests, users.last_minute AS users_last_minute, users.has_pets AS users_has_pets, users.accepts_pets AS users_accepts_pets, users.pet_details AS users_pet_details, users.has_kids AS users_has_kids, users.accepts_kids AS users_accepts_kids, users.kid_details AS users_kid_details, users.has_housemates AS users_has_housemates, users.housemate_details AS users_housemate_details, users.wheelchair_accessible AS users_wheelchair_accessible, users.smoking_allowed AS users_smoking_allowed, users.smokes_at_home AS users_smokes_at_home, users.drinking_allowed AS users_drinking_allowed, users.drinks_at_home AS users_drinks_at_home, users.other_host_info AS users_other_host_info, users.sleeping_arrangement AS users_sleeping_arrangement, users.sleeping_details AS users_sleeping_details, users.area AS users_area, users.house_rules AS users_house_rules, users.parking AS users_parking, users.parking_details AS users_parking_details, users.camping_ok AS users_camping_ok, users.accepted_tos AS users_accepted_tos, users.filled_contributor_form AS users_filled_contributor_form, users.new_email AS users_new_email, users.new_email_token AS users_new_email_token, users.new_email_token_created AS users_new_email_token_created, users.new_email_token_expiry AS users_new_email_token_expiry
FROM users, cluster_subscriptions
WHERE %(param_1)s = cluster_subscriptions.cluster_id AND users.id = cluster_subscriptions.user_id AND cluster_subscriptions.role = %(role_1)s AND users.id = %(id_1)s) AS anon_1

And with .scalar():
SELECT users.id AS users_id, users.username AS users_username, users.email AS users_email, users.hashed_password AS users_hashed_password, users.phone AS users_phone, users.phone_status AS users_phone_status, ST_AsEWKB(users.geom) AS users_geom, users.geom_radius AS users_geom_radius, users.city AS users_city, users.hometown AS users_hometown, users.joined AS users_joined, users.last_active AS users_last_active, users.last_notified_message_id AS users_last_notified_message_id, users.name AS users_name, users.gender AS users_gender, users.pronouns AS users_pronouns, users.birthdate AS users_birthdate, users.full_name AS users_full_name, users.avatar_key AS users_avatar_key, users.hosting_status AS users_hosting_status, users.meetup_status AS users_meetup_status, users.verification AS users_verification, users.community_standing AS users_community_standing, users.occupation AS users_occupation, users.education AS users_education, users.about_me AS users_about_me, users.my_travels AS users_my_travels, users.things_i_like AS users_things_i_like, users.about_place AS users_about_place, users.languages AS users_languages, users.countries_visited AS users_countries_visited, users.countries_lived AS users_countries_lived, users.additional_information AS users_additional_information, users.is_banned AS users_is_banned, users.max_guests AS users_max_guests, users.last_minute AS users_last_minute, users.has_pets AS users_has_pets, users.accepts_pets AS users_accepts_pets, users.pet_details AS users_pet_details, users.has_kids AS users_has_kids, users.accepts_kids AS users_accepts_kids, users.kid_details AS users_kid_details, users.has_housemates AS users_has_housemates, users.housemate_details AS users_housemate_details, users.wheelchair_accessible AS users_wheelchair_accessible, users.smoking_allowed AS users_smoking_allowed, users.smokes_at_home AS users_smokes_at_home, users.drinking_allowed AS users_drinking_allowed, users.drinks_at_home AS users_drinks_at_home, users.other_host_info AS users_other_host_info, users.sleeping_arrangement AS users_sleeping_arrangement, users.sleeping_details AS users_sleeping_details, users.area AS users_area, users.house_rules AS users_house_rules, users.parking AS users_parking, users.parking_details AS users_parking_details, users.camping_ok AS users_camping_ok, users.accepted_tos AS users_accepted_tos, users.filled_contributor_form AS users_filled_contributor_form, users.new_email AS users_new_email, users.new_email_token AS users_new_email_token, users.new_email_token_created AS users_new_email_token_created, users.new_email_token_expiry AS users_new_email_token_expiry
FROM users, cluster_subscriptions
WHERE %(param_1)s = cluster_subscriptions.cluster_id AND users.id = cluster_subscriptions.user_id AND cluster_subscriptions.role = %(role_1)s AND users.id = %(id_1)s

Seems to me that scalar() is implemented on Python side, and count() might be the best that it only asks for an integer to be returned.

I suggest sticking with one_or_none() and instead rewrite the code to do less queries if we want to optimize. Un-assigning me :)


Brazilian Portuguese Translation

Hello friend, follow translation for Pt_br
https://drive.google.com/file/d/14ggE1-XeyzRB225-f_3r-CTm3D-L0sst/view?usp=sharing

Hi, many thanks for the contribution. If you make a pull request you will be listed as contributor, otherwise I'll add the file myself. Just a thing: the file should be named Resources.pt-BR.resx

Good job!!!


Update polyfill configuration for node.js core modules in webpack 5

Issue type
I'm submitting a ...  (check one with "x")

[x ] bug report
[ ] feature request
[ ] question about the decisions made in the repository

Issue description
Current behavior:
After upgrading to webpack 5, the default behavior of including polyfills for node.js core modules has changed. This may result in a "crypto" module error. To resolve this issue, please verify if you require the "crypto" module and configure a polyfill accordingly.
Expected behavior:
The expected behavior is for the polyfill configuration to handle the "crypto" module properly in the webpack 5 setup.
Steps to reproduce:
Upgrade to webpack 5.
Run the application.
Observe the "crypto" module error.
Other information:
Angular:14.2.11
Node:  14.21.3
npm:  6.14.18
OS: Win 11

Can i take this up?


Create nested Structures with query_as function

Is your feature request related to a problem? Please describe.
The problem is a bit related to: #1014 so I will use the same example code.
With macro query_as! it is possible to create nested structs, like:

#[derive(Debug, sqlx::FromRow)]
struct AccountNoPost {
    account_id: i64,
    user_name: String,
    address: Address,
}

#[derive(Debug, sqlx::Type, sqlx::FromRow)]
struct Address {
    address_id: i64,
    street: String,
    street_number: String,
    city: String,
    country: String,
}

And with this query:
let account = sqlx::query_as!(AccountNoPost, r#"
    select ac.account_id, ac.user_name,
      (ad.address_id, ad.city, ad.country, ad.street, ad.street_number) as "address!: Address"
    from accounts as ac
    join address as ad using(address_id)
    where ac.account_id = 1;
    "#).fetch_one(pool).await?;

The problem here is, that is not possible to build dynamic query, for example: I use this query in a API, and with the route query, the user can choice which fields he wants to get, or which field he wants to use for the order.
Describe the solution you'd like
I would be nice, if it would also be possible to create nested structs with the query_as() function. Then we can build our query string in a separate step outside and add/subtract functionality.
Describe alternatives you've considered
The only alternative I see at the moment is, to create different functions with fixed query strings and stick with the macro.

Did you find a way?

Yes, you can check my answer here: https://github.com/launchbadge/sqlx/issues/1014 at the end.
You need to create your own FromRow trait, is not to complicate.

@jb-alvarado I finally tried your code today. But I also found out something terrible: https://github.com/launchbadge/sqlx/discussions/2291.
The limit for the tuple fields is 9!
I have many bigger structs.
Can I ask you what are currently using? Still this solution?
Is there a way to not us tuple at all?

@frederikhors, yes I run into same issue :-). You can use instead:
row.get::<Vec<Option<(..., ..., ...)>>, &str>("big_table")

This:
row.get_unchecked::<Vec<Option<BigTableSerializer>>, &str>("big_table")

I had also to implement sqlx::decode::Decode and  sqlx::Type<::sqlx::Postgres> for BigTableSerializer, but maybe for you is not necessary.

I'm having this error if I try to use struct instead of a tuple:
I tried using a struct (the same struct I'm trying to retrieve). But I have this error now:
error[E0277]: the trait bound `pg::PgCoach: sqlx::Decode<'_, sqlx::Postgres>` is not satisfied
   --> src\pg.rs:628:21
    |
628 |                 id: row.get_unchecked::<PgCoach, &str>("coach").id,
    |                     ^^^ ------------- required by a bound introduced by this call
    |                     |
    |                     the trait `sqlx::Decode<'_, sqlx::Postgres>` is not implemented for `pg::PgCoach`
    |
    = help: the following other types implement trait `sqlx::Decode<'r, DB>`:
              <&'r [u8] as sqlx::Decode<'r, sqlx::Postgres>>
              <&'r [u8] as sqlx::Decode<'r, sqlx_core::any::database::Any>>
              <&'r sqlx::types::JsonRawValue as sqlx::Decode<'r, DB>>
              <&'r str as sqlx::Decode<'r, sqlx::Postgres>>
              <&'r str as sqlx::Decode<'r, sqlx_core::any::database::Any>>
              <() as sqlx::Decode<'r, sqlx::Postgres>>
              <(T1, T2) as sqlx::Decode<'r, sqlx::Postgres>>
              <(T1, T2, T3) as sqlx::Decode<'r, sqlx::Postgres>>
            and 43 others
note: required by a bound in `sqlx::Row::get_unchecked`
   --> C:\Users\Fred\.cargo\registry\src\github.com-1ecc6299db9ec823\sqlx-core-0.6.2\src\row.rs:91:12
    |
91  |         T: Decode<'r, Self::Database>,
    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `sqlx::Row::get_unchecked`

So I think I need to implement Decode, right? But how?
The code I'm using is the same as in this question: https://github.com/launchbadge/sqlx/discussions/2292

Thank you very much for your help. I would like to pay you if you want.

Can you show me part of your code? To better understand the BigTableSerializer part?

Isn't #[derive(sqlx::FromRow)] enough on PgCoach struct?

This is the code I'm using:
As you can see I'm using a Box<T> for struct fields.
use sqlx::{postgres::PgRow, FromRow, QueryBuilder, Row};

// PgCoach has ONLY scalar values

#[derive(Debug, Default, sqlx::FromRow)]
pub struct PgCoach {
    pub team_id: String,
    pub id: String,
    pub created_at: Time::OffsetDateTime,
    pub updated_at: Option<Time::OffsetDateTime>,
    pub firstname: Option<String>,
    pub lastname: Option<String>,
    pub motto: Option<String>,
    pub first_case: Option<String>,
    pub second_case: Option<String>,
    pub third_case: Option<String>,
    pub birth_date: Option<Time::OffsetDateTime>,
    pub sex: Option<i64>,
    pub phone: Option<String>,
    pub email_address: Option<String>,
    pub address: Option<String>,
    pub picture: Option<String>,
    pub notes: Option<String>,
}

#[derive(Debug, Default)]
pub struct PgPlayer {
    pub team_id: String,
    pub id: String,
    pub created_at: Time::OffsetDateTime,
    pub updated_at: Option<Time::OffsetDateTime>,
    pub score: i64,
    pub birth_date: Time::OffsetDateTime,
    pub code: String,
    pub payed: bool,
    pub coach_id: String,
    pub coach: Option<Box<PgCoach>>,
    pub skills: Option<Vec<PgSkill>>,
}

impl FromRow<'_, PgRow> for PgPlayer {
    fn from_row(row: &PgRow) -> sqlx::Result<Self> {
        let mut res = Self {
            team_id: row.get("team_id"),
            id: row.get("id"),
            created_at: row.get("created_at"),
            updated_at: row.get("updated_at"),
            score: row.get("score"),
            birth_date: row.get("birth_date"),
            code: row.get("code"),
            payed: row.get("payed"),
            coach_id: row.get("coach_id"),
            ..Default::default()
        };

        if row.try_get_raw("coach").is_ok() {
            res.coach = Some(Box::new(PgCoach {
                id: row.get_unchecked::<PgCoach, &str>("coach")?.1,
                firstname: row.get_unchecked::<PgCoach, &str>("coach")?.4,
                lastname: row.get_unchecked::<PgCoach, &str>("coach")?.5,
                ..Default::default()
            }));
        }

        Ok(res)
    }
}

but I'm getting that error.

Thanks for the reply, I had already written the code yesterday looking for it in the issues.
Also I think it's a bug because it doesn't make sense that it doesn't work if it works by deriving the sqlx::FromRow.

Anyway I asked on rust-lang.org forum about this and a user answered saying this is not a great way to handle these kind of SQL situation.
Quoting:

There's not really a great way to structure this kind of code just due to the nature of SQL.

The problem you're going to run into is that no matter how you write the query, you're going to have column name conflicts (both PgCoach and PgPlayer have columns named id, for example).

You could rename the columns so there's no overlap between the column names of the two tables, make a query that JOINs the coach table on the foreign key, and then just call PgCoach's FromRow implementation directly in PgPlayer's impl. That doesn't really scale though. The other problem with this approach is that you'll decode multiple copies of the same coach, one for each player that has that coach (and of course, receive multiple copies of that row data from the database server). That may not be what you want.

The most common approach to solving this problem in general looks more like an ORM. You decode all the basic table values from the query, then go through and find all the ids of rows from other tables you need to fill in the object graph, make those queries, and then use the results of all those queries to build up an object graph.

It seems to me that he is talking about multiple queries instead of just one. So far my searches have been directed towards mono-big-query instead of mutliple-small ones.
A few minutes ago I was also reading the diesel documentation about associations for the first time and it talks about the same approach:

The same as SeaORM does:

What do you think?

I'm really not an DB nor Rust expert, so do not take everything at face value what I say. Yes Many to Many request are sub-optimal in single requests, but sometime still the better option (specially in combination with postgres array_agg). Before I switch from diesel to sqlx I had the same problem there: https://github.com/diesel-rs/diesel/discussions/3350. After switching I also notice, that sqlx is slightly slower, but I'm still happy that I'm using now sqlx and not diesel.
Before I started using Rust, I used python django and SQL-Alchemy. Using ORMs have some downsides and everybody have to weigh the pros and cons form him self. What I like by sqlx is:

you don't have to learn another framework
you get a better understanding about SQL and whats going on, on you database.
you have more freedom and no framework gives you restrictions.
you can build dynamical your requests. For me is a big pro for Backends which serves Web Apps.

I've also been struggling with this as I like to fetch nested records (1-n) with LEFT JOIN LATERAL.
As a workaround for the time-being, you can use json_agg. Be aware that this will add some performance overhead because the DB engine must wrap it in JSON and then sqlx must decode it, but this is the most ergonomic solution I've found so far that doesn't deviate away from my usual pattern.
// models.rs

#[derive(Debug, Serialize, Deserialize, PartialEq, Eq, ToSchema, FromRow)]
pub struct LocationModel {
    pub id: Uuid,
    pub chronicle_id: Uuid,
    pub default_version_id: Uuid,

    pub versions: Vec<LocationVersionModel>,
}

// queries.rs

/// Intermediate struct just for the query results
#[derive(Debug, Serialize, Deserialize, PartialEq, Eq)]
struct Location {
    pub id: Uuid,
    pub chronicle_id: Uuid,
    pub default_version_id: Uuid,

    pub versions: sqlx::types::Json<Vec<LocationVersionModel>>,
}

pub async fn get_locations(
    conn: impl PgExecutor<'_>,
    chronicle_id: &ChronicleId,
    limit: i64,
) -> Result<Vec<LocationModel>, sqlx::Error> {
    let locations = sqlx::query_as_unchecked!(
        Location,
        r#"
            SELECT
                l.id,
                l.chronicle_id,
                l.default_version_id,

                json_agg(lv) AS "versions!: Json<Vec<LocationVersionModel>>"
            FROM locations AS l
            LEFT JOIN LATERAL (
                SELECT *
                FROM location_versions AS lv
                WHERE l.id = lv.location_id
            ) AS lv ON TRUE
            WHERE
                l.chronicle_id = $1
            GROUP BY l.id, l.chronicle_id, l.default_version_id
            LIMIT $2
            "#,
        chronicle_id.into_inner(),
        limit,
    )
    .fetch_all(conn)
    .await?;

    println!("Locations: {:#?}", locations);

    // You could implement `Into<_>`
    Ok(locations
        .into_iter()
        .map(|l| LocationModel {
            id: l.id,
            chronicle_id: l.chronicle_id,
            default_version_id: l.default_version_id,
            versions: l.versions.0,
        })
        .collect())
"

How about a simpler approach by using dot notation instead:
struct Bar {
    b: String,
}

struct Foo {
    a: String,
    bar: Bar,
}

sqlx::query_as!(
    Foo,
    "
    SELECT
        a,
        b as "bar.b"
    FROM
        foobars
    "
)
.fetch_one(&pool)
.await?

Here b is aliased as bar.b, which is interpreted as the equivalent of Foo.bar.b = b. I feel that this is more intuitive.


[Proposal] rename attachments

It would be nice to be able to rename an attachment's name. If the attachment has already been saved it will rename the <attachment>_file_name in the database and also rename the existing file on the filesystem (or S3 or whatever driver).
If the attachment has yet to be saved it would just simply update <attachment>_file_name on that instance.
There are some examples out there how paperclip handles this... but I think if you had this
$model->attachment->rename('some file.jpg');

it would work nicely and is simple enough to use.

This is now implemented in the Dev branch for the upcoming 2.0 release.


[bug] A white icon exception appears in the tray function of Macos version 14

Describe the bug
Add hosting function to tauri template created by pnpm create tauri-app A white transparent tray icon appears in the upper left corner of the macos14 version

Reproduction
After creating a template using pnpm create tauri-app add the pallet code
You can refer to the following warehouse code
https://github.com/balrogsxt/tauri-tray-test
Expected behavior
The transparent white tray icon does not appear in the upper left corner of the macos14 version

Full tauri info output
balrogsxt@MacBook-Pro-M2-Pro tauri-app % npm run tauri info

><EMAIL_ADDRESS>tauri
> tauri info

[✔] Environment
    - OS: Mac OS 14.2.1 X64
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.76.0-nightly (de686cbc6 2023-12-14)
    ✔ cargo: 1.76.0-nightly (1aa9df1a5 2023-12-12)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: nightly-aarch64-apple-darwin (default)
    - node: 18.17.0
    - pnpm: 8.6.10
    - npm: 9.6.7

[-] Packages
    - tauri [RUST]: 1.5.4
    - tauri-build [RUST]: 1.5.1
    - wry [RUST]: 0.24.7
    - tao [RUST]: 0.16.5
    - @tauri-apps/api [NPM]: 1.5.2
    - @tauri-apps/cli [NPM]: 1.5.8

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: ../dist
    - devPath: http://localhost:1420/
    - framework: Vue.js
    - bundler: Vite

Stack trace
No response
Additional context

fn main() {
    tauri::Builder::default()
        .system_tray(SystemTray::new())
        .invoke_handler(tauri::generate_handler![greet])
        .run(tauri::generate_context!())
        .expect("error while running tauri application");
}

{
  "build": {
    "beforeDevCommand": "pnpm dev",
    "beforeBuildCommand": "pnpm build",
    "devPath": "http://localhost:1420",
    "distDir": "../dist"
  },
  "package": {
    "productName": "tauri-app",
    "version": "0.0.0"
  },
  "tauri": {
    "allowlist": {
      "all": false,
      "shell": {
        "all": false,
        "open": true
      }
    },
    "bundle": {
      "active": true,
      "targets": "all",
      "identifier": "com.tauri.dev",
      "icon": [
        "icons/32x32.png",
        "icons/128x128.png",
<EMAIL_ADDRESS>        "icons/icon.icns",
        "icons/icon.ico"
      ]
    },
    "security": {
      "csp": null
    },
    "windows": [
      {
        "fullscreen": false,
        "resizable": true,
        "title": "tauri-app",
        "width": 800,
        "height": 600
      }
    ],
    "systemTray":{
      "iconPath": "icons/icon.ico",
      "iconAsTemplate": true
    }
  }
}

probably the same as https://github.com/tauri-apps/tray-icon/issues/90 (linked the issue for visibility)

Closing in favor of #9480  since that one has a more generic wording, thank your for the initial report nonetheless!


Separate imports for Objects/Arrays/Strings/Other stuff

Instead of cramming everything into the same namespace, perhaps it would be better to have separate namespaces for different types of functions? It could make naming easier, since one wouldn't have to add weird prefixes (e.g map & mapObject) to similar functions that operate on different types.
For example
import A from 'iiris/array'
import S from 'iiris/string'

A.concat([1, 2, 3], [4, 5, 6]) // => [1, 2, 3, 4, 5, 6]
S.concat('abc', 'def') // => 'abcdef'

The more I think about this, this seems like a good idea. Here's my current thinking

Module
Description

iiris
Functions and type tests

iiris/array
Array

iiris/object
Object

iiris/map
Map

iiris/set
Set

iiris/folds
Left folds defined in terms of Iterable<T>

iiris/string
String

iiris/???
Plus other modules in the future

Internal structure could be something like
src/index.js // Main entrypoint
src/isObject.js // Stuff in module `iiris` stay at src level
...
src/array.js // iiris/array
src/array/map.js
src/array/internal/mapU.js // or .ts in the future

Could probably move typings to dist/index.d.ts, dist/array.d.ts and so on.


react-transition-group breaking with Preact X

Hi,
I am using react-transition-group, and have added alias in Webpack, as well as Babel.
Simple CssTransition works, but when using TransitionGroup, multiple DOM elements are created (i.e. old ones not removed after animation).
Also, I get this error in console: TypeError: Cannot read property 'cancelNextCallback' of undefined
FYI, its this line in the react transition library: https://github.com/reactjs/react-transition-group/blob/master/src/Transition.js#L190
P.S. I tried running the same code with react (instead of preact X), and it worked like a charm, hence the assumption that it must be an issue in Preact X
Thanks in advance,
Piyush M

Hey,
Thanks for the issue report, I do think this issue might be related to: https://github.com/developit/preact/pull/1627
So it might be fixed in the following beta release.
If you provide a reproduction we can follow this up and notify you wether it's fixed or not and if not follow it up further.

The bug in #1627 would definitely cause this error. Once the next beta is released I'd suggest we close this issue as fixed unless there is a reproduction and it still fails for a different reason.

I'm closing this issue as per the previous comment. If you can still reproduce with the latest beta then please provide steps / code to reproduce and I will re-open it.


Not possible to change alert type on instances

Hi,
It seems that it is not possible to change from hipchat alert types on instances but it works great on services.

Hi,
I've the same problem, I have to link my instance at the service to getting an alert.

Hi,
You can get alerts based on the importance level of the status checks you assign to the instance. Check out the different types of alerts based on importance here [https://cabotapp.com/use/alerting.html](url)

Hi,
I've the same problem.


Added Termii messaging adapter

What does this PR do?
This Pull Request (PR) adds Termii messaging adapter along with tests.
Test Plan

Create Your Termii Account

Sign up for an account on Termii.

Obtain API Key

Log in to your Termii dashboard and go to "Api console" under Developers.
Retrieve your API key from this section.

Create Sender Id (For Sending message)

To register the sender id, you need to apply in "SMS Sender ids" section under Rental.

Set Environment Variables and Run E2E Tests

Before running end-to-end (E2E) tests, make sure you have the following environment variables set:

TERMII_API_KEY
TERMII_TO
TERMII_FROM

Execute the following command to run the E2E tests:
./vendor/bin/phpunit --verbose tests/e2e/SMS/TermiiTest.php

Related PRs and Issues
Closes https://github.com/appwrite/appwrite/issues/6864

https://github.com/appwrite/appwrite/issues/6864

Have you read the Contributing Guidelines on issues?
Yes

Hello @biswajit287
Thank you for your contribution to Hacktoberfest 2023! We've noticed that your PR is still pending and requires some updates based on our engineering team's feedback.
We would love to see your PR successfully merged and send you the Appwrite swag as a token of appreciation. To remain eligible for the swag, please address the pending suggestions by Friday, November 17th. If the PR isn't updated by then, we will unfortunately have to close it due to the end of the Hacktoberfest event.

Hi @stnguyen90 , I'll not be able to attach sreenshots of succesfull test as I'm unable to test the service anymore. My account balance is low. Termii does not provide free testing and since I am using from India cost is high.
Exception: {"message":"Insufficient balance"}

Hey there! There were a lot of big PRs during this Hacktoberfest, and we wanted to give everyone ample time to collaborate with our engineering team. If you were able to merge your PRs during October, amazing. If it’s still not merged, don’t worry about it either. Either way, we’ve got your Hacktoberfest swag minted and ready to ship.
Please comment with your Discord username here so we can contact you about your shipping information to deliver your Hacktoberfest swag.

Will reach out soon. Compiling everyone's user names. Thank you so much!


Language pack download fails

The language pack download fails without prompting.
In some areas, direct access to https://raw.githubusercontent.com is not available.
Sometimes we have to set up a proxy to use it.

Oh, snap. You're absolutely right and I have to make some kind of notice about that.


updated xamarin-android (6.0.1-10)

Closes #18182.

Merged as 9ec0676134b1b62a211649eed59029afa384c402.


ENYO-6131: Fix VirtualList to properly prevent keydown events from sc…

…roll buttons
Checklist

[x] I have read and understand the contribution guide

[x] A CHANGELOG entry is included

[ ] At least one test case is included for this feature or bug fix

[x] Documentation was added or is not needed

[ ] This is an API breaking change

Issue Resolved / Feature Added
When attempting to use 5way to leave a VirtualList while focus is on the scroll button, onKeyDown event bubbling is not prevented and/or allowed properly, causing a condition where focus can change twice for a single key press.
Resolution
We can identify which scroll button has focus and depending on the 5way direction pressed (and whether the event is repeating), we can properly manage which events are bubbled - which will allow spotlight to handle the focus change rather than VirtualList.
We've been hesitant to import the ScrollBar.module.less into VirtualListBase, since we do not want to create more dependencies. So in order to identify which scroll button has focus, I opted to use Spotlight.getSpottableDescendants(spotlightId);, where the last spottable element returned is the last scroll button (bottom button in a vertical list, right button in a horizontal list, left button in a RTL horizontal list). The logic used applies to all these scenarios, so this change appears safe. I'l like to hear any thoughts or concerns.

LGTM

LGTM


Issue 444

@homu r+

:pushpin: Commit c5c58c8 has been approved by kbknapp

:hourglass: Testing commit c5c58c8 with merge df38346...

:sunny: Test successful - status


Xiaomi vacuum may be causing timer to get out of sync

Make sure you are running the latest version of Home Assistant before reporting an issue.
You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:
Home Assistant release (hass --version):
0.54.0
Python release (python3 --version):
3.6.2
Component/platform:
vacuum.xiaomi_miio
Description of problem:
My logs are flooded with Timer got out of sync. Resetting messages. The appear to correspond with my Xiaomi vacuum; when that platform is removed, the messages do not appear.
Expected:
Problem-relevant configuration.yaml entries and steps to reproduce:

Traceback (if applicable):
2017-10-15 19:50:17 ERROR (SyncWorker_17) [mirobo.device] Unable to discover a device at address <IP_ADDRESS>
2017-10-15 19:50:33 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-10-15 20:00:52 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-10-15 20:11:12 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-10-15 20:21:31 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-10-15 20:31:49 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting

Additional info:

Documenting the discussion in chat:
Underlying library is not actually async. Platform needs to be converted to use sync functions.

Also related to that, it was shortly discussed whether it would be possible to catch such cases automatically, but it came to no clear conclusion. I have no deeper knowledge of asyncio workings so I'm not sure how to proceed, but having such a check would lower the amount of such issues which can be hard to debug without digging deep into the code of upstream libs.

We've added this code tracking the property reads: https://github.com/home-assistant/home-assistant/pull/4208/files
Something we could potentially do is wrap the async_update coroutine return with similar logic before yielding from it, to try and check for blocking IO. https://github.com/home-assistant/home-assistant/blob/1d68777981ef9189ba1b871211cee58598daf498/homeassistant/helpers/entity.py#L213
Of course it begs the question how far do we want to go, but accidentally including blocking IO in async_update seems plausible enough to be worth it to me.

I agree that it makes sense to wrap also async_update(), especially as that is the main entry point to the backend library in a lot of times. And even when it won't catch if there is I/O done when initializing the upstream library, it should be enough for a component/platform developer to see something is not right.

Fixed with https://github.com/home-assistant/home-assistant/pull/9997


Support baseurl for openshift (or others tekton dashboard)

Hi backstage-tekton-plugin maintainers,
Thank you for such a great project!
I really appreciate the support for the tekton-dashboard, but because of security issues, we don't use it.
We'd like to want this plugin to support the link for Openshift, like this format,
 https://openshift.myserver.com/k8s/ns/project-hub-documention-automation/tekton.dev~v1beta1~PipelineRun/pipelineruns-1
Shall we add another parameter like openshiftBaseUrl?
Or shall we support templating for the dashboardBaseUrl?

Hello and thank you for the feedback! :)
i find your proposal with the additional paramater openshiftBaseUrl very good! We should add it for OpenShift clusters.
Is it possible to see the security issues? Or do you mean the security issues under the Github Security tab?

Hello and thank you for the feedback! :)
i find your proposal with the additional paramater openshiftBaseUrl very good! We should add it for OpenShift clusters.
Is it possible to see the security issues? Or do you mean the security issues under the Github Security tab?

Oh thank you for your confirmation!
And for the security issues, I'm not sure, but I guess Tekton Dashboard doesn't have any AuthN/AuthZ, so that's why we don't use it.

I'll try to work on this today.


Variable override to more specific type causes compilation error

Example:
interface Foo {
    baz: any
}
interface Boo extends Foo {
    baz: number
}

results in
external interface Foo {
    var baz: Any
}
external interface Boo : Foo {
    override var baz: Number
}

which fails with compilation error:
"Type of 'baz' doesn't match the type of the overridden var-property 'public abstract var baz: Any defined in interface.override.Foo'."
One solution is to make it be (see https://stackoverflow.com/questions/44740473/kotlin-type-of-exoplayer-doesnt-match-the-type-of-the-overridden-var-propert/44741377#44741377):
external interface Foo {
    val baz: Any
}
external interface Boo : Foo {
    override var baz: Number
}

Another is to make it be:
external interface Foo {
    var baz: dynamic
}
external interface Boo : Foo {
    override var baz: Number
}

Yet another is to make it be:
external interface Foo<T> {
    var baz: T
}
external interface Boo : Foo<Number> {
    override var baz: Number
}

Still another is to make it be:
external interface Foo {
    var baz: Any
}
external interface Boo : Foo {
    override var baz: Any /* Number */
}

I'm working on this.


TypeError: this is not a typed array. on first run

I ran the setup procedures on the github page, including the .lambci.json for py27. I then try the clicking the "Test Service" button on github hook, and get an error:
$ rm -rf /tmp/lambci/build

/var/runtime/node_modules/aws-sdk/lib/request.js:31
throw err;
^

TypeError: this is not a typed array.
at Function.from (native)
at Object.exports.lineStream (/var/task/utils/index.js:114:25)
at runInBash (/var/task/actions/build.js:204:26)
at runCmd (/var/task/actions/build.js:166:29)
at /var/task/node_modules/async/internal/withoutIndex.js:9:16
at replenish (/var/task/node_modules/async/internal/eachOfLimit.js:66:17)
at /var/task/node_modules/async/internal/eachOfLimit.js:71:9
at eachLimit (/var/task/node_modules/async/eachLimit.js:43:36)
at Object.<anonymous> (/var/task/node_modules/async/internal/doLimit.js:9:16)

I wasn't sure if there was a better community to raise this issue in.

This is strange – it implies that AWS SDK is using Buffer.from – which was fixed way back in Dec 2016 (v2.7.24)
Can you tell me more about how you set this up – did you use the CloudFormation template? Did you check out from git and create it yourself, etc?
If you could give me the exact steps you used to launch your LambCI stack, that would help

Yep, strange to me for the same reason. I checked the source and none of that code has been touched in years, which means it should be fairly stable, especially for straight OOB scenarios.
I used the "spin up a CloudFormation stack" link in the Installation section. I added my GitHub Token and repo, no slack. That was all I set. Then I changed .lambci.json to:
{
  "cmd": "pip install --user tox && tox"
}

And that's it, lambci-wise. Other than that I just worked to get tox setup.

Hmmm – ok, there might have been an issue with some node_modules erroneously being packaged in the zip file.
I've rebuilt it and uploaded to S3 again. So try deploying the CloudFormation stack again and let me know if that fixes the problem.

I'm getting failures on installing pip dependencies now, so it looks like the original issue is fixed and it's all on my end now.
Thanks!

Great, thanks for reporting!


Middleware in client side: context.app is undefined (1.0.0 rc2)

Hi,
using a simple middleware:
export default function (context) {
  if (context.isClient) console.log(context.app)
}

the app value is now undefined when the middleware is executed on the client side.
Regards.

Similar error in asyncData
https://github.com/nuxt/nuxt.js/issues/1178

Fix with 1.0.0-rc3, see https://github.com/nuxt/nuxt.js/commit/28d0e726416319fb8ed522c3ce80f124b74c2622

Thanks @Atinux !


AssertionError: check train, valid, test file number

Hi there! I got the error.
Here's a settings
train_file_number: 5
valid_file_number: 0
test_file_number: 5
I created only 5 wav files data

if you have only 5 wav, you won't be able to train the models as they are requiring far much more data.

Thanks!! This issue is solved. But, I got new error
2018-10-07 19:33:47,394 CRITICAL  acoustic_comp: the frame number of data stream lf0 is not consistent with others: current 1498 others 750
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/usr/lib/python3.5/multiprocessing/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.5/multiprocessing/pool.py", line 44, in mapstar
return list(map(*args))
File "/mnt/c/Users/admin/Downloads/merlin-master/src/run_merlin.py", line 487, in perform_acoustic_composition_on_split
acoustic_worker.prepare_nn_data(in_file_list_dict, nn_cmp_file_list, in_dimension_dict, out_dimension_dict)
File "/mnt/c/Users/admin/Downloads/merlin-master/src/frontend/acoustic_base.py", line 122, in prepare_nn_data
self.prepare_data(in_file_list_dict, out_file_list, in_dimension_dict, out_dimension_dict)
File "/mnt/c/Users/admin/Downloads/merlin-master/src/frontend/acoustic_composition.py", line 135, in prepare_data
assert  out_frame_number == frame_number
AssertionError
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/mnt/c/Users/admin/Downloads/merlin-master/src/run_merlin.py", line 1320, in
main_function(cfg)
File "/mnt/c/Users/admin/Downloads/merlin-master/src/run_merlin.py", line 692, in main_function
2018-10-07 19:33:47,714 CRITICAL  acoustic_comp: the frame number of data stream lf0 is not consistent with others: current 1636 others 819
perform_acoustic_composition(delta_win, acc_win, in_file_list_dict, nn_cmp_file_list, cfg, parallel=True)
File "/mnt/c/Users/admin/Downloads/merlin-master/src/run_merlin.py", line 510, in perform_acoustic_composition
pool.map(perform_acoustic_composition_on_split, splits_full)
File "/usr/lib/python3.5/multiprocessing/pool.py", line 260, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/usr/lib/python3.5/multiprocessing/pool.py", line 608, in get
raise self._value
AssertionError
I added 25 wav files

Make sure to have your file_id_list contain a list of all files that you want available (for training, validation and testing). The sum of the values for train_file_number, valid_file_number, and test_file_number must be equal to the number of files in your file_id_list.
The problem you are seeing is due to the setup of the data and file lists, solve this first. Then, as Sebastien said, you will need more data to train a real model (you will need at least hundreds of files).


Modify the rate limit middleware to use ibc-hooks

Background
This is a tech-debt issue. The rate limits middleware was written before the idea of ibc-hooks to simplify writing middlewares.
We should move rate limits to use this pattern
Suggested Design

[ ] Modify ibc-hooks to use pipelining: it should receive a list of hooks and each one be provided for the next one to call it. This may need it's own issue. Ask me for details if you want to work on this.
[ ] Rewrite rate limits as a hook
[ ] Wire it up in app.go and keepers.go

Acceptance Criteria
All custom middlewares are defined as hooks. All tests continue to pass.

hi, @nicolaslara I want to ask about ibc-hooks to use pipelining. Should we define MultiIBCHooks as a slice of IBC hooks and use same logic with epoch hooks ?

Hi @vuong177! I don't have a strong opinion between defining MultiIBCHooks or just modifying the existing IBCHooks to receive a list of hooks. However(!) the implementation needs to be considerably different from the one in epoch.
The challenge here is that each hook essentially behaves as a function that wraps the next one (and that can choose to call the next one at any specific point), so we can't just execute them sequentially.
I think we need to either modify the definition of the override hooks so that they receive the next hook in the pipeline as a function argument, or have a method they can call to "execute the next hook in the pipeline".

I'm thinking about add NextOnChanOpenInitOverrideHooks() to Hooks interfaces, like this :
type OnChanOpenInitOverrideHooks interface {
	OnChanOpenInitOverride.....
	NextOnChanOpenInitOverrideHooks() OnChanOpenInitOverrideHooks
}

And in the OnChanOpenInit implementation, we can handle the wrapper Hooks defined in this.


Zen Mode content no longer displays at full screen width

Issue Type: Bug
New regression: The last two insider builds no longer show Zen Mode content at full width of the display, but instead centers the content with enormous margins on the side. This constrains the content area so small that you have to do a lot of side to side scrolling to see anything.
This is a high DPI laptop display (Dell XPS 13 with Quad HD screen).
VS Code version: Code - Insiders 1.21.0-insider (3fec61014742dec894b3a31cdf8556bf533cb0e1, 2018-02-28T05:17:16.839Z)
OS version: Windows_NT x64 10.0.17074

This is as desgined.
Use "zenMode.centerLayout": false
However with the tomorrow's vscode insiders it should not center so much, but in a nice golden ratio

@isidorn I can see the designed behavior being nice on very large screens, so the added margin with centered content is great for focus. But on a laptop, I actually used zen mode for maximizing the amount of space available to see as much content as possible.  The "zenMode.centerLayout": false workaround is just what I needed. Thanks for the quick solution!

In the future we should look at monitor size to decide if we should center or not


Bug with keyboard shortcuts

I have noticed a bug with your plugin regarding keyboard shortcuts in specific situations. For instance, they're not working when there's no live-search data attribute set (filter is disabled).
I have initialized plugin on all select elements, and depending on select, setting some option for it (e.g. setting width / live-search attribute, size)
When there's no live-search keyboard arrows only go from top-bottom of the wrapping container (reacting to overflow-y, and moving scrolltop of container to top or to bottom of it) and not actually selecting the options within it.
If there's live-search, it works just fine. For now, I'm using live-search everywhere, because of this bug, but I'd rather see this resolved...
Bootstrap select 1.6.3
Bootstrap 3
jQuery 1.8.2
On Drupal 7, on all browsers.
Nothing in console to check out and I can't provide you with a test env. If you're not aware of the bug, I'll fork and try to figure out what's going on and get back to you.

Please upgrade to 1.6.5 and tell me if the problem persists. However, it sounds like you're expecting the value of the select to change when using the arrows, correct? You have to either click on the option or type "Enter" or "Spacebar." If I'm mistaken, maybe you can elaborate on the problem?

I'm expecting to be able to use arrows to navigate through options, which worked only if there was live-search active. Of course, then I'd press enter, and it would select accordingly. Well, none of it works that way if there's no filter/live-search parameter.
I'll update on 1.6.5 tomorrow

Oh, sorry - haven't updated the version number in master and told you to try the wrong version. Try the latest verion in master (https://github.com/silviomoreto/bootstrap-select/tree/master/dist).

Alright, this one works exactly like 1.6.3, keyboard works only if there's live-search.
Just tried the same setup without drupal, bootstrap v3.0.0, jQ 1.8.2, and 1.6.5 for bootstrap-select. Exact same bugs.
Jumped to 1.11.3 jQ and it works as it should. So for some reason there's a problem with my version of jQuery. It just troubles me why would it work if there's a search initialized...
On 1.8.2 it isn't working, on 1.9 it is. So basically jQ needs to be 1.9.x
But it still is a bug, since keyboard works just fine on 1.8.2 IF there's live-search attribute set to select.
Thank you for your help!

Please try it with 1.7.0-rc1 to see if it persists.

will do. Need this to be production ready atm. Once I'm done with that, I'll experiment with newer version. And thank you for your help!

This should officially be fixed, but let me know if it's still happening.

I have taken the latest and still see the keyboard issue

Another bug... When I click enter while I'm in focus of the form (e.g. some other input in the form where there's bootstrap select plugin initialized as well), enter selects all options in first bootstrap select instance and then does what it's supposed to do, submit the form. Same goes if focus is in some other's bs element (for instance live search input) and press enter there. All options are selected of first instance in the form... Very awkward and annoying bug. I'll look it up and post back here.

1.7.3 doesn't have those issues. I'll update in another thread if I find something. 1.6.5 had it.


Modifying requests once

In 2.x we I used downloader.requestModifier do add some additional headers to each request. Now that property has been removed and there are 2 contradicting alternatives.

The wiki here on github says to pass a closure to setImage. I don't want to do this ideally as all requests would have the same headers added.
In the code the requestModifier method is annotated and states

requestModifier is removed. Use 'urlRequest(for:byModifying:)' from the 'ImageDownloaderDelegate' instead

However there's no such method in the delegate.
Is there a way of achieving what I had on 2.x on 3.1.0?

Actually found a solution to my problem, posting it here in case someone is having the same issue.
let downloader = KingfisherManager.shared.downloader

let headers = ["header1": "valu1"]

let configuration = URLSessionConfiguration.default
configuration.httpAdditionalHeaders = headers
downloader.sessionConfiguration = configuration

@adrianhr91 Oops, the comment is outdated. Use this instead.
If you were mentioning this in your 1, you can have only one AnyModifier and pass it as an option everywhere.


Set version using setuptools_scm during build

This will let setuptools_scm populate the version file during installation.

when running from source, the version will be returned as "source"
code updates as needed, because the version written is just version
removes hard coded version from source

Here's a sample:
# coding: utf-8
# file generated by setuptools_scm
# don't change, don't track in version control
version = '0.7.4.dev338+gb870a002.d20220221'
version_tuple = (0, 7, 4, 'dev338', 'gb870a002.d20220221')

I suspect over time additional work will need to be done here, but this will allow the mypy ignore_includes work to continue.
Related #553
The approach suggesting _scm_version can be implemented as needed when needed.  It did not seem necessary and there was little evidence of it being a common pattern.

@cidrblock don't forget to add src/ansible_navigator/.gitignore with the following contents:
_version.py

I'm blocking this because I believe that it's vital for the logic to stay out of __init__.py.

This PR is being closed for now.


No module named 'pointnet2'

Hello !
I executed the pip install -r requirements.txt and it doesn't produce any error.But when I tried to start training it produces the follwoing error.
2_PyTorch-master/pointnet2$ python3.6 train.py task=cls
[2021-09-21 01:43:05,716][hydra.utils][ERROR] - Error instantiating pointnet2.models.PointNet2ClassificationSSG : No module named 'pointnet2'
Traceback (most recent call last):
File "train.py", line 55, in
main()
File "/home/seecs/.local/lib/python3.6/site-packages/hydra/main.py", line 24, in decorated_main
strict=strict,
File "/home/seecs/.local/lib/python3.6/site-packages/hydra/_internal/utils.py", line 174, in run_hydra
overrides=args.overrides,
File "/home/seecs/.local/lib/python3.6/site-packages/hydra/_internal/hydra.py", line 86, in run
job_subdir_key=None,
File "/home/seecs/.local/lib/python3.6/site-packages/hydra/plugins/common/utils.py", line 109, in run_job
ret.return_value = task_function(task_cfg)
File "train.py", line 31, in main
model = hydra.utils.instantiate(cfg.task_model, hydra_params_to_dotdict(cfg))
File "/home/seecs/.local/lib/python3.6/site-packages/hydra/utils.py", line 60, in instantiate
raise e
File "/home/seecs/.local/lib/python3.6/site-packages/hydra/utils.py", line 49, in instantiate
clazz = get_class(config["class"])
File "/home/seecs/.local/lib/python3.6/site-packages/hydra/utils.py", line 21, in get_class
mod = import_module(module_path)
File "/usr/lib/python3.6/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 994, in _gcd_import
File "", line 971, in _find_and_load
File "", line 941, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 994, in _gcd_import
File "", line 971, in _find_and_load
File "", line 953, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'pointnet2'
Can you please guide?
Thanks for your time.

No answers yet? I also met this issue.

Hi,  you might have missed this step in the installation (check the first line of "Example training" in the README of the repo):
pip install -e .
I hope that solves the issue

So im running into same issue. Anyone found solution to this?

So im running into same issue. Anyone found solution to this?

i have solved this issue. The main reason is your setuptools version is too high, so you can lower your setuptools version by running "pip install setuptools==58.2.0".

can you tell me what version of cuda、pytorch and python you use? i have been having trouble installing it.

So im running into same issue. Anyone found solution to this?

i have solved this issue. The main reason is your setuptools version is too high, so you can lower your setuptools version by running "pip install setuptools==58.2.0".

can you tell me what version of cuda、pytorch and python you use? i have been having trouble installing it.

So im running into same issue. Anyone found solution to this?

i have solved this issue. The main reason is your setuptools version is too high, so you can lower your setuptools version by running "pip install setuptools==58.2.0".

I have lower the setuptools and it didn't work. Should reinstall all the packages?

So im running into same issue. Anyone found solution to this?

i have solved this issue. The main reason is your setuptools version is too high, so you can lower your setuptools version by running "pip install setuptools==58.2.0".

pip install setuptools==58.2.0, it resolve my issues. Many thinks!


Kata Containers 1.6.0-rc2

volumes: Handle k8s empty-dirs of "default" medium type
versions: kernel: update to 4.19.28
qemu: throw error when fail to get addr from bridges
vc:qemu: Fix id calculation of memory hotplug
s390x: 2 small test fixes
arm64: support NVDIMM
virtcontainers: move resource calculation to its own function
versions: update nemu to latest release
Add crio and containerd details to collect script
pkg: reduce memory footprint
Fix rootfs mount assumptions
s390x: fix golint complain
Network: remove Physical field in VethEndpoint
test: add tests for sandbox creation rollback and cleanup
VMCache: the new function that creates VMs as caches before using it
unit test: Fix local test
Add upstream version url regexp's to allow upto date checks
virtcontainer: watch the qemu's console when proxy's debug enabled
unit-test: fix undefined struct field SupportVSocks on arm64
Makefile: Fix aarch64 fail in No GO command or GOPATH not set mode
tracing: Fix tracing
config: check the builtIn first when updating shim/proxy/agent
qemu: fix devID value error
Makefile: Change "GOPATH not set" to "No GO command"

8e2a5ea tests: Fix units tests to check empty-dir volumes backed by host-dir
47a6023 volumes: Handle k8s empty-dirs of "default" medium type
4e81522 vc:qemu: Fix id calculation of memory hotplug
502fdab test: add test for addDeviceToBridge
0061e16 virtcontainers: move resource calculation to its own function
7504d9e unit-test: add TestSandboxUpdateResources
f009a53 versions: update nemu to latest release
f2a506a scripts: Add containerd details to collect script
7266d31 scripts: Log crio config file in collect script
30f9776 scripts: Create separate section for crio in collect script
ae08ea3 scripts: Add helper function to collect script
ae4d8b4 versions: kernel: update to 4.19.28
c7ace4b qemu: throw error when fail to get addr from bridges
2456ac5 pkg: reduce memory footprint
df9a401 Network: remove Physical field in VethEndpoint
76d9db3 vendor: Add github.com/gogo/protobuf
45fe870 runtime: Add unit tests
0f8b2ad VMCache: Update factory to run as a VMCache server
90704c8 VMCache: the core and the client
d8bcddb qemu-arm64: add unit test for func appendImage on aarch64
986e4dc qemu-arm64: Support nvdimm on arm64
8ba27e1 s390x: remove pmu from test
6242af3 s390x: fix TestQemuS390xMemoryTopology
613edd5 s390x: fix golint complain
27a92f9 runtime: Fix rootfs mount assumptions
c964a26 virtcontainers: makefile fix .ci path
fcee080 unit-test: Fix local test
c4957dd virtcontainer: watch the qemu's console when proxy's debug enabled
1e30673 test: add tests for sandbox creation rollback and cleanup
bdb34e7 Makefile: Fix aarch64 fail in No GO command or GOPATH not set mode
c759cf5 tracing: Fix tracing
31232b4 config: check the builtIn first when updating shim/proxy/agent
03dd780 qemu: fix devID value error
a1ddf53 Makefile: Change "GOPATH not set" to "No GO command or GOPATH not set"
35672b5 unit-test: fix undefined struct field SupportVSocks on arm64
975157d versions.yaml: add uscan annotations

/test


Is it for players who are only under one network?

Hello,
For me when I run a build on the same networks it`s okay but outside of a network for example using WiFi for one device and cellular for another one, the sample app is not working! why?

is it working with IPv6 or not?
is it really hosted by one user? so what is the signaling server? how can we host our server?
can we connect it to google webrtc and firebase?

We need to host a call on the server but you wrote on Reddit:
There is no server, the server just establishes a direct connection between the peers and then gets out of the way.
Does that mean we cannot let users connect from everywhere?
Does that mean for any call it should be one traffic host? how can we resolve it?
we want the server handles the traffic

Hey @miladxandi the reddit post is pretty old and from UniVoice v1. It used airpeer, a webrtc library where I was hosting the signalling server
Now univoice is network agnostic, whereas the airpeer based webrtc network implementation is no longer recommended due to the following reasons:

native libs used in airpeer were not IL2CPP compatible
there were several issues with NAT punching, probably what is causing the cellular-wifi issue you describe. Such issues are common with webrtc and need fallbacks

Unity has its com.unity.webrtc package that might be a better fit for peer to peer.
Univoice works with any underlying network as long as you make a IChatroomNetwork implementation of it. Currently the ones that work best are mirror and telepathy based ones that you can look into. Note that this would require you to host your own server that can create chatrooms.
Next gen of univoice (v4) is on the way with several improvements, which you can wait for. Otherwise DM be on Discord adrenak#1934 where I can help you out more.

I'm not renting a server for the sample app. In that, one user creates a server locally on the wifi and the other joins it. Since the server user is on WLAN, the client user also must be on WLAN. There's no signalling server in Telepathy. It just has a client-server with IP address "localhost"
If you host a Telepathy app on a server and get users to connect to it via its IP address, they would connect regardless of their them being on wifi or cellular and should be able to connect from anywhere globally. But that's Telepathy specific stuff, univoice doesn't have anything to do with it, it just needs an IP address to connect to. The telepathy docs have some tutorials you can refer to. You'd have to make a server build (windows or linux depending on your servers OS) that the clients can connect to.


Slows start a debug on wsl2 mirrored network

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version: 1.83
OS Version: Win 11 22631.2338

Steps to Reproduce:

Open a pnpm project
click "Run and Debug"
click "Javascript Debug terminal"
exec in terminal `pnpm run dev"
too slow to startup

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.83.0. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!

This seems like an issue with the system as a whole, not with vscode in particular? If you think it's vscode, can you explain more?