verifier_messaging.adoc contains broken hard link to other docs

The file verifier_messaging.adoc contains a broken hard link to other parts of the documentation:
For more information, see https://cloud.spring.io/spring-cloud-contract/spring-cloud-contract.html/#stub-runner-for-messaging[the Stub Runner Messaging sections].

Ooops. Thanks for the pointer! Care for a PR? :)

Sorry, have no idea how to fix this properly (depends on how you generates the resulting single or multi page documents). Otherwise I would be happy to help.


Update GPCP dataset name in recipe_quantilebias to align with ESGF

Description

Following discussion here https://github.com/ESMValGroup/ESMValTool/issues/2974
GPCP-SG v2.3 ['pr'] >> GPCP-V2.3

Before you get started

[x] ☝ Create an issue to discuss what you are going to do

Checklist
It is the responsibility of the author to make sure the pull request is ready to review. The icons indicate whether the item will be subject to the 🛠 Technical or 🧪 Scientific review.

[ ] 🛠 This pull request has a descriptive title
[x] 🛠 Code is written according to the code quality guidelines
[x] 🛠 Documentation is available
[ ] 🛠 Tests run successfully
[x] 🛠 The list of authors is up to date
[ ] 🛠 Any changed dependencies have been added or removed correctly
[ ] 🛠 All checks below this pull request were successful

New or updated recipe/diagnostic

[ ] 🧪 Recipe runs successfully
[ ] 🧪 Recipe is well documented
[ ] 🧪 Figure(s) and data look as expected from literature
[ ] 🛠 Provenance information has been added

New or updated data reformatting script

[ ] 🛠 Documentation is available
[ ] 🛠 The dataset has been added to the CMOR check recipe
[ ] 🧪 Numbers and units of the data look physically meaningful

To help with the number of pull requests:

🙏 We kindly ask you to review two other open pull requests in this repository

Thanks. I did that with a script which explains why we have the same issues in multiple PRs.


Feature Request: Full Bag

Hi there,
I think it will be great to stop spinning of pokestops when your bag is full and continue later. is there any chance to get it?
Thanks

#76

This is being closed for tracking in issue #142


Merge key names in resource-level "links"

In a resource level "links" object, currently the related model id(s), if included, are at the "id" key if the relationship is a to-one, and the "ids" key if it's a to-many relationship. @wvteijlingen have both talked about merging those into a single key name to simplify things a bit. (Clients would still be able to look at the data type on the key to determine whether the relationship was a to-one or to-many.)
In #276, he proposed calling that key "ids". I proposed calling it "refs" (as in "x references y") . @dgeb asked about using "ref". Frankly, I'm not super passionate about what the key's called, though I do think using a single key is a worthwhile simplification.

Object linkage was revisited in #341 and is described in detail in http://jsonapi.org/format/#document-structure-resource-relationships
Please open a new issue based on this definition if there are still concerns.


Error: Could not find a CardElement or CardNumberElement which which perform handleCardPayment

Dear sirs,
I've been tried this for a while now, but it doesn't seem to work.
My team and I are working on the new payment flow to meet the new standard criteria. This means we save a card, then we try to process the payment in the backend and if it fails, we run
the handleCardPayment function, like this:
...
props.stripe.handleCardPayment(props.clientSecret)
...

Unfortunately, what we get is this error:

Error: Could not find a CardElement or CardNumberElement which which perform handleCardPayment

