Set kubeReserved and evictionHard in the kubelet-config

Overview:
This change to bootstrap.sh sets kubeReserved and evictionHard in /etc/kubernetes/kubelet/kubelet-config.json for worker nodes. The values used for kubeReserved are dynamically calculated based on the available CPU and memory of the instance. The amount of CPU and memory allocated for a given EC2 instance is calculated using this formula from GKE, https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture#node_allocatable. Note that the values used for evictionHard are hard-coded.
Here is a related issue: Kube/System Reserved resources should be enabled by default (https://github.com/awslabs/amazon-eks-ami/issues/318)
Testing:
We are testing to see if the memory reserved for the kubelet in kubeReserved is enforced on the worker node. Specifically, we are trying to observe if pods that are requesting a large percentage of available CPU and memory resources on a worker node are continuously evicted and replaced with new pods before they can use memory resources reserved for the kubelet when kubeReserved is set. In the case that kubeReserved is not set, these pods which are causing memory starvation of the kubelet, should continue to run without being recycled. We expect this to cause the worker node to transition a not ready status.
Procedure:

Launch a cluster with one worker node with instance type t3.medium (2 vCPU, 4 GiB)
Create a deployment with the given specification and scale the number of pods to equal the number of gibibytes available to the instance. In this case, scale the deployment to four replicas.
$ kubectl create -f mem-deployment.yaml # mem-deployment.yaml is from mem-deployment.txt
$ kubectl scale deployment cpu-deployment --replicas=4
Wait five minutes and then view the cluster events. Check to see if any of the pods were evicted. Since kubeReserved is not set on the worker node, the pods shouldn’t be getting evicted. We expect the worker node to become become unresponsive and enter status “Not Ready.”
$ kubectl get events --sort-by=.metadata.creationTimestamp
$ kubectl get nodes # check to see if the node has status “Not Ready”
Clean up the deployment.
$ kubectl delete deployment mem-deployment
Now, we want to compare this behavior against having kubeReserved set on your worker node. SSH into your worker node and replace /etc/eks/bootstrap.sh with the version from this PR, which calculates and sets kubeReserved and evictionHard in /etc/kubernetes/kubelet/kubelet-config.json.
Rerun the bootstrap.sh script and restart kubelet by running, $ systemctl restart kubectl. See the instructions below for more details about how to rerun bootstrap.sh.
Now repeat steps 2-4. When viewing cluster events, check to see if any of the pods were evicted and if any new pods were created. Since kubeReserved is now set, we expect the pods to be recycling since they’re trying to use memory set aside to keep the kubelet healthy.
Repeat steps 1-7 with other worker node instance types.

Instructions for how to rerun bootstrap.sh on a worker node and restart the kubelet:

Modify /etc/eks/bootstrap.sh to be the version included in this PR. You need to run $ sudo vi /etc/eks/bootstrap.sh to modify the file.
On the worker node, run: $ curl http://<IP_ADDRESS>/latest/user-data
Copy and paste variables for B64_CLUSTER_CA, APISERVER_ENDPOINT
Run: $ sudo /etc/eks/bootstrap.sh ClusterName  --b64-cluster-ca $B64_CLUSTER_CA --apiserver-endpoint $APISERVER_ENDPOINT
Run $ cat /etc/kubernetes/kubelet/kubelet-config.json to confirm that kubeReserved has been set
To restart kubelet to use the modified kubelet-config.json run $ sudo systemctl restart kubelet

Results Using a t3.medium Worker Node (2 vCPU, 4 GiB):
When kubeReserved and evictionHard are not set in the kubelet-config:
$ kubectl get pods
NAME                              READY   STATUS    RESTARTS   AGE
mem-deployment-5d85bd8c74-fw65j   1/1     Running   0          2m44s
mem-deployment-5d85bd8c74-mgdz5   1/1     Running   0          2m44s
mem-deployment-5d85bd8c74-pgnx5   1/1     Running   0          2m44s
mem-deployment-5d85bd8c74-rlr6c   1/1     Running   0          2m57s

$ kubectl get nodes
NAME                                            STATUS     ROLES    AGE    VERSION
ip-192-168-180-252.us-west-2.compute.internal   NotReady   <none>   104m   v1.13.11-eks-5876d6

Note that not setting kubeReserved causes the worker node to become unavailable. The four pods continue to run and starve the kubelet of resources.
When kubeReserved and evictionHard are set in the kubelet-config:
Values for evictionHard and kubeReserved in /etc/kubernetes/kubelet/kubelet-config.json:
  "evictionHard": {
    "memory.available": "100Mi",
    "nodefs.available": "10%",
    "nodefs.inodesFree": "5%"
  },
  "kubeReserved": {
    "cpu": "70m",
    "ephemeral-storage": "1Gi",
    "memory": "768Mi"
  }

$ kubectl get pods
NAME                              READY   STATUS      RESTARTS   AGE
mem-deployment-5d85bd8c74-4q94g   0/1     Evicted     0          54s
mem-deployment-5d85bd8c74-4ts4s   0/1     Pending     0          48s
mem-deployment-5d85bd8c74-6hv7n   1/1     Running     2          89s
mem-deployment-5d85bd8c74-6njp4   0/1     Evicted     0          51s
mem-deployment-5d85bd8c74-7fspp   0/1     Evicted     0          52s
mem-deployment-5d85bd8c74-7qjdl   0/1     Evicted     0          89s
mem-deployment-5d85bd8c74-87kt8   0/1     Evicted     0          53s
mem-deployment-5d85bd8c74-959mc   0/1     OOMKilled   2          98s
mem-deployment-5d85bd8c74-b4rvq   0/1     Evicted     0          49s
mem-deployment-5d85bd8c74-gbfhr   1/1     Running     2          89s
mem-deployment-5d85bd8c74-gzdqt   0/1     Evicted     0          52s
mem-deployment-5d85bd8c74-pbnz4   0/1     Evicted     0          49s
mem-deployment-5d85bd8c74-rqhx4   0/1     Evicted     0          53s
mem-deployment-5d85bd8c74-rs59v   0/1     Evicted     0          49s
mem-deployment-5d85bd8c74-slqts   0/1     Evicted     0          54s
mem-deployment-5d85bd8c74-srdnl   0/1     Evicted     0          51s
mem-deployment-5d85bd8c74-sxkxs   0/1     Evicted     0          54s
mem-deployment-5d85bd8c74-v9px4   0/1     Evicted     0          54s
mem-deployment-5d85bd8c74-x55fb   0/1     Evicted     0          52s
mem-deployment-5d85bd8c74-x8lr4   0/1     Evicted     0          54s
mem-deployment-5d85bd8c74-z79hr   0/1     Evicted     0          50s

$ kubectl get nodes
NAME                                            STATUS   ROLES    AGE    VERSION
ip-192-168-180-252.us-west-2.compute.internal   Ready    <none>   119m   v1.13.11-eks-5876d6

Note that the worker node and the kubelet stays responsive when kubeReserved and evictionHard are set. The pods are evicted and replaced with new pods instead of being allowed to continue running.
Conclusion
Setting kubeReserved and evictionHard by default is necessary because a majority of customers would prefer to have their worker nodes stay alive and responsive over having their pods persist on the node, while potentially using CPU and memory resources that are needed by the kubelet.

lgtm but the commits look weird

For different instance types here are the values calculated for kubeReserved:
t3.nano (2 vCPU, 0.5 GiB):
"kubeReserved": {
"cpu": "70m",
"ephemeral-storage": "1Gi",
"memory": "255Mi"
}
m5.large (2 vCPU, 8 GiB):
"kubeReserved": {
"cpu": "70m",
"ephemeral-storage": "1Gi",
"memory": "1741Mi"
}
c5.24xlarge (96 vCPU, 192 GiB):
"kubeReserved": {
"cpu": "310m",
"ephemeral-storage": "1Gi",
"memory": "10704Mi"
}
r5.24xlarge (96 vCPU, 768 GiB):
"kubeReserved": {
"cpu": "310m",
"ephemeral-storage": "1Gi",
"memory": "22236Mi"
}

Needs a bash math fix and better documentation of the formulas being used. Additionally, I'd consider doing at least the math portion in python, as I think it would be easier to follow and test.

Agree. As our bootstrap script grow, we definitely should replace it with a go program or python script.

@natherz97 and I'm a bit confused by the cpu/mem calculation algorithm. Could you clarify more one how are they calculated?

Does it help to set ephermal storage as well ?


Running Js - ChartJs

Hi there, thanks for your work!
I am trying to create a custom component to display charts with ChartJs, but I need to call javascript and only get working after the page is loaded, clicking in some item with run_javascript() method. I want to create the line chart (for this example) and perform the needed actions to load the chart in the class. I have this:
import justpy as jp
import pandas as pd
import uuid

class LineChartjs(jp.Div):
    # https://www.chartjs.org/docs/latest/charts/line.html

    id = f"line-chartjs"  # -canvas-{uuid.uuid4()}"

    def __init__(self, **kwargs):
        super().__init__(**kwargs)

        chart_javascript = """
        new Chart(document.getElementById("line-chartjs"), {
          type: 'line',
          data: {
            labels: [1500,1600,1700,1750,1800,1850,1900,1950,1999,2050],
            datasets: [{
                data: [86,114,106,106,107,111,133,221,783,2478],
                label: "Africa",
                borderColor: "#3e95cd",
                fill: false
              }, {
                data: [282,350,411,502,635,809,947,1402,3700,5267],
                label: "Asia",
                borderColor: "#8e5ea2",
                fill: false
              }, {
                data: [168,170,178,190,203,276,408,547,675,734],
                label: "Europe",
                borderColor: "#3cba9f",
                fill: false
              }, {
                data: [40,20,10,16,24,38,74,167,508,784],
                label: "Latin America",
                borderColor: "#e8c3b9",
                fill: false
              }, {
                data: [6,3,2,2,7,26,82,172,312,433],
                label: "North America",
                borderColor: "#c45850",
                fill: false
              }
            ]
          },
          options: {
            title: {
              display: true,
              text: 'World population per region (in millions)'
            }
          }
        });
        """

        self.inner_html += "<canvas id='line-chartjs'></canvas>"

def test():
    wp = jp.WebPage()
    wp.head_html = """
    <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.4/Chart.min.js"></script>
    """

    lines1 = LineChartjs(classes="m-4 p-4 text-xs", a=wp)

    return wp

jp.justpy(test)

How could I load the chart, taking in account too that I attach the self.inner_html += "<canvas id='line-chartjs'></canvas>" when creating the component... It is possible?

Hi,
In order for this to work, you need to define a complex component (https://justpy.io/tutorial/advanced_components/) that has in addition to the python part, an associated Vue component in JavaScript. You could use the HighCharts component that comes with the package as a template. The two files are https://github.com/elimintz/justpy/blob/master/justpy/chartcomponents.py and https://github.com/elimintz/justpy/blob/master/justpy/templates/js/chartjp.js


Specify engine in package.json

Raised in https://github.com/Financial-Times/polyfill-service/issues/604

I checked the .travis.yml file and the version specified is 5.0.0.
Should package.json reflect the same or can have a lower requirement? From what I saw build is working fine with 4.3. If I'm not too lazy, I could reinstall a 4.0.0 to check with this one too.

We run with 5.0.0 in production, so I'd probably prefer to specify that.

Ok :+1:


docs: note discrete treatment data type

Related Issues/PRs

#xxx
What changes are proposed in this pull request?
Update causal inference docs: discrete treatment column data type must be int or bool.
How is this patch tested?

[ ] I have written tests (not required for typo or doc fix) and confirmed the proposed feature/bug-fix/change works.

Does this PR change any dependencies?

[x ] No. You can skip this section.
[ ] Yes. Make sure the dependencies are resolved correctly, and list changes here.

Does this PR add a new feature? If so, have you added samples on website?

[x ] No. You can skip this section.
[ ] Yes. Make sure you have added samples following below steps.

Find the corresponding markdown file for your new feature in website/docs/documentation folder.
Make sure you choose the correct class estimators/transformers and namespace.
Follow the pattern in markdown file and add another section for your new API, including pyspark, scala (and .NET potentially) samples.
Make sure the DocTable points to correct API link.
Navigate to website folder, and run yarn run start to make sure the website renders correctly.
Don't forget to add <!--pytest-codeblocks:cont--> before each python code blocks to enable auto-tests for python samples.
Make sure the WebsiteSamplesTests job pass in the pipeline.

/azp run

Codecov Report

Merging #1905 (a8e6ae3) into master (13afff6) will decrease coverage by 28.17%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           master    #1905       +/-   ##
===========================================
- Coverage   86.82%   58.66%   -28.17%
===========================================
  Files         301      301
  Lines       15596    15596
  Branches      815      815
===========================================
- Hits        13541     9149     -4392
- Misses       2055     6447     +4392

see 122 files with indirect coverage changes
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

/azp run

an unrelated test case VowpalWabbitMulticlassclassification failed, I noticed it for couple of times.
https://msdata.visualstudio.com/A365/_TestManagement/Runs?runId=1681852074&_a=resultSummary&resultId=100041 @mhamilton723 , fyi

@mhamilton723 please merge.


Rename duplicate column name in CSV file

Some CSV files exported by IT systems contain duplicated column names. It is better to auto rename them with a number suffix.
For example, if there are 3 columns with the name 'Address', the schema autodetection will generate a schema of Address, Address_2, Address_3

released in 0.8.2


Templating configuration of rules via JSON file

Hey guys, as mentioned in #69, one big concern would be turning rule structuring into a more generic and less copy-pasted way, so this is what this pull request does.
I had some trouble with regex and JSON, so this part was left in the code, but basically everything that could be turned into a string and eventually parsed has been "stringified".
I'm also getting around with the points system, but I believe I got it right by letting it configurable too.
Ps.: Template is done for bubble.js and could be easily extended to the remaining rules if feedback is positive.

Hi @asiviero, pa11y 2.0 just got released and it was a full rewrite. The rules have moved into a JSON-based format which took some inspiration from your work here. Thank you, and sorry for the long wait!


iOS postMessage from WebView fails

Using code from UIExplorer WebView example:
https://github.com/facebook/react-native/blob/master/Examples/UIExplorer/js/WebViewExample.js
https://github.com/facebook/react-native/blob/master/Examples/UIExplorer/js/messagingtest.html
Works on Android.
<EMAIL_ADDRESS>Output in exp
exp] <START> Processing asset request  asset: ReactABI12_0_0-js-navigation://postMessage

[exp] Error: 'ReactABI12_0_0-js-navigation://postMessage' could not be found, because 'ReactABI12_0_0-js-navigation:/' is not a subdirectory of any of the roots  ('/home/jim/exp-init')
    at Promise.all.then.stats (/home/jim/exp-init/node_modules/react-native/packager/react-packager/src/AssetServer/index.js:191:13)
    at tryCallOne (/home/jim/exp-init/node_modules/promise/lib/core.js:37:12)
    at /home/jim/exp-init/node_modules/promise/lib/core.js:123:15
    at flush (/home/jim/exp-init/node_modules/asap/raw.js:50:29)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)

