add_host functionality adds a ":" to the end of the String, causing a an exception

Environment info
kitchen-docker version: 2.3.0
test-kitchen version:  1.2.1.
OS:  OSX

boot2docker version
Boot2Docker-cli version: v1.8.0
Git commit: 9a26066

docker version
Client:
 Version:      1.8.3
 API version:  1.20
 Go version:   go1.5.1
 Git commit:   f4bf5c7
 Built:        Thu Oct 15 09:12:56 UTC 2015
 OS/Arch:      darwin/amd64

Server:
 Version:      1.8.3
 API version:  1.20
 Go version:   go1.4.2
 Git commit:   f4bf5c7
 Built:        Mon Oct 12 18:01:15 UTC 2015
 OS/Arch:      linux/amd64

.kitchen.yml:
---
driver:
  name: docker
  add_host: etcd:<IP_ADDRESS>
  use_sudo: false
  socket: <%= ENV['DOCKER_HOST'] %>
  privileged: true
  provision_command:
    - yum install -y tar cronie crontabs sendmail

provisioner:
  name: chef_zero
  require_chef_omnibus: 12.4
  environments_path: test/environments

platforms:
- name: centos-7
  driver:
    run_command: /usr/sbin/init

suites:
  - name: default
    provisioner:
      client_rb:
        environment: dev
    run_list:
    attributes:
      kitchen: true
      ha_disabled: true
      etcd:
        server: <IP_ADDRESS>

Output of kitchen converge:
----> Starting Kitchen (v1.4.2)
       /Users/lbornova/.chefdk/gem/ruby/2.1.0/gems/mixlib-shellout-2.2.1/lib/mixlib/shellout/unix.rb:338: warning: Insecure world writable dir /usr/local in PATH, mode 040777
-----> Creating <default-centos-7>...
       /Users/lbornova/.chefdk/gem/ruby/2.1.0/gems/mixlib-shellout-2.2.1/lib/mixlib/shellout/unix.rb:338: warning: Insecure world writable dir /usr/local in PATH, mode 040777
       invalid value "etcd:<IP_ADDRESS>:" for flag --add-host: invalid IP address in add-host: "<IP_ADDRESS>:"
       See 'docker run --help'.
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: Failed to complete #create action: [Expected process to exit with [0], but received '2'
---- Begin output of docker -H tcp://<IP_ADDRESS>:2376 run -d -p 22 --add-host=etcd:<IP_ADDRESS>: --privileged 9f58f5272fdf /usr/sbin/init ----
STDOUT:
STDERR: /Users/lbornova/.chefdk/gem/ruby/2.1.0/gems/mixlib-shellout-2.2.1/lib/mixlib/shellout/unix.rb:338: warning: Insecure world writable dir /usr/local in PATH, mode 040777
invalid value "etcd:<IP_ADDRESS>:" for flag --add-host: invalid IP address in add-host: "<IP_ADDRESS>:"
See 'docker run --help'.
---- End output of docker -H tcp://<IP_ADDRESS>:2376 run -d -p 22 --add-host=etcd:<IP_ADDRESS>: --privileged 9f58f5272fdf /usr/sbin/init ----
Ran docker -H tcp://<IP_ADDRESS>:2376 run -d -p 22 --add-host=etcd:<IP_ADDRESS>: --privileged 9f58f5272fdf /usr/sbin/init returned 2]
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration

Seems like something is adding an extra ":" at the end of the add-host, which is causing the IP to be invalid.

I ran into this issue too and did a little dig through lib/kitchen/driver/docker.rb to find the following line:
Array(config[:add_host]).each {|host, ip| cmd << " --add-host=#{host}:#{ip}"}

All other config items look to expect only one argument (per each entry), while add_host expects two. I did a quick test with this modification to my .kitchen.yml file, and everything worked as expected:
driver:
  name: docker
  add_host:
    - ["place.host.com","xxx.xxx.xxx.xxx"]

@foxfire206 got it, your config was not formatted correctly.


How to detect Transport timeouts in (RPC) client?

I am using the (default) HTTP transport on an RPC client (so rpc_codec.go is used).
I want to timeout receiving messages as it locks the client mutex, so I cannot send (I need/use bidirectional stream), which works. After a while an error is returned (instead of indefinitely blocking the Recv() call like before).
Unfortunately it is impossible to properly detect there was a timeout: rpc_coded.go#227 converts the transport (timeout) error into a string and puts it in Error.Details!
So I would need to parse the string...?!
I don't think this is very nice, so I wonder if I am using the timeout (detection) wrongly?

I guess I am circumventing #532, a proper fix would not require to detect the Timeouts (as I do not want/need the timeouts on Recv() at all)

If there's a timeout the context is cancelled. You can check context.Done()

There is no context in Recv(): https://github.com/micro/go-micro/blob/master/client/rpc_stream.go#L75
And HTTPTransport` also does not seem to have/use contexts. It just sets deadline and read response
	if h.ht.opts.Timeout > time.Duration(0) {
		h.conn.SetDeadline(time.Now().Add(h.ht.opts.Timeout))
	}

	rsp, err := http.ReadResponse(h.buff, r)
	if err != nil {
		return err
	}

But the whole point of me trying to set timeout is to be able to send/receive on the same RPC stream, which is not possible due to the Mutex in Send() and Recv()...

For us this issue is obsolete, we needed to detect the Timeouts to fake 'true bidirectional streaming', implemented by #884.
So feel free to close (unless you are interested to providing ways to detect these Timeouts as well)

@asim so now close the issue as we now have grpc by default?


IOS build error after installing latest version of plugin

i updated the plugin to support faceID and then giving me error while taking build.

I deleted the FaceID implementation to fix it, your error may be different with it.
Seems like FaceID may not be functional yet
      if (@available(iOS 11.0, *)) {
        if (laContext.biometryType == LABiometryTypeFaceID) {
          biometryType = @"face";
        }


Bypass login where same user is reused

Is your feature request related to a problem? Please describe
The majority of our test run time is spent logging in. This includes where we've got the same user used in multiple tests.
Describe the solution you'd like
It's possible to pass a Chrome profile folder to the Chrome web driver. Perhaps we could create a new profile for each test user at the beginning of the test run.
Additional context
This should also speed up the tests as it will store other cached files.

Closing as #87 has been merged


notwoking in crontab

Hi, I using ubuntu 22.04 run it in normal terminal. But when I using crontab for autorun, It's not working.  its said about package chromium
output.txt
this is output log.

Here is a sample crontab that works at every machine restart, it works just fine, try to model yours based off this
@reboot /usr/bin/tmux new-session -d -s bing 'cd ~/BingRewards && /usr/bin/python3 main.py'

to view the logs you can enter the tmux session with the below command
$ tmux a -t bing

thank you. I will try this


Setting default options for checkbox type results in error

I'm submitting a ...  (check one with "x")
[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[x] support request

Current behavior
I am trying to override the default setting for the bootstrap checkbox type in the module declaration. This results in an formly/angular error: 'Error: No component factory found for undefined'. Not sure if I don't do it the correct way or that it is a bug.
Expected behavior
The default options can be overriden from the module.
Minimal reproduction of the problem with instructions
     FormlyModule.forRoot( {
      types: [
        {
          name: 'checkbox',
          defaultOptions: {
            templateOptions: {
              indeterminate: false
            }
          }
        }
      ]
    }),

See https://stackblitz.com/edit/ngx-formly-bootstrap-scp5pb
What is the motivation / use case for changing the behavior?
The bootstrap checkbox is defaulted to 'indeterminate', as seen here. I want to configure it default as not indeterminate.
Please tell us about your environment:
Not applicable

Angular version: 2.0.X
7.x

Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X all

Language: [all | TypeScript X.X | ES6/7 | ES5]
all

Node (for AoT issues): node --version =
Not applicable

I checked it with material, it works.

Awesomely quick, thank you!

the fix is now part of v5.5.1 release!


Unclean Shutdown DNS

Describe the problem
I created a network via Netbird cloud. There are 4 peers and 4 users in the network actively. Everyone except me can communicate with each other correctly. Even though I am connected to the network, when I ping to see the IP address of a host name given by Netbird, I get this message "Ping request could not find host xxx.netbird.cloud. Please check the name and try again."
To Reproduce
Unfortunately, I don't know the steps required to repeat the error. I could not cause this error on a different device, but I constantly encounter this error on my own device.
Expected behavior
Successfully resolving FQDNs as xxx.netbird.cloud
Are you using NetBird Cloud?
Yes, I am using Netbird Cloud
NetBird version
v0.27.4
NetBird status -d output:
Peers detail:
laptop-ogul.netbird.cloud:
NetBird IP: <IP_ADDRESS>/32
Public key: pL8G23YIba0xxwq008MO5kSju1krCKxPOmyeXGZIqQA=
Status: Disconnected
-- detail --
Connection type: P2P
Direct: false
ICE candidate (Local/Remote): host/host
ICE candidate endpoints (Local/Remote): <IP_ADDRESS>:51820/<IP_ADDRESS>:51820
Last connection update: 34 seconds ago
Last WireGuard handshake: 32 seconds ago
Transfer status (received/sent) 212 B/304 B
Quantum resistance: false
Routes: -
Latency: 0s
laptop-guludogan.netbird.cloud:
NetBird IP: <IP_ADDRESS>/32
Public key: KkBra8P7Wf6CXl0ctxAy+RZop8Y3drbF0xPj26yhfAc=
Status: Disconnected
-- detail --
Connection type: P2P
Direct: false
ICE candidate (Local/Remote): host/host
ICE candidate endpoints (Local/Remote): <IP_ADDRESS>:51820/<IP_ADDRESS>:51820
Last connection update: 34 seconds ago
Last WireGuard handshake: 32 seconds ago
Transfer status (received/sent) 212 B/304 B
Quantum resistance: false
Routes: -
Latency: 0s
laptop-mulukaya.netbird.cloud:
NetBird IP: <IP_ADDRESS>/32
Public key: RrPwc5lALgeTPVZtB2k/T+7WlpCCksfpep6+ZHtc7BE=
Status: Disconnected
-- detail --
Connection type: P2P
Direct: false
ICE candidate (Local/Remote): host/host
ICE candidate endpoints (Local/Remote): <IP_ADDRESS>:51820/<IP_ADDRESS>:51820
Last connection update: 34 seconds ago
Last WireGuard handshake: 32 seconds ago
Transfer status (received/sent) 212 B/304 B
Quantum resistance: false
Routes: -
Latency: 0s
erolaslan.netbird.cloud:
NetBird IP: <IP_ADDRESS>/32
Public key: gXYaMVEGpSBV8nrg90lDEFWbtk7k1kgyxM2Yjdkk82M=
Status: Disconnected
-- detail --
Connection type: P2P
Direct: false
ICE candidate (Local/Remote): host/host
ICE candidate endpoints (Local/Remote): <IP_ADDRESS>:51820/<IP_ADDRESS>:51820
Last connection update: 34 seconds ago
Last WireGuard handshake: 32 seconds ago
Transfer status (received/sent) 212 B/304 B
Quantum resistance: false
Routes: -
Latency: 0s
appousedev-app.netbird.cloud:
NetBird IP: <IP_ADDRESS>
Public key: wuGzGySMTLWzCU2H3gaFramU2fM/2CCLX+okcaSPwlM=
Status: Connected
-- detail --
Connection type: P2P
Direct: true
ICE candidate (Local/Remote): srflx/srflx
ICE candidate endpoints (Local/Remote): <IP_ADDRESS>:44713/<IP_ADDRESS>:51820
Last connection update: 32 seconds ago
Last WireGuard handshake: 32 seconds ago
Transfer status (received/sent) 156 B/180 B
Quantum resistance: false
Routes: -
Latency: 8.8119ms
appouselive-app.netbird.cloud:
NetBird IP: <IP_ADDRESS>
Public key: dYC3NlJ5hEkYLCM93VQTukpmmpzhpr9blNudqwKB618=
Status: Connected
-- detail --
Connection type: P2P
Direct: true
ICE candidate (Local/Remote): host/srflx
ICE candidate endpoints (Local/Remote): <IP_ADDRESS>:51820/<IP_ADDRESS>:51820
Last connection update: 31 seconds ago
Last WireGuard handshake: 27 seconds ago
Transfer status (received/sent) 212 B/304 B
Quantum resistance: false
Routes: -
Latency: 10.9757ms
appouse-devdb.netbird.cloud:
NetBird IP: <IP_ADDRESS>
Public key: sVaIAp619EGU/ZbARr43mbjcjrhf547W7OoKVQauEhE=
Status: Connected
-- detail --
Connection type: P2P
Direct: true
ICE candidate (Local/Remote): host/host
ICE candidate endpoints (Local/Remote): <IP_ADDRESS>:51820/<IP_ADDRESS>:51820
Last connection update: 32 seconds ago
Last WireGuard handshake: 32 seconds ago
Transfer status (received/sent) 212 B/304 B
Quantum resistance: false
Routes: -
Latency: 10.9838ms
appousepostgrelive.netbird.cloud:
NetBird IP: <IP_ADDRESS>
Public key: g0+FPDQ1repxz74J6edmeoQ2gHRIpu6mRlDCmGibXWM=
Status: Connected
-- detail --
Connection type: P2P
Direct: true
ICE candidate (Local/Remote): host/host
ICE candidate endpoints (Local/Remote): <IP_ADDRESS>:51820/<IP_ADDRESS>:51820
Last connection update: 32 seconds ago
Last WireGuard handshake: 29 seconds ago
Transfer status (received/sent) 212 B/304 B
Quantum resistance: false
Routes: -
Latency: 9.5262ms
OS: windows/amd64
Daemon version: 0.27.4
CLI version: 0.27.4
Management: Connected to https://api.netbird.io:443
Signal: Connected to https://signal.netbird.io:443
Relays:
[stun:stun.netbird.io:5555] is Available
[turns:turn.netbird.io:443?transport=tcp] is Available
Nameservers:
FQDN: dws-mulukaya.netbird.cloud
NetBird IP: <IP_ADDRESS>/16
Interface type: Userspace
Quantum resistance: false
Routes: -
Peers count: 4/8 Connected
Screenshots

Additional context
I restarted the computer, deleted and reinstalled the application, but it did not help.

I solved issue, thanks everybody.

I solved issue, thanks everybody.

How? I probably have the same problem.


Require setuptools, doit/plugin.py and tests/test_plugin.py import pkg_resources

I dont remember exactly why but some people dont like setuptools.
I guess it should be added as extras_require and on dev_requirements.txt.
And docs as well.
Potential problem is that if setuptools is missing might be hard to figure out why a plugin is not being loaded.
Maybe there should be a way to list the loaded plugins as well.


method to convert CharTrie into a compact trie for space-optimized representation (feature request)

char_trie['he'] = 3
char_trie['him'] = 4
---h
    |__e: 3
    |__i
        |__m: 4
can be compressed as,
---h
    |__e: 3
    |__i m:4
since removing each redundant node saves atleast 56 bytes, this can provide high memmory optimisation to a data structure that is used for memmory optimized storage.

I'd like to contribute code for this, if required.

I’m always happy to review pull requests though adding a ‘compressed’ representation to the library is rather involved change so this might benefit from discussion of the design before code is written. There are non-obvious cases to consider such as how would the data structure look with trie['foo'] = trie['foobar'] = trie['foobarbaz'] = 42.
Lastly, you should be looking at https://github.com/mina86/pygtrie repository since that’s where the latest code resides.

One solution for the example you provided is, node decomposition, as shown,
trie['foobarbaz'] = 42
---foobarbaz: 42
trie['foobar'] = 42
no we will perform sub-string matching of 'foobar' starting from the keys at root node. From the first character in 'foobar' we'll find a key in the node such that it has the same corresponding characters.
in this example, 'foobar' matched with 'foobarbaz' upto 5th position, therefore, the root node breaks at the 5th position creating,
---foobar: 42
   |-- baz: 42
after trie['foo'] = 42,
---foo: 42
   |-- bar: 42
       |-- baz: 42
It is to be noted that, at a node, no two keys start form same character and hence time complexity of addition is unaffected after compression.

In the above trie, if I perform,
trie['foobie'] = 9
the resulting structure would be,
---foo: 42
   |-- b
       |--ie: 9
       |--ar: 42
           |-- baz: 42
ie, node with key 'bar' decomposed at 0th position ('b').

What if I then did trie['bar'] = 42? If I understand you correctly, you suggest that the root node would keep ‘foo’ as the key in children dictionary but that won’t quite work and goes opposed to how trie is meant to behave.

If you do trie['bar'] = 42,
the root node will now have two children, one with key 'foo' and another with key 'bar'. I don't understand your point, how does it violates any behaviour of a trie.

When a lookup for ‘foo’ is done, trie’s behaviour is to look for a child ‘f’ of the root node. If root’s node children wolud hold ‘foo’ and ‘bar’, you’d never find ‘foo’ in there.

Look-ups would be implemented similar to additions, at each node we find the key which has the same first character as that of the query,
If I were to look-up for 'foobar' in the following trie,
---foo: 42
   |-- b
       |--ie: 9
       |--ar: 42
           |-- baz: 42
at root node 'foo' starts with an 'f' just like 'foobar', this indicates that 'foobar' must belong to the subtrie at 'foo'.
in the 'foo' subtrie now we lookup for 'bar', this time 'b' matches with 'bar',
now in 'b' subtrie we look-up for 'ar' where it matches with 'ar', since the query has been found, we stop here.
Yes, at every node, we need to traverse to all the children until we find the matching first character, therefore time complexity increases. But, lots of storage is saved which is often helpful for storage concerned applications.

The _Node object has two fields: children and value. In your diagram, what does:
   |-- b```
correspond to? What’s the value of `children` and `value` fields in the root node?

Because if the root node has `children` field equal to a `{'foo': <some-node-object>}` than there is no efficient way to find the `foo` key when looking for `foobar` since the way trie works is that you will look for a child under `f`.

When I say that design discussion may be in order, I mean discussion of how each kind of node is represented. What are `children` and `value` fields values and how are key lookup, addition and deletion performed.

Your interpretation of children field is correct.
after compression, now trie keys are strings and hence now at each node, rather than looking of a character like 'f' we look for strings beginning with 'f' like 'foo',
at each node, log(N) complexity is required to find a key, where N is the total number of children of that node. Yes the operations are not time efficient, but this is the cost of the saved memory space.
If I'm right, combining each pair of nodes saves 56B.

at each node, log(N) complexity is required to find a key, where N is the total number of children of that node.

I don’t see how that’s correct. The actual complexity is linear to the length of the prefix. Recall that Python uses hash maps for dictionaries, not binary search trees. As a result, when looking for child ‘foobar’ you have to first check ‘f’, than ‘fo’, then ‘foo’ etc.
At that point it’s simpler to just have a flat dictionary and do key lookups by doing longer and longer prefix matches.

Actually, at one node there will be only one key starting from 'f' or any other character. In the following trie,
---foo: 42
   |-- bar: 42
if I do trie['foob'] = 9
this happens,
---foo: 42
   |-- b: 9
        |--ar: 42
the the node with key 'bar' decomposes at 'b' to avoid having both 'bar' and 'b' as keys.

So then also if I add trie['bar'] = 42 the root node gets decomposed?

no, in this case the root node will have one more key as 'bar', due to the fact that no existing key of root node matches with 'b'.

So again, how do you look up a key in such a node?

If sorting is enabled, as done by the function enable_sorting(), we can apply binary search on all the keys of a node to search that key which starts with a particular character c, where c is the first character of query string.
otherwise, if sorting is not enabled we have to perform a linear search.
Do note that, query string will change for each node, depending upto which character the match occurs in previous node.

If sorting is enabled, as done by the function enable_sorting(), we can apply binary search on all the keys of a node to search that key which starts with a particular character c, where c is the first character of query string.
otherwise, if sorting is not enabled we have to perform a linear search.

I don’t think either of those is acceptable. The first option makes lookup O(n log n) operation; the second makes it O(n) where n is number of children. Meanwhile, the idea behind a trie is to have O(k) lookup where k is the length of the key.
I don’t see getting away from children being keyed by a single character (in case of CharTrie). The path could be compressed but that would need to be for the remaining of the prefix, something like:
trie['foo'] = 1
trie['foobar'] = 2
trie['foobarbaz'] = 3
trie['bar'] = 4

\+- f -> (oo) -> 1
 |               \-- b -> (ar) -> 2
 |                                \-- b -> (az) -> 3
 \- b -> (ar) -> 4

The question then is how to encode and handle the compressed path.

Once sorting is enabled, look-ups should have a worst-case time complexity of O( k log n ), and that will be the case when the trie remains unaffected after compression. For an average case, the time complexity should be O( log n ) + O( k ).
You suggest that we use only the first character of a path as a key, right? which should save the search time of a key.

On Tue, May 28, 2019, 09:03 Manthan Chauhan<EMAIL_ADDRESS>wrote:

Once sorting is enabled, look-ups should have a worst-case time complexity
of O( k log n ), and that will be the case when the trie remains unaffected
after compression. For an average case, the time complexity should be O(
log n ) + O( k ).

When sorting is enabled children are not stored sorted. A hash table is
still used. With sorting enabled children are sorted each time items are
iterated over.
As such, there is no way to take advantage of sorting being enabled during
key lookup. The chdren would need to be sorted each time which means lookup
takes O(n log n).
You suggest that we use only the first character of a path as a key, right?

which should save the search time of a key.

Yes. That's how tries work.

Thinking about your idea for character keys,

If sorting is enabled, as done by the function enable_sorting(), we can apply binary search on all the keys of a node to search that key which starts with a particular character c, where c is the first character of query string.
otherwise, if sorting is not enabled we have to perform a linear search.

I don’t think either of those is acceptable. The first option makes lookup O(n log n) operation; the second makes it O(n) where n is number of children. Meanwhile, the idea behind a trie is to have O(k) lookup where k is the length of the key.
I don’t see getting away from children being keyed by a single character (in case of CharTrie). The path could be compressed but that would need to be for the remaining of the prefix, something like:
trie['foo'] = 1
trie['foobar'] = 2
trie['foobarbaz'] = 3
trie['bar'] = 4

\+- f -> (oo) -> 1
 |               \-- b -> (ar) -> 2
 |                                \-- b -> (az) -> 3
 \- b -> (ar) -> 4

The question then is how to encode and handle the compressed path.

at each node, we can use the first character of the query string to locate a key-value pair, here, each value is a collection of a string and a node pointer.
once we locate a key-value pair, we traverse the associated string upto the position it matches with the query string, which would be equivalent to traversing that much nodes of an uncompressed CharTrie.
ie, trie['foo'] = 1
--- val=_SENTINEL
     {'f': ('oo', *)}

   |---val = 1

{}
trie['foobar'] = 2
--- val=_SENTINEL
     {'f': ('oo', *)}

   |---val = 1

{'b': ('ar', *)}

        |---val = 2

            {}
trie['for'] = 3
--> val=_SENTINEL
     {'f': ('o', *)}

  |->val = _SENTINEL

      {'r': ('', *)}

       |
  |->val = 3

       |
      {}

      {'o': ('', *)}

|->val = 1

{'b': ('ar', *)}

 |->val = 2

       {}

This sounds workable. I only wonder how would it interact with interfaces
such as walk_towards.

sorry but can you please provide some references for this walk_towards interface?

https://github.com/mina86/pygtrie/blob/master/pygtrie.py#L1073

This sounds workable. I only wonder how would it interact with interfaces such as walk_towards.

For this to work, we'll need to modify the _path_from_key() functions, because in this proposed model of compact tries, the key of a node is not essentially it's path from the root.
trie['foo'] = 1
trie['foobar'] = 2
trie['foobarbaz'] = 3
trie['bar'] = 4
+- f -> (oo) -> 1
|               -- b -> (ar) -> 2
|                                -- b -> (az) -> 3
- b -> (ar) -> 4
in this trie structure, if we consider the key foobarbaz, the path for this node should be fbb and not foobarbaz.
This the above described path definition walk_towards function will work unaffected.

I don't think that'll work. Whether compressed representation is used or not, it should be transparent to the user so walk_towards should go through the whole foobarbaz regardless of how the internal node structure looks like.

I don't think that'll work. Whether compressed representation is used or not, it should be transparent to the user so walk_towards should go through the whole foobarbaz regardless of how the internal node structure looks like.

Then we can have to do a little modification in the walk towards function.
If we consider that the value at each children key is a tuple(string, Node),
then in the walk_towards function we have to increment pos in each iteration by,
pos += 1 + len( node.children.get( path [pos ] ) [0] )

Sorry about delay.

If we consider that the value at each children key is a tuple(string, Node),
then in the walk_towards function we have to increment pos in each iteration by,
pos += 1 + len( node.children.get( path [pos ] ) [0] )

That doesn't sound viable for two reasons.
First of all, the result of walk_towards should not depend on the internal structure of the trie. Whether compressed paths are used or not, iterating over the steps should yield all keys on the path to given key. In other words, the following test needs to pass:
import pygtrie

t = pygtrie.CharTrie(foobar=42)
steps = t.walk_towards('foobar')
res = ' '.join('<%s>' % step.key for step in steps)
assert res == '<> <f> <fo> <foo> <foob> <fooba> <foobar>'

Second of all, if the motivation is to reduce amount of memory used, I think only children with compressed paths should be a (sub-path, node) tuple. This doesn't fundamentally change anything other than code needing to handle both cases.
There's also another aspect that ideally, the following test should pass as well:
from itertools import islice
import pygtrie

t = pygtrie.CharTrie(foobar=42)
res = ''
for step in t.walk_towards('foobar'):
    res += '<%s>' % step.key
    if 'fred' in t:
        del t['fred']
        del t['foobaz']
    else:
        t['fred'] = t['foobaz'] = 24
assert res == '<><f><fo><foo><foob><fooba><foobar>'

In other words, converting nodes between compressed and not-compressed should not break walk_towards method.

Okay, but for compressed tries to pass the walk_through() test, some of the returned path will not point to any Node.
That is, if the trie contains,
foobar=5 foob=6
then while walk_through() the path foo will be returned without any Node, if that is accepted.

Correct. This is the desired behaviour because it's the current behaviour (currently the method goes through all nodes regardless of whether they have values assigned to them or how many children they have) and methods should not expose details of the implementation.

I don't think that'll work. Whether compressed representation is used or not, it should be transparent to the user so walk_towards should go through the whole foobarbaz regardless of how the internal node structure looks like.

Then we can have to do a little modification in the walk towards function.
If we consider that the value at each children key is a tuple(string, Node),
then in the walk_towards function we have to increment pos in each iteration by,
pos += 1 + len( node.children.get( path [pos ] ) [0] )

For that, we can use this trick and inbetween every two valid Node we can pass,
len(node.children.get( path [pos] ) [0] ) None nodes to make up for the invalid keys inbetween.
I mean without actually traversing the path character by character.


Matrix Pro keypad jittering

Some keypads tend to jitter when applying small forces. Tried increasing debounce time, couldn't get good result.
One thought is to apply longer debounce time or something else if velocity is low(<30), so when gently pushing it won't jitter, and could respond fast if hit hard.
Plus, it might be ideal to set this threshold for individual keys, since not all keys perform the same.

This can be fixed by having a lower note off threshold than the note on threshold.
I swear I wrote this but it might not get merged.

It seems like this feature was dropped during the last keypad refactoring. I have added it in 7da4ccd

For some reason it got dropped again haha. Added back in with new optimization https://github.com/203-Systems/MatrixOS/commit/def5d3627bd998f7861a1d0213dce5222ee7474f


归档下载未能返回网页中的错误

复现步骤 / Step to reproduce
在一个源自e-hentai主站原因无法归档的画廊尝试使用归档下载
预期行为 / Expected behaviour
提示下载错误,并返回网页上对应的错误,例如
Page load has been aborted due to a fatal error. A report has been dispatched to site staff. Please try again later.
实际行为 / Actual Behaviour
除了下载暂停外,什么都没有发生
应用日志 / App logs
none
备注 / Addition details
No response
JHenTai 版本号 / JHenTai version
7.4.10 + 149
操作系统版本 / operating system version
Windows 10 19045.3996
设备型号 / Device model
Legion R9000P2021H
自查步骤 / Verify steps

[X] 您已仔细查看并知情 常见问题 中的内容 / You have checked Q&A carefully
[X] 您已搜索过 Issue Tracker，没有找到类似内容 / I have searched on Issue Tracker, No duplicate or related open issue has been found
[X] 您确保这个 Issue 只提及一个问题。如果您有多个问题报告，烦请发起多个 Issue / Ensure there is only one bug report in this issue. Please make mutiply issue for mutiply bugs
[X] 您确保已使用最新版本测试，并且该问题在最新版本中并未解决 / This bug have not solved in latest version

从另存为的htm文件来看,网页返回了

Page load has been aborted due to a fatal error. A report has been dispatched to site staff. Please try again later.

支持于https://github.com/jiangtian616/JHenTai/commit/e650eebda49f529d67ad4c9baa6f1f289db56989 ，下个版本集成。


release notes for 2024.07.0

[x] Closes #9230

Still missing the summary and the contributors, I'll add the latter just before merging.

Is the release summary fine as-is? I included the most user-visible changes I saw from a quick glance, but not sure this includes everything important.

I'll leave this open for any comments until tomorrow morning (my time) and issue the release then.


Update sbt-scalajs, scalajs-compiler to 1.0.0

Updates

org.scala-js:sbt-scalajs
org.scala-js:scalajs-compiler

from 0.6.32 to 1.0.0.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scala-js" } ]

labels: library-update, semver-major

Depends on https://github.com/scalatest/scalatest/pull/1772.


Thumbnail not showing on multi-instance setup

Version of the moonraker integration
1.2.1
Describe your setup
Macbook Pro 2014
Linux Mint

Mainsail
2 printers connected (Biqu BX and JGMaker Artist-D Pro)
separate folders and instances
Describe the bug
Thumbnail doesn't show, just says "inactive" constantly.
Orcaslicer, prusaslicer, superslicer gives same problem.
300x300, 32x32 PNG thumbnails in slicers.
Moonraker Logs
home-assistant_moonraker_2024-06-08T00-01-55.555Z.log
Not sure where to find config. Nothing in my yaml's

what is your printer model.
Also you specify multi-instance. Does it work in single instance

Im having the same issue, looks like its not looking on the right port.
Single instance,
2024-06-09 04:58:22.663 DEBUG (MainThread) [custom_components.moonraker.camera] Trying to get thumbnail
2024-06-09 04:58:22.663 DEBUG (MainThread) [custom_components.moonraker.camera] Thumbnail new_path: .thumbs/CE3E3V2_ESP32_Devkit_v4_Snap_Fit_Case_Top-720x720.png
2024-06-09 04:58:22.664 DEBUG (MainThread) [custom_components.moonraker.camera] Fetching new thumbnail: http://<IP_ADDRESS>/server/files/gcodes/.thumbs/CE3E3V2_ESP32_Devkit_v4_Snap_Fit_Case_Top-720x720.png
2024-06-09 04:58:22.699 DEBUG (MainThread) [custom_components.moonraker.camera] Trying to get thumbnail
It is trying to look at:
http://<IP_ADDRESS>/server/files/gcodes/.thumbs/CE3E3V2_ESP32_Devkit_v4_Snap_Fit_Case_Top-720x720.png
But the correct url would be:
http://<IP_ADDRESS>:7125/server/files/gcodes/.thumbs/CE3E3V2_ESP32_Devkit_v4_Snap_Fit_Case_Top-720x720.png

what is your printer model.
Also you specify multi-instance. Does it work in single instance

1x Biqu BX
1x JGMaker Artist-D Pro
Both show thumbnails from slicer in Mainsail interface, but nothing is passed on to HA.
Only have this setup with multi-instance, only specified in case it matters :-)

Im having the same issue, looks like its not looking on the right port. Single instance,
2024-06-09 04:58:22.663 DEBUG (MainThread) [custom_components.moonraker.camera] Trying to get thumbnail 2024-06-09 04:58:22.663 DEBUG (MainThread) [custom_components.moonraker.camera] Thumbnail new_path: .thumbs/CE3E3V2_ESP32_Devkit_v4_Snap_Fit_Case_Top-720x720.png 2024-06-09 04:58:22.664 DEBUG (MainThread) [custom_components.moonraker.camera] Fetching new thumbnail: http://<IP_ADDRESS>/server/files/gcodes/.thumbs/CE3E3V2_ESP32_Devkit_v4_Snap_Fit_Case_Top-720x720.png 2024-06-09 04:58:22.699 DEBUG (MainThread) [custom_components.moonraker.camera] Trying to get thumbnail
It is trying to look at: http://<IP_ADDRESS>/server/files/gcodes/.thumbs/CE3E3V2_ESP32_Devkit_v4_Snap_Fit_Case_Top-720x720.png But the correct url would be: http://<IP_ADDRESS>:7125/server/files/gcodes/.thumbs/CE3E3V2_ESP32_Devkit_v4_Snap_Fit_Case_Top-720x720.png

That seems like a reasonable conclusion. Would also have been my guess that it had to do with the ports. Unfortunately I'm not skilled enough to change and test alternative setups/codes.

can you ssh in the printer and check what is the exact path of that thumbnail from /

For the record, i changed camera.py line 167:
response = await self._session.get(
f"http://{self.url}/server/files/gcodes/{new_path}"
)
to:
    response = await self._session.get(
        f"http://{self.url}:7125/server/files/gcodes/{new_path}"
    )

And now it just works fine.

Thats awesome, then we just need it to function with multi-instance. In my case port 7126 & 7127Sendt fra min Galaxy
-------- Oprindelig besked --------Fra: Subcode @.> Dato: 09.06.2024  18.59  (GMT+01:00) Til: marcolivierarsenault/moonraker-home-assistant @.> Cc: srbjessen @.>, Author @.> Emne: Re: [marcolivierarsenault/moonraker-home-assistant] Thumbnail not showing on multi-instance setup (Issue #355)
For the record, i changed camera.py line 167:
response = await self._session.get(
f"http://{self.url}/server/files/gcodes/{new_path}"
)
to:
response = await self._session.get(
f"http://{self.url}:7125/server/files/gcodes/{new_path}"
)
And now it just works fine.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

for one instance the path is: /home/klip/BIQUBX_data/gcodes/.thumbs
for the other: /home/klip/ARTISTD_data/gcodes/.thumbs
I'm guessing that makes it harder, since all names will depend on user setup of multiinstance...

Can you try newest version 1.3.0 it allows to configure custom port for the camera and thumbnail (in the configure option)

☝  try this and reopen if needed

The Thumbnail port fix worked 👍


Allow callers of Targets() to exclude 'retry-never' peers

Required for https://github.com/weaveworks/weave/pull/2070

After that little nit is picked, LGTM.

Changed as requested.

Merge at your discretion :)

I do not have write access to this repository.


Added "encrypted" flag to volume config

Based on the flag, we will decide whether want to encrypt the volume or not.

I suspect you need code (in device-steps.sh or in storage-init) to create the new directory

No, we don't need any extra code in device-steps.sh. Sub-directories are creating on the fly if not present (verified it).


In WIX MIS mode, appIconPath cannot be set in package.json

Pre-flight checklist

[X] I have read the contribution documentation for this project.
[X] I agree to follow the code of conduct that this project uses.
[X] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Problem description
I have already browsed https://js.electronforge.io/maker/wix/interfaces/makerwixconfig
After I generated my program and installed it, my icon is not consistent with the actual one
Like this：

appIconPath cannot be set in package.json
Proposed solution
add  appIconPath to  MSICreatorOptions (packages/maker/wix/src/Config.ts)
Alternatives considered
1、It can be set using JavaScript script, but it is not easy to maintain
2、It may be possible to automatically set this value to {packagerConfig.icon}, but it may cause incompatibility with old projects, so it is not recommended
"packagerConfig": {
"icon":"favicon.ico"
},
Additional information
No response

https://github.com/electron/forge/pull/3008


Add utils.graphQuery GQL raw query

import QuickNode, { gql } from '@quicknode/sdk';
const qn = new QuickNode.API({
  graphApiKey: 'my-api-key', // which is obtained by signing up on https://www.quicknode.com/signup
});
const query = gql`
  query ($contractAddress: String!) {
    ethereum {
      collection(contractAddress: $contractAddress) {
        name
        symbol
        totalSupply
      }
    }
  }
`;
const variables = {
  contractAddress: "0x2106c00ac7da0a3430ae667879139e832307aeaa"
}
qn.utils.graphQuery({ query, variables });
  .then((response) => console.log(response));

I like the intent of this. I'm not sure having it under qn.utils makes sense - it feels more of a first-class method. Maybe qn.graphApi.query()? In this sense qn.graphApi would be basically a proxy to the apollo client.
Not to add scope creep, but I think we should also support the standard React use cases like exporting useQuery for use in functional components.
Additionally, we could add some codegen to the SDK and get type safety on these. But I think that would be out of scope.

I like the intent of this. I'm not sure having it under qn.utils makes sense - it feels more of a first-class method. Maybe qn.graphApi.query()? In this sense qn.graphApi would be basically a proxy to the apollo client.

Gotcha, ya I don't love utils either, what about qn.graphApiClient.query or even qn.apolloClient.query? My concern with .graphApi is that it could make it less clear that the other methods like .nfts.doSomething are using the Graph API as well, we could be more explicit it's a client

Not to add scope creep, but I think we should also support the standard React use cases like exporting useQuery for use in functional components.

Good call, will take a look and follow up either here or in another PR 👀

Additionally, we could add some codegen to the SDK and get type safety on these. But I think that would be out of scope.

We do generate the codegen types, but I'm not sure how the type safety works for unknown queries? lmk if you have ideas

@danieljvdm I updated to .graphApiClient like we discussed. I also have follow-up tasks to look at the type policies and look at generating codegen types for user defined queries.


[api-major] When rendering is cancelled, always reject with RenderingCancelledException

/botio-linux preview

/botio test

Looks good!


(firefoxesr) Migrated to the core team

There was a request to update this package, so I suggested to move it to the core team packages repo.
https://github.com/chocolatey/chocolatey-package-requests/issues/91

@pascalberger I made the same changes to the firefox package regarding the description and release notes to be the same as FirefoxESR.
Please review them again please!

@AdmiringWorm LGTM. I'm just not sure if comm-central is the correct projectSourceUrl. Based on this site, mozilla-central is the main repo for recent Firefox and Gecko releases and comm-central for Thunderbird, Seamonkey and a mirror.

@pascalberger Ah yes, you're right.
I just re-used the project source url from the firefox package, guess I had changed that by an accident when working on the thunderbird package.


Add ssh options when wait_for_ssh

Run a container prepared for upstart or systemd system management
daemons could take a little bit more to spawn and setup the ssh service.
This patch adds the :ssh_retries and :ssh_timeout driver configuration
options to be passed through the ssh client in wait_for_ssh function. I
based my patch in the current kitchen_ec2 driver:
https://github.com/test-kitchen/kitchen-ec2/blob/master/lib/kitchen/driver/ec2.rb

I realised that the patch does not solve the problem. I'll will update and reopen if I find the solution.

The docker image I am using to test it is midonet/centos:centos6 NOTE: centos6 is the one that uses upstart. centos7 uses systemd and it is a completely different animal.

@jdevesa How long are you noticing that the connections are taking?
CC: https://github.com/test-kitchen/test-kitchen/pull/454

@ekrupnik problem is that the test_ssh method called by the wait method tests if the socket of the host port is open instead of test over the containers' ssh port (which is forwarded from the host port). Host port is immediately open, and it does not wait at all, whereas the ssh port of the container may take a while to be ready.
So instead of test if the socket is open, we need to do an actual ssh connection at 'wait_for_sshd' statement.
Does this explanation answer you question?

Heads up for everyone reading that I've been re-working the SSH-related code to be a full fledged plugin just like Drivers and Provisioners called a Transport. You can see a nearly completed version of the SSH Transport which will be included in the next release of Test Kitchen.
I'm hoping that this will properly resolve the race conditions when SSH boots and restarts. This involves a new #wait_until_ready method that Driver authors can use in their #create method, something like this:
class MyDriver

  def create(state)
    # create my instance
    state[:hostname] = "my_hostname"
    # other details

    transport.connection(state).wait_until_ready
  end
end

This will do something much more similar to @jdevesa's implementation here, i.e. invoking a command over SSH before calling the connection ready.

@fnichol tell me what to do :)

Ping @fnichol

@fnichol PING\n


[ 3p ] Create Service page: Create button

[x] Send request to POST
[x] Display message in case of failure
[x] Reroute to services if succesfully created

https://github.com/AdedayoOpeyemi/hotel_services_frontend/pull/11
Latest pull request, including field validations


Becoming a Custom Control provider

Hi,
I'm working at a leading Identity and access management company.
We are interested to become a 3rd Party MFA provider for Azure Custom Controls.
Could you please advise on the on-boarding process?
Thanks

@stardusttrans Thank you for your interest in Azure custom controls program related to 3rd Party MFA . We will have this checked internally and update this thread.

@stardusttrans We have put a hold on on-boarding any new 3rd party MFA providers pending a full process, legal, strategy and business review of the whole Custom Controls feature. Once we have a more established process in place, we will publish the same.

@stardusttrans We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.

Thanks for the update. Please  keep me updated once you have more established process.

Hello, are there any new re the on-boarding process for  3rd party MFA providers ?

hi @SaurabhSharma-MSFT , any feedback on that?


feat: Media Player

Not functional on this commit but all I have for today.

Tested.  while this doesn't error out it also doesn't show the sensor.  I am most likely missing a basic part of the data.  Only data so far setup is playing and unique ID.  May need a sensor name.


Upgrade ibc-go to v8.0.0

Summary

Upgrade ibc-go dependency to v8.0.0 when that is released.
Problem Definition

Proposal

For Admin Use

[ ] Not duplicate issue
[ ] Appropriate labels applied
[ ] Appropriate contributors tagged
[ ] Contributor assigned/self-assigned

This was done as part of our v0.50.x updates and is part of v1.19.0.


the meiliseach from dart dose not allow inserting elements with spaces?

Describe the bug
The meiliseach version 11.1 from Dart dose not allow entries with "space" between words.
To Reproduce
Steps to reproduce the behavior:
DART CODE:
import 'package:meilisearch/meilisearch.dart';

void main() async {
  var meiliseach = new MeiliSearchClient("http://<IP_ADDRESS>:7700");
  var o = await meiliseach.index("movies3").addDocuments([
    {"test_uuid": "Miss Piper", "some": "AAAA", "name": "vasile"}
  ]);
  print("UID: " + o.uid);
}

This code is going to spring UID been 1 (the first insert), but when I am going to http://<IP_ADDRESS>:7700 I am not able to see any new document been inserted. But if, instead of test_uuid which is "Miss Piper" I will use just "Miss" everything is going to work as expected, and I will see my document to my local dashboard. But this will show the UID been 2 (which based on my understanding means that the other document was inserted somehow but is not displayed...
Expected behavior
I would expect in both of these cases to insert my document, without any matter whether or not the name is "Miss Piper" or "Miss".
Meilisearch version:
Meilisearch: 1.1.1
Additional context
Additional information that may be relevant to the issue.
OS: Linux

UPDATE:
Als this code:
import 'package:meilisearch/meilisearch.dart';

void main() async {
  var meiliseach = new MeiliSearchClient("http://<IP_ADDRESS>:7700");
  var o = await meiliseach.index("movies3").addDocuments([
    {"test_uuid": "Miss Piper", "some": "AAAA", "name": "vasile"}
  ]);
  //do a search
  var search = await meiliseach.index("movies3").search("Miss");
  int a=1;
}

The insertion of that document does not give any error but the search is not going to give me that result either.

Hello @Vildnex. If you don't see results for the newly inserted document, I think there is a great chance the documentAdditionOrUpdate task was still in the queue when you made the search request. Did you check the task object to double-check if this task was completed before searching for the document?

I see, you were right, that was the problem, I was expecting to either meiliseach create an internal id automaticly if I want provide one, or to give me an exception when running the program. That's why I was consfuse, thanks for clarifing this ;)


Add support for observabilityPacks

Feature Description
We've started adding support in newrelic-cli for creating observability packs through the guided install flow. While it's done in the CLI, it'd be best to move that into the client and have the CLI utilize the client instead. Benefits would include the ability to generate code/types via tutone and taking advantage of other niceties the client offers (retries, etc.).
This request is to add support for:

Fetching Observability Packs
creating/installing Observability Packs
creating/installing individual Observability Pack components (dashboards / alerts / synthetics / etc.)

Will likely start work on this with MMF 3A


[SPARK-33875][SQL][FOLLOWUP] Handle the char/varchar column for Describe column command

What changes were proposed in this pull request?
Add handle column with char/varchar datatype for DESCRIBE tableName columnName command.
Why are the changes needed?
when create table with char/varchar column. we should show char/varchar instead of string for Describe table column command.
Does this PR introduce any user-facing change?
No
How was this patch tested?
extend testcase.

Test build #145674 has started for PR 34726 at commit c7733c5.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/50144/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/50144/

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

Test build #145674 has finished for PR 34726 at commit c7733c5.

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

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

Does this PR introduce any user-facing change?
No

Could you update this with before / after the PR? Thanks!

cc @cloud-fan

Test build #145688 has started for PR 34726 at commit ef74a06.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/50158/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/50158/

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

Test build #145688 has finished for PR 34726 at commit ef74a06.

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

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

Test build #145704 has started for PR 34726 at commit f794721.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/50174/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/50174/

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

thanks, merging to master!

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


New version coming?

Not really reporting an issue, but wondering about the general state of this library.
The readme mentions a new version (4.0) coming, but there has been very few commits over the last year. Is the library still actively being developed and will there be a version 4.0 ?

It seems to be on active development for 4.0.0. So yes there will be. See pull request #248

4.0 is coming. I spent most of last year away from my computer, so things were quiet for a while. Actively working on 4.0, which is pretty far along, but not yet api stable. There’s a backlog of api breaking feature requests I’m working through.
-dave

On Apr 12, 2019, at 1:07 AM, Daniel Lindberg<EMAIL_ADDRESS>wrote:
Not really reporting an issue, but wondering about the general state of this library.
The readme mentions a new version (4.0) coming, but there has been very few commits over the last year. Is the library still actively being developed and will there be a version 4.0 ?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Great to know, thanks!


Update to clarify the web admin user vs cluster user.

Thank you, @goller! I made two minor edits - if you're OK with those I'll go ahead and get this merged.

I'm ok with them for sure!


Upgrade to PHP 8.3.0RC3

cf https://www.php.net/archive/2023.php#2023-09-28-2

https://github.com/brefphp/aws-lambda-layers/pull/125 fixes the failing CI,

Sorry I missed that! https://github.com/brefphp/aws-lambda-layers/pull/125 Should fix the build, could you rebase?

I can send in a fresh PR that contains all 3 new PHP versions.


Discovery website broke.

Checklist

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

Verbose log

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '--ap-mso', 'Comcast_SSO', '--ap-username', 'PRIVATE', '--ap-password', 'PRIVATE', '--cookies', '/home/derek/Desktop/cookies.txt', '-f', 'bestvideo[ext!=webm]+bestaudio[ext!=webm]/best[ext!=webm]', 'https://www.discovery.com/tv-shows/naked-and-afraid/full-episodes/stalked-on-the-savannah?']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.07.16
[debug] Python version 3.6.8 (CPython) - Linux-4.18.0-15-generic-x86_64-with-Ubuntu-18.04-bionic
[debug] exe versions: none
[debug] Proxy map: {}
[Discovery] stalked-on-the-savannah: Downloading webpage
[Discovery] stalked-on-the-savannah: Downloading JSON metadata
ERROR: Access to the requested resource path is unauthorized: v1/streaming/video/5d10270285aeee22b7424a2a [The access token provided has expired]; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "./youtube-dl/youtube_dl/extractor/common.py", line 627, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "./youtube-dl/youtube_dl/YoutubeDL.py", line 2227, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python3.6/urllib/request.py", line 532, in open
    response = meth(req, response)
  File "/usr/lib/python3.6/urllib/request.py", line 642, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python3.6/urllib/request.py", line 570, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.6/urllib/request.py", line 650, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 401: Unauthorized

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./youtube-dl/youtube_dl/extractor/discovery.py", line 102, in _real_extract
    display_id, headers=headers)
  File "./youtube-dl/youtube_dl/extractor/common.py", line 892, in _download_json
    expected_status=expected_status)
  File "./youtube-dl/youtube_dl/extractor/common.py", line 870, in _download_json_handle
    expected_status=expected_status)
  File "./youtube-dl/youtube_dl/extractor/common.py", line 660, in _download_webpage_handle
    urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query, expected_status=expected_status)
  File "./youtube-dl/youtube_dl/extractor/common.py", line 645, in _request_webpage
    raise ExtractorError(errmsg, sys.exc_info()[2], cause=err)
youtube_dl.utils.ExtractorError: Unable to download JSON metadata: HTTP Error 401: Unauthorized (caused by <HTTPError 401: 'Unauthorized'>); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "./youtube-dl/youtube_dl/extractor/common.py", line 627, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "./youtube-dl/youtube_dl/YoutubeDL.py", line 2227, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python3.6/urllib/request.py", line 532, in open
    response = meth(req, response)
  File "/usr/lib/python3.6/urllib/request.py", line 642, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python3.6/urllib/request.py", line 570, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.6/urllib/request.py", line 650, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 401: Unauthorized

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./youtube-dl/youtube_dl/extractor/discovery.py", line 102, in _real_extract
    display_id, headers=headers)
  File "./youtube-dl/youtube_dl/extractor/common.py", line 892, in _download_json
    expected_status=expected_status)
  File "./youtube-dl/youtube_dl/extractor/common.py", line 870, in _download_json_handle
    expected_status=expected_status)
  File "./youtube-dl/youtube_dl/extractor/common.py", line 660, in _download_webpage_handle
    urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query, expected_status=expected_status)
  File "./youtube-dl/youtube_dl/extractor/common.py", line 645, in _request_webpage
    raise ExtractorError(errmsg, sys.exc_info()[2], cause=err)
youtube_dl.utils.ExtractorError: Unable to download JSON metadata: HTTP Error 401: Unauthorized (caused by <HTTPError 401: 'Unauthorized'>); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./youtube-dl/youtube_dl/YoutubeDL.py", line 796, in extract_info
    ie_result = ie.extract(url)
  File "./youtube-dl/youtube_dl/extractor/common.py", line 530, in extract
    ie_result = self._real_extract(url)
  File "./youtube-dl/youtube_dl/extractor/discovery.py", line 113, in _real_extract
    raise ExtractorError(e_description)
youtube_dl.utils.ExtractorError: Access to the requested resource path is unauthorized: v1/streaming/video/5d10270285aeee22b7424a2a [The access token provided has expired]; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Yesterday using 14 Jul source code issues:

With --cookies and --ap-mso:

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '--ap-mso', 'Comcast_SSO', '--ap-username', 'PRIVATE', '--ap-password', 'PRIVATE', '--cookies', '/home/derek/Desktop/cookies.txt', '-f', 'bestvideo[ext!=webm]+bestaudio[ext!=webm]/best[ext!=webm]', 'https://www.discovery.com/tv-shows/naked-and-afraid/full-episodes/stalked-on-the-savannah?']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.07.14
[debug] Python version 3.6.8 (CPython) - Linux-4.18.0-15-generic-x86_64-with-Ubuntu-18.04-bionic
[debug] exe versions: none
[debug] Proxy map: {}
[Discovery] stalked-on-the-savannah: Downloading webpage
[Discovery] stalked-on-the-savannah: Downloading JSON metadata
ERROR: This video is only available via cable service provider subscription that is not currently supported. You may want to use --cookies.
Traceback (most recent call last):
File "./youtube-dl/youtube_dl/extractor/common.py", line 627, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "./youtube-dl/youtube_dl/YoutubeDL.py", line 2227, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib/python3.6/urllib/request.py", line 532, in open
response = meth(req, response)
File "/usr/lib/python3.6/urllib/request.py", line 642, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python3.6/urllib/request.py", line 570, in error
return self._call_chain(*args)
File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain
result = func(*args)
File "/usr/lib/python3.6/urllib/request.py", line 650, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./youtube-dl/youtube_dl/extractor/discovery.py", line 102, in _real_extract
display_id, headers=headers)
File "./youtube-dl/youtube_dl/extractor/common.py", line 892, in _download_json
expected_status=expected_status)
File "./youtube-dl/youtube_dl/extractor/common.py", line 870, in _download_json_handle
expected_status=expected_status)
File "./youtube-dl/youtube_dl/extractor/common.py", line 660, in _download_webpage_handle
urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query, expected_status=expected_status)
File "./youtube-dl/youtube_dl/extractor/common.py", line 645, in _request_webpage
raise ExtractorError(errmsg, sys.exc_info()[2], cause=err)
youtube_dl.utils.ExtractorError: Unable to download JSON metadata: HTTP Error 403: Forbidden (caused by <HTTPError 403: 'Forbidden'>); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "./youtube-dl/youtube_dl/extractor/common.py", line 627, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "./youtube-dl/youtube_dl/YoutubeDL.py", line 2227, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib/python3.6/urllib/request.py", line 532, in open
response = meth(req, response)
File "/usr/lib/python3.6/urllib/request.py", line 642, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python3.6/urllib/request.py", line 570, in error
return self._call_chain(*args)
File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain
result = func(*args)
File "/usr/lib/python3.6/urllib/request.py", line 650, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./youtube-dl/youtube_dl/extractor/discovery.py", line 102, in _real_extract
display_id, headers=headers)
File "./youtube-dl/youtube_dl/extractor/common.py", line 892, in _download_json
expected_status=expected_status)
File "./youtube-dl/youtube_dl/extractor/common.py", line 870, in _download_json_handle
expected_status=expected_status)
File "./youtube-dl/youtube_dl/extractor/common.py", line 660, in _download_webpage_handle
urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query, expected_status=expected_status)
File "./youtube-dl/youtube_dl/extractor/common.py", line 645, in _request_webpage
raise ExtractorError(errmsg, sys.exc_info()[2], cause=err)
youtube_dl.utils.ExtractorError: Unable to download JSON metadata: HTTP Error 403: Forbidden (caused by <HTTPError 403: 'Forbidden'>); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./youtube-dl/youtube_dl/YoutubeDL.py", line 796, in extract_info
ie_result = ie.extract(url)
File "./youtube-dl/youtube_dl/extractor/common.py", line 530, in extract
ie_result = self._real_extract(url)
File "./youtube-dl/youtube_dl/extractor/discovery.py", line 112, in _real_extract
' is not currently supported. You may want to use --cookies.', expected=True)
youtube_dl.utils.ExtractorError: This video is only available via cable service provider subscription that is not currently supported. You may want to use --cookies.

With just --cookies:

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '--cookies', '/home/derek/Desktop/cookies.txt', '-f', 'bestvideo[ext!=webm]+bestaudio[ext!=webm]/best[ext!=webm]', 'https://www.discovery.com/tv-shows/naked-and-afraid/full-episodes/stalked-on-the-savannah?']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.07.14
[debug] Python version 3.6.8 (CPython) - Linux-4.18.0-15-generic-x86_64-with-Ubuntu-18.04-bionic
[debug] exe versions: none
[debug] Proxy map: {}
[Discovery] stalked-on-the-savannah: Downloading webpage
[Discovery] stalked-on-the-savannah: Downloading JSON metadata
ERROR: This video is only available via cable service provider subscription that is not currently supported. You may want to use --cookies.
Traceback (most recent call last):
File "./youtube-dl/youtube_dl/extractor/common.py", line 627, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "./youtube-dl/youtube_dl/YoutubeDL.py", line 2227, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib/python3.6/urllib/request.py", line 532, in open
response = meth(req, response)
File "/usr/lib/python3.6/urllib/request.py", line 642, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python3.6/urllib/request.py", line 570, in error
return self._call_chain(*args)
File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain
result = func(*args)
File "/usr/lib/python3.6/urllib/request.py", line 650, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./youtube-dl/youtube_dl/extractor/discovery.py", line 102, in _real_extract
display_id, headers=headers)
File "./youtube-dl/youtube_dl/extractor/common.py", line 892, in _download_json
expected_status=expected_status)
File "./youtube-dl/youtube_dl/extractor/common.py", line 870, in _download_json_handle
expected_status=expected_status)
File "./youtube-dl/youtube_dl/extractor/common.py", line 660, in _download_webpage_handle
urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query, expected_status=expected_status)
File "./youtube-dl/youtube_dl/extractor/common.py", line 645, in _request_webpage
raise ExtractorError(errmsg, sys.exc_info()[2], cause=err)
youtube_dl.utils.ExtractorError: Unable to download JSON metadata: HTTP Error 403: Forbidden (caused by <HTTPError 403: 'Forbidden'>); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "./youtube-dl/youtube_dl/extractor/common.py", line 627, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "./youtube-dl/youtube_dl/YoutubeDL.py", line 2227, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib/python3.6/urllib/request.py", line 532, in open
response = meth(req, response)
File "/usr/lib/python3.6/urllib/request.py", line 642, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python3.6/urllib/request.py", line 570, in error
return self._call_chain(*args)
File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain
result = func(*args)
File "/usr/lib/python3.6/urllib/request.py", line 650, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./youtube-dl/youtube_dl/extractor/discovery.py", line 102, in _real_extract
display_id, headers=headers)
File "./youtube-dl/youtube_dl/extractor/common.py", line 892, in _download_json
expected_status=expected_status)
File "./youtube-dl/youtube_dl/extractor/common.py", line 870, in _download_json_handle
expected_status=expected_status)
File "./youtube-dl/youtube_dl/extractor/common.py", line 660, in _download_webpage_handle
urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query, expected_status=expected_status)
File "./youtube-dl/youtube_dl/extractor/common.py", line 645, in _request_webpage
raise ExtractorError(errmsg, sys.exc_info()[2], cause=err)
youtube_dl.utils.ExtractorError: Unable to download JSON metadata: HTTP Error 403: Forbidden (caused by <HTTPError 403: 'Forbidden'>); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./youtube-dl/youtube_dl/YoutubeDL.py", line 796, in extract_info
ie_result = ie.extract(url)
File "./youtube-dl/youtube_dl/extractor/common.py", line 530, in extract
ie_result = self._real_extract(url)
File "./youtube-dl/youtube_dl/extractor/discovery.py", line 112, in _real_extract
' is not currently supported. You may want to use --cookies.', expected=True)
youtube_dl.utils.ExtractorError: This video is only available via cable service provider subscription that is not currently supported. You may want to use --cookies.

Description

My original, closed post, was for Discovery not working.  I used the binary and my Ubuntu distro had python 2.7.  I was told this was the problem.  I created a VM instance and have only python 3 installed.  It doesn't solve the issue.
I built this from source code 14 Jul - no dice.  Also, I made a code edit found in another thread for ap-mso which did not help either using 15 Jul source code.  (see https://github.com/bhamboss/youtube-dl/blob/patch-1/youtube_dl/extractor/adobepass.py)
I used today's source code for 16 Jul.  This did not work either.  I did not modify it for adobepass.py changes.  I re-saved the cookies.txt as well to be sure it was current.  Still nada.
Any advice would be appreciated.

You must provide credentials for any work on this.

Do you have any secure form to provide said provider data vs. posting it to the world to have my data?


Error with Compile-ObjectsInNavContainer command

Hi,
It's my first time that I'm working with NavContainerHelper, I'm trying to compile modified objects by executing the command : "Compile-ObjectsInNavContainer -containername navserver -SynchronizeSchemaChanges Yes" where navserver is my server name but I'm getting the error :
Compiling objects with compiled=0
Generating symbols for objects compiled
!
at Compile-NAVApplicationObject, C:\Program Files (x86)\Microsoft Dynamics NAV\140\RoleTailored Client\Microsoft.Dynamics.Nav.Ide.psm1: line 610
at , : line 30
!
At C:\Program Files\WindowsPowerShell\Modules\navcontainerhelper\<IP_ADDRESS>\ContainerHandling\Invoke-ScriptInNavContainer.ps1:30 char:13

        Invoke-Command -Session $session -ScriptBlock $scriptbloc ...

        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Compile-NAVApplicationObject
PSComputerName        : c56f86632ba94bba3fc81f41f5cb11e573b0d22d4b1ab8977e66dcf8e44b3df0

when Im restarting the navcontainer I get the warning : You are running a container which is 274 days old. it could be the origin of the problem ?

If you only get a warning - that's fine - you must have started the container using accept_outdated.
I am afraid you are hit by https://freddysblog.com/2020/02/14/hyperv-isolation-to-the-rescue/ - I saw another issue around writeerror, which was caused by this. You could uninstall the february security update and retry.

it works after uninstalling the february security, Thanks Freddydk.


List pub cache location: pub cache show

This issue was originally filed by<EMAIL_ADDRESS>
Hi,
At least on Windows, it's hard to see where the cache is located. Could we have an option to list the pub cache location(s)?
Regards,
Guillermo

This issue has been moved to dart-lang/pub#1107.


Update kindest/node

What this PR does / why we need it:
Update kindest/node to v1.28.0 to fix the version difference between client (1.28) and server (1.23) exceeds the supported minor version skew of +/-1

I think we need to update chaos mesh to the latest aka

curl -sSL https://mirrors.chaos-mesh.org/v2.6.2/install.sh | bash -s -- --local kind


Metadata improvements to library (in Zotero)

I've expanded the taxonomy of the Zotero library to include a vast set of subcategories for all major topics which will map to concepts in the wiki. I think this is a much better shape now.


use json in agg tests

switch to JSON in tests

Codecov Report

Merging #1998 (5a827fe) into main (e83abbf) will decrease coverage by 0.05%.
The diff coverage is 100.00%.

:exclamation: Current head 5a827fe differs from pull request most recent head 6bb2099. Consider uploading reports for the commit 6bb2099 to get more accurate results

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@            Coverage Diff             @@
##             main    #1998      +/-   ##
==========================================
- Coverage   94.49%   94.45%   -0.05%
==========================================
  Files         320      320
  Lines       59706    59226     -480
==========================================
- Hits        56420    55941     -479
+ Misses       3286     3285       -1

Impacted Files
Coverage Δ

src/aggregation/agg_req.rs
93.08% <100.00%> (-0.87%)
:arrow_down:

src/aggregation/agg_req_with_accessor.rs
98.57% <100.00%> (ø)

src/aggregation/agg_tests.rs
100.00% <100.00%> (ø)

src/aggregation/bucket/histogram/histogram.rs
99.46% <100.00%> (-0.07%)
:arrow_down:

src/aggregation/bucket/range.rs
97.38% <100.00%> (-0.20%)
:arrow_down:

src/aggregation/bucket/term_agg.rs
98.73% <100.00%> (-0.19%)
:arrow_down:

src/aggregation/intermediate_agg_result.rs
97.31% <100.00%> (ø)

src/aggregation/metric/stats.rs
97.66% <100.00%> (-0.05%)
:arrow_down:

src/aggregation/mod.rs
93.73% <100.00%> (ø)

src/fastfield/writer.rs
95.05% <100.00%> (ø)

... and 1 file with indirect coverage changes
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Vibration

It would be nice to get some sort of haptic feedback. In particular, I'd like to have a sense of how far a joystick is from the centre without looking at the screen.
API docs
There don't appear to be existing Elm bindings.

5a09792 adds some of the code which would be required for this (though it doesn't currently work on Firefox, probably due to permissions).


Reduce allocations on code_table construction

Remove use of std::priority_queue on construction of a code_table.
Construction no longer creates a std::vector for each symbol. Instead,
the Huffman tree is created in-place.
In addition, this commit also:

adds the [[nodiscard]] attribute to functions without side effects
simplifies the code_table CTAD constraints
requires a Symbol to be totally ordered

Change-Id: Ica17732f060dd101084feca36229c6496bc95cb1

Seems like the previous PR got closed on accident.
Here's the benchmark on my machine:
gpu-deflate on  HEAD (d44ffea) on ☁  (us-east-1)
❯ bazel run //src/test:huffman_bench -c opt --noannounce_rc
INFO: Analyzed target //src/test:huffman_bench (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
INFO: From BazelWorkspaceStatusAction stable-status.txt:
fatal: ref HEAD is not a symbolic ref
Target //src/test:huffman_bench up-to-date:
  bazel-bin/src/test/huffman_bench
INFO: Elapsed time: 1.295s, Critical Path: 1.25s
INFO: 5 processes: 1 internal, 4 linux-sandbox.
INFO: Build completed successfully, 5 total actions
INFO: Running command line: bazel-bin/src/test/huffman_bench
2023-05-30T23:53:28-07:00
Running /home/oliver/.cache/bazel/_bazel_oliver/adb62031b64cc76568fe096c0cc5a5f9/execroot/__main__/bazel-out/k8-opt/bin/src/test/huffman_bench
Run on (8 X 2632.63 MHz CPU s)
CPU Caches:
  L1 Data 48 KiB (x4)
  L1 Instruction 32 KiB (x4)
  L2 Unified 1280 KiB (x4)
  L3 Unified 12288 KiB (x1)
Load Average: 1.14, 1.18, 0.91
-------------------------------------------------------
Benchmark             Time             CPU   Iterations
-------------------------------------------------------
BM_CodeTable        444 ns          443 ns      1609469 d44ffea96815292b517603334895e58c2cd9ea62

gpu-deflate on  HEAD (d898b87) on ☁  (us-east-1)
❯ bazel run //src/test:huffman_bench -c opt --noannounce_rc
INFO: Analyzed target //src/test:huffman_bench (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
INFO: From BazelWorkspaceStatusAction stable-status.txt:
fatal: ref HEAD is not a symbolic ref
Target //src/test:huffman_bench up-to-date:
  bazel-bin/src/test/huffman_bench
INFO: Elapsed time: 0.050s, Critical Path: 0.01s
INFO: 1 process: 1 internal.
INFO: Build completed successfully, 1 total action
INFO: Running command line: bazel-bin/src/test/huffman_bench
2023-05-30T23:52:21-07:00
Running /home/oliver/.cache/bazel/_bazel_oliver/adb62031b64cc76568fe096c0cc5a5f9/execroot/__main__/bazel-out/k8-opt/bin/src/test/huffman_bench
Run on (8 X 3520.17 MHz CPU s)
CPU Caches:
  L1 Data 48 KiB (x4)
  L1 Instruction 32 KiB (x4)
  L2 Unified 1280 KiB (x4)
  L3 Unified 12288 KiB (x1)
Load Average: 1.09, 1.17, 0.89
-------------------------------------------------------
Benchmark             Time             CPU   Iterations
-------------------------------------------------------
BM_CodeTable       59.2 ns         59.2 ns     12382270 d898b8722e829f9df0ae4f9daeda0cb485907aba


Cherry pick Fix decimal repr in parquet schema printer to active_release

Automatic cherry-pick of 1a03358

Originally appeared in https://github.com/apache/arrow-rs/pull/721: Fix decimal repr in parquet schema printer

Codecov Report

Merging #752 (c61c3e5) into active_release (9f7707c) will increase coverage by 0.01%.
The diff coverage is 83.33%.

@@                Coverage Diff                 @@
##           active_release     #752      +/-   ##
==================================================
+ Coverage           82.45%   82.47%   +0.01%
==================================================
  Files                 167      167
  Lines               46810    46818       +8
==================================================
+ Hits                38598    38612      +14
+ Misses               8212     8206       -6

Impacted Files
Coverage Δ

parquet/src/schema/printer.rs
74.65% <83.33%> (+1.95%)
:arrow_up:

parquet/src/encodings/encoding.rs
94.67% <0.00%> (+0.19%)
:arrow_up:

Continue to review full report at Codecov.

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


Function showModalBottomSheet complain 'Scaffold.of() called with a context that does not contain a Scaffold.'.

Problem
When calling Scaffold.of(context).showSnackBar in the builder method of showModalBottomSheet, got error 'Scaffold.of() called with a context that does not contain a Scaffold.'. There is already have a Scaffold in the outside.
Code
class ProfileScreen extends StatelessWidget {
  ProfileScreen({
    Key key,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('个人资料'),
      ),
      body: _Body(
        store: StoreProvider.of<AppState>(context),
      ),
    );
  }
}

class _Body extends StatefulWidget {
  final Store<AppState> store;

  _Body({
    Key key,
    this.store,
  }) : super(key: key);

  @override
  State<StatefulWidget> createState() => _BodyState();
}

class _BodyState extends State<_Body> {
  ...

  @override
  Widget build(BuildContext context) {
    ...
    Container(
          margin: EdgeInsets.only(right: 5.0),
          child: RaisedButton(
            onPressed: () => showModalBottomSheet<String>(
                  context: context,
                  builder: (context) => Column(
                        mainAxisSize: MainAxisSize.min,
                        children: <Widget>[
                          ListTile(
                            title: Text('一个月'),
                            onTap: () => widget.store.dispatch(
                                  accountOpenVIPActionCreator(
                                    styleCode: '1-month',
                                    amount: 1,
                                    onSucceed: (orderId) {
                                      Navigator.of(context).pop();
                                      Navigator.of(context).push(
                                        MaterialPageRoute(
                                          builder: (context) => OrderScreen(
                                                orderId: orderId,
                                              ),
                                        ),
                                      );
                                    },
                                    onFailed: (notice) {
                                      Navigator.of(context).pop();
                                      Scaffold.of(context)
                                          .showSnackBar(SnackBar(
                                        content: Text(notice.message),
                                        duration: notice.duration,
                                      ));
                                    },
                                  ),
                                ),
                          ),
                        ],
                      ),
                ),
            child: Text(
              '续费',
              style: TextStyle(
                color: TblTheme.whiteLight,
              ),
            ),
          ),
        ),
    ...
  }
}

Env
$ flutter doctor -v
[✓] Flutter (Channel beta, v0.9.4, on Mac OS X 10.14 18A391, locale zh-Hans-CN)
    • Flutter version 0.9.4 at /Users/jagger/flutter
    • Framework revision f37c235c32 (3 weeks ago), 2018-09-25 17:45:40 -0400
    • Engine revision 74625aed32
    • Dart version 2.1.0-dev.5.0.flutter-a2eb050044

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at /Users/jagger/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-27, build-tools 27.0.3
    • ANDROID_HOME = /Users/jagger/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.0, Build version 10A255
    • ios-deploy 1.9.2
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 27.1.1
    • Dart plugin version 173.4700
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

[✓] VS Code (version 1.28.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 2.19.0

[✓] Connected devices (1 available)
    • iPhone XS Max • D5E1DE7E-3E27-44D7-92C2-EB6D9928412C • ios • iOS 12.0 (simulator)

• No issues found!

You can pass a GlobalKey to Scaffold to get a reference to it from everywhere.
modalBottomSheet (modal) is not rendered as child of Scaffold and therefore searching the contexts parents doesn't find one.
Please consider asking support questions in one of the other channels listed at http://flutter.io/support .

Thanks!  Before submit this issue, I've already read the docs and searched by google, but not get the right answer.

Got it! The context param of builder method of showModalBottomSheet hidden the outside context with Scaffold. Change param name to c or any other than context will fix this problem.

This exception happens because you are using the context of the widget that instantiated Scaffold. Not the context of a child of Scaffold.
You can solve this by just using a different context :
Find more At Here https://icetutor.com/question/scaffold-of-called-with-a-context-that-does-not-contain-a-scaffold

Already [Solved] Scaffold.of() called with a context that does not contain a Scaffold


Use cisagov/session-manager-tf-module to configure SSM Session Manager

🗣 Description
This pull request makes use of cisagov/session-manager-tf-module to set up access for and configure SSM Session Manager.
💭 Motivation and context
We want to:

Stop using ssh tunneling over SSM
Start logging SSM sessions
DRY out some repeated code

🧪 Testing
These changes have been successfully applied to the staging COOL environment.
✅ Pre-approval checklist

[x] This PR has an informative and human-readable title.
[x] Changes are limited to a single goal - eschew scope creep!
[ ] All future TODOs are captured in issues, which are referenced in code comments.
[x] All relevant type-of-change labels have been added.
[x] I have read the CONTRIBUTING document.
[x] These code changes follow cisagov code standards.
[x] All relevant repo and/or project documentation has been updated to reflect the changes in this PR.
[x] All new and existing tests pass.

✅ Pre-merge checklist

[ ] Revert dependencies to default branches.

Go forth and conquer the rest of the accounts in this repo.

Given that we decided to only add this jazz to accounts that actually have EC2 instances running in them, no other accounts require these changes.  One could argue for adding them to the dynamic accounts, but given the aforementioned decision it makes more sense to add them if the dynamic account will actually contain EC2 instances; for example, I will add these changes to the cisagov/cool-assessment-terraform repository.


Avoid branching in BasicBlock and Bottleneck

Avoid branching during forward pass in BasicBlock and Bottleneck block for better performance.
Completely backwards compatible; downsampled = nn.Identity(x) is equivalent to downsampled = x
Should be always more performant, unless nn.Identity adds some kind of penalty during backprop.

Thanks for the PR @kevinMEH.
I suspect the performance gain coming from removing a single if in the forward pass of resnet would be minimal. I'm interested in looking at some benchmark results, if you have any.

Every single block layer has an if removed. I think that the performance gain is pretty substantial, however as of right now I cannot spare any GPU time to test it. I will test it once I regain access to a GPU.

Thanks, let's wait for benchmarks before moving forward with this then.
We should also remember that this if condition is executed on the CPU, which (hopefully) is running way ahead of the GPU. So, evaluating that if condition is not only crazy cheap but probably doesn't even impact any of the time spent on the GPU - which is what dictates the perf here.

Forgot to mention this but I tested a while back and there weren't any discernible difference between using if and using a pass through layer, so I will close this.


HEAD is now at 0d81858... go1.7
$ cd src
$ ./all.bash
...
--- FAIL: TestTransportEventTraceRealDNS (0.06s)
       	transport_test.go:3386: expected error during DNS lookup
FAIL
FAIL   	net/http       	10.854s

What did you expect to see?

TestTransportEventTraceRealDNS should pass on a clean checkout of go1.7

What did you see instead?

TestTransportEventTraceRealDNS fails.

This is basically a dup of #16716.
The Go test suite assumes you have working DNS.
I suppose we could make that test only run in full mode and on builders.


Changed tests mock patches to ensure full code coverage.

Closes #37.
Changed mock patch to use the builtin input to ensure full code coverage. It was previously bypassing the try-except statement that would be typecasting and evaluating the user's input.
Changed the test test_double_user_input's input from 2.0 to 3.5 to ensure that the double entered does not get rounded up, and evaluates through.

Codecov Report

Merging #40 into master will increase coverage by 1.04%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           master       #40      +/-   ##
===========================================
+ Coverage   98.95%   100.00%   +1.04%
===========================================
  Files          23        23
  Lines         479       479
===========================================
+ Hits          474       479       +5
+ Misses          5         0       -5

Flag
Coverage Δ

#unittests
100.00% <100.00%> (+1.04%)
:arrow_up:

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

Impacted Files
Coverage Δ

math/acnh/test_wedding_items.py
100.00% <100.00%> (ø)

math/acnh/best_wedding_items.py
100.00% <0.00%> (+26.31%)
:arrow_up:

Continue to review full report at Codecov.

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


C95509: Escaping "|"

Localization team has reported source content issue that causes localized version to have broken/different format compared to en-us version.

@v-makoud Can you provide the link to the live topic that has bad rendering?
Because that vertical bar is inline code, it's rendering ok here: https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/proxy-load-balancer?view=aspnetcore-2.2#forwarded-headers-middleware-options
If we do need to apply a fix, I recommend a different approach that changes the character outside of our build system (&vert with  tags):

ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto

#sign-off

Do you have the link to the localized topic that was reported by the reader?

@v-makoud Let's not do this unless we take a look at the localized topic and see how it breaks there. This change shouldn't be necessary ... in theory. :smile: lol
Let me know if you get the link to the localized topic so that we can take a closer look. If we need to do something, we can re-open this PR and continue.


Write CBaduk post

A couple of people (AMJ, KillerDucky, TheOperation) know about the site but I hope to make a splash with that high quality first post :)

Done :)


Does this algorithm library support multi-key homomorphic encryption?

Does this algorithm library support multi-key homomorphic encryption?

It does with CKKS, you can see the files under the examples folder for
reference
On Sun, Jun 2, 2024, 11:58 scpy007 @.***> wrote:

Does this algorithm library support multi-key homomorphic encryption?
—
Reply to this email directly, view it on GitHub
https://github.com/Prathit-tech/CKKS--MKFHE/issues/1, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AQEBQYJVEJQXRJXRZRWUUV3ZFK3QJAVCNFSM6AAAAABIUZK2H6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGMZDSNBZGYYDGMI
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

OK! Thank you very much!


Fix for article sponsored bottom ads

Closes lonelyplanet/destinations-next#773.
Move template.
Stop removing ad if not loaded.

:+1:


ENH: adding view type annotation

Note that this just adds the annotations - we're not doing anything with the view types yet.

Function annotations will open all new exciting doors for obfuscating code. Absolutely in support of using them, but just as an example of some of the interesting things that can be done:
09:52:26 (daniel@sandbar):diversity> a = np.arange(5)

09:52:32 (daniel@sandbar):diversity> def foo() -> a:
    return "asd"
   ....:

09:52:37 (daniel@sandbar):diversity> foo()
Out[13]: 'asd'

09:52:39 (daniel@sandbar):diversity> foo.__annotations__
Out[14]: {'return': array([0, 1, 2, 3, 4])}

09:52:42 (daniel@sandbar):diversity> def bar() -> foo:
   ....:     return 123
   ....:

09:54:02 (daniel@sandbar):diversity> bar()
Out[16]: 123

09:54:03 (daniel@sandbar):diversity> bar.__annotations__
Out[17]: {'return': <function __main__.foo>}

It's a mix of awesome and scary.

@wasade Ideally, the annotations will be MyPy compatible, the things annotated will be a "view", so we could probably check to see if there even exists a registered view, throwing an error otherwise. (These are independent from the semantic types)


同步远程主干代码

 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.You have signed the CLA already but the status is still pending? Let us recheck it.


Exclude outbrain in certain pages

I don't think these pages should be serving ads.
Close if disagree :)

Boo ... doesn't work if the script is delayed.


Use Jenkins 2.7.3 LTS

Jenkins 2.7.3 long term support was released 30 Aug 2016, ready to use.

??? you already submitted #340


Run Rustfmt

Well, I had this cloned already, so why not call rustfmt on it?

:tada:

Oh, one more thing… :confetti_ball: