Reproduction Issues

I ran the code using the baseline.yml and found that the results were slightly below that reported on the README and original paper. Is this within the margin of error due to randomization, or am I missing something?
Would really appreciate if you could help me out @michuanhaohao @L1aoXingyu
Output
Ran on a single 2080ti
2021-07-11 14:18:21,932 reid_baseline.train INFO: Epoch[120] Iteration[180/183] Loss: 0.030, Acc: 1.000, Base Lr:
 3.50e-06
2021-07-11 14:18:23,825 reid_baseline.train INFO: Epoch 120 done. Time per batch: 30.902[s] Speed: 379.0[samples/
s]
2021-07-11 14:18:23,825 reid_baseline.train INFO: ----------
The test feature is normalized
2021-07-11 14:21:04,250 reid_baseline.train INFO: Validation Results - Epoch: 120
2021-07-11 14:21:04,250 reid_baseline.train INFO: mAP: 73.5%
2021-07-11 14:21:04,250 reid_baseline.train INFO: CMC curve, Rank-1  :87.3%
2021-07-11 14:21:04,250 reid_baseline.train INFO: CMC curve, Rank-5  :95.1%
2021-07-11 14:21:04,250 reid_baseline.train INFO: CMC curve, Rank-10 :96.7%

Results

mAP: 73.5 (vs 74.0 reported)
R1: 87.3% (vs 87.7% reported)

Details

torch==1.9.0
torchvision==0.10.0
Used pre-trained model obtained from resnet50(pretrained=True)

Because the dataset is small-scale, the accuracy may fluctuate by no more than 1%. Yon can try different random seeds.

Thanks for the quick response. I'll try a few more runs!


Feature Request - c7n-org allow accounts to be specified in policy

Currently a list of accounts to apply a given policy to is specified as an arg to c7n-org. We have 20+ accounts and 20+ policies that are applied to a subset of those accounts. If we could specify the accounts to apply a given policy to within the policy file that would be tremendously helpful.

so the scenario I think is a set of accounts in an accounts.yml file, a set of policies in a policy.yml file, and wanting to run a subset of policies against a subset of accounts. the c7n-org cli allows account filtering by name/account_id/tag, but at the moment the policy subset requires splitting out the policy subsets to separate files. an enhancement would be to allow filtering the policies to be executed as well when running, ideally via policy name or tag.
[update] - as I went to look into this, afaics we already support it. ie you can specify a policy subset by name using -p or policy tag with -l

What I was hoping for is some way to specify the accounts in the accounts.yml in-line within the policy:
policies:
  - name: ec2-missing-email-tag-mark-for-stop
    resource: ec2
    comment: |
       Alert and mark EC2 instances missing email tag for future stop in 5 days.
    accounts:
      - "non-prod"
      - "prod"
    filters:
      - "State.Name": running
      - "tag:aws:autoscaling:groupName": absent
      - "tag:Email": absent
      - type: instance-age
        hours: 1
    actions:
      - type: mark-for-op
        tag: missing-email-tag
        op: stop
        days: 5
      - type: notify
        template: mail.html
        subject: AWS Policy Alerts - EC2 Email Tag Missing
        violation_desc: |
            These EC2 instances are missing the Email tag and will be stopped in 5 days.
        to:
          -<EMAIL_ADDRESS>


Using Paket with Shared projects - referencing different package versions from different projects

I'm trying to use Paket on a project (a R# plugin) which uses Shared projects, and duplicated .csproj/packages.config files for referencing different R# SDK versions.
An example of such structure is:
/MyPlugin.sln
/MyPlugin.Domain/MyPlugin.Domain.8.2.csproj
/MyPlugin.Domain/MyPlugin.Domain.9.0.csproj
/MyPlugin.Domain/packages.MyPlugin.Domain.8.2.config // <-- NuGet-supported packages.config format
/MyPlugin.Domain/packages.MyPlugin.Domain.9.0.config
...

etc.
The packages.*.config contains a reference to a particular version of ReSharper SDK, either 8.2 or 9.0. NuGet is smart enough to update the relevant csproj file.
I'm using this to avoid #if/#else hell in my project, so I'm using partial classes to accommodate for the differences in the API.
I want to migrate this structure to Paket.
Couple of questions:

Can I even do this? Can Paket support different packet.dependencies in the same directory?
Same question about paket.references - how do I add a reference to a different version of the SDK in different projects?
Where do I put those files? Per-project? At solution level?

Thanks!

I think this can be done with groups since v2


eth/eip712: prepare tests for packed encoding

Codecov Report

Merging #216 (767ad18) into main (f6f1c7d) will decrease coverage by 0.21%.
The diff coverage is 90.47%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@            Coverage Diff             @@
##             main     #216      +/-   ##
==========================================
- Coverage   99.77%   99.56%   -0.21%
==========================================
  Files          77       77
  Lines        4374     4393      +19
==========================================
+ Hits         4364     4374      +10
- Misses         10       19       +9

Impacted Files
Coverage Δ

lib/eth/eip712.rb
98.50% <50.00%> (-1.50%)
:arrow_down:

spec/eth/eip712_spec.rb
90.00% <94.44%> (-10.00%)
:arrow_down:

lib/eth/abi/type.rb
100.00% <100.00%> (ø)

lib/eth/client/ipc.rb
93.33% <0.00%> (-6.67%)
:arrow_down:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


The role assignment scope used in this article seems to be wrong

This article has an example of applying "Virtual Machine Administrator Login" role to VM scope, like below:

When I followed this and tested to login with "az ssh vm" command, I got below error message:

(AuthorizationFailed) The client '{account_name}' with object id '{object_id}' does not have authorization to perform action 'Microsoft.Network/networkInterfaces/read' over scope '/subscriptions/{subscription_id}/resourceGroups/jimmytest0413/providers/Microsoft.Network/networkInterfaces/jimmytest229' or the scope is invalid. If access was recently granted, please refresh your credentials.
Code: AuthorizationFailed
Message: The client '{account_name}' with object id '{object_id}' does not have authorization to perform action 'Microsoft.Network/networkInterfaces/read' over scope '/subscriptions/{subscription_id}/resourceGroups/jimmytest0413/providers/Microsoft.Network/networkInterfaces/jimmytest229' or the scope is invalid. If access was recently granted, please refresh your credentials.

The error message indicated the account has not permission to the Network Interfaces attached to the target VM. I managed to fix this by applying the role "Virtual Machine Administrator Login" at Resource Group level which contains the Network Interface.
Could you please double check if applying this role at VM scope works or not? If it't not working, please correct the examples in this article.
BTW, this article has note that it's not recommended to assign the role at individual VM level but the az command example still does that. This may causes misleading to customers.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: a2ede563-b873-0bc3-959f-69e555f0efcc
Version Independent ID: 8471d9e4-6c79-0cf1-c5ed-50c58e1b92aa
Content: Login in to Linux virtual machine in Azure using Azure Active Directory and openSSH certificate-based authentication
Content Source: articles/active-directory/devices/howto-vm-sign-in-azure-ad-linux.md
Service: active-directory
Sub-service: devices
GitHub Login: @MicrosoftGuyJFlo
Microsoft Alias: joflore

thanks for bringing this to our attention. I have assigned the issue to the content author to evaluate and update this doc as appropriate

The example does work at the VM level I have tested this multiple times. As the content mentions you can change the assignment to be at the resource group or subscription level.
#please-close


bug: error when running ]q in go file

Did you check docs and existing issues?

[X] I have read all the LazyVim docs
[X] I have searched the existing issues of LazyVim
[X] I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)
NVIM v0.9.1
Operating system/version
macOS 13.4
Describe the bug

Links to this line: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/plugins/editor.lua#L381
Steps To Reproduce

Open an empty file
Run ]q
Error is shown as notification

Expected Behavior
Jump to next problem.
Repro
-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
  "folke/tokyonight.nvim",
  "folke/LazyVim",
  -- add any other plugins here
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

vim.cmd.colorscheme("tokyonight")
-- add anything else here

This seems to be vim's default behavior - if you use :cnext or :cprev when the quickfix list is empty, you always get this error. Just confirmed on a fresh install. The error looks worse here because it's presented as a Lua stack trace

Indeed. I can show a prettier error message, but this is pretty low prio for me right now

Ok, that makes sense. It just didn't feel right.
Feel free to close the issue.


Kubeconfig of cluster expires and breaks k8s provider

I followed the recommended pattern for provisioning a k8s cluster and using it directly in a provider for k8s resources. Everything works fine at first, but it seems that the kubeconfig of the cluster eventually expires and renders the provider unable to make changes and throws warnings on pulumi up:
warning: configured Kubernetes cluster is unreachable: unable to load schema information from the API server: the server has asked for the client to provide credentials

I confirmed that the kubeconfig from a pulumi stack output kubeconfig no longer works with kubectl. But a new kubeconfig from doctl k8s cluster kubeconfig show <cluster-name> works fine, presumably because it has fresh creds.
Is there a way to make this pattern work long term? Hopefully without modifying the provider and triggering a replace on all cluster resources...

https://github.com/pulumi/examples/blob/d617a14bb933a7f54710100210eb603e9c1558ae/digitalocean-ts-k8s/index.ts#L25-L36 should fix that problem. I'll update that blog post to match.

That works but it floods the access token list on the digital ocean console with new tokens for every update. Would be much better if it cached a working kubeconfig somehow and only fetched a new one on expiration.

@protometa Hmm, thanks for letting me know. Would you mind opening a new issue with details on what you're seeing in the DO console so we can investigate that behavior further?

#78


boards: Update EXAMPLES_SOTEST_DEVMINOR to EXAMPLES_SOTEST_DEVMINOR_MAX

Summary
No need to spend time thinking about the choice of devminor maybe.
See https://github.com/apache/nuttx-apps/pull/2579 for more details.
Impact

boards/arm64/qemu/qemu-armv8a/configs/sotest/defconfig
boards/sim/sim/sim/configs/sotest/defconfig
boards/sim/sim/sim/configs/sotest32/defconfig

Testing
$ make distclean
$ ./tools/configure.sh -l sim:sotest
$ make savedefconfig
$ diff defconfig boards/sim/sim/sim/configs/sotest/defconfig
$ echo $?
0

$ make distclean
$ ./tools/configure.sh -l sim:sotest32
$ make savedefconfig
$ diff defconfig boards/sim/sim/sim/configs/sotest32/defconfig
$ echo $?
0

If this is part of https://github.com/apache/nuttx-apps/pull/2579 this commit would better fit there to have all changes in a single PR. But I guess this PR was created in order to fix build of 2579?
Thanks for the testing example - in this case it would be also good to also show what happens before change in addition to showing what happens after change, that way we can exactly see where is the problem at first glance :-)
Thanks @JianyuWang0623 :-)