[exp] <END>   Processing asset request  asset: ReactABI12_0_0-js-navigation://postMessage   (6ms)

The WebView displayes the text

Asset not found

If we use the html from inside the component, we get the following error
[exp] Encountered an error loading page {"domain":"WebKitErrorDomain","canGoBack":false,"target":8,"code":101,"loading":false,"title":"666","canGoForward":false,"description":"The URL can’t be shown","url":"about:blank"}

There's a tentative fix here - https://github.com/exponent/exponent/commit/8cd8df903d99ebac1481cd8cce530585b509ed86 shipping at some point this week.

Works as of latest version. Thanks a lot!


Dialog is dismissed on screen touch

Flutter dialog are closed immediately on screen touch. Android native behavior is different. User can touch screen and swipe away to abort dialog dismissal. Problem becomes very visible when using flutter dialogs with android 10 gestural navigation

Native Android
Flutter

Steps to Reproduce

Open dialog
Press & hold screen, make swipe gesture
Drag back to abort back navigation
Observe: Dialog should not be dismissed

RaisedButton(
  child: Text("openDialog"),
  onPressed: () async => await showDialog(
    context: context,
    builder: (context) => SimpleDialog(
      children: <Widget>[Text("Some dialog")],
    ),
)),

Logs

[✓] Flutter (Channel stable, v1.9.1+hotfix.2, on Linux, locale en_US.UTF-8)
    • Flutter version 1.9.1+hotfix.2 at /home/audrius/Documents/flutter
    • Framework revision 2d2a1ffec9 (2 weeks ago), 2019-09-06 18:39:49 -0700
    • Engine revision b863200c37
    • Dart version 2.5.0

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /home/audrius/Documents/android-sdk-canary
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • ANDROID_HOME = /home/audrius/Documents/android-sdk-canary
    • Java binary at:
      /home/audrius/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-1/191.5791312/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    • All Android licenses accepted.

This behavior is not consistent also w.r.t. iOS. There is not a single app (even Google ones) which dismisses modals on tap down.
This problem has been worsened even more after #36956. It's now impossible to dismiss modals if another gesture recognizer participates in the arena, as the _AnyTapGestureRecognizer immediately rejects the gesture on PointerUpEvent. I think it should be much better to use a recognizer that accepts anyTap (but not any tapDown).
cc @dkwingsmt, author of the PR

Sorry for causing the trouble.
@audkar Is this something new to Android 10? I've tested this on several apps on earlier Android versions and it seems to me that those dialogs are closed on tap down. I don't currently have Android 10 devices to test so I'll appreciate it if you can describe the updated behaviors.
@sroddy Rejecting gestures is definitely a bug that I should fix. Thanks for bringing this up.
As for iOS dialogs, the only dismissable native dialog I can find is action sheets (corresponding to CupertinoActionSheet), and I can see that it's indeed dismissed on tap up instead of tap down. I'll fix it soon.

Is this something new to Android 10?

No. This not specific to Android 10 or gesture navigation. It happens on all Android versions

@audkar I built the following example that contains nothing but a dialog, and tested on a Pixel running Android 9. I confirm that the dialog is dismissed on tap down instead of tap up.
package com.example.testdialog

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity

import kotlinx.android.synthetic.main.activity_main.*
import android.app.AlertDialog

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        setSupportActionBar(toolbar)

        fab.setOnClickListener { _ ->
            showDialog()
        }
    }

    private fun showDialog() {
        val alertDialog = AlertDialog.Builder(this).create()
        alertDialog.setTitle("Alert")
        alertDialog.setMessage("Alert message to be shown")
        alertDialog.setButton(AlertDialog.BUTTON_NEUTRAL, "OK") { dialog, _ ->
            dialog.dismiss()
        }
        alertDialog.show()
    }
}

Your experience of dismiss on tap up might be a result of gesture competence: when another gesture is competing with the modal barrier, the tap gesture won't claim victory until all other competitors leave the arena when pointer is up. With this conclusion I'll leave the Android behavior as tap down.
Nevertheless, the modal barrier should compete with the gesture navigator on Android 10, resulting in dismissing on tap up. I'll see if I can find a fix.

I confirm that the dialog is dismissed on tap down instead of tap up.

Seems that this behavior is different on android 10. I can reproduce that

Dialog is dismissed on tap down on Android 9
Dialog is dismissed on tap up on Android 10

dialog_dismiss_android_10

@audkar Thank you very much. It's very important. Let me discuss with others and see how we handle this.

showDialog(
barrierDismissible: false,
context: context,
builder: (BuildContext context) {
return alert;
},
);
for me set barrierDismissible :false solve the issue


SortedMultiSet sorts by key (only)

It seems preferably to be able to (optionally? always?)  sort by value, not key here.

Now tracked as
https://stroika.atlassian.net/browse/STK-953


feat(docs): add dark theme switcher

This PR just enables the development of the Dark Theme - the look and feel will be off for the time being!
If you'd like to try it out, just visit any url using the theme=dark query string - once you want to change back to the light theme, use theme=light

I wonder why the Header stayed white since baseui/header-navigation gets darkened

Oh yeah, it was not the HeaderNavigation, but the div behind it :) just fixed it


fix: description lines to collapse when expanding sibling

Fixes #865

#686  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @davidlj95 and the rest of your teammates on  Graphite


Update AtarPathfindingProject 5.0.9. Import error

I would be grateful if you could attach an example zip file to this ticket.

I guess it's because of this：

116.zip


Extend route's gateway selection

Currently, routes can select gateways by list or namespace or all. One thing that is missing is selecting based on class. This can be important when using extensions that are only supported by one class. For example, if I use the nginx class and depend on nginx-auth extension, I need to fail-closed - if I am selected by the haproxy class and auth is ignored we are in trouble.
One possible idea is to just add a new type of From:
gateways:
  allow: FromClass
  gatewayClasses: [nginx]

However, now we are limited - we cannot specify specific Gateways and the class.
A more flexible idea would be to change FromList from explicit reference to "matchers", and add a class field. Basically, all three of the fields must match the gateway to select, and unset ones are ignored. If name is set namespace must be as well, since cross-namespace name selectors don't make sense
gateways:
  allow: FromList
  gatewayRefs:
  - name: istio-ingressgateway
    namespace: istio-system # required if name is set
  - class: mesh # select any gateway with class=mesh
  - class: gke-xlb # select any gateway with class=gke-xlb if its in gke-system
    namespace: gke-system
  - namespace: my-gateway-namespace # select any gateway from my-gateway-namespace
  - name: istio-local
    namespace: istio-system
    class: istio # select a specific gateway, and enforce its a part of a specific class

In the community meeting this week, @bowei pointed out that we could simply update the documentation to clarify that if an implementation runs into a filter or extension point it doesn't support, it should drop the entire route. At some point we should likely add a new field in each extension point that can be used to indicate if the route should be dropped if the extension can't be supported. Until then, it seems reasonable to assume that all extensions are blocking.

https://github.com/kubernetes-sigs/gateway-api/issues/594 proposes an alternative approach to Gateway Route selection. This would not include selection by class, but does enable more powerful Gateway selection from Routes.


