SearchableDropdownTrait::getSource doesn't respect lazy-loading

Module version(s) affected
5.2.10
Description
Prior to Silverstripe 5.2 auto scaffolding of has_one relations would use a NumericField when there were over 100 items.
With the introduction of SearchableDropdownField the auto scaffolding now uses lazy-loading for large lists.
Unfortunately in the construction of the SearchableDropdownField getSource is called by getSourceEmpty. Even for lazy loaded SearchableDropdownFields.
SearchableDropdownTrait::getSource in turn calls SelectField::getListMap which tries to convert the large list into an array in memory.
As far as I can tell this array is never used, since the lazy-loading search will work on the Search Context to find elements.
But trying to create the array on large lists leads to the form failing to render with a timeout or memory exhaustion.
How to reproduce
Reproduction Steps:

Create simple model with has_one relationship (ClassA has_one ClassB, ClassB has_many ClassA)
Add many thousands of Dataobjects of ClassB (250.000 in our case)
Try opening ModelAdmin Detailform for ClassA

Possible Solution
Don't call getSource on lazyloaded SearchableDropdownFields.
Additional Context
Workaround: In ClassA::getCMSFields replace SearchableDropdownField with NumericField.
Validations

[X] Check that there isn't already an issue that reports the same bug
[X] Double check that your reproduction steps work in a fresh installation of silverstripe/installer (with any code examples you've provided)

New issues created

https://github.com/silverstripe/silverstripe-admin/issues/1778

PRs

https://github.com/silverstripe/silverstripe-framework/pull/11273

There are two different code paths that lead to calling getSource().
One is in the Field() method, which in DropdownField::Field() calls getSourceEmpty() which calls getSource().
We can take inspiration from silverstripe/tagfield here and just re-implement the Field() method to do the bare minimum that it needs to do.
The other is only when rendering the field in a react form (e.g. in elemental blocks). The call to getSchemaStateDefaults() ends up at SelectField::getSchemaStateDefaults() which calls getSource(). If I can find a clean solution for this one I'll raise a PR which solves both scenarios.

Ultimately the fact that SearchableDropdownTrait::getSource() returns an array should be considered a bug - it says it does so for compatibility with the parent class, but the parent class has a return type of array|ArrayAccess and DataList implements ArrayAccess, so it could have just returned that.
Regardless, the return type is strongly typed so we can't just change that in CMS 5. I'll submit a PR that fixes it for 5, and then submit another PR that fixes it better for 6.

Linked PR has been merged, it will be automatically tagged shortly

Reopened and assigned to me as per instructions in issue description

getSourceEmpty() wants to concat something to the start of the source array (despite saying it can be ArrayAccess so there's a breach of types there) - I can't see a super easy way to resolve that right now so putting it in the too hard basket.


Flutter Web: Refreshing browser resets navigation stack and local variables

Steps to Reproduce

Run git clone https://github.com/huffSamuel/flutter_browser_navigation.git
Run the application in Chrome and follow on-screen instructions.

Expected results:
Refreshing the browser refreshes the current page. Navigator stack and local variables are not cleared.
Actual results:
Current page refreshes but all local properties are null. Navigator stack is cleared so pressing the back arrow results in odd behavior.

Logs
[  +13 ms] executing: [C:\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +90 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] f994b769743368b36b9c03fb359f62230b60ab92
[        ] executing: [C:\flutter/] git tag --contains HEAD
[ +374 ms] Exit code 0 from: git tag --contains HEAD
[   +2 ms] 1.19.0-4.1.pre
[  +11 ms] executing: [C:\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +52 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/beta
[        ] executing: [C:\flutter/] git ls-remote --get-url origin
[  +49 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[ +103 ms] executing: [C:\flutter/] git rev-parse --abbrev-ref HEAD
[  +53 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] beta
[  +67 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +7 ms] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[   +6 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +19 ms] executing: C:\Users\xsand\AppData\Local\Android\Sdk\platform-tools\adb.exe devices -l
[  +43 ms] List of devices attached
[   +7 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[   +5 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[   +9 ms] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +211 ms] Generating C:\Users\xsand\src\browser_refresh\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[  +96 ms] This application is not configured to build on the web.
[        ] To add web support to a project, run `flutter create .`.
[   +1 ms] Launching lib\main.dart on Chrome in debug mode...
[  +65 ms] Updating assets
[  +95 ms] Syncing files to device Chrome...
[  +46 ms] Generating C:\Users\xsand\src\browser_refresh\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[  +59 ms] <- reset
[   +7 ms] C:\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev --old_gen_heap_size=2000 C:\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root C:\flutter\bin\cache\flutter_web_sdk/ --incremental --target=dartdevc
--debugger-module-names -Ddart.developer.causal_async_stacks=true --output-dill C:\Users\xsand\AppData\Local\Temp\flutter_tools.4c1f4105\flutter_tool.66061fbb\app.dill --libraries-spec file:///C:/flutter/bin/cache/flutter_web_sdk/libraries.json --packages .packages
-Ddart.vm.profile=false -Ddart.vm.product=false --bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts --track-widget-creation --filesystem-root
C:\Users\xsand\AppData\Local\Temp\flutter_tools.4c1f4105\flutter_tools.8b774b50 --filesystem-scheme org-dartlang-app --initialize-from-dill build\cache.dill.track.dill --platform file:///C:/flutter/bin/cache/flutter_web_sdk/kernel/flutter_ddc_sdk.dill
[  +12 ms] <- compile org-dartlang-app:/web_entrypoint.dart
[+12148 ms] Syncing files to device Chrome... (completed in 12,264ms, longer than expected)
[   +1 ms] Synced 22.2MB.
[        ] <- accept
[ +168 ms] [CHROME]:
[   +1 ms] [CHROME]:DevTools listening on ws://<IP_ADDRESS>:64332/devtools/browser/59681b2b-cb9f-48a9-b3b3-6bbda5c37881
[+5009 ms] Debug service listening on ws://<IP_ADDRESS>:64367/KYznAAIYw2A=

[ +537 ms] Debug service listening on ws://<IP_ADDRESS>:64367/KYznAAIYw2A=
[   +2 ms] Warning: Flutter's support for web development is not stable yet and hasn't
[        ] been thoroughly tested in production environments.
[        ] For more information see https://flutter.dev/web
[        ]   To hot restart changes while running, press "r" or "R".
[   +1 ms] For a more detailed help message, press "h". To quit, press "q".

Analyzing browser_refresh...
No issues found! (ran in 1.9s)

[√] Flutter (Channel beta, 1.19.0-4.1.pre, on Microsoft Windows [Version 10.0.18363.836], locale en-US)
    • Flutter version 1.19.0-4.1.pre at C:\flutter
    • Framework revision f994b76974 (2 days ago), 2020-06-09 15:53:13 -0700
    • Engine revision 9a28c3bcf4
    • Dart version 2.9.0 (build 2.9.0-14.1.beta)

[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at C:\Users\xsand\AppData\Local\Android\Sdk
    • Platform android-28, build-tools 28.0.3
    • ANDROID_HOME = C:\Users\xsand\AppData\Local\Android\Sdk
    • Java binary at: D:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
    • All Android licenses accepted.

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

[!] Android Studio (version 3.5)
    • Android Studio at D:\Program Files\Android\Android Studio
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)

[√] VS Code (version 1.46.0)
    • VS Code at C:\Users\xsand\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.11.0

[√] Connected device (2 available)
    • Web Server • web-server • web-javascript • Flutter Tools
    • Chrome     • chrome     • web-javascript • Google Chrome 83.0.4103.97

! Doctor found issues in 1 category.

flutter doctor -v
[✓] Flutter (Channel dev, 1.20.0-0.0.pre, on Mac OS X 10.15.5 19F101, locale en-GB)
    • Flutter version 1.20.0-0.0.pre at /Users/tahatesser/Code/flutter_dev
    • Framework revision d9653445f4 (3 days ago), 2020-06-09 18:43:03 -0400
    • Engine revision e8c13aa012
    • Dart version 2.9.0 (build 2.9.0-14.0.dev 5c1376615e)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/tahatesser/Code/sdk
    • Platform android-29, build-tools 29.0.3
    • ANDROID_HOME = /Users/tahatesser/Code/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.5, Build version 11E608c
    • CocoaPods version 1.9.3

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

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 46.0.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

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

[✓] Connected device (4 available)
    • SM M305F   • 32003c30dc19668f • android-arm64  • Android 10 (API 29)
    • macOS      • macOS            • darwin-x64     • Mac OS X 10.15.5 19F101
    • Web Server • web-server       • web-javascript • Flutter Tools
    • Chrome     • chrome           • web-javascript • Google Chrome 83.0.4103.97

• No issues found!

flutter doctor -v
[✓] Flutter (Channel beta, 1.19.0-4.1.pre, on Mac OS X 10.15.5 19F101, locale en-GB)
    • Flutter version 1.19.0-4.1.pre at /Users/tahatesser/Code/flutter_beta
    • Framework revision f994b76974 (3 days ago), 2020-06-09 15:53:13 -0700
    • Engine revision 9a28c3bcf4
    • Dart version 2.9.0 (build 2.9.0-14.1.beta)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/tahatesser/Code/sdk
    • Platform android-29, build-tools 29.0.3
    • ANDROID_HOME = /Users/tahatesser/Code/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.5, Build version 11E608c
    • CocoaPods version 1.9.3

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

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 46.0.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

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

[✓] Connected device (3 available)
    • SM M305F   • 32003c30dc19668f • android-arm64  • Android 10 (API 29)
    • Web Server • web-server       • web-javascript • Flutter Tools
    • Chrome     • chrome           • web-javascript • Google Chrome 83.0.4103.97

• No issues found!

When you refresh the page, the entire app is destroyed and launched again. This is how the browser works, nothing specific to Flutter here. So the values of local variables are expected to disappear.
The way navigation works today is by keeping the navigation stack in memory. This means the stack is destroyed on page refresh, and the history is lost.
There are a few projects coming along that will help with these issues:

Navigator 2.0: We are designing the Navigator/Router changes in the framework in a way that gives us better history on the web. cc @chunhtai
State Restoration: This will give app developers the possibility to store state and recover it after a page refresh (or after the app is killed in the background on mobile). cc @goderbauer

Any updates on this? There seems to be, at least a partial implementation for the Navigator 2.0 in the latest release but I'm not sure if everything needed to reset the navigation stack is there.

Any update on this? I do believe it is quite strange that there still is no solution to this obvious problem

Do you still see the issue if you use Router?

It's unfortunately refreshing the entire app, not only navigation stack

I think this problem by this issue https://bugs.chromium.org/p/chromium/issues/detail?id=1098388.

Using navigator 2.0 still does not resolve this issue.

Using navigator 2.0 still does not resolve this issue.

I'm not sure if this is entirely useful, but here's a stackoverflow suggestion from the dart:html package that detects when the page is being refreshed or closed (tested on my end and it works). My current working theory is that if I can detect when the page is being refreshed, I can set the local properties to previous values. Haven't completely figured it out yet, just thought I'd drop this if it's useful for anyone else.
https://stackoverflow.com/questions/62237262/flutter-web-detect-browser-tab-close-or-refresh

I'm not sure if this is entirely useful, but here's a stackoverflow suggestion from the dart:html package that detects when the page is being refreshed or closed (tested on my end and it works). My current working theory is that if I can detect when the page is being refreshed, I can set the local properties to previous values. Haven't completely figured it out yet, just thought I'd drop this if it's useful for anyone else.
https://stackoverflow.com/questions/62237262/flutter-web-detect-browser-tab-close-or-refresh

Followup, I think I've found a semi-promising but incomplete solution to the browser back arrow creating weird results issue after refreshing leads to the Navigator stack getting cleared.
Essentially I set up the html.window.onBeforeUnload.listen((event) async {...} listener inside my build function to detect when the browser is refreshed, and then push the same navigation route inside like this:
html.window.onBeforeUnload.listen((event) async {       Navigator.pushNamed(context, 'charities');     });
(The existing page that's being refreshed has a route name of '/charities').
What this does is it stacks a new navigation stack and disables the back button from being pressed so the funky browser back arrow action can't happen. I know it's not perfect but I think it's somewhat of a start. Please do lmk if anyone comes up with a better solution.

Followup, I think I've found a semi-promising but incomplete solution to the browser back arrow creating weird results issue after refreshing leads to the Navigator stack getting cleared.
Essentially I set up the html.window.onBeforeUnload.listen((event) async {...} listener inside my build function to detect when the browser is refreshed, and then push the same navigation route inside like this:
html.window.onBeforeUnload.listen((event) async {       Navigator.pushNamed(context, 'charities');     });
(The existing page that's being refreshed has a route name of '/charities').
What this does is it stacks a new navigation stack and disables the back button from being pressed so the funky browser back arrow action can't happen. I know it's not perfect but I think it's somewhat of a start. Please do lmk if anyone comes up with a better solution.

How can I preserve my token?
I use fluro router. And if the user presses refresh, my url is still there, but my session token in my variable is gone. So I redirect to login. But the user does not expect that on refresh.
I know how to execute code before unload, but what to execute to save my token?

Any update?  For my app, when browser's refresh button clicked, it should stay at same page, but when close button clicked, next time when reopen it, it should go to sign in page.  html.window.onBeforeUnload.listen can not work on this case.

@LiangHuangBC could you share your code ?

Flutter treats page refresh on web as an app restart. What I did as a workaround is I keep track of my current page in SharedPreferences. On page refresh, app checks if there's a page stored in SharedPreferences. If yes, it then the stored page was pushed. Otherwise, the default page will be displayed. Keep tabs on the current page by calling setCurrentPage(currentPage); during navigation.
@override
void initState(){
    super.initState();
    ...
    getCurrentPage().then((currentPageState) {
       _navigatorKey.currentState!.pushReplacementNamed(currentPageState);
    }
}

/// Fetch stored page. Display default page if null.
Future<String> getCurrentPage() async {
    var pref = await SharedPreferences.getInstance();
    return pref.getString(SharedPrefKey.currentPage) ?? NavigatorHelper.home;
}

/// Store current [page] to restore into during page refresh on web
Future<void> setCurrentPage(String page) async {
    var pref = await SharedPreferences.getInstance();
    pref.setString(SharedPrefKey.currentPage, page);
}

If named routes was used, the Navigation Stack for the previous named routes should persist on page refresh.
root_domain/#/ -> root_domain/#/page (page refresh) -> Going back to root_domain/#/ is possible

Any updates? As far as I am aware (please correct me if I'm wrong), there is nothing in the Navigator 2.0 API which allows developers to solve this problem, which seems quite a major one.

Waiting for Navigator 3.0 to solve this  🐞.

Was anyone able to solve this?
I am facing the same issue

same issue + 1

Any updates?

Same issue. I think this should be the top issue for flutter web cause it's really a bad experience for h5 users.

Same Issue + 1

Same issue :(

Same issue here guys.

Same Issue + 1

Can be solve by https://github.com/flutter/flutter/issues/65777#issuecomment-1306328740

Same Issue + 1

same issue, any update?

Same Issue + 1

any update ?

any update?

Facing same issue, any update?

Same Issue...

any update ?

any update?

any update?

Any update ?

any update? +1

Folks, this is expected behavior on the web. When you refresh the page, the app starts from scratch with all state cleared.
Flutter has the concept of state restoration which can help here, but it's not implemented for the web (yet). Please follow along in the corresponding issue (and add your thumbs ups there).
State restoration for web: https://github.com/flutter/flutter/issues/65777
I'm closing this issue because there's no extra value to be provided here.


Added OpenShift mcad-operator.v0.1.9

Signed-off-by: Diana Arroyo<EMAIL_ADDRESS>Thanks submitting your Operator. Please check below list before you create your Pull Request.

Flat operator directory structure is obsolete from 23-rd of October 2019, only nested directory structure will be accepted.

New Submissions

[x] Does your operator have nested directory structure?
[x ] Have you selected the Project Community Operator Submissions in your PR on the right-hand menu bar?
Right-hand menu bar does not allow me to select projects.
[x] Are you familiar with our contribution guidelines?
[x] Have you packaged and deployed your Operator for Operator Framework?

[x] Is your submission signed?

Updates to existing Operators

[ ] Is your new CSV pointing to the previous version with the replaces property?
[ ] Is your new CSV referenced in the appropriate channel defined in the package.yaml ?
[ ] Have you tested an update to your Operator when deployed via OLM?
[ ] Is your submission signed?

Your submission should not

[x] Modify more than one operator
[x] Modify an Operator you don't own
[x] Rename an operator - please remove and add with a different name instead
[x] Submit operators to both upstream-community-operators and community-operators at once
[x] Modify any files outside the above mentioned folders
[x] Contain more than one commit. Please squash your commits.

Operator Description must contain (in order)

[x] Description about the managed Application and where to find more information
[x] Features and capabilities of your Operator and how to use it
[x] Any manual steps about potential per-requisites for using your Operator

Operator Metadata should contain

[x] Human readable name and 1-liner description about your Operator
[x] Valid category name1
Application Runtime
[x] One of the pre-defined capability levels2
[x] Links to the maintainer, source code and documentation
[x] Example templates for all Custom Resource Definitions intended to be used
[x] A quadratic logo

Remember that you can preview your CSV here.
--
1 If you feel your Operator does not fit any of the pre-defined categories, file an issue against this repo and explain your need
2 For more information see here

Hey @dmatch01 ,
It's been noticed in your Operator CSV, the metadata.annotations.categories field is missing, which leads to an "empty category" on the OperatorHub.io (and the embedded OperatorHub in OCP console):

Here is the more info regarding the "categories" field of the CSV metadata:
https://github.com/operator-framework/community-operators/blob/master/docs/required-fields.md#categories
You can pick one (or multiple, separated with comma) for your Operator, e.g.
categories: Logging & Tracing
or
categories: Developer Tools, Security
Mind opening a follow-up PR to update the CSV with metadata.annotations.categories field assigned?
Thanks!

@tlwu2013: Will do!


⚠ Bofrost.hr has degraded performance

In 1f3cf9d, Bofrost.hr (https://www.bofrost.hr) experienced degraded performance:

HTTP code: 200
Response time: 3620 ms

Resolved: Bofrost.hr performance has improved in 37c30ef after 7 minutes.


Update Contributing Guidelines "Commit Messages" section to reflect the changes on iOS SDK

Update Contributing Guidelines "Commit Messages" section to reflect the changes on iOS SDK

I think this is a duplicate of #43


Add pep8 / flake8 config to setup.cfg

This gives useful reporting when just running pep8 / flake8 directly.

Current coverage is 96.94%

Merging #87 into master will decrease coverage by -0.75% as of be12f0e

Powered by Codecov. Updated on successful CI builds.

Hmmm, setup.cfg is meant to supply parameters when using python setup.py directly, e.g. python setup.py build.  You should invoke flake8 via tox, e.g. tox -e flake8 (and/or having your local (not committed to the repo) ~/.config/flake8 file). The [flake8] env in tox.ini file should have those configurations.

Right, the idea of this change is just to make pep8 / flake8 more useful by default, rather than having their project-specific configuration only apply when run via Tox. I usually prefer running flake8 directly, for interactive development, because tox -e flake8 is a bit heavyweight.
Both tools recommend putting their per-project configuration in either setup.cfg or tox.ini: I usually default to using setup.cfg, but tox.ini works just as well. Should I update the PR to put the configuration there?

@tardyp tox.ini should already have this.
I understand your interest in having something lightweight. So with that, I'd suggest just having a local flake8 config file.

A personal config doesn't help for these project-specific settings, though.
I update the PR to add [pep8] and [flake8] to tox.ini instead of just passing the configuration directly as command-line arguments. This works as before when running tox -e flake8, but now running pep8 and flake8 directly will also do the right thing, and use the project-specific settings.

Awesome, that works for me! Thank you!

Damn I just realized that the actual commit message is now incorrect after I merged it. gahhh

Whoops, I should have updated it, sorry. :)
C'est la vie!


Better story for admin vs non-admin

At least on Windows 8, installing to the default directory, under "C:\Program Files (x86)", fails with "Error opening file for writing." This is presumably because the installer hasn't sought UAC elevation, and that location is not writable with user permissions.

We still have work do to here. The installer requires elevated privs immediately on startup and once running the default paths will belong to the admin user, not the user who is running the installer! @ndmitchell Any ideas how to solve this?

Worse of all, the PATH of the admin user will be changed instead of the user running the installer.

I think if the installer is run as admin, it should do an admin install, if not, it should do a user install. I guess that means it needs to detect if it has admin privileges in advance - not sure how you do that in NSIS - will probably require some plugin.

Given my discovery of #60, I'm wondering whether our hopes of not requiring admin are lost. Even if we could get an installer that properly installed on non-admin accounts, the network library would not build. I'm guessing #60 is actually a bug of some sort, but at least for now, there's little encouragement to make MinGHC friendlier to non-admins.
The trouble however that we face is that since the installation is 100% user-local, when a non-admin get's admin permissions, he ends up installing MinGHC for someone else entirely, instead of installing something system-wide as he'd expect.

I am using MinGHC on a non-admin account - it does work, you just have to adjust the installation directory and ignore the prompt to increase privileges. With that, it does work.

Hmmm. I couldn't figure out how to ignore the admin-login prompt.

See #67

So I used to be able to ignore the admin-login prompt, but I can't anymore, which explains the discrepancy.

We now advise people use Stack instead, MinGHC is no longer supported.


Added will pop scope to defaultDialog

Hello, I would like to add willpopscope to defaultdialog() , So that we can make loading dialog with ease.
Hope It will find community useful.
Please add this kind of functionality where we can show loading dialog. Or let's discuss further regarding this

I know we can use dialog method but defaultdialog() is Love.

Thank you for your contribution, I find this very useful, but I need to check if it cannot cause side effects with the back() function.
After checking this I will accept this PR, thanks.

Please check and merge as soon as possible, I have tested it, if back method called then only it will pop.
Thanks.


Update running-locally.mdx add envs modifications for lauch in local

add the env we need to edit to run localy

Thank you!


feat: introduce forms audit

introducing forms audit worker
rum query implementation here : https://github.com/adobe/spacecat-shared/pull/429
data would look like :
{         "cwv": {           "cls": 0.006370692308102836,           "clsCount": 49,           "inp": 142,           "inpCount": 46,           "lcp": 3797.25,           "lcpCount": 64,           "ttfb": 1542.25,           "ttfbCount": 184         },         "formengagement": {           "desktop:windows": 100         },         "formsubmit": {},         "formview": {},         "pageview": {           "desktop:windows": 7898         },         "url": "https://business.adobe.com/se/resources/main.html"       }
Audit will help identify opportunities with high page views and low form views/engagement and forms with high engagement and low conversion rate

:tada: This PR is included in version 1.34.0 :tada:
The release is available on:

v1.34.0
GitHub release

Your semantic-release bot :package::rocket:


Add S3 bucket initialization for angular frontend web app

This MR contains:

Create pulumi module with S3 bucket init
Create web policy for the bucket

I've done all the suggested changes. Additionally I added IAM resources for github automatic deployment to the pulumi stack.


Not able to open Skype for Business

Hello Team,
I am trying to connect to technical team for microsoft skype for business tool issue. But not able to reach out with given phone number. Please help me to resolve my issue.
Issue: When I click on skype it opens the tool; however it disappears in 5 seconds.

@officedocsbot assign @mypil

@Gautami007 - Thank you for submitting feedback.
I think the best way forward is if you can open a service ticket in your tenant so this can get resolved ASAP. Based on outcome let me know if it is something that can be called out in the docs.
Please follow this link to contact support for business products:  https://docs.microsoft.com/office365/admin/contact-support-for-business-products
If you don't mind please keep us posted here on the resolution and I really want to get this information you are discovering back into the docs.

Hi, Unfortunately the online support numbers are not working and I am not sure how to logged service ticket.

@Gautami007 - One of the options you can follow is to contact support online through the admin center. Please follow the instructions here.
Hope this helps. Thank you!

@officedocsbot close


Type to manage zabbix application

Example:
Zabbix_application {
zabbix_url => 'zabbix_server1',
zabbix_user => 'admin',
zabbix_pass => 'zabbix',
}
zabbix_application{"app1":
ensure   => present,
template => 'template1',
}
Note: It Raise exception on deleting an application which is a part of used template.

Thanks! :+1:
Just in time for the 2.0.0 release. :-)


Support for streaming on afplay

Would like to know if it's possible to support streaming on a command-line player like afplay (a mac app)?
afplay allows audio playback of a video with out opening up any gui.
Using command:
youtube-dl -o - https://www.youtube.com/watch?v=z4PKzz81m5c | afplay -
gives the following error:-
unknown argument: -

    Audio File Play
    Version: 2.0
    Copyright 2003-2013, Apple Inc. All Rights Reserved.
    Specify -h (-help) for command options

Usage:
afplay [option...] audio_file

Options: (may appear before or after arguments)
  {-v | --volume} VOLUME
    set the volume for playback of the file
  {-h | --help}
    print help
  { --leaks}
    run leaks analysis
  {-t | --time} TIME
    play for TIME seconds
  {-r | --rate} RATE
    play at playback rate
  {-q | --rQuality} QUALITY
    set the quality used for rate-scaled playback (default is 0 - low quality, 1 - high quality)
  {-d | --debug}
    debug print output
[youtube] z4PKzz81m5c: Downloading webpage
[youtube] z4PKzz81m5c: Extracting video information
[youtube] z4PKzz81m5c: Downloading DASH manifest
[download] Destination: -
[download]   0.1% of 12.92MiB at  1.29MiB/s ETA 00:09

ERROR: unable to write data: [Errno 32] Broken pipe

Looks like afplay does not support playing from stdin.

There's an open issue for adding a --play option: #628.
Since this doesn't seem to be a problem in youtube-dl I'll close the issue (mplayer or mpv work without problem with that command).


Cross-platform. Perfect simple--mpv-webui alternative

Simple-mpv-webui doesn't work in Windows. Thank you
Can you use Github Actions to build the binary please? https://github.com/alacritty/alacritty/blob/master/.github/workflows/release.yml

I developed it on windows so it should work.
I'm not super keen on distributing binaries, but I will look into it a bit.


How to compile with musl support for Spring Boot

Hi,
I am reviewing the native features from Spring Boot 3 but I am not able to compile with musl support.
If you compile a Spring Boot application without the buildpack support, it is possible to do it if you add in your project:
mvn native:compile -Pnative package

pom.xml configuration:
					<plugin>
						<groupId>org.graalvm.buildtools</groupId>
						<artifactId>native-maven-plugin</artifactId>
						<configuration>
							<buildArgs>
								<buildArg>--static</buildArg>
								<buildArg>--libc=musl</buildArg>
							</buildArgs>
						</configuration>
					</plugin>

but you have to have in the PATH musl libraries. In that way, when you compile, you will see that the compiler changes:
========================================================================================================================
GraalVM Native Image: Generating 'benchmark-jibber' (static executable)...
========================================================================================================================
[1/7] Initializing...                                                                                (10.5s @ 0.17GB)
 Version info: 'GraalVM 23.0.0-dev Java 19 CE'
 Java version info: '19+36-jvmci-23.0-b01'
 C compiler: x86_64-linux-musl-gcc (linux, x86_64, 10.2.1)
 Garbage collector: Serial GC
 2 user-specific feature(s)
 - com.oracle.svm.thirdparty.gson.GsonFeature
 - org.springframework.aot.nativex.feature.PreComputeFieldFeature

But If I add the following configuration in the pom.xml and having in the PATH the musl library:
<plugin>
						<groupId>org.springframework.boot</groupId>
						<artifactId>spring-boot-maven-plugin</artifactId>
						<configuration>
							<imageName>jibber-benchmark:buildpacks-native.0.0.1-SNAPSHOT</imageName>
							<image>
								<buildpacks>
									<buildpack>gcr.io/paketo-buildpacks/bellsoft-liberica:9.10</buildpack>
									<buildpack>gcr.io/paketo-buildpacks/java-native-image</buildpack>
								</buildpacks>
								<env>
									<BP_BINARY_COMPRESSION_METHOD>upx</BP_BINARY_COMPRESSION_METHOD>
									<BP_NATIVE_IMAGE_BUILD_ARGUMENTS>--static --libc=musl</BP_NATIVE_IMAGE_BUILD_ARGUMENTS>
								</env>
							</image>
						</configuration>

then I receive an error:
mvn -Pnative spring-boot:build-image

[INFO] [creator] Error: Default native-compiler executable 'musl-gcc' not found via environment variable PATH:

How to compile with musl support?

Many thanks in advance
Juan Antonio

It may just be a matter of making sure that muls-gcc is installed. I'm pretty certain, it won't be in the tiny/base stacks, but it might be in the full stack, so you could give that a try.
Set the builder to paketobuildpacks/builder:full and see if it works.
If that doesn't work, you'd need to install the builder. There are a handful of options for doing that, which are outlined here. I would suggest option #4 first and see if you can make that work. If you add the apt-buildpack to the beginning of your buildpack list, that should allow it to install deps before any other buildpacks run.
Hope that helps!

Hi @dmikusa,
I was testing the first idea and it is not working:
					<plugin>
						<groupId>org.springframework.boot</groupId>
						<artifactId>spring-boot-maven-plugin</artifactId>
						<configuration>
							<imageName>jibber-benchmark:buildpacks-native.0.0.1-SNAPSHOT</imageName>
							<image>
								<builder>paketobuildpacks/builder:full</builder>
								<buildpacks>
									<buildpack>gcr.io/paketo-buildpacks/bellsoft-liberica:9.10</buildpack>
									<buildpack>gcr.io/paketo-buildpacks/java-native-image</buildpack>
								</buildpacks>
								<env>									<BP_BINARY_COMPRESSION_METHOD>upx</BP_BINARY_COMPRESSION_METHOD>
									<BP_NATIVE_IMAGE_BUILD_ARGUMENTS>--static --libc=musl</BP_NATIVE_IMAGE_BUILD_ARGUMENTS>
								</env>
							</image>
						</configuration>
					</plugin>

Error:
[INFO]     [creator]     [1/7] Initializing...                                            (0.0s @ 0.27GB)
[INFO]     [creator]     Error: Default native-compiler executable 'musl-gcc' not found via environment variable PATH
[INFO]     [creator]     Error: To prevent native-toolchain checking provide command-line option -H:-CheckToolchain
[INFO]     [creator]     Error: Use -H:+ReportExceptionStackTraces to print stacktrace of underlying exception
[INFO]     [creator]     --------------------------------------------------------------------------------
[INFO]     [creator]          0.6s (7.5% of total time) in 8 GCs | Peak RSS: 0.64GB | CPU load: 1.90
[INFO]     [creator]     ================================================================================
[INFO]     [creator]     Failed generating '/layers/paketo-buildpacks_native-image/native-image/com.example.benchmarks.BenchmarkServerJibber' after 7.2s.
[INFO]     [creator]     Error: Image build request failed with exit status 1
[INFO]     [creator]     unable to invoke layer creator
[INFO]     [creator]     unable to contribute native-image layer
[INFO]     [creator]     error running build
[INFO]     [creator]     exit status 1
[INFO]     [creator]     ERROR: failed to build: exit status 1
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------

In relation to the second option:
https://stackoverflow.com/questions/69447497/is-it-possible-to-customize-docker-image-generated-with-spring-native-with-buil/69466535#69466535
I have few questions:

How to use https://github.com/fagiani/apt-buildpack?
How to install https://howtoinstall.co/en/musl ?

GraalVM Demos has a script to add in the PATH the library but how to use with the buildpacks?
https://github.com/graalvm/graalvm-demos/blob/master/tiny-java-containers/setup-musl.sh
Can you provide and example with apt-buildpack to add in my pom.xml to install musl?

The apt-buildpack README has an example, https://github.com/fagiani/apt-buildpack. You basically just add an Aptfile with the list of packages to install and modify your pom.xml like this:
					<plugin>
						<groupId>org.springframework.boot</groupId>
						<artifactId>spring-boot-maven-plugin</artifactId>
						<configuration>
							<imageName>jibber-benchmark:buildpacks-native.0.0.1-SNAPSHOT</imageName>
							<image>
								<builder>paketobuildpacks/builder:base</builder>
								<buildpacks>
									<buildpack>ghcr.io/fagiani/buildpacks/fagiani_apt:0.2.4</buildpack>
									<buildpack>gcr.io/paketo-buildpacks/java-native-image</buildpack>
								</buildpacks>
								<env>									<BP_BINARY_COMPRESSION_METHOD>upx</BP_BINARY_COMPRESSION_METHOD>
									<BP_NATIVE_IMAGE_BUILD_ARGUMENTS>--static --libc=musl</BP_NATIVE_IMAGE_BUILD_ARGUMENTS>
								</env>
							</image>
						</configuration>
					</plugin>

The key thing about making this work is that you'd need to have access to an apt repo from which you can get the software or .deb files you can point it to. It looks like this is the case though, from the instructions sudo apt-get install musl to install. That means in your Aptfile, you'd just put musl.
When you build, you should see the apt-buildpack being pulled down and running first. It'll install the additional software.
Give that a try and let me know how far you get.

Hi @dmikusa,
I followed your instructions, but the build failed:
[INFO]  > Pulled run image 'paketobuildpacks/run@sha256:9ba5e33223e84d8de461f53fa18ad2ec4b7f905d7940eb5a292b421804e8ce54'
[INFO]  > Pulling buildpack image 'ghcr.io/fagiani/buildpacks/fagiani_apt:0.2.4' 100%
[INFO]  > Pulled buildpack image 'ghcr.io/fagiani/buildpacks/fagiani_apt@sha256:15a9501ec9f520f55d318a02d4e3d407def462d0294d2937bc7c717fb7c1ade9'
[INFO]  > Pulling buildpack image 'gcr.io/paketo-buildpacks/java-native-image:latest' 36%
[INFO]  > Pulling buildpack image 'gcr.io/paketo-buildpacks/java-native-image:latest' 100%
[INFO]  > Pulled buildpack image 'gcr.io/paketo-buildpacks/java-native-image@sha256:57bd38cd46ad63b56f757df56e544c229bfb8b454589b8c352961268640dd41e'
[INFO]  > Executing lifecycle version v0.15.0
[INFO]  > Using build cache volume 'pack-cache-b069c1148f49.build'
[INFO]
[INFO]  > Running creator
[INFO]     [creator]     ===> ANALYZING
[INFO]     [creator]     Previous image with name "docker.io/library/jibber-benchmark:buildpacks-native.0.0.1-SNAPSHOT" not found
[INFO]     [creator]     ===> DETECTING
[INFO]     [creator]     ======== Output<EMAIL_ADDRESS>========
[INFO]     [creator]     no
[INFO]     [creator]     err<EMAIL_ADDRESS>(1)
[INFO]     [creator]     ERROR: No buildpack groups passed detection.
[INFO]     [creator]     ERROR: failed to detect: buildpack(s) failed with err

I put the file Aptfile at the same level than the pom.xml

But the script from the builback doesn´t see the file Aptfile:
https://github.com/fagiani/apt-buildpack/blob/main/bin/detect
#!/usr/bin/env bash
# bin/detect <build-dir>

if [[ -f Aptfile ]]; then
  echo "Apt" && exit 0
else
  echo "no" && exit 1
fi

Behavour:
[INFO]     [creator]     ===> DETECTING
[INFO]     [creator]     ======== Output<EMAIL_ADDRESS>========
[INFO]     [creator]     no
[INFO]     [creator]     err<EMAIL_ADDRESS>(1)
[INFO]     [creator]     ERROR: No buildpack groups passed detection.
[INFO]     [creator]     ERROR: failed to detect: buildpack(s) failed with err

In what location, I need to put the Aptfile file?
I am testing this idea in the following repo:
https://github.com/jabrena/101-docker/tree/feature/bp-musl/poliglot_docker_builds/3_java_spring_boot
Juan Antonio


Highlight the row which the mouse is hovering at

Hi I don't seem to see this option. The row is highlighted on hover when table is enabled for selection. But I want this behavior for non selectable table as well, it's very useful when looking at wide tables. Is it possible? Thanks

you can add this to your css
tbody > .md-row:hover {   background-color: #EEEEEE; }

Thanks! it works perfectly

Yeah, this was stumping me as well. Yes, the provided solution works perfectly. But if it's so simple, couldn't we have a directive such as md-row-hover to add to the table so that it does this automatically? Or better yet... why doesn't it just do it automatically anyway? Just curious --- it's not a huge thing.

Is there a way to suppress the row highlight on mouse hover even when row selection is turned on?


Hard-coded color for directories and symlinks in file manager?

From a quick glance at the code, blue and cyan colors are hard-coded in the file manager widget, for directories and symlinks respectively.
Is there any way to configure these colors? If not, that's probably a bug :)

I don't think high level widgets like this are the main objective of this library... my initial thoughts are is a good starting point to building nice high level toolkits on top of it, but no body did it. Sincerily. blessed-contrib is not a good project, nor so much documented and the api is not serious for things like tree or table that need to be. I just dicovered this library and I'm surprised no body implemented a serious toolkit ON TOP of it. My two cents.


Pokémon sprites not being overwritten with blank slots when swapping boxes

As far as I can tell this is just a visual bug. I am using safari on IPhone if that helps anything.

Initial

After hitting right arrow

After hitting left arrow to go back

I think I've only seen this bug in Safari. Not sure if there's anything I can do to mitigate it, but I am looking into it.


HTML

HTML
User Story
As a bootcamp student
I want the prework notes to be structured on a webpage
so that i can easily find and read information
Acceptance Criteria
GIVEN a Prework Study Guide website
WHEN i visit the website in my browser
THEN I see four boxes titles HTML, CSS, Git, JavaScript with associated notes listed

done and dusted


Error: ReTraining on Different TrainingSet - size of output embedding mismatch

Dear TreB1eN,
Thank you for sharing the code.
I am trying to retrain (fine tune) previously trained model on different training set. Number of classes (identities) is different in new training set. It gave me following error when I load the previously trained model:
How can I overcome resolve retraining on different training set?
self.head.load_state_dict(torch.load(save_path/'head_{}'.format(fixed_str)))
  File "/home/synthesis/anaconda3/envs/pytorch3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 839, in load_state_dict
    self.__class__.__name__, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for Arcface:
	size mismatch for kernel: copying a param with shape torch.Size([512, 25]) from checkpoint, the shape in current model is torch.Size([512, 41]).

Hey @humayun Ji, did you make any progress with training on your own dataset?

In case of different training dataset (which have different number of classes), you can only load model, you can not load optimizer and head. Modify your load function accordingly.

Hi @humayun and @tadbeer, I hope you are having nice results, I am wondering if you finally found a way to tune with your dataset.
Can you share with the community your code?

I was unable to finetune with my dataset to my advantage. I ended up using the pretrained weights to compute features for new faces in my dataset and used those for test time comparisons. I dont have the finetuning codes with me now.

@ANDRESHZ
Yes, I did fine tune the model with our dataset (Synthetic Faces with custom Dataset) and got slightly better results. That is 4 years ago I did this with a my previous employer. I don't have that code with me after I left the company.
Good luck for your try.

@ANDRESHZ Hey, can you please update me if you'll find a way to fine-tune this model to recognise new faces.

I am working on that way, when I get it I will create an issue to add the tutorial to fine tuning with a new data set

You don't need training if you already have trained model on any dataset which cover all the cases that you need.
Training a model only require when existing trained model is not accurate in recognizing the face on the dataset that you have. Like you have different face images like that is different than faces from training set of the model. It can be faces of very old people or young people or specific attributes like mask on faces, tatos on faces or makeup etc.  in such cases, you may need to fine tune the model so that model learn specifically those cases and improve model accuracy.
In my case, I need to train model only on synthetic faces (not real faces) and predict on real faces to proof that synthetic faces that you generate is as close to real faces. To proof this, I need to train the model from scratch. In your cases, if you need a model for specific types of faces where current model is not doing well, than you need to fine tune the model  with new dataset.
Face Recognition:

You need to compute the embeddings from the available model for all the faces that you have in database. (Code to save these embedding as database:     Create Face Database or FaceBank)
You need to compute the embeddings of new faces and compare with embeddings from your database using any distance formula (as mentioned in Infer Code)
If your embedding is within a threshold with closet face, that would be similar face, or you recognize the face.

Face Identification: When you are planning to share two faces to model and ask if they are similar faces or not, then you need to compare the distance between embeddings of these faces, if they are within threshold value, then they are same faces, otherwise not.
If you have any more questions or need further assistance, feel free to ask. Good luck with your face recognition project!
Best regards,
Noman


demo: not working on containerize

$ invenio-cli demo --containers
Traceback (most recent call last):
  File "/home/ppanero/.virtualenvs/s3/bin/invenio-cli", line 11, in <module>
    load_entry_point('invenio-cli', 'console_scripts', 'invenio-cli')()
  File "/home/ppanero/.virtualenvs/s3/lib/python3.6/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/home/ppanero/.virtualenvs/s3/lib/python3.6/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/home/ppanero/.virtualenvs/s3/lib/python3.6/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/ppanero/.virtualenvs/s3/lib/python3.6/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/ppanero/.virtualenvs/s3/lib/python3.6/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/ppanero/Workspace/inveniosw/invenio-cli/invenio_cli/cli.py", line 116, in demo
    commands.demo()
  File "/home/ppanero/Workspace/inveniosw/invenio-cli/invenio_cli/helpers/commands.py", line 44, in __getattr__
    return getattr(self.environment, name)
AttributeError: 'ContainerizedCommands' object has no attribute 'demo'

Basically the demo command uses the Commands factory, however the ContainerizedCommands object does not have the demo function.
Side note: I thought we were removing the Commands object factory?

Yes we are, but we weren't planning on doing it in this sprint. See https://github.com/inveniosoftware/invenio-cli/issues/108 : which was a poor description of this situation :)


Change in Docs

The ReadMe can be made better as well as there is a need of adding License and Contributing Guidelines in the ReadMe file!
Can I work on the same for the hacktoberfest?

Yeah ok

Can you also create a privacy-policy.md and a tutorial how to use ?

I will need your help in the privacy policy. Do you have any references for the same? like for the one you want

??

@heysagnik
Hey man, I made a small change to the topic for installing on Windows. Aiming for a better look and detail. Could you take a look and see what you think? The PR link: #50

Thanks merged it 🎉 with hacktoberfest-accepted label
Can you help me by creating a Privacy policy for the site ?

Hey! I have not been available due to some reasons and unassigning this from myself because other people are actively making changes :) I will look at the repo again and make changes soon!

@ferrorenan  @heysagnik
can I work on this issue?

Hey can I change the documentation.
As this can be my first PR for the hacktober fest and my starting jouney for open source.

Good to go @alamdilshad87

@heysagnik can you please check and update me if anything else is to be done on this.


poller.php issue

Since a couple of hours I get this error for each poller.php run:
PHP Warning:  vsprintf(): Too few arguments in /srv/apache/sites/rm.besaid.de/red/include/dba/dba_driver.php on line 302
PHP Warning:  vsprintf(): Too few arguments in /srv/apache/sites/rm.besaid.de/red/include/dba/dba_driver.php on line 302
That line seems to have last changed in November, so I'm not sure what's happening here.

That indicates there's an incorrect number of parameters and arguments in an SQL query; probably from some other file. We fixed one of these a week or two ago. Are you running recent code? If so, the offending SQL query will normally be logged into the app logfile if this is configured. You can also log just SQL issues by creating an empty file in your top-level redmatrix directory called dbfail.out and giving permission for the web-server to write to it. If you're not running the most recent code, updating will probably take care of it.

I'm running git master version roughly every 6h.
Meanwhile the problem has not appeared again and I did not have the log file configured, so there's probably not much that can be done to figure out what exactly happened.


[firebase_admob] check if rewarded video is loading

Using flutter and this plugin (https://pub.dartlang.org/packages/firebase_admob),
How can I check if the Rewarded video is load?
I received this Exception :
PlatformException(ad_not_loaded, show failed for rewarded video, no ad was loaded, null)
I can not find methods to check if the video is loaded.
Thank you.

@Jhon2524
The issue at https://github.com/flutter/flutter/issues/26971 has been closed and moved here. Future collaboration on this issue will be done here.

Hi @Jhon2524
If are you still experiencing this issue
with the latest version of Flutter and FlutterFire plugin
can you please provide your updated  flutter doctor -v
and your and your flutter run --verbose/flutter build --verbose ?
Also, to better address the issue, would be helpful
if you could post a self contained app on github
or the steps to reproduce it.
Thank you

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact descriptions what happens, logs and the output of 'flutter doctor -v'  please.
All system setups can be slightly different so its always better to open new issues and reference related issues.


Poetry Build not honouring .gitignore

[x] I am on the latest Poetry version.
[x] I have searched the issues of this repo and believe that this is not a duplicate.
[x] If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

OS version and name: Manjaro Linux Latest
Poetry version: 1.0.0b8
pyproject.toml: https://github.com/pymedphys/pymedphys/blob/9b24bad2520684793b35193191cdb470809b8b05/pyproject.toml

Issue

It appears as though the following line within a .gitignore file is not being honoured by poetry build:
https://github.com/pymedphys/pymedphys/blob/9b24bad2520684793b35193191cdb470809b8b05/pymedphys/_app/.gitignore#L10
See the corresponding PyPI release which contains the build directory which should not have been included:
https://pypi.org/project/pymedphys/0.13.0.dev0/#files

Keen for any pointers on how to get this directory not included within the release artefact.
Cheers,
Simon

Hello @SimonBiggs,
could you please check if all files of the folders are listed in the output of git ls-files --others -i --exclude-standard. This is what poetry does, to get the files excluded by .gitgnore.
If not all files are listed here, you most likely added them to get tracked by git, before creating the entry in  .gitignore. If this is the case, remove these files from tracking by git rm --cached <file-name> or git rm -r --cached <folder-name>
fin swimmer

Thanks for the tip. I just rebuilt it at work on a Windows 10 PC and I didn't encounter the same issue (without any changes undergone to the repo).
I'll investigate regarding your tip tonight on my Linux PC.
Cheers,
Simon

Hey @SimonBiggs ,
any news on this?
fin swimmer


feat: add topgrade

We'll save the alias for later

Huh installing it via pip worked locally, oh well, I'm sure someone will want to rpm it anyway, heh.


Rogue Online Poker Rooms

Websites   for Online Poker Games Have Multiplied     Poker has become so popular that it was inevitable for it to have gone   online. Due to the increasing interest in poker worldwide, you will find that   websites for online poker games have multiplied. However, not all these sites Poker Online Terpercaya 2018  are safe. You will find that there are some sites that are classified as   Rogue Online poker rooms.     Rogue Online Poker Rooms     What exactly are rogue online poker rooms? These online poker rooms are   sites meant only to cheat you. They have no intention to pay you your   winnings. It is difficult to differentiate these from the regular genuine   online websites. Not all the websites are rogues. However, you will surely   find a few. The rogue online poker rooms are just like the regular ones. You   will not know the difference when you enter one. You can play a game of poker   and bet in the customary way.       After some   time, you will have to contact them again. You may even have to chat with   them; they will keep on telling you that they will surely make the payment.   Then after some time you will not find the website on the net.     Rogues Have Their Own Players Playing Against You     Some of these rogue online poker rooms are also known to have their own   players playing against you. Most often, in these rooms, you will be able to   make big wins.  However, in the   end you will not be able to collect even your betting amount.     Lost Connections after You Make a Large Bet     There are yet other sites that collect big bets, and then, you will find a   connection problem. You may think that since there are so many people trying   to access the site at the same time, and you are not being able to make a   stable connection. This will happen when you have made a large bet or   invested heavily. Most people will stop trying to make a connection after   some time.     The Short Life of the Rogues but they Keep Reincarnating in new Avatars     The rogue online poker rooms cannot function for long. These are all short   term websites. However, they could, in a short time make a lot of money, and   leave. These cheats will then start another site under another id and   function, for another short period. They are bold enough to function because   they are sure that only very few people will admit that they have been   cheated. And there are fewer that will really try to make a complaint to the   games' commission.     They Settle Selectively     If they have cheated someone who takes the trouble to go after them, they   will settle with that player and save themselves. They are well versed in the   game of cheating, so it will be difficult for you to corner them.     Go By Reputation and Others' Experience     Today there are a lot of sites that are running online poker games. What   you should do is ask the regular players to give you the names of some online   poker rooms that do not cheat. You should only play in these rooms.

I reported you for your Spam to GitHub.
Hope they delete your account. You bot.


Azure App Service Deploy Task Question - Multiple Sites

Hello
I am sure I am missing something obvious.
Is there an easy way to deploy to multiple resources groups or sites with out having to create 100 tasks?
Our current setup...
A number of resources groups each have a separate portal in them. Need to create release process that deploys a new build to all the resource groups. I could create a separate task for each site however that becomes unmanageable after a few sites :)
As said I am sure I am missing something obvious.
From
Russell

You can explore multiple execution deployments section: https://docs.microsoft.com/en-us/vsts/build-release/concepts/process/phases#agent-phase or use Deployment Groups to run task in parallel on multiple agents at the same time.

@RoopeshNair
I don't think that solves the issue as that will run same RM job several times.  But the RM process would still need to have one task for each website.  We want to be able to give the task a list of sites or resource group and single task deploys to those sites.

This blog covers an example of multiple agents https://blogs.msdn.microsoft.com/jikuma/2016/12/13/run-phase-on-multiple-agents-in-parallel/


Closes #1396: Add "operation_class" argument to http handlers

Pull Request Checklist

[X] New code has 100% test coverage
[ ] (If applicable) The prose documentation has been updated to reflect the changes introduced by this PR
[ ] (If applicable) The reference documentation has been updated to reflect the changes introduced by this PR

Description
Adds a new operation_class argument to HTTPRouteHandler and the http route decorators. This allows a user to create a custom Operation class which can override existing values or add new values for that routes OpenAPI schema.
The unit test shows an example of how to use it:
@dataclass
class CustomOperation(Operation):
    x_codeSamples: Optional[List[Dict[str, str]]] = None

    def __post_init__(self) -> None:
        self.tags = ["test"]
        self.description = "test"
        self.x_codeSamples = [
            {"lang": "Python", "source": "import requests; requests.get('localhost/example')", "label": "Python"},
            {"lang": "cURL", "source": "curl -XGET localhost/example", "label": "curl"},
        ]

# use default Operation class
@get(path="/1")
def handler_1() -> None:
    ...

# use CustomOperation class
@get(path="/2", operation_class=CustomOperation)
def handler_2() -> None:
    ...

app = Litestar(route_handlers=[handler_1, handler_2])

One potential issue I see is with the field name. Issue #1396 shows the needed key name as "x-codeSamples" but object properties cannot use dashes. If it is even possible, I am not sure how to convert the underscore to a dash during serialization.
I would also be glad to update documentation for this if the team likes the feature.
Cheers!
Kyle
Close Issue(s)

My one issue with this right now is in reference to #1396. I was hoping this could be a solution to that issue but I am not sure how to get the the resulting field name to be x-codeSamples. The serialization processes in Litestar are still fairly nebulous to me.

I just added an additional commit which will allow this PR to actually resolve #1396. It adds support for an "alias" key in the dataclass field metadata which, when present, will be used for the schema field key.

I don't think that I've got anything to add to this.  It looks great IMO.  Nice work @smithk86


Inference script

Hello, I already  train my model and get weights. But how to infer an image to get  the last embedding. Can you provide a script?

Hey, sure! There is a script in Readme -> Get started using Python -> Using a trained model for retrieval.

For an example on one image you can check this.

There is no direct connection between training transforms (augmentations) and testing transforms. And they definitely must be different. They have different natures, as I explained before in another issue. It's not an OML-specific thing, but a general rule.
Answering your question. Yes, you can use these transforms, in this case, you will have the following:

get_augs_albu - your train augs (https://github.com/OML-Team/open-metric-learning/blob/165d63b93cd8da5d1fc52ae7b4a95bbd026fb164/oml/transforms/images/albumentations.py#L106)
get_normalisation_resize_albu - your test transforms

PS. you may be also interested in another example of model usage: Using a trained model for retrieval (in Readme)

PS. you may be also interested in another example of model usage: Using a trained model for retrieval (in Readme)

ok, thanks


#Issues

User defines everything clearly and uses ERC20 interface.
It's a very straight forward code to understand what the code in intending to do.
The user can get unlimited tweets of a user with just one input.

Thanks


Overhand Chop bug

Overhand Chop doesn’t seem to take effect. The damage mod seems to not get modified, looking at what’s shown in combat log

Correction: it seems to only be an issue with Vital Strike.
It should work with vital strike, right?


[WIP] React Native 📱

Bumbag for React Native is coming! I have already set up the foundations for an isomorphic framework across native & web, and now moving on to developing the components.
The release rollout will begin in a public alpha for the initial critical components. The initial critical components are highlighted in bold.
Foundation

[x] Provider

Primitives

[x] Box
[x] Box.Safe
[x] Box.Scroll
[x] Box.KeyboardAvoiding
[x] Flex (from Bumbag)

Typography

[x] Heading (from Bumbag)
[ ] Link (from Bumbag)
[ ] List (from Bumbag)
[x] Text (from Bumbag)

Layout

[ ] FieldStack (from Bumbag
[ ] Group (from Bumbag
[ ] Set (from Bumbag
[x] Stack (from Bumbag

Components

[ ] ActionButtons (from Bumbag)
[ ] Alert (from Bumbag)
[ ] Avatar (from Bumbag)
[ ] Badge (from Bumbag)
[ ] BottomSheet (inspiration)
[x] Button (from Bumbag)
[ ] Card (from Bumbag)
[ ] Dialog (inspired by React Native Paper's Dialog)
[ ] Dialog.Alert (inspo)
[ ] Divider (from Bumbag)
[ ] DropdownMenu (from Bumbag | inspired by React Native Paper's Menu)
[ ] Fab (inspired by React Native Paper's Fab)
[x] Icon (from Bumbag)
[ ] List.Flat
[ ] List.Sectioned
[ ] List.Virtualized
[x] Image
[ ] Image.Background
[ ] Menu (from Bumbag | like Row)
[ ] BottomNav (inspired by React Native Paper's BottomNavigation)
[ ] TopNav (inspired by React Native Paper's Header)
[ ] Popover (from Bumbag)
[ ] Picker (inspired by Backpack's Picker)
[ ] ProgressBar (from Bumbag)
[ ] Rating (from Bumbag)
[ ] SearchBar (inspiration)
[x] Spinner (from Bumbag)
[ ] Tabs (from Bumbag)
[ ] Tag (from Bumbag)
[ ] Toast (inspo)
[ ] Tooltip (from Bumbag)

Form

[ ] Autosuggest/AutosuggestField (like this)
[ ] Checkbox/CheckboxField (from Bumbag)
[ ] CheckboxGroup/CheckboxGroupField
[ ] FieldStack (from Bumbag)
[ ] FieldWrapper (from Bumbag)
[ ] Input/InputField (from Bumbag)
[ ] Label (from Bumbag)
[ ] Radio (from Bumbag)
[ ] RadioGroup/RadioGroupField
[ ] Select/SelectField (from Bumbag)
[ ] Switch/SwitchField (from Bumbag)
[ ] Textarea/TextareaField (from Bumbag)

Utilities

[ ] Drawer (from Bumbag | inspo)
[ ] Hidden (from Bumbag)
[ ] Modal (from Bumbag)
[ ] Overlay (from Bumbag)
[ ] Portal (from Bumbag)
[ ] Pressable
[ ] RefreshControl
[ ] StatusBar
[ ] Touchable
[ ] Touchable.Highlight
[ ] Touchable.Opacity

how we can we help @jxom ? I'm building an equivalent project inhouse based off chakra ui but I would rather support an unified effort.

how we can we help @jxom ? I'm building an equivalent project inhouse based off chakra ui but I would rather support an unified effort.

I'm planning on writing up an updated CONTRIBUTING.md for people who want to get in on helping with the native fork. Stay tuned!


Solution > MircoVM does not disappear after logging out.

Description
Devnet, 2d54818.
Solution > MircoVM does not disappear after logging out.
Steps to reproduce

Connect your wallet.
Select solution from the sidebar.
Select any solution.
Log out of your wallet.

Logs/Alerts

Closed as Duplicate,
https://github.com/threefoldtech/tfgrid-sdk-ts/issues/1586


Tensorflow Integration Issue with Cloudpickle for AdamW optimizer

Click to expand!
Issue Type
Bug
Source
binary
Tensorflow Version
2.8
Custom Code
No
OS Platform and Distribution
Linux
Mobile device
No response
Python version
3.9
Bazel version
No response
GCC/Compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current Behaviour?
Hi team,
Tensorflow model with AdamWeightDecay optimizer does not load with cloudpickle. Here is the error when I load the pickled model:
“ValueError: Unknown optimizer: AdamWeightDecay. Please ensure this object is passed to the `custom_objects` argument. See https://www.tensorflow.org/guide/keras/save_and_serialize#registering_the_custom_object for details."

The problem is only encountered with AdamWeightDecay as there are no issues when adam optimizer is used instead of AdamWeightDecay for the same code. Is there a way we can load the model with AdamW using cloudpickle?

Standalone code to reproduce the issue
!pip install -q -U "tensorflow-text==2.8.*"
!pip install cloudpickle
!pip install -q tf-models-official==2.7.0

import os
import shutil
import cloudpickle
import tensorflow as tf
import tensorflow_hub as hub
import tensorflow_text as text
from official.nlp import optimization  # to create AdamW optimizer

url = 'https://ai.stanford.edu/~amaas/data/sentiment/aclImdb_v1.tar.gz'

dataset = tf.keras.utils.get_file('aclImdb_v1.tar.gz', url,
                                  untar=True, cache_dir='.',
                                  cache_subdir='')

dataset_dir = os.path.join(os.path.dirname(dataset), 'aclImdb')

train_dir = os.path.join(dataset_dir, 'train')

AUTOTUNE = tf.data.AUTOTUNE
batch_size = 32
seed = 42

raw_train_ds = tf.keras.utils.text_dataset_from_directory(
    'aclImdb/train',
    batch_size=batch_size,
    validation_split=0.2,
    subset='training',
    seed=seed)

class_names = raw_train_ds.class_names
train_ds = raw_train_ds.cache().prefetch(buffer_size=AUTOTUNE)

val_ds = tf.keras.utils.text_dataset_from_directory(
    'aclImdb/train',
    batch_size=batch_size,
    validation_split=0.2,
    subset='validation',
    seed=seed)

val_ds = val_ds.cache().prefetch(buffer_size=AUTOTUNE)

test_ds = tf.keras.utils.text_dataset_from_directory(
    'aclImdb/test',
    batch_size=batch_size)

test_ds = test_ds.cache().prefetch(buffer_size=AUTOTUNE)

tfhub_handle_encoder = 'https://tfhub.dev/tensorflow/small_bert/bert_en_uncased_L-4_H-512_A-8/1'
tfhub_handle_preprocess = 'https://tfhub.dev/tensorflow/bert_en_uncased_preprocess/3'
bert_preprocess_model = hub.KerasLayer(tfhub_handle_preprocess)
bert_model = hub.KerasLayer(tfhub_handle_encoder)

def build_classifier_model():
  text_input = tf.keras.layers.Input(shape=(), dtype=tf.string, name='text')
  preprocessing_layer = hub.KerasLayer(tfhub_handle_preprocess, name='preprocessing')
  encoder_inputs = preprocessing_layer(text_input)
  encoder = hub.KerasLayer(tfhub_handle_encoder, trainable=True, name='BERT_encoder')
  outputs = encoder(encoder_inputs)
  net = outputs['pooled_output']
  net = tf.keras.layers.Dropout(0.1)(net)
  net = tf.keras.layers.Dense(1, activation=None, name='classifier')(net)
  return tf.keras.Model(text_input, net)

classifier_model = build_classifier_model()
loss = tf.keras.losses.BinaryCrossentropy(from_logits=True)
metrics = tf.metrics.BinaryAccuracy()
epochs = 1
steps_per_epoch = tf.data.experimental.cardinality(train_ds).numpy()
num_train_steps = steps_per_epoch * epochs
num_warmup_steps = int(0.1*num_train_steps)

init_lr = 3e-5
optimizer = optimization.create_optimizer(init_lr=init_lr,
                                          num_train_steps=num_train_steps,
                                          num_warmup_steps=num_warmup_steps,
                                          optimizer_type='adamw')
classifier_model.compile(optimizer=optimizer,
                         loss=loss,
                         metrics=metrics)
classifier_model.fit(x=train_ds,
                               validation_data=val_ds,
                               epochs=epochs)
pickle = cloudpickle.dumps(classifier_model)
unpickle = cloudpickle.loads(pickle)

Relevant log output
WARNING:absl:Found untraced functions such as restored_function_body, restored_function_body, restored_function_body, restored_function_body, restored_function_body while saving (showing 5 of 124). These functions will not be directly callable after loading.
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-16-58cfd5217ca1> in <module>
      1 import cloudpickle
      2 pickle = cloudpickle.dumps(classifier_model)
----> 3 unpickle = cloudpickle.loads(pickle)

2 frames
/usr/local/lib/python3.7/dist-packages/keras/utils/generic_utils.py in class_and_config_for_serialized_keras_object(config, module_objects, custom_objects, printable_module_name)
    561   if cls is None:
    562     raise ValueError(
--> 563         f'Unknown {printable_module_name}: {class_name}. Please ensure this '
    564         'object is passed to the `custom_objects` argument. See '
    565         'https://www.tensorflow.org/guide/keras/save_and_serialize'

ValueError: Unknown optimizer: AdamWeightDecay. Please ensure this object is passed to the `custom_objects` argument. See https://www.tensorflow.org/guide/keras/save_and_serialize#registering_the_custom_object for details.

@princyiakov,
Could you please try to use the below code accordingly and let us know if the issue still persists.
my_loaded_model = tf.keras.models.load_model('my_models_name.h5', custom_objects={'KerasLayer':hub.KerasLayer , 'AdamWeightDecay': optimizer})
Thank you!

Hi @tilakrayal  thank you for your response. Much appreciated.
The solution still doesn't fix the integration issue.  cloudpickle enables deserialisation of the models irrespective of which library it belongs to and unlike Adam Optimizer, AdamWeightDecay doesnt work unless called exclusively by tensorflow by providing the custom_objects.
The goal is to load the model using cloudpickle.
Do you think we could have another possible solution to resolve the integration bottleneck?

@princyiakov,
Thanks for opening this issue. Development of keras moved to another repository.
Could you please post this issue on keras-team/keras repo.
To know more please refer:
https://discuss.tensorflow.org/t/keras-project-moved-to-new-repository-in-https-github-com-keras-team-keras/1999
Thank you!


[Feature] Introduce file.compression

Search before asking

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

Motivation
Add a generic configuration: file.compression, which is used by default, replace orc.compress and parquet.compression. Then file.compression.per.level can override the compression of the specified level.
Solution
No response
Anything else?
No response
Are you willing to submit a PR?

[ ] I'm willing to submit a PR!

I would like to take this issue,  please assign to me, thanks~ @JingsongLi

Since #914 is causing failure in unit tests I've reverted the PR.


E1009 14:37:36.130832617    2404 proto_utils.h:185]          assertion failed: GRPC_SLICE_END_PTR(slice) == msg.SerializeWithCachedSizesToArray(GRPC_SLICE_START_PTR(slice))

Should this be an issue in the gRPC issue tracker?
Yes.
What version of gRPC and what language are you using?
grpc-1.6.1
protobuf-3.4.1
What operating system (Linux, Windows, …) and version?
Linux, Centos 7
What runtime / compiler are you using (e.g. python version or version of gcc)
gcc gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-11)
(GCC) 4.8.5 20150623 (Red Hat 4.8.5-11)
What did you do?
We send messages over the server-streaming RPC. The RPC never terminates but continues to send messages to clients for the duration of their connection (days, weeks, months).
We are using the asynchronous API on the server side and requests are encapsulated in a call struct similar to the C++ example.
When running load tests on this solution we see a crash, the grpc library calls abort from an assert.
What did you expect to see?
We expected successful completion of the load test.
What did you see instead?
E1009 14:37:36.130832617    2404 proto_utils.h:185]          assertion failed: GRPC_SLICE_END_PTR(slice) == msg.SerializeWithCachedSizesToArray(GRPC_SLICE_START_PTR(slice))
Program received signal SIGABRT, Aborted.
0x00007ffff529b1f7 in raise () from /lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install boost-regex-1.53.0-27.el7.x86_64 expat-2.1.0-10.el7_3.x86_64 fontconfig-2.10.95-11.el7.x86_64 freetype-2.4.11-15.el7.x86_64 glibc-2.17-196.el7.x86_64 keyutils-libs-1.5.8-3.el7.x86_64 krb5-libs-1.15.1-8.el7.x86_64 libICE-1.0.9-9.el7.x86_64 libSM-1.2.2-2.el7.x86_64 libX11-1.6.5-1.el7.x86_64 libXau-1.0.8-2.1.el7.x86_64 libXcursor-1.1.14-8.el7.x86_64 libXext-1.3.3-3.el7.x86_64 libXfixes-5.0.3-1.el7.x86_64 libXft-2.3.2-2.el7.x86_64 libXi-1.7.9-1.el7.x86_64 libXinerama-1.1.3-2.1.el7.x86_64 libXrandr-1.5.1-2.el7.x86_64 libXrender-0.9.10-1.el7.x86_64 libcom_err-1.42.9-10.el7.x86_64 libgcc-4.8.5-16.el7.x86_64 libicu-50.1.2-15.el7.x86_64 libjpeg-turbo-1.2.90-5.el7.x86_64 libmng-1.0.10-14.el7.x86_64 libpng-1.5.13-7.el7_2.x86_64 libselinux-2.5-11.el7.x86_64 libstdc++-4.8.5-16.el7.x86_64 libuuid-2.23.2-43.el7.x86_64 libxcb-1.12-1.el7.x86_64 libxml2-2.9.1-6.el7_2.3.x86_64 nss-softokn-freebl-3.28.3-8.el7_4.x86_64 openssl-libs-1.0.2k-8.el7.x86_64 pcre-8.32-17.el7.x86_64 qt3-3.3.8b-51.el7.x86_64 xz-libs-5.2.2-1.el7.x86_64 zlib-1.2.7-17.el7.x86_64
(gdb) bt
#0  0x00007ffff529b1f7 in raise () from /lib64/libc.so.6
#1  0x00007ffff529c8e8 in abort () from /lib64/libc.so.6
#2  0x00007ffff7841cd4 in grpc::CoreCodegen::assert_fail(char const*, char const*, int) ()
from /lib64/libgrpc++.so.1
#3  0x000000000061ed2f in grpc::SerializationTraits<SendPlanReply, void>::Serialize (msg=..., bp=0xae32d8,
own_buffer=0xae32e8) at /usr/include/grpc++/impl/codegen/proto_utils.h:183
#4  0x000000000061ead5 in grpc::CallOpSendMessage::SendMessage (this=0xae32d8, message=...,
options=...) at /usr/include/grpc++/impl/codegen/call.h:294
#5  0x000000000061e62e in grpc::CallOpSendMessage::SendMessage (this=0xae32d8, message=...)
at /usr/include/grpc++/impl/codegen/call.h:299
#6  0x000000000061e09b in grpc::ServerAsyncWriter::Write (this=0xae3240, msg=...,
tag=0xae31e0) at /usr/include/grpc++/impl/codegen/async_stream.h:709
...
Anything else we should know about your project / environment?
One thing of note here. The assert code looks like this:
int byte_size = msg.ByteSize();
if (byte_size <= internal::kGrpcBufferWriterMaxBufferLength) {
  grpc_slice slice = g_core_codegen_interface->grpc_slice_malloc(byte_size);
  GPR_CODEGEN_ASSERT(
      GRPC_SLICE_END_PTR(slice) ==
      msg.SerializeWithCachedSizesToArray(GRPC_SLICE_START_PTR(slice)));

And the documentation for SerializeWithCachedSizesToArray is here: https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.message_lite  and says

virtual uint8 *
SerializeWithCachedSizesToArray(uint8 * target) constA version of SerializeWithCachedSizesToArray, below, that does not guarantee deterministic serialization.

In other words, the byte_size seems to indicate a maximum, while the actual serialized message may use less bytes it seems? In which case the assert above is not valid I guess.

@dgquintas @ctiller I see your names on this area of code, though it's tricky to trace the origin. Do you have any clue as to what could be going on?

Ok. this seems to have been a programmer error involving a race condition. My apologies.


Error when downloading v0.6.6 installer

When trying to download the platform-specific installer version, I get the message:
Unknown version : 0.6.6

Note: Downloading the assets succeeds (.zip/.tar.gz)

v0.6.6 at that time was not available yet...  Do you have the issue now?

No, it works now. I thought that v0.6.6 might have been available since the .zip/.tar.gz downloads worked.
Thanks.


Host docs to readthedocs

Hosts documentation on readthedocs.
Should fix #10

Docs are building here : https://pybamm-eis.readthedocs.io/en/latest/
Preetification remains

awesome, thanks! just need to fix conflicts with the optional dependencies (literally merge #12 just as this opened)
let's merge this and worry about making it pretty later. can you also update the readme to point to the docs?

awesome, thanks! just need to fix conflicts with the optional dependencies (literally merged #12 just as this opened)
let's merge this and worry about making it pretty later. can you also update the readme to point to the docs?

Thanks for adding the tests @rtimms, so sorry that it took me more time than expected.
I've resolved the dependency conflicts, in addition to that we also have to note that currently readthedocs is building from my fork's arjxn-py:10-host-readthedocs branch so I'd update hosting too on readthedocs so that it builds from the main branch of upstream once this is merged (as .readthedocs.yaml was required to build so I just chose my fork for testing)

great, thanks, @arjxn-py !


[performance] Convert BigNumbers further up the chain

Description
From a PR comment:

Not a change request just something to keep in mind: would be nice to convert these BigNumbers further up the chain if possible, which is what I do in the app as soon as they are fetched before setting to redux state. So components only ever deal with stringified numbers.
Ideally the backend just gives us strings, we can ask them.
Unless of course we need to do actual bignumber math, in which case we need to keep them as bignumbers.

Originally posted by @Atmosfearful in https://github.com/Atmosfearful/bezos-frontend/pull/48#discussion_r1083195081
Current state
At the moment, all pages fetch their data directly yon the server from the API.
The numbers in the API data are BigBumbers.
These are passed down to the page, which is currently converting all BigNumbers to numbers.
See all types here:
https://github.com/Atmosfearful/bezos-frontend/blob/bezos-main/lib/types/carbonmark.ts

@biwano can you do a discovery / review of this one...
still an issue?
worth tackling?
how much effort?

Hi @jabby09
I reviewed all the endpoints responses from the API and there seems that no big numbers are ever sent back.
Nevertheless I found another discrepancy. Everywhere timestamp are strings representing by seconds since epoch except for users where the timestamps are numbers representing milliseconds since epoch.
I will make one or multiple PRs for that depending if there are impacts on the frontend. This should take less than a day.


Add plugin badges

Add platforms support info for verified plugins
Android versions
iOS versions
TS typings
License
Popularity
Supported NativeScript versions
CI
Demo

Stage one for badges to include:

Android versions (static) - plugin package.json should contain android platform
iOS versions (static) - plugin package.json should contain ios platform
NativeScript current and previous version (static) - plugin package.json file look for tns-* platform module dependency version OR look in nativescript platforms for runtimes version.
CI (UX use Travis CI icon) - static test if plugin repo has .travis.yml file. Also check Travis API to see if integration is enabled.
Demo - check repo for plugin and look for demo/demo-angular/demo-ng/demo-vue/examples folder. Alternatively, check for the name of the plugin appearing in a package.json file under "dependencies" in the repo.

(1) Popular (e.g. level per stars and downloads) (based on static analyze) - use npms popularity data and stars count. Decide what percent of plugins will become popular – e.g. top 5% of all plugins.
(1) TS Typings – static from registry.npmjs.org
(1) License – icon showing if license is used by the plugin

AC:

Verified badge is removed from plugin icons. Deprecated plugins should remain the same.
There should be 9 badge icons on the plugin list page and in the plugin details. Tooltips on badge icons.
"Recently Verified" plugins list is replaced with "Recently Added" plugins (4 plugins). Recently added means added to the Marketplace database, not created in NPM.
Verify that badges correspond to the list in the above comment. Note that wireframes might show more badges than the above list.
All badges should show correct plugin information only.
Marketplace loading speed should not be severely affected by the badges changes. Simulate slow 3G network (Chrome Dev Tools network tab).
Sync should only synchronize plugins that were updated from the previous sync.


Codabench: no option to move submission to leaderboard automatically but allow deletion by participant?

If I understand correctly there seems to be no option for the submission_rule of a leaderboard where the submission gets added to the leaderboard automatically, but the user is still allowed to remove it at any time?
This would be the ideal option for us (add the last, best or all submissions to the leaderboard automatically but still allow the user to remove any of his submissions) because:

it would prevent situtations where users forget to add their submission explicitly
it would also prevent situations where participants e.g. submit to the wrong track by accident and then need to contact the organizers to remove the submission for them instead of being able to simply remove it themselves.

are you talking about removing a submission from the leaderboard or deleting the submission? removing from the leaderboard doesn't decrease the used submissions per day/total

Just what is shown on the leaderboard as that is relevant for a competition / shared task: ideally, all submissions automatically get added to the leaderboard (so people cannot forget to do this), but people who made a mistake are also able to remove their submission from the leaderboard.

The submission rules are described here:
https://github.com/codalab/codabench/wiki/Leaderboard-Functionality#submission-rules
I guess the behavior you described could be good for the "Add" rule ("Only allow adding one submission"). Indeed, it seems that the goal of this rule is to force participant to always have a submission on the leaderboard.
At least, the first submission should be added to leaderboard automatically and then the "Add" rule would apply.

But this is not what we would need:

we want all submissions added: "Add" only allows adding one submission
we want all submissions get added to the leaderboard automatically: nont of the "Add..." options will do this, only the "Force.." options will
we want the users to be able to remove erraneous submissions themselves: non of the "Force..." options will allow to do that

So we are out of luck, it seems.
I think the solution would be to have a separate option that allows users to remove submissions from the leaderboard or even better, entirely (which then would also remove the submission from the leaderboard).
So the feature request would be:

ideally, make it possible to allow users to completely remove their submission, including from the leaderboard
or at least make it possible for the user to remove an erranous submission from the leaderboard


[C++][FS][Azure] 2 of the GenericFileSystemTests are failing with the AzureFileSystem on hierarchical namespace storage accounts

Describe the bug, including details regarding any error messages, version, and platform.
These 2 tests fail on main and they probably always have failed
TestAzureHierarchicalNSGeneric.GetFileInfoSelectorWithRecursion
TestAzureHierarchicalNSGeneric.Empty
CI runs tests with azurite but if we provide the necessary connection details there are also tests that run against real Azure blob storage, including both flat and hierarchical namespace storage accounts.
Component(s)
C++

Issue resolved by pull request 44307
https://github.com/apache/arrow/pull/44307


Softlock involving room 305 in RE1

Version
3.2.5 (b05b532)
Seed
R710-JYNB-ZXZZZ0ZZZZG89H0007JZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
Scenario
RE 1 (Jill)
Player Character
Claire (RE2R)
What happened?
This seed forces you to enter room 305 via 310 -> 305:1, as 305 contains one of the four crests.  However, because you have not yet previously completed the doom book puzzle at the fountain, you get stuck in a cutscene when trying to climb the stairs, making the randomizer impossible to complete without warping to the other side of the room with debug mode.  The randomizer needs to ensure that you only ever enter 305 via 305:2 to prevent this lock.

This seed also has it, also as Jill:
R710-6HKJ-ZNZZZ0ZZZX7H9H0007JQGZPGVQZZZ7XZWJZQG7XZZZZZZZZZZZZZ
This is very troublesome as you can't even warp to room 305 with debug, the game just crashes if you try that.


Generating the schema's license enum automatically

should we maybe make a script that generates the license enum for usage in the schema (e.g. here https://github.com/citation-file-format/schema/blob/66951a4c5251f5ba00a4364e9d0f1cbb67afa11f/CFF-Core/schema.yaml#L73) from the spdx list of licenses?
https://github.com/spdx/license-list-XML/tree/master/src

Thanks for filing this. Sounds like a great idea! I'm back from my holidays at the beginning of Aug and will look into then.

I created a tool that can do more or less this: https://github.com/jspaaks/get-spdx-licenses

Closing this, as we now have https://github.com/citation-file-format/get-spdx-licenses.


the webcam data is occupied.

Hi, Could you release the privileges of the webcam? Currently, the webcam privilege is talking for your project and it is locked down. Is there any way to read the the webcam data or keypoint data? thank you

Please provide more details about the issue, right now it's very unclear.


Fix build and LS tests

Restore FileFound event

The mock changes look good. Not sure that raising the FileFound event for explicitly added items is the right fix though - we never used to do that previously.

It was firing from
``
var entry = await LoadFileAsync(new Uri(PathUtils.NormalizePath(file)));
if (entry != null) {
FileFound(entry.DocumentUri);
}
so it is now doing the same just from inside the `LoadFileAsync`. Looks like event comes to the project analyzer which uses it to update `_projectFilesByUri`. This, however, may never actually be called in VS case as it is not loading files from the directory. If you prefer, I can remove code from the `PythonAnalyzer`


Fix compatibility with pre-3.18 custom check backends

The subset parameter added to BaseHealthCheckBackend's run_check and check_status methods in 4da1fd9d broke compatibility with existing custom check backends, since they don't accept this parameter.
Moreover, this parameter appears to be entirely useless, since check_status is only called by run_check, and run_check is only called by CheckMixin.run_check, which never passed a value for subset.
Get rid of it and restore compatibility.
Fixes #413.

Thanks for this! Great catch, not sure how we missed this!


Support Leaflet v1.4.0

Fails with an error in Leaflet 1.4.0 because _drawnLayers is undefined in:
https://github.com/themeler/leaflet-triangle-marker/blob/e1cb89293e86a0c9a34657807db91f2ce8a80c5f/leaflet-triangle-marker/leaflet-triangle-marker.js#L23
See removed unused _drawnLayers object by ud09 · Pull Request #6324 · Leaflet/Leaflet.

I fixed this by changing the offending line to
this._layers[layer._leaflet_id] = layer

Unfortunately time has moved on, and that fix now apparently no longer works on leaflet 1.9 :( Guess I'll look for an alternate option to draw triangle markers...


[Help] How to query metrics with dynamic labelFilter?

I need to query pending messages on the ActiveMQ metrics, with a parameter destination.
How can I pass this destination by API requests like below? Thanks a lot!
kubectl get --raw "/apis/custom.metrics.k8s.io/v1beta1/namespaces/default/metrics/test_query?selector=foo"
Now I only can fix the destination in metricsQuery and if I change another destination, I need to create another query.
data:
  config.yaml: |
    rules:
    - seriesQuery: '{namespace!="",__name__!~"^container_.*",destination!=""}'
      seriesFilters: []
      resources:
        template: <<.Resource>>
      name:
        as: "test_query"
      metricsQuery: 'activemq_queue_queue_size{destination="foo"}'

For example, if I create a query like this:
    - seriesQuery: '{namespace!="",__name__!~"^container_.*",destination!=""}'
      seriesFilters: []
      resources:
        template: <<.Resource>>
      name:
        as: "test1"
      metricsQuery: 'activemq_queue_queue_size{<<.LabelMatchers>>}'

When I run the query below, in the adapter log, I cannot find it queries with destination, also the result does not match.
kubectl get --raw "/apis/custom.metrics.k8s.io/v1beta1/namespaces/default/metrics/test1?selector=destination%3DtestQueueA"
{
  "kind": "MetricValueList",
  "apiVersion": "custom.metrics.k8s.io/v1beta1",
  "metadata": {
    "selfLink": "/apis/custom.metrics.k8s.io/v1beta1/namespaces/default/metrics/test1"
  },
  "items": [
    {
      "describedObject": {
        "kind": "Namespace",
        "name": "default",
        "apiVersion": "/v1"
      },
      "metricName": "test1",
      "timestamp": "2021-07-20T16:24:56Z",
      "value": "2",
      "selector": null
    }
  ]
}

Actual data on the queue:

Hi @kjstart, custom metrics are intended only for resources which are present in Kubernetes, such as deployments, services, etc. For your use case, you should be using external metrics. Could you try doing that and see if it solves your problem?

Just query by parameter metricLabelSelector
Ie:
kubectl get --raw "/apis/custom.metrics.k8s.io/v1beta1/namespaces/default/metrics/test1?metricLabelSelector=destination%3DtestQueueA"


[PIN input] It's possible to pass PIN validation with invalid PIN right after entering valid one

Description of problem
It's possible to pass PIN validation with invalid PIN (at least displayed one).
It seems that if user enters valid PIN and then switches focus to previous PIN input cells, actual input value will not be updated until user actually start entering PIN value again.
Expected behavior
Incorrect PIN pop-up is displayed and PIN validation is not passed.
Steps to reproduce

Open the app.
Enter a valid PIN.
Tap on any of the PIN cells => data is deleted from this and further cells.
Tap Unlock button.

Screenshots and/or log output
Note: Video was recorded on older version, but I confirmed that issue reproduces on specified commit.
https://github.com/hyperledger/aries-mobile-agent-react-native/assets/93187809/6e68fe09-77de-41db-9b42-a65fc7ef0ac4
Environment

[x] Occurs on Android
[x] Occurs on iOS

Build #: https://github.com/hyperledger/aries-mobile-agent-react-native/tree/db3f18af25f554cd5d616e977e08551b77791c09
Android Device Model: Xiaomi Mi 10T Pro / MIUI version 12.5.3 (Android version 11 RKQ1.200826.002)
iOS Device Model: iPhone 8 Plus / iOS 16.5
Workaround
No workaround is required.
Severity

[ ] High
[x] Medium
[ ] Low

I am looking into this and would like to raise a PR soon.
cc: @amanji , @jleach

This issue is happening as CodeField from 'react-native-confirmation-code-field' used for PIN input does not call onChangeText when clicked on any cell of PIN input. The hook useClearByFocusCell is called which somewhere internally changes the PIN but without calling onChangeText. Due to this the PIN state in PINEnter.tsx remains unchanged.
To fix this issue we can try removing the use of the useClearByFocusCell hook.

I found the solution and created a PR for the fix - https://github.com/hyperledger/aries-mobile-agent-react-native/pull/957
cc: @amanji , @jleach

We can close this issue.


Add OWNER file

reviewers:

GuoRentong
derekdqc
junjiejiangjjj

approvers:

GuoRentong

/verify-owners

/verify-owners