Error when upgrading packages at startup

During the apt -y update && apt-get -y update on scripts/ansible.sh looks like the package cloud-init requires interaction when upgrading:
openstack: Configuration file '/etc/cloud/cloud.cfg'
openstack: ==> Modified (by you or by a script) since installation.
openstack: ==> Package distributor has shipped an updated version.
openstack: What would you like to do about it ?  Your options are:
openstack: Y or I  : install the package maintainer's version
openstack: N or O  : keep your currently-installed version
openstack: D     : show the differences between the versions
openstack: Z     : start a shell to examine the situation
openstack: The default action is to keep your current version.
openstack: *** cloud.cfg (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing package cloud-init (--configure):
openstack: end of file on stdin at conffile prompt
openstack: Errors were encountered while processing:
openstack: cloud-init
openstack: E: Sub-process /usr/bin/dpkg returned an error code (1)

Is there any way to provide the option that is expecting?

@davidsalvador - Interesting... I last built the box last week and didn't run into this, so I wonder if there's some recent change in the repos that caused this to happen?
Also, are you using 16.04.1, or 16.04.0?

@geerlingguy I'm using Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-36-generic x86_64)

I temporarily fixed it by adding the following to scripts/ansible.sh:
echo "Y" > silent-configure
apt-get -y upgrade < silent-configure

However, this might not be the "cleanest" way of fixing it

Closing this as I can't reproduce this issue and haven't seen it happen on any of my builds; if you run into the problem, please use @davidsalvador's workaround above.


Use make ci-check on Travis

I forgot to edit .travis.yml when I introduced this Make target in
81895ba20b12db3d0c4f0e51956d672d62f6f748 (#1265).

Coverage remained the same at 57.117% when pulling 2d882ea3ba0e6d063f2ef9b0197712e712b8c00b on feature/use-ci-check-on-travis into 1279b675b1fdade3a71e13b02b885c2fe450f731 on master.


Ability to remove BTC and XCP base market pairs

Desktop: option to remove BTC and XCP Markets and set personal default market

added this ability to the wallet at some point.


Changing the IFS variable causes pash to crash

The IFS variable can be used as the input field separator. Some scripts might modify it which would cause it to change globally. This now causes pash to crash.

Closing until we find an example (otherwise it is very hard to debug and track)!


request hep: Please update luarocks to the latest version of the mainline.

thank you!

https://luarocks.org/modules/membphis/lua-resty-redis-cluster
release version v1.1 right now. I think you can fetch it from luarocks.org now. ^_^
related commit: https://github.com/iresty/lua-resty-redis-cluster/commit/087721be7ff1097aea48559bbdc569599887ece8


Bulk save attributeValueRepository  when add or update Product in admin panel

when add or update Product , It's  extremely slow  for  associate attributeValues,
Especially  when  Product is configurable type and  there are many locals
Need to collect insert objects and edit objects separately, execute sql in batch
and in edit view, could  eager load  'product_attribute_values' (n+1 query)

Yes, agreed with that, and we are also aware of that. We will optimize this.

Done in #6532


Remove curl shortening

Copying curl request should not be trimmed, as long curl requests are prime target for copying - manually building them is tedious, and they should be available regardless of the size.

Curious, why did you open a new PR? 😅

Curious, why did you open a new PR? 😅

You know, I don't remember it, actually...
I remember there was a reason, but I can't really tell what was it 😐


feat(connlib): remember recently connected gateways

Previously, connlib would only send the currently connected gateways to the portal upon a new connection intent. With our introduced idle connection timeout, this could result in the portal choosing a different gateway upon reconnecting to the resource.
To fix this, we introduce an LRU cache with at most 100 entries. Iteration over the LRU cache happens in MRU order, meaning a recently connected gateway will be at the front of the list.
We assume that this list is processed in order and thus preferring gateways that we are still connected to.
Related: #6347.

Does this require portal changes to work?

Does this require portal changes to work?

No, we use the existing field in connection intents to send these gateways. It would be good to get a confirmation from @AndrewDryga that the list of "connected gateways" is indeed processed in order.

See here for where the load_balance function is called:
https://github.com/firezone/firezone/blob/main/elixir/apps/api/lib/api/client/channel.ex#L498
And here for its implementation where we will use a connected Gateway preferred by the connlib:
https://github.com/firezone/firezone/blob/main/elixir/apps/domain/lib/domain/gateways.ex#L361

So I checked the portal code and I think this will have the behavior we're intending.
However, we may want to think about edge cases here. This effectively removes any load balancing logic for the duration of a Client's session. If the user travels on a plane for example while leaving Firezone signed in, the connections will never be re-routed to a closer Gateway. Currently the lat, lon pair is used to do that with each prepare_connection message.
I do think having sticky Gateways makes sense, but maybe we should clear this cache when we reset connection state to prevent the scenario above. I.e. when we roam.

That is a good idea.

Tested on macOS - seems to be working ok.


ion-segment fires ionChange before the DOM elements of the tapped segment are available

Bug Report
Ionic Info
Run ionic info from a terminal/cmd prompt and paste the output below.
cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.19.2
    ionic (Ionic CLI) : 3.20.0

global packages:

    cordova (Cordova CLI) : 8.0.0

local packages:

    @ionic/app-scripts : 3.1.8
    Cordova Platforms  : android 6.3.0 ios 4.5.4
    Ionic Framework    : ionic-angular 3.9.2

System:

    ios-deploy : 1.9.2
    ios-sim    : 6.1.2
    Node       : v9.8.0
    npm        : 5.6.0
    OS         : macOS High Sierra
    Xcode      : Xcode 9.3 Build version 9E145

Environment Variables:

    ANDROID_HOME : not set

Misc:

    backend : pro

Describe the Bug
I'm attempting to update values or attributes inside an ion-segment on tap. Using ionChange I'm triggering a function in my controller which updates an attribute on a DOM element inside the ion-segment which was tapped. The problem is that ionChange emits before the DOM of the tapped segment is available, causing undefined for the DOM elements of the selected segment and allowing me access only to the DOM elements of the current segment which is supposed to no longer be selected.
Presumably one solution would be to split ionChange into two methods and rename it to make it clear that it's only making the DOM available before the change occurs. Then provide a second method e.g. ionAfterChange which fires after the change has already, allowing access to the DOM of the altered view.
Steps to Reproduce
Steps to reproduce the behavior:

Program something similar to

<ion-segment [(ngModel)]="segmentMenu" (ionChange)="alterDomContent()">
  <ion-segment-button value="section1">section 1</ion-segment-button>
  <ion-segment-button value="section2">section 2</ion-segment-button>
</ion-segment>

<div [ngSwitch]="segmentMenu">
    <ion-list *ngSwitchCase="'section1'">
      <dom content of section 1>
    </ion-list>
    <ion-list *ngSwitchCase="'section2'">
      <dom content of section 2>
    </ion-list>
  </div>

When tapping section 2's segment button, ionChange does not make the DOM of section 2 available. Instead it only makes the DOM of the section you're leaving available.
This causes 'undefined' if you're trying to manipulate the DOM of section 2 after section 2 is tapped or manipulate the DOM of section 1 after section 1 is tapped.

Related Code
Provided within repro steps.
Expected Behavior
There does not seem to be a currently elegant solution of accessing the DOM of a segment which got tapped. The most elegant solution would be to provide two functions: ionBeforeChange and ionAfterChange. In ionBeforeChange the DOM of the leaving segment is available and in ionAfterChange the DOM of the newly selected segment is available.
Additional Context
There were several people having unresolved issues on ionic forums and stack overflow but I'm not able to find the links again.

Current workaround is wrapping the function inside ionChange in a setTimeout. This feels very dirty to do and I can't imagine it's good for performance.
alterdomContent() {
  setTimeout(() => {
    // code here
  }, 10);
}


Add Sign Message

##Description
Add Sign Messages
Refactor Forms
Edit Layout

LGMT . But we need to work on a better  signed message type


Crash with Brewin' and Chewin' kegs

Minecraft Version
1.19.2
What Mods Conflicts with
Brewin' And Chewin'
Describe the Incompatibility
Certain recipes cause a crash which locks the user out of the world.
Other Mods
All mods listed in the crash report. Relevant ones include Canary, Farmer's Delight, Italian Delight and Brewin' and Chewin'.
Additional Context
No response
Crash Report or Log
https://gist.github.com/Brown-bricks/88dda4ebfb3f6929b4315413ecaaf6f3
Mod Version
0.5.0.i-1.3.5
Incompatible Mod Version
No response
Forge Version
1.19-2.0

java.lang.NullPointerException: Cannot invoke "Object.equals(Object)" because the return value of "net.minecraft.world.item.Item.m_41469_()" is null
	at umpaz.brewinandchewin.common.block.entity.KegBlockEntity.canFerment(KegBlockEntity.java:334) ~[BrewinAndChewin-1.19-2.0.jar%23462!/:1.19-2.0] {re:mixin,re:classloading,pl:mixin:APP:create_central_kitchen.mixins.json:common.brewinandchewin.KegBlockEntityMixin,pl:mixin:A}
	at umpaz.brewinandchewin.common.block.entity.KegBlockEntity.fermentingTick(KegBlockEntity.java:204) ~[BrewinAndChewin-1.19-2.0.jar%23462!/:1.19-2.0] {re:mixin,re:classloading,pl:mixin:APP:create_central_kitchen.mixins.json:common.brewinandchewin.KegBlockEntityMixin,pl:mixin:A}

Ok, after carefully examing, I bilieve you should report it to Brewin' & Chewin' with details of what exactly key was brewing.
Central Kitchen adds no recipe or fluids or items to Brewin' & Chewin' and doesn't mess up its code of recipe or fermentng process.


Attached property usage

Are attached properties supposed to work yet, because I'm having trouble with one.

Yes, attached properties should definitely work. I will check it today!

Found the problem. Attached properties from parsed files are not registered. So it would work if your attached property was defined in a separate assembly, but since it's inside a same project it's not registered.
Anyway, I'm going to fix it soon and notify you!

Alright, it should work now. You can get latest version from MyGet feed.
Nuget V3: https://www.myget.org/F/ammy/api/v3/index.json
Nuget V2: https://www.myget.org/F/ammy/api/v2
Add it to Options -> Nuget Package Manager -> Package Sources
Don't forget to click Update button there.
After that just switch Package Manager source to this new feed and update-package Ammy. You might need to restart visual studio, since it uses assemblies from a package.
Thanks!

Works wonderfully in 1.1.25.


Add license

https://remarkable.guide/devel/github.html#license

LICENSE.txt file was added.

You'll probably want to update the license to say your name instead of giving GitHub the ownership of the code.


Website Template for Mobile Apps Development Company Added

Description
This could be a template for a mobile app development company for its sales to the clients and an interface for the clients to get the benefits from the company.
Fixes #350

Type of change

[x] New feature (non-breaking change which adds functionality)
[x] This change requires a documentation update

Explain the Testing instructions
Test Configuration:

Operating system: Any OS with any browser
Version: nil
Text-editors used: VS Code Editor

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules

ATTACH SCREEN-SHOTS / DEPLOYMENT LINK

Consider and Review this PR under GSSoC'22

Yes @VidhiBhatt01 it is totally made up on my own and thank you for the appreciation.


Add support for bokeh event callbacks

Adds support for the upcoming event callbacks in bokeh, currently being developed here.
Summary of how it works

Check if any of the skip_conditions apply, if so, skip

Grab all the requested attributes from the models and accumulate them in data

Check if there is a Comm instantiated otherwise open it and store it in a global registry

Check if there is a comm_state for the Comm otherwise make one defining a event_buffer, a blocked flag and a time

Check whether the comm_state is blocked or has timed out (i.e. Date.now()>comm_state.time+timeout):
a) if it's blocked put data along with cb_obj.event.event_name on top of the event_buffer
b) if it's not blocked also prepend to event_buffer but also call process_event with small timeout. The small timeout acts as a debouncing mechanism as new events can be pushed ahead of the original event in the event queue. After process_events is called set the comm_state to blocked

process_events will iterate over the event_buffer and filter out older duplicated events. This ensures only the latest event of each type is processed (e.g. to ensure panstart, pan and panend are all processed). (Can probably be simplified)

In python everything does its thing and sends back a message either acknowledging execution or failure. This message also contains the comm_id, with which the comm_state is looked up. If there is something on the event_buffer process it and keep the Comm blocked, otherwise unblock.

ToDo:

[x] Update docstring
[x] Finalize naming for Callback attributes
[ ] Add tests to ensure callbacks reference correct handles/models
[ ] Add documentation about defining custom Stream/Callbacks

Check if any of the skip_conditions apply, if so, skip

Grab all the requested attributes from the models and accumulate them in data

Check if there is a Comm instantiated otherwise open it and store it in a global registry

Check if there is a comm_state for the Comm otherwise make one defining a event_buffer, a blocked flag and a time

Check whether the comm_state is blocked or has timed out (i.e. Date.now()>comm_state.time+timeout):
a) if it's blocked put data along with cb_obj.event.event_name on top of the event_buffer
b) if it's not blocked also prepend to event_buffer but also call process_event with small timeout. The small timeout acts as a debouncing mechanism as new events can be pushed ahead of the original event in the event queue. After process_events is called set the comm_state to blocked
process_events will iterate over the event_buffer and filter out older duplicated events. This ensures only the latest event of each type is processed (e.g. to ensure panstart, pan and panend are all processed). (Can probably be simplified)

In python everything does its thing and sends back a message either acknowledging execution or failure. This message also contains the comm_id, with which the comm_state is looked up. If there is something on the event_buffer process it and keep the Comm blocked, otherwise unblock.

Ready for review.

There are a few minor outstanding things - just tell me when you think it is ready to merge and I'll merge (as long as the tests are passing).

I've addressed all your comments except for the change you are still going to make in bokeh. It's just that you commented on the line above in some cases.

Ok, merging.


Adds support for boost 1.59.0

Based upon patch at https://github.com/mutanabbi/chewy-cmake-rep/commit/ca7221f916ce631dd14b3be81e2c8d6b4d57659e.  See also #13
It is based off the latest master branch, and only contains the changes needed for making the code support boost 1.59.0.
These changes will work for boost 1.59.0 - but not previous versions, since some variables and function signatures changed.  Probably the best solution would be to do some sort of condition, but I am not familiar enough with the boost::test library to suggest what condition to key off of (I literally just took the changes from the above patch and based them off the master branch)

It looks to me like the appveyor failure is not related to this change...is there something I'm doing wrong?

Probably the best solution would be to do some sort of condition,

yes, it is. I've done this in my fork...

