How to skip metrics from ingestion?

What did you do?
Did you expect to see some different?
Environment

Prometheus Operator version:
v0.36.0

Kubernetes version information:
Server Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.6"}

Kubernetes cluster kind:
kubespray

I've asked question in Slack, but no one replied :) So, I'm asking here:
We're using prometheus-operator helm chart to install prometheus monitoring. We have high cardinality metrics node_ipvs_backend_connections_inactive/node_ipvs_backend_connections_active coming from node-exporter servicemonitor. We're trying to stop metrics from ingestion by adding to values.yaml:
additionalScrapeConfigs:
      - job_name: 'node-exporter'
        metric_relabel_configs:
          - source_labels: [__name__]
            regex: (node_ipvs_backend_connections_inactive)
            action: drop

But that doesn't work out and metrics are still ingested. Can you pls point what we're missing? Thank you.

You need to use the metricRelabelings field in the ServiceMonitor to drop metrics at ingestion time.

@brancz
Thanks!
Although, I'm not sure where's the right place to ask question about node-exporter's serviceMonitor. Since from reading helm template of that serviceMonitor - there's no way to inject metricRelabelings. So I expected that prometheus-operator can do some magic on the higher level than servceMonitor.

The helm charts are neither used nor maintained by the prometheus-operator maintainers. Therefore we don't know the setup, so we're unlikely to be able to help you. I recommend creating an issue on the upstream helm charts repo where these helm charts are maintained. I assume it's just missing from the helm templates.


Allow for hiding of editor/title/run menu via a setting

Just wanted to re-surface https://github.com/microsoft/vscode/issues/135083 here, if I may, to see if it might be possible to add a JSON setting via which the "Run Python File" button (aka editor/title/run) could be disabled. In https://github.com/microsoft/vscode-python/issues/9633#issuecomment-800513409, @luabud kindly suggested:

We are now using the VS Code API for the play button (https://code.visualstudio.com/updates/v1_54#_limits-for-editor-title-menu-and-run-submenu), so this request would need to be asked upstream to VS Code.

In https://github.com/microsoft/vscode/issues/135083#issuecomment-943337180, though, @gjsjohnmurray proposed that this should perhaps be done here instead:

The Python extension devs ought to be able to add a boolean setting which will do this, e.g. python.showRunAndDebugInEditorTitle, default it to true, then extend the two when clauses here:
https://github.com/microsoft/vscode-python/blob/2f592d061da6eeb2068ef1f7870d9fa92cdf7e9b/package.json#L1946-L1959
by appending  && config.python.showRunAndDebugInEditorTitle to each of them. See doc.

Particularly with Codespaces being used all the more in education now, the Run button tends to create undue confusion, since it allows students to execute, e.g., foo/bar.py even when they've not cd'd into foo/ in their terminal. For instance, if students subsequently run python, cp, mv, or the like manually, as a homework might specify, they frequently don't understand why they're seeing "No such file or directory." E.g., screenshot below, in which the first command in the terminal was the result of clicking the Run button, with the terminal itself still in the parent directory of foo/:

This has actually become one of the most frequent FAQs in @cs50, since students are discovering the Run button their own and don't realize that it's not tightly coupled with their terminal window, where we'd prefer they develop muscle memory before relying on GUI abstractions. Indeed, we'd much prefer to hide the button altogether at term's start and allow them to re-enable it once they've a mental model for the shortcut it provides (via its use of absolute paths) rather than have it there for all .py files.
It's possible to hide the button now via right-click, per @jrieken in https://github.com/microsoft/vscode/issues/154804#issuecomment-1251978390, but not yet (to my knowledge!) via a JSON setting that we could configure for students in a .devcontainer.json file or our own VS Code extension.
Thank you!
CC @rongxin-liu @lostintangent

It seems the biggest issue the Run button causes you is that execution ends in a working terminal. Is that a fair assessment? If so, then would making it so the Run button doesn't lead to a terminal resolve your issue?
There's also a setting called python.terminal.executeInFileDir that should change the directory of the terminal to where the file is. Does that change the situation at all for you?


Add unit testing using doctest

As requested in https://github.com/amiremohamadi/DuckX/pull/37 I've added unit testing using the doctest framework.

LGTM!
@DavidLoftus and @SuperWig, thank you for contribution! :tada:

Some of @SuperWig comments weren't resolved before merge, will make another PR with those small changes.


Re-factor and simplify the getQuadPoints helper function

The use of Array.prototype.reduce() is, in my opinion, hurting overall readability since it's not particularly easy to look at the relevant code and immediately understand what's going on here. Furthermore this code leads to strictly speaking unnecessary allocations and parsing, since we could just track the min/max values directly in the relevant loop instead.

/botio test


Fix build against Slicer using Qt4 and improve build-system

The build manually triggered completed and the macOS extension has been uploaded.

That said, the build system need to be updated ... similar to what I did for https://github.com/NIRALUser/SPHARM-PDM
Look like there is an overlap

Thank you so much for this update


feat(region): add ability to specify region as an arg or get from env

In index.ts added a check for the region as an arg. If not present, fallback to getting the region from the AWS_REGION environment variable, and throw an error if neither is found.
Amended two templates to use the region variable.
This adds the ability to execute this script in regions other than eu-west-1, which was hardcoded in two of the templates.

Thanks for the awesome contribution! :)


Off-by-one event filtering in channelEventsEpic

https://github.com/raiden-network/light-client/blob/72d575fb5d5e2c801e55f3c4f27c4f14f4d54932/raiden-ts/src/channels/epics.ts#L560-L571
The +1 is an off-by-one error, it is unlikely but possible for the deploy and call transaction to be mined in the same block. Here is a test to prove this is the case:
https://github.com/raiden-network/raiden/pull/6435/files
Note: This can also happen with two transactions, e.g. a registerToken and a openChannel. It has happened during testing of the python implementation.

How could that be? Don't the contract's address get available only after deploy? And one would need the contract's address to interact with the contract? Just to understand how this could happen on real life.
Anyway, we can remove the + 1, the events filtering should be reliable over duplicated events.

How could that be? Don't the contract's address get available only after deploy? And one would need the contract's address to interact with the contract? Just to understand how this could happen on real life.

Please, refer to the test I mentioned above. I wrote it to show that this is possible.


Update Dapr category on manifest.yaml

Updating category for Dapr into the marketplace
If your pull request is to submit a new application to the marketplace, please answer the following questions:

[x] Have you followed the guidelines in our Contributing document in setting up the application?
[x] Have you checked that the application your submission is proposing to add does not yet exist on the Marketplace, or as a pull request to be processed?
[x] Have you tested your application on the Civo managed Kubernetes service? Please include a screenshot.
[x] Can you confirm that the software you are submitting licensed for use in a publicly-available Kubernetes marketplace?
[x] Have you included the specific version of the application to be installed?

If your pull request concerns an existing Marketplace application, please make sure you have:

[ ] Notified the Maintainer of the application in this pull request so that they are aware of your proposal.
[ ] Outlined the changes you are proposing, and the reasons these are required (e.g. stability, compatibility with new versions of Kubernetes implementations, etc).
[ ] Tested that the application works with the proposed updates applied (including a screenshot).
[ ] Updated the version number of the app if that has changed.

@saiyam1814 I think I've used a non existing category.. do you know how much does it take to appear on the marketplace?


Make cri-tools independent from k/k

What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Decouple the main k/k repository from cri-tools.
Which issue(s) this PR fixes:

None
Special notes for your reviewer:
Requires https://github.com/kubernetes/kubernetes/pull/124671
Does this PR introduce a user-facing change?

None

@kubernetes-sigs/cri-tools-maintainers PTAL

nice cleanup :star_struck:
/lgtm


Setup a URL shortener

It would be nice to have short URLs available for linking to RDocumentation.
I want to be able to type something like https://rdocs.io/pkgname/functionname and have it redirect to https://www.rdocumentation.org/packages/pkgname/versions/pkgversion/topics/functionname.

This would

Encourage sharing links, increasing the popularity of the service.
Make the links inside our courses easier to read, which would help the Content team and especially me.


fix(Input): update supported values for the size prop

Fixes #3439.
This PR updates supported values for the size prop, see input.css.

Codecov Report

Merging #3444 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #3444   +/-   ##
=======================================
  Coverage   99.92%   99.92%
=======================================
  Files         172      172
  Lines        2838     2838
=======================================
  Hits         2836     2836
  Misses          2        2

Impacted Files
Coverage Δ

src/elements/Input/Input.js
100% <ø> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

Released in<EMAIL_ADDRESS>

Would this be a breaking change, since previously there was medium size supported?
This came up only when we ran some snapshot testing on our data table component, as seen https://travis-ci.com/EQWorks/extended-semantic-components/builds/105847120


Create signature ui

Call to POST /signature_ui allowing to customize Yousign user interface.
https://dev.yousign.com/#bc7e5e61-a0b3-41d9-83cf-5e248eeb9195

Great contribution. Thanks to you. Someone could write a manual entry to this new feature.


Create it_it.json, Italian translation

Hi.  Thanks for setting this up.   I'll give it a light google translate validation and then see about merging it in.


Add support for LZ4 compressed rosbags to the py_rosbag target

To read LZ4 compressed rosbags via the py_rosbag target from Python, the roslz4 module needs to be passed as a dependency, as it is dynamically loaded during the imports of the bag.py module. See, in the bag.py implementation in the ros_comm repository.
Can we please add this support to the rule set here?

Sounds good to me. Please feel free to impl this and open a PR.

I've started implementing on this. These are the changes I currently have for the ros_comm.BUILD.bazel:
`diff --git a/ros/repositories/ros_comm.BUILD.bazel b/ros/repositories/ros_comm.BUILD.bazel
index 29a8062..5ad229e 100644
--- a/ros/repositories/ros_comm.BUILD.bazel
+++ b/ros/repositories/ros_comm.BUILD.bazel
@@ -239,6 +239,40 @@ cc_ros_library(
],
)

+cc_ros_library(

name = "roslz4_py_lib",
srcs = ["utilities/roslz4/src/_roslz4module.c"],
visibility = ["//visibility:public"],
copts = ["-Wno-missing-field-initializers", "-Wno-unused-variable", "-Wno-strict-aliasing"],
deps = [

   ":roslz4",

   "@roscpp_core//:cpp_common",

   "@rules_python//python/cc:current_py_cc_headers"

],
+)

+cc_binary(

name = "_roslz4.so",
linkshared = 1,
deps = [":roslz4_py_lib"],
+)

+genrule(

name = "copy_roslz4_py_so",
srcs = ["_roslz4.so"],
outs = ["utilities/roslz4/src/roslz4/_roslz4.so"],
cmd = "cp $< $@",
+)

+py_library(

name = "roslz4_py",
srcs = glob(["utilities/roslz4/**/*.py"]),
imports = ["utilities/roslz4/src"],
data = [":copy_roslz4_py_so"],
visibility = ["//visibility:public"],
+)

cc_ros_library(
name = "rosbag_storage",
srcs = [
@@ -349,6 +383,7 @@ py_library(
deps = [
":py_topic_tools",
":rospy",

   ":roslz4_py",
   "@rules_ros//third_party/ros:roslib",
   requirement("gnupg"),
   requirement("pycryptodomex"),

`
I'm currently struggling when importing the python bag module, which tries to load the _roslz4 module. There I get the following error: dynamic module does not define module export function (PyInit__roslz4)
So it seems python does not find the init function in the shared object file, which should be there
Any idea what is causing this?
I can also open a PR if it's easier to discuss there.


Stop future validation rules if a rule fails

Feature Request:
Given this definition
public class MyInsideItem {
      public string InsideProp {get;set;}
}

public class MyItem {
    public MyInsideItem Item {get;set;}
}

The validator today would have to be written like this:
    public class MyItemValidator : AbstractValidator<MyItem>
    {
        public MyItemValidator()
        {
                RuleFor(x => x.MyInsideItem).NotNull();
                When(x => x.MyInsideItem != null, () =>
                {
                    RuleFor(x => x.MyInsideItem.InsideProp).NotEmpty(0);
                });
        }
    }

As you can see, the null check is really done twice and we already know it does not need to go on.  In this case it is a simple null check - but the validation to decide on if I should validate the internal property could be complex.
Proposal would be:

Something to stop future rules all together

    public class MyItemValidator : AbstractValidator<MyItem>
    {
        public MyItemValidator()
        {
                RuleFor(x => x.MyInsideItem).NotNull().StopValidatingOnFailure();
                RuleFor(x => x.MyInsideItem.InsideProp).NotEmpty(0);
        }
    }

Dependency rules

    public class MyItemValidator : AbstractValidator<MyItem>
    {
        public MyItemValidator()
        {
                RuleFor(x => x.MyInsideItem).NotNull().WhenValid( ()=>
                {
                    RuleFor(x => x.MyInsideItem.InsideProp).NotEmpty(0);
                }
        }
    }

Given how everything works with fluent, I think # 2 (Dependency rule) implementation above would be the easiest, because it is a lot like a when and should be an easy adaptation.   # 1 (stop all future rules) has the possibly negative effect of stopping ALL future rules from executing and you may want some rules to fire, just not the dependent rules - so the dependency rules version is better in that regard too.
This is not a new feature request, but perhaps a new way to easily implement it?  See
http://fluentvalidation.codeplex.com/discussions/352581

I don't like #1 as it requires an implicit ordering of the rules, but I really like #2.
I'll take a look at what this would require to implement, and get back to you.

OK, it's doable but would have to look something like this:
RuleFor(x => x.MyInsideItem).NotNull().WhenValid( dependentRules =>  {
    dependentRules.RuleFor(x => x.MyInsideItem.InsideProp).NotEmpty(0);
}

Reason being is that calling RuleFor just adds directly to the underlying rule collection - even within a lambda that's still the case, but in order for this to work we need to capture the rule, and store it in a dependencies list rather than just adding it to the normal rule collection.
What do you think?
My concern with this is clarity/confusion - it's very easily to accidentally write "RuleFor" rather than "dependentRules.RuleFor". Can you think of a better way?

Yeah, that makes perfect sense as to why.
I agree it would be 'easy' to write RuleFor without the parameter, but I cannot think of another way to get it done.   I think it is/would be a great feature just like you have it though...

So I could get rid of the dependentRules parameter, by moving WhenValid out of the validator chain and into a top-level method on AbstractValidator, similar to how the top-level When/Unless work (could even just expand When/Unless to do this).
This then opens up a few different options for syntax:
Here When is expanded to take a RuleFor call as it's first parameter, rather than just a predicate:
When(RuleFor(x => x.MyInsideItem).NotNull(), () => {
	RuleFor(x => x.MyInsideItem.InsideProp).NotEmpty(0);
});

...or we could expand RuleSets, so that a RuleSet can specify a rule as its dependency:
RuleSet("foo", ruleset => {
	ruleset.DependsOn(x => x.MyInsideItem).NotNull();

	RuleFor(x => x.MyInsideItem.InsideProp).NotEmpty(0);
});

I think I like these two options over the previous one, as it's consistent with what we have already. Do you have a preference? Maybe even both?

I think the ruleset is a good option - especially if there were several items that you wanted to be true.  However if it is a simple rule - I would not 'want to make a ruleset'.
The When option is pretty good and lets you use RuleFor - so that is nice.  Does that mean I can do this:
When(()=>{
    RuleFor(x => x.MyInsideItem).NotNull(),
    RuleFor(x => x.MyInsideOtherItem).NotNull(),
}, () => {
    RuleFor(x => x.MyInsideItem.InsideProp).NotEmpty(0);
});

All those lambda's seem messy...and in this case the RuleSet is cleaner.
I still like WhenValid too though - to me is flows better then the When rule for simple cases.
So, at the end of this - I am thinking

Definitely do the ``RuleSet``` way
Also support the original WhenValid way for simple rules

Thoughts?  (This is going to be a really great addition!!!)

Yep, that would work.
How do you feel about calling it DependentRules instead of WhenValid? I think it's a bit more descriptive:
RuleFor(x => x.MyInsideItem).NotNull().DependentRules(d =>  {
    d.RuleFor(x => x.MyInsideItem.InsideProp).NotEmpty(0);
}

Makes perfect sense to me!

I've committed the change in #b2bd432 - please feel free to give it a try (I haven't made the ruleset changes yet)

I'll try and do one this week

I've pushed out 5.6 to nuget.

How would I validate the following common scenario?
Model with Email Address and Password
this.RuleFor(m => m.EmailAddress).NotEmpty().EmailAddress();
this.RuleFor(m => m.Password).NotEmpty().Must(this.ValidatePasswordInDatabase);
In my scenario, the ValidatePasswordInDatabase should only be called when both the EmailAddress and Password are not empty. I tried creating a dependency rule on the password field:
this.RuleFor(m => m.Password)
            .NotEmpty()
            .DependentRules(d =>
            {
                d.RuleFor(m => m.Password).Must(this.MatchPasswordInDatabase);
            });

If the password is filled out, but the email address is missing the MatchPasswordInDatabase is still called. I need it dependent on multiple other rules. Any suggestions?

As a follow-up, maybe adding the concept of model validators (in addition to property validators) would help here. I'm envisioning:
this.RuleForModel(m => run custom validator here and return bool);
All model validators would run only after all property validators.

Hi Jeremy! Nice work with this library! 👍
We are starting to use it to validate our API's request DTO-s.
Tell me do we have a solution for the problem when you have multiple rules that need to pass so that the dependent is validated?
Ex.
When (() => {
   RuleFor(x => x.MyInsideItem).NotNull()
   RuleFor(x => x.SomethingOther).NotNull()
})
.DependentRules(d =>  {
    d.RuleFor(x => x).Must(x => Calc(x.MyInsideItem.InsideProp, x.SomethingOther));
}

Thanks a lot!


use helm sdk to  install chart  make pod memory increase   and oom at last

Output of helm version:
helm sdk 3.9
I use helm sdk(version 3.9)  in container to manage chart releases on cluster .   I use  Install.Run() (https://github.com/helm/helm/blob/main/pkg/action/install.go#L208)  to install my chart.  I found that after installing a chart each time, the value of container_memory_working_set_bytes  increased, and the pod will be killed because of oom. I'm sure there is no go routing leaks, but I don't know where the memory gone.  I used pprof to cache the heap allocation  before installing a chart and after installing a chart , bellow is the diff result (use command go tool pprof -http=":8081"  -base a.heap  b.heap). But  I am not sure whether there is a leak point.

I don't know, but look for globals. I had a similar problem in another project and it turned out we were using a globally defined struct instance from the imported library. Since it was global, it was never deallocated so never garbage collected.

I wrote a simple demo  using helm sdk  to install chart. I captured  heap allocation again and top it. I searched some globals ,  such as
var Scheme = runtime.NewScheme() ( https://github.com/kubernetes/kubectl/blob/v0.24.0/pkg/scheme/scheme.go)
var versionRegex *regexp.Regexp  (https://github.com/Masterminds/semver/blob/v3.0.0/version.go#L15)
var file_openapiv2_OpenAPIv2_proto_msgTypes (https://github.com/google/gnostic/blob/v0.5.7-v3refs/openapiv2/OpenAPIv2.pb.go#L6358)
I feel size of Scheme will be outspreaded after  more and more charts be installed, because many different types may exist in different charts.
 My read of the first chart, is that memory usage is coming from the Kubernetes API client doing a bunch of initializations. I suspect these initializations won't occur on future runs.
If you could perhaps get profiling after installing an initial chart (to initialize one-time caches) and after then installing several more charts. We could perhaps use that difference to find where memory is being held.

Thanks for doing the work to profile memory usage! My read of the first chart, is that memory usage is coming from the Kubernetes API client doing a bunch of initializations. I suspect these initializations won't occur on future runs.
If you could perhaps get profiling after installing an initial chart (to initialize one-time caches) and after then installing several more charts. We could perhaps use that difference to find where memory is being held.

Ok, I will update recently

Any updates?


auro-flight: Progress Indicator

Is your feature request related to a problem? Please describe.
Our flight status page is the most fully-featured flight status page in the airline industry - however, without looking at the Flight Tracking map, it's difficult to glance at how far along a flight has flown.
This is the view of the Flight Status page:
https://www.alaskaair.com/status/day/today/2

Describe the solution you'd like
I'd like an airplane indicator with two colors on either left or right side of the airplane indicator where the left is darker and the right is lighter:
FlightAware:

AirNav RadarBox:

Describe alternatives you've considered
No response
Additional context
No response

I love this feature. I believe the issue we had in the past was that we didn't have the data to tell us what percentage of the flight has been completed to do this.
And what about segments? How would you want that to work?

In my use case (flight status), per-segment status doesn't apply as each segment is broken out into its own continuous flightline, but I like the idea! That said, under the hood, wouldn't it work the same way? Stopovers are all on the same plane, so the same "0-100%" thinking would apply in your screenshot.
For layovers however, I see your point - if the Flight Schedules or Major Irrops or even Fly chooses to use this, a missed connection would require independent line definitions for each respective flight number.
Could we start by designing what the progress line could look like, since it would likely apply equally to both scenarios?


[go_router] Option to ignore specified routes intended as file references

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Use case
Currently, when using the [go_router 7.1.1] package to resolve the link required for Apple Pay domain verification (https://[DOMAIN_NAME]/.well-known/apple-developer-merchantid-domain-association), per this guide, the package attempts to resolve the URL as a buildable Widget page route, rather than the file contents at this location.

The contents of this file is a single encrypted string, an example of which can be downloaded here under step 1 of the walkthrough.

Files formatted as JSON are still able to be displayed correctly, despite the similar lack of a corresponding file type as in the URL format above.

Proposal
Currently, the constructor for a GoRoute as of GoRouter 7.1.1 is as follows:
(new) GoRoute GoRoute({
  required String path,
  String? name,
  Widget Function(BuildContext, GoRouterState)? builder,
  Page<dynamic> Function(BuildContext, GoRouterState)? pageBuilder,
  GlobalKey<NavigatorState>? parentNavigatorKey,
  FutureOr<String?> Function(BuildContext, GoRouterState)? redirect,
  List<RouteBase> routes = const <RouteBase>[],
})
package:go_router/src/route.dart

Constructs a [GoRoute].

Adding a boolean parameter to the constructor to ignore the specified route for building as a Widget could be a potential solution to this issue.

Can you talk more on your setup? is this a flutter web or flutter mobile?

Can you talk more on your setup? is this a flutter web or flutter mobile?

This is for Flutter Web, with my /web directory formatted as follows:

This is not go_router specific.
@mdebbar It looks like the url somehow is sent to flutter, I thought it would be hitting the folder structure first?

What server are you using? In your case, you can specify when to serve index.html and when not to, particularly for paths like apple-developer-merchantid-domain-association.

+1 to what @maRci002 said. This is likely a server setup issue. Your server needs to be configured to serve files for known paths instead of index.html (I'm assuming you did some configuration to get your server to serve index.html for all routes).

@mdebbar is there a way that we do this automatically for developer? ie. redirect in index.html. anything in .wells-known/ is likely reserved for deeplink related things

@chunhtai this has to happen on the server. When Apple requests the /.well-known/... url, it is not expecting an index.html file to be returned, it's expecting the encrypted string. There's no browser involved at all here, so doing stuff in index.html aren't going to have any effect.

Configuring your web server

PathUrlStrategy uses the History API, which requires additional configuration for web servers.
To configure your web server to support PathUrlStrategy, check your web server’s documentation to rewrite requests to index.html.Check your web server’s documentation for details on how to configure single-page apps.
If you are using Firebase Hosting, choose the “Configure as a single-page app” option when initializing your project. For more information see Firebase’s Configure rewrites documentation.
The local dev server created by running flutter run -d chrome is configured to handle any path gracefully and fallback to your app’s index.html file.

Unfortunately, the documentation does not mention static files.
const express = require('express');
const path = require('path');
const argv = require('minimist')(process.argv.slice(2));

const app = express();
const staticDir = argv.dir; // read the staticDir argument from the command line

// Serve all static files from the specified directory
app.use(express.static(staticDir));

// serve index.html when route not found by default (PWA / SPA applications)
app.get('*', (req, res) => {
  console.log(`FALLBACK TO index.html: ${req.method} ${req.url}`);

  res.sendFile(path.join(staticDir, 'index.html'));
});

Regarding this statement:
The local dev server created by running flutter run -d chrome is configured to handle any path gracefully and fallback to your app’s index.html file.
When setting PathUrlStrategy the app restarts each time a route is entered in the Chrome address bar directly, is it the expected behavior? With the default HashUrlStrategy, when a route is entered, the app will navigate to that route without restarting the app.

Alright so I finally managed to get things working; here is what worked for me in case anyone reading this has a similar issue with in the future. Thank you everyone for your help.

I ultimately moved my apple-developer-merchantid-domain-association file to my assets directory, since leaving it in /web/.well-known wasn't working. The apple-app-site-association file still works in /web/.well-known for some reason though. File structure, for my specific implementation:

When building the Flutter Web application, the apple-developer-merchantid-domain-association gets automatically appended with a .txt extension, as shown below:

With this in mind, I added the following rewrite to my firebase.json file:

Proof of final result below:

Also yeah, I tried adding the .txt extension to the apple-developer-merchantid-domain-association while it was still in ./well-known, with the corresponding rewrite aded to firebase.json, but couldn't get things to work, hence the decision to ultimately move the file to assets instead.

2. When building the Flutter Web application, the apple-developer-merchantid-domain-association gets automatically appended with a .txt extension, as shown below:

Also yeah, I tried adding the .txt extension to the apple-developer-merchantid-domain-association while it was still in ./well-known, with the corresponding rewrite added to firebase.json, but couldn't get things to work, hence the decision to ultimately move the file to assets instead.

What about removing txt extension before deploy? (or manually copy the original file to build) and use this configuration:
    "rewrites": [
      {
        "source": "/.well-known/apple-developer-merchantid-domain-association",
        "destination": "/.well-known/apple-developer-merchantid-domain-association"
      },
      {
        "source": "**",
        "destination": "/index.html"
      }
    ]


Updated 'fetch' command to accept multiple dependencies

I pushed another commit that also updated 'setup' command to accept multiple components


Loading mozilla-foundation/common_voice_7_0 dataset failed

Describe the bug
I wanted to load mozilla-foundation/common_voice_7_0 dataset with fi language and test split from datasets on Colab/Kaggle notebook, but I am getting an error JSONDecodeError: [Errno Expecting value] Not Found: 0 while loading it. The bug seems to affect other languages and splits too than just the fi and test split.
Steps to reproduce the bug
from datasets import load_dataset
dataset = load_dataset("mozilla-foundation/common_voice_7_0", "fi", split="test", use_auth_token="YOUR TOKEN")

Expected results
load mozilla-foundation/common_voice_7_0 dataset succesfully
Actual results
JSONDecodeError                           Traceback (most recent call last)
/opt/conda/lib/python3.7/site-packages/requests/models.py in json(self, **kwargs)
    909         try:
--> 910             return complexjson.loads(self.text, **kwargs)
    911         except JSONDecodeError as e:

/opt/conda/lib/python3.7/site-packages/simplejson/__init__.py in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, use_decimal, **kw)
    524             and not use_decimal and not kw):
--> 525         return _default_decoder.decode(s)
    526     if cls is None:

/opt/conda/lib/python3.7/site-packages/simplejson/decoder.py in decode(self, s, _w, _PY3)
    369             s = str(s, self.encoding)
--> 370         obj, end = self.raw_decode(s)
    371         end = _w(s, end).end()

/opt/conda/lib/python3.7/site-packages/simplejson/decoder.py in raw_decode(self, s, idx, _w, _PY3)
    399                 idx += 3
--> 400         return self.scan_once(s, idx=_w(s, idx).end())

JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

JSONDecodeError                           Traceback (most recent call last)
/tmp/ipykernel_358/370980805.py in <module>
      1 # load Common Voice 7.0 dataset from Huggingface with Finnish "test" split
----> 2 test_dataset = load_dataset("mozilla-foundation/common_voice_7_0", "fi", split="test", use_auth_token=True)

/opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs)
   1690         ignore_verifications=ignore_verifications,
   1691         try_from_hf_gcs=try_from_hf_gcs,
-> 1692         use_auth_token=use_auth_token,
   1693     )
   1694

/opt/conda/lib/python3.7/site-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
    604                     if not downloaded_from_gcs:
    605                         self._download_and_prepare(
--> 606                             dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
    607                         )
    608                     # Sync info

/opt/conda/lib/python3.7/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos)
   1102
   1103     def _download_and_prepare(self, dl_manager, verify_infos):
-> 1104         super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos)
   1105
   1106     def _get_examples_iterable_for_split(self, split_generator: SplitGenerator) -> ExamplesIterable:

/opt/conda/lib/python3.7/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
    670         split_dict = SplitDict(dataset_name=self.name)
    671         split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 672         split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
    673
    674         # Checksums verification

~/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_7_0/fe20cac47c166e25b1f096ab661832e3da7cf298ed4a91dcaa1343ad972d175b/common_voice_7_0.py in _split_generators(self, dl_manager)
    151
    152         self._log_download(self.config.name, bundle_version, hf_auth_token)
--> 153         archive = dl_manager.download(self._get_bundle_url(self.config.name, bundle_url_template))
    154
    155         if self.config.version < datasets.Version("5.0.0"):

~/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_7_0/fe20cac47c166e25b1f096ab661832e3da7cf298ed4a91dcaa1343ad972d175b/common_voice_7_0.py in _get_bundle_url(self, locale, url_template)
    130         path = urllib.parse.quote(path.encode("utf-8"), safe="~()*!.'")
    131         use_cdn = self.config.size_bytes < 20 * 1024 * 1024 * 1024
--> 132         response = requests.get(f"{_API_URL}/bucket/dataset/{path}/{use_cdn}", timeout=10.0).json()
    133         return response["url"]
    134

/opt/conda/lib/python3.7/site-packages/requests/models.py in json(self, **kwargs)
    915                 raise RequestsJSONDecodeError(e.message)
    916             else:
--> 917                 raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
    918
    919     @property

JSONDecodeError: [Errno Expecting value] Not Found: 0

Environment info

datasets version: 2.0.0
Platform: Linux-5.10.90+-x86_64-with-debian-bullseye-sid
Python version: 3.7.12
PyArrow version: 5.0.0
Pandas version: 1.3.5

Hi @aapot, thanks for reporting.
We are investigating the cause of this issue. We will keep you informed.

When making HTTP request from code line:
response = requests.get(f"{_API_URL}/bucket/dataset/{path}/{use_cdn}", timeout=10.0).json()

it cannot be decoded to JSON because it raises a 404 Not Found error.
The request is fixed if removing the /{use_cdn} from the URL.
Maybe there was a change in the Common Voice API?
CC: @anton-l @patrickvonplaten

We have contacted by email the data owners of the Common Voice dataset.

I have also made the hotfix for all the rest of Common Voice script versions: 8.0, 6.1, 6.0,..., 1.0

Hey, is there anything new?
I could not load the dataset.

cc @lhoestq @polinaeterna

Hi @ngoquanghuy99! The dataset should load fine if you go through these steps:

Go to https://huggingface.co/datasets/mozilla-foundation/common_voice_9_0 and click "Access repository" if you see a message about sharing your contact information with Mozilla Foundation at the top of the page.
Run the command huggingface-cli login in your terminal or notebook to authenticate your machine.
Load the dataset with use_auth_token=True:

from datasets import load_dataset

dataset = load_dataset("mozilla-foundation/common_voice_9_0", "ab", use_auth_token=True)

Thanks @anton-l
I could load the dataset now, but in another way.
Thanks anyways!

Thanks @anton-l I could load the dataset now, but in another way. Thanks anyways!

Can you share the "another way" please?


Website performance decreases after integrating nuxt-speedkit in nuxt 3

Describe the bug
We recentlu upgraded our project to nuxt 3 and working on its performance. We were using this library in nuxt 2 as well where it shows impressive increase in performance but in nuxt 3 its very strange it decreases the site performance. Other strange thing is its only happening on desktop.
There is a flicker in website loading which is causing this issue called Cumulative Layout Shift which only happen after integrating nuxt-speedkit. I am attaching the screenshots taken from Google page Speed Insight as well as gif of the site loading with and without nuxt-speedkit. Its a big project I can't share the codebase. here my package.json
"@nuxt/image-edge": "^1.0.0-28099902.2b6ed1c",
"nuxt": "^3.5.3",
"nuxt-speedkit": "^3.0.0-next.17",

and configurations in nuxt.config.ts
  speedkit: {

    detection: {
      performance: true,
      browserSupport: true
    },

    performanceMetrics: {
      device: {
        hardwareConcurrency: { min: 2, max: 48 },
        deviceMemory: { min: 2 }
      },
      timing: {
        fcp: 800,
        dcl: 1200
      }
    },

    fonts: [
      {
        family: 'Lato',
        locals: ['Lato'],
        fallback: ['Roboto', 'sans-serif'],
        variances: [
          {
            style: 'normal',
            weight: 400,
            sources: [
              { src<EMAIL_ADDRESS>type: 'woff' },
              { src<EMAIL_ADDRESS>type: 'woff2' }
            ]
          },
          {
            style: 'normal',
            weight: 700,
            sources: [
              { src<EMAIL_ADDRESS>type: 'woff' },
              { src<EMAIL_ADDRESS>type: 'woff2' }
            ]
          }
        ]
      },
      {
        family: 'Khand',
        locals: ['Khand'],
        fallback: ['Roboto', 'sans-serif'],
        variances: [
          {
            style: 'normal',
            weight: 600,
            sources: [
              { src<EMAIL_ADDRESS>type: 'woff' },
              { src<EMAIL_ADDRESS>type: 'woff2' }
            ]
          }
        ]
      },
      {
        family: 'Allerta Stencil',
        locals: ['Allerta Stencil'],
        fallback: ['Roboto', 'sans-serif'],
        variances: [
          {
            style: 'normal',
            weight: 400,
            sources: [
              { src<EMAIL_ADDRESS>type: 'woff' },
              { src<EMAIL_ADDRESS>type: 'woff2' }
            ]
          }
        ]
      },
      {
        family: 'Caveat',
        locals: ['Caveat'],
        fallback: ['Roboto', 'sans-serif'],
        variances: [
          {
            style: 'normal',
            weight: 700,
            sources: [
              { src<EMAIL_ADDRESS>type: 'woff' },
              { src<EMAIL_ADDRESS>type: 'woff2' }
            ]
          }
        ]
      },
      {
        family: 'Poppins',
        locals: ['Poppins'],
        fallback: ['Roboto', 'sans-serif'],
        variances: [
          {
            style: 'normal',
            weight: 400,
            sources: [
              { src<EMAIL_ADDRESS>type: 'woff' },
              { src<EMAIL_ADDRESS>type: 'woff2' }
            ]
          }
        ]
      }
    ],

    componentAutoImport: false,
    componentPrefix: undefined,

    /**
     * IntersectionObserver rootMargin for Compoennts and Assets
     */
    lazyOffset: {
      component: '0%',
      asset: '0%'
    },

    loader: {
      dataUri: null,
      size: '100px',
      backgroundColor: 'grey'
    }

  },

  image: {
    screens: {
      default: 320,
      xxs: 480,
      xs: 576,
      sm: 768,
      md: 996,
      lg: 1200,
      xl: 1367,
      xxl: 1600,
      '4k': 1921
    },

    domains: ['img.youtube.com', 'i.vimeocdn.com'],

    alias: {
      youtube: 'https://img.youtube.com',
      vimeo: 'https://i.vimeocdn.com',
    }
  },

To Reproduce
Steps to reproduce the behavior:

Go to https://lahore-preprod-nuxt3-speedkit.netlify.app/
you'll see the weired flicker

Expected behavior
when load or reload the site it should be smooth. not this flicker.
this deployment link is without this nuxt-speedkit https://lahore-preprod-nuxt3.netlify.app/
Screenshots
With nuxt-speedkit:

and without nuxt-speedkit:

Other than Cumulative Layout Shift it seems to be good.
Desktop (please complete the following information):

OS: Mac, Linux
Browsers: Chrome, Firefox, Safari(a little)
Latest Version

Smartphone (please complete the following information):
on mobile phone this is working pefectly and there is massive performance increase
Additional context
Here is the gif with nuxt-speedkit:

and without this package loading is smooth on desktop:

Hello @muhammad-grayphite,
looks like the exchange vnode takes quite long.
According to your network you also have pretty big files 😉
Example: entry.f071e693.js -> 307kb
But this should be solved with asynchronous imports.
This can help you to visualize the chunks https://nuxt.com/docs/api/configuration/nuxt-config#analyze

Background why the CSS is missing between times:
Our goal is that initially no CSS is loaded, but is already in the HTML.
For this we use in Nuxt 3 the module "https://github.com/nuxt-modules/critters".
We remove with the option preloadOptimize unnecessary style/script (prefetchs/preloads) tags from the generated HTML files.
https://github.com/GrabarzUndPartner/nuxt-speedkit/blob/14a9ceb79671cfd428c49f9b3f569db8e88f07c2/src/utils/preload.mjs#L11-L27
The CSS of the header is added later and the StyleBlock is replaced.
For this the resources are responsible which still need something with the load, can this unfortunately at present not re-enact, since nuxt@3 for us is not yet productively usable.

@ThornWalli I thought I would tag my questions here is it is specific to Nuxt 3 performance as well.
We are in the middle of upgrading our app from Nuxt 2 -> 3. We successfully use nuxt-speedkit for our current Nuxt 2 app.  We do not use all the features, mainly the basic setup which does a great job for the module Lighthouse scores.
Nuxt 2 Setup
[
      'nuxt-speedkit',
      {
        speedkit: {
          disableNuxtImage: true,
          detection: {
            performance: true,
            browserSupport: true,
          },
          performanceMetrics: {
            device: {
              hardwareConcurrency: { min: 2, max: 48 },
              deviceMemory: { min: 2 },
            },
            timing: {
              fcp: 800,
              dcl: 1200,
            },
          },
          componentAutoImport: false,
          componentPrefix: undefined,
          lazyOffset: {
            component: '0%',
            asset: '0%',
          },
        },
      },
    ],
//Extras for reference:
    [
      'nuxt-compress',
      {
        gzip: { threshold: 8192 },
        brotli: { threshold: 8192 },
      },
    ],
  purgeCSS: {
    mode: 'postcss',
    paths: [
      'node_modules/bootstrap-vue/es/**/**/*.js',
      'node_modules/bootstrap-vue/**/*.js',
    ],
    styleExtensions: ['.css'],
    whitelist: ['blockquote', 'adblock', 'figure', 'figcaption'],
    whitelistPatterns: [
      /^b-/,
      /nav/,
      /^col-/,
      /icon/,
      /^offset-/,
      /^alert/,
      /^multiselect/,
      /^toasted/,
      /^bs-tooltip/,
      /^aud-/,
    ],
    whitelistPatternsChildren: [
      /article-content$/,
      /media--type-image$/,
      /gallery$/,
      /videos$/,
      /jwplayer$/,
    ],
  },
  build: {
    babel: {
      compact: true,
    },
    extractCSS: true,
    loaders: {
      limit: 0,
    },
  },
  fontLoader: {
    url: '/css/fonts.css',
    prefetch: true,
    preconnect: true,
  },

Nuxt 2 Scores
Mobile: on average we get between 92 - 100
Desktop: 100.
We get these results locally and in production

Nuxt 3 setup (Nuxt 3.5.3 with Nitro 2.4.1)
First up you need nitro adding to your config otherwise your results will be poor to start with.
nitro: {
  compressPublicAssets: true,
},

Results without speedkit:
74 - 80
Let's add in nuxt-speedkit now:
[
      'nuxt-speedkit',
      {
        speedkit: {
          detection: {
            performance: true,
            browserSupport: true,
          },
          performanceMetrics: {
            device: {
              hardwareConcurrency: { min: 2, max: 48 },
              deviceMemory: { min: 2 },
            },
            timing: {
              fcp: 800,
              dcl: 1200,
            },
          },
          componentAutoImport: false,
          componentPrefix: undefined,
          /**
           * IntersectionObserver rootMargin for Compoennts and Assets
           */
          lazyOffset: {
            component: '0%',
            asset: '0%',
          },
        },
      },
    ],
// Extras for reference
[
      'nuxt-purgecss',
      {
        enabled: false,
        content: [
          'node_modules/bootstrap-vue-next/**/**/*.js',
          'node_modules/bootstrap-vue-next/**/*.js',
        ],
        safelist: {
          standard: [],
          deep: [],
          greedy: [],
          keyframes: [],
          variables: [],
        },
      },
    ],
lazyLoad: {
    // These are the default values
    images: true,
    videos: true,
    audios: true,
    iframes: true,
    native: false,
    directiveOnly: true,

    // Default image must be in the public folder
    defaultImage: '/images/default-image.jpg',

    // To remove class set value to false
    loadingClass: 'isLoading',
    loadedClass: 'isLoaded',
    appendClass: 'lazyLoad',

    observerConfig: {
      // See IntersectionObserver documentation
    },
  },
  fontLoader: {
    local: [
      {
        src: '/fonts/raleway-v19-latin/raleway-v19-latin-100.woff2',
        family: 'Raleway',
        weight: '100',
        style: 'normal',
        display: 'swap',
        class: 'raleway-100',
      },
      {
        src: '/fonts/raleway-v19-latin/raleway-v19-latin-600.woff2',
        family: 'Raleway',
        weight: '600',
        style: 'normal',
        display: 'swap',
        class: 'raleway-600',
      },
      {
        src: '/fonts/raleway-v19-latin/raleway-v19-latin-300italic.woff2',
        family: 'Raleway',
        weight: '300',
        style: 'italic',
        display: 'swap',
        class: 'raleway-300-italic',
      },
      {
        src: '/fonts/roboto-slab-variable.woff2',
        family: 'Roboto Slab',
        weight: '200 300 400 500',
        style: 'normal',
        display: 'swap',
        class: 'roboto-slab-200',
      },
      {
        src: '/fonts/roboto-v27-latin/roboto-v27-latin-italic.woff2',
        family: 'Roboto',
        weight: '400',
        style: 'italic',
        display: 'swap',
        class: 'roboto-italic',
      },
      {
        src: '/fonts/roboto-v27-latin/roboto-v27-latin-regular.woff2',
        family: 'Roboto',
        weight: '400',
        style: 'normal',
        display: 'swap',
        class: 'roboto-regular',
      },
    ],
  },

run: pnpm build && pnpm preview
Results: Mobile: 75 average.
Are we missing something? Again I am aware that we are not using all the features, but we don't in Nuxt 2 and benefit so much from it.
Any help or suggestions would be awesome.

@StirStudios, how does your network compare to nuxt@2?
This must be clean to get changes, for this the correct loading of the resources is essential.
Important: The first entry.xxx.js script initializes the client, everything after that will be reloaded. This should not happen in the mobile lighthouse. Therefore the question what else is in the network?
With JS:

Without JS:

Hi @ThornWalli, Sorry for getting back so late.
You're right we have pretty big files but nuxt3 with vite handeling it well on desktop. I'm not sure I follow exchange vnode takes quite long. can you elaborate more.
and So you're saying we have to wait until nuxt-speedkit for nuxt3 completes?
one more question is there a way I can use this library only on mobile case as I am already getting 80+ score using nuxt3 with vite. but for mobile this module made an impressive improvement.

Hi @ThornWalli, Sorry for getting back so late.
You're right we have pretty big files but nuxt3 with vite handeling it well on desktop. I'm not sure I follow exchange vnode takes quite long. can you elaborate more.
and So you're saying we have to wait until nuxt-speedkit for nuxt3 completes?
one more question is there a way I can use this library only on mobile case as I am already getting 80+ score using nuxt3 with vite. but for mobile this module made an impressive improvement.

@ThornWalli thanks for all the info.
One interesting thing I have noticed is that the FCP and LCP is really bad when I test Nuxt 3. Also this has only been tested locally. I think either I have a terrible setup locally (same as Nuxt 2 though) or the build/preview is not being done correctly to test performance. For Nuxt 2 we would usually run build and then start. For N3 we run build and then preview.

The network looks pretty good from what I can see.
As I said FCP and LCP is good with Nuxt 2 on a local test. So it makes me wonder there is something else going on.
If we do not have nitro compress on the scroes are really bad. Without nitro we average 62. So back to the setup I think?

@StirStudios  Can this be closed?

Yeah I think so. This was for a much bigger project and migrating from Nuxt 2 -> Nuxt 3. I have not had a chnace to go back in and run further tests.

Actually I did solve this issue by using Vue3 defineAsyncComponent. I was using speedkitHydrate  for dynamic components like
components: {     A: speedkitHydrate(() => import('@/components/A.vue')),   }
I replace it with defineAsyncComponent for all of the components and worked. I feel like lazy loading with defineAsyncComponent is way more impressive, however speedkit benefitted us on mobile a lot.

The only difference here is that when using SpeedkitHydrate the initialization in the client takes place in the viewport.
Of course, this can lead to problems if it is not in the viewport.
https://github.com/GrabarzUndPartner/nuxt-speedkit/blob/5321d61995ae9752212f99caa29e5bb2679b19f5/src/runtime/hydrate.mjs#L7-L22C3

I'm closing this issue for now.
Let me know if this problem still exists 🙃


Add Discharge Report

We need a discharge report added to the system.  This report should be created using custom forms (once #788 is complete)
Requirements can be found here:
https://github.com/HospitalRun/hospitalrun-frontend/wiki/Requirements:-Discharge-Report

I can try to tackle this

@karunkannan my apologies.  Someone is already working on this, and thus it doesn't have the help wanted tag.


macOS: Fix application settings to avoid crashes

This PR fixes the application settings for the macOS platform and solves all the crashes detected so far (see #6  and  panda3d/panda3d#833

"external_message_pump" must be set to True to avoid crash due to a call to [NSApp finishLaunching]

When running from a bundled app created by setuptools/deploy-ng, the path towards the CEF framework resources and subprocess app must be modified to match the layout created by setuptools

When running directly, the resource path should not be modified

With these modifications CEFPanda works fine on Mojave and Catalina, both directly and in bundled app.

Now pylint is happy :)

Thanks!


router-link breaks when tag="md-button"

The router-link element is broken when the tag has md-button, this is with the latest version of Chrome in Windows.
Pretty easy to reproduce with the latest versions of vue.js, router and material.
I have to programmatically use the router push function if I want an md-button to change the view.
Is this a known issue? I couldn't find any other issues reported.

You can just do the following:
<md-button @click.native="$router.push({ name: 'ToRoute' })">Go to Route</md-button>

That is basically what I am doing at the moment as a work around.
The Button component examples on the Vue-Material website has a router-link example and therefore it is expected to work.
[(https://vuematerial.github.io/#/components/button)]

@a2bsoftware we'll fix this bug ASAP. The same issue can be found on #470 so I'm closing this issue and tagging it as a duplicate, OK?
Thank you both @a2bsoftware and @d3radicated


Fixing typo in install w machine doc

Fixing typo missed in earlier PR.
Signed-off-by: Nishant Totla<EMAIL_ADDRESS>

cc @moxiegirl @dongluochen sorry for missing this earlier.

LGTM

lgtm


Wetterstation HB-UNI-SEN-WEA

Hallo,
ich habe diese Wetterstation HB-UNI-SEN-WEA gebaut und in HomeKit eingerichtet.
Für HomeKit ist leider aktuell nur Feuchte und Temperatur möglich. Wird da in Zukunft noch dran gearbeitet, dass evtl LUX und UV oder Luftdruck noch angezeigt wird ?
Danke

Hello,
I built this HB-UNI-SEN-WEA weather station and set it up in HomeKit.
Unfortunately, only humidity and temperature are currently possible for HomeKit. Is there still work to be done in the future to ensure that LUX and UV or air pressure are still displayed?
thanks

Can you please create a device file (https://github.com/thkl/hap-homematic/wiki/internals#support) for your weather station so I am able to check the channel type ...

HB-UNI-Sen-WEA.json.zip
Moin,
ich hoffe ich habe das so richtig gemacht. Funktioniert das?

Morning,
I hope I really did it. Does that work?

I will take a 👀 into it later on

Have you been able to look already? 😬

Oh sorry for my late response. When using this with Apple Home (and u have selected the Apple Home App compatibility mode in settings) the class will generate a temperature, a humidity sensor and a light sensor . Air Pressure is only supported via eve. (The eve app supports special weather stations). Unfortunately there is no pressure sensor available in HomeKit.

Absolutely no problem. Where do you choose this mode?

Where exactly can I find that? There's nothing of it in the addon. At the moment, I only see temperature and humidity.

I've looked again, unfortunately I still can't find anything. Would you have a tip for me?

That's how it looks

Yes and when you select Apple Home compatibility it should work

When I check the box, press Save, and look again, the checkmark is gone. He doesn't stay

Hmpf, I will check this

Great 👍. Looks good like that. Thank you


How to disable virtual disk renaming?

This does not interfere with the operation of the disk, but from a logical point of view, this should not be possible, since the disk name in my case is set remotely.

Hi @stroev-ao ,
As this is also possible in the native sample, could you reopen the issue in the main repository https://github.com/dokan-dev/dokany ?


Support encoding, errors in str.new

I'm working on an implementation of the codecs module that addresses this as well as properly interpreting the encoding parameter, I'll push it soon. Do you want to wait on that or still merge this?

#1607

Sure. I am closing this in favor of #1607. Please copy the tests to #1607 to make sure everything I need for pickle works


make test fails on the PIP upgrade command

Description

The call for make test fails within the docker step for pip install--upgrade pip.  TravisCI should be modified to utilize the steps in the Makefile so the testing environment is reproducible in both CI and user workstations.
How to Reproduce

git clone https://github.com/cloudviz/agentless-system-crawler.git
cd agentless-system-crawler
sudo make test

Log Output

...
debconf: falling back to frontend: Readline
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
diff: /var/lib/apparmor/profiles/.apparmor.md5sums: No such file or directory
Setting up libcacard0:amd64 (1:2.5.0-2) ...
Setting up qemu-system-x86 (1:2.5+dfsg-5ubuntu10.32) ...
/var/lib/dpkg/info/qemu-system-x86.postinst: 34: /var/lib/dpkg/info/qemu-system-x86.postinst: rmmod: not found
Setting up qemu-kvm (1:2.5+dfsg-5ubuntu10.32) ...
Setting up qemu-utils (1:2.5+dfsg-5ubuntu10.32) ...
Setting up dh-python (2.20151103ubuntu1.1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for systemd (229-4ubuntu21.4) ...
Processing triggers for sgml-base (1.26+nmu4ubuntu1) ...
Collecting pip
  Downloading https://files.pythonhosted.org/packages/c2/d7/90f34cb0d83a6c5631cf71dfe64cc1054598c843a92b400e55675cc2ac37/pip-18.1-py2.py3-none-any.whl (1.3MB)
Installing collected packages: pip
  Found existing installation: pip 8.1.1
    Not uninstalling pip at /usr/lib/python2.7/dist-packages, outside environment /usr
Successfully installed pip-18.1
Traceback (most recent call last):
  File "/usr/bin/pip", line 9, in <module>
    from pip import main
ImportError: cannot import name main
The command '/bin/sh -c apt-get update &&     echo "y" | apt-get install python     python-dev     python-pip     build-essential     docker-engine     dpkg     dpkg-dev     qemu-kvm   && pip install --upgrade pip   && pip install mock' returned a non-zero code: 1
Makefile:45: recipe for target 'test' failed
make: *** [test] Error 1

Debugging Commands Output

Output of docker version:
Client:
 Version:	17.12.1-ce
 API version:	1.35
 Go version:	go1.10.1
 Git commit:	7390fc6
 Built:	Wed Apr 18 01:23:11 2018
 OS/Arch:	linux/amd64

Server:
 Engine:
  Version:	17.12.1-ce
  API version:	1.35 (minimum version 1.12)
  Go version:	go1.10.1
  Git commit:	7390fc6
  Built:	Wed Feb 28 17:46:05 2018
  OS/Arch:	linux/amd64
  Experimental:	false

Output of docker info:
Containers: 1
 Running: 0
 Paused: 0
 Stopped: 1
Images: 4
Server Version: 17.12.1-ce
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 9b55aab90508bd389d7654c4baf173a981477d55
runc version: 9f9c96235cc97674e935002fc3d78361b696a69e
init version: v0.13.0 (expected: 949e6facb77383876aeff8a6944dde66b3089574)
Security Options:
 apparmor
 seccomp
  Profile: default
Kernel Version: 4.15.0-29-generic
Operating System: Ubuntu 18.04.1 LTS
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 7.79GiB
Name: lchan-1
ID: OL2Q:3CKD:Q5EQ:OZJE:ZU7X:AIZU:MNP3:6G4L:RGUB:52OX:L25I:RPHX
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 <IP_ADDRESS>/8
Live Restore Enabled: false

WARNING: No swap limit support

Output of python --version:
Python 2.7.15rc1

Output of pip freeze:
asn1crypto==0.24.0
backports.ssl-match-hostname==<IP_ADDRESS>
certifi==2018.10.15
chardet==3.0.4
configobj==4.7.0
cryptography==2.1.4
docker-py==1.10.6
docker-pycreds==0.3.0
enum34==1.1.6
fluent-logger==0.4.6
idna==2.6
ipaddress==1.0.17
kafka==1.3.3
kafka-python==1.3.1
kazoo==2.5.0
keyring==10.6.0
keyrings.alt==3.0
morph==0.1.2
msgpack-python==0.5.6
netifaces==0.10.4
psutil==2.2.0
pycrypto==2.6.1
pygobject==3.26.1
pykafka==1.1.0
python-dateutil==2.4.2
pyxdg==0.25
requests==2.19.1
requests-unixsocket==0.1.5
SecretStorage==2.3.1
semantic-version==2.5.0
six==1.11.0
tabulate==0.8.2
urllib3==1.23
websocket-client==0.53.0
Yapsy==1.11.223

I can re-produce this issue on my machine.
after discussing with @sahilsuneja1 this is pip version issue and need more investigation to fix this.
In the meantime, you can get around this issue, by commenting out the pip upgrade command in Dockerfile.test line #17.
     16     qemu-kvm \
     17 # && pip install --upgrade pip \
     18   && pip install mock
     19
     20 COPY requirements.txt /requirements.txt

Thank you @nadgowdas for your help with this. Following pretty much what you have done.
This is as far as I get on an Ubuntu 18.04:
Requirements
sudo apt  install docker.io
sudo service docker start

sudo make test fails on the same:
Collecting pip
  Downloading https://files.pythonhosted.org/packages/c2/d7/90f34cb0d83a6c5631cf71dfe64cc1054598c843a92b400e55675cc2ac37/pip-18.1-py2.py3-none-any.whl (1.3MB)
Installing collected packages: pip
  Found existing installation: pip 8.1.1
    Not uninstalling pip at /usr/lib/python2.7/dist-packages, outside environment /usr
Successfully installed pip-18.1
Traceback (most recent call last):
  File "/usr/bin/pip", line 9, in <module>
    from pip import main
ImportError: cannot import name main
The command '/bin/sh -c apt-get update &&     echo "y" | apt-get install python     python-dev     python-pip     build-essential     docker-engine     dpkg     dpkg-dev     qemu-kvm   && pip install --upgrade pip   && pip install mock' returned a non-zero code: 1
Makefile:45: recipe for target 'test' failed
make: *** [test] Error 1

Both pip install --upgrade pip  and pip install mock seem to work just fine from terminal when i try explicitly.

I ran the command explicitly from inside the ubuntu container, and end up in the same place.
Also: One more issue is on apt-get install docker-engine; no idea if this matters.
Same error message at the end:
Traceback (most recent call last):
  File "/usr/bin/pip", line 9, in <module>
    from pip import main
ImportError: cannot import name main

Same running the pip upgrade command in container
root@da0c782d74ed:/# pip install --upgrade pip
Traceback (most recent call last):
  File "/usr/bin/pip", line 9, in <module>
    from pip import main
ImportError: cannot import name main

@nadgowdas I have looked at this enough, I think...
There are a zillion issues in pip on this. This is a good reference:
https://github.com/pypa/pip/issues/5221#issuecomment-382069604
The net is: You should NOT pip install --upgrade your system packages, as we do in container.root here. It seems OK use case, when you are doing this in a virtualenv.
No wonder a lot of docker people get hit by the same problem. For system packages, the recommended use is: sudo apt install python-pip, which the Dockerfile is already doing up top.
It seem then OK to comment the pip install --upgrade pip line, and rely on distro packages. I expect when FROM goes to 18.04 we might see the newer pip.
Let me know if it makes sense to you all as well when you get a chance to look at the pip issue above. That and some neighboring issues have bunch of options they discuss.
We can then update the Dockerfile and close.

After commenting out pip install --upgrade
This flow works on an Ubuntu 18.04:
sudo apt  install docker.io
sudo service docker start

sudo make test

goes about 20mins of testing. There are some failing tests, which will be a separate issue.

The discussion in the comment above is interesting. I guess, we can wait until ubuntu distro supports newer pip version (installed through apt-get install) and we should avoid upgrading it directly through pip upgrade.
Regarding Ubuntu 18.04, we need to make few more changes to support it.
For now, we should work with workaround by commenting out pip upgrade .
@sahilsuneja1 any thoughts ?

I tested with a fresh make test.
The existing Dockerfile.test works with one change (alread in .travis.yml):
-- && pip install --upgrade pip
++ && pip install -I pip==9.0.1
``

That explains why travis builds still work.
The recommendation above is not to install pip via pip for system files.
I expect this works, as the change to pip10+ causes deb tools to break.
This gets us on parity w/ Travis.

Yup, pip is to be installed via apt, and then version be locked to 9.0.1
Was addressed in travis here: https://github.com/cloudviz/agentless-system-crawler/pull/365


Move stan/io/json files to the cmdstan repository

Summary:
This PR addresses parts of #719 :

creates the directory cmdstan/src/cmdstan/io/json and moves all files under stan/src/stan/io/json to this created folder

moves the corresponding tests to the add corresponding unit tests to src/test/interface/io/json

updates cmdstan/src/command.hpp accordingly

After this gets merged, we can add the RapidJSON parser lib and replace the existing parser.
Intended Effect:
Move JSON IO code to Cmdstan as part of moving to the RapidJSON parser.
How to Verify:
Run python runCmdStanTests.py src/test/interface/io/json/
Side Effects:
/
Documentation:
/
Copyright and Licensing
Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company):
Rok Češnovar, University of Ljubljana

Just a note that Travis tests will not pass due to #728

@mitzimorris thank you very much for the review. Appreciate your time.
I fixed the behavior on empty arrays and also fixed my previously sloppy job on namespaces (since we are moving stuff to cmdstan we should use cmdstan::json, sorry for missing that before).

this is ready to merge, but would prefer to wait until we clear up travis problems for sure - @serban-nicusor-toptal, what do you think?

@mitzimorris Hey, I've approved the PR to remove Travis so issue should be resolved now.
Can I help with anything else ?

many thanks @serban-nicusor-toptal!
then this needs to be merged.
in the meantime, I've done comparison between overall speed of this parser vs. CmdStan 2.20.0 using a model that takes as inputs a few scalar objects and a bunch of vectors and arrays of vectors - data block looks like this:
  int<lower=0> N;
  int<lower=0> N_edges;
  int<lower=1, upper=N> node1[N_edges];  // node1[i], node2[i] neighbors
  int<lower=1, upper=N> node2[N_edges];  // node1[i] < node2[i]

  int<lower=0> y[N];             // count outcomes
  vector<lower=0>[N] E;          // exposure
  int<lower=1> K;                // num covariates
  matrix[N, K] x;                // design matrix
  real<lower=0> scaling_factor;  // scales the variance of the spatial effects

testing with dataset where N = 2095, and one where N = 20950 -
total number of chars in each file:  151,159   and 1,035,484  respectively.
model itself does (almost) nothing:
parameters {
  real beta0;            // intercept
}
model {
  beta0 ~ normal(0, 1);
}

compiled model and tested by running 10 times under both CmdStan 2.20.0 and this branch -
for i in {1..10}; do echo $i; time (./bym2_read_data sample num_warmup=1 num_samples=1 data file=bym2_big.data.json >/dev/null); echo ""; done

this minimizes IO for writing output.csv file - the bulk of the work should be reading in the data file, correct?  the timings were pretty much the same for both versions.
to me this indicates that parsing the JSON is just not a big deal compared to the work done by the model during model instantiation - this is what the model constructor does with that var_context object:
            current_statement_begin__ = 7;
            validate_non_negative_index("y", "N", N);
            context__.validate_dims("data initialization", "y", "int", context__.to_vec(N));
            y = std::vector<int>(N, int(0));
            vals_i__ = context__.vals_i("y");
            pos__ = 0;
            size_t y_k_0_max__ = N;
            for (size_t k_0__ = 0; k_0__ < y_k_0_max__; ++k_0__) {
                y[k_0__] = vals_i__[pos__++];
            }
            size_t y_i_0_max__ = N;
            for (size_t i_0__ = 0; i_0__ < y_i_0_max__; ++i_0__) {
                check_greater_or_equal(function__, "y[i_0__]", y[i_0__], 0);
            }

            current_statement_begin__ = 8;
            validate_non_negative_index("E", "N", N);
            context__.validate_dims("data initialization", "E", "vector_d", context__.to_vec(N));
            E = Eigen::Matrix<double, Eigen::Dynamic, 1>(N);
            vals_r__ = context__.vals_r("E");
            pos__ = 0;
            size_t E_j_1_max__ = N;
            for (size_t j_1__ = 0; j_1__ < E_j_1_max__; ++j_1__) {
                E(j_1__) = vals_r__[pos__++];
            }
            check_greater_or_equal(function__, "E", E, 0);

            current_statement_begin__ = 9;
            context__.validate_dims("data initialization", "K", "int", context__.to_vec());
            K = int(0);
            vals_i__ = context__.vals_i("K");
            pos__ = 0;
            K = vals_i__[pos__++];
            check_greater_or_equal(function__, "K", K, 1);

            current_statement_begin__ = 10;
            validate_non_negative_index("x", "N", N);
            validate_non_negative_index("x", "K", K);
            context__.validate_dims("data initialization", "x", "matrix_d", context__.to_vec(N,K));
            x = Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic>(N, K);
            vals_r__ = context__.vals_r("x");
            pos__ = 0;
            size_t x_j_2_max__ = K;
            size_t x_j_1_max__ = N;
            for (size_t j_2__ = 0; j_2__ < x_j_2_max__; ++j_2__) {
                for (size_t j_1__ = 0; j_1__ < x_j_1_max__; ++j_1__) {
                    x(j_1__, j_2__) = vals_r__[pos__++];
                }
            }

@mitzimorris could you try running that setup within Apple's Instruments (assuming you're on a Mac) and profiling it? I'd be curious to see what it claims the biggest blocks of time are spent doing. It's pretty disheartening that the times are similar; this time we should profile so we aim ourselves at the actual problem instead of assuming again.

This is still the same existing parser. When we decided we want json parsing in cmdstan I mentioned in the issue that I would want to do it in 2 phases:

move the existing parser to cmdstan and remove the files from stan (ready after this is merged)
remove the existing parser with rapidjson

I wanted to do it this way because if we find anything wrong with rapidjson after it gets merged, reverting will be easier.

I am sorry if that isnt clear from the PR text :/
Will definitely do the performance test and make a script so anyone can verify once I open that PR (hopefully today). I am going to use the optimize example from here

so glad to hear it!
would you like the model and data files for this test I just ran?

Yes, please!

This is still the same existing parser. When we decided we want json parsing in cmdstan I mentioned in the issue that I would want to do it in 2 phases:

Phew!

just added the files to src/test/test-models for this branch.


feat(copr): add bump-version to script generator

When submitting SRPM build to Copr, we should be able to disable bumping
of the version and release field.
Signed-off-by: Matej Focko<EMAIL_ADDRESS>TODO:

[x] Write new tests or update the old ones to cover new functionality.
[x] Update doc-strings where appropriate.
[x] Update or write new documentation in packit/packit.dev.

Related to #1181
Merge before packit/packit-service#1478
RELEASE NOTES BEGIN
Packit now supports release_suffix configuration option that allows you to override the long release string provided by Packit that is used to ensure correct ordering and uniqueness of RPMs built in Copr.
RELEASE NOTES END

Thanks a lot, @mfocko, for implementing this feature! This is just what we needed today in https://github.com/csutils/cswrap. 🥳


Create mahsa

hi @Mahsa-kz, two changes needed

you need to add your screenshot to your git repository, instead of posting it in this PR comment
you need to add an README to include the open-source resources/packages you downloaded./installed for customizing the desktop, and their respective software licenses.

see the instructions
https://github.com/fangq/BIOE5060_Fall_2024/blob/main/HW2/Instructions.md


Bugfix/search page acl issues

#1306
Checklist

[x] the [contributor license agreement][] is signed
[x] commit message follows [commit guidelines][]
[ ] tests are included
[ ] screenshots are included showing significant UI changes
[ ] documentation is changed or added

Description of change
At least three ACL issues were found during the work for creating functional tests. They are:

without EDIT_SEARCH_SETTINGS,  403 is returned when calling api/settings/search and
api/settings/facetedsearch/classification.
if SEARCH_COLLECTION is granted on Collection level, front-end infinitely calls api/collection  because the resumption token is totally wrong; and
without COMMENT_VIEW_ITEM, 403 is returned when calling api/search2.

So they are three fixes in this PR:

Remove the ACL checks for the GET endpoint of Search settings and Classifications.
Fix the logic of generating a resumption token in PagedResult.scala.
Perform ACL check for the comment one, and make the number of comments optional.

To review the first fix, please look at FacetedSearchClassificationResource.scala and SearchSettingsResource.scala.
To review the second fix, please look at PagedResults.scala.
And review remaining files for the third fix.

I think the hardest one to review is definitely PagedResult so please grab me whenever needed!

Screenshots for the fixed resumption tokens.
Logged in as administrator:

Logged in as a user who is not accessible to some Collections:

ApidocsTest failed. I will restart.

:crossed_fingers: for a green build :crossed_fingers:


p2p: fix gater blocklist setup

Motivation
The IP blockslists were not initialized properly. This results in "portscans", when the node tries to contact other nodes outside its local network on their private IP. See #5510 for more information
Description
This fixes gater setup and adds test cases that were missing, causing the issue to be overlooked in the first place.
This change is related to #5510, but doesn't constitute a complete fix, as enabling the blocklists makes it impossible for the peers on the same LAN to talk to each other on their private IPs without involving NAT hairpinning, which may not be supported by the router or the ISP.
Test Plan
Ran a node with this patch applied

bors try

bors merge

Good job!
Next step would be to hardcode 3800 IP ranges into the blocklist and Spacemesh will be back to it healthy state

bors merge

bors merge


condense fluent-bit config into single file and reduce number of cont…

…ainers
Which issue this PR addresses:
n/a
What this PR does / why we need it:
condense fluent-bit config into single file and reduce number of containers.  Minor optimisation.
Test plan for issue:
Will test this manually (not done yet)
Is there any documentation that needs to be updated for this PR?
No

tested manually

tested manually

O_O When you see it. Why we had this in the first place?


Add missing commit for formatting screen output

Add missing commit from "Reformat screen output for sync mode submission and fix wait flag" https://github.com/Alluxio/alluxio/pull/15350

alluxio-bot, merge this please


Add interface for be able to launch different queues for plots

This requires the changes in the PR Chia-Network/chia-blockchain#1168

I tested it, not all the corner cases, but at least adding two queues, (they run in parallel), removing things queue or running queue doesn't affects the other queue.

@hoffmang9 this requires the corresponding changes in the chia-blockchain repo.

Yep. Am just slow on Saturday AM.


Some fixes and finished the README instructions

Credit the original authors (Packet.net)
https://github.com/tinkerbell/tink/tree/first-good-workflow/workflow-samples/ubuntu
Credit additional author for fixes / changes
Document how to build an image
Fix create_images.sh which were pushing the wrong image
tag
Use bash and interpolation instead of hard-coded examples
Add license for material

AFAIK the original work was licensed Apache2, as a derivative work, this repo should also follow the same.
All steps have been properly documented now and tested.
Signed-off-by: Alex Ellis (OpenFaaS Ltd<EMAIL_ADDRESS>

No problems. I really want a working example to use with the Packet setup :)


Figure Size

Thanks for the awesome package!
Would it be possible to make the figure size adjustable? I've tried to adjust it using matplotlib, but didn't seem work.

Adjusting the figure size in matplotlib is done using plt.figure(figsize=(w, h)). Though if the figure is to big it will be scaled down to fit (https://github.com/nteract/hydrogen/issues/240).
Please try if works for you:
%matplotlib inline
import matplotlib.pyplot as plt
import numpy as np

t = np.linspace(0, 10, 500)
s = np.sin(t)

plt.figure(figsize=(8, 6))
plt.plot(t, s)
plt.show()

@ywhuofu I'm closing this issue. Please, feel free to reopen it if you need more help.

does it work for you the same way if you add %config InlineBackend.figure_format = 'retina' after %matplotlib inline? If i do, plt.figure(figsize=(a, b)) is not taken into account anymore on my end. It produces a higher resolution figure, but seems to also force a larger size. I don't experience this on a regular ipython notebook. Maybe it's a matplotlib backend configuration problem but i'm not well versed in that.
[just saw the STDIN support update  🎉, you guys are doing much awesomeness! thank you!]

TODO

[ ] Test %config InlineBackend.figure_format = 'retina'

@n-riesco sorry for raising this, it was a misunderstanding on my end. I was executing something like:
plt.figure(figsize=(15, 4))
plt.hist(samples, bins=40)

line by line (with run-and-move-down) and i think the address of the figure produced by the first line gets lost and a second figure is created by the second line (i use %matplotlib inline which is maybe changing the behavior since i don't call plt.show()). If i execute the code as a block, the figure is resized properly!
[i also now use %config InlineBackend.figure_format = 'svg' instead of %config InlineBackend.figure_format = 'retina' but i don't think it matters much here.]
thank you again for your help and the magic of hydrogen :-))

@lgeiger, changing between these two InlineBackend options is doubling the displayed figure size for me:
%config InlineBackend.figure_format = "png"
%config InlineBackend.figure_format = "retina"

Do you know of any workaround or code that I can add to styles.less in order to allow me to use the retina option without changing the displayed figure size?


Feature Request - Can you extend it to draw a straight line?

Starting from the first touch point it should draw a straight line to the end point when touches end.

Are you happy that my PR solves this issue, and is it safe to remove the 'experimental' label?


[Question] How to reference Many2Many custom table

Hello! Hope everything's fine with you.
Just doing some experimentation with GORM and I found myself having a hard time trying to achieve the following result. I have these 3 models:
type Profile struct {
	Id 					*uuid.UUID 			`gorm:"type:uuid;primaryKey"`
	Slug 					string				`gorm:"not null;uniqueIndex"`
	Name 					string				`gorm:"not null"`
	Description 			        sql.NullString
	CreatedAt 				time.Time			`gorm:"not null"`
	UpdatedAt 				time.Time			`gorm:"not null"`
	DeletedAt 				sql.NullTime

	Users 					[]*User				`gorm:"many2many:users_profiles_access;"`
}

type User struct {
	Id 			*uuid.UUID				`gorm:"type:uuid;primaryKey"`
	Name			string					`gorm:"not null"`
	CreatedAt 		time.Time				`gorm:"not null"`
	UpdatedAt 		time.Time				`gorm:"not null"`
	DeletedAt	 	sql.NullTime

	Profiles		[]*Profile				 `gorm:"many2many:users_profiles_access;"`
}

type UserProfileAccess struct {
	UserId 		*uuid.UUID		`gorm:"type:uuid;primaryKey;"`
	ProfileId	*uuid.UUID		`gorm:"type:uuid;primaryKey;"`
	AccessLevel	int8			 `gorm:"not null"`
	CreatedAt 	time.Time		`gorm:"not null"`
	UpdatedAt 	time.Time		`gorm:"not null"`
	DeletedAt 	sql.NullTime

	User 		*User
	Profile		 *Profile
}

func (UserProfileAccess) TableName () string {
	return "users_profiles_access"
}

And on main.go, I call this:
func migration(db *gorm.DB) {
	errProfileUserJoin := db.SetupJoinTable(&entities.Profile{}, "Users", &entities.UserProfileAccess{})

	if errProfileUserJoin != nil {
		panic(errProfileUserJoin)
	}

	errUserProfileJoin := db.SetupJoinTable(&entities.User{}, "Profiles", &entities.UserProfileAccess{})

	if errUserProfileJoin != nil {
		panic(errUserProfileJoin)
	}

	db.AutoMigrate(
		&entities.User{},
		&entities.Profile{}
	)
}

Things are working well and the tables are correctly generated, but the question is: how do I access an array of UserProfileAccess from Profile or User, so I can get (UserId, ProfileId)'s AccessLevel? And how to get to Profile or User from a UserProfileAccess?
Couldn't find an explanation on how to access the custom JoinTable here...
Cheers.

https://github.com/go-gorm/gorm.io/commit/654fd7e8b5e2f431b4f104653f483dd83b841c41

so I can get (UserId, ProfileId)'s AccessLevel? And how to get to Profile or User from a UserProfileAccess

You could use Preload, Join Preload, Association Mode everything that you can use for normal structs

Can you give me an example of how to use it?

any update?


Change attribute name to user_metadata

Couldn't get custom metadata to work by calling UpdateUserById as follows:
    public Task<User> ConfirmRegistration(string userId, string supabaseId)
    {
        var attributes = new UserAttributes
        {
            Data = new Dictionary<string, object>
            {
                {"user_id", userId}
            }
        };
        return _supabaseClient.Auth.UpdateUserById(_supabaseClient.SupabaseKey, supabaseId, attributes);
    }

After comparing gotrue-csharp and gotrue-js libraries I figured out that having the attribute as "data" doesn't really do anything. Changing it as in my commit fixed it - tested locally

@AydinE thanks for making a pull request for this issue! You bring up a good point - the UpdateUserById method should actually be requesting the more specific AdminUserAttributes instead of UserAttributes - in which case this works as expected.
UserAttributes is meant to be paired with a particular user's session - which is why it was failing. You can see the difference in the updated Test case here: https://github.com/supabase-community/gotrue-csharp/blob/22e697d5d850cefaff6c7e172f83c1844cc29502/GotrueTests/Client.cs#L201-L229
I'll credit the bug to you in the CHANGELOG though! Great catch.


How do I disable this

See title

restart steam

Doesn't this edit windows registry keys though?

Doesn't this edit windows registry keys though?

It injects itself into Steam.


When I define on_resize in window the sprites of my window no longer appear

This is in both pyglet dev version and maintenance 1.5.19 versions (but I have to change my code to use OrderedGroup instead of Group with maint branch).
The only other differences in my code between dev and maint version working or not working is an empty definition under window of:
    def on_resize (self, height, width):
        pass

my whole code is at:
https://github.com/flowerbug/npath
if i comment that code out my program works as expected.

I guess I do not understand python/pyglet well enough on this point.  The above is used as a plain def under the Window class, but if I move the definition from under my Window(): class and put it in the main program like below then the program works as it should but I don't understand why it is only this one function/event where this makes any difference...:
def main():

    window = Window(width=1, height=1, caption="Npath", resizable=True, fullscreen=False, visible=False)

    @window.event
    def on_resize (width, height):
        print ("on_resize : ", width, height)

    pyglet.clock.schedule_interval(window.update, 1/60.0) # update at 60Hz
    pyglet.app.run()

In your first example, you are replacing the Window.on_resize event handler. In the second example, you are "stacking" a new handler on top of the existing one.  There are a few different ways to attach/replace handlers, so I would recommend looking over this page in the docs for more info: https://pyglet.readthedocs.io/en/latest/programming_guide/events.html
With that said, the default on_resize handler is responsible for setting the OpenGL projection and Viewport (to an orthagonal projection). For modern OpenGL it's important that it gets called (or the user sets their own projection, such as for 3D).

ok thank you for the explanation.  :)  at least now i know the "Why".
if you don't consider this a bug then i'll close it.

I made a quick change to master so that it sets an orthographic projection on Window creation. This should mimic what was happening in pyglet 1.x, where legacy GL already defaulted to a simple orthographic projection.


Suggest  MemorySwappines could equal  to cgroup's  memory.swappiness

Output of docker version:
Docker version 1.12.0-dev, build d27a038, experimental

Output of docker info:
Containers: 16
 Running: 1
 Paused: 0
 Stopped: 15
Images: 5
Server Version: 1.12.0-dev
Storage Driver: devicemapper
 Pool Name: docker-253:17-1572869-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: 2.32 GB
 Data Space Total: 107.4 GB
 Data Space Available: 50.28 GB
 Metadata Space Used: 3.703 MB
 Metadata Space Total: 2.147 GB
 Metadata Space Available: 2.144 GB
 Thin Pool Minimum Free Space: 10.74 GB
 Udev Sync Supported: true
 Deferred Removal Enabled: false
 Deferred Deletion Enabled: false
 Deferred Deleted Device Count: 0
 Data loop file: /data/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: /data/docker/devicemapper/devicemapper/metadata
 Library Version: 1.02.107-RHEL7 (2015-12-01)
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: null host bridge overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options: seccomp
Kernel Version: 3.19.0
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 15.67 GiB
Name: vpcs-testos-2.vm
ID: ZVXC:P2QU:NF2S:YAGX:Q3IM:7AH7:LGA5:KGMM:57JO:YXD4:E265:MR7O
Docker Root Dir: /data/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: true
Insecure Registries:
 docker-registry.tools.elenet.me:5000
 <IP_ADDRESS>/8

Steps to reproduce the issue:
# docker inspect {{ containerID }|grep MemorySwappiness
 "MemorySwappiness": -1

But in {{ containerID }} 's cgroup
# cat memory.swappiness
30

I suggest  MemorySwappines can  equal  to cgroup's  memory.swappiness

In 1.13.1 fixed


Fixed design problem in telemetry networking

Better protocol for telemetry networking

test me

Build Passed :ok_hand:
You can safely merge 'fix-telemetry' into 'master'.

👍

:eyes:


Updated jobs for fabric8-analytics-stack-report-ui and vscode-extension

Can one of the admins verify this patch?

Please review it

can you add a resonable description as to what you are trying to do here ?

In this pull request, i modified the job names to the correct ones so that they get triggered to the actions for which we have created the webhooks.

[test]


MRG: Make epochs.times read only

Closes #5642.

Ok. @larsoner this means upon merge we really need a EpochsPSD object with .freqs as attribute. I wanted to contribute this for a few years now but this may force things :)

i fear that the following might happen in the (distant) future:

somebody writes a method that modifies the _times property.
nobody remembers that the person is supposed to use _set_times instead.
the times property is not strictly read only anymore.

that is the reason why my PR set the WRITEABLE flag to False in the property method.

People who change variables whose names are prefixed with an underscore should not expect their code to work for very long (if at all). Such behavior is not supported. Private variables can change name, change behavior, or be removed with no warning. So if we need to worry about this, it's in more a generic documentation / coding practice sense.

i was referring to the case in which somebody writes a method for Epochs, in which case it is, as far as i know, ok to change underscored variables. (decimate et al. do just that, for example)
for instance, i will start implementing the shift_time method for Epochs soon. knowing this PR and the whole discussion, i am aware that i am supposed to use _set_times and even if i did not, you are still aware that _times must not be changed directly.
however, let's imagine, i am going to implement this in a few months. i forgot about this PR, see that there is a protected property called _times which should do the trick and which i may touch when implementing a method for that class. all tests go green.
are you 100% sure that somebody will notice/remember that _times should not be changed directly but always via _set_times and stop this from being merged?

Internally yes we will need to use it.
No I am not certain someone will notice, and I agree it's a risk. But

the probability should be high since they are likely to see how we set it elsewhere in epochs.py, and
the risk is worth it in my mind for the refactoring it allowed (setting read only once when it's set, and effectively unsetting it only when necessary)

what about making _times a really private property by calling it __times? this way, it would be more intuitive for future developers that it is probably a bad idea to touch it directly. and it would create something like a hierarchy wrt _set_times.

what about making _times a really private property by calling it __times

Good call. Even though we haven't used this pattern elsewhere I agree it makes things clearer. Feel free to have a look

(at the commit I just pushed I mean)

... actualy the __ prefix seemed to be causing problems, so I went with the name _times_readonly, whose purpose is more explicit anyway.

i like it. it's salient and explicit.

Travis is happy other than the mpl bug plaguing master, ready for review/merge from my end. @thht are you happy?

i am happy. thanks for taking over!

Thanks for working through what seemed like it should be an easy change, when I made it not so much :)

thx @larsoner and @thht for the team effort !


in my component the error is showing as declare a component . no doubt this is working properly but not deploying in vercel applications however i have solved it by my self [bug]: /docs/components/confetti

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

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

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

fixed in latest code since we add displayname


Line highlighting broken between 0.10.0 and 0.11.0

Line highlighting stopped working in 0.11.0.  Using the example case:
    ```ruby
    def add(a,b)
    *  a + b
    end

    Notice how there is no return statement.
    ```

Highlighting stopped working when I changed the script URL from https://gnab.github.io/remark/downloads/remark-0.10.0.min.js to https://gnab.github.io/remark/downloads/remark-0.11.0.min.js

Oops, just found #192.  I guess the wiki need to be updated instead to point this out.
(Markdown#line-highlighting)
Oh dear, also just found #251 and #290.

Wiki has been updated.


Normalize PubChem compound references

PubChem is an ambiguous prefix that could refer to one of the several semantic spaces. This PR updates them to use a more standardized prefix based on the Bioregistry's standard. While PRs are normally made to the -edit file, it looks like this one is out of sync, so I made the changes in all of the artifacts. Would be worth looking into properly reconciling all of the artifacts in this repo as well.

@raphenya @arpcard @agmcarthur can anyone take a look at this?

Thanks @cthoyt! This repo is a bit odd in that the ARO is only updated at the CARD website by the curators (we have a custom interface) and then the updates pushed to here. As such, I will reject the merge here but instead pass on all the information for curators to review and then add to the ARO. I'll create an issue to track our progress.


Evolution/refactoring

Write about how the work described in "System Design" allowed for us to (almost) seamlessly go from SQLite to SQL Server. Refer to the PR or the most important commits.


golang: Golang Mod Analyzer should report vulnerability about golang itself

Describe the bug
Golang Mod Analyzer  doesn't report vulnerability  about itself.
go.mod
go 1.13
it should report vulnerability  CVE-2020-28366, but report nothing
(Go before 1.14.12 and 1.15.x before 1.15.5 allows Code Injection.)
Version of dependency-check used
The problem occurs using version 6.2.2 of the cli
Log file
[INFO] Checking for updates
[INFO] Skipping NVD check since last check was within 4 hours.
[INFO] Skipping RetireJS update since last update was within 24 hours.
[INFO] Check for updates complete (357 ms)
[INFO]
Dependency-Check is an open source tool performing a best effort analysis of 3rd party dependencies; false positives and false negatives may exist in the analysis performed by the tool. Use of the tool and the reporting provided constitutes acceptance for use in an AS IS condition, and there are NO warranties, implied or otherwise, with regard to the analysis or its use. Any use of the tool and the reporting provided is at the user’s risk. In no event shall the copyright holder or OWASP be held liable for any damages whatsoever arising out of or in connection with the use of this tool, the analysis performed, or the resulting report.
About ODC: https://jeremylong.github.io/DependencyCheck/general/internals.html
False Positives: https://jeremylong.github.io/DependencyCheck/general/suppression.html
? Sponsor: https://github.com/sponsors/jeremylong
[INFO] Analysis Started
[INFO] Finished File Name Analyzer (0 seconds)
[INFO] Finished Golang Mod Analyzer (0 seconds)
[INFO] Finished Dependency Merging Analyzer (0 seconds)
[INFO] Finished Version Filter Analyzer (0 seconds)
[INFO] Finished Hint Analyzer (0 seconds)
[INFO] Created CPE Index (2 seconds)
[INFO] Finished NPM CPE Analyzer (2 seconds)
[INFO] Created CPE Index (2 seconds)
[INFO] Finished CPE Analyzer (3 seconds)
[INFO] Finished False Positive Analyzer (0 seconds)
[INFO] Finished NVD CVE Analyzer (0 seconds)
[INFO] Finished Sonatype OSS Index Analyzer (0 seconds)
[INFO] Finished Vulnerability Suppression Analyzer (0 seconds)
[INFO] Finished Dependency Bundling Analyzer (0 seconds)
[INFO] Analysis Complete (6 seconds)
[INFO] Writing report to: X:\dependency-check-report.html
To Reproduce
Steps to reproduce the behavior:
dependency-check.bat --enableExperimental --out . --scan  go.mod
Expected behavior
when specify go 1.13 in go.mod   , dependency-check should report  CVE-2020-28366
Additional context

The go <version> in a go.mod does not indicate a dependency of the project. It only prescribes a baseline requirement on the build environment (go version must be same or higher and able to interpret the syntax used at the time of version <version>.

indicates that a module was written assuming the semantics of a given version of Go.

Go Modules reference
So I see no need to report the CVE for the go build tool when the module is written assuming the syntax of a give go version.


[Feature][EPIC] Windows domain

[ ] add DC and setup
[ ] setup host with DC

Depends on #17

Test https://github.com/crc-org/crc/issues/3282


Small correction on latest version Windows Server

‘We suggest you upgrade your Azure AD Connect server to Windows Server 2019, which is the most recent version of the Windows Server operating system.’
Windows Server 2022 is now the most recent edition.
Regards,
Arian!

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

ID: 1c1e2969-8162-7cad-99b7-803ba089081d
Version Independent ID: cca0134b-5685-ae09-f9f3-275426e6e3b8
Content: What is Azure AD Connect v2.0? - Microsoft Entra
Content Source: articles/active-directory/hybrid/whatis-azure-ad-connect-v2.md
Service: active-directory
Sub-service: hybrid
GitHub Login: @billmath
Microsoft Alias: billmath

Thanks! I made a pull request to update the document. The changes should go live within 24 hours or so.https://github.com/MicrosoftDocs/azure-docs-pr/pull/204056


Own unique email validation with 409/422 error message

We implemented mongoose-unique-validator but it doesn't seem to be working correctly maybe let's just roll our own?
Basically a plugin that checks if email is unique and if not sends a 409 or 422 error (NOT 500 like current library does).
Should be used in user create, org create, org update.

We will address this with #1437


Armhf ?(Embedded Platform) /Jetson TX1

it does not support Armhf platform ?

Probably not, never tried

Thanks