=cluster handle aggressively rejoining/replacing nodes from same host/port pair

Resolves : https://github.com/apple/swift-distributed-actors/issues/1082

Short version: there is an edge case that was not handled well when very aggressively rejoining the cluster from the same host/port.
This can happen in k8s when a pod gets aggressively restarted, or on command line apps when someone joins a cluster "sends just one request and kills the app" since they both then still may be present in SWIM gossip (correctly) as dead, and the cluster may misinterpret this about information about "itself" when the new node joins.

More analysis:
steps:

7 joins 8
7 is leader

minumum 2 nodes before we elect one
lower address wins

7 dies
8 cannot declare 7 as down

only leader can do this
this is ok, as designed // these systems expect tog et back their node count and then recover

7 reboot -- let's call it 77

same host/port
new UID

handshake with 8

8 accepts
77 gets accept
8 declares "previous 7" as down, since 77 is the replacement

8 declaring 7 down is correct

but it means we have a down 7 in membership
this is also correct; other nodes may not yet know about this, so we want to spread this down information that 8 first noticed

gossip in includes old node 7 (okey)

Node 77 receives gossip through SWIM and that includes 7:
2022-11-01T13:08:56+0900 trace Client : actor/id=/user/swim actor/path=/user/swim cluster/node=sact://REPLACEMENT_77@<IP_ADDRESS>:7337 swim/incarnation=0 swim/members/all=["SWIM.Member(SWIMActor(id:sact://RemoteCluster:7602583950674506995@<IP_ADDRESS>:8337/user/swim, node:sact://RemoteCluster:7602583950674506995@<IP_ADDRESS>:8337, alive(incarnation: 0), protocolPeriod: 1)", "SWIM.Member(SWIMActor(id:/user/swim, node:sact://REPLACEMENT_77@<IP_ADDRESS>:7337, alive(incarnation: 0), protocolPeriod: 0)"] swim/members/count=2 swim/ping/origin=sact://RemoteCluster:7602583950674506995@<IP_ADDRESS>:8337/user/swim swim/ping/payload=membership([SWIM.Member(SWIMActor(id:sact://OLD_NODE_7@<IP_ADDRESS>:7337/user/swim, node:sact://OLD_NODE_7@<IP_ADDRESS>:7337, suspect(incarnation: 0, suspectedBy: Set([sact://sact@<IP_ADDRESS>:8337#7602583950674506995])), protocolPeriod: 56), SWIM.Member(SWIMActor(id:sact://RemoteCluster:7602583950674506995@<IP_ADDRESS>:8337/user/swim, node:sact://RemoteCluster:7602583950674506995@<IP_ADDRESS>:8337, alive(incarnation: 0), protocolPeriod: 0), SWIM.Member(SWIMActor(id:/user/swim, node:sact://REPLACEMENT_77@<IP_ADDRESS>:7337, alive(incarnation: 0), protocolPeriod: 56)]) swim/ping/seqNr=4 swim/protocolPeriod=1 swim/suspects/count=0 swim/timeoutSuspectsBeforePeriodMax=11 swim/timeoutSuspectsBeforePeriodMin=4 [DistributedCluster] Received ping@4
Note this: swim/ping/payload=membership([

    SWIM.Member(SWIMActor(id:sact://OLD_NODE_7@<IP_ADDRESS>:7337/user/swim, node:sact://OLD_NODE_7@<IP_ADDRESS>:7337, suspect(incarnation: 0, suspectedBy: Set([sact://sact@<IP_ADDRESS>:8337#7602583950674506995])), protocolPeriod: 56),
SWIM.Member(SWIMActor(id:sact://REPLACEMENT_77@<IP_ADDRESS>:7337/user/swim, node:sact://REPLACEMENT_77@<IP_ADDRESS>:7337, alive(incarnation: 0), protocolPeriod: 56),
SWIM.Member(SWIMActor(id:sact://RemoteCluster:7602583950674506995@<IP_ADDRESS>:8337/user/swim, node:sact://RemoteCluster:7602583950674506995@<IP_ADDRESS>:8337, alive(incarnation: 0), protocolPeriod: 0)

In other words, SWIM spreads information about both nodes since it is not confirmDead yet -- THIS IS OK. But continuing to act on the removed node's information is NOT ok.

Long story short: SWIM tells us that a node on this address was dead, but we know we are not dead -- this should only happen on high level gossip, when we see a .down somewhere about us. So we can ignore this from the SWIM level.
This should also get fixed in SWIM itself though, I'll follow up there.

SWIM follow up https://github.com/apple/swift-cluster-membership/issues/91

How I love a trailing space being the only failure :P


Merge pull request #1025 from DanijelXDA/beta

Update master branch with latest commits

Final version.
Merged.
Done.


Divide the Experiments Page into Three Sections

[ ] Divide the experiment page into three sections: 1. My Slices; 2. Manage Tokens; 3.Manage SSH Keys;
[ ] The layout should be similar to the Use Profile page.

Related Issue: https://github.com/fabric-testbed/fabric-portal/issues/82


Remove unused variables

Reference in this issue https://github.com/ManageIQ/manageiq/issues/16092, I remove unused variable to avoid offenses from rubocop. Let me know what are the things I need to add. Thanks!

bump @bdunne

Rebased and resolved merge conflicts


Simplify FieldError merging.

I realized that there was no need to pre-optimize the error object because in all likely-hood this error is only going to contain a few objects, and the complex merging is simpler (and less wasteful) if done at the very end.
I removed the usage of normalizing over and over again, and this is done only once when .Error() is called. merge() also only happens when .Error() is called. The upside is that we are not constantly recreating FieldError objects when we don't need to. Sorting has been moved inside the merge method.
The downside is each time .Error() is called now, the complex part of this code needs to run. We could choose to expose a .Simplify() method if we find a common case where an error has .Error() called on it many times.
One other downside is that the end result of a FieldError object is as messy as it's validation callstack. This should be ok though, we don't intend to inspect them directly.
Please take a look, sorry my first attempt was very complicated. 🤷♂ I am learning 😸

/assign @mattmoor
/cc vdemeester
Superseeds https://github.com/knative/pkg/pull/91

/lgtm

@mattmoor fresh from 🍹 🏖 🌞 ready to 👀 and then 😻 this PR?

/hold cancel


How to use a specific timezone when resolving date/time values?

Question

Is there a way to specify a timezone when using snips for predictions? I'm currently trying to test out cases where snips may be running on a server using utc and has to resolve a query from someone in a different timezone. The concept of tomorrow may change between those timezones. While tomorrow can be converted back to the query timezone, it becomes harder if the query specifies a specific day of the week such as Wednesday. If the current day is Tuesday on the query timezone (assume EDT) and the server timezone is Wednesday (because it is ahead - UTC), then Wednesday returned will be a week ahead when it should be the next day for the query timezone. Do you know what I can do for this?

Hi @rp4fx12
This is a limitation that we are aware of, and which should definitely be addressed.
More generally, the objective would be to allow to specify a "time context", which would be a reference time along with a timezone, to the parsing API so that the datetime resolution can be controlled precisely and does not depend on the machine it is running on.
I will try to allocate some time before the end of the year to tackle this. The amount of work is reasonable but two dependencies must be updated on top of snips-nlu, which makes this change difficult to crowdsource to the community.


Cauchy stress function and issue with params

I noticed that an error appeared when running the cauchy_stress() function. This might be due to the fact that params is a dictionary now.
model = MatModel('Yeoh','goh')
sample = UniformAxisymmetricTubeInflationExtension(model, force_measure='pressure')
xi,stress = sample.cauchy_stress([10], params) ## Leads to TypeError: unsupported operand type(s) for -: 'float' and 'Param'

Thanks for raising this @rosnelclaire . Yes, this should be fixed. I'll work on it.


Goal V2

Goal for the v2.0.0 is to have it ready to use within node apps outside cli applications.
This means a complete overhaul of the project.

This has been started in https://github.com/m10rten/markdown-includes/commit/f5fe22ec2663f745fbe875f98876be7bd7cbeaeb

As since 0.9.5 The package is fully functional for API and CLI usage.


Translate byte offsets in StackMapTable attribute to instruction offsets

Is your feature request related to a problem? Please describe.
Currently, the StackMapTable attribute uses byte offsets, which makes them really hard to work with when everything else is in instruction offsets, and I can't use offset_utils::instructions_to_bytes either, since it's a private function.
Describe the solution you'd like
Implement translation of the offsets in the reading and writing steps of the StackMapTable attribute. ExceptionTableEntry can be used as a reference for this, although the offsets of StackMapTable entries have some different semantics that have to be kept in mind.
Additional context
I'll be looking into implementing this myself and sending a PR (since this is a blocking requirement for me).
If there are things I need to keep in mind when implementing this, please let me know!

@Sculas thanks for reporting the issue; I'll watch for the PR!


How to drag and drop in cesiumjs

Hi,
I need help, I have created many entities that can be moved using ScreenSpaceEventHandler and it works, but now I have ScreenSpaceEventHandler associated with each entitу, which means when I create a new entitу I have a new ScreenSpaceEventHandler created... As I understand it is a globаl event, and when i created 1000 entitу i have 1000 ScreenSpaceEventHandler , and my application start to freeze. I think that this is related to a lot of created global ScreenSpaceEventHandler, that is what affecting the performance.
Can you explain to me what is the right way to manage this ScreenSpaceEventHandler, because each of them has its own function...
After that I tried to use events on the entity itself (as onMouseMove etc.) but when I move the mouse quickly the mouse moves away from the entity area and the event stops running, can you please help what I am doing wrong.
Thanks in advance...

Hi @rustam-cloud, I would recommend you use one ScreenSpaceEventHandler and use picking to select an entity.
Cesium is a big project, so we use GitHub for feature requests and bug tracking exclusively. This question is better suited for the Cesium Forum where there are members of the community and developers from the team who can help. Thanks!


G900 used instead of G Pro Wireless due to same DeviceMatch id

G900 and G Pro have the same DeviceMatch=usb:046d:c539 and even though the repo now has G Pro Wireless support, svg file of G900 is used instead of G Pro Wireless. When the mouse is connected with a wire, it is properly recognized due to different DeviceMatch.
Some details of the problem can be found in PR #571 but since that PR is closed I opened this issue to further track the problem.

Just found #380 which explains the issue and what is required to fix it.

I guess the best is to wait for the kernel to implement it. You would not accept some workarounds like #381?

I'd prefer the energy to be spent on fixing it in the correct place :)

Makes sense :smile:

For the record, should be fixed in combination with Linux 5.2: a04f2d1c24ab390213c313ace0e274a3db9922ef. See also https://www.phoronix.com/scan.php?page=news_item&px=Better-Logitech-Linux-5.2

In the next weeks when 5.2 lands in my distro I'll do the tests.

The wireless PID (WPID) still needs to be added to the device file.

The WPID for G Pro Wireless is 4079 I have already made this change on my fork of both piper and libratbag and will submit PR when linux 5.2 is released.

@aTosser feel free to submit right now if you want :grin:.

I would prefer to wait until the WPID of the G900 is known. The USB receiver still shows up on Kernel 5.2. After updating all of the files for the G Pro W, I was getting duplicate entries because of the receive PID being in the G900 files. I don't want to remove the USB receiver from the G900 files but I also do not want duplicate devices showing up for anyone using G Pro W. When someone can tell me the WPID fro G900 We can just hit it all in one swoop.

AFAICT: https://github.com/libratbag/libratbag/commit/a04f2d1c24ab390213c313ace0e274a3db9922ef#diff-7bac8358e9b0ad1f5a1fea627b59d0d4 already added the WPID of my G900 and G403 :)

The WPID for the G903 and G603 still need to be corrected as the logitech-lightspeed.device will have to be removed. There will still be duplicate devices detected otherwise. These are the only 2 remaining lightspeed devices. Once that is the case there will be no devices using 046d:c539.

@aTosser you are getting duplicated entries because the c539 is incorrectly present in the G Pro Wireless .device file.

Fixed in the last release. Make sure you have Linux 5.2.

Seems that everything works fine. Cheers!


Background Pages Don't Get requestAnimationFrame

So, I'm pretty sure this is related to this: https://bugs.chromium.org/p/chromium/issues/detail?id=834822&can=1&q=requestAnimationFrame tolmasky&colspec=ID Pri M Stars ReleaseBlock Component Status Owner Summary OS Modified
Basically, I am using Puppeteer to run tests. I run many tests at once, in different pages. Since only one page is ever focused at once, the tests are actually all blocked on eachother, waiting on requestAnimationFrame to fire, for the test to finish, and for the page to close, allowing the next one to focus. Is there any way to allow all the pages to "feel" focused. I'd rather not pay the price of starting multiple browsers.

@tolmasky since puppeteer 1.5 you can now use browser contexts for parallelization - they should work just fine.
Let me know how it goes.

Encountered this problem today and took me a while to narrow down the issue to RAF not getting triggered because it was backgrounded due to running multiple pages at the same time.
The link above on browser context appears to be broken, is there any more detail on how Puppeteer should be used for parallelism? There is the API docs on BrowserContext, but exactly how that relates to foregrounded / backgrounded pages is unclear. Is the intended solution for parallelized tests to use a different context for each test with only one page active at a time in each context?
Currently it seems that Web Test Runner currently handles this incorrectly and reuses a single browser context for its concurrency implementation. I suspect the right answer is for it to create a new browser context for each concurrent page, but I figured it was worth checking here to make sure my understanding of the workaround is correct.
https://github.com/modernweb-dev/web/issues/2588


Unify the placeholder app name

Needs https://github.com/aragon/aragon-cli/pull/424 to be merged and published.

When I tested with aragon/aragon-cli#424 It's not replacing the placeholder on package.json.
Then I tried npx replace "placeholder-app-name" "foo" package.json and it worked. Might be related with default excludes.

It seems to be because we rewrite the package.json with the license field deleted.
I've fixed it in https://github.com/aragon/aragon-cli/pull/424/commits/dadd607f06341f96a1ef4cfb4a7d859d6387daa3.
I've also pushed a new commit here to change the name and delete the license of the frontend.


Updated values in sidebar revert to original on "Accept"

Description
The updated population/demographic values in the sidebar switch back to their original values after the user clicks "Accept"
Steps To Reproduce

Open a project new project
Select a county on the map
The population of that county should be added to the selected district in the sidebar
Click "Accept"

Expected behavior
I'd expect the updated population for the district to be visible after clicking "Accept"
Actual behavior
The population for the district reverts back to the original value temporarily. Once the "Accept" process completes, the update value is visible once again.
Screenshots
https://www.youtube.com/watch?v=TFTykbtAij0
Your environment

OS: macOS
Browser: Latest Chrome

Additional context

After clicking "Accept", the updated value is the important one. Seeing the original value is confusing and it's not the information you want to see.

Duplicate of #253


Using esp_light_sleep_start() can break WiFi, should be configurable to use delay() instead.

With the default of esp_light_sleep_start() I see WiFi connection problems.
Using delay() can still noticeably reduce the SoC temperature.  In my limited testing, the temperature reported by CpuTemperature.read() reduced from ~58 °C to ~52 °C after enabling -D_TASK_SLEEP_ON_IDLE_RUN=1 and hacking it to use delay() instead of esp_light_sleep_start().

Hi,
Which version of TaskSxheduler are you running.
I believe I disabled light sleep in the latest version since yes, it causes WiFi issues.
Simple delay(1) (or vTaskDelay(1) ) works better.

Which version of TaskSxheduler are you running.

The master branch: https://github.com/arkhipenko/TaskScheduler/blob/master/src/TaskSchedulerSleepMethods.h#L61

Simple delay(1) (or vTaskDelay(1) ) works better.

One problem with a simple delay is that when using StatusRequest to wake from an interrupt, the delay is not interrupted.
So for ESP32 even better is to use xTaskNotifyWait() to sleep and xTaskNotify()/xTaskNotifyFromISR() to interrupt the sleep.


Unit tests for a good number of core Recast functions.

These are by no means complete coverage of the functions they test, but are at least a start.

I left a few comments. There are many places where Approx is used, and many places where it isn't - should it be used consistently for all the floating point comparisons?
Apart from that the rest LGTM.

Thanks again for the code review @Janiels.  I fixed the things you pointed out and made all floating point comparisons use Approx for consistency, even if they don't need it.  I think it's clearer in the long run, and expresses the intent more clearly.  :smile:

I notice that the created heightfields are leaked after the tests are over. Is this something we are OK with to promote the clarity of the code?
It might be worth it to use a linear allocator that automatically cleans up after each test case through RAII. Otherwise, as the test suite grows, we might start using a lot of memory.

Good point @Janiels - rcHeightfield has both rcAllocHeightfield and rcCreateHeightfield which roughly correspond to new and a constructor. There's rcFreeHeightfield to pair with rcAllocHeightfield, which roughly corresponds with delete, but no such thing as rcDestroyHeightfield which would be like the destructor, and which would free spans. So rcHeightfield can't be used on the stack at the moment without leaking memory (or manually freeing its internals!). That's definitely something we should fix! But for now, I'd suggest allocating the heightfields on the heap and freeing them at the end of the tests - does Catch allow test tear-down or will this have to be repeated in each SECTION? Or even better, if we're ok with using C++11 in tests (I am), use unique_ptr with a custom deleter.
A couple of things for the future (we can tweak them later, no sense holding up the PR for them) would be use of const for test-local things, and again if we're ok with C++11, nullptr instead of 0. They're super minor things though.
Apart from that, I'm happy with these tests - a great start! Thanks!

I messed around with std::unique_ptr, which I was able to get to automatically call rcFreeHeightfield, however, this required getting travis and appveyor to build C++11 for the RecastDemo project, which proved to be a bit of a hassle.  I still think it's useful to get them using C++11, however, I also think that allowing for stack-allocated rcHeightfields is more useful.
Especially where users are expected to directly interact with rcHeightfields, it's a pretty nasty pitfall that stack-allocated heightfields will leak memory.  I think a better approach is to allow for stack-allocations as well.  I submitted this change separately as #196, so we can discuss the implications of this change there, but this PR will have to wait until either #196, or I get C++11 build configs working well enough to merge in.

Sounds good - thanks Graham!

Should be g2g with the new ctor/dtor on rcHeightfield, barring any further suggestions ;)

LGTM

:+1:


Add repository info to package.json

Right now there is no repository listed and it does not show up on NPM.
https://www.npmjs.com/package/iso-country-currency

fixed PR#5

fixed PR#5


sb-stats telemetry packet is not time-stamped

A line was deleted at some point in the cfe_sb_task.c file that used to timestamp the sb-stats message before going out on the s/w bus.
The CFE_SB_SendStats() routine merely needs a line added back in:
CFE_SB_TimeStampMsg((CFE_SB_Msg_t *) &CFE_SB_TaskData.StatTlmMsg);

Imported from trac issue 191.  Created by mlogan on 2017-04-14T17:41:16, last modified: 2019-03-05T15:18:04

Trac comment by glimes on 2017-04-14 17:50:01:
Amended prior commit to reference this ticket,
proposed update is in [changeset:19b3338c]
branch name is mlogan-trac191-sbstats-timestamp

Trac comment by glimes on 2017-04-14 17:50:37:
Marking it complete so we can get it into
the update pipeline ;)


kubernetes/org link in /resources/service points to a wrong repo

The link of the kubernetes/org hyperlink points to the wrong repository. Currently, it points to this random repo whereas actually, it should point to https://github.com/kubernetes/org

/kind bug
/good-first-issue

How to fix this:
We actually have two instances of this bug in the same section because both are linked to the same variable. To fix both of this, we have to change the link of the kubernetes/org variable present in Line 222 of content/en/resources/services.md file from https://github.com/org to https://github.com/kubernetes/org

I'd like to take this on -- /assign

/assign

I'm actually pretty swamped for the next couple of days -- if any other new contributor wants to take over by then, please be my guest and submit a PR. If it's still open when I check back, I'll take care of it :)

Hey @sreekaransrinath I am going to make a PR for this issue.

I'm actually pretty swamped for the next couple of days -- if any other new contributor wants to take over by then, please be my guest and submit a PR. If it's still open when I check back, I'll take care of it :)

That's completely fine @sreekaransrinath 💯
/unassign @sreekaransrinath

/unassign @sreekaransrinath

Hey @sreekaransrinath I am going to make a PR for this issue.

Thanks for your contributions @chetak123 🎉
/assign @chetak123

#254 fixes this issue. Thus closing!


[Event Request] Page 99000818 - Prod. Order Components - OnBeforeReserveComp (new parameters)

Dear ALAppExtensions team,
Through this issue we would like to request event publisher OnBeforeReserveComp in Page 99000818 Prod. Order Components to be extended so that it gets the following signature:
    [IntegrationEvent(true, false)]
    local procedure OnBeforeReserveComp(var ProdOrderComp: Record "Prod. Order Component"; var xProdOrderComp: Record "Prod. Order Component"; var ReserveComp: Boolean)
    begin
    end;

with IncludeSender = true and a new VAR parameter ReserveComp.
which would be called as follows from ReserveComp:
    procedure ReserveComp()
    var
        Item: Record Item;
        ReserveComp: Boolean;
    begin
        ReserveComp := false;
        if (xRec."Remaining Qty. (Base)" <> "Remaining Qty. (Base)") or
           (xRec."Item No." <> "Item No.") or
           (xRec."Location Code" <> "Location Code")
        then
            if Item.Get("Item No.") then
                ReserveComp := Item.Reserve = Item.Reserve::Always;

        OnBeforeReserveComp(Rec, xRec, ReserveComp);

        if ReserveComp then begin
            CurrPage.SaveRecord;
            AutoReserve();
            CurrPage.Update(false);
        end;
    end;

So what it comes down to, we would like to have a way of extending (or replacing) the condition of when AutoReserve is called and the CurrPage-methods are called.

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


VCARD for multiple creators not handled correctly

the VCARD conversion into foaf isn't quite right, I think. It's a subtle point.
According to my testing, if you have two curators in the sbml annotation (e.g. Max and I), then the output I would expect would be something like:
...fubar.xml#metaid023438  dc:creator [
                                       foaf:mbox<EMAIL_ADDRESS>;
                                       foaf:Organization "SeattleChildrens"  ] ;
                           dc:creator [
                                       foaf:mbox<EMAIL_ADDRESS>                                       foaf:Organization "UW" ] .

Whereas, what pyomexmeta v1.2.6 generates is as follows (it's similar, but not quite the same):
...fubar.xml#metaid023438  dc:creator [
                                       foaf:mbox<EMAIL_ADDRESS>"gennari@uw" ;
                                       foaf:Organization "SeattleChildrens", "UW"   ] .

The problem with the latter is that one can't readily tease apart the creators (which mbox goes with which Organization, for example).
Thanks.

Does this look alright?
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix bqmodel: <http://biomodels.net/model-qualifiers/> .
@prefix bqbiol: <http://biomodels.net/biology-qualifiers/> .
@prefix OMEXlib: <http://omex-library.org/> .
@prefix local: <http://omex-library.org/NewOmex.omex/NewModel.rdf#> .

<http://omex-library.org/NewOmex.omex/NewModel.xml#_272044>
    <http://purl.org/dc/elements/1.1/creator> [
        <http://xmlns.com/foaf/0.1/Organization> "EMBL-EBI" ;
        <http://xmlns.com/foaf/0.1/familyName> "Chelliah" ;
        <http://xmlns.com/foaf/0.1/givenName> "Vijayalakshmi" ;
        <http://xmlns.com/foaf/0.1/mbox><EMAIL_ADDRESS>    ], [
        <http://xmlns.com/foaf/0.1/Organization> """Institute of Biochemistry and Biology, University of Potsdam, 14476
                                    Potsdam, Germany
                                """ ;
        <http://xmlns.com/foaf/0.1/familyName> "Nikoloski" ;
        <http://xmlns.com/foaf/0.1/givenName> "Zoran" ;
        <http://xmlns.com/foaf/0.1/mbox><EMAIL_ADDRESS>    ], [
        <http://xmlns.com/foaf/0.1/Organization> "Max-Planck-Institute of Molecular Plant Physiology" ;
        <http://xmlns.com/foaf/0.1/familyName> "Arnold" ;
        <http://xmlns.com/foaf/0.1/givenName> "Anne" ;
        <http://xmlns.com/foaf/0.1/mbox><EMAIL_ADDRESS>    ] .

Yes, this looks great. Thanks.

Done


Cursor pointer is hidden in flutter

When the text field is at the bottom of the screen, the cursor point is hidden by the keyboard.  So, it is difficult for the user to control the cursor pointer.

But in a android native app, the cursor pointer is above the keyboard.  I want the cursor pointer is above the keyboard like Android

Hi @korkis
I see there's an open issue (https://github.com/flutter/flutter/issues/67875) addressing the case you described.
Please follow up on that issue, I'm closing the current one as a duplicate.
If you disagree, please write in the comments and I will reopen it.
Thank you


[CDC] AST_BYPASS_CLK tracking

PR #10706 removes the clock bypass inside AST design. It somehow confuses the CDC tool so that CDC run-time has been increased significantly from 20min to 6~7hours.
Temporary workaround will be adding the definition back only for CDC. But should keep tracking if it is resolved prior to the release.
Should be fixed by #16245

Great, thanks @arnonsha!

This is related to #12834

@jeoongp , i'm assigning this to you for now so we can look a bit at how we might absorb the ast cdc model into our flow, and how much similarity there is to the sign-off tool we're using.

let's not close this yet until @jeoongp confirms that the conversion is well and working.
If that does not, we will still have to figure out how to deal with this.

@jeoongp feel free to close this issue down when you think the ast cdc flow is solid and we no longer need to rely on the bypass_clk :)

Thanks @tjaychen. I will close this ticket once new AST CDC flow is committed on GitHub.

@msfschaffner @jeoongp i think it would be good to work on getting #16245 merged.
Even if not all the waivers are complete, merging it will allow this issue to be closed and others to have a common part to help with the waiver process.

Indeed, we should get that one merged. Looks like the only outstanding issue is that hardcoded path.
CI failures seem intermittent.

closing since #16245 is merged.


Adding functionality to verify stationarity of the Lagrangian for problems in CVXPY!

Description
This PR adds a new method, check_stationarity_lagrangian, which:

Tries to construct the Lagrangian corresponding to a given problem
Check if it is stationary by using the existing .grad facility.
Can also handle the case of the user passing in implicit constraints via flags (such as diag, PSD, NSD, nonpos etc. by checking dual cone membership of the computed gradient instead of stationarity)

I have added in tests for this new method which live in cvxpy/tests/test_KKT.py --- where all of the standard test classes from SolverTestHelpers make an appearance --- the KKT conditions are verified in full for all of the tests (with the exception of MI-programs)  in the solver_test_helpers.py file.
I haven't added documentation for this method yet since it just lives within the SolverTestHelper class as of now --- we can probably write a full class for verifying the KKT conditions after proper support for verifying dual feasibility has been added (via the introduction of the dual method on Constraint objects).
Type of change

[x] New feature (backwards compatible)
[ ] New feature (breaking API changes)
[ ] Bug fix
[ ] Other (Documentation, CI, ...)

Contribution checklist

[ ] Add our license to new files.
[x] Check that your code adheres to our coding style.
[x] Write unittests.
[x] Run the unittests and check that they’re passing.
[x] Run the benchmarks to make sure your change doesn’t introduce a regression.

@rileyjmurray I think I should've addressed your suggested changes with this commit, please take a look whenever you get time!

Failing tests are unrelated to this PR.


Update to new renderer API renderers extension

https://github.com/microsoft/vscode/issues/93265#issuecomment-854147304

validated


about apex

My graphics card is 3070ti, cuda11.3,torch1. 10.1. But I can't compile apex.Do you know how to solve it
The error is as follows：
ERROR: Command errored out with exit status 1: /home/aini/software/anaconda3/envs/cu113_py37_tr110_mm/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-b3ie2ccd/setup.py'"'"'; file='"'"'/tmp/pip-req-build-b3ie2ccd/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' --cpp_ext --cuda_ext install --record /tmp/pip-record-t1h4adu5/install-record.txt --single-version-externally-managed --compile --install-headers /home/aini/software/anaconda3/envs/cu113_py37_tr110_mm/include/python3.7m/apex Check the logs for full command output.

Hi, our code does not rely on apex nor use apex. We support PyTorch AMP training though.

Thanks for posting the question! We didn't observe the issue you mentioned when compiling apex. You may want to check the full error log, identify the root cause of the error, and search solutions for that. Please let us know if we could help with anything else.


Failed to find apps//package.json when run the command

Hello,
When I try to run the plugin using nx run-many, the plugin try to find the package.json in the dỉectory of each application end raise an error ENOENT: no such file or directory since there is only project.json
It is not make the command failed but seem annoying when I try to read the console log. Could you check this please?
Thank you

@koliveira15 The issue for me is that I define a package.json at the root level, and not for each application. Reading the code in utils.js, I notice that it is expecting each application to have a package.json file. I suggest you add a fallback to check the root directory for a package.json file and use the version from there

@destnguyxn a "quick fix" to remove the error is to add projectVersion to your sonar options:
{
...
"sonar": {
      "executor": "@koliveira15/nx-sonarqube:scan",
      "options": {
        "projectVersion": "1.0",
        ...
      }
    }
  }
}

@gcko the plugin does have a fallback to the root directory when not found the package.json , it just the error message seems annoying and may cause misunderstanding.
Thank you for the quick fix 😄

@destnguyxn ah! well in that case, the solution would be to change it from an ERROR to an INFO message, or WARN


PSUBSCRIBE support

Hello, do you have a plan for supporting PSUBSCRIBE command? Thanks in  advance for your reply.

Hello,
I haven't ruled-out supporting PSUBSCRIBE, but I haven't yet had the need to include it.
In theory it could be added to the current Pub/Sub implementation without significant changes. We should definitely consider it as an option for future versions.

hello @benashford , our use case for PSUBSCRIBE is in our real time positions engine, we need to seperate for example region/zone/map.
we have keys like positions.application_namespace.level.zone, in this situation if we would like to subscribe all the incoming positions, we need to use psubscribe on `positions.*

Hi @benashford, could you review this PR: #57

This is now published in:

0.6.4 - which is Tokio 0.2 compatible.
0.7.1 - which is Tokio 0.3 compatible.

(I'm keeping both branches maintained for a while because I think most users - myself included in a private repo I maintain - have Tokio 0.2 dependencies for a while yet, but hopefully not for too long.)


Use only 1 thread when compiling. javacc-maven-plugin does not suppor…

…t multiple threads and fail on Copr.

Thank you for submitting this pull request, however I do not see a valid CLA on file for you. Before we can merge this request please visit https://yahoocla.herokuapp.com/ and agree to the terms. Thanks! :smile:

Thank you for submitting this pull request, however I do not see a valid CLA on file for you. Before we can merge this request please visit https://yahoocla.herokuapp.com/ and agree to the terms. Thanks! :smile:


added code to HTML file

This PR adds all of the HTML we need for the prework studyguide application.


[Bug] Cannot redirect to Playground site with params

I can access playground from this url https://vue-playground.netlify.com/.
However, when I access with params such as https://vue-playground.netlify.com/hello-world. The page not found is appeared.
Expect Behavior
It could be accessed to hello-world normally.

Hi, I've made a PR #5  that fixes this. You can see in the deploy preview that it indeed works. https://deploy-preview-5--vue-playground.netlify.com/hello-world

It works!! 🎉
Thanks for help 😁
@YasiOnFire


Bug Report: TeaScript seems to be down.

If you are playing a downloaded version of the game, what operating system are you using?
Windows 10 64 Bit
What version of the game are you using? Look in the bottom left corner of the main menu.
Latest Release
Have you identified any steps to reproduce the bug? If so, please describe them below. Use images if possible.
Tried messing with the source code, nothing works might need to find something new.
Please describe your issue. Provide extensive detail and images if possible.

@EyeDaleHim I recommend removing SScript and TeaScript entirely and finding something else.

Solved in commit ba25e36.


Remove explicit template instantiation in headers

Explicit template instantiations expect a definition, which is only found outsize of the evaluate.h header file, thus causing a compile error.
(Also, the unused TT functions are warnings made errors by -Werror, although I expect those are intended to be used at some point).

Sorry, I missed this MR. I think I've fixed the problem already.


Check Google and Facebook SSO auths for valid emails

Google and FB account creation does not guarantee an email address is returned.
It is possible for users to join Google & FB with only a cell-phone #.
We'll need to prompt users for an email if this is the case.

This is going to be more involved the originally thought.  Moving this issue to V2


Packages

puts files into packages, trying to adhere to package principles as described in PPP

Coverage remained the same at 99.303% when pulling a3bf036f682e5fe2bbe371296bf85c03f39e19f6 on branches into 8a06dcdfa089b05955ea45d182aebe94acbb5859 on master.


Improve Login/Logout structure

Task List for Login Process

[x] 1. Review Login Function Implementation

Goal: Check the current implementation of the login function.
Files:

routes.mjs: Inspect the login route (/login/:mid).
functions.mjs: Review the login function for any logic errors and destinations for successful or blocked login
mylife-datamanager.mjs: houses the final request to a stored procedure to evaluate the content. Seems to be malfunctioning at the moment, could convert to compound query, but would rather stick with sp

[x] 2. Examine Authentication Mechanism

Goal: Confirm that the authentication process is secure and functioning.
Files:

mylife-datamanager.mjs: houses the final request to a stored procedure to evaluate the content. Seems to be malfunctioning at the moment, could convert to compound query, but would rather stick with sp

[x] 3. Debug Error Handling and Messages

Goal: Improve error handling and clarity of error messages.
Files:

functions.mjs: Refine error handling in login-related functions.
session.mjs: Ensure appropriate error messages are generated for session errors.

[x] 4. Review and Test Front-End Interaction

Goal: Make sure the front-end correctly interacts with the login process.
Files:

Front-end files (HTML/JavaScript): Verify the integration with backend login routes and session management.

[x] 5. Document Changes and Update Codebase

Goal: Ensure that all changes are well-documented and integrated into the main codebase.
Files:

All modified files: Add comments and update documentation to reflect changes.
README.md or other documentation files: Update with new information about the login process and any new setup instructions.

add documentation
add minor visual fixes


No route found for "GET /"

After installing Symfony4, then the webserver, and the api-pack with the following command
composer create-project symfony/skeleton project
cd project
composer req webserver
composer req api

I get No route found for "GET /"
See the screenshot below

I also tried to create an entity user and to access it though /users
Same error I followed this video: https://medium.com/@fabpot/symfony-4-a-small-screencast-cf6511823f except that I used the 4.0 version of Symfony
I tried in Ubuntu and Windows, same problem.

My bad the routing prefix was "/api"


add automated email to confirm password change

Imported from trac ticket #34,  created by phelinek on 09-16-2013 at 10:58, last modified: 09-30-2013 at 15:34

Verified that this e-mail notification works.
Trac comment by chaos on 09-30-2013 at 15:34


Get all Admin Users with role slug = manager

I intent get all Admin Users with role slug = manager.
I try query on mysql by using below code:
SELECT * from `iread_admin`.`admin_users`
JOIN `iread_admin`.`admin_role_users`
ON `iread_admin`.`admin_users`.id = `iread_admin`.`admin_role_users`.user_id
WHERE `iread_admin`.`admin_role_users`.role_id = 2

How to implement this query into form() with select input (choose one)
Hope for your comments soon

SELECT * from admin_users
  JOIN admin_role_users on admin_users.id = admin_role_users.user_id
  JOIN admin_roles on admin_roles.id = admin_role_users.role_id
  WHERE admin_roles.slug = 'manager';

I mean how to show that result into the $form->select(...)->options()

use Encore\Admin\Auth\Database\Role;

...

$role = Role::where('slug', 'administrator')->first();
$options = $role->administrators->pluck('username', 'id');

$form->select(...)->options($options);

It works. Thank @z-song so much.


Not Showing for first time

i m adding these on follwowing way
dispatch_async(dispatch_get_main_queue(), ^{
//add here
});
but not working for the first time

You'll have to redraw the map after adding annotations in your dispatch block.

is method
[mapView selectAnnotation:thumbnail animated:YES];
[mapView reloadInputViews];
is enough for that..?

Does calling that show the annotations?

Not showing

Ok, I reopened the issue in case it's a bug with this library. Could you please share code or fork the example showing this issue in practice? It would help me identify what might be going wrong.


API for Tokens Emitting in custom token patterns

Originated from https://github.com/SAP/chevrotain/issues/373
and https://github.com/SAP/chevrotain/issues/414

Should possibly be limited to "virtual" Tokens like Indents/outdent
So the Lexer will continue handling all the position information.

*poke*
This would be lovely to have. Doing some semantic indentation parsing and haven't a clue as to where to start. Looked up if Python had been implemented as a parser and found this.

Hello @Qix- .
There is an example for dealing with Python like indentation here
It is not the prettiest but it works...
This issue is more about cosmetic API changes that would make that example prettier
and potentially support more scenarios so it is unfortunately not a high priority.
I'm currently more focused on POCing a scannerless ECMAScript parser
and then investigating it's performance versus leading ECMAScript hand built parsers such as Acorn/Esprima. and in the longer term supporting Parser Generator/Combinator type APIs
Another alternative is to use a none Chevrotain lexer (hand built / generated).
By creating Chevrotain Tokens or converting to Chevrotain Tokens.

On Creating Tokens

I'm also considering that this issue may be completely redundant if the Chevrotain Lexer
would be refactored to output one token at a time (calling .next() many times) instead of tokenizing the whole input in one go then the user logic handling the indentation would not require
any special treatment by Chevrotain.


Request to add support  for lemesh.light.wy0c09

Request to add support for new mesh device ：lemesh.light.wy0c09
https://home.miot-spec.com/s/7136

https://github.com/AlexxIT/XiaomiGateway3/releases/tag/v3.0.1


Question: How to fix the max height of the grid

Hi,
I'm looking for a way to fix the height of the grid. For now, I tried to put a height on its container but the grid style render out of the box. I tried to put a fixed size everywhere but nothing worked to make the grid in a fixed sized box with a scollbar.
Can someone indicate me a way to do it ?
Thanks,

If you add overflow: auto and max-height: 1024px to the container style , it should add a scroll bar and work just fine.


500 IPFS Daemon not yet ready

I can't load any IPFS websites using Beaker 0.2.0. I always see the following error:

500 IPFS Daemon not yet ready. Try again in a few seconds.

And I get the same error when I try to start the IPFS daemon myself.
I'm using OS X 10.11.6. I also tried on another iMac (same operating system) and got the same error.
Does anyone else have a similar issue when using the OS X binary for Beaker 0.2.0?

In the settings page of Beaker, it shows the path to your data directory. In that directory, do you have a subdirectory titled IPFS ?

No, I don't see a subdirectory titled IPFS in /Users/frabrunelle/Library/Application Support/Beaker Browser.

Humm. What happens if you create one in there (all caps, "IPFS")? Does the daemon start then?
Also, dont run the daemon manually. Beaker will start one if it's not already running, which is the safer choice, because a version mismatch could happen otherwise

What happens if you create one in there (all caps, "IPFS")? Does the daemon start then?

No, even if I create a subdirectory titled IPFS, the daemon doesn't start.

Also, dont run the daemon manually.

Yeah I tried once to see if it would make a difference (and it didn't work). But yeah I would definitely prefer to use the one integrated inside Beaker.

Here's what I see when I try to start Beaker from my terminal:
[PLUGINS] Loading from /Applications/Beaker Browser.app/Contents/Resources/app.asar/node_modules
Opening beaker:shell-window
Registering protocol handler: dat
[DAT] Database location: /Users/frabrunelle/Library/Application Support/Beaker Browser/Hyperdrive
Registering protocol handler: view-dat
Registering protocol handler: ipfs
Wiring up Web API: datInternalAPI
[IPFS] Starting daemon
Error while starting IPFS daemon
{ Error: ENOENT: no such file or directory, open '/Users/frabrunelle/Library/Application Support/Beaker Browser/IPFS/config'
    at Error (native)
    at Object.fs.openSync (fs.js:640:18)
    at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:167:20)
    at Object.fs.readFileSync (fs.js:508:33)
    at Object.fs.readFileSync (ELECTRON_ASAR.js:500:29)
    at parseConfig (/Applications/Beaker Browser.app/Contents/Resources/app.asar/node_modules/ipfsd-ctl/lib/node.js:51:19)
    at Node.startDaemon (/Applications/Beaker Browser.app/Contents/Resources/app.asar/node_modules/ipfsd-ctl/lib/node.js:135:7)
    at startDaemon (/Applications/Beaker Browser.app/Contents/Resources/app.asar/node_modules/beaker-plugin-ipfs/lib/ipfs.js:155:12)
    at ipfsd.local (/Applications/Beaker Browser.app/Contents/Resources/app.asar/node_modules/beaker-plugin-ipfs/lib/ipfs.js:36:7)
    at /Applications/Beaker Browser.app/Contents/Resources/app.asar/node_modules/ipfsd-ctl/lib/index.js:22:7
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/Users/frabrunelle/Library/Application Support/Beaker Browser/IPFS/config' }

And here's what I see when I remove the IPFS directory:
[PLUGINS] Loading from /Applications/Beaker Browser.app/Contents/Resources/app.asar/node_modules
Opening beaker:shell-window
Registering protocol handler: dat
[DAT] Database location: /Users/frabrunelle/Library/Application Support/Beaker Browser/Hyperdrive
Registering protocol handler: view-dat
Registering protocol handler: ipfs
Wiring up Web API: datInternalAPI
[IPFS] Initializing /Users/frabrunelle/Library/Application Support/Beaker Browser/IPFS , keysize 4096
[IPFS] Starting daemon
Error while starting IPFS daemon
{ Error: ENOENT: no such file or directory, open '/Users/frabrunelle/Library/Application Support/Beaker Browser/IPFS/config'
    at Error (native)
    at Object.fs.openSync (fs.js:640:18)
    at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:167:20)
    at Object.fs.readFileSync (fs.js:508:33)
    at Object.fs.readFileSync (ELECTRON_ASAR.js:500:29)
    at parseConfig (/Applications/Beaker Browser.app/Contents/Resources/app.asar/node_modules/ipfsd-ctl/lib/node.js:51:19)
    at Node.startDaemon (/Applications/Beaker Browser.app/Contents/Resources/app.asar/node_modules/ipfsd-ctl/lib/node.js:135:7)
    at startDaemon (/Applications/Beaker Browser.app/Contents/Resources/app.asar/node_modules/beaker-plugin-ipfs/lib/ipfs.js:155:12)
    at ipfsNode.init (/Applications/Beaker Browser.app/Contents/Resources/app.asar/node_modules/beaker-plugin-ipfs/lib/ipfs.js:45:9)
    at /Applications/Beaker Browser.app/Contents/Resources/app.asar/node_modules/ipfsd-ctl/lib/node.js:109:11
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/Users/frabrunelle/Library/Application Support/Beaker Browser/IPFS/config' }
Failed to initialize IPFS
Error: non-zero exit code 1
  while running: /Applications/Beaker Browser.app/Contents/Resources/app.asar/node_modules/subcomandante/subcom 14710 /Applications/Beaker Browser.app/Contents/Resources/app.asar/node_modules/go-ipfs-dep/go-ipfs/ipfs init -b 2048

  internal/child_process.js:302
    throw errnoException(err, 'spawn');
    ^

Error: spawn ENOTDIR
    at exports._errnoException (util.js:1008:11)
    at ChildProcess.spawn (internal/child_process.js:302:11)
    at exports.spawn (child_process.js:384:9)
    at module.exports (/Applications/Beaker Browser.app/Contents/Resources/app.asar/node_modules/comandante/index.js:11:14)
    at Object.<anonymous> (/Applications/Beaker Browser.app/Contents/Resources/app.asar/node_modules/subcomandante/subcom:23:13)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)

    at ChildProcess.<anonymous> (/Applications/Beaker Browser.app/Contents/Resources/app.asar/node_modules/subcomandante/fork.js:21:23)
    at emitTwo (events.js:111:20)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:852:16)
    at Socket.<anonymous> (internal/child_process.js:323:11)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at Pipe._handle.close [as _onclose] (net.js:492:12)

Ok good, that at least confirms my theory that it has to do with missing directories. But, it's strange that IPFS isn't automatically creating the missing directories. I'll debug soon.

I just tried to run Beaker by building it from source and it works fine when I run it using npm start (it automatically creates the IPFS directory and it lets me access IPFS websites).
But when I create a binary using npm run release, that binary has the same problem as the one I downloaded from GitHub. It says 500 IPFS Daemon not yet ready.

I'm 99% sure this was caused by asar-packing being readded to the build process, when I changed to electron-builder. I disabled asar-packing and tested; appears to be working.

Yes it seems to be working for me too (I created a binary using the develop branch). I tried accessing a few IPFS websites (e.g. ipfs:/ipfs/QmU5XsVwvJfTcCwqkK1SmTqDmXWSQWaTa7ZcVLY2PDxNxG/ipfs_links.html).

Good deal


celes: storage card not recognized as removable

Don't really need it to, just going to leave the card in


Copilot Chat does not open

Type: Bug
I installed github copilot and copilot chat, the click "reload window". The copilot chat icon in the activity bar shows for about 2 seconds and is clickable, and I can even see the copilot chat contents for a second, but then it disappears from both the side bar and the activity bar and I can't open it again.
Extension version: 0.12.2023120701
VS Code version: Code 1.85.1 (Universal) (0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2, 2023-12-13T09:48:06.308Z)
OS version: Darwin arm64 23.1.0
Modes:

System Info

Item
Value

CPUs
Apple M2 Max (12 x 24)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
6, 8, 7

Memory (System)
32.00GB (0.38GB free)

Process Argv
--crash-reporter-id f4f1107a-55e1-409f-a5f3-13a875f33183

Screen Reader
no

VM
0%

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscorecescf:30445987
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
py29gd2263:30899288
vsclangdc:30486549
c4g48928:30535728
dsvsc012cf:30540253
azure-dev_surveyone:30548225
2e4cg342:30602488
f6dab269:30613381
a9j8j154:30646983
showlangstatbar:30737416
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
welcomedialogc:30910334
pythonnosmt12:30797651
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
dsvsc013:30795093
dsvsc014:30804076
dsvsc015:30845448
pythontestfixt:30902429
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
pythontbext0:30879054
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
aa_t_chat:30882232
dsvsc019:30917259
cp7184t:30925682

Also notable, for the 1-2 seconds that I can actually see the copilot chat, the "profile" icon for copilot chat doesn't show.
I took this screenshot, I believe this conversation is from a while back, perhaps when I was in the private beta.

Additionally, the command @command:workbench.action.openQuickChat.copilot doesn't do anything

@23chrischen can you please share the GitHub Copilot Chat output channel logs? Were you previously able to access Copilot Chat, and do you have access through an individual or enterprise subscription?

I Have the same issue, @23chrischen   did you manage solve this

I found the answer, you need to enabled the GitHub Copilot Chat feature on your organization setting on GitHub

Hi guys, thanks for the help, I just checked and it looks like my copilot subscription changed from personal to enterprise and I didn't realize it, and my organization doesn't allow copilot chat. I'll close this issue.


Race condition in port forwarding on Remote-Container on WSL

Applies To

[X] Notebooks (.ipynb files)
[ ] Interactive Window and/or Cell Scripts (.py files with #%% markers)

What happened?
I'm using Bokeh and Holoviews to render a chart that opens a connection back to a websocket.
A race condition exists between the backend Tornado server starting up and the port being forwarded, to making the first HTTP request.  Re-running the cell repeatedly either results in a chart being displayed or no chart being displayed.
VS Code Version
1.71.1
Jupyter Extension Version
v2022.8.1002431955
Jupyter logs
Rather than pasting the Jupyter logs, here are the Developer Console javascript logs:
Startup
INFO [attempt 1] Invoking resolveAuthority(dev-container)
log.ts:301  INFO [attempt 1] resolveAuthority(dev-container) returned '<IP_ADDRESS>:35017' after 4479 ms
VM11:4 Registering custom require.js for Jupyter Kernel
eval @ VM11:4
notebookWebviewPreloads.js:3 Notebook preload (https://vscode-remote%2Bdev-002dcontainer-002b633a5c7372635c6a6f686e6e792d726f626f745c4572676f6e2e52657365617263685c656d725c646174615c6175676d656e745c4e42424f.vscode-resource.vscode-cdn.net/home/vscode/.vscode-server/extensions/ms-toolsai.jupyter-2022.8.1002431955/out/node_modules/%40vscode/jupyter-ipywidgets/dist/ipywidgets.js) looks like a module but does not export an activate function
r @ notebookWebviewPreloads.js:3
console.ts:137 [Extension Host] Starting WebSocket: RAW/api/kernels/f1213451-2417-49ab-89f2-71c059f9c919
DevTools failed to load source map: Could not load content for https://vscode-remote+dev-002dcontainer-002b633a5c7372635c6a6f686e6e792d726f626f745c4572676f6e2e52657365617263685c656d725c646174615c6175676d656e745c4e42424f.vscode-resource.vscode-cdn.net/home/vscode/.vscode-server/extensions/ms-toolsai.jupyter-2022.8.1002431955/out/webviews/webview-side/ipywidgetsKernel/ipywidgetsKernel.js.map: Connection error: net::ERR_NAME_NOT_RESOLVED

No chart displayed
VM22:343 [bokeh] setting log level to: 'info'
The FetchEvent for "http://localhost:36281/autoload.js?bokeh-autoload-element=1002&bokeh-absolute-url=http://localhost:36281&resources=none" resulted in a network error response: the promise was rejected.
Promise.then (async)
(anonymous) @ service-worker.js:213
service-worker.js:352          Uncaught (in promise) TypeError: Failed to fetch
    at l (service-worker.js:352:11)
l @ service-worker.js:352
VM26:12          GET http://localhost:36281/autoload.js?bokeh-autoload-element=1002&bokeh-absolute-url=http://localhost:36281&resources=none net::ERR_FAILED
(anonymous) @ VM26:12
(anonymous) @ VM26:13
domEval @ index.js:1304
renderHTML @ index.js:1317
renderOutputItem @ index.js:1447
render @ notebookWebviewPreloads.js:3
renderOutputCell @ notebookWebviewPreloads.js:3
await in renderOutputCell (async)
(anonymous) @ notebookWebviewPreloads.js:3
te.outputs.set.queue @ notebookWebviewPreloads.js:3
enqueue @ notebookWebviewPreloads.js:3
(anonymous) @ notebookWebviewPreloads.js:3
postMessage (async)
(anonymous) @ index.html?id=d051151b-29f8-40da-ba40-2da365b2934e&origin=d051151b-29f8-40da-ba40-2da365b2934e&swVersion=4&extensionId=&platform=electron&vscode-resource-base-authority=vscode-resource.vscode-cdn.net&parentOrigin=vscode-file%3A%2F%2Fvscode-app&remoteAuthority=dev-container%2B633a5c7372635c6a6f686e6e792d726f626f745c4572676f6e2e52657365617263685c656d725c646174615c6175676d656e745c4e42424f&purpose=notebookRenderer:1102
HostMessaging.channel.port1.onmessage @ index.html?id=d051151b-29f8-40da-ba40-2da365b2934e&origin=d051151b-29f8-40da-ba40-2da365b2934e&swVersion=4&extensionId=&platform=electron&vscode-resource-base-authority=vscode-resource.vscode-cdn.net&parentOrigin=vscode-file%3A%2F%2Fvscode-app&remoteAuthority=dev-container%2B633a5c7372635c6a6f686e6e792d726f626f745c4572676f6e2e52657365617263685c656d725c646174615c6175676d656e745c4e42424f&purpose=notebookRenderer:295

Chart displays and is interactive
VM22:343 [bokeh] setting log level to: 'info'
VM22:746 [bokeh] Websocket connection 0 is now open
VM22:324 [bokeh] document idle at 69 ms
VM22:322 Bokeh items were rendered successfully

Coding Language and Runtime Version
Python v3.9.13, holoviews 1.15.0, hvplot 0.8.1, bokeh 2.4.3
Language Extension Version (if applicable)
No response
Anaconda Version (if applicable)
No response
Running Jupyter locally or remotely?
Remote

I'm using the simple repro code from https://github.com/microsoft/vscode-jupyter/issues/1714 to test:
import xarray as xr
import hvplot.xarray
import numpy as np

arr = xr.DataArray(
    np.random.random((2, 3, 4)),
    dims=['x', 'y', 'time'],
    coords={'x': np.arange(2), 'y': np.arange(3), 'time': np.arange(4)}
)

test = arr.hvplot(x='x', y = 'y')

Re-run this until it works
import holoviews as hv
renderer = hv.renderer('bokeh')
renderer.app(test, show=True)

Note I also had to set the environment variable: BOKEH_ALLOW_WS_ORIGIN=* to avoid https://github.com/bokeh/bokeh/issues/10765 and https://github.com/microsoft/vscode-jupyter/issues/4132

@ddrinka
I've tried this at my end and this seems to work without any issues.
Could you try the following:

Run this cell first

import ipywidgets as widgets
widgets.IntSlider()

Next run your two cells import xarray and then the second cell import holoviews

Let me know if this now works as expected.

Thanks for filing this issue, I'll discuss this with the team and look into this.

At first when I began testing today I wasn't able to reproduce the issue.  I was able to re-run the renderer.app cell repeatedly and always got a chart and no Javascript errors.
Then I switched to the Jupyter Output Window (I had been in a Terminal Window), and the error now occurs every time I run the cell.  No chart and net::ERR_FAILED errors.

Trying to replicate that behavior: starting VS Code with the Terminal visible, and running the cells described above, did not yield what I'd hoped.  At this time nothing I do results in a successful chart being displayed.  I receive a net::ERR_FAILED every time I run the second cell.

A race condition exists between the backend Tornado server starting up and the port being forwarded, to making the first HTTP request. Re-running the cell repeatedly either results in a chart being displayed or no chart being displayed.

Do I understand correctly -

A Tornado server is set up somewhere on the remote
Automatic port forwarding kicks in to forward that port
The forwarded port is accessed from the notebook renderer

But the race is in forwarding that port before the renderer needs it? Is that what you think is happening @DonJayamanne?
If you can set a static port, you could probably forward it with forwardPorts in your devcontainer.json and that could help with the race.

I'll test with a static port.
Notably I'm not getting a connection timeout error as that port comes online.  I'm getting this net::ERR_FAILED in the service worker.  I don't have an understanding of how the magic works with the port forwarding, so maybe that's the error that would be expected if no port was open, but usually for an HTTP connection I'd expect some timeout time that would give that port a few hundred milliseconds to arrive.

Today I'm not able to replicate the race condition, so I can't tell if the static port helps...  It's not a great long term solution though because there may be many apps created in a notebook and managing the port numbers, shutting down the existing applications, etc would really limit the notebook experience.
The requirement to create an app and bind it to a port in the first place is a workaround for the inability of Bokeh/Holoviews to communicate back through the IPython Proxy or whatever in the first place.  The following should "just work", and does on a Jupyter instance running directly in the VS Code Terminal with no additional ports forwarded:

This renders but the interactivity doesn't work in VS Code.
Here's the channel that was created on Jupyter Lab:

It seems like there are a few outstanding issues logged for Bokeh and VS Code.  I can create a new one for the above behavior if that would be helpful.

But the race is in forwarding that port before the renderer needs it? Is that what you think is happening @DonJayamanne?

Yes.

The following should "just work", and does on a Jupyter instance running directly in the VS Code Terminal with no additional ports forwarded:

@ddrinka I'm assuming you are still running all of this in WSL. Is that right?

cate the race condition, so I can't tell if the static port helps... It's not a great long term solution

Understood.
@alexr00 Any idea what we can do here.
Basically there seems to be a race condition here. The port forwarding seems to happen after the webview attempts to access the port.

If a webview needs the port then the owner of the webview should call asExternalUri to cause it to be forwarded. Automatic port forwarding is a user facing feature and works by polling, with a potentially non-constant polling frequency depending on the speed of the machine. Because of this, it's not safe to rely on automatic port forwarding for programmatic access to forwarded ports.

@DonJayamanne yes, this is all WSL.
@alexr00 understood.  That polling interval sounds exactly like the cause of the trouble.
I'm out of my depth with all these internals but I'm happy to open an issue with Bokeh regarding their webview utilization.
While the experts are looking at this, and if you'll forgive my hijacking, can you provide any advice for Bokeh to solve the proxy communication issue that leads to this requirement for opening additional ports in the first place?
https://github.com/bokeh/bokeh/issues/10765
https://github.com/microsoft/vscode-jupyter/issues/4132
It sounds like work was done for iPyWidgets that would have to be done for Bokeh as well to make it work?
https://github.com/microsoft/vscode-jupyter/wiki/Component:-IPyWidgets

With IPyWidgets, there are no custom ports open, IPyWidgets communicate over the Jupyter protocol.
I'll dig through the bokeh code and get in touch with their maintainers.
My prelimnary suggestion would be to use Jupyter protocol as thats more resilient, else anyone dealing with Jupyter remotely could have similar issues with firewall restrictions and the like.

By default I believe Bokeh does use the Jupyter protocol in a way similar to IPyWidgets.  This ticket exists due to my attempt to work around the inability of Bokeh to succeed in its normal communication style by forcing open a new Tornado backend server and using that instead.  Which almost works.  :p

is ticket exists due to my attempt to work around the inability of Bokeh to succeed in its normal communication style by forcin

Could you provide more information about this, is there an issue on the Boken repo for this (the problem you're trying to work around)?
I ask because fixing that root problem would then alleviate this issue.

Those tickets I linked above,
https://github.com/bokeh/bokeh/issues/10765
https://github.com/microsoft/vscode-jupyter/issues/4132
seem to track the base issue.

My prelimnary suggestion would be to use Jupyter protocol as thats more resilient, else anyone dealing with Jupyter remotely could have similar issues with firewall restrictions and the like.

Just for some context, Bokeh (even the current Bokeh server) well predates JupyterLab and IIRC even predates notebook comms. But more importantly, most usage of Bokeh server is simply not in notebooks at all, so having Jupyter comms be the only, or even the default, transport, is a non-starter. I do very much think that liberating the Bokeh protocol from a particular transport, so that bi-directional Bokeh eventing could easily happen over websocket, or jupytercomms, or whatever else, would be fantastic to have happen. But Bokeh is no longer something I get paid to work on, and this is not really a free-time chunk of work. I am not sure when it might happen without a non-trivial dedication of resources.

I've done enough issue-hijacking.  I'll jump over to https://github.com/bokeh/bokeh/issues/10765 for further conversation about Bokeh and VSCode using the default transport, and leave this issue to track any additional thoughts on the race condition when Bokeh is running in Server mode.
Thanks for your input @bryevdv, appreciate the response here.

Summary for internal (personal notes):

Not much can be done from VS Code to resolve this issue
If Bokeh were to use IPYwidgets and kernel Comms messages instead of a custom websocket connection that would address this issue.
See here for context of the current approach https://github.com/microsoft/vscode-jupyter/issues/11368#issuecomment-1253222327

I'm going to close this as something that cannot be fixed in VS Code as this is specific to bokeh package.
However if ther'es something we (Jupyter extension or VS Code) can do to resolve this, please do comment here or create a new issue
Closing this for now.


What about Docs?

Hey there, I wonder what we should do for the documentation on this project. @VkashPoudel  Any thoughts?

Write simple documents and we can turn on pages.

So what you are saying is that we should

[ ] Create a docs folder
[ ] Create a new index.md document
[ ] Turn on github Pages
[ ] Decide if we want to go with sometime more complex


PostCSS fonts

When including styles from node_modules, sometimes the font faces refer to the packages font files. When PostCSS process that, it doesn't copy the font files over.
For example with primereact installed at node_modules/primereact/resources/themes/lara-dark-amber/theme.css
@font-face {
  font-family: "Inter var";
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
  font-named-instance: "Regular";
  src: url("./fonts/Inter-roman.var.woff2?v=3.19") format("woff2");
}

Suspenders didn't add additional postcss modules, but this is what I had to do to get that working:
module.exports = {
  plugins: [
    require('postcss-import'),
    require('postcss-nesting'),
    require('autoprefixer'),
    require('postcss-url')({
      url: 'copy',
      assetsPath: 'static'
    })
  ],
}

Thank you for opening this.

When including styles from node_modules, sometimes the font faces refer to the packages font files

Can you provide an example of how you included these styles? I want to get a better understanding of the use case.

First
npm install primereact

In your application.postcss.css, add the following
@import "primereact/resources/themes/lara-light-cyan/theme.css";

Build the css and go to the root path of your rails app. Notice the console it says its missing a font.
Then add
    require('postcss-url')({
      url: 'copy',
      assetsPath: 'static'
    })

to your postcss.config.js. Rebuild the css, notice the new files located in assets/static. Go to the root path, now the error is gone.

Fixed in #1191


Feature Request: Multiple alerts in on_prometheus_alert trigger

It would be great if the on_prometheus_alert trigger supported multiple alert names as a comma separated string or an array. E.g.:
- triggers:
    - on_prometheus_alert:
        alert_name: [ MyCustomCPUAlert, MyCustomMemoryAlert, MyCustomDiskAlert ]
  actions:
    - default_enricher: {}

Hi @otherguy
You can do it this way:
- triggers:
    - on_prometheus_alert:
        alert_name:  MyCustomCPUAlert
    - on_prometheus_alert:
        alert_name:  MyCustomMemoryAlert
    - on_prometheus_alert:
        alert_name:  MyCustomDiskAlert
  actions:
    - default_enricher: {}

Given the above, do you still need the array option?

Hey @arikalon1 and thanks for the explanation! No, I believe this covers our use case nicely.
Is it also possible to enrich an alert in multiple triggers, and if so, does it follow the order defined in the configuration?
Eg:
- triggers:
    - on_prometheus_alert:
        alert_name:  MyCustomCPUAlert
    - on_prometheus_alert:
        alert_name:  MyCustomMemoryAlert
    - on_prometheus_alert:
        alert_name:  MyCustomDiskAlert
  actions:
    - default_enricher: {}

- triggers:
    - on_prometheus_alert:
        alert_name:  MyCustomCPUAlert
  actions:
    - some_other_enricher: {}

Awesome, thanks :) That covers my usecase then and I will close this.


build errors: trait bounds other than Sized on const fn parameters are unstable

I tried to compile lock_api and I got these errors:
   Compiling lock_api v0.4.7
error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
   --> C:\Users\Santino\.cargo\registry\src\github.com-1285ae84e5963aae\lock_api-0.4.7\src\mutex.rs:150:6
    |
150 | impl<R: RawMutex, T> Mutex<R, T> {
    |      ^
...
154 |     pub const fn new(val: T) -> Mutex<R, T> {
    |     --------------------------------------- function declared as const here
    |
    = note: see issue #93706 <https://github.com/rust-lang/rust/issues/93706> for more information
    = help: add `#![feature(const_fn_trait_bound)]` to the crate attributes to enable

error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
   --> C:\Users\Santino\.cargo\registry\src\github.com-1285ae84e5963aae\lock_api-0.4.7\src\remutex.rs:231:6
    |
231 | impl<R: RawMutex, G: GetThreadId, T> ReentrantMutex<R, G, T> {
    |      ^
...
235 |     pub const fn new(val: T) -> ReentrantMutex<R, G, T> {
    |     --------------------------------------------------- function declared as const here
    |
    = note: see issue #93706 <https://github.com/rust-lang/rust/issues/93706> for more information
    = help: add `#![feature(const_fn_trait_bound)]` to the crate attributes to enable

error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
   --> C:\Users\Santino\.cargo\registry\src\github.com-1285ae84e5963aae\lock_api-0.4.7\src\remutex.rs:231:19
    |
231 | impl<R: RawMutex, G: GetThreadId, T> ReentrantMutex<R, G, T> {
    |                   ^
...
235 |     pub const fn new(val: T) -> ReentrantMutex<R, G, T> {
    |     --------------------------------------------------- function declared as const here
    |
    = note: see issue #93706 <https://github.com/rust-lang/rust/issues/93706> for more information
    = help: add `#![feature(const_fn_trait_bound)]` to the crate attributes to enable

error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
   --> C:\Users\Santino\.cargo\registry\src\github.com-1285ae84e5963aae\lock_api-0.4.7\src\rwlock.rs:367:6
    |
367 | impl<R: RawRwLock, T> RwLock<R, T> {
    |      ^
...
371 |     pub const fn new(val: T) -> RwLock<R, T> {
    |     ---------------------------------------- function declared as const here
    |
    = note: see issue #93706 <https://github.com/rust-lang/rust/issues/93706> for more information
    = help: add `#![feature(const_fn_trait_bound)]` to the crate attributes to enable

For more information about this error, try `rustc --explain E0658`.
error: could not compile `lock_api` due to 4 previous errors

rustc --version --verbose:
rustc 1.61.0-nightly (68369a041 2022-02-22)
binary: rustc
commit-hash: 68369a041cea809a87e5bd80701da90e0e0a4799
commit-date: 2022-02-22
host: i686-pc-windows-msvc
release: 1.61.0-nightly
LLVM version: 14.0.0

Update to the latest nightly.

This version requires a very recent version of the nightly that doesn't build many other packages. Emitter added two new methods in the recent nightly versions. Some packages fail because of that, but this package requires the latest nightly.

Racer doesn't depend on parking_lot at all.

Yes, but rls depends on both parking_lot and racer. One of them requires the latest nightly and the others do not build with the latest.

I don't think it is reasonable for parking_lot to support older nightly versions. The whole point of nightly is that it is unstable and you are responsible for keeping up with changes. If you really need it then you can use a nightly with a version number of 1.60, which will fail the check in build.rs.

I'm not sure if I understand this correctly.
I thought that parking_lot and lock_api would work on any nightly version greater than msvr unless I explicitly enable nightly feature. Once it is enabled, I can agree that I'm then responsible for updating to the appropriate nightly (though, still, it would be nicer to support some older nightlies).
But I ran into this issue having just
lock_api = "0.4.7"

in my cargo lock and running cargo build using rust 1.61.0-nightly (45e2c2881 2022-02-20) (which I cannot upgrade, unfortunately).
Do you think it could be fixed somehow?

I supposed the build.rs check could be changed to disable the flag for 1.61 on the nightly channel, and only enable it for 1.61 stable/beta. I'd be happy to accept a PR for that.


make this an explicit function of the sapling epoch

Here try this @juanky201271 !

@Oscar-Pepper our test framework didn't catch this because we are starting our blockchain with Sapling and Orchard Epochs set to 1.  It'll be a real improvement to add an integration_test.rs that catches this error!

@Oscar-Pepper our test framework didn't catch this because we are starting our blockchain with Sapling and Orchard Epochs set to 1. It'll be a real improvement to add an integration_test.rs that catches this error!

coming soon!


yout app is broke in heroku check it

your web app which is hosted in heroku had been broken kindly check it.i think heroku going to stop its free services so it deletes the inactive accounts present there.so may be that is the problem

I am able to see only below error image

Yes heroku service is closed.


[Bug:Server] Lack of usage information on streaming response

Prerequisites
Please answer the following questions for yourself before submitting an issue.

[x] I am running the latest code. Development is very rapid so there are no tagged versions as of now.
[x] I carefully followed the README.md.
[x] I searched using keywords relevant to my issue to make sure that I am creating a new issue that is not already open (or closed).
[x] I reviewed the Discussions, and have a new bug or useful enhancement to share.

Expected Behavior
The one below is the last chunk coming from the streaming response generator using the llama.cpp server. This is the expected behaviour since it contains usage info (CompletionUsage) about the tokens consumed:
ChatCompletionChunk(
id='chatcmpl-<id>',
choices=[Choice(delta=ChoiceDelta(content=None, function_call=None, role=None, tool_calls=None), finish_reason='stop', index=0, logprobs=None)],
created=1722354477,
model='my_model.gguf',
object='chat.completion.chunk',
service_tier=None,
system_fingerprint=None,
usage=CompletionUsage(completion_tokens=10, prompt_tokens=22, total_tokens=32))

Current Behavior
When I use llama-cpp-python to start the server, keeping same settings (stream=True), and then from the client ask for the stream generator, the last chunk looks like this one:
ChatCompletionChunk(
id='chatcmpl-<id>',
choices=[Choice(delta=ChoiceDelta(content=None, function_call=None, role=None, tool_calls=None), finish_reason='stop', index=0, logprobs=None)],
created=1722354657,
model='my_model.gguf',
object='chat.completion.chunk',
service_tier=None,
system_fingerprint=None,
usage=None)

As you can see, the last chunk does not contain info about the usage (it is always None), which is not expected. If I turn off the streaming (stream=False) the bug is not there.
Environment and Context
I'm using:

Windows 11
python 3.11.9
llama-cpp-python 0.2.84
llama.cpp b3486

Failure Information (for bugs)
Lack of usage information when stream is True.
Steps to Reproduce
Please provide detailed steps for reproducing the issue. We are not sitting in front of your screen, so the more detail the better.

step 1: run any supported gguf on llama-cpp-python 0.2.84 server
step 2: client side run the following code, ensuring stream=True:

import openai

client = openai.OpenAI(base_url="http://<IP_ADDRESS>:8000/v1")

m=client.models.list()
output_generator = client.chat.completions.create(
	model=m.data[0].id,
	messages = [
              {"role": "system", "content": "You are an helpful assistant."},
              {
                  "role": "user",
                  "content": "hello"
              }
          ],
	temperature=0,
	stream=True
)
# Collect and concatenate responses from the generator
response_text = ""
for output in output_generator:
    print(output)
    new_content = output.choices[0].delta.content
    if new_content:
        print(new_content, end='', flush=True)
        response_text += new_content

step 3: last print(output) is showing the snipped above

Failure Logs
Please include any relevant log snippets or files. If it works under one configuration but not under another, please provide logs for both configurations and their corresponding outputs so it is easy to see where behavior changes.
Environment info:
llama-cpp-python$ python3 --version
Python 3.11.9

llama-cpp-python$ pip list | egrep "uvicorn|fastapi|sse-starlette|numpy"
fastapi                                  0.111.1
numpy                                    1.26.4
sse-starlette                            2.1.2

tested now on llama-cpp-python==0.2.87 and it seems it has been solved.


Wrong version is printed at run time

Description of the bug
This gets printed to the screen at run time
UPHL-BioNGS/walkercreek v1.0dev-g032d370
Command used and terminal output
No response
Relevant files
No response
System information
No response

Corrected in v2.0.0 release


fix(footer): add ref nofollow to legal links

Slight SEO optimisation!

@hscgavin I think we'll do a fast-follower to the CA team's work to sort that out.


Plugin updates june 2023

Plugins Update
May 2023

advanced-custom-fields-pro
forms-for-campaign-monitor
iframely
newspack-newsletters
pantheon-advanced-page-cache
rss-importer
wordpress-importer
wordpress-seo

June 2023

custom-post-type-ui
disable-comments
newspack-newsletters
taxonomy-switcher
wordpress-seo
wp-native-php-sessions
xml-sitemap-feed

Core Update

WordPress 6.2.2

@rpeterman-gp or @brandonhundt can you approve this PR? it contains plugins and wp core updates. Thanks


Is there a way to mark responses as ones that should be sent base64 encoded to be returned via api gateway?

Using a raw lambda proxy integration you can do something like:
return {
  statusCode: 200,
  body: myBase64EncodedImage,
  isBase64Encoded: true
}

and you are able to send binary files back via API Gateway (up to 10mb).
Does lambda web adapter expose functionality to do the same thing somehow or is this not supported? I didn't see base64 encoding called out anywhere so I don't know if I missed it or not.
My current lambda service is able to return html and css just fine but when I try to return an image that is bundled with my container the content of the body seems to get stripped out.

Lambda Web Adapter does support binary contents. LWA uses lambda-http crate to handle that. Lambda-http will detect binary contents based on content-type and content-encoding headers, and auto base64 encode the data. You don't need to encode the binary data yourself.

You can take a look at the Nginx example.


What is the release schedule?

Hello,
I just wanna know when should I expect the next release for the plugin. It seems like you did a monthly release for a few months and stopped doing that.
The last release was two months ago.
Thanks!

Thanks!


python.terminal.activateEnvironment activates venv for non-python terminal

Type: Bug
VS Code visually makes a distinction between a Python and bash terminal (i.e. the former is shown as [>] Python, the later as bash with a cube icon).
But the behaviour appears to have changed and there's no longer any difference between them - the setting python.terminal.activateEnvironment=true  results in vscode sourcing the default venv when I'm trying to create a bash terminal, and python.terminal.activateEnvironment=false prevents it sourcing the venv for a python terminal.
This appears to have changed recently, I could always create a python terminal that sourced the default venv and a bash terminal that did not. Now there's no choice - all terminals now behave the same, i.e. they either source a venv or not. It seems pointless to show different icons for two terminals that are both activated venvs (or not)
This is incredible annoying, I now have to fall back to manually managing venvs if I need to run scripts outside a sourced venv since I can no longer rely on a bash terminal being different to a Python terminal.
VS Code version: Code 1.82.2 (abd2f3db4bdb28f9e95536dfa84d8479f1eb312d, 2023-09-14T05:51:20.981Z)
OS version: Linux x64 5.15.0-84-generic
Modes:

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz (12 x 3700)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okvideo_decode: enabledvideo_encode: disabled_softwarevulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: disabled_off

Load (avg)
2, 1, 1

Memory (System)
31.25GB (1.95GB free)

Process Argv
--unity-launch --crash-reporter-id fe534736-e0aa-4f9a-9d8a-1ef5598d80d0

Screen Reader
no

VM
0%

DESKTOP_SESSION
ubuntu

XDG_CURRENT_DESKTOP
Unity

XDG_SESSION_DESKTOP
ubuntu

XDG_SESSION_TYPE
x11

Extensions (36)

Extension
Author (truncated)
Version

ruff
cha
2023.38.0

doxdocgen
csc
1.4.0

githistory
don
0.6.20

gitlens
eam
14.3.0

prettier-vscode
esb
10.1.0

codespaces
Git
1.15.4

copilot-chat
Git
0.7.1

copilot-labs
Git
0.15.1019

todo-tree
Gru
0.0.226

language-cython
guy
0.0.7

mypy
mat
0.2.3

rainbow-csv
mec
3.7.1

graphql
mqu
0.1.2

pylint
ms-
2023.6.0

python
ms-
2023.16.0

vscode-pylance
ms-
2023.9.20

jupyter
ms-
2023.8.1002501831

jupyter-keymap
ms-
1.1.2

jupyter-renderers
ms-
1.0.17

vscode-jupyter-cell-tags
ms-
0.1.8

vscode-jupyter-slideshow
ms-
0.1.5

remote-containers
ms-
0.309.0

remote-ssh-edit
ms-
0.86.0

remote-wsl
ms-
0.81.4

remote-repositories
ms-
0.38.1

remote-server
ms-
1.4.3

test-adapter-converter
ms-
0.1.8

gremlins
nho
0.26.0

vscode-yaml
red
1.14.0

rust-analyzer
rus
0.3.1673

even-better-toml
tam
0.19.2

grm-syntax
the
1.0.0

sort-lines
Tyr
1.10.2

vscode-lldb
vad
1.10.0

vscode-icons
vsc
12.5.0

local-history
xyz
1.8.1

(2 theme extensions excluded)

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscoreces:30445986
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
py29gd2263cf:30792227
vsclangdf:30486550
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
3biah626:30602489
89544117:30613380
showlangstatbar:30737416
0bi6i642:30841073
03d35959:30757346
pythonfmttext:30731395
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
pythonnosmt12:30797651
pythonidxpt:30805730
pythonnoceb:30805159
copilotsettingc:30839828
synctok:30821570
dsvsc013:30795093
dsvsc014:30804076
diffeditorv1:30821571
pythonmhint1:30842940
dsvsc015:30845448

/extPython
Please see https://github.com/microsoft/vscode-python/issues/20562

It looks like this is caused by the Python extension. Please file the issue to the Python extension repository. Make sure to check their issue reporting template and provide them relevant information such as the extension version you're using. See also our issue reporting guidelines for more information.
Happy Coding!


[impl]Complete fnBuilder

detect how to record parameters
detect how to insert statement

API insert parameter into builder at commit: d13b964d280ef6f670a211b9918c0ddedb87534f

Done at commit: c76b236c9e707469e7526010d0f8783a6c305950
ps. Although already impl method help user insert parameter, how to get parameter from listening is not complete yet.


Docker build error.

Trying to install folllowing the instructions at https://github.com/myshell-ai/MeloTTS/blob/main/docs/install.md
What happens (after a git copy) :

╭─arthur at aquarelle in ~/dev/ai/MeloTTS on main✔ 24-05-07 - 23:35:27
╰─(base) ⠠⠵ docker build -t melotts .                                                                                on main|✔
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
            Install the buildx component to build images with BuildKit:
            https://docs.docker.com/go/buildx/

Sending build context to Docker daemon  29.04MB
Step 1/8 : FROM python:3.9-slim
 ---> a8260aeae86e
Step 2/8 : WORKDIR /app
 ---> Using cache
 ---> 224330a24d00
Step 3/8 : COPY . /app
 ---> Using cache
 ---> 5e1d5add8180
Step 4/8 : RUN apt-get update && apt-get install -y     build-essential libsndfile1     && rm -rf /var/lib/apt/lists/*
 ---> Using cache
 ---> e70782d33c30
Step 5/8 : RUN pip install -e .
 ---> Using cache
 ---> 24dbac85d7d0
Step 6/8 : RUN python -m unidic download
 ---> Using cache
 ---> 58ac3b7f2ca4
Step 7/8 : RUN python melo/init_downloads.py
 ---> Running in 3a0bfdab6fe0
[nltk_data] Downloading package averaged_perceptron_tagger to
[nltk_data]     /root/nltk_data...
[nltk_data]   Unzipping taggers/averaged_perceptron_tagger.zip.
[nltk_data] Downloading package cmudict to /root/nltk_data...
[nltk_data]   Unzipping corpora/cmudict.zip.
Traceback (most recent call last):
  File "/app/melo/init_downloads.py", line 5, in <module>
    from melo.api import TTS
  File "/app/melo/api.py", line 18, in <module>
    from .download_utils import load_or_download_config, load_or_download_model
  File "/app/melo/download_utils.py", line 4, in <module>
    from cached_path import cached_path
  File "/usr/local/lib/python3.9/site-packages/cached_path/__init__.py", line 13, in <module>
    from ._cached_path import cached_path
  File "/usr/local/lib/python3.9/site-packages/cached_path/_cached_path.py", line 15, in <module>
    from .schemes import (
  File "/usr/local/lib/python3.9/site-packages/cached_path/schemes/__init__.py", line 6, in <module>
    from .s3 import S3Client
  File "/usr/local/lib/python3.9/site-packages/cached_path/schemes/s3.py", line 16, in <module>
    class S3Client(SchemeClient):
  File "/usr/local/lib/python3.9/site-packages/cached_path/schemes/s3.py", line 18, in S3Client
    botocore.exceptions.HTTPClientError,
AttributeError: module 'botocore.exceptions' has no attribute 'HTTPClientError'
The command '/bin/sh -c python melo/init_downloads.py' returned a non-zero code: 1
╭─arthur at aquarelle in ~/dev/ai/MeloTTS on main✔ 24-05-07 - 23:37:23
╰─(base) ⠠⠵

Thank you.

@samtin0x thanks, curious why that worked

Yep my build is also going nuts repeating version numbers lowering by one:
> => # Collecting boto3<2.0,>=1.0
 => => #   Downloading boto3-1.34.60-py3-none-any.whl (139 kB)
 => => #      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 139.3/139.3 kB 5.3 MB/s eta 0:00:00
 => => # Collecting botocore<1.35.0,>=1.34.60
 => => #   Downloading botocore-1.34.60-py3-none-any.whl (12.0 MB)

please update this , build takes a long time to download all botocore versions

fuck botocore


cleaned up TODOs

Fixes #?
Context

Contributor Checklist

[x] Review Contribution Guidelines
[x] Make sure that all commits are signed off to indicate that you agree to the terms of Developer Certificate of Origin.
[x] Make sure all contributed code can be distributed under the terms of the Apache License 2.0, e.g. the code was written by yourself or the original code is licensed under a license compatible to Apache License 2.0.
[x] Check "Allow edit from maintainers" option in pull request so that additional changes can be pushed by Gradle team
[x] Provide integration tests (under <subproject>/src/integTest) to verify changes from a user perspective
[x] Provide unit tests (under <subproject>/src/test) to verify logic
[x] Update User Guide, DSL Reference, and Javadoc for public-facing changes
[x] Ensure that tests pass sanity check: ./gradlew sanityCheck
[x] Ensure that tests pass locally: ./gradlew <changed-subproject>:quickTest

Gradle Core Team Checklist

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation
[ ] Recognize contributor in release notes

Only 1 TODO left regarding SPI. This will make it into 7.6 RC1 but is not ready yet.

@bot-gradle test and merge

OK, I've already triggered a build for you.


Translated TIE/fo, T-70 and Gozanti cards

After some time away from X-wing, it's time to keep these translations up to date :P
-Added translated names for T-70, TIE/fo and Gozanti expansions
-Translated all the pilots and new cards from the expansions above
-Added 'ship' tag to both TIE Defender titles*
*Title slot is missing in TIE Defenders in Spanish. I can't remember if we needed to do something else besides adding the 'ship' tag with the translated name to fix it. If so, feel free to do it :P

Adding the ship tag was all that was needed.  Thanks!


Solr 9 SSL incompatibilities

Solr 9.2.1 facing two issues:

except solr home dir, read/write permissions are needed and hence fails

                    "solrClientTLS": {
                        "mountedTLSDir": {
                            "path": "/abv-client-tls",  # see `spec.customSolrKubeOptions.podOptions.volumes` below
                            "path": "/opt/solr-9.2.1/abc-client-tls",

SNI 400s

2023-07-25 17:19:34.649 WARN  (qtp912747546-98) [] o.e.j.s.HttpChannel handleException /solr/admin/info/system org.eclipse.jetty.http.BadMessageException: 400: Invalid SNI
2023-07-25 17:19:34.656 WARN  (qtp912747546-35) [] o.e.j.s.HttpChannel handleException /solr/admin/info/system org.eclipse.jetty.http.BadMessageException: 400: Invalid SNI

The first one is SOLR-16934
The second one is an issue with how the Solr Operator calls the Solr API. Basically we don't always use a "correct" hostname, and instead use localhost. There is a new option in Solr 9.2.1 (SOLR-16735), -Dsolr.jetty.ssl.sniHostCheck, that acts in the same way that verifyHostName does. So we need to set both options according to what the user wants regarding verifyHostName. If they want to verifyHostName, then we need to make sure that the correct hostname is used when executing the liveness/readiness probes.

This has been fixed by #610


model() is not found

I am doing relational active record as the link:
https://www.yiiframework.com/doc/guide/1.1/en/database.arr
But it's showing 'Call to undefined method common\models\MyModel::model()'
Additional info
| ---------------- | ---
| Yii version | 2.0.12?
| PHP version | 7.14
| Operating system | Mac

Opp! I did't notice it. Thx. Btw, what is the way for 2.0 ?

https://www.yiiframework.com/doc/guide/2.0/en/db-active-record


Make DRP calendar better decoupled from DRP

Description
Similar to Calendar, we want DRP calendar (Range calendar) to become a standalone component. It requires adjustments to the component's API for it to receive similar properties to DRP.
How has this been tested?
Existing tests including screenshots, manual tests with new page.
Documentation changes
[Do the changes include any API documentation changes?]

[ ] Yes, this change contains documentation changes.
[x] No.

Related Links
[Attach any related links/pull request for this change]

Review checklist
The following items are to be evaluated by the author(s) and the reviewer(s).
Correctness

[ ] Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
[ ] Changes do not include unsupported browser features, see CONTRIBUTING.md.
[ ] Changes were manually tested for accessibility, see accessibility guidelines.

Security

[ ] If the code handles URLs: all URLs are validated through the checkSafeUrl function.

Testing

[ ] Changes are covered with new/existing unit tests?
[ ] Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Assuming the visual regression test failures are expected based on the styling changes in this PR

I am thinking those are somewhat flaky. The screenshot tests indicate no regression


(Feature) metadata should be added to zip archive for download

Closes #1041

@mariano-aguero
typo in file MintedCappedCrowdsale_data.txt
Should be 'parameters'

Pull Request Test Coverage Report for Build 3038

0 of 2 (0.0%)  changed or added relevant lines in 1 file are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.006%) to 19.934%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/components/stepFour/utils.js
0
2
0.0%

Files with Coverage Reduction
New Missed Lines
%

src/components/stepFour/utils.js
1
0.0%

Totals

Change from base Build 3030:
-0.006%

Covered Lines:
884

Relevant Lines:
3803

💛  - Coveralls

@dennis00010011b

typo in files with metadata

Fix typo


Compatibility with streaming APIs.

Hello @andarist,
I'm very sorry to bother you but I have this burning question I wanted to ask you for weeks.
Is there a world where tss-react is compatible with the streaming APIs?
This module is a wrapper around @emotion/react that provide a hook-based API.  See your quote.
As of today, the only way to make tss-react work with SSR is to implement the advanced approach and this approach doesn’t work with the steaming APIs.

I don't care how hard it is to set up, I'm willing to provide and maintain a specific SSR utility on a per framework basis just like I currently do for Next.js.
But is it or will it ever be feasible to support streaming?
Thank you very much for taking a look at this.
PS: Despite the little number of stars, this module is actually used. Mostly by peoples using it to migrate from MUIv4 to MUIv5 without having to refactor the whole codebase.

Yes, it should be possible to support streaming - if you only wrap your app with some special provider etc. Emotion itself is not 100% compatible with streaming right now, it's quite nuanced. I'm - sort of - waiting for better APIs (Resources) that are supposed to make it easier to implement this stuff in the future.
As right now, to make streaming possible we'd have to render smth like that on the server (or inject this into the stream):
       <style
          // construct the style tag from the styles inserted into the cache since the lust chunk was written to the stream
        />
        <script>
          var cs = document.currentScript
          document.head.appendChild(cs.previousSibling)
          cs.remove()
        </script>

On top of that, we'd have to figure out how to rehydrate this properly on the client side (totally doable, I just didn't exactly think deeply about how to do this best).
With Next.js the new version also comes with a custom hook, useServerInsertedHTML, that could potentially be utilized to make this easier for us. However, from what I understand, this doesn't actually support streaming all that well because it only allows us to inject into the head once. I contacted the Next.js team this morning with a question about this. So I hope to learn more about this soon-ish.
Either way - this potentially could only make the integration with Next.js smoother and we need to support a wider ecosystem. If you'd like to collaborate on making a stream transformer for Emotion that could be used with any framework then I'm totally open to it. I have some idea on how we could make this work - I just couldn't find enough energy to do it on my own in the past months.

Thank you for the quick and detailed answer @Andarist,
This is very encouraging, I'm very glad that tss-react is not dead tech.

I'm waiting for better APIs (Resources) that are supposed to make it easier to implement this stuff in the future.

I'm not in a hurry at all, no user complained yet and I have no usecase for it.
I just wanted to know if we'll eventually be able, one way or another to support it or if it was a dead end.

I just couldn't find enough energy to do it on my own in the past months.

I'd love to but I don't think I'll have the bandwidth in the coming weeks.
That said, please, if you open an issue about it, tag me, I'll see what I can do!
I think waiting a little bit for the dust to settle around this is a good call.
Thanks again @Andarist,


Purpose (Purp)

How I could set the Purpose  of the Payment?
Should I extend the class ForeignCreditTransfer and BankCreditTransfer or did I miss something?

You're right, this isn't possible yet. In #15 in you can find a proposal for an implementation.
Example:
$transaction->setPurpose(new \Z38\SwissPayment\TransactionInformation\PurposeCode('AIRB'));

Note: If you need to make salary or pension payments (SALA/PENS), you have set the purpose on B-level (the Swiss Business Rules contain quite a few remarks on how to proceed in this case):
$payment->setCategoryPurpose(new \Z38\SwissPayment\PaymentInformation\CategoryPurposeCode('SALA'));

Please let me know if you have any remarks on the implementation or when you need more control over the transaction. As soon as you're able to accomplish your project, I will release a new version.

The Implementation sis great, it's flexible this way, I think the Impelementation of purpose is a good benefit for everyone, as SALA/PENS is widely used for payments  in Switzerland.