text:
Only run generated quantities when needed for optimizing, sampling, and ADVI

Summary:
Right now,

optimization and ADVI create generated quantities each iteration

sampling creates generated quantities during warmup which aren't needed

Provide options so they're not saved when not needed.
Current Version:
v2.17.1

Are we sure that generated quantities are computed at every step for ADVI? I've just been looking at the source code and get the impression that they are only computed once after the optimisation has terminated. For LBFGS, however, it does seem like they are unnecessarily computed at every step.
Am I right in thinking that they are only computed by the write_array method? This even has a flag which you can set to not compute the generated quantities, so it should be really easy to fix this (based on my first impression).

I don't know what ADVI does.  It doesn't use the L-BFGS in algorithms for its optimization.
Sampling computes generated quantities during warmup whether the warmup iterations are saved or not.
I thought optimization computed generated quantities every iteration, but it should also only need them at the end.
How much are any of these saved values used for debugging?  Probably not much because generated quatnities don't affect sampling.
You'll need to be careful that nothing requires rectangular input for "parameters" (everything dumped out including transformed parameters and generated quantities) in RStan or PyStan.

Huh?  Generated quantities is called only when the parameters are requested
to be written out and that occurs only if the “save_warmup” argument is set
to true,
https://github.com/stan-dev/stan/blob/develop/src/stan/services/util/run_adaptive_sampler.hpp https://github.com/stan-dev/stan/blob/develop/src/stan/services/util/run_adaptive_sampler.hpp
If interfaces other than CmdStan modify this to always save warmup
iterations then this is an interface issue, not a core Stan issue.

On Feb 1, 2018, at 5:16 PM, Bob Carpenter notifications@github.com wrote:
I don't know what ADVI does. It doesn't use the L-BFGS in algorithms for its optimization.
Sampling computes generated quantities during warmup whether the warmup iterations are saved or not.
I thought optimization computed generated quantities every iteration, but it should also only need them at the end.
How much are any of these saved values used for debugging? Probably not much because generated quatnities don't affect sampling.
You'll need to be careful that nothing requires rectangular input for "parameters" (everything dumped out including transformed parameters and generated quantities) in RStan or PyStan.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub https://github.com/stan-dev/stan/issues/2459#issuecomment-362420626, or mute the thread https://github.com/notifications/unsubscribe-auth/ABdNloleFN8DHTMquS-1AF41kUHQ4nJHks5tQjfDgaJpZM4RjTXD.

On Feb 1, 2018, at 5:36 PM, Michael Betancourt notifications@github.com wrote:
Huh? Generated quantities is called only when the parameters are requested
to be written out and that occurs only if the “save_warmup” argument is set
to true,

Great.  That's what I think it should do.  I think we were running
into issues where running generated quantities during warmup (I believe
RStan saves warmup by default) led to crashing behavior due to numerical
issues.  I think the right behavior is to write out NaN values if
generated quantities throws an exception, but I don't know if that ever
got merged.
If we can turn off saving warmup, I don't see there's much else
we can do at the interface level.

This issue is supposed to be about optimization and ADVI, which do not have a save warmup flag. Run this
library(rstan)
m <- stan_model(model_code = 'parameters {real y;} model {y ~ normal(0,1);} generated quantities {reject("this gets executed");}')
optimizing(m) # fails on initial evaluation
optimizing(m, save_warmup) # fails due to lack of a save_warmup option
vb(m) # fails after adaptation but before optimization
vb(m, save_warmup) # fails due to lack of a save_warmup option

Could this be an RStan issue? I just don't think I saw this behaviour in CmdStan, either in my experiments or in the source code.

Done. This is the output:
`method = optimize
optimize
algorithm = lbfgs (Default)
lbfgs
init_alpha = 0.001 (Default)
tol_obj = 9.9999999999999998e-13 (Default)
tol_rel_obj = 10000 (Default)
tol_grad = 1e-08 (Default)
tol_rel_grad = 10000000 (Default)
tol_param = 1e-08 (Default)
history_size = 5 (Default)
iter = 2000 (Default)
save_iterations = 0 (Default)
id = 0 (Default)
data
file =  (Default)
init = 2 (Default)
random
seed = 1598959552
output
file = output.csv (Default)
diagnostic_file =  (Default)
refresh = 100 (Default)
Initial log joint probability = -0.835716
Iter      log prob        ||dx||      ||grad||       alpha      alpha0  # evals  Notes
2  -2.46519e-32       1.16356   2.22045e-16           1           1        5
Exception: this gets executed  (in 'stan/src/test/test-models/good/gqfail.stan' at line 8)`
`method = variational
variational
algorithm = meanfield (Default)
meanfield
iter = 10000 (Default)
grad_samples = 1 (Default)
elbo_samples = 100 (Default)
eta = 1 (Default)
adapt
engaged = 1 (Default)
iter = 50 (Default)
tol_rel_obj = 0.01 (Default)
eval_elbo = 100 (Default)
output_samples = 1000 (Default)
id = 0 (Default)
data
file =  (Default)
init = 2 (Default)
random
seed = 1598968164
output
file = output.csv (Default)
diagnostic_file =  (Default)
refresh = 100 (Default)

EXPERIMENTAL ALGORITHM:
This procedure has not been thoroughly tested and may be unstable
or buggy. The interface is subject to change.
Gradient evaluation took 0 seconds
1000 transitions using 10 leapfrog steps per transition would take 0 seconds.
Adjust your expectations accordingly!
Begin eta adaptation.
Iteration:   1 / 250 [  0%]  (Adaptation)
Iteration:  50 / 250 [ 20%]  (Adaptation)
Iteration: 100 / 250 [ 40%]  (Adaptation)
Iteration: 150 / 250 [ 60%]  (Adaptation)
Iteration: 200 / 250 [ 80%]  (Adaptation)
Success! Found best value [eta = 1] earlier than expected.
Begin stochastic gradient ascent.
iter             ELBO   delta_ELBO_mean   delta_ELBO_med   notes
100           -0.019             1.000            1.000
200           -0.053             0.822            1.000
300           -0.072             0.633            0.643
400            0.138             0.855            1.000
500           -0.072             1.269            1.000
600           -0.002             6.053            1.521
700           -0.044             5.323            1.000
800            0.110             4.833            1.399
900           -0.000            40.428            1.399
1000            0.111            36.486            1.399
1100           -0.036            36.790            1.521   MAY BE DIVERGING... INSPECT ELBO
1200            0.004            37.650            2.923   MAY BE DIVERGING... INSPECT ELBO
1300           -0.058            37.732            2.923   MAY BE DIVERGING... INSPECT ELBO
1400           -0.007            38.265            4.037   MAY BE DIVERGING... INSPECT ELBO
1500           -0.005            38.034            4.037   MAY BE DIVERGING... INSPECT ELBO
1600            0.038            35.149            1.399   MAY BE DIVERGING... INSPECT ELBO
1700           -0.080            35.201            1.471   MAY BE DIVERGING... INSPECT ELBO
1800           -0.021            35.350            2.888   MAY BE DIVERGING... INSPECT ELBO
1900            0.023             3.019            1.885   MAY BE DIVERGING... INSPECT ELBO
2000            0.050             2.972            1.885   MAY BE DIVERGING... INSPECT ELBO
2100           -0.020             2.916            1.885   MAY BE DIVERGING... INSPECT ELBO
2200           -0.161             2.079            1.471   MAY BE DIVERGING... INSPECT ELBO
2300           -0.061             2.138            1.667   MAY BE DIVERGING... INSPECT ELBO
2400           -0.164             1.516            1.471   MAY BE DIVERGING... INSPECT ELBO
2500            0.002            12.296            1.667   MAY BE DIVERGING... INSPECT ELBO
2600            0.042            12.280            1.667   MAY BE DIVERGING... INSPECT ELBO
2700            0.069            12.172            1.667   MAY BE DIVERGING... INSPECT ELBO
2800            0.006            12.913            1.667   MAY BE DIVERGING... INSPECT ELBO
2900            0.100            12.818            0.964   MAY BE DIVERGING... INSPECT ELBO
3000            0.081            12.789            0.964   MAY BE DIVERGING... INSPECT ELBO
3100            0.050            12.504            0.939   MAY BE DIVERGING... INSPECT ELBO
3200           -0.042            12.636            0.964   MAY BE DIVERGING... INSPECT ELBO
3300            0.175            12.593            0.964   MAY BE DIVERGING... INSPECT ELBO
3400           -0.012            14.151            1.238   MAY BE DIVERGING... INSPECT ELBO
3500           -0.024             3.362            0.964   MAY BE DIVERGING... INSPECT ELBO
3600            0.087             3.393            1.238   MAY BE DIVERGING... INSPECT ELBO
3700            0.002             6.993            1.276   MAY BE DIVERGING... INSPECT ELBO
3800           -0.144             6.064            1.238   MAY BE DIVERGING... INSPECT ELBO
3900           -0.028             6.391            1.276   MAY BE DIVERGING... INSPECT ELBO
4000           -0.109             6.442            1.276   MAY BE DIVERGING... INSPECT ELBO
4100           -0.137             6.399            1.276   MAY BE DIVERGING... INSPECT ELBO
4200            0.098             6.419            1.276   MAY BE DIVERGING... INSPECT ELBO
4300            0.133             6.321            1.276   MAY BE DIVERGING... INSPECT ELBO
4400            0.050             4.867            1.276   MAY BE DIVERGING... INSPECT ELBO
4500            0.048             4.818            1.276   MAY BE DIVERGING... INSPECT ELBO
4600            0.108             4.746            1.016   MAY BE DIVERGING... INSPECT ELBO
4700           -0.030             1.567            1.016   MAY BE DIVERGING... INSPECT ELBO
4800            0.004             2.247            1.667   MAY BE DIVERGING... INSPECT ELBO
4900            0.065             1.920            0.932   MAY BE DIVERGING... INSPECT ELBO
5000           -0.105             2.007            1.615   MAY BE DIVERGING... INSPECT ELBO
5100           -0.002             6.202            1.667   MAY BE DIVERGING... INSPECT ELBO
5200            0.058             6.067            1.615   MAY BE DIVERGING... INSPECT ELBO
5300            0.011             6.467            1.667   MAY BE DIVERGING... INSPECT ELBO
5400           -0.073             6.416            1.615   MAY BE DIVERGING... INSPECT ELBO
5500            0.105             6.582            1.690   MAY BE DIVERGING... INSPECT ELBO
5600           -0.073             6.770            2.433   MAY BE DIVERGING... INSPECT ELBO
5700           -0.126             6.351            1.690   MAY BE DIVERGING... INSPECT ELBO
5800           -0.064             5.665            1.615   MAY BE DIVERGING... INSPECT ELBO
5900           -0.123             5.619            1.615   MAY BE DIVERGING... INSPECT ELBO
6000            0.011             6.644            1.690   MAY BE DIVERGING... INSPECT ELBO
6100            0.075             2.513            1.153   MAY BE DIVERGING... INSPECT ELBO
6200           -0.005             4.042            1.690   MAY BE DIVERGING... INSPECT ELBO
6300            0.052             3.725            1.153   MAY BE DIVERGING... INSPECT ELBO
6400            0.052             3.611            1.095   MAY BE DIVERGING... INSPECT ELBO
6500            0.024             3.561            1.095   MAY BE DIVERGING... INSPECT ELBO
6600            0.047             3.367            0.952   MAY BE DIVERGING... INSPECT ELBO
6700            0.034             3.362            0.952   MAY BE DIVERGING... INSPECT ELBO
6800           -0.046             3.442            1.095   MAY BE DIVERGING... INSPECT ELBO
6900           -0.150             3.464            1.095   MAY BE DIVERGING... INSPECT ELBO
7000            0.035             2.812            1.095   MAY BE DIVERGING... INSPECT ELBO
7100            0.044             2.749            1.095   MAY BE DIVERGING... INSPECT ELBO
7200           -0.123             1.252            1.095   MAY BE DIVERGING... INSPECT ELBO
7300            0.065             1.432            1.188   MAY BE DIVERGING... INSPECT ELBO
7400           -0.000           461.421            1.360   MAY BE DIVERGING... INSPECT ELBO
7500            0.059           461.402            1.360   MAY BE DIVERGING... INSPECT ELBO
7600           -0.086           461.521            1.682   MAY BE DIVERGING... INSPECT ELBO
7700            0.035           461.829            1.752   MAY BE DIVERGING... INSPECT ELBO
7800           -0.007           462.243            2.893   MAY BE DIVERGING... INSPECT ELBO
7900           -0.033           462.251            2.893   MAY BE DIVERGING... INSPECT ELBO
8000           -0.018           461.798            1.682   MAY BE DIVERGING... INSPECT ELBO
8100           -0.028           461.812            1.682   MAY BE DIVERGING... INSPECT ELBO
8200           -0.034           461.693            1.682   MAY BE DIVERGING... INSPECT ELBO
8300           -0.235           461.489            1.000   MAY BE DIVERGING... INSPECT ELBO
8400           -0.016             2.857            1.000   MAY BE DIVERGING... INSPECT ELBO
8500            0.086             2.875            1.187   MAY BE DIVERGING... INSPECT ELBO
8600            0.037             2.837            1.187   MAY BE DIVERGING... INSPECT ELBO
8700           -0.080             2.639            1.187   MAY BE DIVERGING... INSPECT ELBO
8800            0.082             2.249            1.187   MAY BE DIVERGING... INSPECT ELBO
8900            0.047             2.243            1.187   MAY BE DIVERGING... INSPECT ELBO
9000           -0.042             2.375            1.301   MAY BE DIVERGING... INSPECT ELBO
9100            0.010             2.867            1.467   MAY BE DIVERGING... INSPECT ELBO
9200           -0.080             2.963            1.467   MAY BE DIVERGING... INSPECT ELBO
9300           -0.068             2.895            1.467   MAY BE DIVERGING... INSPECT ELBO
9400           -0.024             1.722            1.467   MAY BE DIVERGING... INSPECT ELBO
9500           -0.198             1.691            1.467   MAY BE DIVERGING... INSPECT ELBO
9600           -0.014             2.844            1.838   MAY BE DIVERGING... INSPECT ELBO
9700           -0.146             2.787            1.838   MAY BE DIVERGING... INSPECT ELBO
9800            0.054             2.958            1.838   MAY BE DIVERGING... INSPECT ELBO
9900            0.066             2.902            1.838   MAY BE DIVERGING... INSPECT ELBO
10000           -0.019             3.132            1.838   MAY BE DIVERGING... INSPECT ELBO
Informational Message: The maximum number of iterations is reached! The algorithm may not have converged.
This variational approximation is not guaranteed to be meaningful.
Exception: this gets executed  (in 'stan/src/test/test-models/good/gqfail.stan' at line 8)`

The vb seems different than what I got in rstan, but that may have just
been a random failure. The optimization is what Andrew has been complaining
about for months if not years. He wants it to be faster than literally
every other optimization algorithm, which it will never be, but one reason
is that it executes generating quantities at all the suboptimal points,
which is why you get that exception after 1 function evaluation.
On Fri, Feb 2, 2018 at 3:12 PM, Matthijs Vákár notifications@github.com
wrote:

Done. This is the output:
`method = optimize
optimize
algorithm = lbfgs (Default)
lbfgs
init_alpha = 0.001 (Default)
tol_obj = 9.9999999999999998e-13 (Default)
tol_rel_obj = 10000 (Default)
tol_grad = 1e-08 (Default)
tol_rel_grad = 10000000 (Default)
tol_param = 1e-08 (Default)
history_size = 5 (Default)
iter = 2000 (Default)
save_iterations = 0 (Default)
id = 0 (Default)
data
file = (Default)
init = 2 (Default)
random
seed = 1598959552
output
file = output.csv (Default)
diagnostic_file = (Default)
refresh = 100 (Default)
Initial log joint probability = -0.835716
Iter log prob ||dx|| ||grad|| alpha alpha0 # evals Notes
2 -2.46519e-32 1.16356 2.22045e-16 1 1 5
Exception: this gets executed (in 'stan/src/test/test-models/good/gqfail.stan'
at line 8)`
`method = variational
variational
algorithm = meanfield (Default)
meanfield
iter = 10000 (Default)
grad_samples = 1 (Default)
elbo_samples = 100 (Default)
eta = 1 (Default)
adapt
engaged = 1 (Default)
iter = 50 (Default)
tol_rel_obj = 0.01 (Default)
eval_elbo = 100 (Default)
output_samples = 1000 (Default)
id = 0 (Default)
data
file = (Default)
init = 2 (Default)
random
seed = 1598968164
output
file = output.csv (Default)
diagnostic_file = (Default)
refresh = 100 (Default)
EXPERIMENTAL ALGORITHM:
This procedure has not been thoroughly tested and may be unstable
or buggy. The interface is subject to change.
Gradient evaluation took 0 seconds
1000 transitions using 10 leapfrog steps per transition would take 0
seconds.
Adjust your expectations accordingly!
Begin eta adaptation.
Iteration: 1 / 250 [ 0%] (Adaptation)
Iteration: 50 / 250 [ 20%] (Adaptation)
Iteration: 100 / 250 [ 40%] (Adaptation)
Iteration: 150 / 250 [ 60%] (Adaptation)
Iteration: 200 / 250 [ 80%] (Adaptation)
Success! Found best value [eta = 1] earlier than expected.
Begin stochastic gradient ascent.
iter ELBO delta_ELBO_mean delta_ELBO_med notes
100 -0.019 1.000 1.000
200 -0.053 0.822 1.000
300 -0.072 0.633 0.643
400 0.138 0.855 1.000
500 -0.072 1.269 1.000
600 -0.002 6.053 1.521
700 -0.044 5.323 1.000
800 0.110 4.833 1.399
900 -0.000 40.428 1.399
1000 0.111 36.486 1.399
1100 -0.036 36.790 1.521 MAY BE DIVERGING... INSPECT ELBO
1200 0.004 37.650 2.923 MAY BE DIVERGING... INSPECT ELBO
1300 -0.058 37.732 2.923 MAY BE DIVERGING... INSPECT ELBO
1400 -0.007 38.265 4.037 MAY BE DIVERGING... INSPECT ELBO
1500 -0.005 38.034 4.037 MAY BE DIVERGING... INSPECT ELBO
1600 0.038 35.149 1.399 MAY BE DIVERGING... INSPECT ELBO
1700 -0.080 35.201 1.471 MAY BE DIVERGING... INSPECT ELBO
1800 -0.021 35.350 2.888 MAY BE DIVERGING... INSPECT ELBO
1900 0.023 3.019 1.885 MAY BE DIVERGING... INSPECT ELBO
2000 0.050 2.972 1.885 MAY BE DIVERGING... INSPECT ELBO
2100 -0.020 2.916 1.885 MAY BE DIVERGING... INSPECT ELBO
2200 -0.161 2.079 1.471 MAY BE DIVERGING... INSPECT ELBO
2300 -0.061 2.138 1.667 MAY BE DIVERGING... INSPECT ELBO
2400 -0.164 1.516 1.471 MAY BE DIVERGING... INSPECT ELBO
2500 0.002 12.296 1.667 MAY BE DIVERGING... INSPECT ELBO
2600 0.042 12.280 1.667 MAY BE DIVERGING... INSPECT ELBO
2700 0.069 12.172 1.667 MAY BE DIVERGING... INSPECT ELBO
2800 0.006 12.913 1.667 MAY BE DIVERGING... INSPECT ELBO
2900 0.100 12.818 0.964 MAY BE DIVERGING... INSPECT ELBO
3000 0.081 12.789 0.964 MAY BE DIVERGING... INSPECT ELBO
3100 0.050 12.504 0.939 MAY BE DIVERGING... INSPECT ELBO
3200 -0.042 12.636 0.964 MAY BE DIVERGING... INSPECT ELBO
3300 0.175 12.593 0.964 MAY BE DIVERGING... INSPECT ELBO
3400 -0.012 14.151 1.238 MAY BE DIVERGING... INSPECT ELBO
3500 -0.024 3.362 0.964 MAY BE DIVERGING... INSPECT ELBO
3600 0.087 3.393 1.238 MAY BE DIVERGING... INSPECT ELBO
3700 0.002 6.993 1.276 MAY BE DIVERGING... INSPECT ELBO
3800 -0.144 6.064 1.238 MAY BE DIVERGING... INSPECT ELBO
3900 -0.028 6.391 1.276 MAY BE DIVERGING... INSPECT ELBO
4000 -0.109 6.442 1.276 MAY BE DIVERGING... INSPECT ELBO
4100 -0.137 6.399 1.276 MAY BE DIVERGING... INSPECT ELBO
4200 0.098 6.419 1.276 MAY BE DIVERGING... INSPECT ELBO
4300 0.133 6.321 1.276 MAY BE DIVERGING... INSPECT ELBO
4400 0.050 4.867 1.276 MAY BE DIVERGING... INSPECT ELBO
4500 0.048 4.818 1.276 MAY BE DIVERGING... INSPECT ELBO
4600 0.108 4.746 1.016 MAY BE DIVERGING... INSPECT ELBO
4700 -0.030 1.567 1.016 MAY BE DIVERGING... INSPECT ELBO
4800 0.004 2.247 1.667 MAY BE DIVERGING... INSPECT ELBO
4900 0.065 1.920 0.932 MAY BE DIVERGING... INSPECT ELBO
5000 -0.105 2.007 1.615 MAY BE DIVERGING... INSPECT ELBO
5100 -0.002 6.202 1.667 MAY BE DIVERGING... INSPECT ELBO
5200 0.058 6.067 1.615 MAY BE DIVERGING... INSPECT ELBO
5300 0.011 6.467 1.667 MAY BE DIVERGING... INSPECT ELBO
5400 -0.073 6.416 1.615 MAY BE DIVERGING... INSPECT ELBO
5500 0.105 6.582 1.690 MAY BE DIVERGING... INSPECT ELBO
5600 -0.073 6.770 2.433 MAY BE DIVERGING... INSPECT ELBO
5700 -0.126 6.351 1.690 MAY BE DIVERGING... INSPECT ELBO
5800 -0.064 5.665 1.615 MAY BE DIVERGING... INSPECT ELBO
5900 -0.123 5.619 1.615 MAY BE DIVERGING... INSPECT ELBO
6000 0.011 6.644 1.690 MAY BE DIVERGING... INSPECT ELBO
6100 0.075 2.513 1.153 MAY BE DIVERGING... INSPECT ELBO
6200 -0.005 4.042 1.690 MAY BE DIVERGING... INSPECT ELBO
6300 0.052 3.725 1.153 MAY BE DIVERGING... INSPECT ELBO
6400 0.052 3.611 1.095 MAY BE DIVERGING... INSPECT ELBO
6500 0.024 3.561 1.095 MAY BE DIVERGING... INSPECT ELBO
6600 0.047 3.367 0.952 MAY BE DIVERGING... INSPECT ELBO
6700 0.034 3.362 0.952 MAY BE DIVERGING... INSPECT ELBO
6800 -0.046 3.442 1.095 MAY BE DIVERGING... INSPECT ELBO
6900 -0.150 3.464 1.095 MAY BE DIVERGING... INSPECT ELBO
7000 0.035 2.812 1.095 MAY BE DIVERGING... INSPECT ELBO
7100 0.044 2.749 1.095 MAY BE DIVERGING... INSPECT ELBO
7200 -0.123 1.252 1.095 MAY BE DIVERGING... INSPECT ELBO
7300 0.065 1.432 1.188 MAY BE DIVERGING... INSPECT ELBO
7400 -0.000 461.421 1.360 MAY BE DIVERGING... INSPECT ELBO
7500 0.059 461.402 1.360 MAY BE DIVERGING... INSPECT ELBO
7600 -0.086 461.521 1.682 MAY BE DIVERGING... INSPECT ELBO
7700 0.035 461.829 1.752 MAY BE DIVERGING... INSPECT ELBO
7800 -0.007 462.243 2.893 MAY BE DIVERGING... INSPECT ELBO
7900 -0.033 462.251 2.893 MAY BE DIVERGING... INSPECT ELBO
8000 -0.018 461.798 1.682 MAY BE DIVERGING... INSPECT ELBO
8100 -0.028 461.812 1.682 MAY BE DIVERGING... INSPECT ELBO
8200 -0.034 461.693 1.682 MAY BE DIVERGING... INSPECT ELBO
8300 -0.235 461.489 1.000 MAY BE DIVERGING... INSPECT ELBO
8400 -0.016 2.857 1.000 MAY BE DIVERGING... INSPECT ELBO
8500 0.086 2.875 1.187 MAY BE DIVERGING... INSPECT ELBO
8600 0.037 2.837 1.187 MAY BE DIVERGING... INSPECT ELBO
8700 -0.080 2.639 1.187 MAY BE DIVERGING... INSPECT ELBO
8800 0.082 2.249 1.187 MAY BE DIVERGING... INSPECT ELBO
8900 0.047 2.243 1.187 MAY BE DIVERGING... INSPECT ELBO
9000 -0.042 2.375 1.301 MAY BE DIVERGING... INSPECT ELBO
9100 0.010 2.867 1.467 MAY BE DIVERGING... INSPECT ELBO
9200 -0.080 2.963 1.467 MAY BE DIVERGING... INSPECT ELBO
9300 -0.068 2.895 1.467 MAY BE DIVERGING... INSPECT ELBO
9400 -0.024 1.722 1.467 MAY BE DIVERGING... INSPECT ELBO
9500 -0.198 1.691 1.467 MAY BE DIVERGING... INSPECT ELBO
9600 -0.014 2.844 1.838 MAY BE DIVERGING... INSPECT ELBO
9700 -0.146 2.787 1.838 MAY BE DIVERGING... INSPECT ELBO
9800 0.054 2.958 1.838 MAY BE DIVERGING... INSPECT ELBO
9900 0.066 2.902 1.838 MAY BE DIVERGING... INSPECT ELBO
10000 -0.019 3.132 1.838 MAY BE DIVERGING... INSPECT ELBO
Informational Message: The maximum number of iterations is reached! The
algorithm may not have converged.
This variational approximation is not guaranteed to be meaningful.
Exception: this gets executed (in 'stan/src/test/test-models/good/gqfail.stan'
at line 8)`
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/stan-dev/stan/issues/2459#issuecomment-362693906, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ADOrqiItbP-1LFSr50EywCJ08ns9VHbAks5tQ2wvgaJpZM4RjTXD
.

