Proper way to detect sentiments?

Hello, I'm trying to create a more complicated version of the Sentiment detector, using this example here: https://scrimba.com/p/pVZJQfg/c3n6qfg
However, I'm getting odd results. It seems to work well when there is very little data. But once I put a lot of data, it returns results like "T T T T T T T T T T T T" or some odd words created by mixing input and output.
What can I do to ensure the integrity of the outputs when I have a lot of data?

Can you show your code & network configuration?
How many inputs?
How many training iterations?


Intellicards now have a doAfter.

About the PR

Intellicards now have a doAfter instead of being instant.
AI now gets a notification when they are getting intellicarded.
Why / Balance

Not fun. Many AI players suffered. :(
Technical details

Exchanging AI between card and core now is a doAfter.
Added the IntellicardComponent that controls the sound and the doAfter durations.
Media

Don't mind the double sound I had 2 clients open
https://github.com/user-attachments/assets/fe75012b-f3a9-4155-ac9b-93e6a01d7ced
Requirements

[X] I have read and am following the Pull Request and Changelog Guidelines.
[X] I have added media to this PR or it does not require an ingame showcase.

Breaking changes

Changelog

:cl:

add: Intellicarding the AI is now a doAfter.
add: AI now gets notified when someone tries to intellicard it.

15 seconds seems like a really long time to me, but I guess that's just personal taste.

15 seconds seems like a really long time to me, but I guess that's just personal taste.

It is supposed to be long to allow AI to yell out over comms or let someone stop it. This basically means AI cannot be caught off guard and locked to only speaking on the binary channel.

I went ahead and did some more formatting cleanup for you so we can maybe include this in the next release. The code looks good and works as intended. Thank you for your contribution!

Thanks a lot, i didnt notice the spaces in the suggested changes

Testing went well, you've done a good job here. Just a few changes from me

All good, thanks for this!


Known Issue: Admin Dashboard - upload new constitution - server will return error 500 in case Admin uploads same file without any changes to the file

This has been deployed on BETA env. (https://sancho.constitution.gov.tools/).


libfftw3f.so.3 Missing

After pulling styler00dollar/vsgan_tensorrt:latest, I ran into the following issue:
Failed to load /usr/local/lib/libmvtools.so. Error given: libfftw3f.so.3: cannot open shared object file: No such file or directory

Running the following resolved the issue:
apt-get install libfftw3-3

Interesting, I didn't notice this. I forgot to copy this file in the final docker copy step. Will try to fix later.

Fixed.

Getting this error after a fresh pull of latest:
Python exception: Failed to load /usr/local/lib/libmvtools.so. Error given: libfftw3f.so.3: cannot open shared object file: No such file or directory

Failed to install manually via apt-get install libfftw3-3:
root@3c2421c63207:/workspace/tensorrt# apt-get install libfftw3-3
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libfftw3-3 : Depends: libfftw3-double3 (= 3.3.8-2ubuntu8) but it is not going to be installed
              Depends: libfftw3-long3 (= 3.3.8-2ubuntu8) but it is not going to be installed
              Depends: libfftw3-single3 (= 3.3.8-2ubuntu8) but it is not going to be installed
 libtirpc3 : Depends: libtirpc-common (>= 1.3.3+ds-1) but 1.3.2-2ubuntu0.1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Getting this error after a fresh pull of latest:
Python exception: Failed to load /usr/local/lib/libmvtools.so. Error given: libfftw3f.so.3: cannot open shared object file: No such file or directory

Failed to install manually via apt-get install libfftw3-3:
root@a5214fe65c98:/workspace/tensorrt# apt-get install libfftw3-3
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libfftw3-3 : Depends: libfftw3-double3 (= 3.3.8-2ubuntu8) but it is not going to be installed
              Depends: libfftw3-long3 (= 3.3.8-2ubuntu8) but it is not going to be installed
              Depends: libfftw3-single3 (= 3.3.8-2ubuntu8) but it is not going to be installed
 libtirpc3 : Depends: libtirpc-common (>= 1.3.3+ds-1) but 1.3.2-2ubuntu0.1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

I think I forgot to push the fix to github when I fixed it the first time. The solution is to rebuild docker with this:
COPY --from=base /usr/lib/x86_64-linux-gnu/libfftw3f.so* /usr/lib/x86_64-linux-gnu/

I plan to update the docker image later once I get it stable due to various reasons.

Added it here.
https://github.com/styler00dollar/VSGAN-tensorrt-docker/blob/586076aabedf1aacde29704c5b13c613e6ce55c2/Dockerfile#L711

Done, uploaded to dockerhub.


Add settlementContract to Order

Summary
Changes

Closing this one since it's part of an undocumented API from CoW which might be removed (so we can't rely on this field).


[test] fixed the triton version for testing

📌 Checklist before creating the PR

[x] I have created an issue for this PR for traceability
[x] The title follows the standard format: [doc/gemini/tensor/...]: A concise description
[x] I have added relevant tags if possible for us to better distinguish different PRs

🚨 Issue number

Link this PR to your issue with words like fixed to automatically close the linked issue upon merge
e.g. fixed #1234, closed #1234, resolved #1234

Fixed #2609 .
📝 What does this PR do?

Summarize your work here.
if you have any plots/diagrams/screenshots/tables, please attach them here.

This PR updated the triton requirement to a valid triton release so that the build workflow can pass.
💥 Checklist before requesting a review

[x] I have linked my PR to an issue (instruction)
[x] My issue clearly describes the problem/feature/proposal, with diagrams/charts/table/code if possible
[x] I have performed a self-review of my code
[x] I have added thorough tests.
[x] I have added docstrings for all the functions/methods I implemented

⭐ Do you enjoy contributing to Colossal-AI?

[x] 🌝 Yes, I do.
[ ] 🌚 No, I don't.

Tell us more if you don't enjoy contributing to Colossal-AI.

lgtm


Added FAQ Question: Does Prisma Cloud come with a built-in Database?

I added the FAQ Question: "Does Prisma Cloud come with a built-in Database?" to the Technical section of the FAQ.
I think this is a common misconception for beginners, who tend to use the demo server and expect things to work the same on their own servers.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Thanks for adding this @DATADEER! While we're now on a newer version of Prisma and the content is outdated, it's still a valuable fix for developers that are using an older version  🙏


Navigation in a modal with a physical bluetooth keyboard on the tap "tab" makes an extra click to start from the beginning

Environment

System:
OS: macOS 12.5.1
CPU: (6) x64 Intel(R) Core(TM) i5-8500 CPU @ 3.00GHz
Memory: 2.08 GB / 32.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 18.4.0 - /usr/local/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 8.12.1 - /usr/local/bin/npm
Watchman: 2<IP_ADDRESS> - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
Android SDK:
API Levels: 23, 25, 26, 27, 28, 29, 30, 31
Build Tools: 28.0.3, 29.0.2, 29.0.3, 30.0.2, 30.0.3, 31.0.0
System Images: android-25 | Google Play Intel x86 Atom, android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom, android-29 | Google APIs Intel x86 Atom, android-30 | Google APIs Intel x86 Atom, android-30 | Google Play Intel x86 Atom
Android NDK: 22.1.7171670
IDEs:
Android Studio: 2021.2 AI-212.5712.43.2112.8815526
Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_345 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.67.2 => 0.67.2
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Platforms

[x] Android

Versions

Android:
react-native-modal: 13.0.1
react-native: 0.67.2
react: 17.0.2

Description
A modal is opened, Talk Back is enabled (optional, but it makes to see what happenes better), keyboard is connected to device. Try to press "tab" button on the keyboard. When the focus is on the last item we have to press "tab" twice to return to a first item.
Reproducible Demo
Example of code:
<Modal visible={true}>
  <View style={styles.container}>
     <Button title="First button" onPress={() => {}} />
   <TouchableOpacity>
      <Text accessible={true}>Test 1</Text>
    </TouchableOpacity>
    <TouchableOpacity>
      <Text focusable={true}>Test 2</Text>
    </TouchableOpacity>
      <Button title="Last button" onPress={() => {}} />
    </View>
</Modal>

https://user-images.githubusercontent.com/47755692/187875141-263b41d0-0aac-44b8-a2b1-705121fef8b9.mp4
How it works when modal is hidden:
https://user-images.githubusercontent.com/47755692/187877308-175cd861-99bf-4854-a428-84f1f949245a.mp4
Any clues/ideas?

As workaround can be add to prop customBackdrop any view with focusable={false}.
This code works fine:
<Modal visible={true} customBackdrop={<View focusable={false} />}>
      <View style={styles.container}>
        <Button title="First button" onPress={() => {}} />
        <TouchableOpacity>
          <Text accessible={true}>Test 1</Text>
        </TouchableOpacity>
        <TouchableOpacity>
          <Text focusable={true}>Test 2</Text>
        </TouchableOpacity>
        <Button title="Last button" onPress={() => {}} />
      </View>
    </Moda
```l>

https://user-images.githubusercontent.com/47755692/187951452-614aa50d-1e27-470a-9703-af8313c914ff.mp4

Is it expected behaviour @mmazzarolo ?


Add Yiddish Langauge

@DarthFlip, could you also provide a link to the source, where you got the wordlist from?

I got the wordlist from this Yiddish T9 app https://www.ivelt.com/forum/viewtopic.php?p=3498106#p3498106 . I contacted the person who made it and he said he made the wordlist and was happy for it to be used/shared publicly.

I got the wordlist from this Yiddish T9 app https://www.ivelt.com/forum/viewtopic.php?p=3498106#p3498106 . I contacted the person who made it and he said he made the wordlist and was happy for it to be used/shared publicly.

Excellent, thank you!
I can not verify if there are nonsense words or whatnot, because I can't read them, so I trust you they are fine. :slightly_smiling_face:


css: Clean up sidebar markup for chevrons.

Test this by hovering over chevrons here:

All Messages
streams
topics
buddy list
some other random chevrons in the app (for due diligence)

Try to open/close popovers in all cases.

  It's pretty harmless to merge the commit, but it's mostly intended for code review purposes, so feel free to omit it (and you would then have to deal with the follow-up commits that remove it).

Did some basic clicking around, and didn't see regressions. One thing I noticed is that clicking on the on-hover messages popover causes it to have an orange box, but that's true in master as well.

Tim, this should be ready to merge.  Rishi noticed something above, but it's also a bug on master. I actually can't repro it on either branch.

Ah, the thing that Rishi is reporting (on master) is a quirk of having dev tools working on Chrome:
https://stackoverflow.com/questions/18006356/chrome-how-to-turn-off-user-agent-stylesheet-settings
This PR should be ready to merge.

This looks good, merged, thanks @showell!  I'm a little skeptical of removing the concept of having a class like arrow; it seems to me like we could re-introduce it with a name like sidebar-menu-launcher-widget (named so that the name doesn't encode that it's a chevron in case we want to change that) and it'd be helpful to have that.


lack of INSTALL doc

I just snagged the latest binaries for armhf. Unzipping gave a bin and lib directory with no indication of where they should go in the filesystem. There are lots of places to put binaries and libraries.
I tried to run eth which, of course, failed because it couldn't find any libraries but also gave no indication of where it was looking for them.
Please add an INSTALL file directing us where to put everything.

This project is inactive.
You can run eth from wherever you like.    I would just do the following myself:
export LD_LIBRARY_PATH=./eth/lib

I would suggest that you check out https://www.reddit.com/r/ethereum/comments/5o4nim/ethereum_on_arm_etharmbian_full_ethereum_node_is/?st=iyncydll&sh=84aa3f33, which is actively maintained.
Best wishes!

No support for CHIP (which is what I have). Geth works, but I'm a little weird about whether Go is on compute-speed parity with C. It would be interesting to see some comparison benchmarks.
No worries. Thanks, Bob@

No problem.
With geth you can also try out light client (LES) functionality, which will be orders-of-magnitude faster at syncing than a full-client eth.

geth --light --mine still wants a full blockchain downloaded. Annoying but not a software killer.

For CPU mining on the testnet, you mean?
Because mainnet needs a GPU.

No. For hashing on main. I assume that was intentional but why? It completely cuts out opportunity for ultra low power SBCs. The watts:FLOPS ratios are really bad for anything with a full size board and lots of extra components.

"needs a GPU" is just an economic reality.   You can CPU mine on the mainnet, but it won't be economic or enjoyable, because GPUs are vastly more efficient than CPUs for brute-force hashing.
Ethash has been designed to be ASIC-resistant, to avoid that centralization risk.
SBCs will be fine as nodes, but they aren't the best fit for mining.

I guess I'm stuck following consensus. It's not a terrible loss. There are other algos and other coins I can support with my [limited] hash. The blockchain is already too big to download in less time than it would take to snail-mail a snapshot and then update, so operating a node is out of the question. I still think the decision of whether it's feasible to cpu-mine should be left to the operator, though, and not taken from him/her by fiat.

To be clear - you can CPU mine on mainnet if you like.
It will just be utterly ineffective, and you will rarely (if ever) succeed in mining a block.

True. IF I have a full node to work from. Doesn't work with --light. As stated, it's faster to snail-mail and then update a blockchain snapshot than to download. That's another issue, though.


react-native if onChange callback is async ConnectedField won't trigger the change action

Are you submitting a bug report or a feature request?

bug report
What is the current behavior?
If onChange prop is async function ConnectedField does not trigger the change action. I belive this is because async function always returns a Promise instance so this condition is always true
https://github.com/erikras/redux-form/blob/84359b3fb5be9f62e030657100ea1ddede4c5ef7/src/ConnectedField.js#L132
What is the expected behavior?
Maybe we should check for Promises here and wait resolve them and then use their result as value for defaultPrevented variable?
Sandbox Link
https://codesandbox.io/s/l7vp6w6nyz
File: App.js
Line: 16
What's your environment?
react-native, both iOS and Android

Looks like test need some fixes now. I will fix them as sson as possible. Just tell me if you think this is a good solution. Thanks!

This it seems more as a feature request.
As I see in code and docs, onChange does not support async functions.
Returning a truthy value from onChange in ReactNative works like event.preventDefault()


[15.5 Preview 2] VS may crash when opening F# .NET Core/Standard templates

Note: The severity of this is low given that this is a preview and we already have a fix.  The fix will be in the next update to 15.5.

Install VS 2017 15.5 Preview 2.
Install the .NET Core development workload only.
Open VS and create a new F# + .NET Core SDK-based project.

Observe that VS may crash, depending on your machine.  It is a race condition.  We've already authored a fix and can verify that it does not reproduce there.  To get that fix, will need to subscribe to the new "F# Preview Nightly" feed here: https://dotnet.myget.org/F/fsharp-preview/vsix
To clarify, this nightly release channel is only for when you are using a Preview version of Visual Studio.  It is not intended to be used with a mainline release of VS 2017.  Note that the fix in this channel will get #3799 to reproduce, but it unblocks this specific issue.

This has been resolved in the latest previews.  Closing


[BUGFIX] Minor UI tweaks

What this PR do:

Fixes colors for buttons and pickers for dark and light mode
Fixes number of Color pickers by introducingallRelevant

How to test it

Run app, check if it fits the screenshots

Related: https://github.com/danielsaidi/RichTextKit/issues/125
Note - SFSymbols rendering multicolor is never mentioned in project, we render palette... However the Picker somehow just decided to render multicolour 🤷🏻♂🤷🏻♂🤷🏻♂🤷🏻♂
static func symbol(_ name: String) -> Image {
        Image(systemName: name)
            .symbolRenderingMode(.palette)
    }

Monochrome
Hierarchical
Palette
Multicolor

How it looks now:

macOS (please open the photo :D
iOS

Now this doesnt work on macOS, investigating why... Will fix this later, got a bigger fish to catch.

It's so strange that the toggle buttons work great in dark mode on macOS, but not in iOS.
I'll check if I can get it to work with the current approach before we merge this.

Thank you for finding all these strange glitches.
My idea was for a developer to be able to set foregroundStyle to an entire panel or sheet, and have all the icons adapt, but I guess we can wait with that :)

Is this ready to merge?

I will refactor this a bit (no duplicate static systemSpecificTextColor, revert back the alignment light and dark initialiser...) and we are ready to roll... :)

I spent enormous time trying to hack SwiftUI.Picker to work with SFSymbols but nothing, literally NOTHING, except making custom Segment Picker works... So here is my 2 cents... Lets keep alignment stack this way, otherwise everything works.

Hey @DominikBucher12 - I looked at the many things you had to do to make this work and realized that many of the views were sooo bloated, with view modifiers and styles that made it hard to affect the entire look of, say, a format sidebar.
I have removed a lot of code and styles from the various views, so that you can now use foreground color, tint, accent color etc. on an entire view hierarchy and affect all toggles within.
I also removed the color adjustment, since it made it impossible to pick, say, a black background color when in dark mode. Instead, I now add a reset button to the quick colors, which applies .primary for all color types, except background, for which it applies .clear.
I have also deprecated a bunch of styles, and moved many views into namespaces. Let's go through this PR together and see which parts we still want to add to mail, and we can add them as smaller, separate PRs.

Looks like this tweaking SFSymbol/TintColor journey is finally over, ready to merge.


Failed to start Import serviceError

Azure Data Studio Version: 1.0.0

Steps to Reproduce:

Install SQL Server Import extension
(Re-)start Azure Data Studio
Error notification: Failed to start Import serviceError: Request error: Error
Execute task Flat File Import: Import wizard via Ctrl + I triggers this error: command 'flatFileImport.start' not found

Well, it's a layer 8 issue ...
I forgot to set the proxy in my new installation. Therefore the download of the additional components failed. The error description might be better, though.

@SebastianPfliegel I'll leave this open to access if we can do anything to improve the error message, or be more helpful here.

Not sure if this is the same thing but I'm having an error when trying to launch the import wizard. I have the option when I right click on a database to select the import wizard, but nothing happens when I press it. I tried doing the shortcut (control I) and this gave me an error (screenshot attached). Please let me know if there was a fix for this which I have missed.

Hi @carolinegarrad1998, I mentioned earlier that I received this error message due to lacking the additional components which get downloaded after installing and reloading the extension. The download of these components failed for me as I didn't set up a proxy.

Okay thank you.

@carolinegarrad1998, did this the trick for you?

I get on open up Failed to start Import serviceError: Request error and after trying to get import wizard getting  command 'flatFileImport.start' not found on fresh install of Azure Studio 1.5.2 with this extension

@xNaii, you might have the same problem I had. As soon as you installed the extension Azure Data Studio tries to download additional dependencies. This might fail if you have a corporate proxy and you haven't configured Azure Data Studio to use this proxy.

Yep, got it

Please open the connection. Do a right click on the database. Click on import. Do the import. You will see the additional files get installed. Next time onwards you will get import wizard when you press Cntrl + I shortcut

@riddhi95 I have followed your suggestions and still have issue.

Could you please open the developer console (Help -> Toggle Developer Tools) and then go to the Console tab and include any error messages you're seeing there?

@Charles-Gagnon

Hmm, nothing too useful. Could you also look in ~/.azuredatastudio/extensions/microsoft.import-0.10.0/ and see if you have a flatfileimportservice folder there? And does it contain anything if it is?
If it isn't then could you try

Closing ADS
Manually downloading https://sqlopsextensions.blob.core.windows.net/extensions/import/osx.tar.gz and then extracting the contents of that folder into ~/.azuredatastudio/extensions/microsoft.import-0.10.0/flatfileimportservice
Restarting ADS

And seeing if that works?

@Charles-Gagnon
I think that the content of the folder in the link is for OSX. I am running Ubuntu 18.04
when I extract the content into ~/.azuredatastudio/extensions/microsoft.import-0.10.0/flatfileimportservice and I restart ADS, it installs Flat File Import Service service to ~/.azuredatastudio/extensions/microsoft.import-0.10.0/flatfileimportservice/Linux/0.0.2

Correct,
I closed ADS
I deleted the Linux folder from ~/.azuredatastudio/extensions/microsoft.import-0.10.0/flatfileimportservice
Then when I re-start ADS, I can see in the Output window the installation script executes and creates /Linux/0.0.2 folders inside the flatfileimportservice.

Hmm, nothing too useful. Could you also look in ~/.azuredatastudio/extensions/microsoft.import-0.10.0/ and see if you have a flatfileimportservice folder there? And does it contain anything if it is?
If it isn't then could you try

Closing ADS
Manually downloading https://sqlopsextensions.blob.core.windows.net/extensions/import/osx.tar.gz and then extracting the contents of that folder into ~/.azuredatastudio/extensions/microsoft.import-0.10.0/flatfileimportservice
Restarting ADS

And seeing if that works?

These instructions helped to get the wizard start. However, it didnt show any preview and got stuck with a throbber when clicked on 'Next'.
OS: Mac OS Mojave Ver 10.14.6
ADS:  1.8.0
ADS Process Explorer shows 0 CPU for related service.
Related Log file:
20200325T112022.zip
Related issues: #9728

I'm on a Mac with OS Catalina. Right-click context does not reveal the Import wizard.

^i

Brings up the wizard but I am not able to select my json file.
Version: 1.16.1
Commit: 16801c522df68e63218b39ccb5b4a7431f9bf667
Date: 2020-03-23T22:06:16.901Z
VS Code: 1.42.0
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 19.4.0

Any update on this?

On Arch Linux, open ADS, first from Extensions (Ctrl + Shift + X) install SQL Server Import. Close ADS. Then:
$ mkdir /tmp/tmp_dir
$ cd /tmp/tmp_dir
$ wget https://sqlopsextensions.blob.core.windows.net/extensions/import/linux-x64.tar.gz
$ tar -xvzf linux-x64.tar.gz
$ cp -R /tmp/tmp_dir/* ~/.azuredatastudio/extensions/microsoft.import-0.14.0/flatfileimportservice/Linux
$ rm ~/.azuredatastudio/extensions/microsoft.import-0.14.0/flatfileimportservice/Linux/linux-x64.tar.gz

Open again ADS, and may works Import Wizard.
Cheers.

There were some missing awaits that was causing this issue. Closing this bug for now.

The Cisco AnyConnect VPN was affecting the installation of the additional components.
I temporarily stopped the VPN connection, then started the extension (ctrl + shift + p; Flat File Import: Import Wizard).
After a momentary pause, the additional components were installed:
Downloading https://sqlopsextensions.blob.core.windows.net/extensions/import/service/0.0.7/win-x64.zip
(37,917 KB)....................Done downloading Flat File Import Service
Installing Flat File Import Service to https://sqlopsextensions.blob.core.windows.net/extensions/import/service/0.0.7/win-x64.zip
Installed Flat File Import Service

On Arch Linux, open ADS, first from Extensions (Ctrl + Shift + X) install SQL Server Import. Close ADS. Then:
$ mkdir /tmp/tmp_dir
$ cd /tmp/tmp_dir
$ wget https://sqlopsextensions.blob.core.windows.net/extensions/import/linux-x64.tar.gz
$ tar -xvzf linux-x64.tar.gz
$ cp -R /tmp/tmp_dir/* ~/.azuredatastudio/extensions/microsoft.import-0.14.0/flatfileimportservice/Linux
$ rm ~/.azuredatastudio/extensions/microsoft.import-0.14.0/flatfileimportservice/Linux/linux-x64.tar.gz

Open again ADS, and may works Import Wizard.
Cheers.

you Sir, is the real MVP, BTW!

any news on this? Still got this issue on my machine w/ import service 0.0.9...
Version: 1.39.0
Commit: 9fdb2161d49b4d4ab6798809faa042a898ca2eae
Date: 2022-08-20T01:35:35.924Z
VS Code: 1.62.0
Electron: 13.6.6
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Linux x64 5.10.135-gentoo

yo guys, still got that issue.
ADS
Version: 1.40.0 (Universal)
Commit: 3fbaa3de931ef433090fe3deb8c89cba99d7952b
Date: 2022-11-11T22:47:49.772Z
VS Code: 1.67.0
Electron: 17.4.11
Chromium: 98.0.4758.141
Node.js: 16.13.0
V8: <IP_ADDRESS>-electron.0
OS: Darwin arm64 22.1.0
Macbook Air
Chip: M1
macOs: Ventura 13.0

I also am getting the error "Failed to start Flat File Import Service: {1}"
Version: 1.40.2 (system setup)
Commit: 661384637db384fe5d4e6224069adbe708580b16
Date: 2022-12-22T22:17:02.658Z
VS Code: 1.67.0
Electron: 17.4.11
Chromium: 98.0.4758.141
Node.js: 16.13.0
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.17763

I also have the same issue. couldn't start client flat file import service.


Add batching based on payload size

What kind of threshold are we looking at keeping payloads below for this ticket?  I also assume this would only be relating to POST requests yes?

Hmm, I think we should make it user-configurable? We will keep increasing the payload size supported by our collectors so this should be tunable I guess depending on the collector version a user is using...

@alexanderdean what do we in the case of a GET request being too big?  Do we bin it or let the collector deal with it?

Good Q. @fblundun - what does the JS Tracker do?

Also if the collectors are going to check the size of the payload regardless does this not create a bit of double work?  Do all the collectors check payload size?

Collectors don't formally check payload size. Collectors can reject events which exceed their tolerated payload size.
I know we had an issue at one stage where a collector was rejecting an oversized GET and that was backing up the events being sent from the browser.

@jbeemster - the JS tickets:

https://github.com/snowplow/snowplow-javascript-tracker/issues/359
https://github.com/snowplow/snowplow-javascript-tracker/issues/362

The JS Tracker currently doesn't check the size of GETs.
For POSTs: this function is used to determine the size of the request body. maxPostBytes is the configurable limit and it defaults to 40000. If a single event is too big, the tracker attempts to fire it once and then forgets about it. Otherwise it gets added to the localStorage queue, along with metadata about its size in bytes. When events are sent in batches, each batch is less than maxPostBytes in size.


Prevent accidental undeploys by deployment groups

Fix ZooKeeperMasterModel.getInitRollingUpdateOps() so that if both
updateHosts and undeployHosts have host Strings in common, we don't
generate unnecessary rollout tasks that undeploy from a host.
Remove hosts that are in updateHosts from undeployHosts.
Just to be safe, we list the undeploy tasks first as well.

@mattnworb I fixed the relevant test. See last commit.

Current coverage is 50.78% (diff: 85.71%)

Merging #1017 into master will decrease coverage by 0.10%

@@             master      #1017   diff @@
==========================================
  Files           279        279
  Lines         13168      13164     -4
  Methods           0          0
  Messages          0          0
  Branches       1700       1700
==========================================
- Hits           6701       6685    -16
- Misses         5959       5973    +14
+ Partials        508        506     -2

Powered by Codecov. Last update a7d4403...7466935


make ad3 python3 compatible

This sounds possibly doable by me. Would this be a good place for me to start?

Hum... that is probably tricky. But you can give it a try. Maybe the first part would be to update the AD3 package in the pystruct organization with the upstream one. I'm not sure if we have any local changes.
Then try to install it on a python3 environment and try to run the pystruct unit tests.


ng2-bootstrap module imports are undefined on child route page refresh

it is more related to router than ng2-bootstrap
especially if your child routes are lazy loaded
please provide more info (versions) of libs
and error stack

Its ok, it looks like it was due to an old dist file not being updated on ng serve after updating angular to 2.4.2


User and Author Bot

Hi, Is there a specific reason to use two bots ?
Can I have a practical example for the advantages of using two bots ? and if we try to merge them together will it work ?
I Read this from the documentation:
Author Bot Registration: The Author Bot registration is used for author's app. The application is separated from the User application so that different teams policies can be applied.
User Bot Registration: The User Bot registration is used for user's app, which is installed by users to receive messages send by Company Communicator application.
Is this the main reason or there are more ?
Thanks

Hi @yeeydu ,
Thanks for raising the query.

The role of author bot is to broadcast the messages in four different ways-  At organization level,  To individual members of the team, as a general post or To a specific team.
Note:- Proactive installation must be set to true so that user app will be installed automatically to the users for whom we intend to deliver the message.

The role of user bot is only to receive the message and wont allow sending the message again. So its a one-way communication.

No, it is not possible to merge the two bots.

@yeeydu , We are closing this request as we have provided the inputs for the query raised. If you face any issue with company communicator please raise a new issue for further assistance.


Multiple database recommendations

Your Question
Can you add a connection to specify the database?

The document you expected this should be explained
It is recommended to specify the database in the model instead of connecting to the database.
Expected answer
DB.Connection("db_name").Table.First()

https://gorm.io/docs/dbresolver.html#Manual-connection-switching


[META] Spark Support - Dashboard Connections/Sources, Materialized Views, and Covering Indexes

Background
Users store logs, event data, and other data in object stores, like S3, for analysis with batch-based analytics tooling (e.g., Spark). We see an opportunity to unlock complex querying (compute) and improve OpenSearch's visibility to data at rest. Given the popularity of Spark’s open source community and AWS’ investment in Spark, we are exploring an integration with OpenSearch and Spark. Spark’s complex query engine and indexing will mitigate query latency issues for data resting outside of OpenSearch.
Proposed Solution
In this release, we are building on the API based Spark work in 2.9. Users in Dashboard will be able to add a new Spark connection to OpenSearch, setup skipping, materialized views, and covering indexes, as well as search external sources from Observability Logs using PPL. Users in Discover who select a Spark data source will be moved to Observability Logs where they will be able to query using PPL.
Use Cases

Admins will be able to create a new Spark connection and limit access to the connection using OpenSearch FGAC
Admins can accelerate queries using skipping, materialized views, and covering indexes, limit access to who can manage indexes using OpenSearch FGAC, and set index trim settings to for performance and privacy purposes
OpenSearch Dashboards users who use discover will be switched to Observability Logs when they select an external source via Spark and will use OpenSearch PPL as a query language (SQL will be supported using APIs)
Users querying using Observability Logs will be able to direct query external

Resources

Demo of skipping index
Original RFC

@brijos Please confirm this is on track for release in 2.11. I'll start drafting documentation in the meantime. Thanks :)

Confirmed!

We weren't able to finish everything that we wanted to for the release. We will iteratively launch, and document, what we have, but we will push out formal support into an upcoming release.

this was released as a part of 2.11 AOS


admin panel and student panel big update

now the outlet problem and menu button problem in both student panel and admin panel has been fixed
@qaidjoharj53 , Check it out


[AutoPR cognitiveservices/data-plane/ContentModerator] fix: cognitive services create example

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/6638

This PR has been merged into https://github.com/Azure/azure-sdk-for-java/pull/4485


fix: skip unnecessary del port request

Pull Request

[ ] Make sure you have followed Kube-OVN Code Style.

What type of this PR
Examples of user facing changes:

Bug fixes

skip unnecessary del port request
创建了一个pod，yaml如下，当节点重启后，kubelet会连续删除好几次pause container，都向下执行了，并且当节点重启pod重新创建好后，pod的sleep时间到了，kubelet还会删除pause container，之后向下执行直到报错。
本次修改略过了不必要删除操作。
apiVersion: v1
kind: Pod
metadata:
  namespace: ovn-poc
  name: wang
  annotations:
    v1.multus-cni.io/default-network: kube-system/test
    ovn.kubernetes.io/logical_switch: ovn-default
spec:
  nodeName: k8snode1
  containers:
  - name: iperf3
    image: docker.io/library/ubuntu1
    imagePullPolicy: IfNotPresent
    command:
    - sleep
    - "1d"

日志如下：
cni报的错误：
一次报错：
del nic failed failed to move container wang/ovn-poc interface eth0 back to host netns: failed to get container namespace for pod ovn-poc/wang5: failed to Statfs "": no such file or directory
第二次报错：
failed to get container interface eth0 for pod ovn-poc/wang5: Link not found
之后报错好几次：pod sleep时间到了，cni报错：
del nic failed failed to move container wang5/ovn-poc interface eth0 back to host netns: failed to get container namespace for pod ovn-poc/wang5: failed to Statfs "": no such file or directory
环境信息：
kubelet --version
Kubernetes v1.24.2
containerd --version
containerd containerd.io 1.6.24 61f9fd88f79f081d64d6fa3bb1a0dc71ec870523
kubeadm version
kubeadm version: &version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.2", GitCommit:"f66044f4361b9f1f96f0053dd46cb7dce5e990a8", GitTreeState:"clean", BuildDate:"2022-06-15T14:20:54Z", GoVersion:"go1.18.3", Compiler:"gc", Platform:"linux/amd64"}

Which issue(s) this PR fixes
Fixes #(issue-number)
WHAT

🤖[deprecated] Generated by Copilot at dd83fcc
Fix a bug that causes port deletion requests to be sent when pod is not using ovn network. Add a condition to handler.go to skip port deletion if pod is not being deleted and network namespace is empty.

🤖[deprecated] Generated by Copilot at dd83fcc

pod not deleted
skip port removal request
autumn bug fix done

HOW
判断pod的DeletionTimestamp和podRequest.NetNs，当都是空的话，略过之后的执行。

🤖[deprecated] Generated by Copilot at dd83fcc

Add a condition to skip port deletion for pods not using ovn network (link)

Thanks @wangwangyusur


Python and node?

Hi. Thanks for this awesome example!
I am wondering why you used both python and node.js?

Thank you for your interest.
Node.js uses babel to generate JavaScript files.
https://tensorflow-mnist.herokuapp.com/static/js/main.js
If you download this main.js and use it as it is, you do not need Node.js.


New release

Are you planning to release the latest changes? Specifically interested in the new parameters from commit https://github.com/RomelTorres/alpha_vantage/commit/2122903650d608c612bd9ddabd683f598956222f

Yes we will merge upon connecting with the PR contributor. Thanks!


ANGULAR: MT wrongly senses 2 distance sources when loading NWK plus nodelist

When I load a NWK tree, and nodelist with a sequence column (but do not select the squence cloumn- because I want to only use the demographic data from the nodelist), it still shows 2 sources for links- one is the NWK tree (expected), and one from genetic distance( incorrect).
The link color table is retaining data from the pre-loaded dataset. When I load fresh data, and changed the threshold, it creates more links, and this is reflected in the stats bar, but not in the limk color table. The number stays at 176, ehich is the number in the pre-loaded dataset. I can call if needed to explain this.

The link color table is retaining data from the pre-loaded dataset. When I load my data, and changed the threshold, it creates more links, and this is reflected in the stats bar, but not in the limk color table. The number stays at 176, ehich is the number in the pre-loaded dataset

Not sure if you pushed the fix, but this issue still persists. Checked with a diff dataset; still seeing multiple link origins when I should only see links from the NWK file.


[build] speed up build progress.

Search before asking

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

Description
Currently, The compile progress have custom too much time and need to speed up.
Usage Scenario
No response
Related issues
No response
Are you willing to submit a PR?

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

Code of Conduct

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

I have test on my local, after tuning performance can reduce 1/3 time when compiling this project.

I have tested on my local, after tuning performance can reduce 1/3 time when compiling this project.

good job👍


System-probe failing to start on Amazon Linux 1

Output of the info page (if this is a bug)
[ec2-user@ip-172-31-35-118 ~]$ sudo datadog-agent status
Getting the status from the agent.

===============
Agent (v6.17.1)
===============

  Status date: 2020-03-01 19:57:13.009404 UTC
  Agent start: 2020-03-01 19:42:54.842712 UTC
  Pid: 15578
  Go Version: go1.12.9
  Python Version: 2.7.17
  Build arch: amd64
  Check Runners: 4
  Log Level: info

  Paths
  =====
    Config File: /etc/datadog-agent/datadog.yaml
    conf.d: /etc/datadog-agent/conf.d
    checks.d: /etc/datadog-agent/checks.d

  Clocks
  ======
    NTP offset: -1.026ms
    System UTC time: 2020-03-01 19:57:13.009404 UTC

  Host Info
  =========
    bootTime: 2019-10-24 17:15:37.000000 UTC
    kernelVersion: 4.14.146-93.123.amzn1.x86_64
    os: linux
    platform: amazon
    platformFamily: rhel
    platformVersion: 2018.03
    procs: 138
    uptime: 3098h27m18s
    virtualizationRole: guest
    virtualizationSystem: xen

  Hostnames
  =========
    ec2-hostname: ip-172-31-35-118.boxview.internal
    hostname: prod-lb-2.boxview.internal
    instance-id: i-0d40a69e2c82c36f7
    socket-fqdn: ip-172-31-35-118.ec2.internal.
    socket-hostname: ip-172-31-35-118
    host tags:
      environment:production
    hostname provider: configuration

  Metadata
  ========
    cloud_provider: AWS
    hostname_source: configuration

=========
Collector
=========

  Running Checks
  ==============

    cpu
    ---
      Instance ID: cpu [OK]
      Configuration Source: file:/etc/datadog-agent/conf.d/cpu.d/conf.yaml.default
      Total Runs: 58
      Metric Samples: Last Run: 6, Total: 342
      Events: Last Run: 0, Total: 0
      Service Checks: Last Run: 0, Total: 0
      Average Execution Time : 0s

    disk (2.6.0)
    ------------
      Instance ID: disk:e5dffb8bef24336f [OK]
      Configuration Source: file:/etc/datadog-agent/conf.d/disk.d/conf.yaml.default
      Total Runs: 57
      Metric Samples: Last Run: 28, Total: 1,596
      Events: Last Run: 0, Total: 0
      Service Checks: Last Run: 0, Total: 0
      Average Execution Time : 15ms

    file_handle
    -----------
      Instance ID: file_handle [OK]
      Configuration Source: file:/etc/datadog-agent/conf.d/file_handle.d/conf.yaml.default
      Total Runs: 57
      Metric Samples: Last Run: 5, Total: 285
      Events: Last Run: 0, Total: 0
      Service Checks: Last Run: 0, Total: 0
      Average Execution Time : 0s

    io
    --
      Instance ID: io [OK]
      Configuration Source: file:/etc/datadog-agent/conf.d/io.d/conf.yaml.default
      Total Runs: 57
      Metric Samples: Last Run: 26, Total: 1,464
      Events: Last Run: 0, Total: 0
      Service Checks: Last Run: 0, Total: 0
      Average Execution Time : 0s

    load
    ----
      Instance ID: load [OK]
      Configuration Source: file:/etc/datadog-agent/conf.d/load.d/conf.yaml.default
      Total Runs: 57
      Metric Samples: Last Run: 6, Total: 342
      Events: Last Run: 0, Total: 0
      Service Checks: Last Run: 0, Total: 0
      Average Execution Time : 0s

    memory
    ------
      Instance ID: memory [OK]
      Configuration Source: file:/etc/datadog-agent/conf.d/memory.d/conf.yaml.default
      Total Runs: 57
      Metric Samples: Last Run: 17, Total: 969
      Events: Last Run: 0, Total: 0
      Service Checks: Last Run: 0, Total: 0
      Average Execution Time : 0s

    network (1.14.0)
    ----------------
      Instance ID: network:e0204ad63d43c949 [OK]
      Configuration Source: file:/etc/datadog-agent/conf.d/network.d/conf.yaml.default
      Total Runs: 57
      Metric Samples: Last Run: 29, Total: 1,497
      Events: Last Run: 0, Total: 0
      Service Checks: Last Run: 0, Total: 0
      Average Execution Time : 1ms

    ntp
    ---
      Instance ID: ntp:d884b5186b651429 [OK]
      Configuration Source: file:/etc/datadog-agent/conf.d/ntp.d/conf.yaml.default
      Total Runs: 1
      Metric Samples: Last Run: 1, Total: 1
      Events: Last Run: 0, Total: 0
      Service Checks: Last Run: 1, Total: 1
      Average Execution Time : 172ms

    uptime
    ------
      Instance ID: uptime [OK]
      Configuration Source: file:/etc/datadog-agent/conf.d/uptime.d/conf.yaml.default
      Total Runs: 57
      Metric Samples: Last Run: 1, Total: 57
      Events: Last Run: 0, Total: 0
      Service Checks: Last Run: 0, Total: 0
      Average Execution Time : 0s

========
JMXFetch
========

  Initialized checks
  ==================
    no checks

  Failed checks
  =============
    no checks

=========
Forwarder
=========

  Transactions
  ============
    CheckRunsV1: 57
    Dropped: 0
    DroppedOnInput: 0
    Events: 0
    HostMetadata: 0
    IntakeV1: 6
    Metadata: 0
    Requeued: 0
    Retried: 0
    RetryQueueSize: 0
    Series: 0
    ServiceChecks: 0
    SketchSeries: 0
    Success: 120
    TimeseriesV1: 57

  API Keys status
  ===============
    API key ending with 88fe9: API Key valid

==========
Endpoints
==========
  https://app.datadoghq.com - API Key ending with:
      - 88fe9

==========
Logs Agent
==========

  Logs Agent is not running

=========
Aggregator
=========
  Checks Metric Sample: 7,468
  Dogstatsd Metric Sample: 4,152
  Event: 1
  Events Flushed: 1
  Number Of Flushes: 57
  Series Flushed: 8,612
  Service Check: 459
  Service Checks Flushed: 514

=========
DogStatsD
=========
  Event Packets: 0
  Event Parse Errors: 0
  Metric Packets: 4,151
  Metric Parse Errors: 0
  Service Check Packets: 0
  Service Check Parse Errors: 0
  Udp Bytes: 264,996
  Udp Packet Reading Errors: 0
  Udp Packets: 4,152
  Uds Bytes: 0
  Uds Origin Detection Errors: 0
  Uds Packet Reading Errors: 0
  Uds Packets: 0

Describe what happened:
Attempting to configure and start NPM with DD results in a failure on Amazon Linux 1 version 2018.3.  First, calling service datadog-agent-sysprobe start fails to find any systemd unit.  Next, tried calling start datadog-agent-sysprobe and received the following:
start: Rejected send message, 1 matched rules; type="method_call", sender=":1.3" (uid=500 pid=15959 comm="start datadog-agent-sysprobe ") interface="com.ubuntu.Upstart0_6.Job" member="Start" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init ")

If I cat the .service file and manually execute the the command as the dd-agent user I get this:
sudo -u dd-agent /opt/datadog-agent/embedded/bin/system-probe --config=/etc/datadog-agent/system-probe.yaml --pid=/opt/datadog-agent/run/system-probe.pid
2020-03-01 19:55:14 UTC | SYS-PROBE | INFO | (cmd/system-probe/main.go:70 in main) | pid '16241' written to pid file '/opt/datadog-agent/run/system-probe.pid'
2020-03-01 19:55:14 UTC | SYS-PROBE | INFO | (pkg/process/config/yaml_config.go:52 in loadSysProbeYamlConfig) | enabling process-agent for connections check as the system-probe is enabled
2020-03-01 19:55:14 UTC | SYS-PROBE | INFO | (cmd/system-probe/main.go:110 in main) | running system-probe with version: Version: 6.17.1, Git hash: 378649d, Git branch: HEAD, Build date: 2020-02-20T14:37:21, Go Version: 1.10.1,
2020-03-01 19:55:14 UTC | SYS-PROBE | INFO | (pkg/ebpf/common.go:67 in IsTracerSupportedByOS) | running on platform: linux-4.14.146-93.123.amzn1.x86_64-x86_64-with-glibc2.2.5
2020-03-01 19:55:14 UTC | SYS-PROBE | INFO | (cmd/system-probe/main.go:121 in main) | system-probe unsupported: system-probe does not have permission to access debugfs, exiting.

Mounting debugfs as root then gives me a permission denied when running unless I run as root.
Describe what you expected:
system-probe starts sucessfully
Steps to reproduce the issue:
Additional environment details (Operating System, Cloud provider, etc):
Amazon Linux 1 2018.3

Hi @markathomas , thank you for the bug report.
To begin with: the system-probe (unlike the other executables packaged in the agent) does require root since it registers several BPF programs and
The upstart and systemd services we include set the system-probe to run as root when enabled.   From the upstart command output you sent it looks like service start datadog-agent-sysprobe was not run as root.


⚠ 366.ru has degraded performance

In 8cdd9ff, 366.ru (https://366.ru) experienced degraded performance:

HTTP code: 200
Response time: 1442 ms

Resolved: 366.ru performance has improved in 83b12bd.


Output hotplug fails with "Atomic commit failed (modeset): Invalid argument"

I am using DisplayPort via a Dell dock to drive my external display. If the display is connected at startup, it works properly. Disconnecting the display also works fine. Reconnecting it, however, leaves it blank and yields the logspam at the end of sway.log.
I have reproduced this in rootston with the only difference being that the errno reported is "Permission denied".
Sway believes that the output is present again after reconnection: workspaces move back, and I can blindly navigate to the windows on them without issues. I have never managed to cause a crash in this state.
Switching VTs and back via the keyboard seems to "resolve" the issue.

I had a really fun time "bisecting" to figure out when this broke and I narrowed it down to 5b13b8a12c55b3216b1b92a20474efc856be5d7b. This commit specifically calls out fixing #1230, so I'm a bit nervous about attempting a fix myself since I'm not familiar with this area.

Hmm. This is the relevant part of the log:
2018-11-03 12:51:38 - [backend/drm/drm.c:861] Reallocating CRTCs
2018-11-03 12:51:38 - [backend/drm/drm.c:873] State before reallocation:
2018-11-03 12:51:38 - [backend/drm/drm.c:883]   'DP-3' crtc=-1 state=1 desired_enabled=1
2018-11-03 12:51:38 - [backend/drm/drm.c:883]   'DP-2' crtc=-1 state=0 desired_enabled=0
2018-11-03 12:51:38 - [backend/drm/drm.c:883]   'HDMI-A-3' crtc=-1 state=0 desired_enabled=0
2018-11-03 12:51:38 - [backend/drm/drm.c:883]   'HDMI-A-2' crtc=-1 state=0 desired_enabled=0
2018-11-03 12:51:38 - [backend/drm/drm.c:883]   'DP-1' crtc=-1 state=0 desired_enabled=0
2018-11-03 12:51:38 - [backend/drm/drm.c:883]   'HDMI-A-1' crtc=-1 state=0 desired_enabled=0
2018-11-03 12:51:38 - [backend/drm/drm.c:883]   'VGA-1' crtc=-1 state=0 desired_enabled=0
2018-11-03 12:51:38 - [backend/drm/drm.c:883]   'LVDS-1' crtc=0 state=3 desired_enabled=1
2018-11-03 12:51:38 - [backend/drm/drm.c:940] Assigning CRTC 2 to output -1 -> 0 'DP-3'
2018-11-03 12:51:38 - [backend/drm/drm.c:944] State after reallocation:
2018-11-03 12:51:38 - [backend/drm/drm.c:949]   'DP-3' crtc=2 state=1 desired_enabled=1
2018-11-03 12:51:38 - [backend/drm/drm.c:949]   'DP-2' crtc=-1 state=0 desired_enabled=0
2018-11-03 12:51:38 - [backend/drm/drm.c:949]   'HDMI-A-3' crtc=-1 state=0 desired_enabled=0
2018-11-03 12:51:38 - [backend/drm/drm.c:949]   'HDMI-A-2' crtc=-1 state=0 desired_enabled=0
2018-11-03 12:51:38 - [backend/drm/drm.c:949]   'DP-1' crtc=-1 state=0 desired_enabled=0
2018-11-03 12:51:38 - [backend/drm/drm.c:949]   'HDMI-A-1' crtc=-1 state=0 desired_enabled=0
2018-11-03 12:51:38 - [backend/drm/drm.c:949]   'VGA-1' crtc=-1 state=0 desired_enabled=0
2018-11-03 12:51:38 - [backend/drm/drm.c:949]   'LVDS-1' crtc=0 state=3 desired_enabled=1
2018-11-03 12:51:38 - [backend/drm/drm.c:433] Reallocating planes
2018-11-03 12:51:38 - [backend/drm/drm.c:478] Assigning plane -1 -> 51 (type 0) to CRTC 57
2018-11-03 12:51:38 - [backend/drm/drm.c:478] Assigning plane -1 -> 48 (type 1) to CRTC 57
2018-11-03 12:51:38 - [backend/drm/drm.c:478] Assigning plane -1 -> 54 (type 2) to CRTC 57
2018-11-03 12:51:38 - [backend/drm/drm.c:1214] Requesting modeset for 'DP-3'
2018-11-03 12:51:38 - [sway/sway/desktop/output.c:574] New output 0x555a88452110: DP-3
2018-11-03 12:51:38 - [sway/sway/tree/output.c:257] Matched wildcard output config for DP-3
2018-11-03 12:51:38 - [backend/drm/drm.c:510] Modesetting 'DP-3' with '2560x1440@59951 mHz'
2018-11-03 12:51:38 - [backend/drm/drm.c:357] Starting renderer on output 'DP-3'
2018-11-03 12:51:38 - [backend/drm/atomic.c:55] DP-3: Atomic commit failed (modeset): Invalid argument

Can you provide a log where you trigger this bug, and then switch VTs to "fix" it?

It seems the first time CRTC 47 is used. When disconnected it's successfully de-allocated. When re-connected it's using another CRTC, which should be fine but fails. Maybe we're not cleaning up the CRTC correctly.

One log, hot off the press: sway-switch-tty.log
Disconnect is at line 1229, reconnect at 1280, tty switch at 2061. There are a couple more errors mixed in after that, but it seems to get back to a normal state.

Actually, thinking about it more, perhaps the "permission denied" is a hint? Suppose that when rootston or sway is the only compositor running, whatever argument is triggering "invalid argument" is indeed just a nonsense value. However, when there is another compositor running, could it be passing a value that attempts to access a resource owned by the other compositor?

Actually, thinking about it more, perhaps the "permission denied" is a hint? Suppose that when rootston or sway is the only compositor running, whatever argument is triggering "invalid argument" is indeed just a nonsense value. However, when there is another compositor running, could it be passing a value that attempts to access a resource owned by the other compositor?

I also get "permission denied" issues pretty often. It happens when we try to do an atomic commit and our DRM session isn't active. We should fix it too (I think we have guards, maybe we are missing some) but it's not an issue related to this one.

I'm unsure if I'm seeing the same issue here or if my issue is different, but I too get the "invalid argument" error.
Relevant logs
2019-03-12 16:52:00 - [wlroots-0.5.0/backend/drm/drm.c:904] Reallocating CRTCs
2019-03-12 16:52:00 - [wlroots-0.5.0/backend/drm/drm.c:916] State before reallocation:
2019-03-12 16:52:00 - [wlroots-0.5.0/backend/drm/drm.c:926]   'eDP-1' crtc=0 state=1 desired_enabled=1
2019-03-12 16:52:00 - [wlroots-0.5.0/backend/drm/drm.c:926]   'DP-1' crtc=-1 state=0 desired_enabled=0
2019-03-12 16:52:00 - [wlroots-0.5.0/backend/drm/drm.c:926]   'HDMI-A-1' crtc=-1 state=0 desired_enabled=0
2019-03-12 16:52:00 - [wlroots-0.5.0/backend/drm/drm.c:926]   'DP-2' crtc=-1 state=0 desired_enabled=0
2019-03-12 16:52:00 - [wlroots-0.5.0/backend/drm/drm.c:926]   'DP-3' crtc=-1 state=1 desired_enabled=1
2019-03-12 16:52:00 - [wlroots-0.5.0/backend/drm/drm.c:926]   'DP-4' crtc=-1 state=1 desired_enabled=1
2019-03-12 16:52:00 - [wlroots-0.5.0/backend/drm/drm.c:926]   'DP-5' crtc=-1 state=0 desired_enabled=0
2019-03-12 16:52:00 - [wlroots-0.5.0/backend/drm/drm.c:983] Assigning CRTC 1 to output -1 -> 4 'DP-3'
2019-03-12 16:52:00 - [wlroots-0.5.0/backend/drm/drm.c:983] Assigning CRTC 2 to output -1 -> 5 'DP-4'
2019-03-12 16:52:00 - [wlroots-0.5.0/backend/drm/drm.c:987] State after reallocation:
2019-03-12 16:52:00 - [wlroots-0.5.0/backend/drm/drm.c:992]   'eDP-1' crtc=0 state=1 desired_enabled=1
2019-03-12 16:52:00 - [wlroots-0.5.0/backend/drm/drm.c:992]   'DP-1' crtc=-1 state=0 desired_enabled=0
2019-03-12 16:52:00 - [wlroots-0.5.0/backend/drm/drm.c:992]   'HDMI-A-1' crtc=-1 state=0 desired_enabled=0
2019-03-12 16:52:00 - [wlroots-0.5.0/backend/drm/drm.c:992]   'DP-2' crtc=-1 state=0 desired_enabled=0
2019-03-12 16:52:00 - [wlroots-0.5.0/backend/drm/drm.c:992]   'DP-3' crtc=1 state=1 desired_enabled=1
2019-03-12 16:52:00 - [wlroots-0.5.0/backend/drm/drm.c:992]   'DP-4' crtc=2 state=1 desired_enabled=1
2019-03-12 16:52:00 - [wlroots-0.5.0/backend/drm/drm.c:992]   'DP-5' crtc=-1 state=0 desired_enabled=0
2019-03-12 16:52:00 - [wlroots-0.5.0/backend/drm/drm.c:462] Reallocating planes
2019-03-12 16:52:00 - [wlroots-0.5.0/backend/drm/drm.c:507] Assigning plane -1 -> 33 (type 0) to CRTC 41
2019-03-12 16:52:00 - [wlroots-0.5.0/backend/drm/drm.c:507] Assigning plane -1 -> 47 (type 0) to CRTC 55
2019-03-12 16:52:00 - [wlroots-0.5.0/backend/drm/drm.c:507] Assigning plane -1 -> 61 (type 0) to CRTC 69
2019-03-12 16:52:00 - [wlroots-0.5.0/backend/drm/drm.c:507] Assigning plane -1 -> 28 (type 1) to CRTC 41
2019-03-12 16:52:00 - [wlroots-0.5.0/backend/drm/drm.c:507] Assigning plane -1 -> 42 (type 1) to CRTC 55
2019-03-12 16:52:00 - [wlroots-0.5.0/backend/drm/drm.c:507] Assigning plane -1 -> 56 (type 1) to CRTC 69
2019-03-12 16:52:00 - [wlroots-0.5.0/backend/drm/drm.c:507] Assigning plane -1 -> 38 (type 2) to CRTC 41
2019-03-12 16:52:00 - [wlroots-0.5.0/backend/drm/drm.c:507] Assigning plane -1 -> 52 (type 2) to CRTC 55
2019-03-12 16:52:00 - [wlroots-0.5.0/backend/drm/drm.c:507] Assigning plane -1 -> 66 (type 2) to CRTC 69
2019-03-12 16:52:00 - [wlroots-0.5.0/backend/drm/drm.c:1288] Requesting modeset for 'eDP-1'
2019-03-12 16:52:00 - [sway/desktop/output.c:612] New output 0x4314161a070: eDP-1
2019-03-12 16:52:00 - [wlroots-0.5.0/backend/drm/drm.c:542] Modesetting 'eDP-1' with '2560x1440@59998 mHz'
2019-03-12 16:52:00 - [wlroots-0.5.0/backend/drm/drm.c:374] Starting renderer on output 'eDP-1'
2019-03-12 16:52:00 - [GLES2] FS SIMD8 shader: 5 inst, 0 loops, 24 cycles, 0:0 spills:fills, Promoted 0 constants, compacted 80 to 48 bytes.
2019-03-12 16:52:00 - [GLES2] FS SIMD16 shader: 5 inst, 0 loops, 34 cycles, 0:0 spills:fills, Promoted 0 constants, compacted 80 to 48 bytes.
2019-03-12 16:52:00 - [GLES2] VS SIMD8 shader: 28 inst, 0 loops, 116 cycles, 0:0 spills:fills, Promoted 0 constants, compacted 448 to 336 bytes.
2019-03-12 16:52:00 - [GLES2] FS SIMD16 shader: 2 inst, 0 loops, 0 cycles, 0:0 spills:fills, Promoted 0 constants, compacted 32 to 32 bytes.
2019-03-12 16:52:00 - [sway/tree/workspace.c:290] Workspace: Generating new workspace name for output eDP-1
2019-03-12 16:52:00 - [sway/tree/workspace.c:227] Got valid workspace command for target: '1'
2019-03-12 16:52:00 - [sway/tree/workspace.c:280] Workspace: Found free name 1
2019-03-12 16:52:00 - [sway/tree/workspace.c:227] Got valid workspace command for target: '2'
2019-03-12 16:52:00 - [sway/tree/workspace.c:227] Got valid workspace command for target: '3'
2019-03-12 16:52:00 - [sway/tree/workspace.c:227] Got valid workspace command for target: '4'
2019-03-12 16:52:00 - [sway/tree/workspace.c:227] Got valid workspace command for target: '5'
2019-03-12 16:52:00 - [sway/tree/workspace.c:227] Got valid workspace command for target: '6'
2019-03-12 16:52:00 - [sway/tree/workspace.c:227] Got valid workspace command for target: '7'
2019-03-12 16:52:00 - [sway/tree/workspace.c:227] Got valid workspace command for target: '8'
2019-03-12 16:52:00 - [sway/tree/workspace.c:227] Got valid workspace command for target: '9'
2019-03-12 16:52:00 - [sway/tree/workspace.c:227] Got valid workspace command for target: '10'
2019-03-12 16:52:00 - [sway/tree/output.c:115] Creating default workspace 1
2019-03-12 16:52:00 - [sway/tree/workspace.c:79] Adding workspace 1 for output eDP-1
2019-03-12 16:52:00 - [sway/desktop/layer_shell.c:178] Usable area changed, rearranging output
2019-03-12 16:52:00 - [sway/tree/arrange.c:190] Usable area for ws: 2560x1440@0,0
2019-03-12 16:52:00 - [sway/tree/arrange.c:221] Arranging workspace '1' at 0.000000, 0.000000
2019-03-12 16:52:00 - [sway/tree/arrange.c:190] Usable area for ws: 2560x1440@0,0
2019-03-12 16:52:00 - [sway/tree/arrange.c:221] Arranging workspace '1' at 0.000000, 0.000000
2019-03-12 16:52:00 - [sway/desktop/transaction.c:413] Transaction 0x4314173c430 committing with 2 instructions
2019-03-12 16:52:00 - [sway/desktop/transaction.c:281] Applying transaction 0x4314173c430
2019-03-12 16:52:00 - [wlroots-0.5.0/backend/drm/drm.c:1288] Requesting modeset for 'DP-3'
2019-03-12 16:52:00 - [sway/desktop/output.c:612] New output 0x431415ec4b0: DP-3
2019-03-12 16:52:00 - [wlroots-0.5.0/backend/drm/drm.c:542] Modesetting 'DP-3' with '2560x1440@143856 mHz'
2019-03-12 16:52:00 - [wlroots-0.5.0/backend/drm/drm.c:374] Starting renderer on output 'DP-3'
2019-03-12 16:52:01 - [sway/tree/arrange.c:190] Usable area for ws: 2560x1440@0,0
2019-03-12 16:52:01 - [sway/tree/arrange.c:221] Arranging workspace '1' at 2560.000000, 0.000000
2019-03-12 16:52:01 - [sway/desktop/transaction.c:413] Transaction 0x4314173b750 committing with 1 instructions
2019-03-12 16:52:01 - [sway/desktop/transaction.c:281] Applying transaction 0x4314173b750
2019-03-12 16:52:01 - [sway/tree/workspace.c:290] Workspace: Generating new workspace name for output DP-3
2019-03-12 16:52:01 - [sway/tree/workspace.c:227] Got valid workspace command for target: '1'
2019-03-12 16:52:01 - [sway/tree/workspace.c:227] Got valid workspace command for target: '2'
2019-03-12 16:52:01 - [sway/tree/workspace.c:280] Workspace: Found free name 2
2019-03-12 16:52:01 - [sway/tree/workspace.c:227] Got valid workspace command for target: '3'
2019-03-12 16:52:01 - [sway/tree/workspace.c:227] Got valid workspace command for target: '4'
2019-03-12 16:52:01 - [sway/tree/workspace.c:227] Got valid workspace command for target: '5'
2019-03-12 16:52:01 - [sway/tree/workspace.c:227] Got valid workspace command for target: '6'
2019-03-12 16:52:01 - [sway/tree/workspace.c:227] Got valid workspace command for target: '7'
2019-03-12 16:52:01 - [sway/tree/workspace.c:227] Got valid workspace command for target: '8'
2019-03-12 16:52:01 - [sway/tree/workspace.c:227] Got valid workspace command for target: '9'
2019-03-12 16:52:01 - [sway/tree/workspace.c:227] Got valid workspace command for target: '10'
2019-03-12 16:52:01 - [sway/tree/output.c:115] Creating default workspace 2
2019-03-12 16:52:01 - [sway/tree/workspace.c:79] Adding workspace 2 for output DP-3
...omitted for brevity...
2019-03-12 16:52:01 - [sway/desktop/layer_shell.c:178] Usable area changed, rearranging output
2019-03-12 16:52:01 - [sway/tree/arrange.c:190] Usable area for ws: 2560x1440@0,0
2019-03-12 16:52:01 - [sway/tree/arrange.c:221] Arranging workspace '2' at 0.000000, 0.000000
2019-03-12 16:52:01 - [sway/tree/arrange.c:190] Usable area for ws: 2560x1440@0,0
2019-03-12 16:52:01 - [sway/tree/arrange.c:221] Arranging workspace '1' at 2560.000000, 0.000000
2019-03-12 16:52:01 - [sway/tree/arrange.c:190] Usable area for ws: 2560x1440@0,0
2019-03-12 16:52:01 - [sway/tree/arrange.c:221] Arranging workspace '2' at 0.000000, 0.000000
2019-03-12 16:52:01 - [sway/desktop/transaction.c:413] Transaction 0x4314175e910 committing with 3 instructions
2019-03-12 16:52:01 - [sway/desktop/transaction.c:281] Applying transaction 0x4314175e910
2019-03-12 16:52:01 - [wlroots-0.5.0/backend/drm/drm.c:1288] Requesting modeset for 'DP-4'
2019-03-12 16:52:01 - [sway/desktop/output.c:612] New output 0x431415ece10: DP-4
2019-03-12 16:52:01 - [wlroots-0.5.0/backend/drm/drm.c:542] Modesetting 'DP-4' with '3440x1440@59973 mHz'
2019-03-12 16:52:01 - [wlroots-0.5.0/backend/drm/drm.c:374] Starting renderer on output 'DP-4'
2019-03-12 16:52:01 - [wlroots-0.5.0/backend/drm/atomic.c:55] DP-4: Atomic commit failed (modeset): Invalid argument
2019-03-12 16:52:01 - [sway/tree/arrange.c:190] Usable area for ws: 2560x1440@0,0
2019-03-12 16:52:01 - [sway/tree/arrange.c:221] Arranging workspace '1' at 6000.000000, 0.000000
2019-03-12 16:52:01 - [sway/tree/arrange.c:190] Usable area for ws: 2560x1440@0,0
2019-03-12 16:52:01 - [sway/tree/arrange.c:221] Arranging workspace '2' at 3440.000000, 0.000000
2019-03-12 16:52:01 - [sway/desktop/transaction.c:413] Transaction 0x43141791330 committing with 2 instructions
2019-03-12 16:52:01 - [sway/desktop/transaction.c:281] Applying transaction 0x43141791330
2019-03-12 16:52:01 - [sway/tree/workspace.c:290] Workspace: Generating new workspace name for output DP-4
2019-03-12 16:52:01 - [sway/tree/workspace.c:227] Got valid workspace command for target: '1'
2019-03-12 16:52:01 - [sway/tree/workspace.c:227] Got valid workspace command for target: '2'
2019-03-12 16:52:01 - [sway/tree/workspace.c:227] Got valid workspace command for target: '3'
2019-03-12 16:52:01 - [sway/tree/workspace.c:280] Workspace: Found free name 3
2019-03-12 16:52:01 - [sway/tree/workspace.c:227] Got valid workspace command for target: '4'
2019-03-12 16:52:01 - [sway/tree/workspace.c:227] Got valid workspace command for target: '5'
2019-03-12 16:52:01 - [sway/tree/workspace.c:227] Got valid workspace command for target: '6'
2019-03-12 16:52:01 - [sway/tree/workspace.c:227] Got valid workspace command for target: '7'
2019-03-12 16:52:01 - [sway/tree/workspace.c:227] Got valid workspace command for target: '8'
2019-03-12 16:52:01 - [sway/tree/workspace.c:227] Got valid workspace command for target: '9'
2019-03-12 16:52:01 - [sway/tree/workspace.c:227] Got valid workspace command for target: '10'
2019-03-12 16:52:01 - [sway/tree/output.c:115] Creating default workspace 3
2019-03-12 16:52:01 - [sway/tree/workspace.c:79] Adding workspace 3 for output DP-4
2019-03-12 16:52:01 - [sway/desktop/layer_shell.c:178] Usable area changed, rearranging output
2019-03-12 16:52:01 - [sway/tree/arrange.c:190] Usable area for ws: 3440x1440@0,0
2019-03-12 16:52:01 - [sway/tree/arrange.c:221] Arranging workspace '3' at 0.000000, 0.000000
2019-03-12 16:52:01 - [sway/tree/arrange.c:190] Usable area for ws: 2560x1440@0,0
2019-03-12 16:52:01 - [sway/tree/arrange.c:221] Arranging workspace '1' at 6000.000000, 0.000000
2019-03-12 16:52:01 - [sway/tree/arrange.c:190] Usable area for ws: 2560x1440@0,0
2019-03-12 16:52:01 - [sway/tree/arrange.c:221] Arranging workspace '2' at 3440.000000, 0.000000
2019-03-12 16:52:01 - [sway/tree/arrange.c:190] Usable area for ws: 3440x1440@0,0
2019-03-12 16:52:01 - [sway/tree/arrange.c:221] Arranging workspace '3' at 0.000000, 0.000000
2019-03-12 16:52:01 - [sway/desktop/transaction.c:413] Transaction 0x43141791730 committing with 4 instructions
2019-03-12 16:52:01 - [sway/desktop/transaction.c:281] Applying transaction 0x43141791730
...omitted for brevity...
2019-03-12 16:52:01 - [wlroots-0.5.0/backend/drm/atomic.c:55] DP-4: Atomic commit failed (modeset): Invalid argument
2019-03-12 16:52:01 - [wlroots-0.5.0/backend/drm/atomic.c:62] DP-4: Atomic commit without new changes failed (modeset): Invalid argument

In the log above, DP-4 fails to initialize and does not receive signal. Cold boot, hotplug or otherwise, DP-4 fails with default configuration (no configured outputs).

Can you echo 0xFF | sudo tee /sys/module/drm/parameters/debug, reproduce the bug, then echo 0x00 | sudo tee /sys/module/drm/parameters/debug, and upload dmesg?
Enabling DRM debug will produce very verbose output, so if you can reproduce as quick as possible between enabling debug and disabling it that would be better.

Sure, given the large-volume output, what should I be looking for to share here? Worst case I can always post the whole thing, but if I can pull out what would help that'd likely be easier on everyone.

Just post whatever you get between enabling logs and disabling them. Having too many logs is better than missing a critical piece of info.

Sure, I'll have that here in five minutes.

Hopefully this is enough, as my log buffer is not large: https://gist.github.com/Eriner/8d1a428cf792b8ca1976ac4cb7373c4c
I can reboot and try again with a larger buffer if that has truncated anything critical.

This is the line where it's failing it seems: https://gist.github.com/Eriner/8d1a428cf792b8ca1976ac4cb7373c4c#file-dmesg-log-L186


Histogram data output is empty when using a for loop

Environment Information

OS | Windows | CPU(s) | 16 | Machine | AMD64
Architecture | 64bit | RAM | 31.3 GiB | Environment | Jupyter
Python 3.11.9 (tags/v3.11.9:de54cf5, Apr 2 2024, 10:12:12) [MSC v.1938 64 bit (AMD64)]
geemap | 0.32.0 | ee | 0.1.398 | ipyleaflet | 0.18.2
folium | 0.16.0 | jupyterlab | 4.1.6 | notebook | 7.1.2
ipyevents | 2.0.2 | geopandas | 0.14.3 | localtileserver | 0.10.2

Description
I am trying to extract the ndvi pixel values from the histograms of multiple Sentinel-2 images and output them as a .csv file. Because there are a decent number of images, I created a for loop to iterate per image, providing the ndvi values from the histogram and saving them on csv. The issue is that the for loop outputs empty data(it actually outputs the bins but not the count); however, if it is executed line by line, it consistently outputs data. I used this example as the base of the code: https://github.com/gee-community/geemap/discussions/1032
What I Did
I have commented on the lines related to saving the data so that it is more comfortable to be run. I also wrote the prints to check the bins and count.
When running the loop this happends:

If you run line by line:

I also tried to add a delay between each petition to the GEE because I thought that caused the empty data, but the result was the same.
# %%
import ee
import geemap.chart as chart
import pandas as pd

# %%
ee.Authenticate()
ee.Initialize()

# %%
def calculateNDVI(image):
    ndvi = image.normalizedDifference(["B8", "B4"])

    return ndvi.rename("NDVI")

# %%
geometry = ee.Geometry.Polygon(
    [
        [
            [-6.310153895594499, 36.89932544542902],
            [-6.30912392733278, 36.89637395041979],
            [-6.308093959071061, 36.892461327607315],
            [-6.304574900843522, 36.89294183594877],
            [-6.298480921961686, 36.894108772184815],
            [-6.293674403406999, 36.895618898477814],
            [-6.294618540980241, 36.89726627490264],
            [-6.297536784388444, 36.903855425007976],
            [-6.301399165369889, 36.90275727283513],
            [-6.305519038416764, 36.90207091970124],
            [-6.310411387659928, 36.90124728779126],
        ]
    ]
)

# %%
collection = (
    ee.ImageCollection("COPERNICUS/S2_HARMONIZED")
    .filterBounds(geometry)
    .filterDate("2015-01-01", "2022-01-15")
    .filterMetadata("CLOUDY_PIXEL_PERCENTAGE", "less_than", 10)
)

# %%
ndviCollection = collection.map(calculateNDVI)

# %%
# geemap.ee_export_image_collection_to_drive(ndviCollection, folder="GEE", scale=10)

# %%
my_sample = ndviCollection.toBands().sample(geometry, 10)

# %%
options = {
    "title": "NDVI",
    "xlabel": "NDVI",
    "ylabel": "n",
    "colors": ["#1d6b99"],
}

# %%
properties = my_sample.first().propertyNames().getInfo()

# %%
for prop in properties:
    hist_data = chart.feature_histogram(my_sample, prop, **options, show=False)

    print(hist_data.bins)
    print(hist_data.count)

    df = pd.DataFrame({"NDVI": hist_data.midpoints, "n": hist_data.count[1:]})

    # df.to_csv(f"{prop}.csv")

# %%

Have you tried using the zonal_stats function?
https://geemap.org/notebooks/12_zonal_statistics/

Hi!
Following your suggestion, I tried the zonal_stats function, and the following are the results
No for loop:
import ee
import geemap
import os

ee.Authenticate()
ee.Initialize()

def calculateNDVI(image):
    ndvi = image.normalizedDifference(["B8", "B4"])
    return ndvi.rename("NDVI")

geometry = ee.Geometry.Polygon(
    [
        [
            [-6.310153895594499, 36.89932544542902],
            [-6.30912392733278, 36.89637395041979],
            [-6.308093959071061, 36.892461327607315],
            [-6.304574900843522, 36.89294183594877],
            [-6.298480921961686, 36.894108772184815],
            [-6.293674403406999, 36.895618898477814],
            [-6.294618540980241, 36.89726627490264],
            [-6.297536784388444, 36.903855425007976],
            [-6.301399165369889, 36.90275727283513],
            [-6.305519038416764, 36.90207091970124],
            [-6.310411387659928, 36.90124728779126],
        ]
    ]
)

collection = (
    ee.ImageCollection("COPERNICUS/S2_HARMONIZED")
    .filterBounds(geometry)
    .filterDate("2015-01-01", "2022-01-15")
    .filterMetadata("CLOUDY_PIXEL_PERCENTAGE", "less_than", 10)
)

ndviCollection = collection.map(calculateNDVI)

geometry_feature = ee.FeatureCollection(geometry)
scale = 10

out_ndvi_stats = os.path.join(os.path.expanduser("~"), "Downloads", "ndvi_stats.csv")
geemap.zonal_stats(ndviCollection, geometry_feature, out_ndvi_stats, stat_type='MEAN', scale=scale)

geemap.create_download_link(out_ndvi_stats)

In this case, it does output a csv with the mean values properly and not empty.
"
Computing statistics ...
Generating URL ...
Downloading data from https://earthengine.googleapis.com/v1/projects/earthengine-legacy/tables/34324237bcb4dd798c95c943ae4842e8-3f0985e16b05496e4c0d4373a875a4c0:getFeatures
Please wait ...
Data downloaded to C:\Users\user\Downloads\ndvi_stats.csv
"
However, when using a for loop, it does not work properly.
import ee
import geemap
import os

ee.Authenticate()
ee.Initialize()

def calculateNDVI(image):
    ndvi = image.normalizedDifference(["B8", "B4"])
    return ndvi.rename("NDVI")

geometry = ee.Geometry.Polygon(
    [
        [
            [-6.310153895594499, 36.89932544542902],
            [-6.30912392733278, 36.89637395041979],
            [-6.308093959071061, 36.892461327607315],
            [-6.304574900843522, 36.89294183594877],
            [-6.298480921961686, 36.894108772184815],
            [-6.293674403406999, 36.895618898477814],
            [-6.294618540980241, 36.89726627490264],
            [-6.297536784388444, 36.903855425007976],
            [-6.301399165369889, 36.90275727283513],
            [-6.305519038416764, 36.90207091970124],
            [-6.310411387659928, 36.90124728779126],
        ]
    ]
)

collection = (
    ee.ImageCollection("COPERNICUS/S2_HARMONIZED")
    .filterBounds(geometry)
    .filterDate("2015-01-01", "2022-01-15")
    .filterMetadata("CLOUDY_PIXEL_PERCENTAGE", "less_than", 10)
)

ndviCollection = collection.map(calculateNDVI)

geometry_feature = ee.FeatureCollection(geometry)

scale = 10

out_dir = os.path.join(os.path.expanduser("~"), "Downloads")

if not os.path.exists(out_dir):
    os.makedirs(out_dir)

for i, image in enumerate(ndviCollection.toList(ndviCollection.size())):
    image = ee.Image(image)
    out_ndvi_stats = os.path.join(out_dir, f"ndvi_stats_{i}.csv")
    geemap.zonal_stats(image, geometry_feature, out_ndvi_stats, stat_type='MEAN', scale=scale)

"
ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))"
}
"
What I am looking for is to extract the ndvi value of each pixel in each image of the collection inside the designed geometry. As I could check, this function returns mean, std, sum, etc. It seems that something is wrong in the for loop, and I might be failing to properly program it.

Use collection.toBands() instead of a for loop.
import ee
import geemap
import os

ee.Authenticate()
ee.Initialize()

def calculateNDVI(image):
    ndvi = image.normalizedDifference(["B8", "B4"])
    return ndvi.rename("NDVI")

geometry = ee.Geometry.Polygon(
    [
        [
            [-6.310153895594499, 36.89932544542902],
            [-6.30912392733278, 36.89637395041979],
            [-6.308093959071061, 36.892461327607315],
            [-6.304574900843522, 36.89294183594877],
            [-6.298480921961686, 36.894108772184815],
            [-6.293674403406999, 36.895618898477814],
            [-6.294618540980241, 36.89726627490264],
            [-6.297536784388444, 36.903855425007976],
            [-6.301399165369889, 36.90275727283513],
            [-6.305519038416764, 36.90207091970124],
            [-6.310411387659928, 36.90124728779126],
        ]
    ]
)

collection = (
    ee.ImageCollection("COPERNICUS/S2_HARMONIZED")
    .filterBounds(geometry)
    .filterDate("2015-01-01", "2022-01-15")
    .filterMetadata("CLOUDY_PIXEL_PERCENTAGE", "less_than", 10)
)

ndviCollection = collection.map(calculateNDVI)

geometry_feature = ee.FeatureCollection(geometry)

scale = 10

out_dir = os.path.join(os.path.expanduser("~"), "Downloads")

if not os.path.exists(out_dir):
    os.makedirs(out_dir)

image = ndviCollection.toBands()

out_ndvi_stats = "ndvi.csv"
geemap.zonal_stats(image, geometry_feature, out_ndvi_stats, stat_type='MEAN', scale=scale)

Hi Qiusheng Wu!
It is very likely that I have not properly explained the problem I am facing. To that end, I want to give you some context to help with your understanding:
I am currently doing a final master thesis, in which I am applying common remote sensing techniques such as NDVI, NDMI, SAVI..... on several delimited areas within the Guadalquivir estuary(Spain). Thus far, I have created a time series that represents the mean value of the indices. What I am currently trying to do is to use each satellite image within these time series and represent the value of each pixel for NDVI, NDMI, etc. in a histogram, and thus check the distribution of the data outside a mean. For example, imagine a Sentinel-2 image for the date 25/12/2015. In this case, I want to know the NDVI value of each pixel in that defined area, represent it in a histogram, and check the distribution of this data for that particular day of that year. In the case of my study, I would have approximately 2000+ images between the areas. Therefore, I want to apply a for loop that uses these NDVI pixel values and represent them in a histogram for each of these images and, if possible, save the NDVI(I write NDVI, but it would be for each index) pixel values in a csv.
When I tried to apply this loop, I encountered the problem reported above, returning an empty output for using the loop.

up!


Document "Detete topic" mobile app feature

In the mobile app, topics can be deleted via the long-press menu. This menu can be accessed from the topic bar on any message, as well as the top bar in a topic narrow, and the list of topics for a stream.
We should document this feature on https://zulip.com/help/delete-a-topic.
Instructions for accessing the long-press menu should be added using a new macro in templates/zerver/help/include for reusability.
Related issues: #22144, #22146, #22147

@zulipbot claim

@zulipbot claim


Avoid global variable reference

ref: https://github.com/nodejs/node/search?l=JavaScript&q=primordials+Object

I don't understand this PR. It doesn't use Node.js primordials so what is this protecting against?

Global variable reference greatly degrades the runtime performance as follows.
[BAD 0.7%]
Global variable reference
x 3,803,038 ops/sec ±1.03% (57 runs sampled)

[BAD 0%]
Global variable reference x10
x 331,805 ops/sec ±20.80% (52 runs sampled)

[BAD 0.5%]
Instantiation of global variable
x 2,894,146 ops/sec ±2.00% (57 runs sampled)

[Fastest]
Local variable reference
x 527,495,329 ops/sec ±0.58% (59 runs sampled)

Instantiation of local variable
x 473,611,915 ops/sec ±20.21% (52 runs sampled)

https://falsandtru.github.io/benchmark/suites/10/
This PR prevents the performance degradation.

Can you show the difference by running eventemitter3 benchmark before and after the change?

The use of primordials caused performance regressions on Nodes.js not boost https://github.com/nodejs/node/issues/29766.

$ node -v
v13.7.0
$ cat index.js
'use strict';

const Benchmark = require('benchmark');

const suite = new Benchmark.Suite();
const Arr = Array;

let ret;

suite.add('local', function() {
  ret = new Arr();
});

suite.add('global', function() {
  ret = new Array();
});

suite.on('cycle', function(event) {
  console.log(event.target.toString());
});

suite.on('complete', function() {
  console.log('Fastest is ' + this.filter('fastest').map('name'));
});

suite.run({ async: true });
$ node index.js
local x 75,396,008 ops/sec ±0.35% (94 runs sampled)
global x 76,764,603 ops/sec ±0.10% (98 runs sampled)
Fastest is global

That issue lists two causes but this PR doesn't use either.

The regressions seem to come from two types of code patterns:

Calling functions through Function.prototype.{call, apply} instead of just calling them directly. There is an issue opened in the upstream by @\bmeck
https://bugs.chromium.org/p/v8/issues/detail?id=9702
Looking up properties from fronzen objects - objects from our primordials namespace are frozen so lookups like const { Reflect } = primordials; Reflect.apply(...); is slower than just Reflect.apply when Reflect comes from the global object. This can be mitigated by caching the lookup results upfront, e.g. #29633 by @\mcollina There is also a fairly odd tracking issue for this in the upstream: https://bugs.chromium.org/p/v8/issues/detail?id=6831

Yes, the point is that the use of primordials did not cause any performance improvement in Node.js

Confirmed. Looks like it is difficult to improve the performance on browsers without decreasing the performance 1-2% on Node.js.

Note Function('return this')() breaks a typical Content-Security-Policy, so it shouldn't resort to that.


Placed scrollable menus

Regarding #2178. Replaced UIDropdown with UIDropdownScrollable on two menus in the Create Game menu:

Game templates, with three visible options;
World generator, with three visible options.

This works well with PR #2180.

Can one of the admins please verify this patch?

Ok to test

Thanks! I will look into this asap (probably tomorrow night)

Refer to this link for build results (access rights to CI server needed):
http://jenkins.terasology.org/job/TerasologyPRs/438/
Hooray Jenkins reported success with all tests good!

Sorry, I need a few more days before I can review the whole thing.

I got it, no worries :)
Been feeling a little sick, but getting better.
Thanks @AlexanderGrooff !


Consistently use Z_NULL to initialize the opaque object.

There's also an actual benefit to this. When using the unmodified zconf.h.in, compress.c and uncompr.c end up without a definition for NULL in both GCC and Clang, when compiling for the x86_64-unknown-linux-gnu target. Using Z_NULL here allows zlib-ng (without the gzip parts) to be compiled under this setup by just symlinking zconf.h.in to zconf.h, without having to run ./configure or CMake before, which is especially useful for projects that statically link zlib-ng or use Git submodules.

Looks good to me.
@mtl1979 Would this cause any problems with windows/mingw?

@Dead2 Instead of re-introducing Z_NULL, we should fix that NULL is always properly defined as running configure or cmake is already optional on various targets that don't use bash. Only point of running configure or cmake is to detect on native compile that specific instruction sets are usable.

@nmlgc could you please have a look at this commit and give your thoughts?
Replace Z_NULL with NULL. Fix incorrect uses of NULL/Z_NULL.

I only went with Z_NULL because zlib.h explicitly designates it as the constant to be used in this case, but if you want to get rid of it and include stddef.h by default, that works too.

We have been cleaning non-standard types from zlib-ng and Z_NULL is one of the last ones... It was most likely used to support non-standard C or C++ compilers that don't support "((void *)0)", which is standard definition for NULL. Like I mentioned above, one big reason to stick to standard types is so we get compiler warnings or errors when we assume compiler doesn't implicitly cast to compatible type when left and right side of assignment or operator have mismatched types.

I think we should keep a Z_NULL define in zlib.h though, for compatibility. I think it gets used externally.

@Dead2 Yeah... But we should define it as NULL instead of 0.

A NULL cleanup patch has been merged to develop


AKS: Fix storage pool name validation for Azure Container Storage

…name

This checklist is used to make sure that common guidelines for a pull request are followed.
Related command

General Guidelines

[ ] Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
[ ] Have you run python scripts/ci/test_index.py -q locally? (pip install wheel==0.30.0 required)
[ ] My extension version conforms to the Extension version schema

For new extensions:

[ ] My extension description/summary conforms to the Extension Summary Guidelines.

About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

Thank you for your contribution! We will review the pull request and get back to you soon.

It is a known issue and has been fixed. Please rebase from the main branch to pick up the fix.

/azp run

/azp run


Feature Request: Window swallower

Hello,
I don't know if it is feasible but it would be great to have windows swallowing possible in yabai. Like in these projects:
https://github.com/salman-abedin/devour
https://github.com/jamesofarrell/i3-swallow
I love it when I was still using i3wm and it might interest other people.

How does something like this differ from simply having a monocle/stack layout, opening an application, and quitting / hiding / minimizing it when you are done. The previous window will once again becomes the key window. ??

This is useful when for example, you open a file using finder or terminal and you want the source window hidden until the opened window is closed (maybe preview, maybe edit a line). This helps keep the desktop layout consistent and feels natural for most use-cases.

Isn't that effectively the same as opening a window on-top-of another window without changing the layout? Which is exactly how window stacking works. When the top window of the stack is closed, the window beneath is revealed.
e.g.

focus a window
activate "swallowing"  for the currently focused window (yabai -m window --insert stack)
open a new application / window. it will be placed on top of the window selected in step 1.
do whatever you want in the newly created window.
close the window
window selected in step 1 is visible/focused again

step 1. and 2. above can be replaced / merged into a single yabai -m window west --insert stack command or w/e, if you know which window you want to make the target for the "swallow" operation.


fix: add sec headers

Closes idpe#7901

@russorat i clicked the link in that ticket and read over the recommendation. where is the rec coming from? it seems a little arbitrary and possibly unrelated to our server. i just want to make sure we're configuring things with intent rather than copy/pasting or cargo culting.

This is pretty old and the code it is changing has moved around quite a bit, but having better security headers generally seems like a good idea.
@jdstrand - can you weigh in on this change? Basically we'd be adding the following headers to requests for static content from OSS servers:
w.Header().Add("X-Frame-Options", "SAMEORIGIN")
w.Header().Add("X-XSS-Protection", "1; mode=block")
w.Header().Add("X-Content-Type-Options", "nosniff")
w.Header().Add("Content-Security-Policy", "script-src 'self'; object-src 'self'")


Storage and access

@Webysther Thanks for this project.

I'm still trying to work out the differences between this and satis. Is packagist-mirror "just" enabling a geographical close copy while satis has a larger scope?
In terms of architecture, would the result of packagist-mirror just be pushed to S3 and served via something like Cloudflare?

Yes, only a mirror.
Packagist have a few copy with CDN but some places they don't provide support, like Brazil or China. After some discussion here we created a active project to support only mirror to not depend only of packagist.org metadata

I see, thanks @Webysther. I was thinking about creating one mirror for Australia, but it appears we should be good if a CDN is used.

I prefer webhook to register mirror or rsync protocol like apt mirror. If packagist.org provide global wide CDN reduce the existence of this project, but some places need a copy because github is blocked like china new mirror

@estahn you need to ask packagist to create or you can change this repository to push to S3. I do no if the AWS API requests is more cheap than a micro instance for 1 sec sync.


Dependency with Dagger and android library

Hi,
I am working on a multi module project and I have used as a starting point this example, which helped a lot.
I am little bit stuck  on this use case that I encountered:

Based on this clean architecture example,  let's say I need another library android module which will handle payments with google play.
It provides the entire billing provider integration and I decided to build it as a library as it will be referenced from other modules as well.
Once a purchase is being made I would need to update my wallet amount remote which is part of the data layer currently. So my payment library will have a reference to it.

The issue I am struggling with is that from the payment library  I need to provide to the data layer API call an instance of the data store factory. Since I already have the data store factory injected as a singleton in the app module Application Component, I am not sure if I can or should expose it to the library or I need to handle a new instance managed from within the library and not use Dagger for this specific use case and repository.
Thanks for any suggestions!

@apurcaroiu Uncle Bob clearly stated in this video, that you DONT want to inject anything into the Interactors (UseCase) period. Thank you.


postcss reports an error on fontFamily.sans when using typescript in a react app

Hi all.
Thank you so much for making this utility !
I am trying to use shadcn in a vite react application (as opposed to next) and i am encountering this issue. I tried turning my config file to typescript. This error does not happen if i dont use typescript for the config file.
import type { Config } from "tailwindcss";

import fontFamily from "tailwindcss/defaultTheme";
import animatePlugin from "tailwindcss-animate";

const config = {
  darkMode: ["class"],
  content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
  theme: {
    container: {
      center: true,
      padding: "2rem",
      screens: {
        "2xl": "1400px",
      },
    },
    extend: {
      colors: {
        border: "hsl(var(--border))",
        input: "hsl(var(--input))",
        ring: "hsl(var(--ring))",
        background: "hsl(var(--background))",
        foreground: "hsl(var(--foreground))",
        primary: {
          DEFAULT: "hsl(var(--primary))",
          foreground: "hsl(var(--primary-foreground))",
        },
        secondary: {
          DEFAULT: "hsl(var(--secondary))",
          foreground: "hsl(var(--secondary-foreground))",
        },
        destructive: {
          DEFAULT: "hsl(var(--destructive))",
          foreground: "hsl(var(--destructive-foreground))",
        },
        muted: {
          DEFAULT: "hsl(var(--muted))",
          foreground: "hsl(var(--muted-foreground))",
        },
        accent: {
          DEFAULT: "hsl(var(--accent))",
          foreground: "hsl(var(--accent-foreground))",
        },
        popover: {
          DEFAULT: "hsl(var(--popover))",
          foreground: "hsl(var(--popover-foreground))",
        },
        card: {
          DEFAULT: "hsl(var(--card))",
          foreground: "hsl(var(--card-foreground))",
        },
      },
      borderRadius: {
        lg: `var(--radius)`,
        md: `calc(var(--radius) - 2px)`,
        sm: "calc(var(--radius) - 4px)",
      },
      fontFamily: {
        sans: ["var(--font-sans)", ...fontFamily.sans],
      },
      keyframes: {
        "accordion-down": {
          from: { height: 0 },
          to: { height: "var(--radix-accordion-content-height)" },
        },
        "accordion-up": {
          from: { height: "var(--radix-accordion-content-height)" },
          to: { height: 0 },
        },
      },
      animation: {
        "accordion-down": "accordion-down 0.2s ease-out",
        "accordion-up": "accordion-up 0.2s ease-out",
      },
    },
  },
  plugins: [animatePlugin],
};

export default config;

[postcss] _defaultTheme2.default.sans is not iterable
10:05:02 a.m. [vite] Internal server error: [postcss] _defaultTheme2.default.sans is not iterable
  Plugin: vite:css
  File: /projects/react/test00/src/app/app.css
      at /projects/react/test00/tailwind.config.ts:77:62
      at jiti (/projects/react/test00/node_modules/.pnpm/jiti@1.18.2/node_modules/jiti/dist/jiti.js:1:245784)
      at /projects/react/test00/node_modules/.pnpm/tailwindcss@3.3.2/node_modules/tailwindcss/lib/lib/load-config.js:37:30
      at loadConfig (/projects/react/test00/node_modules/.pnpm/tailwindcss@3.3.2/node_modules/tailwindcss/lib/lib/load-config.js:39:6)
      at getTailwindConfig (/projects/react/test00/node_modules/.pnpm/tailwindcss@3.3.2/node_modules/tailwindcss/lib/lib/setupTrackingContext.js:71:116)
      at /projects/react/test00/node_modules/.pnpm/tailwindcss@3.3.2/node_modules/tailwindcss/lib/lib/setupTrackingContext.js:99:92
      at /projects/react/test00/node_modules/.pnpm/tailwindcss@3.3.2/node_modules/tailwindcss/lib/processTailwindFeatures.js:48:11
      at plugins (/projects/react/test00/node_modules/.pnpm/tailwindcss@3.3.2/node_modules/tailwindcss/lib/plugin.js:38:63)
      at LazyResult.runOnRoot (/projects/react/test00/node_modules/.pnpm/postcss@8.4.24/node_modules/postcss/lib/lazy-result.js:339:16)
      at LazyResult.runAsync (/projects/react/test00/node_modules/.pnpm/postcss@8.4.24/node_modules/postcss/lib/lazy-result.js:393:26)

You imported the whole tailwind theme as fontFamily.
Change this line:
import fontFamily from "tailwindcss/defaultTheme";

To this:
import { fontFamily } from "tailwindcss/defaultTheme";

And all should work normally.

 Never would have found that by the error message alone.

This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.


Arduino Nano 33 BLE: Enabling USB ACM for serial console

Signed-off-by: Nagesh Shamnur<EMAIL_ADDRESS>

Closing this PR as i figured out a way to enable console and shell for Arduino Nano 33 BLE via USB CDC_ACM

Closing this PR as i figured out a way to enable console and shell for Arduino Nano 33 BLE via USB CDC_ACM

Could you further explain how to achieve that?


Revert "[ConstraintSystem] Simplify addOverloadSet"

Reverts apple/swift#23194

@swift-ci please smoke test

It looks like the only nuance here is that a single choice should still get favored, which I have missed. I'm going to fix this up on the follow-up commit.


Pass api/action payload as row variable for consistency (#1722)

Thank you for spotting this inconsistency and the fix is 100% the right thing to do!


Remove CDS hero on homepage

:+1:

:tada: This has been pushed live to https://developers.google.com/web/


Continue, break or step not working (TRACE32)

Also, neither continue, break or step is working (nothing printed in the log when I press the buttons in VSCode).
Originally posted by @wwbenayed in https://github.com/intel/vscode-tcf-debug/issues/1#issuecomment-1825286848

@wwbenayed: you should at least see the TCF message being sent for continue / step. Please provide more info.

When I press continue or step, I don't see any new TCF message in the log.
Only the CALL STACK switch to "Running"

This is not enough information.
Did you short-circuit the handshake as not to load all the runcontrol contexts?
Note that according to the spec https://download.eclipse.org/tools/tcf/tcf-docs/TCF Service - Run Control.html#CmdResume

Only contexts with HasState = true can be resumed.

HasState is true.
 We do fallback on RunControl if ContextQuery is missing but we don't build the context info correctly.

I suspect https://github.com/intel/vscode-tcf-debug/releases/tag/v0.2.7 fixes this.
Please reopen if the bug remains and you have more info.


fuse 1.6

add fuse 1.6.0 till RP updates their end

it is not instilling right, for now it is broken till i find a repo with that version i can build from

since there is diffs that go with the version that RP has, im not going to bother since i have not figured that part out


IMN-226 - adding suspend agreement tests

[ To be merged after #384 ]
Closes IMN-226
Tests
New automated tests pass ✅

Manual tests for some cases ✅
1) initial agreement

2) suspending

3) suspended agreement

@Viktor-K  @MalpenZibo  @galales  Solved conflicts with main, ready for review again 🔍


How is the performence on the bio-medical image?

How is the performence on the bio-medical image? and looking forward to upload your code

The performence on  bio-medical image has not been attempted yet, and the code will be made public soon.


change default query to use boolean

Change the find_by to use default: true as its probably that the name of the default stock location will be updated, it is better to search for the location that is selected as the default.
For me this was causing a major issue as my default stock location was not named default, therefore, it was creating a large set of stock moves and a new location every time. In addition, the condition should be changed to and in that if avatax origin already exists we do not want to recreate it.

Alright, so the logic in the method doesn't really make that much sense. I've refactored it so it makes sense to me although I realize that may not be the way it needs to be.
Basically, it looks for a stock location in a preferential order, then it makes sure that location has a valid address. If it doesn't it resets the address to the avatax config (this seems a bit risky to me, but that's basically how it happened before)
My actual recommendation on how this should work would be to select either the default address, if there is no default create a 'avatax origin' address and use it.

I would propose changing the design of this method to something along these lines:
https://github.com/railsdog/spree_avatax_certified/pull/43

I can cleanup these PR's so they can be cherry-picked more easily as well, if desired

@acreilly could you take a look at one of these two PR's?


MWPW-136622 - Caas Bulk Publish enhancements for Floodgate

Add Floodgate field in Bulk Publish tool
Modify FG URLs to be fetched based on hlx.live instead of Published URL
Add Floodgatecolor in payload, while bulk publish
Changed Floodgate to selectable dropdown for authors to choose from a set of Floodgate colors while publishing to Caas

Resolves: MWPW-136622
Test URLs:

Before: https://main--milo--adobecom.hlx.page/tools/send-to-caas/bulkpublisher.html?martech=off
After: https://main--milo--arshadparwaiz.hlx.page/tools/send-to-caas/bulkpublisher.html?martech=off

Test Data

Host: milo.adobe.com
Repo: milo-pink
Repo owner: adobecom
Publish to Floodgate: pink
URLs: https://milo.adobe.com/drafts/arshad/caas-fg-card-3

The Lint issue and Test Case issue are existing issues.

@arshadparwaiz existing lint issues are no excuse to not go in and fix them 😁

@mokimo Yeah, I have solved existing code issues in previous PRs, however not always I have the context of impact of the changes of someone’s code. Will see if I can address the issue here if it requires any refactor.


Fix github link in installation instructions

Good day.
Wanted to use this library and noticed that github link in provided shard.yml example does not match the actual link.
KR, Oleksii.

thanks! thought i had fixed that already.


Update which-erlang.md

This update make the Erlang versions match what is in the release notes for RabbitMQ 3.12.0->3.12.6.

This breaks page rendering:
lxml.etree.XMLSyntaxError: Opening and ending tag mismatch: tr line 96 and table, line 391, column 9


duration doesn't work when using velocity animation

Hello,
duration doesn't work when using velocity  !
 <notifications position="top center" width="90%" animation-type="velocity"  :duration="1000" />

Hi, fix it here