Pods GoogleUtilities fatal error

Bug report

CHECKLIST

[ ] I have read the issue reporting guidelines

[ ] I confirm this is a suspected bug or issue that will affect other users

[ ] I have reproduced the issue using the example project or provided the necessary information to reproduce the issue.

[x ] I have read the documentation thoroughly and it does not help solve my issue.

[x ] I have checked that no similar issues (open or closed) already exist.

Hi Dave, I have combed through stackoverflow, through the plugin docs and other resources and still can't resolve this.  I suspect it has something to do with the Pods < - > Cordova@9/cordova-ios@5 issue or it could be some version compatibility issue since everything is on the latest and greatest.  But I can't be certain either assumption.
Since this is a fresh install on a brand new Mac everything is using the latest and greatest versions of everything.  I also verified all my pods are up to date.
Current behavior:
Build fails during CLI ionic Cordova build iOS
** Plugin vs Your own code**
Fresh install on new Mac computer.  Just built the environment, no errors and ported all GOOD code from previous Mac that is working/compiling fine....but on older versions of environment
Expected behavior:
clean cli compile
Steps to reproduce:
Fails on every build from cli
Screenshots

Environment information
Ionic:
Ionic CLI         : 6.10.1 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework   : ionic1 1.0.0
@ionic/v1-toolkit : 1.0.22
Cordova:
Cordova CLI       : 9.0.0<EMAIL_ADDRESS>Cordova Platforms : ios 5.1.1
Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 32 other plugins)
Utility:
cordova-res : 0.15.1
native-run  : not installed
System:
ios-deploy : 1.10.0
ios-sim    : 8.0.2
NodeJS     : v14.5.0 (/usr/local/Cellar/node/14.5.0/bin/node)
npm        : 6.14.5
Cocoapods:  1.9.3
OS         : macOS Catalina
Xcode      : Xcode 11.5 Build version 11E608c
Console output

Error:
/Users/rpo/dev/myApp/platforms/ios/Pods/GoogleUtilities/GoogleUtilities/AppDelegateSwizzler/Private/GULAppDelegateSwizzler.h:19:9: fatal error:
      'GoogleUtilities/AppDelegateSwizzler/Private/GULApplication.h' file not found
#import "GoogleUtilities/AppDelegateSwizzler/Private/GULApplication.h"
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/rpo/dev/myApp/platforms/ios/Pods/GoogleUtilities/GoogleUtilities/AppDelegateSwizzler/Private/GULAppDelegateSwizzler.h:19:9: note: did not find header
      'AppDelegateSwizzler/Private/GULApplication.h' in framework 'GoogleUtilities' (loaded from '/Users/rpo/dev/myApp/platforms/ios/build/emulator')
1 error generated.
The following build commands failed:
	CompileC /Users/rpo/Library/Developer/Xcode/DerivedData/WHIPSTER-fbocyrfnyhrizhfbhadoplqyjoae/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FirebaseAuth.build/Objects-normal/x86_64/FIRAuth.o /Users/rpo/dev/myApp/platforms/ios/Pods/FirebaseAuth/FirebaseAuth/Sources/Auth/FIRAuth.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
xcodebuild: Command failed with exit code 65

// Paste any relevant JS/native console output here

Other information:

I have exactly the same issue, I have the latest Pods installed for Firebase usually the same they comes with the spec of plugin.xml of cordova-plugin-firebasex, yesterday and others past days was build successfully but from today the build failed, with same issue reported for @rolinger

Firebase iOS has been updated to 6.28.0.
Firebase iOS Release Notes
https://firebase.google.com/support/release-notes/ios
I fixed the version of Firebase iOS in plugin.xml from 6.27.0 to 6.28.0 and the build was successful.
<podspec>
  <config>
    <source url="https://cdn.cocoapods.org/"/>
  </config>
  <pods use-frameworks="true">
    <pod name="Firebase/Core" spec="6.28.0"/>
    <pod name="Firebase/Auth" spec="6.28.0"/>
    <pod name="Firebase/Messaging" spec="6.28.0"/>
    <pod name="Firebase/Performance" spec="6.28.0"/>
    <pod name="Firebase/RemoteConfig" spec="6.28.0"/>
    <pod name="FirebaseFirestore" git="https://github.com/invertase/firestore-ios-sdk-frameworks.git" tag="6.28.0"/>
    <pod name="Firebase/Crashlytics" spec="6.28.0"/>
    <pod name="GoogleSignIn" spec="5.0.2"/>
  </pods>
</podspec>

@keeepon - what is the path to this file?  I found similar info in the Podfile of the project, but its not the plugin.xml file you are referring to.  And I can't find that one.

@rolinger
I am using<EMAIL_ADDRESS>You can find it in plugin.xml for 10.1.0-cli.
https://github.com/dpa99c/cordova-plugin-firebasex/blob/10.1.0-cli/plugin.xml#L126-L140

@keeepon - yeah, I think I have been staring at my screen too long and just glazed right over the obvious.  I am on<EMAIL_ADDRESS>too.  I modified the plugin in my root project then removed the platform iOS and readded it again, now its hanging during the platform add iOS
Installing "cordova-plugin-firebasex" for ios
Plugin dependency<EMAIL_ADDRESS>already fetched, using that version.
Dependent plugin "cordova-plugin-androidx" already installed on ios.
Plugin dependency<EMAIL_ADDRESS>already fetched, using that version.
Dependent plugin "cordova-plugin-androidx-adapter" already installed on ios.
Running command: pod install --verbose
Cloning into '/var/folders/jh/2c6ccmp12wz91ldjjf44q5b40000gn/T/d20200714-51318-r76e34'...
May have to rebuild my whole project now and try modifying the plugin before its added to my project.

@keeepon: I have created a PR with your change

I can confirm this is caused by the publication of<EMAIL_ADDRESS>which is a downstream dependency of the Firebase SDK - see here for more info.
Updating the Firebase iOS SDK components to v6.28.0 resolves the issue.
I will merge the PR by @driiftkiing which bumps this plugin to that version and push out a patch release.
Please make sure you update your local pods repo: pod repo update

I did the manual edit to the plugin suggested by @keeepon and compiled with success.  I will pull the new plugin once available.  Thanks guys.  Since my project had to be completely rebuilt from scratch on a new Mac and I have all the latest and greatest tool versions (npm,ionic, gulp, plugin versions, etc) I  am more than relieved it wasn't my build environment.

@dpa99c  so we can use the latest firebaseX @10.1.0 with updated firebase ios to 6.28.0. will this resolve the issue ?

@bhargavas12 - yes, until the new plugin is available you can edit the /project/plugins/cordova-plugin-firebasex/plugin.xml and update any reference to '6.27.0to6.28.0.  Then you will need to Cordova platform rm iOSand readCordova platform add iOS` to rebuild your project.  Worked for me.

The fix has been published in<EMAIL_ADDRESS>and<EMAIL_ADDRESS>Please update to this version.

I can confirm this is caused by the publication of<EMAIL_ADDRESS>which is a downstream dependency of the Firebase SDK - see here for more info.
Updating the Firebase iOS SDK components to v6.28.0 resolves the issue.
I will merge the PR by @driiftkiing which bumps this plugin to that version and push out a patch release.
Please make sure you update your local pods repo: pod repo update

Can we also get an update for 9.1.2 since we are still using that one? #458 should be mergeable for that release. (Just wasn't able to select the correct base.)

@dpa99c
getting this error after updating firebaseX to 10.1.1 and tried 'pod install'
Resource "/Users/temp/Library/Developer/Xcode/DerivedData/project/Build/Products/Debug-iphonesimulator/FirebaseInAppMessaging/InAppMessagingDisplayResources.bundle" not found. Run 'pod install' to update the copy resources script.
** BUILD FAILED **

@bhargavas12 looks like you are using 10.1.1 in a CLI build - use 10.1.1-cli instead and see the documentation

@petergrau I have no plans to back-patch old versions (which is time-consuming and messy).
Please update to the latest version or fork the plugin and amend as you require.

@dpa99c - my app compiled from CLI using 'ionic Cordova build iOS`, but from within Xcode, deploying to a simulator or device I am now getting the following.  I have never seen these errors before...my identical project on legacy Mac compiles/deploys just fine, but not on this new Mac - only big difference is the latest firebasex version.:
FirebasePlugin[native] LOG: GoogleService-Info.plist found, setup: [FIRApp configureWithOptions]
2020-07-15 08:54:05.466921-0400 MYAPP[57637:2715526] 6.28.0 - [Firebase/Core][I-COR000003] The default Firebase app has not yet been configured. Add `[FIRApp configure];` (`FirebaseApp.configure()` in Swift) to your application initialization. Read more: https://goo.gl/ctyzm8.
2020-07-15 08:54:05.480679-0400 MYAPP[57637:2715187] [Firebase/Crashlytics] Version 4.3.0
2020-07-15 08:54:05.556821-0400 MYAPP[57637:2715671] [Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}
2020-07-15 08:54:05.556956-0400 MYAPP[57637:2715535] [Client] Updating selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}
2020-07-15 08:54:05.560051-0400 MYAPP[57637:2715535] [Client] Updating selectors after delegate addition failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}
2020-07-15 08:54:05.560813-0400 MYAPP[57637:2715535] [Client] Updating selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}
2020-07-15 08:54:05.560841-0400 MYAPP[57637:2715671] [Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}
2020-07-15 08:54:05.561600-0400 MYAPP[57637:2715671] [Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}
2020-07-15 08:54:05.562201-0400 MYAPP[57637:2715535] [Client] Updating selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}
2020-07-15 08:54:05.606837-0400 MYAPP[57637:2715673] 6.28.0 - [Firebase/Messaging][I-FCM001000] FIRMessaging Remote Notifications proxy enabled, will swizzle remote notification receiver handlers. If you'd prefer to manually integrate Firebase Messaging, add "FirebaseAppDelegateProxyEnabled" to your Info.plist, and set it to NO. Follow the instructions at:
https://firebase.google.com/docs/cloud-messaging/ios/client#method_swizzling_in_firebase_messaging
to ensure proper integration.
2020-07-15 08:54:05.617248-0400 MYAPP[57637:2715673] 6.28.0 - [Firebase/RemoteConfig][I-RCN000072] New config database created. Resetting user defaults.
2020-07-15 08:54:05.618188-0400 MYAPP[57637:2715673] 6.28.0 - [Firebase/Analytics][I-ACS031025] Analytics screen reporting is enabled. Call +[FIRAnalytics setScreenName:setScreenClass:] to set the screen name or override the default screen class name. To disable screen reporting, set the flag FirebaseScreenReportingEnabled to NO (boolean) in the Info.plist
2020-07-15 08:54:05.619312-0400 MYAPP[57637:2715673] 6.28.0 - [Firebase/Analytics][I-ACS023007] Analytics v.60602000 started
2020-07-15 08:54:05.619605-0400 MYAPP[57637:2715673] 6.28.0 - [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
2020-07-15 08:54:05.807947-0400 MYAPP[57637:2715187] *** Terminating app due to uncaught exception 'GADInvalidInitializationException', reason: 'The Google Mobile Ads SDK was initialized without an application ID. Google AdMob publishers, follow instructions here: https://googlemobileadssdk.page.link/admob-ios-update-plist to set GADApplicationIdentifier with a valid App ID. Google Ad Manager publishers, follow instructions here: https://googlemobileadssdk.page.link/ad-manager-ios-update-plist'

And I have validated the Google AdMob publishers app ID is in my plist file in the project root and that it was replicated to all the appropriate resource directories during the build.

I found this thread was similar but all my configs seem to be correct.  I then noticed the error was due to the specific GADApplicationIdentifier key which was not in my googleservices-info.plist file - it looks like admob SDK is now wrapped up into Firebase and needed a different appID key.  Well, that's what it looks like at least.  So I added it to both the root project plist file and to the project/platforms/iOS/myapp/resources/GoogleServices-Info.plist file and recompiled, BUT I am  still getting the same error.

@rolinger I'm not getting this error building the example project.
Here'a reproducible test case using a publicly-available GoogleService-Info.plist that also works fine:
cordova create test com.canary.CanaryApparel && cd test
curl https://github.coventry.ac.uk/raw/301CEM-1920OCTJAN/301CEM-6957713/master/CanaryApparel/GoogleService-Info.plist -o GoogleService-Info.plist
cordova plugin add<EMAIL_ADDRESS>cordova platform add ios
cordova build ios --emulator
#build succeeds

Open platforms/ios/HelloCordova.xcworkspace in Xcode and run:

@dpa99c   I tried multiple things and couldn't get past the admob issue so ultimately I just dropped admob plugin as we are moving away from ads anyway - we were just hoping to get identical builds on old Mac and new Mac so we knew everything was apples to apples.  But once I did that my project compiled and deployed fine, but that was using @10.1.0.
I took a break and came back to rebuild one final time and I noticed in rebuilding my project that the new PR is now active cordova-plugin-firebasex 10.1.1 "Google Firebase Plugin" and now my project build from command line ionic Cordova build iOS is failing with the following error - but in Xcode its compiling and deploying to a simulator just fine.
PhaseScriptExecution [CP]\ Copy\ Pods\ Resources /Users/rpo/Library/Developer/Xcode/DerivedData/MYAPP-fbocyrfnyhrizhfbhadoplqyjoae/Build/Intermediates.noindex/MYAPP.build/Debug-iphonesimulator/MYAPP.build/Script-8496B8F4F3071A557F1A846D.sh (in target 'MYAPP' from project 'MYAPP')
    cd /Users/rpo/dev/MYAPP_0.3.0/platforms/ios
    /bin/sh -c /Users/rpo/Library/Developer/Xcode/DerivedData/MYAPP-fbocyrfnyhrizhfbhadoplqyjoae/Build/Intermediates.noindex/MYAPP.build/Debug-iphonesimulator/MYAPP.build/Script-8496B8F4F3071A557F1A846D.sh
/Users/rpo/dev/MYAPP_0.3.0/platforms/ios/Pods/FirebaseFirestore/FirebaseFirestore/Resources/gRPCCertificates-Cpp.bundle
error: Resource "/Users/rpo/Library/Developer/Xcode/DerivedData/MYAPP-fbocyrfnyhrizhfbhadoplqyjoae/Build/Products/Debug-iphonesimulator/FirebaseInAppMessaging/InAppMessagingDisplayResources.bundle" not found. Run 'pod install' to update the copy resources script.

From /project/platform/iOS I ran pod install again, but there was no change.
This sounds like the cordova<EMAIL_ADDRESS>issue now...but the previous version (@10.1.0) I manually updated the pod references (in plugin.xml) to 6.28.0 worked and now the new one (@10.1.1) does not.  I have not run any of the @10.x.x-cli versions - or are they new merged and one in the same?

@dpa99c - not certain how/what happened, but my install went from @10.1.0-cli to @10.1.1 and I didn't see that it wasn't the 10.1.1-cli version.  Working now.


fix the expand directory when click file

Associated Issue: #18
Here's the contributing guide at https://github.com/wasdk/WebAssemblyStudio/wiki/Contributing
Summary of Changes

not expand all the directory when click the file

Test Plan
run the command of yarn test and all the tests passed

@icerove still fails build:
ERROR in /builds/near-protocol/NEARStudio/src/monaco-utils.ts
[tsl] ERROR in /builds/near-protocol/NEARStudio/src/monaco-utils.ts(71,1)
      TS1128: Declaration or statement expected.

@icerove why did you remove test.html files? Are they auto-generated now?

when I run yarn test command, it will generate automatically. But I see you still do not have them in master branch, so I remove them. @vgrichina

@icerove why did you remove test.html files? Are they auto-generated now?

nevermind, looks like "Test" still works and this is copied from templates/


getArrayResponse with nested arrays

Hi,
I am working with an API endpoint returning what could be described as [[Item]]. I am trying to use responseArray method on DataRequest, but it only works on arrays, not nested arrays.
I've only tried implementing a new responseArrays method, using a new ObjectMapperImmutableArraysSerializer serializer by replacting the content of ObjectMapperImmutableArraySerializer, but some methods have internal protection and I haven't been able to go further.
How would you approach this case?
Thanks for your answer and your time

same issue objects with arrays of objects with nested arrays don't parse always empty arrays in response

This project doesn't support that feature at this time. You would need to add new response functions to handle this case using the ObjectMapper mapArrayOfArrays function. If you have the time, feel free to submit a PR with this functionality

I have the some problem, when will fix this bug or completed this function?


Minor UriUtils fixes

PR Checklist

[x] A description of the changes is added to the description of this PR.
[ ] If there is a related issue, make sure it is linked to this PR.
[ ] If you've fixed a bug or added code that should be tested, add tests!
[ ] If you've added or modified a feature, documentation in docs is updated

Description of changes

Updated the UriUtil cache to be more tolerant of property changes
Removed existing S3 calls (new hadoopfs calls coming)
Changed all cloud based update calls for location creation to skip for v0.2.  Only models are using this pathway in v0.2 and MLflow uses the native cloud libraries which does not require consistent path creation on the clouds.

@rameshchandra could you take a look and merge?


Switching themes doesn't always work

I think it is something to do with how the changes are propagated to different wikis, but when you change the theme it often reverts back to the default theme as though there hasn't been a theme picked.
This is sometimes fixed by reloading but not always.

This should work now.


Support custom indicator images for PageControl (Closes #474)

Hi. The goal of this PR is to implement the API for indicator image management introduced in iOS 14.0 / 16.0, as documented here.
If anything needs to be revised I would be glad to help.

Amended to allow nil values for indicator images. This matches the UIPageControl API and is documented as the way to reset an indicator back to the default.

@fralsal can you update this to use _AnyImage instead of UIImage?

Sure, I’ll fix it up and commit tomorrow

@fralsal closing this due to inactivity, feel free to reopen if you get the time to make the update!


moduleNameMapper doesn't provide the expected behavior

Do you want to request a feature or report a bug?
Feature
What is the current behavior?
I'm using the Webpack resolver for my code and I omit module extensions (in fact, I'm using eslint's import/extensions to make sure they aren't used), but I discovered that moduleNameMapper works on the path before resolving.
So if I write this:
import './style'
and use this configuration:
"moduleNameMapper": {
      "\\.(s?css)$": "<rootDir>/src/__mocks__/scss.js"
    }

My styles are imported as normal instead of the mock.
What is the expected behavior?
It would be nice if there were an option that allowed by to mock files by resolved extension somehow. For example if moduleNameMapper resolved the original import file name, then applied the mapping to that, or if there were a separate configuration option like "moduleExtensionMapper" that replaced all imports for a given extension with the provided mock.
Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.
Shouldn't matter, but here they are:
  "jest": {
    "testMatch": [
      "**/*.spec.js?(x)"
    ],
    "moduleDirectories": [
      "node_modules",
      "src"
    ],
    "moduleFileExtensions": [
      "js",
      "jsx",
      "json",
      "scss"
    ],
    "moduleNameMapper": {
      "\\.(s?css)$": "<rootDir>/src/__mocks__/scss.js"
    },
    "collectCoverageFrom": [
      "src/**/*.js?(x)",
      "!src/index.jsx"
    ],
    "coverageReporters": [
      "lcovonly"
    ]
  }

Jest 20.0.4
Node 8.4.0
NPM 5.4.1

Yep, moduleNameMapper works on the string before resolution. This is the expected behavior. You can provide a custom resolver to Jest if you prefer that, and build your own :)

@cpojer is there some documentation about how we would provide a custom resolver as mentioned? And just to be real clear, the moduleNameMapper will not be able to target CSS module imports if the import statement does not explicitly include the ".css" in the path?

@gpartida, FYI I've re-raised this issue in #7271. Have a look.


Make it easier to use the built-in Google or Sun checkstyle configs

Expected Behavior
I want to be able to easily set the default checkstyle configuration, without the need for creating config/checkstyle/checkstyle.xml.
Example API idea:
plugins {
  checkstyle
}

// Variant 1
checkstyle {
  toolVersion = "10.14.0"
  config {
    defaultConfig = "google_checks.xml"
  }
}

// Variant 2
checkstyle {
  toolVersion = "10.14.0"
  config {
    config = Checkstyle.builtin("google_checks.xml")
  }
}

The google_checks.xml file comes from checkstyle itself:

src/main/resources/google_checks.xml

Current Behavior
I have to create the config/checkstyle/checkstyle.xml file and copy-paste a (potentially huge) config file.
In my case, I simply want to use the Google style.
Context
This issue is a revival of https://github.com/gradle/gradle/issues/4952
I think it would be very beneficial for ease of setup. Please bear in mind I have never used checkstyle before. I found the setup to be unnecessarily hard.

This feature request is in the backlog of the relevant team and is prioritized by them.

Hi @ov7a, does this mean it is given a high priority?

Hi @ov7a, does this mean it is given a high priority?

No. Checkstyle plugin is not in focus for now.


Updating CONTRIBUTING, README, and docs/README

Is your feature request related to a problem? Please describe.
Considering the massive changes over the last several months, these three files really need an overhaul. I believe Jared had been making headways on this.
Describe the solution you'd like
Make sure CONTRIBUTING, README, docs/README is up to date with Development at the very least.

Moving issue to #283. Closing this one.


Arch script calls dpkg to check dependies

^^^
Should be calling pacman as dpkg only exists on Arch as a make helper module

Hello, thank you for mentioning this, I built the arch version from the Debian version, but I made a mistake. I will check this and push an update soon.


ReferenceError: document is not defined

Hi, first thanks for your react component!
I just have one problem when I try import it in my react webapp. Note sure if it's caused by react-youtube itself or just a problem of configuration in my app (created with https://github.com/koistya/react-static-boilerplate) but here is the stacktrace:
Starting 'render'...
ReferenceError: document is not defined
    at load ([..]/webapp/node_modules/load-script/index.js:3:14)
    at exports.default ([..]/webapp/node_modules/youtube-player/dist/es5/loadYouTubeIframeAPI.js:43:33)
    at Object.<anonymous> ([..]/webapp/node_modules/youtube-player/dist/es5/index.js:41:58)
    at Module._compile (module.js:434:26)
    at Module._extensions..js (module.js:452:10)
    at Object.require.extensions.(anonymous function) [as .js] ([..]/webapp/node_modules/babel-core/lib/api/register/node.js:214:7)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> ([..]/webapp/node_modules/react-youtube/dist/YouTube.js:23:22)
    at Module._compile (module.js:434:26)
    at Module._extensions..js (module.js:452:10)
    at Object.require.extensions.(anonymous function) [as .js] ([..]/webapp/node_modules/babel-core/lib/api/register/node.js:214:7)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)

(I already tried to escape the serve side rendering with a canUseDom check but it changes nothing, the error occurs during the import..)
Thanks in advance for your help!
Thomas

Hey @tomasite,
Can you please give some more information on the issue such as:

what actions cause this issue (seems to be npm start of the boilerplate)?
which version of react-youtube are you using (please use the latest version)?
can you give some more context on how you are using react-youtube in your application?

Sadly I can't tell much from the stack trace but the issue seems more likely to be related to the configuration of your application than react-youtube.
I'll see if I can help a little anyway if you answer the questions above :smile:.
I'll close the issue for now but if it appears to be directly related to react-youtube we'll reopen it.

Hey @tjallingt,
thanks for your answer! here are some clues:

it's right after npm start of the boilerplate indeed,
I'am using the last version at this moment (5.0.0),
here is a snippet of how I use react-youtube:

import React, { Component } from 'react';
import YouTube from 'react-youtube';

export default class extends Component {

  render() {

    return (

Home Page

Coming soon.

        <Youtube
          videoId='2g811Eo7K8U'
          playbackState='unstarted'
          configuration={
              {
                  showinfo: 0,
                  controls: 0
              }
          }
        />

    );
  }

}

Thanks again,
Thomas


Allow multiple players to join and see each other

Closed by https://github.com/andrewgazelka/hyperion/pull/156 among others.


adding content to RKE about tagging amazon resources with a cluster id

lives at https://rancher.com/docs/rke/v0.1.x/en/config-options/cloud-providers/aws/


refactor(argocdapp/devlake/trello/gitlabci/githubactions-nodejs): keep consistent with the plugin template

rename validateOptions to validate
move to a standalone file validate.go
Tasks

[x]  argocdapp
[x]  devlake
[x]  trello
[ ]  gitlabci
[ ]  githubactions-nodejs

Summary

argocdapp: rename validateOptions to validate, move to a standalone file validate.go
trello: finished

Related proposal: #342


Avoid empty clientX and clientY values when dragging Marker (Safari iOS)

On mobile safari dragging a Marker gave an error.
When digging into the code I saw that it calls:
this._map.mouseEventToContainerPoint(e.originalEvent);
But originalEvent did not contain a clientX and clientY property.
In the call _simulateMouseDownEvent I've used the later declared first touch event, which has a ClientX|Y value.

@wvddrss can you please revert the last commit. It looks like it doesn't belongs to here

My apologies! Well noticed! Made a new PR with seperate branch.


K8s Extension failing due to AttributeError: 'DeploymentsOperations' object has no attribute 'begin_create_or_update'

In our project we use a Powershell script to construct an Azure environment, including an Azure Arc resource to deploy a kubernetes cluster. For the final step we set up azure monitor for containers using the the K8s Extension call. It's been working just fine for around 2-3 weeks, but recently we've been seeing failures in our script that are traced to this error:
File "/root/.azure/cliextensions/k8s-extension/azext_k8s_extension/custom.py", line 134, in create_k8s_extension
2021-05-25 17:46:15.221704: config_protected_settings, configuration_settings_file, configuration_protected_settings_file)
2021-05-25 17:46:15.221715: File "/root/.azure/cliextensions/k8s-extension/azext_k8s_extension/partner_extensions/ContainerInsights.py", line 60, in Create
2021-05-25 17:46:15.221745: configuration_protected_settings, is_ci_extension_type)
2021-05-25 17:46:15.221757: File "/root/.azure/cliextensions/k8s-extension/azext_k8s_extension/partner_extensions/ContainerInsights.py", line 426, in _get_container_insights_settings
2021-05-25 17:46:15.221771: _ensure_container_insights_for_monitoring(cmd, workspace_resource_id).result()
2021-05-25 17:46:15.221784: File "/root/.azure/cliextensions/k8s-extension/azext_k8s_extension/partner_extensions/ContainerInsights.py", line 385, in _ensure_container_insights_for_monitoring
2021-05-25 17:46:15.221804: validate=False, no_wait=False, subscription_id=subscription_id)
2021-05-25 17:46:15.221815: File "/root/.azure/cliextensions/k8s-extension/azext_k8s_extension/partner_extensions/ContainerInsights.py", line 110, in _invoke_deployment
2021-05-25 17:46:15.221844: return sdk_no_wait(no_wait, smc.begin_create_or_update, resource_group_name, deployment_name, deployment)
2021-05-25 17:46:15.221860: AttributeError: 'DeploymentsOperations' object has no attribute 'begin_create_or_update'
The command we use to call the K8s extension is:
az k8s-extension create
--name "azuremonitor-containers"
--cluster-name "$CLUSTER_NAME"
--resource-group "$RESOURCE_GROUP"
--cluster-type "connectedClusters"
--extension-type "Microsoft.AzureMonitor.Containers" \
I know this call is in Preview and may have changed, but I haven't seen anything in the documentation reflecting this yet.  Any help would be appreciated.

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

ID: 3725c06d-f248-3b8b-5086-db601923786a
Version Independent ID: 62142c2e-3bb6-c25c-01b9-12fc0eb8cb1d
Content: az k8s-extension
Content Source: latest/docs-ref-autogen/k8s-extension.yml
GitHub Login: @rloutlaw
Microsoft Alias: routlaw

route to service team

Our project has also started seeing this error today. We're executing the following Azure CLI command using PowerShell from an azure-hosted agent:
az aks create `
    --name $Name `
    --resource-group $ResourceGroup `
    --node-vm-size $NodeVMSize `
    --node-count 1 `
    --service-principal $ServiceConnectionId `
    --client-secret $ServiceConnectionSecret `
    --node-resource-group $AKSNodeResourceGroupName `
    --kubernetes-version 1.20.5 `
    --workspace-resource-id $WorkspaceResourceId `
    --enable-addons "monitoring" `
    --generate-ssh-keys `
    --tags $Tags `
    --debug

Error message:
2021-05-26T17:36:49.0199827Z ERROR: az_command_data_logger: 'DeploymentsOperations' object has no attribute 'begin_create_or_update'
2021-05-26T17:36:49.0200445Z Traceback (most recent call last):
2021-05-26T17:36:49.0201384Z   File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 231, in invoke
2021-05-26T17:36:49.0202055Z     cmd_result = self.invocation.execute(args)
2021-05-26T17:36:49.0202894Z   File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 657, in execute
2021-05-26T17:36:49.0203540Z     raise ex
2021-05-26T17:36:49.0204334Z   File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 720, in _run_jobs_serially
2021-05-26T17:36:49.0205062Z     results.append(self._run_job(expanded_arg, cmd_copy))
2021-05-26T17:36:49.0206008Z   File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 691, in _run_job
2021-05-26T17:36:49.0206669Z     result = cmd_copy(params)
2021-05-26T17:36:49.0207565Z   File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 328, in __call__
2021-05-26T17:36:49.0208257Z     return self.handler(*args, **kwargs)
2021-05-26T17:36:49.0209175Z   File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
2021-05-26T17:36:49.0210059Z     return op(**command_args)
2021-05-26T17:36:49.0210992Z   File "/opt/az/azcliextensions/aks-preview/azext_aks_preview/custom.py", line 1271, in aks_create
2021-05-26T17:36:49.0211737Z     cmd, addon_profiles[CONST_MONITORING_ADDON_NAME])
2021-05-26T17:36:49.0212816Z   File "/opt/az/azcliextensions/aks-preview/azext_aks_preview/custom.py", line 2759, in _ensure_container_insights_for_monitoring
2021-05-26T17:36:49.0213645Z     validate=False, no_wait=False, subscription_id=subscription_id)
2021-05-26T17:36:49.0214672Z   File "/opt/az/azcliextensions/aks-preview/azext_aks_preview/custom.py", line 329, in _invoke_deployment
2021-05-26T17:36:49.0215748Z     return sdk_no_wait(no_wait, smc.begin_create_or_update, resource_group_name, deployment_name, deployment)
2021-05-26T17:36:49.0216824Z AttributeError: 'DeploymentsOperations' object has no attribute 'begin_create_or_update'

Any updates on this at all from the service team?

On my side of things, this seems to be unblocked. We are actively targeting version 0.3.0

@dapt1989 @marlowp This issue should be due to the migration of Track 2 in CLI, and the compatibility code has been added in the latest version of extension. However, you haven't upgraded the CLI to the latest version. So please use az upgrade --yes to upgrade your CLI version.

Yes, DevOps pipeline was not using the latest CLI version before, but it has been updated now. Therefore, I close this issue.


Build fails

On a Linux scw-c1939b 4.5.1-docker-1 #1 SMP Tue Apr 19 12:55:15 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux building fails:
# github.com/lucas-clemente/aes12
../aes12/gcm_amd64.s:348: unrecognized instruction "PINSRB"
../aes12/gcm_amd64.s:407: unrecognized instruction "PINSRB"
../aes12/gcm_amd64.s:895: unrecognized instruction "PINSRB"
../aes12/gcm_amd64.s:1267: unrecognized instruction "PEXTRB"
asm: asm: assembly of ../aes12/gcm_amd64.s failed

Which go version is this?

go version go1.5.1 linux/amd64

Then I would say this is expected behavior, we don't currently support 1.5 (or even test it on the CI). Do you think we should?

Well, this is a different package from our quic-go. But let me try to run it on a newer Go version on my vServer first.

The package is question is the AES-GCM implementation I rigged for quic-go ;) It uses vector instructions, which are only available from 1.6 and up.


v7.1.0 changelogs conflict

Do you want to request a feature or report a bug?
Not quite a bug but need some action.
What is the current behavior?
Currently in release note of version v7.1.0 there are both

Add deps argument to useSelector (#1251 by @MrWolfZ)
Remove deps argument (#1272 by @josepot)

at same time which are conflicting and quite confusing without reading an entire change log and compare which one is actually implemented
What is the expected behavior?
"Add deps argument to useSelector" should be removed(or mark it as has been removed). left only "Remove deps argument"
Which versions of React, ReactDOM/React Native, Redux, and React Redux are you using?  Which browser and OS are affected by this issue? Did this work in previous versions of React Redux?
React Redux v7.1.0 release notes

This is just to show some of the discussion that happened along the way. We ended up remove a fair number of things in the end, so I think it's important to preserve that knowledge. As always, consult the docs for the most up to date info on the APIs and their usage.


Move main file into the bin directory for onnx_inference example

Pull Request Template
Checklist

[x] Confirm that run-checks.sh has been executed.

Related Issues/PRs
Provide links to relevant issues and dependent PRs.
Changes
This PR moves the main.rs binary into the bin directory. Reasons:

In this way lib.rs is not only a placeholder, but instead we show how library APIs are imported and used in a binary
It is possible to add more models, for different neural networks, adding a new file into src/bin directory. Thus we improve the example modularity

Testing
Run cargo build on the example

I didn't know about the bin directory and how it's processed by cargo, very nice.


Can't prepare gateway:Timeout Error

Description:
After updating both Home Assistant and the integration version, I encountered the following errors. I attempted to reinstall the integration multiple times, but it did not resolve the issue.
Environment:

Device: Gateway ZNDMWG03LM (Firmware 1.5.0_0026)
Home Assistant Version: 2023.9.3

Issues Encountered:

XiaomiGateway3 Version 3.3.5 & Version 3.3.4:

Gateway states are unavailable.
No connected devices are displayed.

Log Output:
Logger: custom_components.xiaomi_gateway3.core.gateway
Source: custom_components/xiaomi_gateway3/core/shell/base.py:184
Integration: Xiaomi Gateway 3 (documentation, issues)
First occurred: 15:35:57 (13 occurrences)
Last logged: 15:59:18

<IP_ADDRESS> | Can't prepare gateway
Traceback (most recent call last):
  File "/config/custom_components/xiaomi_gateway3/core/gateway/__init__.py", line 188, in prepare_gateway
    return await self.gw3_prepare_gateway(sh)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/xiaomi_gateway3/core/gateway/gate_mgw.py", line 49, in gw3_prepare_gateway
    await self.dispatcher_send(SIGNAL_PREPARE_GW, sh=sh)
  File "/config/custom_components/xiaomi_gateway3/core/gateway/base.py", line 108, in dispatcher_send
    await handler(**kwargs)
  File "/config/custom_components/xiaomi_gateway3/core/gateway/openmiio.py", line 30, in openmiio_prepare_gateway
    await sh.download_openmiio()
  File "/config/custom_components/xiaomi_gateway3/core/shell/base.py", line 145, in download_openmiio
    raw = await download(self.openmiio_url)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/xiaomi_gateway3/core/shell/base.py", line 184, in download
    async with session.get(url_or_path) as resp:
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 1141, in __aenter__
    self._resp = await self._coro
                 ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 467, in _request
    with timer:
  File "/usr/local/lib/python3.11/site-packages/aiohttp/helpers.py", line 721, in __exit__
    raise asyncio.TimeoutError from None
TimeoutError

XiaomiGateway3 Version v3-3.0-alpha.1:

All connected devices are visible, but their states are unavailable.

Log Output:
2024-01-21 04:08:27.040 DEBUG (MainThread) [custom_components.xiaomi_gateway3.core.gateway] <IP_ADDRESS> [BASE] 54ef4436d26b (lumi.gateway.mgl03) setup gateway ZNDMWG03LM: alarm, command, data, led, gateway
2024-01-21 04:08:27.041 ERROR (MainThread) [homeassistant.components.alarm_control_panel] Error adding entities for domain alarm_control_panel with platform xiaomi_gateway3
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 563, in _async_add_entity
    entity.add_to_platform_start(
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1250, in add_to_platform_start
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Entity 'alarm_control_panel.54ef4436d26b_alarm' cannot be added a second time to an entity platform
2024-01-21 04:08:27.041 ERROR (MainThread) [homeassistant.components.select] Error adding entities for domain select with platform xiaomi_gateway3
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 563, in _async_add_entity
    entity.add_to_platform_start(
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1250, in add_to_platform_start
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Entity 'select.54ef4436d26b_command' cannot be added a second time to an entity platform
2024-01-21 04:08:27.042 ERROR (MainThread) [homeassistant.components.select] Error adding entities for domain select with platform xiaomi_gateway3
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 563, in _async_add_entity
    entity.add_to_platform_start(
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1250, in add_to_platform_start
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Entity 'select.54ef4436d26b_data' cannot be added a second time to an entity platform
2024-01-21 04:08:27.042 ERROR (MainThread) [homeassistant.components.switch] Error adding entities for domain switch with platform xiaomi_gateway3
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 563, in _async_add_entity
    entity.add_to_platform_start(
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1250, in add_to_platform_start
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Entity 'switch.54ef4436d26b_led' cannot be added a second time to an entity platform
……

Please let me know if you need any further information or logs to diagnose and address this problem.

I have reason to believe that we have encountered similar issues #1268

I confirm the problem.
Home Assistant: 2023.2.5
Gateway 3 firmware: custom 1.5.4_0090
Telnet: opened (admin/admin) but in "MiCloud Device Information" after adding integration using login and password to download tokens and names for devices from the cloud, "Telnet: wrong_telnet" is displayed.
Integration version: v3.3.5
When I try to add a gateway with a token, I get the error: "The Telnet open command is invalid" (I leave the "key" field blank).

The error disappeared after a few days.


Error: EMFILE, open './node_modules/react/package.json'

TL;DR; Was working, then stopped working, with no apparent changes.
Not sure this is the right project to post the issue. Sometime yesterday afternoon, I started receiving the error: Error: EMFILE, open './node_modules/react/package.json' when using grunt-browserify. My code hasn't changed, but the build doesn't seem to work. I am running OSX Yosemite, which I understand has some EMFILE issues. I have read up some solutions that recommend changing the number of open files using ulimit. Unfortunately this feels like a hack to me considering the issue only just appeared using versions of packages that haven't changed in several months.
After some investigation, I have narrowed down that using the grunt-browserify option watch:true stops the error from happening. Is there any issue with running watch:true for single builds when I don't want the project to keep the process alive? Why would this all of a sudden start popping up, not only on my machine but multiple other machines in the office (all OSX).
Simple GIST example for your pleasure.
https://gist.github.com/blackdynamo/59497daa26c876eddc6c

Answered on reactiflux, we cannot really do anything about it because it depends on the value of ulimit -n on Mac OS X.
Not sure why it's not happening with watch: true though. But the upstream browserify repo might be a better place for this issue since it should also happen using the CLI.


Text rendering error with foreground color "White" (aka PowerShell color "Gray" aka ANSI "e[0;37m")

Environment
Windows build number: 10.0.18363.0
Windows Terminal version (if applicable): 1.0.1401.0
Additional software: PowerShell 7 version 7.0.1; ColorTool 1904.29002

Steps to reproduce
Use ColorTool -c and/or Get-PSReadLineOptions to show current color settings. Observe that the color "Gray" is rendered incorrectly (but seemingly only used as a foreground color — background color "Gray" appears to be fine!) in Windows Terminal.
For the sake of completeness, just in case I am missing something obvious, this is the color scheme I am using:
    {
            "name": "Monokai",
            "foreground": "#F8F8F2",
            "background": "#282923",
            "cursorColor": "#F8F8F2",
            "black": "#282923",
            "red": "#F83535",
            "green": "#537115",
            "yellow": "#FD9621",
            "blue": "#0087AF",
            "purple": "#7356AB",
            "cyan": "#56AB81",
            "white": "#74705D",
            "brightBlack": "#48473D",
            "brightRed": "#F92472",
            "brightGreen": "#A6E22C",
            "brightYellow": "#E7DB74",
            "brightBlue": "#67D8EF",
            "brightPurple": "#AC80FF",
            "brightCyan": "#67D8EF",
            "brightWhite": "#F8F8F2"
    }

Expected behavior
I would expect the color "Gray" to print correctly and consistently for both foreground and background. Powershell 7.0.1 prints "Gray" as I expect.
Actual behavior
See attached screenshots. In each image, two windows are stacked vertically: Windows Terminal above and PowerShell 7 underneath.
ColorTool:

Note the bottom two output rows from colortool -c. Windows Terminal prints the 37m line as color #F8F8F2 (the same color as the 1;37m row), rather than using the scheme-correct color #74705D. Yet Windows Terminal clearly understands that the color #74705D is defined in the scheme as "Gray" — the background of the rightmost output column is filled with the proper "Gray" #74705D color. The output of colortool -c in PowerShell 7, seen in the bottom half of the image, appears correct for all foreground color rows and background color columns.
Get-PSReadLineOptions

Note the CommentColor value of "`e[0;37m" (the 0; added in there for overkill while I was trying to debug this issue myself). Windows Terminal prints the output of this line once again in "Bright White" #F8F8F2, despite my $PROFILE explicitly setting the PSReadLineOption Color for "Comment" to "`e[0;37m" (previously "Gray", but I tried switching to escape codes in case it made a difference — it did not). Once again, the output from PowerShell 7 appears to be correct. It seems that Windows Terminal does not care for printing text with foreground color "Gray"? Additionally, both images show a "bonus" repro in the prompt: the triangular character between the date and the time is generated via Write-Host "" -BackgroundColor "DarkGray" -ForegroundColor "Gray" -NoNewline, so once again a foreground color of "Gray" seems to be failing here.

Thanks for the report! This is a subtly different version of #293 #2661 :smile:
It’ll be fixed when 2661 is.
/dup #2661


Release @google-cloud/storage v2.1.0

This pull request was generated using releasetool.

Release is at https://github.com/googleapis/nodejs-storage/releases/tag/v2.1.0


Is there a limit to number of video components?

I've got a horizontal paging FlatList that needs to display both images and videos, but I'm running into an issue where only about four videos are being displayed at all.
It's got me wondering - is there a limit to the number of video components that can be rendered?

Are you using iOS and using a physical device? Because if so, Apple restricts the number of video elements that can play in an app simultaneously that varies depending on the device.
My workaround for my FlatList implementation was to use the onViewableItemsChanged FlatList prop to keep track of which items are visible and then only rendering the <Video/> component on visible items

Using Android and a physical device. It seems to be related to how many video components are mounted at the same time. Things work as intended if I manage to control things so that only one video mounts at a time, but the moment it gets to be more than one everything goes pear-shaped.


Forge: Server did not respond with any information!

OSError: Server did not respond with any information!
I am not proceeding with the query.
When progressing status = server.status(), the following error occurs.
D:\Lunar>py server.py
Traceback (most recent call last):
  File "server.py", line 4, in <module>
    status = server.status()
  File "C:\Users\norhu1130\AppData\Local\Programs\Python\Python38\lib\site-packages\mcstatus\server.py", line 116, in status
    return self._retry_status(connection, **kwargs)
  File "C:\Users\norhu1130\AppData\Local\Programs\Python\Python38\lib\site-packages\mcstatus\utils.py", line 53, in sync_wrapper
    raise last_exc  # type: ignore # (This won't actually be unbound)
  File "C:\Users\norhu1130\AppData\Local\Programs\Python\Python38\lib\site-packages\mcstatus\utils.py", line 49, in sync_wrapper
    return func(*args, **kwargs)
  File "C:\Users\norhu1130\AppData\Local\Programs\Python\Python38\lib\site-packages\mcstatus\server.py", line 122, in _retry_status
    result = pinger.read_status()
  File "C:\Users\norhu1130\AppData\Local\Programs\Python\Python38\lib\site-packages\mcstatus\pinger.py", line 67, in read_status
    response = self.connection.read_buffer()
  File "C:\Users\norhu1130\AppData\Local\Programs\Python\Python38\lib\site-packages\mcstatus\protocol\connection.py", line 140, in read_buffer
    length = self.read_varint()
  File "C:\Users\norhu1130\AppData\Local\Programs\Python\Python38\lib\site-packages\mcstatus\protocol\connection.py", line 68, in read_varint
    part = self.read(1)[0]
  File "C:\Users\norhu1130\AppData\Local\Programs\Python\Python38\lib\site-packages\mcstatus\protocol\connection.py", line 220, in read
    raise IOError("Server did not respond with any information!")
OSError: Server did not respond with any information!

Looks as if some firewall between the script and the server is interfering. Hard for us to help though given that you haven't shared any versions nor the address of this server. Perhaps the server was still starting or was not running?

The server is on, and the firewall is fine, too
Server information is available at beeonline.kro.kr

the firewall is fine

And it could be the problem. Make sure the necessary UDP port is open in that firewall.

server.status() Does need a Query?

I had more time to investigate tonight and found that the port is open, so that's not the issue.
The issue is in the _parse_description function not being able to handle {'translate': 'VDZsaXJnZThoa3RaWlZ1SFdXcStBdz09'} as input.

Looks like mcsrvstat.us also can't get server's MOTD:

Could it be server's software problem?
P.S. I also checked MOTD with standard Minecraft, it shows random string.

Should be fixed in #335 after this.
>>> Motd.parse({'translate': 'VDZsaXJnZThoa3RaWlZ1SFdXcStBdz09'}).parsed
[TranslateString(id='VDZsaXJnZThoa3RaWlZ1SFdXcStBdz09'), <Formatting.RESET: 'r'>]


Fixed bug: layer names which will be finetuned

Hi! Again thanks for your amazing repo!
I am confused in this part. Please review this PR carefully.
I think:
ft_module_names.append('layer{}'.format(ft_begin_index))
should be
ft_module_names.append('layer{}'.format(i))
, but it is the same in all models in models folder. Is it intentional?
But if I set ft_begin_index=3, it never becomes 4, so the 4th channel will remain the same, right? Maybe, I misunderstood the code.

You are right.
I should fix this bug for other models.


django 2.2 graph_models ImportError: cannot import name 'get_models'

I am trying to create database schema diagram for my django 2.2 project using commands mentioned onhttps://django-extensions.readthedocs.io/en/latest/graph_models.html#example-usage but all are failing due to below error
./manage.py graph_models -a -I Stocks -o my_project_subsystem.png
Traceback (most recent call last):
  File "./manage.py", line 13, in <module>
    execute_from_command_line(sys.argv)
  File "/Users/mammar/.pyenv/versions/om-subscription/lib/python3.6/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
    utility.execute()
  File "/Users/mammar/.pyenv/versions/om-subscription/lib/python3.6/site-packages/django/core/management/__init__.py", line 375, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/Users/mammar/.pyenv/versions/om-subscription/lib/python3.6/site-packages/django/core/management/__init__.py", line 224, in fetch_command
    klass = load_command_class(app_name, subcommand)
  File "/Users/mammar/.pyenv/versions/om-subscription/lib/python3.6/site-packages/django/core/management/__init__.py", line 36, in load_command_class
    module = import_module('%s.management.commands.%s' % (app_name, name))
  File "/Users/mammar/.pyenv/versions/3.6.9/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/Users/mammar/.pyenv/versions/om-subscription/lib/python3.6/site-packages/django_extensions/management/commands/graph_models.py", line 8, in <module>
    from django_extensions.management.modelviz import generate_dot
  File "/Users/mammar/.pyenv/versions/om-subscription/lib/python3.6/site-packages/django_extensions/management/modelviz.py", line 15, in <module>
    from django.db.models import get_models
ImportError: cannot import name 'get_models'

I have tried from django.db.models import get_models and get_models is not present. Does that mean django-extensions is not compatible with django 2.2?
Please help to fix the issue.

We test against Django 2.2 so we expect it to work. Anything not working against supported Django or Python versions for Django Extensions is considered a bug.
That said I cannot reproduce this:
$ pip freeze|grep -i Django==
Django==2.2

$ ./manage.py graph_models -a -o test.png
$ file test.png
test.png: PNG image data, 15551 x 1141, 8-bit/color RGB, non-interlaced

If this does persist for you please try to create a PR for a test case in our test suite that triggers this issue. That way we have something to help fix this and make sure it does not regresses later.


No, and I've requested the deletion of these, and a number of others that were hanging around.


feat: assign weights in graph

Description
This is the scaffolding code required to compute weights for each node and edge. It's not meant to support every kind of model - more followup PRs will come. (For example, models with cycles are not handled).
Please review each model in the weighted_graph_builder_test.go and visualize the output in https://dreampuf.github.io/GraphvizOnline/. This will help you review the correctness of the weight assignment algorithm.
Example

Why not use gonum's weighted graph? 🤔

Why not use gonum's weighted graph? 🤔

@elbuo8 several reasons:

gonum's weighted graph allows natively assigning weights to edges only
those weights are float64 only

The relationship between the weighted graph builder and the weighted graph is a bit odd. Currently the weighted graph has a dependency of its builder, which seems backwards.
Instead of coupling it all together with the current approach:
weightedGraph, err := NewWeightedAuthorizationModelGraph(model)

I would suggest decoupling them explicitly:
weightedGraphBuilder := NewWeightedAuthorizationModelGraphBuilder()
weightedGraph, err := weightedGraphBuilder.Build(model)

I know this is introducing an additional step/line of code, however I really don't see the point of having the builder, otherwise.


Add experimental Cilium CNI provider

Accept "cilium" as an experimental CNI networking mode using overlay vxlan tunnels
Like most experiments, the feature is not listed in docs or supported, it may be removed at any time without notice
Platform firewalls:

Require UDP 8472 for vxlan (Linux kernel default) between nodes
Optional ICMP echo(8) between nodes for host reachability
(health)
Optional TCP 4240 between nodes for host reachability (health)

Optional health ports are not opened on Azure

Known Issues:

HostPort isn't usable https://github.com/cilium/cilium/issues/12116

Related:

https://github.com/cilium/cilium
https://github.com/poseidon/terraform-render-bootstrap/pull/192

Fedora CoreOS 32 updates to systemd 245 which changes rp_filter default https://github.com/cilium/cilium/issues/12217


OnceFrame for single-evaluation lazyframe releases

The experimental Polars APIs currently release a LazyFrame, which is an object that can be collected multiple times, each time with different random noise values. Introducing a newtype OnceFrame around LazyFrame could resolve this, by only allowing a single collection, but allowing pass-through of certain whitelisted methods- like collect or sink.

#1602

OnceFrame is implemented: closing.


Changed bytes in .text section of DLL export incorrectly

Describe the bug
When modifying instructions and bytes in the .text section, there is a chance that some bytes will get saved completely incorrectly.
To Reproduce
Steps to reproduce the behavior:

Modify a sufficient amount of instructions in a DLL (in this case i am using the Source engine.dll)
Export program
Some of the bytes should be different than what you put in Ghidra

Screenshots
https://cdn.discordapp.com/attachments/336023718709035020/1109849787920023633/javaw_ZGaBbrOrma.mp4
The left tab shows the intended bytes, the right tab shows what has been exported. You can notice that some of the bytes change into complete garbage on the right tab, when the left tab shows what should have been exported.
Environment (please complete the following information):

OS: Windows 11
Java Version: 17.0.6
Ghidra Version: 10.3
Ghidra Origin: Github releases

I have researched this topic very deeply, it turns out that the relocation table is what messes these bytes up.
Is there a way to modify the relocation table?

Possibly related to #5346.  If possible, can you try building master and trying again?

Likely fixed in 10.3.1.


Add additional proposals to sysctl.conf

Added proposals to sysconf.conf.extra file to harden security.

Closing request. Will submit an updated change.


How is connection.html supposed to be served?

First of all, I really like this. It works nicely with my android phone to get the target device into the desired WiFi. Nice!
But I don't understand how the connection.html is to be served. Once the wifi setup is done the main loop isn't run anymore, no polling takes place and thus the http server will not serve anything afterwards. The readme even states that the AP is stopped once station mode is connected.
But imho the esp supports to run in ap and sta mode at the same time. So it should be possible to keep the AP running and allow for a nice redirect to a page served on sta side.
What am I missing?

Same question, learn a lot from your codes, dont know how to redirect the "connected" page to user.
And, there are many "- Sending outgoing HTTP data cannot write to a closed socket" debug info when run, thx

same question!


KAFKA-16486: Integrate KIP-1019 measurability changes (KIP-714)

The PR implements the changes defined in KIP-1019. Does the cleanup for accessing KafkaMetric field by reflection and uses method exposed by KIP-1019 for metric measurability.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

The build is dependent on merge of PR: https://github.com/apache/kafka/pull/15681


Save the $v.$invallid on vuex

I dont know how can i watch the $v.$invalid and set it on vuex.
I have a PARENT component whit 5 CHILDS, the PARENT has the validations and he props pass to CHILDS (inputs, selects, radios).
I need set on vuex only if they are all valid or all invalid.
Tks

mounted () {
this.$watch('$v.$invalid', (value) => {
this.vuexACTION(!value)
})
},


Rule Test Templates

to: @ryandeivert @fusionrace @jbussing
cc: @airbnb/streamalert-maintainers
size: large
Background
Today, writing StreamAlert rule tests requires a copy of a 'real' log that will classify properly in the rules engine.  This can be a little arduous if your rule only tests one or two conditions.
The purpose of this pull request it to introduce a new functionality where a user can supply a partial test event, and the testing framework will fill the rest of the fields in with default data.
Here's an example:
For the given rule:
@rule(logs=['duo:authentication'], outputs=['aws-firehose:alerts'])
def duo_anonymous_ip_failure(rec):
    """
    author:       airbnb_csirt
    description:  Alert on Duo auth logs marked as a failure due to an Anonymous IP.
    reference:    https://duo.com/docs/policy#anonymous-networks
    playbook:     N/A
    """
    return rec['result'] == 'FAILURE' and rec['reason'] == 'Anonymous IP'

The only fields checked are result and reason.  If we look at the intended schema of these logs, we see:
  "duo:authentication": {
    "schema": {
      "access_device": {},
      "device": "string",
      "factor": "string",
      "integration": "string",
      "ip": "string",
      "location": {},
      "new_enrollment": "boolean",
      "reason": "string",       # used in the rule
      "result": "string",         # used in the rule
      "timestamp": "integer",
      "username": "string"
    },
    "parser": "json"
  }

There a lot of fields not used in the rule.  Thankfully, the test event can now be declared with an override_record key, which contains the fields you want to override from a 'default' log generated from the duo:authenticaiton schema.
  {
    "override_record": {
      "reason": "Location restricted",
      "result": "FAILURE"
    },
    "description": "Duo authentication log marked as failure as a result of 'Location restricted' that will not create an alert",
    "log": "duo:authentication",
    "service": "stream_alert_app",
    "source": "prefix_cluster_duo_auth_sm-app-name_app",
    "trigger_rules": []
  }

Changes

Support a new rule test format, where it can simply be a JSON list, instead of needing to wrap the object with a 'records' key.
Support override_records, where default events are generated and then merged with the user supplied keys.
Move generation of default schema values into ParserBase.
Update unit tests, format files, cleanup as needed.

Testing
Local rule tests, pylinting, and yapf

Coverage remained the same at 95.667% when pulling ac49b799cc908c470070ed6f930bef3b1d74b2fa on jacknaglieri-rule-test-templates into 5289ecd3e2ce43665a7f3b1b5a419af8f5e2b0a3 on master.

After code review, I'll update documentation

Also thanks for the great PR body - really helped me understand much better!

@ryandeivert PTAL, just pushed some final fixes

FYI
I have committed a script that can convert the old style test events to new style!
$ ./tests/scripts/convert_test_events.py


set -std=c++98 in cflags

We still want to stick to this standard.

What's the motivation for this flag? Couldn't this disable some possible optimizations (e.g. move semantics, RVO)?

This is to catch unintentional use of feature with C++11 or later.
I think if this disables some optimizations, those are what we should accept until we allow C++11.
But at least, RVO is not affected by -std=c++98 in gcc.
with -std=c++98       : https://godbolt.org/z/y_zS1q
without  -std=c++98 : https://godbolt.org/z/3SnDg_
And move semantics is c++11 feature, we cannot use that yet?

Any chance Ninja could adopt C++11? Its been 8 years. After all.

And move semantics is c++11 feature, we cannot use that yet?

The STL uses them though.

We don't use std::move, so this change should not affect move semantics?
Or are you saying that ninja allow to use c++11 partially?

Even without std::move some constructs are rvalue references and a move constructor can be called instead of the copy constructor.

Ah OK. Then can we add different build config to CI in #1568 ?

I know that I'm a broken record, and that you don't want to have this discussion again:
But...
Has anyone collected a list of old systems that they want to compile and execute ninja on?
I'm very curious what, specific, older systems are considered supported by Ninja, aside from Ubuntu 14.04?
When Ubuntu 14.04 is EOL, will ninja switch to C++11? That's April 2022 according to https://wiki.ubuntu.com/Releases
If Ubuntu 14.04 is the oldest thing that the Ninja project cares about, why prevent the use of the C++11 features that are supported by it? It supports (almost all of) C++11, just add -std=c++0x to the build flags.

Has anyone collected a list of old systems that they want to compile and execute ninja on?

No.

If Ubuntu 14.04 is the oldest thing that the Ninja project cares about, why prevent the use of the C++11 features that are supported by it? It supports (almost all of) C++11, just add -std=c++0x to the build flags.

1.) Ubuntu 14.04 is not the oldest thing that Ninja cares about
2.) I think the support in 4.8 is still considered experimental?

1.) Ubuntu 14.04 is not the oldest thing that Ninja cares about

What's the oldest thing that Ninja cares about?

Okay should have phrased that differently: I don't think that Ubuntu 14.04 is the oldest thing that the owners of Ninja (i.e. not me) care about.

Seems strange to say that anyone but you is an owner of the project.
What's it been, about a year now, since you started being the primary maintainer?
If there's anything older than Ubuntu 14.04, then let someone who wants support for something older than that speak up.
Why not put together an official list of supported platforms?

There's the copyright owner (Google?) and the owners of the repo, domain, etc. They could revert my changes and kick me out of the GitHub organization at any time.

If there's anything older than Ubuntu 14.04, then let someone who wants support for something older than that speak up.

They are working full-time on other projects and don't read everything regarding Ninja. Nico mentioned "old systems" here and I also recall him saying something about "very old systems" at some point. There's also been a recent mailing list thread about C++11 where he restated his opinion.
My stance on this: If it ain't broken, don't fix it. There are still too many C++98 PRs to go through, I don't need new ones. Maybe in 2022 :P

Why not put together an official list of supported platforms?

Because that would be unpaid work ;)

There's the copyright owner (Google?) and the owners of the repo, domain, etc. They could revert my changes and kick me out of the GitHub organization at any time.

shrug.
An unmaintained project quickly becomes ignored by the community.
Were you to move your maintainer-ship activities to another github repository, and domain name, the vast majority of ninja users would follow.

They are working full-time on other projects and don't read everything regarding Ninja. See #1403 (comment) and the recent mailing list thread about C++11 where he restated his opinion.

Maybe I missed it, but I don't see anything on the mailing list where any justification for maintaining compatibility with C++98 is given. Only that compatibility with C++98 is what is wanted by people who used to maintain the code base.
If there was a tangible reason, such as a specific operating system running in a specific environment, where continued development of ninja still needed to be functional, and there was no way to compile for that platform except for with a c++98 compiler, then I'd promptly shut up and leave the issue alone.
Without any justification provided, I have no motivation to pay attention to other people's opinion aside from where their opinion directly intersects my life. I've got 10+ patches that I'd love to see merged into Ninja that C++11-ify the codebase, and do a remarkable job of improving the readability and maintainability.

My stance on this: If it ain't broken, don't fix it. There are still too many C++98 PRs to go through, I don't need new ones. Maybe in 2022 :P

I think the major difference of opinion here is that I see C++98, in and of itself, as broken. shrug.
My experience working on my fork very clearly demonstrates this to me. C++98 has caused several very deeply ingrained design flaws that I can't practically address while still having any method of pulling in upstream work from Ninja proper.
Among other things, the StringPiece data structure is abused in numerous places by editing strings where they shouldn't, const-casts, and so on.

Because that would be unpaid work ;)

Are you paid to maintain ninja, and part of that involves maintaining support for older platforms? If so, then I'm happy to to leave you alone about it. I was not lead to believe that this was your day job or something you were compensated for.
Regardless, I'm obviously not going to convince you about this today.
Consider modifying the readme to explain that compatibility with Ubuntu 14.04 is (one of) the reason(s) for requiring C++98 (Not that that makes any sense. C++11 works just fine on Ubuntu 14.04, and you can obviously build a binary intended for 14.04 on other platforms.)

An unmaintained project quickly becomes ignored by the community.
Were you to move your maintainer-ship activities to another github repository, and domain name, the vast majority of ninja users would follow.

I doubt it. I wouldn't do that anyway as it involves too much work (and I don't see the need).

I've got 10+ patches that I'd love to see merged into Ninja that C++11-ify the codebase, and do a remarkable job of improving the readability and maintainability.

There are so many PRs waiting to be merged, even if we moved to C++11 right now, I wouldn't merge your patches before those existing PRs, cause that would cause merge conflicts. Sorry.
On the mailing list someone someone had implemented a faster build manifest parser and he used C++11 and I said that he shouldn't worry: If there's a PR which adds an important feature or fixes a severe bug and it requires C++11, I would try to convince the others to bump the standard requirement. But as of right now all of the big PRs for 1.10 (e.g. dyndep) are C++98 and none of the contributors complained about it.

Are you paid to maintain ninja, and part of that involves maintaining support for older platforms?

No, but I think people at Google use Ninja on older platforms and they consider the support for those platforms more important than the benefits of moving to C++11.

Consider modifying the readme to explain that compatibility with Ubuntu 14.04 is (one of) the reason(s) for requiring C++98

I'm planning to set up a CONTRIBUTING.md (I think GitHub gives this filename special treatment?) and mentioning the C++ standard there.

Not that that makes any sense. C++11 works just fine on Ubuntu 14.04.

GCC shouldn't have called it "experimental" then.

Regarding the performance considerations: #669

I added this requirement to the wiki so that future contributors don't have to wade through old issues and pull requests to learn which C++ features are acceptable in ninja.

Any code merged into the Ninja codebase which will be part of the main executable must compile as C++03.

from CONTRIBUTING.md wasn't clear enough? Maybe we should link to CONTRIBUTING.md from the wiki for the parts that overlap.


Semantic cleanup

Major revision to better align the UI with NR1 look and feel, and to remove the use of semantic-ui components.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Why ~10% Cure Rate in This Example?

At the bottom of this page, we see the following chart:

The commentary is: Under this model, it suggests that only ~10% of subjects are ever cured (however, there is a lot of variance in the estimate of the p parameter).
I see the above chart as suggesting ~20-70% of patients are ever cured. Am I interpreting this incorrectly or is this an error in the documentation? If an error, I can submit a PR.

The 10% comes from the parameter estimates (p):

If we were to extend out the plot to infinity, the survival function would be asymptotic to 0.1

d'oh! thank you.


Start / stop the GCE runner before/after use to reduce costs.

I tested this approach by creating a test action in https://github.com/covid-projections/covid-data-model/pull/1337.  See an example run here.

Yeah.  can-actions-runner-2 has actually been sitting around for a while. I probably created it and forgot?  I am not sure how much it costs us to have a VM that's not being used. I think it's just the storage.  But I can delete it once I'm confident we're done testing stuff.
  Will monitor to make sure it works as expected.

Oh ok! I might have created it way back when testing something, too, not sure. Either way, yeah I agree, we can get rid of it once we're finished testing 🙏


Calling addSelect('field') with no earlier select('') or addSelect('') results in almost empty object (with only 'field' retrieved)

Problem:
When using addSelect() on a query with no previous select('') and addSelect('') methods called, the result will be an empty object with only the fields from addSelect(). It's probably the result of this:
if ($this->select === null) {
    $this->select = $columns;
} else {
    $this->select = array_merge($this->select, $columns);
} // where columns is the argument passed to addSelect()

I am willing to cobble together a pull request for this later this week, if the idea is acceptable (I assume there is a reason for that behavior).
What steps will reproduce the problem?
Using any query with addSelect() without using select('') or addSelect('') beforehand.
What is the expected result?
addSelect() should only expand the list of fields selected, not assume no fields should be selected by default. After performing the query an object with selected all fields AND the fields specified in addSelect().
What do you get instead?
Object with all fields NULL except for those specified in addSelect().
Additional info

Q
A

Yii version
2.0.9

PHP version
7.0.9

Operating system
Ubuntu 16.04 x86_64

I think it's expected to work like that. @yiisoft/core-developers do you remember if it's true or not?

@samdark Yeah, I assume so. The question is is there a basis for this reasoning or should we make this an RFC, perhaps?

I think the current behavior is correct.
Here I can add col2 or col3 to the select without needing to know if the select has already been specified. If $condition1 is false I don't want to return all columns with col2 or col3.
e.g.
if ($condition1) {
    $query->select('col1');
}

if ($condition2) {
    $query->addSelect('col2');
} else if ($condition3) {
    $query->addSelect('col3');
}

@Alex-Code I see your point.
Right now it's consistent with andWhere() and the like, as in it assumes NULL when the condition is not set beforehand.
On the other hand, by default ActiveRecord::find() returns all columns when select() is not specified. This makes using addSelect() in it's current state kind of counter-intuitive and requires using addSelect(['*', 'extraColumn']) every time I want to simply add another column to SELECT part of the query.
Also, this breaks when using a custom Query class, as every time I would like to use a query method with addSelect() I have to check for conflicting addSelect() calls in other methods in the custom Qeury class and work around them.

You need to call ->select('*') prior to addSelect() if you need behavior you want.

@samdark Yeah, that's what I am doing. It's sad that I have to do that every single time though, since I don't want to put select('*') in my Query class methods.
I think we can close this, unless anyone has any more insight on the matter to share.

OK.

You could do this in your model
/**
* @return ActiveQuery
*/
public static function find()
{
    $query = new ActiveQuery(get_called_class());
    return $query->select('*');
}

@Alex-Code Yeah, that's what I figured out as well. Thanks for your time though.

I faced this issue right now. I was surprized that:

Due to docs,  select property means "all by default" yii\db\Query:58

 /**
  * @var array the columns being selected. For example, `['id', 'name']`.
  * This is used to construct the SELECT clause in a SQL statement. If not set, it means selecting all columns.
  * @see select()
  */
public $select;

Add statement ignores. yii\db\Query:592

if ($this->select === null) {
    $this->select = $columns;
} else {
    $this->select = array_merge($this->select, $columns);
}

Some use cases:

What I want
How do I do
Is goal Reached?

Select all default columns
ArClass::find()->all() // no call select()
yes

Select only 2 passed columns
ArClass::find()->select(['col1', 'col2'])->all()
yes

Select 2 passed columns +1 more
ArClass::find()->select(['col1', 'col2'])->addSelect('col3')->all()
yes

Select all default columns + 1 more
ArClass::find()->addSelect('col3')->all()
no

Select all default columns + 1 more
ArClass::find()->select('*')->addSelect('col3')->all()
sometimes

Select all default columns + 1 more
ArClass::find()->select(ArClass::tableName() . '.*')->addSelect('col3')->all()
yes

In my opinion, query must select all default columns until I define columns set manually. Add meand adding element to some set. $select defined as all by default, but when you call addSelect() without calling select(), that means default not exists, add this.
All suggested solutions are workarounds, neither of them solves this semantic problem. Once again, I speek only about semantic problem with word "add" in method name.

@undestroyer would you please post it as separate issue? We can possibly fix it in 2.1.

@samdark Yes, of course! Thank you for reply.


It seems that I cannot hide my IP using the proxy?

I want to hide my own IP address but it seems unstable.
import requests
url = "http://httpbin.org/get"
proxy0 = {"http":"http://<IP_ADDRESS>:8080"} # just an example, it may have expired
proxy1 = {"http":"http://<IP_ADDRESS>:8080"}
r0 = requests.get(url, proxies=proxy0, timeout=5)
r1 = requests.get(url, proxies=proxy1, timeout=5)
r0.json()["origin"]
r1.json()["origin"]

When I tested it the the origin in r0 contained only one IP while that of r1 contained two including my own IP.
The same problem was posted on StackOverflow, please refer to here.

@eduOS In this instance, it's possible that the proxy is setting X-Forwarded-For header, which will contain the IP address of your source. Alternatively, it's possible that you're getting forwarded to a HTTPS address. Either way, it's likely that the connection is still using the proxy: so longa s the scheme of the two URLs match, we will use it.


Enable Frost Wyrms and Sapphiron for Scourge even if Sapphiron is denied

Also do similar fixes for any quest that uses Kill Unit objective


UI Recorder unnecessarily applies starts-with formatting to AutomationId attribute

We have confirmed the phenomenon that the AutomationId attribute is not generated correctly when generating xpath using UIRecorder.
After reading the source code, the possible causes are as follows.
In the AutomationId path generation process, there is a description that generates a path in starts-with format if the count that matches the regular expression (^([^¥d]*)[_¥.¥-¥d]+$) is equal to or greater than 2, there is a description that generates the path in starts-with format.
https://github.com/microsoft/WinAppDriver/blob/master/Tools/UIRecorder/UIRecorder/GenerateXPath.cs#L399
For example, a string ending with a number such as textBox1 falls under this category, so the path will be generated in the starts-with format as follows.
Edit[starts-with@AutomationId,\"textBox\")]

Why do an ambiguous search for starts-with when you can get a value that uniquely identifies the element textBox1?
In fact, when I created textBox1 and textBox2 and retrieved their xpaths, they generated exactly the same path, even though the elements were different.

Verified in Visual Studio 2022.

Hi,
I'm facing the same problem with the recorder. Were you able to find any solution?
@hagi845


Adding custom metrics for OTelTraceRawProcessor and changing test dependency to JUnit

Issue #, if available:
Closes #230
#201
Description of changes:

Changing dependency from Jupiter to JUnit for all OTel Trace Raw processor test classes.
Adding custom metrics i.e. Counters for exceptions in the OTel Trace Raw processor.
Modifying OTel Trace Raw Processor test class to setup PluginSetting.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Occupied with release stuff, asking @chenqi0805 to take a look at this PR.


Feat/jcx/buildinfo

Add in build info, save failing stuff from javadoc, general ci fixes

There should also be a creation of the gradle.properties file re-added in here!

There should also be a creation of the gradle.properties file re-added in here!


largeop="false" on integral causes overlapping limits

Issue Summary
I just figured I'd report this because it seems like a bug, though perhaps there's some good reason for this that I don't know of. In order to avoid a really large integral/summation/product symbol in the sub or sup position, we use largeop="false". I noticed that largeop="false" causes crashing for the integral symbol (summation and product look fine) in MathJax. See below for an example.
PDF with <m:mo>∫</m:mo> (we don't use this tagging):

MathJax with <m:mo>∫</m:mo> (no crashing in this case; also the integral symbol is small as desired even w/o largeop="false"):

PDF with <m:mo largeop="false">∫</m:mo> (we use this tagging):

MathJax with <m:mo largeop="false">∫</m:mo> (crashing in this case):

MathML:
<m:msup><m:mrow><m:mi mathvariant="normal">e</m:mi></m:mrow><m:mrow>
<m:mo>−</m:mo><m:mi>i</m:mi><m:msubsup><m:mrow><m:mo>∫</m:mo>
</m:mrow><m:mrow><m:mn>0</m:mn></m:mrow><m:mrow><m:msub><m:mrow><m:mi

t</m:mi></m:mrow><m:mrow><m:mn>3</m:mn></m:mrow></m:msub></m:mrow>
</m:msubsup><m:mi mathvariant="normal">d</m:mi><m:mi>τ</m:mi>
<m:msub><m:mrow><m:mi>ω</m:mi></m:mrow><m:mrow><m:mn>10</m:mn>
</m:mrow></m:msub><m:mrow><m:mo stretchy="false">(</m:mo><m:msubsup>
<m:mrow><m:mi mathvariant="bold">Z</m:mi></m:mrow><m:mrow><m:mi>τ</m:mi>
</m:mrow><m:mrow><m:mo stretchy="false">(</m:mo><m:mn>11</m:mn><m:mo
,</m:mo><m:mn>10</m:mn><m:mo stretchy="false">)</m:mo></m:mrow>
</m:msubsup><m:mo stretchy="false">)</m:mo></m:mrow></m:mrow></m:msup>

and
<m:msup><m:mrow><m:mi mathvariant="normal">e</m:mi></m:mrow><m:mrow>
<m:mo>−</m:mo><m:mi>i</m:mi><m:msubsup><m:mrow><m:mo
largeop="false">∫</m:mo></m:mrow><m:mrow><m:mn>0</m:mn></m:mrow>
<m:mrow><m:msub><m:mrow><m:mi>t</m:mi></m:mrow><m:mrow><m:mn>3</m:mn>
</m:mrow></m:msub></m:mrow></m:msubsup><m:mi mathvariant="normal"

d</m:mi><m:mi>τ</m:mi><m:msub><m:mrow><m:mi>ω</m:mi>
</m:mrow><m:mrow><m:mn>10</m:mn></m:mrow></m:msub><m:mrow><m:mo
stretchy="false">(</m:mo><m:msubsup><m:mrow><m:mi mathvariant="bold"
Z</m:mi></m:mrow><m:mrow><m:mi>τ</m:mi></m:mrow><m:mrow><m:mo
stretchy="false">(</m:mo><m:mn>11</m:mn><m:mo>,</m:mo><m:mn>10</m:mn>
<m:mo stretchy="false">)</m:mo></m:mrow></m:msubsup><m:mo
stretchy="false">)</m:mo></m:mrow></m:mrow></m:msup>

Technical details:
MathJax Version: master - latest commit: MathJax.js v2.7.5
Client OS: Windows
Browser: Chrome Version 91.0.4472.114 (Official Build) (64-bit)
Renderer: HTML-CSS

I'm changing the title of the issue, since in computer programming "crashing" refers to the program stopping unexpectedly.  I was a bit alarmed when you said your input caused crashing, since that would indicate that MathJax stopped working.  That is not actually what happens, so the change in title.

@dpvc OK sorry, didn't mean to alarm you!

The integral symbol is a peculiar one to work with.  Because it is so slanted, if it used its full width, there would be way too much space between the integral and the letters that followed it.  So the STIX fonts have the width of the integral sign at about half of the full width of the character, so that something like \int x will have the x reasonably close to the integral (it will extend over the top of the x.  Where MathJax renders limits on the integral, it compensates for that using information from the bounding box of the integral sign as well as its stated width (half the bounding box width).  But it turns out that v2 only does this when largeop is true.  That should probably be considered a bug in v2 (v3 does it correctly).  But that is why the scripts are overlapping the upper part of the integral (its width in the font is only half of the bounding box of the actual ink of the character).
You can work around this by using
MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready", function () {
  var HTMLCSS = MathJax.OutputJax["HTML-CSS"];
  var MML = MathJax.ElementJax.mml;
  var toHTML = MML.mo.prototype.toHTML;
  MML.mo.Augment({
    toHTML: function (span) {
      span = toHTML.call(this, span);
      if (!this.Get('largeop')) {
        if (span.bbox.rw > span.bbox.w) {
          span.bbox.ic = span.bbox.rw - span.bbox.w;
          HTMLCSS.createBlank(span, span.bbox.ic / this.mscale);
          span.bbox.w = span.bbox.rw;
        }
      }
      return span;
    }
  });
});

(additional code would be needed to support SVG output as well).  This will make the adjustment for all characters, not just the integral, but I think that should be done in any case, and I don't think it will cause problems with anything else, but keep your eyes open in case it does.
In any case, the PDF output for when largeop="true" is incorrect.  The largeop attribute doesn't mean to always use the large size, it means that the size should be large when displaystyle is true, and the small size when displaystyle is false.  The script of an msup element should set displaystyle="false" automatically, so the small size should be used there (as in the MathJax output).  But if you need to use largeop="false" to work around the PDF bug, the code above should allow that to work in MathJax as well.

@dpvc Thanks for explaining the details of why we're seeing this. I think in this case we'll just leave how we're tagging these alone for the PDF but will create an automatic post-edit to remove largeop="false" for the MathML that'll be used for the MathJax. It sounds like that should solve the issue for now and also shouldn't cause any problem in the future if/when we eventually upgrade to v3. Thanks again!


Update iOS SDK to 22.3.1

Summary
To pull in the fix for https://github.com/stripe/stripe-ios/issues/1960, we should update to the latest iOS SDK.
(Feel free to correct this PR if needed — I'm not sure if we need to update this value elsewhere in the RN SDK!)
Testing
Existing CI tests
Documentation
Select one:

[ ] I have added relevant documentation for my changes.
[x] This PR does not result in any developer-facing changes.

@davidme-stripe could you re-run yarn bootstrap from the root of the repo? You may need to clean up pods in example/ios before doing so, otherwise it'll fail to pod install Stripe and StripeConnections


Proj executable not found. Please set PROJ_DIR variable.

Basically the same issue as #227 . Except that the reference link to install pyproj otherwise ( https://pyproj4.github.io/pyproj/html/installation.html ) is dead. New link is (presumably) https://pyproj4.github.io/pyproj/stable/installation.html , also see https://proj.org/install.html if a wheel is not available.
Feel free to immediately close this issue, I just wanted to create this as documentation for others with the same issue.
In my case, it happens on installation of pyproj 3.3.0 in docker.

You must have installed a much older version of pyproj because this hasn't been changed for over 2 years and it is correct: https://github.com/pyproj4/pyproj/blob/a5cdc60e2db44acdc7b6b09a1632e348d206e0e2/setup.py#L58

You must have installed a much older version of pyproj because this hasn't been changed for over 2 years and it is correct:

Except that I won't get to see the setup.py with the pyproj build failing as some dependency. Clearly, me and others googled the problem and arrived at #227 with outdated information. My intention is to reference some more up-to-date information for those following the same path.


Consider using tags and versions - for easier updating to stable releases

Some package managers require versions to be able to install packages from Gtihub. You would be helping a lot if you started to use tags and release version numbers.

Do you mean that zgenom is tagged or that you can pin a plugin to a specific tag?

The repo itself is tagged. E.g. git tag -a v1.0 -m "Latest Stable Release"

Ah, I see.
I consider everything merged into main as a stable release.
What package manager are you talking about. What is your use case?


IndexError: list index out of range

Hi, I am getting the following error "IndexError: list index out of range"
with the following Traceback:
Traceback (most recent call last):
File "path_to_svtyper", line 1078, in
sys.exit(main())
File "path_to_svtyper", line 1070, in main
args.debug)
File "path_to_svtyper", line 767, in sv_genotype
sample = Sample(bam_list[i], spl_bam_list[i], num_samp)
File "path_to_svtyper", line 734, in init
self.lib_dict[name].calc_insert_hist()
File "path_to_svtyper", line 689, in calc_insert_hist
med = median(valueCounts)
File "path_to_svtyper", line 567, in median
v = valueList[i]
I used lumpyexpress to generate the vcf file, from set of bam files originally generated with bwa-mem. Samblaster was used to extract splitters.
Thanks for any help, Chris

Hi Chris,
Can you please post your svtyper command?

svtyper -B a.csort.bam,b.csort.bam,c.csort.bam,d.csort.bam,e.csort.bam,f.csort.bam,g.csort.bam,h.csort.bam,i.csort.bam,j.csort.bam -S a.split.csort.bam,b.split.csort.bam,c.split.csort.bam,d.split.csort.bam,e.split.csort.bam,f.split.csort.bam,g.split.csort.bam,h.split.csort.bam,i.split.csort.bam,j.split.csort.bam -i all.lumpy.vcf > all.lumpy.gt.vcf

Hi Colby,
I posted svtyper command on GitHub.
Svtyper ran successfully with a different bam/vcf combination.
The IndexError also occurs if I generate a vcf with one sample. I.e.
svtyper -B a.csort.bam  -S a.split.csort.bam -i a.vcf > a.gt.vcf
And I get the error if I generate a vcf with a single variant. I.e.
chrX	107013586	21	N		.	.	SVTYPE=DEL;STRANDS=+-:196;SVLEN=-5073;END=107018659;CIPOS=0,0;CIEND=0,0;CIPOS95=0,0;CIEND95=0,0;SU=196;PE=160;SR=36	GT:SU:PE:SR	./.:0:0:0	./.:20:15:5	./.:0:0:0	./.:32:22:10	./.:0:0:0	./.:23:21:2	./.:29:26:3	./.:0:0:0	./.:38:31:7	./.:54:45:9
Thanks for the help!
Chris
On May 18, 2015, at 2:38 PM, Colby Chiang wrote:

Hi Chris,
Can you please post your svtyper command?
—
Reply to this email directly or view it on GitHub.

thanks for the detailed bug report
It looks like SVtyper is having a problem generating an empirical histogram of insert sizes for that sample. Would you be able to send me the first 10,000 lines from that BAM (a.csort.bam)? my email is colby (dot) chiang (at) gmail

I never received a follow up from the earlier report, but I suspect that the BAM file might have a library that is either not present in the BAM, or at extremely low prevalence. Thus, when SVTyper builds the empirical insert size distribution from the first million reads, it finds none from that rare library and throws errors.
I've patched this bug in the latest SVTyper commit https://github.com/hall-lab/svtyper, so that might fix the problem. let me know if that helps

Colby;
Thanks for looking at this. I was going to pull in the fix to the conda package so Sarah could test but didn't see a recent commit -- is there a chance you didn't push this, or was it one of the earlier fixes? Thanks much.

The commit I was thinking of was from a few months ago (https://github.com/hall-lab/svtyper/commit/a2a9381336849d8cab5b5baa87793a0db5ebbbb4) but since it was not long before @ck999's post I thought it might be the same one. Let me know if that doesn't solve it and I'll dig further into this

Colby -- thanks much for confirming this. We were using an older version in bcbio, and I updated the conda recipe to the latest. Sarah, if you update your tools:
bcbio_nextgen.py upgrade --tools

and re-run, fingers crossed that it'll fix the issue. Thanks much for reporting this.

Thanks a lot to both of you! Due to some hardware issues I probably won't have access to my data today, but I will let you know the outcome once I can rerun it.

I finally could rerun the analysis, but I still get the same error. The svtyper version is
__version__ = "$Revision: 0.0.4 $"
__date__ = "$Date: 2016-04-05 09:07 $"

I checked and the BAM file does only have one read group. I asked the data owner and I can send you the first 10,000 lines of the BAM file as you asked earlier. Is there anything else I could look for? The BAM file is rather large at 106 GB. I get the error with two different samples from the same set. I started from the fastq files with the bcbio-nextgen pipeline, so the BAMs should be fine. It worked for different data run with the same pipeline version. This is the flagstat of the BAM file:
1658145758 + 0 in total (QC-passed reads + QC-failed reads)
18046130 + 0 secondary
0 + 0 supplementary
1027262547 + 0 duplicates
1332521068 + 0 mapped (80.36%:-nan%)
0 + 0 paired in sequencing
0 + 0 read1
0 + 0 read2
0 + 0 properly paired (-nan%:-nan%)
0 + 0 with itself and mate mapped
0 + 0 singletons (-nan%:-nan%)
0 + 0 with mate mapped to a different chr
0 + 0 with mate mapped to a different chr (mapQ>=5)

thanks for the detailed info. yes, can you please send the first 10000 lines of the bam (including the header) to Colby dot Chiang at gmail? can you also paste the exact error message that you see?

Turns out I made an error in the configuration for the fastq merging and the data was regarded as single end.
Thanks again @cc2qe and @chapmanb for helping me to track down the issue and sorry for not noticing earlier that it went wrong in the very first step.


feat: add CODEOWNERS

@FVellaEdgelab I'll need to fix this one first, so I'll ask you to re-approve


Deprecate the usage of XENONnT/ax_env

What does the code in this PR do / what does it improve?
Use base_environment for pytest, following https://github.com/XENONnT/base_environment/pull/1487.
Can you briefly describe how it works?
Can you give a minimal working example (or illustrate with a figure)?

coverage: 91.279% (-0.05%) from 91.327%
when pulling f3134f87f955ed1259e674957a061acffd5be4d3 on update_test
into 2f154481f0e9db1927051f96a52a3c32ec83092d on master.


Support for development-only migrations

At PlanGrid we typically have a lot of schema changes going on for features that are in the codebase, but are turned off behind a feature flag.
We've extended FMDBMigrationManager to support migrations that only run in development. This means we can add a schema change for a feature that's under development, without worrying about shipping it to production and requiring a migration upon future changes.
Not sure if this is interesting for upstream, but wanted to suggest it.
Note: adding tests required me to modernize the CocoaPods configuration.

I write a demo,And I have a question ,Why my new table id empty?

I write a demo,And I have a question ,Why my new table is empty?


Write BIP32 key derivation without added dependencies

Currently we use bip32 PyPI library, which requires coincurve, for BIP32 key derivation. We should derive keys without these added dependencies.

Done in d5c832d0268c2fd65163d8d55d873f9f9b788d9a


Speed up gwas ld

Current implentation takes a looonnng time for driver job to kick off https://batch.hail.populationgenomics.org.au/batches/447610/jobs/1
Moved some parts into the helper function so hopefully it speeds things up
Runs ok in test https://batch.hail.populationgenomics.org.au/batches/447650

TBH I don't really know why it is taking so long to kick start the driver job. I'm hoping that these changes fix the issue, but won't really be able to tell until we run in main.

I've got a feeling that these huge startup times are caused by hail's job dependencies. If your batch has 100000 jobs and a max running of 250, you have (100000-250) jobs with dependencies, (1000000-500) of those have a dependency on a dependent job... and it's close to exponential.
You can smash this up using a new batch per... cell type? Chromosome? Using the reset batch functionality in between to spin off a new batch. I'd be tempted to try that; in test you never have the numbers to hit this issue

I just moved everything to the helper function. I think this should work? @MattWellie can we give this a spin, or should I also incorporate reset_batch, but still wary of the empty deque error.

still wary of the empty deque error.

This is the script at the state which was causing that dequeue error: here
I think there's a bug here - the dependency management is done across all batches, but the batches are reset and started with each run. That means that once the job counts get high enough a batch will have dependencies against completely different batches, which would cause an error. The dependency list should also be reset each time the batch is reset