Latency When Placing Power Conduits

Issue Description:
Latency when placing any enderIO conduit
What happens:
When placing any enderIO conduit there is latency. It would seem the system is trying to scan the entire energy network as larger networks have worse latency. Breaking the conduits has the same latency issue. This only seems to be with energy conduits as the item/fluid ones don't seem to be affected.
What you expected to happen:
Place conduit with no latency like any other block.
Steps to reproduce:

Place conduits

...

Affected Versions (Do not use "latest"):
•EnderIO: 1.10.2-<IP_ADDRESS>
•EnderCore: 1.10.2-<IP_ADDRESS>
•Minecraft: 1.10.2
•Forge: 2065
Your most recent log file where the issue was present:
No crash log. Happy to provide what I can if it helps to resolve the issue.

I should note this doesn't happen if the conduit isn't hooked to an energy source.

By any chance Henry, does EnderIO use MCMultipart? I have an identical issue with Mekanism pipes which the Mek dev says has to do with MCMultipart placement logic.
That issue for reference if it helps...
https://github.com/aidancbrady/Mekanism/issues/3751
Thanks!


segmentation fault elementwise_op_gpu_test

getting segmentation fault (core dumped) after successful test. any ideas why?
[ ubuntu 16.04, cuda 8, cudnn 5, built caffe2 from source ]
This happens for many of the binaries/*gpu_test. The tests pass but still get core dump.
./elementwise_op_gpu_test
Running main() from gtest_main.cc
[==========] Running 4 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 4 tests from ElementwiseGPUTest
[ RUN      ] ElementwiseGPUTest.And
[       OK ] ElementwiseGPUTest.And (127 ms)
[ RUN      ] ElementwiseGPUTest.Or
[       OK ] ElementwiseGPUTest.Or (1 ms)
[ RUN      ] ElementwiseGPUTest.Xor
[       OK ] ElementwiseGPUTest.Xor (1 ms)
[ RUN      ] ElementwiseGPUTest.Not
[       OK ] ElementwiseGPUTest.Not (1 ms)
[----------] 4 tests from ElementwiseGPUTest (130 ms total)

[----------] Global test environment tear-down
[==========] 4 tests from 1 test case ran. (130 ms total)
[  PASSED  ] 4 tests.
Segmentation fault (core dumped)

Which commit hash are you building from? We did fix some bugs regarding segmentation fault, so it would be nice to check if the current master branch still fails.


Fix: Failed github action

The github action that runs pytest is failing.
Seems like a dependency issue

Picking this up


[material-ui][Tabs] How to create a vertical tab with an arrow?

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Steps to reproduce 🕹
I'm trying to create mui4 tabs with vertical orientation and vector or aerrow shape indicator for selected tab.
But seems like it's completely impossible with React MUI4 library.
https://v4.mui.com/components/tabs/#vertical-tabs
This is what I'm trying to achieve,

Tried with css as well as below props but no luck
indicatorInset TabIndicatorProps
Current behavior 😯
Not able to customize vector as vector gets hidden when trying to position it outside of tab border.
Expected behavior 🤔
Can position indicator as svg or css vector outside of tab border
Context 🔦
N/A
Your environment 🌎
N/A

For assistance, please provide a code reproduction using CodeSandbox. The issue template can guide you. It's unclear if the Tabs component is necessary initially here.
For general questions, consider asking on StackOverflow. If it's confirmed as an issue there, we can reopen this.


Please invite me to the community

Name
GarfieldLegion
Additional Context
Hello
I am going to learn the new opportunity here.
Thank you.

Invitation sent to join the GitHub Organization. Welcome to Infraform 🎉Please check your mail to accept the invitation sent by GitHub! 🤖About usInfraform is a remarkable open-source solution tailored for serverless platforms, aimed at empowering creators to craft their infrastructure solutions. 💻 We're thrilled to welcome you into our vibrant community! ✨ We eagerly anticipate your valuable contributions! 🤓 Don't forget to explore our community on Github and connect with us on LinkedIn 💜 Feel free to spread the word about our community to like-minded individuals interested in development, DevOps, technology, and collaborative contributions. 👉💜👈


Resident Key / UserHandle Authentication?

I couldn't re-open https://github.com/Yubico/python-fido2/issues/71 so creating a new issue here.  I couldn't get it to work with 0.7.3.

This should be working in 0.8.1 (released just now), and I've added an example for testing it (examples/resident_key.py).
Please re-open (or open a new issue) if you still have issues!


No Location Events on Android

Your Environment

Plugin version: 0.5.0-alpha.40
Platform: Android
OS version: 8.0
Device manufacturer and model: Google Pixel 2
React Native version: 0.55.4
Plugin configuration options:

BackgroundGeolocation.configure({
  notificationTitle: 'notificationTitle',
  notificationText: 'Posting your location',
});

Root build.gradle:

ext {
    compileSdkVersion = 26
    targetSdkVersion = 26
    buildToolsVersion = "27.0.3"
    supportLibVersion = "27.1.0"
    googlePlayServicesVersion = "15.0.1"
    androidMapsUtilsVersion = "0.5+"
    gradle3EXPERIMENTAL = "yes"
    oreoEXPERIMENTAL = "yes"
}

Additional Info

react-native-maps version 0.21
react-native-firebase version 4.3.8
gradle 4.4

Context

On Android I don't get any location events. I do get the events with iOS.
Expected Behavior

When I call BackgroundGeolocation.start(), I should see location events fired as I move distances greater than the distanceFilter.
Actual Behavior

When I call BackgroundGeolocation.start(), I get one stationary event and then don't get any more events, not even when I drive a distance much farther than the stationaryRadius or distanceFilter.
I can force a stationary event to generate by putting the app in background mode (ie. by closing the app or turning off the screen).
I can force a location event to generate by putting the app in foreground mode (ie. by reopening the app or turning on the screen).
When the app stays in background or foreground mode, no events are generated. Events are only generated when switching between background and foreground mode.
Steps to Reproduce

Configure background geolocation as above
Set event listeners on location and stationary
BackgroundGeolocation.start()
Toggle between background and foreground to see events fired

Debug logs

The following logs are from the adb logcat, filtered to only the logs from the background geolocation library.
When starting background location:
08-31 16:02:42.052 10213-10257/[bundleId] D/com.marianhello.bgloc.BackgroundGeolocationFacade: Starting service
08-31 16:02:42.066 10213-10257/[bundleId] I/com.marianhello.bgloc.BackgroundGeolocationFacade: User granted requested permissions
08-31 16:02:42.075 10213-10400/[bundleId] D/com.marianhello.bgloc.data.sqlite.SQLiteConfigurationDAO: Configuration persisted with rowId = 1
08-31 16:02:42.076 10213-10400/[bundleId] D/com.marianhello.bgloc.BackgroundGeolocationFacade: Service configured with: Config[distanceFilter=50 stationaryRadius=50.0 desiredAccuracy=100 interval=600000 fastestInterval=120000 activitiesInterval=10000 isDebugging=true stopOnTerminate=true stopOnStillActivity=true startOnBoot=false startForeground=true notificationsEnabled=true locationProvider=0 nTitle=AgPoint nText=Posting your location nIconLarge= nIconSmall= nIconColor= url= syncUrl= syncThreshold=100 httpHeaders={} maxLocations=10000 postTemplate=null]
08-31 16:02:42.080 10213-10257/[bundleId] I/com.marianhello.bgloc.BackgroundGeolocationFacade: Attempt to start bg service
08-31 16:02:42.121 10213-10213/[bundleId] I/com.marianhello.bgloc.LocationService: Service started
08-31 16:02:42.129 10213-10213/[bundleId] D/com.marianhello.bgloc.LocationService: Will start service with: Config[distanceFilter=50 stationaryRadius=50.0 desiredAccuracy=100 interval=600000 fastestInterval=120000 activitiesInterval=10000 isDebugging=true stopOnTerminate=true stopOnStillActivity=true startOnBoot=false startForeground=true notificationsEnabled=true locationProvider=0 nTitle=AgPoint nText=Posting your location nIconLarge= nIconSmall= nIconColor= url= syncUrl= syncThreshold=100 httpHeaders={} maxLocations=10000 postTemplate=null]
08-31 16:02:42.294 10213-10213/[bundleId] D/com.marianhello.bgloc.BackgroundGeolocationFacade: Received MSG_ON_SERVICE_STARTED
08-31 16:02:54.724 10213-10213/[bundleId] D/com.marianhello.bgloc.LocationService: New stationary BGLocation[gps 44.750000,-92.000000 id=null acc=20 t=1535490154000 et=+1h22m57s81ms alt=0.0 radius=50.0 {Bundle[mParcelledData.dataSize=40]} locprov=0]
08-31 16:02:54.769 10213-10213/[bundleId] D/com.marianhello.bgloc.BackgroundGeolocationFacade: Received MSG_ON_STATIONARY

When putting the app in the background while background location is running:
08-31 16:03:50.615 10213-10213/[bundleId] I/com.marianhello.bgloc.react.BackgroundGeolocationModule: App will be paused
08-31 16:03:50.644 10213-10213/[bundleId] D/com.marianhello.bgloc.BackgroundGeolocationFacade: Unbinding from service
08-31 16:03:50.763 10213-10213/[bundleId] D/com.marianhello.bgloc.LocationService: All clients have been unbound from service
08-31 16:03:54.813 10213-10213/[bundleId] D/com.marianhello.bgloc.LocationService: New stationary BGLocation[gps 44.750000,-92.000000 id=null acc=20 t=1535490224000 et=+1h24m5s554ms alt=0.0 radius=50.0 {Bundle[mParcelledData.dataSize=40]} locprov=0]
08-31 16:03:54.822 10213-10213/[bundleId] D/com.marianhello.bgloc.LocationService: Running headless task: com.marianhello.bgloc.LocationService$4@74866f9
08-31 16:03:54.835 10213-10213/[bundleId] W/com.marianhello.bgloc.LocationService: HeadlessTaskRunner is null. Skipping task: com.marianhello.bgloc.LocationService$4@74866f9
08-31 16:03:54.842 10213-10213/[bundleId] D/com.marianhello.bgloc.BackgroundGeolocationFacade: Received MSG_ON_STATIONARY

When putting the app in the foreground while background location is running:
08-31 16:04:15.796 10213-10213/[bundleId] I/com.marianhello.bgloc.react.BackgroundGeolocationModule: App will be resumed
08-31 16:04:15.922 10213-10213/[bundleId] D/com.marianhello.bgloc.BackgroundGeolocationFacade: Binding to service
08-31 16:04:15.949 10213-10213/[bundleId] D/com.marianhello.bgloc.BackgroundGeolocationFacade: Service connected
08-31 16:04:15.964 10213-10213/[bundleId] D/com.marianhello.bgloc.LocationService: Client rebinds to service
08-31 16:04:24.785 10213-10213/[bundleId] D/com.marianhello.bgloc.LocationService: New location BGLocation[gps 44.750000,-92.000000 id=null acc=20 t=1535490265000 et=+1h24m39s637ms alt=0.0 {Bundle[mParcelledData.dataSize=40]} locprov=0]
08-31 16:04:24.871 10213-10213/[bundleId] D/com.marianhello.bgloc.BackgroundGeolocationFacade: Received MSG_ON_LOCATION

No other logs are generated if the app stays in the foreground or background, even when I'm moving. In summary, after BackgroundGeolocation.start() I get one stationary event, and I don't get any other events even if I move well beyond the stationary radius and distance filter. I only get events when I switch between having the app in the background and foreground.

Today I came across the same problem, maybe someone has some solutions?

Seems to have been primarily an issue with the emulator. Additionally, startForeground was set to true despite its default value being false.


[tool_crash] RPCError

Command
flutter run

Steps to Reproduce

...
...
...

Logs
RPCError
#0      VmService._call (package:vm_service/src/vm_service.dart:1769:7)
#1      VmService.getVM (package:vm_service/src/vm_service.dart:1245:25)
#2      FlutterDevice.initLogReader (package:flutter_tools/src/resident_runner.dart:428:55)
#3      HotRunner.attach (package:flutter_tools/src/run_hot.dart:266:21)
<asynchronous suspension>
#4      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:867:27)
<asynchronous suspension>
#5      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1408:27)
<asynchronous suspension>
#6      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#7      CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#8      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:420:9)
<asynchronous suspension>
#9      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#10     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:364:5)
<asynchronous suspension>
#11     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:130:9)
<asynchronous suspension>
#12     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#13     main (package:flutter_tools/executable.dart:93:3)
<asynchronous suspension>

[✓] Flutter (Channel stable, 3.24.3, on Microsoft Windows [Version 10.0.22631.4317], locale en-MY)
    • Flutter version 3.24.3 on channel stable at C:\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

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

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    • Android SDK at C:\Users\User\AppData\Local\Android\sdk
    • Platform android-35, build-tools 35.0.0
    • Java binary at: C:\Program Files\Android\Android Studio1\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.11+0--11852314)
    • All Android licenses accepted.

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

[✗] Visual Studio - develop Windows apps
    ✗ Visual Studio not installed; this is necessary to develop Windows apps.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components

[✓] Android Studio (version 2024.1)
    • Android Studio at C:\Program Files\Android\Android Studio1
    • 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--11852314)

[✓] VS Code (version 1.94.2)
    • VS Code at C:\Users\User\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.98.0

[✓] Connected device (4 available)
    • sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64    • Android 15 (API 35) (emulator)
    • Windows (desktop)            • windows       • windows-x64    • Microsoft Windows [Version 10.0.22631.4317]
    • Chrome (web)                 • chrome        • web-javascript • Google Chrome 129.0.6668.103
    • 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.

Flutter Application Metadata
Type: app
Version: 1.0.0+1
Material: true
Android X: false
Module: false
Plugin: false
Android package: null
iOS bundle identifier: null
Creation channel: stable
Creation framework version: 2663184aa79047d0a33a14a3b607954f8fdd8730
Plugins
camera-0.11.0+2
camera_android_camerax-0.6.10
camera_avfoundation-0.9.17+4
camera_web-0.3.5
file_selector_linux-0.9.3
file_selector_macos-0.9.4+2
file_selector_windows-0.9.3+3
flutter_keyboard_visibility-6.0.0
flutter_keyboard_visibility_linux-1.0.0
flutter_keyboard_visibility_macos-1.0.0
flutter_keyboard_visibility_web-2.0.0
flutter_keyboard_visibility_windows-1.0.0
flutter_plugin_android_lifecycle-2.0.23
flutter_secure_storage-9.2.2
flutter_secure_storage_linux-1.2.1
flutter_secure_storage_macos-3.1.2
flutter_secure_storage_web-1.2.1
flutter_secure_storage_windows-3.1.2
geocoding-3.0.0
geocoding_android-3.3.1
geocoding_ios-3.0.1
geolocator-13.0.1
geolocator_android-4.6.1
geolocator_apple-2.3.7
geolocator_web-4.1.1
geolocator_windows-0.2.3
google_maps_flutter-2.9.0
google_maps_flutter_android-2.14.8
google_maps_flutter_ios-2.13.0
google_maps_flutter_web-0.5.10
image_picker-1.1.2
image_picker_android-0.8.12+15
image_picker_for_web-3.0.5
image_picker_ios-0.8.12
image_picker_linux-0.2.1+1
image_picker_macos-0.2.1+1
image_picker_windows-0.2.1+1
path_provider-2.1.4
path_provider_android-2.2.10
path_provider_foundation-2.4.0
path_provider_linux-2.2.1
path_provider_windows-2.3.0
permission_handler-11.3.1
permission_handler_android-12.0.12
permission_handler_apple-9.4.5
permission_handler_html-0.1.3+2
permission_handler_windows-0.2.1
pointer_interceptor-0.10.1+2
pointer_interceptor_ios-0.10.1
pointer_interceptor_web-0.10.2+1

Closing this as a duplicate of https://github.com/flutter/flutter/issues/154903.
If you have any info to share, kindly do so in the issue linked above.
Thank you.


DPS: Create script executor proxy

In order to solve the version dependencies, every DPS server should execute scripts against the Cadence version that the databases were built on. This makes the current architecture with the client unviable for executing transparently across sporks.
Each server could host a script execution proxy on top of the DPS API that will execute scripts at the correct version, so that the consumer doesn't have to care about it. At the same time, there will still be issues, though, because there were Cadence syntax changes between sporks, so this would only be a partial solution.

is this not fixed by #181 's ExecuteScript endpoints?

No, this is different.

A better approach is explained in #339.


Major release-it release bump

Peer resolution needs a new semver range due to release-it 16

Thanks for the hint! I will check it.

Released as version 5.0.0


Raise error for simple .tar archives in the same way as for .tar.gz and .gz

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


platformio: 4.3.4 -> 5.0.1

Motivation for this change
Update PlatformIO to its latest release.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 97833 1

2 packages built:

esphome
platformio


v4.0.2 release

If the proxy support is fixed by https://github.com/mapbox/node-sqlite3/issues/1010#issuecomment-403339755 I'll cut a new release
refs https://github.com/mapbox/node-pre-gyp/issues/400

<EMAIL_ADDRESS>is now published


[BUG] TODO

Description

SkCamera.h and SkMatrix44.h are DEPRECATED.
Use SkM44 if you want to have 3d transformations.

GrContext::createBackendTexture functions that initialize the texture no longer
guarantee that all the data has been uploaded and the gpu is done with the texture.
Instead the client can assume the upload work has been submitted to the gpu and they
must wait for that work to finish before deleting the texture. This can be done via
their own synchronization or by passing in a finish proc into the create calls which
will be called when it is safe to delete the texture (at least in terms of work
done during the create).
https://review.skia.org/286517

Add api on GrContext, updateBackendTexture that will upload new data to a
GrBackendTexture.
https://review.skia.org/288909

Added GrContext::oomed() which reports whether Skia has seen a GL_OUT_OF_MEMORY
error from Open GL [ES] or VK_ERROR_OUT_OF_*_MEMORY from Vulkan.
https://review.skia.org/298216

GrContext::abandoned()

BTW, I think
GrContext::abandoned()

would help with #1573 and #1642
since I didn't see a SkiaSharp level way to tell if another SKSwapChainPanel had abandonded the resources for a GrContext. But I'm not sure the current abandon behavior is appropriate anyhow?

Not really a bug but imperative for skiasharp v3?..

For this, we have them mostly done:

We have the SKMatrix44 now
We can add this overload later if it is needed as it is additive
Not sure we need this API, if we do, we can add it later
We can add this later if there is a need
This has been added already

We have some and the others are new APIs that we can add later.

Was there any specific item you needed?


fix: map the Kafka statuses returned from the API to the one recognized by the UI

Hey all! I had to merge this to be sure we were covering the failed state without any error on the UI, but please keep the conversation going as we still need to properly map the suspended states.


Resource validation API endpoint

Are there any recommendations for API endpoints which will be responsible for resource data validation?
It is "nice to have" feature if you would like to allow your users for validation without need to create/update resource (e.g. during filling the form).

ref https://github.com/json-api/json-api/pull/1107


Support for scipy sparse matrices

Would it be possible to add support for scipy sparse matrices when observing variables. I have a situation where the state space for an observed (multinomial) node is large but the number of states observed for any observation will be much smaller than the size of the state space. Currently, observing data requires specifying a value for all possible states but it would be useful to not have to specify states with a 0 value.
Perhaps, there is something about the structure of the code which makes this difficult or impossible to support but if its possible I could significantly reduce memory usage in my project.
Thanks!

Yep, that's a good idea. However, at least some years ago sparse matrices were buggy and caused a lot of pain because some NumPy functions didn't work out of the box but one needed to write if-clauses and special treatment for sparse matrices. I don't know what's the status now. Also, at that time, SciPy supported only sparse matrices, not arrays. I think that hasn't changed. That's a bit of a problem because BayesPy is based on supporting arrays (e.g., one can specify multiple plate axes). So, the support would be limited to matrices only, though that would suffice for your case, I suppose.
Another possible solution is to store the observed state index instead of zeros for all other states and one for the observed state. However, this leads to different handling of observed and latent multinomial nodes. Also, it would be a bit difficult to support multinomial nodes that are partially observed.
So neither solution is perfect but they have their advantages, and I suppose either one would solve your problem. I need to think about this a little bit.

Note to self: Add support in such a way that if the observation array is given as a sparse scipy matrix, then it will stay that way without conversion to a dense array.

Thanks for considering the addition of this feature. I guess if a library doesn't strictly follow the numpy array API, such a change would require many more changes throughout the BayesPy code base. So, a library such as this one wouldn't be ideal:
https://pythonhosted.org/sppy/csarray.html

For your information, I looked into this during the weekend. I didn't quite finish it yet, perhaps 2/3 done, but I think sparse matrix support can be added. But it's a bit fragile because of the extremely bad sparse matrix compatibility with NumPy. Anyway, I hope I find time to finish it soon.

That is awesome. Thanks! Looking forward to seeing this feature

I implemented very limited support for sparse matrices in Multinomial and Mixture nodes. It's available in the same branch as before:  feature/backpropagation-messaging. This feature is useful if you have a large number of samples from a high-dimensional Multinomial mixture distribution with only a small number of non-zero observations.
First, disclaimer: As I said, sparse matrix support in NumPy/SciPy is very bad and now I believe so even more. For instance, some operations with sparse matrices return weird arrays with sparse matrices as object elements, if the operation doesn't support sparse matrices. Also, I reported a bug to SciPy that sparse and dense element-wise multiplication results in a dense array instead of sparse matrix when broadcasting occurs. Also, no support for sparse arrays/tensors, and numpy.einsum doesn't work with sparse matrices. And so on, and so on, the list goes on... So, if you try to play with sparse matrices and end up seeing something weird you don't understand, it's probably related to these issues.
For these reasons, the support is rather fragile, and the model must be created in a specific way. Below is a working example, I hope you can modify that to your use case. But the main point I'd like to emphasize is that cluster_plate must be set to -2, that is, the second last plate axis in the multinomial parameters is the cluster axis.
import numpy as np
from scipy import sparse
import bayespy as bp

np.random.seed(42)

# Dimensionality of the multinomial vectors
D = 100

# Number samples
N = 1000

# Number of estimated clusters
K = 10

# Number of true clusters
K_true = 3

# Number of trials in the multinomials
L = 20

# Prior cluster assignment probabilities
alpha = bp.nodes.Dirichlet(np.ones(K))

# Unknown cluster assignments
Z = bp.nodes.Categorical(alpha, plates=(N,))

# Probability vector for each cluster.
# NOTE: because cluster plate axis is the second last axis, we need to add a singleton
# plate axis to the end
p = bp.nodes.Dirichlet(1e0*np.ones(D), plates=(K, 1))

# Multinomial observations. NOTE: cluster_plate must be -2!
Y = bp.nodes.Mixture(Z, bp.nodes.Multinomial, L, p, cluster_plate=-2)

# Generate random data from three clusters
# NOTE: This creates the data matrix as dense array first, so don't try to create huge datasets with this.
y = sparse.csr_matrix(
    bp.nodes.Multinomial(
        L,
        bp.nodes.Dirichlet(3e-2*np.ones(D), plates=(K_true,)).random()[np.random.randint(0, K_true, N)]
    )
    .random()
)

Y.observe(y)

# For comparison, you can try with dense data array
#Y.observe(y.toarray())

# Initialize soft cluster assignments randomly to break the symmetry in the model
Z.initialize_from_random()

# Run inference
Q = bp.inference.VB(Y, p, alpha, Z)
Q.update(p, Z, alpha, repeat=100)

I don't have very good visualization tools available. Below is some very simple ones. Please ask if you have problems examining the results as you'd like.
%matplotlib notebook

# Some visualizations. These aren't very efficient, might not work (or might take a huge amount of time)
# for large variables

bp.plot.plt.figure()
bp.plot.hinton(Z, square=False)

bp.plot.plt.figure()
bp.plot.hinton(p[:,0], square=False) # need to get rid of the singleton plate axis because of bad support in Hinton

If you get an error that says "Requested sparse matrix sum-multiply not implemented", just give the error message details and I can probably easily add support, no problem.
I haven't thoroughly tested this feature, but at least it seemed to work and I got some speed improvements for large datasets. Please report if you notice anything weird or something doesn't work. It might be that, for instance, I've missed some spot where intermediate large dense arrays are created.

Awesome! Thanks. I will give this a try.

Sorry for the delay on providing feedback on this. It seems that with the changes to allow support for sparse matrices, I can no longer provide multinomial observations with a non-uniform number of trials. When specifying the mixture node representing my observation node, I provide the number of trials as an array when constructing the node. In the case that I use a dense array to run inference, this setup works. However, when I use a sparse matrix for my observations, I get the following error:
self = <bayespy.inference.vmp.nodes.multinomial.MultinomialDistribution object at 0x7f3e5a770c88>
x = <92370x256 sparse matrix of type '<class 'numpy.uint32'>'
        with 7127088 stored elements in Compressed Sparse Row format>
mask = True

    def compute_fixed_moments_and_f(self, x, mask=True):
        r"""
            Compute the moments and :math:`f(x)` for a fixed value.
            """

        # NOTE: In order to support sparse data, we must use some thin wrappers
        # over some of the NumPy functions

        # Check that counts are valid
        x = misc.asarray(x)
        if not misc.isinteger(x):
            raise ValueError("Counts must be integers")
        if misc.any(x < 0):
            raise ValueError("Counts must be non-negative")
        if np.any(np.sum(x, axis=-1) != self.N):
>           raise ValueError("Counts must sum to the number of trials")
E           ValueError: Counts must sum to the number of trials

Is there a way to set a non-uniform number of trials for the observation node or is that a casualty of providing this feature?

Ok, good catch, thanks! I'm just going for a short holiday so I won't have time to look at this until next week some day. Sorry for the inconvenience.

No problem. Enjoy your holiday!

Should be fixed now. In the same branch as before.

Thanks! Just letting you know that, using the updated code, the problem is no longer present.


Auto coercion

Is there some way to make the text class auto coerce into character strings? For example:
test <- tempfile()
jsonlite::stream_out(nycflights13::flights, file(test))
flights3 <- corpus::read_ndjson(test)

This gives an error for functions that assume a character vector:
dplyr::group_by(flights3, tailnum)
# Error in grouped_df_impl(data, unname(vars), drop) :
#   cannot group column tailnum, of class 'text'

Probably not, but I'm open to suggestions. In the meantime, dplyr::group_by(flights3, as.character(tailnum)) works.

The more fundamental issue is that read_ndjson will treat JSON character string data as text, not as character. I'm not thinking that the client should have more control over this, with the ability to specify that some columns should be text and the others should be character. A few options I've thought of so far:

strings_as_text = FALSE, an option to treat all JSON character strings as text. The control level seems to coarse here, and this behavior is probably never what you want.

text_fields = c("text"), an option that takes a list of field names to treat as text; all other character strings get treated as character. Default is to treat a field named text (if one exists) as text.

text_fields = NULL. All JSON character strings are character by default. This hides the text data type from the user unless she explicitly opts for it. Specifying mmap=TRUE won't have any effect on memory usage unless you also specify text_fields.

I'm leaning towards option 2 right now.

The latest commit (e1c0f2ea97edd25f89c560d55c09b44f3c17d289) implements option 2. I'm closing the issue, but if anyone has a better solution, I'd be happy to hear it.


Wrong labels for interrupt names in gpio_wakeup_enable

More small stuff.  If we look at the comment on gpio_wakeup_enable found here:
https://github.com/espressif/esp-idf/blob/master/components/driver/include/driver/gpio.h#L345
We see that the choices are GPIO_INTR_LOLEVEL and GPIO_INTR_HILEVEL.  I think these may be the wrong names and are likely to be GPIO_INTR_LOW_LEVEL and GPIO_INTR_HIGH_LEVEL.

Fixed in master


Add banner to the data

Describe the bug
Extend metadata entity with banner: String
When parsing metadata check if the banner is available.
Additional context
It would be nice to leverage - https://github.com/kodadot/packages/pull/176

link kodadot/packages#184


Write Background of the report

Base background off of "Background" section in report from last semester
Write in full paragraphs

Beatriz completed the background of the report.

Night Time Parenting’s motivation and ultimate goal is to provide a solution to help ease the stressful and negative feelings that come along with taking care of an infant at night. After researching the endless struggles that new parents have to deal with when bringing in a new infant to their lives, it became evident that parents need to feel positive about caring for newborns so that they don’t get burnt out because then, the baby and parents suffer. Our company has worked on innovating an engineering design solution that enforces encouragement, peace, and equality within the parenting and child caring dynamic. Existing alternatives to solving this problem include meditation apps that help a parent follow a breathing routine to recompress. Motivational posters can be used to aid in encouragement. However, there hasn't been a system that fully integrates all these solutions into one to provide the optimal experience for the parent. Our company has taken an engineering approach to design and develop a fully integrated solution to meet the needs of parents who just need an extra helping hand.

Reviewed and moved to done


Bad performance on Windows 10

I'm trying to use this on my Windows 10, but the performance is too bad please fix it. D:

Did you try installing GNU/Linux?

no u

everything that exists has bad performance in Windows 10, because is windows 10.
I hope this help you
Kind regards,

The best solution to fix this problem is to remove windows from existence. :)


Clarify param not working

closes https://github.com/MicrosoftDocs/office-docs-powershell/issues/10688

@JensTrier

@get-itips I think also Skip is not working.

@get-itips in the past, we've asked the individual to open a support case for what one might consider a bug, rather than making changes to the documentation.

It's true however, I was directed by the Article's author to add that sentence.

@tseward

@tiburd Please merge this PR. Thanks


Feature/22 feature method to automatically generate alias names adds aliases based on pre defined strategies

add auto_alias decorator which constructors valiased descriptor with aliases based on predefined strategies.
this should resolve #22

so far, I've added short and sub parameters which both take int | list[int] as the ending index for a slice of the original method name.
short also takes True to indicate all ending indexes less than the length of the original method name should be added.
More details will be added to #22


Added docker

I purpose to add docker to build quickly the Curvytron server!
To build:
(curvytron) $ docker build -t curvytron .

To run:
$ docker run --name curvytron -p 80:8080 curvytron

Also, you can add this repository in Docker Hub to use docker pull.
Kiss :kiss:

Awesome :clap:

yay

Are you sure it's a good practice to RUN a single command combined with logical &&? I think the dependencies installation step should be done before the ADD, so it can be cached properly.

@emerick42 Good point!
But the first Dockerfile built an image with a size of 303.4 MB.
If I separate RUN to optimize the cache of different step, I have an image with a size of 539.4 MB.

Do you know why the container is larger?

Yes! Docker works same that git. Each statement (RUN, ENV, EXPOSE, CMD, ....) is committed.

In fact, the first Dockerfile, add dependencies in container but the dependencies are removed in same statement.
In second Dockerfile, the first RUN statement is committed with dependencies.
You can use docker history curvytron to see each commit.

Ok, I got it. I think the second option is better, at least to respect Docker's way of doing things. Did you check on other official images if they were doing optimizations like this one?

The last version is better to rebuild quickly a new container. It's ~230 MB additional.
To download the initial image from Docker Hub isn't not dramatic.


GetNavigation deep link bug on android devices

When I click on a deep link about my app iOS devices works properly. They can opens the given page in the link with parameters. But android devices cannot open links which are includes parameters. It throws error.
I/flutter (22040): Null check operator used on a null value
I/flutter (22040): #0      ParseRouteTree._parseParams (package:get/get_navigation/src/root/parse_route.dart:173)
I/flutter (22040): #1      ParseRouteTree.matchRoute (package:get/get_navigation/src/root/parse_route.dart:64)
I/flutter (22040): #2      PageRedirect.needRecheck (package:get/get_navigation/src/routes/route_middleware.dart:258)
I/flutter (22040): #3      PageRedirect.page (package:get/get_navigation/src/routes/route_middleware.dart:199)
I/flutter (22040): #4      GetMaterialApp.initialRoutesGenerate (package:get/get_navigation/src/root/get_material_app.dart:348)
I/flutter (22040): #5      _WidgetsAppState.build.<anonymous closure> (package:flutter/src/widgets/app.dart:1682)
I/flutter (22040): #6      NavigatorState.restoreState (package:flutter/src/widgets/navigator.dart:3609)

Map<String, String> _parseParams(String path, PathDecoded routePath) {
    final params = <String, String>{};
    var idx = path.indexOf('?');
    if (idx > -1) {
      path = path.substring(0, idx);
      final uri = Uri.tryParse(path);
      if (uri != null) {
        params.addAll(uri.queryParameters);
      }
    }
    var paramsMatch = routePath.regex.firstMatch(path);

    for (var i = 0; i < routePath.keys.length; i++) {
      var param = Uri.decodeQueryComponent(paramsMatch![i + 1]!);
      params[routePath.keys[i]!] = param; // Throws error.
    }
    return params;
  }
}

Flutter Version:  3.16.0
GetX Version: 4.6.6

Is issue resolved for me also same error

I have the same issue. The initial route name in my project is already '/' and I've downgraded get to 4.6.5. Didn't work.
Any other ideas?

I've submitted a PR (#3067) that aims to address the problem you've encountered.


SASS-1287: Added payroll id page

Description

Added the get/post for the payroll id page

Add a link to the relevant story in Jira
https://jira.tools.tax.service.gov.uk/browse/SASS-1235
Checklist PR Reviewer
Before Reviewing

[ ]  Have you pulled the branch down?
[ ]  Have you assigned yourself to the PR?
[ ]  Have you moved the task to “in review” on JIRA?
[ ]  Have you checked to ensure all dependencies are up to date?
[ ] Have you checked to ensure its been rebased against the current version of master?

Whilst Reviewing

[ ]  Have you run the tests?
[ ]  Have you looked at the JIRA story to make sure all Acceptance Criteria has been met?

After Reviewing

[ ] Have you checked for merge conflicts or any changes in the current master that may affect the current pull request? i.e. does it need another rebase?
[ ]  Have you checked to make sure there are no builds in the pipeline before you merge?
[ ]  Have you moved the task to “in pipeline” on Jira?

[x]  Have you addressed warnings where appropriate?
[x] Have you rebased against the current version of master?

This needs to be merged with the journey-tests https://github.com/hmrc/income-tax-submission-journey-tests/pull/84 and employment-fe https://github.com/hmrc/income-tax-employment-frontend/pull/108

The auto build could be bumped to 3.5.0


Ignore subtracks like 1-03a 1-03b

Albums with subtracks containing alphabetical characters (e.g. 1-03a) should be ignored. Attaching proposed patch tested against a few albums with such subtracks.
subtracks_patch.txt

hi @jruaux thanks a lot for your contribution.  I will take a look at this in the coming week.
The freeform naming of discogs tack numbers has always been a pain. This would be a great addition. Warning though, I haven't touched this tool for some time now and I did didn't write a single test case :( ... I will work to merge these changes ASAP.


Resolve circular import for Operation and PathItem

When Callbacks were added in #568 , it doesn't appear they were actually tested. Trying to generate a client for a minimal schema with a callback results in the following error:
openapi-python-client generate --path min_callback.json
Traceback (most recent call last):

  File "/home/user/.local/bin/openapi-python-client", line 8, in <module>
    sys.exit(app())

  File "/home/user/.local/pipx/venvs/openapi-python-client/lib/python3.10/site-packages/openapi_python_client/cli.py", line 142, in generate
    errors = create_new_client(

  File "/home/user/.local/pipx/venvs/openapi-python-client/lib/python3.10/site-packages/openapi_python_client/__init__.py", line 338, in create_new_client
    project = _get_project_for_url_or_path(

  File "/home/user/.local/pipx/venvs/openapi-python-client/lib/python3.10/site-packages/openapi_python_client/__init__.py", line 311, in _get_project_for_url_or_path
    openapi = GeneratorData.from_dict(data_dict, config=config)

  File "/home/user/.local/pipx/venvs/openapi-python-client/lib/python3.10/site-packages/openapi_python_client/parser/openapi.py", line 511, in from_dict
    openapi = oai.OpenAPI.parse_obj(data)

  File "pydantic/main.py", line 521, in pydantic.main.BaseModel.parse_obj

  File "pydantic/main.py", line 339, in pydantic.main.BaseModel.__init__

  File "pydantic/main.py", line 1038, in pydantic.main.validate_model

  File "pydantic/fields.py", line 859, in pydantic.fields.ModelField.validate

  File "pydantic/fields.py", line 994, in pydantic.fields.ModelField._validate_mapping_like

  File "pydantic/fields.py", line 1067, in pydantic.fields.ModelField._validate_singleton

  File "pydantic/fields.py", line 857, in pydantic.fields.ModelField.validate

  File "pydantic/fields.py", line 1074, in pydantic.fields.ModelField._validate_singleton

  File "pydantic/fields.py", line 1121, in pydantic.fields.ModelField._apply_validators

  File "pydantic/class_validators.py", line 313, in pydantic.class_validators._generic_validator_basic.lambda12

  File "pydantic/main.py", line 686, in pydantic.main.BaseModel.validate

  File "pydantic/main.py", line 339, in pydantic.main.BaseModel.__init__

  File "pydantic/main.py", line 1038, in pydantic.main.validate_model

  File "pydantic/fields.py", line 857, in pydantic.fields.ModelField.validate

  File "pydantic/fields.py", line 1074, in pydantic.fields.ModelField._validate_singleton

  File "pydantic/fields.py", line 1121, in pydantic.fields.ModelField._apply_validators

  File "pydantic/class_validators.py", line 313, in pydantic.class_validators._generic_validator_basic.lambda12

  File "pydantic/main.py", line 686, in pydantic.main.BaseModel.validate

  File "pydantic/main.py", line 339, in pydantic.main.BaseModel.__init__

  File "pydantic/main.py", line 1038, in pydantic.main.validate_model

  File "pydantic/fields.py", line 859, in pydantic.fields.ModelField.validate

  File "pydantic/fields.py", line 994, in pydantic.fields.ModelField._validate_mapping_like

  File "pydantic/fields.py", line 1067, in pydantic.fields.ModelField._validate_singleton

  File "pydantic/fields.py", line 833, in pydantic.fields.ModelField.validate

pydantic.errors.ConfigError: field "_callbacks" not yet prepared so type is still a ForwardRef, you might need to call Operation.update_forward_refs().

Schema used:
{
  "openapi": "3.0.1",
  "info": {
    "title": "An API with Callback",
    "version": "v1"
  },
  "paths": {
    "/create": {
      "post": {
        "responses": {
          "200": {
            "description": "Success"
          }
        },
        "callbacks": {
          "event": {
            "callback": {
              "post": {
                "responses": {
                  "200": {
                    "description": "Success"
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

This is due to a circular import dependency of  Operation -> Callback -> PathItem -> Operation -> ...
This PR delays the imports in Operation and PathItem and uses the update_forward_refs() to update those references after each class is created.
I'm not very experienced with pydantic, so there may well be a better method for resolving this issue.

Thanks @dachucky ! Could you add a little callback example to end_to_end_tests/openapi.json just to verify that nothing else breaks in the full flow?


Top portion of the completion popup invisible due to odd positioning

This happens when the editor is maximized, triggered by having the following

export function test(inp: [string]): string {
    inp.map()
}

Typing inp.map(, the popup will have this odd positioning.
OS: Windows 10.0.18362
oni2 Version: <IP_ADDRESS>, Date: 7/18/2020, 12:13:37 AM, Commit: 1b9250b2

It seems like we're always opening the pop-up at the top - even if we're too close.
We might want to add some positioning logic - if it's too close to the top, we'll open at the bottom. We'd need to merge it with the completion UI in that case (otherwise either the signature help or completion could be covered up).
@zbaylin - do you think you could take a look at this one? It'd be great if we could have our positioning logic apply to both hover and signature help, as hover likely will this too.

Thanks for the report @johnmave126! This should be a pretty easy fix since the component that houses the pop-up can be set to display below. I'll work on this soon!

Getting this one too.... (think it's the same issue)

Possibly related: language hovers also end up getting cut off if they're near the edge of the window:


Add global step templates

Once the list of tasks grows, you get a lot of copy/pasting of commonly-used steps, such as this one:
steps:
  - name: Validate Customer UUID
    description: |-
      Validate the customer UUID format as UUIDv4.
    processor:
      stringRegex:
        input: '{{ var["Customer UUID"] }}'
        regex: >-
          \A[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}\z
        mismatchError: The provided customer UUID has an invalid format.

  - name: Other Step
    ...

It would be nice if there was some kind of (optional) feature that allows you to define global steps (somewhat similar to global variables #24) that can be shared across tasks.
For starters, such a step could be used as:
steps:
  - template: Validate Customer UUID
  - name: Other Step
    ...

The concept would probably be based on inheritance. You can define a template key to inherit any properties set in that template, and then override what you need changed in your own task.
There are still plenty of design decisions to make, and gotchas to consider, but the general concept of this is very useful for larger Automaat instances.

Another approach to inheritance would be to allow step templates to define their own required arguments, so that a template can be configured on a per-need basis, for example:
steps:
  - template:
      id: Regex String Validation
      config:
        name: Validate Customer UUID
        regex: ...
  - name: Other Step
    ...

But, this would make things way more complex, for probably too little gain. Just putting this out there as a possibility, but I'm not a big fan of this over the inheritance approach.

One case that could be made against this feature is that there is nothing preventing someone running their own Automaat instance from using their own pre-processing system to inject these steps based on their own needs.
For example, if you have your own my_task.yml, you could pre-process that file before using its definition to trigger the Automaat API calls to create the task, and inject pre-defined steps from some other file based on some templating strings such as {{ include "my pre-defined step" }}.
That would keep Automaat itself simpler, but still provide the same result, I believe.


Missing inbound endpoint when activating PeerAuthentication with STRICT mtls mode

Is this the right place to submit this?

[X] This is not a security vulnerability or a crashing bug
[X] This is not a question about how to use Istio

Bug Description
I am trying to enable the PeerAuthentication with mtls mode set to STRICT:
apiVersion: security.istio.io/v1beta1
kind: PeerAuthentication
metadata:
  name: istio-peer-auth
  namespace: istio-system
spec:
  mtls:
    mode: STRICT

After enabling the listening endpoint (inbound) is disapearing from on of my pods.
Before:
ENDPOINT               STATUS      OUTLIER CHECK     CLUSTER
x.x.118.10:8529     HEALTHY     OK                outbound|8529||arango-coordinator-qa3nljvz.ns-kch-test.svc.cluster.local
x.x.118.10:8529     HEALTHY     OK                outbound|8529||arango.ns-kch-test.svc.cluster.local
x.x.118.13:8529     HEALTHY     OK                outbound|8529||arango-agent-af0vtgfr.ns-kch-test.svc.cluster.local
x.x.118.20:8529     HEALTHY     OK                outbound|8529||arango-agent-r4rwf9oq.ns-kch-test.svc.cluster.local
x.x.118.28:8529     HEALTHY     OK                outbound|8529||arango-agent-tmezmxof.ns-kch-test.svc.cluster.local
x.x.118.39:8529     HEALTHY     OK                inbound|8529||
x.x.118.39:8529     HEALTHY     OK                outbound|8529||arango-dbserver-bhze9tqt.ns-kch-test.svc.cluster.local
x.x.118.42:8529     HEALTHY     OK                outbound|8529||arango-dbserver-gcgmql59.ns-kch-test.svc.cluster.local
x.x.118.51:8529     HEALTHY     OK                outbound|8529||arango-dbserver-kfcgzmss.ns-kch-test.svc.cluster.local
x.x.118.9:8529      HEALTHY     OK                outbound|8529||arango-coordinator-x2b0bhw5.ns-kch-test.svc.cluster.local
x.x.118.9:8529      HEALTHY     OK                outbound|8529||arango.ns-kch-test.svc.cluster.local
And after:
x.x.118.10:8529     HEALTHY     OK                outbound|8529||arango-coordinator-qa3nljvz.ns-kch-test.svc.cluster.local
x.x.118.10:8529     HEALTHY     OK                outbound|8529||arango.ns-kch-test.svc.cluster.local
x.x.118.13:8529     HEALTHY     OK                outbound|8529||arango-agent-af0vtgfr.ns-kch-test.svc.cluster.local
x.x.118.20:8529     HEALTHY     OK                outbound|8529||arango-agent-r4rwf9oq.ns-kch-test.svc.cluster.local
x.x.118.28:8529     HEALTHY     OK                outbound|8529||arango-agent-tmezmxof.ns-kch-test.svc.cluster.local
x.x.118.42:8529     HEALTHY     OK                outbound|8529||arango-dbserver-gcgmql59.ns-kch-test.svc.cluster.local
x.x.118.51:8529     HEALTHY     OK                outbound|8529||arango-dbserver-kfcgzmss.ns-kch-test.svc.cluster.local
x.x.118.63:8529     HEALTHY     OK                outbound|8529||arango-dbserver-bhze9tqt.ns-kch-test.svc.cluster.local
x.x.118.9:8529      HEALTHY     OK                outbound|8529||arango-coordinator-x2b0bhw5.ns-kch-test.svc.cluster.local
x.x.118.9:8529      HEALTHY     OK                outbound|8529||arango.ns-kch-test.svc.cluster.local
The communication stops working to that particular pod.
Do you have any idea why this would happen? Or where to look for the problem?
Version
client version: 1.22.3
control plane version: 1.21.0
data plane version: 1.21.0 (51 proxies)

Additional Information
No response

We get these errors on the inbound connection:
2024-07-29T12:01:27.930Z] "- - -" 0 NR filter_chain_not_found - "-" 0 0 0 - "-" "-" "-" "-" "-" - - <IP_ADDRESS>:8529 <IP_ADDRESS>:40040 - -
[2024-07-29T12:01:27.968Z] "- - -" 0 NR filter_chain_not_found - "-" 0 0 0 - "-" "-" "-" "-" "-" - - <IP_ADDRESS>:8529 <IP_ADDRESS>:40046 - -

That endpoints is not configured statically, it just shows up when there has been a connection to it. So you get an error and thus no connection so no endpoints.
The error means the client is not sending mtls

How could I check if the other end is sending mtls? Everything in the namespace is configured with istio

you can use tcpdump

I have added a destination rule that specifies tls ISTIO_MUTUAL option and it works now.

I have added a destination rule that specifies tls ISTIO_MUTUAL option and it works now.


Blame Sequence File Changes

Blame Sequence File Changes
Added Display name and Is Test Completed in the sequence file that is generated by BlameDataCollector

@kaadhina Please review these changes

        this.mockFileHelper.Setup(m => m.Exists(It.IsAny<string>())).Returns(true);

Add validations for the new attributes

Refers to: test/Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests/XmlReaderWriterTests.cs:107 in 353998e. [](commit_id = 353998e49883efc9cf13e44c93dca90c5d90e67d, deletion_comment = False)

@dotnet-bot test this please


improve unit test in order to reduce execution time.

@jframos

Coverage increased (+0.06%) to 47.0% when pulling 53fee131264fb9b8b061f0b45ad3aeb0bdac6850 on jesuspg:bug/unit_test_sleep into 88123804a0e6201b298feb73075e88588a8e911f on telefonicaid:develop.

Coverage increased (+0.06%) to 47.0% when pulling 4772e84aa3f87400f9f0e2db95fa52f7573239f0 on jesuspg:bug/unit_test_sleep into 88123804a0e6201b298feb73075e88588a8e911f on telefonicaid:develop.

LGTM


Getting an extra empty space on payment method

Describe the bug
On iOS, When I click on start payment I get an extra blank space with a blank button next to "New card". When I clicked on this empty space the app crashes and I get this error on Xcode:

How can I fix this?
Screenshots

help?

same error

Hi guys, would you make to make a repro case repository? Just to check it out more easily.
But this seems not an issue with the library itself, maybe the API response after creating a preference is the problem. Would like to see how are you dealing with preference creation in backend too if possible.


Callback for targets

Describe the solution you'd like
A callback should be assigned to the target system to handle the delay between spells and the upcoming target cursor packet like Razor does.

I thought about that.
It's not necessary to add this feature. Simply use the Update() function to handle it.

You press the button of healtbar to heal  the healthbar owner (GameActions.CastSpell()).
add tow field inside party healtbar : _timeToTarget, _spellTarget.  After GameActions.CastSpell(), set timeToTarget = CoreGame.Ticks + 500 and _spelltarget = healtbar owner,
-intop the Update() check if a _spelltarget != null && TargetSystem.IsTargeting && _timeToTarget > totalms, then send the target with TargetSystem.SetTarget(heatlbar owner)


Revert "Chef Automate HA Pre-Requisites"

Reverts chef/automate#7735

Changes made in another branch.!


Replace EntityManager with EntityManagerInterface

Making a small change so that the worker type hints the interface rather than the class. This is to support alternative implementations of the EM. (In my case I'm using a proxy object. I should be able to just implement the interface, but I need to extend the EM in order for this worker to use it.)

Coverage remained the same at 75.676% when pulling 4009def39d5f4c65619dbea0019e1769faf852ba on jon-frankel:patch-1 into 21744ad28dce46576628920d3962e23381492355 on maxbrokman:0.3.


When will RAWCooked move from alpha to production ready?

What are the milestones for moving out of alpha, and what conditions are to be met for this tool being 'production ready'?
On our end, I think I'd be satisfied with having a workflow/script in place that performs the normalisation and then performs a losslessness check. I'm curious to know what others think.

Milestone was "April", obviously it was not here in April.
Not an excuse, I got some unexpected work on other tools, and I did not work enough on RAWcooked but I plan to have a lot of time for RAWooked in September, so my updated goal is to move to "production ready" before No Time To Wait 3.
Conditions:

implementation of the licensing part (restrict binaries to 8/10-bit DPX and 16-bit WAV if no license) in order to motivate new sponsors.
implementation of some TIFF and AIFF support in order to be sure it is well designed for handling several input formats.
implementation of the support of reels in order to be sure it is well designed for handling "concatenated" WAV in the MKV/FFV1/FLAC and during revert.
Code cleanup

Also, users need to test, test and test ;-).

That's great to know Jerome. It does seem to me to be very useable in a production environment at the moment, though more testing and validation is needed on the user's part prior to real-world use.

@kieranjol @JeromeMartinez As on Tuesday the first official version should be released, I guess this issue could be closed now.


Visitor: See dishes

As a Visitor
In order to choose dishes.
I need to be able to see a menu with dishes.

/Users/fredrikfalkman/Desktop/IMRDP1-Dronie.jpg


permission issue

believe this might be introduced with the upgrade command
pip has a admin issue with pyside module
C:\Users\user>"C:\\Program Files\\Blender Foundation\\Blender 3.2\\3.2\\python\\bin\\python.EXE" -m pip install --upgrade -r "C:/Users/user/AppData/Local/Temp/plugget/blender/halfsword-tools/latest/halfsword-tools/requirements.txt" -t "C:/Users/user/AppData/Roaming/Blender Foundation/Blender/3.2/scripts/modules" --no-user
Collecting buttonizer@ git+https://github.com/hannesdelbeke/buttonizer@main (from -r C:/Users/user/AppData/Local/Temp/plugget/blender/halfsword-tools/latest/halfsword-tools/requirements.txt (line 1))
  Cloning https://github.com/hannesdelbeke/buttonizer (to revision main) to c:\users\user\appdata\local\temp\pip-install-_xcuhykv\buttonizer_21888e12ff2b4c1c9fd7327d6d403bb5
  Running command git clone --filter=blob:none --quiet https://github.com/hannesdelbeke/buttonizer 'C:\Users\user\AppData\Local\Temp\pip-install-_xcuhykv\buttonizer_21888e12ff2b4c1c9fd7327d6d403bb5'
  Resolved https://github.com/hannesdelbeke/buttonizer to commit 618f4d51ea4e51edcdb9a81968ed3179c6cffc11
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Collecting unimenu (from -r C:/Users/user/AppData/Local/Temp/plugget/blender/halfsword-tools/latest/halfsword-tools/requirements.txt (line 2))
  Using cached unimenu-3.0.0-py3-none-any.whl (17 kB)
Collecting pyyaml (from -r C:/Users/user/AppData/Local/Temp/plugget/blender/halfsword-tools/latest/halfsword-tools/requirements.txt (line 3))
  Using cached PyYAML-6.0-cp310-cp310-win_amd64.whl (151 kB)
Collecting PySide2 (from buttonizer@ git+https://github.com/hannesdelbeke/buttonizer@main->-r C:/Users/user/AppData/Local/Temp/plugget/blender/halfsword-tools/latest/halfsword-tools/requirements.txt (line 1))
  Using cached PySide2-<IP_ADDRESS>-5.15.2-cp35.cp36.cp37.cp38.cp39.cp310-none-win_amd64.whl (137.4 MB)
Collecting shiboken2==<IP_ADDRESS> (from PySide2->buttonizer@ git+https://github.com/hannesdelbeke/buttonizer@main->-r C:/Users/user/AppData/Local/Temp/plugget/blender/halfsword-tools/latest/halfsword-tools/requirements.txt (line 1))
  Using cached shiboken2-<IP_ADDRESS>-5.15.2-cp35.cp36.cp37.cp38.cp39.cp310-none-win_amd64.whl (2.3 MB)
Building wheels for collected packages: buttonizer
  Building wheel for buttonizer (pyproject.toml) ... done
  Created wheel for buttonizer: filename=buttonizer-0.0.3-py3-none-any.whl size=4004 sha256=c309743233089ec60dc782ef69eff2beacf460cc0fc257bb09b298be9c440f5f
  Stored in directory: C:\Users\user\AppData\Local\Temp\pip-ephem-wheel-cache-kt4xdagv\wheels\0f\2a\07\69ec473eb266995e940eed99f2ea0abc029e14752f5145077b
Successfully built buttonizer
Installing collected packages: unimenu, shiboken2, pyyaml, PySide2, buttonizer
Successfully installed PySide2-<IP_ADDRESS> buttonizer-0.0.3 pyyaml-6.0 shiboken2-<IP_ADDRESS> unimenu-3.0.0

ERROR: Exception:
Traceback (most recent call last):
  File "C:\Users\user\AppData\Roaming\Python\Python310\site-packages\pip\_internal\cli\base_command.py", line 169, in exc_logging_wrapper
    status = run_func(*args)
  File "C:\Users\user\AppData\Roaming\Python\Python310\site-packages\pip\_internal\cli\req_command.py", line 248, in wrapper
    return func(self, options, args)
  File "C:\Users\user\AppData\Roaming\Python\Python310\site-packages\pip\_internal\commands\install.py", line 507, in run
    self._handle_target_dir(
  File "C:\Users\user\AppData\Roaming\Python\Python310\site-packages\pip\_internal\commands\install.py", line 562, in _handle_target_dir
    shutil.rmtree(target_item_dir)
  File "C:\Program Files\Blender Foundation\Blender 3.2\3.2\python\lib\shutil.py", line 739, in rmtree
    return _rmtree_unsafe(path, onerror)
  File "C:\Program Files\Blender Foundation\Blender 3.2\3.2\python\lib\shutil.py", line 612, in _rmtree_unsafe
    _rmtree_unsafe(fullname, onerror)
  File "C:\Program Files\Blender Foundation\Blender 3.2\3.2\python\lib\shutil.py", line 612, in _rmtree_unsafe
    _rmtree_unsafe(fullname, onerror)
  File "C:\Program Files\Blender Foundation\Blender 3.2\3.2\python\lib\shutil.py", line 617, in _rmtree_unsafe
    onerror(os.unlink, fullname, sys.exc_info())
  File "C:\Program Files\Blender Foundation\Blender 3.2\3.2\python\lib\shutil.py", line 615, in _rmtree_unsafe
    os.unlink(fullname)
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\user\\AppData\\Roaming\\Blender Foundation\\Blender\\3.2\\scripts\\modules\\PySide2\\plugins\\imageformats\\qgif.dll'

this issue is hidden atm since not all stuff from subprocess.run is passed to the blender console.
only found this when running manually.
results in confusion, since all we see is a permission error

we ofcourse cant solve every package issue in plugget. but it should be clear why it fails.
TODO
print log output from subprocess

permission issue was caused by using " in subprocess.run
removing this removed it.
also looked into console ouotput being passed to blender console, seems subprocess.run does this already by default on windows, and in realtime


[FLUME-3100] Support arbitrary header substitution for topic of Kafka

@adenes  Thanks for the review. I have updated my pull request.

Thank you for the updated patch, it looks good to me, +1
I'm about to commit this.
(Did you amend the commit and force-pushed? For a more complex pull request it might be better to have multiple commits to be able to see the differences between them. The committers will squash the commits before pushing to the main branch.)


Cluster + Reconnect + Auth - wrong ServerPool list

Hello,
This scenario failed :
auth_5678.conf
port: 5678 # port to listen for client connections

# Authorization for client connections
authorization {
  user:     username
  password: password
  timeout:  1
}

cluster {
  host: '<IP_ADDRESS>'  # host/net interface
  port: 5670       # port for inbound route connections

  # Authorization for route connections
  authorization {
    user: clusterlogin
    password: clusterpassword
    timeout: 1
  }
  routes = [
    nats-route://clusterlogin:clusterpassword@localhost:5671
  ]
}

auth_5679.conf
port: 5679 # port to listen for client connections

# Authorization for client connections
authorization {
  user:     username
  password: password
  timeout:  1
}

cluster {
  host: '<IP_ADDRESS>'  # host/net interface
  port: 5671       # port for inbound route connections

  # Authorization for route connections
  authorization {
    user: clusterlogin
    password: clusterpassword
    timeout: 1
  }
  routes = [
    nats-route://clusterlogin:clusterpassword@localhost:5670
  ]
}

Unit Test:
        [Fact]
        public void TestAuthWithClusterFailure()
        {
            NATSServer s1 = null, s2 = null;
            IConnection c = null;
            try
            {
                s1 = util.CreateServerWithConfig("auth_5678.conf");
                s2 = util.CreateServerWithConfig("auth_5679.conf");
                var opts = ConnectionFactory.GetDefaultOptions();
                opts.Servers = new[] {"nats://username:password@localhost:5678","nats://username:password@localhost:5679"};
                opts.AllowReconnect = true;
                opts.MaxReconnect = 10;
                opts.Timeout = 2;
                opts.ReconnectWait = 2;
                c = new ConnectionFactory().CreateConnection(opts);
                Assert.True(c.State == ConnState.CONNECTED);
                s1.Shutdown();
                Thread.Sleep(200);
                s1 = util.CreateServerWithConfig("auth_5678.conf");
                Thread.Sleep(200);
                Assert.Equal(2, c.Servers.Length);
            }
            finally
            {
                c?.Dispose();
                s1?.Shutdown();
                s2?.Shutdown();
            }
        }

The connection server list  is :
nats://username:password@localhost:5678
nats://username:password@localhost:5679
nats://localhost:5678 => generated by the cluster autodiscovery mechanism but without login/pwd ??
3 options :

fix this issue (seems to be a server one)
add an options to not take into account the server discovery messages
add new option properties to manage server auth (if all servers have the same authentication setup)

I can push in few days an improvement for the second option :)
What are you recommending ?
PS: In my environment, I have a 3 servers cluster and the ServerPool list contains 9 items : initial 3 items (nats connection strings with login and password), 3 items with IPv4:port without auth information, and 3 items with IPv6:port without auth information. The client can stay in CONNECTING state once at least one gnatsd process restarted.
Regards,

Hello @sebastien-curutchet , thanks for raising this issue.
If you use the credentials parameters in the options rather than using the username/password in the url, the client will always connect using those credentials including when using urls provided by the server.  We should make this behavior more apparent.
                opts.User = "username";
                opts.Password = "password";

Regarding the extra items in your returned url list, if you specify a specific listen interface, you should only receive one url per server.  The NATS server is returning every interface (including IPv6) as it defaults to <IP_ADDRESS>.
For example:
listen: <IP_ADDRESS>:5678

(change this for your environment)
I hope this helps; please let me know.

Oh sorry, I don't know why, but I haven't seen User and Password properties in Options class.  The UT works fine with these two properties. Thank you.
About making this behavior more apparent, I don't think that is necessary : there are existing UTs with this behavior. Or maybe a quick sample in the main README.md.


JSFiddle example?

Is there a JSFiddle available for an example of json-editor? I'm having trouble getting this up and running with the docs as  a new JS developer.

Look in the examples folder.  basic.html is the bare minimum you need to make JSON Editor work on a page - https://github.com/jdorn/json-editor/blob/master/examples/basic.html

Awesome, thanks so much for creating this!


Can I track red colors with a infrared sensor instead than a web camera?

Hi, I have an infrared array sensor connected to bus 0x68 in my raspberry pi. How can I track red colors from that input? The output is a console cam, code is available here: https://github.com/adafruit/Adafruit_CircuitPython_AMG88xx/blob/master/examples/amg88xx_rpi_thermal_cam_console.py
Thank you !!

Please see the provided examples: https://github.com/gaborvecsei/Color-Tracker/tree/master/examples


debug: Snapshot testing

Operating System

[X] Windows
[X] macOS
[X] Linux
[X] FreeBSD
[ ] OpenBSD
[ ] Android
[ ] iOS
[ ] Nintendo Switch
[ ] PlayStation 5
[ ] Xbox
[ ] Web Browsers

What feature would you like to be added?
Debugging/testing tools to make snapshot testing easier, possibly by exposing some of the internal code used for /image_test.go.
Why is this needed?
Writing snapshot tests that work with go test for generated images is quite tricky because the game loop needs to be running for ebiten.Image methods like .At() to be accessed. I had to open an issue for my framework to try to get some help.
Projects that have achieved it mention how hard it is: https://github.com/tinne26/etxt/blob/main/testdata_generate.go - this file's comments are insightful about the subject:
// Ebitengine is hard to test with "go test" because you need to create
// standalone programs with a main function and so on. There are multiple
// ways to work around that, and the truth is that for testing etxt there's
// already the gtxt CPU version that allows achieving high test coverage
// with a fairly decent degree of reliability. Still, in order to make sure
// that the gtxt version (CPU rendering) and the default Ebitengine version
// (GPU rendering [notice that rasterization still happens on CPU]) results
// are matching, we can use go:generate to run standalone Ebitengine programs,
// get some raw image results, plug that into basic tests and print it all
// as static test files.

With the number of frameworks and custom libraries people make for ebitengine, a simple way to make sure everything renders right I feel is a must.

As the above solution seems enough to you, let me close this.


Add engine field verification with installed-check

I used knip as a good project to verify the latest addition of workspace support in my installed-check module, and I thought I could just as well send a PR in case you are interested in running it yourself.
It mainly verifies that one doesn't promise more in engines.node than what ones dependencies can back up, but it also has checks for whether one is running an outdated node_modules installation (as else the other data will be wrong as it uses the locally installed data for verification) and whether one promises a wider peer dependency range than what ones dependencies does (not applicable to this project)
Running it in verbose mode (--verbose / -v) shows that there are a couple of dependencies who are not publishing a node.js engine range:
@knip/docs: @astro-community/astro-embed-youtube: Missing "engines.node"
@knip/docs: @astrojs/starlight: Missing "engines.node"
knip: easy-table: Missing "engines.node"
knip: jiti: Missing "engines.node"
knip: js-yaml: Missing "engines.node"
knip: minimist: Missing "engines.node"
knip: picocolors: Missing "engines.node"
knip: resolve: Missing "engines.node"
knip: summary: Missing "engines.node"
knip: zod: Missing "engines.node"

But apart from those it verified that knip itself has a good engine range right now and it suggested engine ranges for the two other workspaces as well.

TIL! This is a great project, thanks building it and for submitting the PR. I've had this issue many times with release-it, I'll install it there as well. Also kinda surprising it's not some built-in npm command, right?
Happy to merge!

:rocket: This pull request is included in v5.9.0. See Release 5.9.0 for release notes.
Using Knip in a commercial project? Please consider sponsoring me.


Kicad and FancyZones not playing along nicely

Microsoft PowerToys version
0.37
Running as admin

[ ] Yes

Area(s) with issue?
FancyZones
Steps to reproduce
When using FancyZones with the "Move newly created windows to their last known zone" option enabled, KiCad will crash on startup.
✔ Expected Behavior
Not crashing
❌ Actual Behavior
Crashing
Other Software
KiCad 5.1.9
Lastest Windows 10 release

does this issue still happen with v0.73.0? /needinfo


feat: support node esmodule and mf-manifest esmodule

Description
Supports importing remote files in esm format in the node environment

Related Issue
https://github.com/module-federation/vite/issues/73

Types of changes

[ ] Docs change / refactoring / dependency upgrade
[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)

Checklist

[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.
[ ] I have updated the documentation.

please run nx:format write

please run nx:format write

Thanks, it's now complete.  I've run the fix on my home computer before, but it didn't take effect.

This demo can verify this error
viteViteRemote<EMAIL_ADDRESS>

@ScriptedAlchemy Is there anyone who can help handle this PR?

Moving to internal branch to help

Moving to internal branch to help


pore-C data

Hello, @zengxiaofei
Can HapHiC input porec data? If not, what adjustments do I need to make?
Thank you in advance for your response

Hi @socialhang,
I have a plan to support Pore-C data, but it is not a high priority at the moment.
I haven't conducted any tests on Pore-C data yet, so I am unable to provide any useful information about it at this time.
Best regards,
Xiaofei

Hi @socialhang,
I have conducted an experiment on the test data of https://github.com/epi2me-labs/wf-pore-c. You can try the following steps with our own FASTA and FASTQ files:
(1) Execute the wf-pore-c pipeline to align Pore-C data and create a mock paired-end BAM file:
source ~/software/miniconda3/bin/activate nextflow

# modify --fastq, --ref, and --cutter
nextflow run epi2me-labs/wf-pore-c \
             --fastq /work/software/genome/wf-pore-c-265a1a4/test_data/porec_test.concatemers.fastq --chunk_size 100 \
             --ref /work/software/genome/wf-pore-c-265a1a4/test_data/porec_test.fasta \
             --cutter NlaIII \
             --paired_end_minimum_distance 100 --paired_end_maximum_distance 200 --hi_c --mcool --paired_end

conda deactivate

Then, you will obtain a paired-end BAM file named null.ns.bam in the output/paired_end directory.
(2) Rename the Hi-C reads in null.ns.bam using a custom script rename_reads_for_bam.py and filter Hi-C reads:
python3 change_read_name_for_bam.py null.ns.bam | samtools view - -@ 14 -S -h -b -F 3340 -o HiC.bam
/path/to/HapHiC/utils/filter_bam.py HiC.bam 1 --threads 14 | samtools view -b -@ 14 -o HiC.filtered.bam

Finally, you can use HiC.filtered.bam for HapHiC scaffolding pipeline.
Here is the custom script:
rename_reads_for_bam.py.gz
Please be aware that this method has not been fully tested. I welcome your feedback on any attempts you make. This will be of great help. Once this method is validated, I will integrate it into HapHiC.
Best regards,
Xiaofei

Thanks a lot！
I will try today！

hello! @zengxiaofei
I'm back! I'm so sorry, the wf-pore-c software could not run on my server. So could I use falign to make the bam for replacing  wf-pore-c？

Hi @socialhang,
You could try it. It seems that falign can produce pairwise SAM files that compatible with SALSA2 using the command sam2salsa2 in u4falign.
Best,
Xiaofei

OK！

Hello! @zengxiaofei
I produce pairwise bam file using falign , but some errors happend.
Traceback (most recent call last):   File "/root/software/HapHiC_1.0.2/scripts/HapHiC_pipeline.py", line 483, in <module>     main()   File "/root/software/HapHiC_1.0.2/scripts/HapHiC_pipeline.py", line 464, in main     inflation = haphic_cluster(args)   File "/root/software/HapHiC_1.0.2/scripts/HapHiC_pipeline.py", line 323, in haphic_cluster     HapHiC_cluster.run(args, log_file=LOG_FILE)   File "/root/software/HapHiC_1.0.2/scripts/HapHiC_cluster.py", line 2361, in run     flank_link_matrix, frag_index_dict = dict_to_matrix(   File "/root/software/HapHiC_1.0.2/scripts/HapHiC_cluster.py", line 283, in dict_to_matrix     shape = len(frag_set) TypeError: object of type 'NoneType' has no len() Traceback (most recent call last):   File "/root/software/HapHiC_1.0.2/haphic", line 96, in <module>     subprocess.run(commands, check=True)   File "/root/miniconda3/envs/haphic/lib/python3.10/subprocess.py", line 524, in run     raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['/root/software/HapHiC_1.0.2/scripts/HapHiC_pipeline.py', 'hifiasm_hic_ul_p_utg.fa', 'small.1.bam', '32', '--remove_allelic_links', '4', '--Nx', '100', '--gfa', 'hifiasm.asm.hic.p_utg.gfa', '--min_RE_sites', '1', '--min_links', '1', '--min_link_density', '0', '--threads', '40', '--max_ctg_len', '400000']' returned non-zero exit status 1.
I think its because of my bam format.
small.1.bam.gz
Can you help me point out the errors in my bam file？
Thanks a lot!

Hi @socialhang,
Could you please paste or upload 01.cluster/HapHiC_cluster.log?
Best,
Xiaofei

OK, waiting a minute

HapHiC_cluster.log
HapHiC_cluster.e.txt

Is the smalll.1.bam that you uploaded the same one you used for HapHiC scaffolding?

Is the smalll.1.bam that you uploaded the same one you used for HapHiC scaffolding, or just a portion of it?

Since my bam file is 400Gb in size, smalll.1.bam is part of the small data I extracted. In addition, I have also run haphic with this data, and the error reporting is completely consistent with big datasmalll.1.bam.

Please use this script (modify_bam_for_falign.py.gz) to modify the bam file:
python3 modify_bam_for_falign.py small.1.bam | samtools view -b -o new.bam

Please use this script (modify_bam_for_falign.py.gz) to modify the bam file:
python3 modify_bam_for_falign.py small.1.bam | samtools view -b -o new.bam

OK! Thanks! I will try!

some errors happen:
2023-12-25 09:02:22 <HapHiC_pipeline.py> [main] Pipeline started, HapHiC version: 1.0.2 (update: 2023.12.16) 2023-12-25 09:02:22 <HapHiC_pipeline.py> [main] Python version: 3.10.6 | packaged by conda-forge | (main, Aug 22 2022, 20:36:39) [GCC 10.4.0] 2023-12-25 09:02:22 <HapHiC_pipeline.py> [haphic_cluster] Step1: Execute preprocessing and Markov clustering for contigs... 2023-12-25 09:02:22 <HapHiC_cluster.py> [run] Program started, HapHiC version: 1.0.2 (update: 2023.12.16) 2023-12-25 09:02:22 <HapHiC_cluster.py> [run] Python version: 3.10.6 | packaged by conda-forge | (main, Aug 22 2022, 20:36:39) [GCC 10.4.0] 2023-12-25 09:02:22 <HapHiC_cluster.py> [parse_fasta] Parsing input FASTA file... 2023-12-25 09:02:34 <HapHiC_cluster.py> [parse_gfa] Parsing input gfa file(s)... 2023-12-25 09:02:38 <HapHiC_cluster.py> [stat_fragments] Making some statistics of fragments (contigs / bins) 2023-12-25 09:02:38 <HapHiC_cluster.py> [stat_fragments] bin_size is calculated to be 2000000 bp 2023-12-25 09:02:41 <HapHiC_cluster.py> [parse_bam] Parsing input BAM file... Traceback (most recent call last):   File "/root/software/HapHiC_1.0.2/scripts/HapHiC_pipeline.py", line 483, in <module>     main()   File "/root/software/HapHiC_1.0.2/scripts/HapHiC_pipeline.py", line 464, in main     inflation = haphic_cluster(args)   File "/root/software/HapHiC_1.0.2/scripts/HapHiC_pipeline.py", line 323, in haphic_cluster     HapHiC_cluster.run(args, log_file=LOG_FILE)   File "/root/software/HapHiC_1.0.2/scripts/HapHiC_cluster.py", line 2304, in run     full_link_dict, flank_link_dict, HT_link_dict, clm_dict, frag_link_dict, ctg_coord_dict, ctg_pair_to_frag = parse_bam(   File "/root/software/HapHiC_1.0.2/scripts/HapHiC_cluster.py", line 1481, in parse_bam     frag_len_i, frag_len_j = frag_len_dict[frag_i], frag_len_dict[frag_j] KeyError: 'utg000028l_bin4' Traceback (most recent call last):   File "/root/software/HapHiC_1.0.2/haphic", line 96, in <module>     subprocess.run(commands, check=True)   File "/root/miniconda3/envs/haphic/lib/python3.10/subprocess.py", line 524, in run     raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['/root/software/HapHiC_1.0.2/scripts/HapHiC_pipeline.py', 'hifiasm_hic_ul_p_utg.fa', 'ul9.HiC.filter.correct0.bam', '32', '--remove_allelic_links', '4', '--Nx', '100', '--gfa', 'hifiasm.asm.hic.p_utg.gfa', '--min_RE_sites', '1', '--min_links', '1', '--min_link_density', '0', '--threads', '40', '--max_ctg_len', '400000']' returned non-zero exit status 1.
@zengxiaofei

HapHiC_cluster.2.log
HapHiC_cluster.e.2.log

It seems that the position in the BAM file (the fourth column) exceeds the length of the contig.
The error message shows that the bin_size was calculated to be 2 Mb, and the error occurred when the mapping position of a read in the BAM file was within the range of [6000001, 8000000] (bin ID utg000028l_bin4). However, based on the bam file you uploaded, the contig utg000028l is only 4,798,928 bp in length.

Hi！@zengxiaofei
I've found the problem and I've updated the script.
correct_sam.py.zip
Now the process is running normally, but there are clusters of homologous chromosomes in the results, and I think the signal between the different haploids is not screened clean. How can I adjust the parameters?

Could you please provide a full view of the Hi-C contact heatmap that includes scaffold boundaries (called superscaffold in Juicebox, and surrounded by blue outlines)?

Could you please provide a full view of the Hi-C contact heatmap that includes scaffold boundaries (called superscaffold in Juicebox, and surrounded by blue outlines)?

could you give me an email address？I will send you the hic heat map privately. @zengxiaofei

You could send email to xiaofei_zeng#whu.edu.cn (replace # with @), or contact me on WeChat: zeng_xiaofei.

You could send email to xiaofei_zeng#whu.edu.cn (replace # with @), or contact me on WeChat: zeng_xiaofei.

@socialhang have you somehow managed to adjust the parameters to improve your contactmap ?

Hi @LikeLucasLab,
The primary challenge faced when working with Pore-C data lies in achieving accurate mapping. We conducted some tests using falign, and adapted HapHiC to be compatible with this aligner through a Python script. Although Pore-C data showed performance comparable to NGS-based Hi-C data in scaffolding haplotype-collapsed assemblies, it exhibited much lower mapping accuracy in the context of distinguishing haplotypes, resulting in much stronger Hi-C links being observed between haplotigs. We tried different MAPQ filtering criteria, but the results did not have significant improvements.
There may be some adjustments in HapHiC for Pore-C data in the future updates. When using the current version of HapHiC for scaffolding haplotype-phased assemblies, please always add the --remove_allelic_links parameter to remove Hi-C links between allelic contigs. Lower --nwindows or --concordance_ratio_cutoff values could potentially improve the scaffolding results.

Hi @zengxiaofei
Is it possible to improve mapping accuracy by correcting pore-c reads using herro (https://github.com/lbcb-sci/herro)?

Hi @csxie-666，

Hi @zengxiaofei Is it possible to improve mapping accuracy by correcting pore-c reads using herro (https://github.com/lbcb-sci/herro)?

According to the author's description, herro was exclusively trained on human data (https://github.com/lbcb-sci/herro/issues/23). I'm not sure whether it is versatile for other species and ploidy levels. I'm trying out another haplotype-aware ONT read correction tool called DeChat. This tool has been validated in simulated autopolyploids. However, I encounter a difficulty in running the program (refer to this issue: https://github.com/LuoGroup2023/DeChat/issues/3).
Additionally, as a update to this issue, I currently recommend using minimap2 other than falign for Pore-C reads mapping. HapHiC has supported the BAM file output by minimap2 using a Python script.
Best,
Xiaofei

I have included the best practice for handling Pore-C reads in the updated README.md.


SocketTimeoutException in TelegramBot.getUpdates()

There is a SocketTimeoutException when the bot does not receive any messages from the user. How to handle long polling properly? Increase timeout or switch to using webhooks?

Thanks, I'll take a look this weekend. Polling is still the simpler method but Telegram removed the certificate limitation and now it's easier to set a webhook, you can take a look to https://github.com/mukel/GenginedBot for Google App Engine bot. I'll give some maintenance as soon as I have some free time.

Updated a few things, but I can't reproduce the problem, it must be related to ScalajHttp timeouts, I doubled the timeouts as a temporal hack, but the timeout exception should be wrapped on the Future anyways.

Thanks for the quick reply. Will try it.

Timeouts should be solved in the new version


refactor(add user form): remove validation and error msgs

resolves DEV-3337

We are adding language translations to all new code from the last week.

Good to know, but what does that imply? This code is from now and not last week. Is there any inconvenience for adding/changing translations? What are the changes requested?

The translations are introduced.


how to generate model.pth to model.onnx?

how to get the  architechture of the model

result = self.forward(*input, **kwargs)
TypeError: Segnet.forward() missing 2 required positional arguments: 'pix_T_cams' and 'cam0_T_camXs'
why？？ my_onnx_inputs include those,
torch.Size([4, 6, 3, 900, 1600])
torch.Size([4, 6, 4, 4])
torch.Size([4, 6, 4, 4])
torch.Size([4, 1, 200, 8, 200])


miri build script: use incremental builds

I somehow thought that was already the default, but seems like it is not?

Incremental compilation is disabled by default in release mode.

@bors r+

:pushpin: Commit f7516883968322aa03e41dfb8cdd80719ea5ea13 has been approved by RalfJung

:hourglass: Testing commit f7516883968322aa03e41dfb8cdd80719ea5ea13 with merge 45b6891bf9f9c0635710db027066edd6191e3aae...

:sunny: Test successful - checks-travis, status-appveyor
Approved by: RalfJung
Pushing 45b6891bf9f9c0635710db027066edd6191e3aae to master...


Lightning Azimuth Device forces Map to Amsterdam

I recently identified that my Map in Home Assistant was no longer showing my home location except when lightning was detected in my area and within the 100km radius set in Blitzortung.  If a storm is not active my Map moves to Amsterdam.  It took me a while to identify why then I zoomed out the map while in Amsterdam and found a LA, Lightning Azimuth, device in northern UK.  Once I found this I removed the Blitzortung component and my Map began working as expected again.  I can repeat the issue by adding the component back while no storms are in the area.   I did not review the code but it seems the component is overriding the home location when no storms are found in the defined radius.

Ha - interesting, this is unintended integration with Map widget :), I was able to reproduce it on my HA instance too. Fortunately it doesn't override home location. It seems that home assistant shows on a map any entity with latitude and longitude properties (these properties are defined in home assistant and are used by some entities, HA can use it for presence detection). It looks like a bug in Home Assistant (it definitely should not recenter map to last location reported by any entity as it does now). I can also easily block this behavior on my side - by renaming latitude / longitude attributes to something different, like lat/lon or so.

Fixed, by renaming attributes to lat / lon.

Updated and works perfectly!  Thanks for the quick response.  Let me know anytime you need help testing.

The old WWLLN integration created one entity with lat/lon for each lightning within the configured area of interest. Advantage was that it was not only then displayed on the map but could also very easily be used in automations and with HA zones.


Style property 'left' is not supported by native animated module

I dont understand whats happening with the versions on npm, master and in the tags, but i had 0.6.6, working, then i updated to 0.6.7, and now i get the above message. its complaining about the 'left' style on the underline view.
Any ideas?

ok i did yarn install with both versions, diffed the folder, and found out the difference.
the left on the default tab bar changed to transformX

bump +1

Possible fix:
Go to render method of DefaultTabView, and find const left then update:
const left = {
      transform: [
        {
          translateX: this.props.scrollValue.interpolate({
            inputRange: [0, 1,],
            outputRange: [0, containerWidth / numberOfTabs,],
          })
        }
      ]
    }

then
<Animated.View style={[tabUnderlineStyle, left, this.props.underlineStyle,]} />

yep. that's what I did. still they versioning should be fixed, so that the default tab bar on github reflects that change.

@p0d3r I crash into this problem too,but I don't understand what you are pointing out,I can't find any file named DefaultTabView or find any code you list.
<EMAIL_ADDRESS>

Oh It's here

we tried downgrading to 0.6.6 and it works..

In my case, it was because I was applying an interpolate on a touchable. It seems only valid for View, Text, Image

Possible fix:
Go to render method of DefaultTabView, and find const left then update:
const left = {
      transform: [
        {
          translateX: this.props.scrollValue.interpolate({
            inputRange: [0, 1,],
            outputRange: [0, containerWidth / numberOfTabs,],
          })
        }
      ]
    }

then
<Animated.View style={[tabUnderlineStyle, left, this.props.underlineStyle,]} />

Thanks a lot.


docs: reorg documentation structure for 3.0 updates

What have you changed? (mandatory)
Please explain IN DETAIL what the changes are in this PR and why they are needed:

Re-org the current doc structure for 3.0 updates and later migration
Updated some outdated links
Other minor edits

What are the type of the changes? (mandatory)
The currently defined types are listed below, please pick one of the types for this PR by removing the others:

Improvement

Does this PR affect documentation (docs) or release note? (mandatory)
YES. Please review ASAP since it's where updates in 3.0 will be merged.

Please sign-off.

@zhouqiang-cl Could you please look at the Jenkins Job? Thanks

/run-tests

/run-all-tests


changelog 2021-05-26

Is this everything for the release? Or still waiting on more stuff?

I assume there's more, I just added my stuff.


Focus into Side Bar commands don't focus the sidebar if the sidebar wasn't already visible

Type: Bug

Open an editor, with the primary sidebar not visible
Run the "Focus into Primary Side Bar" command (cmd+0)

Observe that the editor is still visible — bug, it should have focused the sidebar

Run the "Focus into Primary Side Bar" command (cmd+0)

Observe that the sidebar is now focused, as expected in (2)

Focus the editor
Run the "Focus into Primary Side Bar" command (cmd+0)

Observe that the sidebar is correctly focused this time, as expected in (2)

VS Code version: Code - Insiders 1.83.0-insider (Universal) (11bfd76a61a299156a9f3138ecfad70937af3527, 2023-09-21T05:35:46.439Z)
OS version: Darwin arm64 22.6.0
Modes:

System Info

Item
Value

CPUs
Apple M1 Max (10 x 24)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
4, 3, 3

Memory (System)
64.00GB (0.32GB free)

Process Argv
--crash-reporter-id cb425818-8a3a-4635-a2ba-c031aec9b12c

Screen Reader
no

VM
0%

Extensions: none
A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythontb:30258533
pythonptprofiler:30281269
vshan820:30294714
vscod805:30301674
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30404738
py29gd2263:30784851
vsclangdf:30492506
c4g48928:30535728
dsvsc012:30540252
pynewext54:30618038
2i9eh265:30646982
showlangstatbar:30737417
7ij38806:30687742
pythonfmttext:30716741
fixshowwlkth:30771523
showindicator:30805243
pythongtdpath:30726887
i26e3531:30792625
welcomedialog:30812478
pythonnosmt12:30779711
pythonidxpt:30768918
pythonnoceb:30776497
copilotsettingt:30808721
synctok:30821570
dsvsc013:30777762
dsvsc014:30777825
diffeditorv2:30786206
pythonlinttypecf:30823782
pythonmhint1:30815193
dsvsc015:30821418
pythontestfixt:30826906
pythonfb280951:30830809
pythonregdiag:30842812
pythonmypyd1:30841190

+1

I see that the action to focus the secondary side bar behaves slightly different, so I think it would be good to align the implementations.

This bug has been fixed in the latest release of VS Code Insiders!
@jdanbrown, you can help us out by commenting /verified if things are now working as expected.
If things still don't seem right, please ensure you're on version 00bc1553bafe83896a96e1b2572024083d14515a of Insiders (today's or later - you can use Help: About in the command palette to check), and leave a comment letting us know what isn't working as expected.
Happy Coding!

I can confirm this is working for me now!


[FEATURE REQ] Support obtaining tokens through certificates in aad stater.

Is your feature request related to a problem? Please describe.
In the Azure app registration support uploading certificate to replace client-secret, and Microsoft docs describe that request an access token with a certificate credential. It would be better support certificates in azure-spring-boot-starter-active-directory.
Describe the solution you'd like
Need to investigate how to create a request with a certificate to get access token. and how the security stater supports it.
Additional context
The position of uploade certificate :

In the C# repository, I found an sample of calling MSGraph with a certificate, hope it can help us.
Related issues
There is an issue(https://github.com/Azure/azure-sdk-for-java/issues/20338), user does not need to configure client-secret like above. Maybe a similar problem.
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

[x] Description Added
[x] Expected solution specified

Closing this issue, use this one instead: https://github.com/Azure-Samples/spring-boot-application-with-azure-active-directory/issues/1


[Bug Report] Compile error using prange and ravel

Below code simply won't compile.
Numba version: 0.46.0
import numba as nb
import numpy as np

@nb.njit(parallel=True)
def foo(X):
    X.ravel()[np.isnan(X.ravel())] = 0
    n_row, n_col = X.shape
    out = np.full((n_row, n_col, 3), np.nan)
    for r in nb.prange(n_row):
        for c in range(n_col):
            out[r, c] = X[r-2:r+1, c]
    return out

foo(np.random.random((20, 20)))

The error message is quite long, which I ignored here. I think this is a bug because at the end of the error messaeg, it says sth like below:
"This should not have happened, a problem has occurred in Numba's internals. You are currently using Numba version 0.46.0.
Please report the error message and traceback, along with a minimal reproducer at: ..."

Reporting a bug

[ ] I am using the latest released version of Numba (most recent is visible in
the change log (https://github.com/numba/numba/blob/master/CHANGE_LOG).
[ ] I have included below a minimal working reproducer (if you are unsure how
to write one see http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports).

Thanks for the report. The code sample presented does not seem to work in pure NumPy:
import numpy as np

def foo(X):
    X.ravel()[np.isnan(X.ravel())] = 0
    n_row, n_col = X.shape
    out = np.full((n_row, n_col, 3), np.nan)
    for r in nb.prange(n_row):
        for c in range(n_col):
            out[r, c] = X[r-2:r+1, c]
    return out

foo(np.random.random((20, 20)))

gives
Traceback (most recent call last):
  File "issue4996.py", line 13, in <module>
    foo(np.random.random((20, 20)))
  File "issue4996.py", line 10, in foo
    out[r, c] = X[r-2:r+1, c]
ValueError: could not broadcast input array from shape (0) into shape (3)

and then on Numba master branch and Numba 0.46.0 it gives me:
$ cat issue4996.py
import numba as nb
import numpy as np

@nb.njit(parallel=True)
def foo(X):
    X.ravel()[np.isnan(X.ravel())] = 0
    n_row, n_col = X.shape
    out = np.full((n_row, n_col, 3), np.nan)
    for r in nb.prange(n_row):
        for c in range(n_col):
            out[r, c] = X[r-2:r+1, c]
    return out

foo(np.random.random((20, 20)))

$ python -c 'import numba; print(numba.__version__)'
0.46.0

$ python issue4996.py
Traceback (most recent call last):
  File "issue4996.py", line 14, in <module>
    foo(np.random.random((20, 20)))
ValueError: cannot assign slice from input of different size

Closing this issue due to lack of information. If more information becomes available please add it and reopen the issue. Thanks.


_config.yml should not ever be checked in with excluded directories

some way to be notified if someone checks a futzed config file into repo? or prevent/warn them from doing it to begin with?
or there is a standard _config and that is just checked out right before every deploy.. or the deploy script checks current against old..

Copy _config to _config.base (or something) and add that to repo, deploy script does a diff with current _config and returns error if it finds one


Merge script improvement - use colons instead of semicolons

Hey committers, what say you?
Our convention seems to be colons. How about we make it Python official?
@xinyuiscool @nickpan47 @vjagadish1989 @sborya @prateekm

Would also be nice to do the same for our hello-samza merge script too consistently.

@vjagadish1989 this was already done on the hello-samza merge script at the same time the script was added to that repo.
In fact, this PR was created by diff'ing the 2 scripts. :-)


Add GHCR container for Cryptol 2.13

@weaversa Could you add a container tagged ghcr.io/weaversa/cryptol-course:2.13? Now that Cryptol 2.13's Python API supports check, safe, and other commands, and corrects W4_ABC and W4_ANY to refer to the correct solvers, we shouldn't need adapters to work around these any more. (We can keep a generic "run a command and exit on failure" that works for any of the Connection commands.)

The 2.12 is a bit of a misnomer. We've just been using the nightlies. I've rerun the builds and we will soon have the 2.13 nightly.

Oh, well that explains why the new things work...

Also updated the gitpod tag.


System test flakiness

Looks like running multiple system test tasks concurrently causes some failed assertions when querying resources at the project level.

@stephenplusplus can you take a peek here?  This is causing lots of PR re-runs and backups.

Things are looking a little more stable today ...


parsestandardfiles parses all generators as thermal generators

-- at least from Matpower inputs (e.g., ACTIVSg2000.m, RTS_GMLC.m)
-- keys in output dictionary (generator names) have extra spaces at end

I believe that this update to RTS-GMLC resolves the issue


Corrected spelling error

r? @nikomatsakis
(rust_highfive has picked a reviewer for you, use r? to override)

Thanks!


How to Execute Cucumber Features in Parallel using TestNG?

Is there an option to pass the features through dataprovider to execute cucumber features in parallel instead of scenarios?
import org.testng.annotations.DataProvider;
import io.cucumber.testng.AbstractTestNGCucumberTests;

public class RunCucumberTest extends AbstractTestNGCucumberTests{

    @Override
    @DataProvider(parallel = true)
    public Object[][] scenarios() {
        return super.scenarios();
    }
}

I don't see why it cannot be possible but it may have some limitations from testng too.
I think it is more a question for cucumber because we have no idea how it is integrated with testng.

@juherr Thanks! Let me ask this to the Cucumber team. If they have any solution.