Cancel Observation Test case commands are not working in DEVKIT

Steps to reproduce issue
1.Send Observation  and Notification test command from server.
2.Observe that once the observation and notification commands are set on the DEVKIT
3. Try to send 'Cancel observation command'
Actual Result
Cancel observation is not working on DEVKIT client, still DEVKIT responds with notifications.

Can you please provide the corresponding test case (version and best a copy or summary of what it does exactly)? At the moment, I do not know which cancellation you are using...

I hit this issue today. I am cancelling an observation by setting cancel in  "WriteAttributes". It keeps notifying after that. Cancel works fine only if I sent RST on a notification.

How do you cancel with a WriteAttributes? Cancellation requires a CoAP GET request with Observe=1.

Hi Matthias,
My bad.. I got mislead by a cancel() method in writeattributes class. I will go and implement GET with observe=1. I hope devkit handles GET with observe=1. if that works, you should close this issue.

I realized that older version of lwm2m spec had WriteAttributes with Cancel will actually cancel an observation. It has been changed to CoAP get with observe=1. I had this code working with a few clients in 2014/2015 Test Fests


Move Spark-on-K8s-operator repository to Kubeflow

Based on the discussions in https://github.com/kubeflow/community/issues/648 and https://github.com/kubeflow/community/pull/672, there is a strong interest in the Kubeflow community in pushing the Spark-on-k8s-operator forward, contributing new features and continuing with its maintenance. Given the slow down under the current org structure, the project and its users will greatly benefit from the expanded, vendor-neutral community where people from both Google and other companies can easily contribute.
cc: @andreyvelich @vara-bonthu @yuchaoran2011

I would prefer to have an independent project outside of Kubeflow's influence

@vgkowski What are your concerns regarding Kubeflow?

@mwielgus I strongly agree with you, for the community interest. It's almost half a year that this repo does not release any new version.

The repository has been moved to Kubeflow, and this issue can now be marked as resolved.


TypeError: reactHookForm.useFormState is not a function

Hey, after installing @hookform/devtools I encountered into this error: "TypeError: reactHookForm.useFormState is not a function"
This is the error on the website:
9 | };
10 |
11 | const Header = ({ setVisible, control }: Props) => {

12 |   const { isValid } = useFormState({
13 |     control,
14 |   });

below is my code:
import { DevTool } from "@hookform/devtools";  return ( <>       <form         onSubmit={handleSubmit(onSubmit)}         className="h-100 d-flex flex-column"       >
           {inputs.map((input) => {             return (
                 <CustomInput                   register={register}                   control={control}                   error={errors[input.name]}                   watch={watch}                   formState={formState}                   defaultValues={input.defaultValues}                   setValue={setValue}                   {...input}                 />
             );           })}

           <button type="submit" className="btn btn-primary">             Submit           </button>
       </form>       <DevTool control={control} />     </> );
Thanks :)

Which version are you using? I mean both react hook form and dev tool, latest version is a made for V7 hook form.

@bluebill1049 can we use dev-tool with v6, I can not upgrade to v7. For v6, I am getting the above error.

@bluebill1049 can we use dev-tool with v6, I can not upgrade to v7. For v6, I am getting the above error.

I believe u can use with the old version.


Deploy Service Fabric Task

There are a 75% chance that this step fails with error Object Closed when copying application to image store.
Please fix it

Could you please provider more information about your project, the settings you are using, and the full output of the error? I have not seen anything like this with my own deployments.

@eliasnawfal I am closing this issue as there is no activity. Please re-activate with more details if you are still facing this problem.


[runtime] add context-sharing across chats with same tag

After implementing tags in #5, we should add context sharing  where the chat can see (up to a certain length) all of the content  with the same tag, concatenated.

There may need to be token limits that we impose on context variable. https://stackoverflow.com/questions/70060847/how-to-work-with-openai-maximum-context-length-is-2049-tokens

In the end, we needed to stack the prior context onto the new question, per https://community.openai.com/t/how-do-you-maintain-historical-context-in-repeat-api-calls/34395/2.


Always encountering [dev.flutter.pigeon.path_provider_android.PathProviderApi.getApplicationDocumentsPath"., null, null)] error

Steps to reproduce
1
Expected results
1
Actual results
Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!
Launching lib\main.dart on M2011K2C in debug mode...
Running Gradle task 'assembleDebug'...
SEVERE: ================================================================================
SEVERE: Cargokit BuildTool failed with error:
SEVERE: --------------------------------------------------------------------------------
SEVERE: ClientException with SocketException: 信号灯超时时间已�?
SEVERE:  (OS Error: 信号灯超时时间已�?

D:\flutter\bin\flutter.bat doctor --verbose
Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!
[√] Flutter (Channel stable, 3.24.3, on Microsoft Windows [版本 10.0.22631.4391], locale zh-CN)
    • Flutter version 3.24.3 on channel stable at D:\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 2663184aa7 (6 weeks ago), 2024-09-11 16:27:48 -0500
    • Engine revision 36335019a8
    • Dart version 3.5.3
    • DevTools version 2.37.3
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at D:\AndroidSDK\SDK14.0
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = D:/AndroidSDK/SDK14.0
    • Java binary at: D:\AndroidStudio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-b2043.56-10550314)
    • All Android licenses accepted.

[X] Chrome - develop for the web (Cannot find Chrome executable at .\Google\Chrome\Application\chrome.exe)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.9.6)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.9.34728.123
    • Windows 10 SDK version 10.0.22621.0

[√] Android Studio (version 2023.1)
    • Android Studio at D:\AndroidStudio
    • 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 17.0.7+0-b2043.56-10550314)

[√] IntelliJ IDEA Ultimate Edition (version 2023.3)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2023.3.4
    • Flutter plugin version 82.0.1
    • Dart plugin version 233.15325.11

[√] Connected device (5 available)
    • M2011K2C (mobile)            • 198e9c6       • android-arm64  • Android 13 (API 33)
    • sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64    • Android 12 (API 31) (emulator)
    • sdk gphone64 x86 64 (mobile) • emulator-5556 • android-x64    • Android 12 (API 31) (emulator)
    • Windows (desktop)            • windows       • windows-x64    • Microsoft Windows [版本 10.0.22631.4391]
    • Edge (web)                   • edge          • web-javascript • Microsoft Edge 130.0.2849.46

[√] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.
Process finished with exit code 0

I/flutter (22406): PlatformException(channel-error, Unable to establish connection on channel: "dev.flutter.pigeon.path_provider_android.PathProviderApi.getApplicationDocumentsPath"., null, null)

Code sample
Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
[Paste your output here]

Hi @ddxl123, please provide a complete minimal reproducible code sample without any third party packages so that we can properly investigate this.
Please also provide the version of path_provider & path_provider_android you're using.
Thank you

Hi @ddxl123, please provide a complete minimal reproducible code sample without any third party packages so that we can properly investigate this.
Please also provide the version of path_provider & path_provider_android you're using.
Thank you

path: ^1.9.0
path_provider: ^2.1.4
path_provider_android: ^2.2.12
package_info_plus: ^8.0.2

I cannot reproduce this problem. It occurs sporadically and I don't know under what circumstances it will return to normal. I am on the Chinese network. However, whether there is a proxy or not, it occurs sporadically. But once it occurs, it is fatal and will lead to the inability to use functions such as PackageInfo.fromPlatform() and getApplicationDocumentsPath().
Launching lib\main.dart on M2011K2C in debug mode...
Running Gradle task 'assembleDebug'...
SEVERE: ================================================================================
SEVERE: Cargokit BuildTool failed with error:
SEVERE: --------------------------------------------------------------------------------
SEVERE: ClientException with SocketException: 信号灯超时时间已�?
SEVERE:  (OS Error: 信号灯超时时间已�?
SEVERE: , errno = 121), address = github.com, port = 49704, uri=https://github.com/irondash/irondash/releases/download/precompiled_c8cbb92de1e8b3dc787cdf8cb122c753/aarch64-linux-android_libirondash_engine_context_native.so.sig
SEVERE: --------------------------------------------------------------------------------
SEVERE: #0      IOClient.send (package:http/src/io_client.dart:119:7)
SEVERE: <asynchronous suspension>
SEVERE: #1      BaseClient._sendUnstreamed (package:http/src/base_client.dart:93:32)
SEVERE: <asynchronous suspension>
SEVERE: #2      _withClient (package:http/http.dart:166:12)
SEVERE: <asynchronous suspension>
SEVERE: #3      ArtifactProvider._get (package:build_tool/src/artifacts_provider.dart:165:16)
SEVERE: <asynchronous suspension>
SEVERE: #4      ArtifactProvider._tryDownloadArtifacts (package:build_tool/src/artifacts_provider.dart:192:23)
SEVERE: <asynchronous suspension>
SEVERE: #5      ArtifactProvider._getPrecompiledArtifacts (package:build_tool/src/artifacts_provider.dart:133:11)
SEVERE: <asynchronous suspension>
SEVERE: #6      ArtifactProvider.getArtifacts (package:build_tool/src/artifacts_provider.dart:54:20)
SEVERE: <asynchronous suspension>
SEVERE: #7      BuildGradle.build (package:build_tool/src/build_gradle.dart:32:23)
SEVERE: <asynchronous suspension>
SEVERE: #8      BuildGradleCommand.runBuildCommand (package:build_tool/src/build_tool.dart:62:5)
SEVERE: <asynchronous suspension>
SEVERE: #9      BuildCommand.run (package:build_tool/src/build_tool.dart:34:5)
SEVERE: <asynchronous suspension>
SEVERE: #10     CommandRunner.runCommand (package:args/command_runner.dart:212:13)
SEVERE: <asynchronous suspension>
SEVERE: #11     runMain (package:build_tool/src/build_tool.dart:248:5)
SEVERE: <asynchronous suspension>
SEVERE: --------------------------------------------------------------------------------
SEVERE: BuildTool arguments: [build-gradle]
SEVERE: ================================================================================
SEVERE: ================================================================================
SEVERE: Cargokit BuildTool failed with error:
SEVERE: --------------------------------------------------------------------------------
SEVERE: ClientException with SocketException: 信号灯超时时间已�?
SEVERE:  (OS Error: 信号灯超时时间已�?

[GETX] Instance "GlobalLogic" has been created
[GETX] Instance "GlobalLogic" has been initialized
[GETX] Instance "GetMaterialController" has been created
[GETX] Instance "GetMaterialController" has been initialized
[GETX] GOING TO ROUTE /home
[GETX] Instance "HomeLogic" has been created
[GETX] Instance "HomeLogic" has been initialized
W/OnBackInvokedCallback(10515): OnBackInvokedCallback is not enabled for the application.
W/OnBackInvokedCallback(10515): Set 'android:enableOnBackInvokedCallback="true"' in the application manifest.
E/libEGL  (10515): pre_cache appList: ,,
E/flutter (10515): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method getAll on channel dev.fluttercommunity.plus/package_info)
E/flutter (10515): #0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:332:7)
E/flutter (10515): <asynchronous suspension>
E/flutter (10515): #1      MethodChannel.invokeMapMethod (package:flutter/src/services/platform_channel.dart:534:43)
E/flutter (10515): <asynchronous suspension>
E/flutter (10515): #2      MethodChannelPackageInfo.getAll (package:package_info_plus_platform_interface/method_channel_package_info.dart:13:17)
E/flutter (10515): <asynchronous suspension>
E/flutter (10515): #3      PackageInfo.fromPlatform (package:package_info_plus/package_info_plus.dart:80:26)
E/flutter (10515): <asynchronous suspension>
E/flutter (10515): #4      LocalInstance._initAppInfo (package:aaa_memory/global/local_instance.dart:75:19)
E/flutter (10515): <asynchronous suspension>
E/flutter (10515): #5      LocalInstance.init (package:aaa_memory/global/local_instance.dart:34:5)
E/flutter (10515): <asynchronous suspension>
E/flutter (10515): #6      GlobalLogic._futureInit (package:aaa_memory/global/global_logic_state/logic.dart:27:5)
E/flutter (10515): <asynchronous suspension>
E/flutter (10515):
D/long.aaa_memory(10515): MiuiProcessManagerServiceStub setSchedFifo

Hi @ddxl123, how do you build your app? Do you have some intermediary tool that runs some processes before flutter starts?
Do you get this issue with a newly created flutter app?

Hello! Got the same exception but only on Xiaomi device.
I/flutter (23791): PlatformException(channel-error, Unable to establish connection on channel: "dev.flutter.pigeon.path_provider_android.PathProviderApi.getApplicationDocumentsPath"., null, null) I/flutter (23791): #0      PathProviderApi.getApplicationDocumentsPath (package:path_provider_android/messages.g.dart:148:7) I/flutter (23791): <asynchronous suspension> I/flutter (23791): #1      getApplicationDocumentsDirectory (package:path_provider/path_provider.dart:121:24)
[✓] Flutter (Channel stable, 3.22.2, on macOS 15.0.1 24A348 darwin-arm64, locale fr-FR)
• Flutter version 3.22.2 on channel stable at /Users/dd/fvm/versions/3.22.2
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 761747bfc5 (5 months ago), 2024-06-05 22:15:13 +0200
• Engine revision edd8546116
• Dart version 3.4.3
• DevTools version 2.34.3
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
• Android SDK at /Users/dupuisdavid/Library/Android/sdk
• Platform android-35, build-tools 35.0.0
• ANDROID_HOME = /Users/dd/Library/Android/sdk
• ANDROID_SDK_ROOT = /Users/dupuisdavid/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 16B40
• CocoaPods version 1.15.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2024.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 17.0.11+0-17.0.11b1207.24-11852314)
[✓] IntelliJ IDEA Ultimate Edition (version 2024.2.3)
• IntelliJ at /Applications/IntelliJ IDEA.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.95.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.100.0
[✓] Connected device (5 available)
• 21081111RG (mobile)             • mbr8zt4xvoprprqc      • android-arm64  • Android 13 (API 33)
• sdk gphone64 arm64 (mobile)     • emulator-5554         • android-arm64  • Android 13 (API 33) (emulator)
• macOS (desktop)                 • macos                 • darwin-arm64   • macOS 15.0.1 24A348 darwin-arm64
• Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin         • macOS 15.0.1 24A348 darwin-arm64
• Chrome (web)                    • chrome                • web-javascript • Google Chrome 130.0.6723.117
! Error: Browsing on the local area network for iPhone de iPhone12. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources
• All expected network resources are available.
• No issues found!

path_provider: ^2.1.3
path: ^1.9.0

Hi @dupuisdavid, do you only get this issue when you try to call getApplicationDocumentsDirectory  or do you get this with other path_provider methods as well?

hello @danagbemava-nc we got the same exception but only on Xiaomi device.
I think other libraries are affected as well
I/flutter (16849): ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (16849): │
I/flutter (16849): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
I/flutter (16849): │ #0   PathProviderApi.getApplicationDocumentsPath (package:path_provider_android/messages.g.dart:86:7)
I/flutter (16849): │ #1   <asynchronous suspension>
I/flutter (16849): │ #2   getApplicationDocumentsDirectory (package:path_provider/path_provider.dart:121:24)
I/flutter (16849): │ #3   <asynchronous suspension>
I/flutter (16849): │ #4   BaseLog._initGather (package:baselog/src/base_log.dart:94:27)
I/flutter (16849): │ #5   <asynchronous suspension>
I/flutter (16849): │ #6   BaseLog._init (package:baselog/src/base_log.dart:90:5)
I/flutter (16849): │ #7   <asynchronous suspension>
I/flutter (16849): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
I/flutter (16849): │ PlatformException(channel-error, Unable to establish connection on channel., null, null)
I/flutter (16849): └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (16849): ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (16849): │
I/flutter (16849): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
I/flutter (16849): │ #0   MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:332:7)
I/flutter (16849): │ #1   <asynchronous suspension>
I/flutter (16849): │ #2   MethodChannel.invokeMapMethod (package:flutter/src/services/platform_channel.dart:534:43)
I/flutter (16849): │ #3   <asynchronous suspension>
I/flutter (16849): │ #4   MethodChannelPackageInfo.getAll (package:package_info_plus_platform_interface/method_channel_package_info.dart:13:17)
I/flutter (16849): │ #5   <asynchronous suspension>
I/flutter (16849): │ #6   PackageInfo.fromPlatform (package:package_info_plus/package_info_plus.dart:41:26)
I/flutter (16849): │ #7   <asynchronous suspension>
I/flutter (16849): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
I/flutter (16849): │ MissingPluginException(No implementation found for method getAll on channel dev.fluttercommunity.plus/package_info)
I/flutter (16849): └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (16849): ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (16849): │
I/flutter (16849): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
I/flutter (16849): │ PlatformException(channel-error, Unable to establish connection on channel: "dev.flutter.pigeon.shared_preferences_android.SharedPreferencesApi.getAll"., null, null)

Hi @ganjiajun-ola, what versions of android are they running and what version of flutter are you using?

hello @danagbemava-nc the android version that they are running are MIUI <IP_ADDRESS> which is Android 11 RP1A.200720.011 and my version of flutter is Flutter 3.22.3-0.0.pre.2 Tools • Dart 3.4.3 • DevTools 2.34.3

found the issue already. It's because of the mmkv version 2.0.1 which is causing the issue, downgrading the version of mmkv would resolve my issue

similar issue which was resolved as well, can take a look
https://github.com/flutter/flutter/issues/153683

@dupuisdavid, @ddxl123 are you using mmkv plugin in your apps as well? Have you upgraded your gradle syntax to the latest?


dev: disable pager on devcontainer start

dev: disable pager on devcontainer start
dev: disable pager on devcontainer start

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

Current dependencies on/for this PR:

main

PR #182

PR #183

PR #184

PR #185   👈

This stack of pull requests is managed by Graphite.


tf.while_loop

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Colab
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: Colab
TensorFlow installed from (source or binary): Colab
TensorFlow version (use command below): 1.11.0
Python version: 3.6
Bazel version (if compiling from source): Colab
GCC/Compiler version (if compiling from source): Colab
CUDA/cuDNN version: Colab
GPU model and memory: Colab
Exact command to reproduce: Colab

Describe the problem
The tf.while_loop no longer works. I have also checked the code from the official documentation.
I ran away from the eager mode issues and I found myself writing nonsense code:
tf.cond
tf.while_loop
tf.Print
tf.gather
tf.scatter_update
At the end of the day, nothing works properly neither the graph mode nor the eager one.
Source code
import tensorflow as tf

n = 10000
x = tf.constant(list(range(n)))
c = lambda i, x: i < n
b = lambda i, x: (tf.Print(i + 1, [i]), tf.Print(x + 1, [i], "x:"))
i, out = tf.while_loop(c, b, (0, x))
with tf.Session() as sess:
    print(sess.run(i))  # prints [0] ... [9999]

    # The following line may increment the counter and x in parallel.
    # The counter thread may get ahead of the other thread, but not the
    # other way around. So you may see things like
    # [9996] x:[9987]
    # meaning that the counter thread is on iteration 9996,
    # while the other thread is on iteration 9987
    print(sess.run(out).shape)

logs
InvalidArgumentErrorTraceback (most recent call last)
 in ()
7 i, out = tf.while_loop(c, b, (0, x))
8 with tf.Session() as sess:
----> 9     print(sess.run(i))  # prints [0] ... [9999]
10
11     # The following line may increment the counter and x in parallel.
/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.pyc in run(self, fetches, feed_dict, options, run_metadata)
885     try:
886       result = self._run(None, fetches, feed_dict, options_ptr,
--> 887                          run_metadata_ptr)
888       if run_metadata:
889         proto_data = tf_session.TF_GetBuffer(run_metadata_ptr)
/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.pyc in _run(self, handle, fetches, feed_dict, options, run_metadata)
1108     if final_fetches or final_targets or (handle and feed_dict_tensor):
1109       results = self._do_run(handle, final_targets, final_fetches,
-> 1110                              feed_dict_tensor, options, run_metadata)
1111     else:
1112       results = []
/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.pyc in _do_run(self, handle, target_list, fetch_list, feed_dict, options, run_metadata)
1284     if handle is None:
1285       return self._do_call(_run_fn, feeds, fetches, targets, options,
-> 1286                            run_metadata)
1287     else:
1288       return self._do_call(_prun_fn, handle, feeds, fetches)
/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.pyc in _do_call(self, fn, *args)
1306           self._config.experimental.client_handles_error_formatting):
1307         message = error_interpolation.interpolate(message, self._graph)
-> 1308       raise type(e)(node_def, op, message)
1309
1310   def _extend_graph(self):
InvalidArgumentError: Input 1 of node while/Merge_3 was passed float from while/NextIteration_3:0 incompatible with expected int32.

@martinwicke are you sure that the version 1.11 is a stable one?

I am really disappointed. Lots and lots of bugs.

Opened a colab and runs your code. It works just fine.

How come?


compare initial sensitivity studies: Southall et al (2023), Lettrich et al (2023), Butt et al (2022)

Compare initial studies with first two focused on marine mammals (and turtles) and notion of general framework (3rd):

Southall et al (2023)Vulnerability index to scale effects of offshore renewable energy on marine mammals and sea turtles off the U.S. West Coast (VIMMS)

Mysticetes
Odontocetes
Pinnipeds
Sea turtles

Lettrich et al (2023) Vulnerability to Climate Change of United States Marine Mammal Stocks in the Western North Atlantic, Gulf of Mexico, and Caribbean. PLOS ONE

S1 Dataset. Raw attribute and factor scores
...

Butt et al (2022) A trait-based framework for assessing the vulnerability of marine species to human impacts. EcoSphere

github.com/mapping-marine-spp-vuln/spp_vuln_framework

Southall et al (2023)
https://marinesensitivity.org/workflows/ingest_Southall-2023.html
Space

Figure 1: Spatial variation in species vulnerability by latitudinal zone and depth regime.
Time

Figure 2: Temporal variation in species vulnerability by oceanographic season.
Taxa
table(d$sp_code)

            Bairds         BLUE WHALE       BRYDES WHALE       BTLN Coastal
                 3                  3                  3                  3
     CA N FUR SEAL        CA Sea Lion   CAmerDPSHUMPBACK     DALLS PORPOISE
                 3                  3                  3                  3
      ENP FUR SEAL     ENP GRAY WHALE          FIN WHALE              GREEN
                 3                  3                  3                  3
GUADALUPE FUR SEAL       Harbor OR WA    HARBOR PORPOISE     Harbor Seal CA
                 3                  3                  5                  3
   HI DPS_HUMPBACK         K WHALE OS        K WHALE Res         K WHALE Tr
                 3                  3                  3                  3
          Lags WSD            LB COMN        LEATHERBACK          Liso NRWD
                 3                  3                  3                  3
        LOGGERHEAD    MexDPS_HUMPBACK        MINKE WHALE           N E Seal
                 3                  3                  3                  3
      OLIVE RIDLEY      PYGMY & DWARF        RIGHT WHALE              Risso
                 3                  3                  3                  3
   S-F PILOT WHALE            SB COMN          SEI WHALE        SPERM WHALE
                 3                  3                  3                  3
  STELLER SEA LION     WNP GRAY WHALE Ziphius-Mesoplodon
                 3                  3                  3

                 sp_stock
sp_code           Monterey Bay Morro Bay N CAL- S OR N OR-WA coast SF-Rus River
  HARBOR PORPOISE            1         1           1             1            1

TODO: next pivot longer all values from the sheets read in, e.g.:


Add SimplifiedIfReturnFixer

-if ($foo) { return true; } return false;
+return $foo;

[x] Add SimplifiedIfReturnFixer
[x] ~Run after BracesFixer~ BracesFixer has the lowest priority, can't do this. The user must run PHP-CS-Fixer twice
[x] Run after NoSuperfluousElseifFixer
[x] Run before NoMultilineWhitespaceBeforeSemicolonsFixer
[x] Run before NoSinglelineWhitespaceBeforeSemicolonsFixer

What if my PHP code looks like this?
$foo = 'This is it.';

if ($foo) {
    return true;
}

return false;

The bool return type will be a string with this fixer.

I'm intended to fix it like:
return !!($foo);

I think most would prefer return (bool) $foo?

I tought some type couldn't be explicitly converted to boolean, but after research it seems all can, I'll go with the (bool)

BracesFixer has the lowest priority, can't do this. The user must run PHP-CS-Fixer twice

wow wow wow, what's going on here? it's not an option!

@keradus consider this code:
if ($foo)
   return true;
return false;

To be fixed in:
return (bool) $foo;

And the following fixers enabled:

BracesFixer (priority: -25)
SimplifiedIfReturnFixer (current priority: 1)
NoMultilineWhitespaceBeforeSemicolonsFixer (priority: 0)

Since NoMultilineWhitespaceBeforeSemicolonsFixer runs before BracesFixer, and since SimplifiedIfReturnFixer must run NoMultilineWhitespaceBeforeSemicolonsFixer, how can you fix the code in one step only?

just a note:

The user must run PHP-CS-Fixer twice

for me, this is a blocker for this PR.
we need to figure out how to deal with it.

how can you fix the code in one step only?

please, start with putting the issue down to integration test, we would know what is expected output (regardless of amount of executions), and then we can adjust the code to pass in single execution

@Slamdunk this PR stalled, any chance you can work on it? Do you need/want some help?

Actually only the integration tests against BraceFixer are missing: re-reading this PR now I would go for fixing cases without braces too, so we don't have to integrate with BraceFixer at all.
I would love to finish the work, but due to family commitments I cannot guarantee any date soon.
Btw I'll rebase this branch now so if you want you can push a PR against my fork without opening a new PR :+1:

@julienfalque PR rebased, first-post task list updated: https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/3253#issue-152441735

Ok, everything done.
The fixer now is independent from BraceFixer and one run is enough for the final form.
A side note: the parenthesis of the if statement are preserved because:

There already is a separate fixer for those who don't want them, NoUnneededControlParenthesesFixer
if ($foo && $bar) return true; return false; fixed without parenthesis would result in return (bool) $foo && $bar; and so the (bool) typecast would be applied to the first argument instead the whole sentence; it would be harmless but not very clear
It allows us to fix the negative sentences with the ! exclamation mark and without the (bool) typecast


Improve using of ASan and TSan in CMake build

Search before asking

[X] I had searched in the issues and found no similar issues.

Motivation
As discussed in #586, we can improve using of ASan and TSan in the CMake build.
Solution
No response
Are you willing to submit a PR?

[X] I'm willing to submit a PR!

cool, thanks, l like this idea. And we can also run tests with ASan and TSan in daily CI.


Add --quiet / -q flag to command execution

Description
Sometimes developers choose to not see all logs/output of your command and just see success or failure as the outcome. Hence adding --quite or -q flag to 1build command execution will result in just executing the command but not showing the entire output of it.
Acceptance Criteria

Ability to pass quiet or -q flag to command execution.
ex - bash             1build test --quiet             1build test -q
If flag present - then just print SUCCESS (if exit code of the command is 0)
If exit code is not zero - print FAILURE with exit code

Shouldn't it be --quiet instead of --quite?

@GamerSenior Indeed. updated issue.
Thanks for heads-up

Hi Gopinath,
I'd like to work on this issue.

@anshulxyz Sure. go for it.

@anshulxyz I have updated the ACs for the issue. Please revisit them once.

@gopinath-langote noted

@gopinath-langote is there any style guide or best practices you expect or follow for the repo?

@anshulxyz You do not have any special guidelines yet.
Some automatic checks will happen on each PR - that is it.
While working on code - you will understand the structure.
– In longer run, we should start building guidelines.

@anshulxyz – any progress on the issue - Let me know if you need any help from members!

I will work on it, this weekend

@gopinath-langote  can you please assign this to me ?

@ashupatil96 Sure. Go ahead.


server SocketIOClient broadcast one message but sometimes client receive so many message

server SocketIOClient broadcast one message but sometimes client receive so many message, is this a bug?how can i fix it, thanks
redisson 2.0.0
netty-socketio 1.7,7

If you look at the code in https://github.com/mrniko/netty-socketio/blob/netty-socketio-1.7.7/src/main/java/com/corundumstudio/socketio/BroadcastOperations.java, you can see that events are dispatched too all clients regardless of in which room they are. I think this might be a bug.

I had solved this problem by upgrading to netty-socketio 1.7.12 and redisson 2.4.0. Then it seems ok now


Towards creating a documenation page

We talked in the Nov. 2024 meeting about creating screenshots after importing the .eln to showcase that importing / interoperability works. (An example of all imports passing the github actions is shown for PASTA)
Here a suggestion of how that could be presented:

using the documentation framework and sphinx
each importing partner puts their screenshots and an index file into a separate folder (like the example folder for exported .eln)
a link is placed in the central index (which can have more information: specification ...)

To build from the repository directory (the one with .git)

make -C docs html
firefox docs/build/html/index.html

The build and publication process can be created as github action, but that would need to be discussed.
What do you think?

@dalito Thanks for feedback. Did that update


📈 Implement custom mint module

📝 Description
The actual cosmos-sdk mint module doesn't fit our needs concerning the token distribution. So re-implement the mint module with our custom needs.
⚙ Genesis config
Here the initial genesis config need based on the defined tokenomics.
"mint": {
      "minter": {
        "inflation": "0.150000000000000000",
        "annual_provisions": "0.000000000000000000",
        "target_supply": "0"
      },
      "params": {
        "mint_denom": "uknow",
        "annual_reduction_factor": "0.200000000000000000",
        "blocks_per_year": "6311520"
      }
    }

🧮 Calculation
The initial inflation is set to 15%, annual_provisions and target_supply will set at the beginning of the chain (on the first block). It's based on the initial total supply. For example, with a total supply of 200M token, annual_provisions will be configured to 30M and target_supply 230M. (https://github.com/okp4/okp4d/blob/feat/mint-module/x/mint/abci.go#L22-L26)
At the end of the year (the last block of the year, to be more precise), due to rounding imprecision, if the distributed tokens for the last block of the year added with the actual tokens total supply is bigger than the target_supply, only the difference to reach the target_supply will be minted. Conversely, in some case, due to rounding also, the target_supply is not reached at the last block, but at the next block. (https://github.com/okp4/okp4d/blob/ec5f81b1547d3e6f25443881ca4549738fbf13fc/x/mint/types/minter.go#L61-L73)
The new inflation, annual_provisions and target_supply is recalculated at the next block after the block that reach the target_supply. To calculate the new inflation, get the current inflation multiplied by (1 - annual_reduction_factor), then the new annual_provisions and target_supply is deducted  based on the current total supply (that is the old target_supply) (https://github.com/okp4/okp4d/blob/feat/mint-module/x/mint/abci.go#L30-L35)
🦅 Migration
A migration will be necessary since store keeper doesn't contain all necessary new genesis key / value. To avoid worsening the readability (already very complicated) of this PR, the migration will be the subject of a next PR.

@bdeneux Would it be possible for you to update (rebase) this work on the basis of #223 once merged? :pray:

:tada: This PR is included in version 3.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


[PUPIL-759] - Cycle 1 support

Richard knows how to test the actually functionality, and has done the majority of that already.
Devs: Apologies this is a big one to review, it was a bit unavoidable with the way things evolved.
Due to it's size I think it's acceptable to scan for any obvious mistakes or anti-patterns, but I don't think it's required to pickup on any complex mistakes, as that would be very difficult in this instance. I think Richard has the functionality covered also.
Description
This PR makes cycle 1 data available in the pupil browse experience. More info about the implementation, testing and AC can be found on the ticket
How to test

Go to https://deploy-preview-2479--oak-web-application.netlify.thenational.academy/pupils/years

See ticket for details
Checklist

[x] Added or updated tests where appropriate
[x] Manually tested across browsers / devices
[x] Considered impact on accessibility
[ ] Design sign-off
[ ] Approved by product owner
[x] Does this PR update a package with a breaking change

@RBrownsett - For info - I've updated so that lessons now work again. I also think this branch is now pretty much stable/done, I just need to resolve the security hotspot issue, which shouldn't effect functionality 🤞.

@BTitterington looking good - did we say that for combined science year 10/11 we would show all (new and old)? At the moment it shows only the new units? Same for Biology and Chemistry.

@RBrownsett Yeah, I did just realise that after posting also :)
I'm looking at it now to see if it's simple. So code may change a bit more sorry.

Small bug on the tier programme page where the tooltip appears with a gap when opened:

:tada: This PR is included in version 1.458.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Bug with parsing iso formats

Description of the Issue and Steps to Reproduce:
We came across this issue while using the diff method with iso values.
We encountered negative values without understanding why it would happen.
After some digging we found that when using iso years, the parser messes up the date.
You can look up the code here :
import moment from 'moment'

const astr = '2018/06'
const bstr = '2017/12'

const a = moment(astr, 'GGGG/MM')
const b = moment(bstr, 'GGGG/MM')
const _a = moment(astr, 'YYYY/MM')
const _b = moment(bstr, 'YYYY/MM')

console.log(a, b)
console.log(a.valueOf(), b.valueOf(), a - b)

console.log(_a, _b)
console.log(_a.valueOf(), _b.valueOf(), _a - _b)

Output:
moment("2018-06-01T00:00:00.000") moment("2018-12-01T00:00:00.000")
1527804000000<PHONE_NUMBER>000 -15814800000
moment("2018-06-01T00:00:00.000") moment("2017-12-01T00:00:00.000")
1527804000000<PHONE_NUMBER>000<PHONE_NUMBER>0

Environment:
Everywhere we tried (chrome, repl.it, firefox)
Other information that may be helpful:
Here is the environment we have when running the code:
Wed Dec 12 2018 19:27:56 GMT+0100 (Central European Standard Time)
12/12/2018, 19:27:56
-60
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36
2.22.2

I think this is an invalid use of GGGG: you're using the ISO format for Week Year, but haven't specified a full date, or a week number, so moment doesn't know which week you're referring to.
How would you define the behaviour for this?

Oh... I get it now. I think we should make that a lot more obvious in the docs. People don't automatically assume they can't use the year without the weeks.
Our behavior comes from the simple misunderstanding that these were ISO year that could work with ISO weeks but it never came across our mind that I should only be used with these weeks.


Spectral recycler

hello,
new device https://innovative-technology.com/products/products-main/901-nv4000 is now available, with new commands and events. Is there some library update planned?
I tried some changes, but for this new device I have too much TIMEOUT responses while polling, and also device change status to DISABLED in some strange intervals, maybe because of timeouts.

@mathoso please try my for and tell if it helps
https://github.com/kybarg/encrypted-smiley-secure-protocol

@kybarg thank you, I already found @keepkey\encrypted-smiley-secure-protocol, which is working better, also I made some changes to work with Spectral device (adding some new commands, and events for smart emptying, repleniching, etc)


Postgresql volumeClaimTemplate is ArgoCD incompatible

Describe the bug
Deploying the chart results in VolumeClaim to be created from a template. ArgoCD complains about following issue:

Expected Behavior
Chart doesn't use fields that are not admissible.
What are the steps to reproduce this bug?
TBD
Versions of software used and environment

@tumido can I get more details on this issue? When I tried replicating this issue on a local argocd server hosted on openshift local, using the 2.11.4 chart, argocd doesn't seem to complain about anything?
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: janus-backstage
spec:
  destination:
    name: ''
    namespace: test
    server: 'https://api.crc.testing:6443'
  source:
    path: ''
    repoURL: 'https://janus-idp.github.io/helm-backstage'
    targetRevision: 2.11.4
    chart: backstage
    helm:
      valueFiles:
        - values.yaml
      parameters:
        - name: global.clusterRouterBase
          value: apps-crc.testing
        - name: upstream.backstage.image.tag
          value: next
  sources: []
  project: backstage-testing

The desired manifest for the volumeClaimTemplate seems to match the live manifest and I don't seem to see the issue shown in the screenshot for the issue.
Screencast from 2024-01-08 15-43-59.webm


Change text block name to rich_text

Notion API Version: 2022-02-22 has renamed the
property of their rich text blocks from "text" to "rich_text".
https://developers.notion.com/changelog/releasing-notion-version-2022-02-22

Can confirm this PR fixed the issue for me.


.on is not a function

This even occurs with the example provided. Copy and paste example into Runkit to replicate.

Fixed, please tell if does not work.

That worked! Great, thanks.


clasp-common-lisp: <IP_ADDRESS>81128 -> 1.0.0

clasp now builds successfully and can be run with iclasp-boehmprecise

Motivation for this change
clasp was broken
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

please ignore the last few commits, i'm trying to update from 1.0.0 to 2.1.0

Conflict is with a large Common Lisp refactoring which also bumps Clasp. Should this be rebased or closed?

closing


Use rb_iseqw_to_iseq to get iseq pointer

Using DATA_PTR is internal implementation details so we should not use it.
It should fix this issue: https://github.com/ruby/ruby/pull/10336#issuecomment-2021861692

Thanks!


[MB-5737] add cli to hide mtos

Description
This PR introduces a new command support-hide-mto to hide moves not using fake data
Reviewer Notes
Any reviewer that has a CAC can test this in experimental. Just let me know when you're ready to do so and I can deploy to experimental. Or alternatively, anyone else can also do this.
I added steps below on how to test both locally and on experimental
Setup
make db_dev_e2e_populate && make server_run

Locally
prime-api-client --insecure support-hide-non-fake-mtos

Experimental (once deployed https://github.com/transcom/mymove/wiki/deploy-to-experimental)
prime-api-client  --cac --hostname api.exp.move.mil --port 443  support-hide-non-fake-mtos | jq

Messages

:book:
:link: MB-5737

  Generated by :no_entry_sign: dangerJS against 8f6b2be8feb2a250835fe157dbc33b6a8b216909

Experimental (once deployed https://github.com/transcom/mymove/wiki/deploy-to-experimental)
prime-api-client  --cac --hostname api.exp.move.mil --port 443  support-hide-mtos | jq

Should this second command also be support-hide-non-fake-mtos vis support-hide-mtos?

Okay so I ran this in exp and had a failure I'll slack you the log trace. From what I can tell from the log trace pkg/handlers/supportapi/internal/payloads/model_to_payload.go line 39 is where the failure came from and seems to indicate that the ContractorID is nil for some of the records, which could be for some old data. Since this is likely true in staging as well I'm thinking we need to handle the error in the handler at least. What are your thoughts on this @pearl-truss ?

This is ready for review again. I updated the handler to nil check the ContractorID


Move repo to the getnelson organization

[ ] Update documentation
[ ] Remove all references to the old organization
[ ] What about artifact publishing? should we continue to publish under the io.verizon org. We don't actually use the JARs so that's something we should talk about.
[ ] What about the docker hub repository?
[ ] Moving the repo may or may not break the build (needs investigation)

I don't think it's wise to count on write access to Verizon's repositories after write access to the project is no longer strictly administered by Verizon.  This move implies repo moves in my mind.

Seems like checkboxes 1, 2, and 5 are done. Should talk about 3 and 4.. and we still have that Gitter move I assume the Gitter folks haven't responded to yet. Bah.
I'm inclined to agree with Ross which probably means we need to either register a domain or just use io.github.getnelson.


Better kernel for predictive engine

Implements part of #29

Use historical forecasting to tune the kernel choice
Change the kernel for this choice
The notebook got much longer to run: run only a shortened version

LGTM!


feat: add coroutine name/qualname and not-awaited warning

Needs #3540 and #3587 to be merged before.
The PR is based on #3540, it starts at 35f79d78, changes should be reviewed starting from this commit.

@wyfo if you can rebase this please I'll get around to reviewing as soon as possible after 👍


Improve error message when no items found to restore

Currently if we try to restore from an empty backup or if the user asks to restore an item not present in the backup, the error that they get is running restore: primary failure: running restore: producing collections to restore: no restore path given which is not very useful.
We should probably improve the situation here and let them know what the exact problem is (whether they are trying to restore an empty backup of if we were not able to find the item they requested in the backup) instead of throwing this generic error.

https://github.com/alcionai/corso/pull/3643

@neha-Gupta1 - can this be closed now? #3643 has merged


Probabilistic

Check ToDos/Queries in 01-test-time-dropout and create-dropout-ensemble.py

Wait, actually could you kill the computation, commit all your work and close everything you have running. This shouldn’t take that long, so I will have a look today.

On 27. Apr 2020, at 15:00, Sagar G<EMAIL_ADDRESS>wrote:
@sagar-garg commented on this pull request.
In nbs_probabilistic/create_dropout_ensemble.py https://github.com/raspstephan/WeatherBench/pull/4#discussion_r415790994:

#For Full Data
#NOTE: Always better to append in a list, rather than as numpy array. bcoz numpy array equires contiguous memory, so if you keep appending it would be slow. alternatively, pre-allocate an empty array. Current method: append to list--> convert to numpy array-->reshape.
func = K.function(model.inputs + [K.learning_phase()], model.outputs)
preds = []
counter=0
for X, y in dg_test:

   preds.append(np.array([np.asarray(func([X] + [1.]), dtype=np.float32).squeeze() for _ in

                         range(number_of_forecasts)]))

   print(counter)

   counter=counter+1

pred_ensemble = np.array(preds)

#reshaping. Double CHECK!
shp=pred_ensemble.shape
pred_ensemble=pred_ensemble.transpose(1,0,2,3,4,5).reshape(shp[1],-1,shp[-3],shp[-2],shp[-1])
I stopped the iteration for right now, since it didn't finish even in 3 hours. I'll leave it running tonight

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/raspstephan/WeatherBench/pull/4#discussion_r415790994, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVIM35OE3AUHKAPG4LILNTROV6V3ANCNFSM4MLYBEUQ.

I committed. You can check 01-test-time-dropout
On Mon, Apr 27, 2020 at 3:03 PM Stephan Rasp<EMAIL_ADDRESS>wrote:

Wait, actually could you kill the computation, commit all your work and
close everything you have running. This shouldn’t take that long, so I will
have a look today.

On 27. Apr 2020, at 15:00, Sagar G<EMAIL_ADDRESS>wrote:
@sagar-garg commented on this pull request.
In nbs_probabilistic/create_dropout_ensemble.py <
https://github.com/raspstephan/WeatherBench/pull/4#discussion_r415790994>:

#For Full Data
#NOTE: Always better to append in a list, rather than as numpy array.
bcoz numpy array equires contiguous memory, so if you keep appending it
would be slow. alternatively, pre-allocate an empty array. Current method:
append to list--> convert to numpy array-->reshape.
func = K.function(model.inputs + [K.learning_phase()], model.outputs)
preds = []
counter=0
for X, y in dg_test:
preds.append(np.array([np.asarray(func([X] + [1.]),
dtype=np.float32).squeeze() for _ in
range(number_of_forecasts)]))
print(counter)
counter=counter+1
pred_ensemble = np.array(preds)

#reshaping. Double CHECK!
shp=pred_ensemble.shape

pred_ensemble=pred_ensemble.transpose(1,0,2,3,4,5).reshape(shp[1],-1,shp[-3],shp[-2],shp[-1])

I stopped the iteration for right now, since it didn't finish even in 3
hours. I'll leave it running tonight
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <
https://github.com/raspstephan/WeatherBench/pull/4#discussion_r415790994>,
or unsubscribe <
https://github.com/notifications/unsubscribe-auth/AAVIM35OE3AUHKAPG4LILNTROV6V3ANCNFSM4MLYBEUQ
.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/raspstephan/WeatherBench/pull/4#issuecomment-619971951,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKRW6MOE6XEHBUL2LUNRYTDROV7CBANCNFSM4MLYBEUQ
.

--
Regards,
Sagar Garg

@raspstephan
create_dropout_ensemble.py works. prediction saved only for small data.
(forecasts=5, time= 2017-jan to 2017-march)
PC is out of space. Should I remove .zip files in data/Weatherbench/5.625deg ? Do you have them saved elsewhere? Would free up 100GB+ space.
in notebook2, tried implementing scores for tigge. Check comments.
Basically crps doesn't work for full data, I will try to send it in batches somehow.
Rank histogram might also be slow. takes 2-3 minutes for small data

Yes, feel free to delete the zip file. Ah and in tigge they are saving the geopotential height = geopotential / g. So just multiply the tigge values by 9.806.
But the results look a little weird. Let me know when you are done working on it and close your notebook. Then I will take a look and try to answer your questions.

I ran again with forecast size 20, 3 months data and corrected tigge values.
Still results look wrong. You can check. Also there is a new notebook 03
for dropout rates.
Now that I have space, should I run for size 100, and year=2017 now? It
will overwrite the files. So if you testing something right now, I'll wait.
On Mon, May 4, 2020 at 9:35 AM Stephan Rasp<EMAIL_ADDRESS>wrote:

Yes, feel free to delete the zip file. Ah and in tigge they are saving the
geopotential height = geopotential / g. So just multiply the tigge values
by 9.806.
But the results look a little weird. Let me know when you are done working
on it and close your notebook. Then I will take a look and try to answer
your questions.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/raspstephan/WeatherBench/pull/4#issuecomment-623305658,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKRW6MMUPX7OBGOLEIV2RIDRPZV2NANCNFSM4MLYBEUQ
.

--
Regards,
Sagar Garg

I won't be able to look at this until this afternoon or tomorrow, so please continue your experiments for now and just let me know once you are done.

I'm done. Also saved forecasts with 100 members.

Hi Sagar,
I am currently looking at the tigge evaluation. Would you mind closing your 02 notebook for now. I should be done in a few hours.

Sorry, I just noticed. I logged out now.
On Wed, May 6, 2020 at 10:48 AM Stephan Rasp<EMAIL_ADDRESS>wrote:

Hi Sagar,
I am currently looking at the tigge evaluation. Would you mind closing
your 02 notebook for now. I should be done in a few hours.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/raspstephan/WeatherBench/pull/4#issuecomment-624521074,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKRW6ML7YIFCS4IGJAAA7S3RQEP5XANCNFSM4MLYBEUQ
.

--
Regards,
Sagar Garg


Feature request: Vite support

Hi! I'm using your library as the layout engine for my Angular library to render nodes. Today, I updated the Angular version, which internally switched from Webpack to Vite. Unfortunately, this caused your library to stop working for me. :(
Here is an error:
"ESM integration proposal for Wasm" is not supported currently. Use vite-plugin-wasm or other community plugins to handle this. Alternatively, you can use '.wasm?init' or '.wasm?url'. See https://vitejs.dev/guide/features.html#webassembly for more details.
I'm not sure if there's anything you can do on your side to address this issue, but it seems that on my end, I can't modify the internal Vite configuration within Angular.

Hi @artem-mangilev check put this issue https://github.com/vizdom-dev/vizdom/issues/9

Yep, found the solution in https://github.com/vizdom-dev/vizdom/issues/9 that works for me, thanks! I'm using Angular 17.3.12


add(plugins): Tailwind CSS Claymorphism

Name
Link

Tailwind CSS Claymorphism plugin
https://github.com/dulltackle/tailwindcss-claymorphism

Tailwind CSS Claymorphism plugin adds clay utilities for creating claymorphism style.

[x] My item is in the right category
[x] My item is logically grouped below similar items
[x] My item's name and description respects the conventions of the list
[x] My item is awesome
[x] My item is in line with the Tailwind brand usage guidelines
[x] I have read and followed the contribution guidelines

Thanks!


Travis: nightly -> 7.2

nightly now points to 7.3-dev, no need to test it now; moved to 7.2

thanks


Update waf-faq.yml

Some minor edits and added clarifications regarding recommended approaches.

@vhorne
Can you review the proposed changes?
When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

#sign-off


Change the word

The word 'value' is confusing.  Under options the word value is used.  The a little further down the word is used again, but it is refering to the 'key' above.  Maybe change the 2nd one to 'defaultKey' ?
new DropdownQuestion({
  key: 'isRecyclable',
  label: 'Is Recyclable?',
  options: [
    {key: '0',  value: 'No'},
    {key: '1',  value: 'Yes'}
  ],
  value: '1',
  order: 12
}),

But it isn't really referring to the key above it only has the same value. I think the value makes a lot of sense here. Because the value in the options array refers to the value of the option and the value in the question refers to the current value.
I went with the value˛key because of consistency (and a bit less code in the component), it's the same key i use in every question.


request: is it possible to add the area/volume for each 2D/3D voronoi cell?

I have the voronoi cell information for scipy.spatial.Voronoi. But i have no idea of how to calculate the area/volume for each voronoi cell. Is it possible to add some calculations inside the function to do that?
Or any suggestion of how to get this information of the voronoi cell is welcome.
Thanks a lot!

I've been working on this with another postdoc in #7515. If you'd like to help with the effort / try the code/ provide feedback, this would be very welcome.
The code should already be in a decent state for handling the planar polygons from a 2D Voronoi diagram (calculating their surface areas), but it is not vectorized yet (you'd have to do one cell at a time). I / we hope to change this in the future to be faster / handle an array of cells.
For the volumes of cells from a 3D Voronoi diagram, I'd be tempted to exploit the fact that the cells should all be convex, and therefore scipy.spatial.ConvexHull volume attribute would likely be appropriate. I haven't thought about whether one could transplant the underlying volume calculation code directly to the Voronoi class for the 3d case, or if that is worth doing, but maybe. Otherwise, I guess you have to generate a hull object for every 3D Voronoi cell and then use the volume method from that, which may be rather wasteful.
Are there cases where the convex hull of a 3d Voronoi cell is not the same as the Voronoi cell itself? My intuition suggests 'no--' the convex polyhedra that are 3D Voronoi cells are valid convex hulls for the 3D vertices that define them so the same volume calculation applies. Maybe there's an exception I can't think of though.

Ongoing in gh-7515, so closing this issue


Added django.utils.functional.cached_classproperty

Added decorator cached_classproperty to django.utils.functional

Hi @chessmaster04
A few initial comments from me

I can't see a ticket on trac for this? This would be a new feature so would require a ticket.

https://code.djangoproject.com

It would require docs and tests

I'm not sure Django should include a small standalone class like this? What's the compelling case to include this in Django itself?

@chessmaster04 Thanks for this patch, see Simon's comment. Discussion on the DevelopersMailingList may also be required.

Hi @chessmaster04
A few initial comments from me

I can't see a ticket on trac for this? This would be a new feature so would require a ticket.

https://code.djangoproject.com

It would require docs and tests
I'm not sure Django should include a small standalone class like this? What's the compelling case to include this in Django itself?

Yes, It is a new feature.
Django has a lot of methods for caching, like cached_page and cached_property.
Сaching improves response times.
My task was as follows. I needed a class with static properties. And their values were calculated. Therefore, I used the classproperty decorator and since the calculations did not change while the program was running, I needed to cache them. Django has only cached_property, but my properies must be classproperty, so I needed create cached_classproperty.
What do you think about it?
Do I need create discussion on the DevelopersMailingList?
Thanks!

Closing per ticket.


python: No cross-language tests for pythonasyncio_server

As noticed when looking at https://source.cloud.google.com/results/invocations/d9401d96-b2cb-4587-a171-81965b544af1 (grpc_interop_tocloud), pythonasyncio_server has no clients other than the http2 client hitting it.
See also #31644

I will try to look into this in the next week or two.


HTML/CSS -> front page

I would like to contribute in this

I want to contribute , please assign me


Another docs update

Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Type of change

Documentation update

Testing steps
N/A

Codecov Report

Merging #131 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #131   +/-   ##
=======================================
  Coverage   89.76%   89.76%
=======================================
  Files          18       18
  Lines         606      606
=======================================
  Hits          544      544
  Misses         54       54
  Partials        8        8

Continue to review full report at Codecov.

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


Consider whether or not to retain these polygons

These polygons are causing some back-end 500 errors in the API and should get a closer inspection

/protectedarea/BLM21
/huc/19060202
/huc/19030102
/huc/19030103

/huc/19030102 is Fox Islands and perhaps a similar case to *103 (#85)
/huc/19060202 is "Northwest Coast" and basically spans the coastline between Utqiaġvik and Wainright. I don't think this is a good data cookie cutter either.


Keypoint choosing.

Hi Benjamin, your WLDO is excellent, I applied it on other animals and it can estimate their pose very good. However, I have a question about the keypoint you choose. For the dogs, I only see one keypoint on the whole torso, the tail-start. If there is another point around the neck, then it seems reasonable. However, there are only few points on the head. How do this one point define the direction of the torso? Or the tail-start point and the four points (point 4,2,5,11) can define the whole body. Thank you.

Thanks for your kind words! Apologies if I am misunderstanding, but I think you are asking how WLDO is able to accurately predict the global rotation of the model with only a few annotated torso points?
This is a difficult one to answer... but it is due to a combination of the 2D keypoint losses and priors which keep shape and pose parameters constrained to plausible values. When these losses are applied over a large training dataset (see https://github.com/benjiebob/StanfordExtra), the network eventually learns to do the 'right thing'... most of the time :)
Of course, you can experimenting with adding extra keypoints, retrain and and see if that improves results.
Let me know if that answers your question!

Yes, exactly. If there is no more keypoint on torso, it seems hard to define the the rotation. If everything is done in the network, then I can hardly do anything. I'm considering whether the shape and the rotation of the main body can be bascially constrainted by point 4,2,5,11, the four points on the leg.

Hmm... I'm not quite sure what you are trying to achieve?
If you just want to know the global orientation of the predicted dog mesh, you can look at the predicted SMBLD parameters.

by now, I just want to use the result of WLDO, if it's necessary, I will do some finetuning.
It's sound interesting, is the output SMBLD parameters in the params.npz?

For example, running demo.py outputs *.jpg and *.npz files. The npz file contains the following keys:
['imgname', 'pose', 'betas', 'camera', 'trans', 'has_bbox']

Pose: 105 dimensions. Think of as 35 x 3 in Rodrigues axis angle. The first 1 x 3 parameters are the global orientation. The rest are per-joint 3D rotations.
Betas: 26 dimensions, 20 SMAL shape coefficients + 6 SMBLD log-scale parameters.
Translation: 3 dimensions (x,y,z)
To understand these parameters a bit more, you might find this app useful: https://github.com/benjiebob/SMALViewer
Let me know if you have trouble with these parameters :)

Ok, I think I have to spend time on this. I cannot understand "the rest are for each model joint to affect the limb orientations" exactly. In the SMALViewer, you use the joints to rig each part of the body? It's hard for me to understand use only one joints(one point) to change a pose. If we want to change a pose of human's arm for example, we need to fix shoulder, and then move the joint of elbow, right?
I think you have 20 joint in one model, why are there 34x3 paramters left.

For training and evaluation, it is necessary to create a correspondence between points on the 3D SMAL model and our manually annotated 2D keypoints in StanfordExtra.
The SMAL model has 34 model joints which are used to rotate the limbs (arms, legs etc.) of the 3D mesh. The 34 x 3 pose parameters define these 3D rotations. [Note that SMALViewer uses an earlier version of SMAL so you might not see the same dimensions]
The StanfordExtra dataset has 20 keypoint locations annotated per image. Some of these keypoints refer to SMAL model joints but not all. For example, StanfordExtra contains an annotated nose point but there isn't one defined in the original SMAL model.
To overcome this, we add some additional 6 joints to the original SMAL model (although note we never actually used the eye points).
https://github.com/benjiebob/WLDO/blob/master/global_utils/smal_model/smal_torch.py#L188
The correspondence to StanfordExtra keypoints is then defined here: https://github.com/benjiebob/WLDO/blob/master/global_utils/config.py#L72
Make sure not to confuse the SMAL model joints


Spark 3.1.3 with Hadoop 3.2.2 Delta 1.0.1:java.lang.NumberFormatException: For input string: "100M"

I have the current situation:
Delta table located in S3
I want to write this table.
spark version 3.1.3 and hadoop 3.2.2
        SparkSession spark = SparkSession.builder()       .appName("spark_kafka_s3")       .master("local[2]")        .config("spark.jars.packages", "io.delta:delta-core_2.12:1.0.1")       .config("spark.sql.extensions", "io.delta.sql.DeltaSparkSessionExtension")       .config("spark.sql.catalog.spark_catalog", "org.apache.spark.sql.delta.catalog.DeltaCatalog")       .getOrCreate();
I try to read message from kafka and write the analysis results in to S3
head.coalesce(1).writeStream()                 .format("delta")                 .option("checkpointLocation",path +  "/checkpoint/" + headTableName)                 .option("mergeSchema", "true")                 .outputMode("append")                 .partitionBy("ds", "hh")                 .start(path + "/" + headTableName);
My script is like this
bin/spark-submit --master spark://server01:xxx --packages io.delta:delta-core_2.12:1.0.1,com.amazonaws:aws-java-sdk-pom:1.11.1034,org.apache.hadoop:hadoop-aws:3.2.2 --conf "spark.sql.catalog.spark_catalog=org.apache.spark.sql.delta.catalog.DeltaCatalog" --conf "spark.sql.extensions=io.delta.sql.DeltaSparkSessionExtension" --class org.example.App /root/x/out/artifacts/x/x.jar 1
I got error like this:

I have read the issue #639 https://github.com/delta-io/delta/issues/639
However, Delta 1.01 is proposed to support Spark 3.1.x.
So I have no idea how to solve the problem.
Greatful for anyone potentially encountering the same issue.

You have an invalid value 100M in some config. You can search 100M in your code, hadoop configuration file or system environment to find out that.

There is a property in core-default.xml of hadoop-common 3.2.2:

my maven is like this:

where $hadoop.version=3.2.2
When I tried to debug, I found the problem:

Program crashed in the parseLong.
After I overwrite the property through:
sparkContext.hadoopConfiguration().set("fs.s3a.multipart.size","104857600");
I got another problem. T_T

Is this problem related to the hadoop version?

Where did you download Spark? My hunch is your Spark is not compatible with Hadoop 3. You can find the compatible package in https://spark.apache.org/downloads.html

First I tried spark 3.1.3 with hadoop 2.7, then I tried spark 3.1.3 with hadoop 3.2.2. They all failed.
Finally I tried spark 3.1.3 without hadoop, this time I get no crash. Thank you very much.

Great to hear that you solved the problem. Yep, if you have Hadoop installed, Spark without hadoop is the right one to use. Closing this one as it's solved.


Combat and survival knife storage/inhand sprites

About the PR

Adds storage sprites for the combat knife and survival knife. Also changes the inhand sprites for both to make them distinct and more noticeable than the old sprite.
Why / Balance

I use these alot and I wanted to see more storage visuals in general.
Technical details

Media

Requirements

[x] I have read and am following the Pull Request and Changelog Guidelines.
[x] I have added media to this PR or it does not require an ingame showcase.

Breaking changes

Changelog

No changelog cause its just a small visual change.

Yeah sure thing Flare, thanks for the review.


Host header update when one url redirects to another url.

I faced an issue where the redirect location that i got from the 1st Api call had a different subdomain. but the host header retains the domain of the first api. this causes error in my server and i get 404.
1st Api: https://abcalert.extensions.sit.abcx1.de/fp/install.
2nd Api: https://api.sit.abcx1.de/authentication/v1.0/company/111/oauth/authorize
the header, host: abcalert.extensions.sit.abcx1.de remains same in both.
Work around: removed host header using network interceptor.
What is the reason for this and should it be raised as a bug? I could not find any documentation related to this.

We've seen this before when the client is manually setting a host header.
https://github.com/square/okhttp/issues/6487
Please provide a reproduction, as this should be working.

Just confirmed with the following test

  @Test
  fun redirectsUpdatesHost() {
    server2.enqueue(MockResponse(body = "Page 2"))
    server.enqueue(
      MockResponse(
        code = HttpURLConnection.HTTP_MOVED_TEMP,
        headers = headersOf("Location", server2.url("/").toString()),
      ),
    )
    val response = client.newCall(Request(server.url("/page1"))).execute()
    assertThat(response.body.string()).isEqualTo("Page 2")
    val request1 = server.takeRequest()
    assertThat(request1.headers["Host"]).isEqualTo(server.hostName + ":" + server.port)
    val request2 = server2.takeRequest()
    assertThat(request2.headers["Host"]).isEqualTo(server2.hostName + ":" + server2.port)
  }


How to concatenate knowledge graphs embeddings with Textual embeddings by Keras embedding layers and feed to Multi perceptron layer?

I have generated knowledge graph embeddings by RDF2Vec(<s,p,o> RDF triples.ttl file with DBpedia URIs) of size (7536, 384) and I have embeddings for my text dataset generated by Sbert of size(14169,384). Now, how do I concatenate these embeddings using Keras embedding layers? and then model.fit the concatenated embeddings with target label for training the model? Could anyone help?
As of now, I am using this below code and  I want to add a Keras embedding layer to concatenate the above embeddings and train my model.
Model = tf.keras.models.Sequential()
Model.add(tf.keras.layers.Dense(128, activation = 'relu'))
Model.add(tf.keras.layers.Dense(2, activation = 'sigmoid'))
Model.compile(loss='sparse_categorical_crossentropy', optimizer='adam', metrics=['acc'])
history = Model.fit(concat_embeddings, train_labels.values, epochs=30, validation_split=0.1,verbose=1, batch_size=128)

@maya-25 Thanks for the question. I would suggest you to ask this question here: https://groups.google.com/g/keras-users
The GitHub issues are mainly for bug reports and feature requests. Thanks


[CELEBORN-224][FOLLOWUP]Correct license and notices.

What changes were proposed in this pull request?
Correct licenses and notices according to vote discussion.
Why are the changes needed?
Does this PR introduce any user-facing change?
How was this patch tested?

cc @carp84 please review this pr, thanks!


ℹ Strapi Admin URL: http://localhost:1337/admin

Is this the backend project konkamon strapi

Did you mean the .env.example file?
If yes, I'm sorry, I forgot to replace it with a placeholder text

No, but I have solved the problem, thank you.


[ingestion bug] Bulk Ingestion does not fail when a predicate fails

Describe the bug
Currently when using bulk ingestion, when part of the ingestion of a document fails it is not reported. This should error and be ingested again (placed back in the queue).
In the example below both the occurrences and hasSBOM failed, this should be reported as a failure to ingest the document:
time go run ./cmd/guacone collect files ../guac-data/docs/spdx/spdx_vuln.json
{"level":"info","ts":1712269407.5400379,"caller":"logging/logger.go:70","msg":"Logging at info level"}
{"level":"info","ts":1712269407.541861,"caller":"process/process.go:254","msg":"Decoding document with encoding:  "}
{"level":"info","ts":1712269407.764471,"caller":"parser/parser.go:81","msg":"parsing document tree with root type: SPDX"}
{"level":"info","ts":1712269407.87801,"caller":"ingestor/ingestor.go:59","msg":"unable to create entries in collectsub server, but continuing: unable to add collect entries: rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: dial tcp [::1]:2782: connect: connection refused\""}
{"level":"info","ts":1712269407.891953,"caller":"helpers/bulk.go:39","msg":"assembling Package: 3981"}
{"level":"info","ts":1712269408.0499442,"caller":"helpers/bulk.go:55","msg":"assembling Source: 0"}
{"level":"info","ts":1712269408.0545542,"caller":"helpers/bulk.go:65","msg":"assembling Artifact: 3384"}
{"level":"info","ts":1712269408.097975,"caller":"helpers/bulk.go:80","msg":"assembling Materials (Artifact): 0"}
{"level":"info","ts":1712269408.100332,"caller":"helpers/bulk.go:89","msg":"assembling Builder: 0"}
{"level":"info","ts":1712269408.101753,"caller":"helpers/bulk.go:98","msg":"assembling Vulnerability: 0"}
{"level":"info","ts":1712269408.1031601,"caller":"helpers/bulk.go:107","msg":"assembling Licenses: 29"}
{"level":"info","ts":1712269408.106025,"caller":"helpers/bulk.go:114","msg":"assembling CertifyScorecard: 0"}
{"level":"info","ts":1712269408.106059,"caller":"helpers/bulk.go:119","msg":"assembling IsDependency: 7161"}
{"level":"info","ts":1712269408.4749792,"caller":"helpers/bulk.go:127","msg":"assembling IsOccurrence: 3878"}
{"level":"error","ts":1712269408.6642299,"caller":"helpers/bulk.go:130","msg":"ingestIsOccurrences failed with error: isOccurrencesPkg failed with error: input: ingestOccurrences IngestOccurrences :: bulk upsert Occurrence node: ent: constraint failed: insert nodes to table \"occurrences\": pq: insert or update on table \"occurrences\" violates foreign key constraint \"occurrences_artifacts_artifact\"\n","stacktrace":"github.com/guacsec/guac/pkg/assembler/clients/helpers.GetBulkAssembler.func1\n\t/Users/parth/Documents/pxp928/artifact-ff/pkg/assembler/clients/helpers/bulk.go:130\ngithub.com/guacsec/guac/pkg/ingestor.Ingest\n\t/Users/parth/Documents/pxp928/artifact-ff/pkg/ingestor/ingestor.go:62\ngithub.com/guacsec/guac/cmd/guacone/cmd.init.func6.1\n\t/Users/parth/Documents/pxp928/artifact-ff/cmd/guacone/cmd/files.go:125\ngithub.com/guacsec/guac/pkg/handler/collector.Collect\n\t/Users/parth/Documents/pxp928/artifact-ff/pkg/handler/collector/collector.go:97\ngithub.com/guacsec/guac/cmd/guacone/cmd.init.func6\n\t/Users/parth/Documents/pxp928/artifact-ff/cmd/guacone/cmd/files.go:145\ngithub.com/spf13/cobra.(*Command).execute\n\t/Users/parth/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:987\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/Users/parth/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1115\ngithub.com/spf13/cobra.(*Command).Execute\n\t/Users/parth/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1039\ngithub.com/guacsec/guac/cmd/guacone/cmd.Execute\n\t/Users/parth/Documents/pxp928/artifact-ff/cmd/guacone/cmd/root.go:56\nmain.main\n\t/Users/parth/Documents/pxp928/artifact-ff/cmd/guacone/main.go:23\nruntime.main\n\t/opt/homebrew/Cellar/go/1.22.1/libexec/src/runtime/proc.go:271"}
{"level":"info","ts":1712269408.664423,"caller":"helpers/bulk.go:135","msg":"assembling HasSLSA: 0"}
{"level":"info","ts":1712269408.6644301,"caller":"helpers/bulk.go:140","msg":"assembling CertifyVuln: 0"}
{"level":"info","ts":1712269408.664434,"caller":"helpers/bulk.go:145","msg":"assembling VulnMetadata: 0"}
{"level":"info","ts":1712269408.664439,"caller":"helpers/bulk.go:150","msg":"assembling VulnEqual: 0"}
{"level":"info","ts":1712269408.664444,"caller":"helpers/bulk.go:156","msg":"assembling HasSourceAt: 0"}
{"level":"info","ts":1712269408.664448,"caller":"helpers/bulk.go:161","msg":"assembling CertifyBad: 0"}
{"level":"info","ts":1712269408.664466,"caller":"helpers/bulk.go:167","msg":"assembling CertifyGood: 0"}
{"level":"info","ts":1712269408.6644711,"caller":"helpers/bulk.go:173","msg":"assembling PointOfContact: 0"}
{"level":"info","ts":1712269408.664474,"caller":"helpers/bulk.go:178","msg":"assembling HasMetadata: 462"}
{"level":"info","ts":1712269408.703561,"caller":"helpers/bulk.go:183","msg":"assembling HasSBOM: 1"}
{"level":"error","ts":1712269408.8020039,"caller":"helpers/bulk.go:190","msg":"ingestHasSBOMs failed with error: hasSBOMPkgs failed with error: input: ingestHasSBOMs IngestHasSBOMs failed with err: input: IngestHasSbom :: input: generateSBOMCreate :: updateHasSBOMWithIncludeArtifacts: update for IncludedSoftwareArtifactIDs hasSBOM node failed with error: ent: constraint failed: add m2m edge for table bill_of_materials_included_software_artifacts: pq: insert or update on table \"bill_of_materials_included_software_artifacts\" violates foreign key constraint \"bill_of_materials_included_software_artifacts_artifact_id\"\n","stacktrace":"github.com/guacsec/guac/pkg/assembler/clients/helpers.GetBulkAssembler.func1\n\t/Users/parth/Documents/pxp928/artifact-ff/pkg/assembler/clients/helpers/bulk.go:190\ngithub.com/guacsec/guac/pkg/ingestor.Ingest\n\t/Users/parth/Documents/pxp928/artifact-ff/pkg/ingestor/ingestor.go:62\ngithub.com/guacsec/guac/cmd/guacone/cmd.init.func6.1\n\t/Users/parth/Documents/pxp928/artifact-ff/cmd/guacone/cmd/files.go:125\ngithub.com/guacsec/guac/pkg/handler/collector.Collect\n\t/Users/parth/Documents/pxp928/artifact-ff/pkg/handler/collector/collector.go:97\ngithub.com/guacsec/guac/cmd/guacone/cmd.init.func6\n\t/Users/parth/Documents/pxp928/artifact-ff/cmd/guacone/cmd/files.go:145\ngithub.com/spf13/cobra.(*Command).execute\n\t/Users/parth/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:987\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/Users/parth/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1115\ngithub.com/spf13/cobra.(*Command).Execute\n\t/Users/parth/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1039\ngithub.com/guacsec/guac/cmd/guacone/cmd.Execute\n\t/Users/parth/Documents/pxp928/artifact-ff/cmd/guacone/cmd/root.go:56\nmain.main\n\t/Users/parth/Documents/pxp928/artifact-ff/cmd/guacone/main.go:23\nruntime.main\n\t/opt/homebrew/Cellar/go/1.22.1/libexec/src/runtime/proc.go:271"}
{"level":"info","ts":1712269408.8021052,"caller":"helpers/bulk.go:193","msg":"assembling VEX : 0"}
{"level":"info","ts":1712269408.80211,"caller":"helpers/bulk.go:198","msg":"assembling HashEqual : 0"}
{"level":"info","ts":1712269408.802146,"caller":"helpers/bulk.go:203","msg":"assembling PkgEqual : 0"}
{"level":"info","ts":1712269408.802154,"caller":"helpers/bulk.go:208","msg":"assembling CertifyLegal : 125"}
{"level":"info","ts":1712269408.819148,"caller":"ingestor/ingestor.go:68","msg":"[1.277286833s] completed doc {Collector:FileCollector Source:file:///../guac-data/docs/spdx/spdx_vuln.json}"}
{"level":"info","ts":1712269408.8191738,"caller":"cmd/files.go:138","msg":"collector ended gracefully"}
{"level":"info","ts":1712269408.81918,"caller":"cmd/files.go:152","msg":"completed ingesting 1 documents of 1"}
go run ./cmd/guacone collect files ../guac-data/docs/spdx/spdx_vuln.json  2.68s user 2.52s system 133% cpu 3.884 total

Expected behavior
Ingestor should only succeed if the document is fully parsed and ingested. Otherwise the document in question should error and be placed back on the queue for re-ingestion.
GUAC version
main

#1275

Update this msg:
{"level":"info","ts":1712269408.81918,"caller":"cmd/files.go:152","msg":"completed ingesting 1 documents of 1"}

To either be that on success (no errors), or something like:
{"level":"error","ts":1712269408.81918,"caller":"cmd/files.go:152","msg":"2 failures and 8 successful documents ingested of 10"}

Also update the ingestor msg to fail as well:
{"level":"info","ts":1712269408.819148,"caller":"ingestor/ingestor.go:68","msg":"[1.277286833s] completed doc {Collector:FileCollector Source:file:///../guac-data/docs/spdx/spdx_vuln.json}"}

Look into enabling prometheus on ingestor and emitting errors.


renovate: Remove forks configuration

It's not needed now that we agreed not to use forks.
Changelog-entry: Remove forks configuration from renovate
Signed-off-by: Alex Gonzalez<EMAIL_ADDRESS>

@balena-ci I self-certify!


Is there a way to use SignalR in asp.net core and Xamarin.forms ?

Hi. I used to try to use SignalR in Asp.net core and Xamarin but unfortunately didn't success.
I couldn't communicate with the client side in Xamarin.
Is there a plan to come out the newer version of SignalR .net core  ?

The client for SignalR Core targets netstandard1.3 so it should be possible to use it in Xamarin. If it does not work please provide more details.

@moozzyk The server side (asp.net core )was alpha version, and couldn't communicate with the client side version 2 (Xamarin). connection didn't started and It gave me error.

@paradisehuman Do you have an application that you can put on github so we can take a look?

@davidfowl To be honest, I tried one month ago . but please wait to put my code here .

You can't use SignalR2.x client with SignalR core. You need to use SignalR Core client.

@moozzyk Ok. I will test it and come back again.

@moozzyk Is there any signalR client package for .net core ? I can't find anything !

https://dotnet.myget.org/feed/aspnetcore-ci-dev/package/nuget/Microsoft.AspNetCore.SignalR.Client

For what it's worth, we were leveraging SignalR core with Xamarin but ended up dropping it because of net standard / pcl issues specific to Android. I've asked @ryanwersal to comment when he has time.

OK.I installed the client packages .
I configure the server side same as this link :
http://radu-matei.github.io/blog/signalr-core/
And this my client side :
public class App : Application
    {

        public App()
        {
            MainPage = new ContentPage { Content=new Label{Text="OK"}};
        }
        protected override async void OnStart()
        {
            base.OnStart();
            var url = new Uri("http://localhost:54801");
            var connection = new HubConnection(url);
            await connection.StartAsync().ContinueWith(task =>
            {
                if (task.IsFaulted)
                    MainPage.DisplayAlert("Error", "An error occurred when trying to connect to SignalR: " + task.Exception.InnerExceptions[0].Message, "OK");
            });
        }
    }

I got the

"Unable to connect to the remote server"

Error.
I'm using UWP.

What is the stacktrace? I don't think this exception is coming from SignalR client and I don't think the server even receives the request. Are you sure your application allows making HTTP requests?

@moozzyk at System.Net.WebSockets.WebSocketHandle.<ConnectAsyncCore>d__19.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Net.WebSockets.ClientWebSocket.<ConnectAsyncCore>d__16.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.AspNetCore.Sockets.Client.WebSocketsTransport.<Connect>d__13.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.AspNetCore.Sockets.Client.WebSocketsTransport.<StartAsync>d__10.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.AspNetCore.Sockets.Client.Connection.<StartTransport>d__36.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.AspNetCore.Sockets.Client.Connection.<StartAsyncInternal>d__33.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.AspNetCore.SignalR.Client.HubConnection.<StartAsync>d__24.MoveNext()

In Android I got this error :

"The server returned status code '200' when status code '101' was expected"
I'm using <IP_ADDRESS>:54801 , instead of localhost.

My server version is 0.2.0-preview2-22683 and the client version is 1.0.0-preview1-24571 .
Is it influence this problem ?

Thats the wrong server package. Use Microsoft.AspNetCore.SignalR 1.0.0-preview1-24574

0.2.0 server is quite ancient. Use the same version as the client. When you are running from a device emulator you can't use localhost because SignalR would try to connect to the server running on the device and not on your machine.

@moozzyk There is no Microsoft.AspNetCore.SignalR.Server 1.0.0-preview1-24574!
Yes,I'm using <IP_ADDRESS> in Android.
I'm using localhost In UWP.

@BrennanConroy When I install Microsoft.AspNetCore.SignalR 1.0.0-preview1-24574 instead of Microsoft.AspNetCore.SignalR.Server 0.2.0-preview2-22683 in my Web project, I got this error when I start the server :

System.TypeLoadException: 'Method 'ConfigureAppConfiguration' in type 'Microsoft.AspNetCore.Hosting.WebHostBuilder' from assembly 'Microsoft.AspNetCore.Hosting, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=adb9793829ddae60' does not have an implementation.'

You need to reference the latest pre-release packages for AspNetCore, so 2.0.0-* for Hosting etc.

@BrennanConroy  Ok. It seems the error disappear. If I face a new problem, I will ask. Thank you

24574 was more than 6 builds ago :) There is a reason why we use * in versions. Because we have multiple builds a day versions change frequently (we had 6 builds in the last 5 hours - https://dotnet.myget.org/feed/aspnetcore-ci-dev/package/nuget/Microsoft.AspNetCore.SignalR).  You want to use 1.0.0-* version for SignalR and 2.0.0-* for other Asp.Net Core packages.


Update people.json

Theresa: Removed "Application Design"

@rowleya I am just merging them anyway.  Better reporting on the PR page for which tests are failing would be useful here, but GitHub Actions doesn't make that trivial, so I decided to quit while I was ahead with something that was functional, if not perfect!


Deployment

Deployment
User Story
As a boot camp student,
I want the prework notes to be structured on a webpage,
So that I can easily find and read the information
Acceptance Criteria
GIVEN a Prework Study Guide website,
WHEN I visit the website using the URL,
THEN I can access my website from any browser

deployed the page on GitHub: https://abdalla-diaai.github.io/prework-study-guide/


Truncate segments in reverse order to prevent gaps in the log

This PR modifies the Log.truncate method to truncate segments in reverse order. This is necessary in order to prevent gaps in the log if a failure occurs while truncating the log. If multiple segments are truncated from the log starting at the first truncated segment, a gap can exists, and in that case the log will interpret the gap as compacted entries. So, this ensures that only segments from the end of the log will have been removed in the event of a failure during truncate.

:+1:


Bridge request for invidious (Use invidious instead of youtube)

I would like invidious bridge to have all the features of the current youtube (which by the way, it seems that youtube does not currently work).
It would also be nice to be able to choose the invidious instance, or even enter the instance url manually.
I leave here some of the currently available instances:
https://instances.invidio.us/
Invidious can perfectly replace youtube, since it really is youtube, but with more privacy.
Cheers

Invidious already has RSS feeds

but it doesn't have rss for searches, does it?
This function would be very useful, at least it would be useful to me.

I see. Have you tried to open issue in https://github.com/omarroth/invidious?

Well, I'll open issue there.
Cheers


do not call backup() before migrations

Coverage decreased (-0.007%) to 95.88% when pulling 71bee56d6b688ba7e36a529b6961bd4d13951b81 on disable_django_backup into 622058d44c59b89be6dd0e7616818ef65da5bf3c on master.


MECM deployment of Visio or Office/Visio

this section - last word "office"

"If you already use other tools to deploy software to your users, such as Microsoft Endpoint Configuration Manager, you can use the Office Deployment Tool along with those tools to deploy the subscription version of Office."
Yes I want to use MECM.  We already have "Office" on all computers, now I want to install Visio Plan 2 on some computers, however the install is failing with an error code of 30088-4 after preparing just Visio with the MECM office deployment tool. (no office included) Based on the way the sentence is worded above, can I assume that if I want to install Visio Plan 2, I need to now include office with my Visio Plan 2 deployment and replace my current office install with an office / visio deployment for anybody that needs Visio Plan 2?

OR should this sentence read
"If you already use other tools to deploy software to your users, such as Microsoft Endpoint Configuration Manager, you can use the Office Deployment Tool along with those tools to deploy the subscription version of Visio."
meaning visio can be deployed as a separate install and my error message is unrelated.

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

ID: e3fc30fd-858c-d1cd-0729-6eb72ef7975a
Version Independent ID: aa690d1d-8e25-6de1-9a83-7acd851fed7a
Content: Deployment guide for Visio
Content Source: DeployOffice/deployment-guide-for-visio.md
Service: o365-proplus-itpro
GitHub Login: @DHB-MSFT
Microsoft Alias: danbrown

I suspect that the detection method of your Visio SCCM app is looking for Office and thus can't install Visio as the detection method returns "already installed" immediately. I suggest to look at the Detection Method of your VIsio SCCM app and make sure that this is unique, e.g. by checking for the visio.exe or another regkey unique to Visio.

@PaulKlerkx Did the recommendation from @manoth-msft  address your issue?

I will go forward and close this issue for now. If you are still facing an issue which is not related to the documentation itself, feel free to ping us on https://techcommunity.microsoft.com/t5/microsoft-365-apps-for/bd-p/Microsoft365Apps

yes, OK to close, sorry for not responding, I never got the visio install working but other priorities didn't allow me to spend too much time on it.  not sure when I'll get to it.


Fix bug in CommandClassInfo model

from https://github.com/home-assistant/core/issues/90551 I noticed that we are converting id to a CommandClass in the property which doesn't make sense so added a separate property to do it

Do we need any tests?

done

Looks like black needs to run against the updated test


Want to Create a Country Guide Web App

Is your feature request related to a problem? Please describe.
Not at all. It is more like an informative cum fun JavaScript project.
Describe the solution you'd like
This project will  display a list of common information which includes Population , currency , Country capital , Continent  about that country including an image of the country’s flag.
Describe alternatives you've considered
Country finder : A site that allows you to browse the countries of the world with all the necessary information about the country(includes Population , Native name, Border countries , Common Languages spoken , Top Level Domain, Currency )
Additional context

Steps Followed✅
Check the box with [x] If you followed all the steps.

[ ] Is your feature request related to a problem? Please describe.
[x] Describe the solution you'd like
[x] Describe alternatives you've considered
[x] Additional context

Code of Conduct✅

[x] I agree to follow this project's Code of Conduct.
[x] I checked the current issues for duplicate problems.
[x] I have gone through project README.

I would like to work on this issue.


[WIP] login success test

Fixes issue #129
Changes:

login success test added

squash your commits

@isuruAb still working on it, there is a WIP label already added for that.

please review @dynamitechetan @chiragw15 @isuruAb @mayank408 @amitiwary999 @betterclever