Support of SSO via BoxyHQ layer

We need to support SSO login via BoxyHQ OAuth → SAML proxy. The implementation should lay ground for future SSO provider integration, however at the moment we should be focused on getting BoxyHQ integration working.
Requirements
As a result of this issue, users should be able to config BoxyHQ for self-hosted Jitsu Configurator instances (via env var, or config). If the configuration is provided, the button Continue with SSO should appear under login button.
So far we don't need to create a new user account if auth is successful, but the account doesn't exist
Tech details.
The feature should be configurable via SSO_CONFIG variable which contains JSON:
{
    "provider": "boxyhq",
    "url": "..."
    "tenant": "..."
    "product": "..."
    "client_secret"
}

Also, it should be possible to configure SSO within configurator.yaml keeping the same structure.
Links
[1] - BoxyHQ documentation: https://boxyhq.com/docs/jackson/saml-flow#3-oauth-20-flow

@vklimontovich we already have different providers for authorization.
Example for cloud (configurator.yaml):
auth:
  firebase:
    project_id:
    credentials_file:
  admin_domain:
  admin_users:

I can create new boxyhq auth provider similar to the firebase provider and use it there.


envoy: add go-filter protobuf

Description
Companion to https://github.com/emissary-ingress/emissary/pull/5049
Add protobuf for go filter under api/contrib. Because the go filter is not part of the core envoy protobufs (api/envoy), the Makefiles have been updated to also build select api/contrib protos based on need. You can specify which additional contrib protos to build in _cxx/envoy.mk and it will build only the contrib protos listed in addition to the core envoy protobufs to minimize the total build time for make generate.
Related Issues
List related issues.
Testing
CI
Checklist

[ ] Does my change need to be backported to a previous release?

What backport versions were discussed with the Maintainers in the Issue?

[ ] I made sure to update CHANGELOG.md.
Remember, the CHANGELOG needs to mention:

Any new features
Any changes to our included version of Envoy
Any non-backward-compatible changes
Any deprecations

[x] This is unlikely to impact how Ambassador performs at scale.
Remember, things that might have an impact at scale include:

Any significant changes in memory use that might require adjusting the memory limits
Any significant changes in CPU use that might require adjusting the CPU limits
Anything that might change how many replicas users should use
Changes that impact data-plane latency/scalability

[x] My change is adequately tested.
Remember when considering testing:

Your change needs to be specifically covered by tests.

Tests need to cover all the states where your change is relevant: for example, if you add a behavior that can be enabled or disabled, you'll need tests that cover the enabled case and tests that cover the disabled case. It's not sufficient just to test with the behavior enabled.

You also need to make sure that the entire area being changed has adequate test coverage.

If existing tests don't actually cover the entire area being changed, add tests.
This applies even for aspects of the area that you're not changing – check the test coverage, and improve it if needed!

We should lean on the bulk of code being covered by unit tests, but...
... an end-to-end test should cover the integration points

[ ] I updated DEVELOPING.md with any any special dev tricks I had to use to work on this code efficiently.

[ ] The changes in this PR have been reviewed for security concerns and adherence to security best practices.

Does this mean we wont need a custom build of envoy? For the most part looks good, just one question?

No we'll still need to update the build. Just tested trying to use the example go-filter with our current envoy build and it crashed because the type isn't compiled so will have to update that (separate PR).


Antimalware Scan not Supported on Linux Build Agents

I'm testing out the anti-malware scan using the ubuntu-latest Azure pipeline image and finding that the error message says this is unsupported on Linux. Over in https://github.com/microsoft/security-devops-azdevops/pull/26, @sukhans mentioned that Linux should be working with all of the tools now, is that in fact the case or are some tools still unsupported? If the anti-malware scan is supported, are the pre-requisite steps required to get this functioning properly and could you please share them?
- task: MicrosoftSecurityDevOps@1
inputs:
  tools: 'antimalware'

##[error]ConfigurationPathNotFoundException: A configuration file could not be found for: antimalware-linux. This is often due to attempting to use a tool on a platform where it is not yet supported.
##[error]MSDO CLI exited with an error exit code: 1
Finishing: MicrosoftSecurityDevOps

Apologies on the lack of clarity for this. Anti-Malware as a tool, was added at a later point and is currently available only for Windows. We do not have an ETA for a Linux version of it.


Updating Plugin Config

How do I add options to the plugin config?
For example, I added  { "commands": { "renderers": ["plantuml", "mermaid"] } }  to plugins.edn  as shown below and it doesn't seem to take affect.

:logseq-diagrams-as-code {:version "0.0.21", :repo "npgrosser/logseq-diagrams-as-code", :effect false, :theme false
{ "commands": { "renderers": ["plantuml", "mermaid"] } }
}

Same here, not sure I get how to configure this..

From settings to to installed plugins and then follow as shown below:


handle errors in dep, correctly catch missing url in version check

replace console.error with throw to handle dep error failures in main try/catch to mark job as failed in one place
fixes: https://github.com/deployphp/action/issues/63

I have added very basic GH action to see if the workflow runs.
You can see how it works here: https://github.com/piotrkwiecinski/action/actions/runs/4885561245/jobs/8719761093?pr=2

Is there any estimate on when this issue is expected to be merged? I am currently unable to deploy to my production server without it.

Hi,
whats the status here? This bug makes the action unusable. Dear Maintainers, can one of you merge the PR?

There’s a conflict

Hey @piotrkwiecinski, do you mind to rebase your PR and resolve the conflict?

@Konafets I'll pick it up later today.

I reduced the change just to handle undefined url and left minimal test GH action. You can see it running here https://github.com/piotrkwiecinski/action/actions/runs/8193279635/job/22406665091
@antonmedv it should be ready to validade. Sorry for small spam.

Thanks for taking care @piotrkwiecinski and @antonmedv!

@piotrkwiecinski Did you already release/tag this fix? How should I use it?
I have currently this configuration, and still failing:
      - name: Build and deploy
        uses: deployphp/action@v1

To get around the issue I run composer install in the job and it will will use the local binary.


[Fixes] Fixed script resolving local referenecs

Description

The previous version of the script did not correctly resolve references in nested template files
Regenerated all readmes

Pipeline references

For module/pipeline changes, please create and attach the status badge of your successful run.

Pipeline

Type of Change
Please delete options that are not relevant.

[x] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Update to documentation

Conflict resolved. Merging


License issue

@AndreasPizsa I checked  license file, it's MIT license, and I can see the icon of MIT license.

But in readme, the license part: Copyright (c) 2017 Andreas Pizsa (http://github.com/AndreasPizsa), contributors.
Does this is typo? Or which license parse-decimal-number is? Please confirm.

@AndreasPizsa Could you please take a look this?

@XueWei this is actually standard (see for example the NodeJS license). The creator is the copyright holder who grants you a license, thus Copyright ©  + MIT LICENSE.


Add enrichment API capability

The Enrichment API functionality needs to be added to this SDK. For a pattern to follow I recommend looking at the go SDK linked here. Thanks so much!

This is done and released.


[Windows Error]:'ERROR: 'settings.compiler' value not defined'!

Describe the bug
A clear and conciseI am using a laptop with Windows 11 system, and I have made sure that I have installed all dependencies. However, I encountered the following error when using "Anaconda Powershell Prompt":
python conanfile.py
Updating pip:
python -m pip install --upgrade pip
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Requirement already satisfied: pip in d:\option\basilisk\basilisk-develop\.venv\lib\site-packages (24.0)
Checking conan configuration: Done
Auto-Generating Draft Modules...  Done
Running this conan command:
python -m conans.conan install . --build=missing -s build_type=Release -if dist3/conan -o opNav=False -o vizInterface=True -o buildProject=True
WARN: *** Conan 1 is legacy and on a deprecation path ***
WARN: *** Please upgrade to Conan 2 ***
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
os=Windows
os_build=Windows
[options]
buildProject=True
opNav=False
vizInterface=True
[build_requires]
[env]

Updating pip:
python -m pip install --upgrade pip
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Requirement already satisfied: pip in d:\option\basilisk\basilisk-develop\.venv\lib\site-packages (24.0)
Checking conan configuration: Done
cmake generator set to: Visual Studio 16 2019
ERROR: Basilisk/2.3.10: 'settings.compiler' value not defined
Running cmake:
python -m conans.conan build . -if dist3/conan
WARN: *** Conan 1 is legacy and on a deprecation path ***
WARN: *** Please upgrade to Conan 2 ***
Updating pip:
python -m pip install --upgrade pip
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Requirement already satisfied: pip in d:\option\basilisk\basilisk-develop\.venv\lib\site-packages (24.0)
Checking conan configuration: Done
cmake generator set to: Visual Studio 16 2019
ERROR: 'settings.compiler' value not defined

I also tried downloading other versions of Basilisk, such as version 2.2.0, but I still encountered the same error.
Here are versions for prerequisite system packages:
cmake version 3.29.3
Python 3.9.13
swig 4.2.1

And here are versions for prerequisite python packages:
Name: pandas
Version: 1.4.4
Name: numpy
Version: 1.21.5
Name: matplotlib
Version: 3.5.2
Name: pytest
Version: 7.1.2
Name: Pillow
Version: 9.2.0
Name: conan
Version: 1.64.1
Name: parse
Version: 1.6.0
Name: cmake
Version: 3.27.0

Please help me ,Thanks！ description of what the bug is.
To reproduce
Steps to reproduce the behavior:

Add module '...'
Simulate with the configuration '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots/plots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. Macos]
Version [e.g. 12.6.1]
Python version [e.g. 3.9.15]

Additional context
Add any other context about the problem or potential solution paths here.

I have not had success with Python 3.9 on some recent versions of Basilisk. Perhaps try with 3.10 or newer.  Also try downgrading Conan to 1.59.0.


Issues with creating ocr from images with vertical text

It appears creating an ocr from images that have vertical text doesn't work. For instance this item for dams-

As a test, I ran the following command-
docker run \
  -w /data \
  --rm \
  -v $(pwd):/data \
  gcr.io/ucdlib-pubreg/media-utils:latest \
  tesseract test.tif test --dpi 300 -l eng --psm 1 --oem 3 hocr

Here's a copy of a test image and generated hocr file-
test-ocr.zip

Looking around briefly online, it seems tesseract doesn't support this natively. A possible workaround would be creating an ocr after rotating an image so the vertical text is horizontal, however identifying the orientation of different text on the page is a more complex problem.


Replace date selector on fixed release embargo collection settings with drop-down menu options

The issue was raised in the context of the H2 data migration meeting that the collection fixed release settings don't match the Hydrus settings and make mapping of this difficult. I've updated the Design Doc to reflect the Hydrus settings.
Design Doc: https://docs.google.com/document/d/1fcr2DYo7OrX-qTdeUOTWKSS1rlq_47sehESmbvgUsrk/edit#heading=h.dh2mljowzvv
Wireframes: https://docs.google.com/document/d/1fcr2DYo7OrX-qTdeUOTWKSS1rlq_47sehESmbvgUsrk/edit#heading=h.dh2mljowzvv

I don't think this will require any changes to the UI on the deposit form, but there could be some implications for how the collection settings restrict the depositors entries that someone should likely double-check.

I don't think this will require any changes to the UI on the deposit form, but there could be some implications for how the collection settings restrict the depositors entries that someone should likely double-check.


Assigning two task to the same node with global mode

Description
There are 3 nodes in my swam cluster, and all of the nodes are managers.
I deployed a service with the global mode. It was normal at first, but  when I rebooted all of the node one by one, two tasks were assigned to the leader manager node and runed normally.

Steps to reproduce the issue:

deploy a service with the global mode
reboot all of the node one by one

Describe the results you received:
two tasks are assigned to the leader manager node and run normally.
Describe the results you expected:
one task is assigned to the leader manager node
Additional information you deem important (e.g. issue happens only occasionally):
Output of docker version:
# docker version
Client:
 Version:      1.12.3
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   63b4274
 Built:
 OS/Arch:      linux/amd64

Server:
 Version:      1.12.3
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   63b4274
 Built:
 OS/Arch:      linux/amd64

Output of docker info:
# docker info
Containers: 99
 Running: 52
 Paused: 0
 Stopped: 47
Images: 34
Server Version: 1.12.3
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 525
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: null bridge host overlay
Swarm: active
 NodeID: 4g39opkw2s5smktjjvpd91rer
 Is Manager: true
 ClusterID: 7xyleuxvs3qvvbwk8qkilu46k
 Managers: 3
 Nodes: 3
 Orchestration:
  Task History Retention Limit: 5
 Raft:
  Snapshot Interval: 10000
  Heartbeat Tick: 1
  Election Tick: 3
 Dispatcher:
  Heartbeat Period: 5 seconds
 CA Configuration:
  Expiry Duration: 3 months
 Node Address: <IP_ADDRESS>
Runtimes: runc
Default Runtime: runc
Security Options: apparmor
Kernel Version: 4.4.0-31-generic
Operating System: Ubuntu 14.04.5 LTS
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 7.796 GiB
Name: paas-controller-193-168-0-168
ID: WIWO:PYNI:O2L7:UPA3:UIF5:5P5S:IALU:S5CI:R6XM:ZKDM:CYAE:B3P7
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: 325
 Goroutines: 766
 System Time: 2017-04-17T20:28:00.141533524+08:00
 EventsListeners: 45
Registry: https://index.docker.io/v1/
WARNING: No swap limit support
Insecure Registries:
 <IP_ADDRESS>:5555
 <IP_ADDRESS>:6666
 <IP_ADDRESS>/8

Additional environment details (AWS, VirtualBox, physical, etc.):

There have been major changes to the global orchestrator since Docker 1.12, so there's a good chance this has been fixed in newer releases. Could you please try with 17.03, 17.04, or 17.05-rc?

@aaronlehmann  Not yet, I will try to use a newer version，Thanks so much!

Please reopen if this shows up with a current version.


typo on opencollective page?

PLEASE DO NOT USE ISSUE TRACKER TO ASK QUESTIONS: see contributing
Describe the bug
Please include a minimal dodo.py that reproduces the problem.
If relevant also include the command line used to invoke doit.
Environment

OS:
python version:
doit version:

hey, thanks for the cool 😎 todo app. popped open the open collective page, and wasn't sure if you had a typo in your project description but just thought i mention here in case. below it looks like you left off the h in python

Thanks for the report. But I guess you are looking for a different project. This is not a ¨TODO" app.

correct, the project i was looking for was dooit.
https://github.com/kraanzu/dooit


Error installing on Armbian 5.27 for Sopine

When I tried to install on Armbian 5.27 for the Sopine, the script crashed with this error:
./install_desktop.sh: line119: /etc/chromium-browser/default: no such file or directory

IMO, unless this affects longsleeps build, it's not his problem, but it's an easy enough fix, so if he's happy with my change, it's resolved by the PR I just made.


Configuration error

Hi everyone,
This is my first time with this plugin and I think I may have configured something wrong, I was wondering if anyone could help.
When I launch the app I am getting an error code 1.
I have used cordova-hcp build to get the updated version and uploaded it to my server (I remembered to use cordova-hcp to configure my projec)t.
I can access the chcp.json and chcp.manifest from the browser and when I compare the hash for the index.html they are different. I have configured my config.xml to point at the json file.
For the chcp.json is that supposed to point to a folder that contains www or is is supposed to point to a folder that contains the contents of www, because right now it does the former.
I am on a mac, testing within the iOS simulator for the iphone SE using the system.log to get the errors.
Thank you for any support,
Simon

So looking at the system log i seem to be getting an error on the first launch of a new build
Feb 21 08:56:42 Simons-MacBook-Pro HotPush[3087]: WWW folder is corrupted, reinstalling it from bundle. Feb 21 08:56:42 Simons-MacBook-Pro HotPush[3087]: Error during update: Failed to load current application config Feb 21 08:56:42 Simons-MacBook-Pro HotPush[3087]: WWW folder is corrupted, reinstalling it from bundle. Feb 21 08:56:42 Simons-MacBook-Pro HotPush[3087]: Error during update: Failed to load current application config
Which repeats over and over, I wonder if the files have to be served in a specific way from the server

OK a I figured it out, It seems like it was because I had failed to remove the `cordova-hot-code-push-local-dev-addon . Once I removed that it seemed to work as expected. I will do some more testing and if the issues seem to be resolved I will close the thread.

Sorry for the late reply. Great, that you figured this out!
Yes, if you are using your own server - you should remove cordova-hot-code-push-local-dev-addon from the project. Otherwise it will replace your own chcp.json file url in the config.xml on the url of the local ngrok server. Probably that's what happened in your case. And that's why it is called local-dev :)

What other causes could there be for this error? After releasing a new version of our app with chcp v1.5.2, I started seeing LOTS of chcp_updateLoadFailed / -9 / "Failed to load current application config" errors from our iPad users (I now actually filter out those messages so the db won't fill up...).
We didn't see these errors in our last release, which was using v1.5.1.
It hasn't occurred on our own devices, so it's a bit difficult to investigate.

I has no cordova-hot-code-push-local-dev-addon and yet getting the same errors.


Chart issues (1 of 2 for my responses here)

Describe your bug here.
Ok, so when I tested out some 0.7.3 charts in the experimental build, there were issues with the notes, it kept saying null object reference even though the chart was working fine, and also, when there is a GF section, the main enemy sings instead of the GF, could you fix that issue?

Command Prompt/Terminal logs (if existing)
No response
Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows
Did you edit anything in this build? If so, mention or summarize your changes.
No, I did not, I just popped some 0.7.3 charts into my build in the mods folder

Is this an HScript error? If so, the HScript library I use has been reverted temporarily because of an issue, which might have caused this

I don't know, it may be (Not too familiar with coding)

stale


(MAINT) Adding underscore to get valid XML file

The space between middle and earth generates invalid XML file. Adding an
underscore to avoid that.
Nokogiri is powerful enough to parse the space but no other XML parser can parse it :/

Refer to this link for build results (access rights to CI server needed):
http://jenkins-beaker.delivery.puppetlabs.net//job/qe_beaker_btc-intn/4064/


Updates the odo dev output for logging

What type of PR is this:

/kind cleanup
What does this PR do / why we need it:
This PR does the following:

Removes the references to odo log
Changes the output to last 100 lines and puts the number in a constant
Reworks the output of odo dev a bit to be bolded / more consise with
out outputs.

See below for the changes:
▶ copy-odo && devfiles && cd deploy-no-knative && odo dev
go build -mod=vendor -ldflags="-X github.com/redhat-developer/odo/pkg/version.GITCOMMIT=4669bc9dc" cmd/odo/odo.go
  __
 /  \__     Developing using the deploy-no-knative Devfile
 \__/  \    Namespace: default
 /  \__/    odo version: v2.5.0
 \__/

↪ Deploying to the cluster in developer mode
 ✓  Waiting for Kubernetes resources [360ms]
 ✓  Syncing files into the container [1ms]
 ✓  Building your application in container on cluster [1s]
 ✓  Executing the application [1s]
 ⚠  Devfile command "run" exited with an error status in 1 seconds
 ⚠  Last 100 lines of log:
time="2022-03-30T16:47:25Z" level=info msg="try to start program" program=devrun
time="2022-03-30T16:47:25Z" level=info msg="success to start program" program=devrun
ODO_COMMAND_RUN is npm start
Changing directory to /project
Executing command cd /project && npm start
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /project/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/project/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
...
time="2022-03-30T16:50:30Z" level=info msg="Don't start the stopped program because its retry times 0 is greater than start retries 0" program=devrun
Your application is now running on the cluster.

- Port 3000 from "runtime" container forwarded to localhost:40001

Watching for changes in the current directory /Users/cdrage/syncthing/dev/k8s/devfiles/deploy-no-knative

Press Ctrl+c to exit.

Which issue(s) this PR fixes:

Fixes https://github.com/redhat-developer/odo/issues/5606
PR acceptance criteria:

[X] Unit test

[X] Integration test

[X] Documentation

How to test changes / Special notes to the reviewer:
Signed-off-by: Charlie Drage<EMAIL_ADDRESS>

/retest

@valaparthvi since this is documentation / UI / UX changes I won't be writing an integration test for this case :)

I have resolved the conflicts.
odo dev now looks like this:
Let me know what you think @valaparthvi @kadel @dharmit
I have added some code comments as to why that we are using green + bold for the port forwarding. It imitates the UX/UI design of a few other similar tools that use port forwarding.

/approve
Code lgtm, but can you fix the failing tests- https://s3.eu-de.cloud-object-storage.appdomain.cloud/odo-tests-openshift-logs/pr-5609-openshift-tests-1235.txt?

/lgtm


[Feature] Enable PIP mode when mini player

Problem: It seems that before the fix, PiP mode was only enabled when the player's width matched the screen's height. Therefore, in the case of a mini-player, the OS wouldn't handle PiP.
Solution: Add a configuration to enable PiP in all scenarios.
Ticket: https://dw-ml-nfc.atlassian.net/browse/DAF-3940
https://github.com/dwango-nfc/betterplayer/assets/88822474/7d07a690-cf5c-4a54-9b73-9c61a7004215

@noboru-i
Please review this PR 🙏


#215 - LoaderModule

This PR is related to issue #215

Alex has explained to me this API, but I still do not fully grasp it, so I'd like to experiment with it first
(I think Alex and I see a little differently how to use LoaderModule)
And an example should probably be added before merging module into main branch, no?

@thejmazz Yes, totally forgot about example. I suggest making a scene with multiple objects loaded (and textures). And making a spinner that will fadeOut when scene is loaded.

@thejmazz Suggest the API you want to add/remove in the comments to this PR, or even better to do it with a review (request changes / comment)

@hirako2000 Waiting for your review

@thejmazz , can you play with this to confirm it works fine?

@hirako2000, yes, should have time this weekend


Scope portions of a graph's execution to a particular stream

Should resolve https://github.com/ml-explore/mlx-swift/issues/113

Can you please add some references in the docs?  I think free-functions.md and using-streams.md

Can you please add some references in the docs? I think free-functions.md and using-streams.md

done


Public Comments In Roam

Imagine google docs level comments, but in Roam
data written to a separate page
From Discord

Audit: Won't do


load open app ad failure

My intention is to continue to display the Splash page after the ad has been displayed for a period of time. If there is any problem during the loading or display of the ad, the Splash page will be displayed directly.
final AppOpenAd appOpenAd = AppOpenAd();

class SplashPage extends StatefulWidget {
  final FlutterLocalNotificationsPlugin flutterLocalNotifications;
  final AndroidNotificationChannel channel;

  const SplashPage({
    Key? key,
    required this.flutterLocalNotifications,
    required this.channel,
  }) : super(key: key);

  @override
  _SplashPageState createState() => _SplashPageState();
}

class _SplashPageState extends State<SplashPage> {
  @override
  void initState() {
    super.initState();
    appOpenAd.onEvent.listen((e) {
      final event = e.keys.first;
      // final info = e.values.first;
      switch (event) {
        case FullScreenAdEvent.loading:
          print('loading');
          break;
        case FullScreenAdEvent.loadFailed:
          print('load failed');
          break;
        case FullScreenAdEvent.loaded:
          print('loaded');
          break;
        case FullScreenAdEvent.showed:
          print('ad showed');
          NavigatorUtil.push(context, widget);
          break;
        case FullScreenAdEvent.showFailed:
          print('show failed');
          break;
        case FullScreenAdEvent.closed:
          print('ad closed');
          break;
        default:
          break;
      }
    });

    FirebaseMessaging.instance.getInitialMessage().then((message) => {
          if (message != null)
            {
              /// todo
            }
        });

    FirebaseMessaging.onMessage.listen((RemoteMessage message) {
      var notification = message.notification;
      var android = message.notification?.android;
      if (notification != null && android != null) {
        widget.flutterLocalNotifications.show(
          notification.hashCode,
          notification.title,
          notification.body,
          NotificationDetails(
            android: AndroidNotificationDetails(
              widget.channel.id,
              widget.channel.name,
              widget.channel.description,
              icon: 'ic_launcher',
            ),
          ),
        );
      }
    });

    FirebaseMessaging.onMessageOpenedApp.listen((RemoteMessage message) {
      print('A new onMessageOpenedApp event was published!');
      NavigatorUtil.push(context, MessageView(),
          settings: RouteSettings(arguments: MessageArguments(message, true)));
    });
  }

  @override
  Widget build(BuildContext context) {
    return BlocBuilder<DarkModeBloc, DarkModeState>(
      builder: (context, state) => BlocBuilder<ThemeBloc, ThemeState>(
        builder: (context, themeState) => FutureBuilder(
            future: appOpenAd.load(force: true),
            builder: (BuildContext context, AsyncSnapshot<bool> loadRes) {
              var loadResult = loadRes.data ?? false;
              if (loadResult) {
                if (appOpenAd.isAvailable) {
                  return FutureBuilder(
                    future: appOpenAd.show(),
                    builder:
                        (BuildContext context, AsyncSnapshot<bool> showRes) {
                      Future.delayed(Duration(milliseconds: 500), () {
                        appOpenAd.load(force: true);
                      });
                      return Container();
                    },
                  );
                } else {
                  return _default(themeState);
                }
              } else {
                return _default(themeState);
              }
            }),
      ),
    );
  }

  Widget _default(ThemeState themeState) {
    var _theme = Theme.of(context);
    return SplashScreen(
      seconds: 6,
      title: Text(
        GitterLocalizations.of(context)!.welcome,
        style: TextStyle(fontWeight: FontWeight.bold, fontSize: 20.0),
      ),
      navigateAfterFuture: _widget(),
      image: Image.network('https://cdn.gitterapp.com/logo/gitter.png'),
      styleTextUnderTheLoader: TextStyle(),
      backgroundColor: _theme.colorScheme.background,
      photoSize: 100.0,
      onClick: () => print(GitterConstants.APP_NAME),
      useLoader: true,
      loadingText: Text(GitterLocalizations.of(context)!.loading),
      loadingTextPadding: EdgeInsets.zero,
      loaderColor: Color(themeState.color!),
    );
  }

  Future<Widget> _widget() async {
    return StringUtil.isNotBlank(GitterManager().token)
        ? TabNavigator()
        : LoginPage();
  }
}

Sorry, but what's the issue here?

Sorry, but what's the issue here?

After entering the splash page, the ad is automatically displayed, and another page is loaded after a period of time.

Can you elaborate it? Do you want to display the ad continuously and repeatedly until the splash screen is completed?

I have solved this problem, but found a new problem. At some point, no event was triggered after the ad was displayed.
appOpenAd.onEvent.listen((e) {
      final event = e.keys.first;
      // final info = e.values.first;
      switch (event) {
        case FullScreenAdEvent.loading:
          print('loading');
          break;
        case FullScreenAdEvent.loadFailed:
          print('load failed');
          break;
        case FullScreenAdEvent.loaded:
          _loaded = true;
          print('loaded');
          break;
        case FullScreenAdEvent.showed:
          _showed = true;
          print('ad showed');
          break;
        case FullScreenAdEvent.showFailed:
          print('show failed');
          break;
        case FullScreenAdEvent.closed:
          print('ad closed');
          break;
        default:
          print('default');
          break;
      }
    });

In what platforms are you seeing this error?

iOS

Same issue just when the app started and try to show first Nativebanner. In emulators and physucal Redmi Note 7 works fine, but fails in a Motorola XT1580 (API 26).

D/DynamitePackage(20134): Instantiating com.google.android.gms.ads.ChimeraNativeAdViewDelegateCreatorImpl
E/AndroidRuntime(20134): FATAL EXCEPTION: main
E/AndroidRuntime(20134): Process: net.example.app, PID: 20134
E/AndroidRuntime(20134): java.lang.NoSuchMethodError: No virtual method setLineHeight(I)V in class Landroid/widget/TextView; or its super classes (declaration of 'android.widget.TextView' appears in /system/framework/framework.jar:classes2.dex)
E/AndroidRuntime(20134): 	at com.bruno.native_admob_flutter.native.NativeAdKt.applyText(NativeAd.kt:338)
E/AndroidRuntime(20134): 	at com.bruno.native_admob_flutter.native.NativeAdPlatformView.buildView(NativeAd.kt:85)
E/AndroidRuntime(20134): 	at com.bruno.native_admob_flutter.native.NativeAdPlatformView.buildView(NativeAd.kt:81)
E/AndroidRuntime(20134): 	at com.bruno.native_admob_flutter.native.NativeAdPlatformView.build(NativeAd.kt:52)
E/AndroidRuntime(20134): 	at com.bruno.native_admob_flutter.native.NativeAdPlatformView.(NativeAd.kt:235)
E/AndroidRuntime(20134): 	at com.bruno.native_admob_flutter.native.NativeViewFactory.create(NativeAd.kt:30)
E/AndroidRuntime(20134): 	at io.flutter.plugin.platform.SingleViewPresentation.onCreate(SingleViewPresentation.java:186)
E/AndroidRuntime(20134): 	at android.app.Dialog.dispatchOnCreate(Dialog.java:389)
E/AndroidRuntime(20134): 	at android.app.Dialog.show(Dialog.java:293)
E/AndroidRuntime(20134): 	at android.app.Presentation.show(Presentation.java:235)
E/AndroidRuntime(20134): 	at io.flutter.plugin.platform.VirtualDisplayController.(VirtualDisplayController.java:95)
E/AndroidRuntime(20134): 	at io.flutter.plugin.platform.VirtualDisplayController.create(VirtualDisplayController.java:48)
E/AndroidRuntime(20134): 	at io.flutter.plugin.platform.PlatformViewsController$1.createVirtualDisplayForPlatformView(PlatformViewsController.java:207)
E/AndroidRuntime(20134): 	at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.create(PlatformViewsChannel.java:104)
E/AndroidRuntime(20134): 	at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.onMethodCall(PlatformViewsChannel.java:59)
E/AndroidRuntime(20134): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
E/AndroidRuntime(20134): 	at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
E/AndroidRuntime(20134): 	at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:818)
E/AndroidRuntime(20134): 	at android.os.MessageQueue.nativePollOnce(Native Method)
E/AndroidRuntime(20134): 	at android.os.MessageQueue.next(MessageQueue.java:323)
E/AndroidRuntime(20134): 	at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime(20134): 	at android.app.ActivityThread.main(ActivityThread.java:6123)
E/AndroidRuntime(20134): 	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(20134): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
E/AndroidRuntime(20134): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757)

[✓] Flutter (Channel beta, 2.2.0-10.1.pre, on Linux, locale es_ES.UTF-8)
• Flutter version 2.2.0-10.1.pre at /home/user/AndroidStudioProjects/flutterSDK/flutter/flutter
• Framework revision<PHONE_NUMBER> (hace 12 días), 2021-04-15 12:01:02 -0700
• Engine revision d2a2e93510
• Dart version 2.13.0 (build 2.13.0-211.6.beta)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /home/user/Android/Sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: /opt/android-studio-4.0/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Chrome - develop for the web
• Chrome at google-chrome
[✓] Android Studio (version 4.1)
• Android Studio at /opt/android-studio-4.0/android-studio
• Flutter plugin version 55.1.1
• Dart plugin version 201.9335
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
[✓] Connected device (2 available)
• XT1580 (mobile) • ZY222TZ4KL • android-arm64  • Android 7.0 (API 24)
• Chrome (web)    • chrome     • web-javascript • Google Chrome 84.0.4147.105
• No issues found!

With interstitial and without the Native Banner, the app doesn't crash. I am using both testing ids for app and ads

Thanks for showing these logs. I didn't know setLineHeight wasn't available on earlier api versions (< 28). I'll fix it today or tomorrow.

Now talking about App Open Ads.

At some point, no event was triggered after the ad was displayed.

I could reproduce this on iOS, still investigating.

Thanks for showing these logs. I didn't know setLineHeight wasn't available on earlier api versions (< 28). I'll fix it today or tomorrow.

In Android Studio emulator works fine on api < 28


Make agents in tasklogs view clickable

Coverage remained the same at 65.47% when pulling 8e35263a3d312c709f0fc9e4f614d9d3ca789d77 on guidow:clickable_agent_in_tasklogs into 2f6904a1faad4dd66fa4978e8ee660fcd4285902 on pyfarm:master.

Coverage remained the same at 65.47% when pulling 8e35263a3d312c709f0fc9e4f614d9d3ca789d77 on guidow:clickable_agent_in_tasklogs into 2f6904a1faad4dd66fa4978e8ee660fcd4285902 on pyfarm:master.

Coverage remained the same at 65.47% when pulling 8e35263a3d312c709f0fc9e4f614d9d3ca789d77 on guidow:clickable_agent_in_tasklogs into 2f6904a1faad4dd66fa4978e8ee660fcd4285902 on pyfarm:master.

Coverage remained the same at 65.47% when pulling 8e35263a3d312c709f0fc9e4f614d9d3ca789d77 on guidow:clickable_agent_in_tasklogs into 2f6904a1faad4dd66fa4978e8ee660fcd4285902 on pyfarm:master.

Loos good, merging.


[4.0]menu.blade.php should use named route for login

The vendor\backpack\crud\src\resources\views\base\inc\menu.blade.php file should use a named route for login link instead of the url() generator. The "register" link already uses a named route. Doing so allows the developer to override the named route (i.e. "/login" instead of "/admin/login") without resorting to modifying the  vendor\backpack\crud\src\resources\views\base\inc\menu.blade.php file.
I will submit a PR in a few minutes.

Fixed by #2658


feat(dashboard_rbac): dashboards API support for roles create/update + roles validation

SUMMARY
the needed support for managing roles via v1 API to be used from the UI and for app 2 app calls
resolves #10408
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TEST PLAN

ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Changes UI
[ ] Requires DB Migration.
[ ] Confirm DB Migration upgrade and downgrade tested.
[X] Introduces new feature or API
[ ] Removes existing feature or API

@ktmud @villebro Could you review?

Codecov Report

Merging #12865 (8bd211f) into master (9a7fba8) will decrease coverage by 3.61%.
The diff coverage is 89.79%.

@@            Coverage Diff             @@
##           master   #12865      +/-   ##
==========================================
- Coverage   67.04%   63.42%   -3.62%
==========================================
  Files        1022      489     -533
  Lines       50186    30220   -19966
  Branches     5204        0    -5204
==========================================
- Hits        33647    19168   -14479
+ Misses      16404    11052    -5352
+ Partials      135        0     -135

Flag
Coverage Δ

cypress
?

javascript
?

python
63.42% <89.79%> (-0.66%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

superset/dashboards/api.py
86.63% <ø> (ø)

superset/dashboards/commands/update.py
83.07% <70.58%> (-5.61%)
:arrow_down:

superset/commands/exceptions.py
92.00% <100.00%> (+0.69%)
:arrow_up:

superset/commands/utils.py
100.00% <100.00%> (ø)

superset/dashboards/commands/create.py
93.87% <100.00%> (+1.56%)
:arrow_up:

superset/dashboards/schemas.py
98.83% <100.00%> (+0.04%)
:arrow_up:

superset/security/manager.py
90.47% <100.00%> (-0.55%)
:arrow_down:

superset/sql_validators/postgres.py
50.00% <0.00%> (-50.00%)
:arrow_down:

superset/views/database/views.py
62.69% <0.00%> (-24.88%)
:arrow_down:

superset/databases/commands/create.py
83.67% <0.00%> (-8.17%)
:arrow_down:

... and 558 more

Continue to review full report at Codecov.

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


Step functions failing with (AccessDenied) when calling the GetObject operation: Access Denied

Installed the project ok, no errors. When I go to run the test via Step Functions I get the following:
{
  "error": "ClientError",
  "cause": {
    "errorMessage": "An error occurred (AccessDenied) when calling the GetObject operation: Access Denied",
    "errorType": "ClientError",
    "stackTrace": [
      [
        "/var/task/lambda_function.py",
        52,
        "lambda_handler",
        "obj = s3.get_object(Bucket = BUCKET, Key = KEY)"
      ],
      [
        "/var/runtime/botocore/client.py",
        316,
        "_api_call",
        "return self._make_api_call(operation_name, kwargs)"
      ],
      [
        "/var/runtime/botocore/client.py",
        635,
        "_make_api_call",
        "raise error_class(parsed_response, operation_name)"
      ]
    ]
  }
}

I have looked at the Lambda role priviledge, the S3 bucket and it all looks ok. Any ideas?

Same for me as well!

Same for me as well!


Add graceful restarting

Fixing #27
Review requested… \cc @kelunik

This needs at least one new test. ;-P

Merged via 12bdafe.


Should true() mean === true, and not truthy? (And same for false)

I've recently been bitten by some tests I wrote that used notOk to check the return value of a function that was supposed to only return true or false. The tests were incorrectly passing because the function was returning undefined due to a control flow bug.
I would have thought that true and false would check strict equality, but I see that they don't. Would it make sense to change them to be that way? I can submit a pull request if you think it's worthwhile.

I'd like to request that this issue is reopened; it seems that it was closed without resolution.
A test case that permits different return values (ie. true, 10, 'false' etc. - all valid for test.true) seems like the minority case, if not an anti-pattern. Typically I would avoid these kinds of tests and insist on testing for a specific return value. A test case should be updated when the expected return value changes.
If test.true() only accepted the return value true then checking for a 'truthy' return value could still be achieved trivially (and unambiguously) like so:
test.true(shouldBeTruthy == true)

If necessary you could restore the alias of ok with:
test.truthy(shouldBeTruthy)

However, in my opinion, this incorrectly implies that this is the type of test one should be writing.

To echo https://github.com/substack/tape/issues/119#issuecomment-62953919, t.equal(expected, true) is better than t.ok.
I agree that t.true(x) might be better aliased to t.equal(x, true), but I think the explicitness of t.equal is preferred anyways, so I'm not sure I see the value of the breaking change.

I think the explicitness of t.equal is preferred anyways, so I'm not sure I see the value of the breaking change

Agreed. It's surprising behaviour, but not a huge deal.
That said, the fact it's a breaking change has less significance for a test library like tap. Should be fairly easy for consuming code to correct (since tap enumerates a list of broken tests when you run it).


Setup schema.graphql, subgraph.yaml, handler for Anchor contract

PR covers below:

schema.graphql is populated with anchor entities
subgraph.yaml added with anchor contract details
AnchorMapping.ts
generated folder to be compiled and deployed

Fixes #274

I have tested the subgraph by deploying on the graph node:
Deployment of origin subgraph
Abhays-MacBook-Pro:origin abhay$ npm run create-local

> mosaic-subgraph@ create-local /Users/abhay/Documents/projects/abhayforks/facilitator/subgraph/origin
> graph create --node http://<IP_ADDRESS>:8025 mosaic1/erc20-gateways

Created subgraph: mosaic1/erc20-gateways

Abhays-MacBook-Pro:origin abhay$ npm run deploy-local

> mosaic-subgraph@ deploy-local /Users/abhay/Documents/projects/abhayforks/facilitator/subgraph/origin
> graph deploy --node http://<IP_ADDRESS>:8025 --ipfs http://<IP_ADDRESS>:5006 mosaic1/erc20-gateways

  Skip migration: Bump mapping apiVersion from 0.0.1 to 0.0.2
  Skip migration: Bump mapping apiVersion from 0.0.2 to 0.0.3
  Skip migration: Bump mapping specVersion from 0.0.1 to 0.0.2
✔ Apply migrations
✔ Load subgraph from subgraph.yaml
  Compile data source: Anchor => build/Anchor/Anchor.wasm
✔ Compile subgraph
  Copy subgraph file build/schema.graphql
  Write subgraph file build/abi/Anchor.json
  Write subgraph manifest build/subgraph.yaml
✔ Write compiled subgraph to build/
  Add file to IPFS build/schema.graphql
                .. QmVrWkUxvFFwcTYhuUSM3gmvCDXBu1mmxn6NhHvwEwqfJT
  Add file to IPFS build/abi/Anchor.json
                .. Qmf8hj3sPK1hGasTnJyXG5GJJHSVAT828gLVBC8nkoWVzX
  Add file to IPFS build/Anchor/Anchor.wasm
                .. QmZQ3TC5HsMDA7s6cFZxWgDLpVuhBMWyEZjerh8afXtf7g
✔ Upload subgraph to IPFS

Build completed: QmYkXD9uaQJFGLxUU1BMjokCEqAuKJk86NPFRvCUidiyqs

Deployed to http://<IP_ADDRESS>:8000/subgraphs/name/mosaic1/erc20-gateways/graphql

Subgraph endpoints:
Queries (HTTP):     http://<IP_ADDRESS>:8000/subgraphs/name/mosaic1/erc20-gateways
Subscriptions (WS): http://<IP_ADDRESS>:8001/subgraphs/name/mosaic1/erc20-gateways
``

Deployment of auxiliary subgraph
npm run create-local

> mosaic-subgraph@ create-local /Users/abhay/Documents/projects/abhayforks/facilitator/subgraph/auxiliary
> graph create --node http://<IP_ADDRESS>:9425 mosaic1/erc20-gateways

Created subgraph: mosaic1/erc20-gateways
Abhays-MacBook-Pro:auxiliary abhay$ npm run deploy-local

> mosaic-subgraph@ deploy-local /Users/abhay/Documents/projects/abhayforks/facilitator/subgraph/auxiliary
> graph deploy --node http://<IP_ADDRESS>:9425 --ipfs http://<IP_ADDRESS>:6406 mosaic1/erc20-gateways

  Skip migration: Bump mapping apiVersion from 0.0.1 to 0.0.2
  Skip migration: Bump mapping apiVersion from 0.0.2 to 0.0.3
  Skip migration: Bump mapping specVersion from 0.0.1 to 0.0.2
✔ Apply migrations
✔ Load subgraph from subgraph.yaml
  Compile data source: Anchor => build/Anchor/Anchor.wasm
✔ Compile subgraph
  Copy subgraph file build/schema.graphql
  Write subgraph file build/abi/Anchor.json
  Write subgraph manifest build/subgraph.yaml
✔ Write compiled subgraph to build/
  Add file to IPFS build/schema.graphql
                .. QmVrWkUxvFFwcTYhuUSM3gmvCDXBu1mmxn6NhHvwEwqfJT
  Add file to IPFS build/abi/Anchor.json
                .. Qmf8hj3sPK1hGasTnJyXG5GJJHSVAT828gLVBC8nkoWVzX
  Add file to IPFS build/Anchor/Anchor.wasm
                .. QmZQ3TC5HsMDA7s6cFZxWgDLpVuhBMWyEZjerh8afXtf7g
✔ Upload subgraph to IPFS

Build completed: QmNbjAc9eUrpZp5aHoEsMZbz78EF8RJZLZukcsm4FZRV1K

Deployed to http://<IP_ADDRESS>:8000/subgraphs/name/mosaic1/erc20-gateways/graphql

Subgraph endpoints:
Queries (HTTP):     http://<IP_ADDRESS>:8000/subgraphs/name/mosaic1/erc20-gateways
Subscriptions (WS): http://<IP_ADDRESS>:8001/subgraphs/name/mosaic1/erc20-gateways

Please use the correct ABI.
We still need to use the anchor contract's ABI from mosaic-contract.

Please use the correct ABI.
We still need to use the anchor contract's ABI from mosaic-contract.

It works with updated abi. The ordering of event parameters are same as the original one.
Generated libraries read values from the index which remains the same.
this._event.parameters[0].value.toBigInt();


grammar.md

[ x] I have read freeCodeCamp's contribution guidelines.
[x ] My pull request has a descriptive title (not a vague title like Update index.md)
[ x] My pull request targets the master branch of freeCodeCamp.
[x ] None of my changes are plagiarized from another source without proper attribution.
[ x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Thank you for your PR but the changes you have made does not improve the article.

We are marking this PR invalid for Hactoberfest as it does not follow the recommended guidelines below:

Quality Standards
In line with Hacktoberfest value #2 (Quantity is fun, Quality is key), we have provided examples of the quality standards we encourage. This applies mainly to beginners.

PRs that are automated e.g. scripted opening PRs to remove white space / optimize images.
PRs that are disruptive e.g. taking someone else's branch/commits and making a PR.
PRs that are regarded by a project maintainer as a hindrance vs. helping.
Something that's clearly an attempt to simply +1 your PR count for October.

Learn more at https://hacktoberfest.digitalocean.com/details


fix(card-cta): update video image to 4x3 styles

Related Ticket(s)
#5387
Description
Change video image to use 4x3 ratio. Add story to card-group Card Group with Mixed Media which shows both images and videos.
Changelog
New

component card-cta-image with 4x3 styles
Card Group with Mixed Media story

Also, probably slightly unrelated to this specific issue, but I'll call it out and link to the issue that's open to fix this. The content in the cards don't line up anymore.
https://github.com/carbon-design-system/carbon-for-ibm-dotcom/issues/5398

Hi Ari! Looking great. Only 1 suggestion, could you add "Number of cards" knob to the story? Thank you!

Hi Ari! Looking great. Only 1 suggestion, could you add "Number of cards" knob to the story? Thank you!

updated to include knob!


Use built in json library

Python has had a built-in json library since version 2.6, released in 2008. Tweepy's tests no longer include Python 2.5, so they're no reason to use simplejson.
This also removes a complicated import path that made every instance of Tweepy attempt to import a module that's not in requirements.
This commit also removes the json library as an attribute of the Parser object. Don't know what it was doing there, besides being unpythonic.

If I'm not mistaken, json module bundled in Python2.6 is written in pure Python and hence pretty slow. There's no performance difference between simplejson and json starting with Python 2.7 and above though, and taking into account that Python 2.6 is dead – I support this change. :)


Merge svgwrite and cairo backends

I will work next few days to merge current svg and cairo backends to get only one cairo based backend working with everything we already support.
As cairo supports various surface types, including SVG, I think we could remove code and end up with better render support and quality over different output types.
Let me know if you have any ideas or suggestions.

Just make sure that getting cairo set up on windows is not too difficult before dropping svgwrite. Having cairo as an optional dependency would be idea. It could be discouraging to people trying to use this library only for transforms etc. if they had to struggle with getting cairo and pycairo set up, for features they wouldn't use.
I think a good goal would be a generic context class that uses an appropriate backend based on the file extension of the output filename (or at least a file type argument) and the currently installed backend libraries, e.g. doing something like (pseudocode):
context = generic_context()
some_gerber.render_to_image('silk.svg', context)

Would use either SVGwrite or Cairo depending on what the user has installed, and raise an exception if they didn't have any installed libraries that supported writing SVGs.
As far as consolidating code goes, I tried to put a bunch of convenience methods/properties into the primitives classes. Stuff like position, lower_left, etc. That way you can use a rendering library that draws rectangles with the origin in a corner or one that draws rectangles with the origin in the center without repeating all the stuff like position.x - (rectangle.width / 2.) in the rendering module to translate from center-referenced to corner-referenced rectangles.

#40 to solve this.

closed by #40


[css] support place-items

Problem statement
Bug [x]
Feature Request []
Enviornment

VSCode Version: 1.19.3
OS Version: Windows 10

Actual Behaviour

Steps to Reproduce:

In a CSS file, write place-items: center center

Does this issue occur when all extensions are disabled?: Yes
Additional Information
place-items documentation: https://developer.mozilla.org/en-US/docs/Web/CSS/place-items

It's still in a working draft so we have to see when we adopt it.

Also tracked here: https://github.com/mdn/data/issues/228

mdn/data v2.0.0 now includes place-items, just need to update to that version :)

OK, will do next month. Thanks!


[FEAT] : Add Date column to Expense Table

Is your feature request related to a problem? Please describe.

No. The feature is more an enhancement related to a user requirement: ability to view on which date the expense was made.

Describe the solution you'd like

Using a date field to specify a date when an expense is captured

Describe alternatives you've considered

N/A

Additional context

N/A

@sree-hari-s Can you assign the issue to me under the labels hacktoberfest please?

Status

Issue related to the Pull Request: https://github.com/sree-hari-s/Expense-Tracker/pull/33

@sree-hari-s Can you review the related pull request please: https://github.com/sree-hari-s/Expense-Tracker/pull/33


[Feature] Bi-Directional Audio (Microphone Support)

Is your feature request related to a problem? Please describe.
For feature parity with Nvidia CloudXR, we will want bi-directional audio support to create multiplayer applications where players can talk with each other.
Describe the solution you'd like
Microphone support from WebXR that sends audio stream to Unity. Unity Render Streaming should have a sample that already supports this.

There is a bug with sending audio bidirectionally. We have a hacky solution atm: https://github.com/Unity-Technologies/UnityRenderStreaming/issues/599

There is a bug with sending audio bidirectionally. We have a hacky solution atm: Unity-Technologies/UnityRenderStreaming#599
Edit: Nevermind. I just noticed you are the one who opened the issue on renderstreaming git :)

Thanks for linking them. Just tested with the latest release and it almost works out of the box, but still broken unforunately


PEP484 static typing support

Are there any plans to add type stubs for PEP484-compliant static typing?

I don't plan to add type annotations.

Sounds like a useful thing for someone to contribute though!

Ok. I wanted to check if there were any ongoing efforts before I started working on it. I'll get to work when I have the chance!

If you're going to do this, that's great. Please do a "preview" on one file first, so I can review how it will work before modifying the entire project.

Aren't these type annotations usually in separate files, just like the ones for Jinja:
https://github.com/python/typeshed/tree/master/third_party/2and3/jinja2

PEP484 type hints are not comments. They are an addition to the language. Type hints only work in 3.5 and later.
For example, an annotation of render_template might look like this:
    from typing import Sequence, Any, Union

    def render_template(template_name_or_list: Union[Sequence[str], str], **context: Any) -> str:
        ...

This says:

template_name_or_list must be a string or sequence of strings
context is a dict with any valid python key and Any type for the values
the function returns a string

Type hints are not used at runtime, but can provide valuable hints in an editor when used properly.

I'm definitely not adding annotations, since Flask is compatible with 2.7 and 3.4+. Comments are, in fact, a supported format for specifying types in order to support older versions, that much I know. They may not be introspectable at run time though.

I think that's the whole point of typeshed - being able to use the annotation syntax without making the project 3.5+-only

Looks like you can use comments. But it's not pretty (IMO) especially for function variables.
def render_template(
        template_name_or_list, # type: Union[Sequence[str], str],
        **context # type: Any
        ):
        # type: (...) -> str
    function goes here

There's another format, a comment of the signature with annotations on its own line. It's described right above the docs describing the multiline format. http://mypy.readthedocs.io/en/stable/python2.html

At least the example from @timster looks quite awful IMO...

The idea of typeshed isn't to "bypass a project" btw - the PEP explicitly requires permission from the package maintainers before stubs can be included there.

Yes, multiline doesn't look good. The other format is:
def render_template(template_name_or_list, **context):
    # type: (template_name_or_list: Union[Sequence[str], str], **context: Any) -> str
    """"docstring"""

At this rate I should have just said yes I'll implement all that. :joy:
I'm fairly sure I remember reading recently that GvR wanted to end typeshed in favor of adding the stubs or comments to the projects directly, but I can't find that reference. In any case, if we're going to have it I don't want it in a remote repo that we don't maintain.

It'd work best to just have pyi files. All type checkers are required to be
able to read the pyi stubs, so we should just implement the hints there (a
bit like C headers)
On Tue, Apr 10, 2018 at 12:58 PM David Lord<EMAIL_ADDRESS>wrote:

Yes, multiline doesn't look good. The other format is:
def render_template(template_name_or_list, **context):
# type: (template_name_or_list: Union[Sequence[str], str], **context: Any) -> str
""""docstring"""
At this rate I should have just said yes I'll implement all that. 😂
I'm fairly sure I remember reading recently that GvR wanted to end
typeshed in favor of adding the stubs or comments to the projects directly,
but I can't find that reference. In any case, if we're going to have it I
don't want it in a remote repo that we don't maintain.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/pallets/flask/issues/2688#issuecomment-380173535, or mute
the thread
https://github.com/notifications/unsubscribe-auth/Aby_WcBZ6vvAst56ufGNsTN9Xbh_5HGHks5tnOTNgaJpZM4TM-s-
.

--
Thanks,
Julian DeMille
CEO, demilleTech Flight Simulations, LLC.
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager.
This message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. If you are not the intended recipient
you are notified that disclosing, copying, distributing or taking any
action in reliance on the contents of this information is strictly
prohibited.

I do not want to deal with twice as many files, which devs have to remember to update whenever they make a change. Either add the comments or don't add anything. All this confusion is one of the reasons I wasn't enthusiastic about this to begin with.

Unfortunately that's the best option if we want compatibility.
On Tue, Apr 10, 2018 at 1:37 PM David Lord<EMAIL_ADDRESS>wrote:

I do not want to deal with twice as many files, which devs have to
remember to update whenever they make a change. Either add the comments or
don't add anything. All this confusion is one of the reasons I wasn't
enthusiastic about this to begin with.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/pallets/flask/issues/2688#issuecomment-380185593, or mute
the thread
https://github.com/notifications/unsubscribe-auth/Aby_WfRIKMKImpEMIIVWmRyM3MJODne0ks5tnO3zgaJpZM4TM-s-
.

--
Thanks,
Julian DeMille
CEO, demilleTech Flight Simulations, LLC.
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager.
This message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. If you are not the intended recipient
you are notified that disclosing, copying, distributing or taking any
action in reliance on the contents of this information is strictly
prohibited.

Just to add to this discussion there are tools to automatically generate type hints from tests as comments that will preserve compatibility. pyannotate and pytest-annotate can be used for annotation of the source code. We have used this in our project and it worked fairly well. I tested it with Flask but it seems to generate type hints for the tests instead of the functions used. Maybe I am missing something here.

I stand corrected. Apparently type checkers are required to read the comments in case of code straddling Python 2 and 3. Now we have to decide what form to use

Given that I "develop Flask" pretty much every day, I do not want to see import errors flashing at me constantly. Also, mypy gives an error if the import is not present, even with only comments.

Right. This is an interesting issue. People will want to use static typing (and thus need type hints), but some people don't, and they dislike extra dependencies for stuff they don't use. As much as typing is an extra dependency, it may be worth it to require it for Flask. Another option which could solve this is having the type stubs. Since they're Python 3 (IIRC, all type checkers that currently exist are Python 3, but support 2), typing is already included. We'll have to see how to continue from this point.

Since this is an ongoing discussion, I'd like for this to be reopened until we figure out how we're going to approach this issue.

@davidism There's another choice I just thought of. There can be code similar to the following such that typing is only needed in a type-checking environment. It assumes that anywhere that is checking types will have the package.:
try:
    import typing
except ImportError: pass

In that case, the development dependency list should include typing.

Looks like we'll need type annotations for Werkzeug too. I can work on that at some point.

Flask stubs were added to typeshed earlier this year: https://github.com/python/typeshed/pull/2740

Since 2.7 is officially being deprecated this year, has there been any change of heart over the past two years on this topic?  I can't express how much time is wasted by having to go back to documentation instead of just relying on my editor informing me or debugging through a console to find members.

From what I understand, the typing module has performance and memory issues in < 3.7 because it's eagerly evaluated and creates a ton of anonymous classes. Until we drop Python 3.6 and can take advantage of from __future__ import annotations in 3.7, I still don't plan to add annotations unless it can be proven that the startup time and memory footprint for 3.6 is not significant.
Annotations probably won't do as much as you expect for Flask. Most of the real stuff happens in the other 5 Pallets libraries (which are under the same 3.7+ constraint), and much of the interesting Flask stuff, like what a view function can return, is so generic that a type for it is fairly annoying to read in an IDE popup.

having to go back to documentation instead of just relying on my editor

PyCharm completions and parameter hints seem to be doing just fine for me without annotations, so I'm not sure where this is coming from. What functions have particularly confusing APIs that you're going back to the docs for? Note that many IDEs also have docs popups in the same place as param types popups, so you should be able to get them directly in your editor.

@davidism I appreciate the feedback.  I had not heard that annotations have performance impacts.

what a view function can return

I, personally, still refer to documentation on this especially with the change in 1.1 for automatic json conversion (which annoyingly doesn't work on lists).

functions have particularly confusing APIs

It's usually not functions themselves, but what they are returning, especially in tests.  For example, the FlaskClient does not have auto-completion on the response from open in IntelliJ (documentation also doesn't say what the return type is, which required me to do some introspection).


Change Homekit device Type

Please explain your feature request in a one or two sentences.
I use the plugin only to switch my Ambilight on or off with the TV. Since the device appear as a light in homekit it reacts to „hey siri, switch on the light in the living room“. Would love to change the type to „switch“.

Is your feature request related to a problem? Please describe.
No

Any particular Govee devices that this relates to?
H6199 and other ambilights

Anything else?

I am sure this is something I can do. Will get back to you :)

Please install the beta of the plugin. And then use the configuration to change the "Show As" type of your lights to a switch.

Tested. Works perfectly as i imagined it :-)
Great job! Thank you!

I have no idea if I have the beta or not. Sent from my iPhoneOn Dec 16, 2022, at 3:06 AM, solbadguy2010 @.***> wrote:
Hi, is the heavy logging in the Homebrige Log part of the beta? Can i disable it?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

@farkis644 Bro, really? :-D

@bwp91 Can you help me?

@farkis644 Bro, really? :-D

Ha. My bad. Responses via email by mistake. Thought I was replying to the support request I opened. : )

@farkis644 Happens :-D
Was a little bit wondering about the answer :-)

Beta versions force enable debug logging.
makes it a lot easier for me when debugging with users.
just released a new version which you should be able to update to :)

Understand. Thanks again for the great support


Clee/ma 1627 discussion api search messages

@brianguertin

:+1:

Rebasing havoc. Not sure what happened here, real commit is in https://github.com/edx/edx-app-android/issues/435


generic "order by id"

I have a generic selectAll that's used by many types, which looks like this:
selectAll
  :: (PersistEntityBackend a ~ SqlBackend, PersistEntity a, MonadIO m)
  => SqlPersistT m [(Entity a)]
selectAll = select $ from $ \i -> return i

All my tables have an id, and I'd like to encode that they should be sorted by id by default. Is there any way to add a generic orderBy [asc "id"] to this generic query?

Did you try orderBy [asc (i ^. persistIdField)] or something along these lines?
http://hackage.haskell.org/package/persistent-2.2/docs/Database-Persist-Class.html#v:persistIdField

Thank you, that works! I didn't know about persistIdField.


chore: remove lto

Which issue does this PR close?
Closes #
Rationale for this change
When lto is true, release build would fail on machine with 16G(9G free), so remove it.

What changes are included in this PR?

Are there any user-facing changes?

How does this change test

Codecov Report

Merging #609 (8a6aa70) into main (475dc6b) will decrease coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #609      +/-   ##
==========================================
- Coverage   66.02%   66.01%   -0.01%
==========================================
  Files         285      285
  Lines       44358    44358
==========================================
- Hits        29288    29285       -3
- Misses      15070    15073       +3

Impacted Files
Coverage Δ

common_types/src/column.rs
61.03% <0.00%> (-0.28%)
:arrow_down:

components/skiplist/src/list.rs
98.87% <0.00%> (-0.23%)
:arrow_down:

analytic_engine/src/row_iter/merge.rs
88.58% <0.00%> (-0.19%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


[no ticket] chore(tests): fix date in registries acceptance test

Purpose
Display the same date no matter when the test is run, to prevent confusing Percy.

Summary of Changes
Install ember-mockdate-shim, use it in the registries acceptance tests.

Side Effects
Makes it easy to mock dates elsewhere, if we need to.

Feature Flags

QA Notes

Ticket

Reviewer Checklist

[ ] meets requirements
[ ] easy to understand
[ ] DRY
[ ] testable and includes test(s)
[ ] changes described in CHANGELOG.md

Pull Request Test Coverage Report for Build 1989

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 68.8%

Totals

Change from base Build 1979:
0.0%

Covered Lines:
4567

Relevant Lines:
6092

💛  - Coveralls


Replacing all monomers (or part of them) in edit mode - works wrong - system cuts sequence on two

Steps to Reproduce

Go to Macromolecules mode - Flex mode
Load from file: Replacing all monomers (or part of them) in edit mode - works wrong - system cuts sequence on two.zip

Select three @ symbols in edit mode (having blinking cursor somewhere in the middle of sequence - this is important!

Click any monomer from the library (C peptide in my case) - click Yes in appeared Confirm Your Action dialog

Actual behavior
System cuts sequence on two

Expected behavior
Sequence remain solid, replacement is done

Versions

Ketcher Version 2.24.0-rc.2 Build at 2024-08-14; 19:06:32
Indigo Toolkit Version 1.23.0-rc.2.0-g6a2a7526a-x86_64-linux-gnu-11.2.1
Chrome Version 127.0.6533.100 (Official Build) (64-bit)
Win10

Related issue - https://github.com/epam/ketcher/issues/4878

It is enough to replace the first monomer only with the caret placed after the second monomer or farther.


[FLOC-4254] Add initial segment support for 1.10.2

Fixes: https://clusterhq.atlassian.net/browse/FLOC-4254
Release maintenance branch based on #2656

Looking at https://segment.com/docs/libraries/analytics.js/quickstart/ it suggests turning off other integrations. It looks like we have at least

optimizely
heatmap.me
google analytics
already installed. Should we consider using the segment integration instead? (cc: @msh100)

I also see some intercom code.

Also, I don't know any javascript, but it looks like there might be a race between loading the analyitics code, and trying to run it. It isn't clear to me why some of the code is inline and some in an external script.

I've made some comments, about trying to understand the reasoning behind how this change is implemented. it might just be ignorance on my part, feel free to ignore them and merge.

Thanks @tomprince
I'll wait for @msh100 to respond before proceeding.
Meanwhile I've forced a "release" style build on the branch.

http://ci-live.clusterhq.com:8080/job/ClusterHQ-flocker/job/release-maintenance-flocker-1.10.2-segment-docs-FLOC-4254-2/

@tomprince I was aware of a potential race condition which I informed Michael about, however I need to test it built somewhere that isn't local to confirm that.
Where does Jenkins push to?

@msh100 You can find a link in the console output of a sphinx build, near the end.

@tomprince Regarding this code co-existing with other integrations, the only integration enabled from within segment itself is Mixpanel which is not in anyway implemented in the documentation at the moment. Absolutely those integrations should be removed if we plan to move them over to Segment at some point, it's my understanding this is purely being used for testing at the moment.
Regarding the race condition: All code regarding Segment is in the document ready callback, this function waits for the page to become ready before execution (this includes loading of assets). I don't believe there is a race condition in this instance.
If you feel any specific part of the JS needs explaining more, let me know and I will add comments.
One issue I did notice which does appear to be a problem is a race condition between sending the information about the page to Segment and the changes which were implemented to improve SEO, JS injection of the canonical link path. Segment appears to show pages at a different path than they were actually accessed, I think we need @ferrantim to confirm if this is okay or not.

I spoke to marcus and it looks like the one race condition won't be a problem when this is live.  So I am ok with this.
"
sometimes segment sees it as “/en/version/path"
[4:02]
other times it is the real path
[4:03]
when it is live in production, I dont think this will be an issue, because it will be the right path I guess"

Superseded by #2933


Can we make this PEP8 compliant?

Purpose of your issue?

[ ] Bug report (encountered problems/errors)
[ ] Feature request (request for a new functionality)
[x] Question
[ ] Other

Describe your issue
Most, if not all, files are non compliant with the PEP8 style guide. While this is not a major issue, I think it would make the code cleaner and easier to maintain if everything were compliant with the PEP8 guidelines. Future contributors would also have a clear set of guidelines to follow, so they couldn't submit messy code!
Should I make all the files PEP8 compliant?  😄

Hi. The project has CI that checks the PEP8, you can find all instructions in Travis-CI config (.travis.yml). If for some reason some of the files become uncompliant, feel free to create a pull request with code style fixes, but also make sure to add the auto-pep8-check to the current CI pipeline to check the code style of all future pull requests.

I'm making a start on this now #1072


APP6 Support in ArcGISRuntimeQt 100.3

Does the next release of ArcGISRuntimeQt (V100.3) supports APP6 symbology? If this is so, which relase will be supported?

APP-6(B) is supported now if that is the version you are looking for:
http://solutions.arcgis.com/defense/help/military-symbology-styles/

@JoergTurla APP-6(D) and APP-6(B) are both supported in the latest update release of ArcGIS Runtime SDKs, version 100.3, which was released July 2018. There is a current issue pertaining to the missing gct_ in the stylx development repository, https://github.com/Esri/military-features-data/issues/319. If there is other information missing from the stylx files in order to support ArcGIS Runtime 100.3, please log an issue with Esri Support Services or in https://github.com/Esri/military-features-data.

Hi!
I think that there are a couple of issues are also relevant:
A colleague of a different department generated some BUGS regarding MIL2525B:
We verified some of them in our department using MIL2525D and APP6D. From our point of view it looks like a general issue.
Some of the bugs are 'New' or 'Under Consideration', some "In Product Plan'.
I assume that if a BUG is accepted for a specific symbol or a general issue (like line style in 'BUG-000113738 When implementing MIL-STD 2525B Change 2, "planned“ / “anticipated” line symbols are not dashed.'), this issue is solved in all (or at least most) stylx!?
Or do we have to created additional cases regarding our the symbology we are using: APP6D and MIL252D?
This would increase the number of bugs.
I don´t want to make it more complicated than necessary. I just want to remind...
Here is an incomplete list of the bugs:

BUG-000113355 The Military Symbol Editor is missing the ability to add specific required symbol attributes from Table IV of the MIL-STD-2525B Change 2 standard.

BUG-000113744 In the Military Symbol Editor, the Light Line symbology for planned or anticipated does not match documentation specification.

BUG-000113781 Symbol with the SIDC "GMPSE----*** X" is titled "Shelter" in the Military Symbol Editor (Mil-Std 2525B chg 2), not as "Earthwork, Small Trench or Fortification" (2.X.3.3.1) as defined in Mil-Std.

BUG-000113698 The Military Symbol Editor tool does not have the correct symbology for the Assault Position in the 2525B Change 2 settings.

BUG-000113738 When implementing MIL-STD 2525B Change 2, "planned“ / “anticipated” line symbols are not dashed.

BUG-000113739 When implementing MIL-STD 2525B Change 2 / MIL-STD 2525D, the "Echolon“-attribute (size indicator) [B] is missing in the line.

Thank you


Add global and system options support

Add ability to set global s7 options, i.e. save/load them to/from ~/.s7options file. Also now it is possible to set system wide options in /etc/s7options file.

Внес правки. Прошу прожать


Update attributekeyprocessor to current factory registration

The original PR was made before the change in model of factory registration. This change moves it to the current factory registration.

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@83e99c2). Click here to learn what that means.
The diff coverage is 100%.

@@            Coverage Diff            @@
##             master     #163   +/-   ##
=========================================
  Coverage          ?   71.74%
=========================================
  Files             ?      103
  Lines             ?     6014
  Branches          ?        0
=========================================
  Hits              ?     4315
  Misses            ?     1476
  Partials          ?      223

Impacted Files
Coverage Δ

processor/attributekeyprocessor/factory.go
89.47% <100%> (ø)

defaults/defaults.go
77.77% <100%> (ø)

Continue to review full report at Codecov.

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


Can handle images with multiple faces, and multiple resolutions?

Does this framework can handle images with multiple faces and multiple resolutions? By multiple faces I mean, if it can compare "img_1.png" witch contains only the target face, and an array of images that may contain multiple faces including the target or no face at all.
Something like:
from deepface import DeepFace
dataset = ["img_2.png", "img_3.png"]
result = DeepFace.verify("img_1.png", dataset)

No, you should use it just shown below. img_1 should be duplicated.
dataset = [
   ["img_1.png", "img_2.png"],
   ["img_1.png", "img_3.png"]
]
results = DeepFace.verify("img_1.png", dataset)

results variable returns json array. Then, you can check its verification results.
print(results[0]["verified"])
print(results[1]["verified"])

BTW, I close this issue.


Adding a CONTRIBUTING.md file.

This file details contributing guidelines for users that wish to submit
a pull request. The README has also been modified to reference this new
file.

 [Infrastructure] Add a "Contributing" section to our public repository READMEs. [0]


Android API 33 no files visible

As per comments in cordova-media-dmcsdk under API 33 no files and shown in the picker.

I'm having the same issue.

I'm having the same issue.

+1

@jonmaim @itbeyond I fixed it! https://github.com/bazuka5801/MediaPickerPoject/commit/35d2e25b5e9e60776a168c51534dbb6b11e2e82e


Do not publish catalog\node_modules\typescript directory to NPM

Please exclude catalog\node_modules\typescript directory from the Node module - it's unnecessary 60MB to download

Does the catalog need to be published to npm at all? Unless I'm missing something, you could probably just exclude the whole /catalog directory.

Think this is just an oversight

yikes on it rn

PR out for review. it was package.json's files overriding .npmignore


Generated "standalone" Enums are unusable (since v0.4.32)

Since version 0.4.32 you cannot use Enums if you decalre them in this way:
{
  "type":"object",
  "enum": [
    "foo",
    "bar",
    "baz"
  ]
}

because the generated Enum looks like this:
public enum Example {

FOO(null),
BAR(null),
BAZ(null);
private final Example_ value;
private final static Map<Example_, Example> CONSTANTS = new HashMap<Example_, Example>();

static {
  for (Example c: values()) {
    CONSTANTS.put(c.value, c);
  }
}

private Example(Example_ value) {
  this.value = value;
}

public Example_ value() {
  return this.value;
}

public static Example fromValue(Example_ value) {
  Example constant = CONSTANTS.get(value);
  if (constant == null) {
    throw new IllegalArgumentException((value +""));
  } else {
    return constant;
  }
}

}

The Problem is initializion with NULL.

{
  "type":"object",
  "enum": [
    "foo",
    "bar",
    "baz"
  ]
}

I'm not sure about this schema: you're expecting an object, but the allowed values are strings. The enum works if you change the type to "string" instead.

@raphaeldirksen As @thachhoang says, this schema is rather strange, there is no value that can satisfy it since "foo", "bar" and "baz" are the only acceptable values, but these values are not of type 'object'.
Do you really need this to work?
To be fair this is a valid schema.

oh ok, i missed the possiblity to use "type":"string" to build the enum i need, thanks for this info.
But as i wrote, this worked until v0.4.32


Selection_sort.cpp

Please add my file in your repository with label hacktoberfest
Selection Sort implemented via C++ programming language..
A fully working code of Selection Sort algorithm in C++ language.

PR accepted @Harshit-Raj-14
Successfully merged to HacktoberFest_22 repo.
🚀🚀👍


Use base platform matrix for CI tests

This PR updates the CI build definition to use the shared platform matrix config, along with using the dynamically generated matrix approach for ci tests. The CI and live tests are now driven off the same base test matrix.
The overall change is minimal, but looks larger since I deleted some relics and renamed+moved the ci test job out into its own file (since it gets included as a template multiple times by the generate job, which we don't want to do for build/analyze).

@lmazuel @johanste it was recommended I add you as you may have an interest in test matrix related topics.

@scbedd I'm dealing with some edge cases with the one-off cosmos CI pipeline, so I need to reconcile that before merge.

/azp run python - cosmos


Feature request: new .btn-white & .btn-black

I can't remember if this has been mentioned already so apologies if it has but it would be great if we could have a btn-white and/or btn-black variant of the buttons here: https://getbootstrap.com/docs/4.1/components/buttons/#examples :smile:

The btn-dark and btn-light could have aliases to those names

@wolfy1339  I don't think so because the .btn-dark isn't black, and the .btn-light isn't white

Yeah, I don't think we'll implement this. You can always extend the current Sass code.


DIA sparse matrix product

Implementing a homemade DIA sparse-dense matrix product would be nice at some point.
Below is a small benchmark showing how much we can gain, even from a poorly written spmm, for a simple a @ rho @ a.adjoint() multiplication.

Benchmarking code
import torch
import torch.utils.benchmark as benchmark

N = 100
dtype = torch.complex64
device = torch.device("cuda:0")

# Kraus operator
D = torch.sqrt(torch.arange(1, N)).to(dtype=dtype, device=device)
A = torch.diag(torch.sqrt(torch.arange(1, N)), 1).to(dtype=dtype, device=device)

# Initial state
rho = torch.randn(N, N, dtype=dtype, device=device)
rho = rho + rho.adjoint()

# Kraus map functions
@torch.jit.script
def krausmap(A, rho):
    return torch.einsum("ij,jk,kl->il", A, rho, A.adjoint())

@torch.jit.script
def krausmap_custom(D, rho):
    tmp = torch.zeros_like(rho)
    tmp[:-1, :-1] = D[:, None] * D[None, :] * rho[1:, 1:]
    return tmp

# Test functions work
assert torch.norm(krausmap_custom(D, rho) - krausmap(A, rho)) < 1e-2

# Benchmark
mul = "krausmap(A, rho)"
mul_custom = "krausmap_custom(D, rho)"

t = benchmark.Timer(
    stmt=mul,
    setup="from __main__ import krausmap",
    globals={"A": A, "rho": rho}
)
t_custom = benchmark.Timer(
    stmt=mul_custom,
    setup="from __main__ import krausmap_custom",
    globals={"D": D, "rho": rho},
)

print(t.timeit(100))
print(t_custom.timeit(100))

which yields the following results

Size
einsum
custom
Speedup

N = 10 (cpu)
64.09 us
18.61 us
x3.44

N = 100 (cpu)
243.88 us
28.45 us
x8.57

N = 1000 (cpu)
167.50 ms
2.28 ms
x73.5

N = 10 (gpu)
70.65 us
37.93 us
x1.86

N = 100 (gpu)
62.76 us
38.06 us
x1.65

N = 1000 (gpu)
1.02 ms
93.76 us
x10.9

I think we should compare to torch sparse directly no?

I have a semi-implementation of the "generalized" sparse matrix. Here is some benchmark to add some "water to the moulin". Performances are very bad (although asymptotically better) but I'm working on it

I think we should compare to torch sparse directly no?

I did it as well but didn't show the results. The torch sparse COO format is overall faster than dense, and ~2 times slower than my custom DIA. But it doesn't have many operations with autograd support, so I don't think we can use it for the package yet. Maybe in some time when Torch develops it some more.
Although to be fair, my poorly written DIA is fast just because I'm only looking at sparse matrix with a single diagonal. If I have more than this, it's really not as good.

I have a semi-implementation of the "generalized" sparse matrix. Here is some benchmark to add some "water to the moulin". Performances are very bad (although asymptotically better) but I'm working on it

That's really cool ! What are you doing in "Sparse without conversion" ? Is this all kernel code?

See https://linear.app/dynamiqs/issue/DYN-48/support-sparse-dia-format.


Can not find Pipeline examples in tutorial?

Hi there, I landed here as wiki mentioned Pipeline feature in this project, but I did not find examples about that in tutorial. How can I achieve that? Thanks

Hi,
pipelining is automatically supported, you don't need to do anything special.
Basically, when you call any command (.get, .set, ...), the command is not sent but only stored in a buffer.
Then, when you call .commit or .sync_commit, it will flush all the commands together.
So basically, if you want to do pipelining, just execute all your commands and then call commit/sync_commit.
.get()
.get()
.get()
.get()
.get()
.get()
.get()
.get()
.commit()

Will send everything together.
Does that answer your question?
Best :)

Okay, that's what I wanted. Thanks Cylix!

Great!
I'm closing this issue then, but feel free to re-open it if you have any other question :)


Swashbuckle.AspNetCore.Annotations can't be added to class library if class library is used in Blazor WebAssembly project

Hi,
I have a simple C# Class Library with a class inside.
That class library is referenced from a ASP .NET Core 5 application for creating API's. That works fine.
I also want to use this class library from a Blazor webassembly project. When I add the reference to the blazor project, I get the following error message:
The project references the ASP.NET Core shared framework, which is not supported by Blazor WebAssembly apps. Remove the framework reference if directly referenced, or the package reference that adds the framework reference.
This error message belongs to:
<Target Name="_FailIfReferencingAspNetCoreApp" BeforeTargets="ResolveRuntimePackAssets">
    <Error
      Code="BLAZORSDK1001"
      Text="The project references the ASP.NET Core shared framework, which is not supported by Blazor WebAssembly apps. Remove the framework reference if directly referenced, or the package reference that adds the framework reference."
      Condition="'@(FrameworkReference->WithMetadataValue('Identity', 'Microsoft.AspNetCore.App')->Count())' != '0'" />
  </Target>

When I remove the Nuget package Swashbuckle.AspNetCore.Annotations from my class library it all builds fine again.
I'm using the latest packages, frameworks etc. So:
.NET 5.0

.NET 5.0 Blazor webassembly project with all packages to latest version
.NET 5.0 Class library with Swashbuckle.AspNetCore.Annotations version 6.1.4

Thanks

hi ,i have the same problem，have you fix it?

Swashbuckle depends on types that don't support Blazor, so by extension neither does Swashbuckle.


How come vanilla finetuning of bert with ~ 100x more trainable parameters compared to bert + adapter takes just 2x time?

Environment info

adapter-transformers version: 3.0.1
Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
Python version: 3.7.13
PyTorch version (GPU?): 1.11.0+cu113 (True)
Tensorflow version (GPU?): 2.8.2 (True)
Flax version (CPU?/GPU?/TPU?): not installed (NA)
Jax version: not installed
JaxLib version: not installed
Using GPU in script?:Yes
Using distributed or parallel set-up in script?: No

Details
Finetuning bert model on imdb dataset takes ~20mins/epoch while bert finetuning with adapter takes ~12mins/epoch. The first case has 109M trainable parameters and the bert+adapter has less than 2M trainable parameters.

None

This issue was closed because it was stale for 14 days without any activity.


Icon request: LCM8.2

Package name: com.android.hasli.lmc82

Hello! Weʼre switching to a new system for icon requests in order to be able to better manage them. From now on, icon requests can be submitted here: https://forms.gle/Fx8vZAiWdW1Tyjo57. If your icon request hasnʼt yet been fulfiled, it has been copied to our new icon request database, meaning no action is required. Consequently, this issue will be closed.


test: add tests for popover animation

Closes https://github.com/yamada-ui/yamada-ui/issues/2070
Description

Add tests for animation for the Popover component
Target: packages/components/popover/src/popover-content.tsx

L37
L42
L47
L52

Current behavior (updates)

New behavior

Is this a breaking change (Yes/No):

No
Additional Information

I accidentally closed the previous pull request when I deleted a repository that I had forked by mistake. I have now created a new pull request to replace the closed one.
https://github.com/yamada-ui/yamada-ui/pull/2680


[BUG] content is not deleted immediately

Describe the bug
When I delete a column, then create a new column with the same name, the content of the column is persisted, but it should be deleted.
To Reproduce

Make sure that the new column will the same name as the column deleted
delete that column
create new column

Expected behavior
create new blank column (without text)
Screenshots
https://user-images.githubusercontent.com/38974541/171597631-24c9d862-2f2f-456a-813e-6f8a4fe346ab.mov
Desktop (please complete the following information):

OS: MacOs monterey 12.3.1
Version Obsidian 0.14.6 Installer 0.14.6

Additional context
Add any other context about the problem here.

Hi @imeed166 . If you want that behaivour. You can use this property

I have it enabled.
The column is deleted only when refreshing the database (going to another note, then back to database note).
When I stay on the same note, the content of the column is not deleted.

hmm okey. added as a bug
The reason is that exist 2 kind of data to make possible the dbfolder. The React table data and the dataview+yaml information
1.6.1 & 1.6.2 were adjsutments about differences between both types.
Will be added as a visual and added with minor version

1.6.3 is out with a huge battery of fixes


Release prep: update versions, tpn, change log

Codecov Report

Merging #14939 (93dd98d) into main (bed31ba) will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##            main   #14939   +/-   ##
======================================
  Coverage     65%      65%
======================================
  Files        554      554
  Lines      26127    26127
  Branches    3710     3710
======================================
  Hits       17080    17080
  Misses      8356     8356
  Partials     691      691


CNV-30656: Reorganization the order of the sub tabs on the configuration tab

Description:
https://issues.redhat.com/browse/CNV-30656
🎥 Demo
Before:

After:

/retest

/lgtm

/retest

/retest

/retest

/retest

@gouyang
made some changes check-tabs.spec.ts file can you have a look please? :)

/lgtm


Set-ClusterQuorum alway failed according to the steps

Dear admin，
We are following the guide on this page to create a FCI on azure environment, we ensure all the prerequisites were done and all previous steps were executed well, but when configure quorum as the page described:
Set-ClusterQuorum -CloudWitness -AccountName "Storage_Account_Name" -AccessKey "Storage_Account_Access_Key"
this commandlet always failed with below error:
Set-ClusterQuorum : An error occurred while validating access to Azure from cluster node "mynode".
Please check your storage account name, endpoint, and access key.
At line:1 char:1

Set-ClusterQuorum -CloudWitness -AccountName  "accountname" -AccessKey  ...

  + CategoryInfo          : NotSpecified: (:) [Set-ClusterQuorum], ClusterCmdletException
  + FullyQualifiedErrorId : Set-ClusterQuorum,Microsoft.FailoverClusters.PowerShell.SetClusterQuorumCommand

We don't know why this happened, and didn't search related topic over internet, we wonder whether the doc is inaccurate or miss some step?  is there any way to debug it?
Could you have a look?
Thank in advance.

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

ID: 5effc902-1603-b6c8-29ec-bcf55122bf65
Version Independent ID: 21a397f8-f13b-c3b8-70ec-cef1187c1709
Content: Tutorial: Configure availability group in multiple subnets - SQL Server on Azure VMs
Content Source: azure-sql/virtual-machines/windows/availability-group-manually-configure-tutorial-multi-subnet.md
Service: virtual-machines-sql
Sub-service: hadr
GitHub Login: @adbadram
Microsoft Alias: adbadram

@descartes123 Thank you for your feedback!  We have assigned this to the document author for further review.

I found it was because the cloud witness must use Standard storage, Azure Premium Storage is not supported.
I jump into this page from https://docs.microsoft.com/en-us/azure/azure-sql/virtual-machines/windows/failover-cluster-instance-premium-file-share-manually-configure?view=azuresql which led me to create a premium file share first but it was not support by CloudWitness, the reading experience is missleading.

#reassign:tarynpratt

Hi @descartes123 , Thank you for your submission! My sincere apologies for the delay it's taken to address your concern, we've been working through a very large backlog.
During this time, Git Issues have been deprecated as we've transitioned to a new feedback system. I've added your suggestion to our internal backlog (#250004) that we will continue addressing as priorities and resources allow.
We use your feedback to improve our documentation, so we are grateful for your input, and your time. I apologize for any inconvenience, and thank you for your patience and understanding.
Masha from the SQL Docs team
#please-close