Management Interface shouldn't show features to users without permissions

I've added a new user and given them the monitoring tag only. I've not given them access to my single vhost I've added, and have given them no additional permissions.
When I log in as that user I have admin permissions. I can add and delete exchanges, queues, and users. Instead, I expect that I would only be able to view metrics and not perform any admin tasks.

I've also added permission to a vhost and added regex which matches nothing - r"^$" - to the config and write permissions - and I can still act as an admin with that user.

Hi @BurningDog , thanks for reporting. We've tried, but haven't been able to reproduce this ourselves yet.
Could you please provide your users.json file? It should be in the root of your data directory (default /var/lib/lavinmq/users.json).

Ah - my mistake - I hadn't actually continued with deleting the exchange, as I expected that if I don't have permissions to delete an exchange, then there should be no "Delete exchange" button visible. I get an access denied message if I try.
I expected that anything to do with add/edit/delete would not be visible to a monitoring user - it's confusing to show this functionality when it's not accessible (this includes the links in the sidebar: Virtual hosts, Users, etc).

Okay, good to hear that it's working as expected in the end!

Do we want to address this? I guess it would require more round-trips to the backend or duplicating permission logic in the UI?

Do we want to address this? I guess it would require more round-trips to the backend or duplicating permission logic in the UI (client side code)?

I'm planning on raising it for discussion on our next team meeting. But I don't think it's something we want to change at the moment, since I think it's a pretty low priority thing.

We've discussed this in the team, and decided we will not do this at the moment. It requires a pretty big change, and we don't think that this is a high enough priority task. We have forwarded it to the UX team though, and it will be taken into consideration when doing future UI updates.
Closing this as not planned.


data/contents subpath does not belong in /hsapi/resource/{pk}/functions paths

@pkdash @dtarb
Currently, the API functions that support the REST endpoints in /hsapi/resource/{pk}/functions take a full path like in iRODS. Since the application is not allowed to modify files in any subpath except {pk}/data/contents, data/contents should not be required to be part of that pathname. This means -- in turn -- that we need to transition apps using this code in the hs_restclient to the modified, shorter pathnames. Affected functions are zip and unzip.

This is also an integrity exposure, as the routines do not check currently whether the path is allowed or not. I have changed this in my debugging mode code, but in production, invalid requests are simply acted upon, writing files to forbidden areas in the resource.

@alvacouch zip and unzip are not yet implemented in hs_restclient. So no existing apps using hs_resclient need any change.

@pkdash It's a little weirder than that. The REST endpoints add data/contents to the path; the API functions don't. I will modify this if it is safe.

@alvacouch Are you referring to Hydroshare internal API functions (view functions)? Any changes to those likely to break Hydroshare UI.

@sblack-usu Is this still relevant given your work on hsapi.

stale, closing


Fixed a typo in quick-reference.md

Just fixed a small typo I found while reading your documentation. Didn't even try the project yet but it looks very promising!

Thanks!


catkin_pip: 0.2.3-0 in 'kinetic/distribution.yaml' [bloom]

Increasing version of package(s) in repository catkin_pip to 0.2.3-0:

upstream repository: https://github.com/pyros-dev/catkin_pip.git
release repository: https://github.com/asmodehn/catkin_pip-release.git
distro file: kinetic/distribution.yaml
bloom version: 0.5.26
previous version for package: 0.2.2-0

catkin_pip
* Merge pull request #147 <https://github.com/asmodehn/catkin_pip/issues/147> from pyros-dev/lunar
  adding lunar
* adding --ignore-src when calling rosdep on tests,
  to not attempt to download an old (or missing) version of catkin_pip.
* adding lunar
* Merge pull request #144 <https://github.com/asmodehn/catkin_pip/issues/144> from pyros-dev/fix_destinations
  fixing catkin_destination not being called
* tests are now using the new catkin_pip_target and calling catkin_package directly.
* adding catkin_pip_target to API, to allow the user to call catkin_package how he wants.
* splitting catkin_pip_package in function and macro to expose the catkin_destinations variables set in the scope.
* adding install rules to verify catkin variables.
* Merge pull request #128 <https://github.com/asmodehn/catkin_pip/issues/128> from pyros-dev/pyup-update-pytest-3.0.6-to-3.1.3
  Update pytest to 3.1.3
* Update pytest from 3.0.6 to 3.1.3
* Contributors: AlexV, pyup-bot

repository url update done.


[Accessibility] Fixed an accessibility issue related to the virtual keyboard on a Smartphone.

Fixed an issue where the virtual keyboard on smartphone was not appearing properly after clicking on the JavaScript button.
Previously :
We were giving the focus to the Monaco editor once clicked on the JavaScript button, and the virtual keyboard was not appearing.
Now :
We dont' give the focus anymore with this button. We continue to give the focus to Monaco with the hidden menu.

@veler,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot


Output isn't working the right way

The output of the inputed data is either on the left side of the panels or on the right side of the panels with the plots. It's not working for both at the same time. (Issue for Edge and FireFox)

Issue for Edge and FireFox

As I can see the Tool runs in all Browsers (Edge, FireFox, Chrome, Arc)


Django documentation

-Steps for setting up new project
-How to run tests

I have also written up a piece for this! Will submit my own pull request and then we can see whether we can pick pieces from the two...

:shipit:


chore(main): release library 7.4.0

:robot: I have created a release beep boop
7.4.0 (2024-12-04)
Features

allow customizing the PORT for the test server (#176) (a07a1ae)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

library-v7.4.0
:sunflower:


Deployment of custom errors

Describe the bug
The package does not appear to properly install the custom errors file that is generated for this custom device.
To Reproduce
Steps to reproduce the behavior:

Install the package
Go to \National Instruments\Shared\Errors
Note that the ...errors.txt file is not present

Expected behavior
I would expect this file to be here in order for VeriStand to correctly interpret the error.

The shared nature of <Program Files>\National Instruments\Shared\Errors makes it difficult to install the errors file directly to this location using our current build pipeline. Since this path is not versioned, custom devices for multiple years of VeriStand will attempt to install the same file, which leads to issues when uninstalling. One solution would be to create a shared error provider package, that all year versions could require. This is not supported by the current custom device build pipeline, unfortunately.
Fortunately, built applications also look in <Program Files>\National Instruments\Shared\LabVIEW Run-Time\<LabVIEW version>\errors\. Since this is year-specific, the above issue will not apply.
I'll move forward on prototyping the described fix.


can not compile in ubuntu 16.04

Please answer these questions before submitting your issue. Thanks!

What version of Rust are you using (rustc --version)?

rustc 1.19.0-nightly (4bf5c99af 2017-06-10)

What operating system and processor architecture are you using?

➜  tikv git:(master) lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.2 LTS
Release:        16.04
Codename:       xenial

What did you do?

Just compile tikv

What did you expect to see?

compile ok.

What did you see instead?

CMake Warning at CMakeLists.txt:257 (message):
gRPC_BENCHMARK_PROVIDER is "module" but BENCHMARK_ROOT_DIR is wrong
make[2]: 警告: 子 make 中强制 -jN: 关闭 jobserver 模式。
In file included from /usr/include/string.h:635:0,
from /home/ubt/src/docs/scripts/deps/tikv/target/release/build/grpc-sys-8a79f77ac18b7e0f/out/grpc/third_party/boringssl/crypto/asn1/a_bitstr.c:59:
In function ‘memcpy’,
inlined from ‘i2c_ASN1_BIT_STRING’ at /home/ubt/src/docs/scripts/deps/tikv/target/release/build/grpc-sys-8a79f77ac18b7e0f/out/grpc/third_party/boringssl/crypto/asn1/a_bitstr.c:118:5:
/usr/include/x86_64-linux-gnu/bits/string3.h:53:10: error: ‘__builtin_memcpy’: specified size between<PHONE_NUMBER>1562067968 and<PHONE_NUMBER>3709551615 exceeds maximum object size<PHONE_NUMBER>854775807 [-Werror=stringop-overflow=]
return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[5]: *** [third_party/boringssl/crypto/asn1/CMakeFiles/asn1.dir/a_bitstr.c.o] Error 1
make[4]: *** [third_party/boringssl/crypto/asn1/CMakeFiles/asn1.dir/all] Error 2
make[4]: *** 正在等待未完成的任务....
make[3]: *** [CMakeFiles/grpc.dir/rule] Error 2
make[2]: *** [grpc] Error 2
thread 'main' panicked at '
command did not execute successfully, got: exit code: 2
build script failed, must exit now', /home/ubt/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/cmake-0.1.22/src/lib.rs:617
note: Run with RUST_BACKTRACE=1 for a backtrace.
Makefile:38: recipe for target 'release' failed
make[1]: *** [release] Error 101
make[1]: Leaving directory '/home/ubt/src/docs/scripts/deps/tikv'
Makefile:43: recipe for target 'static_release' failed
make: *** [static_release] Error 2

/cc @andelf

@joostshao
You've wrongly pass ... as part of CFLAGS in your build command.
make static_release CFLAGS="... -Wno-error"

and another one
do tikv depend goole's boringssl ?
this is my directory as below, is this ok? but no mention about it in  docs
➜  boringssl git:(master) pwd
/home/ubt/src/docs/scripts/deps/tikv/third_party/boringssl

Yes. Since we use grace as underlying RPC framework, which depends on borings.
Never mind, make static_release will automatically download and compile all dependences.

i found it and slove it, gcc version is gcc-7.1.
which is too high level.
gcc issue with -Werror=stringop-overflow=


Multi tenant, changing tenant drops call

Hi Teams team
when used with two companies and I am doing a call within one company, and then switch to the other company to copy something from another chat...the call gets dropped.

This is currently by design. Switching between tenants restarts the teams app and hence the call gets disconnected.


remove unused pacakges

Looks like we are not using following packages

request
uglifycss

@kevin-wynn can you have a look and confirm please

These are okay to remove, good call!

fixed in 1.4.3


Y24-219 - Link tag groups with tag sets

User story
As PSD, we would like to create TagSet records and link them with the existing TagGroup records.
Who are the primary contacts for this story
Abdullah, Andrew, Katy, Neil
Who is the nominated tester for UAT
PSD
Acceptance criteria
To be considered successful the solution must allow:

[ ] In Sequencescape databases, of local, UAT, Training environments, extract a list tag groups that belong to single index tag sets and extract a list of pairs of tag groups that belong to dual index tag sets
[ ] Using record loader files, or rake tasks (whichever is suitable for the environment), create tag set records while linking them with the above. For example,

Single index tag group with name PN-1000212 Single Index Kit N, Set A can be linked with the tag set with the same name, while setting tag_group_id.
Dual index tag groups with names PN-1000215/PN-3000431 Dual Index Kit TT, Set A (i7) and PN-1000215/PN-3000431 Dual Index Kit TT, Set A (i5) can be linked with the tag set with the name without the specific index suffix PN-1000215/PN-3000431 Dual Index Kit TT, Set A, while setting tag_group_id and tag2_group_id respectively.

Dependencies
This story is blocked by the following dependencies:

#4160
#4236

References
This story has a non-blocking relationship with:
See links in the parent research story.
Additional context
Note that we are not renaming any existing tag groups; we are creating new tag sets and links to existing tag groups.
Size:M because of different records in local, UAT, and training environments, and manual inspection of existing tag groups for linking.

Ideally this would be done after https://github.com/sanger/sequencescape/issues/4239, so that no new tag groups can be created that don't have tag sets.
But probably doesn't matter too much because I don't think new tag groups are created v often.

Ideally this would be done after #4239, so that no new tag groups can be created that don't have tag sets.
But probably doesn't matter too much because I don't think new tag groups are created v often.

I have added this story as a direct dependency in https://github.com/sanger/sequencescape/issues/4083 and https://github.com/sanger/limber/issues/1814 with the same idea.
I had a similar assumption about new tag groups not being created often, which would require the SS tag creation story if done in UI. Record loader base additions for new tag sets and tag groups can be done easily in a similar way after this story I think.


TextMap typeclasses for Java implementations?

Following from #207, would it make sense to have adapters from the Java implementations?
Why:

Because we can
There's a wealth of them in the java instrumentation library

Why not:

Because we can doesn't imply we should
It's probably usually the Java agent invoking those from the Java SDK for Java types in practice?  Wait until someone wants it?

If we do:

It should be explicit.  We don't know what's mutable and what's not from parameter A.  [Edit: it's supposed to be mutable in that world, but it might not be canonical.  Still better to be explicit.]

