Allow replay of recordings

I am not sure this feature exists or not (still investigating the code). If it exists, can you please add an example (record a request/response with Proxy and replay it using the MockServer)? (A)
If not, then how I am supposed to replay the recorded Request/Responses (I am talking about the data that comes out of ProxyClient.dumpToLogAsJava)? (B)
(I am working on this, however I am wondering if this has not already been supported)
Let me say what I did so far:

started mockserver and proxy
configured system under test to use the proxy
made some requests
coded to retrieve the Expectations (proxyClient.retrieveAsExpectations), serialized them (using the ExpectationSerializer.serializeAsJava) into separate files

Still to do:

deserialize the request/response (Expectation); no idea how to do it yet (investigating ExpectationSerializer)
send the data to MockServer; investigating ForwardChainExpectation an MockServerClient.sendExpectation

Problems so far:

sendExpectation is protected (ok, I can extend the Client with my own, so not big issue). still wondering if it design like this, or I am not supposed to use it
a serialized request/response starts with new MockServerClient().when...   ; I guess I have to strip this part of and do myMockServerClient.when...

Questions:

am I supposed to send Expectation myself, through my own MockServerClient ? (C)
do I have to prepare the Expectation before sending it? (D)

I have managed to serialize/deserialize an Expectation using ExpectationSerializer, the json part (serialize/deserialize methods) and to re-register an Expectation from Proxy (got it with ProxyClient.retrieveAsExpectations) to Server (using MockerServerClient.sendExpectation)
Yeeey!! :relieved:
However, for replay, the headers and cookies need to be cleaned (otherwise, the requests will never match).
For start, I have removed them entirely :grinning:
What your opinion on this cleanup (in case I decide to make a pull-request and add the Record/Replay to the project)? Should it configurable?

To be honest I consider record-replay as an anti-pattern because it leads to very brittle and expensive to support tests.
In general a test should specify the test data (i.e. mocked requests / responses) within the test.  Record-replay leads to tests sharing the test data and the test data being non obvious when looking at the test.
If the test data (mocked requests / responses) are complex to setup or require a lot of repeated steps that are common to many tests I would suggest using a test fixture class and a set of response builders.  A test fixture would understand which mock requests / responses need to be setup for a specific business function being tested (i.e. user login or user registration).  The test fixture can hold the data being used to mock the requests and responses, it can also auto generate appropriate data then can setup the expectation in the MockServer.  This should all be done using a defined interface, for example:
A LoginTestFixture class could have a method mockSucessfulLogin() this would either accept a username and password or generate one and use these values to setup the appropriate expectation in the MockServer.  The expectation would be setup by using a build class that knew how to build the request and another builder class that knew how to build the response.
The LoginTestFixture.mockSucessfulLogin() method could then either return a User object that contained the username and password to be used in the test or LoginTestFixture could expose two methods getUsername() and getPassword().
For example if the test was testing the login page

in the setup we would call