If this is part of apache/nuttx-apps#2579 this commit would better fit there to have all changes in a single PR. But I guess this PR was created in order to fix build of 2579?
Thanks for the testing example - in this case it would be also good to also show what happens before change in addition to showing what happens after change, that way we can exactly see where is the problem at first glance :-)
Lets see what Ci says here. In general we can accept changes only if they pass CI in one place. Also out project is quite above the CI quota so we need to converse use a bit :D
Thanks @JianyuWang0623 :-)

Without this patch but with https://github.com/apache/nuttx-apps/pull/2579, e.g. sim:sotest
$ make distclean
$ ./tools/configure.sh -l sim:sotest
$ make savedefconfig
$ diff defconfig boards/sim/sim/sim/configs/sotest/defconfig
22a23
> CONFIG_EXAMPLES_SOTEST_DEVMINOR=3


[FEATURE] Implement endpoints for creating and managing hackathon teams and participants

Brief description:

How to achieve it:
Follow the schema

First of all, this schema is not clear enough - barely readable, lacks clarity and it's misleading in terms of overall workflow.
I suggest that you and @Aleks1908 use https://excalidraw.com next time.

Availability of registration form is checked on initial load, not after picking an option on the UI. Here, you need to talk to PR and decide whether you will be closing the registration once the team capacity is being reached or you will allow participants without teams to keep registering. Consider all cases and discuss whether we have to come up with some algorithm for creating new teams for allocating participants without teams so that we don't reach a point where we need to put participants in predefined teams. I bet most people won't like having some random person in their team when they've explicitly signed up with friends (@nikolayninov @SamuilMladenov your input is required here). In terms of technical execution, this check is not a separate endpoint. Why? Because we already have a feature switch for the registration platform so instead of making countless requests towards the API, we just switch the flag within the DB. This would mean using the upsert function of the feature_switches_controller which is called as a coroutine at the end if capacity is reached. This is why you need clearly defined architecture when it comes to such a complex story.
When creating a team, the creator of the admin receives two emails - for verifying their identity and once verified, an email with the sharable url of the team. How do you intend on handling that? What url is used for verifying the identity? I don't see it defined. Do verification urls lead to a page which has a button which would then make a request to the API to notify it that the user has been verified? A lot of email clients open urls beforehand to check whether they're malicious - this means we might get a lot of false positives if we don't implement a button.
I mentioned to @Aleks1908 that new team members will be registering using the same registration form but with some more additional logic baked in. You should figure out how to filter out the team. Do you pass the unique_id of the team used from the url in the body request? Is it a query parameter or a path parameter?
Additionally, the registration form loaded from the team url should check whether there are any free spots left the team on first load, not after the user has submitted their details.
No new pages should be used at all! All verifications and messages should be either handled as modals or notifications.

^ This took me 1 minute to figure out and a couple more to write. This story needs more work.

I have one additional idea, coming either from the tues' or sofia university's hackathon page. They displayed the registered teams on their website. Maybe we can add this(+ display the number of ppl without a team) so that participants without a team can decide whether it's worth it to register or not.

Regarding when should the registration form be closed, this issue still has to be discussed, but i'd suggest for example:
let's say we have 12 teams cap
11 predefined teams
1 team out of ppl without a team
Another option (the one i think is best for everyone) is not to allow ppl to register without a team but rather display the already registered ones and singletons can contact them on their own and ask to join, this way we can utilize the url functionality even better 🫡
Of course, in case someone decides to register alone as a team in case he finds more ppl and wants to save a spot, we can add smth like "if you don't have 4 ppl in your team 1 week prior to the hackathon, your team will be disqualified and your spot will be empty lol"

I have one additional idea, coming either from the tues' or sofia university's hackathon page. They displayed the registered teams on their website. Maybe we can add this(+ display the number of ppl without a team) so that participants without a team can decide whether it's worth it to register or not.

Can you provide links for safekeeping? I do like the idea of having the teams displayed and the total amount of people. It will look even cooler if we somehow gamify it and have them show as if it's a game dashboard.

Regarding when should the registration form be closed, this issue still has to be discussed, but i'd suggest for example:
let's say we have 12 teams cap
11 predefined teams
1 team out of ppl without a team
Another option (the one i think is best for everyone) is not to allow ppl to register without a team but rather display the already registered ones and singletons can contact them on their own and ask to join, this way we can utilize the url functionality even better 🫡
Of course, in case someone decides to register alone as a team in case he finds more ppl and wants to save a spot, we can add smth like "if you don't have 4 ppl in your team 1 week prior to the hackathon, your team will be disqualified and your spot will be empty lol"

What do you think about my suggestion from the comment - automatically allocating teams for participants without teams?
Have a new team form up for each 6 non-team participants.
For example:
There are 6 regular teams.
6 non-team participants have signed up. These 6 members fill up the capacity but do not exceed it. Therefore one team for non-team participants is enough. Total teams - 7
A new non-team participant tries to sign up. Now we have 7 non-team participants. A new team is being created because the count with the new participant will exceed 6 (max cap of team members). Therefore this new participant is being allocated to the new team. Total teams - 8
We can further extend this by splitting the non-team participants equally among the teams. Have the two non-team teams as 4 and 3 participants instead of 6 and 1. Nevertheless, I think this will increase the complexity quite a bit and we can do this manually on the day of the hackathon.

I have one additional idea, coming either from the tues' or sofia university's hackathon page. They displayed the registered teams on their website. Maybe we can add this(+ display the number of ppl without a team) so that participants without a team can decide whether it's worth it to register or not.

Can you provide links for safekeeping? I do like the idea of having the teams displayed and the total amount of people. It will look even cooler if we somehow gamify it and have them show as if it's a game dashboard.

Ahah i like the gamification idea.
Here's the link:
https://hacktues.bg/teams

Regarding when should the registration form be closed, this issue still has to be discussed, but i'd suggest for example:
let's say we have 12 teams cap
11 predefined teams
1 team out of ppl without a team
Another option (the one i think is best for everyone) is not to allow ppl to register without a team but rather display the already registered ones and singletons can contact them on their own and ask to join, this way we can utilize the url functionality even better 🫡
Of course, in case someone decides to register alone as a team in case he finds more ppl and wants to save a spot, we can add smth like "if you don't have 4 ppl in your team 1 week prior to the hackathon, your team will be disqualified and your spot will be empty lol"

