Query: Get difference result with rate function between Thanos Query and Prometheus instance

Thanos, Prometheus and Golang version used

Thanos: improbable/thanos:master-2018-07-18-a412835
Prometheus: v2.3.0
What happened
Try to query the rate of kubernetes container cpu usage with expression rate(container_cpu_usage_seconds_total{image!="",pod_name!="",container_name!="POD"}[30s]) in Thanos Query UI, there was no data returned.
But there were some series when I queried in the Prometheus instance as the same expression.
What you expected to happen
The query result should be as same as the original Prometheus instance in Thanos Query UI
How to reproduce it (as minimally and precisely as possible):
To setup the interval of scrape as 15s in Prometheus Scrape Config, to query with expression rate(container_cpu_usage_seconds_total{image!="",pod_name!="",container_name!="POD"}[30s])
Full logs to relevant components
There was no related query logs in Thanos Query and Sidecar.

Anything else we need to know
Here is the configuration of Prometheus Scrape
global:
  scrape_interval: 15s
  scrape_timeout: 10s
  evaluation_interval: 30s
  external_labels:
    monitor: prometheus
    replica: prom-thanos-s3-0
scrape_configs:
- job_name: prometheus
  scrape_interval: 15s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  static_configs:
  - targets:
    - localhost:9090
- job_name: kubernetes-apiservers
  scrape_interval: 15s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: https
  kubernetes_sd_configs:
  - api_server: null
    role: endpoints
    namespaces:
      names: []
  bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
  tls_config:
    ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
    insecure_skip_verify: true
  relabel_configs:
  - source_labels: [__meta_kubernetes_namespace, __meta_kubernetes_service_name, __meta_kubernetes_endpoint_port_name]
    separator: ;
    regex: default;kubernetes;https
    replacement: $1
    action: keep
- job_name: kubernetes-nodes
  scrape_interval: 15s
  scrape_timeout: 15s
  metrics_path: /metrics
  scheme: https
  kubernetes_sd_configs:
  - api_server: null
    role: node
    namespaces:
      names: []
  bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
  tls_config:
    ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
    insecure_skip_verify: false
  relabel_configs:
  - separator: ;
    regex: __meta_kubernetes_node_label_(.+)
    replacement: $1
    action: labelmap
  - separator: ;
    regex: (.*)
    target_label: __address__
    replacement: kubernetes.default.svc:443
    action: replace
  - source_labels: [__meta_kubernetes_node_name]
    separator: ;
    regex: (.+)
    target_label: __metrics_path__
    replacement: /api/v1/nodes/${1}/proxy/metrics
    action: replace
- job_name: kubernetes-cadvisor
  scrape_interval: 15s
  scrape_timeout: 15s
  metrics_path: /metrics
  scheme: https
  kubernetes_sd_configs:
  - api_server: null
    role: node
    namespaces:
      names: []
  bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
  tls_config:
    ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
    insecure_skip_verify: false
  relabel_configs:
  - separator: ;
    regex: __meta_kubernetes_node_label_(.+)
    replacement: $1
    action: labelmap
  - separator: ;
    regex: (.*)
    target_label: __address__
    replacement: kubernetes.default.svc:443
    action: replace
  - source_labels: [__meta_kubernetes_node_name]
    separator: ;
    regex: (.+)
    target_label: __metrics_path__
    replacement: /api/v1/nodes/${1}/proxy/metrics/cadvisor
    action: replace
- job_name: kubernetes-service-endpoints
  scrape_interval: 15s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  kubernetes_sd_configs:
  - api_server: null
    role: endpoints
    namespaces:
      names: []
  relabel_configs:
  - source_labels: [__meta_kubernetes_service_annotation_prometheus_io_scrape]
    separator: ;
    regex: "true"
    replacement: $1
    action: keep
  - source_labels: [__meta_kubernetes_service_annotation_prometheus_io_scheme]
    separator: ;
    regex: (https?)
    target_label: __scheme__
    replacement: $1
    action: replace
  - source_labels: [__meta_kubernetes_service_annotation_prometheus_io_path]
    separator: ;
    regex: (.+)
    target_label: __metrics_path__
    replacement: $1
    action: replace
  - source_labels: [__address__, __meta_kubernetes_service_annotation_prometheus_io_port]
    separator: ;
    regex: ([^:]+)(?::\d+)?;(\d+)
    target_label: __address__
    replacement: $1:$2
    action: replace
  - separator: ;
    regex: __meta_kubernetes_service_label_(.+)
    replacement: $1
    action: labelmap
  - source_labels: [__meta_kubernetes_namespace]
    separator: ;
    regex: (.*)
    target_label: kubernetes_namespace
    replacement: $1
    action: replace
  - source_labels: [__meta_kubernetes_service_name]
    separator: ;
    regex: (.*)
    target_label: kubernetes_name
    replacement: $1
    action: replace
  - source_labels: [__meta_kubernetes_service_label_k8s_app]
    separator: ;
    regex: node-exporter
    replacement: $1
    action: drop
  - source_labels: [__meta_kubernetes_service_label_k8s_app]
    separator: ;
    regex: kube-state-metrics
    replacement: $1
    action: drop
- job_name: kubernetes-pods
  scrape_interval: 15s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  kubernetes_sd_configs:
  - api_server: null
    role: pod
    namespaces:
      names: []
  relabel_configs:
  - source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape]
    separator: ;
    regex: "true"
    replacement: $1
    action: keep
  - source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_path]
    separator: ;
    regex: (.+)
    target_label: __metrics_path__
    replacement: $1
    action: replace
  - source_labels: [__address__, __meta_kubernetes_pod_annotation_prometheus_io_port]
    separator: ;
    regex: ([^:]+)(?::\d+)?;(\d+)
    target_label: __address__
    replacement: $1:$2
    action: replace
  - separator: ;
    regex: __meta_kubernetes_pod_label_(.+)
    replacement: $1
    action: labelmap
  - source_labels: [__meta_kubernetes_namespace]
    separator: ;
    regex: (.*)
    target_label: kubernetes_namespace
    replacement: $1
    action: replace
  - source_labels: [__meta_kubernetes_pod_name]
    separator: ;
    regex: (.*)
    target_label: kubernetes_pod_name
    replacement: $1
    action: replace
  - source_labels: [__meta_kubernetes_pod_label_app]
    separator: ;
    regex: frostmourne
    replacement: $1
    action: drop
  - source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_namespace]
    separator: ;
    regex: data
    replacement: $1
    action: drop
- job_name: node-exporter
  scrape_interval: 15s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  kubernetes_sd_configs:
  - api_server: null
    role: endpoints
    namespaces:
      names:
      - devops
  relabel_configs:
  - source_labels: [__meta_kubernetes_service_annotation_prometheus_io_path]
    separator: ;
    regex: (.+)
    target_label: __metrics_path__
    replacement: $1
    action: replace
  - source_labels: [__address__, __meta_kubernetes_service_annotation_prometheus_io_port]
    separator: ;
    regex: ([^:]+)(?::\d+)?;(\d+)
    target_label: __address__
    replacement: $1:$2
    action: replace
  - separator: ;
    regex: __meta_kubernetes_service_label_(.+)
    replacement: $1
    action: labelmap
  - source_labels: [__meta_kubernetes_namespace]
    separator: ;
    regex: (.*)
    target_label: kubernetes_namespace
    replacement: $1
    action: replace
  - source_labels: [__meta_kubernetes_service_name]
    separator: ;
    regex: (.*)
    target_label: kubernetes_name
    replacement: $1
    action: replace
  - source_labels: [__meta_kubernetes_pod_node_name]
    separator: ;
    regex: (.*)
    target_label: node_name
    replacement: $1
    action: replace
  - source_labels: [__meta_kubernetes_pod_host_ip]
    separator: ;
    regex: (.*)
    target_label: instance
    replacement: $1
    action: replace
  - source_labels: [__meta_kubernetes_service_label_k8s_app]
    separator: ;
    regex: node-exporter
    replacement: $1
    action: keep
  metric_relabel_configs:
  - source_labels: [node_name]
    separator: ;
    regex: (.*)
    target_label: node
    replacement: $1
    action: replace
- job_name: kube-state-metrics
  scrape_interval: 15s
  scrape_timeout: 15s
  metrics_path: /metrics
  scheme: http
  kubernetes_sd_configs:
  - api_server: null
    role: endpoints
    namespaces:
      names:
      - kube-system
  relabel_configs:
  - source_labels: [__meta_kubernetes_service_annotation_prometheus_io_scrape]
    separator: ;
    regex: "true"
    replacement: $1
    action: keep
  - source_labels: [__meta_kubernetes_service_annotation_prometheus_io_scheme]
    separator: ;
    regex: (https?)
    target_label: __scheme__
    replacement: $1
    action: replace
  - source_labels: [__meta_kubernetes_service_annotation_prometheus_io_path]
    separator: ;
    regex: (.+)
    target_label: __metrics_path__
    replacement: $1
    action: replace
  - source_labels: [__address__, __meta_kubernetes_service_annotation_prometheus_io_port]
    separator: ;
    regex: ([^:]+)(?::\d+)?;(\d+)
    target_label: __address__
    replacement: $1:$2
    action: replace
  - separator: ;
    regex: __meta_kubernetes_service_label_(.+)
    replacement: $1
    action: labelmap
  - source_labels: [__meta_kubernetes_namespace]
    separator: ;
    regex: (.*)
    target_label: kubernetes_namespace
    replacement: $1
    action: replace
  - source_labels: [__meta_kubernetes_service_name]
    separator: ;
    regex: (.*)
    target_label: kubernetes_name
    replacement: $1
    action: replace
  - source_labels: [__meta_kubernetes_service_label_k8s_app]
    separator: ;
    regex: kube-state-metrics
    replacement: $1
    action: keep
  metric_relabel_configs:
  - source_labels: [pod]
    separator: ;
    regex: (.*)
    target_label: pod_name
    replacement: $1
    action: replace
  - source_labels: [container]
    separator: ;
    regex: (.*)
    target_label: container_name
    replacement: $1
    action: replace

Thanks for reporting. Scrape configuration is not that useful. What would be useful is for what time range you query? Because in rc1 downsampling is enabled but it does not always work. Might that issue?

@jojohappy Can you share how you tracked down that bug? 0.o Does it fix this issue, or it is something additional you found?
Anyway, great job!

I didn't 100% know the query steps for both Prometheus and Thanos, I spent time to track the line to fetch the result at first.
Dependent on the query steps, here is the checklist to compare with original Prometheus

query expression
the range of time
the params for function querier.Select
the storage.SeriesSet returned by querier.Select

It was lucky that the storage.SeriesSet from Thanos Source was as same as the original Prometheus, I continued to track the evaluate process. I guessed that it was failed to evaluate rate with no enough data.
So I tried to print the debug log in function eval at L766 both Thanos and original Prometheus. I found that the Points at L870 was difference with original Prometheus, Prometheus were two, Thanos was one, I checked that series both Thanos and Prometheus returned had two samples within 30s from the checklist above. So I confirmed the problem located in matrixIterSlice to fetch the samples from the SeriesIterator implemented by CounterSeriesIterator.
Dependent on this clue, I found that the Promql engine would create the instance of storage.BufferedSeriesIterator, it reset the iterator with new one and invoke the iterator.Next function at L57, before fix the bug, the cursor would move to the first sample in CounterSeriesIterator. After that it would seek the cursor to specify timestamp, I found the promblem at Seek function.
It was not easy to track down the bug. I printed a lot of logs to trace the series samples, but I'm happy that I'm deep understanding the Promql and Thanos due to this issues.

