Apply acornShim before browserify-derequire

This patch makes 'acorn/dist/acorn_loose' work properly in browsers.
Without this patch, I saw 'Uncaught Error: Cannot find module './acorn' in the browser console.

acorn_loose.js works fine for me in the browser. See for example http://marijnhaverbeke.nl/acorn/test/ . Are you sure there wasn't something else you were doing wrong?

Here is what I did to see the error.
$ mkdir TEST
$ cd TEST
$ npm install acorn

created two files:
a.html:
<script type='text/javascript' src='bundle.js' charset='utf-8'></script>

test.js:
var acorn = require('acorn/dist/acorn_loose');
var ast = acorn.parse_dammit('x=1;');
console.log(ast);

$ browserify test.js -o bundle.js

Loading a.html in the browser, I see the error in the console.

Ah, I see what you mean. Why did you remove the ./ in front of the require'd name?

Leaving ./,
$ cd node_modules/acorn
$ npm install
$ node bin/build-acorn.js
Error: Cannot find module './acorn' from '/path/to/node_modules/acorn/src'

acorn_loose is in /dist. Why would it search ./acorn in /src if you are requiring it from /dist?

I thought you were talking about the commit in your second comment.
But it seems you were mentioning the following line in test.js.
var acorn = require('acorn/dist/acorn_loose');

Is it right? Then, you can ignore my previous comment.
If I write
var acorn = require('./acorn/dist/acorn_loose');

in ```test.js``, I get following errors:
$ browserify test.js -o bundle.js
Error: Cannot find module './acorn/dist/acorn_loose' from '/path/to/TEST'

$ node test.js
module.js:338
    throw err;
          ^
Error: Cannot find module './acorn/dist/acorn_loose'

Well, I am not an expert in browserify and JavaScript module systems.
But I guess this is the correct way to require node modules.

This pull request does not work for me. @ForbesLindesay do you want to figure out why the use case in the earlier comment is failing and what would be the proper solution?

Hey,
I am having the same issue here and I can confirm that the @happibum patch is working properly for me.
So...I guess you guys may merge it.

Sorry, I am not merging this until someone explains how and why the path change makes sense.

The thing is that we have 2 changes here: the one you're concerned about and the browserify chain change. So to be honest I do not know which of the two solves the problem (or both, perhaps).
I can confirm that the actual solution does not work with webpack neither, while the proposed PR fixes the thing with both bundle systems.

If I write

var acorn = require('./acorn/dist/acorn_loose');

in `test.js, I get following errors:
Of course, you do, since you are trying to resolve relative acorn folder from inside of test folder, which doesn't make sense since it's not there.
If you want to require acorn_loose from outside, use the form above - require('acorn/dist/acorn_loose') (note no ./ in the beginning of path), if you for some reason need to edit test.js and add it there, you should build proper relative path on your own (e.g. require('../dist/acorn_loose')).

@happibum and @XVincentX are both right that this error exists.  It happens because browserify (even on the second pass) ignores the _dereq_ call, causing it not to bundle acorn.  At runtime, the _dereq_ call still functions exactly like a call to require.  Browserify hasn't bundled the file though, so you get the error described.
On node.js, it works fine because the file can simply be loaded dynamically at runtime.
The solution proposed is incorrect.  It works by bundling acorn.js into acorn_loose.js.  Although this works, you are liable then to end up with many copies of acorn in your project (if for example you require acorn, acorn_loose and acorn_walk).  The change to the path is needed because the require is then being resolved in the initial bundling phase, so it is relative to the original source file of acorn, not the output file.  This also only works in their environment because they are editing acorn within node_modules.
The correct solution is in #307 (along with tests to prove it works).  What we want is for browserify to fully ignore that require the first time round, and then treat it as normal the second time round.  To do this, all we need to do is replace it with a placeholder, then replace that placeholder with the real value once browserify has finished.

Fixed via #307


2.0.9 causes "Report publish failed: trp.parseV2 is not a function"

Running testbeats with npx on the latest version causes report publish failure "Report publish failed: trp.parseV2 is not a function"
$npx testbeats@latest publish
🥁 TestBeats v2.0.9
💻 NodeJS: v20.15.0, OS: linux, Version: 6.5.0-35-generic, Arch: x86_64
🚓 Validating configuration...
🧙 Processing results...
Report publish failed: trp.parseV2 is not a function

If I try with 2.0.8, the issues does not happen.
$npx<EMAIL_ADDRESS>publish
🥁 TestBeats v2.0.8
💻 NodeJS: v20.15.0, OS: linux, Version: 6.5.0-35-generic, Arch: x86_64
🚓 Validating configuration...
🧙 Processing results...
😿 No API key provided, skipping publishing results to TestBeats Portal...
🔔 Publishing results to Slack...
✅ Results published successfully!

Hello @nichiyoshi , we have recently made a change around parsing logic.
Can you try uninstalling testbeats package locally and globally once.  Ideally it shouldn't happen in CI machines (jenkins or github).

I will release a fix by today.


feat: add Canada to Country Maps

🏆 Enhancements - adding Canada onto the ui plugins options.

Would you mind rebasing on top of master?

Would you mind rebasing on top of master?

Of course! Sorry about that.


Add openings book

This is an obvious improvement to be able to speed up the search for our engine.

Added as of commit 3134437


Request: Hotkey for I'm Feeling Lucky

This button's great and I use it almost as often as Thumbs Down and Next Track. I'd be grateful if it was added it to the hotkeys.

This should be possible, and I might take a stab at it soon.


WIP api: record merging addition

Adds record merging. (closes #61)

Signed-off-by: Leonardo Rossi<EMAIL_ADDRESS>

Coverage increased (+0.2%) to 94.983% when pulling c1361f60ab901496058fc8dd90b5aacd606b93c5 on hachreak:61_api_record_merging into 82f694d5f3306d306ea60fdde6716594f6a3978f on inveniosoftware:master.

Coverage increased (+0.2%) to 94.983% when pulling 0eeefe0d8defa6af6f40f845c0bb405d6e1ac430 on hachreak:61_api_record_merging into 82f694d5f3306d306ea60fdde6716594f6a3978f on inveniosoftware:master.

Coverage increased (+0.2%) to 94.983% when pulling 00018676b705a77d824b0d7e38b8dee0e5448aa2 on hachreak:61_api_record_merging into 82f694d5f3306d306ea60fdde6716594f6a3978f on inveniosoftware:master.

Coverage increased (+0.2%) to 95.05% when pulling 6c5954146a0c5822473cad80bb7c327d354fc073 on hachreak:61_api_record_merging into 82f694d5f3306d306ea60fdde6716594f6a3978f on inveniosoftware:master.

Coverage increased (+0.2%) to 95.05% when pulling f8a062eb09a365101151411c2e543c9b9e0c6420 on hachreak:61_api_record_merging into c7fc55ac86dc979140a68fd347fecb7fc4805c9b on inveniosoftware:master.

ping @lnielsen


BUG: scipy 'minimize' with method='trust-constr' with equality constraints raises ValueError('expected square matrix')

Describe your issue.
I am trying to solve constrained optimization problems using scipy.optimize.minimize with method='trust-constr'. My problems typically involve both equality and inequality nonlinear constraints. For instance, let's say I want to solve the following problem
$\text{minimize} \quad x^4 - \frac{7}{4}x^3 - \frac{1}{2}x^2 + \frac{27}{16}x + \frac{23}{16}$
$\text{subject to} -x \leq -\frac{1}{2}, \sin(x) = 0,  \cos(2x + \frac{\pi}{2}) = 0$.
I am getting errors when scipy.optimize.minimize is called, and in particolar when the QR decomposition of the Jacobian is computed within equality_constrained_sqp, since the R matrix is not squared for some reason.
This error is not raised when I only use inequality constraints (since the equality_constrained_sqp is not invoked), or when I only use one equality constraint.
I could not find much documentation apart from this link and this link. I wonder whether I am calling the function with bad parameters, in which case I think a better error should be raised, or whether this is a bug.
Reproducing Code Example
import numpy as np
import sympy as sym
from scipy.optimize import minimize, NonlinearConstraint

def jac_lambda(f, variables):
    jac_mat = sym.Matrix([[f.diff(s) for s in variables]])
    jac_lambdify = sym.lambdify([variables], jac_mat, 'numpy')
    return lambda X, *args: jac_lambdify(X)[0]

def hess_lambda(f, variables):
    hess_mat = sym.Matrix([[f.diff(s1).diff(s2) for s2 in variables] for s1 in variables])
    hess_lambdify = sym.lambdify([variables], hess_mat, 'numpy')
    return lambda X, *args: hess_lambdify(X)

def wrap_fn(expr, symbols):
    fun = sym.lambdify([symbols], expr, 'numpy')
    jac = jac_lambda(expr, symbols)
    hes = hess_lambda(expr, symbols)
    return fun, jac, hes

def main():
    f_sym = sym.sympify("x**4 + -7/4*x**3 + -1/2*x**2 + 27/16*x + 23/16")
    cc_sym = [
        sym.sympify("-x <= -1/2"),
        sym.Eq(sym.sympify("sin(x)"), 0),
        sym.Eq(sym.sympify("cos(2*x + 1/2*pi)"), 0)
    ]
    symbols = ["x"]
    constraints = []
    for c in cc_sym:
        left, right = c.args
        fun, jac, hess = wrap_fn(left, symbols)

        if c.func == sym.Eq:
            domain = (right, right)
        elif c.func == sym.LessThan:
            domain = (-sym.oo, right)
        else:
            raise ValueError("Only equality and less than constraints are supported")
        constraint = NonlinearConstraint(fun, *domain, jac=jac, hess=hess)
        constraints.append(constraint)

    fun, jac, hess = wrap_fn(f_sym, symbols)
    x0 = np.zeros(len(symbols))
    res = minimize(fun, x0, method='trust-constr', jac=jac, hess=hess, constraints=constraints)
    print(res)

if __name__ == "__main__":
    main()

Error message
Traceback (most recent call last):
  File "/mypath/examples/minimize_trust_constr.py", line 54, in <module>
    main()
  File "/mypath/examples/minimize_trust_constr.py", line 49, in main
    res = minimize(fun, x0, method='trust-constr', jac=jac, hess=hess, constraints=constraints)
  File "/mypath/venv/lib/python3.10/site-packages/scipy/optimize/_minimize.py", line 725, in minimize
    res = _minimize_trustregion_constr(fun, x0, args, jac, hess, hessp,
  File "/mypath/venv/lib/python3.10/site-packages/scipy/optimize/_trustregion_constr/minimize_trustregion_constr.py", line 528, in _minimize_trustregion_constr
    _, result = tr_interior_point(
  File "/mypath/venv/lib/python3.10/site-packages/scipy/optimize/_trustregion_constr/tr_interior_point.py", line 321, in tr_interior_point
    z, state = equality_constrained_sqp(
  File "/mypath/venv/lib/python3.10/site-packages/scipy/optimize/_trustregion_constr/equality_constrained_sqp.py", line 81, in equality_constrained_sqp
    Z, LS, Y = projections(A, factorization_method)
  File "/mypath/venv/lib/python3.10/site-packages/scipy/optimize/_trustregion_constr/projections.py", line 405, in projections
    Z = LinearOperator((n, n), null_space)
  File "/mypath/venv/lib/python3.10/site-packages/scipy/sparse/linalg/_interface.py", line 584, in __init__
    self._init_dtype()
  File "/mypath/venv/lib/python3.10/site-packages/scipy/sparse/linalg/_interface.py", line 182, in _init_dtype
    self.dtype = np.asarray(self.matvec(v)).dtype
  File "/mypath/venv/lib/python3.10/site-packages/scipy/sparse/linalg/_interface.py", line 236, in matvec
    y = self._matvec(x)
  File "/mypath/venv/lib/python3.10/site-packages/scipy/sparse/linalg/_interface.py", line 593, in _matvec
    return self.__matvec_impl(x)
  File "/mypath/venv/lib/python3.10/site-packages/scipy/optimize/_trustregion_constr/projections.py", line 196, in null_space
    aux2 = scipy.linalg.solve_triangular(R, aux1, lower=False)
  File "/mypath/venv/lib/python3.10/site-packages/scipy/linalg/_basic.py", line 336, in solve_triangular
    raise ValueError('expected square matrix')
ValueError: expected square matrix

SciPy/NumPy/Python version and system information
1.13.0 1.26.4 sys.version_info(major=3, minor=10, micro=12, releaselevel='final', serial=0)
Build Dependencies:
  blas:
    detection method: pkgconfig
    found: true
    include directory: /usr/local/include
    lib directory: /usr/local/lib
    name: openblas
    openblas configuration: USE_64BITINT=0 DYNAMIC_ARCH=1 DYNAMIC_OLDER= NO_CBLAS=
      NO_LAPACK= NO_LAPACKE= NO_AFFINITY=1 USE_OPENMP= ZEN MAX_THREADS=64
    pc file directory: /usr/local/lib/pkgconfig
    version: 0.3.26.dev
  lapack:
    detection method: pkgconfig
    found: true
    include directory: /usr/local/include
    lib directory: /usr/local/lib
    name: openblas
    openblas configuration: USE_64BITINT=0 DYNAMIC_ARCH=1 DYNAMIC_OLDER= NO_CBLAS=
      NO_LAPACK= NO_LAPACKE= NO_AFFINITY=1 USE_OPENMP= ZEN MAX_THREADS=64
    pc file directory: /usr/local/lib/pkgconfig
    version: 0.3.26.dev
  pybind11:
    detection method: config-tool
    include directory: unknown
    name: pybind11
    version: 2.12.0
Compilers:
  c:
    commands: cc
    linker: ld.bfd
    name: gcc
    version: 10.2.1
  c++:
    commands: c++
    linker: ld.bfd
    name: gcc
    version: 10.2.1
  cython:
    commands: cython
    linker: cython
    name: cython
    version: 3.0.10
  fortran:
    commands: gfortran
    linker: ld.bfd
    name: gcc
    version: 10.2.1
  pythran:
    include directory: ../../tmp/pip-build-env-0blqy1or/overlay/lib/python3.10/site-packages/pythran
    version: 0.15.0
Machine Information:
  build:
    cpu: x86_64
    endian: little
    family: x86_64
    system: linux
  cross-compiled: false
  host:
    cpu: x86_64
    endian: little
    family: x86_64
    system: linux
Python Information:
  path: /opt/python/cp310-cp310/bin/python
  version: '3.10'

The trigonometric constraints (as specified in the latex equation) are impossible to satisfy.
import matplotlib.pyplot as plt
import numpy as np

def f(x):
    return np.sin(x)

def f2(x):
    return np.sin(2*x + np.pi/2)

x = np.linspace(0, 10, 10000)

plt.plot(x, f(x))
plt.plot(x, f2(x))

To be feasible the roots of f and f2 have to coincide at least one place. They will never do that because the wavelength of f is twice that of f2.

Actually, in my example the second constraint is cos(...) instead of sin(...), and the problem has solutions.

See also this discussion on StackOverflow and this smaller example.

@andyfaff  do you think this is indeed a bug? Do you think there is an easy way to fix it?

I'm not familiar with trust-constr, so I don't know. It'll need someone who knows.

In the meantime you could try setting breakpoints/use print statements to see how the linear operator is setup, or what the R array is on the last call

This is a peculiar edge case. If x0 has length > 1 then the issue doesn't seem to arise.
@antonior92 could you help out here?

<bear in mind that I'm not an expert in Linear Algebra>
Ok, a little bit of progress. This error arises because the number of equality constraints is greater than the number of independent variables. The problem doesn't appear if the number of equality constraints is less than or equal to the number of independent variables. I checked this by modifying a test example based on your first post - if one has two independent variables and two equality constraints there are no issues, but if there are three equality constraints there is a problem.
I then tried the example using SLSQP (1 independent variable, two equality constraints) and the minimize fails with:

message: More equality constraints than independent variables
success: False

Thus, it would not be surprising that the same behaviour is required for the trust-constr solver. I therefore don't think there's a bug.
The example can 'work' by using a different factorization_method:
minimize(f, np.ones(1), constraints=[nlc, nlc2], method='trust-constr',
         options={'factorization_method':'SVDFactorization'})

It's worth looking at the docstring there for guidance.
With respect to improving the error message that will probably require a greater knowledge of the codebase. It should be possible to catch this specific error when the projections function is called in equality_constrained_sqp. However, I'm not sure if there are other circumstances under which exceptions are raised, e.g. constraints exceeding number of independent variables for NonlinearConstraint or LinearConstraint.

How about the following. It's a little bit messy, but one can't use Exception.add_note until Python 3.11. Unfortunately it's a little fragile and depends on the error message from linalg not changing.
    try:
        Z, LS, Y = projections(A, factorization_method)
    except ValueError as e:
        if str(e) == "expected square matrix":
            # can be the case if there are more equality
            # constraints than independent variables
            raise ValueError(
                "The 'expected square matrix' error can occur if there are"
                " more equality constraints than independent variables."
                " Consider how your constraints are setup, or use"
                " factorization_method='SVDFactorization'."
            ) from e
        else:
            raise e

This would give the following error trace:
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
File [~/Documents/Andy/programming/scipy/build-install/lib/python3.10/site-packages/scipy/optimize/_trustregion_constr/equality_constrained_sqp.py:81](http://localhost:8889/lab/workspaces/auto-2/tree/~/Documents/Andy/programming/scipy/build-install/lib/python3.10/site-packages/scipy/optimize/_trustregion_constr/equality_constrained_sqp.py#line=80), in equality_constrained_sqp(fun_and_constr, grad_and_jac, lagr_hess, x0, fun0, grad0, constr0, jac0, stop_criteria, state, initial_penalty, initial_trust_radius, factorization_method, trust_lb, trust_ub, scaling)
     80 try:
---> 81     Z, LS, Y = projections(A, factorization_method)
     82 except ValueError as e:

File [~/Documents/Andy/programming/scipy/build-install/lib/python3.10/site-packages/scipy/optimize/_trustregion_constr/projections.py:403](http://localhost:8889/lab/workspaces/auto-2/tree/~/Documents/Andy/programming/scipy/build-install/lib/python3.10/site-packages/scipy/optimize/_trustregion_constr/projections.py#line=402), in projections(A, method, orth_tol, max_refin, tol)
    400     null_space, least_squares, row_space \
    401         = svd_factorization_projections(A, m, n, orth_tol, max_refin, tol)
--> 403 Z = LinearOperator((n, n), null_space)
    404 LS = LinearOperator((m, n), least_squares)

File [~/Documents/Andy/programming/scipy/build-install/lib/python3.10/site-packages/scipy/sparse/linalg/_interface.py:584](http://localhost:8889/lab/workspaces/auto-2/tree/~/Documents/Andy/programming/scipy/build-install/lib/python3.10/site-packages/scipy/sparse/linalg/_interface.py#line=583), in _CustomLinearOperator.__init__(self, shape, matvec, rmatvec, matmat, dtype, rmatmat)
    582 self.__matmat_impl = matmat
--> 584 self._init_dtype()

File [~/Documents/Andy/programming/scipy/build-install/lib/python3.10/site-packages/scipy/sparse/linalg/_interface.py:182](http://localhost:8889/lab/workspaces/auto-2/tree/~/Documents/Andy/programming/scipy/build-install/lib/python3.10/site-packages/scipy/sparse/linalg/_interface.py#line=181), in LinearOperator._init_dtype(self)
    181 v = np.zeros(self.shape[-1])
--> 182 self.dtype = np.asarray(self.matvec(v)).dtype

File [~/Documents/Andy/programming/scipy/build-install/lib/python3.10/site-packages/scipy/sparse/linalg/_interface.py:236](http://localhost:8889/lab/workspaces/auto-2/tree/~/Documents/Andy/programming/scipy/build-install/lib/python3.10/site-packages/scipy/sparse/linalg/_interface.py#line=235), in LinearOperator.matvec(self, x)
    234     raise ValueError('dimension mismatch')
--> 236 y = self._matvec(x)
    238 if isinstance(x, np.matrix):

File [~/Documents/Andy/programming/scipy/build-install/lib/python3.10/site-packages/scipy/sparse/linalg/_interface.py:593](http://localhost:8889/lab/workspaces/auto-2/tree/~/Documents/Andy/programming/scipy/build-install/lib/python3.10/site-packages/scipy/sparse/linalg/_interface.py#line=592), in _CustomLinearOperator._matvec(self, x)
    592 def _matvec(self, x):
--> 593     return self.__matvec_impl(x)

File [~/Documents/Andy/programming/scipy/build-install/lib/python3.10/site-packages/scipy/optimize/_trustregion_constr/projections.py:194](http://localhost:8889/lab/workspaces/auto-2/tree/~/Documents/Andy/programming/scipy/build-install/lib/python3.10/site-packages/scipy/optimize/_trustregion_constr/projections.py#line=193), in qr_factorization_projections.<locals>.null_space(x)
    193 aux1 = Q.T.dot(x)
--> 194 aux2 = scipy.linalg.solve_triangular(R, aux1, lower=False)
    195 v = np.zeros(m)

File [~/Documents/Andy/programming/scipy/build-install/lib/python3.10/site-packages/scipy/linalg/_basic.py:337](http://localhost:8889/lab/workspaces/auto-2/tree/~/Documents/Andy/programming/scipy/build-install/lib/python3.10/site-packages/scipy/linalg/_basic.py#line=336), in solve_triangular(a, b, trans, lower, unit_diagonal, overwrite_b, check_finite)
    336 if len(a1.shape) != 2 or a1.shape[0] != a1.shape[1]:
--> 337     raise ValueError('expected square matrix')
    339 if a1.shape[0] != b1.shape[0]:

ValueError: expected square matrix

The above exception was the direct cause of the following exception:

ValueError                                Traceback (most recent call last)
Cell In[1], line 19
     13 constraints = [
     14     NonlinearConstraint(constraint1, [0, 0], [0, 0]),
     15 ]
     18 x0 = np.zeros(1)
---> 19 res = minimize(fun, x0, method='trust-constr', constraints=constraints)

File [~/Documents/Andy/programming/scipy/build-install/lib/python3.10/site-packages/scipy/optimize/_minimize.py:725](http://localhost:8889/lab/workspaces/auto-2/tree/~/Documents/Andy/programming/scipy/build-install/lib/python3.10/site-packages/scipy/optimize/_minimize.py#line=724), in minimize(fun, x0, args, method, jac, hess, hessp, bounds, constraints, tol, callback, options)
    722     res = _minimize_slsqp(fun, x0, args, jac, bounds,
    723                           constraints, callback=callback, **options)
    724 elif meth == 'trust-constr':
--> 725     res = _minimize_trustregion_constr(fun, x0, args, jac, hess, hessp,
    726                                        bounds, constraints,
    727                                        callback=callback, **options)
    728 elif meth == 'dogleg':
    729     res = _minimize_dogleg(fun, x0, args, jac, hess,
    730                            callback=callback, **options)

File [~/Documents/Andy/programming/scipy/build-install/lib/python3.10/site-packages/scipy/optimize/_trustregion_constr/minimize_trustregion_constr.py:519](http://localhost:8889/lab/workspaces/auto-2/tree/~/Documents/Andy/programming/scipy/build-install/lib/python3.10/site-packages/scipy/optimize/_trustregion_constr/minimize_trustregion_constr.py#line=518), in _minimize_trustregion_constr(fun, x0, args, grad, hess, hessp, bounds, constraints, xtol, gtol, barrier_tol, sparse_jacobian, callback, maxiter, verbose, finite_diff_rel_step, initial_constr_penalty, initial_tr_radius, initial_barrier_parameter, initial_barrier_tolerance, factorization_method, disp)
    516         J_eq, _ = canonical.jac(x)
    517         return g, J_eq
--> 519     _, result = equality_constrained_sqp(
    520         fun_and_constr, grad_and_jac, lagrangian_hess,
    521         x0, objective.f, objective.g,
    522         c_eq0, J_eq0,
    523         stop_criteria, state,
    524         initial_constr_penalty, initial_tr_radius,
    525         factorization_method)
    527 elif method == 'tr_interior_point':
    528     _, result = tr_interior_point(
    529         objective.fun, objective.grad, lagrangian_hess,
    530         n_vars, canonical.n_ineq, canonical.n_eq,
   (...)
    538         initial_constr_penalty, initial_tr_radius,
    539         factorization_method)

File [~/Documents/Andy/programming/scipy/build-install/lib/python3.10/site-packages/scipy/optimize/_trustregion_constr/equality_constrained_sqp.py:86](http://localhost:8889/lab/workspaces/auto-2/tree/~/Documents/Andy/programming/scipy/build-install/lib/python3.10/site-packages/scipy/optimize/_trustregion_constr/equality_constrained_sqp.py#line=85), in equality_constrained_sqp(fun_and_constr, grad_and_jac, lagr_hess, x0, fun0, grad0, constr0, jac0, stop_criteria, state, initial_penalty, initial_trust_radius, factorization_method, trust_lb, trust_ub, scaling)
     82 except ValueError as e:
     83     if str(e) == "expected square matrix":
     84         # can be the case if there are more equality
     85         # constraints than independent variables
---> 86         raise ValueError(
     87             "The 'expected square matrix' error can occur if there are"
     88             " more equality constraints than independent variables."
     89             " Consider how your constraints are setup, or use"
     90             " factorization_method='SVDFactorization'."
     91         ) from e
     92     else:
     93         raise e

ValueError: The 'expected square matrix' error can occur if there are more equality constraints than independent variables. Consider how your constraints are setup, or use factorization_method='SVDFactorization'.


How randomizer works ?

Hi all !
I cannot figure out how use a custom randomizer.
I want my typer gremlins just use keyCode 39 when they type, so i write something like
let myHorde = gremlins.createHorde();

let myGremlins = gremlins.species.typer();
myGremlins.eventTypes(['keydown']);
myGremlins.randomizer({
  natural: function() {
    return 39;
  }
});

myHorde.gremlin(myGremlins);
myHorde.unleash();

But it doesn't work and I don't find any doc to help me.
Where I'm wrong ?
Thanks !

Hey folks. The Marmelab team is attempting to clean up the Issues backlog. With that, we're closing issues that have been open for an one or more years.
We really appreciate the folks have taken the time to open and comment on this issue. Please don't confuse this closure with us not caring or dismissing your issue, feature request, discussion, or report. If the issue pertains to a bug, please re-test for the bug on the latest version of gremlins.js.
The best way to report problems with gremlins.js 2.0 is to file new issues.


PPL CONSET does not set sig-digits

Reported by ansley b manke on 8 Jan 2016 23:05 UTC
Ned Cokelet noticed this.
Using PPL CONSET fails to make the NSIG setting for number of digits in contour labels. The result just uses the default precision, as if CONSET was not used.  Other settings of CONSET are applied, such as the size of labels and spacing between labels.
yes? contour/i=1:20/j=1:20/lev=(-10,10,2.125)/set  10*sin(i/3)*cos(j/4)
yes? ppl conset,,4
yes? ppl contour

The command qualifier CONTOUR/SIGDIG, does work:
yes? contour/i=1:20/j=1:20/lev=(-10,10,2.125)/sigdig=4  10*sin(i/3)*cos(j/4)

Migrated-From: http://dunkel.pmel.noaa.gov/trac/ferret/ticket/2351

Comment by ansley.b.manke on 12 Jan 2016 01:04 UTC
As far as I can see, PPL CONSET has not worked consistently in any of our older Ferret executables back to v522 (year 2000).  All of them fail to change the contour plot labels. The benchmarks do not have any tests of PPL CONSET.
Version 5.22 will change the labels but only on running the same commands twice, and more-recent versions do not make any change at all to the precision of the labels on contour lines.
    contour/i=1:20/j=1:20/lev=(-10,10,2.125)/set/title="CONTOUR/SET with PPL CONSET,,4"  10*sin(i/3)*cos(j/4)
    ppl conset,0.09,4
    ppl contour

    contour/i=1:20/j=1:20/lev=(-10,10,2.125)/set/title="CONTOUR/SET with PPL CONSET,,4"  10*sin(i/3)*cos(j/4)
    ppl conset,0.09,4
    ppl contour

I've added a flag to make sure the new setting is applied in ppl/tmapadds/set_levels_shade_fill.F
And I've added a test in the benchmarks including an image file showing that PPL CONSET and CONTOUR/SIGDIG= have the same effect.

Attachment from ansley.b.manke on 8 Jan 2016 23:06 UTC
The two plots: with PPL CONTOUR and with CONTOUR/SIGDIG
REPLACE THIS TEXT WITH UPLOADED FILE ./attachments/TRAC_2351_GIT_1623/contour_sigdig.gif


Migrate TermsStep.js to function component

Details
Migrate TermsStep.js to function component
Fixed Issues
$ https://github.com/Expensify/App/issues/16236
Tests

Tick none or one of the two check boxes
Click "enable payments" button
It should show error
Tick both check boxes
The error message should disappear
Click on enable payments button and it should move to next step

[x] Verify that no errors appear in the JS console

Offline tests
QA Steps

Tick none or one of the two check boxes
Click "enable payments" button
It should show error
Tick both check boxes
The error message should disappear
Click on enable payments button and it should move to next step

[x] Verify that no errors appear in the JS console

PR Author Checklist

[x] I linked the correct issue in the ### Fixed Issues section above
[x] I wrote clear testing steps that cover the changes made in this PR

[x] I added steps for local testing in the Tests section
[x] I added steps for the expected offline behavior in the Offline steps section
[x] I added steps for Staging and/or Production testing in the QA steps section
[x] I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
[x] I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).

[x] I included screenshots or videos for tests on all platforms
[x] I ran the tests on all platforms & verified they passed on:

[x] Android / native
[x] Android / Chrome
[x] iOS / native
[x] iOS / Safari
[x] MacOS / Chrome / Safari
[x] MacOS / Desktop

[x] I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
[x] I followed proper code patterns (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
[x] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method

[x] If any non-english text was added/modified, I verified the translation was requested/reviewed in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:

[x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[x] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is approved by marketing by adding the Waiting for Copy label for a copy review on the original GH to get the correct copy.
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I followed the guidelines as stated in the Review Guidelines
[x] I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
[x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[x] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[x] I verified that if a function's arguments changed that all usages have also been updated correctly
[x] If a new component is created I verified that:

[x] A similar component doesn't exist in the codebase
[x] All props are defined accurately and each prop has a /** comment above it */
[x] The file is named correctly
[x] The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
[x] The only data being stored in the state is data necessary for rendering and nothing else
[x] For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
[x] Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
[x] All JSX used for rendering exists in the render method
[x] The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions

[x] If any new file was added I verified that:

[x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[x] If a new CSS style is added I verified that:

[x] A similar style doesn't already exist
[x] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))

[x] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[x] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[x] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
[x] I have checked off every checkbox in the PR author checklist, including those that don't apply to this PR.

Screenshots/Videos

Web

Mobile Web - Chrome

Mobile Web - Safari

Desktop

iOS

Android

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

@chychkoi Please check this thread Make you follow all!

@robertjchen @Santhosh-Sellavel can you please check PR?

@robertjchen Can you initiate workflows checks

Workflow checks initiated 👍

@robertjchen pushed prettier fix, can you please re-initiate?

@robertjchen @Santhosh-Sellavel all  checks have passed, can you please merge PR?

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

🚀 Deployed to staging by https://github.com/robertjchen in version: 1.3.26-0 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

@chychkoi @robertjchen Hi! Can we get more information on how can we test this PR. We're unsure on how to reach the Ticks that are mentioned on the first steps.

@isagoico Sorry for the trouble. Here are steps

Go to https://staging.new.expensify.com/enable-payments
Complete the step until you reach the Terms and Fees Page
Tick none or one of the two checkboxes
Click "Enable payments" button
It should show an error
Tick both checkboxes
The error message should disappear
Click on enable payments button and it should move to the next step

@Santhosh-Sellavel Getting this error, expected?

I don't think that we have an easy way to test this organically. Standard users that haven't had an Expensify Wallet manually provisioned for them won't see this page.
So I think that this should be considered a blocker for now, but we should create a follow-up issue to ensure that you can't just jump to steps in the bank account setup flow where you haven't completed the preceeding steps. In this case, we shouldn't allow users to view the enable-payments page unless they have an Expensify wallet, which right now is only our internal employees and a few other select individuals AFAIK.

🚀 Deployed to production by https://github.com/AndrewGable in version: 1.3.26-4 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅


Issue with Gradle and Spring-Graphql

Hey guys,
I have an issue with gradle and spring-graphql. When I build my project I face with this error:
> Could not resolve org.springframework.experimental:graphql-spring-boot-starter:1.0.0-SNAPSHOT.
  Required by:
      project :
  > Could not resolve org.springframework.experimental:graphql-spring-boot-starter:1.0.0-SNAPSHOT.
    > Unable to load Maven meta-data from https://repo.spring.io/snapshot/org/springframework/experimental/graphql-spring-boot-starter/1.0.0-SNAPSHOT/maven-metadata.xml.
      > Could not HEAD 'https://repo.spring.io/snapshot/org/springframework/experimental/graphql-spring-boot-starter/1.0.0-SNAPSHOT/maven-metadata.xml'.
        > Connect to repo.spring.io:443 [repo.spring.io/<IP_ADDRESS>, repo.spring.io/<IP_ADDRESS>, repo.spring.io/<IP_ADDRESS>] failed: Connection refused (Connection refused)
          > Connection refused (Connection refused)
  > Could not resolve org.springframework.experimental:graphql-spring-boot-starter:1.0.0-SNAPSHOT.
    > Unable to load Maven meta-data from https://repo.spring.io/milestone/org/springframework/experimental/graphql-spring-boot-starter/1.0.0-SNAPSHOT/maven-metadata.xml.
      > Could not get resource 'https://repo.spring.io/milestone/org/springframework/experimental/graphql-spring-boot-starter/1.0.0-SNAPSHOT/maven-metadata.xml'.
        > Could not GET 'https://repo.spring.io/milestone/org/springframework/experimental/graphql-spring-boot-starter/1.0.0-SNAPSHOT/maven-metadata.xml'.
          > Connect to repo.spring.io:443 [repo.spring.io/<IP_ADDRESS>, repo.spring.io/<IP_ADDRESS>, repo.spring.io/<IP_ADDRESS>] failed: Connection refused (Connection refused)
            > Connection refused (Connection refused)

This is my build.gradle:
repositories {
    mavenCentral()
    maven { url 'https://repo.spring.io/milestone' }  // Spring milestones
    maven { url 'https://repo.spring.io/snapshot' }   // Spring snapshots
}

dependencies {
    compile 'org.springframework.experimental:graphql-spring-boot-starter:1.0.0-SNAPSHOT'
}

So, What should I do? Is there anything missing?
Thanks in advance.

failed: Connection refused (Connection refused)

Check your connection firstly, or you could try to use a proxy server to connect it.

Thank you.
I set proxy for gradlew as described here and it worked.


Fixes bug with multithreaded event loop

Hey @paulofaria, just let me know if you'd like me to assign you as the reviewer, or what your workflow is. Thanks!

It looks like GH Actions settings have changed and CI isn't passing anymore. I'll take a look st that later this week if you don't beat me to it.

@paulofaria Good call. I just fixed the GitHub CI issue in this pull request, and it's passing now. I also put in an additional pull request to fix the same issue in Graphiti: https://github.com/GraphQLSwift/Graphiti/pull/53

@NeedleInAJayStack thank you very much!


I accidentally made ChiselFacades useless.

https://github.com/BuildCraft/BuildCraft/commit/e60fa8dfbb1e07532047785a6a2e902d87cea780
Sorry. We've had a fun ride, I guess.

Ah well, I suppose it's better to have the functionality in BC itself instead of relying on a compatibility mod.


Implement DPM-Solver++ scheduler

Restricted to order 2, no dynamic thresholding.
It achieves similar quality to PNDM in 25 steps (~10s in my Mac).

Thank you for your interest in contributing to Core ML Stable Diffusion! Please review CONTRIBUTING.md. If you would like to proceed with this pull request, please indicate your agreement to the terms outlined in CONTRIBUTING.md by checking the box below.
We appreciate your interest in the project!

[ ] I agree to the terms outlined in CONTRIBUTING.md

Thanks for adding this scheduler!
It would be nice to perhaps add a --scheduler option to the StableDiffusionSample CLI but it can also be done in a separate PR

@msiracusa great idea, just added that option :)

@msiracusa great idea, just added that option :)

I just tested at it works great. Thank you!


Internal Server Error 500 on Linux VPS but OK elsewhere

[x ] I've verified and I assure that I'm running youtube-dl 2018.10.05
[x ] At least skimmed through the README, most notably the FAQ and BUGS sections
[x ] Searched the bugtracker for similar issues including closed ones
[x ] Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser
[x ] Bug report (encountered problems with youtube-dl)

############################
VERBOSE:
Unable to download JSON metadata: HTTP Error 500: Internal Server Error (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 604, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/usr/local/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 2211, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib/python2.7/urllib2.py", line 435, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 548, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 473, in error
return self._call_chain(*args)
File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 556, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
############################
[debug] System config: [Linux Ubuntu 16.04.1 LTS]
[debug] User config: [VPS with SSH & FileZilla access]
[debug] Command-line args: [-g -v https://soundcloud.com/mister-vegas/ephixa-song-of-storms-dubstep]
[debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251
[debug] youtube-dl version 2018.10.05
[debug] Python version 2.7.12 - Ubuntu 16.04.1 LTS
[debug] exe versions: ffmpeg N-75573-g1d0487f, ffprobe N-75573-g1d0487f, rtmpdump 2.4
[debug] Proxy map: {}
...
<end of log>

DESCRIPTION:
Youtube-dl (and in general Curl) can't access soundcloud.com, it returns the Internal Server Error code 500. So the JSON can't be downloaded by ytdl. All this happens only on my Virtual Private Server (VPS).
All works like a charm on Windows or a virtual Ubuntu machine on VirtualBox.
What could be the solution? I've tried putting a proxy with --proxy, doesn't help.
Maybe I need to add custom headers? If yes, what needs to be the content of the headers?
Need your help. Thanks!

The verbose I've posted here COMES from the VPS


Added a Handy Cheat Sheet for Kubernetes

Hacktoberfest notes:

due to volume of submissions, we may not be able to review PRs that do not pass tests and do not have informative titles.
please read our contributing guidelines
be sure to check the output of Travis-CI for linter errors
if this is your first open source contribution, make sure it's not your last!

What does this PR do?
Add Resource(s) | Remove Resource(s) | Add info | Improve Repo
For resources
Description
Why is this valuable (or not)?
How do we know it's really free?
For book lists, is it a book? For course lists, is it a course? etc.
Checklist:

[ ] Not a duplicate
[ ] Included author(s) if appropriate
[ ] Lists are in alphabetical order
[ ] Needed indications added (PDF, access notes, under construction)

Thanks for the suggestions. Made the necessary changes and committed again. Please check the latest commit.

Thanks for the suggestions. Made the necessary changes and committed again. Please check the latest commit.

It looks good to me now at least. \(^-^)/

Thanks, and welcome to free-programming-books!


Changed registry access to use 32 bit view for CodeToolsUpdate project.

This change is required to show Code Contracts property page in Visual Studio after the project platform was changed from x86 to Any CPU.

Looks good to me!


chore: merge 1.7.1 to main

Description

merges the bug fixes for 1.7.1 to main

Type of change (check all applicable)

[ ] 🐛 Bug fix
[ ] ✨ New feature
[ ] ♻ Refactor
[ ] ⚡ Performance Improvement
[ ] 📝 Documentation
[X] 🔧 Chore
[ ] 💥 Breaking change

All builds passed, happy to bypass.


Bug: Virtual mounted drives don't have Eject option

Description
File explorer has the option to eject a mounted drive in the context menu when Files doesn't.

Steps To Reproduce

Create a Hyper-V VM
Right click virtual drive
Select mount option
Right click mounted drive
See no eject option

Steps to fix
Add eject to context menu
Files Version
<IP_ADDRESS>
Windows Version
10.0.22621.608
Relevant Assets/Logs
debug.log
debug_fulltrust.log

Asking @yaichenbaum for approval.

Note:
This applies to BitLocker disk images as well:
https://www.howtogeek.com/193013/how-to-create-an-encrypted-container-file-with-bitlocker-on-windows/
We should see an Eject option for any mounted virtual disk, as we do in Windows Explorer and Explorer++.


(PY-D0003) Missing module/function docstring

Description
The module/function docstring is missing. If you want to ignore this, you can configure this in the .deepsource.toml file. Please refer to docs for available options.
Occurrences
There are 62 occurrences of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/BAN-AI-Communications/rfc2217-gateway/issue/PY-D0003/occurrences/

3rd party / won't fix


Hi-C level 3 fixes

See HTAN-414

[x] Add bedpe file format to File Format
[x] Names+descriptions and allowed values of Loop Window and	Stripe Window are inverted.
[x] Change validation rule for loop window to list int (confirm correct form of this rule in schematic docs first)

@adamjtaylor and @aditigopalan I'm wondering whether we can add this one to our current 24-4 sprint? If so, Aditi, is this something I can assign to you?

For third item, consider doing a huge string or a regex

@aditigopalan are we on track to complete this before our 24-5 HTAN Data Model wrap up on May 30?

yes, pending review

Adam and Aditi will work on this further offline. Expect to include in release in early 24-6 sprint


moveez.de without www

to avoid missing users

added apex A-Record to Azure DNS and extended www ingress with apex route


Extend padding functionalities

While working on a project I realized that in the dataset padding function one can set  different constant_values  for each dimension but not for each variable. I've added some simple code to allow this, one can now also define padding differently for each data variable. I also extended the tests to include these examples.
Let me know if I can do any changes to better fit your standards.

[x] Tests added

Any other changes pending or is this ready to go?
(thanks a lot for the work @tsanona !)

If we can add a whatsnew entry, that would be great!

Thank you very much @tsanona !


Metropolitan Transport Department crash

Hi, after reading and seeing your Subway builder for Anno 1800, I downloaded it via the Anno 1800 ModBrowser and started it. As soon as I try to build the Metropolitan Transport Department Building, it crashes to a 'dark cloud' screen (see file) and then to the Anno 1800 Title Screen. I am running Season 3 DLC, which is needed as I understand it. Any suggestions what might be the problem? Thanks for any help you can provide. Best regards Jan

The requirements are:

DLC-10 (Seeds of Change) from Season 4: Hard requirement, because the Metropolitan Transport Department uses the policy mechanic from that DLC. Without, the game does a soft crash back to the main menu ;) I´m not happy about this fact. Maybe I rework the MTD to a plain factory which provides a buff dependent on its upgrade stage to get rid of this dlc.
DLC-09 (HighLife) from Season 3: Just to get Elevators as construction material. I have in mind to make a custom elevator factory, so this dlc isn´t required anymore. But that´s sth for the future.
DLC-12 (NewWorldRising) from Season 4: only needed to be able to build all optional buildings.

Thanks very much for the reply. I don't have Season 4 so I get that 'soft'
crash. I appreciate yopu replying. Best regards J.
Am Mi., 28. Feb. 2024 um 13:05 Uhr schrieb lion053 @.***

:

The requirements are:

DLC-10 (Seeds of Change) from Season 4: Hard requirement, because
the Metropolitan Transport Department uses the policy mechanic from that
DLC. Without, the game does a soft crash back to the main menu ;) I´m not
happy about this fact. Maybe I rework the MTD to a plain factory which
provides a buff dependent on its upgrade stage to get rid of this dlc.
DLC-09 (HighLife) from Season 3: Just to get Elevators as
construction material. I have in mind to make a custom elevator factory, so
this dlc isn´t required anymore. But that´s sth for the future.
DLC-12 (NewWorldRising) from Season 4: only needed to be able to
build all optional buildings.

—
Reply to this email directly, view it on GitHub
https://github.com/lion053/AnnoMods/issues/1#issuecomment-1968841974,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BGKL2CZMNMZDVRWELPEI7QTYV4MQRAVCNFSM6AAAAABDTAOTOWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRYHA2DCOJXGQ
.
You are receiving this because you authored the thread.Message ID:
@.***>


Upgrade Quarkus to version 3.8.6

There is a new LTE version of Quarkus available. We need to upgrade to this version.

@baldimir I think Quarkus 3.8.4 is also defined in kie-tools repository, don't we need to update it there too?

@rgdoliveira I am sorry, I forgot to upgrade this ticket. Yes, kie-tools will be upgraded too. However for that, it needs to have a new weekly snapshot of the "backend" libraries. There is work on that currently. When that is ready, we can upgrade kie-tools too.

@baldimir another question, what about kogito-serverless-operator repository?
IIUC, the operator is getting built from kie-tools repository but the main source code of it is still https://github.com/apache/incubator-kie-kogito-serverless-operator, isn't it?

@baldimir I've created https://github.com/apache/incubator-kie-kogito-serverless-operator/pull/527, I believe it is needed too.

@rgdoliveira Thanks. Sorry, I missed the repo.
Closing this as done as all repos are merged.


Contract work

Hi, are you available for contract work ? I need this tech for a commercial project.

Hi, unfortunately I don't provide contract work.


You can pass Metric-Imperial Converter Project by just using the BASE Glitch Project given

https://www.freecodecamp.org/learn/information-security-and-quality-assurance/information-security-and-quality-assurance-projects/metric-imperial-converter
I literally wanted to test if the helmetJS securities I added were working and passed, I ended up passing everything.
I commented out the helmetJS .use lines and still passed everything.
This section really needs to be updated, lol.

Related to #37815.

Related to #37185

Hi @Symbolistic Thanks for reporting! As @nhcarrigan said, this issue has been reported in #37185, and in fact, there is already a PR to add tests for this project (https://github.com/freeCodeCamp/freeCodeCamp/pull/37891). We will try to review and get the PR merged as soon as we can.
I'm closing the issue as it is a duplicate. Thanks again for the report.
Happy coding!


Chrome Plugin -  Manual Transaction Naming

Hi Team,
We are using the chrome plugin to capture client metrics. We wish to manually feed in the transaction naming to each page rather than using the page title or URL by default. Currently this feature is not working, can you please help us get this resolved.
Thanks,
Antony
<EMAIL_ADDRESS>

Please tets latest plugin and let us know if the this can be closed


Simplify the code a bit

This PR renames some classes into more meaningful names.
The cache is a bit smaller.
And overall, some unused variables have been removed, and some functions have been slightly simplified.

Codecov Report

Merging #162 (45e84e1) into main (2d537bc) will increase coverage by 0.39%.
The diff coverage is 94.38%.

@@            Coverage Diff             @@
##             main     #162      +/-   ##
==========================================
+ Coverage   90.90%   91.29%   +0.39%
==========================================
  Files          23       24       +1
  Lines         946      931      -15
==========================================
- Hits          860      850      -10
+ Misses         86       81       -5

Impacted Files
Coverage Δ

src/ProbNumDiffEq.jl
70.58% <ø> (ø)

src/preconditioning.jl
100.00% <ø> (ø)

src/solution.jl
96.29% <ø> (-0.05%)
:arrow_down:

src/perform_step.jl
73.68% <85.71%> (-1.01%)
:arrow_down:

src/alg_utils.jl
84.21% <87.50%> (ø)

src/algorithms.jl
100.00% <100.00%> (ø)

src/caches.jl
90.90% <100.00%> (-0.88%)
:arrow_down:

src/callbacks.jl
97.36% <100.00%> (ø)

src/checks.jl
100.00% <100.00%> (ø)

src/diffusions.jl
98.50% <100.00%> (ø)

... and 13 more

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


[Bug] legend scrollbar abnormal when layout resize

Version
1.9.2
Link to Minimal Reproduction
none
Steps to Reproduce
layout resize
Current Behavior

Expected Behavior
normal
Environment
- OS:
- Browser:
- Framework:

Any additional comments?
No response

这个是legend的padding引起的问题，可以配置：padding[0,0,0,0]


Bottom navbar in editor is pretty thick for small screens

Describe the bug
On the Chromebook, the bottom bar where "Download" and undo/redo, zoom controls is pretty thick, even though other components like the top navbar have hit their thinner breakpoint. It might be nice to make it smaller for more space efficiency :D

The bottom toolbar should ideally be 60px like the navbar

No plans to address.


[RFC] Better distribution story for scry

VSCode packages can't be larger then 20MB. So I can't distribute Cystal-IDE w/ bundled binaries for all platform/arch combos we'll want to support (probably a bad idea anyway).
So how should we distribute scry?

Maintain brew taps and apt-get repos. Brew taps don't seem that hard to maintain, but I'm uncertain of the cost in effort for keeping an apt distribution. And that excludes arch and redhat linux users.

Build logic into Crystal-IDE to fetch proper version of scry (and detect updates). There's a lot of hidden effort here; like prompting users that an update is available, etc.

See if it's possible to make scry distributable as a development dependency. This is how, for example, rake is distributed most often to ruby projects. This would actually make the most sense, since you may need a different scry on different projects. However, I'm not certain that shards supports distributing binary dependencies in this way.

I think brew would be the most logical way.

I think that Scry distribution may be like ruby-ide as a shard or a system package via AUR (Archlinux) or a .deb (Ubuntu/Debian).
For now, I'm using the default nodejs backend for crystal-ide, some errors aren't detected by scry.
But Scry is a great project, is the way to get IDE support for crystal with VScode (format, symbols, suggestions, references) 👌

@kofno now VSCode size extension limit is 100MB :sweat_smile:

Scry would be around 2.0Mb :smile:
crystal build --release --no-debug -s src/scry.cr

I tried to ship scry.7z in my extension and it's only 1.5Mb
I think that with win32 and darwin binaries the size could be less that 10Mb
I'm using node-7z to extract scry:
function extractScry(path) {
	return new Promise((resolve, reject) => {
		let unzip = new SevenZip()

		unzip.extractFull(path + '.7z', path.slice(0, -4)).progress((files) => {
			console.log('Extracting Scry files...')
		}).then(() => {
			console.log('Scry Extracting done!')
			resolve()
		}).catch((err) => {
			console.error(err)
			reject()
		});
	})
}

See #L14

@faustinoaq Thanks for the shout out! I'd love to unify the efforts - especially since I only have time to work on things like this as weekend projects.

@keplersj You're welcome, I'm still learning how Language Server Protocol works :sweat_smile:

So here's my two-cents on this.
It sounds like the distribution strategy changes depending on the client and its needs. Sounds like VS Code wants the binary to come packaged with the client package, however Atom prefers you to have the client downloaded on its own separate from the initial package download and install.
I think the best solution would be to have this repo build and publish versioned binaries in archive files on the GitHub Releases page. Then clients can handle accordingly. VS Code packages could add a build step to download and incorporate into the final package, and Atom packages could access the archive directly.
@kofno and @faustinoaq: Let me know what y'all think of this strategy, I know how to implement this sort of thing using Travis.

I'm open for whatever. Would love to get this going again.  If we can get some PRs going, maybe that's the best way to start a discussion.

@keplersj I think you are right. I'm using Manjaro Linux, and I embedded Scry in my extension but is a bit hacky because it checks for extract Scry every time a crystal workspace is open.
Distributing the binaries would be a good way, so far I know, in ArchLinux we can use AUR and in Ubuntu a Launchpad repo, but I'm ok with a "releases" page on Github.
BTW:
I tried Scry on NeoVim and it works.
I think that completion goal, would be solved using cracker and embedding the crystal source with it inside Scry.
Some features like rename and symbols require some research to discover how implement them.

@kofno If you're on board with the GitHub Releases strategy, could you set it up with your GitHub account when you get the chance? https://docs.travis-ci.com/user/deployment/releases/

@keplersj I like the idea. I will definitely set it up, but I'm hopping on a plane and I'm out of town for about 8 days. I don't think I'll be able to get that set up before I return.

@kofno No worries!

I'm going to try and look at this over the weekend

@keplersj I've set up travis to do releases automatically. Were you going to take this the rest of the way, then? --> https://github.com/kofno/scry/commit/95aa5a332840b9592f6d5d1a0a52785284ca86e8


Configure travis ci

Coverage remained the same at 14.514% when pulling add949c6d5917059bbb166e3bf71ba04bf79567e on travis-configurtion into eaa23885695230ebf970c491ba61c93776e8540e on master.


Horizontal pod autoscaller cant work with metric server

Environmental Info:
K3s Version:
k3s -v
k3s version v1.27.4+k3s1 (36645e73)
go version go1.20.6

Node(s) CPU architecture, OS, and Version:
Mostly: Linux kv92rs 5.10.0-24-amd64 #1 SMP Debian 5.10.179-5 (2023-08-08) x86_64 GNU/Linux
also bookworm and on some nodes
Cluster Configuration:
6 nodes, 3 masters
Describe the bug:
Added owncloud via it's helm package, which added following hpa to cluster:
kubectl get hpa -A                                                                                NAMESPACE   NAME                REFERENCE                      TARGETS         MINPODS   MAXPODS   REPLICAS   AGE
owncloud    my-cloud-owncloud   Deployment/my-cloud-owncloud   <unknown>/80%   1         3         1          8d

tagets reporting unknown cpu usage, so whole thing is not working at all, following events were recorded for this:
kubectl describe hpa my-cloud-owncloud -n owncloud                                                                     Name:                                                  my-cloud-owncloud
Namespace:                                             owncloud
Labels:                                                app.kubernetes.io/instance=my-cloud
                                                       app.kubernetes.io/managed-by=Helm
                                                       app.kubernetes.io/name=owncloud
                                                       app.kubernetes.io/version=10.12.2
                                                       helm.sh/chart=owncloud-0.5.3
Annotations:                                           meta.helm.sh/release-name: my-cloud
                                                       meta.helm.sh/release-namespace: owncloud
CreationTimestamp:                                     Wed, 23 Aug 2023 14:45:11 +0200
Reference:                                             Deployment/my-cloud-owncloud
Metrics:                                               ( current / target )
  resource cpu on pods  (as a percentage of request):  <unknown> / 80%
Min replicas:                                          1
Max replicas:                                          3
Deployment pods:                                       1 current / 0 desired
Conditions:
  Type           Status  Reason                   Message
  ----           ------  ------                   -------
  AbleToScale    True    SucceededGetScale        the HPA controller was able to get the target's current scale
  ScalingActive  False   FailedGetResourceMetric  the HPA was unable to compute the replica count: failed to get cpu utilization: missing request for cpu in container owncloud of Pod my-cloud-owncloud-5cdb678c48-8bgbm
Events:
  Type     Reason                   Age                       From                       Message
  ----     ------                   ----                      ----                       -------
  Warning  FailedGetResourceMetric  9m42s (x2 over 10m)       horizontal-pod-autoscaler  failed to get cpu utilization: unable to get metrics for resource cpu: unable to fetch metrics from resource metrics API: the server is currently unable to handle the request (get pods.metrics.k8s.io)
  Warning  FailedGetResourceMetric  4m40s (x19469 over 3d9h)  horizontal-pod-autoscaler  failed to get cpu utilization: missing request for cpu in container owncloud of Pod my-cloud-owncloud-5cdb678c48-8bgbm

Metrics server seems to work correctly and everything os ok with it also with whole prometheus stack. The problem exists only here in hpa which cannot get those needed information.
I also tried to add --insecure-tls flag to check if this is an issue, but it's not.
Steps To Reproduce:
Probably to this will be easily reproduced with any hpa, the one I have is from helm repo:
helm repo add owncloud https://owncloud-docker.github.io/helm-charts
helm install my-cloud owncloud/owncloud --namespace owncloud  -f values.yml

and values (probably only last section is important here)
owncloud:
  adminUsername: "admin"
  adminPassword: "qwerty"

  debug: false
  defaultLanguage: "en"
  domain: "cloud."
  trustedDomains:
    - "localhost"
    - "cloud.example.com"

persistence:
  enabled: true
  owncloud:
    size: 20Gi
  accessMode: ReadWriteMany

autoscaling:
  enabled: true
  minReplicas: 1
  maxReplicas: 3

Installed K3s: 1.27.4

Expected behavior:
HPA should work, should be able to retrieve cpu usage from metric server.
Actual behavior:
HPA cannot get cpu usage from metric server.
Additional context / logs:
Usually problem is caused by the lack of metrics server, here it's configured and works perfectly, so there have to be something that unables to communicate from hpa to it.

Do you see cpu metrics in kubectl top pod -A ?
What do the metrics-server pod logs say?

yes, metric servers seems to work correctly for all pods (-A) as well as for owncloud:
kubectl top pod -n owncloud
NAME                                 CPU(cores)   MEMORY(bytes)
my-cloud-owncloud-5cdb678c48-8bgbm   7m           193Mi

also whole prometheus works with no problem

Here is definition of this hpa:
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
  annotations:
    meta.helm.sh/release-name: my-cloud
    meta.helm.sh/release-namespace: owncloud
  creationTimestamp: "2023-08-23T12:45:11Z"
  labels:
    app.kubernetes.io/instance: my-cloud
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: owncloud
    app.kubernetes.io/version: 10.12.2
    helm.sh/chart: owncloud-0.5.3
  name: my-cloud-owncloud
  namespace: owncloud
  resourceVersion: "308826302"
  uid: 703af1af-6927-413f-bcab-9ca4eab12a1d
spec:
  maxReplicas: 3
  metrics:
  - resource:
      name: cpu
      target:
        averageUtilization: 80
        type: Utilization
    type: Resource
  minReplicas: 1
  scaleTargetRef:
    apiVersion: apps/v1
    kind: Deployment
    name: my-cloud-owncloud
status:
  conditions:
  - lastTransitionTime: "2023-08-23T12:45:26Z"
    message: the HPA controller was able to get the target's current scale
    reason: SucceededGetScale
    status: "True"
    type: AbleToScale
  - lastTransitionTime: "2023-08-23T12:45:26Z"
    message: 'the HPA was unable to compute the replica count: failed to get cpu utilization:
      missing request for cpu in container owncloud of Pod my-cloud-owncloud-5cdb678c48-8bgbm'
    reason: FailedGetResourceMetric
    status: "False"
    type: ScalingActive
  currentMetrics: null
  currentReplicas: 1
  desiredReplicas: 0

The status would appear to suggest that you haven't set a CPU request on the pod in question? You have to actually use resource requests and limits in your pods for the HPA to work...
message: 'the HPA was unable to compute the replica count: failed to get cpu utilization:       missing request for cpu in container owncloud of Pod my-cloud-owncloud-5cdb678c48-8bgbm'

Thanks for that tip, I briefly checked that before and helm chart suggested that some limits should be in default configuration, but it was only example. I added those to deployment and HPA successfully got his value. Thanks again for pointing that out


Add cluster labels to kubevirt vm

What this PR does / why we need it:
For https://github.com/kubermatic/kubermatic/issues/10923 we need to add cluster labels to KubeVirt VMs on creation.
Does this PR introduce a user-facing change? Then add your Release Note here:

Add cluster labels to KubeVirt VM

Documentation:

NONE

/hold I would need to check something in kubevirt ccm.

Can you please also update examples/kubevirt-machinedeployment.yaml with the new parameter ?

/lgtm
/approve

/unhold
KKP is merged

/lgtm
/approve

/lgtm
/approve

/retest

/approve


Edit Alert Rule -> No metic graph data.

What kind of request is this (question/bug/enhancement/feature request):
Spelling
Steps to reproduce (least amount of steps as possible):
Edit Alert Rule "Database usage close to the quota 500M"
Result:
Below Expression is highlighted in red "No metic graph data."
Other details that may be helpful:
"metic" is misspelled. It should spell "metric".
Environment information

Rancher version (rancher/rancher/rancher/server image tag or shown bottom left in the UI):
Installation option (single install/HA):
v2.2.8.
I have seen same in previous versions

Cluster information

Cluster type (Hosted/Infrastructure Provider/Custom/Imported):
Machine type (cloud/VM/metal) and specifications (CPU/memory):
Kubernetes version (use kubectl version):

(paste the output here)

Docker version (use docker version):

(paste the output here)

@sauber - This was fixed for 2.3.
.  I'm going to close this, if after upgrading you see again can you take a screen shot.  Thanks.


input type=url empty field fails validation

I added a few input type=url fields to a form. There is no data in the field. The field is not marked as required. If the form is submitted, it fails saying "The url is invalid."
Example:
<input type='url' name='othersocial' value=''>
Proposed fix:
If the field is not required, then value='' could be accepted as a valid URL.

@stevenjaycohen I agree with you on those lines, feel free to create a pull request


E2E coverage

Please describe the task that needs to be done
Port the e2e coverage for source code editor from kaoto-UI

[x] Coverage for forms editing and source code sync
[x] Add E2E PR checks

Second part - PR hook already in place - closing.


Save config files (nginx, cockpit) on git

I could make a dedicated git repo, but it makes sense to me to save them in the same calvinball-website git repo.
Here are some ideas:
https://tylergaw.com/blog/how-i-manage-nginx-config/

check which files are modified to make everything works (nginx config files, but I think there is one more config file for cockpit to allow nginx to be used as reverse proxy)
move them in the git repo
symlink them where they should be
(add symlinks in bootstrap_root.sh ? Also add insall cockpit, since it's becoming a first class citizen project now)
???
profit!

I didn't check the backups but it seems like done for me.


Go to top button must be there at each page

Description.
A back to top button must be there at each page and it shoul come only on scroll not before than that just like interactive book has one .

Are you working on this? (Yes/No)
Yes i have fixed the issue , will raise a pull request soon.

I'm new to open source and I'm really interested in working on this issue.
Is it still open?

@ajaybhaskar-h i am currently working on this issue .
please try on different one

@Palaksharma23 Ok cheers


Partial fix for subquery select parameter count

This PR addresses the issue in #2128, at least as far as the example test cases therein go. It still can't deal with the following case correctly:
  test "join on subquery with simple select and multi element outer select" do
    subquery = Schema |> select([r], %{x: ^999})
    query = Schema
            |> select([r], %{y: ^666, w: ^777})
            |> join(:inner, [c], p in subquery(subquery), true)
            |> where([a, b], a.x == ^111)
            |> normalize

    assert SQL.all(query) ==
           ~s{SELECT $1, $2 FROM "schema" AS s0 INNER JOIN } <>
           ~s{(SELECT $3 AS "x" FROM "schema" AS s0) AS s1 ON TRUE } <>
           ~s{WHERE (s0."x" = $4)}
  end

As such I'm not actually sure if it's a) the right approach and I just need to figure out how to extend it a bit, or b) entirely the wrong approach. So while it solves my immediate issue, I'm happy to take pointers on how to fix it (more) properly.

Thanks @bernardd. I would need to jump into the code to let you know exactly what is left, I will let you know when I do that. The test cases are also extremely helpful.

Properly fixing this sent me down to a rabbit hole and it turned out rewriting how our planner prepares selects was the best fix. This led to PR #2155 which simplifies adapters, uses less memory and performs faster.
Thank you for the test case @bernardd and for the initial solution!


Button called 1

Saw this lovely dialog/button running ":set spl=da spell" that dont make much sense.

In the console it makes a little more sense:
In which directory do you want to write the file:
1. C:\Program Files (x86)\Vim\vim81\spell
[C]ancel, (1):

I don't think we can improve this.  Consider that when 'runtime' has multiple entries there can be several choices.

If its a question it should have a "?".
How about changing the button order?
Have Cancel as the right most button in dialogs consistenty throughout the program.
At least in Windows 7 cancel appear to the right.


Rendering artifacts since Chrome 39 upgrade

Most noticeable in the tree view, resizing it, scrolling, etc. makes it redraw and go away.

/cc @zcbenz Any ideas on this one?

/cc @schacon who also mentioned seeing this

I saw this too sometimes, I believe it is a rendering bug of Chrome.

We're getting rendering issues too, though ours are worse; here's a video:
http://cl.ly/3q3x2t3F3f30
On both OS X and Windows, these boxes blank out (they should normally have content in them). The weird thing is, opening the Dev Tools seems to sometimes make the bug go away

@zcbenz So should we try reporting it to Chromium or maybe search their issue tracker?

We have to make it reproducible on Chrome browser, otherwise it would be unlikely for them to look into this.
I think we can check if this bug exists in Chrome 40 first, it is still beta but the next stable release should be quite close.

I saw it too on OS X, when I enabled "General > Show scroll bars: always" on a retina screen. But can't reproduce it when trying the same again.
Ohh.. It happened when using a theme that has a transparent scrollbar track. So might be related to #4578. The Atom Dark and One Dark theme now have an opaque scrollbar background, which might fix it.

@simurai I am seeing the tree view artifacts while using Atom Dark for both UI and syntax, on OSX.

@wyand Did you see it happen again just recently? I haven't seen it since making the scrollbars have an opaque color #4578.

@simurai I messed up! I I have not made the scrollbars opaque. Misunderstood the previous comment to imply that Atom Dark had opaque scrollbars by default. Sorry about that.

@wyand NP. Yeah, it used to be semi transparent, but got changed to opaque. Not sure when exactly, maybe since 1-2 weeks ago. So if you still see it happen from now on, then this issue might not be related to the scrollbar transparency.

It is still happening to me, on Atom 0.177  on OS X using One Dark UI.

Yep - happening to me as well on Atom 0.176, OS X Yosemite using One Dark UI.

The problem is still visible for me, even after setting an opaque background to the scrollbars in my custom stylesheet.
One problem is that I can't find a way to reproduce the problem 100% of the time. The best I can find is to have a lot of files and nested folders and then try to scroll, open and close folders many times. Sometimes the bug is visible after 2 clicks but most of the time it take 10 or more clicks.
For reference here is the little css I added to my style:
@bg: #1e232a;

::-webkit-scrollbar {
  background: @bg;
}

::-webkit-scrollbar-corner {
  background: @bg;
}

::-webkit-scrollbar-thumb {
  background: lighten(@bg, 10%);
  border: 0;
}

Here's a copy of what I wrote in #7361:
I often get the following display bug in the tree view, with some file names unreadable:

Using Atom 0.210 on OSX 10.10.3.
I can reproduce it pretty reliably the following way:

git clone --depth 1 https://github.com/CocoaPods/CocoaPods.git
atom --safe CocoaPods
ensure no folder is expanded. If some are, just close all of them, close the window and Atom, and reopen it with atom --safe CocoaPods.
expand lib → cocoapods → installer → target_installer

And I get the screenshot I posted above. Note that it seems to depend partly on the width of the tree view and window.

Same here in a retina iMac with 10.10.4 and Atom 1.0.0.

Similar problem here! Running Mac OS 10.10.4 on MacBook Pro

+1, OSX 10.10.4, Atom 1.0.2, Chrome 43.0.2357.132

For those following this issue, the rendering artifacts have nothing to do with the version of Chrome you have installed on your system – rather, this has to do with the version of Chrome (Chromium) that ships with Electron.

@mnquintana is there any way to fix it until Electron ships with a new version of Chromium?

We've upgraded a number of chrome versions since August. I haven't seen this in a while. Anyone else?

Can confirm this is no longer an issue for me.

Closing. If anyone sees this again on a recent version (>1.4.0), let us know!

OSX 10.11.3
Chrome Version 48.0.2564.116 (64-bit)
Atom 1.5.3
Still have issues with artifacts in Google Chrome.

Atom and other Electron-based programs are completely unusable for me. On Ubuntu 15.10. Had the same problem on an older version of Ubuntu.

Atom 1.8.0 artifacting on Windows 8.x.
Chrome Version "51.0.2704.84 m" was having similar issues until I turned off Hardware Acceleration.


Source generated by build plugin is ignored

The source code generated by a SwiftPM build plugin does not get parsed by SourceKit-LSP. So any code referencing generated code is considered an error and "Go to definition..." etc don't work
I have a sample project here https://github.com/adam-fowler/soto-codegenerator-plugin-test. It has an AWS model file that defines the API for the SNS service from AWS. The build plugin generates source code from this and the generated code is used in the file SNSTest.swift. SourceKit-LSP reports 4 problems in this file even though the project builds fine

rdar://102242345

I am running into the same problem. In my project I am using protobuf, grpc, and a custom code generator and LSP isn't able to find any of the generated code (not even after restarting VSCode, LSP, reloading the window, clean and rebuild...)
I created a tiny [reproduction project(https://github.com/mpilman/ProtoRepro) (on macOS the protoc has to be installed and the environment variable PROTOC_PATH=/opt/homebrew/bin/protoc has to be set in order for this to build).
This is what the swift-file looks like in VSCode after the project has been successfully built:

I've moved my generated code from manually running the tool to being a plugin yesterday and I'm affected by this too. The repo is located here, tho it's not a tiny example :)

This appears to be resolved in the latest swift 5.9 toolchain. But we still have the issue where we cannot use go to definition within generated code.

The problem for not getting any semantic functionality in the generated files is that we don’t get compiler arguments for them. As I understand, being able to get them requires a couple of non-trivial changes to SwiftPM, which we’re now tracking in https://github.com/apple/swift-package-manager/issues/6700.

FWIW: Restarting SourceKit doesn't help me at all; I need to manually copy the generated source file into my project folder to get this to work.

I've encountered this issue since I've started a swift vapor project with vscode. But suddenly the lsp is able to parse the generated files after I switched to xcode today to develop the module that uses the swift openapi plugin and exports the generated source code.
A little unwilling to try to replicate by deleting my .build since it's actually working for once 😅 .

FWIW, a workaround for now is to generate all files into their own module with public access level (and leave the module otherwise empty) and then import that module with the generated code.

@ahoppen ’s tip seems to work for me too. Quite hacky though 😅


Rename: API for AE git_refresh to refresh_from_source

As per Jason's comment, the fact that it's git under the covers should be obscured from the caller. A more appropriate name might be refresh or refresh_from_source. That way you can have any number of backings, and they all refresh the same.
I pick refresh_from_source over simple refresh. As it brings less ambiguity about what it does. I hope, users will be able to guess this does git fetch under the hood.
@miq-bot add_label api, euwe/yes
@miq-bot assign @abellotti

Nope.  If you're good, I think we can merge.

Euwe Backport details:
$ git log
commit 5212cd2da8467b52f8fe65f2f5a0a5b9b0e0d814
Author: Alberto Bellotti<EMAIL_ADDRESS>Date:   Sat Oct 1 00:41:33 2016 -0400

    Merge pull request #11556 from isimluk/api-rename-gitrefresh

    Rename: API for AE git_refresh to refresh_from_source
    (cherry picked from commit f6571ab53d57d12742614671ee7202baff2b620e)

Feature doc:
Refresh From Source
When Automate domains are imported from external sources, i.e. Git, the refresh_from_source will re-fetch the Automate domain from external source and refresh the automate domain. This will refetch the Domain from the same reference, i.e. branch or tag and name.
POST /api/automate_domains/SampleDomain
{
"action": "refresh_from_source"
}
All refresh_from_source actions are done asynchronously and the related Task id and href are returned as follows:
{
"success": true,
"message": "Refreshing Automate Domain id:2347 name:'SampleDomain' from git repository",
"task_id": 61,
"task_href": "http://localhost:3000/api/tasks/61",
"href": "http://localhost:3000/api/automate_domains/SampleDomain"
}
If the Domain needs to be refreshed from a different branch or tag and name, the following can be passed in with the refresh_from_source action:
{
"action": "refresh_from_source",
"resource" : {
"ref_type" : "branch" | "tag",
"ref" : "other_branch_or_tag_name"
}
}


WIP: Holistic CLI test harness experiments

This includes

Experiments with extension traits, opening the door for duct, see #32
API for quickly setting up a file system for testing, mostly inspired by my work on cobalt ("I'd like to test X but that'll be too much work to set up a fixture.  Maybe its good enough...").
Comparisons with cli_test_dir, another holistic harness that is more rigid in its API

See commit messages for more details
Work to do

[x] Replace Asserts ability to run commands with traits
[x] Make it easy to setup a tempdir
[ ] Add assertion predicates
[ ] Determine crate(s) structure
[ ] Tests and documentation

btw, tempdir is now merged into tempfile 3.0.0 and was published 2 days ago.

My current thought on crate organization

assert_cmd for writing asserts on std::process::Command
assert_fs for tempfile / path assertions
assert_cli that re-exports both of the above

Couple questions from that

I assume some people would appreciate process::Command helpers that this PR provides but aren't interested in assertions.  Should we advertise that we provide these or create yet another crate for them?

passing in a Vec<u8> for stdin
Turning an Command / Output into a Result

Currently, the tempfile parts have a distinct struct for playing with files in the tempdir.  The cmd parts then support using that to run a command in that directory.  This might run afoul of trait rules if we split this into multiple crates.

Will it?
If it will, should we just switch to attaching these extension traits to Path instead?

This is now implemented as

https://github.com/assert-rs/assert_fs
https://github.com/assert-rs/assert_cmd


The JavaScript/TypeScript bindings don't support engine config parameters

Unless I'm not seeing it, the JavaScript/TypeScript interface doesn't support the ability to pass in engine and driver configuration parameters.  We need to modify those values to handle the larger scene sizes we regularly encounter.
The parameters I'm referring to are the filament::Engine::Config struct values:

commandBufferSizeMB
perRenderPassArenaSizeMB
driverHandleArenaSizeMB
minCommandBufferSizeMB
perFrameCommandsSizeMB

The only engine creation options I see are for GL settings.
Thanks.

Hello,
for information, we have the same problem here.


Added utilities method for inmemory broker.

Since InMemoryBroker is used mostly for testing purposes, it would be pretty convenient to add some methods that will help in testing software.

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 77.51%. Comparing base (e5c6d2b) to head (bb2051b).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #388      +/-   ##
==========================================
+ Coverage   77.40%   77.51%   +0.10%
==========================================
  Files          62       62
  Lines        1890     1899       +9
==========================================
+ Hits         1463     1472       +9
  Misses        427      427

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


Error on level loading

when I play "in the cloud" mappack for SE, CE is broken

Hello, thanks for the report! I tested the mappack but couldn't reproduce the error. I also tried the outdated "beta 8" version of the mappack, but that version didn't cause the error either. Can you confirm that you're playing the latest version of Community Edition?
I've just posted a new release, which is actually just the up-to-date code compiled into a .love file for convenience:
https://github.com/Mari0-CE/Mari0-Community-Edition/releases/tag/1.5
If the error persists, please comment here again with more details on how to reproduce the error. Thanks!

OK!
Vào Th 7, 5 thg 6, 2021 vào lúc 01:59 Hugo @.***> đã
viết:

Hello, thanks for the report! I tested the mappack but couldn't reproduce
the error. I also tried the outdated "beta 8" version of the mappack, but
that version didn't cause the error either. Can you confirm that you're
playing the latest version of Community Edition?
I've just posted a new release, which is actually just the up-to-date code
compiled into a .love file for convenience:
https://github.com/Mari0-CE/Mari0-Community-Edition/releases/tag/1.5
If the error persists, please comment here again with more details on how
to reproduce the error. Thanks!
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/Mari0-CE/Mari0-Community-Edition/issues/178#issuecomment-854939302,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AUK7EY777QGVYERSK3VY2CDTREPB7ANCNFSM46B3HFRQ
.

I play vision 1.4
Vào CN, 6 thg 6, 2021 vào lúc 17:21 Nguyen Minh Dang @.***>
đã viết:

OK!
Vào Th 7, 5 thg 6, 2021 vào lúc 01:59 Hugo @.***>
đã viết:

Hello, thanks for the report! I tested the mappack but couldn't reproduce
the error. I also tried the outdated "beta 8" version of the mappack, but
that version didn't cause the error either. Can you confirm that you're
playing the latest version of Community Edition?
I've just posted a new release, which is actually just the up-to-date
code compiled into a .love file for convenience:
https://github.com/Mari0-CE/Mari0-Community-Edition/releases/tag/1.5
If the error persists, please comment here again with more details on how
to reproduce the error. Thanks!
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/Mari0-CE/Mari0-Community-Edition/issues/178#issuecomment-854939302,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AUK7EY777QGVYERSK3VY2CDTREPB7ANCNFSM46B3HFRQ
.

Assuming this is an old issue, so I'm closing. If the error persists, please open this issue again and provide further details.


Villain v2.0.0

Tracking progress for next version:

[x] Use a better dev-server for testing #481
[x] Uncompress component to hook
[ ] Events
[ ] Add Hooks system
[ ] Refactor repository structure.
[ ] UI bugs.
[ ] Add missing languages to the build.

If you have more ideas or features that you will like to see for the next version leave a comment below.

Quick draft for the new API (based on hooks and events )
const eventHandlers = {
  OnLoading: () => { /* do something */ }
}

<Villain src={'my_archive.cbz'} events={EventHandlers}>
  <MyCustomImageRender />
  // Or use default UI
 <VillainUI options={ theme: 'dark', ...more } />
</Villain>

Also added a better way for tracking the progress from loading the archive to extraction of images.
based on the HtmlMediaElement.ready state property. It can be used instead of writing custom events.
export const READY_STATE = {
  // There is no archive or source to load
  NOTHING: 0,
  // Fetching archive from the web
  LOADING_ARCHIVE: 1,
  // Find all data to unpack
  READING_ARCHIVE: 2,
  // Unpack images and create pages
  UNPACKING_ARCHIVE: 4,
  // All pages where created
  READY: 5,
}


Deprecate legacy block txs pipeline

Remove legacy streamline block txs udfs and streamline tasks
Update silver.transactions to use streamline 2.0 data after cutoffs
Update silver.votes to use streamline 2.0 data after cutoffs
Unrelated...move silver.transaction_votes_with_non_votes model to the backfill folder

DML to remove prod resources after everything is confirmed
DROP TASK solana.streamline.bulk_get_block_txs_historical;
DROP TASK solana.streamline.bulk_get_block_txs_real_time;
DROP FUNCTION solana.streamline.udf_bulk_get_block_txs(boolean);

I had to hardcode some of the predicate values for this to run properly in dev but the idea is this will choose the streamline 2.0 raw data
dbt run -s silver__transactions -t dev
00:07:53  1 of 1 OK created sql incremental model silver.transactions .................... [SUCCESS 1264413 in 174.06s]

dbt run -s silver__votes -t dev
23:48:10  1 of 1 OK created sql incremental model silver.votes ........................... [SUCCESS 3206646 in 128.94s]

Data in DEV

Should we also update other references to complete_block_txs like silver_observability__transactions_completeness and tests ie: tests/test_streamline__complete_block_txs__gaps.sql and /tests/test_silver__transactions_and_votes_missing_7_days.sql


Build of Jan 13 git doesn't work under Linux

At least on 869f400179a32e951a44181165de48094693e280 I see the following in editor UI:

Commit 0a6f409323eda5d1ae2c968bbd482c8af1370466 works without problems.

OS is Debian with GNOME3, also was confurmed on Ubuntu with Unity.

confimed on ubuntu-gnome 14.10

ok found it, will push fix tonight
On Tue, Jan 13, 2015 at 12:50 PM, bojidar-bg<EMAIL_ADDRESS>wrote:

confimed on ubuntu-gnome 14.10
—
Reply to this email directly or view it on GitHub
https://github.com/okamstudio/godot/issues/1208#issuecomment-69765356.


Preflights-helm: run script

Helm preflights script
Lot of options

@ggrosseveurgg could you add a README in the helm-preflights folder explaining how to use the tool?

@ggrosseveurgg could you add a README in the helm-preflights folder explaining how to use the tool?

Done :)

I think this can be merged now, it's fine on templating side

I think this can be merged now, it's fine on templating side

@ggrosseveurgg sounds good! we will merge it along with the 2024.4.0 release.


PHP 8.2 and Symfony 7.2 compatible

Minor fixes to source code to reach compatibility with PHP 8.2 and Symfony 7.2


docs: click.Option intersphinx reference

Pull Request Test Coverage Report for Build 9ff5b3b1-1108-4a5a-9c7e-e75d2687ad5b

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 97.725%

Totals

Change from base Build 7c01e30f-b1e6-4e2d-b9f1-8ccff819fd23:
0.0%

Covered Lines:
1632

Relevant Lines:
1670

💛  - Coveralls


error

File "c:\python\lib\subprocess.py", line 1178, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified

I also get the same error. Module doen't for on python 3.8.2?

What's happening here ?
please post example code!

`import whois
print(whois.query('google.com'))`
output:
`Traceback (most recent call last):
File "C:/Users/Master/Desktop/python_projects/006_whoistutorial/whoisfile.py", line 3, in
print(whois.query('google.com'))
File "C:\Python\Python38\lib\site-packages\whois_init_.py", line 67, in query
pd = do_parse(do_query(d, force, cache_file, slow_down, ignore_returncode), tld)
File "C:\Python\Python38\lib\site-packages\whois_1_query.py", line 46, in do_query
_do_whois_query(dl, ignore_returncode),
File "C:\Python\Python38\lib\site-packages\whois_1_query.py", line 60, in _do_whois_query
p = subprocess.Popen(['whois', '.'.join(dl)], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
File "C:\Python\Python38\lib\subprocess.py", line 854, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Python\Python38\lib\subprocess.py", line 1307, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
Process finished with exit code 1`

I have same error on win10.

There is more discussion about this issue in #123 .


Suggestion: tsconfig.*.json should be detected as jsonc

Since the addition of "extends" in tsconfigs, many projects now have tsconfig.base.json with their common configuration.
I personally also saw cases of tsconfig.browser.json, tsconfig.build.json, and tsconfig.publish.json.
VSCode currently detects tsconfig.json as "JSON With Comments" (jsonc). All the examples above, on the other end, are auto detected as regular json, which makes the tsconfig comments appear as errors.
I always configure my local VSCode with:
    "files.associations": {
        "tsconfig.*.json": "jsonc"
    }

And it works as expected. Would be nice, however, if this was the default configuration. :)

It should also be noted that TypeScript's own repo uses a kebab style file:
https://github.com/Microsoft/TypeScript/blob/master/src/tsconfig-base.json
However, they did remove the template comments.
Perhaps tsconfig-*.json (notice the dash) should also be auto-detected as jsonc.

Yay you. :)


runlevel check in upstart is broken

This reverts commit d73a82c2519095b1ae9aa04eaeb205308897cf3c from #309. As pointed out in the issue and comments, many upstart services don't even supply a runlevel or control startup based on some other parameter than runlevel, e.g.:
start on virtual-filesystems (/etc/init/udev.conf)
start on started networking (/etc/init/rabbitmq-server.conf)
Perhaps a separate .with_runlevel could be added instead, but the default check for a service enabled on ubuntu should not look for a runlevel.

Burn. Sorry dude! I'll look into adding back my original intentions from #309 separately. Thanks for pointing out the upstart nuances so I'll know.
+1 for reverting

Thanks!

Released as v2.15.2.

Thank you!


Editing collection or item by admin menu, all the collections and items are listed despite the collection the user administers

If I log in as a collection administrator, I can see that I am an administrator of Sample Collection. But, if I click on Edit in the administrative menu, it seems I have the chance to edit all the items and collections.
If I try to edit a non-administered collection or item, I get a 403 error.
How to reproduce:

Go to DSpace 8 sandbox

Log in as a collection administrator

Go to profile and check which collection you administer (it is Sample Collection)

Move to the left administrative menu

click on Edit, then Collection (or item)

A full list of collections (or items) is shown

Click on one the collection administrator doesn't administer

Get a 403 error

This does not happen if we try to edit the administered collection, correctly

Expected behaviour
When a collection administrator starts the edit from the administrative menu, the only collections and items listed should be the ones administered.

Closing this as a duplicate of #1331