Provide CMake cross compile options for iOS / Android

Since CMake 3.14 there are cross compile options for iOS and Android available
see:
https://cmake.org/cmake/help/v3.14/manual/cmake-toolchains.7.html#cross-compiling-for-android-with-the-ndk
Add using this as an option to the build.
This shall be optional because some users might prefer to pass own toolchaine files to the build

Just FYI... for Android, I'm consuming this repo as a submodule inside my Android Studio project, then including the CMakeLists.txt in this repo... Something like this:
...
if (BUILD_WITH_JNI)
  set(DJINNI_WITH_JNI on CACHE BOOL "enable or disable djinni JNI" FORCE)
endif()

if (DJINNI_WITH_JNI OR DJINNI_WITH_OBJC)
  message("loading djinni")
  add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/external/djinni-support-lib)
else()
  message("not loading djinni")
endif()

The Android Gradle Plugin already plugs in the Android toolchain bundled with the Android SDK + NDK, so everything works as expected. I guess all that's left on the Android side is to document a recommended way to consuming the repository.

Just FYI... for Android, I'm consuming this repo as a submodule inside my Android Studio project, then including the CMakeLists.txt in this repo... Something like this:
...
if (BUILD_WITH_JNI)
  set(DJINNI_WITH_JNI on CACHE BOOL "enable or disable djinni JNI" FORCE)
endif()

if (DJINNI_WITH_JNI OR DJINNI_WITH_OBJC)
  message("loading djinni")
  add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/external/djinni-support-lib)
else()
  message("not loading djinni")
endif()

The Android Gradle Plugin already plugs in the Android toolchain bundled with the Android SDK + NDK, so everything works as expected. I guess all that's left on the Android side is to document a recommended way to consuming the repository.

Yes, if you include this project as a subproject, and use it via Android Studio, gradle does call cmake with the Android CMake Toolchain file and everything is fine.
I have builds for this lib  with the ndk and ios-cmake toolchain file.  Both work. I will soon also provide them as conan packages.
I think this is a good way, let the user to provide the right settings since they can contain individual tweaks and work with those, but I still would like to research additional options, once my time allows that.

Yes, if you include this project as a subproject, and use it via Android Studio, gradle does call cmake with the Android CMake Toolchain file and everything is fine.
I have builds for this lib  with the ndk and ios-cmake toolchain file.  Both work. I will soon also provide them as conan packages.
I think this is a good way, let the user to provide the right settings since they can contain individual tweaks and work with those, but I still would like to research additional options, once my time allows that.

I close this since I think it is up to the user to provide a toolchain file, and the support lib shall be able the compile with a toolchain file provided. This is currently the case.


fix(@schematics/angular): migrate build-angular for 7.0 RC users

Fixes #12647

We might get this into 7.0.2 though.

7.0.2 is already out (https://github.com/angular/angular-cli/releases/tag/v7.0.2).

@clydin could you please fix the merge conflict?

Rebased.


localization support with i18next

Localization support with the help of i!8next.
Supported languages: English, French, German, Spanish, Portuguese, Igbo, Polish, Korean, Arabic, Yoruba
sugarizer-localization.webm

Nice :+1:
BTW, instead of creating new class/method I suggest to re-implement SugarL10N component using i18next.
You could for example create a dummy activity and try to adapt SugarL10n component inside to i18next without changing anything in the activity.
Once SugarL10n adapted, we could use it in sandbox.html.
What do you think?
Also, please use TAB for indentation.

Nice :+1:
BTW, instead of creating new class/method I suggest to re-implement SugarL10N component using i18next.
You could for example create a dummy activity and try to adapt SugarL10n component inside to i18next without changing anything in the activity.
Once SugarL10n adapted, we could use it in sandbox.html.
What do you think?
Also, please use TAB for indentation.

Yes, that's a good idea. That can also help in making l10N modular.
And I do use TAB for indentation. If you are talking about the formatting of sandbox.html then it was my code formatter which messed up. I will revert those formatting changes.

closing this PR as I have raised a newer one #1365


Strange font size bug

On http://gee.cs.oswego.edu/dl/papers/aqs.pdf it initially renders wrong, but when I change zoom or change window size, its starts rendering correctly. When it renders wrong, some characters have random sizes making the pdf impossible to read.

The referenced PDF looks fine here. Could you provide more information about your system (OS, Web Browser, pdf.js plugin version)?
Also, could you check if the issue duplicate of the #187?

Yeah, its a dupe, that jobs report pdf screws up here too. I'm on Debian's build of Firefox 10.0.2 using pdf.js 0.2.339. Also, in that pdf, changing zoom scales doesn't fix it, in fact it seems to make it angrier.

According https://bugzilla.mozilla.org/show_bug.cgi?id=698652 , it's fixed in ff12. Could you test it on the Nightly?

Its fixed on nightly, and it seems to render faster too.


IVCT UI does not work behind proxy

Minor issue, but I noticed that the IVCT UI does not work work behind a proxy.
Proxy is in this case a Kubernetes nginx Ingress. Proxy maps "/ivct/ivct.gui.ui.html" to "/ivct.gui.ui.html". Login page appears, but logging in fails.
Work around is to access the UI via a published Kubernetes node port.

I think the problem is, that the GUI consists of two parts, a client for handling the UI representation, and a server part for handling the busines logic.
Your browser will access only the client part via "some.server.org/ivct/ivct.gui.ui.html", but the client part needs to access the server part. And for that access, it needs to know the server name. This is configured in the file
webapps\ivct.gui.ui.html##2.0.1\WEB-INF\classes\config.properties:
....
scout.backendUrl=http://localhost:8080/ivct.gui.server
....

and localhost will probably not work inside your kubernetes setup.

could not be replicated - problem propably disappeared


Modbus binary sensors appear to be problematic

Home Assistant 0.89.2:

Last working Home Assistant release (if known):
0.81.6 (with mods to create a custom component IE: custom_components/modbus1.py, custom_components/sensor/modbus1.py, custom_components/binary_sensor/modpus1.py and custom_components/switch/modbus1.py
Operating environment (Hass.io/Docker/Windows/etc.):

Component/platform:

Description of problem:
I installed HA 0.89.2 in a new container on my QNAP NAS with hopes it would be smooth transition to the updated modbus multiple hub system.
The install went well (I have installed a few version upgrades now so it gets easier) and I have my fallback container ready to start again if needed. This container is stopped while the new install is running. Because of the present problems I just swap between the two as required.
After logging in I updated the config.yaml with all my sensors, switches and binary sensors and found all my MQTT devices were working as expected. Also as expected all the modbus devices were not as I had not changed from the old modified config where I was using the Custom Component IE: modbus, modbus1, modbus2 and modbus3.
So I modified the modbus connection information as per the instructions in the documentation and added the hub: myHubName info to all my device configs.
On starting up the container and logging in again I found not one modbus device was connected and there were multiple errors and warnings in the log.
My initial config was following exactly the documentation example below:
# Example configuration.yaml entry for multiple TCP connections
modbus:
  - type: tcp
    host: IP_ADDRESS_1
    port: 2020
    hub: hub1

  - type: tcp
    host: IP_ADDRESS_2
    port: 501
    hub: hub2

After looking at the documentation and giving it some thought I decided to try the below:
modbus:
  - type: tcp
    host: myIP
    port: 5003
    name: hub5
  - type: tcp
    host: myIP
    port: 5001
    name: hub3
  - type: tcp
    host: myIP
    port: 5002
    name: hub1

Additional information:
On starting up and checking there were a couple of minor warnings and one error but it seemed like all the devices (sensors, binary sensors and switches) were connected and working in dev-state anyway.
A quick look through my ui showed random devices disconnected and others working.
After I fixed a few typos and indentation errors I made in updating my config.yaml the result was that binary_sensors are the only remaining problem which does gel with the one remaining error I have in my logs.
Error:
Invalid config for [binary_sensor.modbus]: expected int for dictionary value @ data['coils'][22]['coil']. Got None. (See /config/configuration.yaml, line 1268). Please check the docs at https://home-assistant.io/components/binary_sensor.modbus/
NOTE: All the entries for binary sensors in dev-state show the state as being 'off'.
This is a snippet of what I presently have for my binary_sensor configuration…
binary_sensor:
# NOTE: this is line 1268 referenced above in the error message
  - platform: modbus
    coils:
      - name: HW Tariff
        hub: hub5
        slave: 5
        coil: 1538
      - name: Front Occupied
        hub: hub5
        slave: 5
        coil: 1544
#After all the modbus binary sensors I have MQTT binary sensors
  - platform: mqtt
    name: "Pool Low Level"
    state_topic: "stat/sonoff23/POWER"
    availability_topic: "tele/sonoff23/LWT"
    qos: 1
    payload_on: "ON"
    payload_off: "OFF"
    payload_available: "Online"
    payload_not_available: "Offline"

PLEASE NOTE: All modbus sensors and modbus switches are working perfectly as are MQTT binary sensors.
This problem is only affecting modbus binary sensors.
Further minor problem:
There is also one other modbus related warning which is of concern at the moment which relates to modbus switches.
I have checked thoroughly and my config looks identical with the documentation and I have never had this warning when using 0.81.6 with the custom component mods running trouble free.
Error:
Your configuration contains extra keys that the platform does not support.
Please remove [slave].  (See /config/configuration.yaml, line 725)
Cheers in advance if you can help me get to the root of this problem!

Sorry about the 'novel' above...in my defence its my first issue here.
To cut a long story short I have now moved to HA 0.90.0 hoping that may have some fixes for the modbus binary sensor problem I am experiencing.
It seems the present modbus documentation is incorrect or out of date.
My present modbus hub config is:
modbus:
  - name: hub5
    type: tcp
    host: <IP_ADDRESS>
    port: 5003

  - name: hub3
    type: tcp
    host: <IP_ADDRESS>
    port: 5001

  - name: hub1
    type: tcp
    host: <IP_ADDRESS>
    port: 5002

I confirm that it works fine for sensors and switches.
What I 'assumed' were all my modbus binary sensors listed in dev-state was actually all the 'template binary sensors' I am using.
I confirm that modbus binary sensors return the error message:
Invalid config for [binary_sensor.modbus]: expected int for dictionary value @ data['coils'][22]['coil']. Got None. (See /config/configuration.yaml, line 1247). Please check the docs at https://home-assistant.io/components/binary_sensor.modbus/
I am anxiously awaiting some ideas of what to try next to get modbus binary sensors working.
Cheers!

Modbus Binary Sensor Problem Resolved
Problem Found: One of the binary sensor configs contained no entry for the coil value. Once that was fixed around 100+ binary sensors (in three separate hubs) commenced working and the error disappeared from the log.
May be one to remember for admins helping with modbus issues in the future.
I will close this issue in 24 hours or admins feel free to do as you think.


Windscribe.Windscribe version 2.10.16

Checklist for Pull Requests

[x] Have you signed the Contributor License Agreement?
[ ] Is there a linked Issue?

Manifests

[x] Have you checked that there aren't other open pull requests for the same manifest update/change?
[x] This PR only modifies one (1) manifest
[x] Have you validated your manifest locally with winget validate --manifest <path>?

[x] Does your manifest conform to the 1.6 schema?

Note: <path> is the directory's name containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

Automatic Validation ended with:
(Automated response - build 888.)

Automatic Validation ended with:
(Automated response - build 888.)

What does that mean? It worked when I tried it on my machine.
Silent install before was achieved by only using -silent switch. However WindScribe would always automatically launch after installing which I wouldn't consider silent. So I added -no-auto-start which according to installer help file prevents this. This worked fine for me.
I also added the x86 architecture as according to installer name it supports both x64 and x86. However I only have a x64 machine and can't test x86. Maybe that's the one throwing an error?

Automatic Validation ended with:
(Automated response - build 888.)

What does that mean? It worked when I tried it on my machine. Silent install before was achieved by only using -silent switch. However WindScribe would always automatically launch after installing which I wouldn't consider silent. So I added -no-auto-start which according to installer help file prevents this. This worked fine for me. I also added the x86 architecture as according to installer name it supports both x64 and x86. However I only have a x64 machine and can't test x86. Maybe that's the one throwing an error?

Hi @Eddga,
That's the filtered output of the run logs - it's supposed to say "No errors to post" but there must be a non-printing character slipping past the filters. The pipelines failed this package, but did not emit any error data to support, so I mark this as passing.

Thanks a lot @stephengillie! 😊


Update meetings to remove insiders

Removes insiders from the events page. This event is currently tied to PALs and framework teams and isn't meant for a general audience.
Changelog
New
Changed

Update meetups page

Removed

I think the correct resolution here is to write a much clearer description, rather than remove the section entirely.
Similar problem for the Design pin ups (specifically aimed at product teams within IBM, not "anyone who wants some time with the Carbon design team").
So we can be open about the fact that there is an insiders group, and also very specific that it is for stakeholders who are heavy Carbon users to the extent of extending and modifying Carbon specific to their business unit/product space implementation.

@shinytoyrobots no sweat, just updated


First Commit for ke-twitter-demo

Adding application and vendor files required to run the demo.

@maurya-anuj , please split this into 2 commits , one for the vendored code , and second for the actual code logic.

/lgtm

@maurya-anuj , please delete the certificates

/lgtm


update Australia svg

update one with less detail
remove 'noise' overlay

@chienleng is this still needed? I couldn't see an Australian flag in the repo anywhere.

@chienleng is this still needed? I couldn't see an Australian flag in the repo anywhere.

Still needed. Just added more description above. Thanks.


[webView_flutter] webViewController.loadRequest is called multiple times, NavigationDelegate.onPageStarted and NavigationDelegate.onPageFinished will only be triggered once on iOS,it works well on Android.

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Steps to reproduce
1.webViewController.loadRequest(url1)
2.webViewController.loadRequest(url2);
Expected results
NavigationDelegate.onPageStarted and NavigationDelegate.onPageFinished  triggered every time.
Actual results
NavigationDelegate.onPageStarted and NavigationDelegate.onPageFinished  only first time triggered.
Code sample
Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
╰ flutter doctor -v
[✓] Flutter (Channel stable, 3.13.9, on macOS 13.0 22A380 darwin-arm64, locale zh-Hans-CN)
    • Flutter version 3.13.9 on channel stable at /Users/ones/Library/flutter
    • Upstream repository git@github.com:flutter/flutter.git
    • Framework revision d211f42860 (2 weeks ago), 2023-10-25 13:42:25 -0700
    • Engine revision 0545f8705d
    • Dart version 3.1.5
    • DevTools version 2.25.0
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[✗] Android toolchain - develop for Android devices
    • Android SDK at /Users/ones/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14C18
    • CocoaPods version 1.12.1

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

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).

[✓] IntelliJ IDEA Ultimate Edition (version 2023.2.2)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 76.1.4
    • Dart plugin version 232.9559.10

[✓] Connected device (4 available)
    • 21091116C (mobile) • rcguam4h759pt4jn                     • android-arm64  • Android 13 (API 33)
    • iPhone 14 (mobile) • 21B6AA4F-C58E-4920-817B-8F1BFACBA90C • ios            • com.apple.CoreSimulator.SimRuntime.iOS-16-2 (simulator)
    • macOS (desktop)    • macos                                • darwin-arm64   • macOS 13.0 22A380 darwin-arm64
    • Chrome (web)       • chrome                               • web-javascript • Google Chrome 118.0.5993.96

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

! Doctor found issues in 2 categories.

webview_flutter 4.4.2

Hi @lyf571321556
Please be more specific on Steps to reproduce and a minimal sample code so that we can verify the issue. Thanks!


Couple of bugs

Once deleting the graphic does not delete it itself but remains. Had to restart kicad to see it work. Moreover once this plugin is open, when closing PCB Editor closes KiCad completely. The next line space is way too much when adding to lines. Otherwise the plugin is helpful

Can you let me know what Version of KiCad you are on? I'd like to be able to re-create these bugs.
The window should be modal, and atleast on Ubuntu I'm not able to close PCB Editor when the KiBuzzard window remains open.
The text-formating options for multiline labels is not great right now. I suggest that creating two seperate labels, and grouping them is probably the better option.

I am using KiCad v6
Regards,George
On Friday, January 7, 2022, 08:01:42 AM GMT+3, Gregory Davill<EMAIL_ADDRESS>wrote:

Can you let me know what Version of KiCad you are on? I'd like to be able to re-create these bugs.
The window should be modal, and atleast on Ubuntu I'm not able to close PCB Editor when the KiBuzzard window remains open.
The text-formating options for multiline labels is not great right now. I suggest that creating two seperate labels, and grouping them is probably the better option.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: @.***>

Here is a screenshot of another error i encountered while editing one of them after placing them

I had the same issue just once, but can't reproduce it either.
Application: KiCad PCB Editor (64-bit)
Version: (6.99.0-294-g04c46a8fd2), release build
Libraries:
wxWidgets 3.1.5
libcurl/7.78.0-DEV Schannel zlib/1.2.11
Platform: Windows 10 (build 19043), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
Date: Jan  7 2022 21:00:04
wxWidgets: 3.1.5 (wchar_t,wx containers)
Boost: 1.76.0
OCC: 7.5.0
Curl: 7.78.0-DEV
ngspice: 35
Compiler: Visual C++ 1929 without C++ ABI
Build settings:
KICAD_USE_OCC=ON
KICAD_SPICE=ON

I did reproduce it by clicking edit and then cancel img the window that popped up and then opening kibuzzard gave that error.
Regards,
George

On 11 Jan 2022, at 10:54 AM, Trajectory @.***> wrote:

I had the same issue just once, but can't reproduce it either.
Application: KiCad PCB Editor (64-bit)
Version: (6.99.0-294-g04c46a8fd2), release build
Libraries:
wxWidgets 3.1.5
libcurl/7.78.0-DEV Schannel zlib/1.2.11
Platform: Windows 10 (build 19043), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
Date: Jan 7 2022 21:00:04
wxWidgets: 3.1.5 (wchar_t,wx containers)
Boost: 1.76.0
OCC: 7.5.0
Curl: 7.78.0-DEV
ngspice: 35
Compiler: Visual C++ 1929 without C++ ABI
Build settings:
KICAD_USE_OCC=ON
KICAD_SPICE=ON
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.

The graphic remaining after delete, I believe was caused by an issue with the label editing, that should be fixed now.
Still need to investigate attempting to close PCBnew when the KiBuzzard window is open.


Proposition to add Stream-51 on continuum library

Hi,
we are developing and maintaining a library gathering continual learning scenarios (https://github.com/Continvvm/continuum).
Would you be interested in adding your dataset into our library?
If you are interested, I will be happy to help you to create a PR to our repo :)
(if you are not interested you can just close this issue ^^)
Bye
Timothée

Hi @TLESORT,
We would be happy to include our dataset in your repo! 😄 Please let me know how I can help with this.
Thanks!
Tyler

Hi @TLESORT,
We would be happy to include our dataset in your repo! 😄 Please let me know how I can help with this.
Thanks!
Tyler

May I DM you on the continualAI Slack to discuss it?

May I DM you on the continualAI Slack to discuss it?

@TLESORT Yes, please

@TLESORT Yes, please

May I DM you on the continualAI Slack to discuss it?

May I DM you on the continualAI Slack to discuss it?


[PyOxidizer] HelloKivy critical failure on Linux

Found on Debian Bullseye when testing if the plugin works - there might be a configuration or system dep issue.
[CRITICAL] [Text        ] Unable to find any valuable Text provider. Please enable debug logging (e.g. add -d if running from the command line, or change the log level in the config) and re-run your app to identify potential causes
sdl2 - ImportError: libSDL2-2-de76f6be.0.so.0.12.0: cannot open shared object file: No such file or directory
  File "kivy.core", line 58, in core_select_lib
    mod = __import__(name='{2}.{0}.{1}'.format(
  File "kivy.core.text.text_sdl2", line 13, in <module>
    from kivy.core.text._text_sdl2 import (_SurfaceContainer, _get_extents,

pil - ModuleNotFoundError: No module named 'PIL'
  File "kivy.core", line 58, in core_select_lib
    mod = __import__(name='{2}.{0}.{1}'.format(
  File "kivy.core.text.text_pil", line 7, in <module>
    from PIL import Image, ImageFont, ImageDraw

[CRITICAL] [App         ] Unable to get a Text provider, abort.

See #90


Fix searchbox for real now

99.99% positive that this fixes the issue. Tested locally and it looks good.
I just moved the background to an extra container. The search icon may be 1 pixel off on some browsers, but because it doesn't have a background anymore it does not look as broken as it did before

Looks better, not sure if it works on IE because lol

Hmm, no still didn't fix it

Oops. Adding width 34px to the search button fixes the searchbox.
Didn't notice the homepage search bar. Just adding background-color #dfdfdf and border-radius 4px to that form will fix it as well.


Bot dont Start

General Troubleshooting
Hey there! Before you report a bug or suggest a new feature,
please make sure to follow these steps first!

[ x] I have checked for similar issues.
[ x] I have updated to the latest JDA version.
[ x] I have checked the branches or the maintainers' PRs for upcoming features/bug fixes.

This is not the place to learn Java. Please refer to StackOverflow
for your general programming questions.

Issue
Issue Type

[ x] Bug Report
[ ] Feature Request

For questions join the official JDA discord server: https://discord.gg/0hMr4ce0tIl3SLv5

Description
Replace this sentence with a description and include as many details as you think are needed to understand your issue.
the Bot don't start:
Exception in thread "main" java.lang.NoClassDefFoundError: com/neovisionaries/ws/client/WebSocketFactory
at net.dv8tion.jda.core.JDABuilder.buildAsync(JDABuilder.java:634)
at net.dv8tion.jda.core.JDABuilder.buildBlocking(JDABuilder.java:701)
at net.dv8tion.jda.core.JDABuilder.buildBlocking(JDABuilder.java:730)
at Core.Main.main(Main.java:51)
Caused by: java.lang.ClassNotFoundException: com.neovisionaries.ws.client.WebSocketFactory
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 4 more

The github issue tracker is reserved for feature requests and bug reports. Your issue is neither and should be sorted out inside of our discord server. Go to discord.gg/0hMr4ce0tIl3SLv5 to receive the needed help.


Motion Vector AOV

Hello! Are you planning to add support to Motion Vector AOV compatible with Nuke?
Thank you!

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Are you looking for "motion blur" motion vector or "animation" motion vector ?
I ask because LuxCore has motion blur information so it is technically possible to have a Motion Vector AOV (only of motion blurred objects).
However LuxCore doesn't usually have animation information so anything related is not possible.

However LuxCore doesn't usually have animation information so anything related is not possible.

Could you clarify it better? At the moment Lux is not compatible with animations?

Are you looking for "motion blur" motion vector or "animation" motion vector ?

I'm looking for something like this
https://docs.redshift3d.com/display/RSDOCS/Integrated+AOVs#IntegratedAOVs-MotionVectors

However LuxCore doesn't usually have animation information so anything related is not possible.

Could you clarify it better? At the moment Lux is not compatible with animations?

Lux renders a single image and it is result of a static scene. Animations are the result of rendering multiple scenes. Multiple scene can be result of multiple full scene export from Blender (like in current BlendLuxCore support for animation) or incremental editing of a scene (like in current BlendLuxCore support for viewport rendering).
As far as I know, this is the behavior of any render engine available for Blender, including Cycles.

Are you looking for "motion blur" motion vector or "animation" motion vector ?

I'm looking for something like this
https://docs.redshift3d.com/display/RSDOCS/Integrated+AOVs#IntegratedAOVs-MotionVectors

Yes, they seem to talking of "motion blur" motion vector.

Yes, these is motion vectors for motion blur, I'm not even sure in Cycles there is a motion pass like the one you described.
The Motion Vectors pass is kind of important because it helps us to accelerate render while having the ability to have motion blur in post :)

No in Cycles there wasn't proper motion vector AOV like this. I think Lux has a lot of potential, features like this would help Lux to be used in production.

And this for sure would help to bring more users and donors on board! You're doing such a great job! I need to say that Lux doesn't stop to amaze me!


Discord Server issue

Hi, so i tried joining the goscord discord server, but when I joined I didn't see any channels (see screenshot). Could someone help? Or maybe report to the moderators?

@djpiper28 Same for me - I just get a messages failed to load error when trying to join

@djpiper28 Same for me - I just get a messages failed to load error when trying to join

I don't run the discord server.

Discord server has been discontinued for now.


fix(addon-doc): anchor and theme mode buttons get proper size of svg icons

PR Type
What kind of change does this PR introduce?

[X] Bugfix
[ ] Feature
[ ] Refactoring
[ ] Build or CI related changes
[ ] Tests related changes
[ ] Documentation content changes

What is the current behavior?
Closes #4495
What is the new behavior?

Thank you for contributing


Use facebook to login to meteor

Would it be possible for users to login using the facebook service, with help of the facebook SDK?

Thanks. It is possible to signup, using the following code:
var someDict:NSDictionary = [
    "credentialToken": "...",
    "credentialSecret": "..."]

var myDict:NSDictionary = ["oauth" : someDict, "username": "some_username"]
println(myDict)
self.meteorData.meteorClient.signupWithUserParameters(myDict, responseCallback: {(response, error) -> Void in
    if((error) != nil) {
        println(error)
        return
    }
    self.handleSuccessfulAuth()
})

To login, using the following code (however gives an error):
var someDict:NSDictionary = [
    "credentialToken": "..." ,
    "credentialSecret": "..."]

var myDict:NSDictionary = ["oauth" : someDict]
println(myDict)

meteorData.meteorClient.logonWithUserParameters(myDict, responseCallback: {(response, error) -> Void in
    if((error) != nil) {
        println(error)
        return
    }
    self.handleSuccessfulAuth()
})

With the login code, I receive the following error:
No matching login attempt found [145546287]

It could be that I am using the wrong credentialToken or/and credentialSecret.
"credentialToken":  FBSession.activeSession().accessTokenData.accessToken,
"credentialSecret": //application secret

However, in accounts-oauth.js in meteor, the credentialSecret is retrieved as follows:
var credentialSecret = OAuth._retrieveCredentialSecret(credentialToken)

So I think the credentialSecret can be retrieved from the credentialToken, and has nothing to do with the application secret.

Thanks. It is possible to signup, using the following code:
var someDict:NSDictionary = [
    "credentialToken": "...",
    "credentialSecret": "..."]

var myDict:NSDictionary = ["oauth" : someDict, "username": "some_username"]
println(myDict)
self.meteorData.meteorClient.signupWithUserParameters(myDict, responseCallback: {(response, error) -> Void in
    if((error) != nil) {
        println(error)
        return
    }
    self.handleSuccessfulAuth()
})

To login, using the following code (however gives an error):
var someDict:NSDictionary = [
    "credentialToken": "..." ,
    "credentialSecret": "..."]

var myDict:NSDictionary = ["oauth" : someDict]
println(myDict)

meteorData.meteorClient.logonWithUserParameters(myDict, responseCallback: {(response, error) -> Void in
    if((error) != nil) {
        println(error)
        return
    }
    self.handleSuccessfulAuth()
})

With the login code, I receive the following error:
No matching login attempt found [145546287]

It could be that I am using the wrong credentialToken or/and credentialSecret.
"credentialToken":  FBSession.activeSession().accessTokenData.accessToken,
"credentialSecret": //application secret

However, in accounts-oauth.js in meteor, the credentialSecret is retrieved as follows:
var credentialSecret = OAuth._retrieveCredentialSecret(credentialToken)

So I think the credentialSecret can be retrieved from the credentialToken, and has nothing to do with the application secret.

I'll see if I can find some time to look into this, good progress so far anyway.

I've been digging through the meteor source, and it seems like from the end of the OAuth popup here, the code makes a handleCredentialSecret call, which stores the oauth secret in a dictionary with the token as key.
Then, the credential secret is retrieved from the dictionary with the following call in accounts-oauth.js:
var credentialSecret = OAuth._retrieveCredentialSecret(credentialToken)

Is there a way to retrieve the secret from the end of the oauth popup in mobile?

I would need to start or play with a project trying to do this to really help you. I don't have time to set one up just yet, if you are willing to provide a project I can work off to help you solve this I'll be able to make head way into this. There must be a way.

I haven't started work on a flow for this just yet, but I can send over
back end code for it once I start working on login code for my app.
On Wed, Jan 7, 2015, 7:16 PM Michael Arthur<EMAIL_ADDRESS>wrote:

I would need to start or play with a project trying to do this to really
help you. I don't have time to set one up just yet, if you are willing to
provide a project I can work off to help you solve this I'll be able to
make head way into this. There must be a way.
—
Reply to this email directly or view it on GitHub
https://github.com/boundsj/ObjectiveDDP/issues/122#issuecomment-69116493
.

@vephinx
I've been tracing through the meteor code some more.
So it seems like the _retrieveCredentialSecret call fetches an object from the OAuth._pendingCredentials collection with a key equal to the token and a secret equal to the app secret or null.
Then, it retrieves the pending credentials using oauth's version of loginHandler:
var result = OAuth.retrieveCredential(options.oauth.credentialToken,
                                    options.oauth.credentialSecret);

And the user is logged in.
    var result = runLoginHandlers(self, options);
    return attemptLogin(self, "login", arguments, result);

From what I understand, it seems like the magic code putting everything together is in oauth/oauth_server.js:
// Listen to incoming OAuth http requests
WebApp.connectHandlers.use(function(req, res, next) {
    // Need to create a Fiber since we're using synchronous http calls and nothing
    // else is wrapping this in a fiber automatically
    Fiber(function () {
        middleware(req, res, next);
    }).run();
});

var middleware = function (req, res, next) {
    /* before code */
    OAuth._storePendingCredential(OAuth._credentialTokenFromQuery(req.query), err);
    /* after code */
}

This code explains why the error
No matching login attempt found [145546287]

pops up. There's literally no matching login attempt in the pendingCredentials connection. I'm not sure if this means that there is no login attempt sent at all, though (the secret could just as easily be stored as null on the server).
However, after switching credentialSecret to null, I'm getting Match Failed errors. Unfortunately, I can't trace the errors since nothing shows up on my server, so I guess this is as far as I go tonight.
@vephinx, how did you get the Match failed errors to log on your server?

@jasper-lu, I originally got the Match Failed errors because I was parsing the credentialToken and credentialSecret incorrectly.
Originally:
 var myArrayOfDict: NSArray = [
        ["credentialToken": credentialToken],
        ["credentialSecret": credentialSecret]
    ]
    var myDict:NSDictionary = ["oauth" : myArrayOfDict, "username": "some_username"]

This responds with Match Failed. Instead, one should be using NSDictionary inside NSDictionary, as follows (eg. to signup):
var someDict:NSDictionary = [
    "credentialToken": "...",
    "credentialSecret": "..."]

var myDict:NSDictionary = ["oauth" : someDict, "username": "some_username"]

It is actually possible to signup this way using any arbitrary credentialToken and credentialSecret this way.

@Vephinx,
I thought you were still getting a "no matching login attempt" error on login?
Also, I'm getting a match failed error when I replace credential secret with null, instead of my own app secret, although the server side code runs something like check(options.credentialSecret, String || null)

Update: the credentialtoken wasn't ending up on the server because no http call was being made to the server with the access token.
Looking through it further, my guess now is that when the Facebook api sends the access token back to the client through http, the server also catches the access token and stores it on its own server for verification later.
Unless there's a way to spoof a url while authorizing Facebook, I'm not sure how to proceed here other than through writing a package with a modified version of Meteor's own oauth system.
I'm going to look into the former solution a bit more.

I cracked it and implemented loginwithOauth for the android ddp client starting from line 365.
I've been working on an objective c version in my free time and should be done testing it by wednesday.
However, I'm not sure how good of an idea it would be to pull it into the main repo, since mobile OAuth login will only be supported through custom accounts-x packages, at least until/if meteor changes some of the base code.

Nice work! Have you opened an issue on the meteor github about this?

I've sent in a pull request with my version of the package, so I'm guessing there's no need to make the issue

Ahh cool I'll subscribe to your pull request so I can see what happens there. Feel free to submit a pull request enabling Oauth in objectiveDDP I won't merge until there is mainstream support though.

@vephinx  if you still need it, you can check out the code here: https://github.com/boundsj/ObjectiveDDP/pull/124

@jasper-lu Thanks so much! :+1:


ACNH: Patterns support

I would love to be able to upload an arbitrary image and get back a pattern share code programmatically. Similarly to be able to download a pattern given a share code or list all patterns created by a given creator code. Basically everything the in-game kiosk can do.

I have laid the ground work for this feature-set. https://github.com/iomintz/acnh-api/tree/designs. @Kinnay would you mind please trying out this branch with your ACNH user-id and password obtained via the AC:NH /api/v1/auth_token and helping me figure out where I went wrong? In these lines:
https://github.com/iomintz/acnh-api/blob/6e69d5c87b64ce5b27dda11dbfb595a5faca14ce/acnh/common.py#L138-L149
I am getting 400 Bad Request along with the message:
29 extra bytes after the deserialized object

Even though I am sending the exact same msgpack encoded user_id and password that my Switch is, byte for byte.

Never mind. I was just forgetting to send Content-Type. My code is partially working now. It can fetch design codes.


Allow users to create, browse lists

Users frequently organize properties into lists. Vacant buildings, properties to inspect, and buildings ready for sale are common topics. We should make it easy to add and remove properties from lists, and to map the results.
Individual property pages should reflect the lists the properties belong to. People may be able to subscribe to lists to see what's changed.

Replaces #107


[nsync] Export cmake targets

Export target nsync and nsync_cpp.
Already tested the usage.

LGTM, thanks!


Does this work with react native ?

Unfortunately not no, it was built for Browser based React applications


[YUNIKORN-2829] Improve table layout for Applications

What is this PR for?
Improve table layout for Applications.
What type of PR is it?

[ ] - Bug Fix
[x] - Improvement
[ ] - Feature
[ ] - Documentation
[ ] - Hot Fix
[ ] - Refactoring

What is the Jira issue?
YUNIKORN-2829
How should this be tested?
Screenshots (if appropriate)
Before:

After:

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 35.71%. Comparing base (5856427) to head (3dbc0fc).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #214   +/-   ##
=======================================
  Coverage   35.71%   35.71%
=======================================
  Files           2        2
  Lines          56       56
=======================================
  Hits           20       20
  Misses         33       33
  Partials        3        3

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

Is this what you had in mind?

or this one:

Is this what you had in mind?

Neither. Simply ensure that each cell has the same justification (left for column 1, centered for others). There are strange offsets that look out of place in every example you've shown so far.

Before this PR, all the values were left-aligned in every column.

I can fix the alignment to match what you suggested - left for the first column and centered for the rest.

Hi @blueBlue0102 , Could you resolve the conflicts?

Before this PR, all the values were left-aligned in every column.
I can fix the alignment to match what you suggested - left for the first column and centered for the rest.

Hi @craigcondit, do you have any thoughts on this approach?

I can fix the alignment to match what you suggested - left for the first column and centered for the rest.

Hi @craigcondit, do you have any thoughts on this approach?

That should be fine. Please fix the merge conflicts as well.

@blueBlue0102 did you mean to revert everything?


evalv3: 8X memory usage increase

What version of CUE are you using (cue version)?

$ cue version v0.10.0

Does this issue reproduce with the latest stable release?
Yes this is reproducible with 0.10.0.
What did you do?
We use the go API internally to evaluate CUE projects. With evalv2 enabled, evaluating 3 projects at once, we see about a 2.3gb mem usage ceiling. With the exact same workload of 3 projects, we saw a spike of about 18gb of mem.
Similarly, evalv2 yields a CPU usage of about 1.2 cores max. evalv3 uses about 2.5 cores.

This code is quite custom so would be more than happy to setup a meeting and walkthrough what's going on here.
What did you expect to see?
The same, ideally less memory usage.
What did you see instead?
A massive increase of resource utilization.

Out of curiosity, how does wall time compare between v2 and v3?

@mvdan just me quickly counting, it was negligible. They were almost identical.

Dupe filed here:
https://github.com/cue-lang/cue/issues/3493
FWIW i noticed v3 evaluator much faster this time around, but still used a seriously large amount of mem.

@alecholmez would you be able to try again, and post wall time and memory usage numbers?
Also, is this with a public project or with a project that you shared with us via Unity? That would let us investigate further.

This code is quite custom so would be more than happy to setup a meeting and walkthrough what's going on here.

I would also be up for this if that's the best route for you - perhaps in the new year? DM me if so.


[CLOSED] Restructured module into separate files

 Issue by madhavpatel6
Tuesday Mar 13, 2018 at 20:51 GMT
Originally opened as https://github.com/Microsoft/adfsManagementTools/pull/2

Restructured module into separate files
Fixed trailing white-spaces
Converted tabs to spaces

madhavpatel6 included the following code: https://github.com/Microsoft/adfsManagementTools/pull/2/commits

 Comment by msftclas
Tuesday Mar 13, 2018 at 20:51 GMT

 All CLA requirements met.


[New game]: Random Choice Picker 🎲

🎮 Game Request
Introducing the Random Choice Picker!
Enter your choices into a textarea, hit ENTER, and let the game shuffle and reveal a random option.
Perfect for making quick decisions or adding a bit of fun!

Point down the features

Interactive Textarea: Input choices separated by commas.
Pick Button: Randomly selects a choice when pressed.
Result Display: Shows the selected choice.
Responsive Design: Optimized for all devices.

Thank you for raising an issue 💗
You can self assign the issue by commenting /assign in comment 😀
Make sure you follow CODE OF CONDUCT and CONTRIBUTING GUIDELINES 🚀
Don’t Forget to ⭐ our GameZone🎮
Make sure you join our Discord🕹

Hey @SanskarSinghiit ! Thank you so much for your raising the issue💗
It’s all yours, you can come anytime again and make some contributions! 🚀
Alone, we can do little, but together we can do so much! 😇


Backport 2.7: Return internal error code, if failed

Description
Backport of #1096 to mbedtls-2.7
Status
READY

@andresag01 Thank you for the review.
I have addressed your comments

@andresag01 Please re-review. Both the main PR and the mbedtls-2.16 backport have been approved, but are held back by this backport's lack of approval.

@andresag01 - please re-review this PR, as it is targeted at Mbed TLS 19.02.

The 2.7 branch has reached its end of life, so I am closing this pull request.


TIL image viewer down.

http://quip1.bmi.stonybrook.edu:443/camicroscope/osdCamicroscope.php?tissueId=TCGA-AR-A252-01Z-00-DX1

From the link on TIL map annotations.

It looks like http ---> https might fix it

Fixed, with fix as suggested.


Crash Handler Crashes

On accessing the server in the browser is get Internal Server Error
This is what is displayed in the console
Crash Handler Crashed: {throw,     {handler_not_found_in_context,crash_handler,         [{handler_context,config_handler,default_config_handler,undefined,[]},          {handler_context,log_handler,default_log_handler,undefined,[]},          {handler_context,process_registry_handler,nprocreg_registry_handler,              undefined,[]}]},     [{wf_handler,get_handler,1,[{file,"src/lib/wf_handler.erl"},{line,92}]},      {wf_handler,call_readonly,3,[{file,"src/lib/wf_handler.erl"},{line,60}]},      {wf_core,run_crashed_first_request,3,          [{file,"src/wf_core.erl"},{line,237}]},      {wf_core,run_crash,4,[{file,"src/wf_core.erl"},{line,44}]},      {httpd_response,traverse_modules,2,           [{file,"httpd_response.erl"},{line,82}]},      {httpd_response,generate_and_send_response,1,          [{file,"httpd_response.erl"},{line,45}]},      {httpd_request_handler,handle_response,1,          [{file,"httpd_request_handler.erl"},{line,626}]},      {gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,680}]}]}
Original Crash: {exit,{noproc,{gen_server,call,[nitro_cache_expirer,{new,nitrogen}]}},       [{gen_server,call,2,[{file,"gen_server.erl"},{line,238}]},        {nitro_cache,init,1,[{file,"src/nitro_cache.erl"},{line,48}]},        {default_cache_handler,add_cache,2,                               [{file,"src/handlers/cache/default_cache_handler.erl"},                                {line,42}]},        {default_cache_handler,init,2,                               [{file,"src/handlers/cache/default_cache_handler.erl"},                                {line,23}]},        {wf_handler,init,1,[{file,"src/lib/wf_handler.erl"},{line,16}]},        {wf_core,'-call_init_on_handlers/0-lc$^0/1-0-',1,                 [{file,"src/wf_core.erl"},{line,211}]},        {wf_core,call_init_on_handlers,0,[{file,"src/wf_core.erl"},{line,211}]},        {wf_core,run_catched,0,[{file,"src/wf_core.erl"},{line,86}]}]}

Hit @dotsiadia, I'm so sorry. I completely missed responding to this.
Is there any context to this.  When did the crashing start?
It looks like this just needs to make sure that nitro_cache is started.  simple_cache was renamed to nitro_cache to avoid a naming clash, and the newest version of simple_cache is just an alias for nitro_cache.  You could try pulling down the latest version of simple_cache and it should all work from there.
Sorry again for the slow response.  I'm a butthead.

Excellent. Thanks for the update.


Faster coco eval support

Hello, I suggest to include the fast validation library "faster-coco-eval" for validating coco & lvis datasets.
The guys from lightning.ai have been using it for a long time as an alternative backend for validation, instead of the dying pycocotools.
https://lightning.ai/docs/torchmetrics/stable/detection/mean_average_precision.html
The guys from ultralytics are also preparing to accept my changes, I think they will be useful for you too!
I wrote a simple integrator of this library for you.
I have also prepared examples of this library in advance for you, they are available here:
https://github.com/MiXaiLL76/faster_coco_eval/blob/main/examples/comparison/ultralytics/colab_example.ipynb
or
https://nbviewer.org/github/MiXaiLL76/faster_coco_eval/blob/main/examples/comparison/ultralytics/colab_example.ipynb
For quick comparison, here is a table from the end of this document:
ultralytics eval compare considering data loading

lib
model
time
profit

faster-coco-eval
bbox
7.34
4.5x

pycocotools
bbox
34.35
1x

----
-----
----
------

faster-coco-eval
bbox+segm
26.51
3.2x

pycocotools
bbox+segm
86.79
1x

----
-----
----
------

faster-coco-eval
bbox+keypoints
4.45
2,2x

pycocotools
bbox+keypoints
10.17
1x

I understand that you have a legacy, fast-coco-eval. But it is not convenient to use and requires additional steps to install. My library, took the best of pycocotools & detectron2 fast-coco-eval

torchvision.datasets.CocoDetection requires pycocotools
[rank2]:   File "/home/miniconda3/envs/dfine/lib/python3.11/site-packages/torchvision/datasets/coco.py", line 35, in __init__
[rank2]:     from pycocotools.coco import COCO

torchvision.datasets.CocoDetection requires pycocotools

[rank2]:   File "/home/miniconda3/envs/dfine/lib/python3.11/site-packages/torchvision/datasets/coco.py", line 35, in __init__
[rank2]:     from pycocotools.coco import COCO

2. Error:

[rank3]:   File "/home/code/D-FINE-master/src/data/dataset/coco_eval.py", line 68, in update
[rank3]:     coco_dt = COCO.loadRes(self.coco_gt, results) if results else COCO()
[rank3]:               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[rank3]:   File "/home/miniconda3/envs/dfine/lib/python3.11/site-packages/faster_coco_eval/core/coco.py", line 332, in loadRes
[rank3]:     if self.use_deepcopy:
[rank3]:        ^^^^^^^^^^^^^^^^^
[rank3]: AttributeError: 'COCO' object has no attribute 'use_deepcopy'

I'll have a look now, thanks!

For such cases, I have a prepared "feature" that allows you to simply redefine pycocotools.

I think it is necessary to add tests and .pre-commit-config.yaml to the repository

After updating the code, I ran into new a problem. There still seem to be some code incompatibilities
[rank3]:   File "/home/miniconda3/envs/detr/lib/python3.11/site-packages/faster_coco_eval/core/cocoeval.py", line 338, in evaluateImg
[rank3]:     raise DeprecationWarning("COCOeval.evaluateImg deprecated! Use COCOeval_faster.evaluateImg instead.")
[rank3]: DeprecationWarning: COCOeval.evaluateImg deprecated! Use COCOeval_faster.evaluateImg instead.

I think it is necessary to add tests and .pre-commit-config.yaml to the repository
Thank you for the suggestion. I’ll consider adding tests and the .pre-commit-config.yaml file.

I think it is necessary to add tests and .pre-commit-config.yaml to the repository
Thank you for the suggestion. I’ll consider adding tests and the .pre-commit-config.yaml file.

.pre-commit-config.yaml
# Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

default_language_version:
  python: python3

ci:
  autofix_prs: true
  autoupdate_commit_msg: "[pre-commit.ci] pre-commit suggestions"
  autoupdate_schedule: quarterly
  # submodules: true

repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v5.0.0
    hooks:
      - id: end-of-file-fixer
      - id: trailing-whitespace
      # - id: check-json # skip for incompatibility with .devcontainer/devcontainer.json
      - id: check-yaml
      - id: check-toml
      - id: check-docstring-first
      - id: check-executables-have-shebangs
      - id: check-case-conflict
      # - id: check-added-large-files
      #   args: ["--maxkb=100", "--enforce-all"]
      - id: detect-private-key

  - repo: https://github.com/PyCQA/docformatter
    rev: v1.7.5
    hooks:
      - id: docformatter
        additional_dependencies: [tomli]
        args: ["--in-place"]

  - repo: https://github.com/executablebooks/mdformat
    rev: 0.7.17
    hooks:
      - id: mdformat
        args: ["--number"]
        additional_dependencies:
          - mdformat-gfm
          - mdformat-black
          - mdformat_frontmatter

  - repo: https://github.com/astral-sh/ruff-pre-commit
    rev: v0.6.9
    hooks:
      # try to fix what is possible
      - id: ruff
        args: ["--fix"]
      # perform formatting updates
      - id: ruff-format
      # validate if all is fine with preview mode
      - id: ruff

pyproject.toml
[tool.ruff]
target-version = "py37"
line-length = 120

#[tool.ruff.pycodestyle]
#ignore-overlong-task-comments = true
format.preview = true
lint.ignore = ["E722", "F403", "E741", "F841"]
# Unlike Flake8, default to a complexity level of 10.
lint.mccabe.max-complexity = 10
# Use Google-style docstrings.
lint.pydocstyle.convention = "google"
# exclude = ["examples"]

Usage
pip3 install pre-commit==3.8.0
pre-commit run --all-files

After updating the code, I ran into new a problem. There still seem to be some code incompatibilities
[rank3]:   File "/home/miniconda3/envs/detr/lib/python3.11/site-packages/faster_coco_eval/core/cocoeval.py", line 338, in evaluateImg
[rank3]:     raise DeprecationWarning("COCOeval.evaluateImg deprecated! Use COCOeval_faster.evaluateImg instead.")
[rank3]: DeprecationWarning: COCOeval.evaluateImg deprecated! Use COCOeval_faster.evaluateImg instead.

Do I understand correctly that validation is carried out in parts on several GPUs at once?

Yes, judging by the code, not everything is so simple with multithreading)
I recently had such an issue https://github.com/MiXaiLL76/faster_coco_eval/issues/45
I will soon release a new version that will work with multithreaded validation. And I will prepare new code, as soon as it is ready, I will continue this PR. For now, let's put it on HOLD for a few days

I think it is necessary to add tests and .pre-commit-config.yaml to the repository
Thank you for the suggestion. I’ll consider adding tests and the .pre-commit-config.yaml file.

.pre-commit-config.yaml
# Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

default_language_version:
  python: python3

ci:
  autofix_prs: true
  autoupdate_commit_msg: "[pre-commit.ci] pre-commit suggestions"
  autoupdate_schedule: quarterly
  # submodules: true

repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v5.0.0
    hooks:
      - id: end-of-file-fixer
      - id: trailing-whitespace
      # - id: check-json # skip for incompatibility with .devcontainer/devcontainer.json
      - id: check-yaml
      - id: check-toml
      - id: check-docstring-first
      - id: check-executables-have-shebangs
      - id: check-case-conflict
      # - id: check-added-large-files
      #   args: ["--maxkb=100", "--enforce-all"]
      - id: detect-private-key

  - repo: https://github.com/PyCQA/docformatter
    rev: v1.7.5
    hooks:
      - id: docformatter
        additional_dependencies: [tomli]
        args: ["--in-place"]

  - repo: https://github.com/executablebooks/mdformat
    rev: 0.7.17
    hooks:
      - id: mdformat
        args: ["--number"]
        additional_dependencies:
          - mdformat-gfm
          - mdformat-black
          - mdformat_frontmatter

  - repo: https://github.com/astral-sh/ruff-pre-commit
    rev: v0.6.9
    hooks:
      # try to fix what is possible
      - id: ruff
        args: ["--fix"]
      # perform formatting updates
      - id: ruff-format
      # validate if all is fine with preview mode
      - id: ruff

pyproject.toml
[tool.ruff]
target-version = "py37"
line-length = 120

#[tool.ruff.pycodestyle]
#ignore-overlong-task-comments = true
format.preview = true
lint.ignore = ["E722", "F403", "E741", "F841"]
# Unlike Flake8, default to a complexity level of 10.
lint.mccabe.max-complexity = 10
# Use Google-style docstrings.
lint.pydocstyle.convention = "google"
# exclude = ["examples"]

Usage
pip3 install pre-commit==3.8.0
pre-commit run --all-files

After running the check, almost all of the files have been modified, and there are quite a few unnecessary line breaks that may interfere with the code reading experience.

You need to configure what you need yourself. These are best practices.
Yes, all files will be changed, but this is only at first glance, readability will decrease. In fact, in the long run, it will increase.
You can study the code from
https://github.com/Lightning-AI/torchmetrics
or
https://github.com/ultralytics/ultralytics
This approach is used there. It is just configured

You need to configure what you need yourself. These are best practices. Yes, all files will be changed, but this is only at first glance, readability will decrease. In fact, in the long run, it will increase.
You can study the code from https://github.com/Lightning-AI/torchmetrics or https://github.com/ultralytics/ultralytics
This approach is used there. It is just configured

Thank you very much. I will refer to it


Issues with Compendium Folders custom icons

Hi, I'm the dev of Compendium Folders and people have been reporting that the folder icons on the sidebar folders have been resetting to an unreachable image (fa-solid:folder) every time they refresh the page. I've narrowed it down to this module thats causing it.
I tried to checkout your module to have a look around but theres a lot of libraries i dont understand how to setup + configure. Could you maybe add a check to see if the folder has an icon already? Then if not you can null it, which will use the fontAwesome folder icons by default.
If you need any assistance feel free to reach out on discord @Erceron#0370

Hi. Yeah, it looks like my bug. Thanks, I'll fix it in a couple of days.

Fixed in https://github.com/averrin/alpha-suit/releases/tag/0.2.2

Seems to still be happening :(


Missing pre-requisites for subscription creation?

Are there any pre-requisites (e.g. enrollment account type, tenancy, etc.) to create subscription programmatically?
when I use guidance on enabling subscription creation on MSDN tenant, I don't get  enrollmentAccount associated with it. see below excerpt from $listBillingAccount.value[0].properties.
accountStatus            : Active
accountType              : Individual
agreementType            : MicrosoftOnlineServicesProgram
billingProfiles          : @{hasMoreResults=False}
displayName              : XXX XXX
hasReadAccess            : True
notificationEmailAddress<EMAIL_ADDRESS>soldTo                   : @{addressLine1=XXX; addressLine2=; addressLine3=; city=XXX;
                           companyName=XXX; country=XXX; firstName=XXX;
                           lastName=XXX; phoneNumber=XXX; postalCode=XXXX; region=}

with M365 Developer Program tenant, i don't even get listBillingAccount
does creating subscriptions works with only EA tenants?

There's different pre-requisites for EA, MCA, and MPA. Public docs @ https://docs.microsoft.com/en-us/azure/cost-management-billing/manage/programmatically-create-subscription-enterprise-agreement?tabs=rest-getEnrollments%2Crest-EA

There's different pre-requisites for EA, MCA, and MPA. Public docs @ https://docs.microsoft.com/en-us/azure/cost-management-billing/manage/programmatically-create-subscription-enterprise-agreement?tabs=rest-getEnrollments%2Crest-EA


Update macOS setup description

It seems macOS doesn't require any setup. Maybe this can reflect to the doc.

Awesome :magic_wand:


Including Verbosity adds the docstring to the help output

The simple example in the crate docs demonstrates the behaviour:
use structopt::StructOpt;
use clap_verbosity_flag::Verbosity;

#[derive(Debug, StructOpt)]
struct Cli {
    #[structopt(flatten)]
    verbose: Verbosity,
}

fn main() {
    Cli::from_args();
}

Then running:
❯ ./target/debug/examples/simple --help
clap-verbosity-flag 0.3.0
Easily add a `--verbose` flag to CLIs using Structopt

# Examples

```rust use structopt::StructOpt; use clap_verbosity_flag::Verbosity;

/// Le CLI #[derive(Debug, StructOpt)] struct Cli { #[structopt(flatten)] verbose: Verbosity, } # # fn main() {} ```

USAGE:
    simple [FLAGS]

FLAGS:
    -h, --help
            Prints help information

    -q, --quiet
            Pass many times for less log output

    -V, --version
            Prints version information

    -v, --verbose
            Pass many times for more log output

            By default, it'll only report errors. Passing `-v` one time also prints warnings, `-vv` enables info
            logging, `-vvv` debug, and `-vvvv` trace.

Is this perhaps due to a new version of structopt?

I just checked and it looks like this change occurred between structopt versions 0.3.5 and 0.3.7 (0.3.6 has been yanked).


Test formatDate util functions

Hey, I will write some test cases 👍

Awesome! Thanks.

The code is here: https://github.com/lifestonechurch/lifestonechurch.net/tree/fd47196fe8bc9bf9b079fc889270628857696b45/src/utils


Added bubble sort in sorting folder.

Related Issue

Add Bubble sort.

[x] DevIncept Participant

[ ] Contributor

Closes: #9
Describe the changes you've made
I have added bubble sort algorithm.
Type of change
What sort of change have you made:

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Code style update (formatting, local variables)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
Describe how have you verified the changes made
I ran the program in my laptop as well as online ide.
Checklist:

[x] My code follows the guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly whereever it was hard to understand.
[x] I have made corresponding changes to the documentation.
[x] My changes generate no new warnings.
[x] I have added test cases that prove my fix is effective or that my feature works.

Changes to be done:
It's not this way. Create a project folder as "Bubble Sort"
Then add bubble_sort.py and README.md file. The README template is provided. It should be brief enough. Also add appropriate images needed to explain it better
Also since it's a .py file, output screenshot is must. Add the screenshot of the compilation taken and place it in "Images" folder. All images should be present here.
Kindly do these needful changes. @siddhi-244

Sure !

@prathimacode-hub  I have done the changes. Please check!

Kindly fill the form with your PR link.  Your have 4 PR's merged in total in this project. Form is available in slack project channel. @siddhi-244

Kindly fill the form with your PR link.  Your have 4 PR's merged in total in this project. Form is available in slack project channel. @siddhi-244

Maam can uh please check once again I have filled the form!

Yes, got 4 responses. great. Cool.


[python] Monitor state file not found when log_id contains slash characters?

When running python/utilities/logobserver/logobserver.py against Certly (or DigiCert, etc) log servers, it would fail like:
WARNING:root:Monitor state file not found, assuming first run.
ERROR:root:get-sth from https://log.certly.io failed: [Errno 2] No such file or directory: u'/tmp/ct_monitor/zbUXm3/BwEb+6jETaj+PAC5hgvr4iW/syLL1tatgSQA='
ERROR:root:Update failed
ERROR:root:Failed to update data for https://log.certly.io: latest timestamp is Wed Dec 31 16:00:00 1969

I'm guessing that this is because the monitor state files are named by the log_id but some IDs have slashes in them?

Yeah, that's right, you can probably get it to work by running mkdir -p /tmp/ct_monitor/zbUXm3/BwEb+6jETaj+PAC5hgvr4iW first? But that's a bit of a hack...
We encountered this problem with ct-server as well, I think we ended up changing the encoding of the log IDs, to hex-encoding, I believe?

Interesting hack :p Yeah, probably better to encode the log IDs.


Set spanScaleFactor when running tests using sbt

Is there a way to specify the spanScaleFactor when running the tests using sbt via sbt test or sbt it:test? From the code I've seen, it looks like it can only be set via -F <some factor> when using the scalatest runner.
https://github.com/scalatest/scalatest/blob/62f2b411ab3ee4d99768f94a64ad087c7c05b3df/scalatest/src/main/scala/org/scalatest/concurrent/ScaledTimeSpans.scala#L198
Is there a way to pass that option via sbt through the command line or an environment variable? I need to be able to scale my test timeouts when running on Travis CI. If not, I guess I'll need to write my own version of the scaled function that checks for an environment variable.
I'm using the latest tentative release of 3.0.0, by the way, which is 3.0.0-M11. Need it to get around some parallel test issues.

@chipsenkbeil SBT should read -F and set Runner.spanScaleFactor accordingly:
https://github.com/scalatest/scalatest/blob/master/scalatest/src/main/scala/org/scalatest/tools/Framework.scala#L1125
If it is not working for you, do you mind sharing with us a sample project that reproduce your problem?

Awesome! How exactly do I pass this value in via the command line with sbt? sbt -F 10 it:test, sbt "it:test -F 10", sbt "-F 10 it:test", sbt it:test -F 10, sbt it:test -- -F 10, and sbt "it:test -- -F 10"` all give me errors regarding invalid input.
So, what is unclear to me is how I pass the -F option when starting an sbt test task.

@chipsenkbeil -- only works for test-only, I don't think you can pass arguments to sbt's test task directly, it has to be set through testOptions (perhaps you can set the testOptions from env var):
testOptions in Test += Tests.Argument(TestFrameworks.ScalaTest, "-F", "10")
here's the related sbt documentations:
http://www.scala-sbt.org/0.13/docs/Testing.html
Hope they help.  :)

@cheeseng great! Got it working thanks to your suggestion. I was trying to use standard Test.Argument instead of specifying the ScalaTest test framework. For reference, I added the following to my own Common.scala whose settings are included in each project to read in an environment variable for the span scale factor:
object Common {
  lazy val scalaTestSpanScaleFactor = settingKey[Double](
    "Sets scaling factor of running tests that are wrapped in scale(...)"
  )

  def settings = Seq(
    ...
    scalaTestSpanScaleFactor := {
      Try(System.getenv("SCALATEST_SPAN_SCALE_FACTOR").toDouble).getOrElse(1.0)
    },

    testOptions in Test += Tests.Argument(TestFrameworks.ScalaTest,
      "-F", scalaTestSpanScaleFactor.value.toString
    ),

    testOptions in IntegrationTest += Tests.Argument(TestFrameworks.ScalaTest,
      "-F", scalaTestSpanScaleFactor.value.toString
    ),
    ...
  )
}


Fix json example

Remove extra , and tab at the end of the example

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


Add option for changing DEMS data type

Current name
Proposed name
Units

Tsignal
brightness
K

Psignal
power
??

amplitude
??
??

phase
??
??

line_phase
??
??

cf: https://github.com/deshima-dev/decode/blob/ea3e67fc44cefb51750126e64894248ee6711a89/decode/io.py#L161

Closed by #148.


Generic Builder should not need explicit type for build method

The following code shows a warning about usage of raw types when build() is called although the type of the builder b is well defined as Test.TestBuilder.
import lombok.Builder;
import lombok.Value;

@Builder
@Value
public class Test<T> {
    T value;

    public static void main(String[] args) {
        final TestBuilder<String> b = Test.<String>builder().value("a");
        final Test<String> t = b.build();
    }
}

This warning can only be removed when replacing with
final Test<String> t = b.<String>build();

Just out of curiosity - is this actually working in Eclipse and supported by native lombok?

Native lombok doesn't know about generic type because of type erasure. I just added a screenshot that shows that at least in the structure, you can see the build() method return Data and does not need static type added to the call.

We will discuss this and see if this actually something we should support.
The goal is to mimic Eclipse functionality (supported by Lombok natively) as closely as possible.

Hello @violplayer, sorry for the huge delay!
I think this issue was already fixed in the last release of the plugin (0.13). It is not reproducible for me any more.

Hello @mplushnikov,
thanks for your effort. Seems to be fixed in version 0.13.14.
Best regards
Sven


Bun stores jsonb nil value as string "null" instead of NULL

I have a model with field:
Attributes json.RawMessage `bun:"type:jsonb"`

Associated column in table:
attributes jsonb default '{}'::jsonb

In my table the associated column is nullable, which means that I expect to have NULL in database in case, when Attributes field value is nil.
Instead Bun converts nil value to string "null". It breaks the logic of the default value.
In go-pg it worked as expected.

There is a test and it seems to be working as expected - https://github.com/uptrace/bun/blob/master/internal/dbtest/query_test.go#L373-L384

@vmihailenco Am I right that test you provided only checks that it is possible to insert model with nil json.RawMessage field?
If so, it is not the case I'm talking about.
Check please my first comment for the details.

I don't see additional details in your first message. Anyway, if somehow there is a "null" string in json.RawMessage, Bun does not have any choice but to store it. I doubt go-pg worked any different.

@vmihailenco I don't set anything manually to my json.RawMessage field. Right before tx.NewInsert().Model(&stateObj).Exec(ctx) the field stateObj.Attributes (json.RawMessage) is nil.
But resulting query for some reason contains not NULL value, but 'null'. So it is Bun the one who transforms json.RawMessage field from nil to 'null' instead of NULL.

Please provide the code that reproduces the problem.

@vmihailenco I compared how both libraries add value to the query. The problem was in nullzero tag.
go-pg set DEFAULT value for the column because by default it set nullzero tag to each field.
For some reason I thought that nullzero tag make sense only for strings, ints, bools.
json.RawMessage has a nil value by default, but still needs nullzero tag if DEFAULT/NULL value is needed. Otherwise nil value will be marshaled to json. Marshal result will be string 'null'.
Thanks for the help!


Add another IntoFrame variant

It can be used to simplify the c-api.

Coverage remained the same at 81.309% when pulling bd8132ddb7cb14ec09a476ae46ee34e1779cfe74 on rust-av:more-into_frame into 5554cfe2f897d27cc64a8964f355e0d7982f081a on xiph:master.

19:39 < lu_zero> Daemon404: can I land the IntoFrame patch?
19:45 < Daemon404> lu_zero, yes


Possible to generate types used in links endpoint?

I'm using a folder structure inside Storyblok to set up a new FAQ, where the structure looks like the following:
Parent folder
    - Sub folder
        - Question
        - Question
    - Sub folder
        - Question
        - Question
        - Question
Parent folder
    - Sub folder
        - Question

...and so on. This to get unique slugs for each parent/sub folder/question, to make everything linkable.
I'm fetching the folders to set up the url structure in my project like this:
const customerFaq = await client.getAll('cdn/links', {
	version: "draft",
	starts_with: 'faq/customer/'
});

To filter the folders, I do like this:
const customerFaqFolders = customerFaq.filter((item) => item.is_folder);
Each of these folder entries looks like this:
{
    id: 12345678,
    slug: 'faq/customer/folder',
    name: 'Folder name',
    is_folder: true,
    parent_id: 23456789,
    published: false,
    path: null,
    position: 0,
    uuid: '12345678-1234-1234-1234-012345678910',
    is_startpage: false,
    real_path: '/faq/customer/folder'
}

...but it seems there are not types being generated for the folder structure, only for the Question stories inside the folders.
Is it possible to set up typings for these kind of items, which are fetched with the cdn/links endpoint?
Thanks a lot for this awesome library, it has helped us a lot when working with Storyblok!

does #41 might help you? I am very busy at work will try to bump out a new version very soon

Hmm, interesting! Might do, need to look a bit closer on how the CLI works at storyblok! Thanks, appreciate you taking the time to answer!

You might have confused what this library does: you fetch via storyblok CLI a component structure:
storyblok pull-components --space=[SPACE_ID]

This JSON file created you feed via step 3 described here: https://github.com/dohomi/storyblok-generate-ts#c-create-node-script-inside-of-your-packagejson-scripts
So there are no backend calls whatsoever inside of this library, it just parses JSON components from Storyblok and creates TypeScript definition files. Hope this helps you to deal with your task.

closing this for now


Replace redirected file link with new target

replace link to data binding overview topic to avoid redirect hop
remove trailing whitespace (diff with ignore WS changes)

Will fix this link as part of whole cloth effort to replace redirects.


Add 19zhangt as contributor

I want to share a tutorial of Galaxy-based tool iwa-miRNA in the Galaxy Training Network. iwa-miRNA provides the interactive web-based annotation of plant miRNAs, and the iwa-miRNA Docker image is available at https://hub.docker.com/r/malab/iwa-mirna. MicroRNAs (miRNAs) are important regulators of gene expression. However, generating high-quality comprehensive miRNA annotations remains challenging, due to the inherent limitation of existing miRNA predictions. We present iwa-miRNA, a web-based framework that facilitates miRNA annotation in plant species, bridging the gap between computational analysis and manual curation. Detailed tutorial can help researchers use iwa-miRNA for their own plant miRNA studies.

Hi @19zhangt thanks for your interest in contributing to the Galaxy Training Materials. Feel free to contact us on Gitter so we can discuss how we can help you add your tutorial here, or join our Collaboration Fest this Thursday (more info)


JBPM-4938: MSSQL2012: exception when trying to configure task filter …

…showing task variables
Removed "order by" from dataset definition to avoid problems with Microsoft Sql server.

+1 thanks @nmirasch!

6.4.x: 650aa839e8728169ece19c53d19f98856a9ef987


fix: Obtain the downloaded zookeeper path when run unit test

What is the purpose of the change
see #9478
Brief changelog

Set priorities for the downloaed zookeeper path
Support environment variables

Verifying this change

Checklist

[x] Make sure there is a GitHub_issue field for the change (usually before you start working on it). Trivial changes like typos do not require a GitHub issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[x] Each commit in the pull request should have a meaningful subject line and body.
[x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[x] Check if is necessary to patch to Dubbo 3 if you are work on Dubbo 2.7
[x] Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add sample in dubbo samples project.
[ ] Add some description to dubbo-website project if you are requesting to add a feature.
[x] GitHub Actions works fine on your own branch.
[ ] If this contribution is large, please follow the Software Donation Guide.

Codecov Report

Merging #9486 (5206995) into 3.0 (5e8f554) will decrease coverage by 0.22%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##                3.0    #9486      +/-   ##
============================================
- Coverage     65.34%   65.11%   -0.23%
+ Complexity      356      354       -2
============================================
  Files          1204     1204
  Lines         52083    52029      -54
  Branches       7785     7732      -53
============================================
- Hits          34032    33880     -152
- Misses        14420    14509      +89
- Partials       3631     3640       +9

Impacted Files
Coverage Δ

.../check/registrycenter/ZookeeperRegistryCenter.java
0.00% <0.00%> (ø)

...a/org/apache/dubbo/rpc/filter/AccessLogFilter.java
24.35% <0.00%> (-44.88%)
:arrow_down:

...va/org/apache/dubbo/rpc/support/AccessLogData.java
53.16% <0.00%> (-37.98%)
:arrow_down:

...ache/dubbo/remoting/transport/AbstractChannel.java
75.00% <0.00%> (-12.50%)
:arrow_down:

...in/java/org/apache/dubbo/common/utils/JVMUtil.java
79.59% <0.00%> (-12.25%)
:arrow_down:

...dubbo/common/status/support/LoadStatusChecker.java
50.00% <0.00%> (-11.54%)
:arrow_down:

.../remoting/transport/netty4/NettyServerHandler.java
58.13% <0.00%> (-9.31%)
:arrow_down:

...mmon/threadpool/support/fixed/FixedThreadPool.java
80.00% <0.00%> (-7.50%)
:arrow_down:

.../threadpool/support/limited/LimitedThreadPool.java
83.33% <0.00%> (-5.56%)
:arrow_down:

...o/rpc/protocol/injvm/DefaultParamDeepCopyUtil.java
57.89% <0.00%> (-5.27%)
:arrow_down:

... and 47 more

Continue to review full report at Codecov.

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


✨ Script to get CP contexts

Summary
This script allows one to add the kubeconfig of all KubeFlex control planes as contexts to the current kubeconfig.
Feature:

The current context does not matter.
It can deal with host type
Allows to replace the local ip <IP_ADDRESS> with another public ip using --replace-local-ip-address <address>
it creates a backup of the current config before editing it

Usage:
bash <(curl -s https://raw.githubusercontent.com/francostellari/kubestellar/hub-chart/scripts/import-cp-contexts.sh) --merge

Here is an example related to the kind clusters in common setup:
Initial setup:
bash <(https://raw.githubusercontent.com/kubestellar/kubestellar/main/scripts/create-kind-cluster-with-SSL-passthrough.sh) --name kubeflex

echo "Deploying KubeStellar Core..."
helm upgrade --install ks oci://ghcr.io/francostellari/kubestellar/core-chart --version 0.2.0 \
  --set-json='ITSes=[{"name":"its0","type":"host"},{"name":"its1","type":"vcluster"}]' \
  --set-json='WDSes=[{"name":"wds0","type":"host","ITSName":"its0"},{"name":"wds1","type":"k8s","ITSName":"its1"}]'

echo "Creating WECs..."
clusters=(cluster1 cluster2);
for cluster in "${clusters[@]}"; do
   kind create cluster --name ${cluster}
   kubectl config rename-context kind-${cluster} ${cluster}
done

Current state ... note that it's still pointing to cluster2 and no CP contexts:
$ k config get-contexts
CURRENT   NAME            CLUSTER         AUTHINFO        NAMESPACE
          cluster1        kind-cluster1   kind-cluster1
*        cluster2        kind-cluster2   kind-cluster2
          kind-kubeflex   kind-kubeflex   kind-kubeflex

Run:
bash <(curl -s https://raw.githubusercontent.com/francostellari/kubestellar/hub-chart/scripts/import-cp-contexts.sh) --merge

Now:
$ k config get-contexts
CURRENT   NAME            CLUSTER         AUTHINFO        NAMESPACE
          cluster1        kind-cluster1   kind-cluster1
*          cluster2        kind-cluster2   kind-cluster2
          its0            its0-cluster    its0-user
          its1            its1-cluster    its1-user
         kind-kubeflex   kind-kubeflex   kind-kubeflex
          wds0            wds0-cluster    wds0-user
          wds1            wds1-cluster    wds1-user       default

$ k --context its1 get pods -A
NAMESPACE                     NAME                                                        READY   STATUS    RESTARTS   AGE
open-cluster-management       cluster-manager-5c5574bd5d-p87x6                            1/1     Running   0          109m
kube-system                   coredns-68559449b6-8dqkj                                    1/1     Running   0          110m
open-cluster-management       addon-status-controller-7784764859-kgdn2                    1/1     Running   0          109m
open-cluster-management-hub   cluster-manager-registration-webhook-5959dcfc6f-xhtmw       1/1     Running   0          109m
open-cluster-management-hub   cluster-manager-registration-controller-7d6db54bd4-48c8c    1/1     Running   0          109m
open-cluster-management-hub   cluster-manager-placement-controller-674b49d996-knv9k       1/1     Running   0          109m
open-cluster-management-hub   cluster-manager-addon-manager-controller-64fcf75654-7flbn   1/1     Running   0          109m
open-cluster-management-hub   cluster-manager-work-webhook-695bc769cb-62dw6               1/1     Running   0          109m

Related issue(s)
Fixes #

--names its1,wds1
On Fri, May 24, 2024, 2:22 PM Mike Spreitzer @.***>
wrote:

I think that we can count on kubestellar/kubeflex#263
https://github.com/kubestellar/kubeflex/pull/263 landing.
With all the kflex work recently done and soon to land, I think it will
be simpler for users to use kflex. For example,
https://github.com/kubestellar/kubestellar/blob/f37ebdc09239ae4348accbba181a6f4cb37b5f45/docs/content/direct/common-setup-core-chart.md#obtain-the-kubeconfigs-to-access-the-kubeflex-control-planes
is simpler than bash-to-curl of a script. I also am not entirely happy with
a script that iterates over all control planes; I think it is better
for users to have and use tools that focus on a particular control plane
without making assumptions about all the user's control planes. As we
try to promote kubeflex for broader usage, I am not comfortable making
assumptions about the user's other usages of kubeflex.
—
Reply to this email directly, view it on GitHub
https://github.com/kubestellar/kubestellar/pull/2172#issuecomment-2130125250,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AL5TXIU7UT5XHOHWJ7MYHM3ZD6AORAVCNFSM6AAAAABIIAQI3SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZQGEZDKMRVGA
.
You are receiving this because you authored the thread.Message ID:
@.***>

Note that kflex works on the assumption that a given kubeconfig file has just one hosting context. kflex stores exactly one in the kubeconfig extension that kflex uses for this purpose.
Note that kflex does indeed store the name of the hosting context in that kubeconfig extension.
kflex does not modify the cluster, user, or context names. If I understand correctly, that is needed here only to support merging contexts from different kubeconfig files. I am not sure we really need that functionality.
Have you considered what this script will do in the case that the main inner loop (which is over ControlPlane objects, found in the context of the outer loop) matches a given name more than once (i.e., for multiple ControlPlane objects, either coming from multiple kubeconfig files or multiple contexts in one kubeconfig file that read from the same apiservers)?
I am concerned that having different behavior here than in kflex will be confusing.

@MikeSpreitzer I think I addressed all your comments, you can take another look when you have time


daemon: start daemon from a powershell script that hides window

after windows terminal became the default terminal/console host on windows the daemon scheduled task would show a console window upon running as it wasn't respecting the poweshell cmdline argument for hiding the window
this powershell script hides the window by using win32 api from powershell
fixes #3726

I think you tried this kind of approaches https://stackoverflow.com/questions/23250505/how-do-i-create-an-executable-from-golang-that-doesnt-open-a-console-window-whe to avoid showing the window?
https://github.com/crc-org/crc/commit/047873f671710ec263335a0decf5e91a4a59fefb seems to imply this isnot an option as we cannot run the binary directly from the task XMl, we need an intermediate powershell instance to start it?

I proposed something similar as Christophe; make the executable be 'regarded' as a GUI application, but not actually create the window.
Can this be tried?
The issue with the script is that this can be marked again as a problem when it comes to 'false positives' on scans.

I tried both the approaches mentioned there -- the issue with using -H=windowsgui is that, once CRC is compiled with this flag, it doesn't work as a CLI anymore, even when its launched from powershell as ./crc.exe --help, it means we have to ship two crc binaries, one for the daemon and another for the CLI. I didn't spend a lot of time looking to find a way if we can have an executable that is both GUI and CLI, but if that's possible i think we can use this method. as we can directly start it from task scheduler without having to invoke powershell
the other method using the github.com/gonutz/w32/v2 library to hide the windows after crc is launched seems to not do anything, my guess is because CRC doesn't create any window

Did we test it works with win10 and win11 both?

have an executable that is both GUI and CLI

You can't
"Each PE application contains a field in its header that specifies which subsystem it was designed to run under. You can say IMAGE_SUBSYSTEM_WINDOWS_GUI to mark yourself as a Windows GUI application, or you can say IMAGE_SUBSYSTEM_WINDOWS_CUI to say that you are a console application. If you are GUI application, then the program will run without a console." - Raymond Chen

Did we test it works with win10 and win11 both?

yes, i have tested the script hides the powershell window on both win 10 and 11, but not an end-to-end test using crc setup

Did we test it works with win10 and win11 both?

yes, i have tested the script hides the powershell window on both win 10 and 11, but not an end-to-end test using crc setup

tested on both windows 10 and windows 11 now and its working as expected, (still shows the powershell window briefly when running crc setup and then disappears)