implement arp responder

Signed-off-by: Andrew Sy Kim<EMAIL_ADDRESS>Co-authored-by: Zaalouk, Adel<EMAIL_ADDRESS>

Agreed on both comments. Let's see how this pans out and revisit this code, definitely needs some clean up. Created https://github.com/k-vswitch/k-vswitch/issues/11 to follow-up.


KeySize and Key

It should be noted, that changing the KeySize value will generate a new, random Key.

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

ID: 1ce74cb2-9214-8ec0-d97d-badb6e8191b6
Version Independent ID: a972c626-eb98-4f93-cd25-6b583e2a6f10
Content: AesCryptoServiceProvider.KeySize Property (System.Security.Cryptography)
Content Source: xml/System.Security.Cryptography/AesCryptoServiceProvider.xml
Service: .net
GitHub Login: @dotnet-bot
Microsoft Alias: dotnetcontent

Hello
Just submitted a PR for this.  Let me know if this looks good or if you'd like any changes.
Thanks!

Looks good to me


Want "mockWebServer.dispatcher.clear()"

I have a JUnit file with several test functions that share a MockWebServer instance. The reason that they share it is that I need to declare it statically so that I can use Spring's @DynamicPropertySource to inject the MockWebServer's port number as Spring environment variable.
Anyway, Sometimes I enqueue a response and then test function A fails and does not take the response off the queue as expected. Then the next test function B is executed, I enqueue another response but the next call to the mock retrieves the first response in the queue - that was intended for the test function A.
What I propose is a mockWebServer.dispatcher.clear() method that empties the response queue. I could call this in a @BeforeEach annotated JUnit method.

Seems reasonable for QueueDispatcher but not Dispatcher.

In MockWebServer.enqueue(response: MockResponse) the "dispatcher" is cast to QueueDispatcher to calll its "enqueue()" method. I would propose the same for "clear()".

I also ran into this. Clearing the mock server response queue would truly be a valuable feature enhancement for me.

To be clear on the status of this, enhancements for MockWebServer isn't a big focus for the OkHttp maintainers, but as this seems like a reasonable request, it's probably something that would be accepted given a nice simple clean PR.  @lathspell Any interest in working on this?

see https://github.com/square/okhttp/pull/6736

Any news for this issue? A solution has been merged since July 2021, and yet it's still not part of any public release (as far as I can tell)

Released in 5 alphas.

Can someone paste the how to use solution in 5 alphas

Will this be in a non alpha release 4.11.0 is newer than your latest alpha but doesn't have this change ported to it.

I'm literally in this same predicament. I'm considering creating the mockwebserver with a static port and counting on that for my tests, but that seems error prone.


✨ Added proficiency without level

Implemented the option to toggle Proficiency without Level, accessible from the improved settings menu.
Also added the Ko-fi support button (can be hidden from the settings).
Closes: #27

What caused various errors was some weird interaction of bun/node/quasar (probably), not vue3-tour. This caused the node modules installation to break. This PR fixes the issue by switching from bun to npm.


Live tradebot on binance tries to sell at incorrect price

Note: for support questions, please join our Discord server

I'm submitting a ...
[x ] bug report
[ ] feature request
[ ] question about the decisions made in the repository

Action taken (what you did)
Started gekko as a live trader (turned off paper trader and used configuration accordingly)

Expected result (what you hoped would happen)
executing buy/sell orders

Actual result (unexpected outcome)
executing sell order at wrong price

Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc)

Hi, I am trying gekko as a live trader, on a simple strategy that I made, on binance, with small amounts of cryptocurrency.
Before describing the problem, I will state my current configuration:
git log -1

returns:
commit e7af14932f8ddc79e1568254b18b7cc91acfad65
Author: Clifford Roche<EMAIL_ADDRESS>Date:   Sun Dec 31 20:30:18 2017 -0500

No longer subtract 1 second

It isn't necessary because we fixed the iterator to 24 hour periods, and no longer use the trade time
from the last trade (which has only 1 second resolution).

gekko was not working on binance, so I tried to make it work by also implementing the suggestions described in issue #1563: I made that change (callback(err.message, ticker); to callback(undefined, ticker); ) not only in that line of the file exchanges/binance.js, but also on line 342: callback(err.message, !stillThere) to callback(undefined, !stillThere)
gekko didn't crash, but, as it tried to act on the "short" advice, the output was this (removed IDs from the pic as they are not necessary):

When I went to see on binance what happened, it seems that it tried to sell at the price "1", causing the sell to not happen, and consequently cancelling it by itself and retrying.