Yeah - I didn't look at the whole fork - just that one commit that was mentioned in Issue #13...I didn't know if there was more work going on (and the lack of 1.59.0 support was biting me) so I figured I'd work up a full PR in the meantime.  Looks like the stuff that you have going on in your fork is probably a better long-term solution, and is probably preferable to this PR for inclusion.
One note (that I didn't make clear) is that I actually did update this patch with a conditional (I base it off of BOOST_VERSION >= 105900) - and from my testing works with Boost 1.58 and 1.59 (I haven't tested other versions - but I'm guessing the they would work also).
Again - feel free to close the PR and merge in a more "official" one if needed.  I just thought I'd contribute back what I had found during my course of working with it.

Yes, my fork works (and tested) for boost 1.59 and prior. And yes, I also intended to do some more improvements. But my PR was declined because of formatting...

Just updated to remove the storage of the test name - however, in the fork at https://github.com/zaufi/teamcity-cpp/commit/d2ec061ca9b85252be6475a080d81b3db8127783, it uses full_name() which is not available in 1.58 and previous (it's p_name...and not a function) - so I added that to the conditional as well.

it uses full_name() which is not available in 1.58 and previous (it's p_name...and not a function) - so I added that to the conditional as well.

Yeah, it is in #if condition at that patch...

Thank you! Thank you, @zaufi, for original pull request!
I'll review and merge as soon as I set up old/new boost configurations on Travis.
(most likely on this weekends)


JWT Credentials for a cosumer

Hi;
I want to know how I add or delete a JWT credentials (https://getkong.org/plugins/jwt/) for a consumer.
Thanks

Because the JWT endpoints are part of a plugin, you currently need to make a "raw" request to kong. Future plans do include a wrapper class to handle this nicely.
Heres a basic example for creating a new JWT credential.
$kong = new Kong();
$consumer = $kong->getConsumer();

$payload = [
'algorithm' => 'HS256',
'secret' => 'mysupersecretkey'
];

$response = $consumer->request('POST', 'consumers/<consumer_id>/jwt', [], $payload);

As for deleting, it is the same process of making a raw request.
$response = $consumer->request('DELETE', 'consumers/<consumer_id>/jwt/<jwt_id>');

@lvillarino, I've started a basic implementation of this in a new branch jwt-plugin. If you want you can try that out, I've still yet to test it and add in some additional methods within the next day or two.
$kong = new Kong();
$jwt = $kong->getPluginJwt();

// exposes the current methods
$jwt->createConsumer();
$jwt->create();
$jwt->delete();
$jwt->list();

It's worth noting, this will not produce a JWT token, this simply creates the credential in Kong. To create a valid JWT token that you can used, I would recommend using https://github.com/lcobucci/jwt or any other library mentioned on https://jwt.io

Thanks for your respond,
Can you create a methods that delete all the credentials?


Excessive resource consumption makes minter impossible to use

Running yarn start:sandbox sends all CPUs close to 100% and starts swapping large amounts of memory to disk. I have quad core Intel i7-8650U CPU @ 1.90GHz with 16 GB of ram. It's making it impossible to use the minter.

This is an issue specific to sandbox mode. What's happening is the flextesa node is trying to "keep up" with blocks at a fixed interval (5 seconds I believe) up to the current timestamp. Stopping the system and starting it again at some later point in time, let's say 2 hours, means the node will try to process 1440 blocks as fast as it can, which will eat up large amounts of resources.
As I pointed out in another issue, the "solution" lies with clearing out all sandbox data with bin/reset --confirm (or sudo bin/reset --confirm on Linux) so the sandbox starts from scratch. This obviously isn't desirable if you want to persist your data across long running sessions, but I suggest in that case to configure OpenMinter in testnet mode. Not only will it avoid this issue, but it will use much fewer resources in general since it doesn't rely on a local indexer system.

1.I did the reset, it are all the resources nonetheless.

Why is it creating a block every 5 seconds when inactive, instead of
just doing it when there is a tx in the mempool?

Why not use the mockup mode for this?

On Mon, 8 Mar 2021, 15:58 lambdahands<EMAIL_ADDRESS>wrote:

This is an issue specific to sandbox mode. What's happening is the
flextesa node is trying to "keep up" with blocks at a fixed interval (5
seconds I believe) up to the current timestamp. Stopping the system and
starting it again at some later point in time, let's say 2 hours, means the
node will try to process 1440 blocks as fast as it can, which will eat up
large amounts of resources.
As I pointed out in another issue, the "solution" lies with clearing out
all sandbox data with bin/reset --confirm (or sudo bin/reset --confirm on
Linux) so the sandbox starts from scratch. This obviously isn't desirable
if you want to persist your data across long running sessions, but I
suggest in that case to configure OpenMinter in testnet mode. Not only will
it avoid this issue, but it will use much fewer resources in general since
it doesn't rely on a local indexer system.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/tqtezos/minter/issues/229#issuecomment-792854103, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAMETPW254PZ7YBGKI6XIGTTCTX4DANCNFSM4YZLLOVQ
.

1.I did the reset, it are all the resources nonetheless.

This could be other local services that are consuming a lot of resources on sandbox mode. Like I mentioned before, the sandbox environment spins up quite a few services (12 total), compared to testnet mode which only spins up four.

Why is it creating a block every 5 seconds when inactive, instead of just doing it when there is a tx in the mempool?
Why not use the mockup mode for this?

I believe @smondet would have more insight into how flextesa is configured to process blocks at fixed intervals and ways we may be able to help us out with our use case

Running a simple dapp locally on my machine to test minting NFTs should not involve running 12 different docker containers.

Flextesa by the default runs the baker/endorser/accuser setup so they obey the time-between-blocks protocol parameter.
What are the 12 - 4 = 8 containers?!? That sounds like a lot.

The high container count has to do with running BCD services locally. That system that requires many dependencies like RabbitMQ, ElasticSearch, and Postgres, to support the indexer itself (tzkt), its API, the GUI, and a metrics service. Those seven services plus the sandbox container make up the eight required to run a local indexer and node instance.

It's not difficult for me, it's impossible. My laptop becomes completely unresponsive when I try to run it.

This issue is fixed via the changes to running OpenMinter in v0.4.0


Improve DefaultAzureCredential diagnosability

DefaultAzureCredential only adds to its chain the credentials it can instantiate, and surfaces instantiation failures only when it can't instantiate any credential. That never happens because AzureCLICredential is at the end of the chain. This means that DefaultAzureCredential never surfaces problems with environment configuration or managed identity. Its constructor can always instantiate AzureCLICredential, so it never returns an error, and errors from DefaultAzureCredential.GetToken() never mention problems with environment configuration or managed identity because the corresponding credentials aren't part of the chain when such problems exist.

I think it should be enough to return errors if there are errors at the end of NewDefaultAzureCredential. I could be missing something 🤔

I worry that would imply the credential isn't useable. I expect applications to do this:
cred, err := NewDefaultAzureCredential(nil)
if err != nil {
    // assume cred is invalid

What I'm looking for here is more detailed log output when DefaultAzureCredential.GetToken fails. Every component of the default chain should be represented so a user who expected e.g. EnvironmentCredential to work gets some hint about why it didn't.

I’ll explore some ideas next week before I make a PR! I’ll continue to comment here if I find anything interesting.

I do believe that it is natural in Go to have good results besides errors. This is a fundamental part of the language that should be used as an advantage.

AWS has custom error types with partial results: https://github.com/aws/aws-sdk-go/blob/main/service/s3/s3manager/upload.go#L44-L52
I don’t see a clear guide stating that valid results should not be sent in case of partial errors.
I will focus my efforts on logging for now in any case.

The error message returned from GetToken is also important, probably more so than logging.
I still think we shouldn't return a non-nil error when the credential might work. Doing so would burden developers with figuring out whether the error matters. I imagine that would involve logic like "if the application is deployed to a VM, ignore the error unless it's about managed identity", which erodes the value of DefaultAzureCredential.

Let’s say DefaultAzureCredential is deployed in a VM and it fails, checking the right error should be as easy as if errors.Is(err, ManagedIdentityCredentialError) {.
Moreover, without a concrete error for success cases, users won’t be able to deploy programs reacting to specific authentication methods if they deploy to environments where more than one authentication is available.
Let’s say they deploy a DefaultAzureCredential to a VM where they also configured the environment variables used for EnvironmentCredential. They might not have intended to do this, but they will be left with a credential potentially authenticated with the wrong account. In some cases, I believe they might want to keep this setup; then their only recourse is to switch to the individual credentials.
If that’s where we want to go (forcing developers to use individual credentials if DefaultAzureCredential is not enough for them), then that’s ok, of course.

Let’s say DefaultAzureCredential is deployed in a VM and it fails, checking the right error should be as easy as if errors.Is(err, ManagedIdentityCredentialError) {.

Well, there's no ManagedIdentityCredentialError. But if there were, I think expecting customers to handle spurious constructor errors makes DefaultAzureCredential too painful to use. This:
cred, err := NewDefaultAzureCredential(nil)
if err != nil {
    if deployedToVM {
        if errors.Is(err, ManagedIdentityCredentialError) {
            // do something (what should an application do?)
        }
        if !errors.Is(err, EnvironmentCredentialError) {
           log.Println("someone mistakenly set environment variables")
           cred, err = NewManagedIdentityCredential(nil)
           ...
        } else {
            // do something else (what?)
        }
    }
}

is tantamount to this, which I would recommend instead:
if deployedToVM {
    cred, err := NewManagedIdentityCredential(nil)
    if err != nil {
        // do something
    }
} else {
    cred, err := NewEnvironmentCredential(nil)
    if err != nil {
        // do something else
    }
}

And we're begging the question of whether recovery is possible, though it's moot at construction anyway because constructors rarely return errors. Usually you learn your credential has a problem when one of your clients asks for a token.

If that’s where we want to go (forcing developers to use individual credentials if DefaultAzureCredential is not enough for them), then that’s ok, of course.

I want to go there. DefaultAzureCredential doesn't serve all purposes. If it doesn't serve yours, that's okay, please use something else 😄

I’m always torn by DefaultAzureCredential 😅.. I’ll focus my PR on logging 👍 (I thought the failure error message was ok but I’ll also review it again)

Environment variable configuration illustrates my complaint. When DefaultAzureCredential.GetToken fails, I want the error message to say something about each inner credential, to help developers debug the ones they care about. However, when environment configuration is incomplete, NewEnvironmentCredential() returns a nil pointer which doesn't go on the chain, so ChainedTokenCredential's error message says nothing about environment variables.

DefaultAzureCredential (DAC) exists for users to more easily get started with our SDKs. Customers should not use it in production environments for the reason you mention above: in a deployment, the app should know exactly what credential it is using and whether it is successful at creating/using it.
During development, the "contract" of DAC is that it is successfully created if it can latch on to any credential so an error should only be surfaced if no valid credential can be found. If a credential is found and then a problem arises, then an error can/should be surfaced but there is practically nothing a customer can do with it at this point. They'd probably have to reconfigure something and then re-run the app. For debugging purposes, it would be nice to indicate what's wrong to help the customer but there is no runtime altered code path that makes sense.

Customers should not use it in production environments

While I agree with that, I am not sure if that’s the intention across languages. It’s showcased as if it should be used on production environments, I believe.

Thank you both for your help! I understand I should focus on logging. I’ll try to have a PR out this week!

So, what about something like this? https://github.com/sadasant/azure-sdk-for-go/commit/68a1d0bd47a87e435899c299c5e749685a94438c

We do have logs at the end if there’s a failure in the chained token credential, but not throughout the progress of the chained token credential.
Besides logging errors throughout the progress of the chained token credential, we add a property to chained token credential to specify and keep track of the credential name, so that default azure credential can set logs to its own name.

If the idea looks good, I would then polish it, add some tests and post a draft PR.
Please let me know if I’m missing something.

That gets "DefaultAzureCredential" into the message, which helps but doesn't address "missing" credentials. This is the error message I get today from DefaultAzureCredential.GetToken:
Chained Token Credential: Managed Identity Credential: IMDS token request timed outAzure CLI Credential: ERROR: Please run 'az login' to setup account.

If I believed I had set environment configuration, I'd wonder how managed identity and the CLI enter into it. With this issue I'm after something similar to the Python SDK's error, which looks like this:
DefaultAzureCredential failed to retrieve a token from the included credentials.
Attempted credentials:
        EnvironmentCredential: Environment variables are not fully configured.
        ManagedIdentityCredential: No managed identity endpoint found.
        AzureCliCredential: Please run 'az login' to set up an account

Can the error for EnvironmentCredential indicate exactly what env var name it is looking for?
Anything to help customers self-diagnose any issues is a significant improvement in customer satisfaction.

It could, but such a message is unwieldy when no variables are set because the credential requires one of 3 sets of overlapping variables. When we last reviewed errors across languages we decided to link to the troubleshooting guide instead (my Python example is pre-troubleshooting guide).

The link is fine with me. Will you add it to the error message?

(Thank you so much for the feedback! I’m still catching up after resuming from the PTO. I’ll give a more detailed answer soon)

@JeffreyRichter yes, the idea is to use aka links to point people to the troubleshooting guide! I can make the troubleshooting guide for go as part of this effort (copying other languages) 👍

So, I think linking to the troubleshooting guidelines is something I can do right after resolving this specific issue. In that regard, I have a question:

Is there an issue regrading what’s missing to align Go with other languages on the usage of the troubleshooting guideline for Identity?

Besides that, I have improved my previous attempt taking in consideration the example that @chlowell shared earlier in this thread: https://github.com/Azure/azure-sdk-for-go/compare/main...sadasant:fix15923?expand=1 How does this look? I’ll ping Charles over teams as well.

Is there an issue regrading what’s missing to align Go with other languages on the usage of the troubleshooting guideline for Identity?

#16796 tracks any content revisions to help support agents onboard. There's no issue tracking linking to the guide in error messages.

Besides that, I have improved my previous attempt taking in consideration the example that @chlowell shared earlier in this thread: https://github.com/Azure/azure-sdk-for-go/compare/main...sadasant:fix15923?expand=1 How does this look?

Looks reasonable but let's not add any public API, e.g. ChainedTokenCredentialOptions.ChainedCredentialName

There's no issue tracking linking to the guide in error messages.

I have made a new issue! https://github.com/Azure/azure-sdk-for-go/issues/16843 If that helps 🙂

@chlowell I have made a PR 🙂 https://github.com/Azure/azure-sdk-for-go/pull/16844


Multiple inheriting scopes on a parent scope will all share the same scope

I would think that they should each have distinct scopes that are children of and inherit from the parent scope, and are siblings of one another. Instead, they both share the same inheriting scope!
Is this my misunderstanding of Angular, or a bug?
Plunkr here: http://plnkr.co/edit/RMzvF7l7ijuqhRXPdt1F?p=preview

technically that's supposed to be an error, you're not supposed to be able to have 2 directives on a single element that create a new scope. It should throw :) But, we've had trouble making it throw consistently, so mostly it only does that if there are new + isolate scopes

got it. what's the rationale behind not allowing this? in my mind this is similar to:
<foo>
  <bar>
    {{ fooVar }}
  </bar>
</foo>

In that it's ambiguous where fooVar comes from (from foo or from bar?). This behavior is allowed, so why not allow multiple inheriting scopes on a single element?

@ bcherny
2 directives on the same element are not at all similar to one directive containing the other one.
In this later case, described in your last post, fooVar as you say is not ambiguous: it follows the rule from javascript prototype, no more than that (read from bar if it exists in bar, otherwise try foo, and when write do in bar than foo.fooVar (if any) is hidden)
If both directives are on the same element; then it is impossible to make 2 inheriting scopes, exactly for the reason you describe in your last post: which one would be the context of the angular expressions contained in the element?
Fred

If both directives on an element use inheriting scope, they would not be able to inherit from each other (because they are siblings). Because of that, resolving a variable name in a directives scope would follow the same process as you described.

@bcherny
No: if sibling scopes would be created there is no rule/process to know what scope to use in the "zone" covered by both scopes. This is why angular doesn't create sibling scopes which would be impossible to use, but instead share the newly created inherited scope between the directives asking for inherited scope when several of such directives exist on the same element.
(The process I describe earlier is used for embedded scope and not at all for sibling one, again if sibling would exist, there is no possible logic process to know which scope to use)
(And calling that a process is a big word, that's just plain simple javascript inheritance)

Ah, that makes sense. Thanks for the explanation! What if the directives use a controllerAs syntax - would that solve the ambiguity issue?

I think that you would find controllerAs helpful for removing the ambiguity of where a property on the scope is coming from. We are not going to implement sibling scopes (other than because of transclusion) on a single element.


jetbrains.jdk-bin: init at 1751.21

Update jetbrains.sdk to be workable on darwin as well, the build process of the source variant used on linux is broken. So update to binary one for darwin.
Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[x] x86_64-darwin
[ ] aarch64-darwin ( should also work used a binary dependend the arch )

[x] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

This pr should fix the problem described here: https://github.com/NixOS/nixpkgs/issues/84263

@veprbl thx for the inputs! Will change that when my new macbook is here ( the old one died yesterday ).

@veprbl i would close this PR ( i thought about the way i resolved the underlaying problem and don't like it ) will try to fix the underlaying problem why the jdk couldn't build on osx and will do a new pr. So its a proper fix to the problem without the need to switch to a binary package.

A source build would be preferred, indeed.


Can not delete talent from adversary

When giving an adversary a talent I can not delete it.
There is only a Info button which does nothing.

What version are you using?
Is this talent from a specialization?  If the talent is from a specialization you need to uncheck it from there to remove it.
I just tested with the latest dev branch and was able to correctly add and remove talents that were dragged over and added and remove talents from specializations.  So more information is needed to help.

I can confirm this on 0.6.6 / 0.5

I suggest when v1 is published later today/early tomorrow you upgrade to that as we won't be fixing issues with 0.5 anymore.


Fix hessian bug

Fixes #1231, which is necessary for #1230. Adds a test to make sure the Hessian is being correctly calculated with ReverseDiff and ForwardDiff.

@cpfiffer It seems some tests are broken with this PR

Yeah, it requires https://github.com/TuringLang/DynamicPPL.jl/pull/83 to be merged & released before it should work, though I'm not sure what stuff is in the air over there. @mohamed82008 could https://github.com/TuringLang/DynamicPPL.jl/pull/83 be merged and released without too much issue at DynamicPPL?

The test failures here seem unrelated.

I think they're not actually. Using .~ inside a model will lead to parsing errors on Julia 1.0. Alternatively, you could use @. and escape non-broadcasted parts with $, or use some function like syntax (~.(LHS, RHS) IIRC).

See, e.g., https://github.com/TuringLang/DynamicPPL.jl/blob/c3d430c774628e1d7f5f8ee0167c0704a84df265/test/compiler.jl#L365 and https://github.com/TuringLang/DynamicPPL.jl/commit/43e8eeebaf41189e1f305e6880dd14c7ef18da86#diff-692d6d33d7ed80773e898f56e60b88ab (for the functional alternative (.~)(LHS, RHS)).

Oh, I see what you mean. I hadn't noticed that this syntax didn't work for Julia 1.0. Let me try this and see what happens.

Alright, looks like tests are passing.


Game freezes on main menu (windows)

The game freezes after the main menu loads. I got rid of all my mods and then added them back until it broke again, I only had this(and it's dependencies) and qolmod installed, and removing just globed fixed it.

try this
https://cdn.discordapp.com/attachments/1277836331501883449/1280291965879193731/fix.zip?ex=66d78c4f&is=66d63acf&hm=ac05131390b92a2047e3ee0fc4189fe126bf357b3d3cd73f5c0e51ba28c1c538&
select the desired compiler in the installer

this is true when i load gd with the new globed version it crashes my game i delete the binary and then it works pls fix this

@TGP9063 do you have a crashlog? please send if you do, otherwise it's hard to tell what's the issue

@TGP9063 do you have a crashlog? please upload it if you do, otherwise it's hard to tell what's the issue
at least for me it didn't make a crashlog, sorry :(

can you at least upload a regular log of the session then?
it can be found in the geode/logs directory in the game folder

Geode 2024-09-02 22.12.29.log
hope this helps! thankfully at least on my end it seems to have fixed itself lol

2024-09-03_12-23-00.log
this

update the mod, this should be fixed in v1.6.2


Language tab is bugged if localStorage is disabled

Bug Description
This is my repo with the API: https://github.com/sendSMS-RO/slate
When I "serve" my site locally I get no errors, but after I put the static pages on my production environment the right column breaks. When I click on a new language tab, it goes to the beginning of the document instead of staying on the same page.
I have tried to build it on Linux too, but I get the same error.
Screenshots
This is what I get in the developer console

Browser (please complete the following information):

OS: Development - Windows Production - Linux
Browser Brave
Version Latest

Okay, I solved the problem. I am using brave and I chose to block all cookies without knowing that I need them for slate to work...

With cookies and localStorage disabled, would you be able to confirm if going to https://slatedocs.github.io/slate/dev still works as expected?

Yes, your example is not bugged. If I remember, I had no problem with your example, but I had a problem on the static page created when I run bundle exec middleman build even on a clean installation of slate. This is my setting in brave

If you need a list of all my extensions

Thanks @Temepest74. I just wanted confirmation we had properly fixed the bug before cutting a new release of Slate (2.9.1) which will include the fix.


Windows automatic update prompts "Application is running"

I recently updated from packager 19.18.0 to latest 19.27.0
We have an app in production packaged with 19.18.0, and when I build an update with latest version, windows automatic update displays a prompt:

While pressin OK works fine, this is issue for unmanaged setups.
Building the update with builder v19.18.0 installs without any prompts.
Build options:
target: nsis
provider: generic
oneClick: true
perMachine: false

This issue is for electron-builder, not Electron Packager.

Fuck, wrong repo :/


[AutoPR subscription/resource-manager] fix readme.md to include 2016/06/01 with 2018/03/01 always

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/2744

This PR has been merged into https://github.com/Azure/azure-sdk-for-go/pull/1404


Sumologic output plugin

[x] Associated README.md updated.
[x] Has appropriate unit tests.
[x] Regenerate/update https://github.com/SumoLogic/telegraf/blob/master/etc/telegraf.conf with related changes when we're done with config's schema, TODO: @pmalek-sumo

@frankreno @sumo-drosiek @perk-sumo Please comment as this is pretty much the final form as per discussions above


Adding replication task processing metrics

What changed?
Adding replication task processing metrics

Why?
Adding replication task processing metrics

How did you test it?
N/A

Potential risks
N/A

Coverage increased (+0.5%) to 67.461% when pulling e286d8e2f291523b77981bf58ed05a71c87f8f56 on task_processing_metrics into fc2e1673ad87332dea35574018701589c4f49f22 on master.


Re-enable upload of coverage files to codecov

in the test workflow we use the action codecov/codecov-action@v3 to upload unit test coverage to codecov servers
the action has been approved for use, but with caveats (it must be in it's on workflow)

see security issue 728 (request @richard-cox for details)

given timeline the action will be removed from test but the functionality needs to come back
we can either

create a new workflow triggered on test workflow, download artefacts (these are already uploaded) and then upload to codecov
OR
use the codecov cli to upload from within test

It appears that rke2 is actively using codecov^1. We might be able to learn from their existing approach

For the records:

Company level usage https://app.codecov.io/gh/rancher/
Current version is codecov/codecov-action@v4

Blocked by https://github.com/rancherlabs/eio/issues/2484

Looks like this card was archived when it was reopened. Putting this in 2.11.0 for now though @torchiaf is this still blocked on EIO since that ticket is closed?

@gaktive we can go ahead with this now that EIO migrated the secrets. It's fine to move in 2.11.0.


Misc LaTeX related updates

#475

Can you please look into this changes and merge it if they are fine @gerryhocks?

These changes are quite satisfactory, @takahi-i.
I'll merge them.

Thanks!


[BUG] Multi-dataset upload is broken

Describe the bug
Uploading more than 1 dataset at a time doens't work properly
To Reproduce
Steps to reproduce the behavior:

Start uploading a large dataset.
While it's running, open another
Click start
The whole thing exits early, but will still run in the background
If you don't reload the page, the tasks will all complete.

This was resolved


⚠ Bofrost.es has degraded performance

In 23a4f7f, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1664 ms

Resolved: Bofrost.es performance has improved in 8eee625 after 6 minutes.


add unit test for ThreadUtils

Fixes https://github.com/apache/eventmesh/issues/4540
Motivation
Increase test coverage
Modifications
Added new tests for ThreadUtils.java located  https://github.com/apache/eventmesh/blob/master/eventmesh-common/src/main/java/org/apache/eventmesh/common/utils/ThreadUtils.java
Documentation
Does this pull request introduce a new feature? (no)
If yes, how is the feature documented? (not applicable)
If a feature is not applicable for documentation, explain why?
If a feature is not documented yet in this PR, please create a followup issue for adding the documentation

hi @harshithasudhakar could you review my new pr for ThreadUtils ?


Fan Unsupported

Prerequisite

[X] Yes, I've read the readme completely.

Cache

[X] Yes, I've cleaned accessory cache and the issue still exists.

Version
v1.7.0-beta.54
Device Infomation JSON File
No response
Device Control Mode
DP Instruction
Logs
[22/10/2024, 21:59:20] [Tuya] [Fan 3] Product Category: fsd
[22/10/2024, 21:59:20] [Tuya] [Fan 3] Missing one of the required schema: [ 'switch_fan', 'fan_switch', 'switch' ]
[22/10/2024, 21:59:20] [Tuya] [Fan 3] Please switch device control mode to "DP Insctrution", and set deviceOverrides manually.
[22/10/2024, 21:59:20] [Tuya] [Fan 3] Detail information: https://github.com/0x5e/homebridge-tuya-platform#faq
[22/10/2024, 21:59:20] [Tuya] [Fan 3] Existing schema: [
  {
    code: 'bright_value',
    mode: 'rw',
    type: 'Integer',
    property: { unit: '', min: 0, max: 100, scale: 0, step: 2 }
  },
  {
    code: 'fan_direction',
    mode: 'rw',
    type: 'Enum',
    property: { range: [ 'forward', 'reverse', [length]: 2 ] }
  },
  {
    code: 'temp_value',
    mode: 'rw',
    type: 'Integer',
    property: { unit: '', min: 0, max: 100, scale: 0, step: 2 }
  },
  [length]: 3
]
[22/10/2024, 21:59:20] [Tuya] Unsupported device: Fan 3.

Other Infomations
To allow control of my fan. The fan company is GridConnect and works on my Tuya Smart app.

I've come here searching for this exact issue with this exact fan. looking for any more information as well.

Hey,
What you need to do is head back to the Tuya Development site.
From there enter the project that you have created.
Then click onto the 'Devices' Tab.
There will be the fan listed as one of the devices, and also listed in a small box above. There is an edit button that will appear when you mouse over it, click the 'Change Control Instruction Mode'.
This will allow you to change it to 'DP Instrustions', save the configuration and head back to the device list.
Following this you will need to remove the Tuya bridge from the HomeKit.
Restart the Child Bridge in Homebridge.
Re-add the Tuya bridge back into HomeKit.
Following this it will re-add the ceiling fan now with full control.
You can separate the light and the Fan function in the settings pane of the HomeKit settings.
One thing to note is that the colour temperature seems to be backwards ie. Warm = White, White = Warm.
s.


Joint Trajectory Controller misses subscriber callback

I tested the Joint Trajectory Controller (JTC) on the UR10 robot in simulation and encountered a rare bug with the controller subscriber (joint_command_subscriber_) associated with the \joint_trajectory topic. Occasionally, the callback bound to the subscriber is not triggered, despite there being no apparent reason for this behavior.
After further testing, I confirmed that the issue lies with the callback not being called. I suspect the ROS 2 middleware might not be triggering the callback for unknown reasons. Since all nodes are running on the same machine, I don't believe the issue is related to packet loss or network problems.
This bug is difficult to replicate as it occurs very infrequently. Do you have any insights into why this might be happening? Could it be related to a configuration issue in the controller manager that’s causing this bug?
To reproduce, load and activate the Joint Trajectory Controller on any simulated robot. Then, in another terminal, publish a valid message on the \joint_trajectory topic. After many successful executions, you may notice that occasionally a message will be lost for unknown reasons.
My environment is as follows:
OS: Ubuntu 22.04
ROS 2 Version: Humble

Please add which RMW you are using.
If we can't reproduce it, this is very hard to debug.
JTC subscriber has SystemDefaultsQoS. You could try to change the QoS settings and see if any changes improve your behavior.

The RMW used for testing is the default one, rmw_fastrtps_cpp.
Based on your response, I conducted additional tests.
First, I changed the reliability QoS setting of the subscriber from BEST_EFFORT (the default value in SystemDefaultsQoS) to RELIABLE. In this case, I observed the same bug described in the issue, which I found quite strange.
Next, I ran another set of tests where I changed the middleware from rmw_fastrtps_cpp to rmw_cyclonedds_cpp, suspecting that the problem might be related to the middleware. With the new middleware, I was unable to reproduce the bug, even after extensive testing (I kept the reliability setting at RELIABLE). Additionally, I have a side project with the same issue, and switching to rmw_cyclonedds_cpp resolved the problem there as well.
At this point, I believe the issue is related to the rmw_fastrtps_cpp middleware. A similar problem with rmw_fastrtps_cpp has already been reported here, and the issue is still open. However, in their report, they mention 0% packet loss with the QoS option KEEP_ALL. I tried this option (along with RELIABLE and the rmw_fastrtps_cpp middleware) in my side project, but the problem persists.
In conclusion, rmw_cyclonedds_cpp seems to resolve the issue, but I cannot explain the behavior with rmw_fastrtps_cpp. If anyone has any insights into why this might be happening or potential causes, I would be happy to hear them.

Even though not declared so upstream rmw_fastrtps_cpp seems to be rather difficult to configure properly - which then results into the perception that it is not reliable. This starts at discovery and ends at issues with the lost messages.
We made the experience in our system that with an increasing number of participants and topics it seemed to perform worse. For simple demo setups I never ran into any issues with it. With cyclone we never had issues also with an increasing amount of endpoints.
Some of the bigger ros projects such as the nav2 stack are also recommending the use of the cyclonedds.
If you want or need to stay with fastrtps you might want to try working on Jazzy instead of Humble. I can imagine that there are some patches which might improve the behavior.
You might also want to play around with the configuration a bit: https://github.com/ros2/rmw_fastrtps?tab=readme-ov-file


Deprecate semi-public API to register "run keyword variants" and to disable variable resolving in arguments

We originally planned to clean-up this interface in RF 3.0 (see #2190 for details) but don't have enough time for it. Instead we are going to just deprecate it and change the API in RF 3.1. This is also safer as it gives possible users of this semi-public API time to react and comment forthcoming changes.

BuiltIn.register_run_keyword got a new argument deprecation_warning=True. By default there is a warning when using the method, but it can be disabled by using deprecation_warning=False.


Release to candidate (prod-beta)

This is an urgent release due to https://github.com/RedHatInsights/ocp-advisor-frontend/pull/130/commits/d88ebaa84ad61db4985ca0ca48aee4d26afdc22d

:tada: This PR is included in version 1.7.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


fix: typo worker_group_sepc -> worker_group_spec

Checks

[x] I've made sure the tests are passing.
Testing Strategy

[x] Unit tests
[ ] Manual tests
[ ] This PR is not tested :(

/cc @scarlet25151 Since you make the changes in downstream version already, please help review the change

@scarlet25151 thanks, I think I replaced all of them now.


Refactor selectFields in filter.js, implementation is a little confusing

const selectFields = (questionCode, fieldArray) => R.map(x => {
    const cleanedObj = {}
    for (let i = 0; i < fieldArray.length; i++) {
        let field = fieldArray[i]
        let resultField = field
        if (field === "Avg" || field === "Dispersion" || field === "PercentFavourable") { resultField = questionCode + field }
        if (x.hasOwnProperty(resultField)) cleanedObj[field] = x[resultField]
    }
    cleanedObj["questionCode"] = questionCode
    return cleanedObj
})

removed code


[WIP] Emitting some StatsD data

What this PR does / why we need it:
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
Special notes for your reviewer:

this is for https://github.com/Shopify/edgescale/issues/498


Restore compatibility with 4.03

If keeping compatibility with older versions of OCaml is desirable, I think cppo is a good choice.

I did https://github.com/Drup/ppx_tools/tree/4.03.0, which correspond to what I understood of the consensus.

Thanks!
I'm wondering whether we should keep the previous interface for Ast_convenience.lam with a string label and add another version taking a arg_label argument, or just switch to arg_label (i.e. do not attempt to preserve backward compatibility).
Opinions?

@Drup:  it seems we could get rid of OCAML and OCAML_VERSION.

Be consistent and break it.
@Drup Maybe you should rebase your changes without my commits?


8.0.4 stripping static properties

Bug report
Describe the bug
Static properties are stripped and are unavailable in renderPage of a custom _document.js.
To Reproduce
Add a static property to a page:
class Example extends PureComponent {
  static exampleProperty = true
  ...
}

Try to access the property in renderPage of a custom _document.js:
ctx.renderPage((Component) => {
  console.log(Component.exampleProperty) // -> undefined
  ...
}

Expected behavior
That static properties be available:
console.log(Component.exampleProperty) // -> true

System information

Version of Next.js: [8.0.4]

Additional information
Static properties are not being stripped in Next.js version 8.0.3.

Closing as using the React context API instead.


Predicting ratings of Popular Video Games 1980-2023

Aim
To predict ratings of "Popular Video Games 1980-2023" using reviews for the dataset:
https://www.kaggle.com/datasets/arnabchaki/popular-video-games-1980-2023
Details
To predict ratings of "Popular Video Games 1980-2023" using tfidf vectorizer and Light GBM model with the use of gridsearch cv for hyper paramater tuning.
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSoC'23 contributor
[X] I want to work on this issue

Go Ahead @Shubhra-31


samples_per_second_per_gpu or tokens_per_second_per_gpu?

I'm probably missing something but isn't this tokens per second per GPU:
https://github.com/mlfoundations/open_lm/blob/083fa31449c3456e889269e44913578acfced67a/open_lm/train.py#L282
inputs.numel() gives all tokens; for samples it would be inputs.shape[0], no?

Yeah it’s poorly named; it is in fact tokens per second. Happy to accept a
PR for a fix!
On Mon, Apr 29, 2024 at 1:29 PM Niklas Muennighoff @.***>
wrote:

I'm probably missing something but isn't this tokens per second per GPU:
https://github.com/mlfoundations/open_lm/blob/083fa31449c3456e889269e44913578acfced67a/open_lm/train.py#L282
inputs.numel() gives all tokens; for samples it would be inputs.shape[0],
no?
—
Reply to this email directly, view it on GitHub
https://github.com/mlfoundations/open_lm/issues/262, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAI5L4NIJOCZJVC74SMAD5TY72URNAVCNFSM6AAAAABG7AA4DCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI3DSOJRGUYDKMY
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


fix(web): optional dependency sharp caused errors when missing

This relates to vercel/next.js#20456
With the current version of next, builds fail if the optional dep sharp is not installed.

Thank you @10xLaCroixDrinker !
Sorry for the delay


Add an allow list for user-defined labels and annotations

A previous change added the --ignore-user-labels-and-annotations installation flag that completely ignored user-defined labels and annotations.
We need an enhancement to this feature where --allow-user-label and --allow-user-annotation flags can be passed to acorn install to allow certain desired labels/annotations to be propagated to the Kubernetes objects.

Tested with acorn version - acorn version v0.5.0-8-g8809ad2+8809ad2a
With --ignore-user-labels-and-annotations enabled and --allow-user-label and --allow-user-annotation flags  set ,  pods, secrets and volumes allow for  labels and annotations set in --allow-user-label and --allow-user-annotation field and other labels/annotations are silently ignored.
from acorn info:
allowUserAnnotations:
    - ann1
    - ann2
    allowUserLabels:
    - test1
    - test2
    ignoreUserLabelsAndAnnotations: true

When app is deployed with following labels and annotations - acorn run --label=test1/hello2=value3,test1=value1,hello1=hhh --annotation=ann1.hyu=hello2,ann1=testme.new,ann2=pp -n testnew .
Only the following labels and annotations get set on  pods, secrets and volumes  created for the app.
Labels:
               test1=value1
Annotations:   ann1: testme.new
               ann2: pp


Rename package from documentdb to cosmosdb

from com.microsoft.azure.spring.data.documentdb -> com.microsoft.azure.spring.data.cosmosdb

Signed-off-by: Pan Li<EMAIL_ADDRESS>

Any README should be updated?

yeah, will done in another PR. This one is big enough.

Codecov Report

Merging #128 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master     #128   +/-   ##
=======================================
  Coverage   77.27%   77.27%
=======================================
  Files          34       34
  Lines         814      814
  Branches      108      108
=======================================
  Hits          629      629
  Misses        128      128
  Partials       57       57

Impacted Files
Coverage Δ

...epository/support/DocumentDbRepositoryFactory.java
100% <ø> (ø)

...cosmosdb/exception/IllegalCollectionException.java
0% <ø> (ø)

...epository/support/DocumentDbEntityInformation.java
85.05% <ø> (ø)

...osmosdb/core/mapping/DocumentDbMappingContext.java
100% <ø> (ø)

...ry/query/DocumentDbParameterParameterAccessor.java
75% <ø> (ø)

.../core/mapping/BasicDocumentDbPersistentEntity.java
100% <ø> (ø)

...sitory/config/DocumentDbRepositoriesRegistrar.java
100% <ø> (ø)

...ore/mapping/BasicDocumentDbPersistentProperty.java
83.33% <ø> (ø)

.../azure/spring/data/cosmosdb/DocumentDbFactory.java
96.29% <ø> (ø)

...sdb/repository/query/DocumentDbQueryExecution.java
66.66% <ø> (ø)

... and 24 more

Continue to review full report at Codecov.

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


No single pointer is provided to drag the "Copilot github Chat Separator" to the required position: A11y_Visual Studio Code Client_Copilot_Copilot Chat_Dragging movements.

Reproduction Steps:

Open Visual studio insider
In the Visual Studio Code Marketplace, go to the GitHub Copilot extension page and click Install.
After installing the extension go to the github copilot chat option available in the left side panel and press enter.
Observe that No single pointer is provided to drag the "Copilot github Chat Separator" to the required position.

Actual behavior:
No single pointer is provided to drag the "Copilot github Chat Separator" to the required position.
Expected behavior:
There should be single pointer is provided to drag the "Copilot github Chat Separator" to the required position.
User Impact:
People with motor impairments who cannot operate content because the only way to actuate a function is by dragging a target element from its initial position to some other position will face difficulty in accessing the application.
Attachments:
No single pointer is provided win32.webm

#Rev:samhithaks;

Same as https://github.com/microsoft/vscode/issues/221558?

@roblourens this bug is logged for win32. The bug https://github.com/microsoft/vscode/issues/221558 which you mentioned is related to MAC platform.

@roblourens This bug is logged for win32 platform. The bug which you mentioned as duplicate is related to MAC platform. Could you please resolve this issue and assign back to us.

As per the above comment assigning this bug to PO and reopening the issue.
#Reactivated;


Real time raytracing with valkan api

We need to use Nvidias Realtime Valkan API raytrace framwork for the Godot 4.0.x branch or 3.1.x hopfully.
Godot version:

4.0.x or 4.1.x
OS/device including version:

Linux, Mac OS, Windows GTX 1650
issue description:**

Steps to reproduce:
Minimal reproduction project:

Duplicate of https://github.com/godotengine/godot/issues/27355.


More explicitly split for getter/setter APIs

What package is the feature request related to?
typedoc-plugin-markdown
Background
hi, when generating markdown documents, I found the getter/setter APIs are not split in a very clear looking.
For example, in below docs, the wrap attribute actually has two APIs, getter and setter:

If user doesn't pay attention for them, they will probably ignore the setter API:

Proposed solution
No response

One more thing is: it will put the @returns at the end of this attribute, which looks more like the returned value for the setter API.

It feels more like a bug to me

The doc site is here: https://rsvim.github.io/docs/next/api_references/rsvim/classes/RsvimOpt

emmmmm, maybe it's just I don't know this behavior of typedoc. Close it


How to save the results

Hi @WillianFuks
Question one：I want to save daily predictions to calculate daily increments. Please help me how to save the daily results.
Question two：The time for my inputting data is only from June to October, but the plot is complete from June to December. The X-axis automatically fills the time series. The fluctuation of the curve looks unclear. How can I modify the settings of the x-axis and y-axis to look like Figure 2？
Picture one:

Picture two:

Hi @justdoit456258 ,

Currently there's no way to save the predictions. Not sure if this would be necessary though. You could use the ci object to take the predictions for each day and work with those (notice that each day predicted follows a Kalman-Filter algorithm that keeps updating a latent space based set of variables so each new prediction is just the continuation of the filtering process going on). Please refer to the official docs for some possibilities on this approach.

The predicted plot doesn't seem to be in accordance to your input data. Something seems to be wrong there but it's hard to tell what happened. Maybe it's the units of the observed that is too big (shouldn't be a problem a prior). Could you share the data you are using (or something equivalent so I can test locally?) Also, could you share the code you are using to implement the fitting process?

justdoit_22-23data.csv
Thank you for your reply!
The attachment file is my input data.You can use it to test.I look forward to seeing the performance of your model.

Thank you for your reply!
The attachment file is my input data.You can use it to test.I look forward to seeing the performance of your model.
justdoit_22-23data.csv

Hi @WillianFuks ,
Thank you for your reply!
The attachment file is my input data.You can use it to test.The predicted time period is 2021-09-01  to 2021-10-06.
I look forward to seeing the performance of your model.
justdoit_22-23data.csv


Tags - What Do You Reckon?

Right now we can bookmark regular sites and we can add (or fork) Dat sites into our library. I can search my library through the UI, that's good, presumably that will search the whole content of each site, perhaps even previous versions? I don't think I can query bookmarks through the UI right now but according to https://github.com/beakerbrowser/beaker/issues/311 most of the WebExtensions bookmarks API has been implemented behind the scenes.
https://github.com/beakerbrowser/beaker/issues/691 re: bookmarks import. An export from Firefox's Places database will export with tags currently; Beaker won't support those right now. I've written a summary and a case for tags for bookmark tags on the Mozilla Discourse here.
I think ultimately I'd like to be able to query both my Beaker library and/or my bookmarks based on tags, times (of submission, last modified), and perhaps ultimately there could be some community metrics, e.g. 50 users have tagged this version of this site in the library or a bookmark of this URL with this tag. Is this the kind of thing that could be implemented in a "Thick Web Application"?
I'll leave it at that for now, would love to hear the main devs thoughts, cheers!

Hey @tomatopeel.
You should check out our dev branch for the next big release, beaker-0.8. We have a bookmarks feature there that supports tags and public bookmarking via dats.
In the short run, we're going to expose a basic bookmarks API for both private and public bookmarking. Some of that will be implemented, by necessity, in the browser, which will mean it has some rigidity to it. We will have tags, but maybe not other APIs that folks would want.
But in the long run, I think we can move the entire bookmarks implementation into userland. Here's what it requires:

A way to store bookmarks privately. Not too hard: just use a non-networked (or encrypted) Dat.
A way to store bookmarks publicly (if you want that feature). Already done in beaker-0.8, just use a networked Dat.
A way for an app to add a bookmark button to the browser window, and react to the current page. WebExtensions support that, so I imagine the Thick Apps APIs could support it too.


Add Bitmap support in Java

Now ,you can pass Bitmap as input instead of image path.It is more flexible than image path. Meanwhile,I add corresponding JNI support in dlib-android. Please check!

HI @flyingzhao ,
Thank you. :) But there are some errors for Travis CI. I will take a look at your code to fix the error first.

i am sorry.i don't know how to use travis ci.please look at code.thx

@flyingzhao
It's alright. I will look at the code.

I miss to import the Bitmap package.Now it is OK.


Allow small resource request to allow scheduling on smaller cpu node

remove resource limit but allowing scheduling on smaller cpu nodes.

close the issue, since if the larger node can't be found, then the controller will crash


Update metadata databases to latest versions

Description of feature
e.g. depmap is outdated.
We should ideally also provide a way to versionize it better

I didnt find any newer version of depmap. Could you please share the link? Thank you!


AWS Device SDK CPP v2 sample recipe

This is more or less a duplicate of #137 but I can see that currently there is only a recipe for one sample 'mqtt5_pubsub' which is required for testing the main package.
It would be good to have a single 'aws-iot-device-sdk-cpp-v2-samples' recipe which builds all samples and splits them into separate packages using PACKAGES, FILES and RDEPENDS for each sample binary.
That way all samples will be built by the recipe but the end user can individually decide which samples they include in their image and other recipes can RDEPEND on a single sample just like 'aws-iot-device-sdk-cpp-v2' does today.

@thomas-roos thanks for the details. There used to be a CMake file in the root of the 'samples' directory which made this easier but I see that is gone so yes, I agree, not as easy as I hoped.
The logical option but quite messy would be as you suggest, a recipe per sample and possibly a 'dummy' recipe which pulls in all samples. The other option would be to include a patch adding back the CMake file in the root of the 'samples' directory which simply contains
add_subdirectory(sample1)
add_subdirectory(sample2)

Appreciate none of these are particularly elegant.


Read shtxx (relative humidity) attached to ds28ea00

Added a function to read relativy humidity from shtxx.  See data sheet (https://www.sensirion.com/fileadmin/user_upload/customers/sensirion/Dokumente/Humidity_Sensors/Sensirion_Humidity_Sensors_SHT1x_Datasheet_V5.pdf)
These sensors are the ones which are in OPI one-wire cables that get installed in grain bins. getMois and getMoisByIndex return the raw 12bit value from the sensor.  A calculation still needs to be done to obtain the %RH.  (See Data Sheet)  To obtain grain moisture content another calculation needs to be done. (See google for more information)  There are a few different formulas and options for this.
This method does not implement any error checking (no CRC value is calculted)  But it does recieve the CRC value from the sensor it just does not make use of it.

I'm wondering if this would be better included as a Macro or separate class, rather than pure code given the resulting size. Does anyone have any comments?

That's fine with me.  It's a bit of an edge case anyway but I know there is some farmers who will be interested.


[Ansible] FLANNEL_ETCD needs to reference internal master IP

i periodically get timeouts when setting up Flannel on AWS since the etcd host is inaccessible.
i use a dev machine, so i reference the external IPs in inventory, however the etcd config advertises on the internal IPs, so Flannel is unable to reach the etcd cluster.
i'm not sure if it is simple to create an automated workaround, but this should be referenced in docs.

@imsky what about to use host names (e.g. etcd-server) instead of raw IPs? Depending on your entries in /etc/hosts under each node you can point etcd-server to internal IP.


[CAMEL-21493]camel-ref: should use CamelContext.hasEndpoint but not C…

…amelContext.getEndpoint to check existence of an endpoint
Description

Target

[ ] I checked that the commit is targeting the correct branch (note that Camel 3 uses camel-3.x, whereas Camel 4 uses the main branch)

Tracking

[ ] If this is a large change, bug fix, or code improvement, I checked there is a JIRA issue filed for the change (usually before you start working on it).

Apache Camel coding standards and style

[ ] I checked that each commit in the pull request has a meaningful subject line and body.

[ ] I have run mvn clean install -DskipTests locally from root folder and I have committed all auto-generated changes.

Thanks @davsclaus !


Feature - Post Only order type

Description
This PR adds a new order type, Post Only orders.
With this order type, an order is moved to a cancelled state if any portion of the order would immediately execute when placed. This is a useful feature for market makers that wish to place orders that provide liquidity instead of taking.
Changes

Update workLimitBlockOrder to handle both GTC and PO orders
Add Post Only to TimeInForce enum in proto

Related PRs
List related PRs if applicable
Todos

[ ] Tests
[ ] Documentation
[ ] Link to Trello

 create post-only order


TNG100-2 Snapshot 30 Not accessible (corrupt cache)

Hi Chris!
I am not sure if I am the only one facing this issue, but I am not able to "load" snapshot #30 from the TNG100-2 simulation.
My code and the error are:
basePath = "/virgotng/universe/IllustrisTNG/TNG100-2/output"
ds = load(basePath + f"/snapdir_{30:03d}", units=False)

OSError                                   Traceback (most recent call last)
Cell In[29], line 1
----> 1 ds = load(basePath + f"/snapdir_{30:03d}", units=False)

File /vera/u/fahma/scida/src/scida/convenience.py:280, in load(path, units, unitfile, overwrite, force_class, **kwargs)
    277         if m in mixins:
    278             mixins.remove(m)
--> 280 instance = cls(path, mixins=mixins, **kwargs)
    281 return instance

File /vera/u/fahma/scida/src/scida/interface.py:39, in MixinMeta.__call__(cls, *args, **kwargs)
     37 mixins = kwargs.pop("mixins", None)
     38 newcls = create_MixinDataset(cls, mixins)
---> 39 return type.__call__(newcls, *args, **kwargs)

File /vera/u/fahma/scida/src/scida/interfaces/mixins/cosmology.py:15, in CosmologyMixin.__init__(self, *args, **kwargs)
     13 def __init__(self, *args, **kwargs):
     14     self.metadata = {}
---> 15     super().__init__(*args, **kwargs)
     16     metadata_raw = self._metadata_raw
     17     c = get_cosmology_from_rawmetadata(metadata_raw)

File /vera/u/fahma/scida/src/scida/customs/arepo/dataset.py:137, in ArepoSnapshot.__init__(self, path, chunksize, catalog, **kwargs)
    135         pass  # this string can be set to explicitly disable catalog
...
File h5py/_objects.pyx:55, in h5py._objects.with_phil.wrapper()

File h5py/h5f.pyx:106, in h5py.h5f.open()

OSError: Unable to open file (file is already open for write (may use  to clear file consistency flags))

Do you have any idea on how to fix this perhaps?

Hard to say. Can you provide the full stacktrace? (expand after  135         pass  # this string can be set to explicitly disable catalog ...)

Apologies,
This is the full error:
`---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)
Cell In[10], line 2
1 basePath = "/virgotng/universe/IllustrisTNG/TNG100-2/output"
----> 2 ds = load(basePath + f"/snapdir_{30:03d}", units=False)
File /vera/u/fahma/scida/src/scida/convenience.py:280, in load(path, units, unitfile, overwrite, force_class, **kwargs)
277         if m in mixins:
278             mixins.remove(m)
--> 280 instance = cls(path, mixins=mixins, **kwargs)
281 return instance
File /vera/u/fahma/scida/src/scida/interface.py:39, in MixinMeta.call(cls, *args, **kwargs)
37 mixins = kwargs.pop("mixins", None)
38 newcls = create_MixinDataset(cls, mixins)
---> 39 return type.call(newcls, *args, **kwargs)
File /vera/u/fahma/scida/src/scida/interfaces/mixins/cosmology.py:15, in CosmologyMixin.init(self, *args, **kwargs)
13 def init(self, *args, **kwargs):
14     self.metadata = {}
---> 15     super().init(*args, **kwargs)
16     metadata_raw = self._metadata_raw
17     c = get_cosmology_from_rawmetadata(metadata_raw)
File /vera/u/fahma/scida/src/scida/customs/arepo/dataset.py:137, in ArepoSnapshot.init(self, path, chunksize, catalog, **kwargs)
135         pass  # this string can be set to explicitly disable catalog
136     elif self.catalog is not None:
--> 137         self.load_catalog(kwargs)
139 # add aliases
140 aliases = dict(
141     PartType0=["gas", "baryons"],
142     PartType1=["dm", "dark matter"],
(...)
146     PartType5=["bh", "black holes"],
147 )
File /vera/u/fahma/scida/src/scida/customs/arepo/dataset.py:183, in ArepoSnapshot.load_catalog(self, kwargs)
180 if hasattr(self, "ureg"):
181     ureg = self.ureg
--> 183 self.catalog = cls(
184     self.catalog,
185     virtualcache=virtualcache,
186     fileprefix=prfx,
187     units=self.withunits,
188     ureg=ureg,
189 )
190 if "Redshift" in self.catalog.header and "Redshift" in self.header:
191     z_catalog = self.catalog.header["Redshift"]
File /vera/u/fahma/scida/src/scida/interface.py:39, in MixinMeta.call(cls, *args, **kwargs)
37 mixins = kwargs.pop("mixins", None)
38 newcls = create_MixinDataset(cls, mixins)
---> 39 return type.call(newcls, *args, **kwargs)
File /vera/u/fahma/scida/src/scida/interfaces/mixins/cosmology.py:15, in CosmologyMixin.init(self, *args, **kwargs)
13 def init(self, *args, **kwargs):
14     self.metadata = {}
---> 15     super().init(*args, **kwargs)
16     metadata_raw = self._metadata_raw
17     c = get_cosmology_from_rawmetadata(metadata_raw)
File /vera/u/fahma/scida/src/scida/customs/arepo/dataset.py:628, in ArepoCatalog.init(self, *args, **kwargs)
626 if "fileprefix" not in kwargs:
627     kwargs["fileprefix"] = "groups"
--> 628 super().init(*args, **kwargs)
File /vera/u/fahma/scida/src/scida/customs/arepo/dataset.py:127, in ArepoSnapshot.init(self, path, chunksize, catalog, **kwargs)
125 if prfx is None:
126     prfx = self._get_fileprefix(path)
--> 127 super().init(path, chunksize=chunksize, fileprefix=prfx, **kwargs)
129 self.catalog = catalog
130 if not self.iscatalog:
File /vera/u/fahma/scida/src/scida/interfaces/mixins/spatial.py:22, in SpatialCartesian3DMixin.init(self, *args, **kwargs)
20 def init(self, *args, **kwargs):
21     self.hints = {}
---> 22     super().init(*args, **kwargs)
23     # TODO: determine whether periodic?
24     self.pbc = True
File /vera/u/fahma/scida/src/scida/customs/gadgetstyle/dataset.py:20, in GadgetStyleSnapshot.init(self, path, chunksize, virtualcache, **kwargs)
17 """We define gadget-style snapshots as nbody/hydrodynamical simulation snapshots that follow
18 the common /PartType0, /PartType1 grouping scheme."""
19 self.boxsize = np.nan
---> 20 super().init(path, chunksize=chunksize, virtualcache=virtualcache, **kwargs)
22 defaultattributes = ["config", "header", "parameters"]
23 for k in self._metadata_raw:
File /vera/u/fahma/scida/src/scida/interface.py:82, in BaseDataset.init(self, path, chunksize, virtualcache, overwritecache, fileprefix, hints, **kwargs)
71     raise Exception("Specified path '%s' does not exist." % self.path)
73 loadkwargs = dict(
74     overwrite=self.overwritecache,
75     fileprefix=fileprefix,
(...)
79     withunits=self.withunits,
80 )
---> 82 res = scida.io.load(path, **loadkwargs)
83 self.data = res[0]
84 self._metadata_raw = res[1]
File /vera/u/fahma/scida/src/scida/io.py:420, in load(path, **kwargs)
418 def load(path, **kwargs):
419     loader = determine_loader(path, **kwargs)
--> 420     data, metadata = loader.load(**kwargs)
421     file = loader.file
422     tmpfile = loader.tempfile
File /vera/u/fahma/scida/src/scida/io.py:162, in ChunkedHDF5Loader.load(self, overwrite, fileprefix, token, chunksize, virtualcache, **kwargs)
155     self.create_cachefile(
156         fileprefix=fileprefix,
157         virtualcache=virtualcache,
158         verbose=print_cachefile_creation,
159     )
161 try:
--> 162     datadict = self.load_cachefile(
163         cachefp, token=token, chunksize=chunksize, **kwargs
164     )
165 except InvalidCacheError:
166     # if we get an error, we try to create a new cache file (once)
167     log.info("Invalid cache file, attempting to create new one.")
File /vera/u/fahma/scida/src/scida/io.py:219, in ChunkedHDF5Loader.load_cachefile(self, location, token, chunksize, **kwargs)
218 def load_cachefile(self, location, token="", chunksize="auto", **kwargs):
--> 219     self.file = h5py.File(location, "r")
220     hf = self.file
221     cache_valid = False
File ~/conda-envs/myenv/lib/python3.10/site-packages/h5py/_hl/files.py:567, in File.init(self, name, mode, driver, libver, userblock_size, swmr, rdcc_nslots, rdcc_nbytes, rdcc_w0, track_order, fs_strategy, fs_persist, fs_threshold, fs_page_size, page_buf_size, min_meta_keep, min_raw_keep, locking, alignment_threshold, alignment_interval, meta_block_size, **kwds)
558     fapl = make_fapl(driver, libver, rdcc_nslots, rdcc_nbytes, rdcc_w0,
559                      locking, page_buf_size, min_meta_keep, min_raw_keep,
560                      alignment_threshold=alignment_threshold,
561                      alignment_interval=alignment_interval,
562                      meta_block_size=meta_block_size,
563                      **kwds)
564     fcpl = make_fcpl(track_order=track_order, fs_strategy=fs_strategy,
565                      fs_persist=fs_persist, fs_threshold=fs_threshold,
566                      fs_page_size=fs_page_size)
--> 567     fid = make_fid(name, mode, userblock_size, fapl, fcpl, swmr=swmr)
569 if isinstance(libver, tuple):
570     self._libver = libver
File ~/conda-envs/myenv/lib/python3.10/site-packages/h5py/_hl/files.py:231, in make_fid(name, mode, userblock_size, fapl, fcpl, swmr)
229     if swmr and swmr_support:
230         flags |= h5f.ACC_SWMR_READ
--> 231     fid = h5f.open(name, flags, fapl=fapl)
232 elif mode == 'r+':
233     fid = h5f.open(name, h5f.ACC_RDWR, fapl=fapl)
File h5py/_objects.pyx:54, in h5py._objects.with_phil.wrapper()
File h5py/_objects.pyx:55, in h5py._objects.with_phil.wrapper()
File h5py/h5f.pyx:106, in h5py.h5f.open()
OSError: Unable to open file (file is already open for write (may use  to clear file consistency flags))`

Thanks a lot. Seems like the cache file for this snapshot is corrupted, deleting it would fix the issue. Not sure what is the best way to find its path. Let me provide a fix later.

Always seems possible that a cache file will be corrupted, e.g. due to a Ctrl+C midway through its creation.
We already handle this for series caches, is that right?
Just wrap such usage in a try, and for any error, attempt (once) to recreate the relevant cache?

Always seems possible that a cache file will be corrupted, e.g. due to a Ctrl+C midway through its creation.
We already handle this for series caches, is that right?
Just wrap such usage in a try, and for any error, attempt (once) to recreate the relevant cache?

We already handle snapshot loads with a try. We have been a bit cautious with the Exceptions that trigger the reconstruction (in the except statement), so it is just about widening the exception to include the Exception above. I'll fix it later today.

By the way, load(..., overwritecache=True) might be a work around in the mean time for such cases.

Okay, thank you.


Python3 lang still uses Python2

The python3 question template is the same as the python2 (python) one and code that runs on python3 on leetcode.com doesn't run on leetcode.nvim when python3 is selected as the language.

Okay you can get around this by setting lang = "python3" in the setup for leetcode.nvim. But no matter what it's set to, selecting "Python" and "Python3" inside a leetcode.nvim instance through the "Leet lang" command will result in the same version of python for both commands.

@milan-panta has this commit changed anything?

Yup, that fixed it! Thanks!


Unable to resync webhook for agate-dbf

Details

Project URL: https://readthedocs.org/projects/agate-dbf/
Read the Docs username (if applicable): onyxfish

Expected Result
Github webook should sync latest commits. A message shows up the project:
This repository doesn't have a valid webhook set up. That means it won't be rebuilt on commits to the repository.
You can resync your webhook to fix this.

Actual Result
It doesn't. Resyncying the webhook doesn't change anything. (The message persists.) Deleting and recreating the webhook also doesn't seem to change anything.

If you did not import the project through the GitHub integration, resyncing your webhook will not do anything. I'm working to fix this, but reimporting is currently the only way to correctly set up your project in the first place. Can you confirm that a new project resolves this issue?

We have a webhook management page that should allow for possible resyncing, or perhaps if all else fails, setting up a manual webhook. You can read more in our documentation on webhooks.
Closing this due to inactivity


multiplayer: add "remix this game" button

As per the design.

For reference the button should probably point at ${pxt.webConfig.relPrefix.slice(0, -3)}#pub:${shareID} which will drop them into the editor with shareId loaded .

Fixed with https://github.com/microsoft/pxt/pull/9163


Map test

@LucyGwilliamAdmin Not a viable long-term solution for headline data, but I think the map requires the geocode and the name to operate.

How do you mean?

Nevermind, seen file changes

Still nothing


Will you implement cache?

Will you implement cache?
How much faster if combine cache with ANN in theory?
How much code do I need to modify if I have to do it myself?

Hi @NLPpupil,
The original Transformer needs a cache to try to avoid repeatedly computing the attention weights over all previous hidden states (from 1 to t-1). Generally, the cache saves the pre-calculated projections before generating the attention weights. However, our AAN requires no dynamic attentions, it only needs the last previous hidden states (t-1). In this respect, the given code has already implemented the cache, although it can be further optimized with better engineering.


merge env and run commands to reduce layers

@mnagy does this failure mean anything to you?
Installing App::cpanminus (1.7033)
Couldn't require CPANPLUS::Dist::Build : Can't locate CPANPLUS/Dist/Build/Constants.pm in @INC (@INC contains: /opt/rh/perl516/root/usr/local/lib64/perl5 /opt/rh/perl516/root/usr/local/share/perl5 /opt/rh/perl516/root/usr/lib64/perl5/vendor_perl /opt/rh/perl516/root/usr/share/perl5/vendor_perl /opt/rh/perl516/root/usr/lib64/perl5 /opt/rh/perl516/root/usr/share/perl5 .) at /opt/rh/perl516/root/usr/share/perl5/CPANPLUS/Dist/Build.pm line 14.
BEGIN failed--compilation aborted at /opt/rh/perl516/root/usr/share/perl5/CPANPLUS/Dist/Build.pm line 17.
Compilation failed in require at (eval 58) line 2.
from:
https://ci.openshift.redhat.com/jenkins/job/sti-perl/10/console

@bparees Yes, it does ring a bell. I don't understand what's wrong there, but it always worked for me anyway.
The problem is somewhere else. PATH is apparently not set properly. cpanm should be installed into /opt/rh/perl516/root/usr/local/bin/ but which does not look there.

@bparees it was a bug in the downgraded Docker. Per @mfojtik's recommendations, I commented out the downgrade bit, since we don't push perl anyway and rerun the build. Seems like it's working fine now.

LGTM, but be aware that this will conflict with #7.

@mnagy @mfojtik awesome, thanks!


Support for scikit-learn and other libraries where models are not necessarily differentiable

Hi,
Thanks a lot for the wonderful library. As you guys have mentioned in the roadmap, can you tell us by when we can expect the integration of scikit-learn like libraries. I am facing issues when using trying to integrate the same.
Thanks in advance!

yes, integrating scikit-learn is a high-priority feature and we are working on it. Should have an update in the next few weeks.

Hi, thanks for a cool and important library. Can you please tell whether LightGBM will be supported after a new updates?

Hi @arsine1996, we are currently trying to make it work for scikit-learn models. We will update the readme if we can extend it to XGBoost and LightGBM as well.

@raam93 I'm also interested in using LightGBM, XGBoost etc. I found currently DiCE supports 'scikit-learn' model DiCE_model_agnostic_CFs.ipynb. Does it also support LightGBM scikit-learn API ?

@konabuta DiCE supports any ML model that respects the scikit-learn API for predict and predict_proba. So if your model has these two functions, you can use it with the "sklearn" backend. I think LightGBM uses an API that is compatible with scikit-learn, so I think it should work.
Just use the backend="sklearn" and input the lightgbm model. It may work with XGBoost too.
For any model, you can have a look at this file: https://github.com/interpretml/DiCE/blob/master/dice_ml/model_interfaces/base_model.py
As long as your model has a predict and predict_proba function, it should work directly.


Add more algorithms to school_algorithms folder

Only formulas and algorithms that are learnt in secondary school in physics and maths.
If you want, just do the function and no documentation and i will do the docs.

Can the formulas in this PDF be added?


Litewallet Support

This Github issue is synchronized with Zendesk:
Ticket ID: #787
Group: Support
Requester<EMAIL_ADDRESS>Original ticket description:

Please reply to this email with the following information so that we can prepare to help you solve your Litewallet issue.

1. What version of software running on your mobile device (e.g.; iOS 13.7 or iOS 14)?

2. What version of Litewallet software is on your mobile device (found on the login view)?

3. What type of iPhone do you have?

4. How we can help?

Hi!

Please check the wallet directly in blockchain - https://live.blockcypher.com/ltc/address/LXreXGdzSfCtBYRKKCFJdUsMNcyDxd9Nio/ As I can see my transaction already successfull in litecoin explorer but I can't see my funds in Litewallet. Here is a screenshot that shows the address you programm gave me the same I made transaction. I just copied it on my phone and pasted. Also doublechecked befor confirmation. Everything was correct. Please solve this problem asap.Отправлено с iPhone

Comment made from Zendesk by Kerry Washington on 2021-02-22 at 21:43:
Спасибо, что попробовали Litewallet.Был открыт тикет, посвященный проблеме: https://github.com/litecoin-foundation/loafwallet-ios/issues/228-----Thanks for trying Litewallet.A ticket looking into the issue has been opened: https://github.com/litecoin-foundation/loafwallet-ios/issues/228-------
Kerry Washington
Litewallet Team Manager

Need a sync.

Comment made from Zendesk by Kerry Washington on 2021-02-22 at 22:26:
Hi Igor,It looks like you need to sync to update your History.  Go to (Hamburger > Sync Blockchain > Start Sync)  This will take 30 -45 minutes .
Kerry Washington
Litewallet Team Manager

Comment made from Zendesk by Kerry Washington on 2021-03-16 at 17:46:
Closing due to inactivity
Kerry Washington
Litewallet Team Manager


If two view controllers point to the same view with the loader, only one works

I have two view controllers that both point to one view controller that should show the loading screen. It works for one, but not both.

Why did you down vote my question?

Vague description, no code or any further description to help troubleshoot.

I copied the demo that is available. There is no code to show because that would be irrelevant. The spinner is working just fine, but when I add another view controller to point to the view that has the loading bar, it does not work. Also, when I hit 'back' from another view controller to the demo I copied from this github project, it does not work either. There is another issue related to this in the issues section of this project. Is that better?

Again this is pretty vague. How is the spinner called on the presenting view for example? How are you handling viewWillAppear? If you put the project up I can have a look but otherwise there is literally no way to help find a fix without an actual example to work with. Simply saying you've copied the demo project & that's it isn't much to go on.
Provide code / workable examples I can help, otherwise this won't go anywhere useful for anyone.


feat: add policy tag manager clients

Generated by synthtool.
Addresses internal issue 138402054.

@tswast this looks like it's potentially an issue with the protos themselves, perhaps a missing import?
  1) PolicyTagManagerClient
       updateTaxonomy
         invokes updateTaxonomy without error:
     TypeError: Cannot read property 'name' of undefined
      at PolicyTagManagerClient.updateTaxonomy (src/v1beta1/policy_tag_manager_client.js:392:41)
      at Context.<anonymous> (test/gapic-v1beta1.js:1878:14)
      at processImmediate (internal/timers.js:439:21)

  2) PolicyTagManagerClient
       updateTaxonomy
         invokes updateTaxonomy with error:
     TypeError: Cannot read property 'name' of undefined
      at PolicyTagManagerClient.updateTaxonomy (src/v1beta1/policy_tag_manager_client.js:392:41)
      at Context.<anonymous> (test/gapic-v1beta1.js:1901:14)
      at processImmediate (internal/timers.js:439:21)```

Looks like a test that didn't actually specify an input value to me. Maybe the generator has a bug? Or is there something we need to add to the gapic config?

@alexander-fenster any thoughts on this one? Perhaps we need to move this to the new generator sooner rather than later.

I am closing this, and hoping that we'll wake up to a better PR in the morning 😆

I am closing this, and hoping that we'll wake up to a better PR in the morning 😆

Unfortunately we need to make an update to the synth config before we get a real PR for this, because the config file moved directories slightly.

Sent https://github.com/googleapis/nodejs-datacatalog/pull/59


Connection errors are not handled in spine-web-client

When a web-application that uses spine-web-client loses internet connection, the unhandled exception is thrown on each request. This situation should be handled and returned to the client in a controlled way as a connection error.
The current implementation of HttpClient does not handle connection errors.  Its postMessage(endpoint, message) expects that each request will result in a response, which is wrong when a connection error occurs.
Request to change the approach of errors classification is described in associated issue https://github.com/SpineEventEngine/web/issues/26

Implemented in PR #34: Introduce spine-web-client error hierarchy.