Different estimation results with the same model

Hi Junior,
After estimating a DSGE model multiple times, I found out that the estimation results can vary significantly after each estimation, even though it is always the same model with the same priors.  I have posted two estimation results below, both of which are estimated from the same model. I'm not exactly certain what I can do to improve the consistency of my estimation. Is this a sign of not enough observations in my data?
Thank you in advance!
Best,
Tony
Result 1:
MODEL  ESTIMATION RESULTS
distribution    initval      mode        mode_std
____________    _______    _________    __________
tau                 BETA             0.62        0.39064         27564
kappa               GAMMA            0.32         3.1692         49604
alpha               BETA             0.13        0.83534          7391
rss                 BETA             0.02      0.0071788        3097.8
rhoq                BETA             0.36       0.021025        5945.7
rhoystar            BETA             0.95         0.8966         13561
rhoPaistar          BETA             0.41        0.20775         27703
rhoz                BETA             0.49        0.50455         66939
rhor                BETA             0.89        0.76227         69530
gammay              GAMMA            0.97      0.0043915         14466
gammaPai            GAMMA               3         1.4486    4.1211e+05
gammae              GAMMA           0.001      8.072e-11        1.3605
sigr                INV_GAMMA       0.002      0.0020311        57.578
sigq                INV_GAMMA        0.02       0.044974        438.65
sigystar            INV_GAMMA       0.005      0.0032994        325.08
sigPaistar          INV_GAMMA       0.005      0.0058258        7.0559
sigz                INV_GAMMA       0.019      0.0057679        46.802
sigy                INV_GAMMA       0.002      0.0030818        118.87
sigPai              INV_GAMMA       0.012       0.046394        4433.8
stderr_obspi        INV_GAMMA       0.012      0.0070002        607.39
stderr_obspistar    INV_GAMMA       0.012      0.0069991        6604.1
stderr_obse         INV_GAMMA       0.012         5.8826    3.0135e+05
stderr_obsq         INV_GAMMA       0.012      0.0069995        1237.8
                    ____________    _______    _________    __________

                    distribution    initval      mode        mode_std

log-post: -1020.5642 log-lik: -1020.8446 log-prior:   0.2803 log-endog_prior   0.0000 numberOfActiveInequalities 0
log-MDD(Laplace) -1098.5573010
estimation sample is:  2004Q1 : 2017Q3 (55 observations)
solution algorithm is:  rise_1
estimation algorithm is:  fmincon
number of estimated parameters is:  23
number of function evaluations is:  10128
start time: 07-Oct-2019 18:11:29 end time : 07-Oct-2019 18:17:40 total time: 0:6:11
List of issues
none
Result 2:
MODEL  ESTIMATION RESULTS
distribution    initval       mode         mode_std
____________    _______    __________    _____________
tau                 BETA             0.62         0.18662    0+17241i
kappa               GAMMA            0.32       0.0098385    0+1.4631e-13i
alpha               BETA             0.13         0.95356    0+3278.2i
rss                 BETA             0.02       0.0023873    0+95.296i
rhoq                BETA             0.36         0.12705    0+2580i
rhoystar            BETA             0.95         0.69956    0+17309i
rhoPaistar          BETA             0.41         0.01364    0+140.31i
rhoz                BETA             0.49         0.74528    0+11680i
rhor                BETA             0.89       0.0002951    0+3946.5i
gammay              GAMMA            0.97         0.11389    0+18112i
gammaPai            GAMMA               3         0.99301    0+1.042e+05i
gammae              GAMMA           0.001      9.5279e-05    0+7.6502i
sigr                INV_GAMMA       0.002       0.0058349    0+160.96i
sigq                INV_GAMMA        0.02        0.046963    0+1709.2i
sigystar            INV_GAMMA       0.005       0.0029245    0+191.66i
sigPaistar          INV_GAMMA       0.005       0.0057202    0+61.089i
sigz                INV_GAMMA       0.019       0.0042871    0+515.35i
sigy                INV_GAMMA       0.002       0.0060382    0+186.88i
sigPai              INV_GAMMA       0.012        0.045556    0+2762.4i
stderr_obspi        INV_GAMMA       0.012       0.0041055    0+305.18i
stderr_obspistar    INV_GAMMA       0.012       0.0062882    0+45.775i
stderr_obse         INV_GAMMA       0.012          2.3369    0+3.9889e+05i
stderr_obsq         INV_GAMMA       0.012        0.024979    0+374.45i
                    ____________    _______    __________    _____________

                    distribution    initval       mode         mode_std

log-post: -1247.7500 log-lik: -1259.3472 log-prior:  11.5973 log-endog_prior   0.0000 numberOfActiveInequalities 0
log-MDD(Laplace) -1377.5057001
estimation sample is:  2004Q1 : 2017Q3 (55 observations)
solution algorithm is:  rise_1
estimation algorithm is:  fmincon
number of estimated parameters is:  23
number of function evaluations is:  2068
start time: 07-Oct-2019 18:18:31 end time : 07-Oct-2019 18:19:39 total time: 0:1:9
List of issues
none

Hi Tony,
This is to be expected and shows that:
1-) the objective function is multi-modal
2-) the optimizer you are using is not able to find the global peak... at least at your starting values.
One solution is to take the best of the peaks found. An even better solution is to use an optimizer that has better exploration and exploitation capabilities so that you stand a chance to find something that resembles the global peak.
Optimization is not an easy problem in general.
Keep up the good work,
J.
Sendt fra min iPhone

okt. 2019 kl. 12:22 skrev tonyxia324<EMAIL_ADDRESS>
Hi Junior,
After estimating a DSGE model multiple times, I found out that the estimation results can vary significantly after each estimation, even though it is always the same model with the same priors. I have posted two estimation results below, both of which are estimated from the same model. I'm not exactly certain what I can do to improve the consistency of my estimation. Is this a sign of not enough observations in my data?
Thank you in advance!
Best,
Tony
Result 1:
MODEL ESTIMATION RESULTS
distribution initval mode mode_std

tau                 BETA             0.62        0.39064         27564
kappa               GAMMA            0.32         3.1692         49604
alpha               BETA             0.13        0.83534          7391
rss                 BETA             0.02      0.0071788        3097.8
rhoq                BETA             0.36       0.021025        5945.7
rhoystar            BETA             0.95         0.8966         13561
rhoPaistar          BETA             0.41        0.20775         27703
rhoz                BETA             0.49        0.50455         66939
rhor                BETA             0.89        0.76227         69530
gammay              GAMMA            0.97      0.0043915         14466
gammaPai            GAMMA               3         1.4486    4.1211e+05
gammae              GAMMA           0.001      8.072e-11        1.3605
sigr                INV_GAMMA       0.002      0.0020311        57.578
sigq                INV_GAMMA        0.02       0.044974        438.65
sigystar            INV_GAMMA       0.005      0.0032994        325.08
sigPaistar          INV_GAMMA       0.005      0.0058258        7.0559
sigz                INV_GAMMA       0.019      0.0057679        46.802
sigy                INV_GAMMA       0.002      0.0030818        118.87
sigPai              INV_GAMMA       0.012       0.046394        4433.8
stderr_obspi        INV_GAMMA       0.012      0.0070002        607.39
stderr_obspistar    INV_GAMMA       0.012      0.0069991        6604.1
stderr_obse         INV_GAMMA       0.012         5.8826    3.0135e+05
stderr_obsq         INV_GAMMA       0.012      0.0069995        1237.8
____________    _______    _________    __________
                distribution    initval      mode        mode_std

log-post: -1020.5642 log-lik: -1020.8446 log-prior: 0.2803 log-endog_prior 0.0000 numberOfActiveInequalities 0
log-MDD(Laplace) -1098.5573010
estimation sample is: 2004Q1 : 2017Q3 (55 observations)
solution algorithm is: rise_1
estimation algorithm is: fmincon
number of estimated parameters is: 23
number of function evaluations is: 10128
start time: 07-Oct-2019 18:11:29 end time : 07-Oct-2019 18:17:40 total time: 0:6:11
List of issues
none
Result 2:
MODEL ESTIMATION RESULTS
distribution initval mode mode_std

tau                 BETA             0.62         0.18662    0+17241i
kappa               GAMMA            0.32       0.0098385    0+1.4631e-13i
alpha               BETA             0.13         0.95356    0+3278.2i
rss                 BETA             0.02       0.0023873    0+95.296i
rhoq                BETA             0.36         0.12705    0+2580i
rhoystar            BETA             0.95         0.69956    0+17309i
rhoPaistar          BETA             0.41         0.01364    0+140.31i
rhoz                BETA             0.49         0.74528    0+11680i
rhor                BETA             0.89       0.0002951    0+3946.5i
gammay              GAMMA            0.97         0.11389    0+18112i
gammaPai            GAMMA               3         0.99301    0+1.042e+05i
gammae              GAMMA           0.001      9.5279e-05    0+7.6502i
sigr                INV_GAMMA       0.002       0.0058349    0+160.96i
sigq                INV_GAMMA        0.02        0.046963    0+1709.2i
sigystar            INV_GAMMA       0.005       0.0029245    0+191.66i
sigPaistar          INV_GAMMA       0.005       0.0057202    0+61.089i
sigz                INV_GAMMA       0.019       0.0042871    0+515.35i
sigy                INV_GAMMA       0.002       0.0060382    0+186.88i
sigPai              INV_GAMMA       0.012        0.045556    0+2762.4i
stderr_obspi        INV_GAMMA       0.012       0.0041055    0+305.18i
stderr_obspistar    INV_GAMMA       0.012       0.0062882    0+45.775i
stderr_obse         INV_GAMMA       0.012          2.3369    0+3.9889e+05i
stderr_obsq         INV_GAMMA       0.012        0.024979    0+374.45i
____________    _______    __________    _____________
                distribution    initval       mode         mode_std

log-post: -1247.7500 log-lik: -1259.3472 log-prior: 11.5973 log-endog_prior 0.0000 numberOfActiveInequalities 0
log-MDD(Laplace) -1377.5057001
estimation sample is: 2004Q1 : 2017Q3 (55 observations)
solution algorithm is: rise_1
estimation algorithm is: fmincon
number of estimated parameters is: 23
number of function evaluations is: 2068
start time: 07-Oct-2019 18:18:31 end time : 07-Oct-2019 18:19:39 total time: 0:1:9
List of issues
none
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Hi Junior,
Thank you for your quick response. Do you think bee_gate would be a more 'robust' optimizer? I'm not really concerned with the speed right now. My main focus is to first find a way to generate consistent results.
Best,
Tony

Hi Tony,
More robust than what ?
Bee_gate has very good exploration capabilities as long as you let it run for a long time. Sometimes it helps to use a derivative-based optimization algorithm to finish off the job after bee_gate has sufficiently explored the landscape.
Cheers,
J.
Sendt fra min iPhone

okt. 2019 kl. 13:49 skrev tonyxia324<EMAIL_ADDRESS>
Hi Junior,
Thank you for your quick response. Do you think bee_gate would be a more 'robust' optimizer? I'm not really concerned with the speed right now. My main focus is to first find a way to generate consistent results.
Best,
Tony
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

I was wondering what is means that there are imaginary numbers in the mode_std? (as we have similar issues)

If you do not reach a peak in the optimization, you won't get a positive definite hessian. If you do not have a positive definite hessian, you won't have a positive definite covariance matrix. If you do not have a positive definite covariance matrix, you may get negative variances at least for some parameters. In turn, if a variance is negative, then the standard error will be a complex number.
Sometimes the landscape you optimize over is just too rough, with thin ridges and winding paths, unexpected cliffs, etc. Sometimes, some elements of the final parameter vector may lie up against the boundaries of the parameter space, pushing the standard deviation toward zero.
There are various ways to cure the problem for instance by having more informative priors, which naturally comes at the expense of exploring potentially interesting areas of the parameter space. One could also change the optimizer but there is never a garantee that by itself it will yield well-behaved standard errors.
From a Bayesian perspective, the real question is not about whether you have complex standard deviations or not. The real question is what you need the covariance matrix for. In a Bayesian analysis you never present standard errors (as you do in a frequentist analysis), perhaps unless you've computed them from a simulation of the posterior distribution. But then in order to simulate the posterior distribution, some algorithms like the Metropolis-Hastings, required a well-behaved covariance matrix.
The good news is that the theory does not say that the covariance matrix to use in that exercise has to be the covariance matrix you obtain after maximizing the posterior distribution. In fact many bayesians never maximize the posterior distribution before drawing samples from it. They do it the other way around : they sample first and then if needed the (found) mode of the distribution will just be the parameter vector with the highest posterior value.
So if you want to simulate the posterior distribution (by e.g. Metropolis Hastings), strictly speaking, all you need is a good covariance matrix. Other samplers like the slice sampler do not even require a covariance matrix.


Attempt to fix mason_client fetch

@howardjohn: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

shellcheck_istio_release-1.3
3f038e0531857bc6ff4974b9dfb06a5e66ecb705
link
/test shellcheck_istio_release-1.3

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@howardjohn: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

shellcheck_istio_release-1.3
3f038e0531857bc6ff4974b9dfb06a5e66ecb705
link
/test shellcheck_istio_release-1.3

integ-new-install-k8s-tests_istio_release-1.3
3f038e0531857bc6ff4974b9dfb06a5e66ecb705
link
/test integ-new-install-k8s-tests_istio_release-1.3

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@howardjohn: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

shellcheck_istio_release-1.3
3f038e0531857bc6ff4974b9dfb06a5e66ecb705
link
/test shellcheck_istio_release-1.3

integ-new-install-k8s-tests_istio_release-1.3
3f038e0531857bc6ff4974b9dfb06a5e66ecb705
link
/test integ-new-install-k8s-tests_istio_release-1.3

pilot-multicluster-e2e_istio_release-1.3
3f038e0531857bc6ff4974b9dfb06a5e66ecb705
link
/test pilot-multicluster-e2e_istio_release-1.3

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@howardjohn: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

shellcheck_istio_release-1.3
3f038e0531857bc6ff4974b9dfb06a5e66ecb705
link
/test shellcheck_istio_release-1.3

integ-new-install-k8s-tests_istio_release-1.3
3f038e0531857bc6ff4974b9dfb06a5e66ecb705
link
/test integ-new-install-k8s-tests_istio_release-1.3

pilot-multicluster-e2e_istio_release-1.3
3f038e0531857bc6ff4974b9dfb06a5e66ecb705
link
/test pilot-multicluster-e2e_istio_release-1.3

e2e-dashboard_istio_release-1.3
3f038e0531857bc6ff4974b9dfb06a5e66ecb705
link
/test e2e-dashboard_istio_release-1.3

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@howardjohn: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

shellcheck_istio_release-1.3
3f038e0531857bc6ff4974b9dfb06a5e66ecb705
link
/test shellcheck_istio_release-1.3

integ-new-install-k8s-tests_istio_release-1.3
3f038e0531857bc6ff4974b9dfb06a5e66ecb705
link
/test integ-new-install-k8s-tests_istio_release-1.3

pilot-multicluster-e2e_istio_release-1.3
3f038e0531857bc6ff4974b9dfb06a5e66ecb705
link
/test pilot-multicluster-e2e_istio_release-1.3

e2e-dashboard_istio_release-1.3
3f038e0531857bc6ff4974b9dfb06a5e66ecb705
link
/test e2e-dashboard_istio_release-1.3

integ-mixer-k8s-tests_istio_release-1.3
3f038e0531857bc6ff4974b9dfb06a5e66ecb705
link
/test integ-mixer-k8s-tests_istio_release-1.3

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Ahhhhh this isn't enough. the image here is using an old go version which fails the go get command. Maybe can do it with GO111MODULEs

@howardjohn: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

integ-new-install-k8s-tests_istio_release-1.3
3f038e0531857bc6ff4974b9dfb06a5e66ecb705
link
/test integ-new-install-k8s-tests_istio_release-1.3

pilot-multicluster-e2e_istio_release-1.3
3f038e0531857bc6ff4974b9dfb06a5e66ecb705
link
/test pilot-multicluster-e2e_istio_release-1.3

e2e-dashboard_istio_release-1.3
3f038e0531857bc6ff4974b9dfb06a5e66ecb705
link
/test e2e-dashboard_istio_release-1.3

integ-mixer-k8s-tests_istio_release-1.3
3f038e0531857bc6ff4974b9dfb06a5e66ecb705
link
/test integ-mixer-k8s-tests_istio_release-1.3

integ-istioctl-k8s-tests_istio_release-1.3
175051bae8e5833c388d5253435ecdf58902f437
link
/test integ-istioctl-k8s-tests_istio_release-1.3

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@howardjohn: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

pilot-multicluster-e2e_istio_release-1.3
3f038e0531857bc6ff4974b9dfb06a5e66ecb705
link
/test pilot-multicluster-e2e_istio_release-1.3

e2e-dashboard_istio_release-1.3
3f038e0531857bc6ff4974b9dfb06a5e66ecb705
link
/test e2e-dashboard_istio_release-1.3

integ-mixer-k8s-tests_istio_release-1.3
3f038e0531857bc6ff4974b9dfb06a5e66ecb705
link
/test integ-mixer-k8s-tests_istio_release-1.3

integ-istioctl-k8s-tests_istio_release-1.3
175051bae8e5833c388d5253435ecdf58902f437
link
/test integ-istioctl-k8s-tests_istio_release-1.3

integ-new-install-k8s-tests_istio_release-1.3
175051bae8e5833c388d5253435ecdf58902f437
link
/test integ-new-install-k8s-tests_istio_release-1.3

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest

@howardjohn: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

pilot-multicluster-e2e_istio_release-1.3
3f038e0531857bc6ff4974b9dfb06a5e66ecb705
link
/test pilot-multicluster-e2e_istio_release-1.3

integ-istioctl-k8s-tests_istio_release-1.3
175051bae8e5833c388d5253435ecdf58902f437
link
/test integ-istioctl-k8s-tests_istio_release-1.3

integ-new-install-k8s-tests_istio_release-1.3
175051bae8e5833c388d5253435ecdf58902f437
link
/test integ-new-install-k8s-tests_istio_release-1.3

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


Query fails on security enabled pbft classic

Description:
Now that I have my commandlines squared away, I rebuilt the image by the book and on a VP0/1/2/3 set, I was able to login lukas, deploy, invoke on the TID and when I tried to query it failed...
Logs:
qf 1 of 4.txt
qf 2 of 4.txt
qf 3 of 4.txt
qf 4 of 4.txt

I'm seeing this error in the vp0 log
`18:55:56.030 [devops] getChaincodeBytes -> DEBU 1bc5 Received build request for chaincode spec: type:GOLANG chaincodeID:<path:"github.com/hyperledger/fabric/examples/chaincode/go/ndt/nondet_example02" > ctorMsg:<function:"init" args:"a" args:"1000" args:"b" args:"2000" > secureContext:"lukas" confidentialityLevel:CONFIDENTIAL
18:55:56.054 [devops] Deploy -> ERRO 1bc6 Error deploying chaincode spec: type:GOLANG chaincodeID:<path:"github.com/hyperledger/fabric/examples/chaincode/go/ndt/nondet_example02" > ctorMsg:<function:"init" args:"a" args:"1000" args:"b" args:"2000" > secureContext:"lukas" confidentialityLevel:CONFIDENTIAL
error: Path to chaincode does not exist: github.com/hyperledger/fabric/examples/chaincode/go/ndt/nondet_example02
18:55:56.054 [rest] processChaincodeDeploy -> ERRO 1bc7 Error when deploying chaincode: Path to chaincode does not exist: github.com/hyperledger/fabric/examples/chaincode/go/ndt/nondet_example02`
The other logs say the chaincode container build return with rc=1

Problem with the example chaincode, closing.


How is "length(min|max)": ByteLength, supposed to work?

I tried several options:
valid:"length(min)=1"
valid:"length(min):1"
valid:"length(1|255)"
valid:"length(1,255)"

This never returns any error nor does it catch an empty input. Can someone help me out?

As was described in struct here: https://github.com/asaskevich/govalidator/blob/master/validator_test.go#L1668
And in test: https://github.com/asaskevich/govalidator/blob/master/validator_test.go#L1829
Can you give a short snippet with sample?

Been working on this with a colleague and having:
type UserDataPatch struct {
    GivenName     string `json:"givenName,omitempty"`
    FullName      string `json:"fullName,omitempty" valid:"length(1|2)"`
    Password      string `json:"-" gorm:"-"`
    ... etc …
}

results in the FullName being considered valid.
We then looked at the tests and added in the following:
To TestLengthStruct:
{LengthStruct{""}, false},

and to to TestStringLengthStruct we added:
{StringLengthStruct{""}, false},

Both tests fail. However, adding {"", "1", "2", false}, to TestByteLength passes.
If need be I can make a PR with the updated tests. Not sure how you want to tackle this. I'm happy to fix it up if you have any particular approach in mind.

what is the status of this issue?

Still open and needs resolution. I haven't had time to look into it yet.

Could you provide full working example of this issue please?

The length validator is broken.
Use case: change zero to, say, 10 here:
https://github.com/asaskevich/govalidator/blob/master/validator_test.go#L2342
Then make food an empty string here:
https://github.com/asaskevich/govalidator/blob/master/validator_test.go#L2342
This test will incorrectly pass.

#162

Hello guys!
I forked this package cause owner disappeared. Hope, he will be back, but it would be easier to merge these changes back if he is back
Link to my repo: create issue there and we'll discuss it.


init antic at v0.2.5

Description of changes

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 209644 run on x86_64-linux 1

1 package built:

antic

Result of nixpkgs-review pr 209644 run on x86_64-linux 1

1 package built:

antic

Thank you :)


Publish pyo3-tch 0.16

Is it possible to publish version 0.16 of pyo3-tch to crates.io? I see that 0.16 of tch-rs and torch-sys are available but the latest version of pyo3-tch is 0.15.

cc: @LaurentMazare

Ah sorry, totally forgot to push this one out, it should be all good now.

Sorry it took me so late to reply. Can you push out 0.17? Version 0.16 is good to go. Thanks for all the hard work!


Fly mode does not turn off if you enter parkour mode while flying in the air.

Compiled as of https://github.com/A5H73Y/Parkour/commit/7dea8ea280a20f32f7850c3c07c66ee32662dca1
Apparently flymode does not turn off when entering parkour mode while you are flying in the air prior to joining. It only disables fly if you are on the floor and had it turned on.

Fixed in next commit.

Seems to be working great now, thanks.


Account is not prepared for group exception

Great writeup on how to run a liquidator. However, when I get to the dry run for running the liquidator I got the following exception and the liquidator terminates.
Exception: Account 'Dd8sgey2VD1uo5jBJfwJAdfi2GZAvULcoSqAy87jQGBT' is not prepared for group '2oogpTYm1sp6LPZAWD3bp2wsFpnV2kXL1s52yyFhW5vp'.

Any ideas?

There should be some error output before that, and that should describe the root problem. Can you share that?
If you're not seeing any error output before that, can you try passing the parameter --log-level INFO as well as the other parameters?
The 'is not prepared for group' is a general exception thrown after the AccountScout performs a bunch of checks and generates a report with errors and warnings. The liquidator can still run if there are some warnings, but errors mean there's a problem somewhere we need to deal with before the liquidator can safely, properly run.

Thanks for such a quick reply!
Here's the full output:
N|S /var/ mango-explorer liquidator --target "BTC:33%" --target "ETH:33%" --dry-run
2021-08-10 16:25:23 ⚠ root
⚠ WARNING ⚠

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

    🥭 Mango Markets: https://mango.markets
    📄 Documentation: https://docs.mango.markets/
    💬 Discord: https://discord.gg/67jySBhxrg
    🐦 Twitter: https://twitter.com/mangomarkets
    🚧 Github: https://github.com/blockworks-foundation
    📧 Email<EMAIL_ADDRESS>
2021-08-10 16:25:23 ⓘ root         Context: « 𝙲𝚘𝚗𝚝𝚎𝚡𝚝:
    Cluster: mainnet-beta
    Cluster URL: https://solana-api.projectserum.com
    Program ID: 5fNfvyp5czQVX77yoACa3JJVEhdRaWjPuazuWgjhTqEH
    DEX Program ID: 9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin
    Group Name: BTC_ETH_SOL_SRM_USDC
    Group ID: 2oogpTYm1sp6LPZAWD3bp2wsFpnV2kXL1s52yyFhW5vp
»
2021-08-10 16:25:23 ⓘ root         Wallet address: Dd8sgey2VD1uo5jBJfwJAdfi2GZAvULcoSqAy87jQGBT
2021-08-10 16:25:23 ⓘ root         Checking wallet accounts.
2021-08-10 16:25:39 ⓘ root         Wallet account report: « ScoutReport [Dd8sgey2VD1uo5jBJfwJAdfi2GZAvULcoSqAy87jQGBT]:
    Summary:
        Found 2 error(s) and 2 warning(s).

    Errors:
        Account 'Dd8sgey2VD1uo5jBJfwJAdfi2GZAvULcoSqAy87jQGBT' has no account for token 'Wrapped SOL', mint 'So11111111111111111111111111111111111111112'.
        Account 'Dd8sgey2VD1uo5jBJfwJAdfi2GZAvULcoSqAy87jQGBT' has no account for token 'Serum', mint 'SRMuApVNdxXokk5GT7XD5cUUgXMBCoAz2LHeuAoKWRt'.

    Warnings:
        No Serum open orders account for market 'Wrapped SOL/USD Coin' [9wFFyRfZBsuAha4YcuxcXLKwMxJR43S7fPfQLusDBzvT]'.
        No Serum open orders account for market 'Serum/USD Coin' [ByRys5tuUWDgL73G8JBAEfkdFf8JWBzPBDHsBVQ5vbQA]'.

    Details:
        Account 'Dd8sgey2VD1uo5jBJfwJAdfi2GZAvULcoSqAy87jQGBT' has 1 Wrapped Bitcoin (Sollet) token account(s) with mint '9n4nbM75f5Ui33ZbPYXn59EwSgE8CGsHtAeTH5YFeJ9E': [3C2ADDY4wy3n7ZHoEnBxLedAzTNe5aiJfT655LdkcdaY]
        Account 'Dd8sgey2VD1uo5jBJfwJAdfi2GZAvULcoSqAy87jQGBT' has 1 Wrapped Ethereum (Sollet) token account(s) with mint '2FPyTwcZLUg1MDrwsyoP4D6s1tM7hAkHYRjkNb5w6Pxk': [Fm765bTJpDe9nYbRqHgTgmPhMPy39eiCqqCT497sziGb]
        Account 'Dd8sgey2VD1uo5jBJfwJAdfi2GZAvULcoSqAy87jQGBT' has 1 USD Coin token account(s) with mint 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v': [ETrBARWJBMppYfaBw69kGzRn8J8RJX8mKWUAR4WaZnew]
        Serum open orders account for market 'Wrapped Bitcoin (Sollet)/USD Coin': « OpenOrders [F5Jf4GKejKhED4X3rgPRQH8dZTdMaAXi2SjPL43vQWL]:
            Flags: « SerumAccountFlags: initialized | open_orders »
            Program ID: 9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin
            Market: A8YFbxQYFVqKZaoYJLLUVcQiWP7G2MeEgW5wsAQgMvFw
            Owner: Dd8sgey2VD1uo5jBJfwJAdfi2GZAvULcoSqAy87jQGBT
            Base Token: 0.00000000 of 0.00000000
            Quote Token: 0.00000000 of 0.00000000
            Referrer Rebate Accrued: 144872
            Orders:
                None
            Client IDs:
                None
        »
        Serum open orders account for market 'Wrapped Ethereum (Sollet)/USD Coin': « OpenOrders [8cwoi1gti8GsFYxhaEDEPqerwSvbLbhXp8kqmWFv2t6G]:
            Flags: « SerumAccountFlags: initialized | open_orders »
            Program ID: 9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin
            Market: 4tSvZvnbyzHXLMTiFonMyxZoHmFqau1XArcRCVHLZ5gX
            Owner: Dd8sgey2VD1uo5jBJfwJAdfi2GZAvULcoSqAy87jQGBT
            Base Token: 0.00000000 of 0.00000000
            Quote Token: 0.00000000 of 0.00000000
            Referrer Rebate Accrued: 145031
            Orders:
                None
            Client IDs:
                None
        »
        Account 'Dd8sgey2VD1uo5jBJfwJAdfi2GZAvULcoSqAy87jQGBT' has no Mango Markets margin accounts.
»
2021-08-10 16:25:39 🛑 root         Liquidator stopped because of exception: Account 'Dd8sgey2VD1uo5jBJfwJAdfi2GZAvULcoSqAy87jQGBT' is not prepared for group '2oogpTYm1sp6LPZAWD3bp2wsFpnV2kXL1s52yyFhW5vp'. - Traceback (most recent call last):
  File "/home/jovyan/work/bin/liquidator", line 106, in <module>
    raise Exception(f"Account '{wallet.address}' is not prepared for group '{group.address}'.")
Exception: Account 'Dd8sgey2VD1uo5jBJfwJAdfi2GZAvULcoSqAy87jQGBT' is not prepared for group '2oogpTYm1sp6LPZAWD3bp2wsFpnV2kXL1s52yyFhW5vp'.

2021-08-10 16:25:39 ⓘ root         Liquidator completed.

Aha. OK. The root problem is that Mango now has 5 tokens in its Group (BTC, ETH, SOL, SRM, USDC) not the old 3 tokens (BTC, ETH, USDT). That Quickstart is a bit out of date. Sorry.
(You could just run the liquidator against the old Group - it's still there but doesn't see too much action these days. The equivalent command for you would be: mango-explorer liquidator --group-name BTC_ETH_USDT --target "BTC:33%" --target "ETH:33%" --dry-run )
The exception is saying that you don't have SPL token accounts for SRM and Wrapped SOL. You need those accounts to exist so that if you liquidate someone, their tokens can go to your account. It's probably better to have some of those tokens in your account so you can provide them if they're needed for liquidations.
SOL is tricky because it's not a 'real' SPL token in Solana, it's the native token. To use it as an SPL token it needs to be 'wrapped' in an SPL-compatible wrapper.
Also, the quote token changed from USDT to USDC. That isn't mentioned in the error (it's likely you already have a USDC token account), but it is something you'll need to address.
So, to get up and running:

Convert some or all of your USDT to USDC
Buy (or acquire) some SRM
'Wrap' some SOL, using the command wrap-sol

Apologies for the inconvenience.

awesome thanks! I can update the walkthru in a PR if I get it running.

You are welcome to, of course, but it will need to be completely re-done for V3 anyway (happening soon!) so it may not be the best use of your time.

For who still got issue with this:
mango-explorer group-balance-wallet  --group-name BTC_ETH_SOL_SRM_USDC --target "BTC:0.004" --target "ETH:0.05" --target "SOL:2" --target "SRM:20"
this one uses for Liquidator v2, cannot use percentage anymore.


remove bindings

Pull Request
Short Summary
Include a short summary
Context
Add a more detailed explanation of changes
Is this a Breaking Change?
Is this a breaking change to the public interface?

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

Project coverage is 88.66%. Comparing base (b847a4a) to head (d958ebd).

Additional details and impacted files
@@           Coverage Diff           @@
##             main       #6   +/-   ##
=======================================
  Coverage   88.66%   88.66%
=======================================
  Files           9        9
  Lines         344      344
=======================================
  Hits          305      305
  Misses         39       39


Config error ergonomics

The current spin-config interface declares the following errors:
variant error {
    provider(string),
    invalid-key(string),
    invalid-schema(string),
    other(string),
}

Working with this I ran into a couple of issues:

It's ambiguous what's "invalid" about an invalid-key.  Looking at the code it seems to mean that the key is malformed according to the syntax rules.  But many people (well, one person at least) will guess that this means the key wasn't defined.  Could we rename this to malformed-key or something?  Failing that, could we document it in the WIT file?
There's no distinguished error for the key not being found.  It looks like this is detected internally as InvalidPath but this gets mapped to other at the interface.  It would be great if we could identify this case in the WIT so it can be mapped to (e.g.) a KeyNotFoundException, or null, or None according to the local customs of the language.
invalid-schema appears to occur when a slot has is not required but does not have a default value.  I may be misunderstanding but this seems like something we should catch at manifest validation time, rather than being a runtime error.
other also includes the case where a template is syntactically invalid or we need to recurse through too many templates to resolve it.  Again, would it be possible to catch this at manifest validation time?  If not, would it make sense to map it to invalid-schema, as both of these are effectively manifest authoring issues rather than run-time errors?

Thanks!

Correction: various things can cause the internal InvalidPath, only one of which is the requested key not existing.


Go client Reader panics when passing custom StartMessageID

Expected behavior
I can pass arbitrary type implementing the pulsar.MessageID interface in pulsar.ReaderOptionswhen creating a Reader instance.
Actual behavior
When I pass a custom type the client library panics:
panic: interface conversion: pulsar.MessageID is mypackage.pulsarMessageID, not *pulsar.messageID
	/usr/local/go/src/runtime/panic.go:513 +0x1b9
github.com/apache/pulsar/pulsar-client-go/pulsar.createReaderAsync(0xc0002229a0, 0xc0001fe29a, 0x9, 0x0, 0x0, 0xb800a0, 0xc0002fb6e0, 0xc00018dd40, 0x0, 0x0, ...)
	/go/pkg/mod/github.com/apache/pulsar@v2.2.0+incompatible/pulsar-client-go/pulsar/c_reader.go:115 +0x504
github.com/apache/pulsar/pulsar-client-go/pulsar.(*client).CreateReaderAsync(0xc0002229a0, 0xc0001fe29a, 0x9, 0x0, 0x0, 0xb800a0, 0xc0002fb6e0, 0x0, 0x0, 0x0, ...)
	/go/pkg/mod/github.com/apache/pulsar@v2.2.0+incompatible/pulsar-client-go/pulsar/c_client.go:220 +0x65
github.com/apache/pulsar/pulsar-client-go/pulsar.(*client).CreateReader(0xc0002229a0, 0xc0001fe29a, 0x9, 0x0, 0x0, 0xb800a0, 0xc0002fb6e0, 0x0, 0x0, 0x0, ...)
	/go/pkg/mod/github.com/apache/pulsar@v2.2.0+incompatible/pulsar-client-go/pulsar/c_client.go:207 +0xca

The culprit is the following line:
// Unchecked type assertion assuming that StartMessageID is of type *messageID
C._pulsar_client_create_reader_async(client.ptr, topic, options.StartMessageID.(*messageID).ptr,
	conf, savePointer(&readerAndCallback{reader, conf, callback}))

Steps to reproduce
See above
System configuration
Pulsar version: 2.2
github.com/apache/pulsar v2.2.0+incompatible h1:i2dfg67DNdHRgdzdIiSObTb9VRavAtZStxC4YIySxAI=
github.com/apache/pulsar v2.2.0+incompatible/go.mod h1:7npmYEEu+jEeIMdpGSJwrTxUB86OW/UM5IkJCAyfl5Y=
g

Hey @wolfstudy @sijie
I'm new to this community, but would like to start contributing.
I had a look at the reader code and the type assertion seems incorrect here and must be tested to avoid the panic.
https://github.com/apache/pulsar/blob/master/pulsar-client-go/pulsar/c_reader.go#L118
Value of options.StartMessageID which is of Go Type MessageID, will fail to be used as type *messageID if the value passed to it is created by anything other than these 2 available defaults https://github.com/apache/pulsar/blob/35bb23520ca0518764952d0a780a50861ee5a0d7/pulsar-client-go/pulsar/message.go#L93
The fix in my opinion would be to test the type assertion, and if it fails, recreate a messageID using its serialized data using this https://github.com/apache/pulsar/blob/35bb23520ca0518764952d0a780a50861ee5a0d7/pulsar-client-go/pulsar/message.go#L87
This will ensure compatibility with *messageID when passing as argument to underlying cgo code.
Let me know if this looks good.
Also, on a separate note, is there any documentation to test go code?
I tried unit testing locally from within the pulsar-client-go and got this error.
Are there some prep steps for the C environment which I'm missing?
$ go test github.com/apache/pulsar/pulsar-client-go/pulsar -run=TestReader
# github.com/apache/pulsar/pulsar-client-go/pulsar
In file included from pulsar/c_client.go:24:
./c_go_pulsar.h:22:10: fatal error: 'pulsar/c/client.h' file not found
#include <pulsar/c/client.h>
         ^~~~~~~~~~~~~~~~~~~
1 error generated.
FAIL    github.com/apache/pulsar/pulsar-client-go/pulsar [build failed]

Thanks to @nitishv feedback, we will replace cgo-client with native go client, can you try to use native go client to see if you will encounter the same problem?

@wolfstudy the same panic happens with native go client
Here's what I tried.

Added a unit test which creates custom message ID type, satisfying this interface https://github.com/apache/pulsar-client-go/blob/master/pulsar/message.go#L108

$ git diff pulsar/reader_test.go
diff --git a/pulsar/reader_test.go b/pulsar/reader_test.go
index c98771d..988f0cf 100644
--- a/pulsar/reader_test.go
+++ b/pulsar/reader_test.go
@@ -362,3 +362,58 @@ func TestReaderHasNext(t *testing.T) {

        assert.Equal(t, 10, i)
 }
+
+type myMessageID struct {
+       data []byte
+}
+
+func (id *myMessageID) Serialize() []byte {
+       return id.data
+}
+
+func TestReaderWithCustomMessageID(t *testing.T) {
+       client, err := NewClient(ClientOptions{
+               URL: lookupURL,
+       })
+
+       assert.Nil(t, err)
+       defer client.Close()
+
+       topic := newTopicName()
+       ctx := context.Background()
+
+       // create producer
+       producer, err := client.CreateProducer(ProducerOptions{
+               Topic:           topic,
+               DisableBatching: true,
+       })
+       assert.Nil(t, err)
+       defer producer.Close()
+
+       // send 10 messages
+       msgIDs := [10]MessageID{}
+       for i := 0; i < 10; i++ {
+               msgID, err := producer.Send(ctx, &ProducerMessage{
+                       Payload: []byte(fmt.Sprintf("hello-%d", i)),
+               })
+               assert.NoError(t, err)
+               assert.NotNil(t, msgID)
+               msgIDs[i] = msgID
+       }
+
+       myMsg := &myMessageID{
+               data: msgIDs[4].Serialize(),
+       }
+
+       myMsg := &myMessageID{
+               data: msgIDs[4].Serialize(),
+       }
+
+       // attempt to create reader on 5th message (not included)
+       var reader Reader
+       assert.NotPanics(t, func() {
+               reader, err = client.CreateReader(ReaderOptions{
+                       Topic:          topic,
+                       StartMessageID: myMsg,
+               })
+       })
+
+       assert.Nil(t, err)
+       defer reader.Close()
+}

Ran the modified UT using the CI bash script

NVASHISH-M-93PK:pulsar-client-go nvashish$ git diff run-ci.sh
diff --git a/run-ci.sh b/run-ci.sh
index 2de0eee..7507b68 100755
--- a/run-ci.sh
+++ b/run-ci.sh
@@ -31,7 +31,7 @@ go build -o pulsar-perf ./perf

 ./pulsar-test-service-start.sh

-go test -race -coverprofile=/tmp/coverage -timeout=20m ./...
+go test -race -coverprofile=/tmp/coverage -timeout=20m ./... -run=TestReaderWithCustomMessageID
 go tool cover -html=/tmp/coverage -o coverage.html

 ./pulsar-test-service-stop.sh

Test case failed with panic, even though it compiles.

-- Ready to start tests
+ go test -race -coverprofile=/tmp/coverage -timeout=20m ./... -run=TestReaderWithCustomMessageID
?       github.com/apache/pulsar-client-go/examples/consumer    [no test files]
?       github.com/apache/pulsar-client-go/examples/consumer-listener   [no test files]
?       github.com/apache/pulsar-client-go/examples/producer    [no test files]
?       github.com/apache/pulsar-client-go/examples/reader      [no test files]
ok      github.com/apache/pulsar-client-go/integration-tests    1.022s  coverage: 0.0% of statements [no tests to run]
?       github.com/apache/pulsar-client-go/perf [no test files]
time="2020-07-05T05:54:05Z" level=info msg="Connecting to broker" remote_addr="pulsar://localhost:6650"
time="2020-07-05T05:54:05Z" level=info msg="TCP connection established" local_addr="<IP_ADDRESS>:49144" remote_addr="pulsar://localhost:6650"
time="2020-07-05T05:54:05Z" level=info msg="Connection is ready" local_addr="<IP_ADDRESS>:49144" remote_addr="pulsar://localhost:6650"
time="2020-07-05T05:54:06Z" level=info msg="Created producer" cnx="<IP_ADDRESS>:49144 -> <IP_ADDRESS>:6650" producer_name=standalone-0-0 topic="persistent://public/default/my-topic-501
323100"
time="2020-07-05T05:54:06Z" level=info msg="Closing producer" producer_name=standalone-0-0 topic="persistent://public/default/my-topic-501323100"
time="2020-07-05T05:54:06Z" level=info msg="Closed producer" producer_name=standalone-0-0 topic="persistent://public/default/my-topic-501323100"
--- FAIL: TestReaderWithCustomMessageID (1.14s)
    reader_test.go:410:
                Error Trace:    reader_test.go:410
                Error:          func (assert.PanicTestFunc)(0xba3710) should not panic
                                        Panic value:    interface conversion: pulsar.MessageID is *pulsar.myMessageID, not *pulsar.messageID
                Test:           TestReaderWithCustomMessageID
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
        panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xb9e8f2]

goroutine 20 [running]:
testing.tRunner.func1(0xc000124200)
        /usr/local/go/src/testing/testing.go:830 +0x69d
panic(0xcf0820, 0x13abde0)
        /usr/local/go/src/runtime/panic.go:522 +0x1b5
github.com/apache/pulsar-client-go/pulsar.TestReaderWithCustomMessageID(0xc000124200)
        /pulsar-client-go/pulsar/reader_test.go:418 +0x9c2
testing.tRunner(0xc000124200, 0xda0408)
        /usr/local/go/src/testing/testing.go:865 +0x164
created by testing.(*T).Run
        /usr/local/go/src/testing/testing.go:916 +0x65b
FAIL    github.com/apache/pulsar-client-go/pulsar       1.164s
ok      github.com/apache/pulsar-client-go/pulsar/internal      1.029s  coverage: 0.0% of statements [no tests to run]
ok      github.com/apache/pulsar-client-go/pulsar/internal/auth 1.021s  coverage: 0.0% of statements [no tests to run]
ok      github.com/apache/pulsar-client-go/pulsar/internal/compression  1.025s  coverage: 17.9% of statements [no tests to run]
?       github.com/apache/pulsar-client-go/pulsar/internal/pulsar_proto [no test files]

Should I open an issue for native go client repo referencing this issue?

Cool Thanks to @nitishv the https://github.com/apache/pulsar-client-go/pull/305 has been merged to master, will close the issue.


electron app blank after running npm run build/build:dir

It's okay when used npm run dev to debug.
But blank after running npm run build or build:dir.
I change nothing after vue init ...  and npm i
the blank is the win-unpacked's xx.exe

Node version: 6.11.2
NPM version: 5.3.0
vue-cli version: (if necessary) 2.8.1
Operating System: win7 64

It's okay now.


Feature Request - Ability to scroll back on graph and see past IOB

I always liked this feature in loop, to be able to drag your finger back on the insulin graph and the past IOB would display. I found this helpful for tinkering with settings.

You can now see past IOB and COB (last 24 hours) together with the glucose


Not able to search for host

Subject: Not able to search for host
Description:
Hello there,
I am not seeing any option on how can I search for hosts.
Results:
Backend version: develop-71fd7f09
Frontend version: develop-71fd7f09
User Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Mobile/15E148 Safari/604.1
Page: https://app.couchers.org/profile/home
User: bettimak (4953)

Sorry, we'll rework the map soon


Mobile Implementation

Make initial mobile implementation of videos/grid/functionality. Assigned to Matt.

Lots to test but the implementation is there


nvm install should trigger a rebuild

At least in some cases.  In particular: if there's native code compiled against the old version, and the desired version (the one being installed) is the one specified in the .nvmrc.
(I'm not too familiar with nvm so it's possible that this issue is spurious, but I wasn't able to immediately find one asking for this feature).

Trigger a rebuild of what, exactly? Global modules aren't automatically reinstalled unless you use reinstall-packages - which reinstalls then with npm thus rebuilding them.
If the current directory happens to be a package (or have packages) that are compiled, how would nvm know that, and know to run npm rebuild? That seems like the responsibility of the developer who's switching node versions.


⚠ Secret Website 3 has degraded performance

In b646bf9, Secret Website 3 ($SECRET_WEBSITE_3) experienced degraded performance:

HTTP code: 200
Response time: 2332 ms

Resolved: Secret Website 3 performance has improved in a56f342.


Docs.MS Release Updates for azure_eventhub

Update docs metadata and targeting for release of azure_eventhub

Docs Build status updates of commit 7e7640f:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

docs-ref-autogen/azure-mgmt-servicebus/azure.mgmt.servicebus.models.MigrationConfigurationName.yml
:x:Error

Details

docs-ref-services/latest/eventhub-readme.md
:warning:Warning

Details

docs-ref-autogen/azure-mgmt-servicebus/azure.mgmt.servicebus.models.MigrationConfigurationName.yml

Line 2, Column 1: [Error-missing-attribute] Missing required attribute: 'fields'.
Line 7, Column 3: [Warning-xref-not-found] Cross reference not found: 'builtins.str'.

docs-ref-services/latest/eventhub-readme.md

Line 2, Column 1: [Warning-ms-prod-and-service] Only one of the following attributes can exist: 'ms.prod', 'ms.service'. Use ms.prod for on-premise products, or ms.service for cloud services.
Line 9, Column 16: [Warning-ms-prod-technology-invalid] Invalid value for 'ms.technology': 'azure' is not valid with 'ms.prod' value 'azure'.
Line 11, Column 13: [Warning-ms-service-subservice-invalid] Invalid value for 'ms.service': 'eventhubseventhubs'.
Line 2, Column 1: [Suggestion-description-missing] Missing required attribute: 'description'.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


How to get dataset full data table?

How can I see the details of R5(https://r5.risteys.finngen.fi//phenocode/H7_RETINOPATHYDIAB#endpoint-definition) dataset? I can see it in R8(https://r8.risteys.finngen.fi/phenocode/H7_RETINOPATHYDIAB#correlations) 'Endpoint definition' section.
Thanks!

I want to know why the dataset has the H7 label, and what is the difference between it and other diabetic retinopathy datasets?

Hi,
Many endpoints are defined using the ICD-10 system (actually a variant of it for Finland). This ICD-10 system has codes that starts with a later (e.g. J10.8).
The H7_ label refers to the chapter with codes starting with H, which is also chapter 7.
Regarding your first question, you can find the endpoint definitions in full for all releases here: https://www.finngen.fi/en/researchers/clinical-endpoints
Let me know if you have other questions


Not working on page load. Only when resizing page.

Any idea on how to solve this? :)

Nevermind. Fixed with this PR #33


Data Partitioning and Data Leakage Issues in Prediction Tasks

After reading the paper, I am interested in your proposed univariate forecasting task. I executed the script forecast/MF-CLR.sh, setting the dataset to ETTm1, whose shape is (69680, 7), with ot_granu set to quarterly. According to the code, window_len is 128 and pred_len is 48. There are some important issues I would like to discuss with you and hope to receive your response:

For ML-CLR's self-supervised learning, the data partition is as follows: data_array_train has a shape of (69632, 7), while data_array_test has a shape of (48, 128). This implies that almost the entire ETTm1 dataset is used for representation learning. After completing the representation learning, since OT_app is set to True, we obtain the representation results: train_x with a shape of (543, 128, 129), where train_x[:,:,:-1] is the representation of data_array_train, and train_x[:,:,-1] is the OT look-back window observations, and train_y with a shape of (543, 48). The representation results for data_array_test_norm are: test_x with a shape of (1, 128, 129), and test_y with a shape of (1, 48). When training the predictor, which is a ridge regressor, train_x and train_y are re-divided in an 0.8:0.2 ratio to form the training and validation sets for this predictor. However, the test set still consists of only one sample composed of test_x and test_y. I think that the data partitioning method causes a data leakage problem for the downstream prediction task. Moreover, having only one test sample is unreasonable.
I also noticed that you perform "normalization" on the dataset by calculating the mean and variance over almost the entire dataset length, specifically based on data_array_train, which has a shape of (69632, 7). I think this normalization can also lead to a leakage problem.

The code in our repository is for one-step-forward forecasting, which delivers the prediction based on a given forecast horizon. We think this setting is more user-friendly if someone would deploy MF-CLR into practical usage. If you want to use the code directly for the backtest based on an 8:2 train-test-split-ratio, my recommendation is to cut the dataset on the temporal dimension recursively with each time having one test sample left to be forecasted.
Hope this would address your concern. Merry Christmas!

Thanks for your response. I executed the "official implementation" you provided in this repository, using ETTm1 as an example,  and showed the execution process and results. Building upon this, I raised questions about experiment settings. Unfortunately, your reply did not address any of my concerns.


Support query_instruction

Feature request
Hey,
Are you currently supporting query_instruction  for BAAI/bge-large-zh?
model = HuggingFaceBgeEmbeddings(
    model_name=model_name,
    model_kwargs=model_kwargs,
    encode_kwargs=encode_kwargs,
query_instruction="为这个句子生成表示以用于检索相关文章："
)

Motivation
BAAI/bge-large-zh
Your contribution
.

To use query instruction, just concatenate the query instruction and the text you want to embed before sending it to the backend.


Pattern Guides (LLaMA-7B)

Pattern guides/regex patterns don't seem to have quite the impact one would expect
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("Neko-Institute-of-Science/LLaMA-7B-HF")
model = AutoModelForCausalLM.from_pretrained("Neko-Institute-of-Science/LLaMA-7B-HF")
llama = guidance.llms.Transformers(model=model, tokenizer=tokenizer, device=5)
statement_gen = guidance("""
Today we want to say that our new tech company with the name {{gen 'companyname' max_tokens=10 pattern='[a-zA-Z]{8}'}} went public under the ticker {{gen 'ticker' pattern='[A-Z]{4}' temperature=0.3}}
""")
statement_gen(llm=llama)

I would expect this to output
Today we want to say that our new tech company with the name NameOfCompany went public under the ticker TCKR
where NameOfCompany matches [a-zA-Z]{8}, i.e. consisting of letters, no whitespace and exactly eight characters.
Actual output:

Today we want to say that our new tech company with the name ofTechno 2000 is going went public under the ticker TKOO

, i.e. companyname = ofTechno 2000 is going (bad) and ticker = TKOO (good)
Do I misunderstand pattern guides or is this an issue?

Thanks! I think there is an issue going on here. Will debug it in the next few hours and push a fix if needed.

Just pushed a fix where we were not biasing strongly enough. It is important to keep in mind that the model does not "plan ahead" for the pattern guides, so in the case above you see it starts with "of". Giving the models more planning is a future todo :)


fix error when benchmark_rets is None

As titled, when benchmark_rets=None, timeseries.extract_interesting_date_ranges(benchmark_rets) will throw the error "AttributeError: 'NoneType' object has no attribute 'copy'".
This issue is also reported here: https://github.com/quantopian/pyfolio/issues/556#issuecomment-412255346

Thanks @fehiepsi and @eigenfoo!


CSV data file does not match Turnstile ontology

In CounterApplication.sadl we have

And in SoftwareComponent.csv we have

Also, it seems "Mockup" is not defined in the ontology.

Do those CSV files have to be generated manually or is there an automated way to do it?  If they are manually generated that seems problematic and there will be a significant ongoing risk of them being out of date.

Do those CSV files have to be generated manually or is there an automated way to do it?  If they are manually generated that seems problematic and there will be a significant ongoing risk of them being out of date.

The Mockup entries have been removed.

@kquick : The file SoftwareComponent.csv still has data values for headers controlFlowsToConditionallyId, controlFlowsToUnconditionallyId while that info is not present in the sadl file. While there are sadl queries to generate csv files (see 99-Utils/DataQueries.sadl) I do not see this csv file being generated via a query in that file. So, not sure where this csv file is coming from. Any suggestions on what should be done?

@AbhaMoitra , it looks like that csv file is generated by running the CLI tool against the Turnstile-Ontology/99-Utils/Data/Model.yaml file, so you should be able to run that and commit the changes therefrom.

@glguy :  does this generation need to be part of some script so that it does not get out-of-synch in future. I have not "run the CLI" tool as mentioned above.


vtctl: Add commands to manipulate the adaptive throttling of the resharding throttler.

Summary of changes:

Added new methods to Throttler RPC interface.
Implemented methods for gRPC.
Wrote RPC regression tests for the new methods (throttlerclient_testsuite.go).
Wrote unit tests for the actual code (manager_test.go).
Wrote e2e tests which are tested by worker.py (vtworker) and resharding.py (filtered replication).

@alainjobart

LGTM


PHP Fatal error // After setup if prefix is used its looking for AppBaseController in all the prefix dir's

PHP Fatal error: Class 'App\Http\Controllers\Admin\AppBaseController' not found in /home/vagrant/home/app/Http/Controllers/Admin/ArticleController.php on line 14
Got this after running:
php artisan infyom:api_scaffold Product --fieldsFile='resources/model_schemas/Product.json' --prefix=admin

temporary fix I  put
use App\Http\Controllers\AppBaseController;

This uses the AppBaseController in the non prefixed directory. I  have not tested if this will work or cause issues I am just giving you a heads up.

The temp fix did not work. This is also looking for AppBaseController in the api directories

@phillipmadsen I am already on it and will push a fix by this weekend.

@phillipmadsen this is fixed in develop branch. Please check and confirm it.

my develop branch is still looking for it and others.
https://github.com/InfyOmLabs/laravel-generator/issues/179


Feedback for "Cloud Foundry Environment"

https://help.sap.com/docs/BTP/65de2977205c403bbc107264b8eccf4b/9c7092c7b7ae4d49bc8ae35fdd0e0b18.html
In the documentation "Sharing Service Instances" is mentioned in 'Supported Features' column.
However, "service instance sharing" is not supported by SAP BTP as per KB https://launchpad.support.sap.com/#/notes/0003069860 and our tests.
We also found some questions on Community Page that talk about that issue:
https://answers.sap.com/questions/13611699/sharing-service-instances-supportednot-supported-c.html
https://answers.sap.com/questions/702091/service-instance-sharing-on-sap-cp-cf.html

Thank you for your feedback! We’ll look into it and come back to you if we have any questions.

Hello @daniil-bolobonov, thank you for reaching out. SAP BTP as a platform in principle does support instance sharing, but not all SAP BTP services support this feature. Hence the disclaimer in the topic you linked. We will update the documentation gradually to provide further information on this.


Ambassador grpc 443 port resolver returns no route configured

Describe the bug
We are facing an issue with grpc authority headers in ambassador versions >= 1.0.0.
Grpc with tls and 443 port : when hit from bloomrpc throws UNIMPLEMENTED. NR status for the request in ambassador logs.
The above scenario is not observed in 0.85.0 version. It works without any error.
To Reproduce
Deploy ambassador of versions >= 1.0.0
Hit from bloomrpc with port 443 (mapped).
Current config:

Mapping
apiVersion: ambassador/v1
kind:  Mapping
name:  service_name_mapping
prefix: /
timeout_ms: 20000
regex_headers
:authority: service_name.*
grpc: true
ambassador_id: [ "ambassador-id" ]
service: service_name.svc.cluster.local:80

Module
apiVersion: ambassador/v1
kind:  Module
name:  ambassador
ambassador_id: ambassador-id
config:
service_port: 443
resolver: endpoint
load_balancer:
policy: round_robin
apiVersion: ambassador/v1
kind: TLSContext
name: tls
ambassador_id: ambassador-id
redirect_cleartext_from: 80
alpn_protocols: h2
hosts: ["*"]
secret: signed-certificate
apiVersion: ambassador/v1
kind: KubernetesEndpointResolver
name: endpoint

Expected behavior
Resolve to a particular ip and request redirected to the service.
Versions (please complete the following information):

Ambassador: 1.0.0,1.4.0
Kubernetes environment : kops
Version 1.15.6

you may want to check the workaround mentioned in https://github.com/datawire/ambassador/issues/2698

I'm going to close this as a dup of #2698 -- please reopen if that's incorrect!


The console cannot be accessed if the assigned role only has login/Human Tasks > View Task List /Workflow Management > BPS Profiles >View permissions

Describe the issue:
Create user and assign role which has login permission, and then try to login to console, getting an error that "unauthorized"
Tested with :
Create the user and assign roles with the following permissions.
Login
Human Tasks > View Task List
Workflow Management > BPS Profiles >View
That user also unable to access console
How to reproduce:
Create user
Add new role with permission Login
Assign role for the created user
Try to login to console

Environment information (Please complete the following information; remove  any unnecessary fields) :

Product Version: 5.11 Beta6 Snapshot
OS: Mac
Database: H2
Userstore: LDAP

I also faced the same issue
Environment:

Product version: IS 5.11.0 Beta6 Snapshot
OS: Mac
Database: MySQL 8
Userstore: JDBC
Tenant mode

Related https://github.com/wso2/product-is/issues/10229


Prefer pass-by-value over pass-by-reference for public methods

pass-by-value is faster than pass-by-reference for types that are small
and Copy.  This is technically a breaking change since these methods are
public.  However, most crates should compile fine because the only
method argument that's changing is &self, which is provided
implicitly.  The only way to get into trouble would be something like
this:
let ready = Ready::new;
Ready::is_hup(&ready)

@asomers Can you rebase this on master then I think we get this merged.

@asomers I've created a pr https://github.com/asomers/mio/pull/1 that rebased this pr on the master branch so we can get this merged.

@asomers thanks.


Updates for impwclock BangleJs2 compatibility

Copied changes from wclock to handle different screen geometry of both BangleJS and BangleJS2 cases. Tested on both devices.

Just realized there is some code in there to show the time on screen for BangleJS2, but it doesn't seem to work. Looking at the tutorial collection, it's not clear to me how to figure out how to trigger events with the touchscreen yet. If anyone else can take a look it's got a comment "Bangle2" already.

Ok - changed it up to use screen touch on both BangleJS and BangleJS2 to toggle display of accurate digital time. Might be better to hide the display of digital time if there was an "End of Touch" event to do that on, but didn't see a way to do that. So display state toggles, and if left on stops showing accurate time at the start of next imprecise time era.

That's great, thanks! I think you could use Bangle.on('drag' - it'll give you a button-down value, and you can check when that becomes 0 or 1 (you just don't want to redraw every event as you get loads when you're dragging your finger)


Update the Gemfile.lock with the latest dependencies.

Exactly what the title says!

Thanks @calebjderosier


zeusgang.is-local.org

Requirements

[x] You have completed your website.
[x] The website is reachable.
[x] You have put a full stop (.) at the end of each of the CNAME, MX and NS records.
[x] The CNAME record doesn't contain https:// or /.
[x] There is sufficient information at the owner field.

Description
just for my personal group with member info and leaderboard
Link to Website
https://zeusgangproject.github.io/

I have read the CLA Document and I hereby sign the CLA


bug: Input range => Frozen slider on Internet Explorer 11

Type: bug
Platform: desktop browser
Here is a demo : http://codepen.io/anon/pen/OPdJRq

Greetings @kyro38!
My sensors indicate that you need to update your issue through our custom issue form. We are now requiring all issues to be submitted this way, to ensure that we have all of the information necessary to fix them as quickly as possible.
Click Here To Update Your Issue
I will have no choice but to close this issue if it is not resubmitted through the form. Please fill out the rest of the form, so that I may use my friendly robot powers to assist you.
Thank you!

Hmm, it works on a touch screen, so this maybe related to touch/pointer events

It also works with the keyboard cursor keys (after selecting the range with the mouse)

It works in IE11 when we remove the e.preventDefault(); inside tapMouseDown (talking ionic.bundle.js).
The question is if this is better targetted with IE 11 in mind or with type=range in mind. If I understand correctly this function handles the focus of text fields and the keyboard being shown. So we could exclude the type=range here similiar to the select|option exclude in the if:
if ((!ionic.tap.isTextInput(e.target) || tapLastTouchTarget !== e.target) && !(/^(select|option)$/i).test(e.target.tagName)) {
      e.preventDefault();
}

I'm going to let @perrygovier Take a look at this. He's been working scrolling/touch events so he'd know best

I am also facing the same issue with range input on IE 11.
For the time being the only solution seams to be is to set element.contentEditable = true for the range input element.

The problem is also present in Edge :persevere:
Before waiting for the 1.2 milestone, the workaround of @anubhavgupta works great

  <input type="range" name="volume" contenteditable="true">

Okay, a few discoveries: First, we can't preventDefault in tapMouseDown if it's a range (at least on IE). However, range styles are totally borked in Edge, so that needs to be fixed as well.

Should be fixed now, and range styles were fixed. Thanks!

Hi @mlynch,
When you say : 'we can't preventDefault in tapMouseDown if it's a range (at least on IE). '
I used the following workaround : https://forum.ionicframework.com/t/range-slider-not-movable-in-internet-explorer/19592/4
The fix was to only add && e.target.type !== 'range' at the end of the if condition
It's weird but the range works well on my computer on IE10 & IE11 only with this condition (even if I don't understand why the method isTextInput is bypassed by IE)


Uncaught TypeError: Invalid Point: (459, NaN)

[Enter steps to reproduce:]

In some larger .json files (~50+ kb?) the cursor would eventually stop moving forward about five characters from the end of a line.  It would not move forward using either the arrow keys or the mouse.
Moving the cursor down a line, then backwards to wrap back to the previous line throws the Invalid Point error.

Worth noting that restarting Atom made the problem stop occurring.  Haven't had it show up in any documents since.
Atom: 1.35.1 x64
Electron: 2.0.18
OS: Microsoft Windows 10 Home
Thrown From: Atom Core
Stack Trace
Uncaught TypeError: Invalid Point: (459, NaN)
At C:\Users\Nathaniel\AppData\Local\atom\app-1.35.1\resources\app\static\<embedded>:11

TypeError: Invalid Point: (459, NaN)
    at Function.t.exports.Point.assertValid (~/AppData/Local/atom/app-1.35.1/resources/app/static/<embedded>:14:43907)
    at DisplayLayer.translateScreenPosition (~/AppData/Local/atom/app-1.35.1/resources/app/static/<embedded>:14:85013)
    at DisplayMarkerLayer.t.exports.DisplayMarkerLayer.translateScreenPosition (~/AppData/Local/atom/app-1.35.1/resources/app/static/<embedded>:14:1093829)
    at DisplayMarker.t.exports.DisplayMarker.setHeadScreenPosition (~/AppData/Local/atom/app-1.35.1/resources/app/static/<embedded>:14:3175209)
    at changePosition (~/AppData/Local/atom/app-1.35.1/resources/app/static/<embedded>:11:521837)
    at Cursor.changePosition (~/AppData/Local/atom/app-1.35.1/resources/app/static/<embedded>:11:530381)
    at Cursor.setScreenPosition (~/AppData/Local/atom/app-1.35.1/resources/app/static/<embedded>:11:521803)
    at Cursor.moveLeft (~/AppData/Local/atom/app-1.35.1/resources/app/static/<embedded>:11:524625)
    at moveCursors.t (~/AppData/Local/atom/app-1.35.1/resources/app/static/<embedded>:11:30968)
    at Array.forEach (<anonymous>)
    at transact (~/AppData/Local/atom/app-1.35.1/resources/app/static/<embedded>:11:33144)
    at TextBuffer.transact (~/AppData/Local/atom/app-1.35.1/resources/app/static/<embedded>:11:491885)
    at TextEditor.transact (~/AppData/Local/atom/app-1.35.1/resources/app/static/<embedded>:11:24215)
    at TextEditor.moveCursors (~/AppData/Local/atom/app-1.35.1/resources/app/static/<embedded>:11:33112)
    at TextEditor.moveLeft (~/AppData/Local/atom/app-1.35.1/resources/app/static/<embedded>:11:30951)
    at TextEditor.core:move-left (~/AppData/Local/atom/app-1.35.1/resources/app/static/<embedded>:11:298652)
    at HTMLElement.o.(anonymous function) (~/AppData/Local/atom/app-1.35.1/resources/app/static/<embedded>:11:307694)
    at CommandRegistry.handleCommandEvent (~/AppData/Local/atom/app-1.35.1/resources/app/static/<embedded>:11:350017)
    at KeymapManager.t.exports.KeymapManager.dispatchCommandEvent (~/AppData/Local/atom/app-1.35.1/resources/app/static/<embedded>:11:1212981)
    at KeymapManager.t.exports.KeymapManager.handleKeyboardEvent (~/AppData/Local/atom/app-1.35.1/resources/app/static/<embedded>:11:1209115)
    at WindowEventHandler.handleDocumentKeyEvent (~/AppData/Local/atom/app-1.35.1/resources/app/static/<embedded>:11:285196)

Commands
     -0:36.6.0 core:confirm (input.hidden-input)
 15x -0:26 core:select-right (input.hidden-input)
     -0:22.7.0 core:select-down (input.hidden-input)
     -0:22.3.0 core:select-up (input.hidden-input)
     -0:21.6.0 core:select-right (input.hidden-input)
     -0:21.1.0 core:move-down (input.hidden-input)
  5x -0:20.9.0 core:move-left (input.hidden-input)
  3x -0:19.7.0 editor:move-to-beginning-of-word (input.hidden-input)
  6x -0:18.5.0 core:move-right (input.hidden-input)
     -0:16 core:move-left (input.hidden-input)
  4x -0:15.8.0 core:move-right (input.hidden-input)
     -0:14.4.0 core:move-up (input.hidden-input)
     -0:14.1.0 core:move-down (input.hidden-input)
     -0:13.7.0 core:move-right (input.hidden-input)
     -0:13.3.0 core:move-down (input.hidden-input)
 16x -0:13 core:move-left (input.hidden-input)

Non-Core Packages
git-blame 1.7.0
language-javascript-jsx 0.3.7

Thanks for the report :+1:
We've had a number of reports of this but no specific reproducible steps yet e.g. x-ref: https://github.com/atom/atom/issues/18725, https://github.com/atom/atom/issues/18818, https://github.com/atom/atom/issues/17307, https://github.com/atom/atom/issues/16674
#18725:

When this error occurred I was working in my mini-project, and I was trying
to copy a line where was a header("locatio:");  but it didn't let
me copy all, when I pasted it, it was like this
der("locatio:");

https://github.com/atom/atom/issues/18818:

Selected 2 lines, hit delete
Hit delete once more (to delete the remaining empty line)

https://github.com/atom/atom/issues/17307:

... OPENED A FILE FROM MY NETWORK
... JUST PRESSED [BACKSPACE ON A SPECIFIC LINE THAT I WANTED TO REMOVE FROM THE FILE]


Typo in a sample manifest

This is a Bug Report

Problem:
In the blog titled OPA Gatekeeper: Policy and Governance for Kubernetes, a sample manifest is provided for a ConstraintTemplate. This blog is in the file content/en/blog/_posts/2019-08-06-OPA-Gatekeeper-Policy-and-Governance-for-Kubernetes.md
The spec.targets[].rego provides a rule named deny and when applied, the GateKeeper admission controller rejects the object with the error:
Error from server (Invalid rego:
Missing required rule: violation): error when creating "k8s-labels-template.yaml": admission webhook "validation.gatekeeper.sh" denied the request: Invalid rego:
Missing required rule: violation

Proposed Solution:
The solution is to replace the keyword deny with violation to rename the rule appropriately for the admission controller. This fixes the problem as I've tested it.
Page to Update:
https://kubernetes.io/blog/2019/08/06/opa-gatekeeper-policy-and-governance-for-kubernetes/

Kubernetes API v1.21.0

GateKeeper manifest for GateKeeper 3.3
I can send a quick PR for the fix, if required.

If I can be given membership of the org, I can hunt down more such typos and triage my issues to expedite patching. Let me know if this helps :)

@demonCoder95 Org membership should not be a blocker for any contributors. See getting started.

@tengqm I was just mentioning it, so that I can add triaged tags for myself with typos like these that I may find in the future. Thanks for the help! I'll send a short patch right away to fix this thing.

/assign @imoisharma

/area blog

/triage accepted


handlr open "https://google.com" causes flatpak firefox to try to open "file://$(pwd)/%u"

Hiya. Got Firefox installed as a flatpak, and when trying to use this nifty-looking utility to open a URL, it does correctly open Firefox, but it tries to load the page "file://$(pwd)/%u" and fails. Other applications open URLs in firefox just fine.
What do you need from me to diagnose and fix this?
EDIT: Here's the exec line of the desktop file:
/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=firefox --file-forwarding org.mozilla.firefox @@u %u @@
Is your utility not correctly handling the %u specifier?

Fixed in v0.2.1 out right now.
Thanks @TiZ-EX1 :)

Awesome, thank YOU! Confirmed the fix works. :)


EPIC: Create CycloneDX SBOM for current Adoptium MetaData JSON

Adoptium builds currently generate a MetaData JSON file with version and dependency build info. This EPIC covers the tasks required to create the necessary CycloneDX tooling and scripting to provide the same MetaData as A CycloneDX SBOM json file.

The single task in this epic is completed, so closing.


PHPStan v1.0

Updated to PHPStan 1.0 and fixed errors
Run tests and analyses on PHP 8.1 with CI
Some code "fix"
Closes #208

Coverage remained the same at 99.621% when pulling 897835dd61c1b01e73b1d8e156f9f660e6359cd8 on t0mmy742:phpstan_v1 into a47b43a8da7c0208b4c228af0cb29ea36080635a on slimphp:master.

Awesome, thank you for this contribution @t0mmy742


Blank landing and register page

After setup i can see the content on the API endpoint but http://localhost:8008/register and http://localhost:8008 is showing blank page
note: I am using the 8008 port

You need to install npm
Steps :-

npm install
npm run dev
Note: - npm run dev should keep running on local

Make necessary changes for port in config/nginx/conf.d/app.conf
and also change in .env file for APP_URL


Add input handling to simulator

@jamwaffles Firstly, thanks for the great work you are doing on embedded-graphics! I am using this library to build the front-end for a low-cost patient monitor written in Rust, and it is a great tool. I recall you mentioning this library a while ago on the embedded-rust IRC channel-- I'm glad to see it's growing in usage. I will be writing an implementation of this API for the RA8875 display driver very soon.
I wanted to put up a small PR to add basic input event handling to the embedded-graphics simulator. Although input event handling isn't in the scope of the embedded-graphics API, it is a very nice tool to add to the simulator from a developer perspective:

A simple touch interface is common in many embedded device displays
Typically, the touch screen controller and display driver are tightly bound at the firmware level, sometimes even being reported by the same chip
For the purposes of simulation, adding input controls makes it significantly easier to quickly iterate on responsive UI designs without having to hook up the display hardware and deal with finicky drivers

It also seemed necessary to add input control at the simulator level since it wraps the SLD2 window instance, which handles all of the input events on the canvas. An input event solution running external to the simulator did not seem like an easy thing to pull off.
Let me know what you think when you have time to look this over-- and no worries if this is outside the scope of what you'd like in the library. Just thought I'd put it up as a PR since it's working well for me, and it might be useful to others!

@rfuest You mentioned you were picking up a menu demo which will require input handling. Might be an idea to base it off this PR/wait for merge?

Yes, this definitely looks like a great start. @ReeceStevens would you be interested in extending this PR to also support keyboard input? I would, for example, like to be able control my menu demo using the cursor keys.

The coordinates used in the mouse events currently use SDL window coordinates, which don't take the display scaling into account. I'd prefer the mouse events to use Points which correspond with the coordinates used by the drawing routines.

@jamwaffles thanks for the feedback! Unfortunately I don't have a public repo for my patient monitor project yet, but I hope to open source it in the future. In the meantime I am trying to open source as many of the drivers as I can (e.g. the f4 board support crate) and utility crates like this digital filter one. I intend to open source the RA8875 driver as well.
And definitely, I understand about heavy development :) I've got a pretty heavy emphasis on unit + integration testing for the software side of things; I assume risk for any dependencies I pull in, so I do a lot of source code diving and try to cover my bases as much as is reasonably possible.
I've got an example running for clicking to move a red circle around the screen; I'll push that up shortly.
@rfuest I don't mind taking a crack at adding keyboard support, but it might be a little bit till I can get to it since keyboard controls are out of the scope of what I am using the simulator for currently. Keyboard events also seem a lot more context-dependent; would it make sense to just queue the entire Event::Keydown and Event::Keyup event and let the user decide what to do with it? (that implementation would certainly be more straightforward)
Also, good catch on the SDL window coordinates and display scaling, I will address that.

I don't mind taking a crack at adding keyboard support, but it might be a little bit till I can get to it since keyboard controls are out of the scope of what I am using the simulator for currently.

That's great, I don't mind waiting a bit.

Keyboard events also seem a lot more context-dependent; would it make sense to just queue the entire Event::Keydown and Event::Keyup event and let the user decide what to do with it? (that implementation would certainly be more straightforward)

I would prefer to not have a direct dependency on SDL2 by reusing it's types, but this would be the easiest solution. @jamwaffles what's your opinion on this?

That's great, I don't mind waiting a bit.

Should this be in a different PR or the same one do you think?

what's your opinion on this?

I don't really have one, but we can go with the simple solution for now and abstract it later. The simulator is more of an internal project (and is sub-1.0 too) so it's up for plenty of breakage :)

Should this be in a different PR or the same one do you think?

I don't mind, whatever @ReeceStevens prefers.

I don't really have one, but we can go with the simple solution for now and abstract it later. The simulator is more of an internal project (and is sub-1.0 too) so it's up for plenty of breakage :)

OK, I agree.

@rfuest I had a few more minutes today to work than I thought, so I went ahead and did the straightforward implementation of keyboard events. I also updated the example to move the circle around based on the arrow keys as well as mouse clicks. Let me know what you think-- it may be better just to forward the sdl2 events directly, but I made a separate enum so we could do the coordinate system conversion internally before it hits the user. Open to changing that if need be.

Let me know what you think-- it may be better just to forward the sdl2 events directly, but I made a separate enum so we could do the coordinate system conversion internally before it hits the user.

Let's stick with this solution for now and see how it works out in practice.
I didn't have time to look at your recent changes in detail, but here are some suggestions for additional features that might be useful:

Support for both Up and Down variants of the Key and MouseButton events
Adding the repeat flag to the keyboard events
Adding support for MouseWheel events, which can be used to emulate rotary encoders. Something simple like this should work:Event::MouseWheel {
    y, ..
} => {
    if y > 0 {
        self.input_events.push(SimulatorEvent::MouseWheelUp);
    } else if y < 0 {
        self.input_events.push(SimulatorEvent::MouseWheelDown);
    }
}

Hey @rfuest thanks for the review-- I haven't forgotten about your comments, I am hoping to get to them either tonight or next Wednesday.

@rfuest changes made

@rfuest thanks for the review! Apologies for missing the details on the wheel event-- I should have read the SDL docs more carefully there.
I believe I have addressed all of your comments-- let me know if there is anything else that stands out to you.

LGTM. Thanks for all the work!

Mint! Thank you everyone!


options.json increased supported parameters

Aligned Parameter list to try and match list in config_emhass.yaml .
The hope is to create a future commit to the emhass-add-on repository  to support said parameters.

Will have a look at the array keys and tests tomorrow (when I'm less tired).
May look into merging the methods/changes seen in https://github.com/davidusb-geek/emhass/pull/69 to assist.

Once @davidusb-geek is happy, and the commits have been pulled. I can start looking into merging the other (still relevant) commits from @smurfix pull request https://github.com/davidusb-geek/emhass/pull/69

Found a few bugs with this pull request. Fill try and fix them soon

Ok thank you for this work. Integrating those improvements from @smurfix was a long standing item in the to do list.
They are very tricky so we really need to test this very well.
Keep in mind that the file web_server.py is not tracker by the tests because I have not found a proper way to unit test a web sever like this. So any changes that may affect the web server need to be tested very well. Chaning that yaml file configuration list thing may affect the web server, so be carefull about that.
I have some comments on the reviews section

haha yeah these are pretty mutch all the issues i have been finding.

Hi @GeoDerp, as you can see the main branch as been updated following the merge of #153.
Unfortunately there are some conflicts because @michaelpiron also changed the old list behavior in the config file.
Please update your branch and solve the eventual conflicts. Thank you

@GeoDerp what is the current status of this? Did you managed to test the web_server.py?

Haven't made any new tests, but from my local tests everything seems functional. Just need to find a way to parse options into local builds to be sure. Haven't worked out how that works yet.

Maybe we can add an option OPTIONS_PATH to the web server for the case where we are not using the add-on and then pass the options.json when executing the docker run command. But make this optional.

Ok I will merge and try to test it locally on my side.


Ensure CJS/MJS require interop in nodejs-compat

In Node.js, there is now experimental support for require('...') an ESM.
In Node.js, by default, requiring an ESM, the require returns the module namespace. There is a new PR, however, that will allow the ESM to indicate that the require should return the default export instead: https://github.com/nodejs/node/pull/54563
Example:
// a.mjs
export default class Foo {};

console.log(require('./a.mjs'));
// [Module: null prototype] { __esModule: true, default: [class Foo] }

With the PR
// a.mjs
export default class Foo {};
export const __cjsUnwrapDefault = true;

console.log(require('./a.mjs'));
// [class Foo]

When nodejs_compat_v2 mode is on, and we are calling require('...') from a CommonJS module, the new export should be honored.

It seems like this is already implemented @jasnell. Can we close this?

Yes


General fixups

I love this module and its helped me out a lot, or saved me some pain porting over a Perl version.
I have ran through the code updated some bits an pieces, its certainly not a comprehensive  look.
Feel free to use or not use anything here.
Regards

This is failing because of:

./clamd.go:128: Sprintf format %s has arg s of wrong type *clamd.ScanResult
./clamd.go:189: Sprintf format %s has arg s of wrong type *clamd.ScanResult

I would like to do this...
--- a/clamd.go
+++ b/clamd.go
@@ -26,7 +26,6 @@ SOFTWARE.
 package clamd

 import (
-       "errors"
        "fmt"
        "io"
        "net/url"
@@ -125,7 +124,7 @@ func (c *Clamd) Ping() error {
                case "PONG":
                        return nil
                default:
-                       return errors.New(fmt.Sprintf("Invalid response, got %s.", s))
+                       return fmt.Errorf("Invalid response, got %v.", s)
                }
        }
 }
@@ -186,7 +185,7 @@ func (c *Clamd) Reload() error {
                case "RELOADING":
                        return nil
                default:
-                       return errors.New(fmt.Sprintf("Invalid response, got %s.", s))
+                       return fmt.Errorf("Invalid response, got %v.", s)
                }
        }
 }

but I am not sure about the GO 1.1, 1.2 and 1.3 in the travis file, are you happy for me to remove them and bump the test versions to be 1.9 and 1.10?


More clear information is needed regarding the source IP used by the IBC to write on the remote share

The phrase "You need a file share accessible from Azure Stack that can contain seven backups." is not clear enough.
We need to know what is the IP that will be used by the IBC to access the remote share. I don't think that is a good security practice to allow all the public IP range used by Azure Stack to access an internal fileserver on port 445. Some guiding regarding how the admins can detect this IP is needed.

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

ID: a868d70f-4b98-7a38-5aea-f42f37ec4524
Version Independent ID: e27eb785-922f-55ca-4b12-ca978e5e8680
Content: Backup and data recovery for Azure Stack with the Infrastructure Backup Service
Content Source: articles/azure-stack/azure-stack-backup-infrastructure-backup.md
GitHub Login: @mattbriggs
Microsoft Alias: mabrigg

Thanks for the feedback! We are currently investigating and will update you shortly.

@raluca256 Thanks for the feedback! I have assigned the issue to the content author to evaluate and update as appropriate.

@raluca256 Thanks for your feedback and question. I have a question out and will get back to you as soon as I have the answer. Thanks! #in-progress

@raluca256 I passed on your feedback. In terms of the sentence "You need a file share accessible from Azure Stack that can contain seven backups," we decided to make it more general:  "Has sufficient capacity to store the backups based on the frequency and retention period." Thanks again, Matt #please-close

Thank you Matt, but I was looking for more clarity not for something more "general". I wanted to make it more clear on what IP will be used to help ease the configuration and help the clients.
Get Outlook for Androidhttps://aka.ms/ghei36

From: Matt Briggs<EMAIL_ADDRESS>Sent: Friday, March 1, 2019 11:00:38 PM
To: MicrosoftDocs/azure-docs
Cc: raluca256; Mention
Subject: Re: [MicrosoftDocs/azure-docs] More clear information is needed regarding the source IP used by the IBC to write on the remote share (#25926)
@raluca256https://github.com/raluca256 I passed on your feedback. In terms of the sentence "You need a file share accessible from Azure Stack that can contain seven backups," we decided to make it more general: "Has sufficient capacity to store the backups based on the frequency and retention period." Thanks again, Matt #please-close
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/azure-docs/issues/25926#issuecomment-468810034, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AV2gY--B5erFKR-LLuXVK00ZSQdON1Zjks5vSZT2gaJpZM4bWk6w.

@raluca256 I think you are pointing to a file share that you have defined. Do you mean do you want to know the IP address of the server hosting the IBC service?

#please-close

I closed it 10 days ago :).


docs: Fix problems with the 'rate-limit-service' page

Fix punctuation
Proof-read for "Ambassador" vs "the Ambassador API Gateway" vs "the Ambassador Edge Stack"
Clarify what's going on with v1/rls.proto vs v2/rls.proto

Fixes https://github.com/datawire/ambassador/issues/2828

Before merging, I'm waiting on the website preview to make sure that the code block is rendering in a sane way.

The trick is to use
```diff

instead of
```patch

It's doing something wrong with trimming leading whitespace from the first line, but that's not particularly important here.


Update Alibaba deletion instructions

#2171

Given what you wrote on #2171, shouldn't it be changed to impossible?

My apologies for the confusion, the previous instructions to deactivate would suggest that. But I found a way to permanently delete the account a few minutes later, which is why I opened this PR.

Thanks for your contribution!


Revert "Handle notification errors"

Reverts flutter/flutter#31868
This didn't quite work - looks like the type might not get passed through as expected in all these cases.

LGTM

Landing on red to make analyzing failure logs more readable - and because this is a revert.


Is there a way to specify a period offset?

I've got a bot running at 30 minute intervals, so it's going at :00 and :30
Is there a way to change that to use :01 and :31, or any other pair of offsets? I don't see anything obvious.

That's not a feature right now, but I was just curious why you would want that.

Other trading platforms have an offset so everyone isn't always trading on :00 and :30, a random offset could put the trade intervals at :03 and :33, for example.

Dear issue reporter,
We have slightly changed our github issue policy and would now kindly request folks that have questions that they ask them in our zenbot subreddit.
You can find it here: https://reddit.com/r/zenbot
This issue will be closed, but if you disagree with your ticket being marked as a question feel free to leave a comment defending your case.
Thanks for contributing time and effort!
Greetings,
🤖


[Enhancement]:  Clear Rules for the Game

Do you want to have the enhancement of existing game ? 😀 Describe yourself..
Game enhancement:
The instructions are vague regarding how the player needs to play the game. A step-by-step rule can help players become aware of the rules and play the game effectively.
Describe the solution you'd like
Solution steps:
I can provide a step-by-step process of playing the game in the 'Instructions' part of the Game setting page, that makes the players completely aware of the ruleset governing the game.
Program under which I'm contributing: GSSoC'24. Marking the level of the issue under the appropriate Label, please assign me the issue to work on.
Select program in which you are contributing
Other
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

If you have any doubt you can directly send message on our discord (https://discord.gg/rZb46cCMmK), we have created separate channels for all projects...
Thank you :)


feat: collection ref and policies

includes common policy setting function, still a wip for principals etc but keen to get your thoughts.

Codecov Report

:exclamation: No coverage uploaded for pull request base (feat/config-as-code@15e05bc). Click here to learn what that means.
The diff coverage is n/a.

@@                  Coverage Diff                   @@
##             feat/config-as-code      #82   +/-   ##
======================================================
  Coverage                       ?   74.34%
======================================================
  Files                          ?       81
  Lines                          ?     1228
  Branches                       ?      114
======================================================
  Hits                           ?      913
  Misses                         ?      314
  Partials                       ?        1

Continue to review full report at Codecov.

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


removing sjms-component

sjms-component can not be loaded as a dependency. Is this ready?

what do you mean ?

sjms-component can not be loaded as a dependency. Is this ready?

No, it was not released yet. But will be soon. You may want to compile it from sources or use the Apache Snapshots repo [1], if you want to use it in the mean time.
You probably see it in the list of extensions on https://camel.apache.org/camel-quarkus/latest/list-of-camel-quarkus-extensions.html
"latest" in that URL currently means the master branch in this repo. The since version 0.5 there is correct - that's the one to be released.
Anyway, we acknowledge that the above interpretation of "latest" may be seen as misleading and we plan to change it after version 1.0.
[1] http://repository.apache.org/content/groups/snapshots