(nevermind the first entry in that list, that's when I manually sold it )
A part from fixing this issue, I would also like to know, how can my custom-made strategy know if the sell was successful? Because if it doesn't know, once the "short" advice is given, my custom-made strategy will switch to buy-mode while gekko is still trying to sell. How can I check if the buy or sell was successful from my custom strategy?
I would like it to try to sell when the "short" advice is given, and, If it can't sell it (for example order hangs or something), my strategy should know it, so that it will wait for the next good occasion to sell, instead of trying to buy.

The transaction is reversed.
It is expensive and it sells cheaply.
Please modify the code.  ~~;


What is the right way to invert data?

Original report by Dan Becker (Bitbucket: danbek, GitHub: danbek).

This is related to issue 127 that Joe just fixed. His fix replaces the data with its bitwise not.
This approach turns downward-going pulses into upward going ones, but note that it maps values like
0b0001000000000000 (i.e., 1*2^12)
into
0b1110111111111111 (i.e., 15*2^12 - 1)
This isn't really a problem per se, but in the case of microwave mux, multiples of 2**12 are special numbers, indicating exactly zero flux offset in the SQUID. I have a feeling that if we don't maintain this special number, we will run into problems at some point (though I don't have any specific examples of problems that it will cause).
This can be fixed by simply adding the value 1 after taking the bitwise not, i.e., replacing all values with their two's complement value.
What do you think?
(You might worry that this leaves the value 0 unchanged, and this might somehow mess something up, but in practice the server will never send a value of 0 to the client when reading umux data.)

Original comment by Galen O'Neil (Bitbucket: oneilg, GitHub: oneilg).

Either that or we could have an enum flag
ds.invert_data = "2scomplement"
vs
ds.invert_data =True

Original comment by Joseph Fowler (Bitbucket: joe_fowler, ).

This is an implementation issue specific to microwave MUX, right? How would someone with TDM data feel if their data were all inverted, as requested, except that 0 maps to 0?
My first reaction is it should remain in MASS as it is, and for those specific occasions where the uMUX operator needs to take note of multiples of 0x1000, then he or she will just have to add the 1 to the raw data at that point. Those occasions are already uMUX-specific and outside the scope of MASS anyway, right?

Original comment by Joseph Fowler (Bitbucket: joe_fowler, ).

I don't think we've seen Steve's hack. I'd bet it is similar to mine, though, because he had TDM data and no special interest in multiples of 4096.
I'm going to leave this open for a while, but I think it should be marked as won't-fix. Note that if you want to test for multiples of 0x1000, you actually have two options:

Add 1 to the raw data as reported by MASS.
Check that (value % 0x1000) == 0xfff or similar operations using bitwise-and.

One additional argument for leaving this 0x1000 stuff out of MASS: isn't it possible that someday the 4DSP uses wider integers, and so then the special value might be several factors of 2 larger than 0x1000?

Original comment by Joseph Fowler (Bitbucket: joe_fowler, ).

I still don't think this is a good idea to introduce into the generic (TDM+uMUX) data reader. It seems too device-specific.

Original comment by Dan Becker (Bitbucket: danbek, GitHub: danbek).

Better to have it always do the same thing than do different things depend on the value of the parameter.
You could also change the name to something like "downward_pulses". When Steve Smith did his hack, how did he invert it? Maybe we should be consistent with that.


[llvm11] fix

llvm/test/Assembler/debug-info.ll
llvm/test/Assembler/dicompileunit.ll
llvm/test/Assembler/disubrange-empty-array.ll
llvm/test/Transforms/Attributor/nonnull.ll

Great @dannypsnl. The only change I'd ask is if you copy the modified LLVM IR test files to add a .golden extension. That's how we have done with the other test cases, such that the original test case is unmodified, and the we add the expected output of llir/llvm in a .golden file.
For instance:

testdata/llvm/test/Bitcode/compatibility.ll
testdata/llvm/test/Bitcode/compatibility.ll.golden


Incorrect result returned by a group by query (SQLancer-TLP)

Describe the bug
The below query should return an empty set, since having is evaluated after aggregation, when it's predicate is false, the final result should always be empty.
I have also checked in DuckDB and PostgreSQL, and they all return an empty set.
Reproducer in datafusion-cli
DataFusion CLI v40.0.0
> create table t1(v1 int);
0 row(s) fetched.
Elapsed 0.085 seconds.

> SELECT AVG(v1) FROM t1 GROUP BY false having false;
+------------+
| avg(t1.v1) |
+------------+
|            |
+------------+
1 row(s) fetched.
Elapsed 0.095 seconds.

To Reproduce
No response
Expected behavior
No response
Additional context
Found by SQLancer https://github.com/apache/datafusion/issues/11030

take

@Lordworms @2010YOUY01
I think the result is expected
statement ok
create table t1(v1 int);

query R
SELECT AVG(v1) FROM t1 GROUP BY false having false;
----
NULL

query R
SELECT AVG(v1) FROM t1;
----
NULL

The NULL in DuckDB is actually not shown.


State of reactive?

Hello
I created an issue for async / reactive support some time ago https://github.com/neo4j/neo4j-ogm/issues/495
I know, there is already a Spring integration available, but not everybody uses Spring. Exists an estimation when a reactive API is general available for Neo4j-ogm?

Hi Wem,
we decided against adding another transport to Neo4j-OGM for the time being. We would have to clone Bolt and use the reactive API of the driver. While this is "only" a lot of (partially mechanic) work, the result would not fit into OGM at all.
OGM has no reactive infrastructure and it cannot have at the moment due to the fact that we of course keep supporting embedded and HTTP as well. So the smallest denominator would be everything in core.
We would have to duplicate most  the internal structure and then finally duplicate the surface.
I have created the integration of our Java Bolt Driver for both Quarkus and Micronaut. You can use that driver directly there (as you can in Spring) and than work with the reactive API, see one example among others here: RxAutocommitTransactionExample
I'm sorry to disappoint you, but we won't do reactive in OGM.

Hi Michael
Thanks for the explanation! It make sense. I tried to figure out for myself what's needed to make Neo4J-OGM reactive and i understand your point. Maybe a reactive counterpart project could be a solution, at least with partial feature Neo4J OGM provides, but also that would not be done within a day. :)
Regards

Thanks so much for the kind words and your understanding, @wem.
We have a lot of this already in place for SDN/RX and I could imagine a pluggable solution that replaces Spring Data's MappingContext in this package https://github.com/neo4j/sdn-rx/tree/master/spring-data-neo4j-rx/src/main/java/org/neo4j/springframework/data/core/mapping
The API would probably driven a lot by what Spring provides, but we hardly have dependencies outside the mapping context.


I cant get a string from my json

i get the notification and wana get the loc_key in data.
it gets the data correctly but cant get the loc_key , i dont know what is the problem!

This is a parsing issue, not sure that it is an error in the base code than the way you handling your JSON.

It seems like "data" is String but not dictionary as was expected.
You can use another initializer in this case:
guard let data = userInfo["data"] as? String else {
    return
}
let resultJson = JSON(parseJSON: data)

Hi,
I think that the solution of @svallex, is perfect for this problem.


fix(WEATHER): minor fixes for weather icon

Don't override background-repeat property set form '.wu' class
Center weather icon in case it's smaller than expected
Add a bit of documentation

I had this tiny change lying around...


MS YouTube reference wrong?

[
You have a video here that refers to DSCv2 for Windows:
https://www.youtube.com/watch?v=t9L8COY-BkM
But your doc refers to DSCv3.
I'm guessing of these are wrong?
]

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

ID: 96f96add-27f0-88f7-7737-10f059af2d50
Version Independent ID: 71350869-7dab-a0a9-c992-f25e0df5cc4a
Content: Understand Azure Machine Configuration - Azure Automanage
Content Source: articles/governance/machine-configuration/overview.md
Service: machine-configuration
GitHub Login: @michaeltlombardi
Microsoft Alias: mlombardi

@CodingMaximus
Thanks for your feedback! I've assigned this issue to the author who will investigate and update as appropriate.

The documentation clarifies that the required version of the PSDesiredStateConfiguration module depends on the platform: v2 is required for Windows, v3 preview for Linux.

#please-close

Apologies, the comment is the other way around, the video states v3.
So, I'm guessing the video needs a caveat?


Automator: update istio/api@master dependency in istio/istio@master

Generated by Automator - 2020-09-29T21:16:04+00:00

@istio-testing: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

lint_istio
abd84e8a40441ede6f90fc3f40b3b7af89029d84
link
/test lint_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@istio-testing: The following tests failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

lint_istio
abd84e8a40441ede6f90fc3f40b3b7af89029d84
link
/test lint_istio

integ-security-k8s-tests_istio
abd84e8a40441ede6f90fc3f40b3b7af89029d84
link
/test integ-security-k8s-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest


address sanitizer

$ CFLAGS="-fsanitize=address,undefined" cmake ..
$ make -j 8
$ make test
Running tests...
Test project /home/mpech/fp256/build
      Start  1: MUL_TEST
 1/10 Test  #1: MUL_TEST .........................   Passed    3.50 sec
      Start  2: DIV_TEST
 2/10 Test  #2: DIV_TEST .........................   Passed    3.41 sec
      Start  3: GCD_TEST
 3/10 Test  #3: GCD_TEST .........................   Passed    5.74 sec
      Start  4: MODINV_TEST
 4/10 Test  #4: MODINV_TEST ......................***Failed    0.11 sec
      Start  5: MODMUL_TEST
 5/10 Test  #5: MODMUL_TEST ......................   Passed    0.02 sec
      Start  6: MODSQR_TEST
 6/10 Test  #6: MODSQR_TEST ......................   Passed    0.02 sec
      Start  7: MODADD_TEST
 7/10 Test  #7: MODADD_TEST ......................   Passed    0.02 sec
      Start  8: MODSUB_TEST
 8/10 Test  #8: MODSUB_TEST ......................   Passed    0.02 sec
      Start  9: MONTMUL_TEST
 9/10 Test  #9: MONTMUL_TEST .....................   Passed   10.92 sec
      Start 10: MONTSQR_TEST
10/10 Test #10: MONTSQR_TEST .....................   Passed    7.55 sec

90% tests passed, 1 tests failed out of 10

Total Test time (real) =  31.32 sec

The following tests FAILED:
	  4 - MODINV_TEST (Failed)
Errors while running CTest
make: *** [Makefile:149: test] Error 8
$ ./test/modinv_test
------------ fp256_mod_inv ------------
=================================================================
==72280==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffc137c84e0 at pc 0x7ffb67d931ca bp 0x7ffc137c81b0 sp 0x7ffc137c7958
WRITE of size 40 at 0x7ffc137c84e0 thread T0
    #0 0x7ffb67d931c9 in __interceptor_memcpy /build/gcc/src/gcc/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:806
    #1 0x7ffb67d2b81f in ll_div (/home/mpech/fp256/bin/Release/shared/libfp256.so.0+0x2081f)
    #2 0x7ffb67d2d61b in ll_lehmer_exgcd (/home/mpech/fp256/bin/Release/shared/libfp256.so.0+0x2261b)
    #3 0x7ffb67d33944 in fp256_mod_inv (/home/mpech/fp256/bin/Release/shared/libfp256.so.0+0x28944)
    #4 0x561e6d689ebd in fp256_modinv_test_vector (/home/mpech/fp256/build/test/modinv_test+0xbebd)
    #5 0x561e6d68cb76 in run_test (/home/mpech/fp256/build/test/modinv_test+0xeb76)
    #6 0x561e6d689932 in main (/home/mpech/fp256/build/test/modinv_test+0xb932)
    #7 0x7ffb671da151 in __libc_start_main (/usr/lib/libc.so.6+0x28151)
    #8 0x561e6d689aad in _start (/home/mpech/fp256/build/test/modinv_test+0xbaad)

Address 0x7ffc137c84e0 is located in stack of thread T0 at offset 96 in frame
    #0 0x7ffb67d337bf in fp256_mod_inv (/home/mpech/fp256/bin/Release/shared/libfp256.so.0+0x287bf)

  This frame has 2 object(s):
    [32, 40) 'sl' (line 148)
    [64, 96) 'sd' (line 149) <== Memory access at offset 96 overflows this variable
HINT: this may be a false positive if your program uses some custom stack unwind mechanism, swapcontext or vfork
      (longjmp and C++ exceptions *are* supported)
SUMMARY: AddressSanitizer: stack-buffer-overflow /build/gcc/src/gcc/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:806 in __interceptor_memcpy
Shadow bytes around the buggy address:
  0x1000026f1040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x1000026f1050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x1000026f1060: 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 f2
  0x1000026f1070: f2 f2 00 00 00 00 f3 f3 f3 f3 00 00 00 00 00 00
  0x1000026f1080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x1000026f1090: f1 f1 f1 f1 00 f2 f2 f2 00 00 00 00[f3]f3 f3 f3
  0x1000026f10a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x1000026f10b0: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 00 00
  0x1000026f10c0: 00 f2 f2 f2 f2 f2 00 00 00 00 00 f2 f2 f2 f2 f2
  0x1000026f10d0: 00 00 00 00 00 f2 f2 f2 f2 f2 00 00 00 00 00 f3
  0x1000026f10e0: f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
  Shadow gap:              cc
==72280==ABORTING

commit messgae is broken:(.
In ll_lehmer_exgcd, it computes sd = (bd * v0 + gcd) / ad, when bd * v0 + gcd has 4 more limbs than ad, ll_div requires sd to have 5 limbs to store quotient. So give sd 5 limbs space can fix it.


add evm_log table

I'd like to validate a new schema.
id column should be computed from block height and log index -<PHONE_NUMBER>-000000
If we have this schema, i will be able to query evm logs like this:

do SELECT id FROM evm_log WHERE contract = {address} AND id > {block_height} LIMIT 5000 until i load all the required logs
SELECT event_id FROM evm_log WHERE id = ANY({ids})
SELECT * FROM event WHERE id = ANY({ids})

@eldargab @dzhelezov  what do you think?

What is the relation between the log id and the event_id? Is it many to one?
Should we a have a block range in the first query? In order to traverse the whole set we probably need to have a more flexible query like 'where id > last_fetched_log_id AND block >= range_low and block < range_high LIMIT 5000'
It's a lot better compared to using offsets.
Tagging @mo4islona who had some ideas along these lines.

Is it many to one?
Yes. One event can have multiple logs.

I wasn't going to use offsets. Log id should contain block height and log index so the first query will be:
SELECT id FROM evm_log WHERE contract = {address} AND id > {block_height} LIMIT 5000
and the next one will be:
SELECT id FROM evm_log WHERE contract = {address} AND id > {last_evm_log_id} LIMIT 5000
block_id is redundant and query like that - select id from evm_log where contract = '0x0000000000000000000100000000000000000080' and id > '0002145000'; produces a pretty fine execution plan
 planning time: 345µs
 execution time: 3ms
 distribution: local
 vectorized: true
 rows read from KV: 240 (24 KiB)
 cumulative time spent in KV: 2ms
 maximum memory usage: 90 KiB
 network usage: 0 B (0 messages)

 • scan
   nodes: n3
   actual row count: 240
   KV time: 2ms
   KV contention time: 0µs
   KV rows read: 240
   KV bytes read: 24 KiB
   estimated max memory allocated: 70 KiB
   estimated row count: 232 (1.3% of the table; stats collected 4 hours ago)
   table: evm_log@idx_evm_log__contract
   spans: [/'0x0000000000000000000100000000000000000080'/e'0002145000\x00' - /'0x0000000000000000000100000000000000000080']
(20 rows)

Ok looks good to me!

@eldargab should i implement addAcalaEvmExecutedFailed or addEvent('EVM.ExecutedFailed') will be enough?
I expect that the second approach will slow down indexing

I think it will be useful to add ability to pass multiple contract addresses, as we've done for frontier evmLogs and transactions
https://github.com/subsquid/squid/blob/11b90024e3855622992bb79dd3330495e3d71120/substrate-processor/src/processor/batchProcessor.ts#L255


Installing Pint with Python 3.7

The pint version (0.7.2) in the unidata channel is for Python 3.6. When installing it on the latest version of Anaconda with Python 3.7, this downgrades a large number of packages to Python 3.6. The conda-forge channel has the latest version of pint (0.9) for Python 3.7 and is referenced on the pint website. Unless the older version of pint is required, could you use the conda-forge channel instead?

Thanks, Sebastian.  How's this?  5ec16a5

That seems fine! There's also a reference to unidata in the book itself (https://github.com/AllenDowney/ModSimPy/blob/a959ae6a67950a35bb8778a3b556d842f0b3036c/book/book.tex#L433). Sorry for not actually providing a pull request - and hoping all is well!

Fixed.  Will be in the next release.  Thanks again!


Create codeql-analysis.yml

Issue being fixed or feature implemented

What was done?

How Has This Been Tested?

Breaking Changes

Checklist:

[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have added or updated relevant unit/integration/functional/e2e tests
[ ] I have made corresponding changes to the documentation

For repository code-owners and collaborators only

[ ] I have assigned this pull request to a milestone

Codecov Report

Merging #175 (5e40a8c) into master (2338db3) will increase coverage by 0.00%.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #175   +/-   ##
=========================================
  Coverage     45.11%   45.11%
- Complexity     5330     5331    +1
=========================================
  Files           379      379
  Lines         41492    41492
  Branches       5681     5681
=========================================
+ Hits          18719    18720    +1
- Misses        20821    20822    +1
+ Partials       1952     1950    -2

Impacted Files
Coverage Δ

...main/java/org/bitcoinj/core/TxConfidenceTable.java
63.76% <0.00%> (-1.45%)
:arrow_down:

...e/src/main/java/org/bitcoinj/core/BloomFilter.java
74.65% <0.00%> (-1.37%)
:arrow_down:

core/src/main/java/org/bitcoinj/script/Script.java
84.43% <0.00%> (+0.12%)
:arrow_up:

...rc/main/java/org/bitcoinj/core/MasternodeSync.java
31.20% <0.00%> (+0.70%)
:arrow_up:

...c/main/java/org/bitcoinj/net/NioClientManager.java
61.95% <0.00%> (+1.08%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Adding a LINQ provider to this project

Hi there. First of all thank you for not abandoning the project and making it OrientDB 2.2 compatible. While the approach does allow the developers to interact with OrientDB from .Net code I think the overall usage and the experience will greatly improve is this implementation would have a LINQ provider implemented. This is more or less the standard this days when some sort of interaction with a database is required. I think a good start would be to look at the re-linq project (https://relinq.codeplex.com). Here is a good example on how the ArangoDB .Net Client is implemented: http://www.arangoclient.net.

Hi @samirski, we appreciate the feedback.  Since adopting the client we have considered many different directions and approaches to take and value the input from the community on what they would like to see.

Hi @GrayDelacluyse, the issue I see here is fact that OrientDB is not really known among the .net developers. So it's like chicken or the egg problem. To get the feedback, the usage needs to be higher, but to increase the usage, a nicely implemented solution is needed first. Maybe you should distribute a survey or write a blog post on the ideas and see what happens next. This is just a suggestion.

@samirski We fully support pull request, I would love to see a base implementation.


Remember premium banner collapsed state

closes #79
The code proposed here remembers the premium banner collapsed state using LocalCache.
Demo

I see:

Error: Environment variable SENTRY_ORG is missing an organization slug

Is this a flaky error? /cc @extrawurst

No it seems its not injecting the CI secret when its on a PR i did not create my self

Looks good to me! Awesome!


Default to JDK 11 source & target compiler options

I don't see any reason to maintain Java 8 source compatibility now that Quarkus 2.x has dropped support for it.

Yeah, and there might even be more Java 8 cleanups. Just one thing to keep in mind, last time we have done Java 8 cleanups there was an issue as there was still a Java 8 build on quarkus-platform. Not sure the build is still there however.

Not sure the build is still there however.

Yeah, I checked and platform is only building on 11 now.

@jamesnetherton @aldettinger there are some graal substitutions to clean up
for example this one https://github.com/apache/camel-quarkus/blob/7d56d88595496f78c3f8c985f4feb0d103b77aaf/extensions-support/xalan/runtime/src/main/java/org/apache/camel/quarkus/support/xalan/graal/SunTemplatesImplSubstitution.java#L29

@jamesnetherton @aldettinger there are some graal substitutions to clean up

Thanks - latest commit cleans those up.


Make hello-schemer the primary branch

@lassik I think those are files you created that are conflicting? Can you check if there is really a problem? Mind the fact that except the typecheck everything should be in hello-schemer branch.

Sorry about the delay. I'll look into it now.


New integration examples

Details
Add examples cookbooks for Groq and Gemini using our LiteLLM integration.
Also add auto-formatters for documentation content.

As requested, I extracted all non pre-commit change in a separate PR: https://github.com/comet-ml/opik/pull/394


Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference

I am running the Android application with react-native run-android. The application crashing at the entry with the following error

Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference

Environment
Environment:
OS: Windows 10
Node: 6.10.2
Yarn: 1.5.1
npm: 3.10.10
Watchman: Not Found
Xcode: N/A
Android Studio: Not Found
The machine does have Android Studio and Android SDK.
Packages: (wanted => installed)
react: ^16.3.0-alpha.1 => 16.3.0-alpha.2
react-native: 0.54.2 => 0.54.2
Expected Behavior
The application should open normally
Actual Behavior
The application is crashing with the following errors.

Steps to Reproduce
As this is a private project cannot give the code and steps to reproduce.

This issue is not actionable without code or steps to reproduce.

componentDidMount() {
    this.getBanner();
  }

  getBanner = () => {
    fetch(API_URL_BANNER, {
      method: 'POST',
      headers: {
        Accept: 'application/json',
        'Content-Type': 'application/json'
      },
      body : JSON.stringify(
        {server_key: SERVER_KEY, client_key: CLIENT_KEY}),
      })
        .then((response) => response.json()).then((responseJson) => {
      // Showing response message coming from server after inserting records.
          responseJson = responseJson['data'];
          console.log(responseJson);
        }).catch((error) => {
      console.error(error);
    });
  }

I got same issue here, error  show where I get data from API, and in log show
ReactNative: CatalystInstanceImpl.destroy() start
ReactNative: CatalystInstanceImpl.destroy() end
FYI I use
"react": "16.3.0-alpha.1",
"react-native": "0.54.2",

+1

Please open a new issue.

I faced the same issue and the thing is that i haven't export the value of API_URL that i have created in another page,because of that  it gives an error(Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference ).
I fixed my issue by exporting the value that i have created.

I've ran into the same issue. The error message originates from
https://github.com/facebook/react-native/blob/e636eb60d7c8cff3a73183e02d9d457d32a6ec53/ReactAndroid/src/main/java/com/facebook/react/modules/blob/BlobModule.java#L82
String scheme = uri.getScheme();
boolean isRemote = scheme.equals("http") || scheme.equals("https");

One line 81 the developer tries to extract the scheme (http/https) the request is using, but the method uri.getScheme() is returning null if your request url has no scheme. Line 82 attempts to call a virtual method which doesn't exist for nulls.
Add a scheme to your request and the problem should go away.
We should submit a PR to provide a clearer error message when the request doesn't have a scheme.

Anyone solve it?

I've  same issue.

As @danihodovic  explained this error due to providing null url for network request. In my case urls stored in .env file and we are using https://github.com/luggit/react-native-config for this. But I've not configured build.gradle file as described in https://github.com/luggit/react-native-config#extra-step-for-android .

any progress?

In my case, it only happens if I disable JS Dev Mode from Dev Settings on Android.
Once I enable it and reload the app, the exception is gone.

I used fetch(SERVER_URL) also got the same error message "Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference" .
As @danihodovic indicated, this crashed because uri was null in uri.getScheme() on line 81. So I printed out my SERVER_URL and noticed that it was undefined due to importing error. I fixed my uri and now it's working.
If you get the same message as mine, check your URI before it crashes :
console.warn(SERVER_URL)
fetch(SERVER_URL)
// more code


Automatic error report

<!---   *** BEFORE SUBMITTING: PASTE CLIPBOARD HERE TO COMPLETE YOUR REPORT ***   ---!>

Hi @FuYanzhou,
I'm closing this issue because there's no information about the error. Please open a new issue if you encounter any error in Spyder.
Thanks for reporting!


Added a new Open Source Program

Added a new Open Source Program: Code for GovTech (C4GT). Resolves #59

@MahajanPreksha Resolve conflict. Take your time and do it.


chunk styles [mini-css-extract-plugin] conflicts

What i should do to fix it in nextjs v7 ?

i update dependecies in zeit/next-css(sass) plugins and now i have

im add
 "node-sass": "^4.9.3",
    "css-loader": "^1.0.0",
    "sass-loader": "^7.1.0",
    "postcss-loader": "^3.0.0",
    "extracted-loader": "^1.0.7"

in package.json and scss build

Please follow the issue template when creating issues and provide a reproducible example. Otherwise, we'll have to close them every time.

What i should do to fix it in nextjs v7 ?

so how to resolve this problem? thu

What i should do to fix it in nextjs v7 ?

so how to resolve this problem? thu

Facing the same problem too.

What i should do to fix it in nextjs v7 ?

so how to resolve this problem? thu

Facing the same problem too.

Me too...


Add custom events for navigation

I would like to bind to an event when the navigation occurs.
var dn = new DomNavigator( document.querySelector('#grid') );
dn.on('select', function(el, direction) {
    // custom code
});

The argument direction should be an object like { top: X, left: X} or add the arguments like : db.on('select', function (el, x, y) { ... });  ?

Oh ... i got it!

The direction is just a string to determine the "course of the navigation" like: top, right, bottom and left. :)

I will create events for each method of Navigator, like init, enable, disable, destroy, left, up, down, right, and select.

@jgdev I think for some methods this is unnecessary, particularly for the init method, but for the others you listed that's perfect. :)

I've done!
// Without jQuery
db.on('method', function ( ... ) { ... });
// With jQuery
$(db).on('domNavigator.method', function (event, ... ) { }):

Methods:

enable - $ params (event)
disable - $ params (event)
select - params (el, direction) - $ params (event, el, direction)
destroy - $ params (event)
left, right, up, down - params (el) - $ params (event, el)


added configuration to use default/user configured credential

You already merged it to Beta. So we can close this PR


mrb_parser_message::column broken after observing a variable

It seems like that mrb_parser_message::column gets incremented once more than it should have been, every time the parser observes a variable.
How to reproduce:

apply the patch at https://gist.github.com/kazuho/d775cc196ad3de280f40 and rebuild mirb
run mirb and evaluate strings like: [a]]

You would see results like following.
Expected results: column 8 for all expressions.
Actual results: the reported column is 8 + number of variables found in the expression.
> [1,1,1]]
line 6:column 8: syntax error, unexpected ']', expecting $end
> [1,1,a]]
line 7:column 9: syntax error, unexpected ']', expecting $end
> [1,a,a]]
line 8:column 10: syntax error, unexpected ']', expecting $end
> [a,a,a]]
line 9:column 11: syntax error, unexpected ']', expecting $end

#3054 fixed this.  Thanks.

Thank you for merging the PR!


Allow users to register timer tasks in topologies

This is done sone that:

Users don't have to use additional threads in their topology to use a timers.
Collectors are not thread safe so use other threads to emit tuples will cause race conditions.  Using timer events part of the slave event loop with prevent that since its the same thread.
Tick tuples are cumbersome to use to trigger events and you can only have tick tuples emitted at one frequency.

@nwangtw to address your questions
What are the typical use cases of this timer event? Is it for users or for internal cases?
Mentioned in the description of the PR, the use cases are:
1 . Users don't have to use additional threads in their topology to use a timers.
2. Collectors are not thread safe so use other threads to emit tuples will cause race conditions. Using timer events part of the slave event loop with prevent that since its the same thread.
3. Tick tuples are cumbersome to use to trigger events and you can only have tick tuples emitted at one frequency.
This could be used by the user writing the topology or by a bolt we implement for the user such as the windowed bolt.
Timer event is for topology? Will it be potentially in Spout/Bolt level?
This could be used in a spout or bolt
Is it possible that we may need an per-timer on/off feature in future?
I don't see this as a valid use case
Is there a limit of how many timers can we have and how long/short can it be? Suggest to check the duration to be at least positive.
How many timers or the duration of timers should be up to the user.  The user should already understand the obvious performance consequences if there are too many timers or the timer frequency is too often.  We can check that the duration is positive though.  I will add that.
tickTupleFreqMs becomes hidden. It might be better to be more explicit (like sharing TimerEvent code but having a standalone PrepareTickTupleTimer function).
We can, but to be honest, this feature more or less deprecates tick tuples. Tick tuples are not very easy to use for triggering timer events.  This feature makes it much easier and more natural
I am not familiar with this looper object and . Is it possible that tmerevent can cause
Not sure what your question is
needs unit tests.
We can add some unit tests

@nwangtw thanks for the review.  I have addressed your comments

Thanks for the responses. Never mind about the "tmerevent can cause" question. I was wondering about racing condition/deadlock at beginning but it didn't look risky later.

@nwangtw I have addressed your comments


Where is the final extrinsic yaml file

In the MD.file we could see "Once finished, a file will be saved in your home directory with the name YYYYmmdd_HHMM_autoware_lidar_camera_calibration.yaml."
But may I ask how to "finish"
I just ctrl+c to finish the calibration and see nothing in my Home folder

I met the same problem, too. Someone said that  once after cilcking 9 points, the yaml file will be saved in home directory. But I saw nothing saved.

I got it worked. We should not click a point more than once. Just click 9 times and publish 9 points.


preset support colormode for airline or lualine

related to #38

closed by #72

Use terminal_color instead of using some other plugin's default highlight.


Group the launch file tutorials

It can be confusing to know what tutorials are available for ROS 2 launch files. In this PR, I put all of the tutorials in a page, similar to what we do for tf2, and explain a bit of context about each of the tutorials. I also add notes to other useful resources on ROS 2 launch files.

Great, here's the new issue: https://github.com/ros2/ros2_documentation/issues/2186.


"last_rc" version does not work

Traceback (most recent call last):
--
  | File "/usr/bin/bazel", line 350, in <module>
  | sys.exit(main())
  | File "/usr/bin/bazel", line 346, in main
  | return execute_bazel(get_bazel_path(), argv[1:])
  | File "/usr/bin/bazel", line 339, in get_bazel_path
  | return download_bazel_into_directory(bazel_version, is_commit, bazel_directory)
  | File "/usr/bin/bazel", line 236, in download_bazel_into_directory
  | url = determine_url(version, is_commit, bazel_filename)
  | File "/usr/bin/bazel", line 228, in determine_url
  | (version, rc) = re.match(r"(\d*\.\d*(?:\.\d*)?)(rc\d+)?", version).groups()
  | AttributeError: 'NoneType' object has no attribute 'groups'

Hi @prestonvanloon,
sorry, the Python version of Bazelisk doesn't support advanced version selection like last_rc or last_green. A PR to add it would be welcome, otherwise I would recommend to use the Go version of Bazelisk if possible.

Thanks!


login-customer-id issue

Hi and thanks for the gem!
I have seen a regression over the past few weeks:

I use google ads api to check data is fine on adwords account
whereas the code didnt change, it started failing