Now, I better grasp what you mean by saying "better utilize the url functionality". That's a cool idea I would like to explore but this will require the implementation of an approval functionality for team admins to accept members within the teams. Additionally, this way we depend too much on having people read our guide on how to sign up when we can have most of the stuff abstracted and just do it behind the scenes. We're not allowed to share any public info about the teams other than name and capacity (at least that's what I assume).

Regarding when should the registration form be closed, this issue still has to be discussed, but i'd suggest for example:
let's say we have 12 teams cap
11 predefined teams
1 team out of ppl without a team
Another option (the one i think is best for everyone) is not to allow ppl to register without a team but rather display the already registered ones and singletons can contact them on their own and ask to join, this way we can utilize the url functionality even better 🫡
Of course, in case someone decides to register alone as a team in case he finds more ppl and wants to save a spot, we can add smth like "if you don't have 4 ppl in your team 1 week prior to the hackathon, your team will be disqualified and your spot will be empty lol"

What do you think about my suggestion from the comment - automatically allocating teams for participants without teams?
Have a new team form up for each 6 non-team participants.
For example:
There are 6 regular teams.
6 non-team participants have signed up. These 6 members fill up the capacity but do not exceed it. Therefore one team for non-team participants is enough. Total teams - 7
A new non-team participant tries to sign up. Now we have 7 non-team participants. A new team is being created because the count with the new participant will exceed 6 (max cap of team members). Therefore this new participant is being allocated to the new team. Total teams - 8
We can further extend this by splitting the non-team participants equally among the teams. Have the two non-team teams as 4 and 3 participants instead of 6 and 1. Nevertheless, I think this will increase the complexity quite a bit and we can do this manually on the day of the hackathon.

I think this might create weirdly balanced teams, e.g. all designers, all coders, etc. (Iren's sister's team from last year is a good example of that) If we display the teams and ppl without team can contact it'll be more convenient. We can also incorporate the tech stack feature that tues has for the teams.

Alas, that's just a suggestion, don't take it at face value

Regarding when should the registration form be closed, this issue still has to be discussed, but i'd suggest for example:
let's say we have 12 teams cap
11 predefined teams
1 team out of ppl without a team
Another option (the one i think is best for everyone) is not to allow ppl to register without a team but rather display the already registered ones and singletons can contact them on their own and ask to join, this way we can utilize the url functionality even better 🫡
Of course, in case someone decides to register alone as a team in case he finds more ppl and wants to save a spot, we can add smth like "if you don't have 4 ppl in your team 1 week prior to the hackathon, your team will be disqualified and your spot will be empty lol"

What do you think about my suggestion from the comment - automatically allocating teams for participants without teams?
Have a new team form up for each 6 non-team participants.
For example:
There are 6 regular teams.
6 non-team participants have signed up. These 6 members fill up the capacity but do not exceed it. Therefore one team for non-team participants is enough. Total teams - 7
A new non-team participant tries to sign up. Now we have 7 non-team participants. A new team is being created because the count with the new participant will exceed 6 (max cap of team members). Therefore this new participant is being allocated to the new team. Total teams - 8
We can further extend this by splitting the non-team participants equally among the teams. Have the two non-team teams as 4 and 3 participants instead of 6 and 1. Nevertheless, I think this will increase the complexity quite a bit and we can do this manually on the day of the hackathon.

I think this might create weirdly balanced teams, e.g. all designers, all coders, etc. (Iren's sister's team from last year is a good example of that) If we display the teams and ppl without team can contact them it'll be more convenient. We can also incorporate the tech stack feature that tues has for the teams.

Indeed, you're correct.
Unpopular opinion - let's make the hackathon about programming and not about the best presentations and drawings. Having designers sign up to a programming competition (hackathon) is plain dumb if you ask me. If we want to focus on having it more business oriented, let's rename it to something else.
Back on the topic, having the TUES logic implemented will be too much work and this team doesn't iterate fast enough to have it all done by March and be sure it's all working as expected.

Regarding when should the registration form be closed, this issue still has to be discussed, but i'd suggest for example:
let's say we have 12 teams cap
11 predefined teams
1 team out of ppl without a team
Another option (the one i think is best for everyone) is not to allow ppl to register without a team but rather display the already registered ones and singletons can contact them on their own and ask to join, this way we can utilize the url functionality even better 🫡
Of course, in case someone decides to register alone as a team in case he finds more ppl and wants to save a spot, we can add smth like "if you don't have 4 ppl in your team 1 week prior to the hackathon, your team will be disqualified and your spot will be empty lol"

Now, I better grasp what you mean by saying "better utilize the url functionality". That's a cool idea I would like to explore but this will require the implementation of an approval functionality for team admins to accept members within the teams. Additionally, this way we depend too much on having people read our guide on how to sign up when we can have most of the stuff abstracted and just do it behind the scenes. We're not allowed to share any public info about the teams other than name and capacity (at least that's what I assume).

oof you got a point, i gueess, they can press on the team and post a request to join, ofc if the capacity allows for it. We can also ask the admin whether they r open to outsiders joining them and ask whether they want their email to be displayed or smth, thats a workaround. This way the admin can just send the url to the new participant or smth

What do you think about my suggestion from the comment - automatically allocating teams for participants without teams?
Have a new team form up for each 6 non-team participants.
For example:
There are 6 regular teams.
6 non-team participants have signed up. These 6 members fill up the capacity but do not exceed it. Therefore one team for non-team participants is enough. Total teams - 7
A new non-team participant tries to sign up. Now we have 7 non-team participants. A new team is being created because the count with the new participant will exceed 6 (max cap of team members). Therefore this new participant is being allocated to the new team. Total teams - 8
We can further extend this by splitting the non-team participants equally among the teams. Have the two non-team teams as 4 and 3 participants instead of 6 and 1. Nevertheless, I think this will increase the complexity quite a bit and we can do this manually on the day of the hackathon.

I think this might create weirdly balanced teams, e.g. all designers, all coders, etc. (Iren's sister's team from last year is a good example of that) If we display the teams and ppl without team can contact them it'll be more convenient. We can also incorporate the tech stack feature that tues has for the teams.

Indeed, you're correct.
Unpopular opinion - let's make the hackathon about programming and not about the best presentations and drawings. Having designers sign up to a programming competition (hackathon) is plain dumb if you ask me. If we want to focus on having it more business oriented, let's rename it to something else.
Back on the topic, having the TUES logic implemented will be too much work and this team doesn't iterate fast enough to have it all done by March and be sure it's all working as expected.

The tues could be left in case we have time, it's not mandatory

When we were discussing the logic with @Aleks1908 we also thought about the situation where someone could leak that link and random people to join the particular team. This could be prevented by implementing logic where for each new registered team member the admin of the team receives an email giving him the option to accept or reject that person. In my opinion, this will not be easy to implement, and we decided to leave it if there is time left.
My other consideration is about the people without teams. The idea of @nikolayninov is interesting, but I don't believe that someone would accept a random person on their team. Also, the hassle of having to write to someone begging them to join their team is too much friction for the person who registers. I like the idea of, for example, having a maximum team capacity of 15 and leaving one or two spots for teams created out of the members without a team. For example, let's say that we have 12 people without a team. We could randomly or manually pick 6 people and put them in one team and the other 6 in the other. The problem here is that we would have to keep at least one spot for a team created out of random people. This means that if our max capacity of teams is 15 we have to close the registration for teams at 14, in order to have a spot for the team formed by people, who registered alone. But whether it should be one or two spots is unpredictable, because we don't know how many people without a team would register. Also the decision of the maximum number of teams and people we would accept, and whether we could exceed that number is not a decision I should take.

When we were discussing the logic with @Aleks1908 and thought about the situation where someone could leak the invite link and random people might join the particular team. This could be prevented by implementing the logic mentioned above, where for each new registered team member the admin of the team receives an email giving them the option to accept or reject that person. In my opinion, this will not be easy to implement, and we decided to leave it if there is time left.
My other consideration is about the people without teams. The idea of @nikolayninov is interesting, but I don't believe that someone would accept a random person on their team. Also, the hassle of having to write to someone begging them to join their team creates too much friction for the person who registers. I like the idea of, for example, having a maximum team capacity of 15 and leaving one or two spots for teams created out of the members without a team. For example, let's say that we have 12 people without a team. We could randomly or manually pick 6 people and put them in one team and the other 6 in the other. The problem is that we would have to keep at least one spot for a team created by random people. This means that if our max capacity of teams is 15 we have to close the registration for teams at 14, in order to have a spot for the team formed by people, who registered alone. But whether it should be one or two spots is unpredictable, because we don't know how many people without a team would register. Also the decision of the maximum number of teams and people we would accept, and whether we could exceed that number is not a decision I should take.

Okay. Since you're the lead here, I suggest that you reread my suggestion and build upon it. Both ideas are quite similar with the difference that mine will allocate the teams of people entering without a team upon registration. I can think of some other edge cases such as when the cap of teams is reached but the teams formed from non-team participants have free spots left, we should still allow for more non-team participants to sign up. Please, make sure to scribble down a good flowchart for this since a lot of frontend work will depend on that as well.

@Aleks1908 we should finish this by 09/03/2023 (Sunday)

@Aleks1908 we should finish this by 09/03/2023 (Sunday)

I'm willing to help you figure out stuff. Ping me when needed and we can work it out on Discord.

@Aleks1908 @asynchroza I am here is the link  to the excalidraw room. I am attaching a picture as well
 Please leave feedback in the ticket or add changes to the workflow via Excalidraw.

Today me and Ivan went though the workflow again and everything looks to be fine for now. So i will be closing this issue if no one has any improvement ideas.

Today me and Ivan went though the workflow again and everything looks to be fine for now. So i will be closing this issue if no one has any improvement ideas.

Pin the link to the scheme in Discord or messenger


chore: refactor introspection utility for easier maintenance

this should be all we need for introspection queries, especially as they are becoming increasingly dynamic with GraphQL 15
would be nice to allow users to pass settings to getIntrospectionQuery() via props or plugins eventually

@IvanGoncharov is this good for now, or should we expose the getIntrospectionQuery() options to the user via props somehow?

@IvanGoncharov thank you!


feat(api): reranking backend integrated in with rag

Description

Adds reranking to RAG pipeline
Adds RAG configuration endpoint when in dev mode
Adds additional logging
Refactors the pytest's test_routes api tests
Alters default RAG values into two steps, retrieval and ranking. With the retrieval results being set to 100 after ranking the results are filtered down to the user specified k value. If reranking is not enabled, the user specified k results is returned from the retrieval step.

FlashRank Evals

Rerank (ms-marco-TinyBERT-L-2-v2) + 100 top-k retrieval

Final Results:
INFO:root:Average Needle in a Haystack (NIAH) Retrieval: 1.0
INFO:root:Average Needle in a Haystack (NIAH) Response: 1.0
INFO:root:Average Correctness (GEval): 0.812
INFO:root:Average Answer Relevancy: 0.9590000000000001
INFO:root:Average Annotation Relevancy: 0.92
INFO:root:MMLU: 0.697979797979798
INFO:root:HumanEval: 0.96
INFO:root:Eval Execution Runtime (seconds): 3122.107043981552

Rerank (ms-marco-TinyBERT-L-2-v2) + 10 top-k retrieval

Final Results:
INFO:root:Average Needle in a Haystack (NIAH) Retrieval: 1.0
INFO:root:Average Needle in a Haystack (NIAH) Response: 1.0
INFO:root:Average Correctness (GEval): 0.8140000000000001
INFO:root:Average Answer Relevancy: 0.9470000000000001
INFO:root:Average Annotation Relevancy: 0.92
INFO:root:MMLU: 0.697979797979798
INFO:root:HumanEval: 0.96
INFO:root:Eval Execution Runtime (seconds): 3119.72075009346

No Rerank

Final Results:
INFO:root:Average Needle in a Haystack (NIAH) Retrieval: 1.0
INFO:root:Average Needle in a Haystack (NIAH) Response: 1.0
INFO:root:Average Correctness (GEval): 0.8299999999999998
INFO:root:Average Answer Relevancy: 0.9555128205128205
INFO:root:Average Annotation Relevancy: 0.92
INFO:root:MMLU: 0.697979797979798
INFO:root:HumanEval: 0.96
INFO:root:Eval Execution Runtime (seconds): 3112.184923171997

Baseline - No Rerank

Final Results:
INFO:root:Average Needle in a Haystack (NIAH) Retrieval: 1.0
INFO:root:Average Needle in a Haystack (NIAH) Response: 1.0
INFO:root:Average Correctness (GEval): 0.81
INFO:root:Average Answer Relevancy: 0.9616666666666666
INFO:root:Average Annotation Relevancy: 0.92
INFO:root:MMLU: 0.695959595959596
INFO:root:HumanEval: 0.96
INFO:root:Eval Execution Runtime (seconds): 1961.5159051418304

Checklist before merging

[x] Tests, documentation, ADR added or updated as needed
[x] Followed the Contributor Guide Steps

Yeah the way the eval results are atm makes things a bit hard to interpret. But performance I think isn't as different as it seems. The baseline was from @jalling97's machine vs mine. The actual time difference between the version without reranking and with reranking is between 7 and 10 seconds over a 51 minute test. Would be better if we got an average per request but I suppose that could be evaluated separately.

The Annotation Relevancy metric is what I was initially concerned with when I saw the results. I would have expected it to change (in either direction) after reranking was implemented. However, from what I can tell, the top_k chunks (with or without reranking) correspond to the same documents either way, resulting in no practical difference in annotations. Since the Annotation Relevancy metric isn't concerned with the order of the documents (just that the ones you expect are in the list of annotations),  the results are pretty much unchanged.
This is good to note, as the next stage of evals will incorporate the chunk data thanks to #870, so we can better evaluate the rank of the chunks themselves.
Overall I think this is a net gain and we'll have to see with the next wave of evals what practical difference the reranker has.


[Bug] [FE] some mistakes in the datasource

Search before asking

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

What happened

2 problems:

the datasource is Hive, but the 'DataSource' name shows 'MYSQL'.
the change button is Chinese

What you expected to happen
create a hive datasource and check its detail information, the datasource should be 'HIVE'
How to reproduce
create a hive datasource and check its detail information
Anything else
No response
Version
dev
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

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

fixed


Fix Dockerfile package installation order and redundancy

Fix Dockerfile package installation order and redundancy
Description
Fixed package installation order in Dockerfiles to improve readability and removed duplicate packages:

Reordered package installation in main Dockerfile: cmake, curl, protobuf-compiler
Removed duplicate lldb package in Ubuntu 20.04 build
Fixed line endings formatting

Changes

Dockerfile: Reordered package installation sequence
scripts/release/Dockerfile.ubuntu20: Removed duplicate lldb package

No functional changes were made, only code organization improvements.

@emirsoyturk why you close ?


Can you share your implementation of MRAC for this work?

Hello,
Very interesting paper and I would like to check out these on the Panda robot I work with. Could you please share the barebone cpp for MRAC implementation as well?

Hi,
I think what you are looking for is already in the repository, specifically here .

Hi, thank you for the quick response. I was wondering if you had the one like this without ROS. Although, shouldn't be difficult to modify this to MRAC based on the code you pointed to.

Indeed, I suggest then to just take the two functions related to MRAC at the end of the file and copy paste them into your code or make the examples as for the AIC.


Accessing the request body in Then

Is it possible to access the passed-in request body in Then? I'd like for the mock server to return a response based on the input. e.g:
let mock = server.mock(|when, then| {
    when.method(POST)
    // below has extra fields such as 'client_order_id' which I don't want to validate
        .json_body_partial(r#"{
            "price":"23222.5",
            "size":"0.23",
        }"#);
    then.status(200).json_body(serde_json::json!({
        "data": {
             /* would be useful if this could come from the request */
            "client_order_id": "would_be_nice_to_access_this"
        }
    }));
});

Is this already possible? If not I'd be happy to attempt an implementation if it's not too difficult.

I made this PR which allows for the request to be accessed when writing a .then response.
It's for my own use so I haven't added comments or tests, but if people find it useful I'm happy to edit it: https://github.com/alexliesenfeld/httpmock/pull/104

Thanks for reaching out! It is indeed an interesting idea.
There is something similar for the request already (see here). It allows to dynamically evaluate if a request matches certain criteria at runtime. A dynamic body generator would probably look very similar.
Note though that httpmock also allows you to run a standalone mock server to which tests can connect to. Since it's not possible to transfer functions over the network, such dynamically defined response body generator would not work in standalone mode (hence [maches]((https://github.com/alexliesenfeld/httpmock/blob/60e68ed338230f4efe7f35f3378e2fca945a26a2/src/api/spec.rs#L782-L789) is disabled for standalone mode).

@alexliesenfeld that makes sense. I'm happy to wait as I've managed to get it running for my own use case.
I noticed that MockMatcherFunction is defined as an fn and not an Fn, was this by design? In my PR I changed it to be Fn so that I .matches() could accept closures which did other things like send the request data elsewhere.


Flow error on new generated react-native project

Current Behavior
Flow error:
node_modules/haul-cli/src/server/middleware/systraceMiddleware.js:22
 22:   // $FlowFixMe: `req.rawBody` is added by rawBodyMiddleware
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Error suppressing comment. Unused suppression

Expected Behavior
No flow errors due haul.
Haul Configuration (webpack.haul.js)
Default one with 0.5.0.
Your Environment
Just create new react-native project with react-native init TestProject which has .flowconfig inside with version 0.40.0 and then install and init haul.

software
version

Haul
0.5.0

react-native
0.43.4

node
6.3.1

npm or yarn
3.10.3 & 0.22.0

Supported version by haul is 0.42.0 as in flowconfig. I guess that's the reason error occurs.


convert ECMAScript Observable to RXJS Observable

Is it possible to convert the observable to an rxjs observable?
This would be the desired behavior from an urql subscription:
const sub =  pipe(
  this.client.subscription(q),
  toObservable
);

sub.subscribe((r: any) {
  console.log(r);
});

This seems like a lot more complicated to write every time:
.subscribe({
  next(r: any) {
    console.log(r);
  },
  error(e: any) {
    console.log('Error: ', e);
  },
  complete() { }
});

Also, in Angular, if I use the observable in the template, I get this error:
ERROR TypeError: Cannot read property 'bind' of undefined

So, I hacked it using this, although it seems like there should be an easier way without this hack:
test: BehaviorSubject<any> = new BehaviorSubject<any>([]);;
sub.subscribe({
      next(r: any) {
        _this.test.next(r);
        console.log(r);
      },
      error(e: any) { },
      complete() { }
    });

Then I use test in my template...
Is this the only way?

I'm not sure if this has changed but you can convert any spec-compliant Observable to an RxJS Observable using from.
The toObservable operator outputs a spec-compliant ECMAScript Observable so converting it should be as simple as for any other spec-compliant observable.

Hmm, I am getting this:
import { pipe, toObservable } from 'wonka';
import { from } from 'rxjs';
...
from(
  pipe(
    this.client.subscription(q),
    toObservable
  )
);

ERROR TypeError: You provided an invalid object where a stream was expected.
You can provide an Observable, Promise, Array, or Iterable.

Got it:  zen-observable, which is already needed for urql to work in Angular:
https://stackoverflow.com/questions/66309283/convert-ecmascript-observable-to-rxjs-observable/66380963#66380963


Improve limitation docs

How to categorize this PR?

/kind enhancement
What this PR does / why we need it:
This PR improves the limitation docs:

Drops the limitation that deleting the Service will prevent containerd from pull from the cache. This is kind of covered in the next limitation that gives the example of what will happen if the registry cache Service gets deleted and then recreated by GRM.
Improves the first limitation by making it clear that it does not affect only Shoot system components by any images that are pulled before the registry cache is running and reachable from the Node.

Which issue(s) this PR fixes:
N/A
Special notes for your reviewer:
N/A
Release note:

NONE

/retest

/approve


🎉 3.0.4

ℹ About this release

Version: 3.0.4
Type: patch
Last Release: 3.0.3 (4/15/2024, 8:17:48 PM) [?]
Commits to merge: 28 [?]

📦 Dependencies

Update @octokit/rest from ^20.1.0 to ^21.0.1
Update simple-git from ^3.24.0 to ^3.25.0

📦 Development Dependencies

Added @eslint/js ^9.8.0
Added @types/eslint__js ^8.42.3
Added tsup ^8.1.0
Added typedoc ^0.26.3
Added typescript-eslint ^8.0.0-alpha.62
Update @types/mocha from ^10.0.6 to ^10.0.7
Update @types/node from ^20.12.2 to ^22.1.0
Update c8 from ^9.1.0 to ^10.1.2
Update eslint from ^8.57.0 to ^9.8.0
Update eslint-plugin-jsonc from ^2.14.0 to ^2.16.0
Update mocha from ^10.4.0 to ^10.6.0
Update typescript from ^5.4.3 to ^5.5.4
Removed @typescript-eslint/eslint-plugin
Removed @typescript-eslint/parser

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


Consolidated doc updates and fixes

Description of change
Consolidating doc updates propsed in PR's #194 , #195, #196, and #197 with develop updates included.
Type of change

Documentation Fix

Change checklist
Add an x to the boxes that are relevant to your changes, and delete any items that are not.

[] I have followed the contribution guidelines for this project
[] I have performed a self-review of my own code
[] I have commented my code, particularly in hard-to-understand areas
[] I have made corresponding changes to the documentation
[] I have added tests that prove my fix is effective or that my feature works
[] New and existing unit tests pass locally with my changes

LGTM, do run locally and check if it works. WSL had some issues with the npm run setup and npm run start


fix #1972

Updating requirements to move Ansible to 2.3 or greater. Base for refactor

Going to close and revisit later. The way our Ansible is architected it introduces breaking changes.


What can we do when an API consume to much memory?

Describe the bug
We run some ASP .Net Core REST API with Docker and Docker-compose on Linux Debian. Some time one of this API start to increase his use of memory, because the API need to run a heavy process. But when the process is done, the memory never decreases.
To Reproduce
So, I’ve started a new API (ASP Net Core 2.2) from scratch to understand what’s wrong https://github.com/waldo2188/PleaseDontCrash.
This API use App Metrics, Prometheus and Grafana.
The API is simple:

http://localhost:5000/api/values : is an entry point made to increase memory usage.
http://localhost:3000 : is for Grafana, you can use the file Please_Don_t_Crash-grafana.json as dashboard.

The tests describe below have been made on Windows 10 with Docker for Windows on a Linux base.
First, I start the API and the Physical Memory Usage is about 90Mb.
After 20min with no action on the API the Physical Memory Usage is about 162Mb.
I run the URL localhost:5000/api/values 10 time to increase memory, and when the HTTP request in done, the Physical Memory Usage is about 2400Mb and thee Garbage Collector is about 2300Mb.
After 20 min with no action on the API the Physical Memory Usage is about 2456Mb and thee Garbage Collector is about 2398Mb.
After 40 min with no action on the API the Physical Memory Usage is about 2492Mb and thee Garbage Collector is about 2445Mb.
After 60 min with no action on the API the Physical Memory Usage is about 2566Mb and thee Garbage Collector is about 2543Mb.
What can we do to reduce memory consumption when the API is clearly not being used?
Expected behaviour
We expect that the Garbage Collector reduce de memory consumption.
Screenshots
Grafana_Please_Don_t_Crash.png

This may help https://blogs.msdn.microsoft.com/maoni/2018/10/02/middle-ground-between-server-and-workstation-gc/

Thank you for the links. They help to understand what is happening, but not to solve it.

We are having this problem on Aspnet Core 1. We were able to catch the moment and took some memory dumps when API starts to hog server RAM by 100MB/s.
But memory dump analyses does not show the real cause of problem.
You can see the our methodology to approach to find root cause here:  #6167


Will not use persistent Android

I have an Ionic v1 app that uses ionicSettings (1.0.4). I defined the init in the controller and I have installed cordova-plugin-app-preferences. However, on Android my application is still using Local Storage. I have a test in .run checking if window.plugins.appPreferences is defined and it is. How do I make storage persistent?
Android 4.4.4
Ionic 1.3.2

This can be closed, I was having an issue with conflicting libs.


leverage out null pattern in IsValidDeploymentItem

to prevent incorrect use of the out variable

@SimonCropp this test https://github.com/microsoft/testfx/blob/87aed30d19af055e443a2a86c89c554e03501c4d/test/UnitTests/MSTestAdapter.PlatformServices.UnitTests/Utilities/ns13DeploymentItemUtilityTests.cs#L392 is failing as it expects the string to be empty and not null.

@SimonCropp would you mind fixing the tests?


Application: "view our guidelines" link should go to forum post

Application, projects and impact step: "view our guidelines" link should go to forum post. @JSeiferth do we have a post going up? Like we did in previous rounds: https://gov.optimism.io/t/retro-funding-4-onchain-builder-application-guidelines/8165
If not, we should remove the link and last sentence. The subtext can simply read:

This part of your application helps badgeholders understand how your work has benefitted the Optimism Collective.

Screenshot:

@JSeiferth can you post the link here?

removed the link.


GraphQL @auth transformer not working

Hi,
I added API in my project with command amplify add api, then I choose "GraphQL" as service and "Amazon Cognito User Pool" as authorization type. When CLI ask me what type of application I'm designed I select the "blog post" template for model relationship, it create the GraphQL schema, resolvers, DynamoDB tables and so on.
Then I decide to add auth role in order to allow user to get/create/update only their objects, so I add the @auth(rules: [{allow: owner}]) transformer to the schema like this:
type Widget
  @model
  @auth(rules: [{allow: owner}])
{
  id: ID!
  name: String!
  hashtags: [Hashtag] @connection(name: "WidgetHashtags")
}

type Hashtag
  @model
  @auth(rules: [{allow: owner}])
{
  id: ID!
  hashtag: String!
  widget: Widget @connection(name: "WidgetHashtags")
  images: [Image] @connection(name: "HashtagImages")
}

type Image
  @model
  @auth(rules: [{allow: owner}])
{
  id: ID!
  src: String
  hashtag: Hashtag @connection(name: "HashtagImages")
}

and I run amplify push command but at the end of update nothing happens.. resolvers are not updated, tables are not update, "owner" field is not created and the auth logic not working (every user can still update/list/delete every object).
I did something wrong? I need to run a command to rebuild the GraphQL resolvers?

I found the command amplify api gql-compile, when I edit/create models it generate the resolvers but auth transformer still not working, not even for the new models..
About system:
amplify: 0.1.18
node: v8.10.0
npm: 3.5.2

Make sure your AppSync API is pointing to the correct Cognito User Pool by checking under AppSync settings in the AWS Console.

Hi @chrisco255,

Make sure your AppSync API is pointing to the correct Cognito User Pool by checking under AppSync settings in the AWS Console.
yep, I check it and is correct, I'm testing the API directly from AppSync console using query editor.

I think the problem reside in the resolvers generator, for example the createImage request
## START: Prepare DynamoDB PutItem Request. **
$util.qr($context.args.input.put("createdAt", $util.time.nowISO8601()))
$util.qr($context.args.input.put("updatedAt", $util.time.nowISO8601()))
$util.qr($context.args.input.put("__typename", "Image"))
{
  "version": "2017-02-28",
  "operation": "PutItem",
  "key": {
      "id": {
          "S": "$util.autoId()"
    }
  },
  "attributeValues": $util.dynamodb.toMapValuesJson($context.args.input),
  "condition": {
      "expression": "attribute_not_exists(#id)",
      "expressionNames": {
          "#id": "id"
    }
  }
}
## END: Prepare DynamoDB PutItem Request. **

does not store the "owner" field, inside DynamoDB the situation is the same, every object stored does not have "owner".. so I think is impossible to detect it.

This bug has been fixed. You can fix this in current builds by explicitly passing mutations:[create,update,delete] and queries:[get,list] to @auth. This was fixed in https://github.com/aws-amplify/amplify-cli/pull/153

We just published to npm with a fix for this. Please use the version -> 0.1.19.
Closing the issue, feel free to re-open if the issue persists.

Awesome! I will try ASAP both solutions (specifying mutation and update the CLI) just to provide you an accurate feedback.
ps: congratulations for the excellent work :wink:

Hello @blazestudios23 did you ever get this working? I am running into the same problem. Thanks!

No I switched to Prisma.


Use same builder params for testing urls

This sets the same options on the CronetEngine.Builder for testing proxies as we use in the initializeCronetEngine call, specifically I added:
.enableBrotli(true)
.enableHttp2(true)
.enableQuic(true)

🚢


Web Components support in HTML files

Related:

https://github.com/Microsoft/vscode/issues/2784
https://github.com/octref/vuetypes

Problem
WebComponent offers a JavaScript API to define HTML tags / attributes. We want people to get completion, diagnostics and other language features that's already available to the HTML server.
Approach
We plan to:

Define a JSON schema for tag/attribute definition JSON file (like dts for TS projects)
Allow user to specify a list of such tag/attribute JSON files as a setting

However, there is currently no way to auto-generate such a JSON file from user-authored JS files. In the short term, these files are most likely to be hand-written. In the long term, we hope we can standardize such a format and find a way to auto-generate these JSON files with the WebComponents community.
Supported Features
Working Out of the box

DocumentHighlight
DocumentSymbol
Folding

Plan to Support
What we'll ship for November iteration:

[x] Completion: HTML tags.
[x] 🏃 Completion: HTML attributes. Attribute itself yes, attribute description 👉  #66230
[x] Hover: Hovering over HTML tags / attributes should show descriptions.
- [ ] Diagnostics:
- Required attributes not included
- Attribute value is not one of attribute's enum value
- [ ] TextMate Grammar: Color web component tags/attributes differently

Hard to Support
We do want these features, but there is no clear way to implement these features.

Jump to definition: Jumping to definition on <my-tag> should go to the JS file that defines such a class.
Find References / Rename: Requires project understanding, but our HTML support is single file.

No plan to Support

Signature Help: It does not make sense when Completion offers snippets.
QuickFix: No sensible quick fix that we can offer.

What we have now:

Here is how it works:

You specify html.experimental.custom.tags and html.experimental.custom.attributes
VS Code loads those tag/attribute definitions and offer completion, hover and other common HTML features

I'll open up issues in WebComponent related repos to get more feedback.

The font looks awesome!! Could you please tell me the name of this? Thx!

Really appreciate this feature.  I upgraded to version 1.20, and I had good luck with my first two VSCode projects.  However, I've tried on a number of other projects, and am not having luck.  The intellisense for web-components.json isn't picking up the schema file, and defining -properties in web-coponents.json seems to have provide no help when editing .html files (contained in demo folder).
Example repo:  https://github.com/bahrus/xtal-siema
Hope I'm (not) missing something simple.

It is, I was wrong.  It seems until you add the attributes array, tooltip for the tag name might not happen.  Not a big issue, and I could be wrong.

This is a great feature, thanks for working on it!
As I test it out, the elements I've defined show up only when I have a folder open in VS Code. If I go to New Window, Open File..., choose an HTML file, then I don't see completion for the elements I've defined in my settings.
I'd expect it to work on loose HTML files in addition to working in the context of an open folder.

@Blackbaud-TommyVernieri What's your use cases?
The settings are local to each workspace. We also plan to allow extensions to add additional tags/attributes (https://github.com/Microsoft/vscode/issues/64022).

Fair question. Honestly I was just testing it out and it wasn't obvious why it wasn't working. I had added the settings to my User Settings so it expected it to work for any HTML file. I ended up opening a workspace and it worked there.
For a more realistic use case: I sometimes author loose HTML files and then copy-paste that content into a web-based editor. I can certainly workaround that limitation by first opening folder or workspace; and I expect that my primary use case will be editing HTML files withing the context of a workspace when working in a cloned repo. So feel free to disregard this request if getting completion working on loose files is not a priority.
Thanks for linking to #64022, that's exactly what I'd like to be able to do next. That would let me distribute a common tags definition among coworkers. I'll keep an eye on how that one progresses. Thanks!

Take a look at the new release notes for the custom data support: https://code.visualstudio.com/updates/v1_31#_html-and-css-custom-data-support

Many thanks, it's exactly what we are looking for.

The company I work for have for some time been creating a UI library with a broad collection of web components to be used across our company's applications.
We have made our own JSON metadata format for our components with our own JSON schema, and today we use these JSON files as models for our UI library documentation application. Devs use this application as a lookup reference when composing application features with our components.
But since the format was created, we had an intent to use these JSON files to provide intellisense/auto-completion to the VSCode HTML language service some time in the future.
So when the VSCode "Web Components support in HTML files" feature was announced, the time seemed just about right to get started looking in to this:-)
I have tested the feature in VSCode 1.31.0, and I have compared the proposed VSCode JSON format to the one we created. I am quite happy with the feature, but there's still a few limitations to the feature and to the JSON format that I hope you can possibly address.

A tag definition in the "tags" section of the current JSON format allow you to specify only one type of child nodes for an element, namely attribute nodes.

In the JSON format created in my company, an element/tag does not only express what attributes it supports, but it also can specify supported child elementNodes and/or textNodes. This way we can express whether a component supports child elements and/or text nodes or not, and we may also express constraints to what child elements are supported by the given element/tag.
Would it be possible to extend your current JSON format so that it can express whether text nodes and/or child elements are supported, and ideally also to express constraints to what child elements are supported, and then feed this info to the HTML language service?
In addition I think it would be very nice if it was possible to somehow give a web component's custom attribute some visual preference (highlight/bold, sort first etc). over all the global HTML element attributes. Today the custom attributes for a component is a bit hard to find in the list of attributes as they disappear among all the others....

child elements

We don't do any diagnostic error on HTML yet. I assume you want VS Code to show warning on using <child> not under <parent>? I don't think if we'll do that.

custom attribute some visual preference

@aeschli What do you think about showing a star before custom element's labels?

@octref So if I understood you correctly, VSCode auto-completion does not filter elements based on the parent element context. (Example: between start and end element of a "select" element, VSCode auto-complete suggests any html element, not only "option" elements).
When it comes to the "visual preference" for attributes, I've had a look at the SVG sample on https://github.com/octref/svg-data/blob/master/data/svg-html-contribution.json since my previous comment.
I noticed the usage of "attributeCategories" in this sample, which looked to me like a way to filter global attribute categories (inherited from base HTMLElement) to be included in the auto-completion. I could not find "attributeCategories" defined in the JSON schema so I am not really sure what it is used for here, but if i was meant with the intent I think, this would be a nice way to hide some irrelevant attributes.
I also like the idea of showing a * before custom element's labels if this also means they get sorted on top!

So if I understood you correctly, VSCode auto-completion does not filter elements based on the parent element context.

That's correct, we don't have any logic in HTML completion (it returns the whole list and is filtered down by VS Code's Completion Widget). The problem is the internet if full of invalid HTML, so showing any error or preventing certain completions might backfire.
I've created #68548 to track the * proposal for ranking custom tags/attributes.


react router  basic example work fine but react-router-redux got error:Cannot read property 'pathname' of undefined

I use aps.net mvc ,so when I use react,react-router,redux,  react-router-redux.
I only use  unpkg to refre js files and use reactjs.net trans jsx to normal javascript file

inner html head tag, I refre javascripts file list below:

<EMAIL_ADDRESS>

<EMAIL_ADDRESS>

react@16

react-dom@16

<EMAIL_ADDRESS>

<EMAIL_ADDRESS>

<EMAIL_ADDRESS>

<EMAIL_ADDRESS>

<EMAIL_ADDRESS>

First, I create a  test page:basic example the same as  react-router/web/example/basic ,The page work find.

Next,I create one  test page: more complex sample use package react-router-redux.
the code  like   this page.

But got error
Cannot read property 'pathname' of undefined

and help would be appreciated~

This is a bug tracker, not a support system. For usage questions, please use Stack Overflow or Reactiflux where there are a lot more people ready to help you out. Thanks!


Dimmer - option to disable 'status requests'

I'm using automated and slider controls to vary the brightness of a shelly dimmer, some of the changes occur at a fast rate to create a smooth lighting transition, but because the shelly node requests a 'status request' after each step in the transition, the poor shelly can't keep pace, and eventually crashes, requiring a shelly reboot.
By having a node config option to disable the 'status requests', the demand on the shelly dimmer is significantly reduced, and then works reliably.
There is then an opportunity to update the google homegraph by pushing a blank payload into the shelly node to get the status when necessary.
I have this working now, and will submit a PR for your consideration in the next few days.
(The default setting is 'status report enabled)

PR submitted for consideration please.

merged into 1.6.0


Default install to --locked when used with --path

Problem
As a rust developer that eats his own dogfood, I often cargo build --release to test some things then cargo install --path . to deploy an application on the local machine. This invariably results in a complete from-scratch rebuild because cargo ignores the lock file. Can I please suggest that when used in combination with --path (perhaps only for local filesystem paths?) that cargo install should default to --locked?

It's far faster
It's the element of least surprise, since a user would expect to install what they just built and something totally different
For potential contributors to git projects where the user clones the directory and then uses cargo install rather than installing from crates.io or from a git path (to cache build dependencies, to prevent downloading a huge git repo each time, etc, etc) this can often result in breakage because git master is working/passing with the lock file but the user/dev gets a completely different output because the lock file is ignored, potentially causing build issues and a maintenance nightmare for project owners.

Proposed Solution
When cargo install --path is used with a local path, it should by default respect the presence of any lock files.
Notes
No response

I'm not going to claim that the current behavior is intuitive. But this is a duplicate of #9436 and #7169, so let's continue the conversation where the history and arguments have been expressed.

Thanks. I didn’t find anything relevant when I searched.


discount: 2.2.7b -> 3.0.0d

Description of changes
Update discount to the latest upstream version. Fixes #281530

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] 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

[ ] 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

[ ] Fits CONTRIBUTING.md.

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

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

1 package marked as broken and skipped:

calligra

3 packages failed to build:

haskellPackages.discount
haskellPackages.discount.doc
pdfpc

16 packages built:

discount
ejson
jsduck
kile
labplot
libsForQt5.discover (plasma5Packages.discover)
libsForQt5.kdepim-addons (plasma5Packages.kdepim-addons)
libsForQt5.kmail (plasma5Packages.kmail)
libsForQt5.kmail.doc (plasma5Packages.kmail.doc)
libsForQt5.kontact (plasma5Packages.kontact)
libsForQt5.okular (plasma5Packages.okular)
minder
mpd-notification
notes-up
peruse
thiefmd

the two build failures are new
Running phase: buildPhase
Preprocessing library for discount-0.1.1..
compiling dist/build/Text/Discount_hsc_make.c failed (exit code 1)
rsp file was: "dist/build/Text/hsc2hscall215-0.rsp"
command was: /nix/store/ac1hb5dc2z4biwgy8mjrhlifffkkrvdq-gcc-wrapper-13.2.0/bin/gcc -c dist/build/Text/Discount_hsc_make.c -o dist/build/Text/Discount_hsc_make.o -fuse-ld=gold -D__GLASGOW_HASKELL__=906 -Dlinux_BUILD_OS=1 -Dx86_64_BUILD_ARCH=1 -Dlinux_HOST_OS=1 -Dx86_64_HOST_ARCH=1 -I/nix/store/0j1iji9dbg07ff82z50k1f1svc09w3cn-discount-3.0.0d/include -I/nix/store/0j1iji9dbg07ff82z50k1f1svc09w3cn-discount-3.0.0d/include -Idist/build/autogen -Idist/build/global-autogen -include dist/build/autogen/cabal_macros.h -I/nix/store/p64ngk1v9d63lnrnyq0cynjd8jdk5jfa-ghc-9.6.4/lib/ghc-9.6.4/lib/../lib/x86_64-linux-ghc-9.6.4/bytestring-<IP_ADDRESS>/include -I/nix/store/p64ngk1v9d63lnrnyq0cynjd8jdk5jfa-ghc-9.6.4/lib/ghc-9.6.4/lib/../lib/x86_64-linux-ghc-9.6.4/base-<IP_ADDRESS>/include -I/nix/store/vyfa79pccinnfgz3ggrlp1m4hjpvrvz5-gmp-with-cxx-6.3.0-dev/include -I/nix/store/p64ngk1v9d63lnrnyq0cynjd8jdk5jfa-ghc-9.6.4/lib/ghc-9.6.4/lib/../lib/x86_64-linux-ghc-9.6.4/ghc-bignum-1.3/include -I/nix/store/s70sxxwsbn30cl4ayn7s0kwssg3mcfrk-elfutils-0.191-dev/include -I/nix/store/g3m9mvzid3x524il0c3g44l23848ar5j-libffi-3.4.6-dev/include -I/nix/store/p64ngk1v9d63lnrnyq0cynjd8jdk5jfa-ghc-9.6.4/lib/ghc-9.6.4/lib/../lib/x86_64-linux-ghc-9.6.4/rts-1.0.2/include -I/nix/store/p64ngk1v9d63lnrnyq0cynjd8jdk5jfa-ghc-9.6.4/include/
error: Discount.hsc: In function ‘main’:
Discount.hsc:80:37: error: ‘MKD_NORELAXED’ undeclared (first use in this function); did you mean ‘MKD_NOHEADER’?
Discount.hsc:22:97: note: in definition of macro ‘hsc_mkopt’
Discount.hsc:80:37: note: each undeclared identifier is reported only once for each function it appears in
Discount.hsc:22:97: note: in definition of macro ‘hsc_mkopt’
Discount.hsc:113:37: error: ‘MKD_NODLIST’ undeclared (first use in this function)
Discount.hsc:22:97: note: in definition of macro ‘hsc_mkopt’


Custom Symbol Table Files

Hi there,
I want to ask that how the user upload the custom symbol table files into the Orochi. Does the Orochi offer a place for the user to upload custom symbol table files just like uploading a custom plugin.
Regards.

Hello, currently is not possible to upload new symbols, it is something we're trying to cover.

@hudishhhs feature available in latest release!


added info about DICOM

as per the steering group discussion 19 January 2023

@robertoostenveld @arokem @ericearl is that reflecting the main point accurately?

Nice and concise. Thanks!

Thanks!


My project can run with release scheme(iOS device not simulator), but when I archived I get Failed, my Disbution cert My distribution certificate has been configured.

Archive logs:
`17 warnings generated.
1 warning generated.
mkdir -p
/Users/thao/Library/Developer/Xcode/DerivedData/Runner-aqeizhxvgmpxwwhiezkvbxsypfrm/Build/Intermediates.noindex/ArchiveIntermediates/Runner/BuildProductsPat
h/Release-iphoneos/Runner.app/Frameworks
Symlinked...
rsync --delete -av --filter P .*.?????? --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "-
PrivateHeaders" --filter "- Modules" "../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/package_info_plus.framework"
"/Users/thao/Library/Developer/Xcode/DerivedData/Runner-aqeizhxvgmpxwwhiezkvbxsypfrm/Build/Intermediates.noindex/ArchiveIntermediates/Runner/InstallationBui
ldProductsLocation/Applications/Runner.app/Frameworks"
building file list ... rsync: link_stat
"/Users/thao/Private/QuantAI/App/mosoexp/ios/../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/package_info_plus.framework" failed: No such
file or directory (2)
done
sent 29 bytes  received 20 bytes  98.00 bytes/sec
total size is 0  speedup is 0.00
rsync error: some files could not be transferred (code 23) at
/AppleInternal/Library/BuildRoots/97f6331a-ba75-11ed-a4bc-863efbbaf80d/Library/Caches/com.apple.xbs/Sources/rsync/rsync/main.c(996) [sender=2.6.9]
Command PhaseScriptExecution failed with a nonzero exit code
note: Building targets in dependency order
note: Run script build phase 'Run Script' will be run during every build because the option to run the script phase "Based on dependency analysis" is
unchecked. (in target 'Runner' from project 'Runner')
note: Run script build phase 'Thin Binary' will be run during every build because the option to run the script phase "Based on dependency analysis" is
unchecked. (in target 'Runner' from project 'Runner')

Result bundle written to path:
	/var/folders/3r/ptdgzwkd4y72zwkryhpz5h7c0000gn/T/flutter_tools.FNz0IT/flutter_ios_build_temp_dirwVCxm7/temporary_xcresult_bundle`

My system Enviroment:
1.MacOS 13.3.(m1Max)
2.Xcode 14.3.
3.Flutter && Dart :
Flutter 3.7.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision c07f788888 (5 weeks ago) • 2023-02-22 17:52:33 -0600
Engine • revision 0f359063c4
Tools • Dart 2.19.2 • DevTools 2.20.1
4.cocoapods:1.11.3

Looks like the same problem I have in #123852
Theres a workaround in my ticket, that can fix the issues, as long as the script is not regenerated.

Looks like the same problem I have in #123852 Theres a workaround in my ticket, that can fix the issues, as long as the script is not regenerated.

I was able to successfully archive after following the steps in issue #123852 and modifying the post script. Do you know if this is an issue with Xcode 14.3 or with Flutter?

I have the same problem.
[✓] Flutter (Channel stable, 3.7.9, on macOS 13.2.1 22D68 darwin-arm64)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3)

https://github.com/flutter/flutter/issues/123852 - this helps.

No errors in Xcode 14.2

not sure if this is related, but after updating to Xcode 14.3, there is one more error when running app in simulator:
File not found: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a

Fix here

I had same error

I got this problem too.

https://github.com/flutter/flutter/issues/123852

Thanks for the report everyone.
Per https://github.com/flutter/flutter/issues/123852#issuecomment-1492855357 comment, since this seems to be related to cocoapods and seem to have been fixed at their end, https://github.com/CocoaPods/CocoaPods/pull/11828, until they release a new version of cocoapod, can everyone facing this issue in this thread try https://github.com/CocoaPods/CocoaPods/pull/11828#issuecomment-1493406248 as mentioned and see if that helps to fix the issue at respective end ?

@darshankawar let's duplicate all of these https://github.com/CocoaPods/CocoaPods/issues/11808 reports to  https://github.com/flutter/flutter/issues/123890.
While this is a CocoaPods issue and has been fixed there, the Flutter team will investigate a workaround.  Please follow along in https://github.com/flutter/flutter/issues/123890 for updates.


Logging of errors is not part of, nor referenced from, this document

[Enter feedback here]
I'm lacking recommendations for where logging should be added for global error handling

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 3f6504cd-a059-c5d4-73fb-61222ef1c6e0
Version Independent ID: 1b42352c-a34f-7703-aa3e-d7e3156bd0bd
Content: Handle errors in ASP.NET Core web APIs
Content Source: aspnetcore/web-api/handle-errors.md
Product: aspnet-core
Technology: aspnetcore-webapi
GitHub Login: @pranavkm
Microsoft Alias: prkrishn

See https://docs.microsoft.com/en-us/aspnet/core/fundamentals/logging/?view=aspnetcore-3.1


Websocket listen for updateSummaryState does not work

Hello,
The example/bittrex.websockets.listen.example.js does not work. in 0.7.6
The data argument in the listen callback is always { unhandled_data: {} }
I rolled back to previous versions, or try the last master and the bug still here.
Maybe something changed in the Bittrex WS protocol ?
Thanks

Please refer to https://github.com/dparlevliet/node.bittrex.api/issues/67

Hi! In my case I can reveive only 2 types of messages: "unhandled_data" and "updateExchangeState".. but "updateSummaryState" is missed.

@Ddzhenyik : Can you try something similar to https://github.com/dparlevliet/node.bittrex.api/issues/67#issuecomment-346277723 ? It worked for me

@aloysius-pgast Thanks a lot! At the moment it works perfectly!


Show an example of embedding Github hosted geoJSON

A la https://github.com/blog/1541-geojson-rendering-improvements

Also made reference to embedded map relative via github info in _config.yml.


Feature Request: Gradient for QR op

The QR op is currently implemented but has no gradient.  It would be very useful if the gradient were defined so that the op could be used in networks and cost functions.

I am not aware of anybody working on this ATM. Care to send us a PR @kstant0725 ?

@kstant0725 Are there any cost functions/models that would benefit from QR decomposition? How else could this be used in training a network?

@rmlarsen and @krishpop The need for a QR decomposition came up my research when we wanted to implement a network layer that acts to orthonormalize the layer below it.  This can be a useful constraint for  training networks to find eigenfunctions.  SVD could also accomplish this, but has a higher computational cost, and imposes an additional rotational constraint.

@kstant0725 Have you found a gradient implement for QR decomposition?

I have checked the implement detail of QR decomposition in tensorflow. The QR decomposition in tensorflow simply calls the QR function in Eigen. But unfortunately there is no gradient implement for QR decomposition in Eigen, which indirectly results in the absence of gradient for QR decomposition in tensorflow. The QR decomposition is based on some basic matrix operations. Thus it's theoretically differentiable. The typical QR decomposition methods like Givens Rotations and Householder reflections include an iterative process, which makes the gradient very complex. There is no automatic gradient mechanism in Eigen. I think that's why there is no gradient implement for QR decomposition in Eigen. Based on the above observation, it's better to implement QR decomposition algorithm using available tensorflow operations and make use of the automatic gradient mechanism in tensorflow to obtain the gradient for QR decomposition. What do you think? @kstant0725 @rmlarsen

So far I have been using the following to orthogonalize:
AA =tf.matmul(tf.transpose(A),A)
L = tf.cholesky(AA)
U = K.transpose(tf.matrix_solve(L,tf.transpose(A)))

This works well most of the time unless the matrix A is ill conditioned or not full rank.  Do you have any suggestions for an alternative which will wont throw an exception when the matrix is not full rank?

I tried a simple implementation of  the gradient expression based on an article and it seemed to match the numerical gradients for the QR decomposition of tall and square random matrices. For fat ones (width>height) the results weren't as good, which might be associated with some assumption in the reference, numerical difficulties (since it requires the computation of a pseudo inverse instead of an exact one) or a mistake in the code.
Any suggestions?
from tensorflow.python.framework import ops
@ops.RegisterGradient("Qr")
def _qr_grad(op, Qb,Rb):
  """Computes and returns the gradient of a QR decomposition

  computes the expression (in Matlab terms)
  Q*(Rb+( Pl.*(R*Rb'-Rb*R'+Q'*Qb-Qb'*Q))pinv(R)')
  where Pl is 1 below the diagonal and 0 elsewhere

  reference in http://dx.doi.org/10.1080/10556788.2011.610454 eq (13)

  Args:
    op: operation
    Qb: gradient in Q
    Rb: gradient in R

  Returns:
    Ab: gradient in Q*R
  """

  Q = op.outputs[0]
  R = op.outputs[1]
  batch_shape = Q.shape[0:-2]
  tr_ord = list(range(len(Q.shape)))
  tr_ord[-1],tr_ord[-2] = tr_ord[-2],tr_ord[-1]

  M1 =    tf.matmul(R,tf.transpose(Rb,tr_ord))\
        - tf.matmul(Rb,tf.transpose(R,tr_ord))\
        + tf.matmul(tf.transpose(Q,tr_ord),Qb)\
        - tf.matmul(tf.transpose(Qb,tr_ord),Q)

  # lower triangular part without the diagonal
  # equivalent to Haddamard product with Pl
  M1_low = tf.matrix_band_part(M1,-1,0)-tf.matrix_band_part(M1,0,0)

  # equivalent to explicitly computing the pseudo inverse
  # ideally we should use the fact that R is triangular
  M2_tr = tf.matrix_solve_ls(r,tf.transpose(M1_low,tr_ord),fast=False)

  M2 = tf.transpose(M2_tr,tr_ord)
  Ab = tf.matmul(Q,Rb+M2)
  return Ab

@D-Roberts Many thanks for you implementation :pray: Works like a charm for me. Any chance that there will also be a gradient implementation for nrows > ncols and full_matrices = True? Currently looking for a TF option to get the basis of the null space of a deep matrix, but the usual options (Q_2 in [Q_1 Q_2] [R_1^T R_2^T]^T in the QR decomposition or U in U Sigma V^T in the SVD decomposition) are not supported.

@davidruegamer Glad to hear this is useful. As much as I enjoy developing tf open source, I don't have current plans for the full_matrices case. However, there are some theoretical considerations (unpublished yet) around it that I am happy to share if you'd like to email me at<EMAIL_ADDRESS>.

Any chance that there will also be a gradient implementation for nrows > ncols and full_matrices = True soon?

I have been working on the theoretical aspects of the tall & full case (see https://arxiv.org/abs/2409.13374), this could be used towards an implementation.


[Frontend][PyTorch] torch2.0 ExportedProgram PoC

Add converter for torch2.0 ExportedProgram

Hi community,
This is a PoC to support ExportedProgram, which is a new format in pytorch 2.0. May we know do you have any plan to support ExportedProgram? Or maybe this PR look fine to be a start point? :D
ExportedProgram is a new format in  pytorch2.0. After exporting to ExportedProgram, a model represented by Module or functional will be flatten and represented by core aten op. One of its benefits is that, we can focus on writing convert function for those core aten ops. It can decrease the effort to support different Module and functional.
We are wondering do you have any plan to support this format as well? if there is no such plan, perhaps this PR can be a simple reference to support ExportedProgram conversion. If it looks good to you, we can submit a formal one based on your comments, and add adding this to converter. It will be really nice to have your thoughts. Thanks!
ref:
https://pytorch.org/executorch/stable/tutorials/export-to-executorch-tutorial.html
https://pytorch.org/docs/stable/export.html#exporting-a-pytorch-model
https://pytorch.org/docs/stable/torch.compiler_ir.html
Best,
Joey

Hi @Hzfengsy and @jikechao,
Pardon that disturbing you. I saw you review Relax related PR. May you kindly give us some suggestions about this PR? Thank you very much!

Thank you for the proposal!
With the introduction of the SLM, we now are able to utilize the TVM nn.module for supporting models created with Torch, which has been working well afaik. Not sure if the SLM works for the cases you are working on. Here is the llama model implemented via SLM (the SLM llama model).
Looks the Torch FX is the underlying representation of the exported graph, I am wondering if it is possible to use/update the existing FX translator (relax/frontend/torch/fx_translator.py) to support the ExportedProgram.

Hi @yongwww
Thanks for your prompt reply!  Here is our thoghts for your reference. :D

Not sure if the SLM works

Pardon that we didn't investivated SLM before. We can let some teamates to read on it later.

I am wondering if it is possible to use/update the existing FX translator

Please allow me to describe more detial about this PR, and what problems we may encounter if we want to intergrate it into FX translator.

Purpose
This PR aims to support pytorch2.0 new format ExportedProgram, which will be executed by executorch.
Like tflite relay frontend, which convert tflite model to relay, where tflite model is supposed to executed by tflite-interpreter.
Problems to intergrate with FX translator

Params is stored in different place in fx.GraphModule and ExportedProgram.
fx.GraphModule: model.named_parameters()
ExportedProgram: exported_program.graph_signature.inputs_to_parameters or exported_program.graph_signature.inputs_to_buffers
Some function has different API, and it will cause ambiguous. e.g., convolution
fx.GraphModule: conv2d, whose inputs are (input, weight, bias, stride, padding, dilation, group)
ExportedProgram: aten.convolution, whose inputs are (input, weight, bias, stride, padding, dilation, transposed, output_padding, group)
The source to retrieve node attribute is different
fx.GraphModule: node.kwargs
ExportedProgram: node.kwargs is empty, we need to get it from node.args

Thank you for reading this long reply. It will be really nice to have your advice!
Best,
Joey

@chunit-quic thanks for the reply! I'm new to the Torch ExportedProgram, I noticed that the export API is still under development (https://github.com/pytorch/executorch/issues). If ExportedProgram is the preferred way to obtain the GraphModule compared to fx.symbolic_trace, we could consider utilizing the export API to get the ExportedProgram and updating the fx translator to work with the GraphModule in the ExportedProgram.
For insights into SLM, please refer to this [documentation](https://discuss.tvm.apache.org/t/design-torchy-productive-model-definition-in-tvm-unity/15404) and explore the code in relax/frontend/nn. If, after further evaluation, SLM aligns with your requirements, we could consider shifting our focus directly to it.
cc: @MasterJH5574 @junrushao @LeshengJin @cyx-6

Hi @yongwww,
Thank you for providing the SLM materials. :)

If ExportedProgram is the preferred way to obtain the GraphModule...

Yes, we think it has more benefit to use ExportedProgram, since every functional/nn.module can be exported to ExportedProgram and their functional op/Module will be decomposed to core aten ops which only has ~200 ops. It means that we only need to write translator for these ~200 ops and then it can support all pytorch model conversion.
However, it is hard to reach the sky in a single bound.  If we update existing fx translator, we need to make a whole change, and it may break existing support models. Hopefully, this new translator should have the same capacity of existing translator. If so, we can focus on ExportedProgram rather than fx translator.

For insights into SLM, please refer to this...

Thanks for your introduction, this is awesome feature to debug modularized relay module. However, our issues are more related to unsupported op conversion in the fx translator, and this feature still requires us to write translators for the new functional/nn.Module.
That is the reason we want to leverage the ExportedProgram because it will decompose all functional/nn.Module into limitation set of ops.

Thanks @chunit-quic for the contribution! I think there are several goals:

G0: Support translation of PT ops, regardless if they appear in normal FX trace for ExportProgram
G1: Support ExportProgram usedcase
G2: Support integration of torch dynamo via FX graph

I think we all agree that G1 is super important. I would like us to think about how we can unify, so we don't have two versions of the torch importer.
Here is one possible way to do so:

We build a common base class that contains the translation of ops (that can be used in both fx and ExportedProgram)
The base class allows abstract method for program specific behaviors

self.get_parameters(mod) will obtain the parameters

For FXGraph we get from model.named_parameters()
For ExportedGraph we change according

self.get_node_attrs(node) will obtain the attributes

For

Support both op variants if needed

Because op keys are different, we can support aten.conv2d  and conv2d, either as a subclass patch, or support both in base, it does not hurt since both can be useful at different levels, especially for key ops like conv2d

I think update this PR would be sufficient

@chunit-quic just want to check in and see where we are on this

Hi @tqchen,
Thank you so much for your attention and effort on this pull request. We truly appreciate your suggestion. Unfortunately, after careful consideration, we've decided to withdraw the pull request at this time. We hope to collaborate again in the future and appreciate your understanding.


Create dotnet.yml

Thank you for opening the PR! I'm not 100% this action will work but I can merge it and later adjust, if needed 👍


Please add a License

Hi,
I would like to use this library in a project (and have fixes to submit upstream for support of many more kinds of records) but I cannot do that until and unless a license is added.
I would highly recommend the Apache-2.0 license or MIT license. If you are unfamiliar with Licensing, I highly recommend GitHub's Choose a License website for helping you pick which one to use.

Sorry about that. The MIT license has now been added


Sent Handler is not called after startTransmit()

I have run example code BasicSender in Arduino Mega 2560 R3. The output from Serial Monitor is as follows:
### DW1000-arduino-sender-test ###
DW1000 initialized ...
Committed configuration ...
Device ID: DECA - model: 1, version: 3, revision: 0
Unique ID: EUI: 0:0:0:0:255, OUI: 255:255:255
Network ID & Device Address: PAN: 10, Short Address: 5
Device mode: Data rate: 110 kb/s, PRF: 16 MHz, Preamble: 2048 symbols (code #4), Channel: #5
Transmitting packet ... #0

Unfortunately, after sending packet, the callback is not fired, which causes, that sentAck is not set to true. Main loop is breaking every each iteration.

Same problem and I still do not know the reason (it also happens with the ranging example). Try to disconnect and connect one of the arduinos, by doing this it worked to me. I am wondering if this problem is due to the limited current the 3.3 V output can provide. Cheers.

How do you supply your module ? I had the same problem before when i used the arduino 3.3v regulator …

Guys, thank you for quick response. I am supplying DWM1000 directly from Arduino's 3.3V output.

Guys, thank you for quick response. I am supplying DWM1000 directly from Arduino's 3.3V output. But Auduino is supplied from USB itself.

Hi there!
(From the datasheet) Arduino's internal regulator only produces max. 50mA which is not enough to drive the TX current peaks of around 140mA (from the datasheet) of DW1000. As far as I remember @leosayous21 has a post somewhere around here on using an external regulator and further his adapter board may be a good reference - see here.
Please also note that logical high on your I/O pins is about 5V; too much for the DW1000.
Hope it helps!
Cheers!

@thotro, I'm using Wayne's adapter so I'm supplying 5V.  However, when I connect it to an USB "Power Bank" Charger, it only draws 40mA.  How should I power the module so it can be supplied it with 140mA as you indicated above?

Hi, this is Wayne.  40ma is about what I'd expect the Arduino to draw by
itself,  So, I'm guess there is something wrong on the DWM1000 PCB.  Check
the voltage on the two pins marked 3.3 volts near the right lower edge of
the board (with DWM1000 at the top.)  This will show if the 3.3 regulator
is working.
Wayne
On Wed, Nov 2, 2016 at 4:41 PM, Al B<EMAIL_ADDRESS>wrote:

@thotro https://github.com/thotro, I'm using Wayne's adapter
https://sites.google.com/site/wayneholder/uwb-ranging-with-the-decawave-dwm1000---part-ii
so I'm supplying 5V. However, when I connect it to an USB "Power Bank"
Charger
https://www.amazon.com/gp/product/B01G1XH46M/ref=ox_sc_sfl_title_9?ie=UTF8&psc=1&smid=A2KUZVNQ9LP7N9,
it only draws 40mA. How should I power the module so it can be supplied it
with 140mA as you indicated above?
[image: img_1029]
https://cloud.githubusercontent.com/assets/7515273/19951407/0a8ea5d6-a11b-11e6-81c5-6d3437608d7f.JPG
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/thotro/arduino-dw1000/issues/24#issuecomment-258032700,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABA2chnNm4GZyE-3TJdVzfW1k-Xei0rsks5q6R-zgaJpZM4Fk7d9
.

Hi Wayne, do you mean pin 6 or 7 highlighted below?

No.  See attached.
Wayne
[image: Inline image 1]
On Wed, Nov 2, 2016 at 7:34 PM, Al B<EMAIL_ADDRESS>wrote:

Hi Wayne, do you mean pin 6 or 7 highlighted below?
[image: dwm1000-connections]
https://cloud.githubusercontent.com/assets/7515273/19954183/4609402c-a133-11e6-9133-e1c962585d1f.jpg
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/thotro/arduino-dw1000/issues/24#issuecomment-258052928,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABA2crNqyzJZaLxZto0CEG79m9P3mDraks5q6UhRgaJpZM4Fk7d9
.

Wayne, your attachment didn't come through...

Try this link:
https://sites.google.com/site/wayneholder/uwb-ranging-with-the-decawave-dwm1000---part-ii/DWM1000.png
Wayne
On Wed, Nov 2, 2016 at 10:38 PM, Al B<EMAIL_ADDRESS>wrote:

Wayne, your attachment didn't come through...
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/thotro/arduino-dw1000/issues/24#issuecomment-258067884,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABA2cuQpyrDkgIs1rlr-m3jV3pBt0Ryuks5q6XNpgaJpZM4Fk7d9
.

Wayne, I do get 3.3V on those two pins (see picture below).

Ok.  That's good.  At least the 3.3 regulator is working.  My other guess
is that perhaps the DWM1000 module is not completely soldered to the PCB.
I had some trouble with soldering the castellations myself and had to
reflow some of the connections to get the module working.  Did you build
more than one module?  If so, perhaps you can compare voltage levels on the
different pins.
Wayne
On Thu, Nov 3, 2016 at 9:03 AM, Al B<EMAIL_ADDRESS>wrote:

Wayne, I do get 3.3V on those two pins (see picture below).
[image: img_1034]
https://cloud.githubusercontent.com/assets/7515273/19974018/4cbd5022-a1a4-11e6-9ba5-6d075fdb7c3e.JPG
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/thotro/arduino-dw1000/issues/24#issuecomment-258188071,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABA2cqQTGl_H9i8TkTJ56plyuJfFv7XFks5q6gXugaJpZM4Fk7d9
.

I built four(4) modules and all of them show 3.3V on those pins.  I'll try to reflow the connections again, but it is quite odd that all four are not working.  Did you have to make any code changes (set unique ids, channels, etc.)?

It's odd that all 4 units would fail to work.  Can you post a photo of one
of the assembled boards without the Arduino mini installed so I can see how
you installed the components?  Perhaps I can spot a clue that way.  I used
a version of the software here that was posted some time ago, so something
may have changed since then.  I'm currently swamped with other tasks, but I
intend to try the latest software when I have the time.  But, until then, I
can only speculate as to the cause of your problem.  I do know that several
others have successfully built modules using my PCB, so I'm fairly
confident of the design.
On Thu, Nov 3, 2016 at 6:47 PM, Al B<EMAIL_ADDRESS>wrote:

I built four(4) modules and all of them show 3.3V on those pins. I'll try
to reflow the connections again, but it is quite odd that all four are not
working. Did you have to make any code changes (set unique ids, channels,
etc.)?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/thotro/arduino-dw1000/issues/24#issuecomment-258324847,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABA2clJetDUDQ1mcrHNM_CduORIXovhLks5q6o7IgaJpZM4Fk7d9
.

1 and 2 were my first try.  Thanks Wayne for looking into this.

To my eye, everything looks OK.  Since you say all 4 boards exhibit the
same symptoms, I'm staring to think it must be a software issue.  Perhaps
something has changed in the github code since I got my boards working.
I'd offer to send you my code as a test but, at the moment, I'm traveling
and don't have access to it.
To debug it yourself, I suggest you start by seeing if you can get the
BasicConnectivityTest sketch working.  I don't recall the exact values it's
supposed to print out and can't check while traveling, but perhaps someone
else here can give you the info.
Also, just to make sure, you are using 5 volt, Arduino Pro Minis on all the
boards, right?
Wayne
On Thu, Nov 3, 2016 at 10:22 PM, Al B<EMAIL_ADDRESS>wrote:

1 and 2 were my first try. Thanks Wayne for looking into this.
[image: all4]
https://cloud.githubusercontent.com/assets/7515273/19995340/8e3238fa-a213-11e6-9cae-e7e8e257e356.JPG
[image: 1]
https://cloud.githubusercontent.com/assets/7515273/19995338/8e2e11e4-a213-11e6-84f0-02ab5aca6c7a.JPG
[image: 2]
https://cloud.githubusercontent.com/assets/7515273/19995339/8e2f3b50-a213-11e6-981f-6e069d2c19a1.JPG
[image: 3]
https://cloud.githubusercontent.com/assets/7515273/19995342/8e341e18-a213-11e6-9eb8-b96905c77e15.JPG
[image: 4]
https://cloud.githubusercontent.com/assets/7515273/19995341/8e32b12c-a213-11e6-8e5c-28d68700ec8b.JPG
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/thotro/arduino-dw1000/issues/24#issuecomment-258347373,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABA2cmNb2cTvsVdKwMWko8TvV7R7Ch1sks5q6sD9gaJpZM4Fk7d9
.

Yes, I'm using the 5V Arduino Pro Mini as well as the SparkFun Pro Micro.  Both display the same result when run the BasicConnectivityTest sketch, as shown below.
Once you are back home, would you mind trying the latest code from Master on one of your working the modules.  If that doesn't work, then you were right and it's a software issue.  That will also means that the version of the code that you have it's gold!

hello my board working but it detect only 5 meters .how can i increase above 50m .


chore(i18n): extract language strings

Description:
Extract new language strings. Where possible I have tried to port strings from the old interface over to the updated translation files. There are now a fair number of new strings that will need to be translated.
Motivation and Context:
Add new strings to translation files so that they can be translated.
How Has This Been Tested?
Manually
Types of changes:
Chore
Checklist:

[x] My code follows the code style of this project.
[x] I have reviewed and updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes where needed.
[ ] All new and existing tests passed.
[x] My commits have been squashed into a concise set of changes.

Coverage remained the same at 19.775% when pulling 5501b1369933160f97328213de783b1cf9b732c3 on mrfelton:chore/i18n into b11364e11f0e2bbabfffd8a0c57f2105c58ec4ae on LN-Zap:master.

Coverage remained the same at 19.775% when pulling 5501b1369933160f97328213de783b1cf9b732c3 on mrfelton:chore/i18n into b11364e11f0e2bbabfffd8a0c57f2105c58ec4ae on LN-Zap:master.

Concept ACK