Can't remove a failed ISO

ISSUE TYPE

Bug Report

COMPONENT NAME

UI, API

CLOUDSTACK VERSION

4.15.1

CONFIGURATION

Basic network, one bridge, one zone
OS / ENVIRONMENT

Ubuntu 20.04.2
cmk 6.1.0
SUMMARY

After failing to upload an ISO from the local webserver, CS shows it in the list of ISOs with the status "Ready : false". But I can't remove it from both GUI and cmk

cmk output:

Apache CloudStack 🐵 CloudMonkey 6.1.0
Report issues: https://github.com/apache/cloudstack-cloudmonkey/issues

(localcloud) 🐱 > list isos
(localcloud) 🐱 > delete iso id=d4fb61a3-f5e1-4026-a59e-cfb8279ee453
{
  "accountid": "6c1b9fb9-ea09-11eb-837e-0015179e5d77",
  "cmd": "org.apache.cloudstack.api.command.user.iso.DeleteIsoCmd",
  "completed": "2021-07-21T23:29:24+0300",
  "created": "2021-07-21T23:29:22+0300",
  "jobid": "a710ccf4-10fb-4465-ae3f-aa4a30162c23",
  "jobinstanceid": "d4fb61a3-f5e1-4026-a59e-cfb8279ee453",
  "jobinstancetype": "Iso",
  "jobprocstatus": 0,
  "jobresult": {
    "errorcode": 530,
    "errortext": "Failed to delete ISO"
  },
  "jobresultcode": 530,
  "jobresulttype": "object",
  "jobstatus": 2,
  "userid": "6c1f585f-ea09-11eb-837e-0015179e5d77"
}
🙈 Error: async API failed for job a710ccf4-10fb-4465-ae3f-aa4a30162c23

STEPS TO REPRODUCE

EXPECTED RESULTS

Expect to be able to add/remove ISOs

ACTUAL RESULTS

Failed to add an ISO. Failed to remove a bogus ISO

@tampler Is your setup/env SSL enabled, if not, uploading an iso from local will fail. With respect to failure in deleting an ISO, I wasn't able to reproduce the issue. Can you check on updating the following global setting configs:storage.cleanup.delayand storage.cleanup.interval to a low value, does the iso get cleaned up automatically after the configured time has elapsed. That worked for me. You can also check the log file at /var/log/cloudstack/management/management-server.log for hints as to why the failure occurred during cleanup. Thanks

@tampler ssl is required in SSVM when upload template/iso form local, see @Pearl1594 's comment above
you may find information on https://www.shapeblue.com/securing-cloudstack-4-11-with-https-tls/
the issue with remove failed ISO should has been fixed by #4626 in cloudstack <IP_ADDRESS>
if you faced the issue in <IP_ADDRESS> testing (not <IP_ADDRESS>), please share more logs .

I see the same issue for Management Servers. I got only one management server, but see three with different IDs in the GUI and can't remove any of them as well

Should I open a new bug report for this ?

@ustcweizhou I'm not sure which logs do you want. Here's an exert from the /var/logs/cloudstack/management/management-server.log. See the file attached.
Let me know if you need an output from some specific cmk command.
out.log
Thank you for your help

I see the same issue for Management Servers. I got only one management server, but see three with different IDs in the GUI and can't remove any of them as well

@tampler it is not a bug I think.
could you share table 'mshost' in database ?
mysql> select * from mshost;

@ustcweizhou I'm not sure which logs do you want. Here's an exert from the /var/logs/cloudstack/management/management-server.log. See the file attached.
Let me know if you need an output from some specific cmk command.
out.log
Thank you for your help

@tampler could you please check if SSVM (secondary storage vm) is running and its Agent state is Up ?
Infrastructure -> System VMs -> s-X-VM

I see the same issue for Management Servers. I got only one management server, but see three with different IDs in the GUI and can't remove any of them as well

@tampler it is not a bug I think.
could you share table 'mshost' in database ?
mysql> select * from mshost;

Sure thing, here's the screen:

@tampler could you please check if SSVM (secondary storage vm) is running and its Agent state is Up ?
Infrastructure -> System VMs -> s-X-VM

No, they are NOT. I can't launch any VM and haven't seen SystemVMs working due to #5235
However, I still see those ISOs in GUI and can't remove them. I also tried official Ubuntu image. Its still won't get to the Ready: true state and can't be removed

@tampler to fix this you will need your SSVM deployed, looks like an issue in your setup is causing the system VMs to fail

Seems like a Zone setup issue. Can't reproduce, closing for now


Add controller helpers which facilitate update and build patterns

I had this idea that if #261 is merged, we would have a lot of code which looks like this:
@post = Post.find(params[:id])
if @post.update_attributes(permitted_attributes(@post))
  redirect_to @post
else
  render :edit
end

Wouldn't it be nice if we could cut down on this noise?
@post = Post.find(params[:id])
if update(@post)
  redirect_to @post
else
  render :edit
end

That looks much nicer, and makes our controllers a lot cleaner. We can also handle strange edge cases where it's unclear whether authorization should be performed before or after attributes are assigned by simply doing both.
I'm unsure if this is actually a good idea. It significantly expands how involved Pundit becomes in your application. Suddenly Pundit is not part of your controller actions, but rather actions are written in Pundit-style. This is one aspect I really disliked about CanCan, its find_and_authorize helpers just started to smell too much of InheritedResources or ResourceController, both of which I've been badly burned by. Is Pundit overstepping its bounds here, or is this inline with the kind of convenience we want to provide our users?
Also this PR does not (yet?) add separate permitted_attributes methods for build and update. IMO it should be possible to customize these individually. This is something we should do.

:-1: This is something I feel Pundit was really not designed to do and is overstepping its boundaries by a large amount. I like the current state of Pundit in that it allows us to write this kind of syntactic sugar in our application code, instead of a library with so much less visibility to our domain problems trying to tackle them for our benefit.

@jnicklas Pundit#update needs a different name since the update action of the controller overrides update defined in Pundit.  Maybe update_with_authorization?
Your comments about cancan and inherited_resources makes me wonder if users will assume they should force their process through update and build instead of using them where they make sense which is what might have led to the bloated abstractions in those libraries.  If there is sufficient resistance to this then I think merging would be a good idea.
A nice middle-ground might be to include them as examples of abstractions in the README and defer to users to build them as needed in their own applications.  Or additional copy in the README indicating these helpers aren't intended to handle all use-cases and that in some cases, the user should use authorize, permitted_attributes and policy directly.  A good example of this is that assign_attributes will trigger database changes immediately when changing has_and_belongs_to_many and has_many :through associations on a persisted record.

All feedback on this so far has been negative, which confirms my own unease about this feature.
The naming conflict that @ecbypi points out is also problematic, when I used this pattern in an application I had called the method update_attributes, but this doesn't have the same kind of symmetry with build, build_attributes does't have the same ring to it, and update_with_authorization as @ecbypi suggests doesn't sound nice to me.
I'm closing this PR for now. While I think it's an interesting idea, I think we need more experimentation and experience outside of Pundit for now.


User Model Cleanup & Refactoring

This pull request includes several changes to the Centa User Management Service project, focusing on enhancing the user and role management functionality, improving code readability, and updating documentation. The most important changes include the addition of new models and migrations, updates to the admin configuration, and various improvements to the CustomUserManager class.
Enhancements to User and Role Management:

New Models and Migrations:

Added models for Organisation, Permission, Role, RolePermission, User, and UserProfile in src/user_service/models.py.
Created initial migration file 0001_initial.py to define the database schema for the new models.

Admin Configuration:

Updated src/user_service/admin.py to register the new models with the Django admin site.

Code Readability Improvements:

CustomUserManager Class:

Improved the create_user, create_superuser, deactivate_user, activate_user, and update_user methods to use ValidationError instead of ValueError and added helper methods for better code organization. [1] [2]

General Code Cleanup:

Removed unnecessary comments and improved docstrings for better clarity in src/user_service/models.py. [1] [2]

Documentation Update:

README.md:

Added instructions for creating a secret key and setting up the .env file for local development.

These changes collectively improve the functionality, maintainability, and documentation of the Centa User Management Service project.

If a user lookup fails a UserDoesNotExist exception is to be raised. Validation errors are mostly for form validations, model field validations and custom validation logic.

Also in the update_user method, I think we should check if the user model has an attribute before we set a value on the attribute. And, raise a ValueError if the field does not exist on the model.
What do you think??

Also in the update_user method, I think we should check if the user model has an attribute before we set a value on the attribute. And, raise a ValueError if the field does not exist on the model.
What do you think??

We could do that but instead of ValueError, it will be an AttributeError since we are setting them as attributes of the that user instance.
If this is the case, we will also need to have the same checks in the create_user method as well since it also accepts multiple extra fields.

Here's an example of how it would go. This example uses the create_user method, but it will work with the update_user method as well. This way, errors are silent when an invalid attribute is passed to either of these methods.

Also in the update_user method, I think we should check if the user model has an attribute before we set a value on the attribute. And, raise a ValueError if the field does not exist on the model.
What do you think??

We could do that but instead of ValueError, it will be an AttributeError since we are setting them as attributes of the that user instance.
If this is the case, we will also need to have the same checks in the create_user method as well since it also accepts multiple extra fields.

Here's an example of how it would go. This example uses the create_user method, but it will work with the update_user method as well. This way, errors are silent when an invalid attribute is passed to either of these methods.

Looks good!


Adds Microsoft Teams.app v<IP_ADDRESS>902

[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} reports no offenses.
[x] The commit message includes the cask’s name and version.
[x] Named the cask according to the token reference.
[x] brew cask install {{cask_file}} worked successfully.
[x] brew cask uninstall {{cask_file}} worked successfully.
[x] Checked there are no open pull requests for the same cask.
[x] Checked that the cask was not already refused in closed issues.

Travis failure was caused by the Xcode 7.3 build stalling for some reason; the Xcode 8 version passed successfully, so no problems there.

Restarted the builds.


There should be an async version - deferAsync?

This proposal adds a cool new feature (fetching/linking a module without executing immediately) but denies that feature to all modules which use top-level await (TLA).
This clashes with the current ESM model where modules that use TLA are treated just like any other modules, anywhere: import statements work normally for them and import() is async already. ESM established a world where modules can safely use TLA without downsides.
This proposal breaks that model. It makes modules that use TLA worse than other modules because there is no way to fetch them while defering their execution.
This seems unnecessary, because there could just be an async version of defer, which allows you to defer execution of an entire TLA module. Many consumers don't care about the described "problem" that exposing something becomes an async function; for them the async version of defer would be the better version, because it would defer a larger part of the execution.
I propose:
import deferAsync * as myModule from "mypath"

Let's examine possible behaviors:

myModule is a promise itself, and executed only when it is awaited

this seems a bit weird, because awaiting a promise can usually not trigger anything in JS

all properties of myModule are promises; the module is executed only when one of them is accessed.

this seems natural, and is very similar to defer, where myModule basically becomes a smart proxy for the module

To reiterate, deferAsync would be a strictly better version of defer for all consumers that are fine with getting promises.

In light of https://github.com/tc39/proposal-defer-import-eval/pull/28, there could also be import.deferAsync('<specifier>')

typically, a promise is a placeholder for the future value of work that has already begun, so I think it'd be very surprising and weird and unidiomatic to have awaiting it actually cause anything to happen.

typically, a promise is a placeholder for the future value of work that has already begun, so I think it'd be very surprising and weird and unidiomatic to have awaiting it actually cause anything to happen.

