meltano invoke airflow fails with StrictVersion error when Airflow is misconfigured

Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/2758
Originally created by @hkaansimsek on 2021-05-18 09:10:49

When LocalExecutor set w/ default SQLite meltano gives StrictVersion object has no attribute 'version' error.
The actual message should be something like that: "error: cannot use SQLite with the LocalExecutor."

View 4 previous comments from the original issue on GitLab


On debian does not support changing socket location

If I am not mistaken, if you change the socket location the debian.cnf does not get updated (tested Ubuntu 12.04):
template "/etc/mysql/debian.cnf" do
  source "debian.cnf.erb"
  variables(debian_password: passwords.debian_password)
  owner "root"
  group "root"
  mode "0640"
  sensitive true
  if node["percona"]["auto_restart"]
    notifies :restart, "service[mysql]", :immediately
  end
  only_if { platform_family?("debian") }
end

vagrant@dboms:/data$ cat /etc/mysql/my.cnf | grep socket
socket = /data/mysqld.sock
socket           = /data/mysqld.sock
socket            = /data/mysqld.sock
vagrant@dboms:/data$ sudo cat /etc/mysql/debian.cnf | grep socket
socket   = /var/run/mysqld/mysqld.sock
socket   = /var/run/mysqld/mysqld.sock

I see this same issue on 14.04. The problem is that the configure_server recipe updates my.cnf first, then tries to restart the service. Since debian.cnf has not been updated yet, the restart will fail as the service script is still looking to communicate over the old socket.
The code that was added (in 0.16.0 I believe) to update debian.cnf doesn't actually work since it will never run with the restart failure.

Closing due to inactivity.
If this is still an issue please reopen or open another issue. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help!
Thanks,
Sous-Chefs


Ways to fix incorrect coref resolution?

doc._.coref_clusters  returned from doc=nlp('Who ate the cake? Was it the cat?') is [the cake: [the cake, it]], with the default greedyness value of 0.5. For larger values, the correct reference to "who" still can't be returned.
What're some possible ways to fix this kind of problem? Thanks!

Thanks for the report! Merging with Issue #215.


Is this ready to use?

Hi,
Thanks for making this available.  I see that you just have one commit.  Is this ready to use?
I will look more carefully at your paper, but does the technique work reasonably well for signals that very little to no periodic structure?
Thanks

Hi,

I am not related to author of the papers.

The code is ready to use. I have added the usage section.

The code worked for the mentioned dataset. For other dataset, it might work as wll as suggested by the authors of the paper.

Thanks.

Hi,

I am not related to author of the papers.

The code is ready to use. I have added the usage section.

The code worked for the mentioned dataset. For other dataset, it might work as wll as suggested by the authors of the paper.

Thanks.


Cursor is not visible in Firefox when editor is empty

Open http://jsfiddle.net/mnaoumov/ajr2ot4a/ in Firefox.
The editor is empty. If you click into it the cursor is not appearing. It looks like the editor is not enabled.  However if you type something the cursor appearing

Fix can be validated http://jsfiddle.net/mnaoumov/ajr2ot4a/2/


Tennis dataset for V3

I remember in the initial research there was a tennis dataset and it was also trained. How can I train this V3 model for tennis and not for shuttlecock? Will it different in any way?

Thank you so much! Can you suggest some free services where i can train this model? So far i've been using jupiter notebook and it's still rather slow in his free version :)
If you don't mind me contacting you in future with questions please reply to my email<EMAIL_ADDRESS>Thanks :)

Hi @maisiukartyom,
I'm sorry, but I don't have much experience using free online GPUs, so I can't provide a useful suggestion. Maybe you can check here.
Additionally, I am not sure about the specific aspect you're referring to as 'slow'.
If you're referring to the overall training time, it's influenced by the batch size. For example, using a batch size of 10, it would take approximately 3 days to complete 30 epochs.
If you're referring to the convergence speed, usually, the loss starts to decrease significantly after the first epoch.
If you have any further questions, feel free to create a new issue or contact my email at<EMAIL_ADDRESS>

Hi!
If I create this drop_frame.json file where is it used in training later on? And what's its structure?

drop_frame.json is only for evaluation. It is utilized to define the valid trajectory, beginning with the serve and concluding at the point of the ball's descent.

For your reference, I chose the last rally in each match to form the validation set for the badminton dataset. This comprises approximately 18% of the training set. I trained the TrackNet for 30 epochs and the InpaintNet for 300 epochs.

And test/train ration of 80/20 % is optimal?


[rtexture] Drawing texture with negative width or height draws nothing

Issue description
When drawing a sprite with a negative value on only 1 axis; the sprite will not be rendered.
When using a negative value on the x and y axis, will render as expected, code example should have expected behaviour of the image only being flipped on the xaxis.
Environment
Fedora Workstation 40, OpenGL 4.6, Intel ADL Gt2 and rx7900xt GPU tested.
Issue Screenshot

Code Example
#include <raylib.h>

int main () {
    InitWindow (640, 360, "Hello World");

    Texture2D texture = LoadTexture ("image.png");

    while (!WindowShouldClose ()) {
        BeginDrawing ();
        ClearBackground (SKYBLUE);

        Rectangle source = {
            .x      = 0,
            .y      = 0,
            .width  = (float)texture.width,
            .height = (float)texture.height,
        };

        Rectangle destination = {
            .x      = 320,
            .y      = 180,
            .width  = -(float)texture.width,
            .height = (float)texture.height,
        };

        DrawTexturePro (texture, source, destination, CLITERAL (Vector2){0, 0}, 0, WHITE);
        EndDrawing ();
    }

    UnloadTexture (texture);

    CloseWindow ();
}

@lxmcf Yes, this is the expected behaviour. Destination width/height can not be negative. Added an additional check.


Indentation rule change in 0.40.0

cc @umbertosidoti @theerasan
Hi - it seems that this is new in 0.40.0, and I think it may be related to:

https://github.com/pinterest/ktlint/issues/921
https://github.com/pinterest/ktlint/pull/950
https://github.com/pinterest/ktlint/issues/938

Any info or guidance would be appreciated. Have considered creating our own ruleset but wanted to understand why this is happening first.
Expected Behavior
Indentation indent error shouldn't be triggered (ktlint should pass) for these lines:
class ApplyEmailViewModel @Inject constructor(
    viewModelExecutor: ViewModelExecutor,
    private val navigator: MainNavigator,
    private val interactor: EmailInteractor,
    private val viewStateMapper: EmailToEmailViewStateMapper,
    private val analytics: ApplyEmailAnalytics
) : BaseViewModelEventLiveData<
    ApplyEmailViewState,       # Line 22
    ApplyEmailEvent.              # Line 23
    >(viewModelExecutor),    # Line 24
    FormFieldListener {

Observed Behavior
ktlint fails with errors:
/Users/jai/Developer/android-app/presentation/apply-presentation/src/main/kotlin/com/honestbank/android/apply/presentation/email/ApplyEmailViewModel.kt:22:1: Unexpected indentation (4) (should be 8) (indent)
/Users/jai/Developer/android-app/presentation/apply-presentation/src/main/kotlin/com/honestbank/android/apply/presentation/email/ApplyEmailViewModel.kt:23:1: Unexpected indentation (4) (should be 8) (indent)
/Users/jai/Developer/android-app/presentation/apply-presentation/src/main/kotlin/com/honestbank/android/apply/presentation/email/ApplyEmailViewModel.kt:24:1: Unexpected indentation (4) (should be 8) (indent)

Steps to Reproduce
Here's the code:
class ApplyEmailViewModel @Inject constructor(
    viewModelExecutor: ViewModelExecutor,
    private val navigator: MainNavigator,
    private val interactor: EmailInteractor,
    private val viewStateMapper: EmailToEmailViewStateMapper,
    private val analytics: ApplyEmailAnalytics
) : BaseViewModelEventLiveData<
    ApplyEmailViewState,
    ApplyEmailEvent
    >(viewModelExecutor),
    FormFieldListener {

    init {
        compositeDisposable.add(
            interactor.emailListenable.listen(false) {
                onEmailUpdated(it)
            }
        )
    }
}

Your Environment

Version of ktlint used: 0.40.0 (vs 0.39.0)
Name and version (or code for custom task) of integration used (Gradle plugin, Maven plugin, command line, custom Gradle task): just plain old ktlint and ktlint --verbose
Version of Gradle used (if applicable): N/A
Operating System and version: macOS Big Sur
Link to your project (if it's a public repository): N/A

Here's conflicting output between ktlint 0.39.0 and 0.40.0 (the first run is from 0.40.0):
(⎈ |test-api:default)❯ ktlint --verbose
/Users/jai/Developer/android-app/presentation/apply-presentation/src/main/kotlin/com/honestbank/android/apply/presentation/email/ApplyEmailViewModel.kt:22:1: Unexpected indentation (4) (should be 8) (indent)
/Users/jai/Developer/android-app/presentation/apply-presentation/src/main/kotlin/com/honestbank/android/apply/presentation/email/ApplyEmailViewModel.kt:23:1: Unexpected indentation (4) (should be 8) (indent)
/Users/jai/Developer/android-app/presentation/apply-presentation/src/main/kotlin/com/honestbank/android/apply/presentation/email/ApplyEmailViewModel.kt:24:1: Unexpected indentation (4) (should be 8) (indent)

~/Developer/android-app card_info*
(⎈ |test-api:default)❯ ./ktlint --version
0.39.0

~/Developer/android-app ci-add-custom-ktlint*
(⎈ |test-api:default)❯ ./ktlint --verbose
/Users/jai/Developer/android-app/presentation/apply-presentation/src/main/kotlin/com/honestbank/android/apply/presentation/email/ApplyEmailViewModel.kt:22:1: Unexpected indentation (8) (should be 4) (indent)
/Users/jai/Developer/android-app/presentation/apply-presentation/src/main/kotlin/com/honestbank/android/apply/presentation/email/ApplyEmailViewModel.kt:23:1: Unexpected indentation (8) (should be 4) (indent)
/Users/jai/Developer/android-app/presentation/apply-presentation/src/main/kotlin/com/honestbank/android/apply/presentation/email/ApplyEmailViewModel.kt:24:1: Unexpected indentation (8) (should be 4) (indent)

simple code to reproduce:
open class Foo<A, B>(s: String)

interface Bar

class Test(
    private val s: String
) : Foo<
        String,
        Int
        >(s),
    Bar

It seems this issue has been resolved by https://github.com/pinterest/ktlint/pull/1006

@jai I wasn't able to reproduce this on master, could you give it a try with the latest snapshot?


fix grammar

[approve ci]

[approve ci clang-format]

Thank you for the fix.
The change is fine, but it seems like we have a problem with our CI box at the moment.
New python executable in /var/jenkins/workspace/clang-format-github/src/.git/fmt/autopep8_1.5.3_venv/bin/python3
Also creating executable in /var/jenkins/workspace/clang-format-github/src/.git/fmt/autopep8_1.5.3_venv/bin/python
Installing setuptools, pip, wheel...
done.
ERROR: Could not find a version that satisfies the requirement pycodestyle==2.6.0 (from versions: none)
ERROR: No matching distribution found for pycodestyle==2.6.0
make: *** [Makefile:1489: autopep8] Error 1

[approve ci clang-format]


AdyenCheckout onSubmit Method called many times

Describe the bug
Please run the sample project
To Reproduce
Steps to reproduce the behavior:

Created a functional component inside this component  place a component of AdyenCheckout in return statement.

So, when i navigation first time in this functional component it's onSubmit method called once and after all the payment process done or even in case of cancel first time it's working fine. Then again i navigate again to this functional component and go for payment it's onSubmit method called twice and so on.

i think the problem is that in AdyenCheckout component it's attach the listner multiple times when it navigate into that functional component multiple time. you need to remove the listner in AdyenCheckout before attaching a new one.

Expected behavior
it's should be called only one time.
Producible on Devices:
Platform: iOS & Android both
Device: Any
OS: Any
Version: 1.0.0 [BETA.5]

Hey @faizantariq2
Thanks for reaching out!
How do you initate a payment?
If yo are using start('XXX') function from AdyenCheckoutContext the listeners removed every time new payment started or canceled.
Could be that you are generating new instances of AdyenCheckoutContext, so that every time you generate new listeners?

Hey @faizantariq2 thanks for sharing!
Could you provide more context?
I would like to understand how do you create AdyenCheckout

Hi @descorp ,
MyChekoutView page is just a functional component where i start the payment method on button press.
with the help of this hook.
const { start } = useAdyenCheckout();
and onPress
onPress={()=>{
start('paypal);
}}

I mean <AdyenCheckout> and the component around it. I am trying to reproduce this bug, so I need to mimic your setup.

const PaymentsScreen = ({ navigation, route }) => {

  const configuration = {
   //here just directly passing the desired configurations
  };
  const [paymentMethods, setPaymentMethods] = useState<Object>(undefined);
  useEffect(() => {
    getPaymentMethods();
  }, []);

  const getPaymentMethods = async () => {

    const paymentMethods = await fetchPaymentMethods(paymentsParam); //here you can say fetching the payment methods

    setPaymentMethods(paymentMethods);
  };

  const didSubmitCallback = (
    val: { paymentMethod: any; storePaymentMethod: any; returnUrl: string },
    nativeComponent: any,
  ) => {
  fetchPayments(params)
      .then((result: { action: any }) => {

if (result.action) {
          nativeComponent.handle(result.action);
        } else {
         nativeComponent.hide(false, {
      message: ‘success’,
    });

        }

      })
      .catch((error: any) => {
 nativeComponent.hide(false, {
      message: error.message || 'Unknown error',
    });
});

  };

  const didProvideCallback = (val: any, nativeComponent: any) => {
    .fetchPaymentDetails(val)
      .then((result: any) =>{
 nativeComponent.hide(false, {
      message: ‘success’,
    });
})
      .catch((error: any) => {
 nativeComponent.hide(false, {
      message: error.message || 'Unknown error',
    });
});

    };

  const didCompleteCallback = (val: any, nativeComponent: any) => {
    nativeComponent.hide(true, { message: 'Completed' });
  };

  const didFailCallback = (error: any, nativeComponent: any) => {
 nativeComponent.hide(false, {
      message: error.message || 'Unknown error',
    });

      };

Const onPressCallBack = (start) =>{
	start(‘scheme’);
}

  return (
    <AdyenCheckout
      config={configuration}
      paymentMethods={paymentMethods}
      onSubmit={didSubmitCallback}
      onProvide={didProvideCallback}
      onFail={didFailCallback}
      onComplete={didCompleteCallback}>
      <CheckoutScreen
onPressCallBack={onPressCallBack}
/>
    </AdyenCheckout>
  );
};

export default PaymentsScreen;

CheckOut.

const CheckoutScreen: FC<ICheckoutScreenProps> = ({
  navigation,
  route,
onPressCallBack
}) => {
  const { start } = useAdyenCheckout();

  return (
  <MyButton

onPress={()=>{
onPressCallBack(start);
}}
/>
  );
};

export default CheckoutScreen;

Thanks @faizantariq2
I'll play with it in attempt to reproduce it

@faizantariq2
BTW, is this a problem for both iOS and Android?

Yes it's produceable on both IOS and Android.

This is good! At least it means the problem is on JS side.
Thanks to @kadikraman on this #46 ticket, I have spotted odd behaviour on Android AdyenInstant - the ActionHandler on Android is "stacking" up listeners. Now I know those things are unrelated..

Good news! I was able to reproduce this issue and seems like this PR #47 will fix it

that's great.

@descorp Can you please share the timeline, for when this issue will be fixed? It's a big blocker for me.

Hey @iranaahsanali
The issue is already fixed, hopefully the fix will be released end of this or begging of the next week.

Hi @descorp - we're running into this issue as well.
You say that this is already fixed - are you referring to this commit? We've just tried it with that change, and we can still reproduce the issue. Also I don't think it's a JavaScript bug as it only happens on Android. For this reason it is likely a bug either in some android-specific code or in the android SDK.
To reproduce:

start payment on Android
cancel payment with the "cancel and go back to XX"
-> handleDidProvide gets called once with a cancel result
start payment again (in the same session)
-> handleDidProvide gets called twice with a cancel result
start payment again (in the same session)
-> handleDidProvide gets called three times with a cancel result
etc

The other (for us more serious) issue we're having that is also Android specific is:

start payment on Android
cancel payment with the "cancel and go back to XX"
-> handleDidProvide gets called once with a cancel result
start payment again (in the same session)
-> handleDidProvide gets called immediately with a cancel result, without doing anything in the webview. This means that it is not possible to complete a payment once you've cancelled once because the cancel flow is triggered immediately.

Please let me know if there's any additional information I can provide and if I should create a separate issue for this.

Hey @faizantariq1  @kadikraman
This bug should be fixed in 1.0.0-beta6
Could you verify?

This issue is fixed, but it created a new issue.
https://github.com/Adyen/adyen-react-native/issues/61

I'll close this issue, since we figured out reason for #61


Dig into mysterious syntax issue #75

I'm starting out by commenting out what I suspect is the problematic part
I want to eventually close #75

I think all the glitches are smoothed out. But the last one I can only test by doing a merge so here we go 🤞


Avoid GitHub Action Invocation Upon Bot Invoked Event

Under the Actions tab, it would be far cleaner if GitHub didn't run another based on the bot doing something (e.g. changing the labels, and then invoking the Bot to run again as a response to itself.)
I was able to make it skip the main logic if it detects that the Action was invoked by the bot, but it still pollutes the Actions runs history.

@0xcodercrane I think you completed this I can send you the payout if you post your address here!

@0xcodercrane I think you completed this I can send you the payout if you post your address here!

0x00868BB3BA2B36316c2fc42E4aFB6D4246b77E46

https://etherscan.io/tx/0xc0ed067c81672641a0eb10f09ef2c70f2b2dd4df7606ad949a341dcf06f85979
https://etherscan.io/tx/0x3ddf2ed1ca4a91531a626f805f5055bb04388e6ecc28032e1382631efca74068


re-add harbor problems connectivity to webhookURL

This PR makes minor modifications to the Harbor Webhook configuration to allow webhook notifications to flow again to Lagoon.
Because of the format change to the webhook (and the URL change to the API) - the ingestion of the data from the webhook will need more attention.
A sample webhook payload is as follows:
{
  "type": "SCANNING_COMPLETED",
  "occur_at":<PHONE_NUMBER>,
  "operator": "auto",
  "event_data": {
    "resources": [
      {
        "digest": "sha256:6094a54444067d21929be0d741291b6eed82caa455be3a347c6e514f2794d803",
        "tag": "",
        "resource_url": "registry.<IP_ADDRESS>.nip.io:32080/ci-bitbucket-control-k8s/bitbucket-slash-branch/node:",
        "scan_overview": {
          "application/vnd.scanner.adapter.vuln.report.harbor+json; version=1.0": {
            "report_id": "c86fb19c-0168-4aca-9921-17ff04d53612",
            "scan_status": "Success",
            "severity": "High",
            "duration": 9,
            "summary": {
              "total": 4,
              "fixable": 4,
              "summary": {
                "High": 3,
                "Medium": 1
              }
            },
            "start_time": "2021-03-16T07:42:43.132206Z",
            "end_time": "2021-03-16T07:42:52.265765Z",
            "scanner": {
              "name": "Trivy",
              "vendor": "Aqua Security",
              "version": "v0.9.2"
            },
            "complete_percent": 100
          }
        }
      }
    ],
    "repository": {
      "name": "bitbucket-slash-branch/node",
      "namespace": "ci-bitbucket-control-k8s",
      "repo_full_name": "ci-bitbucket-control-k8s/bitbucket-slash-branch/node",
      "repo_type": "private"
    }
  }
}

There is also a
/projects/ci-bitbucket-control-k8s/repositories/bitbucket-slash-branch%252Fnode/artifacts/latest/additions/vulnerabilities path to the vulnerabilities available

no longer required, handled elsewhere


[🚧] ClosedChannelException in HTTP server after requests

Describe the bug
When a request is sent to the HTTP server in the new REST integration a ClosedChannelException is thrown by Netty.
To Reproduce

Send a request to the HTTP server.

Additional context
At the moment, it is not clear whether or not this impacts the result.
@finnWellers
Here is a gist of the log: https://gist.github.com/MarkL4YG/dc5d38fc9a5fb8987bab33dea498e558

A known Bug the Spark Framework: https://github.com/perwendel/spark/issues/1101


Adding gitignore file

Adding a .gitignore file to the project to make it ready for git versioning.

Manually applied in b48b67ec26d6b73bc036c312641eae8f223e1d29, thanks for the contribution!


Cannot find package "github.com/pierrec/lz4/v2/internal/xxh32"

Versions
Sarama Version: v1.17.0
Kafka Version: 2.2.0
Go Version: go1.10
Configuration
N/A
Logs
go get -v github.com/Shopify/sarama github.com/pierrec/lz4 (download) package github.com/pierrec/lz4/v2/internal/xxh32: cannot find package "github.com/pierrec/lz4/v2/internal/xxh32" in any of:         /usr/local/go/src/github.com/pierrec/lz4/v2/internal/xxh32 (from $GOROOT)         /go/src/github.com/pierrec/lz4/v2/internal/xxh32 (from $GOPATH)
Problem Description
Sarama depends on a library which doesn't work with go1.10
Issue in that library;
https://github.com/pierrec/lz4/issues/33
I added a Godeps with v2.0.4 of pierrec/lz4 and it works again..

Another workaround: https://github.com/pierrec/lz4/issues/33#issuecomment-418701621 until fix

The breaking change was reverted: https://github.com/pierrec/lz4/commit/bb6bfd13c6a262f1943c0446eb25b7f54c1fb9a2
Closing this issue


Array of Struct

I've the following XML
<Records>
<Record>
<Affiliations>
<Affiliation ID="A10001" NAME="MLIFE CORP" AffiliationCategory="Direct Category">
<Addr strt1="1 CENTRE DRIVE" city="NEW YORK" state="NY" postlCd="10001" cntryCd="USA" cntryOld="United States">
</Addr>
</Affiliation>
<Affiliation ID="A10002" NAME="EZ INC." AffiliationCategory="Direct Category">
<Addr strt1="2 SOUTH AVENUE" city="NEW YORK" state="NY" postlCd="10001" cntryCd="USA" cntryOld="United States">
</Addr>
</Affiliation>
</Affiliations>
</Record>
</Records>
The Create table statement
CREATE EXTERNAL TABLE AFFL(
Affltns
array<
struct<
ID:string,
NAME:string,
AffiliationCategory:string,
Addr:struct<
strt1:string,
city:string,
state:string,
postlCd:string,
cntryCd:string,
cntryOld:string
>>>
)
ROW FORMAT SERDE 'com.ibm.spss.hive.serde2.xml.XmlSerDe'
WITH SERDEPROPERTIES (
"column.xpath.Affltns"="/Records/Record/Affiliations/*"
)
STORED AS INPUTFORMAT 'com.ibm.spss.hive.serde2.xml.XmlInputFormat'
OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.IgnoreKeyTextOutputFormat'
TBLPROPERTIES (
"xmlinput.start"="<Records>",
"xmlinput.end"="</Records>"
);
When I run the select * from AFFL; I get the addr as null (see below)
[{"ID":"A10001","NAME":"MLIFE CORP","AffiliationCategory":"Direct Category","Addr":null},{"ID":"A10002","NAME":"EZ INC.","AffiliationCategory":"Direct Category","Addr":null}]
Am I missing something? I do not know why addr is coming as null. Please help

Try modiying your serde property to below one :
"column.xpath.Addr"="/Records/Record/Affiliations/Addr/text()"

Hi ,I am new to Hadoop,Can  you help how to create hive table on top of below xml
<root>

4545482361`enter code here`
1/3/2010

Hyd
john
150000
1/3/2012

Hyd
mike
225000
1/9/2014

mumbai
1/9/2014

ram
Achanta
Director of IT

currentposition
10


FEATURE 🥇 : GREETING ON ARRIVAL

When the user opens this page, a prompt can come up "Hey, hope you are having a good day! How are you feeling today?" Followed by emojis with "bad...fine...good...very good".
Based on the selection of the user, a message or some suggestion would come up.
eg, if the user chooses "very good" the message would come up "yaay! keep up with that energy!"

It can act as a warm welcome to users when they open the portal.
I humbly request you to please assign me this feature under GSSOC!

assigned.

I developed the feature. Please check it out and let me know if it is okay and can I send the PR?
(5 seconds after the message comes, we are automatically redirected back to the website.)
https://github.com/Sayak-Bhunia/mystory/assets/114524718/6a8583b8-350f-46b4-afa1-f8fea2f0613a

I developed the feature. Please check it out and let me know if it is okay and can I send the PR?
(5 seconds after the message comes, we are automatically redirected back to the website.)
https://github.com/Sayak-Bhunia/mystory/assets/114524718/6a8583b8-350f-46b4-afa1-f8fea2f0613a

Can u make the ui more aesthetic like the one you demoed ? Otherwise it's fine.

I developed the feature. Please check it out and let me know if it is okay and can I send the PR?
(5 seconds after the message comes, we are automatically redirected back to the website.)
Purple.-.Greetings.mp4

Can u make the ui more aesthetic like the one you demoed ? Otherwise it's fine.

Okay, I'll try my best and let you know asap.

Ay updates

Any updates ?

@aditikhare16 any updates?

Yes, the feature is completed. Before EOD, I'll send!
On Wed, Jun 5, 2024, 1:04 AM Kritika Gupta @.***> wrote:

@aditikhare16 https://github.com/aditikhare16 any updates?
—
Reply to this email directly, view it on GitHub
https://github.com/Sayak-Bhunia/mystory/issues/122#issuecomment-2148262656,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A3JYELW4YTCLZFMJM6YWYWLZFYJGHAVCNFSM6AAAAABH5ZHXTWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBYGI3DENRVGY
.
You are receiving this because you were mentioned.Message ID:
@.***>

@aditikhare16 Still I haven't received

Any updates ?

hello sir, sorry for the delay. My exams were going on. I tried making it like the one in demo, its not working properly. Is the one i submitted previously acceptable?
if you want any specific colour theme or font, let me know?

@aditikhare16 any updates?

hello mam, I have already submitted the feature above. Please check it out.

Can u make the ui more aesthetic like the one you demoed ? @aditikhare16

Can u make the ui more aesthetic like the one you demoed ? @aditikhare16
I tried making it like the one in demo, its not working properly. Is the one i submitted previously acceptable?
if you want any specific colour theme or font, let me know?

@Sayak-Bhunia

@Sayak-Bhunia

?

@Sayak-Bhunia  You can review the design and approve it if its okay for you so that pr can be raised

but @aditikhare16 have not gave any updates ?

but @aditikhare16 have not gave any updates ?

i did sir, but they are not working properly and throwing errors due to a complicated ui. making one exactly like demoed one is very very difficult, but i can incorporate any specific changes you suggest.


Send thank you to Segment for Demo Night and Hack Series

Send photos from the event

@zachlatta do you want me to take this issue? Needs to be done asap

Yes please. I started on it yesterday and realized it didn't make sense for me because you're the point of contact with them.
Sent from my mobile

On Jul 28, 2016, at 2:10 PM, Selynna Sun<EMAIL_ADDRESS>wrote:
@zachlatta do you want me to take this issue? Needs to be done asap
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

By any chance do you have part of a draft I could continue off of?

Done!

Sorry for not getting back earlier – just saw this. Glad it worked out :-).
On Fri, Jul 29, 2016 at 11:49 AM, Selynna Sun<EMAIL_ADDRESS>wrote:

Closed #625 https://github.com/hackclub/meta/issues/625.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/hackclub/meta/issues/625#event-739770709, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AA8j-AdxZHS2WoiIO63f8w1xnfr4Dw0vks5qanVSgaJpZM4JTQDv
.

--
Zach Latta
https://zachlatta.com http://zachlatta.com


Highlight search results

Show visually what parts of a search hit respond to the search query

KB will discuss internally whether they will be able to implement this in the API.

They will probably not, so we could look at doing it in the frontend.


demo: Google Pay and Apple pay crashing

I am trying to run the demo app of this repo and when trying to go to the Google Pay / Apple pay section of the app, it is crashing with the following messages:
Android - Google Pay:

System.err: An uncaught Exception occurred on "main" thread.
System.err: Calling js method onClick failed
System.err: Error: Building UI from XML. @plugin-demos/google-pay.xml:14:11
System.err:  > Module 'GooglePayBtn' not found for element 'GooglePayBtn'.
System.err:    > instanceType is not a constructor

iOS - Apple Pay:

***** Fatal JavaScript exception - application has been terminated. *****
NativeScript encountered a fatal error: Uncaught Error: Building UI from XML. @plugin-demos/apple-pay.xml:11:11

Module 'ApplePayBtn' not found for element 'ApplePayBtn'.
instanceType is not a constructor

I am on NativeScript CLI 8.1.4

@triniwiz  - do you see what's missing causing the plain XML to crash with not finding the namespace?


Fix power spectrum units in power.py

Change from Mpc^{-3} to Mpc^3. This relates to issue #245.

This is a simple case of fixing units in documentation; @elisachisari has fixed the issue so I will go ahead and merge.


Improve Example

Use async return style in the handler

@floydspace
I added an integration tests and a basic CI workflow in the last 2 commits, have a look

@floydspace CI ran properly in my fork : https://github.com/Hebilicious/serverless-esbuild/runs/911889490?check_suite_focus=true

Hi @Hebilicious , thank you for your contribution, could you please explain why to overwhelm the example code, it's supposed to be like minimal working example of using serverless-esbuild, not sure should we make it more complicated. Thou integration test could cover the fact that the plugin works

I was working on my repo https://github.com/Hebilicious/serverless-esbuild-template and used your example at the starting point, therefore I wanted to contribute here as well.
The handler code is the same, as you said the added complexity is just here for the test coverage for the actual plugin.
Maybe we could have 2 examples if you want to keep a very minimal one as well.


Fast Rail Booster

I want it to be possible to have a booster that boosted the speed of the minecart to faster than the current ones allow, so railways become practical.

if you have time and a plan on how to do it.. create a branch and see if you can do it..

I have no time and plan... :(


[SP-3125][PRD-5778]-JDBC connection details still remains even after removing from Options tab for MsSQL connections.JDBC connection details still remains

set using pluginId insteadof constant
add unit test

Build Completed
:x: This pull request has errors. They will need to be addressed before it can be accepted. See below for more details. Some links are also available below for further assistance in addressing those issues.
Build Commands
ant -Dtestreports.dir=bin/reports/unit-test -f core/build.xml clean-all resolve jacoco && ant -Dtestreports.dir=bin/reports/integration-test -f core/build.xml jacoco-integration checkstyle publish-local

Cleanup Commands
rm -r ~/.ivy2/local || echo no publish local to remove

Changed files
  core/src/org/pentaho/di/core/database/DatabaseMeta.java
  core/test-src/org/pentaho/di/core/database/DatabaseMetaTest.java

Unit test coverage change
These statistics help you identify how your changes have affected the coverage of the following files. If a file is not in this list, then its coverage was not affected by your changes. To get some help interpreting these metrics, please refer to Jacoco's documentation.
org.pentaho.di.core.database.DatabaseMeta

Branch Change:  + 2.54%
Complexity Change:  + 1.19%
Instruction Change:  + 1.61%
Line Change:  + 1.43%
Method Change:  + 1.72%

Checkstyle violations
The code submitted is not complying with one or more of our guidelines. To perform these checks locally, please use this tool.
/home/buildguy/project/core/test-src/org/pentaho/di/core/database/DatabaseMetaTest.java

:heavy_exclamation_mark: Using a static member import should be avoided - org.junit.Assert.*. at Line: 25

:heavy_exclamation_mark: Using a static member import should be avoided - org.mockito.Mockito.*. at Line: 26

@denisprotopopov please, fix the checkstyle violations

@mchen-len-son done

Build Completed
:white_check_mark: This pull request has passed all validations.
Build Commands
ant -Dtestreports.dir=bin/reports/unit-test -f core/build.xml clean-all resolve jacoco && ant -Dtestreports.dir=bin/reports/integration-test -f core/build.xml jacoco-integration checkstyle publish-local

Cleanup Commands
rm -r ~/.ivy2/local || echo no publish local to remove

Changed files
  core/src/org/pentaho/di/core/database/DatabaseMeta.java
  core/test-src/org/pentaho/di/core/database/DatabaseMetaTest.java

Unit test coverage change
These statistics help you identify how your changes have affected the coverage of the following files. If a file is not in this list, then its coverage was not affected by your changes. To get some help interpreting these metrics, please refer to Jacoco's documentation.
org.pentaho.di.core.database.DatabaseMeta

Branch Change:  + 2.54%
Complexity Change:  + 1.19%
Instruction Change:  + 1.61%
Line Change:  + 1.43%
Method Change:  + 1.72%


Adding Comments to the Examples

Is your feature request related to a problem? Please describe.
The package contains a good set of examples. But their comprehensibility is not up to the mark, especially for someone who is just starting with the package and not yet familiar with the different modules and their utilities.
Describe the solution you'd like
In the examples, comments should be added to make it clear what problem is being solved, what are the domains, constraints etc. Additional comments should be added to clearly illustrate what different parts of the code are accomplishing.
Describe alternatives you've considered
Additional context
https://github.com/openjournals/joss-reviews/issues/5352

In fact, I think it would be superb to convert some of the examples into notebooks. Some of these examples seem small, even possibly trainable on CPUs. It would be good to have notebooks that clearly show the logging during the progress, the kind of outputs it generates, and how to do inferencing and make plots.

👋🏻 @yorkiva Thanks for the feedback! Indeed you are right, we will add comments to the examples. Some of the interesting problems (e.g Stokes) are a bit too long to train on a notebook, but we have a list of possible tutorials here in .py, .html, .ipynb formats. These tutorials comprehend different types of problems (e.g. time dependent or spatial problems). We will add a tutorial for parametric dependent problem, maybe following the Poisson example in example folder.

👋🏻 @yorkiva . I updated the example folder (see https://github.com/mathLab/PINA/pull/105), so now every problem in example/problem is documented. Few of the problems are not available at the moments.
We will soon release a beta version of PINA where some high level features will change (rename some classes, and add more flexibility for the user by enabling pytorch lightining). Since updating the tutorial requires a big effort (for documentation compatibility, etc.), and due to the soon release of the beta verison, we will not make a tutorial on Stokes (but you can see the working example in example folder`).
Anyway, thank you for the feedback, we will also take into account when working on the beta version #85 .

@yorkiva - is this ok to close now?

Thanks for the response. This can be closed now.


⚠ Bofrost.es has degraded performance

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

HTTP code: 200
Response time: 1712 ms

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


Give the user a warning before deleting a row in the repeating group

Description
If the user wants to delete a row from the table we dont give them a warning before deleting. (Are you sure you want to do this)
When working with small groups this may not be a big issue, but we see several cases of large repeating groups. One wrong click from the user in those cases could cause a lot of frustration.
Could be solved with a popover asking the user if they really want to delete the row.
Specification tasks

[ ] Design sketches
[ ] Standard text in NB, NN and EN

I guess the trendy approach is to delete and then provide an option to roll back changes for a limited time if the user regrets their choice.
I'm currently implementing #7659 where attachments uploaded in the row have to be deleted before the row deletion is considered successful. That works fine with a confirmation before deletion, but should we implement a 'soft deletion' with the option to roll back deleted attachments, it might lead to a very strange UX whenever deletion of attachments fail.


must-gather: update OWNERS file

add parthdhanjal and gobindadas
as the reviwers and approvers of
must-gather.
Signed-off-by: crombus<EMAIL_ADDRESS>

/hold I have asked both of them to raise the request it will take a day we can merge after that.

/verify-owners

/verify-owners

/verify-owners


Deserialize a binary tree

Submission Title
Deserialize a binary tree
Submission Type
Data structure
Submission Directory
Data_Structures => Tree => Binary_Tree => Deserialize=>Deserialize.extension
Contributors

[ ]  C++ -
[ ]  C -
[ ]  Python -
[ ] Java -
[ ] JavaScript -
[ ] TypeScript -
[ ] Golang -
[ ] Ruby -
[ ] php -
[ ] Swift -
[ ] C# -

Hi, Could you assign this issue to me in Ruby ?

assign this to me for c++

Hello, could you assign this to me in Java?

my code is not working :( sorry ill take up some other issue.

Hello could you please assign this to me in python

thanks everyone :v:


Update Travis build matrix

Test a couple versions of Elixir/OTP
Only generate a coverage report for the most recent versions
Only build master branch (still build PRs)

Could we do this without the additional script by conditionally setting a TEST_COMMAND variable within .travis.yml and then using that as mix $TEST_COMMAND?

We could.  It just seems easier to me to have an actual script.

Looks good to me. The only tradeoff is seeing the variable COVERALLS=(true|false) versions TEST_COMMAND=(test|coveralls.travis) in the Travis matrix UI, but they're both pretty clear.
I like this more now that the docker bits have moved into the test script, too.


chore: Convert karpenter_scheduler_unfinished_work_seconds to seconds

Fixes #N/A
Description
Convert karpenter_scheduler_unfinished_work_seconds to seconds
How was this change tested?
make presubmit
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>6
Details

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

Files with Coverage Reduction
New Missed Lines
%

pkg/test/expectations/expectations.go
2
94.73%

Totals

Change from base Build<PHONE_NUMBER>5:
0.09%

Covered Lines:
8487

Relevant Lines:
10500

💛  - Coveralls


Add time dictionary coercions

I wonder if we want to reduce the codegen by coercing to the corresponding primitive array type and then coercing this to a dictionary

Sorry I'm not sure I follow. Are you worried about the verbosity of handling all of these cases?

Rust generics are monomorphised so if you call a generic function with lots of different parameters of it leads to lots of additional codegen hurting compile times and bloating your binary

Oh right that sort of code gen. Since this is all internal, could we go with the pattern in place now and punt on a larger refactor?

punt on a larger refactor

I don't think you need a major refactor, just something along these lines
let int = cast_with_options(array, &Int64, cast_options)?;
let dict = cast_with_options(
    int.as_ref(),
    &Dictionary(Box::new(K::DATA_TYPE), Box::new(Int64)),
    cast_options,
)?;
cast_with_options(
    dict.as_ref(),
    &Dictionary(
        Box::new(K::DATA_TYPE),
        Box::new(Timestamp(TimeUnit::Nanosecond, t)),
    ),
    cast_options,
)

could we go with the pattern in place now

As written this PR will fairly drastically increase the amount of codegen, you have to understand this code is instantiated for all 8 dictionary key types, so I think it is important we try to keep this under control.

Got it now! I was able to make a standalone function using your example code. It also helped reduce code duplication a lot.

@tustvold looks like CI passed and this is approved, mind merging?


Self-recursion hack

This PR revives the approach in PR #719. Self-recursion is supported, only with an explicit signature, and with the same signature in the recursive call(s).

[Current coverage][cc-pull] is 87.50%

Merging [#1928][cc-pull] into [master][cc-base-branch] will decrease coverage by <.01%

@@             master      #1928   diff @@
==========================================
  Files           295        297     +2
  Lines         52650      52759   +109
  Methods           0          0
  Messages          0          0
  Branches       5433       5448    +15
==========================================
+ Hits          46076      46168    +92
- Misses         5663       5679    +16
- Partials        911        912     +1

Powered by Codecov. Last updated by [31dac72...d8ba112][cc-compare]
[cc-base-branch]: https://codecov.io/gh/numba/numba/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/numba/numba/compare/31dac722d2d70c70964b5de1e4e9efddf958c029...d8ba112c0e35905dfaca54f5f0986e6d0b54a812
[cc-pull]: https://codecov.io/gh/numba/numba/pull/1928?src=pr

Awesome! Is this a step on the way to full higher order functions?

Not really.  This sidesteps the need for changes to our type inference algorithm by pre-registering the signature of the recursive function (which is why we require an explicit type signature for recursion support).  Higher order functions are a very different problem.  :)

Makes sense. Are there any plans to pursue higher order functions?

It's not a high priority at this point.  We have a lot more basic issues to solve first.


The following assertion was thrown while handling a gesture: I/flutter ( 3968): 'package:flutter/src/widgets/scrollable.dart': Failed assertion: line 480 pos 12: '_drag == null': I/flutter ( 3968): is not true.

Steps to Reproduce

...
...
...

Target Platform:
Target OS version/browser:
Devices:
Logs

Hi @y-xue92
opening an issue please try to provide
all or some of the information indicated in the template

Issue Template
If you are looking for support, please check out our documentation
or consider asking a question on Stack Overflow:
- https://flutter.dev/
- https://api.flutter.dev/
- https://stackoverflow.com/questions/tagged/flutter?sort=frequent

If you have found a bug or if our documentation doesn't have an answer
to what you're looking for, then fill our the template below. Please read
our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports

Steps to Reproduce

Please tell us exactly how to reproduce the problem you are running into.

Please attach a small application (ideally just one main.dart file) that
reproduces the problem. You could use https://gist.github.com/ for this.

If the problem is with your application's rendering, then please attach
a screenshot and explain what the problem is.

1. ...
2. ...
3. ...

Please tell us which target platform(s) the problem occurs (Android / iOS / Web / macOS / Linux / Windows)
Which target OS version, for Web, browser, is the test system running?
Does the problem occur on emulator/simulator as well as on physical devices?

Target Platform:
Target OS version/browser:
Devices:

Run your application with `flutter run --verbose` and attach all the
log output below between the lines with the backticks. If there is an
exception, please see if the error message includes enough information
to explain how to solve the issue.

Run `flutter analyze` and attach any output of that command below.
If there are any analysis errors, try resolving them before filing this issue.

Finally, paste the output of running `flutter doctor -v` here.

Closing this issue, since no information has been provided.
Thank you.


Don't warn about use of "on" as a YAML key

Per documentation at
https://yamllint.readthedocs.io/en/stable/rules.html#module-yamllint.rules.truthy
This PR fixes warnings generated during github CI/CD in the validate-yaml workflow.

Approved during GEDCOM Steering Committee meeting


Unstable, flickering virtual motion vectors in Need For Speed: Underground 2

The game has an issue where the virtual motion vectors on many objects seem to jump around randomly which causes severe visual artifacts with temporal reuse, dlss, frame generation, motion blur, among others.

bridge #44, and dxvk remix #382 were used to test

4090

Game ready driver ver 546.33

Latest game version

Attached files!
SPEED2_d3d9.log
d3d9.log
rtx.txt
To Reproduce
Steps to reproduce the behavior:

Run the game with remix installed
start a new game to enter freeroam
Turn on debug mode>virtual motion vectors
Start driving, and notice that motion vectors for many static objects in the scene flicker in random directions.

Expected behavior

Motion vectors should be completely stable for non-moving objects.

Screenshots
Here's a video example of the problem. Notice that many static objects flicker for one frame at random times.
https://github.com/NVIDIAGameWorks/rtx-remix/assets/100042652/4bce3dd9-bdbf-4ea1-9f54-f7849c5f9ae0

Yeah idk what that link at the top of the issue is. Just github being github.

The issue was with unique object search distance being too high by default. I'm closing the issue now.


Enable SolarEdge config entries

Breaking Change:
The monitored conditions from the configuration.yaml are not taking into account when importing to a config entry
Description:
This will enable the config entries for the solaredge component
Pull request with documentation for home-assistant.io (if applicable): home-assistant/home-assistant.io#10256
Checklist:

[x] The code change is tested and works locally.
[x] Local tests pass with tox. Your PR cannot be merged unless tests pass
[x] There is no commented out code in this PR.
[x] I have followed the development checklist

If user exposed functionality or configuration variables are added/changed:

[x] Documentation added/updated in home-assistant.io

If the code communicates with devices, web services, or third-party tools:

[x] The manifest file has all fields filled out correctly. Update and include derived files by running python3 -m script.hassfest.
[x] New or updated dependencies have been added to requirements_all.txt by running python3 -m script.gen_requirements_all.
[x] Untested files have been added to .coveragerc.

If the code does not interact with devices:

[x] Tests have been added to verify that the new code works.

Not sure if this build failure on py36 has anything todo with this PR ...

Monitor conditions are things they going to be removed before 1.0 is out: https://github.com/home-assistant/architecture/blob/master/adr/0003-monitor-condition-and-data-selectors.md

We can exclude the __init__.py module in .coveragerc if we don't plan to test that.


new Angular 6 library for Appworks

new Angular 6 library for Appworks

this is great @z687wang
i have a few notes

i think we can provide a less clunky api by extracting each plugin out into its own service. for example:

@Injectable({
  providedIn: 'root'
})
export class CameraService {
...
}

@Injectable({
  providedIn: 'root'
})
export class AuthService {
...
}

Then in a component we can have a more focused api:
@Component({
  selector: 'app-my-component',
  template: `
    <p>
      ng-appworksjs works!
    </p>
  `,
  styles: []
})
export class MyComponent implements OnInit {
  constructor(private auth: AuthService, private camera: CameraService) {
    ...
  }
}

i would like to see the services provided in the module itself. basically I shouldnt need to import the module, and declare a provider. see https://github.com/ngx-translate/core/blob/master/projects/ngx-translate/core/src/public_api.ts for an example
im seeing a duplicate file ng-appworks.services.ts and ng-appworks.service.ts
on a clean install i get a test failure Cannot find module 'appworks-js' from 'ng-appworks.component.ts'. perhaps appworks-js should be added to the main project's package.json, or declared as regular dependency in package.json
even with appworks-js added as a dependency, the test suite wont run.

 FAIL  src/lib/ng-appworks.component.spec.ts
  ● Test suite failed to run

    /Users/jasonaibrahim/Desktop/angular-appworks/projects/ng-appworks/node_modules/appworks-js/src/plugins/accelerometer/index.ts:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,global,jest){export * from './accelerometer';
                                                                                ^^^^^^

    SyntaxError: Unexpected token export

      at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/script_transformer.js:316:17)
      at Object.<anonymous> (node_modules/appworks-js/src/index.js:3:15)

This could have to do with how jest is configured

last but not least, I would love to have a NgAppworksTestingModule for use in development/testing. Basically it would provide the same api as the underlying plugins, but no need to actually reach out to the actual appworks-js function calls. this doesnt need to be done for this PR though. I may piggy back off of what you've done here to create it.

Thanks for the code review, @jasonaibrahim , I will rework this one as soon as I finish up the desktop client.


Remove remove_ac_0 task

This step will be moved pre-VQSR

Looks good!  I will probably re-number the pipeline steps myself later.  I'm still adding new ones at the moment.  Thanks for taking care of this!


Fix error with mulitple traefik rules.

Change the regex so it will only fit to rules of the form Host(something.local). If multiple rules which fit are in one label, both will be added.
Note:
Host(`a.something.local`) && Host(`b.something.local`) does work.
Host(`a.something.local`, `b.something.local`) does not work. It will not find the rule (if there is at least one white space, error otherwise) and not add it.
Both ways are supported by traefik as readable here: https://doc.traefik.io/traefik/routing/routers/
fixes #3

I've been having a play as well. I think I have something that will work for a bunch of things, but it has a niggle I can't explain
const testValues = [
	"Host(`example.local`)",
	"Host(`foo.example.local`) || Host(`bar.example.local`)",
	"HOST(`foo.example.local`) || ( Host(`baz.example.local`) && Path(`/baz`) )",
	"Host(`bill.example.local`) || ( Path(`/ben`) && Host(`ben.example.local`) )"
]

const re = /Host\(`(.*?\.local)`\)/gi

const hosts = []

testValues.forEach( l => {
	if (re.test(l)) {
		l.match(re)
		const matches = [...l.matchAll(re)]
		for (const match of matches) {
			console.log(match[1])
			console.log(hosts.includes(match[1]))
			if (!hosts.includes(match[1])) {
				hosts.push(match[1])
			}
		}
	} else {
		console.log("no match - " + l )
	}
})

console.log(hosts)

If I take out l.match(re) it fails and I can't work out why.

I've been having a play as well. I think I have something that will work for a bunch of things, but it has a niggle I can't explain
const testValues = [
	"Host(`example.local`)",
	"Host(`foo.example.local`) || Host(`bar.example.local`)",
	"HOST(`foo.example.local`) || ( Host(`baz.example.local`) && Path(`/baz`) )",
	"Host(`bill.example.local`) || ( Path(`/ben`) && Host(`ben.example.local`) )"
]

const re = /Host\(`(.*?\.local)`\)/gi

const hosts = []

testValues.forEach( l => {
	if (re.test(l)) {
		l.match(re)
		const matches = [...l.matchAll(re)]
		for (const match of matches) {
			console.log(match[1])
			console.log(hosts.includes(match[1]))
			if (!hosts.includes(match[1])) {
				hosts.push(match[1])
			}
		}
	} else {
		console.log("no match - " + l )
	}
})

console.log(hosts)

If I take out l.match(re) it fails and I can't work out why.

I think you missing some escape characters in your regex
const re = /Host\(`(.*?\.local)`\)/gi
const re = /Host\(\`(.*?\.local)\`\)/gi

I think you missing some escape characters in your regex
const re = /Host\(`(.*?\.local)`\)/gi
const re = /Host\(\`(.*?\.local)\`\)/gi

No, backticks don't need escaping and that doesn't fix the problem with needing to call match() first

No, backticks don't need escaping and that doesn't fix the problem with needing to call match() first

Found out what the problem is https://stackoverflow.com/questions/65728111/matchall-requires-match-to-be-called-first

Found out what the problem is https://stackoverflow.com/questions/65728111/matchall-requires-match-to-be-called-first

I guess this one can be closed as commit 7ba2a75 does the same.

I guess this one can be closed as commit 7ba2a75 does the same.


Overview and walkthrough docs for the xamarin.ios swift binding

This PR includes two docs on how to bind an iOS Swift framework with Xamarin.iOS

Microsoft authors of articles need to make updates through the private repository so the updates can be staged and validated by the current validation rules. After you review staging and fix all validation issues, you can add the sign-off comment to let the PR reviewers know the updates are ready to be merged.It's easy to access the private repo version of your articles in GitHub. Just add -pr to the URL, as follows:
Public repo URL: https://github.com/Microsoft/azure-docs/blob/master/articles/azure-portal-overview.md
Private repo URL: https://github.com/Microsoft/azure-docs-pr/blob/master/articles/azure-portal-overview.md
We have closed this pull request. Please resubmit the updates through the private repo. If you need perms to the private repo, see the contributor guide instructions


Total emissions

Description of the issue
In GHG inventories and GHG projections adhering to UNFCCC and European Guidelines, different concepts of total emissions are needed:

Total emissions excluding LULUCF
Total emissions including LULUCF
Total emissions including international bunkers
Total emissions excluding international bunkers
Total emissions excluding international aviation
Total emissions including international aviation

And combinations of these...
Ideas of solution
Treat these as CRF sectors
Workflow checklist

[ ] I discussed the issue with someone else than me before working on a solution
[ ] I already read the latest version of the workflow for this repository
[ ] The goal of this ontology is clear to me

I am aware that

[ ] every entry in the ontology should have a definition
[ ] classes should arise from concepts rather than from words

Some first proposals:

The CRF sector (IPCC 2006) total emissions excluding LULUCF is a a sector defined by the 2006 IPCC Guidelines for National Greenhouse Gas Inventories. It encompasses the following IPCC 2006 sectors: energy; industrial processes and product use; agriculture; waste; and other.
The CRF sector (IPCC 2006) total emissions including LULUCF is a a sector defined by the 2006 IPCC Guidelines for National Greenhouse Gas Inventories. It encompasses the following IPCC 2006 sectors: energy; industrial processes and product use; agriculture; land use, land-use change and forestry; waste; and other.

To describe international bunkers and international aviation, we need further sector individuals:

The CRF sector (IPCC 2006) international bunkers is a transport sector defined by the 2006 IPCC Guidelines for National Greenhouse Gas Inventories. It encompasses international aviation and maritime navigation.
The CRF sector (IPCC 2006) international aviation is a transport sector defined by the 2006 IPCC Guidelines for National Greenhouse Gas Inventories. Emissions from flights that depart in one country and arrive in a different country.
The CRF sector (IPCC 2006) maritime navigation is a transport sector defined by the 2006 IPCC Guidelines for National Greenhouse Gas Inventories. Emissions from fuels used by vessels of all flags that are engaged in international water-borne navigation. The international navigation may take place at sea, on inland lakes and waterways and in coastal waters. Includes emissions from journeys that depart in one country and arrive in a different country. Exclude consumption by fishing vessels

Thanks @l-emele this reads really good, I wouln't know what to add, except slight changes here:

The CRF sector (IPCC 2006) international aviation is a transport sector defined by the 2006 IPCC Guidelines for National Greenhouse Gas Inventories. It encompasses emissions from flights that depart in one country and arrive in a different country.

The CRF sector (IPCC 2006) maritime navigation is a transport sector defined by the 2006 IPCC Guidelines for National Greenhouse Gas Inventories. Emissions from fuels used by vessels of all flags that are engaged in international water-borne navigation. The international navigation may take place at sea, on inland lakes and waterways and in coastal waters. It includes emissions from journeys that depart in one country and arrive in a different country. It excludes consumption by fishing vessels.

Should we also indicate the "category names" for aviation and navigation  as in the MMR template, e.g.:

international aviation = I.B Aviation
international maritime = I.B. Navigation

How could we treat the Unique individual identifier in OEO for these special cases?

In the CRF tables and the NIRs, the following codes are used:

1.D International aviation and international navigation (international bunkers) and multilateral operations
1.D.1 International aviation and international navigation (international bunkers)
1.D.1.a International aviation (aviation bunkers)
1.D.1.b International navigation (marine bunkers)
1.D.2 Multilateral operations

Discussed today bilaterally with @han-f:
Add the following alternative terms that are used by EEA with editor note linking to EEA:

Total emissions excluding LULUCF = Total emissions (UNFCCC)
Total emissions including LULUCF = Total net emissions (UNFCCC)
Total emissions excluding LULUCF and international bunkers =Total emissions with international transport (EEA)
Total emissions including LULUCF and international bunkers = Total net emissions with international transport (EEA)
Total emissions excluding LULUCF and international aviation =Total emissions with international aviation (EU 2020)
Total emissions including LULUCF and international aviation =Total net emissions with international aviation (NDC)

For the definition of the last four simply the structure: Total emissions XYZ is a sector that encompasses A and B...
Add editor notes:

Total emissions excluding LULUCF and international aviation: This definition corresponds to the 2020 emission target of the European Union.
Total emissions including LULUCF and international aviation: This definition corresponds to the 2030 emission target as specified in the Nationally Determined Contribution (NDC) of the European Union . (Side note: We could think about adding nationally determined contribution as a own concept, but that would be a topic for a new issue.)

Add further sector from MMR template. Here I have to proposals:

M.International aviation in the EU ETS: The MMR sector 'M.International aviation in the EU ETS' is a transport sector that is defined by the MMR sector division.  It encompasses emissions from flights that depart in one EU member state and arrive in a different EU member state.
M.International aviation in the EU ETS: The MMR sector 'M.International aviation in the EU ETS' is a transport sector that is defined by the MMR sector division.  It encompasses emissions from flights that depart in one member state of the European Economic Area and arrive in a different member state of the European Economic Area.

@han-f: Which is the right one? Does the EU-ETS for aviation also cover flights from/to Norway, Iceland and Liechtenstein?

In issue #834 / PR #853 we defined EU emission sector: ETS aviation as: The EU emission sector ETS aviation is a transport sector defined by the EU emission sector division that covers greenhouse gas emissions regulated by the European Union Emissions Trading System and that are emitted by stationary installations. That definition is of course humbug and probably a copy & paste error. The right definition should be: The EU emission sector ETS aviation is a transport sector defined by the EU emission sector division that covers greenhouse gas emissions regulated by the European Union Emissions Trading System and that are emitted from aviation. As this is related to M.International aviation in the EU ETS we can and should correct this here in this issue.

New proposal from internal discussion with @han-f and one of our ETS experts: The MMR sector 'M.International aviation in the EU ETS' is a transport sector that encompasses that part of the international aviation that is regulated by the European Union Emissions Trading System. This links to both the EU-ETS and international aviation which we both already have in the OEO.
Further result: What we implemented as MMR sector division is actually the sector definition of the governance regulation. So we relabel/redefine:

The MMR GovReg sector division is a sector division defined in Annex XXV, Table 1a of Commission Implementing Regulation (EU) 2020/1208. It uses CRF sectors (IPCC 2006) and adds further sectors.

And add:

The MMR sector division is a sector division defined in XII, Table 1 of Commission Implementing Regulation (EU) 749/2014. It uses CRF sectors (IPCC 2006) and adds further sectors.


requested NFS version or transport protocol is not supported

When I try to run vagrant up an error happened:
mount -o vers=4,udp,nolock,vers=4,udp,noatime <IP_ADDRESS>:/home/jhonn/Boxes/kubernetes-vagrant-coreos-cluster /vagrant mount.nfs: requested NFS version or transport protocol is not supported
OS: Arch Linux 4.18
Provider: Virtual box 5.2.18
vagrant: 2.1.5
nfs-utils: 2.3.3-1
I also tried to run: sudo systemctl start nfs-server but without success.

It seems, that udp protocol is the problem (also on Arch). I changed it to tcp and now it's fine. also vers=3 seems to be specified twice, so can be removed as well.


Enable ECS metrics in Dynatrace

Proposed changes

What changed
Enable ECS metrics in Dynatrace
Why did it change
Monitor the reliability, availability and performance of AWS ECS in Dynatrace
Issue tracking

KIWI-1478

Checklists
Environment variables or secrets

[ ] Documented in the README
[ ] Added screenshots to show the implementation is working
[ ] Ran cfn-lint on any SAM templates

Other considerations

pre-commit failed with detect secrets

No longer required


Wrong texture coordinates on sf::Sprite

Hello,
After trying to use vertex shaders (thx for the new graphics API btw), I realized that there is a problem with the texture coordinates on sf::Sprite. Here is a minimal code that should work :
#include <iostream>
#include <SFML/Graphics.hpp>

int main() {

  /////////////////// Init stuffs /////////////////////////

  sf::RenderWindow win(
    sf::VideoMode(1920, 1080),
    "Test SFML shader window",
    sf::Style::Fullscreen);

  sf::Texture tex;
  if (!tex.LoadFromFile("shrTest.png")) {
    std::cout << "unable to load the texture" << std::endl;
    return 1;
  }

  sf::Sprite spr(tex);
  spr.SetTextureRect(sf::IntRect(0.0, 0.0, 250.0, 250.0));

  sf::Shader shr;
  if (!shr.LoadFromFile("testShr.vert", "testShr.frag")) {
    std::cout << "unable to load the shader" << std::endl;
    return 1;
  }

  /////////////////// Render loop /////////////////////////

  while (win.IsOpened()) {

    sf::Event evt;
    while (win.PollEvent(evt)) {
      if (evt.Type == sf::Event::KeyPressed) {
        if (evt.Key.Code == sf::Keyboard::Q) {
          win.Close();
        }
      }
    }

    win.Clear();
    win.Draw(spr, &shr);
    win.Display();
  }

  return 0;
}

With the following shader files. They only display what a basic sf::Sprite should display :
#version 150 compatibility

void main(void) {
  gl_FrontColor = gl_Color;
  gl_TexCoord[0] = gl_MultiTexCoord0;
  gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
}

#version 150 compatibility

uniform sampler2D tex;

void main() {
  vec4 color = texture2D(tex, gl_TexCoord[0].st);
  gl_FragColor = color;
}

The result is a sprite that appears totally black, or green depending on the machine. So after some digging I found that the problem comes from the way the texture coordinates are computed in sf::Sprite. And more precisely the UpdateTexCoords function.
Here is the current one :
void Sprite::UpdateTexCoords()
{
    float left   = static_cast<float>(myTextureRect.Left);
    float right  = left + myTextureRect.Width;
    float top    = static_cast<float>(myTextureRect.Top);
    float bottom = top + myTextureRect.Height;

    myVertices[0].TexCoords = Vector2f(left, top);
    myVertices[1].TexCoords = Vector2f(left, bottom);
    myVertices[2].TexCoords = Vector2f(right, bottom);
    myVertices[3].TexCoords = Vector2f(right, top);
}

And here is a modified version that fixes the problem. It simply computes the tex coords inside the range [0,1] instead of passing pixels values. It works well so far, though it might not be the most optimal way of doing things (?).
void Sprite::UpdateTexCoords()
{
    float width = 1.0;
    float height = 1.0;

    if (myTexture) {
      width = static_cast<float>(myTexture->GetWidth());
      height = static_cast<float>(myTexture->GetHeight());
    }

    float left   = static_cast<float>(myTextureRect.Left) / width;
    float right  = left + myTextureRect.Width / width;
    float top    = static_cast<float>(myTextureRect.Top) / height;
    float bottom = top + myTextureRect.Height / height;

    myVertices[0].TexCoords = Vector2f(left, top);
    myVertices[1].TexCoords = Vector2f(left, bottom);
    myVertices[2].TexCoords = Vector2f(right, bottom);
    myVertices[3].TexCoords = Vector2f(right, top);
}

You could have saved you a lot a wasted time by just asking...
Texture coordinates are in pixels rather than normalized, on purpose. It's easier for the end user. The problem is in your shader: you need to multiply the texture coordinates by the texture matrix. You could have found out yourself by looking at the Shader example.


endPoint field in ocm-provider json should be camelCase?

On http://localhost:19001/ocm/ocm-provider/ I see:
{
   "enabled": true,
   "apiVersion": "1.0-proposal1",
   "host": "localhost",
   "endpoint": "https://localhost/ocm",
   "provider": "cernbox",
   "resourceTypes": [
      {
         "name": "file",
         "shareTypes": [
            "user"
         ],
         "protocols": {
            "webdav": "/cernbox/ocm_webdav"
         }
      }
   ]
}

but my code is looking for endPoint, not endpoint.
[Question to self:] Is this part of OCM documented somewhere?

Looking at https://github.com/cs3org/OCM-API/pull/37 it was suggested as camelCase, but apparently this didn't make it into https://github.com/cs3org/OCM-API/blob/develop/spec.yaml#L33.

This was fixed in one of the last PRs around OCM


Clarity on LOD Jump decoding

The spec mentions that an LOD Jump is followed by two floating point numbers

The JumpCount is followed by two floating point numbers, LOD0 and LOD1

However, in tests/data/lod-polygon.iconvg.disassembly, they appear to be decoded as coordinate numbers.
3a            #0003 Jump Level-of-Detail
07                  Target: #0007 (PC+3)
81                  +0
02 d0               +80

The spec mentions early on that floating point numbers always take four bytes.

Floating point numbers are always encoded in 4 bytes: the little-endian encoding of a 32-bit IEEE 754 float32 number.

Following this leads to incorrectly decoding lod-polygon.
I suggest the verbage be updated to say that LOD0 and LOD1 are coordinate numbers.
Specifications

Version: FVV1
Platform: N/A

Thanks for the bug reports!


Device not found in macOS 10.14(Mojave)

macOS upgrade to 10.14, karabiner version is 12.1.0
Filco bluetooth keyboard can not be found in device list.

I was able to fix this by going to System Preferences > Security & Privacy > Click "Allow" next to "Software from Fumihiko Takayama has been blocked"


searching for symbols is excruciatingly slow

Hi guys,
I am trying to avoid switching to software such as pycharm professional, but searching for symbols is really very slow in vscode and often unreliable as if the parsed skeletons are often "lost".
I suppose this depends on the python language server pylance and not on vscode itself (full text search via the sidebar's search functionality is blazingly fast).
I'm using the current vscode with pylance and a conda-installed python 3.8 on macos BigSur on a recent macbook pro and have a medium sized repository of a couple of MB of code open.
My impression is that this issue is very general and was always so no matter which of the just mentioned environment details were changed.

It's a hidden setting; you can ignore VS Code's comment on whether or not it exists.
Those two settings are for our old, deprecated language server and won't have any effect on Pylance.

@Zacharias030, presume the fix resolved the issue. If not, please reopen this issue


[DX] Documentation Tweaks for First-time users

Hi there!
This is part of the DX initiative. I think the current documentation has a lot of information, but isn't organized as well as it can be, especially for someone who is using the bundle for the first time. It's especially tricky because we don't want to repeat docs that are in the main library, but I think we can make some small changes that will help a lot.
Here is a potential first experience with this bundle

Google for StofDoctrineExtensionsBundle and after a click on the README, find this page: https://github.com/stof/StofDoctrineExtensionsBundle/blob/master/Resources/doc/index.rst

The composer.json require key is actually pretty good. But (and I'm not sure about this), telling the user to use composer require might be even better. Often, I see people copy and paste the entire require block. I think the php and symfony/symfony lines might also confuse them.

After adding the bundle to AppKernel, the next thing I see is: https://github.com/stof/StofDoctrineExtensionsBundle/blob/master/Resources/doc/index.rst#add-the-extensions-to-your-mapping. This is not actually needed unless you're using one of these parts of the bundle (e.g. Translatable, Loggable). I think these should live individually under sections for each extension. The same is true for the Enable the softdeleteable filter header.

What the user really needs to see is this section: https://github.com/stof/StofDoctrineExtensionsBundle/blob/master/Resources/doc/index.rst#activate-the-extensions-you-want

Overall, after installation, I think we should have a little table-of-contents called "Using each Extension", with a bulleted list of each extension that links to a separate file for docs about using just that extension. In each file, we'd tell them exactly how their configuration needs to look (e.g. enabling the listener, adding a filter (for softdeleteable), etc) and how to use that extension. We would of course have links to the real library for all  the "heavy lifting".
Comments warmly welcome!
Thanks!

For me it would be quite nice to see how to mention a behavior for the folowing orm (I prefer using orms in place of annotations)
Blogger\BlogBundle\Entity\Cat:
type: entity
table: cat
repositoryClass: Blogger\BlogBundle\Entity\Repository\CatRepository
id:
id:
type: integer
generator:
strategy: AUTO
fields:
name:
type: string
length: 45
manyToMany:
blogs:
targetEntity: Blog
mappedBy: cats
Can you please show me how could I add translatable and loggable for example ?


PowerBI Price Tab Trunking information

We are seeing that the PowerBI Cost Summary Report for MCA is trunking the information related to the SKU. In contrast with the SCE is visible all the info to identify the producto charged. You cant tell this in the screenshot below.

@josesarsa can you share the column name that's being used for each of these screenshots? Is it x_SkuDescription?

MCA -> SKU

SCE -> SKU

@josesarsa That's just a display name for the table. You can find the actual column name by hovering over the column in the list of columns in the right panel where you add/remove columns. If the tooltip doesn't show up, you can double-click it and delete the custom display name to revert back to the original column name.
Is the toolkit report screenshot with SKU, Commitment, Term, etc. columns something that was customized or is that one of the built-in report pages?
Also, can you clarify what "SCE" is?

Is the toolkit report screenshot with SKU, Commitment, Term, etc. columns something that was customized or is that one of the built-in report pages?
Yes. Columns are by default.
MCA contract
Column name 'CostDetails'[x_Description]
SCE contract
Column name 'CostDetails'[x_SkuDescripion]
SCE stands for Server and Cloud enrollment if I am not mistaken

I updated the finops hub to v0.5 and still the same problem

Sounds like SCE is the same thing as EA. Does that sound right? What values do you see in the x_AccountType column?
Can you confirm if the MCA column is really "x_Description"? We don't have a column by that name, so if that's what you're seeing, them I'm guessing someone added it. Can you check to see if it's a custom column/measure in the Data panel on the right? If not, can you open the advance query editor for CostDetails and find that column to share what code is used to generate it?
If that doesn't help, we should get on a call. You can email ftk-support@ms to set something up.


Add support for extra conditions from blueprint to internal automation as of 1.0.1

Checklist

[X] I have filled out the template to the best of my ability.
[X] This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
[X] This issue is not a duplicate feature request of previous feature requests.

Is your feature request related to a problem? Please describe.
With the blueprint that it was using from automation, you could add "Additional Conditions" to the automation to prevent it from running. This was useful for configuring things like overrides if the cover was controlled by an entity other than the automation.
Describe the solution you'd like
Migrate the functionality from the blueprint into the internal integration for Additional Conditions
Describe alternatives you've considered
NA
Additional context

You can use the toggle control switch in an automation to add extra conditions to it 😉

Ah! That is a much cleaner and direct way of doing it. Thanks for the clarification


build: Update package.json to advertise types and module permutations more exhaustively.

NOTE: We may be able to hold off on these changes and rely on the naming convention resolution, at least for TypeScript > 5.5. However, we may also need to add cjs exports for other use cases (both for typescript types resolution reasons and for different tooling/env setups).

Closing since it is only a partial solution. Full solution would require publishing cjs modules as well for player.style.


Add --keep-debug option to wasm-bindgen command

Adds the --keep-debug option to pass it to the wasm-bindgen cli.
Fixes https://github.com/rustwasm/wasm-pack/issues/1351
Make sure these boxes are checked! 📦✅

[X] You have the latest version of rustfmt installed

$ rustup component add rustfmt

[X] You ran cargo fmt on the code base before submitting
[X] You reference which issue is being closed in the PR text

✨✨ 😄 Thanks so much for contributing to wasm-pack! 😄 ✨✨

I realized this can be enabled through a profile in the Cargo.toml Configuration by setting
[package.metadata.wasm-pack.profile.dev.wasm-bindgen]
dwarf-debug-info = true


Show faulty config file on error

This PR complements #228.
If your config is corrupted, there is currently no way to know WHICH project file is faulty.
It can be tested simply by adding a tag and omitting the closing quote:
# -*- mode: Conf; -*-
git = 'git@github.com:chevdor/foobar.git'
after_workon = ''
tags = [
    'rust',
    'shell                             <<<< ERROR HERE
]

This PR outputs a mesage to stderr mentioning which project does not deserialize properly:
     ...
     Running `target/debug/fw ls`
There is an issue in your config for project foobar
Aug 17 15:14:12.533 WARN Could not read v2.0 config: Err(TomlDeError(Error { inner: ErrorInner { kind: NewlineInString, line: Some(9), col: 10, at: Some(199), message: "", key: [] } })). If you are running the setup right now this is expected., module: fw:22
Aug 17 15:14:12.533 CRIT Error running command, error: TomlDeError(Error { inner: ErrorInner { kind: NewlineInString, line: Some(9), col: 10, at: Some(199), message: "", key: [] } }), command: ls, module: fw:172

Make sure to merge #228 first


libraryTarget umd & code splitting

When splitting code in webpack, the chunks are loaded with temporary script tags:
/******/    var head = document.getElementsByTagName('head')[0];
/******/    var script = document.createElement('script');
/******/    script.type = 'text/javascript';
/******/    script.charset = 'utf-8';
/******/    script.async = true;
/******/    script.timeout = 120000;

/******/    script.src = __webpack_require__.p + "" + ({}[chunkId]||chunkId) + "." + "<some_key>" + ".js";

When creating an umd library, the library might be loaded by another bundler again (webpack, jspm, etc.). In that case, the script tag loading isn't nice. It would be better to keep the AMD (or System.import for webpack 2) in the chunks which will be interpreted by the other bundler. I didn't find an option to enable this. Is it a missing feature? Or am I missing something and code splitting in umd libraries not possible?

It's a missing feature..

This feature would be super handy for us. What's the difficulty in implementing it? I guess, replacing the temp script stuff with System.import is not complicated, right? Is the problem the current jsonp in the bundles?

It all starts here: https://github.com/webpack/webpack/blob/master/lib/JsonpTemplatePlugin.js
This is the important part: https://github.com/webpack/webpack/blob/master/lib/JsonpMainTemplatePlugin.js
You need to write a custom target too: https://github.com/webpack/webpack/blob/master/lib/WebpackOptionsApply.js#L68-L77
You can publish all off this as separate module like here:
https://github.com/chentsulin/webpack-target-electron-renderer#how-this-module-works

@sokra
I would need this feature too. Could you consider to reopen this?

+1

@davidagraf
@alexcastillo
@monteraphael
@LucaMele
@sokra
I just created a new ticket, cause this was not reopenend, at #6818


Add thoughtbot's dotfiles to the list.

Figured since thoughtbot's rcm was added to the list, their dotfiles should be as well!

(Please feel free to reword how I described their dotfiles or recommend changes.)

Thanks for the contribution!


TimeTranslationPastHorizon exception for private testnet

Example failure
https://github.com/geniusyield/atlas/actions/runs/12329517611/job/34413921377?pr=370.
Description
Sometimes we may encounter TimeTranslationPastHorizon exception when running a test against private testnet. Though the functions we expose inside Atlas to do slot to time conversations successfully give result even if provided slot is beyond the era end, we might still see this exception when slot to time conversion is occuring when Plutus script context is being built inside cardano-api machinery. For example, if in our off-chain code, we say that transaction must be invalid after a particular slot then when this slot is converted to posix time inside cardano-api library, it can throw exception if this slot is beyond the era end as ultimately slotToWallclock from ouroboros-consensus library is called (function trace is provided below) which doesn't allow such conversations as era parameters could change beyond the reported era end. Note that reported era end is that epoch until we know that no such updates can occur.
makeTransactionBodyAutoBalance -> evaluateTransactionExecutionUnits -> evaluateTransactionExecutionUnitsShelley -> evalTxExUnitsWithLogs -> mkPlutusWithContext -> .. -> .. -> toPlutusTxInfo -> transValidityInterval -> transSlotToPOSIXTime -> slotToPOSIXTime -> epochInfoSlotToUTCTime ~ slotToWallclock (via interpreterToEpochInfo in ouroboros-consensus)

Likely we can modify era end to be unbounded for last era?

Currently era end of last era is used for refetching information such as stake pools, protocol parameters, etc. I think stake pools can change even before era end, so this code could be modified to refetch every epoch, while leaving out era histories. Update to era histories anyway require us to update our code since we have hardcoded number of eras.

Stake pools required by Atlas when forwarding to makeTransactionBodyAutoBalance are those registered stake pools that are being unregistered in to be built transaction. And set of registered stake pools can actually change when as soon as transaction registering a new stake pool is submitted. So, I think we don't need to maintain list of stake pools but can rather obtain it on demand.

I realise we can't really escape from this error. Even if we set the era end to be unbounded, we might still see this failure when submitting our built transaction as node would use it's internal era history to do calculations.


add idea of foreign_id to enable easier langchain-vector store intera…

@dev2049 @hwchase17 - what do you all think about add a foreign_id to Document.
See the test for Update included here is included to demonstrate why this is useful.
It enables users to pass lists of Documents to vector store operations like update, delete, etc and handle the location of those records correctly.
This is set up so that if the user sets the foreign_id before adding the records to the database, the database will use those foreign_ids as the ids.

Concerns

the name foreign_id implies that it is not something the user should set, where the user setting it is valid.
if the user changes foreign_id after it has been passed to the database, the "link" will be lost.
I am not entirely familiar with the lifecycle of Documents inside LangChain and I don't know if this makes sense.

The alternative to adding a foreign_id would be to match on the page_content - but I think this is far worse.

I couldn't get tests to run locally. Perhaps someone can point me in the right direction.

thanks @jeffchuber! we've been thinking about what other keys to explicitly type on Documents. we'll probably add something like source and id/foreign_id soon but want to be really thoughtful about it. for now / for this pr could we keep foreign_id on metadata?
@eyurtsev any other thoughts?

@dev2049 that's interesting.
In that case, I guess the cleanest way to do this would be to have something like chroma_id stuffed into the metadata whenever a Document object is passed to Chroma or created by Chroma (eg add_texts) -- and then stripped out before syncing back to Chroma (so the key-value doesn't get written to Chroma). This would mean that metadata in Chroma for an object would not match metadata in the Document, which I think is broadly a con b/c it is harder to reason about.
The downside of this is that the attribute is ~strictly read-only in the sense that users can not set the property on the object, it can only be set for them. EG - it would be fairly obtuse for the user to set the foreign_id themselves in metadata and then have the expectation that to be respected in all operations.
ids in Chroma are currently immutable, though this isn't a hard and fast requirement of our API.
This can also be solved by simply asking the user to maintain their own array of Tuples or other to keep track of foreign_id-Document pairs. In the long term, this feels like work that the user shouldn't have to do however.
I totally respect that you are thinking more deeply about it! I mainly raised this PR to start/continue the conversation around this idea. I think I want to avoid workaround "magic" solutions for now, b/c that also will require that users migrate data down the road which is painful for everyone.
In any case - I'll keep PRs that do not require this change while you all consider how to approach it. And we can close this for now. (or keep it open for a few days to attract comments)

A few points for discussion:

Should documents be immutable? Making them immutable will likely help to prevent a bunch of issues and makes code easier to reason about. This complicates implementation of the pattern described in the PR.
Documents could have their own uid assigned based on content hashes of the document. This does not require immutability, but makes more sense if immutability is present.
What are administration patterns in production applications? Do users retain document objects after writing content into the search engine? Is it possible to phrase administration in terms of the uid associated with the documents, so no notion of foreign ids has to be introduced?
What happens with foreign_id if a user needs to index the documents into multiple systems?

@jeffchuber, we added the following indexing code support to LangChain. It should help manage indexing workflow for users. Let us know if you have any concerns

https://github.com/langchain-ai/langchain/pull/9614
https://python.langchain.com/docs/modules/data_connection/indexing

cc @baskaryan

@eyurtsev Does your last comment mean that we don't need this PR anymore? Is so, please, close this PR. TNX!
cc @jeffchuber

Closing because the PR wouldn't line up with the current directory structure of the library (would need to be in /libs/langchain/langchain instead of /langchain). Feel free to reopen against the current head if it's still relevant!


feat(examples): add go-synthetic (example-app) example for basic auth with new GMP secret feature

(rebased on top of @TheSpiritXIII branch)

Rebased and merging!

Thanks!


Polyfill for URL is incomplete and causes crash with apollo-server

[x] Review the documentation: https://facebook.github.io/react-native
[x] Search for existing issues: https://github.com/facebook/react-native/issues
[x] Use the latest React Native release: https://github.com/facebook/react-native/releases

Environment
  React Native Environment Info:
    System:
      OS: Linux 4.4 Ubuntu 18.04.1 LTS (Bionic Beaver)
      CPU: x64 Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz
      Memory: 6.07 GB / 15.93 GB
      Shell: 4.4.19 - /bin/bash
    Binaries:
      Node: 10.12.0 - ~/.nvs/node/10.12.0/x64/bin/node
      Yarn: 1.10.1 - ~/.nvs/node/10.12.0/x64/bin/yarn
      npm: 6.4.1 - ~/.nvs/node/10.12.0/x64/bin/npm
    npmPackages:
      react: 16.5.0 => 16.5.0
      react-native: 0.57.1 => 0.57.1
    npmGlobalPackages:
      react-native-cli: 2.0.1

Description
To add non-URL (local) Blob support, a simple polyfill for one static method on the URL object was added here:
https://github.com/facebook/react-native/blob/be56a3efeefefa6dca816ca5149a3dabfa5164e2/Libraries/Blob/URL.js#L53
(note that the ctor throws)
This triggers an exception Apollo Server tries to do a new URL() here:
https://github.com/apollographql/apollo-server/blob/458bc71eadde52483ccaef209df3eb1f1bcb4424/packages/apollo-datasource-rest/src/RESTDataSource.ts#L79
It then uses the SearchParams collection on the URL to add parameters:
https://github.com/apollographql/apollo-server/blob/458bc71eadde52483ccaef209df3eb1f1bcb4424/packages/apollo-datasource-rest/src/RESTDataSource.ts#L218
And then constructs a string, implicitly calling the url.toString() method:
https://github.com/apollographql/apollo-server/blob/458bc71eadde52483ccaef209df3eb1f1bcb4424/packages/apollo-datasource-rest/src/RESTDataSource.ts#L233
Reproducible Demo

import { RESTDataSource } from 'apollo-datasource-rest';

export default class SearchDataSource extends RESTDataSource {
  constructor() {
    super();
    this.baseURL = `https://foo.com/`;
  }

  async search(searchString, options) {
    return this.get('universalSearch', {
      searchTerm: this.searchString,
    });
  }
}

const sds = new SearchDataSource();

Maybe a stupid question, but why are you using Apollo server on a client?

Closed with #22901


1.12 Powercell Linking Crash

Pastebin: https://pastebin.com/YaHH9VVA
Mod version: What ever ATM3 is using
I'm playing the ATM3 pack.  In a creative world, I used TechReborn's Windmills (4) and connected them with glass fiber cables to a advanced powercell.  Then I made a Techreborn watermill setup (10) and connected to a powercell.  I made the link cards on the windmill cell, then as soon as i inserted into the watermill cell, I crashed and MC threw a null pointer that is pointing at RFTools Powercell (SEE ABOVE).  It seems as if the link card did get loaded before the world crashed as I can not get back into the world without instantly crashing. Huge problem as this setup was what I was going to use.  Does it have something to do with converting EU to RF?
Edit: pretty sure this is RFTools but I also posted to techreborn as well to be safe since the log does call it out too.

It seems that TechReborn is trying to send energy to the powercells clientside which is not legal. In that case it is their fault

Yep, your right. You might want to gracefully handle it, but it should work now.


Improve TypeScript definition, refactor definition to CommonJS compatible export

Breaking change:

improve definition, take into account that transform function must return different types depending on silent mode
refactor definition to CommonJS compatible export

Waiting for https://github.com/SamVerschueren/tsd/pull/22.

@sindresorhus Currently, we allow returning null or undefined from the *Transfrom functions. JS-wise it doesn't make a difference whether we return null or undefined or even a number. My changes are already breaking, should we limit this to just undefined for the sake of consistency?

My changes are already breaking, should we limit this to just undefined for the sake of consistency?

👍


Inconsistent behaviour between passkey creation and login

I try to implement passkeys. During the passkey creation phase, I use the following parameters:
Attestation type: direct
Authenticator: not specified
User verification: discouraged
Resident key: required

The result is: (on Chrome for Windows)

I choose Use a phone or tablet and create the passkey on my phone using a QR Code.
Later, during the login phase, I ask for the user's username and fill in the property AssertionOptions.AllowCredentials (I don't want to be usernameless).
The result is:

I have to cancel this pop-in to be able to access to the same register interface with Use a phone or tablet.
Is there any way to directly access to the initial interface while passing some allowCredentials?

Per this thread on SO https://stackoverflow.com/questions/75063504/webauthn-on-chrome-on-windows-skip-windows-dialog-in-favor-of-chrome-dialog it may seem like this is default behavior on Chrome/Windows. On login flow I'm getting this dialog every time even though I do have BT enabled.
I'd very much love to hear from others what their experience is, especially on other systems.


Imposible to use it in a minecraft mod

Hi i'm trying to use your API to add discord RichPresence in my minecraft mod
When i put the code in my main class at the init process my package become incorect
here is my code
package fr.altisrp.mod;
// Error is HERE
import club.minnced.discord.rpc.*;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import fr.altisrp.mod.proxy.CommonProxy;

@Mod(modid = AltisRpMod.MODID, version = AltisRpMod.VERSION)
public class AltisRpMod
{
    public static final String MODID = "Altis_RP";
    public static final String VERSION = "0.0.1";

    @Instance("AltisRpMod")
    public static AltisRpMod instance;

    @SidedProxy(clientSide = "fr.altisrp.mod.proxy.ClientProxy", serverSide = "fr.altisrp.mod.proxy.CommonProxy")
    public static CommonProxy proxy;

    @EventHandler
    public void preinit(FMLPreInitializationEvent event)
    {

		// some example code
        System.out.println("Pré init Altis Rp Mod");

    }

    @EventHandler
    public void init(FMLInitializationEvent event)
    {

    	DiscordRPC lib = DiscordRPC.INSTANCE;
        String applicationId = "";
        String steamId = "";
        DiscordEventHandlers handlers = new DiscordEventHandlers();
        handlers.ready = (user) -> System.out.println("Ready!");
        lib.Discord_Initialize(applicationId, handlers, true, steamId);
        DiscordRichPresence presence = new DiscordRichPresence();
        presence.startTimestamp = System.currentTimeMillis() / 1000; // epoch second
        presence.details = "Starting Game";
        lib.Discord_UpdatePresence(presence);
        // in a worker thread
        new Thread(() -> {
            while (!Thread.currentThread().isInterrupted()) {
                lib.Discord_RunCallbacks();
                try {
                    Thread.sleep(2000);
                } catch (InterruptedException ignored) {}
            }
        }, "RPC-Callback-Handler").start();
		// some example code
        System.out.println("init Altis Rp Mod");
        proxy.registerRender();

    }

    @EventHandler
    public void postInit(FMLPostInitializationEvent event)
    {

		// some example code
        System.out.println("PostInit Altis Rp Mod");

    }
}

eclipse says to configure build path . i dont knew what to do
Thanks for helping me

In order to use this dependency you have to add it through either maven or gradle.

Oh yeah i forget that ...

Build Failed
`****************************
Powered By MCP:
http://modcoderpack.com/
Searge, ProfMobius, Fesh0r,
R4wk, ZeuX, IngisKahn, bspkrs
MCP Data version : unknown

:compileApiJava UP-TO-DATE
:processApiResources UP-TO-DATE
:apiClasses UP-TO-DATE
:sourceMainJava
:compileJava
FAILURE: Build failed with an exception.

What went wrong:
Could not resolve all dependencies for configuration ':compile'.

Could not find club.minnced:java-discord-rpc:2.0.1.
Searched in the following locations:
http://files.minecraftforge.net/maven/club/minnced/java-discord-rpc/2.0.1/java-discord-rpc-2.0.1.pom
http://files.minecraftforge.net/maven/club/minnced/java-discord-rpc/2.0.1/java-discord-rpc-2.0.1.jar
http://repo1.maven.org/maven2/club/minnced/java-discord-rpc/2.0.1/java-discord-rpc-2.0.1.pom
http://repo1.maven.org/maven2/club/minnced/java-discord-rpc/2.0.1/java-discord-rpc-2.0.1.jar
https://libraries.minecraft.net/club/minnced/java-discord-rpc/2.0.1/java-discord-rpc-2.0.1.pom
https://libraries.minecraft.net/club/minnced/java-discord-rpc/2.0.1/java-discord-rpc-2.0.1.jar
file:/Users/tomguillou/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.10-<IP_ADDRESS>4-1.7.10/java-discord-rpc-2.0.1.jar
file:/Users/tomguillou/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.10-<IP_ADDRESS>4-1.7.10/java-discord-rpc.jar
Required by:
fr.altisrp.mod:forge-1.7.10-<IP_ADDRESS>4-1.7.10-src:0.0.3

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED
Total time: 7.71 secs`

You are missing the jcenter repository

`buildscript {
repositories {
mavenCentral()
jcenter()
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
dependencies {
    classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'

}

}
apply plugin: 'forge'
apply plugin: "java"
sourceCompatibility = targetCompatibility = '1.8'
compileJava {
sourceCompatibility = targetCompatibility = '1.8'
}
version = "0.0.3"
group= "fr.altisrp.mod" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "Altis-Mod"
minecraft {
version = "1.7.10-<IP_ADDRESS>4-1.7.10"
runDir = "eclipse"
}
dependencies {
// you may put jars on which you depend on in ./libs
// or you may define them like so..
//compile "some.group:artifact:version:classifier"
//compile "some.group:artifact:version"
// real examples
//compile 'com.mod-buildcraft:buildcraft:6.0.8:dev'  // adds buildcraft to the dev env
//compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env

// for more info...
// http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
// http://www.gradle.org/docs/current/userguide/dependency_management.html
compile 'club.minnced:java-discord-rpc:2.0.1'

}
processResources
{
// this will ensure that this task is redone when the versions change.
inputs.property "version", project.version
inputs.property "mcversion", project.minecraft.version
// replace stuff in mcmod.info, nothing else
from(sourceSets.main.resources.srcDirs) {
    include 'mcmod.info'

    // replace version and mcversion
    expand 'version':project.version, 'mcversion':project.minecraft.version
}

// copy everything else, thats not the mcmod.info
from(sourceSets.main.resources.srcDirs) {
    exclude 'mcmod.info'
}

}
`
Here is my build.gradle

Without theres lines build passed


Id of a newly created event

Is it possible to obtain an id of a newly created event?
I am calling session.Events.Append(streamId, evt)  and then SaveChangesAsync, how can I get the id of the event (the Id that can be later used by session.Events.Load())

I think this one is answered.