I dont know where this is coming from though.
Here is how I try and fetch data:
I, [2020-11-26T11:01:22.695645 #82]  INFO -- : Outgoing request:
Headers: {"developer-token":"REDACTED","login-customer-id":"890599XXXX","x-goog-api-client":"gl-ruby/2.6.6 gax/0.3.4 gapic/8.0.0 grpc/1.32.0","x-goog-request-params":"customer_id=820539XXXX"}
Payload: {"customerId":"820539XXXX","query":"SELECT campaign_budget.id FROM campaign_budget WHERE campaign_budget.status != 'REMOVED'"}
I, [2020-11-26T11:01:22.696546 #82]  INFO -- : Incoming response (errors):
Google::Ads::GoogleAds::Errors::GoogleAdsError(Google::Ads::GoogleAds::Errors::GoogleAdsError):
User doesn't have permission to access customer.
Note: If you're accessing a client customer, the manager's customer id must be set in the 'login-customer-id' header.
See https://developers.google.com/google-ads/api/docs/concepts/call-structure#login-customer-id

I dont really know what to do here:
As you can see login-customer-id is indeed part of the headers. I double checked in the Adwords UI and 820539XXXX is indeed a child of 890599XXXX.
Could you please advise:

is it gem related?
or broader?

Thanks in advance!

This is almost certainly not related to the library. The library is passing along the header fine so there has to be something else going on. I suggest you contact our API support team here: https://groups.google.com/forum/#!forum/adwords-api


table.header should have an align field

Description
table(
  columns: 3,
  table.header(
    align: (left, center, center),
    [*№*],
    [*Date*],
    [*Description*]
  ),
  align_rows: (center, left, left),
  [1], [2024-03-18], [Just a test]
)

It would probably be better to have a dedicated align_rows field to avoid an extra if row != 0 { … } in the normal align field
Use Case

Define alignment at the same position they create the header for better readable code.
No more extra if row == 0 { … } necessary

You can use the table.cell function for this:
#table(
  columns: 3,
  align: (center, left, left),
  table.header(
    table.cell(align: left)[*№*],
    table.cell(align: center)[*Date*],
    table.cell(align: center)[*Description*]
  ),
  [1], [2024-03-18], [Just a test]
)

I think I'd prefer getting https://github.com/typst/typst/issues/3640 to work first before attempting this, as it'd be logical to add all other table cell fields if we add just align, and I'm not sure if it would generalize too well. In particular, stroke would be a tough one to tackle.


Inferring field type

The title of this ticket is perhaps not the best.
What I'm suggesting is some mechanism to the Xandra.execute/3 call which the array of type/value tuples, could be, if an argument is not a tuple, inferred as to what type the field should be? For instance, if we assume that there's a table like:
CREATE TABLE app.requests (
    request_id text PRIMARY KEY,
    identifier text,
    type text,
    date date
)

And we insert a new record like this:
stmt = "INSERT INTO app.requests (request_id, identifier, type, date) VALUES(?, ?, ?, ?);"
date = Kernel.trunc(DateTime.to_unix(DateTime.utc_now()) / 86400) + Kernel.trunc(:math(2, 31))
Xandra.execute(conn, stmt, [{"text", req_id}, "foo", "thing", {"date", date}])

Is it not possible to infer that "foo" and "thing" are in fact, binaries, and therefore text?

There are 2 reliable ways to get inferring:

use prepared queries (available today)
build type server (we consider adding it after automatic node discovery)

@jeremytregunna I'm wondering if, for some reason, you don't use prepared queries?

@lexmag We do a lot of one-offs, so prepared queries don't buy us much. That said, this is good to know, I can give it a go.

@jeremytregunna of course it depend on the exact statements you use, but using prepared queries even for one-offs should be fine: https://hexdocs.pm/xandra/Xandra.html#prepare/3-prepared-queries-cache.

@lexmag This works just fine for our use cases, considering this closed then. Feel free to reopen, but I'm satisfied.


Add links to more examples of custom rules.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (9d6963c) 75.39% compared to head (320917e) 93.30%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1183       +/-   ##
===========================================
+ Coverage   75.39%   93.30%   +17.90%
===========================================
  Files          35        7       -28
  Lines        9788      239     -9549
===========================================
- Hits         7380      223     -7157
+ Misses       2408       16     -2392

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Linting to add docstrings.

Docstrings added to modules and public functions.
Docstrings ignored for init.py files and test files.

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#188  👈
#187
master

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @chrisaddy and the rest of your teammates on  Graphite


Graphical prediction results

Thanks for sharing your code!
============================================================
When I tried to graph the results, use "visualize_test_img" function
found that the predicted radar point is not on the ConfMap of the object,
but always appears at the bottom right.
As shown in the figure below

Thanks for sharing your code!
============================================================ When I tried to graph the results, use "visualize_test_img" function found that the predicted radar point is not on the ConfMap of the object, but always appears at the bottom right.
As shown in the figure below

Hi,
We have updated our code and addressed this bug. You can try it again. We are sorry for our late response. We didn't see your question first.
Best wish,
Long Zhuang.


Added argument-documentation to rustup-init.sh

fixes: https://github.com/rust-lang-nursery/rustup.rs/issues/652

:pushpin: Commit b1a1ff5 has been approved by brson

@bors r+ Thank you so much!!!

:hourglass: Testing commit b1a1ff5 with merge a7bbf77...

:broken_heart: Test failed - status-appveyor

@bors retry

:hourglass: Testing commit b1a1ff5 with merge a66817c...

:broken_heart: Test failed - status-appveyor

@bors retry

:hourglass: Testing commit b1a1ff5 with merge 7d1de03...

:sunny: Test successful - status-appveyor, status-travis
Approved by: brson
Pushing 7d1de03f50c8c8890e10a68b7ac3398fe699a37c to master...


content issue

There seems to be a regression somewhere.
Code:
const className = css({
  '&::before': {
    content: 'initial',
  },
})

Before:

After:

fix live in 2.20.36


Add course (Build React.js from Scratch)

Adding a course

Hello @pkellz,
Unfortunately we no longer keep the courses page in the react.dev, nor maintain it in the legacy reactjs.org.
So I will close this PR as outdated.
Thank you!


Failing to start on LInux, latest-linux.yml missing

Checking for update
instance sftp deploy
Main process runing... /home/arthur/Documents/Gridea
(node:302853) ProtocolDeprecateCallback: The callback argument of protocol module APIs is no longer needed.
(node:302853) ProtocolDeprecateCallback: The callback argument of protocol module APIs is no longer needed.
Preview server is running on port : 4000
Error: Error: Cannot find latest-linux.yml in the latest release artifacts (https://github.com/getgridea/gridea/releases/download/v0.9.3/latest-linux.yml): HttpError: 404
"method: GET url: https://github.com/getgridea/gridea/releases/download/v0.9.3/latest-linux.yml\n\nPlease double check that your authentication token is correct. Due to security reasons actual status maybe not reported, but 404.\n"
Headers: {
  "status": "404",
  "server": "GitHub.com",
  "date": "Wed, 20 Sep 2023 11:42:31 GMT",
  "content-type": "text/plain; charset=utf-8",
  "vary": "X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, Accept-Encoding, Accept, X-Requested-With",
  "cache-control": "no-cache",
  "strict-transport-security": "max-age=31536000; includeSubdomains; preload",
  "x-frame-options": "deny",
  "x-content-type-options": "nosniff",
  "x-xss-protection": "0",
  "referrer-policy": "no-referrer-when-downgrade",
  "content-security-policy": "default-src 'none'; base-uri 'self'; connect-src 'self'; form-action 'self'; img-src 'self' data:; script-src 'self'; style-src 'unsafe-inline'",
  "content-encoding": "gzip",
  "content-length": "29",
  "x-github-request-id": "BF6A:7180:353BF5C:35F734A:650ADAA7"
}
    at d (/tmp/.mount_GrideaaEn0qX/resources/app/background.js:2:650716)
    at a.ElectronHttpExecutor.handleResponse (/tmp/.mount_GrideaaEn0qX/resources/app/background.js:2:652343)
    at ClientRequest.<anonymous> (/tmp/.mount_GrideaaEn0qX/resources/app/background.js:2:651812)
    at ClientRequest.emit (events.js:203:13)
    at ClientRequest.EventEmitter.emit (domain.js:476:20)
    at SimpleURLLoaderWrapper.<anonymous> (electron/js2c/browser_init.js:2569:12)
    at SimpleURLLoaderWrapper.emit (events.js:203:13)
    at SimpleURLLoaderWrapper.EventEmitter.emit (domain.js:476:20)
    at SimpleURLLoaderWrapper.topLevelDomainCallback (domain.js:131:23)
    at a.newError (/tmp/.mount_GrideaaEn0qX/resources/app/background.js:2:95740)
    at a.GitHubProvider.getLatestVersion (/tmp/.mount_GrideaaEn0qX/resources/app/background.js:2:822373)
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
Error: Cannot find latest-linux.yml in the latest release artifacts (https://github.com/getgridea/gridea/releases/download/v0.9.3/latest-linux.yml): HttpError: 404
"method: GET url: https://github.com/getgridea/gridea/releases/download/v0.9.3/latest-linux.yml\n\nPlease double check that your authentication token is correct. Due to security reasons actual status maybe not reported, but 404.\n"
Headers: {
  "status": "404",
  "server": "GitHub.com",
  "date": "Wed, 20 Sep 2023 11:42:31 GMT",
  "content-type": "text/plain; charset=utf-8",
  "vary": "X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, Accept-Encoding, Accept, X-Requested-With",
  "cache-control": "no-cache",
  "strict-transport-security": "max-age=31536000; includeSubdomains; preload",
  "x-frame-options": "deny",
  "x-content-type-options": "nosniff",
  "x-xss-protection": "0",
  "referrer-policy": "no-referrer-when-downgrade",
  "content-security-policy": "default-src 'none'; base-uri 'self'; connect-src 'self'; form-action 'self'; img-src 'self' data:; script-src 'self'; style-src 'unsafe-inline'",
  "content-encoding": "gzip",
  "content-length": "29",
  "x-github-request-id": "BF6A:7180:353BF5C:35F734A:650ADAA7"
}
    at d (/tmp/.mount_GrideaaEn0qX/resources/app/background.js:2:650716)
    at a.ElectronHttpExecutor.handleResponse (/tmp/.mount_GrideaaEn0qX/resources/app/background.js:2:652343)
    at ClientRequest.<anonymous> (/tmp/.mount_GrideaaEn0qX/resources/app/background.js:2:651812)
    at ClientRequest.emit (events.js:203:13)
    at ClientRequest.EventEmitter.emit (domain.js:476:20)
    at SimpleURLLoaderWrapper.<anonymous> (electron/js2c/browser_init.js:2569:12)
    at SimpleURLLoaderWrapper.emit (events.js:203:13)
    at SimpleURLLoaderWrapper.EventEmitter.emit (domain.js:476:20)
    at SimpleURLLoaderWrapper.topLevelDomainCallback (domain.js:131:23)
    at a.newError (/tmp/.mount_GrideaaEn0qX/resources/app/background.js:2:95740)
    at a.GitHubProvider.getLatestVersion (/tmp/.mount_GrideaaEn0qX/resources/app/background.js:2:822373)
[302853:0920/134232.264769:FATAL:gpu_data_manager_impl_private.cc(986)] The display compositor is frequently crashing. Goodbye.
Failed to generate minidump.fish: Job 1, '~/Downloads/Gridea-0.9.3.AppIma…' terminated by signal SIGILL (Illegal instruction)

(sorry, I don't speak chinese so I can't follow the template)

Starting with --no-sandbox works, but I guess the missing latest-linux.yml in the Releases is still a problem.


Please, release the last tags into cocoapods!

We have libraries (using podspec) that depend you and we can't run codes in swift3. We depend the tag 4.0.0.

Have you tried using pod 'SwiftValidator', :git => 'https://github.com/jpotts18/SwiftValidator.git', :branch => 'master'?

Yes, but it do not solve the problem. I use a library that have the dependency s.dependency 'SwiftValidator' and when I run pod install, cocoapods always downloads the version 3.0.3 (that is the last on the cocoapods spec).

OBS.: My code is in Swift3.

So what is it that you're asking me? To create a new tag that mirrors master, which is written in Swift3? Because I definitely can't change tag 4.0.0 to be compatible with Swift3.

No, I am asking to release the tag 4.x into cocoapods. You have a lot of releases after 3.0.3, but the last cocoapods release is the 3.0.3.
I've tried to force cocoapods to download the branch master in my Podfile (pod 'SwiftValidator', :git => 'https://github.com/jpotts18/SwiftValidator.git', :branch => 'master'), but other dependences that depend you make cocoapods download the version 3.0.3 (that is the last in cocoapods).

Please do it, I have the same problem. I'm using SwiftValidator as pod lib where I cannot set branch, only tag version as you can see here https://guides.cocoapods.org/syntax/podspec.html#dependency

I'm not going to lie this project took off and I'm pretty overwhelmed by it. I no longer actively code in Swift and I need help from more contributors in order to keep this project relevant. I'd like to find someone to transition as lead maintainer or help this codebase find a happy home with a company.
The codebase for this project is relatively small and focused project for who is looking to contribute. It does one thing, and does it pretty well. It has pretty high test coverage and good adoption. I think my ideal maintainer / contributor would work for a company that actively uses SwiftValidator in their production application.
If you're interested in helping out please comment on #204


Add return on final interactive module

Return to Tutorials landing page on final Kubernetes Basics module completion.

/assign @bradtopol

👋 We've migrated the site's framework to Hugo. Please re-open this PR with changes to files in their post-migration location (/content/en/docs/...) and reference this PR in the new PR's description.


What are the FLOPs of your segmentation model in the semantic segmentation task on the s3dis dataset?

What are the FLOPs of your segmentation model in the semantic segmentation task on the s3dis dataset?

I never measured the FLOPS of my models, but I think there are tools to do it with Tensorflow, or even in the PyTorch version if you want to.
You have to notice though that the FLOPS depend on a lot of the parameters, including the architecture, the first_subsampling_dl, the convolution density parameters, the number of kernel points, etc... As explained in the paper, our design is very flexible in that sense.
Best,
Hugues


AppMenuButton's buildMenuItems method should recurse over children configs

Right now if you want to add a submenu you have to add the children as menuItem() or menuDivider(), rather that as configs to build them, as with top level items.

Should be address simultaneously with #2394


[BEAM-7916] - Change ElasticsearchIO query parameter to be a ValueProvider

We need to be able to perform Elasticsearch queries that are dynamic. The problem is ElasticsearchIO.read().withQuery() only accepts a string which means the query must be known when the pipleline/Google Dataflow Template is built.
This change changes the withQuery() parameter from String to ValueProvider<String>.
R: @jbonofre
R: @echauchot

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[x] @jbonofre, @echauchot
[x] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.

For info: @jbonofre and @echauchot are not available this week, you might want to find an alternate reviewer.
For what it's worth, LGTM but I would highly recommend the suggested change for compatibility.

Thanks @RyanSkraba.
The only other person in the OWNERS file is @timrobertson100. Is that ok? How would I go about trying to find another reviewer?

R: @aromanenko-dev

Hi @aromanenko-dev,
Thanks for merging this! I just realized that it's been merged into 2.14.0 which has already been released. Will that make it into the next version? What is the next version? On the Jira it says 2.16.0.

@oliverhenlich Yes, my bad, I didn't pay an attention that this PR was against release-2.14.0 branch instead of master. I'll revert this commit (since release 2.14 is already done) and could you create another PR against master branch?

Hi @aromanenko-dev, sorry for the delay! Just got back to this. It looks like you've already taken care of this with PR: https://github.com/apache/beam/pull/9305 and https://github.com/apache/beam/pull/9314. Do I still need to do something?
What version would this fix then appear in 2.15?
PS: I noticed the last PR https://github.com/apache/beam/pull/9314 is failing but I don't think it has anything to do with my change.

Hi @oliverhenlich, yes, I reverted commit in release-2.14.0 and created new PR against master (I cherry-picked your commit, so your credits should be kept). So, I think there is nothing to do for now from your side. This fix will appear in 2.16 since 2.15 branch was already cut 2 weeks ago.
PS:  Yes, you are right, it was not related to your changes, thanks to @RyanSkraba to rerun and it's ok now.


ND4J/DL4J: Deprecate L1/L2/L3 BLAS methods; update Nd4j.gemm to use op not direct BLAS calls

Why: https://github.com/eclipse/deeplearning4j/issues/8734#issuecomment-601565911
We should also check for any direct BLAS calls in DL4J/ND4J and switch them over to the op.
Needs: https://github.com/eclipse/deeplearning4j/issues/8797

Note we have Nd4j.gemm calls in BaseLayer, ConvolutionLayer, LSTM, etc.
Any/all of these can cause problems in heavily multi-threaded environments on CUDA.

There's a bit more than GEMM to BLAS/LAPACK/MKL...

Yep, we're aware :)
GEMM threading issues are a problem right now though.
The plan is to have proper op coverage for (most of - ideally all of) BLAS/LAPACK in the namespaces, where applicable using external libraries in libnd4j for the actual implementation. That way it can be used in both ND4J and SameDiff (usually with a nicer API), will be properly documented and findable in autogen docs, etc.

And data types... We support f16/bf16, and for BLAS it's not that simple: regular BLAS doesn't support anything besides f32/f64. cuBLAS supports f16. MKLDNN supports int/bf16 etc. So we'll be centralizing all this stuff in 1 place. Java will be getting valid results no matter what backend is used.


Remove and Deactivate environment

I have added :

id_of_env get if of env form is name
deactivate and remove environments
remove service

is this project still alive?

Alive but I did not get a lot of time lately to look at these merge requests. Should be able to give it a go in the next couple of days.

Thanks a lot for the contrib!
:ice_cream:


perform validation of instance config

Oh I see now, we actually do this later on in createExtensionInstance. Hmm maybe I should just add to that thing the extra check whether it got unexpected config etc 🤔


Update datasketches-memory 2.0.0

Uses new datasketches memory 2.0.0 which has added support for Java9 - 13.

"Coveralls API failed with HTTP status 405: Not Allowed (Response doesn't contain Content-Type header)"
Hmm. What is this about?  I haven't seen this one before.

Retried running the tests. Still fails.

Coveralls is down for maintenance.  Perhaps that is the problem.

In addition to the coveralls failure - I've noticed that the matrix tests have been failing intermittently lately both here and in datasketches-memory.  The issue seems to be related to an aggressive timeout setting on downloading the super pom.  I'd like to investigate extending the timeout setting in the GH actions to make the tests more reliable.

Coveralls site is back up, but this job still fails with error 405 (Not allowed).

@leerho the checks have now passed successfully - I think that the issues were related to the coveralls maintenance.
As for the other transient issue that I mentioned with the super pom, I will have to keep an eye out for any failures and potentially increase HTTP timeouts via maven arguments.  My preference is to monitor the situation instead of adding complexity to the GH actions build.

Agreed.
On Tue, Sep 21, 2021 at 9:23 AM David Cromberge @.***>
wrote:

@leerho https://github.com/leerho the checks have now passed
successfully - I think that the issues were related to the coveralls
maintenance.
As for the other transient issue that I mentioned with the super pom, I
will have to keep an eye out for any failures and potentially increase HTTP
timeouts via maven arguments. My preference is to monitor the situation
instead of adding complexity to the GH actions build.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/apache/datasketches-java/pull/363#issuecomment-924147939,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADCXRQXS6YZ6KYUPRRXZJM3UDCWPJANCNFSM5EJOONSA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.


Copy the gradient to the new context when as_in_context() is called

Description
Hi! there.
Fixed: https://github.com/apache/incubator-mxnet/issues/14391
Now, ndarray.as_in_context() copies the gradient to the new context.
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.

[ ] The PR title starts with [MXNET-$JIRA_ID], where $JIRA_ID refers to the relevant JIRA issue created (except PRs with tiny changes)
[ ] Changes are complete (i.e. I finished coding on this PR)
[ ] All changes have test coverage:
Unit tests are added for small changes to verify correctness (e.g. adding a new operator)
Nightly tests are added for complicated/long-running ones (e.g. changing distributed kvstore)
Build tests will be added for build configuration changes (e.g. adding a new build option with NCCL)
[ ] Code is well-documented:
For user-facing API changes, API doc string has been updated.
For new C++ functions in header files, their functionalities and arguments are documented.
For new examples, README.md is added to explain the what the example does, the source of the dataset, expected performance on test set and reference to the original paper if applicable
Check the API doc at http://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-$PR_ID/$BUILD_ID/index.html
[ ] To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

Changes

[x] Add a new arguments copy_grad in mx.nd.as_in_context and mx.nd.copyto
[x] Add unit-test in test_ndarray.py

Comments

If this change is a backward incompatible change, why must this change be made.
Interesting edge cases to note here

@szha There is a discussion about whether to copy the gradient automatically.
https://github.com/apache/incubator-mxnet/issues/14391


update packages

:x: Build TheIdServer 8.3.0-fix-dependencies.1+30.build.3927 failed (commit https://github.com/Aguafrommars/TheIdServer/commit/4c1121553d by @invalid-email-address)

:x: Build TheIdServer 8.3.0-fix-dependencies.1+30.build.3928 failed (commit https://github.com/Aguafrommars/TheIdServer/commit/4c1121553d by @invalid-email-address)

:x: Build TheIdServer 8.3.0-fix-dependencies.1+31.build.3929 failed (commit https://github.com/Aguafrommars/TheIdServer/commit/02b1084225 by @aguacongas)

:x: Build TheIdServer 8.3.0-fix-dependencies.1+32.build.3930 failed (commit https://github.com/Aguafrommars/TheIdServer/commit/494d12380e by @invalid-email-address)

:x: Build TheIdServer 8.3.0-fix-dependencies.1+33.build.3931 failed (commit https://github.com/Aguafrommars/TheIdServer/commit/7049826844 by @invalid-email-address)

:x: Build TheIdServer 8.3.0-fix-dependencies.1+35.build.3932 failed (commit https://github.com/Aguafrommars/TheIdServer/commit/fa285b0d12 by @aguacongas)

:x: Build TheIdServer 8.3.0-fix-dependencies.1+35.build.3933 failed (commit https://github.com/Aguafrommars/TheIdServer/commit/fa285b0d12 by @aguacongas)

:white_check_mark: Build TheIdServer 8.3.0-fix-dependencies.1+35.build.3934 completed (commit https://github.com/Aguafrommars/TheIdServer/commit/fa285b0d12 by @aguacongas)


Does not persist fabricated has_many association?

I'm running into an issue trying to define a fabrication which has a has_many association. I'm using Fabrication version 2.11.3 and Mongoid 3.1.6.
class Product
  include Mongoid::Document
  has_many :images, class_name: 'Product::Image', inverse_of: :product, dependent: :destroy
  # ...lots of other stuff
end

class Product::Image
  include Mongoid::Document
  belongs_to :product, inverse_of: :images, index: true
  # ...lots of other stuff
end

Fabricator :product_with_images, from: :product do
  images count: 3, fabricator: :product_image
end

product = Fabricate(:product_with_images)
product.persisted? # true
product.images.length # 3
product.images.count # 0
product.images.first.persisted? # false
product.images.first.valid? # true

I'm not sure why this isn't working. Is it a bug?

If I avoid using the Fabricator, I am able to create the associations manually:
subject { Fabricate(:product) }
before do
  3.times { subject.images << Fabricate.build(:product_image) }
end

Can you post the definition of the product_image fabricator?

@paulelliott Oops. Thought I did. I just updated my original post to include the product_image fabricator.

Pull product out of the product_image fabricator and see if that fixes it for you.
Fabricator :product_image, class_name: 'Product::Image' do
  caption 'some caption'
  position { sequence(:position){|i| i} }
end

If I remove product, then I won't be able to Fabricate(:product_image) correctly. It will be missing the parent product that it belongs to.

It is very unusual to create an embedded document with mongoid without supplying the parent document. I've found in mongoid projects I've worked on in the past that we are always manually creating from the top down, so setting up references like that are typically unnecessary.
If you need to generate them that way, however, you could make an additional fabricator to facilitate that. Maybe something like this:
Fabricator :embeddable_product_image, from: :product_image do
  product nil
end

This is not an embedded document. It's just a simple has_many/belongs_to relationship. I don't think that it's uncommon to define a factory/fabricator which specifies a default association. When I'm testing my Product::Image, I don't care about the details of the Product that it's associated with. So a fabricator like this works perfectly fine:
Fabricator :product_image, class_name: 'Product::Image' do
  product
  caption 'some caption'
  position { sequence(:position){|i| i} }
end

Is it possible that this definition does not work because it does not know to pass itself as the parent?
Fabricator :product_with_images, from: :product do
  images count: 3, fabricator: :product_image
end

Under the hood it generates an array of the related objects and sets it. What is happening here is it is creating extra parents and mongoid is getting confused about what to do.
You could alternatively rewrite your :product_with_images fabricator like this:
Fabricator :product_with_images, from: :product do
  images(count: 3) { Fabricate(:product_image, product: nil) }
end


[Bug] the dependencies in interaction should be renamed to dependency

Version
0.9.0
Link to Minimal Reproduction
no need
Steps to Reproduce
No response
Current Behavior
no need
Expected Behavior
no need
Environment
- OS:
- Browser:
- Framework:

Any additional comments?
No response

fixed in v0.10.0


[PROF-9226] Add test for Ruby profiler when extension dir is moved and a relative rpath is needed

What does this PR do?
This PR adds a new test case that validates that https://github.com/DataDog/dd-trace-rb/pull/3582 and https://github.com/DataDog/dd-trace-rb/pull/3683 keep working fine.
Motivation:
As described in https://github.com/DataDog/dd-trace-rb/pull/3683, this a somewhat annoying thing to test, but important to avoid regressing.
Additional Notes:
You can actually see the evolution of both of those fixes in this test.
E.g. here's dd-trace-rb 1.21.0 (prior to https://github.com/DataDog/dd-trace-rb/pull/3582 ):

W, [2024-06-12T09:34:08.759519 #7]  WARN -- ddtrace: [ddtrace] (/app/vendor-moved/bundle/ruby/3.3.0/gems/ddtrace-1.21.1/lib/datadog/core/configuration/components.rb:115:in startup!') Profiling was requested but is not supported, profiling disabled: There was an error loading the profiling native extension due to 'RuntimeError Failure to load datadog_profiling_native_extension.3.3.2_x86_64-linux due to /app/vendor-moved/bundle/ruby/3.3.0/gems/ddtrace-1.21.1/lib/datadog/profiling/../../datadog_profiling_native_extension.3.3.2_x86_64-linux.so: cannot open shared object file: No such file or directory' at '/app/vendor-moved/bundle/ruby/3.3.0/gems/ddtrace-1.21.1/lib/datadog/profiling/load_native_extension.rb:26:in <top (required)>''
--- FAIL: TestScenarios/scenarios/ruby_extension_dir_and_rpath (14.86s)

in this version, we failed because we couldn't load the native extension.
Then here's dd-trace-rb 1.23.1 (without https://github.com/DataDog/dd-trace-rb/pull/3683 ) and if we don't move the vendor folder (but still delete the so from the lib folder):

--- PASS: TestScenarios/scenarios/ruby_extension_dir_and_rpath (18.96s)

...but if we additionally move the vendor folder (aka what this PR does in the Dockerfile):

W, [2024-06-12T09:37:33.517188 #6]  WARN -- ddtrace: [ddtrace] (/app/vendor-moved/bundle/ruby/3.3.0/gems/ddtrace-1.23.1/lib/datadog/core/configuration/components.rb:116:in startup!') Profiling was requested but is not supported, profiling disabled: There was an error loading the profiling native extension due to 'RuntimeError Failure to load datadog_profiling_native_extension.3.3.2_x86_64-linux due to libdatadog_profiling.so: cannot open shared object file: No such file or directory' at '/app/vendor-moved/bundle/ruby/3.3.0/gems/ddtrace-1.23.1/lib/datadog/profiling/load_native_extension.rb:39:in <top (required)>''
--- FAIL: TestScenarios/scenarios/ruby_extension_dir_and_rpath (3.25s)

Notice it fails BUT the error is now different from the one above -- the error is relating to loading libdatadog_profiling.so, not datadog_profiling_native_extension.3.3.2_x86_64-linux.so.
And with the change in https://github.com/DataDog/dd-trace-rb/pull/3683 (which will be in 1.23.2 / 2.2.0):

--- PASS: TestScenarios/scenarios/ruby_extension_dir_and_rpath (9.60s)

NOTE: For this test, unlike other Ruby tests we have, we're pulling in the latest released gem version (e.g. with gem 'datadog' on the gems.rb file), not the latest from git (as we do for other Ruby tests).
This is because gems get installed in different paths when bundler downloads them directly from git, and we want to validate the path when a stable version is installed.
This also means that this PR will show up as failed until the latest datadog release (which will be 2.2.0) gets released. (Or 1.23.2, but I left the test setup to test the latest 2.x releases, not the 1.x ones, although I used 1.x on my tests above to show the evolution of the issue).

I'll wait until release 2.2.0 goes out with the fix to merge this, which may take a bit longer because of the DASH freeze.

As I was preparing to merge https://github.com/DataDog/prof-correctness/pull/39 I noticed that CI had not failed for Ruby prior to version 2.2.0 of the Ruby library being released.
(Specifically: it had failed, but not for Ruby, which is why I had not spotted it before).
The whole point of this test was that it was supposed to be failing prior to 2.2.0 being released.
Under closer examination, what happened was that I had tested with the 1.x branch prior to opening the PR (and all my examples in the PR description are from 1.x), and of course I missed that the test setup was not correct for triggering the issue on 2.x due to the library getting renamed.
I've now fixed this, confirmed it's broken with versions < 2.2.0 of the Ruby library, and confirmed it passes for the right reason on >= 2.2.0.
This PR is thus ready to be re-reviewed/merged :)