[next] Wrap all generated CSS with a cascade layer (WIP)

One way to fix https://github.com/mui/pigment-css/issues/199

Updated stackblitz for https://github.com/mui/pigment-css/issues/199
Updated codesandbox for https://github.com/mui/material-ui/issues/43529.

Notes:

Does this have unwanted side-effects?
TODO: sourcemaps. Can we get away with them shifting down 1 line for the sake of a quick fix?
Does this belong in wyw-in-js?

Does this have unwanted side-effects?

We have visual regression tests running with Pigment on the Material UI repo, we can create a draft PR pointing to these builds to check if anything unexpected is happening there. It probably won't cover all edge cases but it would be helpful.

Can we get away with them shifting down 1 line for the sake of a quick fix?

Does this have unwanted side-effects?

We have visual regression tests running with Pigment on the Material UI repo, we can create a draft PR pointing to these builds to check if anything unexpected is happening there. It probably won't cover all edge cases but it would be helpful.

Can we get away with them shifting down 1 line for the sake of a quick fix?

Why do you consider this to be a quick fix?
If it is a quick fix, can users implement it on their side? We could propose it as a workaround until we agree on a definitive solution.

Does this belong in wyw-in-js?

If it is, let's try to fix it on our side anyway. We can open an issue on their repo and refactor it later, but let's not block a fix on our side.

Why do you consider this to be a quick fix?

Because it's just rewriting the css without considering the source maps. This means that the links in devtools will be off by one line. It may be quite a bit more involved to write this in a way that sourcemaps are transformed as well. It all comes down to how much effort we want to pour down into fixing this.

If it is a quick fix, can users implement it on their side?

I don't see how.

I am not sure how fool proof the fix is and if wouldn't cascade into some other bug.
Let me check this change with some calls to globalCss api.

What do you mean with "globalCss api"?
I've tested by adding a ./global.css overriding some properties on Mui classes. That still works since unlayered styles are more specific than layered styles.

Does this have unwanted side-effects?
We'll have to see. It fixes the current bug.

TODO: sourcemaps. Can we get away with them shifting down 1 line for the sake of a quick fix? => let's run with it for now.

Sourcemaps are working without any issues since the linkage is through the generated class names which we are not touching.

Does this belong in wyw-in-js?

Not really since wyw does not have any nextjs specific solution. If it had @wyw/nextjs, then yes.


change api docker entrypoint

This changed recently, think since we got rid of the other main method in the api module?
steps to reproduce error:
bin/remove-vinyl-containers.sh
docker images
docker rmi -f all images ids for the api
change version in build.sbt to 0.8.0
sbt ";project api ;docker:publishLocal"
This makes it so it doesnt pull the current 0.8.0 from docker hub and uses your local
run bin/docker-up-vinyldns.sh
steps to test fix:
repeat above but with this change

Codecov Report

Merging #115 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #115   +/-   ##
=======================================
  Coverage   94.15%   94.15%
=======================================
  Files         103      103
  Lines        4794     4794
  Branches       94       94
=======================================
  Hits         4514     4514
  Misses        280      280

Continue to review full report at Codecov.

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


FLUID-6624: Update migration docs for Infusion 2.0 to 3.0

https://issues.fluidproject.org/browse/FLUID-6624

@amb26 could you please review this? Is there anything else we should document? Is there anything that needs to be deprecated?

I had thought that the "Nexus API methods" at https://docs.fluidproject.org/infusion/development/iocapi#nexus-api-methods were new in 3.0 but amazingly they do actually seem to have been in Infusion 2.0 but were not advertised in the 1.5 to 2.0 API updates. In fact the entirety of the IoC API listed on the page looks like it was new in that release.
We should probably deprecate fluid.table and fluid.pagedTable which will be removed in Infusion 4 or 5 (although we will keep fluid.pager)

@amb26 I've fixed the typos and updated the deprecations. Ready for more review.


add button close

hi @ItsOnlyBinary ,
would have to add a button to close the window of the list of radios, on mobile when we open the window we can not come back on the chat.
Thanks

I have refactored this plugin to a single html file and fixed #1 and #2
it can now be found here: https://github.com/ItsOnlyBinary/my-kiwiirc-plugins

Its perfect , thanks !


fix(typescript): move typescript extensions import/resolver settings …

fix(typescript): move typescript extensions import/resolver setting from typescript-react to typescript
Using typescript-browser or typescript-node will not allow to include several files (like .ts) this was already solved for typescript-react.
The merge will move this configuration to the general typescript configuration

thank you @LOK-Soft


Added CircularBuffer DataStructure. It's also known as circular queue.

Added the circularBuffer DataStructure, All implemented features were adequately testing (unit tests).

can I know why the checks failed and what I can do about it?


Relocate alternative frontend

The alternative frontend now lives at https://github.com/QCHackers/tqec-alternative-frontend.
Related: #212

Why the relocation? Is this on the way to merging the projects?

Why the relocation? Is this on the way to merging the projects?

It is indeed.

@giangiac I think the plan is to cherry pick the important changes from the alternative frontend and wisely merge them to the existing one; which is already under way by @smburdick

@giangiac I think the plan is to cherry pick the important changes from the alternative frontend and wisely merge them to the existing one; which is already under way by @smburdick

I thought having two frontends would be confusing for newcomers.
The alternative frontend is preserved at  https://alt-tqecjs-421617.wl.r.appspot.com/ and https://github.com/QCHackers/tqec-alternative-frontend
I've already cherry picked the features into https://tqec.app (this repo frontend)

I believe we discussed in the weekly call to provide both frontends since they have different features.
I understand that it may be confusing having two frontends if we agree that:

one design is clearly superior and the other just a distraction
or if the TQEC community has no bandwidth to pursue more than one approach.

There can be a case for 2) since only a handful of members are contributing to the frontend.
Concerning 1), the situation is less clear for me. The current frontend has a more professional codebase (good coding practices, enhanced security, ...) while the alternative one offers more functionalities.

I believe we discussed in the weekly call to provide both frontends since they have different features.
I understand that it may be confusing having two frontends if we agree that:

one design is clearly superior and the other just a distraction
or if the TQEC community has no bandwidth to pursue more than one approach.

There can be a case for 2) since only a handful of members are contributing to the frontend. Concerning 1), the situation is less clear for me. The current frontend has a more professional codebase (good coding practices, enhanced security, ...) while the alternative one offers more functionalities.

@giangiac See my above comment (you may not have received the email):

The alternative frontend is preserved at https://alt-tqecjs-421617.wl.r.appspot.com/ and https://github.com/QCHackers/tqec-alternative-frontend

Alternatively, http://tqec2live.org.


ImportError: cannot import name 'MapWrapper'

Hi all,
when trying to import seaborn I get an error which seems Scipy related.
Operating system is windows 10, using VS Code connected to a Jupyter Server.

import seaborn as sns

ImportError                               Traceback (most recent call last)
in ()
----> 1 import seaborn as sns
2 sns.pairplot(train_dataset[["MPG", "Cylinders", "Displacement", "Weight"]],diag_kind="kde", hue="Acceleration")
~\Anaconda3\envs\ERG1\lib\site-packages\seaborn_init_.py in ()
4
5 # Import seaborn objects
----> 6 from .rcmod import *
7 from .utils import *
8 from .palettes import *
~\Anaconda3\envs\ERG1\lib\site-packages\seaborn\rcmod.py in ()
3 import functools
4 import matplotlib as mpl
----> 5 from . import palettes, _orig_rc_params
6
7
~\Anaconda3\envs\ERG1\lib\site-packages\seaborn\palettes.py in ()
10 from .external.six.moves import range
11
---> 12 from .utils import desaturate, set_hls_values, get_color_cycle
13 from .colors import xkcd_rgb, crayons
14
~\Anaconda3\envs\ERG1\lib\site-packages\seaborn\utils.py in ()
5
6 import numpy as np
----> 7 from scipy import stats
8 import pandas as pd
9 import matplotlib as mpl
~\Anaconda3\envs\ERG1\lib\site-packages\scipy\stats_init_.py in ()
365 from future import division, print_function, absolute_import
366
--> 367 from .stats import *
368 from .distributions import *
369 from .morestats import *
~\Anaconda3\envs\ERG1\lib\site-packages\scipy\stats\stats.py in ()
171 from scipy._lib._util import _lazywhere
172 import scipy.special as special
--> 173 from . import distributions
174 from . import mstats_basic
175 from ._stats_mstats_common import _find_repeats, linregress, theilslopes, siegelslopes
~\Anaconda3\envs\ERG1\lib\site-packages\scipy\stats\distributions.py in ()
8 from future import division, print_function, absolute_import
9
---> 10 from ._distn_infrastructure import (entropy, rv_discrete, rv_continuous,
11                                     rv_frozen)
12
~\Anaconda3\envs\ERG1\lib\site-packages\scipy\stats_distn_infrastructure.py in ()
22
23 # for root finding for discrete distribution ppf, and max likelihood estimation
---> 24 from scipy import optimize
25
26 # for functions of continuous distributions (e.g. moments, entropy, cdf)
~\Anaconda3\envs\ERG1\lib\site-packages\scipy\optimize_init_.py in ()
399 from ._linprog import linprog, linprog_verbose_callback
400 from ._hungarian import linear_sum_assignment
--> 401 from ._differentialevolution import differential_evolution
402 from ._lsq import least_squares, lsq_linear
403 from ._constraints import (NonlinearConstraint,
~\Anaconda3\envs\ERG1\lib\site-packages\scipy\optimize_differentialevolution.py in ()
9 from scipy.optimize import OptimizeResult, minimize
10 from scipy.optimize.optimize import _status_message
---> 11 from scipy._lib._util import check_random_state, MapWrapper
12 from scipy._lib.six import xrange, string_types
13
ImportError: cannot import name 'MapWrapper'
Scipy/Numpy/Python version information:

import sys, scipy, numpy; print(scipy.version, numpy.version, sys.version_info)
1.1.0 1.15.4 sys.version_info(major=3, minor=6, micro=7, releaselevel='final', serial=0)

Tried to pip install MapWrapper but: Could not find a version that satisfies the requirement mapwrapper (from versions: ) No matching distribution found for mapwrapper
Is there a general compatebility problem with windows or am I missing something here?
Thanks, and have a great day everyone!

Is there a general compatebility problem with windows or am I missing something here?

print(scipy.__version__) says you have SciPy 1.1.0, however MapWrapper was only introduced in 1.2.0. So you have two SciPy versions installed, or the remains of one install are mixed with a second install. Try uninstalling with both pip and conda until both say that SciPy is no longer installed, then reinstall the version you want.

Hi, I'm getting the same error when importing

import sklearn.cluster as cl
File "/usr/local/anaconda3/lib/python3.6/site-packages/sklearn/cluster/init.py", line 6, in
from ._spectral import spectral_clustering, SpectralClustering
File "/usr/local/anaconda3/lib/python3.6/site-packages/sklearn/cluster/_spectral.py", line 15, in
from ..metrics.pairwise import pairwise_kernels
File "/usr/local/anaconda3/lib/python3.6/site-packages/sklearn/metrics/init.py", line 7, in
from ._ranking import auc
File "/usr/local/anaconda3/lib/python3.6/site-packages/sklearn/metrics/_ranking.py", line 26, in
from scipy.stats import rankdata
File "/usr/local/anaconda3/lib/python3.6/site-packages/scipy/stats/init.py", line 384, in
from .stats import *
File "/usr/local/anaconda3/lib/python3.6/site-packages/scipy/stats/stats.py", line 182, in
from scipy._lib._util import _lazywhere, check_random_state, MapWrapper

Any idea how to fix this?


Clickmap doesn't work with new ID's

My guess is clickmap changed their ID format because mine looks like WVXXXWX5UGKXXX0F16021157XXI3PYX8 and your code seems to have a check in place to only accept a numeric ID

After the following changes:

CLICKMAP_TRACKER_ID_RE = re.compile(r'^\d+$')
+CLICKMAP_TRACKER_ID_RE = re.compile(r'^\S+$')

           "must be a (string containing) a number")

           "must be an alphanumeric string")