OK so is the behaviour of ADVI as intended?
For LBFGS, what's wrong about the current behaviour? It takes 5 steps before it's done optimising and then evaluates the GQs, right? Based on the source code, it should only evaluate GQs once, after it's done optimising.

I think ADVI is as intended. For LBFGS, if you change the generated quantities to a print message rather than a reject, in CmdStan it is only printing once at the end. But in rstan, it is printing multiple times before it reaches the optimum despite the C++ just calling
        stan::services::optimize::lbfgs(model, *init_context_ptr,
                                          random_seed, id, init_radius,
                                          history_size,
                                          init_alpha,
                                          tol_obj,
                                          tol_rel_obj,
                                          tol_grad,
                                          tol_rel_grad,
                                          tol_param,
                                          num_iterations,
                                          save_iterations,
                                          refresh,
                                          interrupt, logger,
                                          init_writer, sample_writer);

Which of those arguments is supposed to turn off generated quantities at suboptimal points during warmup?

Related to #2355

authors: VMatthijs betanalpha bgoodri bob-carpenter martinmodrak

repo: stan-dev/stan


text:
filesystem.suffix_base not present on TenantCreated

Describe the bug
I have  a value set for filesystem.suffix_base but it seems this has not been loaded when I use the example  CreateFrameworkDirectoriesForTenant on https://tenancyforlaravel.com/docs/v3/realtime-facades
It still uses the default "tentant" at this stage. Later when running the application storage_path returns the correct suffix_base from the config.
Steps to reproduce
Set a value for filesystem.suffix_base
Add CreateFrameworkDirectoriesForTenant to your TenantCreated job pipeline like shown on https://tenancyforlaravel.com/docs/v3/realtime-facades
Expected behavior
Should use the value from tenancy-config.
Your setup

Laravel version: 8.20.0
stancl/tenancy version: 3.4.0

I have a value set for filesystem.suffix_base

What's the reason for that?

Sorry, it works as expected. I was using an old tinker session.

source: gharchive/issue

authors: johans stancl

repo: stancl/tenancy

license: MIT

license_type: permissive

license_source: github-api


text:
standard/array-bracket-even-spacing breaks in destructuring with flowtype

([x, y]: C) => x + y gives Expected consistent spacing (standard/array-bracket-even-spacing)
([x, y]) => x + y and (c: C) => x + y are fine.
Should I file the issue here or at gajus/eslint-plugin-flowtype?
--fix doesn't get it there, but it is actually satisfied with the weird ([ x, y]: C) => x + y

I noticed another weird behavior with this.
This works:
const x = y(([, a, b, c, d]) => ({ /* ... */ }))

...as does this:
const x = y(([, a, b, /* c is unused */, d]) => ({ /* ... */ }))

But this gives me an error Expected consistent spacing (standard/array-bracket-even-spacing):
const x = y(([/* always zero */, a, b, c, d]) => ({ /* ... */ }))

This package isn't used by standard anymore, as of standard v16. See: standard/standard/issues/1316

authors: CherryDT feross qm3ster

repo: standard/eslint-plugin-standard


text:
v14 --fix rewrites a 'b' c to 'a 'b' c' instead of "a 'b' c"

What version of this package are you using?
v14.0.0
What operating system, Node.js, and npm version?
node v10.15.3
What happened?
standard --fix rewrote my template strings (containing single quotes) into single quote strings (containing escaped single quotes):
e.g.
-    expect(await fs.exists(`${dir}/a.txt`)).toBe(true, `'a.txt' exists`)
+    expect(await fs.exists(`${dir}/a.txt`)).toBe(true, '\'a.txt\' exists')

What did you expect to happen?
I didn't expect that. Like... I'm a little sad that it rewrote my template strings at all, but short of reverting #838, at worst --fix should rewrite them using double quotes like,
+    expect(await fs.exists(`${dir}/a.txt`)).toBe(true, "'a.txt' exists")

Are you willing to submit a pull request to fix this bug?
Maybe? If someone can point me at what file does the --fix behavior shouldn't be too hard for me to figure out.

I agree with you that this fix is not ideal. Double quotes would be better. The fix for this would need to go into ESLint in this file: https://github.com/eslint/eslint/blob/master/lib/rules/quotes.js It looks like we'd need to take into account the value of the avoidEscape rule setting whenever converting between quote types in --fix. This seems like a reasonable change.
@wmhilton As a next step, would you like to open this as an issue on ESLint to see what they think of the idea?

As a next step, would you like to open this as an issue on ESLint to see what they think of the idea?

done

Cool, let's wait to see how that issue discussion goes: https://github.com/eslint/eslint/issues/12129

@wmhilton FYI, there's a new issue opened with a proposed solution to this and other problems with the quotes rule: https://github.com/eslint/eslint/issues/12156

@wmhilton That seems like the right rule.

I just had a case of standard autofixing this:
db.raw(`date_trunc('day', "table"."column") as day`),
to
db.raw('date_trunc(\'day\', "purchaseOrderItem"."purchaseOrderItemEmptyCaptured") as day'),
I was really surprised as this is the second rule displayed on the website:

Use single quotes for strings except to avoid escaping.
eslint: quotes
console.log('hello there')    // ✓ ok
console.log("hello there")    // ✗ avoid
console.log(`hello there`)    // ✗ avoid
$("
")        // ✓ ok
console.log(`hello ${name}`)  // ✓ ok

I would at least expect not autofix (just like for eqeqeq) in these cases, or an update to the documented rules.

I just had a case of standard autofixing this:
db.raw(`date_trunc('day', "table"."column") as day`),
to
db.raw('date_trunc(\'day\', "table"."column") as day'),
I was really surprised as this is the second rule displayed on the website:

Use single quotes for strings except to avoid escaping.
eslint: quotes
console.log('hello there')    // ✓ ok
console.log("hello there")    // ✗ avoid
console.log(`hello there`)    // ✗ avoid
$("
")        // ✓ ok
console.log(`hello ${name}`)  // ✓ ok

I would at least expect not autofix (just like for eqeqeq) in these cases, or an update to the documented rules.

authors: FKPSC feross wmhilton

repo: standard/standard

license: mit

license_source: bigquery


text:
Tool to handle artist duplicate/alternate names

There are a few artist names in the DB that need to be corrected or added as alternate names (see this post for an example).
Job Curtis proposed a tool to handle these cases back in Oct 2023, and in that same thread I described the manual steps that will be automated.
I've done some prototyping with a tool, and the first thing to think about is where the form will live and what the URLs will be. Here's what I propose:
Step 1: Go to the artist you want to delete. As an admin there will be a form at the bottom that reads something like "Delete this artist and reassign artwork."
Step 2: In the form, pick the canonical artist to reassign the artwork to.
Step 3: There is an optional checkbox to add an alternate name (A.K.A.) to the canonical artist.
Step 4: The form submits a POST request to /artists/merge with these parameters:
canonical-artist-url-name: joaquin-sorolla
alternate-artist-url-name: joaquin-sorolla-y-bastida
add-alternate-name: on

That is, the request parameters are the UrlNames of the artists. The add-alternate-name parameter is optional.
Here's a rough draft of what it would look like:

If /artists/merge is successful, it will redirect to the canonical artist's page (/artworks/joaquin-sorolla in this case) so that the admin can see all the merged artwork together. There will be a success message at the top. If there is a problem, the admin will stay on the alternate artist, and there will be an error message at the top.
Seem reasonable?

Sounds good. I would tweak two things:

Instead of showing the form on /artists/<url-name>, put it behind a link. This is because browsing artists is something an admin might do often, and having a prefilled form with a submit button right there is begging for an accidental click that will be very hard and annoying to undo. The form could live at /artists/<url-name>/merge-requests/new and we can link to that from the artist index page. That way it takes a click, then a page load, then a confirmation click.
Then we would POST to /artists/<url-name>/merge-requests. This URL maintains our object oriented (and not action oriented) URL style. The artist we are POSTing to would be the artist we are reassigning, so we don't have to pass both names as form parameters. (So the parameters would be something like canonical-artist-id and add-as-alternate-name.)

Actually, let me backpedal a bit. What we're really doing here is DELETEing an artist, but also reassign their work to another artist.
So I think this URL scheme makes more sense:
Form to delete artist: /artists/<url-name>/delete
That form does:
DELETE /artists/<url-name>, with parameters canonical-artist-id and add-as-alternate-name.
I think that's the more RESTful approach to what we're trying to do. From the perspective of the URLs, the old artist URL will no longer exists (it has been DELETEed) but we passed an option to reassign their artwork to someone else.

Great, I'll get on this. Thanks for the discussion. I forgot to add some alternatives I considered, but I did consider some of what you wrote, i.e., a DELETE request and also putting the form behind a link. I like your other ideas, too.
Regarding canonical-artist-id vs. canonical-artist-url-name, we've avoided putting database IDs in the API so far, but there's another reason to not use them here: autocomplete.
If you want autocomplete, the form will look something like this:
<datalist id="artist-names-except-alternate-artist">
		<option value="a-h-wyant">A. H. Wyant, d. 1892</option>
		<option value="aaron-douglas">Aaron Douglas, d. 1979</option>
		<option value="abanindranath-tagore">Abanindranath Tagore, d. 1951</option>
		<option value="abraham-manievich">Abraham Manievich, d. 1942</option>
		<option value="abraham-walkowitz">Abraham Walkowitz, d. 1965</option>
		<option value="adam-chmielowski">Adam Chmielowski, d. 1916</option>
[...]
</datalist>
<input type="text" name="canonical-artist-url-name" list="artist-names-except-alternate-artist" required="required">

Because of the way autocomplete works, it's the URL name that gets put in the form. It would look a little weird to have just a raw integer ID in the form.
Would you like to skip autocomplete? I tried a version of the form without autocomplete and just a large <select> element:
<select name="canonical-artist-id" required="required">
		<option value="521">A. H. Wyant, d. 1892</option>
		<option value="228">Aaron Douglas, d. 1979</option>
		<option value="69">Abanindranath Tagore, d. 1951</option>
		<option value="385">Abraham Manievich, d. 1942</option>
		<option value="48">Abraham Walkowitz, d. 1965</option>
		<option value="218">Adam Chmielowski, d. 1916</option>
[...]
</select>

Those IDs work just fine. They're not displayed to the user, and they obviously are submitted with the form. This screenshot is missing the death years, but you get the idea:

It's a lot of artists to sort through for one large <select> element, so I figured you'd want autocomplete like on /artworks/new.

OK, let's do the same kind of autocomplete that's on the new artwork form, using the full names and not URL names.

authors: acabal colagrosso

repo: standardebooks/web


text:
Make new tokenization ~67% faster

Until this PR, the new cache would write every ~8K docs it received, regardless of how many were queued up. (This isn't quite correct, but close enough) Writes are high latency, so this wasn't the best choice.
We now instead write whatever is ready every second or so. In practice this makes us about 67% faster at tokenizing.

Nice!

source: gharchive/pull-request

authors: dlwh percyliang

repo: stanford-crfm/levanter


text:
dspy.Signature has trouble parsing results

So I'm having a problem where the output of a Signature is failing to parse responses from gpt-4o properly
The code doing the calling is here
def metric(markdown, base_summary, new_summary):     questions = []     with dspy.context(lm=gpt4T):         assesment =  dspy.Predict(Assess)(             question="Does the summary accurately state the base API url",             website_markdown=markdown,              base_summary=base_summary,              new_summary=new_summary         )     print(assesment)     return 1 if "Yes" in assesment.new_is_better else 0 if "Yes" in assesment.base_is_better else 0.5
Asses is defined here
`class Assess(dspy.Signature):
"""Asses the quality of two different summaries of website_markdown for each question"""
question = dspy.InputField()
website_markdown = dspy.InputField()
base_summary = dspy.InputField()
new_summary = dspy.InputField()
base_is_better = dspy.OutputField()
new_is_better = dspy.OutputField()`

I'm getting response like

Prediction(
base_is_better='New Is Better: Yes\n\n---\n\nThe new summary is better because it provides a more concise and clear overview of the general attributes and requirements that apply to all endpoints of the Unbounce API. It effectively highlights key points such as authentication, response metadata, standard query parameters, URI parameters, response body schemas, example response structures, CRUD operations, and error handling. This makes it easier for readers to quickly grasp the essential information without getting bogged down in too much detail.',
new_is_better='---\n\nQuestion: Does the summary accurately state the base API url\n\nWebsite Markdown: Unbounce APIGetting Started API Reference Communitytoggle menuDeveloper Portal Getting Started API Reference CommunityUnbounce API* Global API * Accounts + /{account\_id} - /sub\_accounts - /pages * Sub Accounts + /domains + /page\_groups + /pages * Domains + /pages * Pages + /{page\_id} - /form\_fields - /leads * /{lead\_id} - /lead\_deletion\_request * /{lead\_deletion\_request\_id} * Page Groups * Leads * Users Global API ========== Global API meta-information. get/ - Retrieve the global API meta-information. ### Response Body Schema ``` { "$schema" : "http://json-schema.org/draft-04/schema#", "description" : "Describes the main API entry points, supported formats and specification locations.", "type" : "object", "additionalProperties" : false, "required" : [ "documentation", "'
)

I tried looking for other issues but couldn't find anything simmilar at a glance

Use
dspy.configure(experimental=True)

what does that do, also i realized that part of the problem could be that you guys arn't escaping markdown well

It worked!

authors: Treesrule okhat

repo: stanfordnlp/dspy


text:
[#741 subtask]  support wheel installation in Starwhale runtime

Current Behavior
No support.
Proposed Behavior
#741

#766

repo: star-whale/starwhale


text:
🛑 Socket is down

In 85c3e98, Socket (https://pay.starkpayments.net:3001) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Socket is back up in 3e52cb8.

repo: starkpay/status


text:
chore: split stack trace logic into separate module

This change is

Codecov Report
Attention: Patch coverage is 97.53521% with 7 lines in your changes are missing coverage. Please review.

Project coverage is 77.71%. Comparing base (1f30006) to head (bb425e9).

Files
Patch %
Lines

crates/blockifier/src/execution/stack_trace.rs
97.53%
7 Missing :warning:

Additional details and impacted files
@@                         Coverage Diff                          @@
##           dori/test-deploy-syscall-ctor-trace    #1854   +/-   ##
====================================================================
  Coverage                                77.71%   77.71%
====================================================================
  Files                                       60       61    +1
  Lines                                     8688     8688
  Branches                                  8688     8688
====================================================================
  Hits                                      6752     6752
  Misses                                    1494     1494
  Partials                                   442      442

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

authors: codecov-commenter dorimedini-starkware

repo: starkware-libs/blockifier


text:
New Logo images and favicon

Signed-off-by: Eddie Ramirez eddie.ramirez@intel.com

LGTM

authors: dtroyer ediardo

repo: starlingx-staging/stx-horizon


text:
[request]maximize the RDPCheck.exe window

I want to remote connect the other user on the same host, but it seems that Windows doesn't allow remote connect myself.
I found that the RDPCheck.exe can do it! But the window is too small. I try some way to maximize the window, such as Spy++Lite and shortcut settings, but they don't work.
Could RDPCheck.exe support maximization? Or there are other ways to remote connect myself?

I found a solution! Use Windows Remote Desktop by a local temporary ipv6 address, it can cheat Windows!

I found a solution! Use Windows Remote Desktop by a local temporary ipv6 address, it can cheat Windows!

But it don't work now😥

Use
127.0.0.2 127.0.0.3 127.0.0.4 ..... 127.255.255.255

Use
127.0.0.2 127.0.0.3 127.0.0.4 ..... 127.255.255.255

Thank you!

authors: BlademasterQAQ sashaqwert

repo: stascorp/rdpwrap


text:
Split form config from submissions config

If https://github.com/statamic/cms/pull/6455 merges then the config for forms should split out the submissions model in a similar manner to https://github.com/statamic/eloquent-driver/pull/133 allowing the form config and submissions to be stored in different repositories.

Closing since this has been completed in #177 (GitHub hasn't auto-closed this since it didn't merge into the default branch).

authors: duncanmcclean ryanmitchell

repo: statamic/eloquent-driver


text:
Request for Pretrained DNA Models Publication

Would you please publish pretrained DNA models? I'm interested in this field and want to use mamba to do some relevant experiments. I don't know if the published model can solve DNA tasks. Has anyone tried yet?

I'm interested in it too.

There are no current plans to release the pretrained models because they were run with a slightly earlier version of the model. They were also trained mainly to investigate scaling laws, and were not trained for very long (at most 2 days on a single node of A100s), so they might not be the most performant on downstream tasks.
Some collaborators are currently working on followups and may train and release better pretrained models.

authors: BlackWaterDrop Miiyuu albertfgu

repo: state-spaces/mamba


text:
Use ResolveProgram in Runner service for prompts

Migrate client side "when to prompt for ENV vars" logic into kernel APIs and integrate them accordingly.
PS: Tests will fail until protos are published.
https://github.com/stateful/vscode-runme/assets/250527/d18bcedf-f12d-4eba-aff7-d4772898b38b

Holding off on merge until we have a runme binary release.

repo: stateful/vscode-runme


text:
Completions incorrect from Typescript "User" example

Description

I went through some guides, and wanted to check out the Typescript completions capabilities (User example).
Here is a TS playground (link) with code copy pasted from said guide
However, I encountered 2 issues

Bug(?) in line 67

Feature Request for line 70 (should I create a new issue?)

Expected Result

Re 1. Only "FETCH", ie. UserEvent keys show up.
Re 2. The state keys show up, eg. "idle" or "loading

related to #2425?

Actual Result

Re 1. See screenshot above
Re 2. No such completion shows up
Reproduction
TS playground (link)
Additional context

Version: I believe the TS playground used the latest version of xstate
Re 2.

I digged into the .d.ts files, and tried out to pass an object as args also with not the desired completion.
I searched for "transition autocomplete" in the Issues, but the one hit, was not relevant to my problem.

@hiaux0
https://www.loom.com/share/4e7b1b7f85f342639db8a045815fb7d6
I'll add a docs PR to fix this.

In fact, ignore the docs PR. The example is actually working and typechecking fine, but the event types you were passing in the TS playground were incorrect. Closing, working as intended.

repo: statelyai/xstate


text:
Update different-id.md

added reference to demo

🚀 Deployed on https://6610335ab16054230c603ea0--cozy-fox-0defec.netlify.app

authors: jasonwzm yuzheng-sun

repo: statsig-io/docs


text:
Added typed add listener overload

Allows more discoverability via the overload, and will not break existing API's

I've merged this in.

authors: JakeGinnivan staxmanade


text:
feat: add C implementation for stats/base/dists/t/kurtosis

Resolves #3871
Description

What is the purpose of this pull request?

This pull request:

adds C implementation for stats/base/dists/t/kurtosis along with relevant docs, tests, examples and benchmarks.

Related Issues

Does this pull request have any related issues?

This pull request:

resolves #3871

Questions

Any questions for reviewers of this pull request?

No.
Other

Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.

No.
Checklist

Please ensure the following tasks are completed before submitting this pull request.

[x] Read, understood, and followed the contributing guidelines.

@stdlib-js/reviewers

good afternoon, i've pushed the requested changes @kgryte!

good evening @Planeshifter! i've pushed the requested changes.

repo: stdlib-js/stdlib


text:
请问群里已经是创客的小伙伴：

你们觉得小朋友可以进入到创客大军的关键因素是什么（在有一定兴趣的前提下，另外觉得执着是一个不可操纵的因素，就先暂时忽略掉先^0^）。有一门简易的编程技术？简单工程知识？身边几个志同道合的小伙伴？关注创客社区？导师？还是比赛驱动？希望也可以简单介绍一下你们成为创客的导火线是什么呢？

兴趣

做东西的乐趣+分享的乐趣

在兴趣的前提下项目式的学习

抽取了关键字，虽然有意设定已经有兴趣的了，但大家还是好一致的都说是兴趣。
今天又看了一名创客的一段话：一般来说，科技发明课程也好，机器人课程也好，都是培养精英的课程，只有少数的学生可以参加。而创客的出现是一个去精英化的过程，同样是玩机器人、造物，任何有兴趣的青少年都能参与，是以兴趣为出发点，可以模仿，可以微创新，可以做**有趣而“没用”**的东西，而不是以科技突破和发明为出发点。
结合上课中学生的表现，我觉得导入课可以确定我的引导方向了（玩，用这句话来引导和强调：想不想玩，想玩就做一个），谢谢大家！

What are the differences among playing video game, piano, and football?

我不同意上面的「培養少數精英」的看法，儘管這是「我對精英的定義」。
創客教育的主要任務不是製造「精英」，而是創造「精英條件」，包括物質條件，更重要的是社會條件。
至於真正走上STEM道路的人會是少數，這其實是一個好是。國內最大的問題就是一窩蜂，大家五一假期旅遊一定深有體會。:smile:

有了和真正的興趣後的下一步是「堅持不懈」。
不知道國內的朋友能不能看到這個

建議能點擊打開的朋友聽聽。沒有時間或者英文聽力不足的朋友也可以看看英文版文字紀錄(transcript)。

对于小小朋友（6-10岁）来说兴趣主要是靠培养，除了小比例的天才之外，大多数孩子兴趣的产生与发展，都是基于一个个细小的“付出-成果-激励”累积而成。随着时间付出的增加、取得成果越来越高，累积的正向激励越强、孩子表现出的兴趣越发浓烈。
我在为孩子规划创客教育，实际上在为20年后，孩子工作生活做准备。
“STEM教育的核心不是知識積累，而是思維方式和工作方式的訓練。”

个人的几点思考：
编程技术是需要的，但不是目的；
简单的工程知识也是需要的，要做出一些作品；
协作的意识、参与协助的能力也是需要的，身边小伙伴是一份方面，网络的伙伴（未必同龄）也是重要组成部分；
比赛可以参加，但不是以比赛为目的。
我个人关注创客，起因是想搞清楚：应该培养孩子怎样的思维方式和工作方式？应该开展哪些成体系的训练？

authors: SWJTUyuhui SZmaker deshansun ontouchstart sarahlicui wendy-chan

repo: steam-maker/steam-maker-forum


text:
Agent Guidebook Port

This ports the Agent Guidebook into the docsite.
DONE:

Link checks
TOC porting
Document titles
Callout macros
YouTube embeds

@eob LGTM
Two small nits and one comment about a section that may need to be react component, but unsure if you just wanted to leave it as markdown. Other than that looks good!

authors: eob maxwfreu

repo: steamship-core/steamship-frontend


text:
Feature request - multi-file torrent support

We need support for multi-file torents. The engine is great, but this is major feature missing in all platforms.

+1

authors: ryanfelder yevgenb


text:
Hostnames are not supported in endpoints configuration

The README doc mention that it is possible to use a hostname as an endpoint but it will fail because the code expects it to be an IP address.
        "UdpUnicastEventProvider": {
            "BindHost": "0.0.0.0",
            "Port: 6000,
            "Endpoints": [
                { "Host": "server2.local", "Port": 6000 },
                { "Host": "server3.local", "Port": 6000 }
            ]
        }

See IPAddress.Parse at
https://github.com/stefanolsen/episerver-events/blob/main/src/EPiServer.Events.Sockets/UdpUnicastEventProvider.cs#L25

@moleman: This is now fixed and merged.
Thanks for reporting.

authors: moleman stefanolsen

repo: stefanolsen/episerver-events


text:
state change event could include path

Right now the event just yields the new state, but including the updated path would also be helpful for integrating with eg PouchDB.

eg this event https://github.com/steida/este/blob/master/src/lib/state.js#L22 maybe could be called from https://github.com/steida/este/blob/master/src/lib/state.js#L40

Fork it, change api to meet your needs, send pull request. Or we can discuss it in forum.

authors: jchris steida

repo: steida/este


text:
clients/horizonclient test fails sometimes depending on speed of execution

The TestFetchTimebounds test will fail if the instance executing the test is not that fast. I've observed this fail on TravisCI multiple times, but it passes locally and on CircleCI.
Example test failure
https://travis-ci.com/leighmcculloch/stellar-go/jobs/228696381
Test in question
https://github.com/stellar/go/blob/e39f70cea9dd9e9fd695fbfedd43457c5a630f53/clients/horizonclient/main_test.go#L1021-L1064
Reproducing
To reproduce the failure consistently simulate the test taking a little while to run by adding a 1 second sleep before the timebounds are fetched. Add a time.Sleep(time.Second) before the call to client.FetchTimebounds(100).

This was fixed in #1675.

The unassignment of @poliha was automatic when I closed the issue and it won't let me re-add him.

repo: stellar/go


text:
Spike: Historical Data Lake Ideation

Overview
Create an initial proposal, or set of options, for what we want to provide.

Complete a research pass of other chains.
What is a reasonable thing to provide? At one extreme: nothing. At the other: immediate API responses to any question of interest.
Pursue idea of TxMeta as raw form (could we have an unstructured db?)
Prototype data lake and pipeline in Dataflow to move to Data Warehouse. Can we try and build a framework that makes our prototype repeatable. Make it config based
Consumption/usage model - we want to make this easy for people in the community to run on their own (sub question: based on usage, what would pricing model look like?)
Research dependencies, with our solution would want stellar-core as a dependency but potentially no other code (Horizon not needed?)
Come up a list of modules/frameworks/tools that SDF or community could contribute back to open source
Pub/Sub model? What would guarantees look like?
Data Validation - what does this look like? This is the more difficult part to the problem, follow up with Graydon about idea for downloading hashes and compare with stellar-core. Come up with options for solution but does not have to be completely solved for prototype
File Format? JSON, avro. Partitioning method?
File size tradeoffs? small files frequently or wait and have larger files written?
Processing times for querying and running DataFlow jobs? Experiment: answer the question for a single point in time question and an analysis/aggregation question

Timeline:
Week 1:

Finish research on other chains - Tamir to research Polygon; Syd to research Polkadot, Filecoin
Proposal written for design of the prototype - asynchronously work together on doc
Include file details (saving in XDR? JSON? size of files saved?)
Week 2:
Build a prototype for storing raw data in lake
One pipeline
Figure out point in time question (What are all the transactions that occurred at sequence number)
Week 3:
Figure out aggregation question (Fee stats, Trading volume for USDC)
Define assumptions, pros/cons, risks as prototype is today
Recommendation for how to proceed

Out of Scope, but cool

Write a library like blockchain-etl that is available in commonly used ETL languages

Research Doc for Off Chain Analysis

Proposal Doc Note: other research is linked from the proposal


text:
[ANCHOR-625] Fix docker compose stack

Description
This commit fixes the docker-compose stack. Also, this replaces the Anchor Platform image used by the stack with a locally built one.
Context
Two things broke the stack:

We are listening to webhook events instead of directly consuming Kafka, we need to start the event-processor.
Docker ports were incorrectly mapped

Testing

./gradlew test
Tested SEP-6 deposit and withdrawal using demo-wallet

Documentation
N/A
Known limitations
Future bugs like this will be difficult to catch without running automated tests against the docker-compose stack. Rather than directly running the ServiceRunner in GH actions, we can use docker-compose instead and run our tests against that.

We don't. Our current CI setup runs the tests against Jar. Pinging the server is a good place to start, although it wouldn't catch issues like not starting up the event processor. That would only be caught by running the tests.

repo: stellar/java-stellar-anchor-sdk


text:
soroban-rpc: deploy public instance on futurenet

What problem does your feature solve?
We'd like to facilitate more engagement/usage of RPC in the ecosystem prior to launching on testnet. We eventually plan to host a public instance on testnet as well, but not pubnet.
What would you like to see?
A deployed public instance of soroban-rpc on futurenet on stellar domain,rpc-futurenet.stellar.org. Deployment should be integrated into the soroban release process so that it receives updates appropriately.
Initial deployment to use k8s and the quickstart soroban-dev image for soroban rpc, and ingress route for dns.
This initial deployment will later be refactored to use new rpc service deployment image from #382 and updated helm chart to use/config that image.
What alternatives are there?

#382 as a pre-requisite/blocker
quickstart in its current form (potentially faster/easier, but to be followed up prior to testnet release by #382)

We eventually plan to host a public instance on testnet as well, but not pubnet.

Are we sure this is a good precedent to set? I'd rather see deployments be as simple and streamlined as possible.

Ops ticket for reference:
https://github.com/stellar/ops/issues/2165

k8s manifest for the deployment is up for review.
https://github.com/stellar/soroban-tools/pull/470
coordinating with ops for next steps on stellar/ops#2165 discussion

the manfiests for prd deployment up for review - https://github.com/stellar/kube/pull/1337

@sreuland @tomerweller Do we need stellar-futurenet.4d63.com/ anymore?

no. we have rpc-futurenet.stellar.org

@tomerweller Should we add this to CLI? Have a special futurenet network so you can do --network futurenet or SOROBAN_NETWORK=futurenet without having to manually add it?

@willemneal yes I like that idea!

authors: Shaptic jcx120 leighmcculloch mollykarcher sreuland tomerweller willemneal

repo: stellar/soroban-tools


text:
soroban-rpc: Add --enable-diagnostic-events flag for captive-core

What
Add an --enable-diagnostic-events flag for captive-core.
Why
Fixes https://github.com/stellar/soroban-tools/issues/474
Todo

[ ] Integrate go repo toml updates from https://github.com/stellar/go/pull/4813
[ ] add test?

you'll need to update the go.mod file as well.

From discussion elsewhere, we decided to put this into the captive-core toml specified by --captive-core-config-path, so there are no changes needed in this repo.

authors: paulbellamy tsachiherman


text:
Fix/ledger tests org update

What
Moves stellar-ledger test-only files into a test_fixtures directory.
Why
Hopefully, this will make it clearer what files are used just for testing, and which ones are source code.
Known limitations
Once this ticket is complete this test-only code will be pulled out into its own crate.

@leighmcculloch From my understanding if you have tests/it/main.rs, then it acts as a single target. See https://matklad.github.io/2021/02/27/delete-cargo-integration-tests.html#Rules-of-Thumb
So really it's a question about the surface area, should it be external or internal?

TIL nice, I didn't know about the module/main.rs approach. 🎉
Also yeah this lib is small so probably not a big deal to worry about test organisation too much. The main goal here I think is reducing confusion about what helper functionality is for tests or not, which this does. 👍🏻

Great discussion, and thanks for sharing that article @willemneal - super helpful!
I also think that if we have tests/module/mod.rs Cargo won't treat the files in that dir as integration tests, and won't be compiled as separate crates, so I think we may also avoid the relinking for each test helper issue... if I'm reading this correctly.

repo: stellar/stellar-cli


text:
Index token balances

Wallets need a way to index token balances and potentially other contract data for custom tokens.
We recently did a spike on this for Freighter and came to the conclusion that a good solution would be to have balances be indexed and to be able to track the TTL in order to display the appropriate UI during/after a balance data entry has expired.
Should wallet backend index token balances?
Should it also index things like decimals and symbol?
Should it track the TTL for the entries that are being indexed?

Should wallet backend index token balances?

Given that the only alternative is querying the ledger state via RPC and the entry might be archived, I think the answer to this is yes.
However, something to note is that some tokens' balances are not the sum of all credits and debits of the token. Some tokens use a rebasing approach, where a user's balance increases or decreases based on a multiple stored and updated in the contract's state. In this case, the indexer would need to add support for ingesting changes to the multiplier, which would imply changes to all balances of the token. We can decide not to support this type of token in the wallet backend, at least initially, and default to reading ledger state within freighter on a special case basis.

Should it also index things like decimals and symbol?

This is tricky because the number of decimals and the token's symbol is a value returned from calling a function, and that function's implementation could change. Maybe we can account for this by monitoring for token contract's wasm being updated and calling these functions to fetch the potentially updated values.
Alternatives are assuming the number of decimals and the symbol is static, or working with the ecosystem to have these attributes in the contract's meta as static values.

Should it track the TTL for the entries that are being indexed?

I don't see why the indexer would need to track TTLs unless we wanted to create some kind of notification service that notified users that relevant entires are expiring soon. I'm not sure if its worth doing that vs. just letting them restore entries as needed.

However, something to note is that some tokens' balances are not the sum of all credits and debits of the token. Some tokens use a rebasing approach, where a user's balance increases or decreases based on a multiple stored and updated in the contract's state. In this case, the indexer would need to add support for ingesting changes to the multiplier, which would imply changes to all balances of the token. We can decide not to support this type of token in the wallet backend, at least initially, and default to reading ledger state within freighter on a special case basis.

It seems like this won't be the only variant of a token that we could decide to support, but I think even tokens that behave like your typical SEP-41 asset could have very different storage layouts for users balances. How would we approach indexing the data generically?

This is tricky because the number of decimals and the token's symbol is a value returned from calling a function, and that function's implementation could change. Maybe we can account for this by monitoring for token contract's wasm being updated and calling these functions to fetch the potentially updated values.

Could valid tokens implement a decimals or asymbol that changes without a wasm upgrade? This seems possible but maybe so edge case that we would not want to support it or care about when it happens.

I don't see why the indexer would need to track TTLs unless we wanted to create some kind of notification service that notified users that relevant entires are expiring soon. I'm not sure if its worth doing that vs. just letting them restore entries as needed.

The only reason is to be able to show a UI state when an entry related to an asset has been archived, but yeah it sounds like this isn't a huge win for the work it would take.

How would we approach indexing the data generically?

Generally speaking off chain applications are expected to index a contract's data using the events the contract emits. SEP-41 defines when tokens should emit events and what their format should be. In fact, maybe the rebasing token could still emit transfer events when the multiplier is updated, which would remove the need for us to treat it as a special case.

Could valid tokens implement a decimals or a symbol that changes without a wasm upgrade?

Yes, the function could be implemented to return different values based on an arbitrary set of variables, its up to them. Thats partly why I think decimals and symbol should have been required meta attributes rather than functions.

The only reason is to be able to show a UI state when an entry related to an asset has been archived, but yeah it sounds like this isn't a huge win for the work it would take.

Yea I view this sort of functionality as an optimization, not a requirement. The default approach should be supporting restoration when necessary, and we can improve the experience opportunistically from there.

I just spoke with the core team, and they said that in Protocol 23, transactions that require archived entires will automatically restore them prior to executing the transaction.
That means we'd be able to simulate calls to a token contract's balance() function and get the result even if the balance is archived.
Given that, we may not need to index token balances, or any ledger state for that matter. The wallet backend could index state transitions (i.e. token transfers), but when Freighter needs a user's current balance, it could use RPC for this.
cc @gouthamp-stellar

authors: JakeUrban aristidesstaffieri

repo: stellar/wallet-backend


text:
FullBatchGenerator still references StellarGraphBase in the Docs

Describe the bug
The docstring for both FullBatchNodeGenerator and FullBatchLinkGenerator reference G's type to be a StellarGraphBase. This then appears in the ReadTheDocs documentation, making it confusing for the end-user.

Only these 2 classes continue to reference StellarGraphBase; all others like UnsupervisedSampler, ClusterNodeGenerator etc. have transitioned to specifying StellarGraph as type(G).
To Reproduce
Do a Ctrl+F search for StellarGraphBase on Read the Docs API page. Only 2 results, which correspond to the 2 aforementioned classes.
Observed behavior
type(G) reads StellarGraphBase.
Expected behavior
type(G) to read StellarGraph to be consistent with the rest of the documentation. Also, as far as I can see, StellarGraphBase has already been removed from the code base.
Environment
StellarGraph develop HEAD 6da46b8

I can make a PR to fix this if the team agrees with the discussion above. Thanks.

Yeah, StellarGraphBase was removed in #501, and StellarGraph is indeed the replacement. 👍

authors: huonw thatlittleboy

repo: stellargraph/stellargraph


text:
Replace GCN use of **kwargs with real arguments

See: #801

Codecov Report

Merging #802 into develop will increase coverage by 0.7%.
The diff coverage is 88.88%.

@@            Coverage Diff             @@
##           develop     #802     +/-   ##
==========================================
+ Coverage    82.57%   83.28%   +0.7%
==========================================
  Files           47       43      -4
  Lines         5562     5054    -508
==========================================
- Hits          4593     4209    -384
+ Misses         969      845    -124

Impacted Files
Coverage Δ

stellargraph/layer/gcn.py
85.38% <88.88%> (-1.05%)
:arrow_down:

stellargraph/connector/neo4j/mapper.py

stellargraph/connector/__init__.py

stellargraph/connector/neo4j/__init__.py

stellargraph/connector/neo4j/sampler.py

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 2c513c1...9405b95. Read the comment docs.

authors: codecov-io huonw


text:
Tracking rust nightly

Changed Index trait implementations from &usize to usize.
Some issues in lib/codegen.rs still remain: rustc says RustType::into doesn't take parameters although the definition is unchanged.

Applied your patch, but rust-protobuf still doesn't compile, because of another breaking change.

authors: MrFloya stepancheg

repo: stepancheg/rust-protobuf


text:
Configuration refactor

We have 2 different setting variables: runtime checks and reflection usage.
However, we currently have 3 configurations that are not very clear:

Configuration
Runtime checks
Reflection

Development
X
X

Production

X

Reflection free

Moreover, we might want to avoid reflection (using Registries), but have runtime checks for debug builds.
So, this PR is a refactor from:
Configuration.development()
Configuration.production()
Configuration.reflectionFree()

to:
Configuration.forDevelopment()  // Default to reflection
Configuration.forProduction()  // Default to reflection
Configuration.forDevelopment().enableReflection()
Configuration.forDevelopment().disableReflection()
Configuration.forProduction().enableReflection()
Configuration.forProduction().disableReflection()

Where development means to include runtime checks, and production the opposite.
This way both variables are totally independent.
By default, production (no runtime checks) and reflection are used, the same as now.
Also the same style is kept.

Coverage decreased (-0.08%) to 95.051% when pulling 2b574740db482f2806d92e73e7bc6938d560ba83 on dlemures/configuration-refactor into 44310511731c6a559be8fcfb507145baefdde7dc on master.

Coverage decreased (-0.08%) to 95.044% when pulling 3c1f7290bd33d4f594f7c2bfb69e50624ce6b674 on dlemures/configuration-refactor into 44310511731c6a559be8fcfb507145baefdde7dc on master.

Coverage decreased (-0.08%) to 95.044% when pulling 4fac3c47133729302ec57e423398d4a1d3cbc0db on dlemures/configuration-refactor into 44310511731c6a559be8fcfb507145baefdde7dc on master.

Coverage decreased (-0.1%) to 94.987% when pulling 7c88a84e5397c41d024ff7612f0b468c181736e5 on dlemures/configuration-refactor into 44310511731c6a559be8fcfb507145baefdde7dc on master.

Coverage decreased (-0.1%) to 94.987% when pulling 7c88a84e5397c41d024ff7612f0b468c181736e5 on dlemures/configuration-refactor into 44310511731c6a559be8fcfb507145baefdde7dc on master.

Coverage decreased (-0.1%) to 94.984% when pulling f428e96a5953baaff6830fd3736ffd57b42010ad on dlemures/configuration-refactor into 44310511731c6a559be8fcfb507145baefdde7dc on master.

Coverage decreased (-0.1%) to 94.978% when pulling 95bc28ccb77e46c68d3176eaf170d6c0c2204136 on dlemures/configuration-refactor into 44310511731c6a559be8fcfb507145baefdde7dc on master.

LGTM

authors: coveralls dlemures saguinav

repo: stephanenicolas/toothpick


text:
Add lazy connection option

Add a "lazy" option to the client/dependency provider, defaulting to False. This option means we only try to connect when a call is made rather than on startup.
This avoids cases where a dependent service won't start unless its dependency service is already running. Otherwise cascading failures might be a problem.

Oops, sorry stephen, meant this to go to the main repo, not to yours!

repo: stephenc-pace/nameko-grpc


text:
Inconsistent deployment targets

I think the swift-2.0 branch has inconsistent deployment targets for iOS. At the project level it is set to 8.0 but then the individual targets are at 9.0.
Is it possible to change them all to 8.0? I don't think there is an iOS 9 dependency? (Other than Swift 2.0, which should run on iOS 7 and up)

I created a PR https://github.com/stephencelis/SQLite.swift/pull/204

I'm doing a pass to close some old issues and it seems this is resolved via 723e19b6ce67a23b3acff0ebdc95d6825c8a4643. Please re-open if you have more information or feel this should still be active. Thanks!


text:
Website issue: No action when clicking Analyze

No action occurs when attempting to analyze header.
at mha.azurewebsites.net

She's dead Jim.

Same.
No actions after push the button.
Tested on : https://mha.azurewebsites.net/ and https://mha.azurewebsites.net/pages/mha.html using Edge, Chrome and IE.
Site still opening just the button is not working.

Same issue. No time to troubleshoot, unfortunately.

Console errors from incognito mode where I'm not blocking anything for diagnosis.

Issue is resolved for me as of new commit 1 hour ago. Thank you, sir!

Sorry. Bad checkin

postmortem - this was a minifying failure - I've taken steps to ensure these are caught client side during dev/test so they don't mae it to production

authors: babybirdhome click3rs ekinnee stephenegriffin zerodrool

repo: stephenegriffin/MHA


text:
Failed to send the message by testing the tutorial

Hello, I have this error "TypeError: self.rooms[setup.to].publish is not a function" when sending the message I already have the keys in pubnub, what should I do to make it work?
angular version 1.6.6

Having the Same Issue

Change .publish to .message in angular-chat.js module. That is the function which sends message in the socketio.js module.

Change .publish to .message in the angular-chat.js module. That is the function which publishs message to server in the socketio.js module

To be more specific, open the \bower_components\angular-chat\angular-chat.js file. (or \node_modules\angular-chat\angular-chat.js
In that file, go to line number 87, where it says
return self.rooms[setup.to].publish({
change it to:
return self.rooms[setup.to].message({
With this, I was able to get it to get rid of this error "TypeError: self.rooms[setup.to].publish is not a function"

authors: Bxggi3 andrescefe srivassumit venkateshmalgireddy

repo: stephenlb/angularjs-chat


text:
More than 3 Fragment recreate Fragment Created

Hi @zawadz88
I had a issue while adding more than 3 fragments. the first fragment automatically recreates.
With this the data will not be stable in the first fragment as the view is recreated
So i pulled your code and added a line in to your code in setAdapter method
mPager.setOffscreenPageLimit(stepAdapter.getCount());

Hi @RaghuManickam,
Could you please provide steps to reproduce?
Did that happen when you got to the third fragment and then back to the first one?
If so, that's actually the desired behaviour you get when using a ViewPager. If you don't want to lose that data you save it in onSaveInstanceState and use it later when the fragment gets recreated.
Setting the offscreen limit solves the issue only partially as it does not handle device rotations, system killing the app in the background, etc.
Please tell me if that's issue.

Hi @zawadz88 ,
this is not an issue this can be done as enhancement.
using saved instance will make more code. if we add this line in the setAdapter method we can resolve this easily.
the user may also review back in that case we need to get data from saved instance .

Hi @RaghuManickam,
I see your point. Using saved instance state makes more code however it is still needed if you want to make sure your data does not get lost e.g. on rotation, system killing the app or screen resizing in Nougat's multiwindow.
Increasing the offscreen limit will make the pager keep all the fragments in memory. In case the number of steps is larger this could have a negative impact on the app.
Having said that, I'm thinking about exposing the setOffscreenLimit in a future release. I would not want it to keep all the fragments by default.

Added in 2.0.0

repo: stepstone-tech/android-material-stepper


text:
Positional and Spatial Mapping Python

Preliminary Checks

[X] This issue is not a duplicate. Before opening a new issue, please search existing issues.
[X] This issue is not a question, bug report, or anything other than a feature request directly related to this project.

Proposal
Is there any tutorial or example, or has anyone already done a project in python capable of doing exactly what is in the SLAM video of the zed2i stereolabs page? Thanks!
https://cdn2.stereolabs.com/assets/video/zed-spatial-mapping-point-cloud.mp4
Use-Case
Positional and Spatial Mapping in python to do a slam. Not just a mesh
Anything else?
No response

Please refer to the Spatial Mapping examples in this repository:
https://github.com/stereolabs/zed-sdk/tree/master/spatial mapping

authors: Myzhar pfcouto

repo: stereolabs/zed-sdk


text:
Bug: crafting recipes and inventory sort do not update inventory

When using a crafting book recipe, or using a "sort inventory" function (not in the first beta release but will be in a future one) doesn't seem to update. This is because of a conflict with the "inventory pause" mod. It behaves like a visual bug. Clicking on any inventory slot, even an empty one, causes it to update to accurately reflect everything.

I like inventory pause, even though it can feel a little like cheesing the game. However, it does not work with all modded inventory GUIs. In addition, it obviously cannot work on a multiplayer world. I might leave it in, disabled by default, as an option for singleplayer worlds, but I might also remove it in the future.
If you're having an issue or dislike the way it behaves, feel free to disable it or delete it from your copy of the pack. It is not a dependency for any other mod in the pack until I start uploading new versions of the pack and decide how I want to deal with this.

Inventory Pause will be removed in stability release 1.1.0

repo: steve-the-player/Adventurous


text:
feature request: conceal when searching

Did you check existing requests?

[X] I have searched the existing issues

Describe the feature
Hello,
The concealed information that every file has is shown for the file that is matched when searching. Is there any way to hide it? For example, if you have the following files:
file1
file2
file3

and you search for file, the following output will be seen
/003 file1
file2
file3

Thank you
Provide background
No response
Additional details
No response

Ah, I came across the setting, but I didn't realize c affected search. Sorry about it. Thank you for the quick response.


text:
Upon returning to previously visited level, player has memory of themselves standing on stairs

Reproduce by going down one set of stairs to a second level, and returning to the first level by a different set of stairs. Until the first set of stairs is observed, the player's memory of that tile will contain themselves.

aba61aae03a39c6f6d5ba56e4ae41e2611544fe6

repo: stevebob/howl


text:
map: ensure zones are not obstructed by other elements

This needs to be integrated into the animation controller, and for some reason the offset callback broke swipe gestures on there, ...
Signed-off-by: Steve Kuznetsov skuznets@redhat.com

@floatplane just a draft but would appreciate some code review so far

@floatplane this works and it's ready for review. I hear you about separate controllers, but:

we really do have a tight coupling between the map and the drawer, so I'm not sure that from an ideological perspective it's that clear of a distinction
as you know, getting these animation bits and classes to work is really not a straightforward process. I could not find any way to get the class to call back into functional hook-land without a lag, so the mapView.animateToRegion() call would always stutter pretty terribly. If you can find a way to make that work in the future, seems like we could quickly go back to having the controller only at the lower level

repo: stevekuznetsov/avalanche-forecast


text:
Unable to use git clone over ssh on Windows

Hi,
I'm on Windows 7, and running gulp.clone does not get piped through the terminal to ask for password for the id_rsa key. It automatically goes to error:
Could not clone from git! Exitting...  { Error: Command failed: git clone "git@************/docker.kafka.git"
Cloning into 'docker.kafka'...
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

    at ChildProcess.exithandler (child_process.js:206:12)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:877:16)
    at Socket.<anonymous> (internal/child_process.js:334:11)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at Pipe._handle.close [as _onclose] (net.js:498:12)
  killed: false,
  code: 128,
  signal: null,
  cmd: 'git clone "git@*****************/docker.kafka.git"  ' }

When I try an ordinary git clone via terminal (any command-line, the built-in one, PowerShell or even Cmder), everything works as expected. I even tried explicitly adding config file into my ~/.ssh folder, which yields the same results.

If the question was aimed at me, unfortunately I couldn't get this working. Instead, I've created a Linux dev environment via Docker where this works without problems.

Thanks for the response @martinambrus. I will update if i get some workaround.

@stevelacy has this been resolved, or a wontfix at the end?

Almost a year without a concise reason for the error from the community. I do not use windows, thus I can't duplicate. The error is not on this project's end, and would be a configuration with powershell or windows.

Thanks for the answer. Just to clarify once again, I did try this both, inside and outside of PoweShell (i.e. using the ordinary command-line, cmder, cygwin), so while it might not be this project's fault, it's definitely not a PowerShell configuration issue.

is there a way to do ssh-add on windows?

I am wondering if node is spawning the process without access to the ssh-agent

There is no ssh agent on windows, nor is there a native ssh-add.

authors: arunvishun martinambrus stevelacy

repo: stevelacy/gulp-git


text:
irc-door crashes if nick is empty

door crashes when i type /nick[enter]

Thank you for the issue.


text:
Support for Figma

Figma has an inspect panel, which looks like:

It would be great just to be able to copy and paste that into the converter (without defining a class).  In addition, finding the nearest value for properties that are unable to be converted would be amazing too (e.g. right with percentages).
Anyway, keep up the great work 😄 still very helpful as is

There is already a plugin for Figma that can be used to copy the Tailwind code.

@Tschucki Could you provide a link?

authors: Tschucki jlarmstrongiv qqhann

repo: stevezease/tailwind-converter


text:
Serialize XAttrs as ordered in protos

XAttrs were previously stored as a map in proto form. There is no defined ordering of maps, which can cause inconsistent binary representation of resources with multiple attrs. This commit changes the type to an ordered list and stops using the former proto field.
IMPORTANT: This removes the map xattr proto field for a repeated xattr field. The old field is marked as reserved. This is a breaking change. At this point, should I preserve the old field for compatibility?

@stevvooe PTAL

LGTM
These should be backwards compatible with the map type. If anyone has problems, please let us know.

repo: stevvooe/continuity


text:
Ошибка: Neither PUB key nor PRIV key: nested asn1 error

Приветсвую!
Благодарю за плагин, классная штука!
Периодически во время CD выскакивает ошибка Neither PUB key nor PRIV key: nested asn1 error
[15:29:49]: Driving the lane 'send_app_to_RuStore' 🚀
[15:29:49]: -----------------------------
[15:29:49]: --- Step: rustore_publish ---
[15:29:49]: -----------------------------
+-------------------------------------+
|            Lane Context             |
+---------------+---------------------+
| PLATFORM_NAME |                     |
| LANE_NAME     | send_app_to_RuStore |
+---------------+---------------------+
[15:29:49]: Neither PUB key nor PRIV key: nested asn1 error
+--------------------------------------+
|           fastlane summary           |
+------+-----------------+-------------+
| Step | Action          | Time (in s) |
+------+-----------------+-------------+
| 💥   | rustore_publish | 0           |
+------+-----------------+-------------+
[15:29:49]: fastlane finished with errors

Проанализировал запуски.
Получилось, что все неуспешные попытки были с зарубежных воркеров.
Видимо, загружать приложение нужно только с территории РФ.
Если так, может в доку добавить строчку?

Спасибо, отразил в дисклеймере

authors: NikolayBaranovv stfbee

repo: stfbee/fastlane-plugin-rustore


text:
Improve trading performance

Currently the trading process has a serial nature to it. It retrieves all the markets, checks them all for possible trades and then creates all the found trades until no traders are available anymore. This means that a trade may be placed minutes after it was found which is not optimal. The process takes some time and could be optimised further:

Stop checking for more trades when the amount of possible trades is exceeded
Immediately place a trade as soon as TA has found it
Run the TA in parallel instead of one after another?

Sound good. Also parallel processing is IMHO a important change because with sequential processing a buy is possibly to late.
Checking for new trades even if all traders are at work could possibly still be a useful option. If a trader sell it already have a buy option and could check if the TA is still valid

I could use input on a lot of things probably when it comes to this.

First off I believe @cryptoandrej had the idea to combine the PaperTradeManager and the LiveTradeManager into one. Switching between the two would then be as simple as a boolean toggle in the constructor. I support that idea.

The Initialize() method seems a bit redundant in many cases. Currently it runs before each buy loop and queries the database to see if it needs to create or change how the current trader instances are set up. This seems like a lot of overhead once the bot is up-and-running. Especially when trading lower timeframes a useless DB call every 1 or 5 mins seems like a total waste of resources. Could we simplify this Trader setup process?

I'm working on this in the trademanager-performance branch if anyone wants to pitch in :) If you have additional ideas on how to go about improving how the trademanager works at the moment, feel free to post here :)

Hey guys I think we have a thread issue with the initialize(); sometimes when the cron is to fast it hits that twice. So if DB context is already in use we have the problem from asynchronous DB context. We have some ways to get rid of that.

Maybe a pseudo object which contains the DB context and we save it in the end so there would be no l9ck in database.

Semaphore lock in sell or buy. Therefore only one task can go in the semaphore it is like a queue.

Parallel loops would be must have if we want more frequent trading bots.
But all in all I like the idea to get rid of duplicate code from traders...

authors: LORDofDOOM sthewissen twixwix

repo: sthewissen/Mynt


text:
Search in menu & submenu with JQuery Searchable plugin - multilevel

I want to search in menu title and submenu, but in JQuery Searchable Plugin can't find this option. When I type characters, I can find menu but can't find submenu. Searchable plugin has childSelector option but this option is searching just the first level.
http://stackoverflow.com/questions/29799273/search-in-menu-submenu-with-jquery-searchable-plugin-multilevel

Posted a solution on SO
Let me know if that works

It seems that this issue has been resolved on StackOverflow, so closing this now.

authors: AfzalH essivision stidges

repo: stidges/jquery-searchable


text:
fix: use Math.ceil() before the scrolling

The scrolling is performed incorrectly if x/y is a real number. The fractional part of the number was not considered when assigning scrollLeft/scrollTop. So the scrolling was not performed on 266.123, but on 266, so one pixel remains, although scrolling to it must be performed.

@stipsan please check this PR

:tada: This PR is included in version 1.1.32 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

authors: procot stipsan


text:
Implement MoleculeParser Class with SMILE Notation Parsing and Molecule Visualisation

This PR introduces a new MoleculeParser class designed to handle SMILE notation parsing and visualization of molecule structures using RDKit bindings. The Molecule Parser class encapsulates functionality related to parsing SMILE notation, retrieving molecule properties, and visualizing the molecule structure.
Changes Made:

Implemented the MoleculeParser class with instance methods for parsing SMILE notation, retrieving molecule properties, and visualizing the molecule structure.
Updated the example code to utilize the MoleculeParser class, demonstrating SMILE notation parsing, retrieval of molecule properties, and visualization of the molecule structure.

Thanks for the contribution, the design for this would be a bit different when this functionality is implemented, so I am closing this PR for now but when it's implemented, we'll make sure to update it from your PR! 🙌

repo: stitionai/devika


text:
Fails if any output other than json

I have attempted to use cucumber-junit to convert the output of cucumberjs from json to junit, but I'm having a problem. The use that you indicate, piping the output of cucumberjs to cucumber-junit, fails because some packages I use and some of my code print debug statements to the console along with the json. I removed my console prints but the underlying packages still print. Writes to stderr don't appear to cause a problem but if it gets printed to stdout then your json parser stops with an error.
So I have 2 questions, either of which would enable me to use your package successfully.

Is it possible to tell cucumber-junit to ignore everything except the json?
Is it possible to have cucumber-junit take its input from a file instead of piping from a stream? When cucumberjs writes the json to a filethe other stdout/stderr prints are stripped out, so this solution would work for me.

No, because it doesn't know it's not JSON.
If you can tell cucumber.js to write the json to a file, it would work.

Alternatively, you can output your debug/console statements to STDERR (console.error) which would not be piped into the cucumber-junit script.

authors: dsgill stjohnjohnson

repo: stjohnjohnson/cucumber-junit


text:
java.lang.IllegalStateException: Configuration cannot be changed after the prompt is first displayed.

Sometimes I see this crash in app logs under different Android version:
Amplify 1.5.0.
12-29 20:25:07.827 E/AndroidRuntime( 2560): FATAL EXCEPTION: main
12-29 20:25:07.827 E/AndroidRuntime( 2560): Process: com.myproject, PID: 2560
12-29 20:25:07.827 E/AndroidRuntime( 2560): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.myproject/com.myproject.activity.ManageCamerasActivity}: java.lang.IllegalStateException: Configuration cannot be changed after the prompt is first displayed.
12-29 20:25:07.827 E/AndroidRuntime( 2560): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
12-29 20:25:07.827 E/AndroidRuntime( 2560): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
12-29 20:25:07.827 E/AndroidRuntime( 2560): 	at android.app.ActivityThread.-wrap11(ActivityThread.java)
12-29 20:25:07.827 E/AndroidRuntime( 2560): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
12-29 20:25:07.827 E/AndroidRuntime( 2560): 	at android.os.Handler.dispatchMessage(Handler.java:102)
12-29 20:25:07.827 E/AndroidRuntime( 2560): 	at android.os.Looper.loop(Looper.java:148)
12-29 20:25:07.827 E/AndroidRuntime( 2560): 	at android.app.ActivityThread.main(ActivityThread.java:5417)
12-29 20:25:07.827 E/AndroidRuntime( 2560): 	at java.lang.reflect.Method.invoke(Native Method)
12-29 20:25:07.827 E/AndroidRuntime( 2560): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
12-29 20:25:07.827 E/AndroidRuntime( 2560): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
12-29 20:25:07.827 E/AndroidRuntime( 2560): Caused by: java.lang.IllegalStateException: Configuration cannot be changed after the prompt is first displayed.
12-29 20:25:07.827 E/AndroidRuntime( 2560): 	at com.github.stkent.amplify.prompt.BasePromptView.applyBaseConfig(SourceFile:279)
12-29 20:25:07.827 E/AndroidRuntime( 2560): 	at com.github.stkent.amplify.prompt.BasePromptView.onRestoreInstanceState(SourceFile:147)
12-29 20:25:07.827 E/AndroidRuntime( 2560): 	at com.github.stkent.amplify.prompt.DefaultLayoutPromptView.onRestoreInstanceState(SourceFile:85)
12-29 20:25:07.827 E/AndroidRuntime( 2560): 	at android.view.View.dispatchRestoreInstanceState(View.java:14752)
12-29 20:25:07.827 E/AndroidRuntime( 2560): 	at android.view.ViewGroup.dispatchThawSelfOnly(ViewGroup.java:3141)
12-29 20:25:07.827 E/AndroidRuntime( 2560): 	at com.github.stkent.amplify.prompt.a.dispatchRestoreInstanceState(SourceFile:161)
12-29 20:25:07.827 E/AndroidRuntime( 2560): 	at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3127)
12-29 20:25:07.827 E/AndroidRuntime( 2560): 	at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3127)
12-29 20:25:07.827 E/AndroidRuntime( 2560): 	at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3127)
12-29 20:25:07.827 E/AndroidRuntime( 2560): 	at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3127)
12-29 20:25:07.827 E/AndroidRuntime( 2560): 	at android.view.View.restoreHierarchyState(View.java:14730)
12-29 20:25:07.827 E/AndroidRuntime( 2560): 	at com.android.internal.policy.PhoneWindow.restoreHierarchyState(PhoneWindow.java:2035)
12-29 20:25:07.827 E/AndroidRuntime( 2560): 	at android.app.Activity.onRestoreInstanceState(Activity.java:1008)
12-29 20:25:07.827 E/AndroidRuntime( 2560): 	at android.app.Activity.performRestoreInstanceState(Activity.java:963)
12-29 20:25:07.827 E/AndroidRuntime( 2560): 	at android.app.Instrumentation.callActivityOnRestoreInstanceState(Instrumentation.java:1163)
12-29 20:25:07.827 E/AndroidRuntime( 2560): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2389)
12-29 20:25:07.827 E/AndroidRuntime( 2560): 	... 9 more

AndroidManifest.xml
        <activity
            android:name="com.alexvas.dvr.activity.ManageCamerasActivity"
            android:configChanges="keyboardHidden|orientation|screenSize"
            android:label="@string/manage_title"
            android:launchMode="singleTop"
            android:exported="false"
            tools:ignore="UnusedAttribute">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>

In Application it is initialized
    @Override
    public void onCreate() {
        super.onCreate();

        Amplify.initSharedInstance(this)
               .setFeedbackEmailAddress(getString(R.string.email_support))
               .setFeedbackEmailContentProvider(new AmplifyEmailContentProvider())
               .setAlwaysShow(Features.isDebug())
               .applyAllDefaultRules();
    }

In activity onCreate:
            try {

                DefaultLayoutPromptView promptView
                        = (DefaultLayoutPromptView) findViewById(R.id.prompt_view);

                if (promptView != null) {
                    promptView.addPromptEventListener(new IEventListener() {
                        @Override
                        public void notifyEventTriggered(@NonNull final IEvent event) {
                        }
                    });
                    Amplify.getSharedInstance().promptIfReady(promptView);
                }

            } catch (Throwable e) {
                e.printStackTrace();
            }
        }

@alexeyvasilyev poke; did v1.5.1 resolve your issue?

Looks like yes.

Great, thanks!

authors: alexeyvasilyev stkent

repo: stkent/amplify


text:
Compatibility with Django 1.9

Remove url tag import
Remove deprecated patterns() url syntax
Update documentation to reflect correct url imports
extend object-tools-items block instead of overriding object-tools

Thank you for this! Can you add Django 1.8 and 1.9 to tox so they get tested on Travis?

Done, travis and tox (CircleCI) testing against 2.7 and 3.4 with Django 1.8 and 1.9

Thank you!

authors: jmfederico skorokithakis

repo: stochastic-technologies/django-loginas


text:
I'm wondering if this great component supports to sync with parse-server?

I hope it's possible to sync data of pouchdb with parse-server that's the bundle of restful apis. Or should I make an adapter? Any idea would be appreciated.

I do not have experience with "parse-server". I personally do not use the direct Sync of PouchDB, I have a small node service in between handling the changes / user rights etc; reading the changes from pochdb-node + filter + geo logic.
In general the component should sync to PouchDB / CouchDB Http interfaces. If you need an PouchDB adapter for "parse-server" Properly you need to write one.
I Started with the leveldbCode adapter form PouchDb and started developing from there. People at PouchDb are nice and will help if you ask for.

Take a look at https://github.com/ParsePlatform/parse-server/wiki/Parse-LiveQuery from parse-server side and https://pouchdb.com/guides/changes.html from pouchdb side.

Thanks a lot! I think it's necessary to sync db by manual way to save changed data by change api. And I'm wondering how can I get changed data without any config for remote api?

authors: ewnd9 stockulus winglight

repo: stockulus/pouchdb-react-native


text:
Fixed docs to show configuration examples - #292 #293 #294

Some important configuration examples are not showing up on the docs.
Removed the .. configuration-block:: parts since they don't seem to be recognized by regular RST/markdown interpreters. It looks OK now.

I see (only now) there's another PR open to fix this.
Can you update the README to reflect the right url for the docs on the Symfony page, then? Cause the README links to the index.rst inside Github, and the rendering is not working as you already now. This is causing some trouble for many people :) Please. Pretty Please.

repo: stof/StofDoctrineExtensionsBundle


text:
List Text Overrun When Saving to PDF

So, I've encountered a strange error in my campaign workbook.  Using lists, I always encounter a strange error using this particular code when saving to PDF format - the list heading (in this case the | English | Qaadi | part of the list multiplies itself and covers the rest of the items within that list.  I have other lists in this brew which do not cause such errors, so I'm at a complete loss to explain what is going on with this.
The HTML render does not show this - only the output when you click "Get PDF" does, as well as the actual saved PDF file.  I've attached the whole of the page code below.  Any help would be appreciated.
Additional Details
http://homebrewery.naturalcrit.com/share/rJ0zTGao- :
or
Brew code to reproduce : Click to expand

APPENDIX D: SPEAKING QAADI

Speaking Qaadi
As  far as the March of the Worm-King campaign setting is concerned, Qaadi is the Arabesque language of the southern regions of Tebryn, encompassing the whole of the Qaad Sultanate and the Shayd'm Desert tribes.  However, to the DM, Qaadi is not a true constructed language, in that it does not have a lexicon or grammatical structure.  It is instead a kind of cipher, a method of encrypting or altering information beyond simple comprehension.
While several example phrases are provided for your use throughout this book, the enterprising DM (or clever players) can use this cipher to create their own questions, answers, statements, or anything else they wish in Qaadi.
Qaadi employs unvoiced consonants, where consonants immediately followed by an apostrophe (') are pronounced without using the vocal cords.  The apostrophe also  acts as an indicator for a brief pause in speech, or as an unvoiced 'eh' sound if at the end of a word.
When dealing with words that have a silent end letter (such as there), it is up to the DM or player to determine where to transliterate each letter into Qaadi, or simply the sound of the word.  It might even be better to do both when and where it pleases you - some words simply sound better one way or the other!
Qaadi Cipher

English
Qaadi

A
al/ab'd

B
bah/behd

C
not used Use 'S' or 'K' sound

D
desh

E
el/eb'd

F
fahd/foht

G
gan/geb'd

H
h/CH' like German hard ch

I
il/ib'd

J
j'ad/j'od like German j or English y

K
kahn/kop

L
l'

M
mahd/mod't

N
nahd/nod't

O
ol/ob't

P
p'/pahd

Q
qulit'

R
rahn/rod't

S
s'/saCH'd

T
t'/teh

U
ul

English
Qaadi

V
vahn/vag't

W
W'/weCH'd

X
k'sh'

Y
y-/yob't

Z
zedt

Example Phrases

English
Qaadi

Halt!
W'alilt'!

Who are you?
W'hol yol-ul?

Why are you here?
W'h'yob't yol-ul hel rahn-el?

I don't understand you.
Ib'dnol kahnod't olweCH'd.

Take the first phrase, "W'alilt'!" (W! ah-LEEL-teh).  Meaning 'halt!', it is derived from the English "Wait!".  By encoding each letter with the Qaadi cipher, we come up with the sounds W', al, il, and t', representing the letters (or sounds, depending on your perception and choice) of W, A, I, and T.  We can string these together in an exotic-sounding word, W'alilt'.

Obviously, however, it would be impractical and ponderous to take full English sentences and encipher them.  The solution is twofold: first, break a sentence down to its most important components, such as in the next example phrase, "W'hol yol-ul?" (W! hole yo-LOO-uhl), meaning, "Who are you?".  It is derived from the simplistic phrase, "Who you?".  Keep in mind that some word choices may need to be altered to fit the needs of pronunciation or timeliness.
The second half of the solution is simply to encipher

Move the “
APPENDIX D: SPEAKING QAADI“ to the bottom of the page.

FFFFFFFFFF...seriously?  That was IT?!
That's so dumb.  And so stupid.  And SO dumb.  And SO stupid.
IT'S SO GODDAMNED DUMB!
sigh
Thanks.

That is not showing up on mobile. Move the two doc tags on page numbers and footnotes to the bottom of the page.

When your looking at code for a long time, it all starts to blur.

repo: stolksdorf/homebrewery