feat(bungee-hermes): add BUNGEE package

BUNGEE is an implementation of a view generator https://dl.acm.org/doi/10.1145/3643689
Depends on #3638 and #3639;: #3642, #3643 #3644
Depends on https://github.com/hyperledger-cacti/cacti/pull/3638
Depends on https://github.com/hyperledger-cacti/cacti/pull/3639
Depends on https://github.com/hyperledger-cacti/cacti/pull/3642
Depends on https://github.com/hyperledger-cacti/cacti/pull/3643
Depends on https://github.com/hyperledger-cacti/cacti/pull/3644
Authored-by: Eduardo Vasques<EMAIL_ADDRESS>Co-authored-by: Rafael Belchior<EMAIL_ADDRESS>Signed-off-by: Rafael Belchior<EMAIL_ADDRESS>Pull Request Requirements

[x] Rebased onto upstream/main branch and squashed into single commit to help maintainers review it more efficient and to avoid spaghetti git commit graphs that obfuscate which commit did exactly what change, when and, why.
[x] Have git sign off at the end of commit message to avoid being marked red. You can add -s flag when using git commit command. You may refer to this link for more information.
[x] Follow the Commit Linting specification. You may refer to this link for more information.

Character Limit

[x] Pull Request Title and Commit Subject must not exceed 72 characters (including spaces and special characters).
[x] Commit Message per line must not exceed 80 characters (including spaces and special characters).

A Must Read for Beginners
For rebasing and squashing, here's a must read guide for beginners.

@petermetz are we good to merge this?

@RafaelAPB Yes, good from my side. We need another reviewer as well though (another maintainer)