As far as I have seen in your documentation (https://stripe.com/docs/stripe-js/reference#stripe-handle-card-payment-no-element), though, I can send the client secret only to toggle further steps.
Is there a way to fix this?
Thank you so much.

Hmm, this looks like a bug where we are requiring the second data argument. Try calling it with an empty object as a second argument:
props.stripe.handleCardPayment(props.clientSecret, {})

Also, it sounds like you are using the manual confirmation flow? If so, you should instead use stripe.handleCardAction.

Thank you so much! It seems adding an empty object does the trick! However, I endend up using stripe.handleCardAction as you suggested.
Thank you so much for the prompt response.

We're having a similar issue.
You can see the commented out code that used to work with Stripe Elements and the new code that is using the paymentIntent API.
We are getting the following error:
code: "payment_intent_incompatible_payment_method"
doc_url: "https://stripe.com/docs/error-codes/payment-intent-incompatible-payment-method"
message: "A card payment method was expected to be present, but this PaymentIntent does not have a payment method and none was provided. Try again with a payment method or card data.

When we revert back to the normal createToken flow it works and finds the element automatically.
pay = ev => {
    const { stripe, setLoading, clientSecret } = this.props
    const { nameOnCard } = this.state
    ev.preventDefault()
    setLoading(true)

    if (stripe) {
      stripe.handleCardPayment(
        clientSecret,
        {} // tried both WITH and WITHOUT this empty object
      ).then(function(result) {
        console.log(result)
        if (result.error) {
          // Display error.message in your UI.
        } else {
          // The payment has succeeded. Display a success message.
        }
      });

     // stripe.createToken({ name: nameOnCard })
     //   .then(this.takeTokenToServer)
     //   .then(this.finishUp)
     //   .catch(this.errorHandlePayFlow)
    } else {
      console.log("Stripe.js hasn't loaded yet.")
    }
  }

Hmm, @sverraest, that code looks reasonable to me. Can you share a bit more about what context this was used in? What is the relationship of this function to the React tree and the Card Element?

So we're using a custom components where we inject Stripe according to a previous guide.
What's strange is that the previous code with the createToken works perfectly in this context.
However with trying to switch to Payment Intents for the new SCA it's not working:
Imports:
import React, { Component } from 'react'
import { isEmpty } from 'lodash'
import ReactDOM from 'react-dom'
import {
  injectStripe,
  Elements,
  CardNumberElement,
  CardExpiryElement,
  CardCVCElement,
  PostalCodeElement,
  StripeProvider
} from 'react-stripe-elements'

We define the form class in _CardPaymentForm (lowest level) and _CardPaymentForm has the pay function as described in my previous post and a render method as follows:
render () {
    const { errors } = this.state
    return (
      <PaymentFormComponent>
          <CardNumberContainer
            className={errors.cardNumber && 'hasError'}
            >
            <CardNumberElement
              placeholder={constants.CARD_NUMBER_PLACEHOLDER}
              onChange={this.onFieldChange('cardNumber')}
              style={{ base: { fontSize: '15px' } }}
            />
          </CardNumberContainer>
          <Row>
            <CardExpiryContainer
              className={errors.expirationDate && 'hasError'}>
              <CardExpiryElement
                placeholder={constants.EXPIRATION_DATE_PLACEHOLDER}
                onChange={this.onFieldChange('expirationDate')}
                style={{ base: { fontSize: '15px' } }}
              />
            </CardExpiryContainer>
            <CardCVCContainer
              className={errors.CVC && 'hasError'}>
              <CardCVCElement
                placeholder={constants.CVC_PLACEHOLDER}
                onChange={this.onFieldChange('CVC')}
                onFocus={this.showTooltip}
                onBlur={this.hideTooltip}
                style={{ base: { fontSize: '15px' } }}
              />
            </CardCVCContainer>
           ...
      </PaymentFormComponent>
    )
  }

Then we inject Stripe using injectStripe from imports
const CardPaymentForm = injectStripe(_CardPaymentForm)

Then we have Stripe specific form that uses this CardPaymentForm:
In StripePaymentForm (highest element):
render () {
    return (
      <StripeProvider stripe={this.state.stripe}>
        <Elements>
          <CardPaymentForm clientSecret={this.state.clientSecret} {...this.props} />
        </Elements>
      </StripeProvider>
    )
  }

So this works perfectly already in production with the normal previous createToken flow but gives an error when switching to PaymentIntents.
The clientSecret is definitely there.
code: "payment_intent_incompatible_payment_method"
doc_url: "https://stripe.com/docs/error-codes/payment-intent-incompatible-payment-method"
message: "A card payment method was expected to be present, but this PaymentIntent does not have a payment method and none was provided. Try again with a payment method or card data.

@sverraest Are you using the latest version of the library? v4? Some PaymentIntent-related improvements were made then and I could see this error happening if you were on an earlier version.

Updating to v4 for react-stripe-elements indeed solved the issue.


Placing Market Order ?

First of all, I did not find anything to see if there is a method to place a market order. Is there a method for that ?
As a result, I tried to place an order against the order book. this means I take the lowest Ask to place a buy order. The order is not placed and nothing happens. An order is only place when the price is like really below the actual value.
Any suggestion how I can get an almost market order ?
Thanks

Serum, doesn’t support market order. It only supports limit order. You can
mimic the market order by place a limit order with ioc (immediate or
cancel) using the top of the book price. And retry if your order is not
executed until it is filled.
On Mon, 13 Sep 2021 at 21:00, jejdouay @.***> wrote:

First of all, I did not find anything to see if there is a method to place
a market order. Is there a method for that ?
As a result, I tried to place an order against the order book. this means
I take the lowest Ask to place a buy order. The order is not placed and
nothing happens. An order is only place when the price is like really below
the actual value.
Any suggestion how I can get an almost market order ?
Thanks
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/serum-community/pyserum/issues/86, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACMFDUOUWREJRXJJ4U5GJULUBXYVNANCNFSM5D5YPZQQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

--
Wang (Leonard) Ge
Imperial College London 2021
@.***
+44 -<PHONE_NUMBER>4

Thanks for the reply.
I tried the IOC but without any real success. I will change my strategy and manage the open orders.
I still have the problem to link the fills with the orders but I am sure I will find a way !
Thanks !


Elasticsearch INDEX_NAMES is depreciated on NewsSearchApi currently, might want to repreciate after the database update

https://github.com/mediacloud/story-indexer/blob/d6bed1b5e971614ed4f31253dc372914f645eafa/docker/docker-compose.yml.j2#L142
The News_Search_Api now finds exposed indices on its own, rather than piping them in like so.
Furthermore, after the database update, we'll have a new naming convention that might make the whole configuration and discovery thing- totally unnecessary, since only the one mc_search collection name will be exposed.
I don't think anything will break when we make the switch, since nothing is setting the ELASTICSEARCH_INDEX_NAME_PREFIX on the news_search_api anyway, but after the switch we might want INDEXES=mc_search and change the news_search_api to respect that setting, or just remove the INDEXES setting altogether and let every index be exposed.
As it stands in this moments it's just jetsam.

This here already solves the above


feat: Support fortimail and correct fortiweb vendor

Fortiweb "vendor" field will be corrected to fortinet
New support for fortimail
fixes #1518

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


whitespace handling in function type signature

lua-language-server allows to define the type for functions like fun(PARAM: TYPE): RETURN_TYPE
It appears that lemmy-help currently stops at the first whitespace.
In something like this:
---@alias TestRunner fun(classname: string, methodname: string):string, string[]

It only renders:
     Type: ~
         fun(classname:

Without whitespace it works:
---@alias TestRunner fun(classname:string,methodname:string):(string,string[])

Would be nice if the variant with whitespaces worked too.
Update: I just noticed https://github.com/numToStr/lemmy-help/pull/47, so this is already getting addressed?

Yup, most types will be parsed correctly after #47. Although after seeing your example I might also need to handle multiple returns 🙂


exposing zk session timeout as a config

Hey @Tushar-Naik, I've just merged a big refactor into master, it includes a session length override!
It also includes support for batching operations into transactions, and ignoring nodes older than a certain timestamp for rsync-like catch-up copies.


Provision / Fix postgres credentials requirement / Fixes #8

Motivated by https://github.com/springload/wagtailsites/pull/10
We can make another provision script, that will only confgure postgresql. When Torchbox guys fix the issue, that script can be deleted without any concerns about original provision.sh.

Cheers for that @dnsl48


add loginMethod to UserClass

bumps minor version.
defaults to {loginMethod: "unkown"}
Tests
Unit tests pass

As discussed offline, we don't need this for now, and it is not supported anyways -- going to draft this for now!


[LLC] Rename requestContent to just content

The shorter name is nicer. We also considered body but like
content more for cases where an API accepts multiple content
types. In this cases we will create a parameter named contentType
and so using content makes more sense when paired with that
parameter.

@chamons @KrzysztofCwalina Let me know what you think about the new documentation text for the parameter.


Mock up and minor filter update

Problems

Complexity of the  API;

Complexity of the filterByType, filterByID.

Fix

Reduced from multiple arrays to one array, which each index (object) now have a type variable (used for filtering);

Changed both functions data type of return, which contains the result array (used to be ID's).

I'm new to PR's and branches, so i did created a wrong branch and deleted it, please refer to pepeyen/development


Set the get-promisable-result package as a peer dependency

This pull request sets the get-promisable-result package as a peer dependency and sets a separated bundle for web.

coverage: 100.0%. remained the same
when pulling b1697d015a2c1c161c5ebdcf282f54282ec37540 on set_get_promisable_result_as_peer_depependency
into 62c65df2342d96619ed6b967b05ccc2d585c77fa on master.


Multicluster config generates error mesage noise in istiod log

Bug Description
With the latest changes to support istiodless remotes, istiod is generating undesirable noise in the error logs:
2022-05-11T21:35:14.298487Z	error	klog	error retrieving resource lock istio-system/istio-namespace-controller-election: configmaps "istio-namespace-controller-election" is forbidden: User "system:serviceaccount:istio-system:istio-reader-service-account" cannot get resource "configmaps" in API group "" in the namespace "istio-system"
2022-05-11T21:35:21.976070Z	error	klog	error retrieving resource lock istio-system/istio-namespace-controller-election: configmaps "istio-namespace-controller-election" is forbidden: User "system:serviceaccount:istio-system:istio-reader-service-account" cannot get resource "configmaps" in API group "" in the namespace "istio-system"

The errors are because of this change.
We should figure out a more graceful way to handle this, without generating error messages in the log.
Version
master

Additional Information
No response

This should be fixed by #39406, but should probably add an integration test that looks at the logs from all of the primary clusters in the topology to make sure there's no resource lock error message anymore. The test would be marked with ClusterRequireMins(2) and SkipExternalControlPlaneTopology(). I guess it also would be good to confirm that the primary cluster that is leading a remote cluster is the one specified in the topology file.


Add docs

The docs can be deployed to GH Pages by running mkdocs gh-deploy. A workflow to automatically regen and deploy docs can be added, but I have not done it yet on this PR (feel free to ask tho).

Ah, right. What do I do with the old docs that are bunched up in README? Do I try to slim it down?

Now that I think about it, let's not merge this yet. I'd like to actually document the system calls, too.

@atirut-w Thanks for your help on that! Feel free to poke me for any further detail about the implementation or when this draft becomes ready to review
For the syscalls, the README explains them from the user application perspective, not driver/kernel perspective, if you think it would make sense to have another sections/chapter/part for that part, or even a subsection in driver part, feel free to add it

For the syscalls, the README explains them from the user application perspective, not driver/kernel perspective, if you think it would make sense to have another sections/chapter/part for that part, or even a subsection in driver part, feel free to add it

It's just that the readme only tell you the name, but doesn't go into enough details for some of the more specific syscalls like mount, directory operations, time format, etc. Now that there's a dedicated place for docs, I feel like it would be a disservice not to elaborate on them.

@Zeal8bit I'd like a review of the convention I used to document the system calls with (docs/system-calls.md). If they're okay, I can go ahead and do the rest.

New status: proofreading and feedback pending :)

@atirut-w Thanks a lot for your contribution! I love the design of the doc, I think you can integrate an automated task to deploy the pages.
I only left a single comment for the separating the syscalls but nothing very important

I think you can integrate an automated task to deploy the pages.

Indeed. I even made my own GH Action for it, but I'm not sure if it would be scope creep for this PR or if you would want to host it somewhere else other than GH Pages.

Thanks for your contribution, merging it!


make mass storage USB code easy to turn off and turn it off for now

To turn it back on enable the "stdio_msc_usb" and "tinyusb_device" libraries and comment out "pico_enable_stdio_usb(${PROJECT_NAME} 1)".

Works again with Windows.


Units of measurement classes

New system for units of length and possibly other quantities.

I'm closing this as its a matter of on going development which will co-evolve with other tasks, so I don't think a separate issue is still helpful.


Add support for adding custom fonts to SunEditor component

Describe the Custom Component
SunEditor component already exists as 'rx.Editor', however it lacks configuration of additional fonts in the font dropdown. SunEditor supports configuration of additional fonts via font option.

What is the purpose of the custom component?
Provide ability to use additional fonts from different font registeries, like google fonts etc.

What is the expected behavior of the custom component?
rx.Editor will be unchanged. New option font will be available in rx.EditorOptions.

What are the use cases for the custom component?
Richer customizations for text composed through rx.Editor component.

Specifics (please complete the following information):

Do you have a specific react package in mind? (Optional):

Additional context

Not needed, hence closed.


Arrange the names in the CONTRIBUTORS.md in alphabetical order

Is your feature request related to a problem? Please describe.
The names of the CONTRIBUTORS.md file is not arranged in alphabetical order
Describe the solution you'd like

Arrange the names in alphabetical order
Have a heading (H3) of every alphabet and add all the names starting with that alphabet under that heading
This will help others in finding the names better and also make the file more organized

Can someone confirm if this can be done? If yes, I would like to work on it.

Hi @tinniaru3005, this is not required as the community is constantly growing. Hence it would not be practical if a sorted CONTRUBITORS.md was created and newer members might have difficulty adding their names based on their sorted order.
An easier solution would be to just add their names in CONTRIBUTORS.md in numerical order/order of joining instead.


docs: add tools doc

Codecov Report

Merging #175 (2ac344d) into master (858ab9e) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #175   +/-   ##
=======================================
  Coverage   85.90%   85.90%
=======================================
  Files          11       11
  Lines         972      972
=======================================
  Hits          835      835
  Misses         77       77
  Partials       60       60

Flag
Coverage Δ

unittests
85.90% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Continue to review full report at Codecov.

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

/assign @Mini256

/assign @Mini256

/lgtm

/merge


Added markGenerated prop for (conditional) @Generated annotation

Restores the feature which added @javax.annotation.Generated annotation to generated code. In addition, the feature becomes conditional on a boolean configuration property "markGenerated" (as in JAXB. openapi ecc...), defaulted to false.
Addresses #1162 and related, without falling back to #577.

Imo, this feature is of extreme importance in a code-genereation tool like this, for the reason i mentioned in https://github.com/joelittlejohn/jsonschema2pojo/issues/835#issuecomment-785947066. Thus, i kindly ask for an asap minor including this feature, if and once it's approved and all good.

I'm actually tempted to turn this back on by default, with logic like:

add javax.annotation.Generated if it is available
if not, add javax.annotation.processing.Generated if it is available

This doesn't specifically use the target 'source compliance' version but it's a good compromise IMO. We are already moving to 1.1.0 for other reasons (and the versioning scheme in this project means that changes like this are expected).

Out of interest, are you using Java 8?

No, I'm using java 11, but Spring Boot packs jackarta.annotation-api (which contains javax.annotation.Generated) so I have no issue about that,
however, I mostly agree with resolving the type of Generated the way you exposed,,,I just wanted to address the main issue, that is the current absence of a primary feature.
I'm not sure about turning it on by default, do you mean with no prop at all or by defaulting the prop to true? For sure I wouldn't go with the first solution; the second one is pretty much just a 50/50 choice, I think everyone is good as long as the feature is present in some way...maybe it's better to stay as clean as possible with a default/minimal configuration, though? Idk.

Yeah, I think we could keep the flag and have it true by default. This means in the CLI using something like --omit-generated-annotation as the flag (the presence of the flag sets it to false).
I realise you have matched jaxb, but in this project we usually name flags like this includeXXX (these control what is added to the ouput), so I'd prefer includeGeneratedAnnotation (default true) for all the other plugins.
Also, the value of the Generated annotation should be "jsonschema2pojo". The name of the generator.

I made the changes you mentioned in your last comment

Awesome. Could you combine your commits? I'll make some further changes to detect which generated annotation is available before 1.1.0 is released.

I rebased with master and force-pushed.
When's 1.1.0 going to be released approximately?

@cyclotomic18 Soon I'd say. I expect it will be this week.

Awesome, thank you for the support!

@cyclotomic18 1.1.0 is released now 👍

Ye, already included in my project, all good to go now. Thanks!


I am unable to use "Adam" optimizer in my config

#THIS IS MY CONFIG FILE
base = '/content/mmdetection/configs/res2net/cascade_mask_rcnn_r2_101_fpn_20e_coco.py'
model = dict(
roi_head=dict(
bbox_head=[
dict(
type='Shared2FCBBoxHead',
in_channels=256,
fc_out_channels=1024,
roi_feat_size=7,
num_classes=4,
bbox_coder=dict(
type='DeltaXYWHBBoxCoder',
target_means=[0., 0., 0., 0.],
target_stds=[0.1, 0.1, 0.2, 0.2]),
reg_class_agnostic=True,
loss_cls=dict(
type='CrossEntropyLoss',
use_sigmoid=False,
loss_weight=1.0),
loss_bbox=dict(type='SmoothL1Loss', beta=1.0,
loss_weight=1.0)),
dict(
type='Shared2FCBBoxHead',
in_channels=256,
fc_out_channels=1024,
roi_feat_size=7,
num_classes=4,
bbox_coder=dict(
type='DeltaXYWHBBoxCoder',
target_means=[0., 0., 0., 0.],
target_stds=[0.05, 0.05, 0.1, 0.1]),
reg_class_agnostic=True,
loss_cls=dict(
type='CrossEntropyLoss',
use_sigmoid=False,
loss_weight=1.0),
loss_bbox=dict(type='SmoothL1Loss', beta=1.0,
loss_weight=1.0)),
dict(
type='Shared2FCBBoxHead',
in_channels=256,
fc_out_channels=1024,
roi_feat_size=7,
num_classes=4,
bbox_coder=dict(
type='DeltaXYWHBBoxCoder',
target_means=[0., 0., 0., 0.],
target_stds=[0.033, 0.033, 0.067, 0.067]),
reg_class_agnostic=True,
loss_cls=dict(
type='CrossEntropyLoss',
use_sigmoid=False,
loss_weight=1.0),
loss_bbox=dict(type='SmoothL1Loss', beta=1.0, loss_weight=1.0))
],
mask_head=dict(num_classes=4)))
dataset_type = 'COCODataset'
classes = (a,b,c,d)
data = dict(samples_per_gpu=2,workers_per_gpu=2,
train=dict(
img_prefix='/content/drive/MyDrive/train2017 (1)/',
classes=classes,
ann_file='/content/instances_train2017_1.json'),
val=dict(
img_prefix='/content/drive/MyDrive/val2017 (1)/',
classes=classes,
ann_file='/content/instances_val2017_1.json'),
test=dict(
img_prefix='/content/drive/MyDrive/val2017 (1)/',
classes=classes,
ann_file='/content/instances_val2017_1.json'))
evaluation = dict(
interval=1,  # Evaluation interval
metric=['bbox', 'segm'])  # Metrics used during evaluation
optimizer = dict(
type='Adam',
lr=0.0025)
optimizer_config = dict(
grad_clip=None)
lr_config = dict(policy='poly', power=0.9, min_lr=1e-4, by_epoch=False)
runner = dict(
type='EpochBasedRunner',
max_epochs=10)
checkpoint_config = dict(
interval=10)
#Error
When i try to run this config i get an unusual error.
Error - Traceback (most recent call last):
File "/content/mmdetection/tools/train.py", line 188, in
main()
File "/content/mmdetection/tools/train.py", line 184, in main
meta=meta)
File "/content/mmdetection/mmdet/apis/train.py", line 88, in train_detector
optimizer = build_optimizer(model, cfg.optimizer)
File "/usr/local/lib/python3.7/dist-packages/mmcv/runner/optimizer/builder.py", line 43, in build_optimizer
optimizer = optim_constructor(model)
File "/usr/local/lib/python3.7/dist-packages/mmcv/runner/optimizer/default_constructor.py", line 242, in call
return build_from_cfg(optimizer_cfg, OPTIMIZERS)
File "/usr/local/lib/python3.7/dist-packages/mmcv/utils/registry.py", line 55, in build_from_cfg
raise type(e)(f'{obj_cls.name}: {e}')
TypeError: Adam: init() got an unexpected keyword argument 'momentum'
Even though i am not using momentum in my config.
Any kind of help will be appreciated,
Thanks in advance

#5875 may help u

@AronLin I read that but it did not help. My question is that when i did this
optimizer = dict(
type='Adam',
lr=0.0025)
in my config file. Do i also need to change the optimizer in base/schedules .py file ?

@AronLin I read that but it did not help. My question is that when i did this
optimizer = dict(
type='Adam',
lr=0.0025)
in my config file. Do i also need to change the optimizer in base/schedules .py file ?

The optimizer in your config will inherit the schedules .py so it has the momentum argument.
To not inherit, you need to set the _delete_=True in your config.
Such as:
optimizer = dict(
    _delete_=True,
    type='Adam',
    lr=0.0025)

Thankyou so much :)


