model.speak doesn't work.

I'm trying to use a model.speak() by following your code(Lipsync Only), but the Live2D model doesn't do lipsync and output the content of audio file.
How can I fix this problem.
Error code is this:Uncaught (in promise) TypeError: model.speak is not a function
{   "name": "live2d",   "private": true,   "version": "0.0.0",   "type": "module",   "scripts": {     "dev": "vite",     "build": "vite build",     "preview": "vite preview"   },   "devDependencies": {     "vite": "^5.2.0"   },   "dependencies": {     "pixi-live2d-display": "^0.4.0",     "pixi.js": "^6.5.10"   } }

Are you using the npm or cdn version... Npm is not supported.
Use thos version only until npm is officially supported
https://github.com/RaSan147/pixi-live2d-display#via-cdn-lipsync-patched

I appreciate your quick response.
I'm using both npm such as import { Live2DModel, ModelSettings } from 'pixi-live2d-display'; and cdn which you suggest me in html.
Does that cause a problem?
Just in case I want you see my codes which I created.
html and html.
`<!doctype html>

Live2D

`
`import * as PIXI from 'pixi.js';
import { Live2DModel } from 'pixi-live2d-display';
// expose PIXI to window so that this plugin is able to
// reference window.PIXI.Ticker to automatically update Live2D models
window.PIXI = PIXI;
(async function () {
const app = new PIXI.Application({
view: document.getElementById('Model'),
autoStart: true,
backgroundAlpha: 0,
backgroundColor: 0x0000ff,
resizeTo: window
});
const model = await Live2DModel.from('./Hiyori/Hiyori.model3.json', { autoInteract: false });
// transforms
model.rotation = Math.PI;
model.skew.x = Math.PI;
model.scale.set(0.45);
model.anchor.set(0.5, 0.5);
model.position.set(window.innerWidth / 2, window.innerHeight / 0.85);
app.stage.addChild(model);
// background
let backgroundTexture = await PIXI.Texture.from('./test_picture.jpg');
let background = new PIXI.Sprite(backgroundTexture);
background.anchor.set(0.5);
background.x = app.screen.width / 2;
background.y = app.screen.height / 2;
background.width = app.screen.width;
background.height = app.screen.height;
app.stage.addChildAt(background, 0); // Add the background first
var audio_link =<EMAIL_ADDRESS>// [relative or full url path] [mp3 or wav file]
var volume = 1; // [Optional arg, can be null or empty] [0.0 - 1.0]
var expression = 4; // [Optional arg, can be null or empty] [index|name of expression]
var resetExpression = true; // [Optional arg, can be null or empty] [true|false] [default: true] [if true, expression will be reset to default after animation is over]
model.speak(audio_link, { volume: volume, expression: expression, resetExpression: resetExpression })
// Or if you want to keep some things default
model.speak(audio_link)
model.speak(audio_link, { volume: volume })
model.speak(audio_link, { expression: expression, resetExpression: resetExpression })
})();`

Oh.... sorry I made a mistake.
html and js

as you can see, 1st its loading from the CDN
but later its getting overwritten by the NPM (unsupported version)
so it won't work. kindly comment out the NPM version (its under work with major changes)
sorry didn't remove that import statements from example...

I tried the code which you gave me.
Moreover, I changed the way to load Live2Dmodel as this:
const model = await PIXI.live2d.Live2DModel.from('./Hiyori/Hiyori.model3.json', { autoInteract: false });
As a result, new problem occurred.
Erro code:Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'Live2DModel')

The error which I told you above was fixed that the path of live2d model wasn't correct.
I'm sorry for the inconvenience.
However, I got extra errors.
index.min.js:1  The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page.
[SoundManager] Error occurred on<EMAIL_ADDRESS>DOMException: play() failed because the user didn't interact with the document first.
[MotionManager(Hiyori)] Failed to play audio  DOMException: play() failed because the user didn't interact with the document first.

It is a browser safety, browser doesn't allow auto play if the display was
untouched, easy walk around is either manually/js clicking something (that
doesn't fire an on click event)
And don't apologize buddy, its the issue page, we also faced similar issues
in life.
On Wed, Apr 10, 2024, 12:16 PM ShionSeal @.***> wrote:

The error which I told you above was fixed that the path of live2d model
wasn't correct.
I'm sorry for the inconvenience.
However, I got extra errors.
index.min.js:1 The AudioContext was not allowed to start. It must be
resumed (or created) after a user gesture on the page.
[SoundManager] Error occurred on "
@.***/playground/test.mp3"
DOMException: play() failed because the user didn't interact with the
document first.
[MotionManager(Hiyori)] Failed to play audio DOMException: play() failed
because the user didn't interact with the document first.
—
Reply to this email directly, view it on GitHub
https://github.com/RaSan147/pixi-live2d-display/issues/4#issuecomment-2046610558,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIDNL2ZMRF7SJJ645FXDLTDY4TKNBAVCNFSM6AAAAABF63QE5GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBWGYYTANJVHA
.
You are receiving this because you commented.Message ID:
@.***>

Finally, model.speak and its lipsync worked!!!
Thank you very much!!!


Update SoundRecorder component to Kodular sources

This PR imports Kodular-Creator SoundRecorder component changes. New functionality is listed as follows:

New Methods: Pause and Resume
New Events: PausedRecording and ResumedRecording

@barreeeiroo Also, once you finish updating the docstrings, make sure to run ant docs and commit the updated markdown and HTML files for the sound recorder.


http3.RoundTripper.Dial signature

The signature for the dialer is Dial func(network, addr string, tlsCfg *tls.Config, cfg *quic.Config) (quic.EarlySession, error) while the docs state that it will use quic.DialAddr by default<EMAIL_ADDRESS>There's a couple of issues with this:

quic.DialAddr has a different signature, not returning an EarlySession. Perhaps this is meant to be quic.DialAddrEarly?
Even the signature of quic.DialAddrEarly doesn't quite match what the RoundTripper expects (extra network parameter), so basically there are no functions in the library that can be used directly.

I could make a PR but wanted to check first if you had any suggestions which way to address this. Could just fix the doc string, or come up with another dialer that can be plugged into the RoundTripper directly.

This is the logic behind it:
https://github.com/lucas-clemente/quic-go/blob/af3e1008ad94c64d5a60d1d7b2ddc579bca4ca79/http3/client.go#L107-L111
So yes, it does use DialAddrEarly, not DialAddr.


Add support for ChangePasswordForm

Adds support for changing the password with the ChangePasswordForm.
How to verify

Checkout this branch.
Build it ($ npm run build).
Link it ($ npm link).
Checkout the branch feature-change-password-form of the React example app.
Link to our React SDK feature branch ($ npm link react-stormpath).
Start the application ($ npm start).
Navigate to http://localhost:3000/forgot.
Reset the password for one of your existing accounts.
In the reset password email that you received, copy the value of the sptoken querystring for the reset password URL.
Navigate to http://localhost:3000/forgot/change?sptoken=THE_SPTOKEN_VALUE_FROM_EMAIL_URL.
Verify that the form works as expected.
Customize the form according to the docs.
Verify that the form works as expected.

Fixes #49.

Everything works just fine except that when I enter a new password that doesn't follow the password policy, I get this error:

The reset password token is not valid. Please try resetting your password again.

It's actually the same behaviour as the Angular.js SDK. But agree, it's certainly not nice UX. Will try to handle the error message.

@timothyej Issues should be fixed. Please review again :)

Okay... This is ready to be reviewed again:)

Thanks, I've verified that everything works as expected now :)

Just to confirm: this feature has been added to npm stormpath-react 1.1.1 right?


Support for COMBINE Archives?

Is your feature request related to a problem? Please describe.
Frequently we encounter models encoded as combine archives. Currently, i dont think those can be directly loaded into SME. I wonder if it would make sense to just open them up automatically using libCombine.
Describe the solution you'd like
Add libcombine to the dependencies, and if an archive is loaded into SME, use it to import an SBML model.

@fbergmann Thanks, sounds like a good idea to me. Could you point me to a small combine archive I should use for testing?

A very basic example would be https://share.getcloudapp.com/geuyOgkr where i just wrapped one of SME's examples into an archive. We expect a large number of VCell files in a similar format.

@fbergmann the latest version (1.3.2) should now support reading combine archives - let me know if there's anything missing or not working

thanks, that is working great so far. I'll go though all vcell models once i'm back and file issues if some come up. The files i've tested for now work nicely.


Profile Added

_ No description provided. _

update your branch then create pr
OR
again fork then do changes


Generate R/Python code

In the same way we can generate e.g. NONMEM code, there should be a tab for R/Python code generation.

This has been implemented


Threshold sensor delay feature

Description:
Adds optional on_delay and off_delay parameters to the Threshold binary sensor component.
The primary use-case here is being able to translate energy meter data from a washing machine in to a "load is running" binary sensor. The energy fluctuates wildly during the load, including hitting zero many times during the wash cycle. By utilizing off_delay, the "load running" sensor will only switch to off after the washer has been idle for enough time.
This could also be used to create a binary sensor for something like a door being left open too long (by setting an on_delay) or any other sort of trigger that is only a problem if the state remains past a threshold for too long.
In the end, it removes the need to create automations and abusing Input Booleans just for the for feature in a state trigger.
Related issue (if applicable): n/a
Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.github.io#3168
Example entry for configuration.yaml (if applicable):
# Example configuration.yaml entry
binary_sensor:
  - platform: threshold
    threshold: 15
    type: lower
    entity_id: sensor.random

    # If present, sensor will only switch to on if the threshold is met for this amount of time
    on_delay:
      hours: 1
      minutes: 10
      seconds: 5

    # Same as above, but for the sensor switching to off
    off_delay:
      hours: 1
      minutes: 10
      seconds: 5

Checklist:
If user exposed functionality or configuration variables are added/changed:

[x] Documentation added/updated in home-assistant.github.io

If the code does not interact with devices:

[x] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[x] Tests have been added to verify that the new code works.

Hold off on merging this - I identified a serious bug (caught by noticing a single line missing from coveralls!)

@balloob @fabaff I'm not sure about that. As we create this sensor we had a discussion about competition to template sensor. We acepted that at the end that it will be a bit easyer for user they not want to use that sensor.
This PR reimplemt the same (ok at the moment it have wrong async parts) logic as we all ready have in script and automation component and all they based on it (like alarm).
So I'm not a big fan of this fake code only stuff while he reimplement every time some code they we have already with scripts, automation or alarm component.
Other platform can also want to have a feature likr this and it end up with a lot component/platform they copy that to have same functionality. So I think we should not extend this platform with that while we can not explain why the other platform can not use the same fake stuff.
I think a offset component whould be better. We had already some automation component that wraps sensor/actors and at the end it replace some automation/scripts.

@pvizeli: My philosophy is this: Right now, the only way to accomplish the use-case I stated is to create an input_boolean (which is an abuse of that platform as its not input at all), create an automation that uses for to accomplish the time delay and sets the input_boolean, and then create a template binary_sensor that simply turns that input_boolean in to a binary sensor. It's a mess that results in a misused component, an automation that isn't really automating anything, and a template sensor which are already not very user-friendly.
This is the reason that I felt that this is better solved by adding functionality to one of the meta-sensors. I would actually like to expand this functionality to allow hysteresis in addition to the time delays in this PR.

I ser 2 variants: 1) we create a new platform like offset binary sensor that implement this logic for every binary sensor type (wrap it into new entity) or variabt 2) we extend the base template binary sensor to support more things as only threshould stuff with that code.

How about implementing support for the for: statement in conjunction with the numeric_state trigger in automations? Wouldn't that also make these use cases possible? And it something alot of people would be happy to see.

Respectfully, I still think this functionality should be added to the threshold sensor. To address specific suggestions:
@pvizeli:
For both of your suggestions, I would cry YAGNI. For most binary sensors it would make no sense - anything that is reading directly from a platform should not have its state modified with a delay. That's the job of the meta-sensors like threshold, trend, etc. And for those sensors, delay might make sense, but let's not implement it until we see a specific use-case that demands it.
@fanaticDavid:
I totally agree that for should be added to numeric_state! In fact, I might go ahead and do that myself now that I have experience with how to do it. However, I think that we should STILL have this functionality directly in the threshold sensor. My overall thought is this: Automations should not be used to simply shift the state of another entity. That's the entire reason things like the template sensor, threshold sensor, and other meta-sensors exist: for usability. Not to mention it also reduces the number of events that need to be fired and processed for every state change on monitored entities.

@fanaticDavid good point. Instead this we can also add for to numeric_state that end up as alias for template trigger.
Anyway. The discussion is not if we merge this but where is the best place for that code (and I think also hard work of @OverloadUT) to have a real usage for all users and not only a handfull 'I don't like template' users.

Pascal has a good point, this is useful code for many different binary sensors, even ones that are not synthetic. It's also important to note that the logic to keep track of a state can have a bunch of moving parts. It's therefore better to see if we can keep it in 1 place.
List of platforms that would need similar code:

automation.state (already has it)
automation.numeric_state
Template binary sensor

I think that it makes sense to introduce a new method in helpers.event. We can pretty much extract the logic from the state automation trigger: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/automation/state.py#L36
But instead of checking against the values of the state, we'll introduce a new async_check_func that we will yield against to validate that the state is still the same.
@callback
async_track_same_state(hass, orig_value, async_check_func, period, callback, entity_ids=None):
    …

    @asyncio.coroutine
    def state_for_cancel_listener(entity_id, old_state, new_state):
        current_value = yield from async_check_func()

        if current_value == orig_value:
            return

        clear_listener()

    …

Once we have this helper function, adding this functionality to all the above mentioned places should be easy. I prefer this approach over a binary sensor that would just do a delayed turn on/off. Although that approach is the most decoupled solution, it will make configuring Home Assistant a bit more cumbersome.
This approach would be very similar to how we implemented scripts.

Any updates on this PR?

@andrey-git: I still absolutely want to do this, but haven't had the time.
I poked around the code to see how to implement @balloob's suggestion and I admit that I find myself not fully understanding how this new architecture would be implemented, so if anyone wants to help out it would definitely speed things up!
In the meantime you can toss my threshold.py file into Hass as a custom component and it works perfectly if you just want the functionality

I try to implement this

https://github.com/home-assistant/home-assistant/pull/9273


docs(version-support-status): remove outdated info, resolve inconsistencies

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Docs update.
What is the current behavior? (You can also link to an open issue here)
https://docs.angularjs.org/misc/version-support-status is outdated, it talks about August 2018 in future tense.
What is the new behavior (if this is a feature change)?
Outdated info is removed, inconsistencies (e.g. around 1.2 support) are resolved.
Does this PR introduce a breaking change?
No.
Please check if the PR fulfills these requirements

[x] The commit message follows our guidelines
Fix/Feature: Docs have been added/updated
Fix/Feature: Tests have been added; existing tests pass

Other information:

Preview of the page after applying my PR:


Speaker pod crashing with no obvious reason

Deployed the latest operator with:

kubectl apply -f https://raw.githubusercontent.com/metallb/metallb-operator/main/bin/metallb-operator.yaml

Deployed an metallb instance with the following CR:

apiVersion: metallb.io/v1beta1
kind: MetalLB
metadata:
  name: metallb
  namespace: metallb-system

The speaker pod is crashing:

metallb-system         speaker-mfgjf                                          0/1     CrashLoopBackOff   6 (116s ago)   7m57s

Logs:
{"branch":"main","caller":"main.go:93","commit":"b7a8f7b3","goversion":"gc / go1.17.1 / amd64","level":"info","msg":"MetalLB speaker starting (commit b7a8f7b3, branch main)","ts":"2022-06-14T17:53:35Z","version":""}
{"caller":"announcer.go:110","event":"createARPResponder","interface":"ens192","level":"info","msg":"created ARP responder for interface","ts":"2022-06-14T17:53:35Z"}
{"caller":"announcer.go:119","event":"createNDPResponder","interface":"ens192","level":"info","msg":"created NDP responder for interface","ts":"2022-06-14T17:53:35Z"}
{"caller":"announcer.go:119","event":"createNDPResponder","interface":"cali377055217ca","level":"info","msg":"created NDP responder for interface","ts":"2022-06-14T17:53:35Z"}
{"caller":"announcer.go:110","event":"createARPResponder","interface":"flannel.1","level":"info","msg":"created ARP responder for interface","ts":"2022-06-14T17:53:35Z"}
{"caller":"announcer.go:119","event":"createNDPResponder","interface":"flannel.1","level":"info","msg":"created NDP responder for interface","ts":"2022-06-14T17:53:35Z"}
{"caller":"announcer.go:119","event":"createNDPResponder","interface":"calie25fed0eecf","level":"info","msg":"created NDP responder for interface","ts":"2022-06-14T17:53:35Z"}
{"caller":"announcer.go:119","event":"createNDPResponder","interface":"cali62c245236e1","level":"info","msg":"created NDP responder for interface","ts":"2022-06-14T17:53:35Z"}
{"caller":"announcer.go:119","event":"createNDPResponder","interface":"calif2fbdc15e04","level":"info","msg":"created NDP responder for interface","ts":"2022-06-14T17:53:35Z"}
{"caller":"announcer.go:119","event":"createNDPResponder","interface":"cali447f86f66fa","level":"info","msg":"created NDP responder for interface","ts":"2022-06-14T17:53:35Z"}
{"caller":"announcer.go:119","event":"createNDPResponder","interface":"califf2f852767b","level":"info","msg":"created NDP responder for interface","ts":"2022-06-14T17:53:35Z"}
{"caller":"announcer.go:119","event":"createNDPResponder","interface":"cali9b1d50be8c1","level":"info","msg":"created NDP responder for interface","ts":"2022-06-14T17:53:35Z"}
{"caller":"announcer.go:119","event":"createNDPResponder","interface":"cali4f93b48cc63","level":"info","msg":"created NDP responder for interface","ts":"2022-06-14T17:53:35Z"}
{"caller":"announcer.go:119","event":"createNDPResponder","interface":"cali5a96910b56d","level":"info","msg":"created NDP responder for interface","ts":"2022-06-14T17:53:35Z"}
{"caller":"announcer.go:119","event":"createNDPResponder","interface":"cali007b5c065df","level":"info","msg":"created NDP responder for interface","ts":"2022-06-14T17:53:35Z"}
{"caller":"announcer.go:119","event":"createNDPResponder","interface":"cali95cbe2e71f6","level":"info","msg":"created NDP responder for interface","ts":"2022-06-14T17:53:35Z"}
{"caller":"announcer.go:119","event":"createNDPResponder","interface":"cali0d39fc72b8c","level":"info","msg":"created NDP responder for interface","ts":"2022-06-14T17:53:35Z"}
{"caller":"announcer.go:119","event":"createNDPResponder","interface":"cali30b49fd9005","level":"info","msg":"created NDP responder for interface","ts":"2022-06-14T17:53:35Z"}
{"caller":"announcer.go:119","event":"createNDPResponder","interface":"cali7a9ef3fe278","level":"info","msg":"created NDP responder for interface","ts":"2022-06-14T17:53:35Z"}
{"caller":"announcer.go:119","event":"createNDPResponder","interface":"calidafe480415c","level":"info","msg":"created NDP responder for interface","ts":"2022-06-14T17:53:35Z"}
{"caller":"announcer.go:119","event":"createNDPResponder","interface":"cali060574df8e2","level":"info","msg":"created NDP responder for interface","ts":"2022-06-14T17:53:35Z"}

Pod describe:
Name:         speaker-mfgjf
Namespace:    metallb-system
Priority:     0
Node:         g4lzrjd4ql-worker-9v7frw-567f85c786-9n2h4/<IP_ADDRESS>
Start Time:   Tue, 14 Jun 2022 19:50:15 +0200
Labels:       app=metallb
              component=speaker
              controller-revision-hash=6446497b75
              pod-template-generation=1
Annotations:  prometheus.io/port: 7472
              prometheus.io/scrape: true
Status:       Running
IP:           <IP_ADDRESS>
IPs:
  IP:           <IP_ADDRESS>
Controlled By:  DaemonSet/speaker
Containers:
  speaker:
    Container ID:  containerd://89325c6f2a872784828cfec8142113ef6d882edfe179a60e72bdfd341ee58589
    Image:         quay.io/metallb/speaker:main
    Image ID:      quay.io/metallb/speaker@sha256:bc291359a80d079d5c66f307afaf8193819b689c272505260efad060f56cc2fa
    Ports:         7472/TCP, 7946/TCP, 7946/UDP
    Host Ports:    7472/TCP, 7946/TCP, 7946/UDP
    Command:
      /speaker
    Args:
      --port=7472
      --log-level=info
      --ml-bindport=7946
    State:          Waiting
      Reason:       CrashLoopBackOff
    Last State:     Terminated
      Reason:       Error
      Exit Code:    1
      Started:      Tue, 14 Jun 2022 19:56:16 +0200
      Finished:     Tue, 14 Jun 2022 19:56:16 +0200
    Ready:          False
    Restart Count:  6
    Liveness:       http-get http://:monitoring/metrics delay=10s timeout=1s period=10s #success=1 #failure=3
    Readiness:      http-get http://:monitoring/metrics delay=10s timeout=1s period=10s #success=1 #failure=3
    Environment:
      METALLB_NODE_NAME:       (v1:spec.nodeName)
      METALLB_HOST:            (v1:status.hostIP)
      METALLB_ML_BIND_ADDR:    (v1:status.podIP)
      METALLB_ML_LABELS:      app=metallb,component=speaker
      METALLB_ML_SECRET_KEY:  <set to the key 'secretkey' in secret 'memberlist'>  Optional: false
    Mounts:
      /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-wd24l (ro)
Conditions:
  Type              Status
  Initialized       True
  Ready             False
  ContainersReady   False
  PodScheduled      True