LGTM
Just please divide PR dependencies into separate lines so that our bot can catch them, something like:
* Depends on [feat(cactus-core-api): add Ethereum ledger type #3638](https://github.com/hyperledger-cacti/cacti/pull/3638)

* Depends on [feat(cactus-consortium): add Ethereum ledger type #3639](https://github.com/hyperledger-cacti/cacti/pull/3639)

* Depends on [feat(cactus-connector-besu): add RunTransactionV1Exchange to share receipt data #3642](https://github.com/hyperledger-cacti/cacti/pull/3642)

* Depends on [feat(cactus-connector-ethereum): add RunTransactionV1Exchange to share receipt data #3643](https://github.com/hyperledger-cacti/cacti/pull/3643)

* Depends on [feat(cactus-connector-fabric): add get transaction receipt by tx id #3644](https://github.com/hyperledger-cacti/cacti/pull/3644)

Good point, thanks for catching that @outSH !

Thanks @outSH and @petermetz

@RafaelAPB There are a few test failures, I'll take a quick look

I pushed a fix by @eduv09 - all should work now

I pushed a fix by @eduv09 - all should work now

@RafaelAPB Nice, thank you, I'm merging it now!


fixing report date issues

Github Issue (if applicable): #641, #646, #607
Explanation of Bugfix/Feature/Enhancement:
Using built in ynab function to get dates without time.
Recommended Release Notes:
Fixed discrepancy issues with toolkit reports where dates were falling into the wrong months.

Hey Josh, just cloned & built this branch and the reports look all good now!
Thanks a lot for taking the time to work out the fix especially because you were going in blind.
Just to give you some context on the impact the change makes to me:
Here's my true net worth graph (as reported by YNAB and now the toolkit):

And here's what the pre-fix version of the toolkit graph looked like:

My case might be a bit unique because I'm paid on the last day of the month and had a number of big purchases too, but Toolkit Reports were basically unusable because of it so thank you.

Thanks!

@dkisselev hey man, is everything still looking good for you? some folks are still reporting issues, just trying to track down what it could be now...?


Added Expo config plugin

Why
With Expo SDK 41 we've rolled out an interface called config plugins which lets users add native modules that aren't in the Expo Go app to their native cloud builds and locally when prebuilding.
This is a highly requested package so I've created the plugin personally.
We’re still working on improving the development experience for config plugins and custom managed workflow, feel free to add any feedback. People won’t be able to use this in an Expo-Go-like-app until we release “Expo Development Client” (more info).
How

Added a /plugin folder and an app.plugin.js as the main entry point to the plugin. Plugins must run in at node LTS environments (currently that means 12 and greater), so a custom tsconfig.json is used for transpilation.
The plugin is like a different package that's vendored for versioning purposes. Building is done with tsc --build plugin (yarn build:plugin).

Test Plan
I'm not certain how to test this package in the repo, so I did it externally.

Run npm pack in the package
Install the package in a managed Expo project yarn add<EMAIL_ADDRESS>Then add react-native-ble-plx to the plugins array and build the native app locally with expo prebuild and yarn ios, yarn android. We plan to further automate these steps with expo install and expo run commands.

Modified some values and in the config plugin and updated with expo prebuild and yarn ios, yarn android.

 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.

Bump?

I would really like to try out this way of adding a native package to expo, I cloned the repo, build tsc, and supplied the app.json with a path to the package. Almost thought I got it working, but when running expo prebuild I receive Unexpected token 'export'. Excuse me if it's intrusive/unfit to ask for advice here, just unsure how to continue now.

Do you need help approving this? We all would love to start using this feature. Thanks.

@piotrdubiel  @dariuszseweryn  @Cierpliwy is there anything the community can do to get some eyes on this PR?

@sadilekivan download this file, change the filename to react-native-ble-plx-2.0.2.tgz (removing .zip), and install the package in your project.
react-native-ble-plx-2.0.2.tgz.zip

I ask you for a little bit more patience. I do not have capacity at the moment to test it out and this repository will most probably start to be maintained by someone else in the following days. 👍

😢😢😢  when?  😢😢😢

@EvanBacon could you write a blog post on how to fork this repo and build this plugin for expo?
I've tried several times to get it working but I think there's a step in here I'm missing. It just says
not a valid plugin or no plugin found, etc.

@dashcraft you can use this out-of-tree solution in the meantime @config-plugins/react-native-ble-plx. It's not versioned with the code so YMMV over time, but for now it works great!

@EvanBacon thanks for your great work! It works fine for me !!!
Maybe a fix to the CI could help the repository owner to merge your PR?

Is this PR still needed to use this library with Expo development clients?

@outinspace you can use the out-of-tree plugin in the meantime (mentioned just two comments before yours https://github.com/dotintent/react-native-ble-plx/pull/842#issuecomment-870244083).

Just wondering when/if this will ever be merged?

@Wolfleader101 see https://github.com/dotintent/react-native-ble-plx/issues/908#issuecomment-1280663005

@Wolfleader101 see #908 (comment)

The issue is that ble-manager doesn't support expo configs at all, so all the work would have to be done again.
The idea that a react native package that can be ported, wouldn't have the configs necessary for the expo is problematic.

@dashcraft I don't know what to say
https://github.com/dotintent/react-native-ble-plx/ doesn't seem to be maintained anymore, this expo config may never merge, and even if it merges, we will have a Bluetooth library for expo which is not maintained.
https://github.com/innoveit/react-native-ble-manager is maintained for now, so maybe one can do the expo wrapper for it.

The library had a support gap but we are currently working on expo prebuild feature support. This PR has become outdated over time so we will make the necessary changes for the latest versions.

Updated in https://github.com/dotintent/react-native-ble-plx/pull/1105 and merged


Associated Constants for Ready and PollOpt constructors

Fixes #661

This seems to be nightly only.

@ahmedcharles  That's right.  Associated Constraints are planned to drop in 1.20.

Looks like associated constants landed on stable. We'll have to wait 12 weeks before merging it into Mio though...

I think the issue was 'consider using associated constants'.  I still haven't seen a discussion about it.

So at this point the only failure is for rust 1.13.0 which will obviously fail, as will 1.19.0

Yeah, we are following the rust-lang lib policy of supporting the 2 latest stable versions of Rust, so we can merge this in ~3 mo :)

It would probably just be worth waiting for 0.7.

If you are up for it, could you rebase this against the v0.7.x branch? I am using that as staging for v0.7.x

Do we need to do anything to get Travis to build 1.14?  Should I update the .travis.yml#27 with 1.20

error: associated constants are experimental (see issue #29646)

Yes, I think it would be fine to update the 0.7 branch to depend on 1.20. Would you mind submitting a separate PR for that? I like to keep a clear marker in the git history of the decision to update the min version.

I'm closing this PR.  It is easier to use IDE tools to find and replace than keeping this branch current.


Should provide a way to clear the input

After selecting an item, you cannot clear the input, you can select another item but not empty.
Probably a close button like in combo-box would be nice.
As a workaround, you can add an empty valued item to select it.
          <vaadin-dropdown-menu>
            <template>
              <vaadin-list-box >
                <vaadin-item label=""> </vaadin-item>
                <vaadin-item>Jose</vaadin-item>
              </vaadin-list-box>
            </template>
          </vaadin-dropdown-menu>

This is not standard behavior for a dropdown menu (having a “clear” button by default). The standard way of doing this is providing an ”empty” option/item in the list, like in your workaround.
But it could be a nice additional feature. Needs a bit more though how it would work in different situations, and some user testing.

At first I thought it was an element which on click would provide a stateless list of items to click on (similar to MenuBar in Framework or dropdowns in Bootstrap), where there is no selection or selected elements, so there's nothing to clear or reset.
Maybe I'm not understanding the rationale behind this component. How is it supposed to differ from combo-box?

For the use case you describe, we are going to build vaadin-menu-button. We are using the same naming as Paper elements, and naming which is quite established for UI (https://en.wikipedia.org/wiki/Widget_(GUI)).
vaadin-dropdown-menu is basically meant as a replacement for the native select element, but with more features and better styling support.
The main difference to combo box is that in a dropdown menu you should generally limit the number of items/options to 5–10, whereas in a combo box you can have hundreds (possibly thousands) of items/options to filter and choose from. Visually they look pretty much identical.

Thank you for the explanation!

The main difference to combo box is that in a dropdown menu you should generally limit the number of items/options to 5–10, whereas in a combo box you can have hundreds (possibly thousands) of items/options to filter and choose from. Visually they look pretty much identical.

Is this worth a separate component? Why not a specialization of combo-box?

We’ve surely thought about that, and it would be nice to have them build up from the same foundation. But at least at this very moment, it’s not the best way for us to implement this new component.
The combo box element has a lot of legacy already built-in, and needs some refactoring in the future, so it’s probably safer to not couple them tightly right now.
Also, allowing keyboard in combo box brings in a lot of complexity on mobile devices (technical and design-wise), which is another reason to keep these separate.

Decided with the team not to be implemented.

Let's reconsider that in future, if we receive a feedback from the customers regarding clearButtonVisible API not available in vaadin-select


If working in Visual Studio 2017

Just to mention, that will need to set mimeType for ".vue" extension file to use httpvueloader
May need to do it in Project "ApplicationHost" config file or in IIS Express "ApplicationHost" config file.
Project:
C:\Users<your name>\Documents\Visual Studio 2017\Projects<project name>.vs\config
IIS Express:
C:\Users<your name>\Documents\IISExpress\config
<mimeMap fileExtension=".vue" mimeType="application/javascript" />
Otherwise, keeps throwing file not found when referencing url file .vue.

Yeah, this is a common thing to who use visual studio projects...

Thanks for the tip.
But Chrome often handles Vue files as static resources, so how do I configure config to get the latest modified Vue files correctly every time? I'm using asp.net.

All right. I found a way.

@Yxjhasadream you should use cache-busting on querystring parameters instead use this option from chrome.

@giolvani  It really should be, thank you. But I usually need chrome not to cache when I'm debugging, and it's better to cache when it's released.

In MVC Core projects you can use something like this in your Startup.cs Configure:
app.UseStaticFiles(new StaticFileOptions
{
    ContentTypeProvider = new FileExtensionContentTypeProvider(
        new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) {
            { ".vue", "application/javascript" }
        }),
});

I feel that's more maintainable than in the ApplicationHost.

I know this is an old issue, but another way to set this up in an ASP.NET app, is to add the following to the web.config:
  <system.webServer>
    <staticContent>
      <mimeMap fileExtension=".vue" mimeType="application/javascript"/>
    </staticContent>
  </system.webServer>

For some reason the dev server to use in VueJS in a basic VueJS project (started with npm run serve which runs vue-cli-service serve) .vue files are served as XML.
In this case the loader errors out with "responseText is undefined" - i checked networking activities and the result seems to be fine, so i think, this is also mime-type related. Can someone confirm this?
And, can someone provide a fix for this?

Failed to resolve async component default: ReferenceError: responseText is not defined


how to deal with batcheffect if the analysis needs to be done on raw count data?

hi ~
i am new to this package. i tried to run the analysis on an integrated dataset and the results appears to be significantly affected by batcheffect. i checked the source code and noticed that the package uses raw count data from the "RNA" slot. how should i deal with batcheffect if the analysis needs to be done on raw count data?
thanks.

well.. did not really affect my conclusion

i just read the VISION paper and noticed the authors recommended normalizing batch effect before performing the analysis.


Multiple sink transports active simultaneously

Not sure if this counts as a bug or a feature....
I've notice that multiple sink transport can be active at one time allowing multiple devices to play audio. This is problematic when trying to use blueALSA in a Bluetooth speaker configuration as you would only want one device playing audio at a time.
Do you feel this mutual exclusion should occur within blueALSA or at a higher level? Perhaps within the Bluetooth connection manager?

Hi,
I've actually spent some time to make this "feature" possible :). However, I'm glad you've created this issue. User feedback is always a great value.
In short, I've tried to make audio connectivity as flexible as possible, so later someone (or I) might use it in a whatever configuration one likes. If you are using bluealsa-aplay for playing audio from Bluetooth sinks, I think that it is reasonable to add option to indeed disable playing multiple audio at once (it has crossed my mind before, that it would be nice to play only one audio in order to mimic "standard" Bluetooth speaker). However, it might not be very the same as with a standard Bluetooth speaker. Standard Bluetooth speaker blocks playing audio from second (third, ... etc.) device, so it is visible (e.g. on smartphone) (if I'm not mistaken) that the audio is not playing. Recreating something similar would require things that I'm not sure I'll make - it will introduce unnecessary spaghetti code. So, the simplest version of this "counter-feature" will be as follows:

first person connects BT device 1 and starts playing audio which is audible
second person connects another BT device and starts playing audio; smartphone music player indicates that the audio is playing, however it is not audible
first person disconnects or stops playing, then immediately audio from the second device is audible
first person starts playback and audio is not audible until step 3 occurs for the second person

What do you think?
If you are not using bluealsa-aplay for creating Bluetooth audio, this "feature" is beyond my control. And it should be implemented in the application you are using - mixing/multiplexing audio from two microphones (Bluetooth sinks).

I think making the software as flexible as possible is a good way to develop. So glad to hear that.
The counter-feature is not ideal for my application because it will not be intuitive enough for the average user of a "standard" Bluetooth speaker. I believe I can mimic the behavior I want within the Bluetooth agent and leave bluez-alsa to do what it does best.
Meanwhile I'll be reading up on the AVRCP protocol.

I've made a little bit of testing, and it seems that even though I would made required changes (not reading data from the bluez socket), the desired effect wouldn't be achieved - my smartphone still indicates that the audio is playing.
Since I don't have BT speaker, in order to further investigate this feature I would need some assist. I need btsnoop logs from two (Android-based) smartphones (iphone might be good as well, however I don't know how to obtain BT logs from iOS) sending data to the real BT speaker in the following fashion:

Enable HCI logging on both devices.
Connect smartphone 1 to the speaker.
Connect smartphone 2 to the speaker.
Start playing audio from smartphone 1.
Start playing audio from smartphone 2 (and see if the playback indicator shows progress, if progress is shown, nothing to do here.... if progress indicates that the audio is not playing, we're good).
Stop audio on smartphone 1.
If audio on smartphone 2 hasn't started automatically, start it.
Stop everything and get btsnoop_hci.log files from both devices.

So interesting enough, the first two devices I had readily available enforce their exclusivity through the Bluetooth connection itself. So that's a bust. In a few days I should have access to some other devices and I can try to get some usable logs.

Hmm... that's interesting. Connection blocking is easy to achieve, however l will not go for such a solution. If I remember correctly, it is possible to block playback even though both devices are connected. Almost a year ago one of my colleagues was helping me with this project by doing some playback tests. And as a reference we were using Denon BT speaker, which was allowing connection of more than one device (so I was trying to achieve the same) and we were surprised, that it is not possible to play audio from both devices at once (Android-based smartphone and iPhone) which later we acknowledged as a desirable effect for BT speaker. So I think, that the trick lays in the speaker itself (or maybe all devices involved).

I need btsnoop logs from two (Android-based) smartphones (iphone might be good as well, however I don't know how to obtain BT logs from iOS) sending data to the real BT speaker in the following fashion:

I have a xiaomi mi speaker. Will upload the logs somewhere for my lineage 7.1 phone.

Nvidia Tegra Note tablet vs Samsung Galaxy S4 playing to JBL Flip 3.  Both can connect at the same time.  Playing music from Samsung blocks Tegra.  When playing music from Tegra, Samsung butts in and plays it's own music.  Will try to get you logs later.

Some logs for you: https://www.dropbox.com/sh/ow68oflne3n198v/AADDpVcenHwSu554O4o8Sd-oa?dl=0
In test 1, I started music on Samsung, then on Tegra Note.  This time the Tegra managed to grab the connection but only after a while.  The speaker became disconnected from both for a bit then re-connected to the Tegra.  When Tegra took over, playback on Samsung was paused.
In test 2, I did the same but after Tegra was playing through the speaker re-started music on Samsung, which then took over the connection.  Repeated this a few times.
Note that in the earlier test, Samsung was running Total Commander to play music, Tegra Kodi.  For these logs, both running Total Commander.
Hope this helps.

Thanks, for logs. I'll try to analyse them later. However, it seems that logs samsung1 and tegra2 are somehow "corrupted" - it seems that connection phase is missing, so Wireshark is not able to properly decode BT frames. When you open these logs in Wireshark, you will see red-marked lines, which indicates that something is missing (see attached picture).

Also, did you paused and started playback on Tegra during test 1? Because in logs I can see command suspend sent from Tegra to speaker (at frame 12150) and 5s later (at frame 12163) command start, however you didn't mention that in the comment.

I started the sniff after connecting both to keep the file sizes down.  I can re-run but why would samsung 2 and tegra 1 not have the same issue?
I did not pause Tegra in test 1.  It was as if there was a tug of war between the two source devices.  As I said both connections dropped for a while, so I would guess the start was issued by the app whan the connection was re-established.
I haven't looked at these in wireshark - I wouldn't really now what I was looking at.

OK.  Two new logs added.  This time I started logging before connecting each device, but there is no attempt to coordinate the start times of the logs.  The behaviour was more like the very first test I reported.  Tegra did not manage to grab the connection - I had to pause Samsung then re-start music on Tegra to get it to play.  Then I re-started music on Samsung and it grabbed the connection back straight away.  I couldn't immediately see any red lines in these logs so hope they help.

I've just pushed changes which will allow to block second, third, etc. device from playing. I think, that I've achieved desirable effect, however the outcome highly depends on the connected device. Blocking playback is easy. The tricky part is letting know connected BT device, that the audio will not be played. If device supports media player interface, I'm sending AVRCP pause command to the device.
I'm sure, that there is a more direct way to notify device, that the audio is not playing, however I'm not able to figure it out.... Also, I've checked connecting two devices to my Jabra MOVE headset, and to my surprise, only one audio can be heard, however both players indicate that the audio is playing. So, even commercially available device does it the easier way.
Please, test it and let me know if it works (I've tested it with two Android-based smartphones).

Very cool. I'll give it a test


interactiveMatting by click

Do you think it's possible to achieve Matting by clicking on an interactive method, such as 99% accurate interactive object selection with just a few clicks and fba-matting, in your paper?

There is no method that can achieve 99% accuracy even with perfect trimaps. The problem is just too hard for that.

I agree with @983  it is  very difficult in the general case. However for simple objects where the transparency is contained in a narrow boundary around the object then a trimap could be generated by dilating the predicted mask


minor typo

Chapter 6, section 6.8.2, 3rd paragraph, 1st sentence:
"... and we use a simple voting scheme is used to ..."

fixed as #13


The latest version does not have methods 'slide.addSlidesForTable(id)'

Hi, My version is "2.1.0-beta.20180220", and donw the resouce  today,but not found slide.addSlidesForTable(id)',only have 'pptx.addSlidesForTable' .  errory messe  is 'slide.addSlidesForTable  is not a  function ',Can you help me?
PS: My task is  take rich text in div to  a slide, so I want try the HTML-to-PowerPoint method to finish my task.

Hi @IvanTao,
What kind of solution do you have (webpage, node, electron, etc.) and how are you instantiating PptxGenJS?

Hi, @gitbrent ,I use PptxGenJS in webpage, and copy pptxgenjs-demo.html as my test page. I can use pptx.addSlidesForTable, But I want use slide.addSlidesForTable. Because I see:

Can you help me?

You're calling it incorrectly. addSlidesForTable is not a slide method, it's a library method.
var pptx = new PptxgenJS;
pptx.addSlidesForTable('tableId');

Dont create a Slide - its not necessary.

I've updated the README section you screencapped and replaced slide with pptx to correct the example.


improve cache heards of the UI's assets

Zipkin UI renders very fast once all the assets are retrieved.
app.min.js has max-age=600, must-revalidate cache headers and it's being sent every time, that's the main source of waiting on the UI for me at least.
I think adding better cache headers will make wonders for UX
@eirslett  probably interested

It was added here: https://github.com/openzipkin/zipkin/commit/ac33a58
I'm pretty sure that should be the correct cache headers...

oh snap! back at ya jordi! :P

Works in my browser:

I'm also hitting cache, except for the first time

It's probably that first time that I've been noticing, since the cache is only for 10min. If the list was permanently stored in the browser in local storage, the first load after 10min would still be unnoticeable. Is it possible to refresh the list in the background after first displaying from local storage? Or would it completely disrupt the experience if the user has already started interacting with the dropdown?

This issue is about caching assets/css/js specifically, there's another issue regarding caching of API calls. I suggest you repost the comment there!
As of assets caching, I'll close this issue, since we already serve cache headers.

Even after refreshing a couple of times, it does not seem to work for me :no_good:

When you hit the refresh button, it clears the cache... try opening the UI, go to the dependencies page, then back to the index page, is it loaded from cache then?

0_0! you are right, it's kind of embarrasing not to realize till now :hear_no_evil:


x server cannot start

Please paste the output of the following command here: sudo edit-chroot -all

name: xenial
encrypted: no
Entering /mnt/stateful_partition/crouton/chroots/xenial...
crouton: version 1-20171122220410~master:99877eaf
release: xenial
architecture: amd64
xmethod: xorg
targets: xfce
host: version 10032.75.0 (Official Build) stable-channel wolf
kernel: Linux localhost 3.8.11 #1 SMP Mon Dec 18 20:22:57 PST 2017 x86_64 x86_64 x86_64 GNU/Linux
freon: yes
Unmounting /mnt/stateful_partition/crouton/chroots/xenial...

Please describe your issue:
X server cannot start when I run sudo startxfce4
Entering /mnt/stateful_partition/crouton/chroots/xenial...
/usr/bin/startxfce4: Starting X server

X.Org X Server 1.18.4
Release Date: 2016-07-19
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.4.0-97-generic x86_64 Ubuntu
Current Operating System: Linux localhost 3.8.11 #1 SMP Mon Dec 18 20:22:57 PST 2017 x86_64
Kernel command line: cros_secure console= loglevel=7 init=/sbin/init cros_secure oops=panic panic=-1 root=/dev/dm-0 rootwait ro dm_verity.error_behavior=3 dm_verity.max_bios=-1 dm_verity.dev_wait=1 dm="1 vroot none ro 1,0 2539520 verity payload=PARTUUID=9f5d2a66-e64d-654d-af0d-c0d5f3a8ef90/PARTNROFF=1 hashtree=PARTUUID=9f5d2a66-e64d-654d-af0d-c0d5f3a8ef90/PARTNROFF=1 hashstart=2539520 alg=sha1 root_hexdigest=9e58919ba190c6806a94f668fbf504c3552055fd salt=3c849cfc1f77e3d41965e00cd34d668ad4fcb39269de4e614da6a8af1cdf2692" noinitrd vt.global_cursor_default=0 kern_guid=9f5d2a66-e64d-654d-af0d-c0d5f3a8ef90 add_efi_memmap boot=local noresume noswap i915.modeset=1 tpm_tis.force=1 tpm_tis.interrupts=0 nmi_watchdog=panic,lapic
Build Date: 13 October 2017  01:57:05PM
xorg-server 2:1.18.4-0ubuntu0.7 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.33.6
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(++) Log file: "/tmp/Xorg.crouton.1.log", Time: Wed Dec 27 21:14:31 2017
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
Error org.freedesktop.DBus.Error.UnknownMethod: Method "ReleaseDisplayOwnership" with signature "" on interface "org.chromium.LibCrosServiceInterface" doesn't exist

xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
Error org.freedesktop.DBus.Error.UnknownMethod: Method "ReleaseDisplayOwnership" with signature "" on interface "org.chromium.LibCrosServiceInterface" doesn't exist

xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
(EE)
Fatal server error:
(EE) no screens found(EE)
(EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
(EE) Please also check the log file at "/tmp/Xorg.crouton.1.log" for additional information.
(EE)
Error org.freedesktop.DBus.Error.UnknownMethod: Method "TakeDisplayOwnership" with signature "" on interface "org.chromium.LibCrosServiceInterface" doesn't exist

(EE) Server terminated with error (1). Closing log file.
/usr/bin/xinit: giving up
/usr/bin/xinit: unable to connect to X server: Connection refused
/usr/bin/xinit: server error
Not unmounting /mnt/stateful_partition/crouton/chroots/xenial as another instance is using it.

If known, describe the steps to reproduce the issue:
Not sure if relevent but I first tried installing chroot on an SD card but the noexec flag thing got annoying. So I installed internally like you would normally. However I am getting some silly x server errors. I am able to sudo start-chroot fine and I get the same/similar error when I xinit.

Nevermind, rebooting seems to have fixed it.


onBackgroundMessage is firing even when the app is on foreground

My subscription code:
cordova.plugins.firebase.messaging.requestPermission({forceShow: true}).then(function() {
	cordova.plugins.firebase.messaging.subscribe('all');
	cordova.plugins.firebase.messaging.subscribe(device.platform);
},
function() {
	alert('Please turn on notification from device settings to receive important communication.','');
});

Then I am handling the notification as below:
cordova.plugins.firebase.messaging.onMessage(function(payload){
  alert(payload.tab);
});

cordova.plugins.firebase.messaging.onBackgroundMessage(function(payload) {
  setTimeout(function(){$$(".tab-link[href='#"+payload.tab+"']").trigger('click');},500);
});

Problem is, I am still getting native notification popup from top of the screen even when the app is opened in the foreground. This is annoying particularly when someone is chatting with other person, and although they are in the app, notification pops up.

I am using Ionic 3 but hope still helps you. I faced the same issue so I downgraded the plugin version to 1.14 and the package version to 4.15.0.it works for me and I removed ContentAvailable: true in firebase-admin also.if we have ContentAvailable:true getting 2 notifications

Thank you for the suggestion. I will try it and see.
Yes I didn't used to have this with my previous apps, but with previous versions, popup notification would not appear.
The notification icon appeared on status bar, sound played, but no popup.
I belive when the plugin or package is updated, they are forcing the popup notification. It needs to be disabled when the app is in foreground.

@akadebnath you should use cordova.plugins.firebase.messaging.requestPermission({forceShow: false}) to disable native popup when app is in foreground.


Rewriting Tensorflow 1.x code to tensorflow 2.x

@Kyubyong
Thanks for the great GitHub repository!
Unfortunatly my GPU only supports tensorflow 2.x and not 1.x .
For that reason I wanted to rewrite the Code to tensorflow 2.x .
Everything worked fine until line 122 in data_load.py
I haven't found a solution how to rewrite the following function: tf.contrib.training.bucket_by_sequence_length()
I am glad for any idea how to solve this problem.

I've been working on that implementation in Tensorflow 2. I have my current progress public on my Github. At the moment, models have been trained for about 7-800K steps on the LJ Speech dataset but I'm yet to produce any discernable speech samples. If you think you can improve upon the existing code, I more than welcome the contribution.
Only disclaimer is that I am in no way related to Kyubyong. I've never met the guy. I just like this repo and the project he's worked on with this.

@dmmagdal : Thank you very much!


Shield Activity

Abstract
Implements shield activity, i.e. shield transactions regarding the wallet are decrypted and loaded in the dashboard activity.
3 new transactions types have been added:

Shielding, which is a self (t -> s) transaction;
De-Shielding, which is a self (s->t) transaction;
Shield sent to self, which is a self (s->s) transaction.

Transactions received and sent to external wallets are marked as before, with the addition of shield addresses:

Sent to (transparent or shield address);
Received with (transparent or shield address)

I suggest to review the PR commit by commit, is easier than looking at the overall diff. Also to test the PR you have to manually build and use the following version of the pivx-shield library: PR 81.

Testing
To test this PR, it's suggested to attempt these user flows, or variations of these:

Create and sync a shield wallet;
Create the 3 new types of transaction;
Send/Receive shielded pivs from an external wallet;
Close and re-open the wallet: the shield activity should be unchanged;
Resync the wallet from zero: the shield activity should be unchanged.

diff --git a/package.json b/package.json
index 547b11a..4b044ca 100644
--- a/package.json
+++ b/package.json
@@ -89,9 +89,9 @@
         "jquery": "^3.6.3",
         "pinia": "^2.1.7",
         "pivx-promos": "^0.2.0",
-        "pivx-shield": "^1.1.6",
-        "pivx-shield-rust": "^1.1.6",
-        "pivx-shield-rust-multicore": "^1.1.10",
+        "pivx-shield": "^1.2.0-0",
+        "pivx-shield-rust": "^1.2.0-0",
+        "pivx-shield-rust-multicore": "^1.2.0-1",
         "qr-scanner": "^1.4.2",
         "qrcode-generator": "^1.4.4",
         "vue": "^3.3.4",

I published a beta version with pivx-shield#81, apply this patch and npm i to use

Reviews applied:

Moved the reverse and swap endianess to utils.js
Fixed the bug where some txs were markes as "Sent to shield address", even only the change was shielded
Made wallets automatically resync when they use the new shielding version for the first time


Submit python model

This is an attempt to translate P4 model to python so that Stateful Features (firewall, metering, ST) and Complex Match Types (ternary/range list) can be implemented.
Current State:
This model incorporates all the features in the existing P4 model and adds on top of it:

ACL Table including Ternary and Range List types
ACL Pipeline logic as required in the spec
Flow Table for holding the active connections
Flow Timer for evicting the active connection

Note that P4 model is not rewritten from scratch. Instead, it is translated word to word so as to preserve all the effort that has been put in the P4 model.
Directory/File Structure:
There is only a single folder (python_model) that directly holds all the files needed at runtime. There is a sub-directory called "python_model/tests" that stores regression tests used during development. This sub-directory is not used at runtime.
Main directory (python_model) has 2 types of files:

Names starting with "dash_": They are almost an identical copy of their P4 counterparts (e.g dash_vxlan.p4, dash_pipeline.p4).
Names starting with "__" (double underscore). They include framework logic that was originally implemented in BMv2. For example implementation of Match-Action tables, Counters etc

Testing:

Framework features specially Match Tables are very rigorously tested (see tests folder).
ACL table is also tested against the data given in this document (See tests/acl_test):
https://github.com/sonic-net/DASH/blob/main/documentation/general/sdn-pipeline-basic-elements.md#acl-actions

Right now, mostly white box testing is being done over debugger for better visibility.
Steps to run:

Make sure you have:
Python 3.10.12
VSCODE 1.81.1
Python dev extensions in VSCODE
Open VSCODE in the "python_model" directory
Open file named unit_test.py
Hit debug button and follow the packet flow through the pipeline

This program tests basic Stateful Firewall functionality. It configures inbound/outbound tables with appropriate values.
It also creates 2 ACL groups for inbound and outbound. Outbound ACLs have "Allow All" policy. Inbound ACLs have "Deny All" policy. The program first sends an outbound UDP packet. It is allowed by the firewall. Pipeline returns a transformed version of the packet (Use debugger to follow the packet flow).
Next, the program sends a corresponding inbound packet (UDP response). Even though the Inbound ACL has a "Deny All" policy, but this response packet will still be allowed in because of the flow table.
Also, if you send the response packet after a long enough interval (>5 seconds), response packet will be dropped because the connection has timed out.
Some points about the code:

Most of the P4 constructs (tables, counters) are emulated perfectly. I did not make an abstraction for P4 "control blocks" as it seemed unnecessary. Instead, Everything (functions, tables, counters) is out in the open.
Simplicity and functional correctness were the main objectives rather than performance and memory efficiency.

hi @saad-mzhr  - did you want me to keep this Open in the DASH Community?
Thank you, Kristina

no update here 10/9/2024

hi @FarhatUllah999  - did you want to pick up this PR from Saad?  Let me know, thank you - Kristina

hi @FarhatUllah999 - did you want to pick up this PR from Saad? Let me know, thank you - Kristina

Hi @KrisNey-MSFT - Yes I have picked up this task from Saad. I have few priority tasks that's why I couldn't work on this PR. Let me prioritize this work soon.

Ok, thank you Farhat 😊
From: FarhatUllah999 @.>
Sent: Friday, October 25, 2024 1:19 AM
To: sonic-net/DASH @.>
Cc: Kristina Moore @.>; Mention @.>
Subject: Re: [sonic-net/DASH] Submit python model (PR #426)
hi @FarhatUllah999https://github.com/FarhatUllah999 - did you want to pick up this PR from Saad? Let me know, thank you - Kristina
Hi @KrisNey-MSFThttps://github.com/KrisNey-MSFT - Yes I have picked up this task from Saad. I have few priority tasks that's why I couldn't work on this PR. Let me prioritize this work soon.
—
Reply to this email directly, view it on GitHubhttps://github.com/sonic-net/DASH/pull/426#issuecomment-2437181531, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFJSI6B7FUVMAFPNM7XSL63Z5H5ILAVCNFSM6AAAAABJK2HIBKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZXGE4DCNJTGE.
You are receiving this because you were mentioned.Message ID<EMAIL_ADDRESS>

hi @FarhatUllah999  - are you still looking for a review for this one?  Thx!

hi @FarhatUllah999 - are you still looking for a review for this one? Thx!

Yes. I am working with Saad on this. Thanks


Source Control activity hinders Bleutooth audio

Issue Type: Bug
Whenever I am working in VSCode and there is activity regarding the source control the bluetooth audio connection is malfunctioning or faltering. This is also happening when in meeting in MS Teams. This is very annoying as you sometimes cannot make up a full sentence the other meetingmember is saying.
It appears to be that all of the sudden VSCode is exclusively claiming CPU priority to do its source control tasks. My system is beefy enough to handle all the task and processes running, but whenever VSCode source control triggers it affects audio/bluetooth.
 Typing is very laggy, mouse movements are laggy. All when the source control activity is happening and the small progress bar is the source control pane is moving from left to right.

Thanks for the report @MarcelHeek.
Just to get a sense, how many repositories do you have open in VS Code?
Also what version of "Git for Windows" are you using? Have you updated recently?

Hi, thanks for reaching out.
Only one repository is opened in VSCode.
Git version  : git version 2.32.0.windows.2
So not updated recently, will do so to check the effect.
Met vriendelijke groet,
Marcel Heek | Automation / Cloud Specialist
+31 65022 5038 | @.***
[VolkerWessels Infra ICT]https://www.vwinfraict.nl/
[website]https://www.vwinfraict.nl/
[Linkedin]https://nl.linkedin.com/company/volkerwesselsinfraict
[line]https://www.facebook.com/VolkerWesselsInfraICT/
VolkerWessels Infra ICT
Lange Dreef 7, 4131 NJ Vianen
KvK 61503258
[VolkerWessels Infra ICT]https://www.volkerwessels.nl/
From: Ladislau Szomoru @.>
Sent: Thursday, November 25, 2021 17:48
To: microsoft/vscode @.>
Cc: Heek, Marcel @.>; Mention @.>
Subject: Re: [microsoft/vscode] Source Control activity hinders Bleutooth audio (Issue #137869)
Thanks for the report @MarcelHeekhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMarcelHeek&data=04|01|mheek%40vwinfra.nl|7a1afeca52404d58590208d9b03348b8|cdc477bfb6e34345b1be3b225394e17e|1|0|637734556589591535|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=54QSw%2Bq94T1oB7H6EEXXTGgPe6HRNMaPT1xRmtSwcKs%3D&reserved=0.
Just to get a sense, how many repositories do you have open in VS Code?
Also what version of "Git for Windows" are you using? Have you updated recently?

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fvscode%2Fissues%2F137869%23issuecomment-979354368&data=04|01|mheek%40vwinfra.nl|7a1afeca52404d58590208d9b03348b8|cdc477bfb6e34345b1be3b225394e17e|1|0|637734556589591535|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=6Xfy%2BeKLxPCZbbeR86xLkvGVMcSfejWjmczodbbLdk8%3D&reserved=0, or unsubscribehttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAUEKERX562EIJM35AOIOOSTUNZSCNANCNFSM5IYHYWPA&data=04|01|mheek%40vwinfra.nl|7a1afeca52404d58590208d9b03348b8|cdc477bfb6e34345b1be3b225394e17e|1|0|637734556589601482|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=RR28Ik%2F3sfi46CduGJHqpHe%2BKMRsWlx0jmKrC%2F9722Q%3D&reserved=0.
Triage notifications on the go with GitHub Mobile for iOShttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04|01|mheek%40vwinfra.nl|7a1afeca52404d58590208d9b03348b8|cdc477bfb6e34345b1be3b225394e17e|1|0|637734556589601482|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=dXn7S%2F4os56sCjz7wXvW8hC5IXIBvyYEUobtKasDTWo%3D&reserved=0 or Androidhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04|01|mheek%40vwinfra.nl|7a1afeca52404d58590208d9b03348b8|cdc477bfb6e34345b1be3b225394e17e|1|0|637734556589611437|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=wcv2DUnOjkQ6jJP%2BSHLWBFJ%2FMKaoh8%2FqldhtseCvcyo%3D&reserved=0.
De informatie verzonden met dit emailbericht is uitsluitend bestemd voor de geadresseerde. Gebruik van deze informatie door anderen dan de geadresseerde is verboden. Openbaarmaking, vermenigvuldiging, verspreiding en/of verstrekking van deze informatie aan derden is niet toegestaan. Afzender staat niet in voor de juiste en volledige overbrenging van de inhoud van een verzonden email, noch voor tijdige ontvangst daarvan. Afzender attendeert erop dat de vertrouwelijkheid van informatie verzonden per email niet gewaarborgd is.
The information contained in this communication is confidential and may be legally privileged. It is intended solely for the use of the individual or entity to whom it is addressed and others authorised to receive it. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. Sender is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt. Please note that the confidentiality of e-mail communication is not warranted.

Better to reply via web instead of via email as it is messy in the issue thread......
Ok, after updating to the latest Git version (git version 2.34.1.windows.1) VSCode is still laggy/slow as soon as I add something to code source control is triggered and makes it unpleasant to work with.

Thanks for updating the Git version. Are you able to reproduce the same behaviour with all the extensions disabled? Thanks!

No, if I start code with --disable-extension the IDE is not lagging anymore. Although good to know that it is extension related btw.
Before you ask. I have no idea what the latest extension was I installed and/or if the issues started after installing a new extension or update of an existing extension.

Great! You can use the extension bisect tool that is included in VS Code to track down the culprit extension. Let me know how it goes.

I will close the issue as (in the end) it appeared to be an issue on my system. After updating to the latest Windows 11 insider preview it appears to be gone for no apparent obvious reason.


Importing curl command from clipboard with trailing slash in URL incorrectly removes the trailing slash

Expected Behavior
When importing a curl command from the clipboard where the URL has a trailing slash, the URL should import exactly as it is written in the imported curl command.
Actual Behavior
The trailing slash is removed. This changes the imported URL causing unexpected behavior from the server.
Reproduction Steps

Copy the following to your clipboard clipboard curl 'http://example.com/subdir/'
In Insomnia, select Create -> Clipboard
Check the address of the new request, which will be http://example.com/subdir.

Is there an existing issue for this?

[X] I have searched the issue tracker for this problem.

Additional Information
It is not guaranteed that servers will treat URLs with and without trailing slashes as equal.
Insomnia Version
2021.7.2
What operating system are you using?
Windows
Operating System Version
Windows 10 version 21H2
Installation method
Downloaded from Insomnia
Last Known Working Insomnia version
No response

https://github.com/Kong/insomnia/blob/a8deb41f23d80607f88030efeb4d79774c4a88db/packages/insomnia-importers/src/importers/curl.ts#L104
It seems like this is deliberate, probably because the URL class adds a trailing slash to its href property no matter what.
Maybe this could be worked around by checking the last character of the raw input urlValue and adding a trailing slash if appropriate?

This has been an issue for me as well. Was wondering why requests work in browser, when running curl but they fail in Insomnia.

Can confirm, Django developers like their trailing slashes.


adserror server not started (6) target port not found

I am at a loss. From my XAEshell enviroment I can connect to my plc and download code, debug code rune code on the plc. But when I try to access the plc from pyads from the same windows computer as xae I get an adserror about server not started and port not found. I see I am connectd to the plc from within routes on the windows pc.
What am I missing?
Marco

Hi @amarco
can you show us your code ?
regards,

Code is really basic and based on examples.
import pyads
plc=pyads.Connection('<IP_ADDRESS>.1.1',pyads.PORT_SPS1)
plc.open()
#this returns true
print("Opened PLC {0}".format(plc.is_open))
#this fails
info=plc.read_device_info()
print("PLC Info {0}".format(info))
#this fails as well
fastFrameBufferReady = plc.read_by_name("GVL.ioList.fastFrameBufferReady",pyads.PLCTYPE_BOOL)
print("FastFrameBufferReady {0}".format(fastFrameBufferReady))

after exploring further I started to look at why it would not communicate so I was looking at port number and noticed that PORT_SPS1 is for TwinCat 2 and I am using TwinCat 3 so I change to PORT_TC3PLC1 and things started to work. I also then had to remove the reference to GVL to get the read to actually return a value.

So this issue can be closed?

Yes I closed the ticket, sorry for that..
From: Stefan Lehmann<EMAIL_ADDRESS>Sent: Monday, December 30, 2019 8:16 AM
To: stlehmann/pyads<EMAIL_ADDRESS>Cc: Marco Accardo<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [stlehmann/pyads] adserror server not started (6) target port not found (#109)
So this issue can be closed?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/stlehmann/pyads/issues/109?email_source=notifications&email_token=AAP7VXYI2CBGTXSFXPWOKXLQ3HX7HA5CNFSM4J63BM42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH2I7GQ#issuecomment-569675674, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAP7VX3DSHMSX226PL36HJDQ3HX7HANCNFSM4J63BM4Q.

RWDI - A Platinum Member of Canada's 50 Best Managed Companies
This communication is intended for the sole use of the party to whom it was addressed and may contain information that is privileged and/or confidential. Any other distribution, copying or disclosure is strictly prohibited. If you received this email in error, please notify us immediately by replying to this email and delete the message without retaining any hard or electronic copies of same. Outgoing emails are scanned for viruses, but no warranty is made to their absence in this email or attachments. If you require any information supplied by RWDI in a different format to facilitate accessibility, contact the sender of the email, email<EMAIL_ADDRESS>or call +1.519.823.1311.
Please be aware that when you contact us with a business query we may collect and use your details for future communications.


update automatic token association limit

Signed-off-by: SimiHunjan<EMAIL_ADDRESS>Description:

After the unlimited token associations feature was implemented the max number of auto token associations increased from 1000 to 5000.
Related issue(s):
Fixes #
Notes for reviewer:

Checklist

[ ] Documented (Code comments, README, etc.)
[ ] Tested (unit, integration, etc.)

Stale.  Please resubmit if needed.


Component Ref doesn't work

Issue and Steps to Reproduce
We can't use callback ref on the component.
I have tried to use ref on the Table component and Table.Header component but it doesn't work.
The references is not down through the component.
Versions
Screenshots
Expected
Actual
Additional Details

Installed packages:

Ref param are not always included in each components.
Do you think it's necessary in all components ?


Adding a NavigationLink prevent the item from being dragged

I added a Navigation link on the item in order to push a new view but by adding the navigation link (or a button) the swiping don't work anymore.
Any solution to have the item swipe and the navigation link on the item?

I had the same issue.
I made this to solve it :
`
@State var activeMagazineID: Int? = nil
NavigationView{
ACarousel(digitalMagazines) {
magazine in
VStack{
URLImage(magazine.thumbnail){
image in image.resizable()
.aspectRatio(contentMode: .fit)
}.cornerRadius(10)
Text(magazine.title)
.foregroundColor(.secondary)
.font(.subheadline)
}
.background(NavigationLink(
destination: MagazineView(magazine: magazine), tag: magazine.id, selection: $activeMagazineID){
EmptyView()
})
.onTapGesture {
activeMagazineID = magazine.id
}
}
}
`


[FEATURE REQUEST] Net worth report chart - show account breakdowns

Hello,
I put in all my tracking accounts to calculate my net worth for the report. However, the net worth report only shows the total combined amount for Debts and Assets respectively.
it would be really nice for these to show different colors indicating the relative amounts each account is contributing to the asset / debt bars.
So for example, if there is Account 1 and Account 2 that total up to the total assets, and Account 1 has $5k and account 2 has $15k, then the Asset bar in the chart shows two colors, one for each of the accounts, and that account 1 is 25% of the bar and account 2 is 75% of the bar.

This request exists here: https://trello.com/c/ChyhkM0G/375-reports-unique-colour-for-each-account-in-net-worth
Be sure to vote on it and if a developer has time, it'll have a better chance of getting worked on!


sortimportjson improvements

A few improvements to the management command
Sort existing test db files
Add sortimportjson to the github action that reformats

Codecov Report

Merging #998 (af044d2) into main (369182a) will decrease coverage by 0.41%.
The diff coverage is 85.58%.

@@            Coverage Diff             @@
##             main     #998      +/-   ##
==========================================
- Coverage   79.37%   78.95%   -0.42%
==========================================
  Files         146      146
  Lines        5454     5171     -283
  Branches      732      670      -62
==========================================
- Hits         4329     4083     -246
+ Misses        984      961      -23
+ Partials      141      127      -14

Impacted Files
Coverage Δ

src/CreeDictionary/API/search/espt_crk.py
100.00% <ø> (ø)

...ary/phrase_translate/definition_processing_test.py
100.00% <ø> (ø)

...dict/lexicon/management/commands/sortimportjson.py
25.53% <7.40%> (-8.85%)
:arrow_down:

...hodict/lexicon/management/commands/randomsubset.py
43.24% <43.24%> (ø)

src/CreeDictionary/phrase_translate/translate.py
56.80% <72.88%> (+0.20%)
:arrow_up:

src/morphodict/lexicon/models.py
96.03% <77.77%> (+0.86%)
:arrow_up:

...dict/lexicon/management/commands/importjsondict.py
91.83% <92.47%> (+2.03%)
:arrow_up:

src/morphodict/lexicon/importer/test_importer.py
99.52% <99.52%> (ø)

src/CreeDictionary/API/schema.py
100.00% <100.00%> (ø)

src/CreeDictionary/API/search/espt.py
88.18% <100.00%> (ø)

... and 16 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c393f1b...af044d2. Read the comment docs.


WoW Classic performance issue

Dear dxvk team, thank you for your hard work on this project, i hope you keep this up :)!
I'm visiting this place in search of help.
I'm running World Of Warcraft Classic with Lutris
lutris-wf-nofshack-4.15_x86_64 (default)
DXVK 1.34 D9VK and Esync activated.
The game runs perfectly smooth (Ubuntu 19.04) - BUT compared to Windows 10 im having an fps loss of about 100 fps. I want to investigate why this happens.
The video settings on both OSes are identical - important: VSync Off - triple buffer off to have the gpu running at max usage.
On both OSes the GPU (2080 RTX TI) runs at 99% usage and about 1900 mhz core clock. Usage and clocks are the same on both OSes. Still 100 fps loss.
CPU is an Intel Core-I9 9900K @ 5.1 ghz with 32GB RAM.
Im running the proprietary Nvidia drivers 430.40 from:
http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu
Native and in game resolution is 5120x1440.
I'm using 3 displays - 2 connected to the iGPU of the intel cpu both 1920x1080 and the 3rd big one to the nvidia gpu 5120x1440.
I hope you can help me. If you'd like me to test some stuff let me know.

This is not an issue, lower performance than Windows is to be expected.
Also, "100 FPS" is pretty meaningless figure since you didn't give the absolute frame rate that you're getting on either OS.

Hi - thanks for your reply. Before i post more test stuff id like to answer your question about absolute framerates.
I took this framerates at orgrimmar
windows: 250 fps and 100% gpu usage
linux:   150 fps and 100% gpu usage (60% of windows fps)
I tried lower Resolutions on both operating systems, to see if the performance loss shrinks, i came up with this results at another place in wow world:
1080p resolution:
windows 215 fps and 55% gpu usage.
linux 170 fps and 100% gpu usage. (79% of windows fps)
For me it looks like that something in the direct3d11 to vulkan translation process lets the gpu work much more to render the same scene on linux.
I asked myself some questions:
(1) Are direct3d11 calls translated directly one to one to vulkan calls?
Or is more than 1 call required to translate 1 direct3d11 call.
This would cause overhead - i guess.
(2) Considering question (1) i asked myself about the performance of the    API's themselves. Does Direct3d11 use the gpu more efficient?
To make one thing clear - im not here to criticize your teams work or want to make it look back, im very happy this and other projects exist! - i just want to investigate and understand what causes this, i think drastic, difference in performance and maybe how to improve it.
Also tested Furmark windows executable (native OpenGL)
same settings for both OSes
Windows about 380 fps
Linux about 300 fps  79% of windows

To answer your questions:
(1) No.
(2) No.
There's nothing I can do here right now. First of all, I don't the game or an apitrace of it so I don't have the slightest clue what it might be doing; second, if the GPU utilization is so much higher it's likely that it's not dxvk's fault but that of the driver. There's also the chance that something else on your system is dragging it down (e.g. compositor).

Given the complex setup you have, there are many possibilities for the reported difference in performance. The Linux OS itself, the Nvidia driver, compositor, etc.
I also play WoW on Linux and I would point out that Orgrimmar is not the best place to do a comparison due to the variable number of players in the area at any one time.
Try to use a standard test, as far as that is possible in the game.  e.g. Type /timetest 1 and do a flight from say Orgrimmar to Crossroads.  The game will report the min/max/average fps at the end of the flight.

@darkalpha84
WoW Classic vs. WoW retail, the game engine afaik does NOT use multithreaded d3d11 rendering with WoW classic..
WoW retail utilizes a newer and updated graphics engine since some time ago (8.1 i think) that have a significant fps boost for d3d11 as it allowes for multithreaded support with d3d11. You could compare WoW retail with -d3d11 and the -d3d11legacy flag and see the difference.
I believe WoW classic is using the d3d11 "legacy" engine, and quite possibly it may be the case that the difference between Windows and Linux/dxvk is greater without multithreaded rendering when using DXVK?
Fyi: wined3d does NOT work with WoW retail d3d11 "multithreaded" rendering engine (or atleast did not when i tested last), and needs to set the -d3d11legacy flag to be able to play. (Unless you enjoy <1 fps gameplay).

Multithreaded vs Legacy should make no difference at all when GPU-bound.

When I tried the free WoW retail trial, there definitely was a drop in GPU bound performance when switching between DX11 "legacy" and "modern". This was with radv Polaris. D3DVK performance matched the higher GPU bound performance of the "legacy" renderer.
However, I did not check how the situation is on Windows.

I did some benchies comparing d3d11 vs d3d11legacy when running WoW Retail. This was with lutris-4.16 and dxvk@48417c7. nVidia RTX2070, nVidia 435.24.02 driver.
/timetest 1 and camera in 1st person view + alt+z to hide whatever ui elements i have from addons and whatnot. Settings is 1080p all on "Ultra" xept shadows and water that are respectively on their recommended setting High/Good. No MSAA.
D3D11 flying from A -> B:
Gpu load: 96-98%
Min: 50.7 / Max: 335.0 / Avg: 193.6
From B -> A:
Gpu load: 96-98%
Min: 49.5 / Max: 282.5 / Avg: 182.8
Testing D3D11legacy:
From A -> B:
Gpu load: 65-70%
Min: 44.2 / Max: 235.9 / Avg: 155.1
From B -> A:
Gpu load: 62-65%
Min: 11.8 / Max: 186.8 / Avg: 131.0
So for me using d3d11legacy engine the gpu usage went down, and fps went down.
Kid tested Windows 10 with RTX2080Ti all on Ultra. He tends to have a lot other stuff up like browsers, skype, whatever, so i cannot really vouch on consistency of results, but of average it turned out like this:
D3D11:
A -> B:
Gpu load: 30-40%
Min: 60 / Max: 269 / Avg: 144
B -> A:
Gpu load: (same)
Min: 80 / Max: 320 / Avg: 144
D3D11legacy:
A -> B:
Gpu load: 35-50%
Min: 66 / Max: 214 / Avg: 144
B -> A:
Gpu load: (same)
Min: 69 / Max: 270 / Avg: 144
Not really a huge difference i guess between D3D11 and D3D11legacy for him, although the gpu load seemed a bit higher for D3D11legacy for him in contrary to my experience with wine/dxvk.
I will see if i can make some sort of comparison with WoW Classic for this, but i do not have any good flightpoints to test.
@darkalpha84

For me it looks like that something in the direct3d11 to vulkan translation process lets the gpu work much more to render the same scene on linux.

The overhead of Linux running d3d11 -> Vulkan translation will most of the time produce a hefty overhead doing that, but sometimes the added benefit of using vulkan makes up for it with comparably fps. And as others have pointed out, standing in a city with a good number of entities will most likely not be a good test as WoW (or any online mmo like that) uses a huge chunk of fps and networks sync data to show the entities, sacrificing fps in the process. (No point in having 300+ fps if ppl warps around and whatnot). The /timetest 1 flightpoint test skips some rendering and player sync stuff like npc's/birds/weather or something like that, so it is better for testing the graphics engine vs. hanging around town :)

Managed to test some with WoW Classic.
Standing around AH in Stormwind with quite a few peeps around:
Gpu load: 40-44%
Fps: 170-190
Gpu load and fps goes down in Windows aswell, and this is not a "graphics issue" but rather a "mmo issue". You will never get "first person shooter" fps in a mmo when loads of other players is hanging around.
Flightpath from Stormwind -> Sentinel Hill (closest):
Gpu load: 96-97%
Min: 44.4 / Max: 706.7 / Avg: 294.9
The "WoW Classic" client uses the WoW 7.2.5 "engine" with D3D11. This engines does not (afaik) have the multithreaded capabilities and performance that the new engine that came with WoW retail in 8.1 patch. However, the performance in the "world" is still high because of the relatively low effects and stuff compared to eg. Nazjatar in WoW retail.
I dunno what to call this issue. Ideally one would want the same gpu usage in Linux to do the same job as in Windows, but doing d3d11 -> vulkan translation kinda HAS to cost something :)
PS. In case you are setting everything to "ultra" + 8MSAA, you should consider dropping MSAA to 0, as this tends to not work too well with DXVK in every game.

You should also consider that the Windows driver might implement specific optimizations for WoW as it is such a popular game. To reliably measure the overhead added by dxvk you should ideally make an d3d11 apitrace and run it on Windows with and without dxvk. I understand this is not always possible with online games.
Out of curiosity, did someone try to measure the cpu, gpu, ram and vram usage under dxvk? I've seen that it increases memory and gpu usage significantly, but approximately how big is this increase? And what about cpu/ram?

i wonder how is dxvk performance under windows?

Lutris automaticaly updated DXVK from 1.3.4 to 1.4 and performace dropped from 100FPS to 34-40 FPS (standing in UC) with major stutters.
Using lutris-wf-nofshack-4.15_x86_64 with GTX 1080.
Downgrading fixes the performace drop.

Please record an apitrace or at least bisect the regression. I can't do very much about games that I don't have access to otherwise.

@doitsujin Is it possible to do a apitrace of wow now?
@WeaponMan I logged into WoW Classic with a new character in Thunder Bluff (since i cba to wait 20+ minutes to queue on another server i have a character), but cant say i had any direct issues. Had 250-300+ fps there. Is there a "remote" place you can stand out in the wild and confirm the same issue?
I used DXVK f498e742ec6fb2c3face037f6a22a726be257106 and lutris-4.16 with RTX2070.

Can't reproduce low fps with 1.4 either. Tested 1.3.4 vs 1.4.0 on lutris-4.16-nofshack with fsync enabled.
GTX 1070, 435.24.02

If I try the new version (1.4) its CPU bound one thread goes to 100% and GPU Util is 0%, this doesn't happen on 1.3.4.
On lutris-4.16-nofshack its even worse.
I will try the new nvidia driver if it doesn't help I will try to provide apitrace.
kernel 5.2.14.arch2-1, nvidia 435.21-4, R7<EMAIL_ADDRESS>

If I try the new version (1.4) its CPU bound one thread goes to 100% and GPU Util is 0%, this doesn't happen on 1.3.4.

That does not sound... uhm.. even possible. Are you sure there is no bugged download of something? 0% gpu utilization?
Try to set DXVK_LOG_LEVEL=debug and check what the logs says, cos that sounds like something major is up :)

@WeaponMan can you please post the DXVK log files?

@WeaponMan
Please set the issue to "Solved" i guess :)

@SveSop
I am not the one who made this issue so I can't do anything to "Solved/Closed" its up to @darkalpha84

@WeaponMan
Oops... You are absolutely true :) Sorry for that.

Dear community - I'm sorry I've been absent for a while now - got little time on my end. Thanks for all that replied here and submitted test results.
I did some testing with wow classic but gained no new information.
@pga256 - Orgrimmar was empty, because I'm playing on a new fresh server. Differences caused by loads of players didn't happen :).
I tried to investigate the "power" of the nvidia drivers on linux as bno1 stated above they may not be as optimized as the windows drivers.
I tried furmark windows version in native resolution (5120x1440) full screen on win and ubuntu and when it comes to native OpenGL apps ubuntu just had 5 fps less performance.
I still don't know how well the vulkan api is implemented in the linux drivers.
@doitsujin i monitored the gpu usage when nothing is running to see if and how much the compositor is influencing it and it's the same usage as in windows. Usage<10% @300 mhz coreclock. That's the lowest clock rate the gpu supports. I don't know how much this tells us.....
Would a trace log or something like this help?
Would a vulkan benchmark in win and ubuntu also help?
Best regards.

You are comparing a native application designed to run on Linux against a translation layer that translates DX11 calls to Vulkan. This is not even apples-to-oranges, it's apples-to-cars. Besides the obvious CPU overhead of transforming DX11 calls to appropriate Vulkan calls, you are dealing with completely different drivers. And, considering Vulkan is a much more recent API, Vulkan implementations are much more recent, therefore not as well optimized.
Also, it's very likely that the DX11 drivers have app-specific optimizations that gets, quite literally, lost in translation.

@darkalpha84
You could benchmark Unigine Valley or Unigine Heaven. Those are available for windows and linux.
Linux version ofc only benchmarks OpenGL. So to compare stuff you could do the following:

Benchmark Unigine Valley in Windows with OpenGL - Compare with Linux native with OpenGL
Benchmark Unigine Valley in Windows with D3D11 - Compare with Wine running Windows version with DXVK and D3D11.

Another D3D11 benchmark that can be tested is https://www.guru3d.com/files-details/monster-hunter-official-benchmark-download.html
There is something called "GFXBench", but i have not tested it. https://gfxbench.com/benchmark.jsp
I assume you have run WoW Classic completely free of addons just to weed out any weirdness due to addons having loads of bugs in them? And as i said above, i cannot say i am experiencing the same issues here with WoW Classic. And just out of interest, what does dxvk log files say if you log with DXVK_LOG_LEVEL=debug?

I still don't see any problem here, the game runs fine and even if it's over 30% slower than on Windows, there's not much I can do here. Lower performance is expected (especially if MSAA is involved).


the listening node is not working!

Listening node (alexa event - device activity) does not work with cakebaked. The node does not return any voice payloads. It worked with alexaremote2. It was very useful! Will it be restored? Thank you

I had mine start failing several days ago. I'm not sure if my issue is the same as yours... I had a custom voice trigger that checked for msg.payload.activityStatus = SUCCESS and then msg.payload.description.summary for my trigger word. Alexa started responding "I don't have a device named doors blahblah." In payload.activitystatus it was returning "FAULT." So what I did was create a custom routine in the Alexa app that recognized the command "Alexa, check the doors" and the action is Wait 5 Seconds. It now recognizes the command, so activitystatus is SUCCESS, and the wait just causes a chime to play. The trigger part of my flow is below. Hope that helps.
[{"id":"72cb396c.2758e8","type":"group","z":"7d3d0560.4703fc","name":"Alexa Device Specific Queries","style":{"label":true,"color":"#001f60","fill":"#addb7b"},"nodes":["447bda97.d746a4","d2d2ddc8.f1781","b0815c4c.9f9f8","28c33e85.32afe2"],"x":34,"y":439,"w":742,"h":142},{"id":"447bda97.d746a4","type":"alexa-remote-event","z":"7d3d0560.4703fc","g":"72cb396c.2758e8","name":"","account":"","event":"ws-device-activity","x":150,"y":520,"wires":[["d2d2ddc8.f1781"]]},{"id":"d2d2ddc8.f1781","type":"switch","z":"7d3d0560.4703fc","g":"72cb396c.2758e8","name":"AlexaVoiceMessageCheck","property":"payload.activityStatus","propertyType":"msg","rules":[{"t":"eq","v":"SUCCESS","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":420,"y":480,"wires":[["b0815c4c.9f9f8"]]},{"id":"b0815c4c.9f9f8","type":"switch","z":"7d3d0560.4703fc","g":"72cb396c.2758e8","name":"Filter Commands","property":"payload.description.summary","propertyType":"msg","rules":[{"t":"eq","v":"alexa check the doors","vt":"str"}],"checkall":"false","repair":false,"outputs":1,"x":400,"y":540,"wires":[["28c33e85.32afe2"]]},{"id":"28c33e85.32afe2","type":"switch","z":"7d3d0560.4703fc","g":"72cb396c.2758e8","name":"pass message","property":"payload","propertyType":"msg","rules":[{"t":"nnull"}],"checkall":"true","repair":false,"outputs":1,"x":670,"y":540,"wires":[[]]}]

thank you!


Provide tabIndex prop to allow for sequential tabbing in forms

When quill is part of a form where previous/next inputs have tabindex > 0, sequential tabbing is lost, as elements of quill do not allow for tabIndex to be specified. It would be great if all elements generated by quill had their tabIndex explicitly set to a defined prop that defaulted to 0.
Quill version

1.0.0

I think tabIndex support for the built-in editing area is a sensible request. I'm all for this being in the next release.
However, I can't see how the same could be done for the toolbar, without either providing a custom toolbar, or monkey patching the elements (which I won't do). I suggest pushing your proposal upstream to Quill itself.
In the meantime, you can accomplish both, in a slightly more verbose way, this by providing a custom editing area and a custom toolbar.

The new tabIndex prop unfortunately does not seem to work for me. The tabindex property only seems to be applied to the ql-clipboard div but not to the ql-editor (which seems to still get focus now through tabbing).


Self Assessment: JavaScript best practices.

Overall, my code follows JavaScript best practices. Some of the good practices that are followed in this code are:
Descriptive variable and function names: The variable and function names are descriptive and convey the purpose of the code block.

Use of const: const is used wherever possible to ensure that the value of the variable is not re-assigned.
Use of arrow functions: Arrow functions are used instead of traditional function declarations to write concise and readable code.
Use of template literals: Template literals are used to create HTML strings in a more readable format.
Use of event listeners: Event listeners are used to attaching event handlers to different HTML elements.
Use of conditional statements: Conditional statements are used to handle different conditions based on user interactions.

This issue is successfully closed!


adjust the font of the project theme to match the LabDAO assets by Asimov Collective

The fonts are defined in

The fonts are defined in https://github.com/labdao/project-theme/blob/master/_layouts/default.html#L7


wt.exe help messagebox icon change

Description of the new feature/enhancement
When you write in command line wt.exe --help it opens a messagebox with a warning icon it should be changed into info icon
(blue with i symbol)

Proposed technical implementation details (optional)

Thanks for the suggestion! You know, it might not seem like it, but I think this will get fixed by #4134. We'll be using that issue to track "improve that UI entirely". We probably won't even be using MessageBox at all anymore, so this'll just be fixed by that.
/dup #4134


CI: Enable core dump on Linux

Based on rust-lang/rust#52333 .
Demo run here: https://travis-ci.com/lzutao/rustup.rs/jobs/195307167#L434

I am not sure who would be best to review this, to determine if it's correct and sufficient.  @lzutao do you recall who suggested core dumps?

On discord, @pietroalbini sugessted debug options. Maybe @alexcrichton or
@kennytm could review this PR?

Are any of @pietroalbini @kennytm or @alexcrichton in a position to review this change to determine if it'd provide the requisite information should travis end up segfaulting one of our tests in the future?

:umbrella: The latest upstream changes (presumably 7afe6a8b10b4e5f891e1b5232a7c362b40f5c168) made this pull request unmergeable. Please resolve the merge conflicts.

Rebased on master.

I would personally discourage this in the sense that it's make CI configuration very complicated for probably not a lot of reward, does rustup segfault that often on CI? For testing it there's not really any great way to verify visuall that this works so if it's to be merged I'd recommend triggering a segfault in a test and make sure it generates an appropriate log entry.

@kinnison What do you think about this? Should we keep or close this?

While I saw a couple of segfaults last week, I've not seen any since, so I think this was a spurious tech failure at Travis and not something we should complicate our CI for right now.  Especially since we really shouldn't see any segfaults in rustup code in the general course of PRs.  We'll have this to come back to if we decide we need it in the future. Thank you @lzutao for having a go at this in the meantime.


Refactor repeated code

These are a few cases of code that is repeated in several places that could be refactored into separate methods that I came across while determining how best to approach #650 (the less repeated code in the current version, the less duplicated code would be introduced by adding async versions).
I'll happily squash them down to one commit if you want, but they're probably easier to consider separately (and perhaps decide to accept some and reject some) as separate commits.

The one observable change introduced is that some exception messages are changed as ReadAndAssert consolidates a few similar methods. The exception type remains the same, and the meaning should remain understandable.

Okay, the story so far…
The formatting mistakes are rectified, and for(;;) replaced with while (true).
The error message is as requested, and also on JsonTextReader.ParseValue() for consistency.
Most of the case JsonToken.Comment blocks have been reverted. Those that are in response to calls to JsonSerializerInternalReader.ReadForType() remain, as that method already ate comments in one path, and doing so in the other can reduce calls into it, after which the case is no longer reachable.
You mention XmlReader.MoveToContent() in regard to what I'd called SkipComments and ReadAndSkipComments and suggested ReadToContent(). To follow the analogy fully then ReadAndSkipComments should become ReadToContent() while SkipComments should become MoveToContent() and call Read() if TokenType == JsonToken.None, and they should also be public.
I've done that, though I'm not sure about the making-them-public bit. Since this means that MoveToContent() has a check against TokenType == JsonToken.None that is known to not be necessary all the times it was called internally, these both work by calling into an internal MoveToContentUnsafe() that doesn't do that test, and which is the real replacement of SkipComments as it had been.
This also allows the new (checking) MoveToContent to replace one of the ternary cases you objected to.
The other ternary expression I haven't touched yet. It does remove the duplicate exception throw, and is the only way to do so I can think of without goto (I'm happier in using goto than most, but it's still worth avoiding). Anyway, your comment on it seemed conflicted, so I haven't touched it yet.

I made a couple of minor changes but otherwise it looks good. Thanks!


[Crash]: Error: EBUSY while trying to download a file

Before you file a crash report

[X] I have checked the issue tracker and have not found an issue that matches the one I'm filing.
[X] This issue doesn't reproduce on web browsers (such as in Chrome). If it does, issue reports go to the Mattermost Server repository.
[X] I have read the contribution guidelines.

Mattermost Desktop Version
5.4.0
Operating System
Windows 10 x64
Mattermost Server Version
7.8.8
What type of crash did you experience?
Uncaught exception (I saw a dialog pop up that said "The Mattermost app quit unexpectedly")
Crash report details
Application: Mattermost 5.4.0 [commit: 420c63d
]
Platform: Windows_NT 10.0.17763 x64
Error: EBUSY: resource busy or locked, open 'C:\Users\REDACTED\AppData\Roaming\Mattermost\downloads.json'

Log Output
[2023-07-27 11:39:30.364] [debug] [DownloadsManager] init { 'this.json': {}, validatedJSON: {} }
[2023-07-27 11:39:30.377] [debug] [DownloadsManager] saveAll
[2023-07-27 11:39:30.379] [debug] [MainWindow] Can't send update-downloads-dropdown, will retry
[2023-07-27 11:39:30.381] [debug] [DownloadsManager] checkForDeletedFiles
[2023-07-27 11:39:30.429] [warn]  [Config] app-update.yml does not exist, disabling auto-updates
[2023-07-27 11:39:30.436] [error] Logger Log level set to: info
[2023-07-27 11:39:32.360] [info]  [App.Initialize] Autoupgrade disabled: false
[2023-07-27 11:39:32.424] [error] [MainWindow] Error: Provided bounds info are outside the bounds of your screen, using defaults instead.
    at MainWindow.getSavedWindowState (C:\Program Files\Mattermost\Desktop\resources\app.asar\index.js:45831:17)
    at MainWindow.init (C:\Program Files\Mattermost\Desktop\resources\app.asar\index.js:45624:36)
    at MainWindow.show (C:\Program Files\Mattermost\Desktop\resources\app.asar\index.js:45748:14)
    at initializeAfterAppReady (C:\Program Files\Mattermost\Desktop\resources\app.asar\index.js:416:23)
    at initialize (C:\Program Files\Mattermost\Desktop\resources\app.asar\index.js:150:9)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[2023-07-27 11:39:32.558] [info]  [ServerDropdownView] init
[2023-07-27 11:39:32.666] [info]  [i18nManager] Set new language de
[2023-07-27 11:39:33.690] [error] [MainWindow] Unable to send the message to the main window for message type update-downloads-dropdown
[2023-07-27 11:39:33.707] [error] [MainWindow] Unable to send the message to the main window for message type reload-config

Additional Information
This crash happens when I try to download the same file a second time shortly after the first download

Thanks @rtfm98, created a ticket: https://mattermost.atlassian.net/browse/MM-53844

This actually should be fixed by this change, which make sure we are queueing writes (and therefore locks) to the downloads.json file. Closing as completed :)


DM(dmctl/openapi): fix incremental task's source meta check

What problem does this PR solve?

Issue Number: close #5464
What is changed and how it works?
pass the check of source meta in task's adjust and add check to start task or check task.
Check List
Tests

Unit test
Integration test

Release note
None

/run-all-tests

/run-all-tests

/run-all-tests

/run-dm-integration-test

/cc @Ehco1996

/merge

/run-dm-integration-test


Add basic stream control to sync streams

Hey,
There is always a chance that input and output streams have different bandwidth. Like if we are reading a file and sending it somewhere it is read at much higher speed. Result is simple - more and more data is buffered into memory.
Possible solution could be usage of buffered stream, that pauses itself when buffer overflows + "drain" listener on output stream, that resumes it.

Yes, please :+1:
Afaict this will be addressed as part of #62 because the newer react/http-client versions should actually have proper streaming behavior.

Small progress update: Now that #72 is in, we support react/http-client v0.5 which has proper stream support (https://github.com/reactphp/http-client/releases).
I'll update the dependencies to enforce this minimum version soon, so that we can rely on this feature in our test suite :+1:


HTML and Nunjucks tabs not descriptive when using JAWS

Description of the issue
The tabs don't contain hidden text like the other elements.
So, when you list them in JAWS you get a list which resembles the following:

HTML
Nunjucks
HTML
Nunjucks
HTML
Nunjucks

Other elements have visually hidden text, so when you list the elements they still make sense for example:

  Open this button example in a new window

When you list the links with JAWS you get a list which resembles the following:

open this button example in a new window
open this start button example in a new window
open this secondary button example in a new window

Steps to reproduce the issue
Use CTRL + INSERT + C to list all aria-controls and combo-boxes in JAWS.
Suggestion
Adding the same visually hidden identifier to the HTML and Nunjucks tabs so they read something like:

HTML code example for button
Nunjucks code example for button
HTML code example for start button
Nunjucks code example for start button

Opened in GOV.UK Frontend by mistake. Re-opened in Design System: https://github.com/alphagov/govuk-design-system/issues/1916

Thanks @abbott567! We are able to move issues between repos, so if that happens again feel free to just add a comment and we can move it instead (nothing wrong with closing and re-opening, moving it is just slightly tidier).


[Beta]: docs(pt-br): translate pages/index.md to pt-br

[Beta]: docs(pt-br): translate pages/index.md to pt-br

Hey guys! I can help with something in the merging of the translation PRs? @jhonmike @eduardomoroni. Who can merge this, how is this process working? if I can help with something, just let me know!

A verdade é que normalmente a gente teria duas pessoas revisando, mas como
tá meio parado vou mergear somente com uma revisão. Chegando em casa eu
olho isso, desculpa a demora
On Mon, Jan 10, 2022, 15:29 Julio Wandekoken @.***>
wrote:

Hey guys! I can help with something in the merging of the translation PRs?
@jhonmike https://github.com/jhonmike @eduardomoroni
https://github.com/eduardomoroni. Who can merge this, how is this
process working? if I can help with something, just let me know!
—
Reply to this email directly, view it on GitHub
https://github.com/reactjs/pt-br.reactjs.org/pull/556#issuecomment-1008926913,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAGI63WTWXEABUX4M7OE73TUVLUL3ANCNFSM5JTMWYGA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID:
@.***>


Error: "Could not load any valid magic files"

We have user reports of failures on Fedora 30 and Debian 9.11 with Error: "Could not load any valid magic files".
Are there some extra dependencies that need to be installed for some distributions?

The only "dependency" is that any custom (including OS-provided) magic database file be compatible with the version of libmagic included in mmmagic. If the built-in magic database file is used, there should be no issue.
You might also check that there isn't something like a MAGIC environment variable set which could override the magic database file being used.

I see thanks.  Looks like we have a bit of investigating to do then.   Is there some way of forcing it to use the built-in db, and ignore any system ones?

Do you have a way to reliably reproduce the issue that I can use on my end?

Not yet, but hopefully will shortly and will post here.  Thanks.

@mscdex So after further investigation it seems that the issue is with our build servers or process.  It's only the pre-built binaries that are suffering from this problem.  We are looking into it now.

@mscdex Just a short update.  We've narrowed it down to the pkg package, which we are using to bundle the project into an executable.  Even though the magic.mgc file is declared as an asset in the config, mmmagic does not seem to be able to see it.  We're currently investigating why and looking for a workaround.

@srlowe I'm having the same problem, the my pkg bundled executable doesn't seem to be able to see the magic.node file (which I've copied into the same directory as the executable), and so I get an error, "Could not load any valid magic files."
Did you ever find a solution?

This happens because PKG creates an "snapshot" file system in memory. The NodeJS runtime inside pkg is modified to read correctly from this in memory file system. But it has no control over the C code that the magic library uses to read files. Therefore the Magic library looks in paths that do not exist in the normal file system.
According to the Magic docs, the mmmagic project can fix this by first reading the magicFile property into a buffer. Then pass that buffer as the first argument to the Magic call.
I got around this by including the node_modules/mmmagic/magic/magic.mgc file next to the compiled PKG output. Then do this...
    const pathToMagicFile = path.join(path.dirname(process.execPath), "node_modules/mmmagic/magic/magic.mgc");

    const [magicMimeResults, mimeForkStream] = await streamMmmagic.promise(fileStream, {
        magicFile: pathToMagicFile
    });


Fix ruby version check in plugin test

Before
$ if ["${ruby}" = '2.7']; then echo yay; fi
bash: [2.7: command not found

After
$ if [ "${ruby}" = '2.7' ]; then echo yay; fi
yay

Fixes: f164a3f291045dd45fac4dd560421f243af1fbc3

Hopefully should address this kind of failure https://ci.theforeman.org/job/foreman_openscap-pull-request/531/label=fast,ruby=2.7/console


Need a consistent way to manage switching out a custom operator catalog as clusters are being upgraded to newer versions

Feature Request
Is your feature request related to a problem? Please describe.
Problem Statement:

As a Consumer of Operators delivered in a custom catalog, I do not want to manually update my catalog to point to a new index image for each OCP release.  I want the catalog to automatically update and work with my version of OCP installed.
As a Consumer of Operators delivered in a custom catalog, I would like the ability to verify "prior to enabling" a new OCP specific catalog, that the new catalog will not break or remove operators that my running workloads depend on. I would like some sort of "dry-run" or "look ahead" capability to help me with an OCP upgrade that affects my catalog and its operators.
As a Developer of Operators delivered in a custom catalog, I want to support multiple versions of OCP that can install my software through OLM.
As a Developer of Operators delivered in a custom catalog, I want to use features of olm/opm/ocp in my catalog index that may not be available in previous versions of OCP.

Describe the solution you'd like
Not sure I know what the correct solution is, but would be great if we collaborated on a solution that would work for any product that is delivered using a custom operator catalog.
It would be interesting to understand how OCP manages this catalog switching process for the 4 internal catalogs it creates and manages, maybe there is something that could be externalized to help with custom catalog management.
We had also kicked around the idea of a catalog manager operator. It could watch for changes to an ocp version and then take action, maybe produce some sort of "look ahead/dry run" summary...

What are your concerns for a catalog when OCP is upgraded? The OCP pipeline extensively validates each operator version in the new version of OCP, so those default catalogs should work. For custom catalogs, doing that same kind of validation could be pretty labor intensive, I can see that. Is there a specific case where upgrading OCP broke a custom catalog you were using?
Regarding updating the index image, check out the new catalog polling feature: https://github.com/operator-framework/operator-lifecycle-manager/blob/master/doc/design/catalog-polling.md. This is how OCP-provided catalogs (like red hat operators) are getting updates in newer versions of OCP.

We had also kicked around the idea of a catalog manager operator. It could watch for changes to an ocp version and then take action, maybe produce some sort of "look ahead/dry run" summary...

This is probably the simplest / most immediate solution to the problem. It's how OpenShift handles this as well (the cluster-version-operator sets the image pullspecs for the default CatalogSources, albeit indirectly through the marketplace-operator).
Other ideas that are more general / attractive, but which don't exist today and will take some time and thought:

Add a non-image-polling option to find updates for catalogs that can hit an endpoint with metadata about the current cluster and receive a response with the correct target image spec. OpenShift does something similar by hitting a cincinatti endpoint.
Run a proxy in front of the registry that contains the catalog, make decisions about what actual image content to serve based on the request (auth token, headers, etc).
Templating the imagepull spec based on the cluster environment

We had also kicked around the idea of a catalog manager operator. It could watch for changes to an ocp version and then take action, maybe produce some sort of "look ahead/dry run" summary...

This is probably the simplest / most immediate solution to the problem. It's how OpenShift handles this as well (the cluster-version-operator sets the image pullspecs for the default CatalogSources, albeit indirectly through the marketplace-operator).
Other ideas that are more general / attractive, but which don't exist today and will take some time and thought:

Add a non-image-polling option to find updates for catalogs that can hit an endpoint with metadata about the current cluster and receive a response with the correct target image spec. OpenShift does something similar by hitting a cincinatti endpoint.
Run a proxy in front of the registry that contains the catalog, make decisions about what actual image content to serve based on the request (auth token, headers, etc).
Templating the imagepull spec based on the cluster environment

@ecordell I have starting thinking a lot more about this in the last week and also starting working on a simple golang prototype,
here are the types of things I am looking at, I started down this path as a cli and am still not sure how it should manifest itself in a cluster.  Should it be an operator, should it be some sort of extension/plugin to OLM.....
Available Commands:
  checkCluster          Command used to collect runtime details about a cluster
  compareCatalogs       Command used to compare 2 catalogs
  createCatalog         Command used to install an operator catalog
  deleteCatalog         Command used to remove an operator catalog
  dumpCatalog           Command used to dump an operator catalog
  getBundleThatReplaces Command used to check if new catalog will drive an update to existing subscription
  getCorrectCatalog     Command used to Idenitify the correct catalog that should be running in a cluster
  getCurrentCSV         Command used to get the current CSV for a given operator
  help                  Help about any command
  listSubscriptions     Command used to list all of the subscriptions currently using a catalog
  manageCatalog         Command used to instantiate correct catalog based on runtime attributes of a cluster

@ecordell I have starting thinking a lot more about this in the last week and also starting working on a simple golang prototype,
here are the types of things I am looking at, I started down this path as a cli and am still not sure how it should manifest itself in a cluster.  Should it be an operator, should it be some sort of extension/plugin to OLM.....
Available Commands:
  checkCluster          Command used to collect runtime details about a cluster
  compareCatalogs       Command used to compare 2 catalogs
  createCatalog         Command used to install an operator catalog
  deleteCatalog         Command used to remove an operator catalog
  dumpCatalog           Command used to dump an operator catalog
  getBundleThatReplaces Command used to check if new catalog will drive an update to existing subscription
  getCorrectCatalog     Command used to Idenitify the correct catalog that should be running in a cluster
  getCurrentCSV         Command used to get the current CSV for a given operator
  help                  Help about any command
  listSubscriptions     Command used to list all of the subscriptions currently using a catalog
  manageCatalog         Command used to instantiate correct catalog based on runtime attributes of a cluster

@dmesser you mentioned in call today that there is another issue related to this one where is sounded like there were additional values we could add to a catalogSource that could be used to switch which catalog is running, can you reference that issue here please?
We also talked about maybe adding another updateStrategy. It would be interesting to have some sort of generic pluggable way to deliver an updateStrategy implementation.
The whole catalog management set of use cases is also something that would be great to flush out

@dmesser I don't think we have an upstream issues for this yet, but the idea was that catalog references could contain variables, that align with platform versioning or other aspects of the platform (architecture, brand etc). So as a specific example, a user would be able to say that the catalog image would come from: quay.io/acme/my-catalog:v{ocp-major}.{ocp-minor} or  quay.io/acme/my-catalog:v{k8s-version}. OLM would reconcile those and as a result a catalog change could be triggered when the platform is updated.

Referencing the conversation that took place in slack about this topic: https://kubernetes.slack.com/archives/C0181L6JYQ2/p1622730604039200
Explicit example provided by @ecordell (which is similar to what @dmesser suggested in previous comment):
if you could write a catalogsource with:
image: quay.io/my/catalog:{ocp_major_minor}

or
image: quay.io/my/catalog:{kube_major_minor}

to get the catalog pod to reference quay.io/my/catalog:4.7 or quay.io/my/catalog:1.19

@jchunkins This issue is tracked here in OLMs backlog: https://issues.redhat.com/browse/OLM-2011
As you can see it's medium priority for the team due to other priorities (declarative config, new Bundle API) etc. I think the proposed implementation directly in the catalog operator would make for a nice, reasonably isolated and well-scoped feature that upstream contributors could take up. WDYT?

@dmesser @jchunkins I am still a bit fuzzy on the overall process to attempt to proceed with this work. Where should we be working to flush out a design for this templating work? Here in this repo? and when/what should go in the jira issue?
One of the first questions I have,  what is the best way to determine the ocp major, minor versions?  In my own sandbox I was using the clusterversion resource status.history and ordering by semver but guessing there may be a better way

@huizengaJoe At a high level you would follow the contribution guide: https://github.com/operator-framework/operator-lifecycle-manager/blob/master/CONTRIBUTING.md
In this particular instance, the initial requirements/ideas are defined in the Jira. Usually what the OLM team does is create an enhancement design following this process here https://github.com/operator-framework/enhancements/ which should be kept to a minimum to lay out the desired end state and drive a prototype. The latter you could share in a demo in the OLM WG meetings based on your fork. That's where you'd also discuss some implementation details like determining OCP major/minor version.

Should we close this issue out now that John's catalog templating work merged in the v0.19.x minor version release? It looks like the Epic Daniel linked it also in the closed status, so I just wanted to double check whether there's an existing work we wanted to tackle, or whether the templating logic was sufficient.

@timflannagan Thanks for pointing this out... I agree that this issue has been implemented and we can close this.
/close


Bump pre-commit hooks

Codecov Report

Merging #93 (9d33ea5) into main (4f35953) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##              main       #93   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            9         9
  Lines          632       629    -3
=========================================
- Hits           632       629    -3

Impacted Files
Coverage Δ

weather_command/_weather.py
100.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4f35953...9d33ea5. Read the comment docs.