Currently, we can convert Java's TextMapGetter and TextMapPropagator to otel4s. And wise-versa:
https://github.com/typelevel/otel4s/blob/main/oteljava/common/src/main/scala/org/typelevel/otel4s/oteljava/context/propagation/PropagatorConverters.scala

It's not a typeclass, but the functionality is somewhat similar.


Reproduce DR learner notebook using chirho.robust

This PR closes #373

Needs merge conflict resolution following merge of #398 to master


Investigate running a demo server

Create a demo server hooked up to ai-nekko Discord. Make the bot only work for a selected private channel.
Document the process of running this server in our wiki, so we can replicate it in the future.
[UPD] by A.

[x] Deploy
[ ] Restrict bot to specific server+channel
[ ] Document process

@khasinski I've deployed project to fly.io, bot is live. No restrictions yet, so be careful when playing with it. Please check related PR for details

@khasinski Please DM me to get invite url etc.
Also watch out for invitation into dev team on Discord Developer Portal


Library has inadequate documentation in the docs directory

Is your change request related to a problem? Please describe.
As described in the documentation section of the Library Guidelines, Contributors libraries are expected to have some documentation in the docs directory -- specifically, a changelog and at least a short tutorial that expands on the quick start in the README.
This library currently doesn't have any extra documentation in the docs directory. It would be helpful to explain this library from first principles, noting what problems arise when trying to solve this and how one can solve those problems. Additionally, adding a Cookbook recipe for this repo would be nice.
Describe the solution you'd like
The changelog needs to be updated for at least the most recent release (we can then start curating it going forward) and at least a short tutorial needs to be added to the docs directory, or other documentation as described in this Divio article.
The argonaut-codecs docs directory has a good example of expanded documentation for a Contributor library. But it would even be useful to add something considerably smaller and shorter to this library.
Additional context
See the Governance repository for more information about requirements in the Contributors organization.

As a quick note, there's some lengthy documentation included as a module header here:
https://github.com/purescript-contrib/purescript-options/blob/main/src/Data/Options.purs
This could be adapted / moved to the docs directory.

I think putting documentation inside the code (like it is there) is preferable, because that way it will show up on Pursuit.

I also like documentation in the code, because it shows up on Pursuit, and I think it's underutilized.
For this library, which is very small, perhaps it would be better to not have a documentation directory at all and instead link to the module from the main README.

Sounds sensible to me.

@thomashoneyman If I delete the docs folder, it'll remove the CHANGELOG.md file as well. I agree with Harry that that file should be in the root folder rather than in the docs folder.

Let's go for it. We can move the CHANGELOG and CONTRIBUTING file locations (we'll also need to update the relative links to these files in other .md files)


combine 3D models of obj format at 10 different moments into a dynamic 3D model of fbx format

Describe the Issue
Hello, I have recently encountered some questions. How do I combine 3D models of obj format at 10 different moments into a dynamic 3D model of fbx format? Should I use Unity or Blender?
Feature Area
What's incorrect? What's missing?
Existing Doc Link
If this is about something in an existing document, please provide link
Additional context
Add any other context about the problem here.

This is definitely not something related to the MRTK. You should as this question on Unity answers, or even better, a forum for 3D modeling tools and it totally depends on what you want to do with the result mesh.

Thanks @Alexees.
It would probably be better to ask this question on stackoverflow (or Blender forums).


Add Simple Example of Hinge2Joint and BallJoint

We are currently missing a simple example with these two type of joints.
The example should be similar to the samples/devices/rotational_motor one.

Fixed in #452


Content for homepage

@rudietuesdays Here is a consolidation of the content for the homepage based on your merged PR and Figma.

Header includes: Preprint Review Platform, Programs (Open Reviewers, LivePREJCs), Resources (Resource Center, API, GitHub), Communities, Blog, About (Mission, Team, How we are funded, Code of Conduct, Privacy Policy), Donate, Log In / Sign Up
Links to resource cards: ...
Screenshots

I'm going to break down this in individual issues for clarity and close this issue.

That works for me!


Close icon in details button is too close compared to open

Open:

Close:

What browser is this?

Happening with Chrome and Edge on Windows. I think that also Safari on iOS IIRC.


Opus streaming

While having a task to encode pcm to opus stream using create_pull and write I get an unrecoverable error. Did you have any experience of this?
Many thanks
Tao

Hi.
I want to decode opus packet and play like https://github.com/Edzelf/Esp-radio
Is it possible?


Add v3 skills js sample

Fixes #
Proposed Changes

Testing

Note to self to make .env/.gitignore change


Delete unnecessary spaces

Delete unnecessary spaces: When copying from the web page, there is an unnecessary space after the code.
Fix indent: Indentation is misaligned.

@changeworld : Thanks for your contribution! The author, @msmbaldwin, has been notified to review your proposed change.

@changeworld : Thanks for your contribution! The author, @msmbaldwin, has been notified to review your proposed change.

Thanks for the contribution, @changeworld! These fixes look good, so I #sign-off.

@changeworld - Thank you for your submission. We are not able to accept these kinds of changes (formatting and spacing changes) in the repo at this time.


Production deployment

#27

Codecov Report

Merging #47 into master will not change coverage.

@@          Coverage Diff          @@
##           master    #47   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files          19     19
  Lines         238    238
=====================================
  Hits          238    238

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 6be95c6...41068c4. Read the comment docs.


[react-jss] Without a HOC

As an alternative approach to current, we can render sheets as a child element.
const sheet = jss.createStyleSheet(style)

render() {
  return (

      <Jss sheet={sheet} />

  )
}

Ref counting can be achieved by using a WeakMap.
const map = new WeakMap()

class Jss {
  componentWillMount() {
    const {sheet} = this.props
    const counter = map.get(sheet) || 0
    if (!counter) sheet.attach()
    map.set(sheet, counter + 1)
  }

  componentWillUnmount() {
    const {sheet} = this.props
    const counter = map.get(sheet) - 1
    if (counter) {
      map.set(sheet, counter)
    } else {
      sheet.detach()
      map.delete(sheet)
    }
  }

  render() {
    return null
  }
}

Would this help with server rendering?
I'm looking for some sort of solution similar to how react-look works where I can wrap all my markup in a <LookRoot /> tag and then call a StyleSheet.renderToString() method to get all my styles.
Just trying to figure out if this is something react-jss would/should support or if I should have a go at writing my own package that depends on react-jss?

This issue has nothing to do with SSR. This is about having refs counting and lazy evaluation features react-jss provides without using a HOC and though sheet can be defined at render time.

Ah, thanks for clearing that up. Not completely following on the HOC (I think this stands for Higher Order Component) though. On the documentation on the home page it says

You can use it as a higher-order component to inject JSS.

Does this mean react-jss does support a higher order component to grab all the styles, or is this something it will never support, is there an alternate way of achieving the same thing?
Apologies if these are naive questions.

react-jss does exactly what is in readme, to can get css from all sheets directly from jss https://github.com/jsstyles/jss/blob/master/docs/js-api.md#a-style-sheets-registry
react-jss is only using jss.

Thanks for your help, that's exactly what I was looking for. I'll be sure to give that a try now.

this is a really nice solution! we can create common JSS components for general styles and add them where needed, including multiple sheets per component!

I think it can be easily done with react-side-effect (will start some experiments)
I was looking for solution where I can use context (again integration with material-ui) and this is the thing!

Done,
I used plain arrays with lodash utils instead of WeakMaps
import fp from 'lodash/fp';
import withSideEffect from 'react-side-effect';

import {
    Children,
    Component,
    PropTypes
} from 'react';

const {
    node,
    object
} = PropTypes;

const mapUniqueSheets = fp.flow(fp.map('sheet'), fp.uniq);
const attachSheets = fp.forEach(sheet => sheet.attach());
const detachUnusedSheets = fp.flow(fp.difference, fp.forEach(sheet => sheet.detach()));

let prevSheets;

@withSideEffect(mapUniqueSheets, sheets => {
    if (prevSheets) {
        detachUnusedSheets(prevSheets, sheets);
    }

    attachSheets(sheets);

    prevSheets = sheets;
})
export default class Jss extends Component {
    static propTypes = {
        sheet: object,
        children: node
    }

    render() {
        return Children.only(this.props.children);
    }
}

Usage:
import jss from 'jss';

import React, {
    Component,
    PropTypes
} from 'react';

import Jss from '../../components/jss/Jss';

const {
    bool,
    func,
    object
} = PropTypes;

export default class RecoverPassword extends Component {
    static contextTypes = {
        muiTheme: object.isRequired
    }

    constructor(props, context) {
        super(props, context);

        const {
            muiTheme: {
                palette: {
                    accent1Color
                }
            }
        } = context;

        this.sheet = jss.createStyleSheet({
            root: {
                backgroundColor: accent1Color
            }
        });
    }

    render() {
        const {
            classes
        } = this.sheet;

        return (
            <Jss sheet={this.sheet}>

                        Yo ho ho!

            </Jss>
        );
    }
}

Looks nice @umidbekkarimov !

You won't be able to reuse the same sheet across component instances in case you create sheet in constructor?  However this might be what you want.

Looks nice @umidbekkarimov !

Thank you! Will you add this component to current react-jss package? I would be happy to provide test cases but I'm too busy now

