Unrecognized Client Exception: API Gateway

Describe the bug
After updating CLI, a POST to my REST API results in an UnrecognizedClientException. The endpoint was working before the update. Unfortunately I don't remember which version of the client I upgraded from.  Endpoint was set up via amplify CLI in the standard way: amplify add api
Here's the code snippet:
import { API } from 'aws-amplify';

const actions = {
  async awsPostToEndpoint(store, userAttrs) {
    const payload = {
      email: userAttrs.email
    }
    try {
      const result = await API.post("my-endpoint", "/my-path", payload)
      return result
    } catch (err) {
      console.log(err)
    }
  }
}

In addition if you look at the request header there is an undefined path as part of the credential.
authorization: AWS4-HMAC-SHA256 Credential=undefined/20201118/us-west-2/execute-api/aws4_request,
Amplify CLI Version
4.32.1
Expected behavior
Successful POST to API
Desktop (please complete the following information):

OS: Mac Catalina 10.15.7
Node Version. 10.16.3

We need more information to investigate.

Did you configure your Amplify library in your frontend code?

import { API } from 'aws-amplify';
import awsconfig from './aws-exports';

Amplify.configure(awsconfig);

After you update the CLI, did you modify the REST API and run amplify push?

In the aws-exports.js file do you find this section:
"aws_cloud_logic_custom": [
{
"name": "api-resource-name",
"endpoint": "https://xxxx.xxxx..amazonaws.com/",
"region": ""
}
]

Yes, this is a Vue app and I have the imports in my main.js file as follows:

import Vue from 'vue'
import App from './App.vue'

import '@aws-amplify/ui-vue'
import Amplify from 'aws-amplify'
import awsconfig from './aws-exports'
import vuetify from './plugins/vuetify'
import router from  '@/router/router'

import store from '@/store/store'

Amplify.configure(awsconfig)

Vue.config.productionTip = false

new Vue({
  vuetify,
  store,
  router,
  render: h => h(App)
}).$mount('#app')

No, but I have since tried replacing the API with another from scratch and still get the same error. The resources were definitely pushed with amplify push.

This is a snippet from my aws-export.js with the name and secrets obfuscated:

"aws_cloud_logic_custom": [
        {
            "name": "my-endpoint",
            "endpoint": "https://xxxxxxxxx.execute-api.us-west-2.amazonaws.com/<env>",
            "region": "us-west-2"
        }
]

on point 2, that means the frontend configuration file content hasn't changed for the aws_cloud_logic_custom, and you know the same endpoint used to work?
Unfortunately I don't remember which version of the client I upgraded from: do you mean you are using a new version of the Amplify library?

on point 2, that means the frontend configuration file content hasn't changed for the aws_cloud_logic_custom, and you know the same endpoint used to work?

Yes, that is correct.

do you mean you are using a new version of the Amplify library?

I upgraded the Amplify CLI version to 4.32.1, which is when the behavior began. The version of the aws-amplify library in my package.json is ^3.0.9, which has not changed.

After you update the Amplify CLI version, what amplify commands have you run to cause the frontend project to fail?
Other than the aws-exports.js file, the Amplify CLI does not interact with your frontend's Rest API. So, if your frontend project is working, it should continuously to work if you update the Amplify CLI version, because it does not change anything in your frontend project if you do not run any commands to update either the frontend config file or the backend resources.
Since you mentioned you have:
authorization: AWS4-HMAC-SHA256 Credential=undefined/20201118/us-west-2/execute-api/aws4_request,

It might be related to how your auth is setup, and there are similar issues on the JS library:
https://github.com/aws-amplify/amplify-js/issues/3816
https://github.com/aws-amplify/amplify-js/issues/2626
Please browse through them check your project's auth setup, see if you can find other possible causes.

I suspect your assertion that updating the CLI version does not affect the frontend project is not correct because all I did was update the CLI, nothing else changed, and my API stopped working.  That being said, I did resolve the issue by updating the aws-amplify library from 3.0.9 to 3.3.8. I do appreciate your help. Hopefully if anyone else runs into this it will save some time.


Add "require python version 3.6" to README

As described in the title, it'd be easier for others to get started err-free. Hope it helps and thanks :)

At the very bottom of the README.md :)


Time : No provider configured

Hi,
wonderfull project !!! thank you !
I was interested to test that early dev but i receive an error :
Nebz@testSystem:~/node-matter$ matter
/usr/lib/node_modules/node-matter/build/time/Time.js:13
Time.get = () => { throw new Error("No provider configured"); };
                   ^

Error: No provider configured
    at Function.Time.get (/usr/lib/node_modules/node-matter/build/time/Time.js:13:26)
    at new Logger (/usr/lib/node_modules/node-matter/build/log/Logger.js:46:33)
    at Function.get (/usr/lib/node_modules/node-matter/build/log/Logger.js:55:16)
    at Object.<anonymous> (/usr/lib/node_modules/node-matter/build/net/node/UdpChannelNode.js:18:32)
    at Module._compile (node:internal/modules/cjs/loader:1126:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
    at Module.load (node:internal/modules/cjs/loader:1004:32)
    at Function.Module._load (node:internal/modules/cjs/loader:839:12)
    at Module.require (node:internal/modules/cjs/loader:1028:19)
    at require (node:internal/modules/cjs/helpers:102:18)

did i missed something ?
as it might be important :
Nebz@testSystem:~/node-matter$ locale
LANG=fr_FR.UTF-8
LANGUAGE=
LC_CTYPE="fr_FR.UTF-8"
LC_NUMERIC="fr_FR.UTF-8"
LC_TIME="fr_FR.UTF-8"
LC_COLLATE="fr_FR.UTF-8"
LC_MONETARY="fr_FR.UTF-8"
LC_MESSAGES="fr_FR.UTF-8"
LC_PAPER="fr_FR.UTF-8"
LC_NAME="fr_FR.UTF-8"
LC_ADDRESS="fr_FR.UTF-8"
LC_TELEPHONE="fr_FR.UTF-8"
LC_MEASUREMENT="fr_FR.UTF-8"
LC_IDENTIFICATION="fr_FR.UTF-8"
LC_ALL=

Thanks Nebz!
Seems like my latest release was a bad one.
Hold tight, I will have it fixed shortly...

It was a bug in package.json: I renamed the main file and I forgot to update package.json to have the "matter" command link to the right file. Also the release was containing the compiled version of the old file, creating the bug that you are seeing.
Fixed now with v0.0.10 just published
Thanks for reporting this!


How to set CORS headers?

Is it possible to add some CORS headers to proxy?
Something like this?
Access-Control-Allow-Origin app.domain.com
Access-Control-Allow-Methods: GET,HEAD,POST,PUT,OPTIONS,DELETE,PATCH

This i what i have for my apache config.
    SetEnvIf Origin "^https://(\w+\.)?domain\.com$" AccessControlAllowOrigin=$0
    Header always set Access-Control-Allow-Origin %{AccessControlAllowOrigin}e env=AccessControlAllowOrigin
    Header always set Access-Control-Allow-Credentials true
    Header always set Access-Control-Allow-Methods: GET,HEAD,POST,PUT,OPTIONS,DELETE,PATCH
    Header always set Access-Control-Allow-Headers "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version"

Its needed to communicate with api.
In my situation i use multiple domains
https://account.domain.com
https://app.domain.com
https://api.domain.com
When i try to call api from app it gives me an error:
https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSMissingAllowOrigin

Isn't it possible to send these from your app? If it's Rails I'm pretty sure you can do it from there.

In the app i can add it, but how is it possible to add it into a kamal-proxy configuration?

Why do you want to make the kamal-proxy more complex when you can solve it in your app already? I think it's out of scope.

Yes, as @frenkel mentioned, configuring additional headers like this is not something Kamal Proxy provides. You can set them in your app (or at another proxy layer if you prefer to do that).


[Issue-1039] Put Output into different code box

Issue #, if available:
fixes #1039
Description of changes:
Put Output into different code box
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

I just saw that there is more to fix than just that:

Step 3 does not output anything at all
https://www.eksworkshop.com/intermediate/310_opa_gatekeeper/policy-example-1/ has similar issues and is misisng the commands to create the files that are applied in the next step

I just saw that there is more to fix than just that:

Step 3 does not output anything at all
https://www.eksworkshop.com/intermediate/310_opa_gatekeeper/policy-example-1/ has similar issues and is misisng the commands to create the files that are applied in the next step

Also just ran into this, thanks for the fixes @bklein1 !

Rebased onto main. The fix for the logs also includes that the pods are called audit-controller instead of controller-audit. There are also simplifications in the PR, that make the lives of the one going through the workshop easier.


Connection_watcher sleep hotfix

!test

Refer to this link for build results (access rights to CI server needed):
http://jenkins.2gis.local/job/vmmaster.regression/413/
Test PASSed.


Service changes in run time are not getting refreshed in ios BLE clients even upon implementing the refresh characteristics in server (IDFGH-13348)

Answers checklist.

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

General issue report
I have implemented the refresh characteristics with service UUID 0x1801 and characteristic UUID 0x2a05 which are meant for indicating the service changes in the server to the ios BLE clients. I have implemented this on esp32c3. In nrf connect mobile app for android, we have a feature to refresh services in the run time with keeping the connection. But ios requires an indication to refresh the services and detect service change. I am not receiving any indication in my mobile app. Please help me in implementing this refresh characteristics properly and how to check the indication value on my ios mobile. Thanks in advance.

Are you using the NimBLE host or the Bluedroid host?
In the Bluedroid host, GAP and GATT service are already implemented, and the Service Change Characteristic is part of the GATT service.

When using the Service Change Characteristic, the mobile device needs to first write to the Client Characteristic Configuration of the server.
When the server adds or removes a service, it will notify or indicate the client, depending on what value was written to the Client Characteristic Configuration.
It's important to note that if the server adds or removes a characteristic, this will not trigger a notification or indication from the server.
ps:
BLUETOOTH CORE SPECIFICATION Version 5.4 | Vol 3, Part G page 1523

Additionally, you can proactively send a Service Change notification by using the API esp_ble_gatts_send_service_change_indication. (https://github.espressif.cn/espressif/esp-idf/-/blob/be47da19628967449635c9042306b861a2fe3ed8/components/bt/host/bluedroid/api/include/api/esp_gatts_api.h#L584)

@esp-zhp, thanks for the reply! I am using nimBLE stack to implement this feature. I found that there is no direct implementation for runtime service changes. Can I know what should I do to indicate the client that services have changed. Also if the client does not trigger on notification or indication, how does it know to refresh and re-discover the services? Can you explain me in detail how should I achieve this in nimBLE. There is also a config setting called "Enable dynamic services", what is it used for, any idea? I enabled that and there is no difference. The client does not get any indication or refresh the services in runtime.

Hi @BestBot7 ,
Apart from information shared on https://github.com/espressif/esp-nimble/issues/72  and other details already mentioned by Zhang Haipeng here,

Also if the client does not trigger on notification or indication, how does it know to refresh and re-discover the services?

Client subscribes to server. When changes occur on server side, server will send notification to client and client then comes to know about some change on server side and then it decides to do service search or any other operation it has functionality for.

There is also a config setting called "Enable dynamic services", what is it used for

This feature is related to adding / removing services runtime. You can run this example for more details about this.

The client does not get any indication or refresh the services in runtime.

Tried with nrfconnect app as scanner . Need to connect with the example, and subscribe. Then example will send indication periodically to inform of service change which causes nrfconnect app to discover service again.
Log 2024-08-07 15_52_12.txt

Closing , based on inputs given here and discussion on esp forum.


Feature request:  Allow ontology term to be deleted

From @jeremymiller

When I add a "cell ontology term", the correct id autopopulates, which is great!  However, when I then realize that the term is wrong (and in fact I should have left the field blank), I don't see a way to clear the ID field and remove the erroneous ID.  I can replace it with another one, but in this case, that's not what I want to do."

Issue resolved with https://github.com/brain-bican/taxonomy-development-tools/pull/77


This example is overcomplicated

Did you see https://www.ory.sh/nextjs-authentication-spa-custom-flows-open-source ?

Apologies. I didn't realize the Ory Cloud offering was still in alpha and
figured the examples will improve over time so I removed my previous
comment. I did see that link, but I still think it's an overcomplicated
implementation as a quickstart example. As a reference implementation, it's
good, though.
I ended up just using Ory Cloud w/ the Managed UI for now (which seems to
be using the reference implementation).
On Fri, Jan 7, 2022 at 1:10 AM hackerman @.***> wrote:

Did you see
https://www.ory.sh/nextjs-authentication-spa-custom-flows-open-source ?
—
Reply to this email directly, view it on GitHub
https://github.com/ory/kratos-selfservice-ui-react-nextjs/issues/21#issuecomment-1007248965,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABJFIAF44PMHJU5NU4UHVM3UU2UZ3ANCNFSM5LOABF6Q
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you modified the open/close state.Message
ID: @.***
com>

No problem! There's is also a guide that is a bit easier to understand because it is just about using ory for login and not implementing your own screens - you can find the info here: https://www.ory.sh/login-spa-react-nextjs-authentication-example-api-open-source/
We are also planning a full month to spend with the whole team on restructuring the documentation and making it easier to digest. If you have some ideas we would definitely appreciate them! @vinckr would love your input. If you're interested just comment hear or reach out on slack.ory.sh :)
As a goody we also have the ory start up plan free for a year if you're interested :)

I'll be looking into this more over the weekend, but I think this pattern seems to be easier to digest for some use cases:
Create an AuthProvider:
import { createContext, useEffect, useState, useContext } from "react";
import { Configuration, Session, V0alpha2Api } from "@ory/kratos-client";
import { edgeConfig } from "@ory/integrations/next";

export const AuthContext = createContext();

const kratos = new V0alpha2Api(new Configuration(edgeConfig));

export const useAuth = () => useContext(AuthContext);

export const AuthProvider = ({ children }) => {
  const [session, setSession] = useState();
  const [logoutUrl, setLogoutUrl] = useState();
  const [error, setError] = useState();

  useEffect(() => {
    // If the session or error have been loaded, do nothing.
    if (session || error) {
      return;
    }
    // Try to load the session.
    kratos
      .toSession()
      .then(({ data: session }) => {
        setSession(session);

        kratos
          .createSelfServiceLogoutFlowUrlForBrowsers()
          .then(({ data }) => {
            setLogoutUrl(data.logout_url);
          });
      })
      .catch((err) => {
        // An error occurred while loading the session or fetching
        // the logout URL. Let's show that!
        setError({
          error: err.toString(),
          data: err.response?.data,
        });
      });
  }, [session, error]);

  const value = {
    session,
    logoutUrl,
  }

  return <AuthContext.Provider value={value}>{children}</AuthContext.Provider>;
};

Wrap your app with the AuthProvider:
import { AuthProvider } from '../contexts/AuthProvider'

function MyApp({ Component, pageProps }) {
  return (
    <AuthProvider>
          <Component {...pageProps} />
    </AuthProvider>
  );
}

export default MyApp;

Use hooks to grab session state:
import { useAuth } from '../contexts/AuthProvider';

function Index() {
  const { session, logoutUrl } = useAuth();

  return (
    <div>
      stuff here
    </div>
  );
}

export default Index;

I will be working on this pattern over the weekend. Please let me know if there are issues. Thanks. (Also this example is a incomplete since I'm doing it a bit last-minute. Hope it galvanizes some ideas.)

Also, you may want to check the original example. I just realized the multiple set calls are firing re-renders.

Thanks a lot for your contribution @rodocite !
I will check out the example and see how we can integrate it into the documentation.

@rodocite Did you solve the problem with set calls firing re-renders in your example?

@rodocite @OliverGeneser I appear to have the same problem.
Any solutions?

Let me take a look this weekend. I didn't even know this was a thing still.
But it could be as simple as wrapping that fetch in a useCallback to prevent re-renders.

@rodocite That would be awesome 😄
Thanks in advance 💯

@rodocite Would be appreciated :blush:


Device orientation API

I added the device orientation API to pannellum so a mobile phone user can view the panorama by tilting of the phone if the new button or the compass is clicked. Since the specification of W3C is still a draft I marked this feature as experimental.
So far I was able to test it with Chrome and Firefox on Android.
Firefox doesn't behave like the specification and the image suddenly rotates 180° at certain points in landscape mode. At the moment I am not able to investigate it any further since Firefox is blocking WebGL on my phone.

A proper implementation of this currently isn't possible since libpannellum doesn't currently support setting the camera roll (for the most part), which is necessary to handle device rotations. Roll support is currently part of the equirectangular fragment shader but isn't exposed; support needs to be added to the cubemap fragment shader and to the multires geometry calculations. As such, I'm going to leave this pull request unmerged but open instead of adding incomplete support; once I've added the required roll support, I'll revisit it.

After adding rotation support in 08f4d8955bf289d7ed534e9b0a4fdd91c500dbc8 and 08f4d8955bf289d7ed534e9b0a4fdd91c500dbc8, I reimplemented this feature in b0c2f03511c09f1b140079b5cf99281bca46d023. Therefore, I'm closing this pull request.


Support Hierophant nodes: Ritual of Awakening/Pursuit of Faith

Add Totem Life Regen on Calc tab
Calculate output.ActiveTotemLimit in #doActorMisc (used CalcDefence)

for Issue #850

Screenshot for Evidence.
PoB Build: https://pastebin.com/m00rJv1A

Using Spell Totem * 3
Activate Arcane Surge


Method composition not work

My functions:
@Configuration
public class StringStream {

    @Bean
    public Function<KStream<Bytes, String>, KStream<Bytes, String>> reverse() {
        return strings -> strings.mapValues(StringUtils::reverse);
    }

    @Bean
    public Function<KStream<Bytes, String>, KStream<Bytes, String>> uppercase() {
        return strings -> strings.mapValues((ValueMapper<String, String>) String::toUpperCase);
    }

}

Tried configurations:

spring.cloud.stream:
  function:
    definition: reverse|uppercase
  bindings:
    reverse|uppercase-in-0:
      destination: strings
    reverse|uppercase-out-0:
      destination: strings-processed

spring.cloud.stream:
  function:
    definition: reverse|uppercase
  bindings:
    reverse-in-0:
      destination: strings
    reverse-out-0:
      destination: strings-reverse
    uppercase-in-0:
      destination: strings-reverse
    uppercase-out-0:
      destination: strings-processed

spring.cloud.stream:
  function:
    definition: reverse;uppercase
  bindings:
    reverse-in-0:
      destination: strings
    reverse-out-0:
      destination: strings-reverse
    uppercase-in-0:
      destination: strings-reverse
    uppercase-out-0:
      destination: strings-processed

The 3rd one seems for me the most logical way to build that "application".
The 1st is like documented here and logs infinit warnings and nothing happens:
2021-01-08 21:06:54,812  WARN kafka-streams-playground-cfe0d942-27e7-4aa4-93ba-dae382cab716-StreamThread-1 o.a.k.c.c.i.ConsumerCoordinator:376 - [Consumer clientId=kafka-streams-playground-cfe0d942-27e7-4aa4-93ba-dae382cab716-StreamThread-1-consumer, groupId=kafka-streams-playground] We received an assignment [uppercase-in-0-0] that doesn't match our current subscription Subscribe(reverse-in-0); it is likely that the subscription has changed since we joined the group. Will try re-join the group with current subscription
2021-01-08 21:06:54,812  INFO kafka-streams-playground-cfe0d942-27e7-4aa4-93ba-dae382cab716-StreamThread-1 o.a.k.c.c.i.AbstractCoordinator:553 - [Consumer clientId=kafka-streams-playground-cfe0d942-27e7-4aa4-93ba-dae382cab716-StreamThread-1-consumer, groupId=kafka-streams-playground] (Re-)joining group
2021-01-08 21:06:54,817  INFO kafka-streams-playground-cfe0d942-27e7-4aa4-93ba-dae382cab716-StreamThread-1 o.a.k.c.c.i.AbstractCoordinator:504 - [Consumer clientId=kafka-streams-playground-cfe0d942-27e7-4aa4-93ba-dae382cab716-StreamThread-1-consumer, groupId=kafka-streams-playground] Successfully joined group with generation 14
2021-01-08 21:06:54,818  INFO kafka-streams-playground-cfe0d942-27e7-4aa4-93ba-dae382cab716-StreamThread-1 o.a.k.c.c.i.SubscriptionState:257 - [Consumer clientId=kafka-streams-playground-cfe0d942-27e7-4aa4-93ba-dae382cab716-StreamThread-1-consumer, groupId=kafka-streams-playground] Assigned partition uppercase-in-0-0 for non-subscribed topic; subscription is [reverse-in-0]

@benkeil Function composition is not supported in Kafka Streams binder. You can use multiple processors though (your 3rd case) in which case the functions communicate over Kafka topics, not through composition. If there is a compelling use case for function composition with KStream types, we can consider adding support for composition. What exactly is your use case that requires composition in Kafka Streams binder?

@benkeil Function composition is not supported in Kafka Streams binder. You can use multiple processors though (your 3rd case) in which case the functions communicate over Kafka topics, not through composition. If there is a compelling use case for function composition with KStream types, we can consider adding support for composition. What exactly is your use case that requires composition in Kafka Streams binder?

First of all thank you for your answer, I struggle with this since 2 weeks... You are right, function composition makes no sense for kafka.
What I really want is the configuration 3. But it does not work. There are no errors or warnings during the startup.
I double checked it and saw that (every time with the exact same application.yaml) if I remove one function from the spring context the remaining function works as expected (both variants).
This looks for me like a bug...

First of all thank you for your answer, I struggle with this since 2 weeks... You are right, function composition makes no sense for kafka.
What I really want is the configuration 3. But it does not work. There are no errors or warnings during the startup.
I double checked it and saw that (every time with the exact same application.yaml) if I remove one function from the spring context the remaining function works as expected (both variants).
This looks for me like a bug...

The following is your case 3 configuration and it should work. Are you seeing issues with this config?
spring.cloud.stream:
  function:
    definition: reverse;uppercase
  bindings:
    reverse-in-0:
      destination: strings
    reverse-out-0:
      destination: strings-reverse
    uppercase-in-0:
      destination: strings-reverse
    uppercase-out-0:
      destination: strings-processed

The following is your case 3 configuration and it should work. Are you seeing issues with this config?
spring.cloud.stream:
  function:
    definition: reverse;uppercase
  bindings:
    reverse-in-0:
      destination: strings
    reverse-out-0:
      destination: strings-reverse
    uppercase-in-0:
      destination: strings-reverse
    uppercase-out-0:
      destination: strings-processed

I don't see warnings or exceptions, but I'm too new to check what all the logs say. I uploaded a simple test project: https://github.com/benkeil/kafka-streams-playground.

I don't see warnings or exceptions, but I'm too new to check what all the logs say. I uploaded a simple test project: https://github.com/benkeil/kafka-streams-playground.

@benkeil Thanks for the sample, I found the issue. You are defining a spring.application.name in the project and that is used as the common applicaton.id for both the Kafka Streams processors. Since you have multiple processors, you need to set unique application.id for each of them, otherwise, you will have conflicts as the WARN messages above indicate. You can either remove the spring.application.name from the configuration (in which case, the binder will auto generate a static applicaiton.id for you) or define custom application.id using the property spring.cloud.stream.kafka.streams.binder.functions.<function-name>.applicationId. See the docs here for more details.

@benkeil Thanks for the sample, I found the issue. You are defining a spring.application.name in the project and that is used as the common applicaton.id for both the Kafka Streams processors. Since you have multiple processors, you need to set unique application.id for each of them, otherwise, you will have conflicts as the WARN messages above indicate. You can either remove the spring.application.name from the configuration (in which case, the binder will auto generate a static applicaiton.id for you) or define custom application.id using the property spring.cloud.stream.kafka.streams.binder.functions.<function-name>.applicationId. See the docs here for more details.

What exactly is the difference to using KTable<?, ?> instead of ??

What exactly is the difference to using KTable<?, ?> instead of ??

Thank you for your help!

Thank you for your help!


Update support information

Fixes #6686.
Summary of changes:

Update 'Support Resources' page with links to Slack and the Support
Portal.  Remove old Gitter link.

Apply changes to versions: 19.1, 19.2, 20.1.

This change is

Online preview: http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/6e4314d4c55481fc272f707c28275080ffe71f02/
Edited pages:

v19.1/support-resources.md
v19.2/support-resources.md
v20.1/support-resources.md

Thanks for taking this, @rmloveland!

I think it's worth mentioning that slack is CockroachDB Community Slack but other than that LGTM.
Thank you!

Online preview: http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/687b57a8f3e1f00628483a4c692dbc1dd51f35fc/
Edited pages:

v19.1/support-resources.md
v19.2/support-resources.md
v20.1/support-resources.md

Thanks Matt!  Updated to say "CockroachDB Community Slack".


performance optimization

Codecov Report

Merging #7 (017a5e9) into main (04c9ba3) will increase coverage by 0.35%.
The diff coverage is 94.73%.

@@             Coverage Diff              @@
##               main       #7      +/-   ##
============================================
+ Coverage     83.21%   83.56%   +0.35%
- Complexity      285      287       +2
============================================
  Files            62       62
  Lines           983      986       +3
  Branches         59       59
============================================
+ Hits            818      824       +6
+ Misses          133      130       -3
  Partials         32       32

Impacted Files
Coverage Δ

...um/ignite/migration/dao/IgniteCacheDataWriter.java
80.95% <91.66%> (+8.45%)
:arrow_up:

...gnite/migration/dao/IgniteCacheMetaDataWriter.java
93.75% <100.00%> (ø)

...um/ignite/migration/serializer/AvroFileReader.java
93.65% <100.00%> (+0.10%)
:arrow_up:

Continue to review full report at Codecov.

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


MasterDetailRelation and identity autoincrement PK on details

Dear @volkanceylan,
I've a master-detail relation and both two table have a PK which is also an identity autoincrement.
Now for the master object I can get the "assigned" PK directly from the Row.Id field (in the after save method for example), so I was wondering if there is a similar way to retrieve also the id of the inserted details. I'm asking that because I need to track those events in a sort of synch mechanism.
I tried to put some breakpoint both in the detail endpoint and repository but apparently the MasterDetailRelation doesn't trigger/use such classes...
If I create a new master obj with a detail, in the aftersave method the following code:
Row.xyzList[0].Id

is always null (where Id is the PK autoincrement identity field).
Thank you very much
Bye

Write a behavior for details

Ok I need to write a custom one...
Thanks!
Bye


rust: make rust beta and nightly be build by hydra

Motivation for this change
Building rust nightly requires rustBeta.
Both of which take 1.5 hours to compile.
This includes them into hydra builds so we don't waste peoples time too much.

@globin  From what i can tell at the https://github.com/NixOS/nixpkgs/pull/18101 discussion, i should probably add lowPrio to rustBeta and rustNightly, no?
That way we get hydra builds and the right priorities.

@exi yes, right

updated to use lowPrio


Add comments to timer_generic.c file (and rename a few structs/functions to more intuitive names)

Add comments
Rename the struct shard_type struct to timer_shard
Rename  the functionrefill_queue to refill_heap

[trickle] No significant performance differences

Corrupt JSON data (indicates timeout or crash):
    bm_fullstack_streaming_ping_pong.BM_StreamingPingPong_TCP_NoOpMutator_NoOpMutator__256k_1.counters.new: 1
    bm_fullstack_streaming_pump.BM_PumpStreamClientToServer_MinTCP__0.opt.new: 1
    bm_fullstack_unary_ping_pong.BM_UnaryPingPong_TCP_NoOpMutator_NoOpMutator__0_1.opt.new: 1

[microbenchmarks] No significant performance differences


Lazy loading not getting added to image

It appears that lazy loading isnt properly being applied to the image tag. As you can see here and on the docs size, I'm not seeing the loading attribute

Version
@nuxtjs/cloudinary 2.3.2
nuxt: ^3.5.0
Reproduction Link
Playground or https://cloudinary.nuxtjs.org/components/cldimage
Steps to reproduce
What is Expected?
loading="lazy" (or eager)
What is actually happening?
Attribute not applying

Hey Colby,
Thanks for reporting this issue. It is a bit strange because I tried to reproduce it even on stackblitz link and it works there

https://stackblitz.com/edit/github-cpyzpp?file=.stackblitz%2Fapp.vue
Could you try here and see if it works there?

the benefit of having a page full of images lazy loaded as opposed to not is more beneficial than a missed image without eager for LCP. you're producing additional network requests (potentially a lot) and using more bandwidth which is going to slow the page, especially with slower network speeds that have to download all of those requests
the tradeoffs are in favor of it as a default
while Nuxt doesnt do so by default, this is common across other frameworks as well, and i dont think this decision needs to conform to Nuxt Image

Next.js: https://nextjs.org/docs/pages/api-reference/components/image#loading
Angular: https://angular.io/guide/image-directive#disabling-image-lazy-loading
Astro: https://github.com/withastro/astro/blob/7c67fa77b22bd877d9e96c825404ec02732b47fd/packages/integrations/vercel/src/image/build-service.ts#L38
Gatsby: https://www.gatsbyjs.com/plugins/gatsby-image/#gatsby-image-props
Unpic itself: https://github.com/ascorbic/unpic-img/blob/5b64a45a8e744ca09b80813cf2bd3901e1ea1fe0/packages/core/src/core.ts#L364
Even WordPress in 2020: https://make.wordpress.org/core/2020/07/14/lazy-loading-images-in-5-5/

So if I get this correctly, you are suggesting to set lazy loading globally for all images and for things that should be LCP's on the pages use priority (fetchPriority) as a reference that would also change the value of underyling loading property from lazy to eager. Is that correct?
So for any normal image you would use:
  <CldImage
    src="cld-sample-5"
    width="987"
    height="987"
    alt="My Awesome Image"
  />

And they will be automatically lazy loaded.
While for LCP's you would use:
  <CldImage
    src="cld-sample-5"
    width="987"
    height="987"
    alt="My Awesome Image"
    fetchPriority="high"
  />

And it would set the loading="eager".
That sounds interesting. I can add it to the module, but we would need to specifically mention it in the documentation so that the users will understand how it works and what they should do to change it.
Let me know what you think about it :)

yup! exactly.
i believe they could alternatively just set loading="eager" which may be more intuitive for someone who is more familiar with the standard <img tag, im not quite sure of the difference between priority={true} and that, but both set loading to eager

Ok, I can implement it then  this way. If you don't mind I will convert it into a feature request rather than a bug and work on it to release it with the next major version :)

Can you assign this issue to me

Sure, go on @parag477 🔥
Let me know if you need some help 😃


[SD-App] please add M5Chorder

Please add this project to the m5stack registry https://github.com/wararyo/M5Chorder

This message is an automated reply:
The Travis CI build passed with https://github.com/wararyo/M5Chorder.
See https://travis-ci.org/tobozo/M5Stack-SD-Updater/builds/533268346 for more info.

This message is an automated reply:
The Travis CI build passed with https://github.com/wararyo/M5Chorder.
See https://travis-ci.org/tobozo/M5Stack-SD-Updater/builds/533278526 for more info.

The app has been scheduled for rebuild

Compilation of this package failed, it has been labeled as invalid until the source of the problem is identified and addressed

The app has been scheduled for rebuild

Compilation of this package failed, it has been labeled as invalid until the source of the problem is identified and addressed


fix: cn in the Bound phase should not be scaled in first

What type of PR is this?

[ ] API-change
[x] BUG
[ ] Improvement
[ ] Documentation
[ ] Feature
[ ] Test and CI
[ ] Code Refactoring

Which issue(s) this PR fixes:
Fixes #
https://github.com/matrixorigin/MO-Cloud/issues/3920
What this PR does / why we need it:
Not Available
Special notes for your reviewer:
Not Available
Additional documentation (e.g. design docs, usage docs, etc.):
Not Available

fixed in #547


Using NPU inference model, how to set up a single process

When using NPU to inference the MiniCPM_2_6 model, it was found that it divided python into four parallel processes for inferencing, which took up a lot of memory.

The use of GPU inference is single-process inference,

in the demo coding did not find the relevant setting of single-process code, and how to set it?

Hi @Bofuser,
For MiniCPM-V_2_6, we currently only supports running on NPU with multiple processes. We will update here for any updates if we further support running on single process.

Got it, thanks for your reply!


[Help]: implenting stack of unwrapped interfrograms and coherence files from other SAR sensors to PyGMTSAR

hi, i previously asked for adding ENVISAT support as you may remember.
i already made my stack of unwraped interferograms ( unwrap_ll.grd) and coherecne ( corr_ll.grd) by using GMTSAR software. you may know that the classic gmtsar SBAS algorithm is not good at all, so i want to use Pygmtsar as my time-sries analyzer.
the thing is how to load my stack into this program? i rode the code but i need some help.
any suggestion ?

You might load GMTSAR processed phase and correlation grids in radar or geographic coordinates using xarray functions and form a compatible stack with the ‘pair’ dimension to apply PyGMTSAR functions. Optionally, you need to generate geocoding matrices to use PyGMTSAR geocoding. However, be aware that GMTSAR phase and correlation calculations are inaccurate (with approximately 30% error in phase and smoothed correlation), and the grids and geocoding processing are not pixelwise precise. In summary, if you don’t care about accuracy, it would be relatively simple. However, if you need to perform PSI or high resolution SBAS analyses, GMTSAR-processed results are not suitable.

I see, it seems there are no other options for me since PyGMTSAR do not support Envisat processing from scratch (at least for now).

You can modify the PyGMTSAR function open_stack() to use xr.open_mfdataset() for opening multiple GMTSAR NetCDF grids by a specified path template and convert them into a 3D stack with the ‘pair’ dimension. The easiest approach seems to be using already geocoded grids.
    def open_stack(self, name, stack=None):
        """
        ...
        """
        import xarray as xr
        import pandas as pd
        import numpy as np
        import glob

        if stack is None:
            # look for all stack files
            #filenames = self.get_filenames(['*'], name)[0]
            #filenames = self.get_filename(f'{name}_????????_????????')
            # like data_20180323.grd or intf60m_20230114_20230219.grd
            filenames = self._glob_re(name + '_[0-9]{8}(_[0-9]{8})*.grd')
        elif isinstance(stack, (list, tuple, np.ndarray)) and len(np.asarray(stack).shape) == 1:
            # dates
            filenames = self.get_filenames(np.asarray(stack), name)
        else:
            # pairs
            filenames = self.get_filenames(stack, name)
        #print ('filenames', filenames)

        data = xr.open_mfdataset(
            filenames,
            engine=self.netcdf_engine,
            chunks=self.chunksize,
            parallel=True,
            concat_dim='stackvar',
            combine='nested'
        )

        # ...

        for dim in ['pair', 'date']:
            if dim in data.coords:
                if data[dim].shape == ():
                    data = data.rename({'stackvar': dim})
                else:
                    data = data.swap_dims({'stackvar': dim})

        # convert string (or already timestamp) dates to dates
        for dim in ['date', 'ref', 'rep']:
            if dim in data.dims:
                if not data[dim].shape == ():
                    data[dim] = pd.to_datetime(data[dim])
                else:
                    data[dim].values = pd.to_datetime(data['date'].values)

        return data


Case of "anyURI" seems to be wrong when serializing an AAS submodel

I came accross this error when trying to use the Submodel Client from BaSyx .NET.
When an AAS contains a property of type "AnyURI", the json representation of this property is "anyuri" instead of "anyURI". On the client side the deserialization will fail.
From the outside perspective it looks like this line of code seems to be the problem:
https://github.com/eclipse-basyx/basyx-java-sdk/blob/469032319eca85bac87faa535365ba2eab8292d3/src/main/java/org/eclipse/basyx/submodel/metamodel/map/submodelelement/dataelement/property/valuetype/ValueType.java#L39

Thank you very much for pointing this out. We will double-check any implications changing this will have and then fix it accordingly.

According to the official spec V2.0.1, "anyUri" would be correct. However, this seems to be a bug since (a) in XML it is using "anyURI" and (b) in V3RC02 it is also "anyURI". Due to compatibility reasons with the dotnet SDK, we chose "anyURI" as fix.


Update README

Purpose
This purpose of this project is to show how to use Maven and Jenkins together.


RUM-2704: Add a request builder for resources

What does this PR do?
Adds a request builder for resources, and renames the existing request builder factories to make it clear that they handle segments.
Motivation
What inspired you to submit this pull request?
Additional Notes
Anything else we should know when reviewing?
Review checklist (to be filled by reviewers)

[ ] Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
[ ] Make sure you discussed the feature or bugfix with the maintaining team in an Issue
[ ] Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

Codecov Report

Merging #1827 (1cf9ca6) into develop (1e97c29) will decrease coverage by 0.44%.
Report is 2 commits behind head on develop.
The diff coverage is 29.41%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1827      +/-   ##
===========================================
- Coverage    83.53%   83.09%   -0.44%
===========================================
  Files          467      472       +5
  Lines        16468    16599     +131
  Branches      2482     2493      +11
===========================================
+ Hits         13756    13792      +36
- Misses        2034     2125      +91
- Partials       678      682       +4

Files
Coverage Δ

...oid/sessionreplay/internal/SessionReplayFeature.kt
99.03% <100.00%> (ø)

...eplay/internal/domain/SegmentRequestBodyFactory.kt
100.00% <100.00%> (ø)

...ionreplay/internal/domain/SegmentRequestFactory.kt
100.00% <100.00%> (ø)

.../internal/recorder/SessionReplayResourceContext.kt
50.00% <50.00%> (ø)

...nreplay/internal/recorder/SessionReplayResource.kt
31.25% <31.25%> (ø)

...nreplay/internal/net/RawEventsToResourcesMapper.kt
42.31% <42.31%> (ø)

...play/internal/domain/ResourceRequestBodyFactory.kt
3.33% <3.33%> (ø)

...onreplay/internal/domain/ResourceRequestFactory.kt
26.00% <26.00%> (ø)

... and 24 files with indirect coverage changes


Separate Map-like queryability from Map edit operations

The Problem

Maps are very common and useful data structures for modeling things.
Dart provides some nice syntax sugar for maps (e.g. spread operator).
People like immutable types, including immutable maps.
Key point: there's no way to define something that's meaningfully "map-like" according to Dart without also implementing mutating methods

Proposal
Add the equivalent of an Iterable for Maps. For the sake of this let's call it MapQueryable (not a very good name). This separates out the concept of "queryable like a Map" (with standard methods like containsKey, containsValue, map, operator [], and getters like keys, values, entries, length, etc), from an actual Map with all its methods.
So this would mean:

Add the MapQueryable interface
Update Map to implement the interface
Update methods everywhere which only read from the passed map to accept MapQueryable instead of Map.

Advantages

Cleaner separation: things can be "map-like" without implementing mutation
Which also unlocks syntax sugar like the spread operator applying to a wider class of user-defined objects
Stricter guarantees: if there is an API which takes a MapQueryable instead of a Map, I as a consumer of that API can be certain that my map will not be mutated when I pass it.

What unmodifiable and constant maps do is to throw (UnsupportedError) when calling a mutating function.

In my opinion that's a sign that there is some abstraction missed here, especially if it's normally the same set of methods which are left unsupported. It's nicer to catch things at compile/lint time than runtime.

It can still lie and do is Map, so it's not a guarantee.

True, "certain" was too strong a word. But still, it would be a much better indicator of the method's behavior than that just taking a Map.

I don't expect to change the current design choice of not having read-only interfaces for collections.

That's the thing though, Iterable already sort of fills this gap for Lists (I know there's plenty of other things that implement Iterable, so it's not apples to oranges). I don't see any inherently mutating methods in Iterable (might be missing something). It's also not just about mutability, it's the ability to iterate over the thing like a Map. I called it MapQueryable but probably a better name would be KeyValueIterable.

What unmodifiable and constant maps do is to throw (UnsupportedError) when calling a mutating function.

Actually, tbh, I feel like this is one of the most dangerous aspects of Dart that I frequently come up against. The fact that const is generally recommended wherever possible, but the compiler can't always catch that some function is trying to mutate a map originally declared with const (possibly in some rarely-used branch), is itself an issue that should be solved. I'm not at all sure what this would entail, but an extension to this proposal would be to treat maps declared with const as a KeyValueIterable instead of a Map, which would automatically give some much needed type-safety to these situations (I'm aware that I'm skipping over the immense pain of converting everything that currently takes a Map but doesn't mutate it to now take a KeyValueIterable).


[WIP] Implement Kubectl plugin

Implement a kubectl plugin for showing Workflow CR info with the command line: kubectl plugin workflow
example:
> kubectl plugin workflow
NAME            NAMESPACE  STATUS    STEPS  CURRENT STEP(S)  JOB(S) STATUS
hello-workflow  default    Running   2/2    two              wfl-hello-workflow-one-kjxfc(Complete),wfl-hello-workflow-two-rj5x6(Running)

Codecov Report

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

@@          Coverage Diff           @@
##           master     #65   +/-   ##
======================================
  Coverage    29.6%   29.6%
======================================
  Files          14      14
  Lines        1135    1135
======================================
  Hits          336     336
  Misses        773     773
  Partials       26      26

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 724977b...45064c0. Read the comment docs.

In general I like this. Thanks @clamoriniere1A


MSS210 not working

Describe Your Problem:
I started today using homebridge. I was following the guide published, using HTTP Catcher and i obtained all the information needed, but my plug is not working.
Logs:
...
[3/13/2021, 5:08:45 PM] [homebridge-meross] This plugin generated a warning from the characteristic 'On': characteristic value expected boolean and received undefined. See https://git.io/JtMGR for more info.
[3/13/2021, 5:08:45 PM] [homebridge-meross] Error:
    at On.Characteristic.characteristicWarning (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2032:105)
    at On.Characteristic.validateUserInput (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1909:14)
    at On.<anonymous> (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1454:24)
    at step (/usr/lib/node_modules/homebridge/node_modules/tslib/tslib.js:143:27)
    at Object.next (/usr/lib/node_modules/homebridge/node_modules/tslib/tslib.js:124:57)
    at fulfilled (/usr/lib/node_modules/homebridge/node_modules/tslib/tslib.js:114:62)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
[3/13/2021, 5:08:45 PM] [Led] calling getOnCharacteristicHandler for MSS210 at <IP_ADDRESS>...
[3/13/2021, 5:08:45 PM] [Led] getOnCharacteristicHandler: undefined
[3/13/2021, 5:08:45 PM] [homebridge-meross] This plugin generated a warning from the characteristic 'On': characteristic value expected boolean and received undefined. See https://git.io/JtMGR for more info.
[3/13/2021, 5:08:45 PM] [homebridge-meross] Error:
    at On.Characteristic.characteristicWarning (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2032:105)
    at On.Characteristic.validateUserInput (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1909:14)
    at On.<anonymous> (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1454:24)
    at step (/usr/lib/node_modules/homebridge/node_modules/tslib/tslib.js:143:27)
    at Object.next (/usr/lib/node_modules/homebridge/node_modules/tslib/tslib.js:124:57)
    at fulfilled (/usr/lib/node_modules/homebridge/node_modules/tslib/tslib.js:114:62)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
[3/13/2021, 5:08:46 PM] [Led] calling setOnCharacteristicHandler for MSS210 at <IP_ADDRESS>...
[3/13/2021, 5:08:46 PM] [Led] Set failed: false
[3/13/2021, 5:08:46 PM] [Led] setOnCharacteristicHandler: true
[3/13/2021, 5:08:46 PM] [Led] calling getOnCharacteristicHandler for MSS210 at <IP_ADDRESS>...
[3/13/2021, 5:08:46 PM] [Led] getOnCharacteristicHandler: false
[3/13/2021, 5:08:47 PM] [Led] calling setOnCharacteristicHandler for MSS210 at <IP_ADDRESS>...

Homebridge Config:

***Read and Paste over this Text the Text Above^^^^^^

{
    "bridge": {
        "name": "Homebridge ----",
        "username": "---",
        "port": ---,
        "pin": "---"
    },
    "accessories": [
        {
            "model": "MSS210",
            "name": "Led",
            "deviceUrl": "---",
            "channel": 0,
            "messageId": "---",
            "timestamp": ---,
            "sign": "---",
            "accessory": "Meross"
        }
    ],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config"
        }
    ]
}

Environment:

Node.js Version: v14.16.0
NPM Version: 6.14.11
Homebridge Version: 1.3.3
Homebridge Meross Plugin Version: v4.0.1
Homebridge Config UI X Plugin Version: v4.40.0
Operating System: Raspbian

@pparrilla Please try v3.5.1 until 5.0.0 is released

Do you mean v3.4.1 of the plugin? Or the 3.5?

I noticed that the messageId, timestamp and sign is changing from one "On" to the next when i catch using HTTP catcher, can it be the bug?

No you can re-use them.

v5.0.0 is released


ambient run takes a very long time on a fresh windows install

Need to debug what's going on here, takes several minutes

Running with RUST_LOG=ambient_rustc=trace should tell you what the rustc module is doing (whether it's using preinstalled Rust or installing it, etc). My suspicion is that it's downloading and installing Rust + the GNU toolchain


Where do I write my macros?

Hi. On my testing website http://prob.matematicauniversitaria.com I want to use the following macro
\newcommand{\sen}{\operatorname{sen}}
so that instead of presenting sin x, it shows sen x (sine in spanish)
How would you insert it in the CSS style file?
Thanks in advance.

\newcommand{\sen}{\operatorname{sen}}\sen x works fine on katex.org.  Please see the bottom of https://katex.org/docs/options.html on how to define macros in the options object passed to katex.render() for an alternative.


Can't specify namedExports of transitive dependencies using module names

When setting the namedExports configuration object, you can specify paths or module names. Specifying module names is preferred when possible because it is not sensitive to layout of node_modules or presence of symlinks (on top of just being easier).
However, in the case of using a module name, it only works reliably for direct dependencies and not transitive dependencies because the plugin's initialization maps module names to resolved module paths by resolving from the project root. This is not guaranteed to resolve transitive dependencies depending on node_modules layout, especially when in a monorepo or using something like pnpm. I believe this also means if you have two versions of a library because of incompatible semver ranges, you won't be able to apply namedExports to both (and finding the exact path of either can be difficult and, I think, non-deterministic depending on install order and potentially other complexities).
The only way I can think to fix this right now is to NOT resolve module names to paths during initialization, and instead, when converting a CJS module grab its module name from package.json and compare with module names specified in the namedExports object.
Any other ideas?

I agree with your assessment, though of course this is only correct in a Node scenario. Not sure how much work this would be but maybe the plugin could check for the new rollup-plugin-node-resolve api and if it is found, then use the new semantics that you outlined above, but if it is not found, then use the previous semantics (which appears to be more efficient to me). That way, there would be no hard coupling of this plugin to Node's import resolution, i.e. it could also be used in other CJS scenarios, but when Node is involved, then it would adapt automatically.

Hey folks, we've moved this repo to a new home in our plugins monorepo at https://github.com/rollup/plugins. If this issue is still pertinent, please reopen, by filling out the appropriate issue template, in the new repo. Thanks for originally opening this issue, and we look forward to seeing you in the new repo. This issue is being closed and this repo is being permanently archived.


Sorting in Python (GSSoC'21)

Implement various kind of sort:
bubble sort
insertion sort
merge sort
wave sort and etc.
Please assign me this issue to me.

hi, I am a Gssoc'21 participant I want to work on "sorting"
I am comfortable in both python and C++.
please assign me this work.

Hi I am GSSOC'21 participant. I would like to implement various sorting techniques in Java.

Hi, I a GSSOC'21 participant. I would like to work on this issue. I am comfortable with python and have a decent knowledge of sorting algorithms. Please, assign me this issue.

hii,
I m Anamika jain , a GSSoC participant
please assign this to me :)

def bubbleSort(arr):
n = len(arr)
# Traverse through all array elements
for i in range(n-1):
# range(n) also work but outer loop will repeat one time more than needed.

    # Last i elements are already in place
    for j in range(0, n-i-1):

        # traverse the array from 0 to n-i-1
        # Swap if the element found is greater
        # than the next element
        if arr[j] > arr[j+1] :
            arr[j], arr[j+1] = arr[j+1], arr[j]

Python program for implementation of Insertion Sort
Function to do insertion sort
def insertionSort(arr):
 # Traverse through 1 to len(arr)
for i in range(1, len(arr)):
key = arr[i]
  # Move elements of arr[0..i-1], that are
 # greater than key, to one position ahead
        # of their current position
        j = i-1
       while j >=0 and key < arr[j] :
                arr[j+1] = arr[j]
               j -= 1
   arr[j+1] = key

def insertionSort(arr):
# Traverse through 1 to len(arr)
for i in range(1, len(arr)):

    key = arr[i]

    # Move elements of arr[0..i-1], that are
    # greater than key, to one position ahead
    # of their current position
    j = i-1
    while j >=0 and key < arr[j] :
            arr[j+1] = arr[j]
            j -= 1
    arr[j+1] = key

Issue for all sorting algorithms present at #124


Minimum spanning tree algorithm

Hey, I would like to contribute to this repo by adding the code for MST - Kruskal and Prims
It would be great if you can add this under hacktoberfest and assign me this

Given a PR #90


Make it possible to use another encryption than BCrypt

For e.g. existing systems where BCrypt has not been used as the encryption strategy for the persisted password digests, it would be most helpful to be able to specify an alternative to Bcrypt. If I'm not mistaken it would suffice to override the methods authenticate and password= in https://github.com/intridea/omniauth-identity/blob/master/lib/omniauth/identity/secure_password.rb

I realized that this can be taken care of by implementing has_secure_password for the model used by identity.


cmd/go: add -pkgdir for redirecting installed artifacts

We build static binaries: CGO_ENABLED=0 go install -x -installsuffix cgo <pkg>
For some users, we get an error: go install runtime: mkdir /usr/lib/google-golang/pkg/linux_amd64_cgo/: permission denied
As per email with Ian, this can be fixed by making the user run sudo CGO_ENABLED=0 go install -a -installsuffix cgo std, but this is unsatisfying.  If go can't install to the global dir, perhaps it should try to install somewhere private to my environment?

I plan to add a -pkgdir flag that will be usable when building alternate configurations, so that the standard library can be rebuilt and saved even if it cannot be installed in the standard place.

That sounds workable, thanks.
On Sun, Jun 28, 2015 at 8:37 PM, Russ Cox<EMAIL_ADDRESS>wrote:

I plan to add a -pkgdir flag that will be usable when building alternate
configurations, so that the standard library can be rebuilt and saved even
if it cannot be installed in the standard place.
—
Reply to this email directly or view it on GitHub
https://github.com/golang/go/issues/10210#issuecomment-116418969.


Added some Programs

i added notion.so to the list of programs

There's a lot here to review so I won't get through all of it today. Regardless, if you can comment here with your Twitter username so I can dm you a free month of Pentesterlab as a thank-you for your efforts.

https://twitter.com/abhinavprasad47

Thanks you sir
And I will also try to make some build script as mention in one of the issues for comparison

Great! Pentesterlab subscription sent as promised.

sir could you merege it as if it as fast as possibe or there will more merge conflits and i just resolved some

Hi @abhinavprasad47, we're planning to review and merge this after #153 is completed and in place. Thank-you for resolving the conflicts!


Dont sure it bug when try to apply both non exclusive offer and coupon, it make basket have negative value

Issue Summary
When I try to play around with non exclusive offer, I found out that when I apply both none exclusive offer and coupon in one cart, it make price negative value.
Steps to Reproduce

I set up not exclusive offer look like.

I set up not exclusive voucher look like this

It can apply both of this offer in basket, that make value negative

I think it should allow only 1 offer? or this is the wrong setup?
Technical details

Python version: Python 3.6.5
Django version: Version: 2.0.7
Oscar version: Version: 1.6.2

The offer applicator worked correctly, although not sure if who'd control offer limitation - I'd expect that projects implement those limitation on their end, since someone does not allow discounts higher than 10% of the order total etc.
But ultimately, order total would be zero. What do you think @django-oscar/core @django-oscar/api-team ?

LOL, welcome to my world. This is a 'feature' of combinable (non-exclusive) offers. All line-based benefits are applied on the base-price (before discounts). This was the only way to make the end-result predictable, because independent of ordering. For relative discounts it also matches closest to what clients generally expect, in my experience.
In this case - stacked absolute discounts - there is indeed a case to minimize the line-total after all benefits to zero. That is what I do in my code....
I'm pretty sure basket/abstract_models.py:Line:line_price_excl_tax_incl_discounts and it's excl_tax sibling are where the max(0, N) should be applied.

Alright, now we do not allow negative values for basket totals per 93f343055e5c3958d09e0d1f718087bf998b9fba.


Exports list returned by /_export/state is empty

Hi,
While exporting an index using
curl -XPOST localhost:9200/indexname/_export?target=/tmp/indexname.tar.gz

I can't verify the state of exports calling
curl -XGET localhost:9200/_export/state

as it returns an empty list:
{"exports":[]}

There was definitely an export under process though as I could see the .tar.gz file size increasing.
Regards,
Nick

I had the same issue (elastic and knapsack 1.7) and it was resolved by installing the plugin on all machines in the cluster. Thanks otto802!


Cant open Web-UI from certain Networks with some Policy restrictions

Hey there!
First of all, thanks for this Plugin! Makes life so much easier!
I hooked up my pi to a DynDns Service and can reach it from outside of my local network!
After beeing Happy that i can access it from everywhere, i tried opening it at my work.
Unfortunately i could not open the page.
My collegue from the IT department told me there was an error message showing in the logs.
Logs:
Access to XMLHttpRequest at 'http://xxxxxxxx' (redirected from 'http://xxxxx/api/auth/settings') from origin 'null' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header contains the invalid value 'false'.

Homebridge Config:
Show your homebridge config.json here

Environment:

Node.js Version: v13.6.0
NPM Version: v6.13.6
Homebridge Config UI X Version: 0.4.50
Operating System: Raspbian

I ran into CORS errors from fresh install, accessed via Chrome Version 117.0.xx
I navigated to chrome://settings/content/siteDetails?site=http%3A%2F%2Fhomebridge.local which is the local Chrome settings for the homebridge.local domain, and set Insecure Content to Allow. This solved my problem and the Homebridge UI is now properly loading.
It seems that recent Chrome versions don't allow CSS + JS loaded from http local domains.


Config path integration

This set of patches allows one to generate data from a combination of local results and imported results,
through the use of a search path to look up encoders and encodings from storage.
It also centralizes the interface between configuration of the encoders and the environment variables used to configure them.

First round complete

PTAL. Did not flip the bit you suggested, but have addressed most others, I think.

Seems we're in agreement about everything, so lgtm


EAB- credentials: How we can apply same EAB credentials for multiple hosts

Before you post
First make sure that your feature is not already in the program by browsing through the documentation.
Manual: https://www.win-acme.com/manual/getting-started
Reference: https://www.win-acme.com/reference/cli
Then make sure to search through the issue list to check if others have requested a similar feature already. If you find an existing issue, make your voice heard there. Your input may provide valueable extra information towards desiging a fitting solution and will increase its priority.
Is your feature request related to a problem? Please describe.
Managing credentials for 100's hosts is challenging. So Is there any way we can use same EAB credentials for all the hosts (ex: same eab creds for 100 hosts)
Describe the solution you'd like
Expectation here is to maintain same eab creds for 100 hosts
Additional context
I am getting below exception while using same eab creds for another host.
Failed to create order: [External Account Binding] The account is not awaiting external account binding
Create certificate failed: Unable to create order

Let's continue the discussion in place (Patreon).


chore(Warnings): Replace random with rand module due to elixir deprec…

…ation warning
@lau :rand.uniform/1 has been around since OTP 18.0 so this should be an easy replacement.
https://erlang.org/doc/man/rand.html#uniform-1

Thank you. Fixed in 957db47


OWNERS: Remove opokornyy

/cc @0xFelix
/cc @opokornyy
What this PR does / why we need it:
All the best and thanks for all of your work!
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer:
Release note:

NONE

/cherry-pick release-1.0
/cherry-pick release-0.4


BlockId removal: refactor: StorageProvider

It changes the arguments of Backend::StorageProvider trait from:
block: BlockId<Block> to: hash: &Block::Hash
This PR is part of BlockId::Number refactoring analysis (paritytech/substrate#11292)
polkadot companion: paritytech/polkadot#6160
cumulus companion: paritytech/cumulus#1770

bot merge


Update CI for forked repos

CI would fail to run due to the checkout not working on forked repositories. This makes the checks useless for outside pull requests. This change should fix it, though it will need testing.

Copy pasted the code into my PR, and CI now passing. Would appear to work as intended.


ClickHouse Cloud Uploads: Appending duplicate CSV file doesn't append new values

Bug with https://github.com/ClickHouse/metabase-clickhouse-driver/pull/236
If you append the same CSV file to a table that you have uploaded to the table previously, new rows will not be inserted into the table.
Steps to reproduce:

Enable CSV uploads on a ClickHouse Cloud DB.
Refresh the page.
Upload a CSV file to a collection.
Append the same CSV file to the existing model created in the previous step. Note the rows in the table is the same from step 3 even though the UI reports the append action as succeeding.
Modify the data in the CSV file, and repeat step 4, appending the CSV file to the model. Note the data is now actually appended to the data in the table.

Got it. So to allow users to upload duplicate data, we'd have to create a unique column. We can do that with an auto-incrementing integer column or UUID column. I'm now thinking this is a good reason to use UUIDs for the auto-generated primary key column _mb_row_id for ClickHouse uploads. Previously I avoided that because I wanted to wait for auto-incrementing types to be supported by ClickHouse.

Is uploading duplicates over a particular (small) time window a popular use case?
Additionally, you can, of course, try to disable https://clickhouse.com/docs/en/operations/settings/merge-tree-settings#replicated-deduplication-window.

To enable duplicate inserts, if that is a popular use-case and is necessary, you could do the following during the table creation:
CREATE TABLE foo
(
    `i` UInt32,
    `s` String
)
ENGINE = MergeTree
ORDER BY i
SETTINGS replicated_deduplication_window=0


Auth v2 Model

Fixes #9380.
Description
This PR changes the auth model to support user personas like admin, viewer etc. in an easy manner. Details about new Resource types, names and the endpoints that they protect can be found on auth-model.md page.
All the changes are backwards compatible and support rolling update, details can be found on auth-model.md page.

This PR has:

[x] been self-reviewed.
[x] added documentation for new or modified features or behaviors.
[x] added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links.
[x] added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage is met.
[x] been tested in a test Druid cluster.

Key changed/added classes in this PR

*Resource classes
*ResourceFilter* classes
Authorizer class

Checks are green @jon-wei  can you have a look, thanks !

@pjain1 Thanks! I'll take a look this week

@jon-wei can you please take a look


tooling: narrowing exception checks

I reviewed a PR adding exceptions to a previously exception free path without realizing it.  Narrowing the checks so we're more likely to catch this in CI.
Risk Level: n/a (tooling only)
Testing: ci
Docs Changes: n/a
Release Notes: n/a
part of https://github.com/envoyproxy/envoy/issues/27412

/retest


Helios 2.1 release

2.1.0 May 16 2016

Added support for batch writes
Made write objects reusable
IPv6 support for legacy API

Net performance impact of above changes as reported by build server:
Before
      Metric |           Units |             Max |         Average |             Min |          StdDev |

---------------- |---------------- |---------------- |---------------- |---------------- |---------------- |
TotalCollections [Gen0] |     collections / s |           40.14 |           40.14 |           40.14 |            0.00 |
TotalCollections [Gen1] |     collections / s |            2.86 |            2.86 |            2.86 |            0.00 |
TotalCollections [Gen2] |     collections / s |            0.53 |            0.53 |            0.53 |            0.00 |
TotalBytesAllocated |           bytes / s |      293,950.63 |      293,950.63 |      293,950.63 |            0.00 |
[Counter] inbound ops |      operations / s |       55,782.90 |       55,782.90 |       55,782.90 |            0.00 |
[Counter] outbound ops |      operations / |       55,783.07 |       55,783.07 |       55,783.07 |            0.00 |
Max concurrent connections |      operations |          440.00 |          440.00 |          440.00 |            0.00 |
After
      Metric |           Units |             Max |         Average |             Min |          StdDev |

---------------- |---------------- |---------------- |---------------- |---------------- |---------------- |
TotalCollections [Gen0] |     collections |           26.41 |           26.41 |           26.41 |            0.00 |
TotalCollections [Gen1] |     collections |            8.33 |            8.33 |            8.33 |            0.00 |
TotalCollections [Gen2] |     collections |            0.08 |            0.08 |            0.08 |            0.00 |
TotalBytesAllocated |           bytes |       38,170.63 |       38,170.63 |       38,170.63 |            0.00 |
[Counter] inbound ops |      operations |       99,728.63 |       99,728.63 |       99,728.63 |            0.00 |
[Counter] outbound ops |      operations |       99,728.67 |       99,728.67 |       99,728.67 |            0.00 |
Max concurrent connections |      operations |          945.00 |          945.00 |          945.00 |            0.00 |

cool,use it! now!


FIX : mine page no task found issue

Closes: #748
Description of Changes:
This pull request aims to address the issue of tasks not being displayed on the mine page in our platform. The problem is likely due to a bug in the tasks API, and this PR includes the necessary changes to rectify the situation.
Changes Made:

Updated Tasks API (RTK): The tasksAPI.ts file has been updated to ensure that it retrieves and provides the assigned tasks correctly to the mine page. The bug responsible for the missing tasks has been identified and fixed.
Mine Page Updates: The mine page components have been modified to handle the response from the updated tasks API and display the assigned tasks properly. Users should now be able to see their tasks on the mine page without any issues.

Test Coverage:
To ensure the correctness and robustness of the changes made, relevant tests have been added to cover the following scenarios:

tasksAPI.ts (RTK) Test: New test cases have been added to verify that the tasks API returns the correct tasks for a specific user.

Mine Page Test: The mine page component has been tested to ensure that it correctly renders tasks when there are assigned tasks and displays an appropriate message when no tasks are available for the user.

Anything you would like to inform the reviewer about:

No

Dev Tested:

[x] Yes

Images/video of the change:
https://github.com/Real-Dev-Squad/website-status/assets/70854507/60f548b5-8da6-49ad-ba05-3c899e12ef64
Follow-up Issues (if any)

In the video when you click on mine, we briefly see 'not authorized, click to login'
Since you are already logged in that should not appear.
Is there a separate issue filed for it?

In the video when you click on mine, we briefly see 'not authorized, click to login' Since you are already logged in that should not appear. Is there a separate issue filed for it?

This issue is related to useAuthenticated custom hook and @kotesh-arya is working on it (issue ticket #746 )


Installation without Composer

Hi,
How I can install without Composer?

Highly recommend against doing this; Composer effectively provides Dependency Management and also autoloading here, this library absolutely does not support installation without Composer.
At any rate, there's a rough answer on Stack Overflow: https://stackoverflow.com/questions/40545795/how-do-i-install-composer-php-packages-without-composer

The composer.json file lists the dependencies. In your example:
"require": {
    "php": ">=5.5.0",
    "guzzlehttp/guzzle": "^6.0",
    "psr/http-message": "^1.0",
    "psr/log": "^1.0"
},

You must then find the corresponding packages in the packagist site. Repeat the same process for each dependency: find additional dependencies in their corresponding composer.json files and search again.
When you finally have a complete list of the required packages, you only need to install them all one by one. For the most part, it's just a matter of dropping the files somewhere in your project directory. But you must also ensure that PHP can find the needed classes. Since you aren't using Composer's auto-loader, you need to add them to your own custom autoloader. You can figure out the information from the respective composer.json files, e.g.:
"autoload": {
    "psr-4": { "Coinbase\\Wallet\\": "src/" }
},

If you don't use a class auto-loader you'll need to figure out the individual require_once statements. You'll probably need a lot of trial and error because most library authors won't care documenting that.

I understand. Thank you for your time.
I installed it with Composer and I started it but if I add Cloudflare SDK, it is a error (Internal 500) for other classes. Therefore how I think I need a path.
Thank you again.

Do you know what the specific error is? Detailed error logging will be in your PHP error log file.
As this isn't about a bug per se, this question is likely best suited for the Cloudflare community, feel free to post on community.cloudflare.com
Thanks


303 - Implement GA4 custom events script

Issue Number
Closing #303
Purpose/Implementation Notes
Created the GA4 custom events script  with gtag API that contains all methods required for data collection (sheet).
Types of changes

New feature (non-breaking change which adds functionality)

Checklist

[x] Lint and unit tests pass locally with my changes
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have added necessary documentation (if appropriate)
[ ] Any dependent changes have been merged and published in downstream modules

I’ve applied your feedback and also added comments to each function to describe what they do. This PR is now ready for another look, thank you David!

I've applied your suggestions at 87b47700f000b7342fe15593565e61e77b1b3159, which includes the following changes:

Added new helper modules:

helpers/getReadable
analytics/helpers

Added a new configuration file config/readables for helpers/getReadable
Updated the analytics/gtag script to:

Accept the entire data structure instead of specific tracking values and extract necessary values inside each method
Define a new constant payload and assign extracted tracking values to it before passing it to GA event method
Utilize new helper modules

This PR is ready for another look, thank you David!

I've updated this PR based on the suggestions and it's ready for your review. Thank you, David!


YamlResourceLoader breaks Yaml compliance

2.0.1 of the bom

I am using

OpenRewrite v8.1.11
Maven/Gradle plugin v5.3.2
rewrite-module v8.1.11

How are you running OpenRewrite?

What is the smallest, simplest way to reproduce the problem?
Sorry, I can not cut and paste into github. But this one is simple
Create Yaml recipes for CreateTextFile. In the "fileContents" key place a value "My host is ${sys:host}" and run.
The created file will contain "My host is host".
What happens is YamlResourceLoader uses PropertyPlaceHolderHelper to convert strings like ${name:default_value}  by looking up the property "name" and replacing the construct with the found value or the default.
Great idea except properties are not part of Yaml.
And I am trying to create log4j2.properties files which themselves honor the same syntax. So my log4j2.properties just contain "host" and not "${sys:host}" and there is no way of escaping this.
Ideally this could be removed or a parameter to disable it could be added.
Are you interested in contributing a fix to OpenRewrite?

Maybe, I just have to be ultra careful about not mixing any work related items into this.

Thanks for reporting this issue! Would you like to start contributing into it by creating a PR with some tests that reproduces the issue?

Can you recommend simple instructions for creating a fork or branch, then a
PR?
Thank you
On Fri, Jul 28, 2023, 7:15 AM Joan Viladrosa @.***>
wrote:

Thanks for reporting this issue! Would you like to start contributing into
it by creating a PR with some tests that reproduces the issue?
—
Reply to this email directly, view it on GitHub
https://github.com/openrewrite/rewrite/issues/3444#issuecomment-1655512047,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABZB5ASM77EY7VYRSTFGZNTXSONMPANCNFSM6AAAAAA22VESHU
.
You are receiving this because you authored the thread.Message ID:
@.***>


Bug: Backspace in Firefox duplicates entire line

https://github.com/facebook/lexical/assets/70709113/50e4b047-ff90-4b2e-9e63-1fc9a52477e8
This only happens in Firefox. It does not happen in Chrome. I'm on macOS.
To reproduce:

Create multi-line paragraph
Select last word in the paragraph
Press backspace

Original issue (from lexical editor used in payload): https://github.com/payloadcms/payload/issues/3928

Found this issue originally in Payload's implementation, now also in Lattice an HR software that is also using lexical editor.
Would love to see some movement on it, so not every customer support is just recommending chrome as default to solve any browser related problem ;)

Just in case it's useful, I've found several slightly different methods for reproducing this:
Common setup for all methods below

Use Firefox
Type "This is a test"
Press Shift+Enter (to enter a linebreak in the current paragraph)

Up/Down arrow key method

Position the cursor at the end of the first line
Press Down, Up (so that the cursor is once again positioned at the end of the first line, but you got there via an Up arrow keypress)
Press Backspace
--> See the text "his is a test" appear after the cursor

Double-click selection method

Double-click on the word "test" to select it
Press Backspace
--> See the text "his is a test" appear after the cursor

Ctrl+Shift+Right arrow selection method

Position the cursor just before the word "test"
Press Ctrl+Shift+Right (macOS: Option+Shift+Right) to select the whole word "test"
--> See the text "his is a test" appear after the cursor

Ctrl+Delete method

Position the cursor just before the word "test"
Press Ctrl+Delete (macOS: Option+Fn+Backspace) to delete the whole word "test"
--> See the text "his is a test" appear after the cursor

The common pattern in all of these methods seems to be that the cursor jumps to the position immediately before the linebreak via some "unusual" method.

I'm confused! The fix for this was merged, then reverted. The bug still reproduces on the playground. Should this issue be reopened?


fix: do not use normal_order as part of commutator methods

Summary
Fixes #1298
Details and comments
In #1208 we had discussed the inclusion of normal_order into the commutator methods without realizing that this breaks API. Here, I simply remove this call and update the unittests accordingly.
Basically, this means that the user needs to normal-order the result themselves if needed (which is totally fine).

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

2 of 2 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.01%) to 86.775%

Totals

Change from base Build<PHONE_NUMBER>:
0.01%

Covered Lines:
8786

Relevant Lines:
10125

💛  - Coveralls


Latest 8.1.1-canary.55 version compatibility issue with next-css plugin

Bug report
Describe the bug
While attempting to run the with-linaria example which uses the next-css plugin, I found the following error gets thrown when using the latest canary build of next.js 8.1.1-canary.55
{ Error: Cannot find module 'webpack'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Module.require (internal/modules/cjs/loader.js:690:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/sandbox/node_modules/extract-css-chunks-webpack-plugin/dist/index.js:11:16)
    at Module._compile (internal/modules/cjs/loader.js:776:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3) code: 'MODULE_NOT_FOUND' }

To Reproduce
See https://codesandbox.io/s/nextjs-811-canary55-bug-8gtqi
Downgrading the version of next.js to 8.1.1-canary.54 fixes the error
Expected behavior
There is no error
System information

OS: macOS
Version of Next.js: 8.1.1-canary.55

Same issue with next-sass package.

I think it's caused here https://github.com/zeit/next.js/pull/7628
Cc @guybedford

This will be fixed in the next canary. Sorry for the noise!

Thanks team!


tag for Agda 2.6.1 compatible version

Is it possible to add a tag to a commit that is known to typecheck with Agda 2.6.1? This will allow us to package a non-broken version on nixpkgs without just picking a random commit

v0.1.2 is that tag (that I have also released). It is, as far as I can tell, the least-upper-bound of commits that are compatible.

That's great, thanks

I've just tried this out, unfortunately this commit doesn't build as it uses deprecated modules from the standard library. In particular it uses Data.List.Any which was fixed in this commit https://github.com/agda/agda-categories/commit/cb45c256753301b90f98318427a161a1122a058e#diff-c1a3a9626bd9de859ba7591145be9f29

Ok, thanks, I'll make another release.

v<IP_ADDRESS> hopefully will work.  I did do a fresh install on a new machine and ran the tests, and they worked.

I'll give it a try, sorry for all the hassle

Seems to work, thanks for all the help 👍

No problem, I'm super happy to have dedicated users (it's been a while... I kind of missed being a maintainer, actually).


The debugger reports the wrong line number in an else block

Godot 3.1 alpha 2
Godot 3.0.6
Windows 10 64 bits
The given code is intentionally wrong at runtime, but the debugger doesn't point out the correct line:
extends Node

func _ready():
	if false:
		print("Unreachable")
	else: # The debugger points this line
		# This is a test
		get_node("Inexistent").name = "42" # But this line is where the error occurs

Project:
WrongLineNumberAfterElse.zip

Duplicate of #20820.


"OK" alerts

Not an issue
Prometheus alert manager  does not have an "OK" alert feature ,ie : when a particular alert stops coming an OK alert may be sent .It helps a lot  for teams with large number of people
Is there a way other than tweaking on inhibition rules for this .

Closing this as RESOLVED state of an alert does the same job


Getting "access is denied" in user folder when running "uv tool install" on Windows 10

I tried the posting app with uv on my Windows 10 machine. The author of posting recommends running the following command:
uv tool install --python 3.12 posting
When I run that in a regular Windows Terminal or a Windows Terminal with admin privileges, I get the following error:
C:\workspace\> uv tool install --python 3.12 posting
Resolved 35 packages in 5.75s
   Built pyperclip==1.9.0
Prepared 34 packages in 4.25s
error: Failed to install: httpx-0.28.1-py3-none-any.whl (httpx==0.28.1)
  Caused by: Failed to persist temporary file to C:\Users\Mike\AppData\Roaming\uv\tools\posting\Lib\site-packages\..\..\Scripts\httpx.exe: Access is denied. (os error 5)

I tried this on two different Windows 10 machines with the same result. I tried running uv cache clean and re-ran the above command with the same result.
I am using uv 0.5.10 (37b11ddb2 2024-12-17)

I seem to have seen this issue before. Can you tell me the output of running the following command?
Get-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' -Name 'LongPathsEnabled'

Here's what I get:
LongPathsEnabled : 0
PSPath           : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem
PSParentPath     : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control
PSChildName      : FileSystem
PSDrive          : HKLM
PSProvider       : Microsoft.PowerShell.Core\Registry

Hmmm, I actually would expect uv to install it in C:\Users\Mike\.local\bin\posting.exe which is where it does on my Windows system. Was this working for you previously?


Create Intersecting Models between Broker and Trading API

Create all intersecting models between Broker and Trading API.

[x] Clock Closed By #58
[x] Calendar Closed By #59
[ ] Corporate Action Announcement
[ ] Portfolio History
[ ] Position
[ ] Asset
[ ] Watchlist (Depends on Asset)

Should this issue also include Order?


Youtube download error: HTTP Error 403: Forbidden

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.youtube.com/watch?v=2mY7AFTtYwQ']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.01.03
[debug] Git HEAD: 8e953dcbb
[debug] Python version 3.8.2 (CPython) - macOS-10.15.6-x86_64-i386-64bit
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] 2mY7AFTtYwQ: Downloading webpage
[youtube] {18} signature length 110, html5 player 5dd3f3b2
[youtube] {313} signature length 110, html5 player 5dd3f3b2
[youtube] {271} signature length 110, html5 player 5dd3f3b2
[youtube] {137} signature length 110, html5 player 5dd3f3b2
[youtube] {248} signature length 110, html5 player 5dd3f3b2
[youtube] {399} signature length 110, html5 player 5dd3f3b2
[youtube] {136} signature length 110, html5 player 5dd3f3b2
[youtube] {247} signature length 106, html5 player 5dd3f3b2
[youtube] {398} signature length 110, html5 player 5dd3f3b2
[youtube] {135} signature length 110, html5 player 5dd3f3b2
[youtube] {244} signature length 106, html5 player 5dd3f3b2
[youtube] {397} signature length 110, html5 player 5dd3f3b2
[youtube] {134} signature length 110, html5 player 5dd3f3b2
[youtube] {243} signature length 106, html5 player 5dd3f3b2
[youtube] {396} signature length 110, html5 player 5dd3f3b2
[youtube] {133} signature length 110, html5 player 5dd3f3b2
[youtube] {242} signature length 110, html5 player 5dd3f3b2
[youtube] {395} signature length 110, html5 player 5dd3f3b2
[youtube] {160} signature length 110, html5 player 5dd3f3b2
[youtube] {278} signature length 106, html5 player 5dd3f3b2
[youtube] {394} signature length 110, html5 player 5dd3f3b2
[youtube] {140} signature length 110, html5 player 5dd3f3b2
[youtube] {249} signature length 106, html5 player 5dd3f3b2
[youtube] {250} signature length 110, html5 player 5dd3f3b2
[youtube] {251} signature length 110, html5 player 5dd3f3b2
[debug] Default format spec: best/bestvideo+bestaudio
[debug] Invoking downloader on 'https://r2---sn-ibj-i3bs.googlevideo.com/videoplayback?expire=1609667154&ei=8T3xX8TrOovMgQOHnpuwCw&ip=<IP_ADDRESS>&id=o-AM98fkc-5a8kh3nlwY4OkZ4nn1QfI1fT3USkkknB-SDn&itag=18&source=youtube&requiressl=yes&mh=t0&mm=31%2C29&mn=sn-ibj-i3bs%2Csn-i3belnls&ms=au%2Crdu&mv=m&mvi=2&pl=26&gcr=tw&initcwndbps=953750&vprv=1&mime=video%2Fmp4&ns=P9fBR8f0pYW_9n4TmYcw0XwF&gir=yes&clen=18145266&ratebypass=yes&dur=210.256&lmt=1585274392033151&mt=1609645230&fvip=2&c=WEB&txp=5531432&n=bJ19dMHY_vzST7JE&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cgcr%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cratebypass%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRAIgdm6ZpcYLQtwDKRaINCEWh_CF1zth3P9j1XGZq_cWEMcCIGfFQTwXIBaXxRcBSoj6o_Eazg_RPTxYRsQpDm0i7cvs&sig=AOq0QJ8wRgIhAIbDZK98T1BMHPXETVCH8l_VgUNHWHfi8mMSvqjLJRMKAiEArCc31vG4knwnkcQlIlrX_QniQwCotdFlNVF-8nKMWLA='
ERROR: unable to download video data: HTTP Error 403: Forbidden
Traceback (most recent call last):
File "/Users/egbert/work/youtube-dl/youtube_dl/YoutubeDL.py", line 1936, in process_info
success = dl(filename, info_dict)
File "/Users/egbert/work/youtube-dl/youtube_dl/YoutubeDL.py", line 1875, in dl
return fd.download(name, info)
File "/Users/egbert/work/youtube-dl/youtube_dl/downloader/common.py", line 366, in download
return self.real_download(filename, info_dict)
File "/Users/egbert/work/youtube-dl/youtube_dl/downloader/http.py", line 351, in real_download
establish_connection()
File "/Users/egbert/work/youtube-dl/youtube_dl/downloader/http.py", line 116, in establish_connection
raise err
File "/Users/egbert/work/youtube-dl/youtube_dl/downloader/http.py", line 110, in establish_connection
ctx.data = self.ydl.urlopen(request)
File "/Users/egbert/work/youtube-dl/youtube_dl/YoutubeDL.py", line 2248, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 531, in open
response = meth(req, response)
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 640, in http_response
response = self.parent.error(
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 569, in error
return self._call_chain(*args)
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 502, in _call_chain
result = func(*args)
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden

Look at https://github.com/ytdl-org/youtube-dl/pull/25068.
Short: Append --rm-cache-dir
I guess, this issue can be closed

Look at https://github.com/ytdl-org/youtube-dl/pull/25068.
Short: Append --rm-cache-dir
I guess, this issue can be closed


No blank page for media: prepress

Hello,
I need a PDF document with different inner and outer margins of the page (:doctype: book, :media: prepress)  with no blank page also.
However I have  the one blank page before the Table of Content always.
How can I disable all blank pages in result PDF?
My environment:
$ asciidoctor-pdf --version
Asciidoctor PDF 1.5.0 using Asciidoctor 2.0.10 [https://asciidoctor.org]
Runtime Environment (ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-linux-musl])
(lc:UTF-8 fs:UTF-8 in:UTF-8 ex:UTF-8)

Thank you for a help.

These two features are linked to the prepress media mode. You either get both of them by setting media to prepress or neither of them by setting media to print (or screen). That can't be changed.

This is a pity, because in that case there is no possible to deploy a PDF with the blank page a Amazon's paperback.

If you have a proposal for how this can be expressed / configured, please come forward with it. But you need to propose something.

Unfortunately, I found no solution.

Take some time to think about it and feel free to work through ideas here.

According to the documentation, the attribute showtitle! (located in the document header or via the CLI or API)  should suppress the printing of the first page, unfortunately it seems does not work.

You can control whether or not the document title appears in the converted document using the showtitle attribute.

I am sorry, but I still don't see a usable solution.

According to the documentation, the attribute showtitle! (located in the document header or via the CLI or API) should suppress the printing of the first page, unfortunately it seems to have no effect.

Please use notitle instead. There seems to be a problem with its negated form, showtitle!.

I am sorry, but I still don't see a usable solution.

Then I'm confused why you opened the issue. An open source project relies on collaboration with the requester. That means to get the behavior you want, you need to be willing to participate in the design of that feature. What I'm asking is for you to propose how you would like to configure the feature and I can give you feedback on that design.

Ok, my suggestion is: if the document is compiled according to the pattern:
asciidoctor-pdf -o book.pdf -a showtitle! book.adoc

The first page including the followed white page will be removed from the resulting PDF. The version Asciidoctor PDF 1.5.0 using Asciidoctor 2.0.10  generates a title page followed by a white page.
Sample of document:
= AsciiDoc Article Title
Firstname Lastname<EMAIL_ADDRESS>1.0, July 29, 2014, Asciidoctor 1.5 article template
:toc:
:icons: font
:doctype: book
:media: prepress
:showtitle!:

Content entered directly below the header but before the first section heading is called the preamble.

== First level heading

This is a paragraph with a *bold* word and an _italicized_ word.

This is another paragraph.

== Next level heading

.Unordered list title
* list item 1
* list item 2

This is a paragraph.

In this case the PDF document will be started with heading: Table of Contents.

Have you tried the same command with the notitle attribute instead?

Parameter notitle works as expected, thank you very much for the help.
I propose to correct the documentation: https://asciidoctor-docs.netlify.com/asciidoc/1.5/header/title/

I'm glad to hear that's working for you! I apologize for misunderstanding your original question. You have identified an inconsistency in the behavior and/or documentation. And we're also missing tests for this case in Asciidoctor PDF. In brief, the showtitle attribute is not currently not reliable. The notitle attribute is the preferred approach.

For the record, this is documented here: https://github.com/asciidoctor/asciidoctor-pdf/blob/master/docs/theming-guide.adoc#title-page


Fix version

just testing something, don't merge yet

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.


Add redirect to the GSoC website

Redirects keptn.sh/gsoc to https://github.com/keptn/community/blob/main/mentorship/gsoc where all the content resides at the moment
Signed-off-by: Oleg Nenashev<EMAIL_ADDRESS>

@oleg-nenashev your changes look good to me, but what is actually the reasoning why you would like to have this redirect? From where is the user coming?

@oleg-nenashev your changes look good to me, but what is actually the reasoning why you would like to have this redirect? From where is the user coming?

It is for a link on GSoC public materials and in the org profile. The redirect should be helpful if we decide to move the content over to the website

The redirect doesn't seem to work in the preview...

Indeed...


Readme rspec typo

In the README, "rspec" was misspelled as "rpsec" in one place. While I was in there, I noticed a few spots where the official "RSpec" capitalization wasn't used, so I went ahead and made those consistent as well.
Thanks for this great library! Hopefully someday I'll have a more substantive PR to contribute =]

Thanks


add deploy to bm x86 rig

Change-type: patch

@balena-ci I self-certify!

Saw this now, we probably can prevent rewriting a new step for this action with a matrix having values for an x86 input?


QRCode Classed defined on Window

All of the classes defined within the library are defined on the Window.
To ensure they do not cause conflict or pollute the Window object they should be contained within the qrcode object.

Altough i agree, i don't have time to change this. I would accept a pull request

Closing this because you yourself cannot implement it does not seem fair as the issues itself is not resolved.
I have been working on changes for this issue as well other changes to make the API more usable so I was also polling how active this project is.

Fixed for real on #5


New version: bornova.numara version 3.11.5

Auto-updated by vedantmgoyal2009/winget-pkgs-automation in workflow run 454
Microsoft Reviewers: Open in CodeFlow

/azp run


Print a little more info for errors in job.save()

I always end up with weird errors because I switch around between PR branches so often. This just adds a little more info to help debug the error messages. Shouldn't affect normal users at all.

That looks OK to me.


[Relay][Legalize] Legalize conv2d_transpose for NHWC

This PR Legalizes conv2d_transpose for NHWC.
I need to compile palm_detection.tflite model from mediapipe.
This model uses TRANSPOSE_CONV op. TFLite models uses NHWC data layout only.
In order to add TRANSPOSE_CONV to TFLite frontend I need to Legalize conv2d_transpose for NHWC first.
The fact that weights layout and kernel_layout should have flipped IO is very confusing.
I added comments about it in code.

@anijain2305 Can you take a look?

@merrymercy  Can you have a look as well?
All checks have passed

Thanks @apivovarov