Addition of Performance Insights for older Terarform AWS RDS Module

Corresponding Issue(s):

NA

Summary of change(s):

Adding Performance Insights variable for the older flavour of the RDS Metrics with the resource attribute defined here available here.

Reason for Change(s):

Impossible currently to enable Performance Insights within the older module version with Terraform related to 0.0.11 syntax, I'd suggest we tag it as 0.0.15 in this case!

Will the change trigger resource destruction or replacement? If yes, please provide justification:

Will make a resource change to allow the Performance Insights in AWS  [1]

Does this update/change involve issues with other external modules? If so, please describe the scenario.

Would pull in new version of the module for customers where the version is explicitly changed

module "rds" {
source = "git@github.com:rackspace-infrastructure-automation/aws-terraform-rds//?ref=v0.0.14"
...
}

If input variables or output variables have changed or has been added, have you updated the README?
Yes!
Do examples need to be updated based on changes?
Not strictly necessary
Note to the PR requester about Closing PR's
Please message the person that opened the issue when auto closing it on slack, as well as any other stake holders of deep interest. Only close the issue if you believe that the issue is fully resolved with this PR.
This PR may auto close the issue associated with it. If you feel the issue is not resolved please reopen the issue.
[1] https://aws.amazon.com/rds/performance-insights/

Note: I think I need to change this to include the options for the other two attributes:
performance_insights_kms_key_id
performance_insights_retention_period

Hi Folks, @triwats ,
Generally we've taken the stance to only backport bug fixes into the 0.11 branches of these modules, but given that you guys have taken some time and effort we'll look at this to be included.  That said, we wont be able to have a look and do the necessary for a week or 2.  If you guys are happy with your change as it exists now, I'd recommend you fork our repo into your account repo and consume your updated module from there.  Once we've addressed the changes on our end, and assuming no breaking changes between your version and ours, you can then just cut  back over to  the release we publish.

Hi there @gdelvalle - thanks for getting back to me!
I understand the approach here, we could use the fork as the Terraform module source, but we're in a bit of an odd situation where in one Terraform environment the module is included in project, and the production one is referencing this module instead.
Not sure what would happen if I changed the module source, but assuming that it would want to re-create the resources instead of managing them sanely. I am keen to help here if it's useful, I believe the other above two resources would need defining for this to work. I can make that addition.
Great profile photo by the way.

Hi @triwats , changing module source doesn't cause a  resource rebuild ( all other things being equal).  Last time i tried it anyway, but worth verifying.  I think it would cause replacement if our changes required that (changing engines or something of  that nature).
If you can wait, i'll have a look at this by tomorrow, the latest.

@triwats , just now looking.  Per your earlier comment, we would indeed need the other 2 parameters.  Have you updated your solution to include these parameters?
performance_insights_kms_key_id
performance_insights_retention_period

Closing - as this solution is to my knowledge now deprecated.


Setting fullWidth on theme props doesn't seem to work for TextField

[X] This is a v1.x issue.
[X] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior
If  MuiFormControl:{fullWidth:true} is set in the theme than all TextFields should fullwidth by default
Current Behavior
TextField stays at it's default size regardless what prop I try to change in the theme
Steps to Reproduce

Link
Context

Just want all the TextFields to be fullWidth by default
Your Environment

Tech
Version

Material-UI
v3.0.1

React
16.4.2

Browser
Chrome 68

TypeScript
3.01

etc.

@andrew-w-ross The reproduction link doesn't work. Could you update it? Thanks.

@oliviertassinari Weird. It is working for me. I forked it again. Maybe this one works for you: https://codesandbox.io/s/jj77k8w563

@andrew-w-ross Thank you for reporting the issue. It's definitely not working as expected. I'm on it :).

@oliviertassinari Thanks for fixing it.


Swipe должен принимать цвета

:tada: This issue has been resolved in version 7.34.2 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This issue has been resolved in version 7.35.0-next.5 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


CDS-96111 CD RN 1.35.x

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://662f86c038a4da074b67bd7e--harness-developer.netlify.app


impute some of these cells with the trained model

Hi Ruochi,
Nice work!
When I use Higashi to impute the data with 10K resolution, the program always breaks due to memory limitations. So can I impute some of the cells in this data set using a model trained on a complete data set? For example, I train all 4238 cells from the Lee2019 dataset, and then I separately impute the 4238 cells in batches of 1000 cells at a time. But since I was reloading the 1000 cells as I impute each batch, I wondered if this had any impact on the results.
Here is the code I used to train my model：
from higashi.Higashi_wrapper import *
import numpy as np
config = "/home/zzl/ygc/Higashi/tan2021/10K/100K_128/config.JSON"
higashi_model = Higashi(config)
higashi_model.generate_chrom_start_end()
higashi_model.extract_table()
higashi_model.create_matrix()
higashi_model.prep_model()
higashi_model.train_for_embeddings()
higashi_model.train_for_imputation_nbr_0()
higashi_model.train_for_imputation_with_nbr()
Here is my code where I impute 1000 of these cells：
from higashi.Higashi_wrapper import *
import numpy as np
config = "/home/zzl/ygc/Higashi/tan2021/10K/100K_128/config.JSON"
higashi_model = Higashi(config)
higashi_model.generate_chrom_start_end()
higashi_model.extract_table()
higashi_model.create_matrix()
higashi_model.prep_model()
higashi_model.impute_no_nbr()
higashi_model.impute_with_nbr()

Hum.. The only potential error would be if the cells you input is not the first x cells in the original dataset, the cell embedding would be offset a little bit. you can still hack into the system by replacing the cell embeddings .npy file with the embeddings of those subset of cells in the same order.


How do I create objects using edit-config?

Hi
The rfc6241 just show how to replace/delete the configuration,I perform the get-edit operation，and then I found that both "running"and"candidate" is enpty.
so that how can i creat something?
There is no example for edit-config "create" in rfc6241.
So I try it myself,but failed.
The order I try is "edit-config --target candidate --config=/tmp/bbb.xml",
and the content of bbb.xml is :
<config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
	<top xmlns="http://example.com/schema/1.2/config">
		<interface xc:operation="create">
			<name>Ethernet0/0</name>
			<mtu>1500</mtu>
			<address>
				<type>string</type>
				<name><IP_ADDRESS></name>
				<prefix-length>24</prefix-length>
			</address>
		</interface>
	</top>
</config>

Then the cli show this :
ERROR
	type:     application
	tag:      operation-failed
	severity: error
	message:  Sysrepo-internal error

And the server show this:
[ERR]: Type can not be mapped to gpb type '(null)' type 0
[ERR]: Setting type in gpb failed for xpath '(null)'
[ERR]: value duplication failed.
[DBG]: EDIT_CONFIG: stop-on-error (Sysrepo-internal error).

I just want to know how to creat something ，or where to learn about it.
Please tell me what I can do to solve this problem。（i am not good at english,thank you！--fizz）

Thank you for your prompt reply.I've been searching a lot of NETCONF blogs for the last two weeks, but I still can't find what I'm looking for. Thank you for your advice. I've tried again and it still doesn't seem to work.
This time the command I typed was:edit-config --target candidate --config=/tmp/bbb.xml --test test-then-set
The cli send this(I've deleted the “type” line):
NC Session 2: sending message:
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="55"><edit-config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"><target><candidate/></target><test-option>test-then-set</test-option><config><top xmlns="http://example.com/schema/1.2/config">
 <interface>
 <name>Ethernet0/0</name>
    <mtu>1500</mtu>
    <address>
      <name><IP_ADDRESS></name>
      <prefix-length>24</prefix-length>
    </address>
  </interface>
</top>
</config></edit-config></rpc>

Then the server displays this:
[ERR]: Unknown element "top". (/)
Then the cli displays this:
ERROR
type:     application
tag:      operation-not-supported
severity: error
message:  Request could not be completed because the requested operation is not supported by this implementation.
So what mean "Unknown element "top" "?Is it means that the server has no this model?But the content of bbb.xm shouldn't be wrong which I copy from rfc6241 section 7.2.What can I do to solve this ?

Hi,
yes, it means the server does not have any model with namespace http://example.com/schema/1.2/config and top-level container top. You can see all the supported models by executing sysrepoctl -l. It is up to you to create data that fit a particular model, I will not explain to you the basics of YANG.
Regards,
Michal

Hi,
Thank you for your guidance. I can now configure "candidate", but not "running", not even the operation "commit".
Every time I tried to configure "running", the server reported an error:
[ERR]: Error by processing of the set-item request (session id=1621956262): The node is not enabled in running datastore.what can I do to fix this?
Regards,
Fizz

Hi Fizz,
there is a concept of enabled data implemented for running datastore.
Regards,
Michal

Hi Michal,
I just looked at the sysrepo example, and I found that Netopeer2 and the sysrepo example connect to sysrepo in the same way, so how does sysrepo distinguish between managed and non-managed sessions?
Regards,
Fizz

Hi Fizz,
I am trying to get netopeer2 working and facing some issues. Looks like it's been a year since you started this thread. Do you have more info about how to add config with different yang movels? How to add custom yang models and edit config based on that?

Chinese:是的，我现在非常熟悉netopeer2,netconf和sysrepo。首先，你要保证你的netopeer2和sysrepo以及他们的依赖软件库（libyang,libnetconf2,libssh...）正确安装，并且可以正常运行。然后你可以使用sysrepoctl工具安装你的自定义模型，至于配置数据，你可以参考sysrepo里面的example目录下的实例。另外建议你先了解一下整个架构框图。
---Original---
From<EMAIL_ADDRESS>Date: Thu, Dec 17, 2020 08:16 AM
To<EMAIL_ADDRESS>Cc: "State change"<state_change<EMAIL_ADDRESS>Subject: Re: [CESNET/netopeer2] How do I create objects using edit-config? (#484)
Hi Fizz,
I am trying to get netopeer2 working and facing some issues. Looks like it's been a year since you started this thread. Do you have more info about how to add config with different yang movels? How to add custom yang models and edit config based on that?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or unsubscribe.

Hi fizz,
Thanks for your response. I have already gone through sysrepo documentation examples and was able to add custom schema to sysrepo and was able to use C applications in examples to update and fetch data to and from sysrepo. However, I did not find the way to send data to netopeer2 server using netopeer-cli. There is edit-config and edit-data both ask for config file as parameter. I could not find the example for that config file.
Regards,
Alpesh
From: Fizz.shi<EMAIL_ADDRESS>Sent: Wednesday, December 16, 2020 6:09 PM
To: CESNET/netopeer2<EMAIL_ADDRESS>Cc: Rodage, Alpesh Ramesh<EMAIL_ADDRESS>Comment<EMAIL_ADDRESS>Subject: Re: [CESNET/netopeer2] How do I create objects using edit-config? (#484)
Chinese:是的，我现在非常熟悉netopeer2,netconf和sysrepo。首先，你要保证你的netopeer2和sysrepo以及他们的依赖软件库（libyang,libnetconf2,libssh...）正确安装，并且可以正常运行。然后你可以使用sysrepoctl工具安装你的自定义模型，至于配置数据，你可以参考sysrepo里面的example目录下的实例。另外建议你先了解一下整个架构框图。
---Original---
From<EMAIL_ADDRESS>Date: Thu, Dec 17, 2020 08:16 AM
To<EMAIL_ADDRESS>Cc: "State change"<state_change<EMAIL_ADDRESS>Subject: Re: [CESNET/netopeer2] How do I create objects using edit-config? (#484)
Hi Fizz,
I am trying to get netopeer2 working and facing some issues. Looks like it's been a year since you started this thread. Do you have more info about how to add config with different yang movels? How to add custom yang models and edit config based on that?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/CESNET/netopeer2/issues/484#issuecomment-747157352, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ARDZ7QLZYHQAFNBE6VVHKC3SVFR2PANCNFSM4JHGSAVA.

For example: I have my custom yang module loaded in sysrepo which I can fetch from netopeer2-cli:

get-schema --model interfacecfg

MODULE
module interfacecfg {
namespace "demo:interfacecfg";
prefix int;
typedef dotted-quad {
type string {

  pattern "(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])";

}

description

  "Four octets written as decimal numbers and

   separated with the '.' (full stop) character.";

}
container interface {
leaf name {

  type string;

  description

    "Interface name. Example value: GigabitEthernet 0/0/0";

}

leaf address {

  type dotted-quad;

  description

    "Interface IP address. Example value: <IP_ADDRESS>";

}

leaf subnet-mask {

  type dotted-quad;

  description

    "Interface subnet mask. Example value: <IP_ADDRESS>";

}

leaf enabled {

  type boolean;

  default "false";

  description

    "Enable or disable the interface. Example value: true";

}

}
}

Now I want to add config using netopeer2-cli. I am not sure whether to use edit-data or edit-config. I tried both but failed failed.

edit-data --datastore running --config=cfg1.xml

ERROR
    type:     application

    tag:      operation-failed

    severity: error

    path:     /

    message:  Unknown element "interface".

edit-config --target running --config=cfg1.xml

ERROR
    type:     application

    tag:      operation-failed

    severity: error

    path:     /

    message:  Unknown element "interface".

Here are contents of  cfg1.xml:

<name>Ethernet0/0</name>

<address><IP_ADDRESS></address>

I'm sure I am missing something but not sure what.
Please help me here.
Regards,
Alpesh
From: Rodage, Alpesh Ramesh
Sent: Thursday, December 17, 2020 1:47 PM
To: CESNET/netopeer2<EMAIL_ADDRESS>CESNET/netopeer2<EMAIL_ADDRESS>Cc: Comment<EMAIL_ADDRESS>Subject: RE: [CESNET/netopeer2] How do I create objects using edit-config? (#484)
Hi fizz,
Thanks for your response. I have already gone through sysrepo documentation examples and was able to add custom schema to sysrepo and was able to use C applications in examples to update and fetch data to and from sysrepo. However, I did not find the way to send data to netopeer2 server using netopeer-cli. There is edit-config and edit-data both ask for config file as parameter. I could not find the example for that config file.
Regards,
Alpesh
From: Fizz.shi <notifications<EMAIL_ADDRESS>Sent: Wednesday, December 16, 2020 6:09 PM
To: CESNET/netopeer2 <netopeer2<EMAIL_ADDRESS>Cc: Rodage, Alpesh Ramesh <alpesh.ramesh.rodage<EMAIL_ADDRESS>Comment <comment<EMAIL_ADDRESS>Subject: Re: [CESNET/netopeer2] How do I create objects using edit-config? (#484)
Chinese:是的，我现在非常熟悉netopeer2,netconf和sysrepo。首先，你要保证你的netopeer2和sysrepo以及他们的依赖软件库（libyang,libnetconf2,libssh...）正确安装，并且可以正常运行。然后你可以使用sysrepoctl工具安装你的自定义模型，至于配置数据，你可以参考sysrepo里面的example目录下的实例。另外建议你先了解一下整个架构框图。
---Original---
From<EMAIL_ADDRESS>Date: Thu, Dec 17, 2020 08:16 AM
To<EMAIL_ADDRESS>Cc: "State change"<state_change<EMAIL_ADDRESS>Subject: Re: [CESNET/netopeer2] How do I create objects using edit-config? (#484)
Hi Fizz,
I am trying to get netopeer2 working and facing some issues. Looks like it's been a year since you started this thread. Do you have more info about how to add config with different yang movels? How to add custom yang models and edit config based on that?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/CESNET/netopeer2/issues/484#issuecomment-747157352, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ARDZ7QLZYHQAFNBE6VVHKC3SVFR2PANCNFSM4JHGSAVA.

我看了一下你的自定义模型，以及你的配置文件，好像都没有什么问题，但是报错信息很明显提示顶层容器interfere未知，以我的经验，出现这种错误有以下几种情况:1，你的模型缺乏某些元素（这有可能是sysrepo或者netopeer本身的bug导致的，所以尽量补全模型中的其它细节，如yang version,revision等。关于这点你可以尝试在一些简单的并且已经成功配置过数据的模型上进行修改，一部分一部分地修改成你想要的模型）。2，开源软件自身bug导致的元素未知，不管是sysrepo还是netopeer都或多或少有点bug，这点你是知道的，不然也不会有这么多人在这里提问，我也曾经反馈过几个。所以为了尽量避开bug，你可以尝试以下几点。1，sysrepo,netconf,yang,netopeer这四个软件都使用最新正式发布版本。2，每次进行模型安装等重大操作之前，先把其他进程杀掉，如netopeer2-server，应用程序等（所有调用了libsysrepo的进程）。并且在安装完成以后，重启系统或删除/dev/shm目录下以sr开头的所有文件，那是sysrepo产生的临时文件，删除了好让它们重新构造。
另外，我一直使用edit-config进行数据编辑，也就是你上诉的第二种方式。
祝你好运
---Original---
From<EMAIL_ADDRESS>Date: Fri, Dec 18, 2020 08:18 AM
To<EMAIL_ADDRESS>Cc: "Mention"<mention<EMAIL_ADDRESS>Subject: Re: [CESNET/netopeer2] How do I create objects using edit-config? (#484)
For example: I have my custom yang module loaded in sysrepo which I can fetch from netopeer2-cli:

> get-schema --model interfacecfg
MODULE
module interfacecfg {
namespace "demo:interfacecfg";
prefix int;
typedef dotted-quad {
 type string {

   pattern "(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])";

 }

 description

   "Four octets written as decimal numbers and

    separated with the '.' (full stop) character.";

}
container interface {
 leaf name {

   type string;

   description

     "Interface name. Example value: GigabitEthernet 0/0/0";

 }

 leaf address {

   type dotted-quad;

   description

     "Interface IP address. Example value: <IP_ADDRESS>";

 }

 leaf subnet-mask {

   type dotted-quad;

   description

     "Interface subnet mask. Example value: <IP_ADDRESS>";

 }

 leaf enabled {

   type boolean;

   default "false";

   description

     "Enable or disable the interface. Example value: true";

 }

}
}
>

Now I want to add config using netopeer2-cli. I am not sure whether to use edit-data or edit-config. I tried both but failed failed.
> edit-data --datastore running --config=cfg1.xml
ERROR
     type:     application

     tag:      operation-failed

     severity: error

     path:     /

     message:  Unknown element "interface".

> edit-config --target running --config=cfg1.xml
ERROR
     type:     application

     tag:      operation-failed

     severity: error

     path:     /

     message:  Unknown element "interface".

>
Here are contents of  cfg1.xml:
<interface xmlns="demo:interfacecfg">
 <name>Ethernet0/0</name>

 <address><IP_ADDRESS></address>

</interface>
I'm sure I am missing something but not sure what.
Please help me here.
Regards,
Alpesh
From: Rodage, Alpesh Ramesh
Sent: Thursday, December 17, 2020 1:47 PM
To: CESNET/netopeer2<EMAIL_ADDRESS>CESNET/netopeer2<EMAIL_ADDRESS>Cc: Comment<EMAIL_ADDRESS>Subject: RE: [CESNET/netopeer2] How do I create objects using edit-config? (#484)
Hi fizz,
Thanks for your response. I have already gone through sysrepo documentation examples and was able to add custom schema to sysrepo and was able to use C applications in examples to update and fetch data to and from sysrepo. However, I did not find the way to send data to netopeer2 server using netopeer-cli. There is edit-config and edit-data both ask for config file as parameter. I could not find the example for that config file.
Regards,
Alpesh
From: Fizz.shi <notifications<EMAIL_ADDRESS>Sent: Wednesday, December 16, 2020 6:09 PM
To: CESNET/netopeer2 <netopeer2<EMAIL_ADDRESS>Cc: Rodage, Alpesh Ramesh <alpesh.ramesh.rodage<EMAIL_ADDRESS>Comment <comment<EMAIL_ADDRESS>Subject: Re: [CESNET/netopeer2] How do I create objects using edit-config? (#484)
Chinese:是的，我现在非常熟悉netopeer2,netconf和sysrepo。首先，你要保证你的netopeer2和sysrepo以及他们的依赖软件库（libyang,libnetconf2,libssh...）正确安装，并且可以正常运行。然后你可以使用sysrepoctl工具安装你的自定义模型，至于配置数据，你可以参考sysrepo里面的example目录下的实例。另外建议你先了解一下整个架构框图。
---Original---
From<EMAIL_ADDRESS>Date: Thu, Dec 17, 2020 08:16 AM
To: "CESNET/netopeer2"<netopeer2@noreply.github.com>;
Cc: "State change"<state_change@noreply.github.com>;"Fizz.shi"<1210303246@qq.com>;
Subject: Re: [CESNET/netopeer2] How do I create objects using edit-config? (#484)
Hi Fizz,
I am trying to get netopeer2 working and facing some issues. Looks like it's been a year since you started this thread. Do you have more info about how to add config with different yang movels? How to add custom yang models and edit config based on that?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<https://github.com/CESNET/netopeer2/issues/484#issuecomment-747157352>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ARDZ7QLZYHQAFNBE6VVHKC3SVFR2PANCNFSM4JHGSAVA>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

Hi Fizz,
It worked after creating fresh setup. No other changes made in yang schema or anything else. Not sure what was wrong.
Thanks,
Alpesh
From: Fizz.shi<EMAIL_ADDRESS>Sent: Thursday, December 17, 2020 6:52 PM
To: CESNET/netopeer2<EMAIL_ADDRESS>Cc: Rodage, Alpesh Ramesh<EMAIL_ADDRESS>Comment<EMAIL_ADDRESS>Subject: Re: [CESNET/netopeer2] How do I create objects using edit-config? (#484)
我看了一下你的自定义模型，以及你的配置文件，好像都没有什么问题，但是报错信息很明显提示顶层容器interfere未知，以我的经验，出现这种错误有以下几种情况:1，你的模型缺乏某些元素（这有可能是sysrepo或者netopeer本身的bug导致的，所以尽量补全模型中的其它细节，如yang version,revision等。关于这点你可以尝试在一些简单的并且已经成功配置过数据的模型上进行修改，一部分一部分地修改成你想要的模型）。2，开源软件自身bug导致的元素未知，不管是sysrepo还是netopeer都或多或少有点bug，这点你是知道的，不然也不会有这么多人在这里提问，我也曾经反馈过几个。所以为了尽量避开bug，你可以尝试以下几点。1，sysrepo,netconf,yang,netopeer这四个软件都使用最新正式发布版本。2，每次进行模型安装等重大操作之前，先把其他进程杀掉，如netopeer2-server，应用程序等（所有调用了libsysrepo的进程）。并且在安装完成以后，重启系统或删除/dev/shm目录下以sr开头的所有文件，那是sysrepo产生的临时文件，删除了好让它们重新构造。
另外，我一直使用edit-config进行数据编辑，也就是你上诉的第二种方式。
祝你好运
---Original---
From<EMAIL_ADDRESS>Date: Fri, Dec 18, 2020 08:18 AM
To<EMAIL_ADDRESS>Cc: "Mention"<mention<EMAIL_ADDRESS>Subject: Re: [CESNET/netopeer2] How do I create objects using edit-config? (#484)
For example: I have my custom yang module loaded in sysrepo which I can fetch from netopeer2-cli:

> get-schema --model interfacecfg
MODULE
module interfacecfg {
namespace "demo:interfacecfg";
prefix int;
typedef dotted-quad {
type string {
pattern "(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])";
}
description
"Four octets written as decimal numbers and
separated with the '.' (full stop) character.";
}
container interface {
leaf name {
type string;
description
"Interface name. Example value: GigabitEthernet 0/0/0";
}
leaf address {
type dotted-quad;
description
"Interface IP address. Example value: <IP_ADDRESS>";
}
leaf subnet-mask {
type dotted-quad;
description
"Interface subnet mask. Example value: <IP_ADDRESS>";
}
leaf enabled {
type boolean;
default "false";
description
"Enable or disable the interface. Example value: true";
}
}
}
>

Now I want to add config using netopeer2-cli. I am not sure whether to use edit-data or edit-config. I tried both but failed failed.
> edit-data --datastore running --config=cfg1.xml
ERROR
type: application
tag: operation-failed
severity: error
path: /
message: Unknown element "interface".
> edit-config --target running --config=cfg1.xml
ERROR
type: application
tag: operation-failed
severity: error
path: /
message: Unknown element "interface".
>
Here are contents of cfg1.xml:
<interface xmlns="demo:interfacecfg">
<name>Ethernet0/0</name>
<address><IP_ADDRESS></address>
</interface>
I'm sure I am missing something but not sure what.
Please help me here.
Regards,
Alpesh
From: Rodage, Alpesh Ramesh
Sent: Thursday, December 17, 2020 1:47 PM
To: CESNET/netopeer2<EMAIL_ADDRESS>CESNET/netopeer2<EMAIL_ADDRESS>Cc: Comment<EMAIL_ADDRESS>Subject: RE: [CESNET/netopeer2] How do I create objects using edit-config? (#484)
Hi fizz,
Thanks for your response. I have already gone through sysrepo documentation examples and was able to add custom schema to sysrepo and was able to use C applications in examples to update and fetch data to and from sysrepo. However, I did not find the way to send data to netopeer2 server using netopeer-cli. There is edit-config and edit-data both ask for config file as parameter. I could not find the example for that config file.
Regards,
Alpesh
From: Fizz.shi <notifications<EMAIL_ADDRESS>Sent: Wednesday, December 16, 2020 6:09 PM
To: CESNET/netopeer2 <netopeer2<EMAIL_ADDRESS>Cc: Rodage, Alpesh Ramesh <alpesh.ramesh.rodage<EMAIL_ADDRESS>Comment <comment<EMAIL_ADDRESS>Subject: Re: [CESNET/netopeer2] How do I create objects using edit-config? (#484)
Chinese:是的，我现在非常熟悉netopeer2,netconf和sysrepo。首先，你要保证你的netopeer2和sysrepo以及他们的依赖软件库（libyang,libnetconf2,libssh...）正确安装，并且可以正常运行。然后你可以使用sysrepoctl工具安装你的自定义模型，至于配置数据，你可以参考sysrepo里面的example目录下的实例。另外建议你先了解一下整个架构框图。
---Original---
From<EMAIL_ADDRESS>Date: Thu, Dec 17, 2020 08:16 AM
To: "CESNET/netopeer2"<netopeer2@noreply.github.com>;
Cc: "State change"<state_change@noreply.github.com>;"Fizz.shi"<1210303246@qq.com>;
Subject: Re: [CESNET/netopeer2] How do I create objects using edit-config? (#484)
Hi Fizz,
I am trying to get netopeer2 working and facing some issues. Looks like it's been a year since you started this thread. Do you have more info about how to add config with different yang movels? How to add custom yang models and edit config based on that?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<https://github.com/CESNET/netopeer2/issues/484#issuecomment-747157352>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ARDZ7QLZYHQAFNBE6VVHKC3SVFR2PANCNFSM4JHGSAVA>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/CESNET/netopeer2/issues/484#issuecomment-747834378, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ARDZ7QMQC3RDQIAJ4FKCDYTSVK7WHANCNFSM4JHGSAVA.


Implement solver_infinity for XPRESS and make it available in Java

Implement solver_infinity for XPRESS and make it available in Java
Add a non-regression test for this reacent bug fix: https://github.com/google/or-tools/pull/4214

cleaned up the commits here : https://github.com/google/or-tools/pull/4313


Error when reading python_version from model metadata

Describe the bug
2023/01/30 20:46:55.616070366 Unexpected error while running Python API: 'NoneType' object is not iterable
2023/01/30 20:46:55.629334829 Traceback (most recent call last):
2023/01/30 20:46:55.629366867   File "/opt/rstudio-connect/python/connect_fastapi_runtime.py", line 471, in <module>
2023/01/30 20:46:55.629402780     main(sys.argv)
2023/01/30 20:46:55.629437213   File "/opt/rstudio-connect/python/connect_fastapi_runtime.py", line 410, in main
2023/01/30 20:46:55.629438248     user_app = import_app(entrypoint, app_mode)
2023/01/30 20:46:55.629450763   File "/opt/rstudio-connect/python/connect_common_runtime.py", line 132, in import_app
2023/01/30 20:46:55.629451330     module = import_module(module_name)
2023/01/30 20:46:55.629457614   File "/opt/python/3.9.2/lib/python3.9/importlib/__init__.py", line 127, in import_module
2023/01/30 20:46:55.629458124     return _bootstrap._gcd_import(name[level:], package, level)
2023/01/30 20:46:55.629471240   File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
2023/01/30 20:46:55.629473049   File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
2023/01/30 20:46:55.629494192   File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
2023/01/30 20:46:55.629549681   File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
2023/01/30 20:46:55.629560240   File "<frozen importlib._bootstrap_external>", line 790, in exec_module
2023/01/30 20:46:55.629560893   File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
2023/01/30 20:46:55.629569775   File "/opt/rstudio-connect/mnt/app/app.py", line 7, in <module>
2023/01/30 20:46:55.629570297     v = VetiverModel.from_pin(b, 'ap311532/cars_mpg', version = '100')
2023/01/30 20:46:55.629582672   File "/opt/rstudio-connect/mnt/app/python/env/lib/python3.9/site-packages/vetiver/vetiver_model.py", line 119, in from_pin
2023/01/30 20:46:55.629598822     return cls(
2023/01/30 20:46:55.629630152   File "/opt/rstudio-connect/mnt/app/python/env/lib/python3.9/site-packages/vetiver/vetiver_model.py", line 94, in __init__
2023/01/30 20:46:55.629634383     self.metadata = translator.create_meta(metadata)
2023/01/30 20:46:55.629657150   File "/opt/rstudio-connect/mnt/app/python/env/lib/python3.9/site-packages/vetiver/handlers/base.py", line 95, in create_meta
2023/01/30 20:46:55.629658320     return VetiverMeta.from_dict(metadata, pip_name)
2023/01/30 20:46:55.629671020   File "/opt/rstudio-connect/mnt/app/python/env/lib/python3.9/site-packages/vetiver/meta.py", line 30, in from_dict
2023/01/30 20:46:55.629671562     python_version = tuple(metadata.get("python_version", sys.version_info))
2023/01/30 20:46:55.629685708 TypeError: 'NoneType' object is not iterable

To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
The model runs without errors
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: py3.9.2-ubuntu1804
Browser [e.g. chrome, safari]
Version ``

Additional context
This came up during a customer support ticket from the Connect team. Still waiting to hear back from the customer on the exact Connect/vetiver versions

Thank you for this report! It looks like there is a bug if None is supplied as Python version, since it is trying to coerce it into a tuple. I'm adding a fix in #149 to add proper handling around this.


Just another way to compile a c program.

[ x] I have read freeCodeCamp's contribution guidelines.
[ ] My pull request has a descriptive title (not a vague title like Update index.md)
[ ] My pull request targets the master branch of freeCodeCamp.
[ ] None of my changes are plagiarized from another source without proper attribution.
[ ] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Changing the order of arguments is not a useful contribution.


Upgrade and automate upgrading of K version for booster integration tests

https://github.com/runtimeverification/hs-backend-booster/blob/main/flake.nix#L5

Currently blocked on updating to latest version of K. THis should be unblocked once #264 is merged

Decided to not automate the K version upgrade (too much traffic). Maybe a cron job could be set up but we can do it manually.


Make:Job command failure

Prerequisites
Follow README file instructions in a brand new Adonis 4.1 project.
Package version
0.1.4
Node.js and npm version
Node 10.15.3 - Npm 6.9.0
Sample Code (to reproduce the issue)
I followed the installation as README file describe. When I ran the command adonis make:job ProcessTask --queue high I received the error:
Error: Cannot find module '../app/Commands/MakeJob'

1 Object.app.bind [as closure]
  /Users/finger/trackmob/hub-core/node_modules/adonisjs-queue/providers/JobCommandsProvider.js:15

2 Ioc._resolveBinding
  /Users/finger/trackmob/hub-core/node_modules/@adonisjs/fold/src/Ioc/index.js:233

3 Ioc.use
  /Users/finger/trackmob/hub-core/node_modules/@adonisjs/fold/src/Ioc/index.js:731

4 Kernel.addCommand
  /Users/finger/trackmob/hub-core/node_modules/@adonisjs/ace/src/Kernel/index.js:182

5 JobCommandsProvider.boot
  /Users/finger/trackmob/hub-core/node_modules/adonisjs-queue/providers/JobCommandsProvider.js:38

6 _.filter.map
  /Users/finger/trackmob/hub-core/node_modules/@adonisjs/fold/src/Registrar/index.js:147

7 arrayMap
  /Users/finger/trackmob/hub-core/node_modules/lodash/lodash.js:639

8 Function.map
  /Users/finger/trackmob/hub-core/node_modules/lodash/lodash.js:9556

9 interceptor
  /Users/finger/trackmob/hub-core/node_modules/lodash/lodash.js:16993

10 thru
  /Users/finger/trackmob/hub-core/node_modules/lodash/lodash.js:8797

11 anonymous
  /Users/finger/trackmob/hub-core/node_modules/lodash/lodash.js:4374

12 arrayReduce
  /Users/finger/trackmob/hub-core/node_modules/lodash/lodash.js:683

After fixing this bug in the package, I faced the following error running the same command:
invalid value for "--queue" flag: value is either 'high' or 'low'

Pull Request to fix both problems
released 0.1.5

Thanks for the PR. All merged!


Underlying representation can be Micro, fixed-precision number?

Thanks for the work on this library!
I toyed around with changing the underlying type from Int to Micro, which is a fixed-precision number that with precision of micro-stuff.  It's basically a wrapper over Integer, so:
ms :: Micro
ms = MkFixed 1000
-- show ms => 0.001

The reason why I think Micro might be a nicer way to handle this than Int would be because the type Micro tells the user what kind of number the function is expecting (it's in microseconds, not seconds or milliseconds), which is kinda neat potentially.
The "drawback" is that the underlying representation is Integer, which is supposed to be "less performant", but I think for reasonable use cases Integer and Int work with the comparable performance under the ranges you can expect.  And I actually was inspired to make this switch because I was running this on ghcjs --- and on ghcjs, for some reason, Int is really tiny, so even calculating a duration of a day would casue it to overflow.
Another upside of this is, because now it's using semantically meaningful types, realToFrac works as expected, so we can ditch the special functions for NominalDiffTime and DiffTime.  They're just all:
(humanReadableDuration . realToFrac) :: Real a => a -> String

So I've removed them too (and removed the time dependency), and replaced it with a generic Real function, which is neat in that it can now take any Real ... including Doubles of seconds, if someone was so inclined.  I believe that in doing this, we can get it to inter-op with so many other "duration"/"time" based libraries, because any Duration type is bound to offer a Real instance...but I don't know a good name for it.  I used humanReadableDefinition', but ... :/
Anyways, this has just been useful for me for my own usage.  Feel free to close and move on if it doesn't fit in with the style/spirit of the library! :)  Thanks again for the library and the work.

Well done! Its even greater! Thanks!

no problem and thanks to you again!


Trigger JuliaRegistrator

@JuliaRegistrator register
Release notes:
v0.1.0 is the initial release of GradValley.jl

Registration pull request created: JuliaRegistries/General/90330
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.1.0 -m "<description of version>" d31c323caef4c053c724caa9b6bc0966d9f312c7
git push origin v0.1.0


Paths not visible in repo view

How do I get the file path to show up again?
With these settings

It looks like this

With "File Paths" deselected it looks like this

Looks like a regression from #5185.
https://github.com/abapGit/abapGit/blob/c7e4af3be2d196f578b49165889738b44fc7e79f/src/ui/zcl_abapgit_gui_page_repo_view.clas.abap#L1044-L1050
If userexit isn't implemented error occurs.


added rating support for gravatar url

added rating params to add rating supported on Gravatar #6
#hacktoberfest

@fredbaa Somebody has already volunteered to fix that issue, so they take priority. I’m not going to make this PR invalid, just closing it, so it should still count for Hacktoberfest.


10x count readme

Replacement pull request for #11 against master instead of defunct 10x branch.

Rebased. Back to you, @mckinsel. :)

This PR I guess highlights the problems inherent with rebasing; another PR got merged since I did this that deleted some files. The merge commit shows 17 files changed, when I'm only adding one file. Talked it over with marcus. Going to make a third try.


App code cleanup

Remove any unused code under the client/app/components folder.
The code should be updated, on the Javascript side especially, to ensure the line spacing/indenting is consistent across the codebase.

some unused code has been left behind, as they are to be implemented in the future. the rest of the unused code has been promptly deleted.


menu bug

Hi, on left hand side menu icons are not showing up. On tab panel its fine.
What can be the issue?

Well, you haven't given us very much to go by...
Can you include a screenshot?

It would also help us if you told us what themes and packages you have installed, so we can help pinpoint the issue...

@rzubrycki We're still waiting on your input.

I'm closing this as a non-issue. From your brief description, it sounds like you're using Seti UI. See here for a description of the simple fix.
If this is a different issue, then please provide adequate details. Thank you.


Bind parameters in where_object, where_object_changes

Fixes #696
I don't have a lot of experience using postgres' json and jsonb through activerecord, but it looks like one can use placeholders, e.g.
User.where('preferences @> ?', {newsletter: true}.to_json)

So, I tried to replace string interpolation with placeholders, and it seems to fix #696

Note to self: I found "Using PostgreSQL and jsonb with Ruby on Rails" by Nando Vieira helpful while working on this.


[tsp-client] Upgrade to 0.11.2

Blocked until @azure-tools/rest-api-diff upgrades its dependencies, to avoid loading multiple versions of packages like @azure-tools/typespec-autorest.


Convert full project

Add a command to recurse through a whole folder and convert all .rst files to .md ones

closed in #18


Update main.cpp

Fix the error generated by centos: ‘strlen’ was not declared in this scope exception

Placed it inside of "includes.h" thanks for the feed back!


Bulk slp balances for address.

This addresses Issue 322

Pull Request Test Coverage Report for Build 2576

0 of 0   changed or added relevant lines in 0 files are covered.
321 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-1.7%) to 68.355%

Files with Coverage Reduction
New Missed Lines
%

dist/routes/v2/slp.js
321
44.19%

Totals

Change from base Build 2568:
-1.7%

Covered Lines:
2234

Relevant Lines:
3076

💛  - Coveralls


vim.fs.joinpath not available on stable

Running require 'neotest-zig' throws an error in log.lua on line 35 because the vim.fs.joinpath API is only available on nightly.

Is it just joinpath function, or the whole vim.fs that is not available in tagged version? Because this pluging uses vim.fs quite a lot, so not sure if it's better to create polyfills for these functions, or just wait for nvim 0.10 release, which seems 97% done.
I currently away, so cannot resolve this right away

The API is so similar to vim.fs.normalize that I don't think it's even necessary to polyfill. Hopefully this will look alright to you.

Merged, thanks for the PR!
Does the plugin work ok on 0.9.5 for you now?

Works for me! Thanks for merging.


Template merge 2.13.1

Bring pipeline up to date with template version 2.13.1.
Make sure everything is linting.

PR checklist

[x] This comment contains a description of changes (with reason).
[ ] If you've fixed a bug or added code that should be tested, add tests!
[ ] If you've added a new tool - have you followed the pipeline conventions in the contribution docs
[ ] If necessary, also make a PR on the fellen31/skierfe branch on the nf-core/test-datasets repository.
[x] Make sure your code lints (nf-core lint).
[x] Ensure the test suite passes (nextflow run . -profile test,docker --outdir <OUTDIR>).
[x] Usage Documentation in docs/usage.md is updated.
[ ] Output Documentation in docs/output.md is updated.
[x] CHANGELOG.md is updated.
[x] README.md is updated (including new tool citations and authors/contributors).

Thanks! And thanks for limiting your review to the changes, there's probably so much to change I think that's the way we have to go for a while.. 😄


There is a problem getting a guest account

Checklist

[X] I am able to reproduce the bug with the latest version.
[X] I made sure that there are no existing issues - open or closed - which I could contribute my information to.
[X] I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
[X] This issue contains only one bug, that only occurs in Squawker

Affected version
3.6.2
Steps to reproduce the bug

Launch the app
See error

Expected behavior

Launch the app
Guest account gets created

Actual behavior

Launch the app
Guest account cannot be created

Screenshots/Screen recordings
No response
Logs
No response
Affected Android/Custom ROM version
Android 13 / MiUi 14
Affected device model
Xiaomi Redmi Note 12 4G
Additional information
No response

I'm unsure if it was the fact that another guest account was created on both networks, I'll be checking over the next week and if this reoccurs I will be re-opening the issue

This is occurring for me too, just updated to the latest version - V3.6.4+300013033 and it's still happening :(

See my comment of issue #157 and also my other comment of the same issue.

For me too

Also happening for me, fresh install.

Same here. I tried fritter, there it works.

@RichardRMatthews You say that "it works" on Fritter.
Which version of Fritter? Is this a fork of Fritter?

@j-fbriere hi. I used fritter 2.16.4 from F-Droid.
In fritter I can import my followers list, but it crashes afterwards. In squawker I can not even do that.

The version v3.7.0 allows you to use a regular Twitter/X account.
To add the information (username/password) of your regular Twitter/X account, go to Settings / Account and tap on the plus icon.
Since each account is rate limited (same with the guest accounts), you can add as many as you want.
This wiki page explains how to create a Twitter/X account that is privacy oriented.


Schema registry update kafka zk

Updating Schema Registry Kafka dependency to 0.8.5 to keep up with the latest. This required a few minor changes to the subchart configuration:

default persistence off
change the zookeeper servers variable to the new replicaCount variable

Also added some missing documentation to README and the values file.

@unguiculus @viglesiasce if either of you have a moment to take a quick glance at these changes it would be much appreciated!

@davidkarlsen thank you for the review! Excellent points -- addressed both

@davidkarlsen updated again -- thank you for the detailed review 👍

/lgtm
/ok-to-test


Kanban status field not available

What happened?
The necessary field, blog-stage is in the metadata. It is showing in the include fields list but not in the status drop down as shown in the recorded gif.

What did you expect to happen?
I expected the blog-stage option to be in the drop down list so I could use it as the option for the column headers.
How can we reproduce it (as minimally and precisely as possible)?
Create a project and see if all the metadata options are there to select.
Anything else we need to know?
No response
Plugin version
1.17.3
Obsidian version
1.6.5
OS
macOS

I'm experiencing the same problem. For me, it appears to relate to fields that are already configured with multiple-choice  options (created via Meta-Bind plugin).

So, it appears that all the properties that aren't available in the Kanban board are the ones marked with a '+' in the following screenshots.

Grouping kanban cards by list / tags / multitext fields is not yet supported. There is an existing request and associated discussions noted down in #117.

Close as duplicate


Mariana walk

Last night I forgot to do pull request...

Now you know, do it as we discussed yesterday 😉


Do not send email notifications for messages already present when account is created

As discussed on CZO, we currently send missed message email notifications for Welcome Bot emails, and replying to those notifications via email fails to send a message back to Welcome Bot.
To address this, we should never send missed message email notifications for messages that are already present when you create your account.
Note that this may be hard to reproduce in a UI, since Zulip won't send these notifications for messages that are marked as read, and completing registration in the web UI lands you in a private messages view that will mark these as read, and so you may need to do something tricky like not focusing the browser tab during account creation (or maybe simpler, make zerver/views/home.py throw an exception, so one doesn't).
But it likely suffices to fix this via writing thoughtful tests, without reproducing in a UI anyway.

@zulipbot claim

Update -- A PR has already been raised and post release label added to merge after 6.0 release.
Details

@zulipbot claim


gene IDs - database support

Objective: Create list of public databases containing gene ID's for gene mapping to ensure standardization && implement support for mapping these IDs into the GE (gene expression) matrices.
This will help enforce standardization in biology (at least in this package).
Description:

implement support for these databases (i.e., entrez, refseq, etc)
supported databases should be publicly accessible, open source, etc.
supported databases should preferrably have manual curation if possible
have multiple databases to cover some of the most widely used model organisms (human, mouse, etc etc)
implement option for the event that someone is using a species for which little to no sequencing databases with genes exist

Could look into mygene.
They use the below annotation data. Their api is pretty easy. They're switching to their biothings api client which encompasses their variant and taxonomy apis.

It also may be useful to take a look at http://biogps.org/ which encompasses a number of the major gene databases. They have an API.

We discussed this online - I proposed that we use the Ensembl database, as they maintain IDs, and have mappings to RefseqIDs, and other systems, and are maintained frequently.  Also doens't require us to host a database anywhere, as we can use the publicly available db's.

@apfejes Awesome! Wasn't sure if you guys talked about it or how expansive you wanted to be with databases. I'd love to help out in that regard (I know you have a strong background with working with Ensembl as well).

I'm closing this issue since we had decided to stick with Ensembl during last week's meeting.


docs($animate): detail options object

Document options object used in various $animate methods

This should address #12645.

This should indeed fix #12645. Feel free to add Fixes #12645 in the commit message.


NotImplementedError from tf.constant in trivial case

Issue type
Bug
Have you reproduced the bug with TensorFlow Nightly?
No
Source
binary
TensorFlow version
2.16.1
Custom code
Yes
OS platform and distribution
Linux Ubuntu 20.04
Mobile device
No response
Python version
3.10.12
Bazel version
No response
GCC/compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current behavior?
Trying to make a tensor that has the same value for all items in the batch, see the following bare minimum code.
I get NotImplementedError: cannot convert a symbolic tf.Tensor (custom_model_5_1/strided_slice:0) to a numpy array.
I am not trying to use numpy, this is an internal error.
Standalone code to reproduce the issue
import tensorflow as tf
import keras
import numpy as np

class CustomModel(keras.models.Model):
    def call(self, inputs):
        inputs_shape = tf.shape(inputs)
        return tf.constant(3.0, shape=(inputs_shape[0], 1), dtype=inputs.dtype)  # NotImplementedError
        #return 3.0 * tf.ones(shape=(inputs_shape[0], 1), dtype=inputs.dtype)  # OK

model = CustomModel()
model.compile(run_eagerly=False, loss="mse")  # OK if run_eagerly=True
model.fit(np.array([[0.0]]), np.array([[0.0]]))

### Relevant log output

```shell
{
	"name": "NotImplementedError",
	"message": "Exception encountered when calling CustomModel.call().

Cannot convert a symbolic tf.Tensor (custom_model_5_1/strided_slice:0) to a numpy array. This error may indicate that you're trying to pass a Tensor to a NumPy call, which is not supported.

Arguments received by CustomModel.call():
  • inputs=tf.Tensor(shape=(None, 1), dtype=float32)",
	"stack": "---------------------------------------------------------------------------
NotImplementedError                       Traceback (most recent call last)
Cell In[6], line 13
     11 model = CustomModel()
     12 model.compile(run_eagerly=False, loss=\"mse\")  # OK if run_eagerly=True
---> 13 model.fit(np.array([[0.0]]), np.array([[0.0]]))

File /usr/local/lib/python3.10/dist-packages/keras/src/utils/traceback_utils.py:122, in filter_traceback.<locals>.error_handler(*args, **kwargs)
    119     filtered_tb = _process_traceback_frames(e.__traceback__)
    120     # To get the full stack trace, call:
    121     # `keras.config.disable_traceback_filtering()`
--> 122     raise e.with_traceback(filtered_tb) from None
    123 finally:
    124     del filtered_tb

Cell In[6], line 8, in CustomModel.call(self, inputs)
      6 def call(self, inputs):
      7     inputs_shape = tf.shape(inputs)
----> 8     return tf.constant(3.0, shape=(inputs_shape[0], 1), dtype=inputs.dtype)

File /usr/local/lib/python3.10/dist-packages/numpy/core/fromnumeric.py:3100, in prod(a, axis, dtype, out, keepdims, initial, where)
   2979 @array_function_dispatch(_prod_dispatcher)
   2980 def prod(a, axis=None, dtype=None, out=None, keepdims=np._NoValue,
   2981          initial=np._NoValue, where=np._NoValue):
   2982     \"\"\"
   2983     Return the product of array elements over a given axis.
   2984
   (...)
   3098     10
   3099     \"\"\"
-> 3100     return _wrapreduction(a, np.multiply, 'prod', axis, dtype, out,
   3101                           keepdims=keepdims, initial=initial, where=where)

File /usr/local/lib/python3.10/dist-packages/numpy/core/fromnumeric.py:88, in _wrapreduction(obj, ufunc, method, axis, dtype, out, **kwargs)
     85         else:
     86             return reduction(axis=axis, out=out, **passkwargs)
---> 88 return ufunc.reduce(obj, axis, dtype, out, **passkwargs)

NotImplementedError: Exception encountered when calling CustomModel.call().

Cannot convert a symbolic tf.Tensor (custom_model_5_1/strided_slice:0) to a numpy array. This error may indicate that you're trying to pass a Tensor to a NumPy call, which is not supported.

Arguments received by CustomModel.call():
  • inputs=tf.Tensor(shape=(None, 1), dtype=float32)"
}

I tried running your code on Colab using TensorFlow v2.16.1, 2.17.0 and the nightly version. I faced the same issue. Please find the gist here for reference.
Thank you!


Add applicant related operations

Purpose

Add new applicant related operations to the connector
Fixes https://github.com/ballerina-platform/ballerina-extended-library/issues/294

Goals

Add new functionality to PeopleHR connector

Approach

Implemented using https://apidocs.peoplehr.com/#tag/Applicant

Automation tests

Unit tests

Passed

Integration tests

Passed

Security checks

Followed secure coding standards in http://wso2.com/technical-reports/wso2-secure-engineering-guidelines? yes
Ran FindSecurityBugs plugin and verified report? no
Confirmed that this PR doesn't commit any keys, passwords, tokens, usernames, or other secrets? yes

Test environment

Ballerina Swanlake 2201.0.0, JAVA 11, Ubuntu

@SanduDS Please send same fix to 2201.0.0 branch also


using default config, but get error

cpu: Intel(R) Atom(TM) CPU  C2558  @ 2.40GHz
current I compile the c2xxx driver, and make install the driver,
when I start a test using openssl, cmd like:
./openssl engine -t -c -vvv qat
the console output:
faild to start qat, I know why this does not work, since it need SHIM sectioin, so
I copy the qat_engine/qat/config/c2xxx/xxx.conf to /etc
then I restart the service:
cp c2xxx_qa_dev0.conf /etc/
cp: overwrite `/etc/c2xxx_qa_dev0.conf'? y
[root@charle multi_process_optimized]# service qat_service start
Processing file: /etc/c2xxx_qa_dev0.conf
Parity err reporting is disabled.
Error: failed to start device 0
There is 1 acceleration device(s) in the system:
icp_dev0 - type=c2xxx, inst_id=0, node_id=0, bdf=00:0b:0, #accel=1, #engines=1, state=down
But I got a message called failed to start device 0, could you tell me why this happened?
Thank you.
best regards

Hi @huddy1985,
I'm not 100% sure, but I think from the info in your post you are trying to start the QAT Driver when it is already running.
Can you either try:
service qat_service stop
service qat_service start

or try:
service qat_service restart

If those still do not resolve the issue for you, can you have a look in the kernel log and post any messages you find related to QAT.
Kind Regards,
Steve.

Thank for you answer, before the start, i am already stop the service.
the dmesg output is:
[139075.307679] adf 0000:00:0b.0: irq 36 for MSI/MSI-X
[139075.307692] adf 0000:00:0b.0: irq 37 for MSI/MSI-X
[139075.307701] adf 0000:00:0b.0: irq 38 for MSI/MSI-X
[139075.307712] adf 0000:00:0b.0: irq 39 for MSI/MSI-X
[139075.307722] adf 0000:00:0b.0: irq 40 for MSI/MSI-X
[139075.307732] adf 0000:00:0b.0: irq 41 for MSI/MSI-X
[139075.307743] adf 0000:00:0b.0: irq 42 for MSI/MSI-X
[139075.307753] adf 0000:00:0b.0: irq 43 for MSI/MSI-X
[139075.307763] adf 0000:00:0b.0: irq 44 for MSI/MSI-X
[139075.319168] [error] SalCtrl_GetEnabledServices() - : Unsupported service in config:cy1
[139075.319168]
[139075.319174] [error] SalStatistics_InitStatisticsCollection() - : Failed to get enabled services
[139075.319174]
[139075.319178] icp_qa_al err: adf_subsystemInit: Failed to initialise Subservice QAT
[139075.326857] icp_qa_al err: adf_do_init: adf_subsystemInit error, stopping and shutting down
[139076.337926] icp_qa_al err: adf_subsystemShutdown: Failed to shutdown subservice QAT. Continuing with the shutdown of the AE.
[139076.349391] icp_qa_al err: adf_subsystemShutdown: Failed to shutdown subservice SAL. Continuing with the shutdown of the AE.
[139076.360996] icp_qa_al err: adf_init_all: failed to initialize accelerator
[139076.367945] icp_qa_al err: adf_init_devices: failed init accel 0
[139076.374110] icp_qa_al err: adf_ctl_ioctl_dev_start: failed call to adf_init_devices
[139082.465946] Allen Dbg: pinged with expires of 80, enable_mask of ff
the config file comes from:
.../QAT_Engine/qat/config/c2xxx/multi_process_optimized
best regards

the service output is before start the service :
service qat_service status
There is 1 acceleration device(s) in the system:
icp_dev0 - type=c2xxx, inst_id=0, node_id=0, bdf=00:0b:0, #accel=1, #engines=1, state=down

It looks like an error in the default config file,
[GENERAL]
ServicesEnabled = cy0;cy1
what this section means?
how to fix this error?
Thank you..
best regards

so can I pull a request to fix this config mistake?
I means add a single acceleration device config file?
Best regards

Hi @huddy1985,
You may raise pull request if you like, we do encourage it.
Although we do accept pull requests our current process is that they under go an internal review/testing step before they get pushed out as part of a release to the external repo. So in this particular case providing a pull request will probably not speed up getting the new single acceleration device config files into the repo. Please don't let that discourage you from raising pull requests in the future :-)
Kind Regards,
Steve.


Document GitLab OAuth configuration

https://weaveworks.slack.com/archives/C0140SWQ94M/p1646660907718879
Add the GitLab app account to an official weaveworks app instead of @jpellizzari's.

I might turn this into an epic and it might not be picked up by this team.

@JamWils do we have a plan for this yet?

@davidstauffer / @JamWils unsure if still valid?

Still valid so long as we are using GitLab auth (unsure of this)

Moving this to WGE, as it references a private Slack link.


Add substitute for lazy replacements

As I realized in https://github.com/dlang/phobos/pull/5565 that Phobos has no way to have a lazy range of replacements, I ported @nordlow's substitute from phobos-next.
substitute allows lazy replacements:
import std.algorithm.comparison : equal;
import std.algorithm.searching : substitute;

// substitute single elements
assert("do_it".substitute('_', ' ').equal("do it"));

// substitute multiple, single elements
assert("do_it".substitute('_', ' ',
                           'd', 'g',
                           'i', 't',
                           't', 'o')
              .equal("go to"));

// substitute subranges
assert("do_it".substitute("_", " ",
                          "do", "done")
              .equal("done it"));

// substitution works for any ElementType
int[] x = [1, 2, 3];
auto y = x.substitute!(1, 0.1);
assert(y.equal([0.1, 2, 3]));
static assert(is(typeof(y.front) == double));

If the substitution parameters are known at Compile-Time, the faster
template overload can be used:
import std.algorithm.comparison : equal;
import std.algorithm.searching : substitute;

// substitute subranges of a range
assert("apple_tree".substitute!("apple", "banana",
                                "tree", "shrub").equal("banana_shrub"));

// substitute elements in a range
assert("apple_tree".substitute!('a', 'b',
                                't', 'f').equal("bpple_free"));

// substitute values
assert('a'.substitute!('a', 'b', 't', 'f') == 'b');

Updates:

Issue 9702 would be trivial to fix as substitute can be used under the hood - like e.g. it's already done for split (with splitter).
I realized that std.algorithm.iteration is probably a better fit. Opinions?

I'm so grateful for you taking time to get this in, @wilzbach

As this is basically a fancy map, IMO this belongs in iteration

As this is basically a fancy map, IMO this belongs in iteration

Agreed -> moved it to iteration. Unfortunately all comments are gone with this, so listing them here:

Self-nitpick. substitution in singular

Thanks - it's not your fault, btw. It wasn't a copy/paste ;-)

Until the giant back references in symbols problem is fixed, I'd say no new symbols should use Voldemort types.

Unfortunately in this case it's not possible.

Stride
std.meta PR inc? ;-)

Ok.

I will never stop loving this pattern. Better be careful, though, as I think there's a hard limit of 256 cases allowed in switch statements (this limitation may have been removed though, not sure).

Hmm, I tried the following:

1000 substitution pairs  -> DMD stops due Stride's recursive template expansion
500 substitutions pairs -> DMD entered compilation "loop" (horribly slow CTFE?)
250 substitutions pairs -> DMD entered compilation "loop" (horribly slow CTFE?)
100 substitutions pairs -> DMD entered compilation "loop" (horribly slow CTFE?)
50 substitutions pairs -> works fine, but increased build time

Not sure how we could workaround this easily without newCTFE, but OTOH if one has so many substitution patterns, a specialized algorithm makes sense anyhow (Tries!).

Stride

std.meta PR inc? ;-)

-> https://github.com/dlang/phobos/pull/5598

Searching for undefined macros
/dev/shm/dtest/work/repo/dlang.org/web/phobos-prerelease/std_algorithm_iteration.html:1193:Returns a range with all occurrences of substs in
/dev/shm/dtest/work/repo/dlang.org/web/phobos-prerelease/std_algorithm_iteration.html:1196:supported as well and .

Automation for the win :)

dautotest: Starting build of phobos commit 37cfbb2c061311217f51c15e13db4635e1485184
dautotest: Already tested: failure (Test failed)

@CyberShadow is there a way to retrieve the "failed build.log" or do have to re-push and be fast, s.t. DAutoTest doesn't try to rebuild the PR for a second time?

@CyberShadow is there a way to retrieve the "failed build.log" or do have to re-push and be fast, s.t. DAutoTest doesn't try to rebuild the PR for a second time?

Err, no, that was just a regression I introduced earlier today to improve logging. Should be fixed now.

Massively in favor of this, wanted to write one for ages. Thanks @wilzbach. LMK when you have worked the kinks out.

Massively in favor of this, wanted to write one for ages.

Maybe you should put together a list of methods that are on your list, s.t. more people can help you ;-)

@wilzbach top of the list is member each for each range that has to gain from it!

Time for a rebase, @wilzbach ? 😎

Okay I finally found time to work on this & fix the last bits:

works with NarrowStrings now
uses static foreach
allows single element replacements in @nogc
a couple of smaller things & cleanups
added more tests

Okay so I worked a bit more with this and managed to fix & enable a few more auto-decoding corner cases:
assert("ääöü€".substitute("ä", "b", "ü", "u").equal("bböu€"));
assert("ääöü€".substitute("ä"w, "b"w, "ü"w, "u"w).equal("bböu€"));
assert("ääöü€".substitute("ä"d, "b"d, "ü"d, "u"d).equal("bböu€"));

assert("ääöü€"w.substitute("ä", "b", "ü", "u").equal("bböu€"));
assert("ääöü€"w.substitute("ä"w, "b"w, "ü"w, "u"w).equal("bböu€"));
assert("ääöü€"w.substitute("ä"d, "b"d, "ü"d, "u"d).equal("bböu€"));

assert("ääöü€"d.substitute("ä", "b", "ü", "u").equal("bböu€"));
assert("ääöü€"d.substitute("ä"w, "b"w, "ü"w, "u"w).equal("bböu€"));
assert("ääöü€"d.substitute("ä"d, "b"d, "ü"d, "u"d).equal("bböu€"));

// auto-decoding is done before by a different range
assert("ääöü€".filter!(a => true).substitute("ä", "b", "ü", "u").equal("bböu€"));
assert("ääöü€".filter!(a => true).substitute("ä"w, "b"w, "ü"w, "u"w).equal("bböu€"));
assert("ääöü€".filter!(a => true).substitute("ä"d, "b"d, "ü"d, "u"d).equal("bböu€"));

In some of these cases we sadly need to keep track of codeLength of the needles (it 's cached though), e.g. if we can only iterate the string by popFront or if the strings have a different decoding (see needsManualAutodecoding for details).


Feature: Strict Mode Support

This PR adds support to render the component in React Strict Support by introducing new option called strictMode in R2WCOptions interface. The option are false by default.
This PR will also fix #169.

Is this PR ready for merge and release?


Behringer UMC202HD choppy audio

Many thanks for the awesome work on this project!!! FYI, I'm experiencing an issue with constant choppy sound using the UMC202HD USB device. Don't know if this is related to the issues with the Focusrites, but believe it's caused by the 5.1 kernel. I'm getting multiple USB "clock source 41 is not valid, cannot use" messages in dmesg. Regards!

@mr-hollywood Thanks for reporting.  I tried latest release 1.5.0-b.1 (is that what you are using?) with Behringer UMC2 which I believe has same codec.
Audio was OK but I found a different problem.  I made a last-minute change to kill pulseaudio while using Jamming apps, but that was a mistake because pulseaudio seems to be required for alsa mixer controls.
I'll post a revised image shortly.
I don't think this will fix choppy audio or clock source issue, but to revert the change, you can run the following command:
sudo sed -i '/^[^#].*\/usr\/bin\/pulseaudio --kill/s/^/#/g'  /usr/local/bin/*start.sh

If that doesn't help, I'll need more info.  Are you using Pi4?  dmesg output?  any other USB devices present?  Is same issue present on both 1.5.0 and 1.4.0-b.2?
Jambox 1.5.0 uses a vanilla kernel configured for low-latency, so a kernel issue seems unlikely.  1.4.0-b.2 had a patched kernel with focusrite support but it's too painful to maintain the patches so I have stopped doing that.

Hi Ken, I'm using a pair of RPI4b/4g for my testing...
The same sound issue is also present on 1.4.0-b2 and 1.2.0. The initial Jambox release doesn't see the UMC202HD at all. The issue affects all apps on the system and there are no other devices connected to the RPi. I applied the patch to 1.5.0-b1, but that didn't affect the chop.
I've tested the UMC202HD on Windows without any issues, but it does use a different ASIO driver. Here are the RPi kernel and user logs:
kern.log
user.log
Fyi, I'm trying to use the RPis as IEM receivers over Sonobus. Initial testing using the bcm2835 had just a little too much latency. I've tested using a Windows laptop with the UMC202HD and performance was great. I'm just hoping I can get the RPis working because they'd also offer control via a tablet or phone (and cost a lot less). You can get better idea of what I'm trying to do  here:
https://sites.google.com/site/mrhollywoodmusic/behringer-xr18/sonobus-iem
Regards,

Should also mention that I get the same choppy sound when using the UMC202HD with the latest "2021-05-07-raspios-buster-armhf.img" with, or without updates...

@mr-hollywood   I don't have a UMC-202HD so I can't test (codec is different then UM2).
Jambox 1.2 release used 5.4 kernel.
A few thoughts:
UMC202HD supports 192K, it sounds like maybe the default clock rate is being incorrectly set by the kernel.
see this commit for a different device with similar problem:  https://github.com/raspberrypi/linux/commit/71f39badc898616ca4ff765d1dd755ffd8c68554#diff-de67aab26780c75c96b69bd8c76a9e52c45ae0d282826fc047c01e4c244237f2
Try running Qasmixer (icon on desktop. select hw device) to see if there are any clock rate controls.
I don't know if UMC202HD has updateable firmware, there is no separate firmware updater, but perhaps installing UMC202HD on Windows with latest driver from Behringer website would update the firmware.  Or, maybe if you set rate to 48Khz in Windows, the device will remember when used with linux.
Ubuntu kernel has different USB drivers for RPi, you could try that.
Good luck,
Kevin

@mr-hollywood   It appears possible to change the kernel settings for snd_usb_audio:
https://www.kernel.org/doc/html/v5.10/sound/alsa-configuration.html#module-snd-usb-audio
I think any options would go in a new .conf file i.e. /etc/modprobe.d/snd_usb_audio.conf  (then reboot).
The interesting option you might try is autoclock.
options snd_usb_audio autoclock=no

autoclock defaults to yes, which might be causing problems.

Hi Ken, no joy with adding the autoclock option to /etc/modprobe.d/snd_usb_audio.conf. The UMC202HD doesn't seem to be firmware upgradable, and I can't tell if it retains any settings after being used in Windows. There are also no clock rate controls for the UMC202HD in Qasmixer.
Found the following link about a common issue with USB Dac interfaces needing some delay between the usb interface start and the playback, that generates the same "clock source 41" error code: https://bugzilla.kernel.org/show_bug.cgi?id=108961
There's a solution to the problem here, but don't know how that relates to the RPi:
https://guillaumeplayground.net/teac-ud-503-ud-501-snd-usb-audio-patch/
This also made me wonder whether the "delayed_register" option in "Module snd_usb_audio" could be used to accomplish the same thing???

@mr-hollywood   I saw those posts, they are specific to a particular ITF codec chip used in a few Teac/Denon/Marantz players.   But other devices have reported similar issues, You could compile your own module, but that could get complex.  For a simpler way to try, there is a modprobe option "quirk_alias" which tells the snd_usb_audio module to map the USB device ID of your device to the device ID of the quirk you want to use.  Challenge will be to get the syntax and device IDs right.
I would have thought the option should go in a modprobe .conf file.
However, this post shows it going at end of /boot/cmdline.txt
Perhaps either would work, but this link is fairly detailed so I would start by following it.
https://forums.raspberrypi.com/viewtopic.php?t=15872
also see: https://linuxmusicians.com/viewtopic.php?t=18046&start=30
Youd device I think is 1397:0507
A device with the quirk you referenced is: 154e:1003
So on cmdline.txt:
snd-usb-audio.quirk_alias=13970507:154e1002

or in /etc/modprobe.d/snd_usb_audio.conf:
options snd_udb_audio quirk_alias=13970507:154e1003

I think it may even be possible to apply to a running system:
sudo modprobe -v snd_usb_audio quirk_alias=13970507:154e1003

Any issue caused by linux snd_usb_audio module would likely be platform-independent.  You could boot a PC to Ubuntu (i.e. live usb stick) and see if the issue persists there.  or you could try ubuntu on raspberry pi (it has different USB hardware driver than raspberry pi OS).

One other thought.  Not sure exactly what you mean by "choppy audio".  Does /var/log/syslog show lots of XRuns during audio transfer?
Jambox on pi4 defaults to PERIOD=64, NPERIODS=3 except for JamTaba and JammerNetz.  This is set in /etc/jackdrc.conf  This is to keep latency as low as possible, and works for all USB interfaces I have tested.  But maybe yours is an exception.
You could try setting i.e. PERIOD=256 to see if/how it changes the symptoms.  Or run JamTaba (which has PERIOD=128) and click "listen" on a room if there is one in progress,
Other people have reported UMC202HD working under linux, although not sure if any were on RPi.

Those "quirk_alias" fixes are really cool, unfortunately I haven't found one that does the trick. The QUIRK_FLAG_CTL_MSG_DELAY_1M reduced the number of "clock source" errors in dmesg by about half, but that's all.
A better description for "choppy" would be that the sound toggles on and off at a constant rate of ~350ms. There's nothing in the system log with "Xrun" and PERIOD=256 had no effect.
I've been using Audacity, Sonobus and the alsamixer to test sound, and haven't paid much attention to Jack Audio. Haven't tried the "speaker-test" command yet.
I also tried the raspios-bullseye-arm64 OS with the same results, and I'll try the Ubuntu desktop tomorrow.
PS: I also tried another USB cable to avoid really embarrassing myself... :)

Cables should never be taken for granted.  I once spent days tracking down what I thought was a software bug, but was really a marginal 3-foot ethernet cable.
Also Power supply.  UMC 202HD is bus-powered.  Swap your pi supply if you have a spare, or try a powered USB hub (although hub can introduce other problems.  Also try USB3 vs USB2 ports on RPi.
You may see references to an option in /boot/config.txt to increase USB power, but that is now default setting so you can ignore it.
Shouldn't make a difference, but you could update the boot loader.  check with "sudo rpi-eeprom-update", and update with "sudo raspi-config" under advanced -> bootloader -> latest
This guy has a UMC204HD working with RPi:  https://www.youtube.com/watch?v=PrA4rtC0RYo
He walks through his config.
Also this post from someone using UMC404HD on RPi:  https://sourceforge.net/p/llcon/discussion/hardware/thread/25f0f8bcb2
I always hate to blame the hardware (RPi or Behringer), but sometimes it really is.  At some point you need to consider swapping one or the other.

Hi Kevin, I've got two RPi4b with 3A power supplies and one has an updated bootloader. I've seen those videos, and it's fairly basic stuff. I have a feeling there's something different about the 202.
Tried it on the RPi Ubuntu Desktop with much the same results (but only one clock error message). Same with the early versions of RasPiOS using the 4.19 kernel.
I did notice that when I change the sample rate in Sonobus, the speed of the "chop" changes accordingly. That's the only time I've seen it change. Have to think about that one...
Anyway, I'm going to step back a bit before I find myself locked in a padded room mumbling "clock source 41".
Thank you so much for all your help. It's really appreciated!!!   :)
George

Jack on jambox is set to 48k.  If you set sonobus or any other app to anything else, it won't work.
I have see references that say the clock source 41 message is in some case innocuous.
In most cases, a freshly burned jambox SD card will work with no settings changes.  It's preloaded with a sonobus settings file that should just work with the jambox jack setup.
Use alsa-info to generate an info file and post it here.
You might want to try changing NPERIODS from 3 to 6 or higher in /etc/jackdrc.conf.
Even more basic is to stop jack service and debug at the alsa level.  Use speaker-test to send a tone.  Use 48khz sampling (there may be other settings ie pulse audio which are set there).  If audio is still bad, try other sampling rates to see if one works.  You can test the other direction with arecord.

Changing the NPERIODS has no effect. Jack won't run when the UMC202HD device/card is selected. Here's a copy of the alsa-info file:
alsa-info.txt

@mr-hollywood
"Jack won't run when the UMC202HD device/card is selected."
what do you mean by this?  alsa-info says jackd is running.  what is output of systemctl status jack?
In jambox, jack.service starts jack with "-S" (shorts) argument, which should try to set device to 16 bits format.
But alsa-info shows USB stream set to "Format: S32_LE".  Not sure if this could cause a problem.
What is output of:   grep "ALSA.*format" /var/log/syslog
I would suggest stopping jack, then try to get it working just with alsa:

stop jack and set the device:

sudo systemctl stop jack
DEVICE=`arecord -L | grep ^hw: | head -n1`

try recording in 2 channels in 16-bit format for 10 seconds at 48 KHz sampling:

arecord --channels=2 --format=S16_LE --duration=10 --rate=48000 --device=$DEVICE test1.wav

copy to another computer to play it so you can verify that capture was working.
You can play file out with same options to verify playback:
play --channels=2 --format=S16_LE --duration=10 --rate=48000 --device=$DEVICE test1.wav

If you can't record/play a simple test file with alsa, you should get that working before going on to something more complex.
If these don't work, try format S32_LE or S24_LE.

The capture is good and plays normally on a Windows PC, but is "choppy" when played back on the RPi (arecord would only accept S32_LE).
The grep "ALSA.*format" /var/log/syslog only provided the following:
Dec  4 22:27:11 jambox jackdrc[384]: ALSA: final selected sample format for capture: 32bit integer little-endian
Dec  4 22:27:11 jambox jackdrc[384]: ALSA: final selected sample format for playback: 32bit integer little-endian
Here's the alsa-info following the tests:
alsa-info.txt

@mr-hollywood I'm wondering if inability to support S16LE for capture could be a problem.
Try running above tests with plug$DEVICE instead of $DEVICE.  I believe the plughw device has ability to convert sample formats.
Try stopping jack, then running Audacity (it's installed on jambox image).  I believe it can deal with formats,
set to ALSA, and set playback and capture devices to your hw device.
Then record something (this should work) and play it back.
You could also try looping capture back to playback through the plughw device (or just $DEVICE).
alsaloop -C plug$DEVICE -P plug$DEVICE -f S32_LE -r 48000 --channels 2

Audacity can record and playback in all three formats (S16/24/32_LE), but sometimes you need to set it twice to get sound. Chop is still present.
Here are the errors reported for the other commands:
arecord --channels=2 --format=S16_LE --duration=10 --rate=48000 --device=plug$DEVICE test3.wav
ALSA lib pcm.c:7699:(snd_pcm_slave_conf) missing field pcm
arecord: main:831: audio open error: Invalid argument
aplay --channels=2 --format=S16_LE --duration=10 --rate=48000 --device=plug$DEVICE test3.wav
ALSA lib pcm.c:7699:(snd_pcm_slave_conf) missing field pcm
aplay: main:831: audio open error: Invalid argument
alsaloop -C plug$DEVICE -P plug$DEVICE -f S32_LE -r 48000 --channels 2
LSA lib pcm.c:7699:(snd_pcm_slave_conf) missing field pcm
playback plug open error: Invalid argument
Loopback initialization failure.
alsaloop -C $DEVICE -P $DEVICE -f S32_LE -r 48000 --channels 2
ALSA lib confmisc.c:165:(snd_config_get_card) Cannot get card index for 0
playback hw:0,0 open error: No such file or directory
Loopback initialization failure.

So capture is OK and chop is only present on playback?  Is chop present on both L & R channels?
You could try speaker-test program to generate test tones.  But since you got bad audio playing a confirmed good file, so I would not hold out much hope for that working.
This is the point at which I would really want to confirm that a different UMC202HD exhibits the same problem.  Other people have reported that working with linux.
hypotheses:

it's a linux kernel bug.  to test, you could boot a PC to ubuntu live USB stick and see if you have same problem.  But others have reported it working under linux.
it's a bug with your UMC202HD.  But to believe that, you have to believe your unit is bad in a way that only shows up under linux but it works under windows.  not likely.
it's a raspberry pi specific problem.  But you had same problem with RPi ubuntu build, which uses standard kernel.  So if this is the case, it would need to be a bug in usb audio code that is shared by ubuntu and raspberry pi OS but not used in x86 ubuntu.  I don't think there is much of that.
it's a problem with your specific setup.  maybe something like bus-powering UMC202HD off of a RPi.  I'd try it with a powered USB hub.

None of these seem likely.  I guess my money is on #1, which would mean the reports of it working are wrong, or I misread them.

Yes, the "chop" is on both channels.
Just tried Ubuntu 20.04.3 live. There is a "glitch" that consistently shows up about every 20 seconds, but aside from that it works great. This doesn't happen in Windows and I don't have access to a Mac...

Exchanged the UMC202HD for a UMC204HD and it works perfectly. Looks like the UMC202HD just doesn't play nice with Linux...

Glad you got it working.  My guess is that your UMC202HD was likely a bad unit - if they all did that it would have been reported.  Doesn't matter now, though, and you'll probably find a use for the extra features on the 204.

I had a similar problem; however I'm running on a PC. I'm also guessing it's a kernel bug, because no matter what I tried the choppy audio would not go away. I think I'll just buy a UMC204HD and keep the UMC202HD as a spare.

@chriswyatt You were running on a PC with linux?  Ubuntu?  which version?
FYI latest jambox version 1.5.0 has linux 5.15.10 kernel installed but not activated.  It's not an official release yet but has been pretty solid for audio in my tests.  There has been work done on the USB audio drivers, but I don't think any of the changes would affect UMC202HD.
If you want to try it, at the bottoms of /boot/config.txt, there are sections for 4 kernels.  Above the kernel sections you will see [all] above 5.10.74-llat kernel, and [none] above the others.  To change, set [all] to none above 5.10.74-llat, and change [none] to [all] above 5.15.10-llat, then reboot.

@[mr-hollywood],  i have buy last week the BEHRINGER UMC204HD  and i have the same error (clock source 41 is not valid, cannot use)  X86-64 : latest ARCHLINUX
Audio Stuttering every X seconds...  (depending Samplerate)  (this is not Xrun)
Can you try this :
-Unplug the USB cable
sudo modprobe -r snd_usb_audio
sudo modprobe snd_usb_audio implicit_fb=1
-Plug USB audio card and test (no reboot)
if it work :  can you copy / paste
lsusb -v -d 1397:0507
i think we can upstream the bug to alsa project in kernel
Information that i have read to understand history
https://guillaumeplayground.net/teac-ud-503-ud-501-snd-usb-audio-patch/  (same error clock source 41)
https://nandakumar.org/blog/2022/02/umc202hd-linux.html


Updated README.md

This pull request updates the README file of the SQL to Natural Language Translator tool. The changes include adding more details about the tool's features and limitations, as well as providing instructions on how to use it. Specifically, I have added a section that explains how the tool can translate SQL queries into natural language, and vice versa.  Do give it a review!!
Happy Hacking!

@whoiskatrin Do review this and let me know...


Fixed broken links

@jovanpop-msft : Thanks for your contribution! The author, @, has been notified to review your proposed change.

Hi @jovanpop-msft - Microsoft authors should make updates to content through the private repository so the updates can be staged and validated by the validation rules. See this article for more information. We'll close this PR. Thank you.


Need a bit of help with building 94.0.4606.54 on Void linux

I'm trying to get a testing build going on Void Linux, so I've been basing my test branch (link) on the v93 template that builds and patching what errors I encountered. My latest test fail seems to be related with the ungoogled-chromium patch set.
The build fails in:
components/signin/internal/identity_manager/primary_account_manager.cc
at the following code:
#if DCHECK_IS_ON()
  {
    std::string pref_account_id;
    bool consented_to_sync =
        client_->GetPrefs()->GetBoolean(prefs::kGoogleServicesConsentedToSync);

    DCHECK(pref_account_id.empty() || !consented_to_sync ||
           pref_account_id == account_info.account_id.ToString())
        << "account_id=" << account_info.account_id
        << " pref_account_id=" << pref_account_id;
  }
#endif  // DCHECK_IS_ON()

with kGoogleServicesConsentedToSync being undefined.
The only reference to that file that I found is in ungoogled-chromium's patches:
patches/core/ungoogled-chromium/remove-unused-preferences-fields.patch
For now I patched the build with bool consented_to_sync = false; and I'm waiting to see if it still fails (ccache is a bit useless this days >_<), but in the mean time if someone more knowledgeable could help me understand why this is happening or if there is a better fix, I would be grateful.
Edit: well just saw that void-packages updated chromium template to 94.0.4606.61 so I'm going to rebase on that, but my question still stands :)

Generally most builds are made with is_official_build=true or is_debug=false which would skip that section entirely.

Ah i see, the old template from v93 had is_debug=false and that was enough, and the void team added the is_official_build=true to the v94 template. I'm thinking the changes to fieldtrial_testing_like_official_build might be the root cause of the problem.
Thanks a lot for the reply :).


Append "v" before version number ?

The current version number is '0.1.0'. Should we instead have used 'v0.1.0' ?
I am undecided.
From the discussion here, it seems that both formats are valid and that recommendations goes both ways.
It seems that appending "v" is most widespread. Using "v" also appears in many guides, for example here: https://help.github.com/articles/about-releases/

I always choose to append it in the version title, but not the tag itself.
Angular doesn‘t use it for any of those two, React for both.

Let's stay with what we have


Add Progressbar support

Not sure, but i think this is all to add support for progressbar aria tag? It has no other direct requirement afaik.
There is some optional stuff tho that could be checked i guess, but this here will at least get rid of the wrong error message i guess? Haven't had a deep dive into this codebase yet, if i missed something, or you'd rather implement full support (full in meaning also some other checks) please let me know, and i will take a deeper look when i have time.
This tool is awesome work btw!

Thank you @toitzi for your contribution and I am glad you like the extension! Unfortunately, it seems that the change is not enough to support the progressbar role.
To implement the role we need to:

define a renderer for this role at https://github.com/ziolko/aria-devtools/blob/master/src/view/renderers/render.ts
ideally we should have a proper mapping of native html elements at https://github.com/ziolko/aria-devtools/blob/master/src/AOM/types.ts#L567

Cheers,
Mateusz


Global errors handling with several last app states reporting.

What's this?

App errors reporting to server with global app state and several last user actions to replay story.
In previous Este, I was using https://github.com/google/closure-library/blob/2012c5372fdb02ce9531cf4b2561b05e3ce2ab39/closure/goog/debug/errorreporter.js
It should also handle errors from promise.

I think #244 is a duplicate of this one. But since this one is longer and contains less data, I'd rather close this one.

Agreed.


Can't get custom messages to work

Hi,
Im trying to create a flash message to show users on sign in, this is my Pow.Messages module.
defmodule MyApp.Pow.Messages do
  use Pow.Phoenix.Messages
  use Pow.Extension.Phoenix.Messages,
    extensions: [PowAssent, PowResetPassword, PowEmailConfirmation]

  import MyAppWeb.Gettext

  def signed_in(conn), do: gettext("Welcome, %{name}", name: conn.assigns.current_user.name)

  def pow_assent_signed_in(_conn, provider), do: gettext("You've been signed in with %{provider}.", provider: provider)

When a user logs in using the email:password combination, a message appears. However, nothing appears when the social sign in option is used. Is there something I'm missing?

Have you set the messages in your config?
config :my_app, :pow,
  # ...
  messages_backend: MyApp.Pow.Messages

It was missing from the readme, but I've updated it.

I have set the messages in my config, yes.
What I forgot to mention though was that running mix pow.extension.phoenix.gen.templates --extension PowAssent failed with the error message:
No extensions was provided as arguments, or found in 'config :my_app, :pow' configuration.
I don't have PowAssent in the extensions part of my config, I tried adding it but that didn't work.
My full config  section:
config :my_app, :pow,
  user: MyApp.Users.User,
  repo: MyApp.Repo,
  web_module: MyAppWeb,
  mailer_backend: MyAppWeb.PowMailer,
  messages_backend: MyAppWeb.Pow.Messages,
  routes_backend: MyAppWeb.Pow.Routes,
  extensions: [PowResetPassword, PowEmailConfirmation],
  controller_callbacks: Pow.Extension.Phoenix.ControllerCallbacks

What I forgot to mention though was that running mix pow.extension.phoenix.gen.templates --extension PowAssent failed with the error message:
No extensions was provided as arguments, or found in 'config :my_app, :pow' configuration.

The readme was incorrect and I've updated it, thanks! You just have to run mix pow_assent.phoenix.gen.templates. Let me test locally here to see if I can replicate the issue.

Ok, so this was just another issue in the docs. I refactored it so it only passes the conn argument. If you update it to this it should work:
def pow_assent_signed_in(conn),
  do: gettext("You've been signed in with %{provider}.", provider: Phoenix.Naming.humanize(conn.params["provider"]))

The readme has been updated, sorry for the confusion.

That works, great. Thanks!


Respond to code review feedback

It looks like I forgot to delete the CLHM jar, so you might want to add that in.

I noticed that build.xml says version 2.3.3 whereas the jar is 2.3.5. I presume that must be ivy, since the jar is 2.3.5 and it builds? You should probably fix it, sorry about that.

Yea - that version in build.xml is mostly used to generate the pom files.
The build itself uses the jars in lib


Added endpoints for Survey Module

Thanks @valentina98 for your review. It should be correct now. Sorry, but I have no knowledge with npm, so I don't know how to build to test the endpoints...

Thanks @valentina98 for merging this PR!
Could you create the new version with npm version 0.1.8?
Thanks


angular-cli package on npm should be deprecated in favor of @angular/cli

Right now if you run a google search for "npm angular cli", the first result takes you to angular-cli and @angular/cli is not visible in the results. Also in the angular-cli package page there is no mention of @angular/cli. I think this is pretty confusing and the package should be deprecated or the readme should be updated to point at the new @angular/cli package.

Package has been already deprecated. It throws a big console warning that you should use @angular/cli instead.
Github readme is update and points to the right installation. As to NPM package readme, afaik it pulled the data from the old GitHub so I am not sure that's possible to edit, but I agree the deprecation warning has been there for a while now, however, I assume Angular CLI team is waiting for a 1.x stable release to completely remove angular-cli.

I'm thinking more just about the first-time user experience of hearing about Angular CLI, searching for it, installing it, then getting a message about needing an update and having to do a full uninstall and reinstall.

@hansl is there anyway we can change the README present in npmjs.com?


Screen is getting blanked while uploading image

Describe the bug
In resume page if we try to upload different documents or videos rather then images screen is getting blanked so i think it should display an error message like only jpg,jpeg,png are allowed something like that.
Screenshots
https://user-images.githubusercontent.com/68184118/234846101-17f4abba-b934-4a53-9376-b8119a333eb3.mp4
Additional context
I would love to work on this

@Khizarshah01 can you check?

@777Prabhjot  Thanks for find bug i will assigning you if you interested to work on it.

@Khizarshah01 it's done please do check it out

@777Prabhjot have you created a PR?

@ShashwatAgrawal20 yes


internal/poll: build failures during file copies from commit 40ced0c00b04a5b9832bb5b47c995c82854f26ae onward

What version of Go are you using (go version)?
The last working version is:

$ go version
go version devel go1.20-af7f417665 Mon Sep 5 08:08:24 2022 +0000 linux/amd64

Does this issue reproduce with the latest release?
No.
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/homes/hawklords/cks/.cache/go-build"
GOENV="/homes/hawklords/cks/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/homes/hawklords/cks/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/homes/hawklords/cks/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/data/code/go-lang/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/data/code/go-lang/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="devel go1.20-af7f417665 Mon Sep 5 08:08:24 2022 +0000"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmpfs/go-build2233105691=/tmp/go-build -gno-record-gcc-switches"

I am on 64-bit x86 Fedora Linux with kernel 5.19.4-200.fc36.x86_64. My TMP/TMPDIR is either an ext4 filesystem or a tmpfs filesystem, depending on the exact build setup, and the final install destination is on a ZFS filesystem.
I believe that this means that error checks on copy_file_range(2) aren't redundant because (apparently) not all filesystems support this.
What did you do?
Tried to build go with ./all.bash.
What did you expect to see?
A successful build.
What did you see instead?
Building Go cmd/dist using /data/code/go-lang/v1.19. (go1.19 linux/amd64)
Building Go toolchain1 using /data/code/go-lang/v1.19.

See https://go-review.googlesource.com/c/go/+/428396, which has been waiting for reviews since the breakage happened in master.

Able to repro.

The revert is now merged.