"SecurityError: User activation is required" when querying font access API

The terminal ligatures exploration in https://github.com/microsoft/vscode/pull/139537 ended up hitting an issue where Electron now requires a user activation in order to read ligatures, even when ligatures bypass the permissions prompt/handler. This is a blocker to get terminal ligatures working, at least without something hacky like piggybacking on the next user activation event.
IMO Electron should allow disabling the user activation requirement outright, potentially automatically when the permissions dialog will be bypassed?

@Tyriar do you still need this feature from the runtime ?

Yes this still blocks terminal ligatures


Change to the git-lfs meta package for Chocolatey

Thanks for the patch. I'm going to take this opportunity to finally install chocolatey and check this out.


Issue when changing sequence length

Hi sorry I have another issue,
I want to change the sequence length to 200 and when I do it gives me this issue.

here is the yml file I'm using to train.
Thanks so much!
simple_train.txt

I'm inclined to think that this is because the amount of pooling specified in the "deeper deepsea" architecture will reduce to a negative number (see: https://github.com/FunctionLab/selene/blob/master/selene_sdk/utils/example_model.py#L73)
You can try removing some layers/pooling if you want to work with such small sequence lengths

thanks!


DHCP Patch for Correct MAC Limitations

[X] Redmine Issue: https://redmine.pfsense.org/issues/1605
[X] Ready for review

Note: The Redmine issue for this is actually https://redmine.pfsense.org/issues/1605 (the newer one was a duplicate)

Superseded by #4066

@rbgarga: I think this should be "Superseded by #4184".


Update quickSort.h

This should definitely be accepted, the current code in the repository is buggy.


shiki:vscode is not defined

I run this project local ,and find something lose .   Open the website, there has the same problem.

What's the 'vscode' in "shiki"  ?

hi @moshuiyan
thanks for your reporting.
This is shiki bugs.
refer to https://github.com/shikijs/shiki/issues/338
I will fix it and let you know after

This is fixed.


Support of primitive types for List

Goals
class Entry : Object {
   ...
   dynamic var tags = List<String>()
}

and then:
let results = realm.objects(Entry.class).filter("any tags == %@", "foo")   // or
let results = realm.objects(Entry.class).filter("any tags contains[c] %@", "foo") // or
let results = realm.objects(Entry.class).filter("any SELF.tags in %@", ["foo"])

Expected Results
Results populated with Entry objects having "foo" in tags field
Actual Results
'Invalid value', reason: 'Expected object of type (null) in IN clause for property 'tags' on object of type 'Entry', but received: foo'
Steps to Reproduce
just create a realm and put one instance of Entry class then try to fetch it by searching by tags
Code Sample

Version of Realm and Tooling
ProductName:	Mac OS X
ProductVersion:	10.13.1
BuildVersion:	17B48

/Applications/Xcode.app/Contents/Developer
Xcode 9.1
Build version 9B55

(not in use here)

/bin/bash
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin17)

(not in use here)

/usr/bin/git
git version 2.13.6 (Apple Git-96)

Realm framework version: 3.0.2
Xcode version: 9.1
iOS/OSX version: HIGH Sierra 10.13.1
Dependency manager + version: ?

On one side:

Lists can be filtered and sorted with the same predicates as Results.

and

The aggregate expressions @count, @min, @max, @sum and @avg are supported on List and Results properties

but on the other side:

Note that querying Lists containing primitive values is currently not supported.

This is actually not an issue, primitive types in queries for List are not supported yet.

Support for queries involving arrays of primitives is being tracked at https://github.com/realm/realm-cocoa/issues/5334.


[stable/kibana] Add kibana plugin installed control (#8581)

What this PR does / why we need it:
Checks if a plugin is already installed to avoid reinstallation and make Kibana image fail. Allows to upgrade/downgrade plugin (with control version).
Which issue this PR fixes

fixes #8581

Special notes for your reviewer:
Tested in Kibana version 6.4.1 and 6.4.2 with elastalert plugin and logtrail plugin.
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md

Thanks for the contribution @jbdelpech . Once the linter is happy I'll mark this ok for end to end testing. One thing I'd like to see as it would help stability dramatically is a plugin-install.yaml test that is added to the ci directory of the chart. We have those for the dashboard installation features of the chart and I think they're needed for the plugin installation as well. Not sure it will be possible to test the removal feature here, but at least a test for the installation will go a long way to ensure stability.
Thanks!

Hi @compleatang, thank for your answer and your suggestion. I added a install-plugin.yaml test file to CI (my second commit).
In my third commit, I added the possibility to force remove plugins before installing the new ones. This may prevent kibana from fails when upgrading kibana version (implies kibana plugins version upgrade as well). This is a suggestion that changing a bit the behaviour. Tell me if I should keep this in this PR or open a new one... or just delete it because it's not a good idea !

@jbdelpech this seems like a meaningful approach to me.
/ok-to-test

thanks @jbdelpech !
BTW, @unguiculus or @mattfarina  any idea why CircleCI isn't reporting?

This is strange. The tests have passed on Circle -> https://circleci.com/gh/helm/charts/tree/pull%2F8896 but it hasn't updated the status here. Can you push a faux commit with a blank line or whitespace somewhere @jbdelpech that will hopefully re-trigger Circle.
This is GTM, but I can't trigger the merge until we have Circle reporting back.

/lgtm
/approve

thanks @jbdelpech !!!

Thanks to you @compleatang :)

In what situation in using this chart would a plugin already be installed?  If the pod is restarted it will need to reinstall plugins as far as I can see.  This is actually a problem for me, I'm installing a plugin via the chart and the init container has been running for an hour and a half already.
I'm just wondering what use cases cause the issue that this fixed, if someone can explain that would be great.

IMO the best option at this point is to bake your own image with plugins installed and configured, and that's what I ended up doing, but still used this chart.  It seems to work well.  What you have done with this chart is awesome, but it turns out not to be practical for me.
My use case is light usage of kibana with modest memory & cpu limits.  This is fine once things are running, but the optimization step in the init container took 2 hours with my limits.  After that kibana decided it needed to optimize again, and I left that running for 2 hours until I killed it and replaced it with my custom kibana image.  That one started up quickly and runs fine with the limits I put on it.
PVCs for the plugins have 2 potential problems I can see: first (in my case at least) it would lock the pod into a single AZ in AWS.  Obviously that can be worked around in different ways, and may be a non-issue for lots of users.  The bigger issue would be if kibana still wanted to do an optimization at startup despite the plugin install like I saw.
It kinda sucks, but I think the best option as of now is to bake your plugins into your own kibana image to get the best experience.  That also made it pretty easy to add a config file in a plugin directory, which I'm not sure (didn't try) this chart is flexible enough to do right now.
Thanks for your work on this!

As you said, PVC is restrictive. I decide to customize this chart to be able to use PVC with an AWS Elastic File System (EFS) for multi AZ, instead of maintain my own Kibana image. In my case, optimization goes fast but it depends of your resources...
Some people could be interested to use a PVC with only one AZ.
At least I really don't see a perfect way to deal with Kibana plugins and generic Helm chart.
Thank for your relevant feed back :)


Can hug be used over https?

Hi.
I'm thinking about using hug for a project that would involve transmitting some sensitive data.  Can hug do https?
Thanks.

I run hug with uwsgi (see hug doc) behind nginx.
Nginx handle the ssl part and transfers request to uwsgi  (see  uwsgi doc). Works perfectly.

@ch0k0bn is correct. HTTPS is not something meant to be handled as part of the WSGI application layer, but by the WSGI HTTP Server (uWSGI, Gunicorn, etc..) you use to run it in production.

@ch0k0bn Could you help me to show how to configure https:******/hello with hug?

@ch0k0bn is correct. HTTPS is not something meant to be handled as part of the WSGI application layer, but by the WSGI HTTP Server (uWSGI, Gunicorn, etc..) you use to run it in production.

Could you help me to show how to configure https:******/hello with hug?


[BEAM-4290] Beam File System based ArtifactStagingService

Artifact staging service which uses BeamFileSystem to stage files on various file systems.

Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

It will help us expedite review of your Pull Request if you tag someone (e.g. @username) to look at it.

R: @bsidhom @jkff @axelmagn @robertwb

retest please

retest this please


Compression: Vary Header not returned when content gzipped

Response header should contain
Vary: Accept-Encoding

when content is gzipped. IIS compression currently adds header.

There's some debate over who should be setting this. Right now the cache headers are set by the resource (e.g. the ResponseCache attribute on the MVC action).
I guess you could consider this an opt-out header and compare it to the CookieAuth middleware always opting out of all caching.
Does IIS add the Vary even for non-cacheable responses?

My understanding, would need confirmation from IIS team, is that if the Accept-Encoding header is sent then IIS responds with the Vary, otherwise no.


chore(release): include files in the lib pack

:tada: This PR is included in version 1.0.1-alpha.1 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


zones: add experimental auto-pagination

Introduces a POC auto-pagination mechanism on the experimental client for zones.

Codecov Report

Merging #990 (dd17f92) into master (25932ad) will decrease coverage by 0.08%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master     #990      +/-   ##
==========================================
- Coverage   49.02%   48.94%   -0.09%
==========================================
  Files         108      108
  Lines       10369    10386      +17
==========================================
  Hits         5083     5083
- Misses       4178     4195      +17
  Partials     1108     1108

Impacted Files
Coverage Δ

cloudflare.go
66.12% <ø> (ø)

pagination.go
0.00% <0.00%> (ø)

zones.go
0.00% <0.00%> (ø)

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 25932ad...dd17f92. Read the comment docs.


Existing roles table thwarted installation

I was unable to integrate to my project due to already having a roles table.
I worked with migrations and seeding for a little while but gave up and started new.  I can afford a fresh install but I'm sure many people couldn't.
Perhaps voyager could work in its own namespace for these things to better integrate to existing applications.
Great tool, BTW, and many thanks!

Closing because new issue has been added to support this: https://github.com/the-control-group/voyager/issues/1447
Thanks :)


Query Environment Information for Workflow Jobs

Is your feature request related to a problem? Please describe.
Many workflows that would be vulnerable to pwn requests or injection use a deployment environment with required approvals to protect a job from running. Usually this will manifest as a single job that runs in an environment in the beginning, and all other jobs will depend on that check succeeding.
It is possible to query a list of environments and their rules using the REST API without authentication. By adding this feature it will be possible to update cypher queries to reduce false positives.
Describe the solution you'd like
I'd like to see an Environment graph object attached to each job. The environment object should track the environment name and if the protection_rules array contains one or more entries of the required_reviewers class.
Here is an example of a repository that uses deployment environments: https://api.github.com/repos/netflix/mantis/environments
Describe alternatives you've considered
None, this is pretty clear cut because environment gating with required approvals will require manual verification to ensure a detection is not a false positive.
Additional context
Mentioned this in an earlier issue - https://github.com/CycodeLabs/raven/issues/111, so this covers adding the environment check.
I'm actually working on implementing this and will have a PR open soon!

This is a good idea!
Isn't the environment should be a job property and not an entirely new node?
Or maybe each job can have a review_required boolean property so we will be able to filter out all those that require any approval.
WDYT?
@oreenlivnicode @AdnaneKhan

Are there additional significant details within the protection rules, @AdnaneKhan ? If there are, we should consider representing them as individual nodes; otherwise, I agree we can track them as a Boolean property associated with a Job.
Implementing this could be beneficial in reducing false positives. However, if an exploit is indeed present, we will still report it. The information about the protection rules would be used as context for the disclosure process.

Are there additional significant details within the protection rules, @AdnaneKhan ? If there are, we should consider representing them as individual nodes; otherwise, I agree we can track them as a Boolean property associated with a Job.
Implementing this could be beneficial in reducing false positives. However, if an exploit is indeed present, we will still report it. The information about the protection rules would be used as context for the disclosure process.

There are 2 information classes that are relevant from an exploitability standpoint:

required approvals (which I mentioned)
deployment branches and tags https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-branches-and-tags

I think adding it as a node with with the required approvals property to start will allow Raven to better handle future checks or conditions that GitHub adds to environments.

Also, curious about where in the code it would be best to add the query to the environments API endpoint?
Should Raven make the call when it is creating a job from dict and the environment field is present or at the same time it pulls the workflow from the contents API?

In the current architecture of raven, the Github API queries only take place in the downloader, so it should take place when it pulls the workflow.
If you want to pass metadata about the workflow / composite action to the indexer part, you will have to add it as a field and value to the redis hash of the object (db 1 and 2), similar to the way we implemented url or is_public.

In the current architecture of raven, the Github API queries only take place in the downloader, so it should take place when it pulls the workflow.
If you want to pass metadata about the workflow / composite action to the indexer part, you will have to add it as a field and value to the redis hash of the object (db 1 and 2), similar to the way we implemented url or is_public.

Thanks for the details! I'd like to avoid adding an API call for every workflow (since most probably don't use environments, and that slows the overall run down). Could add a quick check to see if environment: is present in the workflow before querying but that seems a bit messy to me. Thoughts?


Test logs rotating

Logging should close yesterday files, open new at 00:00 and delete after configured days.
It seem working but not checked for a long time.

Tested, one bug fixed: https://github.com/metarhia/Impress/issues/709 in d1f6f1f97d0f9209db0d53e289e3d7d98aea9416


Audit licenses

We need to audit the licenses of all plugins in.  Note any that require a visible attribution.  If we have any, we will need to create an About page that shows that.

Currently, there's no license issue.
Just some risks...
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>

Thanks Chris! I also attached the doc you sent here.
risk_03192020.pdf


[Tutorial proposal] How to authenticate GEE PYTHON API?

Hi all.
I am trying to use the CoastSat toolkit, to retrieve the time series of coast line. One of the pre-requirement, is to activate the GEE.
I am struggling here to activate the GEE Python API, becouse when I try to authenticate the GEE by using ee.Authenticate(), it open an web page which is written the following:

or then
The version of the app you're using doesn't include the latest security features to keep you protected. Please make sure to download from a trusted source and update to the latest, most secure version.
Se for programador de Google Earth Engine Authenticator, veja os detalhes do erro.
Erro 400: invalid_request
I tried to solve it by updating the GEE, by using conda update command, as follow,
conda update -c conda-forge earthengine-api;
and this error appeared

and still is not working.. Can one assist me on this?
I would Really appreciate.
And Thanks in advance

Hi @scanhanga, this issue tracker is intended for offering to write new content for the community tutorials section of our documentation site. Check out this page for several ways of getting help with Earth Engine:
https://developers.google.com/earth-engine/help
That said, it appears you have a typo into your import statement (impoert vs import). Hope that helps. Please be sure to follow up via one of the channels in the linked page for further assistance.


Is Cumulative Updates considered security or feature updates?

Are Cumulative Updates considered quality/ security or feature updates?
We defer security updates for 5 days, and feature updates for 15 days.
KB4522355 (OS Build 18362.449) was released october 24th, we've still not received it, even when manually triggering "check for updates" in Windows Updates.

Are cumulative updates considered feature updates?

Some clearification about this in the documentation would be appreciated.

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

ID: 85ae5b79-2cc7-1a6b-10e2-3ff434dbc521
Version Independent ID: 588472d2-8f23-56e8-ed59-1501a9557c3f
Content: Integrate Windows Update for Business - Configuration Manager
Content Source: sccm/sum/deploy-use/integrate-windows-update-for-business-windows-10.md
Product: configuration-manager
Technology: configmgr-sum
GitHub Login: @mestew
Microsoft Alias: mstewart

@o-l-a-v
Hey Olav,
We try to keep this type of info listed in the products and classifications article. But I suspect some detail can be added to it.

Cumulative Updates are't considered Feature Updates. Feature Updates are pretty much always in classification = upgrades. OS CUs are usually in the Security Updates Classification or the Updates classification.
Typically speaking, most Windows 10 CUs released on the second Tuesday (A.K.A. "B week" or "Patch Tuesday") are in the Security Updates Classification. CUs not released in B week are usually in the Updates classification, like KB4522355.

Easy way to look at the classifications and product an update is under is just to search the KB number at https://catalog.update.microsoft.com
You can also check the bottom of the KB article, usually they list the product & classification, along with if the update auto-syncs for WSUS or not.

A lot of people don't sync the Updates classification, so that's the first thing I would double check

Basically verify it's in the CM console, if not, make sure the product and classification are both selected in the SUP properties for sync.
If the client is scanning against a child primary, I would also verify that the SUP sync from CAS to Pri is ok and that I see the update in the primary site's WSUS server.

If the update is in CM and WSUS, I would start verifying that the client is scanning successfully and actually sees the UpdateID of it in the logs.
The client itself determines if the update is applicable to it or not. I like to see what the CCM client thinks about the update by looking at it in WMI under the ROOT\CCM\SoftwareUpdates\UpdatesStore namespace. I just dump it all out to a csv file with the following cmd wmic /namespace:\\root\ccm\softwareupdates\updatesstore path CCM_UpdateStatus get status, Article, Bulletin, UniqueId >c:\updatecompliance.csv CCM gets the info right from the Windows Update Agent so it saves me from digging into a verbose windowsupdate.log/etl (unless I really need to determine why an update isn't applicable to a machine and I think something pretty unusual is going on).

If you're interested, there is an old software updates white paper that walks through almost every step for software updates. It was published for CM 2012 R2, but the basic info is still the same. We've just added more bells and whistles in the past few years, like the ability to install upgrades for Windows 10 and delta content : https://www.microsoft.com/en-us/download/details.aspx?id=44578
Hope this helps! Let me know if you have specific details that you think should be added to the products and classifications page.

Thanks for the clearification @mestew.
So that means if we're currently enrolled in Windows Update for Business update ring "SAC" or the deprecated "SAC-T" with 0 days deferral on quality updates, we should get .449 tomorrow?


how to run: make build

Recently, I planed to build the harbor image by myself.  I downloaded the  source code of harvor v1.4.
and my source code path is:  /root/go/src/github.com/vmware/harbor. I did the 2 steps:

cd   /root/go/src/github.com/vmware/harbor
make build

when building  the  adminserver , I encountered the problem. Follow is the output.
building adminserver container for photon...
/usr/bin/docker build -f /root/go/src/github.com/vmware/harbor/make/photon/adminserver/Dockerfile -t vmware/harbor-adminserver:dev .
Sending build context to Docker daemon  67.58MB
Step 1/7 : FROM vmware/photon:1.0
---> 9b411d78ad9e
Step 2/7 : RUN tdnf erase vim -y     && tdnf distro-sync -y || echo     && tdnf install -y sudo     && tdnf clean all     && groupadd -r -g 10000 harbor && useradd --no-log-init -r -g 10000 -u 10000 harbor     && mkdir /harbor/
---> Using cache
---> 499e41619170
Step 3/7 : COPY ./make/dev/adminserver/harbor_adminserver ./make/photon/adminserver/start.sh /harbor/
lstat make/dev/adminserver/harbor_adminserver: no such file or directory
make[1]: *** [_build_adminiserver] Error 1
make[1]: Leaving directory `/root/go/src/github.com/vmware/harbor'
make: *** [build] Error 2
As the output said, there is no harbor_adminserver  under make/dev/adminserver/.
In fact, the harbor_adminserver is  not existed under make/dev/adminserver/ both in source code v1.2 and v1.4.
So, how to solve it ?
1)Version of docker engine and docker-compose.
2)Config files of harbor, you can get them by packaging "harbor.cfg" and files in the same directory, including subdirectory.
3)Log files, you can get them by package the /var/log/harbor/ .

@rootdeep, these binary files was created by "Make compile".
The easiest way for you to build your own harbor image is to use "Make install", but it will build all harbor images.
You can refer to the compile guide for details, just run "make install" in your source root.

Actually, I  did "make install" or "make compile" command. But both  are failed.  Bellow is the output.
Note: golang version: 1.10
Note: docker version: 17.05.0
Note: docker-compose version: 1.19.0
compiling binary for clarity ui...
/usr/bin/docker: invalid reference format.
See '/usr/bin/docker run --help'.
make: *** [compile_clarity] Error 125
I  read the Makefile under harbor, replaced the variables in compile command for clarity ui and run the command alone,  I get the same error . The command is :
/usr/bin/docker run  --rm -v /root/go/src/github.com/vmware/harbor/src:/harbor_src  vmware/harbor-clarity-ui-builder[:tag] /bin/bash  /entrypoint.sh
I finally narrowed down the problem to the format of  image name. The "  [:tag]  " in vmware/harbor-clarity-ui-builder[:tag]  is not replaces by any real value when running "make install" or "make compile" . So the error happened. But how to resolve this error. Another  similar format are existed in Makefile,
GOBUILDIMAGE=reg.mydomain.com/library/harborgo[:tag].

Use this command to build your source, set NOTARYFLAG or CLAIRFLAG to false if you don't need it, and remove the httpproxy setting if no need.
make install GOBUILDIMAGE=golang:1.9.2 COMPILETAG=compile_golangimage CLARITYIMAGE=vmware/harbor-clarity-ui-builder:1.3.0 NOTARYFLAG=true CLAIRFLAG=true HTTPPROXY=

Ok , thanks.


object.dump gives quoted string, want to use .dump() to generate javascripts.

Feature Request
First up, amazing library. Love it. Definitely going to play well with V8 and V8PP, so well done.

What is the issue you have?
My issue is that j.dump() returns a string in quotes for objects, and I have no way to disable this. I'd like to .dump() something I can build strings with using boost::format without having to write my own dequoting method and suddenly thinking about complexity of string ops. That's your job! ;P

Please describe the steps to reproduce the issue. Can you provide a small but working code example?
Simplifying to Pseudo-esque code:

static auto matic= boost::format("var fn = function() { return %s };");

auto j = R"({ "some_object": {"happy": true, "pi": 3.141 } })"_json;
auto dumped_j = j.at("some_object").dump();
auto formatted = boost::str(matic % dumped_j );
// formatted == "var fn = function() { return \"<some_object_here>\"; }".
// ^^^^ formatted[0] and formatted[len-1] are '\"'

What is the expected behavior?
I don't want the quotes on my string-dumped object (others probably do).. I'd like dump to be extended with default parameter bool bQuoted=true so I can set it false.
auto formatted = boost::str(matic% j.at("some_object").dump(false)); //formatted == "var fn = function() { return <some_object_here>; }".
// no quotes

And what is the actual behavior instead?
I get the quotes, see above. see line 8505 in the header of 2.11

Which compiler and operating system are you using? Is it a supported compiler?
MSVC 2015 on Win10 Pro

Did you use a released version of the library or the version from the develop branch?

If you experience a compilation error: can you compile and run the unit tests?
I'm using 2.11 from the releases page

Describe the feature in as much detail as possible.
make quotes surrounding dumped objects an option

Include sample usage where appropriate.
auto str =  j.dump(-1, false);

I am not sure whether producing non-compliant JSON text is in the scope of this library. However, I do not fully understand your use case. Could you please provide the exact desired output for the JSON value
{
    "some_object": {
        "happy": true,
        "pi": 3.141
    }
}

As JSON, I'd like it as it is - in C++ land, I'd like a string representation of the object without the surrounding quotes, so that I can inject it into boost::str with boost::format("var %s = %s.%s(%s)")
I am building a JavaScript based on JSON data.
json.h -> C++ string representing an object -> string inserted into another string(via format/str) -> write to file.

So how would the JSON above look like?

Sorry for inflicting confusion here!
The JSON is something like this:
{
"Calls":
[
{
"var": "returned_value",
"fn": "named_method",
"args":
{
"some_object": {
"happy": true,
"pi": 3.141
}
}
},
...
]
}
And I'd like to generate the following string as painlessly as possible, before I write it to some_script.js:
var returned_value = KnownThing.named_method({ "some_object": {"happy": true, "pi": 3.141 }});

So you want
{
    "some_object": {
        "happy": true,
        "pi": 3.141
    }
}

to become
{ "some_object": {"happy": true, "pi": 3.141 }}

?

when I call dump, I'd like
{ "some_object": {"happy": true, "pi": 3.141 }}
but I get
"{ "some_object": {"happy": true, "pi": 3.141 }}"
in fact in the debugger it looks like this:
\"{ "some_object": {"happy": true, "pi": 3.141 }}\"
and so I have to dequote the string result of .dump() with some hacky method, before writing the said string to some .js.
Like:
auto js = boost::str(boost::format("var %s = %s.%s(%s)"), varname, objname, methodname, args);
where auto args = j.dump();
I'm really struggling to make this clearer!

How did you parse the JSON text? Did you use parse to did you write something like json j = "..."?

It is impossible for the code you provided to produce the string "{ "some_object": {"happy": true, "pi": 3.141 }}" because your code dumps "some_object".  Can you verify that the code you provided is the same as what you're using?

I've worked around it now, because I obviously can't have random symbols in the JSON (variables), so I'm representing var references as strings, and doing a search, so I'm no longer using j.dump() with boost::format. Let me prepare a standalone example to emulate what I was doing. I will return soon with code.

Any news on this?

I have a similar requirement. Keep the keys unquoted. This can be done by passing a flag to the dump() function. Also I need a verbatim type value which will have string content but dump will not put quotes around it.

Without quotes, dump would produce invalid JSON text. If you want such a function, you can traverse the values yourself recursively and produce the desired result. I do not see this as part of the API.

Hi Niels, I've been meaning to get back to you, apologies for not doing so sooner.
In the end I traversed the values as suggested, and probably ended up with better code for what I was trying to achieve - essentially writing a script where blocks from the JSON are args to the methods (but didn't want to parse the JSON str on the other side of the JS to make the object).
I moved the goalposts by changing the API I was targeting to methods accepting individual args instead of objects, to make things easier.
I do think it's a bit wierd that the dump() method gives you escaped quotes though, as I've never seen a json file where the first character was a " - always { or [, but its fairly likely you've seen more exotic json that I.
Quote weirdness I can deal with, and that aside, this library is brilliant, and I am grateful for it :)

I do think it's a bit wierd that the dump() method gives you escaped quotes though, as I've never seen a json file where the first character was a " - always { or [, but its fairly likely you've seen more exotic json that I.

We only escape quotes inside strings, and this is required by the JSON specification, see

This is not weird, it is the only correct way to produce a valid JSON text.

Perhaps you can use something along these lines.
Perhaps Niels can tell if this is the way to go:
/** Converts an json object to a string representation.
Similar to json.dump() but without the quotes.
Assumes that the object is not structured (ie. primitive).
For structured object a empty string is returned.

Special values like null, numbers etc. are converted to
string representation.
*/
std::string to_string(const nlohmann::json& object)
{
    if (object.is_structured()) return "";
    if (object.is_null()) return "null";
    else if (object.is_string()) return object.get<std::string>();
    else if (object.is_boolean()) return object.get<bool>() ? "true" : "false";
    else if (object.is_number_float()) return std::to_string(object.get<double>());
    else if (object.is_number_integer()) return std::to_string(object.get<long>());
    else if (object.is_number_unsigned()) return std::to_string(object.get<unsigned long>()); // Seems unused
    else if (object.is_number()) return std::to_string(object.get<double>()); // Seems unused
    else {
        // Fallback in case we forgot an if above!
        std::string s = object.dump();
        return s.substr(1, s.length() -2) + " FIXMENM";
    }
}

You could simplify this to code like
std::string to_string(const nlohmann::json& j)
{
    switch (j.type())
    {
        // avoid escaping string value
        case value_t::string:
            return j.get<std::string>();

        case value_t::array:
        case value_t::object:
            return "";

        // use dump() for all other value types
        default:
            return j.dump();
    }
}

I've been having similar issues.  I see this question being asked a few times, so didn't wish to open another ticket.  This seemed like the appropriate place to ask (if there's still life here).  Full example code
pos posarr[3];
char posname[16];
int i;

posarr[0].x = 10;
posarr[0].y = 11;
sprintf(posname, "pos1");
memcpy(posarr[0].name, posname, sizeof(posarr[0].name));

posarr[1].x = 20;
posarr[1].y = 21;
sprintf(posname, "pos2");
memcpy(posarr[1].name, posname, sizeof(posarr[1].name));

posarr[2].x = 30;
posarr[2].y = 31;
sprintf(posname, "pos3");
memcpy(posarr[2].name, posname, sizeof(posarr[2].name));

nlohmann::json positem, posxlist, posylist, posnamelist;
for (i = 0; i < 3; ++i)
{
	positem = posarr[i].x;
	posxlist.push_back(positem);
	positem = posarr[i].y;
	posylist.push_back(positem);
	positem = posarr[i].name;
	posnamelist.push_back(positem);
}

nlohmann::json allpos = {
	{"x", posxlist.dump()},
	{"y", posylist.dump()},
	{"name", posnamelist.dump()},
	{"items", i}
};

dlog_print(DLOG_DEBUG, scServiceLogTag, "EXAMPLE OUTPUT |%s|", allpos.dump().c_str());

outputs
EXAMPLE OUTPUT |{"items":3,"name":"[\"pos1\",\"pos2\",\"pos3\"]","x":"[10,20,30]","y":"[11,21,30]"}|
The string variables have \ escape characters (is this a separate issue?), and the arrays are wrapped as strings.  What I'm looking for / expecting is
EXAMPLE OUTPUT |{"items":3,"name":["pos1","pos2","pos3"],"x":[10,20,30],"y":[11,21,30]}|
I've tried to replace .dump() when building allpos with get<std::string>() as suggested in some tickets, but the app crashes at runtime, possibly because it's not actually a string, but a JSON array?  (Tizen 4.0 Wearable - if that's relevant)

Just don't call dump, so the value remains of type json. It is then properly escaped.

@nlohmann , oh my gosh.  Perfect.  Thank you so much.
And also, I'm really impressed by both the project and your amazing support.


Refactor/remove empty content flag

What kind of change does this PR introduce? (check one with "x")

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[x] Other... Please describe:

remove the need for input variable of custom input.

Sorry, I targeted the wrong project.


[10.x] Fixes for cron expressions when using ->between()

Hey,
I noticed something weird with some of the expressions of my scheduled commands when I run  run php artisan schedule list, so I decided to do some digging. It seems like if you're using ->between(), this doesn't get included in the cron expression that shows.
For example, let's take a scheduled command that's meant to run every minute between 10pm and 11pm:
$schedule->command('example')
    ->everyMinute()
    ->timezone('BST')
    ->between('22:00', '23:00');

If I run php artisan schedule:list before 10pm, for example at the time of typing this, it's 21:21, I get:
 * * * * *  php artisan example ............................... Next Due: 20 seconds from now

But that's not correct, because it's actually next due in 39 minutes.  With the changes in this PR, if I run php artisan schedule:list again, I get:
* 22-23 * * *  php artisan example ........................ Next Due: 36 minutes from now

I also noticed that if you try and be more specific about the minutes you want to run, e.g.:
$schedule->command('example')
    ->everyMinute()
    ->timezone('BST')
    ->between('22:30', '23:00');

You get the same as before, where it will give me the wrong expression and count down:
 * * * * *  php artisan example ............................... Next Due: 20 seconds from now

But with this PR, it changes it to the below, which includes the hours and minutes.
30-59 22-23 * * *  php artisan example ........................ Next Due: 1 hour from now

I've also amended the output to show if, for example, you've specified it to run every 2 minutes, 10 minutes etc...:
30-35/2 22-23 * * *  php artisan example ..................... Next Due: 1 hour from now

I haven't really delved into this part of the code in the framework before so I'm definitely open to being educated 😄
I've added some supporting tests to cover this new behaviour.
Thanks!

This is a bit of a bigger change since it actually changes the underlying cron expressions. Going to hold off on this for now.

No problem 😄


Separated stats for testing workshop and hackathon

Although as a repository/event page-wise it is one event, I separated the stat and instructor/mentor/helper list into workshop part and hackathon part.

Thanks! I will send a commit in a moment where I move myself to helper. I really only said 2 sentences as "instructor".

Ah it's on a fork. Can you please move me to helpers?

work on it. commit comes soon.

Super. Thank you!


feat: Depreciate toBeInTheDOM with replacement

What:
Deprecating toBeInTheDOM
Adding toBeInTheDocument
Why:
Aiming to implement desires from conversation in issue #34
How:
Added a deprecate function to warn of deprecation
Added jsdoc to types to label as deprecated
Added toBeInTheDocument function
Updated documentation to have deprecated notices
Added toBeInTheDocument to documentation
Checklist:

[x] Documentation
[x] Tests
[x] Updated Type Definitions
[x] Ready to be merged
[x] Added myself to contributors table

@gnapse, @jgoz, and @kentcdodds Here is the first attempt to do the changes we discussed in #34, when you have time please review. :-) !

@jgoz Thanks for the great feedback!

@jgoz: Progress on better error message on document for developer experience:
TDLR
I am not sure that jest-dom can be used without the jsdom environment. I get an error when trying to test without document:
... jest-dom\node_modules\jsdom\lib\jsdom\browser\Window.js:598
      window.document.addEventListener("load", () => {

I believe it is pulled in here:
https://github.com/gnapse/jest-dom/blob/master/jest.config.js#L4
Details
To accomplish get a better error message when the document is missing, I created a checkDocumentKey utility similar to checkHtmlElement:
class InvalidDocumentError extends Error {
  constructor(message, matcherFn) {
    super()

    /* istanbul ignore next */
    if (Error.captureStackTrace) {
      Error.captureStackTrace(this, matcherFn)
    }

    this.message = message
  }
}

function checkDocumentKey(key, matcherFn) {
  if (typeof document === 'undefined') {
    throw new InvalidDocumentError(
      `document is undefined on global but is required to use ${
        matcherFn.name
      }.`,
      matcherFn,
    )
  }

  if (typeof document[key] === 'undefined') {
    throw new InvalidDocumentError(
      `${key} is undefined on document but is required to use ${
        matcherFn.name
      }.`,
      matcherFn,
    )
  }
}

I can successfully get all the tests to pass however, getting coverage up to 100% requires testing without the document. When I remove the document from global, the util test throws an error.
Tests that Cause Error
describe('checkDocumentKey without document', () => {
  beforeEach(() => {
    global.previousDocument = {...document}
    delete global.document
  })

  test('checkDocumentkey', () => {
    expect(() =>
      checkDocumentKey('documentElement', matcherMock),
    ).toThrowError()
  })

  afterEach(() => {
    global.document = global.previousDocument
    delete global.previousDocument
  })
})

Error
... jest-dom\node_modules\jsdom\lib\jsdom\browser\Window.js:598
      window.document.addEventListener("load", () => {

Well, I was wrong haha, there is always another way. @jgoz I have updated the concept and it should now check for undefined document or a specific key on document.

Hey @gnapse!
I believe the following should be complete:

Updated the README to have better examples for toBeInTheDocument (using examples from the tests).
Added a disclaimer aimed to emphasize that toBeInTheDocument is not a direct replacement of toBeInTheDOM.
Added null and undefined tests

Please let me know of any other change you desire!

@gnapse again, Great catch!
Do the updates match what you were desiring?

Hmmm, merging this PR did not create a new release in npm, even though in the releases page it seems like something did happen. The latest two releases appear but just as tags, not as full features releases. And indeed, in npm the two new releases do not appear. It's stuck at v1.8.1.
I sense this has something to do with the recent tokens invalidations in npmjs.com, but I'm not sure how to update semantic-release's token. Care to chime in @kentcdodds?

Oh yes, I manually generated a new token on npm and updated the NPM_TOKEN variable on all my Travis jobs. Took a little bit of time (I have quite a few packages) but wasn't too much of a challenge. Let me know if you need help.


Add WORKSPACE_FOLDER variable to code snippets

Code snippets are great. However, as described in https://code.visualstudio.com/docs/editor/userdefinedsnippets, there's only a build-in variable called WORKSPACE_NAME which yields The name of the opened workspace or folder, but no variable which yields the full path of the folder opened in VS Code.
Please add another variable called WORKSPACE_FOLDER to code snippets, which yields the path of the folder opened in VS Code, like the variable of the same name that one can use in launch.jsonand task.json, compare https://code.visualstudio.com/docs/editor/variables-reference.

I can give it a try.


Passing GType as an argument

Hi, I'm trying to enumerate wireplumber objects via wireplumber's introspected API, but for some reason it doesn't find any.
Here is lua example:
local lgi = require('lgi')
local GLib = lgi.require('GLib', '2.0')
local Wp = lgi.require('Wp', '0.5')

Wp.init(Wp.InitFlags.ALL)
local loop = GLib.MainLoop.new(nil, false)
local core = Wp.Core.new()

local object_manager = Wp.ObjectManager.new()
local interest = Wp.ObjectInterest.new_type(Wp.Node)
object_manager:add_interest_full(interest)

function object_manager:on_installed()
  print('Installed object manager')
  object_manager:new_iterator()
      :foreach(function(obj) print('Id:', obj:get_id()) end)
  loop:quit()
end

core:install_object_manager(object_manager)
core:connect()

loop:run()

Here is an equivalent python example that works as intended:
import gi
gi.require_version('GLib', '2.0')
gi.require_version('Wp', '0.5')
from gi.repository import Wp, GLib

Wp.init(Wp.InitFlags.ALL)
loop = GLib.MainLoop.new(None, False)
core = Wp.Core.new()

object_manager = Wp.ObjectManager.new()
interest = Wp.ObjectInterest.new_type(Wp.Node)
object_manager.add_interest_full(interest)

def on_installed(om):
    print('Installed object manager')
    object_manager.new_iterator()\
                  .foreach(lambda obj: print('Id:', obj.get_id()))
    loop.quit()

object_manager.connect('installed', on_installed)

core.install_object_manager(object_manager)
core.connect()

loop.run()

My assumption is that lgi doesn't cast Wp.Node as plain GType in the line
local interest = Wp.ObjectInterest.new_type(Wp.Node).
new_type function has the following signature: WpObjectInterest *wp_object_interest_new_type(GType gtype). Here is a link to Wireplumber docs.
Changing Wp.Node to Wp.Node._gtype has no effect.

Well... according to ltrace -e wp_object_interest_new_type, that function is never called. But gdb disagrees and the setpoint is hit. gdb says the argument is exactly what you want it to be:
Breakpoint 1, wp_object_interest_new_type (gtype=0x555555631690 [WpNode/WpGlobalProxy/WpProxy/WpObject]) at ../lib/wp/object-interest.c:164

Anyway, what does this program do for you? Because for me it crashes in wireplumber amd that looks like a null pointer dereference:
Program received signal SIGSEGV, Segmentation fault.
core_new (context=0x0, properties=<optimized out>, user_data_size=user_data_size@entry=0) at ../src/pipewire/core.c:321
warning: 321	../src/pipewire/core.c: Datei oder Verzeichnis nicht gefunden
(gdb) bt
#0  core_new (context=0x0, properties=<optimized out>, user_data_size=user_data_size@entry=0) at ../src/pipewire/core.c:321
#1  0x00007ffff745542f in pw_context_connect (context=<optimized out>, properties=<optimized out>, user_data_size=user_data_size@entry=0) at ../src/pipewire/core.c:399
#2  0x00007ffff7523067 in wp_core_connect (self=0x55555563c840 [WpCore]) at ../lib/wp/core.c:877
[...]

For me it just prints Installed object manager, while it should also print all Node objects. Python version outputs
Installed object manager
Id: 2
Id: 3
Id: 4
Id: 5
Id: 6
Id: 7
Id: 8

I also tried to use ltrace but it doesn't show any function calls from GLib. I wasn't able to debug it with gdb. I suppose  wireplumber should be compiled with debug symbols for it.

Does python version also crashes for you?

Yup.

The issue was in the object_manager:new_iterator():foreach() function. The function accepted by foreach function accepts an attribute of type GValue * and while pygobject automatically converts GValue to the intended type, lgi doesn't, so the actual value has to be accessed via value attribute:
  object_manager:new_iterator()
      :foreach(function(obj) print('Id:', obj.value:get_id()) end)

Ah, thanks for figuring this out and thanks for posting an update here. Sorry that I couldn't help here.


User Kubernetes 1.6.6 in the Vagrant deployment

Make sure, we don't use Kubernetes 1.7, until [1] is fixed or we know a
workaround for it.
[1] https://github.com/kubernetes/kubeadm/issues/335

A fix is already in the kubernetes git repo. Is this still something we'd want to merge?

Do not merge.  1.7 fix is released.

We have to wait for 1.7.1 for the fix. I want to try out the proposed workarounds.

Closing this in favor of #292


Cannot generate a JSON Schema for a Pydantic model featuring a custom generic class field

Checks

[*] I added a descriptive title to this issue
[*] I have searched (google, github) for similar issues and couldn't find anything
[*] I have read and followed the docs and still think this is a bug

Bug
Output of python -c "import pydantic.utils; print(pydantic.utils.version_info())":
             pydantic version: 1.7.3
            pydantic compiled: False
                 install path: /home/anatoly/projects/builder/venv/lib/python3.8/site-packages/pydantic
               python version: 3.8.6 (default, Dec 28 2020, 18:55:09)  [GCC 9.3.0]
                     platform: Linux-5.4.0-66-generic-x86_64-with-glibc2.29
     optional deps. installed: ['typing-extensions']

Intent. Using Pydantic with OpenAPI, I am trying to validate a comma-separated GET parameter (say, red,white) against a custom class CommaSeparated[Set[Color]] and get {Color.RED, Color.WHITE} as a clean validated value.
The initiative breaks when generating the docs because JSON Schema for this model cannot be properly generated. I have looked for this AssertionError but did not find anything so far.
from enum import Enum
from typing import Optional, Generic, TypeVar, Set

from pydantic import BaseModel, version
from pydantic.fields import ModelField
from pydantic.schema import model_schema

ContainerType = TypeVar('ContainerType')

class Color(str, Enum):
    """Cat colors."""

    RED = 'red'
    WHITE = 'white'
    BLACK = 'black'

class CommaSeparated(Generic[ContainerType]):
    """Comma separated values of a container."""

    @classmethod
    def __get_validators__(cls):
        """Ensure pydantic compatibility."""
        yield cls.validate

    @classmethod
    def validate(cls, raw_value: str, field: ModelField) -> ContainerType:
        """Validate the raw value."""
        raise ValueError(
            'I will write this validation later, too lazy right now :(',
        )

    @classmethod
    def __modify_schema__(cls, field_schema):
        raise ValueError('I am not even called! :(')

class CatsQuery(BaseModel):
    """Query our cats herd."""

    color__in: Optional[CommaSeparated[Set[Color]]] = None

print(f'Pydantic version: {version.VERSION}')
model_schema(CatsQuery)

'''
Output:

    Pydantic version: 1.7.3

    tests/test_comma_separated_query_strings.py:None (tests/test_comma_separated_query_strings.py)
    test_comma_separated_query_strings.py:42: in <module>
        model_schema(CatsQuery)
    ../venv/lib/python3.8/site-packages/pydantic/schema.py:153: in model_schema
        m_schema, m_definitions, nested_models = model_process_schema(
    ../venv/lib/python3.8/site-packages/pydantic/schema.py:525: in model_process_schema
        m_schema, m_definitions, nested_models = model_type_schema(
    ../venv/lib/python3.8/site-packages/pydantic/schema.py:566: in model_type_schema
        f_schema, f_definitions, f_nested_models = field_schema(
    ../venv/lib/python3.8/site-packages/pydantic/schema.py:222: in field_schema
        f_schema, f_definitions, f_nested_models = field_type_schema(
    ../venv/lib/python3.8/site-packages/pydantic/schema.py:475: in field_type_schema
        assert field.shape == SHAPE_SINGLETON, field.shape
    E   AssertionError: 10
'''

(This script should run as-is.)
Will be most interested in any pointers or hints of what I might be doing wrong. Thank you.

Updating to 1.8.2 didn't help:
Pydantic version: 1.8.2
Traceback (most recent call last):
  File "tests/test.py", line 46, in <module>
    model_schema(CatsQuery)
  File "pydantic/schema.py", line 167, in pydantic.schema.model_schema
  File "pydantic/schema.py", line 548, in pydantic.schema.model_process_schema
  File "pydantic/schema.py", line 589, in pydantic.schema.model_type_schema
  File "pydantic/schema.py", line 241, in pydantic.schema.field_schema
  File "pydantic/schema.py", line 515, in pydantic.schema.field_type_schema
  File "tests/test.py", line 36, in __modify_schema__
    raise ValueError('I am not even called! :(')
ValueError: I am not even called! :(

Final working solution:
ContainerType = TypeVar('ContainerType')

# `str` here gives correct openapi definition
class CommaSeparatedSet(str, Generic[ContainerType]):
    """Comma separated values of a container."""

    @classmethod
    def __get_validators__(cls):
        """Ensure pydantic compatibility."""
        yield cls.validate

    @classmethod
    def validate(cls, raw_value: str, field: ModelField) -> Set[ContainerType]:
        """Validate the raw value."""
        field_type = field.type_.__orig_bases__[0].__args__[0]
        if isinstance(raw_value, str):
            return set(map(
                field_type,
                raw_value.split(','),
            ))
        return raw_value

# inheritance makes __orig_bases__ magic work
class CommaSeparatedSetOfColors(CommaSeparatedSet[Color]):
    pass

class CatsQuery(BaseModel):
    """Query our cats herd."""

    color__in: Optional[CommaSeparatedSetOfColors]] = None

Maybe there's a way to get field_type without inheritance?

@anatoly-scherbakov Please test your example in Pydantic V2. It's in alpha state and you can install it by pip install pydantic --pre.
Please report a new issue on V2 if you still have a problem. I close this one.
I changed your example in V2 and it raises ValueError: I am not even called! :(:
from enum import Enum
from typing import Optional, Generic, TypeVar, Set

from pydantic import BaseModel, ConfigDict, version
from pydantic.fields import Field

ContainerType = TypeVar('ContainerType')

class Color(str, Enum):
    """Cat colors."""

    RED = 'red'
    WHITE = 'white'
    BLACK = 'black'

class CommaSeparated(Generic[ContainerType]):
    """Comma separated values of a container."""

    @classmethod
    def __get_validators__(cls):
        """Ensure pydantic compatibility."""
        yield cls.validate

    @classmethod
    def validate(cls, raw_value: str, field: Field) -> ContainerType:
        """Validate the raw value."""
        raise ValueError(
            'I will write this validation later, too lazy right now :(',
        )

    @classmethod
    def __pydantic_modify_json_schema__(cls, field_schema):
        raise ValueError('I am not even called! :(')

class CatsQuery(BaseModel):
    """Query our cats herd."""

    color__in: Optional[CommaSeparated[Set[Color]]] = None

    model_config = ConfigDict(arbitrary_types_allowed=True)

print(f'Pydantic version: {version.VERSION}')
CatsQuery.model_json_schema()

This will need modifications to work in v2 but there is at least one test showing how to create a custom generic type in v2: https://github.com/pydantic/pydantic/blob/c600c010418c46cec1f3a0fe8fb6ca4be4a7949f/tests/test_edge_cases.py#LL1877C5-L1877C17


regression-test remove plsql cases

What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
plsql is not under developed, skip all cases.
Release note
None
Check List (For Author)

Test

[x] Regression test
[ ] Unit Test
[ ] Manual test (add detailed scripts or steps below)
[ ] No need to test or manual test. Explain why:

[ ] This is a refactor/code format and no logic has been changed.
[ ] Previous test can cover this change.
[ ] No code files have been changed.
[ ] Other reason

Behavior changed:

[x] No.
[ ] Yes.

Does this need documentation?

[x] No.
[ ] Yes.

Check List (For Reviewer who merge this PR)

[ ] Confirm the release note
[ ] Confirm test cases
[ ] Confirm document
[ ] Add branch pick label

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.
Please clearly describe your PR:

What problem was fixed (it's best to include specific error reporting information). How it was fixed.
Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
What features were added. Why was this function added?
Which code was refactored and why was this part of the code refactored?
Which functions were optimized and what is the difference before and after the optimization?

run buildall

run buildall


Serious Issue: Please let the person behind DEAKSoftware know that they are awesome

Please let the person behind DEAKSoftware know that they are awesome for doing these builds. Two enthusiastic thumbs up. This "issue" can be closed once the person behind DEAKSoftware has been told and understands they are awesome.

Thanks for your support and kind words.


send recording events

i am very new to this project.
all i want to send recording events from my very own js file.
please instruct me

haganbmj/obs-websocket-js is better suitable for custom needs

haganbmj/obs-websocket-js is better suitable for custom needs

thanks for the suggestion,
yes i am using same right now. thanks again


Update design of perspective selector above nav to match new PF demo structure

See conversation in Slack: https://patternfly.slack.com/archives/C4FM977N0/p1689958298525549?thread_ts=1689955946.931889&cid=C4FM977N0
This would be a followup to #1163 and #1185 and remove the custom CSS in SidebarApp.css needed for the current design.
It appears we need to wait for some PF changes to fully support this via React components, but the structure can be seen in an HTML example here: https://pf5.patternfly.org/components/menus/context-selector/html-demos/context-selector-in-sidebar/
Old and busted:

New hotness:

See related issue: https://github.com/patternfly/patternfly/issues/5776


Add support for ARM64 images

I was going to try to use this on my Raspberry PI k3s kubernetes cluster, but all of the images are for x86 architecture only.  It doesn't appear to be a limitation of fluentd itself, as I see there are arm64 versions available.

FYI -- it looks like it might be as easy as switching the docker build command line in the Makefile to
docker buildx build --platform linux/arm/v7,linux/arm64/v8,linux/amd64

so I have been playing more, and the simple solution isn't going to work because the upstream fluentd images are not multi-architecture images.  Instead, there is a separate tag per architecture, so you can't take advantage of docker buildx multi-platform builds directly

As a finally follow up. I was able to manually build an arm64 image using an very slightly modified Dockerfile (putting the fluentd arm64 tag) that I published and then was able to successfully launch on my Raspberry Pi K3s cluster

We are building daemonset images on DockerHub. It supports non x86_64 image building, @Arvoreen ?

I could not get them to work -- I had to build a custom arm64 image.  Looking at the tag on Docker HUB shows that you are building only AMD64 images
https://hub.docker.com/r/fluent/fluentd-kubernetes-daemonset/tags

It looks like 1.9 is here: https://hub.docker.com/r/arm64v8/fluentd
Could you provide multi-arch images in the main fluentd repository instead? That would make it transparent for end-users.
See https://www.docker.com/blog/multi-platform-docker-builds/ and https://tech.smartling.com/building-multi-architecture-docker-images-on-arm-64-c3e6f8d78e1c for more information.

Docker Hub does not support buildx just support amd64 image building.
We don't want to build non amd64 images in local build environment.
Currently, no way to handle to build non amd64 images.

I'd created arm64 image building triggers and kicked them.
You can use arm64 image with the listed tags:
https://github.com/fluent/fluentd-kubernetes-daemonset#arm64-images
Anyway, thank you for request to support arm64 images.


Reset release notes for 2.6

Overview
Resets the release notes but keeps the contents in the known issues section.

/azp run mrtk_docs


Support the flask url variable converter "path"

The Flask variable converter "path" allows url variables to include forward slashes in their values. This PR adds support for that feature if the Swagger specification indicates that a route parameter's format is "path".
Example:
parameters:
  - name: name
    in: path
    required: true
    format: path
    type: string

will add a route parameter <path:name>.
Excerpt from the Swagger specification:

the format property is an open string-valued property, and can have any value to support documentation needs. Formats such as "email", "uuid", etc., can be used even though they are not defined by this specification.

Coverage remained the same at 100.0% when pulling a762fe100a8e891c2b0d59dbdca57cd4223e7db9 on patrickw276:path-parameter-format into 552d1b57b0d4c89c0f0d5e35bef5c074dc0976d9 on zalando:master.

@patrickw276 thanks for the PR! :smile:
I had to check what the OpenAPI spec says about forward slashes. Apparently it says "nothing" (https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#pathsObject), so I think your approach is good and does not validate any specification.

:+1:

@patrickw276 LGTM, I'll just wait for @rafaelcaricio and @jmcs to have a look at it.

@patrickw276 can you add a small section in the "Routing" docs about this new feature (https://github.com/zalando/connexion/blob/master/docs/routing.rst)? Thanks!


Set up output formatting infrastructure

Stack:

#1132
#1137
#1131 ⬅

⚠ Part of a stack created by spr. Do not merge manually using the UI - doing so may have unexpected results.

Replaced OutputCommandUtil with MessengerFactory


add option to set s3ForcePathStyle or forcePathStyle

I'm trying to use Storage with S3 compatible services such as Minio and LocalStack.  For that to work I will to set the S3 endpoint and s3ForcePathStyle/forcePathStyle = true.
I'm able to set the endpoint using the GLOBAL_S3_ENDPOINT env.
But there is not way to set s3ForcePathStyle/forcePathStyle.
https://github.com/supabase/storage-api/blob/196d5b8696ffda719353eb0e99feb85793eb7522/src/storage/backend/s3.ts#L43
Please add optional env variable to set s3ForcePathStyle/forcePathStyle =true.
note:
s3ForcePathStyle for aws sdk v2
forcePathStyle for aws sdk v3

Hello @mingfang would you be able to raise a PR?

Hi @fenos. I submitted the PR.


Scrolling not smooth on iOS

Environment
Flutter version: 1.17.0
Plugin version:  3.1.0
Android version:
iOS version: 13.3
Xcode version:
Device information:  iPhone 7
Description
When scrolling and you release, the scrolling slowly stops
Current behavior:
When scrolling and you release, the scrolling abruptly  stops. It is not as smooth as before
Steps to reproduce

Load a page with scrollable content

Images
Stacktrace/Logcat

Yes, it was my mistake! I fixed it in the next version that should be released today or tomorrow!


Do not ignore index when passing a Series to a parameter that accepts flexible types

Currently when you pass a Series to a flexible-type parameter like hue or scale, the Series index will be ignored and the Series will be treated the same way as a flat numpy array or a list: as a container whose mapping onto the data is determined by the indicial order of its data items.
geoplot should instead match the Series index against the index of the input GeoDataFrame. If the Series contains the same items present in the GeoDataFrame (in any order), use the index match. If it contains all of the same items present in the GeoDataFrame, plus additional items, raise a user warning but continue with plotting. If it does not contain all of the expected items, raise an error.

Hi @ResidentMario, been a fan of geoplot for a while so thought I would give this a shot. The code below is a generic function that should do the validation you outlined plus some pytest tests that make sure it works properly.
I wasn't sure exactly where to put it within geoplot, so I didn't make a PR yet, but if you want to give me a bit of direction, I can add it in properly. Otherwise, feel free to use this code yourself.
Some notes:

It doesn't do the final step of aligning the indices of the Series and (Geo)DataFrame. I figure that will be done if the validate function returns True.
I chose to raise an error if either the Series or the DataFrame indices had duplicates. This simplifies the rest of the logic a great deal.
The function could be simplified to return False instead of different errors, but I chose to raise errors to because it could fail for a variety of reasons.
I used plain DataFrames for the tests because they were simpler to specify, but an improved version would probably use proper GeoDataFrames instead.

Let me know what you think.
import warnings
import pandas as pd

def validate_series_in_df(s: pd.Series, df: pd.DataFrame) -> bool:
    # validate unique indices
    if any(s.index.duplicated()):
        raise ValueError("Series index contains duplicates")
    if any(df.index.duplicated()):
        raise ValueError("DataFrame index contains duplicates")

    if len(s.index) == len(df.index):
        if s.index.equals(df.index):       # 1. same length, identical
            return True
        else:                               # 2. same length, mismatched
            raise ValueError("Not all values in DataFrame index have corresponding value in Series index")
    elif len(s.index) > len(df.index):
        if all(df.index.isin(s.index)):    # 3. longer series, all df items have a match
            warnings.warn("Extra items in Series that are not present in DataFrame, but continuing with plot.")
            return True
        else:                               # 4. longer series, not all df items have a match
            raise ValueError("Not all values in DataFrame index have corresponding value in Series index")
    elif len(s.index) < len(df.index):     # 5. shorter series
        raise ValueError("Not all values in DataFrame index have corresponding value in Series index")

#########
# TESTS #
#########
import pytest

def test_series_duplicate_ix():
    s = pd.Series(["a", "b", "c", "d"], index=[0, 1, 1, 2])
    df = pd.DataFrame({'name':['foo', 'bar', 'baz'], 'end':["x", "y", "z"]}, index=[0, 1, 2])

    with pytest.raises(ValueError, match="Series index contains duplicates"):
        validate_series_in_df(s, df)

def test_df_duplicate_ix():
    s = pd.Series(["a", "b", "c"], index=[0, 1, 2])
    df = pd.DataFrame({'name':['foo', 'bar', 'baz', 'bop'], 'end':["w", "x", "y", "z"]}, index=[0, 1, 1, 2])

    with pytest.raises(ValueError, match="DataFrame index contains duplicates"):
        validate_series_in_df(s, df)

def test_equal_len_equal_ix():
    s = pd.Series(["a", "b", "c"], index=[0, 1, 2])
    df = pd.DataFrame({'name':['foo', 'bar', 'baz'], 'end':["x", "y", "z"]}, index=[0, 1, 2])

    assert validate_series_in_df(s, df) == True

def test_equal_len_diff_ix():
    s = pd.Series(["a", "b", "c"], index=[0, 1, 9])
    df = pd.DataFrame({'name':['foo', 'bar', 'baz'], 'end':["x", "y", "z"]}, index=[0, 1, 2])

    with pytest.raises(ValueError, match="Not all values in DataFrame index have corresponding value in Series index"):
        validate_series_in_df(s, df)

@pytest.mark.filterwarnings("ignore:Extra items")
def test_long_s_all_df_match():
    s = pd.Series(["a", "b", "c", "d"], index=[0, 1, 2, 3])
    df = pd.DataFrame({'name':['foo', 'bar', 'baz'], 'end':["x", "y", "z"]}, index=[0, 1, 2])

    assert validate_series_in_df(s, df) == True

def test_long_s_all_df_match_warning():
    s = pd.Series(["a", "b", "c", "d"], index=[0, 1, 2, 3])
    df = pd.DataFrame({'name':['foo', 'bar', 'baz'], 'end':["x", "y", "z"]}, index=[0, 1, 2])

    with pytest.warns(Warning) as record:
        validate_series_in_df(s, df)

    assert str(record[0].message) == "Extra items in Series that are not present in DataFrame, but continuing with plot."

def test_long_s_not_all_df_match():
    s = pd.Series(["a", "b", "c", "d"], index=[0, 1, 2, 9])
    df = pd.DataFrame({'name':['foo', 'bar', 'baz'], 'end':["x", "y", "z"]}, index=[0, 1, 3])

    with pytest.raises(ValueError, match="Not all values in DataFrame index have corresponding value in Series index"):
        validate_series_in_df(s, df)

def test_short_s():
    s = pd.Series(["a", "b", "c"], index=[0, 1, 2])
    df = pd.DataFrame({'name':['foo', 'bar', 'baz', 'bop'], 'end':["w", "x", "y", "z"]}, index=[0, 1, 2, 3])

    with pytest.raises(ValueError, match="Not all values in DataFrame index have corresponding value in Series index"):
        validate_series_in_df(s, df)

Thanks for the contribution! It would be a lot easier for me to review this code if you could go ahead and open up a pull request against geoplot with it.
In terms of where the code should live, the input validation tests seem like they could go in input_tests.py. The method itself could go in the main geoplot.py file, which contains a section for "Helper methods".

This has been bothering me for a while, so I went ahead and implemented it myself in #165.
@deppen8 having done the full implementation, some comments on your code:

Restricting the input GeoDataFrame to have a fully unique index is unnecessarily restrictive. There are reasons why a user might happen to have a non-unique index, and the correct behavior for this case is well-defined (see pd.Series.reindex), so there's no reason we can't support that.
Restricting the input Series to have the same length as the input GeoDataFrame is also unnecessarily restrictive. It's fine if the index values in the Series are a superset of those in the GeoDataFrame; the extra ones just won't be carried over.

You can see the implementation by visiting the PR. Closing this issue now.


[RFE] I need better logs and troubleshooting advice across the board. So many bugs and issues are completely unanswered with the same issue across generations of release.

Is your feature request related to a problem? Please describe.
Right now I'm trying to recover a cluster after a full control plane failure.
Following suse docs (like I can read the docs, I just need better ones) I drop old nodes, goto register a new one and and it spams:
Requesting kubelet certificate regeneration
Lets try to debug this. Enable debug logging.
It adds, ONLY Wrote ping. What is this doing? what endpoints is it trying to call, what responses is it getting?
How do I debug this on the local cluster? Who knows? I don't even know what it's doing. Dozens of objects across a handful of namespaces all with equally nondescript function and usage.
Ok, but the suse docs say Waiting to register with Kubernetes", this is normal. Maybe this is normal. So I continue the docs and try to restore a backup. Except, IT DOESN'T DO ANYTHING AND THERE'S NO ERRORS. Then we're back to square one. What random micro service or thing is handling that and where is the log?
I should add, those docs do provide a logging command of sorts. Grepping for the cluster name, the only feasible key to sort very noisy logs off the top of my head, returns esoteric requeing against non existing ips.
Describe the solution you'd like
Literally any info on provisioning workflow, how to get better logs, what services to watch, critical data storage locations etc.

I ended up just having to scrap the cluster. I'm running out of time on an initiative and just have to rebuild, but not for lack of trying.
I wanted to share something fun I found. More or less, and undocumented api of sorts that you could cause a lot of damage with if you're not careful. I need to put this into a blog post.

R_CLUSTER=`etcdctl get "/registry/provisioning.cattle.io/clusters/fleet-default/c-gmd2b" --prefix | head -2 | tail -1 | jq .`

NEW_KEY=`echo $R_CLUSTER | jq '.status.conditions[0]="False"'`

etcdctl put "/registry/provisioning.cattle.io/clusters/fleet-default/c-gmd2b" "$(echo $NEW_KEY | jq . -c)"

I only got so far, and would like to play more if I can find the time, but the world is your oyster here. You can modify anything in place regardless of if you should or could otherwise. You can ready or unready nodes, try to trigger lifecycle events etc. Very powerful!


Update

If you're adding a new rule, please follow these steps.

Codecov Report

Merging #4 (20c6341) into tmp (dfc1ce0) will increase coverage by 0.03%.
The diff coverage is 99.69%.

@@            Coverage Diff             @@
##              tmp       #4      +/-   ##
==========================================
+ Coverage   99.44%   99.47%   +0.03%
==========================================
  Files          88       94       +6
  Lines        3039     3254     +215
==========================================
+ Hits         3022     3237     +215
  Misses         17       17

Impacted Files
Coverage Δ

rules/no-array-callback-reference.js
100.00% <ø> (ø)

rules/no-array-reduce.js
100.00% <ø> (ø)

rules/prefer-array-flat-map.js
100.00% <ø> (ø)

rules/prefer-dom-node-remove.js
100.00% <ø> (ø)

rules/prefer-string-starts-ends-with.js
100.00% <ø> (ø)

rules/prefer-string-trim-start-end.js
100.00% <ø> (ø)

rules/utils/create-deprecated-rules.js
85.71% <85.71%> (ø)

index.js
100.00% <100.00%> (ø)

rules/better-regex.js
100.00% <100.00%> (ø)

rules/consistent-function-scoping.js
96.05% <100.00%> (+0.40%)
:arrow_up:

... and 28 more

Continue to review full report at Codecov.

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


Beautify on save for Html is not working properly

hello,
i don't know why this is happning but i want to use

Beautify on save

option for html but it's not working, while for JavaScript is working cool.
system information
i am on ubuntu 16.04 , and using theme atom Light for Ui and one light for syntax .
hop i get guidelines asap.
thank you.

Could you generate the debug.md file and save that to a gist?

Actually I am new user of atom so don't know how to get debug.md file. Else
currently I just uninstall package and will install in short future.
One more information. Me and my other team member get same problem with its
like when we save code it Beautyfy but some extra code appand to bottom of
file which generates error. So we both uninstall it.
On 15-Feb-2017 4:58 PM, "Austin Cheney"<EMAIL_ADDRESS>wrote:

Could you generate the debug.md file and save that to a gist?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Glavin001/atom-beautify/issues/1517#issuecomment-279986816,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AH0rLly9824JrBLLnaJpLsLfX7OoO8wYks5rcuFwgaJpZM4MBVgF
.

Before Save :
		query: { 			isArray: false 		}, 		update: { 			method: 'PUT' 		} 	}); }]);
and after save :
		query: { 			isArray: false 		}, 		update: { 			method: 'PUT' 		} 	}); }]); 	method: 'PUT' 		} 	}); }]);

The debug.md file can be generated with these instructions: https://github.com/Glavin001/atom-beautify/blob/master/docs/troubleshooting.md
This issue looks like a duplicate of https://github.com/Glavin001/atom-beautify/issues/1213

ok it will take time to sent you debug.md file coz i am working on something and yes it's looks my problem is very similar  #1213.
But again . i have other issue :
i setup for html , when i save file it has to be beautify but it won't.

The beautify on save doing nothing for all with the HTML is possibly a different defect.  Again, it would be helpful to that that debug.md in both cases so that we can see what your software configuration is and what beautifiers you are using.
If you changed beautifiers are both of these problems resolved?  I suspect, from the other issue, that the defect is related to a how a particular beautifier is configured in Atom Beautify.

Oky I will sent you my configuration's screenshots and .MD file asap.
On 15-Feb-2017 9:37 PM, "Austin Cheney"<EMAIL_ADDRESS>wrote:

The beautify on save doing nothing for all with the HTML is possibly a
different defect. Again, it would be helpful to that that debug.md in
both cases so that we can see what your software configuration is and what
beautifiers you are using.
If you changed beautifiers are both of these problems resolved? I suspect,
from the other issue, that the defect is related to a how a particular
beautifier is configured in Atom Beautify.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Glavin001/atom-beautify/issues/1517#issuecomment-280053667,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AH0rLsz2IsXstVhCxuMpXRisb_x3C7Zeks5rcyKsgaJpZM4MBVgF
.

Any feedback on this? Beautify on save for HTML file is not working


Fix post description not showing up

I believe this was typo. The content was empty in the post description.
<meta name="description" content="" data-react-helmet="true">
This small change fixes it:
<meta name="description" content="A post about ice cream" data-react-helmet="true">

Thanks for the fix, had totally forgotten to include the description.


Ubuntu15.10下打包出错

First, make sure your issue is strictly related to the Electronic WeChat project. If it's a question or feature request, you can remove the template below.
Description
Ubuntu15.10下打包出错
Specifications

Version of Electron (run $ electron --version): v0.0.0
Version of Node.js (run $ node --version): v0.0.0
OS: <OS>Ubuntu 15.10
Architecture <ARCH>
Stack trace from the error message (if any)

 at Error (native)
    errno: -36,
    code: 'ENAMETOOLONG',
    syscall: 'unlink',
    path: '/home/kira/github/electronic-wechat/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/resources/app/electron-packager/linux-x64/electronic-wechat-linux-x64/snapshot_blob.bin' },

试试 npm install


Return a promise on start()

This allows developers to see when BeePlugin has finished loading. Also makes available the instance variable on a completed load

I removed eslintyarn because this is an unknown package?

I'm sorry @Geczy if I'm responding just now but in the last two weeks I was in vacations.
I will review the pull request as soon as possible.

Ok sorry for the hundred comments, for me, it's ok to merge if:

Remove the versioning of the 'dist' folder? (if we don't have a really good "excuse" to do that)
Change that line on "file formatting" commit
Merge the fix of dependencies on package.json

What do you think? can you do that?

Yes no problem

I'm closing this in favor of this # #16


Move JS HttpTrigger out of broken list

As far as I can tell, it works. Any reason not to move it now? This is a core scenario and we need to have it in good shape.

Pull request #25 fixes this issue


[platform-expression] fix compare()

Thanks for the fix!
What bad behavior caused you to identify this bug? We'd like to add a test case to improve coverage.

Just saw this typo in the code.
Test case: when do some search using "vcpkg search ..." this function compare two expressions, for example in ffmpeg vcpkg.json there are platforms which return wrong result from compare().
{
  "name": "ffmpeg",
  "default-features": false,
  "features": [
    "opengl"
  ],
  "platform": "!uwp & !(windows & arm)"
},
{
  "name": "ffmpeg",
  "default-features": false,
  "features": [
    "dav1d"
  ],
  "platform": "!(uwp | arm | x86 | osx)"
},

Complexy of !uwp & !(windows & arm) is 7, when !(uwp | arm | x86 | osx) is 6 and has bigger length.


GrpcService demo with Dapr

Hi team, please can you help me how to implement simple gRpc server behind Dapr ? We can use it Greeting gRpc service (https://docs.microsoft.com/en-us/aspnet/core/tutorials/grpc/grpc-start?view=aspnetcore-3.1&tabs=visual-studio#create-a-grpc-service). What I need is to understand how to modify server to be accessible from Dapr sidecar - how to publish endpoint. I don't want to publish REST api on server side (only gRpc). Next how can I use Dapr state store ?

I run grpc server with Dapr, but I don't know how to invoke method with grpc.
Server is running:
dapr run --app-id jjgrpcserver --app-port 5000 --protocol grpc --grpc-port 50000 dotnet .\jjgrpc-server.dll
I don't know how to call SayHello method in my grpc service

@jjindrich For Dapr to invoke your service over gRPC, you will have to implement gRPC server as per this proto https://github.com/dapr/dapr/blob/release-0.7/dapr/proto/daprclient/v1/daprclient.proto#L24

Thank, you is there any sample how to implement it?

Shared this demo https://github.com/GennadiiSvichinskyi/test-grpc-dapr


TwitterDapp

Created TwitterClone #61

@AnmolSirola  explainns about the project in the readme

@Vikash-8090-Yadav I have added the use case in readme.md file  plz have a look

great @AnmolSirola .


unbantu上运行api.py

[nltk_data] Error loading averaged_perceptron_tagger: <urlopen error
[nltk_data]     [Errno 111] Connection refused>
[nltk_data] Error loading cmudict: <urlopen error [Errno 111]
[nltk_data]     Connection refused>
Traceback (most recent call last):
File "/home/vipuser/anaconda3/envs/GPTSoVits/lib/python3.9/site-packages/nltk/corpus/util.py", line 84, in __load
root = nltk.data.find(f"{self.subdir}/{zip_name}")
File "/home/vipuser/anaconda3/envs/GPTSoVits/lib/python3.9/site-packages/nltk/data.py", line 583, in find
raise LookupError(resource_not_found)
LookupError:

Resource cmudict not found.
Please use the NLTK Downloader to obtain the resource:

import nltk
nltk.download('cmudict')

For more information see: https://www.nltk.org/data.html
Attempted to load corpora/cmudict.zip/cmudict/
Searched in:
- '/root/nltk_data'
- '/home/vipuser/anaconda3/envs/GPTSoVits/nltk_data'
- '/home/vipuser/anaconda3/envs/GPTSoVits/share/nltk_data'
- '/home/vipuser/anaconda3/envs/GPTSoVits/lib/nltk_data'
- '/usr/share/nltk_data'
- '/usr/local/share/nltk_data'
- '/usr/lib/nltk_data'
- '/usr/local/lib/nltk_data'

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/UD/GPT-SoVITS/api.py", line 166, in
from text.cleaner import clean_text
File "/usr/local/UD/GPT-SoVITS/GPT_SoVITS/text/cleaner.py", line 1, in
from text import chinese, japanese, cleaned_text_to_sequence, symbols, english
File "/usr/local/UD/GPT-SoVITS/GPT_SoVITS/text/english.py", line 358, in
_g2p = en_G2p()
File "/usr/local/UD/GPT-SoVITS/GPT_SoVITS/text/english.py", line 252, in init
super().init()
File "/home/vipuser/anaconda3/envs/GPTSoVits/lib/python3.9/site-packages/g2p_en/g2p.py", line 71, in init
self.cmu = cmudict.dict()
File "/home/vipuser/anaconda3/envs/GPTSoVits/lib/python3.9/site-packages/nltk/corpus/util.py", line 121, in getattr
self.__load()
File "/home/vipuser/anaconda3/envs/GPTSoVits/lib/python3.9/site-packages/nltk/corpus/util.py", line 86, in __load
raise e
File "/home/vipuser/anaconda3/envs/GPTSoVits/lib/python3.9/site-packages/nltk/corpus/util.py", line 81, in __load
root = nltk.data.find(f"{self.subdir}/{self.__name}")
File "/home/vipuser/anaconda3/envs/GPTSoVits/lib/python3.9/site-packages/nltk/data.py", line 583, in find
raise LookupError(resource_not_found)
LookupError:

Resource cmudict not found.
Please use the NLTK Downloader to obtain the resource:

import nltk
nltk.download('cmudict')

For more information see: https://www.nltk.org/data.html
Attempted to load corpora/cmudict
Searched in:
- '/root/nltk_data'
- '/home/vipuser/anaconda3/envs/GPTSoVits/nltk_data'
- '/home/vipuser/anaconda3/envs/GPTSoVits/share/nltk_data'
- '/home/vipuser/anaconda3/envs/GPTSoVits/lib/nltk_data'
- '/usr/share/nltk_data'
- '/usr/local/share/nltk_data'
- '/usr/lib/nltk_data'
- '/usr/local/lib/nltk_data'

缺少nltk,按照报错提示下载

可以在windows电脑上下载
import nltk nltk.download('cmudict’)

然后把下载的文件copy到unbantu这里任意一个路径下


polygon should List<List>

According to RFC7946 definition, to present the ring (with hole), it has to two dementional array.
https://tools.ietf.org/html/rfc7946#section-3.1.6
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[100.0, 0.0],
[101.0, 0.0],
[101.0, 1.0],
[100.0, 1.0],
[100.0, 0.0]
]
]
},
"properties": {
"prop0": "value0",
"prop1": {
"this": "that"
}
}

If you look at the Geometry class, it already warps T inside of a list
protected List<T> coordinates = new ArrayList<T>();


Change password?

Wil the feature to change password be created?

Hik provides other SDKs to change passwords

can you point it out?

I send it to your email.

thanks for your help! will check it out


Docker Image

Will there be an official Docker image?

We do not currently have any plans of doing this, however, this could be something we could implement in the near future.


Bug: Empty rows on column types "time" cause unwanted behavior

Hello. Thanks for your plugin.
If I define the type Time on a column, and the CSV data-source return some empty rows, the whole table values are not rendered:
As you can see in the screenshots, if I set the type String some values are returned (and turned into NaN by the table panel column override rules), but if I set Time (which would allow sorting and avoid the NaN glitches) nothing is shown.
(Sorry for the wild blurring, but personal information all around).

Thanks for reporting! I can confirm that I'm able to reproduce this with the following CSV data:

@marcusolsson  Is it possible to to convert integer to data time value. As Checked the code based it is able to convert the values to int to date time. But currently I am using Dropwizard & it gives the headed name as "t". Can you help me on this.
Sample data:
t,count,mean_rate,m1_rate,m5_rate,m15_rate,rate_unit
1651239776,0,0.000000,0.000000,0.000000,0.000000,events/day
1651239836,0,0.000000,0.000000,0.000000,0.000000,events/day
1651239896,0,0.000000,0.000000,0.000000,0.000000,events/day
1651239956,0,0.000000,0.000000,0.000000,0.000000,events/day
1651240016,0,0.000000,0.000000,0.000000,0.000000,events/day
1651240076,0,0.000000,0.000000,0.000000,0.000000,events/day
So the field one is Unix Timestamp.  It would be a great help.


Re-evaluate the UserManager

Tagging @dualspiral as you have dealt with the GameProfileManager
To start off with, this Sponge commit: https://github.com/SpongePowered/Sponge/commit/0058066435104a66b5aea07fc80b649820993cba#diff-10b1b3bdbca9363091a2d6794b93610eb85485141610bb9465c244ea5c7cef8aR161
The problem with the UserManager (that heavily bleeds into SpongeUser in the implementation) is the notion that all query-style methods (find) trigger a "load". Rather in our implementation, the SpongeUser is largely unloaded until one of the methods is called and triggers it.
This is bad for a number of reasons:

It makes the implementation, to be performant, quite fragile as the object is junk until someone calls one of the property getters
When a getter is called, the data in the file is likely to be read on a main thread given the lack of a callback to state otherwise

What I propose:

Add querying methods to UserManager that allow you to determine if a User object exists to allow an implementation to cache this data cleanly without triggering pointless loads.
Have the finding methods that trigger a load return CompletableFutures so that User objects returned by API can be fully initialized AND performant by an implementation

Additionally, given the breaking nature and how important this manager is, I am declaring this to be high priority.


OTLPExporterBase causes unhandled rejection on DNS resolution error

What happened?
Steps to Reproduce
Without an opentelemetry agent running provide OTEL_EXPORTER_OTLP_ENDPOINT="http://opentelemetry-agent:4317" through the environment and register a trace provider.
I believe you will need to trace something as well, though the stacktrace is not very heavy on the details, so that's a guess.
Expected Result
The instrumentation logs an error about DNS resolution failing.
Actual Result
The instrumentation rejects with an unhandled Promise about DNS resolution failing.
Additional Details
OpenTelemetry Setup Code
const resource = otelResources.Resource.default().merge(
	new otelResources.Resource({
		[otelSemanticConventions.SEMRESATTRS_SERVICE_NAME]: serviceName,
		[otelSemanticConventions.SEMRESATTRS_SERVICE_VERSION]: serviceVersion,
		...options.defaultAttributes,
	}),
);
const tracerProvider = new otelSDKTraceNode.NodeTracerProvider({ resource });
tracerProvider.addSpanProcessor(
	new otelSDKTraceBase.BatchSpanProcessor(new otelExportTraceOTLPGRPC.OTLPTraceExporter()),
);
tracerProvider.register();

package.json
{
  "dependencies": {
    "@rushstack/eslint-patch": "1.7.2",
    "@opentelemetry/api": "1.9.0",
    "@opentelemetry/exporter-trace-otlp-grpc": "0.52.1",
    "@opentelemetry/instrumentation": "0.52.1",
    "@opentelemetry/resources": "1.25.1",
    "@opentelemetry/sdk-trace-node": "1.25.1",
    "@opentelemetry/semantic-conventions": "1.25.1"
  }
}

Relevant log output
Error: 14 UNAVAILABLE: Name resolution failed for target dns:opentelemetry-agent:4317
    at callErrorFromStatus (/service/node_modules/@grpc/grpc-js/src/call.ts:82:17)
    at Object.onReceiveStatus (/service/node_modules/@grpc/grpc-js/src/client.ts:360:55)
    at Object.onReceiveStatus (/service/node_modules/@grpc/grpc-js/src/client-interceptors.ts:458:34)
    at Object.onReceiveStatus (/service/node_modules/@grpc/grpc-js/src/client-interceptors.ts:419:48)
    at /service/node_modules/@grpc/grpc-js/src/resolving-call.ts:132:24
    at processTicksAndRejections (node:internal/process/task_queues:77:11)
for call at
    at ServiceClientImpl.makeUnaryRequest (/service/node_modules/@grpc/grpc-js/src/client.ts:325:42)
    at ServiceClientImpl.export (/service/node_modules/@grpc/grpc-js/src/make-client.ts:189:15)
    at /service/node_modules/@opentelemetry/otlp-grpc-exporter-base/src/grpc-exporter-transport.ts:160:26
    at new Promise (<anonymous>)
    at GrpcExporterTransport.send (/service/node_modules/@opentelemetry/otlp-grpc-exporter-base/src/grpc-exporter-transport.ts:145:12)
    at OTLPTraceExporter.send (/service/node_modules/@opentelemetry/otlp-grpc-exporter-base/src/OTLPGRPCExporterNodeBase.ts:129:37)
    at /service/node_modules/@opentelemetry/otlp-exporter-base/src/OTLPExporterBase.ts:105:14
    at new Promise (<anonymous>)
    at OTLPTraceExporter._export (/service/node_modules/@opentelemetry/otlp-exporter-base/src/OTLPExporterBase.ts:102:12)
    at OTLPTraceExporter.export (/service/node_modules/@opentelemetry/otlp-exporter-base/src/OTLPExporterBase.ts:92:10)

Hi @andsens, thanks for reaching out.
Is this happening when shutting down or force flush the TracerProvider or while the app is running? :thinking:
I tested this locally and was only able to repro this when I called TracerProvider#shutdown() without considereing rejections. The stack trace was the same as you received, and it also did not mention anything about shutdown() or forceFlush(). During normal operation (scheduled exports) the rejection was properly handled.

Oh yeah, that might be it. I have a shutdown procedure with a function that looks like this:
export async function closeTracer(context: RootLogContext) {
	if (isTracerContext(context)) {
		const { rootLog, tracerProvider } = context;
		rootLog.verbose('shutdown: close tracer connection');
		tracerProvider.shutdown();
		const [timeout, cancelTimout] = throwAfter(500, 'shutdown: Timed out waiting for tracer to close.');
		await Promise.race([timeout, tracerProvider.shutdown]);
		cancelTimout();
	}
}

The function call itself is wrapped in a try/catch, so the error should simply be logged.
The error is from a short running script, so the tracerProvider.shutdown() call is likely to get the responsibility of having to flush everything.


Okta log time

Codecov Report

Merging #26 (2f34af7) into main (e47a68e) will decrease coverage by 0.07%.
The diff coverage is 96.55%.

@@            Coverage Diff             @@
##             main      #26      +/-   ##
==========================================
- Coverage   90.95%   90.87%   -0.08%
==========================================
  Files          26       26
  Lines        1105     1129      +24
==========================================
+ Hits         1005     1026      +21
- Misses        100      103       +3

Impacted Files
Coverage Δ

OktaPosh/public/Get-OktaLog.ps1
89.47% <ø> (+8.70%)
:arrow_up:

OktaPosh/public/Invoke-OktaApi.ps1
77.96% <50.00%> (-0.99%)
:arrow_down:

OktaPosh/public/User.ps1
84.42% <100.00%> (-0.53%)
:arrow_down:

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 e47a68e...2f34af7. Read the comment docs.


Align the help on text to make it legible

The help text is not align
some entries start with a '*' other not
h  LeftArrow     When focused on an expanded object or array, collapse the
                     object or array. Otherwise, move focus to the parent of
                     the focused node.

  H                Focus the parent of the focused node, even if it is an
                     expanded object or array.

  l  RightArrow    When focused on a collapsed object or array, expand the
                     object or array. When focused on an expanded object or
                     array, move focus to the first child. When focused on
                     non-container values, does nothing.

  J         *  Move to the focused node's next     sibling 1 or N times.
  K         *  Move to the focused node's previous sibling 1 or N times.

  w         *  Move forward   until the next change in depth 1 or N times.
  b         *  Move backwards until the next change in depth 1 or N times.

  PageDown  ^f  *  Move down by one window (or N windows).
  PageUp    ^b  *  Move up   by one window (or N windows).

This indented text is intentional, and is based on some of the formatting in less's help page.
The * indicates which commands accept a count, and is also based on less's help page.

Maybe a direct compatison would make my point clearer.


xscreensaver: 6.04 -> 6.06

Description of changes
https://www.jwz.org/blog/2022/09/xscreensaver-6-05-out-now/
https://www.jwz.org/blog/2022/12/xscreensaver-6-06-out-now/
draft because I'm actually on wayland on my main machine. will test on something with x11 later, if nobody else does.
Things done

Built on platform(s)

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

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

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

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

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

[x] Fits CONTRIBUTING.md.

Looks like xscreensaver-demo fails with Could not load a pixbuf from /org/gtk/libgtk/theme/Adwaita/assets/bullet-symbolic.svg.
I wonder if the proper approach is to wrap only it to find the GTK stuff…


The options page is broken in Safari

Setup
Browser: Safari
Description
The build generates dynamic filenames, but Xcode will only include files previously specified. For example it lists options.js but the filename is currently options.14df903e.js
https://github.com/fregante/GhostText/blob/2180bee7c170c94592a934c4c411ddcd2bf9676d/safari/GhostText.xcodeproj/project.pbxproj#L23
Related
https://github.com/refined-github/refined-github/pull/5804#issuecomment-1179270213

Hopefully fixed by ecdf25c


feat(compiler): catching unhandled exceptions

Adding exception handling in the console app to catch any unhandled
exceptions.

Adding an issue template for bug tracking and linking it in the
console output if an unhandled exception occurs.

Part of #60
Screenshot of exception output

@RossAndersonDev you up for finishing this up and getting it merged? Your changes look great, so it'd be awesome to get it in!


feat(theme-default): improve SidebarButton a11y and animate

Animation effect:

😀I also added the document @meteorlxy

Sorry for delay. Busy these days. I'll review this PR later

It’s okay, I’m just worried you forgot it😁

????
What happened to this PR?
I did nothing but it is marked as merged?
@jiazengp I think that the pull bot broke your PR:

The pull bot made this PR empty:

啊，这

抱歉，我重新提一个~。