yeah I wrote that as well. but having a bunch of properties that are promises and having the property access cause the work to happen seems fine (same as proposed behavior for defer)

Oh the web you can already get this behaviour, by combining modulepreload and dynamic import:
<link rel="module preload" href="./that/module.js">

later(async () => {
  let mod = await import("./module.js");
});

Except for some specific circumstances, such as devices with very load bandwidth, when you call dynamic import the module will have already been fully loaded (including its dependencies), parsed and linked.

To reiterate, deferAsync would be a strictly better version of defer for all consumers that are fine with getting promises.

No, most of those consumers should just use dynamic import, since it allows skipping more work (i.e. loading/parsing).
The main motivation of this proposal is that, unlike dynamic import, allows deferring synchronously.

@nicolo-ribaudo thanks for the answer. This is a good point.
I still feel deferAsync would be a natural addition, and a much "nicer" way to declare a lazy dependency than the html tag (also for the reason given in #15). Also, note that the preload tag isn't really accessible to library authors - my hope is that deferAsync would be, because bundlers would respect it.
But I accept that deferAsync doesn't add anything which is fundamentally impossible right now, while defer does.


Allow scripts to exit with a result

From @GoogleCodeExporter on May 31, 2015 11:25
Exiting with a result allows scripts to be used with startActivityForResult.

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 13 Mar 2010 at 2:40
Copied from original issue: damonkohler/android-scripting#239

From @GoogleCodeExporter on May 31, 2015 11:25
is this issue solved ?
i need it so much .

Original comment by<EMAIL_ADDRESS>on 24 Mar 2015 at 7:48


Use tasks.json instead of custom commands in the palette

It's just a small quality of life change, but would probably also dejustify the existence of the preferred generators, which various people have before deemed a rather unnecessary feature.
Imho, CMT should automatically add two build tasks, one for building and one for clearing the build files (all of them).
Instead of using preferred generators, which really only becomes relevant if you want to ship your entire VSC project to users, which defeats the entire purpose of CMake altogether, allowing us to specify which compiler to use in the build task directly makes more sense. That way we could even cross-compile. In the end, CMT is a developer side to CMake and irrelevant for the users. At least as far as I'm concerned.

I've looked into tasks.json integration almost a year ago and found it unsuitable. They've done some recent work to improve it, so it might be better to use at this point.
However, this would have no effect on the generator semantics. Those would still be required. That's something built into CMake that can't be worked around at the moment.

I never knew about preferred generators in CMake... Interesting. I thought it was something you had come up with.
I don't know how tasks.json looked like a year ago, I only started using VSC a few months ago. It seemed relatively easy to use, but not quite elaborate enough without any third party tools (e.g. I saw no way to add all project files by glob to the compiler's list of sources).


chore: upgrade lip2p

This is a change request
Problem
There was a recent release of js-libp2p.
Proposed Solutions
Let's upgrade it which should unlock js-waku being used in react-native environment.
Other deps to update:

[ ] https://github.com/waku-org/js-waku/pull/1768

Should be handled as well:

https://github.com/waku-org/js-waku/pull/1788


hwmv2: Port some arm64 socs boards

tests: Update board names for hwmv2

Updates tests that use board names which have changed with boards v2

boards: arm64: khadas_edgev: Convert to v2

Converts the board to hwmv2

soc: rk3399: Port to HWMv2

Ports the rk3399 SoC configuration to hardware model version 2

boards: arm64: roc_rk3568_pc: Convert to v2

Converts the board to hwmv2

soc: rk3568: Port to HWMv2

Ports the rk3568 SoC configuration to hardware model version 2

boards: arm64: phycore_am62x_a53: Convert to v2

Converts the board to hwmv2

soc: ti_k3: Port to HWMv2

Ports the ti_k3 SoC configuration to hardware model version 2

boards: arm64: xenvm: Convert to v2

Converts the board to hwmv2

soc: xenvm: Port to HWMv2

Ports the xenvm SoC configuration to hardware model version 2

boards: arm64: rpi_4b: Convert to v2

Converts the board to hwmv2

soc: bcm2711: Port to HWMv2

Ports the bcm2711 SoC configuration to hardware model version 2

boards: arm64: qemu_kvm_arm64: Convert to v2

Converts the board to hwmv2

soc: qemu_virt_arm64: Port to HWMv2

Ports the qemu_virt_arm64 SoC configuration to hardware model version 2

boards: arm64: qemu_cortex_a53: Convert to v2

Converts the board to hwmv2

soc: qemu_cortex_a53: Port to HWMv2

Ports the qemu_cortex_a53 SoC configuration to hardware model version 2

boards: arm64: fvp_baser_aemv8r: Convert to v2

Converts the board to hwmv2

boards: arm64: fvp_base_revc_2xaemv8a: Convert to v2

Converts the board to hwmv2

soc: fvp_aemv8*: Port to HWMv2

Ports the fvp_aemv8* SoC configuration to hardware model version 2

@carlocaione @povergoing @lorc @firscity @tejlmand @npitre please review


missing data

http://library-dev.bdrc.io/show/bdr:W22003 has a translation eftr:WAETOH360 which there is no data about in fuseki (same thing in http://library-dev.bdrc.io/show/eftr:WAITOH16?cw=none)
http://library-dev.bdrc.io/show/bdr:P4954 used to have some sameAs information, either from dila ? wikidata ? I don't remember but I bookmarked it to check how it renders