You won't be able to reuse the same sheet across component instances in case you create sheet in constructor? However this might be what you want.

Yes it's just my use case where I need an access to this.context

Main problem here is - hot reloading, and it's solvable by moving jss.createStyleSheet from constructor to componentWillUpdate for NODE_ENV=development but adding this condition to every component is not a solution.

an option is to extend a Jss class instead of Component and do the magic there.

In this case if i want to use componentWillUpdate in my component i also have to call super. componentWillUpdate() to make magic work.
So currently HOC is the best option but no props/context will be there.
I'm thinking about
@useSheet((props, context) => ({
      root: {
          color: props.color || context.myTheme.color
      }
}))
export default class Foo extends Component {}

Yeah, OOP becomes quickly ugly. How would you implement such an HOC?

Decorator (useSheet or new one) will receive mapPropsAndContextToRules function and options (like contextTypes or jss settings)
In componentWillMount and componentWillReceiveProps we will call this.setState(mapPropsAndContextToRules(this.props, this.context))
In componentWillUpdate compare previous rules with current and if there any difference - create new sheets
As it's done in connect from react-redux we can look to mapPropsAndContextToRules.length to define optimisation steps

function useSheet(mapPropsAndContextToRules, {
    pure: true,
    contextTypes,
    ...restOptions
} = {}) {
    const updateOnPropsChanges = mapPropsAndContextToRules.length >= 1;
    const updateOnContextChange = mapPropsAndContextToRules.length == 2

    return Target => class WithSheet extends Component {
         static contextTypes = updateOnContextChange ? contextTypes : null;

         componentWillMount() {
              const nextState = mapPropsAndContextToRules(this.props, this.context);
              this.sheet = jss.createStyleSheet(nextState);
              this.setState(nextState);
         }

         componentWillReceiveProps(nextProps) {
             if (updateOnPropsChanges && !isEqual(this.props, nextProps)) {
                 this.setState(mapPropsAndContextToRules(nextProps, this.context));
             }
         }

         shouldComponentUpdate(nextProps, nextState) {
             return updateOnContextChange || !isEqual(this.state, nextState) || !isEqual(this.props, nextProps);
         }

         componentWillUpdate(nextProps, nextState) {
             if (!isEqual(this.state, nextState)) {
                 this.sheet = jss.createStyleSheet(nextState);
             }
         }
    };
}

sounds like a plan, we need to cover current react-jss with tests though, because we will break it otherwise.

my implementation
import React, { Component, PropTypes } from 'react'
import jss from 'jss'
import hoistNonReactStatics from 'hoist-non-react-statics'

let jssInstance = jss

const isObject = obj => Object(obj) === obj

function decorate(WrappedComponent, rules, options) {
  const sheet = jssInstance.createStyleSheet({}, options)
  const instances = new Set()
  const registredRules = new Set()
  const themes = new WeakMap()

  function generateRules(theme, defaultRules) {
    const globalRules = {}
    const componentRules = {}
    const mergedRules = { ...defaultRules, ...theme }

    Object.keys(mergedRules).forEach(selector => {
      const rule = mergedRules[selector]

      if (typeof rule === 'string') {
        globalRules[selector] = rule
        return false
      }

      if (isObject(rule)) {
        const createdRule = jssInstance.createRule(selector, rule) // this
        const { className } = createdRule
        componentRules[selector] = className

        if (registredRules.has(className)) return false

        registredRules.add(className)
        sheet.addRule(selector, rule) // overhead!!! we do the same above
      }
    })

    themes.set(theme, { ...componentRules, ...globalRules })
  }

  function mount(instance, theme = rules) {
    instances.add(instance)

    !themes.has(theme) && generateRules(theme, rules)
    if (instances.size === 1) sheet.attach()
  }

  function unmount(instance) {
    instances.delete(instance)

    if (instances.size === 0) sheet.detach()
  }

  class StyleSheetWrapper extends Component {
    componentWillMount() {
      mount(this, this.props.theme)
    }

    componentWillUnmount() {
      unmount(this)
    }

    render() {
      return <WrappedComponent {...this.props} sheet={themes.get(this.props.theme || rules)}/>
    }
  }

  const displayName = WrappedComponent.displayName
                   || WrappedComponent.name
                   || 'Component'

  StyleSheetWrapper.propTypes = {
    theme: PropTypes.object,
  }
  StyleSheetWrapper.WrappedComponent = WrappedComponent
  StyleSheetWrapper.displayName = `JSS(${displayName})`

  return hoistNonReactStatics(StyleSheetWrapper, WrappedComponent)
}

export default function useSheet(rules, options) {
  if (rules instanceof jss.constructor) {
    jssInstance = rules

    return useSheet
  }

  return (WrappedComponent) => decorate(WrappedComponent, rules, options)
}

Usage:
**files: Button.js**

function Button({ color = 'default', sheet, children, ...otherProps }) {
  return (
    <button className={sheet.button, sheet[color]} {...otherProps}>
      {children}
    </button>
  )
}

const styles = {
  button: {
    fontSize: '2em',
  },
  default: {
    color: 'red',
  },
  green: {
    color: 'green',
  },
}

export default useSheet(styles)(Button)

**files: any.js**

const Buttons = () => (

   // sheet - {button:{width: '100px'}, default: {same}, green: {same}}
    <Button theme={test}>Global</Button>
   // sheet - {button:{same}, default: {color: 'black'}, green: {same}}
    <Button theme={test2}>Object</Button>
   // sheet - all styles default
    <Button>Default</Button>

)

let global = jss.createStyleSheet({
  '.global-hash-selector': {
    width: '100px',
  }
}, {named: false}).attach()

const test = {
  button: 'global-hash-selector',
}

const test2 = {
  default: {
    color: 'black',
  },
}

@kof what do you say?

Need to find time to go through all this, useful would be a list of features/fixes we are implementing here in natural language. Implementation details doesn't matter that much.

@kof  what do you mean -

useful would be a list of features/fixes we are implementing here in natural language

a list of features/fixes we are talking about written down in english.

my implementation bad work well in current implementation jss issue

@umidbekkarimov how can I contact you ? skype or gitter ?

I’m struggling to see the use case for this feature

There is a sentiment that HOC's are not always a good fit, because they hide methods.

Another idea:

const styles = {
  button: {
    color: 'red'
  }
}

const StyledButton = () => (
      <Jss styles={styles}>
        {() => (
          <button className={classes.button}>My Button</button>
        )}
      </Jss>
)

This issue was moved to cssinjs/jss#803


Bounce Gesture Control Game

🎮 Game Request
The gestures are continuously monitored by the webcam mounted on the TV. Each gesture corresponds to a specific command.
Point down the features
Thumbs up: Increase the volume
Thumbs down: Decrease the volume
Left swipe: 'Jump' backwards 10 seconds
Right swipe: 'Jump' forward 10 seconds
Stop: Pause the movie
Each video is a sequence of 30 frames (or images).
Select program in which you are contributing
GSSoC23
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

/assign

Hey @shraddha761! 🙂
It seems like you are not following proper guidelines !! 👀
Read documentation properly !!🙏
If you have any queries reach out to us on Discord🕹 .

Hey @shraddha761 ! Thank you so much for your raising the issue💗
It’s all yours, you can come anytime again and make some contributions! 🚀
Alone, we can do little, but together we can do so much! 😇


[CLI] "libman cache clean " command results in funky file paths in error message when file is locked

Functional impact
No functional impact, but we should clean up file paths if we can
Minimal repro steps

Install some libraries, e.g. cdnjs<EMAIL_ADDRESS>Go to the cache location for the library, e.g. C:\Users\alexgav.librarymanager\cdnjs\jquery\3.2.1
Open one of the files, e.g. jquery.js
Execute

libman cache clean cdnjs

Expected result
Error message specifying which file is locked
Actual result
Error message Failed to clean cache: The process cannot access the file '\?\C:\Users\alexgav.librarymanager\cdnjs\jquery\3.2.1' because it is being used by another process.
Further technical details
Not sure why the file path is in the "windows internals" format, \?\c:\xxx, instead of "c:\xxx", hopefully we can normalize

I don't think we can do much here.  We try to delete the directory, and that's locked because of the open handle on the file.  We don't know which file it is, and looking up open handles on a given file (e.g. if we iterated all the files) is non-trivial on Windows (it needs custom drivers, UAC, security, oh my!), and not applicable on other OS (since they typically don't hold locks on files).
As for the path format, that's coming from the inner exception, possibly a .NET Core behavior.  I don't think it's worth messing with that either (doesn't seem worth the effort).


Segmentation fault in Fedora 39

Hi, thanks for your hard work. It is appreciated.
I am wanting to flash a module using my linux laptop. But I am hitting an assertion here.
[bouke@Slimbook ~]$ ltchiptool -vvv gui
22:31:53: Debug: Adding duplicate image handler for 'Windows bitmap file'
22:31:53: Debug: Adding duplicate animation handler for '1' type
22:31:53: Debug: Adding duplicate animation handler for '2' type
D: Found Local data snapshot (v1.4.1) - /home/bouke/.local/lib/python3.12/site-packages/ltchiptool
D: Using v1.4.1 (/home/bouke/.local/lib/python3.12/site-packages/ltchiptool) as default
D: Using selector: EpollSelector

(ltchiptool:58704): Gtk-CRITICAL **: 22:31:53.843: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar
D: Started DeviceWatcher
Segmentation fault (core dumped)

Using Fedora 39 and using all pypi packages. The GUI first starts normally, but gets this segmentation fault when switching tabs.
Using v4.10.1
Would appreciate if you could take a look. (As a suggestion maybe consider a flatpak in the future?)

I am also getting those crashes, the gtk_box_gadget_distribute: assertion 'size >= 0' failed line seems to be bogus, the segfaults happen in different places in the code.
I think the cause of these crashes is the fact that ltchiptool does GUI operations from multiple threads, which GTK does not like (this might also be the cause of macOS crashes).
I quickly added this piece code to a few places:
import threading
print("PluginsPanel.__init__, get_native_id=", threading.get_native_id())

And from the logs I can see that OnWorkStopped is called from a different thread (and it also manipulates the GUI):
PluginsPanel.__init__, get_native_id= 307888
StartWork get_native_id= 307888
PluginsPanel.OnWorkStopped, get_native_id= 307943

Good point. That might have been not an issue on Windows, and since I'm developing on Windows I never noticed such things - all this is actually my first go at wxPython and GUI apps.
It should be possible to convert these worker thread callbacks so that they execute on main thread. I think something similar has been implemented in another class already; I'm not sure where exactly.
Something similar has been implemented here:
https://github.com/tuya-cloudcutter/cloudcutter-universal/blob/master/cloudcutter/modules/base/event.py
but that relies on AsyncIO for the entire project.

Hi, this got closed automatically. If you can, let me know if the issue is solved (at least partially). Clicking on the Plugins tab is still a known issue on Linux.


