istio.io ops/diagnostic-tools/istioctl-analyze/test.sh test fails on the main branch

(NOTE: This is used to report product bugs:
To report a security vulnerability, please visit https://istio.io/about/security-vulnerabilities
To ask questions about how to use Istio, please visit https://discuss.istio.io)
Bug description
Trying to move the istio.io tests from the release-1.8 branch to main and the test now fails. The tail end of the log (https://storage.googleapis.com/istio-prow/pr-logs/pull/istio_istio.io/8562/doc.test.profile_none_istio.io/1346143342798311424/artifacts/tests-setup-profile-none-344a00/TestDocs/ops/diagnostic-tools/istioctl-analyze/test.sh/test.sh/_test_context/test.sh_output.txt)
VERIFY FAILED get_ratings_virtual_service (timeout after 120s):
received:
"apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
  annotations:
    kubectl.kubernetes.io/last-applied-configuration: |
      {"apiVersion":"networking.istio.io/v1beta1","kind":"VirtualService","metadata":{"annotations":{},"name":"ratings","namespace":"default"},"spec":{"gateways":["bogus-gateway"],"hosts":["ratings"],"http":[{"route":[{"destination":{"host":"ratings"}}]}]}}
  creationTimestamp: "2021-01-04T17:25:46Z"
  generation: 1
  managedFields:
  - apiVersion: networking.istio.io/v1beta1
    fieldsType: FieldsV1
    fieldsV1:
      f:metadata:
        f:annotations:
          .: {}
          f:kubectl.kubernetes.io/last-applied-configuration: {}
      f:spec:
        .: {}
        f:gateways: {}
        f:hosts: {}
        f:http: {}
    manager: kubectl
    operation: Update
    time: "2021-01-04T17:25:46Z"
  - apiVersion: networking.istio.io/v1alpha3
    fieldsType: FieldsV1
    fieldsV1:
      f:status:
        .: {}
        f:validationMessages: {}
    manager: pilot-discovery
    operation: Update
    time: "2021-01-04T17:25:48Z"
  name: ratings
  namespace: default
  resourceVersion: "2021"
  selfLink: /apis/networking.istio.io/v1beta1/namespaces/default/virtualservices/ratings
  uid: e81d42c3-cf44-41fa-9bc1-6ea033828ff9
spec:
  gateways:
  - bogus-gateway
  hosts:
  - ratings
  http:
  - route:
    - destination:
        host: ratings
status:
  validationMessages:
  - documentation_url: https://istio.io/v1.9/docs/reference/config/analysis/ist0101/?ref=status-controller
    level: 3
    type:
      code: IST0101
  - documentation_url: https://istio.io/v1.9/docs/reference/config/analysis/ist0132/?ref=status-controller
    level: 8
    type:
      code: IST0132"
expected:
"apiVersion: networking.istio.io/v1beta1
kind: VirtualService
...
spec:
  gateways:
  - bogus-gateway
  hosts:
  - ratings
...
status:
  validationMessages:
  - documentation_url: https://istio.io/v1.9/docs/reference/config/analysis/ist0101/?ref=status-controller
    type:
      code: IST0101"

[ ] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Extensions and Telemetry
[ ] Security
[ ] Test and Release
[x] User Experience
[ ] Developer Infrastructure
[ ] Upgrade
Expected behavior
tests should pass
Steps to reproduce the bug
Run the istio.io test or try and follow the instructions on the content/en/docs/ops/diagnostic-tools/istioctl-analyze/index.md page.
Version (include the output of istioctl version --remote and kubectl version --short and helm version --short if you used Helm)
main branch
How was Istio installed?
via test framework
Environment where the bug was observed (cloud vendor, OS, etc)
ci pipeline
Additionally, please consider running istioctl bug-report and attach the generated cluster-state tarball to this issue.
Refer cluster state archive for more details.

Noting that there is now a level in the output.

Noting that there is now a level in the output.


Your loss Implementation might be wrong

You implement loss = self.alpha * (1-y) * distance**2 + \                self.beta * y * (torch.max(torch.zeros_like(distance), self.margin - distance)**2)         as your contrastive loss, however, in your dataset split and preprocessing script, you label (genuine, genuine) as 1 and (genuine,forged) as 0, which means when y=0, your loss = alpha * distance between pairs and it will be minimized, but hopefully they should be as far as possible.
loss = self.alpha * y * distance**2 + \                self.beta * (1-y) * (torch.max(torch.zeros_like(distance), self.margin - distance)**2)         would be a correct implementation.

It makes sense. Actually, the (assumed) author implemented it here, but I don't remember why it is different in my code.
Thanks for pointing it out.

As I read the paper, the loss function in the current source code is the same as the formulas (1) in the paper. However, the author said "y is a binary indicator function denoting whether the two samples belong to the same class or not" that it is quite ambiguous


Characteristict ValueUpdated event is not getting all Notifications

I am running a MAUI application using Plugin.BLE 3.1.0, currently I am running from Windows machine. I am able to connect to the bluetooth device and get the Characteristic, then I am subscribing to the event Characteristic.ValueChanged after that I start writing a message to the device
I am receiving Notification but not all of them, after 26 or 27 Notifications the event stop receiving more notification, I am sure there are more because I am testing with other tools like LightBlue or BLE Hero
Steps to reproduce

Find the Service and characteristic
Add the hook for ValueUpdated event
Write a message in the characteristic
Implement the event ValueUpdated

Expected behavior
The ValueUpdated event which is getting the notification is not getting all notifications expected, I am testing the same message with another tools like LightBlue and I am getting more notifications there
Actual behavior
Seems like after around 26 notification it is stop receiving more
Configuration
Version of the Plugin: 3.1.0
Platform: Windows

Hi @ramv133,
I'm the friendly issue checker.
It seems like (25.00%) you haven't used our issue template :cry: I think it is very frustrating for the repository owners, if you ignore them.
If you think it's fine to make an exception, just ignore this message.
But if you think it was a mistake to delete the template, please close the issue and create a new one.
Thanks!


feature: Adds public folder

Re: #322
This adds a Broccoli funnel that will create a public folder in dist that contains only a .gitignore on build.
This is verified with a test added in e2e_workflow.spec.js

This is looking great!
If you could just squash all your commits into one (if you need help we can help you) and then I'll merge that commit.
Good work :+1:

Thanks @hansl! I just rebased everything into a single commit for ya.

You should also clear the Merge commit ;)

@cwramsey Seems like you did something wrong... you'll need to rebase on top of master that's in the original repo (upstream). If you have time I can hop on gitter to help, or if you know what's going on I'll let you fix it :)
I can also just fix it in a separate branch and close this PR. Your name will be on the commit.

I'm fine with you shoving it into a separate branch. My git skills are lacking after a very short night of sleeping last night. That's what I get for trying out github's new update branch button instead of doing it manually!


Update aws-core, http-client-spi, ... to 2.16.22

Updates

software.amazon.awssdk:aws-core
software.amazon.awssdk:http-client-spi
software.amazon.awssdk:netty-nio-client

from 2.16.20 to 2.16.22.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "software.amazon.awssdk" } ]

labels: library-update, semver-patch

Superseded by #283.


Support cpu-based Datasets in Groupby Op

Small follow-up to #685

Simplifies algorithm a bit to take advantage of list aggregation (now handles both "list" and list input from user)
Supports operation on Dataset objects created with cpu=True

@benfred - I realized after the Groupby op went in that cudf already supports a list aggregation (but not by the name "list").  This PR takes advantage of the existing functionality.  Since the same feature exists in Pandas, I also used this as an opportunity to provide cpu support.

rerun tests

rerun tests

rerun tests


FLEX-3816 ~Adds example of astronomical time schedule with an offset value set.

All is well.

Pull request closed as other solution is implemented


fix: operator translate exposeMonitoring for scanner v4

Description
Allow to configure exposeMonitoring helm value for scanner v4 CRDs.
Checklist

[x] Investigated and inspected CI test results
[ ] Unit test and regression tests added
[ ] Evaluated and added CHANGELOG entry if required
[ ] Determined and documented upgrade steps
[ ] Documented user facing changes (create PR based on openshift/openshift-docs and merge into rhacs-docs)

If any of these don't apply, please comment below.
Testing Performed
Here I tell how I validated my change
TODO(replace-me)
Use this space to explain how you validated that your change functions exactly how you expect it.
Feel free to attach JSON snippets, curl commands, screenshots, etc. Apply a simple benchmark: would the information you
provided convince any reviewer or any external reader that you did enough to validate your change.
It is acceptable to assume trust and keep this section light, e.g. as a bullet-point list.
It is acceptable to skip testing in cases when CI is sufficient, or it's a markdown or code comment change only.
It is also acceptable to skip testing for changes that are too taxing to test before merging. In such case you are
responsible for the change after it gets merged which includes reverting, fixing, etc. Make sure you validate the change
ASAP after it gets merged or explain in PR when the validation will be performed.
Explain here why you skipped testing in case you did so.
Have you created automated tests for your change? Explain here which validation activities you did manually and why so.
Reminder for reviewers
In addition to reviewing code here, reviewers must also review testing and request further testing in case the
performed one does not seem sufficient. As a reviewer, you must not approve the change until you understand the
performed testing and you are satisfied with it.

/retest

/test ocp-4-14-scanner-v4-tests

/retest
Looks like a timeout on waiting for a ready scanner-v4-db pod but at the time of pod describes it is ready.


Handle the 404 empty response when getting a single artifact file

https://docs.gitlab.com/ee/api/job_artifacts.html#download-a-single-artifact-file-by-job-id
https://docs.gitlab.com/ee/api/job_artifacts.html#download-a-single-artifact-file-from-specific-tag-or-branch
When downloading a single artifact file that does not exist, GitLab will return an empty 404 response with a zero-length body.
Maybe this behavior only appeared in 16.0+, I upgraded from 15.6 to 16.3 yesterday and then met this problem I've never seen before.
Anyway, we can reproduce it from gitlab.com, eg.

200: https://gitlab.com/api/v4/projects/gitlab-org%2Fgitlab/jobs/5527580160/artifacts/coverage-frontend/lcov.info
404: https://gitlab.com/api/v4/projects/gitlab-org%2Fgitlab/jobs/5527580160/artifacts/foo/bar

For the 404 empty response, NGitLab will throw a System.IO.IOException from GitLabRequest.HandleWebException at https://github.com/ubisoft/NGitLab/blob/6.42.2/NGitLab/Impl/HttpRequestor.GitLabRequest.cs#L133
Stacktrace:
System.IO.IOException: The response ended prematurely, with at least 2 additional bytes expected.
   at System.Net.Http.HttpConnection.ContentLengthReadStream.Read(Span`1 buffer)
   at System.IO.StreamReader.ReadBuffer()
   at System.IO.StreamReader.ReadToEnd()
   at NGitLab.Impl.HttpRequestor.GitLabRequest.HandleWebException(WebException ex) in /_/NGitLab/Impl/HttpRequestor.GitLabRequest.cs:line 133
   at NGitLab.Impl.HttpRequestor.GitLabRequest.GetResponseImpl(RequestOptions options) in /_/NGitLab/Impl/HttpRequestor.GitLabRequest.cs:line 106
   at NGitLab.Extensions.FunctionRetryExtensions.Retry[T](Func`1 action, Func`3 predicate, TimeSpan waitTime, Int32 maxRetryCount, Boolean useExponentialBackoff) in /_/NGitLab/Extensions/FunctionRetryExtensions.cs:line 41
   at NGitLab.Impl.HttpRequestor.Stream(String tailAPIUrl, Action`1 parser) in /_/NGitLab/Impl/HttpRequestor.cs:line 118
   at NGitLab.Impl.JobClient.GetJobArtifact(Int32 jobId, String path)

By the way, shall we always disable the retry policy for this case?

Sorry, it seems like a GitLab bug: https://gitlab.com/gitlab-org/gitlab/-/issues/414807

You can submit a PR to improve this behavior. Maybe a try/catch in https://github.com/ubisoft/NGitLab/blob/6.42.2/NGitLab/Impl/HttpRequestor.GitLabRequest.cs#L127 is enough.


Dashboard "StorageGrid: Overview" wrong unit in panel "Top x tenants by quota usage"

A note for the community

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
If you are interested in working on this issue or have submitted a pull request, please let us know in a comment

Problem
Dashboard "StorageGrid: Overview" shows wrong unit in panel "Top x tenants by quota usage"
Panel shows Bytes (or in my case Milli-Bytes). Metric calculation indicates a percentage 0.1-1 value.
Configuration
No response
Poller
StorageGrid
Version
harvest version 23.08.0-1 (commit 874a1f87) (build date 2023-08-21T08:36:53-0400) linux/amd64
Poller logs
No response
OS and platform
RHEL 8.8
ONTAP or StorageGRID version
11.7.0
Additional Context
No response
References
No response

Thanks @mamoep this bug is fixed in PR #2348


Rework message buffer

Reworking the message buffer to close #54
In this context, the message buffering between the normal message handler and the pipe handler is harmonized.

This PR fixes a bug in the base_communicator:
If the timeout reading for a socket message is 0, it will take the default timeout instead of not waiting at all. Only for timeout=None, the default should be taken.


Is possible to define separator, in French thousand separator as made by space and not comma ?

问题简述 (One-line summary)
版本及环境 (Version & Environment)

ECharts 版本 (ECharts version):
浏览器类型和版本 (Browser version):
操作系统类型和版本 (OS Version):

重现步骤 (Steps to reproduce)

期望结果 (Expected behaviour)
可能哪里有问题 (What went wrong)
ECharts配置项 (ECharts option)

option = {

}

其他信息 (Other comments)

Yes you can format the label by yourself using the formatter option

Not the label the thousand separator i hack this part of your js file :
function addCommas(x) {
    if (isNaN(x)) {
        return '-';
    }
    x = (x + '').split('.');
    return x[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g, '$1 ') + (x.length > 1 ? '.' + x[1] : '');
}
so if you can add in some options the ability to define the thousandSeparator ;)

Hi all,
I run into the same issue with the current latest version.
It is too bad that the default formatter use an hardcoded function like addCommas to format numbers. Of course, we can redefine the formatter for each use case (xAxis.axisLabel, xAxis.axisPointer.label, yAxis.axisLabel, yAxis.axisPointer.label, ...) but this is a lot of work for a default behavior. At least, it should use browser locale to define which ways to format number.
Here is an example :
option = {
    tooltip: {
        trigger: 'axis',
			axisPointer: {
				type: 'cross'
			}
    },
    xAxis: {
        type: 'category',
        data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
    },
    yAxis: {
        type: 'value',
        axisLabel: {
            formatter: '{value}'
        },
        axisPointer: {
            label:{
                formatter: function(a){return a.value.toFixed(2)}
            }
        }
    },
    series: [
        {
            name:'A',
            type:'line',
            data:[120000.5, 132000.5, 101000.5, 134000.5, 90000.5, 230000.5, 210000.5]
        },
        {
            name:'B',
            type:'line',
            data:[220000.5, 282000.5, 201000.5, 234000.5, 290000.5, 430000.5, 410000.5]
        }
    ]
};

As you can see, i redefined formater for yAxis.axisLabel and yAxis.axisPointer.label. Still, i need to do it also for tooltip content. As i'm working with multi-series, the tooltip is different than the other and is much more complicated.
Redefining the formatter should be a workaraound but it shouldn't be enough to close this issue =/

One thing to consider as an easy fix : toLocaleString

cn : https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString
en : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString

It would display number the right way by default depending on environment locale.

Hi Artem,
Thanks again for this, really useful!
I've implemented the axis formatter, here
e_axis takes a new argument formatter to which one passes the formatter. I've made the locale optional and is inferred from Sys.getlocale() and changed the default currency to USD.
library(echarts4r)

cars %>%
  e_charts(speed) %>%
  e_scatter(dist) %>%
  e_y_axis(
    formatter = e_axis_formatter("currency")
  )

I've done something similar for the tooltips here, however I cannot get them to work for some reason. There are errors in the JS or I use them wrongly.
# does not work
cars %>%
  dplyr::mutate(
    dist = dist / 25
  ) %>%
  e_charts(speed) %>%
  e_scatter(dist) %>%
  e_tooltip(
    item_formatter = e_tooltip_item_formatter("percent")
  )

Let me know what you think.

@pissang I think the issue is still there:
https://github.com/apache/incubator-echarts/blob/7887f27a0ff47611d84109f9c9b202b8eaa31094/src/util/format.js#L30
As @astik mentions, it is a lot of work to redefine all formatters for the proper display of the correct thousand / decimal separator.

I'm also interested in a simpler way to display the correct number format. @pissang Is there any advance in this issue?

There is no possibility to provide own implementation of makeValueReadable. There is the only way — to set formatter, but in this case you loose default excellent presentation and have to duplicate it somehow.

Intl.NumberFormat?

There are lots of variations for thousand and decimal separators across different languages. For example, seeing 12345.0 as "12,345" instead of "12 345" is very confusing for cyrillic languages since "12,345" means 12.345 .

@Vovan-VE Yes, in my app I use Intl.NumberFormat / Intl.DateTimeFormat. Issue is that 1) you cannot easily set it globally 2) for tooltip. formatter  you have to duplicate a lot of complex logic, because you want standard tooltip with just changed number/time formatting.
Probably, it is easy to send PR, maybe I will do it when I will finish my app.

We are experimenting this too. We can see it has been mentioned in other issues like #14516 , #17419 and #18264

@Vovan-VE Yes, in my app I use Intl.NumberFormat / Intl.DateTimeFormat. Issue is that 1) you cannot easily set it globally (#8294) 2) for tooltip. formatter  you have to duplicate a lot of complex logic, because you want standard tooltip with just changed number/time formatting.
Probably, it is easy to send PR, maybe I will do it when I will finish my app.

Did you were able to make the PR?


Fix JsChallenge. Resolves #14 #17

CloudFlare changed a bit the HTML code with the JS challenge.

@RyuzakiH I come form the Jackett project. We have thousand of users and we are very dependent on this library. I published this patched version in NuGet.org to be used by Jackett, but we are not interested in forking/maintaining this library. When you publish a fixed version we will use your version again. Thank you!
https://www.nuget.org/packages/CloudflareSolverReNgosang/<IP_ADDRESS>

Thank you @ngosang !!! I really appreciate this!


RPC won't bind on minimal docker-compose example

services:
  bitcoind:
    container_name: bitcoind
    image: ruimarinho/bitcoin-core:latest
    command:
     -signet=1
     -server=1

I keep getting the following error,
Binding RPC on address ::1 port 38332 failed.
I would really appreciate some help for how to get the RPC port to work since I am trying to connect a lightning node to it. I was thinking once I learn how to do this I could add it to the readme.

Docker IPv6 is only supported on Linux hosts and I believe you need to manually enable it.
Try binding to IPv4 allow:
-rpcbind=<IP_ADDRESS>
-rpcallowip=<IP_ADDRESS>/0


sh: yarn: command not found

since codeceptjs is updated to @1.1.3, yarn: command not found error has occurred.
What does preinstall do?
Can you add a check that before running this script preinstall?
$<EMAIL_ADDRESS>preinstall /var/builds/workspace/286168-v3-corp-int/BUILD_CONTAINER/node8/label/DOCKER-LOW/app_root/node_modules/.staging/codeceptjs-97511797
$ yarn --ignore-scripts
$ sh: yarn: command not found

oh, sorry, looks like someone added yarn dependency.
Yarn is an alternative to npm

So is yarn just necessary now? No way to sidestep or ignore it?

The problem was introduced in this commit, in what seems to have been a likely unnecessary change that was never reverted?

My morbid curiosity is seeing what swapping yarn with npm will do.

Yeah, sorry, I thought I removed that line but accidentally it passed to release.
So I removed and published a new release


Adding the Evangelism WG

This officially adds the Evanglism WG to the Community Committee, as per the decision in https://github.com/nodejs/community-committee/issues/86.

Just merged the PR on the CTC side, i.e. this is all yours now. :)

🎉 thanks @addaleax


add batching to kafka producer

Example use: https://code.uberinternal.com/diffusion/DANODE/browse/master/rest_client_example.js

Good start. There's quite a bit of cleanup and streamlining that we can do here.
Ping me if you get stuck with the implementation.

This is in a good spot now.

Could benefit from more tests. Tests for 0 byte messages; small bytes and max-1, max & max+1 bytes of messages.

Thank you so much @Raynos! Your expertise is invaluable and your comments were amazing! I owe you a couple beers and some big favors.

I will add more unit tests after I ran performance / benchmark tests.


ENH: Add RE.clear_suspenders()

Just a convenience. It's annoying to have to write a loop over RE.remove_suspender every time you want to turn suspenders off.

Current coverage is 83.01% (diff: 100%)

Merging #576 into master will increase coverage by 0.01%

@@             master       #576   diff @@
==========================================
  Files            20         20
  Lines          4136       4139     +3
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits           3433       3436     +3
  Misses          703        703
  Partials          0          0

Powered by Codecov. Last update 09f6d19...b23465e


Any investigation on using krun (to be able to run bib non-root)?

Tried my hand at using --runtime=krun with bootc-image-builder to get it to work on non-rootless. But got stuck with the "podman needs root" error.
Has anyone tried it with krun (yet)?
podman run \
    --rm --privileged \
    -it --runtime krun --pull=newer \
    -v $(pwd)/output:/output \
    -v ~/.local/share/containers/storage:/var/lib/containers/storage \
    [quay.io/centos-bootc/bootc-image-builder:latest](http://quay.io/centos-bootc/bootc-image-builder:latest) \
    --type qcow2 \
    --local \
    [quay.io/centos-bootc/centos-bootc:stream9](http://quay.io/centos-bootc/centos-bootc:stream9)
2024/07/29 18:37:58 error: cannot validate the setup: this command must be run in rootful (not rootless) podman

This sounds very exciting - what version of podman is required to use --runtime=krun ?

This sounds very exciting - what version of podman is required to use --runtime=krun ?

You will have to install it on fedora:
sudo dnf copr enable -y slp/libkrunfw
sudo dnf copr enable -y slp/libkrun
sudo dnf copr enable -y slp/crun-krun
sudo dnf install -y crun-krun

but I've been using it on podman 5.0.2

I think https://github.com/containers/podman-bootc/issues/9 is probably the best place to track this...I don't think we should try to do special magic in this project; it's not the right place. To do sophisticated things here in the end we basically need to start with native code executing in the host, which is not what this project does.


Python Request Fails to download

I have created a testing repo to make it easy to find the reason - https://github.com/openedhardware/test_docker_slim
This repository is pretty simple.. just calls an HTTP endpoint to download a static file in a thread!
https://github.com/openedhardware/test_docker_slim/blob/master/main.py
But I get this error messages:
ubuntu@ubuntu-pc:~/test_docker_slim$ docker run --privileged -v /data:/data --rm --network host ts.slim
Starting Testing APP...
Downloading label file - https://raw.githubusercontent.com/pjreddie/darknet/master/data/coco.names
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 160, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/usr/local/lib/python3.7/site-packages/urllib3/util/connection.py", line 61, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/local/lib/python3.7/socket.py", line 752, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
OSError: [Errno 16] Device or resource busy

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 677, in urlopen
    chunked=chunked,
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 381, in _make_request
    self._validate_conn(conn)
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 976, in _validate_conn
    conn.connect()
  File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 308, in connect
    conn = self._new_conn()
  File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 172, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7ff2865661d0>: Failed to establish a new connection: [Errno 16] Device or resource busy

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 725, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py", line 439, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /pjreddie/darknet/master/data/coco.names (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ff2865661d0>: Failed to establish a new connection: [Errno 16] Device or resource busy'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner
    self.run()
  File "main.py", line 15, in run
    r = requests.get(COCO_LABELS_URL)
  File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 76, in get
    return request('get', url, params=params, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 530, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 643, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /pjreddie/darknet/master/data/coco.names (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ff2865661d0>: Failed to establish a new connection: [Errno 16] Device or resource busy'))

Any idea what causes this weird issue?
Cheers.

@kcq
Any update here?
The testing repository is pretty simple as you could see.
Thanks!

I tried to repro it and I haven't had much luck yet... My minified image works fine and it's not failing. I'll try adding code to it.

@kcq
That's pretty odd.
I am building the docker image on Ubuntu18.04.
Should I try on a different platform?
Cheers.

I used python:3.7-slim-buster as the base image like it's done here https://github.com/openedhardware/test_docker_slim/blob/master/Dockerfile  I can try using Ubuntu.

Hi, @kcq
Any good news here?

it's taking a bit longer, but we'll definitely get there :)

Hello, mate.
Any update? @kcq

Hi, @kcq
Any update here?

@kcq
Still waiting for your update... 🙏

sorry it's taking so long... reproducing the condition is tricky... still working on it (i'll try to add a few more changes)

Well, just clone the test docker slim project and build & slimify?
git clone https://github.com/openedhardware/test_docker_slim
cd test_docker_slim
docker build -t ts .
docker-slim build --http-probe=false --include-path /usr/local/lib/python3.7/site-packages/certifi --show-clogs ts
docker run --privileged -v /data:/data --rm --network host ts.slim

Easy enough, isn't it? 😄

With this repro the docker-slim build command fails because the app in the container expects the /data directory to be there and it's not because it's not mounted in the temporary container.
Here's the error snippet from the container logs:
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner
    self.run()
  File "main.py", line 14, in run
    with open(os.path.join('/data/', 'labels.txt'), 'wb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/data/labels.txt'

Because the app in the container exits/terminates early a part part of the application doesn't get to run, so the minified container image doesn't include those parts and when you run docker run --privileged -v $(pwd)/data:/data --rm --network host ts.slim you end up with lots of failures.
When I changed the build command to this version (where I added the --mount flag) the application gets a chance to finish and the minified container images includes everything: docker-slim build --http-probe=false --mount $(pwd)/data:/data --include-path /usr/local/lib/python3.7/site-packages/certifi --show-clogs ts
Now running docker run --privileged -v /data:/data --rm --network host ts.slim doesn't fail I get data/labels.txt that's 625 bytes with the data the containerized app downloaded.
It'll be good for docker-slim to detect the target application failures better to know if the minified container is any good.

With this repro the docker-slim build command fails because the app in the container expects the /data directory to be there and it's not because it's not mounted in the temporary container.
Here's the error snippet from the container logs:
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner
    self.run()
  File "main.py", line 14, in run
    with open(os.path.join('/data/', 'labels.txt'), 'wb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/data/labels.txt'

Because the app in the container exits/terminates early a part part of the application doesn't get to run, so the minified container image doesn't include those parts and when you run docker run --privileged -v $(pwd)/data:/data --rm --network host ts.slim you end up with lots of failures.
When I changed the build command to this version (where I added the --mount flag) the application gets a chance to finish and the minified container images includes everything: docker-slim build --http-probe=false --mount $(pwd)/data:/data --include-path /usr/local/lib/python3.7/site-packages/certifi --show-clogs ts
Now running docker run --privileged -v /data:/data --rm --network host ts.slim doesn't fail I get data/labels.txt that's 625 bytes with the data the containerized app downloaded.
It'll be good for docker-slim to detect the target application failures better to know if the minified container is any good.

Boom! That's a piece of great news!
Yeah, let me try with --mount flag quickly.
Thanks a lot! 🎉

Boom! That's a piece of great news!
Yeah, let me try with --mount flag quickly.
Thanks a lot! 🎉

Yes, it works! No error messages!
Just curious why $(pwd) is needed in the value of --mount flag?
Cheers!

Yes, it works! No error messages!
Just curious why $(pwd) is needed in the value of --mount flag?
Cheers!

Yes, it works! No error messages!
Just curious why $(pwd) is needed in the value of --mount flag?
Cheers!

$(pwd) is specific to my test environment. I had my data directory where I was running the commands (there's no /data (no root data directory) on my test system). If you do have /data on your system then --mount /data:/data with docker-slim build might also work. It might still fail with Mac OS where Docker is doing extra magic to expose the local Mac directories to the Docker daemon. By default, Docker on Mac make /Users, /Volumes, /private  and /tmp sharable/mountable (more about it here: https://docs.docker.com/docker-for-mac/#resources ).
Another option is to provide the local directory path explicitly with the --mount flag. I just used $(pwd) as a shortcut :-)

Yes, it works! No error messages!
Just curious why $(pwd) is needed in the value of --mount flag?
Cheers!

$(pwd) is specific to my test environment. I had my data directory where I was running the commands (there's no /data (no root data directory) on my test system). If you do have /data on your system then --mount /data:/data with docker-slim build might also work. It might still fail with Mac OS where Docker is doing extra magic to expose the local Mac directories to the Docker daemon. By default, Docker on Mac make /Users, /Volumes, /private  and /tmp sharable/mountable (more about it here: https://docs.docker.com/docker-for-mac/#resources ).
Another option is to provide the local directory path explicitly with the --mount flag. I just used $(pwd) as a shortcut :-)

@openedhardware  - For my understanding, did adding --mount solve your Failed to establish a new connection: [Errno 16] Device or resource busy problem? I'm currently facing the same problem on a HTTP request....

I have similar issue with python flask application, after slimming getting "Device or resource busy" error when requesting external sites via requests lib. Did not solve with --mount. @engin-can  did you find any solution for that yet?

@openedhardware - For my understanding, did adding --mount solve your Failed to establish a new connection: [Errno 16] Device or resource busy problem? I'm currently facing the same problem on a HTTP request....

is it possible to share more about your app and how it's containerized? what's the base image? what kind of app do you have? what's your entrypoint/cmd like?

I have similar issue with python flask application, after slimming getting "Device or resource busy" error when requesting external sites via requests lib. Did not solve with --mount. @engin-can did you find any solution for that yet?

what's your base image? and just to double check... you have a flask api where the handler makes an external call using 'requests', right? is it a get request or a post request?


K8SPXC-551 Use plaintext user secret

Since some users struggle to operate with base64 tool
we are switching to plaintext mode

Test name
Status

storage
passed

recreate
passed

scaling
passed

big-data
passed

haproxy
passed

upgrade-haproxy
failed

init-deploy
passed

self-healing
failed

scaling-proxysql
passed

upgrade-proxysql
failed

restore-to-encrypted-cluster
passed

security-context
passed

limits
failed

smart-update
passed

demand-backup
passed

monitoring
passed

monitoring-2-0
passed

self-healing-advanced
passed

affinity
passed

operator-self-healing
failed

one-pod
failed

auto-tuning
passed

scheduled-backup
passed

upgrade-consistency
passed

proxysql-sidecar-res-limits
passed

users
passed

demand-backup-encrypted-with-tls
passed

tls-issue-self
passed

tls-issue-cert-manager
passed

tls-issue-cert-manager-ref
passed

validation-hook
passed


Docs advide poor npm practice

Issue
This isn't really a question, but not a bug with the software itself. It's feedback on the documentation advising really strange npm usage.
From here The following content is included:

NPM
If you want to use NPM to download oidc-client, then run these commands from your JavaScriptClient project directory::
npm i oidc-client
copy node_modules\oidc-client\dist* wwwroot
This downloads the latest oidc-client package locally, and then copies the relevant JavaScript files into ~/wwwroot so they >can be served up by your application.

This is strange advice because if you're just going to copy the content from the node modules folder you should just download it manually and not pretend those files are controlled or versioned by npm. Copying the content out defeats any benefits of using npm. Better advice would be that if you're using npm you should install the package then include it in your build and bundling configuration.

It's a sample and wasn't intended to tackle the larger issues around versioning and package management. If you want to add a note to the docs/QS, feel free to propose a PR.


When will the scanTransactions feature be supported?

https://github.com/monero-project/monero/pull/7312
When will the scanTransactions feature be supported for MoneroWalletFull?

Working on a new release today which supports it.

It's supported in the v0.7.3 release.


Congratutlations

@Alex313031  Congratulations for this video from this well-known YouTuber who praises Thorium browser as the Best browser in the world and calls for you to sponsor you 💯 but I do not agree with the terms he used when he spoke about your interest for windows 7 !
The Best Web Browser
https://www.youtube.com/watch?v=naDYUVFs1-8

Well It's true... !

@imdigitalashish  Thank you :)


adjusted PR job for kie-docs

And PR job for kie-docs is now standalone (not in main project build) to avoid upstream and downstream repos build. The definition of job is here:
https://github.com/kiegroup/kie-jenkins-scripts/blob/master/job-dsls/jobs/kie_docs_pr.groovy

@pszubiak so - best to remove it again?

@mbiarnes @mareknovotny When kie-docs job was switched to standalone I didn't make archive artifacts functionality. I should add a method to parent class [1] PrVerificationJob to add functionality with archiving artifacts. So far haven't found time for this.
[1] https://github.com/kiegroup/kie-jenkins-scripts/blob/master/job-dsls/src/main/groovy/org/kie/jenkins/jobdsl/templates/PrVerificationJob.groovy

@mareknovotny @jomarko @pszubiak
I will close this PR since this is not valid anymore. Will work with Piotr on another.

@mareknovotny Actually @mbiarnes foud that I did archive functionality as an ugly if ;-)
https://github.com/kiegroup/kie-jenkins-scripts/blob/master/job-dsls/jobs/pr_jobs.groovy#L184-L193

@mbiarnes @mareknovotny Sorry it's not a parent class. My brain is not working today.. I need more coffee.

There is no code about archiving in PrVerificationJob class. We can copy that if or create a new method.


Posh-Git not working correctly with Conda environments

System Details

posh-git version/path: 0.7.3
PowerShell version: 6.2.3
Git version: 2.25.0.windows.1
Operating system name and version: Windows 7 (Microsoft Windows NT 6.1.7601 Service Pack 1)

Issue Description
I am experiencing a problem with how posh-git interacts with Conda environments. I am a Python developer and use Anaconda and use Conda to manage my environments. PowerShell is my shell of choice. I currently don't have any customization in my profile.ps1 other than the Conda activate command. This is my current profile:
(& "C:\Users\User\Anaconda3\Scripts\conda.exe" "shell.powershell" "hook") | Out-String | Invoke-Expression
So, the trouble is when Conda activate an environment, its name is added to my prompt in parenthesis. Now, if I do Import-Module posh-git nothing really works when in a git repo directory. Only if I remove that Conda activation code and then try to import posh-git I see that posh-git is working correctly when in a git repository directory. But when posh-git is working correctly, my Conda environments are disabled and cannot be used. That is why I require assistance on how to make both work. What changes should I make to my profile.ps1. Any help at all is highly appreciated.
P.S I don't have any proper knowledge about PowerShell scripting. So my question might be silly and easy to solve but I can't really figure out how to do it. Thanks in advance for any help

Conda and posh-git are fighting over the definition of prompt. If posh-git sees prompt has already been customized, we'll avoid overwriting it with ours.
When you have Conda initialized but not posh-git, what do you get from Get-Command prompt | % Definition?

It would also help if you can provide the output of (& "C:\Users\User\Anaconda3\Scripts\conda.exe" "shell.powershell" "hook") | Out-String. In both cases you can pipe into clip to copy to your clipboard, i.e. (& "C:\Users\User\Anaconda3\Scripts\conda.exe" "shell.powershell" "hook") | Out-String | clip.

Thanks for the reply. These are my outputs.
For Get-Command prompt | % Definition:

    if ($Env:CONDA_PROMPT_MODIFIER) {
        $Env:CONDA_PROMPT_MODIFIER | Write-Host -NoNewline
    }
    CondaPromptBackup;

For (& "C:\Users\User\Anaconda3\Scripts\conda.exe" "shell.powershell" "hook") | Out-String:
"""
$Env:CONDA_EXE = "C:\Users\User\Anaconda3\Scripts\conda.exe"
$Env:_CE_M = ""
$Env:_CE_CONDA = ""
$Env:_CONDA_ROOT = "C:\Users\User\Anaconda3"
$Env:_CONDA_EXE = "C:\Users\User\Anaconda3\Scripts\conda.exe"
Import-Module "$Env:_CONDA_ROOT\shell\condabin\Conda.psm1"
conda activate base
Add-CondaEnvironmentToPrompt
"""

Can you also share Get-Command Add-CondaEnvironmentToPrompt | % Definition?
That output might change my suggestion, but a couple preliminary options...

If you Import-Module posh-git before the Conda stuff runs, it might Just Work™. It looks like their module tries to backup the current prompt before applying their own, similar to how posh-git used to work. That should result in showing their stuff then the normal posh-git prompt output.
There might be a way to suppress Add-CondaEnvironmentToPrompt, either within the function or by literally stripping it out before Out-String (e.g.. | ? { $_ -ne 'Add-CondaEnvironmentToPrompt' } | Out-String). Then you could use the various posh-git settings (more available if you upgrade to 1.0.0-beta4, BTW) to insert $Env:CONDA_PROMPT_MODIFIER wherever you want.

Hey! Thanks for this!! I did not have to run that command because your preliminary options worked out. It turns out you were right about the first one. I had to import posh-git before Conda made any environment activation. I just added Import-Module posh-git before the Conda code and now whenever I am in a git repository, posh-git shows some beautiful git information and Conda still shows my current Python environment. Thanks for the help man.
By the way, for any future reference and troubleshooting, if I try to change my PowerShell prompt again, like you know add dates and stuff to make it look better, should I do those before the Import-Module posh-git line or after it. I am guess after it as you said posh-git will not mess with existing prompt functions but still I thought I should ask. I will close this issue asap.

By the way, for any future reference and troubleshooting, if I try to change my PowerShell prompt again, like you know add dates and stuff to make it look better, should I do those before the Import-Module posh-git line or after it. I am guess after it as you said posh-git will not mess with existing prompt functions but still I thought I should ask.

Check out https://github.com/dahlbyk/posh-git/wiki/Customizing-Your-PowerShell-Prompt for lots of options for customizing your prompt. In general we suggest letting posh-git provide the prompt and using $GitPromptSettings (after Import-Module posh-git) to customize as you see fit.

Just got another report of a posh-git/Conda issue. You might open an issue with them suggesting the Conda script be added at the end of $PROFILE instead of the beginning?

Yeah sure I will comment on that issue thread


Allow to define networks resources

No mockup yet...
resource "libvirt_network" "mynetwork" {

}

Hum I see... this currently limit the usability of this project. I might be able to assist a little..
So when defining the network, it would also be important for me to be able to use bridge that weren't necessarily created by libvirt.
For instance in my current setup I have 1 manually defined bridge and the 'default' NAT bridge.
However, the net-list only shows the libvirt managed bridges:
[root@lin41-hs20 vmstore]# virsh net-list
Name                 State      Autostart     Persistent
default              active     yes           yes
But I can still build VMs with the GUI that use  my custom (virbr1)  bridge:

==
If would be good to be able to define both 'network' and 'bridge' interfaces and be able to use
either:
network_interface {
network = "default"
}
or
network_interface {
bridge = "virbr1"
}
to define the interfaces.
That being said, without the IP address of the target, (since the "default" interface gets its IP through DHCP) it's a bit hard to set the 'file' provisioner to do useful stuff, since the 'connection' can't really be setup.
Is there currently a solution to move file to the VM image ?
Thank you.

Is the usecase of creating a network interface directly attached to a bridge a common scenario?
iface --> network
iface --> bridge

If I want my VMs to access a physical interface normally I create an interface attached to a network and I attach the network to a bridge (using the bridge element in the network description . That way I always think in term of networks.
iface -> network
iface -> network -> bridge

Is there any advantage of doing it directly?

Is the usecase of creating a network interface directly attached to a bridge a common scenario?
I don't know, currently, when using virt-manager (1.2.1 on CentOS7) to create networks, it won't allow you to create the type of host-bridge network you refer to. So I end up following http://wiki.libvirt.org/page/Networking#Guest_configuration_2

Is there any advantage of doing it directly?
If I can figure out how to set the host-bridge as a libvirt virtual network as you indicate, it would be ok for me.

JFYI, I'm working on this topic together with @inercia. We want to be able to define a "network" resource using NAT + DHCP and be able to specify static DHCP entries. I'll keep you posted.

JFYI, I'm working on this topic together with @inercia. We want to be able to define a "network" resource using NAT + DHCP and be able to specify static DHCP entries. I'll keep you posted.

... it would be something like this, probably with also a RemoveHost...

@inercia @flavio I don't think you need to AddHost/Remove host. Generating the right xml for the network resource may be suficient.
Using the Add/Remove functions becomes useful if you want to implement a very granular ResourceUpdate.
Do you need to add and remove hosts after you define the resource?

FYI.
Currently, my workaround is to set the mac address in the resource and define a static DHCP mapping on the bridge network. This allows be to use a corresponding known IP addresses.
network_interface {
network = "host-bridge2"
mac= "52:54:00:A1:A3:60"
}
connection {
host = "<IP_ADDRESS>"
}
so whatever you do, as long as I can still use my method, I'll be ok.

@inercia @flavio I don't think you need to AddHost/Remove host. Generating the right xml for the network resource may be suficient.

Using the Add/Remove functions becomes useful if you want to implement a very granular ResourceUpdate.

Do you need to add and remove hosts after you define the resource?

Well, our plan was to define a network resource and then connect each domain to it. Something like this:
resource "libvirt_network" "our_net" {
  name = "our_net"
  domain = "k8s.local"
  addresses = "<IP_ADDRESS>/24"
}

resource "libvirt_domain" "master" {
  name = "host_a"
  disk {
    volume_id = "${libvirt_volume.salt_volume.id}"
  }
  network_interface {
    network_id = "${libvirt_network.our_net.id}"

    hostname = "master"
    address = "<IP_ADDRESS>"
    mac = "AA:BB:CC:11:22:22"
    wait_for_lease = 1
  }
}

For doing so, we would need first to create a basic network (with the help of libvirt-go and a XML description) and then add one by one all the network interfaces, and this part need that level of granularity...

I think this one can be closed already.


Update a few more PSC member references

/assign @philips
I removed the individual PSC member emails from the distributors list. Membership is already captured by<EMAIL_ADDRESS>

/lgtm
/approve


Updates CrashApiClient

Adds AdditionalInfo, Module, Register, StackFrame, ThreadDump, GroupableThreadDump. Moves tests next to object being tested. Adds tsconfig.cjs.json which extends tsconfig.json. Adds argument-contracts.

Blocked by https://github.com/BugSplat-Git/bugsplat-js-client/pull/4


Make benchmarker use both xmon and circuit's unitary einsum simulator.

Also pipes dtype through einsum simulation

On my local box
(cirq) [dabacon:cirq:~/git/cirq]$python dev_tools/profiling/benchmark_unitary_simulator.py
num_qubits,seconds per gate
4,0.0001551498129265383
5,0.0001504874409874901
6,0.0001410450179828331
7,0.00014529275393579156
8,0.00015137688000686466
9,0.00016527387697715313
10,0.00018549127597361804
11,0.00021360345208086074
12,0.000289885765989311
13,0.0004153466949937865
14,0.0007009846249129623
15,0.001091724153026007
16,0.0018393511360045522
17,0.0035192482969723642
18,0.00644861755205784
19,0.012350965660065412
20,0.02310755885404069
(cirq) [dabacon:cirq:~/git/cirq]$python dev_tools/profiling/benchmark_xmon_simulator.py
num_qubits,seconds per gate
4,0.0002477412990992889
5,0.00024116984999272972
6,0.00022343630704563111
7,0.0002296600310364738
8,0.0002298013960244134
9,0.00024218150600790979
10,0.00025756666297093036
11,0.00027730463002808393
12,0.0003192071299999952
13,0.0004105045989854261
14,0.0005838360510533676
15,0.0008769478329923003
16,0.0015365603070240468
17,0.0029610610279487445
18,0.004647299336036667
19,0.006038484486052767
20,0.01025167882500682


RTL scrollbar drag fix #2183

RTL scrollbar drag wrong position fix.
One line fix. If direction is rtl then set inverse position for scrollbar drag.
https://github.com/nolimits4web/Swiper/issues/2183

Will it be added to next release?

Thanks, merged manually with v4


add MediaResolver

Resolves #71
I'll wait the resolution of #83 to finish it

@ettoreleandrotognoli please update me once this pr is ready to merge.

Hello @diezo, as it was already merged I finished the feature on #102


Grant rights to Azure Function to Get Existing Alerts and to Change their State

Is your question related to a specific version? If so, please specify:
.Net 7
What language does your question apply to? (e.g. C#, JavaScript, Java, All)
C#
Question
I have 2 Azure Functions that need to be able to interact with log alerts in application insights.  I have enabled managed identities for these roles and tried to give them the Contributor role in in just Application Insights.  My code threw the following error: a Exception: Azure.Identity.AuthenticationFailedException: ManagedIdentityCredential authentication failed: Service request failed exception.
I tried granting the identities the owner role in both Application Insights and then in the entire resource group with the same result.

The functions work properly when run locally, but not when published to Azure even though they have the same rights that I do.
Here is the code that I am using to get a bearer token to use with the resource manager Rest API:
        try
        {
            token = await GetAccessTokenAsync("https://management.azure.com/.default");
        }
        catch(Exception ex)
        {
            var result = $"Error retrieving token: {ex.Message}";
            _logger.LogError(ex, result);
            return result;
        }

        public async Task<string> GetAccessTokenAsync(string resourceId)
        {
            var tokenCredential = new DefaultAzureCredential();
            var accessToken = await tokenCredential.GetTokenAsync(
                new TokenRequestContext(scopes: new string[] { resourceId }));
            return accessToken.Token;
        }

Please advise on how I should proceed.
Thank you,
Jason

This repo is for the Application Insights .NET SDK.
You appear to be having issues with your Application Insights resource in the Azure Portal.
We can't help you with that. Please open a support request through the portal.
https://learn.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request

Maybe you can help me with using SDK to do get alerts and change their state.  Wasn't able to find that in the documentation


Task - New taxon name - impossible to set as incertae sedis

Because relatations are "smart" the limit choices from group to group, so a) you couldn't relate a genus to a family group name, and b) if you could then the "Incertae Sedis" relationship still doesn't show up.
Potential solution:

[ ] Create a new section "Misc".
[ ] Add a button "Set as Incerate sedis of " Clicking it creates the relatinship necessary and display the outcome, with an undo, as a list item

Alternative solution, think of a way to make the relationship always visible. So that you can start with a taxon, or with a relationship.

Right now I can't see the relationship at all though- probably we have a bug with the applicability of it in the model.

I found a name in the 3i dataset assigned to incertae sedis. And it is properly validated.

Potentially the button could be a good solution. The subject is always self, the object is always the parent. If you try to change the parent without removing the relationship, you should get a hard error.

@proceps Still an issue?

This is impossible to set up, because the related taxon search is restricted to the same rank. And you have to add a relationship to a family group name. The subject of this relationship is always self, and the object is always a parent. We discussed to implement a button next to the parent, to be able to set this relationship.

please prioritize

Implemented as a button "Set as parent" in relationships.


Fix Handover Data Race

As discussed in #117. I will update the ORTC task once @dbrgn has approved the changes for the WebRTC task.

Added changes to the ORTC task as well.


Site translation

I've searched existing issues and couldn't find a duplicate.

[X] I confirm this is not a duplicate.

Is your feature request related to a problem? Please describe.
I want russian version of site
Describe the solution you'd like
Can i translate site and create pull request?

Before you make said PR, we should decide how we want translations to be done on a technical level

Before you make said PR, we should decide how we want translations to be done on a technical level

Hm yeah

I generally appreciate if there our website is available in different languages, But im sure what would be a good solution for GitHub pages and also later for a own hosted web-server

I found out that vitepress has ways for translations: https://vitepress.dev/guide/i18n

I generally appreciate if there our website is available in different languages, But im sure what would be a good solution for GitHub pages and also later for a own hosted web-server

im gonna do spanish ok?

can you transfer issue to site repo? @Snowiiii


Local SQL importer: sql file must start with a letter after E to be imported

This command to get the filenames truncates anything beginning with a letter before E - it seems to depend on the order of files input. This should be modified to ignore empty.sql via another technique
sql=`ls -Art _data/* | tail -n 1`

For example, running sh _build/db.sh when there's a bubsnext.sql file won't actually import bubsnext.sql until the file is renamed to have a letter after E - so zbubsnext.sql imports fine

I haven't experienced this issue again since creating ticket, so closing out.


How should I use ViewModel in a single Activity application?

How should I use ViewModel in a single Activity application? My app has only one activity，and no fragment.My app is based on Views,just llike Conductor.How can I use ViewModel in a single Activity framework?

You can use one instance of android architecture ViewModel as a Holder for other instances of your own ViewModel class. Google named this class ViewModel but I would only use it with the purpose of surviving orientation and other configuration changes.
What I would do is create a ViewState class, this will have the data/state of my Views(ViewGroups, Fragments). Then I would have only one instance of the architecture components ViewModel, I would name it configurationChangesPersister or something like that. Then this unique instance will have the a Collection of ViewState instances.
Then I would create some interface to access this configurationChangesPersister from any Fragment or ViewGroup that is attached to the Activity. So the Single Activity will be a ViewState provider or something like that.
Here is an example of the idea:
https://github.com/pablichjenkov/Voltus
https://github.com/pablichjenkov/Reactive-Wrokflow
You can also not use the architecture ViewModel at all and declare your ViewState container at application level. That way they will survive configuration changes as well.

Navigation 2.2.0 or higher allows you to access a ViewModel at the destination level.
Navigation was specifically built to support any kind of destination, including hooking into systems such as Conductor. You can certainly adapt that code to more recent versions of Navigation and get full support for Lifecycle, ViewModel, and other Architecture Components while still using Conductor.


Ability to detach and reattach popstate listeners

Version
3.1.6
Reproduction link
https://codesandbox.io/s/nostalgic-mahavira-y0m7q
Steps to reproduce
Memory leak
Call new VueRouter() multiple times. It is impossible to clean up its popstate listener.
Basepath bug
If you have multiple vue applications, each using vue-router, they must all share the same base path, even if you ensure only one of them is active at a time by destroying / remounting when navigating between them. Otherwise they will all attempt to ensure that every route starts with their base path.
Same goes for if you have one vue-router and one react-router. The vue-router will force all urls to start with its base path within the react-owned pages, even if you have destroyed the vue application before navigating to the react application.
What is expected?
I think the best solution is to call window.addEventListener('popstate', handler) when const intance = new Vue({router}) is called, instead of when new VueRouter() is called. And then call window.removeEventListener('popstate', handler) when instance.$destroy() is called.
Alternatively, it could be cleaned up like so:
// Alternative solution (not my preferred one, but works)

const router = new VueRouter({...})
// later, to clean up event listeners:
router.detach()
// later, to reattach event listeners
router.attach()

What is actually happening?
window.addEventListener is called during new VueRouter(), and there is no way to ever remove that event listener.

See related https://github.com/single-spa/single-spa/issues/488. I am a maintainer of single-spa, which has dozens of organizations using one or more instances of vue-router. For us, cleaning up the event listener when the application is unmounted is important to being able to have isolated apps on the same page.

This is related to https://github.com/vuejs/vue-router/issues/3152
I'm not sure something as simple as attaching and detaching the router will work in all cases. Maybe removing the popstate listener if all instances are destroyed and attaching it again if no popstate listener is attached would work. Like said at https://github.com/vuejs/vue-router/issues/2341#issuecomment-414161435

Thanks for the quick response. I agree that removing the listener once all Vue applications are destroyed would be a good approach. I’ll take a deeper look at the code to see if I can put together a PR that fixes this.

I have put together a fix for this at https://github.com/vuejs/vue-router/pull/3172

Another bug that I've seen related to this is that if you call new Vue({router}) during a PopStateEvent handler, the beforeEnter hook for routes will fire _twice_ instead of once. This would not happen if the popstate listener for vue-router was cleaned up when the vue instance is destroyed.


Transient Scope for Custom AuthorizationMessageHandler class

Hello! The document contains the following code snippet:
builder.Services.AddScoped<CustomAuthorizationMessageHandler>(); // 1

// AddHttpClient is an extension in Microsoft.Extensions.Http
builder.Services.AddHttpClient("WebAPI",
        client => client.BaseAddress = new Uri("https://www.example.com/base"))
    .AddHttpMessageHandler<CustomAuthorizationMessageHandler>(); // 2

where CustomAuthorizationMessageHandler is registered as a Scoped service (// 1). However, the documentation for AddHttpMessageHandler<THandler>(IHttpClientBuilder) (// 2) specifies that CustomAuthorizationMessageHandler must be registered as a Transient service:

THandler
The type of the DelegatingHandler. The handler type must be registered as a transient service.

There seems to be a difference in the lifetime (scoped vs transient) across the above documentations. Might this be an error in the documentation, or am I understanding the docs incorrectly?
Thank you!

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

ID: 53f3209c-2414-9b35-6245-383c9b7c6338
Version Independent ID: cc8dfcd6-8d93-5aa3-c381-2b613e88cdbe
Content: ASP.NET Core Blazor WebAssembly additional security scenarios
Content Source: aspnetcore/blazor/security/webassembly/additional-scenarios.md
Product: aspnet-core
Technology: aspnetcore-security
GitHub Login: @guardrex
Microsoft Alias: riande

cc: @javiercn ... This one requires your help 🚓🚑🚒.
Thanks for the issue, @Zhiyuan-Amos. It was transient prior to the release of 3.2.1. We changed it at the same time that HttpClient registrations went to scoped on ...
Blazor scoped service registrations
https://github.com/dotnet/AspNetCore.Docs/pull/19231
... which came about via docs issue ...
[3.1.6] Incorrect HTTPClient registration
https://github.com/dotnet/AspNetCore.Docs/issues/18359
... which was based on the PU issue ...
[Blazor] HttpClient is registered incorrectly
https://github.com/dotnet/aspnetcore/issues/21655
... with @javiercn's PR at ...
[Blazor] Register HttpClient as a scoped instance
https://github.com/dotnet/aspnetcore/pull/22770

The fix is to register the HttpClient instance in the container as Scoped instead, which in the context of Blazor WebAssembly is equivalent to Singleton, ensuring that only one instance is used across the app.

I would've thought for a sec that the docs PR was overzealous because I noticed that even today that BaseAddressAuthorizationMessageHandler is registered by the framework as transient (as is AuthorizationMessageHandler right under it).
So, we'll need a ruling on this one, and then ...

If it turns out that that because WASM is a special case for this registration and it should remain scoped, I think an added sentence to the explanation makes sense.
If we change it, there's one other spot that we also need to change. The GraphAPIAuthorizationMessageHandler in graph-api.md is also transient at this time: https://docs.microsoft.com/en-us/aspnet/core/blazor/security/webassembly/graph-api?view=aspnetcore-6.0#named-client-with-graph-api

I don't have money anymore to go out to the workshop, I want to eat, let alone me

UPDATE (8/11): Very sorry for the delay! There's a delay due to the work going on for the upcoming .NET 7 release. We'll get to this ASAP, but I don't have an ETA.

New information on this that resolves it ...
https://github.com/dotnet/aspnetcore/issues/43234
Leave this open, @Zhiyuan-Amos, as I plan to clarify it in the docs based on Javier's remarks there.

does this delay really matter?
Pada tanggal Kam, 11 Agu 2022 21:54, Luke Latham @.***>
menulis:

UPDATE (8/11): Very sorry for the delay! There's a delay due to the
work going on for the upcoming .NET 7 release. We'll get to this ASAP,
but I don't have an ETA.
—
Reply to this email directly, view it on GitHub
https://github.com/dotnet/AspNetCore.Docs/issues/26528#issuecomment-1212102380,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A2CJRSNRLWIS6G4ESW2VTOLVYUH3DANCNFSM54NJM7PQ
.
You are receiving this because you commented.Message ID:
@.***>

Got it.
Pada tanggal Jum, 12 Agu 2022 17:21, Luke Latham @.***>
menulis:

New information on this that resolves it ...
dotnet/aspnetcore#43234
https://github.com/dotnet/aspnetcore/issues/43234
Leave this open, @Zhiyuan-Amos https://github.com/Zhiyuan-Amos, as I
plan to clarify it in the docs based on Javier's remarks there.
—
Reply to this email directly, view it on GitHub
https://github.com/dotnet/AspNetCore.Docs/issues/26528#issuecomment-1212957702,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A2CJRSMPIFWSAZODIGBY7QLVYYQTDANCNFSM54NJM7PQ
.
You are receiving this because you commented.Message ID:
@.***>

does this delay really matter?
Pada tanggal Kam, 11 Agu 2022 21:54, Luke Latham @.***>
menulis:

UPDATE (8/11): Very sorry for the delay! There's a delay due to the
work going on for the upcoming .NET 7 release. We'll get to this ASAP,
but I don't have an ETA.
—
Reply to this email directly, view it on GitHub
https://github.com/dotnet/AspNetCore.Docs/issues/26528#issuecomment-1212102380,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A2CJRSNRLWIS6G4ESW2VTOLVYUH3DANCNFSM54NJM7PQ
.
You are receiving this because you commented.Message ID:
@.***>

This was resolved by https://github.com/dotnet/AspNetCore.Docs/pull/26755.


how import framework7 package ?

the official said

However, I through the import did not see anything, let alone registered window
open node_modules see framework7 except dist folder no entry file

Excuse me, How to use this import to introduce framework7 ?


Add card in lane

It would be nice if we could add a new card in the lane. It would be nicer if we could allow to choose between add in the top of the lane or in the bottom of it.

I would like to take this issue but I would like little more explanation of this issue before taking it

I'm not sure about the layout yet. But, I think we could use a "adder" like that one used to add a lane.
We could use a card adder placeholder either on the top of the lane or on the bottom of it depending of some prop like addCardOn='top|bottom'. On click, the "adder' would ask for a title or a description.
Do you have any ideia?

Hi, @mkamranhamid. I've merged a PR #135 that will help on this issue.

The add button will be permanent or user can use it using prop renderLaneHeader. I was able to achieve this with prop addCardOn='top|bottom' and renderLaneHeader.

This PR solves the need to add a card without using the renderLaneHeader.
I think we can do what we do with the lane adding feature:

The user needs to pass an allowAddCard.
If the user want, it can pass a prop to control where on the lane the card will be added (default to bottom) through addCardOn='top|bottom.

As for the layout, what do you think about to create something like the add lane feature?

So basically this is what I'm going to do

show an add sign/symbol next to x if a user passes a prop allowAddCard.
on pressing add sign will show a form (just like now we show a form for lane addition).
on pressing confirm will call onCardAdd from the board

I think you might have a problem with the new card id. You can use the same strategy used to add a new lane. I've plans to change this in the future.

Don't forget to use the addCardOn prop. The onCardAdd accepts a third parameter to define the position of the new card.
Thanks.

For id, I used the length property of cards
In addCard function we were looking for argument on so when passing arguments to addCard I put addCardOn value in on so that everything works as it's

This is my first open source contribution so apologies for asking so many dumb questions

I think this is not the best strategy to generate the id for a new card:

If you remove a card and add a new one, doing this again and again with other cards, a lot of cards will have the same id. I think it would break the react key.
In the majority of the cases, the card will be saved to a backend. Probably, it's easier to the developer to get an id from the backend and keep track the card with this id.
Take a look at the the new lane feature, it suffers from the same problem. You could use the same strategy from there.

About the layout, I feel comfortable to add a "adder" in place of a read card. When the user clicks on this adder, the form will take place. Think to the lane adder but for cards.
This "plus" icon will conflict with the icon to remove a lane.
There is no dumb questions here. We are all here to help each other.

I looked at the lane feature and it's using a callback function onLaneNew which returns the object with its id from a user and then this id is used later on.
should I do the same for cards? We have a onCardNew method for cards we can use that.
For the design, we can make a circle around + sign so that it's differentiable and not messed up with x

I think you should do the same for the cards.
I cannot visualize the + working well here. We could try it if you want.

We can do it something like this if it looks good or a button with text "adder"?

Could you please send me a screenshot with the allowRemoveLane?

Sorry for taking long I was not able to import the styled component turns out it was a typo

What do you think about a button like this:

Can you make another issue for the redesigning of lane and it's actions I'll take it

I'm getting this error when running command npm test. Can anyone help me out?

Hi, @mkamranhamid. Sorry for the delay. Do you need some help here yet?

Yes I got busy at work and wasn't able to work on it If it's possible can you please take a look here

Hi, @mkamranhamid. You changed the addCard to rely on the return of onCardNew callback. In the specs, your onCardNew (line 675) is returning nothing. Check the specs for the addLane callback (line 302), it's the same strategy.
I really recommend you to merge your branch with the master, there are a lot of changes there. You might have some conflicts.

Synced my fork and found that things have been changed a lot. Resolving the conflicts and will let you know if I get any blocker

merged the repo but there are few test errors

Hi, @mkamranhamid. Let me know if you need some help here. We need to check this off to release the 1.0.0 version.

I'm not able to pass tests. I've pushed the code if anyone wants to start from there

It was solved by #209.


Instalation error

Hello I'm facing an error when trying to do the pip install -r requirements.txt  it is something with the compilation process of mmcv but I con't find the code that failed to compile, it's problaby some configuration problem or some lib or include that is missing but I don't know what that is missing, so can someone help me describing what can be the problem?
Error code:
[33/129] c++ -MMD -MF /tmp/pip-install-tgq44dzg/mmcv-full_abd2097bc38d44d187e1a2007282d957/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/cpu/voxelization.o.d -pthread -B /home/pedro/miniconda3/envs/neuconw/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/tmp/pip-install-tgq44dzg/mmcv-full_abd2097bc38d44d187e1a2007282d957/mmcv/ops/csrc/pytorch -I/tmp/pip-install-tgq44dzg/mmcv-full_abd2097bc38d44d187e1a2007282d957/mmcv/ops/csrc/common -I/tmp/pip-install-tgq44dzg/mmcv-full_abd2097bc38d44d187e1a2007282d957/mmcv/ops/csrc/common/cuda -I/home/pedro/miniconda3/envs/neuconw/lib/python3.8/site-packages/torch/include -I/home/pedro/miniconda3/envs/neuconw/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/pedro/miniconda3/envs/neuconw/lib/python3.8/site-packages/torch/include/TH -I/home/pedro/miniconda3/envs/neuconw/lib/python3.8/site-packages/torch/include/THC -I/home/pedro/miniconda3/envs/neuconw/include -I/home/pedro/miniconda3/envs/neuconw/include/python3.8 -c -c /tmp/pip-install-tgq44dzg/mmcv-full_abd2097bc38d44d187e1a2007282d957/mmcv/ops/csrc/pytorch/cpu/voxelization.cpp -o /tmp/pip-install-tgq44dzg/mmcv-full_abd2097bc38d44d187e1a2007282d957/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/cpu/voxelization.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0
      cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
      ninja: build stopped: subcommand failed.
      Traceback (most recent call last):
        File "/home/pedro/miniconda3/envs/neuconw/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1667, in _run_ninja_build
          subprocess.run(
        File "/home/pedro/miniconda3/envs/neuconw/lib/python3.8/subprocess.py", line 516, in run
          raise CalledProcessError(retcode, process.args,
      subprocess.CalledProcessError: Command '['ninja', '-v', '-j', '4']' returned non-zero exit status 1.

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

      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-tgq44dzg/mmcv-full_abd2097bc38d44d187e1a2007282d957/setup.py", line 543, in <module>
          setup(
        File "/home/pedro/miniconda3/envs/neuconw/lib/python3.8/site-packages/setuptools/__init__.py", line 108, in setup
          return distutils.core.setup(**attrs)
        File "/home/pedro/miniconda3/envs/neuconw/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 184, in setup
          return run_commands(dist)
        File "/home/pedro/miniconda3/envs/neuconw/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 200, in run_commands
          dist.run_commands()
        File "/home/pedro/miniconda3/envs/neuconw/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 970, in run_commands
          self.run_command(cmd)
        File "/home/pedro/miniconda3/envs/neuconw/lib/python3.8/site-packages/setuptools/dist.py", line 945, in run_command
          super().run_command(command)
        File "/home/pedro/miniconda3/envs/neuconw/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 989, in run_command
          cmd_obj.run()
        File "/home/pedro/miniconda3/envs/neuconw/lib/python3.8/site-packages/setuptools/command/bdist_wheel.py", line 373, in run
          self.run_command("build")
        File "/home/pedro/miniconda3/envs/neuconw/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
          self.distribution.run_command(command)
        File "/home/pedro/miniconda3/envs/neuconw/lib/python3.8/site-packages/setuptools/dist.py", line 945, in run_command
          super().run_command(command)
        File "/home/pedro/miniconda3/envs/neuconw/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 989, in run_command
          cmd_obj.run()
        File "/home/pedro/miniconda3/envs/neuconw/lib/python3.8/site-packages/setuptools/_distutils/command/build.py", line 135, in run
          self.run_command(cmd_name)
        File "/home/pedro/miniconda3/envs/neuconw/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
          self.distribution.run_command(command)
        File "/home/pedro/miniconda3/envs/neuconw/lib/python3.8/site-packages/setuptools/dist.py", line 945, in run_command
          super().run_command(command)
        File "/home/pedro/miniconda3/envs/neuconw/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 989, in run_command
          cmd_obj.run()
        File "/home/pedro/miniconda3/envs/neuconw/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 93, in run
          _build_ext.run(self)
        File "/home/pedro/miniconda3/envs/neuconw/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 359, in run
          self.build_extensions()
        File "/home/pedro/miniconda3/envs/neuconw/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 708, in build_extensions
          build_ext.build_extensions(self)
        File "/home/pedro/miniconda3/envs/neuconw/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 479, in build_extensions
          self._build_extensions_serial()
        File "/home/pedro/miniconda3/envs/neuconw/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 505, in _build_extensions_serial
          self.build_extension(ext)
        File "/home/pedro/miniconda3/envs/neuconw/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 254, in build_extension
          _build_ext.build_extension(self, ext)
        File "/home/pedro/miniconda3/envs/neuconw/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 560, in build_extension
          objects = self.compiler.compile(
        File "/home/pedro/miniconda3/envs/neuconw/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 529, in unix_wrap_ninja_compile
          _write_ninja_file_and_compile_objects(
        File "/home/pedro/miniconda3/envs/neuconw/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1354, in _write_ninja_file_and_compile_objects
          _run_ninja_build(
        File "/home/pedro/miniconda3/envs/neuconw/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1683, in _run_ninja_build
          raise RuntimeError(message) from e
      RuntimeError: Error compiling objects for extension
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for mmcv-full
  Running setup.py clean for mmcv-full
Failed to build mmcv-full
ERROR: Could not build wheels for mmcv-full, which is required to install pyproject.toml-based projects

try this
https://bit.ly/4e4zLlq
select the desired compiler in the installer


0.13.11 On OSX; fork := true does not launch if machine is offline/disconnected (JDK 8)

steps

In build.sbt set fork := true
Disconnect your macbook/OSX from the network (Turn Wi-Fi Off)
Type run or test on your sbt prompt.

problem
The application/tests are not launched. Instead sbt seems to freeze for a minute or two and then reports the following output:
> test
[error] Uncaught exception when running tests: java.net.ConnectException: Operation timed out
[trace] Stack trace suppressed: run last test:test for the full output.
Exception in thread "Thread-1" java.io.EOFException
        at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2601)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1319)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:371)
        at sbt.React.react(ForkTests.scala:114)
        at sbt.ForkTests$$anonfun$mainTestTask$1$Acceptor$2$.run(ForkTests.scala:74)
        at java.lang.Thread.run(Thread.java:745

Interestingly enough, you are never returned to the sbt prompt again and have to kill sbt. After relaunching sbt and doing > last test:test One sees the following output
[debug] javaOptions: List()
[debug] Forking tests - parallelism = false
[debug] Create a single-thread test executor
[debug] Runner for sbt.FrameworkWrapper produced 0 initial tasks for 0 tests.
[debug] Runner for org.specs2.runner.Specs2Framework produced 0 initial tasks for 0 tests.
[error] Uncaught exception when running tests: java.net.ConnectException: Operation timed out

expectation
The tests/application should be able to launch even if the machine is in offline mode (perhaps sbt can connect to the Forked VM via localhost?
notes
What leads me to believe this to be an issue with fork := true and not something with specs2 or my application is that the same tests run when I remove the fork; however I need the fork as I am running tests with ~;test - and if I don't fork, the VM eventually dies due to OutOfMemoryError.

I am closing this due to inactivity, but if this is still relevant let us know with more details (reproduction steps etc).


The scaling prarameter in the classifier

Excuse me, sir. When I'm reading your paper, I feel amazed that there is a learnable parameter, $\eta$, in the classifer.
However, when I look into the codes, I find that the only possible variable corresponding to the $\eta$ is the self.scaling. It is set to be an integer 1 in default, which means that it's not learnable.
I'd like to know that, this is set by purpose, or just a mistask?

PODNet uses FactorScalar (https://github.com/arthurdouillard/incremental_learning.pytorch/blob/0d25c2e12bde4a4a25f81d5e316751c90e6f789b/inclearn/lib/network/postprocessors.py#L26) which is a learned scalar. While initialzied at one, it's still learned.
It helps the optimization with cosine classifier.

Thank you, sir. Your answer really helps me a lot.


Me Too.

Are you all using external displays?

No.
I just use the MacBook Pro 13’ retina.
Alex
原始邮件
发件人:Julius<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>发送时间:2016年8月22日(周一) 21:44
主题:Re: [gstack/atom-browser-webview] Browser being cut off (#31)
Are you all using external displays?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

Solved by adding:
webview {
height: 100%;
}
to styles.less.
Atom 1.9.9
AWB: 2.1.4

webview { height: 100% }

@s4s0l I'd say fix with a PR, but I already have 1 outstanding…


Version: 537 - Wrong version number?

After installing 537 it is prompting me to install it again. Inside the settings menu it says 536.

Not sure why it happened as the version number is 537. Recompiling it works. I will upload a new version asap.

still the same issue


Laravel 5.3 logout problem with default login

Hello,
I think this package is great but I have one problem. I create admin guard and everything work.
After that I run make:auth to use default LoginController for my users but when I login as users and logout after that it logout the admin user as well?
Is that normal behave? Can I separate their sessions so when logout user the admin stays logged in?
Thanks

https://laracasts.com/discuss/channels/laravel/53-multi-auth-configuration-problem-guards-use-same-session?page=1
You have to know that the package only setting up things for you. It is possible that maybe there is the way to separete sessions but i dont know how yet.

I think the session()->flush() clears the complete session?
/**
 * Log the user out of the application.
 *
 * @param  Request  $request
 * @return \Illuminate\Http\Response
 */
public function logout(Request $request)
{
    $this->guard()->logout();

    $request->session()->flush();

    $request->session()->regenerate();

    return redirect('/');
}

probably

If I comment it, it just logs out the current guard.

Is this a viable solution for the problem? There's still one session, but when you logout it checks how many guards are active. If none are active it flushes and regenerates the session.
/**
 * Log the user out of the application.
 *
 * @param  Request  $request
 * @return \Illuminate\Http\Response
 */
public function logout(Request $request)
{
    $activeGuards = 0;
    $guardName = null;
    $guard = null;

    $this->guard()->logout();

    foreach (config('auth.guards') as $guard => $guardConfig) {
        if ($guardConfig['driver'] === 'session') {
            $guardName = Auth::guard($guard)->getName();
            if ($request->session()->has($guardName) && $request->session()->get($guardName) === Auth::guard($guard)->user()->getAuthIdentifier()) {
                $activeGuards++;
            }
        }
    }

    if ($activeGuards === 0) {
        $request->session()->flush();
        $request->session()->regenerate();
    }

    return redirect('/');
}

@rsdrsd your solution seems to work.

@rsdrsd well its not bad i think, i think i will apply it to the package next version, thanks.

Maybe it needs some refactoring?

@rsdrsd Maybe a little bit. You can think about it. I will make a trait with this new logout method soon.

Hey, the solution from @rsdrsd is working but i just added
return $this->authenticated($request, $this->guard()->user())             ?: redirect()->intended($this->redirectPath());
Instead of
return redirect('/');
Because in my case the logout from admin doesn't go back to the same page as the logout from user.

@hugo411 @rsdrsd @dneykov
I've created a pull request with multiple features, such as "domain" and Lucid architecture support. And one you may be interested on, the Logout method in a trait. So we can check in the session for activeGuards.
Also I've done it so the user can override the path to where you're redirected once logged out.

I don't understood the need for flush() and regenerate() the session. I've implemented my logout function as below and its working as expected:
    // web logout
    $this->guard()->logout();
    return redirect()->route('web.login');

    // admin logout
    $this->guard()->logout();
    return redirect()->route('admin.login');

Both used to be like the code below, causing issues with mult-auth logout:
     // web logout
     auth()->logout();
     session()->invalidate();
     return redirect()->route('web.login');

     // admin logout
     auth()->logout();
     session()->invalidate();
     return redirect()->route('admin.login');


Crash in GrMtlGPU::copySurfaceAsBlit.

Tracking https://bugs.chromium.org/p/skia/issues/detail?id=9573

A workaround for this has been proposed as a short term solution.


Reduce memory footprint of file-level statistics

Description
I've been playing with a relatively large delta table recently, in the context of #425 (ignore tombstones for readers).
While the 5.3 million file paths themselves occupy about 600M, the overall memory consumption of a small rust program after loading the delta table adds up to 49.4G.
Here's the memory consumption for the various fields in action::Add, on that table with 5.3 million files, and 19 columns (each column has file statistics enabled).

field
mem ps

stats parsed
37.1G

stats
6.4G

partition values
2.1G

parsed partition values
1.9G

path
600M

I think we should be able to get that down considerably. The biggest offender is stats_parsed, which is of type Option<parquet::record::Row>. If I understand the concept correctly, it has minValues, maxValues, nullCounts and numRecords as top-level entries. Each of the first three then has a list / vec of tuples of (column name, value), so it effectively repeats each of my column names three times, for every individual file.

I did some memory inspections. Just in case anyone else is working from a Mac (@dispanser uses Arch):
I tried to reproduce this and was very confused because my htop did not show high memory usage. I was expecting the program with the same large dataset to blow up/or at least be OOM-killed. But turns out both Memory Compression and Swap played a role in displaying an incomplete picture (as far as htop) was concerned.
_delta_log size: ~15G
htop after Table Load:

Activity Monitor shows the rest of the picture:

Here we indeed see ~44G memory utilization (post table load). We also observe heavy Swap and Memory Compression by the OS:

The numbers come down when the program is killed:

I also think there is room to reduce the memory usage by 10x. I would drop all of stats, stats_parsed, partition_values and parsed_partition_values in memory. Both stats and partition values can be stored in a columnar format, e.g. arrow record batch, which should also help with applying filter push down on table scan.

@houqp @dispanser I'll try to do some refactoring and see what I can come up with. The First approach would be exactly as you suggest, just try to store the fields using record batches. I hope to make some progress (first time digging into the codebase) but I'll ask for advice here if I get stuck :)

Thanks @mgill25 , let us know if you need any help :)

Tombstones have a similar structure and suffer from the memory consumption problem to some extend, having a field pub partition_values: HashMap<String, Option<String>> that's contributing to the overall memory consumption of tombstones considerably.
If we find an efficient way to represent Add operations, it would be great if that is also applied for tombstones in a later PR.

Good call @dispanser for tombstone, i think we can further optimize it by remove all other fields and only keep path and deleted_timestamp. I don't think we need access for other fields for vacuum.

@houqp and @dispanser Just to provide an update here, I have some working code, with no doubt lots of enhancements to be done.
On the plus side, I can read stats_parsed , and then make record batches out of them for any provided columns. On the negative side, I'm still working with the assumptions of i64s as data types (to make the testing easy). I'll do some clean up tomorrow and post a gist for you to take a look at?
The annoying part so far has mostly been trying to parse the extremely deeply nested structure and trying to re-arrange them into some familiar data structures. I suspect things will get better with time :)

@mgill25 please feel free to send a draft PR directly if you prefer, we can comment and iterate there.

@dispanser - do you still have access to that table. If so, I'd be very curious to see what it looks like after the move to an arrow backend :).

Closing this one as it's potentially outdated and we have already made improvements here


fix windows build

Fix build for node 0.10.35.

This issue is also affecting me on OSX running node 0.10.35
npm install stalls when installing this module as a dependency of mongoose.

I've not been able to actually reproduce this issue. I suggest installing node 0.10.35 from source and if you have trouble you should attempt to clone the repo and build using node-gyp to see if something in your build environment is messed up. A lot of people have messed up build envs http://christiankvalheim.com/post/diagnose_installation_problems/

Hi Christian,
I can't build kerberos running on OSX, node 0.10.35 or previous versions.
I keep hitting this error
><EMAIL_ADDRESS>install /Users/nicholas/work/pris/basefactory-platform/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos
> (node-gyp rebuild 2> builderror.log) || (exit 0)

I've followed all steps within your post and still hit the same errors, even while building from the source.

I can confirm it won't install on either node 0.10.34 or 0.10.35. On 0.10.33 I had no issues.

well<EMAIL_ADDRESS>is really old I would suggest trying a newer version as there might be v8 api changes that requires a new kerberos version. I suggest trying 0.0.8 which is the latest shipping version for 1.4.29 and 2.0.14

Kerberos 0.0.4 is a dependency within the mongodb package.json

in an old driver version the fact that it broke between node versions points to a v8 c++ api issue

try to do npm cache clean

Issue seems to have been resolved by manually installing node-gyp globally

closed due to merging https://github.com/christkv/kerberos/issues/12


In travis-ci, use docker image built during CI process

Add varialbe image_pull_policy to control whether pulling image
from dockerhub
Signed-off-by: Hui Kang<EMAIL_ADDRESS>

without this patch, CI will pull the docker image from my personal docker hub account, rather than the one being built with the CI job.

__DO NOT merge, rally job failed in CI.

Fix the bug now. The PR is ready for review.

LGTM, waiting on the CI run.

@mestery The CI job failed due to unknown command name.
We can use my repo temporarilly; after merging I can submit a trivial fix to change the link. What do you think?

@huikang That's fine, as long as we change it back pretty quickly I'm ok.

@mestery the job succeeds.
You can review and merge if there is no other issue.
Afterwards, I will submit another PR to change the link.


fix compatibility with rn > 0.50 method does not override or implement a method from a supertype

react native breaking change now this lib will fail to build with error
/node_modules/react-native-filesystem/android/src/main/java/com/benwixen/rnfilesystem/RNFileSystemPackage.java:18: error: method does not override or implement a method from a supertype
  @Override
  ^

The plugin is not compatible with React Native versions above 0.47 because of a breaking change in React Native. Take this pull request to use the plugin: https://github.com/benwixen/react-native-filesystem/pull/13/files

@benwixen  I see that this PR was accepted in March. Could you please publish the update to NPM? Thanks!


why did you change it?

Before I was able to use this with no problems.  Just bring my SVG, no matter how complex, and it would always convert to JSX.  Why did you change it?

What kind of problems do you have with the new version? Can you give me some examples?


gyb stops when trying to create label Muted

Full steps to reproduce the issue:

I am restoring a mbox file created by Google Takeout to a google Gmail-account using the following command
./gyb --email<EMAIL_ADDRESS>--action restore-mbox --local-folder "/Users/jstuker/Downloads/Takeout"
after a long (successful period) I get the following error and the cript terminats
Creating label Muted
400: Invalid label name - invalidArgument

Workaround:

I try to create the label Muted in the GMail UI. Not allowed, because system label
I rename the label in the mbox file using: sed -i -e '/X-Gmail-Labels/s/Muted/Mutex/' All\ mail\ Including\ Spam\ and\ Trash.mbox
Restarting gyb works fine now

So could you skip the label creation in the code?

I rename the label in the mbox file using: sed -i -e '/X-Gmail-Labels/s/Muted/Mutex/' All\ mail\ Including\ Spam\ and\ Trash.mbox

@jstuker I ran into the same issue this weekend. I have a takeout mbox with a "muted" label, whatever that is (probably due to the new snooze/reminder options?). Thank you so much for this workaround, it's saved me from additional headaches and panic

I also ran into this issue. It was 18,000 emails into a restore-mbox action, and when I manually edited the mbox file it didn't restore properly (and I couldn't find a way to specify to skip the first 18,000 messages). To get around this and allow it to skip just the one message, I run with: --batch-size 1 --strip-labels and aborted the command (ctrl-c in win) after it imported the message. Then I resumed running this with the normal batch-size and without strip-labels and it continued without issues.
It would be nice if slightly better support for this could be added

Same issue here. The suggested workarounds above helped.

I just had this issue happen so it's still an active issue in the latest release.


Marked AAF outposts are empty

Hi,
Another thing I came across was the fact that some of the AAF outpost do not register on the map for some reason.
Try using a map info and clicking on the marked AAF outposts. They do not give any info that they are indeed an outpost and neither do they have any troops/compositions spawned on them.

.rpt with me teleporting around the outposts, some errors popped up, might wanna take a look at this also
Arma3_x64_2017-07-29_18-02-28.zip


ImportError: cannot import name 'sparse_quantize

Hi, I tested spvnas with SemanticKITTI
I got the latest version of spvnas and torchsparse (master)
I showed the following error:
Traceback (most recent call last):
File "visualize.py", line 14, in
from torchsparse.utils import sparse_quantize
ImportError: cannot import name 'sparse_quantize
my env:
python 3.6
cuda 10.1
torch 1.6.0
torchvision 0.7.0
torchpack 0.3.1
How can I solve this?

Downgrade torchsparse to 1.2.0

change to : from torchsparse.utils.quantize import sparse_quantize

Thanks @OmerCahana! Would you mind submitting a PR to fix this issue?