Swift2: BlurView returns the view

Practical use:
insertBlurView(view, style: .Dark).addGestureRecognizer(gestureRecognizer)

Hey @ricardopereira, thanks for your pull request! It looks like this Pull Request was already merged in #91 on the master branch. Since both branches will be merged together, we don't need to do the same on both branches.
If that’s not right, please re-open this one. Thanks again! :smile:

@schneiderandre Yes, that's right but I'm also using Swift 2 and I saw it's a work in progress. When will you merge the branch with the master?

I see. We could merge the master into the swift2 branch to be up to date there.
What do you think?

That sounds great :smile:

Great! There are some merge conflicts, let's hope I can resolve them quickly :pray:

@ricardopereira, merged! give it a try :+1:

That was fast. It compiles successfully ihih :+1:
Thank you.

You are welcome! :smile:


Unable to debug markdown-language-features extension after connecting to process

VSCode Version: Development
OS Version: High Sierra

Steps to Reproduce:

Download source and build locally
Edit vscode/extensions/markdown-language-features/src/features/workspaceSymbolProvider.ts in provideWorkspaceSymbols (in my case)
Set a breakpoint in that method
Run in Debug and connect to the Vscode extension process
Trigger Search Symbol in Workspace

The breakpoint isn't hit
Does this issue occur when all extensions are disabled?: N/A

Works fine for me.
I'm using the "Attach to Extension Host" launch config and after a reload of the extension host window I do a F1 and then execute "Go to Symbol in Workspace...":


Translations update from Hosted Weblate

Translations update from Hosted Weblate for Amarok-Hider/Amarok Fastlane.
Current translation status:

Hey, I completed Turkish translation yesterday , you can check it. And I want to say something, @deltazefiro can you update my name from "Croxz" to "croxz900" , "croxz900" is my nickname and I'm the one who made all translation. Thank you for everything...

@croxz900  Oops! My bad.
I attempted to use an AI-based tool for generating release notes, but I did not thoroughly review the results to catch that mistake.
I have now made the corrections in the release note. However, the release note provided by IzzyOnDroid is difficult to correct. I will make the corrections in the next release.
Thank you for your consistent contributions!


CSP friendly dist

@arnaudlewis @MarcMcIntosh  Up-to-date version of https://github.com/prismicio/prismic-javascript/pull/60.
The current distribution(https://github.com/prismicio/prismic-javascript/blob/master/dist/prismic-javascript.min.js) contains the line:
try{
  n=n||Function("return this")()||(0,eval)("this")
} catch(t) {
  "object" == typeof window && (n=window)
}

I guess this is due to the use of webpack:
https://github.com/webpack/webpack/issues/6461
This line uses eval (either directly or through Function("")) and if your CSP policy doesn't allow eval it will fail and fallback to the catch clause. This will result in a violation event which will be send to the report-uri configured in your CSP policy. The code above will be executed on every page load, so on every page load, our app will send a violation report.
I updated the PR of @nsivertsen because the rollup build doesn't contain the problematic code.

any update on this, the dist not being CSP friendly is a big issue

Hi @henkerik, we fixed this issue in https://github.com/prismicio/prismic-javascript/pull/104
Thanks for following up :)
Best,
Marc


Fix crash on timeout

Escape strings correctly to protect against protocol String.Chars not implemented error.
Fixes #8

Pull Request Test Coverage Report for Build 11