User user = loginTestFixture.mockSucessfulLogin()```
- then the ```username``` and ```password``` contained in ```user``` could then be passed into the appropriate input boxes on the web page.
- when the login button was clicked in the form the request would be sent to the MockServer and the appropriate response would be returned.

With this approach it is clear from the test setup method what the test data is, in addition the test setup is encapsulated in a class whose only responsibility is to setup the test data.

This may sound like a lot of code but generally this sort of approach leads to very simple, resilient and easy to manage tests.  Basically tests that only fail when there is a genuine failing business requirement and not when the implementation changes.  Basically we are trying to avoid complex and expensive tests and replace them with resilient tests and a small amount of very simple test utility classes that help in mocking the parts of the system we are not interested in testing.

This way no recorded, hard coded data is magically shared between tests.  If you record and replay how do you handle the situation when the format of the mocked responses changes without having to update all your tests?  What happens if one tests need to modify the recorded data?  How does someone trying to fix the test in six months time know which bits of the recorded data are important and which bits are irrelevant or even why that exact data set was chosen.

What do you think?

I understand somethings and do not feel the others. So, let's talk :)
But, first of all, I do not plan to record data for tests to use/reuse. I want use the recorded data for real server mocking, as in, I want a fake server. I actually want a back-end that is not faked, but stubbed, always responding the same, because a real back-end is to expensive.
I do not plan to use the recorded data to test the actual server itself (as you mentioned, that is not just brittle, it is quite messed up, in my opinion; "asking for trouble" would be a nice way of describing doing that).
Anyway, that being my use-case (server stub), onto your remarks :

"If you record and replay how do you handle the situation when the format of the mocked responses changes without having to update all your tests?"
I do not "handle" it. I restart from scratch. At least that specific service, that changed, will have to be recorded again (by using your Proxy, while calling the new back-end; it is a "new" back-end, because I am expecting the real services to change signature of request/response overtime, as the application evolves). I plan to save recordings using a concept I called "profile" (it is actually a folder :D ), like v1.0, and later v1.1. As the application that I have to mock changes its "interface" (contract data), I make a new folder, and setup my Recorder to replay from that folder.
"With this approach it is clear from the test setup method what the test data is, in addition the test setup is encapsulated in a class whose only responsibility is to setup the test data."
I would totally agree with this as a strategy. I do not feel like I need it for my use-case.
"A LoginTestFixture class could have a method mockSucessfulLogin()"
This would never be the case, for me, as I will never try to implement a mockSucessfulLogin
"What happens if one tests need to modify the recorded data?"
Not going to happen. Anyone asking me to do that, I will pay for the bullets. the feature is called record/replay, not record, mess with it, replay.
"How does someone trying to fix the test in six months time know which bits of the recorded data are important and which bits are irrelevant or even why that exact data set was chosen."
There are no tests. There is however, recorded data. And, if it is not the kind of data that you would expect from the real version of the application (as opposed to the one being replayed by MockServer), then new recording is necessary.
"This way no recorded, hard coded data is magically shared between tests."
This remark, I did not even "compile", as I am hoping will not fit my use-case.

To address the issue of testing the new Recorder:
Since it has 2 big features: record (the Expectation, aka response/request, and save it to file) and replay (read from file and send Expectation to server), those will be tested separately.
a. The tests for recording will rely on implementation of the Serializer and I am hoping we can extract that a bit, make more injectable. This way, testing the recording can have a mocked Serializer and not care, if in time, the format or the data serialized changes. And, as a user of the Recorded, upgrade to the new version of Recorded at your own expense :D (obviously, as an user, your recorings will be invalid; maybe we can even version the recorded data, to keep backward compatibility)
b. The test for replay will be a bit more tricky. We just send some once valid request/response (a recorded Expectation) to the MockServer and then make some calls and see the expected.. but, this is kind of the integration test that you already have for the MockServer. Maybe we can simplify, and just check that the data that was sent (the Expectation) arrived at the MockServer.
Thanks for taking the time to talk without bashing into my ideas. I only hope I did the same. Please feel free to jump into any points from above.
PS: I will have to upload the code I have written, soon, just so you see what I did.

I do support manual record-replay as follows:

setup the proxy
using the proxy to record the desired interactions
use the proxy endpoint dumpToLog?type=java
copy and paste the contents of the log into an instance of org.mockserver.initialize.ExpectationInitializer
configure you pom.xml with the mockserver-maven-plugin to use the the ExpectationInitializer instance, for example:

<plugin>
    <groupId>org.mock-server</groupId>
    <artifactId>mockserver-maven-plugin</artifactId>
    <version>3.9.2</version>
    <configuration>
        <logLevel>INFO</logLevel>
        <serverPort>8080</serverPort>
        <initializationClass>org.mockserver.MyClasspathInitializationClass</initializationClass>
        <pipeLogToConsole>true</pipeLogToConsole>
    </configuration>
</plugin>

use the mvn mockserver:runForked command OR add executions to start and stop MockServer as part of the build as follows:

<executions>
    <execution>
        <id>run-as-start</id>
        <phase>clean</phase>
        <goals>
            <goal>runForked</goal>
        </goals>
    </execution>
    <execution>
        <id>stop-at-end</id>
        <phase>verify</phase>
        <goals>
            <goal>stopForked</goal>
        </goals>
    </execution>
</executions>

now you have a fake server running on port 8080 that will replay all the requests recorded by the proxy in step 2

With this approach you have a basic record and play, but you do need to copy the java code dumped into the logs into an instance of ExpectationInitializer.
I do not want to add full record-replay as I do think this is a very bad anti-pattern for several important use cases for MockServer.  I realise that your use case is not for testing and so for you this is not a problem, however, I don't want to add this feature as it will negatively affect the other use cases.


how container get its ip address when connected with docker0 bridge?

HI
I  just want to know, I create a container by default, it connect with docker0 bridge.
  $  docker inspect --format '{{.NetworkSettings.IPAddress}}' test1
  <IP_ADDRESS>

it can get an IP address, is this through DHCP or static assign? how it work? where can i find the information about this, because i can't get this information from https://docs.docker.com/engine/userguide/networking/
thanks.

anyone know this? please!

By default it uses the built-in ipam driver. By default it uses a set of predefined subnets from which it dishes out the IP addresses. Pls look under ipam directory for more I formation.

thanks. will check them


WIP documentation_api: Deduplicate ignored_parameters_unsupported.

Created a schema for the ignored_parameters_unsupported array that is returned by the /settings and /realm/user_settings_defaults endpoints and removed the duplicated text in the api documentation.
I wasn't sure about style and order for the schema. Re:order, I put it at the top of the schema section in the zulip.yaml. And re:style, I went with the camelcase starting with a capital letter as that seemed to be the standard (the profile_data schema is the only one in the document that doesn't follow camelcase pattern).
The /settings endpoint had some change documentation (feature levels 78 and 80) that needed to be included in for that endpoint, but not in every endpoint usage of the new schema, so I put the change log in the main description of the endpoint definition, which required some light editing and cleaning of the text.
I also cleaned up some small errors in the /realm/user_settings_defaults definition (there was a period in the summary) and sidebar link /api/update-realm-user-settings-defaults (didn't match the summary).
In regards to testing beyond the zulip testing suites, I did some visual checks to make sure that the information shown currently for these endpoint documentation is included in the new versions (see images below).

Fixes #19674

Other than that small comment, this looks great.  I do think if/when we add this reporting feature to all endpoints (which we do aim to do), we may need to do more thinking about the content of that shared "Changes" section, but this is a clear improvement, and we haven't figured out other important details around how we'd implement reporting ignored_parameters_unsupported for all endpoints.
Let me know when you've resolved the above, and I can merge.

Merged, thanks @laurynmm!

I appreciate the thoughtful attention to detail in thinking through the tricky issues around where to put content that only applies to some places where we want to include common content.
It's a general problem that we have throughout the OpenAPI documentation -- e.g. there's a lot of fields that appear in both the documentation for /register and /events and in the endpoints for changing that value.  And in those some of those places, we'd ideally have a common description that explains what the field does (with links to the relevant /help/ article) as well as details, perhaps about historical changes, that might be specific to that particular appearance of those details.


Added a new network creation driver option (disable_gatewaydns) for t…

…he Windows driver
Signed-off-by: Cheng-mean Liu<EMAIL_ADDRESS>This new disable_gatewaydns option provides a way for a client to create a network instance without any gateway IP added into the DNS list for all of its endpoints.
Usage of disable_gatewaydns:
When set as true, the Windows network driver will skip the addition of the gateway IP into the DNS list.
When not specified, the default setting for disable_gatewaydns is false, that is, it will always add gateway IP into an endpoint's DNS list unless an endpoint was created specifically with an existing epOption.DisableDNS option.
Example usage:
docker network create -d nat --gateway <IP_ADDRESS> --subnet <IP_ADDRESS>/20 -o com.docker.network.windowsshim.dnsservers=<IP_ADDRESS>,<IP_ADDRESS> -o com.docker.network.windowsshim.disable_gatewaydns=true  mynat

Codecov Report

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

@@            Coverage Diff            @@
##             master    #2021   +/-   ##
=========================================
  Coverage          ?   38.85%
=========================================
  Files             ?      137
  Lines             ?    27374
  Branches          ?        0
=========================================
  Hits              ?    10637
  Misses            ?    15439
  Partials          ?     1298

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 460ac8f...884eaa0. Read the comment docs.

LGTM

Thanks a lot for the patch!
      : No
   Autoconfiguration Enabled . . . .        : No
   Autoconfiguration Enabled . . . .  : Disabled

This fully fixes: https://github.com/moby/moby/issues/30260 , https://github.com/docker/for-win/issues/397 .
Tested-by: Alin Gabriel Serdean<EMAIL_ADDRESS>LGTM
cc @mavenugo

LGTM

Thanks for this great option!
In Visual Studio, I was not able to set this option in the docker-compose msbuild property <DockerComposeUpArguments>-o com.docker.network.windowsshim.disable_gatewaydns=true</DockerComposeUpArguments>.
But I was able to add it directly in the docker-compose yaml.
version: '3.4'

networks:
  app_net:
    driver_opts:
      com.docker.network.windowsshim.disable_gatewaydns: "true"

Works like a charm and saves me from having to reorder my DNS with the powershell
set-dnsclientserveraddress -interfaceindex xx -serveraddresses ("192.168.0.xx","192.168.0.xx","172.23.0.xx")


./chopstix/src/trace/memory.cpp:94:21: error: ‘explicit_bzero’ was not declared in this scope

When I try to build this tool on X86 device, this problems happens:
@:~/source-code/chopstix/build$ make -j
[  1%] [  9%] [ 10%] Built target cx-support
Built target vector_add
[ 47%] [ 48%] Built target example-daxpy
Built target compile_queries
[ 51%] Built target chop-detrace
Built target fmt
[ 52%] [ 52%] Built target test-daxpy
Scanning dependencies of target cxtrace
Built target clustering
[ 62%] [ 65%] Built target compile_client
[ 66%] Built target chop-perf-invok
Built target chop-trace2mpt
[ 67%] [ 70%] Built target cx-database
Building CXX object src/trace/CMakeFiles/cxtrace.dir/memory.cpp.o
[ 88%] Built target cx-core
[ 89%] Built target cx-arch
[ 98%] Built target chop
/home/source-code/chopstix/src/trace/memory.cpp:94:21: error: ‘explicit_bzero’ was not declared in this scope
     (unsigned long)&explicit_bzero,
                     ^
src/trace/CMakeFiles/cxtrace.dir/build.make:77: recipe for target 'src/trace/CMakeFiles/cxtrace.dir/memory.cpp.o' failed
make[2]: *** [src/trace/CMakeFiles/cxtrace.dir/memory.cpp.o] Error 1
CMakeFiles/Makefile2:456: recipe for target 'src/trace/CMakeFiles/cxtrace.dir/all' failed
make[1]: *** [src/trace/CMakeFiles/cxtrace.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

@YiFeiSong-ict Although there is some legacy code targeting x86_64 architecture, there is not test/dev support for x86_64. We currently support IBM Power and s390x (Z) architectures as well as RISCV.  We encourage you to create a PR with the necessary changes to support such architecture (mostly on the architecture backend).,

This is not a problem anymore on the latest update. Closing issue. Still, full x86_64 support is not enabled.


FGA can't start

Preparation

[X] I tested the latest release
[X] I looked at other issues (even the closed ones)
[X] I read the Troubleshooting Guide

FGO server
NA
FGA build number
1554
Describe the bug
I just switched from 1540 to 1554 and now I have a problem when it said
FGA (Cl) will start capturing everything that is displayed on screen.
I can't press the start now button. I can import, add and do everything else just fine. It just won't start when I click the start serivce
This isn't a problem with the 1540 version. I have it on my PC as well so I tried both versions, the 1540 version has the problem of not clicking next when I'm on the drops screen which is why I tried updating but doesn't have the problem I mentioned above wit the 1554 version
Video
https://youtu.be/_-Qq4MzIQ5o
Device model
Lenovo T570
Android version
11
Screen size
No response
RAM
8GB

I just used the debugger on 1540 and the reason it is stuck on the drop screen is because now the drop screen is a popup so fga runs the same battle script as it didn't detect screen change

Check to see if the app has unrestricted battery usage. The play button didn't pop up for me until I changed the setting to unrestricted.

I have the exact same problem, I tried to jump to version 1554 this morning and now to 1556 coming from 1547. In version 1547 I could start FGA but it stays in the drops screen without clicking Next. In versions 1554 and forward I couldn't start FGA.

I got a fix from others just now, rotate your bluestacks and then you can start 1554+

@SirRHellsing Do you still have a problem?

nope


Replace assertThat instanceof with assertThat#instanceOf in test case

The issue tracker is used for bug reporting purposes ONLY whereas feature request needs to follow the RIP process. To avoid unnecessary duplication, please check whether there is a previous issue before filing a new one.
It is recommended to start a discussion thread in the mailing lists in cases of discussing your deployment plan, API clarification, and other non-bug-reporting issues.
We welcome any friendly suggestions, bug fixes, collaboration, and other improvements.
Please ensure that your bug report is clear and self-contained. Otherwise, it would take additional rounds of communication, thus more time, to understand the problem itself.
Generally, fixing an issue goes through the following steps:

Understand the issue reported;
Reproduce the unexpected behavior locally;
Perform root cause analysis to identify the underlying problem;
Create test cases to cover the identified problem;
Work out a solution to rectify the behavior and make the newly created test cases pass;
Make a pull request and go through peer review;

As a result, it would be very helpful yet challenging if you could provide an isolated project reproducing your reported issue. Anyway, please ensure your issue report is informative enough for the community to pick up. At a minimum, include the following hints:
BUG REPORT

Please describe the issue you observed:

replace with assertThat#instanceOf
DefaultMQAdminExtTest

IOTinyUtilsTest

Please tell us about your environment:

Other information (e.g. detailed explanation, logs, related issues, suggestions on how to fix, etc):

FEATURE REQUEST

Please describe the feature you are requesting.

Provide any additional detail on your proposed use case for this feature.

Indicate the importance of this issue to you (blocker, must-have, should-have, nice-to-have). Are you currently using any workarounds to address this issue?

If there are some sub-tasks involved, use -[] for each sub-task and create a corresponding issue to map to the sub-task:

sub-task1-issue-number: sub-task1 description here,
sub-task2-issue-number: sub-task2 description here,
...

It feels about the same readability either way

It feels about the same readability either way

Consistent code style across the board


support template variables inside Topic query option

Hi, i was trying to use variables inside the topic query but it doesnt resolve them.

Is this just not implemented or i'm doing something wrong?
Regards

is there any update on the status of this issue


node10 does not include ImageMagick

After updating lambda functions to node10, execution fails due to following error. Assuming that node8 includes dependencies and node10 does not.
photo-sharing-backend-ExtractImageMetadataFunction-WO8YHMQB5V98
2020-02-17T17:53:52.893Z	9e746276-c1f2-45ff-a0f1-2ef293f8fdd4	ERROR	Invoke Error
{
    "errorType": "ImageIdentifyError",
    "errorMessage": {
        "errorType": "Error",
        "errorMessage": "Could not execute GraphicsMagick/ImageMagick: identify \"-ping\" \"-verbose\" \"-\" this most likely means the gm/convert binaries can't be found",
        "cause": {
            "errorType": "Error",
            "errorMessage": "Could not execute GraphicsMagick/ImageMagick: identify \"-ping\" \"-verbose\" \"-\" this most likely means the gm/convert binaries can't be found",
            "stack": [
                "Error: Could not execute GraphicsMagick/ImageMagick: identify \"-ping\" \"-verbose\" \"-\" this most likely means the gm/convert binaries can't be found",
                "    at ChildProcess.<anonymous> (/var/task/node_modules/gm/lib/command.js:232:12)",
                "    at ChildProcess.emit (events.js:198:13)",
                "    at ChildProcess.EventEmitter.emit (domain.js:448:20)",
                "    at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)",
                "    at onErrorNT (internal/child_process.js:415:16)",
                "    at process._tickCallback (internal/process/next_tick.js:63:19)"
            ]
        },
        "isOperational": true,
        "stack": [
            "Error: Could not execute GraphicsMagick/ImageMagick: identify \"-ping\" \"-verbose\" \"-\" this most likely means the gm/convert binaries can't be found",
            "    at ChildProcess.<anonymous> (/var/task/node_modules/gm/lib/command.js:232:12)",
            "    at ChildProcess.emit (events.js:198:13)",
            "    at ChildProcess.EventEmitter.emit (domain.js:448:20)",
            "    at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)",
            "    at onErrorNT (internal/child_process.js:415:16)",
            "    at process._tickCallback (internal/process/next_tick.js:63:19)"
        ]
    },
    "name": "ImageIdentifyError",
    "message": {
        "errorType": "Error",
        "errorMessage": "Could not execute GraphicsMagick/ImageMagick: identify \"-ping\" \"-verbose\" \"-\" this most likely means the gm/convert binaries can't be found",
        "cause": {
            "errorType": "Error",
            "errorMessage": "Could not execute GraphicsMagick/ImageMagick: identify \"-ping\" \"-verbose\" \"-\" this most likely means the gm/convert binaries can't be found",
            "stack": [
                "Error: Could not execute GraphicsMagick/ImageMagick: identify \"-ping\" \"-verbose\" \"-\" this most likely means the gm/convert binaries can't be found",
                "    at ChildProcess.<anonymous> (/var/task/node_modules/gm/lib/command.js:232:12)",
                "    at ChildProcess.emit (events.js:198:13)",
                "    at ChildProcess.EventEmitter.emit (domain.js:448:20)",
                "    at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)",
                "    at onErrorNT (internal/child_process.js:415:16)",
                "    at process._tickCallback (internal/process/next_tick.js:63:19)"
            ]
        },
        "isOperational": true,
        "stack": [
            "Error: Could not execute GraphicsMagick/ImageMagick: identify \"-ping\" \"-verbose\" \"-\" this most likely means the gm/convert binaries can't be found",
            "    at ChildProcess.<anonymous> (/var/task/node_modules/gm/lib/command.js:232:12)",
            "    at ChildProcess.emit (events.js:198:13)",
            "    at ChildProcess.EventEmitter.emit (domain.js:448:20)",
            "    at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)",
            "    at onErrorNT (internal/child_process.js:415:16)",
            "    at process._tickCallback (internal/process/next_tick.js:63:19)"
        ]
    },
    "stack": [
        "Error",
        "    at Object.<anonymous> (/var/task/index.js:40:32)",
        "    at Module._compile (internal/modules/cjs/loader.js:778:30)",
        "    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)",
        "    at Module.load (internal/modules/cjs/loader.js:653:32)",
        "    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)",
        "    at Function.Module._load (internal/modules/cjs/loader.js:585:3)",
        "    at Module.require (internal/modules/cjs/loader.js:692:17)",
        "    at require (internal/modules/cjs/helpers.js:25:18)",
        "    at _tryRequire (/var/runtime/UserFunction.js:75:12)",
        "    at _loadUserApp (/var/runtime/UserFunction.js:95:12)",
        "    at Object.module.exports.load (/var/runtime/UserFunction.js:140:17)",
        "    at Object.<anonymous> (/var/runtime/index.js:45:30)",
        "    at Module._compile (internal/modules/cjs/loader.js:778:30)",
        "    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)",
        "    at Module.load (internal/modules/cjs/loader.js:653:32)",
        "    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)"
    ]
}

thanks for calling it out. i will work on this asap

i updated the template in the latest commit to master. let me know if it works for you now


Cannot download playlist single video, link in description

Checklist

[X] I'm reporting a bug unrelated to a specific site
[X] I've verified that I'm running yt-dlp version 2<IP_ADDRESS>. (update instructions)
[X] I've checked that all provided URLs are alive and playable in a browser
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue

Description
Playlist url:
https://www.youtube.com/watch?v=_vd2JyX6C1Y&list=PLKERDLXpXl_jJQiQOHDLimnulasAK3T5b&index=7
i am trying to dowload this video, but its giving this error. other than that i am able to download only one format at 360p, For other formats, its giving this error:-
Version:
i am using yt-dlp 2<IP_ADDRESS> version released on 9 march 2022
Os:
ubuntu 20.04 lts

Output:
[youtube:tab] Downloading just video _vd2JyX6C1Y because of --no-playlist
[youtube] _vd2JyX6C1Y: Downloading webpage
[youtube] _vd2JyX6C1Y: Downloading android player API JSON
[youtube] _vd2JyX6C1Y: Downloading MPD manifest
[youtube] _vd2JyX6C1Y: Downloading MPD manifest
[info] _vd2JyX6C1Y: Downloading 1 format(s): 248+251-dash
[dashsegments] Total fragments: 110
[download] Destination: /home/warlord/Downloads/YOUTUBE_DL/youtube/video/basic-player-health-with-unit-tests-tdd-in-unity-7_video_1080p (fhd).f248.webm
[download] Unknown % of ~0.00B at  224.54B/s ETA -1:59:57
downloading
could not convert string to float: 'Unknown '

Verbose log
[youtube:tab] Downloading just video _vd2JyX6C1Y because of --no-playlist
[youtube] _vd2JyX6C1Y: Downloading webpage
[youtube] _vd2JyX6C1Y: Downloading android player API JSON
[youtube] _vd2JyX6C1Y: Downloading MPD manifest
[youtube] _vd2JyX6C1Y: Downloading MPD manifest
[info] _vd2JyX6C1Y: Downloading 1 format(s): 248+251-dash
[dashsegments] Total fragments: 110
[download] Destination: /home/warlord/Downloads/YOUTUBE_DL/youtube/video/basic-player-health-with-unit-tests-tdd-in-unity-7_video_1080p (fhd).f248.webm
[download] Unknown % of ~0.00B at  224.54B/s ETA -1:59:57
downloading
could not convert string to float: 'Unknown '

You have not provided verbose log. The issue template had clear instructions on how to do so

I see you are using some python project (that is calling yt-dlp?) Provide minimum reproducible code so we can check the issue

process_video is not a function in yt-dlp. So the issue is most likely in your code


[AMBARI-25041] Scale hosts does not install component if service is in maintenance mode.

What changes were proposed in this pull request?
Allow scaling up the cluster even if some service is in maintenance mode, without having to manually install/start the service's components on the new host.
https://issues.apache.org/jira/browse/AMBARI-25041
How was this patch tested?
Tested blueprint install and scale operations.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/4738/
Test PASSed.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/4745/
Test FAILed.
Test FAILured.

retest this please

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/4746/
Test PASSed.


Fix typos in entry-point.md

Ohh cheers! Should this be on develop branch?

Jep, noticed that too late unfortunately. I'm probably going to revert it on master and then cherry pick to develop.

@SpaceK33z Handled already. 👍


Silencing warnings

By looking at the code it seems there is no way of doing this, but I thought I would ask: is there any way of silencing the console statements in the code of this library?

Solved.


Exception thrown when check player's balance(probably caused by using mysql)

when I execute "bal Tollainmear", the exception appeared in console,  Detailed Log on Gist, this issue may caused by using Chinese characters as currency unit, here is my currencies.conf:

coin {
plural=卡布
singular=卡布
symbol="￠"
}
current=coin

Besides this, I found if we using Economylite to connect two bungeed server, they can't refresh in real-time, that means if I set Tollainmear's balance to 0 in server "lobby" server, the "world" server which using the same database, could not get the newest balance of Tollainmear, but it would be great if we could make it changed immediately in both server which using the same database.

Yes, it would appear that the issue is Chinese characters.
The balance updating is a result of caching, which greatly reduces the amount of SQL queries required making the server run better. I'll think about adding an option to disable caching.

Of curse, the issue which caused by Chinese characters whether it should be repaired?
BTW, could we update player's balance in real-time for bungee servers in the future version?

I'll look into your issue with Chinese characters.
I'll also look into adding the ability to configure the cache.


Dev

Codecov Report

Merging #34 (f2fc57d) into master (000a31f) will increase coverage by 0.15%.
The diff coverage is 99.15%.

@@            Coverage Diff             @@
##           master      #34      +/-   ##
==========================================
+ Coverage   90.06%   90.21%   +0.15%
==========================================
  Files           4        4
  Lines         795      797       +2
==========================================
+ Hits          716      719       +3
+ Misses         79       78       -1

Impacted Files
Coverage Δ

sorn/utils.py
81.81% <97.50%> (-0.47%)
:arrow_down:

sorn/__init__.py
100.00% <100.00%> (ø)

sorn/sorn.py
97.76% <100.00%> (+0.34%)
:arrow_up:

test_sorn.py
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


feat(deprecated): delete PSelectableList, PSelectableItem component

To Reviewers

[ ] Skipping review is not a problem (style, chore ONLY)
[x] Not that difficult

Type of Change

[ ] New feature
[ ] Bug fixes
[ ] Feature improvement

[x] These changes require a usage change

[x] Others (performance improvement, refactoring, CI/CD, etc.)

Checklist

[ ] Updated Storybook documents for component
[ ] Wrote test codes for composable, utils and etc.
[ ] Tested with console(if usages are changed)

Description

Delete PSelectableList
Delete PSelectableItem

:tada: This PR is included in version 2.0.0-beta.43 :tada:
The release is available on:

npm package (@beta dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


FEATURE(credentials): Add credentials forms and credentials storage according to provider.

This PR adds forms to enter the credentials for amazon, openshift and cloudfoundry. Another generic form (to simply type key/values separated by ';') is implemented in case the provider is not recognized. The credentials are stored in the brooklyn_location policy according the properties defined in section 7.2.2 of DAM model
It is important that the location property of the node_template related to the provider matches the variable form_by_provider (credential.js:23). I would need @kiuby88 and @jacopogiallo to check this.
@adriannieto : Could you check the PR? Thanks

Current coverage is 36.72%

Merging #237 into master will increase coverage by +0.05% as of 8c95a25

@@            master    #237   diff @@
======================================
  Files          329     329
  Stmts        12045   12045
  Branches      1542    1542
  Methods          0       0
======================================
+ Hit           4417    4424     +7
+ Partial        444     441     -3
+ Missed        7184    7180     -4

Review entire Coverage Diff as of 8c95a25

Powered by Codecov. Updated on successful CI builds.

@rosogon "aws-ec2" and "CloudFoundry" are ok, but "openshift" is not present yet. I will add that value as location property of OpenShift offerings ASAP.

Ok, @PaoloCifariello . Let me know the final value of the openshift provider and I'll update the variable if needed.

@rosogon It looks good for me, but I'd wait to @PaoloCifariello changes to merge it.

@adriannieto I already made the changes regarding "openshift" location, so I think you can merge it.


[ci+systemtest] Various small improvements

When debugging the test failures in #1091 I noticed a couple things which are currently broken or not verbose enough to debug test failures. Please see the invididual commit messages for details.

Rebased on master. @gkelly can you have a look please?

Rebased. @gkelly or @asb can I please get a LGTM on this, it outdates rather quickly.


chore: launch for 4.1.0

About
This pull request updates our main stable branch from unstable which reflects all of the changes we wish to bring for v4.1's launch.
Checklist

[X] I've ran pre-commit to format and lint the change(s) made.
[X] I've checked to make sure the change(s) work on 3.8.6 and higher.
[X] This fixes/solves an Issue.

(If existent): #541

[X] I've made this pull request for/as: (check all that apply)

[X] Documentation
[X] Breaking change
[X] New feature/enhancement
[X] Bugfix

Requesting a review from @interactions-py/core again.


Integrate location

The location function in TemplateHaskell can given me the source file, and location of the Debug block. Some kind of smart lexer and matching algorithm could give the original code, precisely, with exact locations and layout as per the original.

It would probably be easier to just open the source file and copy the original code verbatim.

Yep, that's what I'm suggesting - the remarks about a smart lexer are more about trying to match back assuming variables were not single atomic keywords (which was the original plan, but hasn't really happened, so can be ignored)


Support REST or Java API to submit distributed jobs

Is your feature request related to a problem? Please describe.
I'm always frustrated when I want to submit distributed jobs with my data management service.
Describe the solution you'd like
I can call REST / Java API to submit distributed jobs, and check job state either.
Urgency
Urgent. Without API support, it's hard to auto handle data management.

@yuzhu @maobaolong I have created the feature request here.

@JySongWithZhangCe Do you mean that commands like distributedLoad need to have rest API?
@yuzhu What is your suggestion, may be I can try it.

For your guys' awareness, we gonna have some job service request submission changes in 2.8.0 and this feature request would be easier to accomplish after that.

In general, if we see the trend, many organisations take the open source tools and write their own external systems as per business need which on high level, looks like, provide the integration among open source tools to achieve some level of automation.
Right now, from the integration perspective, alluxio  has only cli interface to integrate it with external system. The cli interface has also its own issue ( #14974)
I see the need here to strengthen the alluxio from integration perspective.
If alluxio has rest interface for all cli commands like functionality, it would be easier to integrate the alluxio with external system. For example, external system makes the post request for distributed load api and in return the api provides the job id. Later, external system calls/polls the job status api by making get request and passing the job id as url param and in return, job status api provides the status of the job id.
if API interface is provided using open api or gRPC, it would be easy to generate the client stub for any language.

@JySongWithZhangCe Do you mean that commands like distributedLoad need to have rest API? @yuzhu What is your suggestion, may be I can try it.

Yeap~

+1 for this feature request, and load free and any other command line tools is necessary too.


type piracy

~We should get rid of this type of piracy by switching to a different name, otherwise, this will invalidate the original mul! method, we should support this by an if-else inside Bloqade and other packages calling the function.~
https://github.com/QuEraComputing/ParallelMergeCSR.jl/blob/eabcc552cdc2d67258471f2ad099c3a2ba956952/src/ParallelMergeCSR.jl#L194
~It's a bit annoying, but things have to be done in this way until we have method overlay support from Julia compiler.~
nvm, I just realize it's not overloaded.

I think then we shouldn't export it, or should use a different name because this will cause the following if using it naively
julia> mul!(y, A, b, 1.0, 0.0)
WARNING: both LinearAlgebra and ParallelMergeCSR export "mul!"; uses of it in module Main must be qualified
ERROR: UndefVarError: mul! not defined
Stacktrace:
 [1] top-level scope
   @ REPL[7]:1

Good point, we don't need to export the function

Good point, we don't need to export the function

#29 goes down this route 🤠


UnityVSA Import fails - invalid target disk adapter type: PVSCSI

Having issues trying to import a Unity VSA appliance on VMware workstation Pro 14.
It does not like the PVSCSI adapter specified in the ovf/ova file and stops processing. As the script fails it does not output the files to the specified location.  See output below:
_PS C:!labbuildr\Home> .\install-unity.ps1 -ovf C:!Sources\EMC\UnityVSA\UnityVSA-<IP_ADDRESS>2077968.ova
==>loading defaults from ./defaults.json
==>Importing from OVA UnityVSA-<IP_ADDRESS>2077968, may take a while
Opening OVA source: C:!Sources\EMC\UnityVSA\UnityVSA-<IP_ADDRESS>2077968.ova
The manifest does not validate
Opening VMX target: C:!LabBuildr\Masters
Error: Invalid target disk adapter type: pvscsi
Deleting directory tree below: C:!LabBuildr\Masters\UnityVSA-<IP_ADDRESS>2077968
Completed with errors
[success]
Use .\install-Unity.ps1 -Masterpath C:!LabBuildr\Masters -Mastername UnityVSA-<IP_ADDRESS>2077968
.\install-Unity.ps1 -Defaults to try defaults
OVA                       VMname                    Success

UnityVSA-<IP_ADDRESS>2077968 UnityVSA-<IP_ADDRESS>2077968    True_
If I use 7zip to extract the OVF files, I can amend the SCSI adapter type,  and can also update the md1 Hashs for the manifest file check to work, but not sure how I will get this to work with your script if I do?

There is..... a install-unity-falcon.ps1 .... trief this one ?
Von meinem iPhone gesendet
Am 16.04.2018 um 11:21 schrieb Munch05 <notifications<EMAIL_ADDRESS>Having issues trying to import a Unity VSA appliance on VMware workstation Pro 14.
It does not like the PVSCSI adapter specified in the ovf/ova file and stops processing. As the script fails it does not output the files to the specified location. See output below:
_PS C:!labbuildr\Home> .\install-unity.ps1 -ovf C:!Sources\EMC\UnityVSA\UnityVSA-<IP_ADDRESS>2077968.ova
==>loading defaults from ./defaults.json
==>Importing from OVA UnityVSA-<IP_ADDRESS>2077968, may take a while
Opening OVA source: C:!Sources\EMC\UnityVSA\UnityVSA-<IP_ADDRESS>2077968.ova
The manifest does not validate
Opening VMX target: C:!LabBuildr\Masters
Error: Invalid target disk adapter type: pvscsi
Deleting directory tree below: C:!LabBuildr\Masters\UnityVSA-<IP_ADDRESS>2077968
Completed with errors
[success]
Use .\install-Unity.ps1 -Masterpath C:!LabBuildr\Masters -Mastername UnityVSA-<IP_ADDRESS>2077968
.\install-Unity.ps1 -Defaults to try defaults
OVA VMname Success

UnityVSA-<IP_ADDRESS>2077968 UnityVSA-<IP_ADDRESS>2077968 True_
If I use 7zip to extract the OVF files, I can amend the SCSI adapter type, and can also update the md1 Hashs for the manifest file check to work, but not sure how I will get this to work with your script if I do?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/bottkars/labbuildr/issues/113, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AH32H8HiXmuMhoJWaXh5StLRzaFGvc4pks5tpHDAgaJpZM4TWQDE.

this is a knoiwn issue with the VMware ovatool. this is fixed in install-unity-falcon.ps1 ...

Hi Karsten
Thanks for your reply, the suggestion of using the unity-falcon script resolved this. I had been perservering with the original unity script as all the documents and various google search results referenced this original script.
What a great suite of lab based products, will look back at them as the first call whenever I need to spin up an environment.
Thanks!
Steve
From: Karsten Bott<EMAIL_ADDRESS>Sent: 18 April 2018 05:37
To: bottkars/labbuildr<EMAIL_ADDRESS>Cc: Steven Lock<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [bottkars/labbuildr] UnityVSA Import fails - invalid target disk adapter type: PVSCSI (#113)
this is a knoiwn issue with the VMware ovatool. this is fixed in install-unity-falcon.ps1 ...
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/bottkars/labbuildr/issues/113#issuecomment-382258163, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AkpQpBoz3t-CtfGz1Bl0vvn1zJkj_Wycks5tpsLTgaJpZM4TWQDE.

Yes, that is still my Bad.... from Falcon release on i had to change the was i Attach disks... and with VMware 14 i Assed the ova Import bugfix... i will Remove the old and rename the Script soon ...
Von meinem iPhone gesendet
Am 18.04.2018 um 10:36 schrieb Munch05 <notifications<EMAIL_ADDRESS>Hi Karsten
Thanks for your reply, the suggestion of using the unity-falcon script resolved this. I had been perservering with the original unity script as all the documents and various google search results referenced this original script.
What a great suite of lab based products, will look back at them as the first call whenever I need to spin up an environment.
Thanks!
Steve
From: Karsten Bott <notifications<EMAIL_ADDRESS>Sent: 18 April 2018 05:37
To: bottkars/labbuildr <labbuildr<EMAIL_ADDRESS>Cc: Steven Lock <steve<EMAIL_ADDRESS>Author <author<EMAIL_ADDRESS>Subject: Re: [bottkars/labbuildr] UnityVSA Import fails - invalid target disk adapter type: PVSCSI (#113)
this is a knoiwn issue with the VMware ovatool. this is fixed in install-unity-falcon.ps1 ...
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/bottkars/labbuildr/issues/113#issuecomment-382258163, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AkpQpBoz3t-CtfGz1Bl0vvn1zJkj_Wycks5tpsLTgaJpZM4TWQDE.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHubhttps://github.com/bottkars/labbuildr/issues/113#issuecomment-382309519, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AH32H6crCVTuTePAfeaLQhnOkNtyuOJSks5tpvrvgaJpZM4TWQDE.


Add options to top table - part 1

Improves the options formatting for each rule and also lists all the options in the overview table.
Part 1 of 3.
Internal preview.
Contributes to #24437.
Hide white space changes in diff.

Thanks for reviewing these @BillWagner.


metrics volume size can not be set when installing it from the UI

https://github.com/lensapp/lens/blob/master/src/features/metrics/03-statefulset.yml.hb#L115

There is a file at ./kontena-lens/resources/features/metrics.ts that contains the config. But chaining parameters there (and restarting lens) seems to have no effect, the size was still 20GiB.
I had to manually adjust ./kontena-lens/resources/features/metrics/03-statefulset.yml.hb.

related files:

github.com/lensapp/lens/tree/ee4d434d359fa771f8ca5f604f9263b31eb697d6/extensions/metrics-cluster-feature/resources/03-statefulset.yml.hb
github.com/lensapp/lens/tree/ee4d434d359fa771f8ca5f604f9263b31eb697d6/extensions/metrics-cluster-feature/src/metrics-feature


Link for "When to use ViewBag, ViewData, or TempData" at the end of page isn't working

The link points to _http://www.rachelappel.com/when-to-use-viewbag-viewdata-or-tempdata-in-asp-net-mvc-3-applications/_ which is no more running. Please restart the webapp or provide an alternative resource.
Thanks!

This is part of the ASP CORE 2.1 MVC Tutorial at https://docs.microsoft.com/en-us/aspnet/core/tutorials/first-mvc-app/adding-view?view=aspnetcore-2.1

I just tested this and it seems to be working. Please re-open if you see any flakiness with the link in the future.

Thanks. Acknowledged, link is working. Probably the host server was down when I last checked.


fix: remove fmt.Printlns in tests

Description

References

Review Checklist

[ ] I have clicked on "allow edits by maintainers".
[ ] I have added documentation for new/changed functionality in this PR or in a PR to openfga.dev [Provide a link to any relevant PRs in the references section above]
[ ] The correct base branch is being used, if not main
[ ] I have added tests to validate that the change in functionality is working as expected

Whoops. I didn't realize one of them was a Testable Example which needs to the fmt. I'll close this for now.


change restart policy for hubble service to always or unless-stopped

What is the bug?
Currently the restart policy for the hubble container is on-failure:5, which means that the container is not restarted on either host system or docker restarts. This leads to 3.5 days of down time on average for each restart event, as the upgrade script (which does restart the container) is run by crontab once a week.
How can it be reproduced? (optional)

reboot the host system
notice that the hubble container is stopped
the statsd and grafana containers are running

Additional context (optional)
See: https://docs.docker.com/compose/production/

Specifying a restart policy like restart: always to avoid downtime

Great suggestion. Implemented in #1793.


Add Account to BlankRawContactEntity

Problem
The BlankRawContact does not have a reference to its Account even though it is available when querying the RawContacts table.
This makes it difficult to filter a list of BlankRawContacts based on an Account.

I originally decided not to include a reference to the Account for each BlankRawContact in order to optimize memory by not creating duplicate Account instances (many RawContacts will have the same Account).

Solution
Add Account? as a property of BlankRawContact.

This is included in 0.2.4!


Unaligned Field Access Error when Installing anchor-cli v0.28.0

Description:
I am encountering an error while attempting to install anchor-cli version 0.28.0 using the cargo install command. The error seems to be related to unaligned field access in the ntapi crate. Below are the details of the issue:
Error Messages:
I am receiving the following error messages during the installation process:
error[E0793]: reference to packed field is unaligned
--> C:\Users\ASUS.cargo\registry\src\index.crates.io-6f17d22bba15001f\ntapi-0.3.7\src\ntexapi.rs:2783:52
|
2783 |         *tick_count.QuadPart_mut() = read_volatile(&(*USER_SHARED_DATA).u.TickCountQuad);
|                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use read_unaligned/write_unaligned (loads and stores via *p must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> C:\Users\ASUS.cargo\registry\src\index.crates.io-6f17d22bba15001f\ntapi-0.3.7\src\ntexapi.rs:2807:25
|
2807 |         ((read_volatile(&(*USER_SHARED_DATA).u.TickCountQuad)
|                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use read_unaligned/write_unaligned (loads and stores via *p must be properly aligned even when using raw pointers)
Compiling miow v0.3.7
For more information about this error, try rustc --explain E0793.
error: could not compile ntapi (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile anchor-cli v0.28.0 (https://github.com/coral-xyz/anchor?tag=v0.28.0#e1afcbf7), intermediate artifacts can be found at C:\Users\ASUS\AppData\Local\Temp\cargo-installm5ALNA.
To reuse those artifacts with a future compilation, set the environment variable CARGO_TARGET_DIR to that path.
Relevant Information:
Operating System: Windows 11
Rust Version: rustc 1.73.0-nightly (076887268 2023-08-17)
Cargo Version: cargo 1.73.0-nightly (7c3904d6c 2023-08-14)
Steps Taken: I attempted to install anchor-cli using the following command:
cargo install --git https://github.com/coral-xyz/anchor --tag v0.28.0 anchor-cli --locked
Dependencies: I suspect that the issue might be related to the alignment problems in the ntapi crate.
Steps to Reproduce:
Unfortunately, I'm unable to provide exact steps to reproduce the issue, as it appears to be specific to the ntapi crate interactions within the anchor-cli installation process.
Expected Outcome:
I expect to be able to successfully install anchor-cli version 0.28.0 without encountering unaligned field access errors.
Additional Context:
I am attempting to install this version of anchor-cli in order to [mention your reason for using this specific version].
Note:
I have also considered using an older version of anchor-cli to avoid this issue, but I would like to report the problem to assist with identifying and resolving the underlying cause.
I appreciate any assistance in troubleshooting this issue and finding a solution. Thank you for your time and support.

This is a Windows specific issue coming from solana-client's dependence to tokio 1.14. master branch of Solana has been updated to use newer versions of tokio but it hasn't been released in 1.16. It is also recommended to use WSL if you are developing on Windows.
Closing because this is a duplicate of https://github.com/coral-xyz/anchor/issues/2567 and the original issue will be closed once a released version of solana-client uses a newer version of tokio that doesn't have this problem.


Error with ScopusAbstract

Dear All,
ScopusAbstract requests just stopped working for me overnight (it's not a quota issue).
E.g. for the query from the readme I get this error.
from scopus.scopus_api import ScopusAbstract
ab = ScopusAbstract("2-s2.0-84930616647", refresh=True)
print(ab)

AttributeError                            Traceback (most recent call last)
 in ()
1 from scopus.scopus_api import ScopusAbstract
2
----> 3 ab = ScopusAbstract("2-s2.0-84930616647", refresh=True)
4 print(ab)
C:\ProgramData\Anaconda3\lib\site-packages\scopus\scopus_api.py in init(self, EID, view, refresh)
221         self.creator = get_encoded_text(coredata, 'dc:creator')
222         self.description = get_encoded_text(coredata, 'dc:description')
--> 223         sl = coredata.find('dtd:link[@rel="scopus"]', ns).get('href')
224         self_link = coredata.find('dtd:link[@rel="self"]', ns).get('href')
225         cite_link = coredata.find('dtd:link[@rel="cited-by"]', ns)
AttributeError: 'NoneType' object has no attribute 'find'

It happens to all other ScopusAbstract queries as well. I would really appreciate your advice.
Best, Tatiana

[duplicate to #42]
Hi there! They seem to have changed the structure of Abstract views yesterday.  A patch is live in scopus-0.3.1. Please upgrade your scopus installation, this should fix the error.  You eventually need to refresh a lot of abstract views as well.
Best,
Michael

Dear Michael,
sorry for not noticing a duplicate. Thank you!


Bot stop listening events after some time

I am running a bot that needs to listen user messages, and it works fine in the first days, but for some reason after a few days the bot stop to listening new messages and I need to restart everything.
Anyone is having this problem? How to avoid that? I am thinking about restart every 24h but this is kind of a workaround on the problem...

Does it throw any errors?

I've also noticed this happen. I don't get any errors, myself.

@mishk0 No errors. It just stop listening to channels events.

Try running your node.js app with PM2, I had experience this issue but since using PM2, never happen it again... Not sure why.

I am experiencing this issue and I am using PM2. I don't seem to find any errors. The bot continues to post messages but does not respond to any messages posted by users. For me I've noticed it after my app has been running for around 40-48 hours though it may happen sooner than this. Is there a good way to get around this issue?

I had same issue and fixed it by

install forever in server : npm install forever
start app : forever start index.js
list app run by forever : forever list
kill process : kill -9 XXX (xxx is forever id)
hope it helps.

I solved this issue by switching my server provider. It was hosted on modulus before and now its on heroku and never goes down again.

I'm still having this issue on digital ocean. I don't know that it's unique to hosting providers.

I'm having this issue on heroku

node_modules/ws/lib/WebSocket.js:219 else throw new Error('not opened');

still having this kind of issue


Crazyflie 2.1 Motors don’t start

Hi Whoeing,
I run the demo_localization.launch file and I get connected to the CF and I see values being published to the /crazyflie/cmd_vel topic, however, the motors don’t work. I have two Linux PCs on one of them the CF works and on the other it doesn’t. I also tried two different CFs and I still get the same problem. I checked the imu topic to make sure I’m connected to the CF and I could get reading from the imu successfully but still can’t start the motors.
Thanks,

Do you manually send data to the cmd_vel topic? I remember that the firmware used to have a thrust lock, where the motors would only spin if you initially send (0,0,0,0) a couple of times to the cmd_vel topic. Otherwise there are various error states in which the CF won't spin the motors, but I guess you covered that possibility by testing multiple CFs.

Hi Whoeing,
I run the demo_localization.launch file and I get connected to the CF and I see values being published to the /crazyflie/cmd_vel topic, however, the motors don’t work. I have two Linux PCs on one of them the CF works and on the other it doesn’t. I also tried two different CFs and I still get the same problem. I checked the imu topic to make sure I’m connected to the CF and I could get reading from the imu successfully but still can’t start the motors.
Thanks,

Hi, I met the same issue, and I check the callback(), the thrust is always 0, should be mapped. but how to handle?

Are you trying to fly with a joystick? What does your launch file look like (demo_localization.launch does not seem to be part of this package.)


Modify FXAA to not change grey fragments

I think 0.12 is a reasonable constant. It should account for approximately 5% of the colour space, so it shouldn't over-match.
Can you create an issue (in TerriaJS) to match this PR documenting exactly what this solves?

Can you create an issue (in TerriaJS) to match this PR documenting exactly what this solves?

Sure can!
https://github.com/TerriaJS/terriajs/issues/4652


Rendered more hooks than during the previous render.

When I use strapi-plugin-paper-trail plugin and i access any single-type model in the content-manger, I get this follow error:
Minified React error #310 -> Rendered more hooks than during the previous render. This error prevents the page from rendering, leaving it completely blank.
This error only happens with strapi  version > 4.20.0.
This error doesn't happen with collections, only using single-types.
I'm stuck on version 4.15.5 because of this issue of this plugin.

Thanks for the bug report. I’ll check this out.

@diego-sbtlab Unfortunately I can't replicate this on strapi v4.20.1, however while checking this out I did notice the support for single types just wasn't working.
I've fixed the single type support in Paper Trail v0.6.0 that has just gone out now and verified it's working. Can you update to this version and try again on the latest strapi version?
If the error persists on the latest versions of both strapi and Paper Trail, please let me know what other plugins you are using as these may be causing a conflict with Paper Trail. I can then test my local with your plugin setup.
https://github.com/PenguinOfWar/strapi-plugin-paper-trail/releases/tag/v0.6.0
https://www.npmjs.com/package/strapi-plugin-paper-trail/v/0.6.0

Closing as assuming resolved based on testing. Let me know if you are still struggling and I will reopen!


Access for sending email in linode

By default Linode has blocked ports 465, 587 and 25. So email cannot be send. To resolve this issue, linode account holder must open a ticket.
Details of this issue:
Due to blocked ports, when trying to send an email using jenkins and monitoring the traffic using netstat -n -p, the respective port's state is SYN_SENT. SYN_SENT means that the server is not reachable
Reference Link: https://www.linode.com/community/questions/19082/i-just-created-my-first-linode-and-i-cant-send-emails-why

Stalled for now. Will decide later.

This has other alternatives currently working right now. So I am closing this one.


Appstudio update test-component-pac-pkrm

Pipelines as Code configuration proposal

Pipelines as Code CI/test-component-pac-pkrm-on-pull-request has failed.

StatusDurationName

✅ Succeeded
8 seconds
init

✅ Succeeded
25 seconds
clone-repository

✅ Succeeded
1 minute
build-container

✅ Succeeded
1 minute
clamav-scan

✅ Succeeded
28 seconds
inspect-image

✅ Succeeded
3 minutes
clair-scan

✅ Succeeded
28 seconds
deprecated-base-image-check

✅ Succeeded
24 seconds
sbom-json-check

✅ Succeeded
11 seconds
optional-label-check

✅ Succeeded
9 seconds
label-check

🏃 Running
---
show-sbom

🏃 Running
---
show-summary

Pipelines as Code CI/test-component-pac-pkrm-on-pull-request has failed.

StatusDurationName

✅ Succeeded
8 seconds
init

✅ Succeeded
25 seconds
clone-repository

✅ Succeeded
1 minute
build-container

✅ Succeeded
28 seconds
deprecated-base-image-check

✅ Succeeded
28 seconds
inspect-image

✅ Succeeded
3 minutes
clair-scan

✅ Succeeded
1 minute
clamav-scan

✅ Succeeded
24 seconds
sbom-json-check

✅ Succeeded
11 seconds
optional-label-check

✅ Succeeded
9 seconds
label-check

🏃 Running
---
show-sbom

🏃 Running
---
show-summary


Injecting multiple implementation in a constructor with base class in the signature

Hi, Thank you for the library.
I am currently using the generator to manage dependencies and I would like to know how to inject implementations for base class in the following example.
class SampleClass {
  final Repository repositoryA;
  final Repository repositoryB;

  FetchNewsUseCase({this.repositoryA, this.repositoryB});
}

  @Register.singleton(Repository, from: RepositoryA, name: 'repositoryA')
  @Register.singleton(Repository, from: RepositoryB, name: 'repositoryB')
  // Here I am not sure how to create a new singleton that accepts 'repositoryA' and 'repositoryB'.
  // I know there is the ability to use another constructor but I havent seen an example of how to
  // pass arguments to that
  void configureData();

Thanks,

  @Register.singleton(BaseRepo, from: BaseRepoA, name: 'BaseRepoA')
  @Register.singleton(BaseRepo, from: BaseRepoB, name: 'BaseRepoB')
  @Register.singleton(SomeRepo, resolvers: { BaseRepo: 'BaseRepoA' })
  void register();

That is currently not possible with the kiwi_generator.
It is possible to do it with the kiwi itself. like this:
    KiwiContainer().registerSingleton<BaseRepo>((c) => BaseRepoA(), name: 'BaseRepoA');
    KiwiContainer().registerSingleton<BaseRepo>((c) => BaseRepoB(), name: 'BaseRepoB');
    KiwiContainer().registerSingleton((c) => SomeRepo(c<BaseRepo>('BaseRepoA'), c<BaseRepo>('BaseRepoA')));

With the kiwi_generator it is only possible to 1 resolver name for 1 type.
Do you have an idea how we can create a clean api that covers this?

Perhaps @Named('...') on the parameter?

Hey @garfieldcoked, I am going to close this issue for now to remove it from our review queue. If you would like to push new comments here, feel free to reopen when it is ready for a look. Thanks very much for contributing!


[close #57]Fix CI cdc-ut

Signed-off-by: pingyu<EMAIL_ADDRESS>
What problem does this PR solve?
Issue Number: close #57
Problem Description: CDC & BR CI failed
What is changed and how does it work?
Fix wrong path of certificants.
Code changes

Check List for Tests
This PR has been tested by at least one of the following methods:

Unit test

Side effects

No side effects

Related changes

No related changes

@zeminzhou PTAL~

LGTM


Migrate "Lifecycle: Management plane - Public Preview SDK Release Readiness" to Eng Hub

https://dev.azure.com/azure-sdk/internal/_wiki/wikis/internal.wiki/691/Lifecycle-Management-plane-Public-Preview-SDK-Release-Readiness

Completed.


refactoring get_user_profile_by_email to get_user in zerver/views

Refactor get_user: update function in views/messages.py and views/presence.py to require email and realm.

Automated message from Dropbox CLA bot
@LechX, thanks for the pull request! It looks like you haven't yet signed the Dropbox CLA. Please sign it here.

@LechX thanks for working on this!  I merged some of the changes, but we can't merge the messages.py changes because of the notification_bot issue we talked about.  Would love to fix that issue this week though :).

Automated message from Dropbox CLA bot
@LechX, thanks for signing the CLA!

Looks like I used the wrong git flow, please hold off on using this for now.


The synonym filter is being influenced by other filters

Hi team,
Thank you for a great plugin. I am really surprised and satisfied with the quality of Sudachi.
I've encountered some weird results and  I'm unsure whether it's a bug or intended behavior.
Issue
It seems that the configuration of the synonym filter is being influenced by sudachi_part_of_speech. In a previous issue, it was suggested that the synonym filter should be applied last. However, applying it last appears to affect other filters. Is this behavior intentional?
Environment

elasticsearch-8.8.1-analysis-sudachi-3.1.0

Configuration (elasticsearch/index.json):
PUT /sudachi-test
{
  "settings": {
    "analysis": {
      "analyzer": {
        "sudachi_search_analyzer_c": {
          "type": "custom",
          "tokenizer": "sudachi_tokenizer_c",
          "discard_punctuation": true,
          "filter": [
            "sudachi_pos_filter",
            "synonym_filter"
          ]
        }
      },
      "tokenizer": {
        "sudachi_tokenizer_c": {
          "type": "sudachi_tokenizer",
          "split_mode": "C",
          "discard_punctuation": true
        }
      },
      "filter": {
        "synonym_filter": {
          "type": "synonym",
          "synonyms": [
            "山ほど => 山程, たくさん, 一杯"
          ]
        },
        "sudachi_pos_filter": {
          "type": "sudachi_part_of_speech",
          "stoptags": [
            "代名詞",
            "形状詞-タリ",
            "形状詞-助動詞語幹",
            "連体詞",
            "接続詞",
            "感動詞",
            "助動詞",
            "助詞",
            "補助記号",
            "空白"
          ]
        }
      }
    }
  }
}

Query and result
GET /sudachi-test/_analyze
{
  "text": "山に行った",
  "analyzer": "sudachi_search_analyzer_c"
}

{
  "tokens": [
    {
      "token": "山程",
      "start_offset": 0,
      "end_offset": 1,
      "type": "SYNONYM",
      "position": 0
    },
    {
      "token": "たくさん",
      "start_offset": 0,
      "end_offset": 1,
      "type": "SYNONYM",
      "position": 0
    },
    {
      "token": "一",
      "start_offset": 0,
      "end_offset": 1,
      "type": "SYNONYM",
      "position": 0
    },
    {
      "token": "行っ",
      "start_offset": 2,
      "end_offset": 4,
      "type": "word",
      "position": 2
    },
    {
      "token": "杯",
      "start_offset": 2,
      "end_offset": 4,
      "type": "SYNONYM",
      "position": 2
    }
  ]
}

GET /sudachi-test/_analyze
{
  "text": "山ほど遊んだ",
  "analyzer": "sudachi_search_analyzer_c"
}

{
  "tokens": [
    {
      "token": "山ほど",
      "start_offset": 0,
      "end_offset": 3,
      "type": "word",
      "position": 0
    },
    {
      "token": "遊ん",
      "start_offset": 3,
      "end_offset": 5,
      "type": "word",
      "position": 1
    }
  ]
}

A phrase 山に行った and 山ほど遊んだ resulted in unexpected results and a synonym word 山ほど  seems to be transformed into 山.
(FYI A sudachi synonym dict contains 山ほど,一杯 )
Based on the query result, it appears that the order of the filters is affecting the outcome. While it was suggested to apply the synonym filter last, doing so seems to impact other filters. Is this behavior intentional, or is there a need for correction?
Here is my repository that I experimented. You can reproduce this issue.

If you swap the order of synonym_filter and sudachi_pos_filter, some queries 山 resulted in null_pointer_exception.
PUT /sudachi-test
{
  "settings": {
    "analysis": {
      "analyzer": {
        "sudachi_search_analyzer_c": {
          "type": "custom",
          "tokenizer": "sudachi_tokenizer_c",
          "discard_punctuation": true,
          "filter": [
            "synonym_filter",
            "sudachi_pos_filter"
            ]
        }
      },
      "tokenizer": {
        "sudachi_tokenizer_c": {
          "type": "sudachi_tokenizer",
          "split_mode": "C",
          "discard_punctuation": true
        }
      },
      "filter": {
        "synonym_filter" : {
            "type" : "synonym",
            "synonyms": [
              "山ほど => 山程, たくさん, 一杯"
            ]
        },
        "sudachi_pos_filter": {
            "type": "sudachi_part_of_speech",
            "stoptags": [
              "代名詞",
              "形状詞-タリ",
              "形状詞-助動詞語幹",
              "連体詞",
              "接続詞",
              "感動詞",
              "助動詞",
              "助詞",
              "補助記号",
              "空白"
            ]
          }
      }
    }
  }
}

GET /sudachi-test/_analyze
{
  "text": "山",
  "analyzer": "sudachi_search_analyzer_c"
}

{
  "error": {
    "root_cause": [
      {
        "type": "null_pointer_exception",
        "reason": """Cannot invoke "com.worksap.nlp.sudachi.Morpheme.partOfSpeechId()" because "morpheme" is null"""
      }
    ],
    "type": "null_pointer_exception",
    "reason": """Cannot invoke "com.worksap.nlp.sudachi.Morpheme.partOfSpeechId()" because "morpheme" is null"""
  },
  "status": 500
}

This issue might be related with https://github.com/elastic/elasticsearch/issues/28838

I found an older documentation describing that we should not place a synonym filter after a stemmer filter.

Elasticsearch will use the token filters preceding the synonym filter in a tokenizer chain to parse the entries in a synonym file. So, for example, if a synonym filter is placed after a stemmer, then the stemmer will also be applied to the synonym entries. Because entries in the synonym map cannot have stacked positions, some token filters may cause issues here. Token filters that produce multiple versions of a token may choose which version of the token to emit when parsing synonyms, e.g. asciifolding will only produce the folded version of the token. Others, e.g. multiplexer, word_delimiter_graph or ngram will throw an error.

Thanks for the issue, looks very much like the description of the behavior in your third comment.
I will look into the behavior in more detail and give advice after that.

@eiennohito
Thank you for your quick action.
I'm very interested in developing and contributing Sudachi/elasticsearch-sudachi. I'm looking into the behavior and the inside of code too. Where should I ask questions about Sudachi's code? Slack?

I would like to add something that I observe on my end: I am developing a Lucene plugin based on Sudachi, but for Solr. I also tried to experiment with synonym filter (i.e.: SynonymGraphFilter in Lucene). As suggested, by @eiennohito I added the synonym filter last in the filter chain of the analyzer. I played around with the following synonyms 赤ちゃん,新生児,児
Unfortunately, when I use Solr's field analysis UI, for types SYNONYM, the Morpheme instance is null at runtime. In order to stop having  NPEs, in my attribute classes that extends AttributeImpl, I implemented null checks when so that when reflectWith(AttributeReflector attributeReflector) is invoked, I do not get NPE due to a null Morpheme. Instead, in reflectWith for the missing morpheme metadata, I return n/a (see the attached screenshots).
After the reading the current and the https://github.com/elastic/elasticsearch/issues/28838 issues, plus my own experience, I feel this is not Elasticsearch specific. I think  (of course, I may be wrong) this has to do with Lucene + Sudachi library, in general.
Screen#1

Screen#2

To add some information and refined my previous message.
So, after adding some error checking in the code of my own Solr Lucene Sudachi plugin filter and child classes of AttributeImpl code, I was able to achieve the following:

Filter behavior parity with the Lucene's built-in Kuromoji module
No more exception Cannot invoke "com.worksap.nlp.sudachi.Morpheme.partOfSpeechId()" because "morpheme" is null. In the current Elasticsearch Sudachi plugin, the SudachiPartOfSpeechStopFilter.kt needs a null check to avoid the partOfSpeechId related error.
I can configure SynonymGraphFilterFactory anywhere in my filter chain in Solr's schema.xml

A few screenshots to better demonstrate bullet point#1  - Filter behavior parity with the Lucene's built-in Kuromoji module:
Screenshot # 1
In the following screenshot you see the Solr field analysis screen when the default Kuromoji analyzer is in play, the synonyms are 赤ちゃん,新生児,児. I have added SynonymGraphFilterFactory 2nd in the filter chain, right after the tokenizer. Do note that field analysis when Kuromoji is in play does not display any metadata for the terms of type SYNONYM:

Screenshot # 2
In the following screenshot you see the Solr field analysis screen when the Sudachi analyzer is in play, the synonyms are still the same 赤ちゃん,新生児,児. Here as well, I have added SynonymGraphFilterFactory 2nd in the filter chain, right after the tokenizer. Do note, that I provided a Sudachi tokenizer in the Solr schema.xml to SynonymGraphFilterFactory, therefore you see that Sudachi tokenized the 新生児 to two tokens 新生, 児.

P.S. Also, to note, although in the above I am mentioning Solr, while the current repo is an Elasticsearch Sudachi plugin, this should not matter much because under the hood, both Solr and Elasticsearch leverage the same plugin/filter architecture provided by Lucene.

cc: @eiennohito ^ Please let me know your thoughts 🙇🏼♂

@azagniotov
Thank you for your information. As you commented some problems ware on the es-sudachi side and we came to similar correction to yours (#122).
@togatoga
As you mentioned, SynonymGraphFilter uses filters before it to parse the synonym entries. This is elasticsearch level behavior and we need to be aware of.
Null pointer exception occurred with synonym filter -> sudachi pos filter was a bug (fixed by #122). We can use sudachi filters after synonym filter. Note that synonyms added do not have morpheme information and are not affected by sudachi filters.


V4.0 Bug Bash

[x] Admin buttons in player list dont work
[x] Report button is labled as admin commands
[x] Reports aren't made
[x] Sync not updating
[x] Jail still clears inventory

/go-to in player gui doesnt work
/bring in player gui doesnt work

I did it wrong - Warnings not working correctly

Mods dont have report button but Dev does

[] the discord sycn on /promote admin works but is doubled each time

[FSM] Assigning Roles: "train" to: ookl
[FSM] Event Failed<EMAIL_ADDRESS>(.../currently-playing/modules/ExpGamingCore/Role/config.lua:2: attempt to index field 'character' (a nil value))```

[ ] Damage value are not floored

[ ] Jail does not work, nil value for Admin.jail

[] /tag-clear aldldl Wont work because he is a higher rank than myself
[] /tag-clear self Wont work because I am a higher rank than myself

[ ] /temp-ban {greifernamehere} said the guy is temp-banned but he could still grief (No error)

* [ ]  I did it wrong - Warnings not working correctly

@aldldl could you please give more information on this; which part does not work.

/warn didn't do anything. Also I think it didn't auto ban but I can't remember if that was also the case.

All known bugs fixed.

* [ ]   Spawn issue with tones of warps/labels is back in V4

I believe this line and the valid field may have been the original issue. But I can verify that the whole list of warps gets recreated every time a new warp gets created, so hopefully this helps:
https://github.com/explosivegaming/scenario/blob/c31bca9dba65c3738e9556d0a6c3708188b2016d/modules/WarpPoints/control.lua#L165

Can't kill a jailed player
Why do you need to kill a jailed player, as i would not consider this a bug.

Maximum Homes count mismatch
Corollary to above: Negative Homes count
Above two should be fixed when i fixed the duel return however this is not tested.

Some really weird stuff with Dark's rank and a jail issue that was happening (see logs)

Will need some more info on this one @aldldl

Unable to reproduce: Some really weird stuff with Dark's rank and a jail issue that was happening (see logs)
Closeing issue as all other bugs have been fixed see v4.0.1

It removed good jail rank, but he still couldn't move./clear-all and /unjail. I have not reproduced it again when banning or jailing sense.


Still maintenance?

Hello,
I know this is a very late comment, but I´m wondering if this package still gets maintained.
It´s a very good package, with some issues on the other hand, but that can be fixed.
If not, would anyone recommend other solutions which works like AutoQueryable.

This is something I would like to know myself :)


Rewayat Club

Source name
Rewayat Club
Source link
https://rewayat.club/
Language
Arabic
Other details
No response

Why is the source not uploaded?

There is a source in the Arabic language that is not present in the program, and it is very well known. I hope you add it, as it is the only thing missing in the program for me. The name of the site is.
rewayat.club.


Added note to REST API section explaining endpoint

Observation
The first thing I wanted to do after installing the node was to query the REST API. But I couldn't find in the docs where the default endpoint is defined. I didn't think to look under "Node Reference -> Node config settings" because I was looking for default behavior.
Suggestion
I added a note to the algod v2 page explaining what the default host+port is, and where to change this setting.

Hello, thanks for this PR :)
To visually set this note apart from the rest of the text please add something like
!!! info ...

And maybe tweak the words to start with "If you're running your own node..."

@barnjamin I added your suggested changes


Does this support Language Server Protocol yet?

Title says it all.
I'm looking for an emacs package that can support debugging and semantic syntax highlighting.
Basically VSCode Wolfram extension or Official VSCode Wolfram extension for emacs.

i will look at those down the road.
LSP isn't my priority, but 2 things i really want is, one, have some autoformatter. maybe LSP will solve this.
the other, more important, is to connect to WSTP for eval.


feat: add terragrunt_hclfmt formatter

FYI terragrunt hclfmt is currently not capable of formatting stdin input.
See https://github.com/gruntwork-io/terragrunt/issues/1037

Thanks for the PR!


Can't get it work

Hi,
I need help configuring your plugins in a rails 6 project.
I have everything configured but nothing show up. I'm a little bit confuse about that. The only thing i'm not sure with is how it should be in the html. I havn't found  exemple.
Thanks
Denis

The samples are here...
https://github.com/w8tcha/CKEditor-WordCount-Plugin/tree/master/wordcount/samples
I don't know how can I help you otherwise.

update, now I saw the script tag in my page, but the word count is not showing. When the plugin.js should be load? after page load or before?

Yes it is

Did the browser error console show any errors?

No I have no error in the console

In the wordcount plugin.js,  where could I put some console.log() to trace that this file is doing is job ?

First you should check in the generated Dom if the plugin.js is actually loaded

Hi, I don't see any traces of the plugin in the html page.

Well then the config file is overridden somewhere else or plugins needs to be loaded differently in rails.
I would need some sample files or instructions on how to setup a test site to reproduce the issue. Otherwise I can't help

Hi,
I thinks that config file is not overridden as my ckeditor load with the good custom toolbar. For the plugin have you any clue about how to test if they are properly loaded?
Thanks

Well it's possible that in your application special setup is required. I don't know how to setup a custom plugin In your application.
I also didn't find a any documentation.
I would need the same test setup to provide help.
Also which editor version are you using?
Optionally you could also use the online builder to download the ckeditor with the word count plugin embedded.

I continue my investiguation and in fact the config.js file in the source tab of the inspector is not the one expected... So I have made some modification and now it works. I only have an issue with the css file of wordcount that is not found.
Thanks for your help


Fix "method_complexity" issue in cache.go

Method Cache.Cache.Cache.AddMany has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
https://codeclimate.com/github/turboezh/heapcache/cache.go#issue_5a33ba8dff42860001000012

Closed by #8


Link to every module in API index page (cherry-pick of #1649)

Before, qiskit_ibm_runtime.transpiler.passes.scheduling was autogenerated by autosummary rather than being manually created like we normally do in apidocs/. This had two issues:

The module does not show up in the API index page https://docs.quantum.ibm.com/api/qiskit-ibm-runtime, even though it shows up as top-level in the doc app's left table of contents
The header hierarchy is messed up due to an autosummary quirk that I could not figure out https://github.com/Qiskit/documentation/issues/1272

Using a dedicated page fixes both of these problems.
I named the file qiskit_ibm_runtime.transpiler.passes.scheduling.rst to preserve the previous URL we had for the module. (Technically, Sphinx now puts the HTML file in the apidocs/ folder rather than stubs/, but the docs app doesn't care.)
This PR also removes the override of the module.rst template. We shouldn't end up using it anymore. Regardless, our version is out-of-date compared with the default and we didn't have any substantial changes.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
6248

Relevant Lines:
7472

💛  - Coveralls


IGpsManager.GetLastReading() failed on the second call

ONLY active OSS contributors OR people who buy me a coffee can ask questions here.  If you don't do either of these things - DO NOT FILE HERE OR I WILL SIMPLY REMOVE YOUR ACCOUNT :)
Give as much details as humanly possible if you want any sort of answer!
Enter Question Below (don't delete this line)
Hi Allan,
Can I have you advise on one of the problem I got on Android when the app was calling IGpsManager.GetLastReading()?
The environment basics:

Shiny <IP_ADDRESS>5
Android Device: Samsung A20 (Android 10.0)
Xamarin.Android: <IP_ADDRESS>
Permissions in AndroidManifest: Background Location/CoarseLocation/FineLocation/MockLocation etc.

If "Allow all the time" is granted to the app, then it works perfectly.
But if "Allow only while using the app" is granted to the app, the first call to IGpsManager.GetLastReading() will get the user current location correctly, but it throws an exception for the second and further calls to IGpsManager.GetLastReading().
I have checked the source code of Shiny library, I can see that the GpsRequest has UseBackground with value of true by default, and then it will call ActivityCompat.RequestPermissions with background location and fine location permissions in AndroidContext.RequestAccess() method.
I am confused with two questions:

Why the first call will get location reading correctly even the app is authorised with "Allow only while using the app"?
Why the second and later calls all failed with exception (was thrown by "access.Assert()" as background location access is not granted)?

BTW, I checked the latest code for this part. Seems like same as the <IP_ADDRESS>5.
Appreciate your time to answer my support questions.
Regards,
Kevin Hu

This was a bug that was actually corrected in the preview only a couple of days ago.  Can you share your stack trace and version just to confirm?

@aritchie , Thanks for your response. I will do it next week after the Easter Holiday.

@aritchie , The version I am using is <IP_ADDRESS>5. Please have the stack trace as below:

@aritchie BTW, I saw the changes in the 'preview' branch. Do you have a plan for the next release?

I can't see the stacktrace properly from a screenshot.  You need to copy it out from the console.
Also, is this the latest preview?

I got the copy of the stacktrace as below. Thanks
System.ArgumentException: Invalid State Denied
at Shiny.GeneralExtensions.Assert (Shiny.AccessState state, System.String message, System.Boolean allowRestricted) [0x0000d] in /Users/kevinhu/Source/shiny/src/Shiny.Core/Extensions_General.cs:16
at Shiny.Locations.GpsManagerImpl.b__12_0 () [0x0007b] in /Users/kevinhu/Source/shiny/src/Shiny.Locations/Platforms/Android/GpsManagerImpl.cs:40

This was fixed in 2.0

Thanks @aritchie


Feature to optionally ignore changes made outside of Terraform in output

Hi,
I haven't found related issues and decided to create a new one.
It seems to me that it would be great to add option to Terragrunt to ignore Terraform "feature", introduced in 0.15.4, which often creates loads of useless diffs with header
Note: Objects have changed outside of Terraform

Terraform detected the following changes made outside of Terraform since the
last "terraform apply":

Today they stated that they don't have plans to fix it soon and it lasts almost a year already.
https://github.com/hashicorp/terraform/issues/28803#issuecomment-951209299
Current problem
Terraform > 0.15.3 shows messages Terraform detected the following changes made outside of Terraform since the last "terraform apply" with diff between state file and state from refresh. Sometime it's useful, but in many cases just generates a lot of useless messages, resulting unusable automation and in general hard to understand what will be changed at all.
Possible solution
Add new option to Terragrunt to be able ignore everything after that line (previous behaviour).

According to this comment, since v1.2 this problem shouldn't be that bad and it kinda does. So I think this issue could be closed.

Starting with v1.2, the goal for the refresh report is that only external changes which may have contributed to changes in the plan will be shown. This means in most cases, unused attributes changing outside of terraform will not show up in the normal plan output. If there are no changes in the plan, no external changes will be shown in the CLI at all. All refresh information is still stored within the plan, and if a user wants to see all external changes of resources in the CLI, a refresh-only plan can be used.


Use faker for tests

Because tests should be first citizens pieces of code... they deserve proper random (faked) data :school_satchel:
Faker is a new dependency, but only for tests (not included in backend dockerfile)

Thanks!
In fact, I initially used Faker (for the Flask version), but as currently the DB gets polluted with tests that are not removed afterwards, I started getting collisions frequently. And I realized that I didn't need real data, just random strings that I could check.
Let's leave this on standby until I update the tests to use Starlette's TestClient, and we can solve automatic rollbacks in tests.

Yes, sounds good. I will create another PR in due time 👍

Thanks!


Register page is designed

Related Issue
I have designed an register page.
Closes: #440
Description of Changes

Checklist:

[c] My code adheres to the established style guidelines of this project.
[c] I have conducted a self-review of my code.
[c] I have included comments in areas that may be difficult to understand.
[c] I have made corresponding updates to the project documentation.
[c] My changes have not introduced any new warnings.

Screenshots

Original
Updated

@anmode this page require more updation I am thinking to add image at left side please review.

please fix the build first:

Failed to compile.
--
15:41:10.154 |
15:41:10.154 | ./pages/userAuth.page.js
15:41:10.154 | Module not found: Can't resolve '../components/user/register'
15:41:10.155 |
15:41:10.155 | https://nextjs.org/docs/messages/module-not-found


Please tag a version

Hey, I'm about to package the library for inclusion in Void Linux so I'd like to ask you to tag a version in Github. I see in the version file the current one is 0.1.5 but it simplifies our process and discussion greatly if there is a Github tagged versin :)
Thanks!

@MIvanchev I bumped the version to 0.1.6 because of the latest commits, and this is now a tag.
I also fixed some links, and fixed the documentation page while I was at it.

Thanks I really really appreciate it!!!


I am using youtube player and have customised the UI. Suddely from today, it started showing video title and share button. How to get rid of that?

I am not using webview. This issue arised in production and my users got affected. Can there be any work around soon enough?

Please, avoid opening multiple issue for the same problem. Use #354.


Why is this line duplicated here?

https://github.com/rook/rook/pull/13807#discussion_r1499541510

b12efe74a9


Error encountered when PAT only has Agent Pools (read, manage) scope

The description of the AZP_TOKEN environment variable in this section only mentions that the PAT will require Agent Pools (read, manage) scope. However, running a Linux container and passing in a PAT with only that scope returns the following error:
[2021-09-17 17:04:10Z WARN VisualStudioServices] Basic issued token provider instance 50184984 requires an interactive prompt which is not allowed by the current settings
[2021-09-17 17:04:10Z ERR  VisualStudioServices] GET request to https://dev.azure.com/{ORGANIZATION_NAME}/_apis/connectionData?connectOptions=1&lastChangeId=-1&lastChangeId64=-1 is not authorized. Details: VS30063: You are not authorized to access https://dev.azure.com.

This error disappears when using a PAT with full-access scope. However, we'd prefer not to use a full-access scoped PAT for security reasons. What is the additional scope that needs to be added for the PAT? It would be good to add that information to the docs to ensure the container can be run from the instructions provided.
Thanks!

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

ID: b31d4f6c-d16d-2ba1-1294-6aa94e328046
Version Independent ID: 88aec599-4410-697d-1002-1c41b1c17bb6
Content: Run a self-hosted agent in Docker - Azure Pipelines
Content Source: docs/pipelines/agents/docker.md
Product: devops
Technology: devops-cicd-agents
GitHub Login: @steved0x
Microsoft Alias: sdanie

@nairmai Thanks for your question. While we look into updating the docs, this also might be a good product question for the dev team. To make sure it gets in front of the right people, please submit your issue here.

Thanks @TimShererWithAquent, submitted an item here.

(copying the update from the Developer Community forum)
As an update, we were able to solve this issue - the creator of the PAT with Agent Pools (read, manage scope) also needed to have organization-level administrator access for the Agent Pool that the self-hosted agent container was trying to register in. This is documented on this page - this permission level is granted to creators of that agent pool, but since that was different that the PAT creator in our case, we needed to explicitly add that permission, and I think it would be helpful to clarify that exact role when the docs say “created by a user who has permission to configure agents”. Thanks!


Update JS code on CockroachCloud connection page

Update the Node/pg code sample to add:

missing comma
couple of library imports
connection pool object
main function skeleton
link to the node-postgres module documentation

Fixes #6392.

@Amruta-Ranade ok to merge this fix?

Yes! (Sorry I missed the review request)

np - thank you!


refactor & bug fixes

simplify microamp and update cargo-microamp
update zup-rtfm to match cortex-m-rtfm v0.5.0
fix several synchronization bugs in zup-rtfm
use a different program layout when in multi-core mode; this prevents UB when
sending pointers between the cores
move multi-core rtfm examples into zup-rtfm examples directory

bors r+

bors r+

bors r+


URIs should resolve to SynBioHub pages

The URIs should resolve to the SynBioHub page for a part.
Assume that a part has URI:
/<userId, if private>//
This should resolve to the SynBioHub page for this part.

This works for public ones now, I think.

I believe this works now for private too.


document architecture

how the hyperlog, indexes, chunk store, and database all fit together

covered in [doc/architecture.markdown]9https://github.com/digidem/osm-p2p-db/blob/master/doc/architecture.markdown)


Can't transform scene files in the Tilemap

Tested versions
-Reproducible in: 4.2.1.stable
System information
Windows 10
Issue description
I have a problem with my godot game. I'm using a scene with the tilemap, but I can't rotate the scene on the tilemap and the editor says "Can't transform scene files".
How to fix or do something with the same benefits as using the scenes in the tile map.
This creates a problem where I have to create several variants of the same scene just to add rotation, I don't think I can just use standard blocks with .png in the tileset, as I have plans to make each wall destructible with animation and effects, so I'm using a scene instead of a .png
Sorry for the text, I'm not a native English speaker.
Steps to reproduce
Create a tileset using a scene and then try to rotate it in the tilemap, the editor does not allow it and displays the message "Can't transform scene files"
Minimal reproduction project (MRP)
FL_Game.zip

This is a limitation of the current system. As a workaround you can use inherited scenes with rotation.
There's also this plugin, which provides similar functionality:
https://github.com/KoBeWi/Godot-Instance-Dock


SetID: ID is allowed to be 0 in these cases

Note: This should be merged before #34

Pains me to approve this change mainly because there is so much else that needs to be re-done in the builder and all the test cases :-(


DeprecationWarning: Testing an element's truth value

Thank you very much for the tool, perfect solution to my need to generate documentation for C++ projects!
While i upgrade python from 3.9 to 3.12.2, with mkdoxy 1.2.0, there is a warning appeared, as below:
INFO    -  Building documentation...
INFO    -  Cleaning site directory
INFO    -  Start plugin MkDoxy
INFO    -  -> Start project 'models'
INFO    -    -> generating Doxygen files
INFO    -  DeprecationWarning: Testing an element's truth value will raise an exception in future versions.  Use specific 'len(elem)' or
'elem is not None' test instead.
File "D:\miniconda3\envs\oasis\Lib\site-packages\mkdoxy\node.py", line 736, in brief
return self._brief.md()
File "D:\miniconda3\envs\oasis\Lib\site-packages\mkdoxy\property.py", line 38, in md
if not briefdescription:
I'm not sure if it's the python version that causes it,  just as a feedback.

Thank you for finding the warning, I will look at it.


Virtual Slide Performance is reduced with large dynamic data set in Ionic Android Platform

I am using Swiper js with ionic-angular + Capacitor js mobile app. In some scenario my app need to show more than 6000 slides. which slides data will be fetched dynamically. I use Virtual module to show slides.
In ios and web there is no performance lag. But in Android after 6000 slides loaded app is getting laggy and gets crashed.
HTML:
    <swiper id="StkSlider" #StkSlider [config]="VerSlideOpts" (slideChange)="stockSetClock($event)" [virtual]="true">

      <ng-template swiperSlide *ngFor="let item of copySrcData; index as i">

{{name}}

({{item.ticker}})

{{item.val.toFixed(1)}}

Stock Price

{{item.currency}} {{item.price.toFixed(1)}}

Weight

{{weight}}%

      </ng-template>

    </swiper>

swiper config:
 VerSlideOpts: SwiperOptions = {
slidesPerView: 1,
direction: 'vertical',
loop: false,
observeParents: true,
observer: true,
observeSlideChildren: true,
followFinger: false,
allowTouchMove: false,
passiveListeners: true,
slideToClickedSlide: true,
init: true

}
angular Demo
Ionic Demo
Need better solution ASAP to over come this challenge.
Any Advice would be very helpful.
Originally posted by @vimalkumar015 in https://github.com/nolimits4web/swiper/discussions/5445

angular Demo
Ionic Demo

The swiper is not working with longSwipes: false,

angular Demo Ionic Demo

Can You please see why in stackblitz I am getting error Can't find package:swiper_angular here is demo in stackbliz link. Thanks!
https://stackblitz.com/edit/angular-ivy-gqpzhp?file=src%2Fapp%2Fapp.module.ts

angular Demo Ionic Demo

@vimalkumar015 Can You please see why in stackblitz I am getting error Can't find package:swiper_angular here is demo in stackbliz link. Thanks!
https://stackblitz.com/edit/angular-ivy-gqpzhp?file=src%2Fapp%2Fapp.module.ts

@GRDtechlab
i checked your demo. it seems stackbltiz works only upto<EMAIL_ADDRESS>version.
Solution:

in stack blitz package name add<EMAIL_ADDRESS>instead of swiper.
remove import 'swiper/angular'; from app.module.ts
in style.css just add @import "~swiper/swiper-bundle";

Hello everyone and @nolimits4web ,
In order to resolve this issue, i tried to dug little deeper. I think this will be the cause of the problem.
Even though slider [virtual]:true and element only showing 2/3 available elements, because of
angular *ngfor, n number of ng-template has been getting created and memory also getting allocated for it.

in the above image i have created 7000 slides with swiperjs. you can see memory holds 7015 TemplateRef (including tabs and other pages).

New Swiper v9 doesn't have Angular components anymore, it is recommended to use new Swiper Web Components instead.