Fix landed - can you confirm that it fixes this exact issue?

Yes, I confirm. I have got same result both Thanos and Prometheus. We can close it.


auth0-cli: 1.5.1 -> 1.6.1

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/auth0/auth0-cli/releases.
meta.description for auth0-cli is: Supercharge your developer workflow
meta.homepage for auth0-cli is: https://auth0.github.io/auth0-cli
meta.changelog for auth0-cli is: https://github.com/auth0/auth0-cli/releases/tag/v1.6.1
Updates performed

Golang update

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 1.6.1 with grep in /nix/store/9bisn7zn42m1akhr00dbwv32m9hbj5hj-auth0-cli-1.6.1
found 1.6.1 in filename of file in /nix/store/9bisn7zn42m1akhr00dbwv32m9hbj5hj-auth0-cli-1.6.1

Rebuild report (if merged into master) (click to expand)

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath

auth0-cli

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/9bisn7zn42m1akhr00dbwv32m9hbj5hj-auth0-cli-1.6.1 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A auth0-cli https://github.com/r-ryantm/nixpkgs/archive/0d8f4194998e2ce85d32d281db166fe0560021b4.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/0d8f4194998e2ce85d32d281db166fe0560021b4#auth0-cli

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/9bisn7zn42m1akhr00dbwv32m9hbj5hj-auth0-cli-1.6.1
ls -la /nix/store/9bisn7zn42m1akhr00dbwv32m9hbj5hj-auth0-cli-1.6.1/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review

x86_64-linux

:white_check_mark: 1 package built:

auth0-cli

Maintainer pings
cc @MatthewCroughan for testing.

[!TIP]
As a maintainer, if your package is located under pkgs/by-name/*, you can comment @NixOS/nixpkgs-merge-bot merge to automatically merge this update using the nixpkgs-merge-bot.

Add a :+1: reaction to pull requests you find important.

Merge conflict, closing to allow the bot to create a correct one.


fix: mac crashTypeId

Forgot this in the last PR.

@daveplunkett please review when you're back

:tada: This PR is included in version 8.1.2 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


spl-token-cli: Add support for account delegates

The account delegate feature of SPL Token is not exposed in the spl-token command-line tool yet.

CLI supports the approve command to assign a delegate to a token account, but AFAICT transfers using delegates are not yet supported.
Correct me if I'm wrong, but I believe the javascript interface function for token transfers also does not yet support delegates.
There appears to be efforts into exposing/supporting them but I think it's unusable atm.
https://github.com/solana-labs/solana-program-library/blob/58221fc9ae05e258ee903b49c5e8f5abbeb7796c/token/program/src/processor.rs#L198
I think if authority_info.key == delegate  is wrong, it should be something like if authority_info.key == delegate.owner.

CLI supports the approve command to assign a delegate to a token account, but AFAICT transfers using delegates are not yet supported.
Correct me if I'm wrong, but I believe the javascript interface function for token transfers also does not yet support delegates.
There appears to be efforts into exposing/supporting them but I think it's unusable atm.

This is all correct AFAIK, hence the issue still being open

https://github.com/solana-labs/solana-program-library/blob/58221fc9ae05e258ee903b49c5e8f5abbeb7796c/token/program/src/processor.rs#L198
I think if authority_info.key == delegate is wrong, it should be something like if authority_info.key == delegate.owner.

No the logic is correct as is.  The delegate is not required to exist as an account on-chain, just as a keypair the delegate controls.  AccountInfo::owner is the the Program that owns a native account, not the owner authority specified in the SPL Token account state

Thanks for the reply. Yup, everything works perfectly, it was just a little misunderstanding on my part. I thought delegates had to be specified as token accounts (CLI explains it like this, and perhaps other documentation I can't remember); but they can also be specified as native accounts which was the solution for me at least. Is this correct thinking? I'm not sure how/why a token account would be specified over a native account, AFAICT they are not usable that way. Probably just another misunderstanding on my part though :).
So just to sum up and clarify: Everything is working perfectly AFAICT.. delegate token transfers are supported on the CLI, as well as delegate creation/approval.  Apart from that, maybe one minor suggestion would be to change the argument name here:
https://github.com/solana-labs/solana-program-library/blob/813aa3304022528cbf3cf7a3d32bca339194a492/token/cli/src/main.rs#L1771
e.g. from DELEGATE_TOKEN_ACCOUNT_ADDRESS to DELEGATE_ACCOUNT_ADDRESS
Since it appears that token accounts can be set as either a 'token' or 'native' account, which might avoid any confusion there. IDK and I apologize if I am just misunderstanding this entirely. Actually I am curious if someone could clarify the use case of using native vs token account as a delegate, because right now I only see reasons for use a native one. Good news is everything appears to work, so perhaps it's okay to close this issue now.


[serde generate][Swift] Enum variants should be camelCased

🚀 Feature Request
When generating code, enum variants should be expressed in the native preferred format. In Swift, that is camelCased, as opposed to Rust's UpperCamelCased.
Motivation
Swift types generated with serde-generate feel out of place since they start with a capital letter. It's minor, but the code would be closer to a first class citizen if they were properly camelCased.

released in serde-generate 0.23.0


Unable to execute database query-Error: Cannot enqueue Query after fatal error.

Hello,
I know this error is reported so many time here but none of them are working for me.
here its my code
database.js
var mysql      = require('mysql');

var connection = mysql.createConnection({
    host     : 'hostname',
    user     : 'user',
    password : 'password',
    database : 'dbname',
    dateStrings :true
});
connection.connect(function(err) {

    if (err) {
        console.error('error connecting: ' + err.stack);
    }
    console.log('connected as id ' + connection.threadId);

});
module.exports = connection;

main.js
'use strict';
var connection = require("../lib/database.js");
var lib = require("../lib");

module.exports.handler = function (event, context) {

  try {

    var q = "query here " ;
    connection.query(q, function (err, rows) {
....
....

Problem is i am getting following error sometime
unable to execute database query-Error: Cannot enqueue Query after fatal error.
Possible Answer

Use pool but i dont think it will solve.
Remove connection.connect but i dont think it will solve.

i am giving you possible answer because i want to show what is in my mind :)
I am using V2.10.2 of this module and v6.3.0 of node
Thank you,
Nirmal Goswami

Hi @nirmalgoswami, please see the conversation / responses in #1492


Update image so they are a link to the receipe

Update the thumbnail images so they are a clickable link.

This has been completed


request: folder paths

Looking for an alternative to syncthing gtk and I'm liking synctrayzor so far
a couple of requests that would make useability a bit better (I dont know how possible these are, as it seems syntrayzor simply displays the web gui)

It would be awesome if there was a way (when adding folders) to be able to browse the filesystem to select a folder, instead of typing the full path

If there was an option to automatically edit the syncthing config.xml when adding folders to enable long file paths in windows: https://github.com/syncthing/syncthing/wiki/Windows-Troubleshooting-Guide

Hi!

Is not possible for now - Syncthing's in charge of the GUI, and I've got very limited options regarding tweaking what it displays or how it behaves. However, I'm working on a native UI at the moment (expect it in a month or so), and I'll be able to do whatever I like for that - including a proper filebrowser.

That's certainly do-able, thanks for the idea!

Actually, 2 is going to be a lot easier with the native UI.
Changing the user's config requires restarting syncthing, and I don't want to do that without the user's consent...

Re 2) It looks like Syncthing 0.11 will support that natively: https://forum.syncthing.net/t/syncthing-v0-11-0-release-notes/2426

is definitely on the cards as part of the native GUI work though (which will also happen after 0.11)

The native UI is off the cards - there's no point trying to replicate Syncthing's UI when it's changing so fast: users get a far better experience by being given Syncthing's UI.

is now duped by #78.


No need to check OPENAI_KEY when using non OpenAI models

PR Agent silently fails when I use the non OpenAI models such as Bedrock in Github Actions if I do not set OPENAI_KEY.
This failure is caused by unnecessarily checking existence of OPENAI_KEY in the following code, which seems to be removed safely.
https://github.com/Codium-ai/pr-agent/blob/f0c5aec0e431461d751d802b6a7132f32c940c38/pr_agent/servers/github_action_runner.py#L50

you are welcome to open to open a PR to address this


Get the project by ID instead of name

Originally we fetched the project from Kitsu by its name. Some times the name in Ayon doesn't match the name in Kitsu.
This PR fixes so we fetch the project by the KitsuProjectID instead.
To try this PR simply try and publish a preview to Kitsu.

Having tested
tv_ABC <-> tv_XYZ
tv_中文 <-> tv_ZW

both can validate with no error, and shot's information showed correctly in Kitsu entities's logs.


c1ee2fe - not working with 4.0alpha traineddata

Please see https://github.com/manisandro/gImageReader/issues/141#issuecomment-269117278
The program works with the older traineddata files but not the new 4.0 version. I thought that the master branch will be compatible with 4.0 traineddata...
It will be good to have separate instructions for building 3.05 and 4.0 versions.
Which snapshot is recommended to use for 4.0.0alpha? Thanks!

Which snapshot is recommended to use for 4.0.0alpha? Thanks!

3rd party tools should build against 3.04.1 or maybe 3.05.

Maybe you use 3.04 traineddata with Tesseract 4.00 ...

Amit,
3.04 data is working with it. 4.0 version is not working.

excuse the brevity, sent from mobile

On 25-Dec-2016 8:23 PM, "Amit D."<EMAIL_ADDRESS>wrote:

Maybe you use 3.04 traineddata with Tesseract 4.00 ...
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/609#issuecomment-269125727,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AE2_o0CDFPysX1Aqm-VQEsquGU1-5EP7ks5rLoNOgaJpZM4LVaiH
.

He is just making a test build for me to test 4.0 with gui.

excuse the brevity, sent from mobile

On 25-Dec-2016 8:13 PM, "Amit D."<EMAIL_ADDRESS>wrote:

Which snapshot is recommended to use for 4.0.0alpha? Thanks!
3rd party tools should build against 3.04.1 or maybe 3.05.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/609#issuecomment-269125365,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AE2_o9ZRO6nYo3k4EBisIj6BxLhlptJFks5rLoDzgaJpZM4LVaiH
.

FYI, the version I had built in early Dec under bash on windows10 from
master works with the 4.0 traineddata.
I can try building it again tomorrow and check.

excuse the brevity, sent from mobile

On 25-Dec-2016 9:15 PM, "ShreeDevi Kumar"<EMAIL_ADDRESS>wrote:

Amit,
3.04 data is working with it. 4.0 version is not working.

excuse the brevity, sent from mobile

On 25-Dec-2016 8:23 PM, "Amit D."<EMAIL_ADDRESS>wrote:

Maybe you use 3.04 traineddata with Tesseract 4.00 ...
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/609#issuecomment-269125727,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AE2_o0CDFPysX1Aqm-VQEsquGU1-5EP7ks5rLoNOgaJpZM4LVaiH
.

He is just making a test build for me to test 4.0 with gui.

The master is a moving target. If he wants to build against 4.00 he should use the latest snapshot that can be compiled.

Shree,
If you'll still have this issue, please provide more info than just 'not working'.

look at your tessdata folder. You can check the size of the a traineddata file and compare it to the one in the repo.
For Hindi
https://github.com/tesseract-ocr/tessdata/blob/4.00/hin.traineddata
24.6 MB
vs.
https://github.com/tesseract-ocr/tessdata/blob/3.04.00/hin.traineddata
13.5 MB

Remember that we can only support our code. If there is a issue with a 3rd party program that can't be demonstrated with the Tesseract command line program, this is not the right place to report about it.

Thanks. I am building the latest snapshot to test in command mode.


How to make the background transparent?

I have tried to set the backgroundColor to [UIColor clearColor] to no avail. Is this currently possible?

Same problem here. Any solution @Stunner yet?

Simple removal of bgImage properties from pages of example show clear background color:


fix model error

fix the following error:
Traceback (most recent call last):
  File "e:\data\frid\python\codes\adlpi\labml_nn\transformers\rope\__init__.py", line 231, in <module>
    _test_rotary()
  File "e:\data\frid\python\codes\adlpi\labml_nn\transformers\rope\__init__.py", line 227, in _test_rotary
    inspect(rotary_pe(x))
  File "E:\data\frid\python\p121\lib\site-packages\torch\nn\modules\module.py", line 1518, in _wrapped_call_impl
  File "e:\data\frid\python\codes\adlpi\labml_nn\transformers\rope\__init__.py", line 188, in forward
    x_rope = (x_rope * self.cos_cached[:x.shape[0]]) + (neg_half_x * self.sin_cached[:x.shape[0]])
RuntimeError: The size of tensor a (3) must match the size of tensor b (4) at non-singleton dimension 3

the reason is that the dimensions of two multiplied vectors do not match.

In cached sin and cos the first dimension is the sequence length. So it should be cos_cached[:x.shape[0]]

In cached sin and cos the first dimension is the sequence length. So it should be cos_cached[:x.shape[0]]

That's right. I think the fix should be like this: #249


My new module's routes are not recognized

Hi
I should say thank you for your very useful module.
Recently i got an issue with my routes!
My first 8 modules are working fine and everything is OK, but when i try to add new modules their routes are not recognized int route:list.
I did not change any thing and working modules and other ones are exactly the same.
Do you have any idea?
Thank you so much

I just needed to dump-autoload files.


Update Authorization Code client_secret kwarg usage

Description

Update the Authorization code Class to use the kwarg of client_secret as documented in issue

https://github.com/Azure/azure-sdk-for-python/issues/8004.

Resolve error where class successfully redeems an authorization code by passing client_secret into the AuthorizationCode.get_token() method breaks on a refresh call due to the kwarg getting passed into the request pipeline.

All SDK Contribution checklist:

[x] The pull request does not introduce [breaking changes]
[ ] CHANGELOG is updated for new features, bug fixes or other significant changes.
[x] I have read the contribution guidelines.

General Guidelines and Best Practices

[x] Title of the pull request is clear and informative.
[x] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[ ] Pull request includes test coverage for the included changes.

@microsoft-github-policy-service agree

Can you also add test cases for it?


File size limit

Do we have a default FileSize limit? And if that's the case, can it be overwritten? I'm having trouble finding the files in my React Project, for some reason the biggest files are ignored, by removing a part of the file, FileMatcher starts finding it again.
The limit seems to be around 250 lines. If the file has roughly 250 or more lines it's ignored. My configuration is as follows:
{
    path: 'src/',
    recursiveSearch: true,
    fileFilter: {
        fileNamePattern: ['**/*.tsx'],
        content: /Component/,
    },
}

The biggest Components are simply ignored.

Upon further inspection it doesn't seem related with the number of lines, but with the size of the file itself. For some reason, files that pass an specific threshold are ignored with no warning.
To reproduce just create a file and keep adding console.log statements to it until it stops being found, although your parameters did not change at all.
The version that I'm using is 1.3.0


container_of might be unsound

I was running some clippy lints on Way Cooler (which I have never done because I was waiting for it to stabilize) and version of container_of, which is used quite a bit in wlroots-rs and is the same implementations as yours, reported a very scary looking clippy error:
error: casting from `*mut u8` to a more-strictly-aligned pointer (`*mut wlroots_sys::wlr_device`)
  --> src/macros.rs:13:9
   |
13 |           ($ptr as *mut u8).offset(-(offset_of!($container, $field) as isize)) as *mut $container
   |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
  ::: src/backend/session.rs:70:13
   |
70 | /             wl_list_for_each!((*self.session).devices,
71 | |                               link,
72 | |                               (device: wlr_device) => {
73 | |                                   devices.push(Device::from_ptr(device))
74 | |                               });
   | |_________________________________- in this macro invocation
   |
   = help: for further information visit https://rust-lang-nursery.github.io/rust-clippy/v0.0.212/index.html#cast_ptr_alignment

This was fixed by changing the pointer cast from a *mut u8 to a usize, which will bring it in line to the standard c definition.

This is not unsound, seems fine to me. Changing it to usize will do the incorrect thing. This is fine as long as the container pointer is properly aligned, which it should.

I'm confused why it would do the incorrect thing?
To clarify, the current isize would remain, the only change is casting the $ptr to a *mut usize before attempting to do pointer arithmetic on it.
Especially since the C code uses an equivalent type and clippy threw this up as a hard error on its default settings makes me think that it's only maybe possibly fine.

What pointer offset() returns depends on the type of the pointer. offset_of returns bytes, so you need to call offset substracting bytes.

As far as I know, the only thing that is actually UB is creating/dereferencing a misaligned pointer, as rustc/llvm emits loads and stores assuming all pointers are always correctly aligned.
Not sure how the warning could be cleanly silenced though, if there is no other subtlety I'm missing making it wrong.
Le 1 novembre 2018 22:25:56 GMT+01:00, Preston Carpenter<EMAIL_ADDRESS>a écrit :

Ah so it is. Apologies for the noise then, I understand now how the
error is signaled.
Still, it would be nice if this was silenced since it's currently
unclear if it's UB to cast from a less strictly aligned pointer to a
more strictly aligned one or if it's only UB if they are misaligned.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/Smithay/wayland-rs/issues/211#issuecomment-435192831


Editing assignments as admin

Great. I think we are going to add some cleanup regrading time conversion on forms to this PR (@Sumukh)
We should also have tests for editing assignments.

Merged via #736


Current user profile card is displayed when no Client profile card is found

Bug Title:
Current user profile card is displayed when no Client profile card is found

Bug Description:
When an active user visits a link to a client's profile and the client does NOT have a valid WebID associated with their username, the active user's profile card is displayed.

Reproduction Steps:
1. When logged in as a current user, navigate to the Clients page
2. From Clients, select + Add Client
3. Enter all necessary form data, being sure to leave the generated WebId in-place; then, click "Add Client ✓"
4. From the table displaying all current Clients, follow the link to the newly-created Client's profile by clicking on their name as displayed in the table
If these steps are followed correctly, you should now see the Profile Card matching the current user

Expected Behavior:
Expected behavior is unclear, but some considerations for content to display might include:

a "blank" profile card that includes the client's name, nickname, and a placeholder image
a "No Profile Found" card
a form to assist the Case Worker or Organization with level-appropriate profile-editing for the client
a guide to assist clients with creating or accessing their pod and profile information

Actual Behavior:
The Profile Card of the current user (Case Worker) is displayed on a page that should contain information related only to the newly-related Client.

Screenshots (If applicable):
https://github.com/codeforpdx/PASS/assets/32883553/fd56a273-deca-4cfc-bee7-6e620927a9f2

Desktop (please complete the following information):

OS: Windows 10
Browser: Brave (Chromium), Firefox
Version: Brave v1.57.47 (Chromium 116) | Firefox 116.0.3

Smartphone (please complete the following information):
N/A

Issue resolved in recent merge to Development in PR #402.


Potential unaligned pointer value due to taking address of packed member.

usrsctp/usrsctplib/netinet/sctp_input.c:1708:15: error: taking address of packed member 'time_entered' of class or structure 'sctp_state_cookie' may result in an unaligned pointer value [-Werror,-Waddress-of-packed-member]
&cookie->time_entered,
^~~~~~~~~~~~~~~~~~~~
usrsctp/usrsctplib/netinet/sctp_input.c:2458:10: error: taking address of packed member 'time_entered' of class or structure 'sctp_state_cookie' may result in an unaligned pointer value [-Werror,-Waddress-of-packed-member]
&cookie->time_entered, sctp_align_unsafe_makecopy,
^~~~~~~~~~~~~~~~~~~~
2 errors generated.
usrsctp/usrsctplib/netinet/sctp_output.c:5928:30: error: taking address of packed member 'time_entered' of class or structure 'sctp_state_cookie' may result in an unaligned pointer value [-Werror,-Waddress-of-packed-member]
(void)SCTP_GETTIME_TIMEVAL(&stc.time_entered);
^~~~~~~~~~~~~~~~
usrsctp/usrsctp#iphoneos-armv7,private-headers/netinet/sctp_constants.h:1020:46: note: expanded from macro 'SCTP_GETTIME_TIMEVAL'
#define SCTP_GETTIME_TIMEVAL(x) gettimeofday(x, NULL)
^
1 error generated.
After looking at how time_entered is used it seems like it's always passed by pointer, so wouldn't it make sense to change the sctp_state_cookie struct to use a pointer to time_entered instead?

You can't put the pointer on the wire, you need to put the contents on the wire. I don't see why you would get an unaligned access, since the array in front of it has the length of 16 bytes.

oh, sorry I didn't realize that this struct is sent over the wire. At the moment I don't get an unaligned access - this is just a compiler warning, which essentially means that this is not portable, since some platforms could have a different alignment, which would turn this into a bug. On the other hand, since it's sent over the wire, I'd be reluctant to change the format, since this will most likely break backwards compatibility :(


Support  tag and multiple image formats for significant file size reductions

Here is a format comparison: https://unicefiogt.iogt.site/documents/4/image_formats_comparison.html (downloads)
In the example <picture> (supported by 95% of users globally, although not Opera Mini which will fall back to the imc src="") is used to serve progressively more accepted image formats with larger file sizes. If the browser cannot use the first option, then it will continue to the next option, falling back to the last option:
<picture>
  <source type="image/avif" srcset="https://unicefiogt.iogt.site/documents/2/Banner2.width-320.avif">
  <source type="image/webp" srcset="https://unicefiogt.iogt.site/documents/1/Banner2.width-320.webp">

</picture>

Firefox and Chrome will display the AVIF file, while Edge will display the WebP file.
With this approach we can use AVIF (68% of users), then fall back to webp (90% of users), and finally to PNG (virtually all users).
File sizes for this example image

PNG 19KB
WebP 12KB - 37% file size reduction, no visual change
AVIF 4KB - 79% file size reduction, acceptable visual change
Here are the three images taken via screenshot and saved losslessly

There is no noticeable difference between PNG and WebP. In PNG vs AVIF the difference in quality is noticeable in a side-by-side comparison, but doesn't harm the readability of the image in any way.

https://squoosh.app/editor is a good tool for experimenting with filetypes and encoding settings.

https://blog.logrocket.com/how-to-format-quality-images-using-avif-squoosh-and-go-avif/ claims that when using <picture> as above, browsers that don't support the tag will still fallback to the  tag.

Here is some use of the <picture> tag that may enable the browser itself to load the proper image size based on device resolution as in #1030
https://github.com/codingjoe/django-pictures

{% load pictures %}
{% picture profile.picture alt="Spiderman" loading="lazy" m=6 l=4 %}

The template above will render into:
<picture>
  <source type="image/webp"
          srcset="/media/testapp/profile/image/800w.webp 800w, /media/testapp/profile/image/100w.webp 100w, /media/testapp/profile/image/200w.webp 200w, /media/testapp/profile/image/300w.webp 300w, /media/testapp/profile/image/400w.webp 400w, /media/testapp/profile/image/500w.webp 500w, /media/testapp/profile/image/600w.webp 600w, /media/testapp/profile/image/700w.webp 700w"
          sizes="(min-width: 0px) and (max-width: 991px) 100vw, (min-width: 992px) and (max-width: 1199px) 33vw, 600px">

</picture>

Doing some testing on squoosh.app, I found:

Sometimes using compression formats like AVIF results in a significant loss of visual quality
Sometimes using these compression formats results in a larger filesize

As an ADMINISTRATOR I would like to be able to

enable or disable a specific compression codec site-wide if it doesn't meet my needs

In the Admin Panel this could be shown in site settings
Title USE ADVANCED IMAGE FORMATS - EXPERIMENTAL
Help text "IoGT is able to use advanced image formats, like WebP or AVIF, to reduce the file size of images on your site. This means users will consume less of their data packages when browsing the site, and the content will take less space on their device if they download it. Not all devices support these advanced image formats - for those devices IoGT will use standard formats like PNG or JPG. In most cases advanced image formats will reduce image file size without having a negative impact on how images look, but if you have any problems with the quality of your images you can consider disabling them here."
Check boxes to allow WebP and AVIF

Wagtail has an internal images app that is used throughout IoGT platform
We will have to replace its usage everywhere if we want to use django-pictures (not recommended)
Fortunately wagtail itself provides a lot of the features django-pictures provide

Like different image qualities (40, 70, 85 (default) etc) and image types (png, jpeg, webp etc)

So we can still use modern  and  tags with wagtail’s internal image app
Unfortunately AVIF format isn’t supported in wagtail as wagtail uses Pillow package under the hood and AVIF format support isn’t added in Pillow

As of now work is being done to add support for AVIF in Pillow (https://github.com/python-pillow/Pillow/pull/5201)

Currently, we have these main breakpoints in the website

Viewport Width
Layouts (Column)
Image Width

>= 1400
3
360/180

< 1400 & >= 768
2
360/180

< 768 & >= 360
1
360/180

< 359
1
360/180

CC: @cbunicef

Happy to hear there is a simpler solution that we can already use. As discussed let's make this require a feature flag to enable while we are testing.
On the question of image width at viewport widths, let's try this and see how it looks:

Viewport Width
Layouts (Column)
Image Width

>= 1400
3
600/180

< 1400 & >= 768
2
460/180

< 768 & >= 360 (should this be 767?)
1
460/180

< 359
1
340/180

We actually have a interesting behavior in our responsive configuration where the largest image is shown between 660-768px viewport sizes. That image is shown larger than when the viewport is 1400px.
Here are the approximate image dimensions I see when viewing at different viewport sizes:

Viewport Width
Approx Image Width

>= 1000
550, consistent (~55% of viewport at 1000)

999 to 768
scaling smaller as viewport reduces

768
425 (~55% of viewport)

767 & >= 660
570 (~75% of viewport at 767)

660 to 360
scaling smaller as viewport reduces

360
270 (~75% of vp)

270 to 240
scaling smaller as viewport reduces

240
144 (60% of vp)

How should we handle this? Probably it would be much better to tie our viewport categories to our CSS breakpoints, but the actual dimensions of images as shown are more complicated.

Have we considered how use of <picture> would affect offline mode?
Presumably, there would be more renditions for each source image and we wouldn't know which format or size would be required, so all renditions would have to be downloaded.

We will look into whether we can cache images based on the current viewport when downloading for offline mode.
Once this feature is ready for testing, we will remove #1060 which has been deployed to Sandbox, and then deploy this feature for testing. That way there won't be a conflict between the two features and no flags needed.

Viewport Width	Layouts (Column)	Image Width

= 1400	3	600/399
< 1400 & >= 768	2	460/230
< 768 & >= 360 (should this be 767?)	1	460/230
< 359	1	340/190

I had accidentally kept all the half-size image widths at 180, I edited so now they reflect half of the full size for each width.


Deterministic Help Message

Fixes https://github.com/Shopify/themekit/issues/179
I thought I would start with an easy one to get familiar with the code base. This makes the help message print exactly the same every time. Thats all.
cc @chrisbutcher @ilikeorangutans

👍


New package: HerbSearch v0.1.0

Registering package: HerbSearch
Repository: https://github.com/Herb-AI/HerbSearch.jl
Created by: @THinnerichs
Version: v0.1.0
Commit: 004f8c6bf92dfefe1a499d0b3561a24174b3610b
Reviewed by: @THinnerichs
Reference: https://github.com/Herb-AI/HerbSearch.jl/commit/004f8c6bf92dfefe1a499d0b3561a24174b3610b#commitcomment-125499678

[noblock] Please see https://github.com/JuliaRegistries/General/pull/89706#issuecomment-1686477304
Sorry for the minimal documentation here. We are building up to our main package Herb.jl which will come with a full deployed documentation for everything Herb... However, we want to wait with the documentation publication until all packages are published.


Compatibility between torchsparse and pytorch autograd engines

I am wondering whether torchsparse's autograd engine is compatible with pytorch's autograd engine?Is it possible to integrate a neural network built using torch sparse with another network built using normal pytorch. For example
import torch.nn as nn
from torchsparse import nn as spnn

model1 = snn.sequential( ... )

model2 = nn.sequential( ... )

out =  model2(model1(inputs))

loss = nn.MSEloss(out, gt)

loss.backward()

Yes, they are compatible. This could be a good example where all modules expect the classifier are TorchSparse modules while the final classifier is a standard PyTorch linear layer.


Is there any call back when the widget is dragged out of viewport?

Assume I have 100 images (2 in each Row). Now I have to move my first image to the 99th position (drag down).
P: I want to scroll down until the widget is being held down!

I am pretty sure there is a callback for this, not sure which one :(

Scroll down is already implemented.
scrollSpeedController option will be call when scrolling(maybe can treat as dragged out viewport).


Add Contact Us section in the footer

This will lead the visitors to the contact us page.
Please assign me this issue.

@Artemiskgg1 Please review #54


GitHub account: write access, right?

https://github.com/danger/danger.systems/blob/master/static/source/guides/getting_started.html.slim#L73 states you should add the bot to the (closed source) repo. Doing that GitHub will present options for Admin, Write or Read. I'm assuming the bot needs write-access, but it might prevent some confusion if this were part of the getting started docs.
Happy to submit a pull request if this is correct and you agree. Cheers!

I think it only needs read - though I have no private repos to test it on :D

The Danger bot only needs to comment on PRs, I think that would be allowable via read

When I change the access to 'Read', Danger fails quite neatly with:

Danger has failed this build.
Found 1 error and I don't have write access to the PR set a PR status.

So I guess write access is required!

Yep - makes sense then 👍

Alright, I've created PR #60 for it, let's close this one.


⚠ File access (beta) has degraded performance

In 351cea3, File access (beta) (https://beta.fyle.uk/file/fish) experienced degraded performance:

HTTP code: 200
Response time: 5425 ms

Resolved: File access (beta) performance has improved in 7a43363.


blobs not pushed

scenario

lone peer runs blobs.push
they then connect to e.g. a pub and establish reciprocal follow
the remote peer (e.g. pub) does not get the blob

Subsequent blobs go through fine.
Sometimes that initially pushed blob will turn up on pub but quite often not. Peers on the other side of the pub will likewise not get the blob because the pub doesn't have it

I think this might be resolved when #37 has addressed?
We shall see


feat: improve offline progress

Co-authored-by: httpsnet<EMAIL_ADDRESS>

I think it's a good change
We continue to update # 295, but we plan to create a new PR as the local repository is no longer applicable.
That email address should not be published
It's used for account registration and I never reply

I would recommend updating your github email settings (https://github.com/settings/emails) as it is currently public in all of your commits.


IE11: Drop polyfills & transpiling; focus on graceful degradation

Description of the requested feature
We spend a LOT of time testing in IE11 and trying to bug fix issues with the polyfills & upgrade process for IE11.  I think we can save significant development time by preventing all upgrading of components in IE11 and focusing instead on writing very minimal light dom styles for a graceful degradation of all components.
All components would be impacted by this change.
Steps

Removes ShadyCSS
Remove web component polyfills entirely — web component bundle and loader
Remove ES5 polyfill — custom-elements-es5-adapter.js
Remove ES5 transpile from rollup -> https://caniuse.com/es6
Update guidance to use module loading -> https://caniuse.com/es6-module
Doing this should automatically prevent IE11 from upgrading because it does not support type="module"
Dynamic import support: https://caniuse.com/es6-module-dynamic-import
Removes manually added (component-specific) polyfills (all to start and we can add back ones that Safari might need)

Related issues
List of all issues tagged just with IE11:

https://github.com/patternfly/patternfly-elements/issues/1351
https://github.com/patternfly/patternfly-elements/issues/1243
https://github.com/patternfly/patternfly-elements/issues/1343
https://github.com/patternfly/patternfly-elements/issues/1174
https://github.com/patternfly/patternfly-elements/issues/577

Closed issues relating to IE11 only: https://github.com/patternfly/patternfly-elements/issues?q=is%3Aissue+IE11+is%3Aclosed (9)

Big fan of this:

focusing instead on writing very minimal light dom styles for a graceful degradation of all components

My one question is:
Does the time saved (developer hours) offset the money we lose by not supporting IE11?

@zhawkins Asked some good questions this morning:
Questions for you:
- Can we actually drop IE11 support. Do we have massive amounts of money tied to IE11?
- Does dropping IE11 support mean:
1. We just stop trying to make WCs work in IE11 but still provide some light DOM so it's not completely busted
2. Scorched earth approach. No light DOM, no polyfills, no IE11.

I agree with your assessment on all the other stuff (size of work, speed, reduce bugs etc)

@zhawkins Good questions; IE11 support or no, I do firmly believe in graceful degradation. So "dropping" IE11 support to me just means moving forward writing code with more stable fallbacks.
In this case, I think the polyfills are hurting us more than helping.  Since all our components use light dom, all the content is there (hopefully semantically) for us to work with on the front-end.
I think if we manage the transition well, the business doesn't necessarily see a change and thus potentially no lost capital from IE11.  I think we have to plan out and envision a fallback experience that is good enough but by no means perfect.

I'm also open to lightdom CSS files and even lightweight fallback JS if needed.


Need valid skill manifest format example

This one https://microsoft.github.io/botframework-solutions/skills/handbook/manifest/ from bot framework does not work.

Thanks~

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

ID: 3987009c-4054-5e8e-8fdc-2e1291ded8f6
Version Independent ID: 43ab4768-00c0-6fca-4fde-951406022248
Content: Extend your bot using Bot Framework Skills - Power Virtual Agents
Content Source: power-virtual-agents/configuration-add-skills.md
Service: dynamics-365-ai
GitHub Login: @iaanw
Microsoft Alias: iawilt

I have tried to implement the Bot skill guided by document. However in Power Virtual Agent I have received the same errors.
My manifest URL is - https://skillbot-etdg3gt.azurewebsites.net/api/skill/manifest

For the first error, in your manifest.json file, change the "locale": "en-us" to "locale": "en".
I am not familiar with the second error as I don't see that on my end.

@dhinag, thanks~ The first problem is resolved.
But for the second one, it says "Contact your Skills developer". So what the developer should do? Since developer is myself.. The endpoint is https://someskill.azurewebsites.net/api/skill/messages while manifest url is https://someskill.azurewebsites.net/api/skill/manifest. It seems they match perfectly..

Receiving similar errors, "There's a mismatch in your skill endpoints.
Contact your skill developer. Learn more" and "Something went wrong while checking your skill.
Try again or contact your skill developer." My skill works fine in emulation and when using webchat.

@dimasguillermo  to fix this issue please do the following:
Follow these steps link
Make sure you are updating the app you used to deploy your skill bot.
We have this check to ensure users using PVA can only add skills deployed in there tenant.
Please try this and see if this works for you.

@sbacha Thanks!

@sbacha could you add the link under the error 'There's a mismatch in your Skill endpoints.'? Thanks


xrdp causing high kernel mode CPU time due to constant context switches

This show the CPU usage:
root@VM-DEBIAN:~# vmstat 5
procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
 0  0 183520   4308   2820  80156    0    1     3     1   84   35  0  3 97  0  0
 0  0 183520   4068   2828  80152    0    0     0     6 1338 4018  2 32 66  0  0
18  0 183520   4012   2828  80144    0    0     0     0 1310 4082  1 32 67  0  0
 0  0 183520   4016   2828  80140    0    0     0     0 1366 4065  2 31 68  0  0
 0  0 183520   4076   2828  80140    0    0     0     0 1420 4212  1 30 69  0  0
 0  0 183520   4076   2828  80140    0    0     0     0 1369 4150  2 31 68  0  0
 0  0 183520   4076   2828  80140    0    0     0     0 1363 4084  1 31 68  0  0
 0  0 183520   4076   2828  80140    0    0     0     5 1405 4123  1 32 67  0  0
 2  0 183520   4076   2828  80140    0    0     0     0 1364 3998  1 33 66  0  0
 4  0 183520   4076   2828  80140    0    0     0     0 1399 4037  1 36 63  0  0
 0  0 183520   4016   2828  80140    0    0     0     0 1347 3990  1 33 66  0  0
 2  0 183520   4016   2828  80140    0    0     0     0 1427 4086  2 34 64  0  0
[...]

Note the high number of in (interrupts per second) and ic (context switches per second) taking 30% CPU time. ps shows well over 20 xrdp-processes running.
root@VM-DEBIAN:~# pidstat -wt
Linux 4.9.0-3-amd64 (DEBIAN) 	09/10/2017 	_x86_64_	(1 CPU)

10:47:25 PM   UID      TGID       TID   cswch/s nvcswch/s  Command
[...]
10:47:25 PM   107     13770         -      5.38      0.00  xrdp
10:47:25 PM   107         -     13770      5.38      0.00  |__xrdp
10:47:25 PM   107     13840         -      5.38      0.00  xrdp
10:47:25 PM   107         -     13840      5.38      0.00  |__xrdp
10:47:25 PM   107     13913         -      5.38      0.00  xrdp
10:47:25 PM   107         -     13913      5.38      0.00  |__xrdp
10:47:25 PM   107     13984         -      5.38      0.00  xrdp
10:47:25 PM   107         -     13984      5.38      0.00  |__xrdp
10:47:25 PM   107     14054         -      5.38      0.00  xrdp
10:47:25 PM   107         -     14054      5.38      0.00  |__xrdp
10:47:25 PM   107     14124         -      5.38      0.00  xrdp
10:47:25 PM   107         -     14124      5.38      0.00  |__xrdp
10:47:25 PM   107     14194         -      5.38      0.00  xrdp
10:47:25 PM   107         -     14194      5.38      0.00  |__xrdp
10:47:25 PM   107     14267         -      5.38      0.00  xrdp
10:47:25 PM   107         -     14267      5.38      0.00  |__xrdp
10:47:25 PM   107     14337         -      5.38      0.00  xrdp
10:47:25 PM   107         -     14337      5.38      0.00  |__xrdp
10:47:25 PM   107     14407         -      5.38      0.00  xrdp
10:47:25 PM   107         -     14407      5.38      0.00  |__xrdp
10:47:25 PM   107     14477         -      5.38      0.00  xrdp
10:47:25 PM   107         -     14477      5.38      0.00  |__xrdp
10:47:25 PM   107     14551         -      5.37      0.00  xrdp
10:47:25 PM   107         -     14551      5.37      0.00  |__xrdp
10:47:25 PM   107     14621         -      5.37      0.00  xrdp
10:47:25 PM   107         -     14621      5.37      0.00  |__xrdp
[...]

This is only about 5% of the output of pidstat -wt concerning xrdp. It seems to be a major resource hog. There are other lines, but none exceeding 1 cswch/s. If I do systemctl restart xrdp, then the CPU usage goes to normal and pidstat -wt shows only a few lines of xrdp with 0 context switches. But the list grows with time. The 30% CPU usage is noted after some 7 days of operation.
What is going on here? I am using latest up-to-date Debian 9.1 with minimal installation (lxde-core and xrdp).

Can you make a ps auxf output to know the possible attached process, and perhaps the output of a strace of one of these pid of xrdp strace -p <pid>? Which version are you using ?

I rebooted and disabled most options. I also set forked = false to see whether that will improve things.
As far as I remember, there were no attached processes to any of the xrdp. I used ps -ejH to check that.
root@VM-DEBIAN:~# apt list xrdp
Listing... Done
xrdp/stable,now 0.9.1-9 amd64 [installed]

After about a week running, with only one connection allowed, I have high CPU usage again similar to the above, due to high switching. pidstat -wt -p 433 outputs some 300 lines related to xrdp. I can not even connect with RDP. This should really not be on a stable Debian release... It seems hardly tested, if at all.

Anyway,  strace - 433 doesn't show much. After some time this occurs:

We have that high CPU issue that was fixed in 0.9.3.
Sometimes, xrdp would loop forever on disconnect.
Maybe you are hitting that.
2c96908ea500880c71d3593dd2b2b5b5275bdbf5

I forgot to mention that xrdp from stable Debian Stretch version is 0.9.1-9. Apparently, even the unstable branch is still at 0.9.1-9. I assume there is a reason for this? Is my only option compiling it from source? (A am a bit reluctant in bypassing the Debian package installation system.)

Ask the Debian maintainers to apply 2c96908 patch to Debian's 0.9.1 package. The patch is quite simple.  Also, please consider asking them to upgrade xrdp package in unstable branch to the latest version (v0.9.4 will be released in this month).

I reported the bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=876976

Debian's package has been updated.

I am just working on also updating xrdp in stretch with the next point release. 0.9.4 is already on its way to stretch-backports as well.

Should be fixed at latest Debian package 0.9.4.

Seems usermode 100% is jumping due to clipboard. I noticed a few times that if I do a copy on the remote PC, to paste in the local PC, pasting doesn't work. At the same time I notice 100% CPU utilization on the remote Debian due to xrdp.

This Debian server was running on Virtualbox 4.3 guest the whole time. In dsmg I noticed ethernet disconnects possibly related to issue 13839. I upgraded to Virtualbox 5.2 two weeks ago and ´xrdp´ seems unusually stable. Problem really seems to be solved.

Seems to be solved.

Indeed solved. Not a single issue since upgrade to Virtualbox 5.2.


Error is not highlighted in Android Studio.

Error is not highlighted in Android Studio. How can I solve this?

Hi @bhanuka96, Thanks for filing the issue. Please ensure that you are using the latest dart and flutter plugins in Android Studio and try restarting the Android Studio. Please do share the output of flutter doctor -v

@bhanuka96

Please ensure that you are using the latest dart and flutter plugins in Android Studio and try restarting the Android Studio.

Can you please confirm you have tried this?
And if this issue happens only in Android Studio I believe it should be filed in flutter-intellij

@maheshmnj Yes, It's only. I will file in there


Poor performance when training the custom dataset

Thank you very much for your great work. After using the custom dataset (16 cameras and 450 frames, download from another repository named GPS-Gaussian) to extract SMPL parameters, training with the project code did not get satisfactory results (as shown in the following figure). However, using the ZJU-MoCap dataset to extract SMPL parameters using the same method and training, the results were acceptable. Is there a solution to this situation?

请问如何制作自己的数据集？

Hi, to me it looks like the non-rigid deformation module is not working properly, could you check if the weight is updated?


javax.net.ssl.SSLException: Connection reset error with OpenJDK Alpine

Hi Everyone,
I am trying to create an OpenJDK Docker image with Alpine as a base image but I am facing javax.net.ssl.SSLException: Connection reset error.
Tried the following

adding ca-certificates, p11-kit-trust, java-cacerts to the Docker file generating the OpenJDK image

Added our internal certificates to /usr/local/share/ca-certificates/

3.Updating ca-certificate password with keystore
Alpine Version : 3.18
JDK Version : jdk8u412-b08
BINARY_URL='https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u412-b08/OpenJDK8U-jdk_x64_alpine-linux_hotspot_8u412b08.tar.gz'
But Still facing the same error. Request your help on this. Attaching our Docker file for your reference.
Dockerfile.txt

@NisharunnisaShaik I assume you're able to create the Docker image just find but when you run your application and it tries to make a connection you get that error?
Generic GPT4o advice follows:

Debugging SSL issues in a Java application running in a Docker container can be challenging, but here are some steps to help you determine if CA certificates are being loaded correctly:

Verify CA Certificates in Docker Image:
Ensure that the CA certificates are correctly installed in your Alpine-based Docker image. You can check this by running the following command inside your container:
docker exec -it <container_id> /bin/sh

Then, within the container, verify that the CA certificates are present:
ls -l /etc/ssl/certs/

or in your case:
```sh
/usr/local/share/ca-certificates/
```

If you don't see the expected certificates, you might need to install them:
apk add --no-cache ca-certificates

Check Java Truststore:
Java uses its own truststore for SSL/TLS connections. You can check if the default Java truststore includes the necessary CA certificates:
keytool -list -keystore $JAVA_HOME/lib/security/cacerts -storepass changeit

Replace $JAVA_HOME with the path to your Java installation.

Specify Custom Truststore:
If you are using a custom truststore, ensure that your Java application is configured to use it. You can set the truststore and password via JVM options:
java -Djavax.net.ssl.trustStore=/path/to/truststore -Djavax.net.ssl.trustStorePassword=yourpassword -jar yourapp.jar

Debug SSL Connections:
Enable SSL debugging to get more detailed information about the SSL connection process. This can help you pinpoint where the connection is failing:
java -Djavax.net.debug=ssl -jar yourapp.jar

This will output detailed debug information to the console, which can help identify issues with certificate loading or SSL handshake.

Network Issues:
Ensure there are no network issues causing the Connection reset error. Verify connectivity to the service from within the container:
curl -v https://your-service-url

Update Certificates:
Sometimes, the CA certificates bundled with Alpine or OpenJDK might be outdated. Update them to the latest versions:
apk update && apk upgrade
apk add --no-cache ca-certificates
update-ca-certificates

Logs and Errors:
Check the logs and errors for more detailed information about the exception:
try {
    // Your SSL connection code
} catch (javax.net.ssl.SSLException e) {
    e.printStackTrace();
}

By following these steps, you should be able to determine whether the CA certificates are being loaded correctly and identify the root cause of the javax.net.ssl.SSLException: Connection reset error.


Salsa unreachable code detected is not so smart

From @alexandrudima on January 27, 2016 10:45
Testing #2218
function xx() {
    if (true) {
        return 5;
    } else {
        return '5';
    }
}

This shows a squiggly on the second return saying 'Unreachable code detected'.
The following or any other const expression does not:
function xx() {
    if (true || true) {
        return 5;
    } else {
        return '5';
    }
}

same with if (!false) or if (!true), etc.
Copied from original issue: Microsoft/vscode#2430

From @alexandrudima on January 27, 2016 10:46
Also doesn't work with if(1) or if(0) -- it appears to be hard coded for true or false

ok :)

Sorry, forgot to leave a comment. We intentionally don't compute these complex expressions because it's pretty common to write e.g. if(true || oldCondition) while debugging


trivy: adds maven-invoker-plugin ignoring config

I've given up trying to convince trivy to consider maven-invoker-plugin a test vs a deployment. This adds a config and a helper script to run it ad-hoc.

marking draft in case upstream accepts a plan forward which is to consider src/it deps "dev dependencies" which would have the same affect of not burdening folks with noise, unless they opt into it.

https://github.com/aquasecurity/trivy/pull/6213 obviates this


Potential segmentation fault in /src/cpu/pred/ltage.cc:556

In the update function when trying to allocate new entries, is it possible that changing the value of X (line 556 558) might result in potential segfault in (line 562)? To me it seems that there is no any bound checking.
            int Y = nrand &
                ((ULL(1) << (nHistoryTables - bi->hitBank - 1)) - 1);
            int X = bi->hitBank + 1;
            if (Y & 1) {
                X++;
                if (Y & 2)
                    X++;
            }
            // No entry available, forces one to be available
            if (min > 0) {
                gtable[X][bi->tableIndices[X]].u = 0;
            }

I met some segfaults when I run the simulator with Ltage branch predictor. I think here are some potential bugs.
./perlbench.sh: line 11:  7124 Segmentation fault      (core dumped) ../build/ARM/gem5.opt --outdir=$OUTPUTDIR ../configs/example/se.py --cmd=$CMD -o "$TRAIN_OPT" --cpu-type=O3_ARM_v7a_3 --caches --branch-pred=$PRED

I am currently closing all issues on github and disabling the issue support.
If you have general gem5 questions, please use the gem5-users mailing list (http://www.gem5.org/mailman/listinfo/gem5-users).
Please report any issues/bugs to the gem5-dev mailing list (http://www.gem5.org/mailman/listinfo/gem5-dev). However, gem5 is an open source project, so you are encoraged to fix any bugs/issues you find an submit a review request on our review site: https://gem5-review.googlesource.com
More details can be found in the CONTRIBUTING file: https://gem5.googlesource.com/public/gem5/+/master/CONTRIBUTING.md


Update ChemMasterComponent.cs

About the PR
I believe this will fix the bug where pills can be made with 50u of chems even though they can only really be made with 25u and it causes them to become bugged out.
Changelog
🆑 Changed the upper bound for making pills from 50u to 25u. This should stop the bug where you can make pills with more than 25u (which caused them to break)

Tested by Pspritechologist on their local server. It works and fixes the issue.


Text truncated on left side of final page of Alexa instructions

Actual Behavior
Text truncated on left side of final page of Alexa instructions

this is fixed in 2.1.0


Remove unnecessary outside click handling Code

This piece of code causes
https://github.com/withspectrum/spectrum/issues/2897, which breaks the app
for some people. I couldn't find anything that didn't work when removing
it, so I figure it's safe to remove it. :sweat_smile:
/cc @juliankrispel who might know why this was there in the first place and
why we might not be able to remove it.

How do I repro that?
Is the right solution to make sure we only change readOnly if readOnly is true in the first place? How do we do that?

Replaced by #84!


Design of VPN for kgp network

KGP Network does not need a proper VPN with heavy encryption and stuff.
We just need to have a server that unloads the packet and then forwards it to the correct destination.

Trying to send UDP over TCP and then routing it through Wireguard or using a resource heavy VPN like OpenVPN creates a performance loss and packet loss ( not ideal for gaming). OpenVPN causes much speed loss, causing only 24 Mbps on Wifi networks and causes huge instant packet losses in games.

A few methods I propose, which can work much better on free servers like AWS, Azure and DigitalOcean aree :

Basic packet transforming in the kernel via BPF/XDP hooks ??
Testing a basic/encrypted proxy at userspace
Testing a basic/encrypted in kernel proxy (will be faster than userspace)
An in kernel VPN similar to Wireguard which works on TCP -> This eliminates sending UDP over TCP which is again unpacked by Wireguard to be forwarded, causing a performance loss
Bypass linux kernel network stack and use custom stack developed using something like DPDK and can be hosted online

Need more input on these.
Some resources:
Wireguard Whitepaper
Kernel Bypass
DPDK

This will include dealing with iptables and forwarding rules in both Linux and windows on the user and just the kernel implementation on the server side.

For tasks : https://github.com/users/sheharyaar/projects/1


⚠ ClamAV has degraded performance

In aefb660, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 53 ms

Resolved: ClamAV performance has improved in 71a808e.


Add timeout to calls so they don't pend forever

this is especially important for retrieving blocks, as interceptor gets stuck in trying to retrieve block while server does not respond

@coderabbitai review

@coderabbitai review


Components API Reference

Hello,
Is there any documentation for me to know how to use the UI components nuxt7 provides?

Nuxt7 is a wrapper over Framework7. You can check out the docs for Framework7 Vue here: https://framework7.io/vue/.

Nuxt7 is a wrapper over Framework7. You can check out the docs for Framework7 Vue here: https://framework7.io/vue/.

Thank you. I actually realized that one a week after I posted this issue.


Firing arc mismatch

Firing arc in code is not match with firing arc on ship stand insert's image

Fixed, minor adjustments are still required


Readme.md

Update readme.md
According to my newly PR of Doubly Linked List.

These changes should belong in PR #235. Closing this PR. Please follow up on #235.


Select now() returns wrong time

Context
greyb ~ $ ./glaredb local
GlareDB (v0.2.1)
Type \help for help.
Using in-memory catalog
〉select now();

Expected
postgres=> select now();
              now
-------------------------------
 2023-07-29 16:32:31.782682+00
(1 row)

Actual
+----------------------+
| now()                |
+----------------------+
| 1970-01-01T00:00:00Z |
+----------------------+

Impact

Furthermore:
select now();

On cloud causes disconnect from the compute engine

I'm going to move this out of v0.3.0 since we fixed the panic here: #1431

Unassigning myself, as it will be solved by #1432 and I haven't committed to taking that on.


TypeError: tuple indices must be integers or slices, not tuple when translating

I have this error: TypeError: tuple indices must be integers or slices, not tuple, when try this:
python translate.py -data_pkl m30k_deen_shr.pkl -model trained.chkpt -output prediction.txt

It would be useful to know which line in the code the error message you got is pointing to. Otherwise it's really hard to diagnose this issue.


Modal conflict with bootstrap

Modals are using class .modal, which bootstrap uses too. So if the page also includes bootstrap, the modals won't display materially. +

I wouldn't recommend the use of bootstrap together with Materialize, as there are a few feature overlaps. At this point I doubt there much that can be done about this specific issue, as editing that name would be a breaking change.

@carlosperate Is there any way to solve this problem, I also used in the project to the bootstrap and the package, there are some styles of conflict

You can just rename the function
On Jul 27, 2015 9:37 AM, "guoyoujin"<EMAIL_ADDRESS>wrote:

@carlosperate https://github.com/carlosperate Is there any way to solve
this problem, I also used in the project to the bootstrap and the package,
there are some styles of conflict
—
Reply to this email directly or view it on GitHub
https://github.com/Dogfalo/materialize/issues/1803#issuecomment-125266918
.

@Dogfalo Ok, I'll give it a try, according to this method should be useful to you, but may face is that many properties, have to rename, it may not be a good way, but now can only be the case, thank you for your answer

Adding bootstrap and materialize is probably causing more problems than you might realize at first and is not recommended.

d

This is so cumbersome. Could there at least be alias functions for use cases where bootstrap is needed?
I've gone into the Materialize.js file and changed the dropdown function name like this
$.fn.dropdownMat = function (options) { ... (line 623)

Found and replaced all instances of dropdown() inside this file too. Works fine side by side with Bootstrap now...
I believe this function should be called menu or something similar, since this is the Material namespace equivalent.


Deploying GCF gets GitHub Action stuck in infinite loop

Question
Apologies if I'm doing something wrong.  But I followed all of the documentation here and here; am trying to also deploy my GCF (a function called UpdateMemberMetrics) after my GAE deploys.  The GitHub Action deploys my GAE fine but then when it goes to deploy my GCF, it gets stuck in this weird infinite loop that I need to cancel the workflow on manually:

FWIW, the GCF itself deploys fine.  When I check the console, it's there and has only incremented one version:

My GitHub Action yaml:
on:
  push:
    branches:
      - main

name: Deploy to Google App Engine PROD

jobs:
  deploy:
    environment: prod
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: Deploy to App Engine
        id: deploy
        uses<EMAIL_ADDRESS>        with:
          deliverables: app.yaml
          project_id: ${{ secrets.GCP_PROJECT }}
          credentials: ${{ secrets.GCP_SA_KEY }}

      - name: Deploy Google Cloud Functions
        id: deploy-gcf
        uses: google-github-actions/deploy-cloud-functions@main
        with:
          name: UpdateMemberMetrics
          runtime: go113
          env_vars_file: cloudfunctions.yaml
          project_id: ${{ secrets.GCF_PROJECT }}
          credentials: ${{ secrets.GCP_SA_KEY }}
          event_trigger_type: google.pubsub.topic.publish
          event_trigger_resource: ${{ secrets.TOPIC }}
          event_trigger_service: pubsub.googleapis.com

Am I doing something wrong?
(Btw-- when I run gcloud from my console directly; the GCF deploys fine.  Ie. This works:
$> gcloud functions deploy UpdateMemberMetrics --trigger-topic $TOPIC --runtime go113 --env-vars-file ./cloudfunctions.yaml)
Would be grateful for any help/advice.  Thank you! 🙏

Ah, poking around I just found:

https://github.com/google-github-actions/deploy-cloud-functions/issues/87

My problem is the same as the problem described there!  Except I'm coding in Go and not Node.js
Also, my repo is public:  https://github.com/r002/storyline-api
I have a .gcloudignore file.  My repo is also quite small, excluding .git.  Only 24 files and ~100kb.

Hi @r002
Could you link to your repo/action run if public? From the screenshot it seems like it was only 1m33s before cancelled while #87 was a +30m.
Also the updating a function log line gets printed out as we wait for the cloud function operation to complete (in case that is what you meant by infinite loop)

Oops just saw your repo in the comment. Looking at https://github.com/r002/storyline-api/runs/3118258524?check_suite_focus=true it does seem like it only ran for ~ 1m30s. Could you re trigger and let it try and run to completion?

Ah, "Updating function deployment" appearing repeatedly is the expected behavior.  Sorry, my mistake. 🤦♂  I just re-ran the job and waited; everything's working 100% fine.  Sorry for the bogus issue! 🙇♂


Bring back unix: work around arm-linux-gnueabihf-gcc bug (#4537)

Both gcc 11 and 12 emit wrong code for a function call pointer in one very specific context.
Fixes: https://github.com/libuv/libuv/issues/4532

Refs: https://github.com/libuv/libuv/pull/4564#issuecomment-2396403014


Support for ES6 syntax

I just found out that this beautiful and shiny boilerplate does not support ES6.
Accidentally figured this out while seeing gulp-angular-filesort  errors on arrow functions in source code.
The problem is that the project is already in development and I don't want to change horses on the ride. And I like this boiler. It is made with love.
Maybe any receipts available on how to safely add ES6-ES5 transpiling to this boilerplate?
It is almost 2017 so using ES5 instead of ES6 looks like a real issue to me...

Hi @fedorinoGore, we're currently working a version for angular2/ionic2 so there's currently no budget for large feature tasks like this one.
If you're interested in getting some work done on this I'm happy to help you with a PR.

Inactive.


⚠ Turnos 24x7 has degraded performance

In 88b2a2d, Turnos 24x7 (https://reservas-dev.alternativasinteligentes.com/) experienced degraded performance:

HTTP code: 200
Response time: 3788 ms

Resolved: Turnos 24x7 performance has improved in 05d5463.


Making MSBuild great again

This PR integrates the new-msbuild branch back into dev, which gets us one large step of the way to #666. Essentially, this integrates MSBuild in a much better way with OmniSharp, using official MSBuild packages and a custom-build for Mono.
Adding a couple of smart people to review, but others are welcome to chime in.

this is a hugely welcome change! 🎉 🎈 🍰
also, at this point I think there is no point in keeping OmniSharp .NET Core build anymore?

@filipw: .NET Core builds are still a good thing so that we have standalone OmniSharp builds. However, once I can get the other part of #666 finished (moving onto a local, embedded Mono), we can probably drop them if we want since we'll have standalone net46 builds of OmniSharp.

once I can get the other part of #666 finished

makes sense 👍

OK. In it goes! :smile:


Self config plugins is not a function on laravel mix

I got an error when want to intialize date range picker on laravel mix.
Here the error logs and the code to reproduce.. Am i miss something?
bootstrap.js
require('flatpickr');

const $daterangePicker = $('[data-plugins="daterange-picker"]');

if ($daterangePicker.length > 0) {
  $daterangePicker.flatpickr({
    mode: 'range',
  });
}

on html blade view:
<div class="form-group mr-2">
 <input type="text" class="form-control form-control-sm"
        data-plugins="daterange-picker" placeholder="2018-10-03 to 2018-10-10">
</div> <!-- end form-group mr-2 -->

Error logs:
TypeError: self.config.plugins[i] is not a function
    at parseConfig (flatpickr.js:1977)
    at init (flatpickr.js:588)
    at FlatpickrInstance (flatpickr.js:2522)
    at _flatpickr (flatpickr.js:2541)
    at jQuery.fn.init.jQuery.fn.flatpickr (flatpickr.js:2592)
    at HTMLDocument.<anonymous> (kuhaku.js:22)
    at mightThrow (jquery.js:3762)
    at process (jquery.js:3830)

Your Environment

flatpickr version used: 4.6.3
Browser name and version: Google Chrome 84.0.4147.89 (64bit)
OS and version: Windows 10

trying to do the same thing with javascript browsers code and getting the same error when copying the example code from (https://flatpickr.js.org/plugins/)

I have got the solution here


ArrowTypes as standalone package doesn't interoperate with Arrow.ArrowTypes

I think Arrow should probably depend on ArrowTypes, not directly include it's code. The following shows that we have two separate modules with separate functions, e.g. toarrow:
julia> import Arrow

julia> import ArrowTypes

julia> Arrow.ArrowTypes
Arrow.ArrowTypes

julia> Arrow.ArrowTypes == ArrowTypes
false

julia> Arrow.ArrowTypes.toarrow == ArrowTypes.toarrow
false

julia> Arrow.ArrowTypes.toarrow() = 1

julia> methods(Arrow.ArrowTypes.toarrow)
# 12 methods for generic function "toarrow":
[1] toarrow() in Main at REPL[8]:1
[2] toarrow(::Nothing) in Arrow.ArrowTypes at /Users/eph/.julia/packages/Arrow/k23fl/src/ArrowTypes/src/ArrowTypes.jl:168
[3] toarrow(x::Char) in Arrow.ArrowTypes at /Users/eph/.julia/packages/Arrow/k23fl/src/ArrowTypes/src/ArrowTypes.jl:181
[4] toarrow(x::Symbol) in Arrow.ArrowTypes at /Users/eph/.julia/packages/Arrow/k23fl/src/ArrowTypes/src/ArrowTypes.jl:203
[5] toarrow(x::AbstractSet) in Arrow.ArrowTypes at /Users/eph/.julia/packages/Arrow/k23fl/src/ArrowTypes/src/ArrowTypes.jl:215
[6] toarrow(x::Base.UUID) in Arrow.ArrowTypes at /Users/eph/.julia/packages/Arrow/k23fl/src/ArrowTypes/src/ArrowTypes.jl:230
[7] toarrow(x::Dates.Date) in Arrow at /Users/eph/.julia/packages/Arrow/k23fl/src/eltypes.jl:208
[8] toarrow(x::Dates.Time) in Arrow at /Users/eph/.julia/packages/Arrow/k23fl/src/eltypes.jl:242
[9] toarrow(x::Dates.DateTime) in Arrow at /Users/eph/.julia/packages/Arrow/k23fl/src/eltypes.jl:291
[10] toarrow(x::TimeZones.ZonedDateTime) in Arrow at /Users/eph/.julia/packages/Arrow/k23fl/src/eltypes.jl:300
[11] toarrow(x::P) where P<:Dates.Period in Arrow at /Users/eph/.julia/packages/Arrow/k23fl/src/eltypes.jl:374
[12] toarrow(x) in Arrow.ArrowTypes at /Users/eph/.julia/packages/Arrow/k23fl/src/ArrowTypes/src/ArrowTypes.jl:83

julia> methods(ArrowTypes.toarrow)
# 6 methods for generic function "toarrow":
[1] toarrow(::Nothing) in ArrowTypes at /Users/eph/.julia/packages/ArrowTypes/1o68O/src/ArrowTypes.jl:168
[2] toarrow(x::Char) in ArrowTypes at /Users/eph/.julia/packages/ArrowTypes/1o68O/src/ArrowTypes.jl:181
[3] toarrow(x::Symbol) in ArrowTypes at /Users/eph/.julia/packages/ArrowTypes/1o68O/src/ArrowTypes.jl:203
[4] toarrow(x::AbstractSet) in ArrowTypes at /Users/eph/.julia/packages/ArrowTypes/1o68O/src/ArrowTypes.jl:214
[5] toarrow(x::Base.UUID) in ArrowTypes at /Users/eph/.julia/packages/ArrowTypes/1o68O/src/ArrowTypes.jl:229
[6] toarrow(x) in ArrowTypes at /Users/eph/.julia/packages/ArrowTypes/1o68O/src/ArrowTypes.jl:83

Yes; this was definitely the plan once ArrowTypes got registered; just forgot to go back and do the actual decoupling.

Ah ok, makes sense! I can make a PR if that would help. Would you commit a Manifest and dev ArrowTypes in Arrow? (So you can jointly develop them). Or no manifest and treat them as fully separate packages?

I'd say just treat them as separate packages


Support for DynamoDB with >100 tables

This pull request adds support for DynamoDBs with >100 tables.

The output from ListTables is paginated, with each page returning a maximum of 100 table names.
Source: http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ListTables.html

Merged.  I hope you don't mind, i factored out the loop into a helper function to clean up that provisioner a little.  Thanks again for the PR :)

@tmitchel2 Great, thanks. I don't mind at all :)


[1.17]. Odd behavior with api

Hi,
I use the api in my Mining Dimensions mod.   I have four dimensions that I add and it works just fine with three of them.  But one dimension it does not return to the original portal, but creates a new portal about 50 blocks away.   This happens in single player and on a dedicated server.
I compile my mod with:  0.0.1-beta37-1.17
Mining Dimensions latest sources:   https://github.com/kwpugh/mining_Dimensions-1.17/tree/1.17.0/src/main

it is the tethering_dim which has the problem

Any help you can provide would be greatly appreciated.
Regards
Kevin

Duplicate of #16. This is an issue I've been chasing for some time now. I can't quite seem to figure out whats causing it. I might just have to use a bandaid fix of just saving the players coords to return to later when using a portal.

I  haven't seen any reports  of the duplicate portals since the 42 update.


Link is not helpful

The link in the Note to the Modern Desktop Deployment Center just opens a marketing site for Microsoft. The aka.ms address know longer works.

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

ID: ec00a1bd-2fc6-6275-b4ac-c5f7526de0c7
Version Independent ID: 8ba861e3-c974-a765-d1ff-e07a864c990a
Content: Getting Started - Modern Desktop Deployment
Content Source: microsoft-365/enterprise/getting-started.md
Service: o365-solutions
GitHub Login: @JGruszczyk
Microsoft Alias: jogruszc

Created PR #136 for this issue.

Addressed 136 but fixed spelling, links


shift_t() floating point intensity signal sometimes gives negative FFT values

Since we have implemented the ability for an intensity signal to be a floating point number FFTs allow positive values to be shifted to negative values. This issue revealed itself when dispersing the signal with the shift_t() function. See the Figure below and the notebook I placed in a separate repo. Obviously intensity values can not be negative, so we need to fix this. It does not seem to be affected by the ratio of the sampling size and the time shift.

@bshapiroalbert Is this still an issue? I think that we may have fixed this in the new API, but I want to make sure it's not still a known problem.

@Hazboun6 it's certainly not a known problem if it still exists. Most of the work I've done has been with the subintegrated pulses though so I don't really know if it still exists. May want to check it quickly first.


Support ML pipelines

This seems relatively straightforward... except for the naming scheme. For example, what do we call the function that creates a LogisticRegression?
Related: https://github.com/rstudio/sparklyr/issues/593
cc @kevinushey @chezou

Hi All
i am connected to spark standalone cluster but when i am importing data from cassandra its keep on waiting stage please help on this, bellow is the code..
library(pipeR)
library(sparklyr)
library(dplyr)
Sys.setenv(SPARK_HOME='/home/ubuntu/spark')
sc <- spark_connect(master = "spark://XXXXXXXXX:7077")
Executed
sparkSession <- invoke_static(sc, "org.apache.spark.sql.SparkSession", "builder") %>>%
invoke("config", "spark.cassandra.connection.host", "XXXXXXXX:9042") %>>%
invoke("getOrCreate")
Executed
cass_df <- invoke(sparkSession, "read") %>>%
invoke("format", "org.apache.spark.sql.cassandra") %>>%
invoke("option", "keyspace", "test") %>>% invoke("option", "table", "kv") %>>%
invoke("load")
Executed
bbh_tbl <- sparklyr:::spark_partition_register_df(sc, cass_df, "bbh", 1, TRUE)
Waiting...........

Can you elaborate a bit more? Based on #593, it seems like there's two main paths forward:

Provide a function like spark_pipeline(), that accepts an array of PipelineStage objects,
Provide something like spark_array() that can be used to explicitly construct a Spark array of 'stuff'.

I'm marginally in favor of 1), but curious whether you have something separate in mind.

@kevinushey I'm aligned with you here, but am thinking it'd be nice to have syntactic sugar for making the PipelineStage objects. E.g. instead of writing
lr <- invoke_new(sc, "org.apache.spark.ml.classification.LogisticRegression") %>%
  invoke("setMaxIter", ensure_scalar_integer(10))

the user can write something like
lr <- ???_logistic_regression(sc, max_iter = 10L)

where ??? is the prefix for this type of function, and we'd have nice print methods for them.

Ahh, got it. Perhaps we want something like:
spark_linear_regressor()
spark_logistic_regressor()

That is, use the spark_ prefix to help make it somewhat more clear that these create Spark (JVM) objects that are mainly intended for lower-level usages, and change the form of the function name (when appropriate) to make it more clear that this is defining / creating an object, and not immediately defining + training a model.

Tracking in #944


Ability to recognize Embedded Clusters in kurl proxy

What this PR does / why we need it:

Ability to recognize Embedded Clusters in kurl proxy
Which issue(s) this PR fixes:

Does this PR require a test?

NONE
Does this PR require a release note?

NONE

Does this PR require documentation?

NONE

Merging as this doesn't affect current functionality.


Synapse Link example

Dear all,
can you describe a new example of cost estimation when reading data from an Azure Synapse CosmosDB link?
Thanks,
JP
[Enter feedback here]

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

ID: 70b0d2f7-186d-0a74-b25c-2784bae2705f
Version Independent ID: 4e3e9d47-9a15-fec0-01e0-2b324cc22eb2
Content: Cost management for serverless SQL pool - Azure Synapse Analytics
Content Source: articles/synapse-analytics/sql/data-processed.md
Service: synapse-analytics
Sub-service: sql
GitHub Login: @filippopovic
Microsoft Alias: fipopovi

reassign:jocaPC

#reassign:jocaPC

The following users don't have valid GitHub IDs, or are not collaborators on this repo: jocapc

#reassign:jovanpop-msft

Thanks for your dedication to our documentation. Unfortunately, at this time we have been unable to review your issue in a timely manner and we sincerely apologize for the delayed response. We are closing this issue for now, but if you feel that it's still a concern, please respond and let us know. If you determine another possible update to our documentation, please don't hesitate to reach out again. #please-close


failed for real

:ok_woman: PR passed with a vote of 1 for and 0 against, with a weighted total             of 1.0 and a threshold of 1.0.
See merge-commit 1e639738349dc62fdefa9642a9178c65a8ce75af for more details.


Fix for line breaking algorithm

When used with sizeToFill, when measuring the one-size too big text, the previous version was leaving a line with the last character as a leftover that was never cleaned up (even when the whole word has been fitted into a previous line after decreasing font size), resulting in a last character being duplicated.

Awesome. Thanks


WIP: Feature/backend speedup

Initial speedup. The lineages part doesn't work yet.
Original pull request by @ninewise on Tue Sep 30 2014 at 16:21.
Merged by @ninewise on Mon Oct 20 2014 at 14:16.

I've tried using MapDB's TempTreeMap, but this has proving quite slower than the builtin HashMap. I'll try some other MapDB stuff, before going to other implementations.
Original comment by @ninewise on Sat Oct 04 2014 at 16:19.


Can the community help by providing some docs made from us?
If you're still updating I would like to help with this.

We still maintain this library, see branch 2020.
Most of the opis repositories are now maintained on branch 2020.


GetIndexSettings response properties not filled correctly

NEST/Elasticsearch.Net version: 2.3.1
Elasticsearch version: 2.3.1
Description of the problem including expected versus actual behavior:
When doing GetIndexSettings() I expect the NumberOfReplicas and NumberOfShards properties to be set. Instead they will always be null.
Steps to reproduce:

Do a GetIndexSettings()

var response = ElasticClient.GetIndexSettings(d => d.Index("myindex"))

Check value of NumberOfReplicas and NumberOfShards which will always be null.

var numberOfReplicas = response.Indices.Single(i => i == "myindex").Value.Settings.NumberOfReplicas;
A workaround is the get the value directly from the dictionary using:
var numberOfReplicas = response.Indices.Single(i => i == "myindex").Value.Settings.Single( x => x.Key == "index.NumberOfReplicas").Value

Hi @EricKeij tried to reproduce this locally but could not reproduce.
The correct elasticsearch setting is number_of_replicas which is what we serialize to and deserialize from.
https://github.com/elastic/elasticsearch-net/commit/937019bc989839cbf7b3097645225d541368b908
I did notice in our 5.x beta branch we had a bug where number_of_replicas got overwritten to null at serialization time. This is not the case in the stable 2.x brranches.
I do wonder how index.NumberOfReplicas got serialized into the index's settiings. Can you share the code that puts it there in the first place?

Hi @Mpdreamz
I think index.NumberOfReplicas is serialized because that's the way it's returned from the _settings call.
Looking at the raw response from _settings it's something like
"myindex {  "settings": {   "index": {    "numberOfReplicas": "1",    "numberOfReplicas": "5"    ....   }  } }"
Whilst an update is called with "index.number_of_replicas".

It turned out we use numberOfShards and numberOfReplicas in our templates instead of number_of_shards and number_of_replicas. Both seems to be valid (at least both work). I changed our templates to number_of_shards and number_of_replicas which solves our problem.

Aye that will explain the origin of the camelCasing :)
camelCase support is deprecated in 2.x and scheduled for removal in 5.x
https://github.com/elastic/elasticsearch/pull/17933
That said we should make an effort supporting camelCase settings at read time in our 2.x branch.

We now also read camelCase versions of known values such as index.numberOfShards in 2.x as per 65bb0abd9b53b9523fe3b61414aab7bd0fb2f662
@EricKeij index.NumberOfShards in PascalCase is not supported in Elasticsearch 2.x. Your second comment is in camelCase but first in PascalCase.
Just want to stress that sending "index.NumberOfShards" : 2 won't actually create 2 shards in Elasticsearch 2.x.  "index.numberOfShards" : 2 will work but is deprecated.


read.abort is not a function

time to stop ignoring this one.
https://github.com/ssbc/scuttlebot/pull/326#issuecomment-205132241
plan: stare at the code and try and guess how it could happen.
try writing tests that exercise state transitions I haven't thought about.

https://github.com/dominictarr/pull-reader/blob/master/index.js#L86-L87 looks fishy.

closing, see https://github.com/dominictarr/pull-reader/issues/1


Updated to ensure that application names are query escaped before usage...

Encountered a case today where we had an existing application whose name had a space in it and autopilot failed with mysterious JSON marshalling error. Updated so that the app name is query escaped before being substituted into the CF API endpoint for retrieving application metadata given that CF allows spaces and other characters in the application name

Thanks!


remove relative operation error for envoy filter MERGE operation

A MERGE operation is not relative. A simple Envoy filter like this
  configPatches:
  - applyTo: NETWORK_FILTER
    match:
      context: SIDECAR_OUTBOUND
      listener:
        filterChain:
          filter:
            name: envoy.filters.network.redis_proxy
        portNumber: 12000
    patch:
      operation: MERGE
      value:
        name: envoy.filters.network.redis_proxy
        typed_config:
          '@type': type.googleapis.com/envoy.extensions.filters.network.redis_proxy.v3.RedisProxy
          settings:
            op_timeout: 1s

produces analyzer error which is incorrect. We are asking to specifically merge a listener - no relativity here.
  validationMessages:
  - documentationUrl: https://istio.io/v1.15/docs/reference/config/analysis/ist0151/
    level: WARNING
    type:
      code: IST0151

Same problem exists for REPLACE and REMOVE cases as well.

[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure

@ramaraochavali: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-security-multicluster_istio
548380d8998391ee8bf183dd8097f1c5601741db
link
true
/test integ-security-multicluster_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test integ-security-multicluster_istio

/test integ-security-multicluster_istio

cc @AndreaM12345 FYI since I think you added this test

@ramaraochavali: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-security-multicluster_istio
548380d8998391ee8bf183dd8097f1c5601741db
link
true
/test integ-security-multicluster_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

but MERGE/REPLACE/REMOVE do not edit the existing array - they modify an element existing in the array already.  The order of elements in the array does not change based on these operations correct? Per the wording for IST0151:

"This EnvoyFilter does not have a priority and has a relative patch operation set which can cause the EnvoyFilter not to be applied. Using the INSERT_FIRST or ADD option or setting the priority may help in ensuring the EnvoyFilter is applied correctly."

Or does setting the priority change the element position after the operation is performed?

But if you MERGe then replace vs the inverted order it does matter, right?
On Wed, Jul 13, 2022 at 9:57 AM Greg Hanson @.***>
wrote:

but MERGE/REPLACE/REMOVE do not edit the existing array - they modify an
element existing in the array already. The order of elements in the array
does not change based on these operations correct? Per the wording for
IST0151:
"This EnvoyFilter does not have a priority and has a relative patch
operation set which can cause the EnvoyFilter not to be applied. Using the
INSERT_FIRST or ADD option or setting the priority may help in ensuring the
EnvoyFilter is applied correctly."
Or does setting the priority change the element position after the
operation is performed?
—
Reply to this email directly, view it on GitHub
https://github.com/istio/istio/pull/39904#issuecomment-1183464634, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAEYGXM6G2XYRDZR46I3D7DVT3YRDANCNFSM53OOQY3A
.
You are receiving this because your review was requested.Message ID:
@.***>

I think we should improve patch logging, rather than using analysis to warn any potential issue

I think we should improve patch logging, rather than using analysis to warn any potential issue

I agree completely. Either we improve analyzer to detect cases where MERGE needs priority or improve patching. Asking users to set priority for simple merge as shown in the PR description is not correct and that warning is actually giving a wrong impression.

i think the issue comes up with an upgrade because filters get replaced but you still want something to happen in a certain order. The docs mention this with a reference to the istio.stats filter https://istio.io/latest/docs/ops/common-problems/network-issues/#unchanged-envoy-filter-configuration-suddenly-stops-working

That was for INSERT_FIRST though which is relative.

/test integ-security-multicluster_istio