Simulating typing between 2 break tags of a content editable , simulates after the next br tag

Hi @dwachss ,
I recently encountered an issue with br tag
Issue was due to
The handling of
                   // special case: if we end next to a
, include that node.
The following condition creates an issue when the typing is being performed between 2 br tags
function w3cmoveBoundary (rng, n, bStart, el){
	// move the boundary (bStart == true ? start : end) n characters forward, up to the end of element el. Forward only!
	// if the start is moved after the end, then an exception is raised
	if (n <= 0) return;
	var node = rng[bStart ? 'startContainer' : 'endContainer'];
	if (node.nodeType == 3){
	  // we may be starting somewhere into the text
	  n += rng[bStart ? 'startOffset' : 'endOffset'];
	}
	while (node){
		if (node.nodeType == 3){
			var length = node.nodeValue.length;
			if (n <= length){
				rng[bStart ? 'setStart' : 'setEnd'](node, n);
				// special case: if we end next to a
, include that node.
				if (n == length){
					// skip past zero-length text nodes
					for (var next = nextnode (node, el); next && next.nodeType==3 && next.nodeValue.length == 0; next = nextnode(next, el)){
						rng[bStart ? 'setStartAfter' : 'setEndAfter'](next);
					}
					if (next && next.nodeType == 1 && next.nodeName == "BR") rng[bStart ? 'setStartAfter' : 'setEndAfter'](next);
				}
				return;
			}else{
				rng[bStart ? 'setStartAfter' : 'setEndAfter'](node); // skip past this one
				n -= length; // and eat these characters
			}
		}
		node = nextnode (node, el);
	}
}

Eg
If i simulate text between 2 br tags , the first character is typed after the 1st br tag and then the caret moves forward, the second character after typing should be inserted after the first character, but instead the caret encounters another br tag after it and hence simulates the text after that br tag, hence in the next line.

It's a similar problem to the one you had before: bililiteRange uses character positions so elements that contain no characters but alter text layout cause problems.
The solution I've used (and seen elsewhere) is hacky but works: intercept the typing or insertion of s etc. and insert a '\n' beforehand.
Sent from my iPod

On Sep 4, 2017, at 07:49, hiteshdua1<EMAIL_ADDRESS>wrote:
Hi @dwachss ,
I recently encountered an issue with br tag
Issue was due to
The handling of
// special case: if we end next to a , include that node.
The following condition creates an issue when the typing is being performed between 2 br tags
`function w3cmoveBoundary(rng, n, bStart, el) {
// move the boundary (bStart == true ? start : end) n characters forward, up to the end of element el. Forward only!
// if the start is moved after the end, then an exception is raised
if (n <= 0) return;
var node = rng[bStart ? 'startContainer' : 'endContainer'];
if (node.nodeType == 3) {
// we may be starting somewhere into the text
n += rng[bStart ? 'startOffset' : 'endOffset'];
}
while (node) {
if (node.nodeType == 3) {
if (n <= node.nodeValue.length && isCorrectTextNode(node)) {
            rng[bStart ? 'setStart' : 'setEnd'](node, n);
            // special case: if we end next to a
, include that node.
            if (n == node.nodeValue.length) {
                // skip past zero-length text nodes
                for (var next = nextnode(node, el); next && next.nodeType == 3 && next.nodeValue.length == 0; next = nextnode(next, el)) {
                    rng[bStart ? 'setStartAfter' : 'setEndAfter'](next);
                }
                if (next && next.nodeType == 1 && next.nodeName == "BR") rng[bStart ? 'setStartAfter' : 'setEndAfter'](next);
            }
            return;
        } else {
            rng[bStart ? 'setStartAfter' : 'setEndAfter'](node); // skip past this one
            n -= node.nodeValue.length; // and eat these characters
        }
    }
    node = nextnode(node, el);
}

}
`
Eg
If i simulate text between 2 br tags , the first character is typed after the 1st br tag and then the caret moves forward, the second character after typing should be inserted after the first character, but instead the caret encounters another br tag after it and hence simulates the text after that br tag, hence in the next line.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

I don't see a solution with bililiteRange's underlying structure: ranges only know about character positions. If you think of an elegant solution, please re-open this.


Error when composer update

I tried to composer update and I got this error:
Fatal error: Uncaught exception 'Zend\ModuleManager\Exception\RuntimeException' with message
'Module (AssetManager) could not be initialized.' in C:\apigility\vendor\zendframework\zend-
modulemanager\src\ModuleManager.php:203 Stack trace: #0 C:\apigility\vendor\zendframework\zend-
modulemanager\src\ModuleManager.php(175): Zend\ModuleManager\ModuleManager-
>loadModuleByName(Object(Zend\ModuleManager\ModuleEvent)) #1
C:\apigility\vendor\zendframework\zend-modulemanager\src\ModuleManager.php(97):
Zend\ModuleManager\ModuleManager->loadModule('AssetManager') #2 [internal function]:
Zend\ModuleManager\ModuleManager-
>onLoadModules(Object(Zend\ModuleManager\ModuleEvent)) #3
C:\apigility\vendor\zendframework\zend-eventmanager\src\EventManager.php(490):
call_user_func(Array, Object(Zend\ModuleManager\ModuleEvent)) #4
C:\apigility\vendor\zendframework\zend-eventmanager\src\EventManager.php(251): Zend\EventMa in
C:\apigility\vendor\zendframework\zend-modulemanager\src\ModuleManager.php on line 203

You will have to include zfcampus/zf-asset-manager to your composer.json as a development requirement.

@viyirenov please read release notes of zf-apigility-admin v1.5.0.
I'd suggest to use upgrade script:
$ ./vendor/bin/apigility-upgrade-to-1.5 -h

New zf-apigility-skeleton is on the way :) - #130

@publicitas-deployment It doesn't work, the error persists.
@webimpress I couldn't find that script in my vendor/bin folder, however the composer require rwoverdijk/assetmanager on the release note worked.
When the new skeleton comes, I just have to remove that dependency from my composer and upgrade to the new one? Or it will continue without the asset manager?

@viyirenov we need more information then.

What version PHP are you using?
composer info

Did you try remove whole vendor dir and run composer update again?

@webimpress I removed the vendor folder and used composer install, the script appeared, however after using it I got a new error:
Fatal error: Uncaught exception 'Zend\ModuleManager\Exception\RuntimeException' with message
'Module (ZF\DevelopmentMode) could not be initialized.' in C:\apigility\vendor\zendframework\zend-
modulemanager\src\ModuleManager.php:203 Stack trace: #0 C:\apigility\vendor\zendframework\zend-
modulemanager\src\ModuleManager.php(175): Zend\ModuleManager\ModuleManager-
>loadModuleByName(Object(Zend\ModuleManager\ModuleEvent)) #1
C:\apigility\vendor\zendframework\zend-modulemanager\src\ModuleManager.php(97):
Zend\ModuleManager\ModuleManager->loadModule('ZF\\DevelopmentM...') #2
C:\apigility\vendor\zendframework\zend-eventmanager\src\EventManager.php(271):
Zend\ModuleManager\ModuleManager-
>onLoadModules(Object(Zend\ModuleManager\ModuleEvent)) #3
C:\apigility\vendor\zendframework\zend-eventmanager\src\EventManager.php(143):
Zend\EventManager\EventManager->triggerListeners(Object(Zend\ModuleManager\ModuleEven in
C:\apigility\vendor\zendframework\zend-modulemanager\src\ModuleManager.php on line 203

I think I'll be using composer require rwoverdijk/assetmanager, will there be a problem? And when the new skeleton comes, do I have to remove after?

Solved in https://github.com/zfcampus/zf-apigility-skeleton/pull/130


DocsArchive-<IP_ADDRESS>Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-archive-test-target_f1a5ac8a-21ef-4fe7-b69c-af5616766c10/pull/1 is merged into live branch.
Auto archive content to https://github.com/opstest2/docs-archive-test-target_f1a5ac8a-21ef-4fe7-b69c-af5616766c10.git

Docs Build status updates of commit 0a70d3f:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error-RuningBuildFailed] Some unexpected errors happened when running build, please open a ticket in https://aka.ms/SiteHelp and include the error report for our team to troubleshoot

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Fix minor error in documentation.

Small fix in the documentation. Specifically, in the http archive, I include versioning information as well as a TODO statement. Both of which can and should be removed.

Can one of the admins verify this patch?

I sign


Simplified main.py + split overrides

This addresses feedback about simplifying the boilerplate main.py and separating overrides into a separate file. Overall, this pattern is much cleaner.
One area to pay close attention to is setting individual overrides after running get_rules or get_panther_rules. The imports are much more definitive and reliable than referencing fetched rules by ID, but has the downside of not knowing whether or not they're included in the fetched rules. If you have a suggestion/opinion about this, please let me know in the comments!
Changes

Move overrides into two overrides files and import them into main.py
Update the validate rule to be more realistic
Remove the filters folder - it's cleaner to be in overrides
Simplify the main.py significantly and remove unneeded comments/code

I like this change. But I worry that the main.py has too many examples. every customer that wants to get started has to read through and understand each line of the main.py and its not clear what is optional vs required vs recommended. I would suggest that any optional portion be commented out so that customers can quickly understand the difference.


add support for system properties in configuration

Change the configuration parser of the MQTT parser, so we could use
system properties in the value of a configuration key.
The configuration file that the OSGi bundle is using points normally to
${moquette.path}/config/moquette.conf.
So we could use a configuration file that contains an entry e.g.
persistent_store ${moquette.path}/storage/moquette_store.mapdb
So the real location of the configuration and the dabase storage could
be changed for different environments without touching anything else but
a system property.
Signed-off-by: Markus Rathgeb<EMAIL_ADDRESS>

#20

I @maggu2810 I close the issue with the same motivation of issue #20, I think that to avoid the problem of OSGi configuration it could be better to leverage an existing OSGi configuration tool as Configuration Admin service.


Improve html webpage

This improves the accessibility and general usability of the html client. It causes screen readers to announce incoming messages and allows the use of the enter key to send messages. This allows for a much more convenient user interface.

One thing I would note about the accessibility.js:
I like the instinct to separate this to a different JavaScript file. It could potentially be reused in other pages and is a distinct unit of code. The problem I see with it is that it explicitly relies on a named element in the page.
What if instead of the script finding an element by Id it creates one? Want to try that?

I tried that. It didn't work for some reason. I tried the code from https://a11y-guidelines.orange.com/en/web/components-examples/make-a-screen-reader-talk/ but I couldn't get it to work. My version did work though. Maybe I just missed something.


Cannot load any modified json file to be annotated

Hello, great vision on this project, thank you!
Problem: when running your default 'Start' version, everything seems to come up ok. But I took your dummy json file, modified a few values, and then tried to upload it to be the new target file. The file selection for upload seems to work ok. But once I've selected a file, I hit enter and nothing happens. The dummy file that you already have in there does not change at all. It seems to basically ignore the load process completely. I changed a few key values (like the customer number as the main key in each conversation).
The rest of your interface seems to work fine. Can you instruct me how to load a new json conversation file to replace the default in your 'Start' view?
Thank you very much for any assistance!

Please find the absolute minimal JSON file here: https://github.com/gguibon/ezcat/blob/main/public/dummy_files/dummy_chats_minimal.json
Please don't hesitate to tell me if it still does not solve your issue.

Ah! Thank you, your minimal json works fine. It's strange, because in my test file, I only changed a few digits of one ID number in your own example json, and it validates fine with a json validator. (see the first ID num in this screenshot, it ends in  "99" instead of your original) Anyway thank you so much for your attention to this, great system and nice interface design here for sure :)

Oh ok! Now I see what I did wrong, the ID display is from the "id" field not from the overall entry key! Now it shows up as "81880299" it was loading correctly all along lol. THANK YOU :)

Nice to know it solved your issue. I hope you will enjoy using the application :)
I close the issue as it seems solved.


Weave Net: Merge of incoming data issues / Auto fix inconsistency if any

What you expected to happen?
The main expectation is weave should recover automatically from an inconsitent state. If not please suggest how to recover from it.
We expect any of the node in the network does not become un-routable. We use Kubernetes and we route to kubernetes services using Node Ports. So the route to the pods across a cluster of nodes can happen from any node in the network. Route is being done using ELB which keeps all the routable nodes in its pool of instances.
In one of the cluster some nodes keep becoming un-routable.
For example: Say if we have a service at port 32238. Then every node will resolve node-ip:32238/status , except the node which has become un-routable.
What happened?
We see a lot of Merge connection issue in the weave logs of the the node that has become unroutable.
ubuntu @ kuber-mumbai :~ $ kubectln get pods -n kube-system -o wide | grep weave | awk '{print $1}' | xargs -I {} kubectln  exec {} -c weave -n kube-system -- /home/weave/weave --local status connections | grep Merge
-> <IP_ADDRESS>:6783       failed      Merge of incoming data causes: Entry <IP_ADDRESS>-<IP_ADDRESS> reporting too much free space: 4 > 3, retry: 2020-02-09 20:01:06.669854666 +0000 UTC m=+16666.766922212

How to reproduce it?
We saw this happening after many scale ups and down when we were in 2.5.2 https://github.com/weaveworks/weave/issues/3677
(but cannot be certain to say that only caused it)
We have moved to 2.6.0, and want to recover from the inconsistent network completely.
When the network becomes inconsistent and keeps getting merge issues, we are unable to recover from it.
Short term fix that works is by finding the nodes which are having most merge issues and then deleting its weave db and rebooting it. This makes them routable. If we do this for sometime the merge issues become very intermittent but in  a few days it again becomes a mess.
Any new node that joins after the mess, is mostly unroutable and requires removal of weave db and reboot(sometimes multiple times)
The concern is the short term fix help does not completely remove the merge issues we see. Even after short term fix, we keep seeing merge issues intermittently.
We use the below command to find Merge issues.
kubectl get pods -n kube-system -o wide | grep weave | awk '{print $1}' | xargs -I {} kubectl exec {} -c weave -n kube-system -- /home/weave/weave --local status connections  | grep Merge
We are not able to totally get rid of some issue in the network, that is why it keeps coming back.
Anything else we need to know?
Configured using kops, cloud provider is aws.
Versions:
$ weave version (We migrated from 2.5.2 to 2.6.0 - we were facing this in 2.5.2 also)
2.6.0

admin@ip-10-2-21-245:~$ sudo docker version
Client:
 Version:           18.06.3-ce
 API version:       1.38
 Go version:        go1.10.3
 Git commit:        d7080c1
 Built:             Wed Feb 20 02:28:26 2019
 OS/Arch:           linux/amd64
 Experimental:      false
Server:
 Engine:
  Version:          18.06.3-ce
  API version:      1.38 (minimum version 1.12)
  Go version:       go1.10.3
  Git commit:       d7080c1
  Built:            Wed Feb 20 02:26:51 2019
  OS/Arch:          linux/amd64
  Experimental:     false

admin@ip-10-2-21-245:~$ uname -a
Linux ip-10-2-21-245 4.9.0-11-amd64 #1 SMP Debian 4.9.189-3+deb9u1 (2019-09-20) x86_64 GNU/Linux

$ kubectl version
1.15.5

Logs:
Weave log of the new unroutable node
https://gist.github.com/alok87/c259683496c10ed007c61516839579b6
Network:
New node that was unroutable.
admin@ip-10-2-21-245:~$ ip route
default via <IP_ADDRESS> dev eth0
<IP_ADDRESS>/24 dev eth0 proto kernel scope link src <IP_ADDRESS>
<IP_ADDRESS>/16 dev docker0 proto kernel scope link src <IP_ADDRESS> linkdown

admin@ip-10-2-21-245:~$  ip -4 -o addr
1: lo    inet <IP_ADDRESS>/8 scope host lo\       valid_lft forever preferred_lft forever
2: eth0    inet <IP_ADDRESS>/24 brd <IP_ADDRESS> scope global eth0\       valid_lft forever preferred_lft forever
3: docker0    inet <IP_ADDRESS>/16 brd <IP_ADDRESS> scope global docker0\       valid_lft forever preferred_lft forever
5: nodelocaldns    inet <IP_ADDRESS>/32 brd <IP_ADDRESS> scope global nodelocaldns\       valid_lft forever preferred_lft forever
5: nodelocaldns    inet <IP_ADDRESS>/32 brd <IP_ADDRESS> scope global nodelocaldns\       valid_lft forever preferred_lft forever

INFO: 2020/02/09 20:07:34.431743 ->[<IP_ADDRESS>:6783|e6:45:d0:e3:de:16(ip-10-2-20-42.ap-south-1.compute.internal)]: connection shutting down due to error: Merge of incoming data causes: Entry <IP_ADDRESS>-<IP_ADDRESS> reporting too much free space: 4 > 3

Ip tables save output https://gist.github.com/alok87/444cf1c64c11cd91b8ed70ac141527b5
The weave status in this bad node. Says waiting for IP(s) to become available
/home/weave # ./weave --local status

        Version: 2.6.0 (up to date; next check at 2020/02/10 01:01:03)

        Service: router
       Protocol: weave 1..2
           Name: 7a:79:ee:42:45:e4(ip-10-2-21-245.ap-south-1.compute.internal)
     Encryption: disabled
  PeerDiscovery: enabled
        Targets: 33
    Connections: 37 (36 established, 1 failed)
          Peers: 37 (with 1331 established, 1 pending connections)
 TrustedSubnets: none

        Service: ipam
         Status: waiting for IP(s) to become available
          Range: <IP_ADDRESS>/11
  DefaultSubnet: <IP_ADDRESS>/11

Weave status ipam output (nothing seemed reachable)
https://gist.github.com/alok87/d374cfb18de38aefe38bdabe35acc5f4

Got one more alert: Weave IPAM was not ready and was waiting for IPs to be become ready. This time instead of delete db and restart, rmpeer ed some of the dead nodes and it became ready.
Not concluding anything.

cc @murali-reddy please help out here.

The error message which you identified "reporting too much free space" is very likely the key problem here.
Can you do a weave report on two nodes 7a:79:ee:42:45:e4(ip-10-2-21-245.ap-south-1.compute.internal) and b2:d0:cc:b4:76:01(ip-10-2-20-172.ap-south-1.compute.internal) please - I think that will let us see the mismatch.
(If you've restarted things since then any two nodes which are doing the "connection shutting down ... free space" thing)
Ahead of any code fix, draining any nodes which have mismatched data, removing the persistence file and restarting should help.

@bboreham These nodes are terminated(/replaced by autoscaler). Can't give details about them now.
The issue of Merge looks related to dead nodes IP addresses not getting reclaimed.
As soon as I rm-peered the dead node. The IPAM of the unroutable node became ready, it was stuck in waiting before that.
We have deployed the weave rm peerer script to reclaim the dead node ips every 2 hours. I think weave also reclaims the IPs when the new node needs it. But the issue has still happened, so we are running this for now. But reporting it here, as there still seems to be the issue with reclaiming which causes problem.
After running that script every 2 hours, we have not seen any Merge issues and none of the nodes have turned unhealthy.
Attaching some of the prometheus graphs for weave monitoring.
Issue for us has mostly happening on these two dates

25th Jan 2020
9th/10th Feb 2020

Weave monitoring graphs

Let me know if i can help in any other way to fix this.

 Fixing that has solved the inconsistency.  Nodes were seeing two sets of unreachable ip addresses. We fixed this by deleting the weave and restarting the nodes for one set and this fixed the problem when all became healthy.
We have used this grafana graph to find the issue https://grafana.com/grafana/dashboards/11789
Please read this for complete discussion on this: https://weave-community.slack.com/archives/C2ND76PAA/p1582613239010900


Service Discovery for multiple ports/paths on same FQDN

Some use cases may need to scrape multiple endpoints on the same FQDN, such as localhost.
For example, in a Kubernetes pod you might have multiple metrics endpoints to scrape, localhost:9100/metrics, localhost:9101/my-metrics, etc.
You can't just run another copy of the client and still get service discovery, since the client only forwards the FQDN.
What do you think about allowing the client to specify labels, ports, and metrics paths for discovery?
One way to do this might be changing --fqdn to --endpoint and maybe allowing it to be specified multiple times. An example --endpoint value might be http://localhost:9100/metrics?app=myapp, where app=myapp would be turned into labels for discovery.
I can work on a PR if you think this or similar is a good idea.
Additionally, the same values could optionally be used for security, as talked about in PR #41.

What you need here is the actual FQDN, not just localhost.

I'm assuming you mean run the client in a separate pod In Kubernetes, and then hook them up via a service. That can mean significantly more configuration, especially if using RBAC, but it's doable.
But it still doesn't give discovery for metrics paths or labels, which be significantly nicer than having to write custom relabeling config logic.

If you're in Kubernetes you can use k8 service discovery, and there should be no need for pushprox as Prometheus will be on the same network.

We actually have many Kubernetes clusters we need to monitor, and for security reasons we can't reach into them, only out of them, thus PushProx.

The recommended way to monitor k8 is from inside k8, which will make all of this much simpler.

I'm aware. The fact is we can't reach into these clusters to get metrics out, to view/alert on them, thus PushProx. The purpose of PushProx is to work around a network barrier just like we have to work around, there's no argument here.
This issue is around the idea of better service discovery, requiring less custom code to hit /clients and equivalent prometheus.yml entries, and less configuration to manage with the k8s objects.

I'm saying to run Prometheus inside k8.

How would I use Prometheus or hook it up to Grafana or other since I can't reach into the cluster? For security reasons, I cannot expose any ingress into the clusters.

That's a bit of a self-inflicted problem, but you could use tunnels such as pushprox or ssh.

These are clusters that we standup for clients and then remove our own access to but still need to monitor. It is part of what we do. I don't know why you're arguing with me about it, it seems like this is the kind of situation that pushprox is meant for.
Thank you for suggesting pushprox, that's why I'm here in the first place.

Ultimately pushprox is meant to bypass network restrictions, not be an arbitrary SD system.

I hear that, but it supports very limited service discovery for a narrow range of use cases. Is there no plan to allow it to broaden?

Not currently, everything is machine-based.

Even with separate FQDNs like my-svc-1.my-namespace.svc.cluster.local and my-svc-2.my-namespace.svc.cluster.local, if they happen to run their metrics on separate ports, I can no longer use service discovery, unless I setup 2 instances of the proxy and have 2 different config sections in the prometheus config and have 2 different file writers for file_sd_configs.
...It would be so much easier to just specify the port on the client side.

With PushProx's current setup, I have to build automation of k8s Deployment and Service objects on the proxy side for N clients in order to get differentiated hostnames and service discovery, essentially defeating the purpose of service discovery.
If instead the client could send it's FQDN/port/label list, no automation on the proxy side would be needed, other than writing the results of GETing /clients to a file for file_sd_configs.

I'm afraid this is getting a bit out of scope. Also ports will usually be the same in a standard setup.

There are many setups besides Kubernetes where you might have multiple apps running on one machine, and thus need to expose them on differing ports or paths.
A common example might be running both node-exporter and mysql-exporter on one machine behind a NAT. If you don't want to support this, what kind of setup is PushProx meant for?

The SD is something simple for simple setups, if you've more complex needs you need something fancier.

Same as @snarlysodboxer , We monitor multiple k8s outside of cluster, Now ,I want to monitor  [https://github.com/coredns/coredns/tree/master/plugin/metrics](CoreDns metrics), So The same demand as @snarlysodboxer , We want to use Pushprox to scrape metrics from two CoreDns Pod
coredns-7ddb996645-245fx:9513
coredns-7ddb996645-flptx:9153
But I want to setup one Pushprox to finish works

Correct me if I'm wrong, but there is no prometheus tool to aggregate /metrics endpoints.
So if a use case has multiple endpoints on one machine, the user is going to have to implement this aggregation manually.
It seems high value (small change for lots of utility) to let the pushprox client support multiple endpoints directly.

Yes, that's something to be dealt with on the Prometheus side as always.

@belm0 To be more clear, Prometheus is the tool to aggregate multiple multiple /metrics endpoints. The whole design of Prometheus is to scrape multiple endpoints, and annotating them with labels so that you can apply the correct aggregations with PromQL.
The reason it doesn't make sense to have an intermediate tool do any work, is that a metrics endpoint may have an identical metric to another endpoint, for example process_start_time_seconds. These will be unique for each endpoint, and can't be aggregated without annotating them with a label. And of course, this is the job of Prometheus. Adding an intermediate tool to do this annotation is basically replacing the Prometheus design. This is not something we want to do, as it's already done by Prometheus itself.

Thank you for explaining.  Still adjusting from a pushgateway world.

This isn't something I'm planning on adding, if your system is this complicated then you need a proper SD solution beyond the scope of this binary.

This is something we would also use if it existed.  We want to allow users to run PushProx outside of our network boundaries and control which exporters they run without needing to coordinate with us if some hosts run some exporters and others don't.  We want to keep the footprint of what is required on their side minimal and so PushProx is attractive to us.
We'd be interested in working on this if a PR might be accepted.  I haven't done extensive research yet, but I was thinking this might look something like taking multiple instances of a --target option where each value would be <fqdn>:<port>.  The client then could send this over as application/json if these options were used, or in the old format if not.  Usage of --target and --fqdn would be mutually exclusive.


Video button on native incoming call screen doesnt work after ios11

Hi @ianlin ,
Before upgrading to ios11, clicking the Video button on the native incoming call screen would request touch id/passcode and transition to application. On ios11, it only asks for authentication but doesn't do anything after. Is there something that needs to be updated in the wrapper?

Hey sorry for late, have you sorted out this issue? I've tested with iOS 11.1 and iPhone 8, both clicking the video and app icon button work as expected.

Would anyone please tell me what is the delegate method that should be called when tapping this "Video" button?
I've found posts talking about tapping this button should fire
func provider(_ provider: CXProvider, perform action: CXStartCallAction)
But that does not happen.
Thank you.


uWebsockets.js continues to provide incoming body chunks through the onData() handler after response has been sent

Hello,
I maintain the HyperExpress package and recently there was a DoS vulnerability #68 introduced due to the onData() handler providing body chunks after Response had already been sent for a request. Essentially the following would occur:

An HTTP GET request would be made with some body data (Even thought GET requests aren't supposed to have any)
HyperExpress see that there was a content-length header and would thus start consuming chunks from the onData() handler.
Since this was a GET request, the route would almost instantly send a response with some content.
After sending the response, uWS.Response would be discarded as expected but the onData() handler would continue to provide ArrayBuffer chunks and since the Readable stream on the request was never flowing, HyperExpress would try and pause the request with uWS.Response.pause() leading to an invalid discarded access.

I ended up patching the vulnerability in HyperExpress by adding a boolean on the request component which would be toggled after the response was completely sent to then ignore all incoming chunks from the onData() handler.
I'm not sure If this behavior was to be expected from uWebsockets.js but wouldn't it be better for uWebsockets.js to stop calling the onData() handler by default once the uWS.Response has been discarded from the response having been fully sent?
Thanks!

See https://github.com/uNetworking/uWebSockets.js/issues/307
HttpResponse.html#end
res.end(body, true);

This is not a bug. If you register onData, then you will get data chunks until there are no more to get. This has no relation to whether you respond or not. If you have incoming data, it makes sense to respond when you have all data.

I see, In that case, would it may be beneficial to add a note or brief description of this behavior under the onData() method's documentation because most implementations will implement automatic pausing/resuming to the uWS.HttpResponse in conjunction with the chunks coming in through onData() and so If there is a potential scenario where onData() continues to operate while uWS.HttpResponse is discarded, there is a risk of discarded access errors from automatic pause()/resume() calls.

I can buy that it is strange that onData fires after end, but at the same time it is kind of weird to respond to a request before the body has been received.

@kartikk221 I see you made res.end(body, close = true) the default behavior for your app, I don't think you want  that you want the connection open to re-use it for persistent connections https://github.com/kartikk221/hyper-express/commit/c82610df7f33ef6774c2bb90f8fa9eb4dac5246a also it does not solve your issue because you can still receive body while res.end is finishing. Ideally you should be waiting for onData to finish then respond or res.close if over limit. To attach onData to every request on every route for any possible body when is not needed or expected does not seem like great idea, but I guess is the Express way. Docs may not need to explain case for incorrect behavior

I see you made res.end(body, close = true) the default behavior for your app, I don't think you want that you want the connection open to re-use it for persistent connections

I see, I misread from #307 thinking it would halt the onData() handler, I think going forward I'll likely just stick with a boolean built into the HyperExpress Request component which ignores all and any chunks being piped from the onData() handler after the Response has been sent.

To attach onData to every request on every route for any possible body when is not needed or expected does not seem like great idea, but I guess is the Express way

As the name states HyperExpress is meant to be Express but with hyper performance. If I could bind the onData() handler at any time throughout the lifecycle of a request then I would do that for most efficiency but since the onData() handler has to be bound in the initial synchronous call from the uWS route handler, the body has to be streamed so the user can choose to accept or pipe the body into their desired resource at any time in the lifecycle of a request.

I can buy that it is strange that onData fires after end, but at the same time it is kind of weird to respond to a request before the body has been received.

I see what you are saying and the behavior of onData() is not inherently wrong. I was just proposing that this behavior should be better described in the documentation as clarifying this behavior can certainly help prevent bugs and vulnerabilities in other people's applications that they build on top of uWS in the future.

Ignoring onData chunks is fine, that's what happens anyways. You cannot refuse data on a tcp connection all you can do is ignore it.


Test new PostgreSQL backend compatibility

Start FerretDB 1.11.
Create some collections, indexes, insert some data, etc.
Update FerretDB, start it with --postgresql-new.
Check that everything works.
Create some other collections, indexes, insert some data, etc.
Rollback to 1.11.
Check that everything works.

@AlekSi should this be Go driven like mongo-tools?


refactor(TestSetterAndGetterTrait): Do not automatically set 'assert' to 'same' if value is an object

It was impossible to check a object values for equality without specifying the 'assert' method.
This could have been unintuitive in certain test situations - while the opposite case ( check value objects to be
the exact same) had not to be made explicit.
Now checking if two value objects are the same has to be made explicit by specifying the assert method.

do I have todo something?

@cbleek No

I just realized, that this is a breaking change and therefor unfortunately is not suitable for a 2.x relase. It will have to wait for 3.0.0


Require confirmation to adjust and send votecode

Require confirmation through validations
Reworking factories
Fixing #37

:+1: Good work! Just one small comment


Update StardewValley.sh

On ArkOS, mono-<IP_ADDRESS>-aarch64.squashfs is not in /roms/ports/PortMaster, but in /roms/tools/PortMaster. Doing this change to the script allowed what was just going back to the ArkOS menu page to launch into StardewValley.
Updated script to run Stardew Valley
Game Information

Title: Stardew Valley
URL: https://portmaster.games/detail.html?name=stardewvalley

Submission Requirements
CFW Tests
Ensure your game has been tested on all major CFWs:

[ ] AmberELEC
[X] ArkOS
[ ] ROCKNIX
[ ] muOS

Resolution Tests
Test all major resolutions:

[ ] 480x320
[X] 640x480
[ ] 720x720 (RGB30)
[ ] Higher resolutions (e.g., 1280x720)

On ArkOS the directory /opt/tools/PortMaster points to the right sdcard depending on if it is a single or dual sdcard setup. So this is not necessary, is your ArkOS install broken?

This is on a new install of ArkOS with one SD card, when I browse the filesystem on both the device itself and on a computer, it shows that the mono-<IP_ADDRESS>-aarch64.squashfs is in the /roms/tools/PostMaster/libs, but when I try to see in the /opt/tools directory, the directory does not exist on my device when looking at the builtin file browser.

Here is a version of the script that checks weather the file exists in /roms/ports/PortMaster/libs/mono-<IP_ADDRESS>-aarch64.squashfs, otherwise it changes the controlfolder to /roms/tools/PortMaster. With this, the script can be used for both file locations.

This is our header
XDG_DATA_HOME=${XDG_DATA_HOME:-$HOME/.local/share}

if [ -d "/opt/system/Tools/PortMaster/" ]; then
  controlfolder="/opt/system/Tools/PortMaster"
elif [ -d "/opt/tools/PortMaster/" ]; then
  controlfolder="/opt/tools/PortMaster"
elif [ -d "$XDG_DATA_HOME/PortMaster/" ]; then
  controlfolder="$XDG_DATA_HOME/PortMaster"
else
  controlfolder="/roms/ports/PortMaster"
fi```

The first entry /opt/system/Tools/PortMaster/ is valid on a arkos install.

ark@rgb30:~$ ls -l /opt/system/Tools/
total 32
drwxrwxrwx. 18 ark ark 8192 Nov  7 15:00 PortMaster
-rwxrwxrwx.  1 ark ark 4204 Jan 26  2024 PortMaster.sh
drwxrwxrwx.  2 ark ark 8192 Jun  8 06:49 ThemeMaster
-rwxrwxrwx.  1 ark ark  576 Jun  8 06:49 ThemeMaster.sh```
This is the first place it will look for libs and is also linked against /roms/tools/PortMaster/
We have almost 100k downloads in Stardew Valley and not one report about this problem.
I'm sorry but you might have a corrupt / outdated PortMaster install.
Feel free to open an issue in our discord channel.


ApiKey additions

This PR introduces 2 new pieces of functionality around ApiKey
These were required to implement a unit test in my project that compares the currently supported versions of the project against the supported versions of the kafka-protocol crate.
The additions are:

Add ApiKey::iterate_all() function, it returns an iterator that iterates once over every ApiKey variant
Add ApiKey::valid_versions(&self) method, it returns the valid versions that can be used with this ApiKey variant.

I'm happy to split the PR in two if one of these is easy to land and the other is not.

Oy, apologies, I think I may have merged these out of order and caused conflicts here. Messages needs to be regenerated.

@rukai lmk when you think we should do a release.

I'm thinking now is a good time, I don't have any other changes in mind atm


How to use Raspberry Pi OS with GPI Case 2

Hi,
thanks for this phenomenal package. (Case + dock)
I would like to have my own software running on a Compute Module 4 in GPI Case 2, and be able to access DPad, have sound over the speakers, and output to the display.
Can you please provide a short howto what needs to be done? Can the patches available for Retropie just be used?
Judging on reddit posts this could be also interesting for many others, and a doc could make the GPI Case 2 more interesting than other cases for those people.
Thank you,
Ray

Hi,
i got it working using normal raspi imager and manual editing config.txt parameters.
if still interessted please reply.

@rarera See https://github.com/trya/gpi-case-overlays, I've made progress towards making the GPI Case 2 work with unpatched systems.


fix: multiselect relationship bug and improve accessibility

Description
Closes #117 - hitting the space key while the ReactSelect is in focus crashes the page.
This PR makes the following changes:

Multivalue select component updated to only use id, drag feature does not work when using uuid()

Ensures relationship field (multi and single value) can be accessed via the keyboard

[X] I have read and understand the CONTRIBUTING.md document in this repository.

Type of change

[X] Bug fix (non-breaking change which fixes an issue)

Checklist:

[X] Existing test suite passes locally with my changes

@JarrodMFlesch pushed the following changes:

change the chevron stroke width to 1px
show focus outline for EditIcon when the relationship is a hasMany
update the dropdown indicator to a button element
simplify the drowdown indicator onClick as suggested


getaddress.io HTTP timeout fixes

:rocket: deployment of nhsuk/register-with-a-gp-beta-web succeeded (http://register-with-a-gp-beta-web-pr-211.dev.beta.nhschoices.net)


New version: OpenTelemetry v0.3.0

Registering package: OpenTelemetry
Repository: https://github.com/oolong-dev/OpenTelemetry.jl
Created by: @findmyway
Version: v0.3.0
Commit: 4975ecddf521f4fa930d4bc8964c0b8a91301039
Reviewed by: @findmyway
Reference: https://github.com/oolong-dev/OpenTelemetry.jl/commit/4975ecddf521f4fa930d4bc8964c0b8a91301039#commitcomment-86199543
Description: An unofficial implementation of OpenTelemetry in Julia.

Oops, this is not what I suppose to register...


How to insert featured comments with Youtube API

I've searched and posted this question on other forums, but I didn't get an answer. Hope someone here has worked with the youtube API and can help me...
I'm inserting videos on youtube using API in PHP version. But I'm not able to include a highlight comment in the videos. In the youtube documentation the example is in json , and as I'm doing it in php it just doesn't work.
See part of my code is like this:
// Create a snippet with title, description, tags and category ID
    // Create an asset resource and set its snippet metadata and type.
    // This example sets the video's title, description, keyword tags, and
    // video category.
    $snippet = new Google_Service_YouTube_VideoSnippet();

    $snippet->setTitle("Cats are cute #".$filme['Data ID']);

    $snippet->setDescription($filme['titulo']);

    $snippet->setTags('cats','cutecats','cute');

    // Numeric video category. See
    // https://developers.google.com/youtube/v3/docs/videoCategories/list
    $snippet->setCategoryId("19");

    // Set the video's status to "public". Valid statuses are "public",
    // "private" and "unlisted".
    $status = new Google_Service_YouTube_VideoStatus();
    $status->privacyStatus = "public";

    // Associate the snippet and status objects with a new video resource.
    $video = new Google_Service_YouTube_Video();
    $video->setSnippet($snippet);
    $video->setStatus($status);

And the youtube suggestion to include comments using the API is this:
{
  "snippet": {
   "channelId": "UC_x5XG1OV2P6uZZ5FSM9Ttw",
   "topLevelComment": {
    "snippet": {
      "textOriginal": "This video is awesome!"
    }
   },
   "videoId": "MILSirUni5E"
  }
 }

I tried like this and it didn't work: $snippet->textOriginal('My comment');
How can I submit a featured comment using youtube API in php?

Hello there!
Unfortunately, I don't know much about the YouTube API, and I imagine you're much more knowledgeable. However, looking at the JSON, I think you are using the incorrect Snippet object, and you want to do something like this:
$commentSnippet = new Google_Service_YouTube_CommentSnippet();
$commentSnippet->setTextOriginal('This video is awesome');

$threadSnippet = new Google_Service_YouTube_CommentThreadSnippet();
$threadSnippet->setChannelId('UC_x5XG1OV2P6uZZ5FSM9Ttw');
$threadSnippet->setVideoId('MILSirUni5E');
$threadSnippet->setTopLevelComment($commentSnippet);

Now, how you get from there to the video, or if what you're trying to do is even possible, I cannot possibly say. Good luck!

Hello there!
Unfortunately, I don't know much about the YouTube API, and I imagine you're much more knowledgeable. However, looking at the JSON, I think you are using the incorrect Snippet object, and you want to do something like this:
$commentSnippet = new Google_Service_YouTube_CommentSnippet();
$commentSnippet->setTextOriginal('This video is awesome');

$threadSnippet = new Google_Service_YouTube_CommentThreadSnippet();
$threadSnippet->setChannelId('UC_x5XG1OV2P6uZZ5FSM9Ttw');
$threadSnippet->setVideoId('MILSirUni5E');
$threadSnippet->setTopLevelComment($commentSnippet);

Now, how you get from there to the video, or if what you're trying to do is even possible, I cannot possibly say. Good luck!

Very very thankss :))))))))

I found this solution and it seems to work:
$commentSnippet = new Google_Service_YouTube_CommentSnippet();     $commentSnippet->setTextOriginal('TESTE');     $topLevelComment = new Google_Service_YouTube_Comment();     $topLevelComment->setSnippet($commentSnippet);     $commentThreadSnippet = new Google_Service_YouTube_CommentThreadSnippet();     $commentThreadSnippet->setTopLevelComment($topLevelComment);     $commentThread = new Google_Service_YouTube_CommentThread();     $commentThread->setSnippet($commentThreadSnippet);     $commentThreadSnippet->setVideoId($videoId);     $videoCommentInsertResponse = $youtube->commentThreads->insert('snippet', $commentThread);
But it asks for ssl scope, which I requested from google on the api scopes configuration screen. It takes up to 2 months for him to approve

I found this solution and it seems to work:
$commentSnippet = new Google_Service_YouTube_CommentSnippet();     $commentSnippet->setTextOriginal('TESTE');     $topLevelComment = new Google_Service_YouTube_Comment();     $topLevelComment->setSnippet($commentSnippet);     $commentThreadSnippet = new Google_Service_YouTube_CommentThreadSnippet();     $commentThreadSnippet->setTopLevelComment($topLevelComment);     $commentThread = new Google_Service_YouTube_CommentThread();     $commentThread->setSnippet($commentThreadSnippet);     $commentThreadSnippet->setVideoId($videoId);     $videoCommentInsertResponse = $youtube->commentThreads->insert('snippet', $commentThread);
But it asks for ssl scope, which I requested from google on the api scopes configuration screen. It takes up to 2 months for him to approve

Glad you figured it out! I'm not sure what you mean by approving scopes, but what you have there looks correct. Nice job.

https://developers.google.com/youtube/v3/docs/comments/insert
necessary scope: https://www.googleapis.com/auth/youtube.force-ssl
In case anyone needs it, they have to enter the Oauth settings of the api to edit, there will be a screen to add scopes, so just put this scope url and wait for approval.


installed on mac, development mode

After installing the Zend Server 6.2 on El Captian, I get this error when I run zf from command line
Error: I cannot find the autoloader of the application.
Check if /Users/me contains a valid ZF2 application.

For assistance on how to use the Zend Framework integration of Zend Server please use the official Zend forum or post a question on StackOverflow.


Request to fix the statement for the datacenter region for the on-premises data gateway doc

[Enter feedback here]
For this specific statement, it only states that "For sovereign clouds, we currently only support installing gateways in the default PowerBI region of your tenant." but there is no information that this also applies for the Power BI default region. (that the datacenter region can't be changed from the PBI default region when installing on-premise data gateway)
It should also include that "For sovereign clouds and Power BI's default region, we currently only support installing gateways in the default PowerBI region of your tenant."

Document Details
https://docs.microsoft.com/en-us/data-integration/gateway/service-gateway-data-region

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

ID: b2a07eaa-023b-fbc8-9508-39411425d096
Version Independent ID: efb6bb0e-5551-e2b3-4e98-3a34188600f3
Content: Set the datacenter region for the on-premises data gateway
Content Source: data-integration/gateway/service-gateway-data-region.md
Product: on-premises-data-gateway
Technology: ****
GitHub Login: @arthiriyer
Microsoft Alias: arthii

Agreed, the installer says this:

@dougklop there are a few issues for this same point. Seems like a small docs fix to help resolve those.


Dotjumping

Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes:  #632
----->
Type of change

[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Checklist:

[x] I have made this from my own
[ ] I have taken help from some online resourses
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings

ATTACH SCREEN-SHOTS / DEPLOYMENT LINK

https://deploy-preview-636--amazing-js-projects.netlify.app/dot jumping game/


Docs: "Modularizing Schema" Broken Links

Links to modularizing the schema in the docs seem to be broken.
Broken links can be found on the following pages:

https://www.apollographql.com/docs/graphql-tools/resolvers.html
https://www.apollographql.com/docs/graphql-tools/generate-schema.html

I would love to know more about where this information is now located.

This should be duplicated with #1039

dup, good to see I wasn't alone.


Bot Unable To Submit Posts

The bot only does replies, doesn’t post anything on Heroku. And is there any way to change the credentials on heroku?

The bot has to learn 50MB before posting.

On 27 Apr 2020 Mon at 21:01 MiranDaniel<EMAIL_ADDRESS>wrote:

The bot has to learn 50MB before posting.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/MrPowerScripts/reddit-karma-farming-bot/issues/35#issuecomment-620141733,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANZBHQQ47KQ2SCWXOU7Q6PTROXB7VANCNFSM4MSDIC5A
.

No it has learned 50MB’s but error comes up when the bot tries to post a
submission but nothing when it replies to a post, if you can, please test
it out on heroku and reply to me,if there are no  errors, I will try it
again

I was just about to say. If the bot is commenting, it has learned enough. Would you be able to give a screenshot/copy of those errors @bechodev? I would assume more people would be having those issues, it would be quite strange if it only affects Heroku users.

On 27 Apr 2020 Mon at 21:34 zegevlier<EMAIL_ADDRESS>wrote:

I was just about to say. If the bot is commenting, it has learned enough.
Would you be able to give a screenshot/copy of those errors @bechodev
https://github.com/bechodev? I would assume more people would be having
those issues, it would be quite strange if it only affects Heroku users.

Ok I will try to find the errors I got, if i find the error on the log
file.But how can I view the whole log file on heroku because it only shows
a part of it?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/MrPowerScripts/reddit-karma-farming-bot/issues/35#issuecomment-620158672,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANZBHQWHONGASQDVCRO6Z2DROXF3NANCNFSM4MSDIC5A
.

I don't really use Heroku but I can have a look, give me a moment.

Oh and to give an answer to your other question, go to settings --> Config Vars --> reveal config vars and change them there.

On 27 Apr 2020 Mon at 21:44 zegevlier<EMAIL_ADDRESS>wrote:

I don't really use Heroku but I can have a look, give me a moment.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/MrPowerScripts/reddit-karma-farming-bot/issues/35#issuecomment-620163871,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANZBHQSMMQQ2A3HCSXSRFK3ROXHB3ANCNFSM4MSDIC5A
.

Have you tried it,because my bot was running for like 10 hrs and no posts :(

Just to be clear, it was commenting, right? If not it was just still learning. AFAIK there is no good way to get to the logs apart from uploading them somewhere with the command line. This is a quite bad solution, maybe we should try to find a better solution for this @MrPowerScripts? For now, I don't think I will be able to help you without the error it produced when it was trying to post /:

Bot seems to be posting fine for me. We're going to need more info to keep this open. join the discord server in the readme for more granular support


CSSPlugin ignoring outFile and inject options with SassPlugin

Hi! Great project. However, I have yet to see it successfully produce a css file.
Our configuration is here, please take a look:
https://github.com/influxdata/chronograf/blob/typescript/ui/fuse.js
It's kind of unclean because I've been experimenting with different options, trying to get it to work, to no avail.
Thanks in advance for your help.

HI, I see the problem right away, u need to chain it, use an array [sass, css] I am not at home atm, read up on docs and let us know if they are unclear

Thanks for the quick response. I'll give that a try!

That worked alright. It took me a bit of work to figure out what's supposed to go into plugin chaining vs init config.
If there's anything else we're doing wrong, or we could do better in our fuse script, please let us know! And also, thanks for the quick response!


select : Screen Reader is reading two times when user selects a value from combo-box

Is this a regression?

[X] Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was
No response
Description
This issue is seen in select component example. Screen reader is reading two times when user selects a values from combo-box.
Example link: [https://v11.material.angular.io/components/select/overview]
Reproduction
Steps to reproduce:

Go to example link : [https://v11.material.angular.io/components/select/overview]
Open NVDA screen reader and reach combo-box by hitting 'tab' key.
Select a value from combo-box

Expected Behavior
Selected value should be understandable to screen reader users.
Actual Behavior
Selected values reading multiple times by screen reader.
Environment

Angular:
CDK/Material:
Browser(s):
Operating System (e.g. Windows, macOS, Ubuntu):

Hi Team,
Please provide us the solution for the issue. It would be helpful to get an answer sooner. Thanks.
Arvind

Hello,
Thank you for reporting this issue. This looks like a user experience issue, but I wouldn’t expect it to block users from completing a workflow. For that reason, I’m updating the priority to P3 and wouldn’t consider this a GAR blocker. Please let us know if you have concerns and feel free “+1” if you are impacted.
Best,
Zach

Hello,
Hello,
Thank you for reporting this issue. I wouldn’t expect this issue to block users from completing a workflow. For that reason, I’m updating the priority to P3. Please let us know if you have further concerns concerns and feel free to react with “👍” if you are impacted.
Best,
Zach

👍


[1.10] OpenShift Profile not creating ingress gateway

Istioctl is not creating the ingress gateway service using istioctl install --set profile=openshift. This means that the gateway can't be exposed.
 Not sure what happened the first time.
oc get all -n istio-system

NAME                                        READY     STATUS    RESTARTS   AGE
pod/istio-ingressgateway-66bb87c5f7-pbgsm   1/1       Running   0          23s
pod/istiod-78d957d759-r4gkz                 1/1       Running   0          23s

NAME                           TYPE           CLUSTER-IP       EXTERNAL-IP   PORT(S)                                      AGE
service/istio-ingressgateway   LoadBalancer   <IP_ADDRESS>   <pending>     15021:31782/TCP,80:31212/TCP,443:31207/TCP   22s
service/istiod                 ClusterIP      <IP_ADDRESS>    <none>        15010/TCP,15012/TCP,443/TCP,15014/TCP        22s

NAME                                   READY     UP-TO-DATE   AVAILABLE   AGE
deployment.apps/istio-ingressgateway   1/1       1            1           23s
deployment.apps/istiod                 1/1       1            1           23s

NAME                                              DESIRED   CURRENT   READY     AGE
replicaset.apps/istio-ingressgateway-66bb87c5f7   1         1         1         23s
replicaset.apps/istiod-78d957d759                 1         1         1         23s

NAME                                                       REFERENCE                         TARGETS         MINPODS   MAXPODS   REPLICAS   AGE
horizontalpodautoscaler.autoscaling/istio-ingressgateway   Deployment/istio-ingressgateway   <unknown>/80%   1         5         1          22s
horizontalpodautoscaler.autoscaling/istiod                 Deployment/istiod                 <unknown>/80%   1         5         1          22s


[Broker] DEBUG loglevel throw error when originalPrincipal not exists

Describe the bug
When loglevel is set to DEBUG,
https://github.com/apache/pulsar/blob/master/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/ServerCnx.java#L693
Throws an error when original principal does not exist.

@KannarFr Could you please provide more details about the error? such as stacktrace?

@KannarFr Could you please provide more details about the error? such as stacktrace?

close this issue first since no update for a long time.


Alternatives for packaging on Windows

We could consider building conda packages for windows: hopefully it should make life easier. According to this: http://stackoverflow.com/questions/20994716/what-is-the-difference-between-pip-and-conda
it should also takes care of other tools (not only python packages) such as compilers and libraries. Maybe we can use it to package QT and Python itself.

For examples there are recipes for installing PyQt: https://github.com/conda/conda-recipes/blob/master/pyqt/bld.bat

We could also consider creating installers based on WinPython: http://cyrille.rossant.net/create-a-standalone-windows-installer-for-your-python-application/

For what it's worth, I am creating updated instructions for windows as we speak. I have found that the availability of .whl files has greatly simplified the installation for end-users.

+1 :)

Glad to hear that the whl files are helping :) Thank you for updating the instructions for windows: I really appreciate that!

Related to my work on PyInstaller:
https://github.com/Mindwerks/worldengine/issues/82

Seems we have a winner!


Spiral Matrix in cpp

Have you read the Contributing Guidelines on Pull Requests?
Yes
Description
Code added for Spiral Matrix in cpp
Checklist

[X] I've read the contribution guidelines.
[X] I've checked the issue list before deciding what to submit.
[X] I've edited the README.md and link to my code.

Related Issues or Pull Requests
Issue #792

Plz review my pr @iamrajiv

I have changed the variable names of all possible variables to have uniformity in the code.


Text formatting with Touch Bar

Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Inline Style insertion through Macbook Touch Bar replaces all content within a block with the selected content.
If the inline style is inserted through the in-display toolbar then Touch Bar works fine with the selected content if toggled through it.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
Demo Fiddle: https://jsfiddle.net/Shanky0009/nfbh2prj/1/
Demo: https://user-images.githubusercontent.com/17160110/104161996-cc186b00-5419-11eb-993f-a26e2065ba44.mov
What is the expected behavior?
Should insert an inline style to the text using Macbook Toolbar.
Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?
Draft.js: Version 0.11.7
Browser affected: Safari Version 14.0.2

@ShankyRana could you explain how you get the touch bar to display those rich text controls? Trying with my editor and on https://draftjs.org/, I only ever get text replacement suggestions. This is in macOS 11.1 Big Sur and Chrome 87.

@ShankyRana could you explain how you get the touch bar to display those rich text controls? Trying with my editor and on https://draftjs.org/, I only ever get text replacement suggestions. This is in macOS 11.1 Big Sur and Chrome 87.

@thibaudcolas I'm also not sure how to get these controls on Chrome, try it out on Safari(using Version 14.0.2 (166<IP_ADDRESS>.9))

@thibaudcolas I'm also not sure how to get these controls on Chrome, try it out on Safari(using Version 14.0.2 (166<IP_ADDRESS>.9))

Thank you, I tried in Safari 14.0.2 and got mixed results. I don’t have those toolbar controls displaying on https://draftjs.org or my editor (http://playground.draftail.org/). They did display when trying out CKEditor (https://ckeditor.com/docs/ckeditor5/latest/examples/builds/classic-editor.html), however there were issues there as well. For CKEditor, the controls don’t toggle formatting on tap, but they correctly display what formatting is currently active.
Is there anything specific to your demo editor that would make them show up in Safari? If this isn’t reproducible on https://draftjs.org/, you might want to create a reproducible demo with https://jsfiddle.net/gmertk/e61z7nfa/ or similar.

Thank you, I tried in Safari 14.0.2 and got mixed results. I don’t have those toolbar controls displaying on https://draftjs.org or my editor (http://playground.draftail.org/). They did display when trying out CKEditor (https://ckeditor.com/docs/ckeditor5/latest/examples/builds/classic-editor.html), however there were issues there as well. For CKEditor, the controls don’t toggle formatting on tap, but they correctly display what formatting is currently active.
Is there anything specific to your demo editor that would make them show up in Safari? If this isn’t reproducible on https://draftjs.org/, you might want to create a reproducible demo with https://jsfiddle.net/gmertk/e61z7nfa/ or similar.

@thibaudcolas Check this out https://jsfiddle.net/Shanky0009/rt5yz3w9/
If I use Draft css from version 7, I'm able to use the Touch Bar controls on Safari.
https://cdnjs.cloudflare.com/ajax/libs/draft-js/0.7.0/Draft.css

@thibaudcolas Check this out https://jsfiddle.net/Shanky0009/rt5yz3w9/
If I use Draft css from version 7, I'm able to use the Touch Bar controls on Safari.
https://cdnjs.cloudflare.com/ajax/libs/draft-js/0.7.0/Draft.css


qemu: remove 9p O_NOATIME patch

Description of changes

This is redundant with QEMU commit a5804fcf7b ("9pfs: local: ignore O_NOATIME if we don't have permissions"), included in QEMU since 5.1.0, which will retry opens without O_NOATIME if they fail with it.
Things done

Built on platform(s)

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

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

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

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

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

[x] Fits CONTRIBUTING.md.

Good catch!


Feature/wgu pdvd

Update the gdml of ProtoDUNE-VD
Add essential services for ProtoDUNE-VD

These three PRs are made at the same time:
https://github.com/DUNE/dunecore/pull/24 (this PR)
https://github.com/DUNE/dunesim/pull/19
https://github.com/DUNE/dunesw/pull/32


Ctrl+Click the reload button to hard reload (and CSS var support)

Currently untested. This should work.

Okay, thanks! I'll merge this into v2.2.0.

shouldn’t you… uh… test this first?

Okay, thanks! I'll merge this into v2.2.0.

shouldn’t you… uh… test this first?

I did in my local version. I also fixed a bunch of bugs.


how to use enum in tests

Hi,first,thanks mybaties dev team,
Question
I try to use enum in test by ongl like this:
test='type == @util.enums.NZEnums.CostType.COST_M@getValue()'
but it is not working with error "java.lang.NullPointerException".
by the way ,util.enums.NZEnums is a class,
and util.enums.NZEnums.CostType is a enum.
MyBatis version
3.2.8
Database vendor and version
Test case or example project
Steps to reproduce
Expected result
Actual result

Hi @DarkRake,
Please try test='type ==<EMAIL_ADDRESS>And please post your question to the mailing list on the next time.
Thanks.


[CONTROLLER/HTTP] codes resource api common

This PR is for:

Server

codes resource api common
Checklist

[ ] Added unit test.

Backport to branches

main

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.zhengya seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


gradle version 5

repo config is wrong - was able to merge without travis. will make note of all the misconfigured repos.


Follow changes with GH Releases

Hello 👋🏼
This is more of a "feature request" issue. It would be really cool if this repo had releases. GH now lets interested parties just follow those instead of all the activity.

I don't know if this really fits within your workflow but thought it might be cool 😄
Keep up the awesome work.

Hey everybody 👋🏼
I've been cleaning out my outstanding issue and noticed this one. I'm closing it out since there seem to be no traction or feedback on it.
Thanks!


h5py fails to build, but hasn't been changed

Hi,
the package h5py recently started failing with the following error message:
cc -pthread -shared -lgcc_s build/temp.linux-x86_64-2.7/h5py/defs.o -L/nix/store/zaxw7m6ja5zl09czszh4kdrmp878vlwc-hdf5-1.8.14/lib -L/nix/store/zaxw7m6ja5zl09czszh4kdrmp878vlwc-hdf5-1.8.14/lib64 -L/nix/store/l8rhnzq9yxqhv3il4kmzqhkx8q06jzgv-python-2.7.9/lib -R/nix/store/zaxw7m6ja5zl09czszh4kdrmp878vlwc-hdf5-1.8.14/lib -R/nix/store/zaxw7m6ja5zl09czszh4kdrmp878vlwc-hdf5-1.8.14/lib64 -lhdf5 -lhdf5_hl -lpython2.7 -o build/lib.linux-x86_64-2.7/h5py/defs.so
gcc: error: unrecognized command line option '-R'
gcc: error: unrecognized command line option '-R'
error: command 'cc' failed with exit status 1
builder for ‘/nix/store/1nihc066mlh070qbgnmm30k49bjfg6xr-python2.7-h5py-2.3.1.drv’ failed with exit code 1

The expression has not been changed, so some external change must have broken it. Updating h5py to the most recent version 2.4.0 didn't fix the issue either.
Does anyone know why the build is trying to pass the option -R to cc? I thought that was a linker option.

Okay, mid last year someone else had the same issue. Apparently it is related to how runtime dependencies are handled in distutils. H5Py uses the runtime_library_dirs option to make hdf5 a runtime dependency. Distutils interprets this option differently for different compilers. In the case of GCC it should use the proper -Wl flags. However, distutils tries to identify GCC simply by comparing against the value of $CC. However, it seems like this commit made it so that $CC will be set to cc. Meaning that distutils will default to the -R flag. Am I right with that assessment?
Is this now a distutils issue for mis-identifying GCC, or is this an h5py issue for relying on distutils through runtime_library_dirs, or is this a nixpkgs issue for seting $CC=cc?

Anyway, someone else found a work-around which is to scrap the runtime_library_dirs option, and instead supply extra_link_args manually. The following patch applies that work-around.
diff --git a/setup_build.py b/setup_build.py
index 7a73379..1f39243 100644
--- a/setup_build.py
+++ b/setup_build.py
@@ -95,7 +95,8 @@ class h5py_build_ext(build_ext):

         # TODO: should this only be done on UNIX?
         if os.name != 'nt':
-            settings['runtime_library_dirs'] = settings['library_dirs']
+            settings['extra_link_args'] = map(lambda lib: '-Wl,-rpath,' + lib,
+                                              settings['library_dirs'])

         def make_extension(module):
             sources = [localpath('h5py', module+'.pyx')] + EXTRA_SRC.get(module, [])

See https://github.com/NixOS/nixpkgs/issues/5655

@iElectric Thanks, I wasn't aware of that issue/pr.


Update 07Chapter7.md

Fixed syntax error in example code.
This is a test of how easy to propose file changes in the VTK book.

Thanks for testing the process.

Thanks for merging. Are the files at Lorensen.github.io updated automatically? (e.g., https://lorensen.github.io/VTKExamples/site/VTKBook/07Chapter7/#710-intermixing-volumes-and-geometry)

I run a Sync script periodically throughout the day. Once Thinks stable, I
run it as a cron job a few times a day.
On Mon, May 14, 2018 at 8:37 PM, Andras Lasso<EMAIL_ADDRESS>wrote:

Thanks for merging. Are the files at Lorensen.github.io updated
automatically? (e.g., https://lorensen.github.io/VTKExamples/site/VTKBook/
07Chapter7/#710-intermixing-volumes-and-geometry)
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/lorensen/VTKExamples/pull/178#issuecomment-389032624,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAUFDA7-LKvZ7HD8t9fuzcUmuYHhKHqXks5tyk1lgaJpZM4T-1VW
.

--
Unpaid intern in BillsParadise at noware dot com

It would be nice to publish it on readthedocs as well. It provides full-text search, version selection, single-file pdf download, etc.
See for example:

blender-manual.readthedocs.io/
https://media.readthedocs.org/pdf/slicer/latest/slicer.pdf

I'll look into it but each markdown flavor has its own extensions. I
heavily used mkdocs and the material look and feel.
The beauty of mkdocs is that it produces a static website in src/site.
On Mon, May 14, 2018 at 8:54 PM, Andras Lasso<EMAIL_ADDRESS>wrote:

It would be nice to publish it on readthedocs as well. It provides
full-text search, version selection, single-file pdf download, etc.
See for example:

blender-manual.readthedocs.io/
https://media.readthedocs.org/pdf/slicer/latest/slicer.pdf

—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/lorensen/VTKExamples/pull/178#issuecomment-389034926,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAUFDDgj0n1vedFEmXX_pYQwNnvXTCbGks5tylF8gaJpZM4T-1VW
.

--
Unpaid intern in BillsParadise at noware dot com


More contextual information required

Many of these parameters have different behaviours depending on the replication environment in which the merge agent is being run - for example, if web synchronisation is being used, then -DownloadGenerationsPerBatch does not appear to do anything.
Maybe it would be worthwhile to have a page for each merge replication type (pull, push, and pull+websync?)

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

ID: 1a4be28a-07d1-8bba-568b-05656ee20bbb
Version Independent ID: 92aa0abd-658e-a6a3-612b-df4816619441
Content: Replication Merge Agent - SQL Server
Content Source: docs/relational-databases/replication/agents/replication-merge-agent.md
Product: sql
Technology: replication
GitHub Login: @MashaMSFT
Microsoft Alias: mathoma

Hi @dmacko,
Thank you for contacting Microsoft and providing your feedback to our documentation! We'll need some time to look into this further. Depending on the complexity, the turnaround time for this may vary anywhere from a few business days to a few business weeks. We'll reply via comment should we need anything further in the meantime, and please feel free to do the same.
Thanks again for your submission, and hope you have a wonderful rest of your day!
Masha from SQL Docs team

Hi @dmacko ,
Thanks again for reaching out! My concern with splitting these articles would be a disparate experience for customers that may contribute to confusion rather than alleviating it. Especially because there aren't many differences between the parameters depending on the replication type.
In fact, would you mind providing more information about why you think that parameter does nothing?
Thanks!
Masha from the SQL Docs team

Hi Masha, thanks for your reply.
I think you're right about that the confusion problem - It would make things a bit complicated if there's only one page for the other agents, and multiple pages for the merge agent.
With regards to my comments about the parameter not doing anything under web synchronisation - I had some issues some time ago with a subscriber (using web sync) that hadn't replicated in a while - It was replicating, but it was doing so quite slowly. When I tried re-running the merge agent using different values for the download parameters, I did not observe any changes in the msmerge_history table or in the performance.
I might be wrong about that parameter's behaviour - it would be nice to have some further clarity in the documentation about how the merge agent behaves, especially under web synchronisation.
Thanks,
-Daniel

Hi @dmacko, just wanted to provide you with a quick update and let you know I'm still looking into this :) Thanks!

Masha from the SQL Docs team

Hi @dmacko,
Thanks again for providing your suggestion to improve our docs! I have opened an item in our internal tracking system around adding clarity for the merge agent parameters. For bookkeeping purposes, I will close out this Git Issue, but I will update you once the changes have been made. Due to the complexity, it may take some time for us to publish these changes.
In the meantime, please feel free to reach out via comment should you need anything.
Thanks again and hope you have a great weekend!
Masha from the SQL Docs team


Update en.json ready for next round of translations

do-not-merge until we've got translations else everything will get out of sync.

[x] Change age gate text to "I am at least 18 years of age" not "over 18" - https://github.com/covid-alert-ny/covid-green-app/issues/483#issuecomment-700711343
[x] Remove text not used in the app
[x] Changes to the copy in the health log to dissuade users from reporting symptoms that are normal for them Task needs approval, don't wait for it
[x] Check status of text in unused components
[x] Check no other text changes are currently confirmed

Ready for review and merge now https://github.com/covid-alert-ny/covid-green-app/pull/552 is ready

Is this obsolete now?

Closed, now we've got translations it's not worth the (small) risk of introducing an error just removing them in English


Pressing a Link from react-aria-component fails in mobile

Provide a general summary of the issue here
On mobile devices, the Link component does not respond to click events when the user taps on a child SVG element inside the Link.
🤔 Expected Behavior?
A click event should be triggered
😯 Current Behavior
Click events are ignored
💁 Possible Solution
No response
🔦 Context
No response
🖥 Steps to Reproduce
https://codesandbox.io/p/sandbox/react-aria-touch-6xj9lw
Version
1.4.0
What browsers are you seeing the problem on?
Chrome, Safari
If other, please specify.
No response
What operating system are you using?
macOS 15.0.1
🧢 Your Company/Team
No response
🕷 Tracking Issue
No response

Hm..it's a little finicky sometimes but I am able to press on the link with the svg on my iPhone 13 iOS 17.6.1. Was there a specific device that you were seeing this on?

Hm..it's a little finicky sometimes but I am able to press on the link with the svg on my iPhone 13 iOS 17.6.1. Was there a specific device that you were seeing this on?
Edit: That said, my success rate when pressing a normal <a> tag around the svg was much better than when using Link so seems like a bug but not sure what's causing it

I updated the sandbox to include a third anchor using an  tag.
This video is on an iPhone 13 Pro iOS 18.0.1
https://github.com/user-attachments/assets/9e043710-42da-493d-97fc-53faa2012afa
Looks like the press works if you do it outside the SVG path, in the anchor's paddings

+1
I'm facing the same problem on the ui library that uses RAC based.

I believe the easiest way to work around it is to put pointerEvents: "none" on the SVG. Could you give that a try?
If this just started happening, it may be related to Mobile Item Selection Fails Starting from Version 3.22.3 of @react-aria/interactions
Otherwise, this issue may be resolved when we do https://github.com/adobe/react-spectrum/issues/1720

I believe the easiest way to work around it is to put pointerEvents: "none" on the SVG. Could you give that a try?
If this just started happening, it may be related to Mobile Item Selection Fails Starting from Version 3.22.3 of @react-aria/interactions
Otherwise, this issue may be resolved when we do #1720

@snowystinger thanks for the workaround, it works! (updated the example to include it).
It just started happening, so it's probably related to #7157

@andreslemusm We've just released a patch that contains https://github.com/adobe/react-spectrum/pull/7190 so closing this out for now, but definitely let us know if you are still running into issues!

@andreslemusm We've just released a patch that contains #7190 so closing this out for now, but definitely let us know if you are still running into issues!

Thanks for the fix! it is now working as expected without any workarounds


CreatePermission error

Your environment.

Version: 2.0.17
Browser: custom app, no browser

What did you do?
Connecting through twilio TURN server with credentials.
What did you expect?
No errors.
What happened?
We receive a bunch of these error messages.  Like, dozens.
Failed to create TURN permission unexpected error response: CreatePermission error response (error 403: Forbidden IP)
Failed to create TURN permission unexpected error response: CreatePermission error response (error 443: Peer Address Family Mismatch (4))

@ernado would you be up for helping out with this? I am working on adding E2E tests for TURN+STUN to pion/ice then will be doing PSK for DTLS afterwards.
If not I am happy to grab.


add custom support

Also make discrete pmf plots a little bit nicer, by having a dashed smooth auxiliary curve.
with custom support

with full support

Codecov Report

Merging #57 (ff1c51e) into main (399e983) will increase coverage by 0.13%.
The diff coverage is 92.85%.

@@            Coverage Diff             @@
##             main      #57      +/-   ##
==========================================
+ Coverage   59.31%   59.44%   +0.13%
==========================================
  Files          13       13
  Lines        1074     1080       +6
==========================================
+ Hits          637      642       +5
- Misses        437      438       +1

Impacted Files
Coverage Δ

preliz/distributions/continuous.py
93.70% <ø> (ø)

preliz/distributions/discrete.py
99.13% <ø> (ø)

preliz/distributions/distributions.py
79.45% <87.50%> (-0.83%)
:arrow_down:

preliz/utils/plot_utils.py
53.12% <100.00%> (+2.03%)
:arrow_up:

Continue to review full report at Codecov.

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


Error loading items

At first there's no problem, after downloading better bibtex plugin and sync my zotero data this error occured.
latest version loaded from plugin market
on Windows11
the connection is ok

Are you able to see what the console logs say?

I checked the console log.
The problem is caused by an unacessable linked file.
My fault.


Add support for cv2.pointPolygonTest

Support for checking if a point is in a specific polygon.

Support for checking if a point is in a specific polygon.

You can check it's added.


[FEATURE REQ] Support simplest OIDC flow by azure-spring-boot-starter-active-directory to access id_token

Is your feature request related to a problem? Please describe.
Now our azure-spring-boot-starter-active-directory only support authorization type: client_credentials, authorization_code, on_behalf_of, azure_delegated. If the application want to access user info by simplest "OIDC" flow, our only choice is to use authorization_code, which will sends "response_type=code" even if we only need "id_token".
Related issue: https://github.com/Azure/azure-sdk-for-java/issues/23876
Describe the solution you'd like
Maybe we can add authorization type like "id_token", and custom which resolve in our AADOAuth2AuthorizationRequestResolver
Describe alternatives you've considered
We may need to override AADWebSecurityConfigurerAdapter because which use azure as accessTokenResponseClient and which authorization type is always "authorization_code".
Additional context
Add any other context or screenshots about the feature request here.
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

[x] Description Added
[x] Expected solution specified

@chenrujun could you please update the status / milestone of this issue?


Process for making db entries

Reference - https://docs.djangoproject.com/en/2.2/topics/db/queries/
First make a class in NewsTunes/models.py, for eg., class News. This is the table. Now add attributes like headline, category, intro, body, url, etc. with appropriate field types.
Now in Newstunes/views, while rendering, also add those articles to the db with methods like News.object.create(Field=Value), etc.
Note, import appropriate model object in views.

Use python manage.py shell to insert/view/edit entries manually. The commands in the above links can be run in the shell

(eunotechNew) 38f9d3e5a0fe:NewsTunes rikeshah$ python manage.py shell
Python 3.7.3 (default, Jun 19 2019, 07:38:49)
[Clang 10.0.1 (clang-1<IP_ADDRESS>)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from users.models import News
>>> News.objects.all()
<QuerySet []>
>>> News.objects.all()
<QuerySet []>
>>>
KeyboardInterrupt
>>> News.objects.all()
<QuerySet []>
>>> News.objects.all()
<QuerySet [<News: Meet the guy behind the 'Area 51' page. He's terrified of what he's created>, <News: The 200th firefighter just died from a World Trade Center-related illness>, <News: In pictures: Puerto Rico in protest>, <News: Fort Lauderdale could be without water until Friday due to water main break, officials say>]>

You can also connect from sqlite3 command line
sqlite3 NewsTunes/db.sqlite3
and make queries like
. tables
select * from users_news

SOlved


Error Analysis: Move the heatmap to the left so that it is aligned with the legend

Low priority

fixed with: https://github.com/microsoft/responsible-ai-widgets/pull/905


Existing cache for local dataset builder file updates is ignored with ignore_verifications=True

Describe the bug
If i have local file defining a dataset builder class and I load it using load_dataset functionality, the existing cache is ignored whenever the file is update even with ignore_verifications=True. This slows down debugging and cache generator for very large datasets.
Steps to reproduce the bug

Create a local dataset builder class
load the local builder class file using load_dataset and let the cache build
update the file's content
The cache should rebuilt.

Expected results
With ignore_verifications=True, load_dataset should pick up existing cache.
Actual results
Creates new cache.
Environment info

datasets version: 1.8.0
Platform: Linux-5.4.0-52-generic-x86_64-with-debian-bullseye-sid
Python version: 3.7.7
PyArrow version: 3.0.0

Hi ! I just tried to reproduce what you said:

create a local builder class
use load_dataset
update the builder class code
use load_dataset again (with or without ignore_verifications=True)
And it creates a new cache, as expected.

What modifications did you do to your builder's code ?

Hi @lhoestq. Thanks for your reply. I just did minor modifications for which it should not regenerate cache (for e.g. Adding a print statement). Overall, regardless of cache miss, there should be an explicit option to allow reuse of existing cache if author knows cache shouldn't be affected.

The cache is based on the hash of the dataset builder's code, so changing the code makes it recompute the cache.
You could still rename the cache directory of your previous computation to the new expected cache directory if you want to avoid having to recompute it and if you're sure that it would generate the exact same result.
The verifications are data integrity verifications: it checks the checksums of the downloaded files, as well as the size of the generated splits.

Hi @apsdehal,
If you decide to follow @lhoestq's suggestion to rename the cache directory of your previous computation to the new expected cache directory, you can do the following to get the name of the new expected cache directory once #2500 is merged:
from datasets import load_dataset_builder
dataset_builder = load_dataset_builder("path/to/your/dataset")
print(dataset_builder.cache_dir)

This way, you don't have to recompute the hash of the dataset script yourself each time you modify the script.


Give an ascii mode to --restrict flag

Description
I added the possibility to specify choices to the --restrict flag and a new, more lenient ascii mode. This mode simply guarantees ASCII characters in filenames instead of the more aggressive sanitization performed by yt_dlp.utils.sanitize_filename.
Related Issue
#1850
Motivation and Context
Certain programs fail to open filenames that contain special characters but handle whitespaces just fine. Currently, I can use the --restrict flag to make filenames contain a sanitized set of characters but then whitespaces are transformed to underscores.
How Has This Been Tested?

I run spotdl <url> and verified that it doesn't restrict the filename.
I run spotdl <url> --restrict and verified that it preserves the current behavior
I run spotdl <url> --restrict=ascii and verified that it applies a weaker sanitization, simply guaranteeing ASCII characters in the filename.
I run spotdl <url> --restrict=none and verified that it can disable sanitization specified in the spotdl.config.json file.
I verified that an invalid value in spotdl.config.json falls back to act as if --restrict was not specified.

Types of Changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist

[x] My code follows the code style of this project
[x] My change requires a change to the documentation
[x] I have updated the documentation accordingly
[x] I have read the CONTRIBUTING document
[x] I have read the  CORE VALUES document
[ ] I have added tests to cover my changes
[ ] All new and existing tests passed

[ ]  I have added tests to cover my changes

To test the new --restrict=weak mode, we would need to use a song_dict here with a name or album_artist which contain special characters. Any preference as to which song should be used instead?

[ ] All new and existing tests passed

Locally, test_ytmusic_matching() failed to match the url of two songs. This failing test seems unrelated to my code changes.

I verified that an invalid value in spotdl.config.json falls back to act as if --restrict was not specified.

This will be a regression for users currently specifying "restrict": true in spotdl.config.json as this value is no longer valid. Is there an easy way to keep this value backward compatible and map it to "restrict": "strict"?

To test the new --restrict=weak mode, we would need to use a song_dict here with a name or album_artist which contain special characters. Any preference as to which song should be used instead?

Anything you want

Locally, test_ytmusic_matching() failed to match the url of two songs. This failing test seems unrelated to my code changes.

You are right, you can ignore them.

This will be a regression for users currently specifying "restrict": true in spotdl.config.json as this value is no longer valid. Is there an easy way to keep this value backward compatible and map it to "restrict": "strict"?

Something like this could work, but ideally we should do this when creating settings dictionary to not pass a value with bad type.
def create_file_name(
    song: Song,
    template: str,
    file_extension: str,
    restrict: Optional[str] = None,
    short: bool = False,
    file_name_length: Optional[int] = None,
) -> Path:
    """
    Create the file name for the song, by replacing template variables with the actual values.

    ### Arguments
    - song: the song object
    - template: the template string
    - file_extension: the file extension to use
    - restrict: sanitization to apply to the filename
    - short: whether to use the short version of the template
    - file_name_length: the maximum length of the file name

    ### Returns
    - the formatted string as a Path object
    """

    temp_song = copy.deepcopy(song)

    restrict = "strict" if restrict is True else restrict

Let me know when I can merge this

I added a modernize_settings() function that, over time, can handle all the deprecated config values.
def modernize_settings(options: DownloaderOptions):
    warning_msg = "Deprecated '%s' value found for '%s' setting in config file. Using '%s' instead."
    # Respect backward compatibility with old boolean --restrict flag
    if options["restrict"] is True:
        logger.warning(warning_msg, True, "restrict", "strict")
        options["restrict"] = "strict"

All done on my side. Waiting for your comments, @xnetcat.

Thanks for your contribution!


Pre-fill path fields if project has usual files

Fixes #617.
Initially, I wanted to point the browse window to config files if they exist in the usual locations (/src/main/appengine/app.yaml and /src/main/docker/Dockerfile). However, I wasn't able to find a way to direct a file chooser to a certain directory location when it opens. There was no method to achieve it.
As an alternative, this PR pre-fills the app.yaml and Dockerfile fields if they are empty and the project has these files in the usual locations. This way, the browse window will point to the existing files when opened.

I actually like your approach of pre-filling the paths better regardless. lgtm

:rocket:


Feat (recovery-codes): add display recovery codes step handler

Summary:
The "Display Recovery Code" node returns to the client a TextOutputCallback with a message text that has JavaScript in it that embeds the recovery codes. Providing a step handler to get the recovery codes and display them appropriately.
Details:

Provide a step handler for "Display Recovery Codes" step
Adjust styles to handle the codes for ease of reading and usability

Screen recording:

Dependencies:

[ ] This PR must be merged and changes published: https://github.com/ForgeRock/forgerock-javascript-sdk/pull/73

Thank you, @chuckmasucci, both issues have been fixed.


Several instances of 'styled-components' persisting after usual fixes

I've gone through many threads discussing the "several instances of 'styled-components'" warning (including the documentation) as it has been causing problems with hot loading for me, however, after going through the usual fixes, I haven't been able to get rid of the problem.
What I've tried and some notes:

running npm dedupe
Adding the following to webpack:

resolve: {
    alias: {
      'styled-components': path.resolve('./node_modules/styled-components'),
    },
  },

changing the order of other babel plugins (and removing all other babel plugins)
I don't have multiple entry points so that solution is not applicable
Running npm ls styled-components returns: --<EMAIL_ADDRESS>
This is the repo where I'm experiencing the problem: https://github.com/morgankbender/lit-shopper
If anyone has other suggestions, please let me know!

If anyone ever sees this and is curious- sometimes the simplest answer is best... I loaded my own JS bundle in my index.html template... And via webpack


Add Gemfile

This is to explicitly specify the dependencies required to run the build script

Thanks. Great. Cheers.


Update boots.asm and boots.hex to STG 112

Update the boots.asm and boots.hex files in branch b_kernel_040 to the STG 112 versions.

Done.  Updated STG 112 versions are in branch b_kernel_040.


Autogenerated rule index page

DO NOT MERGE!
This is a template for display automatically generated rules index page. This PR can be merged in after https://github.com/eslint/eslint/pull/6658 is merged.

LGTM, also, yay!

Well, apparently Github jekyll rendering is somewhat different from normal jekyll... I'll fix it.


[EN/CN DateTimeV2] Improve support for year ranges

Support cases like:
"2014-2015"
"between 2012-2016"
"2012 or above"
"2012 or after"
"from 2000 to 2020"
"from 2000 to 2020"
"until 2020"

CN side is next, right @lucinezhang ? ;)


Add "cos-cloud" project in IMAGE_PROJECTS

Container-Optimized OS is in "cos-cloud" project.
{
"archiveSizeBytes": "2776416960",
"creationTimestamp": "2018-02-02T15:15:12.894-08:00",
"description": "Google, Container-Optimized OS, 64-10176.62.0 stable, Kernel: ChromiumOS-4.4.96 Kubernetes: 1.8.7 Docker: 17.03.2",
"diskSizeGb": "10",
"family": "cos-stable",
"id": "5241841702474960879",
"kind": "compute#image",
"labelFingerprint": "42WmSpB8rSM=",
"licenses": [
"projects/cos-cloud/global/licenses/cos"
],
"name": "cos-stable-64-10176-62-0",
"rawDisk": {
"containerType": "TAR",
"source": ""
},
"selfLink": "projects/cos-cloud/global/images/cos-stable-64-10176-62-0",
"sourceType": "RAW",
"status": "READY"
}
Changes Title (replace this with a logical title for your changes)
Description
Replace this with the PR description (mention the changes you have made, why
you have made them, provide some background and any references to the provider
documentation if needed, etc.).
For more information on contributing, please see Contributing
section of our documentation.
Status
Replace this: describe the PR status. Examples:

work in progress
done, ready for review

Checklist (tick everything that applies)

[ ] Code linting (required, can be done after the PR checks)
[ ] Documentation
[ ] Tests
[ ] ICLA (required for bigger changes)

Codecov Report

Merging #1189 into trunk will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##            trunk    #1189   +/-   ##
=======================================
  Coverage   86.19%   86.19%
=======================================
  Files         348      348
  Lines       67263    67263
  Branches     5958     5958
=======================================
  Hits        57979    57979
+ Misses       6851     6850    -1
- Partials     2433     2434    +1

Impacted Files
Coverage Δ

libcloud/compute/drivers/gce.py
76.71% <ø> (+0.13%)
:arrow_up:

libcloud/test/compute/test_upcloud.py
90.06% <0%> (-1.33%)
:arrow_down:

libcloud/test/compute/test_ec2.py
97.77% <0%> (-0.16%)
:arrow_down:

Continue to review full report at Codecov.

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

Hello and thank you for your contribution! We're working on a more comprehensive change here: https://github.com/apache/libcloud/pull/1143. Can you tell us what you think?

sorry. I did not see #1143 .
It's a great job.
I close my pull request.


The character list and font list tooltip animations seem to come with unwanted flashing

And this happens with the animation option disabled in the settings

Thanks, any chance you can post a small video of this and what hardware you're using? I cannot reproduce on a Surface Go / Surface Studio / Surface Laptop Studio / Samsung Galaxy GO ARM

I'm so sorry. I made a mistake in my wording.
NOT the font list in main window. I mean the font list in Settings - Collections, select/create a collection. And hover on font list below.
https://github.com/character-map-uwp/Character-Map-UWP/assets/157206155/423e3aba-8dae-4abb-920d-fc2cf09f470c
Character list:
https://github.com/character-map-uwp/Character-Map-UWP/assets/157206155/75a34ec9-7010-4279-890b-59f7c61f518e
https://github.com/character-map-uwp/Character-Map-UWP/assets/157206155/1c9b3be3-1787-4c32-b2ba-6098245af08c
UI button tooltip:
https://github.com/character-map-uwp/Character-Map-UWP/assets/157206155/f1d10501-23f5-4a19-8eb7-74a622b19bd2
The current part of the Tooltip animation (not affected by the animation options):
Appears and disappears without any animation. And then fade in from small to large.
Desired behavior (animation options off):
Without any animations.
Desired behavior (animation options on):
From small to big fade in.

https://github.com/character-map-uwp/Character-Map-UWP/assets/157206155/e1f11416-65de-405c-b5f7-ca99726b8495

Dev note: system ToolTips styles are bad, see if can switch to using VisualTransition


This is Deprecated ---- The Official Repository at https://hub.docker.com/_/mongo/

Just a heads up this is deprecated.. or not monitored.
Go hear to find the real one -> The Official Repository at https://hub.docker.com/_/mongo/

And the git repo is here: https://github.com/docker-library/mongo/tree/master