health HEALTH_WARN 64 pgs incomplete; 64 pgs stuck inactive; 64 pgs stuck unclean

Hi,
I am having an issue of ceph health -
health HEALTH_WARN 64 pgs incomplete; 64 pgs stuck inactive; 64 pgs stuck unclean
Please suggest me what should I check.
Thanks,
Abhishek

That sounds like there aren't any OSD processes running and connected to the cluster. If you check the output of ceph osd tree, does it show that the cluster expects to have an OSD? If not, this means that the ceph-disk-prepare script didn't run, which comes from the ceph::osd recipe. If so, this means that the ceph::osd script ran and initialized an OSD, but for some reason that OSD didn't connect to the cluster. Check the OSD server to make sure the process is running, and then look at the logs in /var/log/ceph/ceph-osd* to see why the OSD isn't connecting.

Hi ceph osd tree is showing output -
#ceph osd tree
id    weight  type name       up/down reweight
-1      0.09    root default
-2      0.09            host server3
0       0.09                    osd.0   up      1
and logs are showing
tail -f ceph-osd.0.log
2015-02-03 12:50:44.115354 7f0d0d1b7900  0  cls/hello/cls_hello.cc:271: loading cls_hello
2015-02-03 12:50:44.157671 7f0d0d1b7900  0 osd.0 4 crush map has features<PHONE_NUMBER>, adjusting msgr requires for clients
2015-02-03 12:50:44.157682 7f0d0d1b7900  0 osd.0 4 crush map has features<PHONE_NUMBER> was 8705, adjusting msgr requires for mons
2015-02-03 12:50:44.157687 7f0d0d1b7900  0 osd.0 4 crush map has features<PHONE_NUMBER>, adjusting msgr requires for osds
2015-02-03 12:50:44.157703 7f0d0d1b7900  0 osd.0 4 load_pgs
2015-02-03 12:50:44.201885 7f0d0d1b7900  0 osd.0 4 load_pgs opened 64 pgs
2015-02-03 12:50:44.212991 7f0d0d1b7900 -1 osd.0 4 set_disk_tp_priority(22) Invalid argument: osd_disk_thread_ioprio_class is  but only the following values are allowed: idle, be or rt
2015-02-03 12:50:44.290354 7f0cfb587700  0 osd.0 4 ignoring osdmap until we have initialized
2015-02-03 12:50:44.290416 7f0cfb587700  0 osd.0 4 ignoring osdmap until we have initialized
2015-02-03 12:50:44.371616 7f0d0d1b7900  0 osd.0 4 done with init, starting boot process
Please suggest me.
Thanks,

Ah yes, you'll need at least 3 OSDs for Ceph to be happy and healthy. Depending on how your Crush map is configured, I forget the defaults, these OSDs will have to be on separate hosts.

Hi
I am a bit confused by this statement. "you'll need at least 3 OSD's to be happy and healthy". I followed the instructions (here: http://docs.ceph.com/docs/hammer/start/quick-ceph-deploy/) and once I get to the command "ceph health", the response is: "health HEALTH_ERR 64 pgs incomplete; 64 pgs stuck inactive; 64 pgs stuck unclean". That is when I install it...
Ceph documentation clearly stated:
"Change the default number of replicas in the Ceph configuration file from 3 to 2 so that Ceph can achieve an active + clean state with just two Ceph OSDs. Add the following line under the [global] section:
osd pool default size = 2"
I have attempted this install at least 3 times now and the response is the same every time. I am running 1 admin node, 1 monitor and 2 osd's on 4 VirtualBox Ubuntu 14.04 LTS VM's within Ubuntu 16 (previous attempt was within Ubuntu 14).
The debug information is not very helpful at all. Ceph is also not writing to the /var/log/ceph/ location at all even after I set permissions
sudo chmod ceph:root /var/log/ceph
ceph-deploy osd activate tells me that the osd's are active but ceph osd tree shows otherwise. (down)
The config is read from /etc/ceph/cep.conf all the time (even though I install everything from my-cluster directory) which is incorrect. When I ran the install, the config was created in /home/user/my-cluster/ceph.conf yet it reads it from /etc/ceph/cep.conf.
So I will attempt 3 OSD's now even though the site states otherwise...
Any suggestions would be very helpful.
Thanks,
zd

Hi, I just have the same problem as yours, and I have reinstalled Ceph for more than 3 times. I'm really upset. Have you figured it out? Expect your suggestions.

Hi
If you are using ext4 file system, you need to place this in config global
section:
filestore xattr use omap
Restart and see if HEALTH_OK achieved.
Cheers
On 02 Dec 2016 17:30, "LostSoul007"<EMAIL_ADDRESS>wrote:

Hi, I just have the same problem as yours, and I have reinstalled Ceph for
more than 3 times. I'm really upset. Have you figured it out? Expect your
suggestions.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ceph/ceph-cookbook/issues/187#issuecomment-264480885,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AU-ifrx6HvfwyP4KiNKNeRr-TMsVlB-7ks5rEDmkgaJpZM4DaskH
.

Hi
First, thank you so much for your suggestion!!!
My file system is ext4, and I just did the thing you suggested, but it seems to make no difference.
I reviewed the osd's log throughly and found the following words:
osd.0 0 backend (filestore) is unable to support max object name[space] len
osd.0 0 osd max object name len = 2048
osd.0 0 osd max object namespace len = 256
osd.0 0 (36) File name too long
journal close /var/lib/ceph/osd/ceph-0/journal
** ERROR: osd init failed: (36) File name too long
Then I found this page:
http://docs.ceph.com/docs/jewel/rados/configuration/filesystem-recommendations/
I just reinstalled Ceph again, and place the following words in config global
section:
osd_max_object_name_len = 256
osd_max_object_namespace_len = 64
It works!!! I'm so happy and I appreciate you reply very much!!!
Thanks again!
Best wishes~

Hi
You are welcome.
I am glad you solved it.
Best Wishes
Zayne
On 03 Dec 2016 14:36, "LostSoul007"<EMAIL_ADDRESS>wrote:

Hi
First, thank you so much for your suggestion!!!
My file system is ext4, and I just did the thing you suggested, but it
seems to make no difference.
I reviewed the osd's log throughly and found the following words:
osd.0 0 backend (filestore) is unable to support max object name[space] len
osd.0 0 osd max object name len = 2048
osd.0 0 osd max object namespace len = 256
osd.0 0 (36) File name too long
journal close /var/lib/ceph/osd/ceph-0/journal
** ERROR: osd init failed: (36) File name too long
Then I found this page:
http://docs.ceph.com/docs/jewel/rados/configuration/
filesystem-recommendations/
I just reinstalled Ceph again, and place the following words in config
global
section:
osd_max_object_name_len = 256
osd_max_object_namespace_len = 64
It works!!! I'm so happy and I appreciate you reply very much!!!
Thanks again!
Best wishes~
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ceph/ceph-cookbook/issues/187#issuecomment-264636825,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AU-ifp3r6BBzkWacMmp_yBc3BFqxEr7Vks5rEWIxgaJpZM4DaskH
.

If you are using ext4 file system, you need to place this in config global section:
vim /etc/ceph/ceph.conf
osd_max_object_name_len = 256
osd_max_object_namespace_len = 64
http://docs.ceph.com/docs/jewel/rados/configuration/filesystem-recommendations/
#ceph status

I'm having the same problem, however I am using the preferred xfs filesystem.. Any suggestions?
[From monitor node i get the following]
HEALTH_ERR 64 pgs are stuck inactive for more than 300 seconds; 64 pgs stuck inactive; no osds
[From OSD node]
2017-01-27 07:55:28.000882 7fde7846d700  0 -- :/429908835 >> :6789/0 pipe(0x7fde74063f30 sd=3 :0 s=1 pgs=0 cs=0 l=1 c=0x7fde7405c5a0).fault
[From Monitor node out of /var/log/ceph/ceph.log]
2017-01-27 06:47:11.121804 mon.0 <IP_ADDRESS>:6789/0 1 : cluster [INF] mon.oso-node1@0 won leader election with quorum 0
2017-01-27 06:47:11.121931 mon.0 <IP_ADDRESS>:6789/0 2 : cluster [INF] monmap e1: 1 mons at {oso-node1=:6789/0}
2017-01-27 06:47:11.122008 mon.0 <IP_ADDRESS>:6789/0 3 : cluster [INF] pgmap v2: 64 pgs: 64 creating; 0 bytes data, 0 kB used, 0 kB / 0 kB avail
2017-01-27 06:47:11.122090 mon.0 <IP_ADDRESS>:6789/0 4 : cluster [INF] fsmap e1:
2017-01-27 06:47:11.122203 mon.0 <IP_ADDRESS>:6789/0 5 : cluster [INF] osdmap e1: 0 osds: 0 up, 0 in
2017-01-27 06:54:50.687322 mon.0 <IP_ADDRESS>:6789/0 1 : cluster [INF] mon.oso-node1@0 won leader election with quorum 0
2017-01-27 06:54:50.687415 mon.0 <IP_ADDRESS>:6789/0 2 : cluster [INF] monmap e1: 1 mons at {oso-node1=:6789/0}
2017-01-27 06:54:50.687497 mon.0 <IP_ADDRESS>:6789/0 3 : cluster [INF] pgmap v2: 64 pgs: 64 creating; 0 bytes data, 0 kB used, 0 kB / 0 kB avail
2017-01-27 06:54:50.687577 mon.0 <IP_ADDRESS>:6789/0 4 : cluster [INF] fsmap e1:
2017-01-27 06:54:50.687716 mon.0 <IP_ADDRESS>:6789/0 5 : cluster [INF] osdmap e1: 0 osds: 0 up, 0 in

f_redirected e754) currently waiting for peered
2017-03-02 10:58:39.952422 osd.25 [WRN] 100 slow requests, 1 included below; oldest blocked for > 324.251003 secs
2017-03-02 10:58:39.952444 osd.25 [WRN] slow request 240.250943 seconds old, received at 2017-03-02 10:54:39.701431: osd_op(client.512724.0:135407 97.84ada7c9 (undecoded) ondisk+write+known_if_redirected e754) currently waiting for peered
2017-03-02 10:58:40.091373 osd.27 [WRN] 100 slow requests, 1 included below; oldest blocked for > 324.389960 secs
2017-03-02 10:58:40.091378 osd.27 [WRN] slow request 240.389941 seconds old, received at 2017-03-02 10:54:39.701397: osd_op(client.512724.0:135408 97.31099063 (undecoded) ondisk+write+known_if_redirected e754) currently waiting for peered
2017-03-02 10:58:40.952740 osd.25 [WRN] 100 slow requests, 1 included below; oldest blocked for > 325.251301 secs
2017-03-02 10:58:40.952791 osd.25 [WRN] slow request 240.243998 seconds old, received at 2017-03-02 10:54:40.708674: osd_op(client.36294.0:8895939 97.84ada7c9 (undecoded) ondisk+write+known_if_redirected e754) currently waiting for peered
2017-03-02 10:58:41.091613 osd.27 [WRN] 100 slow requests, 1 included below; oldest blocked for > 325.390198 secs
2017-03-02 10:58:41.091619 osd.27 [WRN] slow request 240.382847 seconds old, received at 2017-03-02 10:54:40.708729: osd_op(client.36294.0:8895940 97.31099063 (undecoded) ondisk+write+known_if_redirected e754) currently waiting for peered
2017-03-02 10:58:43.953496 osd.25 [WRN] 100 slow requests, 1 included below; oldest blocked for > 328.252086 secs
2017-03-02 10:58:43.953517 osd.25 [WRN] slow request 240.022847 seconds old, received at 2017-03-02 10:54:43.930609: osd_op(client.36291.0:8893352 97.84ada7c9 (undecoded) ondisk+write+known_if_redirected e754) currently waiting for peered
2017-03-02 10:58:44.092310 osd.27 [WRN] 100 slow requests, 1 included below; oldest blocked for > 328.390885 secs
2017-03-02 10:58:44.092315 osd.27 [WRN] slow request 240.161657 seconds old, received at 2017-03-02 10:54:43.930605: osd_op(client.36291.0:8893353 97.31099063 (undecoded) ondisk+write+known_if_redirected e754) currently waiting for peered
2017-03-02 10:58:44.953818 osd.25 [WRN] 100 slow requests, 1 included below; oldest blocked for > 329.252386 secs
2017-03-02 10:58:44.953827 osd.25 [WRN] slow request 240.251734 seconds old, received at 2017-03-02 10:54:44.702023: osd_op(client.512724.0:135415 97.84ada7c9 (undecoded) ondisk+write+known_if_redirected e754) currently waiting for peered
2017-03-02 10:58:45.092587 osd.27 [WRN] 100 slow requests, 1 included below; oldest blocked for > 329.391155 secs
2017-03-02 10:58:45.092597 osd.27 [WRN] slow request 240.390484 seconds old, received at 2017-03-02 10:54:44.702049: osd_op(client.512724.0:135416 97.31099063 (undecoded) ondisk+write+known_if_redirected e754) currently waiting for peered
2017-03-02 10:58:45.954085 osd.25 [WRN] 100 slow requests, 1 included below; oldest blocked for > 330.252673 secs
2017-03-02 10:58:45.954103 osd.25 [WRN] slow request 240.244915 seconds old, received at 2017-03-02 10:54:45.709129: osd_op(client.36294.0:8895947 97.84ada7c9 (undecoded) ondisk+write+known_if_redirected e754) currently waiting for peered
2017-03-02 10:58:46.092838 osd.27 [WRN] 100 slow requests, 1 included below; oldest blocked for > 330.391422 secs
2017-03-02 10:58:46.092850 osd.27 [WRN] slow request 240.383640 seconds old, received at 2017-03-02 10:54:45.709160: osd_op(client.36294.0:8895948 97.31099063 (undecoded) ondisk+write+known_if_redirected e754) currently waiting for peered

After adding the following lines to /etc/ceph/ceph.conf file and reboot the system. Somehow, the issue still exists.
osd_max_object_name_len = 256
osd_max_object_namespace_len = 64
ceph status
cluster b3609cba-0b6d-4311-8aa3-6968c0e66f5e
 health HEALTH_WARN
        64 pgs degraded
        64 pgs stuck degraded
        64 pgs stuck unclean
        64 pgs stuck undersized
        64 pgs undersized
 monmap e1: 1 mons at {0=<IP_ADDRESS>:6789/0}
        election epoch 3, quorum 0 0
 osdmap e15: 2 osds: 2 up, 2 in
        flags sortbitwise,require_jewel_osds
  pgmap v36: 64 pgs, 1 pools, 0 bytes data, 0 objects
        69172 kB used, 3338 GB / 3338 GB avail
              _64 active+undersized+degraded

I update ceph.conf (osd_max_object_name_len = 256 , osd_max_object_namespace_len = 64) before deploying Ceph on 3 ubuntu 16.04 servers with ext4.   This issue remains:
root@node1:~/ceph-admin# ceph -s
    cluster efab0538-b94c-4c01-9f3a-2aa81e02b0c9
     health HEALTH_ERR
            64 pgs are stuck inactive for more than 300 seconds
            64 pgs stuck inactive
            64 pgs stuck unclean
            no osds
     monmap e1: 1 mons at {node1=<IP_ADDRESS>:6789/0}
            election epoch 4, quorum 0 node1
     osdmap e1: 0 osds: 0 up, 0 in
            flags sortbitwise,require_jewel_osds
      pgmap v2: 64 pgs, 1 pools, 0 bytes data, 0 objects
            0 kB used, 0 kB / 0 kB avail
                  64 creating

i have exactly same Problem with 14.04 LTS ext4. I tried almos eveything and all suggestions above. But  i'm still getting following celp -s and next one  on celp osd tree
health HEALTH_ERR
64 pgs are stuck inactive for more than 300 seconds
64 pgs stuck inactive
64 pgs stuck unclean
ID WEIGHT TYPE NAME    UP/DOWN REWEIGHT PRIMARY-AFFINITY
-1      0 root default
0      0 osd.0           down        0          1.00000

After appended those lines into admin_node's ceph.conf:
osd max object name len = 256
osd max object namespace len = 64

then I think you should run ceph-deploy --overwrite-conf admin osd1 osd2 to deploy the conf to osd nodes. And you should make sure the user ceph has  r permissions of /etc/ceph/ceph.client.admin.keyring.

When my server reboot and then see error osds down and pgs inactive.
Please help me. How can I solve this. This storage using for cloudstack primary storage.

Thanks.

Does this look like your error?
https://tracker.ceph.com/issues/17722
On Mon, Sep 7, 2020 at 6:21 PM alamintech<EMAIL_ADDRESS>wrote:

Please help me anyone.
[image: image]
https://user-images.githubusercontent.com/68062764/92364757-5a4fae00-f115-11ea-90ee-a61246a87297.png
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ceph/ceph-cookbook/issues/187#issuecomment-688154975,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AALAZ46AN3QNEZNX6FWV6ZDSESJYRANCNFSM4A3KZEDQ
.

See but can't find solution for this

After server reboot can't start osd service. Please help me any one.


x/tools/gopls: a way to control staticcheck options

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

$ go version
go version go1.13.4 linux/amd64
$ gopls version
golang.org/x/tools/gopls 0.2.0
<EMAIL_ADDRESS>h1:qXHEqJw4CqROYvoDXinY1ZOkyAFS+jcPOvLRK76dvwY=

Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE="off"
GOARCH="amd64"
GOBIN="/home/oneofone/code/go/bin"
GOCACHE="/tmp/.gocache"
GOENV="/home/oneofone/.config/go/env"
GOEXE=""
GOFLAGS="-gcflags=-c=16"
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/oneofone/code/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/src/go1.13"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/src/go1.13/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build965012732=/tmp/go-build -gno-record-gcc-switches"
GOROOT/bin/go version: go version go1.13.4 linux/amd64
GOROOT/bin/go tool compile -V: compile version go1.13.4
uname -sr: Linux 5.3.12-arch1-1
LSB Version:	1.4
Distributor ID:	Arch
Description:	Arch Linux
Release:	rolling
Codename:	n/a
/usr/lib/libc.so.6: GNU C Library (GNU libc) stable release version 2.30.
lldb --version: lldb version 9.0.0
gdb --version: GNU gdb (GDB) 8.3.1

What did you do?
Working on a huge codebase that doesn't pass some of the linting options in vscode.
What did you expect to see?
A way to turn off some of the lint options in staticcheck
What did you see instead?
1000s of lint errors, had to turn of staticcheck all together.
	"gopls": {
		"usePlaceholders": true,
		"completeUnimported": true,
		"staticcheck": false,
		"watchChangedFiles": true,
		"deepComplete": true
	},

cc @stamblerre @ianthehat

Thanks for the report! This will be fixed in CL 208098.

Actually, I just dug through the source trying to implement it and and found experimentalDisabledAnalyses which does exactly what I need.
Sorry for the noise.


[BUG] Uri Escaped characters when grabbing DirectoryClient.Uri

Describe the bug
When grabbing the Uri from a ShareDirectoryClient special characters remain encoded, when they should not be encoded (escaped). This also happens at ShareDirectoryClient.Uri.ToString() when this is supposed to give a value of unescaped characters.
This might be a regression due to our attempt to fix Uri Encoding issues elsewhere due to it not happening before Azure.Storage.Files.Shares 12.3.0-preview.1
Expected behavior
What is the expected behavior?
When calling ShareDirectoryClient.Uri the value should not be escaped.
Actual behavior (include Exception or Stack Trace)
What is the actual behavior?
The characters are escaped
To Reproduce
Steps to reproduce the behavior (include a code snippet, screenshot, or any additional information that might help us reproduce the issue)
        public async Task GetSubdirectoryAsync_NonAsciiName()
        {
            await using DisposingDirectory test = await GetTestDirectoryAsync();
            ShareDirectoryClient dir = test.Directory;
            string name = "@1$2&3";

            ShareDirectoryClient subdir = InstrumentClient(dir.GetSubdirectoryClient(name));

            Assert.AreEqual(subdir.Uri.ToString(), dir.Uri.ToString() + "/" + name);
        }

Environment:

Name and version of the Library package used: Azure.Storage.Files.Shares 12.3.0-preview.1

@amnguye, I'm not sure this is bug.

Hi @amnguye, we deeply appreciate your input into this project. Regrettably, this issue has remained inactive for over 2 years, leading us to the decision to close it. We've implemented this policy to maintain the relevance of our issue queue and facilitate easier navigation for new contributors. If you still believe this topic requires attention, please feel free to create a new issue, referencing this one. Thank you for your understanding and ongoing support.


docs(Dropdown): update suggested markup for nested dropdowns

Update for the suggested markup in the Dropdown Examples for Nested Dropdowns

Codecov Report

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

@@           Coverage Diff           @@
##           master    #3180   +/-   ##
=======================================
  Coverage   99.92%   99.92%
=======================================
  Files         163      163
  Lines        2746     2746
=======================================
  Hits         2744     2744
  Misses          2        2

Continue to review full report at Codecov.

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


Add sample for build service from work action

Changes are mostly to add a sample snippet for the "build service from work action" use case - the prose itself was not modified, so this is more of a sample review (unless you see need to add new or modify existing prose).
Notice I snuck in usage of service references at the task level, to make the code simpler, but the traditional consumption model would have worked as well.
Issue: #22559

@bot-gradle test BD

I've triggered the following builds for you:

BuildDistributions build

@bot-gradle test BD

I've triggered the following builds for you:

BuildDistributions build

@bot-gradle test BD

I've triggered the following builds for you:

BuildDistributions build

I've triggered the following builds for you:

BuildDistributions build

Changes were into this section: https://builds.gradle.org/repository/download/Gradle_Release_Check_BuildDistributions/66095546:id/distributions/gradle-8.2-docs.zip!/gradle-8.2-20230522121620%2B0000/docs/userguide/build_services.html#other_ways_of_using_a_build_service
(see diff here https://github.com/gradle/gradle/pull/25047/files#diff-66eeedae87f96bc49d2ef19253fccdb8d1bb5728ab5a3fb0f6a18c1718a8f9daR145)

@bot-gradle test and merge

I've triggered a build for you.

Pre-tested commit build failed.

@bot-gradle test and merge

I've triggered a build for you.


Ember cli hot loader compatibility

Hey
So there appears to be some compatibility issues with ember-hot-loader
https://github.com/toranb/ember-cli-hot-loader/issues/35#issuecomment-262573429

Oops, hit submit.
Yeah so Ember hot loader proxies the component and something is causing the component auto generated style to be lost.
@toranb may be able to provide more information.
Oli

@oligriffiths is this the same as #165?

It appears so yes. Looks like you're on the case. Thanks for the quick response.


rtspsrc vs fallbacksrc

Hi,
We loved the idea of the fallbacksrc and very needed. But our pipeline working with rtspsrc but not wrking with fallbacksrc.
function create_rtsp_sources() {      echo "Rtsp sources creating"      for ((n = 0; n < $num_of_src; n++)); do         src_name="SRC_${n}"         src_name="${!src_name}"         rtsp_sources+="rtspsrc async-handling=true location=$src_name name=source_$n message-forward=true ! \                           decodebin3 ! \             			  queue   name=custom_preprocess_q_$n leaky=no max-size-buffers=32 max-size-bytes=0 max-size-time=0 ! \                           $decode_scale_elements ! videoconvert n-threads=8 ! \                           video/x-raw,pixel-aspect-ratio=1/1 ! \                           fun.sink_$n sid.src_$n ! \                           queue   name=comp_q_$n leaky=downstream max-size-buffers=5 max-size-bytes=0 max-size-time=0 ! \                           comp.sink_$n " 	#echo "$n --   $rtsp_sources \n\n"      done }
isnt the fallbacksrc is the same output of the rtspsrc ?
How we can replace the rtspsrc with fallbacksrc for above pipeline ?

At this point, this repo is only a mirror of https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/. Can you report it there and please also include a debug log, plus some more description what goes wrong?

@sdroege  Hi
Thanks for information. gitlab page not accepting new user and cant submit the issue at the moment.
There is errror just prerolling and waiting


Find-all-refs for namespaces

Every reference of a symbol in a namespace should count as a reference to the namespace too

Does this mean that textDocument/reference requests for a namespace will return references to symbols in the namespace?
e.g.,
File 1
namespace LanguageServer;

class ClientHandler
{
}

File 2
using LanguageServer;

$c = new LanguageServer()

A reference request on new LanguageServer() will display both the ClientHandler definition and the LanguageServer definition?

No, the other way around. A reference request for the namespace would return new LanguageServer, probably also use LanguageServer. Currently it returns nothing (see the referencing issue)

Ah got it.
I made a typo in the original description. I really meant to have $c = new ClientHandler() as the 3rd line in File 2.
Would $c = new ClientHandler() be counted as a reference to both ClientHandler and LanguageServer? In the languages that I use, I'd expect it only to be a reference to ClientHandler. If I were a user, I think references to using ... references would be enough to get me to all the files that use the namespace. Additional references to things within that namespace might just clutter up the interface.
But I also don't write PHP on a regular basis, so will defer to your judgment.

I thought so. In PHP there are basically three ways to reference a symbol:
// A fully qualified
namespace Whatever;
new \LanguageServer\ClientHandler();

// B `use`d
namespace Whatever;
use LanguageServer\ClientHandler;
new ClientHandler();

// C local
namespace LanguageServer;
new ClientHandler();

As I think about it, it might make sense to only count A and the use from B.

I have this implemented for use statements. Qualified references like new TestNamespace\TestClass() depend on https://github.com/nikic/PHP-Parser/pull/331


color transition in highlightFill

Guys,
Is there any possibility of creating a function so there is a color transition in highlightFill property? Something like a fade!
By placing the mouse over the graphic, the color changes gradually to the color of highlightFill property...
Someone thought of that?

This is possible in v2. We use a colour mixing library to transition between the regular fill and the highlight fill. Check out some of the samples in the v2.0-dev branch. You can set the highlight fill as something completely different from the regular fill and see how it transitions.

See this JSBin demoing the colour transition: http://jsbin.com/gufabi/edit?html,js,output

Closing since this has been answered and demoed. Updated demo to latest source


Use get instead of generating the stream url

Issues from the initial attempt

There are 2 versions of Lbry and buildURI -- the app and web-server version.  There are subtle differences between them, and for the app case, importing the web-server version results in a query into an invalid URL.
It changed the function from returning a string to returning a promise.

Changes

Since the new function (renamed to fetchStreamUrl for clarity) is currently only needed for web-server, I moved it into the web folder to avoid misuse in app.
Await on the promise. Unfortunately, this also means the entire chain of function calls need to be adjusted to be async.

Wait, two more instances I forgot to update -- rss and routes


PCB install has garbled screen

Hi,
I used to have a working PCB from homebrew but somehow I messed up my system (something with the cairo libraries) and now I can not get it work anymore. It builds successfully but the screen is garbled...
I already did a full reinstall and upgraded to OS X 10.10, but still the same problem. Since I'm not to proficient at coding can somebody have a look to what is going on?
The only message I get in the terminal is this:
2015-08-20 11:46:00.910 pcb[4393:15057] *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead.
But I also get this message for gschem which appears to work fine.

Any help greatly appreciated!
Best regards,
Jasper

I can't get it to load at all here. Just hangs on initial run. What should I expect to be seeing?

Hi Dom,
I've used Macports now to install the X11 version. Here is a screenshot.

Did not do any further attempts using Homebrew, as it is all a bit out of my league.
Let me know if I can try anything to help.
Best regards,
Jasper

I'm seeing the same issue -- any resolution?
$ 2015-08-27 16:23:42.569 pcb[50549:507] *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead.
Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
pcb_dbus: DBus connection Error (Not enough memory)

I didn't manage to get it to launch for me. I tried checking upstream but it's pretty quiet in terms of suggestion/support. I'll take another look at this over the weekend. Sorry about the trouble here :cry:

ok thanks.  it may be helpful to know that the old (working) install that I had was the same version of pcb (20140316), but when it launched, only an XQuartz icon appeared on the task bar.  In the new version (20140316_1), a generic "pcb" icon appears on the task bar (so presumably it's built without XQuartz support?).

so perhaps this issue is related to build-time options (does the new version use GTK/Quartz instead of XQuartz)?

PCB's compile is quite unhelpful in debugging this, but my hunch is that it expects GTK+ to be built against XQuartz and have that backend available.
For the last couple of months we've no longer supported the XQuartz link in GTK+ as it complicates the whole dependency tree and makes anyone who wanted to touch GTK stuff install X11 first. I think pcb has probably quietly broken on that change. Looking into a few options.

Were you able to find any path forward here?
I downloaded and built pcb from source, but ended up with the same result (garbled screen).
For reference, here’s what I did to build pcb from source.
Download stable snapshot (pcb-20140316)
$ wget http://sourceforge.net/projects/pcb/files/pcb/pcb-20140316/pcb-20140316.tar.gz/download
$ tar xvzf pcb-20140316.tar.gz

Run configure, but point to the OpenGL framework
(and I had to point to X11 libraries as well, which I know that I should not have to do, but I couldn’t get it to build otherwise)
./configure LDFLAGS="-framework OpenGL -L/usr/X11/lib"
make

But make fails with errors like:
hid/common/hidgl.c:647:49: error: use of undeclared identifier '_GLUfuncptr'
gluTessCallback(info.tobj, GLU_TESS_ERROR,   (_GLUfuncptr)myError);

which I can work around by adding this line to src/global.h
typedef void ( * _GLUfuncptr)(); // added by James Battat

And then make succeeds, but with the garbled screen problem...

I had the same garbled screen on OSX when installing pcb with brew. I got the same thing when compiling from source (pcb-20140316).
Finally I got it to compile without a garbled screen by disabling open-gl:
./configure --disable-gl
make
make install

@4ms Thanks for suggesting a path forward.  On my machine, though, configure dies with:
configure: error: GNU gettext tools not found; required for intltool
So then I tried running brew sh first, and get a missing Perl module error:
$ brew sh
$ ./configure --disable-gl
...
$ checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool

Any recommendations on how to proceed? (related:  what is the recommended perl installation?  brew?  perlbrew? CPAN?)

Any progress on this?

Yes, sort of.
I was able to install pcb and geda-gaf from source (not through homebrew).
I was having a problem with gettext not being found when running configure for pcb.  For some reason, even though I installed gettext via brew, it's not on my path (see above).
$ brew install gettext
Warning: gettext-0.19.6 already installed
$ which brew

So I have to manually add gettext to my path:
$ export PATH=/usr/local/opt/gettext/bin:$PATH

Then, to build/install pcb (I'm using the pcb-20140316 snapshot), I do:
$ ./configure --disable-gl --prefix /opt/geda/pcb
$ make
$ make
$ sudo make install

I needed to run make twice because the first make fails with an error (something like "illegal byte sequence"), but the second run works fine (???).
For geda-gaf, I do (using the geda-gaf-1.8.2 release):
$ ./configure —prefix /opt/geda/geda-gaf
$ make
$ sudo make install

All that said, I still can't install either directly with brew.

Workaround available in https://github.com/Homebrew/homebrew-science/commit/f7c8153a2b160af98821b1e9993ceebede378b01.

This did not fix the issue for me.


Improve visibility for unloaded projects feature NuGet built for solution filters

See:
https://github.com/NuGet/Home/issues/5820
https://github.com/NuGet/NuGet.Client/pull/2521
https://github.com/NuGet/Home/issues/1830

we want this.


Project Milestone v2.0 Project Requirements Documentation

As required by CS2103T module AY1819S2

The following requirements are based on the project scope and constraints highlighted by CS2103T module requirements with some slight modifications to the phrasing hence, credits goes to:
https://nus-cs2103-ay1819s2.github.io/cs2103-website/admin/project-constraints.html
https://nus-cs2103-ay1819s2.github.io/cs2103-website/admin/project-scope.html

User constraints:

The product should be mainly focus on catering towards users with higher preference towards typing commands rather than using other forms of interaction such as mouse. GUI interaction is allowed though main focus should be on command line interface inputs.

The product should only be for a single user, in other words, any features for example switching of profiles for different users which involves multi user support should be avoided.

Data requirements:

The data that is stored locally should be editable by user. In other words, expert users can open the file without using the application and edit it for his or her liking.

The use of MySQL database management systems or similar database management systems are not allowed.

Environment requirements:

The product should work on all platforms mainly Windows, Linux and MacOS platforms.

2.The product should not connect to any personal remote server though connecting of reliable public APIs like Google API are allowed but fallback system should be implemented such as a backup if connection to public APIs does not work during test.
Portability requirements:

The software should not require any installer, in other words, should be able to run without installing any additional softwares. In this case, we have to use .jar when releasing the product.

Testability requirements:

Avoid implementing features that are hard to test both manual and automated testing. In other words, avoid depending heavily on remote APIs as they may not work and usually out of our control.
No audio related features due to project constraints. Possibly avoid features that uses sounds as indicators such as notification sounds.

Notes about project scope:
The target user should be very specific. In this case, we have decided on Pharmacists who usually in charge of medicine inventory/stock taking.
Optimised the product to suit the target user, in this case, Pharmacists in charge of medicine inventory and stock taking. In other words, add features that are applicable to them or unique to them and attractive to them. As the product will be graded on its ability to meet the needs of the target user (Pharmacist in charge of medicine inventory or stock taking) and the features should complement each other.

We have submitted this v2.0 Project Requirement as part of our v2.0 UserGuide documentation on LumiNUS. I will close this issue.


OpenSSL version must be 3

I tried running pictoprime on OSX and I had this openssl installed
> openssl version
OpenSSL 1.0.2q  20 Nov 2018

which only returns the hex value and not decimal
> openssl prime 12321321
BC0229 is not prime

which resulted in the ascii art to be incorrect

After I used openssl@3 it worked
> /usr/local/opt/openssl@3/bin/openssl prime 12321321
BC0229 (12321321) is not prime

So if anyone else runs into this issue you know how to fix it and maybe we can adjust the README to mention this.

I have a similar issue on Ubuntu 20.04 with openssl 1.1.1f but only for larger primes (~ above width 50 for taller images)


Invalid read syntax ")"

I get  Invalid read syntax ")" when  datetime('now')  is in a column
 (defun pkb-select-table-columns (table-name)
      ""
      (emacsql db
	       [:pragma (funcall table_info $i1)]
	       table-name))

error on running this
 (pkb-select-table-columns 'keymap_keys)

running command directly in sql prompt
sqlite> PRAGMA table_info('keymap_keys');
0|function_name|TEXT|0||1
1|desc|TEXT|0||0
2|key|TEXT|0||0
3|registered|TEXT|0|datetime('now')|0

EmacSQL is not intended to interact with arbitrary databases, but I believe you are trying to access a database that was created with something other than EmacSQL (I don't think datetime('now') is something that EmacSQL would ever put there. Tell me if I guessed wrong.
Also see the new FAQ.


Definitely can't get it to work

Keep getting domain can't be found
ERRORError: Configuration error: config must have required property 'amazonDomain'
On hoobs and Home Bridge

Same issue here.
I cleared the cache, restarted my devices, etc.
It seems that the plugin won't read the config file because the other settings seem to be inoperative too.
If you have a solution, I am interested.
Thanks in advance.
HOOBS Version | 4.2.8
Node Version | 16.19.0
Homebridge Version | 1.5.0


Library has settings in AndroidManifest.xml that can collide with importing projects settings.

If a project that imports this library has any other configuration for these it's impossible to build.
    android:allowBackup="true"
    android:label="@string/app_name"
    android:supportsRtl="true">

thanks, I fixed it at the version of 1.6.1


Fix python memory leak and python keyset error check.

Fix memory leak of return object None.
Fix incorrect error check from hstrtoa.

Signed-off-by: Johan Carlsson<EMAIL_ADDRESS>

No worries, I’m mostly interested in the PD part but use  CP for proof of concept.


Udemy bug while downloading course

./youtube-dl.exe --cookies .\udemy.com_cookies.txt -o '%(playlist)s/%(chapter_number)s - %(chapter)s/%(playlist_index)s. %(title)s.%(ext)s' https://www.udemy.com/cientista-de-dados/ --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--cookies', '.\udemy.com_cookies.txt', '-o', '%(playlist)s/%(chapter_number)s - %(chapter)s/%(playlist_index)s. %(title)s.%(ext)s', 'https://www.udemy.com/cientista-de-dados/', '--verbose']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2021.12.17
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
[debug] exe versions: none
[debug] Proxy map: {}
[udemy:course] cientista-de-dados: Downloading webpage
[udemy:course] 1225734: Downloading course curriculum
[download] Downloading playlist: 1225734
[udemy:course] playlist 1225734: Collected 346 video ids (downloading 346 of them)
[download] Downloading video 1 of 346
[udemy] 22093950: Downloading webpage
[udemy] 22093950: Downloading lecture JSON
[udemy] 41475852: Downloading m3u8 information
[debug] Default format spec: best/bestvideo+bestaudio
[debug] Invoking downloader on 'https://www.udemy.com/assets/41475852/files/2022-05-22_20-59-39-e49e5a53bf6278d16db31cf442d90c93/2/hls/AVC_1920x1080_1600k_AAC-HE_64k/aa003bbb530922981761057f38208d3d3424.m3u8?provider=cloudfront&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwYXRoIjoiMjAyMi0wNS0yMl8yMC01OS0zOS1lNDllNWE1M2JmNjI3OGQxNmRiMzFjZjQ0MmQ5MGM5My8yLyIsImV4cCI6MTY2MTIwNDM4NX0.1cTjZLCloiZJ5YIbV77xdkBRRSsk3a2XrQHHI-E3yq4&v=1'
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 19
[download] Destination: 1225734\1 - Apresentação\001. Instruções Gerais.mp4
[download] 100% of 19.77MiB in 00:05
WARNING: 41475852: malformed AAC bitstream detected. Install ffmpeg or avconv to fix this automatically.
[download] Downloading video 2 of 346
[udemy] 21169554: Downloading webpage
[udemy] 21169554: Downloading lecture JSON
[udemy] 37614993: Downloading m3u8 information
[debug] Default format spec: best/bestvideo+bestaudio
[debug] Invoking downloader on 'https://www.udemy.com/assets/37614993/files/2021-11-18_20-33-49-558d88d6075d7b2eefdb924653aedc8c/2/hls/AVC_1920x1080_4800k_AAC-HE_64k/aa002a0c55e7098828d5695e2d493d9227d5.m3u8?provider=cloudfront&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwYXRoIjoiMjAyMS0xMS0xOF8yMC0zMy00OS01NThkODhkNjA3NWQ3YjJlZWZkYjkyNDY1M2FlZGM4Yy8yLyIsImV4cCI6MTY2MTIwNDM5M30.4kQhctcHL7da7qrSWbssbfiqVzjEM7q77OefqggL680&v=1'
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 171
[download] Destination: 1225734\1 - Apresentação\002. Apresentação.mp4
[download] 100% of 214.57MiB in 00:52
WARNING: 37614993: malformed AAC bitstream detected. Install ffmpeg or avconv to fix this automatically.
[download] Downloading video 3 of 346
[udemy] 22285484: Downloading webpage
[udemy] 22285484: Downloading lecture JSON
ERROR: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\YoutubeDL.py", line 815, in wrapper
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\YoutubeDL.py", line 836, in __extract_info
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\common.py", line 534, in extract
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\udemy.py", line 408, in _real_extract
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\common.py", line 1374, in _sort_formats
youtube_dl.utils.ExtractorError: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Duplicate of #29925.


Add 'no-unnecessary-type-assertion' rule

[X] I’ve filled out the documentation, including all relevant sections and a link to the equivalent TSLint rule if available.
[X] I’ve filled out the rule’s category
[X] I’ve added documentation for the equivalent TSLint rule (in extraDescription)
[X] I’ve added the rule documentation link via the helper from ../utils.
[X] I’ve added the rule to the roadmap

[X] I’ve added tests for my changes

Adding equivalent of TSLint's no-unnecessary-type-assertion. Depends on https://github.com/eslint/typescript-eslint-parser/pull/568 for type information.

@j-f1 you may have opinions here and on #250 about adding TS as a peer dependency. I can match whatever makes sense for #265.

@uniqueiniquity do you mind adding helper function to utils?
 /**
  * Try to retrieve typescript parser service from context
  * @param {RuleContext} context Rule context
  * @returns {object} parserServices
  */
 exports.getParserServices = context => {
     if (
         !context.parserServices ||
         !context.parserServices.program ||
         !context.parserServices.esTreeNodeToTSNodeMap
     ) {
         throw new Error(
             "This rule requires you to use `typescript-eslint-parser`."
         );
     }
     return context.parserServices;
 };

@armano2 added as a separate PR #270, so that other PR's aren't dependent on this PR.


Small improvement of code quality of Assets::set* methods

As mentioned in #1609.
I'm not sure if this is desirable, but on top of factoring the set and set_untracked methods I added a warning when the return value of set isn't used to mitigate similar issues.
I silenced it for the only occurence where it's currently done  https://github.com/bevyengine/bevy/blob/68606934e32ab45828c628e1cefd3873273f8708/crates/bevy_asset/src/asset_server.rs#L468

I dig it!

bors r+

@notsimon please respond in #2373 for the relicense to MIT/Apache 2.0. Thanks!


X-Ray exporter implementation

Closes trace4cats/trace4cats-xray#3 and trace4cats/trace4cats#118.
Adds initial implementation of an exporter that sends spans to AWS X-Ray. Some notes and questions:

I'm using fs2.io.net.DatagramSocket for writing to the UDP socket, but I'm open to changing this if there's a different library you'd prefer
X-Ray annotation keys can't have periods, so the keys used by SemanticTags.<kind|status>Tags aren't valid. For now I've just replaced periods with underscores
I'm not sure what the best way is to write tests for the exporter. Unfortunately LocalStack's X-Ray support requires LocalStack Pro, so maybe the best option would be to use fs2's DatagramSocket#reads to verify that data is sent properly?

Thanks! Will check tomorrow

Matt, first of all, thanks for the contribution!
I went through your implementation and found a suspicious logic: you generate and use your own random xrayTraceId instead of using the one from CompletedSpan. In this case you cannot propagate trace context across service boundaries via HTTP headers -- you will lose the link between parts of a distributed trace.
I thought and realized that we had a design flaw in the model module. Instead of using Random[F] for generating both TraceIds and SpanIds, we need to introduce new typeclasses, e.g. TraceIdGen and SpanIdGen. And we shouldn't autoderive them via Sync as we do now. Instead, we should propagate F[_] : TraceIdGen : SpanIdGen context bound to SpanContext to Span itself to EntryPoint. So that when one creates an EntryPoint, they provide instances for TraceIdGen and SpanIdGen. By default the generators may be based on Random, but in case of AWS X-Ray it may have a different implementation via Clock + Random. TraceId/SpanId will stay the same byte-arrays (their size may be dynamic). Also their constructors and factory methods must be reviewed and changed.
I did a draft POC in the trace4cats repo (not pushed yet), but still need some time to think on ergonomics for end users.
I also need @janstenpickle's opinion on what I am proposing.

P.S. And this PR should also include ToHeaders instance for X-Ray.

Thank you Matt, this is great!
RE the new typeclasses for ID generation, yes I completely agree. Having specific, derivable typeclasses for this makes a lot of sense.
RE testing: it's a shame that LocalStack doesn't support X-Ray, but I agree with the best effort apporach of listening for the data.

I spent some more time thinking on the changes in the trace4cats repo. There are a few things that make my first idea not quite viable:

Our model implies that TraceId is a universal entity that fits any tracing standard t4c integrates with. That is, once generated, a traceId must be correct for and exportable to any system, be it OT, Datadog, Zipkin, X-Ray, <you name it>.
It is EntryPoint that creates the root span (and hence generates a traceId).
Exporters are combinable (there's a Monoid instance). That is, a combined SpanExporter may send spans to many systems and we don't know to which. SpanExporter is passed to the EntryPoint factory method.

Given these constraints, if we even try to make generation of TraceId customizable at the level of construction of EntryPoint, we can't guarantee that the SpanExporter instance passed to it is compatible with this custom TraceId generator.
What we still can do:

Make the proposed changes regarding removing the Random context bound and introducing ***Gen typeclasses instead. Add ***Gen bounds to all higher levels discussed above.
Fix the universal traceId internal format as a 16-byte array, as it is now. It can't be of arbitrary size, since it's universal.
Provide a TraceIdGen instance that generates 16-byte traceIds via Clock+Random - this will satisfy all existing exporters, since all systems use 16-byte traceIds, including X-Ray that just requires first 4 bytes to be epoch time rather than random

It is still not clear, when and how we should provide alternative generators and how to make sure they are compatible with the exporters.
Also, if tomorrow we want to integrate with a tracing system that uses 100-char alphanumeric traceIds, we won't be able to do it, unfortunately.

With the proposed changes, the old code written for previously supported systems will be source compatible.
Users of X-Ray will have to import a custom instance to the local scope that will be passed to EntryPoint.apply.

@mrdziuban let's wait for the changes in t4c-core. We will cut a snapshot release and you can proceed with it.

You can use v0.13.1+12-491cff7e

With the recent changes in trace4cats, the generator for TraceId in trace4cats-xray may look as follows:
object xray extends XRayCompatInstances0

trait XRayCompatInstances0 extends XRayCompatInstances1 {
  implicit def fromRandomClockTraceIdGen[F[_]: Apply: Random: Clock]: TraceId.Gen[F] = TraceId.Gen.from {
    val timeSize = Integer.BYTES
    val rndSize = TraceId.size - timeSize
    (Clock[F].realTime, Random[F].nextBytes(rndSize)).mapN { (t, r) =>
      val bytes = ByteBuffer.allocate(TraceId.size).putInt(t.toSeconds.toInt).put(r).array
      TraceId.unsafe(bytes)
    }
  }
}

trait XRayCompatInstances1 { this: XRayCompatInstances0 =>
  implicit def fromSyncTraceIdGen[F[_]: Sync]: TraceId.Gen[F] = {
    implicit val rnd: Random[F] = Random.javaUtilConcurrentThreadLocalRandom[F]
    fromRandomClockTraceIdGen[F]
  }
}

// maybe use different name
def toHex(traceId: TraceId): String = {
  val timeSize = Integer.BYTES
  val rndSize = TraceId.size - timeSize
  val arr = traceId.value
  val t = new String(Hex.encodeHex(arr, 0, timeSize, true))
  val r = new String(Hex.encodeHex(arr, timeSize, rndSize, true))
  s"1-$t-$r"
}

Please use v0.13.1+16-78f06e87

@mrdziuban do you have any blockers that prevent you from proceeding with this PR?

@catostrophe I don't have any blockers other than time, work and life got in the way of me being able to commit time to this. Feel free to take it from here if you'd like, otherwise I can circle back to it when I have time (though I can't say for sure when that might be)


Updates docker images to JRE 14 and fixes Elasticsearch 7

Elasticsearch 7 had more drift related to bash. I inlined the config
our test images rely on so that future failures are less mysterious.
currently, the elasticsearch7 image is busted due to this change https://github.com/elastic/elasticsearch/pull/51123/files#diff-2b7d5d641143ab018b2f115c5c85eacfL51
2020-06-30 12:29:25:984 [main] ERROR 🐳 [openzipkin/zipkin-elasticsearch7:2.21.4] - Log output from the failed container:
/elasticsearch/bin/elasticsearch: line 40: bin/elasticsearch-keystore: not found

Error: Could not find or load main class

Caused by: java.lang.ClassNotFoundException:

/elasticsearch/bin/elasticsearch: line 70: syntax error: unexpected redirection

checked manually with docker-compose in the examples, and sleuth webmvc looks a-ok

thanks for the look


Inference benchmarks on CPU / single-thread performance

Hi @jaywalnut310 ,
Many thanks for your work!
As usual this is very thorough, open and inspiring.
In your paper you publish the GPU speed benchmarks:

We measured the synchronized elapsed time over the entire process to generate raw waveforms from phoneme sequences with 100 sentences randomly selected from the test set of the LJ Speech dataset. We used a single NVIDIA V100 GPU with a batch size of 1.

But somehow you do not say anything about running on CPU (1 CPU thread). Notably, this is also omitted from papers like TalkNet, / FastSpeech / GlowTTS (I believe this paper is mostly GlowTTS  meets HifiGAN).
The only paper saying anything about CPU speed is LightSpeech:

Is this because flow-based models do not lend themselves well to CPU inference?

Hi @snakers4. We reported inference speed tests on a GPU server rather than CPU only environments, as it is a representative indicator for speed comparison in many papers. I think there is no reason for VITS and flow-based TTS models to be worse than other TTS models such as FastSpeech 2, but If you're focusing on CPU or on-device inference, it would be great to check each model's real time factor.

Many thanks for your reply!
Did you by any chance run any benchmarks of your models on CPU only environments that you did not include in the final paper?

We are still using plain tacotron as a main TTS models and basically now we are weighting the pros and cons of investing time in developing something something akin to TalkNet / LightSpeech / FastSpeech (there is no good code available for smaller models though) or your new pipeline.
TalkNet / LightSpeech / FastSpeech pros and cons:

Requires more annotation (i.e. alignment / duration) (though can be extracted from tacotron or CTC models easily)
Quite straight-forward, no complicated moving parts
Known and tested modules in production (convolutions or transformer modules), will perform on CPU well for sure
The smallest reported model is as small as 1-2M params, though no code from the authors
Probably with an extremely fast model (closer to LightSpeech) there will be less need for the vocoder

VITS pros and cons:

End-to-end, does not require alignment
Looks much more complicated, may require much more param tuning for other languages
On the surface looks like it requires more compute to train
High reported quality
Contains HiFi-GAN, which works

Correct me if I am wrong here, but I believe that many people do similar mental calculations now.


Client Allocation Request for: AOEUK

Client Allocation Questions
Core Information

Name: AOEUK
Website / Social Media: aeuo, (@OD., EUI)
Region: Europe
DataCap Requested: 32 GiB
Addresses to be Notarized: f27182818284590452353602874
Notary Requested: BingHe Web3.0 Lab

This user’s identity has been verified through filplus.storage


Changed year to 2020 for Global Sprint (fixed typo)

Closes #37
Changed year from 2021 to 2020

Thank you @Vaibhav240804

My pleasure


Write new eval script for dataset-to-dataset transfer

Currently the train script automatically computes on-distribution performance results on a validation set, but we should also have a separate eval script for transfer experiments.

input: set of reporters, new dataset(?)
output: evaluation of set of reporters
default - evaluate on the test/validation set
sit in eval file


Use of Object.assign() breaks in most browsers

It looks like this commit https://github.com/6to5/6to5/commit/52e23473ed98c47a2c9c4f1b87d7ad0c311fb740 added Object.assign() to the code --- but almost no browsers support that: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign#Browser_compatibility. Updating to the latest version therefore broke things for me.

Object.assign() is an ES6 "experimental" feature

This is an experimental technology, part of the Harmony (ECMAScript 6) proposal.
Because this technology's specification has not stabilized, check the compatibility table for usage in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future version of browsers as the spec changes.

Caveats.

Yes @zloirock , but I think the problem is that the use of Object.assign() in the commit that broke things for me is being used by modules, which is not experimental.
Unless of course I'm missing something -- did this update not break modules for other people?

@davidtheclark Most of the 6to5 features required standard library polyfill. I do not see a problem here. My acquaintance with 6to5 began with the reading of it. What did you expect? :) In a pinch, you can write a stub for Object.assign in pair of lines.

@zloirock My strong impression was that the polyfill is totally optional, required for certain features only which are mentioned in the caveats. If that's not the case, documentation could be clarified. I have not included the polyfill so far and this is the first problem I have run into.

@davidtheclark You're right, I forgot to add it to the documentation. 6to5 uses ES5 syntax with various ES6 methods for usability reasons. There's no other way to do a non-function default export that has another export without using Object.assign. See #356, which is what introduced this behaviour.
As of 2.4.6 you can use the optional transformer coreAliasing to alias ES6 methods to their core-js equivalent. All this requires is that you:
$ npm install core-js --save

and to add the following option to your 6to5 command:
to5.transform("code", { optional: ["coreAliasing"] });

$ 6to5 --optional coreAliasing script.js

Apologies for the incorrect documentation, we're currently in the process of launching a new site which has made things a bit difficult.

Thanks! That sorts out why the latest update broke my build.

Should't this be classified as a semver breaking change -- since it broke code that previously worked?

@davidtheclark What code did you have before that was working? AFAIK, before exporting a non-function default with additional exports wouldn't work at all.

As of 2.7.2, Object.assign is no longer used and instead a simple inline helper.


Main page - Pressing away from nav dropdown menus should minimize them.

In general, menus should minimize when pressing away from them. Ideally, pressing the profile button on the mobile main page will minimize the navbar dropdown menu if it’s open, and vice versa.

Previous closed ticket's solution did not work
https://github.com/WonderTix/WonderTix/pull/594


Add top-to-bottom support

Add support for changing to any direction/writing-mode. Two new optional arguments added, "sourceDir" and "targetDir", which function as the source and target directions, defaulting to "lr-tb" and "rl-tb", respectively.
Additionally, added support for multiple background-positions (background-position: 5% 10%, 15% 20%; ), combined edge-value background-positions (background-position: right 5% bottom 10px; ), full URLs in background images, multiple text-shadows and box-shadows, border-images, and bidirectional cursors (such as cursor: nesw; ). Fixed bugs: box shadows with both inset and color before position ( box-shadow: inset red 1px 2px; ), double-quotes in attribute selectors no longer breaks class-flip suppressing, fixed text-shadows with both nonzero X and nonzero Y values, fixed issue with background-positions with horizontal edge values (background-position: left 10%;) and numerical background-colors (background: rgba( 0 , 0 , 0 , 0 ) url(foo.png) 10% 5%).

See: issue #25

It occurs to me that the way this handles "ltr"/"rtl" in image urls might not actually be the best way. It treats them like CSS directions, so lr-tb > tb-lr leaves "url(foo-ltr.png)" the same, instead of using "ttb" in the urls. Otoh, there might be applications for having images based on simple direction. Not sure.

I'm blocking this on #37 as I am unable to otherwise verify or imagine what a transformation does. It's difficult enough with LTR/RTL. Seeing it visually seems like the only sensible way to decide what is "right".

...Are there any issues still blocking this?

@YairRand Thank you for your continued effort on this pull request. I haven't forgotten. I'm trying to cherry-pick smaller steps of this into master branch. I hope to apply the main change to support top-to-bottom flipping soon as well.
The latest one is #46.

Ping?

@YairRand Sorry, but I just can't find the time to review a change of this size and complexity. The  (the php port of) CSSJanus is actively used at Wikimedia, there are close to no resources committed to its maintenance. And until or unless ttb support is needed at Wikimedia, given the complexity in understanding and maintaining it forward, I can't allocate the time for it.
I'll also admit that even with the visual demo (Thanks again for helping with that!), I still am not confident in what outcome I would expect when enabling ttb. It would help a lot if you can show an existing (realistic, as opposed to demo) example of a top-to-bottom website that uses the kind of layout we're proposing here.
The best advice I can give at this point is to split the change up in smaller well-documented and well-tested chunks that we can review and land one at a time. For example, it seems various internal refactors are part of this change which we can also apply to the current code base first, as a way of generalising and preparing the code for ttb support. Landing those separately first would be something that is easier to review as a way of more slowly getting used to the new shape of the code.
It will also provide some time to prepare the PHP port in lockstep.
I apologise for not setting the right expectations ahead of time. I was too optimistic in thinking I'd find spare time to figure this out and land it.

@Krinkle Thanks for the suggestion, I've split off some of this into #56 .
Some links:

Mediawiki RfC regarding vertical writing support on mediawiki.org and Phabricator. (See also T11436.)
ASL Wikipedia test on Incubator, using vertical writing mode. Currently uses a gadget to load a rotated version of Mediawiki's CSS. (The used version of Mediawiki's CSS has become outdated, leading to some visual issues.)
Request for Mongolian Wikipedia in Mongolian script, a vertically written script, on Meta-Wiki.


How to change es instance for non-production env?

Note: If your question is regarding the AWS Amplify Console service, please log it in the
AWS Amplify Console repository

Which Category is your question related to?
api
Amplify CLI Version
4.52.0
What AWS Services are you utilizing?
elasticsearch
Provide additional details e.g. code snippets
I know I can config es instance via ElasticSearchInstanceCount and ElasticSearchInstanceType, but by configuring it this way, all the environments got the same instance type and count, even for the non-production environments, which hugely increased my bill... I want to set the dev env as minimal as possible, how to do that..?

Maybe not the best solution, but what we do is we edit the amplify/backend/api/<app_name>/parameters.json file just before deployment in CI/CD and replace ElasticSearchInstanceCountand ElasticSearchInstanceType with correct values for production deployment.
For all other environments it's minimal instance size by default.

@yaquawa you can modify the instance by how @PatrykMilewski suggested.


HTML can't do draggable and transform?

Will it be implement in the future or is there any existing sample of linking with react-konva?

There is no support for that built-in into react-konva-utils.
But there are some hacky workarounds: https://codesandbox.io/s/react-konva-dom-between-konva-objects-dkrig1


Unable to make minimum selection in DKImagePickerController?

Hi,
I can find the variable of setting maxSelectableCount, however, what to do if I require minSelectableCount. Do we have any variable or work around?

Hi @veer-suthar You can make a subclass of DKImagePickerController, then check the count of selected images  in the done function.

See #493 for example code.


[Bug]: PandasQueryEngine with llama ccp bug unexpected indent (, line 1)

Bug Description
When using PandasQueryEngine with Llama CCP, whatever prompt I always get the same error.
Example code below:
from llama_index.query_engine import PandasQueryEngine query_engine = PandasQueryEngine(df=df, verbose=True, llm=llm, service_context=service_context) response = query_engine.query(     "What is the size of this dataframe?", ) display(response)
and error:
`Llama.generate: prefix-match hit

Pandas Instructions:

  To convert the input query "What is the size of this dataframe?" into executable Python code using Pandas, we can use the following approach:
1. Extract the relevant information from the `df` dataframe. In this case, we need to know the number of rows and columns in the dataframe.
2. Use the `shape` attribute of the dataframe to get the number of rows and columns. The shape attribute is a tuple containing the number of rows and columns in the dataframe.
3. Convert the number of rows and columns into a Python expression that can be evaluated using the `eval()` function. We can use the following formula: `len(df.index) * len(df.columns)`.
Here's the code:

Extract relevant information from df dataframe
rows = len(df.index)
cols = len(df.columns)
Convert to Python expression for evaluation using eval() function
size = rows * cols
Print the result as a solution to the query
print("The size of this dataframe is:", size)
Now, let's break down each line of the code:
1. `len(df.index)` and `len

Pandas Output: There was an error running the output as Python code. Error message: unexpected indent (, line 1)

Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/llama_index/query_engine/pandas_query_engine.py", line 60, in default_output_processor
tree = ast.parse(output)
File "/usr/lib/python3.10/ast.py", line 50, in parse
return compile(source, filename, mode, flags,
File "", line 1
To convert the input query "What is the size of this dataframe?" into executable Python code using Pandas, we can use the following approach:
IndentationError: unexpected indent
Response(response='There was an error running the output as Python code. Error message: unexpected indent (, line 1)', source_nodes=[], metadata={'pandas_instruction_str': '  To convert the input query "What is the size of this dataframe?" into executable Python code using Pandas, we can use the following approach:\n1. Extract the relevant information from the df dataframe. In this case, we need to know the number of rows and columns in the dataframe.\n2. Use the shape attribute of the dataframe to get the number of rows and columns. The shape attribute is a tuple containing the number of rows and columns in the dataframe.\n3. Convert the number of rows and columns into a Python expression that can be evaluated using the eval() function. We can use the following formula: len(df.index) * len(df.columns).\nHere's the code:\n\n# Extract relevant information from df dataframe\nrows = len(df.index)\ncols = len(df.columns)\n\n# Convert to Python expression for evaluation using eval() function\nsize = rows * cols\n\n# Print the result as a solution to the query\nprint("The size of this dataframe is:", size)\n\nNow, let's break down each line of the code:\n1. len(df.index) and len'})
Whatever I ask, I always receive the same error:
There was an error running the output as Python code. Error message: unexpected indent (<unknown>, line 1)
Version
0.2.18
Steps to Reproduce
Using PandasQueryEngine on an dataframe created from a CSV.
Relevant Logs/Tracbacks
No response

@giancarloerra the LLM did not follow instructions, and we could not easily parse the actual pandas code out of the response
In general, open-source LLMs are not really well-suited to this task. Llama2 is especially verbose. I would try using zephyr-beta maybe

@giancarloerra the LLM did not follow instructions, and we could not easily parse the actual pandas code out of the response
In general, open-source LLMs are not really well-suited to this task. Llama2 is especially verbose. I would try using zephyr-beta maybe

Thanks, is it something I can try fixing with a different output_processor?


Strongnamer still working without being referenced

Hi!
We installed the nuget package and it worked perfectly. But later I changed the branch to an old one which does not have the strongnamer reference, I restored the nuget packages, and strongnamer was still signing all the references, causing lot's of problems and we need some hours to found that there was a .targets file in the {project}/obj folder which had references to the nuget folder on my user folder.
I think strongnamer should only work if there is still a reference to himself on the project that is being building, to prevent signing even when the nuget package has been desinstalled (maybe if you manually desinstall the package it actually works nice because it deletes the .targets file, I don't know) or the reference on the csproj has been deleted.
Thank you!

What is the fix? All our projects are not working. We have the same issue. Just delete the .targets files?

We fixed it deleting the nuget cache from my user folder. For us deleting the obj folder didn't work, the targets had references to this library even after deleting them.
Yes this need to be fixed, this makes any project to stop working if you change your current branch, and debugging this is not easy.

Another issue we see is: Assemblies that are used both, in a signed assembly (with StrongNamer) and in an unsigned assembly are no longer copied to the respective bin/** folders. Example:
Assembly A
Assembly B -> Reference to Assembly A
Assembly C (signed) -> Reference to Assembly B
Assembly D (not signed) -> Reference to Assembly B
Assembly C and Assembly D (sometimes?!) do not have the dlls from Assembly A and B inside their bin/** folders. This happens in release and debug mode and of courses crashes all debugging attempts with "missing .dll"-errors.
Deleting all "obj" folders fixes this. But you have to do it all the time over and over again.


Add placeholder publish_scaladoc.sh script

Temporary fix for nightly Jenkins build failures.

Coverage remained the same at 29.646% when pulling 66f312331b439503dfcec9ad4f3257319e8e2da7 on heuermh:empty-publish-scaladoc into 82ef70058033bf4b65256c5b31d398783dd80a2b on bigdatagenomics:master.

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

Merged! Thanks @heuermh!


add note to payloadbodychecker doc

Add a note about the payloadbodychecker settings (related to issue #94)

Should this close issue #94?
(As discussed, we will review separately the list of settings for this checker - should #94 remain open as a reminder for this @rifiles or can it be closed?)

Should this PR close issue #94?
(As discussed, we will review separately the list of settings for this checker - should #94 remain open as a reminder for this @rifiles or can it be closed?)

We probably won't be updating the checker docs again until the recipe gets merged into the Settings file, correct? If so, the doc changes can probably be included in that PR, so I think it's safe to close the issue.

OK, will close #94 then.
Note that the recipe file is not documented anywhere, and is obsolete with the settings file allowing checker settings, so the doc may not need to be updated any further. When we get to #95, a PR for #95 (if needed) will address this.


Use of const in strict mode

Origin: Obtained through npm install xvfb-maybe -g
Command: xvfb-maybe ./node_modules/electron-prebuilt/dist/electron app.js
/usr/local/lib/node_modules/xvfb-maybe/src/xvfb-maybe.js:5
const spawnOg = require('child_process').spawn;
^^^^^
SyntaxError: Use of const in strict mode.
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:902:3

My bad, forgot that I had recently re-installed my servers' operating system and node was outdated! Sorry.


aot_resolve_target_info: avoid in-place modification of e_type

I believe that LLVM MemoryBuffer interface is supposed to be read-only and it's allowed to use eg. read-only mmap of the underlying file. It isn't appropriate to modify the view at all.

in case of WASM_ENABLE_DEBUG_AOT, the whole buffer is written as the text section of the aot file. the modified e_type would confuse dwarf consumers. note that, even when we are using XIP, the debug info usually contains relocations. for example, llvm-dwarfdump doesn't seem to perform relocations on .debug_info section for ET_CORE (== 4 == our E_TYPE_XIP) objects.

LGTM


dependencies: add react-scroll

closes: https://github.com/inveniosoftware/react-invenio-deposit/issues/281 (in part)

Different implementation nixes this: https://github.com/inveniosoftware/react-invenio-deposit/pull/290


Lexus IS 200T FW versions

Lexus IS 200T 2017 in Taiwan..
Engine fw for lexus IS
Device: comma two
Dongle ID: ec30903bb15db3ad

Thank you!


Some enhancement suggestions for result_t::iterator

Hi, awesome library!
It would be really cool if that iterator could be a fully standard conformant one.
For example, I just had an error with MSVC looking for std::iterator_traits<result_t::iterator>::iterator_category, while doing something of the sort:
// 'auto const' results in a compile error (at the transform call), don't know why
auto rows = db(select(all_of(user)).from(user).unconditionally());
std::vector<cpp_user> vec;

// this breaks on MSVC 2015
std::transform(rows.begin(), rows.end(), std::back_inserter(vec), convert_to_user);

The transform call can be replaced by a for-loop, so that's not a really blocking issue.
I have no idea why I cannot store the result of db(...) as auto const ?

I don't fully remember what's needed for an iterator to be fully conformant, but providing the specialization of std::iterator_traits would be really nice.
PS:
I might open another issue for this one, but isn't it possible to have a size method on the row object?
My use-case is to call reserve on a vector, and right now I have to do a select(count(...)) to have that info (std::distance doesn't work because of iterator_category too)
Thanks in advance!

Dear Theo,
Thanks for the detailed issue.
Let's start with the size. I think there is no portable way to obtain the size for the result set. Some databases just don't offer this information. However, it would be possible to offer it for those databases that have the information, of course.
About the non-constness of the result set: This is similar to an istream: It changes internal state while you read it. Depending on the database (and/or the type of connection) you can only forward-iterate the result set, e.g. rows are read on demand from the server and discarded after being read.
Regarding the iterator conforming the requirements, I guess there isn't much missing.
It would be awesome if you could help with this. I think it would be best to start with the iterator. Even if you can't fix the iterator code itself (I know the code isn't easy), you could provide one or more test cases that should work?
Size would be next. I think it would make sense to open a second issue for that.
Cheers,
Roland

I see, I'll try to fix the iterator this week then!

Great! Let me know if you need support!

The iterator issue is fixed, I think. Thanks for your support!
If you want to tackle size(), please create a new pull request.


Creating ALB with Cloudfront using Terraform gives 504. Working with Manual resource creation

Description
Using these AWS docs to integrate ALB with Cloudfront:

https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/restrict-access-to-load-balancer.html
https://repost.aws/knowledge-center/waf-restrict-alb-allow-cloudfront

When I tested the setup manually, it worked. The request was reaching to my ingress controller.
Upon setting up terraform, it doesn't work and gives:
504 Gateway Timeout ERROR
The request could not be satisfied.
We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.
If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.
Generated by cloudfront (CloudFront) HTTP3 Server
Request ID: ZDoU9i5gTZxVnq6G-Y3PJbDzXNI-8vJz0-__Da-O9aZbL-VjxnNWyA==

I tried creating another one manually and import the resource in terraform to see if I am missing something, but it all looks same (on the origin config). Yet TF still recreates the origin and the same working cloudfront starts giving the 504 error upon applying.

[X] ✋ I have searched the open/closed issues and my issue is not listed.

⚠ Note
Versions

Module version [Required]:

Terraform version:
1.8.0

Provider version(s):
5.51.1

Cloudfront Module
https://github.com/terraform-aws-modules/terraform-aws-cloudfront (3.4.0)

Terragrunt Version
v0.58.13

Reproduction Code [Required]
module "cdn" {
  source = "terraform-aws-modules/cloudfront/aws"
  version = "3.4.0"

  aliases = var.aliases

  comment             = "CDN with ALB origin for Ingress controller"
  price_class         = "PriceClass_All"
  wait_for_deployment = false
  http_version        = "http2and3"

  origin = {
    "${var.alb_dns_name}" = {
      domain_name = var.alb_dns_name
      origin_id   = var.ingress_domain
      custom_origin_config = {
        http_port              = 80
        https_port             = 443
        origin_protocol_policy = "https-only"
        origin_ssl_protocols   = ["TLSv1", "TLSv1.1", "TLSv1.2"]
      }
    }
  }

  default_cache_behavior = {
    allowed_methods        = ["GET", "HEAD", "OPTIONS", "PUT", "POST", "PATCH", "DELETE"]
    cached_methods         = ["GET", "HEAD", "OPTIONS"]
    target_origin_id       = var.ingress_domain
    viewer_protocol_policy = "redirect-to-https"
    forwarded_values = {
      headers      = ["*"]
      query_string = true
      cookies = {
        forward = "all"
      }
    }
  }

  viewer_certificate = {
    acm_certificate_arn = var.acm_certificate_arn
    ssl_support_method  = "sni-only"
  }
  tags = merge(local.default_tags, { origin = var.alb_dns_name })
}

variables.tf:
alb_dns_name        = "alb-dns-name.ap-south-1.elb.amazonaws.com"
acm_certificate_arn = "ACM cert ARN in us-east-1"
aliases             = ["*.env.domain.com"]
ingress_domain      = "env.domain.com"

The resource import I tried for the working CDN (which didn't work after completing the import):
terragrunt apply
module.cdn.aws_cloudfront_distribution.this[0]: Refreshing state... [id=dist-id]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

  # module.cdn.aws_cloudfront_distribution.this[0] will be updated in-place
  ~ resource "aws_cloudfront_distribution" "this" {
      ~ comment                         = "testing CDN" -> "CDN with ALB origin for Ingress controller"
        id                              = "dist-id"
      ~ is_ipv6_enabled                 = true -> false
      ~ tags                            = {
          + "managed_by" = "terraform"
          + "origin"     = "alb-dns-name.ap-south-1.elb.amazonaws.com"
          + "app"  = "shared"
          + "env"  = "stg"
          + "team" = "infra"
        }
      ~ tags_all                        = {
          + "managed_by" = "terraform"
          + "origin"     = "alb-dns-name.ap-south-1.elb.amazonaws.com"
          + "app"  = "shared"
          + "env"  = "stg"
          + "team" = "infra"
        }
      ~ wait_for_deployment             = true -> false
        # (19 unchanged attributes hidden)

      ~ default_cache_behavior {
          - cache_policy_id            = "83da9c7e-98b4-4e11-a168-04f0df8e2c65" -> null
          ~ compress                   = true -> false
          - origin_request_policy_id   = "216adef6-5c7f-47e4-b989-5492eafa07d3" -> null
            # (13 unchanged attributes hidden)

          + forwarded_values {
              + query_string            = false
              + query_string_cache_keys = []

              + cookies {
                  + forward           = "none"
                  + whitelisted_names = (known after apply)
                }
            }
        }

      - origin {
          - connection_attempts      = 3 -> null
          - connection_timeout       = 10 -> null
          - domain_name              = "alb-dns-name.ap-south-1.elb.amazonaws.com" -> null
          - origin_id                = "env.domain.com" -> null
            # (2 unchanged attributes hidden)

          - custom_origin_config {
              - http_port                = 80 -> null
              - https_port               = 443 -> null
              - origin_keepalive_timeout = 5 -> null
              - origin_protocol_policy   = "https-only" -> null
              - origin_read_timeout      = 30 -> null
              - origin_ssl_protocols     = [
                  - "TLSv1.2",
                ] -> null
            }
        }
      + origin {
          + connection_attempts      = 3
          + connection_timeout       = 10
          + domain_name              = "alb-dns-name.ap-south-1.elb.amazonaws.com"
          + origin_id                = "env.domain.com"
            # (2 unchanged attributes hidden)

          + custom_origin_config {
              + http_port                = 80
              + https_port               = 443
              + origin_keepalive_timeout = 5
              + origin_protocol_policy   = "https-only"
              + origin_read_timeout      = 30
              + origin_ssl_protocols     = [
                  + "TLSv1",
                  + "TLSv1.1",
                  + "TLSv1.2",
                ]
            }
        }

      ~ viewer_certificate {
          ~ minimum_protocol_version       = "TLSv1.2_2021" -> "TLSv1"
            # (4 unchanged attributes hidden)
        }

        # (1 unchanged block hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

Do you want to perform these actions?
  Terraform will perform the actions described above.
  Only 'yes' will be accepted to approve.

  Enter a value: yes

module.cdn.aws_cloudfront_distribution.this[0]: Modifying... [id=dist-id]
module.cdn.aws_cloudfront_distribution.this[0]: Modifications complete after 2s [id=dist-id]

Expected Behavior
Upon restoring, the origin shouldn't get recreated.

Hi, did you tried it provider.tf. eg
provider "aws" {   region = "us-east-1" }

Turns out, during console testing it was adding managed origin_policy and origin_request_policy_id
Adding them in TF helped resolved the issue.

Turns out, during console testing it was adding managed origin_policy and origin_request_policy_id
Adding them in TF helped resolved the issue.


feat(open-api-gateway): generate a router for using a single lambda function for all operations

The generated API client now includes a handlerRouter which can be used to route requests to the appropriate handler if users desire to deploy a single shared lambda for all API integrations.
In TypeScript, this is type-safe, ensuring all operations are mapped to a handler produced by the appropriate handler wrapper method.
Additionally we supply a convenience method Operations.all to make it easy to share the same integration for all operations.
This change includes support for TypeScript and Python - Java coming soon!
re #238

Looks great Jack. Would be nice to address the comment around "default vs all", but that can be added later.
Also would be really great to replace mustache Typescript AST and JSII (auto-generate python+java++), but likely needs to wait for JSII to support Typescript 4.x to handle the interfaces. I will create a feature request for that to track.

Yes this would be so good!! It does get a little tedious having to implement every change to generated code in all three languages! 😆


jsx-wrap-multilines: option to exclude selfclosing components

Hi!
We have a lot of selfclosing components that can be assigned to variables and have line break between attributes, like
const comp = <Component prop1='prop1' prop2='prop2' prop3='prop3'/
                        prop4='prop4' prop5='prop5'/>;

I don't want to wrap such components in parens, but want to wrap multiline components that have children
const comp = (
  <Component prop1='prop1' prop2='prop2' prop3='prop3'/
             prop4='prop4' prop5='prop5'>
    <ChildrenComp/>
    <ChildrenComp/>
    <ChildrenComp/>
  </Component>
);

Today jsx-wrap-multilines just enforce parens on any multiline components, would be great to have option to ignore selfclosing ones. And maybe each current option (declaration, assignment, return, arrow) should have such option, because, for instance, I might want to wrap returned multiline component into parens anyway
return (
  <Component prop1='prop1' prop2='prop2' prop3='prop3'/
             prop4='prop4' prop5='prop5'/>
);

So maybe config could look like
'react/jsx-wrap-multilines': [2, {
    'declaration': {ignoreSelfClosing: true},
    'assignment': {ignoreSelfClosing: true},
    'return': true,
    'arrow': true,
}],

Related suggestion is to enforce parens if component starts on the next line after declaration, doesn't matter if it multiline or not.
const comp = <Component prop1='prop1' prop2='prop2' prop3='prop3'
                        prop4='prop4' prop5='prop5'/>;

But
const comp = (
  <Component prop1='prop1' prop2='prop2' prop3='prop3' prop4='prop4' prop5='prop5'/>
);

const comp = (
  <Component prop1='prop1'><ChildrenComp/></Component>
);

'react/jsx-wrap-multilines': [2, {
    'declaration': {ignoreSelfClosing: true, newLine: true},
    'assignment': {ignoreSelfClosing: true, newLine: true},
    'return': true,
    'arrow': true,
}],

Or maybe it should be handled by different rule

What's the rationale for not wrapping multiline jsx in parens just because they don't have children?
The rationale for wrapping it is that the parens form a group across multiple lines, aiding readability.

If component has closing tag and closing tag is on next line, according react/jsx-closing-tag-location opening tag should be moved to the new line to be inlined with closing tag.
If component doesn't have closing tag I want to keep it on the first line no matter how many lines it allocates to fit all own props. Because I align its props by first declared prop.

I'm not really convinced this is worth adding, but we can keep it open in case anyone else has the need.


Light/Dark Mode Issue on Properties Box

Description
When I select the same color (either light or dark) on both the Files and the operating system, the dark/light mode works fine.
But when I set the light mode for the Files and the dark mode for the Operating System, or the dark mode for the Files and the light mode for the Operating System, it does not show the corresponding color on the Properties box.
1st Screenshot Description:
I have selected light Mode for the operating system and dark mode for Files

2nd Screenshot Description:
I have selected dark Mode for the operating system and light mode for Files

Steps To Reproduce
No response
Expected behavior
When I set the light mode for the Files and the dark mode for the Operating System, or the dark mode for the Files and the light mode for the Operating System, the Files should show the corresponding color on the Properties window.
Files Version
Version: <IP_ADDRESS>
Windows Version
OS Version: 10.0.22000.348
Relevant Assets/Logs
debug_fulltrust.log
debug.log

Merging with #6892


carefree-data and carefree-learn appear to require numpy == 1.20.0

When importing either of:
from cfdata.tabular import TabularDataset
import cflearn

When the following lines in cython_wrappers.py is run with numpy==1.19.2 it will fail
try:
    from .cython_utils import *
except ImportError:
    raise

# with error
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject

numpy 1.20 is not yet available in anaconda, but if numpy is uninstalled & numpy==1.20.0 is specifically installed via pip, the error disappears.

Thank you very much for pointing this out! I'll try to fix this compatibility issue ASAP😆

I've upgraded the dependency of numpy & python in README.md, setup.py & pyproject.toml, and it should be OK now. If you still encountered this issue from a new, fresh environment under the new instructions, feel free to re-open this issue anytime!


Check jakt main typedecl

Add separate typecheck for main functions as stated in https://github.com/SerenityOS/jakt/issues/184
Also fix tests to use this new declaration.

Also fix tests to use this new mandatory declaration.

I never said they should be mandatory...

Sorry, now I'm a bit lost. So the type declaration for main should be inferred if not explicitly typed by the user or?

Right, I think inheriting a bit of magic from C/C++ isn't a bad thing here. Personally I think it should be fine to:

Omit the return type declaration and not return anything -> implicit return 0
Omit the return type declaration and return a number
Omit the args parameter if they are not being used

In other words,
function main() {}

is the same as
function main(args: [String]) throws -> c_int {}

but that does not mean that
function main(foo: i32, bar: i32) -> String {}

should be accepted.

Right, my bad. Misunderstood it.

Sorry for the hassle, my git-fo is a bit rusty (heh)


Length check in usGenerateProtocolChecksum()

Corrected length-check in usGenerateProtocolChecksum()

The 16-bit IPv4-field usLength is equal to the length of the IP-header, plus the protocol header plus the payload.
But it does not have knowledge about the Ethernet header that may precede it.
The the length check should be:
-	if( uxBufferLength < FreeRTOS_ntohs( pxIPPacket->xIPHeader.usLength )
+	if( uxBufferLength < FreeRTOS_ntohs( pxIPPacket->xIPHeader.usLength + ipSIZE_OF_ETH_HEADER )

I tested the above change by adding some logging, which shows that uxBufferLength is always 14 bytes bigger than what is indicated in usLength.
Checklist:

[x] I have tested my changes. No regression in existing tests.
[ ] My code is Linted.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/bot run checks


Added delta feature calculation function; also updated test example

Hello, after the denominator fix the result returns vectors with -inf for all frames.

@jameslyons can you have a look at this one please?

@ybdarrenwang please have more than one change set. Focus on Delta first. Be careful about the format of your tabs. Thanks!

And check your calculations please. I did my own implementation and we come with a different result!

@philipperemy I cleaned up the tabs and removed changes except delta. Could you specify how my result is different from yours?


Need ability to set a custom master tab

I think it would be quite helpful to add the feature of setting a custom master tab from any of the other tabs. One of the use cases would be when someone wants one of the non-master tabs to open a websocket and disconnect from the master tab.
For example, in my case, I want to limit the number of sockets my application opens. But at the same time, I want to avoid cases where user experience is affected due to closed sockets. So, by default, my app opens the connection on the master tab. But when the user interacts with one of the other tabs, I would want to make it a master tab and then open a socket. At the same time, previous master tab will close the socket.

I can create a PR for this if you want.

Ah interesting, so basically having some notion of promoting a specific tab to master?
The way I would implement that is to basically close and re-init the crosstab instance on the current master, and to steal its ID on the one you want to promote (or something similar).

PR would be welcome


Copy & Paste improvements

Hi Arnaud, thank you for letting us test a new way of copy/pasting text within WebSSH.
As the other threads are now closed I thought I'd open a new one for us to provide feedback on this feature.
iOS

If the keyboard is hidden and you hold-touch the screen, the menu hides behind the keyboard and the console drops down and leaves a white section at the top. It doesn't always do this but I can't work out the exact steps to reproduce.
Touch mode -> Select text. Selecting text less then around 8 characters makes the keyboard appear / disappear. It's also really difficult to select text on iOS (not tested iPadOS), and could do with the OS' built-in method of text highlighting
How do we copy text once highlighted? Tapping it just brings up the keyboard and highlight is lost. Touch holding brings up the menu, but selecting Copy -> Copy Selected doesn't make sense. What should happen here? Does it then copy any text I highlight?

There's more but I've run out of time this evening. Will do more testing tomorrow. 👍

Hi @jarrah31 👋
Thank you to open a new issue to track feedback improvements about copy / paste feature 👍

If the keyboard is hidden and you hold-touch the screen, the menu hides behind the keyboard and the console drops down and leaves a white section at the top. It doesn't always do this but I can't work out the exact steps to reproduce.

I will check and fix

Touch mode -> Select text. Selecting text less then around 8 characters makes the keyboard appear / disappear. It's also really difficult to select text on iOS (not tested iPadOS), and could do with the OS' built-in method of text highlighting

Yes my own implementation of text copy is far from user friendly you're right.
I need to improve it.
Right now you can still use "View Scrollback Buffer" in order to copy your content.

How do we copy text once highlighted? Tapping it just brings up the keyboard and highlight is lost. Touch holding brings up the menu, but selecting Copy -> Copy Selected doesn't make sense. What should happen here?

Once again you're right.

Does it then copy any text I highlight?

Not yet (but yes it will) : https://github.com/isontheline/pro.webssh.net/issues/523

Thank you Arnaud!
macOS feedback:

Using the right-click menu to copy and paste text causes the flashing cursor to loose focus. After selecting either copy or paste, I then need to click back on the screen to continue typing.
Looking forward to https://github.com/isontheline/pro.webssh.net/issues/523 where I can just highlight text and then press middle mouse button to paste. :)

I was curious to see how Termius handles copy/paste, so I launched the app and had a quick play. I must admit, their copy/paste method works really well, and it would be great if WebSSH could emulate it (I presume there's no trademark issues in doing so...)
Basically, you can scroll using touch by default. Touch-holding text causes a magnifying glass to appear to help you position the start of the cursor. An Apple-style "Select, Select All, Paste" menu then appears when you let go. If I press Select it highlights that word and presents draggable anchor points to highlight more text, with a "Copy, Select All, etc" menu appearing each time I stop touching the screen.

Yes Termius team have implemented a better text selection than me (they don't seem to use the native one though).
I will also implement a good one 😅

Copy Paste with the iPadOS is only doable by Scrollback Buffer, when there is no mouse in place.
But this is a real hazzle in my eyes, as the text in scrollback is really small and to copy text is really tough job to do. I would like to have a better way to copy and paste on the ipad.

From @MrFly72 on https://github.com/isontheline/pro.webssh.net/issues/762#issue-1438614240

Some improvements of text selection are now available inside the latest beta release https://testflight.apple.com/join/QSrBK59z


define a admiral open source strategy (12h)

goal: how to make admiral truly open source

publishing strategy
company engagement
user engagement

I think we have a strategy now?  I was looking on Box but couldn't find it.  Do you have if there is a ppt or file for us?
Any chance we can close this issue if we have developed a strategy and a strategy doc?

Well, the package is open-source now so I think we're good to close.


replace deprecated http.createClient() usage

thanks Brian. Why are http.Agent ? The docs indicate http.request is the sanctioned replacement:
https://nodejs.org/dist/latest-v6.x/docs/api/http.html#http_http_createclient_port_host

I was being a bit more strict in the replacement since the http.Client constructor created its own http.Agent instance. http.request() uses a global Agent instance by default that is shared by all http.request() calls.
Either way it's up to you what you want to use, if you feel http.request() without creating an explicit http.Agent instance is good enough in this particular case, then feel free to use that instead of this PR. At the very least you can view this PR as a heads up that the deprecated http client API may be removed in the near future (https://github.com/nodejs/node/pull/8104).

ok sounds quite reasonable. Thanks again.


Fix doctest for AD command

Signed-off-by: jackiehanyang<EMAIL_ADDRESS>Description
[Describe what this change achieves]
Issues Resolved
[List any issues this PR will resolve]
Check List

[ ] New functionality includes testing.

[ ] All tests pass, including unit test, integration test and doctest

[ ] New functionality has been documented.

[ ] New functionality has javadoc added
[ ] New functionality has user manual doc added

[ ] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #575 (c3f6fd8) into main (0ae97ad) will decrease coverage by 31.82%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##               main     #575       +/-   ##
=============================================
- Coverage     94.59%   62.76%   -31.83%
=============================================
  Files           276       10      -266
  Lines          7454      658     -6796
  Branches        550      118      -432
=============================================
- Hits           7051      413     -6638
+ Misses          349      192      -157
+ Partials         54       53        -1

Flag
Coverage Δ

query-workbench
62.76% <ø> (ø)

sql-engine
?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

.../opensearch/sql/planner/logical/LogicalWindow.java

...arch/sql/expression/datetime/DateTimeFunction.java

...ript/filter/ExpressionFilterScriptLeafFactory.java

...rch/sql/storage/bindingtuple/LazyBindingTuple.java

...arch/sql/expression/aggregation/SumAggregator.java

...ression/operator/arthmetic/ArithmeticFunction.java

...pensearch/sql/planner/physical/ValuesOperator.java

...c/main/java/org/opensearch/sql/ppl/PPLService.java

...rg/opensearch/sql/ppl/domain/PPLQueryResponse.java

...pensearch/sql/planner/physical/RemoveOperator.java

... and 256 more

Continue to review full report at Codecov.

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


feat(notification): add base of notification

୧( ⁼̴̶̤̀ω⁼̴̶̤́ )૭
the functionality has been added, so now it just needs to look pwetty :3

addddedededed