255/-1 exit error from the AOSSetupHybridCloud.exe

Update Local Agent document specify that LA 2.4.0 has fixes 255/-1 exit error from the AOSSetupHybridCloud.exe. But I have the same issue even running from latest infrastructure scripts. As i mentioned https://community.dynamics.com/365/financeandoperations/f/dynamics-365-for-finance-and-operations-forum/383053/error-when-deploy-prod-environment-first-time-module-aos-failed-with-error-code-255/1040460. for Production and SAT environment.

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

ID: 38d81ec9-52b0-5b29-282b-f5cf451ba746
Version Independent ID: 6b1b4864-e2a8-d0f5-b0d1-5d04fa3e82ca
Content: Update the local agent - Finance & Operations | Dynamics 365
Content Source: articles/fin-ops-core/dev-itpro/lifecycle-services/update-local-agent.md
Service: dynamics-ax-platform
Product: ****
Technology: ****
GitHub Login: @faix
Microsoft Alias: osfaixat

Issue is not yet fixed in Local Agent 2.4.0.

unfortunately we use this error code for most non successful exits from the AOSSetupHybridCloud installer. I will reword the text above so it clearly identifies the issue it resolves. Please open a support case in order to diagnose your issue.
Thanks

Thanks for the quick response Faix, I will open a support ticket for sure. But as per above said, Same error is occurring on two different environment which is strange. Even I run .\Test-D365FOConfiguration.ps1 successfully on all VMs with new Scripts from LCS.

@josaw1, doc has been updated. Please feel free to close.


md_events cleanup

Still rough, but more readable (especially if you look after install's cleanup)..
Namespace global variables
Finish reload_service
Handle invalid default httpd config file
Provide an outline of how to trigger reloads on renew
Provide a means for scp/ssh options (e.g. specify an identity)
Miscellaneous fixes.

You think we should add this for challtestsrv in the test suite?

And let me know if you think this is good enough for another beta release!

I don't know anything about challtestserv - I just grabbed the current update scripts.  But feel free to try it - it might work!  Nice thing about re-use - by providing an interface, you can let others be smart.
md_events is pre-pre-alpha - I've been publishing it to provoke thought/discussion on an events interface.  I've only had time for limited unit testing and wouldn't want others to start relying on current quirks/bugs.  But I do think it's now worth your time to see where it's going. I need to write up some notes on what it implies for an interface...
The other commits in my repo are in good enough shape for a beta release.  I suggest omitting contrib/md_md_events for now.
It's morning here - time for my walk & breakfast so I can think...


fix(ui-components): Stateless InputAddress

Remove it from the stateful/ folder

It was stateful because it relied on ui-keyring https://github.com/paritytech/Nomidot/pull/145/files#diff-cf99e41d9346cb3a0cbcc072d10e8347L6, which itself is bound to localStorage.


Adjust EW/PT riskresult combination (EXPOSUREAPP-6169)

The home screen uses a "CombinedRiskResult" consisting of the PT and EW risk result, the combination behavior was adjusted in this PR. A failed calculation from either PT or EW, will cause the combined result to also have the state "failed", so either risk calculation failing should show the error card with the retry button on the home screen.
The EW risk result has a value matchedKeyCount to detect "low risk, despite encounters", which is used in the risk details screen to display an additional info box, and show a link to the FAQ. There is now a new matchedRiskCount  which is the combination of matchedKeyCount (EW) and checkInOverlapCount (PT).
Some refactoring as I incorrectly renamed two methods previously.
Tracing progress status now also reflects download/riskcalculation of the PresenceTracingWarningTask.

I think it not good to show the user a failed risk calculation if one of the two fails. He could have a high risk because of EW, but since the PT fails, he sees the failed Risk card instead of the high-risk card and so isn't aware that he has a high risk.

I think it not good to show the user a failed risk calculation if one of the two fails. He could have a high risk because of EW, but since the PT fails, he sees the failed Risk card instead of the high-risk card and so isn't aware that he has a high risk.

@mlenkeit what do you think?

I think it not good to show the user a failed risk calculation if one of the two fails. He could have a high risk because of EW, but since the PT fails, he sees the failed Risk card instead of the high-risk card and so isn't aware that he has a high risk.

I discussed this with Max ( /cc @mlenkeit ), I think both variants are valid, if desired we can change this back in a follow up PR on monday.

I think it not good to show the user a failed risk calculation if one of the two fails. He could have a high risk because of EW, but since the PT fails, he sees the failed Risk card instead of the high-risk card and so isn't aware that he has a high risk.

I discussed this with Max ( /cc @mlenkeit ), I think both variants are valid, if desired we can change this back in a follow up PR on monday.

Was originally discussed with POs. Matthias is right.


add session and localstorage helper fn

I'm always copy pasting sessionstorage and localstorage get/save/remove function in all my project.
Maybe adding them here can be a nice addon.

@tomalaforge Can you give more details please? maybe some code ?

export type LocalStorageKey = '' // that's the issue, the best is to set up this key for your personal project to be more typesafe

export const localStorageSave = <T>(key: LocalStorageKey, data: T): void => {
  localStorage.setItem(key, JSON.stringify(data));
};

export const localStorageGet = <T>(key: LocalStorageKey): T | null => {
  const data = localStorage.getItem(key);
  return data && JSON.parse(data);
};

export const localStorageRemove = (key: LocalStorageKey): void => {
  localStorage.removeItem(key);
};

Imo localstorage should be a service, something like
export class LocalStorageService {

  setItem<T>(key: string, value: T): void {
    localStorage.setItem(key, JSON.stringify(value));
  }

  getItem<T>(key: string): T | null {
    const storedValue = localStorage.getItem(key);
    if (storedValue === null) return null;
    return JSON.parse(storedValue) as T;
  }

  removeItem(key: string): void {
    localStorage.removeItem(key);
  }

  clear(): void {
    localStorage.clear();
  }
}

Then, Maybe injectLocalStorage() should return an instance of this service

Maybe we can take it a step further and have a Signal-based + Zod-powered Storage instead? https://twitter.com/Nartc1410/status/1643474376199663621

Seems nice, but is adding another dependancy a good idea ? most projects don't use Zod and we rely on zod to use this service.

@tomalaforge since it's in a secondary entry point, it'll only be required if the consumers use ngxtension/storage (imaginary name). But it makes sense to NOT rely on 3rd party lib as well.

I would change it a bit, making it more dynamically:
export const [injectStorage, provideStorage] = createInjectionToken((): localStorage | sessionStorage => localStorage);

@Injectable({
 providedIn: 'root'
})
export class StorageService {

  const store = injectStorage()

  setItem<T>(key: string, value: T): void {
    store.setItem(key, JSON.stringify(value));
  }

  getItem<T>(key: string): T | null {
    const storedValue = store.getItem(key);
    if (storedValue === null) return null;
    return JSON.parse(storedValue) as T;
  }

  removeItem(key: string): void {
    store.removeItem(key);
  }

  clear(): void {
    store.clear();
  }
}

This way we can use either localStorage or sessionStorage. Or we can go even further, adding support of cookie as well.
Code not tested 🤷🏻♂

IMO it's not a good idea to declare via generic T what local-storage-get should return, as:

it's not type safe, it's just your declaration which is not verified
wrapping it with either type guard or an assertion function seems a must have if, for any reason, the serialized structure might evolve within time
not sure if that fits to an angular specific library, as it's not really angular specific.

zod is indeed a dependency on the other hand. How about accepting a function which runs the type guard, whatever the function is?

Can we also have any event when storage state changes?


--edition partner-developer restricted pick list field error

Summary
Trying to create a partner developer org using the --edition flag.
Steps To Reproduce
This command will create an org:
sf org create scratch --edition developer

This command will throw an error:
sf org create scratch --edition partner-developer
Error (1): Edition: bad value for restricted picklist field: partner-developer

Expected result
A partner developer org is created
Actual result
An error is thrown:
Error (1): Edition: bad value for restricted picklist field: partner-developer

System Information
{
  "architecture": "darwin-x64",
  "cliVersion"<EMAIL_ADDRESS>  "nodeVersion": "node-v18.18.2",
  "osVersion": "Darwin 22.6.0",
  "rootPath": "/Users/kevinwatson/.fnm/node-versions/v18.18.2/installation/lib/node_modules/@salesforce/cli",
  "shell": "zsh",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 3.0.2 (core)",
    "@oclif/plugin-commands 3.0.7 (core)",
    "@oclif/plugin-help 6.0.7 (core)",
    "@oclif/plugin-not-found 3.0.4 (core)",
    "@oclif/plugin-plugins 4.1.9 (core)",
    "@oclif/plugin-search 1.0.8 (core)",
    "@oclif/plugin-update 4.1.4 (core)",
    "@oclif/plugin-version 2.0.8 (core)",
    "@oclif/plugin-warn-if-update-available 3.0.5 (core)",
    "@oclif/plugin-which 3.0.11 (core)",
    "@salesforce/cli 2.21.8 (core)",
    "apex 3.0.8 (core)",
    "auth 3.0.10 (core)",
    "data 3.0.5 (core)",
    "deploy-retrieve 2.2.3 (core)",
    "info 3.0.7 (core)",
    "limits 3.0.5 (core)",
    "marketplace 1.0.10 (core)",
    "org 3.1.1 (core)",
    "packaging 1.27.2 (user)",
    "schema 3.0.8 (core)",
    "settings 2.0.9 (core)",
    "signups 1.4.22 (user)",
    "sobject 1.0.5 (core)",
    "source 3.0.3 (core)",
    "telemetry 3.1.4 (core)",
    "templates 56.0.4 (core)",
    "trust 3.1.2 (core)",
    "user 3.1.0 (core)"
  ]
}

Additional information
Your own --help shows that partner-developer is a valid option.
DEFINITION FILE OVERRIDE FLAGS
  -e, --edition=<option>     Salesforce edition of the scratch org. Overrides the value of the "edition" option in the definition file, if set.
                             <options: developer|enterprise|group|professional|partner-developer|partner-enterprise|partner-group|partner-professional>

I'm able to create a partner developer org using the -f so it doesn't seem like a permissions issue:
{
  "orgName": "test",
  "country": "US",
  "edition": "Partner Developer",
  "description": "Test",
  "hasSampleData": true,
  "language": "English",
  "settings": {
    "apexSettings": {
      "enableCompileOnDeploy": false,
      "enableAggregateCodeCoverageOnly": true
    },
    "chatterSettings": {
      "enableChatter": true
    },
    "currencySettings": {
      "enableMultiCurrency": true
    },
    "languageSettings": {
      "enableTranslationWorkbench": true
    },
    "lightningExperienceSettings": {
      "enableS1DesktopEnabled": true
    }
  },
  "features": []
}

Our DevHub is a PBO, which is why I'm able to create a partner developer edition org with the -f flag. This doc https://developer.salesforce.com/docs/atlas.en-us.pkg1_dev.meta/pkg1_dev/isv_partner_scratch_org_editions.htm mentions I should be able to use this edition. I only get the error when using the --edition flag.

Hey @Kevmo92, this does look like a bug. That error message is coming back from the server, you can see the POST if you run the command with the --dev-debug flag.
If I clone plugin-org, change that flag value to partner developer (no hyphen), build it with yarn build, then run ../plugin-org/bin/run.js org create scratch --edition "partner developer", I get a completely different error message:

You don't have permission to create Partner Edition organizations

This is expected since my current dev-hub is not configured for partner orgs, but at least the edition validation is satisfied. I'll get a ticket created and we'll get it resolved. Thanks for reporting it!

@iowillhoit Thanks for taking a look! I need to remember the --dev-debug flag in the future, that's a super helpful flag.

This is now in sf v2.23.20, the current production CLI.

@shetzel @cristiand391 @iowillhoit Thank you 🚀


Begin moving params and constants to common

Constants:

Structured in frozen dataclasses as before, now in common. Specific beamlines/Hyperion can inherit any of these dataclasses and override default values. For now, default values are those used by Hyperion
Need to chase up with analysis whether it's okay to use the same zocalo environment for all beamlines, and if we can change it to a better name (currently artemis)
zocalo_environment and oav_centring_file are now constants rather than parameters

Parameters:

Not much has changed, but moved most of this to common. The defaults, for now, are the values used by Hyperion.
Specific beamlines/Hyperion can modify a common parameter model by inheriting it and overriding relevant values

Params/constants will likely be moved around lots as we get a better idea as to which things are beamline-specific, but after this PR, things should be easier to adjust

Thanks. This looks broadly correct, couple of minor things. I think we probably do need a more holistic look at the param model and how we use it with constants but as an initial move this is fine.

Yeah, I agree. It might be worth going over every parameter together at the next technical meeting and deciding its fate

Yeah, I agree. It might be worth going over every parameter together at the next technical meeting and deciding its fate

Good idea


add value for resources to airflow.kubernetesPodTemplate

Currently, if a user wants to override the default resource requeset of the KubernetesExecutor pod_template, they have to set the entire file manually with airflow.kubernetesPodTemplate.stringOverride.
We should add a value like airflow.kubernetesPodTemplate.resources, to let them use the default-generated pod_template, along with a custom resource request.

This was already added in version 8.1.0, by PR: https://github.com/airflow-helm/charts/issues/175


Split received messages by pushEvents and responds

This PR moved to https://github.com/spotware/connect-js-api/pull/1


[Enhancement] Add a requirement file for Python.

It would be cool to have a requirements.txt (see e.g. https://pip.readthedocs.io/en/1.1/requirements.html) to simply install all required pip packages using pip install -r requirements.txt. As an example, maybe take a look at my repository: https://github.com/SeppPenner/TelegramMessageBot.

Thanks for the suggestion. This was my first time really doing anything with Python so I stumbled my way through it a bit. I'll be sure to look into this as soon as I get the chance.

I'm not an expert in Python either but I found it quite useful to have these requirements files to do easy setups with the scripts.

Well, since you're using only standard libraries, the requirements.txt file does not bring any benefits here. However, I've added it (as empty file) now.

I can help with that

@TomasRoj While you're here already, we have the same issue here, too.


WebAuthn : Android Safetynet Integrity verdict (ctsProfileMatch, basicIntegrity)

Describe the feature
Currently Vert.x only check the ctsProfileMatch flag to determine if the attestation should be valid or not :
// 5. Check that “ctsProfileMatch” is set to true. If its not set to true, that means that device has been rooted
      // and so can not be trusted to provide trustworthy attestation.
      if (!token.getJsonObject("payload").getBoolean("ctsProfileMatch")) {
        throw new AttestationException("JWS ctsProfileMatch is false!");
      }

According to Google documentation : https://developer.android.com/training/safetynet/attestation#potential-integrity-verdicts
It might interesting to look after the basicIntegrity flag as well to make decision regarding the integrity of the user device and the context of a specific customer.
Would it makes sense for Vert.x to add options (WebAuthnOptions maybe ?) to be more granular regarding this topic ?
Thanks

Hi @tcompiegne the ctsProfileMatch is required to be true to be a valid webauthn implementation, when that flag is true then basicIntegrity can only be true either (from the table you shared).
What you're asking is to be able to relax that validation, right?
An configuration option like: safetyNetIntegrityVeridictRelaxed : boolean where it defaults to false.
An in the code we check:
if (!token.getJsonObject("payload")
  .getBoolean(
    safetyNetIntegrityVeridictRelaxed ? "basicIntegrity" : "ctsProfileMatch", // <-- here it depends on the config
    false)) {
...

Hey @pmlopes,
Yes that could be a good option.
Regards


Mark old Nehemiah mods as replaced_by newer one

Motivation
KSP-CKAN/NetKAN#7100 attempted to mark several old mods as replaced by a newer one. This was not successful because those netkans were already frozen, and if they hadn't been, there were syntax errors and the property name was wrong (see KSP-CKAN/NetKAN#10109 and KSP-CKAN/NetKAN#10110).
Changes
Now the old modules have replaced_by set as originally intended.


fix (DatePicker & Cascader): fix the dropdown animation direction of cascader and datepicker

Please make sure these boxes are checked before submitting your PR, thank you!

[x] Make sure you follow Element's contributing guide (中文 | English | Español | Français).
[x] Make sure you are merging your commits to dev branch.
[x] Add some descriptions and refer relative issues for you PR.

Fix: #21802
fix the dropdown animation direction of cascader and datepicker
before

fixed

升级以后报错了，应该是直接修改了 props placement
[Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: "placement"

found in

---> <ElDatePicker> at packages/date-picker/src/picker.vue

升级后报错，修改了组件参数placement：

尼玛的乱搞是吧


Dependent Dropdown Value not loaded when using Laravel Modules Livewire

Hi, I have a question: Im working with a dependent dropdown component. Do you know if Laravel-modules-livewire changes the way it displays selected previous values?
My current code:
`<?php
namespace Modules\Shipper\Http\Livewire;
use Livewire\Component;
use Modules\Shipper\Entities\City;
use Modules\Shipper\Entities\Country;
use Modules\Shipper\Entities\State;
class CSC extends Component
{
public $countries;
public $states;
public $cities;
public $selectedCountry = null;
public $selectedState = null;
public $selectedCity = null;

public function mount($selectedCity = null)
{
    $this->countries = Country::all();
    $this->states = collect();
    $this->cities = collect();
    $this->selectedCity = $selectedCity;

    if (!is_null($selectedCity)) {
        $city = City::with('state.country')->find($selectedCity);
        if ($city) {
            $this->cities = City::where('state_id', $city->state_id)->get();
            $this->states = State::where('country_id', $city->state->country_id)->get();
            $this->selectedCountry = $city->state->country_id;
            $this->selectedState = $city->state_id;
        }
    }
}

public function render()
{
    return view('shipper::livewire.c-s-c');
}

public function updatedSelectedCountry($country)
{
    $this->states = State::where('country_code', $country)->orderBy('name', 'asc')->get();
    $this->selectedState = NULL;
}

public function updatedSelectedState($state)
{
    if (!is_null($state)) {
        $this->cities = City::where('state_id', $state)->orderBy('name', 'asc')->get();
    }
}

}`
my view:

{{ trans('ship.Shipper Country') }}*
        <select wire:model="selectedCountry" class="form-control" name="ship_country" id="ship_country" required>
            <option value="" selected>{{ trans('ship.Shipper Country') }}</option>
            @foreach($countries as $country)
                <option value="{{ $country->iso_code }}">{{ $country->country }}</option>
            @endforeach
        </select>

@if (!is_null($selectedCountry))

{{ trans('ship.Shipper State') }}*
            <select wire:model="selectedState" class="form-control" name="ship_state" id="ship_state" required>
                <option value="" selected>{{ trans('ship.Shipper State') }}</option>
                @foreach($states as $state)
                    <option value="{{ $state->iso2 }}">{{ $state->name }}</option>
                @endforeach
            </select>

@endif

Im surprised because debugging livewire it displays all the dependent dropdown values (states) correctly but its not displaying the dependent state dropdown in laravel view. When the livewire works (not using modules/livewire) when country is selected displays:
selectedCountry="AR"
selectedState=0
Now displays:
selectedCountry="AR"
selectedState=Null.

Any guidedance appreciated!.

weird.

@price2b I am extremely sorry for the late response. For my exam, I did not available. I tried to fix this issue, but it was also hard for me to a proper understanding. Is possible to share your demo project or maybe it will be better if I connect with your pc and try to solve this issue. Can we add on discord.com, please? This is my discord id - mhmiton#8254.

thank you. added using my account discord siherrera#7542

Just a comment and thats why I opened the case. This example is based on https://www.youtube.com/watch?v=pfSjRcudZVA Livewire: 3-Level Dependent Dropdowns by LaravelDaily with repository at -> https://github.com/LaravelDaily/Livewire-jQuery-Three-Dropdowns
the weird thing is that it works perfect in a vanilla laravel installation and it can be installed using Laravel Modules livewire. The component renders ok but it is not passing selectedState or selectedCity despite it shows on laravel debugbar (livewire) that state changed and charges all States the values from DB.  (you can see the dependent states from the selected country).

Thank you so much for your time and help using teamwiewer. my fault.
the answer:
It was a  in the beginning of each component I didnt know it was mandatory to place!.
thank you!


Update math.js

Discussion:
it has to update the base edge [p1, p2] to probe the face properly even if previous area is not positive I guess?

Yes! Great catch! :)


Rename MergedResult to SequentialResult

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (04f5ec7) to head (19fcea6).
Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #193   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           66        66
  Lines         1615      1615
  Branches       164       164
=========================================
  Hits          1615      1615

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


avoid pentabyte and exabyte values

Do petabyte and exabyte hard drives even exist? Is there a specific reason we would need to avoid these?

Without parseInt most of my disks is exabyte and petabyte ones.


Minor fix ROCm docs 6.1.1

The math_api.md file has been moved to kernel_languages.rst. We have to delete it.
Fix precision support broken link. Page has been moved.
Update readme
Update CODEOWNERS
Update hiprtc.h

@samjwu Can we merge this in?

Thank you.


firewall: put category filter selection on top of the list/screen

Hi,
would it be possible to move the field to set the filter for rule maintenance on top of the list/screen rather than at the bottom? It'll be great to just select the filter and maintain filter specific rules right away. Rather than scrolling all the way down, set filter, and scrolling all the way up again after a filter has been applied.
Thanx

@jodelkoenig you mean the category filter?

Indeed. The category filter :)

One more thing, related to category filer:
It'll be great if a selection would survive the switch between interfaces. With 18.1 this is no longer the case. With the latest 17.x the selection was still valid, even if I changed the - via tab - from LAN to OpenVPN or so.
Thanks :)

