Infrastructure agent 1.20.4+ breaks ability to call third party executables through powershell

Description
After upgrading all our agents on our windows servers to 1.23.3 we found that our Flex integration configs were no longer working. The initial error was:
InvalidOperation: Cannot run a document in the middle of a pipeline: C:\Program Files\Dell\SysMgt\oma\bin\omreport.exe.
I then uninstalled/installed every minor release from 1.12.1 and found that our configs worked fine up until 1.20.3. It all broke from 1.20.4 upwards without any changes to the integration configs.
I have done more testing over the last couple of days and have concluded that the issue is with trying to call any external/third-party application through shell: pwsh or shell: powershell.
In every case, calling nri-flex.exe directly and passing it the config_path worked as expected. It was only when being called by the infrastructure agent that it failed. I even tried replacing the nri-flex executable and still saw the same success/failure as shown below.
WORKS
Agent                         Flex Version
1.20.3                         1.4.2, 1.4.3, 1.4.4

DOESN’T WORK
Agent                         Flex Version
1.20.4                         1.4.2, 1.4.3, 1.4.4
to
1.23.3                         1.4.2, 1.4.3, 1.4.4

Expected Behavior
Ability to run/execute third party applications with the powershell shells without errors as it worked in versions prior to 1.20.4
Steps to Reproduce
FYI this is one of the original configs that we had. omreport is a dell executable.
integrations:
  - name: nri-flex
    interval: 60s
    timeout: 300s
    config:
      name: test
      apis:
        - name: PathTestInfo
          commands:
            - run: omreport.exe storage controller -fmt ssv | % {$_ -replace "$", "`n"} | % {$_ -replace "(\d+) [KMGT]+B", "`$1"}
              shell: pwsh
              split: horizontal
              split_by: ";"
              header_split_by: ";"
              regex_match: false
              header_regex_match: false
              row_header: 8
              row_start: 10
          sample_filter:
            - ID: \r
          perc_to_decimal: true
          rename_keys:
            "Cache Memory Size": "Cache Memory Size (MBytes)"

In order to make the test repeatable, I went through all the example configs and found json-read-cmd-example.yml which I have modified slightly to curl.exe for Windows and specifying the shell as listed in the tests below.
Agent version 1.20.3
TEST 1: Config using PWSH shell
integrations:
  - name: nri-flex
    interval: 60s
    config:
      name: commandExample
      apis:
        - name: commandJsonOut
          commands:
            # run any command, you could cat .json file, or run some commands that produce a json output
            # the example just calls an API that returns json
            - run: curl.exe -s https://jsonplaceholder.typicode.com/todos/1 #json output is retrieved from this command
              shell: pwsh
          custom_attributes:
            myCustomAttr: theValue

RESULT: Works fine calling nri-flex.exe directly. Data DOES gets sent to data explorer
TEST 2: Above config using powershell shell
RESULT: Works fine calling nri-flex.exe directly. Data DOES gets sent to data explorer
TEST 3: Above config without specifying shell - so uses default CMD
RESULT: Works fine calling nri-flex.exe directly. Data DOES gets sent to data explorer
SAMPLE RESULT running nri-flex.exe with PWSH as shell
C:\Users\Administrator>"C:/Program Files/New Relic/newrelic-infra/newrelic-integrations/nri-flex.exe" -pretty -verbose -config_path "C:\Program Files\New Relic\newrelic-infra\integrations.d\nritest.yml"
time="2022-03-17T10:35:43Z" level=debug msg="Function.isAvailable: enter"
time="2022-03-17T10:35:43Z" level=debug msg="Function.isAvailable: exit status: false"
time="2022-03-17T10:35:43Z" level=info msg=com.newrelic.nri-flex GOARCH=amd64 GOOS=windows version=1.4.3
time="2022-03-17T10:35:43Z" level=debug msg="config: git sync configuration not set"
time="2022-03-17T10:35:43Z" level=warning msg="config: testing agent config, agent features will not be available"
time="2022-03-17T10:35:43Z" level=debug msg="config: running async" name=commandExample
time="2022-03-17T10:35:43Z" level=debug msg="config: processing apis" apis=1 name=commandExample
time="2022-03-17T10:35:43Z" level=debug msg="fetch: collect data" name=commandExample
time="2022-03-17T10:35:43Z" level=debug msg="commands: executing" count=1 name=commandExample
time="2022-03-17T10:35:45Z" level=debug msg="processor-data: running data handler" name=commandExample
time="2022-03-17T10:35:45Z" level=debug msg="config: finished variable processing apis" apis=1 name=commandExample
time="2022-03-17T10:35:45Z" level=info msg="flex: completed processing configs" configs=1
{
        "name": "com.newrelic.nri-flex",
        "protocol_version": "3",
        "integration_version": "1.4.3",
        "data": [
                {
                        "metrics": [
                                {
                                        "completed": "false",
                                        "event_type": "commandJsonOutSample",
                                        "id": 1,
                                        "integration_name": "com.newrelic.nri-flex",
                                        "integration_version": "1.4.3",
                                        "myCustomAttr": "theValue",
                                        "title": "delectus aut autem",
                                        "userId": 1
                                },
                                {
                                        "event_type": "flexStatusSample",
                                        "flex.Hostname": "wintest-1",
                                        "flex.IntegrationVersion": "1.4.3",
                                        "flex.counter.ConfigsProcessed": 1,
                                        "flex.counter.EventCount": 1,
                                        "flex.counter.EventDropCount": 0,
                                        "flex.counter.commandJsonOutSample": 1,
                                        "flex.time.elaspedMs": 2094,
                                        "flex.time.endMs":<PHONE_NUMBER>725,
                                        "flex.time.startMs":<PHONE_NUMBER>631
                                }
                        ],
                        "inventory": {},
                        "events": []
                }
        ]
}

Agent version 1.23.3
TEST 1: Config using PWSH shell
integrations:
  - name: nri-flex
    interval: 60s
    config:
      name: commandExample
      apis:
        - name: commandJsonOut
          commands:
            # run any command, you could cat .json file, or run some commands that produce a json output
            # the example just calls an API that returns json
            - run: curl.exe -s https://jsonplaceholder.typicode.com/todos/1 #json output is retrieved from this command
              shell: pwsh
          custom_attributes:
            myCustomAttr: theValue

RESULT: Works fine calling nri-flex.exe directly. Nothing gets sent to data explorer
TEST 2: Above config using powershell shell
RESULT: Works fine calling nri-flex.exe directly. Nothing gets sent to data explorer
TEST 3: Above config without specifying shell - so uses default CMD
RESULT: Works fine calling nri-flex.exe directly. Data DOES gets sent to data explorer
SAMPLE RESULT running nri-flex.exe with PWSH as shell
C:\Users\Administrator>"C:/Program Files/New Relic/newrelic-infra/newrelic-integrations/nri-flex.exe" -pretty -verbose -config_path "C:\Program Files\New Relic\newrelic-infra\integrations.d\nritest.yml"
time="2022-03-17T10:25:58Z" level=debug msg="Function.isAvailable: enter"
time="2022-03-17T10:25:58Z" level=debug msg="Function.isAvailable: exit status: false"
time="2022-03-17T10:25:58Z" level=info msg=com.newrelic.nri-flex GOARCH=amd64 GOOS=windows version=1.4.4
time="2022-03-17T10:25:58Z" level=debug msg="config: git sync configuration not set"
time="2022-03-17T10:25:58Z" level=warning msg="config: testing agent config, agent features will not be available"
time="2022-03-17T10:25:58Z" level=debug msg="config: running async" name=commandExample
time="2022-03-17T10:25:58Z" level=debug msg="config: processing apis" apis=1 name=commandExample
time="2022-03-17T10:25:58Z" level=debug msg="fetch: collect data" name=commandExample
time="2022-03-17T10:25:58Z" level=debug msg="commands: executing" count=1 name=commandExample
time="2022-03-17T10:26:00Z" level=debug msg="processor-data: running data handler" name=commandExample
time="2022-03-17T10:26:00Z" level=debug msg="config: finished variable processing apis" apis=1 name=commandExample
time="2022-03-17T10:26:00Z" level=info msg="flex: completed processing configs" configs=1
{
        "name": "com.newrelic.nri-flex",
        "protocol_version": "3",
        "integration_version": "1.4.4",
        "data": [
                {
                        "metrics": [
                                {
                                        "completed": "false",
                                        "event_type": "commandJsonOutSample",
                                        "id": 1,
                                        "integration_name": "com.newrelic.nri-flex",
                                        "integration_version": "1.4.4",
                                        "myCustomAttr": "theValue",
                                        "title": "delectus aut autem",
                                        "userId": 1
                                },
                                {
                                        "event_type": "flexStatusSample",
                                        "flex.Hostname": "wintest-1",
                                        "flex.IntegrationVersion": "1.4.4",
                                        "flex.counter.ConfigsProcessed": 1,
                                        "flex.counter.EventCount": 1,
                                        "flex.counter.EventDropCount": 0,
                                        "flex.counter.commandJsonOutSample": 1,
                                        "flex.time.elaspedMs": 1899,
                                        "flex.time.endMs":<PHONE_NUMBER>433,
                                        "flex.time.startMs":<PHONE_NUMBER>534
                                }
                        ],
                        "inventory": {},
                        "events": []
                }
        ]
}

Your Environment

All servers are running either Windows Server 2016 or 2019
I've tried updating powershell 7 to 7.2.1. No difference.
On my specific testing machine, these are the versions:

Name                           Value
----                           -----
PSVersion                      7.2.1
PSEdition                      Core
GitCommitId                    7.2.1
OS                             Microsoft Windows 10.0.17763
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

I have done further testing since posting on the forum. The sample config I've posted above using curl.exe is one that you can run on any Windows 10, Server 2016, Server 2019.
The VM I used for testing was installed from scratch, all updates installed, then the agent installed and powershell 7. No other changes were made to environment variables. We initially suspected that the PATH was not being sent through and hence it couldn't find omreport but I was able to do write-host $env:Path as the run command and it output the correct and expected path.

It may or may not be worth also to add that if you create a ps1 script that calls an external application (like the curl.exe command) and then try to run that powershell script from agent > nri-flex, it will still fail. So basically if the pipeline starts from the agent, nri-flex uses the powershell shell, and there's a third party executable anywhere in that pipeline, it fails.

We suspect this is related to missing env vars in the context of nri-flex running from the infra-agent.
In 1.20.4 we limited the access to env vars in integrations to those defined in the passthrough_environment infra-agent setting.
We recommend to compile the list of environment variables that are available to the exe/command invoked from Flex standalone and add them to the passthrough_envionment setting.
We plan to improve this in #1014

We recommend compiling the list of environment variables that are available to the exe/command invoked from Flex standalone and add them to the passthrough_environment setting in the infra agent config.

Any hints on how to do this? As in how do I work out what environment variables are required by flex to run the executables. Because as far as the parameters for the executable are concerned, these are passed in the run command.

I can't think on an easy way to identify the exact env vars required. As a workaround, you can try "print env:" in the same powershell console where you see the nri-flex or command working and add them all to the "passthrough_environment" setting in the newrelic-infra.yml config for the agent.
We'll prioritize #1014 so that we add a general config to enable all env vars as required (not the default value due to security constraints).

Thanks @josemore. This was exactly what I had started doing. The command I was running is:
- run: dir "env:" | Select-Object -Property Name, Value | ConvertTo-Json | Out-File -FilePath C:/temp/envagent.txt

I compared the results from running nri-flex directly and from it being called from the agent. After painstakingly going through all the env vars, it turns out that the one that made a difference is PATHEXT. A quick internet search gives this definition:

PATHEXT is an environment variable of MS Windows NT/2000/XP. The function is to determine which file extensions mark files, that are executable from every commandline!

Here's a comparison of what is return for PATHEXT when the var is not passed, and when it is passed:
WITHOUT
  {
    "Name": "PATHEXT",
    "Value": ".CPL"
  }

WITH
  {
  "Name": "PATHEXT",
  "Value": ".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL"
  }

So this clearly explains why we could run any powershell command or batch script but then couldn't run any executable. And as frustrating as it was, I'm glad to have gotten to the bottom of it now.
Question: Will PATHEXT be something that will be passed by default or are we going to have to configure it on all our agents?

Sorry it was this complex to troubleshoot but glad you found the root cause.
We'll discuss the solution as part of #1014 next, most likely, a new setting in the infra-agent to enable all env vars (disabled by default).

Forgot to comment about PATHEXT, that should be included in passthrough_environment setting, integrations would only have access to those listed in the setting.
Latest infra-agent release 1.24.1 added regex support in passthrough_environment so it should be easier to add multiple / all env vars (depending on requirements).

For future references: release 1.24.3 added many common env vars for Windows by default which would help when executing powershell commands with nri-flex


feat(openllama): support openllama-3B

Brief Intro
This PR provides a guide to quantize and run openllama-3B.
The reasons why we need openllama-3B:

The 7B is still too large for edge devices like Raspberry Pi which typically has less than 4GB of RAM. 3B makes it possible to run LLM on Raspberry Pi at a practical speed.
We can move beyond the leaked Llama into a truly opened model (apache-2.0 license) while keeping the existing InferLLM code and applications.

Initial Result

The answer looks good to me
TODO

[ ] add demo.gif (in next pr)
[ ] upload a pre-quantized int4.bin to huggingface

赞，非常好的想法


Add pre-commit hook integration to check style and license

Hi, this issue is for someone who wants to contribute to the project. I think it would be a good first issue to work on.
If you have no idea about pre-commit, you can check it out here
Maybe also add some logging

latest pre-commit required python > 3.8. Would it be okay to change the python version ?


Conflicting peer dependency<EMAIL_ADDRESS>

Current version 3.0.1 dependency<EMAIL_ADDRESS>

this is no longer an issue on latest release (3.x)


Remove guest.sh

This removes the need for user containers to include a shell

1 thing before you merge this actually, we have some docs that outline the requirements for user created container images. You should update those to no longer include sh.

I think it's in the doc/reference/pipeline_spec.md

I'm going to submit this PR and update the docs afterwards because this is green and I don't want to wait for CI to pass twice :-). As soon as it's in though, I'll send another PR in the same branch


Can't move or delete items in workspace

When I was testing the system before release, I annotated a genome and couldn't put it in its own folder.  It went into Genome Group, and now that annotated genome has messed up my ability to use any group I created after that point.  I can't delete or move this genome, or any of the groups.
I am working against a deadline of making handouts for an upcoming workshop, so this is making my life VERY DIFFICULT!  Is there a quick fix that somebody can offer me?

In the job list, right click of row offers delete option, but it does not work. Are we going to offer a delete function?

The right click was supposed to be commented out for now, I've fixed that.  We dont' have the ability to delete jobs themselves.  I've also added the job results types to the list of valid types for the DeleteItem action.


Automatically initialise multiple NICs in an centos-7 cloud instance (IDR-0.3.1)

This role will go through all network interfaces detected by Ansible that don't have a corresponding /etc/sysconfig/network-scripts/ifcfg-* file, and will configure that interface with DHCP.
This may be required on cloud instances which default to activating only the first network interface.
This is intended to be a very basic role, if you require anything more complicated use the fully-fledge network role.
This also reverts commit https://github.com/openmicroscopy/infrastructure/commit/56280081628a416782d9e71cc4532e03ec828722 from https://github.com/openmicroscopy/infrastructure/pull/178 which was a quick-fix for the issue handled in this PR.

I'm not sure if I've successfully tested this or if I can. The changes make sense, and as I mentioned, I've used the config here for manually configuring NICs which worked fine.


Fix: correct returned value for resolver when minimum_order_price=None in ShippingMethodChannelListing

Hey @SzymJ  , I am looking for an issue for my first contribution . Can you explain a bit more.


adds preflight check to warning unhealthy pods in the upgrades

What this PR does / why we need it:
This PR adds check to allow users know what are the Pods which are unhealthy prior upgrades
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
The following result was changed to show the name and namespace of the POD that is OK.

Steps to reproduce
Does this PR introduce a user-facing change?

Adds preflight check healthy state of all Pods in the namespaces (kube-flannel, default, kube-node-lease, kube-public, kube-system, kurl, projectcontour, rook-ceph, velero, longhorn-system, openebs) prior upgrades. If a Pod not be healthy then a warning will be raised.

Does this PR require documentation?

Closing this one as deffered based on the comment: https://github.com/replicatedhq/kURL/pull/4501#pullrequestreview-1455525589


How do set / pass Instance of T that can be resolved in Resolve() ?

I have mapper that derives from Mapper class,
I need to set Instance in unit test to be able to resolve it by calling
public override ResponseType ToEntity(RequestType request)
{
    var instance = Resolve<T>();

so then I can create Instance of Mapper in unit test and call ToEntity
this issue is that I am getting "Service resolver is null! Have you done the unit test setup correctly?" I do not know how to set that

have you seen this part from the docs?

let me know if that doesn't help and i'll look in to it further.

I got it, I need to create mapper instance via Factory.CreateMapper


Add support to proxy authentication

Added support to proxy using basic authentication (username and password).
The file containing a list of proxies might contain entries requiring authentication and part not.
Supported line format:

host:port - proxy without autnetication
host:port:user:pass - proxy with autnetication

Sample file:
myproxy1.com:3128:foo1:bar1
myproxy2.com:3333
myproxy3.com:1234
myproxy4.com:4321:foo2:bar2
myproxy5.com:4321:foo3:bar3
myproxy6.com:2222

Overall looks great.

Updated the code to validate whether the proxy configuration has 4 (host, port, user, pass) or 2 (host, port) elements.


Add Google geocoding example

Hey guys, I had to create a small function for fetching lat/lng from an inputted address. I thought I'd share the small function. I'm quite green at GraphCool and quite.. yellow? at Javascript, so all suggestions how to improve the function are more than welcome. 🙂

Thanks so much for putting this together @kuldarkalvik and congratulations to your first contribution 🎉

Awesome, happy to contribute in a tiny way! Thanks for the code improvements as well. 👍


Sublime Text 3 could not load SCSS

Hi,
after the last update Sublime Text says, that it can not format SASS/SCSS files. I removed the package, reinstalled and after one day I get the same error.
Could this be a bug?

I just ran into this with the latest beta of Sublime 3 on my Mac with OS X 10.10.  I ended up fixing it by manually copying the Sass folder from ~/Library/Application Support/Sublime Text 2/Packages/ into ~/Library/Application Support/Sublime Text 3/Packages/
Apparently the installer didn't create this folder.

@michael-reeves Thanks, your idea also works for me (Mac OSX El Capitan 10.11.1) but only once.
I notice that Sublime Text 3 build 3083 delete automatically the /Packages/Sass folder everytime it runs and move Sass folder into Backup .

Copy the Sass syntax folder from Sublime Text 2
from :
/Users/BartSimpson/Library/Application Support/Sublime Text 2/Packages/Sass
to :
/Users/BartSimpson/Library/Application Support/Sublime Text 3/Packages

cmd+i in the Sass folder

Change user privileges to "Read only" and select the "Locked" checkbox

Open Sublime Text 3. Sass must appear in Syntax list. Then close ST3 and reopen, check if Sass still appear... If dissappear is because the folder were deleted by starting the program. Try lock the folder again.


⚠ Cioos National CKAN has degraded performance

In 5ba6132, Cioos National CKAN (https://catalogue.cioos.ca/) experienced degraded performance:

HTTP code: 200
Response time: 6498 ms

Resolved: Cioos National CKAN performance has improved in e13eda9 after 5 minutes.


Can't see organization repositories

I'm part of an organization and I want to create a Jira<->Github integration to some of the organization's repos but I can't see them (on the Repository Aceess section, even though I have admin permissions on those repos) - only the ones I created on my account (not even those that I created on the organization account)

Hi @royt-via. I'm from a team at Atlassian that is currently in the process of migrating the ownership over to us from GitHub. As a part of this, we're currently going through the backlog of issues and prs to see what can still be addressed and what should be closed.
Are you still experiencing issues with this?

As it has been almost 2 months with no response, closing this issue.


update close button in modal

specifying button attribute type to 'button'. Acts as a form submit button inside a form if not specified.

@nikugogoi Thanks!


Adding context manager for client connect().

A pull request from my own fork which is a cleaner way to do my part. I learned this by following python/asyncio development.

Maybe _Connect should get the docstring of client.connect.

I really like how this is shaping up. Good work!
Don't worry about the documentation for now. We have stabilized the target API and that's what matters.
It would be interesting to add tests. If we're using try:  <Python 3.5 only syntax> except SyntaxError: ... in client.py, we should do the same in test_client_server.py to define tests for the new syntax.
tox.ini should run the coverage tests under python3.5, otherwise the new syntax won't be tested and tox will fail (it requires 100% coverage). Let's minimize code that's only for python3.4 and 3.3 and skip coverage on that code.

Haha, now I see that making a PR from an own fork signals and implies that the case is my own responsibility to get solved and covered properly. :)
No problem. This is a good opportunity for me to get more familiar with the tests as well.

It's up to you! If you want to leave the space for someone else, just say so :-)
Let's just communicate about who does what in order to avoid duplicating work.

Sure. As I see, it would be nice to fix #92 first. I guess it sould be your task. Then I could try to make the test to work for the new syntax as well as per https://github.com/aaugustin/websockets/pull/90#issuecomment-165035693 which seems a more mechanical work which need a less undersanding of the library/protocol than the previous fix. I would keep those changes in this PR. Plus, if I will have time before you fix #92, I will try to write a server side context manager.

I tried to minimize your proof of concept and I got to this:
try:

    class Connect:
        """
        This class wraps :func:`connect` on Python 3.5 and above.

        It can be used as an asynchronous context manager.

        """
        def __init__(self, *args, **kwargs):
            self.connect_coroutine = connect(*self.args, **self.kwargs)

        def __await__(self):
            # TODO Check if we can use await here or if we need yield from.
            # Ádam used yield from but I'm pretty sure we can use await.
            return (await self.connect_coroutine)

        async def __aenter__(self):
            self.websocket = await self
            return self.websocket

        async def __aexit__(self, exc_type, exc_value, traceback):
            await self.websocket.close()

        # TODO Check whether we actually need this. PEP 492 implies that we
        # don't. If we do, we need a test case for it.
        __iter__ = __await__

except SyntaxError:
    pass

else:
    connect = Connect
    # Copy over docstring to support building documentation on Python 3.5.
    connect.__doc__ = connect.__doc__

A few changes explained:

I removed the functools.wraps in favor of explicitly copying the docstring, which is the only thing we need. I think users can easily figure out what's going on if import connect gives them a Connect class by looking at the source.

I defined __iter__ in terms of __await__ because I always define the "old" way in terms if the "new" way. That leads to cleaner code because the "new" way is superior (at least it's supposed to be...)

I'm not using _-prefixing for indicating pseudo-private members in this library. Both ways have pros and cons; let's just stay consistent with the current coding style.

I minimized the number of lines of code.

If you're unsure about how to write tests, I can take it from there. You've done the hard part :-)

return (await self.connect_coroutine): __await__() can't contain await (https://www.python.org/dev/peps/pep-0492/#list-of-functions-and-methods), it raises a SyntaxError. I checked it before and again.
self.connect_coroutine = connect(*args, **kwargs): Causes an infinite loop. This is why the original function has to get wrapped in the class. I would stick to __wrapped__ to match the builtin way.
Hmm, this is weird: now everything inside one module raises SyntaxError in the websockets __init__ in Python 3.4.3. I was sure I tested it before and it worked. Maybe I missed something. It seems we must go back to the separate module import approach.
Without __iter__ = __await__, those who prefer to use the yield from syntax even in version 3.5 will get a TypeError: 'Connect' object is not iterable exception. I tested it before and now again.

Next time I make a more detailed comment about what I done and for what reason. I refresh the PO immediately with the new code.

cff8d12 is tested for Python versions 3.4.3 and 3.5.1. All current tests succeeds but those has to get enhanced. Both client.py and client35.py examples work on 3.5.1.
I also started to work on the server side but I can put that aside for working on the tests.

I am busy today so feel free to take it. :) What I suggest that test await, yield from, and async with+await syntax for version 3.5 and above.

Thanks a bunch for double checking the answers to my questions!
I have strong opinions about how to write tests and documentation :-) If that's fine for you, I'll squash your commits and add tests and docs in a new PR.
At this point the most useful contribution you could make is to come up with a proof-of-concept for starting and stopping a server with a context manager.
There's no hurry. I'd like to release 3.0 by the end of the year if possible, but no one's waiting for it either!

We're on the bleeding edge... https://bitbucket.org/ned/coveragepy/issues/434/indexerror-in-python-35

Squashed and integrated into #94.

"At this point the most useful contribution you could make is to come up with a proof-of-concept for starting and stopping a server with a context manager."
I started that yesterday and had some progress. Maybe I can continue it tomorrow.


[material-ui][Badge] When showZero={false} and value is 0 content is not updated

Steps to reproduce
Link to live example: (required)
Demo in Stackblitz : https://stackblitz.com/edit/react-qkjzbj?file=Demo.tsx
Steps:

Inspect .MuiBadge-badge elements in dev tools
Click "Set to 0" and observe

Current behavior

For Badge with showZero={false} content of .MuiBadge-badge element will  not be updated  (will still be 8, depite of element being not visible)
For Badge with showZero={true} content of .MuiBadge-badge element will  be updated

Expected behavior
I believe this is wrong and content should updated to current value, even if element is not visible
Context
I am using Badge component and while testing if it visually hidden and has zero value when value is changed from anything other than 0 tests are failing because element is hidden but old value is present in the DOM.

  Output from `npx @mui/envinfo` goes here.

Search keywords: MuiBadge

Hey @wg-xb, thanks for the report!
This is indeed a bug. I opened a PR to fix it.
Sadly, I don't think we will be able to release this on v5 (the current version), but it will be available in v6, which is now in beta and will be stable in the upcoming weeks. Is that a deal breaker for you?

@DiegoAndai Thanks for quick reaction.
It is not a deal breaker as whole project relies on MUI anyway, but the sooner it is fixed the better. It is probably an accessibility issue as content is read by screen readers even if it is visually hidden.


Highchart rangeSelector is not showing after highchartjs, highchart-ng upgrade

I have upgraded HighchartsJs to 6.1.0. So i got compelled to upgrade highchart-ng to latest version(1.2.1). Also i added polyfill for angular-component and angular-merge because i am using angular-1.3.17. After the upgrade, rangeSelector which is working on previous versions are not showing now.
Fiddle
Expected Behaviour
RangeSelector must have to show
Current Behaviour
No rangeSelector is showing after highchart-ng upgrade to latest vesrion(1.2.1)
Your Environment

Version of highcharts-ng used: 1.2.1
Browser Name and version: All browsers
Operating System and version (desktop or mobile): Windows
Link to your project:http://jsfiddle.net/FC3qV/106/

Forgot to add chartType: 'stock'
http://jsfiddle.net/BlackLabel/jvduycqm/6/


Missing members in shyft.time_series

Environment data

Language Server version: 2020.12.0
OS and version: Ubuntu 19.04
Python version (& distribution if applicable, e.g. Anaconda): Python 3.7.9
Package: Shyft

Expected behaviour
Autocomplete functions and variables listed in all variable in a init.py file
Actual behaviour
As in Jedi, list these autocompletions when starting to type. These functions/variables are listed in the shyft.time_series.init.py file under all variable
Code Snippet / Additional information
pip install shyft
Then in a python shell:
import shyft.time_series as sa
sa.UtcP

I did the above steps, and I see that UtcP isn't found, but I'm not seeing where UtcP comes from either.
Likely, it's from this line:
from shyft.time_series._time_series import *

_time_series is compiled code, and we don't execute compiled code to inspect it. Jedi does (but this is not necessarily safe).
This will need a stub.

I'll also note that UtcP  is not in __all__ either, at least not from what I am reading.

This will require a stub from the library author.


Cannot release with Java 1.8

Unfortunately codebase now requires Java 1.8.
Related to quattor/maven-tools#159

Fortunately :-)

Fortunately it now works with 1.8, unfortunately it requires it?

The opposite :-) Fortunately it requires 1.8 :-) 1.6 and 1.7 have severe security problems and it is good we cannot use them anymore... Personnally, I think, as said at the workshop, that we should require 1.8 for our Java tools in future releases (it means updating the maven-compile-plugin that still requires 1.5 as a minimum).


Expandable overflow button

Describe the problem
As a user, i want to keep my user interface decluttered so that I can stay focused on my primary tasks. When additional options on a screen are needed, i want to be able to tap a single button that unfurls to reveal one or more additional button-based options that can be tapped to take take action on the current view.
Describe the solution you'd like
Add an MRTK solution where a single pressable button can be tapped to reveal one or more buttons arranged in a vertical or horizontal row/column. Tapping an option would collapse the expanded button back into a single button again.
AC

