next manual, 2.14++

Summary:
This is where typos and bug reports and requests go for the next manual after the 2.14 release.
We didn't update the manual for the 2.14 release, so I updated the issue title.

@alvaro1101 reports in issue #2121 that the model goes off page in the mining disaster example in the latent discrete parameter chapter.

In response to a question from xiehw on stan-users list, I replied with this, which should be added to the If the bivariate distribution is easily marginalized into univariate distributions, like say a normal,  you'd use those on the observed components.  So that'd be:
vector[2] y[N];
int<lower=0, upper=1> y_observed[N, 2];

for (n in 1:N) {
  if (y_observed[n, 1] && y_observed[n, 2])
    y[n] ~ multi_normal(mu, Sigma);
  else if (y_observed[n, 1])
    y[n, 1] ~ normal(mu[1], sqrt(Sigma[1, 1]));
  else if (y_observed[n, 2])
    y[n, 2] ~ normal(mu[2], sqrt(Sigma[2, 2]));
}

But...  that's not very efficient.  It's much better to vectorize all of this.  So, in transformed data, build up three vectors of indices, for the three cases above:
transformed data {
  int ns12[observed_12(y_observed)];
  int ns1[observed_1(y_observed)];
  int ns2[observed_2(y_observed)];

you need to do this with functions to count because you need to declare sizes.  Then the rest of transformed data just fills (I'm going to use the syntax about to release in 2.13):
  int n12 = 1;
  int n1 = 1;
  int n2 = 1;
  for (n in 1:N) {
    if (y_observed[n, 1] && y_observed[n, 2]) {
      ns12[n12] = n;
      n12 = n12 + 1;
    } else if (y_observed[n, 1]) {
      ns1[n1] = n;
      n1 = n1 + 1;
    } else if (y_observed[n, 2]) {
      ns2[n2] = n;
      n2 = n2 + 1;
    }
  }

and then, in the model block, everything's nice and vectorizable
using those indexes constructed once in transformed data:
  y[ns12] ~ multi_normal(mu, Sigma);
  y[ns1] ~ normal(mu[1], sqrt(Sigma[1, 1]));
  y[ns2] ~ normal(mu[2], sqrt(Sigma[2, 2]));

This is much more efficient than using latent variables for the missing data, but requires the multivariate distribution to be marginalized analytically.

In the multivariate regression example, in the "Optimization through Vectorization" section there's a bit that says
The code in the Stan program above can be sped up dramatically by replacing:
%
\begin{stancode}
  for (n in 1:N)
    y[n] ~ normal(x[n] * beta[jj[n]], sigma);
\end{stancode}
%
with a redeclaration of \code{beta} and a revised model block sampling
statement.
%
\begin{stancode}
parameters {
  matrix[J, K] beta;
...
model {
  y ~ normal(rows_dot_product(x, beta[jj]), sigma);
  ...
\end{stancode}
%
which takes advantage of indexing introduced in Stan version 2.9 (see \refsection{language-multi-indexing}).

However, when you actually try this, one gets a parser error:
No matches for:
  rows_dot_product(vector[], matrix)

because beta is an array of vectors. One can define beta as a matrix instead, but then the vectorization of the beta ~ multi_normal(... doesn't work.  So either the docs will have to choose one or the other vectorization or (and this would be a non-docs issue) update the rows_dot_product() to treat an array of vectors like a matrix.

@mike-lawrence  Thanks, I'll fix that.  It's an ongoing tension in programming converting between representations useful for one thing and those useful for another (e.g., matrices in row vs. column-major order;  one's good for left terms and one for right terms in multiplications).

Fix problems brought up by @andrewgelman
I'm looking at the mixture model in the manual (p. 115 of the 2.12.0 manual).  I see two potential problems:

[ ] Should we do orderded mu[K]; so that we solve the alising problem?

[ ]   I'm worried about the cauchy(0,2.5); prior on sigma.  I think that it may be necessary to exclude sigma from 0, for example using a lognormal prior. If any sigma can be near 0, this will cause the likelihood to blow up and it will give us a degenerate posterior.

[ ] add warning to diag_matrix warning about inefficiency and recommend looping
[ ] add warning to inverse() about numerical instability and recommend matrix division

Stefano on stan-users points out:
The Stan program for the change point model is shown in Figure 12.1. The transformed
parameter lp[s] stores the quantity log p„s;Dje; l….
Although the model in Figure 12.1 is easy to undertand, <- (s) missing.

[ ] add missing s

Currently in section 22.1 the manual notes that you can use reject() statements in user-defined functions in order to do input validation. I think the manual should say more and in fact strongly encourage the user to use such statements, at least for more complex functions. Consider the following function:
real myfun(real x){
  real z = x;
  while(fabs(z) > 1.0){
    z = z/2.0;
  }
  return z;
}

This will compile fine, but at runtime if fabs(x) == positive_infinity() the while loop will not terminate and Stan will eat up all available memory before crashing (in RStan 2.12.1 anyway). This is easily solvable by checking if x is a finite number and rejecting if it isn't. For example this fixes the problem:
real myfun(real x){
  if(x == not_a_number() || x == positive_infinity() || x == negative_infinity())
    reject("x should be a finite real number; x = ", x);
  real z = x;
  while(fabs(z) > 1.0){
    z = z/2.0;
  }
  return z;
}

In this example it's not too hard to figure out what's going on, but in a more complex while loop it may not be obvious. Biasing users toward starting with input validation for their more complex functions seems like a good thing.
This suggestion is motivated by my own recent issues with a more complex function that uses a while loop, and had the manual been more assertive about using reject() statements I think I would have avoided the problem altogether. Or at least I'd like to think so.

@simpsonm  Great idea.  This is a key principle in writing APIs---they should verify their inputs and fail as early as possible with a meaningful error message.  And thanks for working out the example.
You can't really do x == not_a_number() because comparing NaN to anything yields false.  That's why there's an is_nan(x) function;  we also have an is_inf(x), so the conditio is most naturally
  if (is_nan(x) || is_inf(x)) ...

We should really have an is_finite().

[ ] Change Marcus's affiliation to York University

[ ] recode hurdle model as cleaner mixture according to @betanalpha's suggestion on stan-users:

if (y[n] == 0)
 target += log_inv_logit( X_bin[n] * g);
else
 target += log1m_inv_logit(X_bin[n] * g) + gamma_lpdf(y[n] | alpha, beta);

Maybe also present it using log_mix to see the connection explicitly.  I really like the parts of Gelman and Hill's regression book where they present the same model many different ways.

[ ] lgamma signature on page 428 is mangled (lgamma is missing, the return type is in bold instead).

[ ] mention that mixture models also work as priors in the mixture models chapter

On page 122, should the lines:
// thin and scale the QR decomposition
  Q_ast = qr_Q(x)[, 1:K] * sqrt(n - 1);
  R_ast = qr_R(x)[1:K, ] / sqrt(n - 1);

use N - 1 instead of n - 1, given that there is no n anywhere else in the program?

@RobertMyles Thanks.  I'll fix https://github.com/stan-dev/stan/issues/2122#issuecomment-271621141

From Conner DiPaolo on stan-users:

[ ] Since this assumes that L_{ii} > 0 for all i, I'd suggest revising the relevant section 57.3 for the multi_normal_cholesky to make this explicit because it currently says that the parameterization is valid if L is lower triangular and Sigma = L L^T, which includes L_{ii} potentially non-positive.

[ ]  This documentation issue might also be present in other Cholesky parameterized densities, though I haven't checked.

[ ] add Imad to dev list

From #2212 by https://github.com/vasishth:

[ ] clarify that the lambda in section 12.5 on vectorizing mixtures is a scalar---it's the same mixture ratio for each and it's a value in [0, 1]

@seantalts brought this up while unit testing to_matrix:

[ ] make a note about 0 x N x ... arrays in Stan:

real a[0, 3];

This will compile to a vector<vector<T> > type, but it will be empty.  So if we do something like to_matrix(a), we'll get a 0 x 0 matrix.

[ ] add warnings to relevant functions

On stan-users John Hall points out that at the bottom of page 325 (under "Non-Centered Parameterization" heading) the following sentence

When there is a lot of data, such a hierarchical model can be made much more efficient
by shifting the data’s correlation with the parameters to the hyperparameters.

should actually be referring to when there is not much data.
He suggests that the whole paragraph

When there is a lot of data, such a hierarchical model can be made much more efficient
by shifting the data’s correlation with the parameters to the hyperparameters. Similar
to the funnel example, this will be much more efficient in terms of effective sample
size when there is not much data (see (Betancourt and Girolami, 2013)).

be changed to something like the following:

When there is not much data, a non-centered parameterization can be much more efficient in terms of effective sample size by shifting the data’s correlation with the parameters to the hyperparameters. (see (Betancourt and Girolami, 2013)).

[ ] Either use John Hall's recommended change or, at a minimum, change "a lot of data" to "not much data" or an equivalent

John Hall went on to suggest linking to Gelman and Hill 21.14, which provides a statistic to estimate how much pooling can/will be done.
lambda <- function(fit, ...) {
    extracted_fit <- rstan::extract(fit, permuted = TRUE, ...)
    N <- length(extracted_fit)
    result <- rep(NA, N)
    names(result) <- names(extracted_fit)
    for (i in 1:N) {
        extracted_fit_i <- extracted_fit[[i]]
        if (length(dim(extracted_fit_i)) == 1) next #only calculate if more than
                                                    #1 dimension
        e <- extracted_fit_i - mean(extracted_fit_i)
        result[i] <- 1 - var(apply(e, 2, mean)) / mean(apply(e, 1, var))
    }
    return(result)
}

[ ] back this out into a formula for a manual and reference Gelman and Hill

[ ] update missing data section to account for slicing with this example from the mailing list:

data {
 int<lower = 0> N_obs;
 int<lower = 0> N_mis;
 int<lower = 0, upper = N_obs + N_mis> ii_obs[N_obs];
 int<lower = 0, upper = N_obs + N_mis> ii_mis[N_mis];
 real y_obs[N_obs];

parameters {
 real y_mis[N_mis];
 real y[N_obs + N_mis];
 y[ii_obs] = y_obs;
 y[ii_mis] = y_mis;

Do we now allow indexing and assignments in the parameters block? That is,
does this
y[ii_obs] = y_obs;
really work in parameters now? Or was that supposed to go in transformed
parameters?
On Tue, Feb 7, 2017 at 4:03 PM Bob Carpenter<EMAIL_ADDRESS>wrote:

update missing data section to account for slicing with this example
from the mailing list:

data {
int<lower = 0> N_obs;
int<lower = 0> N_mis;
int<lower = 0, upper = N_obs + N_mis> ii_obs[N_obs];
int<lower = 0, upper = N_obs + N_mis> ii_mis[N_mis];
real y_obs[N_obs];
parameters {
real y_mis[N_mis];
real y[N_obs + N_mis];
y[ii_obs] = y_obs;
y[ii_mis] = y_mis;
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/stan-dev/stan/issues/2122#issuecomment-278139149, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AHb4Q8gbdgp8BCmi_zx8ZEmPw6zpJbJUks5raNwpgaJpZM4K59eC
.

[ ] replace the _lpdf and other probability functions that got dropped from the index when we changed notations

[ ] add sliced vector approach to missing data following the discussion with Måns Magnusson on stan-users.  The model we wound up with was:

data {
  int<lower = 0> N_obs;
  int<lower = 0> N_mis;
  int<lower = 1, upper = N_obs + N_mis> ii_obs[N_obs];
  int<lower = 1, upper = N_obs + N_mis> ii_mis[N_mis];
  real y_obs[N_obs];
}
transformed data {
  int<lower = 0> N;
  N = N_obs + N_mis;
}
parameters {
  real y_mis[N_mis];
  real<lower=0> sigma;
}
transformed parameters {
  real y[N_obs + N_mis];
  y[ii_obs] = y_obs;
  y[ii_mis] = y_mis;
}
model {
  sigma ~ gamma(1, 1);
  y[2:N] ~ normal(y[1:(N - 1)], sigma);
}

Hi,
There is few deprecated assignment operator <- in page 203 and  579.

[ ] add description of double exponential (Laplace) distribution as an exponential scale mixture of normals, see:  https://en.wikipedia.org/wiki/Laplace_distribution#Relation_to_the_exponential_distribution.

The non-centered parameterization is
parameters {
  real mu;
  real<lower=0> lambda;
  real<lower=0> theta;
  ...
transformed parameters {
  real u = mu + y * z;  // u ~ double_exponential(mu, lambda);
  ...
model {
  y ~ exponential(inv(lambda));
  z ~ normal(0, 1);
  ...

In the signature of normal_lccdf on page 493, the second | should probably be ,. Similarly for signature for normal_rng immediately following the previous. (In fact, most _cdf functions have , instead of | as the first delimiter but this seems to be already noted in #2034.)
Descriptions of sampling statements, like "Increment log probability with bernoulli_lpmf(y, theta) ..." on page 478, should have | instead of ,.

From Andrew:

[ ] In section 45.7, the lower limits of the integrals should be -\infty, not 0, right?

In Section 8.2 on QR factorization, I feel like the paragraph that recommends you use it when you do not have an informative prior on the location of beta is mistaken (also mentioned in 8.3).
Consider a probability distribution Y ~ N(XB, sigma) with a  prior B ~ N(mu_B, sd_B). Y is then re-written as Y ~ N(Q * theta, sigma). The equivalent distribution on the prior of theta would be theta ~ MVN(mu_B * R, t(R) * diag(sd_B ^ 2) * R), assuming mu_B is 1XN.
My point is that you can still include a prior on the mean of beta, you just have to do the appropriate transformation in order to express it in terms of the new beta. This raises some other questions about the reasoning in that section, but I'll leave off here.

[ ] make sure all the index entries for densites are included

@jmh530 yeah you're right that it's possible to use the QR approach even with a non-zero prior mean on the coefficients, so perhaps the recommendation in the manual is worded too strongly. @bgoodri should comment on this though because he wrote that section and I forget if he had a reason for discouraging this (he's definitely aware that's it's possible). One reason might just be that it is strange to have a prior believe that there is a dense covariance matrix for the MVN on theta since theta represents the coefficients on the columns of the Q matrix and those columns are orthogonal.

True. When I was playing around with it, I had extracted the standard
deviations from the covariance matrix and just used the univariate normal
distribution.
On Wed, Mar 8, 2017 at 11:40 AM, Jonah Gabry<EMAIL_ADDRESS>wrote:

@jmh530 https://github.com/jmh530 yeah you're right that it's possible
to use the QR approach even with a non-zero prior mean on the coefficients,
so perhaps the recommendation in the manual is worded too strongly.
@bgoodri https://github.com/bgoodri should comment on this though
because he wrote that section and I forget if he had a reason for
discouraging this (he's definitely aware that's it's possible). One reason
might just be that it is strange to have a prior believe that there is a
dense covariance matrix for the MVN on theta since theta represents the
coefficients on the columns of the Q matrix and those columns are
orthogonal.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/stan-dev/stan/issues/2122#issuecomment-285094262, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AMJWygKPHFdD8niS1Y0CMq5kVBZK-7txks5rjtoEgaJpZM4K59eC
.

Olivier Ma pointed out on stan-users that the code on p. 131 is trying to copy a column vector into a row of a matrix.

[ ] change shapes so the code compiles
[ ] add some more description
[ ] thank Olivier in the acknowledgements

Eric Innocents Eboulet pointed this out on stan-users:

[ ] poisson_lpmf instead of poisson_lpdf(2|3.7)

[ ] thank Eric

In 8.16, the Posterior Predictive Checks section contains the following sample code:
 generated quantities {
      vector[N] y_tilde;
      for (n in 1:N)
        y_tilde = normal_rng(alpha + beta * x[n], sigma);
    }

I believe that should be y_tilde[n] = ...

From Trung Dung Tran: in "Non-Centered Parameterization" within section 26.6 (page 325) the sentence "When there is a lot of data, such a hierarchical model..." should read "When there is not a lot of data, such a hierarchical model...".

[ ] make sure dev team and affiliations are up to date

[x] remove backslash before Stan in all files

[x] changed manual license to CC-BY-ND (requiring attribution, disallowing derivative works);  I think we should use that in general for our doc

[x] update copyright notices and citations to 2017

[ ] add a crisp mathematical definition of divergences in the HMC chapter

Fixed with #2266


HTMLInputElement::formNoValidate has the wrong type

TypeScript Version:  2.7.1

Search Terms:
formNoValidate
Code
const test = document.createElement('input');
test.formNoValidate = true;

Expected behavior:
compiler shouldn't complain since HTMLInputElement::formNoValidate is supposed to be a boolean value
Actual behavior:
compiler reports an error due to the fact that typescript treats HTMLInputElement::formNoValidate as a string instead of a boolean
Playground Link:
Related Issues:

Should be fixed by https://github.com/Microsoft/TypeScript/pull/22381

thanks


How to use this one with your another "Dubbo Spring Boot"?

I will create some samples for dubbo-sprint-boot integration recently.


feat: add multi-language supports

feat: use npm run i18n(i18next-parser) to extract i18n text in src.
fix: crash if no window.ai backend installed

This is great, thank you so much


⚠ Slack has degraded performance

In f22d3ef, Slack (https://status.slack.com/api/v2.0.0/current) experienced degraded performance:

HTTP code: 200
Response time: 163 ms

Resolved: Slack performance has improved in f4dd891 after 1 hour, 37 minutes.


feat: 在查询postgresql表字段时同时获取字段描述信息

修改gdb_driver_pgsql.go，增加从pg_description表获取字段描述信息，方便后续gf-cli时生成代码中缺少pg字段注释的问题。

Codecov Report

Merging #1280 (b935a8c) into develop (eb723e4) will decrease coverage by 0.07%.
The diff coverage is 0.00%.

@@             Coverage Diff             @@
##           develop    #1280      +/-   ##
===========================================
- Coverage    69.13%   69.05%   -0.08%
===========================================
  Files          375      375
  Lines        26611    26612       +1
===========================================
- Hits         18398    18378      -20
- Misses        6670     6687      +17
- Partials      1543     1547       +4

Impacted Files
Coverage Δ

database/gdb/gdb_driver_pgsql.go
0.00% <0.00%> (ø)

net/gtcp/gtcp_pool.go
28.78% <0.00%> (-10.61%)
:arrow_down:

os/gspath/gspath_cache.go
83.78% <0.00%> (-8.11%)
:arrow_down:

net/gtcp/gtcp_conn.go
30.53% <0.00%> (-2.30%)
:arrow_down:

os/glog/glog_logger_rotate.go
71.85% <0.00%> (-1.49%)
:arrow_down:

container/gtree/gtree_avltree.go
92.49% <0.00%> (-1.08%)
:arrow_down:

container/gtree/gtree_btree.go
88.16% <0.00%> (-0.25%)
:arrow_down:

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 eb723e4...b935a8c. Read the comment docs.


Make ResolverPool send to allow for resolve/submit on a different thread.

Would it be possible to allow for resolve/submit on a different thread?
I'm currently using this to get some initial pipelined rendering working where the graph is built on one thread and then resolved/submitted on another.
Here's a screenshot from tracy with before and after.

I think Send is a reasonable constraint here, and it looks like you're saving 3ms!
This could also be accomplished by just keeping a Pool type on the worker thread, it's safe to create and drop at any time.


Testing: Demonstrate Python test layer implementations

About
Only "Testcontainers for Java" is being presented up until now. This patch intends to level up on the Python side of things.
What's inside
The patch demonstrates the whole matrix of building test harnesses with Python, using both unittest and pytest, with and without "Testcontainers for Python".

When using Testcontainers, it relies on the corresponding test layer provided by cratedb-toolkit.
When not using Testcontainers, it relies on the test layers provided by pytest-crate and cr8.

See also the corresponding README files.

testing/native/python-pytest/README.md
testing/native/python-unittest/README.md
testing/testcontainers/python-pytest/README.md
testing/testcontainers/python-unittest/README.md

Notes about CI

The Testcontainers implementation can not be validated on CI/GHA/macOS: Docker is not installed on macOS runners because of licensing issues, see https://github.com/crate/crash/pull/408#issuecomment-1902679278.

Outlook

This patch only demonstrates basic usage of CrateDB test layer variants. On a subsequent iteration, we may want to demonstrate how to parameterize them, see GH-282.

cr8 needs a fix to run on Python 3.12, see GH-283 and https://github.com/mfussenegger/cr8/pull/371.

/cc @pilosus, @karynzv, @marijaselakovic, @hlcianfagna, @hammerhead, @proddata, @SStorm, @surister

That's nice, but is it worth mentioning https://pypi.org/project/pytest-crate/ (shout out to @chaudum). We use it for all our testing.


StaticSite: Allow overwriting viewer request function

PR #2564 introduced a viewer request function and there doesn't seem to be a way to remove it.  We have setups that use an Edge function on viewer request and CloudFront does not allow both a CloudFront function and an Edge function at the same time on viewer request or viewer response.

Let me check.

Hey @brad-hader-FHR, does overriding functionAssociations to undefined work for you?
const site = new StaticSite(stack, "mySite", {
  cdk: {
    distribution: {
      defaultBehavior: {
        functionAssociations: undefined,
      },
    },
  }
});

It did not.  First thing I tried.  Also, tried sending an empty array.

just gave this a try, seems to work.
Without overriding functionAssociations
new StaticSite(stack, "mySite");

generated this block in the CloudFormation template.json
  "SPADistributionA6A1EF89": {
   "Type": "AWS::CloudFront::Distribution",
   "Properties": {
    "DistributionConfig": {
     "DefaultCacheBehavior": {
      "CachePolicyId": "658327ea-f89d-4fab-a63d-7e88639e58f6",
      "Compress": true,
      "FunctionAssociations": [
       {
        "EventType": "viewer-request",
        "FunctionARN": {
         "Fn::GetAtt": [
          "SPACloudFrontFunctionDB066884",
          "FunctionARN"
         ]
        }
       }
      ],
      ...
     },
     ...
  },

With functionAssociations: undefined
new StaticSite(stack, "mySite", {
  cdk: {
    distribution: {
      defaultBehavior: {
        functionAssociations: undefined,
      },
    },
  }
});

generated this block in the CloudFormation template.json
  "SPADistributionA6A1EF89": {
   "Type": "AWS::CloudFront::Distribution",
   "Properties": {
    "DistributionConfig": {
     "DefaultCacheBehavior": {
      "CachePolicyId": "658327ea-f89d-4fab-a63d-7e88639e58f6",
      "Compress": true,
      "TargetOriginId": "devplaygroundStaticSiteStackSPADistributionOrigin1A6D5D7F3",
      "ViewerProtocolPolicy": "redirect-to-https"
     },
     ...
    },
    ...
  },

Setting it to undefined did work.  Not sure what I observed before, but this works.  Closing issue and PR.


zkFans contract

Description
As a user I want to store in the blochain which cid i own and be able to add them whenever i want to upload content.
Also I want to be able to be sure someone else has access to my content (cid) only if they have paid.
As a consumer I want to be able to paid for content (cid) access from someone else
Acceptance criteria

[x] add getter and setters to retrieve or add cid into the (address -> content) mapping
[x] add hasPaid validations
[x] Verify only the cid owners can update their content
[x] add payForContent function

zkFans contract added

add profile
get content
subscribe to profile
revoke subscribe


set MaxDate to current month is not working

Bug type
Component
Component name
MudDatePicker
What happened?
MaxDate is set to current month only and we are able to select other month.
zanetology —
Had a quick look at the code. It seems like this is a bug.
You should create an issue in the mud-repo so I can submit a PR when I find the time for
Expected behavior
If MaxDate is set to the current month, we should not be able to select other month
Reproduction link
https://try.mudblazor.com/snippet/cOcQuHEmgGEoyHfi
Reproduction steps
Click to select date and we can select any month
Relevant log output
No response
Version (bug)
6.0.5
Version (working)
No response
What browsers are you seeing the problem on?
Firefox, Chrome, Safari
On what operating system are you experiencing the issue?
Windows, Mac OSX
Pull Request

[ ] I would like to do a Pull Request

Code of Conduct

[X] I agree to follow this project's Code of Conduct

It look like when you set a fixed day, max date is broken

Will try to submit a PR by the end of this week

Actually i prepared a PR, min and max date works only day view, need to rearrange month and year views also

@kuebelkasten we can check this PR now :) we have to find all possible min and max date implementations

And @Deurnieur in your try you set the year as month
DateTime _startOfNextYear = new DateTime(DateTime.Now.Month,1,1);
i think it should be more like
DateTime _startOfNextYear = new DateTime(DateTime.Now.Year, DateTime.Now.Month + 1,1);

@kuebelkasten we can check this PR now 🙂 we have to find all possible min and max date implementations

Already have some checks in mind. Will check out tomorrow to see if all those cases are covered.


Revise large cluster guidance

The existing page had lots of references to specific products. Those references weren't in line with the current content guide, so I cut them out.
I then reshaped the page to be a general set of advice about managing and running large clusters, and I added new content about control-plane resilience and cross-AZ networking. I recommend that this should have suitable tech review.
Fixes issue #20813

Hi @sftim Any suggestion on who would be a suitable technical reviewer for this?

@steveperry-53 - I wonder if your experience gives you an insight into who to suggest?

@lavalamp would you have time to tech-review this?

👀

Page preview:
https://deploy-preview-24424--kubernetes-io-master-staging.netlify.app/docs/setup/best-practices/cluster-large/

Revised.
@kbhawkey would you like to review again?

Tech LGTM, sorry for delay
/lgtm

/kind cleanup

Thanks @sftim .
/lgtm

/approve


Question: TryFunction attribute

When I try to create a TryFunction, I get a compiler error stating that it cannot be used for extension development.
Is this just a temporary consequence of the AL Language still being in development, or is it a permanent decision that there will be no TryFunctions in extensions at all?

We haven't enabled it yet. We are considering what the syntax should like. The attribute style syntax used by .txt files seems a bit odd for this.

Thanks. That's the answer I hoped for :)


several display matters

I'm getting started with iHaskell and have a few issues with displays of various sorts.
First, in the example notebook Conjugate Gradient.ipynb, it's clear that the LaTeX definition in the first paragraph is messed up.  That is, the \newcommand in the markdown didn't work out.   Have there been changes to the way LaTeX works in markdown cells?
Second, how does one include LaTeX style files for definitions in markdown cells?  I don't see examples in any of the files.
Speaking of examples, the package IHaskell.Diagrams isn't well-documented.   Is there stuff that's not on the web that I can look at?   I'm having trouble finding much of anything.

I don't think IHaskell has anything whatsoever to do with LaTeX formulas in Markdown cells, that's purely a Jupyter / MathJax issue. I suppose what you mean is the way said notebook looks when you view it directly on Github. The reason for this is evidently that Github does not embed MathJax, instead it pre-renders all formulas to images on the server side – but that means newcommand doesn't work. But if you view the notebook eg through nbviewer, this problem doesn't arise.
Reg. your question about LaTeX style files... frankly, I'd forget it. Embedded MathJax is good for simple formulas in standard AMSMath-LaTeX. For anything more complicated TeX-wise, Jupyter notebooks aren't really suited. You don't get to control much about the document layout etc. from LaTeX anyway... if you want that, why not write a LaTeX document?
If the reason for your question is more that you find standard AMSMath too awkward for typing the formulas you need, and want to include style files that just make the formulas you need feasible to type, I'd see your point. I do think it's possible \usepackages, but at any rate you will run into the problem that the notebooks won't render properly in Github's previewer. Perhaps that wouldn't really be a problem at all for you.
At any rate, as I said, this has nothing to do with IHaskell – ask the Jupyter folks.
There is an alternative you could consider though, namely, generating the formulas from Haskell code, rather than manyally typing any LaTeX. That can be done through the ihaskell-hatex interface. A Haskell eDSL can in principle to a much better job for formulas than raw LaTeX; check out the TeX-my-math package.
Reg. documentation for IHaskell-diagrams... there's not much that could be documented there. Just define diagrams as explained in e.g. the diagrams manual. Choose the Cairo backend. The thus defined diagrams can then be displayed in IHaskell cells.

Hi -- thanks very much!
I hadn't known about Jupyter and MathJax, so you set me straight.
My main interest in this issue with LaTeX is that I have a few macros that I'd like to use.  Style files would also be great.   I know that I could get by without these, but having them would make life easier.  I haven't been able to use \usepackage, at least not so far.   I could ask over at Jupyter.
ihaskell-hatex looks interesting, but it's not needed for what I'm doing.
And on diagrams: ok, I'll rtfm.   But since I'm talking to you, I have similar questions about charts and about pretty-printed tables.   Any suggestions on those?  I'll try with the cairo-backend first.   I see very little out there in the way of slow documentation.

Have a look at https://ocharles.org.uk/blog/posts/2013-12-24-24-days-of-hackage-charts.html and/or ask over at https://github.com/timbod7/haskell-chart :smiley:

Thanks, I'll do that.
Meanwhile, I also see IHaskell.Tables.Data, and that's also of immediate interest.
Thanks again to you both.

Great, closing this.


Error (windows 10 - Anaconda)

problemes to install
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\Usuario\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow_init_.py", line 24, in
from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
File "C:\Users\Usuario\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python_init_.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "C:\Users\Usuario\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Users\Usuario\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 14, in swig_import_helper
return importlib.import_module(mname)
File "C:\Users\Usuario\Anaconda3\envs\tensorflow\lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 985, in _gcd_import
File "", line 968, in _find_and_load
File "", line 957, in _find_and_load_unlocked
File "", line 666, in _load_unlocked
File "", line 577, in module_from_spec
File "", line 938, in create_module
File "", line 938, in create_module
File "", line 222, in _call_with_frames_removed
ImportError: DLL load failed: Uma rotina de inicialização da biblioteca de vínculo dinâmico (DLL) falhou.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Usuario\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\Usuario\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 17, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\Usuario\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 16, in swig_import_helper
return importlib.import_module('pywrap_tensorflow_internal')
File "C:\Users\Usuario\Anaconda3\envs\tensorflow\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: No module named '_pywrap_tensorflow_internal'
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/install_sources#common_installation_problems
for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.

Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks.
Have I written custom code
OS Platform and Distribution
TensorFlow installed from
TensorFlow version
Bazel version
CUDA/cuDNN version
GPU model and memory
Exact command to reproduce

Hi Enrique,
the problem may be that your CPU don't have AVX instruction set,
please take a look at this thread with the same problem:
https://github.com/tensorflow/tensorflow/issues/18503


Use uptime_lib for retrieving uptime

This supercedes #16 as it is a better choice to use uptime_lib instead of doing the same logic inside of systemstat.
Closes #15

No! It's not better! :P I said in #15, I'll take #16 instead. (Also, please don't auto-format code in PRs.)

Sorry, I'm still pretty new to Rust and don't understand what is doing the autoformatting in order to be able to disable it.

 Did you not run cargo fmt? Did some IDE/tool run it for you?

Yes. It either ran when I ran cargo or when I was editing in vim. I
don't remember setting it up to do it automatically...


take away default for groupBy/having

One of our teams was getting incorrect results from druid without realizing it right away, because they had a typo in the having clause inside a groupBy query.  This did not report an error, because there is a default for the "having" spec.  We think that there should not be a default for the "having" spec, because that makes it very easy to have unintended, incorrect results without anyone realizing it.

This also means every query will require a having spec for group-bys, right?

I don't  exactly understand why the default is used if the type isn't recognized - but when I tried it out with the default removed, it reported an error if the groupby/having wasn't a recognized type, and it also answered timeseries with no groupBy

@rasahner I was thinking of the wrong enforcement layer.
Is there any difference between having an AlwaysHavingSpec and omitting the having spec?

I'm not seeing any. Unless someone comes up with a way AlwaysHavingSpec and omitting a having spec are supposed to be different, then I'm :+1:

:+1:
@drcrallen  havingSpec will just be null if user does not have it in the query, it is not mandatory.
the problem with default was that if user specified a "having" clause and made a mistake in type name, druid will silently use AlwaysHavingSpec which will produce incorrect result with no errors. this PR will fail the query if user made a typing mistake.

Should we remove AlwaysHavingSpec then since there isn't any real use case of it?

:+1:

are you +1ing the removal of AlwaysHavingSpec?  What about NeverHavingSpec?

@guobingkun There's always testing purposes (and who knows how all people could be using it in the wild). Unless it causes issues or conflicts or does not work as intended then I'd say leave it.

Just noticed it seems to be absent from the list beneath.

Sorry, I don't understand the context of the previous comment.  What's "it" that is absent, and what's the list?

@rasahner The default value removed in this PR is not present in the explicit naming annotation beneath the modified line.

@rasahner  I think we should add it as "always" type so that users who want to use it for whatever reasons can still use it.

I've added the "always" type to the list.

@rasahner LGTM, pls squash your commits.

squashed (didn't before in case I had to close/reopen for travis)

bouncing for travis.


Network: UDP ?

I was wondering if it would be useful to have a UDP example? (related: #44)
I recently dug into this, and it was working out quite nicely with Zig 0.12 / 0.13-master. Here's a gist for an "echo" via UDP on the loopback / localhost (could also be a Unix domain socket, as an extension maybe). What the gist shows is basically sockets programming since std.net does not have abstractions for UDP (yet). There's no connection/handshake as in TCP, so there's no "client" or "server" in that sense.

Thanks, UDP example looks valuable for me.
Wait for your PR to add it.

alright, I'll clean up the gist, so that it works similar to https://cookbook.ziglang.cc/04-01-tcp-server.html.
Officially, only Mac and Linux are supported in the cookbook examples, right? For the UDP example, it will likely work on Windows as well if you link libc (what comes with Zig on Windows). I'll need to test that tough.

Officially, only Mac and Linux are supported in the cookbook examples, right?

Yes, windows is a plus, not a must.


Master

If you start animation, stop it, and then immediately start it again
the animation will stop due to no check in the animation completed
block.
[self.activityIndicator startAnimating];
// wait some time
[self.activityIndicator stopAnimating];
[self.activityIndicator startAnimating]; //within .5 of a second.
This pull request fixes the issue.

@hactar Thanks for the PR. :pray:


Create Functional / Integration Test for DataSource Wrapping

This feature is heavily dependent in Grails version and how GORM creates DataSources and wrappers. We should have a functional test with some simple entities (and save some instances)  proving that this plugin were able to apply the wrapper correctly.

Created app-integration-tests as start point for covering DS wrapper feature.


Control FileSystemCreator evaluation order

Problem
I am registering a FileSystemCreator via an initializer block in the Main Activity companion object.
class MainActivity : AppCompatActivity() {
    companion object {
        ...
        init {
           ...
            FileSystemFactory.registerFileSystem(UsbFatFileSystemCreator())
        }
   }
}

The FileSystemFactory object initializer block registers the default Fat32FileSystemCreator before that FileSystemCreator.   The createFileSystem function then iterates in the order the creators were registered so that Fat32FileSystemCreator is always evaluated first.
I would like my FileSystemCreator to be evaluated before the default creator so that I consistently use the custom creator for FAT12, FAT16, and FAT32.
Proposed Solution
Add a mechanism of assigning an order.  This could just be adding an additional function signature such as:
fun registerFileSystem(creator: FileSystemCreator, priority: Int)
A constant value for the priority default file system creator could be exposed so that registered creators can be ordered before or after the default.   The existing function can continue to behave the same way so as to make the change non-breaking.
Alternatively, could just remove the initializer block from FileSystemFactory and lazily add the Fat32FileSystemCreator at the time of the call to createFileSystem if there are no registered creators.
Code where problem occurs
https://github.com/magnusja/libaums/blob/develop/libaums/src/main/java/me/jahnen/libaums/core/fs/FileSystemFactory.kt#L48

Oh yeah that makes total sense, feel free to open a MR :)
I guess we can have DEFAULT = 0 and then have the
registerFileSystem(creator: FileSystemCreator) {
  registerFileSystem(creator, 1)
}

Then this would not happen by accident anymore


commit to change grants columns

Description
updated grants columns
Type of change
Please delete options that are not relevant.

[x] This change requires a documentation update

Change Status

[ ] Complete, tested, ready to review and merge
[x] Complete, but not tested (may need new tests)
[ ] Incomplete/work-in-progress, PR is for discussion/feedback

Great job cleaning the grants table.


DE897

Backported 2 commits to solve DE897. Had to delete the tests in the second commit as they wouldn't pass in Havana.

Merging since the upstream commits didn't include tests, seems unreasonable to mandate them for this backport


[MaterializedView] forbid direct ingest to MaterializedView [P2]

Feature request
Is your feature request related to a problem? Please describe.

to #3680
Describe the solution you'd like

direct load to MaterializedView should be forbidden

LGTM

run starrocks_fe_unittest


Can you provide more technical documentation?

Can you provide more technical documentation?

Our products are still in testing. The documentation is also still being written and will be available for you soon.


maximized vscode window content 1px leak through monitor edge

VSCode Version: 1.39.2
OS Version: windows 10

Steps to Reproduce:

open vscode with dual monitor
maximize vscode

left edge

right edge

Does this issue occur when all extensions are disabled?: No
Running in fullscreen is fine.
I'm using 4k resolution on all monitors with 200% system scaling

Could you check in Insiders build? https://code.visualstudio.com/insiders/
Should be fixed there (may be related to Electron update)

Great! Insider build doesn't have this issue. Closing this now.


loopIfBeforeStart:false not working

Hello @phhu ! thanks in advance.
I want to reproduce video normally, and start bucle for example in second 30 to 40.
When I load the page, by default start in 30, maybe is something wrong with loopIfBeforeStart ? true / false, nothing happend.
I need use setTimeout for work with, something weird...
Thanks man!

const player = videojs('vid', {
    controls: false,
    autoplay: true,
    plugins: {
        abLoopPlugin: {
            start: 0,
            enabled: false,
            loopIfBeforeStart: false,
            createButtons: true
        }
    }
});

setTimeout(function () {
    console.log("setting new start and end...");
    player.abLoopPlugin.setStart(30).setEnd(40).enable();
}, 30000);

I'm guessing you worked this out, since it's closed. Let me know if not.
If you're trying to play the video from the start, then when it reaches 40s, loop back to 30s and keep looping 30s to 40s thereafter, I think something like this would work:
const player = videojs('vid', {
    controls: false,
    autoplay: true,
    plugins: {
        abLoopPlugin: {
            start: 30,
            end: 40,
            enabled: true,
            loopIfBeforeStart: false,
            createButtons: true
        }
    }
});
player.play();

This would still mean that, if the video is moved to somewhere before 30s after the loop has happened, it would not loop (back to 30s) until the video is after 40s again.
(Rather than using timeouts, you can use the callbacks to change settings after loops: e.g. here you might set loopIfBeforeStart to true once the loop happens to make it then bounce to the loop section).


Add application.yaml support

Hi.
I might be mistaken but it seems to me that application.yaml files are ignored thus some auto-configured beans are missing when building a native image. Those are available when running on JVM locally or in container.
I could not find any mention of yaml support or not in the documentation except for the flag to remove support so I wanted to clarify (and eventually request support for this).
To avoid the question, I did not have the flag to remove support. Here is my plugin config:
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <image>
                        <builder>paketobuildpacks/builder:tiny</builder>
                        <env>
                            <BP_BOOT_NATIVE_IMAGE>true</BP_BOOT_NATIVE_IMAGE>
                            <BP_BOOT_NATIVE_IMAGE_BUILD_ARGUMENTS>
                                --enable-all-security-services
                                -H:+ReportExceptionStackTraces
                                -H:+PrintAnalysisCallTree
                                --enable-https
                                --enable-http
                            </BP_BOOT_NATIVE_IMAGE_BUILD_ARGUMENTS>
                        </env>
                    </image>
                </configuration>
            </plugin>

So, did I miss something?
Thanks for clarification.

Hum, indeed, it seems we have a regression here. I will dig into that bring back a sample to make sure this is tested.

Hum, indeed, it seems we have a regression here. I will dig into that bring back a sample to make sure this is tested.

@grekier In fact we just missed application.yaml resource configuration, only application.yml was configured. Could you confirm you are using application.yaml in your sample?

@grekier In fact we just missed application.yaml resource configuration, only application.yml was configured. Could you confirm you are using application.yaml in your sample?

Hi @sdeleuze
Thanks for the quick answer. And yes, I was using yaml extension on my files.

Hi @sdeleuze
Thanks for the quick answer. And yes, I was using yaml extension on my files.


include profiles for Xamarin.forms

per this answer: https://stackoverflow.com/a/31959866/26877
Xamarin.Forms 1.3:
portable-win+net45+wp80+MonoAndroid10+MonoTouch10
Xamarin.Forms 1.4
portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10

Thanks for the issue, Jeremy!
I do not include the Mono* and Xamarin* NuGet targets in my profile list, for several reasons:

They've never been documented.
In the past, they've changed without warning.
They only exist on your computer if you install additional software (e.g., Xamarin Studio).
Xamarin works just fine without it.

Profile 78 and Profile 259 are both included in the table already, just without the Xamarin extensions that don't add any benefit.


Fix ROS melodic release date

ROS melodic was released on May 23rd, 2018, not Jan 15th, 2011: http://wiki.ros.org/melodic
The page should probably also mention that Noetic was the last release of ROS1 and all future development will be with ROS2, but that is a separate issue.

Thanks a lot 💯!


Invalid SQL generated for SQLite primary key w/AUTOINCREMENT

From<EMAIL_ADDRESS>on February 26, 2010 22:28:52
The designer generates invalid SQL for SQLite for tables containing a
PRIMARY KEY constraint with AUTOINCREMENT. SQLite permits the AUTOINCREMENT
keyword only as a column constraint, and then it must follow "PRIMARY KEY". http://www.sqlite.org/lang_createtable.html Pasting the attached XML into the designer generates a table which gives
this SQL which gives a syntax error in SQLite:
CREATE TABLE foo (
id INTEGER NOT NULL AUTOINCREMENT ,
PRIMARY KEY (id)
);
It seems like this is the only "PRIMARY KEY AUTOINCREMENT" syntax that will
work:
CREATE TABLE foo (
id INTEGER PRIMARY KEY AUTOINCREMENT
);
The documentation says the SQL below is a syntax error, and experimentation
confirms that:
CREATE TABLE foo (
id INTEGER,
PRIMARY KEY AUTOINCREMENT (id)
);
This is also a syntax error:
CREATE TABLE foo (
id INTEGER,
PRIMARY KEY  (id) AUTOINCREMENT
);
It's a great tool; thanks!
Philip Semanchuk
Attachment: pk_error_demo.xml
Original issue: http://code.google.com/p/wwwsqldesigner/issues/detail?id=65

From ondrej.zara on February 27, 2010 04:27:19
Status: Accepted

From<EMAIL_ADDRESS>on February 27, 2010 06:39:40
My example of working syntax was a little misleading. I should clarify that the
PRIMARY KEY syntax also accepts NOT NULL. These are valid, in addition to the syntax
shown above:
CREATE TABLE foo (
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL
);
CREATE TABLE foo (
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT
);

From ondrej.zara on February 28, 2010 01:03:01
Fixed in r79 . Please test and let me know if further adjustments are necessary.
Status: Fixed
Owner: ondrej.zara

From<EMAIL_ADDRESS>on March 01, 2010 06:08:12
Works for me. Thanks for the quick fix.


ResolvePackageNotFound: nupack=3.0.6

Hi,
I tried to do a fresh install from environment.yml on my M1 mac, but ran into a bug.
ResolvePackageNotFound:
  - nupack=3.0.6

I made the environment without nupack, and tried to install nupack subsequently, but got another error.
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support

ERROR: Could not find a version that satisfies the requirement nupack==3.0.6 (from versions: none)
ERROR: No matching distribution found for nupack==3.0.6

nupack needed to be installed separately. I registered for an account at nupack.org, and downloaded and untarred nupack 3.0.6.
I did make in the root directory as is called for by the NUPACK 3.0 User Guide.
It appears that 3.0.6 has no python package, only executables. I added those executables to my $PATH.
I then ran structureCheck.py with the example file, with the same command as is in the README.
$ python OligoMiner/structureCheck.py -f OligoMiner/ExampleFiles/3_probes.bed -t 0.4
***********************************************************
NUPACK ERROR: could not run prob command with these inputs.
***********************************************************
***********************************************************
NUPACK ERROR: could not run prob command with these inputs.
***********************************************************
***********************************************************
NUPACK ERROR: could not run prob command with these inputs.
***********************************************************
***********************************************************
NUPACK ERROR: could not run prob command with these inputs.
***********************************************************
***********************************************************
NUPACK ERROR: could not run prob command with these inputs.
***********************************************************
***********************************************************
NUPACK ERROR: could not run prob command with these inputs.
***********************************************************
***********************************************************
NUPACK ERROR: could not run prob command with these inputs.
***********************************************************
***********************************************************
NUPACK ERROR: could not run prob command with these inputs.
***********************************************************
***********************************************************
NUPACK ERROR: could not run prob command with these inputs.
***********************************************************
***********************************************************
NUPACK ERROR: could not run prob command with these inputs.
***********************************************************
***********************************************************
NUPACK ERROR: could not run prob command with these inputs.
***********************************************************
***********************************************************
NUPACK ERROR: could not run prob command with these inputs.
***********************************************************
structureCheck predicted that 0 of 12 / 0.0000% candidate probes are predicted to have a linear structure with p>0.4000 at 47C in 390 mM Na+ and 50% formamide
Program took 0.080418 seconds

Hi,
Unfortunately NUPACK is in the process of moving to a subscription-only model, and as a result conda/pypi support has been phased out. You will need to compile and valid a local install of NUPACK in order to run structureCheck.py
Please test the NUPACK executables using bash. They should work after successful compilation, provided they are in your path.

Hi alexlenail,
You added those executables to your $PATH. But maybe you did not add NUPACKHOME path.
Please export NUPACKHOME=/path/to/nupack
Then test NUPACK by using: prob  Enter sequence: Any sequence like AAAATT Enter structure: ......
If it worked then all will be fine.
Just sloved


Workspace files aren't visible to guests

Issue Type: Bug
I'm trying to make a session with a teammate but everytime he tries to create a new collaboration session and then I joined, I am unable to see the workspace folders. The main opened folder it shows empty and I can open and close it, but there is no content inside. I have tryed rejoined with my account but nothing changes. In fact, when I start a collaboration session, he can interact with my workspace properly, it is only and issue with my extension.
Extension version: 1.0.2274
VS Code version: Code 1.45.1 (5763d909d5f12fe19f215cbfdd29a91c0fa9208a, 2020-05-14T08:27:35.169Z)
OS version: Windows_NT x64 10.0.18362

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz (8 x 1896)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: disabled_offprotected_video_decode: enabledrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledviz_display_compositor: enabled_onviz_hit_test_surface_layer: disabled_off_okwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
7.88GB (0.79GB free)

Process Argv

Screen Reader
no

VM
0%

Hey @LeonardoZernes , is it possible that the contents of his folders are being .gitignored?

No, the gitignore is the same in the both devices because we all got the same git version of the project. This bug only happens in his device when we try to create the session on his one. But in mine, it works perfectly. We will try to report logs if it’s possible. Thanks for the feedback.

Yeah, that's very odd! Logs would maybe be helpful. Thanks!

logs.zip
Here are the logs for the problem! I am sorry for the delay, hope it will be usefull. I will wait for the answer.

Thanks @LeonardoZernes ! Looks like it might be a permissions issue. Any chance that the folders/files you're trying to share have restrictions on them?

@daytonellwanger What kind of permissions did you have in mind for this issue? I'm just wondering if we can try to repro this issue on our end?

@daytonellwanger What kind of permissions did you have in mind for this issue? I'm just wondering if we can try to repro this issue on our end?

@lostintangent I think when I reviewed the logs I saw the file system throwing with permissions issues when we were trying to read the files - so permissions on the file at the OS level that would restrict access by the agent process.

@lostintangent I think when I reviewed the logs I saw the file system throwing with permissions issues when we were trying to read the files - so permissions on the file at the OS level that would restrict access by the agent process.

we have similar issue but with an existing workspace with ~15 folders, on establishment of the remote session it only ever shares the first folder which is of no use as there are multiple workspace folders required for collaboration, both ends are signed in with a microsoft account so not using anonymous/etc and full trust enabled

I'm seeing the same thing. Looking into it now.. Sorry for the delayed response.

Should be fixed in the latest release 🎉


chore: Remove remnants of psalm

As far as I can tell the psalm things are not needed anymore and the bin/static-analyze.sh script has been moved to a composer script.

@aragon999 thanks for the contribution!


bug: treesitter isn't enabling highlight and indent on startup

Did you check docs and existing issues?

[X] I have read all the lazy.nvim docs
[X] I have searched the existing issues of lazy.nvim
[X] I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)
0.9.1
Operating system/version
Ventura 13.5
Describe the bug
Treesitter is working if I manually run :TSToggle highlight however I have set it up in the opts section of the Lazy install to enable by default?
Anyone able to elucidate me as to how I should be setting it up to gain this functionality? Configuration below:
-- Plugins
require('lazy').setup({
  'easymotion/vim-easymotion',
  'folke/trouble.nvim',
  'folke/twilight.nvim',
  'mattn/emmet-vim',
  'tpope/vim-fugitive',
  'tpope/vim-surround',
  {
    "folke/tokyonight.nvim",
    lazy = false,
    priority = 1000,
    opts = {},
  },
  {
    'nvim-treesitter/nvim-treesitter',
    opts = {
      ensure_installed = { 'c', 'graphql', 'html', 'javascript', 'jsdoc', 'json', 'jsonc', 'lua', 'markdown', 'rust', 'svelte', 'tsx', 'typescript', 'vim', 'yaml' },
      highlight = { enabled = true },
      indent = { enabled = true}
    }
  },
  {
    'nvim-telescope/telescope.nvim', tag = '0.1.2',
    dependencies = { 'nvim-lua/plenary.nvim' }
  }
}, {
 defaults = { lazy = false },
 install = {
   missing = true,
   colorscheme = { "tokyonight" }
 },
 checker = { enabled = true },
 change_detection = {
  notify = false,
 },
 performance = {
  rtp = {
   disabled_plugins = {
    'gzip',
    'matchit',
    'matchparen',
    'netrwPlugin',
    'tarPlugin',
    'tohtml',
    'tutor',
    'zipPlugin',
   },
  },
 },
})

Steps To Reproduce

install lazy
install treesitter and enable highlight

Expected Behavior
Code files to load with highlight enabled by default without having to run TSToggle
Repro
-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
  "folke/tokyonight.nvim",
  -- add any other plugins here
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

vim.cmd.colorscheme("tokyonight")
-- add anything else here

Your config is missing the build step

this is completely unrelated
I think the issue here is that with opts lazy.nvim tries to find a setup function which in most cases is in the top level module. Here it is under nvim-treesitter.configs so you should call the setup function yourself inside config just like  abeldekat pointed out

Hello @max397574,
You are quoting me here:

Your config is missing the build step

When you say that this is completely unrelated your strong wording suggests that I say it is.  Read my comment carefully please. I am only stating that the build step is missing. It's an important part when configuring treesitter.

and I say it isn't
you don't need this command in the build step and treesitter can work fine
you can just run this command manually from time to time

It's working fine without the build command, however are there any benefits to adding the build command?
I've got it working via defining the configuration in the main body of the Lua file as it doesn't seem to be working within the Lazy setup function. This will have to suffice for now until I can figure out how to fix such a bug.

with the build commands the parser will be updated when you update the plugin
you should put it into the config function not setup
for me this is working perfectly fine https://github.com/omega-nvim/omega-nvim/blob/main/lua/omega/modules/treesitter.lua#L129-L139

@max397574,
I don't mind being corrected, making mistakes is perfectly natural.
It's your tone when jumping in that I find hard to take.
This happened earlier, see my response to your comment in issue #982.

I don't really see what's wrong with my tone. I just write directly and as clear as possible what I think is the case. I explained my reasoning above and as I said I don't want to discuss this at all an especially not here.

@max397574 yeah this is where I defined config = function()... I just mislabeled it in my previous comment.


[🐞] Styled Input component missing name props

Which package is affected?
Styled Kit
Describe the bug
There is a missing name props for styled Input component hence not able to send data to routeAction$
Reproduction
packages/kit-styled/src/components/input/input.tsx
Steps to reproduce
No response
System Info
Not Required

Additional Information
No response

https://github.com/qwikifiers/qwik-ui/pull/820


Boilerplate: add cssnext features example

Following #617
not sure about the file naming and position though

Thanks a lot!
I will wait for another feedback to be sure that's the right approach we want to recommend.
If it's ok for others we can probably merge this :)

there must be a better that could also include mixin from the same file ?

i'll add an entry to the FAQ instead of making it default


[WIP] Use pow instead of ReversibleGate/ExtrapolatableGate

Expand cirq.inverse to attempt val**-1 before reversing/inverting items in a list.
Add cirq.extrapolate which calls val**factor but with controllable failure behavior.
Rewrite all gates to have a __pow__ method instead of inverse/extrapolate_effect/has_inverse/etc

This is a "big glob of changes" tracking PR for https://github.com/quantumlib/Cirq/issues/943 . I will pull off more sensible pieces for actual PRs.

Obsoleted by https://github.com/quantumlib/Cirq/pull/1021


Select and Autocomplete: Add ListClass

Description
This api needed to access internal list in the select and autocomplete. Needed to reach list elements like list scrollbar etc.
How Has This Been Tested?

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

[ ] The PR is submitted to the correct branch (dev).
[ ] My code follows the code style of this project.
[ ] I've added relevant tests.

Thanks!


break up the gigantic loops; a few misc fixes

To show the meaningful diffs, it's better to be reviewed after https://github.com/Twisted-Fields/acorn-precision-farming-rover/pull/6. I'll add inline comments at that point.
It breaks the main loops of remote_control_process.py (nearly 1000 lines of code!) and master_process.py into more manageable methods each within 100 lines. Shorter methods are easier to reason about and have proper level of abstraction.
To make sure I didn't break things, I ran the new and old code side by side, and didn't see difference on the behaviour, except a few bugs of the old code which have been fixed in this PR. I wasn't able to make acorn really move in the simulation with this PR, due to a problem exists in the old code too(travel_speed is always 0), but after hardcoding the default nav parameter travel_speed, the simulated Acorn could rover could follow any path back and forth. Some bugs may be revealed only when running on real hardware, though I'd be surprised if there are many.

Thank you! This sounds promising. I am still working on a big PCB project but do let me know if any of these are blocking you.

closed in favour of https://github.com/Twisted-Fields/acorn-precision-farming-rover/pull/7


Add support for downloading audio from Callin

Checklist

[x] I'm reporting a new site support request
[x] I've verified that I'm running youtube-dl version 2021.12.17
[x] I've checked that all provided URLs are alive and playable in a browser
[x] I've checked that none of provided URLs violate any copyrights
[x] I've searched the bugtracker for similar site support requests including closed ones

Example URLs

Single audio file: https://www.callin.com/episode/fcc-commissioner-brendan-carr-on-elons-PrumRdSQJW
Single audio file: https://www.callin.com/episode/episode-81-elites-melt-down-over-student-debt-lzxMidUnjA

Description
Pretty self-explanatory, the site hosts audio tracks of call-in shows that you can listen to after the fact. Compare Soundcloud as another example of an extractor for audio-only content.

The page uses NextJS. Metadata and what appears to be a valid m3u8 (although the URL contains the word preview) can be found in the hydration JSON.

Hey there! I'm currently a student in college and as part of my final project, I'm required to make contributions to an open-source project and write a report on my experiences (and inform the maintainers) . Could I take this issue?

@JohnnySunUmich I can't speak for the project, but I can't imagine any reason why you couldn't take this issue -- it was filed a while ago and there's no sign of anyone else working on it.
As the issue reporter, I would certainly appreciate it!

So is this all the same class "volunteering" to solve open-source issues?
@JohnnySunUmich, please go ahead. Do note the general points in the advice I gave here.
For this specific issue, what I'd suggest is to back-port the method InfoExtractor._search_nextjs_data() from yt-dlp, which is under the same licence: you'll have to adjust the signature to make it work in Python 2, as I'll discuss below. Then you can navigate the JSON returned by that method to populate the info_dict that the extractor has to return.

The mandatory and optional elements are listed in the class documentation comments in InfoExtractor.
There are various utility functions that you should use to ensure the correct sort of value (xxx_or_none()) and to get values that may sometimes be absent (try_get() and now traverse_obj()).
Look at existing extractor code for examples.

Python 3 introduced the dummy argument * to mean that subsequent arguments can only be passed by keyword, or equivalently that there are no more positional parameters.
A cross-version equivalent is like this:
# Python 3 only
def foo(arg1, arg2, *, kwonly1=val1, kwonly2=val2, **kwargs):
    ...

#Python 2+3
def foo(arg1, arg2, **kwargs):
    # instantiate keyword-only args
    kwonly1 = kwargs.pop('kwonly1', val1)
    # or if kwonly2 is going to be read and passed down
    # in kwargs to another function (eg `fatal` in the mentioned method)
    if 'kwonly2' in kwargs:
        kwonly2 = kwargs.get('kwonly2')
    else:
        kwargs['kwonly2'] = kwonly2 = val2
        kwargs = compat_kwargs(kwargs)
    ...

You can see the benefit of the new syntax, but that doesn't make it backward-compatible. Also, the one (?) person trying to run yt-dl on Python 2.6 will thank you for passing an updated kwargs using compat_kwargs()!

A cross-version equivalent is like this:

I use * isn yt-dlp because I can - it's in no way essential to the working of the code. Rather than the hack with kwargs, I'd recommend to just remove the * and mention in docstring that it is a keyword only argument (see _download_webpage_handle)

@dirkf Thank you so much for your detailed advice! Will keep you updated if there's any progress

What are you saying, "hack"?
There may also be this issue:
def foo(arg1, arg2, kwonly1='val1', kwonly2='val2', **kwargs):
    pass

foo(1, 2, 'val1_a', kwonly1='val1_b')
Traceback (most recent call last):
  File "<input>", line 1, in <module>
TypeError: foo() got multiple values for keyword argument 'kwonly1'

Hi @dirkf ! I have a PR ready, and the tests pass locally. Could you please review it? Our course policy states that if my change is accepted into the code base before 11:59pm 12/12/2022 (GMT-5), I can receive extra credit. So if you could merge it before this time, I would really appreciate that :))) Thank you for your great help! I will follow up immediately if there's any change requested.


Swap current window with master keeps only one master window when there were multiple masters before.

Swap current window with master keeps only one master window when there were multiple masters before.

Increase the number of master windows
Swap non master window with master ==> only one master window is kept.

let's say there is window a, b, and c in the master. Which location should be the natural choice for swapping a non master window d with?

It is fine for me if it swaps with the first master (It might be nice to be able to swap it with a specific master).
Suppose you have this layout with 2 master windows and you are in window 3 and swap the current window with master:
############## ##############
#            # #            #
#            # #  window 3  #
#            # #            #
#  master 1  # ##############
#            # #            #
#            # #  window 4  #
#            # #            #
############## ##############
#            # #            #
#            # #  window 5  #
#            # #            #
#  master 2  # ##############
#            # #            #
#            # #  window 6  #
#            # #            #
############## ##############

You get this layout:
############## ##############
#            # #  window 2  #
#            # #  (old m1)  #
#            # ##############
#            # #  window 3  #
#            # #  (old m2)  #
#            # ##############
#  master 1  # #  window 4  #
#  (old w3)  # #  (old w4)  #
#            # ##############
#            # #  window 5  #
#            # #  (old w5)  #
#            # ##############
#            # #  window 6  #
#            # #  (old w6)  #
############## ##############

Instead of this one:
############## ##############
#            # #            #
#            # #  window 3  #
#            # #  (old m1)  #
#  master 1  # ##############
#  (old w3)  # #            #
#            # #  window 4  #
#            # #            #
############## ##############
#            # #            #
#            # #  window 5  #
#            # #            #
#  master 2  # ##############
#            # #            #
#            # #  window 6  #
#            # #            #
############## ##############


[CT-1624] Remove dead code from tests/unit/utils.py

We are consolidating the Parsed and Compiled node classes in dbt-core and renaming core/dbt/contracts/graph/parsed.py to core/dbt/contracts/graph/nodes.py.  The former file is referenced in tests/unit/utils.py, but none of those functions appear to be used.
Remove the unused functions from tests/unit/utils.py.

These changes caused some errors in testing, so I'm addressing this ticket now to get us back on the rails.
Thanks Gerda for the explanation here!


gImageReader: 3.4.0 -> 3.4.1

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/manisandro/gImageReader/releases.
meta.description for gImageReader is: A simple Gtk/Qt front-end to tesseract-ocr
meta.homepage for gImageReader is: https://github.com/manisandro/gImageReader
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 3.4.1 with grep in /nix/store/5gz6q6s5vyb1lwyfbdxnbrx4h0w2w2v7-gImageReader-3.4.1
found 3.4.1 in filename of file in /nix/store/5gz6q6s5vyb1lwyfbdxnbrx4h0w2w2v7-gImageReader-3.4.1

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
gImageReader

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/5gz6q6s5vyb1lwyfbdxnbrx4h0w2w2v7-gImageReader-3.4.1 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A gImageReader https://github.com/r-ryantm/nixpkgs/archive/49ac11d92e93a7cdecbf460b2d591a7e4405a1cf.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/5gz6q6s5vyb1lwyfbdxnbrx4h0w2w2v7-gImageReader-3.4.1
ls -la /nix/store/5gz6q6s5vyb1lwyfbdxnbrx4h0w2w2v7-gImageReader-3.4.1/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

gImageReader

Maintainer pings
cc @teto for testing.

The interface has well evolved since last time I used it. I could run it fine though I dont have a scanner so I cant test it completely. Merging anyway


docs(guides) add clarifying tree shaking and sideEffects section

Based on https://github.com/webpack/webpack/issues/9337
Formatted, corrected grammar, amended the text style to be consistent with the docs, added links to resources.

@sokra commited both suggestions! Thanks for catching those

Thanks!


Can't install to VS2019 nor VS2022

Describe the bug
For those of you who are not able to install this extension to VS2019 nor VS2022, here's two options
To Reproduce

Download the source code
open it on your VS copy
modify the manifest file and change the Prerequisite for 'Microsoft.VisualStudio.Component.CoreEditor' from 16.0, to 16.0,18.0
change the product version from 1.0 to 1.0.10 at least (this is to avoid VS Extension Manager to notify of new version online)
save the manifest file and compile the solution.
close VS
open Windows Explorer and navigate to the folder where you save the solution and look for src\bin\Debug folder
run the VSIX file and follow the on-screen instructions
Enjoy!!!!

Download the .zip file attached to this, decompress it and run the VSIX file to install
Enjot!!!

Additional context
HtmlForJavascript.zip
All credits goes to Mads.

@ITExperto Thanks for this.  It now installs without error.
However, it doesn't function as it should.  That is, it does not colorize the HTML string within JavaScript code.  See screenshot below.

Any thoughts?


please adonisjs does not log error

Brief
Structuring The Issue
getting internal server error, but adonis doesn't log error even when i purposely created one, how do i see my errors please

Hey @nwashangai! 👋
Please, follow the guide into the readme to create your issue.
https://github.com/adonisjs/adonis-framework#issues--pr

@RomainLanz please help me, am just totally new to adonisjs and am really having big problem working around.
My problem is that syntax and program errors doesn't show up in the console but when I send a request from the clients, I get error 500.
Secondly I have trying to create a login function, but when I try to generate token using the auth.attempt(uid, password), I get an error message which says that the author is not defined
Now I have checked my providers and in auth.js, authenticator has been set to her,
Do I need to use() the auth at the top or do I need to pass the auth in the login function.
I just want to be able to login successfully using token.
I have checked so many login examples but none is actually working for me, also the await/yield keywords gives error in my case
Thank you so much, am anticipating for a good reply.

*auth is not defined

*jwt instead of "her"

It's not because you are new to a framework that shouldn't follow the rules to post an issue. 😛

My problem is that syntax and program errors doesn't show up in the console but when I send a request from the clients, I get error 500.

What's the error you have with the 500?

Secondly I have trying to create a login function, but when I try to generate token using the auth.attempt(uid, password), I get an error message which says that the auth is not defined

I believe you forget to extract the auth module from the context that your controller receive.
Take a look at the example I provide bellow.

I have checked so many login examples but none is actually working for me, also the await/yield keywords gives error in my case

You can find a real login example in the adonis-blog-demo application.

Thanks, but from the example you referenced me to, do I need to really need pass the session to the function, since am using jwt,
I mean should I replace
async store({auth, request, response, session })
With
async store({auth, request, response, jwt})

My error with code 500 is internal server error

I would recommend you to re-read the documentation about authentication.
http://adonisjs.com/docs/4.1/authentication
Also, please, switch to the forum or to the Discord Server to ask those type of question.
I'm closing this issue since it's not a bug or a feature request.


Having issues with Phenomic integration to Netlify CMS

I have been trying to set up Netlify with my Phenomic project and found some instructions at https://phenomic.io/docs/usage/cms/netlify/.

I created an "admin" folder under the root of my project
Copied and pasted the index.html code into a file of the same name
Configured my "config.yml" as follows

backend:
  name: github-api
  repo: nickeblewis/headforcode # owner/repo
  branch: master # master

public_folder: "content"
media_folder: "content/assets"

collections:
  - name: "post"
    label: "Post"
    folder: "content/blog"
    create: true
    fields:
      - {label: "Title", name: "title", widget: "string"}
      - {label: "Body", name: "body", widget: "markdown"}
    meta:
      - {label: "Publish Date", name: "date", widget: "datetime"}

I also set up my webpack file as instructed too

- What is the current behavior?
Having set up my authentication, I committed my changes and pushed them to Netlify. The first time I visited https://headforcode.netlify.com it displayed the user interface but was unable to load my posts.
Strangely now when I try, the CMS doesn't load at all??? Weird
- Please mention your node.js, and operating system version.
6.9.3

Poke @xuopled

Hi @nickeblewis & @MoOx.
Your config looks perfect.
This doc you mentioned is pointing to the Ember's version of the CMS. We're currently porting it over to React, and we're publishing the assets right now.
As soon as I get them, I'll ask you to change the URLs and try again.

We're now publishing the Netlify to npmjs and unpkg. Unpkg is a CDN for javascript modules, and it let's you point to semantic versions of files (so backwards-compatible bug fixes will loaded as they're made available).
Please point change the asset URLs in your HTML file for:
<EMAIL_ADDRESS><EMAIL_ADDRESS>

Ok thanks @cassiozen - going to give that a go now and shall let you know how I get on.

<!doctype html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />

    <title>Content Manager</title>
    <link rel="stylesheet"<EMAIL_ADDRESS>/>
  </head>
  <body>
    <script src="//cms.netlify.com/assets/vendor.js"></script>
    <script<EMAIL_ADDRESS>  </body>
</html>

I have now changed it to the above, do I still require the vendor.js file?

@cassiozen thanks for this, still having some teething problems. I do now see a spinner with loading configuration message. My browser console reports that the vendor.js file cannot be found, so guessing that I can probably do away with that. It also reports:
Uncaught (in promise) Backend not found: github-api
Please advise...

Humm, try changing github-api to simply "github". I guess this was misspelled in the porting...

Oh, and you don't need this vendor asset:
<!doctype html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Content Manager</title>
    <link rel="stylesheet"<EMAIL_ADDRESS>/>
  </head>
  <body>
    <script<EMAIL_ADDRESS>  </body>
</html>

Progress!! I now can see the CMS UI, it prompted me to authenticate with Github and that worked. The UI shows with a spinner in the middle and a message stating that it may take several minutes.... however it never finishes, just gets stuck in a loop...
Anything else I can try?

Is your content really big? Like, hundreds and hundreds of files of content?
On the console, does it show any errors?

Yes it does, we are seeing a 404 error and it's because it is trying to find - https://api.github.com/repos/nickeblewis/headforcode/contents/content/blog?ref=master
Now the problem has to be the "contents" part of the URL, if I took that out, I think this will then work

and nope, my content isn't too large yet, less than 100 pages

The "/contents" is part of the git api, so it should be there.
Is this the Repo you're using? https://github.com/nickeblewis/headforcode
I'll try running it here...

Yes - that is the correct repo

Oh, wait a minute. I guess It's a configuration problem  -  You're pointing to a /content/blog folder, but there isn't such folder.
Maybe it should be /content/posts instead?

Ah yes - you are right - Ok, we have moved on now, the error no longer occurs but in the browser console a new error is being trapped:
cms.js:68 Uncaught (in promise) TypeError: Cannot read property 'split' of undefined(…)

We have a "card" interface in place. It tries to infer what content to show, but it is filing for some use cases (including yours).
Please try adding a "card" configuration. I got it working with this config for your project:
backend:
  name: github
  repo: nickeblewis/headforcode # Path to your Github repository
  branch: master # Branch to update (master by default)

public_folder: "content"
media_folder: "content/assets" # Folder where user uploaded files should go

collections: # A list of collections the CMS should be able to edit
  - name: "post" # Used in routes, ie.: /admin/collections/:slug/edit
    label: "Post" # Used in the UI, ie.: "New Post"
    folder: "content/posts" # The path to the folder where the documents are stored
    sort: "date:desc" # Default is title:asc
    create: true # Allow users to create new documents in this collection
    slug: "{{slug}}"
    fields: # The fields each document in this collection have
      - {label: "Title", name: "title", widget: "string"}
      - {label: "Body", name: "body", widget: "markdown"}
    meta: # Meta data fields. Just like fields, but without any preview element
      - {label: "Publish Date", name: "date", widget: "datetime", format: "YYYY-MM-DD hh:mm:ss"}
    card: {type: "alltype", text: "title"}

@cassiozen Thank you for the new url, I will update the Phenomic doc

Fantastic - now got it working and shall hook it up to multiple collections next, as blogs are one and I have another called courses.... thanks for your help!


Slightly simplify LastCommitCache

The LastCommitCache code is a little complex and there is unnecessary
duplication between the gogit and nogogit variants.
This PR adds the LastCommitCache as a field to the git.Repository and
pre-creates it in the ReferencesGit helpers etc. There has been some
simplification and unification of the variant code.
Signed-off-by: Andrew Thornton<EMAIL_ADDRESS>

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@599ae09). Click here to learn what that means.
The diff coverage is 58.33%.

@@           Coverage Diff           @@
##             main   #20444   +/-   ##
=======================================
  Coverage        ?   46.94%
=======================================
  Files           ?      976
  Lines           ?   135267
  Branches        ?        0
=======================================
  Hits            ?    63499
  Misses          ?    63994
  Partials        ?     7774

Impacted Files
Coverage Δ

modules/git/commit.go
57.14% <0.00%> (ø)

routers/web/web.go
86.50% <0.00%> (ø)

modules/git/last_commit_cache_nogogit.go
12.50% <33.33%> (ø)

modules/git/log_name_status.go
60.51% <33.33%> (ø)

modules/git/last_commit_cache.go
58.06% <53.57%> (ø)

services/repository/cache.go
40.90% <57.14%> (ø)

routers/api/v1/utils/git.go
56.52% <60.00%> (ø)

modules/context/repo.go
51.79% <100.00%> (ø)

modules/git/commit_info_nogogit.go
58.33% <100.00%> (ø)

modules/git/notes_nogogit.go
63.07% <100.00%> (ø)

... and 4 more

Help us with your feedback. Take ten seconds to tell us how you rate us.

make lgtm work


Add OCA Bundle to the published site to enable the paths to work from the JSON files to the bundle

We want the BC Wallet (and other wallets) to use the GH Pages JSON files, so they can be generated vs. pushed to the repo.  To do that, the OCA Bundles need to also be published to the GH Pages site. Currently they are not.
Update the genMkdocs script to add the Bundles to the repo.

Addressed in #123


Illegal instruction (core dumped) at sox/src/adpcm.c:131

🐛 Describe the bug
Hi, I've been fuzzing torchaudio project with sydr-fuzz and found crash at sox/src/adpcm.c:131.
How to reproduce

Build docker from here and run the container:

sudo docker build -t oss-sydr-fuzz-torchaudio .
sudo docker run --privileged --rm -v `pwd`:/fuzz -it oss-sydr-fuzz-torchaudio /bin/bash

Run the target on this input: crash-6fda0b654b9c4b1672c5bf5ab8126403ca1a2446

/load_audio_afl crash-6fda0b654b9c4b1672c5bf5ab8126403ca1a2446

You will see the following output:

Illegal instruction (core dumped)

Versions
torchaudio version: 30afaa9b2f460ca3baf6ac177bce4f6b5da8b99c
pytorch version: 0f1621df1a0a73956c7ce4e2f72f069e610e0137
sox version: 14.4.2
OS: Ubuntu 20.04

#3497 has landed, and now torchaudio links to sox dynamically. We no longer compile the specified code by ourselves and therefore this issue is now irrelevant.
Feel free to fuzz the code under torchaudio/csrc, and report issues there. Thanks,


Dataview dynamic data is not rendered in daily and weekly view

Describe the bug
Maybe i'm pushing this elements to the limit and this behaviour it's as is by design, but tinkering with templates i was trying to automatically schedule a task for the current day by using the [scheduled:: yyyy-MM-dd] and dataview function to catch the note title which has the day in it.
Te task is correctly picked up but while the note view render the scheduling correctly the day and week views show the dataview query, as shown in the screenshot below
To Reproduce
Create with a name of a day in this format yyyy-MM-dd
Paste this content:
- [ ] 08:00 - 09:00 Task `="[scheduled:: " + dateformat(date(this.file.name), "yyyy-MM-dd") + "]"`
- [ ] 09:00 - 10:00 Task `="⏳ " + dateformat(date(this.file.name), "yyyy-MM-dd")`
- [ ] 10:00 - 11:00 Task [scheduled:: 2023-12-01]

Expected behavior
To have in the dataview the same rendering of the note view
Screenshots

Additional context

Obisian v1.4.16
Day Planner v0.16.0

I would be happy to help but i don't know where to start

The tasks are picked up correctly because they are in a daily note, not because they have the computed property.
How computed props are displayed in time blocks is controlled by Obsidian's own API. You can create a feature request in their repo: https://github.com/obsidianmd/obsidian-api/issues

This is a very rare use case, and it'll likely take a lot of effort to resolve, so closing this for now.


New order type with price determined by (a function of) an external feed

Create a new order type, whose price will be determined by (some function of) an external price feed
The idea is that a user may either supply their own price feed for this, allowing for the price of an order to be changed (possibly) cheaper and faster, or the user can choose to piggyback on (and trust) someone else's feed (or medianizer, etc.), in which case they could potentially avoid spending any gas at all in updating the price.
For simplicity, we could restrict to functions of the form λx. x + spread, which may cover the majority of use cases for this.
To protect the order taker, to take such an order, the taker passes in the "expected" value of the function, to make sure that the taker has consented to the order price. If the "expectation" argument and the function, feed don't match, then the take fails. This prevents surprises, including a malicious bait-and-switch.
As @dbrock suggested, the order could just use the value resulting from calling an arbitrary maker-specified contract, presumably meaning that the maker would have to deploy such a contract to go with the order (could be helped in UI). Thus we would abstract away the "arbitrary function" part. Or, to keep things simple, just restrict to affine functions of the form λx. x + spread, which may cover the majority of use cases for this.

While manageable on the non-order matching version of Oasis, this is probably not feasible for the Oasis with on-chain order matching. :|

Definitely support this- when you are trading a stablecoin that is related to a fiat value - orders need to be tied to pricefeeds if you want people to leave large orders on the books. Its too risky to make a large order unless you have a bot or can monitor directly, which isn't really realistic.  Bots also would require high gas costs

I don't see how to implement this with a new ordertype, but what if the whole orderbook was represented as the current price plus or minus some spread?

Yes - that would be great
On Sun, Aug 6, 2017 at 5:42 AM, Joshua Pritikin<EMAIL_ADDRESS>wrote:

I don't see how to implement this with a new ordertype, but what if the whole orderbook was represented as the current price plus or minus some spread?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/OasisDEX/oasis","title":"OasisDEX/oasis","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/OasisDEX/oasis"}},"updates":{"snippets":[{"icon":"PERSON","message":"@jpritikin in #318: I don't see how to implement this with a new ordertype, but what if the whole orderbook was represented as the current price plus or minus some spread?"}],"action":{"name":"View Issue","url":"https://github.com/OasisDEX/oasis/issues/318#issuecomment-320496400"}}}

@pimato

@peculiarity with order matching, this idea can't really work.

@livnev  I guess we can implement it in the oasis-direct though


Tasks should not be code-formatted to Test Cases

It seems that the default is code-formatting *** Task *** or even *** Tasks *** to *** Test Cases ***.
That doesn't seem right to me...

You're right, it's a bug. I see the problem already here: https://github.com/MarketSquare/robotframework-tidy/blob/69e407eb8efaa06e5c58b29d506891f312812e93/robotidy/transformers/NormalizeSectionHeaderName.py#L38 (I'm actually checking if header is task but I should make it case insensitive as it will not work with Task).

@fabioz Released new robotidy as 2.1.1


False positive SA0102

The following properties in my viewmodel are causing a false positive SA0102:
public string Copyright
{
	get
	{
		return FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location).LegalCopyright;
	}
}

public string Version
{
	get
	{
		return FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location).FileVersion;
	}
}

The following fix resolves the false positive:
public string Copyright
{
	get
	{
		var assembly = Assembly.GetExecutingAssembly().Location;
		return FileVersionInfo.GetVersionInfo(assembly).LegalCopyright;
	}
}

public string Version
{
	get
	{
		var assembly = Assembly.GetExecutingAssembly().Location;
		return FileVersionInfo.GetVersionInfo(assembly).FileVersion;
	}
}

I tried to repro this issue and couldn't. Just to check if I missed something, I copied the provided code and I could see the issue.
It appears that there is some strange character between GetExecutingAssembly and the following open parenthesis. Could you test again and confirm that this is the case?

That's right! Awesome stack overflow copy-paste error. Sorry about that.


AutoBangumi  | [2022-10-11 09:12:08,160] DEBUG:    Re-initializing context...
AutoBangumi  | [2022-10-11 09:12:08,161] DEBUG:    Re-initializing context...
AutoBangumi  | [2022-10-11 09:12:08,161] DEBUG:    Parsed user URL: ParseResult(scheme='', netloc='qBittorrent:8989', path='', params='', query='', fragment='')
AutoBangumi  | [2022-10-11 09:12:08,161] DEBUG:    Detecting scheme for URL...
AutoBangumi  | [2022-10-11 09:12:08,168] DEBUG:    Starting new HTTP connection (1): qbittorrent:8989
AutoBangumi  | [2022-10-11 09:12:08,339] DEBUG:    http://qbittorrent:8989 "HEAD / HTTP/1.1" 200 0
AutoBangumi  | [2022-10-11 09:12:08,340] DEBUG:    Using HTTP scheme
AutoBangumi  | [2022-10-11 09:12:08,341] DEBUG:    Base URL: http://qBittorrent:8989/
AutoBangumi  | [2022-10-11 09:12:08,343] DEBUG:    Starting new HTTP connection (1): qbittorrent:8989
AutoBangumi  | [2022-10-11 09:12:08,603] INFO:     Started server process [1]
AutoBangumi  | [2022-10-11 09:12:08,604] INFO:     Waiting for application startup.
AutoBangumi  | [2022-10-11 09:12:08,604] INFO:     Application startup complete.
AutoBangumi  | [2022-10-11 09:12:08,605] INFO:     Uvicorn running on http://<IP_ADDRESS>:7892 (Press CTRL+C to quit)
AutoBangumi  | [2022-10-11 09:12:08,797] DEBUG:    http://qbittorrent:8989 "POST /api/v2/auth/login HTTP/1.1" 200 3
AutoBangumi  | [2022-10-11 09:12:08,798] DEBUG:    Login successful
AutoBangumi  | [2022-10-11 09:12:08,799] DEBUG:    SID: c/ozfwOaIfeRENn/iQ70IhnCrQBq83wQ
AutoBangumi  | [2022-10-11 09:12:08,803] DEBUG:    http://qbittorrent:8989 "POST /api/v2/app/setPreferences HTTP/1.1" 200 0
AutoBangumi  | [2022-10-11 09:12:08,808] DEBUG:    http://qbittorrent:8989 "GET /api/v2/rss/items HTTP/1.1" 200 175
AutoBangumi  | [2022-10-11 09:12:08,809] INFO:     No feed exists, start adding feed.
AutoBangumi  | [2022-10-11 09:12:08,814] DEBUG:    http://qbittorrent:8989 "POST /api/v2/rss/addFeed HTTP/1.1" 200 0
AutoBangumi  | [2022-10-11 09:12:08,815] INFO:     Add RSS Feed successfully.
AutoBangumi  | [2022-10-11 09:12:08,815] INFO:     Rebuilding data information...
AutoBangumi  | [2022-10-11 09:12:08,816] INFO:     Start collecting RSS info.
AutoBangumi  | [2022-10-11 09:12:08,816] DEBUG:    URL: "http://mikanani.me/RSS/MyBangumi?token=lDT966heqvHLPFq7Q***************"
AutoBangumi  | [2022-10-11 09:12:08,816] DEBUG:    No connection adapters were found for '"http://mikanani.me/RSS/MyBangumi?token=lDT966heqvHLPFq7Q***************"'
AutoBangumi  | [2022-10-11 09:12:08,816] WARNING:  ERROR with Connection.Please check DNS/Connection settings

docker compose custom network 出错，已恢复正常

咋解决的,我也报这个DNS,实际上可以联网.但这个就是提示null


nopt dependency

Hi,
It looks like the code using nopt was removed in https://github.com/isaacs/node-touch/commit/3e06ea9fc5d6bfe52a661bfffef4c1d793dd4574
However, its still listed as a dependency, https://www.npmjs.com/package/touch?activeTab=dependencies, and nopt uses abbrev, so two extra dependencies are installed
I guess nopt can be removed from https://github.com/isaacs/node-touch/blob/master/package.json ?

Just stumbled upon this due to<EMAIL_ADDRESS>caused some strange error with the hash not matching when downloading this library in our Bazel build. Any chance we can get a patch version that removes the unused dependency?


FIX: Revising parallel execution and related housekeeping

This PR irons around the corners on top of #97.

The most striking issue is how useless (actually detrimental) is fitting in parallel:
Single thread:
Model fit (218370 voxels, 256 orientations) -<PHONE_NUMBER>6899921 s.

Multi-thread (16 threads):
Model fit (13648 voxels, 256 orientations) -<PHONE_NUMBER>0699953 s.
Model fit (13648 voxels, 256 orientations) -<PHONE_NUMBER>5700036 s.
Model fit (13648 voxels, 256 orientations) -<PHONE_NUMBER>3799962 s.
Model fit (13648 voxels, 256 orientations) -<PHONE_NUMBER>7600005 s.
Model fit (13649 voxels, 256 orientations) -<PHONE_NUMBER>1199848 s.
Model fit (13648 voxels, 256 orientations) -<PHONE_NUMBER>70001 s.
Model fit (13648 voxels, 256 orientations) -<PHONE_NUMBER>2500108 s.
Model fit (13648 voxels, 256 orientations) -<PHONE_NUMBER>5499936 s.
Model fit (13648 voxels, 256 orientations) -<PHONE_NUMBER>539992 s.
Model fit (13648 voxels, 256 orientations) -<PHONE_NUMBER>329997 s.
Model fit (13648 voxels, 256 orientations) -<PHONE_NUMBER>7100122 s.
Model fit (13648 voxels, 256 orientations) -<PHONE_NUMBER>4599975 s.
Model fit (13648 voxels, 256 orientations) -<PHONE_NUMBER>839999 s.
Model fit (13649 voxels, 256 orientations) -<PHONE_NUMBER>279996 s.
Model fit (13648 voxels, 256 orientations) -<PHONE_NUMBER>239998 s.
Model fit (13648 voxels, 256 orientations) -<PHONE_NUMBER>369997 s.

@arokem any suggestions of why DKI.fit_model takes about the same time (or even more) with 1/16 of the voxels?

I'll go ahead and merge -- let's follow up on the parallelization on the new issue.


Question - How to assemble checks as groups so that it is possible to show green, yellow or red blocks

For example in opsview this is possible: https://knowledge.opsview.com/storage/attachments/209-int2.png
It this also possible in uchiwa?

Thank you for opening this issue.
Unfortunately, there's currently no overview dashboard available in Uchiwa. There's an issue to track any progress made about it.
Otherwise, Sensu Enterprise Console offers a Heads Up Display (HUD) that could interest you.
Thanks


buttons are not well designed

Need better designed buttons

Buttons have been redesigned for 0.2.0 release.