feat(auth): Add token verification logic for emulator mode

Discussion
#409
This PR adds token verification with auth emulator for auth client, in addition to the changes introduced at #414.

We should add integration tests for this PR, like Node.js SDK implementation. https://github.com/firebase/firebase-admin-node/pull/1148
But I'm not sure how much should we add tests for this feature, and how to setup CI. any suggestions?

Thank you for reviewing! I've fixed the points you've commented.

Would be awesome to get this merged in if it all looks good, as this is breaking my local development flow.

Hi @hiranya911 and @yuchenshi, do you have any plans to release this in the near future?

I've merged the PR. It will be included in the next release (possibly in another week or so).

Hi all,
Thank you to those that worked on this and got this merged in! Is there an ETA on when the release with this in it might happen? It'd be great to be able to use the admin sdk with the local emulator, as this is breaking some of my dev workflow at the moment. Any other suggestions would be appreciated if there's a workaround.
Thank you!

Will try and get it released this week.

Hi.
@maku693 @hiranya911
Why when using emulator it ALWAYS checks if token was revoked? It makes no sense to me.

@saulortega
I just implemented similar logic based on the Node.js implementation as a reference, so I don't have an exact understanding of the reasons.
However, according to the emulator's documentation, it seems that the emulator itself does not verify the expiration of custom tokens. Therefore, aligning with that behavior could be a possible reason.


Add Caddyfile

See https://caddyserver.com/docs/caddyfile

:+1: :zap: :sparkling_heart: :tropical_fish:


Issue with nuNPC_Destinations

I am attempting to use the Sentinel plugin with nuNPC_Destinations, but when I add the waypoint provider "/waypoint provider npcdestinations" it crashes the server. This only happens with the Sentinel plugin enabled. Below is my console log:
https://pastebin.com/vniygHrA

Citizens V. 2.0.16, Sentinel V. 1.3.1, nuNPCDestinations V. 2.1.11

Sentinel is only compatible with the default waypoint provider at the moment. It hooks directly into the internals of it (as there's no API available) to gather a safe 'home' point to return to after combat.

It's how it determines the home location to return to

Could you possibly add an option to disable that?

Actually, it should automatically disable itself if the waypoint provider is wrong.
I forgot I did that.
Make sure you're running latest dev build.


Allow to pass a "agent" for all http/https requests

In order to specify a different agent than the default, it's necessary to be able to set an agent from the outside for requests made by node-oauth.
Setting an agent is necessary for things like:

maxSockets
proxy tunneling

or other use cases.
Overriding the http(s).globalAgent won't work from outside, as described in the code comment of global-tunnel. I'd rather avoid using global-tunnel though and rather have the agent as an optional parameter.
When this issue is fixed, I'll open issues in related modules which depend on node-oauth in order to implement this as well (particularly passport-oauth and then passport-facebook).
If you are in favor of this, please tell me so. I might be able to create a PR next week.
Thanks
Michael

This is done in 0.9.15 for oauth2 if that helps.

@mweibel Did you open the mentioned issues in passport-oauth and passport-facebook? I am using oauth directly, but I am searching for a reference implementation since 0.9.15 seems not to work for me. Did:
oauth2.setAgent(new ProxyAgent('<my-proxy-uri'>));
This way my proxy receives a connection but seems to loose the information of the target host.

@nik-ffm I opened that issue more than 2 years ago ;) I don't work on the app using node-oauth2 anymore.


Add support for OpenShift

This branch contains fixes for OpenShift. It depends on other independent pull requests that should be reviewed first:

[x] #58 (filter containers by mount namespace to support other distros)
[X] #68 (cri-o support)
[x] #72 (traceloop list)
[X] #74 (faster network policy advisor)
[X] #75 (finding initial containers)

Some concerns on this PR:

Workaround for the missing kernel-devel package. We should find out what is the right place to file an issue upstream, so that the kernel headers are installed by default, instead of fetching them from CentOS.
Workaround for the runc version with the bad json marshaller. We should find out what version (fork?) of runc is used in the OpenShift playground, and file an issue, if relevant. From reading the upstream sources at state.go#L53, I don't understand why it would produce invalid json, so I assume I am not looking at the right version of the code.
The OCI hook needs to use a kubeconfig to connect to kube-apiserver. Since the OCI hook runs on the host (and not in the gadget pod), it cannot use the in-cluster kubeconfig access. Inspektor Gadget currently finds a kubeconfig on the host at /etc/kubernetes/kubeconfig, which in practice has the credentials of the kubelet (ServiceAccount = node-bootstrapper). The kubelet does not have enough privileges on OpenShift to list all the pods. The workaround to give more privileges to the kubelet because the OCI hook shares the same kubeconfig works, but it is not a clean solution. We should either find a way to have Inspektor Gadget use its own kubeconfig, or update Inspektor Gadget so it does not need to list all pods (+ their .status) on all nodes, but only the node it is running on (if possible).

@mauriciovasquezbernal Thanks for the review. Could you make the 2 changes you mentioned?

Done!

3. The OCI hook needs to use a kubeconfig to connect to kube-apiserver. ...

For the record. We found out that the kubeconfig we're using was the boostrap one that doesn't provide all the rights to list the pods in the node. https://github.com/kinvolk/inspektor-gadget/pull/76/commits/ad6cc08978da7bd20cfc2e89b7d86abbf6e3729b implements a temporal workaround that gets the real kubeconfig used from the kubelet and uses that one on ocihookgadet too. We are planning to change the architecture to avoid querying the k8s api server from the host and move that logic to the gadget container where we can use the in cluster configuration. It'll done in a follow up PR.

LGTM


Use null content_type to identify system roles

It was a good while ago when I introduced ANSIBLE_BASE_SINGLETON_{}_RELATIONSHIP and the rest of the library has changed significantly with the addition and refinement of the "assignment" models. Because of the assignment models, this method no longer makes sense to me.
The core architectural arguments remain the same. This incurs an additional query as a tradeoff to keep extra data out of the RoleEvaluation tables. What this changes is that we do that additional query directly to the assignment table, and present system role membership through assignment entries in the API with content_type of the role being null and object_id being blank. So this is client-facing.

Pushing this as a cherry pick.


Wrong GeoIP detection

Output of docker version:
Client:
 Version:      1.11.2
 API version:  1.23
 Go version:   go1.6.2
 Git commit:   b9f10c9
 Built:        Tue Jun 21 00:43:14 2016
 OS/Arch:      linux/amd64

Server:
 Version:      1.11.2
 API version:  1.23
 Go version:   go1.6.2
 Git commit:   b9f10c9
 Built:        Tue Jun 21 00:43:14 2016
 OS/Arch:      linux/amd64

Output of docker info:
Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 0
Server Version: 1.11.2
Storage Driver: devicemapper
 Pool Name: docker-8:1-787412-pool
 Pool Blocksize: 65.54 kB
 Base Device Size: 10.74 GB
 Backing Filesystem: xfs
 Data file: /dev/loop0
 Metadata file: /dev/loop1
 Data Space Used: 11.8 MB
 Data Space Total: 107.4 GB
 Data Space Available: 107.4 GB
 Metadata Space Used: 581.6 kB
 Metadata Space Total: 2.147 GB
 Metadata Space Available: 2.147 GB
 Udev Sync Supported: true
 Deferred Removal Enabled: false
 Deferred Deletion Enabled: false
 Deferred Deleted Device Count: 0
 Data loop file: /var/lib/docker/devicemapper/devicemapper/data
 WARNING: Usage of loopback devices is strongly discouraged for production use. Either use `--storage-opt dm.thinpooldev` or use `--storage-opt dm.no_warn_on_loop_devices=true` to suppress this warning.
 Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
 Library Version: 1.02.127 (2016-06-17)
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: null host bridge
Kernel Version: 4.6.3-1-ARCH
Operating System: Arch Linux
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 7.769 GiB
Name: zick.tk
ID: AEJI:ZK3J:4MPZ:S22N:HC2S:BZIF:KI6T:7WEA:DVK7:HCXU:63KU:SB3X
Docker Root Dir: /var/lib/docker
Debug mode (client): false
Debug mode (server): false
Registry: https://index.docker.io/v1/

Additional environment details (AWS, VirtualBox, physical, etc.):
Steps to reproduce the issue:

create bridge:

# docker network create -d bridge --subnet <IP_ADDRESS>/16 makechat_nw
dab73eaa948220cde1844769f325a25320c8a8e6473c7a4299f7c29090886f14

run MongoDb:

# docker run --net=makechat_nw --ip=<IP_ADDRESS> -v /var/lib/makechat-mongo:/data/db \
>     --name makechat-mongo -d mongo:latest
Unable to find image 'mongo:latest' locally
Pulling repository docker.io/library/mongo
docker: Error: Status 403 trying to pull repository library/mongo: "
403 Forbidden
\nSince Docker is a US company, we must comply with us export control regulations. In an effort to comply with these, we now block all IP addresses that are located in Cuba, Iran, North Korea, Sudan, and Syria. If you are not in one of these countries and are blocked, please reach out to https://support.docker.com\n\n\n".
See 'docker run --help'.

Describe the results you received:
docker: Error: Status 403 trying to pull repository library/mongo: "
403 Forbidden
\nSince Docker is a US company, we must comply with us export control regulations. In an effort to comply with these, we now block all IP addresses that are located in Cuba, Iran, North Korea, Sudan, and Syria. If you are not in one of these countries and are blocked, please reach out to https://support.docker.com\n\n\n".

Describe the results you expected:
Working instance of MongoDb, non blocking.
Additional information you deem important (e.g. issue happens only occasionally):
Wrong detection geoIP, I tried from this IP: <IP_ADDRESS>

Oh, I see you added Republic of Crimea....


Conditionals support?

Are you planning on adding support for pug conditionals in the future?
Since in my project I have to convert html templates into pug for storage and then reconvert them back to html for rendering it would be great to support pug conditionals in the html.
What are your thoughts?

Hey @QuakeCake, I'm having some trouble seeing what you mean, could you perhaps provide some code examples? Cheers.

HI @izolate , sorry for the late reply.
I've created a repo with some code that does what I mean.
If you wanna check it out it's at https://github.com/QuakeCake/html2pug


[fx] Fix ckpt functions' definitions in forward

What's New?
Previously in #1473 I had tried to remove those definitions forward function, however they need to use self as a parameter in colossalai.utils.activation_checkpoint.checkpoint(), otherwise as those functions are not bounden to GraphModule, we can't use colossalai.utils.activation_checkpoint.checkpoint(self.checkpoint) like calling. To use self.checkpoint like function in graph module, I add our own ColoGraphModule to override recompile and to_folder method, also, I set colossalai to _custom_builtins at the very beginning of codegen, which bring the following good news:

We no longer need to do import colossalai in forward
As we bind those functions to GM, we could use colossalai.utils.activation_checkpoint.checkpoint(self.checkpoint) like calling for GraphModule, so that we don't need to do to_folder and reload the model to provide bounden functions.
The to_folder now have import colossalai at the beginning of the module.py

Can you provide the following in the PR?

the generated code for forward function
the complete code written into a file when calling to_folder

@FrankLeeeee The followings are test_fx results in torch12, the only failures are all because of test_hf_model

@FrankLeeeee The followings are test_fx results in torch12, the only failures are all because of test_hf_model

Why so many failed test cases?

Because of test_hf_models, I think there are some tracing mistakes here.

@FrankLeeeee After updating my transformers package, the followings are the test results in test_fx with torch12

Can you provide the following in the PR?

the generated code for forward function
the complete code written into a file when calling to_folder

The generated code for forward function is still the same with the previous version, e.g.
# model
class MLP(torch.nn.Module):

    def __init__(self):
        super().__init__()
        self.linear1 = torch.nn.Linear(4, 4)
        self.linear2 = torch.nn.Linear(4, 4)

    def forward(self, x):
        return self.linear1(x), self.linear2(x)

class relu(torch.nn.Module):

    def __init__(self) -> None:
        super().__init__()
        self.relu = torch.nn.ReLU(inplace=True)

    def forward(self, x):
        return self.relu(x)

class MyModule(torch.nn.Module):

    def __init__(self):
        super().__init__()
        self.mlp1 = MLP()
        self.relu = relu()
        self.linear2 = torch.nn.Linear(4, 4)

    def forward(self, x):
        y1, y2 = checkpoint(self.mlp1, x)
        y3 = checkpoint(self.relu, x)

        def ckpt2(x):
            return F.relu(x, inplace=True)

        y4 = checkpoint(ckpt2, x)
        y4 = self.linear2(y4)
        return y1 + y2 + y3 + y4

# code
def checkpoint_0(self, x):
    mlp1_linear1 = self.mlp1.linear1(x)
    mlp1_linear2 = self.mlp1.linear2(x)
    return mlp1_linear1, mlp1_linear2
def checkpoint_1(self, x):
    relu_relu = self.relu.relu(x)
    return relu_relu
def checkpoint_2(self, x):
    relu = torch.nn.functional.relu(x, inplace = True);  x = None
    return relu
def forward(self, x):
    mlp1_linear1, mlp1_linear2 = colossalai.utils.activation_checkpoint.checkpoint(self.checkpoint_0, True, x, use_reentrant=True)
    relu_relu = colossalai.utils.activation_checkpoint.checkpoint(self.checkpoint_1, False, x, use_reentrant=False)
    relu = colossalai.utils.activation_checkpoint.checkpoint(self.checkpoint_2, False, x, use_reentrant=False)
    linear2 = self.linear2(relu);  relu = None
    add = mlp1_linear1 + mlp1_linear2;  mlp1_linear1 = mlp1_linear2 = None
    add_1 = add + relu_relu;  add = relu_relu = None
    add_2 = add_1 + linear2;  add_1 = linear2 = None
    return add_2

But the point is, in our ColoGraphModule.recompile(), I split the code with forward and the code before forward, to extract the checkpoint functions and execute them before run forward for graph module. Further more, the current to_folder() will dump code in the following shape

import torch
from torch.nn import *
import colossalai
class FxModule(torch.nn.Module):
    def __init__(self):
        super().__init__()
        self.mlp1 = torch.load(r'FX/mlp1.pt') # Module(   (linear1): Linear(in_features=4, out_features=4, bias=True)   (linear2): Linear(in_features=4, out_features=4, bias=True) )
        self.relu = torch.load(r'FX/relu.pt') # Module(   (relu): ReLU(inplace=True) )
        self.linear2 = Linear(in_features=4, out_features=4, bias=True)
        self.load_state_dict(torch.load(r'FX/state_dict.pt'))

    def checkpoint_0(self, x):
        mlp1_linear1 = self.mlp1.linear1(x)
        mlp1_linear2 = self.mlp1.linear2(x)
        return mlp1_linear1, mlp1_linear2
    def checkpoint_1(self, x):
        relu_relu = self.relu.relu(x)
        return relu_relu
    def checkpoint_2(self, x):
        relu = torch.nn.functional.relu(x, inplace = True);  x = None
        return relu
    def forward(self, x):
        mlp1_linear1, mlp1_linear2 = colossalai.utils.activation_checkpoint.checkpoint(self.checkpoint_0, True, x, use_reentrant=True)
        relu_relu = colossalai.utils.activation_checkpoint.checkpoint(self.checkpoint_1, False, x, use_reentrant=False)
        relu = colossalai.utils.activation_checkpoint.checkpoint(self.checkpoint_2, False, x, use_reentrant=False)
        linear2 = self.linear2(relu);  relu = None
        add = mlp1_linear1 + mlp1_linear2;  mlp1_linear1 = mlp1_linear2 = None
        add_1 = add + relu_relu;  add = relu_relu = None
        add_2 = add_1 + linear2;  add_1 = linear2 = None
        return add_2

Great, do take care of the line breaking, e.g. leave  two empty line between import colossalai and Class FxModule and one line between each function definition.

Great, do take care of the line breaking, e.g. leave two empty line between import colossalai and Class FxModule and one line between each function definition.

I've fixed those flaws, the current to_folder() code is like

import torch
from torch.nn import *
import colossalai

class FxModule(torch.nn.Module):
    def __init__(self):
        super().__init__()
        self.mlp1 = torch.load(r'FX/mlp1.pt') # Module(   (linear1): Linear(in_features=4, out_features=4, bias=True)   (linear2): Linear(in_features=4, out_features=4, bias=True) )
        self.relu = torch.load(r'FX/relu.pt') # Module(   (relu): ReLU(inplace=True) )
        self.linear2 = Linear(in_features=4, out_features=4, bias=True)
        self.load_state_dict(torch.load(r'FX/state_dict.pt'))

    def checkpoint_0(self, x):
        mlp1_linear1 = self.mlp1.linear1(x)
        mlp1_linear2 = self.mlp1.linear2(x)
        return mlp1_linear1, mlp1_linear2

    def checkpoint_1(self, x):
        relu_relu = self.relu.relu(x)
        return relu_relu

    def checkpoint_2(self, x):
        relu = torch.nn.functional.relu(x, inplace = True);  x = None
        return relu

    def forward(self, x):
        mlp1_linear1, mlp1_linear2 = colossalai.utils.activation_checkpoint.checkpoint(self.checkpoint_0, True, x, use_reentrant=True)
        relu_relu = colossalai.utils.activation_checkpoint.checkpoint(self.checkpoint_1, False, x, use_reentrant=False)
        relu = colossalai.utils.activation_checkpoint.checkpoint(self.checkpoint_2, False, x, use_reentrant=False)
        linear2 = self.linear2(relu);  relu = None
        add = mlp1_linear1 + mlp1_linear2;  mlp1_linear1 = mlp1_linear2 = None
        add_1 = add + relu_relu;  add = relu_relu = None
        add_2 = add_1 + linear2;  add_1 = linear2 = None
        return add_2


fix: highlight the correct autocomplete attribute

Fixes #56

Highlighting doesn't seem to be working for me (running on form-problems.glitch.me).
Screenshot:

Also (probably doesn't relate to this PR, but...) the heading displays 11 common mistakes, but only three are displayed.

Ran it, it's working for me:

The process that I have to follow is:

Checkout the branch
npm run build
Update the extension
Refresh the page and run the extension

Also, building and running the extension from this branch, the heading displays 11 common mistakes, but only three are displayed.
(I know this probably doesn't relate to this PR specifically.)

This was related to an issue that was resolved in https://github.com/GoogleChromeLabs/form-troubleshooter/commit/78fb4cd0a4d7de50fa8fc26aa3c682f9f9f5052b

OK — did a hard reset — that fixed it. Not sure what had gone wrong there.
Confirm WAI on form-problems.glitch.me.


Bug in network accessibility modelling error

Modelling error threat LS.E.LS-S.9 is generated if there is a logical subnet that is not abstract and not accessible from any space.
This is slightly incorrect.
Network accessibility may be asserted or inferred from the locations of connected hosts. But it is possible for a public cellular network (in particular) to have an inferred backbone network provided by a router and with connected base stations all of which are also inferred and assumed to be in unspecified but secure locations. This is not an error, so the modelling error threat needs some refinement.

Fixed in branch 151 by adding a new relationship type 'isNowhere', which actually means 'is in an unspecified but secure location'. It is a self-referential (asset tagging) relationship, and at this stage can only be attached to Logical Subnet assets.
Construction pattern CNR-CN+CN which creates the public cellular network backbone (if none existsnow also adds this isNowhere relationship to the backbone subnet on creation. Threat LS.E.LS-S.9 has been modified so it is not generated if this is present.
If in future other logical subnets have the same property that they could be accessed only by inferred hosts in unspecified, secure locations, we can add the isNowhere relationship so they are also excluded from the modelling error.


[8.x] Facade spy issue on second call

Right now, if you try to call the spy method twice on a facade, the first time you get the mocked object back but the second time you call it, you receive null instead of the previously created mock.  This makes it return the previously created mock instead of returning nothing.
This goes with the following issue: https://github.com/laravel/framework/issues/37975

You shouldn't call it twice.

@driesvints but it is a possibility, and the docblock says it will return the spy, so I'm not sure why there is that requirement that you can only call it once?


Follow SemVer

Is your feature request related to a problem? Please describe.
Regular "minor versions" (e.g 1.0.3+ where toBack option was added with the default to false, while it was true before) break compatibility with existing codebases.
To make it easier for developers to determine if a new version of the plugin includes backwards-compatible features vs backwards-incompatible api changes, plugin's versioning scheme should follow semantic versioning SemVer
The gist of semver is as follows:
Given a version number MAJOR.MINOR.PATCH, increment the:

MAJOR version when you make incompatible API changes,
MINOR version when you add functionality in a backwards-compatible manner, and
PATCH version when you make backwards-compatible bug fixes.
Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.

This would make the version with toBack prop breaking change added to be a 2.0.0 version which would clearly indicate to developers that the API is different, and allow developers to utilise npm's wildcard versions (e.g "1.x", "~1")
Describe the solution you'd like
Follow SemVer and change major version number if there is a breaking change.
Describe alternatives you've considered
Document each release changes and specifically note about breaking changes - see https://github.com/capacitor-community/camera-preview/issues/95#issuecomment-779777667
Additional context
N/A

Agree, thank you @ryaa

The plugin seems to be following semver now with 4.x version supporting Capacitor 4 and the next major version will be 5.x to also match Capacitor 5


fix(context-menu): add missing export

👋 Thanks for creating a pull request! 🚀 Checkout the storybook we've created for it: angular


cleanup dirty rule、route、neigh tables in cmdAdd

name: Pull request
about: Tell us about your contribution
labels: ["pr/release/none-required"]

Thanks for contributing !
Before submitting a pull request, make sure you read about our Contribution notice here: https://spidernet-io.github.io/spiderpool/contributing/development/pullrequest/#need-review
What this PR does / why we need it:
cleanup dirty rule、route、neigh tables in cmdAdd, Make sure dirty tables doesn't interfere with new pod, but note that the cleanup is only as much as possible, and if it can't be deleted or fails, we'll just log warnings but won't return errors.


each keyframe causes an increase in zoom

brainrender = <IP_ADDRESS>
vedo = 2021.0.7
python = 3.7
OS = Windows 10
anaconda terminal (no jupyter)
I've had enough success with brainrender to be excited about using it, but seem to be experiencing a step learning curve with Animation. My goal is to render videos highlighting various brain regions.
I started by trying to re-create the videos from the Elife paper. First I tried running brainrender/paper/videos/probes_video.py but was never able to figure out how to install the oneibl.onelight package. I then tried brainrender/paper/videos/mouse_neurons_video.py and after having to comment out a couple lines (see code below) I was able to render and save a video. However, the transitions between keyframes is abrupt causes the camera to zoom in every time. For example, the transition from cam0 to cam2 during the first  5 seconds is smooth, but then at 5 seconds the transition from cam2 to cam1 is an immediate transportation with no interpolation. Furthermore, at each keyframe transition the camera zooms in much more than the video in the paper. The zoom effect is additive so much so that by the final few frames the fiber track of a single neuron is taking up most of the screen.
I've played around with custom camera values but always seem to get this transportation/zoom effect and am not sure what I am doing wrong. Any help/suggestions is much appreciated.
`from rich import print
import sys
from pathlib import Path
from brainrender import Scene, Animation
from morphapi.api.mouselight import MouseLightAPI
from brainrender.actors import make_neurons
sys.path.append("./")
from paper.figures import INSET, SILHOUETTE
define three camera positions
cam0 = {
"pos": (-27734, -17206, 30307),
"focalPoint": (5703, 3283, -3835),
"viewup": (0, -1, 0),
"distance": 51995,
"clippingRange": (35301, 77678),
}
cam1 = {
"pos": (6967, -1597, 30135),
"focalPoint": (4063, 1645, 1110),
"viewup": (0, -1, 0),
"distance": 29350,
"clippingRange": (28096, 49788),
}
cam2 = {
"pos": (8151, 2782, 30286),
"focalPoint": (7168, 3838, 971),
"viewup": (0, -1, 0),
"distance": 29350,
"clippingRange": (23584, 51780),
}
print("[bold red]Running: ", Path(file).name)
-------------------------- define frames callback --------------------------
def slc(scene, *args):
"""
Slices some scene actors and makes sure silhouettes are updated
"""
sils = scene.get_actors(br_class="silhouette")
scene.remove(*sils)
mos = scene.get_actors(name="MOs")[0]
th = scene.get_actors(name="TH")[0]
sc = scene.get_actors(name="SCm")[0]

plane = scene.atlas.get_plane(norm=[0, 0, -1])
scene.slice(plane, actors=[scene.root, th, mos])

th._needs_silhouette = True
mos._needs_silhouette = True
scene.root._needs_silhouette = True
sc._needs_silhouette = True

----------------------------------- Scene ----------------------------------
scene = Scene(inset=INSET)#, screenshots_folder="paper/screenshots") ########### EDITED##############
scene.root._needs_silhouette = SILHOUETTE
add neruons
mlapi = MouseLightAPI()
neurons_metadata = mlapi.fetch_neurons_metadata(
filterby="soma", filter_regions=["MOs"]
)
to_add = [neurons_metadata[47], neurons_metadata[51]]
neurons = mlapi.download_neurons(to_add, soma_radius=500)
neurons = scene.add(*make_neurons(*neurons, neurite_radius=12))
add brain regions
th = scene.add_brain_region("TH", alpha=0.3, silhouette=SILHOUETTE)
mos = scene.add_brain_region("MOs", alpha=0.3, silhouette=SILHOUETTE)
scm = scene.add_brain_region("SCm", alpha=0.3, silhouette=SILHOUETTE)
----------------------------- create animation -----------------------------
anim = Animation(scene, "videos", "neurons")#, size=None) ########### EDITED##############
Specify camera pos and zoom at some key frames`
anim.add_keyframe(0, camera=cam0, zoom=1.8)
anim.add_keyframe(5, camera=cam2, zoom=1.8, callback=slc)
anim.add_keyframe(10, camera=cam1, zoom=3.5)
anim.add_keyframe(15, camera=cam2, zoom=4)
Make videos
anim.make_video(duration=15, fps=30)`

Hi,
Thank you for getting in touch with this issue.
The onelib is documented here: https://int-brain-lab.github.io/ONE/notebooks/one_quickstart.html
When pasting code, please put it between triple backticks "`" such that it gets formatted correctly:
import  numpy as np

# create an array
np.ones(100)

as opposed to:
import  numpy as np
create an array
np.ones(100)

The example file: examples/animation.py includes a minimal animation example, does that work for you?
Regarding the zooming issue: when specifying a keyframe of the animation, you can set the camera position and the zoom
anim.add_keyframe(0, camera=cam0, zoom=1.8)

The zoom values used in the eLife scripts were good for the code back then, but the way the zoom parameter is realized into the 3D rendering has since changed. As such the fix is simply to use much smaller (<1.1) value so that you can zoom in less. In general, zoom<1 results in zooming out, zoom=1 doesn't change the zoom and zoom>1 zooms in.
The camera parameter sets the position and orientation of the camera, but the zoom is set separately.
For the second problem, I'm not sure what the causes is. Can you provide a (formatted) minimal example code that reproduces it?

Hi @FedeClaudi. Thanks for your help and kind suggestions. The example file you link to works for me and highlights one of the issues I am encountering. Below is a shorted version of the example that I will be referring to (thanks teaching me how properly insert code):
from brainrender import Scene, Animation
from rich import print
from myterial import orange
from pathlib import Path

print(f"[{orange}]Running example: {Path(__file__).name}")
"""
    This example shows how to create an animated video by specifying
    the camera parameters at a number of key frames
"""
# Create a brainrender scene
scene = Scene(title="brain regions", inset=False)

# Add brain regions
scene.add_brain_region("TH")

anim = Animation(scene, "./examples", "vid3")

# Specify camera position and zoom at some key frames
# each key frame defines the scene's state after n seconds have passed
anim.add_keyframe(0, camera="top", zoom=1, interpol='linear')
anim.add_keyframe(1, camera="sagittal", zoom=1, interpol='linear')

# Make videos
anim.make_video(duration=1, fps=15)

The camera starts in the 'top' position and the initial movement is to zoom in before zooming out while rotating to the 'sagittal' position (zoom might not be the appropriate term, but I hope you see what I mean). This is in contrast to the first few seconds of Video 2 from the Elife paper where the transition from the first camera angle to the second angle is linear and without a zoom-in/zoom-out effect. My goal is to figure out how to write the code above to be like Video 2 with the linear camera transition. I initially thought setting both keyframes to have linear interpolation would fix the problem, but I'm still getting the same effect.
Is there a way to make the transition linear?

Hi,
Thank's for the info.
There was a bug with the Animation class such that it wasn't interpolating the zoom value between keyframes.  That's now (a6e92db7135a67944f1e961ce52a8bcaa7d33f10) fixed, so this works for me:

from brainrender import Scene, Animation
from rich import print
from myterial import orange
from pathlib import Path

print(f"[{orange}]Running example: {Path(__file__).name}")
"""
    This example shows how to create an animated video by specifying
    the camera parameters at a number of key frames
"""
# Create a brainrender scene
scene = Scene(title="brain regions", inset=False)

# Add brain regions
scene.add_brain_region("TH")

anim = Animation(scene, "./examples", "vid3")

# Specify camera position and zoom at some key frames
# each key frame defines the scene's state after n seconds have passed
anim.add_keyframe(0, camera="top", zoom=1,)
anim.add_keyframe(.5, camera="top", zoom=0.9,)
anim.add_keyframe(1, camera="top", zoom=1,)
anim.add_keyframe(1.5, camera="sagittal", zoom=1.4,)
anim.add_keyframe(2, camera="sagittal", zoom=1,)

# Make videos
anim.make_video(duration=2.5, fps=15)

To test it, first update brainrender with: pip install -U git+https://github.com/brainglobe/brainrender.git

# btw "```python" at the start of a code section highlights the code syntax like the one above

Thanks for the interpolation fix, working nicely now.


Installing gnuplot seems to have broken Postgres or at least psql

Hello - installed gnuplot using brew a short time ago.  The result seems to be a broken postgresql 's   psql.
the follow command results in the error below.
psql
dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/Cellar/postgresql/11.2/lib/libpq.5.11.dylib
Reason: image not found
Abort trap: 6
openssl was installed as a dependency for gnuplot. Postgres also uses it .  Does any one have a work around.  I did try  removing openssl and reinstalling it. I also removed gnuplot with the brew rmtree command and reinstall. Also no change.

Mike - why is this being closed? Need some help? If you have send a solution have not received one?

From the issue template:

Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.

You didn't read it or fill it in. Even if you had: this type of post is an issue with your local system and should be posted to Discourse.

Also: please do not email me to my personal email address about such things: it's quite rude.

Mike - was not being rude - not my intent. I very seldom post anything and first time here. I was looking for a way to reply and found your email first. I later scrolled down and found this form.
As to the proper way.. glad to. Did not see a checklist. Saw a place to write and a button to commit. I am just looking for some help. Will attempt again. Will look for more instructions. If you have a URL to the them I will follow those.

Use https://github.com/Homebrew/brew/issues/new/choose to create new issues and, in this case, choose "Get help on Discourse".


Can't npm install -g yo

This is what happens when I try to install yeoman, can you guys please help??

possibly a duplicate of https://github.com/yeoman/yo/issues/292#issuecomment-75932264
But you should also update yo/node/npm and try again

I can't update yo as I can't install it via npm
On Wed, Feb 25, 2015 at 8:10 PM, Eddie Monge<EMAIL_ADDRESS>wrote:

Closed #302 https://github.com/yeoman/yo/issues/302.
—
Reply to this email directly or view it on GitHub
https://github.com/yeoman/yo/issues/302#event-241906841.

--
Kim Petersen
kimpetersend1.com http://kimpetersend1.com/
https://www.facebook.com/SektorDesigns https://twitter.com/KimD1Petersen
http://www.behance.net/sektorDesigns http://slayerd1.deviantart.com

See my comment in #292


[new feature] Change group subject

Hey @rohitsangwan01 ,
Thank s a lot for the latest upgrades!
Good job 👍
Here is a new feature to change the group subject

Please include in WppGroup
  Future setSubject({
  required String groupId,
  required String subject,
}) async {
  return wpClient.evaluateJs(
    '''WPP.group.setSubject(${groupId.phoneParse}, ${subject.jsParse});''',
    methodName: 'setSubject',
  );
}

@loic-hamdi Done,, added in  this commit
Btw you can push a Pr for the changes, that would be easy to intergrate features
To add new Pr :
Fork this repo
then create new branch : git checkout -b "add_group_subject"
then make changes to this branch ( only required changes )
commit these changes :
git add .
git commit -m "Add group subject"
git push origin -u add_group_subject
now open github and create a Pull request from your add_group_subject -> main of my repo
Also by the time, these features are not released on pub
you can use the github version of this library
and in new version there is one more parameter : whatsappClient.executeFunction
you can use this to execute any method from Wpp like this one : '''WPP.group.setSubject(${groupId.groupParse}, ${subject.jsParse});'''

Added in latest Version : 2.0.1


Changed swap functionality to always use WETH as an intermediary for …

…token to token transactions.

Messed up some indentation, will make a new PR.


GitHub workflow to run testing for PRs

Currently, there's no auto building for new PRs. We need to set up an appropriate github workflow with actions to run auto building for PRs to make sure the new PRs can pass building.

We can use docker build image in the github CI.
https://github.com/aeraki-mesh/meta-protocol-proxy#build-metaprotocol-proxy-using-docker

i want to take this

it seems can not build successful in master with aeraki/meta-protocol-proxy-build:2022-0429-0

https://github.com/huanghuangzym/meta-protocol-proxy/runs/7762001559?check_suite_focus=true

[WeOpen Star] i would like to help


Add a host/domain name type

Initial Checks

[X] I have searched Google & GitHub for similar requests and couldn't find anything
[X] I have read and followed the docs and still think this feature is missing

Description
Hello 👋
I would like to validate only the host support of a URL (domain name). For now, it seems I'm forced to do something like:
endpoint_host: constr(regex=_host_regex))
Not the intended usage…
I would like to use a type to validate a host only, something like:
endpoint_host: Union[IPvAnyAddress, DomainName]
Affected Components

[ ] Compatibility between releases
[ ] Data validation/parsing
[ ] Data serialization - .model_dump() and .model_dump_json()
[ ] JSON Schema
[ ] Dataclasses
[ ] Model Config
[X] Field Types - adding or changing a particular data type
[ ] Function validation decorator
[ ] Generic Models
[ ] Other Model behaviour - model_construct(), pickling, private attributes, ORM mode
[ ] Plugins and integration with other tools - mypy, FastAPI, python-devtools, Hypothesis, VS Code, PyCharm, etc.

I'm afraid you'll need your own logic for this.
URL validation is moving into pydantic-core implemented in rust for V2.
Remember the definition of what's allowed in a domain and how it's encoded depends on the scheme.
You might look at urllib3 or similar to see if there's a way to validate domains you can reuse in a functional validator.


feat: support Python runtime metrics

This PR is the last part of work to complete https://github.com/apache/skywalking-python/pull/238. After the docker image of OAP updates, files as followed need to be removed in Python Agent.
skywalking/config/meter-analyzer-config/python.yaml
skywalking/config/application.yml

[x] If it's UI related, attach the screenshots below.
[x] Update the CHANGES log.

Looks like

References
https://github.com/apache/skywalking/pull/9823
https://github.com/apache/skywalking/pull/9711

As you have marked this PR ready to review. Please reply or resolve the PR's comments from reviewers.

As you have marked this PR ready to review. Please reply or resolve the PR's comments from reviewers.

I'm so sorry.
I thought I have answered and didn't notice the "pending" tag.

What do you mean more reasonable? increase is usually used for a counter which keeps growing.

Because so far gc_time is reported by MeterService every 20s but not reported right after gc.
I'm goint to make gc_time accumulatable to get average time consumption for gc within 1 minute.
Is this okay?

Are these GC counters? It feels increasing always like so.

Nope. It's the number of objects for each generation.
Like Java, the objects from older generations are more infrequently to be checked if it can be deleted.

As you have marked this PR ready to review. Please reply or resolve the PR's comments from reviewers.

I'm so sorry. I thought I have answered and didn't notice the "pending" tag.

Pending means you should submit it through comment once of all

As you have marked this PR ready to review. Please reply or resolve the PR's comments from reviewers.

I'm so sorry. I thought I have answered and didn't notice the "pending" tag.

Pending means you should submit it through comment once of all

Thanks!

One E2E test case seems to be stuck in a cache retrieval step :0
https://github.com/apache/skywalking/actions/runs/3368331192/jobs/5588961894

One E2E test case seems to be stuck in a cache retrieval step :0 https://github.com/apache/skywalking/actions/runs/3368331192/jobs/5588961894
Maybe we should tune the segment download timeout down a bit https://github.com/actions/cache/blob/main/workarounds.md#cache-segment-restore-timeout

It makes sense. FYI @kezhenxu94

Default value of this timeout is 60 minutes and can be customized by specifying an environment variable named SEGMENT_DOWNLOAD_TIMEOUT_MINS with timeout value in minutes.

60 minutes is too long in my opinion. Usually if it takes that long it means something wrong in GitHub Actions and I would expect it to fail as soon as possible.

Default value of this timeout is 60 minutes and can be customized by specifying an environment variable named SEGMENT_DOWNLOAD_TIMEOUT_MINS with timeout value in minutes.

60 minutes is too long in my opinion. Usually if it takes that long it means something wrong in GitHub Actions and I would expect it to fail as soon as possible.

I guess somewhere around 5 minutes should be sufficient for our case? I can make a pr later.


ISPN-9886 Use UFC_NB and MFC_NB in both server and embedded configs

https://issues.jboss.org/browse/ISPN-9886

Add UFC protocol even in TCP stacks
Replace UFC with UFC_NB and MFC with MFC_NB everywhere

@danberindei should we ask for a perfack job ?

run performance tests please
[TCP]
[UDP]

run performance tests please
[TCP]
[UDP]

run performance tests please
[TCP]

run performance tests please

run performance tests please
library
cs
[UDP]

run performance tests please
library
cs
[UDP]

run performance tests please
library
cs
[TCP]

run performance tests please
cs-hotrod repl reads
[UDP]

run performance tests please
library dist reads
[TCP]

run performance tests please
library dist reads
[TCP]

run performance tests please
library dist reads
[TCP]

run performance tests please
library dist reads
[TCP]

run performance tests please
library dist reads
[TCP]

run performance tests please
library dist reads
[TCP]

run performance tests please
library dist reads
[TCP]

run performance tests please
library dist reads
[TCP]

run performance tests please
library dist reads
[TCP]

run performance tests please
library dist reads
[TCP]

run performance tests please
library dist reads
[TCP]

run performance tests please
library dist reads
[TCP]

run performance tests please
library dist reads
[TCP]

run performance tests please
library dist reads
[TCP]

run performance tests please
library dist reads
[TCP]

run performance tests please
library dist reads
[TCP]

run performance tests please
library dist reads
[TCP]

run performance tests please
library dist reads
[TCP]

run performance tests please
library
cs
[TCP]

run performance tests please
library
cs
[TCP]

run performance tests please
library
cs
[TCP]

@tristantarrant max_credits="3m" looks good

I had forgotten to update the protocol list in JGroupsConfigBuilder, the test suite should be ok now.


matrix_to_matrix_distance with 'cosine' metric actually  returns 1 - cos

Hi, thank you for this nice and fast package!
I'm running the sample code for getting a grasp on fastdist and noticed that running the matrix_to_matrix_distance with the 'cosine' metric actually returns 1- cos. Here's my code:
Python 3.9.7 (default, Sep 10 2021, 14:59:43)
[GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from fastdist import fastdist
>>> import numpy as np
>>> from scipy.spatial import distance
>>>
>>> a, b = np.random.rand(200, 100), np.random.rand(2500, 100)
>>>
>>> test1 = fastdist.matrix_to_matrix_distance(a, b, fastdist.cosine, "cosine")

>>>
>>> test2 = distance.cdist(a, b, "cosine")
>>>
>>> test1
array([[0.76356656, 0.77130884, 0.7830872 , ..., 0.7594411 , 0.7660507 ,
        0.75256919],
       [0.7278542 , 0.77827491, 0.71892038, ..., 0.73680125, 0.76142145,
        0.71400176],
       [0.75438577, 0.82385449, 0.74822783, ..., 0.79369753, 0.77366138,
        0.75879906],
       ...,
       [0.72296757, 0.8312194 , 0.74177362, ..., 0.75377203, 0.80686459,
        0.79075494],
       [0.75294663, 0.76315282, 0.76448368, ..., 0.75859648, 0.78321527,
        0.71763409],
       [0.71364513, 0.73673727, 0.76609622, ..., 0.76435325, 0.79117915,
        0.77636373]])
>>> test2
array([[0.23643344, 0.22869116, 0.2169128 , ..., 0.2405589 , 0.2339493 ,
        0.24743081],
       [0.2721458 , 0.22172509, 0.28107962, ..., 0.26319875, 0.23857855,
        0.28599824],
       [0.24561423, 0.17614551, 0.25177217, ..., 0.20630247, 0.22633862,
        0.24120094],
       ...,
       [0.27703243, 0.1687806 , 0.25822638, ..., 0.24622797, 0.19313541,
        0.20924506],
       [0.24705337, 0.23684718, 0.23551632, ..., 0.24140352, 0.21678473,
        0.28236591],
       [0.28635487, 0.26326273, 0.23390378, ..., 0.23564675, 0.20882085,
        0.22363627]])
>>> 1- test1
array([[0.23643344, 0.22869116, 0.2169128 , ..., 0.2405589 , 0.2339493 ,
        0.24743081],
       [0.2721458 , 0.22172509, 0.28107962, ..., 0.26319875, 0.23857855,
        0.28599824],
       [0.24561423, 0.17614551, 0.25177217, ..., 0.20630247, 0.22633862,
        0.24120094],
       ...,
       [0.27703243, 0.1687806 , 0.25822638, ..., 0.24622797, 0.19313541,
        0.20924506],
       [0.24705337, 0.23684718, 0.23551632, ..., 0.24140352, 0.21678473,
        0.28236591],
       [0.28635487, 0.26326273, 0.23390378, ..., 0.23564675, 0.20882085,
        0.22363627]])

For 'euclidean' metric I get the same results with scipy and with fastdist.
Is this supposed to work like this? Sorry if this is actually expected. I'm using 1 - fast_dist_result on my use-case for now, as I'm looking for a good substitute for scipy.spatial.cdist.

Yes, this is supposed to work this way; sorry for any confusion, I wanted to keep naming maximally similar to scipy's package which I realize makes this a bit confusion. However, in the code itself this is specified; see https://github.com/talboger/fastdist/blob/f23199f8703e4169931eb5f81fad3d820bf8d48b/fastdist/fastdist.py#L183

@talboger Hey, thanks for this wonderful library!
But why do we have the cosine distance as cosine similarity in the package? Can this computation (1- cos) also be included in the package that means under the hood of Numba? That would be great!
Thanks


Clarify that alloy tests don't actually test timelock mixing

MSRV is also breaking, so added a CI fix to this commit.

@apoelstra, can you take a look at this quick PR? Should fix the CI here.

Looks good. Running tests now, assuming it succeeds you should see an ACK within the hour.


sarif contains duplicate artifacts

Describe the bug
The sarif file produced on an aggregate maven project holds duplicate entries in the artifacts which - at least github says so - is invalid (the projects in the multimodule have shared dependencies).
This prevents uploading into the github "security" tab.
I'm not sure what is used for identifying artifacts in the sarif file, I would gues either uri or id1 - so not sure what qualifies a "duplicate".
I'm still looking at the log for the actual duplicate...
Version of dependency-check used
The problem occurs using version 6.1.4 of the maven plugin
Log file
I have a Github Action workflow that shows this at: https://github.com/B3Partners/brmo/pull/1039/checks?check_run_id=2229073601#step:6:14 relevant part is shown below, full log at: https://gist.github.com/mprins/b9d39bbd9156d9da3954da9de557c213
...

2021-03-30T15:29:20.6011828Z [WARNING] Cannot include project artifact: nl.b3p:brmo-dist:pom:2.0.4-SNAPSHOT; it doesn't have an associated file or directory.
2021-03-30T15:29:20.6023453Z [WARNING] The following patterns were never triggered in this artifact inclusion filter:
2021-03-30T15:29:20.6025445Z o  'jakarta.mail:jakarta.mail-api'
2021-03-30T15:29:20.6025917Z
2021-03-30T15:31:36.9077132Z [WARNING] Exception extracting archive 'iso19139-20060504.zip'.
2021-03-30T15:31:36.9185943Z [WARNING] Exception extracting archive 'iso19139-20070417.zip'.
2021-03-30T15:31:36.9708708Z [WARNING] Exception extracting archive 'xlink-1_0_0.zip'.
2021-03-30T15:31:45.5791421Z 00:00  INFO: Vulnerability found: jquery below 1.9.0b1
2021-03-30T15:31:45.5799322Z 00:00  INFO: Vulnerability found: jquery below 1.12.0
2021-03-30T15:31:45.5823948Z 00:00  INFO: Vulnerability found: jquery below 1.12.0
2021-03-30T15:31:45.5910538Z 00:00  INFO: Vulnerability found: jquery below 3.4.0
2021-03-30T15:31:45.5911741Z 00:00  INFO: Vulnerability found: jquery below 3.5.0
2021-03-30T15:31:45.5912637Z 00:00  INFO: Vulnerability found: jquery below 3.5.0
2021-03-30T15:31:50.5526896Z ##[group]Run github/codeql-action/upload-sarif@v1
2021-03-30T15:31:50.5527466Z with:
2021-03-30T15:31:50.5528156Z   sarif_file: target/dependency-check-report.sarif
2021-03-30T15:31:50.5528962Z   checkout_path: /home/runner/work/brmo/brmo
2021-03-30T15:31:50.5529871Z   token: ***
2021-03-30T15:31:50.5530271Z   matrix: {
  "java": 8
}
2021-03-30T15:31:50.5530643Z env:
2021-03-30T15:31:50.5531169Z   JAVA_HOME_8.0.282_x64: /opt/hostedtoolcache/jdk/8.0.282/x64
2021-03-30T15:31:50.5531838Z   JAVA_HOME: /opt/hostedtoolcache/jdk/8.0.282/x64
2021-03-30T15:31:50.5533213Z   JAVA_HOME_8_0_282_X64: /opt/hostedtoolcache/jdk/8.0.282/x64
2021-03-30T15:31:50.5533763Z ##[endgroup]
2021-03-30T15:31:51.3992561Z Uploading sarif files: ["target/dependency-check-report.sarif"]
2021-03-30T15:31:51.5262171Z ##[group]Error details: instance.runs[0].artifacts contains duplicate item
2021-03-30T15:31:51.5271875Z {
2021-03-30T15:31:51.5272531Z   "property": "instance.runs[0].artifacts",
2021-03-30T15:31:51.5273281Z   "message": "contains duplicate item",
2021-03-30T15:31:51.5273787Z   "schema": {
2021-03-30T15:31:51.5274386Z     "description": "An array of artifact objects relevant to the run.",
2021-03-30T15:31:51.5275016Z     "type": "array",
2021-03-30T15:31:51.5275421Z     "minItems": 0,
2021-03-30T15:31:51.5275885Z     "uniqueItems": true,
2021-03-30T15:31:51.5276309Z     "items": {
2021-03-30T15:31:51.5276793Z       "$ref": "#/definitions/artifact"
2021-03-30T15:31:51.5277232Z     }
2021-03-30T15:31:51.5277564Z   },
2021-03-30T15:31:51.5277925Z   "instance": [
2021-03-30T15:31:51.5278297Z     {
2021-03-30T15:31:51.5278679Z       "description": {
2021-03-30T15:31:51.5280259Z         "text": "Open Source implementation of the Fast Infoset Standard for Binary XML (http://www.itu.int/ITU-T/asn1/)."
2021-03-30T15:31:51.5281079Z       },
2021-03-30T15:31:51.5281435Z       "location": {
2021-03-30T15:31:51.5282545Z         "uri": "file:////home/runner/.m2/repository/com/sun/xml/fastinfoset/FastInfoset/1.2.15/FastInfoset-1.2.15.jar"
2021-03-30T15:31:51.5283332Z       },
2021-03-30T15:31:51.5283696Z       "hashes": {
2021-03-30T15:31:51.5284218Z         "md5": "57f3894ad7e069ae740b277d92d10fa0",
2021-03-30T15:31:51.5285006Z         "sha1": "bb7b7ec0379982b97c62cd17465cb6d9155f68e8",
2021-03-30T15:31:51.5286217Z         "sha256": "785861db11ca1bd0d1956682b974ad73eb19cd3e01a4b3fa82d62eca97210aec"
2021-03-30T15:31:51.5287171Z       },
2021-03-30T15:31:51.5287556Z       "properties": {
2021-03-30T15:31:51.5288356Z         "license": "http://www.opensource.org/licenses/apache2.0.php",
2021-03-30T15:31:51.5289698Z         "id1"<EMAIL_ADDRESS>2021-03-30T15:31:51.5290315Z       }
2021-03-30T15:31:51.5290644Z     },

...

2021-03-30T15:31:51.7793636Z ##[endgroup]
2021-03-30T15:31:51.7799322Z ##[error]Unable to upload "target/dependency-check-report.sarif" as it is not valid SARIF:
- instance.runs[0].artifacts contains duplicate item
2021-03-30T15:31:51.7813312Z Error: Unable to upload "target/dependency-check-report.sarif" as it is not valid SARIF:
2021-03-30T15:31:51.7814556Z - instance.runs[0].artifacts contains duplicate item
2021-03-30T15:31:51.7815871Z     at validateSarifFileSchema (/home/runner/work/_actions/github/codeql-action/v1/lib/upload-lib.js:155:15)
2021-03-30T15:31:51.7817308Z     at uploadFiles (/home/runner/work/_actions/github/codeql-action/v1/lib/upload-lib.js:214:9)
2021-03-30T15:31:51.7818763Z     at Object.uploadFromActions (/home/runner/work/_actions/github/codeql-action/v1/lib/upload-lib.js:91:18)
2021-03-30T15:31:51.7820262Z     at async run (/home/runner/work/_actions/github/codeql-action/v1/lib/upload-sarif-action.js:34:29)
2021-03-30T15:31:51.7821724Z     at async runWrapper (/home/runner/work/_actions/github/codeql-action/v1/lib/upload-sarif-action.js:46:9)

To Reproduce
Steps to reproduce the behavior: run the workflow in https://github.com/B3Partners/brmo/blob/2198870b00ea3a88b5a2997ee1376bcd4eb1e243/.github/workflows/owasp-dependency-check.yml
Expected behavior
Duplicate entries should be filtered out so upload into github "security" tab succeeds

Hopefully d2b5cf9 resolves the issue.

Thanks!
I can see succesful upload when using 6.1.6-SNAPSHOT in https://github.com/B3Partners/brmo/actions/runs/708607190
Run github/codeql-action/upload-sarif@v1
  with:
    sarif_file: target/dependency-check-report.sarif
    checkout_path: /home/runner/work/brmo/brmo
    token: ***
    matrix: {
    "java": 8
  }
  env:
    JAVA_HOME_8.0.282_x64: /opt/hostedtoolcache/jdk/8.0.282/x64
    JAVA_HOME: /opt/hostedtoolcache/jdk/8.0.282/x64
    JAVA_HOME_8_0_282_X64: /opt/hostedtoolcache/jdk/8.0.282/x64
Uploading sarif files: ["target/dependency-check-report.sarif"]
Uploading results
Successfully uploaded results

@jeremylong  @mprins  I am still getting artifacts contains duplicate item error with my github actions.
I am using dependencycheck  6.5.3 . please advise if I am doing wrong.
My action file: https://github.com/xmlking/micro-apps/blob/develop/.github/workflows/owasp-dep-check.yml

dependency-check-report.sarif.txt

see https://github.com/jeremylong/DependencyCheck/pull/3993 - we have a few more things to resolve before releasing 7.0.0, but it shouldn't be too much longer.


Listing of currently assigned activation shortcuts for PT utilities

Description of the new feature / enhancement
This feature would produce a listing (printer-friendly optionally) of the currently assigned shortcuts for the utilities. Could be placed in the General section, or even become a utility of its own.
Scenario when this would be used?
Instead of going to each utility separately to view the current activation shortcut for each, this would produce a succinct list that can be used as a quick refresher, and can optionally be printed. Would also assist when contemplating what activation shortcuts are not already in use when desiring to change the shortcut for one of the utilities.
Supporting information
No response

Maybe we can add this to the new Shortcut Guide?

The Shortcut Guide appears to be a utility specifically meant to provide assistance with Windows shortcuts. Unless its developers want to expand the scope/purpose of it, my proposed feature may get overlooked if not simply placed in the General section.  However, I'm open to any location that make sense to the majority of PT contributors!

I see the value here.  I would challenge this and go "engagement models to use for enabled PTs". Example, if you tweaked your FZ settings, this should quickly tell you your mode to do stuff.


Serialize the basis gate library

Summary
This PR is part of #491 and focuses only on the library.
Details and comments

Serialization is implemented using kwargs. The tests show that the basis gate libraries can be serialized and deserialized with the ExperimentEncoder and with the ExperimentDecoder, respectively.
The basis gate library is now also a subclass of Mapping for convenience.
The internal workings of the __supported_gates__ has been reworked to make the internals of the class more consistent. To do this the internal variable self._basis_gates.

Replying to https://github.com/Qiskit/qiskit-experiments/pull/539#pullrequestreview-814373799 For now the default values is a nice functionality to have, especially when starting from scratch. Also it helps since different backends have different single-qubit gate durations. For two-qubit gates each gate will have a different duration parameter. Going forward, I can imagine that one would rather initialize the schedules with a library and load parameter values from a file. However, this once again falls outside of the scope of this PR.

Yes, I misunderstood the behavior. Default values are just starting point of calibration and we can individually update the values afterwards (so there is not parameter-links). Then probably having default values are okey, but we need to think how to distinguish delay for each individual gate kind (if we want). We can implement separate library for different gate kind or scope parameter name with gate kind. But this is of course follow-up PR.

I removed the use_drag flag in 04f66db


Add libvips

Tool information

Tool name:  libvips
Tool license: LGPL 2.1+
Add or update?  Add
Desired version: 8.9.1
Approximate size:  Installed size 143.00 KB (according to https://ubuntu.pkgs.org/20.04/ubuntu-universe-amd64/libvips-tools_8.9.1-2_amd64.deb.html)
If this is an add request:

Brief description of tool: libvips is a demand-driven, horizontally threaded image processing library.
URL for tool's homepage: https://libvips.github.io/libvips/

Virtual environments affected

[ ] Ubuntu 16.04
[ ] Ubuntu 18.04
[x] Ubuntu 20.04
[ ] macOS 10.15
[ ] macOS 11.0
[ ] Windows Server 2016 R2
[ ] Windows Server 2019

Can this tool be installed during the build?
sudo apt-get install libvips-dev

Tool installation time in runtime
Finished in 29 seconds
https://github.com/masa-iwasaki/github_actions_playground/runs/2022292006?check_suite_focus=true
Are you willing to submit a PR?
Yes

Hi @masa-iwasaki,
we'd rather not to install this package on the image due to its popularity (it seems to be a pretty specific tool) and its pretty fast installation time in runtime.
I am closing this issue. Please, feel free to contact us in case of any other questions. Thank you.

Now that vips is the default image processor on Rails 7, would you all reconsider adding libvips to default packages installed? We see wildly different install times during Action build ~ 30 secs - 2 mins.

Now that vips is the default image processor on Rails 7, would you all reconsider adding libvips to default packages installed? We see wildly different install times during Action build ~ 30 secs - 2 mins.

We will check that if  installation time is more than 2 minutes we add libips library on images.

Are there any updates?


its just showing file size in preview iOS

Hi,
i installed this in my iOS app and pass the pdf link to this with success and error callback.
but when i open pdf then its just showing file size in quick look preview.(see attached screen

)
Kindly Help me to fix this,
i m very thankful for this...

+1 I have the same issue. Any help would be highly appreciated.

Hi guys, can you please share with me the pdf you're trying to display? My samplefile does not show this behaviour.
Thanks!
Eddy

I have seen this behavior as well. I downloaded a GIF and tried viewing it. It may have to do with the filename of the file being downloaded. I believe in my case the GIF was being downloaded fine, but the filename was mangled as it showed the endpoint name (e.g. ReportViewer.aspx) but should have been the filename in the response.


How to add localization?

Description
Hi,
How to add localization?

Would you mind being more specific?

Sorry about that, I think I posted in the wrong spot. I was wondering how to add localization to a  https://content.nuxt.com/.

You might want to look into https://github.com/nuxt-modules/i18n.


Hi, I have a problem with base_path

Sail Version
1.28.1
Laravel Version
10.46.0
PHP Version
8.3
Operating System
macOS
OS Version
14.2.1
Description
Good afternoon, I launched sale using the sale up command and received the following error in the browser:

It turns out that here in the code base_path returns the wrong path:

I checked the getcwd function on which base_path is based and it returns the wrong path, the path with the public /var/www/html/public. I checked this in tinker as well and in tinker the path is returned correct /var/www/html.
Steps To Reproduce
sale up -d
open in browser <IP_ADDRESS>

Hi there,
Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:

Laracasts Forums
Laravel.io Forums
StackOverflow
Discord
Larachat
IRC

However, this issue will not be locked and everyone is still free to discuss solutions to your problem!
Thanks.


qt6.qtbase: add patch: use qt.conf from NIXOS_QT_CONF

allow setting the path to qt.conf via environment variable NIXOS_QT_CONF
useful for wrapping and debugging
fix https://github.com/NixOS/nixpkgs/pull/174275#issuecomment-1136109814
based on https://github.com/NixOS/nixpkgs/pull/169296#issuecomment-1133896656
also implement NIXOS_QT_CONF_DEBUG. example output:
$ cat qt.conf
[Paths]
Prefix = /some-prefix
Data = /other/path
ArchData = /other/path/arch-data

$ ( cd /tmp && NIXOS_QT_CONF_DEBUG=1 NIXOS_QT_CONF=/home/milahu/qt-cmake-template/qt.conf /nix/store/7ypi19gfb1jwkh1yzy6j3bx0asiznnqy-helloworld-1.0.0/bin/hello-qt6 )
hello
NIXOS_QT_CONF_DEBUG: loading qt.conf from /home/milahu/qt-cmake-template/qt.conf
NIXOS_QT_CONF_DEBUG: QLibraryInfo paths:
NIXOS_QT_CONF_DEBUG: PrefixPath             = /some-prefix
NIXOS_QT_CONF_DEBUG: DocumentationPath      = /some-prefix/doc
NIXOS_QT_CONF_DEBUG: HeadersPath            = /some-prefix/include
NIXOS_QT_CONF_DEBUG: LibrariesPath          = /some-prefix/lib
NIXOS_QT_CONF_DEBUG: LibraryExecutablesPath = /some-prefix/libexec
NIXOS_QT_CONF_DEBUG: BinariesPath           = /some-prefix/bin
NIXOS_QT_CONF_DEBUG: PluginsPath            = /some-prefix/plugins
NIXOS_QT_CONF_DEBUG: QmlImportsPath         = /some-prefix/qml
NIXOS_QT_CONF_DEBUG: ArchDataPath           = /other/path/arch-data
NIXOS_QT_CONF_DEBUG: DataPath               = /other/path
NIXOS_QT_CONF_DEBUG: TranslationsPath       = /some-prefix/translations
NIXOS_QT_CONF_DEBUG: ExamplesPath           = /some-prefix/examples
NIXOS_QT_CONF_DEBUG: TestsPath              = /some-prefix/tests
NIXOS_QT_CONF_DEBUG: SettingsPath           = /some-prefix

cc @NickCao
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Better prefixes the variable name with NIX or NIXPKGS to avoid possible conflicts or confusions.

i thought about NIX_QT_CONF but ...
QT_CONF is not used by qt, and may be implemented by qt in the future (with the same/similar strategy)
QT_CONF is used in only a few other places

Better prefixes the variable name with NIX or NIXPKGS to avoid possible conflicts or confusions.

Normally such variables are prefixed with NIXOS

@ofborg eval

currently broken with recursive_init_error
$ NIXOS_QT_CONF_DEBUG=1 NIXOS_QT_CONF=./qt.conf ./result/bin/hello-qt6
hello
NIXOS_QT_CONF_DEBUG: loading qt.conf from ./qt.conf
NIXOS_QT_CONF_DEBUG: loaded qt.conf -> paths:
terminate called after throwing an instance of '__gnu_cxx::recursive_init_error'
  what():  std::exception
Aborted (core dumped)

printing the paths would be nice for debugging, but not really necessary

Just wanted to point out that this doesn't seem to help qmake find the proper location of spec files, so I wonder if something is still missing. See: https://github.com/NixOS/nixpkgs/pull/175510#issuecomment-1145456741

for qmake see https://github.com/NixOS/nixpkgs/pull/169296#issuecomment-1107636469
i guess #169296 does not work here,
as qmake can use different settings for itself (dirname("qmake")+"/qt.conf")
versus for the project to build (qmake -qtconf /path/to/qt.conf)

this doesn't seem to help qmake find the proper location of spec files

the error Could not find qmake spec 'linux-g++' is fixed by setting HostData
buildPythonPackage {
  NIXOS_QT_CONF = "/tmp/qt.conf";
  NIXOS_QT_CONF_DEBUG = "1";
  # preConfigure is too late:
  # NIXOS_QT_CONF_DEBUG: not found qt.conf in /tmp/qt.conf -> ignoring
  postUnpack = ''
    cat >/tmp/qt.conf <<EOF
    [Paths]
    ; QT_INSTALL_* paths
    Prefix = ${qtbase}
    Binaries = ${qtbase.dev}/bin
    LibraryExecutables = ${qtbase.dev}/libexec
    Headers = ${qtbase.dev}/include
    Data = ${qtbase.dev}
    ArchData = ${qtbase.dev}
    Settings = ${qtbase.dev}
    QmlImports = ${qtdeclarative.dev}/qml ; TODO verify
    ; QT_HOST_* paths
    HostPrefix = ${qtbase}
    HostData = ${qtbase.dev} ; mkspecs/linux-g++
    HostBinaries = ${qtbase.dev}/bin
    HostLibraryExecutables = ${qtbase.dev}/libexec
    EOF

    # debug
    qmake -query -qtconf /tmp/qt.conf # -qtconf has the same effect as NIXOS_QT_CONF
    qmake -query
  '';

qmake -query

NIXOS_QT_CONF_DEBUG: loading qt.conf from /tmp/qt.conf
NIXOS_QT_CONF_DEBUG: QLibraryInfo paths:
NIXOS_QT_CONF_DEBUG: PrefixPath             = /nix/store/ll3lbpzms8r7m55dn7x21cd4h930wphp-qtbase-6.3.0
NIXOS_QT_CONF_DEBUG: DocumentationPath      = /nix/store/ll3lbpzms8r7m55dn7x21cd4h930wphp-qtbase-6.3.0/doc
NIXOS_QT_CONF_DEBUG: HeadersPath            = /nix/store/h4pikgxyl3k7jr7zhj2vmz78xgnw988a-qtbase-6.3.0-dev/include
NIXOS_QT_CONF_DEBUG: LibrariesPath          = /nix/store/ll3lbpzms8r7m55dn7x21cd4h930wphp-qtbase-6.3.0/lib
NIXOS_QT_CONF_DEBUG: LibraryExecutablesPath = /nix/store/h4pikgxyl3k7jr7zhj2vmz78xgnw988a-qtbase-6.3.0-dev/libexec
NIXOS_QT_CONF_DEBUG: BinariesPath           = /nix/store/h4pikgxyl3k7jr7zhj2vmz78xgnw988a-qtbase-6.3.0-dev/bin
NIXOS_QT_CONF_DEBUG: PluginsPath            = /nix/store/ll3lbpzms8r7m55dn7x21cd4h930wphp-qtbase-6.3.0/plugins
NIXOS_QT_CONF_DEBUG: QmlImportsPath         = /nix/store/ll3lbpzms8r7m55dn7x21cd4h930wphp-qtbase-6.3.0/qml
NIXOS_QT_CONF_DEBUG: ArchDataPath           = /nix/store/h4pikgxyl3k7jr7zhj2vmz78xgnw988a-qtbase-6.3.0-dev
NIXOS_QT_CONF_DEBUG: DataPath               = /nix/store/h4pikgxyl3k7jr7zhj2vmz78xgnw988a-qtbase-6.3.0-dev
NIXOS_QT_CONF_DEBUG: TranslationsPath       = /nix/store/ll3lbpzms8r7m55dn7x21cd4h930wphp-qtbase-6.3.0/translations
NIXOS_QT_CONF_DEBUG: ExamplesPath           = /nix/store/ll3lbpzms8r7m55dn7x21cd4h930wphp-qtbase-6.3.0/examples
NIXOS_QT_CONF_DEBUG: TestsPath              = /nix/store/ll3lbpzms8r7m55dn7x21cd4h930wphp-qtbase-6.3.0/tests
NIXOS_QT_CONF_DEBUG: SettingsPath           = /nix/store/h4pikgxyl3k7jr7zhj2vmz78xgnw988a-qtbase-6.3.0-dev
QT_SYSROOT:
QT_INSTALL_PREFIX:/nix/store/ll3lbpzms8r7m55dn7x21cd4h930wphp-qtbase-6.3.0
QT_INSTALL_ARCHDATA:/nix/store/h4pikgxyl3k7jr7zhj2vmz78xgnw988a-qtbase-6.3.0-dev
QT_INSTALL_DATA:/nix/store/h4pikgxyl3k7jr7zhj2vmz78xgnw988a-qtbase-6.3.0-dev
QT_INSTALL_DOCS:/nix/store/ll3lbpzms8r7m55dn7x21cd4h930wphp-qtbase-6.3.0/doc
QT_INSTALL_HEADERS:/nix/store/h4pikgxyl3k7jr7zhj2vmz78xgnw988a-qtbase-6.3.0-dev/include
QT_INSTALL_LIBS:/nix/store/ll3lbpzms8r7m55dn7x21cd4h930wphp-qtbase-6.3.0/lib
QT_INSTALL_LIBEXECS:/nix/store/h4pikgxyl3k7jr7zhj2vmz78xgnw988a-qtbase-6.3.0-dev/libexec
QT_INSTALL_BINS:/nix/store/h4pikgxyl3k7jr7zhj2vmz78xgnw988a-qtbase-6.3.0-dev/bin
QT_INSTALL_TESTS:/nix/store/ll3lbpzms8r7m55dn7x21cd4h930wphp-qtbase-6.3.0/tests
QT_INSTALL_PLUGINS:/nix/store/ll3lbpzms8r7m55dn7x21cd4h930wphp-qtbase-6.3.0/plugins
QT_INSTALL_QML:/nix/store/ll3lbpzms8r7m55dn7x21cd4h930wphp-qtbase-6.3.0/qml
QT_INSTALL_TRANSLATIONS:/nix/store/ll3lbpzms8r7m55dn7x21cd4h930wphp-qtbase-6.3.0/translations
QT_INSTALL_CONFIGURATION:
QT_INSTALL_EXAMPLES:/nix/store/ll3lbpzms8r7m55dn7x21cd4h930wphp-qtbase-6.3.0/examples
QT_INSTALL_DEMOS:/nix/store/ll3lbpzms8r7m55dn7x21cd4h930wphp-qtbase-6.3.0/examples
QT_HOST_PREFIX:/nix/store/ll3lbpzms8r7m55dn7x21cd4h930wphp-qtbase-6.3.0
QT_HOST_DATA:/nix/store/h4pikgxyl3k7jr7zhj2vmz78xgnw988a-qtbase-6.3.0-dev
QT_HOST_BINS:/nix/store/h4pikgxyl3k7jr7zhj2vmz78xgnw988a-qtbase-6.3.0-dev/bin
QT_HOST_LIBEXECS:/nix/store/h4pikgxyl3k7jr7zhj2vmz78xgnw988a-qtbase-6.3.0-dev/libexec
QT_HOST_LIBS:/nix/store/ll3lbpzms8r7m55dn7x21cd4h930wphp-qtbase-6.3.0/lib
QMAKE_SPEC:linux-g++
QMAKE_XSPEC:linux-g++
QMAKE_VERSION:3.1
QT_VERSION:6.3.0

problem is, when i do this in postUnpack
buildPythonPackage {
  postUnpack = ''
    export NIXOS_QT_CONF=/tmp/qt.conf
    export NIXOS_QT_CONF_DEBUG=1
    cat >/tmp/qt.conf <<EOF
    ...
    EOF
  '';
}

... then the env var is missing in python's os.environ["NIXOS_QT_CONF"]

... then the env var is missing in python's os.environ["NIXOS_QT_CONF"]

Where is that python run? In the same build? Another build? At runtime? Sounds to me like we want to wrap the binary and enforce the env. Would that work?

pyqt6 -> buildPythonPackage -> buildPhase -> pip? -> pipenv?
-> pyqt-builder builder.py -> sip builder.py -> os.environ["NIXOS_QT_CONF"] is empty
here its no problem as the value is constant, so no need to export

closing as not needed


New artists are not pulled in

Currently we're not checking for new artists/albums, which is problematic.

Deployed this!


Add support to TLS

Since version 1.5.13, Memcached supports TLS.
Motivation
At OpenStack, we are considering a switch from python-memcached to pylibmc in our oslo.cache Memcache backend driver. In the next step, we will need to enable TLS in Memcached as data must be encrypted in the wire for our scenario.
I looked over the documentation and couldn't find anything related to TLS support. If there is a way to achieve that, please let us know.
I would like to help with the implementation of this if needed.

This is really not something pylibmc can solve, only libmemcached. If libmemcached exposes the feature, we can implement it.

On 20 Nov 2019, at 14:59, Moisés Guimarães de Medeiros<EMAIL_ADDRESS>wrote:
Since version 1.5.13, Memcached supports TLS https://github.com/memcached/memcached/wiki/TLS.
Motivation
At OpenStack https://www.openstack.org/, we are considering a switch from python-memcached to pylibmc in our oslo.cache https://opendev.org/openstack/oslo.cache Memcache backend driver. In the next step, we will need to enable TLS in Memcached as data must be encrypted in the wire for our scenario.
I looked over the documentation and couldn't find anything related to TLS support. If there is a way to achieve that, please let us know.
I would like to help with the implementation of this if needed.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/lericson/pylibmc/issues/255?email_source=notifications&email_token=AAALONOZI6Z7R2JDHQIOHFDQUU7E5A5CNFSM4JPTCID2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H2XMVBA, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALONPYOSS3D32O2SBTIP3QUU7E5ANCNFSM4JPTCIDQ.

Thanks @lericson, I'm trying to push this in many fronts, I'm talking to libmemcached folks already. I'll post here any updates to this matter.


Add Forgot Password Feature

Forgot password feature can enable users to reset their passwords in case they forget them.

Hi @SarthakJain26 and @imrajdas, if no one is currently working on this, could you please assign me the issue?


Update gem0 namespace to gem

We updated the Advancement namespace default value to support the final namespace for our sister product, GEM. This should have no impact on NPSP functionality.

Critical Changes
Changes
Issues Closed
New Metadata
Deleted Metadata
Testing Notes
When gem is installed and this PR is applied, all apex tests from the NPSP package should pass. That part of testing is only possible after a release has been cut.

**lurch: attach W-033245

Tracking W-033245

Hi @force2b - We're trying to get this change in the next release of Cumulus to go along with the GEM release. Are you able to review this so we can make that cutoff? Thanks.

@smarovich and @markross-sfdo - please see the changes section in this PR, I know we have done this before when we went to the gem0 namespace if you want to look back on past "release notes".

Merging since code review(s) passed. Will test with a beta release.


AttributeError thrown when there is a hostname validation error

Hit an unhandled exception while scanning cbc.ca:
$ pshtt cbc.ca --json
Certificate did not match expected hostname: cbc.ca. Certificate: {'subjectAltName': [('DNS', '*.akamaihd.net'), ('DNS', '*.akamaihd-staging.net'), ('DNS', '*.akamaized-staging.net'), ('DNS', '*.akamaized.net'), ('DNS', 'a248.e.akamai.net')], 'subject': ((('commonName', u'a248.e.akamai.net'),),)}
Traceback (most recent call last):
  File "/usr/local/bin/pshtt", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/site-packages/pshtt/cli.py", line 54, in main
    results = pshtt.inspect_domains(domains, options)
  File "/usr/local/lib/python2.7/site-packages/pshtt/pshtt.py", line 882, in inspect_domains
    results.append(inspect(domain))
  File "/usr/local/lib/python2.7/site-packages/pshtt/pshtt.py", line 63, in inspect
    basic_check(domain.https)
  File "/usr/local/lib/python2.7/site-packages/pshtt/pshtt.py", line 173, in basic_check
    https_check(endpoint)
  File "/usr/local/lib/python2.7/site-packages/pshtt/pshtt.py", line 335, in https_check
    except nassl.x509_certificate.X509HostnameValidationError:
AttributeError: 'module' object has no attribute 'x509_certificate'

Heyo @redshiftzero. Are you using the latest version in the repo or pip?
Here's my output with 0.1.6 in master:
$ pshtt cbc.ca --json
Certificate did not match expected hostname: cbc.ca. Certificate: {'crlDistributionPoints': (u'http://ss.symcb.com/ss.crl',), 'subjectAltName': (('DNS', '*.akamaihd.net'), ('DNS', '*.akamaized.net'), ('DNS', '*.akamaized-staging.net'), ('DNS', '*.akamaihd-staging.net'), ('DNS', 'a248.e.akamai.net')), 'notBefore': u'Mar  7 00:00:00 2017 GMT', 'caIssuers': (u'http://ss.symcb.com/ss.crt',), 'OCSP': (u'http://ss.symcd.com',), 'serialNumber': u'21C0AE35B8240503E5A5894F40D5BFEB', 'notAfter': 'May  6 23:59:59 2018 GMT', 'version': 3L, 'subject': ((('countryName', u'US'),), (('stateOrProvinceName', u'Massachusetts'),), (('localityName', u'Cambridge'),), (('organizationName', u'Akamai Technologies, Inc.'),), (('commonName', u'a248.e.akamai.net'),)), 'issuer': ((('countryName', u'US'),), (('organizationName', u'Symantec Corporation'),), (('organizationalUnitName', u'Symantec Trust Network'),), (('commonName', u'Symantec Class 3 Secure Server CA - G4'),))}
Error validating certificate.
Known error in sslyze 1.X with EC public keys. See https://github.com/nabla-c0d3/sslyze/issues/215
[
  {
    "Base Domain": "cbc.ca",
    "Canonical URL": "http://www.cbc.ca",
    "Defaults to HTTPS": false,
    "Domain": "cbc.ca",
    "Domain Enforces HTTPS": false,
    "Domain Supports HTTPS": false,
    "Domain Uses Strong HSTS": false,
    "Downgrades HTTPS": true,
    "HSTS": false,
    "HSTS Base Domain Preloaded": false,
    "HSTS Entire Domain": null,
    "HSTS Header": null,
    "HSTS Max Age": null,
    "HSTS Preload Pending": false,
    "HSTS Preload Ready": false,
    "HSTS Preloaded": false,
    "HTTPS Bad Chain": null,
    "HTTPS Bad Hostname": null,
    "HTTPS Expired Cert": null,
    "Live": true,
    "Redirect": false,
    "Redirect To": null,
    "Strictly Forces HTTPS": false,
    "Valid HTTPS": true,
    "endpoints": {
      "http": {
        "headers": {
          "Connection": "keep-alive",
          "Content-Length": "0",
          "Date": "Wed, 24 May 2017 17:02:53 GMT",
          "Location": "http://www.cbc.ca/",
          "Server": "AkamaiGHost"
        },
        "live": true,
        "redirect": true,
        "redirect_eventually_to": "http://www.cbc.ca/",
        "redirect_eventually_to_external": false,
        "redirect_eventually_to_http": true,
        "redirect_eventually_to_https": false,
        "redirect_eventually_to_subdomain": true,
        "redirect_immediately_to": "http://www.cbc.ca/",
        "redirect_immediately_to_external": false,
        "redirect_immediately_to_http": true,
        "redirect_immediately_to_https": false,
        "redirect_immediately_to_subdomain": true,
        "redirect_immediately_to_www": null,
        "status": 301,
        "url": "http://cbc.ca"
      },
      "https": {
        "headers": {
          "Connection": "keep-alive",
          "Content-Length": "0",
          "Date": "Wed, 24 May 2017 17:02:54 GMT",
          "Location": "https://www.cbc.ca/",
          "Server": "AkamaiGHost"
        },
        "hsts": false,
        "hsts_all_subdomains": null,
        "hsts_header": null,
        "hsts_max_age": null,
        "hsts_preload": null,
        "https_bad_chain": null,
        "https_bad_hostname": null,
        "https_expired_cert": null,
        "https_valid": null,
        "live": true,
        "redirect": true,
        "redirect_eventually_to": "http://www.cbc.ca/",
        "redirect_eventually_to_external": false,
        "redirect_eventually_to_http": true,
        "redirect_eventually_to_https": false,
        "redirect_eventually_to_subdomain": true,
        "redirect_immediately_to": "https://www.cbc.ca/",
        "redirect_immediately_to_external": false,
        "redirect_immediately_to_http": false,
        "redirect_immediately_to_https": true,
        "redirect_immediately_to_subdomain": true,
        "redirect_immediately_to_www": null,
        "status": 301,
        "url": "https://cbc.ca"
      },
      "httpswww": {
        "headers": {
          "Connection": "keep-alive",
          "Content-Length": "0",
          "Date": "Wed, 24 May 2017 17:02:54 GMT",
          "Location": "http://www.cbc.ca/",
          "Server": "AkamaiGHost",
          "Set-Cookie": "akaas_feed=2147483647~rv=95~id=c866e93b760b049ee3053645f7ff3704; path=/"
        },
        "hsts": false,
        "hsts_all_subdomains": null,
        "hsts_header": null,
        "hsts_max_age": null,
        "hsts_preload": null,
        "https_bad_chain": null,
        "https_bad_hostname": null,
        "https_expired_cert": null,
        "https_valid": true,
        "live": true,
        "redirect": true,
        "redirect_eventually_to": "http://www.cbc.ca/",
        "redirect_eventually_to_external": false,
        "redirect_eventually_to_http": true,
        "redirect_eventually_to_https": false,
        "redirect_eventually_to_subdomain": false,
        "redirect_immediately_to": "http://www.cbc.ca/",
        "redirect_immediately_to_external": false,
        "redirect_immediately_to_http": true,
        "redirect_immediately_to_https": false,
        "redirect_immediately_to_subdomain": false,
        "redirect_immediately_to_www": null,
        "status": 302,
        "url": "https://www.cbc.ca"
      },
      "httpwww": {
        "headers": {
          "Cache-Control": "max-age=35",
          "Connection": "keep-alive",
          "Content-Encoding": "gzip",
          "Content-Length": "23037",
          "Content-Type": "text/html",
          "Date": "Wed, 24 May 2017 17:02:53 GMT",
          "Server": "Apache/2.2.15 (Red Hat)",
          "Set-Cookie": "akaas_feed=2147483647~rv=61~id=3aa5d798cd8c041a08f7708e6fc2fb18; path=/, akaas_feed=2147483647~rv=85~id=9b3371e0f7c93ae8d8556e946886deb2; path=/, akaas_feed=2147483647~rv=82~id=73acb87502ed7d7d1ba4f6fe99314ec5; path=/, akaas_feed=2147483647~rv=6~id=deff66c3c2eed6cc0e326c00d880be7a; path=/, akaas_feed=2147483647~rv=23~id=3cf8e6c257bff7dd814ba5dbbeaf99ee; path=/, akaas_feed=2147483647~rv=14~id=3d919a225416eb8b3b91aaa123db7078; path=/, akaas_feed=2147483647~rv=32~id=83045eb1e115694649efdec8788d55b3; path=/, akaas_feed=2147483647~rv=35~id=73f9cf4497574582fd9a4f6339615ca5; path=/",
          "Vary": "Accept-Encoding",
          "X-Origin-Server": "static01_cache01"
        },
        "live": true,
        "redirect": null,
        "redirect_eventually_to": null,
        "redirect_eventually_to_external": null,
        "redirect_eventually_to_http": null,
        "redirect_eventually_to_https": null,
        "redirect_eventually_to_subdomain": null,
        "redirect_immediately_to": null,
        "redirect_immediately_to_external": null,
        "redirect_immediately_to_http": null,
        "redirect_immediately_to_https": null,
        "redirect_immediately_to_subdomain": null,
        "redirect_immediately_to_www": null,
        "status": 200,
        "url": "http://www.cbc.ca"
      }
    }
  }
]

Closing, but feel free to re-open if you can answer @h-m-f-t's question and can reproduce the issue.


Replace pointer in filereader.hpp with smart pointer

This means including <memory>. At least those are no longer bound to BOOST

Added smart pointers. However, this as of now includes some very ugly code. As std::cin should not get deallocated when the last shared_ptr on it is removed, a new shared_ptr is allocated on the heap in FileReader class' destructor.


⚠ Punto de Fuga has degraded performance

In 6e39b80, Punto de Fuga (http://puntodefugapodcast.com) experienced degraded performance:

HTTP code: 200
Response time: 9348 ms

Resolved: Punto de Fuga performance has improved in 481d9f8.


Waypoints path planning Art oak

Sorry - meant to do a PR this way... but this does raise a good question: since master is ahead of art-oak, should I first merge master into art-oak and then merge back into master?

Sorry - meant to do a PR this way... but this does raise a good question: since master is ahead of art-oak, should I first merge master into art-oak and then merge back into master?

You should rebase art-oak on top of master. Does that make sense?

@StefanCaldararu doesn't look like the rebase worked

Closing because there are too many conflicts to try and resolve here. Just going to branch off of master in a clean way.


Needed support for Gitlab CI/CD

When will Gitlab be added as the source code for MLops- stack..?

Hi @mukul-gidwani-repo we don't have any plans to add GitLab support, but we welcome contributions! It shouldn't be that difficult, and be similar to ADO and GH support in the top level folders. If you can make a PR, I'll take a look!

Hi, I am working on this Merge Request:
https://github.com/databricks/mlops-stacks/pull/174

Same problem!

@imadcat The pull request has just been merged and you can now deploy on gitlab

@imadcat The pull request has just been merged and you can now deploy on gitlab

@valx thx! which version of Databricks will include this feature?

@imadcat this is not a feature of Databricks runtime.
This template allows you to create new ML projects in line with Databricks best practices relying on Databricks Asset Bundles (https://docs.databricks.com/en/dev-tools/bundles/index.html).
It is available now and you can get started by this command:
databricks bundle init mlops-stacks
Check prerequisites and details on the readme https://github.com/databricks/mlops-stacks/blob/main/README.md.


Adding native backend

Adding evaluator base class to help building evaluators
Adding tests for native backend

Making a combined PR for geopandas and native


Feature/sap

added import and export functionality

This functionality (without the extra files) was resolved by #90


refactor(http): Use query parameter builders

This is created based on the discussion here. Essentially, using a builder allows us to more accurately and more ergonomically construct query parameters.

Heya, just letting you know that I picked up https://github.com/sunsided/query-string-builder/issues/2 and have a solution implemented. If the change (PR https://github.com/sunsided/query-string-builder/issues/3) works for you I can get the update out quickly, in case it helps.

We've been very strict about Display performance so this is an unacceptable regression. Since query_string_builder cannot be made lazy (a requirement for us) I propose vendoring a similar API, without allocations. We can iterate on such an API on Discord

Author of the library here. I'd love to understand the use case. Is this simply about deferring the call to to_string() until the query string is actually to be rendered?

We've been very strict about Display performance so this is an unacceptable regression. Since query_string_builder cannot be made lazy (a requirement for us) I propose vendoring a similar API, without allocations. We can iterate on such an API on Discord

while i agree with the (arguably little) performance penalty of using this method, i think we need to consider the 20/80 rule here
while a simple change from format!() to f.write_str() is worth it for the performance gain, writing our own query string builder might not be worth it
not to mention, i feel that this goes beyond the scope of twilight, if we can find a library that fits our criteria better or if someone volunteers to write such a library, i agree that we should use that library instead

Author of the library here. I'd love to understand the use case. Is this simply about deferring the call to to_string() until the query string is actually to be rendered?

My usage of "lazy" was not quite correct. What I meant is that we want to avoid creating temporary Strings for keys and values. We have a very big performance focus so I'm unsure if whatever API we come up with here should be broadly encouraged.


manage-dockerfile: preserve ARG values that come before the first FROM

Some of the helper functions that addBuildParameters() calls modify the parsed tree, discarding ARG instructions that precede the first FROM instruction.  The replacement Dockerfile that we generate from that tree would be missing those instructions.
Knowing that this will happen, walk the parsed tree beforehand, recording ARG instructions that precede the first FROM instruction, and then re-prepend them to the Dockerfile that we generate from our tree after we've finished manipulating it.
If we've got BuildArgs in a DockerStrategy, populate the BuildArgs map that we pass to imagebuilder functions that might have a use for them.
We usually try to pull images that are referenced in the Dockerfile ourselves, so that we can record the time required to pull them.  If we looked for the image and encounter a problem other than image-hasn't-been-pulled (attempting to use an argument in the name would often lead to invalid-image-reference errors), we would previously have failed, but instead, we now let the build stage handle attempting to pull the image.

/test e2e-aws-builds

Can we please get some attention here, this bug is affecting us, see: https://access.redhat.com/support/cases/#/case/02630699
if you have access.

is there a bug associated with that case @danielkucera ? ... it would need to be associated with this PR in order for it to merge
tests are green
and my review comment was addressed at least
/assign @adambkaplan

@gabemontero this was the original issue:
https://bugzilla.redhat.com/show_bug.cgi?id=1839683
but after latest update the error has changed to:
Caching blobs under "/var/cache/blobs".
error: build error: error parsing name "***/rhel8-ubi-base:${BASE_IMAGE_TAG}": error parsing image name "***/rhel8-ubi-base:${BASE_IMAGE_TAG}": invalid reference format

(registry was starred-out by me)
so now it depends on one of yours:
https://bugzilla.redhat.com/show_bug.cgi?id=1801875

@gabemontero this was the original issue:
https://bugzilla.redhat.com/show_bug.cgi?id=1839683
but after latest update the error has changed to:
Caching blobs under "/var/cache/blobs".
error: build error: error parsing name "***/rhel8-ubi-base:${BASE_IMAGE_TAG}": error parsing image name "***/rhel8-ubi-base:${BASE_IMAGE_TAG}": invalid reference format

(registry was starred-out by me)
so now it depends on one of yours:
https://bugzilla.redhat.com/show_bug.cgi?id=1801875

I see ... thanks for the info @danielkucera  .... I think we need to let @nalind make the call on which BZ he thinks should be associated with this PR.
After that is done, we'll need an approve from @adambkaplan and then either he or I to lgtm this

@nalind @gabemontero based on the discussion in this PR, I'm going to create a separate BZ to cover this specific case. There seem to be separate issues wrt args in Buildah that may need to be addressed.

/retitle
Bug 1842982: preserve ARG values that come before the first FROM

/retitle Bug 1842982: preserve ARG values that come before the first FROM

/cherry-pick release-4.5


minor reword of the description

might be nitpicking, but hope it helps

@axelsimon not nitpicking at all as it helps to more clearly describe the functions and capabilities of Rekor. When a change is introduced, such as this, it would require a bump to the chart version. I have a change that I'd like to introduce in the next few days. I can incorporate the changes in this PR then, or if you want to update the chart version in this PR, we can go down that route as well.

@axelsimon incorporated into #12

@sabre1041 Sorry for the slow reply, fell through the cracks. Bundling this with your change sounds good, thanks for going ahead and doing so :)


#Preview macro breaks multi-line string literal indentation

Description
In Xcode 15 beta 3, the #Preview macro breaks the indentation of multi-line string literals. I'm not sure if this is an issue with just that macro, or the macro transformations in general. (If it's the former, I've already filed this as FB12534278, but I suspect it's a more general issue with the source transformation so I'm filing this as well).
Steps to reproduce
In Xcode 15 beta 3, the following code fails to build:
#Preview {
    let mockData = """
        [{
            "foo": "bar",
            "count: 1
        }]
    """

    return Text("")
}

with the error insufficient indentation of line in multi-line string literal
Expanding the macro shows that the string literal is being transformed into
            let mockData = """
                [{
            "foo": "bar",
            "count: 1
        }]
            """

i.e., the line with the opening triple quotes, the first line of contents, and the closing triple quotes have all had their indentation increased (to match the indentation of surrounding code), but the remaining lines of the literal still have their original indentation, making the literal invalid because those lines are under-indented.
Expected behavior
The indentation of the every line of the string literal should either be unmodified by the macro, or increased uniformly.
Environment

swift-driver version: 1.85 Apple Swift version 5.9 (swiftlang-<IP_ADDRESS>.7 clang-15<IP_ADDRESS>)
Xcode 15.0, Build version 15A5195k (i.e. beta 3)
Deployment target: iOS 17 beta 3

Fixed in Xcode 15 beta 5, closing.


Local json path trigger exception

>fontgen fonts.json
Uncaught exception: SysError(Failed to set path to )

Hm, looks like Sys.setCwd does not like empty string passed to it.


Error upgrading from version 2018.22.0 to 2018.28.0

List of Failures (first 10 only)

 NOTE: First failure is generally the root cause.

 IMPORTANT: If opening a ticket, please include this information.

  - ID: sift-python-packages-machinae
    SLS: sift.python-packages.machinae
    Run#: 261
    Comment: Error installing 'machinae': Could not find a `pip` binary
  - ID: undefined
    SLS: sift.python-packages
    Run#: 280
    Comment: One or more requisite failed: sift.python-packages.machinae.sift-python-packages-machinae
  - ID: undefined
    SLS: sift.vm
    Run#: 545
    Comment: One or more requisite failed: sift.python-packages.sift-python-packages

Please note that I am using the latest sift-cli to perform this upgrade.

Please go download the latest release of the SIFT CLI and upgrade to it and then attempt upgrade.

@dwizel any luck?

Apologies ekristen, been swarmed at work and uni. I've tried to run an update again and still no luck. Is there a way to remove sift and re-install it again?. Still getting the same error.

So I've been at this and I decided to go back to my first error which had to do with the pip installation. This helped me fix it with no errors. By gedeon8084
Ok. Problem solved!
In the forum, there was a post by @johnmccash, that gave the solution.
To summarize, after:
$ pip installpip==9.0.3
I performed:
apt-get install python3-pip --reinstall
That solved the problem for me.


Edit Recorded Videos for the Onboarding Course

Help edit already recorded video content with video editing softwares.

@yigakpoa I am thinking this issue is not documentation. Maybe the label could be removed. It has be be editing the video with any video editing platform not writing about the the video. What do you think?

Hi @peculiaruc Thats a good point.
What label do you suggest we add to this? Or maybe remove the label altogether since its a one time thing? Because I don’t think there’s a “fitting”  label per se for video editing.
I also think that the issue itself is self explanatory, the label is just for better organization in the Project board. But if you have better ideas i’m open to it.

I will think of something.  I get back to you on this

Awesome! I’ll be waiting…


Current State: Button doesn't look like a button
Desired State: To increase text indentation to button edges

This issue should be assigned to the backend team


Disable CI and PR triggers for CG pipeline

Summary

Release Notes Entry

/backport to shipped/v8.0


dist/index.js missing

/node_modules/react-native-app-intro-slider/package.json was successfully found. However, this package itself specifies a main module field that could not be resolved..
indeed, no dist/index.js

Man, have you tried to change the reference name in the package.json file? Cause in the .json has a ".js" reference instead the ".d.ts".

Once you change the file index file type to .js, you get this error:

Same issue....is anyone previously used this

It looks like I somehow forgot to build the index.js-file before publishing to npm, really sorry! I've updated the scripts so that won't be possible in the future. Please try with the latest version on npm.

Thank you so much @Jacse , it works perfectly.


Remove the googlehome integration

Breaking Change:
The googlehome integration has been removed.
For a couple of weeks/months this integration was broken when google change the port they serve this information on, and to require a token header in the request.
That method requires the user to have a rooted android, and even then then the "result" was not the best, since you often need to get that token.
As an alternative to the device tracker, users can look into https://community.home-assistant.io/t/monitor-reliable-multi-user-distributed-bluetooth-occupancy-presence-detection/68505
Description:
For the alarm sensor, I'm not aware of any alternatives.
Related issue (if applicable):
closes #25673 closes #24815 closes #24013 closes #21357 closes #21315
Pull request with documentation for home-assistant.io: home-assistant/home-assistant.io#10166
Checklist:

[ ] The code change is tested and works locally.
[ ] Local tests pass with tox. Your PR cannot be merged unless tests pass
[ ] There is no commented out code in this PR.
[ ] I have followed the development checklist

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

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

If the code communicates with devices, web services, or third-party tools:

[ ] The manifest file has all fields filled out correctly. Update and include derived files by running python3 -m script.hassfest.
[ ] New or updated dependencies have been added to requirements_all.txt by running python3 -m script.gen_requirements_all.
[ ] Untested files have been added to .coveragerc.

If the code does not interact with devices:

[ ] Tests have been added to verify that the new code works.

I would include the three first paragraphs of the description in the breaking change notes, to give the user some more info.

Just including it looked a bit redundant, so I moved it :)

Google Home integration works for me with this https://github.com/Drakulix/ghlapi_proxy & android install in virtual machine there i have a crontab that grabs homegraph file.
Not perfect and i have to restart Home app sometimes but atleast works.
Removing this would make that not working either.

@Leatherface75 feel free to continue using this integration as a custom component. It is too much hassle to use to be part of the Home Assistant core.

How do i use this as custom component?