Volumes:
  kube-api-access-wd24l:
    Type:                    Projected (a volume that contains injected data from multiple sources)
    TokenExpirationSeconds:  3607
    ConfigMapName:           kube-root-ca.crt
    ConfigMapOptional:       <nil>
    DownwardAPI:             true
QoS Class:                   BestEffort
Node-Selectors:              kubernetes.io/os=linux
Tolerations:                 node-role.kubernetes.io/control-plane:NoSchedule op=Exists
                             node-role.kubernetes.io/master:NoSchedule op=Exists
                             node.kubernetes.io/disk-pressure:NoSchedule op=Exists
                             node.kubernetes.io/memory-pressure:NoSchedule op=Exists
                             node.kubernetes.io/network-unavailable:NoSchedule op=Exists
                             node.kubernetes.io/not-ready:NoExecute op=Exists
                             node.kubernetes.io/pid-pressure:NoSchedule op=Exists
                             node.kubernetes.io/unreachable:NoExecute op=Exists
                             node.kubernetes.io/unschedulable:NoSchedule op=Exists
Events:
  Type     Reason     Age                     From               Message
  ----     ------     ----                    ----               -------
  Normal   Scheduled  8m54s                   default-scheduler  Successfully assigned metallb-system/speaker-mfgjf to g4lzrjd4ql-worker-9v7frw-567f85c786-9n2h4
  Warning  Failed     8m54s (x2 over 8m54s)   kubelet            Error: secret "memberlist" not found
  Normal   Pulled     7m50s (x6 over 8m54s)   kubelet            Container image "quay.io/metallb/speaker:main" already present on machine
  Normal   Created    7m50s (x4 over 8m43s)   kubelet            Created container speaker
  Normal   Started    7m50s (x4 over 8m43s)   kubelet            Started container speaker
  Warning  BackOff    3m48s (x32 over 8m41s)  kubelet            Back-off restarting failed container

Wasn't able to reproduce this.
It may have been because of some ongoing synchronization between the operator and metallb itself (please remember the main branch is used for development).
Closing this issue, feel free to reopen if it appears using the stable tags.


Failed to receive response from service [get_access_token]

logid=794248 Failed to receive response from service [get_access_token] remote_server=<IP_ADDRESS>:6379 latency=43us error_msg=[E112]Not connected to <IP_ADDRESS>:6379 yet, server_id=1 [R1][E112]Not connected to <IP_ADDRESS>:6379 yet, server_id=1
这需要修改哪个配置文件啊？ 之前没问题，现在突然出现这个问题。

logid=794248 Failed to receive response from service [get_access_token]

说明 backend.conf 中 get_access_token service 请求失败，需要定位该 service 相关问题


Split resource types vocabulary

Currrently there is one vocabulary for resource type, but in the deposit from it's used in 2 places; 1) To select the resource type of the record itself and 2) to select the resource type of the related works.
These 2 resource types should be differente vocabularies.

This can be controlled in the existing vocabulary by the tags depositable (for the resource itself) and linkable (for related works). Why isn't that working?

Tthank you very much for pointing this out! I should have checked the docs before opening the issue ...


Copyright headers

Code files (not config) need a copyright header. It should look like:
/*
Copyright 2018 The Helm Authors All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

We would recommend "Copyright The Helm Authors." instead of "Copyright 2018 The Helm Authors All rights reserved."

@mattfarina @dankohn sounds good, will get this taken care of


error to execute pokegrinder

Describe the bug
When I run the pokegrinder.exe, it shows a error
json.decoder.JSONDecodeError: Expecting value: line 2 column 14 (char 15)
(628) Failed to execute script 'maind' due to unhandled exception!
I think it is with my token, but I dont know what to do
To Reproduce
Steps to reproduce the behavior:

Place my token, than place my channel
Click on pokegrinder
See error

Expected behavior
I expected to run the PokeGrinder
Screenshots

Describe the bug When I run the pokegrinder.exe, it shows a error json.decoder.JSONDecodeError: Expecting value: line 2 column 14 (char 15) (628) Failed to execute script 'maind' due to unhandled exception! I think it is with my token, but I dont know what to do
To Reproduce Steps to reproduce the behavior:

Place my token, than place my channel
Click on pokegrinder
See error

Expected behavior I expected to run the PokeGrinder
Screenshots

Hello, can you please check that the token you put in is between double quotes and the channel id isn't between double quotes?

Please make sure your config looks like this :-

It Works, my channel was in “ “, and before that, my token wasnt in “ “, so thats it, Thanks
Enviado do Emailhttps://go.microsoft.com/fwlink/?LinkId=550986 para Windows
De: Mehul @.>
Enviado:terça-feira, 4 de outubro de 2022 14:25
Para: @.>
@.>; @.>
Assunto: Re: [MehulKhanna/PokeGrinder] error to execute pokegrinder (Issue #5)
Describe the bug When I run the pokegrinder.exe, it shows a error json.decoder.JSONDecodeError: Expecting value: line 2 column 14 (char 15) (628) Failed to execute script 'maind' due to unhandled exception! I think it is with my token, but I dont know what to do
To Reproduce Steps to reproduce the behavior:

Place my token, than place my channel
Click on pokegrinder
See error

Expected behavior I expected to run the PokeGrinder
Screenshots [image] https://user-images.githubusercontent.com/61913056/193479347-e62eda9e-dcd5-4909-8649-2fc43719edb9.png
Hello, can you please check that the token you put in is between double quotes and the channel id isn't between double quotes?
Please make sure your config looks like this :-
[image]https://user-images.githubusercontent.com/110606617/193885758-fbe83ce9-995b-439e-b483-e38012803d50.png
—
Reply to this email directly, view it on GitHubhttps://github.com/MehulKhanna/PokeGrinder/issues/5#issuecomment-1267324785, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOYLPYGTEHZN54XLPEPJLHLWBRSBHANCNFSM6AAAAAAQ3C6SR4.
You are receiving this because you authored the thread.Message ID: @.***>

It Works, my channel was in “ “, and before that, my token wasnt in “ “, so thats it, Thanks Enviado do Emailhttps://go.microsoft.com/fwlink/?LinkId=550986 para Windows De: Mehul @.> Enviado:terça-feira, 4 de outubro de 2022 14:25 Para: @.> @.>; @.> Assunto: Re: [MehulKhanna/PokeGrinder] error to execute pokegrinder (Issue #5) Describe the bug When I run the pokegrinder.exe, it shows a error json.decoder.JSONDecodeError: Expecting value: line 2 column 14 (char 15) (628) Failed to execute script 'maind' due to unhandled exception! I think it is with my token, but I dont know what to do To Reproduce Steps to reproduce the behavior: 1. Place my token, than place my channel 2. Click on pokegrinder 3. See error Expected behavior I expected to run the PokeGrinder Screenshots [image] https://user-images.githubusercontent.com/61913056/193479347-e62eda9e-dcd5-4909-8649-2fc43719edb9.png Hello, can you please check that the token you put in is between double quotes and the channel id isn't between double quotes? Please make sure your config looks like this :- [image]https://user-images.githubusercontent.com/110606617/193885758-fbe83ce9-995b-439e-b483-e38012803d50.png — Reply to this email directly, view it on GitHub<#5 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOYLPYGTEHZN54XLPEPJLHLWBRSBHANCNFSM6AAAAAAQ3C6SR4.


"enabled: false" is added to the access-mode state config object (not needed)

@miopa can you expand a bit on this?

check access-point state file, fconf is adding "enable:false" to the "config" properties.


Update transform-data-using-machine-learning.md

Adding type and API Version to Linked Service to give working json, as current version doesn't deploy

@eedwards36 : Thanks for your contribution! The author, @shengcmsft, has been notified to review your proposed change.

@eedwards36 Thank you for catching that!!

#sign-off

@JennieHubbard: I'm sorry - only the author of this article, @shengcmsft, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.


Potential dask-expr compatitbility errors

We're seeing some consistent unit test failures with dask-expr 1.0.12.  Example

________________________ test_batch_by_band[bounds-on1] ________________________

parquet_ensemble = <tape.ensemble.Ensemble object at 0x7fbac85f8250>
func_label = 'bounds', on = ['ps1_objid', 'filterName']

    @pytest.mark.parametrize("on", [None, ["ps1_objid", "filterName"], ["filterName", "ps1_objid"]])
    @pytest.mark.parametrize("func_label", ["mean", "bounds"])
    def test_batch_by_band(parquet_ensemble, func_label, on):
        """
        Test that ensemble.batch(by_band=True) works as intended.
        """

        if func_label == "mean":

            def my_mean(flux):
                """returns a single value"""
                return np.mean(flux)

            res = parquet_ensemble.batch(my_mean, parquet_ensemble._flux_col, on=on, by_band=True)

            parquet_ensemble.source.query(f"{parquet_ensemble._band_col}=='g'").update_ensemble()
            filter_res = parquet_ensemble.batch(my_mean, parquet_ensemble._flux_col, on=on, by_band=False)

            # An EnsembleFrame should be returned
            assert isinstance(res, EnsembleFrame)

            # Make sure we get all the expected columns
            assert all([col in res.columns for col in ["result_g", "result_r"]])

            # These should be equivalent
            # [expr] need this TODO: investigate typing issue
            filter_res.index = filter_res.index.astype("int")
            assert (
                res.loc[8847[293](https://github.com/lincc-frameworks/tape/actions/runs/8821459751/job/24217361704?pr=433#step:5:294)5274829959]["result_g"]
                .compute()
                .equals(filter_res.loc[88472935274829959]["result"].compute())
            )

        elif func_label == "bounds":

            def my_bounds(flux):
                """returns a series"""
                return pd.Series({"min": np.min(flux), "max": np.max(flux)})

            res = parquet_ensemble.batch(
                my_bounds, "psFlux", on=on, by_band=True, meta={"min": float, "max": float}
            )

            parquet_ensemble.source.query(f"{parquet_ensemble._band_col}=='g'").update_ensemble()
            filter_res = parquet_ensemble.batch(
                my_bounds, "psFlux", on=on, by_band=False, meta={"min": float, "max": float}
            )

            # An EnsembleFrame should be returned
            assert isinstance(res, EnsembleFrame)

            # Make sure we get all the expected columns
            assert all([col in res.columns for col in ["max_g", "max_r", "min_g", "min_r"]])

            # These should be equivalent

            # [expr] need this TODO: investigate typing issue
            filter_res.index = filter_res.index.astype("int")

>           assert (
                res.loc[884729352748[299](https://github.com/lincc-frameworks/tape/actions/runs/8821459751/job/24217361704?pr=433#step:5:300)59]["max_g"]
                .compute()
                .equals(filter_res.loc[88472935274829959]["max"].compute())
            )
E           AssertionError: assert False
E            +  where False = <bound method NDFrame.equals of ps1_objid\n88472935274829959    0.0\nName: max_g, dtype: float32>(ps1_objid\n88472935274829959   NaN\nName: max, dtype: float32)
E            +    where <bound method NDFrame.equals of ps1_objid\n88472935274829959    0.0\nName: max_g, dtype: float32> = ps1_objid\n88472935274829959    0.0\nName: max_g, dtype: float32.equals
E            +      where ps1_objid\n88472935274829959    0.0\nName: max_g, dtype: float32 = <bound method FrameBase.compute of Dask Series Structure:\nnpartitions=1\n    object\n       ...\nDask Name: getitem, 11 e...Expr=(LocUnknown(frame=MapPartitions(TapeFrame), iindexer=slice(88472935274829959,<PHONE_NUMBER>4829959, None)))['max_g']>()
E            +        where <bound method FrameBase.compute of Dask Series Structure:\nnpartitions=1\n    object\n       ...\nDask Name: getitem, 11 e...Expr=(LocUnknown(frame=MapPartitions(TapeFrame), iindexer=slice(88472935274829959,<PHONE_NUMBER>4829959, None)))['max_g']> = Dask Series Structure:\nnpartitions=1\n    object\n       ...\nDask Name: getitem, 11 expressions\nExpr=(LocUnknown(frame=MapPartitions(TapeFrame), iindexer=slice(88472935274829959,<PHONE_NUMBER>4829959, None)))['max_g'].compute
E            +    and   ps1_objid\n88472935274829959   NaN\nName: max, dtype: float32 = <bound method FrameBase.compute of Dask Series Structure:\nnpartitions=1\n    object\n       ...\nDask Name: getitem, 11 e...s(TapeFrame), other='ps1_objid')), dtypes='int')), iindexer=slice(88472935274829959,<PHONE_NUMBER>4829959, None)))['max']>()
E            +      where <bound method FrameBase.compute of Dask Series Structure:\nnpartitions=1\n    object\n       ...\nDask Name: getitem, 11 e...s(TapeFrame), other='ps1_objid')), dtypes='int')), iindexer=slice(88472935274829959,<PHONE_NUMBER>4829959, None)))['max']> = Dask Series Structure:\nnpartitions=1\n    object\n       ...\nDask Name: getitem, 11 expressions\nExpr=(LocUnknown(frame=A...ns(TapeFrame), other='ps1_objid')), dtypes='int')), iindexer=slice(88472935274829959,<PHONE_NUMBER>4829959, None)))['max'].compute

So https://github.com/lincc-frameworks/tape/pull/433 prevents the first error from showing up in our project but the latter error seems to have been present since the initial PR that added dask-expr to TAPE. Some useful examples

https://github.com/lincc-frameworks/tape/pull/436 is on an old branch only up to the commit where we merged in dask-expr to TAPE but with some changes to pin dask and dask-expr to the version we used at the time (as seen from the listed installed dependencies here https://github.com/lincc-frameworks/tape/actions/runs/8442515644/job/23124089726) and pinning to python<=3.11.8.  Here we are still seeing the above failures for test_batch_by_band https://github.com/lincc-frameworks/tape/actions/runs/8853784507/job/24315393322?pr=436
https://github.com/lincc-frameworks/tape/pull/439 does the same changes of pinning to python<=3.11.8 and is built on the final PR to TAPE before we added dask-expr. This seems to be running without the above failures https://github.com/lincc-frameworks/tape/actions/runs/8853992787/job/24316049932?pr=439
On the current build, if I remove all tests except for the failing test, test_batch_by_band we don't typically see failures. An example of this is https://github.com/lincc-frameworks/tape/pull/435/files. Whatever flakiness is happening seems to be related to maybe test order or concurrent tests


meek-lite support

Hello,
Is there any plan to add meek-lite to be used in the custom bridges?

Not really. Basically, meek aka. domain fronting is on the way out. A lot of hosting providers have already taken measures or have announced to install them in the future against it.
The ones who don't do that (yet), should be handled with care and are needed for special purposes, e.g. bootstrapping Snowflake.
Why are you asking?

@tladesignz
I think meek is much harder to be detected and also gives an option to send tor traffic over CDN providers regardless of using domain fronting. It can hide the meek server IP address behind CDN.
There are some small/medium CDN providers still supporting domain fronting.
Snowflake at the end is p2p connection and can not be integrated with proxy chain tools.


Mousepad effects not behaving

For some reason unless I specifically run print() (with or without an argument) right in front of Chroma.Mousemat effect set and apply calls, there's no reaction on the Razer mug (which is being detected as a chroma mouse pad).
This makes my python script output useless lines of emptiness. Tested with Python3.5 lib compiled from current source 454ae1d899758be23a7442aa91afe1613ddfdbe5
Were you able to test effects on a mouse pad? I tried running commands manually in python CLI but I'm getting very inconsistent results. This applies to setColor, setbyGrid and other effects (most never start even after running applyLED())
I'm gonna try to troubleshoot it a bit more by myself as well but maybe you have an idea as to why

That's interesting. I encountered similar problems before with my chroma mouse. I don't really know how they were solved(maybe a synapse update or a restart), but I just compiled the current version of ChromaPy and all my Firefly(Mousemat), Ornata(Keyboard) and Mamba(Mouse) are behaving as they should.
Mousepad.setColor((255,0,0))
Mousepad.applyLED()
are working as well as
Mousepad.setWave(1)
Got a feeling like they are due to the Chroma SDK itself.

Interesting. I might try using different SDK versions to verify as I have an archive of that
Mouse works fine, it's just the mousepad in this case. Thanks for your input, I'll look into it on my end a bit more

If I remember right, I had a python script running and nothing happened. So I added a print to real-time-debug the values and et voilà it worked.
Definitely keep me posted! :)


blogSidebarTitle: 'Recent posts' seems not translated

Hi
I couldn't find a tag name for "Recent Posts" to translate,
seems its not translated.
Is it translatable?
I have three locales: en, fa, ar

Thanks for reporting.
I'm tracking remaining untranslatable labels here so I'm closing this issue: https://github.com/facebook/docusaurus/issues/4542


Multi tenancy support

Hi guys,
We are currently building out our own OAuth server using IdentityServer4 for SSO between our various apps. However our application is multi-tenant, with hundreds of clients.
I noticed this thread regarding identity server 3 around using separate cookies for each "tenant" which would allow us to big "logged in" to more than 1 client at a time.
https://github.com/IdentityServer/IdentityServer3/issues/947
Has this progressed at all with Identity Server 4?
Currently it seems the only way to manage this would be to have a separate domain for each client on the identity server? With hundreds of client this would not be ideal, and a separate cookie would be much easier to manage. (eg idsrv_)
Do you have any opinions or other options for how this design should be handled?
Thanks,
Brad

So what we're planning is:

You have control over all of the UI and login code, so you can issue multiple cookies (or a single cookie with multiple identities). This cookie would probably be different than the IdentityServer cookie.

You need to use our cookie to communicate to IdentityServer which identity is the "current" one.

You can implement the IAuthorizeInteractionResponseGenerator which allows your logic to decide if the user needs to be prompted for login or be redirected to a custom page before the authorization response is created. This custom page could be your "account chooser" page. Your logic would perhaps check if the tenant for the current authorization requests matches the current identity's tenant, then success. Otherwise send the user to an account chooser, or login page.

We don't have any docs on this, but if you want to give it a try and let us know if you're able to do what you want to, we'd appreciate it. Then if you run into any roadblocks, you can let us know so we can make changes.

I've created a small example application on how we have tackled multitenancy https://github.com/khelben/IdsvrMultiTenantExample
Herein the IdSvr is hosted in a tenant specific route /tenants/<tenant>/...idsvr....
For extra safety, we've scoped the IdSvr cookie name with the tenant also.
I'm interested in knowing what you think about this.
Christiaan

Hey Brock,
The solution seems to work for a "multiple account" scenario where by you have multiple accounts and want to switch between them. (ie like gmail / gapps does if you have a "work" and a "personal" account.)
However what we are looking for is the ability to have multiple logins simultaneously where both accounts are active in different browser windows. The websites that the auth service is providing access to all run in client specific domains (eg clientname.OurAppDomain.com) which allows our support staff and our users who have logins to multiple "tenants" to access these  simultaneously (as the session cookie is in separate domains once logged in).
However, when switching out app specific logins with a central auth service for our newer development which is API backed, we didn't want to have to introduce another full set of tenant domains. So we want the auth service (in a single domain -eg login.OurAppDomain.com) to auth for all tenants.
Basically what we hoped to do was attach acr_values containing the client ID we are requesting access for to each identity server call, then validate that the user has already logged in to that specific tenant on identity server. In the case they are logged into two tenants with two separate user accounts, the acr_value would help us determine the tenant specfic cookie to look for.
On the surface  is seems like @khelben's solution may work. Just trying to ascertain if it has any other drawbacks.
Brad

Hey @TooMuchTaurine,
actually we have the same idea if I understand your point correctly.
From what I understand is that you want to be able to allow to login a user with the same credentials in the different client applications which are tenant specific. Correct?
We've solved this by implementing 2 different auth servers based on IdSvr4.
The first is the multi tenant aware version (as shown in the example) hosted on https://auth.example.com/tenants/<tenant>/
The other one is a central one hosted on https://auth.example.com/.
The general idea is the following: the first one acts as a gateway in which the second one is configured as an external provider.  This also allows us to configure other external providers per tenant.
So let's say when one tenant/customer wants to use his own authentication provider (SAML, google, etc...) this can be perfectly done by configuring the external provider for that tenant.
I'd love to know your ideas/remarks on this architecture.
I'll be planning another sample where this architecture is used.
Christiaan

@khelben
I have created an issue in your repo to ask a couple of questions I have on your implementation. I am trying to solve a similar problem at the moment but have a different design in mind. I will add another comment here with what I am thinking.

@TooMuchTaurine @khelben
I have setup a very basic multi-tenant version of Identity Server according to the design I described in my previous comment. You can check the code out if you want. This is not a production quality code and the does not do a lot of things aka a lot of hard-codings. I just wanted to make sure that the idea works. I coming days I will add the description of some more implementation.
Let me know what you think.

+1

This is risky business as folks will want to use the same username and password across multiple apps, and you'll run into issues in a great many places.
If you really need to be multi-tenant, I would recommend one of the following:

create a single identity system that is shared by all clients under a single brand. Rely on claims transformation to add scopes / additional app specific details as client scopes based on the client ID, if necessary.

Deploy separate instances of idsrv for each client, in much the same way as you must be doing for the client-specific apps that are trying to share (but not share) the identity system.

I know 2 seems like a drag, but the only truly safe way to do multitenancy is to not share the data store depending on a tenant id; too much potential for cross-client leakage. These are just my 2c based on experience. Multitenancy is normally more trouble than it's worth, long term, especially in this day and age where deployments to IaaS are so lightweight and easier to manage.

@dmccaffery
IMO the world of multi-tenancy is not very simple. There are tens of ways where each implementation differs from the other. If you operate in B2B space then this becomes even more challenging because you have got a range of people to satisfy. You are generalising by saying "folks will want to use the same username and password". There are several other factors other than the design of your identity server that makes consumers use same or different usernames across websites.
Having said the above, I completely agree with your option 2 if you are capable of doing that with least overhead. This usually means you have automated most tasks around deployment and maintenance. If you still live the old world of manual or semi-automated deployments then that option comes with lot of overheads.

I am generalizing; yes, but no matter how you slice it, multitenancy is an incredibly difficult problem to solve correctly and to scale correctly; especially if it wasn't a requirement up front and is an afterthought. It's certainly possible; anything is possible; I was just offering my 2cents. :)

For everyone involved -- How do you identity the tenant? DNS/host? QS param? Or acr_values tenant param? Also, does tenant mean to you customer isolated version of IdentityServer, or does tenant mean a way to distinguish different groups of users for authentication?

Related: 19

In my case the tenant is identified by acr_values param.
Also, the tenant offer a way to distinguish different group Of users for authentication.

@brockallen
For everyone involved -- How do you identity the tenant? DNS/host? QS param? Or acr_values tenant param? Also, does tenant mean to you customer isolated version of IdentityServer, or does tenant mean a way to distinguish different groups of users for authentication?

I Identify the tenant by DNS/host
2)my case tenant means , customer isolated version of IdentityServer (eg Each tenant should have own User data store and Identityserver4 data store .
Please refer Multi-Tenant #541

@brockallen For us, it is DNS/host name most of the times. But we have couple of complex examples involving a sub-tenant which we may send in acr values / route paramter /query string

DNS/Host, Different Groups of Users

@brockallen we have gone ahead with DNS / hostname to separate out sessions for each tenant. This allows for users who have access to more than one tenant to avoid issues with sessions interfering with each other (The user / identities for each tenant are stored separately, so logically they are not the same identity in our identity server, even though they maybe be the same physical person with two accounts)
A complication we have found implementing this is when we need to use identity server for Mobile apps. As mobile apps are global and somewhat independent of tenant, we use a generic url configured in the app settings for mobile apps to authenticate against on initial login.  The workflow is such that we redirect the user to the correct tenant host in identity server once we have established which tenant the user belongs to (established by email address on the login page).  However after rolling this out in beta, we realized that the  token endpoints urls as part of the Auth Code flow would need to change to the tenant specific urls after the redirect occurs.
At the moment we have done this by returning an additional parameter on the ReturnURL in the auth code flow along with the code, and then use this in a wrapper around OAuthAuthenticator2  Xamarin.Auth middleware. This is use to update the token endpoint before completing the auth code flow by requesting the access token / refresh token.
We had to jump through a number of hoops to find a way to pass this information back to the mobile app and we are a little worried that the IDSVR4 implementation may change and break this "shoe horn" into the redirectUrl.
Do you have any thoughts on this?

@brockallen we have gone ahead with DNS / hostname to separate out sessions for each tenant

Yep, this in effect means you're running different IdentityServers (from the browser perspective).

As mobile apps are global and somewhat independent of tenant

Ahh, you had to go and complicate things! :)

We had to jump through a number of hoops to find a way to pass this information back to the mobile app and we are a little worried that the IDSVR4 implementation may change and break this "shoe horn" into the redirectUrl.

I don't know for certain, to be honest. I considered allowing custom response params in the authorize response... if this were formalized would it help? I don't know how you're doing it now.

yes I think some formal way to pass information back to the client in addition to auth code would be good.  At the moment we are implementing a custom AuthorizeResponseGenerator.
   services.AddTransient<IAuthorizeResponseGenerator, CustomAuthorizeResponseGenerator>();

Then in the implementation...
public async Task CreateCodeFlowResponseAsync(ValidatedAuthorizeRequest request)
{
var response = await _authorizeResponseGenerator.Value.CreateCodeFlowResponseAsync(request);
        var url = $"?tokenendpoint={_environmentConfiguration.GetIssuerUri()}/connect/token&";

        // We need to add this domain value to the returned querystring so that mobile applications are able to use the correct authservice for their token request
        request.RedirectUri += url;

        return response;
    }

Hello,
For some time i've been busy building an identity-server, some complicated structures came up as i'm trying to implemented multi-tenancy.
I would like to know if there are any security-risks regarding the approach im planning to take. Maybe others are struggling as well and could use an example-structure. The following case is present:

One identityserver,
Multiple tenants with seperate domains,
Multiple user-accounts possible for a user per tenant (Student & Teacher),
Registered with multiple tenants under different usernames/email-addresses,
SSO required for all tenants at once.

The structure i had in mind:
A user is logged in at the Identityserver. The available clients (applications/tenants) for which de id-server can provide authentication are presented like a hub. One is selected (Company3 for example) and the option to link an account for this specific tenant is available.
The user provides an email<EMAIL_ADDRESS>and a verification is sent to the user. The identityserver-database holds data regarding a one-to-many relationship between a user and the registered client, and a one-to-many between these registrations and the verified email-addresses.
When logging into the identityserver, the token would hold the data for the tenants and the verified accounts. This token is returned and the current client verifies the token using the key from the discovery-endpoint.
An example of the custom claims would be:
{
"company3":[<EMAIL_ADDRESS><EMAIL_ADDRESS>"company1":[<EMAIL_ADDRESS><EMAIL_ADDRESS>}
Company3 would have secure confirmation that the current user has access to 2 accounts. Company1 would have the same information out the token which makes SSO between the different tenants possible.
As i see it, there wouldnt be any security risks. But, im not very experienced with Identity-servers and authentication yet. I would love some feedback regarding possible security risks.
Cheers

This seems to be a general question about IdentityServer - not a bug report or an issue.
Please use one of the our free or commercial support options
See here for more details.
Thanks!

I really can't remember all the details (nor do I want to read that thread again). Please open a more specific issue if this is still a problem.

@leastprivilege
I asked my question on stackoverflow tagging Identityserver4, no useful reaction so far though. Could you take a look there?
https://stackoverflow.com/questions/47349540/are-there-security-risks-in-managing-multi-tenancy-based-on-claims-using-identit
Thanks :)

@brockallen sorry for commenting on an old ticket but I wanted to add our experience with this.
Setting up a multi tenant system with subdomains is quite achievable when the client knows which discovery document to go to.
For mobile apps, a global discovery document and jwks endpoint can be setup which redirects to a tenant login page, but like @TooMuchTaurine says, the token, user info and session endpoints are no longer correct.
Information on the correct endpoints to use can be returned in the id_token but this is not ideal as it requires work from the client and it's not possible to change these URLs dynamically in some OpenID client libraries.
It might be nice if there was a standard for clients to use URLs returned in requests.


[js-testing] write tests for javascripts/explore/index.jsx

Notice: this issue has been closed because it has been inactive for 331 days. Feel free to comment and request for this issue to be reopened.


how to add Jalali Date Support

how i can use jalali calendar in this plugin ?

Hello,
This would only be possible via plugins.
See https://github.com/chmln/flatpickr/tree/master/src/plugins for examples


Difference Inference result after the conversion.

Hello thank you for your work
I have a question for you. I have correctly converted a custom .weigth to openvino format. After converting to the openvino format, I was able to see a decrease in general performance as regards the quality of the detection. On average I noticed an 8% decrease in the neural network's ability to detect my custom objects. It's normal? Do you have any advice to be able to bring the quality of the results closer to those of the original weigth.
I noticed that the loss of quality occurs in the transformation .weight to .pb
Thank you

@mattiadp
It is normal that there are differences in accuracy among different inferencing frameworks. But under normal circumstances, the accuracy of openvino will not lose too much. This has nothing to do with the precision of. pb.
I think you should check  size of input image, confidence threshold,anchors ......   first,make sure these parameters are the same when you test your model in darknet and openvino.
Also you could use accuracy-checker（INT8 Quantization step 4） to calculate IR model's map.

Thanks for the quick response. OK! I got it. Maybe I could try training yolo4 directly with a TensorFlow framework to get a better overall quality. Anyway thanks again.

No，you should use darknet to train your model !!!!!!
Many tensorflow and pytorch 's yolov4 implementation are different from darknet.
It will cause your model can only run under the training framework, and the effect of converting to other frames is especially poor!!
Never train yolo4 directly with a TensorFlow framework then convert to other format.


[FLINK-10811][hcatalog] Add scala suffix

This PR adds a scala suffix to the flink-hcatalog module, as required due to the compile dependency on flink-hadoop-compatibility_${scala.binary.version}.

Well, there's a verify_scala_suffixes.sh in the tools directory. Supposedly we could run this on Travis.

Similar situation to finding dead links in the documentation, we've had the tools all-along just never added them to travis...

Opened https://issues.apache.org/jira/browse/FLINK-10813 for automating the detection.


Misc fixes to V3 style before release

From Gitter:

[x] Remove old styles (hr + etc.)

There was a last rule for hr + ul for spell lists that is now gone. Can't find any more...

[ ] Clarify in V3 intro that legacy things wont convert directly to v3

[ ] Make .descriptive full width

[ ] should spellList span 2 columns by default? (it currently is)
Or change it so that the snippet is
. The latter option helps build consistency between things that span 2 columns, and it can be difficult to "undo" the column spanning

[ ] Large spacing that seems off. Basically, the descriptive box has a rule .descriptive + * {margin-top: __em} which means that if a header follows, the __em is going to be quite large.

Need to make all margins use cm instead of em for stability. At lease for margin-top spacings between elements.

[ ] Related: .note + * has margin-top: 1.3em and .descriptive + * has 1.4em.

[ ] https://files.gitter.im/5b92953ad73408ce4fa74346/7Mly/image.png If you turn off .page .block {-webkit-transform: translateZ(0);}, you get this: https://files.gitter.im/5b92953ad73408ce4fa74346/xOWp/image.png Doesn't happen with .descriptive

Solution is going to be: Make all blocks display: inline-block (also fixes issues with 2n'd column having different top spacing), Make all blocks width: 100% so they still fill the column when empty, Make all blocks that have an outset border have a margin-top: X where X is the amount of offset, so borders aren't being cut off on column breaks.

[ ] .descriptive has display: inline-block, .note doesn't
(.note also hasposition: relative` but doesn't affect this)

[ ] differences between .descriptive and .note https://files.gitter.im/5b92953ad73408ce4fa74346/2ySA/image.png

[ ] Why is the note border done via .page .note::before and not simply in the .page .note ?

[ ] Drop-shadow should not be applied to all images #1642

[ ] {curly-inject} on line alone renders a

 which can mess up styling because of .page p+* { margin-top: .27cm; }. (Maybe add :not(:first-child) to selector ?


Get wso2apim-2.2.0-LTS error % to zero

Description:
API-M build is reporting loads of issues. We need to bring the error percentage to zero to make testgrid ready for support requests.

Affected Product Version:
0.9.0-m21
OS, DB, other environment details and versions:
AWS CFN
APIM 2.2.0
All infra combinations - We can focus on MySQL first.
Steps to reproduce:
Related Issues:
#680

Looked into scenario03, 04 and 05 which were said to be completed but these are not ready to run on TestGrid yet. Issues have been raised for each and the reasons are as follows:

scenario03 - Missing pre and post scripts ( https://github.com/wso2-incubator/apim-test-integration/issues/27)
scenario04 - MSF4J service should be started before execution of the scenario. This has not been done in pre scenario script (https://github.com/wso2-incubator/apim-test-integration/issues/28)
scenario05 - Requires some configuration changes and deployment of GREG in APIM before scenario execution. These have to be fulfilled in the pre scenario script (https://github.com/wso2-incubator/apim-test-integration/issues/29)

OK, thanks.
So, what's left as per [1] is the scenarios 01, 06, and 09. Scenario 01 cannot be run since it require a config-changeset.
Therefore, we can only run 06, 09. Is that correct?
[1] https://github.com/wso2-incubator/apim-test-integration/blob/master/testgrid.yaml
Thanks,
KasunG

[1] is not properly maintained and so we cannot run the scenarios that are there in [1]. 03, 04 and 05 are the only scenarios that were told to be complete. The update on these are as follows:
scenario03 - Fixed errors in test scripts and the cf script. PR sent: https://github.com/wso2-incubator/apim-test-integration/pull/35
scenario04 - Fixed errors in test scripts and the cf script. PR sent: https://github.com/wso2-incubator/apim-test-integration/pull/32
One test case is disabled due to the requirement of config changes in registry.xml. Related issue - https://github.com/wso2-incubator/apim-test-integration/issues/30
scenario05 - Requires config changes
[1] https://github.com/wso2-incubator/apim-test-integration/blob/master/testgrid.yaml

Since scenario05 is not testgrid ready yet, considering the completion of scenarios 03 and 04, we can close this issue.


The role outside the AD is disappearing

Hello!
Thank you for the wonderful plugin.
Please advise:
Currently configured to add roles via groups in AD. But there is a need to add a group outside AD for some users. After adding it manually and logging in again, the new role is missing from the user.
Is there any solution to this situation, other than adding a role in AD?

Thanks for the reply!
Yes, would like to use both features, I've seen this implementation in bookstack: if no external id is set for authentication, then bookstack just doesn't do anything with that role.
On a side note: at the moment wordpress has solved this with a code that checks the user id and assigns the required role at login.

The problem is not on first login. The plugin has you covered there. The problem arises at a follow-up login when roles that were removed from the user in LDAP, still are assigned in WordPress on login. Which will lead to problems.
But I might add that as an option with a "Red Flag" (Use at your own risk! These are the limitations! If you run into such issues, you were warned!) 😁

Happy to test :)


CleanBC: Analysis: Get and use range

Open in MURAL
CleanBC JIRA to GH Integration - CITZ – BCDS – Data Systems and Services

Feb 16 decision: no fade/gradient needed; colourization of all aspects to be logged and addressed in #90


Pose parameters for neck

"RingNet outputs a subset of the FLAME parameters. These parameters are the first 100 shape parameters, first 50 expression parameters, and the pose parameters for the global rotation (FLAME pose parameters 1-3) and the jaw rotation (FLAME pose parameters 7-9). "
Originally posted by @TimoBolkart in https://github.com/soubhiksanyal/RingNet/issues/7#issuecomment-503638709
Wondering what are the FLAME pose parameters 4-6.  Are these for the neck which is also a joint in the FLAME model?  Does RingNet outputs pose parameters for neck?
Thanks,
Bing

Found the answer in the Ringnet paper Section 3.5 Implementation details:
The neck and eyeball rotations of FLAME are not regressed since
the facial landmarks do not impose any constraints on the neck.
The regression network consists of two fully-connected layers of
dimension 512 with ReLu activation and dropout, followed
by a final linear fully-connected layer with 159-dimensional
output. To this 159-dimensional output vector we concatenate
the camera, pose, shape, and expression parameters.
The first three elements represent scale and 2D image translation.
The following 6 elements are the global rotation and
jaw rotation, each in axis-angle representation. The neck
and eyeball rotations of FLAME are not regressed since
the facial landmarks do not impose any constraints on the
neck. The next 100 elements are the shape parameters, followed
by 50 expression parameters of FLAME.


Error loading storage: FormatException due to corrupted serialized state

Hello,
we ran into the issue that the serialized state is broken and can't be deserialized. When initializing the Client we are now catching the error, but would like to have an option to delete all stored state to remove the error. Currently it occurs every time when starting the application.
Is there a way to do so?
The following is the data which is not valid Json and therefore couldn't be deserialized. It was from the file analytics-flutter-queue_flushing_plugin.json.
{"queue":[{"anonymousId":"cfe0edd5-2348-47f0-a1e4-6a3ecedf07b9","messageId":"0d9de8ea-c709-4e96-aea4-b66bc51db74a","userId":null,"timestamp":"2024-04-30T13:22:09.965928","context":{"app":{"build":"1","name":"App Name","namespace":"com.app.name","version":"3.40.0"},"device":{"manufacturer":"Google","model":"sdk_gphone64_arm64","name":"emu64a","type":"android"},"library":{"name":"analytics-flutter","version":"1.0.0"},"locale":"en-US","network":{"cellular":false,"wifi":true},"os":{"name":"Android","version":"14"},"screen":{"height":1270,"width":720,"density":2.0},"timezone":"Europe/Ljubljana","instanceId":"5e8546bb-bba3-4ff7-b3b1-f5ab3d42d7a6","traits":{}},"integrations":null,"_metadata":{"bundled":[],"unbundled":["Actions Amplitude"],"bundledIds":[]},"event":"responseReceived","properties":{"screen":"LoginRoute","value":"Success"},"type":"track"},{"anonymousId":"cfe0edd5-2348-47f0-a1e4-6a3ecedf07b9","messageId":"bf9ead8c-29df-4fd2-9b02-71dee4ba5e55","userId":null,"timestamp":"2024-04-30T13:22:09.983209","context":{"app":{"build":"1","name":"App Name","namespace":"com.app.name","version":"3.40.0"},"device":{"manufacturer":"Google","model":"sdk_gphone64_arm64","name":"emu64a","type":"android"},"library":{"name":"analytics-flutter","version":"1.0.0"},"locale":"en-US","network":{"cellular":false,"wifi":true},"os":{"name":"Android","version":"14"},"screen":{"height":1270,"width":720,"density":2.0},"timezone":"Europe/Ljubljana","instanceId":"5e8546bb-bba3-4ff7-b3b1-f5ab3d42d7a6","traits":{}},"integrations":null,"_metadata":{"bundled":[],"unbundled":["Actions Amplitude"],"bundledIds":[]},"name":"/select-hub","properties":{},"type":"screen"},{"anonymousId":"cfe0edd5-2348-47f0-a1e4-6a3ecedf07b9","messageId":"4fda9727-48ac-40cb-856b-c6290526b02b","userId":null,"timestamp":"2024-04-30T13:22:13.209824","context":{"app":{"build":"1","name":"App Name","namespace":"com.app.name","version":"3.40.0"},"device":{"manufacturer":"Google","model":"sdk_gphone64_arm64","name":"emu64a","type":"android"},"library":{"name":"analytics-flutter","version":"1.0.0"},"locale":"en-US","network":{"cellular":false,"wifi":true},"os":{"name":"Android","version":"14"},"screen":{"height":1270,"width":720,"density":2.0},"timezone":"Europe/Ljubljana","instanceId":"5e8546bb-bba3-4ff7-b3b1-f5ab3d42d7a6","traits":{}},"integrations":null,"_metadata":{"bundled":[],"unbundled":["Actions Amplitude"],"bundledIds":[]},"traits":{"hubId":"de-hh-pauli"},"type":"identify"}]}

hi @felixwoestmann  thank you for your report, we start looking into this.

We're experiencing the same

hi @felixwoestmann could you help me to provide an example how you configure your project?  and your Analytics configuration, please, I can't replicate the issue; all works as expected.

We're experiencing the same

We're experiencing the same
Future _initial() async {
if (_initDone) return;
_initDone = true;
final segmentKey = AppConfig.current.segmentKey;

final configuration = Configuration(
  segmentKey,
  trackApplicationLifecycleEvents: false,
  flushPolicies: [
    StartupFlushPolicy(),
    TimerFlushPolicy(3000),
    CountFlushPolicy(10),
  ]
);
analytics = createClient(configuration);

}

Config
      var segmentClient = createClient(
        Configuration(
          [KEY],
          trackApplicationLifecycleEvents: true,
          trackDeeplinks: true,
        ),
      );

Some errors in Sentry
Error loading storage: FormatException: Unexpected character (at character 13)
{"queue":[]}anonymousId":"[REDACTED]","messageId"...

FormatException: Unexpected character (at character 621)
...tal","last_name":"[REDACTED]","subscription_plan_name":"Roamer"}}":"Roamer"}}

I actually haven't been able to reliably reproduce it.
Is there a way we can reliably trigger a write to cache?

same here... it's really annoying

Hi @cerealexx , could you help us to explain how replicate the issue, please?
flutter version, segment version, configuration file of segmentClient


How to preserve whitespace using Mix 6 and Vue 3?

Laravel Mix Version: 6.0.0-beta.11
Node Version: 12.16.3
NPM Version: 6.14.4
OS: macOS Catalina 10.15.7

Description:
As per comment on #2463, whitespace is removed from web pages if I compile JavaScript that contains Vue 3 components, making web pages look awful.
Steps To Reproduce:
Use Sass with Vue 3. This is my webpack.mix.js file:
const mix = require('laravel-mix');

mix
    .sass('resources/sass/admin.scss', 'public/css')
    .sass('resources/sass/app.scss', 'public/css')
    .js('resources/js/admin.js', 'public/js')
    .js('resources/js/app.js', 'public/js')
    .ts('resources/ts/club.ts', 'public/js')
    .vue()
    .options({
        processCssUrls: false
    })
    .sourceMaps()
    .version();

if (mix.inProduction()) {
    mix.disableNotifications();
}

When compiled, whitespace between inline elements is “collapsed” in the browser. Happens if I run both npm run dev and npm run prod.

This is a Vue 3 problem, see: https://github.com/vuejs/vue-next/pull/1600
Closing as this not an issue with Mix.


Redundant special tokens when applying chat template (?)

https://github.com/huggingface/trl/blob/e3fe28ee1a8bfab9739f849759c93d56776376e2/trl/trainer/sft_trainer.py#L323
Seems like if the formatting_func is defined during the initialization of SFTTrainer,  redundant special tokens will be added because everywhere else the parameter add_special_tokens is True
Or is it an intended logic? A bit confusing to be honest

The value of add_special_tokens comes from SFTConfig.dataset_kwargs. So you can disable it using this arg


GL_POLYGON deprecated

https://github.com/bjadamson/BoomHS/blob/release/include/engine/gfx/lib.hpp#L204

Fixed, using triangle fan's now instead.


add an optional description field for sync formula

ticket: https://staging.coda.io/d/_dL5PQJ5pk51#_tu43U/r460&modal=true
slack: https://codaproject.slack.com/archives/C02K6EABVMK/p1636475056153300
I guess I need to update the packs repo with a description to every sync table and dynamic sync table after?
@coda/packs @jonathan-codaio @patrick-codaio @spencer-codaio @alan-codaio
cc @alicia-codaio

@jonathan-codaio yes, per Alicia, the description will show on the UI.

Yep I just wanted to clarify that we didn't need to do any more plumbing in the SDK to have the description available for rendering in the UI.

will test it for sure.

The description will make its way to the UI.
Weird thing is that I somehow need to make clean devbox for the packs-sdk change to be picked up in the browser pack editor. I think it used to only take a rebuild of the website bundle.


Add 2.3.4 and 2.4.1 rubies to .travis.yml

Hi @timcraft, thanks for opening this PR. I think there are tests failing because the mix of ruby version and rails version is not compatible. We would need to skip those in the matrix.exclude section in travis.yml

@jondeandres Makes sense in principle but looks like a lot of the jobs are failing before the test run. For example the ruby 2.4.1 and rails30.gemfile job here:
https://travis-ci.org/rollbar/rollbar-gem/jobs/243617130
That's failing because of an error installing oj 2.12.14--is there any reason why oj is pinned to that older version? (Latest released version is 3.1.3)

@ArturMoczulski Can you review this PR?

Thanks @timcraft for the PR, but I'm closing it due to conflicts with the latest in .travis.yml. If you still want to see these changes, please submit another PR


Added writer version of toString to Nullable

Also deprecates the delegate versions because

they're slower most of the time due to the inability to inline the delegate
they were already undocumented
they're rarely directly called by the user, and instead are called by things like to!string, which now automatically call the new overload.

@wilzbach Looks like some sort of c library failure with dscanner.

@MetaLang Fixed

This PR seems to have introduced a deprecation warning:
void main() {
        import std.typecons : Nullable;
        Nullable!int x;
}

Compile with dmd -unittest test.d:
/usr/src/d/phobos/std/format.d(3723): Deprecation: function `std.typecons.Nullable!int.Nullable.toString!().toString` is deprecated - To be removed after 2.086. Please use the output range overload instead.

Not sure where exactly the problem is, but basically it causes the deprecation warning to appear whenever user code uses Nullable and compiles with -unittest. Would be nice to fix this.

@JackStouffer

If it's in a unittest, it's a simple manner of marking the block as deprecated unittest, but that line number makes no sense. It's in a unittest block inside of std.format.

I know it makes no sense, and I don't have time to dig into it right now, that's why I'm asking. :-D  Otherwise I'd fix it myself.


Management console shows as users stores added successfully even though the user store configurations are wrong.

Steps to reproduce

Login to the management console of Identity server
Navigate to the Main Tab
Select Add under User stores
Select org.wso2.carbon.user.core.ldap.ActiveDirectoryUserStoreManager from the class
Add configurations as given in the screenshot

Here even though one wrong input is given ( input given for user search base is not correct) for the user store configurations management console shows that the data store is added successfully but the command prompt shows an exception.

Type
Bug
Priority
Normal
Affected version
5.8.0
Component/s
user-store
Severity
Major
Estimated Complexity
Moderate
Label/s
Type/Bug, Component/User Mgt, Affected/5.8.0, Severity/Major, Complexity/Medium, Priority/Normal
Moved from https://wso2.org/jira/browse/IDENTITY-6627

This issue is being closed due to extended inactivity. Please feel free to reopen it if further attention is needed. Thank you for helping us keep the issue list relevant and focused!


README: Make it clear that this repository is deprecated.

Encourage users to switch to a Cordova-Android release that is supported
upstream and contains official support for Crosswalk.
Discussed here:
https://lists.crosswalk-project.org/pipermail/crosswalk-dev/2015-November/003292.html

@huningxin @fujunwei @baleboy

LGTM


Search term satellite tracking

Added templates search term tracking with amplitude through satellite.
Event integrated:
search-inspire
view-search-results
select-template
select-load-more
Resolves: MWPW-141738
Test URLs:

Before: https://main--express--adobecom.hlx.page/express/templates/?martech=off
After: https://search-term-satellite-tracking--express--adobecom.hlx.page/express/templates/?martech=off

Codecov Report
Attention: 269 lines in your changes are missing coverage. Please review.

Comparison is base (d6a68f9) 34.14% compared to head (8778395) 33.84%.

Files
Patch %
Lines

express/blocks/template-x/template-x.js
7.91%
128 Missing :warning:

express/scripts/template-search-api-v3.js
17.30%
86 Missing :warning:

express/blocks/search-marquee/search-marquee.js
7.14%
39 Missing :warning:

express/blocks/template-x/template-rendering.js
18.75%
13 Missing :warning:

express/blocks/cta-carousel/cta-carousel.js
40.00%
3 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##            stage     #628      +/-   ##
==========================================
- Coverage   34.14%   33.84%   -0.31%
==========================================
  Files         132      132
  Lines       25428    25694     +266
==========================================
+ Hits         8683     8695      +12
- Misses      16745    16999     +254

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

Keeping it in draft because we are blocked by the satellite team.

@qiyundai this looks like a stale PR. can we close it?

It actually isn't stale for what I know 😅. It's just taking forever for the schema update to be accepted and this has just been waiting for that.
The conversation is happening here: https://adobe.enterprise.slack.com/archives/C06GS4EJURZ
and @JingleH might have a little more context around it.

@vhargrave It actually isn't stale for what I know 😅. It's just taking forever for the schema update to be accepted and this has just been waiting for that.
The conversation is happening here: https://adobe.enterprise.slack.com/archives/C06GS4EJURZ and @JingleH might have a little more context around it.

ok 😅 👍  - I can't seem to access that slack thread, but that's fine. Hopefully this gets cleared up soon then.


Users should get information on participating municipalities

A database where supporting municipalities and their conditions are stored. This database should help users creating a more efficient event.

Who provides tools for picking the waste?
Where do waste walker deposit the waste collected?
Who is the person responsible at the local authorities?


Extension Connection Error

The extension started to crash frequently after the version 7.3.0 update. Therefore, it does not work stably.

To reproduce, send thanks to someone from a profile page on eodev.com
Unicode strings are the problem here


Multiple GPU support

Background and Context
Having the availability of another GPU on the same machine, I would like to be able to train a model (e.g. ComplEx) using 2 GPUs and thus reducing training time.
Description
Training a model using 2 GPUs.

We will add distributed training support in v2.0. Stay tuned 😃


Center the character header

The header (the character name and id) should be centered when the view is in mobile to match up with the rest of the page.

The header is now centered and pushed to main.


Electron 8: Linux unit tests are not starting

It seems evident that we have issues running our tests with Electron 8.
E.g. https://monacotools.visualstudio.com/DefaultCollection/Monaco/_build/results?buildId=71995&view=results

Pushed changes that seem to help macOS, but Linux is still entirely broken and not even starting the tests:
.build/electron/code-exploration: /lib/x86_64-linux-gnu/libdbus-1.so.3: no version information available (required by .build/electron/code-exploration)
/__w/1/s/.build/electron/code-exploration: /lib/x86_64-linux-gnu/libdbus-1.so.3: no version information available (required by /__w/1/s/.build/electron/code-exploration)
[1444:0420/074319.126225:WARNING:discardable_shared_memory_manager.cc(199)] Less than 64MB of free space in temporary directory for shared memory files: 63
Fontconfig warning: "/etc/fonts/fonts.conf", line 86: unknown element "blank"
Xlib:  extension "RANDR" missing on display ":10".
[1444:0420/074319.323355:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
/proc/self/exe: /lib/x86_64-linux-gnu/libdbus-1.so.3: no version information available (required by /proc/self/exe)
(electron) The default value of app.allowRendererProcessReuse is deprecated, it is currently "false".  It will change to be "true" in Electron 9.  For more information please check https://github.com/electron/electron/issues/18397
[1444:0420/074319.348232:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
/proc/self/exe: /lib/x86_64-linux-gnu/libdbus-1.so.3: no version information available (required by /proc/self/exe)
/proc/self/exe: /lib/x86_64-linux-gnu/libdbus-1.so.3: no version information available (required by /proc/self/exe)
[1467:0420/074319.385360:FATAL:x11_util.cc(1312)] Unsupported visual with rgb mask 0x0, 0x0, 0x0.  Please report this to https://crbug.com/1025266
[1444:0420/074319.725571:WARNING:gpu_process_host.cc(1166)] The GPU process has crashed 1 time(s)
/proc/self/exe: /lib/x86_64-linux-gnu/libdbus-1.so.3: no version information available (required by /proc/self/exe)
[1444:0420/074319.772832:WARNING:gpu_process_host.cc(935)] Reinitialized the GPU process after a crash. The reported initialization time was 27 ms
[1495:0420/074319.778036:FATAL:x11_util.cc(1312)] Unsupported visual with rgb mask 0x0, 0x0, 0x0.  Please report this to https://crbug.com/1025266
[1444:0420/074319.914018:WARNING:gpu_process_host.cc(1166)] The GPU process has crashed 2 time(s)
/proc/self/exe: /lib/x86_64-linux-gnu/libdbus-1.so.3: no version information available (required by /proc/self/exe)
[1444:0420/074319.949666:WARNING:gpu_process_host.cc(935)] Reinitialized the GPU process after a crash. The reported initialization time was 16 ms
[1505:0420/074319.954354:FATAL:x11_util.cc(1312)] Unsupported visual with rgb mask 0x0, 0x0, 0x0.  Please report this to https://crbug.com/1025266
[1444:0420/074320.070486:WARNING:gpu_process_host.cc(1166)] The GPU process has crashed 3 time(s)
/proc/self/exe: /lib/x86_64-linux-gnu/libdbus-1.so.3: no version information available (required by /proc/self/exe)
[1512:0420/074320.092145:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.
[1444:0420/074320.096272:WARNING:gpu_process_host.cc(935)] Reinitialized the GPU process after a crash. The reported initialization time was 0 ms
[1512:0420/074320.097028:ERROR:gpu_channel_manager.cc(459)] ContextResult::kFatalFailure: Failed to create shared context for virtualization.
[1512:0420/074320.106618:FATAL:x11_util.cc(1312)] Unsupported visual with rgb mask 0x0, 0x0, 0x0.  Please report this to https://crbug.com/1025266
[1444:0420/074320.225318:WARNING:gpu_process_host.cc(1166)] The GPU process has crashed 4 time(s)
/proc/self/exe: /lib/x86_64-linux-gnu/libdbus-1.so.3: no version information available (required by /proc/self/exe)
[1519:0420/074320.247360:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.

@bpasero  this is the reason why the gpu process is crashing
Less than 64MB of free space in temporary directory for shared memory files: 63
gpu_channel_manager.cc(459)] ContextResult::kFatalFailure: Failed to create shared context for virtualization.
Can we free up some space in the vm ?

@deepak1556 interesting, to be clear, is this disk space to free or more memory?

On linux /dev/shm needs to have atleast 64MB of space for shared memory to be used by chromium. We can either try increasing that memory in CI if possible (I would say 4GB/8GB is a good amount) or we can use --disable-dev-shm-usage as outlined here https://github.com/puppeteer/puppeteer/issues/1834

I don't think that command line argument helps, I can reproduce now running the docker image:
root@b2d7abbdd0f0:~# DISPLAY=:10 ./electron --no-sandbox --disable-dev-shm-usage --disable-gpu
./electron: /lib/x86_64-linux-gnu/libdbus-1.so.3: no version information available (required by ./electron)
/root/electron: /lib/x86_64-linux-gnu/libdbus-1.so.3: no version information available (required by /root/electron)
Fontconfig warning: "/etc/fonts/fonts.conf", line 86: unknown element "blank"

Electron 8.2.3 - Build cross platform desktop apps with JavaScript, HTML, and CSS
Usage: electron [options] [path]

A path to an Electron app may be specified. It must be one of the following:
  - index.js file.
  - Folder containing a package.json file.
  - Folder containing an index.js file.
  - .html/.htm file.
  - http://, https://, or file:// URL.

Options:
  -i, --interactive     Open a REPL to the main process.
  -r, --require         Module to preload (option can be repeated).
  -v, --version         Print the version.
  -a, --abi             Print the Node ABI version.
Xlib:  extension "RANDR" missing on display ":10".
/proc/self/exe: /lib/x86_64-linux-gnu/libdbus-1.so.3: no version information available (required by /proc/self/exe)
/proc/self/exe: /lib/x86_64-linux-gnu/libdbus-1.so.3: no version information available (required by /proc/self/exe)
[2984:0420/120330.937759:FATAL:x11_util.cc(1312)] Unsupported visual with rgb mask 0x0, 0x0, 0x0.  Please report this to https://crbug.com/1025266
/proc/self/exe: /lib/x86_64-linux-gnu/libdbus-1.so.3: no version information available (required by /proc/self/exe)
[3007:0420/120330.981019:FATAL:x11_util.cc(1312)] Unsupported visual with rgb mask 0x0, 0x0, 0x0.  Please report this to https://crbug.com/1025266
/proc/self/exe: /lib/x86_64-linux-gnu/libdbus-1.so.3: no version information available (required by /proc/self/exe)
[3025:0420/120331.023597:FATAL:x11_util.cc(1312)] Unsupported visual with rgb mask 0x0, 0x0, 0x0.  Please report this to https://crbug.com/1025266
/proc/self/exe: /lib/x86_64-linux-gnu/libdbus-1.so.3: no version information available (required by /proc/self/exe)
[3034:0420/120331.059460:FATAL:x11_util.cc(1312)] Unsupported visual with rgb mask 0x0, 0x0, 0x0.  Please report this to https://crbug.com/1025266
/proc/self/exe: /lib/x86_64-linux-gnu/libdbus-1.so.3: no version information available (required by /proc/self/exe)
[3041:0420/120331.094133:FATAL:x11_util.cc(1312)] Unsupported visual with rgb mask 0x0, 0x0, 0x0.  Please report this to https://crbug.com/1025266
/proc/self/exe: /lib/x86_64-linux-gnu/libdbus-1.so.3: no version information available (required by /proc/self/exe)
[3048:0420/120331.127820:FATAL:x11_util.cc(1312)] Unsupported visual with rgb mask 0x0, 0x0, 0x0.  Please report this to https://crbug.com/1025266
[2963:0420/120331.131368:FATAL:gpu_data_manager_impl_private.cc(1034)] The display compositor is frequently crashing. Goodbye.
Trace/breakpoint trap
root@b2d7abbdd0f0:~#

Any clues how to make changes to the shared memory thingy to try?

The command line did work, gpu process no longer crashes. The fatal error that is remaining in the output is wrt initializing headless display. Something dependency changed in 8 that our docker container is missing, will look into it tomorrow.

Okay its an upstream big fixed by https://bugs.chromium.org/p/chromium/issues/detail?id=1025266#c19 , will backport the fix in electron.

Oh ok great, let me know when I can try again.

This seems fine now.

All good now.

@bpasero I was trying to find the build/change that fixed this? Did the fix get backported to electron?

@jeffrafter we didn't backport the chromium fix, the right solution here is to avoid using 8bit color depth with xvfb that is no longer supported by chromium. Can use 16, 14 or 32 and pass it to xvfb options like -screen 0 1024x768x24


Wrong event display upon timezone change

Do you want to request a feature or report a bug?
Bug
What's the current behavior?
When I'm using my local timezone, event is displayed at the correct time.
I changed my local timezone using Change Timezone from the chrome store to check if the event would be displayed with the correct time for this timezone.
Result is that, the event do feature the correct times (6PM-8PM in GMT+2 to 5AM-7AM in GMT+13) but it does not display correctly on the calendar (here stuck in 12AM when in GMT+13).
My start and end are Date object built using ISO 8601 strings including a timezone.
GMT +2 (original timezone, no change)

GMT +13

What's the expected behavior?
Have my event from 5AM to 7AM display correctly from 5AM to 7AM in the day/week view.

same issue

Here was my CodeSandbox at doing timezone support. What I found was that, internally, RBC doesn't handle timezone switching due to how it's not using the passed in localizer for date construction building the actual calendar (not events) display itself, but rather only really used for the number, header formatting stuff.

See documentation on Dealing with Timezones

You solved this issue?

@iaminamcom I did. See that link from May 2022


Typo: use entrypoint instead of entry point

Signed-off-by: Lei Jitang<EMAIL_ADDRESS>

LGTM

LGTM

non-blocking:
should it be also good to change the ones in spec

@HuKeping  nice catch

15.21s$ make lint
checking lint
image/manifest.go:158::warning: Expect directory permissions to be 0700 or less,MEDIUM,HIGH (gas)
make: *** [lint] Error 1

o_O

@jonboulle plz2lgtm #189

please rebase

@vbatts  rebased

LGTM

lgtm


monocle.std.string.stringToBoolean doesn't obey prism laws

scala> import scalaz.Scalaz._
import scalaz.Scalaz._

scala> monocle.std.string.stringToBoolean.modify(identity)("TRUE") == "TRUE"
res0: Boolean = false

scala> monocle.std.string.stringToBoolean.modify(identity)("TRUE") === "TRUE"
res1: Boolean = false

stringToLong has a similar problem:
scala> monocle.std.string.stringToLong.modify(identity)("001") == "001"
res2: Boolean = false

Good catch! :+1:

Thanks @hgiddens. It seems that most bug we found are related to String parsing.


Convert P4 driver files to Find Modules

This CL defines the P4 Driver (SDE) libraries for each target as a
package that can be loaded via the find_package() command.
It also defines an abstract interface to link infrap4d with the SDE.

Rename xxxx-driver.cmake files to FindXxxxDriver.cmake.

Replace include() commands with find_package() commands.

Overhaul file contents.

Separate find-library and add-library sections.
Check that the find_library() calls were successful.
Set INCLUDE_DIRECTORIES and INTERFACE_LANGUAGE properties
on library targets.
Mark cache variables as advanced.
Implement SDE_VERSION variable.
Define libraries in the sde:: namespace.

Implement an add_xxx_target_libraries() function for each driver,
to set the link properties a target needs to link with the SDE.
This localizes target-specific SDE details and simplifies the infrap4d
build.

Update krnlmon submodule reference.

Note that these modules currently depend on SDE_INSTALL_DIR being
defined. Additional work is required to make them proper Find Modules
that can be used independently of this project.

If you diff two of the find modules, you'll find that they have a great deal in common. I'd suggest reviewing one file to see if you understand it, and if you have any concerns about what it's then doing, and then either skim the other two files or (better still) diff each of them against the file you originally reviewed.


Schedule docs generate error

When I try this:
    schedule('django.core.mail.send_mail',
             'Follow up',
             msg,
<EMAIL_ADDRESS>             [user.email],
             schedule_type=Schedule.ONCE,
             next_run=timezone.now() + timedelta(hours=1))

I get ERROR invalid syntax (<unknown>, line 1). I get the same error when I try to use my own function.

After some debugging, it turns out passing a list in args triggers this error:
  File "...\lib\site-packages\django_q\cluster.py", line 592, in scheduler
    args = ast.literal_eval(s.args)
...

  File "<unknown>", line 1
    ([<User: muser>],)
      ^
SyntaxError: invalid syntax

Everything works fine when I pass the list as kwargs instead of args.


chore: allow non-existent local registry dirs

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#395  👈
#394
#393
#392
#391
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @NathanFlurry and the rest of your teammates on  Graphite


Why does each demo have its own copy of @nativescript/android and @nativescript/ios?

I can understand the case for @nativescript/webpack (it has its own executable binary, so maybe can't be hoisted), but what about @nativescript/android and @nativescript/ios?

Good question - there’s a postinstall hook in runtimes that last time I checked would cause issue when referenced but definitely try it and can see. It’s been awhile since I’ve tried referencing the runtimes like other dep’s.

I checked the package.json for those @nativescript/android and @nativescript/v8-ios (or whatever it’s called) and didn’t find any post install scripts there. The only one I could find was for the iOS JSC runtime, here: https://github.com/NativeScript/ios-runtime/blob/master/build/npm/inspector_package.json

I may be misunderstanding the repo setup, but maybe it’s no longer a problem with V8. I’ll try it out later.

package.json configurations
Base level
Under devDependencies:
"@nativescript/android": "7.0.1",
"@nativescript/ios": "7.0.6",

App
Under dependencies (not devDependencies, as it is in the template):
"@nativescript/android": "file:../../node_modules/@nativescript/android",
"@nativescript/ios": "file:../../node_modules/@nativescript/ios",

Successful clean

Successful build and run

No postinstall problems (given that I'm using the V8 iOS runtime). So I believe we could save a lot of space by hoisting these two!

Awesome!

Looks like although iOS was happy hoisting it, Android wasn't. And maybe there's a difference between ns run demo-react:ios and tns run ios. Haven't checked.
I got this error when trying tns run android after having hoisted dependencies: https://github.com/NativeScript/nativescript-cli/issues/5444
I suspect CLI's fragile algorithm for determining runtime version, detailed in that issue, is the only reason that the runtimes can't currently be hoisted, and the only reason that they strictly have to be devDependencies rather than dependencies.


group_size for MOE implemented

Description
todo
Checklist

[X] Is this PR focused on a single feature without the possibility of being divided into smaller PRs?
[X] Are all variables set with logical defaults that are backward compatible?
[ ] I attached link to neptune if it was necessary
[X] Have you successfully executed the linter and tests?
[X] Are all functions concise and don't require splitting?
[ ] Is there documentation for arguments and complex logic?
[X] Are there no temporary solutions in the code? Should a task be added to Trello to refine the code?
[X] Are all functions placed in appropriate files?
[X] Is the PR name meaningful and descriptive?
[X] Is PR description provided, or unnecessary?

Other questions:

[ ] If I made changes to the requirements or anything related to the Singularity image I did generate new image and upload a new image to the clusters
[ ] If this change is significant enough I notified all individuals working with this repository (@channel in slack channel)
[ ] If there is a need for a second reviewer I requested additional review

Reviewer's checklist:

[ ] Does the Neptune link work and does it actually compare the situation before and after the PR?
[ ] Do I understand the code?
[ ] Do I think another reviewer is not needed or I commented that this PR need another reviewer?

Yes, I'll run the experiment now, since Maciek's PR has been merged.

Applied previous Jakub verbal comments about group_size parameter.  Neptune