ok, this is work in progress. https://github.com/opnsense/core/commit/ac4f5a1aec26d5ec1fc89680b9019ef37ce6db4c fixes the "sticky" categories like it was, but creates issues in the menu system (matching).
To be continued...

Functional it would indeed be better to move the filter to the top of the page, optical it probably looks a bit better on the bottom.
I'm not sure this is the best version, but can you try the commits in this issue?
opnsense-patch  ac4f5a1 5bc9fdf  0752629

What if you put the drop down where the "Add xxx" buttons would be?

I like your idea, fichtner. This looks much cleaner.
Thanks AdSchellevis. For both items. Category Filter at the top of the page and persistency of filter cross interface pages.

@fichtner better indeed, shall I change it accordingly

yes please, I only fiddled with the browser's DOM

it was a bit of fiddling, but this should be it

Very nice, thanks!

Indeed. Thanks a lot! Cool :)


Improve UI for month selection

Expand to year selection in the future

Also implemented perpetuum calendar

Styling the option element from HTML, used for the month selection dropdown, is highly limited, because the box is rendered by the operating system. The only things that can be changed are the background color and the font size.
More information about this topic can be found here:

https://stackoverflow.com/questions/7208786/how-to-style-the-option-of-an-html-select-element
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/option

Here is a CodePen example to demonstrate that any other changes in the CSS file, beside the ones mentioned before, are not applied to the option element:
https://codepen.io/meems011/pen/oNdrqrj

Fixed


Fix/471 extension service providers

XRTK - Mixed Reality Toolkit Change Request
Overview
Fixes extension service providers registration.
Target of the change:

Core (core framework, interfaces and definitions)

Changes:

Fixes: #471

Now it's getting registered again (or at least it tries to) but I am running into
Unable to register IMixedRealityService. Concrete type does not implement IMixedRealityExtensionService or IMixedRealityDataProvider.
UnityEngine.Debug:LogError(Object)
XRTK.Services.MixedRealityToolkit:RegisterServiceInternal(Type, IMixedRealityService) (at Packages/com.xrtk.core/Services/MixedRealityToolkit.cs:875)
XRTK.Services.MixedRealityToolkit:CreateAndRegisterService(Type, SupportedPlatforms, Object[]) (at Packages/com.xrtk.core/Services/MixedRealityToolkit.cs:839)
XRTK.Services.MixedRealityToolkit:CreateAndRegisterService(IMixedRealityServiceConfiguration`1) (at Packages/com.xrtk.core/Services/MixedRealityToolkit.cs:757)
XRTK.Services.MixedRealityToolkit:RegisterServices(MixedRealityServiceConfiguration`1[]) (at Packages/com.xrtk.core/Services/MixedRealityToolkit.cs:717)
XRTK.Services.MixedRealityToolkit:InitializeServiceLocator() (at Packages/com.xrtk.core/Services/MixedRealityToolkit.cs:484)
XRTK.Services.MixedRealityToolkit:ResetConfiguration(MixedRealityToolkitConfigurationProfile) (at Packages/com.xrtk.core/Services/MixedRealityToolkit.cs:121)
XRTK.Inspectors.Profiles.MixedRealityServiceProfileInspector:DrawConfigurationOptionElement(Rect, Int32, Boolean, Boolean) (at Packages/com.xrtk.core/Inspectors/Profiles/MixedRealityServiceProviderProfileInspector.cs:113)
UnityEditorInternal.ReorderableList:DoListElements(Rect)
UnityEditorInternal.ReorderableList:DoLayoutList()
XRTK.Inspectors.Profiles.MixedRealityServiceProfileInspector:OnInspectorGUI() (at Packages/com.xrtk.core/Inspectors/Profiles/MixedRealityServiceProviderProfileInspector.cs:64)
CXR.PortalWars.Bootstrapping.Editor.BootstrappingSystemProfileInspector:OnInspectorGUI() (at Assets/CXR.PortalWars/Bootstrapping/Scripts/Editor/BootstrappingSystemProfileInspector.cs:38)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
```

which is weird, because the interface does derive from IMixedRealityDataProvider.

Concrete type in this case is
public class Bootstrapper : BaseDataProvider, IBootstrappingSystemService
with
public interface IBootstrappingSystemService : IMixedRealityDataProvider

Let me look into this more. Also it seems that the commit history of this branch is out of sync with the development branch


--info-function with time measurement

Hi there,
first of all, thx for ur work.
Thru you i started with python. And now i try to learn more about DL and object detection.
Now i wanna test out how much slower the object detection on my GPU is in comparision to the GPU from Google Colab.
In your Colab tutorials u implemented a time measurment for the object detection.
Can u give me a advice how i can implement such a thin in this --info function?

For sure, it is actually fairly straightforward. You will just want to use the time.time() function which grabs the current time at any given moment.
start = time.time() # add this line wherever you want to start the timer
end = time.time() # add this wherever you want to stop the timer

total_time = end - start # will give you time taken in milliseconds I believe

Just make sure to add the start and end lines in the proper places within detect.py (this is implemented in detect_video.py so check it out if you get stuck).
Hope this helps and good luck!

Thank you very much, it worked nicely.
I measure the time im from line 74 to 95 within detect.py.
The picture detection speed matches the video detection speed, so all good.
My GPU is roughly halve as fast as the Colab GPU.
But what i dont understand is, why is the first frame/picture detection so much slower then all the frames/pictures afterwards?
The first picture/frame takes couple of seconds to get detected, after that the speed is around 60ms.
I guess its because of the data transition from my harddrive to my GPU?


changed Message to message

Hello Kind Sir,
Please accept this pull request. This was giving me OCD.
Thanks

Haha, I apologize for having triggered your OCD with this. Thank you for bringing this to my attention and making relevant changes.


Changing text colour of the text by the arrows

This is not a bug but a feature request (or question if this is possible).
Is it possible to change text colour on the numbers by the arrows? On certain themes the small numbers disappears into the background.
Very, very nice card, love it!

You could use card-mod for that. It's explained here: https://github.com/gurbyz/power-wheel-card#more-styling The class for the number below the arrows is .arrow-value.


Issue found on page 'PIVOT Statement'

Near the top of the page, the documentation includes the ORDER BY and LIMIT clauses in the Pivot definition. However, it is not included in the syntax diagrams. It does appear to be supported.
Page URL: https://duckdb.org/docs/sql/statements/pivot.html

Thanks! These are indeed supported (along with OFFSET) in PIVOT.


Abnormal memory consumption when used in a root workspace of VS Code

Environment data

Language Server version: 2022.9.40
OS and version: Ubuntu 20.04 5.4.0-81-generic
Python version (& distribution if applicable, e.g. Anaconda): 3.9

Repro Steps

Open parent folder containing several repositories — also known as the root workspace in VS Code.
Monitor memory consumption

Expected behavior
Manageable memory consumption when used inside the root workspace of VS Code.
Actual behavior
Whenever I am using Pylance inside the root workspace of VS Code that contains a couple repositories, my memory consumption goes through the roof. As far as I understand, this is happening due to caching of all child folders and their files, but I wanted to see if there is a way to reduce memory consumption.

Thanks for the report. We made a fix on our latest release that should address this. Could you please get the latest pre-release version (2022.10.11) and see if it still reproduces?
Please reopen if you are still seeing the issue.

Thank you very much, Judej! Will confirm on Monday


Update Anaconda.Anaconda3.installer.yaml to correct version py310_2023.03-0

After installation winget shows the current version as py310_2023.03-0, thus winget upgrade --all tries to upgrade to 2023.03

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?
[x] This PR only modifies one (1) manifest
[x] Have you validated your manifest locally with winget validate --manifest <path>?

[x] Does your manifest conform to the 1.4 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

I will update the PR and resubmit the changes


Release packages for base goerli

Description

Release packages for base goerli
Type of change

[ ] Docs change / dependency upgrade
[x] Configuration / tooling changes
[ ] Refactoring
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Requires changes in customer code

High-level change(s) description - from the user's perspective

Related Issue(s)
Fixes
Related pull request(s)

Closing this as not needed.


Masking_merkle_tree.to_list is incorrect

It shouldn't just concatenate the base and mask lists, it should instead merge them. Instead, take everything from the parent, and then replace the entries with matching ones from the mask if present.

to_list is currently unused, but it's potentially useful for printf debugging.

Maybe in to_list, or another function, like dump: show contents of mask in sublist, then contents of its parent, and so on. Each sublist could contain its type, like "Mask" or "Database", and its Uuid.

Furrther, fold and fold_until should work with such merged lists.


@Only annotation

Feature request. @Only annotation would be similiar to Mocha's only method: https://mochajs.org/#exclusive-tests
Whenever a @Only annotation is found anywhere in a project, only those classes and methods that have it, will be executed.
What do you think?

Interesting, I like the idea. I'm guessing the goal is for when you work on individual test methods?
Right now, I create a testng-single.xml that contains just that test but your suggestion is much more convenient, thanks!

IntelliJ already supports this (Eclipse probably does as well), and I'm not sure where you'd need a non-interactive version of this functionality.

@cbeust Yes, that's the goal.
@rschmitt Not everyone uses IDE (right now, I mix IntelliJ with Sublime), and not every environment is interactive, like a CI server. I guess that's just a different way of doing things that can done using a separate XML config or a "maven test -Dtest=ClassName" command.

@cezarykluczynski this @Only would be kind of counterpart of @Ignore ?

@verhagen That's right, instead of removing an annoted test from the list of tests to execute, like @Ignore does, it would construct a list of tests to execute from only those tests that are annotated with @Only.

It would be interesting to be able to configure the behavior about dependsOnX dependencies: it seems that some persons want sometimes to not follow them.
See: https://youtrack.jetbrains.com/issue/IDEA-141621

That's a strange scenario: if your test can run fine without its dependencies, why does it have any in the first place?
For what it's worth, testng-failed.xml solves this problem by calculating the transitive closure of the dependencies and including them in the xml file. And as far as I remember, the Eclipse plug-in uses that same logic to do the same thing (so you can run individual methods, even if they have dependencies).
This seems like a more useful approach than just removing these dependencies.

@cbeust You should say it on https://youtrack.jetbrains.com/issue/IDEA-141073 . Maybe, it will help to fix #881 quicker

Done.

:+1:


issue 86 - Shield added

What does this PR do?
Shield power up is now added which will provide protection from aliens for 4 secs.
Fixes #86

Type of change

New feature (non-breaking change which adds functionality)

How should this be tested?

[x] Catch a shield power-up.

Mandatory Tasks

[x] Make sure you have self-reviewed the code. A decent size PR without self-review might be rejected.

@YadavAkhileshh, could you kindly add the hacktoberfest-accepted and appropriate level labels to my PR? Thank you!

@YadavAkhileshh  please add gssoc-ext , hacktoberfest-accepted and appropriate level label.


Add a dsn to hash parser to the ar_dba extension

There is not currently a good way to get a connection params hash from a postgres dsn string without creating a new connection using those values.
This provides us with one initially to be used when reading connection strings from the database while dealing with pglogical.
@Fryguy

Replaces #7249

:+1:

Looks good. Impressive solution :+1:


Pipework fails with hostinterface eth0:3

When connecting a local physical interface to a container named eth0:3 or eth0:2 ... pipework fails:
I do not know how to setup interface eth0:3.
The command looks as follows:
pipework eth0:3 $(docker run -d --name somename -p 195.154.x.x:443:443 -p 195.154.57.x:x:80 mellnik/image) 195.154.x.x/24
Using eth0 with another IP works. I am on CentOS 7.

Yes, you can't use eth0:x because it's an IP alias. Just use eth0 and it will behave exactly the same way!


Active network management (draft)

Types of changes

[ ] Docs change / refactoring / dependency upgrade
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Motivation and Context / Related issue
Active network management is one of the key challenges for the 21st century.
How Has This Been Tested (if it applies)
Not tested at all, this might be bs. Will test properly later.
Checklist

[x] The documentation is up-to-date with the changes I made.
[x] I have read the CONTRIBUTING document and completed the CLA (see CLA).
[x] All tests passed, and additional code has been covered with new tests.

Hum actually it should be possible to do this in a generic  manner.

Closed, branch will be deleted unless there is a strong argument against pr/1081.


wav2vec2.0 unsupervised finetuning.

❓ Questions and Help
What is your question?
Hey there, I have a question regarding the unsupervised fine-tuning of the wav2vec2.0 models. As expected, the results that the English-pretrained model achieves in different languages are not that groundbreaking out-of-the-box, at least for the small model pretrained on Libri.
In the readme, you provide an example of how to either train a new model completely from scratch or finetune a pretrained model with CTC on labeled data. While the latter works really well and achieves satisfying results on English datasets such as Common Voice or Voxforge with a fraction of labeled data that would be normally required, the result I got on a different language (Polish) with completely different phonetics are not that good. So naturally, the first thing I want to try is to adapt the domain of the unsupervised model to "get used to" the sound of Polish speech. While I could try to train such a model from scratch, in the paper you mention that it took 1.6 days on 64 V100 GPUS, so I imagine that in order to get the satisfying quality I would need to train for at least a week on 4 RTX 2080Ti I have available and that's something I cannot really afford at the moment. That's why I wanted to try to finetune the existing model on the target domain, hoping that this way I could improve results on polish data with a fraction of training time.
Soooo my questions are:

Do you think it is a good idea to finetune the unsupervised model in an unsupervised way on a new domain or would you rather train it completely from scratch?
Are there any caveats to watch out for? Like can LR scheduler mess up the training or something? I have limited experience training models on this scale.

What have you tried?
I have already launched the procedure by renaming the wav2vec_small to checkpoint_last.pt and starting from that directory as the --save-dir. However, I had to pass the --reset-optimizer flag, because apparently, the Criterions did not match (the code u have in readme uses --criterion wav2vec, however, the loaded checkpoint had BinaryCrossEntropyCriterion for some reason.
What's your environment?

fairseq Version: commit 83c39c41388f2e7ba37647d2e8a0cbc97f6f8032

i think its worth a try but this is an open research question. you can do this with --restore-file pointing to pretrained model. dont forget various --reset-* flags (not just optimizer, you want to reset lr scheduler and so on as well).

you probably want to define some training budget, then set --max-update to the number of updates you will use. the learning rate will decay from initial value to 0 over the course of training (unless you change the lr scheduler). you probably want to use a lower starting lr, but i cant say what is a good value - you have to experiment

make sure your data is 16khz single channel
some of those models were trained on some old branch of the code, which is why criterions names are different

Thanks @alexeib, I will apply your suggestions and let you know how the training went :D BTW, obviously for any kind of fine-tuning with the model you provide I need to keep data in the 16kHz single-channel format. However, if I wanted to train a new model for 8k data, better suited for telephone speech, I guess I should adjust the parameters of the backend convolutional featurizer network so that parameters such as effective window length and resolution roughly match those of the 16kHz model?

valid_wer is wer decoded with an lm, if you provide one via --wer-args. otherwise it is the same as valid_raw_wer which is so called "viterbi" wer (but really its just argmax since there is no decoding)

valid_wer is wer decoded with an lm, if you provide one via --wer-args. otherwise it is the same as valid_raw_wer which is so called "viterbi" wer (but really its just argmax since there is no decoding)

Sorry if my question is out of place, but shouldn't wer be less than or equal to 100? How are values above 100 possible?

wer is edit distance normalized by target length. if your target length is 1 but you predicted 1000 incorrect words, then your wer will be 1000

i think its worth a try but this is an open research question. you can do this with --restore-file pointing to pretrained model. dont forget various --reset-* flags (not just optimizer, you want to reset lr scheduler and so on as well).
you probably want to define some training budget, then set --max-update to the number of updates you will use. the learning rate will decay from initial value to 0 over the course of training (unless you change the lr scheduler). you probably want to use a lower starting lr, but i cant say what is a good value - you have to experiment

make sure your data is 16khz single channel
some of those models were trained on some old branch of the code, which is why criterions names are different

You guys actually have a --finetune-from-model /path/to/model/pt flag that resets all the relevant stuff when specified!
Sorry for spamming you here, but you may be a better source of information than going through the code and configs and looking for a bug. I ran the fine-tuning with roughly the parameters specified in the readme, I just changed the :
#!/bin/bash

data_dir=$1
base_model=$2

python train.py --distributed-world-size 2 "${data_dir}" \
--save-dir "${base_model}" --fp16 --num-workers 6 --task audio_pretraining --criterion wav2vec --arch wav2vec2 \
--log-keys '["prob_perplexity","code_perplexity","temp"]' --quantize-targets --extractor-mode default \
--conv-feature-layers '[(512, 10, 5)] + [(512, 3, 2)] * 4 + [(512,2,2)] * 2' --final-dim 256 --latent-vars 320 \
--latent-groups 2 --latent-temp '(2,0.5,0.999995)' --infonce --optimizer adam \
--adam-betas '(0.9,0.98)' --adam-eps 1e-06 --lr-scheduler polynomial_decay --total-num-update 100000 \
--lr 0.0005 --warmup-updates 8000 --mask-length 10 --mask-prob 0.65 --mask-selection static --mask-other 0 \
--encoder-layerdrop 0.05 --dropout-input 0.1 --dropout-features 0.1 --feature-grad-mult 0.1 \
--loss-weights '[0.1, 10]' --conv-pos 128 --conv-pos-groups 16 --num-negatives 100 --cross-sample-negatives 0 \
--max-sample-size 250000 --min-sample-size 32000 --dropout 0.1 --attention-dropout 0.1 --weight-decay 0.01 \
--max-tokens 640000 --max-update 100000 --skip-invalid-size-inputs-valid-test --ddp-backend no_c10d --update-freq 32 --reset-optimizer \

Let's call it the iteration_1 model. I let it run for around 50k updates and terminated to run the same training with --finetune-from-model /path/to/model/pt.
The iteration_1 model reached the following metrics (not sure how good/bad it is), the accuracy improved from an initial 42% to around 52% on the validation set, so I suppose it learned somehing:
020-11-17 16:58:58 | INFO | valid | epoch 641 | valid on 'valid' subset | loss 2.711 | ntokens 1484.41 | nsentences 12.2085 | prob_perplexity 351.996 | code_perplexity 302.738 | temp 1.475 | loss_0 1.31797 | loss_1 0.0323925 | loss_2 0.00514853 | accuracy 0.52731 |
wps 18284.5 | wpb 1484.4 | bsz 12.2 | num_updates 60835 | best_loss 2.711
2020-11-17 16:58:58 | INFO | fairseq_cli.train | begin save checkpoint
2020-11-17 16:59:07 | INFO | fairseq.checkpoint_utils | saved checkpoint models/201112_base_960_finetune_unsupervised_polish_16k/checkpoint641.pt (epoch 641 @ 60835 updates, score 2.711) (writing took 9.34416126087308 seconds)

I then tried to run the ctc fine-tuning with the iteration_1 model. There was, however, a problem, where the checkpoint from training did not contain the args and broke (the second time I ran the same train script with the same model it worked for some reason, perhaps some defaults were set and saved?). I ran the ctc training and it looks like the iteration_1 model works better in terms of raw, argmax/viterbi loss than the raw english model without any additional unsupervised finetuning, which is promising. However, for some reason, the model stopped working with the arpa language model. Looking at the transcription it seems that when lm is used it inserts a lot of random characters, as seen below.
target:['dwieście', 'czterdzieści', 'pięć']
pred_raw:['dwieście', 'czterdzieści', 'pięć']
pred_decode:['dwieście', 'czterdzieści', 'i', 'pięć', 'w', 'w', 'w', 'w', 'w', 'w']

Have you ever encountered something like that? I didn't have any problems working with lm decoding when I ctc finetuned the wav2vec_small model you provide.

are you using your own language model on your target language?
you might have to retune the language model weights now that you've updated the model (i.e. --lm-weight and --word-score). the 2nd one in particular is word insertion penalty that may help you get better results

Yup, I am using my own ARPA model for Polish. I will try to debug the issue, for started tweaking the decoding hyerparams does not seem to improve the situation. Maybe I will try checking out to master and run the unsupervised fine-tuning from there, maybe something got fixed in the meantime.
I can say, however, that the unsupervised fine-tuning on domain data seems to work quite well, as using just 20% of available data (around 100 hours) gives better CTC output than when using 100% of data and wav2vec_small model that has been unsupervised trained on just libri. I just need to fix the issue with LMs.

@alexeib, sorry for relying on you so much :< If you may, I would like to know semantically what is the difference between <s> tag and <|> tag in emissions? When dumping raw emissions from the model, it seems like the old model, ie. ctc finetuned wav2vec_small from readme is more likely to output sequences with <s> between relevant symbols and at the end of utterance there would be like two | symbols, while the iteration 1 ctc finetuned model outputs | much more often.
so the emissions for the old model are like
dict apply ['<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', 's', 'z', 'z', 'e', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', 'ś', 'ś', '<s>', '<s>', '<s>', '<s>', 'ć', 'ć', '<s>', '|', '|', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>']
[ 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0
  0  0  0  0  0  0  0  0 10  8  8  5  0  0  0  0  0  0  0  0  0  0  0 27
 27  0  0  0  0 25 25  0  4  4  0  0  0  0  0  0  0  0  0  0  0  0  0  0
  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0
  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0]

and the decoded transcription and reference word is sześć (six)
The new model, however, for the same wave would produce the following output:
dict apply ['<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', 's', 'z', '<s>', 'e', '<s>', 'ś', 'ś', 'ś', 'ć', 'ć', '|', '|', '|', '|', '|', '|', '|', '|', '|', '|', '|', '|', '|', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>', '<s>']
[ 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0
  0  0  0  0  0  0  0  0 10  8  0  5  0 27 27 27 25 25  4  4  4  4  4  4
  4  4  4  4  4  4  4  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0
  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0
  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0]

and the decoded transcription is sześć t t t t z, which is retarded, because single t is not even a valid word in Polish, we have it in lm lexicon for spelling purposes.

 is interpreted by fairseq as a "beginning of sentence" token, which i have hijacked to use a ctc blank token. so if you want to decode a ctc output then you collapse consecutive duplicates, then remove blanks.
| is a word boundary token (as defined by lexicon/training data - nothing special about it code wise except during eval)

Thanks for all your help @alexeib . Running the unsupervised fine-tuning with the --finetune-from-model flag pointing to libri-pretrained model resolved the issue with appending tokens on lm-decoding and I can report some results :> Running the unsupervised fine-tuning on 500h of polish data with 2 RTX 2080TI, 640000 tokens for 4 days (roughly 40k updates I imagine) and using that checkpoint for ctc-finetuning resulted in a considerable performance boost, and the resulting model is around 50% better relative to the base model (the one that you share, that has been unsupervised pretrained only on libri). The model is still considerably worse than the polish models I normally use, but I think it still has a lot of potential and I hope with more unsupervised pretraining I can outperform it.
It still remains an open question of whether better results are achieved if a system is trained from scratch or your libri checkpoints are finetuned on the target language audio. My suggestion is that you could try publishing a multilingual base model, Common Voice sounds like a great candidate to do that :>

We have a companion paper on multilingual embeddings: https://arxiv.org/pdf/2006.13979.pdf that you might find interesting. We are planning to release models from that paper, and possibly some improved ones trained on more data as well
cc @aconneau

@kwasnydam @alexeib Hi, thanks for your sharing. I am trying to unsupervised fine-tune wav2vec2.0 model on my own speech dataset. But the accuracy performance is really bad. I am really confused that if it is reasonable to fine-tune wav2vec2.0 model in an unsupervised way? In other words, if wav2vec2.0 and other similar pre-trained models are only should be only used as static pre-trained models, or be fine-tuned in a supervised way.  If these models can not work well when unsupervised fine-tuned on target dataset. Thanks for your help!


Wrong output value (size of payment) for one inscription

Wonky-ord gives the output value, ie the size of the payment, for each inscription. But in at least one case it is totally wrong, resulting in an inscription offset beyond the end of the utxo, appearing to result in inconsistent drc-20 index results. (Compare https://drc-20.org/wallet/balances/DMYwWvrdAi7gjM1epMCcoqGde7wrwRp1EM and https://ordifind.com/balance/DMYwWvrdAi7gjM1epMCcoqGde7wrwRp1EM).
https://wonky-ord.dogeord.io/shibescription/211f95ca4a769e5dc51bdc105ee66ef450a2d917f0c5570843bd06ad8911a847i0 says
output value<PHONE_NUMBER>393  [1,001,990,924,393] $550 [too big: correct amount * 9219 + 23909393] but
https://live.blockcypher.com/doge/tx/211f95ca4a769e5dc51bdc105ee66ef450a2d917f0c5570843bd06ad8911a847/
says total output ~108,700,000  108685000
https://blockchair.com/dogecoin/transaction/211f95ca4a769e5dc51bdc105ee66ef450a2d917f0c5570843bd06ad8911a847
also says total output 108685000.
I set up a clean install of the latest very doge labs wonky-ord (Jun 15 b3a410d) and built the index from my local dogecoin full node (which is not the one used by dogeord.io), and got the same error. So there's clearly a bug with very doge labs wonky-ord.
local wonky-ord:
http://<IP_ADDRESS>:port_number/shibescription/211f95ca4a769e5dc51bdc105ee66ef450a2d917f0c5570843bd06ad8911a847i0
id
211f95ca4a769e5dc51bdc105ee66ef450a2d917f0c5570843bd06ad8911a847i0
output value
1001990924393

Not a bug. 'output value' refers to the size of the output where the inscription is now, and is correct.

Not a bug. 'output value' refers to the size of the output where the inscription is now, and is correct.


unsupported_grant_type: Invalid grant_type:

Hi!
Since this morning I'm facing an issue with the storage SDK.
Every functions call return this error:
unsupported_grant_type: Invalid grant_type:
This error is thrown when trying to get an access token from my service account credentials:
 "method": "POST",
 "url": "https://www.googleapis.com/oauth2/v4/token",
 "data": {
    "grant_type": "urn:ietf:params:oauth:grant-type:jwt-bearer",
    "assertion": "{JWT token here}"
  },
....

The SDK is initialized like this:
const storage = new Storage({
    projectId   : Config.google.projectId, // String
    credentials : Config.google.serviceAccount // Object: service account JSON
});

Error trace:

 "trace": "Error: unsupported_grant_type: Invalid grant_type:
    at Gaxios._request (/Users/romain/Workspaces/web-light-cloud-core/LCC/node_modules/gaxios/build/src/gaxios.js:85:23)
   at processTicksAndRejections (internal/process/task_queues.js:94:5)
   at async GoogleToken.requestToken (/Users/romain/Workspaces/web-light-cloud-core/LCC/node_modules/gtoken/build/src/index.js:202:23)
   at async JWT.refreshTokenNoCache (/Users/romain/Workspaces/web-light-cloud-core/LCC/node_modules/google-auth-library/build/src/auth/jwtclient.js:156:23)
    at async JWT.getRequestMetadataAsync (/Users/romain/Workspaces/web-light-cloud-core/LCC/node_modules/google-auth-library/build/src/auth/oauth2client.js:266:17)
    at async JWT.getRequestHeaders (/Users/romain/Workspaces/web-light-cloud-core/LCC/node_modules/google-auth-library/build/src/auth/oauth2client.js:245:26)
   at async GoogleAuth.authorizeRequest (/Users/romain/Workspaces/web-light-cloud-core/LCC/node_modules/google-auth-library/build/src/auth/googleauth.js:544:25)",
"message": "unsupported_grant_type: Invalid grant_type: ",

Environment details

OS: macOs Catalina & Linux Buster
Node.js version: v12.14.1
npm version: 6.13.7
@google-cloud/storage version: 4.6.0

Thanks!

@romainmnr could you please rm -rf package-lock.json, rm -rf node_modules, npm i.
There was a bad release of a dependency gaxios which went out for about 2 hours yesterday, the problem should be addressed now.

Thanks for your reply.
However I still have the issue...
here my new package-lock.json file:
    "@google-cloud/storage": {
      "version": "4.6.0",
      "resolved"<EMAIL_ADDRESS>      "integrity": "sha512-ubhbLAnj+hrp32x5gI+JajKU0kvhApA6PsLOLkuOj4Cz4b6MNsyhSWZ5rq2W7TylqfNNW8M9QxPCKWg3Sb0IbA==",
      "requires": {
        "@google-cloud/common": "^2.1.1",
        "@google-cloud/paginator": "^2.0.0",
        "@google-cloud/promisify": "^1.0.0",
        "arrify": "^2.0.0",
        "compressible": "^2.0.12",
        "concat-stream": "^2.0.0",
        "date-and-time": "^0.12.0",
        "duplexify": "^3.5.0",
        "extend": "^3.0.2",
        "gaxios": "^2.0.1",
        "gcs-resumable-upload": "^2.2.4",
        "hash-stream-validation": "^0.2.2",
        "mime": "^2.2.0",
        "mime-types": "^2.0.8",
        "onetime": "^5.1.0",
        "p-limit": "^2.2.0",
        "pumpify": "^2.0.0",
        "readable-stream": "^3.4.0",
        "snakeize": "^0.1.0",
        "stream-events": "^1.0.1",
        "through2": "^3.0.0",
        "xdg-basedir": "^4.0.0"
      }
    },

@romainmnr that is a fairly old version of the gaxios dependency, which was what had the issue, which makes me think that perhaps the dependency is still broken, but in one of your sub-dependencies.
Try:
npm ls | grep gaxios

The bad version is 2.3.3.
A newer version of the<EMAIL_ADDRESS>was released 30 minutes ago, so if you make sure in your project you run:
rm package-lock.json
rm -rf node_modules
npm i

One thing I notice from your path is you're using a Workspaces folder, is there a chance that an additional step is required to update the dependency if you're in a yarn workspace environment?
You can check the version in your workspace by running:
cat /Users/romain/Workspaces/web-light-cloud-core/LCC/node_modules/gaxios/package.json | grep version.

@romainmnr just checking in that, hopefully, the above steps helped unblock you?

@bcoe Had this same issue. Your steps worked for me (although we're using Yarn for this project, so I adjusted your instructions accordingly)

@bcoe yes, gaxios was used by another package!
Everything work now!
Thank you :)

@romainmnr 👌 awesome, I'm glad you're unblocked.


IE support?

Is this supposed to work in IE11?

new.css wasn’t designed to have IE support, and it’s not likely it will be added in the future. If there’s enough interest, it would be possible to make a fork with IE support, but it won’t be added to master.


compilation failed after commit e9050cc

@vlm Compilation using cygwin failed after today's commits.
CC       asn1print.lo
CCLD     libasn1print.la
libtool:   error: object name conflicts in archive: libasn1print/.libs/libasn1print.lax/libasn1common.a  and libasn1common/.libs/libasn1common.a
Tried with a clean project.

Would you please try again and attempt to fix if you can. Please be sure to use a fresh checkout of asn1c to resolve potential issues with existing filesystem junk.

This is exactly what I did before submit the ussue: fresh checkout and execute all build steps.
Will try to fix it asap.

Sorry, it was a strange cygwin misconfiguration. Closed now


How to edit/read docx's some properties such as 'Company','Manager'?

How to edit/read docx's properties such as 'Company','Manager'?
it seems that CoreProperties object don't have these attributes.

sound like custom properties

sound like custom properties

Hi,Steve,Thank you for reply.
these properties are exist in my offices documents(office 2010) originally. I even don't kown how to add these properties. - -!

Any solution to access custom properties as Company, manager ?? I use:
docu = Document("document.docx")
print (docu.Custom_properties["edocs.Company"])
And it doesn´t respond


[BUG]Card review update failed

When I open the review of a certain label group in the card group review, it shows that there are no cards that have not been reviewed, but when I close the window and reopen it, it shows that the card group has not been reviewed, I don't know what the reason is, does anyone help me to see what the reason is.

If you open the card group for review through the above options, it can be updated normally.

Thanks for the screenshot.
I've attached the files that contain all the language elements used by the plugin.
locale.zip
Could you please identify:

the relevant file for your language and
the string that relates to the item you marked as "Success"
the string that relates to the item you marked as "Fail"

E.g. highlight: