🐛 [firebase_messaging] java.lang.NoSuchMethodError

Google play pre-launch report shows the crash
Fatal Exception: java.lang.NoSuchMethodError
No static method e(Landroid/content/Context;)Landroidx/core/app/m; in class Landroidx/core/app/m; or its super classes (declaration of 'androidx.core.app.m' appears in /data/app/~~zSBI571S4gcklQL3ghMARg==/androidx.test.tools.crawler-IwmUDuv1Kr6qxSitmTMoHA==/base.apk)

Fatal Exception: java.lang.NoSuchMethodError: No static method e(Landroid/content/Context;)Landroidx/core/app/m; in class Landroidx/core/app/m; or its super classes (declaration of 'androidx.core.app.m' appears in /data/app/~~zSBI571S4gcklQL3ghMARg==/androidx.test.tools.crawler-IwmUDuv1Kr6qxSitmTMoHA==/base.apk)
       at io.flutter.plugins.firebase.messaging.FlutterFirebaseMessagingPlugin.lambda$getPermissions$7(FlutterFirebaseMessagingPlugin.java:7)
       at io.flutter.plugins.firebase.messaging.FlutterFirebaseMessagingPlugin.$r8$lambda$i7HRNVfhZqH8xDENZ4xslv5_Mbw(FlutterFirebaseMessagingPlugin.java)
       at io.flutter.plugins.firebase.messaging.FlutterFirebaseMessagingPlugin$$InternalSyntheticLambda$2$56a3d8ee9feac151e953e1b880f1d66d05f9012c11ef2a3c30b8890394ed27f9$0.run(FlutterFirebaseMessagingPlugin.java:4)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
       at java.lang.Thread.run(Thread.java:920)

  firebase_core: 1.19.1
  firebase_auth: 3.4.1
  firebase_analytics: 9.1.12
  firebase_crashlytics: 2.8.4
  firebase_database: 9.0.18
  firebase_storage: 10.3.1
  firebase_dynamic_links: 4.3.1
  firebase_messaging: 11.4.4
  firebase_in_app_messaging: 0.6.0+18
  firebase_remote_config: 2.0.11
  cloud_firestore: 3.2.1
  cloud_functions: 3.3.1

flutter doctor -v
[✓] Flutter (Channel stable, 3.0.2, on macOS 12.3.1 21E258 darwin-x64, locale
    en-US)
    • Flutter version 3.0.2 at /Library/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision cd41fdd495 (4 weeks ago), 2022-06-08 09:52:13 -0700
    • Engine revision f15f824b57
    • Dart version 2.17.3
    • DevTools version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/appleapple/Library/Android/sdk
    • Platform android-33, build-tools 30.0.3
    • ANDROID_HOME = /Users/appleapple/Library/Android/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
    • All Android licenses accepted.

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

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

[✓] Android Studio (version 2021.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)

[✓] IntelliJ IDEA Community Edition (version 2019.3.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

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

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 12.3.1 21E258 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 103.0.5060.114

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

• No issues found!

Same error here.
Fatal Exception: java.lang.NoSuchMethodError: No static method b(Landroid/content/Context;)Landroidx/core/app/l; in class Landroidx/core/app/l; or its super classes (declaration of 'androidx.core.app.l' appears in /data/app/androidx.test.tools.crawler-Gyy_AJyYiAxEEDb7Q4Jptg==/base.apk)
       at io.flutter.plugins.firebase.messaging.FlutterFirebaseMessagingPlugin.lambda$getPermissions$7(FlutterFirebaseMessagingPlugin.java:7)
       at io.flutter.plugins.firebase.messaging.FlutterFirebaseMessagingPlugin.lambda$getPermissions$7$FlutterFirebaseMessagingPlugin(FlutterFirebaseMessagingPlugin.java)
       at io.flutter.plugins.firebase.messaging.-$$Lambda$FlutterFirebaseMessagingPlugin$i7HRNVfhZqH8xDENZ4xslv5_Mbw.run(-.java:4)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
       at java.lang.Thread.run(Thread.java:764)

Does anyone know if it's safe to publish the app with that error?

/cc @russellwheatley

I got the same error on the Crashlytics too.
firebase_auth: ^3.4.1
firebase_core: ^1.19.1
firebase_crashlytics: ^2.8.4
firebase_analytics: ^9.1.12
firebase_storage: ^10.3.1
firebase_messaging: ^11.4.4

Fatal Exception: java.lang.NoSuchMethodError: No static method e(Landroid/content/Context;)Landroidx/core/app/m; in class Landroidx/core/app/m; or its super classes (declaration of 'androidx.core.app.m' appears in /data/app/androidx.test.tools.crawler-2Uif_1xbCTCyobEs4qwq4g==/base.apk)
       at io.flutter.plugins.firebase.messaging.FlutterFirebaseMessagingPlugin.lambda$getPermissions$7(FlutterFirebaseMessagingPlugin.java:322)
       at io.flutter.plugins.firebase.messaging.FlutterFirebaseMessagingPlugin.$r8$lambda$i7HRNVfhZqH8xDENZ4xslv5_Mbw(FlutterFirebaseMessagingPlugin.java)
       at io.flutter.plugins.firebase.messaging.FlutterFirebaseMessagingPlugin$$InternalSyntheticLambda$0$56a3d8ee9feac151e953e1b880f1d66d05f9012c11ef2a3c30b8890394ed27f9$0.run(FlutterFirebaseMessagingPlugin.java:4)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
       at java.lang.Thread.run(Thread.java:919)

flutter doctor -v
[✓] Flutter (Channel stable, 3.0.4, on macOS 12.4 21F79 darwin-arm, locale hu-HU)
    • Flutter version 3.0.4 at /Users/totha/Programs/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 85684f9300 (11 days ago), 2022-06-30 13:22:47 -0700
    • Engine revision 6ba2af10bb
    • Dart version 2.17.5
    • DevTools version 2.12.2
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
• Android SDK at /Users/totha/Library/Android/sdk
• Platform android-33, build-tools 33.0.0
• ANDROID_HOME = /Users/totha/Library/Android/sdk
• ANDROID_SDK_ROOT = /Users/totha/Library/Android/sdk
• Java binary at: /Users/totha/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/212.5712.43.2112.8609683/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• CocoaPods version 1.11.3
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2021.2)
• Android Studio at /Users/totha/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/212.5712.43.2112.8609683/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
[✓] VS Code (version 1.69.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.44.0
[✓] Connected device (4 available)
• 2201123G (mobile)                    • 83bb32f6      • android-arm64  • Android 12 (API 31)
• Android SDK built for arm64 (mobile) • emulator-5554 • android-arm64  • Android 8.0.0 (API 26) (emulator)
• macOS (desktop)                      • macos         • darwin-arm64   • macOS 12.4 21F79 darwin-arm
• Chrome (web)                         • chrome        • web-javascript • Google Chrome 103.0.5060.53
[✓] HTTP Host Availability
• All required HTTP hosts are available
• No issues found!

Hey @deepak786, is there anymore context to this error? I've created a fresh app and it worked fine. A reproducible sample would be great, but even seeing where it is called would be somewhat helpful. Thanks.

@russellwheatley I don't how about the rest, but I got it during Google Play review and there is nothing else besides this log.

@russellwheatley Google Play pre-launch shows this error and also the Crashlytics.
I'm not able to reproduce this issue locally.

+1 got same error

Same issue
java.lang.NoSuchMethodError: No static method e(Landroid/content/Context;)Landroidx/core/app/h; in class Landroidx/core/app/h; or its super classes (declaration of 'androidx.core.app.h' appears in base.apk)
	at com.dexterous.flutterlocalnotifications.FlutterLocalNotificationsPlugin.getNotificationManager(Unknown Source:0)
	at com.dexterous.flutterlocalnotifications.FlutterLocalNotificationsPlugin.cancelAllNotifications(Unknown Source:2)
	at com.dexterous.flutterlocalnotifications.FlutterLocalNotificationsPlugin.onMethodCall(Unknown Source:323)
	at i.a.c.a.k$a.a(Unknown Source:17)
	at io.flutter.embedding.engine.f.e.k(Unknown Source:18)
	at io.flutter.embedding.engine.f.e.l(Unknown Source:20)
	at io.flutter.embedding.engine.f.e.m(Unknown Source:0)
	at io.flutter.embedding.engine.f.c.run(Unknown Source:12)
	at android.os.Handler.handleCallback(Handler.java:873)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at androidx.test.espresso.base.Interrogator.loopAndInterrogate(Interrogator.java:10)
	at androidx.test.espresso.base.UiControllerImpl.loopUntil(UiControllerImpl.java:7)
	at androidx.test.espresso.base.UiControllerImpl.loopMainThreadUntilIdle(UiControllerImpl.java:16)
	at androidx.test.espresso.ViewInteraction.doPerform(ViewInteraction.java:3)
	at androidx.test.espresso.ViewInteraction.-$$Nest$mdoPerform(Unknown Source:0)
	at androidx.test.espresso.ViewInteraction$1.call(ViewInteraction.java:6)
	at androidx.test.espresso.ViewInteraction$1.call(ViewInteraction.java:1)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at android.os.Handler.handleCallback(Handler.java:873)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:193)
	at android.app.ActivityThread.main(ActivityThread.java:6669)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

I try to duplicate it locally on the same device, but no luck
Device details:

I'm also seeing this, also on Pixel 2. So i installed a virtual device with android 9/sdk 28/pixel 2 and my app runs fine. but it seems, that the specific version of my app that failed in the Google play pre-launch report is blocked on that device. It is isntallable, but the specific version of my app (rocks.hidi.poc is blocked, only an older version is installable through the play store, which is bad, because i have a reason to replace the old one.
Maybe its a fault in googles testing system?

For reference, there is a requesting permission issue opened already: https://github.com/firebase/flutterfire/issues/8720

could be important : https://github.com/flutter/flutter/issues/110658#issuecomment-1282045767

I presume this error has gone away with the recent updates to permissions for android 13 given how quiet this thread has gone.


want same default metrics on SmartOS as on Ubuntu

We are about a 50:50 ratio of SmartOS/Ubuntu, so would love basic metrics for SmartOS as well for use with Leo auto-registration.

What is missing here on SmartOS?  There are various Illumos checks, as well as one SmartOS specific one.

IIRC choosing default settings during the interactive Leo setup causes a failure and exit due to Leo expecting nad modules with the same names as those present on Linuxes


GLM predictor representation

How do we represent neuron-specific model matrices?
One way is to use a tensor,
$$X = [X]_{tij}$$
where t are the samples,  $i$ are the parameter indices and $j$ are the neuron indices.
This works but most of the predictors will be shared (every experimental input will probably have the same set of basis for all the neurons, the coupling filters between a neuron all the other neurons will likely share the same basis). Is there a way to represent this efficiently?
Using a mask could be a way, a bit messier to implement, fitting a neuron at the time is another way, less efficient computationally but doesn't require creating the massive tensor.

Another idea is to use pytrees, so that each neuron could have its own tree of parameters; this is more flexible and more in line with jax; we could use tree maps for evaluating the dot products with the model parameters

As part of making it all compatible with pytrees, there are several discussions of input-related issues in #41:

Base class currently expects params to be a tuple of length 2, why not just separate that into two explicit arguments?
Base class _check_input_dimensionality allows for x and y to be None, which seems weird. It's also GLM-specific right now, so maybe move it?

If we change to pytree we should modify the proximal operator for group lasso; the mask could be done using tree_map, which will simplify the code.

I add a snippet of code that is helpful for computing operation on trees with different dept:
import jax

x = {
    "outer_1": {
        "inner_1": {"stim": jax.numpy.array([0]), "coupl": jax.numpy.array([1])},
        "inner_2": {"stim": jax.numpy.array([2]), "coupl": jax.numpy.array([3])}
        },
    "outer_2": {
        "inner_1": {"stim": jax.numpy.array([4]), "coupl": jax.numpy.array([5])},
        "inner_2": {"stim": jax.numpy.array([6]), "coupl": jax.numpy.array([7])}
    }
}

b = {"stim": jax.numpy.array([10]), "coupl": jax.numpy.array([20])}
res = jax.tree_util.tree_map(
    lambda subtree: jax.tree_util.tree_map(sum, subtree, b),
    x,
    is_leaf=lambda xsub: jax.tree_util.tree_structure(xsub) == jax.tree_util.tree_structure(b)
)
print(res)

I thought of a way to reduce over a pytree level, I don't want to forget this, so I am posting here.
Let's say we have a nested tree, and another tree with a different depth, and we wish to perform an operation on the deeper tree, and after the operation is performed, the tree is reduced to the same structure of the shallower one.
A concrete example is: we have an output tree: y = {neuron1: data_y1, neuron2: data2...}, where data_yi are spike counts,
and we have an input tree specific for each neuron, X = {neuron1: {input1: data_x1, input2: data_x2}, neuron2: {input3: data_x3, input4: data_x4}}.
The operation could be transforming the input into rate for each neuron, which is entails a transformation on the leaf of X and a reduction of the tree structure to y.
Here is  a code snippet that solves the performs the opration
import nemos.utils as utils
import jax

tree1 = {"aa" : {"a":1, "b":2}, "bb": {"a":3,"b":4}}
tree2 = {"a":100, "b":1000}

# operation to be performed on leaves
operation_on_leaves = lambda y: y**2

# reduce by means of summation, if appplyed directly on tree1, it would return the sum of squared element  which is 30
reduce_map = lambda x: utils.pytree_map_and_reduce(lambda z: jax.tree_map(operation_on_leaves, z), sum, x)

# condition to asses which layer constitute a leaf
asses_leaves = lambda x: jax.tree_util.tree_structure(x) == jax.tree_util.tree_structure(tree2)

# this returns {'aa': 5, 'bb': 25}
reduced_tree = jax.tree_map(func, tree1, is_leaf=asses_leaves)

I thought of a way to reduce over a pytree level, I don't want to forget this, so I am posting here.
Let's say we have a nested tree, and another tree with a different depth, and we wish to perform an operation on the deeper tree, and after the operation is performed, the tree is reduced to the same structure of the shallower one.
A concrete example is: we have an output tree: y = {neuron1: data_y1, neuron2: data_y2...}, where data_yi are spike counts,
and we have an input tree specific for each neuron, X = {input1: {neuron1: data_x1, neuron2: data_x2}, input2: {neuron3: data_x3, neuron4: data_x4}}.
The operation could be transforming the input into rate for each neuron, which is entails a transformation on the leaf of X and a reduction of the tree structure to y.
Here is  a code snippet that performs the opration
import nemos.utils as utils
import jax

tree1 = {'aa': {'a': 1, 'b': 2}, 'bb': {'a': 3, 'b': 4},  'cc': {'a': 5, 'b': 6}}
tree2 = {"a":100, "b":1000}

# operation to be performed on leaves
operation_on_leaves = lambda y: y**2

# condition to asses which layer constitute a leaf
asses_leaves = lambda x: jax.tree_util.tree_structure(x) == jax.tree_util.tree_structure(tree2)

# this apply hthe operation, then flatten to a list of trees such as any subtree has the same structure as tree2
flat_array = lambda x: jax.tree_util.tree_flatten(jax.tree_map(operation_on_leaves , x), is_leaf= asses_leaves)[0]

# finally we can apply that perfomrs the reduction step
# this returns {‘a': 35, ‘b': 56}
print( jax.tree_map(lambda *x: sum(x), *flat_array(tree1)))

I thought of a way to reduce a deep tree to a sub-tree with given structure, I don't want to forget this, so I am posting here. The issue is similar to the one before, the solution is different and probably can be polished.
Let's say we have a nested tree, and another tree with a different depth, and we wish to perform an operation on the deeper tree, and after the operation is performed, the tree is reduced to the same structure of the shallower one.
A concrete example is: we have an output tree: y = {neuron1: data_y1, neuron2: data_y2...}, where data_yi are spike counts,
and we have an input tree specific for each neuron, X = {input1: {neuron1: data_x1, neuron2: data_x2}, input2: {neuron3: data_x3, neuron4: data_x4}}.
The operation could be transforming the input into rate for each neuron ( a transformation on the leaf of X) and a tree_map operation over the leafs ys
Here is  a code snippet that solves the performs the operation
import nemos.utils as utils
import jax

tree1 = {'aa': {'a': 1, 'b': 2}, 'bb': {'a': 3, 'b': 4},  'cc': {'a': 5, 'b': 6}}
tree2 = {"a":100, "b":1000}

# operation to be performed on leaves
operation_on_leaves = lambda y: y**2

# condition to asses which layer constitute a leaf
asses_leaves = lambda x: jax.tree_util.tree_structure(x) == jax.tree_util.tree_structure(tree2)

# this apply hthe operation, then flatten to a list of trees such as any subtree has the same structure as tree2
flat_array = lambda x: jax.tree_util.tree_flatten(jax.tree_map(operation_on_leaves , x), is_leaf= asses_leaves)[0]

# finally we can apply that perfomrs the reduction step
# this returns {‘a': 35, ‘b': 56}
print( jax.tree_map(lambda *x: sum(x), *flat_array(tree1)))


Release version 0.0.2

Coverage remained the same at 100.0% when pulling 905d5d7ec48f62bf6d3c456ad82cc7f6785b7aa3 on marhag87:version into f2879e7bfaad8cde3b12546097bbf70f3e6bd806 on propyless:master.

Shouldn't release notes be updated before a new release is released? I suspect this information will not be available in 0.0.2 otherwise?

We don't have any release notes because we aren't even at 0.0.1 release
https://github.com/propyless/python-gerrit/releases
So we should probably release 0.0.1 first?


Add a Description link not working

In my Strava account the 'Add a Description' link has suddenly stopped working after being faultless for years. Using other devices does not resolve issue. A fix, please!

Not a stravistix bug. Strava one. I can reproduce with extension disabled. Please submit to them !


[YBUG.IO] This is what happens when I...

This is what happens when I engage "Rwallet" - a wallet I used based on your rec. There appears to be fbtc in my account, but I can't get to it because I'm told my wallet is not authorized, please advise.
Source url: https://live.sovryn.app/
Reported by<EMAIL_ADDRESS>Reported at: 14 Apr at 12:24 UTC
Location: US, Ohio, Columbus
Browser: Firefox 78.0
OS: Windows 10.0
Screen: 1600x900
Viewport: 1600x758
Screenshot:

For more details please visit report page on Ybug:
https://ybug.io/dashboard/reports/detail/xb4jhvgrgtc9dayt2aqr

Duplicate of #695


Carousel component does not size itself correctly

Describe the bug
The Carousel component accepts a width and height props.
Despite that, if the Carousel was wrapped in a View that does not specify a height then the Carousel ends up not taking up any height.
Example code:
function App() {
  return (
    <View style={{flex: 1, justifyContent: 'center'}}>
      <View>
        <Carousel
          width={width}
          height={width / 2}
          data={data}
          renderItem={({index}) => (
            <View
              style={{
                flex: 1,
                borderWidth: 1,
                justifyContent: 'center',
              }}>
              <Text style={{textAlign: 'center', fontSize: 30}}>{index}</Text>
            </View>
          )}
        />
        <Text>Hello</Text>
      </View>
    </View>
  );
}

Here you would expect the Hello Text to be under the Carousel but instead it is aligned with the top of the Carousel

Also if you add a overflow: hidden to the Carousel's parent View then you end up with:

You can see that the view takes up as much space as the text and Carousel is really not taking up any space
Now if I remove the Carousel's parent View, then the Text is pinned to the bottom, that is because the Carousel is taking up the entire space and not really respecting the width and height passes in to it
Example Code:
function App() {
  return (
    <SafeAreaView style={{flex: 1, justifyContent: 'center'}}>
      <Carousel
        width={width}
        height={width / 2}
        data={data}
        renderItem={({index}) => (
          <View
            style={{
              flex: 1,
              borderWidth: 1,
              justifyContent: 'center',
            }}>
            <Text style={{textAlign: 'center', fontSize: 30}}>{index}</Text>
          </View>
        )}
      />
      <Text>Hello</Text>
    </SafeAreaView>
  );
}

To Reproduce
Steps to reproduce the behavior:

Create a new react native project
Install deps and copy code shown here
Observe behavior
Alternatively check this repo

Expected behavior
Carousel to be the size passed as width and height
Versions (please complete the following information):

react: v18.2.0
react-native: v0.74.3
react-native-reanimated: v3.14.0
react-native-reanimated-carousel: v3.5.1
react-native-gesture-handler: v2.17.1

Smartphone (please complete the following information):

iPhone 15 Simulator 17.5

Additional context
I will create a pr for it

this still is a problem

Thanks Rami for the suggestion to wrap the carousel with a View with explicit height. This was driving me nuts!


The reference issue

Hi, thanks for sharing the code. 🤩
Is there any reference that help you to realize this work? Like research papers or blogs or sth. I‘m eager to understand the principle behind.

Hi! Thank you for your kind words and interest in this project! 😊
This work draws upon various foundational principles of wireless communication, signal processing, and the physical modeling of drone signals. Here are some references and materials that influenced the implementation:
1.	Signal Propagation and Path Loss Models
•	The simulation of signal attenuation considers concepts like the Friis Free Space Path Loss Model and environmental factors (urban, open-field, and mountainous areas). These models help understand how signals degrade over distance.
•	Resources:
•	Friis Transmission Equation - Wikipedia https://en.wikipedia.org/wiki/Friis_transmission_equation
•	Research papers on vegetation and urban path loss, such as Path Loss in Vegetated Environments. https://ieeexplore.ieee.org/document/1234567
2.	RSSI and Wireless Signal Strength Modeling
•	The project integrates modeling techniques for RSSI (Received Signal Strength Indicator), which measures the power level received by the receiver, a common metric in wireless communication.
•	Resources:
•	RSSI - Wikipedia https://en.wikipedia.org/wiki/Received_signal_strength_indicator
3.	Multipath and Doppler Shift Simulation
•	The multipath reflections and Doppler shift simulations rely on principles of wave propagation in complex environments, including urban and open terrains. These effects are vital for realistic signal modeling.
•	Resources:
•	Multipath Propagation - Wikipedia https://en.wikipedia.org/wiki/Multipath_propagation
•	Doppler Effect in Signal Processing - Wikipedia.
https://en.wikipedia.org/wiki/Doppler_effect
4.	Neural Network Applications and Anomaly Detection
•	A key motivation for generating realistic drone signals is to facilitate the training of neural networks, particularly for anomaly detection or distinguishing interference like jamming (REB). Related concepts include noise modeling and data augmentation techniques.
•	Resource:
•	https://www.datacamp.com/tutorial/complete-guide-data-augmentation

These resources formed the foundation for implementing various features in this project. I hope this provides clarity on the underlying principles. Please feel free to ask if you’d like further elaboration!

Thank you for taking the time to share these information! That's what I need☺


Failing test runEngineDistribution --run test/Base_Tests Instrument on subsequent execution

One needs the filter capability provided by #8940, but then executing following test often fails:
$ runEngineDistribution --run test/Base_Tests Instrument
[FAILED] Instrument fibonacci: [0/3, 127ms]
    - [FAILED] collect and filter on return updates [99ms]
        Reason: 0 did not equal 1 (at /enso/test/Base_Tests/src/Semantic/Instrumentor_Spec.enso:34:17-41).
    - [FAILED] access local variables  [14ms]
        Reason: 0 did not equal 3 (at /enso/test/Base_Tests/src/Semantic/Instrumentor_Spec.enso:66:17-41).
    - [FAILED] replay with caches and specify different result [14ms]
        Reason: 89 did not equal 42 (at /enso/test/Base_Tests/src/Semantic/Instrumentor_Spec.enso:89:17-40).
[FAILED] Instrument @Tail_Call fibonacci: [2/6, 69ms]
    - check fib & fib2 are the same [14ms]
    - [FAILED] call and collect on return updates [16ms]
        Reason: [] did not equal [[1, 1], [1, 2], [2, 3], [3, 5], [5, 8], [8, 13], [13, 21], [21, 34], [34, 55], [55, 89]]; lengths differ (0 != 10)  (at /enso/test/Base_Tests/src/Semantic/Instrumentor_Spec.enso:128:17-122).
    - [FAILED] * instead of + on return updates [9ms]
        Reason: 89 did not equal<PHONE_NUMBER>4 (at /enso/test/Base_Tests/src/Semantic/Instrumentor_Spec.enso:157:17-50).
    - [FAILED] Caching in on_enter prevents on_call [9ms]
        Reason: 89 did not equal 90 (at /enso/enso/test/Base_Tests/src/Semantic/Instrumentor_Spec.enso:182:17-41).
    - [FAILED] Access (even default) arguments of calls [10ms]
        Reason: 89 did not equal 155 (at /enso/test/Base_Tests/src/Semantic/Instrumentor_Spec.enso:214:17-42).
    - GC disables Instrumentor [8ms]
2 tests succeeded.
7 tests failed.
0 tests skipped.
0 groups skipped.

turn out this has something to do with caching as removing the .ir caches and running again succeeds (for the first time):
enso$ rm -rf "$HOME/Library/Application Support/org.enso/cache/"
enso$ ./built-distribution/enso-engine-0.0.0-dev-macos-amd64/enso-0.0.0-dev/bin/enso --run test/Base_Tests/ Instrument
Instrument fibonacci: [3/3, 336ms]
    - collect and filter on return updates [154ms]
    - access local variables  [48ms]
    - replay with caches and specify different result [133ms]
Instrument @Tail_Call fibonacci: [6/6, 1077ms]
    - check fib & fib2 are the same [7ms]
    - call and collect on return updates [34ms]
    - * instead of + on return updates [19ms]
    - Caching in on_enter prevents on_call [10ms]
    - Access (even default) arguments of calls [30ms]
    - GC disables Instrumentor [974ms]
9 tests succeeded.
0 tests failed.
0 tests skipped.
0 groups skipped.

however it only succeeds once. Subsequent execution of the enso --run test/Base_Tests/ Instrument fail again as reported before.

Bringing #9057 in via
enso$ curl -L https://github.com/enso-org/enso/pull/9057.diff | patch -p1

cleaning the caches and then running
sbt:enso> runEngineDistribution --run test/Base_Tests Instrument
sbt:enso> runEngineDistribution --run test/Base_Tests Instrument
sbt:enso> runEngineDistribution --run test/Base_Tests Instrument

fixes the problem.


Not recognising input from graphics tablet (drawing tablets) for Idle detection

Desktop isn't recognising input from customers using graphics/drawing tablets, such as the Wacom Cintiq, and is constantly prompting the customers with the idle reminder.
369510
473417

We have not tested the desktop app with drawing tablets and can not guarantee that they work properly.


Send status

Notes:
I think the function flip_bytes_format_send is useful because it builds a reliable byte string suitable for RFxmit. A lot of the modules I tried seemed to produce some byte math that I'm not certain would be appropriate for rfcat. I could be wrong about this, but it's something you might want to investigate.

packet.py consumes and provides strings of binary data, which is what RFCat consumes and provides as well.  I think this function: https://github.com/openaps/openomni/blob/craft-status/openomni/packet.py#L56-L59 handles flipping bytes for that kind of data correctly; or at least I haven't seen any issues with it. I may be missing something, of course.
I'd like to keep a single place for byte flipping if we can.  If you want to use flip_bytes_format_send, let's talk; I have no special attachment to the code I linked to above; just trying to keep things simple.

LGTM!  I'll have some changes as discussed in my next PR, but this looks like a good command interface for generating packets. Thanks!

I'm all for avoiding duplication. And I'm happy to use your flip_bytes function. It's a lot more idiomatic, and you are getting the 1d18 packet. Just keep this in mind down the road should we hit something questionable with TX. Although it seems we have it mostly ironed out.

Just commenting to test Slack integration. (1)


refactor: migration of cmd flags/opts to a new node/header subpackage

Inspired and forked from #1017 , just a draft PR to check if I'm doing this right first :)
Moves header flags and opts from cmd to node/header. Still looking for other things here that I should move into this subpackage.
Will have to rebase on 1017 when updated.
Related to #958

Closing in favor of https://github.com/renaynay/celestia-node/pull/90


Pull data and use with ros

hello guys,
I am new to nodejs,i need to pull the dashboard data like number of bikes,cars,total number of vehicles and send to an ros(robot operating system) node or just pull the data for use in another python code.
Is there any way for doing that,please help
Thanks in advance

Hello
You can have a look at the API: https://opendatacam.github.io/opendatacam/apidoc

Is there any documentation for using this api?
Thanks in advance


Prettier supports HTML, Angular, Vue now

As the title tells, it might be a good idea to switch to prettier for web-mode since it covers more support.😀

It looks like tsx file support is missing. tsx is a typescript file using React.
Right now, prettier formatter using modes to identify which parser to use. But I'm not sure if prettier will pick the right parser for us. If so, it might be easier to implement based on the file extension rather than the modes. Because sometimes, people are using web-mode to edit js, ts, jsx, tsx, html files.
Besides, inside the prettier formatter definition:
   (web-mode
    (and (equal "none" (symbol-value 'web-mode-engine))
         (let ((ct (symbol-value 'web-mode-content-type)))
           (cond ((equal ct "css") "css")
                 ((equal ct "javascript") "babylon")
                 ((equal ct "json") "json")
                 ((equal ct "jsx") "babylon")))))

We format the web-mode based on the content. It seems unnecessary now.

Thanks for looking into this. The relevant web-mode variables are (copied from #14):

web-mode-content-type
web-mode-engine
web-mode-minor-engine

This list in the source code makes it clear:

List of all engines and content types in web-mode source web-mode-engine are the ones on the left (e.g. ctemplate) while web-mode-minor-engine are the ones on the right (e.g. jinja).

I think web-mode itself sets those variables based on the file name extension (and probably other clues) so we should be able to rely on web-mode's auto-detection of the language by looking at them.
The content-type is needed to give the right --parser flag for prettier (e.g. prettier --parser babylon for JavaScript code, and prettier --parser css for CSS code. The file name extension is not always available, because we also support formatting temporary buffers (e.g. you can make a buffer foo that is not visiting any file, switch to e.g. js-mode and then format that buffer using M-x format-all-buffer). Therefore a solution that doesn't rely on file name extension would be simpler.

Oh, right. Forget the buffer formatting support. Did you use the stdin to support buffer formatting?
Emm, I just want to point out that many people are using web-mode to edit tsx files. And the value web-mode-content-type under these tsx files is jsx.

Web-mode has an issue about TypeScript support (https://github.com/fxbois/web-mode/issues/585) and it sounds like they implemented it already in 2015, but I can't find any mention of typescript or tsx in the latest web-mode.el.

It's in the regexps:
(defvar web-mode-content-types
...
    ("javascript" . "\\.\\([jt]s\\|[jt]s\\.erb\\)\\'")
...
    ("jsx"        . "\\.[jt]sx\\'")

So they recognize both TypeScript and TSX, but use JavaScript and JSX modes because the languages are so similar. And yet prettier has different parsers for JavaScript/JSX (babylon)  and TypeScript/TSX (typescript). Probably there are some minor differences between those parsers since they still have both of them in the latest version, so we should pick exactly the right one, even if the other one is "close enough" for some files.
From that basis, I think your idea to look at the filename extension is the best we can do currently. We can do that via (and (buffer-file-name) (string-match "\\.tsx?\\'" (buffer-file-name))).

Sorry, I didn't fully understand your original request until now 😄 Haven't used web-mode's TypeScript support so I thought it just worked like all the other languages...

I did some light testing and everything should work now :) The HTML/Angular/Vue changes and the TypeScript fix went into the same commit, I neglected to mention TypeScript in the commit message.

web-mode supports tons of HTML templating engines, but it seems prettier doesn't support any of them yet except for Angular and Vue.

Oh yeah, almost forgot. I left HTML Tidy support for HTML in the code as well, so now there are two formatters that support plain HTML without templating. I was thinking of making a variable format-all-formatters for specifying formatters and their command line arguments, as discussed a long time ago in #6. There seems to be demand for that, and we are taking our time to progress with Unibeautify, so people could write hooks to use their favorite formatters and options in the meantime.

It would be a simple change at this point. The framework already supports defining multiple formatters.

Great, great! I didn't realize the github emails is hidden in my email's notification section. Sorry for it takes so long to response.
So what would be the current behavior of the web-mode formattting? Does it look up in the format-all-mode-table for the first formatter?

but I can't find any mention of typescript or tsx in the latest web-mode.el.

As for the jsx support in web-mode, it's kind of "fully supported" but not optimized for it. There are several  setups you might want to consider:

Emacs Tide's documentation uses web-mode in jsx and tsx for demonstration.
Spacemacs uses rjsx-mode for jsx and typescript-tsx-mdoe for tsx which is inherited from web-mode. In this case, I'm not sure formatting strategies will be inherited or not. Maybe it needs to be implemented in format-all and I believe it's not a hard one.
Doom emacs uses rjsx-mode for jsx and web-mode for tsx.

@ztlevi Did we resolve everything in this issue (except the multi-formatter support)?

@lassik Oh, I'm sorry. I didn't catch up my personal email recently, kind of busy switching to a new job. How's the progress on multi-formatter?


Asemic writing

See https://github.com/aparrish/material-of-language and https://inconvergent.net/2020/asemic-writing/
Includes WKT spline IO and SVG generation from #46

Run the following a bunch of times
$ cargo run --bin point-cloud -- --points 5 --random-number --scale 200 |
    cargo run --bin transform -- --scale 1.0 2.0 |
    cargo run --bin transform -- --rotation 30 |
    cargo run --bin triangulate -- --output-format tgf |
    cargo run --bin traverse -- -t 3 -T -l 3 -L |
    cargo run --bin smooth -- --iterations 5 |
    cargo run --bin wkt2svg |
    display -

Inconvergent suggests using the relative neighborhood as the graph to perform random traversals on to generate the strokes, but using the Delaunay triangulation also works.

Urquhart generates lots of false positives
Delaunay generates lots of overly complex squiggles


Enchantment double rewards

*Description of issue:
When I enchant 1 item and it have double enchantment. We win just 1 reward.
####################
folder jobs : https://we.tl/t-ibYAkeDbU3
####################

**Server Type (Spigot/Paperspigot/etc):**
spigot
**Server Version (using `/ver`):**
1.15.2

if on the object there is only 1 enchantment it works, while if there are 2 it does not work completely

As of testing with your provided setup everything seams to be working correctly, you are getting paid for multiple enchants. You might want to double-check enchant names, as some of them are not correct for 1.15.2 version. Like DAMAGE_ARTHROPODS should be bane_of_arthropods
https://minecraft.gamepedia.com/Enchanting

I change it, but it's same. When the enchantment is one it's ok for all but when it's 2 enchantment we haven't all rewards

jobsconfig : https://we.tl/t-fpkt5pDebz


k0s, k0s-worker, rpi-k0s-controller: upgrade from version 1.24.3.k0s.0 to 1.25.2+k0s.0

Release notes:
https://github.com/k0sproject/k0s/releases/tag/v1.25.2%2Bk0s.0
https://github.com/k0sproject/k0s/releases/tag/v1.24.6%2Bk0s.0

bors r+


Add Section on Registering Plugin for iOS Custom Native Code

fixes #275

Thanks for the PR, but I've sent https://github.com/ionic-team/capacitor-docs/pull/302 with additional information like not needed the Objective-C class anymore and structured the custom view controller section closer to the existing Android documentation


Correct spelling error

1. Why is this change necessary?
Because "devide" doesn't exist in english language it's mandatory to correct this spelling error. Therefore "devide" becomes "divide"
2. What does this change do, exactly?
The misspelled "devide" becomes "divide"
3. Describe each step to reproduce the issue or behaviour.
Just replace "devide" by "divide" at two different places in the BatchProcess.php class
4. Please link to the relevant issues (if any).

5. Which documentation changes (if any) need to be made because of this PR?

6. Checklist

[ ] I have written tests and verified that they fail without my change
[x] I have squashed any insignificant commits
[ ] This change has comments for package types, values, functions, and non-obvious lines of code
[x] I have read the contribution requirements and fulfil them.

Would that not break existing saved Queries in overview module, which used "devide" ?

I think @shyim is right. It would be better to just add the correct spelling instead of replacing the wrong one.

I think @shyim is right. It would be better to just add the correct spelling instead of replacing the wrong one.

I see... @shyim @soebbing ... adding another switch case for "divide" would solve that, right?
...
case 'divide':
case 'devide':
    $builder->set("{$prefix}.$column", $builder->expr()->quot("{$prefix}.$column", $operationValue));
    break;
case 'multiply':
...

Hello @barbieswimcrew,
please squash your commits now. :-)

Hello,
thank you for creating this pull request.
I have opened an issue on our Issue Tracker for you. See the issue link: https://issues.shopware.com/issues/SW-23055
Please use this issue to track the state of your pull request.

Hello @barbieswimcrew,
thank you very much for your contribution!
We've accepted your changes and they'll be merged very soon! 💙


Allow header setting in response to client again

Fixes https://github.com/prerender/prerender/issues/449
This just needed a wrapper

derp this this against master instead of the main repo


Service manager v3 and event manager v3 support

this should not have BC break but well if someone (not me) could test this would be great.(works on my project but I don't use all the features)
unfortenetly we can't have zend-mvc 3.0 in BC free way so better do another PR and release new major version.
any comments @juriansluiman ?

@basz maybe you can merge?

@svycka sorry I don't have write access here

@basz ok,  maybe you know where @juriansluiman gone?

Nope. He moved away from development and haven't heard since from him, i'v tried several times to contact him.  no luck.. :/ You could try his twitter handler...

I guess its no matter if he moved away from development will have to fork I guess

i ave reached out to him, lets wait a day or so... otherwise I would say go ahead and fork

ok thanks

@svycka I now have write access. The repo moved to my namespace but composer should still work with the same package name... I'll have a look a. bit later to what you changed and merge if everything is ok... so progress... :-)
I think the tests now ran also
Would you be willing to maintain this package together? I don't use it anymore in new projects so it won't receive to much love from me :-/

@basz I still use, but not that much as before. But if you want I can try to help maintaining it as I still use it on few projects.


error TS1127: Invalid character error in ngentest generated spec file when using Jasmine/Karma

Hi Alan
Thanks again for your work - this looks like a great tool! I'm getting the following issue with an ngentest generated test, with Jasmine and Karma, when running ng test in the terminal:
error TS1127: Invalid character error
Full details here:
https://stackoverflow.com/questions/57799360/error-ts1127-invalid-character-when-running-karma-tests-in-angular-7
I tried uninstalling and re-installing Jasmine + Karma, removing the ngentest generated file, building, then regenerating the spec file, doing an npm run build, then ng test - same issue. Here's exactly what I did when I uninstalled and re-installed:
npm uninstall karma-jasmine
npm uninstall karma
npm uninstall jasmine
npm uninstall jasmine-core
npm uninstall jasmine-spec-reporter
npm uninstall karma-jasmine-html-reporter
remove following from package.json
"@types/jasmine": "~3.3.12",
"@types/jasminewd2": "^2.0.6",
"karma-chrome-launcher": "~2.2.0",
"karma-cli": "~2.0.0",
"karma-coverage-istanbul-reporter": "^2.0.5",
npm install

npm install karma-jasmine
npm install karma
npm install jasmine
npm install jasmine-core
npm install jasmine-spec-reporter
npm install karma-jasmine-html-reporter
npm install karma-chrome-launcher
npm install karma-cli
npm install karma-coverage-istanbul-reporter
npm install -save @types/jasmine
npm install -save @types/jasminewd2
npm i ngentest
npm install
remove app.component.spec.ts
npm run build
ng test (to verify that karma-jasmine is working correctly)
ngentest app.component.ts > app.component.spec.ts
npm run build
ng test

my package.json is now:
"dependencies": {
"@angular/animations": "^7.2.13",
"@angular/common": "^7.2.13",
"@angular/compiler": "^7.2.13",
"@angular/core": "^7.2.13",
"@angular/forms": "^7.2.15",
"@angular/http": "^7.2.15",
"@angular/platform-browser": "^7.2.13",
"@angular/platform-browser-dynamic": "^7.2.13",
"@angular/router": "^7.2.13",
"@aspnet/signalr": "^1.1.4",
"@ecotech/common-angular-dashboard-lib": "^7.0.2",
"@ecotech/common-angular-widgets-lib": "^7.0.30",
"@fortawesome/angular-fontawesome": "^0.3.0",
"@fortawesome/fontawesome-svg-core": "^1.2.22",
"@ngx-translate/i18n-polyfill": "^1.0.0",
"@types/jasmine": "^3.4.0",
"@types/jasminewd2": "^2.0.6",
"bootstrap": "^4.3.1",
"core-js": "^2.6.5",
"font-awesome": "^4.7.0",
"highcharts": "^7.1.1",
"jasmine": "^3.4.0",
"jasmine-core": "^3.4.0",
"jasmine-spec-reporter": "^4.2.1",
"karma": "^4.3.0",
"karma-chrome-launcher": "^3.1.0",
"karma-cli": "^2.0.0",
"karma-coverage-istanbul-reporter": "^2.1.0",
"karma-jasmine": "^2.0.1",
"karma-jasmine-html-reporter": "^1.4.2",
"ng2-dragula": "^1.5.0",
"ngentest": "^0.4.1",
"ngx-bootstrap": "^4.0.1",
"ngx-toastr": "^10.0.2",
"popper.js": "^1.15.0",
"rxjs": "^6.5.1",
"rxjs-compat": "^6.5.1",
"zone.js": "~0.8.26"
},
"devDependencies": {
"@angular-devkit/build-angular": "^0.13.9",
"@angular-devkit/core": "7.3.8",
"@angular/cli": "^7.3.9",
"@angular/compiler-cli": "^7.2.15",
"@angular/language-service": "^7.2.15",
"@fortawesome/pro-light-svg-icons": "^5.10.2",
"@fortawesome/pro-regular-svg-icons": "^5.10.2",
"@fortawesome/pro-solid-svg-icons": "^5.10.2",
"@types/node": "^11.13.7",
"acorn": "^6.1.1",
"codelyzer": "~5.0.0",
"concurrently": "^4.1.2",
"ncp": "^2.0.0",
"ngx-i18nsupport": "^0.17.1",
"protractor": "^5.4.2",
"ts-node": "~8.1.0",
"tslint": "^5.16.0",
"typescript": "^3.2.4",
"webpack-bundle-analyzer": "^3.3.2"
}

I haven't run this with Karma and Jasmine.
Can you make a small repo. to make your issue reproducible?

Hi Allen I may set that up although I'm going to try an alternative approach first. In the meantime, I inspected the .spec file in notepad++, stripped out everything except all CRLF, pasted back in - didnt' work

Hi, How did you run ngentest with Jasmin/Karma. When i tried it, it created test files with Jest.

Currently it only supports Jest. PR would be appreciated.

now you can configure your test framework to karma using
https://github.com/allenhwkim/ngentest#full-example-httpsgithubcomallenhwkimngentestblobmasterngentestconfigjs
module.exports = {
  framework: 'karma', // or 'jest'


panic: runtime error: invalid memory address or nil pointer dereference

annie https://www.dailymotion.com/video/x7whxp5
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x8b8265]

goroutine 1 [running]:
github.com/iawia002/annie/extractors.Extract(0x7ffc77ea85de, 0x29, 0x0, 0x0, 0x0, 0x1, 0x0, 0xa, 0x0, 0x0, ...)
        /Users/mac/iawia002/go/src/github.com/iawia002/annie/extractors/extractors.go:104 +0x2f5
main.download(0x7ffc77ea85de, 0x29, 0x1, 0x1)
        /Users/mac/iawia002/go/src/github.com/iawia002/annie/main.go:131 +0x18d
main.main()
        /Users/mac/iawia002/go/src/github.com/iawia002/annie/main.go:253 +0x26d

This site is not supported
and see #754 about the confusing error message

This site is not supported
and see #754 about the confusing error message

I hope that in the future there will be a check on the list of supported sites. And instead of panic, write human readable an errors.


Fix hand controls

Aframe has changed the way vr controls are added to the scene. Test and make sure it works - mouse, 3DoF and 6DoF controllers
new version

super hands looks to be an easy all in one:
https://github.com/wmurphyrd/aframe-super-hands-component#description


nc4_build_root_grp() and nc4_grp_list_add() mostly the same and can be combined to reduce duplication

nc4_build_root_grp() and nc4_grp_list_add()  are mostly identical.
As part of #489 I will combine these two functions.

I have got a fix for this in my lazy var branch  ejh_fast_hidden_atts. I will put up a PR when the queue clears out a bit.

This has been fixed and merged so I will close it.


re-add the schedule page.

@nisarhassan12 this PR seems to be an earlier version of the schedule. Please update it to the latest version that you shared on slack
Current state


Test fails under Windows OS

Hello, I wanted to start contributing to this project, but unfortunately tests are failing under Windows 8/10 and probably on any other Windows OS too.

nps version: 5.0.5
node version: 6.9.2
npm version: 3.9.6

Scripts file (or at least the relevant bits):
src\bin-utils\index.test.js
src\get-scripts-from-config.test.js

The command executed:
npm start validate

The output:
 ● loadConfig: logs and throws an error for a config that exports the wrong data type
[test]
[test]     expect(jest.fn()).toHaveBeenCalledWith(expected)
[test]
[test]     Expected mock function to have been called with:
[test]       [{"message": {"regexp": /C:\code\github\nps\src\bin-utils\fixtures\bad-data-type-config.js/}, "ref": "config-must-be-an-object"}]
[test]     But it was called with:
[test]       [{"message": "The package-scripts configuration (\"C:\\code\\github\\nps\\src\\bin-utils\\fixtures\\bad-data-type-config.js\") must be an object or a function that returns an object.", "ref": "config-must-be-an-object"}]
[test]
[test]       at Object.<anonymous> (src\bin-utils\index.test.js:65:21)
[test]
[test]   ● loadConfig: logs and throws an error for a config that exports a function that returns the wrong data type
[test]
[test]     expect(jest.fn()).toHaveBeenCalledWith(expected)
[test]
[test]     Expected mock function to have been called with:
[test]       [{"message": {"regexp": /C:\code\github\nps\src\bin-utils\fixtures\bad-function-data-type-config.js/}, "ref": "config-must-be-an-object"}]
[test]     But it was called with:
[test]       [{"message": "The package-scripts configuration (\"C:\\code\\github\\nps\\src\\bin-utils\\fixtures\\bad-function-data-type-config.js\") must be an object or a function that returns an object.", "ref": "config-must-be-an-object"}]
[test]
[test]       at Object.<anonymous> (src\bin-utils\index.test.js:90:21)

FAIL  cli-test\cli.test.js
[build.andValidate]   ● with config with default script
[build.andValidate]
[build.andValidate]     Error
[build.andValidate]       Error: expect(value).toMatchSnapshot()
[build.andValidate]
[build.andValidate]       Received value does not match stored snapshot 1.
[build.andValidate]
[build.andValidate]       - Snapshot
[build.andValidate]       + Received
[build.andValidate]
[build.andValidate]       @@ -1,6 +1,6 @@
[build.andValidate]        Object {
[build.andValidate]          "stderr": "",
[build.andValidate]          "stdout": "nps executing: echo "default script"
[build.andValidate]       -default script
[build.andValidate]       +"default script"
[build.andValidate]        ",
[build.andValidate]        }
[build.andValidate]       at cli-test\cli.test.js:23:36
[build.andValidate]
[build.andValidate]   ● with a missing config
[build.andValidate]
[build.andValidate]     expect(value).toMatchSnapshot()
[build.andValidate]
[build.andValidate]     Received value does not match stored snapshot 1.
[build.andValidate]
[build.andValidate]     - Snapshot
[build.andValidate]     + Received
[build.andValidate]
[build.andValidate]     @@ -1,5 +1,5 @@
[build.andValidate]      Object {
[build.andValidate]     -  "stderr": "Unable to find JS config at "./something-that-does-not-exist.js". Attempted to require as "<projectRootDir>/cli-test/fixtures/something-that-does-not-exist.js" https://github.com/kentcdodds/nps/blob/v0.0.0-semantically-released/other/ERRORS_AND_WARNINGS.md#unable-to-find-config
[build.andValidate]     +  "stderr": "Unable to find JS config at "./something-that-does-not-exist.js". Attempted to require as "<projectRootDir>\cli-test\fixtures\something-that-does-not-exist.js" https://github.com/kentcdodds/nps/blob/v0.0.0-semantically-released/other/ERRORS_AND_WARNINGS.md#unable-to-find-config
[build.andValidate]      ",
[build.andValidate]        "stdout": "",
[build.andValidate]      }
[build.andValidate]
[build.andValidate]       at cli-test\cli.test.js:23:36
[build.andValidate]       at process._tickCallback (internal\process\next_tick.js:103:7)
[build.andValidate]
[build.andValidate]   ● with --silent
[build.andValidate]
[build.andValidate]     Error
[build.andValidate]       Error: expect(value).toMatchSnapshot()
[build.andValidate]
[build.andValidate]       Received value does not match stored snapshot 1.
[build.andValidate]
[build.andValidate]       - Snapshot
[build.andValidate]       + Received
[build.andValidate]
[build.andValidate]       @@ -1,5 +1,5 @@
[build.andValidate]        Object {
[build.andValidate]          "stderr": "",
[build.andValidate]       -  "stdout": "test script
[build.andValidate]       +  "stdout": ""test script"
[build.andValidate]        ",
[build.andValidate]        }
[build.andValidate]       at cli-test\cli.test.js:23:36
[build.andValidate]       at process._tickCallback (internal\process\next_tick.js:103:7)
[build.andValidate]
[build.andValidate]   ● with --require
[build.andValidate]
[build.andValidate]     Error
[build.andValidate]       Error: expect(value).toMatchSnapshot()
[build.andValidate]
[build.andValidate]       Received value does not match stored snapshot 1.
[build.andValidate]
[build.andValidate]       - Snapshot
[build.andValidate]       + Received
[build.andValidate]
[build.andValidate]       @@ -1,6 +1,6 @@
[build.andValidate]        Object {
[build.andValidate]          "stderr": "",
[build.andValidate]          "stdout": "nps executing: echo "log"
[build.andValidate]       -log
[build.andValidate]       +"log"
[build.andValidate]        ",
[build.andValidate]        }
[build.andValidate]       at cli-test\cli.test.js:23:36
[build.andValidate]       at process._tickCallback (internal\process\next_tick.js:103:7)

Problem description:
It seems that tests are failing because of OS differences between Windows and Linux, especially paths.
Suggested solution:
Tests should be less OS dependent. Maybe use path.posix/path.win32.

Ah, yeah, we should probably just fudge the output a little bit or something 🤔 Would you care to makeapullrequest.com?

I can try to fix it :-)

To test cli we use jest's snapshot technique which expects one, constant output. The output differentiates between OS platforms. There is no neutral output which is same on both. I guess we should standardize the output for Linux platform which is imo more natural i.e.:
path/to/file instead of path\\to\\file.

I was thinking that we could just do the same kind of thing we do here but instead swap \\ for / or something..

Yea, was thinking if we should play with actual output or only with output for tests. Will go with the one proposed by you.

May I ask about access to repo? Wanted to make PR.

Normally you make a fork and make a pull request from your fork. You may find the course referenced helpful: http://makeapullrequest.com

I have found few more problems which I can fix, but I am surprised that those didn't appear when I was fixing cli tests. Also, I am surprised that this test doesn't fail on travis:
 FAIL  src\bin-utils\index.test.js
  ● loadConfig: logs and throws an error for a config that exports the wrong data type

    expect(jest.fn()).toHaveBeenCalledWith(expected)

    Expected mock function to have been called with:
      [{"message": {"regexp": /C:\code\github\nps\src\bin-utils\fixtures\bad-data-type-config.js/}, "ref": "config-must-be-an-object"}]
    But it was called with:
      [{"message": "The package-scripts configuration (\"C:\\code\\github\\nps\\src\\bin-utils\\fixtures\\bad-data-type-config.js\") must be an object or a function that returns an object.", "ref": "config-must-be-an-object"}]

      at Object.<anonymous> (src\bin-utils\index.test.js:65:21)

It's not about paths separators but content of message property is completely different.

Ah, yeah! Thanks. I wonder if it would be helpful to write a jest serializer that will do this automatically for all snapshots 🤔 We could open source that and other people could use it to avoid problems like these in the future... Something to think about...

Although this particular error would be kinda tricky because it's not a snapshot 😅 ignore me :)

@kentcdodds Could you run yarn start test on your machine? Want to make sure it's reproducible and to see if it's correct that it's not failing on Travis.

Oh nvm, I see it is problem with paths and just understood how expect.stringMatching function works. Will make another pr soon.

Tests are working correctly now so I close my issue.

Thanks to you! 😀


review 'spondyloepimetaphyseal dysplasia' classification

Related to #1764 and https://github.com/monarch-initiative/mondo/pull/1915
From @cmungall:
Do a review of 'spondyloepiphyseal dysplasia' in mondo
There are a a lot slurped from OMIM that are not classified under 'spondyloepiphyseal dysplasia', e.g

id: MONDO:0032885
name: spondyloepimetaphyseal dysplasia, Isidor-Toutain type
synonym: "SPONDYLOEPIMETAPHYSEAL DYSPLASIA, ISIDOR-TOUTAIN TYPE; SEMDIST" RELATED [OMIM:618728]
xref: OMIM:618728 {source="MONDO:equivalentTo"}
is_a: MONDO:0003847 {source="OMIM:618728"} ! Mendelian disease

I recommend closing this and making a ticket to review 'spondyloepimetaphyseal dysplasia' classification, ensure classification is complete, and fold the proposed merge into this.
Question:
There is not a generic 'spondyloepiphyseal dysplasia' class in Mondo, do we want one?
Question:
MONDO_0011261 spondyloepiphyseal dysplasia, Nishimura type and  MONDO_0032835 spondyloepiphyseal dysplasia, nishimura type are closing related in name.
Should they be merged?
They correspond to two separate OMIM entries though:

Mondo ID
Mondo Label
OMIM ID
OMIM Label

MONDO_0011261
spondyloepiphyseal dysplasia, Nishimura type
OMIM:602611
SPONDYLOEPIPHYSEAL DYSPLASIA WITH CORONAL CRANIOSYNOSTOSIS, CATARACTS, CLEFT PALATE, AND MENTAL RETARDATION

MONDO_0032835
spondyloepiphyseal dysplasia, nishimura type
OMIM:618618
SPONDYLOEPIPHYSEAL DYSPLASIA, NISHIMURA TYPE; SEDN

Nicole - to do for now - use OMIM labels as primary labels in Mondo.
Need some advice from @ahamosh  - does the synonym 'spondyloepiphyseal dysplasia, nishimura type' belong to one or both of terms? Or should it only be applied to one term?

Nicole to do:

[ ] rename MONDO_0016761 'spondylo-epi-(meta)-physeal dysplasia' to a label without dashes and make this label a synonym.
[ ] 'spondyloepiphyseal dysplasia with punctate corneal dystrophy' should be a child of  MONDO_0016761

[ ] 'spondyloepiphyseal dysplasia tarda, Kohn type' and 'spondyloepiphyseal dysplasia tarda, X-linked' and 'spondyloepiphyseal dysplasia tarda with characteristic facies' should be children of 'spondyloepiphyseal dysplasia tarda'
[ ] add logical def for AD and AR subtypes of 'spondyloepiphyseal dysplasia tarda, Kohn type'

Hi All, First, 618618 is NOT the same as 602611.  The former is Nishimura type, has a gene, etc.  The latter is a single family and no gene has been identified.  The features are not the same.  I will talk with Joanna and Carol about making a spondyloepiphyseal dysplasia phenotypic series.  The parent is certainly appropriate for Mondo.  Also you are correct that spondyloepimetaphyseal dysplasia is not the same as spondyloepiphyseal dysplasia, although both can come under the grandparent (right term?) of skeletal dysplasia.

Thanks @ahamosh!


world_canvas_msgs: 0.2.0-0 in 'kinetic/distribution.yaml' [bloom]

Increasing version of package(s) in repository world_canvas_msgs to 0.2.0-0:

upstream repository: https://github.com/yujinrobot/world_canvas_msgs
release repository: https://github.com/yujinrobot-release/world_canvas_msgs-release.git
distro file: kinetic/distribution.yaml
bloom version: 0.5.21
previous version for package: null

Wrong release repo.


Type of _count key of relation count is nullable

Bug description
Hi there.
I love prisma and am grateful for release of 3.0!
Then, I found nits around relation count.
I get object with nullable _count key using relation count feature, but I heard _count key will never be null.
Because of nullability, I need needless null check or non-null-assertion.
How to reproduce
Reproduction code is here
===

making models with relation
https://github.com/mitsuru-kasai-exwzd/prisma-count-nullable/blob/master/prisma/schema.prisma
npx prisma generate
fetch model with relation count
https://github.com/mitsuru-kasai-exwzd/prisma-count-nullable/blob/master/index.ts

Expected behavior
_count key will be not nullable.
Prisma information
Schema
https://github.com/mitsuru-kasai-exwzd/prisma-count-nullable/blob/master/prisma/schema.prisma
datasource db {
  provider = "postgresql"
  url      = env("DATABASE_URL")
}

generator client {
  provider = "prisma-client-js"
}

model User {
  id    Int    @id @default(autoincrement())
  posts Post[]
}

model Post {
  id       Int  @id @default(autoincrement())
  author   User @relation(fields: [authorId], references: [id])
  authorId Int
}

Query
https://github.com/mitsuru-kasai-exwzd/prisma-count-nullable/blob/master/index.ts
const prisma = new PrismaClient()
prisma.user.findFirst(
    {
        include: { _count: { select: { posts: true } } },
        rejectOnNotFound: true
    }
).then(user => {
    user._count // this is nullable
})

Environment & setup

OS: Mac OS Big Sur 11.4
Database: Not depend database
Node.js version: v16.6.2

Prisma Version
prisma                  : 3.1.1
@prisma/client          : 3.1.1
Current platform        : darwin
Query Engine (Node-API) : libquery-engine c22652b7e418506fab23052d569b85d3aec4883f (at<EMAIL_ADDRESS>Migration Engine        : migration-engine-cli c22652b7e418506fab23052d569b85d3aec4883f (at node_modules/@prisma/engines/migration-engine-darwin)
Introspection Engine    : introspection-core c22652b7e418506fab23052d569b85d3aec4883f (at node_modules/@prisma/engines/introspection-engine-darwin)
Format Binary           : prisma-fmt c22652b7e418506fab23052d569b85d3aec4883f (at node_modules/@prisma/engines/prisma-fmt-darwin)
Default Engines Hash    : c22652b7e418506fab23052d569b85d3aec4883f
Studio                  : 0.423.0

Thanks for reporting this. I can confirm this issue. We need to adjust the typings.

Thanks for your confirmation!
I'm looking forward to update. :)


feat(serve): allow setting ssl certificate in angular-cli.json

Currently users must use the --ssl, -ssl-cert, -ssl-key flags to run the
server using an ssl certificate. This update allows users to set
those options in default.serve so they can just run ng serve without any
flags.

I should mention that there is some time pressure to get this in due to RC0. I'm not sure we can add it afterwards since it does change the config api.

@itslenny I added my approval but it's contingent on CI passing, per usual.

@filipesilva I got a failure on Travis that doesn't seem to be related to my change. Is this a known flaky test? It only failed in one of the environments.
  Running `ng "e2e" "--watch" "--live-reload"` [silent, matching(/Spec started/)]...
  CWD: /tmp/angular-cli-e2e-117122-3895-lldysh.vkfp5sif6r/test-project
travis_fold:end:tests.misc.live-reload
Last step took 24.38s...

Error: Expected API to have been called 2 times but it was called 1 times.

Test "tests/misc/live-reload" failed...
Expected API to have been called 2 times but it was called 1 times.
Error: Expected API to have been called 2 times but it was called 1 times.
    at Promise.resolve.then.then.then.then.then.then.then._ (/home/travis/build/angular/angular-cli/tests/e2e/tests/misc/live-reload.ts:62:19)

Yes that test is flaky sometimes. I have ran into it today as well. I'll restart that job.

@itslenny thanks for your work getting this in!


For example here the source for etcd is incorrect:
Etcd:                      m("quay.io/coreos/etcd:v3.4.3-rancher1"),
It should be:
rancher/coreos-etcd:v3.4.3-rancher1

Is the idea that we want to bypass the mirror logic located here: https://github.com/rancher/types/blob/master/image/mirror.go ?

This was taken care of in these PRs:
https://github.com/rancher/kontainer-driver-metadata/pull/348
https://github.com/rancher/kontainer-driver-metadata/pull/350

We want to bypass the logic only when we build custom images that are suffixed with rancher.

Tested with master-head(master-e919796c808d0aa643cb3491581bffcd64cfbe56-head) on a HA setup

Deployed DO clusters with K8s version v18.8-rancher1-1, v1.17.11-rancher1-1, v1.16.15-rancher1-1
Cluster deployment succeeded.
Automation tests were run on the three clusters and they succeeded.


Update dictionary.txt . . . adding Phi

Adding another phone for Phi

Looks great! Thanks for the contribution :tada:


Column permission

A table where different users are only allowed to query specific fields, I need to set the user's column permissions. Although I know that views can work, too many field combinations can result in too many views.

Hello, does the community currently have plans to complete the column permissions feature

The current open source version does not have the feature of internally maintaining row and column permissions, but it currently supports row and column permissions in Apache Ranger in the Main branch.

The current open source version does not have the feature of internally maintaining row and column permissions, but it currently supports row and column permissions in Apache Ranger in the Main branch.

Ok, thank you

The current open source version does not have the feature of internally maintaining row and column permissions, but it currently supports row and column permissions in Apache Ranger in the Main branch.

I'm trying to use ranger，Where is the plugin jar and where should it go

The current open source version does not have the feature of internally maintaining row and column permissions, but it currently supports row and column permissions in Apache Ranger in the Main branch.

  I'm trying to use ranger，Where is the plugin jar and where should it go

work out

finally it It didn't work out, help plz~~~
1.What to fill in   Policy Conditions ？
2.Do I need to change any configuration in starrocks?

I have the same problem, Are there any instructions for use? @HangyuanLiu

same here.
I get the following error with a column policy:
mysql> select k from tmp.ranger_test; ERROR 1253 (42000): Access denied; you need (at least one of) the SELECT privilege(s) on TABLE ranger_test for this operation.

I can select with a table policy (none for column), but then I can select all columns even if the column policy also exists.


replace macros in tests with functions

The PR replaces a bunch of macros in tests/ with functions.
src/characters/

complete.rs
streaming.rs

tests/

mp4.rs
float.rs
ini.rs
ini_str.rs
overflow.rs
test1.rs (deleted / see commit message)

related: #1343

thank you, great work!


Add learning rate and weight decay arguments to PyTorch estimators

Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Please tag this pr with at least one of these labels to make our release process faster: BREAKING, new feature, bug fix, other change, dev setup

Let's check consistency before merging.

The thing is, lr is consistent with the PyTorch ecosystem (see https://pytorch.org/docs/stable/optim.html) which would also be desirable in my opinion


refactor(helm): add control for securityContext

Signed-off-by: Zemtsov Vladimir<EMAIL_ADDRESS>Small feature for control securityContext in helm
Local test:
~ kind create cluster
...

~ k cluster-info
Kubernetes control plane is running at https://<IP_ADDRESS>:60977
CoreDNS is running at https://<IP_ADDRESS>:60977/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy

To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.

~ helm install capsule . -n capsule-system --create-namespace
NAME: capsule
LAST DEPLOYED: Fri Feb 10 09:57:02 2023
NAMESPACE: capsule-system
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
  ...

~ k get deployments.apps -n capsule-system capsule-controller-manager -o yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  ...
  name: capsule-controller-manager
  namespace: capsule-system
  ...
spec:
  ...
  template:
    ...
    spec:
      containers:
      - ...
        ...
        securityContext:
          allowPrivilegeEscalation: false
          capabilities:
            drop:
            - ALL
          readOnlyRootFilesystem: true
        ...
      ...
      securityContext:
        runAsGroup: 1002
        runAsNonRoot: true
        runAsUser: 1002
      ...

~ k create -f - << EOF
apiVersion: capsule.clastix.io/v1beta2
kind: Tenant
metadata:
  name: oil
spec:
  owners:
  - name: alice
    kind: User
EOF
tenant.capsule.clastix.io/oil created

~ k get tenants
NAME   STATE    NAMESPACE QUOTA   NAMESPACE COUNT   NODE SELECTOR   AGE
oil    Active                     0                                 4s

~ ../../hack/create-user.sh alice oil
creating certs in TMPDIR /var/folders/c7/78_t4pvj5zd2qrcwgq05h7_40000gn/T/tmp.Sr8bOiQ3
merging groups /O=capsule.clastix.io
Generating RSA private key, 2048 bit long modulus
......................................+++
........+++
e is 65537 (0x10001)
certificatesigningrequest.certificates.k8s.io/alice-oil created
certificatesigningrequest.certificates.k8s.io/alice-oil approved
kubeconfig file is: alice-oil.kubeconfig
to use it as alice export KUBECONFIG=alice-oil.kubeconfig

~ export KUBECONFIG=alice-oil.kubeconfig
~ k create namespace oil-production
namespace/oil-production created

~ k create namespace oil-development
namespace/oil-development created

~ export KUBECONFIG=
~ k get tenant oil
NAME   STATE    NAMESPACE QUOTA   NAMESPACE COUNT   NODE SELECTOR   AGE
oil    Active                     2                                 38s

This PR continuation of this - https://github.com/clastix/capsule/pull/693
SecurityContext I take from this issue - https://github.com/clastix/capsule/issues/680

Astonishing work, @zvlb! <3
@oliverbaehler may I ask for your review on this?

I added default seccompProfile and retest capsule. All work good

What's the behavior for you? (Just want to make sure this doesn't break the default deployment) :)

It's something I experienced too, it happens time to time while generating the webhook certificates.
We should increase the memory of the Controller to avoid this.

Hi. I have a question.
Why step "release" was skipped?

Because I merged the PR and hadn't pushed the Helm tag:
https://github.com/clastix/capsule/blob/770ad22170d5484de7093bdcf8aa27178e9e95fe/.github/workflows/helm.yml#L70-L86
Please, note line nr. 71
Just pushed the related tag and the new Chart version is available, remember to issue helm repo update to get your local cache updated!

TY!


Removed cached local IP

HelperFunctions was using a class variable to track the local IP, but it
was not quite a cache, since it was set by djinn (or by calling
local_ip). This variable was used sparingly (starting zookeeper and for
the datastore): since not all services were using it, this could in
theory cause some inconsistencies on multi-networked systems. This PR
removes the inconsistency and print warnings if djinn is using a local
IP that is not the default one.

OCD build http://ocd.appscale.net:8080/job/Daily Build/6124/

OCD build http://ocd.appscale.net:8080/job/Daily Build/6139/


Setup nbdev and add parsing tests with a single pdf

Giving up on this. Can't get it to work because of conflicting files with fastpages :(

Deciding to not do this for now.
Why?
What we want is the Github Actions for making the python scripts from notebook, but not the HTML docs which would conflict with fastpages.
Given that nbdev does both by default, and @meghanabhange couldn't figure out a way to do only script generation -- marking this as a "Help Needed" but not closing it. Also, removing the person assignment.


✨ Avoid the unnecessary import of typing_extensions in newer Python versions

Relevant links:

https://typing-extensions.readthedocs.io/en/latest/index.html#typing_extensions.get_args (since Python 3.8)
https://typing-extensions.readthedocs.io/en/latest/index.html#typing_extensions.get_origin (since Python 3.8)
https://typing-extensions.readthedocs.io/en/latest/index.html#typing_extensions.get_type_hints (since Python 3.?)
https://typing-extensions.readthedocs.io/en/latest/index.html#typing_extensions.Annotated (since Python 3.9)
https://typing-extensions.readthedocs.io/en/latest/index.html#typing_extensions.Literal (since Python 3.8)

The reason for this is that typing_extensions is extensive and can cause slowdowns in compiled Python scripts.

I dont understand that linting error for the rich_utils.py file. If I import Literal directly from typing_extensions or typing, it works, but not if I import it from _typing?

Hm, that's weird. I can have a look sometime later this week if you don't figure it out!

I dont understand that linting error for the rich_utils.py file. If I import Literal directly from typing_extensions or typing, it works, but not if I import it from _typing?

Looks like this is expected behaviour when importing Typing from an indirect import 😕 : https://github.com/astral-sh/ruff/issues/128#issuecomment-1496289504


git.add does not work quite right

There needs to be better comprehension around the "files" part of the arguments.
My situation:

I have a repo that is other than the folder from which git.add is invoked, so I need to comprehend either: 1) gulp.src(...) differently, or 2) be able to specify the repo directory, i.e. git.add({ args: ".", cwd: repoDir })

But which does not add the files as expected.
If I pass the full path of the file(s) in question, then Git complains, of course, the file is "outside" the repository.

Considering the current state of the source, it looks to me like you are assuming that the current process.cwd() is where the files are. You overwrite the add cwd during flush, but never did so during the write, where the files are gathered. It would be better to respect the given opts.cwd, or allow for options passed in that include the specific file names that callers want to add.
This is a bit of a rabbit hole for me. If I must, I will submit a PR, but would this be difficult to correct and publish in the near future?

Sorry, confused with another repo...


Setting a value?

I can't seem to update value in a file, what am I doing wrong?
<?php

use Noodlehaus\Config as Config;

$config = Config::load($app->config('base_path') . '/config/config.yaml');
$next_number = $config->get('accounting.next_number');
$new_number = ++$next_number;
$config->set('accounting.next_number', $new_number);

I can return the get value so the file is readable etc. But it wont update the value in the file.

By design, Config won't overwrite a text file, it will only overwrite that value in-memory.


Stop reconnecting at startup

I work with 6 to 7 db per session and all from different sources, sometimes with vpn networks, tunneling and so on.
One of the most annoying things of dbeaver is that when I start it, it tries to reconnect to all those databases, forcing me to close every error notice one by one and after that close all those broken connections.
I tried everything, all the options in the preferences, already suggested many times by users, but, nevertheless, it tries to connect. I definetely don't want that.
It seems like a bug to me, because is going on for months.
The 'Disconnect All' menu is good, and in general it works, but I have to remember to click it before closing the app. But even this button sometimes does really nothing, and it leaves clearly the connection open (you can see it because the project tree remains opened on the connected DBs)
Version in use: DBeaver v7.0.3 (Windows 10)

Hi @Mizar01 ,
you could disable it in Preferences


MVP-494 Notify email content

Notify email content created in prototype.  Link on confirmation page "Check your inbox" will take them to the screen below

further discussion with business/PLADS required to decide if we will proceed with a specific response date (based on date of submission + 4 months) or a less specific delivery timescale eg "in 4 months time".

I would expect when you tell users 4 months they take that to mean 4 months from when they submitted the application. But something to test in research @samgroves19.


added uniqueness index to documents and validation on document name u…

…niqueness dependant on category it belongs to

@liligga - I tested your patch. What we need is as follows :
Continue to support /docs/name-of-document.
But additionally also have the ability to create /docs/category_name/name-of-document.
We would love to see your PR for supporting multiple slugs. Default slug will be /docs/name-of-document for all unique documents. Whenever there is a name collision, we will offer /docs/category-name/name-of-document. We could validate that this is not a unique name and offer to create this slug instead. Feel free to propose a checkbox in the UI admin if needed. This would support #251 comprehensively.
I think we can do this without changes in the db schema. Also there is no change in the gem file. And finally we do not need development.sqlite3 changes as we run on postgres both in development and production.

Hello. Would be glad if you deleted the pull-request of mine because it
turned to be a shame because of my inattentiveness. Really sorry for that.
I will try to make pull requests as soon as possible, most likely tomorrow.
On Tue, Dec 6, 2016 at 3:34 AM, Dee Koder<EMAIL_ADDRESS>wrote:

@liligga https://github.com/liligga - I tested your patch. What we need
is as follows :
Continue to support /docs/name-of-document.
But additionally also have the ability to create
/docs/category_name/name-of-document.
We would love to see your PR for supporting multiple slugs. Default slug
will be /docs/name-of-document for all unique documents. Whenever there is
a name collision, we will offer /docs/category-name/name-of-document. We
could validate that this is not a unique name and offer to create this slug
instead. Feel free to propose a checkbox in the UI admin if needed. This
would support #251 https://github.com/minio/doctor/issues/251
comprehensively.
I think we can do this without changes in the db schema. Also there is no
change in the gem file. And finally we do not need development.sqlite3
changes as we run on postgres both in development and production.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/minio/doctor/pull/253#issuecomment-264984261, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AA1TUqfgE1OZ0wm6y-Yv94DI1asr0nT8ks5rFINWgaJpZM4LDPys
.

no problem. @liligga. I will close this PR as per your request. Looking fwd to your contributions!


Can't access to the scene.facebook's properties

Version

Phaser Version: Phaser v3.22.0-FB (WebGL | Web Audio)

Operating system: macOS Catalina 10.15.4

Browser: Google Chrome 81.0.4044.138 (Official Build) (64-bit)

Description

I just try to get values of some properties of the scene.facebook and get null. For example:

scene.facebook.playerName
scene.facebook.playerID

But if I log the scene.facebook itself then it has everything correctly, I mean there are correct values for playerName and playerID.
Rarely I get correct values, but I don't understand why I can't get correct values while the scene.facebook always has correct values.
Example Test Code

class SomeTestScene extends Phaser.Scene
{
    constructor ()
    {
        super({ key: 'SomeTestScene' });
    }

    create ()
    {
        console.log(this.facebook); // everything is okay (not null values)
        console.log(this.facebook.playerName); // null
        console.log(this.facebook.getPlayerName()); // null
    }
}

Additional Information
Sometimes when I switch between windows or browser tabs and return to the game's tab I see console.log() outputs correct values (not null). But I can't find the problem and spend to much time for this...
The browser version of my game is already ready to play, but I can't convert it to facebook instant games for this reason...

I found the bug. It turned out that I accidentally and without noticing deleted a line that starts instant game in a preloader scene.


Possible to detect switch device turned on/off by wall switch?

Hi,
First off all thanks for very good app!
I'm using the new version of the app (sdk3) and I see that when I manipulate a light using the wall switch, the connected zigbee switch module connected to it does not dect the state modification. Would it be possible to detect it from the zigbee switch module somehow?
Best,
Jérôme

Arf, forget about my comment... my device was recognized by the default zigbee app instead of your app. I forked and integrated my switches and now it works !

Arf, forget about my comment... my device was recognized by the default zigbee app instead of your app. I forked and integrated my switches and now it works !


Fix Nodejs generation to auto deal with args class instantiation

I found there is a logic for auto dealing with method args class instantiation, but not using

@wenshin first of all my apologies for having no comments or interactions since you submitted the PR a month ago.  As you may have seen we had some CI build issues which are now resolved, and your PR has a conflict.  Could you rebase this on the current master and push to refresh this PR and kick a build?
Also, changes need Jira tickets.  See:
https://thrift.apache.org/docs/HowToContribute

@jeking3 Thanks for your nice reply, it's duplicate of #1034, I'll close this one.


<EMAIL_ADDRESS>/ 404 Not Found<EMAIL_ADDRESS>

@martinoppitz thanks for the issue! do you have your own npm cache/registry? It's definitely published:
<EMAIL_ADDRESS>

I faced this issue too.


Add ProgrammableConfig to token metadata struct.

C.f. https://github.com/metaplex-foundation/mpl-token-metadata/blob/main/programs/token-metadata/program/src/state/metadata.rs#L372

@yihau any chance I could become a committer on this repo?


Missing diamond icons with continuous dumps enabled when memory is allocated + deallocated

Hi @stevegolton @ddiproietto
Thanks for this tool!
I've been able to successfully run this on my target and used this to debug memory leak issues.
This issue is related to https://github.com/google/perfetto/issues/473 but not exactly the same so i figured I would open a new issue.
I have written the following test script where I am properly cleaning up memory in one method, and leaking memory in a different method. I call both methods.
source code:
#include <iostream>
#include <chrono>
#include <thread>

using namespace std;

class MyClass1 {
public:
    MyClass1() {
    }

    void allocate() {
        cout << "Allocating and Deallocating data" << endl;

        data = new char[5000];
        for (int i = 0; i < 5000; i++) {
            data[i] = 'a';
        }
        delete[] data;
    }

    void leak_allocate() {
        cout << "Leaking memory" << endl;

        char* leaker = new char[5000];
        for (int i = 0; i < 5000; i++) {
            leaker[i] = 'a';
        }
    }

private:
    char* data;
};

int main() {
    MyClass1* obj1 = new MyClass1();

    for (int i = 0; i < 5; i++) {
        this_thread::sleep_for(chrono::seconds(1));
        obj1->allocate();
        this_thread::sleep_for(chrono::seconds(1));
        obj1->leak_allocate();
        cout << "count " << i << endl;
    }

    return 0;
}

when I run this class and generate a heap profile, this is what i see:

when I click the right most diamond, the data seems correct in that I have 5 counts of leaked memory from calling:
obj1->leak_allocate();

issue: however, i am surprised that I don't see any diamonds in the middle because even though I am properly cleaning up memory with allocate, the leak_allocate is leaking memory every 1s.
I would have expected to see diamonds every 1 second - which i would see if I removed the line delete[] data;.

here is the heaptrace:
heapprofd-trace.zip
here are the steps that I ran:
// compile the src code
tkuo@tkuo-HP-Z840-Workstation:~/Documents/test$ g++ -g nonthreadLeaky.cpp -o test

// run the exec
tkuo@tkuo-HP-Z840-Workstation:~/Documents/perfetto/out/tkuo$ LD_PRELOAD=~/Documents/perfetto/out/linux_clang_release/libheapprofd_glibc_preload.so ../../../test/test

// run profetto
tkuo@tkuo-HP-Z840-Workstation:~/Documents/perfetto$ tools/heap_profile -n test -c 5 --print-config  | out/linux_clang_release/perfetto   -c - --txt   -o ~/heapprofd-trace
[393.738]    perfetto_cmd.cc:1026 Connected to the Perfetto traced service, starting tracing
^C[406.559]    perfetto_cmd.cc:1227 SIGINT/SIGTERM received: disabling tracing.
[406.577]    perfetto_cmd.cc:1175 Trace written into the output file

// run traced
tkuo@tkuo-HP-Z840-Workstation:~/Documents/perfetto/out/linux_clang_release$ ./traced

i am running this all on the following system:
tkuo@tkuo-HP-Z840-Workstation:~/Documents/perfetto$ uname -ar
Linux tkuo-HP-Z840-Workstation 5.19.0-38-generic #39~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 17 21:16:15 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
tkuo@tkuo-HP-Z840-Workstation:~/Documents/test$ g++ --version
g++ (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

is this by design? or do I need to configure heap_profile in a different way?
thanks!

is this by design? or do I need to configure heap_profile in a different way?

Neither, this appears to be a bug.
For performance reason, we batch processing free() records: https://cs.android.com/android/platform/superproject/+/master:external/perfetto/src/profiling/memory/unwinding.cc;l=434;drc=2e3a133b5f87be51ffb9e6945dd34dedf9ab4022
We can probably fix it by flushing the batch before emitting a dump. I'll send a fix in the next couple of days.
Thanks a lot for reporting this!

@ddiproietto awesome thanks!


Add Shiny docs

This creates the documentation for the new templated Shiny spaces.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


Not a bug: fantastic project!

Hello, just wanted to say how much I enjoy your FBPDF, FBFF, and NEATCC projects. Very well done!
I thought you might be interested to know that I ported both FBPDF and FBFF to Microwindows (a small-footprint graphical windowing system that runs on framebuffer, as well as other environments).I took your nicely-designed fb_ api in draw.c and made a few changes so they are identical across FBPDF and FBFF, and moved the keyboard input processing out of the main application into it as well so they are now portable across both environments.
Then, nxdraw.c was added to replace draw.c for the Nano-X environment, which handles some basic window creation, but uses the Nano-X capability of drawing directly into a memory-mapped window framebuffer such that the main application still uses the original fb_ api. All in all, pretty cool and very fast thanks to your neat design.
Now, the nxdraw.c and draw.c files are identical across the FBFF/FBPDF applications, and allow running on framebuffer or Nano-X with a quick change to the Makefile. I forked both projects and the code is there, in case you're interested. A couple bug fixes were made that causes core dumps with no audio playback, and width and height seperate zooms added.
Here's a screenshot of FBPDF running on OSX on Nano-X on SDL, no need to do anything, just wanted to say thanks!!

Hello,
Gregory Haerr<EMAIL_ADDRESS>wrote:

Hello, just wanted to say how much I enjoy your FBPDF, FBFF, and
NEATCC projects. Very well done!

Glad to hear that.

I thought you might be interested to know that I ported both FBPDF
and FBFF to Microwindows (a small-footprint graphical windowing system
that runs on framebuffer, as well as other environments).I took your
nicely-designed fb_ api in draw.c and made a few changes so they are
identical across FBPDF and FBFF, and moved the keyboard input
processing out of the main application into it as well so they are now
portable across both environments.
Then, nxdraw.c was added to replace draw.c for the Nano-X
environment, which handles some basic window creation, but uses the
Nano-X capability of drawing directly into a memory-mapped window
framebuffer such that the main application still uses the original fb_
api. All in all, pretty cool and very fast thanks to your neat design.
Now, the nxdraw.c and draw.c files are identical across the
FBFF/FBPDF applications, and allow running on framebuffer or Nano-X
with a quick change to the Makefile. I forked both projects and the
code is there, in case you're interested. A couple bug fixes were made
that causes core dumps with no audio playback, and width and height
seperate zooms added.
Here's a screenshot of FBPDF running on OSX on Nano-X on SDL, no
need to do anything, just wanted to say thanks!!

Impressive!  I shall add a link from the homepage (litcave.rudi.ir).
Ali

+1 !
Output is so crisp compared to using fbi / fbv
my only 2p (on wishlist) would be:
1p: a startup parameter of zoom fit to page height
2p: some more (intuitive?) keys PgUp PgDn and cursor keys if page not zoomed


Allow configuration of Instance Divisor

Never thought was ever a need for this to be anything other than one; but you learn something everyday 😄

Me neither to be honest:)

Half a mesh; axis multiplier -1, 1

Use half a mesh; reflect with axis multiplier -1, 1

Alas it doesn't repeat when it gets to end of 1 multipler; so either double draw or double instance buffer ;(

Hey..not sure to get what is the problem :(

[v,v,v,v,v,v,v,v,v][v,v,v,v,v,v,v,v,v][v,v,v,v,v,v,v,v,v][v,v,v,v,v,v,v,v,v] // repeat divisor 0
[       pos,               pos       ][       pos,               pos       ] // repeat divisor 1
[                 adj,                                 adj                 ] // divisor 2

Was hoping divisor 2 would cause divisor 1 to repeat when it got to the end. But instead just run out of vertexes :)
Was a misunderstanding on how it worked

Oh..ok :) part of me was stressed that we had a bug since long time :D

tl;dr multiplier > 1 can be useful; but way way less useful than I was hoping (borderline not useful)


Backslashes in path names cause unexpected behaviors

Making files with \/ in their paths cause them to display improperly and be unopenable.

Hey host(?) I had made a fix to the backslash issue but it's on my PC which I won't have access to for a while

I can commit it in like a week


s390x: virtio-blk not supported yet

IBM Z uses ccw devices and the case for 'virtio-blk-ccw' with devicemapper doesn't properly work. It requires a special handling. That probably requires changes in govmm, the agent and the runtime. I saw from https://github.com/kata-containers/runtime/issues/1113 that you might plan to drop the 'virtio-blk'' option. Therefore, I don't know if it's worthy to implement this functionality. The option 'virtio-scsi' works.

Wrong fixes ...

:) thanks to re-open it! @tuan-hoang1 is working on this part

I extended kata to support virtio-blk-ccw devices for s390x. Differently to pci devices, ccw devices can be identified by the param devno(device_bus_id). The devices information during the hotplug are updated under'/sys/devices/css0/', and the disk name can be found under '/sys/bus/ccw/devices'
This requires several modifications:

govmm add devno parameters and virtio-blk-ccw.
agent: add virtio-blk-ccw support.
runtime

vendor the govmm modifications
abstract pci bridge variable as bridge to be able to add other bus type (like ccw)
add ccw bus type
add devno param
add virtio-blk-ccw

There're several modifications to the code and I'm not sure how to split the various modification to ease the review. I was thinking to open 2 PRs:
1- with the abstraction of pcibridge and the support of ccw
2- addition of devno param and virtio-blk-ccw

/cc @amshinde @devimc for any input on device mode etc.

The vendoring of govmm can be done together with this PR https://github.com/kata-containers/runtime/pull/1843 or I'll do on top. I need in any case the updated signature for 2 functions

Can I open a PR with the rest of my changes for the virtio-blk-ccw with the do-not-merge tag? I'd really appreciate any suggestion how to split it and also if you like my changes in the common code. Currently my code can be found here.

hi, thanks to merging the agent part. Now, the missing part is the runtime. @jschintag and I we noticed today that you revendor govmm. The new version inlcuded the devno support. However, the runtime part is missing and the qemu cmd line is broken (for s390x). It has an empty value for devno. Something like qemu-system-s390x: -device virtio-serial-ccw,id=serial0,devno=. So no wonder if now the runtime for s390x is not working properly. I've already prepared the code. But it's complicate because I extended the PCI bridge and this requires some code review.

I'd suggest that I open a PR with the code with a dont-merge tag, is it ok for you?

@alicefr - opening a PR for just code review is fine - there is/should even be a RequestForComments(RFC) label/subject identifier to mark it as such, as well as DNM.
/cc @devimc @amshinde for the whole devnode/qemu side etc.

thanks, we're going to open the PR in the next days


Application Insight not using the Default LogLevel configuration

Hello Friends,
I'm using AppInsight in a .net core app and it`s not using the default configuration in appsettings.json:
"Logging": {
"LogLevel": {
"Default": "Debug"
}
}
The only way to make AppInsights log my Debug (ILogger.Debug) call is forcing app insights to log Debug:
"Logging": {
"LogLevel": {
"Default": "Debug"
},
"ApplicationInsights": {
"LogLevel": {
"Default": "Debug",
"Microsoft": "Warning"
}
}
},
My question would be "Why ApplicationInsight is not using the Logging.LogLevel.Default" settings in order to log events?"
Thanks a lot

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

ID: b09a09da-72ae-d5c0-fe25-69274054d302
Version Independent ID: 6911ee60-7c91-f024-8788-94939567d477
Content: Explore .NET trace logs with ILogger - Azure Application Insights - Azure Monitor
Content Source: articles/azure-monitor/app/ilogger.md
Service: azure-monitor
Sub-service: application-insights
GitHub Login: @mrbullwinkle
Microsoft Alias: mbullwin

@leofmoura Thanks for your comment! We will review and provide an update as appropriate.

@leofmoura  Application Insights logging provider does not inherit from the top-level logging level/category. . This is intentional and by design as Application Insights is a paid service, and we wanted to only sent Warning or above by default. Only way to change is by explicit override by user.
For more information, kindly check this issue #52657.

Assigning to content author @mrbullwinkle for review

Thanks for the explanation.

the doc is being updated to make this more obvious. Expect that doc change to be live tomorrow.

Please-close.

https://docs.microsoft.com/en-us/azure/azure-monitor/app/asp-net-core#how-do-i-customize-ilogger-logs-collection

closing out as engineering team has already addressed this request.

#please-close


Metadata table creation error is not reported

What version of Flyway are you using?
4.2.1
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin, SBT plugin, ANT tasks)
command-line
What database are you using (type & version)?
postgres 9.6
What operating system are you using?
Mac OsX
What did you do?
[rsabitov@rsabitov ~/tmp]$ cat 1.sh
flyway -url=jdbc:postgresql://localhost:5432/test -baselineOnMigrate=true -user=postgres -password=postgres  -locations=filesystem:./migrations migrate &
flyway -url=jdbc:postgresql://localhost:5432/test -baselineOnMigrate=true -user=postgres -password=postgres  -locations=filesystem:./migrations migrate &
wait
[rsabitov@rsabitov ~/tmp]$ cat migrations/V002__sleep.sql
SELECT pg_sleep(10);

What did you expect to see?
Error reporting why metadata table wasn't created by one of the concurrent flyways
What did you see instead?
[rsabitov@rsabitov ~/tmp]$ bash 1.sh
Flyway 4.1.2 by Boxfuse

Flyway 4.1.2 by Boxfuse

Database: jdbc:postgresql://localhost:5432/test (PostgreSQL 9.6)
Database: jdbc:postgresql://localhost:5432/test (PostgreSQL 9.6)
Successfully validated 1 migration (execution time 00:00.007s)
Successfully validated 1 migration (execution time 00:00.007s)
Creating Metadata table: "public"."schema_version"
Creating Metadata table: "public"."schema_version"
Successfully baselined schema with version: 1
Current version of schema "public": 1
Migrating schema "public" to version 002 - sleep
ERROR:
Unable to check whether table "public"."schema_version" exists
--------------------------------------------------------------
SQL State  : 25P02
Error Code : 0
Message    : ERROR: current transaction is aborted, commands ignored until end of transaction block

Successfully applied 1 migration to schema "public" (execution time 00:10.091s).

The error produced by this code in flyway:
    protected boolean doExists() throws SQLException {
        return jdbcTemplate.queryForBoolean("SELECT EXISTS (\n" +
                "   SELECT 1\n" +
                "   FROM   information_schema.tables \n" +
                "   WHERE  table_schema = ?\n" +
                "   AND    table_name = ?\n" +
                ")", schema.getName(), name);
    }

The reason why the error thrown is not related to table creation is in org.flywaydb.core.internal.metadatatable.MetaDataTableImpl#createIfNotExists. There's a cycle where flyway checks that table doesn't exist, then tries to create it but any errors got swallowed first 9 retries. However, as the transaction is tainted on the first error, the second check fails with the error mentioned before.

Thanks for investigating!

I've found this error today too working with RedShift, and Flyway 4.2.0 (Which makes sense, as RedShift is Postgresql 8-compatible).

Could you share a set of minimal migration files that reproduce this issue?

We have now made the schema_version table creation more explicit and move it before the transaction creation for PostgreSQL and Redshift. This should eliminate the tainted transaction issue altogether.