0 of 4 (0.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 77.075%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

lib/ueberauth_token/worker.ex
0
4
0.0%

Totals

Change from base Build 8:
0.0%

Covered Lines:
195

Relevant Lines:
253

💛  - Coveralls

LGTM

Closing to reopen onto master, as GitHub doesnt let you edit the MR!


Rust build on windows-latest host fails -> failed to run custom build command for openssl-sys v0.9.103

Description
Hi all,
I am not able to build our Rust project on windows-latest host. The same project has been build on macos-latest and ubuntu-latest without an issue.
I can't share the public link to a failed action since we are an enterprise customer, but I can share the workflow link.
Exact workflow.
Our issue is that our Rust dependency needs Pearl modules that are available on other runners by default.
During the build we get this issue:
Compiling openvino v0.5.0 error: failed to run custom build command for openssl-sys v0.9.103
Caused by:
process didn't exit successfully:
D:\a\photoniq-faas-cli\photoniq-faas-cli\target\release\build\openssl-sys-[368](https://github.com/Macrometacorp/photoniq-faas-cli/actions/runs/10186069283/job/28177039168#step:17:369)6cb497dc4e15c\build-script-main (exit code: 101)   --- stdout   cargo:rustc-check-cfg=cfg(osslconf, values("OPENSSL_NO_OCB", "OPENSSL_NO_SM4", "OPENSSL_NO_SEED", "OPENSSL_NO_CHACHA", "OPENSSL_NO_CAST", "OPENSSL_NO_IDEA", "OPENSSL_NO_CAMELLIA", "OPENSSL_NO_RC4", "OPENSSL_NO_BF", "OPENSSL_NO_PSK", "OPENSSL_NO_DEPRECATED_3_0", "OPENSSL_NO_SCRYPT", "OPENSSL_NO_SM3", "OPENSSL_NO_RMD160", "OPENSSL_NO_EC2M", "OPENSSL_NO_OCSP", "OPENSSL_NO_CMS", "OPENSSL_NO_COMP", "OPENSSL_NO_SOCK", "OPENSSL_NO_STDIO"))   cargo:rustc-check-cfg=cfg(openssl)
More info on the issue:
OPENSSL_CONFIG_DIR unset   running "perl" "./Configure" "--prefix=D:/a/photoniq-faas-cli/photoniq-faas-cli/target/x86_64-pc-windows-msvc/release/build/openssl-sys-ea34f819041c5cff/out/openssl-build/install" "--openssldir=SYS$MANAGER:[OPENSSL]" "no-dso" "no-shared" "no-ssl3" "no-tests" "no-comp" "no-zlib" "no-zlib-dynamic" "--libdir=lib" "no-md2" "no-rc5" "no-weak-ssl-ciphers" "no-camellia" "no-idea" "no-seed" "no-capieng" "no-asm" "VC-WIN64A"
 --- stderr   Can't locate Locale/Maketext/Simple.pm in @INC (you may need to install the Locale::Maketext::Simple module)
I am trying to install Pear modules as it can be seen from the workflow:
- name: Install Scoop and dependencies (Windows)         if: matrix.settings.host == 'windows-latest'         shell: powershell         run: |           iwr -useb get.scoop.sh | iex           scoop install perl           scoop install openssl
But this does not work.
I have tried multiple solutions found on the web for example:
Issue 8344 but no luck 🥲
Can you please help me and share a workaround for this issue?
Thanks!
Dino
Platforms affected

[ ] Azure DevOps
[X] GitHub Actions - Standard Runners
[X] GitHub Actions - Larger Runners

Runner images affected

[ ] Ubuntu 20.04
[ ] Ubuntu 22.04
[ ] Ubuntu 24.04
[ ] macOS 12
[ ] macOS 13
[ ] macOS 13 Arm64
[ ] macOS 14
[ ] macOS 14 Arm64
[X] Windows Server 2019
[X] Windows Server 2022

Image version and build link
Current runner version: '2.317.0'
Operating System
Microsoft Windows Server 2022
10.0.20348
Datacenter
Runner Image
Image: windows-2022
Version: 20240721.1.0
Included Software: https://github.com/actions/runner-images/blob/win22/20240721.1/images/windows/Windows2022-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/win22%2F20240721.1
Runner Image Provisioner
2.0.373.1
Is it regression?
No
Expected behavior
We should be able to build Rust project on windows-latest host.
Actual behavior
We can't build our Rust project.
Repro steps

Step:
Create a simple Rust project
Step:
Add openvino v0.5.0 dependency Openvino
Step:
Build Rust project with windows-latest host

Hi @dlozina-macrometa  , We will be analysing and provide you a solution. Thanks

Thank you @vidyasagarnimmagaddi !

Hi @dlozina-macrometa  , could you please try to include these steps after installing openssl and perl , try to install below mentioned, and provide the logs or workflow if error persists.
# Install Perl modules via CPAN
 perl -MCPAN -e "install Locale::Maketext::Simple"
 perl -MCPAN -e "install Module::Build" # Add other modules if needed

Hi @vidyasagarnimmagaddi, thank you for your fast response.
We have changed the action step to:
- name: Install Scoop and dependencies (Windows)         if: matrix.settings.host == 'windows-latest'         shell: powershell         run: |           iwr -useb get.scoop.sh | iex           scoop install perl           scoop install openssl           perl -MCPAN -e "install Locale::Maketext::Simple"           perl -MCPAN -e "install Module::Build"
But we still have an issue, now on the step above.
In the attachment, you will find logs of the action.
logs_26735443887.zip

Hi @dlozina-macrometa  , we will provide the solution , after analysing . thanks

hi @dlozina-macrometa
kindly try this workaround
  build:
    runs-on: windows-latest
    strategy:
      matrix:
        settings:
          host: [windows-latest, macos-latest, ubuntu-latest]
    steps:
    - uses: actions/checkout@v2
    # Install Scoop (Windows Package Manager)
    - name: Install Scoop and dependencies (Windows)
      if: matrix.settings.host == 'windows-latest'
      shell: powershell
      run: |
        iwr -useb get.scoop.sh | iex
        scoop install perl
        scoop install openssl
    # Install cpanminus (cpanm) for easier module installation
    - name: Install cpanminus
      if: matrix.settings.host == 'windows-latest'
      shell: powershell
      run: |
        cpan App::cpanminus
    # Install required Perl modules using cpanminus
    - name: Install Perl Modules
      if: matrix.settings.host == 'windows-latest'
      shell: powershell
      run: |
        cpanm Locale::Maketext::Simple
        cpanm Module::Build
    # Build the Rust project
    - name: Build Project
      run: cargo build --release
      env:
        OPENSSL_DIR: D:\a\photoniq-faas-cli\photoniq-faas-cli\target\x86_64-pc-windows-msvc\release\build\openssl-sys-ea34f819041c5cff\out\openssl-build

    ---
    you can add steps to print out diagnostic information:
- name: Print Perl Version and Modules
  if: matrix.settings.host == 'windows-latest'
  shell: powershell
  run: |
    perl -v
    perl -Mlocal::lib
    perl -MCPAN -e "print CPAN::Config->dump"
    cpanm -v
    cpanm --info Locale::Maketext::Simple
    cpanm --info Module::Build

These steps will print the Perl version, local library paths, CPAN configuration, and detailed information about the installed modules

Hi @dlozina-macrometa  , any updates on the above the workaround .thanks

Hi @vidyasagarnimmagaddi, thank you and the team for help.
I have implemented all the necessary steps for a workaround. But we still have an issue.
From the workflow logs we can see that modules are installed, everything that you have suggested looks good.
Than again we still have:

error: failed to run custom build command for openssl-sys v0.9.103
Caused by:
process didn't exit successfully: D:\a\photoniq-faas-cli\photoniq-faas-cli\target\release\build\openssl-sys-b6da55e0c9a0ca3b\build-script-main (exit code: 101)
--- stdout
cargo:rustc-check-cfg=cfg(osslconf, values("OPENSSL_NO_OCB", "OPENSSL_NO_SM4", "OPENSSL_NO_SEED", "OPENSSL_NO_CHACHA", "OPENSSL_NO_CAST", "OPENSSL_NO_IDEA", "OPENSSL_NO_CAMELLIA", "OPENSSL_NO_RC4", "OPENSSL_NO_BF", "OPENSSL_NO_PSK", "OPENSSL_NO_DEPRECATED_3_0", "OPENSSL_NO_SCRYPT", "OPENSSL_NO_SM3", "OPENSSL_NO_RMD160", "OPENSSL_NO_EC2M", "OPENSSL_NO_OCSP", "OPENSSL_NO_CMS", "OPENSSL_NO_COMP", "OPENSSL_NO_SOCK", "OPENSSL_NO_STDIO"))
running "perl" "./Configure" "--prefix=D:/a/photoniq-faas-cli/photoniq-faas-cli/target/x86_64-pc-windows-gnu/release/build/openssl-sys-3e8f17fc2713d7fd/out/openssl-build/install" "--openssldir=SYS$MANAGER:[OPENSSL]" "no-dso" "no-shared" "no-ssl3" "no-tests" "no-comp" "no-zlib" "no-zlib-dynamic" "--libdir=lib" "no-md2" "no-rc5" "no-weak-ssl-ciphers" "no-camellia" "no-idea" "no-seed" "no-capieng" "mingw64" "-O2" "-ffunction-sections" "-fdata-sections" "-m64" "-Wa,-mbig-obj"
--- stderr
Can't locate Locale/Maketext/Simple.pm in @INC (you may need to install the Locale::Maketext::Simple module) (@INC entries checked: /d/a/photoniq-faas-cli/photoniq-faas-cli/target/x86_64-pc-windows-gnu/release/build/openssl-sys-3e8f17fc2713d7fd/out/openssl-build/build/src/util/perl /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl /d/a/photoniq-faas-cli/photoniq-faas-cli/target/x86_64-pc-windows-gnu/release/build/openssl-sys-3e8f17fc2713d7fd/out/openssl-build/build/src/external/perl/Text-Template-1.56/lib) at /usr/share/perl5/core_perl/Params/Check.pm line 6.

Maybe I did not understand the env variable part:
env:         OPENSSL_DIR: D:\a\photoniq-faas-cli\photoniq-faas-cli\target\x86_64-pc-windows-msvc\release\build\openssl-sys-ea34f819041c5cff\out\openssl-build
Are we sure that this part ea34f819041c5cff of the path above does not change?
In the workflow I have attached the error reveals a different path created, so I have change the path of env accordingly to:
OPENSSL_DIR: D:\a\photoniq-faas-cli\photoniq-faas-cli\target\x86_64-pc-windows-msvc\release\build\openssl-sys-3e8f17fc2713d7fd\out\openssl-build
I think we are close @vidyasagarnimmagadd, can you please take a look at the logs and see why we still have issue please?
logs_27484205216.zip

Hi @dlozina-macrometa
The issue seems to be related to the path of the OpenSSL build directory changing between different runs, causing the environment variable OPENSSL_DIR to point to an incorrect path. This can happen because the build script generates a new unique directory each time it runs.
To address this, you can modify the workflow to dynamically set the OPENSSL_DIR environment variable to the correct path after it is created during the build process. :please check this workaround and  add the provided logic in your workflow .  revert if any issues.
name: Rust Build on Windows

on:
  push:
    branches:
      - main
  pull_request:
    branches:
      - main

jobs:
  build-windows:
    runs-on: windows-latest

    steps:
      - name: Check out the code
        uses: actions/checkout@v4

      - name: Set up Rust
        uses: actions/setup-rust@v2
        with:
          rust-version: stable

      - name: Install Scoop and dependencies
        shell: powershell
        run: |
          iwr -useb get.scoop.sh | iex
          scoop install perl
          scoop install openssl

      - name: Install Perl CPAN modules
        shell: bash
        run: |
          cpanm Locale::Maketext::Simple

      - name: Build the Rust project (first attempt to capture OpenSSL path)
        id: build-attempt
        run: cargo build --release || true  # Allow failure to capture path

      - name: Set OPENSSL_DIR based on dynamic build path
        run: |
          OPENSSL_DIR=$(find target -type d -name 'openssl-sys-*' -print -quit)/out/openssl-build
          echo "OPENSSL_DIR=$OPENSSL_DIR" >> $GITHUB_ENV

      - name: Build the Rust project (final build with correct OPENSSL_DIR)
        run: cargo build --release

      - name: Run tests
        run: cargo test --release

Hi @vidyasagarnimmagaddi , can you please take a look at the logs attached?
Can you please verify if we are capturing the right path? The second build still fails even though we are capturing OPENSSL_DIR.
logs_27586523327.zip

The log shows  OPENSSL_DIR is set to target/release/.fingerprint/openssl-sys-d6e493f55d3aad6e/out/openssl-build,  error with the OpenSSL configuration during the build of openssl-sys v0.9.103.

Either the path is incorrect or does not contain the necessary build files.
To resolve this, verify that the OPENSSL_DIR path is accurate and contains all required files, and ensure that the
environment is correctly set up prior to starting the build.
kindly try the above, Hope the issue resolves. We will be closing this issue. Thanks

hi @dlozina-macrometa  ,kindly try the above, Hope the issue resolves. We will be closing this issue. Thanks


feat(config): allow usage of env vars to set config

This means we can change configuration by environment variables at runtime.
An example with docker:
docker run ghcr.io/beckn/bap-client --env DATABASE_URL=mongdb://localhost:27017

Rebased and re-opened as #29


Capture completed test results in a thread safe manner

Inconsistent test result state exposed by the /tests endpoint
{
tests: [ ],
status: "ALL_OK"
}

Emergency bug fix. Merging given all acceptance tests have passed.


419 problem

I recently wrote that localhost:3000 does not send cookies, you said that the domains should be the same except for subdomains. So I transferred the sites to the server, but cookies are still not sent. What could be the reason?!

I forgot to clarify. I'm talking about csrf-token cookies

Any ideas?

Hey @Jonston, sure, you have to configure SESSION_DOMAIN to be .carpot.cx.ua to make it work.

I have the same issue in production environment.. Locally, with frontend on localhost:3000 and API on localhost:201 everything is OK,  but  in production where Laravel API is on  sso.dmx.rs and frontend app on kat.dmx.rs it doesn't  work.
My .env settings for Laravel app in production is:
APP_URL=https://sso.dmx.rs
FRONTEND_URL=https://kat.dmx.rs
SANCTUM_STATEFUL_DOMAINS=kat.dmx.rs
SESSION_DOMAIN=.dmx.rs

![image](https://github.com/user-attachments/assets/b787b5ce-6193-4967-9fa3-9ecbe085ce38)

@marcha if you see cookies set on subdomains, them Laravel is not configured properly. However, SESSION_DOMAIN looks right, so try to reload Laravel config cache, clear the cookies in the browser and restart the app. Once you have correct settings, you will see that Laravel returns cookies only for your TLD.

@manchenkoff you were right. I made mistake. I set session_domain twice, actually i didn't remove default settings from part where sessions is configured initially. Thank you and sorry for this false alarm.

Thx. I set session_domain and all work well!


How can I customise the context menu for a contributed tree view

I'm trying to provide some items on the context menu for a contributed tree. I've seen that the TreeItem can be given a contextValue however this is not flexible enough - I need to enable/disable individual items completely dynamically based on each item in the tree (the commands are enabled/disabled based on specific data about each node, and not what type it is).
My plan was to use contextValue to ensure I only ever trigger for my items and then as a bit of a hack, use the resourceUri to encode the possible commands with a regex in the context clause like this:
{
	"when": "dart-code:isWidget && resourceFilename =~ /xxx/",
	"command": "flutter.doctor"
}

Then in my TreeItem I would set resourceUri to be some string that encoded all of the possible commands like /fake-path/xxx/yyy/zzz.
However, the above example doesn't work at all - I even tried setting the clause to dart-code:isWidget && resourceFilename =~ /.*/ to catch them all but the menu never appears.
So, I guess two questions:

Is there a better way that for a TreeItem I can enable/disable some commands (without an explosion of context names based on all combinations of the commands that are available for a node)
Why doesn't the above (using resourceFilename) not work? Is the =~ syntax valid (I copied it from tests)? Or is putting a fake path in resourceUri not being passed through?

Actually, I simplified this and it still doesn't work - so maybe contributed trees can't use this?
Example:
{
	"when": "resourceFilename == main.dart",
	"command": "flutter.doctor"
}

TreeItem has resourceUri set:
this.resourceUri = vs.Uri.file(editor.document.uri.fsPath);

But there's no context menu on the tree node.

Aha, I'm putting things in the wrong place, they should go in view/item/context!
"view/item/context": [
				{
					"when": "dart-code:flutterProjectLoaded",
					"command": "flutter.doctor"
				}
			]


Handle MathJax errors better

Here's what I think this is about: at the moment, if there's a MathJax error anywhere in the exam, MathJax stops running over the rest of the exam. It's often quite hard to work out exactly where the error is, particularly if it's in something not initially visible, such as advice or steps.


Error installing

doing developer install, during this step: pip install -e . get:
 ModuleNotFoundError: Module not found: Error: Cannot resolve module 'jquery-ui/themes/smoothness/jquery-ui.min.css' in /home/myuser/jupyterlab/jupyterlab/node_modules/jupyterlab/lib/widgets
        at /home/myuser/jupyterlab/jupyterlab/node_modules/webpack/lib/Compilation.js:229:38

using latest node and npm.

I got the same here https://github.com/jupyter/jupyterlab/issues/265, it shoudl be fixed on master.
pull, clean all (git clean -xfd) and reinstall, and it should work.

Ah, that was it.  I was out of sync with upstream.  Sorry about that.
Really love this UI!


Warnings when using test data

Hi
I was testing diploSHIC with example data, but I got some warnings when i run "python diploSHIC.py train training/ testing/ fooModel --epochs 10". Our machine is multicore with CentOS7 and packages is python 3.6.9, tensorflow 1.14.0 keras 2.3.1 and pandas 1.0.1.
Although it runs normally after this, I am confused as to whether the result is correct or not. So, please check if this will affect the results
warnings messages:
/data/00/user/user112/.local/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:516: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint8 = np.dtype([("qint8", np.int8, 1)])
/data/00/user/user112/.local/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:517: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/data/00/user/user112/.local/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:518: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint16 = np.dtype([("qint16", np.int16, 1)])
/data/00/user/user112/.local/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:519: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/data/00/user/user112/.local/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:520: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint32 = np.dtype([("qint32", np.int32, 1)])
/data/00/user/user112/.local/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:525: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  np_resource = np.dtype([("resource", np.ubyte, 1)])
/data/00/user/user112/.local/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:541: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint8 = np.dtype([("qint8", np.int8, 1)])
/data/00/user/user112/.local/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:542: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/data/00/user/user112/.local/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:543: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint16 = np.dtype([("qint16", np.int16, 1)])
/data/00/user/user112/.local/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:544: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/data/00/user/user112/.local/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:545: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint32 = np.dtype([("qint32", np.int32, 1)])
/data/00/user/user112/.local/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:550: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  np_resource = np.dtype([("resource", np.ubyte, 1)])

Tiande

Hi
when I using ‘predict’ submodule, i got some Error
Traceback (most recent call last):  File "diploSHIC.py", line 299, in <module>
    model.load_weights(argsDict['modelWeights'])
  File "/data/00/user/user112/.local/lib/python3.6/site-packages/keras/engine/saving.py", line 492, in load_wrapper
    return load_function(*args, **kwargs)
  File "/data/00/user/user112/.local/lib/python3.6/site-packages/keras/engine/network.py", line 1230, in load_weights
    f, self.layers, reshape=reshape)  File "/data/00/user/user112/.local/lib/python3.6/site-packages/keras/engine/saving.py", line 1183, in load_weights_from_hdf5_group
    original_keras_version = f.attrs['keras_version'].decode('utf8')
AttributeError: 'str' object has no attribute 'decode'

i can't fix it by my self because I am newble about python. My command line is  python diploSHIC.py predict fooModel.json fooModel.weights.hdf5 testEmpirical.fvec testEmpirical.preds
please point out what is wrong with it.
Thanks
Tiande

hi there- you first issue above looks like deprecation warnings. nothing to worry about.
the second issue here with the predict mode looks like an issue with your tensorflow / keras install and doesn't appear to have to do with diploSHIC per se. Can you run other things using keras?

Hi~
I have reinstalled tensorflow 1.14.0 and keras 2.3.1 but problem not be solved.
I really know little about python, so i don't how to test them whether they work well. If you could kindly provide me some ways or code to test them, I will be appreciate.
Tiande

you could try one of these examples to make sure everything is working, but your error above is coming from keras. you might raise an issue on that repo
https://keras.io/examples/vision/image_classification_from_scratch/

hi,
Sorry i didn't see your reply, i will test it as soon as possible
you can close this question temporary, if i meet any other question of DiploSHIC, i will ask again.
Thank you~


Note blocks not importing through nbt structure block in 1.20.1

Describe the bug
Note blocks do not load, wiring does.
To Reproduce
Steps to reproduce the behavior:
Export any midi as Track Export
Expected behavior
Note blocks load
Screenshots

Fixed in 716d8230c64d54b91cf937f6e85b19e27fd773a3


[Java] False positive on Nullable

Infer doesn't call Android's TextUtils I guess?
	public State(@Nullable String states) {
		if (!TextUtils.isEmpty(states)) {
			mSegments = states.split(";");
			trimSegments();
		} else {
			mSegments = new String[0];
		}
	}

Causes NULL_DEREFERENCE

Hi @denizt. Thanks for reporting this. Yes, Infer does not currently analyses the standard libraries. It only analyses what gets compiled and does not know what TextUtils.isEmpty does in this case. It especially does not know that TextUtils.isEmpty(states) returns true when statues == null.
I am keeping this task opened for now as we may start to analyse some part of the standard library in the future, which could fix this false positive.

Would something like https://github.com/denizt/infer/commit/108dfb15330c8d56a5581b709f044269dd732dbb be OK to fix the problem?

Yes, thanks for the pull request. This should solve the issues involving TextUtils.isEmpty()


Add .ruby-gemset file to compliment .ruby-version

So that when I bundle install, the libs get sandboxed.

Thanks for this!


Shorter error handling

Go Programming Experience
Intermediate
Other Languages Experience
RPG, Java, C, Rexx ...
Related Idea

[ ] Has this idea, or one like it, been proposed before?
[X] Does this affect error handling?
[ ] Is this about generics?
[X] Is this change backward compatible? Breaking the Go 1 compatibility guarantee is a large cost and requires a large benefit

Has this idea, or one like it, been proposed before?
Really don't know
Does this affect error handling?
Not in the internals
Is this about generics?
No
Proposal
This kind of code pattern emerges once and again in programs ...
value, err :=  aFunction(parm1,parm2)
if err != null {
panic(err)
}
Or
value, err :=  aFunction(parm1,parm2)
if err != null {
return nil,err
}
They are usual at evaluanting precondition at the enter of a functión and you have usually two outcomes,
panic or return error with nil values...
Te proposal is to add a couple of "dummy identifiers"
_# (underscore bang)
_<(undercore  back)
The idea is  instead using this:
value, err :=  aFunction(parm1,parm2)
if err != null {
panic(err)
}
use
value, _#  :=  aFunction(parm1,parm2)
Instead of using this :
value, err :=  aFunction(parm1,parm2)
if err != null {
return nil,err
}
Use this :
value, _<  :=  aFunction(parm1,parm2)
It's cosmetic , sintax sugar, but can save a lot of lines of code and thus improve programmers efficiency and improving
even more the fast compilation times.
And it aid code clarity too, less visual clutter.
Compare ...
func callApi(url string, url ssn) boolean  {
_# := validateURLFormat(url) //Bad URL ...Bang!
json , _< := getJson(url,ssn) //Couldn't resolve? Exit
ssndata Sssndata = json.Unmarshal(json)
return ssndata.name
}
With
func callApi(url string, url ssn) string {
error  := validateURLFormat(url) //Bad URL ...Bang!
if (error != nil) {
panic(error)
}
json String
json , error := getJson(url,ssn) //Couldn't resolve? Exit
if  error != null {
return nil, err
}
ssndata Sssndata = json.Unmarshal(json)
return ssndata.name
}
6 Lines vs 13 Lines, half the code, and provided these constructions are pervasive it can reduce codebase size a lot
Language Spec Changes
Nothing internal, if go had a macro replacer it could be done with that
Informal Change
It it just sintatic sugar to avoid writting error checking ifs once and again, in the back, the compiler just insert the code for the if
Is this change backward compatible?
Yes, completely
Orthogonality: How does this change interact or overlap with existing features?
it builds on the blank identifier, extending its reach
Would this change make Go easier or harder to learn, and why?
Easier, because it will make error checking less verbose
Cost Description
I  think it's almost free if using a simple preprocessor, then again it could require a change in the tokenizer and parser, that will be more costly, but i think not so much, if the proposed token _# and _< proves hard to implement (they should'nt be if the parser is a lookahead parser) then other symbols could be explored. But I think _# and _< describes panic and return on error quite well in go idiom
Changes to Go ToolChain
just the compiler
Performance Costs
It could help compilation time by reducing code base size, run time cost is just the same
Prototype
Two possible implementations as a pre processor that changes _# and _< in ther if equivalents ...or better changing the lexer and the parser

Related Issues

Proposal: add token to syntax to reduce error boilerplate #25273 (closed)
proposal: Go2: error handling shortening #62378 (closed)
proposal: Go2: error handling with #err suffix   #67251 (closed)
proposal: Go 2: syntactic sugar for error handling (sharp guard) #57052 (closed)
proposal: Go 2: return error on assignment to _ #65345 (closed)
proposal: Go 2: reducing "if err != nil" by implicit form of it #41908 (closed)
proposal: Go 2: allow to mark assigments of errors to return immediately when non-nil or to call a handler function #42318 (closed)
proposal: Go 2: new syntax for abbreviation of `if err != nil { return ..., err }` #51146 (closed)
proposal: handle error in minimal way #57552 (closed)
proposal: Go 2: provide symbol (e.g. #) to abort/panic on non-zero return value #22122 (closed)

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

This looks like #25273 with a slightly different syntax.

Duplicate of #25273

see also related proposals like #22122 #35644


spring-social-login - Unable to execute the code

I am trying to run your code "spring-social-login", but I am getting some errors while running you code. I am facing errors mentioned in the below two links.
Request you to help to solve this issues. Looking for your earliest possible response.
https://stackoverflow.com/questions/44505276/app-domains-must-match-the-domain-of-the-facebook-web-games-url-https-mobile
https://stackoverflow.com/questions/44477717/url-blocked-this-redirect-failed-because-the-redirect-uri-is-not-white-listed-i

Hey @asif-anwar - if you have time, can you please have a look at this one - you'll probably get to it before I do.
Cheers,
Eugen.

@eugenp
I will look into this day after tomorrow.
Thanks
Asif

Hi @JavaHelper,
Could you please try following steps and update me,

Add new app at https://developers.facebook.com
In Settings-->Basic, add platform as "Website" and  Site URL as _http://localhost:8080/_
Add "Facebook Login" product  from PRODUCTS section
In product settings, update Valid OAuth redirect URIs as http://localhost:8080
Run the application and hit "Login using Facebook" button

Thanks
Asif

Hey @JavaHelper  - not sure if you got the last comment here. I'm closing this issue, but feel free to re-open it if the problem is still there.
Cheers,
Eugen.


ERROR: for php  No such image:

copying docker-compose.yml
and running docker-compose up -d leads to the following error

ERROR: for php  No such image: sha256:65b6f6f6f3cc15d5006c247dcdde9b74b1402a03d4eabbdf3b4475c8474fa80a
ERROR: Encountered errors while bringing up the projec

Here is the details from my system

Docker version 1.13.0, build 49bf474
docker-compose version 1.10.1, build b252738
docker-py version: 2.0.2
CPython version: 2.7.12
OpenSSL version: OpenSSL 1.0.2g  1 Mar 2016

tried to change the php section

image: wodby/drupal-php:7.0-1.0.0

to

image: wodby/drupal-php:7.0

taken from https://github.com/wodby/drupal-php works
but still get the same error

ERROR: for php  No such image: sha256:65b6f6f6f3cc15d5006c247dcdde9b74b1402a03d4eabbdf3b4475c8474fa80a
ERROR: Encountered errors while bringing up the project.

Do you have wodby/drupal-php:7.0-1.0.0 image on your local machine? You can check it with docker images. What happens when you execute docker pull wodby/drupal-php:7.0-1.0.0?

Yes I have it

wodby/drupal-php           7.0-1.0.0           e317c5e9d913        8 weeks ago         235 MB

$ docker pull wodby/drupal-php:7.0-1.0.0
7.0-1.0.0: Pulling from wodby/drupal-php
Digest: sha256:bada98d1ee6177143814540a40719bb06fa3157d65c8d6d64b33b9408f236568
Status: Image is up to date for wodby/drupal-php:7.0-1.0.0

So it seems you have wodby/drupal-php:7.0-1.0.0 image after all. Make sure you're using the same image for your php service inside of your docker-compose file.


Step 4

Why can't I assign this pull request?

Because this is my house!

I think its because this is my personal repo; not part of the fluke networks team. Not sure. Others have been able to assign.

Looks good. What did you think?


native date types

Works on my tests, probably doesn't work very well with nested types.

this going to be really useful!!!


is this repo alive and maintained?

otherwise somebody should pick it up in a fork

I guess that's a "no" then; anyone interested in maintaining elsewhere?

Have you tried reaching out to the author via other channels, e.g. email?


problem modifying external variable within an axios call

I have the next JSX code
answer = true;
 var postAxios = axios({
            method: 'post',
            url:     httpLink,
            params: {table: tableName},
            data: rowInfo
           }
          )
         .then(function (response) {
             console.log(response);
             alert(response);
             answer = true;

           })
          .catch(function (error) {
              console.log(error);
              alert(error);
              answer = false;
           });
return answer;

on the final value for answer some transaction needs to be continued (answer==true) or stopped(answer==false). The problem I have is that answer is always true inclusive when the catch section is executed. Is there a way to arrange this or for me to be able to get a proper value for answer?

You need to add the code that uses that variable in a then call of the promise, as the request is asynchronous and you can't access the value immediately after calling axios. This isn't really the proper place to ask, so please use StackOverflow or similar.

var answer = await axios.get('https://reqres.in/api/users?page=1').then(function (response) {
return response.data
})
console.log(answer)


A fancier rust shell based on fenix.

Here's an attempt at upstreaming the rust shell in #179.
I'm not thrilled about the way it handles extra targets -- I generated the list from fenix, but I couldn't find a way to automatically keep it up-to-date. I think the current state is somewhat workable, though, because (1) the targets don't change too much and (2) even if your favorite target is missing from the predefined list of targets, you can still set it and it will work. The predefined list only affects autocompletion.

(push-forced to re-trigger the CI which was stuck for some reason)

Looks like the template test assumes that the field name in packages is the same as the name of some binary that gets installed. I renamed the package from rust-toolchain to rustc and it now passes (but it cancelled the automerge)


nodeos 1.7.x

Hello.
Do you have plans to support nodeos 1.7.x and nodeos 1.8.x?

yes we have.

release/1.7.x
release/1.8.x


bug: Repetition of the sections in contact page

Please assign this issue to me under gssoc @Anupkjha2601

Want to fix this issue, please assign it to me @Anupkjha2601

@mohit-dhote Repetition problem solved but there is some different problem in navbar section also in footer section so you can work i am assining you.

Yah Sure ! Please assign it to me.

Sure sir, I will work on that section

Please review my pr , navbar issue is resolved


I convered real estate bot into 2.0 but I'm facing isuues, rasa shell command opens rasa intecative why? opens the detailed confidence information etc.

Hello Every time I run “rasa shell” , it runs as if I type “rasa shell nlu” . I am trying to run “rasa shell” normally but it opens the detailed confidence information etc.

Hi Vivek,
As I can see in your 2nd snapshot the domain file is invalid. Can you figure it out the issue in domail yml file. I guess because of this the core model wasn't trained due to which you are facing the above scenario.
You can validate your yml file in online yaml validator.

Hi Vivek,
As I can see in your 2nd snapshot the domain file is invalid. Can you figure it out the issue in domail yml file. I guess because of this the core model wasn't trained due to which you are facing the above scenario.
You can validate your yml file in online yaml validator.

Yeah I'm facing issues regarding forms in rasa when converting from real estate rasa 1.0 to rasa 2.0
Can you please help me, I'll send you my project files

Thanks for reply @shreeraj04 :)

Hi @vivek22122014 Hope you are able to solve it


check this please

NameError: name 'model' is not defined
Ignoring exception in on_message
Traceback (most recent call last):
File "C:\Users\DreamMaster\Desktop\AK4SH\discordbot\lib\site-packages\discord\client.py", line 343, in _run_event
await coro(*args, **kwargs)
File "C:\Users\DreamMaster\PycharmProjects\discordbot\main.py", line 18, in on_message
result = model.predict([bag_of_words(inp, words)])[0]
NameError: name 'model' is not defined

u used the guide,,, wait,, i send some code

import nltk, os
nltk.download('punkt')
from nltk import word_tokenize,sent_tokenize
from nltk.stem.lancaster import LancasterStemmer
stemmer = LancasterStemmer()
import numpy as np
import tflearn
import tensorflow as tf
import random
import json
import pickle
with open("intents.json") as file:
data = json.load(file)
try:
with open("data.pickle","rb") as f:
words, labels, training, output = pickle.load(f)
except:
words = []
labels = []
docs_x = []
docs_y = []
for intent in data["intents"]:
for pattern in intent["patterns"]:
wrds = nltk.word_tokenize(pattern)
words.extend(wrds)
docs_x.append(wrds)
docs_y.append(intent["tag"])
    if intent["tag"] not in labels:
        labels.append(intent["tag"])

words = [stemmer.stem(w.lower()) for w in words if w != "?"]
words = sorted(list(set(words)))
labels = sorted(labels)

training = []
output = []
out_empty = [0 for _ in range(len(labels))]

for x, doc in enumerate(docs_x):
    bag = []

    wrds = [stemmer.stem(w.lower()) for w in doc]

    for w in words:
        if w in wrds:
           bag.append(1)
        else:
          bag.append(0)

    output_row = out_empty[:]
    output_row[labels.index(docs_y[x])] = 1

    training.append(bag)
    output.append(output_row)

training = np.array(training)
output = np.array(output)

with open("data.pickle","wb") as f:
    pickle.dump((words, labels, training, output), f)

net = tflearn.input_data(shape=[None, len(training[0])])
net = tflearn.fully_connected(net, 8)
net = tflearn.fully_connected(net, 8)
net = tflearn.fully_connected(net, len(output[0]), activation="softmax")
net = tflearn.regression(net)
model = tflearn.DNN(net)
if [os.path.isfile(i) for i in ["model.tflearn.meta", "model.tflearn.index"]] == [True, True]:
model.load("model.tflearn")
else:
model.fit(training, output, n_epoch=1000, batch_size=8, show_metric=True)
model.save("model.tflearn")
def bag_of_words(s, words):
bag = [0 for _ in range(len(words))]
s_words = nltk.word_tokenize(s)
s_words = [stemmer.stem(word.lower()) for word in s_words]

for se in s_words:
    for i, w in enumerate(words):
        if w == se:
            bag[i] = 1

return np.array(bag)

def chat(inp):
print("Start talking with the bot! (type quit to stop)")
while True:
result = model.predict([bag_of_words(inp, words)])[0]
result_index = np.argmax(result)
tag = labels[result_index]
    if result[result_index] > 0.7:
        for tg in data["intents"]:
            if tg['tag'] == tag:
                responses = tg['responses']
        return random.choice(responses)

    else:
        return "I didnt get that. Can you explain or try again."

import discord
class MyClient(discord.Client):
async def on_ready(self):
print('Logged in as')
print(self.user.name)
print(self.user.id)
print('------')
async def on_message(self, message):
if message.author.id == self.user.id:
return
else:
inp = message.content
bot_response=chat(inp)
await message.channel.send(bot_response.format(message))
client = MyClient()
client.run('TOKEN')

nltk.download('punkt')

from nltk import word_tokenize,sent_tokenize

from nltk.stem.lancaster import LancasterStemmer
stemmer = LancasterStemmer()

import numpy as np
import tflearn
import tensorflow as tf
import random
import json
import pickle

with open("intents.json") as file:
    data = json.load(file)

try:
    with open("data.pickle","rb") as f:
        words, labels, training, output = pickle.load(f)

except:
    words = []
    labels = []
    docs_x = []
    docs_y = []
    for intent in data["intents"]:
        for pattern in intent["patterns"]:
            wrds = nltk.word_tokenize(pattern)
            words.extend(wrds)
            docs_x.append(wrds)
            docs_y.append(intent["tag"])

        if intent["tag"] not in labels:
            labels.append(intent["tag"])

    words = [stemmer.stem(w.lower()) for w in words if w != "?"]
    words = sorted(list(set(words)))
    labels = sorted(labels)

    training = []
    output = []
    out_empty = [0 for _ in range(len(labels))]

    for x, doc in enumerate(docs_x):
        bag = []

        wrds = [stemmer.stem(w.lower()) for w in doc]

        for w in words:
            if w in wrds:
               bag.append(1)
            else:
              bag.append(0)

        output_row = out_empty[:]
        output_row[labels.index(docs_y[x])] = 1

        training.append(bag)
        output.append(output_row)

    training = np.array(training)
    output = np.array(output)

    with open("data.pickle","wb") as f:
        pickle.dump((words, labels, training, output), f)

net = tflearn.input_data(shape=[None, len(training[0])])
net = tflearn.fully_connected(net, 8)
net = tflearn.fully_connected(net, 8)
net = tflearn.fully_connected(net, len(output[0]), activation="softmax")
net = tflearn.regression(net)

model = tflearn.DNN(net)

if [os.path.isfile(i) for i in ["model.tflearn.meta", "model.tflearn.index"]] == [True, True]:
    model.load("model.tflearn")
else:
    model.fit(training, output, n_epoch=1000, batch_size=8, show_metric=True)
    model.save("model.tflearn")

def bag_of_words(s, words):
    bag = [0 for _ in range(len(words))]

    s_words = nltk.word_tokenize(s)
    s_words = [stemmer.stem(word.lower()) for word in s_words]

    for se in s_words:
        for i, w in enumerate(words):
            if w == se:
                bag[i] = 1

    return np.array(bag)

def chat(inp):
    print("Start talking with the bot! (type quit to stop)")
    while True:
        result = model.predict([bag_of_words(inp, words)])[0]
        result_index = np.argmax(result)
        tag = labels[result_index]

        if result[result_index] > 0.7:
            for tg in data["intents"]:
                if tg['tag'] == tag:
                    responses = tg['responses']
            return random.choice(responses)

        else:
            return "I didnt get that. Can you explain or try again."

import discord

class MyClient(discord.Client):
    async def on_ready(self):
        print('Logged in as')
        print(self.user.name)
        print(self.user.id)
        print('------')
    async def on_message(self, message):
        if message.author.id == self.user.id:
            return
        else:
           inp = message.content
           bot_response=chat(inp)
           await message.channel.send(bot_response.format(message))
client = MyClient()
client.run('TOKEN')

replace with ur token tho

the issue is,,, that,,, i guess ur trying to run the code without the training part

thank u it worked
On Sun, Jan 30, 2022 at 3:40 PM khewdlew @.***> wrote:

the issue is,,, that,,, i guess ur trying to run the code without the
training part
—
Reply to this email directly, view it on GitHub
https://github.com/anasselhoud/AI-ChatBot/issues/13#issuecomment-1025124661,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AXJ73RA6KAISA35MPVPDLPLUYUPQ7ANCNFSM5NCP55ZA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID:
@.***>

@anasselhoud close the ticket maybe

Thank you @khewdlew . Issue closed.


Retrieve expectations are not working with grunt task

I have created the grunt task to set an expectations and tried to retrieve the same.
var path = '/somePathOne';
var client = mockServerClient("localhost", 9000);
client.mockSimpleResponse(path, {name: 'one'}, 201);
client.mockSimpleResponse('/somePathTwo', {name: 'two'}, 202);
var expectations = client.retrieveExpectations(path);
console.log(expectations);

but it is not returning the expectations matched for the path. instead it is always returned as below
{ state: 'pending' }

I have verified in the mockserver.log after made the expectations. Expectations can be found at mockserver log, but it is not returning while calling with retrieveExpectations.
mockserver.txt
Advice me how to retrieve expectations with in javascript. I have tried retrieveExpectations for all too. Still the same. For me, it looks like retrieveExpectations didn't made contact at all.

@jamesdbloom - Could you please guide me on this?

The client returns promises so the following code should fix your issue:
var mockServer = require('mockserver-client'),
  mockServerClient = mockServer.mockServerClient;

var path = '/somePathOne';
var client = mockServerClient("localhost", 9000);
client.mockSimpleResponse(path, {name: 'one'}, 201)
  .then(function () {
      client.mockSimpleResponse('/somePathTwo', {name: 'two'}, 202)
        .then(function () {
            client.retrieveExpectations(path).then(
              function (expectations) {
                console.log(expectations);
              },
              function () {

              }
            );

          }, function (error) {
            console.log("Error creating /somePathTwo " + error);
          }
        );
    },
    function () {
      console.log("Error creating " + path + " " + error);
    }
  );

Please try this and re-open the issue if it is not working for you.


Fix file upload in containers

Due to the Docker containerization, uploading files will always fail (files are in the NGINX container, not the sidekiq or app container).

Due to the Docker containerization, converting files will always render the repository in the sidekiq container instead of the app volume.


Add support for multiple shipping method selection in order filters

What is the motivation for adding/enhancing this feature?

User should be able to select multiple shipping method when applying order filters
What are the acceptance criteria?

[ ] When selecting more than one shipping method the operator passed should be in.
[ ] When selecting a single shipping method the operator passed should be equals
[ ] When a single method is selected, the name of the method needs to displayed
[ ] When multiple shipping method is selected, count of the total methods needs to be displayed

Can you complete this feature request by yourself?

[x] YES
[ ] NO

Additional information

@dt2patel Sir, Please add your inputs on this.

I agree. We should think of good UI for this. Does popover allow multi select? Or does it only allow single select. Maybe we can use alert instead?

I agree. We should think of good UI for this. Does popover allow multi select? Or does it only allow single select. Maybe we can use alert instead?

Popover has support for multiple selection, and its UI will have checkboxes before the name.

I agree. We should think of good UI for this. Does popover allow multi select? Or does it only allow single select. Maybe we can use alert instead?

Popover has support for multiple selection, and its UI will have checkboxes before the name.

@dt2patel Sir, Should we move ahead with this?

Yes this is good, sorry for the late reply


options.db.url is not specified

Where does options.db.url is being initialized and set, in order to be used at https://github.com/hoodiehq/hoodie/blob/master/cli/parse-options.js#L51 ?
Is that some sort of left-over code from previous fixes? Have I found a bug?

ohhh yes, we used to pass options.db into @hoodie/server, but now we pass in a options.PouchDB instead. You totally found a bug, we must have missed that :)

Worry no more. My code for  #668 fixes this error too.

it would be great if you could send a separate PR for this bug. Smaller PRs are much easier for others to review and merge. But don’t worry this time, I think we’ll be fine :) just in general, small PRs always work better

Then I will do so! 😄


⚠ SkipTheCommericals has degraded performance

In 26ad479, SkipTheCommericals ($STC) experienced degraded performance:

HTTP code: 200
Response time: 9812 ms

Resolved: SkipTheCommericals performance has improved in d059635.


Extracting error

Hi,
I found this package when I was having issue to do a cross-platform extracting for my package test data.
I assume this package should be able to untar a file compressed by gzip. I have a sample data file and was trying to unzip it with
using Tar
Tar.extract("bulk_vlsv.tar")

but I got
ERROR: invalid octal digit: '\n'
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] read_header_int(::SubArray{UInt8,1,Array{UInt8,1},Tuple{UnitRange{Int64}},true}, ::Int64, ::Int64) at /home/hongyang/.julia/packages/Tar/DQaSa/src/extract.jl:534
 [3] read_standard_header(::IOStream; buf::Array{UInt8,1}, tee::Base.DevNull) at /home/hongyang/.julia/packages/Tar/DQaSa/src/extract.jl:489
 [4] #read_header#47 at /home/hongyang/.julia/packages/Tar/DQaSa/src/extract.jl:370 [inlined]
 [5] read_tarball(::Tar.var"#25#27"{Array{UInt8,1},Bool,IOStream,String}, ::Tar.var"#1#2", ::IOStream; buf::Array{UInt8,1}, skeleton::Base.DevNull) at /home/hongyang/.julia/packages/Tar/DQaSa/src/extract.jl:331
 [6] extract_tarball(::Function, ::IOStream, ::String; buf::Array{UInt8,1}, skeleton::Base.DevNull, copy_symlinks::Bool) at /home/hongyang/.julia/packages/Tar/DQaSa/src/extract.jl:57
 [7] (::Tar.var"#76#79"{String,IOStream,Tar.var"#1#2"})(::Base.DevNull) at /home/hongyang/.julia/packages/Tar/DQaSa/src/Tar.jl:201
 [8] arg_write(::Tar.var"#76#79"{String,IOStream,Tar.var"#1#2"}, ::Base.DevNull) at /home/hongyang/.julia/packages/ArgTools/4vlk9/src/ArgTools.jl:94
 [9] (::Tar.var"#75#78"{IOStream,Tar.var"#1#2"})(::String) at /home/hongyang/.julia/packages/Tar/DQaSa/src/Tar.jl:200
 [10] arg_mkdir(::Tar.var"#75#78"{IOStream,Tar.var"#1#2"}, ::Nothing) at /home/hongyang/.julia/packages/ArgTools/4vlk9/src/ArgTools.jl:145
 [11] #74 at /home/hongyang/.julia/packages/Tar/DQaSa/src/Tar.jl:196 [inlined]
 [12] open(::Tar.var"#74#77"{Tar.var"#1#2",Nothing}, ::String; kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at ./io.jl:325
 [13] open(::Function, ::String) at ./io.jl:323
 [14] arg_read at /home/hongyang/.julia/packages/ArgTools/4vlk9/src/ArgTools.jl:42 [inlined]
 [15] extract(::Function, ::String, ::Nothing; skeleton::Nothing, copy_symlinks::Nothing) at /home/hongyang/.julia/packages/Tar/DQaSa/src/Tar.jl:195
 [16] #extract#80 at /home/hongyang/.julia/packages/Tar/DQaSa/src/Tar.jl:217 [inlined]
 [17] extract at /home/hongyang/.julia/packages/Tar/DQaSa/src/Tar.jl:217 [inlined] (repeats 2 times)
 [18] top-level scope at REPL[3]:1

Any idea what's going on?
Attached test file: test file

I assume this package should be able to untar a file compressed by gzip

Wrong assumption

It is typical to compress tarballs when saving of transferring them. In the UNIX
tradition of doing one thing and doing it well, the Tar package does not do
any kind of compression and instead makes it easy to compose it's API with
external compression tools. The simplest way to read a compressed archive is to
use a command-line tool to decompress it. For example:
Tar.list(`gzcat $tarball`)
Tar.extract(`gzcat $tarball`)

I assume this package should be able to untar a file compressed by gzip

Wrong assumption

It is typical to compress tarballs when saving of transferring them. In the UNIX
tradition of doing one thing and doing it well, the Tar package does not do
any kind of compression and instead makes it easy to compose it's API with
external compression tools. The simplest way to read a compressed archive is to
use a command-line tool to decompress it. For example:
Tar.list(`gzcat $tarball`)
Tar.extract(`gzcat $tarball`)

Sorry I am not familiar at all with the concepts here. So what should I do to fulfill my goal then?
On Linux/Mac, using the command line works well:
run(`tar -zxvf bulk_vlsv.tar`)

But how should I do this on Windows?

Sorry I am not familiar at all with the concepts here. So what should I do to fulfill my goal then?
On Linux/Mac, using the command line works well:
run(`tar -zxvf bulk_vlsv.tar`)

But how should I do this on Windows?

If you want to use external commands (like tar), you need to have them installed.
If you want to do everything with Julia, you can use for example CodecZlib.jl together with Tar.jl:
julia> using CodecZlib, Tar

julia> open("bulk_vlsv.tar") do io
           Tar.extract(GzipDecompressorStream(io))
       end
"/tmp/jl_mf7624"

If you want to use external commands (like tar), you need to have them installed.
If you want to do everything with Julia, you can use for example CodecZlib.jl together with Tar.jl:
julia> using CodecZlib, Tar

julia> open("bulk_vlsv.tar") do io
           Tar.extract(GzipDecompressorStream(io))
       end
"/tmp/jl_mf7624"

Thanks!

Thanks!


Build improvements

Get rid of the runner plugin project, replace it with single task within scripted test build
runCli task command now fails if process fails allowing for better testing in scritped test
Make nativeVersion a setting key, use it to configure version in the CI
Use normalized name for assembly jar name as setting cliAssemblyJarName to let use it scriptedLaunchOpts and in assembly tasks.
Move temporal override files to src/patch directory
Move scripted tests to src/sbt-test

Rebased manually and merged. Sorry for the delays (and trouble with force-pushing), I did not notice this PR before


[FEATURE] (background change): changed bg from #000000 to #121212 in dark mode

Fixes Issue #8847

Changed BG 👇:

Changes proposed

added dark-2 color in tailwind config file which represents #121212
Changed the dark color or black color to dark-2

Check List (Check all the applicable boxes)

[x] My code follows the code style of this project.
[x] My change requires changes to the documentation.
[ ] I have updated the documentation accordingly.
[ ] All new and existing tests passed.
[x] This PR does not contain plagiarized content.
[x] The title of my pull request is a short description of the requested changes.

Screenshots

Note to reviewers

Sorry!! Merge conflicts occured I would like to correct


Change SQLite example to execute_batch

https://github.com/rust-lang-nursery/rust-cookbook/pull/512#issuecomment-453835027

The pull request has been merged. Shouldn't this be closed?


Designs for Add & Save Park Name

This ticket is to create detailed designs for adding and saving a park name.
AC:

figma designs are created with relevant notes and shared with team (design number in figma can be added to #29 )

Notes:

this ticket uses wireframes and enhances them to have more detailed/finalized designs

Backlog Refinement: Wireframes are 85% complete - designs should be relatively simple.

Decision to put generator and add a park on hold until we have more information on user needs for other types of objects (e.g., campsite, campground). Since we have no immediate need for Admin users to be able to add new parks (b/c of the slow pace of park creation) we can afford to hold on this for now.
If a park object needs to be added before this is developed, devs can add the object and admin users will be able to edit it.


MH-13285, Display workflow description

As described in MH-13285 we wanted to display the workflow description when selecting a workflow.
Since a description could be a very long text and will likely be ignored by an admin who is familiar with the workflow, the description it is contained in a div that becomes "expandable"/"collapsible" when it overflows the defined max-height.
I created a directive called "collapsible-box" that takes two parameters:

input: displayed text
maxheight: maximum height in px

The directive reacts to window resize (in theory... the two modals in which this directive is used do not resize)
An empty line in the input will be formatted to a line break, while a single line break will be ignored. (Single line breaks are keeping the xml clean and compact and shouldn't be displayed).
The max-height in this implementation is 45px and allows to display two lines before becoming overflowed.
Example 1: Workflow with fitting workflow description:

Example 2: Workflow with fitting workflow description:

Example 3: Workflow with overflowing description (collapsed):

Example 4: Workflow with overflowing description (expanded):

Example 5: No description (collapsible-box becomes hidden):

@EdmundoDelGusto This looks good, can you add a description to the default workflow?  Only the test workflow has one currently.

Hi, @EdmundoDelGusto is a very good enhancement, I downloaded the PR and tried, but I can't add a description to another workflow.
Correct me if I'm wrong but this should be get the text between the  labels?

Yes, it should show this:
https://github.com/opencast/opencast/blob/5fbd04d6a8ac722f999c98427c5d723d69205d64/etc/workflows/fast.xml#L11-L15

I'm going to be away until the 20th of March, if the minor changes get resolved here someone else can merge it.  Or it can wait until I get back :)

Reminder: This is a feature which means it needs to be done soon to get into 7.x!

@gregorydlogan:

rebased onto develop
squashed commits and added proper description
added description for the default workflow

That should make this hopefully ready to be merged


tests: deprecate 13-fd-open.sh

Corresponding Ginkgo test test/runtime/chaos.go in which this has been migrated over has already been marked as validated.
Signed-off by: Ian Vernon<EMAIL_ADDRESS>

test-me-please


Clarify that the caption would also be used as the image title

Description (required)
The app uses the fist caption as the file title. This should also
be communicated to the user via the info box as they would not be
aware of it otherwise.
Related issue: #3713
Tests performed (required)
Tested prodDebug on Samsung SM-J111F with API level 22.
Screenshots

This looks good to me, but should we not keep the "(Limit to 255 characters)" phrase? I feel like we can mention both.

This looks good to me, but should we not keep the "(Limit to 255 characters)" phrase? I feel like we can mention both.

I removed it as it is already mentioned in the hint for that text input. For easy reference , this is how the text field looks like:

So, I thought its redundant to mention it in the info box, too.

Ah right, makes sense, thanks. :)


Elevation of AppBar

There is no elevation propritie in AppBar

Will add that shortly. Are you missing anything else in AppBar control?

Update Flet to 0.1.38. There is a new elevation property in AppBar control.
To make it work though you have to switch app theme to Material 2 (default is Material 3).
The example of AppBar with a shadow:
import flet
from flet import AppBar, Icon, Page, Text, colors, icons, theme

def main(page: Page):
    page.theme = theme.Theme(color_scheme_seed=colors.BLUE, use_material3=False)
    page.appbar = AppBar(
        leading=Icon(icons.PALETTE),
        leading_width=40,
        title=Text("AppBar Example"),
        elevation=10,
    )
    page.add(Text("Body!"))

flet.app(target=main)

Good Job

To make it work though you have to switch app theme to Material 2 (default is Material 3).

If I may ask, why is it not possible with M3 please?

It's like AppBar is made in M3 - elevation property doesn't have any effect.


Margins disappear after save

Hi, I'm on emacs GNU Emacs 25.2.1, after saving the buffer the text jumps from the center to the left. Edits and changes are keeping them to the left, until I press M-x; as soon as pressed, everything goes back to the center until the next save.
I don't know how to debug it,
Thanks, Nicolò

Hi, I suspect this is the result of some other package using the margins. One possibe suspect is linum-mode. If that is the case, try using nlinum-mode instead, it should behave better. If not, you'll need to figure out which other package is using the margins. Then I might be able to see if there's a way to make writeroom-mode cooperate with it. (Though chances are slim, I'm afraid.)

I tought the same, but linum mode is not on, and I tried disabling git-gutter and it was the same. Don't know of other packages I may have using the margins, I think I should enable one by one and figure it out

It is, indeed, git gutter.
Could you help me to solve it (noob elisp-hacker warning)?
I can check if git-gutter is enabled reading the var: git-gutter:enabled. I can toggle it's state with git-gutter-mode. I want to call this command only if git-gutter:enabled is t, and re-call it after writeroom-mode exits (but only if it was enabled).
I don't know how to wait for it to exit (while I think I could simply add a hook to 'writeroom-mode-hook for when it's activated, right?)
thanks, Nicolò

Hi @nico202 I'm just getting started with this package and indeed I have the same issue while git gutter is active, how did you solved it in the end?

Hi, I'm sorry but I've not solved it. I'm using writeroom very few times, so when I do I just manually disable git gutter.

I'm afraid there simply is no solution. Both writeroom-mode (or in fact its dependency visual-fill-column-mode) and git-gutter use the margins, and unfortunately, Emacs does not provide a mechanism to allow several packages to use the margins simultaneously without interfering with each other.
There has been some discussion on emacs-devel about whether it is desirable to add such functionality and what it would look like, but this hasn't resulted in anything concrete (yet).
In this particular case, you may try git-gutter-fringe, which is an alternative to git-gutter by the same package author which uses the fringes instead of the margins. Perhaps that works for you.

can you guys hear that?... my heart is cracking 💔
Thanks @joostkremers I'll try the git-gutter-fringe but if not I'll try to hack a work-round enabling and disabling git-gutter as @nico202 suggested.

Well I tried git-gutter-fringe but I had the same issue, I don't know why it happens if it uses the fringe.
For anyone interested, the best setup I could come up with is to use centered-window-mode + hide-mode-line, using it with git-gutter activated works fine and dandy.

I just now did a quick test with git-gutter+ and git-gutter-fringe+, and git-gutter-fringe+ seems to work well with writeroom-mode. At least I can make some changes and save the file without the margin disappearing.
I haven't tested for git-gutter-fringe (i.e., without the plus). Are you sure you did (require 'git-gutter-fringe) before opening a git-controlled file?


unwanted blank space (padding) appears at the top of webview

some devices have this problem, and the height of the space seems to be equal to the height of the status bar.
is there any solution?

@Lemonreds did you find where this padding was coming from?

@Lemonreds did you find where this padding was coming from?

still not

Any updates on this?
Even I am facing this issue. Apparently, it is not only the top, but the bottom as well

Sorry, it hasn't been resolved so far and I've given up


Create endpoint to get goals by project id

Currently, trpc.project.getDeepInfo endpoint returns goals for current and children projects.
We have to filter it on the client side.
It would be nice to have a separate endpoint to solve this problem.

remove filter https://github.com/taskany-inc/issues/blob/main/src/components/ProjectListItemConnected.tsx#L52
re


Warning: findDOMNode is deprecated in StrictMode

Hello,
I'm getting this Warning when using StricMode: https://reactjs.org/docs/strict-mode.html
webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:88 Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of PageTransition which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://fb.me/react-strict-mode-find-node
    in div (created by PageTransition)
    in Transition (created by PageTransition)
    in PageTransition (at _app.tsx:26)

Its 2022 and am still getting the error
Next v12
NextConfig : reactStrictMode: true


Failed to export detailed results - This card action is not supported by CC

Hi,
When I click on "export detailed results" in a sent message, everything seems to be ok and notification was then sent to Teams (in web browser) individually to me.
When I click on the allow button to accept communicator to accept permission to upload the zip file to my OneDrive, I get the message below. This card action is not supported by CC

The communicator is version 5.3
I have followed instructions in other issue threads. e.g. https://github.com/OfficeDev/microsoft-teams-apps-company-communicator/issues/1001 & https://github.com/OfficeDev/microsoft-teams-apps-company-communicator/issues/1001 and I concluded that:

I am not the global Administrator in Azure!
AuthorAppPassword was good matching the same password for communicator app registration client secret (expiring in 1 year)
 as in the communicator vault

The 2 function apps (xxfn-prep & xxfn-data) configurations AuthorAppPassword matches as well.

It is not sustainable to manually download the zip file from Azure storage account by Administrator on behalf of the end-user with this issue for band aid fix.

Can you please help me?
Thanks.
David

Hi @David-Liong ,
Thanks for raising the query.  This export issue and 4th sending option(Permission need. Ask IT admin to enable this option for you) is caused by the sync to latest version only. We request you to close any  one of the issues -#1117 or #1116  as they are duplicate to each other.

Upon sync it will connect to the latest version of Company Communicator that is what happened in your case. We recommend you to disconnect the existing repository main and connect to particular version i.e., v4.x

Do this for all 3-function apps, app service.

Once the status is successful in the logs section of each resource, please open the CC application in browser to avoid any cache issue.

Hi @gsv022
I did not know that sync by default it will connect to the latest version of Company Communicator, unless you change the location as it was not mention in wiki.
So are you able to update the wiki of v3 to v4 upgrade doco at https://github.com/OfficeDev/microsoft-teams-apps-company-communicator/wiki/v4-migration-guide#4-deploy-to-your-azure-subscription of step 11 in section 4 to update the UI screenshot that BEFORE clicking on the sync button ensure that the repository is pointing to https://github.com/OfficeDev/microsoft-teams-apps-company-communicator/tree/v4.x
I will close this issue ticket 1117
However, before I close this ticket, if caching is the issue, can I instead delete the company chat bot in Teams, uninstall company for user app from Teams Admin and re-install the company for user app again?
Thanks.

Hi @David-Liong ,
The v5.x is having another app registration called graph app registration without that 4th sending option or export functionality won't work. If v4.x is the target, please go with above mentioned approach i.e., connecting to v4.x. And re-installing the app won't do the needful

Closing this issue as this is a duplicate to #1116. We will follow up in 1116 issue from now on.

Hi @gsv022
The intent was to upgrade to v4.x as being the temporary target from v3.x. Then ultimately upgrade from v4.x to v5.x
OK I will go with above mentioned approach i.e., sync to v4.x main branch repository. I will close this ticket but keep the other ticket https://github.com/OfficeDev/microsoft-teams-apps-company-communicator/issues/1116 open


[multistage][POC] Move mailbox instance from global map to request context

This PR moves sending mailbox map from global map (MailboxService) to per request context (PlanRequestContext).
The old design has two issues:

Memory leak of the instance because when request finishes, the sending mailbox doesn't need to be alive anymore (this is also true for receiving mailbox)
High contention for the concurrent hash map.

The new implementation moves the instance and exchange to per request context.

This fixes the memory leak and contention issue for the old design.
This opens the door for better resource cleaning and error handling in general.

Following PRs would be:

proper close mailbox channel and propagate error when there is an error
clean up the leak for receiving mailbox (same issue)
Have a better abstraction for request context. (should be runtime context or opchain context)

I haven't figured out a good way to test this. Will follow up with a test.

Thanks @61yao! I think you've identified the right problem to solve, but I think the abstractions in this PR aren't what we need.
From a code ownership perspective, I don't think it makes sense for an operator chain to "own" the underlying physical resources it uses to send/receive data. That'll make it much more difficult in the future to share those resources, and it makes management of those resources happen via various callbacks/asynchronous actions - that in turn makes it harder to debug and harder to reason about.
Instead, I think the current abstraction is pretty good (there's a centralized MailboxService that maintains the mailboxes and there's only one of them for the lifetime of a Pinot server). The problem you've identified is that we need some way to let that centralized service clean up resources that don't exist. I think there might be various different triggers to trigger that:

(as you've identified) an operator finished (either successfully or in error)
there might be some kind of timeouts
there might be some kind of admin operation that forces it to clean up those mailboxes

The design here (decentralizing the mailbox ownership) would make 2/3 much more difficult - and it leaks information into places that don't need that information.
As an aside, I don't think contention for the concurrent hashmap is a problem - so long as there isn't key contention (which there should almost never be) it will perform extremely fast (and access to it is almost certainly not a bottleneck compared to all the other things a query needs to do).

Thanks @61yao! I think you've identified the right problem to solve, but I think the abstractions in this PR aren't what we need.
From a code ownership perspective, I don't think it makes sense for an operator chain to "own" the underlying physical resources it uses to send/receive data. That'll make it much more difficult in the future to share those resources, and it makes management of those resources happen via various callbacks/asynchronous actions - that in turn makes it harder to debug and harder to reason about.
Instead, I think the current abstraction is pretty good (there's a centralized MailboxService that maintains the mailboxes and there's only one of them for the lifetime of a Pinot server). The problem you've identified is that we need some way to let that centralized service clean up resources that don't exist. I think there might be various different triggers to trigger that:

(as you've identified) an operator finished (either successfully or in error)
there might be some kind of timeouts
there might be some kind of admin operation that forces it to clean up those mailboxes

The design here (decentralizing the mailbox ownership) would make 2/3 much more difficult - and it leaks information into places that don't need that information.
As an aside, I don't think contention for the concurrent hashmap is a problem - so long as there isn't key contention (which there should almost never be) it will perform extremely fast (and access to it is almost certainly not a bottleneck compared to all the other things a query needs to do).

I agree centralized resource should be in central place. but resources created per request should clean up per request instead of leaving it to centralized request management.
For example, shared channel between servers is shared and should be managed globally.
However, streaming channel, instance or request opened by per request should be cleaned up per request rather than leaving it in central map especially sending mailbox.
I agree it should not leave inside opchain. but I haven't found a good place to hold the request context yet.
It doesn't make sense to put per request resource in the central place and clean it up later. It makes it so much easier to leak.
Ideally, timeout and error should receive the same exit point where we clean up per request resource.
The actual physical resource say the data block can live globally but the instance of mailbox and the streaming channel should still be managed per resource purpose.

Discussed with @agavra offline. We will put more thoughts into this and figure out the right next step

I took a look again about the fairness scheduling. This PR has nothing to do with that because it only deals with sending mailbox instead of receiving. I agree receiving side needs more thoughts.
We want to have different connection for different request due to isolation. having one single connection between servers doesn't seem to be a good idea. If one request crashes or has error on the channel, all following request will fail.

This PR has too many merge conflicts now.  I'll just write a new one


Infinite redirection loop when logging in

I'm trying to configure this bundle, but I'm having the problem that when I try to login it ends up in an infinite redirection loop. I have my own Id Provider and I registered this installation as an SP with AssertionConsumerService as /saml/login_check and the SingleLogoutService as /logout.
Or there is a way to set up this bundle as my own IdP so that other service can authenticate against it.
Thanks for your help

We have the same issue and I have debugged it in my own case. What happens is that the authentication is actually successful but when the SamlSpToken is stored in the tokenstorage (which is produced when authenticating with a SamlSpRequestToken) any subsequent request authorizations in the AuthenticationProviderManagers cannot find a provider that supports a SamlSpToken. The LightSamlSpAuthenticationProvider only supports only SamlSpRequestTokens.
@gabyquiles did you manage to find a fix or workaround?

Seem to be having the same issue.
When I try to authenticate as a user that already exists within my Symfony project, the SAML auth and login works as intended.  If I attempt to access a secured path as a first-time user of the project, the user is correctly created in the database but there's a redirect loop between the secured path and /saml/login_check.
I look at my env log and see the following:
[2017-03-01 22:52:17] security.INFO: An AuthenticationException was thrown; redirecting to authentication entry point. {"exception":"[object] (Symfony\Component\Security\Core\Exception\ProviderNotFoundException(code: 0): No Authentication Provider found for token of class "LightSaml\SpBundle\Security\Authentication\Token\SamlSpToken". at C:\MyProject\var\cache\dev\classes.php:4633)"} []
Does anyone have any pointers on how I can fix this?

@superhaggis
I eventually applied the following patch.  Let me know if it works for you.

diff -r abcd086bd6d8 -r fc4c44f5b626 vendor/lightsaml/sp-bundle/src/LightSaml/SpBundle/Security/Authentication/Provider/LightsSamlSpAuthenticationProvider.php
--- a/vendor/lightsaml/sp-bundle/src/LightSaml/SpBundle/Security/Authentication/Provider/LightsSamlSpAuthenticationProvider.php	Tue Jan 03 13:05:39 2017 +0100
+++ b/vendor/lightsaml/sp-bundle/src/LightSaml/SpBundle/Security/Authentication/Provider/LightsSamlSpAuthenticationProvider.php	Wed Jan 04 00:44:10 2017 +0100
@@ -123,9 +123,12 @@
             $this->userChecker->checkPostAuth($user);
         }

-        $attributes = $this->getAttributes($token);
+        if($token instanceof SamlSpResponseToken)
+        	$attributes = $this->getAttributes($token);
+        else
+        	$attributes = $token->getAttributes();

-        if ($this->tokenFactory) {
+        if ($this->tokenFactory && $token instanceof SamlSpResponseToken) {
             $result = $this->tokenFactory->create(
                 $this->providerKey,
                 $attributes,
@@ -153,7 +156,7 @@
      */
     public function supports(TokenInterface $token)
     {
-        return $token instanceof SamlSpResponseToken;
+        return $token instanceof SamlSpToken;
     }

     /**
@@ -163,15 +166,19 @@
      *
      * @throws UsernameNotFoundException
      */
-    private function loadUser(SamlSpResponseToken $token)
+    private function loadUser(SamlSpToken $token)
     {
-        if (null === $this->usernameMapper || null === $this->userProvider) {
-            throw new UsernameNotFoundException();
-        }
+    	if($token instanceof SamlSpResponseToken) {
+			if (null === $this->usernameMapper || null === $this->userProvider) {
+				throw new UsernameNotFoundException();
+			}

-        $username = $this->usernameMapper->getUsername($token->getResponse());
+			$username = $this->usernameMapper->getUsername($token->getResponse());

-        $user = $this->userProvider->loadUserByUsername($username);
+			$user = $this->userProvider->loadUserByUsername($username);
+		} else {
+    		$user = $token->getUser();
+		}

         if (false === $user instanceof UserInterface) {
             throw new \LogicException('User provider must return instance of UserInterface');

SUMMARY
I'm unable to reproduce error ProviderNotFoundException(code: 0): No Authentication Provider found for token of class "LightSaml\SpBundle\Security\Authentication\Token\SamlSpToken", no matter what I try. Which Symfony version are you getting that on? How do you get it? Paste whole log so I can see what's before that. Please, provide more description on how I can reproduce it.
I have reproduced following loop: secured_page -> login_path -> IDP -> check_path -> login_path -> IDP -> check_path -> login_path ...
In summary, I found that when you have all of these:

no user found (UserProvider)
no user created (UserCreator)
empty failure_path (Symfony's security firewall option)
not set force defaulting to false (LightSAML's security firewall option)

you will get a that loop with IDP. If you change any single one of those you will not get a loop.
DETAILS
With user creator service set as explained in https://www.lightsaml.com/SP-Bundle/Getting-started/ when user in not found by user provider (UsernameNotFoundException thrown), and when user creator creates the user and saves it, it's working as expected - that new user is logged in.
If I try w/out user creator and with force option false (in app/config/security.yml commented line firewalls.main.light_saml_sp.user_creator) then LightsSamlSpAuthenticationProvider throws AuthenticationException which evetually is handled by Symfony's DefaultAuthenticationFailureHandler::onAuthenticationFailure which creates RedirectResponse with /saml/login path since it find no value for failure_path option, and defaults to login_path option.
When I try w/out user creator, but with force option true, LightsSamlSpAuthenticationProvider creates token w/out roles, and if trying to open secured route (one requiring ROLE_USER, or ROLE_ADMIN for example) I get normal 403 Access denied, w/out any redirection loop.
If I set failure_path option, once lightsmal auth proviuder throws auth exception, Symfony will redirect to that given path.
If you find any case I didn't cover, please provide full description on how I can reproduce it, or describe the debug trace.
Possible resolutions
I can change that and avoid loop in misconfiguration, either by

throwing some other exception type that Symfony will not handle (and make RedirectResponse to login_path), or

setting force option default value to true so token w/out roles will be created

Any preferences or some other idea?

@meDavid your fix seems fine to make auth provider support both SamlSpResponseToken and SamlSpToken, but I don't understand how can it be called to authenticate or checked to support SamlSpToken. Can you describe the case when you get that? Once SamlSpToken je created it's always authenticated and symfony should not call auth providers anymore to authenticate it.

Did few things which hopefully will prevent issues reproted here, like unsupported SamlSpToken and IDP redirect loop. Released in v1.1.0. Closing the issue. If anything similar noticed, feel free to submit an issue, but please give details on how to reproduce.


Support for multi-GPU configuration

On a node with multiple GPUs allocated, I get ValueError: Memory growth cannot differ between GPU devices. This can be bypassed by allocating only a single GPU, but a solution for specifying device ID would be useful.

can you try running two instances of careless simultaneously with the --disable-memory-growth flag set, and report back here?
thanks.

Setting --disable-memory-growth works. Alternatively, CUDA_VISIBLE_DEVICES=0 careless ... can be used to explicitly run on device 0.

@kiwhite is of the opinion that careless should accept a command line parameter for GPU device number (int).

the following snippet may be helpful as a workaround:
    gpus = tf.config.experimental.list_physical_devices('GPU')
    assert gpus
    if len(gpus) > 1:
        print('Found multiple GPUs:\n{}\nRunning on device 0.'.format(gpus))
        tf.config.experimental.set_visible_devices(gpus[0], 'GPU')

@kiwhite -- should i disable memory growth by default? i can flip the parameter to --enable-memory-growth

i think this is resolved in the experimental branch by 4fe8420c38014e314c93b21ba988f0d62b7ca36c which adds a --gpu-id command line argument. does @kiwhite agree?

@kmdalton looks like it's working, I think that did it!

okay -- i will close this issue then. thanks.


Downstream builds are updating with correct project name

This a great tool.
I have setup a series of downstream projects, A -> B -> C -> D.
All three projects are correctly created with a branch, A', B', C', and D', except that they are connected like so,
A' -> B' -> C -> D
I'm using the Parameterized Trigger Plugin, with Trigger/call builds on other projects during execution and post build, primarily to pass in environmental variables between jobs.
Thank you

I closed each one by one, and ran automation again. It may have been an initial template problem...


Ran cargo fmt

I saw this as an issue, I am new to Rust so thought it would be a quick easy thing to help with.

It is! Don't know why, but code has never been formatted (new contributor here too).
I have opened #12 to keep track of code quality. Do you want to work on it? It would require you to remove warnings from cargo check and cargo clippy.
I am waiting for @Tko1 approbation to merge your PR, but I am quite sure it will be accepted!


ARROW-11932: [C++] Implement ArrayBuilder::AppendScalar

This repurposes the code from ScalarVectorToArray. This doesn't support dictionary scalars.

Hmm, it looks like the implementation could be more optimized. When appending multiple scalars (or multiple time the same scalars), the required space could be reserved. Also, at least for primitive types, I would expect appending multiple scalars to be much more streamlined than this.
(it looks like such optimizations could be crafted more easily if AppendScalar was a bunch of virtual methods?)
Perhaps create a TODO JIRA for those optimizations, unless you would like to work on them on this PR.

I changed it to at least call Reserve() since that's simple. I filed ARROW-13197 and also noted the dictionary scalar support there.

Now fixed to not require allocations/not use a vector as Ben suggested.

This got included in #10511.


Issue with Edit Profile UI Test

Please look into this asap.

pushed bug fix to and created pull request


Proposal for default permissions with scratch bucket

Background and proposal
Background
We use scratch buckets as temporary places to store cloud data to facilitate various data operations with intermediate representations. These buckets are generally cleared after a few days, since they're not meant for long-term storage.
Currently, users have the ability to read and write to the scratch bucket. However, they don't have the permission to delete from the scratch bucket.
Proposed solution
Our default should be to give users read, write, and delete access. We should document that there are some risks associated with this, and if a community representative wants to restrict delete access, they can request it to happen.
Implementation guide and constraints
Here's some sample language for a policy / guidelines to use for our current practices, including the suggestion that we give delete privileges to users by default.
By default, your community's scratch bucket will have read/write/delete permissions for any users on the hub. **Do not store sensitive data in scratch** if you don't want others to be able to view or edit it. If you wish to prevent users from manually deleting files across the scratch bucket, it is possible to enable this, but may result in errors for users that (intentionally or not) attempt to over-write files in scratch.

Updates and ongoing work
No response

My internal ❤  is screaming for option 2 😜  given that admin privileges seem, maybe, too much power? 🤔

If admins privileges come with extra permissions, then I agree with @damianavila . Can we document a list of those extra permissions? We'll need to share this with community reps to help them make this decision anyway

I would love to create a little Markdown table of what the differences between Creator+Viewer and just Admin are, but I feel I have a lot on my plate right now in terms of big picture reasoning about things. Very happy for someone else who has some extra brain cycles to take on that work.
I think it would involve expanding the wildcard at the end of storage.objects and storage.multipartUploads and seeing if there's anything destructive that is included in Admin but not Creator+Viewer.


Foreword - missing text (transferred from issue sheet - originally posted 2020-11-10 by Xu)

Foreword - GE -A list of all parts in the ISO 5206 series cannot be found on the ISO website. It must be clear now the other parts so that no gap or overlap exists	Refer to EN 16157-6

Define the parts of the Series in ISO 5206 to clarify intent.   Why refer to EN 16157-1? Discuss with DT


Add a link to help documentation.

Add a link to the dashboard pages to the Google help documentation:
https://docs.google.com/document/d/1Av0SJQGsMf-EmChLpygUi5-a603w6D6zROT7p48mwkI/edit?usp=sharing

From the home page, link to the first page of the help doc: https://docs.google.com/document/d/1Av0SJQGsMf-EmChLpygUi5-a603w6D6zROT7p48mwkI/edit?usp=sharing
From the What Students Are Reading page, link to that section in the help: https://docs.google.com/document/d/1Av0SJQGsMf-EmChLpygUi5-a603w6D6zROT7p48mwkI/edit#heading=h.ei0djpnrbuw
From the Assignments Planning Tool, link to that section in the help: https://docs.google.com/document/d/1Av0SJQGsMf-EmChLpygUi5-a603w6D6zROT7p48mwkI/edit#bookmark=id.j326p1brruc1
From the Grade Distribution page, link to that section in the help: https://docs.google.com/document/d/1Av0SJQGsMf-EmChLpygUi5-a603w6D6zROT7p48mwkI/edit#bookmark=id.9qq8fcgci5m7

I'm not sure if we need context sensitive help currently. I also wouldn't want these help documents to be links to Google documents.
Minimally the documents we link should be published documents (File->Publish to the Web)
I think it would be better if all of these were on a Google Sites (sites.google.com) and organized together there rather than individual files here.
If you created a new "Google Site" and had these pages with these titles and URL's on them it would be nicer.

Is this more like what you're thinking with a Google site?  https://sites.google.com/umich.edu/student-dashboard-help/home

1000% yes! ;)

Done


LIBUSB_TRANSFER_ERROR when device is unplugged

Hi,
i would like to use the startPoll() feature, but if the device is unplugged when polling is enable, then the app will crash.
I have no change to stopPoll() on the detach event, because the unhandled error came before the event.
Here is the error details, is this fixable ?
`events.js:167
throw er; // Unhandled 'error' event
^
Error: LIBUSB_TRANSFER_ERROR
Emitted 'error' event at:
at Transfer.transferDone ([PATH]/node_modules/usb/usb.js:330:9)`
Thanks 😄

It's only an unhandled error because the app isn't handling it. Add a listener for the error event on the endpoint.


Fail to find files on windows 11 powershell without config file

A configuration file seems to be needed before it will check anything. I would expect it to recursively check from the specified dir by default:
❯ standard-clj check .\src\
standard-clj check v0.13.0

No files were passed to the "check" command. Please pass a filename, directory, or --include glob pattern.

Works if I explicitly specify a file
❯ standard-clj check .\src\cube_puzzle\core.cljs
standard-clj check v0.13.0

✗ \src\cube_puzzle\core.cljs [9.83ms]

0 files formatted with Standard Clojure Style
1 file require formatting
Checked 1 file. [28.78ms]

It also works if I create a .standard-clj.edn with {:include ["src//*.cljs" "src//*.clj"]}

Thank you for the report! This is definitely a bug with the CLI tooling. I do not have access to a Windows machine for testing, but I suspect this is probably something simple that I may be able to figure out.

Fixed with commit #db857ff4

I just published v0.14.0 which hopefully contains a fix for this, although I did not test it on Windows :grimacing:
@milelo - Are you able to confirm if this fixes the issue?

This is now fixed in the latest version. Thanks.


Parentheses in URL treated as trailing punctuation

The current version of the Swift subtext parser treats parentheses (()) at the end of a URL as trailing punctuation and does not include those chars in the corresponding Link object. This means that URLs like https://en.wikipedia.org/wiki/Irma_Vep_(miniseries) are not parsed and rendered correctly (if followed by whitespace) and are not opened when tapping.
Regardless of what URL specs allow and/or recommend, I suggest taking a pragmatic approach to URL parsing here, and copy/pasting a Wikipedia URL from a browser is a valid use case IMO.
Related issues:
https://github.com/subconsciousnetwork/subconscious/issues/56
https://github.com/subconsciousnetwork/subtext/issues/25
See also: https://webmasters.stackexchange.com/a/78114

I like the idea of supporting several reasonable prose forms. I guess this would make Subconscious/Subtext better and more user-friendly than a lot of existing apps.
Out of experience, I would not write something like Some text (https://example.com) some more text anymore, because I have seen to often that the URL was resolved to https://example.com), but I understand that, objectively speaking, it is a common thing to do and should be handled gracefully.
BTW, GitHub's parser works as expected, as all of the following links are parsed correctly:

(https://example.com)
https://example.com)
https://en.wikipedia.org/wiki/Irma_Vep_(miniseries)
(https://en.wikipedia.org/wiki/Irma_Vep_(miniseries))


Initialize quit chan of simscreen so that PollEvent returns nil when Fini called

This pull request fixes SimulationScreen to ensure that PollEvent returns nil when simscreen#Fini is called.

Thank you!


The pygls.lsp.types module no longer exists

In the latest pygls release, the pygls.lsp.types module no longer exists, which results to a build failure:
ModuleNotFoundError: No module named 'pygls.lsp.types'

I'm using sphinx-needs v1.2.0.

@ivanayov: Thanks for reporting this issue, I have noticed this, too. Background: sphinx-needs is not yet compatible with pygls 1.0, but does not pin the version dependency to pygls<1.0.
@danwos: This is an issue if people upgrade esbonio to 0.16.0, which depends on pygls 1.0.
I see two options:
a) mini release which pins the version dependency of pygls
b) migrating the pygls.lsp usage in esbonio.py

Thanks for the reporting.
A quick fix on your side would be to install esbonio < 0.16.
However, we are working on a fix, which allows supporting older and newer esbonio versions: #868.
We don't want to pin the version or support only newer versions in our code, as I see scenarios, where older versions may still be needed in the currently used Python env.
For instance: The Restructured-VsCode-Extension may force us to use the older esbonio version.
I hope we can merge the PR today and create a new release.

This got fixed by #868.
I will create a new release shortly.
Thanks all for the help :+1:


[Admin] Publish

Docs Build status updates of commit a1587a0:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit a1587a0:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/outlook/outlook-on-send-addins.md
:bulb:Suggestion
View
Details

docs/develop/itp-and-third-party-cookies.md
:white_check_mark:Succeeded
View

docs/develop/make-office-add-in-compatible-with-existing-com-add-in.md
:white_check_mark:Succeeded
View

docs/excel/custom-functions-json-autogeneration.md
:white_check_mark:Succeeded
View

docs/excel/custom-functions-web-reqs.md
:white_check_mark:Succeeded
View

docs/excel/make-custom-functions-compatible-with-xll-udf.md
:white_check_mark:Succeeded
View

docs/images/outlook-deactivate-gpo-dialog.png
:white_check_mark:Succeeded
View

docs/reference/manifest/equivalentaddin.md
:white_check_mark:Succeeded
View

docs/reference/manifest/equivalentaddins.md
:white_check_mark:Succeeded
View

docs/reference/manifest/filename.md
:white_check_mark:Succeeded
View

docs/reference/manifest/progid.md
:white_check_mark:Succeeded
View

docs/reference/manifest/type.md
:white_check_mark:Succeeded
View

docs/toc.yml
:white_check_mark:Succeeded
View

docs/outlook/outlook-on-send-addins.md

Line 318, Column 2: [Suggestion-column-header-missing] Column headers are required for tables. Add appropriate header text.

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel