RFC Don't set entity_id  in ZHA entities

Description:
Don't set entity_id in ZHA entities. Instead use name property and let HA handle entity ids.
In previous versions ZHA entities were issuing their own entity ids when a new device was joined. This was only useful for newly joined devices, as it allowed ZHA to "seed" the entity id, but after that "entity registry" was taking over it anyway. In this PR we take a more general approach and let HA handle the entity_id creation/handling.
This is not a breaking, because we keep the unique_id intact, thus all existing entities would retain their entity_id and friendly names. Only newly joined devices would be affected.
The new style entity_ids and names:

The old style of entity_ids and names:

Checklist:

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

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

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

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

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

Decided to use comma as separator for entities with multiple channels, eg:

Good to merge after @MartinHjelmare 's comments are addressed.


[SPARK-30901][DOCS] Fix doc exemple with deprecated codes

What changes were proposed in this pull request?

Previous exemple given for spark-streaming-kinesis was true for Apache Spark < 2.3.0. After that the method used in exemple became deprecated:
@deprecated("use initialPosition(initialPosition: KinesisInitialPosition)", "2.3.0")
def initialPositionInStream(initialPosition: InitialPositionInStream)
This PR updates the doc on rewriting exemple in Scala/Java (remain unchanged in Python) to adapt Apache Spark 2.4.0 + releases.
Why are the changes needed?

It introduces some confusion for developers to test their spark-streaming-kinesis exemple.
Does this PR introduce any user-facing change?

No
How was this patch tested?

In my opinion, the change is only about the documentation level, so I did not add any special test.

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Jenkins test this please

Test build #118874 has started for PR 27652 at commit ef34739.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/23623/
Test PASSed.

Test build #118874 has finished for PR 27652 at commit ef34739.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/118874/
Test PASSed.

Merged to master/3.0


I use webpack UglifyJsPlugin for lodash template in js,but not i expect;

before:

<span class='<%- prefix %>span'> <%- val.name %>

after:

<span class=" <%- prefix %> span "> <%- val.name %>

the space between  "<%- prefix %>" and "span"  is not i expect . please help!!

Can you set up a standalone test case?


[W4.5][W14-A2]Sim Kwan Tiong Damien

@Damienskt
Some comments added. Please ack & close the PR after reading comments.


Fix incorrect caret position in iOS

Description
When focus at the start of a middle line in a paragraph, getBoundingClientRect wil get an incorrect height and using getClientRects can get the correct height

After fixing：

Issue
Fixes: #81
Checks

[x] The new code matches the existing patterns and styles.
[x] The tests pass with pnpm test.
[x] The linter passes with pnpm lint. (Fix errors with pnpm fix.)
[ ] The relevant examples still work. (Run examples with pnpm start.)
[x] You've added a changeset if changing functionality. (Add one with pnpm changeset.)

In some situations, clientRects will be empty, like inserting an image.


[stable/jenkins]  ERROR: Cannot run program "docker"

Describe the bug
ERROR: Cannot run program "docker"
Version of Helm and Kubernetes:
Helm v3.1.2
Kubernetes v1.18.0
Which chart:
[stable/jenkins]
What happened:
Already installed CloudBees Docker Build and Publish plugin  ，build, I get the following error
[jenkins-k8s-demo] $ docker build -t registry-vpc.cn-shanghai.aliyuncs.com/fzzxwl/k8s-demo:master --pull=true /home/jenkins/workspace/jenkins-k8s-demo
ERROR: Cannot run program "docker" (in directory "/home/jenkins/workspace/jenkins-k8s-demo"): error=2, No such file or directory
java.io.IOException: Cannot run program "docker" (in directory "/home/jenkins/workspace/jenkins-k8s-demo"): error=2, No such file or directory

Anything else we need to know:

I have mounted docker to agent why???

I encountered the same issue that I solved by deleting the config.xml in Jenkins volume, I think it is not dynamically updated by the chart


rm provider resource wait during init logic

removes all the waitgroup logic associated with the provider resources (gatewayclass, gateway, httproute) that was added to ensure that all resources within the watchable map was comepletely initialized before the gateway api translated the resources

removing this logic does mean that there might some churn in the dataplane during EG reboots. This should get fixed with https://github.com/envoyproxy/gateway/issues/413 which plans on reconciling all resources within a single controller so we cont need to synchonize across multiple controllers using multiple waitgroups

Signed-off-by: Arko Dasgupta<EMAIL_ADDRESS>

Codecov Report

Merging #447 (e1c88f0) into main (54b26e2) will increase coverage by 0.13%.
The diff coverage is 73.17%.

@@            Coverage Diff             @@
##             main     #447      +/-   ##
==========================================
+ Coverage   60.04%   60.17%   +0.13%
==========================================
  Files          40       40
  Lines        4337     4347      +10
==========================================
+ Hits         2604     2616      +12
+ Misses       1582     1580       -2
  Partials      151      151

Impacted Files
Coverage Δ

internal/gatewayapi/runner/runner.go
48.75% <0.00%> (-7.04%)
:arrow_down:

internal/message/types.go
92.45% <ø> (ø)

internal/provider/kubernetes/gateway.go
70.46% <ø> (-0.50%)
:arrow_down:

internal/provider/kubernetes/gatewayclass.go
67.50% <ø> (+2.17%)
:arrow_up:

internal/provider/kubernetes/httproute.go
62.83% <83.33%> (+4.06%)
:arrow_up:

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


Alias Forge with use operator

Alias Forge with use operator in all drivers

[x] Securely signed commits
[x] Component(s)
[x] Conforms to style guide

Thank you @mostafakhudair


Skip deployment of azure functions in aggregation domain

Description
Change CD pipeline and avoid deploying azure functions with a public endpoint in B002.

@jonasdmoeller


[SPARK-31339][WIP] L245: Changed PipelineModel(...) to self.cls(...)

What changes were proposed in this pull request?

L245: Changed PipelineModel(...) to self.cls(...)
Why are the changes needed?

This change fixes the loading of class (which inherits from PipelineModel class) from file.
E.g. Current issue:
CustomPipelineModel(PipelineModel):
    def _transform(self, df):
        ...
CustomPipelineModel.save('path/to/file')  # works
CustomPipelineModel.load('path/to/file')  # wrong: results in PipelineModel() instead of CustomPipelineModel()
CustomPipelineModel.transform() # wrong: results in calling PipelineModel.transform() instead of CustomPipelineModel.transform()

Does this PR introduce any user-facing change?

No.
How was this patch tested?

This is my first time contributing to Spark library. Still figuring out where and how to test this change. If someone can help, much appreciated.

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Would you maybe just override the reader, if you have a custom impl?
I could but the implementation I am working on is simple and the serialization logic is meant to be the same. In fact, it also does not make sense that a custom implementation when deserialized loads as a PipelineModel instead of the custom class.

Sounds plausible. @jkbradley or @HyukjinKwon does that sound right? I admit I don't know enough about how self.cls might differ otherwise.

Jenkins test this please

Test build #120843 has started for PR 28110 at commit e75213c.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/25540/
Test PASSed.

Test build #120843 has finished for PR 28110 at commit e75213c.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/120843/
Test PASSed.


config object transforms are run twice

Doing the following will run transforms twice, no matter what the transform is:
var bundler = browserify('file.js', {
    transform: [to5ify]
});

using .transform instead works.

Seeing this as well. Here's a more complete repro:
var browserify = require('browserify');
var through = require('through');

function transform1() {
  console.log('this log line appears once');
  return through();
};

function transform2() {
  console.log('this log line appears twice');
  return through();
};

browserify('./blank.js', {
  transform: [transform2]
})
.transform(transform1)
.bundle();

All fixed in 9.0.2.


[Feature Request] Create an ID3 tag for each downloaded MP3 file

Once the MP3 files have been downloaded, create an ID3 tag in each one that specifies the book title.  This is useful because the ID3 tag is what appears in the display of most MP3 players.
Implementation note: there's an easy to use python module.

Workaround:  If you have eyeD3 installed (Linux) this bash script will do the trick:
for file in *.mp3; do eyeD3 --title="$file" $file ; done

A new program has been added, set_ID3_tags.py, to address this issue.  All it does is assign the filename as the title attribute in the ID3 tag.  For the moment I think setting ID3 tags should be a separate program and not part of libbyfetch itself.  My rationale is that some users may want more control over how the ID3 tags are created and would be frustrated with the simplistic approach used in this program.


TLD Whitelists to limit domain searches

We're going to need two whitelists, one for file types (which we already have) and one for government domains.
Regretfully, the domain issue is going to be an inconsistent solution at best.  There are plenty of government sites at .com domains, but we don't want people to be able to search google.com.
The proposed solution for this is to let any search that validate against the TLD whitelist go through automatically, and to throw up a captcha and a form for more information about the site for sites that don't match the whitelist.

To be clear, this is basically just a set of regexps to match the end of a domain.
So for example, we know that any site that ends with .gov or .gov.uk are okay to go on the whitelist.  Sites that end in .com need to be validated for additional information.

Oh, lets get some checkboxes :)

[ ] site has whitelist for domain endings that can be modified
[ ] site checks search requests against the whitelist
[ ] if a search request fails against the whitelist, the user is prompted to pass a CAPTCHA and asked for info about what site they're requesting info about.

I think it should be enough to simply leave a contact email somewhere on the bottom of our website that users will use to contact us in case they feel like a certain domain should get whitelisted.

We can use gman as the whitelist.

Oh man.  If only i had known.  I should have put my faith in Balter.

I can't figure out where the whitelist is, though. A search for “gov” doesn't yield anything.

Hi, Waldo,
Whitelist is not hardcoded. Instead, it is managed through /admin at the
server. This way you can add any domain without changing the code.
Waldo Jaquith wrote:

I can't figure out where the whitelist is, though. A search for “gov”
https://github.com/opendata/lmgtdfy/search?utf8=✓&q=gov&type=Code
doesn't yield anything.
—
Reply to this email directly or view it on GitHub
https://github.com/opendata/lmgtdfy/issues/11#issuecomment-74108625.

Ah yep, @waldoj just set you up with a user/pass & fired the details your way.

Oh, an admin section! Great. :)

btw, the format for the TLDs are just gov or gov.uk we automatically prepend a *. to that.

Do you have any sense of at what point this will become bogged down? That is, will adding thousands of domain names be problematic? (Of course, I'll bulk load them directly into MySQL.)

Waldo, this does not have to be a single domain.
Rather, you can use a postfix.
Therefore by adding .gov to the whitelist, you'll whitelist all .gov
websites and so on.
Waldo Jaquith wrote:

Do you have any sense of at what point this will become bogged down?
That is, will adding /thousands/ of domain names be problematic? (Of
course, I'll bulk load them directly into MySQL.)
—
Reply to this email directly or view it on GitHub
https://github.com/opendata/lmgtdfy/issues/11#issuecomment-74116563.

Sure, I follow, but only 1% of the domains that I'm concerned with are .gov domains.

Do you think we should remove the whitelist at all? The danger of this
is abuse of the search, which is not free to begin with.
Waldo Jaquith wrote:

Sure, I follow, but only 1% of the domains that I'm concerned with
https://github.com/benbalter/gman/blob/master/config/domains.txt are
.gov domains.
—
Reply to this email directly or view it on GitHub
https://github.com/opendata/lmgtdfy/issues/11#issuecomment-74125250.

Nope—I think it's a fine idea. I just want to expand it to include the domain names for all governments within the United States.

Waldo, if there is such a list somewhere, it will be extremely easy to
add them all to the list. Too bad we haven't found a reliable source so
far. They all use custom domains, not necessarily .gov, indeed.
Waldo Jaquith wrote:

Nope—I think it's a fine idea. I just want to expand it to include the
domain names for all governments within the United States.
—
Reply to this email directly or view it on GitHub
https://github.com/opendata/lmgtdfy/issues/11#issuecomment-74127480.

This is the list, right here:
https://github.com/benbalter/gman/blob/master/config/domains.txt

Do you want me to hardcode them or make a script that will add them to
the database?
Waldo Jaquith wrote:

This is the list, right here:
https://github.com/benbalter/gman/blob/master/config/domains.txt
—
Reply to this email directly or view it on GitHub
https://github.com/opendata/lmgtdfy/issues/11#issuecomment-74130137.

Oh, it's OK—you don't need to do anything with it. I'm happy to take care of this. :) I'm just wondering if this number of domains is going to be problematic for the software.

I don't think it is going to give you any kind of problems. 10000
strings with strict comparison should not take much time. I can make the
base script for importing such data for you if you need.
Waldo Jaquith wrote:

Oh, it's OK—you don't need to do anything with it. I'm happy to take
care of this. :) I'm just wondering if this number of domains is going
to be problematic for the software.
—
Reply to this email directly or view it on GitHub
https://github.com/opendata/lmgtdfy/issues/11#issuecomment-74131674.

Nah, that's fine—since it's MySQL, I'm happy to do it. I only need this for my own installation of this software—for the base package, there's no need to include this, so no standardized, replicable process is required.

Got this. In case you need any sort of help, feel free to message me and
we'll get this resolved real quick.
Waldo Jaquith wrote:

Nah, that's fine—since it's MySQL, I'm happy to do it. I only need
this for my own installation of this software—for the base package,
there's no need to include this, so no standardized, replicable
process is required.
—
Reply to this email directly or view it on GitHub
https://github.com/opendata/lmgtdfy/issues/11#issuecomment-74134782.


Feature Request: Add data refresh button in edgedb UI

I would love to see a refresh button on the edgedb ui data explorer. Refreshing via the browser doesn't keep your sorting or filters and seems slow perhaps because it reestablishes connection to the DB.

Should probably go under edgedb/edgedb-ui, but also flagging this
https://github.com/edgedb/edgedb-ui/issues/212 as a semi-duplicate

Please add the refresh button on the schema editor as well - especially now that edge watch is available.


Uploading a zip with directory structure without root directory

Is there a way to get JFrog to create a zip and upload it, where you point at a specific directory and the zip includes the contents of that directory and and subdirectories, but the zip doesn't include the top-level directory itself.
eg. If I use this:
        {
          "files": [
            {
              "pattern": "mydirectory/*",
              "target": "rep/thing.zip",
              "archive": "zip",
              "flat": "false"
            }
          ]
        }

Then the zip file contains a mydirectory directory, but I want it to start with the files and subdirectories under mydirectory

Hi @flcdrg ,
Currently the only available option is to cd into the directory you would like to upload and provide "./*" as pattern.
Placeholders are unfortunately not supported with the archive option.
Thanks

Ah.. as I'm using the Azure DevOps extension task, which doesn't offer the ability to change the current directory, I'm out of luck for now.

A possible workaround would be to use the JFrog CLI V2 task which supports setting a working directory.
I assume Azure DevOps also supports temporarily changing the working directory, but I can see why this may be a bit inconvenient.


GUI: Incomplete Plot types after loading data

Third Bug reported by Dylan
After loading data, the plot types dropdown in the figures control tab doesnt contain all the set of possible plot types.
current dipole
layer2 dipole
layer5 dipole
PSD
spectrogram
Missing:
'spikes', 'input histogram', 'network'

@ntolley @gtdang
This problem comes from PR #616 this  commit.
     sim_name_default = simulation_names[-1]

    if data['simulations'][sim_name_default]['net'] is None:
        valid_plot_types = [
            pt for pt in _plot_types if pt not in _ext_data_disabled_plot_types
        ]
    else:
        valid_plot_types = _plot_types

The plot types dropdown list values depend on the type of the last simulation in the  data['simulations'] dictionary.
This code is executed after running a simulation, loading data or pressing the 'Make figure' button.

Trying to think of what a clean solution is here, The only plots that make sense to overlay are

current dipole
layer2 dipole
layer5 dipole
PSD

The spectrogram should be excluded since it used imshow and can't simultaneously show two sets of data
I think the correct behavior would be to have valid_plot_types depend on the currently selected Data to compare, so perhaps a callback that updates the plot types whenever you selected a different Data to compare
What do you think?

I think we should remove this logic. It's making an assumption of what a user's next action will definitely be adding observed data to a plot. That's not always the case.

We discussed this more at today's dev-sync.

The limiting of the plot types logic is in place for when selecting simulation vs loaded data to plot. We do want the limiting of plot types for loaded data.
The problem is that when creating a new figure. It decides to set defaults based on the last item stored in the data object, which stores both simulation and loaded data. If the data is loaded last, all new figure panes will start with plot types for loaded data.

The solution is to initialize new figure panes with the last simulation and not loaded data.


Cannot update confit-ui-x plugin

Over the last month or two, every time I try to update via the update button, I get the following error.
Can someone please help point me at a solution?

is your npm up to date?

The log is here:

I’m not sure if NPM is up to date, and also not sure how to do any update of it inside the UI

Run this in the terminal:
sudo npm cache clean --force

and
npm cache clean --force

Fixed!!! Ran that command, then updated NPM, and update installed perfectly.
Thanks so much!
You are obviously someone who knows waaaaaay more than me, so can I ask one more question?
How do I update node.us, in line with this recommendation?

I'm happy that you have fixed it.
To find out how to update Node.js; click the link in that modal "How to Update Node.js" - then follow the instructions for Linux.
https://github.com/homebridge/homebridge/wiki/How-To-Update-Node.js#macos-and-linux

Perfect - thanks again to both of you.

No problem.


Added a good youtube channel

Thanks for your contribution, kindly review the contributions guidelines
Hello, thanks for your contribution. Youtube channel are hard to check in terms of provided content. No more channels will be added thanks.


Directions for verifying release file signatures

Please write some instructions or examples for verifying the .tar.gz files with Minisign. I did find directions at https://jedisct1.github.io/minisign/ but they're not sufficient. Where is your public key?

In the documentation?

Ah, so it's after Installation. You should probably put it in the Installation page right after the download step.

I was looking at the Installation linux page which didn't mention it, but I see it now on the general Installation page.


Rancher v1.0.2 fails to register host behind ELB

Rancher Version:
v1.0.2
Docker Version:
rancher server: 1.11.1
agent host: 1.10.3
OS and where are the hosts located? (cloud, bare metal, etc):
ec2
Setup Details: (single node rancher vs. HA rancher, internal DB vs. external DB)
single node rancher, RDS
Environment Type: (Cattle/Kubernetes/Swarm/Mesos)
cattle
Steps to Reproduce:

Install rancher server
create ELB and install proxy protocol, put server behind ELB
browse the UI fine through the ELB endpoint and see everything is working

Results:
When registering host, agent logs show:
2016-06-01T19:05:50.459327985Z time="2016-06-01T19:05:50Z" level="fatal" msg="Get http://rancher-lb-1393642374.us-east-1.elb.amazonaws.com/v1: dial tcp <IP_ADDRESS>:80: i/o timeout"
I'm able to register new hosts directly through the public IP of the server instance.  But when going through the ELB, things slow down and agent does not seem to be able to communicate with server.
Server logs show:
2016-06-01T19:26:44.767625003Z 2016-06-01 19:26:44,767 ERROR [:] [] [] [] [ecutorService-5] [i.c.p.a.s.ping.impl.PingMonitorImpl ] Scheduling reconnect for [8]
2016-06-01T19:26:49.766891712Z 2016-06-01 19:26:49,766 ERROR [:] [] [] [] [ecutorService-5] [i.c.p.a.s.ping.impl.PingMonitorImpl ] Failed to get ping from agent [8] count [7]
2016-06-01T19:26:54.767500929Z 2016-06-01 19:26:54,767 ERROR [:] [] [] [] [ecutorService-8] [i.c.p.a.s.ping.impl.PingMonitorImpl ] Failed to get ping from agent [8] count [8]
2016-06-01T19:26:59.768361918Z 2016-06-01 19:26:59,767 ERROR [:] [] [] [] [ecutorService-9] [i.c.p.a.s.ping.impl.PingMonitorImpl ] Failed to get ping from agent [8] count [9]
2016-06-01T19:30:18.619911673Z 2016/06/01 19:30:18 http: proxy error: net/http: request canceled
Note that browsing through the UI, I had occasional timeout errors from the rancher UI.
ELB Configuration:
ubuntu@ip-10-0-0-186:~$ aws elb describe-load-balancers --load-balancer-name rancher-lb --output=json
{
"LoadBalancerDescriptions": [
{
"Subnets": [
"subnet-07e0c971",
"subnet-a4e9978e"
],
"CanonicalHostedZoneNameID": "Z3DZXE0Q79N41H",
"CanonicalHostedZoneName": "rancher-lb-1393642374.us-east-1.elb.amazonaws.com",
"ListenerDescriptions": [
{
"Listener": {
"InstancePort": 8080,
"LoadBalancerPort": 80,
"Protocol": "TCP",
"InstanceProtocol": "TCP"
},
"PolicyNames": []
},
{
"Listener": {
"InstancePort": 8080,
"SSLCertificateId": "arn:aws:acm:us-east-1:273577629809:certificate/fc582d56-6bba-41e4-88d4-e482a1214f60",
"LoadBalancerPort": 443,
"Protocol": "SSL",
"InstanceProtocol": "TCP"
},
"PolicyNames": [
"AWSConsole-SSLNegotiationPolicy-rancher-lb-1464800575747"
]
}
],
"HealthCheck": {
"HealthyThreshold": 10,
"Interval": 30,
"Target": "HTTP:8080/ping",
"Timeout": 5,
"UnhealthyThreshold": 2
},
"VPCId": "vpc-2a2bfc4d",
"BackendServerDescriptions": [
{
"InstancePort": 80,
"PolicyNames": [
"my-ProxyProtocol-policy"
]
},
{
"InstancePort": 8080,
"PolicyNames": [
"my-ProxyProtocol-policy"
]
}
],
"Instances": [
{
"InstanceId": "i-4ba174d7"
}
],
Expected:
Should be able to register host.  Something with proxy protocol isn't working.

Troubleshooting steps taken:
Ran nslookup on the ELB, queried each IP of LB.
result: One IP would come back unresponsive.
Looked similar to this issue:
https://forums.aws.amazon.com/message.jspa?messageID=535913
@bigjhnny recreated subnets in each AZ, and issue hasn't resurfaced yet.
I'll close the ticket, if it comes back up, we can reopen.

Recreating the subnets in AWS worked!  Thanks Almad!


Test coverage improvement: github.com/redhat-openshift-ecosystem/openshift-preflight/certification/artifacts

This package is very small, but has functions that are currently not being tested at all.
Related to #573

/assign


Pylance latest v 2022.10.30 disables collapsable code

Environment data
Python 3.9.15
Pylance v 2022.10.30
Code Snippet
no code
Repro Steps
download the latest version, open any project, and try to collaspe code
Expected behavior
should be able to collaspe any group of code
Actual behavior
no down arrow to collaspe code

Can you share a screenshot? It is working for me:

You do need to hover in the margin for the collapse arrow to show up.
Or change this setting to have it always show up:

it wasn't working, but now it is. I would say that vscode is trying to frame me!


fetchAll() not working for relations that include a limit

I've discovered that fetchAll() returns an empty array for any relation that has a limit included. In this example, the first relation works while the second doesn't:
  nearbyRailStops: function() {
    return this.belongsToMany('RailStation', 'hotel_rail_station')
      .withPivot('time_walking_s')
      .query('orderBy', 'time_walking_s', 'asc');
  },
  nearbyBusStops: function() {
    return this.belongsToMany('BusStop', 'hotel_bus_stop')
      .withPivot('time_walking_s')
      .query('orderBy', 'time_walking_s', 'asc')
      .query('limit', 4);
  },

Both work for a simple fetch().
Is there any way to solve this?

Is this issue fixed or any work around for this? I am also facing the same issue.

The project leadership of Bookshelf recently changed. In an effort to advance the project we close all issues older than one year.
If you think this issue needs to be re-evaluated please post a comment on why this is still important and we will re-open it.
We also started an open discussion about the future of Bookshelf.js here https://github.com/bookshelf/bookshelf/issues/1600. Feel free to drop by and give us your opinion.
Let's make Bookshelf great again


Designer produces empty timestamp fields

If the timestamp fields are left blank, then the Designer will export actions with "timestamp":"" fields, but this is not valid against the current spec. We will update the spec in the next few months, but for the time being the quickest workaround is to modify the Designer's export logic.
See PR #38 as an example.

This is fixed in the v2 release.


rc_visard: 2.4.0-0 in 'melodic/distribution.yaml' [bloom]

Increasing version of package(s) in repository rc_visard to 2.4.0-0:

upstream repository: https://github.com/roboception/rc_visard_ros.git
release repository: https://github.com/roboception-gbp/rc_visard-release.git
distro file: melodic/distribution.yaml
bloom version: 0.6.7
previous version for package: 2.3.0-0

rc_hand_eye_calibration_client
* first release

rc_visard
* rc_hand_eye_calibration_client package added

rc_visard_description

No changes

rc_visard_driver
* added depth_acquisition_mode parameter
* added depth_acquisition_trigger service call
* Reduced latency for passing changes of dynamic parameters and topic discriptions to GenICam
* Fixed using wrong disparity range in disparity color publisher
* now depends on rc_genicam_api >= 2.0.0

depends on https://github.com/ros/rosdistro/pull/19338


feat: support sqlite-vec (#216)

support sqlite-vec, I basically referenced the code of sqlite-vss, except for using the format supported by sqlite-vec for table creation,  i'm not sure it absolutely right, but i have run in my own project.

Is there any update on this PR?

Tested the PR and looks good. You do need to update the vector dimension to 1536 for openai instead.

Merged. Thanks!


Issues after migrating markers from 1.x

After using the command /bsettings convertor oldBMarkers to convert my old marker sets from the old 1.x format to the new 2.x format, the following issues have occurred on those markers:

POI markers appear blank when clicked on. Fixed in 2.1.1.

Area markers are no longer visible. Fixed in 2.1.1.
I am unable to edit or delete markers.

(after "Build" was clicked on)

(after inputting the command above)

Here are two of the marker set files if you think they will be helpful in diagnosing the problem:
area.json
poi.json

So I noticed version 2.1.1 was uploaded to Modrinth and that fixed the first two issues. However, I still can't edit or delete markers, with the same error messages as before.

Thanks for the report!
The issue should be fixed, a release will be uploaded on Modrinth later today!

Please reopen this issue. I am still unable to delete markers even after upgrading to 2.1.2.

Fixed on Discord


Data Reliability

I'm creating a multi-server project like this, but for other purposes, and when I was analyzing the http requests from the plug-ins to the backend, I wondered what would tell me if those requests come from a plug-in or from who uses a postman on the internet trying to mess up my data. And after a lot of research, I surrendered to looking at other open source projects, so I looked at yours and realized that you don't do any of that...
i copied the json sent to the server, set it to a single random plugin and changed the data. shutted down the server, opened my postman and sent this json:
https://bStats.org/submitData/bukkit

{
    "serverUUID": "8c5c4bc6-1f94-460f-9c34-677e07629866",
    "playerAmount": 7395,
    "onlineMode": 1,
    "bukkitVersion": "git-Spigot-21fe707-e1ebe52 (MC: 1.8.8)",
    "bukkitName": "CraftBukkit",
    "javaVersion": "1.8.0_271",
    "osName": "Windows 10",
    "osArch": "amd64",
    "osVersion": "10.0",
    "coreCount": 6,
    "plugins": [
        {
            // EssCore is the random plugin
            "pluginName": "EssCore",
            "id": 2729,
            "pluginVersion": "1.1.0",
            "customCharts": []
        }
    ]
}

And as you can see here (https://prnt.sc/xddqlx) it worked.
I remembered several times that friends asked me if a developer was good and some showed me their bstats graphics with a supposed incongruity of the data looking like the print. I'm not saying that anyone has done this before, but it would be a good way to pass development reliability.
I don't understand authentication models very well or even if it is possible to detect a server or not, but I would try to find a way, as it would be very bad for a project of this level to have untrusted data.

or even if it is possible to detect a server or not

It's not possible to distinguish between a request coming from a server and one that's coming from any other source (e.g. Postman).
The only option to "fight" this problem is by filtering out unplausible data and ratelimit incoming requests. E.g. one can safely assume that a single Bukkit server does not have more than 200 players online simultaneously, so if a request contains over 200 players, you can either completely drop it or just set the player amount to 200 (even if the request sent more).
You can see bStats' implementation here:
https://github.com/Bastian/bstats-backend/blob/8561d50752f0d27307512f165bd0beaf532cc891/src/data-submission/data-processors/single-line-chart-data.processor.ts#L25-L33
Additionally, it's also necessary to ratelimit requests per IP. Otherwise an attacker could just send thousands of requests with 200 players each. However, because of Bungeecord networks, you must assume that there can be more than 1 legitimate request per ip.
Please note, that this only applies for public services like bStats. In a closed environment, you can ofc add some kind of secret/authentication to your requests.

or even if it is possible to detect a server or not

It's not possible to distinguish between a request coming from a server and one that's coming from any other source (e.g. Postman).
The only option to "fight" this problem is by filtering out unplausible data and ratelimit incoming requests. E.g. one can safely assume that a single Bukkit server does not have more than 200 players online simultaneously, so if a request contains over 200 players, you can either completely drop it or just set the player amount to 200 (even if the request sent more).
You can see bStats' implementation here:
https://github.com/Bastian/bstats-backend/blob/8561d50752f0d27307512f165bd0beaf532cc891/src/data-submission/data-processors/single-line-chart-data.processor.ts#L25-L33
Additionally, it's also necessary to ratelimit requests per IP. Otherwise an attacker could just send thousands of requests with 200 players each. However, because of Bungeecord networks, you must assume that there can be more than 1 legitimate request per ip.
Please note, that this only applies for public services like bStats.

I hope this answered the question. Feel free to respond to this issue if I should re-open it. :-)

I hope this answered the question. Feel free to respond to this issue if I should re-open it. :-)


Consider removing or loosening the same OS requirement

This has been brought up multiple times and gets in the way without clear benefits.
If there're benefits - we should document them clearly.
If there aren't any - we should drop the requirement given that:

manifest lists all available OS distribution requirements for a node
OS distribution is one of the officially supported

There maybe legitimate requirements to build the environment based on type of the workload which might include a specialized distribution or version.

https://github.com/gravitational/gravity/issues/1913 duplicate.


[9.0.2] Moving containers between areas removes content from within the container

When moving Containers between different Areas, the content within the Container is deleted/no longer visible when the page is saved or published.
If you then go back into Edit mode and move the Container back to the original Area and save or publish the page again, the content returns.
This is demonstrated in the Loom video here: https://www.loom.com/share/10605cba582c44c1b7cc077765f49ba7

This is fixed and will be released in 9.0.3. The resolution is the same as it is with layouts: we have disallowed the ability to move containers from parent area to another.


Feature freeze 1.5 PR

To merge & push this sometime before Tuesday (11/8) morning.
After that, only PRs with the v1.5 milestone set on them will be allowed in the queue.

This change is

lgtm

LGTM
Merging to enable 1.5 code freeze.


Outdated content

This page is outdated - it refers to the old 0.1.0 manifest format, which has been replaced with the 1.0.0 format in March 2021.

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

ID: d657479f-c0b7-6358-c7d0-0402215edaa5
Version Independent ID: 8976699b-cdba-5206-bdb0-8a0875acfe45
Content: Create your package manifest
Content Source: hub/package-manager/package/manifest.md
Product: dev-environment
Technology: package-manager
GitHub Login: @KevinLaMS
Microsoft Alias: kevinla

Thanks for the report.  This was fixed in May.


Add CRD recommendationRule

RecommendationRule defines how to select resource for recommendation. We want to simplify the usage for Analytics.
This is a sample yaml:
apiVersion: analysis.crane.io/v1alpha1
kind: RecommendationRule
metadata:
  name: workload
spec:
  runInterval: 1h                            # 每小时运行一次
  resourceSelectors:                    # 资源的信息
    - kind: Deployment
      apiVersion: apps/v1
  namespaceSelector:
     any: true                                  # 扫描所有namespace

How to describe a recommendation flow run only once?
runInterval: 0
How do I let the recommendation framework know what recommendation process I need to use
RecommendationRule defines which resources are needed for recommendation. RecommenderConfiguration defines which recommenders are enabled and will be trigger for recommendation process.
How to expand to non-GVK resources?
Give an example ?

How to describe a recommendation flow run only once?
runInterval: 0
How do I let the recommendation framework know what recommendation process I need to use
RecommendationRule defines which resources are needed for recommendation. RecommenderConfiguration defines which recommenders are enabled and will be trigger for recommendation process.
How to expand to non-GVK resources?
Give an example ?

Which trigger will be work, i think not all recommender.
CLB Service in https://github.com/gocrane/crane/pull/420.

How to describe a recommendation flow run only once?
runInterval: 0
How do I let the recommendation framework know what recommendation process I need to use
RecommendationRule defines which resources are needed for recommendation. RecommenderConfiguration defines which recommenders are enabled and will be trigger for recommendation process.
How to expand to non-GVK resources?
Give an example ?

Which trigger will be work, i think not all recommender.
CLB Service in Add types for recommenderConfiguration crane#420.

Use recommender's name to link to RecommenderConfiguration now. Pls take a look again.


Minecraft World Generator Settings not being honored

I am trying to enter custom world generation settings for a minecraft world. But something is going wrong. I have the world set to "FLAT" using the official server with 1.15.2 release. then I am populating the world generator setting with "minecraft:air;minecraft:the_void;decoration". but when the world is created it is just a standard superflat world with bedrock and dirt. which the generation I am setting is nothing but void and a square platform of stone. I have tested this in my own minecraft installation and copy/pasted this exact generation into a flat world and it works just fine.
using amp v<IP_ADDRESS>, built 11/02/2020 16:26

Can you do me a favor, change that setting, then log out and log back in. Do you still see the setting?
If so, can you see if the setting was placed in the server.properties?

yes after logout/login the setting is still populated in AMP. and here is what is in the server.properties file.
generator-settings=minecraft:air;minecraft:the_void;decoration

There's a bug in certain Minecraft server versions that makes them incorrectly change the value of the generator-settings field. AMP writes it out correctly, but for some reason the Minecraft server tries to escape certain characters, resulting in the unnecessary \ characters. There's nothing AMP can do about this, it's a bug in the Minecraft server itself. You can modify server.properties yourself and you'll get the same problem.

So your saying this is a problem specific to the server version? Cause on my client it seems to work just fine.

I'm not exactly sure what the circumstances are, but it's something I've seen a number of times. You can start the server outside of AMP with the desired values in, and when it starts up the MC server changes them of its own accord.

Understood, appreciate your help.


Python: dict & set #551

Description 📜
Python: dict & set #551

Type of change 📝

[ ] Au#dio (Should be in mp3 format Includes speech clarity, Concise ,Low distortion)
[ ] Vi#deo (Animations, screen-recordings, presentations and regular explanatory films are all possibilties etc)
[# ] Doc#umentation (Content Creation in the form of codes or tutorials)
[ ] Other (If you choose other, Please mention changes below)

Domain of Contribution 📊

[ ] Android Dev #(Flutter)
[ ] Android Dev #(Java)
[ ] Android Dev #(Kotlin)
[ ] Backend Dev #(Java)
[ ] Backend Dev #(.NET)
[ ] Backend Dev #(PHP)
[ ] Backend Dev #(Python)
[ ] C/#CPP
[ ] Competitive #Programming
[ ] Cyber #Security
[ ] DS#A
[ ] Data#base
[ ] Datascience with #Python
[ ] Datascience with #R
[ ] Frontend Dev #HTML/CSS/JS
[ ] Frontend Dev #React/Angular/Vue
[ ] Go#lang
[ ] Interview #Prep
[ ] Java_#Domain
[ ] JavaScript_#Domain
[ ] ME#RN
[ ] Machine #Learning
[ ] Open #Source
[# ] Python_#Domain
[ ] Ru#st
[ ] Statis#tics
[ ] UI/#UX

Checklist ✅

[x] I follow Contributing Guidelines & Code of conduct of this project.
[x] I have performed a self-review of my own code or work.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I'm GWOC'21 contributor

Screenshots / Gif (Optional) 📸

@ankurg132  plz check now
let me know is that ok or i need to change anything

You're using the .py extension, use .md instead for markdown.

i dont know about that can u plz explain @ankurg132

https://www.markdowntutorial.com/
https://guides.github.com/features/mastering-markdown/
@nayakaj Just have a look at these sites, hope they will help you

can u check once plz
@ankurg132

You are still code using the correct code syntax for markdown, you are using ''' instead of which you should use ` (backticks).

You can also see your preview and the code should look like this.

once check @ankurg132 @meinhoonharsh
im not getting that thick line


Reload syntax error robustness

An attempt to get the tests to run for https://github.com/GoogleCloudPlatform/functions-framework-python/pull/214
The upstream project requires contributor approval for all PR test runs.

Just closing some old PRs. Nothing to see here.


Adding reactor netty read and write timeout

Closes https://github.com/Azure/azure-sdk-for-java/issues/13696
Note : Updating Mockito version , and adding opt in mocking final class, check this
Todo - Will do perf regression testing

@simplynaveen20  @moderakh - I found out that this ReadTimeoutHandler and WriteTimeoutHandler will not work well for our case here - because they interfere with idle connections and will cause connections to close even when they are ready to be re-used by other requests.
Please see this issue for more detail: https://github.com/reactor/reactor-netty/issues/1159
I think we should wait for reactor-netty 0.9.11.RELEASE to properly support this as it will be introduced as a new API in their code.


Block the opening of the menu when a specific application is focused

The Motivation
When I play a game (in my case Minecraft), almost every now I click Ctrl + Space and a menu opens.
The Solution
I would like it to be possible to specify specific applications that would prevent the menu from being opened when focused.
The Alternatives
No idea.

Hi there! Thanks for the suggestion. I think that this will be solved by #153. However, I currently have not the time to implement this (but it is still planned :smile:).
For now, you could assign a shortcut for enabling / disabling the extension altogether. Just add two custom shortcuts in your system keyboard settings which execute gnome-extensions enable<EMAIL_ADDRESS>and gnome-extensions disable<EMAIL_ADDRESS>respectively.
With a bit of bash scripting you could also manage to create a script which toggles the extension and then bind this to a hotkey, I guess...


fix: [#4204] Fix remaining eslint warnings - Rest of botbuilder-dialogs libraries - botbuilder adaptive testing

Addresses 4204
#minor
Description
This PR fixes the ESLint and JSDoc issues in the botbuilder-dialogs-adaptive-testing library.
Specific Changes

Applied auto-fixes with yarn lint --fix

Fix spacing
Fix indentation
Add blank line in between comments
Fix quoting
Add trailing commas

Applied manual fixes for:

Missing documentation.
Unused parameters and imports
Disabling detect-non-literal-fs-filename rule to allow dynamic path for files
Disabling no-constant-condition rule to allow while (true) loop

Testing
Eslint and tests status

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

1 of 2 (50.0%)  changed or added relevant lines in 2 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage increased (+0.5%) to 84.483%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

libraries/botbuilder-dialogs-adaptive-testing/src/dialogInspector.ts
0
1
0.0%

Files with Coverage Reduction
New Missed Lines
%

libraries/botbuilder-lg/src/templateExtensions.ts
1
84.48%

Totals

Change from base Build<PHONE_NUMBER>:
0.5%

Covered Lines:
19902

Relevant Lines:
22310

💛  - Coveralls

/promoted 4237


SOCIAL_AUTH_NEW_USER_REDIRECT_URL not working

Attribute user.is_new is never set on social_auth/backends/init.py line 117 because of changes made for the pipeline the code
user.is_new = kwargs.get('is_new')
should be replaced by
user.is_new = out['is_new']
as is_new attribute is never set in kwargs since a couple commits ago.

Sent a pull request that deals with this.


api functions

add api functions from etherpad

+1 do you want to try working on tests in a separate PR ?


Added "Privacy Policy" page

Resolves issue #59
Description ->

Added "Privacy Policy" page
Made sure that the page is responsive for all screen sizes
Used professional format

Images ->

Resolves issue #59


Hotfix: Fix nulls order in traceable sort

Issue: https://github.com/Giveth/impact-graph/issues/206
I feel the sort by Id was fine but the nulls where in the wrong order. Inverted the nulls and now looks like this:
DESC:

ASC:

@RamRamez Let me know if this is fine in terms of the pictures.

@RamRamez Let me know if this is fine in terms of the pictures.

Yeah, great.


cmd/go: "go.mod has post-v0 module path ... at revision" with GOPROXY=direct, but not with proxy or Go 1.12

What version of Go are you using (go version)?

$ go version
go version devel +e831719 Fri Jul 12 17:31:29 2019 +0000 linux/amd64

Does this issue reproduce with the latest release?
No on 1.12.7, yes on tip.
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/jake/nobackup/gotip_home/cache/go-build"
GOENV="/home/jake/nobackup/gotip_home/config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/jake/nobackup/gotip_home/gopath"
GOPRIVATE=""
GOPROXY="direct"
GOROOT="/home/jake/sdk/gotip"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/jake/sdk/gotip/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/jake/toolsbug2/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build276222493=/tmp/go-build -gno-record-gcc-switches"

What did you do?

go.mod:
module toolsbug2

go 1.13

main.go:
package main

func main() {}

tools.go:
// +build tools

package tools

import (
	_ "github.com/maxbrunsfeld/counterfeiter/v6"
)

Set GOPROXY=direct and run go mod tidy.
What did you expect to see?
go.mod populated with github.com/maxbrunsfeld/counterfeiter/v6 at version v6.2.1.
What did you see instead?
go mod tidy does not modify go.mod. That's likely due to #27063, so I do go build instead and see:
go: finding github.com/maxbrunsfeld/counterfeiter latest
go: downloading github.com/maxbrunsfeld/counterfeiter v0.0.0-20190712002401-c570f95f2c71
build toolsbug2: cannot load github.com/maxbrunsfeld/counterfeiter/v6: go.mod has post-v0 module path "github.com/maxbrunsfeld/counterfeiter/v6" at revision c570f95f2c71

If GOPROXY is the default (https://proxy.golang.org,direct), or I use Go 1.12.7, there aren't any issues.
Note that this is a boiled down version of a real setup which uses the tools.go pattern, but it doesn't matter where the import is for this to happen.
EDIT: Forgot you can't import a main package without the +build tools to ignore the failure, so I moved this back to a tools.go version. This makes my message from go build not actually happen since the tag isn't set, but the message probably shows up in some other command that doesn't ignore errors.

Interestingly, go.sum gets populated with:
github.com/maxbrunsfeld/counterfeiter/v6 v6.2.1 h1:s0HwWQiNYF+YpoOncE8OxHVYG3YShNiRG8iuPDiSDWM=

The first time I tried to bisect this, I got an unrelated CL, but after repeating and removing my modcache every step, I got to CL 177958.

Thanks for the clear reproducer — and for bisecting the CL. Should be an easy fix, I expect: we're probably missing a “not found” error classification on the post-v0 error.
CC @jayconrod

(And, BTW, the “other command that doesn't ignore errors” that we usually use for testing is go list, which does reproduce the problem nicely.)

Yep, I knew go list would work, I just didn't go try because it gets annoying with the build tags and I already had the message... :slightly_smiling_face:
Your CL works for me, thanks.

Actually, scratch that, this is causing issues for dependencies I already have:
go get: upgrading<EMAIL_ADDRESS><EMAIL_ADDRESS>invalid version: +incompatible suffix not allowed: module contains a go.mod file, so semantic import versioning is required
go get: upgrading<EMAIL_ADDRESS><EMAIL_ADDRESS>invalid version: +incompatible suffix not allowed: module contains a go.mod file, so semantic import versioning is required

With a gotip get -d -t -u ./...; gotip mod tidy (where my gotip tree has the CL checked out).
I don't disagree that those imports are "bad" in that they are v2+ versions with +incompatible and also a go.mod, but I'm guessing that specific fix will break more people than without, at least in its current form.

One other (minor) hitch: it turns out that a couple of our test modules (namely, github.com/rsc/vgotest1, vcs-test.golang.org/hg/vgotest1.hg, and vcs-test.golang.org/git/querytest.git/v3) have module-path mismatches and/or ambiguous go.mod files at various points that render them unusable.

@zikaeroh, the validation for +incompatible suffixes is due to the fix for #32695. We know that it will expose a few broken/mistagged modules, but they can be worked around explicitly using a replace directive. See https://tip.golang.org/doc/go1.13#version-validation.

(See also cenkalti/backoff#76 and gotestyourself/gotest.tools#156.)

@bcmills 	I should I should further explain, then. This is what I observe with that CL merged:

Start with a clean modcache.
Run gotip mod tidy depending on gotest.tools, backoff, go-redis, etc, with the default GOPROXY (so https://proxy.golang.org,direct).

I end up with the "bad" revisions mentioned before, but everything builds fine.

Run gotip clean -modcache, then set GOPROXY=direct.
Run gotip get -d -t -u ./... && gotip mod tidy.

At step 4, things break, as the proxy has given me revisions which gotip tells me are wrong. My initial guess would be that #32805 would cut these from the proxy, but this all doesn't sit too well with me, where some server can give me something that will cause bad things to happen later on based on what happened in my dev environment...
I'm happy to open another issue to not broaden this one, as my original error case was fixed (but it almost feels like it just got moved somewhere else).

That's #31428.


Support for dirty tracking

Sorry, I created this on google code already.  It would be helpful to have dirty tracking on objects, so that an extra save to couch could be avoided; reducing wasted revision changes.

Dirty tracking is pretty complex to implement as it implies that you have to create proxies around all objects as they are loaded from the db. You risk running into all kinds of class loader trouble and what not.
Or is there a better way?

Yes, that is definitely a complex, and common, way of doing it.  The way I was thinking was that, before marshalling the json into an object, take that json and perform a hashsum on it, store the hash in a JsonIgnore variable on on CouchDbDocument.  Then, before performing a save do a new hashsum on the unmarshalled json.  Compare those two values, and chose whether or not to save.  If we do save then we can recalculate the hashsum with the new revision included.


[Broken] ERROR: local variable 'ytplayer_config' referenced before assignment

Checklist

[x] I'm reporting a broken site support
[x] I've verified that I'm running youtube-dlc version 2021.01.07-1
[x] I've checked that all provided URLs are alive and playable in a browser
[x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[x] I've searched the bugtracker for similar issues including closed ones

Verbose log
Y:\YouTube Channels\Misc>youtube-dl --match-filter "!is_live & !live" --cookies "Y:\cookies.txt" --add-metadata --write-description --write-info-json --write-thumbnail --download-archive "Y:\ytdl_archive.txt" --all-subs -ciw -o "%(title)s.%(ext)s" -v https://www.youtube.com/watch?v=_WTBkj8gFfI
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--match-filter', '!is_live & !live', '--cookies', 'Y:\\cookies.txt', '--add-metadata', '--write-description', '--write-info-json', '--write-thumbnail', '--download-archive', 'Y:\\ytdl_archive.txt', '--all-subs', '-ciw', '-o', '%(title)s.%(ext)s', '-v', 'https://www.youtube.com/watch?v=_WTBkj8gFfI']
[debug] Loading archive file 'Y:\\ytdl_archive.txt'
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dlc version 2021.01.07
[debug] Python version 3.9.0 (CPython) - Windows-10-10.0.19041-SP0
[debug] exe versions: ffmpeg 4.3.1-2020-11-19-full_build-www.gyan.dev, ffprobe 4.3.1-2020-11-19-full_build-www.gyan.dev
[debug] Proxy map: {}
[youtube] _WTBkj8gFfI: Downloading webpage
[youtube] _WTBkj8gFfI: Downloading embed webpage
[youtube] _WTBkj8gFfI: Refetching age-gated info webpage
[youtube] {18} signature length 104, html5 player 9f996d3e
[youtube] {22} signature length 108, html5 player 9f996d3e
[youtube] {137} signature length 108, html5 player 9f996d3e
[youtube] {248} signature length 104, html5 player 9f996d3e
[youtube] {136} signature length 108, html5 player 9f996d3e
[youtube] {247} signature length 108, html5 player 9f996d3e
[youtube] {135} signature length 104, html5 player 9f996d3e
[youtube] {244} signature length 108, html5 player 9f996d3e
[youtube] {134} signature length 108, html5 player 9f996d3e
[youtube] {243} signature length 104, html5 player 9f996d3e
[youtube] {133} signature length 108, html5 player 9f996d3e
[youtube] {242} signature length 104, html5 player 9f996d3e
[youtube] {160} signature length 108, html5 player 9f996d3e
[youtube] {278} signature length 108, html5 player 9f996d3e
[youtube] {140} signature length 108, html5 player 9f996d3e
[youtube] {249} signature length 108, html5 player 9f996d3e
[youtube] {250} signature length 108, html5 player 9f996d3e
[youtube] {251} signature length 108, html5 player 9f996d3e
ERROR: local variable 'ytplayer_config' referenced before assignment
Traceback (most recent call last):
  File "youtube_dlc\YoutubeDL.py", line 866, in wrapper
  File "youtube_dlc\YoutubeDL.py", line 887, in __extract_info
  File "youtube_dlc\extractor\common.py", line 533, in extract
  File "youtube_dlc\extractor\youtube.py", line 2375, in _real_extract
UnboundLocalError: local variable 'ytplayer_config' referenced before assignment

Description

This code path allows execution to continue without setting ytplayer_config: https://github.com/pukkandan/yt-dlc/blob/master/youtube_dlc/extractor/youtube.py#L1746-L1766

The issue was introduced by 29f7c58aafb25a094e267a8a3fb355e102e42792. I have pushed a patch to fix it

The issue was introduced by 29f7c58aafb25a094e267a8a3fb355e102e42792. I have pushed a patch to fix it

Thanks, that's what I was about to commit before I got distracted by "real work" 👍 😄

Thanks, that's what I was about to commit before I got distracted by "real work" 👍 😄


Testing views that render react components

When testing a view that calls render_react_component the spec throws the following error.
Failure/Error: render
ActionView::Template::Error:
called hypernova_batch_render without calling hypernova_batch_before. Check your around_filter for :hypernova_render_support

This is because view specs use ActionView::TestCase::TestController so the around_filter isn't being called. I suppose I could stub out render_react_component but this seems less than ideal. Is there a work around for this or does it need to be addressed in the gem itself?

I think stubbing that method is the right approach - generally rspec tests always have to stub their own filters.

@ljharb Yea I guess this is a reasonable solution. Thanks!


Report syntax error by Spyglass, in lc_ctrl_state_pkg.sv and lc_ctrl_pkg.sv

Hi,
Spyglass reported syntax error of "STX_VE_449", "STX_VE_453" in the above mentioned file.
 After some trials, it looks like that the problem is caused by the usage of :   "parameter int xxxx"

 With the above modification, error is gone.
 Pls help to check.

Best Regards
Derek Wang

STX_VE_449 is

The size of the enumeration constant is more than the range specified for the enumeration.

STX_VE_453 is

A size mismatch is found between enumeration value and enumeration range.

Maybe Spyglass doesn't know how to use thevbits function?

What version of Spyglass are you using? I'm not seeing this issue.

Spyglass R-2020.12-SP2-3
Reported when run cdc/cdc_setup_check

I see it now. Yes, that is a bug in that version of Spyglass. It works with the latest version, and probably lots of other versions in between.

Interestingly
parameter int TokenIdxWidth = caliptra_prim_util_pkg::vbits(NumTokens);

does appear to work with that version of Spyglass and I prefer explicit references to package contents anyways, so that might be a solution that makes Spyglass R-2020.12-SP2-3 and I happy. Will leave it up to @calebofearth and @Nitsirks.

Interestingly
parameter int TokenIdxWidth = caliptra_prim_util_pkg::vbits(NumTokens);

does appear to work with that version of Spyglass and I prefer explicit references to package contents anyways, so that might be a solution that makes Spyglass R-2020.12-SP2-3 and I happy. Will leave it up to @calebofearth and @Nitsirks.

Thanks. Please include the fix in the next RTL update.

Please include the fix

To be clear, this doesn't "fix" anything as this is a bug in a specific version(s) of an EDA tool. For synthesis and other flows the RTL is fine as is, and the Spyglass bug was fixed in a subsequent release. So do not expect a change to the RTL for just this issue.

@DerekWangScaleflux please try updating your spyglass version. RTL is frozen, and updates will not be regularly occurring.


OffsetX prop does not work correctly

In my case, I need to put three buttons at the bottom of the screen and make them centred, but I found that the offsetX is not working since the position of items is totally wrong. Also, I cannot make the ActionButton appear at the left side, while using the offsetX. Besides, I have tried to use a View wrapping the ActionButton and set it to be the absoluted position or some MarginRight. The ActionButton now can be displayed on the left side but the position of items are still shifted to the left.

I experienced a similar issue except my items were appearing to the right. This wasn't the case before upgrading to the latest version. So what I did was go into the node_modules folder and replace  const translateXMap with what it was previously const translateXMap = {       center: 0,       left: (this.props.parentSize - this.props.size) / 2 - 8,       right: -(this.props.parentSize - this.props.size) / 2 + 8,     } ... then reset the cache. Not sure if this will help you but it worked for me

I am having the same issue here. I would also like to add that it also occurs on screen rotation, when changing my View's height.
@amejia49 does not work in this particular use case.

which RN version are u using? I think I fixed it for v0.41. in v0.40 it's definitely broken

0.41.2 here.

damn it. on iOS?

Nope, on Android. Both on 6.0 and 4.4.

I'm having the same problem on 0.41.2


Add Capabilities to the MSIX

Describe the bug
We need to add capabilities to the MSIX
Expected behavior
Add a selection of them to the manifest.
https://docs.microsoft.com/en-us/windows/msix/packaging-tool/package-editor
https://docs.microsoft.com/en-us/uwp/schemas/appxpackage/uapmanifestschema/element-capability

Capabilities have been updated to include what the app actually needs, which is just internet access


less-than dataizes twice

@Graur please take a look at this case
[] > less-than
  assert-that > @
    seq
      QQ.io.stdout "SEQ STARTING\n"
      100
    $.less-than 300

This code works this way
[INFO] Running EOorg.EOeolang.EOthreads.EOless_thanTest
SEQ STARTING
SEQ STARTING
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.012 s - in EOorg.EOeolang.EOthreads.EOless_thanTest

I don't guess it must work this way.

@levBagryansky Indeed, this is a bug

@includealex take care of this, please

@Graur sure.

@Graur @levBagryansky  I think that problem is not in less_than but in lt or seq. This program
+alias org.eolang.io.stdout
+package sandbox

[x] > foo
  lt. > @
    x
    4

[] > app
  seq > @
    seq > x
      stdout "SEQ STARTING\n"
      1000
    foo x

gives such an output:
SEQ STARTING
SEQ STARTING
SEQ STARTING
Exception in thread "main" java.lang.IllegalStateException: Runtime dataization failure
        at org.eolang.Main.run(Main.java:191)
        at org.eolang.Main.main(Main.java:98)

If we make a simple modification of this program (just change lt. with gt.), program will look like:
+alias org.eolang.io.stdout
+package sandbox

[x] > foo
  gt. > @
    x
    4

[] > app
  seq > @
    seq > x
      stdout "SEQ STARTING\n"
      1000
    foo x

In this case an output will be:
SEQ STARTING
SEQ STARTING

@includealex @levBagryansky  Thanks!
So, who can create a new issue in EO repository?

@yegor256 can you transfer the issue  to eo?


Can't delete a project

There is no obvius way to delete a project

Hi:
Yes, this a bummer.
However I've found a way to fix it. You can delete it this way:

Go to C:\Users\[yourusername]\Roaming\MdCharm
Open session.xml
Delete the contents of the dirpath attribute in the Projectnode of this XML file.

You're done.
If you want to delete all trace of the folder, do this:

Again, go to C:\Users\[yourusername]\Roaming\MdCharm
Open MdCharm.ini
Locate the section [MdCharmState]
Delete the contents of the key LastOpenDir
Locate the section [LastState]
Delete the contents of the key MdCharmForm_OpenDirectory

You're done!
HTH

Thanx for that advice!!! :-)


Small Editor fixes

Some smaller fixes to the editor and clause behavior.

This can be merged when reviewed and conflicts are resolved


I272 | Visit search

Change Summary
Revert to client side filtering of visits.
Note that while the default view is still paginated, searching for a visit will create a new query that fetches all visits. The most significant change is to the useVisits API, it now takes a boolean isSearch that sets whether the query is paginated or not.
Change Form

[X] The pull request title has an issue number
[X] The change works by "Smoke testing" or quick testing
[ ] The change has tests
[ ] The change has documentation

@skyheat conflict has been resolved


Differentiate between key and value part of maps item path

Currently error path points to a "value" part of key value path Root.Group.At(i).Modules.At(j).Settings.Dot("scheduling"). Split this path on two:
...Settings.Key("scheduling")
...Settings.Dot("scheduling")

Example of problem:
  settings:
    scheduling:
      maintenanceInterval: "PERIODIC"

Error:
Error: a setting was added that is not found in the module
200:         maintenanceInterval: "PERIODIC"

After fix:
Error: a setting was added that is not found in the module
199:       scheduling:

Back to drawing board. we can do better.


Attributes should be applied to all custom field templates

As of now, the default input does not include attributes in the base input tag.
However it is applied in select and select2 templates.

fixed in commit 4c352e56ec2f6543139eca8d29f6d8a54c87a966


Langpack source file update for August

This PR adds the latest changes for the langpack source files (As checked in on Friday), to be pushed in at the end of today.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.01%) to 41.679%

Totals

Change from base Build<PHONE_NUMBER>:
0.01%

Covered Lines:
27860

Relevant Lines:
62284

💛  - Coveralls


versionCode is not increased

While your latest release is tagged v1.1.0, your build.gradle still has versionCode:1 and versionName: "1.0". Could you please adjust that for future releases? For some background:

versionCode: what Android uses to tell versions apart. Two APKs with the same versionCode are considered being the same. No update notification/offer will be made. So today's update reached my repo, but existing users won't notice :scream:
versionName: what the user gets to see. If that stays the same, users can never tell which version they're running. Not only bad for their updates, but also for their issue filings :wink:

Thanks in advance for taking care!

Hello @IzzySoft Thank you for the issue, i totally forgot to change it  😥
i'll try to release soon with the update, take care dude

Thanks! Then it'll solve itself with the update. And if you remember in the future, the issue won't arise again :stuck_out_tongue_winking_eye:

hahah I'll sure do

MayI remind you to do it "really sure? Your latest release (from August 25)  still confusing my updater, as it still identifies with a version not matching the tag name: tag = v1.1.0, app = v1.0 and versionCode: 1. I'll hence now have to disable update checks. Please give me a ping when a fixed release is available. Thanks!

Well, I doubt it will ever be done. Updates are disabled for your app in my repo until solved. Please give me a ping then so I can check and re-enable them, @MathRoda

@IzzySoft #49

Thanks! Will the next release have a signed APK attached again then? v2.0.0 only has an app-release-unsigned.apk. Then I may hopefully re-enable updates for my repo.


check outputs with original nori

다른 문장들 확인해보기
bazel run //nori/cli:visualize_graphviz -- \
  -input "The word "nori" first appeared in an English-language publication in C. P. Thunberg's Trav., published in 1796.[9] It was used in conjugation as \"Awa nori\", probably referring to what is now called aonori.[9]" \
  -output `pwd`/nori.dot


v0.4.3 fails to build with nightly 2015-08-28

/home/cody/.multirust/toolchains/nightly/cargo/registry/src/github.com-0a35038f75765ae4/aster-0.4.3/src/mac.rs:99:13: 99:17 error: structure `syntax::codemap::NameAndSpan` has no field named `name`
/home/cody/.multirust/toolchains/nightly/cargo/registry/src/github.com-0a35038f75765ae4/aster-0.4.3/src/mac.rs:99             name: "test".to_string(),
                                                                                ^~~~
/home/cody/.multirust/toolchains/nightly/cargo/registry/src/github.com-0a35038f75765ae4/aster-0.4.3/src/mac.rs:100:21: 100:44 error: mismatched types:
 expected `syntax::codemap::ExpnFormat`,
    found `fn(syntax::ast::Name) -> syntax::codemap::ExpnFormat {syntax::codemap::ExpnFormat::MacroAttribute}`
(expected enum `syntax::codemap::ExpnFormat`,
    found fn item) [E0308]
/home/cody/.multirust/toolchains/nightly/cargo/registry/src/github.com-0a35038f75765ae4/aster-0.4.3/src/mac.rs:100             format: codemap::MacroAttribute,
                                                                                ^~~~~~~~~~~~~~~~~~~~~~~
/home/cody/.multirust/toolchains/nightly/cargo/registry/src/github.com-0a35038f75765ae4/aster-0.4.3/src/mac.rs:100:21: 100:44 help: run `rustc --explain E0308` to see a detailed explanation
error: aborting due to 2 previous errors
Could not compile `aster`.

I am seeing this too.

I am seeing this as well
https://travis-ci.org/servo/rust-layers/jobs/77776781

Aster needs to be updated for https://github.com/rust-lang/rust/pull/28033. I submitted https://github.com/serde-rs/aster/pull/28

@erickt did 9b64863d07910a7bc9f9fb40c29d26eac80cfd9f fix this?

@frewsxcv: Yes it should be fixed in 0.4.4.


add session_token for temp s3 access

This is completely untested, but will try and do a build tonight/tomorrow. Take a look @wuputah

looks right to me.

unfortunately, does not seem to work. Get a bad request error. How can I turn on debugging to see the exact http call being made?

Looks like that fixed it. Thank you @rafaelbey


How to save to file and restore from file labeledDescriptors?

For nodejs, after generating labeledDescriptors from training photos, how can I save it to file and restore from file on next execution so not to have to re-generate the descriptors from training photos?

there are tons of way of doing this, but here's one:
once you have labeledDescriptors

invoke it's const json = labeledDescriptors.toJSON() method to get simple object
convert object to string by using const text = JSON.stringify(json)
write text to file using `fs.writeFileSync('mydata.json', text);

and when you want to use it later, just do the opposite:

load from file fs.readFileSync
convert text to object JSON.parse
load back into labeledDescriptors using fromJSON method

i'll close the this issue as it's not really an issue, but you can keep the conversation going.

Thanks. Didn't know labeledDescriptors has toJSON and fromJSON methods.

@vladmandic can you explain further how to loadback into labeledDescriptors using fromJSON method

Just for others coming here later on:
In the latest face-api API you need to call toJSON() and fromJSON() function on faceapi.FaceMatcher class.
Like so,
  // train the model on a set of faces & save to json file (uncomment when needed)
  const labeledFaceDescriptors = await loadLabeledImages();
  const faceMatcher = new faceapi.FaceMatcher(labeledFaceDescriptors)
  const jsonFM = faceMatcher.toJSON();
  const stringFM = JSON.stringify(jsonFM);
  fs.writeFileSync('trainedfacematcher.json',stringFM);

  // load pretrained face model
  const faceMatcherString = fs.readFileSync('trainedfacematcher.json');
  const faceMatcherJSON = JSON.parse(faceMatcherString);
  const faceMatcher2 = faceapi.FaceMatcher.fromJSON(faceMatcherJSON)


[core] can not input chinese on linux

on ubuntu 18.04, use fcitx class IME, raylib with both internal and external glfw,(external glfw 3.3.2),
raylib can not get chinese input from in callback of glfwSetCharCallback.
My another program use the same external libglfw, on the same computer, it can receive chinese input.

@wtjcn Are you using latest raylib from GitHub master branch? That was reviewed a while ago.
Also, please, could you share some code sample and screenshot showing the issue?

It maybe glfw's fault, I see the problem in simplest glfw program. please close this.


Workspace - Name RHP stays open while not found view is loading

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 1.4.63-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by:
Slack conversation:
Issue found when executing PR https://github.com/Expensify/App/pull/36409
Action Performed:

Navigate to staging.new.expensify.com
Create a workspace
Go to workspace settings > Profile > Name
While the RHP is open click on URL and change the workspace ID to something invalid
Navigate to it (e.g https://staging.new.expensify.com/settings/workspaces/<invalid
ID>/profile)

Expected Result:
The profile name RHP should close while not found view is loading
Actual Result:
The profile name RHP first closes and then re appears while the not found view is loading
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android: Native
[x] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence

https://github.com/Expensify/App/assets/78819774/4f27c10f-e630-4dad-94d3-3a02b07739e1
View all open jobs on GitHub

@abekkala  FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

Proposal
Please re-state the problem that we are trying to solve in this issue.
Name RHP stays open while not found view is loading
What is the root cause of that problem?
After testing, it appears that this error is not limited to the profile page; it also occurs on the description page. There is currently no logic implemented to handle the not-found page scenario.
https://github.com/Expensify/App/blob/68e69623a8bca0dce5f384fa351d5cbb2214aeb4/src/pages/workspace/WorkspaceProfileDescriptionPage.tsx#L70-L78
What changes do you think we should make in order to solve the problem?

We can implement it similarly to how we're handling the currency selector in the workspace.
https://github.com/Expensify/App/blob/68e69623a8bca0dce5f384fa351d5cbb2214aeb4/src/pages/workspace/WorkspaceProfileCurrencyPage.tsx#L78-L83
We can do something like this
 <FullPageNotFoundView
onBackButtonPress={PolicyUtils.goBackFromInvalidPolicy}
  onLinkPress={PolicyUtils.goBackFromInvalidPolicy}
  shouldShow={(isEmptyObject(policy))|| !PolicyUtils.isPolicyAdmin(policy) || PolicyUtils.isPendingDeletePolicy(policy)}
 subtitleKey={isEmptyObject(policy) ? undefined : 'workspace.common.notAuthorized'}
            >

What alternative solutions did you explore? (Optional)
We need to test other areas to see if the bug occurs elsewhere as well.

@Pujan92 we have received a proposal for this one

Proposal
Please re-state the problem that we are trying to solve in this issue.
The profile name RHP first closes and then re appears while the not found view is loading
What is the root cause of that problem?
We don't have any logic to guard the WorkspaceNamePage here against unauthorized access.
What changes do you think we should make in order to solve the problem?

This is a common use cases for which a dedicated wrapper AdminPolicyAccessOrNotFoundWrapper has been built. It was used everywhere in the same RHP cases like WorkspaceTagsSettingsPage, WorkspaceCreateTaxPage, ...
Not only does it handle showing the correct NotFound based on user's access, but it also has correct goBack logic when we click on back button here (if the workspace is accessible, go back to the workspace profile page, otherwise go to workspace list page). Which will not be available if we use a duplicated FullPageNotFoundView ourselves.
We should use AdminPolicyAccessOrNotFoundWrapper it in WorkspaceNamePage and other pages that are missing it. If we need to customize the subtitle, ... we can pass custom param to AdminPolicyAccessOrNotFoundComponent and in AdminPolicyAccessOrNotFoundComponent pass it to the underlying not found page.
What alternative solutions did you explore? (Optional)
NA

Thanks for the proposals.
Indeed, AdminPolicyAccessOrNotFoundWrapper is the wrapper created specifically for this purpose. Using AdminPolicyAccessOrNotFoundWrapper and customizing it for the subtitle and other required fields(if any) makes more sense to me. Considering that, I am inclined to select @nkdengineer 's proposal over @Nodebrute's proposal.
For all workspace pages add AdminPolicyAccessOrNotFoundWrapper where it is missing and replace FullPageNotFoundView with AdminPolicyAccessOrNotFoundWrapper to make it consistent across all workspace related pages.
🎀👀🎀 C+ reviewed

I'll raise PR soon

PAYMENT SUMMARY FOR MAY 06
Fix: @nkdengineer [$250] requires payment automatic offer
PR Review:@Pujan92 [$250] requires payment automatic offer Please complete checklist

friendly bump @Pujan92

I think a checklist is not needed here as none of the specific PR caused this.

Regression Test Steps

Goto your workspace -> Profile
Click on the name which opens the RHP for editing the name
In the URL modify the workspace id with any invalid one and hit enter
Verify that not found view is displayed

@Pujan92 please accept the offer in Upwork and I can process payment - thanks!

@Pujan92 payment sent and contract ended - thank you!


Features: go first page, go last page

Hi,
I'm using custom template and i need to show two links, "go to first page" and "go to last page".
The component already has this feature? How can i do that?
thks,
NS

Hi,
Yes, there is actually an undocumented API method, getLastPage() which you can use:

go to first page

go to last page

I will update the docs to include this method.


Explore wallet_watchAsset support

Problem
Currently tokens have to be added manually in the case of a non Hedera ecosystem wallet
Solution
Explore the use of wallet_watchAsset()
Solution may be in the form of

documentation e.g. https://docs.metamask.io/guide/registering-your-token.html#example
example code to be used by websites to load any HTS token

Alternatives
No response

Hashscan has this feature when viewing a token under an account it can be added.
Maybe documentation can just point to this for a given token

Covered by mirror node explorer


ad-java-new-frameworks

@tamilmaran-7 Please re-raise the PR after making the following changes.

Policies must be enforceable
Add  related message  in the policy
You can split different policies and make 2 or three policies from one policy. For example, If a policy contains file and process types. then you can split it into 2 policies. One contains only file rules. Others contain only process rules. This way you can add more suitable tags and correct messages.


Ability to unlink the published XML file from Registry.

This issue is related to https://github.com/younginnovations/aidstream-new/issues/5
When the XML files are published and linked to the registry, these files get listed in the IATI Registry. AidStream also lists the published XML files. However when the publishing type is changed from segmentation to unsegmented and vice versa, there will be duplication of activities as new XML files get created. These files should be unlinked from the IATI Registry and there should also be ab option to delete files from AidStream (see https://github.com/younginnovations/aidstream-new/issues/7)
Scenario:
When the publishing type = Unsegemented, there will be only one xml file publisher_id-activities.xml. When the publishing type is changed to Segmented, now there will be couple of files as per these rules. When the API is called to link these newly created files to Registry, the previously linked file (i.e publisher_id-activities.xml) should be unlinked from registry. The user should now have option to delete that file from AidStream, as these activities are already present in the segmented XML files.
https://docs.google.com/document/d/1vB1e4PKw_vOJq6Vhsb_uwRenCHf4_CQPKLt2vMAQEf4/edit#heading=h.tynk2bte4osj doesn't cover the delete API. Need info on that.

This feature has already been implemented into AidStream.


BSC slow/stopped indexing

bug
There seem to be a problem with hosted subgraph indexing on BSC. For some reason our indexing is over 2 hrs behind and for the last 1hr we've been seeing "no chain head update for 30 seconds, polling for update, component: BlockStream"
Any idea what's going on? bscscan seem to be seeing the latest blocks.
Our subgraph: https://thegraph.com/hosted-service/subgraph/kryptomondao/kryptomon

Hi @chrisciszak - https://github.com/graphprotocol/graph-node/issues/3018 is an optimisation which will improve the situation you describe

This problem still seems to occur frequently at the moment.

I met  the same  problem

Hi @azf20 the same issue stands for all of hosted-service bsc subgraphs.
Delay may be up to 700 blocks
With the same bug as described above:
no chain head update for 30 seconds, polling for update, component: BlockStream

Hi @azf20
I am having the same issue in the rinkeby hosted-service subgraphs.
Can you please help me?

I am also facing with this problem currently with bsc.

I am facing the same issue. Please assist.

seem to be resolve when upgrade to graphnode:v0.30.0

I'm facing the same problem on fantom testnet. Subgraph stopped indexing last night. Could you please clarify, what exactly resolves the issue?

Update: it started indexing again on its own.


Merge branch 'master' into Lars

Conflicts:
.gitignore

you may leave comments to my code, i just had to fix the project


Support for train data augmentation

Added data augmentation to classification dataset creation. Only the train set is augmented at db creation with new images obtained by a combination of the following transformations :

Rotation
Translation
Contrast modulation
Hue modulation

There are a few parameters for each transformation, including the probability for each image of being augmented.

For now, only added tests to tools/create_db, but will add a few more regarding task creation and utils/image. Edit: done.
Translating is quite slow, so I should check if the way I do it can be improved.

Wow this is awesome, great work! My little smoketests all look good so far, I'll try to dig into the code some more today and see if I have any feedback for you.
Now is when I really wish we had #21 so I could see this stuff in action ...

Really great stuff. I've mentioned a few nitpicks above (and the licensing thing - hopefully you can find a good solution for that). Otherwise, this LGTM!
@jmancewicz, any thoughts?

Wow, the SO license is a good point I should have checked ! I replaced those functions with matplotlib ones. It seems they are already implemented in Pillow (see https://github.com/python-pillow/Pillow/pull/816) but I couldn't figure out for sure.
I also ignored hue modulation in the grayscale case since it does not make sense (we should do something better, like disabling the checkbox in the "new dataset" view).
I think I have corrected all the things you've mentioned. Tell me if you see something else.

@groar, Awesome, thanks for the changes! Can you squash this down and remove the extra commits?
@gheinrich, @jmancewicz - I'd feel better if one of y'all took a look at this too before merging. I don't have time to test this exhaustively, but it looks pretty good to me.

I have a question about the terminology here: in my understanding 'data augmentation' is a method to artificially create many unseen training examples by performing transformations on existing samples from the dataset. Am I understanding correctly that this PR does not actually increase the number of training samples? In this case is it technically correct to call this 'data augmentation'? I am asking candidly as I am not sure my understanding of the term is correct.
Either way, would it be useful to add an option to let the user specify a measure of how many images may be generated out of each training sample in the original dataset?

Would it be useful to add an option to let the user specify a measure of how many images may be  generated out of each training sample in the original dataset? (as opposed to just the probability that each transformation is applied)

@gheinrich Yes this is indeed important. We should have both a given probability and the possibility of getting several images out of an original training sample for a given transformation.
Can you add a TODO list to the original post (like #209, #226, #268) so we can see the progress?

First off, this is awesome... but I have a few initial thoughts
A little thing, just about the code.  Can you try to not leave trailing whitespaces.  Future changes, to whitespace can cause merge and ownership issues. It's a good practice to strip them before commit.
I think it makes sense to move the transformation matrix operations together.  I suggest moving 'Perform translation on images' beneath 'Perform rotations on images'.  Also, and this is being picky, but translation is singular and rotations is plural.  Actually, I'd skip changing that and make the phrases more succinct.  Perhaps...

or

That might be too vague, but I doubt it. The tooltips make everything clear.
Generally, field labels are capitalized [Image size] (some are title style [Resize Transformation], and maybe should be changed), but with the exception of the 'dx' and 'dy', I recommend capitalization of these labels.
I'm conflicted about the unit of dx and dy.  I'm fine with it being in normalized image units, but wonder if % would make it clearer what's going to happen to the images.
I'll dig into the code now.

Would it be better to not use clamp to edge wrap mode?  Is it better to use a solid color?

Also, the hue modulation does not appear to be modulation.  It looks like it's setting the hue to a constant for each new image.  That might be fine, but I expected it to rotate the hue.
by changing the code from
hsv[:,:, 0] = angle / 360.0

to
hsv[:,:, 0] += angle / 360.0
hsv[:,:, 0] %= 1
or if you wanted to extend the range from [0,360] to [-360,360], then
hsv[:,:, 0] += angle / 360.0 + 1.0
hsv[:,:, 0] %= 1
should do.  That's all assuming that you meant to shift the hue.  If the intent was to set the hue, then maybe we shouldn't call it modulation.  I'm not familiar with how hue affects training.  It almost seems like a rgb mult would do better for simulating varying lighting conditions.

Yes, the translation is very slow.  I wonder if it is from the clamp to edge wrap mode.  I expect this could be made much faster using OpenGL.

@jmancewicz

you're right about the hue, it should be a shift, not just setting it. It's not completely clear though what transformations work best in general as it heavily depends on the task (I don't know of any comprehensive study on data jittering, even on specific tasks. If you know any let me know I'm interested !). I personally had significant improvements on classification and regression tasks by modulating the hue, as well as by tinting images (by simply setting the hue).

In fact, I think it would be even better to perform general HSV modulation (so it can be used to produce several useful transformations, see for example: http://papers.nips.cc/paper/5548-discriminative-unsupervised-feature-learning-with-convolutional-neural-networks.pdf).

Concerning the translation, you're right, it should be random noise or solid color.
I also agree with changing the labels. I'm not sure about the unit of dx and dy though.

@lukeyeager yes that's a good idea, I'll do that.

Closing as abandoned.


Fix #233

cc @cdsousa

Strange, if I checkout that branch and run the tests, that new test will also pass for me.
However, running this simple script in REPL fails:

using Clang
using Clang.Generators

header_content = """
struct Meow {
    int blah;
    union {
        float either1;
        int either2;
    };
    float moo;
};
"""

header_path = tempname()*".h"
write(header_path, header_content)

ctx = create_context(header_path, get_default_args())
build!(ctx)

Wow! If I do  header_path = "unnamed.h" then it works 😲
Actually, it works if, and only if, the filename starts with "unnamed"... What the heck!

Alright, it seems it works only if the "unnamed" is present in the filename of in the names of the parent types.
Probably that's related to https://github.com/JuliaInterop/Clang.jl/blob/master/src/generator/Generators.jl#L39
Is that by design?

Note that (as I edited in https://github.com/JuliaInterop/Clang.jl/pull/384#issuecomment-1225915158) it suffices for the filename to include the string "unammed" somewhere (or that be present on any name of the type hierarchy).
So it is expected that "test_unnamed.h" also passes the test.

Alright, it seems it works only if the "unnamed" is present in the filename or in the names of the parent types. Probably that's related to https://github.com/JuliaInterop/Clang.jl/blob/master/src/generator/Generators.jl#L39 Is that by design?

This is just a workaround for detecting anonymous record types. This is a limitation of libclang. I guess the ultimate solution is to rework the generator on top of ClangCompiler.jl.

Thank you! Thanks for all your work!


x/crypto/acme: Set a meaningful user-agent

The x/crypto/acme package does not provide a User-Agent, defaulting to "Go-http-client/1.1". This makes it hard to distinguish between requests from x/crypto/acme and other Go implementations. The ACME spec recommends setting a meaningful User-Agent string, including the library version.
Ideally this would look something like:
User-Agent: Go-acme/1.2.3
However, since packages under x aren't explicitly versioned as far as I know, this could be tricky. Perhaps the maintainer could choose a starting version to be stored in a package-level variable, and bumped on major changes? My goal is for ACME server maintainers to be able to look at access logs for misbehaving clients and determine which library produced those requests, in order to contact the maintainers and request a fix. Additionally, it would be nice to be able to tell roughly which version of the library produced the requests, so the server maintainer can tell whether the requests are caused by a known issue or a new one.

Ideally there would also be a mechanism for downstream libraries to tack on their own name and version. For instance, https://github.com/jetstack/kube-lego uses x/crypto/acme, and it would be useful to distinguish its requests from those of other users of x/crypto/acme. So, for instance, acme.Client could have a UserAgent string field that could be either left blank (resulting in Go-acme/1.2.3) or filled in with "fooclient/0.1.2" (resulting in fooclient/0.1.2 Go-acme/1.2.3).

Hi, friendly ping on this? Thanks!


Could I use a parameter or table formatted as a GeoJSON string for the reference layer?

Rather than a local file for a reference layer, could I use a parameter or table formatted as a GeoJSON string?  I do see the ToJSON function.

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

ID: 529c593c-532a-57bb-6173-ae0980372c3b
Version Independent ID: 20d92be9-e3f3-0226-dd30-535e13d7f33d
Content: Add a reference layer to Azure Maps Power BI visual - Microsoft Azure Maps
Content Source: articles/azure-maps/power-bi-visual-add-reference-layer.md
Service: azure-maps
GitHub Login: @deniseatmicrosoft
Microsoft Alias: limingchen

@MikePickus
Thanks for your feedback! We will investigate and update as appropriate.

@MikePickus We are assigning this case to our Product team for further investigation.
Hi @rbrundritt, appreciate your feedback on this ask.

Power BI visuals are limited to connecting to a single data source at a time. With maps it is often desirable to have two or more data layers displayed which means that due to this Power BI limitation, we have to bring additional data in another way. The reference layer functionality only works with local files that you upload into the visual. There is no option to connect to a table or live service for this functionality at this time. This is a scenario I discussed at length with the Power BI team but unfortunately, in order to properly support it, a major rearchitecting of Power BI would be needed, and thus not something that will done any time soon.
In the case of reference layer, the data becomes static and requires a manual update if you want to change it in the future. If you have a second data set you want to add to the map that is regularly updated there are two approaches.
The first approach only works if your data is point data. What you can do is join your two data sets together and use one of the columns to categorize the data. This approach is the easiest option, and something I've seen done many times by others.
The second approach is to create a tile service that converts your data into map tiles and exposes it as a simple service. You can then add it as a tile layer to the map. These will be rendered as an image and not interactive, and styling would be done on the server side when creating the map tiles. So this would be limiting in that regard, but would allow for you to connect to a data set that is regularly changing. Just make sure to set the cache expiry header on the tile responses so that the map will load new data in the future. There are lots of way to create custom tile servers. They require more work upfront, but allow you to display nearly an unlimited amount of data on the map (billions of data rows if needed). If you have fairly simple style requirements and don't mind doing some coding, you can create one from scratch using nothing more complex than an Azure function or simple App service (Tip: If you use Azure Postgres with PostGIS, there is a raster tile output option). If you have more complex requirements and prefer libraries/containers, there are a few good options out there. Here are a few options:

Geoserver is a popular open source solution. There are several variations of this available in the Azure Marketplace already or you can deploy your own docker container: https://docs.geoserver.org/latest/en/user/installation/docker.html
MapServer is another popular open source solution.  There is also a docker container you can deploy: https://hub.docker.com/r/mapserver/mapserver/#!

@LeelaRajesh-Sayana I've added a response, but note that I am not on the Azure Maps or Power BI team. I was the original PM for this visual many years ago but moved on to another team and handed this off a few years ago. There has been several others who have added to these docs since I moved on.

Thank you so much @rbrundritt  for taking time and providing your feedback on this.
Hello @MikePickus, hope you got some insights on this issue from Ricky's response. Since this does not involve a document modification, we will proceed with closing the issue. If you have any further questions or need additional inputs on implementation, please open a question on Microsoft Q&A forum and the community members would be able to assist you.
Best regards,
Leela.


Unnecessary file on angular template

In .NET Core 2.2 preview1 the default angular template comes with a counter.component.spec.ts file witch is useless

This spec file is not useless, it provides tests (run by ng test from within ClientApp). It follows what's generated by the CLI and the guidance from the Angular docs. In fact, to reflect what's generated by the Angular CLI when you do ng generate component <componentName> we should add .spec.ts files on the other components too. Our guiding star on the SPA templates is to follow the accepted standards of the individual frameworks, so this one is "as intended".