I received a 'ClickmapNode' object has no attribute 'portal_id' error

Thanks, I'll change this shortly.

Fixed in e44141be803a4a9b3adeaee9d61cea605d7cb245.


Documentation: add 'yaml.NewConfig' change in 3.2

Fix https://github.com/coreos/etcd/issues/7998.

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@1de75d2). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master    #8004   +/-   ##
=========================================
  Coverage          ?   74.81%
=========================================
  Files             ?      340
  Lines             ?    26538
  Branches          ?        0
=========================================
  Hits              ?    19855
  Misses            ?     5225
  Partials          ?     1458

Continue to review full report at Codecov.

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


db.exists() is broken: with "keep-alive" and HEAD method callback is not invoked.

db.exists() sends "keep-alive" HEAD requests, but at least for me (io.js v1.0.3) it doesn't works and db.exists() callback is never invoked. Following code reproduces this issue: "GET keep-alive", "GET close" and "HEAD close" are called but "HEAD keep-alive" is not called.
var http = require('http');
var request = require('request');

var server = http.createServer(function(request, response) {
  response.writeHead(200, {
    "Content-Type" : "text/plain"
  });
  response.end("Hello World\n");
});

server.listen(8596);

new (request.Request)({
  uri : 'http://localhost:8596/',
  method : 'HEAD',
  headers : {
    Connection : 'keep-alive'
  },
  callback : function(a, b, c) {
    console.log('HEAD keep-alive');
  }
});

new (request.Request)({
  uri : 'http://localhost:8596/',
  method : 'GET',
  headers : {
    Connection : 'keep-alive'
  },
  callback : function(a, b, c) {
    console.log('GET keep-alive');
  }
});

new (request.Request)({
  uri : 'http://localhost:8596/',
  method : 'HEAD',
  callback : function(a, b, c) {
    console.log('HEAD close');
  }
});

new (request.Request)({
  uri : 'http://localhost:8596/',
  method : 'GET',
  callback : function(a, b, c) {
    console.log('GET close');
  }
});

is this issue still relevant ?


Hi

Hi friend, could you rate my repositories and I'll rate yours at the same time? Thanks!

Hi dxp10 san, thank you for offering to evaluate my repository, but I don't think I am interested in an exchange of evaluations at this time. However, I appreciate your willingness to help.

Hi dxp10 san, I will close this issue as it is unrelated to the content of this repository. Thanks.


Update MD file on new branch 2017-22-14_16-11-13

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

split/updateTestCon.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


display flex

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

Describe the solution you'd like:

Describe alternatives you've considered:

Additional context:

Closing as incomplete.


Typedef generic params basic completion and resolving (Issue #304)

Has been created to fix issue #304

Typedef declaration types as typedef Null<T> = T

Typedef structures as typedef Ref<T> = { function get():T; }

Tests added, release notes added
Fix unhandled exception while restoring type name for anonymous type body from parent

Also this issue is fixed:
Before:

After:

Merging...


Add home server

Todo

[ ] Update README.md
[ ] Test on Windows to see if output library can say the word "I"

lol don't know if output can say "I" if it is capital.


Remove duplicate border radius of avatars

Avatar images may look a bit wonky as the border radius is applied twice - to the img-tag as well as to the surrounding span.
Tested with the following:

Safari 11.1.1
Firefox 60.0.2
Chrome 67.0.3396.87

Before:

After:

Thank you for taking the time to contribute to Wagtail 🎉
Your fix is now merged with 4a7e455 and will be available in Wagtail 2.2


Adding spaces before/after <> when using ReactJS syntax

A space is being added inside the React.render() behind the < and before the > after running beautify.
Original:
React.render( <App /> ,
    document.getElementById('main'));

After beautify:
React.render( < App / > ,
    document.getElementById('main'));

ReactJS JSX is not yet supported, however it will be soon! See #144


When related to a certificates operator, charm_tracing provides no way to wait for client charm to settle and form relations before TLS errors thrown

Bug Description
When tempo-k8s is related to a certificates operator, the charm_tracing lib produces a flood of errors when the client application (mysql) is related to tempo-k8s but not the certificates operator. My understanding is that the trace_charm decorator does not check if the relation with the certificates operator exists before trying to export spans to tempo-k8s (it always calls and utilizes the server_cert kwarg in the trace_charm decorator)
To Reproduce
In a microk8s model:
1.git clone git@github.com:canonical/cos-lite-bundle.git
2. tox -e render-edge
3. juju deploy ./bundle.yaml --edge
4. juju deploy -n 1 tempo-k8s --channel edge
5. juju deploy -n 1 self-signed-certificates
6. jhack imatrix fill
7. juju offer tempo-k8s:tracing
8. juju offer self-signed-certificates:certificates
In an lxd model:

git clone git@github.com:canonical/mysql-operator.git
git checkout 6817e0a
tox -e build-production
juju deploy -n 1 ./mysql_ubuntu-22.04-amd64.charm
juju consume <k8s_controller>:admin/<cos_model>.tempo-k8s
juju consume <k8s_controller>:admin/<cos_model>.self-signed-certificates
juju relate mysql:tracing tempo-k8s:tracing

Environment
juju: 3.4.2
lxd: 5.21.1 LTS
MicroK8s v1.27.13 revision 6744
cert_handler.py: v1.8
Relevant log output
When None is passed in as server_cert to the trace_charm decorator
unit-mysql-router-2: 12:55:55 ERROR unit.mysql-router/2.juju-log backend-database:43: Exception while exporting Span batch.
Traceback (most recent call last):
  File "/var/lib/juju/agents/unit-mysql-router-2/charm/venv/urllib3/connectionpool.py", line 714, in urlopen
    httplib_response = self._make_request(
  File "/var/lib/juju/agents/unit-mysql-router-2/charm/venv/urllib3/connectionpool.py", line 403, in _make_request
    self._validate_conn(conn)
  File "/var/lib/juju/agents/unit-mysql-router-2/charm/venv/urllib3/connectionpool.py", line 1053, in _validate_conn
    conn.connect()
  File "/var/lib/juju/agents/unit-mysql-router-2/charm/venv/urllib3/connection.py", line 419, in connect
    self.sock = ssl_wrap_socket(
  File "/var/lib/juju/agents/unit-mysql-router-2/charm/venv/urllib3/util/ssl_.py", line 453, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_in_tls)
  File "/var/lib/juju/agents/unit-mysql-router-2/charm/venv/urllib3/util/ssl_.py", line 495, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock)
  File "/usr/lib/python3.10/ssl.py", line 513, in wrap_socket
    return self.sslsocket_class._create(
  File "/usr/lib/python3.10/ssl.py", line 1100, in _create
    self.do_handshake()
  File "/usr/lib/python3.10/ssl.py", line 1371, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1007)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/var/lib/juju/agents/unit-mysql-router-2/charm/venv/requests/adapters.py", line 486, in send
    resp = conn.urlopen(
  File "/var/lib/juju/agents/unit-mysql-router-2/charm/venv/urllib3/connectionpool.py", line 798, in urlopen
    retries = retries.increment(
  File "/var/lib/juju/agents/unit-mysql-router-2/charm/venv/urllib3/util/retry.py", line 592, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='<IP_ADDRESS>', port=4318): Max retries exceeded with url: /v1/traces (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1007)')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/var/lib/juju/agents/unit-mysql-router-2/charm/venv/opentelemetry/sdk/trace/export/__init__.py", line 368, in _export_batch
    self.span_exporter.export(self.spans_list[:idx])  # type: ignore
  File "/var/lib/juju/agents/unit-mysql-router-2/charm/venv/opentelemetry/exporter/otlp/proto/http/trace_exporter/__init__.py", line 145, in export
    resp = self._export(serialized_data)
  File "/var/lib/juju/agents/unit-mysql-router-2/charm/venv/opentelemetry/exporter/otlp/proto/http/trace_exporter/__init__.py", line 114, in _export
    return self._session.post(
  File "/var/lib/juju/agents/unit-mysql-router-2/charm/venv/requests/sessions.py", line 637, in post
    return self.request("POST", url, data=data, json=json, **kwargs)
  File "/var/lib/juju/agents/unit-mysql-router-2/charm/venv/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
  File "/var/lib/juju/agents/unit-mysql-router-2/charm/venv/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
  File "/var/lib/juju/agents/unit-mysql-router-2/charm/venv/requests/adapters.py", line 517, in send
    raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='<IP_ADDRESS>', port=4318): Max retries exceeded with url: /v1/traces (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1007)')))

When related with tempo-k8s, but no relation with self-signed-certificates while providing a server_cert kwarg:
unit-mysql-router-1: 12:10:56 ERROR unit.mysql-router/1.juju-log backend-database:34: Exception while exporting Span batch.
Traceback (most recent call last):
  File "/var/lib/juju/agents/unit-mysql-router-1/charm/venv/opentelemetry/sdk/trace/export/__init__.py", line 368, in _export_batch
    self.span_exporter.export(self.spans_list[:idx])  # type: ignore
  File "/var/lib/juju/agents/unit-mysql-router-1/charm/venv/opentelemetry/exporter/otlp/proto/http/trace_exporter/__init__.py", line 145, in export
    resp = self._export(serialized_data)
  File "/var/lib/juju/agents/unit-mysql-router-1/charm/venv/opentelemetry/exporter/otlp/proto/http/trace_exporter/__init__.py", line 114, in _export
    return self._session.post(
  File "/var/lib/juju/agents/unit-mysql-router-1/charm/venv/requests/sessions.py", line 637, in post
    return self.request("POST", url, data=data, json=json, **kwargs)
  File "/var/lib/juju/agents/unit-mysql-router-1/charm/venv/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
  File "/var/lib/juju/agents/unit-mysql-router-1/charm/venv/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
  File "/var/lib/juju/agents/unit-mysql-router-1/charm/venv/requests/adapters.py", line 458, in send
    self.cert_verify(conn, request.url, verify, cert)
  File "/var/lib/juju/agents/unit-mysql-router-1/charm/venv/requests/adapters.py", line 261, in cert_verify
    raise OSError(
OSError: Could not find a suitable TLS CA certificate bundle, invalid path: /var/run/tracing-ca.crt
unit-mysql-router-1: 12:11:01 ERROR unit.mysql-router/1.juju-log backend-database:34: Exception while exporting Span batch.
Traceback (most recent call last):
  File "/var/lib/juju/agents/unit-mysql-router-1/charm/venv/opentelemetry/sdk/trace/export/__init__.py", line 368, in _export_batch
    self.span_exporter.export(self.spans_list[:idx])  # type: ignore
  File "/var/lib/juju/agents/unit-mysql-router-1/charm/venv/opentelemetry/exporter/otlp/proto/http/trace_exporter/__init__.py", line 145, in export
    resp = self._export(serialized_data)
  File "/var/lib/juju/agents/unit-mysql-router-1/charm/venv/opentelemetry/exporter/otlp/proto/http/trace_exporter/__init__.py", line 114, in _export
    return self._session.post(
  File "/var/lib/juju/agents/unit-mysql-router-1/charm/venv/requests/sessions.py", line 637, in post
    return self.request("POST", url, data=data, json=json, **kwargs)
  File "/var/lib/juju/agents/unit-mysql-router-1/charm/venv/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
  File "/var/lib/juju/agents/unit-mysql-router-1/charm/venv/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
  File "/var/lib/juju/agents/unit-mysql-router-1/charm/venv/requests/adapters.py", line 458, in send
    self.cert_verify(conn, request.url, verify, cert)
  File "/var/lib/juju/agents/unit-mysql-router-1/charm/venv/requests/adapters.py", line 261, in cert_verify
    raise OSError(
OSError: Could not find a suitable TLS CA certificate bundle, invalid path: /var/run/tracing-ca.crt
unit-mysql-router-1: 12:11:01 ERROR unit.mysql-router/1.juju-log backend-database:34: Exception while exporting Span batch.
Traceback (most recent call last):
  File "/var/lib/juju/agents/unit-mysql-router-1/charm/venv/opentelemetry/sdk/trace/export/__init__.py", line 368, in _export_batch
    self.span_exporter.export(self.spans_list[:idx])  # type: ignore
  File "/var/lib/juju/agents/unit-mysql-router-1/charm/venv/opentelemetry/exporter/otlp/proto/http/trace_exporter/__init__.py", line 145, in export
    resp = self._export(serialized_data)
  File "/var/lib/juju/agents/unit-mysql-router-1/charm/venv/opentelemetry/exporter/otlp/proto/http/trace_exporter/__init__.py", line 114, in _export
    return self._session.post(
  File "/var/lib/juju/agents/unit-mysql-router-1/charm/venv/requests/sessions.py", line 637, in post
    return self.request("POST", url, data=data, json=json, **kwargs)
  File "/var/lib/juju/agents/unit-mysql-router-1/charm/venv/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
  File "/var/lib/juju/agents/unit-mysql-router-1/charm/venv/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
  File "/var/lib/juju/agents/unit-mysql-router-1/charm/venv/requests/adapters.py", line 458, in send
    self.cert_verify(conn, request.url, verify, cert)
  File "/var/lib/juju/agents/unit-mysql-router-1/charm/venv/requests/adapters.py", line 261, in cert_verify
    raise OSError(
OSError: Could not find a suitable TLS CA certificate bundle, invalid path: /var/run/tracing-ca.crt

Additional context
No response

I added last week functionality to only pop that error once per event. But you're still going to get the error if you give charm_tracing a path to a cert but the path isn't valid, or if you're not passing a cert but tempo is expecting https communication.
Indeed, charm_tracing has no knowledge of the relations your charm has. All it knows is whether you're passing a cert_path to it or not. If yes, it attempts to use it to talk to an https endpoint and fails if either the file isn't there, or the server rejects the connection.
We're aware of a race due to the timing of the root span creation.
Issue is, the charm sets up the cert after init (while handling the certificates-relation-something event), but charm_tracing does its thing BEFORE charm init, so it will always give an error the first time. It should go away with the next event though.
Are you seeing this event after the relation is healthy and the cert has been written to disk?
@mmkay we could consider making that error less verbose and just saying 'failed to send trace over https', and put the whole traceback in debug. WDYT?

Can confirm that we are seeing this error trace when the relation with the certificates operator has not yet been formed and the relation is not healthy if it has been formed
Consideration: would it be too convoluted for the trace_charm decorator to have a healthcheck like kwarg (similar to how we do self.tracing.is_ready() before returning a tracing endpoint), and only attempt to export traces to tempo if the healthcheck passes? the TracingEndpointRequirer can expose a method that returns whether the tempo unit has HTTPS enabled, which can be used in the healthcheck property (on the client charm code) to confirm that the relation with the certificates operator exists and that the CA cert has been saved to disk. Furthermore, we can move the self.tracing.is_ready() check to the healthcheck property as well

we can silence the warnings, that's not the issue, the question is how to do that without hiding too many actual errors.
If your tracing instrumentation isn't sending traces, you need to know.
Maybe getting a couple of false positives every time you are setting it up is unavoidable.
It feels hard to generalize what that healthcheck should look like, and you can already disable charm tracing by returning None:
    from charms.tempo_k8s.v1.charm_tracing import trace_charm

    @trace_charm(
        tracing_endpoint="my_tracing_endpoint",
    )
    class MyCharm(CharmBase):

    ...
        @property
        def charm_tracing_ready():
            # custom healthcheck
            return tracing.is_ready() and self.certificates.is_ready() and self.has_written_cert_to_disk() and ...  # custom checks

        @property
        def my_tracing_endpoint(self) -> Optional[str]:
            if self.charm_tracing_ready:
                return self.tracing.otlp_http_endpoint()
            else:
                return None  # charm tracing disabled for the run

does this work for you?
Or does it not solve the issue?

@PietroPasotti you're right, i hadnt thought of returning None for the tracing endpoint if the charm is not ready to send traces (i.e. the certificates relation is not in place). however, how would the charm be able to tell if tempo-k8s is using a TLS cert from a cert operator? would it still make sense to have TracingEndpointRequirer provide this information?

I think we have a neat solution cooking, stay tuned https://github.com/canonical/tempo-k8s-operator/pull/135


bower init: Apply defaults from .bowerrc

When I run bower init, I don't want to be prompted for license and other values each time; I want any values defined in a .bowerrc file to be applied, and the prompt for them skipped.

Bower is deprecated now, and in maintenance mode. Because of this we won't implement new features like this one. We recommend switching to Yarn or npm, and migrating with bower-away


Change Similar manga settings layout

This PR makes changes in displaying Similar Manga Settings
There are two changes made:

Remove redundant R.string.similar_screen text from the settings
Replace the "Credits" string with a new appropriate element in strings_sy.xml, aiding complete translation

before
after

Thanks!


Add note about specifying file extension.

I think it would be better to add this note to inform people about the path of file. First time I looked at this I passed the path of a directory and not a file path and got Illegal operation error. Some people asked a solution for this and they were giving a directory path too.
P.S. I can't say I'm very well at English so you can change the sentences I added but including these as a note in documentation would probably benefit others and prevent getting error just because of being careless.

File names aren’t necessarily with an extension, and we have said /path/to/file, not /path/to/dir or something like that. Is this note really needed?

File names aren’t necessarily with an extension, and we have said /path/to/file, not /path/to/dir or something like that. Is this note really needed?

Oh I see your point. In that case that note wouldnʼt be necessary. Thanks 😁👍


Data folder permissions

Hi, i created unraid template for Spoolman, but i'm having trouble with permissions for the data folder (/home/app/.local/share/spoolman). In unraid, the bound fonder is created with "drwxr-xr-x" and shows this error
Traceback (most recent call last):   File "/home/app/spoolman/.venv/bin/uvicorn", line 8, in <module>     sys.exit(main())              ^^^^^^   File "/home/app/spoolman/.venv/lib/python3.11/site-packages/click/core.py", line 1157, in __call__     return self.main(*args, **kwargs)            ^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/home/app/spoolman/.venv/lib/python3.11/site-packages/click/core.py", line 1078, in main     rv = self.invoke(ctx)          ^^^^^^^^^^^^^^^^   File "/home/app/spoolman/.venv/lib/python3.11/site-packages/click/core.py", line 1434, in invoke     return ctx.invoke(self.callback, **ctx.params)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/home/app/spoolman/.venv/lib/python3.11/site-packages/click/core.py", line 783, in invoke     return __callback(*args, **kwargs)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/home/app/spoolman/.venv/lib/python3.11/site-packages/uvicorn/main.py", line 410, in main     run(   File "/home/app/spoolman/.venv/lib/python3.11/site-packages/uvicorn/main.py", line 578, in run     server.run()   File "/home/app/spoolman/.venv/lib/python3.11/site-packages/uvicorn/server.py", line 61, in run     return asyncio.run(self.serve(sockets=sockets))            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run     return runner.run(main)            ^^^^^^^^^^^^^^^^   File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run     return self._loop.run_until_complete(task)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete   File "/home/app/spoolman/.venv/lib/python3.11/site-packages/uvicorn/server.py", line 68, in serve     config.load()   File "/home/app/spoolman/.venv/lib/python3.11/site-packages/uvicorn/config.py", line 473, in load     self.loaded_app = import_from_string(self.app)                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/home/app/spoolman/.venv/lib/python3.11/site-packages/uvicorn/importer.py", line 21, in import_from_string     module = importlib.import_module(module_str)              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module     return _bootstrap._gcd_import(name[level:], package, level)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load   File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked   File "<frozen importlib._bootstrap>", line 690, in _load_unlocked   File "<frozen importlib._bootstrap_external>", line 940, in exec_module   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed   File "/home/app/spoolman/spoolman/main.py", line 21, in <module>     file_handler = TimedRotatingFileHandler(log_file, when="midnight", backupCount=5)                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/usr/local/lib/python3.11/logging/handlers.py", line 214, in __init__     BaseRotatingHandler.__init__(self, filename, 'a', encoding=encoding,   File "/usr/local/lib/python3.11/logging/handlers.py", line 58, in __init__     logging.FileHandler.__init__(self, filename, mode=mode,   File "/usr/local/lib/python3.11/logging/__init__.py", line 1181, in __init__     StreamHandler.__init__(self, self._open())                                  ^^^^^^^^^^^^   File "/usr/local/lib/python3.11/logging/__init__.py", line 1213, in _open     return open_func(self.baseFilename, self.mode,            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ PermissionError: [Errno 13] Permission denied: '/home/app/.local/share/spoolman/spoolman.log'
if i change it to "drwxr-xrwx" it shows no errors and starts like it should.
Dont know if its unraid error or the container. Any tips how to fix this, other than manualy changing permissions in unraid? Maybe changing owner of the folder in the container? I looked at some other containers' dockerfile, and they usually create folders with chmod 777 or with chown 99:100.
Thanks

See if the discussions here help you #143

See if the discussions here help you #143

it does not help. If i map the folder /data inside container to outside folder, then nothing appears in there, because nothing is there. Its clearly a permission issue inside container for the folder you specify to map in the docker compose file.

I have now put in place two measures for the next release to help reduce this issue in the future:

Spoolman will now crash with a helpful error if it doesn't have permissions to write to the data dir
A big warning will appear in the logs if you haven't mounted the data dir correctly

@Donkie would it be possible that we get environmental variables for the IDs of the user and group so that we can pass them to the container?
While using Unraid, the ownership is nobody:users (99:100) and while chown'ing the data folder will now let the spoolman.log file be created, it also now has a different convention as the rest of the system. I would now have to connect to my Server running Spoolman in the docker container and manually delete it with the root user instead of just opening the network share and deleting it.

yeah the UID GID thing is something I also want to implement, it's quite complicated though so been putting off doing it.

Made a new issue for that: #204
I'll close this issue for now


View Completely disappeared

Not sure what happened, but the tasks view completely disappeared for me. Tried to reinstall it again and that didn't work. Any tips on debugging?

Yep, I tried to rerun from the command line. Here is the log file.
obsidian.md-1693381282583.log

Let me know if you need anything else.

Sorry but I cannot tell how the disappearing would happen from the log file you provide, actually it seems good. Can you tell is there any errors in you console?

Is there anything else you would recommend as a debugging next step? I really like this plugin and I have no idea why it's not working.

I found the bug, and strange behavior.
A few things I tried:

created a new vault and added tasks and the calendar wrapper plugin and copied my files over. The same issue occured.
Then I removed all my files and the issue went away.
I then narrowed it down to one of the daily notes that caused the issue. If I deleted that daily note, then the task view came back.
I further narrowed it down to a single task that caused the issue. When I deleted it, problem went away.
Then I narrowed it down to the date. It turns out that one of my due dates was 2023-11-31, which is not an actual date. I changed it to 2023-11-30 and it worked. That's the bug.

glad to here it worked! And thanks  for the bug locating,I will try to catch errors like this in the code in the next release.

I made exactly the same error (2023-11-31) and had exactly the same result! (view disappeared)  I'm glad I came here looking for answers! Thanks @basikthings !


Add ability to build query string.

Useful to make raw HTTP requests:
Url url(my_url);
url.add_query("q", "data");
// Assuming path is non-empty.
std::string target = "GET " + url.path() + url.query_str();

Thanks for the library !
What do you think about such addition ?

The goal of CxxUrl is to provide an URL parser. Creating and modifying URL is distinct task. It is also much more complex than parsing URL. For this reason I don't want to add your suggested change.
Feel free to fork and create an library to modify or create URL.

@chmike, got it, thank you. I'm closing this request.


fix(trading): fills fees maker discounts

Related issues 🔗
Closes #5401
Description ℹ

[x] Refactor fills table
[x] Override fills discounts if the aggressor is the maker

Demo 📺

Technical 👨🔧
Details of technical implementation that reviewers may need to be aware of, if applicable.

Checked the fees for maker and taker, all looks to be ok. Ben checked suspended yesterday. have checked values with discount, and continuous trading fees


IOS: Share video

I use Share function to share video to tiktok but tiktok app open only, not navigate to post screen. I do this with local file path like var/...../video.mp4. And my app in Under review

@Lg0gs Can  you support me for this issue?

@nguyen95
Do you mean that you submitted the App to the Tiktok developers portal and is still under review?

Yes, and now it was rejected. Share sdk only work if my app was approved, right?

@nguyen95
Yes, without it you can't login or even share since you need tiktok app key and secret

Clearly. Thank you


Add deploying field to application model

What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Does this PR introduce a user-facing change?:

NONE

/cc @cakecatz

/cc @cakecatz

/lgtm

/lgtm

/approve

/approve


HOSTEDCP-1282: Use correct kubeconfig in CCM and remove CCMs access t…

What this PR does / why we need it:

CCM used in cluster config to retrieve the client rather than guest kubeconfig which causes CCM to rely on management KAS access. This PR adds args to use guest kubeconfig to retrieve the client which doesnt need management KAS.

Which issue(s) this PR fixes
Fixes #HOSTEDCP-1282
Checklist

[x] Subject and description added to both, commit and PR.
[x] Relevant issues have been referenced.
[ ] This change includes docs.
[ ] This change includes unit tests.

/retest-required

/retest-required

/test e2e-aws

/approve
/cherry-pick release-4.14

/retitle OCPBUGS-23921: Use correct kubeconfig in CCM and remove CCMs access to the Management Cluster

/jira refresh

/jira refresh

/jira refresh

/lgtm


issue while estimate x,y,z co-ordinate in depth image

Required Info

Camera Model
D400(D455)

Firmware Version
[<IP_ADDRESS>23] (https://github.com/IntelRealSense/librealsense/releases/download/v2.53.1/Intel.RealSense.SDK-WIN10-<IP_ADDRESS>23.exe)

Operating System & Version
Win (10)

Platform
PC

Language
python

Issue Description
I am using realsensce D455 depth camera, and facing issue with estimating (x,y,z) co-ordinate using real sense viewer. The Target object(rack) is not in front of camera as shown in the attached image also camera position is tilted downwards to cover maximum area of rack.

Actually i want to estimate the co-ordinate of the each bins to simulate every bin as a 3d qube,
I used 3d view of realsense viewer and also tried with  rs.rs2_deproject_pixel_to_point by providing pixel value( obtained by open-cv from RGB Image).
The (x,y,z) co-ordinate i am getting from the above method is not giving a proper qube shape.

Hi @nks067  The mix of different depth colors at similar distances instead of a smooth progression from blue (foreground) to red (far distance) suggests that the camera is having difficulty analyzing the scene for depth detail.
When using the RealSense Viewer with a D455, I would first recommend going to the Post-Processing options and disabling a filter called Threshold Filter.  This filter is typically enabled by default and excludes depth data further than 4 meters away, preventing the D455 from taking advantage of its full depth sensing range.  The filter can be disabled by left-clicking on the blue icon next to 'Threshold Filter' to turn it to red (off).
Black colored objects are also difficult to obtain.   This is because it is a general physics principle (not specific to RealSense) that dark grey or black absorbs light and so makes it more difficult for depth cameras to read depth information from such surfaces.  The darker the color shade, the more light that is absorbed and so the less depth detail that the camera can obtain.  Casting a strong light source onto a black surface can help to bring out depth detail from that surface.

Hi @nks067  Do you require further assistance with this case, please?  Thanks!

Case closed due to no further comments received.


General cleanup (needs testing)

The json package was imported twice.

If you want to hold off on merging this I am going through having a bit of a clear up in places, might be good to get that all out of the way in one pull request.

Hey, I've done a little more cleanup. There is still some more to do (e.g. why is requests not used in push) but I think it should all be a bit easier to read now.


#1682 broke controls for old probes connecting to Weave Cloud

Controls have disappeared in Weave Cloud.
The following do show controls

pointing a current-master (revision 21cfc83) scope probe at one of my instances in Dev or Prod
running current-master, v0.17, v0.16.2 locally
pointing a revision 6e2fe78 - the merge of #1682 - probe at one of my instances in Dev
pointing a v0.17 probe at a local current-master app

The following do not show controls

admin scope in Dev and Prod (NB: this is curious since I am quite sure I did see controls in these just after we first noticed the problem today)
pointing a revision 0525a2a probe - the same version as the dev/prod probes - at one of my instances in Dev
doing the same with v0.17, v0.16.2
doing the same with a self-built v0.17.0 branch
pointing a revision 33d5d37 - just before the merge of #1682 - probe at one of my instances in Dev.

Conclusion: #1682 broke compatibility with old probes in multi-tenant scope.

I reckon the problem is that https://github.com/weaveworks/scope/pull/1682/files#diff-96a3c91da3b2f0220e24b6fb4a3b44beL121 does not appear in the aws_collector.

CC @krnowak


VSM blur optimization

Things to try

[x] Do not blur regions, which store the clear value
[ ] Early bail

Clear value (depth) optimization results.
Capture on the demo scene, a 1024x1024 shadow map, and 4 cascades.
MC = millions of GPU clock cycles.

LQ
HQ

Base (MC)
2.243
4.338

Optimization (MC)
1.028
1.983

Optimization (% faster)
54%
54%

Early bail results (value in parentheses is the threshold):

HQ (0.05)
HQ (0.1)

Base (MC)
1.983
1.983

Optimization (MC)
1.378
1.213

Optimization (% faster)
30%
39%


Include OF (offset) command

Add basic way to have the OF (offset) command work in a way that is consistent with the official gerber viewer at https://gerber-viewer.ucamco.com/
%OF[A<±offset value>][B±offset value>]

It is listed a deprecated command, but I think it would be still be good to support it for older files, but I suppose that is for the project manager to decide

In the newer spec it states that the command it to be used only once per file, but in older versions (Rev D, 2001) it merely states that a single use is recommended. A machine I use that takes gerber files has no issues with multiple %OF%* commands in the same file

You can see the difference in the output of the following example file
%FSLAX25Y25*%
%MOMM*%

%ADD13R,0.4X1*%
G04 flash aperture 3 times, using the offset command*

D13*
X0Y0D03*

%OFA5B5*%
X0Y0D03*

%OFA-3B1*%
X0Y0D03*

M02*

The output SVG file (using GerberCairoContext) looks like the preview of the gerber file that the official viewer would give.

Without these changes the three flashes are all drawn at the same location (where each identical X0Y0D03 statement specifies)
p.s. I am not familiar with pull requests, so if I am breaking some kind of unwritten rules or if I should format things differently, do not hesitate to let me know.

@curtacircuitos poke?


fix crash on nudging timing points

It looks like there's a lot of code duplication between hitobjects and timing points, it's best to abstract it away, but this is the easiest fix

rewrote all the stuff with object/timing point adding/removal/moving


Add Initial DB initalisation + Optional do not import default data

when Application gets started for first time, the artisan is not able to create the data, because the DB is completely empty.
first do a fresh migration to create all needed tables, before importing data.
additional created a flag to skip the import of default data, without impact if the variable is not set.

Thanks for this,
In version 3 bar:open command will be removed and you will be able to create multiple bars through the api, so this will not be needed.

at the moment it is not possible to launch a fresh barassistant/saltrim plattform with the given docker documentation.
the bar:open tries to create the admin user with the admin-password in the user table, that does not exist initially.
should maybe considered to release a v2.5.x version, as interims solution.

Oh yeah, I made a mistake in https://github.com/karlomikus/bar-assistant/commit/d5f275d9133e95ec0d04806d0ef4841736042ef5

yes, you may need to do the initial migration before bar:open.
but also on every boot, for update version coverage


XYPlot with animation causes strange tickFormat behavior

I'm using dates as x values in a LineSeries and my labels are behaving strangely during animations.
If I log out the tick values during animations, I'm seeing mutations of the numerical component of the date (i.e. the year in the case below).
Feb 2017
Mar 2017
Apr 2017.0168251202833
May 2017.0168251202833
Jun 2017
Jul 2017

Related https://github.com/uber/react-vis/issues/579

The visual result of changing my date range while animating:

Also fixes current issue where multi-year spanning charts get messed up due to omitting the year in attempt to solve this problem. The below chart spans feb - feb, but both febs get collapsed into a single value since, without any year data, [ { x: 'feb' }...rest of year...{ x: 'feb' }] are interpreted as the same.

could you share your code?

Here's an example that demonstrates the issue:
https://codesandbox.io/s/jxl7o670w
The 'Slice' button will chop dates off of the beginning of the array, and each time you press it you should see the Jan 2019 label go wild.
What I found is, if my x values all contain dates within a single year, everything is OK:
// Everything OK
const data = [
  { x: 'Jun 2018', y: rand(10) },
  { x: 'Jul 2018', y: rand(10) },
  { x: 'Aug 2018', y: rand(10) },
  { x: 'Sep 2018', y: rand(10) },
  { x: 'Oct 2018', y: rand(10) },
]

But if my x value dates include multiple years, I see the label issue:
// Label weirdness
const data = [
  { x: 'Nov 2018', y: rand(10) },
  { x: 'Dec 2018', y: rand(10) },
  { x: 'Jan 2019', y: rand(10) },
  { x: 'Feb 2019', y: rand(10) },
]```

Here's an even stranger example:
https://codesandbox.io/s/7zm84l9411
Strings containing ANY numerical component will show the same behavior -- 'mid123123dle'
But if there are repeated numbers from label to label, only the first is affected -- '76 a', '76 b', '76 c'

Hi, here's a workaround:
https://codesandbox.io/s/9q5x39my4
the data values are going to be interpolated during the animation.
What I've done is put it in a variable outside of XYPlot, then access that variable instead.
Does that work for you?

Thanks! Accessing the data values via array index outside the chart seems to work.
Do you agree that this behavior is a bug? The only case for label interpolation I could see is if my x values were something like [ 1, 2, 3, 4, 5 ] and if the labels themselves animated to shift over. Even then, it feels like it should be opt-in behavior.

@computerjazz You can workaround this by using animation={{ nonAnimatedProps: ["xDomain"] }} so the labels don't get "animated".


Generate media ID (and thus, the timestamp) from an Instagram shortcode

Convert an Instagram shortcode to its media ID: https://gist.github.com/sclark39/9daf13eea9c0b381667b61e3d2e7bc11
Convert a media ID to a timestamp: https://stackoverflow.com/questions/63683015/instagram-media-id-to-timestamp-conversion

For now I'm not going to bother with this. Timestamps are available when images are scraped, so they need to be collected there. Existing images will just use their modified date.


Only use proximity based search if district code is not present

Not needed as can be achieved by not supplying some parameters


p 61; 6.1 Slope typo

first line in the second alinea underneath Gradient.
Current: Notice that if calculate the gradient....
insert "we" or similar after 'if'

cheers


Successfully received the verification email, but got a network error message after enter.

As a record, prepare to troubleshoot the cause and fix.

Admin Auth / Player Auth , there are still such situations.

When using local ip, you need to start the game, open the proxy to take effect, do not know why yet.

I have opened the game.
When I enter a wrong credential:
curl -v -X POST 'http://localhost:443/plugin/admin/auth' -H 'Content-Type: application/json' -d '{"adminVoucher":"aaaaaaaaaaaaa"}'

> POST /plugin/admin/auth HTTP/1.1
> Host: localhost:443
> User-Agent: curl/7.64.0
> Accept: */*
> Content-Type: application/json
> Content-Length: 32
>
* upload completely sent off: 32 out of 32 bytes
< HTTP/1.1 200 OK
< Date: Wed, 28 Dec 2022 07:53:52 GMT
< Content-Type: application/json
< Content-Length: 43
< Server: Jetty(9.4.48.v20220622)
<
* Connection #0 to host localhost left intact
{"code":1006,"msg":"auth fail","data":null}

When I enter a correct credential:
curl -v -X POST 'http://localhost:443/plugin/admin/auth' -H 'Content-Type: application/json' -d '{"adminVoucher":"bd7b881d-b395-4ef7-a054-c10389f5fe43"}'

> POST /plugin/admin/auth HTTP/1.1
> Host: localhost:443
> User-Agent: curl/7.64.0
> Accept: */*
> Content-Type: application/json
> Content-Length: 55
>
* upload completely sent off: 55 out of 55 bytes
< HTTP/1.1 500 Server Error
< Date: Wed, 28 Dec 2022 07:55:16 GMT
< Content-Type: text/plain
< Content-Length: 21
< Server: Jetty(9.4.48.v20220622)
<
* Connection #0 to host localhost left intact
Internal server error

Did you follow the documentation?
If you want to use the launcher, make sure the values of useEncryption and useInRouting in the server config.json file are both false, and then use the http address, like this: http:<IP_ADDRESS>:443, or configure the server with an https certificate, make sure the values of useEncryption and useInRouting are both true, and then you can use the https connection, like this: https:<IP_ADDRESS>
Other launchers like Cultivation also have this problem.

Thanks, I didn't use the launcher, so I didn't modify the configuration of these two items in the configuration file. After I modified them just now, everything is okay.


Convert Template Files encoding format to utf-8

What kind of request is this (question/bug/enhancement/feature request):
Optimisation
Steps to reproduce (least amount of steps as possible):

In the values of the chart, add a Chinese comment as follows.

Launch the app in the app shop and in the preview-values.yaml you can see that the Chinese and symbols are garbled

Expected behavior:
Correct display of Chinese and symbols

https://github.com/cnrancher/pandaria/issues/1435


Added another view and output shapes as text below layers. Would like to see these features in the main repository.

Added reversed view and output shapes.
If draw_reversed=True then the boxes are drawn from front-right to back-left, not from front-left to back-right. Therefore padding_left is needed so that leftmost box does not disappear. There may be a better way to manage the space to the left and to the right. This results into changes in utils.py in Box class
If draw_shapes is 1,2 or 3 the output shapes of each layer a drawn under the respective box as text. draw_shapes can be 0 (no shapes), 1 (shapes beneath every box), 2 (shapes alternating beneath and above every box), 3 (treat boxes between two spacing layers as one unit with same output shapes).
Please do not hesitate contacting me if you have any questions or something is unclear. I hope these changes find their way into the main repository.

Thanks a lot for your pull request it adds a lot of value to visualkeras. I would like to propose some changes.
It would be best to separate the draw_reversed and the output_labels  into two PRs.

draw_reversed looks almost GTM, but I'd like to avoid to force the user to input padding_left, so we should find a way to compute it automatically.
now for the output shapes I'd like to expand the functionality, so the user can define what text to show (and where) e.g. some kind of callable def text_callable(layer_index : int, layer : keras.layer) -> (str, bool)` which returns the text and whether to pplot above or below and provide a default implementation. E.g. number of neurons for linear layers, kernel_size, dilation etc for conv etc


Add sort functionality to tables

Here we are adding sort functionality to Assessments and Object Library
New issue #338 for User table

I added this to the MVP milestone, but I would say it is less important than enabling editing throughout @MattF-NSIDC

@mfisher87 Hey, I just wanted to ask is this still relevant? I actually have something figured out for this ;)

Hey @Sherwin-14 , sorry for the delay in responding. Had a medical emergency with one of my pets (they're recovering well now!).
I haven't used that library before, but perhaps! I'll have to think a little more. I'm also assigned to work on this project for the next couple of weeks, so I'll be more active in the immediate future.
My one thought right now is perhaps we will need to do pagination on the server side. Eventually there may be thousands of Projects, and we probably only want to show ~20 at a time. That can probably wait until we have more data, though.

@mfisher87 I am so sorry to hear that,  I hope he is doing fine ! I just wanted to ask you since I had thought about doing this and your suggestions for pagination is something that I too would ponder on.

He's doing really well now, but still has a week and a half of recovery before he'll be fully healed! I'm going to keep thinking about how we should implement this. cc @rmarow

Just for my curiosity, Is server side sorting something that most web applications do? I mean to say that I had thought of sort-table library as it can easily sort items on the client side. I am just asking this since I have little idea about how production grade applications usually approach situation like these ;)

It depends on the expected scale of the data! There are some pieces of data that we know won't get very big, e.g. the list of possible statuses a survey/project can have, and we will never need to paginate.
The list of all surveys/projects can get pretty big over the years, so I feel server-side pagination is going to lead to the best chance of good performance over the lifetime of the application. I really only reach for pagination for cases where I know the data is big or will grow fast. The SQL database that backs the application is extremely good at grabbing those smaller chunks.

@mfisher87 Hey, Is there any progress in this issue? I was thinking of some solutions for this and i guess an algorithm like bucket or radix sort might be useful here. Would like to know what you think about this ;)

We didn't make it to this issue in our last round of funding, so there was no progress unfortunately :(
In most cases I'd say it's really important to do sorting in the database, but the size of the data in these tables is going to grow at a rate of dozens per year, so perhaps we should take a short-term approach to this problem with a plan to come back and implement a long-term approach later?
Short term approach could be as simple as using an out-of-the-box library to do the sorting in JS (DataTables? - this tutorial looks really helpful).
I think this would be the best place to start, and then we can create a ticket for the long-term approach. What do you think?

A stab at long-term "best practice" approach:

The user clicks the table header to sort by that field. The default is descending.
The page reloads with a new query parameter sort={field_name}.
Flask receives this sort argument and uses it in the db query as order_by(selected_field.desc()) that field.
The Jinja template receives the sorted results and displays them, and an :arrow_down: indicator appears next to the field that is sorted in descending order.
The user clicks the same table header a second time, it switches to ascending order.
Query parameter sort={field_name} asc is passed (or sort=-{field_name} to make it easier to parse?)
Flask receives the sort argument and recognizes the indicator that this should be an ascending sort
The database query does order_by(selected_field.asc()) instead this time
The template indicates ascending order with a :arrow_up: icon

The flask-table library is very outdated but may provide useful code for generating the column header behaviors.
Finally, it would be great to think about pagination at this point. Flask-SQLAlchemy has pagination features out of the box that we could leverage. Again, data growth will be slow, but it would be great to set the app up to be low maintenance over the long term when the data does get too big to reasonably show on one page.
All of this is just thinking out loud, please share your ideas to make it better :) Especially, "should the sort order default to ascending or descending?" For dates, I think descending is preferable, but for alphabetical columns, ascending is preferable. We could allow the user to choose ascending or descending by displaying two buttons for each column. What do you think?
cc @rmarow

Well all the suggestions seem appropriate to me . Although the short-term approach was something similar to what I suggested the only difference was that I did this with sort-table JS . Datatables library also sort's the table on the client side so I guess if that is the way we decide to move forward, then using either of them would suffice. I have done this already using sort-table so you can check if its ok or not;)

have done this already using sort-table so you can check if its ok or not;)

Where can I find this? I may not have time for an in-depth review in the short-term, though.

One thing that we can do is use checkboxes instead of buttons? if it doesn't interfere with the design then I think this maybe a good idea.

Are you imagining being able to sort by multiple columns? It couldn't hurt, but I don't think it will be required (yet).

@mfisher87 Yes I was talking about using multiple columns to sort. I'll fix this and let you know;)

Hey @Sherwin-14 yeah, we had a pretty active work period recently! Anything we can do to explain changes that might help?
I think the most important place to add sorting is the Assessments table. @hazelshapiro can you confirm?

I think the assessments table is a good place to start, but the object library will also need sort/filter functions since we could easily get to 100s of objects @mfisher87 @Sherwin-14

Good point. Since the object library table is likely to get big long before the assessments table, I think that might be an even better place to start.

Moved to the Response object registry/library milestone. I think this will make more sense once we reboot full-on development.

@Sherwin-14 you'll see we made some pushes on your branch. We noticed that when we use the sorting functionality with simple-datatables the Icons go away. youll see in theses screenshots.  We have not found a solution yet but just wanted to keep you in the loop incase you have any ideas

There's some other users reporting this:
https://github.com/fiduswriter/simple-datatables/issues/308
I think we should open a new issue on that repo with an SSCCE / MRE for help with this.

for now we are okay with moving forward without cute tooltips. and will put those back in eventually - will create another issue for that.

@hazelshapiro Let's chat about this if you have 15 free minutes tomorrow! I have some updates that will be easier to show over zoom

@hazelshapiro Let's chat about this if you have 15 free minutes tomorrow! I have some updates that will be easier to show over zoom

I just sent an invite - I could do later in the day (between 2-3) too if that's better.

Created issue #338 for user table, will proceed with Assessment and Object Library for this story's new scope


added new script to fix dynamic headers

This PR fixes dynamic headers not working in CI. The issue stemmed from lockfile not being installed, and my testing environment not matching github actions. It is actually really annoying that Github doensnt open up their containers that they use. 😢
Here is the PR for the main script changes: https://github.com/Helicone/helicone/pull/645/files
You can now run dynamic headers for all tests using the following commands.
python3 -m pip install helicone

from helicone.lock import HeliconeLockManager
HeliconeLockManager.write_custom_property("job_id", "1")
'''
Other Methods:
 - write_custom_property(property_name: str, value: str) // Write a custom property
 - remove_custom_property(property_name: str) // remove a custom property
 - clear_all_properties() // clear all
'''

The tests are broken from an issue on master, but you can see the regression test passing on an earlier fork with the same script
https://github.com/Significant-Gravitas/Auto-GPT-Benchmarks/actions/runs/5677391053/job/15385620197


Alexa Build Error on Rapsberry pi 3 Buster

I am trying to build Alexa on Raspberry pi using this Instructions: https://developer.amazon.com/docs/alexa-voice-service/build-the-avs-device-sdk.html
At start it was giving me this Error : Error : Installing Alexa : libcurl4-openssl-dev : Conflicts: libssl1.0-dev but 1.0.2q-2 is to be installed
For this I removed libssl1.0-dev from pi.sh and then run above setup. It is giving me this Error :
Before running I have installed libssl1.0-dev sparately.
[ 0%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/AVS/src/AlexaClientSDKInit.cpp.o

[ 0%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/LibcurlUtils/CurlEasyHandleWrapper.cpp.o

/home/pi/avs-device-sdk/AVSCommon/AVS/src/AlexaClientSDKInit.cpp:16:10: fatal error: curl/curl.h: No such file or directory

#include <curl/curl.h>

^~~~~~~~~~~~~

compilation terminated.

make[3]: *** [AVSCommon/CMakeFiles/AVSCommon.dir/build.make:141: AVSCommon/CMakeFiles/AVSCommon.dir/AVS/src/AlexaClientSDKInit.cpp.o] Error 1

make[3]: *** Waiting for unfinished jobs....

In file included from /home/pi/avs-device-sdk/AVSCommon/Utils/src/LibcurlUtils/CurlEasyHandleWrapper.cpp:20:

/home/pi/avs-device-sdk/AVSCommon/Utils/include/AVSCommon/Utils/LibcurlUtils/CurlEasyHandleWrapper.h:20:10: fatal error: curl/curl.h: No such file or directory

#include <curl/curl.h>

^~~~~~~~~~~~~

compilation terminated.

make[3]: *** [AVSCommon/CMakeFiles/AVSCommon.dir/build.make:518: AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/LibcurlUtils/CurlEasyHandleWrapper.cpp.o] Error 1

make[2]: *** [CMakeFiles/Makefile2:1519: AVSCommon/CMakeFiles/AVSCommon.dir/all] Error 2

make[1]: *** [CMakeFiles/Makefile2:10239: SampleApp/src/CMakeFiles/SampleApp.dir/rule] Error 2

make: *** [Makefile:2580: SampleApp] Error 2

Please Tell me how to solve this Error.

Hello @rajdpandey,
Please note that we do not yet support the AVS Device SDK for Raspbian Buster (the latest supported version is Stretch).
From the error message you provided it sounds like the build can not find libcurl.
I would have expected that script to re-install libcurl if it was uninstalled.  Have you verified that libcurl4-openssl-dev was installed by setup.sh (e.g., by running:  apt list libcurl4-openssl-dev )?  You might try installing (or re-installing) libcurl4-openssl-dev directly with apt-get rather than via tsetup.sh.
It may also be that the changes to your environment have confused cmake.  You could try wiping out the build directory and re-running setup.sh.
Best regards,
-SWH

Yeah, It ran when I installed it on Raspbian Stretch. So for running full Alexa on the raspberry pi is this: https://developer.amazon.com/docs/alexa-voice-service/build-the-avs-device-sdk.html guide is proper? I am thinking of making it a commercial product. I am having doubt because it says only sample app and when I tried step-by-step instructions the avs-device-SDK was of almost 3GB which wasn't in this instruction. Please Guide me.

Hi @rajdpandey, please note that you will only need the executable and the associated shared libraries and dependencies on the commercial product to run the application.
As for your questions regarding a custom conversation, you may refer to #721 for more information.  Thanks!

@kclchan Hi, I saw #721 but there also nobody answered how to control GPIO through custom skills and the owner of that issue has not provided solution also. There is another question Let's say I create a flask-ask server on raspberry pi (local server) and want to add it to HTTP (Endpoint in Alexa skill) will it work?
I have created a sample but using flask, serveo.net, and Alexa skill. There are two major problems here.
1] Serveo.net changes public url every time on restart and stops after some time. There is no option for static URL.
2] I want to say simple "Alexa, turn on the red light" and make it work. but if I simply say that then it says no smart home device found etc.
I have set Invocation to turn so I thought if I say "Alexa, turn red light on" it will do but it has specified I have to say like "Alexa, ask or tell turn turn red light on" which is not good. So if you have any insight on this please help.

Hi @rajdpandey, for questions related to skill, you will be able to get a better answer from the skill forum.

@kclchan  I have already posted there.

Closing this issue now since the question is posted on the forum.


How to run a community design meeting?

Adding you Katie as well, in case you have any tips/notes to share based on your individual review meetings with customers for LDAP group sync and guest accounts.

Thanks for the review! Updated


Use two's complement in fixed point and improve precision.

Closes #435. Fixed point numbers are now parsed as two's complement.
In addition, this PR removes the use of float when calculating the fixed point number. Instead, a combination of Python's Decimal and Fraction are used to ensure that precise numbers are calculated. To verify this, Hypothesis tests are provided that round trips floating point numbers with bit widths in the range [2, 256].

Super cool, and nice work spinning up Hypothesis for this!
IMO, there's probably no need to wrap up these Python (Hypothesis) tests into the Runt suites. They are two fairly different "kinds" of testing (namely, there is no expected output file from these in-Python tests), so maybe it makes sense to have a more traditional unit-test kind of thing going on for fud functionality. That could be run separately with a Python execution instead of being run by Runt.

Super cool, and nice work spinning up Hypothesis for this!
IMO, there's probably no need to wrap up these Python (Hypothesis) tests into the Runt suites. They are two fairly different "kinds" of testing (namely, there is no expected output file from these in-Python tests), so maybe it makes sense to have a more traditional unit-test kind of thing going on for fud functionality. That could be run separately with a Python execution instead of being run by Runt.

Thanks! Agreed, it did seem quite abnormal.


fix: debugger image url length validation

Change Summary

Always validate image URL length in getFrame, not only when it's a data URL
Merge Checklist

[x] PR has a Changeset
[x] PR includes documentation if necessary
[x] PR updates the boilerplates if necessary

think urls have a limit of ~2000 characters anyhow, no? are people really serving images of 200kb?


cmake: Fix updated path for rpc.h for systems using libtirpc

This closes #224.

Thanks for the contribution. Will be reviewing and integrating in the next few days.
for reference: https://github.com/python/cpython/commit/f3031b8a7ad71d3b6ed05da7f3041d9efbe773cf

Hello @jcfr, any thoughts on this PR?


Transfer rules when renaming the corresponding target table.

Abandoning this PR as it's been implemented using the new transport infrastructure.


[ci:component:github.com/gardener/terraformer:v2.2.0->v2.9.0]

*Release Notes:
The terraform `azurerm` provider plugin is updated from `v2.36.0` to `v2.68.0`.

Once the `azurerm` provider plugin is updated from `v2.36.0` to `v2.68.0` the `skip_provider_registration` flag  in the `provider` section need to be set to `true`.

The following terraform provider plugins are updated:
- hashicorp/terraform-provider-aws: 3.18.0 -> 3.32.0

The following terraform provider plugin is updated:
- aliyun/terraform-provider-alicloud: 1.124.0 -> 1.124.2

The following terraform provider plugin is updated:
- aliyun/terraform-provider-alicloud: 1.121.2 -> 1.124.0

The terraform version for the alicloud, all, aws, azure, gcp, openstack, slim images is updated:
- hashicorp/terraform: 0.12.29 -> 0.12.31

Terraformer now copies Terraform's error outputs to `/terraform-termination-log` to make it available in the containers termination message for better analyzing and more readable error messages (e.g. in the Shoot status).

Terraform provider of Alicloud is upgraded to 1.121.2.

The following terraform provider plugins are updated:
- hashicorp/terraform-provider-google: 3.59.0 -> 3.62.0
- hashicorp/terraform-provider-google-beta: 3.59.0 -> 3.62.0

The aws provider has been downgraded from `3.32.0` to `3.18.0` due to issue with additionally required permission for the AWS accounts.

The golang has been updated to `1.16.2`, the alpine has been updated to `3.13.2`.

The following terraform provider plugins are updated:
- hashicorp/terraform-provider-aws: 3.18.0 -> 3.32.0
- hashicorp/terraform-provider-google: 3.27.0 -> 3.59.0
- hashicorp/terraform-provider-google-beta: 3.27.0 -> 3.59.0

The Terraformer now instantly removes its finalizer from the state `ConfigMap` if the state is empty and `destroy` is called. A separate Terraform `destroy` is not executed.

Terraformer will now publish an additional image without any pre-installed terraform plugins.

Provides support for the Equinix Metal provider, which replaces the Packet one

Similar to https://github.com/gardener/gardener-extension-provider-packet/pull/123#pullrequestreview-599287233
/close


Rename Lineshape's d to distance

Why?

D could stand for anything, its very undescriptive
Other classes and variables aren't named like this, it is position not p for example

I updated docs as well to match. Yes it probably breaks compact but it's 4.0 so this is the right time :P

@akien-mga  fixed :D

Thanks!

Not that I disagree with this rename, but the reason for this name was consistency with Plane.
https://docs.godotengine.org/en/latest/classes/class_plane.html

Not that I disagree with this rename, but the reason for this name was consistency with Plane.
https://docs.godotengine.org/en/latest/classes/class_plane.html

Ok I'll rename it for plane as well


Add documentation around posts__in

Re: #117, @brad-decker indicates around supporting array filters:

You also need to add post__in and post__not_in to query_vars on your wordpress install.

This should be addressed in the readme or API documentation.

Other things to document in the same mode: filtering by post status

Technically post__in has been superseded by include[] so this should document whitelisting specific query variables in a general fashion, possibly by linking to the official docs

With the removal of filter from the 4.7 API and the addition of include() / exclude(), this is no longer relevant. Documentation around how to modify the accepted parameters of an endpoint should live at the REST API developer handbook on developer.wordpress.org, not in a client library.


Please invite me to the GitHub Community Organization

Name
Harshal Raikwar
Discord Username (if applicable)
Tenet#8519
Additional Context
I just received an invitation and came to know about this community.

You have received an email to join, or press this link - https://github.com/JaidevStudio - , and you'll see a banner, for you to join the organisation! 🎉
You can also show that you are part of this org, by making yourself public. This will show our profile org on your profile:
Follow This:

After you join the organisation, search your name in the list of people. 🔍
Follow this below: ⬇

🎉🎊Welcome to Jaidev Studio🎉🎊!!

Why not contribute to...
Unique-Github-Profiles!

If you need anything- help or support - please reopen this issue. Thank you.


Add Collin College to educational domains

Added Collin College to educational domains

@kylegothman I am sorry, the domain collin.edu is removed from our trusted domains list because it was abused in the past. If you are the student of this school, please enroll to GitHub Student Developer Pack at https://education.github.com/discount_requests/application. Then apply for JetBrains educational subscription with your GitHub account (GitHub tab at https://www.jetbrains.com/shop/eform/students).


Contributors must have conda environment called fastaudio for pre-commit to work

Looking at the git hook, it seems that this might need to be something added to the readme in order to make sure that new contributors don't get stuck.
# start templated
INSTALL_PYTHON = '/home/harry/miniconda3/envs/fastaudio/bin/python'
ARGS = ['hook-impl', '--config=.pre-commit-config.yaml', '--hook-type=pre-commit']
# end templated
ARGS.extend(('--hook-dir', os.path.realpath(os.path.dirname(__file__))))
ARGS.append('--')
ARGS.extend(sys.argv[1:])

I think it just picks the python that is activated when you run pre-commit install. I tried cloning again here, and creating a env named fastaudio2. This was my resulting hook:
# start templated
INSTALL_PYTHON = '/home/scart/miniconda3/envs/fastaudio2/bin/python'
ARGS = ['hook-impl', '--config=.pre-commit-config.yaml', '--hook-type=pre-commit']
# end templated
ARGS.extend(('--hook-dir', os.path.realpath(os.path.dirname(__file__))))
ARGS.append('--')
ARGS.extend(sys.argv[1:])

Ok so we should document that you need to run the pre-commit install after activating the environment you intend to work with fastaudio in. If you are planning on contributing that it


Thumbnail gender override for unisex wearables

Be able to create an NFT for both male and female, e.g. with very similar design and slight gender differences, and that display two different gender versions for the thumbnail.
   thumbnail : "dcl:://asdasdasd/generalThumbnail"
   representations : [
     {
        id : "BaseMale"
        thumbnailOverride : "dcl:://asdasdasd/maleThumbnail"
     }.
     {
        id : "BaseFemale"
        thumbnailOverride : "dcl:://asdasdasd/FemaleThumbnail"
     },
     {
        id : "Robot"
        thumbnailOverride : ""
     }
  ]
}```

![image.png](https://images.zenhubusercontent.com/5d91dca0703cca0001efbe30/99c5f190-de1b-4285-bc73-09910249ce8b)

@nachomazzara @ShibuyaMartin Should we take this still into account in the new wearables approach?

@ShibuyaMartin do you know if this is done already?

@olavra no. Will be cool to have a thumbnail for male body shape, another for female body shape or just one unisex.


feat(provider): Add base to ConfigProvider

Move default values to defaults.json
Add base for Grid as a configurable option

@arahansen  I forgot why we implemented Grid and withGrid separately, wouldn't Grid just be withGrid('div')? Not sure if there were some implications for ref? Same thing with Base and withBase

I think Grid could definitely be withGrid('div'). I think grid.js was implemented before we realized we could use strings as arguments to withGrid


[WIP] Fix crash due to no-connectivity

Description
Fix crash when creating a wallet on airplane mode
Motivation and Context
Fixes https://github.com/LN-Zap/zap-iOS/issues/236
How Has This Been Tested?
The fix is not completed yet, we need 2 things to advance:

How do we want the "No internet" view controller to look like? I was thinking maybe an image with 2 texts (title and description) and a CTA on the bottom. Something like:
[Image]
Something went wrong
Seems like you are not connected to the internet
[TRY AGAIN]
What should we do with iOS versions < 12?

Screenshots (if appropriate):
Will add when I code the new error screen
Types of changes

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

Checklist:

[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[X] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

Codecov Report

Merging #346 into master will decrease coverage by 0.00%.
The diff coverage is 0.00%.

@@            Coverage Diff            @@
##           master    #346      +/-   ##
=========================================
- Coverage    6.68%   6.67%   -0.01%
=========================================
  Files         233     234       +1
  Lines        8259    8271      +12
=========================================
  Hits          552     552
- Misses       7707    7719      +12

Impacted Files
Coverage Δ

Library/Helper/NetworkConnection.swift
0.00% <0.00%> (ø)

Continue to review full report at Codecov.

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


enable comment to set merge method label for pingcap/tiflash

Feature Request

[ ] I want enable comment to label the PR method name for pingcap/tiflash repo

/assign wuhuizuo

/auto-cc


Allow user to define default_home_dashboard_path

What is missing?
I can't define a provisioned dashboard as the default dashboard for home.
Why do we need it?
I need to give access to the default dashboard, so my users don't need to navigate.
See: https://grafana.com/docs/grafana/latest/administration/change-home-dashboard/#set-the-default-dashboard-through-configuration
Environment

Role version: f9b04329fb6416a204001255b67683e62496fc71

Ansible version information:
ansible --version

ansible 2.10.5
  config file = None
  configured module search path = ['/Users/endersonmaia/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/Cellar/ansible/2.10.7/libexec/lib/python3.9/site-packages/ansible
  executable location = /usr/local/bin/ansible
  python version = 3.9.1 (default, Feb  3 2021, 07:38:02) [Clang 12.0.0 (clang-1<IP_ADDRESS>)]

a possible "workaround", and maybe there's no need for this issue, would be using grafana_environment ansible variable to define GF_DASHBOARDS_DEFAULT_DASHBOARD_HOME_PATH
didn't test yet
reference : https://grafana.com/docs/grafana/latest/administration/configuration/#configure-with-environment-variables

a possible "workaround", and maybe there's no need for this issue, would be using grafana_environment ansible variable to define GF_DASHBOARDS_DEFAULT_HOME_DASHBOARD_PATH
didn't test yet
reference : https://grafana.com/docs/grafana/latest/administration/configuration/#configure-with-environment-variables

that didn't work!

This role has been deprecated in favor of a the grafana-ansible-collection collection.


mkcloud: Allow custom crowbar networking mode

Introduce a new 'crowbar_networkingmode' variable which defaults to 'single'.
When set to 'team' ('nics' variable must be > 1 then), mkcloud deploys the cloud
with a bonding network setup. This is useful for testing more complex (and more
realistic) scenarios.
Note: The crowbar node itself has no bonding enabled. Our current mkcloud setup
gives the crowbar node only a single nic (even if 'nics' > 1). That's why this
commit adds an extra entry to the conduit_map for the crowbar node.
It can be used to set the Crowbar networking mode which can be 'team' which
does bond multiple interfaces.
This is useful for testing more realistic scenarios where multiple interfaces
are used together.

 All checks passed already

I remember when I tried bonding with mkcloud, I had to change the pci number somewhere in mkcloud because addition nic interfaces were overlapping with pci ids we had. I hope that is fixed somehow.


Recommend pipx for user installation and show how to pip install plugins

Summary
If merged this pull request will update the docs to recommend users install Surfactant with pipx (which hides the manual virtual environment management) and adds an example of installing plugins.
Proposed changes

Recommend pipx for user installation
Add some more detail on how to install plugins

Resolves #204

@nightlark So to confirm for editable installs we're still recommending pip install -e? It looks like pipx install --force --editable . will also create an editable install.

For now we're still recommending pip for an editable install -- I haven't played with using editable pipx installs for development yet, so I'm not sure how that could make things more difficult (e.g. installing a plugin within the editable install, multiple venvs for different feature branches/Python versions, etc).


HA 2024.5.0 Issue Fixes

Attempt to resolve coroutine issues
Update version

Confirmed working

This change is switching from using HA managed executor tasks to unmanaged Python threads. There will be more management required, such as cleaning up when the integration is stopped, and catching and reporting any errors that are thrown.
It may be better to use another HA method of starting executor tasks to keep the HA management of these.
Also, you have a couple of changes from October in there that are already rebased and merged upstream so are causing a conflict for this PR. It would be better to start from a branch that is a fresh copy of upstream.

Closing and updating with feedback.
Thanks @make-all


Add xcpretty_output option to spm action

Checklist

[x] I've run bundle exec rspec from the root directory to see all new and existing tests pass
[x] I've followed the fastlane code style and run bundle exec rubocop -a to ensure the code style is valid
[x] I've read the Contribution Guidelines
[x] I've updated the documentation if necessary.

Motivation and Context

I use spm( swift package manager ) action to run tests of a SwiftPM library. But the output is difficult to see.

Description

The xcpretty works well to summarize the swift test output. So I add xcpretty_output option to the spm action to enable xcpretty.

@taisukeh Thanks for the contribution!


Hyper Parameter Tuning for MMSD model

The label for audio is segmented into many small chunk, how could I improve this phenomenon.
p/s: the speaker prediction is quite good

Can you elaborate more on what you are trying to achieve?

Can you elaborate more on what you are trying to achieve?

I have tried to convert the bottom image to the image on the top, I have done it with
def concate_continues(rttm_file, new_rttm_file, time_distance=0.5):

     f = open(rttm_file, "r", encoding="utf-8")
     rttm_entries = f.read().splitlines()

     prev_speaker = None
     prev_end = None

     STACK = []

     for rttm_entry in rttm_entries:
          fields = rttm_entry.split()
          start_time = float(fields[3])
          end_time = start_time + float(fields[4])
          speaker_label = fields[7]

          if prev_speaker == speaker_label:
               if start_time - prev_end <= time_distance:
                    prev_segment = STACK[-1]
                    STACK = STACK[:-1]
                    prev_duration = float(prev_segment.split()[4])
                    prev_start = float(prev_segment.split()[3])

                    STACK.append(prev_segment.replace(str(prev_duration), str(end_time - prev_start)))
               else:
                    STACK.append(rttm_entry)
          else:
               STACK.append(rttm_entry)

          prev_speaker = speaker_label
          prev_end = end_time

     fw = open(new_rttm_file, "w+", encoding="utf-8")
     for s in STACK:
          fw.write(s + "\n")

     return new_rttm_file


Remove devcontainers from this repo

This repo should be seen as more of a book than a code repo - and while small snippets of sample code is appropriate in running text we want to avoid having large chunks of code in the repo that we have to maintain, check for security issues etc. etc.
In addition, placing code in this repository makes it not very discoverable.  A more appropriate location for the dev containers would be the VS Code Dev Containers Repo
Adding @fnocera and @charleszipp as we have discussed this in recent PRs and @JasonTheDeveloper and @erikschlegel as you have contributed the code for the containers

More specifically this applies to https://github.com/microsoft/code-with-engineering-playbook/tree/master/continuous-integration/devcontainers/terraform/.devcontainer

@TessFerrandez  - Let's discuss during the next champions sync to make sure we're all on the same page with the intent of the playbook repo. I don't agree with the above statement:

placing code in this repository makes it not very discoverable.

@TessFerrandez - Let's discuss during the next champions sync to make sure we're all on the same page with the intent of the playbook repo. I don't agree with the above statement:

placing code in this repository makes it not very discoverable.

I believe @TessFerrandez's intent in suggesting this is that the dev container samples would be more discoverable if they were contributed to an existing, established, and managed repo whose purpose is solely committed to sharing dev container samples. There is an azure-terraform dev container within the repo @TessFerrandez pointed out. Perhaps that could be updated to include the language server?

I would also add that i recently tried using the terraform dev container from that repo and didnt have the best of luck. It seems to be adding quite a bit of extra software into the container. Its not clear why most of it is needed. So I ended up creating my own that just adds azure cli, terraform, and tflint.
I say that to suggest I think there is opportunity to improve the sample for terraform within that repo.

I have edited the issue to add the specifics of what should be covered: not only removing the devcontainer sample from this repo but adding a page on devcontainers that links to the VSCode containers repo and provides links to some commonly used containers.
Thoughts? @charleszipp @TessFerrandez @erikschlegel

LGTM @fnocera


Run Fides from a single command

Description
Currently the Fides server requires a set of configuration variables to function. As part of https://github.com/ethyca/fidesops/pull/1395 we updated Fidesops to run with sane defaults where possible. In other circumstances, it's considered a security vulnerability to provide those defaults (think: root_user, root_password, app_encryption_key etc).

As a developer testing Fides, I want to run a command like nox or docker compose up to run so that I can bring up a released build of Fides easily.

In order to facilitate this we'll need to store variables where we're unable to provide a default in the database, and automatically generate them at runtime if they aren't provided by config. The variables we'll need to do this for are any in the config file where no default can be provided.

Food for thought: we could update fides init to just helpfully generate secure defaults for everything.

OK, this is definitely a duplicate of #1115. Closing in favour of that one instead 👍


Update Settings “general”

Automatically generated by Netlify CMS

👷 Deploy Preview for thunderous-pavlova-1f01d2 processing.

Name
Link

🔨 Latest commit
e107e44cf710a8b14a301fbf0f333a805a2978bf

🔍 Latest deploy log
https://app.netlify.com/sites/thunderous-pavlova-1f01d2/deploys/65136ff033187a000811964c


Added translation of Blake to Russian and Ukrainian

Added translation of Blake to Russian and Ukrainian added new name Igor and added translation to Russian and Ukrainian, json tested https://jsonlint.com/
modified:   names.json

thanks! merged #1


Matrix like type for GIL

Is your feature request related to a problem? Please describe.
Yes. Due to requests in #204 and #615 , it is clear that there is serious need for some sort of matrix like type that is not normalized by default. Image processing and related functionality is in a dire need of this.
Describe the solution you'd like
C++ Example

    // just 2D matrix of floats
    using matrix32f = boost::gil::image<boost::gil::pixel<float, boost::gil::gray_layout_t>>;
    using matrix32f_view = decltype(boost::gil::view(std::declval<matrix32f>()));

    template <typename GrayPixel>
    float saturate_cast(GrayPixel pixel);
    template <typename GrayPixel>
    GrayPixel saturate_cast(float matrix_cell);

    // often needed to convert to/from images read from disk
    template <typename GrayImageView>
    void value_preserving_copy(GrayImageView source, matrix32f_view destination);

    template <typename GrayImageView>
    void saturate_cast_copy(matrix32f_view destination, GrayImageView source);

Describe alternatives you've considered
It is also possible to just implement the following:
template <typename GrayImageView>
void normalize_copy(GrayImageView source, gray32f_view_t destination);

template <typename GrayImageView>
void denormalize_copy(gray32f_view_t source, GrayImageView destination);

Additional context
I believe having just matrix32f will be enough for starters. Most of the CV and IP computations are done in floats anyway.

I also define my own typedefs for float and double when pixel are not exactly colors (photon counts in my case). But this is easily done in the app, no? I would not mind to have them predefined in GIL though. The default channel converter, that maps the range of the source channel type to the destination channel type, can also be customized, e.g.  a round_channel_converter.  Does that help?

@sdebionne @lpranam @mloskot I believe we could mount a lot of functionality on properly written matrix type. Here is the first sketch:
https://github.com/simmplecoder/gil/blob/2D_Convolution_and_Correlation/include/boost/gil/extension/numeric/arithmetics.hpp
https://github.com/simmplecoder/gil/blob/2D_Convolution_and_Correlation/include/boost/gil/extension/numeric/matrix.hpp
These are very rough sketches of what we need. Using those, I was able to fix Hessian corner detector's numeric problems in less than an hour. I believe it is definitely a needed feature. We will iterate on it over the years I guess. For now it supports only single channel float element, so the interface will probably be unstable.
What I would like to do is to provide some simple building blocks on which we could keep building our image processing and other numeric algorithms. Something that would not cause a few pages of compilation errors, that would be reasonably fast or at least not terribly slow, something that is well understood numerically (signedness and range problems are nightmare, it is hard to say if it is bug in the algorithm or the input/output views are not properly typed) and remove the need for separate image/view variables (I guess we could add an implicit conversion function on image that would give the view, only for the matrix types). GIL has great abstractions, but it lacks useful defaults for the cases of image processing and computer vision.