Unable to get client token after control playback using the api.

Hi, I have facing a bug when trying to use the version from the dev branch, this bug is not present on the 0.4.2 version, which is working great for me at the moment :).
I have just tryed this using macOS, but I think the bug is reproducible on other platforms.
The steps to reproduce the bug are the following:

Start a new libspotify client.
Play on the client using a Spotify client like the desktop or mobile application, the speaker gets added to my account and play music correctly.
Restart librespot, it reconnect correctly to my account.
Try to start playback using the Web API (example from docs), librespot is unable to get a client token and therefore fails to start the playback.

After taking a look I think that the problem was introduced by this changes https://github.com/librespot-org/librespot/commit/10650712a77c196c1d0fc2c837c82411fd16410c .
What I has discovered after adding some logs is that when I use the api to start the playback a client id that don't match any of the present in the core/src/spclient.rs is used due to this code .
        // Current state of affairs: keymaster ID works on all tested platforms, but may be phased out,
         // so it seems a good idea to mimick the real clients. `self.session().client_id()` returns the
         // ID of the client that last connected, but requesting a client token with this ID only works
         // on macOS and Windows. On Android and iOS we can send a platform-specific client ID and are
         // then presented with a hash cash challenge. On Linux, we have to pass the old keymaster ID.
         // We delegate most of this logic to `SessionConfig`.
         let client_id = match OS {
             "macos" | "windows" => self.session().client_id(),
             _ => SessionConfig::default().client_id,
         };
         client_data.set_client_id(client_id);

My suspicious is, maybe the client id do not have permissions to use the "streaming" scope? I tried to force it to use the KEYMASTER_CLIENT_ID but this do not solve the problem, maybe other places have been changed to relying on data of the last connected device.
I think that the problem will not only affect to the playback initialization but also will make the token renewal fail whenever it is done after librespot has been controlled using the api.
Probably all of this will make more sense to the maintainers, hope some of this helps to find the problem.

I think you are on to something with your analysis. I won't have time to look at this anytime soon, but I can look at PRs and offer advice if I have any.
Here I would appreciate it if someone else could do the trial-and-error thing (or actual packet analysis) of swapping in and out parts of that commit and other keymaster changes, to see what triggered this, so we may work on a fix from there.

I can't reproduce this. I'm not 100% sure I am doing exactly the same, the above steps are a little vague. A debug log would be useful.
I do see lots of failures to get a client token but that doesn't stop the playback (for me). I don't know the dev code well enough to understand why playback can continue despite this.
[2023-01-16T14:45:26Z INFO  librespot_playback::player] Loading <Cry> with Spotify URI <spotify:track:7wgxq27uOvfydLunYkcmAU>
[2023-01-16T14:45:26Z DEBUG librespot_audio::fetch] Downloading file 97c6f540925c3c9f3736ac85697d8ce815fa8963
[2023-01-16T14:45:26Z DEBUG librespot_core::spclient] Client token unavailable or expired, requesting new token.
[2023-01-16T14:45:26Z DEBUG librespot_core::http_client] Requesting https://clienttoken.spotify.com/v1/clienttoken
[2023-01-16T14:45:26Z WARN  librespot_core::spclient] Unable to get client token. Trying to continue without...
[2023-01-16T14:45:26Z DEBUG librespot_core::http_client] Requesting https://gew1-spclient.spotify.com:443/storage-resolve/files/audio/interactive/97c6f540925c3c9f3736ac85697d8ce815fa8963?product=0&country=GB&salt=1887686800
[2023-01-16T14:45:27Z TRACE librespot_core::cdn_url] Resolved CDN storage: CdnUrl {
        file_id: FileId(
            Ok(
                "97c6f540925c3c9f3736ac85697d8ce815fa8963",
            ),
        ),
        urls: MaybeExpiringUrls(
            [
                MaybeExpiringUrl(
                    "https://audio-ak-spotify-com.akamaized.net/audio/97c6f540925c3c9f3736ac85697d8ce815fa8963?__token__=exp=1673966727~hmac=5aff36d5c40eef5caf23b2b4fad958f52e63438f9cce2b90ba0977985277dc6d",
                    Some(
                        Date(
                            OffsetDateTime {
                                local_datetime: PrimitiveDateTime {
                                    date: Date {
                                        year: 2023,
                                        ordinal: 17,
                                    },
                                    time: Time {
                                        hour: 14,
                                        minute: 40,
                                        second: 27,
                                        nanosecond: 0,
                                    },
                                },
                                offset: UtcOffset {
                                    hours: 0,
                                    minutes: 0,
                                    seconds: 0,
                                },
                            },
                        ),
                    ),
                ),
                MaybeExpiringUrl(
                    "https://audio4-fa.scdn.co/audio/97c6f540925c3c9f3736ac85697d8ce815fa8963?1673966727_seckweH0XuHOMGAyCDKKyvku3SGYMOKK_PwfBh8DZmc=",
                    Some(
                        Date(
                            OffsetDateTime {
                                local_datetime: PrimitiveDateTime {
                                    date: Date {
                                        year: 2023,
                                        ordinal: 17,
                                    },
                                    time: Time {
                                        hour: 14,
                                        minute: 40,
                                        second: 27,
                                        nanosecond: 0,
                                    },
                                },
                                offset: UtcOffset {
                                    hours: 0,
                                    minutes: 0,
                                    seconds: 0,
                                },
                            },
                        ),
                    ),
                ),
            ],
        ),
    }
[2023-01-16T14:45:27Z TRACE librespot_audio::fetch] Streaming from https://audio-ak-spotify-com.akamaized.net/audio/97c6f540925c3c9f3736ac85697d8ce815fa8963?__token__=exp=1673966727~hmac=5aff36d5c40eef5caf23b2b4fad958f52e63438f9cce2b90ba0977985277dc6d
[2023-01-16T14:45:27Z INFO  librespot_connect::spirc] Resolved 50 tracks from <"spotify:album:5ht7ItJgpBH7W6vJ5BqpPr">
[2023-01-16T14:45:27Z TRACE librespot_connect::spirc] ==> kPlayStatusPlay
[2023-01-16T14:45:27Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPlay]
[2023-01-16T14:45:27Z TRACE librespot_audio::fetch::receive] Time to first byte now estimated as: 24 ms
[2023-01-16T14:45:27Z TRACE librespot_audio::fetch::receive] Throughput now estimated as: 1184 kbps
[2023-01-16T14:45:27Z TRACE librespot_audio::fetch::receive] Throughput now estimated as: 1302 kbps
[2023-01-16T14:45:27Z INFO  librespot_playback::player] <Cry> (236533 ms) loaded
[2023-01-16T14:45:27Z TRACE librespot_playback::player] == Starting sink ==
[2023-01-16T14:45:27Z TRACE librespot_connect::spirc] ==> kPlayStatusPlay

I do see lots of failures to get a client token but that doesn't stop the playback (for me). I don't know the dev code well enough to understand why playback can continue despite this.

The client token is required for only some of the HTTP endpoints. That's why the code is lenient to try anyway if no client token could be gotten.

Ah ok! So, a client token (and therefore an access token) isn't actually required for CDN access and for playback itself? Maybe there's hope for #1098 after all...

That’s right.

To be clear there are two types of tokens: the “keymaster” one (your choice with a hardcoded token or one gotten from the session) and the “spclient” token which is required for some HTTP endpoints, but indeed not the CDN.


SUpport running raw docker servers directly and avoid truss

:rocket: What

:computer: How

:microscope: Testing

Closing in favor of tianshu's pr


TEST_USER_IBMQ_TOKEN  env var to daily-integration-check.yml

Could've sworn I added this back when I re-created the tests, sorry about that!


add file to fix testing

I'm guessing that defaults has dropped this package since it's not included in aggregates and the anaconda channel didn't build it for py37. So this PR can be ignored and only serve as a hint to get a successful build for anyone who uses this recipe to get a MKL and py37 cvxopt package. Built and tested cleanly on Linux/Mac py36/py37. This fix already in c-f upstream recipe.

py37 builds are available on defaults now.

Thanks very much; I'll delete my now-unneeded builds.


Add CodeOwners component

Closes PLA-290.
The component is a simple extension to FileBase that collects a list of patterns and renders them in a simple text format.
It is a component related to GitHub, so I restricted its creation to projects that have github component. Moreover it does not look at the parent and thus in a monorepo it is assumed only the root project would define code owners. This decision is up for discussion.

@quesabe please fix the conflicts and feel free merging yourself.


The token does not have the specified privilege.

I've tried running it as admin but it doesn't seem to work.

@Snaacky I get AttributeError: 'NoneType' object has no attribute 'base_address'

Fixed in latest commit?


Feature Request: Passing of props to change border color of current date on calendar picker.

Right now it is hard coded for black and white, allowing for customization of that would be great!

See also https://github.com/web-ridge/react-native-paper-dates/issues/56 where it could fix the issue if we could sent borderColor: 'transparent' or something like that.


Create Disbursements component does not honour user object permissions for the Disbursement object

Summary of the Issue
The Funding Request object contains a Lightning Component action called 'Create Disbursements'. This component allows a user to easily calculate and create bulk disbursement records for a funding request. Currently this component runs in system mode and so allows a user who may not have read or edit access to Disbursements to create a record(s).
Controller class: https://github.com/SalesforceFoundation/OutboundFunds/blob/master/src/classes/disbursementsCreateController.cls
Steps to Replicate

Create a test user and assign this user to a profile that has No Access or only Read access to the Disbursements object
Login as the test user, launch the Create Disbursements component and successfully create disbursement records for a Funding Request

Potential Workarounds
Create a validation rule to prevent non-approved users from being able to create a disbursement via the Lightning Component
OR
Remove the disbursementsCreateController Apex Class from any profile or permission set that is assigned to non-approved users. The latter will not hide the component but will return an error if they try to use it

W-8791351

W-8791351

Power of Us post

Power of Us post

Fixed in #82


[Easy] logging improvement for objective values

Felix mentioned that it would be handier to see these logs in the non-debug mode. I agree
Test Plan
<Explain how you and a reviewer have/intend to test this change>

Codecov Report

Merging #1355 (74ffe55) into main (1fdb557) will not change coverage.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##             main    #1355   +/-   ##
=======================================
  Coverage   67.55%   67.55%
=======================================
  Files         138      138
  Lines       29335    29335
=======================================
  Hits        19816    19816
  Misses       9519     9519


Non-default property values in new ParticlesMaterial

Godot version
v3.5.stable.official [991bb6ac7]
System information
Windows 10
Issue description
A just created ParticlesMaterial has two properties with enabled reset buttons.

Flags / Disable Z has an intial value of true, which can be reset to false.
Gravity / y has an intial value of 98, which can be reset to -9.8.

I presume that either the inital property values or the reset values are erroneous.
As a side note, I noticed a few times that the reset button was not enabled after I changed some properties, but I can't repeat that yet.
Steps to reproduce

Add Particles2D node
Add ParticlesMaterial to Process Material
Inspect properties

Minimal reproduction project
No response

Both of these default values are intended. The revert arrows should ideally be hidden somehow, but I don't know how this can be done.


Fix broken title in README.md

If you see README, the title is not displayed correctly.

Interesting, that used to be a proper title! Thanks for the PR :)

Yeah, I think they modified the markdown parser to allow hashtags or something, don't know the details though.


⚠ RPC server - Figment Solana has degraded performance

