Flutter UIKitView widget wrapped native wkwebview Click event is ignored

When I use  UiKitView wrap Native WKWebview, Click the button twice quickly
, the second click event works。
The seems like FlutterTouchInterceptingView  prevented delivery event of second click event
this is my demo:
https://github.com/ammmmmmmmmmmmm/flutter_test_webview.git

flutter doctor -v
[✓] Flutter (Channel stable, 2.5.3, on macOS 11.6 20G165 darwin-x64, locale zh-Hans-CN)
    • Flutter version 2.5.3 at /Users/xuejian/dev/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 18116933e7 (6 weeks ago), 2021-10-15 10:46:35 -0700
    • Engine revision d3ea636dc5
    • Dart version 2.14.4
    • 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 /Users/xuejian/Library/Android/sdk
✗ cmdline-tools component is missing
Run path/to/sdkmanager --install "cmdline-tools;latest"
See https://developer.android.com/studio/command-line for more details.
✗ Android license status unknown.
Run flutter doctor --android-licenses to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 13.0, Build version 13A233
• CocoaPods version 1.10.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.1)
• 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 1.8.0_242-release-1644-b3-6915495)
[✓] VS Code (version 1.62.3)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.28.0
[✓] Connected device (3 available)
• iPhone (mobile) • 00008055-001984DE3C43802E • ios            • iOS 15.1 19B74
• macOS (desktop)     • macos                     • darwin-x64     • macOS 11.6 20G165 darwin-x64
• Chrome (web)        • chrome                    • web-javascript • Google Chrome 96.0.4664.55

@ammmmmmmmmmmmm
The github repo link is empty. Please provide complete minimal reproducible code sample or repo that we can use and steps to replicate the behavior.
Thanks.

Sorry, I has pushed  my code to main branch now. that only run on ios, because this problem will only appear on iOS

@ammmmmmmmmmmmm
Please also provide steps to replicate the behavior.

Step: 1
flutter pub get
Step: 2
flutter run
Setp: 3
Click the button twice quickly
Scrren:
The number will change once.
expected：
The number will change twice.

https://user-images.githubusercontent.com/16349702/144000132-4abd3442-865e-44a5-835a-d885d749c8a0.MP4

In the video, I actually clicked the button twice quickly，But the numbers only changed once

I have the same problem.

@ammmmmmmmmmmmm
I cloned the repo but unable to run it, as I am getting below compile error:
Xcode's output:
↳
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description
    warning: Unable to read contents of XCFileList '/Target Support
    Files/Pods-Runner/Pods-Runner-frameworks-Debug-output-files.xcfilelist' (in target 'Runner' from
    project 'Runner')
    error: Unable to load contents of file list: '/Target Support
    Files/Pods-Runner/Pods-Runner-frameworks-Debug-input-files.xcfilelist' (in target 'Runner' from
    project 'Runner')
    error: Unable to load contents of file list: '/Target Support
    Files/Pods-Runner/Pods-Runner-frameworks-Debug-output-files.xcfilelist' (in target 'Runner' from
    project 'Runner')

Could not build the application for the simulator.
Error launching application on iPhone 12 Pro Max.

@darshankawar   The seem like cocopods error; try delete Podfile.lock and run pod install

Tried the repo provided and ran it on ios device and noted the same behavior, ie, double tapping on the button increments the counter once, but am not sure if this is expected behavior or a bug. Keeping it open for further insights from the team.
Steps to replicate:

Clone the repo.
flutter pub get
cd ios
pod install
cd ..
flutter run
Double click on button to see counter incrementing once.

@darshankawar Thank you!

same problem

This patch (https://gist.github.com/Voxar/5dbef0b76cc8cb55d2fe74a492d41c54) worked for me.

@cyanglaz is this a duplicate of https://github.com/flutter/flutter/issues/61991?

you can also remove some gesturerecongizers from webview.scrolleview.subviews.
like:
    Class UITapGestureRecognizerClass = NSClassFromString(@"UITapGestureRecognizer");
    Class UITapAndAHalfRecognizer = NSClassFromString(@"UITapAndAHalfRecognizer");
    for (UIView* subView in self.scrollView.subviews) {
        for(UIGestureRecognizer* recognizer in subView.gestureRecognizers){
            if([recognizer isKindOfClass:UITapGestureRecognizerClass]){
                UITapGestureRecognizer* tapRecoginzer = (UITapGestureRecognizer*)recognizer;
                if(tapRecoginzer.numberOfTapsRequired >= 2){
                    NSLog(@"elon:remove recongnizer %@",recognizer);
                    [subView removeGestureRecognizer:recognizer];
                    continue;
                }
            }
            if([recognizer isKindOfClass:UITapAndAHalfRecognizer]){
                NSLog(@"elon:remove recongnizer %@",recognizer);
                [subView removeGestureRecognizer:recognizer];
                continue;
            }
        }
   }

tips: you need call remove gesture recongizers function at didFinishNavigation and when keyboard hide event fired
like:
- (void)webView:(WKWebView *)webView didFinishNavigation:(WKNavigation *)navigation {
  if (!self.shouldEnableZoom) {
    NSString *source =
        @"var meta = document.createElement('meta');"
        @"meta.name = 'viewport';"
        @"meta.content = 'width=device-width, initial-scale=1.0, maximum-scale=1.0,"
        @"user-scalable=no';"
        @"var head = document.getElementsByTagName('head')[0];head.appendChild(meta);";

    [webView evaluateJavaScript:source completionHandler:nil];
  }
  if([webView isKindOfClass:[FLTWKWebView class]]){
    FLTWKWebView* fltWKWebView = (FLTWKWebView*)webView;
    [fltWKWebView removeSpecialGestureRecognizer];
  }
  [_methodChannel invokeMethod:@"onPageFinished" arguments:@{@"url" : webView.URL.absoluteString}];
}

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleKeyboardWillHide:) name:UIKeyboardWillHideNotification object:nil];

- (void)handleKeyboardWillHide:(NSNotification *)notification {
    [_webView removeSpecialGestureRecognizer];
}

@haoqiangyu  Thanks,I hava set DelayingGestureRecognizer.enable=NO;  like this:
`

(UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event {
NSArray *gestures = self.superview.gestureRecognizers;
for (int i = 0; i < gestures.count; i++) {
UIGestureRecognizer *gest = gestures[i];
if([gest isKindOfClass: NSClassFromString(@"DelayingGestureRecognizer")]) {
gest.enabled = NO;
}
}
return [super hitTest:point withEvent:event];
}
`

I'm not sure if it will cause other issue, At least it solved my problem for now

@swordyy7 If you set DelayingGestureRecognizer.enable=NO, you won' be able to prevent click events on the webview when a click event happened on a flutter button covering the webview. In this case, both webview and the flutter button will receive/handle the event.
If there is no such UI in your app, this is fine.
May I ask why you are implementing your own WKWebView UIkitView? Have you tried https://pub.dev/packages/webview_flutter?

@cyanglaz
Same problem with the webview_flutter plugin.
His example shows that the simplest native view can reproduce the problem of platform view on iOS.
I think this is a bug of WKWebView. The double-tap gesture will cause the transition from the gesture recognizer's failed state to possible to have a delay in verifying the double-tap. During this delay, events such as touchstart in the webview are not fired. Sorry for my poor english.

@cyanglaz Same problem with the webview_flutter plugin.

@haoqiangyu I create a new Swiftproject and I'm use wkwebview. when double-tap screen , js can can receive twice events

@haoqiangyu I create a new Swiftproject and I'm use wkwebview. when double-tap screen , js can can receive twice events
我用 xcode 创建了一个纯swift 项目，快速点击两次按钮， webview 也会处理两次。 这个应该不是wkwebview的问题

Because your newly created iOS project does not add a new gesture recognizer to wkwebview, and the flutter engine adds two internally, and the flutter engine has a state switch in the gesture recognizer.
See https://github.com/flutter/engine/blob/main/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews.mm
flutter引擎里面有对platform view的添加单独的手势识别器，而你新建的项目没有。

对啊，所以问题应该出在flutter的这个手势处理上

对啊，所以问题应该出在flutter的这个手势处理上

调试下这个手势处理的代码，我认为用法没错，是手势识别器在从failed状态切换到possible状态时存在的问题

If you figure out a fix, please consider sending a PR 🙂

@jmagman The above is just a temporary solution as some of the WKWebView's gesture recognizers are removed.

Having same problem with webview_flutter plugin. Is it possible to bypass the issue without patching (changing) Flutter/webview_flutter library code? E.g. through iOS method channel or similar. There are some code examples here, but I'm not too familiar with Objective-C or where/how to use it.

Having same problem with webview_flutter plugin. Is it possible to bypass the issue without patching (changing) Flutter/webview_flutter library code? E.g. through iOS method channel or similar. There are some code examples here, but I'm not too familiar with Objective-C or where/how to use it.

fix code at below file:
webview_flutter/webview_flutter_wkwebview/ios/Classes/FlutterWebView.m

like this:
@implementation FLTWKWebView

- (void)setFrame:(CGRect)frame {
  [super setFrame:frame];
  self.scrollView.contentInset = UIEdgeInsetsZero;
  // We don't want the contentInsets to be adjusted by iOS, flutter should always take control of
  // webview's contentInsets.
  // self.scrollView.contentInset = UIEdgeInsetsZero;
  if (@available(iOS 11, *)) {
    // Above iOS 11, adjust contentInset to compensate the adjustedContentInset so the sum will
    // always be 0.
    if (UIEdgeInsetsEqualToEdgeInsets(self.scrollView.adjustedContentInset, UIEdgeInsetsZero)) {
      return;
    }
    UIEdgeInsets insetToAdjust = self.scrollView.adjustedContentInset;
    self.scrollView.contentInset = UIEdgeInsetsMake(-insetToAdjust.top, -insetToAdjust.left,
                                                    -insetToAdjust.bottom, -insetToAdjust.right);
  }
}

- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event {
    NSLog(@"hit test firing");

    NSArray *gestures = self.superview.gestureRecognizers;

    NSLog(@"gestures2:%@",gestures);

    for (int i = 0; i < gestures.count; i++) {
        UIGestureRecognizer *gest = gestures[i];
        if([gest isKindOfClass: NSClassFromString(@"DelayingGestureRecognizer")]) {
            gest.enabled = NO;
        }

    }

   return [super hitTest:point withEvent:event];
}

@end

`FLTWKWebview` implementation add
 `- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event` method

to disable DelayingGestureRecognizer

It seems that for newer webview_flutter_wkwebview versions, this file must be changed: https://github.com/flutter/packages/blob/main/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFWebViewHostApi.h
Using code by @swordyy7 and ChatGPT, ended up with this solution so that you don't have to change third-party library code:
Create new file FWFWebView+HitTest.swift:
import Foundation
import ObjectiveC.runtime
import UIKit

extension FWFWebView {
    @objc dynamic func custom_hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
        if let gestures = superview?.gestureRecognizers {
            for gesture in gestures {
                if NSStringFromClass(type(of: gesture)) == "DelayingGestureRecognizer" {
                    gesture.isEnabled = false
                }
            }
        }

        return custom_hitTest(point, with: event)
    }

    private static let swizzling: Void = {
        let originalSelector = #selector(hitTest(_:with:))
        let swizzledSelector = #selector(custom_hitTest(_:with:))

        let originalMethod = class_getInstanceMethod(FWFWebView.self, originalSelector)
        let swizzledMethod = class_getInstanceMethod(FWFWebView.self, swizzledSelector)

        let didAddMethod = class_addMethod(
            FWFWebView.self,
            originalSelector,
            method_getImplementation(swizzledMethod!),
            method_getTypeEncoding(swizzledMethod!)
        )

        if didAddMethod {
            class_replaceMethod(
                FWFWebView.self,
                swizzledSelector,
                method_getImplementation(originalMethod!),
                method_getTypeEncoding(originalMethod!)
            )
        } else {
            method_exchangeImplementations(originalMethod!, swizzledMethod!)
        }
    }()

    @objc dynamic class func swizzleHitTest() {
        _ = swizzling
    }
}

Add this line to Runner-Bridging-Header.h:
#import "FWFWebViewHostApi.h"

Then active the swizzle in AppDelegate.swift (or wherever needed):
FWFWebView.swizzleHitTest()


iOS Fix for Non-GET Requests

Hi There,
This is a fix for the iOS issue regarding POST (or other) request types with custom header data. I've verified this works on iOS 11+ devices, but haven't been able to test with older version.

Looks good, thanks!
Just published 3.0.1 to npm.


[#304] syncing QE with the new Atom DB

Closes #304
Making das-query-engine compatible with the new das-atom-db.

@angeloprobst
I revisited the code in this branch checking the way we use parameters down the line after DAS.query() is called.
parameters: Optional[Dict[str, Any]] = None,

IMO we should remove Optional and default parameters to {} in this declaration and in the declarations of concrete query engine's query() as well because we could avoid checks for None which are just making the code less clear.

IMO we should remove Optional and default parameters to {}

Done.


creative crafter advancement completes on world creation

1.18.1
Title
might be caused by no recipe advancements

https://www.curseforge.com/minecraft/mc-mods/creative-crafter/files/3632923


The problem of CircleCI

Description
someone can't trigger the build of CircleCI
Additional Information
#336 https://github.com/cryptape/cita-common/pull/228 https://github.com/cryptape/cita-common/pull/236

@zhouyun-zoe Any progress?

https://github.com/cryptape/cita-common/pull/247
I can not use it either.

Could it be solved before the holiday? @zhouyun-zoe
https://github.com/cryptape/cita/pull/387
and i still can not use CI of cita-common.
Please give me some info about the progress.
and i will consider to change the CI.

If you have no time to deal this. Please let me know

I sent an email to ask for Zoom meeting one more(they just ignore my requirement in the last email).
Their work is really inefficient so it's really hard to get contact with their support every day.
I'll keep this ticket and I'm thinking if you can open another ticket for the same problem.

I've already to ask for a new ticket.
And i'll try to use AppVeyor

Problem solved.
Currently, when the forked project connects to CircleCI, the main project can't trigger a build by a pull request even the main project is turning on build forked pull request option.
So,  if your commit cannot trigger the build of CI, check if this commit was triggered by the forked repo build. Click into your own CI setting(such as:https://circleci.com/gh/kaikai1024/cita-common/edit), unfollow the repo and the problem can be solved.


[BACKLOG-26907] Only way that an ArrayIndexOutOfBounds -1 can happen …

…is if snapShotList is empty.  Only way that can happen is if two threads are in the IF block concurrently.

Build Completed
:fire: This pull request has some issues. It would be preferable to fix them in order for it to be just perfect. See below for more details. Some links are also available below for further assistance in addressing those issues.
Build Commands
mvn -B -f 'pom.xml' -pl 'engine' -P '!assemblies' -Dsurefire.runOrder=alphabetical -Daudit -amd clean install

Cleanup Commands
mvn -B -f 'pom.xml' -pl 'engine' -P '!assemblies' -amd build-helper:remove-project-artifact

Changed files
  engine/src/main/java/org/pentaho/di/trans/Trans.java

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

:warning: Coverage Changes (click to expand)
org.pentaho.di.trans.steps.datagrid.DataGridMeta

Branch Change: -2% :small_red_triangle_down:
Complexity Change: -1.7% :small_red_triangle_down:
Instruction Change: -0.2% :small_red_triangle_down:

org.pentaho.di.trans.steps.dimensionlookup.DimensionLookupMeta

Method Change: -1% :small_red_triangle_down:

org.pentaho.di.trans.steps.groupby.GroupByMeta

Branch Change: -2% :small_red_triangle_down:
Complexity Change: -2.1% :small_red_triangle_down:
Instruction Change: -0.3% :small_red_triangle_down:
Line Change: -0.7% :small_red_triangle_down:

org.pentaho.di.trans.steps.ifnull.IfNullMeta

Branch Change: -2% :small_red_triangle_down:
Complexity Change: -1.9% :small_red_triangle_down:
Instruction Change: -0.2% :small_red_triangle_down:


Possible to use another pin?

Hey, I need both GPIO 2 and 3 for a GroveSensor module over I2C, is there any other pins the wakeup works with?
Kind regards,
Matthew

Unfortunately not for full functionality. I just clarified this in the readme.


Support for FNORM FPR encoding

Does the BF16 extension support the FNORM FPR encoding?
FP64 and FP32 have corresponding unique load and store operations to match the operand data size.  Overloading FP16 to support BF16 while matching operand size does not specify the end format.

As is started in the Zfh and Zfhmin extension FLH and FSH do not modify the bits being transferred.
FLH is required to NaN-box the input 16-bit data while FSH ignores all but the least significant 16 bits.
Internal representations are up to the implementer as long as they meet these requirements.


Enzyme problem. Has no exported member 'AllHTMLAttributes'

I cloned the respository.
npm i
npm run start.
Failed to compile.
Error in<EMAIL_ADDRESS>(13,35): error TS2305: Module '"C:/projects/work/TypeScript-React-Starter/node_modules/@types/react/index"' has no exported member 'AllHTMLAttributes'.
I am running windows 10. npm 5.3, node v6.9.5.

Same here

To solve the problem.
Install npm-check-updates (https://www.npmjs.org/package/npm-check-updates), then jump into your project folder and run:
npm-check-updates
And to update and save changes to your package.json file:
npm-check-updates -u


reformat whitespace and add github link to credits

travis.yml requires spaces instead of tabs
add github profile link to credits for steve martinelli

Sorry it got a bit messy, because I added multi-languages support, but first, the rendering didn't come out nice and second the travis script doesnt seem to allow multi-language sub-directories, so I restored the single language and moved the languages/japanese to the root.

THe gitbook doesn't build. Is this intentional?
Error: ENOENT: no such file or directory, scandir '/Users/johnzaccone/remkointro/workshop/en'

Links to next lab (at bottom of each lab README) in the jp instructions are broken


PHOENIX-7223  Make Sure Tools Always Close HBase  Connections on Exit

Shall we include this with 5.2.0?

It's only critical ina very specific scenario. (when using Netty in ZK)
It's nice to have, but only if it does not cause you to do extra work, @virajjasani .

I've committed this to master now, @virajjasani .
I'm going to set the fixed version to 5.2.0, as I'm not sure if you've cut the 5.2 branch yet.

merged manually

5.2 branch is cut, will cherry-pick this.

Though I still need to bump master branch's version to 5.3.0 to effectively distinguish master and 5.2 branches.


Fix save

The "diff" image was saved after pressing the download button, not the actual plot

The code as written when this file was changed shows the filename always ending with '.png' but shouldn't this change depending on the default value listed in the matplotlibrc file?

This is a good point. The relevant entry is in plt.rcParams['savefig.format'], but I'm not sure how that translates to the javascript code.

Do you mind opening a specific issue for this? :)

Done #138


Fixing a couple minor test issues in xArchive and xWindowsFeatureSet

This change is

Codecov Report

Merging #337 into dev will not change coverage.
The diff coverage is n/a.

@@         Coverage Diff         @@
##            dev   #337   +/-   ##
===================================
  Coverage    66%    66%
===================================
  Files        26     26
  Lines      3686   3686
  Branches      4      4
===================================
  Hits       2444   2444
  Misses     1238   1238
  Partials      4      4

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 75fba61...5360c83. Read the comment docs.

Reviewed 3 of 3 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved, some commit checks failed.

Comments from Reviewable


Add requirements section in readme

I've noticed that the install script requires cargo to be installed which requires rust to be installed, why not to add this in requirements section before dive into installation and get error like my case !?

What error did you get? Can you send a screenshot.

Ok i will consider that.

thx


[items] Image/logo only margin is too much

Is this a BUG REPORT or FEATURE REQUEST?:
bug
What happened:
Currently using image only mode the margin on the bottom and top of each image is too much.
Showcasing company logos or so takes up too much space.
Both on mobile and in full screen.
What you expected to happen:
Reduce top and bottom margin for image only things.
How to reproduce it (as minimally and precisely as possible):
See https://about.nzt.capital/ as an example.

The only way I can think to fix this is a nested loop in the template which would be messy. Currently we have a height of 200px so the images would line up. Is it okay if we have nested loops?

Also about.nzt.capital looks really nice. I don't think fixing the issue would improve the design in there.

Going down to say 160px wouldn't work in general?
Also probably a no on nested loops :P
There is always the option to go with portfolio, so that would be another option, but it just feels like too much whitespace in the various screen sizes.


Add Papr support

papr support copied in and modified from buildah

@mheon @rhatdan I made some comments https://github.com/projectatomic/libpod/pull/5#pullrequestreview-73608149 that got lost.  May be relevant here, I dunno.

@jlebon Any idea why papr is not running?

@cgwalters Any ideas why the  papr tests are not running now?

@jlebon Looks like I hung up papr again?  Or it is just slow?

@rhatdan It's just slow :(. Push notifications aren't going through currently, so it can be 5-10 minutes before the next poll picks it up.

@jlebon Just tell me to "cool my jets" thanks.

@cevich @mheon @baude PTAL

LGTM

@TomSweeneyRedHat PTAL

@umohnani8 PTAL

Tests are green, LGTM!


Missing line in ibm/isam/roles/set_ldap_root_pw/tasks/main.yml

Missing the first "- name: " line in ibm/isam/roles/set_ldap_root_pw/tasks/main.yml:
 ibm.isam.isam:     log: "{{ log_level | default('INFO') }}"     force: "{{ force | default(False) }}"     action: ibmsecurity.isam.web.embedded_ldap.admin.set_pw     isamapi:   notify: Commit Changes
ERROR! The tasks/main.yml file for role 'set_ldap_root_pw' must contain a list of tasks
Also missing the "password" parameter for the isamapi call.

Ansible-lint can now run without crashing.  This should fix this issue.

For some reason, I'm having problems with my local Git and I can't seem to update my forked repo to push a PR.
Anyways, this issue should still be opened because the "password: "{{ set_ldap_root_pw_password }}"" is still missing for the isamapi call.
Sorry for the late answer.


[Docs] Create migration guides

We can use this issue as an umbrella for migration documentation for the experimental work for IDL elements. We need to provide documentation for migration of the following packages:

Colors

SCSS

Mostly around variable names and having a tool to map those over

JavaScript

Document any differences in the JS export

Write migration table for old tokens to new

Grid

SCSS

Need to do a high-level summary of why things are changing, and how to start moving over

Icons

This is a complete re-write and most likely will be a breaking change for everyone. There is a lot of fundamental shifts in the design of this project that we should officially speak to
https://github.com/IBM/carbon-elements/issues/217

Type

This is a complete re-write and shift, will need to explain why and provide a compat table to help people move over

Box folder for tables: https://ibm.ent.box.com/folder/64099907410

Moving over into: https://github.com/carbon-design-system/issue-tracking/issues/98


Hardcode bridge addresses via immutable #98

@satoshi-lifi https://github.com/spearbit-audits/LiFi/issues/79#issuecomment-1254949953


Add files via upload

Part of https://github.com/Ullaakut/cameradar/issues/258
Translated the readme file into Russian

@VoroninMichael Hello :) Let me know if you need help with fixing this PR! Thanks again!

Hi @VoroninMichael, since you didn't answer I took the liberty of fixing your branch myself. I hope that's okay for you. This way we can get this merged now 👍 Have a nice day and thanks again!


Fix docs

Still not sure why the PkgTemplates.jl output didn't Just Work but following this helped get it working:
https://www.youtube.com/watch?v=Vi4Ntd_Vf4A


Added support for ssh signed commits and completed gpg signed commit work

Building upon the work done in PR 428 to add support for SSH signed commits.
Updated Documentation to include instructions and examples for adding an SSH signing key along with links to repository provider documentation for setting up commit verification.
Updated deployment to include volumes for SSH key secrets and the respective volume mounts.

Hey @dlactin, thanks for this PR.
I was wondering what the value-add for this would be, because Argo CD would not be able to validate those commits signed by SSH just yet?

Hey @jannfis, in our case we require signed commits on our infrastructure repositories. So we are unable to have image updater commit to any of our protected branches without this change.

Thanks for the clarification, @dlactin. The feature makes sense to me, then. Also, I guess with Source Verification Policies hopefully coming to Argo CD, we could as well integrate verification of SSH signatures and Image Updater would already know how to do sign using SSH then.
+1 from me for this feature. Please give us some time to review.

Just as a heads up, this is good to go. Waiting for https://github.com/argoproj-labs/argocd-image-updater/pull/737 to be merged, then we'd need to rebase this one on top of the Git client changes. It shouldn't be too much work though.

@dlactin Thank you for your patience! #737 has been merged, and as expected left a couple of conflicts for this PR. I can support you to resolve them, or let you do it on your own. Please let me know what you prefer.

@dlactin Thank you for your patience! #737 has been merged, and as expected left a couple of conflicts for this PR. I can support you to resolve them, or let you do it on your own. Please let me know what you prefer.

Hey, not a problem!
I won't have time to finish this up until sometime next week so feel free to resolve them if you'd like! Otherwise I'm happy to pick this back up later.


Exporting the hccap?

Is there a way you can export the captured handshake for manual cracking?

All captured handshakes are saved to .hs/ in the airbash installation directory. To crack them manually you can copy them elsewhere or use hashcat with the path to the hccapx file.

Since this issue seems to be solved, I am going to close it. Feel free to reopen if needed.


Segmentation fault when using Sessionbrooker and DNS round robin

Hello!
We have a server farm with session brooker and DNS round robin.
http://technet.microsoft.com/en-us/library/cc772418(v=ws.10).aspx
NSLOOKUP
nslookup farm.address.local
Server: X.X.X.2
Address: X.X.X.2#53
Name: farm.address.local
Address: X.X.X.7
Name: farm.address.local
Address: X.X.X.8
Name: farm.address.local
Address: X.X.X.6
Name: farm.address.local
Address: X.X.X.5
We use the following version:
apt-cache showpkg remmina
Package: remmina
Versions: 1.0.0-1ubuntu6.1
Once connected and I try to reconnect I encounter error below.

With latest master branch seems to work...

I've been using this switch "/load-balance-info:tsc://SERVER.FARM.COM" to
solve Sessionbrooker with DNS round robin problem
As well as supplying the parameters through GUI as below script.
###############################################
$ cat xfreerdp.config
#Add special config parameters to connect to your server.
#Write it in one line!
#+fonts -sec-nla /rfx /sound:sys:alsa /cert-ignore /size:1280x720
/f /cert-ignore /d:DOMAIN /sec-nla /load-balance-info:tsc://SERVER.FARM.COM
/kbd:0x0000041D
###############################################
/opt/scripts$ cat xfreerdp.sh
#!/bin/sh
config=$(cat /opt/config/xfreerdp.config|grep -v '#'|tr -d '\n')
if [ -z $config ] ; then
#there is no parameter file specified or is empty, using default:
config=" +fonts -sec-nla /rfx /sound:sys:alsa /cert-ignore
/size:1280x720 "
fi
get input data from user username and password by gui to bypass
roundrobin ts redirect problem
when password passed to first server and session redirected and user
needs to enter credentials second time
user=$(zenity --forms --title="Logon to SERVERFARM" --text="Supply your
username and password to logon to our servers" --add-entry="Username"
--add-password="Password")
server=$(cat /opt/config/xfreerdp.server|grep -v '#'|tr -d '\n')
if [ -z $server ] ; then
#there is no server configured, quering user:
server=$(zenity --entry --title="Server address" --text="Enter the
RDP Server name or IP" --entry-text="$(cat /opt/config/xfreerdp.server|grep
-v '#'|tr -d '\n')")
#set the server ip/name to last entered as default:
echo $server > /opt/config/xfreerdp.server
fi
#check if server ip/name is passed in cmd line
if [ ! -z $1 ] ; then
server=$1
fi
###################Starting xFreeRDP
xfreerdp
$config
/u:${user%|}
/p:${user#|}
/v:$server
  --

☆     Johan "Jo" Nidelius
☼    have a sunshiny day    ☼
♥     +46 (0) 730-459949
✈    http://www.nidelius.com
--
On Sat, Feb 18, 2017 at 11:03 PM, trentasis<EMAIL_ADDRESS>wrote:

With latest master branch seems to work...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/FreeRDP/FreeRDP/issues/965#issuecomment-280878501,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAItJWsEPExGIrc-wyN6Gzo2hlHzWWz4ks5rd2q_gaJpZM4AbJgY
.

So can we close this issue then?

Closing due to lack of feedback.


Inclusive language

Add a GitHub action that runs woke on the documentation files.

Failed action: https://github.com/lxc/lxd/runs/6287044868?check_suite_focus=true

Documentation preview available at: https://linuxcontainers.org/lxd/docs/pr.10360/

Testsuite passed


any way to disable certain keys?

I've got left_shift and left_control damaged by water which causes these two keys to be pressed all the time. So [grabber] gives warning that 'There are keys pressed down'.
I don't need these keys so instead of remapping them wish I could disable it.

would 'vk_none' help?

 Looking at the code I figured "out" should work. This is my json config which works.
{     "profiles": [         {             "name": "Default profile",             "selected": true,             "simple_modifications": {                 "backslash": "out"             }         }     ] }


service bus configuration configureWithConnectionString has an extra parameter configuration

With connection string, it doesn't make sense to allow a configuration to be passed as an input parameter.
public static Configuration configureWithConnectionString(String profile, Configuration configuration,
    String connectionString)

it just need profile and connectionString, two parameters should be enough.

Sorry to be late, but why is this obsolete?


Show information why test failed

Currently if test fails, it just say error with read color.
It is a bit hard to debug this, since we have no way to know what was wrong.
It is extremely valuable to show some context of failure.
For example, we expected A but got B. Or we expected A but timed out.

I have implemented the better output function on 3aea0c721804d6b0e68e2a549b63025a889162f1.
Thank you for your feedback and support!

That's awesome. Thank you!


Create Relay doc

Set up the Relay doc for the community. Content covers both Relay website and Relay add-on

I will work on this next Tuesday. Thanks for the review.

What's the status on this? Should we close it and reopen when ready?


Fleet: Unable to assign clusters to a new workspace

Setup

Rancher version: v2.6 1d2b746 3/2/2022
Browser type & version: Firefox, latest, linux

Describe the bug

While on the Continuous delivery page -> clusters I cannot assign any clusters to a new workspace. I can check off one or more and click the "Assign to..." button and get a 200 OK on my PUT request but nothing happens. No errors in browser dev console or in rancher server logs.
To Reproduce

Create one or more downstream clusters
Create a new workspace
On the Clusters page in CD, try to assign it to the new workspace you created. This creates a PUT request that gets a 200 OK response.

Result
Nothing happens. The PUT request is sent and ack'd with 200 OK, but we don't see the cluster actually get assigned to the new workspace in the UI - even if refresh the page.
Expected Result

I expected the cluster to get assigned to the workspace upon a 200 OK.
Screenshots

Additional context
Since the request appears to go thru correctly, I suspect this might be some issue in Vue / JS?

@aalves08 This is a backend issue, right? Can we link it and move this to backend-blocked.

Correct @nwmac . Here is the backend issue: https://github.com/rancher/rancher/issues/36132

Related backend work now pushed to 2.6.5.

As per comment on BE issue, this will be pushed out from 2.6.6:
https://github.com/rancher/rancher/issues/36132#issuecomment-1137848982

Backend issue now closed. I don't think there's anything UI side to do, so moving this to test

Verified on v2.8-head ID: 5b42ca5 ✅
Setting a cluster to a new workspace is working as expected and is actually re-assigning the cluster to the new workspace.


Client Crash, Forestry Ambrosia

Hello! A user of mine reported a soft-crash to main menu when clicking Forestry Ambrosia in both the no filter book and Cooking for Blockheads crafting table, here's the original report:
Issue Description
As per my previous description, when using the Cooking for Blockheads #no filter book and clicking the recipe for Forestry Ambrosia the game crashes ("Connection Lost...") out to a searching for server screen in the Minecraft app (I assume this might be because the world is treated as a server in the internal workings of Minecraft, but to be sure, I am not running this on a server).  Re-logging into the world using normal single player mode and everything is ok. The crash is repeatable and consistent.
Mod versions

CookingForBlockheads_1.12.2-6.4.69
Forge 1.12.2-<IP_ADDRESS>81

Logs
Snippet of the latest.log, what I think is helpful
entire latest.log

I can't reproduce it (at least not with just Forestry and Cooking for Blockheads) and I'm not sure what could be causing it. Is there anything special with the Ambrosia recipe in your pack?
This is the recipe I'm getting:

Nope, it's the normal recipe. However if you can't reproduce, I'll just close the issue, thanks for checking :)


iOS devices crashes on version 5.0.0 and 5.0.1

Describe the bug
iOS devices on both iOS 15 and iOS 14 started crashing when upgraded to version 5.0.0 and 5.0.1
It is happening in release mode only and I can't reproduce it. But it is happening a lot.
Screenshots

Smartphone:

Device: [e.g. iPhone6]
OS: iOS
Version 15, 14

Additional context

These are the logs from firebase crashylitcs
0  agora_rtc_engine               0x7b30 -[AgoraRtcChannelPlugin dealloc] + 36
1  agora_rtc_engine               0x87cc -[AgoraRtcEnginePlugin .cxx_destruct] + 52
2  libobjc.A.dylib                0x7d28 object_cxxDestructFromClass(objc_object*, objc_class*) + 116
3  libobjc.A.dylib                0x4b74 objc_destructInstance + 80
4  libobjc.A.dylib                0xe1c8 _objc_rootDealloc + 80
5  agora_rtc_engine               0x81e4 -[AgoraRtcEnginePlugin dealloc] + 108
6  libsystem_blocks.dylib         0x17e8 _Block_release + 200
7  Flutter                        0x142bc (Missing UUID be105c8b7c053a8ba51f83e291732357)
8  libsystem_blocks.dylib         0x17e8 _Block_release + 200
9  Flutter                        0x3a7b4 (Missing UUID be105c8b7c053a8ba51f83e291732357)
10 Flutter                        0x3a800 (Missing UUID be105c8b7c053a8ba51f83e291732357)
11 Flutter                        0x42ecc (Missing UUID be105c8b7c053a8ba51f83e291732357)
12 Flutter                        0x41874 (Missing UUID be105c8b7c053a8ba51f83e291732357)
13 Flutter                        0x3dd228 (Missing UUID be105c8b7c053a8ba51f83e291732357)
14 Flutter                        0x3dcbac (Missing UUID be105c8b7c053a8ba51f83e291732357)
15 Flutter                        0x13e00 (Missing UUID be105c8b7c053a8ba51f83e291732357)
16 Flutter                        0xff4c (Missing UUID be105c8b7c053a8ba51f83e291732357)
17 CoreFoundation                 0x2af88 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 28
18 CoreFoundation                 0xc6c3c ___CFXRegistrationPost_block_invoke + 52
19 CoreFoundation                 0x99ff4 _CFXRegistrationPost + 456
20 CoreFoundation                 0x40df4 _CFXNotificationPost + 716
21 Foundation                     0x1af58 -[NSNotificationCenter postNotificationName:object:userInfo:] + 96
22 UIKitCore                      0xf5513c -[UIApplication _terminateWithStatus:] + 300
23 UIKitCore                      0x63c080 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 128
24 UIKitCore                      0x830fc8 -[_UISceneLifecycleMultiplexer forceExitWithTransitionContext:scene:] + 224
25 UIKitCore                      0xf51538 -[UIApplication workspaceShouldExit:withTransitionContext:] + 212
26 FrontBoardServices             0x4f780 __63-[FBSWorkspaceScenesClient willTerminateWithTransitionContext:]_block_invoke_2 + 80
27 FrontBoardServices             0xa06c -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 240
28 FrontBoardServices             0x4f718 __63-[FBSWorkspaceScenesClient willTerminateWithTransitionContext:]_block_invoke + 132
29 libdispatch.dylib              0x4670 _dispatch_client_callout + 20
30 libdispatch.dylib              0x8128 _dispatch_block_invoke_direct + 264
31 FrontBoardServices             0xb9c4 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 48
32 FrontBoardServices             0xad8c -[FBSSerialQueue _targetQueue_performNextIfPossible] + 220
33 FrontBoardServices             0xf414 -[FBSSerialQueue _performNextFromRunLoopSource] + 28
34 CoreFoundation                 0xbb0d0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
35 CoreFoundation                 0xcbd90 __CFRunLoopDoSource0 + 208
36 CoreFoundation                 0x6098 __CFRunLoopDoSources0 + 268
37 CoreFoundation                 0xb8a4 __CFRunLoopRun + 820
38 CoreFoundation                 0x1f468 CFRunLoopRunSpecific + 600
39 GraphicsServices               0x138c GSEventRunModal + 164
40 UIKitCore                      0x5195d0 -[UIApplication _run] + 1100
41 UIKitCore                      0x297f74 UIApplicationMain + 364
42 Runner                         0x7860 main + 7 (main.m:7)
43 ???                            0x1016ddaa4 (Missing)```

</details>

you should use .dsym file to get which line crashed

you should use .dsym file to get which line crashed

I did upload them from local archives but apparently, the UUIDs don't match. And I couldn't download them from AppStore connect.
I downgraded to version 4.0.7 and the crashes stopped.

Fine, We will do more testing for it.

This banner is showing in firebase crashlytics. Unfortunately, I am facing that issue where I can't download the .dsym files.

We experienced the same crash with version 5.0.1 in iOS 15 and 14. It should be in line 30.

We have the exact same error since version 5.0.0.
The app crashes as soon as I close the app (I mean really closing it, not just in background)

Thanks for the report, this will be fixed in the next release.

I'm facing the same issue. Hope this gets fixed soon

https://github.com/AgoraIO/Agora-Flutter-SDK/issues/634#issuecomment-1080624744

We have the exact same error since version 5.0.0. The app crashes as soon as I close the app (I mean really closing it, not just in background)
I don't know if it's the same here.
The following console log was displayed in Xcode when destroying a screen using agora in 5.0.0.
(I actually read the AgoraRtcEngine instance at the point where the screen is being destroyed, dispose, etc.)

[2022-04-05 11:43:34.284] [0] [debug] /tmp/jenkins/IRIS-SDK/rtc/cxx/src/iris_rtc_engine.cc:104 CallApi api_type 6 params {}
[2022-04-05 11:43:34.285] [0] [debug] /tmp/jenkins/IRIS-SDK/rtc/cxx/src/iris_rtc_engine.cc:114 CallApi ret 0 result
[2022-04-05 11:43:34.286] [0] [error] /tmp/jenkins/IRIS-SDK/rtc/cxx/src/internal/rtc_engine_event_handler.cc:53 onError err 18 msg nullptr
[2022-04-05 11:43:34.288] [0] [debug] /tmp/jenkins/IRIS-SDK/rtc/cxx/src/iris_rtc_engine.cc:104 CallApi api_type 1 params {"sync":true}
[2022-04-05 11:43:34.315] [0] [debug] /tmp/jenkins/IRIS-SDK/rtc/cxx/src/iris_rtc_engine.cc:114 CallApi ret 0 result

Thanks for the report, this will be fixed in the next release.

@littleGnAl  any plan for the next release, please?

This issue is fixed, pls try upgrade agora_rtc_engine: 5.1.0
https://pub.dev/packages/agora_rtc_engine


Revert to manual quoting to make sure env variables can be used as part of other env variables when prefixing

Revert "Prefer escapeShellArg over manual quoting"
This reverts commit a773f912ea85cdfa04a13070431abfc0c19ce79f.
Fixes #258.

thanks!
bors merge


Jenkins 28986 - Improve support for Extended Email Plugin

I've seen that there are some other Extended Email improvements in the pull requests, but anyway here's what we're using at Criteo (we rebased our patches on top of 1.42). Please tell me what to do to get this accepted, if possible backwards-compatibility-wise.

Thank you for this pull request! Please check this document for how the Jenkins project handles pull requests.

replaced by #730


Resource editor, doesn’t restrict the resource type to String, which is the only resource type supported in .NET Core

Reported by @DamianEdwards

If I read the code correctly - this was supposed to be disabled based on whether the types existed or not in the target framework, so might just work once I've fixed https://github.com/dotnet/roslyn-project-system/issues/660. However, in saying that, in portable it didn't - so we disabled the commands manually via a priority command handler but this was real hack.
Instead, we should do it based on the DTAR look up via the type if that's not what it already does.

Okay, I read the code wrong. This DTAR code gen check just switches between pulling a Bitmap out of the resource vs pulling a byte[] out of the resource via ResourceManager.GetObject. Given that method doesn't actually exist, we need to do something different here.


The specified RequiredModules entry 'ReverseDSC' in the module manifest

ISSUE TITLE:

I'm downloading the 4.5.1 SharePointDsc module, to a local detonation repo, then to a local repo available for internal nodes (computers)
ISSUE DESCRIPTION (this template):
Then i get this: The specified RequiredModules entry 'ReverseDSC' in the module manifest
Details of the scenario you tried and the problem that is occurring
Verbose logs showing the problem
Suggested solution to the issue
The DSC configuration that is used to reproduce the issue (as detailed as possible)
# insert configuration here

The operating system the target node is running

Version and build of PowerShell the target node is running

Version of the DSC module that was used

Hi @IlleNilsson, you are correct: With the release of v4.5/v4.5.1, the ReverseDsc module is required, since we have added native ReverseDsc support to SharePointDsc.
However, since this is only required when actually doing an export, I have changed this requirement to specifically check for the existence of the module when running an export. So with the release of v4.6, ReverseDsc is no longer required for deploying configurations.
Please add the ReverseDsc module to your repo as well or wait for v4.6.

Thanks

From: Yorick Kuijs @.>
Sent: Wednesday, March 17, 2021 10:45:07 AM
To: dsccommunity/SharePointDsc @.>
Cc: Ilian Nilsson @.>; Mention @.>
Subject: Re: [dsccommunity/SharePointDsc] The specified RequiredModules entry 'ReverseDSC' in the module manifest (#1295)
Hi @IlleNilssonhttps://github.com/IlleNilsson, you are correct: With the release of v4.5/v4.5.1, the ReverseDsc module is required, since we have added native ReverseDsc support to SharePointDsc.
However, since this is only required when actually doing an export, I have changed this requirement to specifically check for the existence of the module when running an export. So with the release of v4.6, ReverseDsc is no longer required for deploying configurations.
Please add the ReverseDsc module to your repo as well or wait for v4.6.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/dsccommunity/SharePointDsc/issues/1295#issuecomment-800943608, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AID6F4CJJGJDVZL6FKTURS3TEB22HANCNFSM4Y6XPNUA.


Request for Feedback on Attribution and Modifications for QRF Extrapolation Example

Hello authors,
Thank you for your outstanding work and commitment to reproducibility. As the lead maintainer of the quantile-forest package, I was thrilled to see your experiments make use of it. I intend to feature a self-contained adaptation of your work as a prime example of extrapolation using quantile regression forests. You can view the proposed example here (to replace the current one here). Please let me know if you have any preferences regarding attribution or if you identify any corrections needed in my adaptation.

Hi Reid,
Happy to see the work being applied. I just took a quick look and your adaption looks fine to me. If I understood correctly you changed the rf weights in the local polynomial to qrf weights, is that correct? If so you should be aware that the derivative estimation is somewhat delicate (particularly in multi-dimensions) and we did have some trouble when not using the adapted linear regression splitting trees (in one-dimension what you do should be fine though).
Best,
Niklas

Thanks so much for the feedback, Niklas. Your understanding is correct. I'll clearly document the limitations you've highlighted within the code and recommend users to refer to your original implementation for practical applications. Cheers.


US25-LinkPatient

Coverage increased (+1.0%) to 96.047% when pulling 3252d7f84998ad133c5df3dd0d324ff567886c89 on devel into ba1615e78e1c565cbe472df028cc8cdc9ebbedce on master.


[tcgc] default .access to "public"

fixes https://github.com/Azure/typespec-azure/issues/926

All changed packages have been documented.

:white_check_mark: @azure-tools/typespec-client-generator-core

Show changes
@azure-tools/typespec-client-generator-core - breaking ✏

change default of .access on a model or enum to "public" instead of undefined

You can try these changes at https://cadlplayground.z22.web.core.windows.net/typespec-azure/prs/925/
Check the website changes at https://tspwebsitepr.z22.web.core.windows.net/typespec-azure/prs/925/

Could we consider the anonymous model used in spread parameter in operation case? In this case, the model should be internal as users cannot see it. e.g.
  @post
  sendLong(
    ...LongRequest
  ): OkResponse;

Here SendLongRequest will be anonymous model and the access should be internal as it is not visible to user.

@haolingdong-msft @tadelesh is handling that in this PR


Changing copy and entrypoint location for xray

A recent issue brought to our notice that the v3.3.2 (3.x and latest as well) DockerHub image diverged from v3.2.0 and had it's entrypoint changed from /usr/bin/xray to /xray. This caused problem when a user specifically tried to start daemon using the previous entrypoint.
Description of changes:
-This PR reverts the executable location and entrypoint to /usr/bin/xray
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@anuraaga Can you take a look to see any of the remaining differences b/w 3.2.0 and 3.3.2 images may be potentially customer impacting and need to changed? Thanks!

How about symlinking so it's available at both paths in case anyone's relying on the current one?

You mean using by something like this?
ln -s {source-filename} {symbolic-filename}

The public ECR has always been using scratch base image so I'm not sure if we would change that. But for this PR it is only scoped to restoring the dockerhub image. We can address the public ECR separately? @willarmiros

To keep the dockerfiles for ECR and DH consistent, we can keep the actual entrypoint as /xray with a symlink to /usr/bin/xray for explicit use by customers.
Also, currently it may not be possible to create the symlink for ECR image as the "scratch" base image doesn't have ln command. We would need to migrate to debian first.


provide access to the generated styles

Following #27, we should expose styles in some other way for inclusion in a separate stylesheet.

Fixed via #50


⚠ Bofrost.de has degraded performance

In 6a795d5, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1077 ms

Resolved: Bofrost.de performance has improved in 33f9b3b after 12 minutes.


Using "copy link" button?

Storyboard ver 50. page  92,  <IP_ADDRESS>. Contact Confirmation View - no account. describes that
"a button with an icon for copying and the text "copy link" shall be provided and that clicking on this button will copy the private link.
However, it seems like we have to consider some issues when we want to implement it this way.
From http://kb.mozillazine.org/Granting_JavaScript_access_to_the_clipboard

"Granting JavaScript access to the clipboard
By default, JavaScript is not allowed to read or set your clipboard data for security and privacy reasons. This is because websites scripts can erase and replace what you currently have in your clipboard (data loss issue) and they can read whatever you have in your clipboard (security and privacy issue); as such, you should grant access with caution. There are, however, instances when you might want to bypass this restriction for certain sites. Rich text editors (such as implementations of Mozilla's Midas) often require access to the clipboard to use copy/paste functions. Other sites may copy useful information to the clipboard for the user to paste elsewhere."

ZeroClipboard(https://github.com/zeroclipboard/zeroclipboard), which is used by ng-clip, a anglularjs component for clipboard copying, seems to make use of flash, because of the above mentioned restrictions.
Flash, AFAIK, is not supported by every browser.
Maybe this could help. http://www.w3.org/TR/clipboard-apis/

http://ngmodules.org/modules/ng-clip
Specifying a fallback function if flash is not there seems like a good solution (e.g. pre-selecting the link text and just asking user to press ctrl+c)

"Flash, AFAIK, is not supported by every browser."  <- Thankfully ^^ (It's most browsers biggest security whole and resource leak + is technically obsoleted by modern html/css/js)
+1 what @yanapanchenko wrote

using ng-clip won't be an option if we don't want to use flash.
taken from their page.

Usage
Add ng-clip.js and ZeroClipboard.js to your main file (index.html)
Update the .swf path location using ngClipProvider javascript .config(['ngClipProvider', function(ngClipProvider) { ngClipProvider.setPath("bower_components/zeroclipboard/dist/ZeroClipboard.swf"); }]);

So it's dependent on ZeroClipboard which is flash based.

Implemented, as of ff10ff4, with ng-clip (i.e. ZeroClipboard and Flash) with fallback function in case the flash is disabled/not present in the browser. The fallback just asks the user to press cmd+c. Two issues though with the copy to clipboard functionality:

for some reason, clicking the copy button copies only with the second click
the storyboard should specify the more pretty fallback than it is implemented now:

is somehow solved by itself: today with fresh clean-install-run the copy works as expected

@yanapanchenko can we close this now?

the part about "storyboard should specify the more pretty fallback" is missing, otherwise it's done. I am removing the question label.

Issue related to old, deprecated prototype.


Alcatraz crashes playground Xcode 6.4

Hello I'm constantly getting a crash when loading playground. I'm getting this error in the console with Alcatraz.
com.apple.dt.Xcode.Playground[11801]: [MT] PluginLoading: Required plug-in compatibility UUID 7FDF5C7A-131F-4ABB-9EDC-8C5F8F0B8A90 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Alcatraz.xcplugin' not present in DVTPlugInCompatibilityUUIDs
...

Could you try reinstalling alcatraz? It looks like it didn't update correctly

I'm facing a similar issue as well. I've gotten the other plugins (downloaded through Alcatraz previously) up again. And they do seem to work so far, but launching Alcatraz's Package Manager still crashes Xcode.

@daniyal-mirza @Prince2k3 Do you have a crash report you could post here? Probably in Console.app.

I'm only able to attach images here. Do you want me to copy the report here? Or link it here?

Something like pastebin or Github Gist should be fine :)
--
Guillaume

Le 8 juil. 2015 à 11:24, Daniyal Mirza<EMAIL_ADDRESS>a écrit :
I'm only able to attach images here. Do you want me to copy the report here? Or link it here?
—
Reply to this email directly or view it on GitHub.

This is a more recent version of the crash report. Crashes the moment I click Windows->Package Manager. http://pastebin.com/5zBBtYjT

Great, thanks! This seems to be the same crash as #284. I'll try to take a look tonight.

Good Luck!

@daniyal-mirza Do you mind pasting the output of
ls -lR ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/Alcatraz.xcplugin

here, please ?

Here you go…
total 0
drwxr-xr-x  5 daniyalmirza  staff  170 Jul  7 21:19 Contents
/Users/daniyalmirza/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Alcatraz.xcplugin/Contents:
total 8
-rw-------   1 daniyalmirza  staff  1327 Jul  7 21:19 Info.plist
drwxr-xr-x   3 daniyalmirza  staff   102 Jul  7 21:17 MacOS
drwxr-xr-x  17 daniyalmirza  staff   578 Jul  7 21:17 Resources
/Users/daniyalmirza/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Alcatraz.xcplugin/Contents/MacOS:
total 512
-rwxr-xr-x  1 daniyalmirza  staff  259004 Jul  7 21:17 Alcatraz
/Users/daniyalmirza/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Alcatraz.xcplugin/Contents/Resources:
total 328
-rw-r--r--  1 daniyalmirza  staff   8588 Jul  7 21:17 740-gear-selected.tiff
-rw-r--r--  1 daniyalmirza  staff   9668 Jul  7 21:17 740-gear.tiff
-rw-r--r--  1 daniyalmirza  staff   7730 Jul  7 21:17 808-documents-selected.tiff
-rw-r--r--  1 daniyalmirza  staff   7840 Jul  7 21:17 808-documents.tiff
-rw-r--r--  1 daniyalmirza  staff   8884 Jul  7 21:17 837-palette-selected.tiff
-rw-r--r--  1 daniyalmirza  staff   9614 Jul  7 21:17 837-palette.tiff
-rw-r--r--  1 daniyalmirza  staff  14720 Jul  7 21:17 bitbucket_grayscale.tiff
drwxr-xr-x  4 daniyalmirza  staff    136 Jul  7 21:17 en.lproj
-rw-r--r--  1 daniyalmirza  staff  12618 Jul  7 21:17 eye_icon.tiff
-rw-r--r--  1 daniyalmirza  staff  14698 Jul  7 21:17 git_grayscale.tiff
-rw-r--r--  1 daniyalmirza  staff  14280 Jul  7 21:17 github_grayscale.tiff
-rw-r--r--  1 daniyalmirza  staff   7680 Jul  7 21:17 link_icon.tiff
-rw-r--r--  1 daniyalmirza  staff   8680 Jul  7 21:17 toolbar_colors.tiff
-rw-r--r--  1 daniyalmirza  staff   7766 Jul  7 21:17 toolbar_plugins.tiff
-rw-r--r--  1 daniyalmirza  staff   7980 Jul  7 21:17 toolbar_templates.tiff
/Users/daniyalmirza/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Alcatraz.xcplugin/Contents/Resources/en.lproj:
total 16
-rw-r--r--  1 daniyalmirza  staff    92 Jul  7 21:17 InfoPlist.strings
-rw-r--r--  1 daniyalmirza  staff  1168 Jul  7 21:17 Localizable.strings

Thanks for the quick response.
Uh. Well that explains the crash. There should be 2 nibs in the Resources folder. I'll try to find out how they disappeared but that'll probably be tough.

God Speed man!

@daniyal-mirza Well, I couldn't find the exact cause of the issue. But as @jurre suggested, I'd bet on a self-update gone wrong (but I couldn't find any real evidence supporting this theory).
A clean install of Alcatraz will most definitely fix it though.
rm -rf ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/Alcatraz.xcplugin
curl -fsSL https://raw.githubusercontent.com/supermarin/Alcatraz/master/Scripts/install.sh | sh

Sorry I'm not more helpful :/

It's ok. I did try the clean install previously, but no harm in trying again. Moreover, the plugins I really need are still installed from Xcode's previous iterations. So it isn't a showstopper for me.
Thanks anyways.

P.S.: The clean install worked this time around. I'm a happy boy now! :+1:

Well, I couldn't find the exact cause of the issue

If it helps at all, I encountered this after switching to a new laptop via OS X's Migration Assistant. A clean install worked as a fix for me as well.

find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add defaults read /Applications/Xcode.app/Contents/Info.plist DVTPlugInCompatibilityUUID
I run this code in terminal, then I build the ClangFormat plugin,
the plugin works, I don't understand the meaning of it, I wish it is helpful for you
forgive my poor english


fix(hooks): fix useTrackPlayerEvents dependencies

The effect was being executed every render because we were passing [[Event, Event]] instead of [Event, Event] as dependency.

@dcvz thanks – disabled the eslint rule because this is a special case


WIP: [c2cpg] Defer method decl handling

For method de-duplication (CDT always copy methods from header files into the implementation files so we would end up generating CPG METHODs for both with the same fullName), we now skip over all method decls but remember their properties.
Afterwards, a new pass stubs them iff no actual method definition exists.

FYI @ml86 You may want to have a look already as it is working fine.


Need instructions for using CMake on Windows

... add to README.md

wow, I see @bradleyjeck is writing some windows instructions! thanks!

#6 is a great solution to this. still some warnings apparently, but good starting point. thanks to @bradleyjeck


Content conflicts aren't properly handled when the conflict is on secondary values

As of #42 nodes can have both primary and secondary values. Currently, if there is an unresolved conflict in the secondary values, the primary value is flagged as conflicting in the output. For example, the followng merge scenario has an obvious conflict in the visibility modifier:
// base
int x = 2;

// left
private int x = 2;

// right
public int x = 2;

But it will actually be flagged like so:
int
<<<<<<< LEFT
x
=======
x
>>>>>>> RIGHT
= 2;

Which obviously is horrendously incorrect. This needs to be resolved, but it would probably be best to identify some more secondary values first to make sure it's resolved in a generalized fashion.

Secondary values isn't a thing anymore as of #60, but there are still issues with pretty printing conflicts on non-string content values.


Intellisense highlighting objects as invalid when they exist

SQL Operations Studio Version: sqlops 0.23.6 (8a3011756318a2ded1e6e84332230a2b2bf9c544, 2017-11-06T21:51:43.232Z)
OS Version: Windows_NT x64 6.1.7601

I noticed this when following along in the quickstart guides and tutorials. I database TutorialDB and the table dbo.Customers. Then I opened a new query editor to follow along and it would mark the table as an invalid object 'Invalid object name dbo.Customers.'.
Steps to Reproduce:

Open a query editor and create a table.
Open a new query editor and write a select statement for the table created in step 1.

@KMelendez there's a command to refresh the intelliSense cache you can use. By default the cache doesn't get refreshed by database changes

@stevestein This is documentation item as well.


Behavior of module-level consumer stream

Hi Jayden. I see that #15 already raises this question and that you have a related pr already open. I just want to confirm that the following behavior is expected, and that I'm not overlooking something.

Some number, let's say 4, websocket connections are open, and therefore 4 GraphqlSubscriptionConsumer instances exist.
They each execute a schema with a subscription that resolves an event that's triggered by a model save signal and piped via the root stream. (So far so good.)
When that signal is fired, each consumer receives a channel notification and calls on_next on the shared stream, and 4 events are pushed on to the stream.
Because the stream is shared by all the consumers and their schemas, each subscription ends up resolving 4, rather than 1, events.

This seems like a bug to me, but since, in your reply to #15 (specifically to this point: "Aside from that, wouldn't stream_fired be called on the same event for each open websocket and cause the event to be delivered extra times to each consumer?"), you don't explicitly address the issue, I'm not certain I'm not missing something. Moreover, in your pr, correct me if I'm misunderstanding, it seems like since groups share a stream, resolvers subscribed to the same group will still receive 1 * (n open consumers publishing to the same group) event objects for each actual event. Am I missing something?
Thank you --

I've noticed this as well, had to to hack my way around this with distinct()

Hey @ashilen! You're right, that is the current behavior with the global stream setup. In hindsight that was a poor design decision.
#7 fixes this by allowing you as a developer to control when groups are subscribed to and streams are created. When you call the subscribe method from inside of a GraphQL resolver, it will do the following:

Add the current consumer to the specified group name
Create a stream and store it on the consumer
Returning the stream from the GraphQL resolver allows you to use rx operators to filter / map events that get sent to that group before returning them to the consumer to send to the client

This way, whenever you trigger a subscription using trigger_subscription, the following happens:

trigger_subscription sends an event to the specified group name
All consumers subscribed to that group receive the event and pass them on to the stream
The stream is filtered by any rx logic present in the GraphQL consumer
Stream data is sent to the client

So under this new model, a subscription resolver will create a unique stream for each actively subscribed client, and each client stream will receive 1 event object per event that is broadcast to the specified group.
This allows you to further reduce the number of messages each consumer is required to handle by specifying unique group names based on GraphQL arguments when calling subscribe (see the new Model Updated docs for an example).
Does that answer your question @ashilen?
@Just-Drue I'd be very interested to hear how you used distinct() to solve this problem :)

@jaydenwindle hash curren't object's properties and call it within the resolve
    def __key(self) -> tuple:
        return self.a, self.b, self.c

    def __hash__(self) -> int:
        return hash(self.__key())

    def __eq__(self, other: 'Model') -> bool:
        if isinstance(other, Model):
            return self.__key() == other.__key()
        return NotImplemented

return root.filter(
            lambda event:
                event.operation == UPDATED and
                isinstance(event.instance, Model)
        ).map(lambda event: event.instance)**.distinct(lambda instance: instance.__hash__())**


Support multiple databases for install generator

Currently, there is no way to specify that the migration files be installed into a separate database from the default. This is problematic especially for SQLite apps, since the recommended approach is to use a separate SQLite database for the queue.
This change supports the existing behavior as well as specifying the --database option or the --db option.

@rosa: I can't figure out how the solid_queue:install:migrations Rake task is defined, so I can't then figure out if there is any way to specify a specific database for that task or not.

I will also add to the README and some tests

Thank you so much @fractaledmind! This is related to https://github.com/rails/solid_queue/issues/144.
The solid_queue:install:migrations task is given by Rails's Engine and yes! It does allow specifying a database via the DATABASE environment variable, it was added in https://github.com/rails/rails/pull/48579.
Thank you again! 🙏 🙇♀

In the end, I included this change in #308, as I had to change the generator. I completely missed that this one was completed; I thought something was missing! So sorry 😓


Generate old_visible_id for organisations

Context

We need a mechanism to be able to find organisations based on an identifier
We will be importing orgs from old core which will already have an identifier which is available at Organisation#old_visible_id
These are used by external third parties to identify records
New organisations created in new core will not have such an ID
Therefore we generate this value so we can continue to identify records
These need to be prefixed with something so they do not clash with an existing identifiers
We have not fully imported from old core there we do not know all the existing identifier ahead of time
A prefix will get around this by having a totally different key space

Changes

As an active record after_create callback on an org, generate old_visible_id if it does not already have one
This value is prefixed to prevent any clashes

Closing this PR in favour of https://github.com/communitiesuk/submit-social-housing-lettings-and-sales-data/pull/1311 which contains a change that mitigates the need for this change


in crawler.py NUM_SITES = 2000?  Is this how many Privacy Badger currently trains upon?

Can you all raise it to 100,000, a million, or as many as possible?  It seems awfully low if users are not training each of their extensions against their own browsing habits.
The value of a tracker's tracking depends on each person's unique due browsing habits.  It makes sense to train on the maximum amount of sites as possible rather than limiting the data set to 2000 most commonly visited sites.
I can think of car dealerships, smaller storefronts, travel sites, and local news sites with loads of trackers that are not likely in the top 2000 sites in the world.
I just opened up all of my bookmarks and privacy badger learned a new tracking domain.
I'd argue simply visiting a website is not enough.  If I owned a shopping store, my trackers might not be on the main page.  I would want to track each product that was clicked upon which may mean my trackers are on each product page.   If the test emulated clicking on a few product pages, you may find a different set of trackers on each product page.

Hello!
Previous discussion.
We attempt to visit 30K sites at this point. The plan is to continue to gradually increase the scope.
If we increase our training scope too quickly, we will have to deal with too man false positives and too many broken sites.
Check out our recent blog post about the evolution of Privacy Badger's learning.

We do already attempt to identify and visit "news" links. Good idea about doing the same for product pages.

is it still looking at only the top 2000 sites?  Because that is not enough

Is it still looking at only the top 2000 sites?

Did you see my earlier response? We're up to 30,000 and climbing.


ci: onboarding files from repo-template-node

bringing common files in template up to date
template: repo-template-node
branch: main
commit: 4c429904672f352d946e9e76e53781b7676f7510
Ref: REL-91

We can can just create a little script to run as a prerelease / prerelease:dry hook to generate the zip file
'use strict'

const {promises: fs} = require('node:fs')
const ADMZip = require('adm-zip');

async function main() {
  await fs.mkdir('dist', {recursive: true})
  const zip = new ADMZip()
  zip.addLocalFolder('files', 'files') // any directory we need to incldue
  zip.addLocalFolder('./node_modules', 'node_modules') // must include node_modules
  zip.addLocalFile('index.js')
  zip.writeZip('dist/cloudwatch.zip')

}

main()
  .then(console.log)
  .catch((err) => {
    process.nextTick(() => {
      throw err
    })
});

our release config will attach anything in dist to the github release

Thanks for all the feedback, @esatterwhite.  For the build/release stuff I followed this.  My goal is to have CI and simply create a ZIP in releases (for installing into lambda).  Should I start over from some other reference, or just make the changes you recommend?

Closing this PR in lieu of one that I was more directly controlling: https://github.com/mezmo/mezmo-cloudwatch/pull/4

FYI, @esatterwhite, I took on most of your feedback / cross referenced it with https://github.com/logdna/logdna-s3


Question: Does this support directories as the upload target?

I am trying to use this to work around some limitations with the default actions/upload-artifact, but I was curious if this action supports uploading directories like the upstream one does. Basically, I want a single directory to be uploaded since the Github download API already zips artifacts, rather than each individual file in the directory.
I peeked at the code and it looks like it recursively searches directories for files (indicating that it doesn't support it), but I just wanted to confirm. Thanks!

Nevermind, answered my own question. It uploads everything into the same space.


Azure OpenAI adds function bean names for individual chat client requests to defaultChatClientRequest.chatOptions

Please do a quick search on GitHub issues first, there might be already a duplicate issue for the one you are about to create.
If the bug is trivial, just go ahead and create the issue. Otherwise, please take a few moments and fill in the following sections:
Bug description
It looks like there is something setting function bean names” to defaultChatClientRequest.chatOptions after setting them in an individual chat client request.
Therefore, function calling is also activated with this function for each chatClient request, even if it's not configured.
Environment
Java 21, Spring AI 1.0.0-M1, Azure OpenAI Model
Steps to reproduce
chatClientBuilder.build().prompt()
.messages(promptMessage)
.call()
.entity(Recipe.class);
-> No function call
chatClientBuilder.build().prompt()
.messages(promptMessage)
.functions("fetchIngredientsAvailableAtHome")
.call()
.entity(Recipe.class);
-> Function call
chatClientBuilder.build().prompt()
.messages(promptMessage)
.call()
.entity(Recipe.class);
-> Function call
Expected behavior
The configuration for a function (or something else) for a request shouldn't have any effect on the configuration of a different request.
Minimal Complete Reproducible example
A sample with a workaround is available here: https://github.com/timosalm/spring-ai
Here are the instructions in the README to enable Azure OpenAI.

My current workaround is to reset the functions in the defaultChatClientRequest.chatOptions before any chatClient request via Reflection.
var defaultClientRequest = (ChatClient.ChatClientRequest) FieldUtils.readField(chatClient, "defaultChatClientRequest", true);
var chatOptions = FieldUtils.readField(defaultClientRequest, "chatOptions", true);
if (chatOptions instanceof FunctionCallingOptions) {
    FieldUtils.writeField(chatOptions, "functions", new HashSet<String>(), true);
}
``
`


Uncaught ReferenceError: module is not defined

ember: 1.11.1
simple-auth: 0.8.0-beta.3
Getting this pretty nasty error and the application doesn't even load. This started happening today. I haven't changed my ember version either. This happens on beta.2 and beta.3.

Awesome, thanks @john-griffin

@john-griffin :+1:


sf::Vector binary operators do not support type promotion.

For example,
sf::Vector2f v(1.0f, 1.0f); v *= 3; //this fails
The reason being that the operator*= template specifies arguments (sf::Vector<T> left, T right), so type deduction fails and the right-side argument can't be promoted.
A solution is to change to
template<typename T, typename Q> sf::Vector2<T>& operator*=(sf::Vector2<T>left, Q right)
Which will match varied types and only fail to compile if the operation itself does not make sense.

I'm quite certain that this is by design. There's no gain in allowing type mixing other than for the developer to be lazy and not use the matching type. :wink:
Say you have a sf::Vector2<int> and then multiply by a float , how should that work out?
Also this issue tracker is for confirmed issues only, use the forum to discuss things like that. See also the contribution guidelines.

http://swizec.com/blog/programmers-are-fucking-lazy/swizec/2648
As for the demotion issue, try a short test case.  I'm away from the machine, but I strongly suspect that the compiler is going to talk to you about it, same as it does in any other case.

I'm highly confident this was discussed and rejected in the past. Please have a look at the forums for previous pro/against arguments or open a new thread there to motivate this alternative design if you have new arguments.

Mixing types the right way is a lot more complicated than that.
Take this example, that would use your suggestion:
int v1 = 2;
float v2 = v1 * 3.3f;
// v2 equals 6.6 because int * float gets promoted to float

sf::Vector2<int> v1(2, 2);
sf::Vector2<float> v2 = v1 * 3.3f;
// v2 equals (6, 6) because Vector2<int> * float returns a truncated Vector2<int> which is then converted to Vector2<float>

With some C++11 template magic you can get the right return type according to the language promotion rules, but I don't think we want to start doing it -- and SFML is still stuck in C++03 for now ;)

Don't know why I bother.

Template magic like the following perhaps?
template <typename LTYPE, typename RTYPE>
constexpr auto operator* (sf::Vector2 lhs, RTYPE rhs)
{
return sf::Vector2<decltype(lhs.x * rhs)>{ lhs.x * rhs, lhs.y * rhs };
}
I wouldn’t as quickly call that magical as I’d call C++03 the-dark-ages.

On Apr 13, 2016, at 2:12 AM, Laurent Gomila<EMAIL_ADDRESS>wrote:
Mixing types the right way is a lot more complicated than that.
Take this example, that would use your suggestion:
int v1 = 2;
float v2 = v1 * 3.3f;
// v2 equals 6.6 because int * float gets promoted to float
sf::Vector2 v1(2, 2);
sf::Vector2 v2 = v1 * 3.3f;
// v2 equals (6, 6) because Vector2 * float returns a truncated Vector2 which is then converted to Vector2
With some C++11 template magic you can get the right return type according to the language promotion rules, but I don't think we want to start doing it -- and SFML is still stuck in C++03 for now ;)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub https://github.com/SFML/SFML/issues/1083#issuecomment-209295683

Yes, magic like this. Maybe with an explicit trailing return type declaration to make it C++11 compliant.
But as we all know, SFML can't include non-C++03 code for now anyway.


"LXSS" section dedicated in plugin configuration files

Currently I am trying to use GCC, Clang and cmake with the Windows subsystem for Linux. In it, for the existing Config file getting generated for each section has 3 sections namely win32, macos and linux.
I would like there to be a default section dedicated for LXSS so that the vanilla relative path for library and header path always start from the %APPDATA%..\Local\Lxss location.

@GautamDMan I'm guessing you're using the C/C++ Microsoft extension. Pls file any issue for that against https://github.com/Microsoft/vscode-cpptools/issues. Thanks!


DOCS-#3201: Add zsh install hint

What do these changes do?

[x] commit message follows format outlined here
[ ] passes flake8 modin
[ ] passes black --check modin
[x] signed commit with git commit -s
[x] Resolves #3201
[ ] tests added and passing
[ ] module layout described at docs/developer/architecture.rst is up-to-date

@vnlitvinov do you need me to run flake8 and black?

@vnlitvinov do you need me to run flake8 and black?

@alexlenail those would be run by our CI automatically - they're doing so now. We strive to merge at all passing (but coverage now could be flaky), so please pay attention to the CI.
Please also address my other feedback :)

Is it possible to squash and merge these?

Squashing is no problem (we do merge and squash anyway), but we require you do a format "sign off" on your commits. Unless you do that the CI is going to be red 😢
Plus I made a suggestion of modifying the documentation in a way that would work in any shell (zsh included) instead of adding a separate command line for zsh.

I have included your suggestion (sorry I didn't see it before!) and done a git commit --amend --signoff

Cool! I've squashed your commits now (because we require all commits to be signed off, so I just squashed them to a single one), hope you don't mind that.

Thanks @alexlenail and sorry for that taking so long, I hope we've fixed the flakiness in our CI for the good!


[Bug]: Inconsistent behaviors in specifying parameter types for interop functions

Description
Following interop case with the parameter type specified gives the parameter count mismatch error which may cause confusions.
public isolated client class Client {
    isolated function getResourceMethod(service object {} serviceObject, string[] path) returns any = @java:Method {
         'class: "myapp.app.App",
         paramTypes: ["io.ballerina.runtime.api.values.BObject", "io.ballerina.runtime.api.values.BArray"]
     } external;
}

Interop java method:
public static Object getResourceMethod(BObject service, BArray path) {
    return 1000;
}

error:
{ballerina/jballerina.java}METHOD_SIGNATURE_DOES_NOT_MATCH 'Parameter count does not match with Java method 'getResourceMethod' found in class 'myapp.app.App''

Anyway it works fine if the parameterType field is specified as
paramTypes: ["io.ballerina.runtime.api.values.BArray"]

Steps to Reproduce
No response
Affected Version(s)
No response
OS, DB, other environment details and versions
No response
Related area
-> Runtime
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response

It also works as expected when we specify the parameter types as
paramTypes: ["io.ballerina.runtime.api.values.BObject", "io.ballerina.runtime.api.values.BObject", "io.ballerina.runtime.api.values.BArray"]

Defining the Ballerina interop functions as follows
public isolated client class Client {
    isolated function getResourceMethod(service object {} serviceObject, string[] path) returns any = @java:Method {
         'class: "myapp.app.App"
     } external;
}

is working to call the Java method
public static Object getResourceMethod(BObject service, BArray path) {
    return 1000;
}

Here the direct parameter count, parameter types and return type are matching and the Java method is resolved as the matching method. Adding the receiver type parameter to the Java method also is working with the same Ballerina interop function. But if that parameter is not used in the Java method, adding such may be redundant.


Consider haystack 2.7 when released

          On executing `pytest`, warning generated:

=================================================== warnings summary ===================================================
search-backend-env/lib/python3.10/site-packages/haystack/core/errors.py:34
  /Users/richard.leyshon/Documents/GitHub/MoJ/rd-search-backend/search-backend-env/lib/python3.10/site-packages/haystack/core/errors.py:34: DeprecationWarning: PipelineMaxLoops is deprecated and will be remove in version '2.7.0'; use PipelineMaxComponentRuns instead.
    warnings.warn(

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

haystack warning - see here,  incrementing to haystack 2.7 should get rid of this when it's released (still on 2.6.1 for now)
Originally posted by @r-leyshon in https://github.com/ministryofjustice/rd-search-backend/pull/15#discussion_r1808834810

Addressed in this commit


Possibility to charge vehicle considering epex spot electricity rates like smartenergy or awattar

It would be nice if kecontact adapter would also take epex spot electricity rates into account while dynamic charging is active.
e.g.
if electricity rate < xx cent OR photovoltaik > xx Watt -> charge vehicle
if electricity rate > xx cent AND photovoltaic < xx Watt -> stop charging
just to name some examples ...
i'm using https://github.com/HGlab01/ioBroker.apg-info/ adapter to get actual electricity rates and electricity rates for the next day into iobroker, but there are several other adapters which do pretty much the same...
best regards

Thanks for your suggestion. How should the vehicle be scharged if electricity rate is below a certain limit?
Charge with minimum power (6A), charge with maximum power?
I think, this is a special use case. Especially because it's not clear with which current the vehicle should be charged then.
WOuldn't it be easier to define an additional energy meter state? In this state you could save a power value if pricing is below your limit. And you could set a value according to your needs (charge fast/slow).
Would this als o be a solution?

Closed because no response within 2,5 months


brid.gy does not find website in profile anymore

maybe it’s a facebook api change, but bridgy seems not find my website in my profile anymore. it worked fine all the time, but right now it doesn’t. i have 4 sites in my facebook profile (which was fine), but bridgy also failed to grab the info when i just listed my main site.

It looks like bridgy has an invalid access token for you... Have you tried re-authing?

yeah. tried it several times. logged out, and in. deleted the bridgy-app in facebook, re-authorisation seems to be different, too. i do not get asked by bridgy if i want to use my account or my pages. bridgy only offers me my personal account. which would be fine, if it worked.

Hmm, it seems to have worked that time. The token is valid now, but still not getting your website. We may need to double-check the scopes that Bridgy asks for...

i checked my profile with the facebook api console and if i ask with a broad enough scope, i get the right answer.

hmm, interesting, Bridgy doesn't have any of the scopes that it asks for for you. It's supposed to request
user_likes, user_website, user_events, user_photos, user_videos, user_status, user_posts, read_stream, rsvp_event, manage_pages, publish_pages, publish_actions, public_profile
but has only public_profile

https://developers.facebook.com/docs/facebook-login/permissions/v2.3#checking

If someone has declined a permission for your app, the login dialog won't let your app re-request the permission unless you pass auth_type=rerequest along with your request.

(may be i once denied (accidentaly) the permissions once and now facebook won’t let bridgy re-request them?)

I tried removing Bridgy from my apps and reauthing, thinking maybe I would lose user_website, but when I re-authorized it, it still had the permission. Though it's possible I'm getting special treatment as a "developer". I will check what scopes we have under the new Facebook Login stuff, but otherwise I'm stumped

I don't think it's anything you did, very probably it's to do with the Facebook Login changes that just shipped yesterday. I think @snarfed will need to submit the app for review of a few more login permissions.

ok. thanks a lot.

ugh, sorry guys. i hate silos. bridgy would be so much easier if i could drop silo support altogether. :P
given the timing, i suspect this is due to the FB v2.0 API apocalypse, even though bridgy has been using the v2.2 API explicitly for a while now. not sure of more details quite yet. constant FB API fires like this over the last quarter have been gradually sapping my energy and will to fight them. :/

btw @kylewm (or anyone else who wants to help!), here are my notes from the fb reviews i've gone through before:

https://snarfed.org/bridgy_facebook_permissions_review
https://snarfed.org/facebook_permissions_review_activitystreams_facebook-atom

I tested logging in with only user_website. It did not prompt me to select a User or Page, but otherwise everything seemed to work. So I filed an application for user_website, which should be easy to get (feel like I read somewhere that they had some sort of ast review process for Facebook Login scopes). Hopefully it will be processed soon.

awesome, thanks @kylewm! much appreciated.
but the reason you're not getting prompted for use vs page is probably that we don't actually have the pages permission yet. i applied a couple times but never got it. that's #41.

also, when we upgraded bridgy to the v2.2 API, i explicitly checked in #339 that we still got the user_website permission. have i mentioned recently that i hate the FB API? :/

It sounds like we need user_posts too based on #394, should I cancel that first submission and add it?

@kylewm good catch, sure!

woot, FB granted the new permissions!

Great! Any hope things start working any time soon?

@diplix hopefully yes! if you re-sign up with facebook, your account might actually start working again now. we plan to automatically notify other users to do that soon.

It's already working again, at least for me. I was able to "re-link" my profile successfully and bridgy is picking up likes and comments again.

I deleted the app in FB, then reconnected, but still get this error message:
Error: {"error":{"message":"(#200) The user hasn't authorized the application to perform this action","type":"OAuthException","code":200}} HTTP Error 403: Forbidden
At least, it previews the content right. Before it says "Couldn't fetch...".
Bridgy still shows me only the personal profile, no FB pages.
What am I doing wrong?

Hi @drikkes! Thanks for reporting. It sounds like you are trying to publish to FB, which is a separate issue. Have you already tried disabling and re-enabling the Publish stuff specifically (the right hand column of https://www.brid.gy/facebook/10206219375153745)?
If that doesn't work, would you mind opening a new issue describing your problem?

agreed. FB says we have publish_actions, so publish should still work. https://developers.facebook.com/apps/256884317673197/review-status/
@drikkes please do let us know if re-enabling publish doesn't work for you!
tentatively closing.

Yes, working again. Dis- and re-enabling obviously did the job. Thanks!

I remove Bridgy from my Facebook apps, then re-register it again, and yet it stillI says it wants my website in profile. Does not work.

@nekr0z could you check that the website in your Facebook profile starts with http:// or https://? If it is just a bare domain, I think Bridgy will miss it (which we should probably fix).

@kylewm yes, it does start with http://

and it looks like Bridgy found it now? https://www.brid.gy/facebook/10152710552987085

@kylewm which actually seemed to be the problem: the site is https only. I changed it to https in profile, now it works.