-net does not return results

Hi !
I was testing the -net feature with a public CIDR, and I get no results at all:
$ amass -net 1xx.xx.xx.0/22
No names were discovered

Even though the following command works:
xxx.xx.xx.1xx.in-addr.arpa domain name pointer muxxxxxe.[REDACTED].com.

I think this "resolution" from a CIDR is being done by reversing the IP address and querying the PTR record, am I right?
https://github.com/caffix/amass/blob/6f601310b32e6d93d2451a02ffa0ed956ce0da4d/amass/dns.go#L621
P.S.: I'll drop you the CIDR I was testing by mail if you want me to.

I might have found the same bug you're experiencing. The fix will be in the next commit, and it would be great if you could test that it solved the problem.

I'm going to assume that the fix solved what you were experiencing. Thank you for the feedback!

It's now working for the CIDR I was testing it with.
Cheers !


Update the timing of keysafe_network.md

Project Abstract

Please replace these instructions with a brief description of your project summarising key points (1-2 paragraphs).
If your application is a follow-up to a previous grant, please mention which one in the first line of the abstract and include a link to previous pull requests if applicable.

Grant level

[ ] Level 1:  Up to $10,000, 2 approvals
[x] Level 2:  Up to $30,000, 3 approvals
[ ] Level 3:  Unlimited, 5 approvals (for >$100k: Web3 Foundation Council approval)

Application Checklist

[x] The application template has been copied and aptly renamed (project_name.md).
[x] I have read the application guidelines.
[x] A BTC, Ethereum (USDT/USDC/DAI) or Polkadot/Kusama (aUSD) address for the payment of the milestones is provided inside the application.
[x] The software delivered for this grant will be released under an open-source license specified in the application.
[x] The initial PR contains only one commit (squash and force-push if needed).
[x] The grant will only be announced once the first milestone has been accepted (see the announcement guidelines).
[x] I prefer the discussion of this application to take place in a private Element/Matrix channel. My username is: @_______:matrix.org (change the homeserver if you use a different one)

Due to technical issues with access Web2 authentications in TEE, we were delayed for a few months. Fortunately these issues have now been resolved and the first Milestone will be delivered this month.


getOrGuessChannelGroup -> list

As for the guessObjectiveDevices() method, maybe it is good to have the getOrGuessChannelGroup() method returning a list of possible match instead of just the first one that is found (it is possible to have more than one channel group match using the regex re.compile("(chan{1,2}(el)?|filt(er)?)s?", re.IGNORECASE))
The updated method can be like this:
chan_group = self.getChannelGroup()
if chan_group:
    return [chan_group]
# not set in core. Try "Channel" and other variations as fallbacks
channel_guess = []
for group in self.getAvailableConfigGroups():
    if self._channel_group_regex.match(group):
        channel_guess.append(group)
return channel_guess

@fdrgsp if you want then you can combine the commits you've got with this git command:
git rebase 7d9df92 -i

and then you squash commits by changing the pick to be s (there should be instructions that pop up)
Doing that so that you end up with two commits:

add pixelSizeConfig
make guess channel group return a list

can make it easier to review


Coverity Scan fixes

Proposing various fixes based on Coverity Scan results, see commit descriptions for more details.

@ondrejholy nice one! Thank you.


Update vrm-api.html

extend interval options by 48h, 72h and one week

Looks good to me, I'll merge and create release a new version. Thanks!


Using with Hiera

You can write in the documentation/examples how we can use this provider to describe the sysctl parameters via hiera ? Thank you.

If you mean using data bindings, then you'll need a class to do the mapping. Something like:
class profile::sysctl (
  $entries = {},
) {
  create_resources('sysctl', $entries)
}

and then store the sysctl entries in hiera as profile::sysctl::entries.

@mergar you might consider tpdownes/sysctl which was written to supports Puppet 4/5 with hiera v5.

This feature is also available in the augeasproviders module, where you can use the augeasproviders::instances::sysctl_hash hiera entry.


Update membrane_http_adaptive_streaming_plugin dependency.

As the rfc states:

For a Variant Stream with a single Media Playlist,
this (BANDWIDTH) is just the peak segment bit rate of that Media Playlist.


Carousel breaks when slidesToShow number is bigger then number of slides

Hi,
There is an issue/bug with slidesToShow option. I use Slider Syncing and for example I set slidesToShow to 9. When I have 8 slides carousel breaks:

centerMode option doesn't work
Carousel doesn't scroll
Arrows are hidden

Here is the example: http://jsfiddle.net/fmo50w7n/35/
Any ideas how to solve this?
Cheers

What I did was to add a check on the number of child elements that the slick will be added on.
If the number of (child elements - 1) is less than the currently assigned slidesToShow, then it will change the slidesToShow value to (child elements - 1).
Modified your script with a very basic check along with an alert showing the new slidesToShow value:
http://jsfiddle.net/b3w2edak/
You can add more robust checks (negative values, etc.) if you'd like.

Thanks ShrmnK, but looks like your fiddle address is wrong. I see there exactly the same example as I provided.
Cheers

That's odd, try this link: http://jsfiddle.net/b3w2edak/4/
Anyway, it was basically adding this chunk above your navigator slick:
    // Set preferred slidesToShow
    var slidesToShow = 8;
    var childElements = $('.slider-nav').children().length;
    // Check if we can fulfill the preferred slidesToShow
    if( slidesToShow > (childElements-1) ) {
        // Otherwise, make slidesToShow the number of slides - 1
        // Has to be -1 otherwise there is nothing to scroll for - all the slides would already be visible
        slidesToShow = (childElements-1);
    }

and changing the
    slidesToShow: 8,

to
    slidesToShow: slidesToShow,

I am having the same issue. rather than a workaround, does anyone know what the crux of the issue is?

I believe there is no check implemented on the value of slidesToShow in slick. It would not logically be possible to show more slides than there are elements - hence, the error.

Thanks :) Appreciate the code and help. Cheers

@shrmnk Brilliant fiddle! I'm running into the centerMode issue as referenced above by @blaiz. I'm hoping the answer is out there. Many blessings!

I use the following workaround for infinity carousels and it works perfectly: Before initiating Slick, check if the number of slide items is larger than slidesToShow. In case it is not, duplicate the children until there are more slide items than slides to show. Can easily be done with jQuery and doesn't require to change slidesToShow.

@kenwheeler  I am just wondering this issue is still there with master version.
This issue may be resolved with the below change in css.
In slick.css at line no. 30 if we add width to 100 % .
.slick-list
{
position: relative;
display: block;
overflow: hidden;
margin: 0;
padding: 0;
width: 100%; /* added this line only */
}
Above css change resolve the percentage assigned to each slide and stops the html from breaking.

I resolved this issue by overwriting the options in the JavaScript by setting it inline like this:
<div data-slick='{"slidesToShow": <?= count($deliveryPackageService->getPackages()) ?>}'>
  <?php foreach ($deliveryPackageService->getPackages() as $title => $package): ?>

Item

  <?php endforeach; ?>

Add it to css


Revert "Setup scene"

Reverts AkitaInteractive/Hachiko-Engine#59

Task linked: CU-2348e27 Implement C++ Scripting


No detection tests, test in README fails

It seems the test in the README fails on rustc 1.20.0-nightly (afe145d22 2017-07-23).
This test and any such detection test isn't in the code base, as far as I could find.
extern crate uchardet;

use uchardet::detect_encoding_name;

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn t1() {
        assert_eq!(
            "UTF-8",
            detect_encoding_name("français".as_bytes()).unwrap()
        );
    }
}

running 1 test
thread 'tests::t1' panicked at 'assertion failed: `(left == right)`
  left: `"UTF-8"`,
 right: `"IBM852"`', src/lib.rs:11:8

How to fix this case? Then, do you also wish for a test to be added? As unit or integration test? Some guidance would be welcome.

So that particular test got removed almost everywhere, but was accidentally left in the README.md. Recent updates to upstream cause the library to be less reliable for single-word strings like français, and this test now fails. I have other detection tests, if I recall correctly, for slightly longer strings that will still be detected reliably.
Honestly, it was mostly luck that such a short test ever worked in any case.

Here are three detection tests, for example:
assert_eq!("ASCII",
           detect_encoding_name("ascii".as_bytes()).unwrap());
assert_eq!("UTF-8",
           detect_encoding_name("©français".as_bytes()).unwrap());
