Cache Component

Adding the cache component. @mattstauffer do you want another driver done? Something like redis or memcache would require those services to be running locally if you wanted to test them in the browser.
Signed-off-by: Hunter Skrasek<EMAIL_ADDRESS>

:+1: Thanks @hskrasek !!

@mattstauffer did you want me to add an example of the other drivers? Or is it fine with just the file driver?

@hskrasek @mattstauffer - i think it would be awesome to see other driver examples.

@hskrasek yah, maybe as a different route?

@mattstauffer That was the plan. the only issue is that I have to make some assumptions on where the examples are being ran. Not everyone has redis running on their machine for example.
I'll open a new PR with the additional examples and we can decide how to handle that there


@eessex => Article2 Layouts

Supports classic versions (partner, channel, fair - non-editorial) + AMP as well ---
GIF shows: Standard, feature, small amp update

Not sure why, but the dropcaps/some text stuff isn't showing up in the text component.

The dropcaps are saved into the body html in writer - another item for the backfill list

A few minor comments, but this looks great to me. Feel free to merge, looking forward to seeing in action!


Broken link on the site: https://fastapi.tiangolo.com/tutorial/using-request-directly/

Hi Team,
I tried link listed in this issue: https://github.com/tiangolo/fastapi/issues/201 and it returns 404:
https://fastapi.tiangolo.com/tutorial/using-request-directly/
Please if you fix it.

I'd like to look into this, however, I am not sure if the link has been updated or removed. Would you please confirm this issue, @tiangolo?

UPDATE: I looked into #201 and someone had recently commented about the updated link: https://fastapi.tiangolo.com/advanced/using-request-directly/. @tomarv2, would you check the link and see if it helps you? Thanks.

Working thankyou..closing!

Thanks for the help here @ovezovs ! :clap: :bow:
Thanks for reporting back and closing the issue @tomarv2  :+1:


Incorrect background color generation in BaseConsole::renderColoredString()

What steps will reproduce the problem?

Create a new command:

<?php
namespace app\commands;

use yii\console\Controller;
use yii\helpers\BaseConsole;

class ColorTestController extends Controller
{
    public function actionIndex()
    {
        list($width, $height) = BaseConsole::getScreenSize(true);

        $foregrounds = [null, 'k', 'K', 'r', 'R', 'g', 'G', 'y', 'Y', 'b', 'B', 'm', 'M', 'p', 'P', 'c', 'C', 'w', 'W'];

        $backgrounds = [null, '0', '1', '2', '3', '4', '5', '6', '7'];

        $difference = intval(floor($width / 24));

        for ($min = 0; $min < 9; $min += $difference) {
            $max = $min + $difference;

            foreach ($foregrounds as $foreground) {
                foreach ($backgrounds as $key => $background) {
                    if ($key < $min || $key >= $max) {
                        continue;
                    }

                    $this->stdout(BaseConsole::renderColoredString(sprintf(
                        '%2s %2s %s%s%s',
                        is_null($foreground) ? '' : '%%' . $foreground,
                        is_null($background) ? '' : '%%' . $background,
                        is_null($foreground) ? '' : '%' . $foreground,
                        is_null($background) ? '' : '%' . $background,
                        'Sample Text%n       '
                    )));
                }

                $this->stdout("\n");
            }

            $this->stdout("\n\n");
        }
    }
}

Run ./console color-test

What is the expected result?

The Sample text in %W %0 Sample Text has white color and black background
The Sample text in %W %6 Sample Text has white color and cyan background
The Sample text in %W %7 Sample Text has white color and gray background

What do you get instead?

The Sample text in %W %0 Sample Text has white color and gray background
The Sample text in %W %6 Sample Text has white color and purple background
The Sample text in %W %7 Sample Text has white color and cyan background

Additional info

Q
A

Yii version
any 2.* released after Mar 23, 2014

PHP version
any

Operating system
any

How to fix
In the BaseConsole::renderColoredString() method, change these $conversions array values:

'%0' => [self::BG_GREY] to '%0' => [self::BG_BLACK]
'%6' => [self::BG_PURPLE] to '%6' => [self::BG_CYAN]
'%7' => [self::BG_CYAN] to '%7' => [self::BG_GREY]

Thank you for a perfect report

Many thanks for both a praise and a fix. :)


Docker for mac kills my containers upon OS X wake up

Output of docker version:
Client:
 Version:      1.11.1
 API version:  1.23
 Go version:   go1.5.4
 Git commit:   5604cbe
 Built:        Wed Apr 27 00:34:20 2016
 OS/Arch:      darwin/amd64

Server:
 Version:      1.11.1
 API version:  1.23
 Go version:   go1.5.4
 Git commit:   8b63c77
 Built:        Tue May 10 10:39:20 2016
 OS/Arch:      linux/amd64

Output of docker info:
Containers: 1
 Running: 0
 Paused: 0
 Stopped: 1
Images: 4
Server Version: 1.11.1
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 35
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: host bridge null
Kernel Version: 4.4.9-moby
Operating System: Alpine Linux v3.3
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.955 GiB
Name: moby
ID: IT5A:GUHO:FDDZ:WEXT:FWKW:T4EG:3K7Q:6XZF:6ND7:WDL6:O4PI:D2U2
Docker Root Dir: /var/lib/docker
Debug mode (client): false
Debug mode (server): true
 File Descriptors: 16
 Goroutines: 35
 System Time: 2016-05-15T08:18:00.852673952Z
 EventsListeners: 1
Registry: https://index.docker.io/v1/

Additional environment details (AWS, VirtualBox, physical, etc.):
OS X xhyve thing (Docker for Mac beta)
Steps to reproduce the issue:

Install docker, run an image
Shut laptop
Open laptop

Describe the results you received:
My containers exit at the time I open my laptop.
$docker ps -a
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                      PORTS               NAMES
4b5628307072        sebp/lighttpd       "lighttpd -D -f /etc/"   10 hours ago        Exited (0) 15 minutes ago                       ecstatic_snyder

Describe the results you expected:
I expect my containers to keep running
Additional information you deem important (e.g. issue happens only occasionally):
Console.app log:
15/05/2016 09:00:06.531 Docker[38275]: Creating resource Entry(tcp:<IP_ADDRESS>:80)
15/05/2016 09:00:06.533 Docker[38275]: Write offset=0 data=[tcp:<IP_ADDRESS>:80:00010050] to file
15/05/2016 09:00:06.534 Docker[38662]: Client reports version 1, commit<PHONE_NUMBER>012345678901234567890123456789
15/05/2016 09:00:06.535 Docker[38275]: Client.negotiate: received ((magic VMN3T)(version 14)(commit 37559e5f6acd56a4810963acc7001e88f2d88017))
15/05/2016 09:00:06.535 Docker[38662]: sendmsg ok
15/05/2016 09:00:06.535 Docker[38275]: Created instance tcp:<IP_ADDRESS>:80:00010050
15/05/2016 09:00:42.773 Docker[38276]: System wants to go to sleep
15/05/2016 09:00:42.773 Docker[38276]: Asking com.docker.hyperkit to freeze vcpus
15/05/2016 09:00:42.875 Docker[38276]: vcpu freeze complete: allowing sleep
15/05/2016 09:00:42.000 kernel[0]: PM response took 106 ms (38276, com.docker.drive)
15/05/2016 09:00:42.972 Docker[38276]: vcpu 1 waiting for signal to resume
15/05/2016 09:00:43.388 Docker[38276]: vcpu 0 waiting for signal to resume
15/05/2016 09:03:20.691 Docker[38276]: System wants to wake up
15/05/2016 09:03:20.691 Docker[38276]: Asking com.docker.hyperkit to thaw vcpus
15/05/2016 09:03:20.692 Docker[38276]: vcpu 1 received signal, resuming
15/05/2016 09:03:20.698 Docker[38276]: vcpu 0 received signal, resuming
15/05/2016 09:03:20.762 Docker[38276]: vm exit[1]
15/05/2016 09:03:20.762 Docker[38276]: virtio-net-ipc: initialising uuid=0837feff-ca24-42c9-a654-4117ed2cc4df,path=/var/tmp/com.docker.slirp.socket,macfile=/Users/nawal/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/mac.0
15/05/2016 09:03:20.762 Docker[38276]:  reason      VMX
15/05/2016 09:03:20.762 Docker[38276]: Interface will have uuid 0837feff-ca24-42c9-a654-4117ed2cc4df
15/05/2016 09:03:20.762 Docker[38276]:  rip     0xffffffff81095a35
15/05/2016 09:03:20.762 Docker[38276]: Connection established with MAC=c0:ff:ee:c0:ff:ee and MTU 1500
15/05/2016 09:03:20.762 Docker[38276]:  inst_length 3
15/05/2016 09:03:20.762 Docker[38276]:  status      0
15/05/2016 09:03:20.762 Docker[38276]: virtio-9p: initialising path=/var/tmp/com.docker.db.socket,tag=db
15/05/2016 09:03:20.762 Docker[38276]:  exit_reason 2
15/05/2016 09:03:20.762 Docker[38276]: virtio-9p: initialising path=/var/tmp/com.docker.port.socket,tag=port
15/05/2016 09:03:20.762 Docker[38276]:  qualification   0x0000000000000000
15/05/2016 09:03:20.762 Docker[38276]: linkname /Users/nawal/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty
15/05/2016 09:03:20.763 Docker[38276]:  inst_type       0
15/05/2016 09:03:20.763 Docker[38276]: COM1 connected to /dev/ttys001
15/05/2016 09:03:20.763 Docker[38276]:  inst_error      0
15/05/2016 09:03:20.763 Docker[38276]: COM1 linked to /Users/nawal/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty
15/05/2016 09:03:20.763 Docker[38276]: received sigusr1, pausing
15/05/2016 09:03:20.763 Docker[38276]: received sigusr2, unpausing
15/05/2016 09:03:22.119 Docker[38275]: PPP.listen: closing connection
15/05/2016 09:03:22.119 Docker[38274]: Fatal unexpected exception: Transfuse.Socket_closed
15/05/2016 09:03:22.121 Docker[30472]: Reap com.docker.osxfs (pid 38274): exit status 1
15/05/2016 09:03:22.165 Docker[30477]: VM has shutdown at 2016-05-15 09:03:22 +0100 BST
15/05/2016 09:03:22.168 Docker[30472]: Reap com.docker.driver.amd64-linux (pid 38276): exit status 0
15/05/2016 09:03:22.172 Docker[30458]: dockerState = starting
15/05/2016 09:03:22.187 ReportCrash[38706]: Saved crash report for com.docker.hyperkit[38278] version 0 to /Users/nawal/Library/Logs/DiagnosticReports/com.docker.hyperkit_2016-05-15-090322_Nawals-MacBook-Air.crash
15/05/2016 09:03:23.122 Docker[30472]: Stop 1 children with order 1: com.docker.driver.amd64-linux (pid 38276)
15/05/2016 09:03:23.123 Docker[30472]: Stop 2 children with order 2: com.docker.osxfs (pid 38274), com.docker.slirp (pid 38275)
15/05/2016 09:03:23.123 Docker[30472]: Signal terminated to com.docker.slirp (pid 38275)
15/05/2016 09:03:23.126 Docker[30472]: Reap com.docker.slirp (pid 38275): signal: terminated
15/05/2016 09:03:23.226 Docker[30472]: Starting com.docker.osxfs, com.docker.slirp, com.docker.driver.amd64-linux
15/05/2016 09:03:23.230 Docker[30472]: Start com.docker.osxfs (pid 38709)
15/05/2016 09:03:23.234 Docker[30472]: Start com.docker.slirp (pid 38710)
15/05/2016 09:03:23.239 Docker[30472]: Start com.docker.driver.amd64-linux (pid 38711)
15/05/2016 09:03:23.244 Docker[38709]: Logging to Apple System Log
15/05/2016 09:03:23.250 Docker[38710]: Logging to Apple System Log
15/05/2016 09:03:23.250 Docker[38710]: Setting handler to ignore all SIGPIPE signals
15/05/2016 09:03:23.250 Docker[38710]: starting port_forwarding port_control_path:fd:4 vsock_path:/var/tmp/com.docker.vsock/connect
15/05/2016 09:03:23.250 Docker[38710]: attempting to reconnect to database on unix /var/tmp/com.docker.db.socket
15/05/2016 09:03:23.251 Docker[38710]: reconnected transport layer
15/05/2016 09:03:23.252 Docker[38710]: allowing binds to any IP addresses
15/05/2016 09:03:23.254 Docker[38710]: Starting slirp server pcap_settings:disabled peer_ip:<IP_ADDRESS> local_ip:<IP_ADDRESS>
15/05/2016 09:03:23.262 Docker[38711]: Acquired hypervisor lock
15/05/2016 09:03:23.265 Docker[38711]: Docker is not responding: waiting 0.5s
15/05/2016 09:03:23.337 Docker[38711]: hypervisor: native
15/05/2016 09:03:23.337 Docker[38711]: filesystem: osxfs
15/05/2016 09:03:23.338 Docker[38709]: Using protocol TwoThousand msize 16384
15/05/2016 09:03:23.338 Docker[38711]: Hypervisor: native; BootProtocol: direct; UefiBootDisk: /Users/nawal/UefiBoot.qcow2
15/05/2016 09:03:23.339 Docker[38711]: Launching: /Users/nawal/000_Level_1/086_Applications/Docker.app/Contents/MacOS/com.docker.hyperkit -A -m 2G -c 2 -u -s 0:0,hostbridge -s 31,lpc -s 2:0,virtio-ipc,uuid=0837feff-ca24-42c9-a654-4117ed2cc4df,path=/var/tmp/com.docker.slirp.socket,macfile=/Users/nawal/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/mac.0 -s 3,virtio-blk,file:///Users/nawal/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/Docker.qcow2,format=qcow -s 4,virtio-9p,path=/var/tmp/com.docker.db.socket,tag=db -s 5,virtio-rnd -s 6,virtio-9p,path=/var/tmp/com.docker.port.socket,tag=port -s 7,virtio-sock,guest_cid=3,path=/var/tmp/com.docker.vsock,guest_forwards=2376;1525 -l com1,autopty=/Users/nawal/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty,log=/Users/nawal/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/console-ring -f kexec,/Users/nawal/000_Level_1/086_Applications/Docker.app/Contents/Resources/moby/vmlinuz64,/Users/nawal/000_Level_1/086_Applications/Docker.app/Contents/Resources/moby/initrd.img,earlyprintk=serial console=ttyS0 com.docker.driverDir="/Users/nawal/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux", com.docker.database="com.docker.driver.amd64-linux" -F /Users/nawal/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/hypervisor.pid
15/05/2016 09:03:23.375 Docker[38713]: Starting xhyve
15/05/2016 09:03:23.376 Docker[38711]: May 15 09:03:23 Nawals-MacBook-Air.local Docker[38713] <Notice>: Starting xhyve
15/05/2016 09:03:23.376 Docker[38710]: PPP.negotiate: received ((magic VMN3T)(version 14)(commit 37559e5f6acd56a4810963acc7001e88f2d88017))
15/05/2016 09:03:23.376 Docker[38710]: PPP.negotiate: received (Ethernet 0837feff-ca24-42c9-a654-4117ed2cc4df)
15/05/2016 09:03:23.376 Docker[38710]: PPP.negotiate: sending ((mtu 1500)(max_packet_size 1550)(client_macaddr c0:ff:ee:c0:ff:ee))
15/05/2016 09:03:23.377 Docker[38710]: PPP.listen: called a second time: doing nothing
15/05/2016 09:03:23.377 Docker[38711]: mirage_block_open file:///Users/nawal/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/Docker.qcow2 buffered = true
15/05/2016 09:03:23.377 Docker[38710]: TCP/IP ready
15/05/2016 09:03:23.377 Docker[38711]: mirage_block_open returning 0
15/05/2016 09:03:23.378 Docker[38711]: mirage_block_stat
15/05/2016 09:03:23.378 Docker[38711]: vsock init 7:0 = /var/tmp/com.docker.vsock, guest_cid = 3
15/05/2016 09:03:25.556 Docker[38711]:
rdmsr to register 0x34 on vcpu 0
15/05/2016 09:03:25.659 Docker[38711]: Docker is not responding: waiting 0.5s
15/05/2016 09:03:26.164 Docker[38711]: Docker is not responding: waiting 0.5s
15/05/2016 09:03:26.667 Docker[38711]: Docker is not responding: waiting 0.5s
15/05/2016 09:03:27.169 Docker[38711]: Docker is not responding: waiting 0.5s
15/05/2016 09:03:27.674 Docker[38711]: Docker is not responding: waiting 0.5s
15/05/2016 09:03:28.176 Docker[38711]: Docker is not responding: waiting 0.5s
15/05/2016 09:03:28.681 Docker[38711]: Docker is not responding: waiting 0.5s
15/05/2016 09:03:29.080 Docker[38709]: transfused: mount
15/05/2016 09:03:29.080 Docker[38709]: transfused: /bin/fusermount
15/05/2016 09:03:29.081 Docker[38709]: transfused: -o
15/05/2016 09:03:29.081 Docker[38709]: transfused: allow_other,max_read=1048576,subtype=osxfs
15/05/2016 09:03:29.081 Docker[38709]: transfused: /Mac
15/05/2016 09:03:29.082 Docker[38709]: transfused:
15/05/2016 09:03:29.085 Docker[38709]: osxfs tracing: OFF
15/05/2016 09:03:29.107 Docker[38710]: Using protocol TwoThousand msize 8192
15/05/2016 09:03:30.999 Docker[38711]: Docker is responding
15/05/2016 09:03:31.019 Docker[30477]: VM has started at 2016-05-15 09:03:31 +0100 BST
15/05/2016 09:03:31.077 Docker[30458]: dockerState = running

Attachment for crash log.
com.docker.hyperkit_2016-05-15-090322_Nawals-MacBook-Air.crash.txt

@husnoo What version of OS X are you using?

ping @MagnusS @justincormack could you have a look?

@unclejack 10.10.5 (14F1713)

Hi, does this always happen? There are definitely more bugs in OSX 10.10 than 10.11 in this area, if you can upgrade it would be interesting to know if this solves the issue for you, but we are still working to improve these issues that some people see.

@justincormack It is quite consistent, I have not noticed it not happening so far. But then I could have missed it!
I might upgrade some time soon. Will keep you posted!

@justincormack, upgrading to El Capitain appears to have solved this as you suggested.

Mac OS X 10.10 won't be receiving any more updates and it's very likely 10.10 will still have these problems. I've also reproduced this issue on OS X 10.10.5.
I'll close this issue now since a solution has been found.
Please keep in mind that the Docker for Mac beta provides some means to submit feedback from the application and via email. There are forums for Docker for Mac where issues encountered with the beta can be discussed as well. Those three means of providing feedback and getting help are more adequate for Docker for Mac beta. Thank you for understanding.

I also experienced this issue, and the upgrade to 10.11.x solved it for me as well. Thanks!

I had this issue on 10.10 long time. I've just upgraded to 10.12 and issue is still present.
eugene-mac-lan:~ eugenework$ docker version
Client:
 Version:      1.12.3
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   6b644ec
 Built:        Thu Oct 27 00:09:21 2016
 OS/Arch:      darwin/amd64
 Experimental: true

Server:
 Version:      1.12.3
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   6b644ec
 Built:        Thu Oct 27 00:09:21 2016
 OS/Arch:      linux/amd64
 Experimental: true

eugene-mac-lan:~ eugenework$ docker info
Containers: 71
 Running: 0
 Paused: 0
 Stopped: 71
Images: 327
Server Version: 1.12.3
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 541
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge null host overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options: seccomp
Kernel Version: 4.4.30-moby
Operating System: Alpine Linux v3.4
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.951 GiB
Name: moby
ID: 6UPF:EGCF:DUVL:X5IA:YB2F:QWCM:KZL6:VEAQ:72CC:G35N:WFGB:5DOU
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: 15
 Goroutines: 27
 System Time: 2016-11-11T09:21:11.576874038Z
 EventsListeners: 1
No Proxy: *.local, 169.254/16
Registry: https://index.docker.io/v1/
Experimental: true
Insecure Registries:
 <IP_ADDRESS>/8

Please open an issue on https://github.com/docker/for-mac/issues with the
diagnostics id.
On 11 Nov 2016 10:25 a.m., "Eugene"<EMAIL_ADDRESS>wrote:

I had this issue on 10.10 long time. I've just upgraded to 10.12 and issue
is still present.
eugene-mac-lan:~ eugenework$ docker version
Client:
Version:      1.12.3
API version:  1.24
Go version:   go1.6.3
Git commit:   6b644ec
Built:        Thu Oct 27 00:09:21 2016
OS/Arch:      darwin/amd64
Experimental: true
Server:
Version:      1.12.3
API version:  1.24
Go version:   go1.6.3
Git commit:   6b644ec
Built:        Thu Oct 27 00:09:21 2016
OS/Arch:      linux/amd64
Experimental: true
eugene-mac-lan:~ eugenework$ docker info
Containers: 71
Running: 0
Paused: 0
Stopped: 71
Images: 327
Server Version: 1.12.3
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 541
Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge null host overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options: seccomp
Kernel Version: 4.4.30-moby
Operating System: Alpine Linux v3.4
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.951 GiB
Name: moby
ID: 6UPF:EGCF:DUVL:X5IA:YB2F:QWCM:KZL6:VEAQ:72CC:G35N:WFGB:5DOU
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
File Descriptors: 15
Goroutines: 27
System Time: 2016-11-11T09:21:11.576874038Z
EventsListeners: 1
No Proxy: *.local, 169.254/16
Registry: https://index.docker.io/v1/
Experimental: true
Insecure Registries:
<IP_ADDRESS>/8
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/docker/docker/issues/22745#issuecomment-259916424,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAdcPFay93Hlc6ZT4mDTkv2FyUZ338Rqks5q9DRvgaJpZM4IeyGQ
.


Enable CONFIG_CIFS_DFS_UPCALL in WSL kernel

Is your feature request related to a problem? Please describe.
Not having this enabled causes "Object is remote" errors under WSL when trying to access an SMB share via a mounted DFS share.
Describe the solution you'd like
With this option enabled, this does not occur.
Describe alternatives you've considered
I can resolve this by installing a custom kernel, but it's not a sufficiently outré request (DFS being fairly common on Windows-based networks, in my experience) that it should need a custom kernel, IMO.
Additional context
Reopening of #5534, as requested by bot; still relevant.