In 4f59f8c, RPC server - Figment Solana ($FIGMENT_SOLANA_RPC_URL) experienced degraded performance:

HTTP code: 429
Response time: 106 ms

Resolved: RPC server - Figment Solana performance has improved in a4af705.


Update Contentful & Configs

This pull update the version of Contentful used to 3 and adds config options for setting the space environments and setting the client options array.

Hey @kyllagdrgn ,
thanks for the PR! I've been silent about this, but next week I should finally have the time to address this 🙂


Nasty OSX String formatting bug

This is a really nasty one. It was introduced by commit e56075d46d7d9e1d8c5e8be7ed0506ad2de98734
https://github.com/ponylang/ponyc/commit/e56075d46d7d9e1d8c5e8be7ed0506ad2de98734
Here's a program to demonstrate it:
use "collections"

actor Main
  new create(env: Env) =>
    for i in Range[U64](1, 5) do
        let r = Rectangle(i, i + 2)
        env.out.print("Width and height: " + r.dimensions())
        env.out.print("Width and height: " + r.dimensions())
        env.out.print("")
    end

class Rectangle
  let _width: U64
  let _height: U64

  new create(w: U64, h: U64) =>
    _width = w
    _height = h

  fun dimensions(): String => _width.string() + " " + _height.string()

When this is run as of the noted commit, output is:
Width and height: 1 3
Width and height:<PHONE_NUMBER><PHONE_NUMBER>

Width and height: 2 4
Width and height:<PHONE_NUMBER><PHONE_NUMBER>

Width and height: 3 5
Width and height:<PHONE_NUMBER><PHONE_NUMBER>

Width and height: 4 6
Width and height:<PHONE_NUMBER><PHONE_NUMBER>

When run with the commit previous to this commit, you get:
Width and height: 1 3
Width and height: 1 3

Width and height: 2 4
Width and height: 2 4

Width and height: 3 5
Width and height: 3 5

Width and height: 4 6
Width and height: 4 6

As soon as we fix this, we should do a 3.0.1 release.
Based on conversation in IRC, this doesn't happen to @jemc on linux but does for me as well as the reporter on OS X. LLVM 3.8.

As an addendum, I don't know what else this might be causing for issues. @Praetonus do you have access to OSX to test? I'm thinking we should revert the commit for now, thoughts?

@SeanTAllen - reverting for now is a good idea, since the commit was an optimization only.  The optimization can be re-committed later when its determined how the bug is caused.

@jemc reverted. we should do a 3.0.1 release asap.

arg. i did it on master by mistake. bad Sean. i'll do better next time.

I'm changing this to low priority as i reverted the change that caused this. We just need to understand the problem before reintroducing that optimization.

I'm very sorry I didn't notice this on the original PR. I think the right solution in the long-term is to leave this reverted.
LLVMNoUnwind seems like it tells LLVM that the function will not propagate an exception. But, in fact, it tells LLVM that it will not raise an exception. So a Pony function that raises an exception but also traps it (i.e. it does so in a try expression) when it is marked LLVMNoUnwind will produce undefined behaviour - LLVM might generate the LSDA info in the assembly, and it might not.

I'm getting this bug as well on Linux Mint 18.

This was fixed and is out in 0.3.1

I'm closing this as, I don't think we want to re0do NoUnwind.


Fix/alicloud terraform improvements

Changes

change terraform version to 1.0
remove setting the instance type and let terraform choose the best fit
change the terraform model used to a local one to fix the warnings and set the image type to a non CentOS image

In this fix we mainly upgraded to terraform 1.0, fixed all warnings when running the terraform scripts and introduced a new setting to set the image type used for the cluster VMs. Which is now set to an aliyun, non CentOS image by default).
What does the user have to do differently now?

nothing, all changes are "under the hood" only

What does change for the user?

no terraform warnings anymore
no issues anymore when choosing an aliyun region where the previously defined instance type was not available in this region, as the instance type is now set automatically
non CentOS images allow to use this cluster in additional steps like AppSvc via Arc

Thank you @foliba for updating the scenario. Before merging, do you mind opening an issue so we can link the PR to?

@likamrat #635 created:
https://github.com/microsoft/azure_arc/issues/635


Still can't debug an app more complicated than the blink example (IDFGH-9526)

Answers checklist.