assert_eq!("WINDOWS-1252",
           detect_encoding_name(&[0x46, 0x93, 0x72, 0x61, 0x6e, 0xe7, 0x6f,

Since we do have three detection tests in the source code, I believe the only the only thing we need to do here is remove the broken test from the README.md file.

The README.md is fixed.
By the way, nearly all the tests for this library are in the doc comments. These are checked automatically when cargo test is run.

Note, I searched for test, which seems to reveal unit tests and integration tests but not doctests. I never used the latter so far.


tzdb.sql Missing

Step 3 calls for executing tzdb.sql against my database but I cannot find it in the downloaded package.  Is the readme out of date?  My database is v 2014 hosted by a cloud provider.  I have access to the database via SSMS 2016.

Sorry for the delayed response.
The compiled tzdb.sql is included in the sqltz.zip file on the releases page.
The sources that build the file are in the /Database folder.


[feature-request] General

Hi @anmolgkv,
Thanks for this plugin this is a great idea 👏
As a user here is small suggestions which can improve the usage:

Open a modal to let users fill in fullName, categories, language (with en_US by default), shortDescription
Usually you have naming convention to respect and this would also allow users to set the other required information for the label
Insert the label in the CustomLabel file following alphabetical order instead of the end of the file
When inserting the import in the lwc .js file, parse the headers in order to insert the import after the last label import (if there is already some imports)

Thank you !

Thank you @tprouvot for using it and providing feedback.
I like the idea, will try to include them in next version


How are the change addresses verified ?

This question wasn't answered in my previous now closed issue.
https://github.com/LedgerHQ/ledger-nano-s/issues/5
What if the change address (not displayed) does not belong to the Ledger wallet ?
Like what just happened...

The change address is always verified to belong the the wallet, otherwise the transaction is aborted.

Seems this can be closed.


When tried to Make Project or Build the app got an error "Task :lib_task_api:downloadModelFile FAILED"

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: Emulator Pixel 3 API 29
TensorFlow version (use command below): 2.2.0
Python version: 3.7.3

Describe the current behavior
When try to Debug or Run, Android Studio gives the following error (Sometimes it happen when I do Make Project too):
> Task :lib_interpreter:downloadModelFile
Download https://storage.googleapis.com/download.tensorflow.org/models/tflite/text_classification/text_classification_v2.tflite

> Task :lib_interpreter:downloadModelFile FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':lib_interpreter:downloadModelFile'.
> javax.net.ssl.SSLException: Connection reset

There was no issue with the internet connection at that time. However, this work without errors previously, suddenly started getting this error.
Describe the expected behavior
It should build without errors.
Standalone code to reproduce the issue
Download text_classification example from https://github.com/tensorflow/examples/tree/master/lite/examples/text_classification/android
After downloading, try to Make Project or Run/Debug.
Other info / logs Include any logs or source code that would be helpful to
diagnose the problem. If including tracebacks, please include the full
traceback. Large logs and files should be attached.
WARNING: The specified Android SDK Build Tools version (29.0.0) is ignored, as it is below the minimum supported version (29.0.2) for Android Gradle Plugin 4.0.0.
Android SDK Build Tools 29.0.2 will be used.
To suppress this warning, remove "buildToolsVersion '29.0.0'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
WARNING: The specified Android SDK Build Tools version (29.0.0) is ignored, as it is below the minimum supported version (29.0.2) for Android Gradle Plugin 4.0.0.
Android SDK Build Tools 29.0.2 will be used.
To suppress this warning, remove "buildToolsVersion '29.0.0'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
> Task :app:preBuild UP-TO-DATE
> Task :app:preInterpreterDebugBuild UP-TO-DATE

> Task :lib_interpreter:downloadModelFile
Download https://storage.googleapis.com/download.tensorflow.org/models/tflite/text_classification/text_classification_v2.tflite

> Task :lib_interpreter:downloadModelFile FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':lib_interpreter:downloadModelFile'.
> javax.net.ssl.SSLException: Connection reset

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 22s
1 actionable task: 1 executed

This issue was solved after I moved to another network (changed internet connection). Previously this issue also poped up when I tried to update Android Studio.


[WFLY-15410] Modify SecurityAuthCommandsTestCase for WFCORE-5602

Issue: https://issues.redhat.com/browse/WFLY-15410
Just adding the two cases when WFCORE-5602 was triggered:

When the undertow security domain was a http factory and now a referenced domain was tried.
Vice-versa, when the domain used a referenced domain and an http factory is tried.

@jfdenise I'm just adding the commented modifications in the tests for WFCORE-5602. Just checking the other possibility is not allowed when the other option is currently set. Just review when you have time in the next year. :smiley:

Thanks @rmartinc


Using session reducer together with local reducer causes ie11 to freeze up

Below are the minimal code setup to reproduce the issue:
import React from 'react'
import ReactDOM from 'react-dom'
import { useSessionStorageReducer, useLocalStorageReducer } from 'react-storage-hooks'

function Root() {
  const [state1, dispatch1] = useSessionStorageReducer('session', () => {}, {})
  const [state2, dispatch2] = useLocalStorageReducer('local', () => {}, {})
  return (

hi

  )
}

ReactDOM.render(<Root />, document.getElementById('root'))

Edit:
It seems that multiple useLocalStorageReducer would also crash ie11

@mr-14 Does this happen in other browsers, or just IE 11?

Only happens in ie11

@mr-14 could you test your issue against my pull request #7? Does it resolve your issue? 🙇

@mr-14 I published version 4.0.0 on npm yesterday, which is a full rewrite of the library. I just tried the code you provided on Internet Explorer 11 and the issue doesn't seem to be happening anymore, so I'm closing this. Thanks!


Update gen-gherkin Unit Tests

Parent Feature
#1
Task Description
As an AaC Developer, I want to update the gen-gherkin command unit tests in the gen-gherkin plugin to use the new API, so that I provide an updated version of the capability.
Acceptance Criteria

[ ] gen-gherkin unit tests are updated to use the new API.

Forgot we were doing unit tests with the template tasks if there was one.


Improve DSC example usage or provide an example in a CI

Hey there,
I wanted to give this a try and I was curious to see if this can run on AppVeyor CI for free for open source projects. So I went ahead and created GabLeRoux/unity3d-encrypted-appveyor-poc, but I can't figure out how to do it from scratch. I managed to fix a few errors and managed to create a $credential variable from environment variables.
I'm stuck with unity licensing. I do have access to an actual pro license (or at least, a trial pro license I guess), but I keep getting the following error:

BatchMode: Unity has not been activated with a valid License. Could be a new activation or renewal...

as shown in this build:
https://ci.appveyor.com/project/GabLeRoux/unity3d-encrypted-appveyor-poc/builds/26168294
I tried passing the serial as a credential object in the Configuration, but I'm not sure I'm doing it correctly. It would also be awesome to use free licenses here, not sure how I can do this tho.
I think this project would get much more adoption if there was a complete example. :v: This seems nice btw.

The README  contains an example DSC configuration showing how to use the xUnityLicense DSC Resource to configure a license. That resource is a good guide on how you might use UnitySetup CmdLets directly (which it does) in order to get/set current licenses.
Can you elaborate a little more on what a 'complete' example might include?

Also, if you feel like having license specific cmdlets, as opposed to using Start-UnityEditor -Serial <serial> please post a comment on the ask for that.

Btw, I have heard of several cases where people have gotten exactly what you're trying to do to work via UnitySetup. =)

Reading through the README some more to see what examples we do I have to see one for how to manage Unity Licenses at the bottom of the Cmdlets section.

I'm closing this given the examples we have, but will reopen if you feel something more would be really helpful. =)

Thanks for your reply, in fact, I think I only need to know how to pass a license as aPSCredential but my license is a string and I don't know how to do that. Here's how I'm doing it right now:
https://github.com/GabLeRoux/unity3d-encrypted-appveyor-poc/blob/736613b/Scripts/ci-windows-install.ps1#L37
Installation seems fine, but according to appveyor log, my license is not ok:
BatchMode: Unity has not been activated with a valid License. Could be a new activation or renewal...
At C:\Program Files\WindowsPowerShell\Modules\UnitySetup\5.0.105\UnitySetup.psm1:1036 char:21

I'm not familiar with System.Management.Automation.PSCredential. I think I managed to do something ok with username and password creds:
https://github.com/GabLeRoux/unity3d-encrypted-appveyor-poc/blob/736613b/Scripts/ci-windows-install.ps1#L13
But really, I don't know what to use as a key, value pair for the serial, is this good?
https://github.com/GabLeRoux/unity3d-encrypted-appveyor-poc/blob/736613b/Scripts/ci-windows-install.ps1#L17

Can you elaborate a little more on what a 'complete' example might include?

The project I created GabLeRoux/unity3d-encrypted-appveyor-poc is kind of what I'm looking for. It's an attempt to install and run unity on appveyor to test and build a project using UWP in the cloud as it must run on a windows system.
Concerning #144 there's already a ReturnLicense available, which I feel is probably good enough, requesting a way to support free licenses is probably a different issue.

Ah, you're running into confusion around a limitation in DSC, which doesn't support the SecureString type. The xUnityLicense DSC resource thus uses a PSCredential to work around this, but it only pulls out the Password and sends it to Start-UnityEditor as the Serial. You can use anything for the user name, but we tend to use 'ignored'.
If you're not leveraging the power of DSC you might find it easier to just make CmdLet calls:
Find-UnitySetupInstaller -Version <version> -Components <components> | Install-UnitySetupInstance
Start-UnityEditor -Credential <userPSCredential> -Serial <serialSecureString>
# Do Stuff with Unity
Start-UntyEditor -ReturnLicense

Regarding free licenses, I think this should be surfaced at the CmdLet level (please open an issue if that would be nice for you), but I believe you can get this to work now by sending the -force-free flag to Unity via the AdditionalArguments param of Start-UnityEditor.
Start-UnityEditor -AdditionalArguments "-force-free"

Unity cmd line args are documented here
I'm reopening this with actions to:

Add a refined version of the above snippet to the README.
Document the issue with PSCredential/SecureString in DSC.

Also, the way you are building your secure strings and credentials looks correct at a glance. =)

Updated my comment above after I realized that we already exposed the -ForceFree functionality. =)

Awesome, thanks for the tips. I'll give this a try shortly. Using CmdLet calls seems like the way to go. I'll report here once I get things working 👍

Hey good news jwittner,
I managed to get unity to build and call my build script from an installation provided by microsoft/unitysetup.powershell :tada: I'm not done yet, but turns out it was probably working. Here's what I learned:
Appveyor parses .\build.log and actually finds an error inside and shows it in the console, but it's an expected error!

Version              Components Path
-------              ---------- ----
2018.2.21f1 Windows, Linux, UWP C:\Program Files\Unity-2018.2.21f1\
Write-UnityErrors : Errors were found in .\build.log:
BatchMode: Unity has not been activated with a valid License. Could be a new activation or renewal...
At C:\Program Files\WindowsPowerShell\Modules\UnitySetup\5.0.105\UnitySetup.psm1:1036 char:21
+                     Write-UnityErrors $LogFile
+                     ~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Write-UnityErrors

Start-UnityEditor : Unity quit with non-zero exit code: 1
At C:\projects\unity3d-encrypted-appveyor-poc\Scripts\ci-windows-build.ps1:20 char:1
+ Start-UnityEditor `
+ ~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Start-UnityEditor

So turns out Write-UnityErrors finds errors, but lower, we can actually see it works 👀

[...]
LICENSE SYSTEM [2019727 3:19:53] License activated successfully with user: *****

I guess this happens when it's the first time it runs with a serial, but in the case of a CI, it's going to happen all the time, but poweshell doesn't stop on errors anyway so I guess it's fine. Also, using -forceFree will probably prevent the 'Unity has not been activated with a valid License', will update here once I test this.
I still have a few things to fix, but I definitely managed to get things working here. I'll continue in GabLeRoux/unity3d-encrypted-appveyor-poc Thanks again for your help 🤘


Add support for python 2.x, 3.x/ more user friendly

Made more user friendly and added support for both python 2.x, 3.x versions, Before the program would cause error because of parenthesis

Hey :) Thanks for your contribution. I'll review your changes and notify you once I'm ready to merge them.
Cheers,
Benedikt

I think the changes i made work for me! So stay we'll think of making those
changes some other time! But thank you anyways for actually reviewing the
the changes i made! That was quite generous!
On Fri, Jul 21, 2017 at 1:44 PM, Benedikt<EMAIL_ADDRESS>wrote:

@B3n3 commented on this pull request.
The README looks good to me.
Please go through the comments I added and fix them, so that I can merge
your changes.
Further it would be nice if you could stick to the line indention I used,
cause now the git history would look like you rewrote the whole file just
because of the different indention :)
Thanks for you contribution, good job.
In crack_pw.py
https://github.com/B3n3/python_zip_cracker/pull/1#discussion_r128706512:

	except Exception as e:

		pass

-print "no pw found..."

print("Length of password: ", leng)

#create an iterator over the cartesian product of all possible permuations
opts = itertools.product(characters, repeat=leng)

#iterate all created permutations
for passw in opts:
if found:

 sys.exit(0)

else:

 tmp = ''.join(passw)

 print("Trying with password {} :".format(tmp))

Please remove this line, as the output would be too verbose and flood the
console.
In crack_pw.py
https://github.com/B3n3/python_zip_cracker/pull/1#discussion_r128706591:

   """

     try to extract the files from the file

     if the password is wrong, an exception is thrown,

       (RuntimeError), which is caught in the except part

   """

   zipFile.extractall()

   print("Password Found\n  Password is ->" + str(passwd))

   found = True

 except RuntimeError:

   print("Failed for test {}\n".format(tmp))

 except Exception as e:

   print("Error opening/operating zipfile\n")

+print("No passwords were found...\n")
The is just one password. Please use singular.
In crack_pw.py
https://github.com/B3n3/python_zip_cracker/pull/1#discussion_r128706831:

print "The filename was not a valid string"

exit(1)

-#characters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"
-characters = "abcdefghijklmnopqrstuvwxyz"
-zipFile = zipfile.ZipFile(filename, "r")

print("The filename is not a valid string!")
sys.exit(1)

+#characters = string.ascii_letters
+characters = string.ascii_lowercase
+try:

zipFile = zipfile.ZipFile(filename, "r")
+except IOError:

rather than raise() we'll simple print it to screen because we dont't want to scare the user

print("IOError: \nFile you entered was not found!\nTry again!")

I'd name it like this:
"The file could not be opened."
In crack_pw.py
https://github.com/B3n3/python_zip_cracker/pull/1#discussion_r128706862:

except:

print "The filename was not a valid string"
exit(1)

-#characters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"
-characters = "abcdefghijklmnopqrstuvwxyz"
-zipFile = zipfile.ZipFile(filename, "r")

print("The filename is not a valid string!")

Probably here the usage of the script would be nice :)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/B3n3/python_zip_cracker/pull/1#pullrequestreview-51410873,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AT1ksQB4yX-mMmCc1qp1aaZ3dlA5cFtVks5sQF3YgaJpZM4OMWw-
.


Persist spark pod name conf into batch metadata

:mag: Description
Issue References 🔗

As title, save the pod name conf into batch metadata, it is very meaningful.
Describe Your Solution 🔧
For spark on k8s batch app, persist the spark pod name configs into batch metadata.
Types of changes :bookmark:

[ ] Bugfix (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)

Test Plan 🧪
Behavior Without This Pull Request :coffin:
Behavior With This Pull Request :tada:
Related Unit Tests

Checklist 📝

[x] This patch was not authored or co-authored using Generative Tooling

Be nice. Be informative.

Codecov Report
Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 0.00%. Comparing base (ac7702c) to head (2bfa0aa).

Files with missing lines
Patch %
Lines

...org/apache/kyuubi/session/KyuubiBatchSession.scala
0.00%
1 Missing :warning:

Additional details and impacted files
@@          Coverage Diff           @@
##           master   #6653   +/-   ##
======================================
  Coverage    0.00%   0.00%
======================================
  Files         683     683
  Lines       42205   42205
  Branches     5756    5756
======================================
  Misses      42205   42205

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

thank you, merged to 1.10.0


Can't play songs from Google Drive

When you paste in a google drive link it can't extract the title of the song

Try updating your youtube-dl pip package. Otherwise, it may seem like google drive isn't officially supported by youtube-dl


Correctly pass the called service name in the RPC process

Support to carry the destination service name in the HTTP call from the java program to the sidecar.
At least the following two client-side frameworks should be supported:

FeignClient
RestTemplate

Other client-side frameworks will be expanded according to subsequent situations.
Related to https://github.com/megaease/easemesh/issues/2

As the result of talking with @benja-wu, we will use X-MESH-RPC-SERVICE as the header name to propagate the called service's name.
After several days of research, I think we should cover the following scenarios and I also list the way how to resolve them.
Use OpenFeign as HTTP Client to call an API

interceptor the method org.springframework.cloud.openfeign.ribbon.FeignLoadBalancer#execute(RibbonRequest,IClientConfig)
use this.getClientName() or IClientConfig#getClientName() to obtain the remote service name
use RibbonRequest#getRequest()#headers()#put(String,Collection<String>> to inject the remote service name into the http headers.

Use RestTemplate with @Loadbalanced as HTTP Client to call an API

interception points

method org.springframework.cloud.client.loadbalancer.RetryLoadBalancerInterceptor#intercept
method org.springframework.cloud.client.loadbalancer.AsyncLoadBalancerInterceptor#intercept
method org.springframework.cloud.client.loadbalancer.LoadBalancerInterceptor#intercept

use request.getURI().getHost() to obtain remote service name.
use request.getHeaders().add(name,value) to inject the remote service name into the http headers.

Use WebClient with @Loadbalanced as HTTP Client to call an API

interception points

method org.springframework.cloud.client.loadbalancer.reactive.ReactorLoadBalancerExchangeFilterFunction#filter
method org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerExchangeFilterFunction#filter

use request.url().getHost() to obtain the remote service name. Remember to check that the value can't be null.
use request.headers().add(name,value) to inject the remote service name into the http hreaders.

Use Spring cloud gateway as an API gateway

The Spring Cloud Gateway use FilteringWebHandler to process the routed HTTP request

interceptor the method org.springframework.cloud.gateway.handler.FilteringWebHandler#handle(ServerWebExchange)
use exchange.getAttribute(GATEWAY_ROUTE_ATTR) to obtain Route. use Route#getUri#getHost to obtain the remote service name. Note that we need to check whether the Route#getUri#getSchema equals lb.
use ServerHttpRequest request = exchange.getRequest().mutate().header(name,value).build();ServerWebExchange exchange = exchange.mutate().request(request).build() to generate a new Exchange to replace the old one.

Why do you severely rely on the ribbon, but the Spring Cloud Netflix Ribbon is now deprecated, although I think backward compatible is good, we need to think about current and future

We will not rely on Ribbon. I just start from the user's way of use and go down to find suitable interception points. These interception points include Ribbon-related and irrelevant ones.


gzip= stdin: not in gzip format

When running the command we get the following:
admin@er0:~$ curl -sSL https://raw.githubusercontent.com/elsbrock/edgerouter-backup/master/install.sh | sh
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
admin@er0:~$ show version
Version:      v2.0.9-hotfix.4
Build ID:     5521907
Build on:     06/30/22 06:58
Copyright:    2012-2020 Ubiquiti Networks, Inc.
HW model:     EdgeRouter 4

Thanks for reporting, could you provide the output of lscpu | grep -i arch | awk '{print $2}'?

Thanks for reporting, could you provide the output of lscpu | grep -i arch | awk '{print $2}'?

admin@er0:~$ lscpu | grep -i arch | awk '{print $2}'
mips64
admin@er0:~$

Could you try again? Release job of github.com/elsbrock/go-ghwrite did not publish the artifacts.

Getting there :)
admin@er0:~$ curl -sSL https://raw.githubusercontent.com/elsbrock/edgerouter-backup/master/install.sh | sh
go-ghwrite
/config/user-data/config-backup.env: line 2: export: [': not a valid identifier /config/user-data/config-backup.env: line 2: export: !': not a valid identifier
/config/user-data/config-backup.env: line 2: export: -x': not a valid identifier /config/user-data/config-backup.env: line 2: export: ': not a valid identifier
/config/user-data/config-backup.env: line 2: export: `]': not a valid identifier
admin@er0:~$