(Also relevant is the now bot-closed #9540.)

/feature

I asked for this here as well: https://github.com/microsoft/WSL/issues/9524


Service did not find device although Bluetti AC200max was found during scanning (valid MAC)

Using home assistant:
...
Add-on: Bluetti to MQTT
MQTT bridge between Bluetti and Home Assistant
Add-on version: 1.2.0
You are running the latest version of this add-on.
System: Home Assistant OS 9.5  (aarch64 / raspberrypi4-64)
Home Assistant Core: 2023.2.5
Home Assistant Supervisor: 2023.01.1
...
Service does not start, although MAC adressed scanned was configured. Default mosquitto intgration was used (all field were left empty). Any ideas to solve this issue?
...
'org.bluez.Device1': {'Address': 'xx:xx:xx:xx:xx:xx', 'AddressType': 'public', 'Name': 'AC200Mxxxxxxxxxxxxx', 'Alias': 'AC200M2236008116154', 'Paired': False, 'Trusted': False, 'Blocked': False, 'LegacyPairing': False, 'RSSI': -77, 'Connected': True,
...
2023-02-20 19:45:24 DEBUG    Found devices: []
2023-02-20 19:45:24 DEBUG    Shut down completed
Could not find the given devices to connect to
2023-02-20 19:45:24 ERROR    Crashing with uncaught exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/bluetti_mqtt/server_cli.py", line 87, in start
loop.run_forever()
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 600, in run_forever
self._run_once()
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1896, in _run_once
handle._run()
File "/usr/local/lib/python3.10/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.10/site-packages/bluetti_mqtt/server_cli.py", line 100, in run
sys.exit('Could not find the given devices to connect to')
SystemExit: Could not find the given devices to connect to
2023-02-20 19:45:24 ERROR    Unhandled error in exception handler
context: {'message': 'Task exception was never retrieved', 'exception': SystemExit('Could not find the given devices to connect to'), 'future': <Task finished name='Task-1' coro=<CommandLineHandler.run() done, defined at /usr/local/lib/python3.10/site-packages/bluetti_mqtt/server_cli.py:92> exception=SystemExit('Could not find the given devices to connect to')>}
Traceback (most recent call last):
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1781, in call_exception_handler
self._exception_handler(self, context)
File "/usr/local/lib/python3.10/site-packages/bluetti_mqtt/server_cli.py", line 136, in handle_global_exception
asyncio.create_task(shutdown(loop))
File "/usr/local/lib/python3.10/asyncio/tasks.py", line 336, in create_task
loop = events.get_running_loop()
RuntimeError: no running event loop
...
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped

I checked it again and it works now. Don't know why. So you can reject this issue.
Thx.
....
[08:20:44] INFO: Reading configuration settings...
[08:20:46] INFO: Starting bluetti-mqtt...
2023-02-21 08:20:53 INFO     Connecting to MQTT broker...
2023-02-21 08:20:53 INFO     Starting to poll clients...
2023-02-21 08:20:53 INFO     Connecting to clients: ['xx:xx:xx:xx:xx:xx']
2023-02-21 08:20:53 WARNING  Could not determine BlueZ version, bluetoothctl not available, assuming 5.51+
2023-02-21 08:20:53 INFO     Connected to MQTT broker
2023-02-21 08:20:53 INFO     Sent discovery message of AC200M-xxxxxxxx to Home Assistant
2023-02-21 08:20:53 WARNING  filtered_messages() is deprecated and will be removed in a future version. Use messages() together with Topic.matches() instead.

Closed it.


Enforce functional order of APIs in Swagger

Enforce the order

Standardize
Containerize
Clustering
Healthcheck

not easily achievable with flask_restplus


Press wheel adjustments

i fixed the gaps between tongues and center cylinder on bottom disc

added some tuning tools like cross section views of the chars positive and negative

I fixed the gap between tonguetip and chars as well, preserving the embosHght
As a new feature I added a label to the top Disc

Real nice @Knochi. Thank you!


allow dependabot to update the dependencies in all github actions

@devanubis what do you think? Should we allow dependabot to automatically update all actions dependencies without approval?

Yes I see no reason for dependabot to not update actions.
Technically they won't have an impact until we update the tags anyway... we could even do that automatically for dependabot changes but it risks breaking CI, maybe its something we should manually periodically check (although we could forget?)

Breaking CI is annoying, but doesnt break production, while having to remember to check periodically is probably harder.


Meta tags displaying like variable in page view source

Hi, Any one know why angular site meta tags and meta informations displaying the variable in page view source.
In my page view source
Default title

I guess that's the correct behavior, you must see the correct title only when using inspect element.

As mentioned, view source shows the source received from the server - as this is angular1, it will show all of you script code as is


IPT fail to publish resource after metadata upload

From @sformel-usgs
Resource https://ipt-obis.gbif.us/manage/resource?r=drytortugasreefvisualcensus2014
Here's what I did:

Resource was working fine.
I uploaded the EML file
double checked that the metadata looked as expected (i.e. in the IPT: metadata > edit)
Returned to main editing screen and clicked publish
It allowed me to enter a comment, as expected.  However, after approving the comment, it returned to the resource screen instead of the publishing log screen.
After this, the landing page says 'resource does not exist.' However, you can still find the resource in the IPT, and still manage it as an editor.

I reverted the resource back to the 1.8. The issue is with the EML, missing <citation> in the gbif section (additionalMetadata -> metadata -> gbif -> citation). If you add it should be working fine.
This is a bug, I'll fix it for the next version.

Thanks for taking the time to figure this out, it's very appreciated.


DNS Proxying with address auto allocation not working in IPv6 cluster

Bug description
The DNS proxying and address auto allocation feature does not work in IPv6 environments
Basic KIND IPv6 cluster (https://kind.sigs.k8s.io/docs/user/configuration/#ip-family):
$ kubectl exec sleep-79cbd6fdbb-wlsp5 --container sleep -- curl --silent --verbose --max-time 5 http://nginx.example.com/
* Resolving timed out after 5513 milliseconds
* stopped the pause stream!
* Closing connection 0
command terminated with exit code 28

Another IPv6 cluster (not KIND):
$ kubectl exec sleep-6bfbbcf6ff-479x5 --container sleep -- curl --silent --verbose --max-time 5 http://nginx.example.com/
* Could not resolve host: nginx.example.com
* Closing connection 0
command terminated with exit code 6

[ ] Docs
[ ] Installation
[X] Networking
[ ] Performance and Scalability
[ ] Extensions and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
[ ] Upgrade
Expected behavior
Same behavior as in IPv4 clusters (status 200)
Steps to reproduce the bug

Deploy sleep pod with DNS capture and DNS auto-allocate enabled:

apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: sleep
  name: sleep
spec:
  selector:
    matchLabels:
      app: sleep
  template:
    metadata:
      annotations:
        proxy.istio.io/config: |
          proxyMetadata:
            ISTIO_META_DNS_CAPTURE: "true"
            ISTIO_META_DNS_AUTO_ALLOCATE: "true"
        sidecar.istio.io/inject: "true"
      labels:
        app: sleep
        sidecar.istio.io/inject: "true"
    spec:
      containers:
      - command:
        - /bin/sleep
        - 3650d
        image: pstauffer/curl
        name: sleep

Deploy nginx in the same namespace but w/o sidecar:

kubectl create deployment nginx --image=nginx
kubectl expose deployment nginx --port=80

Create SE to resolve nginx.example.com to local nginx service:

apiVersion: networking.istio.io/v1beta1
kind: ServiceEntry
metadata:
  name: nginx
spec:
  hosts:
  - nginx.example.com
  ports:
  - name: http
    number: 80
    protocol: HTTP
  resolution: DNS
  endpoints:
  - address: nginx

Curl nginx.example.com from sleep container:

kubectl exec sleep-55f56c69b9-drstk --container sleep -- curl --silent --verbose --max-time 5 http://nginx.example.com/

Version (include the output of istioctl version --remote and kubectl version --short and helm version --short if you used Helm)
Istio 1.10.2
Kubernetes 1.21.2 and 1.20.4
How was Istio installed?
helm install --namespace istio-system --create-namespace istio-base manifests/charts/base
helm install --namespace istio-system istiod manifests/charts/istio-control/istio-discovery
Environment where the bug was observed (cloud vendor, OS, etc)
KIND and local KaaS cluster

@hzxuzhonghu @howardjohn I found your names previously working on DNS proxy or related issues. Could either of you take a look or include someone who might be familiar with the feature? Thanks!

Istio does not support ipv6 auto allocate now.

Oh, that is unfortunate! Are there any plans to extend support for IPv6?
I think it would be good to document this fact somewhere. I certainly did not see mention of it at DNS Proxying...

No plan now, but we accept patches for supportting ipv6

Unfortunately company policy prohibits me from submitting anything. So if it is not currently in scope, could you see if the documentation can be updated with a corresponding comment?
And can you maybe convert this issue into a feature request?

Sorry off-topic and not directed at you @emike922 as unfortunately you can't do anything but what kind of company makes use of OSS and forbids to contribute back? IMO, there should be a clause in OSS licenses preventing these kind of companies using said OSS 🤮

OT: @politician I am afraid I do not entirely agree.
Companies have to protect themselves against restrictive licenses, so as not to end up having to OSS their IP/proprietary solutions. This may not currently be the case here, but for many companies it is just easier to issue a blanket statement regarding OSS contributions than having each potential project assessed by legal experts before the fact.
Besides, who says that contributing code is necessarily more valuable than reporting and discussing issues or making proposals (aka feature requests)? Also, not every corporate "user" of OSS may be a software company and/or have the necessary expertise to contribute.
Lastly, just because I personally cannot contribute code, does not mean that nobody here can and does. We have legal constructs in place for a select group of individuals that are contributing. But we have to pick our battles carefully because they tend to be rather backed up...
Back on topic: Can anyone update the documentation to reflect the lack of IPv6 support with this feature?

As a matter of interest, who is your employer?

It looks like this issue still exists in v1.12.1. However, I get the following error:
*   Trying <IP_ADDRESS>...
* TCP_NODELAY set
* Immediate connect fail for <IP_ADDRESS>: Network unreachable
* Closing connection 0

Reopen the issue to keep track of this?

Hi @emike922 ,  I'm focusing on this issue, and I also post a PR here, you can have a try on it.  BTW,  @hzxuzhonghu, @howardjohn or @istio/wg-networking-maintainers-pilot could you please help to check it when available? Thanks in advance! ^_^


[Problem]: Calling stored procedure results to error in VSCode

Problem
When executing a query to call a stored procedure, I receive an error indicating that the procedure either doesn't exist or access is denied.
What I try:
I ran the same query with identical parameters and connection settings in DBeaver, and it executed successfully, returning the correct results without any errors.
System I use:

Windows 10 Pro 22H2 - x64bit
VSCode 1.94.2
Vertica driver extension
SQL Tools extension latest version

Another context:

Screenshot

Anything but calling the SP works just fine. I don't know what is causing the issue, and now I'm using Data Grip as my editor.


updated readme for express support

Coverage remained the same at 92.692% when pulling ce93c2608372582c18d56180dd709ff7d899d78d on prasunsultania:master into eb658b2b627ccac6647261dd8d88eb3a4d694fad on vpulim:master.

Thanks a lot! :smiley_cat: :+1:

@herom when would be the next release?


GettingStarted instructions does not work off-the-shelf (OSVR for Unity Developers)

The instructions (https://github.com/OSVR/OSVR-Unity/blob/master/GettingStarted.md) does not work "off-the-shelf" when a user tries to follow it lineary.
The reason being that the default osvr_server_config.json uses direct mode but the unity package does not include the four files (glew32.dll, osvrRenderManager.dll, osvrUnityRenderingPlugin.dll, SDL2.dll). These have to be copied into the x86_64 plugin folder to make the instruction work.
I guess the simplest solution would be to change the osvr_server_config.json to not include rendermanager at first. Then further down in the documentation we should mention that the user has to copy the four dll's and to choose another osvr_server_config.json file.
Another solution would be to include the four dll's in the unitypackage?

Recently changing the default osvr_server_config is what caused this issue. The rationale was that RenderManager and positional tracking should be supported by default, rather than neither of those. Ideally, all of those DLLs should be included in the unitypackage. I think the holdup now is adding OSVR-Unity-Rendering plugin to our CI. See https://github.com/OSVR/OSVR-Unity/issues/88

Fixed by CI changes following https://github.com/OSVR/OSVR-Unity/pull/130


Upgrade to 0.13 using web sys

Upgrade yew-wasm-pack-template to make use of yew 0.13 as well as the new web_sys functionality.
yarn run build builds successfully
Running with yarn run start:dev, runs as expected

Feel free to ignore Travis failures on this PR, not related to these changes.


Add Laravel x PHP matrix to Github Action

Hello,
this pull request introduces multiple jobs with a matrix of Laravel x PHP versions to the current Github Action. The testing process will be streamlined, providing better coverage across different PHP versions. Additionally, this enhancement will ensure a smoother transition to Laravel 10 in the future and in general making the package more future-proof.
It provides only PHP versions that are compatible with the given Laravel version and its dependencies.

I really like this. Thanks @besanek !


Fix: exclude multi

Codecov Report
Attention: Patch coverage is 31.57895% with 26 lines in your changes are missing coverage. Please review.

Project coverage is 47.17%. Comparing base (4a79f02) to head (7c0ab6d).
Report is 1 commits behind head on main.

Files
Patch %
Lines

pkg/filters/options.go
0.00%
22 Missing :warning:

pkg/filters/filters.go
73.33%
2 Missing and 2 partials :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #228      +/-   ##
==========================================
- Coverage   47.58%   47.17%   -0.41%
==========================================
  Files          32       32
  Lines        2915     2957      +42
==========================================
+ Hits         1387     1395       +8
- Misses       1354     1388      +34
  Partials      174      174

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Should fetch error out when jar is missing?

Normal resolve with junit
$  ./run fetch -t junit:junit:4.12 --no-default -r file:///Users/me/.m2/repository/
  Result:
└─ junit:junit:4.12
   └─ org.hamcrest:hamcrest-core:1.3
/Users/me/.m2/repository/junit/junit/4.12/junit-4.12.jar
/Users/me/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar

Remove junit then resolve, still succeeds without fetching junit-4.12.jar
$ mv /Users/me/.m2/repository/junit/junit/4.12/junit-4.12.jar ~/Desktop/
$  ./run fetch -t junit:junit:4.12 --no-default -r file:///Users/me/.m2/repository/
  Result:
└─ junit:junit:4.12
   └─ org.hamcrest:hamcrest-core:1.3
/Users/me/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar

The behavior is the same for remote repo as well.
@baroquebobcat and I have been discussing whether coursier should fail in this case. It is known in some cases only the pom file exists for an artifact, e.g. https://search.maven.org/#search|gav|1|g%3A"org.jgrapht" AND a%3A"jgrapht", but it's unclear if there is a way to tell we should expect a jar then fail when the jar is not there.
@alexarchambault wonder if you have more insights on this.

@wisechengyi I'd discourage using ~/.m2/repository as a repository for coursier… It sometimes lacks the JARs of some dependencies, and that case (POM with no JAR) isn't handled well by coursier. coursier assumes the jar to be in the same repo as the POM.

@alexarchambault Thanks. I agree that using ~/.m2 should be discouraged.

that case (POM with no JAR) isn't handled well by coursier.

In theory, should coursier throw an error? If so, do you know if there is a mechanism to check so, i.e. anything in the pom/maven standard that could hint that a valid jar should exist?

coursier assumes the jar to be in the same repo as the POM.

That's a fair assumption. If the answer is no for the previous question, then documentation should highlight so.

In theory, should coursier throw an error? If so, do you know if there is a mechanism to check so, i.e. anything in the pom/maven standard that could hint that a valid jar should exist?

Maybe the JAR can be made mandatory is the packaging tag in the POM is jar (or bundle). If all the tests of coursier pass when changing just that, it should be ok.
I tended not to rely on the packaging tag because of wrongful values in it (like org.apache.zookeeper:zookeeper:3.4.5 having packaging pom, but having a jar nonetheless).
The current behaviour should be made a bit more explicit in the doc, yes.


TestNG 7.0.0 not working Asserts, Tags annotations, listeners

TestNG Version
7.0.0
Expected behavior
previous versions were working normally
Actual behavior
Not working
Is the issue reproductible on runner?

[ ] Shell
[x] Maven
[ ] Gradle
[ ] Ant
[x] Eclipse
[ ] IntelliJ
[ ] NetBeans

Test case sample

The latest released version of TestNG is 7.1.0 Please try again using that. From the screenshot it looks like you have a messed up CLASSPATH
If you are still experiencing the same issue using 7.1.0 Please create a sample that can be used to demonstrate the problem and comment back.
If you are experiencing this problem only when you import the project within eclipse (but the same works fine when you run from Maven command line), please create an issue in https://github.com/cbeust/testng-eclipse/issues.

Fixed. I've changed to Eclipse 2018-09 (4.9) and it's working.


bump stim dependency

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (e528e3a) 100.00% compared to head (63ce58a) 100.00%.
Report is 2 commits behind head on master.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff            @@
##            master       #82   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            3         3
  Lines          331       331
=========================================
  Hits           331       331

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


fix: Fixing workflow

:tada: This PR is included in version 1.3.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


bugged achievements

autoinject ends up with the achievements menu having no items, for some odd reason

hacky fix in today's commit, although i should work on a better solution. won't close this bug for now.

hacky fix in today's commit, although i should work on a better solution. won't close this bug for now.


Add security txt to the system

Implement security.txt in d-voting.
“When security risks in web services are discovered by independent security researchers who understand the severity of the risk, they often lack the channels to disclose them properly. As a result, security issues may be left unreported. security.txt defines a standard to help organizations define the process for security researchers to disclose security vulnerabilities securely.”
security txt website: https://securitytxt.org/
security txt github: https://github.com/securitytxt/security-txt

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

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 64.021%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
3194

Relevant Lines:
4989

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Warning: This coverage report may be inaccurate.
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

For more information on this, see Tracking coverage changes with pull request builds.
To avoid this issue with future PRs, see these Recommended CI Configurations.
For a quick fix, rebase this PR at GitHub. Your next report should be accurate.

Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 64.021%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
3194

Relevant Lines:
4989

💛  - Coveralls


Documentation for v1.11.1

Where is the documentation for v1.11.1 ?
I have been forced to work on a project someone else started that has this library installed.

the offical docs are at https://jqueryvalidation.org/ and we dont version the docs itself (except mentioning on a per method/feature basis when it was added)

Wow. All due respect, but that's a horrible experience for developers.
Highly suggest you start using documentation.js to publish the docs as part
of the readme here in github.
Bonus: you get rid of your hosting costs with that WordPress site.
On Tue., 8 Nov. 2016, 01:54 Markus Staab<EMAIL_ADDRESS>wrote:

Closed #1883 https://github.com/jzaefferer/jquery-validation/issues/1883
.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jzaefferer/jquery-validation/issues/1883#event-850033844,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AADvKZ1HEgB-zxh-DNPefjYCQBsn7WFmks5q70HRgaJpZM4KoDkM
.

@airtonix feel free to provide your freetime (like we do) to progress the project further into a better future ;-)


csplit doesn't support precision

With ours:
$ echo > in
$ csplit -b '%0#6.3x' in 1
csplit: incorrect conversion specification in suffix

With GNU:
$ echo > in
$ /usr/bin/csplit -b '%0#6.3x' in 1
0
1

The regexp here:
https://github.com/uutils/coreutils/blob/main/src/uu/csplit/src/split_name.rs#L52
and the following code needs to be updated
Tested in GNU with tests/csplit/csplit.sh

The issue seems to be related to the format string specification you're using with the -b option in the csplit command. The format string %0#6.3x you're using may be causing the error due to an incorrect conversion specification in the suffix.
The format string %0#6.3x seems to be attempting to specify a hexadecimal format with a certain precision, but it appears that the current implementation of csplit is not compatible with this exact specification.
To resolve the issue, you could try simplifying the format string to something more basic and compatible, such as %04d, which specifies a 4-digit number with zero padding on the left. This might avoid the error you're experiencing.
If after simplifying the format string the problem persists, you could try looking into the csplit documentation or community forums for further information on the tool's limitations and possible alternative solutions.
I hope this information helps you identify and resolve the issue. If you need further assistance, feel free to ask.

@marc-delgado-ferreres Glad you asked ChatGPT for us! Really helpful! Now please don't do that again.
Anyway, I think I just fixed the issue across these two PRs:

https://github.com/uutils/coreutils/pull/5958
https://github.com/uutils/coreutils/pull/5955


Feature Request: Visual Mode

Feature Requested
Thanks for this awesome vim mode! I'm getting used to hjkl and love it, but I keep wanting to select 3-4 files within a folder to cut/copy/paste/open them together. I used v for this at first but realized that instead shows preview information for the current file. Is there already a way to select a subset of the files after navigating to some with e.g. jk?
Relevant Screenshot
No response
Checklist

[X] The feature would be useful to more users than just me.
[X] I have read about the limitations of Karabiner plugins in the Caveats section of the README.

You can use shift+space to add down to the selection, which is the closest thing you can get in Finder. Proper Multi-select or visual mode is unfortunately not possible, since Finder does not distinguish properly between cursor and selection, like more advanced file managers do :/

Thanks, good to know! That will still be useful.


Git server

Lots of useful commands here and it also has a tui
https://github.com/charmbracelet/soft-serve
can also Test against this server :)

Wonderful idea :+1: , pretty sure we will look into it for testing. Currently we trying to simulate clones only from the filesystem system.

 Still depending on "go-git" for some stuff.


Unsupported paramters for (homebrew) module

FAILED! => {"changed": false, "msg": "Unsupported parameters for (homebrew) module: update_cache Supported parameters include: install_options, name, path, state, update_homebrew, upgrade_all"}
Removing this option from the package module in install.yml fixes the issue:
update_cache: yes
OSX Catalina, Homebrew 2.4.1, Ansible 2.9.10
I would be happy to submit a PR but I am fairly new to Ansible. Would the best approach be adding a brew package module call  when os == Darwin, and using the existing package module when os != Darwin?

You are right, I added update_cache: yes about a month ago and forget about MacOS.
I think that should be a separated task for update cache. Something like this:
- name: Update package cache
  package:
    update_cache: yes
  when: ansible_os_family != 'Darwin'

- name: Install zsh, git, wget
  package:
    name:
      - zsh
      - git
      - wget
    state: present
  # brew don't work from root user on macOS
  when: not (zsh_user == 'root' and ansible_os_family == 'Darwin')

Please try it on MacOS, you can send PR, or I will make commit in next week.

Thanks, I finally had time to test this. I submitted PR #48 for this issue.


cannot unmarshal bool into Go value of type string

I hate to be this person, but I found another bug.
thomas@workstation:jspm-npm$ weather -l "Manhattan Beach, CA"
Decoding the response from https://geocode.jessfraz.com/forecast failed: json: cannot unmarshal bool into Go value of type string

I might have hit a rate limit I didn't really publicize this project
because of that in first place :P but if that's not the problem pull
requests welcome!
On Thursday, January 8, 2015, Thomas Reggi<EMAIL_ADDRESS>wrote:

I hate to be this person, but I found another bug.
thomas@workstation:jspm-npm$ weather -l "Manhattan Beach, CA"
Decoding the response from https://geocode.jessfraz.com/forecast failed: json: cannot unmarshal bool into Go value of type string
—
Reply to this email directly or view it on GitHub
https://github.com/jfrazelle/weather/issues/3.

--
Jessie Frazelle
4096R / D4C4 DD60 0D66 F65A 8EFC  511E 18F3 685C 0022 BFF3
pgp.mit.edu http://pgp.mit.edu/pks/lookup?op=get&search=0x18F3685C0022BFF3

Makes sense! An option to add your own forecast keys would work. Fee free to close.

fixed


HNSWDocumentIndex not usable with Tensor without shape

When indexing and querying with NdArray without predefined shape, it fails

This is explained in Documentation


Update API call for Login

@hug33k : We will wait until the API is fully dockerised with an automated build.
It makes no sense for now to merge that since it will be quite useless and it will make starting the project locally more complicated.
Keeping that here for now.


Is anyone else can offer the precise intrinsic and extrinsic parameter  of T265?

Hi @zhuoyueljl, T265 intrinsics and extrinsics will be exposed soon in a future librealsense release. You can follow the progress on #3563 and #3541

Please try with 2.20
(you can either run rs-enumerate-devices -c for raw data or rs-ar-basic for a demo)

Hi @dorodnic  I have tried with 2.20 and run  rs-enumerate-devices -c  , but it return: Command DEV_GET_CAMERA_INTRINSICS is not supported by FW

Stream Profiles supported by Tracking Module
Supported modes:
stream       resolution      fps       format
Fisheye 1	  848x800	@ 30Hz	   Y8
Fisheye 2	  848x800	@ 30Hz	   Y8
Gyro	 N/A		@ 200Hz	   MOTION_XYZ32F
Accel	 N/A		@ 62Hz	   MOTION_XYZ32F
Pose	 N/A		@ 200Hz	   6DOF
Provided Intrinsic:
Intrinsic of "Fisheye 1" / 848x800 / {Y8}
Width:      	848
Height:     	800
PPX:<PHONE_NUMBER>98047
PPY:<PHONE_NUMBER>5625
Fx:<PHONE_NUMBER>34766
Fy:<PHONE_NUMBER>39062
Distortion: 	Kannala Brandt4
Coeffs:     	-0.0043481751345098  	0.037125650793314  	-0.0355393998324871  	0.00577297387644649  	0
Intrinsic of "Fisheye 2" / 848x800 / {Y8}
Width:      	848
Height:     	800
PPX:<PHONE_NUMBER>64844
PPY:<PHONE_NUMBER>10938
Fx:<PHONE_NUMBER>11719
Fy:<PHONE_NUMBER>16797
Distortion: 	Kannala Brandt4
Coeffs:     	-0.00527892587706447  	0.0386337004601955  	-0.0366357117891312  	0.00610797293484211  	0
Provided Motion Intrinsic:
Motion Intrinsic of "Gyro"	  MOTION_XYZ32F
Bias Variances: 4.99999998737621e-07  4.99999998737621e-07  4.99999998737621e-07
Noise Variances: 5.14803014084464e-06  5.14803014084464e-06  5.14803014084464e-06
Sensitivity :
0.996874              0              0     0.00085474
0        1.00038              0    -0.00158726
0              0       0.992169     0.00233547
Motion Intrinsic of "Accel"	  MOTION_XYZ32F
Bias Variances: 9.99999974737875e-05  9.99999974737875e-05  9.99999974737875e-05
Noise Variances: 6.69524524710141e-05  6.69524524710141e-05  6.69524524710141e-05
Sensitivity :
1.01468              0              0      -0.162711
0        1.02097              0       0.250464
0              0        1.01948       0.114724
Provided Extrinsic:
Extrinsic from "Fisheye 1"	  To	  "Fisheye 1" :
Rotation Matrix:
1   0   0
0   1   0
0   0   1
Translation Vector: 0  0  0
Extrinsic from "Fisheye 1"	  To	  "Fisheye 2" :
Rotation Matrix:
0.999972        -0.00403926       0.00633063
0.00400718       0.999979         0.00507102
-0.00635099      -0.00504551       0.999967
Translation Vector: -0.0643017739057541  -0.00040316634112969  0.00050472462316975
Extrinsic from "Fisheye 1"	  To	  "Gyro" :
Rotation Matrix:
-0.999935         0.00326365       0.0109447
-0.0032628       -0.999995         9.63121e-05
0.010945         6.05954e-05      0.99994
Translation Vector: -0.0536035150289536  -0.000310176896164194  0.000351920520188287
Extrinsic from "Fisheye 1"	  To	  "Accel" :
Rotation Matrix:
-0.999935         0.00326365       0.0109447
-0.0032628       -0.999995         9.63121e-05
0.010945         6.05954e-05      0.99994
Translation Vector: -0.0536035150289536  -0.000310176896164194  0.000351920520188287
Extrinsic from "Fisheye 2"	  To	  "Fisheye 1" :
Rotation Matrix:
0.999972         0.00400718      -0.00635099
-0.00403926       0.999979        -0.00504551
0.00633063       0.00507102       0.999967
Translation Vector: 0.0643047839403152  0.000145973026519641  -9.55924042500556e-05
Extrinsic from "Fisheye 2"	  To	  "Fisheye 2" :
Rotation Matrix:
1   0   0
0   1   0
0   0   1
Translation Vector: 0  0  0
Extrinsic from "Fisheye 2"	  To	  "Gyro" :
Rotation Matrix:
-0.999989        -0.000743985      0.00459421
0.000721044     -0.999987        -0.0049931
0.00459787      -0.00498973       0.999977
Translation Vector: 0.0106993019580841  5.05454445374198e-05  -8.46007169457152e-05
Extrinsic from "Fisheye 2"	  To	  "Accel" :
Rotation Matrix:
-0.999989        -0.000743985      0.00459421
0.000721044     -0.999987        -0.0049931
0.00459787      -0.00498973       0.999977
Translation Vector: 0.0106993019580841  5.05454445374198e-05  -8.46007169457152e-05
Extrinsic from "Gyro"	  To	  "Fisheye 1" :
Rotation Matrix:
-0.999935        -0.0032628        0.010945
0.00326365      -0.999995         6.05954e-05
0.0109447        9.63121e-05      0.99994
Translation Vector: -0.0536048784852028  -0.000135253212647513  0.000234807026572526
Extrinsic from "Gyro"	  To	  "Fisheye 2" :
Rotation Matrix:
-0.999989         0.000721044      0.00459787
-0.000743985     -0.999987        -0.00498973
0.00459421      -0.0049931        0.999977
Translation Vector: 0.0106995403766632  5.80827982048504e-05  3.56962555088103e-05
Extrinsic from "Gyro"	  To	  "Gyro" :
Rotation Matrix:
1   0   0
0   1   0
0   0   1
Translation Vector: 0  0  0
Extrinsic from "Gyro"	  To	  "Accel" :
Rotation Matrix:
1  -0   0
-0   1  -0
0  -0   1
Translation Vector: 0  0  0
Extrinsic from "Accel"	  To	  "Fisheye 1" :
Rotation Matrix:
-0.999935        -0.0032628        0.010945
0.00326365      -0.999995         6.05954e-05
0.0109447        9.63121e-05      0.99994
Translation Vector: -0.0536048784852028  -0.000135253212647513  0.000234807026572526
Extrinsic from "Accel"	  To	  "Fisheye 2" :
Rotation Matrix:
-0.999989         0.000721044      0.00459787
-0.000743985     -0.999987        -0.00498973
0.00459421      -0.0049931        0.999977
Translation Vector: 0.0106995403766632  5.80827982048504e-05  3.56962555088103e-05
Extrinsic from "Accel"	  To	  "Gyro" :
Rotation Matrix:
1  -0   0
-0   1  -0
0  -0   1
Translation Vector: 0  0  0
Extrinsic from "Accel"	  To	  "Accel" :
Rotation Matrix:
1   0   0
0   1   0
0   0   1
Translation Vector: 0  0  0

`Stream Profiles supported by Tracking Module
Supported modes:
stream       resolution      fps       format
Fisheye 1	  848x800	@ 30Hz	   Y8
Fisheye 2	  848x800	@ 30Hz	   Y8
Gyro	 N/A		@ 200Hz	   MOTION_XYZ32F
Accel	 N/A		@ 62Hz	   MOTION_XYZ32F
Pose	 N/A		@ 200Hz	   6DOF
Provided Intrinsic:
Intrinsic of "Fisheye 1" / 848x800 / {Y8}
Width:      	848
Height:     	800
PPX:<PHONE_NUMBER>98047
PPY:<PHONE_NUMBER>5625
Fx:<PHONE_NUMBER>34766
Fy:<PHONE_NUMBER>39062
Distortion: 	Kannala Brandt4
Coeffs:     	-0.0043481751345098  	0.037125650793314  	-0.0355393998324871  	0.00577297387644649  	0
Intrinsic of "Fisheye 2" / 848x800 / {Y8}
Width:      	848
Height:     	800
PPX:<PHONE_NUMBER>64844
PPY:<PHONE_NUMBER>10938
Fx:<PHONE_NUMBER>11719
Fy:<PHONE_NUMBER>16797
Distortion: 	Kannala Brandt4
Coeffs:     	-0.00527892587706447  	0.0386337004601955  	-0.0366357117891312  	0.00610797293484211  	0
Provided Motion Intrinsic:
Motion Intrinsic of "Gyro"	  MOTION_XYZ32F
Bias Variances: 4.99999998737621e-07  4.99999998737621e-07  4.99999998737621e-07
Noise Variances: 5.14803014084464e-06  5.14803014084464e-06  5.14803014084464e-06
Sensitivity :
0.996874              0              0     0.00085474
0        1.00038              0    -0.00158726
0              0       0.992169     0.00233547
Motion Intrinsic of "Accel"	  MOTION_XYZ32F
Bias Variances: 9.99999974737875e-05  9.99999974737875e-05  9.99999974737875e-05
Noise Variances: 6.69524524710141e-05  6.69524524710141e-05  6.69524524710141e-05
Sensitivity :
1.01468              0              0      -0.162711
0        1.02097              0       0.250464
0              0        1.01948       0.114724
Provided Extrinsic:
Extrinsic from "Fisheye 1"	  To	  "Fisheye 1" :
Rotation Matrix:
1   0   0
0   1   0
0   0   1
Translation Vector: 0  0  0
Extrinsic from "Fisheye 1"	  To	  "Fisheye 2" :
Rotation Matrix:
0.999972        -0.00403926       0.00633063
0.00400718       0.999979         0.00507102
-0.00635099      -0.00504551       0.999967
Translation Vector: -0.0643017739057541  -0.00040316634112969  0.00050472462316975
Extrinsic from "Fisheye 1"	  To	  "Gyro" :
Rotation Matrix:
-0.999935         0.00326365       0.0109447
-0.0032628       -0.999995         9.63121e-05
0.010945         6.05954e-05      0.99994
Translation Vector: -0.0536035150289536  -0.000310176896164194  0.000351920520188287
Extrinsic from "Fisheye 1"	  To	  "Accel" :
Rotation Matrix:
-0.999935         0.00326365       0.0109447
-0.0032628       -0.999995         9.63121e-05
0.010945         6.05954e-05      0.99994
Translation Vector: -0.0536035150289536  -0.000310176896164194  0.000351920520188287
Extrinsic from "Fisheye 2"	  To	  "Fisheye 1" :
Rotation Matrix:
0.999972         0.00400718      -0.00635099
-0.00403926       0.999979        -0.00504551
0.00633063       0.00507102       0.999967
Translation Vector: 0.0643047839403152  0.000145973026519641  -9.55924042500556e-05
Extrinsic from "Fisheye 2"	  To	  "Fisheye 2" :
Rotation Matrix:
1   0   0
0   1   0
0   0   1
Translation Vector: 0  0  0
Extrinsic from "Fisheye 2"	  To	  "Gyro" :
Rotation Matrix:
-0.999989        -0.000743985      0.00459421
0.000721044     -0.999987        -0.0049931
0.00459787      -0.00498973       0.999977
Translation Vector: 0.0106993019580841  5.05454445374198e-05  -8.46007169457152e-05
Extrinsic from "Fisheye 2"	  To	  "Accel" :
Rotation Matrix:
-0.999989        -0.000743985      0.00459421
0.000721044     -0.999987        -0.0049931
0.00459787      -0.00498973       0.999977
Translation Vector: 0.0106993019580841  5.05454445374198e-05  -8.46007169457152e-05
Extrinsic from "Gyro"	  To	  "Fisheye 1" :
Rotation Matrix:
-0.999935        -0.0032628        0.010945
0.00326365      -0.999995         6.05954e-05
0.0109447        9.63121e-05      0.99994
Translation Vector: -0.0536048784852028  -0.000135253212647513  0.000234807026572526
Extrinsic from "Gyro"	  To	  "Fisheye 2" :
Rotation Matrix:
-0.999989         0.000721044      0.00459787
-0.000743985     -0.999987        -0.00498973
0.00459421      -0.0049931        0.999977
Translation Vector: 0.0106995403766632  5.80827982048504e-05  3.56962555088103e-05
Extrinsic from "Gyro"	  To	  "Gyro" :
Rotation Matrix:
1   0   0
0   1   0
0   0   1
Translation Vector: 0  0  0
Extrinsic from "Gyro"	  To	  "Accel" :
Rotation Matrix:
1  -0   0
-0   1  -0
0  -0   1
Translation Vector: 0  0  0
Extrinsic from "Accel"	  To	  "Fisheye 1" :
Rotation Matrix:
-0.999935        -0.0032628        0.010945
0.00326365      -0.999995         6.05954e-05
0.0109447        9.63121e-05      0.99994
Translation Vector: -0.0536048784852028  -0.000135253212647513  0.000234807026572526
Extrinsic from "Accel"	  To	  "Fisheye 2" :
Rotation Matrix:
-0.999989         0.000721044      0.00459787
-0.000743985     -0.999987        -0.00498973
0.00459421      -0.0049931        0.999977
Translation Vector: 0.0106995403766632  5.80827982048504e-05  3.56962555088103e-05
Extrinsic from "Accel"	  To	  "Gyro" :
Rotation Matrix:
1  -0   0
-0   1  -0
0  -0   1
Translation Vector: 0  0  0
Extrinsic from "Accel"	  To	  "Accel" :
Rotation Matrix:
1   0   0
0   1   0
0   0   1
Translation Vector: 0  0  0 `

Hi @zhuoyueljl it looks like you were able to use librealsense 2.20.0 to retrieve the intrinsics and extrinsics, can I close this issue?


Get 404 when use function getMediasByTag

InstagramScraper\Exception\InstagramException Object ( [message:protected] => Response code is 404. Body:

Unbelievable, but the problem is solved if you install cookies (I loaded https://www.instagram.com/explore/tags/video/?__a=1&max_id=1 and copied them from the query, then inserted in /Unirest/Request.php on line 236)
$headers = [ 			'cookie' => 'simple cookies' 		];

It's work, Thank you @maxmaxme


Sync eng/common directory with azure-sdk-tools for PR 1425

Sync eng/common directory with azure-sdk-tools for PR https://github.com/Azure/azure-sdk-tools/pull/1425  See eng/common workflow

/check-enforcer override


Parentheses causes TS Playground to crash

TypeScript Version:  3.5.1

Search Terms:
parentheses, max call stack size
Code
const x = (/*snip some parentheses*/(42)/*snip some parentheses*/);
const y : 41 = x;

I was curious if TS would optimize away extra parentheses when parsing and constructing its AST and whatnot.
Is this why @keithlayne hates unnecessary parentheses?
Expected behavior:
42 should not be assignable to 41
Actual behavior:

Playground Link: Playground
Related Issues:

Interestingly this doesn't crash in the v3 playground: http://www.typescriptlang.org/v2/en/play?#code/CYUwxgNghgTiAEYD2A7AzgF3gD3gLngApiTSzyLKrqba76HGnmXW32POvufe-+BgocJGix4iZKnSZhACwAmAJQrVa9Rs1btO3Xv0HDR4ydNnzFy1es3bd+w8dPnL12-cfPX7z99KA3ABQgdhAA

So, I'm calling it as closed. Likely a TS update.


Inconsistent naming for role names

Roles are named inconsistently in the root metadata: while the _type field of JSON files uses capitalized names, the roles field in the root uses lowercase names.
This is rather inconvenient when recreating the JSON files from a parse tree for verification purposes. It would be better to have a single convention that is used in all places.

Looks like Vlad fixed it


Add hidden attribute for tailwinds space-y issue

Description
When we use tailwind divider class to separate the different filter section, the hidden input are taken into account.
to avoid that, a hidden attribute must be added to the node
https://v2.tailwindcss.com/docs/upgrading-to-v2#add-hidden-to-any-template-tags-within-space-or-divide-elements
It's a very specific fix
Checklist

[ ] I added tests that cover my proposed changes.
[ ] I updated the documentation related to my changes (if applicable).

Thank you!

Coverage: 98.34%. Remained the same when pulling 4efb128ca049dfc92caa2aece3a80ca080440873 on obsidienne:main into 6d981050f611fb18d38c3015715acb0744772954 on woylie:main.


Dbeaver 5.0 sybase stored procedure multiple result set

Is running sybase ase stored procedure which results in multiple result sets supported. I am not seeing the results.
e.g.
sp_help tablename
execute sp_help tablename
suppose to return 10 result sets..

Returns 10 resultsets in my test env.

What result do you see?
What driver do you use?

Sorry for later replay, but tHis is what I see. Is there a setting to show multiple result sets in tabs..

What server version/driver do you use? You can click on "Test connection" in connection properties dialog and post the screenshot.

Database is Sybase ASE V16 and I am using Jconnect4 JDBC drivers.

Actually it seems to be working fine, if I run it as a execute as Script.
It wasn't working when I run as a execute sql statement..
So, I am good with this issue. Thanks for looking into it and Sorry for wasting your time.

So far I have no idea why it doesn't work in your case :(
Could you try jTDS driver?

+1.
Same issue.
DBeaver v4.2.0
Sybase ASE 15.7
DBeaver doesn't show output for store procedure call e.g. sp_help, sp_who, It only displays statistics.
e.g. run
exec sp_help
exec sp_who
Driver Class Name: com.sybase.jdbc4.jdbc.SybDriver
Lib: %SybaseRoot%\jConnect-7_0\classes\jconn4.jar

@anilsoni85 the version 4.2.0 is out of support. Could you please check it for the version 6.1.1?

Also run it as script option, instead of run it as a sql. That should work.

"Driver Supports multiple results" parameters was disabled by default in Driver Adv. Parameters tab under "Edit Driver", i enabled and it fixed the issue.

"Driver Supports multiple results" was my issue as well.  Thank you.


Strategies as interfaces in Argument View are not linked

There is no notion of "away strategies".
template.yaml
module:
  name: template
  brief: template

G1:
  text: Top-level
  supportedBy: [S1]

instance.yaml
module:
  name: inst1
  brief: Instance 1

S1:
  text: Strategy
  supportedBy: [G2]

G2:
  text: Goal 2
  supportedBy: [Sn1]

Sn1:
  text: Abcdefg

Add this info to the README.md


Create a "test matrix" to see where we stand from an end user perspective. Be able to show folks what is happening with our testing. (see if Ayana can help with this)

Created by sudhindrar for Steve Taylor
See the dashboard of sudhindrar’s Team
Powered by Parabol

Yes this is what I had in mind. As we cover more areas we should continue to update this page so that we/community knows how much testing goes into Pyrsia.

@betarelease Thank you for reviewing it! It got merged.


Incorporate linting for this repository

Hello.
There are no linting pre-commit hooks present in this repository at the moment. I suggest adding husky and eslint to implement this functionality. Here are a few leads.

Incorporate husky into this codebase for pre-commit hooks
Default eslint command to use in the repository-wide package.json when checking for lint errors.
Extend prettier in eslint configs (refer this), and add imports linting.
Although I do not see any styling files here, it'd be good to note that we can use styleint to lint those whenever the need be.

Thanks.

/assign @shdn-ibm

@shdn-ibm I think #22 only partially addressed the third point. Please reopen, thanks.

Hi, @rexagod . I use git workflow hook to realize this. See https://github.com/IBM/ibm-storage-odf-console/blob/main/.github/workflows/eslint.yaml

Yeah I saw that. However, the story was more along the lines of preventing a commit to happen if the lint checks don't pass, rather that committing lint errors on a branch and fixing that after GitHub reports those, which I think slows down the whole workflow.
Thanks.

add husky:  https://github.com/IBM/ibm-storage-odf-console/pull/23

Nice, did you incorporate the imports linting as well? This could potentially save devs working on this repository from a plethora of merge conflicts.

No, this repository does not have the eslint-plugin-console or the import/order rule

I would suggest we incorporate this change for less overhead in the future.

I notice in console, it is defined in package eslint-plugin-console, there are some files to define the rule. Is there any method to extract the rule simply, instead of copy the file into this repo.


Map InsufficientFunds LWK error to correct PaymentError

An InsufficientFunds error was so far wrapped in a PaymentError.generic(err: Lwk error: InsufficientFunds).
This PR maps it directly to the identically-named PaymentError value.

Superseded by #386


Unknow Confirmed Underhanded Techniques

Hello !
How to know which code has been confirmed as a underhanded technique ?
Could you send us a summary email after updating current standings ?
Thank you !

Thanks, we've communicated with current participants, and will continue to do so.


CasperJS throwing error when run with PHP

Casper Js is throwing an error when run with PHP exec() command on windows environment, Although its running file if use directly on command line (cmd)

_ 'phantomjs' is not recognized as an internal or external command, operable program or batch file._

Duplicate of #1355 and #1366. Using PHP as a proxy / web service for CasperJS does not seem to be a good idea, anyway and I don't think that we will try to support it in the near future.

Not suggesting we re-open this issue, but to at least point @Sahilgoyal190 in the right direction.
PHP tends to not have the same environment variables when it is executing than when you do as a user.  Make sure your paths are right in your PHP configs, and if you have any further issues, the fine folks over at the PHP Stack Overflow will be able to point you in the right direction.

@BIGjuevos maybe drop a hint somewhere in the documentation. Duplicate issues are more often than not a hint that something is at least expected to work, but not well documented why it can't.

I've created an example of how to create a web service with casper/phantomjs by blatantly stealing @mickaelandrieu's code and putting it into a new section in the docs.


Use different reporting periods based on the metrics backend

Use different reporting periods based on the metrics backend. Original implementation was setting this value to 1 min to accommodate the minimum allowed value for stackdriver, but that is a sub optimal behavior for Prometheus. The change also allows operator to override the default values.

/assign @mattmoor

@yanweiguo This is ready for another look.


Transcode AVC with odds resolution

Hi, thanks for this great library!
I'm facing an issue when overlay image onto empty video (much like Empty Video on your demo app), but for my case, I'm basically only transforming image into static .mp4 video. The issue happens when I'm using AVD emulator and when the targeted MediaFormat resolution is odd number e.g. : 1281, 1283, so on. The transformation would encounter IllegalStateException with logs attached below.
The issue didn't happen in real device I have Vivo s1, but I have received report where the error occurred on xiaomi device. I'm not sure if this also happens in some other device, hence want to find the root cause of this. For temporary solution, now I make the target resolution to even numbers when the source image have odd resolution.
P.S. : the issue also happens in your demo app, when I try to run it in emulator.
    java.lang.IllegalStateException
        at android.media.MediaCodec.native_dequeueOutputBuffer(Native Method)
        at android.media.MediaCodec.dequeueOutputBuffer(MediaCodec.java:2789)
        at com.linkedin.android.litr.codec.MediaCodecEncoder.dequeueOutputFrame(MediaCodecEncoder.java:108)
        at com.linkedin.android.litr.transcoder.VideoTrackTranscoder.writeEncodedOutputFrame(VideoTrackTranscoder.java:223)
        at com.linkedin.android.litr.transcoder.VideoTrackTranscoder.processNextFrame(VideoTrackTranscoder.java:117)
        at com.linkedin.android.litr.TransformationJob.processNextFrame(TransformationJob.java:211)
        at com.linkedin.android.litr.TransformationJob.transform(TransformationJob.java:108)
        at com.linkedin.android.litr.TransformationJob.run(TransformationJob.java:77)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:919)```

Glad to hear you are enjoying LiTr!
Which emulator version are you using? MediaCodec emulation is not very good on earlier emulator versions and get better in recent ones. Although I am not sure how even recent emulators handle odd resolutions. But the fact that this issue happens on real devices is not comforting. I will try to reproduce it on my end and will get back to you. From the stack trace it does look like that encoder codec is not liking the odd resolution.

I'm using Android 10.0 x86. Also could confirm this happened in OS 11 and 12. Though in 12 the behavior is a bit different, the process calls TransformationListener.onError after sometime, while on the other 2 it just logs the above exception without calling the listener onError.

I was able to reproduce this issue on Samsung Galaxy Note 10. Looks like this is encoder behavior.
Determining video resolution is "business logic", I think it would be better for an application that uses LiTr to handle this. LiTr does not change parameters provided by an application, it simply follows them.


[Mixcloud] Output filename template

[x] I've verified and I assure that I'm running youtube-dl 2017.01.14

[x] At least skimmed through README and most notably FAQ and BUGS sections

[x] Searched the bugtracker for similar issues including closed ones

[x] Bug report (encountered problems with youtube-dl)

Single audio: http://www.mixcloud.com/BlackJack/acid-pauli-on3-radio/

description
The (upload date) is not written in the Output filename template. There is a field "created_time" for upload date/time on Mixcloud.
log
youtube-dl.exe -v --get-filename -o "%(upload_date)s %(title)s" http://www.mixcloud.com/BlackJack/acid-pauli-on3-radio/
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '--get-filename', '-o', '%(upload_date)s %(title)s', 'http://www.mixcloud.com/BlackJack/acid-pauli-on3-radio/']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2017.01.14
[debug] Python version 3.4.4 - Windows-XP-5.1.2600-SP3
[debug] exe versions: ffmpeg N-67100-g6dc99fd, ffprobe N-67100-g6dc99fd, rtmpdump 2.4
[debug] Proxy map: {}
NA Acid Pauli - On3 Radio

<end of log>

There is a field "created_time" for upload date/time on Mixcloud.

No such field available on the webpage.

I found this field at http://api.mixcloud.com/BlackJack/acid-pauli-on3-radio/
"key": "/BlackJack/acid-pauli-on3-radio/",
"created_time": "2014-10-03T23:43:32Z",
"audio_length": 7185,
...


Updated wording

The indentation was causing very weird spacing in Crowdin, so for a better translation I'm removing it, although it's in disagreement with our best practices.
Thanks!

Thank you @AlexEven


http://boss.bekk.no/display/BOSS/Jack is down

@keronsen I can't see anything at this URL

Hi! This library is no longer being actively developed. Sorry about that, I'll remove the URL.

@keronsen cool, it looks like this repo is still being used, eg https://github.com/keronsen/jack/pull/6

Thanks!


Send emails for sync warnings / errors

Since we rely on the access token to sync, we should send notification emails to all admins of the account when a sync issue occurs.

Dupe of #3976


Experiment with shared PROC namespace

What this PR does / why we need it:
This has the potential to make virt-handler mount magic for containerdisks obsolete.
This commit just tests if anything else would be affected if we enable proc sharing and does not alter any logic.
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer:
Release note:

NONE

/test pull-kubevirt-e2e-k8s-1.25-sig-compute
/test pull-kubevirt-e2e-k8s-1.25-sig-network
/test pull-kubevirt-e2e-k8s-1.25-sig-storage


Bug: detectAdConfiguration returns "unclear" after consent

I use this to simulate the ad-consent:
            val params = ConsentRequestParameters
                .Builder()
                .setTagForUnderAgeOfConsent(false)
            if (BuildConfig.DEBUG) {
                val debugGeography =
                        ConsentDebugSettings.DebugGeography.DEBUG_GEOGRAPHY_EEA
                val debugSettings = ConsentDebugSettings.Builder(app)
                    .setDebugGeography(debugGeography)
                    .addTestDeviceHashedId(SystemUtils.getDeviceHashedId(app)!!.uppercase())
                    .build()
                params.setConsentDebugSettings(debugSettings)
            }

Issue:
Before seeing the UI of UserMessagingPlatform.loadAndShowConsentFormIfRequired, when I use detectAdConfiguration, I get NONE, which makes sense.
However, when I press "consent" button, and check it out later (either in current session or later after the process is killed) , I get "UNCLEAR".
How so?

Have you set goodVendorConfiguration to anything valid?

Not sure how to set it. It says in code:
        // TODO vendor configuration is variable, so needs to be defined by the individual developer
        //   - run app and make sure that a valid configuration is stored
        //   - have the app log the value of [tcVendorString], then copy that value to the following line
        //   - repeat if ad configuration changes, perhaps make this value available via remote configuration instead
        val goodVendorConfiguration = "TODO"

The code should work for all apps, for all devices, no?
If I set it to myself based on my observation on one device, what would it mean for others?
I don't understand how to set it up, and why it's here.

The problem here is that, while all other checks are based on what fixed level of "consent" or "legitimate interest" Google needs to serve ads, the exact vendor list that an app user needs to accept will be different between apps, because it is something configured by the developer via their AdMob settings.
That is why the comment states that you should start your app, then consent to all in the UMP dialog, and subsequently should output whatever the vendor configuration looks like after you've consented to them all. You can do this using a function like this:
fun outputVendorString(context: Context) {
    val sp = PreferenceManager.getDefaultSharedPreferences(context)
    val tcVendorString = sp.getString("IABTCF_VendorConsents", null)
    Log.d("UMP vendor string", tcVendorString ?: "not stored")
}

If you call that function, you should see a lengthy bit string in your logcat output. Copy that value to your declaration of goodVendorConfiguration and remove the function call to output the string, and you should be set up properly until you change your vendor configuration in AdMob.

The reason I use this function is less than what it says it's doing. I just wanted to know if there was a consent of any kind, to see if it's ok to request ads now. For this I think I only need to check if it returns "None" or not, no?
I think the order of the checks should be improved.
The part with "maxAdDisplayConfiguration" should be later, as only later it's used. Same for tcVendorString.
Before all, sufficientInterest is being checked, as it's the most important one, to differentiate between "None" and the rest.
Meaning it should be in this order:
sufficientInterest...
if (!sufficientInterest) {
   return AdConfiguration.NONE
   }
tcVendorString...
goodVendorConfiguration...
if (tcVendorString.length < goodVendorConfiguration.length) {
    return AdConfiguration.UNCLEAR
}
maxAdDisplayConfiguration...

As for goodVendorConfiguration  , it's weird for me. You say that each vendor has its own rules of what is the definition of which ad? There is no way to have a general solution for all people who use this function?

It is not that individual vendors might have different rules, but that you as an app developer might want to use different vendors in your AdMob configuration for app A vs. app B, and that another developer in their app C might use yet another list of vendors.
Ads will only definitely be shown if an app user gave consent for all vendors that AdMob might serve an ad from, so this developer-defined list of vendors needs to be a part of the check.

Even weirder. It depends on a list of vendors that I choose...
Why does it depend on the list? The list can change all the time.
Why should adding/removing an item there affect the result of which type of consent the user has chosen?
It's quite hard to manage this way.
Can I at least assume that the "None" vs the rest is reliable?

That is not a problem with the code in this repository, but with how Google's UMP and AdMob are set up. For your own use, you can edit the code as you like, which includes removing the whole vendor check part.
That doesn't change the fact that AdMob might not serve ads even if the remainder of the check claims that some incomplete consent has been provided.

If you are talking about the order, I mean that the order should be better because you don't need to query A&B , and then check just A and return, and later check result of B. You can query A and check it and return if needed, and then query B and check it.

About the vendors things, how does ConsentInformation.canRequestAds() work without checking any values of vendors that depends on how I've set the list of them?

Can you please at least tell me if the ConsentInformation.canRequestAds() works similar to this function , then (when the data is cached):

    fun canRequestAds(context: Context): Boolean {
        try {
            val detectAdConfiguration = detectAdConfiguration(context)
            return when (detectAdConfiguration) {
                AdConfiguration.ALL, AdConfiguration.NONPERSONALIZED, AdConfiguration.LIMITED, AdConfiguration.UNCLEAR -> true
                AdConfiguration.NONE -> false
            }
        } catch (e: Exception) {
        }
        return false
    }

?
This should be fine no matter the vendors check, according to what I've seen in code.

I think the misunderstanding here is thinking that canRequestAds() is supposed to return true if ads can be displayed based on the consent given by a user, and false if not.
It would be great if it did that, and we've actually asked Google for that functionality for the last two years or more - but it does not perform this kind of check. All it does is tell us whether the purely legal prerequisites are valid. Basically, it returns true if the user has seen the UMP dialog, independent of what consent the user gave, or if the user does not need to see the dialog in the first place (for example because they live outside the EU).
If the user opted out of all possible consent, then ads can still be requested according to Google. There just won't be any ads served and displayed. The code we're discussing here fixes that exact shortcoming of Google's UMP, but can not force AdMob to serve ads for us to display.

About the "There just won't be any ads served and displayed", I think it's something people have complained about , but the general idea is that the ad-consent was at least shown to the user, so if the user has made a choice already, you need to respect it and start showing ads.
The reason for not showing ad in case the ad-consent wasn't given in any way, is (theoretically) because of no-fill due to the ad-networks not being able to handle it. This is why Google suggested to use multiple ad-networks.
Someone on reddit told me he integrated 15 (?!) ad networks to deal with this, as well as using a different mediation (CAS-AI) instead of Admob.
But is my assumption ok, that the function I've created above should work just as the original one of ConsentInformation.canRequestAds() (assuming the data is cached) ?

But is my assumption ok, that the function I've created above should work just as the original one of ConsentInformation.canRequestAds() (assuming the data is cached) ?

I do not know how Google's original function works, but among other things I am sure it returns true even if the user opted out of all necessary consent - basically, if our function here would return AdConfiguration.NONE, then ConsentInformation.canRequestAds() might still return true.

And sadly there is no way to check how their function works, as it's not open sourced...
Is there really nothing in the long docs of how you've found (to create your code here in this repository), that talks about this alone?
Also, will this at least be true:
detectAdConfiguration returns anything except None -> ConsentInformation.canRequestAds() should return true.
?

That is likely true. If it is no longer NONE not long after a deletion, then the dialog must have been shown in the meantime, which means that UMP has been properly initialized and thus canRequestAds() should return true.
However, this is more a technicality than an actual success, though. First, if UMP has been initialized to show the dialog, you might as well just rely on canRequestAds() anyway. Second, you should consider the TCString deletion more of a desperate last resort than something to be done regularly. If you delete that string, all affected users will have to click through the UMP dialog the next time they start your app - and if this happens too often, many of them will surely find out how to disable ads by just not consenting to anything.

But deleteTCStringIfOutdated is actually delete only once every year or so. I see this in code.
In any case, you are saying that even though I might be right in terms of equivalent values (canRequestAds vs detectAdConfiguration ) , ads might not work properly till I call requestConsentInfoUpdate.
Correct?
While the docs say I should do it this way (always use requestConsentInfoUpdate before initialization of ads), I wonder if I can use the cached values from this repository, to reduce time before loading, and also to avoid being dependent on having an Activity all the time (one of the apps I work on have some scenarios of background operation and then an Activity  which shows ads).
I wonder if people have tested it.
Perhaps it will be clear only after the due date?

Perhaps for the vendor part, this could help:
https://stackoverflow.com/questions/65351543/how-to-implement-ump-sdk-correctly-for-eu-consent/68310602#68310602
https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB Tech Lab - CMP API v2.md#in-app-details
?
I don't see in their answer that you need to set "goodVendorConfiguration" or anything else...

Google also said that it's ok to read the data and request ads before calling requestConsentInfoUpdate:
" If consent has already been gathered then the users consent choices will be respected. However, we recommend calling requestConsentInfoUpdate before doing so in the cases that consent may expire or ad partners being added/removed."
https://groups.google.com/g/google-admob-ads-sdk/c/UcveWmtBm4Q/m/G3RQOm00AwAJ
Then again, they wrong about the fact that getPrivacyOptionsRequirementStatus shouldn't return cached value (docs say it should), and that canRequestAds uses cache (and that's not even in the docs).
Anyway, this plan should be fine if they are correct about using the cache by ourselves:

If already got cached data that's not expired, use it.
Call requestConsentInfoUpdate. If you used the cached data, don't do anything about the result except for what's sadly doesn't work for now (getPrivacyOptionsRequirementStatus ). If you haven't used the cached data, use the new one.

https://stackoverflow.com/questions/65351543/how-to-implement-ump-sdk-correctly-for-eu-consent/68310602#68310602

They are doing the same thing, just not for an arbitrary set of vendors but restricted to AdMob, in the lines starting with val googleId = 755. If you, personally, only use AdMob and no other vendors via AdMob (mediation, waterfall, what-have-you, ...) in your app, then doing that is good enough. As soon as you have other vendors, you need to get consent for them.
Even your quote from Google mentions as much: "we recommend calling requestConsentInfoUpdate before doing so in the cases [...] or ad partners being added/removed."

https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB Tech Lab - CMP API v2.md#in-app-details

That resource just explains the different values that are stored by UMP (and other CMPs following IAB TCF). IABTCF_VendorConsents is the key that we're dealing with here.

The quote wasn't to talk about the vendors. It was to show that I think it should be fine to have the plan I wrote about.
What they wrote in the context of what I asked them, is that requestConsentInfoUpdate should still be called (to get updated data at least for next time), but not that it would be the first step in case you want to use the cache to start loading ads.
At least, that's what I understand here.
Do you agree that this plan should probably be fine?
About vendors, I see. Too bad. Was hoping it's a general solution. I don't get why the code there is quite different from here though, as it checks for more stuff and also 755 exists there... What would change if more vendors are at play there...

IABTCF_VendorConsents is a bit string, where each "1" corresponds to a specific vendor that we've given consent for, and each "0" corresponds to a vendor that we've not given consent for.
If, in your AdMob configuration, only Google is activated as a vendor or "ad partner", then your users will only be asked to give consent for that single vendor. After they did give consent, the bit string will look like 000..0001, with the single "1" in position 755, because that is the ID for Google.
However, if you need to gather consent for a dozen other ad partner, for example, because you use mediation/waterfall in AdMob, then there will be a dozen more "1" in positions corresponding to those vendors. There might be a "1" in position 92 if you use "1plusX AG", or in position 1111 if you use "152 Media LLC", or any other combination. Check this for a full list of vendor IDs.
The point is: only you know which combination of vendors are necessary for your app to show ads in all cases - so if that is what you want to check, you will bring your own vendor string to the table. If you don't want to check that, you can just remove that part of the function.

A string of length 755 just because of bits?!
They could have at least compressed it to be based on bytes instead...

Why the need to check the vendors though? I know it says we should, but why? What does it mean? That the vendors are fine with the consent that the user has chosen and ready to show ads based on it?
If there is at least "1" inside, does it mean that ads can be requested, as at least one vendor is ok? Or it depends on which vendor it is?
For example, if you use Admob as a mediation solution to host various ad-networks, yet Admob won't be fine (meaning it has "0"), but others will (so they have "1"), so you won't get ads of any vendor?

Again, you can request ads whenever you like - the more important question is whether any will be loaded and displayed instead of just returning a "no fill".
Google states (for example as quoted above) that they will re-display the consent dialog after "ad partners [were] added/removed". This suggests that (a) they do track that sort of stuff, and (b) that they consider it important before displaying ads.
I do not know if they will drop the ad request altogether if given vendor consent does not match the currently configured list of vendors, or if they would just exclude those vendors from mediation individually, or if they just don't care because in the end it is your responsibility to have the necessary consent for whatever your app does.

You don't mean that they will actively display the UI, right? You mean they will provide new information about needing it in the results of requestConsentInfoUpdate .
What I asked is about the plan, that if you already have a cached result from previous sessions (when it's not expired/updated), it should usually be fine to start requesting ads even before calling requestConsentInfoUpdate , and that it will be based on the consent of previous calls.
The only times you might lose is in the session that something has changed : Expired cache or something was updated. On the next session, you will be able to get new cached data again and/or have the UI shown too, depending on your app's logic.
So, for 99% of the times, you shouldn't get no-fill if you rely on cached data first.
And, as I use the deletion function of yours, the issue of expiration doesn't even exist, because the cache-check is done after deletion.
Only case that could be a problem is when things get updated, and this is very rare. Don't know if Admob gets updated automatically right after UI of the consent was handled or not, but it doesn't matter much as it's only for this rare scenario anyway.

Yes, strictly speaking, requestConsentInfoUpdate(...) itself will not actively display any UI. I was considering their suggested way of calling loadAndShowConsentFormIfRequired(...) in the OnConsentInfoUpdateSuccessListener that is given as a parameter to the former function.
If all you want to do is decouple one and the other, you could just store the ConsentStatus value returned via that listener yourself, for the next app startup, while separately using whatever value you already have stored during this app startup. In that case, you don't need any functionality of this repository.
I don't know if doing so is any good, or what the legal ramifications might be.

I was hoping to use what's already saved, so that it will work exactly like of how ad-networks do it.
After testing further, I've noticed something that's weird for me:
Both canRequestAds and privacyOptionsRequirementStatus return false if I call them before calling requestConsentInfoUpdate , always.
However, if I call requestConsentInfoUpdate and then these (not inside the callback), it returns fine.
Sadly this means I still need to call requestConsentInfoUpdate which requires Activity, compared to just Context using the repository (or the class itself).
This isn't documented, but it's shown on their sample.
It's a bit better, but still bad.

I've now added a new function similarly to what I've already suggested in a different thread. Please check: https://github.com/bocops/UMP-workarounds/tree/main/get_previous_consent_status/android/kotlin
Other than that, I think this thread has veered from its original topic far enough, and that original topic (returning UNCLEAR if no vendors are set) was not a bug in my code. I'm closing this one.

You mean this:
/**
 * Checks the SharedPreferences file created by Google UMP, and returns the int value of the cached consent status
 * according to https://developers.google.com/admob/android/privacy/api/reference/com/google/android/ump/ConsentInformation.ConsentStatus
 * These should be as follow:
 * 0 - UNKNOWN
 * 1 - NOT_REQUIRED
 * 2 - REQUIRED
 * 3 - OBTAINED
 */
private fun getPreviousConsentStatus(context: Context) {
    val sp = context.getSharedPreferences("__GOOGLE_FUNDING_CHOICE_SDK_INTERNAL__", Context.MODE_PRIVATE)
    return sp.getInt("consent_status", 0)
}

Doesn't seem like a valid function (no return type).
Why all the "private" again..
But this looks promising. Maybe better than the function I originally offered to use? Is it safe to assume that 1+3 mean that I should be able to request ads now ?
How does it work with the expiration though?
This time it doesn't go to the same file, so how does it handle it?

Doesn't seem like a valid function (no return type).
Fixed

Why all the "private" again..
To be perfectly honest, I don't intend to spend more time debating each and every single decision, like whether a function is private or whether some order would make more sense than another in your opinion, for something that is basically a collection of concepts that might give other developers an idea of what works and what doesn't.

But this looks promising. Maybe better than the function I originally offered to use? Is it safe to assume that 1+3 mean that I should be able to request ads now ?
1 and 3 should mean that, when these values were written, either didn't apply to the user running your app, or they were shown the UMP dialog. It is likely that this is still the case, though not  completely certain for all the reasons we discussed above.

How does it work with the expiration though?
There's no timestamp stored in the preferences written by Google UMP, so you are on your own in that regard. You could get the consent timestamp using the other function, but that would be a somewhat sketchy thing to do because they come from different sources. You could also cache your own data and not rely on Google's preferences, as suggested further up above.

This time it doesn't go to the same file, so how does it handle it?
I don't know what file (vs. what other file?) you are referring to.

It's just that private functions aren't intended to be used by outside.
About caching my own data, I'm not sure it's safe, as it might not be on time to get a refreshed data.
Better to rely on what's of the SDK.
About which file, I'm talking about the files that the function reaches : SharedPreferences file. It's different here than the one on the other functions (which is the default one instead).

About the instruction here of setting goodVendorConfiguration based on what I get from tcVendorString:
https://github.com/bocops/UMP-workarounds/issues/4#issuecomment-1860023070
I copied the long string there. It has multiple "1" there for some reason. Not just a single one. That's even though on this app I use only Admob.
If I close/dismiss the dialog, or choose "do not consent", it's just "0", and yet the function returns "unclear".
Is it really unclear? Shouldn't it be limited or non-personalized?
We can at least say that it's not "personalized" for sure, no?
Maybe you should add a new function, of detection of "do no consent" ?
I also don't know what happens if the user configures specific vendors there. There are many options for the users.
Maybe possible to have different ad-types for different vendors...
I can't find how to see the ID of all vendors, and in your code there is no mention of 755. Only this string that I need to set.

Discussion continued in #10.