[X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
[X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
[X] I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.
v4.4.4
Operating System used.
Windows
How did you build your project?
Eclipse IDE
If you are using Windows, please specify command line type.
CMD
What is the expected behavior?
Start debugging my app based on FreeRTOS IoT Reference code in the ESP-IDF Eclipse Plugin and see it stop at the automatic breakpoint at the beginning of app_main().  If not, at the very least be able to hit the Pause tool to get control of it, add another breakpoint in app_main()'s infinite loop, then hit the Play tool to start it running again.
What is the actual behavior?
Doesn't stop at app-main()'s automatic temporary breakpoint, and can stop it with the Pause tool, but adding a breakpoint in app_main()'s infinite loop and the hitting the Play tool shows this in the idf.py monitor when it starts-up again:
...
Guru Meditation Error: Core  0 panic'ed (Interrupt wdt timeout on CPU0).
Setting breakpoint at 0x4204825e and returning...
0x4204825e: esp_vApplicationIdleHook at C:/App/ESP/IDF/esp-idf-v4.4.4/components/esp_system/freertos_hooks.c:50 (discriminator 2)
Guru Meditation Error: Core  0 panic'ed (Interrupt wdt timeout on CPU0).
Setting breakpoint at 0x4204825e and returning...
0x4204825e: esp_vApplicationIdleHook at C:/App/ESP/IDF/esp-idf-v4.4.4/components/esp_system/freertos_hooks.c:50 (discriminator 2)
Guru Meditation Error: Core  0 panic'ed (Interrupt wdt timeout on CPU0).
...
Steps to reproduce.
See the description in the previous 2 sections above.
Build or installation Logs.
See the description in the previous 2 sections above.

More Information.
See previously closed issue Unable to upgrade ESP-IDF v4.4.3 to latest OpenOCD v0.11.0-esp32-20221026 tool (IDFGH-9242) #10628 for history.

In case anyone cares, I verified my ESP32-C3-DevKitM-1 had all the "green NC" labelled changes from its schematic applied (swapped R1 & R4 for R2 & R3, added C4, C5, & R14, removed R21 & R22). Blink example still seems to behave correctly when debugging it (initialy stops at beginning of app_main(), resumes with "Play" tool, stops with "Pause" tool, resumes again with "Play", stops at added breakpoints, even while it's running, doesn't stop when they're removed).
Updated my IDF directory to latest from release branch:
C:\App\ESP\IDF\esp-idf-v4.4.4> git describe --tags
v4.4.4-148-g4c2afac355
However, same Eclipse debugger still doesn't stop at app_main() when trying to attach to my app, and panics when trying to resume it:
...
I (15041) temp_sub_pub_and_led_control_demo: Task TempSubPubLED waiting for publish 2 to complete.
I (15151) coreMQTT: Ack packet deserialized with result: MQTTSuccess.
I (15151) coreMQTT: State record updated. New state=MQTTPublishDone.
I (15151) temp_sub_pub_and_led_control_demo: Rx'ed ack for QoS1 publish from Tx to /filter/TempSubPubLED (P3:F0).
I (15191) coreMQTT: De-serialized incoming PUBLISH packet: DeserializerResult=MQTTSuccess.
I (15191) coreMQTT: State record updated. New state=MQTTPubAckSend.
I (15191) temp_sub_pub_and_led_control_demo: Received incoming publish message {"temperatureSensor":{ "taskName": "TempSubPubLED", "temperatureValue": 28.255800, "iteration": 2}}
I (18771) temp_sub_pub_and_led_control_demo: Sending publish request to agent with message "{"temperatureSensor":{ "taskName": "TempSubPubLED", "temperatureValue": 28.255800, "iteration": 3}}" on topic "/filter/TempSubPubLED"
I (18771) coreMQTT: Publishing message to /filter/TempSubPubLED.
I (18771) temp_sub_pub_and_led_control_demo: Task TempSubPubLED waiting for publish 3 to complete.
Guru Meditation Error: Core  0 panic'ed (Interrupt wdt timeout on CPU0).
Setting breakpoint at 0x42049090 and returning...
Guru Meditation Error: Core  0 panic'ed (Interrupt wdt timeout on CPU0).
Setting breakpoint at 0x42049090 and returning...
Guru Meditation Error: Core  0 panic'ed (Interrupt wdt timeout on CPU0).
...
Results are identical if I use the unmodified Featured FreeRTOS IoT Integration  demo my app is based on, with only the temp_sub_pub_and_led_control_demo enabled to run through the USB Serial/JTAG interface of my ESP32-C3-DevKitM-1.

In case anyone cares, I verified my ESP32-C3-DevKitM-1 had all the "green NC" labelled changes from its schematic applied (swapped R1 & R4 for R2 & R3, added C4, C5, & R14, removed R21 & R22). Blink example still seems to behave correctly when debugging it (initialy stops at beginning of app_main(), resumes with "Play" tool, stops with "Pause" tool, resumes again with "Play", stops at added breakpoints, even while it's running, doesn't stop when they're removed).
Updated my IDF directory to latest from release branch:
C:\App\ESP\IDF\esp-idf-v4.4.4> git describe --tags
v4.4.4-148-g4c2afac355
However, same Eclipse debugger still doesn't stop at app_main() when trying to attach to my app, and panics when trying to resume it:
...
I (15041) temp_sub_pub_and_led_control_demo: Task TempSubPubLED waiting for publish 2 to complete.
I (15151) coreMQTT: Ack packet deserialized with result: MQTTSuccess.
I (15151) coreMQTT: State record updated. New state=MQTTPublishDone.
I (15151) temp_sub_pub_and_led_control_demo: Rx'ed ack for QoS1 publish from Tx to /filter/TempSubPubLED (P3:F0).
I (15191) coreMQTT: De-serialized incoming PUBLISH packet: DeserializerResult=MQTTSuccess.
I (15191) coreMQTT: State record updated. New state=MQTTPubAckSend.
I (15191) temp_sub_pub_and_led_control_demo: Received incoming publish message {"temperatureSensor":{ "taskName": "TempSubPubLED", "temperatureValue": 28.255800, "iteration": 2}}
I (18771) temp_sub_pub_and_led_control_demo: Sending publish request to agent with message "{"temperatureSensor":{ "taskName": "TempSubPubLED", "temperatureValue": 28.255800, "iteration": 3}}" on topic "/filter/TempSubPubLED"
I (18771) coreMQTT: Publishing message to /filter/TempSubPubLED.
I (18771) temp_sub_pub_and_led_control_demo: Task TempSubPubLED waiting for publish 3 to complete.
Guru Meditation Error: Core  0 panic'ed (Interrupt wdt timeout on CPU0).
Setting breakpoint at 0x42049090 and returning...
Guru Meditation Error: Core  0 panic'ed (Interrupt wdt timeout on CPU0).
Setting breakpoint at 0x42049090 and returning...
Guru Meditation Error: Core  0 panic'ed (Interrupt wdt timeout on CPU0).
...
Results are identical if I use the unmodified Featured FreeRTOS IoT Integration  demo my app is based on, with only the temp_sub_pub_and_led_control_demo enabled to run through the USB Serial/JTAG interface of my ESP32-C3-DevKitM-1.

Looks like this is a black hole.


[Bug]: CDP's websocket events inconsistent behavior

Minimal, reproducible example
import puppeteer from 'puppeteer';

const browser = await puppeteer.launch({ headless: false });
const page = await browser.newPage();

const session = await page.target().createCDPSession();
await session.send('Network.enable');

session.on('Network.webSocketFrameReceived', ({requestId, timestamp, response}) => {
    console.log('Received:', requestId, timestamp, response.payloadData)
})

// Case 1: expected behavior, websocket frames are logged to the console
await page.goto('https://www.tradingview.com');

// Case 2: CDP events received in puppeteer but don't reach 'Network.webSocketFrameReceived' callback
// await page.goto('https://lolly-bet.com/en/sportsbook');

// Case 3: CDP events are not received in puppeteer
// await page.goto('https://finance.yahoo.com/');

Error string
no error
Bug behavior

[ ] Flaky
[ ] PDF

Background
I am trying to retrieve websocket frames received in Puppeteer's browser using a CDP session.
Unfortunately, nothing is logged to the console.
While debugging using DEBUG=puppeteer:protocol:* node script.js, I noticed several cases:

Case 1: expected behavior where websocket frames are printed to the console
Case 2: websocket frames not reaching callback method written above but protocol's messages are received in puppeteer (running the script with DEBUG=puppeteer:protocol:* shows the frames in the DEBUG output but nothing to the console)
Case 3: websocket frames not reaching callback method and not shown with DEBUG while
Network.webSocketFrameReceived events are actually emmitted as shown in the
browser's protocol monitor experimental feature

related issue: #9294 #3547
Expectation
Print websocket frames received in the browser from the server to the console for the three websites above.
Reality
Websocket frames do not reach the Network.webSocketFrameReceived event method.
Puppeteer configuration file (if used)
No response
Puppeteer version
21.5.2
Node version
21.2.0
Package manager
npm
Package manager version
10.2.3
Operating system
Linux

You enable the events on the main target of the page only. Is there a chance that in the other cases the socket connection is done from an iframe (an out-of-process iframe in the case 2) and perhaps a worker in the case 3? You can enable the target id column in the network monitor and compare target ids for the websocket messages.

Something like this should cover targets that auto-attach to the page (might exclude some service workers):
import puppeteer from 'puppeteer';

const browser = await puppeteer.launch({ headless: false });
const page = await browser.newPage();

const session = await page.target().createCDPSession();

async function subscribe(session) {
  session.on('sessionattached', s => {
    console.log('subsession')
    subscribe(s);
  });
  session.send('Network.enable');
  session.on('Network.webSocketFrameReceived', ({ requestId, timestamp, response }) => {
    console.log('Received:', requestId, timestamp, response.payloadData)
  });
  session.send('Runtime.runIfWaitingForDebugger');
}

await session.send('Target.setAutoAttach', {
  autoAttach: true,
  flatten: true,
  waitForDebuggerOnStart: true,
});

subscribe(session);

await page.goto(...);

If there is still an issue with this method, please open a bug for CDP at crbug.com.

It seems that the issue was indeed with the target. The snippet you provided
fixed it.
Thank you for your time!

@OrKoN I reckon you deserve a monument, mate.  Cheers to you!


Multiple issues with deploy.bat scritp

Deploy.bat is not performing as it should be and it causes reinstalling sysmon every time it runs. Few issues:

sysmon.exe is not copied to c:\windows, however check is performed on it :
"FOR /F "delims=" %%b IN ('c:\windows\sysmon.exe ^| FIND /c "System Monitor v11.10"') DO"
"FIND /c "System Monitor v11.10" is hardcoded without a variable, therefore if you are having newer sysmon version it will allways goes to reinstalling sysmon
"if "%CHECK_SYSMON_RUNNIG%" == "1" " is incorrect and will never work because environment variables in batch files are expanded when a line is parsed. In the case of blocks delimited by parentheses (as your if defined) the whole block counts as a "line" or command.
This means that all occurrences of %FOO% are replaces by their values before the block is run. In your case with nothing, as the variable doesn't have a value yet.
To solve this you can enable delayed expansion:
setlocal enabledelayedexpansion
Delayed expansion causes variables delimited by exclamation marks (!) to be evaluated on execution instead of parsing which will ensure the correct behavior in your case:

if not defined BAR (
    set FOO=1
    echo Foo: !FOO!
)

I will post my modified script which works for me. Hope it will be help for somebody.
ECHO OFF

FOR /F "delims=" %%i IN ('wmic service SplunkForwarder get Pathname ^| FINDSTR /m service') DO SET SPLUNKDPATH=%%i
SET SPLUNKPATH=%SPLUNKDPATH:~1,-28%

>> %WINDIR%\sysmon.log (
setlocal EnableDelayedExpansion

ECHO %DATE%-%TIME% "deploy.bat" Checking for Sysmon status

FOR /F "delims=" %%c IN ('sc query "Sysmon" ^| FIND /c "RUNNING"') DO (
    SET CHECK_SYSMON_RUNNIG=%%c
)
FOR /F "delims=" %%b IN ('c:\windows\sysmon.exe ^| FIND /c "System Monitor v13.01"') DO (
    SET CHECK_SYSMON_VERSION=%%b
)

if "!CHECK_SYSMON_RUNNIG!" == "1" (
    ECHO %DATE%-%TIME% Sysmon found, checking if it is version v13.01
    IF "!CHECK_SYSMON_VERSION!" == "1" (
        ECHO %DATE%-%TIME% Sysmon already up to date, exiting
        EXIT
    ) ELSE (
        ECHO %DATE%-%TIME% Sysmon binary is outdated, un-installing
        IF EXIST %WINDIR%\sysmon.exe (
            %WINDIR%\sysmon.exe -u
        )
    )
) ELSE (
    ECHO %DATE%-%TIME% Sysmon not found, proceding to install
    ECHO %DATE%-%TIME% Copying the latest config and install file
    COPY /z /y "%SPLUNKPATH%\etc\apps\TA-Sysmon-deploy\bin\config.xml" "C:\windows\"
    COPY /z /y "%SPLUNKPATH%\etc\apps\TA-Sysmon-deploy\bin\sysmon.exe" "C:\windows\"
    ECHO %DATE%-%TIME% Installing Sysmon
    "%SPLUNKPATH%\etc\apps\TA-Sysmon-deploy\bin\sysmon.exe" /accepteula -i c:\windows\config.xml | Find /c "Sysmon installed" 1>NUL
    ECHO %DATE%-%TIME% Install complete!
    powershell -Command "& {Restart-Service Splunkforwarder;}"
    EXIT
)
ECHO %DATE%-%TIME% Install failed
)

I will post my modified script which works for me. Hope it will be help for somebody.
ECHO OFF

FOR /F "delims=" %%i IN ('wmic service SplunkForwarder get Pathname ^| FINDSTR /m service') DO SET SPLUNKDPATH=%%i
SET SPLUNKPATH=%SPLUNKDPATH:~1,-28%

>> %WINDIR%\sysmon.log (
setlocal EnableDelayedExpansion

ECHO %DATE%-%TIME% "deploy.bat" Checking for Sysmon status

FOR /F "delims=" %%c IN ('sc query "Sysmon" ^| FIND /c "RUNNING"') DO (
    SET CHECK_SYSMON_RUNNIG=%%c
)
FOR /F "delims=" %%b IN ('c:\windows\sysmon.exe ^| FIND /c "System Monitor v13.01"') DO (
    SET CHECK_SYSMON_VERSION=%%b
)

if "!CHECK_SYSMON_RUNNIG!" == "1" (
    ECHO %DATE%-%TIME% Sysmon found, checking if it is version v13.01
    IF "!CHECK_SYSMON_VERSION!" == "1" (
        ECHO %DATE%-%TIME% Sysmon already up to date, exiting
        EXIT
    ) ELSE (
        ECHO %DATE%-%TIME% Sysmon binary is outdated, un-installing
        IF EXIST %WINDIR%\sysmon.exe (
            %WINDIR%\sysmon.exe -u
        )
    )
) ELSE (
    ECHO %DATE%-%TIME% Sysmon not found, proceding to install
    ECHO %DATE%-%TIME% Copying the latest config and install file
    COPY /z /y "%SPLUNKPATH%\etc\apps\TA-Sysmon-deploy\bin\config.xml" "C:\windows\"
    COPY /z /y "%SPLUNKPATH%\etc\apps\TA-Sysmon-deploy\bin\sysmon.exe" "C:\windows\"
    ECHO %DATE%-%TIME% Installing Sysmon
    "%SPLUNKPATH%\etc\apps\TA-Sysmon-deploy\bin\sysmon.exe" /accepteula -i c:\windows\config.xml | Find /c "Sysmon installed" 1>NUL
    ECHO %DATE%-%TIME% Install complete!
    powershell -Command "& {Restart-Service Splunkforwarder;}"
    EXIT
)
ECHO %DATE%-%TIME% Install failed
)

Doh, found this too late.
I ended up just adding two blocks of >> %WINDIR%\sysmon.log () in the script ensuring the FOR statements were not included in them.


Add Support for Other SQL Languages (Databricks, Spark)

Extending the scope of SQL Ops Studio to go beyond SQL Server to include emerging SQL-like technologies. I'd love the ability to connect to and execute queries against Databricks (Spark SQL), Hadoop Clusters, U-SQL, other open source databases.  Sure some of those are supported in VSCode, but the experience isn't as great as what you have created in SQL Ops Studio.

Closing older issues.  We provide an extensibility model that allows alternate data providers to be added if desired.  Thanks for the suggestion!


isr_tables: Simplify how the spurious irq function address is found

Instead of finding the address of the spurious irq function in the
intList section we now rely on the linker to find the address in the
_irq_spurious symbol.
This is a migration from using code generation to using the C language
which we in the general case we should aways strive towards.
In this specific case it makes the generated code 'irq_tables.c'
easier to read as we replace magic numbers with the &_irq_spurious
token.
Also, the path through the build system that _irq_spurious makes is
much shorter, so it is much easier for a user to understand how it is
used.
Signed-off-by: Sebastian Bøe<EMAIL_ADDRESS>

Codecov Report

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

@@           Coverage Diff           @@
##           master    #7574   +/-   ##
=======================================
  Coverage   55.25%   55.25%
=======================================
  Files         468      468
  Lines       51671    51671
  Branches     9895     9895
=======================================
  Hits        28550    28550
+ Misses      19208    19207    -1
- Partials     3913     3914    +1

Impacted Files
Coverage Δ

boards/posix/native_posix/timer_model.c
98.21% <0%> (-1.79%)
:arrow_down:

lib/posix/pthread.c
69.84% <0%> (+0.5%)
:arrow_up:

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 e2393a0...a71c766. Read the comment docs.

I also have a patch for sw_irq_handler, I can do that in a separate or PR or this one depending on the reviewers preference.
https://github.com/SebastianBoe/zephyr/commit/b4bd701a8c198200be2e2e1c524bc80f36691af4

@andrewboie , @nashif : This PR needs review.


bfgminer

I tried to run sudo add-apt-repository ppa:unit3/bfgminer and i get
'This PPA does not support xenial'
Cannot add PPA: ''This PPA does not support xenial''.
what can i do?

This is beyond the scope of this project or repo. Please look into installing BFGMiner on your Linux distro and then you should be able to use MultiMiner. BFGMiner comes with installation instructions. Or try searching for the error code you are receiving:

https://www.google.com/search?q=''This+PPA+does+not+support+xenial''


Add support for nan-euclidean distance measure

Add support for the nan-euclidean distance measure as available in sklearn's KNNImputer

@saurfang can you review this PR, thanks


Deploy Your Node.js App with the Cloud Foundry CLI

Tutorial URL: https://developers.sap.com/tutorials/cp-node-deploy-cf-cli.html
Please specify the step you are referring to
Step 1: On my Monsoon, I could not get the folder structure you depict in the tutorial. My 'node_modules' folder is always on the same level as the app folder.
Step 2: When I pushed the app, the push process download all the buildpacks. In the process, I get an error saying: "None of the buildpacks detected a compatible application
Exit status 222"
Error staging application: An app was not successfully detected by any available buildpack
TIP: Use 'cf buildpacks' to see a list of supported buildpacks.
FAILED
I did 'cf buildpacks' but it is not clear which buildpack (if at all) caused the issue.
Result: The app could be deployed, but it never starts and keeps on running. On SCP, it has the status Started, but I cannot call it to see the UI.

node_modules directory will be created on the level you have executed the npm install command.
npm install express in the myapp directory will also solve the buildpack problem. If not, please make sure that you execute cf push in the node_tutorial folder (where your manifest.yml is located).


Some theorems about anticompact

(T303) Anticompact + compact ==> finite
(T304) Anticompact + sigma-compact ==> countable
(T305) Anticompact + T1 ==> totally path disconnected

By contraposition, these theorems allow to automatically deduce that many extra spaces are not anticompact.

I was also wondering if anticompact T1 spaces are always totally disconnected.
It boils down to https://math.stackexchange.com/questions/4580731, which is not clear to me.


Lock Item Command Set Customizer

Q
A

Bug fix?
no

New feature?
no

New sample?
yes

Related issues?
no

What's in this Pull Request?
New sample - Lock Item Command Set Customizer

The sample illustrates the ability to lock/unlock selected item/document for the current user.
The lock is implemented as item's unique permissions set to Full Control for current user only.
The lock is available only for items that inherit permissions from the parent. Items with unique permissions can't be locked as we can't unlock them correctly later on.
All other permissions are deleted.
The Command is available only for users who have "Manage Permissions" permissions for the list/document library.

Thx Alex, this is a really great idea with a simple solution in the end, but great demo topic. Would you like to do a demo on this in the January monthly community call on 9th of January at 8 AM PT?

Hi Vesa,
Thanks for the quick merge.
Yes, I will do a demo with a great pleasure.

Thx Alex, I'll get you typical 10-15 min spot on the call. Have a great holiday and hopefully you'll have some time to relax during this time before we move to busy new year.

Thnaks Vesa,
Merry Christmas and Happy New Year to you as well!
Have great time during the holidays with the family!


Fix update loops in hosted cluster config operator

Before this commit, the CPO was not passing the enable-ci-debug-output
flag to the hosted cluster config operator, so we were not detecting
update loops in CI. There were a few items causing update loops.
This PR enables loop dection for the hosted cluster config operator and
fixes resources that were causing update loops.

Updated to address comments, also restored logging which we lost in the switch to a subcommand


[MM-24708] Added What's New modal for Channel Sidebar Phase 2 changes

Summary
Copy of https://github.com/mattermost/mattermost-webapp/pull/5711 that was closed due to the feature branch being deleted.
See there for details.
Ticket Link
https://mattermost.atlassian.net/browse/MM-24708

Awaiting the updated GIF (blocked on working out bugs with sidebar before we capture it)

@andrewbrown00 Here's the modal with the preview gif. How's it look?

Thanks @hmhealy, can you make the GIF wider to align to the right edge of the button; so the padding is equal on the left and right side of the GIF.
It’s fine if the modal get a bit taller.

I removed the fixed height from the image and made sure it scaled down properly on smaller screens.

Andrew pointed out that this opens up immediately when the user enables the sidebar from Account Settings. I'm going to see if there's a way to delay it until either the Account Settings closes or the user next refreshes. Ideally, we'd show it after the modal closes, but if there's no easy way to do that, then next refresh might be okay.

In testing queue.

Having the What's New modal appear over the Account Settings modal is a bit weird, but we've decided to leave it as-is for 5.26. We've filed a follow up to possibly change it in the future: https://mattermost.atlassian.net/browse/MM-27163

@devinbinnie
Error trying doing the automated Cherry picking. Please do this manually
+++ Updating remotes...
Fetching upstream
Fetching origin
+++ Updating remotes done...
+++ Creating local branch automated-cherry-pick-of-#5883-upstream-release-5.26-1595425446
Branch 'automated-cherry-pick-of-#5883-upstream-release-5.26-1595425446' set up to track remote branch 'release-5.26' from 'upstream'.
+++ Downloading patch to /tmp/5883.patch (in case you need to do this again)

+++ About to attempt cherry pick of PR. To reattempt:
  $ git am -3 /tmp/5883.patch

Applying: Genericized new modal design into component
Using index info to reconstruct a base tree...
M	i18n/en.json
Falling back to patching base and 3-way merge...
Auto-merging i18n/en.json
Applying: Architecture and functionality for What's New modal
Using index info to reconstruct a base tree...
M	i18n/en.json
Falling back to patching base and 3-way merge...
Auto-merging i18n/en.json
Applying: Added tests for generic modal and lint/type fixes
Applying: Styling of what's new modal
Using index info to reconstruct a base tree...
M	i18n/en.json
Falling back to patching base and 3-way merge...
Auto-merging i18n/en.json
Applying: Update redux to use new constants
Applying: Removed debug code
Applying: PR feedback
Applying: Bug fix and moved to ModalController
Using index info to reconstruct a base tree...
M	components/sidebar/index.ts
M	components/sidebar/sidebar.tsx
M	utils/constants.jsx
Falling back to patching base and 3-way merge...
Auto-merging utils/constants.jsx
Auto-merging components/sidebar/sidebar.tsx
Auto-merging components/sidebar/index.ts
CONFLICT (content): Merge conflict in components/sidebar/index.ts
Patch failed at 0008 Bug fix and moved to ModalController
Use 'git am --show-current-patch' to see the failed patch
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

+++ Conflicts detected:

UU components/sidebar/index.ts

+++ Aborting in-progress git am.

+++ Returning you to the master branch and cleaning up.

Manually cherry-picked onto release-5.26


Appstudio update test-component-pac-butn

Pipelines as Code configuration proposal

Pipelines as Code CI/test-component-pac-butn-on-pull-request has successfully validated your commit.

StatusDurationName

✅ Succeeded
7 seconds
init

✅ Succeeded
14 seconds
clone-repository

✅ Succeeded
31 seconds
build-container

✅ Succeeded
20 seconds
deprecated-base-image-check

✅ Succeeded
24 seconds
inspect-image

✅ Succeeded
4 minutes
clair-scan

✅ Succeeded
47 seconds
clamav-scan

✅ Succeeded
16 seconds
sbom-json-check

✅ Succeeded
1 minute
optional-label-check

✅ Succeeded
1 minute
label-check

✅ Succeeded
6 seconds
show-sbom

✅ Succeeded
7 seconds
show-summary

Pipelines as Code CI/test-component-pac-butn-on-pull-request has successfully validated your commit.

StatusDurationName

✅ Succeeded
7 seconds
init

✅ Succeeded
14 seconds
clone-repository

✅ Succeeded
31 seconds
build-container

✅ Succeeded
20 seconds
deprecated-base-image-check

✅ Succeeded
24 seconds
inspect-image

✅ Succeeded
47 seconds
clamav-scan

✅ Succeeded
4 minutes
clair-scan

✅ Succeeded
16 seconds
sbom-json-check

✅ Succeeded
1 minute
optional-label-check

✅ Succeeded
1 minute
label-check

✅ Succeeded
6 seconds
show-sbom

✅ Succeeded
7 seconds
show-summary

Pipelines as Code CI/test-component-pac-butn-on-pull-request has successfully validated your commit.


Modifications for caching the non-data buckets of bucket-tree state implementation

This PR includes

A performance stat collection utility that can help in narrowing to the functions that become bottleneck
code for caching non-data buckets of bucket-tree state implementation
changes in defaults for bucket-tree configs based on experiments.
@srderson - Please have a look and merge this.

<EMAIL_ADDRESS>

Correcting a typo in email id in the previous signed-off-by message.
<EMAIL_ADDRESS>

LGTM. Thanks!


fix: check for not available test before trying getting results

This will solve error:
Error executing luv callback:
...ck/packer/start/plenary.nvim/lua/plenary/async/async.lua:18: The coroutine failed with this message: ...ck/pa
cker/start/plenary.nvim/lua/plenary/async/async.lua:18: The coroutine failed with this message: ...ck/packer/sta
rt/plenary.nvim/lua/plenary/async/async.lua:18: The coroutine failed with this message: ...ck/packer/start/plena
ry.nvim/lua/plenary/async/async.lua:18: The coroutine failed with this message: .../pack/packer/start/neotest/lu
a/neotest/client/runner.lua:267: attempt to index a nil value
stack traceback:

Thanks for the fix!


Randomized/compressed SVD implementation

It provides an approximation of the true analytical SVD.
Using the subsampled Fourier or Hadamard transforms, instead of a Gaussian random matrix, would significantly improve the method's performance.
Should we create a function called 'thin_svd' that acts like the 'svd' function, providing a generic interface for alternative rank-k SVD implementations?

It provides an approximation of the true analytical SVD.

This is awesome by the way.  I should have stated that at the start before raising any comments.  Strictly awesome.

Using the subsampled Fourier or Hadamard transforms, instead of a Gaussian random matrix, would significantly improve the method's performance.

How can I help with this?

Should we create a function called 'thin_svd' that acts like the 'svd' function, providing a generic interface for alternative rank-k SVD implementations?

This is a good question.  One solution might be to not have svd at all but to have explicit svd_ts and svd_random or something.  I'm a bit afraid of setting the random algorithm by default without any warning about the approximate nature.  Users should probably always use the randomized algorithm but I want them to know that they're not getting exact results.  This requires some thought.

I have updated the docstrings and believe they are much clear now. Ready to merge?

I'll take another long look at this early tomorrow and probably merge then.  Thank you for doing this.

This looks good.  Merging.


Duplicate entry removed.

Hi @casperklein,
It seems you haven't yet signed a CLA. Please do so here.
Once you do that we will be able to review and accept this pull request.
Thanks!


Replace unique with bincount

This should save ~25% execution time (with --skip-slow).

There's a few conflicts


README: Added note about infra-ansible installation

What does this PR do?
Currently, when installing infra-ansible and some version of it already exists, this step is skipped. In order to install the newer version, the older one must be removed first. This should be mentioned in the provisioning README.
How should this be manually tested?
--
Is there a relevant Issue open for this?
--
Who would you like to review this?
cc: @tomassedovic @bogdando PTAL

Interesting, if an argument to do an update exists for the ansible-galaxy install

Interestingly, ansible-galaxy install has a -f option:
-f, --force           Force overwriting an existing role
The wording suggests it should update the roles but it doesn't.


Add offset for content

Hi,
I have a fixed navbar at the top of my page. My content is on the left and my scrollspy is on the right. When I click on an element in scrollspy, my content scrolls to the correct id but the top bit of it is hidden by my nav bar. Offset doesn't work because it only offsets the scrollspy list.
Any ideas?

Adding padding-top to my anchor element really messes with my design. Adds too much white space. Any suggestion? Can you add a topOffset which takes a value and use that value to scroll that many pixels away from the top of the window?

have you tried adding padding-top and negative margin-top? its worked quite well in a few cases for me. also find adding margin-bottom on items preceeding them eliminates overlap.

it's been a long time question, but I'm trying to help here.
I put the anchor on the section then hiding it with this stye
.anchor {   display: block;   position: relative;   visibility: hidden;   top: 100px; }
you can adjust the top both positive or negative value


Refactor FSM idx tracking during batch generation

As discussed in https://github.com/outlines-dev/outlines/issues/433, here is a proposal for removing the idx argument from the FSM interface, as well as the reset method, at the cost of adding a copy method. An FSM is initialized, then copied for each prompt during a SequenceGenerator.__call__() on a new batch. This solves the max_tokens issue, and cleans up state tracking for CFGFSM. The cost is overhead associated with building a new FSM object for each sequence in a batch. There are ways to reduce this cost by improving the new copy method, but wanted to get thoughts on the overall interface first.

I rebased on main and added a small commit to format docstrings, don't forget to pull locally :)

I think it makes sense to wait until #451 is merged so we can simplify the copy method as well.

Does this mean we don't need to pass the seq idx as the first argument in #481?

We pass the seq_idx to the vLLM logits processor to keep track of which FSM state corresponds to which sequence.

Should be up to date now post https://github.com/outlines-dev/outlines/pull/451 merge. I changed the copy method to return self as discussed for the (now) stateless FSMs.

Great! I’ll review shortly. Could you rebase the branch on main? I see a lot of commits that are not relates to this PR

Great! I’ll review shortly. Could you rebase the branch on main? I see a lot of commits that are not related to this PR

Sorry about that. Just rebased now, but had made a bit of a mess before when I pulled main into this branch since a lot had happened in between. If this is still too messy, I can open a new PR on a new branch and just apply the diff with main to make the history cleaner. Let me know preferences.

If this is still too messy, I can open a new PR on a new branch and just apply the diff with main to make the history cleaner. Let me know preferences.

Yes, I am sorry for the extra work but this would be preferable. In the future, use rebase instead of merge when you are working on a branch!

Moved and updated to https://github.com/outlines-dev/outlines/pull/510


Bevy support?

Is eframe required for GraphView to work? I'm trying to get this to work via bevy_egui - a central panel is created but I don't see a graph. I'll do some digging on my own but any additional info would be appreciated.

Seems to work on the basic example - problem must be on my end. Added an example:

Would appreciate some input on a very odd issue.
In the sample code I wrote above (that works) - the StableGraph is
generate_graph: StableGraph { Ty: "Directed", node_count: 2, edge_count: 1, edges: (0, 1), node weights: {0: Properties(Null), 1: Properties(Null)}, edge weights: {0: Properties(Null)}, free_node: NodeIndex(65535), free_edge: EdgeIndex(65535) }

In my personal code I create the stable graph async. Before creating the egui_graphs::Graph it looks like this:
on_graph_created: StableGraph { Ty: "Directed", node_count: 2, edge_count: 1, edges: (0, 1), node weights: {0: Properties(Null), 1: Properties(Null)}, edge weights: {0: Properties(Null)}, free_node: NodeIndex(65535), free_edge: EdgeIndex(65535) }

The two stable graphs are identical. After adding them to egui_graphs they're also identical
Sample code egui_graphs::Graph
graph: Graph { g: StableGraph { Ty: "Directed", node_count: 2, edge_count: 1, edges: (0, 1), node weights: {0: Node { id: Some(NodeIndex(0)), location: Some([61.0 168.6]), payload: Properties(Null), label: "0", selected: false, dragged: false }, 1: Node { id: Some(NodeIndex(1)), location: Some([87.7 239.0]), payload: Properties(Null), label: "1", selected: false, dragged: false }}, edge weights: {0: Edge { id: Some(EdgeID { idx: EdgeIndex(0), order: 0 }), payload: Properties(Null), selected: false }}, free_node: NodeIndex(65535), free_edge: EdgeIndex(65535) } }

My code that doesn't work egui_graphs::Graph
egui_graph: Graph { g: StableGraph { Ty: "Directed", node_count: 2, edge_count: 1, edges: (0, 1), node weights: {0: Node { id: Some(NodeIndex(0)), location: Some([37.3 145.3]), payload: Properties(Null), label: "0", selected: false, dragged: false }, 1: Node { id: Some(NodeIndex(1)), location: Some([220.9 31.1]), payload: Properties(Null), label: "1", selected: false, dragged: false }}, edge weights: {0: Edge { id: Some(EdgeID { idx: EdgeIndex(0), order: 0 }), payload: Properties(Null), selected: false }}, free_node: NodeIndex(65535), free_edge: EdgeIndex(65535) } }

However for my code a central panel appears but no graph appears. GraphView::new() is running every frame.
fn on_gen_map_button(
    mut commands: Commands,
    mut contexts: EguiContexts,
    mut gen_event_ew: EventWriter<GenEvent>,
) {
    let ctx = contexts.ctx_mut();

    egui::Window::new("grew_ui").show(ctx, |ui| {
        if ui.button("Generate Map").clicked() {
            let entity = commands.spawn(EguiGraph::default());

            let map_config = MapConfig { difficulty: 1 };

            gen_event_ew.send(GenEvent {
                entity: entity.id(),
                kind: GenKind::Map(map_config),
            });
        }
    });
}

fn graph_update(mut contexts: EguiContexts, mut q_egui_graph: Query<&mut EguiGraph>) {
    let ctx = contexts.ctx_mut();

    if let Ok(mut egui_graph) = q_egui_graph.get_single_mut() {
        println!("egui_graph: {:?}", egui_graph.0);

        egui::CentralPanel::default().show(ctx, |ui| {
            ui.add(&mut GraphView::<
                _,
                _,
                _,
                _,
                egui_graphs::DefaultNodeShape,
                egui_graphs::DefaultEdgeShape<_>,
            >::new(&mut egui_graph.0));
        });
    }
}

fn on_graph_created(mut q_graphs: Query<(&mut EguiGraph, &DiGraph), Added<DiGraph>>) {
    for (mut egui_graph, digraph) in q_graphs.iter_mut() {
        println!("on_graph_created: {:?}", digraph.0);

        egui_graph.0 = egui_graphs::Graph::from(&digraph.0);
    }
}

Any ideas?

Is this issue only with GraphView widget? Have you tried with any other egui widgets? Like buttons or labels?

Try initializing GraphView with navigation settings and set fit_to_screen_enabled to false.

        ui.add(
            &mut GraphView::<_, _, _, _, DefaultNodeShape, DefaultEdgeShape<_>>::new(
                &mut graph_provider.g,
            )
            .with_navigations(
                &SettingsNavigation::default()
                    .with_fit_to_screen_enabled(false)
                    .with_zoom_and_pan_enabled(true),
            ),
        )

There is a know issue #116 which can cause automatic fit_to_screen to perform bad if the root ui is relative.

I also added example with multiple panels #125, you can play with it to check the behavior

Issue is particularly bad if you initialize egui_graphs::Graph to StableGraph::default() and then update it to another value afterwards. I wasn't able to find where the graph was no matter how much zooming/panning I did - even though the position values look reasonable.
Take your time - setting the initial value to some simple graph works okay as a workaround for now.

Bevy support seems to work out of the box - closing this and opening: https://github.com/blitzarx1/egui_graphs/issues/127 for the specific bug I ran into


Missing German translation

Microsoft PowerToys version
0.56.2
Utility with translation issue
Settings
🌐 Language affected
German
❌ Actual phrase(s)
Settings of Powertoys Run
(see screenshot for missing translation)

✔ Expected phrase(s)
German translation
ℹ Why is the current translation wrong
Missing translation

/dup #16675


How to change first backround view

Hi! I need to change the first view when the drawer loads (and the user still hasn't selected any tab or even open the drawer menu). It depends on the view the menu loads, i.e.: if I load login, then the profile should appear and the drawer should be available. How can I do it so it shows the profile and not a white screen? Thank you very much and excelent job with this framework.

@dtilve Hi! Please try this sample to the reference
Sample 2.zip


Cannot download snapshot/clip on mobile devices

I am running Home Assistant Version 2021.12.7, supervisor version 2021.12.2 and Frigate NVR (Full Access) version 2.3. On Android Version 12 running the Home Assistant App version 2021.12.3-full, I am unable to download clips or snapshots that Frigate has tagged as an event. Clicking the "Download Clip" and "Download Snapshot" button yields no result.
I am also able to replicate this same behavior on an IOS device running IOS version 15.2 and app version 2021.12.1.
On the Android side, I have allowed the "Files and Media" permission for the app. When connecting my phone to my computer and opening a logging session, there are no exceptions thrown from the Home Assistant app. Additionally, there are no error logs in the add-on section of Home Assistant.
Configuration
mqtt:
  host: 192.168.x.x

detectors:
  coral:
    type: edgetpu
    device: usb

snapshots:
  enabled: True
  timestamp: False
  bounding_box: True

record:
  enabled: True
  retain_days: 0
  events:
    max_seconds: 300
    pre_capture: 2
    post_capture: 2

ffmpeg:
  hwaccel_args:
    - -hwaccel
    - vaapi
    - -hwaccel_device
    - /dev/dri/renderD128
    - -hwaccel_output_format
    - yuv420p

rtmp:
  enabled: False

objects:
  track:
    - person
    - car

cameras:
  camera1:
    ffmpeg:
      inputs:
        - path: rtsp://foo:bar@192.168.x.x:554/cam/realmonitor?channel=1&subtype=0
          roles:
            - record
        - path: rtsp://foo:bar92.168.x.x:554/cam/realmonitor?channel=1&subtype=1
          roles:
            - detect
    detect:
      width: 720
      height: 576
      fps: 15

  camera2:
    ffmpeg:
      inputs:
        - path: rtsp://foo:bar@192.168.x.y:554/cam/realmonitor?channel=1&subtype=0
          roles:
            - record
        - path: rtsp://foo:bar@192.168.x.y:554/cam/realmonitor?channel=1&subtype=1
          roles:
            - detect
    detect:
      width: 704
      height: 480
      fps: 15

To clarify, when you say download, do you mean from the Frigate UI or perhaps from the Frigate Card? If the latter, this is a known issue (https://github.com/dermotduffy/frigate-hass-card/issues/241) and I hope to work on it in advance of the next build.

Download from the Frigate UI, I haven't added the Frigate card to my HomeAssistant install as of yet.

OK -- bug is in the wrong repo then, try: https://github.com/blakeblackshear/frigate/issues
This is the repo for the Home Assistant integration for Frigate, not Frigate itself.


Add build for arm

Related to:

openebs/openebs#1295

This PR modify the Makefile to determime the arch and os.
And add Dockerfile_build_arm64 and Dockerfile_build_amd64
to support build for arm64 arch.
Signed-off-by: wangzihao<EMAIL_ADDRESS>

@Wangzihao18 i missed one more thing that is, we have to make changes in scripts/build_binaries also where we can provide build tags GOARCH GOOS=linux GOARM=5 to go build for cross compilation of the jiva binary.

@Wangzihao18 i missed one more thing that is, we have to make changes in scripts/build_binaries also where we can provide build tags env GOARCH=arm GOOS=linux GOARM=5 to go build for cross compilation of the jiva binary. We need not to have same environment for different os architecture, go compiler can build binaries for other architectures as well.

@utkarshmani1997 , I am not very familiar with cross compilation now. I will learn and implement it. Could I finish this PR first and raise a new PR to work on cross compilation ?

Thanks!!! @kmova . I'm happy to  make my first contribution to the community!!! : )


How to configure for REST to ES on AWS?

Placing my ES AWS instance endpoint (with port 80) in the hosts array of plastic php and running
php artisan mapping:run
results in:

[Elasticsearch\Common\Exceptions\Missing404Exception]
{"error":"IndexMissingException[[plastic] missing]","status":404}

Is this a supported use case, or am I just doing it wrong?

Please, how did you fixed this, @capitaladot ?

this isn't an AWS issue it clearly indicates that the index plastic is not created

No, I found out the problem was with the core of plastic: elasticsearch-php
that enforces port 9200 if none specified.
After a lot of time, I set up with port 443 (ssl default) and it did the
trick.
Em sex, 6 de abr de 2018 09:30, Sleiman Sleiman<EMAIL_ADDRESS>escreveu:

this isn't an AWS issue it clearly indicates that the index plastic is not
created
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/sleimanx2/plastic/issues/8#issuecomment-379238557,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF2gg3yXkadZkhOGCITYL1iKDMGaaEUAks5tl1_igaJpZM4I4f4L
.


document.getElementsByTagName returns large number of undefined tags and can't search by name attribute

Are you requesting a feature or reporting a bug?
Bug
What is the current behavior?
When executing through the testcafe browser, using document.getElementsByTagName() returns tags that match but also returns up to another 10000 tags that are undefined when you click them in the javascript console.
More over, searching for a specific tag using syntax similar to this
document.getElementsByTagName('meta')['csrf-token'];

will return undefined despite the tag existing in the DOM.
Example:

document.getElementsByTagName('body') returns 10000 tags, most undefined
document.getElementsByTagName('meta')['csrf-token'] returns undefined

What is the expected behavior?
Expected behavior is that only the elements that match by tag name will be returned and none that are simply undefined
How would you reproduce the current behavior (if this is a bug)?
1.) Fire off a test against any website (tested in Chrome, Safari, Firefox)
2.) Put in a t.debug() command in the test
3.) Open developer tools after debug trips
4.) Open javascript console
5.) run - document.getElementsByTagName('body')
6.) 10000 tags will be returned and only 1, the actual body tag, will be defined
7.) run - document.getElementsByTagName('meta')['viewport']
8.) Expect to get the meta tag containing viewport info but instead get undefined
Provide the test code and the tested page URL (if applicable)
Tested page URL: Can confirm against any site
Test code
Only test code needed is a t.debug() after loading the page in the fixture
Specify your

operating system: High Sierra 10.13.4
testcafe version: 0.20.5
node.js version: v8.9.0

Hi @andrewlw89,
This issue related to https://github.com/DevExpress/testcafe-hammerhead/issues/1376.

Hey @LavrovArtem,
Thanks for linking that issue. They definitely seem similar.
At first glance, it looks to me like an error in how the namedItem() method is being implemented for the wrappers that go around the native selector methods. (https://github.com/DevExpress/testcafe-hammerhead/blob/master/src/client/sandbox/node/live-node-list/wrapper.js)[here]. That would normally allow for this lookup by string rather than by index.
I was wondering if you might be able to provide an update into the issue you linked to above and where it stands with regards to a solution. I'm currently looking into this issue as well and would be happy to offer some sort of collaboration with you guys if that would help reach a solution.
Thanks!

@LavrovArtem while playing around with this, it looks like testcafe already supports using namedItem with standard dot notation. I believe the main issue here is that bracket syntax was never implemented.
Example 1 (works): document.getElementsByTagName('meta').namedItem('csrf-token')
Example 2 (fails): document.getElementsByTagName('meta')['csrf-token']
The bottom syntax should work identical to the top but returns undefined instead.

@andrewlw89
Thank you for your research. We are going to fix this issue in the next release.

Fixed in https://github.com/DevExpress/testcafe/pull/2779


Migrate wagmi V1 -> V2

Wevm recently released their new versions of Wagmi and Viem and now incl. tanstack as a peer dependency.
We should migrate from V1 to V2, following their guide at
https://wagmi.sh/react/guides/migrate-from-v1-to-v2

Sure! Good suggestion. Just added it
https://github.com/wslyvh/nexth/commit/085ff20906d79d02bc645ef3b23b0bc261eac072

Upgraded at https://github.com/wslyvh/nexth/commit/f642fa1402d7561079de758a65f6082e7c099481
Web3Modal 4 is still in alpha, so might still have some issues. But initial tests looked good.


Handle class declarations without names in Extract Symbol

Fixes #21816

@mhegazy This has a low hit-count but a trivial fix.  Shall I port it to 2.7?


Unable to use Live Share

Issue Type: Bug
Visual Studio Live Share was unable to download needed dependencies to finish installation. Ensure you have network connectivity and restart VS Code to retry.
VS code show that message everytime i start using
Extension version: 1.0.1375
VS Code version: Code 1.40.2 (f359dd69833dd8800b54d458f6d37ab7c78df520, 2019-11-25T14:54:45.096Z)
OS version: Windows_NT x64 10.0.18362

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-6300HQ CPU @ 2.30GHz (4 x 2304)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: disabled_offprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_offsurface_control: disabled_offsurface_synchronization: enabled_onvideo_decode: enabledviz_display_compositor: enabled_onviz_hit_test_surface_layer: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
11.90GB (6.43GB free)

Process Argv

Screen Reader
no

VM
0%

Apologies for the inconvenience caused here. Could you please share your logs with us using the following steps:
Go to the command pallete ctrl +shift +p
Type in Live Share: Export Logs
Attach them to your issue

Same here,
Please find attached log files:
vs_live_share_logs.zip

I can not export my logs for #3100.
I recived this message when running the command
command 'liveshare.exportLogs' not found

For some reason, changing my date locale from en_IN to en_CA fixed the issue.


Audiostream: Kernel is not playing audiostream at the beginning

If you set an audio stream to play, the renderer is sending the message to play a stream but kernel is not playing the stream

Does this also happen with ECS6?


#1101 Added a button to grab the publish url of a published asset.

Changes Unknown when pulling 51d99520b0d1d8db1eb3e0943ac4f252ee728ae7 on kunalgaba:feature-grab-publish-url into ** on Adobe-Consulting-Services:master**.

Changes Unknown when pulling 61a50fcf19910122114cabcf345dc88e81ee2d19 on kunalgaba:feature-grab-publish-url into ** on Adobe-Consulting-Services:master**.

Changes Unknown when pulling 175644e7caee263145a97394cf37afb3a6771e0c on kunalgaba:feature-grab-publish-url into ** on Adobe-Consulting-Services:master**.

Thanks for making all of these changes.

Merged with a few changes, mostly formatting and minor renaming.
The two significant changes:

Removed the ConfiguredFeature config. This will have to be done as an opt-in (and needs to be documented).
Removed the exclusion for the iPad showing the copy button and instead am hiding the button based on browser capability.


Why SMBIOS_060?

For SMBIOS_060, if the RISC-V BRS specification isn't going to recommend any specific strings be in this structure, then why is the existence of this structure recommended?  Would SMBIOS_060 be satisfied with an OEM Strings structure that has the Count field set to zero, for no strings?  If so, then what's the point?  If not, then what does the BRS specification intend the OEM Strings structure to contain?

https://github.com/riscv-non-isa/riscv-brs/pull/194


Rspamd test

Changes proposed in this pull request:

fix cfg path error for timeout setting
adds basic tests

Checklist:

[x] tests updated

Current coverage is 35.83% (diff: 100%)

Merging #1 into fixwarning will not change coverage

@@           fixwarning         #1   diff @@
============================================
  Files              26         26
  Lines            6541       6541
  Methods           849        849
  Messages            0          0
  Branches         1706       1706
============================================
  Hits             2344       2344
  Misses           4197       4197
  Partials            0          0

Powered by Codecov. Last update ef7bb15...1108e62

Thank you very much. :)


Add new theme to the project

Open index.html and add your own theme in the list using the same format and including a data-theme. You can search fontawesome icons to add the name of your icon.

Move to the themes.css to style your theme using the data-theme. Forexample

Optional. You can style the darkmode of your theme also by moving to the darkmode.css and follow same pattern as other themes.

Go ahead @sayan404

i want to add a new theme

Hi @ritika21-code I really appreciate your contributions but this project actually only allows one pull request per person. There are also other amazing projects you can work on
Here is one https://github.com/Emilance/Javascript-Calculator-App or check through the issues page for good first issue projects.


update docs and increment version

Sorry coming late...
Should this have a github release as well?

No problem. Yes there should already be one. Is there not?

I see 15.3.1 but no 15.2.0 (which I assume is this version?)

Oh there are mini references to 15.2.0 and 15.3.0 in the Releases tab.  Not sure why they're different than other releases.  Does that mean they have a tag, but were not specifically added as a "Release"?

I pushed a tag directly but didn't make the release through github.

Does that mean they have a tag, but were not specifically added as a "Release"?

Looks like that is the case.


Added CI to use GitHub actions to build and run tests

Added CI to use GitHub actions to build and run tests. This project can take advantage of GitHub's runners whenever there is a push event. What's nice too is it will build and run tests on MacOS, Windows, and Linux using the latest Java 16 that supports records.