Can you check if /config/user-data/config-backup.env looks OK?

admin@er0:~$ cat /config/user-data/config-backup.env
REPOSLUG=
export GOGHWRITE_TOKEN=if [ ! -x "$GOGHWRITE_BIN" ];
admin@er0:~$
It did not request the reposlug and token or should I put this in before somewhere ?

Mhh, weird, it should have prompted for that. Can you just set it?

You mean when you edit the config? I no longer use Ubiquiti but am surprised it's not working any longer :(

Yes indeed with the info in previous comment

Am I missing something here I did a change and saw the script working but with the following error:
admin@er0# commit
Usage of: /config/user-data/bin/go-ghwrite [opts]
single file
go-ghwrite [opts] repo/slug:targetfile < sourcefile
multiple files
tar cvf - file1 file2 file3 | go-ghwrite -read-tar repo/slug:
Parameters:
-branch string
the git branch (default "main")
-commit-msg string
the commit message (default "update submitted via go-ghwrite")
-email string
the author email, defaults to the owner email of the token
-name string
the author name, defaults to the owner name of the token
-read-tar
interpret input as tarball and upload individual files
A valid Github token with scope repo is required in GOGHWRITE_TOKEN.
backup done
[edit]
admin@er0#
Token redacted:
root@er0:/config/user-data# cat config-backup.env
REPOSLUG=jnbtje/edge-mc
GOGHWRITE_TOKEN=ghp_DfNWE1zTd9FF...

Great to hear. Thanks for reporting back.


Split RingBuffer class into two (or more) parts?

A given ring buffer should be either written to or read from in a Python program, not both. The other end of the ring buffer should be only accessed by C (or some other language).
I think it might never make sense to read from and write to the same ring buffer within a single Python process (because the GIL prohibits lock-free-ness anyway).
It might be done with multiprocessing though ...?
I think it would be clearer and less error prone if there were two separate classes, say RingBufferReader and RingBufferWriter.
There could even be a separate function create_ringbuffer() that would create an instance of a ring buffer which could in turn be used to instantiate either a RingBufferReader or a RingBufferWriter.
This would also make the handling of the ring buffer pointer more explicit, which is now hidden in RingBuffer._ptr.
If somebody really wants to use both ends of a ring buffer, they can simply use both classes.
On top of all that, it would enable a use case where the actual ring buffer data structure is created in C and then passed to Python. This "foreign" ring buffer could then be used in the same RingBufferReader and RingBufferWriter classes.

It may be conceptually cleaner, but it turned out that it is also more complicated and confusing to use.
The fact that only one end of a ring buffer should be used from Python should be clearly stated in the docs.


iOS 10.3.3 not support

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

...
...

Expected behavior
A clear and concise description of what you expected to happen.
Version of the Cognitive Services Speech SDK
Which version of the SDK are you using.
Platform, Operationg System, and Programming Language

OS: [e.g. Windows, Linux, Android, iOS, ...] - please be specific
Hardware - x64, x86, ARM, ...
Browser  [e.g. chrome, safari] (if applicable)- please be specific

Additional context

Error messages, log information, stack trace, ...
If you report an error for a specific service interaction, please report the SessionId and time (incl. timezone) of the reported incidents. The SessionId is reported in all call-backs/events you receive.
Any other additional information

Currently the Speech SDK for iOS only supports iOS11.4. We are working on supporting iOS 10, but no ETA yet.
Sorry for inconvenience.

When will it be finished?

Please have a look at the input streams available in the API, SPXPullAudioInputStream and SPXPushAudioInputStream.
There is no planned release date for iOS 10.0 compatibility yet.

I tried, but a simple sentence can not be recognized.
, and could help me to see my demo.
https://github.com/hold-my-hand/TranslateDemo

Can you be more specific about the issue? Do you see the expected results when doing recognition from a file, or from the default microphone implementation?

是的，那二种情况我都试过了没有问题，但是我希望以流的方式去识别并且翻译，我必须使用audiounit这个库，不知道它的audiobuffer如何转换成为你们所需要的pcmdata，不知道你看不看得懂中文.

translate：Yes, I've tried both cases，they have no problem，but I hope to identify and translate them in a streaming way. I have to use the AudioUnit library. I don't know how its audiobuffer can be converted into the pcm data you need. I don't know if you can read Chinese or not

Different varieties of Chinese are supported, see here. There aren't any samples for audio input streams with Objective-C yet, but maybe the C++ sample on that topic is helpful.


Add scheduled actions view

Change-type: minor
Signed-off-by: Josh Bowling<EMAIL_ADDRESS>

@balena-ci rebase


onConnectionComplete event only accepts a single handler

ConnectionProvider#registerOnConnectionComplete only accepts a single event handler. Any new event handler overwrites the last one.
This issue seems to go all the way down to vscode-languageserver-node.
Useful codepoints:
https://github.com/microsoft/azuredatastudio/blob/master/src/sql/azdata.d.ts#L459
https://github.com/microsoft/sqlops-dataprotocolclient/blob/master/src/main.ts#L263-L265

https://github.com/microsoft/vscode-languageserver-node/issues/299

So it seems like we need to handle this on sqlops-dataprotocolclient.

Closing older engineering-focused issues to focus on customer scenario-facing bugs.


Preview image height and captured image height are different

When i click an image, the resulting image is longer than the image shown in camera preview.
This results in very bad user experience.
I am using
   val metrics = DisplayMetrics().also { viewFinder.display.getRealMetrics(it) }
            val screenAspectRatio = aspectRatio(metrics.widthPixels, metrics.heightPixels)

            val preview = Preview.Builder()
                    .setTargetAspectRatio(screenAspectRatio)
                    .build()

            imageCapture = ImageCapture.Builder()
                    .setTargetAspectRatio(screenAspectRatio)
                    .build()

            val cameraSelector = CameraSelector.Builder()
                    .requireLensFacing(CameraSelector.LENS_FACING_BACK)
                    .build()

private fun aspectRatio(width: Int, height: Int): Int {
        val previewRatio = kotlin.math.max(width, height).toDouble() / min(width, height)
        if (kotlin.math.abs(previewRatio - RATIO_4_3_VALUE) <= kotlin.math.abs(previewRatio - RATIO_16_9_VALUE)) {
            return AspectRatio.RATIO_4_3
        }
        return AspectRatio.RATIO_16_9
    }

This only seems so; the captured image is displayed with FIT_CENTER, while the preview is equivalent to CENTER_INSIDE.

Correct, the PreviewView class is performing a center-crop transform whereas it sounds like you want a letter-box transform. I don't think that's supported by the library (yet), so there's nothing that can be done on the app side if you are using PreviewView. The only alternative you have is creating your own SurfaceProvider which appropriately transforms the preview according to your requirements.


[docs] the spawn_future method needs documentation

The Scope::spawn_future() method is currently undocumented and needs /// foo documentation. The documentation should probably be fairly similar to Scope::spawn(), but there are some things to note:

When a future is spawned, it will begin to execute asynchronously to compute its result. You get back another future (of type RayonFuture) that can be used to access that result.
If you drop this new future, this is considered to be an indication that you no longer care about the result, and hence your original code may not execute. Put another way, spawn_future() is intended for computing values asynchronously, and not for side-effecting tasks. spawn() is better if you have side-effects you wish to observe.
The best way to use the value that results from the future is typically to create a new future, e.g. with Future::and_then(). However, you may also invoke RayonFuture::rayon_wait() on the returned future, which will block for the value. Invoking Future::wait() from inside a Rayon thread may cause deadlocks or panics and is not recommended.

Some usage examples would also be helpful.
I wanted to use tokio-io and combine them with Rayon's new features support(I want to dispatch heavier tasks on the content read from files) but it's not very clear how Rayon plays the role in the ecosystem(I am sure one can get a grip while playing with these 2, but code examples would help here).

@lilianmoraru yes. I'd like to know the answer too. =P I've been refactoring the support for futures in rayon anyhow (rather slowly), once that's done I'll try to write-up some docs.

@nikomatsakis is rayon-futures abandoned, or is it waiting for the futures stuff to stabilize? It's a bit confusing because the docs for spawn() refer to spawn_future() but that doesn't currently exist in the crate's API.

Bump, is there any chance we can get this feature back again? Currently using crossbeam's spawn, save the JoinHandle and call join on it as an alternative.

As of #715 and #716, yes rayon-futures is abandoned -- that doc reference needs to be removed. We have thought a bit about bringing that functionality directly to rayon-core in some form, like #679, but it's not clear what that should look like.


Harden workflows

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

Project coverage is 96.99%. Comparing base (e10bedf) to head (b786a5e).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #124      +/-   ##
==========================================
+ Coverage   96.66%   96.99%   +0.33%
==========================================
  Files           5        5
  Lines         510      433      -77
==========================================
- Hits          493      420      -73
+ Misses         17       13       -4

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


TypeError: Tensor is unhashable if Tensor equality is enabled. Instead, use tensor.experimental_ref() as the key.

Describe the problem
I am having the the below problem
TypeError: Tensor is unhashable if Tensor equality is enabled. Instead, use tensor.experimental_ref() as the key.
Provide the exact sequence of commands / steps that you executed before running into the problem
gen_optimizer = tf.keras.optimizers.Adam(1e-3, beta_1=0.5)
disc_optimizer = tf.keras.optimizers.RMSprop(1e-3)
model
model = VAEGAN(
enc = encoder,
dec = decoder,
vae_disc_function = vaegan_discrim,
lr_base_gen = 1e-3, #
lr_base_disc = 1e-4, # the discriminator's job is easier than the generators so make the learning rate lower
latent_loss_div=1, # this variable will depend on your dataset - choose a number that will bring your latent loss to ~1-10
sig_mult = 10, # how binary the discriminator's learning rate is shifted (we squash it with a sigmoid)
recon_loss_div = .001, # this variable will depend on your dataset - choose a number that will bring your latent loss to ~1-10
)
model.train(example_data)
Any other info / logs
TypeError                                 Traceback (most recent call last)
 in
----> 1 model.train(example_data)
 in train(self, x)
93
94     def train(self, x):
---> 95         enc_gradients, dec_gradients, disc_gradients = self.compute_gradients(x)
96         self.apply_gradients(enc_gradients, dec_gradients, disc_gradients)
97
 in compute_gradients(self, x)
74     def compute_gradients(self, x):
75         with tf.GradientTape() as enc_tape, tf.GradientTape() as dec_tape, tf.GradientTape() as disc_tape:
---> 76             (_, latent_loss, discrim_layer_recon_loss, gen_fake_loss, disc_fake_loss, disc_real_loss,) = self.compute_loss(x)
77
78             enc_loss = latent_loss + discrim_layer_recon_loss
 in compute_loss(self, x)
48         # pass through network
49         q_z = self.dist_encode(x)
---> 50         z = q_z.sample()
51         p_z = ds.MultivariateNormalDiag(loc=[0.0] * z.shape[-1], scale_diag=[1.0] * z.shape[-1])
52         xg = self.decode(z)
~/anaconda3/lib/python3.7/site-packages/tensorflow_probability/python/distributions/distribution.py in sample(self, sample_shape, seed, name, **kwargs)
838       samples: a Tensor with prepended dimensions sample_shape.
839     """
--> 840     return self._call_sample_n(sample_shape, seed, name, **kwargs)
841
842   def _call_log_prob(self, value, name, **kwargs):
~/anaconda3/lib/python3.7/site-packages/tensorflow_probability/python/distributions/transformed_distribution.py in _call_sample_n(self, sample_shape, seed, name, **kwargs)
389       # work, it is imperative that this is the last modification to the
390       # returned result.
--> 391       y = self.bijector.forward(x, **bijector_kwargs)
392       y = self._set_sample_static_shape(y, sample_shape)
393
~/anaconda3/lib/python3.7/site-packages/tensorflow_probability/python/bijectors/bijector.py in forward(self, x, name, **kwargs)
931       NotImplementedError: if _forward is not implemented.
932     """
--> 933     return self._call_forward(x, name, **kwargs)
934
935   def _inverse(self, y):
~/anaconda3/lib/python3.7/site-packages/tensorflow_probability/python/bijectors/bijector.py in _call_forward(self, x, name, **kwargs)
902       if not self._is_injective:  # No caching for non-injective
903         return self._forward(x, **kwargs)
--> 904       mapping = self._lookup(x=x, kwargs=kwargs)
905       if mapping.y is not None:
906         return mapping.y
~/anaconda3/lib/python3.7/site-packages/tensorflow_probability/python/bijectors/bijector.py in _lookup(self, x, y, kwargs)
1341     if x is not None:
1342       # We removed x at caching time. Add it back if we lookup successfully.
-> 1343       mapping = self._from_x[x].get(subkey, mapping).merge(x=x)
1344     if y is not None:
1345       # We removed y at caching time. Add it back if we lookup successfully.
~/anaconda3/lib/python3.7/site-packages/tensorflow_probability/python/bijectors/bijector.py in getitem(self, key)
149   def getitem(self, key):
150     weak_key = HashableWeakRef(key, lambda w: self.pop(w, None))
--> 151     return super(WeakKeyDefaultDict, self).getitem(weak_key)
152
153   # This is the "DefaultDict" part.
~/anaconda3/lib/python3.7/site-packages/tensorflow_probability/python/bijectors/bijector.py in hash(self)
179     x = self()
180     if not isinstance(x, np.ndarray):
--> 181       return hash(x)
182     # Note: The following logic can never be reached by the public API because
183     # the bijector base class always calls convert_to_tensor before accessing
~/anaconda3/lib/python3.7/site-packages/tensorflow_core/python/framework/ops.py in hash(self)
711     if (Tensor._USE_EQUALITY and executing_eagerly_outside_functions() and
712         (g is None or g._building_function)):  # pylint: disable=protected-access
--> 713       raise TypeError("Tensor is unhashable if Tensor equality is enabled. "
714                       "Instead, use tensor.experimental_ref() as the key.")
715     else:
TypeError: Tensor is unhashable if Tensor equality is enabled. Instead, use tensor.experimental_ref() as the key.

@ShibaPrasad, Please provide the complete code and Tenosrflow version to replicate the reported issue here. Thanks!

@ShibaPrasad, Any update on this issue!

I'm getting this too, using a gpu on Colab

@shaunster0, Can you share the colab gist here to analyze the issue. Thanks!


Introduce cython-lint

cython-lint, written by @MarcoGorelli, is a linter specific to Cython and is better than the existing Python linters as it can capture issues respecting the Cython syntax (e.g. #7170).
It can be introduced by adding the following lines to .pre-commit-config.yaml:
-   repo: https://github.com/MarcoGorelli/cython-lint
    rev: v0.14.0
    hooks:
    -   id: cython-lint

$ pre-commit run -a output is as follows. We have several unused imports etc. that needs to be fixed.

cupy/cuda/cufft.pyx:531:28: 'count' defined but unused (try prefixing with underscore?)
cupy/cuda/cufft.pyx:748:24: 'i' defined but unused (try prefixing with underscore?)
cupy/cuda/cufft.pyx:1031:13: 'result' defined but unused (try prefixing with underscore?)
cupy/cuda/cufft.pyx:1189:17: 'h' defined but unused (try prefixing with underscore?)
cupy/cuda/cufft.pyx:1190:14: 'result' defined but unused (try prefixing with underscore?)
cupy/cuda/cufft.pyx:1191:17: 'callerInfo' defined but unused (try prefixing with underscore?)
cupy_backends/cuda/libs/cudnn.pyx:1131:5: 'status' defined but unused (try prefixing with underscore?)
cupy_backends/cuda/libs/cudnn.pyx:1144:5: 'status' defined but unused (try prefixing with underscore?)
cupy/random/_generator_api.pyx:4:46: 'uint32_t' imported but unused
cupy/random/_generator_api.pyx:10:25: 'internal' imported but unused
cupy/random/_generator_api.pyx:311:28: 'a_arr' defined but unused (try prefixing with underscore?)
cupy/random/_generator_api.pyx:311:35: 'b_arr' defined but unused (try prefixing with underscore?)
cupy/random/_generator_api.pyx:529:28: 'p_arr' defined but unused (try prefixing with underscore?)
cupy/random/_generator_api.pyx:579:28: 'ngood_arr' defined but unused (try prefixing with underscore?)
cupy/random/_generator_api.pyx:580:28: 'nbad_arr' defined but unused (try prefixing with underscore?)
cupy/random/_generator_api.pyx:581:28: 'nsample_arr' defined but unused (try prefixing with underscore?)
cupy/random/_generator_api.pyx:653:28: 'p_arr' defined but unused (try prefixing with underscore?)
cupy/random/_generator_api.pyx:743:28: 'lam_arr' defined but unused (try prefixing with underscore?)
cupy/random/_generator_api.pyx:901:28: 'shape_arr' defined but unused (try prefixing with underscore?)
cupy/random/_generator_api.pyx:974:28: 'n_arr' defined but unused (try prefixing with underscore?)
cupy/random/_generator_api.pyx:975:28: 'p_arr' defined but unused (try prefixing with underscore?)
cupy/cuda/texture.pyx:154:21: 'size' defined but unused (try prefixing with underscore?)
cupy/cuda/texture.pyx:154:27: 'pitch' defined but unused (try prefixing with underscore?)
cupy/cuda/texture.pyx:154:34: 'w' defined but unused (try prefixing with underscore?)
cupy/cuda/texture.pyx:154:37: 'h' defined but unused (try prefixing with underscore?)
cupy/_core/_kernel.pyx:10:9: 'cpython' imported but unused
cupy/_core/_kernel.pyx:372:21: 'x' defined but unused (try prefixing with underscore?)
cupy/_core/_kernel.pyx:680:18: 'shape' defined but unused (try prefixing with underscore?)
cupy/_core/_kernel.pyx:681:21: 'x' defined but unused (try prefixing with underscore?)
cupy/_core/_kernel.pyx:850:41: 'types' defined but unused (try prefixing with underscore?)
cupy/_core/_kernel.pyx:1246:25: 's' defined but unused (try prefixing with underscore?)
cupy/cuda/memory.pyx:7:8: 'ctypes' imported but unused
cupy/cuda/memory.pyx:669:19: 'stream_ptr' defined but unused (try prefixing with underscore?)
cupy/cuda/thrust.pyx:5:8: 'numpy' imported but unused
cupy/cuda/thrust.pyx:7:9: 'cython' imported but unused
cupy/cuda/thrust.pyx:14:37: 'runtime' imported but unused
cupy/_core/new_fusion.pyx:9:42: '_ScalarProxy' imported but unused
cupy/_core/new_fusion.pyx:10:42: '_ArrayProxy' imported but unused
cupy/_core/new_fusion.pyx:12:32: 'get_dtype' imported but unused
cupyx/cutensor.pyx:25:37: 'runtime' imported but unused
cupyx/cutensor.pyx:678:17: 'handle' defined but unused (try prefixing with underscore?)
cupyx/cutensor.pyx:839:27: 'desc_a' defined but unused (try prefixing with underscore?)
cupyx/cutensor.pyx:839:35: 'desc_c' defined but unused (try prefixing with underscore?)
cupyx/cutensor.pyx:839:43: 'desc_out' defined but unused (try prefixing with underscore?)
Skipping file cupy_backends/cuda/api/driver.pyx, as it cannot be parsed. Error: CompileError((<StringSourceDescriptor:cupy_backends/cuda/api/driver.pyx>, 28, 0), 'Expected an increase in indentation level')
cupy/cuda/cub.pyx:10:30: '_internal_asfortranarray' imported but unused
cupy/cuda/cub.pyx:11:55: 'prod' imported but unused
cupy/cuda/cub.pyx:122:31: 'out_shape' defined but unused (try prefixing with underscore?)
cupy/cuda/cub.pyx:208:27: 'offset' defined but unused (try prefixing with underscore?)
cupy/cuda/cub.pyx:214:16: 'offset_start_ptr' defined but unused (try prefixing with underscore?)
cupy_backends/cuda/libs/cusparselt.pyx:6:26: 'uint8_t' imported but unused
Skipping file cupy_backends/cuda/api/runtime.pyx, as it cannot be parsed. Error: CompileError((<StringSourceDescriptor:cupy_backends/cuda/api/runtime.pyx>, 80, 0), 'Expected an increase in indentation level')
cupy/_core/_routines_binary.pyx:2:35: 'create_reduction_func' imported but unused
cupyx/cusolver.pyx:292:35: 'i' defined but unused (try prefixing with underscore?)
cupyx/cusolver.pyx:292:50: 'd_size' defined but unused (try prefixing with underscore?)
cupyx/cusolver.pyx:293:48: 'rwork_ptr' defined but unused (try prefixing with underscore?)
cupyx/cusolver.pyx:874:20: 'k' defined but unused (try prefixing with underscore?)
cupyx/cudnn.pyx:1335:42: 'memory' shadows global import on line 17 col 24
cupyx/cudnn.pyx:2485:14: 'scaler' defined but unused (try prefixing with underscore?)
cupy/_core/_carray.pyx:1:8: 'os' imported but unused
cupy/_core/_carray.pyx:3:21: 'vector' imported but unused
cupy_backends/cuda/libs/cutensor.pxd:72:16: E221 multiple spaces before operator
cupy_backends/cuda/libs/cutensor.pxd:75:16: E221 multiple spaces before operator
cupy_backends/cuda/libs/cutensor.pxd:76:16: E221 multiple spaces before operator
cupy_backends/cuda/libs/cutensor.pxd:77:15: E221 multiple spaces before operator
cupy_backends/cuda/libs/cutensor.pxd:78:15: E221 multiple spaces before operator
cupy_backends/cuda/libs/cutensor.pxd:79:16: E221 multiple spaces before operator
cupy_backends/cuda/libs/cutensor.pxd:80:16: E221 multiple spaces before operator
cupy_backends/cuda/libs/cutensor.pxd:88:13: E221 multiple spaces before operator
cupy_backends/cuda/libs/cutensor.pxd:90:13: E221 multiple spaces before operator
cupy_backends/cuda/libs/cublas.pyx:1016:9: 'status' defined but unused (try prefixing with underscore?)
cupy/random/_bit_generator.pyx:6:26: 'intptr_t' imported but unused
cupy/random/_bit_generator.pyx:6:46: 'uint32_t' imported but unused
cupy/random/_bit_generator.pyx:9:24: 'stream' imported but unused
cupy/_core/_fusion_kernel.pyx:5:8: 'numpy' imported but unused
cupy/_core/_fusion_kernel.pyx:14:24: 'function' imported but unused
cupy/_core/_fusion_kernel.pyx:16:25: '_reduction' imported but unused
cupy/_core/_fusion_kernel.pyx:23:41: '_AbstractDim' imported but unused
cupy/_core/_fusion_kernel.pyx:294:19: 'block_strides' defined but unused (try prefixing with underscore?)
cupy/_core/_reduction.pyx:3:21: 'vector' imported but unused
cupy/_core/_reduction.pyx:14:33: '_get_kernel_params' imported but unused
cupy/_core/_reduction.pyx:31:24: 'memory' imported but unused
cupy/_core/_reduction.pyx:315:25: 'i' defined but unused (try prefixing with underscore?)
cupy/_core/_routines_indexing.pyx:2:8: 'sys' imported but unused
cupy/_core/_routines_indexing.pyx:15:37: 'runtime' imported but unused
cupy/_core/_routines_indexing.pyx:31:27: 'mask' defined but unused (try prefixing with underscore?)
cupy/_core/_routines_indexing.pyx:304:35: 'start' defined but unused (try prefixing with underscore?)
cupy/_core/_routines_indexing.pyx:711:47: 'mask_br_scanned' defined but unused (try prefixing with underscore?)
cupy/_core/_routines_indexing.pyx:713:32: 'out_shape' defined but unused (try prefixing with underscore?)
cupy/_core/_routines_indexing.pyx:782:27: 'ind_shape' defined but unused (try prefixing with underscore?)
cupy/_core/_routines_indexing.pyx:851:5: 'ndim' defined but unused (try prefixing with underscore?)
cupy/_core/_routines_indexing.pyx:995:21: 'i' defined but unused (try prefixing with underscore?)
cupy/_core/_routines_indexing.pyx:996:24: 'v' defined but unused (try prefixing with underscore?)
cupy/_core/_routines_indexing.pyx:996:46: 'mask' defined but unused (try prefixing with underscore?)
cupy/cuda/jitify.pyx:5:30: 'deref' imported but unused
cupy/cuda/jitify.pyx:80:18: 'hdr_name' defined but unused (try prefixing with underscore?)
cupy/cuda/jitify.pyx:80:28: 'hdr_source' defined but unused (try prefixing with underscore?)
cupy/cuda/jitify.pyx:83:14: 'i' defined but unused (try prefixing with underscore?)
cupy/_core/_routines_linalg.pyx:548:21: 'inca' defined but unused (try prefixing with underscore?)
cupy/_core/_routines_linalg.pyx:548:27: 'incb' defined but unused (try prefixing with underscore?)
cupy/_core/_routines_linalg.pyx:549:21: 'mode' defined but unused (try prefixing with underscore?)
cupy/_core/_routines_linalg.pyx:802:21: 'sh_' defined but unused (try prefixing with underscore?)
cupy/_core/_routines_linalg.pyx:802:26: 'st_' defined but unused (try prefixing with underscore?)
cupy/_core/_cub_reduction.pyx:263:14: 'rocm_path' defined but unused (try prefixing with underscore?)
cupy/_core/_cub_reduction.pyx:307:5: 'out_arr' defined but unused (try prefixing with underscore?)
cupy/_core/_cub_reduction.pyx:565:5: 'out_size' defined but unused (try prefixing with underscore?)
cupy/_core/fusion.pyx:20:1: E303 too many blank lines (3)
cupy/_core/_routines_manipulation.pyx:3:8: 'sys' imported but unused
cupy/_core/_routines_manipulation.pyx:16:25: '_indexing' imported but unused
cupy/_core/_routines_manipulation.pyx:420:60: 'offset' defined but unused (try prefixing with underscore?)
cupy/_core/_routines_manipulation.pyx:593:18: 'shape' defined but unused (try prefixing with underscore?)
cupy/_core/_routines_manipulation.pyx:767:5: 'sh' defined but unused (try prefixing with underscore?)
cupy/_core/_routines_manipulation.pyx:768:5: 'st' defined but unused (try prefixing with underscore?)
cupy_backends/cuda/libs/nvrtc.pyx:14:8: '_sys' imported but unused
cupy/_core/raw.pyx:485:9: 'func' defined but unused (try prefixing with underscore?)
cupy/_core/core.pyx:8:8: 'sys' imported but unused
cupy/_core/core.pyx:28:9: 'cpython' imported but unused
cupy/_core/core.pyx:30:21: 'vector' imported but unused
cupy/_core/core.pyx:197:18: f-string without any placeholders
cupy/_core/core.pyx:235:18: f-string without any placeholders
cupy/_core/core.pyx:544:25: 'stride' defined but unused (try prefixing with underscore?)
cupy/_core/core.pyx:1646:36: 'ufunc' shadows global import on line 16 col 32
cupy/_core/core.pyx:1987:18: f-string without any placeholders
cupy/_core/core.pyx:2487:17: 'offset' defined but unused (try prefixing with underscore?)
cupy/_core/core.pyx:2487:25: 'length' defined but unused (try prefixing with underscore?)
cupy/_core/core.pyx:2718:14: 'm' defined but unused (try prefixing with underscore?)
cupy/_core/core.pyx:2718:17: 'n' defined but unused (try prefixing with underscore?)
cupy/_core/internal.pyx:8:8: 'sys' imported but unused
cupy/_core/internal.pyx:353:15: 'ret' defined but unused (try prefixing with underscore?)
cupy/_core/dlpack.pyx:120:20: 'device' shadows global import on line 15 col 24
cupy/_util.pyx:4:8: 'collections' imported but unused
cupy/_util.pyx:9:8: 'numpy' imported but unused
cupy/_util.pyx:201:1: pointless string statement
cupy/_core/_routines_math.pyx:17:25: '_kernel' imported but unused
cupy_backends/cuda/libs/cusparse.pyx:1:8: '_sys' imported but unused
cupy_backends/cuda/libs/cusparse.pyx:4749:19: 'indices' defined but unused (try prefixing with underscore?)
cupy/_core/_memory_range.pyx:4:26: 'intptr_t' imported but unused
cupy/_core/_memory_range.pyx:6:28: 'vector' imported but unused
cupy/cuda/function.pyx:6:9: 'cpython' imported but unused
cupy/fft/_cache.pyx:8:24: 'device' imported but unused
cupy/cuda/stream.pyx:1:8: 'os' imported but unused
cupy/cuda/stream.pyx:482:9: 'tls' defined but unused (try prefixing with underscore?)

cupy_backends/cuda/libs/cusparse.pyx:1:8: '_sys' imported but unused

but it does use _sys here - L1370 similarly in other files. How would one surpass that?

looks like a bug - I'll take a look, thanks!

hey @pri1311 - I think this might be due to a limitation in Cython's own parse_from_strings, see https://github.com/MarcoGorelli/cython-lint/issues/70 . I've reported it to their mailing list, hopefully they have a workaround
In the meantime, I'd suggest using # no-cython-lint to silence this false positive

Got a reply on the cython mailing list:

The DEF/IF etc. syntax is deprecated and users should employ C compile time
mechanisms instead, so that the generated C files do not differ between
platforms and environments. Or, they can use code generation on their side
instead.
See https://github.com/cython/cython/issues/4310

For now adding # no-cython-lint sounds good to me. In future, we should anyway eliminate DEF/IFs to support Cython 3.


Installation error

When trying to install, I get this error:
kot@192:~$ pip install youtube-dlg
Defaulting to user installation because normal site-packages is not writeable
Collecting youtube-dlg
  Downloading Youtube-DLG-0.4.tar.gz (153 kB)
     |████████████████████████████████| 153 kB 2.4 MB/s
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3.8 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-uigeedb4/youtube-dlg/setup.py'"'"'; __file__='"'"'/tmp/pip-install-uigeedb4/youtube-dlg/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-ehhjazge
         cwd: /tmp/pip-install-uigeedb4/youtube-dlg/
    Complete output (8 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-uigeedb4/youtube-dlg/setup.py", line 69, in <module>
        from youtube_dl_gui import (
      File "/tmp/pip-install-uigeedb4/youtube-dlg/youtube_dl_gui/__init__.py", line 25
        print error
              ^
    SyntaxError: Missing parentheses in call to 'print'. Did you mean print(error)?
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Opensuse tumbleweed.

This project is abandoned, and cannot easily be installed on modern Linux distributions. Try this fork or this one.

This source code for python version 2. Incompatible with Python3.

What am I to do now?

Use one of the forks I suggested.

Use one of the forks I suggested.
youtube-dl-gui is written in Python 2. Most Linux distributions no longer provide Python 2, so it's not easy to install youtube-dl-gui on any of them.

Most Linux distributions  provide Python 2. For example, on Debian and Ubuntu python 2 is by default!

Most Linux distributions provide Python 2. For example, on Debian and Ubuntu python 2 is by default!

I meant to write: "Most Linux distributions no longer provide Python 2 support", which means that software written in python 2 is no longer available in software repositories.

Most Linux distributions provide Python 2. For example, on Debian and Ubuntu python 2 is by default!

I meant to write: "Most Linux distributions no longer provide Python 2 support", which means that software written in python 2 is no longer available in software repositories.

Really  ?
Why do you mislead people?!

My friend, you are mistaken. The removal of all python2  modules from Debian was announced in 2019. youtube-dl-gui has already been removed, or is due to be removed, from most Linux distributions (for example, it was removed from Mageia just one week ago).
 Perhaps it will make you feel better. But perhaps you have noticed that I have uploaded over half a million lines of code to Github, whereas you have uploaded only a few hundred lines. Perhaps you need to choose a different insult, yes?


Navigation to Screen from bottom sheet

How can we navigate to a screen from a bottom sheet?
if I do bottomSheetNavigator.show(ScreenA()) and then navigator.push(ScreenB()) it will be another bottom sheet. How can i do the opposite?

Hey, sorry the delay!
Don't know if I understand your question properly, do you want to navigate to another Screen inside the BottomSheet or you want  to navigate to Screen of the a Navigator that is the Content of the Scaffold? Can you give me some examples?

Hey! Sorry for the delay, consider this glow when moving from a bottom sheet to a non-bottom sheet screen.

@Kashif-E same problem, have you found any solution?

@DevSrSouza is there a recommended solution for such a case?

Same here. Does anyone have some solutions?

👋 We're also looking for a solution to this. The structure we adopt is the root composable of our application hosts the BottomSheetNavigator. For example:
@Composable
fun App() {
    BottomSheetNavigator {
        Navigator(screen = MainScreen())
    }
}

When in a bottom sheet screen, LocalNavigator.currentOrThrow is thus the BottomSheetNavigator, which explains why all screens launched from this context open as bottom sheets. LocalNavigator.currentOrThrow.parent is, of course, null.
I think BottomSheetNavigator needs a variant where  BottomSheetNavigatorContent is a Navigator, where such Navigator is made available via a CompositionLocal?

you can pass a navigator to the bottom sheet and then use that inside the bottom sheet to open a new screen instead of the bottom sheet

you can pass a navigator to the bottom sheet and then use that inside the bottom sheet to open a new screen instead of the bottom sheet

This solution worked for me. Thank you @Kashif-E

you can pass a navigator to the bottom sheet and then use that inside the bottom sheet to open a new screen instead of the bottom sheet

if you put the app in the background while bottom sheet is open, app will crash because of Parcelable IOException. I can repeat the crash continuously.

@akardas16  yes you are right, the navigator is not parcelable/serializable. Another option is to pass a result to the original bottom sheet caller; upon receiving the result, you can navigate to the next screen. you can use one of the ways mentioned in this repo for result passing.
navigate to the bottom sheet  from screen A-> hide the bottom sheet with the result -> get the result  in screen A and navigate to screen B

@akardas16 yes you are right, the navigator is not parcelable/serializable. Another option is to pass a result to the original bottom sheet caller; upon receiving the result, you can navigate to the next screen. you can use one of the ways mentioned in this repo for result passing.
navigate to the bottom sheet from screen A-> hide the bottom sheet with the result -> get the result in screen A and navigate to screen B

I have tried a few options which mentioned but looks like they are not working as expected. there is no reason to not using ModalBottomSheet if needs result from bottom sheet.

Can you explain?


OnClick event stops working after new data from props

I am experiencing an issue with onClick events not working after new data is passed to a chart. I have created a sandbox to replicate my issue;
https://codesandbox.io/s/q8nolv1jx4
The onClick event works initially, however after clicking the 'Change Dataset' button, the onClick event stops working. Do you have any suggestions as to what might be causing this?

The method you have used in your CodeSandbox, creates a new function on every render - this React doc explains the issue better than I can https://reactjs.org/docs/faq-functions.html#why-is-binding-necessary-at-all
<ColumnSeries
  id="column"
  data={props.data}
  onClick={function(e) {
    alert("OnClick works! - But we're creating a new function on every render!");
  }}
/>

With React you usually pass functions bound to the component
class MyComponent extends React.Component {
  handleClick = () => {
    alert('Hello');
  }

  render () {
    return <div onClick={this.handleClick} />
  }
}

The reason being, the next time the component renders, the component will receive the same function reference as in the previous render.
I have forked your CodeSandbox, with correct code here: https://codesandbox.io/s/n0jop7968p

Thanks!