Multiple ErrImagePull for flux components in v0.1.0

Describe the bug
$ wego gitops install fails with multiple ErrImagePull
Environment

wego: v0.1.0
kubernetes:  1.21.2

[x] k3s - 1.21.2

Affects versions

v0.1.0

To Reproduce
Steps to reproduce the behavior:

install wego
Run $ wego gitops install
See error

Config and Logs
If applicable, add logs to help explain your problem. please compress the output before attaching

[x] wego cli call output (and parameters)

$ wego gitops install
✚ generating manifests
✔ manifests build completed
► installing components in wego-system namespace
◎ verifying installation
✗ image-automation-controller: deployment not ready
✗ source-controller: deployment not ready
✗ kustomize-controller: deployment not ready
✗ helm-controller: deployment not ready
✗ notification-controller: deployment not ready
✗ image-reflector-controller: deployment not ready
✗ install failed
Error: error on flux install failed to run flux binary: failed to run flux with output: ✚ generating manifests
✔ manifests build completed
► installing components in wego-system namespace
◎ verifying installation
✗ image-automation-controller: deployment not ready
✗ source-controller: deployment not ready
✗ kustomize-controller: deployment not ready
✗ helm-controller: deployment not ready
✗ notification-controller: deployment not ready
✗ image-reflector-controller: deployment not ready
✗ install failed

[x] wego-controller logs
Looks like there is no any:

$ kubectl get po -n wego-system
NAME                                          READY   STATUS             RESTARTS   AGE
notification-controller-68587c754d-lz6xp      1/1     Running            1          12m
kustomize-controller-788586dcc6-kgd9k         1/1     Running            0          12m
source-controller-f4786d9f-h2p69              0/1     CrashLoopBackOff   5          12m
image-reflector-controller-9f6765c67-8jjht    0/1     CrashLoopBackOff   7          12m
helm-controller-864d76f747-vxvtj              0/1     CrashLoopBackOff   7          12m
image-automation-controller-c57fbfd8c-twr8z   0/1     CrashLoopBackOff   7          12m

[x] Events from wego-* namespaces

11m         Warning   Failed              pod/notification-controller-68587c754d-lz6xp            Error: ErrImagePull
11m         Warning   Failed              pod/helm-controller-864d76f747-vxvtj                    Error: ErrImagePull
10m         Warning   Failed              pod/source-controller-f4786d9f-h2p69                    Error: ErrImagePull
9m46s       Warning   Failed              pod/kustomize-controller-788586dcc6-kgd9k               Error: ErrImagePull

@Bregor Could you do a kubectl describe pod -n wego-system kustomize-controller-788586dcc6-kgd9k and post the output here?

@jpellizzari looks like it was pulled finally :)
$ kubectl describe pod -n wego-system kustomize-controller-788586dcc6-kgd9k
Name:         kustomize-controller-788586dcc6-kgd9k
Namespace:    wego-system
Priority:     0
Node:         k3s-instance-rc/<IP_ADDRESS>
Start Time:   Wed, 30 Jun 2021 18:36:38 +0300
Labels:       app=kustomize-controller
              pod-template-hash=788586dcc6
Annotations:  prometheus.io/port: 8080
              prometheus.io/scrape: true
Status:       Running
IP:           <IP_ADDRESS>
IPs:
  IP:           <IP_ADDRESS>
Controlled By:  ReplicaSet/kustomize-controller-788586dcc6
Containers:
  manager:
    Container ID:  containerd://4dad599649bb07dd499a6a95e0b21f8342f9799a24d8fa780adc6a4e5b111f77
    Image:         ghcr.io/fluxcd/kustomize-controller:v0.12.0
    Image ID:      ghcr.io/fluxcd/kustomize-controller@sha256:cc496be30f1c749426efa648b38f4f7b4bf92c7fe087e4a96bb64dd9c0867607
    Ports:         9440/TCP, 8080/TCP
    Host Ports:    0/TCP, 0/TCP
    Args:
      --events-addr=http://notification-controller/
      --watch-all-namespaces=true
      --log-level=info
      --log-encoding=json
      --enable-leader-election
    State:          Running
      Started:      Wed, 30 Jun 2021 18:42:58 +0300
    Ready:          True
    Restart Count:  0
    Limits:
      cpu:     1
      memory:  1Gi
    Requests:
      cpu:      100m
      memory:   64Mi
    Liveness:   http-get http://:healthz/healthz delay=0s timeout=1s period=10s #success=1 #failure=3
    Readiness:  http-get http://:healthz/readyz delay=0s timeout=1s period=10s #success=1 #failure=3
    Environment:
      RUNTIME_NAMESPACE:  wego-system (v1:metadata.namespace)
    Mounts:
      /tmp from temp (rw)
      /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-k7pn8 (ro)
Conditions:
  Type              Status
  Initialized       True
  Ready             True
  ContainersReady   True
  PodScheduled      True
Volumes:
  temp:
    Type:       EmptyDir (a temporary directory that shares a pod's lifetime)
    Medium:
    SizeLimit:  <unset>
  kube-api-access-k7pn8:
    Type:                    Projected (a volume that contains injected data from multiple sources)
    TokenExpirationSeconds:  3607
    ConfigMapName:           kube-root-ca.crt
    ConfigMapOptional:       <nil>
    DownwardAPI:             true
QoS Class:                   Burstable
Node-Selectors:              kubernetes.io/os=linux
Tolerations:                 node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
                             node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
  Type     Reason     Age                From               Message
  ----     ------     ----               ----               -------
  Normal   Scheduled  29m                default-scheduler  Successfully assigned wego-system/kustomize-controller-788586dcc6-kgd9k to k3s-instance-rc
  Warning  Failed     27m                kubelet            Failed to pull image "ghcr.io/fluxcd/kustomize-controller:v0.12.0": rpc error: code = Unknown desc = failed to pull and unpack image "ghcr.io/fluxcd/kustomize-controller:v0.12.0": failed to copy: read tcp <IP_ADDRESS>:59326-><IP_ADDRESS>:443: read: connection reset by peer
  Warning  Failed     26m                kubelet            Failed to pull image "ghcr.io/fluxcd/kustomize-controller:v0.12.0": rpc error: code = Unknown desc = failed to pull and unpack image "ghcr.io/fluxcd/kustomize-controller:v0.12.0": failed to copy: httpReaderSeeker: failed open: failed to authorize: failed to fetch anonymous token: Get "https://ghcr.io/token?scope=repository%3Afluxcd%2Fkustomize-controller%3Apull&service=ghcr.io": dial tcp: lookup ghcr.io: Try again
  Warning  Failed     26m                kubelet            Failed to pull image "ghcr.io/fluxcd/kustomize-controller:v0.12.0": rpc error: code = Unknown desc = failed to pull and unpack image "ghcr.io/fluxcd/kustomize-controller:v0.12.0": failed to copy: httpReaderSeeker: failed open: failed to do request: Get "https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:8b66372b486b946c57e1011255650f4c7b4bc807bce093b6c3b894e0b1232368?se=2021-06-30T15%3A50%3A00Z&sig=5LDlsjIgC8OMnVdZ%2BVIlX22iADD111NgoEicgmorYLo%3D&sp=r&spr=https&sr=b&sv=2019-12-12": dial tcp: lookup pkg-containers.githubusercontent.com: Try again
  Warning  Failed     26m (x3 over 27m)  kubelet            Error: ErrImagePull
  Normal   BackOff    25m (x4 over 27m)  kubelet            Back-off pulling image "ghcr.io/fluxcd/kustomize-controller:v0.12.0"
  Warning  Failed     25m (x4 over 27m)  kubelet            Error: ImagePullBackOff
  Normal   Pulling    25m (x4 over 29m)  kubelet            Pulling image "ghcr.io/fluxcd/kustomize-controller:v0.12.0"
  Normal   Pulled     23m                kubelet            Successfully pulled image "ghcr.io/fluxcd/kustomize-controller:v0.12.0" in 1m49.977564425s
  Normal   Created    23m                kubelet            Created container manager
  Normal   Started    23m                kubelet            Started container manager
  Warning  Unhealthy  23m                kubelet            Readiness probe failed: Get "http://<IP_ADDRESS>:9440/readyz": dial tcp <IP_ADDRESS>:9440: connect: connection refused

But still not working :(

Thanks for the info @Bregor .
Given this state:
Readiness probe failed: Get "http://<IP_ADDRESS>:9440/readyz": dial tcp <IP_ADDRESS>:9440: connect: connection refused
I'm thinking there may be a networking issue with the cluster. That would explain what looks to be a DNS issue on the image lookup.
Are you behind any type of proxy or firewall when making outbound requests?

Not sure. There is a single node k3s cluster in the GCP. So there IS some
firewall from Google for sure, but not on my side.
On Wed, Jun 30, 2021, 20:21 Jordan Pellizzari @.***>
wrote:

Thanks for the info @Bregor https://github.com/Bregor .
Given this state:
Readiness probe failed: Get "http://<IP_ADDRESS>:9440/readyz": dial tcp
<IP_ADDRESS>:9440: connect: connection refused
I'm thinking there may be a networking issue with the cluster. That would
explain what looks to be a DNS issue on the image lookup.
Are you behind any type of proxy or firewall when making outbound requests?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/weaveworks/weave-gitops/issues/417#issuecomment-871590570,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAAF2LA5JU2FHXEH43SLYTTVNHDPANCNFSM47SUCLUA
.

Aaaand got it!
Sorry for confusion, @jpellizzari, totally my fault.
I'm using k3s, which by default uses flannel for CNI, which in turn does not support NetworkPolicies.
wego gitops install has no option --network-policy=false like flux bootstrap, and of course I forgot to check this behaviour.
Anyway, after deleting NPCs from wego-system pods has stopped to crash.
Thank you for your time and sorry once again.

@Bregor No problem! Glad you got it working.


Rely on WADL for dynamic REST endpoint listing

This removes the http page that shows a static list of hard-coded REST
endpoints added in #2639 and #2649. Instead, this adds the missing
dependency to ensure the WADL endpoint at /rest/application.wadl is
generated properly, so that developers can get an accurate description
of not only the REST endpoint locations, but also their parameters and
return types. Furthermore, since this is using the WADL standards-based
approach, it will be more useful to web-developer tooling to help them
write web views using these endpoints.

Nice!

I know it's not exactly what you had before. You still have to parse the WADL output a bit if you want to construct a clickable URL. But, using a standards-based approach I think is better. And, this was already a built-in feature that is enabled by default, so we just had to make sure it was working.

As long as it works, LGTM.


normalize multi segments paths so that paths are split over multiple query params

Unlikely to be the proper solution 😓


Add awesome-lint

https://github.com/sindresorhus/awesome-lint
We may need to disable it at first bc it checks that the repo is 30 days old - but it caught a spelling error I didn't see so might be good at create a GH action for it even if it's not enforced.

Closing for now - not seeing the total value add.


[cht.sh] cert expired

Sun Sep 19 11:37:50 BST 2021
Hi,
Just letting you know the cert on cht.sh has expired at:

Sun, 19 Sep 2021 09:21:23 GMT

Regards,

Should be already fixed; please check

Sun Sep 19 17:59:35 BST 2021
@chubin - verified: both for cht.sh and cheat.sh
Cheers!


Migrate to kubebuilder 3.0

Kubebuilder 3.0 is released and we should migrate sooner rather than later.
There is a nice guide at https://book.kubebuilder.io/migration/v2vsv3.html where they highlight all the new features.

Fixed in https://github.com/Skyscanner/applicationset-progressive-sync/pull/139


Possible to modify the handle_asynchronously method to only work in production?

I want to use delayed_jobs only in production mode. I thought about doing something like this:
  def some_action_here
    puts "Some text here"
  end
  handle_production_asynchronously :some_action_here

Right now, I have something like this in an config/initializers file:
module Patch
  def handle_production_asynchronously(method, opts = {})
    Rails.env == "production" ? delay.method : method # Probably incorrect. What should I put here?
  end
end
Module.send(:include,Patch)

Do you know what I should place in the initializers in the line above to execute the methods correctly?

Delayed::Worker.delay_jobs = Rails.env.production? in an initializer.

Great! Thanks so very much :)


add travis support for basic linting

There were at least two syntax errors that should not have existed in a published pattern. A simple CI job that performs basic linting is usually a requirement for a code pattern.
This PR fixes the aforementioned syntax errors, adds travis support to call a linting job (flake8) and modifies the code base to be flake8 compliant (ignoring long lines), and py3 friendly

thanks @cclauss and @scottdangelo for the reviews


Update Network Security Group Flow log to version 2

Microsoft.Azure.Management.Fluent (1.33.0)
Is there any way to update flow logs for a network security group to version 2 using .net sdk?
IFlowLogSettings.Update().WithLogging();
IFlowLogSettings.Update().WithRetentionPolicyEnabled();
IFlowLogSettings.Update().WithRetentionPolicyDays();
IFlowLogSettings.Update().WithStorageAccount();

I've been able to update using the methods listed above, but i also need to update the flow logs to version 2 , this can be done in powershell, but in this case i need to do this using C#. However i wasn't able to find how to do it, it would be useful to have this option on the IFlowLogSettings

Hello Weidong @weidongxu-microsoft could you share your thoughts, thanks?

@mihymel
You can try this code, after IFlowLogSettings.Update().WithStorageAccount();
            settings.Inner.Format = new FlowLogFormatParameters()
            {
                Type = FlowLogFormatType.JSON,
                Version = 2
            };

and before IFlowLogSettings.Update().Apply();

I apologize for the late response , i was able to test this code and it works! thanks a lot.


Added loading mass and joint limits in URDF model importer.

I have added mass property in URDF and upper/lower revolute joint to Brax model importer.
Test updated accordingly.
I have not added the properties for inertia since the internal model config differs from the official one, being the official one a 3x3 matrix.
Inertia property in Body is as a Vector3, I guess changing it to a matrix 3x3 can break other parts of the engine, if this change should be made I would gladly take it.
https://github.com/google/brax/blob/7eaa16b4bf446b117b538dbe9c9401f97cf4afa2/brax/physics/config.proto#L24-L35

How would the other limit properties fit in the engine computations? I tried to look for effort and velocity.
I saw limit_strength but without being sure of the units it used I didn't want to break anything.
For the case of velocity I did not find any similar parameter in the back end, are joints speed limited?

Regarding joint types "universal" and "spherical" it was not clear to me how are they written in URDF, they are not official. I saw similar ones in Gazebo, SDF and MuJoCo. Due to this I left them as they were.

Hi @ManuCorrea ! Thanks for the PR, it looks good! FYI we'll be using mujoco's URDF loader going forward (see example here https://github.com/google/brax/blob/main/brax/v2/io/mjcf_test.py#L133-L136).


How to get hsa_agent_t and hsa_queue_t from hip device and stream?

There was a simple way to do this with hcc thanks to functions like accelerator_view::get_hsa_agent and accelerator_view::acquire_locked_hsa_queue. Is this possible with hip?

This is not possible anymore.

@misos1 Hi, is your issue resolved on the latest HIP? If so can we close this ticket?

@abhimeda I think this probably stayed in "not possible anymore" state (authors should know better than me).


Add method setjQuery to set the $ object used within Backbone

Fixes documentcloud/backbone#551

I've merged @braddunbar's patch which allows you to set the object Backbone uses by calling it $...


SszOptional as of EIP-6475

PR Description
https://eips.ethereum.org/EIPS/eip-6475
Tests fixtures were taken from EIP (slightly modified)
Prerequisite for Verkle trees implementation
Fixed Issue(s)

Documentation

[x] I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

[x] I thought about adding a changelog entry, and added one if I deemed necessary.

Also thought that SSzOptional might potentially be derived from the SszComposite, but I don't think its very important

Also thought that SSzOptional might potentially be derived from the SszComposite
Yeah, that was my first attempt to implement this, and I failed to complete it before my head explodes. Starting from the blank was more productive. Let's keep it as is.


Flare Pouch

https://cm-ss13.com/wiki/Marine_Equipment#Flare_Pouch

https://github.com/CM-14/CM-14/pull/762


Docs: fix install and git clone commands

Fixed cargo install commands in README to cargo install mesc_cli
Fixed git clone command in cli/README to git clone https://github.com/paradigmxyz/mesc

thanks


Uncaught TypeError: Cannot read property 'gotodefinitionPromise' of undefined

[Enter steps to reproduce below:]

Created a new atom window (File -> New Window)
Create a new file (File -> New File)
Press the 'Show Markdown Preview' shortcut (Ctrl-Shift-M)

Atom Version: 0.199.0
System: Microsoft Windows 10 Enterprise Insider Preview
Thrown From: omnisharp-atom package, v0.4.33
Stack Trace
Uncaught TypeError: Cannot read property 'gotodefinitionPromise' of undefined
At C:\Users\Igal\.atom\packages\omnisharp-atom\lib\omnisharp-atom\features\go-to-definition.ts:94

TypeError: Cannot read property 'gotodefinitionPromise' of undefined
  at GoToDefinition.underlineIfNavigable (C:\Users\Igal\.atom\packages\omnisharp-atom\lib\omnisharp-atom\features\go-to-definition.ts:94:20)
  at C:\Users\Igal\.atom\packages\omnisharp-atom\lib\omnisharp-atom\features\go-to-definition.ts:47:79

Commands
     -0:01.5.0 markdown-preview:toggle (atom-text-editor.editor.is-focused)

Config
{
  "core": {
    "themes": [
      "atom-dark-ui",
      "monokai"
    ]
  }
}

Installed Packages
# User
atom-yeoman, v0.2.0
autoclose-html, v0.16.0
browser-refresh, v0.8.3
git-plus, vundefined
language-spec, v0.1.0
linter, v0.12.2
monokai, v0.14.0
omnisharp-atom, v0.4.33
open-in-browser, vundefined
spec-maker, v0.4.0

# Dev
settings-view, v0.185.0

Should be fixed in v0.5.0. Please re-open if it isn't!


Improve consistency in functions across package (#72)

Renamed functions

get_alpha_diversity_measures to alpha_diversity_measures

Added functions

Added stacked_barplots, alpha_diversity_plots, ordination_plots
Added save_stacked_barplots, save_alpha_diversity_plots, save_ordination_plots

Deprecated functions

Removed save_barplot

Other

Updated vignettes.

Addresses #53 & #58.

There may be a number of things that need changing. Please feel free to comb through this, @grabear.

Something is causing the alpha diversity tests to fail. I'll check it later tonight. They're passing locally, but not travis.

Shaurita, this looks great! We are almost done!
The only thing that I would request is this minor change in parameter name, and the following examples in the analysis vignette.

Awesome! I'm going to check this out and update the parameters in the documentation.


webview_flutter has memory leak

I use webview_flutter plugin, I repeatedly enter and exit the WebViewExample page .The memory will grow all the time,
_WebViewExampleState Instance grow，WebViewAndroidPlatformController also

when i delete 【onProgress、navigationDelegate、onPageStarted、onPageFinished、onProgress、onWebViewCreated】，webview back to normal
please confirm what is the problem? thanks
about code，It is modified from the pub demo，
pubspec.yaml
i has try webview_flutter-2.8.0 and 3.0.0
...
dev_dependencies:
  flutter_test:
    sdk: flutter
  flutter_lints: ^1.0.0
  path_provider: 2.0.1
  webview_flutter: 3.0.0

dependency_overrides:
  webview_flutter_android: 2.8.1
  webview_flutter_platform_interface: 1.8.0
  webview_flutter_wkwebview: 2.7.1
...

main.dart
import 'package:flutter/material.dart';
import 'package:flutter_test_app/webview_page.dart';

void main() => runApp(const MaterialApp(home: HomePage()));

class HomePage extends StatelessWidget {
  const HomePage({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Test leak'),
      ),
      floatingActionButton: IconButton(
        icon: const Icon(Icons.add),
        onPressed: () {
          Navigator.push(
            context,
            MaterialPageRoute(builder: (_) => const WebViewExample()),
          );
        },
      ),
      body: Container(),
    );
  }
}

webview_page.dart
import 'dart:async';
import 'dart:io';

import 'package:flutter/material.dart';
import 'package:webview_flutter/webview_flutter.dart';

class WebViewExample extends StatefulWidget {
  const WebViewExample({Key key}) : super(key: key);

  @override
  _WebViewExampleState createState() => _WebViewExampleState();
}

class _WebViewExampleState extends State<WebViewExample> {
  final Completer<WebViewController> _controller =
      Completer<WebViewController>();

  @override
  void initState() {
    super.initState();
    if (Platform.isAndroid) {
      WebView.platform = SurfaceAndroidWebView();
    }
  }

  @override
  void dispose() {
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.green,
      appBar: AppBar(
        title: const Text('Flutter WebView example'),
      ),
      body: Builder(builder: (BuildContext context) {
        return WebView(
          initialUrl: 'https://flutter.cn',
          javascriptMode: JavascriptMode.unrestricted,
          onWebViewCreated: (WebViewController webViewController) {
            _controller.complete(webViewController);
          },
          onProgress: (int progress) {
            // ignore: avoid_print
            print('WebView is loading (progress : $progress%)');
          },
          javascriptChannels: <JavascriptChannel>{
            _toasterJavascriptChannel(context),
          },
          navigationDelegate: (NavigationRequest request) {
            if (request.url.startsWith('https://www.youtube.com/')) {
            // ignore: avoid_print
              print('blocking navigation to $request}');
              return NavigationDecision.prevent;
            }
            // ignore: avoid_print
            print('allowing navigation to $request');
            return NavigationDecision.navigate;
          },
          onPageStarted: (String url) {
            // ignore: avoid_print
            print('Page started loading: $url');
          },
          onPageFinished: (String url) {
            // ignore: avoid_print
            print('Page finished loading: $url');
          },
          gestureNavigationEnabled: true,
          backgroundColor: const Color(0x00000000),
        );
      }),
    );
  }

  JavascriptChannel _toasterJavascriptChannel(BuildContext context) {
    return JavascriptChannel(
        name: 'Toaster',
        onMessageReceived: (JavascriptMessage message) {
          // ignore: deprecated_member_use
          Scaffold.of(context).showSnackBar(
            SnackBar(content: Text(message.message)),
          );
        });
  }
}

flutter doctor -v

[√] Flutter (Channel stable, 2.5.1, on Microsoft Windows [Version 10.0.19041.208], locale zh-CN)
    • Flutter version 2.5.1 at D:\Dev\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ffb2ecea52 (4 months ago), 2021-09-17 15:26:33 -0400
    • Engine revision b3af521a05
    • Dart version 2.14.2
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\Administrator\AppData\Local\Android\sdk
    • Platform android-31, build-tools 30.0.3
    • Java binary at: D:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 4.1)
    • Android Studio at D:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] VS Code (version 1.63.2)
    • VS Code at C:\Users\Administrator\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.32.0

[√] Connected device (2 available)
    • sdk gphone x86 arm (mobile) • emulator-5554 • android-x86    • Android 11 (API 30) (emulator)
    • Chrome (web)                • chrome        • web-javascript • Google Chrome 97.0.4692.71

• No issues found!

Hi @Hulkye, Thanks for filing the issue. You are using an older version of futter stable 2.5.1, Can you please check, if the issue persists on the latest stable 2.8.1? If it does then, feel free to write back with the updated output of flutter doctor -v and I would love to take a look.

Hi,@maheshmnj ,thank for reply
flutter upgrade to 2.8.1，the problem still

[√] Flutter (Channel stable, 2.8.1, on Microsoft Windows [Version 10.0.19041.208], locale zh-CN)
    • Flutter version 2.8.1 at D:\Dev\fvm\default
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 77d935af4d (4 weeks ago), 2021-12-16 08:37:33 -0800
    • Engine revision 890a5fca2e
    • Dart version 2.15.1
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\Administrator\AppData\Local\Android\sdk
    • Platform android-31, build-tools 30.0.3
    • Java binary at: D:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 4.1)
    • Android Studio at D:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] VS Code (version 1.63.2)
    • VS Code at C:\Users\Administrator\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.32.0

[√] Connected device (3 available)
    • ELZ AN10 (mobile)           • AH8XVB1805000072 • android-arm64  • Android 11 (API 30)
    • sdk gphone x86 arm (mobile) • emulator-5554    • android-x86    • Android 11 (API 30) (emulator)
    • Chrome (web)                • chrome           • web-javascript • Google Chrome 97.0.4692.71

• No issues found!

Thanks for the info @Hulkye, I was able to reproduce the issue on the stable and the master channel. When running the app in profile mode after pushing and popping webview route, I still see 10 instances of _WebViewExampleState allocated.

code sample
import 'dart:async';
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:webview_flutter/webview_flutter.dart';

void main() => runApp(MaterialApp(home: HomePage()));

class HomePage extends StatelessWidget {
  const HomePage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Test leak'),
      ),
      floatingActionButton: IconButton(
        icon: const Icon(Icons.add),
        onPressed: () {
          Navigator.push(
            context,
            MaterialPageRoute(builder: (_) => WebViewExample()),
          );
        },
      ),
      body: Container(),
    );
  }
}

class WebViewExample extends StatefulWidget {
  const WebViewExample({Key? key}) : super(key: key);

  @override
  _WebViewExampleState createState() => _WebViewExampleState();
}

class _WebViewExampleState extends State<WebViewExample> {
  final Completer<WebViewController> _controller =
      Completer<WebViewController>();

  @override
  void initState() {
    super.initState();
    if (Platform.isAndroid) {
      WebView.platform = SurfaceAndroidWebView();
    }
  }

  @override
  void dispose() {
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.green,
      appBar: AppBar(
        title: const Text('Flutter WebView example'),
      ),
      body: Builder(builder: (BuildContext context) {
        return WebView(
          initialUrl: 'https://flutter.cn',
          javascriptMode: JavascriptMode.unrestricted,
          onWebViewCreated: (WebViewController webViewController) {
            _controller.complete(webViewController);
          },
          onProgress: (int progress) {
            // ignore: avoid_print
            print('WebView is loading (progress : $progress%)');
          },
          javascriptChannels: <JavascriptChannel>{
            _toasterJavascriptChannel(context),
          },
          navigationDelegate: (NavigationRequest request) {
            if (request.url.startsWith('https://www.youtube.com/')) {
              // ignore: avoid_print
              print('blocking navigation to $request}');
              return NavigationDecision.prevent;
            }
            // ignore: avoid_print
            print('allowing navigation to $request');
            return NavigationDecision.navigate;
          },
          onPageStarted: (String url) {
            // ignore: avoid_print
            print('Page started loading: $url');
          },
          onPageFinished: (String url) {
            // ignore: avoid_print
            print('Page finished loading: $url');
          },
          gestureNavigationEnabled: true,
          backgroundColor: const Color(0x00000000),
        );
      }),
    );
  }

  JavascriptChannel _toasterJavascriptChannel(BuildContext context) {
    return JavascriptChannel(
        name: 'Toaster',
        onMessageReceived: (JavascriptMessage message) {
          // ignore: deprecated_member_use
          Scaffold.of(context).showSnackBar(
            SnackBar(content: Text(message.message)),
          );
        });
  }
}

flutter doctor -v
[✓] Flutter (Channel stable, 2.8.1, on macOS 12.1 21C52 darwin-arm, locale en-GB)
    • Flutter version 2.8.1 at /Users/mahesh/Documents/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 77d935af4d (3 weeks ago), 2021-12-16 08:37:33 -0800
    • Engine revision 890a5fca2e
    • Dart version 2.15.1

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.10.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)

[✓] IntelliJ IDEA Community Edition (version 2021.2.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 60.1.4
    • Dart plugin version 212.5080.8

[✓] VS Code (version 1.63.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.32.0

[✓] Connected device (4 available)
    • Redmi K20 Pro (mobile)                     • android-arm64  • Android 11 (API 30)
    • iPhone 13 Pro (mobile) • 0FA2FB93-2A89-4FDB-8293-DF66188F1E54 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-15-0
      (simulator)
    • macOS (desktop)        • macos                                • darwin-arm64   • macOS 12.1 21C52 darwin-arm
    • Chrome (web)           • chrome                               • web-javascript • Google Chrome 96.0.4664.110

• No issues found!

[✓] Flutter (Channel master, 2.9.0-1.0.pre.328, on macOS 12.1 21C52 darwin-arm, locale en-GB)
    • Flutter version 2.9.0-1.0.pre.328 at /Users/mahesh/Documents/flutter_master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision d290763941 (2 days ago), 2022-01-11 18:20:14 -0800
    • Engine revision 643b2787f4
    • Dart version 2.16.0 (build 2.16.0-159.0.dev)
    • DevTools version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.10.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)

[✓] IntelliJ IDEA Community Edition (version 2021.2.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 60.1.4
    • Dart plugin version 212.5080.8

[✓] VS Code (version 1.63.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.32.0

[✓] Connected device (3 available)
    • Redmi K20 Pro (mobile) • <IP_ADDRESS>:5555 • android-arm64  • Android 11 (API 30)
    • macOS (desktop)        • macos            • darwin-arm64   • macOS 12.1 21C52 darwin-arm
    • Chrome (web)           • chrome           • web-javascript • Google Chrome 97.0.4692.71

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

Thanks for the info @Hulkye, I was able to reproduce the issue on the stable and the master channel. When running the app in profile mode after pushing and popping webview route, I still see 25 instances of _WebViewExampleState allocated.

code sample
flutter doctor -v

to expect the good news from you，thanks

@Hulkye Did you encounter any UI glitches with webview 3.0.0? For my app, the UI freezes once I pop the webview and rotate the device with code.

Same here. On 3.0.4 Also if you connect from the MacOS Safari developer tools, a lot of webviews are available. It should be only one. It's not disposed correctly

same as @woutervanwijk on ios webview instances are still available. navigating and popping a page with a webview will add more and more webview instances.

I also see multiple instances in Safari dev tools on 3.0.4, so I decided to create my own platform view using these instructions to see if I could solve the issue.
I noticed that webview_flutter code creates a uniquely named MethodChannel for each WebView instance so I did the same in my own platform view and at that point this caused the same memory leak.
The fix in my code is that when the dart side WebView is disposed by popping a page, to use the method channel to tell the native iOS code to set the channel MethodCallHandler to nil which unregisters the existing handler and allows the native web view to be deallocated.   I wonder if this fix would also fix 3.0.4?

I'm facing the webview issue too, if the iOS is busy with memory consume, then Webview will crash and become blank.

It still exists on 3.6.0-10.0, master channel.

Same here even on 4.0.1. It seems a new webview instance is being made every time we use it.

any update?

hard to believe this bug still exists！

@Hulkye  any update on this? anyone worked on this?

If the WebView plays music, how can we free it from memory and stop playing?
Anyone found some workarounds for the memory leak or other libraries?

@nikorehnback, Webview itself takes a lot of memory. and for ios it is very critical to handle long-running operations and UI. so it is not a good idea to have such features using web view, still if you are using it then you have to handle in a way that can avoid memory leaks using flutter keys where required.

The problem was that there was music playing in the WebView which was embedding Unity WebGL game and even though Widget got disposed, the music continued playing. Found a way to call unityInstance.Quit(); which seemed to be a workaround. Not sure though if the WebView remains alive due to this memory leak issue.


Fixes incorrect indentation in GnosisSafe.

This is a quality of life change since my editor chokes when trying to code fold indentation that is not consistent.
I believe I submitted an upstream PR for this as well.

Done in https://github.com/AugurProject/augur/pull/5502


Clean up code.

refactor code
remove repeated code
make simpler functons

hi, I was looking to write something like this, so i'm starting from your basis to make something similar, but applied to managing margin positions.
Are you interested in collaborating? basically my plan is:

implement all or most of the advanced order types on kraken, that now are disabled
implement some customized variants of those order types, for example a stop loss that can move to break even when there is a threshold of profit
implement error handling on the order placement; from some previous experience with the kraken api I can say that 10% or more of the orders fail to be placed. Timeout errors, mysterious cancels and also just disappearing..
email notifications

I've already started, if you are interesting I will clean up the code and try to integrate it in your project

Hi,
sure... looking forward to create something useful for people :smile:  You can create issues or each idea, so we can assing and track progress.
Thank you!

I have forked the project, because position handling is a bit different from what you are doing. But I will keep you updated with my progress on the error handling and maybe send you a pull request. In a couple of hours I should have something working..

Thank you!
Do you know why Kraken disabled advanced order types?

They say to alleviate the workload on their servers.. Could be true, but I hope they just hire more engineers and rewrite the engine. A couple of weeks ago I had a stop loss order, correctly inserted and listed and it didn't get executed even after hours that the price should have triggered it. They said that stop loss are not guaranteed, and the server just "forgot" about it!

Then I am glad that I created this bot and tested it in last two days :smile:

Files and folders cleaned, code simplified.


Added very basic JUnit output

This PR adds a very basic JUnit formatter, and should probably not be merged without further discussion.
This output format is widely used, but sadly is not standardized.
The best summary I could find is was in Catch's website.
Some talk points:

Some data and attributes are currently stubbed, such as the test-suite and class names.
It is assumed only one test suite exists. (I'm not sure this concept is relevant to libtest's tests).
Tests are given the run time "0" as they are currently not measured by the framework (benchmarks are given real time).
It seems as if std-out/err are owned by the test-suite as far as JUnit is concerned, which is not the case in libtest. Should we concat the output of the [Failing?] testcases?
We should probably give command-line flags to set the test-suite name, or somehow infer it from cargo. (or both)
The chrono crate is used to format the timestamp in ISO8601, but if the dependency is unwanted, I can always rewrite this one function.
Ideally I would want to test this feature either by using the junitparser python package or by validating the output using a JUnit crate, but I'm not sure if that's the best solution. Maybe I should just compare it to a known good output.

Thoughts?

Just wanted to say that I'm excited about JUnit format potentially being added!
FWIW, In my experience the JUnit result files emitted by cargo-junit seem to be "correct", at least in the sense that various CI engines are able to correctly parse/understand those JUnit files (albeit with missing timestamps). Sharing in case that's of any use as a comparison point

Thank you! I'll make sure to compare those

I'm curious as to why the timings for the tests aren't recorded? Most test frameworks I've worked with reports duration of tests OOTB, and I don't see a good reason for libtest to not do so.

The main reason is that Nobody has sent a PR implementing that.

+1 on this as well. I'm eagerly awaiting a built in exporter to junit rather than an ad-hoc one.

Hey guys, any chance we can get this effort going again? I think it'd be quite convenient to have this in.


[BEAM-847] Use a Random Long instead of a Random UUID for Aggregator IDs

Be sure to do all of the following to help us incorporate your contribution
quickly and easily:

[x] Make sure the PR title is formatted like:
[BEAM-<Jira issue #>] Description of pull request
[x] Make sure tests pass via mvn clean verify. (Even better, enable
Travis-CI on your fork and ensure the whole test matrix passes).
[x] Replace <Jira issue #> in the title with the actual Jira issue
number, if there is one.
[x] If this contribution is large, please file an Apache
Individual Contributor License Agreement.

Aggregator IDs are used to ensure that an Aggregator's identity is
consistent across synchronization barriers. This is only relevant when
constructing the map of Step -> Aggregator to enable querying, as the
DoFns represented within the graph may be serialized. The identity has
no impact on the interaction between the runner and aggregator, which is
the responsibility of the ProcessContext object and
setupDelegateAggregators.
UUID#randomUUID uses a shared SecureRandom to create the bytes of the
UUID; SecureRandom#nextBytes is a synchronized method, so regardless of
the underlying source of randomness, only one random UUID can be
generated at a time. Instead, use a random long to identify aggregators.
This should be sufficient for user-created aggregators, and system
aggregators should not care about the id.

Any reason to use a random ID rather than unique sequential IDs, i.e. from a static AtomicLong? Using random values risks spurious collisions (albeit improbable).

LGTM, merging.


Update solidworks-install.sh/Prevent partial upgrades on pacman based systems

Partial upgrades are unsupported on pacman based distributions, either use -S or -Syu.
In this case, I think -Syu is better as we want the user to have an up to date system when installing.

See this GitHub Gist for why it's a bad idea to use -Sy


[Model Request]: support for BAAI/bge-reranker-base

What happened?
Hi, I think it would be useful to support at least one ranker, I propose BAAI/bge-reranker-base
What Python version are you on? e.g. python --version
Python 3.10
Version
0.2.7 (Latest)
What os are you seeing the problem on?
Linux
Relevant stack traces and/or logs
No response

Hi @nickprock
Yes, we think so as well, we've assigned the reranker task to one of our QSoC participants

Closing as completed


Speed

I am opening this, so maybe We look into this: https://github.com/antlr/antlr4/pull/2916
This is a pull into runtime/Go/antlr that should fix some performance issues. They are not in antlr4 generator but in runtime.

@jameshoulahan This cuts the email parsing time by 25% and it is still work in progress.

 Proton cannot currently dedicate any time to help with speeding up the antlr golang runtime, though if this antlr-based parser causes major performance issues for our customers, that may change.

@jameshoulahan I think that the golang parser speed bothers a lot of people and there is already this pull request so it may improve on int's own:
    14.33s 11.02% 11.02%     27.54s 21.18%  runtime.scanobject

I wonder what is going GC doing all the time... Maybe it is a design problem that it is not a generational GC. The guy who made this pull request claims that major issues are pointers and getting rid of pointers in the code means less GC traversing. And also hashcode is cached now.

Alternatively, we could switch to antlr's C++ target, assuming it is indeed faster. The parser itself would be written in C++ and would expose a C-compatible interface (easy enough, just needs basic strings/ints as input/output data types). This golang package would then import the C++ parser and make use of it.


Call to action email for previously unsuccessful applications to apply again

Context
When we ship 'apply again' we want to notify applicants who were unsuccessful but would not at the time have been able to apply again that they can now do so.
Changes proposed in this pull request

[x] New methods for CandidateMailer for each of the main four cases

[x] Rejected applications
[x] Declined applications
[x] Withdrawn applications
[x] DBD applications

[ ] Handle case where there is a rejection as well as a one of the other reasons for unsuccessful application
[ ] Mailer previews
[ ] Worker that iterates all the unsuccessful applications before a given date and invokes the right call-to-action mailer above.
[ ] rake task to kick off the above (possibly with a cutoff date as input - can default to now).

Guidance to review

Link to Trello card
https://trello.com/c/5J7sX8iQ/1591-dev-build-email-for-submitted-your-application-for-apply-again-mvp
Things to check

[x] This code doesn't rely on migrations in the same Pull Request
[x] If this code includes a migration adding or changing columns, it also backfills existing records for consistency
[x] API release notes have been updated if necessary
[x] New environment variables have been added to the Azure config

Closing this because the requirement is much simpler.


add relu to torch mlp model

Update alpha_zero_torch C++ mlp model construction to match the python version.

Looks like a new version of jax was released yesterday (jax-0.3.18, Sep 26) and... I think what's happening is that it is getting pulled into the env during the build install, clobbering the expected version (jax-0.3.14)

clu-0.0.6 requires flax (https://github.com/google/CommonLoopUtils/blob/v0.0.6/setup.py#L49)
current version of flax = 0.6.0
flax-0.6.0 requires jax>=0.3.16 (https://github.com/google/flax/blob/v0.6.0/setup.py#L29)
flax-0.5.3 requires jax>=0.3.2 (https://github.com/google/flax/blob/v0.5.3/setup.py#L29)

Ah yes this seems to happen every once in a while.. I'll take a look in the next few days. Thanks!

Ok, thanks - I was able to get checks to pass on a private branch by pinning to flax-0.5.3.  I submitted a separate pr in case that would be a good enough fix for now.

Excellent, whenever this happens I do exactly that by trial and error .. so this saves me the work this time. Much appreciated!

@christianjans can you take a quick look at this PR?

Thanks for the change, I will take a look at it later today.

Geez, now rust dependencies seem to be broken on Ubuntu 22.04. You've gotten quite unlucky with the tests....! I will take a look this week.

Yeah, no worry - I may get a chance to look too

I believe this fixes it: https://github.com/deepmind/open_spiel/pull/939
I will import and update github soon, and then you can pull from master... but you can also just make that one line change locally and tests should not fail for that reason anymore.

Yeah, should be all set now.


Remove Cosmos permission for Airlock id

Fixes #2187
What is being addressed
Airlock doesn't need permission over Cosmos.
How is this addressed

Remove the permission

/test


Add faasflow into the workflow engine list

This PR adds FaaSFlow as a Workflow engine, primarily focused on OpenFaaS
FaaSFlow comes with a completely decoupled SDK which allows to build complex workflow as a DAG in Golang. Some of the main feature is

Support of Sub-DAG
Branching
Conditional Branching
ForEach Loop
Complete visibility for each state transition
and many more

Thanks for creating the awesome list. Glad to see FaaSFlow listed here
Signed-off-by: s8sg<EMAIL_ADDRESS>

@s8sg can you fix conflicts ?


gradle build error

In file build.gradle
line14

plugins {
id 'com.gradle.build-scan' version '1.5'
id 'idea'
id 'java'
id 'maven-publish'
id 'net.nemerosa.versioning' version '1.6.0'
id 'com.jfrog.bintray' version '1.6'
}

com.gradle.build-scan 's version is too old to build
please update version to 1.9.1

No error..

ummmm It may be an issue only to me... My gradle version is 4.2.1. So I fail to run this demo. After I change the version of com.gradle.build-scan everything works fine.

Well I've tried it right now with gradlew demo and it works perfectly fine and I used gradle 4.1.
Nevertheless it is a good idea to update the plugins so it's done :)

Thanks~ (￣︶￣*))


chore: rename XDEFI Wallet to Ctrl Wallet

Rename XDEFI Wallet to Ctrl Wallet

@Sotatek-ChinhVuong Please enable changes from maintainers. Also, we'll need to revert changes to the locale files excluding en-US and we don't want to introduce a breaking change, so we'll need to include an additional export for the legacy connector.


Storing data

I don't know if I have to attribute this issue to codeigniter or a something else.
I tried to save an hashed password  using the php hash function, but it truncates the first 4 char of the hashed password. mind you, I applied same rule regarding using that function. I applied same function in codeigniter 3 it worked well.

The same thing happened to me using the model->insert function.

the image below shows what am talking abt

This area in the protectIdentifiers method code looks suspicious to what may be causing your issue:
https://github.com/bcit-ci/CodeIgniter4/blob/develop/system/Database/BaseConnection.php#L1064

I've run into this previously and thought I had it conquered but perhaps not :) can you share the code you're using so I can recreate? I'm pretty sure it was happening previously due to it be double escaped.

below is the code
   $password = '123456';   $usermodel = new UserModel();   $hashpass = \App\Libraries\Auth\Password::hashPassword($password);   // Update user password   $pdata = [      'user_password'     =>$hashpass ,    ];     if (! $usermodel->update($user['user_id'], $pdata))     {       	$this->error = $usermodel->error()['message'];          //$this->error = 'Unknown error encountered';          return false;     }

A couple of assumptions, please tell me if I'm wrong:

UserModel doesn't do anything extra and is simply extending CodeIgniter\Model.
hashPassword library basically uses PHP's password_hash() function with a BCRYPT as the type?

What does the hash look like after it's generated? Is it the same as in your image above?

yea its same as the above image.
i even ran a the regular query without the model, same thing

Ok, thanks for the confirmation. I will try to look into this tonight, but with a Holiday here in the states, and a sick kid, it might not happen for a couple of days.

oh sorry about the kid, well project is been used for is not going live soon, so it cool

@chistel Pull down the latest code and let me know if you run into any issues. I managed to get a bit of free time before calling it a day here.
I've reworked how named bindings works with the Query object and this should help, but still feels a touch hacky. Tests pass but I don't have a full-fledged app yet to test it under a variety of use-cases.

(y) nice one, it worked absolutely well @lonnieezell

Awesome. Closing.


Aarch64 build for Raspberry Pi

Hi @PINTO0309 Thank you for all your work! I wanted to know if there's an Aarch64 build for Raspberry Pi 64bit OS as well? The repository mentions Jetson Nano. If there is, would be really grateful to try it out. Thanks!!

https://github.com/isl-org/Open3D/issues/2895#issuecomment-861226833

http://www.open3d.org/docs/release/arm.html#raspberry-pi-4


cannot generate a sitemap of https://www.ethz.ch/en.html

Do you want to request a feature or report a bug?
BUG
What is the current behavior?
(node:19773) UnhandledPromiseRejectionWarning: NestedError: Cannot write to `path`: EISDIR: illegal operation on a directory, open 'path'
    at WriteStream.write.on.err (path/node_modules/cp-file/index.js:38:12)
    at emitOne (events.js:121:20)
    at WriteStream.emit (events.js:211:7)
    at path/node_modules/graceful-fs/graceful-fs.js:211:14
    at path/node_modules/graceful-fs/graceful-fs.js:241:16
    at FSReqWrap.oncomplete (fs.js:135:15)
Caused By: Error: EISDIR: illegal operation on a directory, open 'path'
(node:19773) UnhandledPromiseRejectionWarning: Unhandled promise rejection. 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(). (rejection id: 1)
(node:19773) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

If the current behavior is a bug, please provide the steps to reproduce.
Try to generate a sitemap of this webpage
What is the expected behavior?
Should successfully generate a sitemap

hmm have you tried running it without specifying: /en.html at end of url?

Can not reproduce
Closed due to inactivity.


How can I get "this month"'s data?

Today (March 31th) I can get only Feb. stats, but I may like to get a result of the whole of March until now. Is it possible now?
cc @juxianzheng

Please check again:

@juzhiyuan Thank you! So we will have "this month"'s data in the next month?
It is possible to show a real-time result for this month?

It is possible to show a real-time result for this month?

I'm not clear about the whole logics 😅


glfw3 3.1.2

Merged in https://github.com/Homebrew/homebrew-versions/commit/34d67d8a91ce68e506bb99d950e46e01489f3716. Thank you for your contribution to Homebrew @jayschwa! :smiley_cat:


Take "onMessage: Promise" instead of "onMessage: void" for activateConsumer

Hello,
I have a question for you, here a use case :
...
// define the consumer for the queue
queue.activateConsumer( async (message) => {
  let msg = message.getContent();
  if (await service.isExist(message.content.id)) {
    // other logic here
  }
}, {noAck: true});

I can't do something like this because activateConsumer will call my arrow function without awaiting. So it will be like "fire and forget pattern". if service.isExist fails, I will get an unhandledexception.
The solution would be :
// define the consumer for the queue
queue.activateConsumer((message) => {
  let msg = message.getContent();
  service.isExist(message.content.id).then((isExist)=> {
    if(isExist) {
      // other logic here
    }
  }).catch(doSomething);
}, {noAck: true});

Is there a better alternative ? It would be nice to use es6 features.

@OlivierAlbertini, faced the same issue, but how do you force activateConsumer to not ack message until promise is resolved? Without this it is useless to set noAck=true

I think activateConsumer must accept both sync and async closures, currently it does but only if message has replyTo, I don't understand why cannot I pass async closure in usual case, even without rpc applied

@OlivierAlbertini, faced the same issue, but how do you force activateConsumer to not ack message until promise is resolved? Without this it is useless to set noAck=true

I think you meant to say "...useless to set noAck=false", right? These double negatives can get confusing.
It seems to me that the problem is actually here:
https://github.com/abreits/amqp-ts/blob/master/src/amqp-ts.ts#L960-L962
While I can see the intention behind this convenience, I think acking the message should not be the responsibility of this library, but rather the responsibility of your consumer's code. This would allow you to message.ack() appropriately in your own code, as well as message.nack() (which is technically currently possible, but then this library still tries to message.ack() unnecessarily). The above PR will still have this problem.
Since removing these lines outright would be a breaking change with possibly disastrous effects to existing users, maybe it would be better/safer to add a custom consumer option called manualAck, defaulting to false. When true, the package no longer acknowledges the messages for you from the wrapper, and you are expected to from your own code.
You would now be able to do this:
// using then syntax
queue.activateConsumer((message) => {
  myAsyncFunction().then(() => {
    message.ack()
  }).catch((err) => {
    message.nack()
    throw err
  })
}, { manualAck: true })

// using ES6 async/await
queue.activateConsumer((message) => {
  try {
    await myAsyncFunction()
    message.ack()
  } catch (err) {
    message.nack()
    throw err
  }
}, { manualAck: true })

I don't mid making a PR for the above change, it is straightforward enough. Though, it would be nice to hear back from the maintainer on this.

I have implemented your proposed solution and added the manualAck option (and fixed all pending vulnerabilities and build problems that I encountered in the process) and published it to npm as a minor version update. Current version is now 1.6.0.


warning: unable to download: HTTP error 200 (curl error: Timeout was reached);

Issue description
Since a few days I am getting a curl timeout when installing the dependencies mono and a few others:

nix-shell -p mono
these paths will be fetched (195.30 MiB download, 771.40 MiB unpacked):
  /nix/store/0qqk6rlh0nrxvwhnxjqij0f71hwg0p3h-mesa-19.1.1-dev
  /nix/store/1bsdnvj90a6akngbi0lqqqdlv3h1pkqh-libgdiplus-5.6.1
  /nix/store/2acc44zvbm4j9dbw2l302sqp8mramda1-mono-<IP_ADDRESS>
  /nix/store/dadshmwrrxqsirphbry7n456hhxd8ras-ncurses-6.1-20190112-dev
  /nix/store/jkvs9bvqpg5gfb7xg48l4adx6ylvbnnv-mesa-19.1.1-drivers
  /nix/store/s4gx744wnfripgai2vn463lbqzbrbjwa-libGL-1.0.0-dev
  /nix/store/y0yh686dqiwq4m32vfc495ikr64ja48y-cairo-1.16.0-dev
copying path '/nix/store/dadshmwrrxqsirphbry7n456hhxd8ras-ncurses-6.1-20190112-dev' from 'https://cache.nix
os.org'...
copying path '/nix/store/jkvs9bvqpg5gfb7xg48l4adx6ylvbnnv-mesa-19.1.1-drivers' from 'https://cache.nixos.or
g'...
ncopying path '/nix/store/0qqk6rlh0nrxvwhnxjqij0f71hwg0p3h-mesa-19.1.1-dev' from 'https://cache.nixos.org'.
..
copying path '/nix/store/s4gx744wnfripgai2vn463lbqzbrbjwa-libGL-1.0.0-dev' from 'https://cache.nixos.org'..
.
copying path '/nix/store/y0yh686dqiwq4m32vfc495ikr64ja48y-cairo-1.16.0-dev' from 'https://cache.nixos.org'.
..
copying path '/nix/store/1bsdnvj90a6akngbi0lqqqdlv3h1pkqh-libgdiplus-5.6.1' from 'https://cache.nixos.org'.
..
copying path '/nix/store/2acc44zvbm4j9dbw2l302sqp8mramda1-mono-<IP_ADDRESS>' from 'https://cache.nixos.org'...
warning: unable to download 'https://cache.nixos.org/nar/0n3l6bnhv6r2r452szsv6xgqrmfyrf87yj0ma3a79bb37mf49cj6.nar.xz': HTTP error 200 (curl error: Timeout was reached); retrying in 308 ms
error 9 while decompressing xz file
error: build of '/nix/store/rnnlz1rgvqaq5bavcaix6gphf1dkxz4h-mono-<IP_ADDRESS>.drv' failed

I tried switching the cache from <IP_ADDRESS> to <IP_ADDRESS>, but without any effect.
Steps to reproduce
nix-shell -p mono
Technical details
 - system: `"x86_64-linux"`
 - host os: `Linux 4.19.57, NixOS, 19.09pre184803.d567c486ca5 (Loris)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.2.2`
 - channels(user): `"home-manager"`
 - channels(root): `"nixos-19.09pre185176.1036dc66416, nixpkgs-19.09pre185562.00ef72610c8"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

sudo nix-channel --list
nixos https://nixos.org/channels/nixos-unstable
nixpkgs https://nixos.org/channels/nixpkgs-unstable

Here the output of the cloudfront.sh script from https://cache.nixos.org:
http://ix.io/1OOI

I can not reproduce it from Germany/Europe. Maybe a temporary problem of the CDN.
[davidak@ethmoid:~]$ nix-shell -p mono -I nixpkgs=https://releases.nixos.org/nixos/unstable/nixos-19.09pre185259.362be9608c3/nixexprs.tar.xz
these paths will be fetched (132.17 MiB download, 503.11 MiB unpacked):
  /nix/store/1bsdnvj90a6akngbi0lqqqdlv3h1pkqh-libgdiplus-5.6.1
  /nix/store/2acc44zvbm4j9dbw2l302sqp8mramda1-mono-<IP_ADDRESS>
  /nix/store/dadshmwrrxqsirphbry7n456hhxd8ras-ncurses-6.1-20190112-dev
  /nix/store/qqav3b3hibzs8gr7shbcgjd310wk9xv8-ncurses-6.1-20190112-man
  /nix/store/z0liwi5pish02m3j5vasi3imsqnixs2h-libexif-0.6.21
copying path '/nix/store/qqav3b3hibzs8gr7shbcgjd310wk9xv8-ncurses-6.1-20190112-man' from 'https://cache.nixos.org'...
copying path '/nix/store/z0liwi5pish02m3j5vasi3imsqnixs2h-libexif-0.6.21' from 'https://cache.nixos.org'...
copying path '/nix/store/1bsdnvj90a6akngbi0lqqqdlv3h1pkqh-libgdiplus-5.6.1' from 'https://cache.nixos.org'...
copying path '/nix/store/dadshmwrrxqsirphbry7n456hhxd8ras-ncurses-6.1-20190112-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/2acc44zvbm4j9dbw2l302sqp8mramda1-mono-<IP_ADDRESS>' from 'https://cache.nixos.org'...

[nix-shell:~]$

Europe/Germany
NixOS 19.03
Running "nixos-rebuild switch" gives me the same error.
Sometimes it's also 'error 9 while decompressing xz file', "error: unexpected end-of-file", or hash mismatches.
The "error 9 ..." seems to have been fixed by
https://github.com/NixOS/nix/commit/53247d6b116905e7233b1efd6c14845e20d27442
Unfortunately there has not been a new release of nix which includes this commit.
I was able to reproduce this the last few days.
At the end of this discussion several people are having similar problems
https://discourse.nixos.org/t/the-nixos-cache-is-now-hosted-by-fastly/1061
At the moment the cache seems to be rather slow, sometimes it manages to use my full bandwidth but often it drops to ~500KB/s

I've got lots of errors from Japan. Had to rerun ~7 times my nix-shell before it was able to fetch everything. On discourse, someone says to use -j1 : The HTTP error 200 (curl error: Timeout was reached); problem also occurs for me, though limiting to one job with -j1 fixes it.
I will try next time. The errors are kinda cryptic (error "9") so it's kinda depressing.

I have had this for a whale in France. This seemed to be linked to a problem in my not fully ipv6 capable router. The simplest workaround I had was to only rely on ipv4 when needed.
Something like
$ sudo ip -6 route delete default

makes sure that you do not use IPv6 (non permanent), which is quite sad I have to admit.

I have had this problem for quite a while too (France)

I'm also having this issue with one of my computers, starting about a bit over a month ago. I have two computers running NixOS at the same location (and sharing the same slow connection), one on channel nixos-unstable and one on channel nixos-19.03 (both were originally installed as 19.03).
The unstable computer has the issue, the 19.03 computer doesn't.
Further, the unstable computer only has the issue if it's using Nix from the unstable channel; after switching it to using Nix from the 19.03 channel as a workaround (i.e. setting nix.package = pkgs.stable.nix, using a nixpkgs.config.packageOverrides to define stable), this issue went away.
The issue doesn't happen if I download the failed files directly (e.g. curl -O https://cache.nixos.org/nar/<hash>.nar.xz). It also doesn't happen where the derivation fetches the files directly (e.g. NVIDIA drivers), only where Nix is using curl to get cached derivations from cache.nixos.org.
From observations, it appears that:

The timeout is always 300 seconds. I haven't set a connect-timeout for Nix, and to my understanding (from the Nix and Nixpkgs manuals) there aren't any timeouts set by default. I do note that Nix has a hardcoded 300 second low-speed timeout (see libstore/download.cc#L239 and libstore/download.cc#L299-L300), but that might be coincidental.

The timeout seems to be spurious. I've watched several cases where everything seems normal: no problem with the connection, Nix is happily extracting files under \nix\store... but the download suddenly 'times out', seemingly for no other reason than because 300 seconds have elapsed.

Setting nix.maxJobs = 1 (the default) helps avoid other timeouts on my slow connection, but doesn't seem to help with these specific timeouts (except insofar as it lessens the number of them).

As @duhirsch noted, the next Nix release will support resumable NAR downloads (which is excellent :+1:) in response to Nix#2952 (in which the same timeout messages can be seen). However, I feel that still leaves the question of why these specific timeouts happen to begin with.
Hope this helps :smiley:.
(p.s. I'm in Australia, as are the computers involved.)

@aexoxea thanks for the detailed report. Could you please post the relevant part of your configuration on howto use nix from stable?

Hi @feijoas,
You're welcome. The relevant part of my config is:
nix.package = pkgs.stable.nixStable;

nixpkgs.config.packageOverrides = pkgs: {
    stable = import <nixos-stable> {
        config = config.nixpkgs.config;
    };
};

This is based on an approach documented in NixOS Wiki:
https://nixos.wiki/wiki/Cheatsheet#Upgrading_individual_packages_to_a_different_channel
NB 1: This first requires that the 19.03 channel be added as "nixos-stable" and the channels refreshed, otherwise it won't evaluate.
NB 2: While this is working for me, I lack the knowledge to say whether this might cause other issues down the line, since I don't know to what extent Nix can be considered "like just another package" on a NixOS system.

@lsix's solution, which is disabling ipv6 works for me.
Instead of disabling it on the default interface one could also disable it on all interfaces via
echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6
(must be executed under root permissions)
Nevertheless I consider this to be only a temporary fix, the real problem has to be somewhere else.

I think the older thread did seem to indicate that IPv6 makes Fastly's issues more likely (or worse).
Killing all IPv6 seems an overkill... it's just a single name, so it should be perfectly enough e.g. to override one DNS record
cache.nixos.org.    CNAME    v2.shared.global.fastly.net.

Both approaches, disabling IPv6 and using nix from stables channel, do not work.

I close this issue since it seems to be a nix error: https://github.com/NixOS/nix/issues/3025

If you are still having issues, there is a new experimental cache with some improvements: https://discourse.nixos.org/t/improvements-to-cache-nixos-org-help-test-the-new-config/3620

I have seen an error just like this; if I ran (I might have this backwards...) a "nix-shell" that was downloading larger NAR.xz items (copying ... into /nix/store/....) it'd show that xz exited with error 10; if I installed something with "nix-env -i" I got a HTTP error 200 (curl error: Timeout was reached).
Long story short, in ~/.config/nix/nix.conf I put "stalled-download-timeout = 99999999" (just an arbitrarily large number).   I guess you can put this into /etc/nix/nix.conf if you prefer.  PROBLEM FIXED!!!
Looks like default is 300, and it does sound fine to have a download abort if it's stalled for 5 minutes.  But for whatever reason it's not... Anyway... I found the code and in essence curl  "-Y" (--speed-limit) is set to "1" (byte per second), "-y" (--speed-time) is set to 300 (or whatever stalled-download-timeout is set to).  Sounds fair enough.    I don't think it's stalling for 5 minutes... but whatever, disabling this timeout fixes it.  Cheers!

This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/what-to-do-with-these-errors-or-warnings-when-upgrading-my-nixos-channel-from-22-05-to-23-05/34604/3


make editing view render markdown elements like (lists) in editing mode

using the plugin in editing view I am unable to render lists the same way in reading view:

while in reading view I can view elements:

but for non encrypted notes I can both edit and view the result of my editing (render lists ...) in the editing view

This would be great and make the experience much better.
Are there any chances this will come in the future?

Yeh, it was a limitation of the editor view I was using... I have been working on an update...
Please make a backup of your vault and test v2.4.0-beta if you can.


[SPARK-21790][TESTS] Fix Docker-based Integration Test errors.

What changes were proposed in this pull request?
SPARK-17701 removed metadata function, this PR removed the Docker-based Integration module that has been relevant to SparkPlan.metadata.
How was this patch tested?
manual tests

Test build #80872 has started for PR 19000 at commit 6f92ccb.

Test build #80872 has finished for PR 19000 at commit 6f92ccb.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/80872/
Test PASSed.

LGTM

Thanks! Merging to master.


fix experiment import bug and add it cases: experiment import

In docs, experiment import data format example below, value can be set as float, but json_tricks.loads() only accept string, so fix it.
[
  {"parameter": {"x": 0.5, "y": 0.9}, "value": 0.03},
  {"parameter": {"x": 0.4, "y": 0.8}, "value": 0.05},
  {"parameter": {"x": 0.3, "y": 0.7}, "value": 0.04}
]

Add IT cases about experiment import and export.

@SparkSnail   Please help review nni_cmd/updater.py


Fix incorrect output in the build command

Purpose

Fixed incorrect output from from compiler in the build command

Closing this PR in favor of https://github.com/ballerina-platform/ballerina-lang/pull/9658


Automatically filling in the gaps of my svg

Hello sorry to bother, and also sorry if I am in the wrong place.
I have an svg that contains some dashes with gaps in between them. I have the animation set up and working but the problem is that the animation fills these gaps and creates one single line. Is there a setting to prevent this? I tried my best to fix this, I've read the user guide many times but I still cant figure it out. Maybe its just my svg but I thought id ask for help before I blamed it on the svg.
Here is the JSFiddle link. https://jsfiddle.net/1yp1ktwf/
The svg on the left is what it is supposed to look like, and the one on the right is the animated one. You will see the transformation.
In the js panel I included vivus.min.js and below that I created the instance of vivis.
Thanks!

Hi there,
I see your problem and this is one of the use case that is incompatible
with Vivus. This library use the dashstroke to fake the drawing
animation. So it cannot be applied on a path which already have a specific
dashstroke property.
I'm sorry about the bad news :(

Aww ok, thanks for responding so quick!

Unfortunately no :(
Except cutting your SVGs in your editor to create real lines.
I did this to your jsfiddle :) https://jsfiddle.net/1yp1ktwf/2/

YES!!! thank you so much sir!  ;-)


service is_running error in Ubuntu 16.04 docker container

I'm using molecule with testinfra. I have two contaieners: ubuntu 16.04 and ubuntu 18.04.
But it looks weird that your test pass on ubuntu 18.04, what is the startup command in both containers ?

It's standard from molecule:
3368c7b43d18d669b2336a17603a8a25e14e22892e1edb2a5e8a26545896e446   molecule_local/ubuntu:18.04   "bash -c 'while true; do sleep 10000; done'"                                                                                2 hours ago         Up About a minute                                                                                attila.amana.vpn
89dad2162709ae5a52ed4d0edff36d0a1a8007c39782b04473823ff977095f3a   molecule_local/ubuntu:16.04   "bash -c 'while true; do sleep 10000; done'"                                                                                2 hours ago         Up About a minute

I think the problem might be with this line:
https://github.com/philpep/testinfra/blob/af17f8f9f37b9ec9c41ff1e1434def315c4f5156/testinfra/modules/service.py#L48
So systemctl command is available in Ubuntu 16.04, but systemd is not running (thus the Failed bus error), whereas on Ubuntu 18.04 there's no systemctl command, so testinfra fallbacks to SysV. I think it should fallback in both cases.

Here's how it looks on Ubuntu 16.04:
root@ubuntu1604:/# which systemctl
/bin/systemctl
root@ubuntu1604:/# ll /sbin/init
lrwxrwxrwx 1 root root 20 Feb 13 23:30 /sbin/init -> /lib/systemd/systemd*

And Ubuntu 18.04:
root@ubuntu1804:/# which systemctl
root@ubuntu1804:/# ll /sbin/init
ls: cannot access '/sbin/init': No such file or directory

Can you post your molecule config? I'm using the official ubuntu images, and usually these additional settings. Systemd needs cgroup files in the container as well as the SYS_ADMIN capability. Finally, specifying the command will start systemd as init.
platforms:
  - name: bionic
    image: ubuntu:bionic
    capabilities:
      - SYS_ADMIN
    volume_mounts:
      - "/sys/fs/cgroup:/sys/fs/cgroup:rw"
    command: "/sbin/init"

Hi,
In this case (systemctl exists, /sbin/init = systemd but systemd isn't pid 1), I think we can indeed fallback to SysV for failed "systemctl is-running" command. I made a PR and will merge and make a new release in a few days. Thanks for reporting !

Great @philpep, thanks for the fix, you're awsome!


MF-1469 - Indicate proper authentication scheme in Authorization header

Resolves #1469
What does this do?
Which issue(s) does this PR fix/relate to?
Put here Resolves #XXX to auto-close the issue that your PR fixes (if such)
List any changes that modify/break current functionality
Have you included tests for your changes?
Did you document any new/modified functionality?
Notes

@stefankovacevic123 Please sign your commits, read contribution guidelines, and update your PR according to it.

@stefankovacevic123 it is necessary to take in the account remarks from @dusanb94. Otherwise this PR will be closed due to the inactivity.

I am resolving the issue right now

@stefankovacevic123 DCO issue should be fixed by following the instructions here

Additionall, you need to change PR name, as @dusanb94 mentioned here

Codecov Report

Merging #1523 (4b37750) into master (042ff98) will not change coverage.
The diff coverage is 83.33%.

@@           Coverage Diff           @@
##           master    #1523   +/-   ##
=======================================
  Coverage   70.83%   70.83%
=======================================
  Files         123      123
  Lines        9567     9567
=======================================
  Hits         6777     6777
  Misses       2263     2263
  Partials      527      527

Impacted Files
Coverage Δ

provision/api/transport.go
0.00% <0.00%> (ø)

users/api/transport.go
66.49% <33.33%> (ø)

things/api/things/http/transport.go
85.06% <92.85%> (ø)

auth/api/http/keys/transport.go
80.59% <100.00%> (ø)

bootstrap/api/transport.go
93.10% <100.00%> (ø)

consumers/notifiers/api/transport.go
87.62% <100.00%> (ø)

http/api/transport.go
75.00% <100.00%> (ø)

readers/api/transport.go
78.12% <100.00%> (ø)

twins/api/http/transport.go
92.48% <100.00%> (ø)

Continue to review full report at Codecov.

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

@mteodor what is your opinion on this, as someone who opened an issue a s used Bearer token for the user DB read?

Also, it would be good to hear @nmarcetic's opinion here.

I have nothing against this approach, but we need to decide if we are going to use any other Auth schema. We probably won't and in that sense, this implementation is a way to go.
OAuth enforces this "token_type token_value" syntax and I have never seen anyone using anything but "bearer" as a type, which is why we omitted it in the initial design. We can create out own schema (and I think it was actually the idea to make separate users and things toekns using different schemas) but that conceptionally does not match the idea of Ttken type: both users and things are "bearers" and it makes sense that both use "bearer" token.

my main reason for creating this issue was integration.
when you integrate with other services it makes sense that all services are aligned
this is what a bearer token is
Bearer Authentication
Bearer authentication (also called token authentication) is an HTTP authentication scheme that involves security tokens called bearer tokens. The name “Bearer authentication” can be understood as “give access to the bearer of this token.” The bearer token is a cryptic string, usually generated by the server in response to a login request. The client must send this token in the Authorization header when making requests to protected resources:

and effectively we have only this type of api authentication

@mteodor what is your opinion on this, as someone who opened an issue a s used Bearer token for the user DB read?

I dont understand this?

instead of using the Bearer prefix, we simply ignore it

we can enforce, but simply replacing it makes it not breaking existing applications that are built on top of our API

A CBOR Web Token standard should be examined in order to understand potential change of the Mainflux token into self-contained bearer token that can be a structure with a field type, telling if it is a User or a Thing token.


Add tracker number requirement to AutoBone

I too want to add detection, but I'm thinking this will hold for now until that happens, in which case we can remove the applicable lines if we want


Correclty define ContractClasses types, fix provider common type

Describe the bug
Sequencer and RPC requests and responses are different in the case of the ContractClass format.
ContractClass, CompiledContract, CairoContract

[] evaluate all ednpoint's responses format (rpc and Sequencer)
[] evaluate all declare format (rpc and Sequencer)
[] define an internal type that will serve as a common type for both pre-requests without breaking changes

To Reproduce
Steps to reproduce the behavior
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

Browser & version [e.g. chrome, safari, webworker]
Node version [e.g. 16.0.1]
Starknet.js version
Network [devnet, testnet]

Additional context
Add any other context about the problem here.

@PhilippeR26 Can you please add your examples, test, and evaluation mentioned on discord?

Example of problem in mainnet, with a Cairo 1 problem :
const addrErc20 = "0x060cf64cf9edfc1b16ec903cee31a2c21680ee02fc778225dacee578c303806a";
const testContract = await provider.getClassAt(addrErc20);
const testAbi2 = testContract.abi ;
console.log("typeof =",typeof testAbi2,", is array =",Array.isArray(testAbi2));

The compiler indicates that

testContract is : ContractClass | CONTRACT_CLASS
testAbi2 is Abi type : Abi | CONTRACT_ABI | undefined
If the provider is using the sequencer, it works fine : I can create an Account object using this abi ; the result in the console is :

typeof = object , is array = true

If the provider is using rpc (local pathfinder or alchemy), the result is :
typeof = string , is array = false

This false Abi object is crashing Starknet.js  at account object creation.

provider.getClassAt() and provider.getClassByHash() should have from an user point of view only one type, whatever how the provider is connected.
.abi should have from an user point of view only one type, whatever provider connection and Cairo 0/1. this object has to be really of Abi type in all cases.

on it


Update compare-products.js

A needed widget where it activates the print page functionality on the compare view page

@vovayatsyuk The compare-products must be loaded so the widget can be utilized. Currently, there is a print button, but it does not do anything.

Thank you!


[WFRP4CharSheet] Release v.1.8

Changes / Comments
Version

Update from 1.7 (HTML) and 1.6 (CSS) to 1.8
Add version markup (bottom right)

Developers Convenience

Fix whitespaces, line ends and indentation (replace line start whitespaces by tabs, remove whitespaces at line ends, merge two or more lines feeds by only one
Remove left-overs and unused comments and markups
Tidy HTML (replaced redundant attributes)
Tidy CSS (classes renamed)

Bug Fixes

Fix tab buttons focusable area (i.e. engulf whole button, not only text content)
Fix cursor hover position bump bug (new cursor images added)
Fix expanded roll button image repeat [https://i.imgur.com/lVrgJF9.jpeg]
Fix translation † issue (missing character)
Fix missing SL prefix at 1 to 9 roll result
Fix missing SL range (96-99 => 96-100 for against > 100)
Fix wrong hit location head for 100 roll

Features

Add One-page toggle
Add Ask modifier togge
Add Whisper to GM toggle
Add Wealth converter (one unit each time from gold to brass)

HTML

Reorder Movement, Encumbrance, Wealth and Wounds sections
Add focus/hover colors on inputs (tab navigation fix)
Add legend above Talents repeating section (missing header)
Add colors and borders on Advanced and Group Skills table
Remove BR and HR (replaced by margin bottom)
Expand tabs length (from 75% to 100%)
Fix Armour Points display
Fix and reduce images size
Change Weapon Encumbrance type (from text to number)
Change Spell Caster Number type (from text to number)
Add Channeling Skill under Magic Skills section
Add tooltip on uncommon abbreviated terms
Add missing placeholders on text inputs

CSS

Fix sheet, div, select and tables width (remove styles attributes, include scrollbar)
Fix repcontainer position and behaviour (move full size and absolute positioned buttons)
Fix border image display (remove useless declarations)
Fix textareas width and height
Add textarea background image

Worker

Add Encumbrance recalculation on repeated item removal
Reduce TheAaronScript (only methods used)
Remove SWUtils (unused)

Translations

Add ordered list index key for Basic Skills
Add ordered list index key for Melee Specializations, Ranged Specializations and Magic, Blessings and Miracles
Add missing spell range translations (you, touch, special, n yards, n miles, etc.)
Replace "Leg Left" translation key by "Left Leg"
Replace "Qualities" translation key by "Qualities/Flaws"
Remove "AMBITIONS" translation key
Remove "Personal-Short-Term" translation key
Remove "Personal-Long-Term" translation key
Remove "Party-Short-Term" translation key
Remove "Party-Long-Term" translation key
Add "PERSONAL-AMBITIONS" translation key
Add "PARTY-AMBITIONS" translation key
Add "Short-Term" key
Add "Long-Term" translation key
Add "movement" translation key
Add "show-all-tabs" translation key
Add "ask-modifier" translation key
Add "whisper-to-gm" translation key
Add "money-total" translation key
Add "Rolled" translation key
Add "vs" translation key
Add "Test" translation key
Add "Result" translation key
Add "Critical-Success" translation key
Add "Fumbling-Failure" translation key
Add "Success" translation key
Add "Failure" translation key
Add "SL" translation key
Add "Agility-Bonus" translation key
Add "Initiative-Bonus" translation key
Add "Initiative-Talents" translation key

Templates

Add modifier value in template (just after roll result)
Clamp minimal and maximal SL calculated values to -10 and +10

Roll20 Requests
Comments are very helpful for reviewing the code changes. Please answer the relevant questions below in your comment.

[x] Does the pull request title have the sheet name(s)? Include each sheet name.
[x] Is this a bug fix?
[x] Does this add functional enhancements (new features or extending existing features) ?
[x] Does this add or change functional aesthetics (such as layout or color scheme) ?

If you do not know English. Please leave a comment in your native language.

Character Sheet Info Roll20 Internal Use only.


Get rid of ruma_event!

With the generic event API planned for 0.22, we no longer generate event structs and have removed the event traits. ruma_event! only generates event content structs now, basically just copying the fields in the macro invocation into a struct with a predefined set of derives. The expansion is not really longer than the macro call anymore, so we should remove the macro.

Closing in favor of #117.

Actually, this can be done after the api22 merge.

Fixed by #121.


Visually rendering dot-string in React

Is your feature request related to a problem? Please describe.
I have server generated .dot-Files/String which I would like to render in the UI
Describe the solution you'd like
Support for rendering Graphviz dot-strings / AST in React
Describe alternatives you've considered
I have not yet found any and am open to be directed to existing alternatives
Additional context
N/A

@its-felix
Thank you for raising this feature request! We understand your need to render Graphviz dot-strings or AST within a React UI visually.
Our library doesn't directly support rendering these in-browser using SVG or similar formats. However, it's possible to achieve identical functionality by integrating our library with other existing ones.
You might find the implementation in the following repository helpful as a reference: react-dom-graphviz-integration.

Thanks for the suggestion!
Over the weekend, I have experimented with both https://reactflow.dev/ and https://github.com/uber/react-digraph with some logic to convert the graph AST to a graph representation for each of these libraries, which worked good enough.


Remove tile_to_forall_and_workgroup_count_region op occurencies.

We should use
%forall, %tiled_generic = transform.structured.tile_to_forall_op %0
  num_threads [2] ( mapping = [#gpu.block<x>] )
transform.iree.populate_workgroup_count_region_using_num_threads_slice
  %forall : (!pdl.operation) -> ()

instead.

thanks much!


Where's the code, dude?

Links in the article https://aka.ms/LongMem and on the arxive page lead to this empty repo.
Congratulations with your 'publication'!

Links in the article https://aka.ms/LongMem and on the arxive page lead to this empty repo. Congratulations with your 'publication'!

This just shows that a Ph.D. in Mathematics can't teach anyone basic manners or common sense.
Having said that, I'm also looking forward to the release of the code, if the researchers are so kind to share it. The paper was released today, so I'll come back later.

Hi you all, apology for releasing the code a little bit late due to personal issues. I will immediately organize the documentation for easier reproduction and discussion.

@Victorwz Don't apologize, this looks like amazing work and it's great that you have published the code open-source so that your paper is reproducible and allow others to build upon it. Thanks!
Like Otto rightfully said, Alex is the one who should apologize here.

Thank you, Victor.


using kubeless without volume mounts

/kind question
is it possible to use kubeless without the volume mounts that is done via init containers to load the function files ?

You can avoid that if you use the function building feature (at least at run time): https://kubeless.io/docs/building-functions/ since the result will be storaged in a Docker image.
In other case, that's the only way of accessing the function content. Does that work for you?


Registry container is failing on startup via docker-compose

I am trying to start karapace via docker-compose file. I built image and when docker-compose is launching components, then I am getting following error:
registry_1  | Traceback (most recent call last):
registry_1  |   File "/usr/lib64/python3.7/runpy.py", line 193, in _run_module_as_main
registry_1  |     "__main__", mod_spec)
registry_1  |   File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code
registry_1  |     exec(code, run_globals)
registry_1  |   File "/app/karapace/schema_registry_apis.py", line 1, in <module>
registry_1  |     from karapace import version as karapace_version
registry_1  | ImportError: cannot import name 'version' from 'karapace' (/app/karapace/__init__.py)

Then container_registry_1 exits with code 0
Kafka and Zookeeper starts and operates successfully.
What could be causing this issue?

Handled here https://github.com/aiven/karapace/pull/84

Closing the issue as this should now be fixed. Thank you @bnodya  for reporting it!

Thank you all for quick response!


package doesn't create FK on Snapshots

For some reason if I add a FK on a snapshot table, this produces no effect.

The latest code in the main branch has the necessary fix and I am about to create a release after I update some of the documentation.

Thanks for identifying the problem and letting me know. A fix was submitted a couple weeks ago but I only got around to deploying the new release today.


Fix S3 CompleteMultipartUpload and add related UTs

What changes are proposed in this pull request?

fix bugs in alluxio.proxy.s3.S3ObjectTask.CompleteMultipartUploadTask#validateParts
CompleteMultipartUpload executes the specified parts  with the specified upload ID rather than all parts.
add initiate / complete / abort MPU and upload part unit tests.
remove XAttr
show all buckets/upload-parts to user while listing buckets/ upload-parts

Why are the changes needed?
there are problems in validateParts() of complete MPU

can’t recognize S3 Error: MalformedXML
throw unexpected error: InvalidPartOrder

we need to fix validateParts() of complete MPU to keep s3 proxy behaviors as consistent with aws as possible.
Does this PR introduce any user facing changes?

can't get the bucket name and object name of the part while executing  ListMultipartUploads

now complete MPU's response is like

part list
response(before)
response(now)

[]
500
MalformedXML

[1,3]
InvalidPartOrder
200

[2,1]
InvalidPartOrder
InvalidPartOrder

[3,3]
InvalidPartOrder
InvalidPartOrder

@Jackson-Wang-7  ask for review

can be closed?


Does it make sense that Hohlraum flux query regression test yields different results on Windows?

For hf_3_0.txt as an example, the regression results from pascal are:
The hohlraum flux query over 1 energy groups was written to hf0.ult.
Sum is 0.538024.
Energy group values are:  0.538024

There isn't a mode-specific baseline, so serial and parallel runs yield same results.
Not so on Windows
From serial run on Windows:
The hohlraum flux query over 1 energy groups was written to hf0.ult.
Sum is 0.495349.
Energy group values are:  0.495349

From parallel run on Windows:
The hohlraum flux query over 1 energy groups was written to hf0.ult.
Sum is 0.497103.
Energy group values are:  0.497103

I believe the hohlraum flux query uses a random number generator to define the rays for the query.


"Commit: Committer email empty" when german umlaut 'ö' or 'ü' is in committer name

I get the error message "Commit: Committer email empty" when I try to use the german writing of my name (with umlaut 'ü') in the committer name. I tried some other variants with german umlauts. With 'ö' I'm also not able to commit. But with 'ä' I can commit.

The whole parsing of the commit request is done in method PARSE_COMMIT_REQUEST of class LCL_HTML_ACTION_UTILS. If I debug it with committer name 'Christian Günter' I can see the following in the debugger.

It seems that somehow the query string isn't parsed properly. The parse_fields method delegates the work to cl_http_utility=>if_http_utility~string_to_fields which does a system call. So I'm not quite sure what the problem is.
What's really strange for me is, when I use a committer name with german 'ä' like in this example at least the commit works. But there are some encoding issues.

So the whole thing looks a bit strange to me. Maybe it's just on my machine?
In general are special characters in the committer allowed? Or aren't they?

encoding, argh
in general: I think it should work with special characters

same issue on my machine,

I see two possible solutions:
a: find a different standard class/function module that works
b: code the functionality from scratch(should be quite easy 😓 )

Ok, thanks. I'll look for possible solutions.

Ok, thanks. I'll try possible solutions.

#820


fixed_github_url_parse

original regexp patter("[a-z0-9A-Z_.-]+") very strict for URLs
change it to "[^/]", match more URLs.
only change github regexp for safe, but other have the same question.
fixed #293

Change the directory pattern only. We want to avoid making unnecessary calls to remote services.

Only change the directory pattern can not solve problem. filename can hold space or other special characters probably.

File names with spaces and special characters should work now.  The file name is split from the path before matching against the service patterns.
In any case, the user and repo parts of the path do not need to be changed.  GitHub does not allow spaces in the user name or repo name.

I have change it, thanks for your patience and explanation.

Squash the commits. Please confirm that this fixes the issue.  Perhaps there's some code elsewhere that's picky about the directory.

The issue is fixed:
use this commit test server:
http://go-talks-1096.appspot.com/github.com/dvyukov/2015-talks/Dmitry Vyukov - Go Dynamic Tools/tools.slide#1
online version:
http://go-talks.appspot.com/github.com/dvyukov/2015-talks/Dmitry Vyukov - Go Dynamic Tools/tools.slide#1

LGTM

Please squash the commits.

@adg done

Can you please make the commit message more descriptive? It also has a typo in it ("charactor" -> "character").

@adg done, sorry for my poor english.


Failed to install with standard installer on Ubuntu linux

Following the instructions on the git page to install on a fresh ubuntu image (VM running in vmware fusion on intel mac) failed (the curl download worked but the script failed in the downloader function).
I was able to resolve the issue by forcing the downloader function to use wget rather than the default curl.  This odd because as noted above curl worked fine from the command line to pull the install script.

Do you have any more info what happened? Precise error messages or something like that?

Without a reply by @ispielma this should just be closed, I think?

The bug seems (or seemed) to crop up when I have a slow internet connection (working with phone tethering in remote locations).
In those cases I was able to manually get the download to work using wget from the command line, but curl would fail.  So this is really a curl issue.  I would suggest either switching the default, or making it trivial for the user to select which is used (maybe such a change has already been made).
Ian B. Spielman
Fellow, Joint Quantum Institute
National Institute of Standards and Technology and the University of Maryland
----- WEB -----
http://ultracold.jqi.umd.edu
----- EMAIL -----
@.***
----- ZOOM -----
https://umd.zoom.us/j/7984811536
----- PHONE -----
(301) 246-2482
----- MAIL -----
UMD:
2207 Computer & Space Sciences Bldg.
College Park, MD 20742
NIST:
100 Bureau Drive, Stop 8424
Gaithersburg, MD 20899-8424  USA
----- OFFICE -----
UMD:  Physical Sciences Complex, Room 2153
NIST:  Building 216, Room B131

On Jan 5, 2024, at 07:25, Max Horn @.***> wrote:
Without a reply by @ispielma this should just be closed, I think?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

Thanks for the explanation! Hmm, PR #780 might help a bit, as it enables --retry for curl, which helps with flaky connections


GlobalPooling for 3D inputs

Hello,
I was wondering why there is GlobalMaxPooling2D and GlobalAveragePooling2D, but no 3D versions of both.
Looking at the code, one could easily extend both to work with 3D inputs. Should I start a pull request - or am I missing something here?

Feel free to make a PR.