I believe this has changed (as W22003 doesn't show a eftr:WAETOH360 transalation anymore. (http://purl.bdrc.io/resource/W22003.ttl). @berger-n :can we close the issue ?


Request to set date & time of RainBird

Hi, is it possible to set the date/time of the RainBird via this package? I can see the requests for getting them but not setting in the list of sip commands.
The RainBird app on my iPhone allows me to set it so I'm wondering if the command request(s) may not have been discovered yet? If not is there a way to reverse engineer it?

I managed to find the commands for setting the date and time. Here's the details - note that the format is in hexadecimal.
To set time:
11hhmmss (where hh is hours, mm is minutes & ss is seconds)

To set date:
13ddmyyy (where dd is day of month, m is month (1 - C) & yyy is year (remember its in hex so 2023 = 7E7 in hex)

If anyone is interested in how I found the commands I used Charles to set up a HTTP proxy and configured my iPhone to use that proxy (in WiFi settings). I then used the RainBird app to change the date and time. Charles captured the requests & response which I then decrypted to find the above commands. The algorithm to decrypt can be found here

@mantorok1 thanks for sharing your method. Based on what you said, i've added a mitmproxy plugin that can decode the requests using the python code: https://github.com/jbarrancos/pyrainbird/pull/59
Are you up to send a PR to add the date/time command?

No worries. I can give I a crack. I'm not that familiar with the pyrainbird source code. Is it just matter of adding the new commands to the sipcommands.yaml file?

I can do it if you tell me the command format. An example discussion is here https://github.com/jbarrancos/pyrainbird/issues/40
Also the maintainer of this library does not want to maintain it anymore so i've moved to doing development for the official library in https://github.com/allenporter/pyrainbird

I think these are command formats:
  SetCurrentTimeRequest:
    command: '11'
    parameterOne: 0
    parameterTwo: 0
    parameterThree: 0
    response: '01'
    length: 4

Where parameterOne is hours, parameterTwo is minutes & parameterThree is seconds
  SetCurrentDateRequest:
    command: '13'
    parameterOne: 0
    parameterTwo: 0
    parameterThree: 0
    response: '01'
    length: 4

Where parameterOne is day, parameterTwo is month & part of year & parameterThree is remainder of year.
The month and year are a bit tricky as the month and year are "mashed" together in the last 2 bytes. It's the same date format that is used in the CurrentDateResponse (92)
They both return an AcknowledgeResponse (01)

I've added this to the library, and here is an example using the command line tool:
$ python3 examples/rainbird_tool.py --log-level=debug set_current_date 2023-01-09
DEBUG:pyrainbird.async_client:Request to line: 130917E7
DEBUG:pyrainbird.async_client:Request: {"id":<PHONE_NUMBER>.7081575, "jsonrpc": "2.0", "method": "tunnelSip", "params": {"data": "130917E7", "length": 4}}
DEBUG:pyrainbird.async_client:Response: {"jsonrpc": "2.0", "result":{"length":2, "data":"0113"}, "id": 0}
DEBUG:pyrainbird.async_client:Response from line: 0113
DEBUG:pyrainbird.async_client:Response: {'type': 'AcknowledgeResponse', 'commandEcho': 19}
None
$ python3 examples/rainbird_tool.py --log-level=debug get_current_date
DEBUG:pyrainbird.async_client:Request to line: 12
DEBUG:pyrainbird.async_client:Request: {"id":<PHONE_NUMBER>.5084407, "jsonrpc": "2.0", "method": "tunnelSip", "params": {"data": "12", "length": 1}}
DEBUG:pyrainbird.async_client:Response: {"jsonrpc": "2.0", "result":{"length":4, "data":"920917E7"}, "id": 0}
DEBUG:pyrainbird.async_client:Response from line: 920917E7
DEBUG:pyrainbird.async_client:Response: {'type': 'CurrentDateResponse', 'day': 9, 'month': 1, 'year': 2023}
2023-01-09


Should have a default Path env if image doesn't specified?

When create/start a container with image that Config.Env=null, hyperd won't give a default PATH env, so that cmd like sh will return a  No such file or directory error.
Actually this is not a bug of hyper, while docker has done this when start container. Some of the k8s test relay on this 'feature' (image don't specific Env and they use sh as cmd...)
FYI:
docker inspect busybox:latest
...
        "Config": {
            "Hostname": "55cd1f8f6e5b",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
            ],
            "Cmd": [
                "sh"
            ],
            "Image": "sha256:e732471cb81a564575aad46b9510161c5945deaf18e9be3db344333d72f0b4b2",
            "Volumes": null,
            "WorkingDir": "",
            "Entrypoint": null,
            "OnBuild": null,
            "Labels": {}
        },
...

docker inspect gcr.io/google_containers/busybox:1.24
...
        "Config": {
            "Hostname": "aded96b43f48",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": null,
            "Cmd": [
                "sh"
            ],
            "Image": "9e77fef7a1c9f989988c06620dabc4020c607885b959a2cbd7c2283c91da3e33",
            "Volumes": null,
            "WorkingDir": "",
            "Entrypoint": null,
            "OnBuild": null,
            "Labels": null
        },
...

/cc @resouer @feiskyer @gnawux

need a image without PATH env to test the patch

gcr.io/google_containers/busybox:1.24

hello
gnawux@shutup:~/Workspace/src/github.com/hyperhq/hyperd$```

it works

done by hyperhq/hyperstart#281


Where to put the JS files?

I have a manual home assistant installation using the venv / other user method. As a result, I do have the HA installation in /srv/homeassistant (python files), and the configuration in /home/homeassistant/.homeassistant.
Thus, I do not have a www folder, nor a config folder. For using custom lovelace cards, I figured I need to go into raw mode, and add something like:
resources:
  - type: js
    url: /local/group-card/group-card.js?v0

to the top or the bottom.
However, where is url located? E.g. where is /local pointing to in all the examples?
I tried to use url: /group-card/group-card.js?v0 and clone the group-card repo into /home/homeassistant/.homeassistant/group-card, however it wont recognize the card.
Where do I need to put the JS files?

Group card is no longer supported in this repo


Docker container is not up-to-date

Which service(blob, file, queue, table) does this issue concern?
All services (Blob, File, Queue, Table)
Which version of the Azurite was used?
Not applicable (N/A)
Where do you get Azurite? (npm, DockerHub, NuGet, Visual Studio Code Extension)
DockerHub
What's the Node.js version?
Not applicable (N/A)
What problem was encountered?
The version of Azurite available on DockerHub is outdated.
Steps to reproduce the issue?
N/A
Have you found a mitigation/solution?
I build the Docker container myself and push it to my own account. This workaround is functional but not ideal.
I can also use the outdated container and pass the --skipVersionCheck parameter, but I just want to use the latest version

@EmmaZhu
Would you please help to follow up?
@Rutgerdj
We will update docker image in every Azurite release.
Why do you think the docker container is not updated? Do you use the local cached latest Azurite docker image? If so, try to delete it and redownload it, and see if it will be updated.

I do indeed think it has something to do with the cache being used. I can't reproduce the issue and I see that the latest tags (3.30.0) do exist in the container registry. My apologies for the confusion.


[Question][RUM Performance overview] PC75:LOADING TIME column of "Most viewed pages" table is "N/A"

Hello,
Hello, I m so confuse about Most viewed pages in RUM - Performance overview. My application use React Native platform. PC75:LOADING TIME column of "Most viewed pages" table is always "N/A". Can datadog measure loading time ? Thank you

@0xnm Could you please help?

Hello @tranducduong1994. Our React Native SDK doesn't support measuring view loading time so far, but it might be the feature we can look at in the future.

@0xnm thank you. also, I have another question in this screen. I m confused about VIEW PATH GROUP column. My application use React Native platform. There are many “App” screens with unique suffixes. What are those? are they some popup and side menu?

@tranducduong1994 I suppose you are using @datadog/mobile-react-navigation package? If yes, then in case of React Navigation it is just a unique identifier of the screen backed by route.key, you can see route.name by clicking Settings icon of this table and adding @view.name column.

@0xnm  I only see "Create Monitor" after click on setting button

Where can I customize this table's columns? thank you.

@tranducduong1994 Thanks for reporting that, indeed there is no option in that view. Anyway, we are currently migrating Application Overview page widgets so that they use @view.name facet instead, you should get it in soon (few weeks, probably).
Sorry for the temporary inconvenience.

thank you for your time @0xnm


Add Octobox GitHub app to repo

I would be interested in seeing the Github App for Octobox being added to this repo so it could be easier to track issues. I've noticed it has already been added to the main vscode repo and I think it would be useful to be used here as well.

Done 😃


[DOC] How to add JLab extensions

Preliminary Checks

[X] This issue is not a question, feature request, RFC, or anything other than a bug report. Please post those things in GitHub Discussions: https://github.com/nebari-dev/nebari/discussions

Summary
How to add common jlab extensions. Examples: Dask, Git
Steps to Resolve this Issue
.

With JLab 4, I believe we can directly add several extensions by adding them to respective conda envs. This needs to be verified and documented. If this is not possible, the extensions will need to be included in the base docker images -- users can make requests by openeing issues on https://github.com/nebari-dev/nebari-docker-images. This workflow also needs to be documented

From @krassowski

This is not possible in the main JupyterLab server. There are workarounds, including making an app which starts JupyterLab. We can also solve this my swapping the extension manager class which I suggested before in planning and adjusting the path from which extensions get loaded dynamically.
There is also an extension which allows to load some plugins without installation. We could adopt it for this use case.

This change would need to happen in nebari. So each user's jupyterlab instance would be looking to some local (to the user) place for extensions.
This is a feature request, not a documentation issue. I'll open one over on the nebari codebase.

There was already one over there :) https://github.com/nebari-dev/nebari/issues/2299


Using azk to make it easier to run Stringer locally

This PR includes changes from #426 , #430 , #431 and #432
This PR intends to make it easier to run Stringer locally with the aid of azk, a lightweight open source development environment orchestration tool.
It adds two elements to the project:

An Azkfile;
The Run Project button.

Azkfile (learn more about it here) is a simple manifest file that describes the functional architecture of the project. This Azkfile already works with the changes from PRs #426 , #430 , #431 and #432 and you can even use it to test them.
Combined with the Azkfile, this button allows the user to  automatically run Stringer locally without any pre-installed dependencies (such as Ruby, PostgreSQL etc.) in a few minutes with little more than just one click.
To see Stringer + azk in action, click the button below:

Alternatively, you can check the video below (from 10s to 30s):
https://www.youtube.com/watch?v=J2i8qug99Kw&feature=youtu.be&t=10
The Azkfile and the Run Project button are features of azk. Whenever a user clicks the Run Project button, the process installs azk on the user's local machine (or upgrades it to the latest stable version in case they already have it installed). Everything is transparent to the user and can be easily undone.
azk is available to Mac OS X and Linux.
azk also makes it easier to deploy Stringer on DigitalOcean, so a file with those instructions is included.
As you can find in that file, I've written a blog post on DigitalOcean Community site about deploying Stringer using azk.
I'm part of azk core team, so feel free to ask for any assistance you may need.
Finally, I'd like to recommend you to read a blog post on Reasons to have a Azkfile in your project.
I hope you guys enjoy it! :)

Closing this PR for lack of activity.


Many "you open connections too fast" errors

We use the client in a high-frequency environment and the pools tend to grow quite quickly, especially on "boot". In these situation, we experience quite a few "you open connections too fast" errors, but I am not sure I understand the rationale behind the rate limiter. Could you please explain?

Hi, I came to this issue with similar problem.
Just to help any other person that come here, the real problem was a connection failure and the subsequent requests happening too fast.
Check if you are still connect if you get this error.
cheers

Thanks for the hint. I've sent https://github.com/go-redis/redis/pull/62 to help diagnose the cause.

@dim what did you do to solve this issue?
I have the same issue (randomly) when server restarts.
Unknown Error: redis: you open connections too fast (last_error=\"dial tcp [::1]:6379: getsockopt: connection refused\"

Ah, this is probably my fault __) when I use localhost:6379 it shows those errors, when I use <IP_ADDRESS>:6379 the library works fine..


IntelliSense doesn't recognize automatically Any type in autocomplete  for functions parameter without annotation

Environment data

Language Server version: Pylance language server 2021.9.2
OS and version: 10.0.19043.1237
Python version: Python 3.8.8, Anaconda

Expected behaviour
According to PEP 484 - Any type:

A function parameter without an annotation is assumed to be annotated with Any. If a generic type is used without specifying type parameters, they are assumed to be Any:

from typing import Mapping

def use_map(m: Mapping) -> None:  # Same as Mapping[Any, Any]
    ...

Actual behaviour
Parameter without an annotation are being assumed to be "unknown" in the autocompletion:

The expected behavior should assume parameter without an annotation to be annotated with Any:

The behavior you're seeing is expected.
Pyright (the type checker that underlies pylance) distinguishes between two forms of Any. The first form is explicit, where Any has been specified in a type annotation. The second is implicit, where Any results from an omission. To distinguish between the two, it refers to the second form as Unknown. In most contexts, the two forms act the same. However, if you enable strict mode (or some of the specific diagnostic rules that strict mode implies), you will receive diagnostics when using a value whose type contains an Unknown.
If you disable type checking completely, all references to Unknown are replaced with Any in the text output. It appears that you have enabled type checking.

I'm going to close this; this is very much by design.


fix: set Vike extension name

If we could release that patch that'd be great.

Releasing...

Released<EMAIL_ADDRESS>and<EMAIL_ADDRESS>


How to use multi-touch?

Hi, thanks for the sample code.
I am a newbie to rust and wgpu.
I tried to use multi-touch, which has the gesture, and easier using than touch, I thought.
But I could not find a event for multi-touch in WindowEvent, only WindowEvent::Touch.
Do you have any idea about this?
Thank you.

Hi, I think you need to consult winit for that information since this repository is focused only on showing how to glue together winit, egui and wgpu.

Hi, I think you need to consult winit for that information since this repository is focused only on showing how to glue together winit, egui and wgpu.

Thanks for the replay.
I found the you write WindowEvent::Touch in the program, and thought maybe you know about the event.
I will try to search for more information.
Thanks again.

I have no experience with the touch stuff, sorry.


FIX issue 552

Avg response time
coverage on master

Summary of changes
Currents checks for memory reallocation is incorrectly triggered by a singleton on 1st dim when referencing a coarray (delta == 1) in a derived type.
@rouson @gutmann @zbeekman Steps to Reproduce mentioned in #552 passes with the .dat files given.
+ mpiexec -np 4 ./test-ideal
 Number of images =            4
           1 domain%initialize_from_file('input-parameters.txt')
 ximgs=           2 yimgs=           2
 call master_initialize(this)
 call this%variable%initialize(this%get_grid_dimensions(),variable_test_val)
  Layer height       Pressure        Temperature      Water Vapor
      [m]              [hPa]             [K]            [kg/kg]
   9750.00000       271.047180       206.509430       9.17085254E-06
   7750.00000       364.236786       224.725372       7.91714992E-05
   5750.00000       481.825287       243.449936       5.01311326E-04
   3750.00000       628.424316       262.669800       2.46796501E-03
   1750.00000       809.217651       282.372711       9.08217765E-03
 ThompMP: read qr_acr_qg.dat instead of computing
 qr_acr_qg initialized:  0.104000002
 ThompMP: read qr_acr_qs.dat instead of computing
 qr_acr_qs initialized:   6.89999983E-02
 ThompMP: read freezeH2O.dat instead of computing
 freezeH2O initialized:  0.500000000
 qi_aut_qs initialized:   1.40000004E-02

 Beginning simulation...
 Model run time:  61.352 seconds
<rest truncated ...>

Rationale for changes
Should fix #552
Added a regression test covering this patch.
Toolchain
gcc 8.1.0 + patches
mpich 3.2.1
caf 2.1.0 + patches
Additional info and certifications
This pull request (PR) is a:

[x] Bug fix
[ ] Feature addition
[ ] Other, Please describe:

I certify that

[x] I reviewed and followed the contributing guidelines, including
- Increasing test coverage for all feature-addition PRs
- Increasing test coverage for all bug-fix PRs for which there
does not already exist a related test that failed before the PR
- At least maintaining test coverage for all other PRs
- Ensuring that all tests pass when run locally
- Naming PR  to indicate work in progress (WIP) and to attach the PR
to the appropriate bug report or feature request issue
- White space (no trailing white space or white space errors may
be introduced)
- Commenting code where it is non-obvious and non-trivial
- Logically atomic, self consistent and coherent commits
- Commit message content
- Waiting 24 hours before self-approving the PR to give another
OpenCoarrays developer a chance to review my proposed code

This is great to see!

FYI, test failure was on GCC 6 branch, due to #347 / #266 / #161 Re-triggered the test to see if it will pass on the second attempt, since this bug is non-deterministic

LGTM
Thank you, oh so very much, @neok-m4700 🎉 🙇 🙏
Without contributors like you Open Source projects like OpenCoarrays would be doomed! Thanks again for this contribution and all your hard work! 💯

Thanks for fixing this longstanding issue, @neok-m4700 !

I finally had a chance to test this out.  While it does indeed fix the issue for 4 images, and is able to communicate with a remote image, for me this is still breaking with >64 images.  It works with 63 and 64, but breaks with 65 (and up).  I've tried a number of larger sizes up to 720 and nothing works above 64 :( I don't think this is an issue with coarray-icar code as that code base has run fine with gfortran 6.3 and cray fortran up to much larger numbers of images.
Can anyone else reproduce this?
r1i4n6:tests> mpiexec -np 65 ./test-ideal
Attaching 36339 to 685660.chadmin1

===================================================================================
=   BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
=   PID 36431 RUNNING AT r2i1n30.ib0.cheyenne.ucar.edu
=   EXIT CODE: 11
=   CLEANING UP REMAINING PROCESSES
=   YOU CAN IGNORE THE BELOW CLEANUP MESSAGES
===================================================================================
[proxy:0:0@r1i4n6] HYD_pmcd_pmip_control_cmd_cb (/glade/u/home/gutmann/scratch/opencoarrays/OpenCoarrays/prerequisites/downloads/mpich-3.2/src/pm/hydra/pm/pmiserv/pmip_cb.c:885): assert (!closed) failed
[proxy:0:0@r1i4n6] HYDT_dmxu_poll_wait_for_event (/glade/u/home/gutmann/scratch/opencoarrays/OpenCoarrays/prerequisites/downloads/mpich-3.2/src/pm/hydra/tools/demux/demux_poll.c:76): callback returned error status
[proxy:0:0@r1i4n6] main (/glade/u/home/gutmann/scratch/opencoarrays/OpenCoarrays/prerequisites/downloads/mpich-3.2/src/pm/hydra/pm/pmiserv/pmip.c:206): demux engine error waiting for event
[mpiexec@r1i4n6] HYDT_bscu_wait_for_completion (/glade/u/home/gutmann/scratch/opencoarrays/OpenCoarrays/prerequisites/downloads/mpich-3.2/src/pm/hydra/tools/bootstrap/utils/bscu_wait.c:76): one of the processes terminated badly; aborting
[mpiexec@r1i4n6] HYDT_bsci_wait_for_completion (/glade/u/home/gutmann/scratch/opencoarrays/OpenCoarrays/prerequisites/downloads/mpich-3.2/src/pm/hydra/tools/bootstrap/src/bsci_wait.c:23): launcher returned error waiting for completion
[mpiexec@r1i4n6] HYD_pmci_wait_for_completion (/glade/u/home/gutmann/scratch/opencoarrays/OpenCoarrays/prerequisites/downloads/mpich-3.2/src/pm/hydra/pm/pmiserv/pmiserv_pmci.c:218): launcher returned error waiting for completion
[mpiexec@r1i4n6] main (/glade/u/home/gutmann/scratch/opencoarrays/OpenCoarrays/prerequisites/downloads/mpich-3.2/src/pm/hydra/ui/mpich/mpiexec.c:344): process manager error waiting for completion

Also, I assume this is a new bug we have stumbled across, so I can open a new issue, but I thought I would drop this here for now in case it is related still.

@gutmann , I see some mpich-3.2 in your path.
Can you try with mpich 3.2.1 ?
see https://github.com/sourceryinstitute/OpenCoarrays/issues/496#issuecomment-364530879

@gutmann: I know we have experienced problems with Failed images in the past, because they rely on some very new MPI features (even features that are not part of MPI-3, that are proposed for MPI-4).
It would be great if you could open a new issue (if you haven't already done so) to track this.
I would recommend trying to compile OpenCoarrays with -DCAF_ENABLE_FAILED_IMAGES=FALSE
Also, as pointed out by @neok-m4700 there was a bug fix in MPICH that may not be in 3.2 but definitely seems to be in 3.2.1.

Uggg it seems like maybe someone left a debug statement somewhere. I have
never seen this before. Are you building a Release configuration of
OpenCoarrays?
On Mon, Jul 2, 2018 at 2:41 PM Ethan Gutmann<EMAIL_ADDRESS>wrote:

Thanks @neok-m4700 https://github.com/neok-m4700 @zbeekman
https://github.com/zbeekman, recompiling with mpich 3.2.1 fixed that
problem (at least it runs with 72 images now), but now it prints ,
dst_type = 3). repeatedly (it seems to be something like once for each
send... so with lots of images it gets to be a lot of output and it spends
all it's time printing to the screen so it runs much slower.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/sourceryinstitute/OpenCoarrays/pull/555#issuecomment-401896724,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAREPAqfPOzNVwenuEM3L05r7r-czLvhks5uCmlQgaJpZM4U0ciL
.

I also found out that dst_type message is printed to stderr not stdout if that helps. I installed mpich 3.2.1 using the opencoarrays install script via ./install.sh -y -j4 -p mpich -I 3.2.1.  This is using gcc 8.1, also installed via the install script.
I think this is built as a "release" (at least that is what it prints when it is building, I didn't set anything for it.)

FWIW, in opencoarrays src/mpi/mpi_caf.c I see fprintf(stderr, ", dst_type = %d", dst_type);

git blame points to 250fb067864b1584836a0ad4e6076160937e809e (For whatever that is worth)

Thanks for digging. I'll investigate further once I have some time to take
a look. It's possible that it just needs a simple preprocessor conditional
wrapping or similar.
On Mon, Jul 2, 2018 at 3:49 PM Ethan Gutmann<EMAIL_ADDRESS>wrote:

git blame points to 250fb06
https://github.com/sourceryinstitute/OpenCoarrays/commit/250fb067864b1584836a0ad4e6076160937e809e
(For whatever that is worth)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/sourceryinstitute/OpenCoarrays/pull/555#issuecomment-401913973,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAREPLBDRXQalWOWLvFjPtjiIEb-7o6gks5uCnkxgaJpZM4U0ciL
.

Also, just to add in response to:

It would be great if you could open a new issue (if you haven't already done so) to track this.

I think we should leave this discussion here for now as (I think) the relevant line was touched as part of this Pull Request, we can certainly move it elsewhere if you think that would be more useful.

@gutmann Sorry, yes this was part of the huge commit where we, changed a lot of stuff. I has been fixed in my branch https://github.com/neok-m4700/OpenCoarrays/tree/perf
especially this commit https://github.com/neok-m4700/OpenCoarrays/commit/c7399d6a0e934517ccdd1450d3cf90d1cb19d906
@zbeekman
Since this is a WIP on #556, there is no PR yet, I'm waiting updates in the comments ...

Thanks, I've just commented out those lines for now and it seems to be running fine.  You all are awesome!


Note to help people with errors

I was having an issue using pip so I added a note so that people who are having the same issue know to try to use the development version.

What was the issue?
If we're going to add this sort of thing, it needs to spell out exactly what the issue was and the precise steps to resolve it.


ImportError: cannot import name 'TransformerEncoderLayer' from 'fairseq.modules

Thank you for your work and your attentive answers to every question.
The problem occurs when I run sh train_caption_stage1.sh  . Something went wrong with fairseq
Traceback (most recent call last):
File "../../train.py", line 29, in
from fairseq import (
File "/home/carlos/cv_project/OFA/OFA/fairseq/fairseq/quantization_utils.py", line 8, in
from fairseq.modules.quantization import pq, quantization_options, scalar
File "/home/carlos/cv_project/OFA/OFA/fairseq/fairseq/modules/init.py", line 39, in
from .transformer_layer import TransformerDecoderLayer, TransformerEncoderLayer
File "/home/carlos/cv_project/OFA/OFA/fairseq/fairseq/modules/transformer_layer.py", line 15, in
from fairseq.models.transformer import (
File "/home/carlos/cv_project/OFA/OFA/fairseq/fairseq/models/init.py", line 236, in
import_models(models_dir, "fairseq.models")
File "/home/carlos/cv_project/OFA/OFA/fairseq/fairseq/models/init.py", line 218, in import_models
importlib.import_module(namespace + "." + model_name)
File "/home/carlos/anaconda3/envs/GenerativeImage2Text/lib/python3.7/importlib/init.py", line 127, in import_module
Traceback (most recent call last):
return _bootstrap._gcd_import(name[level:], package, level)  File "../../train.py", line 29, in
File "/home/carlos/cv_project/OFA/OFA/fairseq/fairseq/models/speech_to_text/init.py", line 7, in
from .convtransformer import *  # noqa
File "/home/carlos/cv_project/OFA/OFA/fairseq/fairseq/models/speech_to_text/convtransformer.py", line 19, in
from fairseq import (
from fairseq.modules import LayerNorm, PositionalEmbedding, TransformerEncoderLayer
File "/home/carlos/cv_project/OFA/OFA/fairseq/fairseq/quantization_utils.py", line 8, in
ImportError: cannot import name 'TransformerEncoderLayer' from 'fairseq.modules' (/home/carlos/cv_project/OFA/OFA/fairseq/fairseq/modules/init.py)
from fairseq.modules.quantization import pq, quantization_options, scalar
File "/home/carlos/cv_project/OFA/OFA/fairseq/fairseq/modules/init.py", line 39, in
from .transformer_layer import TransformerDecoderLayer, TransformerEncoderLayer
File "/home/carlos/cv_project/OFA/OFA/fairseq/fairseq/modules/transformer_layer.py", line 15, in
from fairseq.models.transformer import (
File "/home/carlos/cv_project/OFA/OFA/fairseq/fairseq/models/init.py", line 236, in
import_models(models_dir, "fairseq.models")
File "/home/carlos/cv_project/OFA/OFA/fairseq/fairseq/models/init.py", line 218, in import_models
importlib.import_module(namespace + "." + model_name)
File "/home/carlos/anaconda3/envs/GenerativeImage2Text/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/carlos/cv_project/OFA/OFA/fairseq/fairseq/models/speech_to_text/init.py", line 7, in
from .convtransformer import *  # noqa
File "/home/carlos/cv_project/OFA/OFA/fairseq/fairseq/models/speech_to_text/convtransformer.py", line 19, in
from fairseq.modules import LayerNorm, PositionalEmbedding, TransformerEncoderLayer
ImportError: cannot import name 'TransformerEncoderLayer' from 'fairseq.modules' (/home/carlos/cv_project/OFA/OFA/fairseq/fairseq/modules/init.py)
Traceback (most recent call last):
File "../../train.py", line 29, in
from fairseq import (
File "/home/carlos/cv_project/OFA/OFA/fairseq/fairseq/quantization_utils.py", line 8, in
from fairseq.modules.quantization import pq, quantization_options, scalar
File "/home/carlos/cv_project/OFA/OFA/fairseq/fairseq/modules/init.py", line 39, in
from .transformer_layer import TransformerDecoderLayer, TransformerEncoderLayer
File "/home/carlos/cv_project/OFA/OFA/fairseq/fairseq/modules/transformer_layer.py", line 15, in
from fairseq.models.transformer import (
File "/home/carlos/cv_project/OFA/OFA/fairseq/fairseq/models/init.py", line 236, in
import_models(models_dir, "fairseq.models")
File "/home/carlos/cv_project/OFA/OFA/fairseq/fairseq/models/init.py", line 218, in import_models
importlib.import_module(namespace + "." + model_name)
File "/home/carlos/anaconda3/envs/GenerativeImage2Text/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/carlos/cv_project/OFA/OFA/fairseq/fairseq/models/speech_to_text/init.py", line 7, in
from .convtransformer import *  # noqa
File "/home/carlos/cv_project/OFA/OFA/fairseq/fairseq/models/speech_to_text/convtransformer.py", line 19, in
from fairseq.modules import LayerNorm, PositionalEmbedding, TransformerEncoderLayer
ImportError: cannot import name 'TransformerEncoderLayer' from 'fairseq.modules' (/home/carlos/cv_project/OFA/OFA/fairseq/fairseq/modules/init.py)
Traceback (most recent call last):
File "../../train.py", line 29, in
from fairseq import (
File "/home/carlos/cv_project/OFA/OFA/fairseq/fairseq/quantization_utils.py", line 8, in
from fairseq.modules.quantization import pq, quantization_options, scalar
File "/home/carlos/cv_project/OFA/OFA/fairseq/fairseq/modules/init.py", line 39, in
from .transformer_layer import TransformerDecoderLayer, TransformerEncoderLayer
File "/home/carlos/cv_project/OFA/OFA/fairseq/fairseq/modules/transformer_layer.py", line 15, in
from fairseq.models.transformer import (
File "/home/carlos/cv_project/OFA/OFA/fairseq/fairseq/models/init.py", line 236, in
import_models(models_dir, "fairseq.models")
File "/home/carlos/cv_project/OFA/OFA/fairseq/fairseq/models/init.py", line 218, in import_models
importlib.import_module(namespace + "." + model_name)
File "/home/carlos/anaconda3/envs/GenerativeImage2Text/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/carlos/cv_project/OFA/OFA/fairseq/fairseq/models/speech_to_text/init.py", line 7, in
from .convtransformer import *  # noqa
File "/home/carlos/cv_project/OFA/OFA/fairseq/fairseq/models/speech_to_text/convtransformer.py", line 19, in
from fairseq.modules import LayerNorm, PositionalEmbedding, TransformerEncoderLayer
ImportError: cannot import name 'TransformerEncoderLayer' from 'fairseq.modules' (/home/carlos/cv_project/OFA/OFA/fairseq/fairseq/modules/init.py)
ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: 1) local_rank: 0 (pid: 16406) of binary: /home/carlos/anaconda3/envs/GenerativeImage2Text/bin/python3
Traceback (most recent call last):
File "/home/carlos/anaconda3/envs/GenerativeImage2Text/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/home/carlos/anaconda3/envs/GenerativeImage2Text/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/carlos/anaconda3/envs/GenerativeImage2Text/lib/python3.7/site-packages/torch/distributed/launch.py", line 193, in
main()
File "/home/carlos/anaconda3/envs/GenerativeImage2Text/lib/python3.7/site-packages/torch/distributed/launch.py", line 189, in main
launch(args)
File "/home/carlos/anaconda3/envs/GenerativeImage2Text/lib/python3.7/site-packages/torch/distributed/launch.py", line 174, in launch
run(args)
File "/home/carlos/anaconda3/envs/GenerativeImage2Text/lib/python3.7/site-packages/torch/distributed/run.py", line 755, in run
)(*cmd_args)
File "/home/carlos/anaconda3/envs/GenerativeImage2Text/lib/python3.7/site-packages/torch/distributed/launcher/api.py", line 131, in call
return launch_agent(self._config, self._entrypoint, list(args))
File "/home/carlos/anaconda3/envs/GenerativeImage2Text/lib/python3.7/site-packages/torch/distributed/launcher/api.py", line 247, in launch_agent
failures=result.failures,
torch.distributed.elastic.multiprocessing.errors.ChildFailedError:

Hi, please try to uninstall these dependent packages if installed: bitarray colorama hydra-core importlib_resources omegaconf sacrebleu tabulate and then reinstall the fairseq in our repo (uninstall and then reinstall from file).

Hi, please try to uninstall these dependent packages if installed: bitarray colorama hydra-core importlib_resources omegaconf sacrebleu tabulate and then reinstall the fairseq in our repo (uninstall and then reinstall from file).

Thanks a lot, I'll try it

Hi, please try to uninstall these dependent packages if installed: bitarray colorama hydra-core importlib_resources omegaconf sacrebleu tabulate and then reinstall the fairseq in our repo (uninstall and then reinstall from file).

I have tried reinstall fairseq, but still get the error:
ImportErrorImportError: : cannot import name 'TransformerEncoderLayer' from 'fairseq.modules' (/home/carlos/cv_project/OFA/OFA/fairseq/fairseq/modules/init.py)cannot import name 'TransformerEncoderLayer' from 'fairseq.modules' (/home/carlos/cv_project/OFA/OFA/fairseq/fairseq/modules/init.py)

Will this issue help #217 ?

Could you please share the pip (pip list) and conda (conda list) info for us to have a check?

Will this issue help #217 ?
Thank you very much for your answer, I refer to #217, reduced the pip version and reinstalled facirseq, which successfully solved the problem.  My previous pip version was 22.2.2 and I downgraded to 21.2.4.

I encounter the same issue with the  below pip list
(biomedgpt) (base) zhangzhongheng@zhangzhonghengs-MacBook-Pro pretrain % pip list
Package                Version         Editable project location
---------------------- --------------- ---------------------------------------
aiohappyeyeballs       2.4.0
aiohttp                3.10.5
aiosignal              1.3.1
antlr4-python3-runtime 4.8
appnope                0.1.2
asttokens              2.0.5
async-timeout          4.0.3
attrs                  24.2.0
backcall               0.2.0
bitarray               2.9.2
certifi                2024.7.4
cffi                   1.17.0
charset-normalizer     3.3.2
colorama               0.4.6
comm                   0.2.2
Cython                 3.0.11
datasets               2.7.1
debugpy                1.6.7
decorator              5.1.1
dill                   0.3.6
executing              0.8.3
fairseq                1.0.0a0+36662e9 /Users/zhangzhongheng/BiomedGPT/fairseq
filelock               3.15.4
frozenlist             1.4.1
fsspec                 2024.6.1
ftfy                   6.0.3
huggingface-hub        0.24.6
hydra-core             1.0.7
idna                   3.7
importlib-metadata     7.0.1
ipykernel              6.14.0
ipython                8.4.0
jedi                   0.18.1
Jinja2                 3.1.4
jupyter_client         8.6.0
jupyter_core           5.7.1
lxml                   5.3.0
MarkupSafe             2.1.5
matplotlib-inline      0.1.6
mkl-fft                1.3.8
mkl-random             1.2.4
mkl-service            2.4.0
mpmath                 1.3.0
multidict              6.0.5
multiprocess           0.70.14
nest-asyncio           1.6.0
networkx               3.2.1
numpy                  1.22.4
omegaconf              2.0.6
opencv-python          <IP_ADDRESS>
packaging              24.1
pandas                 2.2.2
parso                  0.8.3
pexpect                4.8.0
pickleshare            0.7.5
pillow                 10.4.0
pip                    24.0
platformdirs           3.10.0
portalocker            2.10.1
prompt-toolkit         3.0.43
psutil                 6.0.0
ptyprocess             0.7.0
pure-eval              0.2.2
pyarrow                17.0.0
pycparser              2.22
Pygments               2.15.1
python-dateutil        2.9.0.post0
pytz                   2024.1
PyYAML                 6.0.2
pyzmq                  25.1.1
regex                  2024.7.24
requests               2.32.3
responses              0.18.0
sacrebleu              2.4.3
setuptools             72.1.0
six                    1.16.0
stack-data             0.2.0
sympy                  1.13.2
tabulate               0.9.0
timm                   0.6.12
torch                  1.13.0
torchaudio             2.2.2
torchvision            0.14.0
tornado                6.4.1
tqdm                   4.66.5
traitlets              5.14.3
typing_extensions      4.12.2
tzdata                 2024.1
urllib3                2.2.2
wcwidth                0.2.13
wheel                  0.37.1
xxhash                 3.5.0
yarl                   1.9.4
zipp                   3.17.0

[notice] A new release of pip is available: 24.0 -> 24.2
[notice] To update, run: pip install --upgrade pip


renderCallback not working with multiple instances?

I want create multiple instances of tinyColorPicker: http://jsfiddle.net/030j27LL/1/
But all changes going only to first callback.

The color picker is only a single instance (due to memory usage and usually you don't need different behaviors on different input fields)...however, if you call .colorPicker() again, all the options are ignored, so you need to see what input field you chose inside your callback function to do different things.
See http://jsfiddle.net/030j27LL/2/ for what I mean...
Calling .colorPicker() again on a different selector, the selector result gets extended.
If you need a color picker with multiple instances, take the other color picker: https://github.com/PitPik/colorPicker

Thanks for that example and explain. :)


Make Azure.Identity Errors Simple, Consistent, and Actionable

Tracking Issue for the Error Message Consistency push that we'll be doing in Azure.Identity
Related Items

Simplify and consistent error messages across all Credential classes and all SDKs.
https://github.com/Azure/azure-sdk-for-net/issues/8936
POC PR Here: https://github.com/Azure/azure-sdk-for-net/pull/9038/files
Help the user diagnose what is wrong. https://github.com/Azure/azure-sdk-for-net/issues/8665

Fixed by https://github.com/Azure/azure-sdk-for-net/pull/9821


fix: Remove yanked (and unused) codecov package from ci.in; upgrade action

Merge checklist:

[x] Version bumped
[x] Changelog record added
[x] Documentation updated (not only docstrings)
[x] Commits are squashed

Also note that many packages here are out of date. I did not do a full make upgrade (I removed --upgrade before running it).


Box2D 3.0.0 compilation error with Visual Studio

I am experiencing a problem that prevents me from compiling box2d code with Visual Studio 2022 17.11.5 and an AMD64 architecture.
I report the error below:
Error: C2440	Description: 'initializing': cannot convert from 'const ImFontGlyph *' to 'ImFontGlyph *'	Project: samples	File: sample_benchmark.cpp	Line:1329
Error:E0144	Description:" a value of type "const ImFontGlyph *" cannot be used to initialize an entity of type "ImFontGlyph *"	Project:  samples	File: sample_benchmark.cpp	Line:1329

This should be fixed on main.


Crash because uri.query.params['nk'] can be None

https://github.com/mediacloud/metadata-lib/blob/57ecff0f9c4b41bad88bf541935ebf0a984d67d3/mcmetadata/urls.py#L176
Traceback (most recent call last):
  File "index-from-cdx.py", line 194, in <module>
    po(rec)
  File "index-from-cdx.py", line 154, in __call__
    metadata = extract_metadata(cdx_record)
  File "index-from-cdx.py", line 97, in extract_metadata
    metadata = extract(url=url, html_text=res.data.decode('utf-8'))
  File "/opt/wayback-search-venv/lib/python3.8/site-packages/mcmetadata/__init__.py", line 59, in extract
    normalized_url = urls.normalize_url(final_url)
  File "/opt/wayback-search-venv/lib/python3.8/site-packages/mcmetadata/urls.py", line 247, in normalize_url
    url = _remove_query_params(url)
  File "/opt/wayback-search-venv/lib/python3.8/site-packages/mcmetadata/urls.py", line 177, in _remove_query_params
    for nk_value in uri.query.params['nk']:
TypeError: 'NoneType' object is not iterable

Do you have an example of a url which causes this error in the wild? I would like to add a test case.


hasTimestamps doesn't handle null value

Introduction
The attribute hasTimestamps handle the "null" value as a column name instead of ignoring this column.
Issue Description
I have a table with only the "created_at" column and no "updated_at" column as I don't want to allow edition on this table. I followed the documentation to create the model and set the attribute "hasTimestamps" to this value : ['created_at', null].
Then, when I try to insert a new value in the table, I have this error: "column "null" does not exist".
Steps to reproduce issue

Create a "test" table in your DB with this schema:
id: primary key, autoincrement
name: string
created_at: timestamp

Create the following model:
const Model = bookshelf.Model.extend({
tableName: 'test',
hasTimestamps: ['created_at', null],
})

Save a new data in the table:
return new Model({ name: "My test"}).save()

Expected behaviour
The object is saved in the DB with the "created_at" column filled.
Actual behaviour
I get this error: "column "null" does not exist"

Fixed in #1820. Will be released when 0.14.0 comes out.


Update MakeConst.Vsix.csproj

Parallel to https://github.com/dotnet/docs/pull/23583.
Closes #4490
Closes #4561

Close and re-open, to trigger Snippets 5000

@BillWagner The issue here was never fixed so snippets5000 will always stay stuck. The reason could be that Visual Studio used by the build doesn't contain the Roslyn workload installed.

Thanks @Youssef1313

I'll go ahead and merge this, as we've pulled it down and it builds. Like cause is the lack of the roslyn workload on the container.


feat: add yassinebridi/serpl

yassinebridi/serpl: A simple terminal UI for search and replace, ala VS Code
$ aqua g -i yassinebridi/serpl

Check List

[x] Read CONTRIBUTING.md

[x] Read OSS Contribution Guide

[x] All commits are signed

This repository enables Require signed commits, so all commits must be signed

[x] Avoid force push
[x] Do only one thing in one Pull Request
[x] Execute cmdx s to scaffold code
[x] Install and execute the package and confirm if the package works well

How to confirm if this package works well
Reviewers aren't necessarily familiar with this package, so please describe how to confirm if this package works well.
Please confirm if this package works well yourself as much as possible.
Command and output
$ serpl --help
A simple terminal UI for search and replace, ala VS Code

Usage: serpl [OPTIONS]

Options:
  -p, --project-root <PATH>  Path to the project root [default: .]
  -h, --help                 Print help
  -V, --version              Print version

Thank you always!

v4.198.0 is out 🎉
https://github.com/aquaproj/aqua-registry/releases/tag/v4.198.0


Compress Image with Max Size without use upload

I need to compress an image and get compressed image with a max size. I have the image uploaded before, then I can not use uploadAndGetImageWithMaxSize(), then I use directly the function compressFile() but the last one doesn't have the option to put a max size like function parameter.
Is there a way to just call the file compression function but with a maximum final file size, without calling an upload function?
Thank you.

Same for me. We have a dropzone and then crop functionality before compression.
Can you please advice on how to achieve Max Size compression in that flow?
Thanks in advance!

The only complication is to define what will be the input for the this compress function. If the upload is done externally, or using the upload function from the library? Maybe we need to support both

I also have a similar need. After uploading the photo, we perform a series of different processing operations and finally we need to compress it to the maximum size.
When do you think this feature will be available?
Thanks in advance!

Waiting for this feature update. Any estimated timeline?

Waiting for this feature update. Any estimated timeline?

It's asked multiple times, so let say by the end of the week

Waiting for this feature update. Any estimated timeline?

It's asked multiple times, so let say by the end of the week

Looking forward to hear an update on this..

missed last time. this week.

@dfa1234 anything new

Hey David, @dfa1234 anything new now. Im sure you have a lot of things to do, but it would be really great to see an update here.

Yes this is in progress and published by today
On 22 Jul 2024, at 6:42, Nand @.***> wrote:

Hey David, @dfa1234https://github.com/dfa1234 anything new now. Im sure you have a lot of things to do, but it would be really great to see an update here.
—
Reply to this email directly, view it on GitHubhttps://github.com/dfa1234/ngx-image-compress/issues/107#issuecomment-2241983430, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACA3Z5PJYURWRBMIPYVNVS3ZNR5TPAVCNFSM6AAAAAA3CF2TO6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBRHE4DGNBTGA.
You are receiving this because you were mentioned.Message ID: @.***>

COde is being published. If someone in the thread feel like helping, please raise a flag is anything broke or something, I went on "yolo mode" for this one, with little test to speed up.


session_duration not working

Describe the bug
I configured as follows by referring to here and here:
...
aws:
    ...
    session_duration: 28800
...

However if I assume role, session duration is still 3600 (I  also checked them in cloudtrail)

To Reproduce

configure aws.session_duration to 28800
click Sign-in button in "AWS Console Roles" page

Expected behavior
sign in the role with configured session duration
Additional context
I'm using consoleme/consoleme:unstable

sorry it was my fault, I misssed Maximum session duration of the role

sorry again.. there were extra indents
aws:
    ...
    session_duration: 28800

it should've been
aws:
  ...
  session_duration: 28800


Avoid zeros in dice and iou

What does this PR do?
Fixes #2545 better way that adding epsilon
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃

it really should be an epsilon...
but in 16 bit 1e-15 is 0.... @Borda

it really should be an epsilon...
but in 16 bit 1e-15 is 0.... @Borda

if you test that denom is not zero then you do not need any eps

Hello @Borda! Thanks for updating this PR.

In the file pytorch_lightning/utilities/__init__.py:

Line 21:49: W292 no newline at end of file


Add changelog for v1.11.1

Signed-off-by: Kenfe-Mickael Laventure<EMAIL_ADDRESS>
NOTE: This include entries for PR which have not been merged yet

Updated with the latest PRs added to 1.11.1.
PTAL.

Updated as 3 PRs were removed from the milestone

one minor nit, but LGTM otherwise

@thaJeztah updated

LGTM


No streams found on this URL [Azubu]

Livestreamer is unable to find a stream for any Azubu channel I give it, eg. http://www.azubu.tv/MarsTVMDLen which I am watching in browser right now.
livestreamer 1.12.2 on windows 8.1 x64

Same here, on Gentoo Linux amd64, with livestreamer 1.12.2.

Same here, windows 8.1, livestreamer 1.12.2
I was going to watch Mars TV Dota 2 League : (

#942 has resolved.

when he will release ?

If you don't want to wait for the new release just install from source or install the latest nightly build if you are on windows.

Thanks.


Missing batch dimension of the masks in BatchedVideoDatapoint.

Hello!
Thanks for your release of the training code. While reading the training code, I have some confusion regarding the data format in BatchedVideoDatapoint.
The dimensions of img_batch and masks do not match here,
img_batch:  [TxBxCxHxW]
masks:  [TxOxHxW]

Ideally, masks should have a batch dimension (corresponding to img_batch).
Why is it missing here, is this a bug? If not, does this mean that the batch size can only be set to 1 during training?
Your insights and guidance on resolving this issue would be greatly appreciated. Thanks.

Hi @EricLina, the number of masks in a batch of videos is variable depending on the number of objects in each video. We stack all the masks in a batch of videos in the second dimension of the masks tensor (denoted by O). The batch size (B - number of videos) can be arbitrary during training. I hope this resolves the confusion, please let me know if you have further questions.


Multiple date formats are ignored

Hi,
I'm experiencing an issue where I have a single date field and a single datetime field. The two fields use different locale formats, but when both exist on the page, the second format overrides the first.
This could be a duplicate of another open issue, but it's difficult to tell.
CodePen: http://codepen.io/chrisparton1991/pen/eBOVEG
Note that the date field does not have the correct format applied. Commenting out the HTML for the datetime field resolves the issue.

Is this issue resolve? I'm experiencing the same problem when I have two daterangepicker on the same page.


We are running tests with the following command:
docker run -it --rm --user root -v $(pwd):/tests/ testcafe/testcafe:1.19.0 firefox -S --screenshots /tests/reports/screenshots --selector-timeout 120000 --assertion-timeout 120000 /tests/src/testcafe/tests/smoketest --reporter spec,xunit:/tests/reports/testcafe-test-report.xml

What is the Current behavior?
The testcafe process is not executed, but a dbus-daemon --session --fork process is started, which utilizes 100% CPU (please see attached image).
What is the Expected behavior?
The tests are executed in the Docker container
What is your public website URL? (or attach your complete example)
Not relevant, since test code is never executed
What is your TestCafe test code?
Not relevant, since test code is never executed
Your complete configuration file
No response
Your complete test report
No response
Screenshots

Steps to Reproduce

Setup AlmaLinux 9 host
Install docker-ce 20.10.22
Run any minimal test with Testcafe Image >= 1.19.0

TestCafe version
1.19.0
Node.js version
No response
Command-line arguments
Not relevant, since Testcafe is not executed
Browser name(s) and version(s)
No response
Platform(s) and version(s)
AlmaLinux 9.1 (Kernel 5.14.0-162.6.1.el9_1.x86_64), Docker-CE 20.10.22
Other
If we omit the dbus-daemon --session --fork command in the testcafe-docker.sh script, the tests are executed. (Why is the dbus needed?)
I tracked the behaviour down to dbus 1.14.x. It does not happen with dbus 1.12.x.
Since Testcafe Image is based on alpine:edge, you can reproduce the issue with running the following simple commands in alpine:edge
apk add dbus
dbus-daemon --version

I don't have an AlmaLinux host, installing and configuring it can take some time. And I cannot reproduce the issue on Windows with Docker 20.10.21.

So I guess it's better to submit this issue to the AlmaLinux bug tracker.

Hi @dschuldt
Thank you for sharing this workaround.


Enable applying multiple Configurations that use the same Discovery Handler

Signed-off-by: Kate Goldenring<EMAIL_ADDRESS>
What this PR does / why we need it:
closes #431
Multiple configurations should be able to be applied that use the same DiscoveryHandler in order to support deploying different types of brokers to devices and discovering different sets of devices. For example, you may want to deploy two Configurations that use the udev Discovery Handler as follows: one that discovers USB cameras and deploys a broker that grabs frames from the camera and another that discovers GPUs and deploys inferencing pods.
Special notes for your reviewer:
Removes the concept of DiscoveryHandlerStatus which seemed unnecessary.
Removed tests in config_action.rs that were actually failing due to improperly referencing the MockDiscoveryOperator. The DiscoveryOperator should be reworked into a trait structure so it can be more easily mocked.
If applicable:

[ ] this PR has an associated PR with documentation in akri-docs
[x] this PR contains unit tests
[x] added code adheres to standard Rust formatting (cargo fmt)
[x] code builds properly (cargo build)
[x] code is free of common mistakes (cargo clippy)
[x] all Akri tests succeed (cargo test)
[x] inline documentation builds (cargo doc)
[x] version has been updated appropriately (./version.sh)
[ ] all commits pass the DCO bot check by being signed off -- see the failing DCO check for instructions on how to retroactively sign commits

@romoh @bfjelds can you take a look at this. This is a good bug to fix

i don't remember exactly why we had a filter for endpoint=Active.
is it possible that what we really wanted was (endpoint+configurationName)=Active?

Sorry @bfjelds forgot to hit enter on the reply. I think it was to prevent multiple configurations from using the same discovery handler. I dont know why i thought that was something to prevent when we definitely want that to be enabled. I dont see a reason for tracking state as we can tell when we lose connection with the Discovery Handler


Can't dismiss "breadcrumbs.focusAndSelect" using keyboard

Type: Bug

Open the breadcrumbs menu (CMD + SHIFT + .)
Try to close it (ESC, SHIFT + ESC)

Expectation: The view closes and the cursor returns to its original place
Actual: Can't dismiss it without selecting a breadcrumb or mouse clicking away
This is not a new problem
VS Code version: Code - Insiders 1.87.0-insider (Universal) (ec291c126878742ad640055ce604a58129cd088c, 2024-02-05T05:47:43.946Z)
OS version: Darwin arm64 23.2.0
Modes:

System Info

Item
Value

CPUs
Apple M1 Max (10 x 24)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: enabledwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
10, 11, 13

Memory (System)
32.00GB (0.06GB free)

Process Argv
--crash-reporter-id 70a87a82-3a18-4efd-a579-683643eba8e8

Screen Reader
no

VM
0%

Extensions (58)

Extension
Author (truncated)
Version

better-comments
aar
3.0.2

TabOut
alb
0.2.2

Bookmarks
ale
13.4.2

scratchpads
bue
1.0.0

simple-react-snippets
bur
1.2.7

path-intellisense
chr
2.8.5

regex
chr
0.4.0

vscode-eslint
dba
2.4.4

es7-react-js-snippets
dsz
4.4.3

gitlens
eam
2024.2.404

prettier-vscode
esb
10.1.0

vscode-expo-tools
exp
1.0.7

vscode-jest-runner
fir
0.4.72

code-runner
for
0.12.1

shell-format
fox
7.2.5

copilot
Git
1.156.689

copilot-chat
Git
0.13.2024020201

remotehub
Git
0.63.2024010901

gitlab-workflow
Git
3.101.1

todo-tree
Gru
0.0.226

selected-lines-count
gur
1.4.0

debug-visualizer
hed
2.4.0

realtime-debugging
hed
0.1.0

vscode-power-mode
hoo
3.0.2

search-editor-apply-changes
jak
0.1.1

jwt-decoder
jfl
1.2.0

svg
joc
1.5.3

git-graph
mhu
1.30.0

vscode-docker
ms-
1.28.0

vscode-edge-devtools
ms-
2.1.4

jupyter
ms-
2024.2.2024020501

jupyter-keymap
ms-
1.1.2

jupyter-renderers
ms-
1.0.17

vscode-jupyter-cell-tags
ms-
0.1.8

vscode-jupyter-slideshow
ms-
0.1.5

remote-repositories
ms-
0.41.2023121801

vscode-js-profile-flame
ms-
1.0.8

vscode-typescript-next
ms-
5.4.20240204

vscode-react-native
msj
1.12.3

color-highlight
nau
2.5.0

vscode-twoslash-queries
Ort
1.2.2

vscode-versionlens
pfl
1.9.2

quicktype
qui
12.0.46

vscode-xml
red
0.26.1

vscode-yaml
red
1.14.0

partial-diff
ryu
1.4.3

vscode-javascript-booster
sbu
14.0.1

vscode-fileutils
sle
3.10.3

code-spell-checker
str
3.0.1

even-better-toml
tam
0.19.2

luna-paint
Tyr
0.16.0

errorlens
use
3.16.0

intellicode-api-usage-examples
Vis
0.2.8

quokka-vscode
Wal
1.0.625

vscode-import-cost
wix
3.3.0

vscode-jumpy
wma
0.3.1

pretty-ts-errors
Yoa
0.5.3

markdown-all-in-one
yzh
3.6.2

A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
vsaa593:30376534
py29gd2263:30784851
c4g48928:30535728
a9j8j154:30646983
962ge761:30841072
pythongtdpath:30726887
welcomedialog:30812478
pythonidxpt:30768918
pythonnoceb:30776497
asynctok:30898717
dsvsc013:30777762
dsvsc014:30777825
dsvsc015:30821418
pythontestfixt:30866404
pythonregdiag2:30926734
pyreplss1:30879911
pythonmypyd1:30859725
pythoncet0:30859736
pythontbext0:30879054
accentitlementst:30870582
dsvsc016:30879898
dsvsc017:30880771
dsvsc018:30880772
d34g3935:30953408
b5d27386:30943795
fegfb526:30952798
7j2b6412:30951517
bg6jg535:30946824
ccp2r3:30950906

ESC does it for me, please check your keybindings. Do so via "F1 > Toggle Keyboard Shortcuts Troubleshooting"

Awesome, I didn't know that existed! Thanks!
Anyway, it looks like I have an extension that's being matched first. Attaching the logs here.
I can probably fix it locally by setting when, but what's the best way to get this fixed in general? Open an issue in the extension's GH?
2024-02-06 11:01:39.706 [info] [KeybindingService]: / Soft dispatching keyboard event
2024-02-06 11:01:39.706 [info] [KeybindingService]: \ Keyboard event cannot be dispatched
2024-02-06 11:01:39.707 [info] [KeybindingService]: / Received  keydown event - modifiers: [shift], code: ShiftLeft, keyCode: 16, key: Shift
2024-02-06 11:01:39.707 [info] [KeybindingService]: | Converted keydown event - modifiers: [shift], code: ShiftLeft, keyCode: 4 ('Shift')
2024-02-06 11:01:39.707 [info] [KeybindingService]: \ Keyboard event cannot be dispatched in keydown phase.
2024-02-06 11:01:39.720 [info] [KeybindingService]: / Soft dispatching keyboard event
2024-02-06 11:01:39.720 [info] [KeybindingService]: \ Keyboard event cannot be dispatched
2024-02-06 11:01:39.720 [info] [KeybindingService]: / Received  keydown event - modifiers: [shift,meta], code: MetaLeft, keyCode: 91, key: Meta
2024-02-06 11:01:39.720 [info] [KeybindingService]: | Converted keydown event - modifiers: [shift,meta], code: MetaLeft, keyCode: 57 ('Meta')
2024-02-06 11:01:39.720 [info] [KeybindingService]: \ Keyboard event cannot be dispatched in keydown phase.
2024-02-06 11:01:39.945 [info] [KeybindingService]: / Soft dispatching keyboard event
2024-02-06 11:01:39.945 [info] [KeybindingService]: | Resolving shift+meta+[Period]
2024-02-06 11:01:39.945 [info] [KeybindingService]: \ From 4 keybinding entries, matched breadcrumbs.focusAndSelect, when: breadcrumbsPossible && breadcrumbsVisible, source: built-in.
2024-02-06 11:01:39.946 [info] [KeybindingService]: / Received  keydown event - modifiers: [shift,meta], code: Period, keyCode: 190, key: .
2024-02-06 11:01:39.946 [info] [KeybindingService]: | Converted keydown event - modifiers: [shift,meta], code: Period, keyCode: 89 ('.')
2024-02-06 11:01:39.946 [info] [KeybindingService]: | Resolving shift+meta+[Period]
2024-02-06 11:01:39.946 [info] [KeybindingService]: \ From 4 keybinding entries, matched breadcrumbs.focusAndSelect, when: breadcrumbsPossible && breadcrumbsVisible, source: built-in.
2024-02-06 11:01:39.946 [info] [KeybindingService]: + Invoking command breadcrumbs.focusAndSelect.
2024-02-06 11:01:40.181 [info] [KeybindingService]: + Ignoring single modifier meta due to it being pressed together with other keys.
2024-02-06 11:01:42.211 [info] [KeybindingService]: / Soft dispatching keyboard event
2024-02-06 11:01:42.211 [info] [KeybindingService]: | Resolving [Escape]
2024-02-06 11:01:42.211 [info] [KeybindingService]: \ From 74 keybinding entries, matched extension.jumpy-exit, when: no when condition, source: user.
2024-02-06 11:01:42.211 [info] [KeybindingService]: / Soft dispatching keyboard event
2024-02-06 11:01:42.211 [info] [KeybindingService]: | Resolving [Escape]
2024-02-06 11:01:42.211 [info] [KeybindingService]: \ From 74 keybinding entries, matched extension.jumpy-exit, when: no when condition, source: user.
2024-02-06 11:01:42.211 [info] [KeybindingService]: / Soft dispatching keyboard event
2024-02-06 11:01:42.211 [info] [KeybindingService]: | Resolving [Escape]
2024-02-06 11:01:42.212 [info] [KeybindingService]: \ From 74 keybinding entries, matched extension.jumpy-exit, when: no when condition, source: user.
2024-02-06 11:01:42.212 [info] [KeybindingService]: / Received  keydown event - modifiers: [], code: Escape, keyCode: 27, key: Escape
2024-02-06 11:01:42.212 [info] [KeybindingService]: | Converted keydown event - modifiers: [], code: Escape, keyCode: 9 ('Escape')
2024-02-06 11:01:42.212 [info] [KeybindingService]: | Resolving [Escape]
2024-02-06 11:01:42.212 [info] [KeybindingService]: \ From 74 keybinding entries, matched extension.jumpy-exit, when: no when condition, source: user.
2024-02-06 11:01:42.212 [info] [KeybindingService]: + Invoking command extension.jumpy-exit.

Ok just looked at my settings and it looks like the shortcut didn't even come from the extension itself, it's just a suggestion they make in their readme.
I changed it to this and now it works fine:

Thanks, I consider this resolved!


translation into Chinese

我也做了一個繁體中文的翻譯，晚點給你連結

Thanks, @ZYSzys and @yoyoys.
Nice works!
Do you guys want me to add the link to README or something else?

@simsim0709 Good idea.And I'm gonna add this two links and create a new PR.

It's my pleasure.


GetAllGlobs optimizations

GetAllGlobs has become part of the VS solution load critical path. This PR does a couple of optimizations:

makes MsBuildGlob computation lazy, so VS computes it on the first use, not when the solution opens
reduces allocations

Numbers from GetAllGlobs when simulating the Roslyn.sln solution load:

Not including the lazy glob change:

Including the lazy glob change:

Closes #2647

This has some positive effect to normal evaluations as well.
Evaluation: Time (ms)

Test
Overall
Significant δ
Value

DotnetConsoleProject
:white_check_mark:
yes
90.5128 -> 89.9722 (-0.597%)

DotnetWebProject
:red_circle:
yes
134.1791 -> 135.2581 (0.804%)

DotnetMvcProject
:ok_hand:
no
159.2565 -> 159.4997 (0.153%)

Picasso
:white_check_mark:
yes
759.5962 -> 749.7776 (-1.293%)

SmallP2POldCsproj
:white_check_mark:
yes
131.4117 -> 128.2061 (-2.439%)

SmallP2PNewCsproj
:white_check_mark:
yes
240.465 -> 236.98 (-1.449%)

Generated_100_100_v150
:white_check_mark:
yes
1582.2244 -> 1558.1152 (-1.524%)

LargeP2POldCsproj
:red_circle:
yes
2192.5697 -> 2245.8899 (2.432%)

roslyn
:ok_hand:
no
9367.4792 -> 9422.6194 (0.589%)

Evaluation: Memory (bytes)

Test
Overall
Significant δ
Value

DotnetConsoleProject
:white_check_mark:
yes
4893316 -> 4860702 (-0.667%)

DotnetWebProject
:white_check_mark:
yes
6566869 -> 6533440 (-0.509%)

DotnetMvcProject
:white_check_mark:
yes
7409405 -> 7378798 (-0.413%)

Picasso
:white_check_mark:
yes
34226829 -> 33165484 (-3.101%)

SmallP2POldCsproj
:white_check_mark:
yes
5881835 -> 5800067 (-1.39%)

SmallP2PNewCsproj
:white_check_mark:
yes
10340682 -> 10217682 (-1.189%)

Generated_100_100_v150
:white_check_mark:
yes
143419601 -> 138482239 (-3.443%)

LargeP2POldCsproj
:white_check_mark:
yes
83705415 -> 81511535 (-2.621%)

roslyn
:white_check_mark:
yes
403004965 -> 386487561 (-4.099%)

Build: Time (ms)

Test
Overall
Significant δ
Value

DotnetConsoleProject
:ok_hand:
no
23.0976 -> 23.1529 (0.239%)

DotnetWebProject
::ok_hand:
no
28.3275 -> 28.3214 (-0.022%)

DotnetMvcProject
:red_circle:
yes
31.3032 -> 31.5834 (0.895%)

Picasso
:white_check_mark:
yes
3129.9459 -> 3071.3088 (-1.873%)

SmallP2POldCsproj
:white_check_mark:
yes
151.2811 -> 148.7585 (-1.667%)

SmallP2PNewCsproj
:white_check_mark:
yes
157.7064 -> 156.9531 (-0.478%)

Build: Memory (bytes)

Test
Overall
Significant δ
Value

DotnetConsoleProject
:ok_hand:
no
1161445 -> 1161768 (0.028%)

DotnetWebProject
:red_circle:
yes
1281363 -> 1284197 (0.221%)

DotnetMvcProject
:red_circle:
yes
1458619 -> 1459441 (0.056%)

Picasso
:white_check_mark:
yes
121891367 -> 118498284 (-2.784%)

SmallP2POldCsproj
:white_check_mark:
yes
6149767 -> 6115086 (-0.564%)

SmallP2PNewCsproj
:white_check_mark:
yes
6414870 -> 6375686 (-0.611%)


Show Spanned and Datetime in docs

Removes #[doc(no_inline)] from the Spanned re-export in lib.rs and from the Datetime* re-exports in value.rs
Resolves #408

Could we get a release with this fix? Documentation of Spanned and Datetime is still missing from docs.rs.

@dtolnay Published 0.5.8 https://docs.rs/toml/0.5.8/toml/


Converting object to an encodable object faild when beamLocation updated

I pass the state.data when beam location updated:
Beamer.of(context).currentBeamLocation.update(
              (state) => state.copyWith(
                pathBlueprintSegments: [
                  'library/${model.collectionId}',
                  ':mediaId'
                ],
                pathParameters: {'mediaId': model.id},
                data: {'data': model},
              ),
            );

Then in buildPages, the code like:
if (state.pathParameters.containsKey('mediaId') &&
            state.data['data'] != null)
          BeamPage(
            type: BeamPageType.fadeTransition,
            key: ValueKey('media-${state.pathParameters['media']}'),
            child: MediaDetailScreen(
              mediaId: state.pathParameters['mediaId']!,
              model: state.data['data'] as MediaModel,
            ),
          ),

state.data can not be converted into object.
The code is workable on version 0.12.4

@skypu3 that seems related to: https://github.com/slovnicki/beamer/issues/306

@slovnicki
Thanks, I changed code to only pass id to solve the issue.


Incorrect anchor link including an underscore character

🐛 Bug Report
When an underscore character (_) is included in an anchor link, Docusaurus converts the underscore to a hyphen (e.g. #foo_bar → #foo-bar).
This behavior is different from GitHub's one, so it's very confusing. 😓
Have you read the Contributing Guidelines on issues?
Yes. 👍
To Reproduce

Run git clone https://github.com/ybiquitous/docusaurus-sandbox on your terminal.
Run cd docusaurus-sandbox/website.
Run yarn install.
Run yarn run start.
Open http://localhost:3001/docs/doc1 page on your browser.
Click foo_bar link on the page.

Expected behavior
Jump to the #foo_bar section.
Actual Behavior
Not Jump to the #foo_bar section.

Reproducible Demo
https://github.com/ybiquitous/docusaurus-sandbox
Environment:

Node 10.15.3
Yarn 1.15.2
Docusaurus 1.7.3

Here is a GitHub's behavior:

I hope Docusaurus would behave as same. 🙏

What a tricky bug !
I made some test of headings https://gist.github.com/endiliey/f5256045e80c1c10436c6bdfce9c5961
Seems that it replaces all special characters except _ to -
Docusaurus only replaces all special characters to -

Thank you so much for the quick fix! 😂


Feature request: Support conversion from GeoJSON to JSON records

Some APIs return GeoJSON when the output format is set to JSON. The base library should probably handle the conversion to "regular" JSON, either in the form of a JSON blob with a list of records, or NDJSON.
Example: http://resource.sgu.se/oppnadata/grundvatten/api/miljoovervakning/lan/{countycode}?format=[csv,json]

Closing as out of scope, as we are primarily focusing on statistical, numerical data. Good idea, but will not happen anytime soon, anyway


Unable to set default image with react- filepond

Hello ,
I am unable to set initial file to react file pond
getting below error message
Uncaught TypeError: url.split is not a function
at getFilenameFromURL (filepond.js:2230)
at Object.request.onload (filepond.js:3571)
at XMLHttpRequest.xhr.onload (filepond.js:2635)

my current code reference:
constructor(props) {
super(props);
    this.state = {
        files: [
            {
                // the server file reference
                source: 'https://image.shutterstock.com/image-photo/bright-spring-view-cameo-island-260nw-1048185397.jpg',

                // set type to local to indicate an already uploaded file
                options: {
                    type: 'local',

                    file: {
                        name: 'bar.jpg',
                        size: 1234,
                        type: 'image/jpeg'
                    }
                }
            }
        ]

    };

}

handleInit() {
    console.log('FilePond instance has initialised', this.pond);
    this.pond.addFile('https://image.shutterstock.com/image-photo/bright-spring-view-cameo-island-260nw-1048185397.jpg', {
        type: 'local',
        file: {
            name: 'bar.jpg',
            size: 1234,
            type: 'image/jpeg'
        }
    })

}
render() {
    return (

            <FilePond
                className="addProfile"
                ref={ref => (this.pond = ref)}
                files={this.state.files}
                allowMultiple={false}
                imageCropAspectRatio="1:1"
                name="filepond"
                class="filepond"
                labelIdle="
+
                            Add a profile

                            picture
"
                allowFileTypeValidation="true"
                instantUpload="false"
                acceptedFileTypes="image/png, image/jpeg, image/gif"
                allowImagePreview="true"
                allowImageCrop="true"
                allowImageEdit="true"
                allowImageResize="true"
                allowImageTransform="true"
                allowReplace="true"
                allowImageExifOrientation="true"
                checkValidity="true"
                maxFiles="1"
                oninit={() => this.handleInit() }
                imageResizeTargetWidth="150"
                imageResizeTargetHeight="150"
                stylePanelLayout="compact circle"
                styleLoadIndicatorPosition="center bottom"
                styleProgressIndicatorPosition="right bottom"
                styleButtonProcessItemPosition="right bottom"
                styleButtonRemoveItemPosition="left bottom"
                imageEditEditor={doka}
                onupdatefiles={fileItems => {
                    this.onSelectImage(fileItems);
                }}
            />

    );
}

}
I just get processing icon the image never loads.
Please help me with this and let me know what i am doing wrong.
I want set default image
And the doka edit button is also disabled with no defaultimage. I dont understand why?

Please  view the screen shot for reference.
Unable to understand from documentation used below link already:
https://pqina.nl/filepond/docs/patterns/api/filepond-object/#setting-initial-files
Please help...

Local files have to be set in the files array, addFile is only for new files.

It works...
Thank you so much... :-) It was really helpful..
Another question would be is there any possible way to set remote URL as the source.
Please let me know. As my default image will not be in my local.

That's possible but that would require the remote server to allow cross origin requests. Otherwise you might have to set up a proxy on your local server.
https://pqina.nl/filepond/docs/patterns/api/server/

ok. I want to display users profile image here. And the profile images are stored in amazon s3 bucket, hence what i receive in response is some URL. So if i pass this url directly in files[] source it does not work.
could you please share me any some sample code snippet to setup my server without any cors issues and where exactly should i be setting these options (call setOptions method) and how i can set this url to source.

You'll have to implement the server.load end point.

Ok . Thank you for help...
I will try that out.


problem with preprocessing

Hi, how can i solve this error?

Hi, how can i solve this error?

Hi, how can i solve this error?

Hello, were you able to solve it? I am getting the same error

unfortunately I was unable to solve it


Remove gon gem

I rule and have completed some work on Case Manager that's ready for review!
We were using gon on the old reports, but we aren't anymore, so this strips it in favor of render_async
tech debt!
(the old PR #1488 was a little overtaken by events, so respinning it up.)

Were we even using gon? I see a few references but it looks like this was mostly just "remove because it's not being used at all"

Nah. We were using it in an early reporting take but subbed it out for
plain old controller actions and async loads. This has been dead weight for
awhile now.


feat(compatibility): Updated to Angular 9, closes #73, closes #75

:tada: This PR is included in version 2.1.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Emit grpc-status in initial response headers on error

Summary
Clients are unable to determine when streaming response methods fail early
because grpc-status and grpc-message headers are not included in the intial
HEADERS frame. Failures in response methods result in these headers being
present in trailers.
Solution
tower_grpc::Codec now dispatches to its inner
tower_grpc::generic::Encode<Encode<_, _>>::is_end_stream method to determine
if the EOS flag should be set on the encoded gRPC response body.
generic's Encode::EncodeInner::Err variant has had it's status field
removed as that is now included as headers in the intial response. Since there
is never a body set on Encode::EncodeInner::Err responses, the EOS flag can be
conditionally set.
As @olix0r demonstrated in #202, a server that responds with an error results in
two HEADERS frames. It now results in one as shown below.
HyperText Transfer Protocol 2
    Stream: HEADERS, Stream ID: 1, Length 94, 200 OK
        Length: 94
        Type: HEADERS (1)
        Flags: 0x05
            .... ...1 = End Stream: True
            .... .1.. = End Headers: True
            .... 0... = Padded: False
            ..0. .... = Priority: False
            00.0 ..0. = Unused: 0x00
        0... .... .... .... .... .... .... .... = Reserved: 0x0
        .000 0000 0000 0000 0000 0000 0000 0001 = Stream Identifier: 1
        [Pad Length: 0]
        Header Block Fragment: 885f901d75d0620d263d4c4d6564ff75d8749f40889acac8...
        [Header Length: 174]
        [Header Count: 5]
        Header: :status: 200 OK
            Name Length: 7
            Name: :status
            Value Length: 3
            Value: 200
            :status: 200
            Representation: Indexed Header Field
            Index: 8
        Header: content-type: application/grpc+proto
            Name Length: 12
            Name: content-type
            Value Length: 22
            Value: application/grpc+proto
            content-type: application/grpc+proto
            Representation: Literal Header Field with Incremental Indexing - Indexed Name
            Index: 31
        Header: grpc-status: 12
            Name Length: 11
            Name: grpc-status
            Value Length: 2
            Value: 12
            Representation: Literal Header Field with Incremental Indexing - New Name
        Header: grpc-message: I%20SAID%20ONE%20FRAME%20PLEASE!
            Name Length: 12
            Name: grpc-message
            Value Length: 32
            Value: I%20SAID%20ONE%20FRAME%20PLEASE!
            Representation: Literal Header Field with Incremental Indexing - New Name
        Header: date: Wed, 25 Sep 2019 03:54:06 GMT
            Name Length: 4
            Name: date
            Value Length: 29
            Value: Wed, 25 Sep 2019 03:54:06 GMT
            date: Wed, 25 Sep 2019 03:54:06 GMT
            Representation: Literal Header Field with Incremental Indexing - Indexed Name
            Index: 33

Closes #202
Signed-off-by: Kevin Leimkuhler<EMAIL_ADDRESS>

So I'm not sure if this is correct, I took a bit of a different solution to this. It was to encode an empty body and totally avoid using the Encode struct if we got an inital error status. This should then allow the error status to be sent in one header that half closes.

@LucioFranco So I had in initially considered making ResponseFuture<_, _>::Item = http::Response<Option<Encode<_, _>>> This way, when an error occurs we can return no Encode struct and handle the error separately.
Would this still be an issue though with what you pointed out about when the inner stream bails out?

@kleimkuhler so I think an issue with the Option model is that None doesn't implement Body? I think we can actually fix this bug but not even touching encoding at all but when the inital Error happens we just supply an empty body and set the header. I found this fixed a few interop tests with grpc-go.

@LucioFranco Thanks for the review on this! I've updated the changes to return an empty response with gRPC codes added to the headers without removing the status field from EncodeInner::Err.
The above example still works as would be expected--one frame is returned.