The overflow button "..." can have text, icon, and voice command associated with it
The number of buttons that get revealed on tap of the overflow button is configurable
The revealed buttons can be arranged in a vertical column or horizontal row (with configurable spacing value between each button
Tapping on a "revealed" button automatically collapses the panel back into the single "overflow" button
The reveal buttons can each have an icon, text, and voice command associated with them

Describe alternatives you've considered
Looked at App Bar (script) as original inspiration but it is fixed number of buttons and purpose built to a specific use case.

@pdlipman-apx A 'collapsable menu' or 'button collection' prefab sounds like a good idea.

it is fixed number of buttons and purpose built to a specific use case.

@pdlipman-apx The App Bar is definitely for a specific use case and won't meet the needs listed here, but it's not totally fixed either - you can add custom buttons by dragging the PressableButtonAppBar prefab into the button parent transform and setting its type to Custom. You can also hide the built-in buttons via checkboxes.

Dynamically arranged and laid-out content and buttons are now easily achievable with the new Canvas UI-based volumetric buttons. Feel free to reopen or DM me directly with any questions.


Set default replicas to 3 in chart for HA install

Currently the default number of replicas for an HA install is 1.
We need to update the chart to set a default of 3.

https://github.com/rancher/server-chart/pull/27

rancher/rancher:master 10/4
rancher/server-chart:master 10/4
Created HA setup with latest server-chart:
helm install ./ \
  --name rancher \
  --namespace cattle-system \
  --set rancherImageTag=master \
  --set hostname=<hostname>

Rancher started with 3 replicas.
All tests in HA test plan passed with 3 replicas:

Affinity/Anti-affinity rules
Leader migration
Scaling


mGRID

WIP; DO NOT TOUCH; DO NOT MERGE;
mGRID implementation for CUDA

Skip jenkins

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/18/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/19/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/21/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/22/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/23/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/24/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/25/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/26/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/27/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/31/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/32/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/36/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/37/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/38/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/39/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/41/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/42/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/43/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/44/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/46/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/47/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/48/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/49/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/50/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/51/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/52/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/53/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/56/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/58/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/59/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/60/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/61/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/62/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/63/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/64/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/66/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/68/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/73/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/75/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/76/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/79/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/80/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/81/

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/82/Build result: ABORTED[...truncated 2411 lines...][INFO] Detected platform "linux-x86_64"[INFO] Building for platform "linux-x86_64"[INFO] Generating /jenkins/workspace/nd4j_PR/nd4j-backends/nd4j-backend-impls/nd4j-native/target/classes/org/nd4j/nativeblas/linux-x86_64/jnind4j.cpp[INFO] Compiling /jenkins/workspace/nd4j_PR/nd4j-backends/nd4j-backend-impls/nd4j-native/target/classes/org/nd4j/nativeblas/linux-x86_64/libjnind4j.so[INFO] g++ -I/jenkins/workspace/libnd4j//blas -I/jenkins/workspace/libnd4j//include -I/usr/lib/jvm/java-1.8.0-openjdk-<IP_ADDRESS>-3.b13.el7_2.x86_64/include -I/usr/lib/jvm/java-1.8.0-openjdk-<IP_ADDRESS>-3.b13.el7_2.x86_64/include/linux /jenkins/workspace/nd4j_PR/nd4j-backends/nd4j-backend-impls/nd4j-native/target/classes/org/nd4j/nativeblas/linux-x86_64/jnind4j.cpp -std=c++11 -std=c++11 -Wl,-rpath,$ORIGIN/ -Wl,-z,noexecstack -Wl,-Bsymbolic -march=x86-64 -m64 -Wall -O3 -fPIC -shared -s -o libjnind4j.so -L/jenkins/workspace/libnd4j//blasbuild/cpu/blas -Wl,-rpath,/jenkins/workspace/libnd4j//blasbuild/cpu/blas -lnd4j /jenkins/workspace/nd4j_PR/nd4j-backends/nd4j-backend-impls/nd4j-native/target/classes/org/nd4j/nativeblas/linux-x86_64/jnind4j.cpp: In function 'void Java_org_nd4j_nativeblas_NativeOps_execMetaPredicateStridedDouble(JNIEnv*, jobject, jobject, jint, jint, jint, jint, jlong, jobject, jint, jobject, jint, jobject, jint, jobject, jobject, jdouble, jdouble)':/jenkins/workspace/nd4j_PR/nd4j-backends/nd4j-backend-impls/nd4j-native/target/classes/org/nd4j/nativeblas/linux-x86_64/jnind4j.cpp:7316:14: error: 'class NativeOps' has no member named 'execMetaPredicateStridedDouble'         ptr->execMetaPredicateStridedDouble(ptr0, arg1, arg2, arg3, arg4, arg5, ptr6, arg7, ptr8, arg9, ptr10, arg11, ptr12, ptr13, arg14, arg15);              ^/jenkins/workspace/nd4j_PR/nd4j-backends/nd4j-backend-impls/nd4j-native/target/classes/org/nd4j/nativeblas/linux-x86_64/jnind4j.cpp: In function 'void Java_org_nd4j_nativeblas_NativeOps_execMetaPredicateStridedHalf(JNIEnv*, jobject, jobject, jint, jint, jint, jint, jlong, jobject, jint, jobject, jint, jobject, jint, jobject, jobject, jfloat, jfloat)':/jenkins/workspace/nd4j_PR/nd4j-backends/nd4j-backend-impls/nd4j-native/target/classes/org/nd4j/nativeblas/linux-x86_64/jnind4j.cpp:7353:14: error: 'class NativeOps' has no member named 'execMetaPredicateStridedHalf'         ptr->execMetaPredicateStridedHalf(ptr0, arg1, arg2, arg3, arg4, arg5, ptr6, arg7, ptr8, arg9, ptr10, arg11, ptr12, ptr13, arg14, arg15);              ^/jenkins/workspace/nd4j_PR/nd4j-backends/nd4j-backend-impls/nd4j-native/target/classes/org/nd4j/nativeblas/linux-x86_64/jnind4j.cpp: In function 'void Java_org_nd4j_nativeblas_NativeOps_execMetaPredicateShapeDouble(JNIEnv*, jobject, jobject, jint, jint, jint, jint, jlong, jobject, jobject, jobject, jobject, jobject, jobject, jobject, jobject, jdouble, jdouble)':/jenkins/workspace/nd4j_PR/nd4j-backends/nd4j-backend-impls/nd4j-native/target/classes/org/nd4j/nativeblas/linux-x86_64/jnind4j.cpp:7445:14: error: 'class NativeOps' has no member named 'execMetaPredicateShapeDouble'         ptr->execMetaPredicateShapeDouble(ptr0, arg1, arg2, arg3, arg4, arg5, ptr6, ptr7, ptr8, ptr9, ptr10, ptr11, ptr12, ptr13, arg14, arg15);              ^/jenkins/workspace/nd4j_PR/nd4j-backends/nd4j-backend-impls/nd4j-native/target/classes/org/nd4j/nativeblas/linux-x86_64/jnind4j.cpp: In function 'void Java_org_nd4j_nativeblas_NativeOps_execMetaPredicateShapeHalf(JNIEnv*, jobject, jobject, jint, jint, jint, jint, jlong, jobject, jobject, jobject, jobject, jobject, jobject, jobject, jobject, jfloat, jfloat)':/jenkins/workspace/nd4j_PR/nd4j-backends/nd4j-backend-impls/nd4j-native/target/classes/org/nd4j/nativeblas/linux-x86_64/jnind4j.cpp:7491:14: error: 'class NativeOps' has no member named 'execMetaPredicateShapeHalf'         ptr->execMetaPredicateShapeHalf(ptr0, arg1, arg2, arg3, arg4, arg5, ptr6, ptr7, ptr8, ptr9, ptr10, ptr11, ptr12, ptr13, arg14, arg15);              ^ERROR: Maven JVM terminated unexpectedly with exit code 1Adding one-line test results to commit status...Setting status of ef4a58c1eacf60398a2e3313db56096bdbeb9230 to FAILURE with url http://ec2-54-191-187-162.us-west-2.compute.amazonaws.com:8080/job/nd4j_PR/82/ and message: 'Build finished. 1 tests run, 1 skipped, 0 failed.'

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/83/Build result: ABORTED[...truncated 2326 lines...][INFO] Detected platform "linux-x86_64"[INFO] Building for platform "linux-x86_64"[INFO] Generating /jenkins/workspace/nd4j_PR/nd4j-backends/nd4j-backend-impls/nd4j-native/target/classes/org/nd4j/nativeblas/linux-x86_64/jnind4j.cpp[INFO] Compiling /jenkins/workspace/nd4j_PR/nd4j-backends/nd4j-backend-impls/nd4j-native/target/classes/org/nd4j/nativeblas/linux-x86_64/libjnind4j.so[INFO] g++ -I/jenkins/workspace/libnd4j//blas -I/jenkins/workspace/libnd4j//include -I/usr/lib/jvm/java-1.8.0-openjdk-<IP_ADDRESS>-3.b13.el7_2.x86_64/include -I/usr/lib/jvm/java-1.8.0-openjdk-<IP_ADDRESS>-3.b13.el7_2.x86_64/include/linux /jenkins/workspace/nd4j_PR/nd4j-backends/nd4j-backend-impls/nd4j-native/target/classes/org/nd4j/nativeblas/linux-x86_64/jnind4j.cpp -std=c++11 -std=c++11 -Wl,-rpath,$ORIGIN/ -Wl,-z,noexecstack -Wl,-Bsymbolic -march=x86-64 -m64 -Wall -O3 -fPIC -shared -s -o libjnind4j.so -L/jenkins/workspace/libnd4j//blasbuild/cpu/blas -Wl,-rpath,/jenkins/workspace/libnd4j//blasbuild/cpu/blas -lnd4j /jenkins/workspace/nd4j_PR/nd4j-backends/nd4j-backend-impls/nd4j-native/target/classes/org/nd4j/nativeblas/linux-x86_64/jnind4j.cpp: In function 'void Java_org_nd4j_nativeblas_NativeOps_execMetaPredicateStridedDouble(JNIEnv*, jobject, jobject, jint, jint, jint, jint, jlong, jobject, jint, jobject, jint, jobject, jint, jobject, jobject, jdouble, jdouble)':/jenkins/workspace/nd4j_PR/nd4j-backends/nd4j-backend-impls/nd4j-native/target/classes/org/nd4j/nativeblas/linux-x86_64/jnind4j.cpp:7455:14: error: 'class NativeOps' has no member named 'execMetaPredicateStridedDouble'         ptr->execMetaPredicateStridedDouble(ptr0, arg1, arg2, arg3, arg4, arg5, ptr6, arg7, ptr8, arg9, ptr10, arg11, ptr12, ptr13, arg14, arg15);              ^/jenkins/workspace/nd4j_PR/nd4j-backends/nd4j-backend-impls/nd4j-native/target/classes/org/nd4j/nativeblas/linux-x86_64/jnind4j.cpp: In function 'void Java_org_nd4j_nativeblas_NativeOps_execMetaPredicateStridedHalf(JNIEnv*, jobject, jobject, jint, jint, jint, jint, jlong, jobject, jint, jobject, jint, jobject, jint, jobject, jobject, jfloat, jfloat)':/jenkins/workspace/nd4j_PR/nd4j-backends/nd4j-backend-impls/nd4j-native/target/classes/org/nd4j/nativeblas/linux-x86_64/jnind4j.cpp:7492:14: error: 'class NativeOps' has no member named 'execMetaPredicateStridedHalf'         ptr->execMetaPredicateStridedHalf(ptr0, arg1, arg2, arg3, arg4, arg5, ptr6, arg7, ptr8, arg9, ptr10, arg11, ptr12, ptr13, arg14, arg15);              ^/jenkins/workspace/nd4j_PR/nd4j-backends/nd4j-backend-impls/nd4j-native/target/classes/org/nd4j/nativeblas/linux-x86_64/jnind4j.cpp: In function 'void Java_org_nd4j_nativeblas_NativeOps_execMetaPredicateShapeDouble(JNIEnv*, jobject, jobject, jint, jint, jint, jint, jlong, jobject, jobject, jobject, jobject, jobject, jobject, jobject, jobject, jdouble, jdouble)':/jenkins/workspace/nd4j_PR/nd4j-backends/nd4j-backend-impls/nd4j-native/target/classes/org/nd4j/nativeblas/linux-x86_64/jnind4j.cpp:7584:14: error: 'class NativeOps' has no member named 'execMetaPredicateShapeDouble'         ptr->execMetaPredicateShapeDouble(ptr0, arg1, arg2, arg3, arg4, arg5, ptr6, ptr7, ptr8, ptr9, ptr10, ptr11, ptr12, ptr13, arg14, arg15);              ^/jenkins/workspace/nd4j_PR/nd4j-backends/nd4j-backend-impls/nd4j-native/target/classes/org/nd4j/nativeblas/linux-x86_64/jnind4j.cpp: In function 'void Java_org_nd4j_nativeblas_NativeOps_execMetaPredicateShapeHalf(JNIEnv*, jobject, jobject, jint, jint, jint, jint, jlong, jobject, jobject, jobject, jobject, jobject, jobject, jobject, jobject, jfloat, jfloat)':/jenkins/workspace/nd4j_PR/nd4j-backends/nd4j-backend-impls/nd4j-native/target/classes/org/nd4j/nativeblas/linux-x86_64/jnind4j.cpp:7630:14: error: 'class NativeOps' has no member named 'execMetaPredicateShapeHalf'         ptr->execMetaPredicateShapeHalf(ptr0, arg1, arg2, arg3, arg4, arg5, ptr6, ptr7, ptr8, ptr9, ptr10, ptr11, ptr12, ptr13, arg14, arg15);              ^ERROR: Maven JVM terminated unexpectedly with exit code 1Adding one-line test results to commit status...Setting status of 1acc45ba9d3dcc6a31d0a95928270546ad8259fe to FAILURE with url http://ec2-54-191-187-162.us-west-2.compute.amazonaws.com:8080/job/nd4j_PR/83/ and message: 'Build finished. 1 tests run, 1 skipped, 0 failed.'


Handle long autolink

Long links that are rendered as autolink will lost the ... tail when forwarding.
The href is not affected though.
It means <span> chunks in <a> need to be better handled. Possible solutions are:

Add the ... tail
Show the full URL (since in Mastodon users can not make a link that is not autolink), maybe with custom URL abbreviation

Resolved by 48dd673bbce60b3e71da5b3aa6411a1c10fcd028 that shows the full URL


[MM-34601] Change "Invite Members" label to "Assign Commander"

Summary

This PR changes the Assign Commander selector dropdown to use the label "Assign Commander" instead of "Invite Members".
Ticket Link

Fixes https://github.com/mattermost/mattermost-server/issues/17349
JIRA ticket: https://mattermost.atlassian.net/browse/MM-34601

Hello @JoelRummel,
Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

Thanks, @JoelRummel!

(I believe the failed tests are spurious here, and being investigated separately.)

I figured as much - Cypress tests failed for me when I ran them locally on master.

Skipping QA review, as this changes only the copy of the menu. Let's wait for the CI fixes in https://github.com/mattermost/mattermost-plugin-incident-collaboration/pull/516 to make CI happy and then we'll merge this on!

/update-branch


Code snippet from Lens manual does not compile

import monocle.Lens
val streetNumber = Lens[Address, Int](_.streetNumber)(n => a => a.copy(streetNumber = n))

Fails compilation with error not found: value n. I wanted to fix that but then I noticed that actually it's somehow already mentioned in lens.md file:
// REPL bug: `error: not found: value n` if I rename _streetNumber to streetNumber
import monocle.Lens
val _streetNumber = Lens[Address, Int](_.streetNumber)(n => a => a.copy(streetNumber = n))
val streetNumber = _streetNumber

But I cannot see this snippet at http://julien-truffaut.github.io/Monocle/optics/lens.html and I blame it on tut:silent:invisible. Also it's not just in REPL - I cannot compile it with scala 2.12.2.
Would be nice to this hidden code instead of current visible one. Spent at least half an hour on that, it's really confusing.

@note I added a test for the snippet you pasted here https://github.com/julien-truffaut/Monocle/blob/522-example/test/shared/src/test/scala/monocle/RegressionSpec.scala#L26-L32
It does work on a normal scala project, as far as I know it only fails in tut and repl

@julien-truffaut Prepared a repository with reproducer: https://github.com/note/monocle-lens-doc-reproducer/blob/master/src/main/scala/com/example/Hello.scala
It fails with Hello2 and compiles without Hello2  - so it matters if streetNumber is just a local variable or rather a class field. Taking into account that it's a tutorial and it's hard to predict how users will try it out I think it would valuable to have some info about it in manual.

Thanks for creating this project. I wasn't aware of this problem. It is interesting that Hello2 compiles if you add a type annotation to streetNumber:
object Hello2 {
  val streetNumber: Lens[Address, Int] = Lens[Address, Int](_.streetNumber)(n => a => a.copy(streetNumber = n))
}

I don't know what is causing this issue ...

I too can't get official example of Map to compile, neither an answer posted on SO by @julien-truffaut. I can open another issue if need be, but thought of commenting here.
https://stackoverflow.com/q/47786656/839733

@asarkar it seems that someone answered your stackoverflow question


Service announcements

SO I can only define ports Ie http://KJ6DZB-4.local.mesh:8080
I cant announce http://KJ6DZB-4.local.mesh:8080/meshchat
Ideas ?

the services are not showing up in the rest of the aredn mesh

I haven't used that feature before. Just tried it and got the same result as you. I'll dig into it soon.

any update... I will check out the new update but. I want to sort this out... I will didg around in the olsrd config for Service announcements. The HSMM-pi web page shows the Service announcements but its not going out to the mesh. ;-(

I haven't fixed this yet. I'll update this ticket if I learn anything more.

OK, I think I tracked down the problem to a missing trailing slash on the service URL. Once I added that in olsrd.conf the service appeared in AREDN.

@mathisono I just pushed a fix that should allow the rest of the AREDN mesh to see the hsmm-pi node's services. Next I'll have to add a path parameter to hsmm-pi.

This should be fixed in version 0.7.0.

nice work on the bug fix effort! I oh you a beer! I will give 0.8.0 a run


Rook api & image update to latest master

Update rook api & image to latest on master.
Also add make deps-update changes
Fix breaking changes in manager due to new controller-runtime version
Unit test fixes after controller-runtime update to v0.16.0
Create mock storageClusters with finalizers inside them as the fake
client has issues when both status & objectmeta are updated in the same
reconcile loop.
Also fixed TestCreateSCCs & TestOcsProviderServerEnsureCreated tests.
No longer skip the TestOCSProviderServerStorageClassRequest test.

/retest

Keep the CSV generation commit and squash the other 3. Since first commit breaks the build and unit test, it's good to have fixes for those in the same commit.

Done


Fullscreen route transition broken on 3.27.0(stable)

Steps to reproduce
Same steps at #159289
The same issue is occurring.
It seems the fix has not yet been merged into the stable branch.
Expected results
The underlying route should not be transitioned out when a fullscreen route is pushed on top.
Actual results
The underlying route is transitioned out to the left side while the fullscreen route is pushed from bottom up. This leads to a broken transition animation.
Code sample
https://github.com/kuhnroyal/flutter_route_transition
Screenshots or Video
No response
Logs
No response
Flutter Doctor output
Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.27.0, on macOS 14.6.1 23G93 darwin-arm64, locale ja-JP)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.2)
[✓] VS Code (version 1.95.3)
[✓] Connected device (5 available)
    ! Error: Browsing on the local area network for iPhone 15 Pro. Ensure the device is unlocked and attached with a cable or associated with the same local area network
      as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)
    ! Error: Browsing on the local area network for 野瀬田裕樹のiPhone. Ensure the device is unlocked and attached with a cable or associated with the same local area network
      as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)
    ! Error: Browsing on the local area network for 野瀬田裕樹のiPhone. Ensure the device is unlocked and attached with a cable or associated with the same local area network
      as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources

• No issues found!

Hi @yuukiw00w, the fix is not yet in stable. It is only on the master channel. You may request a cherry-pick using the process outlined below.
Closing as this has already been fixed. Thank you
https://github.com/flutter/flutter/wiki/Flutter-Cherrypick-Process/e7b042dd481d4ac66477fb281b6e626e8dba8a4e#how-do-i-request-a-cherry-pick

@danagbemava-nc
https://github.com/flutter/flutter/issues/159289#issuecomment-2502178232
Despite the expectations outlined in this comment, it was released in a broken state.
I think there is an issue with the release process.
If a cherry-pick request is not submitted, does that mean it’s acceptable to leave it unresolved until the next minor version?


feat: Add fees endpoint for Node class

Types of changes

[ ] Bugfix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Refactoring (improve a current implementation without adding a new feature or fixing a bug)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Build (changes that affect the build system)
[ ] Docs (documentation only changes)
[ ] Test (adding missing tests or fixing existing tests)
[ ] Other... Please describe:

Checklist

[x] I have read the CONTRIBUTING documentation
[x] Lint and unit tests pass locally with my changes
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have added necessary documentation (if appropriate)

Thanks for submitting this pull request! A maintainer will review this in the next few days and explicitly select labels so you know what's going on.
If no reviewer appears after a week, a reminder will be sent out.

Codecov Report

Merging #31 into master will decrease coverage by 0.23%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master      #31      +/-   ##
==========================================
- Coverage   97.61%   97.38%   -0.24%
==========================================
  Files          19       19
  Lines         839      841       +2
==========================================
  Hits          819      819
- Misses         20       22       +2

Impacted Files
Coverage Δ

Client/Client/Api/Endpoints/Node.swift
84.61% <0%> (-15.39%)
:arrow_down:

Continue to review full report at Codecov.

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

A contributor has approved this PR. A maintainer will merge this PR shortly. If it shouldn't be merged yet, please leave a comment saying so and we'll wait.
Thank you for your contribution!

Your pull request has been merged and marked as tier 4. It will earn you $10 USD.


modify-brush-alpha-blend-conditions

Changed alpha threshold to 0.5 along with extra conditions to make painting feel a bit more intuitive.
blending may be a little slower again with the default circle 0 brush, useing circle 1 is similar to before
painting over the auto shader, or painting base onto base, or spray onto spray now follows the percieved brush shape much better.
angle and scale now also much more closley follow the visibility of the selected texture too.
images with height textures that are not centered around 0.5 maybe end up with a small inward, or outward halo for angle/scale values, however this is still an improvement over the entire brush square getting overwritten as it did before this change.
closes #481 tho a pure solution would be seperate values for base/over but that is probably not needed.

Ok pretty good. Lots of nice improvements here. There are a couple of odd effects that should be looked at though, but overall It's very close to what we want. I like how the tightening of the alpha clamp makes the brush feel more true to the brush shape.
Strength feels good overall. I want every setting to do something. So 1% should never not do anything, and 100% should be fast, but reasonable. Even 1000+% should be a super max, but still clamped to a not insane number.  Now they are just faster values than 100% but no more than any sane person would want.
I've drawn out all of the cases to pinpoint what currently happens and what should or not happen. I bolded the expected conditions that should change.
The setting in the left column is the only one selected (none, texture, scale, angle).
Manually painted area
Large section of painted grass w/ a strip of painted rock
Paint

Setting
Result
Expected

Nothing
Nothing
Ok

Texture
Changes base texture
Ok

Scale
Changes scale of all textures
Ok, but filtered by texture is probably better

Angle
Changes angle of all textures
Ok, as above. See spray scale/angle

Spray

Setting
Result
Expected

Nothing
Nothing
Ok

Texture, selected id == base
Decreases blend
Ok

Texture, selected id != base
Changes overlay texture, increases blend
Ok

Scale
Changes scale of selected texture
Ok, expected and good

Angle
Changes angle of selected texture
Ok, expected and good

Autoshaded area
Paint

Setting
Result
Expected

Nothing
Nothing
Ok

Texture
Disables auto, changes base texture
Ok

Scale
Changes scale
Unexpected, but ok

Angle
Changes angle
Unexpected, but ok

Spray

Setting
Result
Expected

Nothing w/ selected id==base id
Nothing
Ok

Nothing w/ selected id!= base id
Disables autoshader
Unexpected, should do nothing

Texture
Disables auto, changes spray texture
Ok

Scale
Changes scale
Unexpected, but ok

Angle
Changes angle
Unexpected, but ok

Border of Manual/Autoshaded

Setting
Result
Expected

Spray Texture @10%
Disables autoshader, sprays, slight halo if base is different
Ok

Spray Texture @5%
Very slowly disables autoshader, then sprays
A bit weak

Spray Texture @4%
Does nothing to autoshader
Unexpected problem

This bottom range for disabling the autoshader should move down 4% so the current 5% is the new 1%.

Things should behave more consistently now.
the case where spray did nothing at all, was related to this clamp:
real_t spray_strength = CLAMP(strength * 0.05f, 0.003f, .25f);
since 1/255 is 0.0039 if the value was between 0.003 and 0.0039 then blend would never accumulate over time.
setting the minimum to 0.004 resolved that.
i've added additional cases to make dealing with the auto shader more consistent too. whilst painting angle/scale seemed ok, it always ended up feeling a bit off to me, since the conditions would be based on the invisible state of the base/over/blend.

Added filtering to color and wetness to fix #192. However, we aren't doing a weighted blend on the colormap, so if the color is too contrasted, it will get blocky.

Great, thank you!


Added missing arduino definitions to nRF5340 Audio DK board

@koffes please review

Did anything change apart from a rebase and a rename in the last two force pushed @smaerup ?

Did anything change apart from a rebase and a rename in the last two force pushed @smaerup ?
No, that is the only changes, the rename was needed because of the HWM2 switch.


Fix bootstrap scripts

Commit boostorg/build@cc51c68c9ed6 in the submodule was in response to a change in the output location of the bjam/b2 build. Apply the same change to the top-level bootstrap scripts so that they can find them.

Fixed with #304.


Backport "Drop support for ruby < 2.3" to 1.22.x

Backports https://github.com/grpc/grpc/pull/19304
Description in https://github.com/grpc/grpc/pull/19304#issue-286532689 for details.
Since we bumped our google-protobuf dependency to 3.8 to be compatible with the latest ruby protoc (#19182), our support for old rubies < 2.3 has actually been broken, because google-protobuf 3.8 no longer supports ruby < 2.3.

@veblush please merge if able to, I don't have permissions to merge onto this branch

interop cloud to prod: https://github.com/grpc/grpc/issues/16580
interop cloud to cloud: https://github.com/grpc/grpc/issues/13379
objc macos, ios, and examples failed but sponge links aren't available - objc test failures should be unrelated to this change, though


Missing CFBundleShortVersionString key in documentation

In documentation in what should be added to ios/Share Extension/info.plist there is missing line
<key>CFBundleShortVersionString</key> before <string>$(FLUTTER_BUILD_NAME)</string>

Still missing in the Readme


Remove markdown formatting in reStructuredText formatted README

A recent change to the README has code blocks in markdown format. Since our README is actually reStructuredText format, this causes syntax errors.
It's even bigger of a problem when an attempt to publish the package with the README serving as the PyPI description. The syntax errors prevents package publishing.
Fixes #1102

Note: I ran rstcheck README.rst before and after these changes to validate the fix.
Before:
README.rst:115: (ERROR/3) Unexpected indentation.
README.rst:113: (WARNING/2) Inline literal start-string without end-string.
README.rst:113: (WARNING/2) Inline interpreted text or phrase reference start-string without end-string.
README.rst:117: (WARNING/2) Block quote ends without a blank line; unexpected unindent.
README.rst:117: (WARNING/2) Inline literal start-string without end-string.
README.rst:117: (WARNING/2) Inline interpreted text or phrase reference start-string without end-string.
Error! Issues detected.

After:
Success! No issues detected.


Initial setup

I created a Tools directory that contains a Webstorm project for any of the command line tools we write such as gzipping, combining tilesets, etc. In future PRs there will be other folders for tileset generators and the validator. Right now each of these directories is like a self-contained npm module, but they all share the same git repo.

Add a root-level LICENSE.md even if it just says that all tools are licensed with Apache 2.0 and to check the LICENSE.md in each directory for each tool.

As for granularity, please only add three at this point:

generators
validator
tools, e.g., like gltf-pipeline.  Do not put gzip/unzip, tileset.json fusion, etc. each into their own completely separate tool.  They should be seen as stages in a processing pipeline.

Also, what is the future layout?
Tools/validator
Tools/etc

or
validator
etc

We are also already mixing Pascal case and Camel case with the root Tools and figures directory.  I don't care which, but please keep them consistency except for validate exceptions.

I was thinking this:
validator
etc

tools, e.g., like gltf-pipeline. Do not put gzip/unzip, tileset.json fusion, etc. each into their own completely separate tool. They should be seen as stages in a processing pipeline.

Yes these will all be scripts in the bin folder of the Tools folder.

I was thinking this:

OK, so this directory will be copied/renamed.  I see.
Let me know when this is ready to merge.

Updated.


WIP: Docs pdf conversion

📚 Context
This PR introduces a couple of scripts to export our docs into PDF format. It's something that had been requested in the forum before. Steps to use locally:
git fetch
git checkout docs-pdf-conversion
npm install

// With npm run dev running in a different tab to have the local server up
npm run offline-docs

This is still a WIP due to a variety of reasons:

Due to the large quantity of PDFs to generate and each page's weight, Puppeteer will "randomly" export some of them without the styling;
Also per the above 👆 we can't add these scripts while the site is built, because it'll often fail if a PDF isn't generated properly;
Currently, the PDFs get regenerated every time we run the script.

There are several improvements to be made, such as:

[x] Add a media: print stylesheet to style the pages consistently (added on https://github.com/streamlit/docs/pull/407);
[x] Adding the scripts that generate the PDFs on a pre-commit or pre-push hook;
[ ] Check the <lastmod> entry in sitemap.xml to determine if the page has changed before regenerating the PDF;
[ ] Reducing the size of the final document;

💥 Impact
Size:

[ ] Small
[x] Not small

🌐 References

https://discuss.streamlit.io/t/streamlit-official-documentation-in-pdf-format/25342/3

Contribution License Agreement
By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

@snehankekre Made some updates to this PR. Running the command locally should work now, without timing out, and also the pages should be styled correctly now that we've merged the print stylesheet.
A couple things to note:

For the PDF generation to work properly and be styled consistently, I had to replace the production url (https://docs.streamlit.io) with the localhost URL. That means we can't add it as a post-deploy script in Netlify because we're not running the local server there;
Since Netlify might not be an option ☝🏻, I added the command to generate the PDF on a pre-push hook. This means your changes aren't pushed to the branch until the script is completed (currently takes ~1-2 minutes). Is that desirable? Or do we not want to enforce this delay?
The pre-push hook doesn't add, commit and push the file to the repo (for now) because it's a rather big (~80mb) file. Is still the plan to host it on the repo, given its size? Or should we upload it to S3?

@imjuangarcia Awesome!

We probably don't want to enforce this delay for every push. Could we make it so that only certain contributors can run the pdf generation on specific PRs? For example only for PRs related to a new core release
Given its size, we should not host it on the repo. S3 might make more sense. WDYT @randyzwitch?

Running the command locally should work now, without timing out

I fetched the latest changes and encountered a TimeoutError after running for 3-4 mins:
Done! Created PDF for libgl
Done! Created PDF for no-matching-distribution
/Users/skekre/docs/node_modules/puppeteer/lib/cjs/puppeteer/common/helper.js:232
    const timeoutError = new Errors_js_1.TimeoutError(`waiting for ${taskName} failed: timeout ${timeout}ms exceeded`);
                         ^
TimeoutError: waiting for Page.printToPDF failed: timeout 30000ms exceeded
    at Object.waitWithTimeout (/Users/skekre/docs/node_modules/puppeteer/lib/cjs/puppeteer/common/helper.js:232:26)
    at Page.createPDFStream (/Users/skekre/docs/node_modules/puppeteer/lib/cjs/puppeteer/common/Page.js:2143:49)
    at Page.pdf (/Users/skekre/docs/node_modules/puppeteer/lib/cjs/puppeteer/common/Page.js:2156:37)
    at getPDFs (/Users/skekre/docs/scripts/build-offline-docs.js:88:14)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Promise.all (index 42)

Maybe lines 88-91 of build-offline-docs.js should read:
  await page.pdf({
    path: `public/pdf/pages/${url.slug}.pdf`,
    format: "a4",
    timeout: 0,
  });

Ok what worked was deleting my local branch, fetching the remote branch, disabling timeout, and running the script. It took around 10 mins to generate the final pdf -- not too bad!
Another improvement could be to sort pages in the order in which they appear in the docs (following the Next: arrow link at the bottom of pages). The pages in the final pdf appear to be randomly sorted

For the time being, I would think about just writing proper instructions for people to use to do this themselves, up to possibly creating a Docker image for ease-of-generation. We can then think about how to do this as a separate process that doesn't hold up the web development piece, creates an archive, etc.

@snehankekre

Ok what worked was deleting my local branch, fetching the remote branch, disabling timeout, and running the script.

Ok, so then there's no need to add the timeout: 0, right? Either way it's working for me.

Another improvement could be to sort pages in the order in which they appear in the docs (following the Next: arrow link at the bottom of pages). The pages in the final pdf appear to be randomly sorted

This is rather complex, because I'm not using puppeteer anymore to navigate each page, and instead I'm taking the URLs from our sitemap. What I just did on cbb3cac is modifying the slug parameter to have indexes at the beginning, so it's easier to group them on each category (Library, KB and Streamlit Cloud). Would that work, or is it too fragile/arbitrary? If that's not good enough let me know and I'll try to find a workaround for it!

@imjuangarcia

Ok, so then there's no need to add the timeout: 0, right? Either way it's working for me.

I guess not! It might have been due to a bug in my environment.

Would that work, or is it too fragile/arbitrary? If that's not good enough let me know and I'll try to find a workaround for it!

It would definitely work as a first iteration. We could improve the ordering of pages in a later PR.
Since there's almost a 1:1 mapping between the urls in content/menu.md and public/sitemap.xml, is possible within the script to fetch the links from the sitemap, sort them by the order in which they appear in content/menu.md, and then generate PDFs?
Unrelated: I noticed the sitemap wasn't updated since Oct, 2021. So I updated it locally and pushed the changes on a951d85.

@snehankekre Using menu.md is a good idea! I found a way to improve the sorting on 94e693a so it works as you suggested. Let me know what you think!
Also, tried to adjust the command we use to generate the sitemap automatically, next-sitemap, to see why it wasn't updating since October, but I'd rather do that in a separate PR to avoid making this one more complex than it is.

@imjuangarcia The pdf generation works wonderfully now! 🎉

Were you referring to the file itself, or the URLs inside the sitemap?
Both. The file metadata indicated it hadn't been updated since Oct, 2021. URLs of pages that were created after Oct, 2021, weren't included the sitemap until this PR (e.g. https://docs.streamlit.io/library/get-started/multipage-apps, https://docs.streamlit.io/library/api-reference/personalization/st.experimental_user)

@snehankekre Ok, so then I guess we could merge this? Or are there any other adjustments you want me to make to it?


pills: Improve style of placeholder texts in pills.

This PR improves placeholder text styles, fixes #8622
pills: Show data-some-recipients placeholder text only on focus.
Show data-some-recipients placeholder text only when input
element to add recipients is focused.

Fixes #8622

pills: Show data-no-recipients text only if no recipients selected.
Currently, we shows data-no-recipients placeholder text even if
there are recipients selected. It's not visible cause it's value
is override by data-some-recipients helper text in case if there
are recipients selected.

Show data-no-recipients placeholder text only when `input` element
is first child of `pill-container`, which means there are no `pills`
selected by user yet.

GIFs or Screenshots:

Feel free to squash commits into one.

Nice, this looks great, merged, thanks @YJDave!


Add blurhash values to screenshots

It would be nice to be able to have a neat placeholder for our bigger images like screenshots. For that it would be sweet to have the backend supply us with a blurhash.
See https://github.com/woltapp/blurhash for some examples.
The next.js as we're using it in the frontend already supports this, if we can get hashes.

I don't think we should spend time on this.


[EDA] Saving Success Message

Critical Changes
Changes
Issues Closed
New Metadata
Unpackaged Metadata
Deleted Metadata
Testing Notes

QA Passes - Merging


pass keys in as command line arguments?

Should you be able to pass the twitter keys on the command line, and to the Twarc constructor?

Looks the simplest way in using multiple twitter keys when doing parallel archiving on multiple query, or a previous query running since lots of time. imho

Agreed.


Flutter WebView doesn't allow full screen view when running fullscreen capable videos (e. g. YouTube videos)

Using the webview_flutter plugin version 1.0.1, I've tried a simple WebView app to run YouTube. The basic buttons are working such as play, pause, previous, next, setting. But when I'm trying to hit the full screen, it seems that it doesn't work.
Here is my sample code:
import 'package:flutter/material.dart';
import 'package:webview_flutter/webview_flutter.dart';
import 'dart:async';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  final Completer<WebViewController> _controller =
      Completer<WebViewController>();

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: WebView(
        initialUrl: "https://youtube.com/",
        onWebViewCreated: (WebViewController webViewController) {
          _controller.complete(webViewController);
        },
        javascriptMode: JavascriptMode.unrestricted,
      ),
    );
  }
}

Output of flutter doctor -v
[✓] Flutter (Channel stable, 1.22.0, on Mac OS X 10.15.7 19H2, locale en)
    • Flutter version 1.22.0 at /Users/amagnabe/Developer/flutter
    • Framework revision d408d302e2 (10 days ago), 2020-09-29 11:49:17 -0700
    • Engine revision 5babba6c4d
    • Dart version 2.10.0

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/amagnabe/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses

[!] Xcode - develop for iOS and macOS (Xcode 12.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.0.1, Build version 12A7300
    ✗ CocoaPods not installed.
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To install:
        sudo gem install cocoapods

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 50.0.1
    • Dart plugin version 193.7547
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] Connected device (2 available)
    • Android SDK built for x86 (mobile)  • emulator-5554                        • android-x86 • Android 8.1.0 (API 27) (emulator)
    • iPhone SE (2nd generation) (mobile) • 88C21973-CEC1-4AE5-B9B7-6F8399C6F8D4 • ios         • com.apple.CoreSimulator.SimRuntime.iOS-14-0 (simulator)

! Doctor found issues in 2 categories.

To reproduce the issue:

Run the sample code.
Choose any video YouTube.
Press full screen.

Expected Behavior:
Videos should be able in fullscreen mode when hitting the fullscreen option.
Actual Behavior
Videos capable of fullscreen is not functioning when the fullscreen option was pressed.

Yup, I am facing too. Even, I face the same issue in - (official webview plugin && flutter_inappwebview)

Hi  @MaruQuarky
I can reproduce the issue, this is not supported yet https://github.com/flutter/flutter/issues/27101
Please follow up on that issue, I'm closing the current one as a duplicate.
If you disagree, please write in the comments and I will reopen it.
Thank you


some setter for content-type

I could find no setter for content-type for post request, so  I hardcoded to sove my problem:	m_request.set(http::field::content_type, "application/x-www-form-urlencoded"); at line 51 of client_private.hpp. and tried some implemetation of a setter (for future use) which I  didn't  tested:
at httpclient.hpp:
void setContentType(boost::string_view contentType = "application/x-www-form-urlencoded") {
     m_request.set(http::field::content_type, contentType);
}

Please see current version for a new POST API, which allows for content type to be set.


Create documentation per each major release

Current documentation are for quartz-2.2.x series and can be view here:
http://www.quartz-scheduler.org/documentation/
It would be nice we can convert these doc using asciidoc format, and keep each major release a copy set and keep them up to date. Current active branches are:
quartz-2.3.x
quartz-2.4.x
quartz-3.0.x

Close as dup of #360


Added a button to enable/disable the color coding

Added Color Coding Toggle for Design Rule Highlighting:

Introduced a checkbox button to enable/disable color coding of elements based on the probability of being part of a design rule.
Default behavior- color coding is enabled unless manually toggled off.

With Color-Coding On ->

With Color-Coding Off

@samyak1326
Please update the checkbox label to something like "Highlight code elements based on their likelihood of being part of a rule".


set_url_scheme for images output (for users who switch from http to https or vice versa)

Issue description:
When images are saved when a site is not using SSL, after switching to SSL they still use http://
(they invoke mixed content console errors)
Proposal:
As shortly discussed on chat:
Implement set_url_scheme() on output

Fixed, will be included in v3.0.20

Thank you @aristath !


Deprecation notification for Status indicators - Figma

Write and update deprecation notification for Figma:

Status indicators

Direct people to core kit's status indicator

Already updated and moved to core


Example of ground_truth_dict and result_dict

I couldn't understand how to initialize ground_truth_dict and result_dict dictionaries when we have multiple images and predictions. Can you give an example? Thank you.

ground_truth_dict looks like the following:
<class 'dict'>: {
       'boxes': array([[ 871.,  572.,  925.,  664.],
       [ 948.,  592., 1010.,  684.],
       [ 874.,  705.,  941.,  815.],
       ...
       [ 855.,   85.,  867.,  103.],
       [ 850.,  125.,  860.,  152.],
       [ 849.,  122.,  860.,  144.],
       [ 849.,  119.,  860.,  141.]], dtype=float32),

       'labels': array([ 4,  4,  4, 10,  2, 10,  1,  1,  8,  2,  8, 10, 10,  7, 10,  7, 10,
       10, 10, 10, 10,  8, 10,  8,  8,  8, 10, 10, 10, 10, 10,  8, 10,  8,
       ...
       1, 10,  2,  2,  4,  4,  1,  1, 10,  2,  2, 10,  2, 10,  2, 10,  2,
       8,  2, 10,  2,  8,  2, 10,  2,  2], dtype=int64)}

result_dict looks like the following:
<class 'dict'>: {
       'boxes': array([[ 873.,  571.,  923.,  666.],
       [ 945.,  588., 1011.,  685.],
       [ 882.,  700.,  943.,  817.],
       ...
       [ 857.,  328.,  883.,  365.],
       [ 581.,  763.,  615.,  804.],
       [ 865.,  400.,  905.,  439.]]),

       'labels': array([ 4,  4,  4,  4,  4,  4,  5, 10, 10, 10,  4, 10, 10, 10,  1,  5, 10,
       10,  2, 10, 10,  4,  2, 10, 10, 10,  4, 10,  2,  1, 10, 10,  2, 10,
       ...
       10, 10,  1, 10, 10,  2, 10,  4,  2,  2,  1, 10, 10, 10,  2],
      dtype=int64),

      'scores': array([0.99056727, 0.98965424, 0.93990153, 0.9157755 , 0.8776852 ,
       0.8343509 , 0.7326441 , 0.6726452 , 0.65791756, 0.6477029 ,
       ...
       0.2758158 , 0.2751832 , 0.27424183, 0.27214053, 0.27162442,
       0.26996344, 0.26646382, 0.2605154 , 0.26025057, 0.25834218],
      dtype=float32)}

So, in ground_truth_dict, boxes contains an array of arrays with 4 floats, in this case the left corner of the bounding box, the bottom corner of the bounding box, the right corner and the top corner. Labels are integers with every integer representing one class.
In result_dict, boxes has the same format as in ground_truth_dict, labels also as in ground_truth_dict and scores contains a float about how sure the network was about the prediction.
Hope that helps, I meant to include more detailed explanation and examples but simply forgot. If you still struggle, just reply in this issue.

That is indeed a bug, when writing the code the use case was having a fixed amount of predictions, the remaining ones were dropped.
I'll enhance the model by the possibility to have a different amount of ground truth and predictions.

@sheldonsebastian I just published v0.2.1 which removes the restrictions you mentioned. The number of predictions can now differ from the ground truth.
v0.2.0 had a flag that would allow stripping off the predictions that are too much, but I then realized that the mAP calculations actually automatically handles that. My bad, it's been some days since doing object recognition.


Move To Delete - items become stuck [Android]

Tested on android device api 23
using the sample app.
When I delete a few items, and scroll the listview - some items get into a state where they can only be swiped about 1 or 2 pixels.

Same problem here. I use ListView.
Actually i cloned the sample project from here and it has the same issue

Hey guys, sorry for delay.
But i have 6 open source xamarin.forms projects.. extremely little time.
I appreciate any help. Feel free to make PRs

cannot reproduce on latest code (just updated packages)
on API 28 emulator


tootlip display non-charted values

Given a list of objects, for example students
var students = [
{name: 'Alicia', age:12, height:150},
{name: 'John', age:13, height:160}
]

Is it possible to plot age vs name and have height in the tooltip?
I am using chart.js v1.0.2
and angular-chart.js

@klode this is not possible in v1. You'd need to modify the tooltip class to add this functionality.


Add insight object search

Description of the change
Add insight objects search
Type of change

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

Related issues
Closes https://github.com/refractionPOINT/tracking/issues/663

Could you also add the equivalent to this call?
https://github.com/refractionPOINT/python-limacharlie/blob/master/limacharlie/Manager.py#L707
It allows users to query for multiple Objects at the same time which is important for some (like during an IR) to be able to query a lot of things without hitting any per-org query limits.

For sure!


Update the action to use the new Environment File syntax

GitHub has changed the way to set environment variables in a workflow, due to a security vulnerability found in the old set-env workflow command.
Right now, using the Cake Action in a workflow results in the following warning:

⚠ The set-env command is deprecated and will be disabled soon. Please upgrade to using Environment Files.

We should update the action to use the new Environment File syntax.

Fixed in 985efc8.


Duplicate Symbol Issue

Hi KickFlip team I like your Product, In future we will have plan to buy this, i am testing Kickflip in my project and I got this Error paste.ubuntu.com/12637254/
Please check this Error log, and i am using Facebook Framework in my project, and this is conflict with BFUrl.h please check this error and Reply us ASAP,

Please mail us Your Contact info<EMAIL_ADDRESS>


Deleted network back in analysis

The network Knopenlopen Sevenum has been deleted 4 years ago, but it is being analysed since a short time. This includes a lot of errors that have been solved years ago.

Knopenlopen Sevenum is not visible in the analysis anymore.


crawlExecutor impl

Pull Request Test Coverage Report for Build 81

0 of 0 (NaN%) changed or added relevant lines in 0 files are covered.
2 unchanged lines in 1 file lost coverage.
Overall coverage remained the same at 0.0%

Files with Coverage Reduction
New Missed Lines
%

/home/travis/build/Jaitl/cloud-crawler/simple-worker/src/main/scala/com/github/jaitl/cloud/simple/worker/crawler/HabrCrawler.scala
2
0.0%

Totals

Change from base Build 75:
0.0%

Covered Lines:
0

Relevant Lines:
2

💛  - Coveralls


Android sample fails to run: Failed to notify project evaluation listener.

Error:A problem occurred configuring root project 'hello-android'.

Failed to notify project evaluation listener.
com.android.build.gradle.tasks.factory.AndroidJavaCompile.setDependencyCacheDir(Ljava/io/File;)V

Maybe I'm not configured right? I'm on Android Studio 2.3 (Feb. 24 release) and Kotlin 1.1.1-release-Studio2.3-1.
Also, I can get it to work by changing to v3.5 of gradle-script-kotlin.
I.e. in gradle-wrapper.properties changing this:
distributionUrl=https://repo.gradle.org/gradle/dist-snapshots/gradle-script-kotlin-4.0-20170418125848+0000-all.zip
to this:
distributionUrl=https://repo.gradle.org/gradle/dist-snapshots/gradle-script-kotlin-3.5-20170404014535+0000-all.zip

Hit the same problem trying to compile Flutter on Linux. Project compiles fine on Mac.

same failure when trying to compile flutter on Windows 10.
help?
also adding --stacktrace to settings/build/gradle-android compiler doesn't change console output

I've found somewhere discussion that this might be related to case sensitive and non-case sensitive file systems. Ext3(linux) and NTFS(windows) are case sensitive. HFS+ (mac) is not.

Ok so this looks like a different issue. Mine is affecting only Grade 4.0 and Android Studio 3.0.

I've got the same problem, i just went back on the stable version and changed the classpath 'com.android.tools.build:gradle' from 3.0.0 to 2.3.2

FAILURE: Build failed with an exception.

What went wrong:
A problem occurred configuring project ':CordovaLib'.

Failed to notify project evaluation listener.
Could not initialize class com.android.sdklib.repository.AndroidSdkHandler

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

Get more help at https://help.gradle.org

gradle sync
Error:Failed to notify project evaluation listener.
gradle build
Error:FAILURE: Build failed with an exception.

What went wrong:
A problem occurred configuring project ':app'.

Failed to notify project evaluation listener.
java.lang.reflect.InvocationTargetException (no error message)

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Get more help at https://help.gradle.org

BUILD FAILED in 1s


Charting on superset display the date dynamically based on local timezone

When Loading a Dataset and creating a CHART.
Date datatypes are automatically displayed on current user local timezone.
How to reproduce the bug

Go to dataset
Click on your dataset name (data with date values)
from DATA tab, drag your date columns on QUERY MODE [RAW RECORDS]
Update Chart, view and sample result shows the difference

Expected results
date values should show as the same as by default.
Actual results
With Adaptive formatting:
actual data :
dataset_date = 2023-07-24
on charting :
dataset_date = 2023-07-23
With TIMESTAMP format :
actual data :
dataset_date = 2023-07-24 00:00:00
on charting :
dataset_date = 2023-07-23 23:00:00
Environment
(please complete the following information):

browser type and version:
MS Edge Version 114.0.1823.79 (Official build) (64-bit)
Chrome Version 114.0.5735.199

superset version: superset version
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Superset 2.0.1
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

python version: python --version
Python 3.8.12

node.js version: node -v

any feature flags active:

Checklist
Make sure to follow these steps before submitting your issue - thank you!

[/] I have checked the superset logs for python stacktraces and included it here as text if there are any.
[/] I have reproduced the issue with at least the latest released version of superset.
[/] I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context
Add any other context about the problem here.

Hopefully these docs clear things up a bit:
https://superset.apache.org/docs/miscellaneous/timezones
Closing this since I don't think we have a bug here (or we would have heard a LOT of complaints). It's also been silent for a long time, so I think it's safe to cal this stale... I hope you found a solution!


Internal unit testing framework

Does it also include await fix? Can you make sure tests pass?

@wolfy-j Await will be a separate PR. Fixing tests now...


in IDF 4.4.3,How to deinit blufi in Nimble mode?  (IDFGH-9808)

Is your feature request related to a problem?
Hi, I am using esp32s3wroom1  ,and using blufi in nimble mode,but I couldn't find a API to deinit blufi.
By the way ,i see IDF5.0 add the deinit API of nimble mode,but I can't  find those APIS  in IDF4.4.3
However ,bluedroid does have ,but for some reason ,i need to use nimble mode in IDF4.4.3.
So i wanna ask if there is a easy way to deinit blufi in nimble mode?
Thanks a lot!
Describe the solution you'd like.
No response
Describe alternatives you've considered.
No response
Additional context.
No response

Hi @casitelwithdean  ,
Please check if attached patch helps. This should be applied at $IDF_PATH .
0001-Nimble-blufi-Added-an-API-to-stop-Bluetooth-Blufi.txt

Closing issue . Please feel free to reopen if the patch is not helping.


Fix compilation failure on Windows

strcasecmp is POSIX so does not exist on Windows. Use _stricmp instead. This is the cause of the compilation failure in https://xgboost-ci.net/blue/organizations/jenkins/xgboost-win64/detail/PR-4876/50/pipeline#step-44-log-401
@trivialfis @chenqin

looks good overall, please fix lint error


API return "Network Error" what is it?

Today my request return error that say "Network Error" but yesterday is just fine, is there any maintenance on server?

see https://github.com/jikan-me/jikan-rest/issues/113#issuecomment-640130773

Closing issue; duplicate.


Typo in installation guide

Found a typo that cost me a lot of time to figure out. In installation guide in the Standalone Component section TranslationService is said to be imported, although it's really TranslateService that needs to be imported.
Hope this can help some other newbies in Angular like your humble servant.
Keep up the good work!
Yours truly,
Michael

Thanks for reporting this... fixed!


Update tools.txt

consistency. the same as line 1311

Thanks for this patch, but I don't see much value in this change.


where is code display and/or console.log

VSCode Version: latest*
OS Version: (is this including windows? if so im using windows 8 upgrade to 10)

@vscodeerrors  ok so i dont know if you havent noticed, but i cant seem to find the console.log or the viewing thing. please add that to the main screen as a button that you can click tht opens it up.
*latest on day that i posted this (8/18/2016)

i checked everywhere and i couldnt find a button for it if there is can you tell me where it is i got VS today

@destroyer9 I am not sure what you mean? Do you run a task (tasks.json), do you launch a program to debug (launch.json), do you run a command inside the integrated terminal, do you want to see the developer console, in what area is your problem? (i.e. what do you do and what is missing)

well i look in where the vs code folders should be in file explorer and nothing i made is there and i typed (console.log)'hello world' and i should have seen hello world in the console. (and im using an unsaved file) and i dont know how to launch this dev console you're talking about so can you tell me how to do that (i got VS yesterday when i posted this)

oh and how do you add labels

@destroyer9 can you please provide a git repository or a zip that shows the problem. If you create a JS file like
console.log('Hello World');

and want to see the output running the code then please read the docs here how to do this: https://code.visualstudio.com/docs/editor/debugging

Without the additional information we can't work on this issue. Please ping when the information is available and we will reopen the issue.


Outdated timeline on electronjs.org

According to https://www.electronjs.org/docs/latest/tutorial/electron-timelines#timeline, 20.0.0 is still supported. But according to https://www.electronjs.org/blog/electron-23-0#end-of-support-for-20xy Electron 20.x.y is EOL.
It seems https://www.electronjs.org/docs/latest/tutorial/electron-timelines#timeline is not up-to-date.

@marcwrobel is this issue open now?

@anj20, looks like the page was updated since I opened this issue. Closing it.


Handle additional invalid USD names

Extend the replacement table to include "^" and other chars that are not valid in a USD pathname.

@kecolburn This adds a few more characters to the "reject" list. for names.  It fixes the "foo^bar" example case.


Swap checkbox doesn't hidden

I try to use some swap but the checkbox is clear and not hidden

Please provide a code example on a small repo or a Tailwind Play page so I can reproduce the issue

Please reopen after providing and example repo. this seems like to be a problem caused form another CSS code.

Same issue here,
fresh project, I think all dependencies are latest.
package.json
"tailwindcss": "^3.2.4"
"@tailwindcss/forms": "^0.4.1",
"@tailwindcss/typography": "^0.5.7",
"daisyui": "^2.42.1",

tailwind.config.js
plugins: [
   require('@tailwindcss/forms'),
   require("@tailwindcss/typography"),
   require("daisyui")
 ],
 daisyui: {
   themes: ["fantasy","dark"],
 },


Update moneywell to 2.3.6

Thank you for the contribution. It needed some fixes, so they were made in d39cbb971b0af964972f75ef97425d6fbe5b5942. Your contribution is still included (and still credited to you), with the appropriate modifications. Please feel free to ask about any of the changes.


Can you provide a more extensive readme

Hey,
I'm curious how to use the collector in a docker environment. Can you put up some documentation or "Getting started" snippets?

Hey,I'm helping the snowplow guys migrating this to their own repo at https://github.com/snowplow/docker-snowplow
You can follow my PR at https://github.com/snowplow/docker-snowplow/pull/9

I saw that repo, but it's empty so far. Would be happy to help.

Checkout the PR will follow up with documentation later this week I hope but generally, running the containers is really simple.
Something along the lines of
docker run --name snowplow-stream-enrich --volume /opt/snowplow:/opt/snowplow --rm memrise/snowplow-stream-enrich
There's a single configuration file for each container. Check it out in the source code

Ah, that's nice. I'm wondering how i can customize the config. I left a comment on dockerhub 8 month ago :) https://hub.docker.com/r/memrise/snowplow-stream-collector/