Thank you very much for your code contribution!


Extending api.Machine with needed properties

Summary
This issue captures the efforts to extend the API machine object and the corresponding reconciler changes. The proposals and changes can be discussed in this issue.

I propose introducing CpuInfo and MemoryInfo structs to encapsulate CPU and memory configurations, respectively. The extended MachineSpec struct would look like this:
type MachineSpec struct {
	...
     CpuInfo              *CpuInfo
    MemoryInfo        *MemoryInfo
    SgxEnabled         bool
	...
}

type CpuInfo struct {
    CpuMillis          int64
    CpuPins           map[int]int
    BlockCpus       []int
    VCPUAllocationRatio    float64
}

type MemoryInfo struct {
    MemoryBytes         int64
    NumaNodes            []int
    NumaDomain          int
    EnableHugepages     bool
    BlockedHugePages     uint64
}

Below is a brief about these changes:
CpuInfo

CpuMillis (int64): Represents the CPU time allocated to the virtual machine, measured in milliseconds.
CpuPins (map[int]int): Specifies a mapping of virtual CPUs to physical CPUs. Using a map allows for a direct and efficient mapping of vCPUs to pCPUs.
BlockCpus ([]int): Indicates a list of CPU cores that are blocked or unavailable for use by the virtual machine. Using a slice allows for easy management of blocked CPU cores.
VCPUAllocationRatio (float64): Specifies the ratio of vCPUs to pCPUs that should be allocated for the virtual machine. Using a float64 allows for decimal values, providing flexibility in specifying the allocation ratio.

MemoryInfo

MemoryBytes (int64): Represents the amount of memory allocated to the virtual machine, measured in bytes.
NumaNodes ([]int): Specifies the NUMA nodes to which the virtual machine should be assigned. Using a slice allows for easy assignment of NUMA nodes.
NumaDomain (int): Indicates the NUMA domain to which the virtual machine belongs. Using an integer allows for straightforward representation of the NUMA domain.
EnableHugepages (bool): Specifies whether hugepages are enabled for the virtual machine. Using a bool allows for a simple representation of the hugepages status.
BlockedHugePages (uint64): Represents the number of hugepages that are blocked or unavailable for use. Using a uint64 allows for specifying a specific number of blocked hugepages.

SgxEnabled (bool)

SgxEnabled (bool): Indicates whether SGX is enabled for the virtual machine. Using a bool allows for a simple representation of the SGX status.

These changes improve the readability, maintainability, and flexibility of the MachineSpec struct, allowing for more granular control over the configuration of virtual machines.

Why do you need VCUAllocationRatio, BlockedHugepages and BlockedCPUs in machine spec? It is important for resource manager only for my point of view.

Do you need NumaDomain? Isn't it len(NumaNodes)?

network cards and storage can be resources too which ideally will manage by resource manager too. Could you think maybe how we can implement it too?

what do you think about use resource.Quantity type? https://github.com/ironcore-dev/ironcore/blob/main/api/core/v1alpha1/resource.go

How about the following. In the spec I have the possibility to assign a NUMA topoligy like this. If it is empty it is ignored (in case NUMA pinning is disabled) or a Scheduler/Resource Manager ensures that it is correctly filled later.
type MachineSpec struct {
	// Existing fields...

	NUMAPreferences NUMAPreferences `json:"numaPreferences,omitempty"`
}

type NUMAPreferences struct {
	CPUNodes    []int `json:"cpuNodes,omitempty"`
	MemoryNodes []int `json:"memoryNodes,omitempty"`
	IoNodes     []int `json:"ioNodes,omitempty"`
}

And in the Status you can update the information once the placement has been fulfilled.
type MachineStatus struct {
	// Existing fields...

	NUMAPlacement NUMAPlacement `json:"numaPlacement,omitempty"`
}

type NUMAPlacement struct {
	CPUNodes    []int `json:"cpuNodes"`
	MemoryNodes []int `json:"memoryNodes"`
	IoNodes     []int `json:"ioNodes"`
}


MacOS: realpath not found

Description
The realpath command does not exist on MacOs.
Commit bb8ddd6c1247fde230a60c662a318422df52516e uses realpath instead of readlink.
Changing this in ./scripts/packager.sh resolved this issue for me (MacOs Montery, Silicon M1):
THIS_DIR=$(cd -P "$(dirname "$(readlink -f "${BASH_SOURCE[0]}" || echo "${BASH_SOURCE[0]}")")" && pwd)
where realpath is replaced by readlink -f
NOTE:  readlink appears to be the more modern and more widely supported replacement for realpath
Version
0.69.1
Output of npx react-native info
System:
OS: macOS 12.4
CPU: (8) arm64 Apple M1
Memory: 104.45 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.15.1 - ~/.nvm/versions/node/v16.15.1/bin/node
Yarn: 1.22.18 - ~/Library/pnpm/yarn
npm: 8.13.2 - ~/Development/app/node_modules/.bin/npm
Watchman: 2<IP_ADDRESS> - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
Android SDK:
API Levels: 28, 29, 31, 32, 33
Build Tools: 28.0.3, 29.0.2, 30.0.3, 31.0.0, 32.0.0, 33.0.0
System Images: android-29 | ARM 64 v8a, android-29 | Google APIs ARM 64 v8a, android-29 | Google Play ARM 64 v8a, android-31 | ARM 64 v8a, android-31 | Google APIs ARM 64 v8a, android-31 | Google Play ARM 64 v8a, android-32 | Google APIs ARM 64 v8a, android-32 | Google Play ARM 64 v8a, android-33 | Google APIs ARM 64 v8a, android-33 | Google Play ARM 64 v8a
Android NDK: 22.1.7171670
IDEs:
Android Studio: 2021.2 AI-212.5712.43.2112.8609683
Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
Languages:
Java: 11.0.15 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: ^18.2.0 => 18.2.0
react-native: ^0.69.0 => 0.69.1
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
Run the Android debug build command on Mac Os:
npm run android
Watch the debugger terminal, the top line shows an error realpath not found
Snack, code example, screenshot, or link to a repository
Users/***/node_modules/react-native/scripts/packager.sh: line 8: realpath: command not found
                    #######
               ################
            #########     #########
        #########             ##########
    #########        ######        #########
   ##########################################
  #####      #####################       #####
  #####          ##############          #####
  #####    ###       ######       ###    #####
  #####    #######            #######    #####
  #####    ###########    ###########    #####
  #####    ##########################    #####
  #####    ##########################    #####
  #####      ######################     ######
   ######        #############        #######
     #########        ####       #########
          #########          #########
              ######### #########
                   #########

                Welcome to Metro!
          Fast - Scalable - Integrated

To reload the app press "r"
To open developer menu press "d"

Same

same

I'm having the same issue

Same

same 😭

I fixed the issue you need to install coreutils
brew install coreutils

Make sure to clearn build folder (Product -> Clean Build Folder)

I fixed the issue you need to install coreutils
brew install coreutils

Make sure to clearn build folder (Product -> Clean Build Folder)

Sorry but that is patching the problem by installing a backward compatibility shim for pre-2000 state
While this commit bb8ddd6c1247fde230a60c662a318422df52516e explicitly removes the current cross-platform command. Just why?

Same, version 0.69.3

While this commit bb8ddd6 explicitly removes the current cross-platform command. Just why?

To provide context here: readlink didn't work with the new build setup we have internally. Every occurrence of readlink was replaced with realpath with a search-n-replace inside https://github.com/facebook/react-native/commit/bb8ddd6c1247fde230a60c662a318422df52516e
If you list the usages that needs to be reverted back, we can address them 👍

same 😭😭

same, version 0.70.1

Same on MacOS 12.6, node v12.16.3, react-native 0.70.1
`Node found at: /usr/local/bin/node
/Users/mac/Documents/Projects/puertomap/node_modules/react-native/scripts/packager.sh: line 8: realpath: command not found
/Users/mac/Documents/Projects/puertomap/node_modules/@react-native-community/cli/build/index.js:156
cmd.option(opt.name, opt.description ?? '', opt.parse || (val => val), typeof opt.default === 'function' ? opt.default(rest[0]) : opt.default);
^
SyntaxError: Unexpected token '?'
at wrapSafe (internal/modules/cjs/loader.js:1047:16)
at Module._compile (internal/modules/cjs/loader.js:1097:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)
at Module.load (internal/modules/cjs/loader.js:977:32)
at Function.Module._load (internal/modules/cjs/loader.js:877:14)
at Module.require (internal/modules/cjs/loader.js:1019:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object. (/Users/mac/Documents/Projects/puertomap/node_modules/react-native/cli.js:13:11)
at Module._compile (internal/modules/cjs/loader.js:1133:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)
Process terminated. Press  to close the window`

Same on MacOS 12.6, node v12.16.3, react-native 0.70.1

Quick heads up that node 12 is not supported by React Native. Min version is 14.
Also @zheoreh, are you invoking ./scripts/packager.sh directly or using another command?

@cortinico I just run react-native run-android && (npm run adb || true) && npm run log-android and it automatically open a new terminal and starts metro. In some way I was able to get node version within that terminal and it was node 12 but I use nvm and default version of node is v16.15.0. I don't know why it uses /usr/local/bin/node instead of /Users/mac/.nvm/versions/node/v16.15.0/bin/node. If I start metro myself then everything is ok.

I'm more concerned that you see ./scripts/packager.sh in your stacktrace:
/Users/mac/Documents/Projects/puertomap/node_modules/react-native/scripts/packager.sh: line 8: realpath: command not found

Which is a script that is internal to React Native and you should not be calling. I'm wondering why it's there.

same😭😭

brew install coreutils solves my issue. 🎉

brew install coreutils fixed but issue too, but right after having cleaned and rebuilt my project from xcode xcworkspace. To answer @cortinico's question, in my case I was experiencing this issue in a react native project of my own.

@cortinico  It seems it is fixed in this commit: https://github.com/facebook/react-native/pull/34145
Apple removes stuff and break things. We need to use latest version of React Native or brew install coreutils.

brew install coreutils solves my issue. 🎉

I'm going to close this issue as brew install coreutils seems to be the valid answer.
I still have a couple of open questions:
1. Are you folks experiencing this in your own project or by cloning react-native?

2. Is this happening in a vanilla project or not?

We might need to either:
1. Update the docs to suggest `brew install coreutils` to everyone

2. Update the offending script to remove `realpath`.

I would need further context to understand what's the follow up here.

This is not a good solution. This tool set has other tools, and it has the same name as the mac system's built-in tools, which can cause more problems if you set environment variables. bug makers can use a snack. Fix the problem the right way, not with this flaky patch.
'brew install coreutils' After installation, environment variables need to be set
PATH="/opt/homebrew/opt/coreutils/libexec/gnubin:$PATH
Many commands have the same name. For example, 'ln' 'mv'.

I suggest using the command realpath -> readlink -f instead.

Just bumped into this in an expo bare project. Hmph.

Just to re-iterate, this is fixed in 0.71 (at least for the packager.sh script).

@cortinico I just run react-native run-android && (npm run adb || true) && npm run log-android and it automatically open a new terminal and starts metro. In some way I was able to get node version within that terminal and it was node 12 but I use nvm and default version of node is v16.15.0. I don't know why it uses /usr/local/bin/node instead of /Users/mac/.nvm/versions/node/v16.15.0/bin/node.
% node -v
v16.15.0
% which node
/Users/mac/.nvm/versions/node/v16.15.0/bin/node

If I start metro myself then everything is ok.

For anyone struggling with this, I found out that the realpath: command not found might not be the root cause of your Metro not being able to start. The reason it's not starting is probably because you have multiple installations of npm/yarn, as mentioned in this issue. Following the steps from that same comment to uninstall and reinstall them resolved my problem. (I still see the realpath: command not found when running react-native run-ios, but Metro startup no longer breaks, and works normally)

same


Update for v0.991.0 release

$subject.

@hevayo  Please add a README.md for https://github.com/ballerina-platform/ballerina-lang/tree/master/misc/swagger-ballerina/modules/ballerina-code-generator).
This needs to be linked from this page. It was pointing to an non-existing older swagger tool page.

@madhuramendis  The "Edit in GitHub" link in https://ballerina.io/learn/tools-ides-ballerina-composer/index.html needs to be fixed to point to "https://github.com/ballerina-platform/ballerina-www/blob/master/website/two-column-pages/docs/learn/tools-ides.md"

@lafernando fixed the swagger issue with https://github.com/ballerina-platform/ballerina-www/pull/1413


Wrong word 'not'?

Quote from above: "Whether the project is executable or not is determined by the <OutputType> property in the project file."
Yet immediately afterwards an example is given showing that it is determined by the <OutputType> (or at least suggested to be).

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

ID: 910cd365-d63a-00dc-417c-db017f83bf6f
Version Independent ID: 5e495ddd-140e-de5c-a793-d4a9f88be51e
Content: dotnet build command - .NET Core CLI
Content Source: docs/core/tools/dotnet-build.md
Product: dotnet-core
Technology: dotnet-cli
GitHub Login: @tdykstra
Microsoft Alias: tdykstra

The example is executable because the OutputType is Exe. So, you look at the OutputType value. Then, based on that value, you determine whether it's executable or not.
That means, if you found something like:
<OutputType>Library</OutputType>

then it's not executable. But, if you found:
<OutputType>Exe</OutputType>

then it is executable.

Thanks for contacting us. We believe that the question you've raised has been answered. If you still feel a need to continue the discussion, feel free to reopen it and add your comments.


static_buffer producer/consumer use case

I wanted to share a use case I got bit on, as I think it could use some further discussion.
Background: my use-case is somewhat like a proxy, where I am using some DynamicBuffer in a producer/consumer-type fashion.  I can have an async operation reading data into a prepare()'d part of the buffer, while at the same time doing an async write out of data() in a different part of the buffer.  Having a bounded buffer usage is important to this application, and Beast's ability to do flow control is one of the reasons I chose it - thanks for your work!
I had originally chosen a static_buffer, described in the docs as a circular buffer, as a good fit for this use case.  But I ended up with corrupted data passing through.  I've switched to multi_buffer as a workaround in the meantime.  Looking through the beast code, I found the following in static_buffer_base:
inline
void
static_buffer_base::
consume(std::size_t size)
{
    if(size < in_size_)
    {
        in_off_ = (in_off_ + size) % capacity_;
        in_size_ -= size;
    }
    else
    {
        // rewind the offset, so the next call to prepare
        // can have a longer continguous segment. this helps
        // algorithms optimized for larger buffesr.
        in_off_ = 0;
        in_size_ = 0;
    }
}

Looks like consuming can invalidate buffers previously prepare()'d but not commit()'ted.
I have several suggestions to consider:

At the very least, the documentation for static_buffer methods should describe when other buffers are invalidated.  I see this was done for flat_buffer, but I also notice it missing for flat_static_buffer.  More general, I think it would be good to add a section of documentation summarizing the differences in the different buffer types, so that users can answer the question, "Which buffer should I use?"  I know it would have saved me some time.

We should next reconsider whether the optimization in static_buffer_base::consume() is worth excluding the producer/consumer use case.  You'll still return a max of only two buffers, and if a single contiguous buffer is really that important to one's use case, they should use flat_static_buffer.  Also, it's not easy to derive your own class either since this is in the "base".

Renaming static_buffer to circular_static_buffer would help contrast it with the flat*_buffers.  Then there could be a corresponding circular_buffer with runtime size to round out the options (I'd use this one).  I realize this would be an API change so this is a lower priority suggestion.

The DynamicBuffer requirements already specify that all sequences are invalidated on any call to prepare or consume:
http://www.boost.org/doc/libs/develop/libs/beast/doc/html/beast/concepts/DynamicBuffer.html
This is not something I can change, as the concept comes from [networking.ts]. However, I can make this clear by repeating it in the reference for each dynamic buffer member function (see https://github.com/boostorg/beast/issues/792).
Perhaps this might help, there is already an example of an HTTP relay in the documentation:
http://www.boost.org/doc/libs/develop/libs/beast/doc/html/beast/more_examples/http_relay.html
The documentation already has a page outlining the differences between dynamic buffer implementations, see:
http://www.boost.org/doc/libs/develop/libs/beast/doc/html/beast/using_io/buffer_types.html
The optimization in static_buffer_base is definitely worth it, because the websocket implementation depends on it. Although maybe I can change it. Still, that won't help you because of the possibility that the returned buffer sequences become invalidated on prepare or consume.

Thanks for the pointers.  I probably did at first read the "Buffer Types" and "DynamicBuffer Requirements" but it must not have sunk in by the time I was looking at the concrete implementations' docs.   My bad.  Thanks for at least opening the issue #792 to make it evident everywhere.
The HTTP relay example is synchronous, which won't have the problem of multiple actions on the buffer at once.  If you wrote that example to be asynchronous to handle large streaming bodies, you might see the same problem.   (I suppose you could wait for the async write to be done before beginning the next async read, but that would be slightly less efficient than overlapping the read and write if you could).
My case is a little more involved to make that parenthesized option infeasible, but without getting deep into my details, I think one answer is to write my own circular_buffer that can place additional guarantees to allow what I want.   It's all internal use so I don't see any conflicts.
Since static_buffer is so close, I thought I'd make sure it was intended that way.  Sounds like it is so we can close this issue.

I think one answer is to write my own circular_buffer that can place additional guarantees to allow what I want

Yep, that's the preferred solution and also the one I had in mind when I wrote the library. It was always the intent of Beast to work with custom dynamic buffer implementations, that's why beast provides the trait and the documentation (which will be discarded once net-ts asio is updated, which has its own traits and documentation for the DynamicBuffer concept).

Hello
I have a related newbie question.. I am aiming for concurrent asynchronous read/writes to a websocket. Right now I use one multi_buffer for this task, but I also get corrupted data, written data ending up among the read data.
Is it better/possible to use two buffers instead, one for the incoming websocket data, and another for outgoing websocket data? How would you do it...
For the future, please consider to extend the (very good) examples so they not only echo incoming data, but allow asynch read/write at the same time. Perhaps pointing out if it is possible/good to use a single buffer, or not.
Do you know if there are any compiler debug options I can set to be able to debug the buffer content in a good way? (Showing prepared space, committed, etc.)
I tried "-DBOOST_ASIO_ENABLE_BUFFER_DEBUGGING" but not sure it was the best one...
Thank you very much
/Peter

You can't use the same dynamic buffer for both reading and writing concurrently. Declare a second instance of multi_buffer and use that.

Do you know if there are any compiler debug options I can set to be able to debug the buffer content in a good way? (Showing prepared space, committed, etc.)

Hmm... there are no facilities to do that. It isn't something that is commonly done. Dynamic buffers just work (when used correctly).

I tried "-DBOOST_ASIO_ENABLE_BUFFER_DEBUGGING" but not sure it was the best one...

That enables Asio's run-time checks on buffer sequences, not dynamic buffers.

Thank you Vinnie. All works well now!


Private attributes cannot be excluded in copy(...)

Checks

[✅] I added a descriptive title to this issue
[✅] I have searched (google, github) for similar issues and couldn't find anything
[✅] I have read and followed the docs and still think this is a bug

Bug
Output of python -c "import pydantic.utils; print(pydantic.utils.version_info())":
             pydantic version: 1.8.2
            pydantic compiled: True
                 install path: /Users/yc/.local/share/virtualenvs/botmd-chatterbox-jckBdoKN/lib/python3.7/site-packages/pydantic
               python version: 3.7.7 (default, Jun  8 2020, 19:26:40)  [Clang 11.0.3 (clang-1<IP_ADDRESS>)]
                     platform: Darwin-20.5.0-x86_64-i386-64bit
     optional deps. installed: ['typing-extensions']

from pydantic import BaseModel, PrivateAttr

class ModelWithPrivateAttr(BaseModel):
    public: str
    _private: str = PrivateAttr()

    def set_private(self, value: str) -> str:
        self._private = value

    def get_private(self) -> str:
        return self._private
#end class

m = ModelWithPrivateAttr(public='hello')
m.set_private('world')
assert m.get_private() == 'world'

n = m.copy(update={'_private': 'xxx'})
assert n.get_private() == 'world'

The current behavior of pydantic BaseModels is to copy private attributes but it does not offer a way to update nor exclude nor unset the private attributes' values.
A workaround is to override the class' copy method with a version that acts on the private attribute. It will be good if the exclude/include/update arguments can take private attributes into account.
Alternatively, if this is expected behavior, the documentation should be updated to reflect this non-obvious behavior for private attributes.
Snippet for resetting private attributes manually by overriding copy (my use case was to use private attributes as a "cache").
    def copy(
        self: _DocumentT,
        *,
        include: Union[AbstractSet[Union[int, str]], Mapping[Union[int, str], Any]] = None,
        exclude: Union[AbstractSet[Union[int, str]], Mapping[Union[int, str], Any]] = None,
        update: Dict[str, Any] = None,
        deep: bool = False,
    ) -> _DocumentT:
        copied = super().copy(include=include, exclude=exclude, update=update, deep=deep)
        object.__setattr__(copied, '_private', None)

        return copied
    #end def

We’re no longer actively developing Pydantic V1 (although it will continue to receive security fixes for the next year or so), so we’re closing issues solely related to V1. If you really think this shouldn’t be closed, please comment or create a new issue 🚀.


sync_customers doesn't sync

Hi, not sure if I'm misunderstanding the function of sync_customers or not.
Is it supposed to update django models with information from stripe? Because I deleted my db and remigrated and then ran sync and none of the information was copied over.
If it is the other way around (sync_customers updates slack with info from django), is there a way to do what I desire, populate the django tables with customer information from stripe?
I'm in the testing phase at the moment and I just want to make sure that I am not losing user information, or recharging people accidentally once I hit production. Starting with a clean slate seems to be working quite well with webhooks updating the django db.
On a related side not, when running init_customers or sync_customers this warning is thrown:
  if ("email" not in subscriber_model._meta.get_all_field_names()) and not hasattr(subscriber_model, 'email'):```

simply replacing with .get_fields() does not work as expected.

I'll take a look at this this weekend. In the meantime, have you taken a look at #307? It might be worth your while to start with 1.0.0 if you're starting from scratch.

Off the top of my head, sync_customers should grab customer data from Stripe and add it to dj-stripe. I don't believe it creates django "subscribers" for you

init_customers creates customers in Stripe for the users in your local database if they don't already have a customer object associated with them.
sync_customers syncs data in your local database with data in Stripe for each customer you have in your local database (and their associated subscription, invoices, and charges). This will be replaced in favor of a more robust set of syncing functions in 1.0.0, so expect this to be dropped soon.

Thank you.
Is a function that takes your Stripe data (customers, subscriptions) and copies it to your possibly empty local database part of the plan? I might make a pull request if no one in particular is working on that.

For the most part. See this comment. You'll be able to call sync_all(fetch=True).
The issue lies with customers. Local users are linked to customers in stripe; there's no way to pull customers and their related objects from stripe if that customer doesn't exist locally and isn't connected to a local user.
To get around this, you could build a function that pulls a list of all customers from stripe and then for each customer: create a local user (email, password, etc.) and then create a local customer with the created local user and the stripe customer's stripe ID.


[REQUEST] Twitter Filename Formatting

Ripme version: 1.7.90
Java version: java version "1.8.0_191"
Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot(TM) Client VM (build 25.191-b12, mixed mode, sharing)
Operating system: Windows 10 Version 1903 (OS Build 18362.535)

Expected Behavior
Please consider adding the option to customize the format of twitter filenames.
Personally I'd want to format the filenames as such:
[Twitter username]-[Tweet ID]-[Date of Tweet]-[Image no.]
I think this kind of formatting is a lot more archive-friendly and future-proof. It also preserves order in a way that provides context rather than just adding a context-free numerical prefix.
For example, this tweet:
https://twitter.com/horikoshiko/status/603183055130533888
would yield the following filenames:
horikoshiko-603183055130533888-20150526_195701-img1.png
horikoshiko-603183055130533888-20150526_195701-img2.jpg

I second this. It would make sorting possible if info like this can be pulled for organization.

I would like this feature as well.

I would like this feature as well.


AMBARI-23312 Regression : Adding Atlas Metadata server' for HA on an host takes forever.

How was this patch tested?
21513 passing (30s)
48 pending

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