OpenVPN connection is not established properly

Is this a request for help?: Yes

Is this a BUG REPORT or FEATURE REQUEST? (choose one): No

Version of Helm and Kubernetes: Kubernetes 1.10.1
Helm 2.9.1
What happened: I am not able to connect kubernetes services using OpenVPN kubernetes chart.
What you expected to happen: On my local pc i can access kubernetes services locally using VPN
How to reproduce it (as minimally and precisely as possible): Deploy openVPN using helm and generate key to connect to the cluster.
Anything else we need to know:
The issue is i am not able to call kubernetes services locally using VPN and also my internet is stopped working after connecting to VPN.
Here are some routes logs:
With VPN connection
/ # nslookup google.com
DNS request timed out.
timeout was 2 seconds.
Server: UnKnown
Address: <IP_ADDRESS> {{{ kube-dns IP address}}
DNS request timed out.
timeout was 2 seconds.
Without VPN connection
/ # nslookup google.com
Server: UnKnown
Address: <IP_ADDRESS>
Non-authoritative answer:
Name: google.com
Addresses: 2404:6800:4009:809::200e
<IP_ADDRESS>
In Kubernetes OpenVPN pod console
/ # nslookup google.com
nslookup: can't resolve '(null)': Name does not resolve
Name: google.com
Address 1: <IP_ADDRESS> qo-in-f101.1e100.net
Address 2: <IP_ADDRESS> qo-in-f100.1e100.net
Address 3: <IP_ADDRESS> qo-in-f113.1e100.net
Address 4: <IP_ADDRESS> qo-in-f102.1e100.net
Address 5: <IP_ADDRESS> qo-in-f139.1e100.net
Address 6: <IP_ADDRESS> qo-in-f138.1e100.net
Address 7: 2607:f8b0:400d:c01::8b qo-in-x8b.1e100.net
/ # nslookup kubernetes.default.svc.cluster.local
nslookup: can't resolve '(null)': Name does not resolve
Name: kubernetes.default.svc.cluster.local
Address 1: <IP_ADDRESS> kubernetes.default.svc.cluster.local
It can resolve my service DNS and give my IP address of that service but not able to find nameserver as kube-dns.kube-system.svc.cluster.local
Route of OpenVPN pod console
/ # iproute
default via <IP_ADDRESS> dev eth0
<IP_ADDRESS>/16 via <IP_ADDRESS> dev tun0
<IP_ADDRESS> dev tun0 src <IP_ADDRESS>
<IP_ADDRESS> dev eth0

What version of this chart are you using?

@jmymy  I am using official kubernetes chart. https://github.com/kubernetes/charts/tree/master/stable/openvpn

I have the same problem. @kc004 could you fix it in the meantime?
@jmymy can I provide you any log outputs?
I am also running Kubernets 1.10.1, using RKE for deployment.
From my local maschine I can ping the Openvpn pod, the <IP_ADDRESS> and the 10.42.. address of the openvpn pod. But services or pods beside are not working.
ping <IP_ADDRESS>
PING <IP_ADDRESS> (<IP_ADDRESS>): 56 data bytes
64 bytes from <IP_ADDRESS>: icmp_seq=0 ttl=64 time=23.704 ms
64 bytes from <IP_ADDRESS>: icmp_seq=1 ttl=64 time=23.684 ms
ping <IP_ADDRESS>
PING <IP_ADDRESS> (<IP_ADDRESS>): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1

@jannishuebl still problem exist.

Can you provide your openvpn server and client config please?

Im having the same problem, Im trying to provide access outside of the kubernetes network.
We have an aws VPC VPN connection connected for secure access to a remote API we need to be able to develop against that ip which is propagated into our VPC, we also need to be able to access the internet while on the VPN which is currently not working either
openvpn.conf
server <IP_ADDRESS> <IP_ADDRESS>
verb 3
key /etc/openvpn/certs/pki/private/server.key
ca /etc/openvpn/certs/pki/ca.crt
cert /etc/openvpn/certs/pki/issued/server.crt
dh /etc/openvpn/certs/pki/dh.pem

key-direction 0
keepalive 10 60
persist-key
persist-tun

proto tcp
port  443
dev tun0
status /tmp/openvpn-status.log

user nobody
group nogroup
duplicate-cn

push "route NETWORK <IP_ADDRESS>"
push "route "<IP_ADDRESS>" <IP_ADDRESS>"
push "route "<IP_ADDRESS>" <IP_ADDRESS>"
OVPN_K8S_SEARCH
push "dhcp-option DNS OVPN_K8S_DNS"

configure.sh
#!/bin/sh
/etc/openvpn/setup/setup-certs.sh
iptables -t nat -A POSTROUTING -s <IP_ADDRESS>/<IP_ADDRESS> -o eth0 -j MASQUERADE
iptables -t nat -A POSTROUTING -s <IP_ADDRESS>/<IP_ADDRESS> -o eth0 -j MASQUERADE
iptables -t nat -A POSTROUTING -s <IP_ADDRESS>/<IP_ADDRESS> -o eth0 -j MASQUERADE
mkdir -p /dev/net
if [ ! -c /dev/net/tun ]; then
    mknod /dev/net/tun c 10 200
fi

if [ "$DEBUG" == "1" ]; then
    echo ========== ${OVPN_CONFIG} ==========
    cat "${OVPN_CONFIG}"
    echo ====================================
fi
IP=$(ip route get <IP_ADDRESS> | awk '/<IP_ADDRESS>/ {print $NF}')
BASEIP=`echo $IP | cut -d"." -f1-3`
NETWORK=`echo $BASEIP".0"`
DNS=$(cat /etc/resolv.conf | grep -v '^#' | grep nameserver | awk '{print $2}')
SEARCH=$(cat /etc/resolv.conf | grep -v '^#' | grep search | awk '{$1=""; print $0}')
FORMATTED_SEARCH=""
for DOMAIN in $SEARCH; do
  FORMATTED_SEARCH="${FORMATTED_SEARCH}push \"dhcp-option DOMAIN-SEARCH ${DOMAIN}\"\n"
done
cp -f /etc/openvpn/setup/openvpn.conf /etc/openvpn/
sed 's|OVPN_K8S_SEARCH|'"${FORMATTED_SEARCH}"'|' -i /etc/openvpn/openvpn.conf
sed 's|OVPN_K8S_DNS|'"${DNS}"'|' -i /etc/openvpn/openvpn.conf
sed 's|NETWORK|'"${NETWORK}"'|' -i /etc/openvpn/openvpn.conf

openvpn --config /etc/openvpn/openvpn.conf

Did you use custom values in the helm chart? i.e. values.yaml?

@jmymy Yes and I also manually updated the configmap and restarted the container, thats how I added the extra routes, I also manually edited the configure.sh entry in the configmap

i have a sneaky suspicion it might need some custom iptable rules and ip forwarding e.g. https://www.linode.com/docs/networking/vpn/tunnel-your-internet-traffic-through-an-openvpn-server/ i toyed with it a little with no luck though

I have the same problem using it.
Running on core OS with canal CNI, no network policies activated.
I just tweaked the OVPN_K8S_POD_NETWORK and OVPN_K8S_POD_SUBNET=<IP_ADDRESS> to match with my installation.
From the pod I can access internet / services but when connected with the openvpn client I can't reach anything at all.
any help appreciated

same issue, did someone solve this issue?

I was hoping NET_ADMIN would be enough to handle this but it seems not.
I managed a workaround by enabling ip_forward=1 in sysctl.
I don't know if it's the cleanest method, if it's related to CoreOS or Kubernetes in general but it's a real pain to configure because you need to whitelist the sysctl's on each node..
Again, there probably is a better way to do things but at least I got it to work. On GKE it seems ip_forward is already set to 1 so it's not a problem.
hope it helps !

@neyz - Where did you set the IP forwarding, within the POD itself? - Thanks

I had the same problem and fixed it with a temporary workaround (privilleged container, setting sysctl ip_forward = 1 within the container. related to this issue https://github.com/kubernetes/kops/issues/6068. Maybe this could help with a more structural solution:  https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/#setting-sysctls-for-a-pod

I'm about to submit a pull request to add this issue (and a few other changes) to the openvpn chart readme.
The proper fix seems different depending on what was used to create your kubernetes instance.  A quick-ish hack/workaround that works on my RKE environment (and hopefully others):
The following assumes you have ssh access to the nodes.  After deploying the openvpn chart, run the following
Find which nodes openvpn was deployed to:
kubectl get pod -o wide

For each of those nodes run (NOTE: this is calling sudo, carefully review before you run it):
ssh -t <NODE> 'sudo nsenter -t $(docker inspect --format {{.State.Pid}} $(docker ps -f ''name=k8s_openvpn'' -q))' -n sysctl -w net.ipv4.ip_forward=1

I was hoping NET_ADMIN would be enough to handle this but it seems not.
I managed a workaround by enabling ip_forward=1 in sysctl.
I don't know if it's the cleanest method, if it's related to CoreOS or Kubernetes in general but it's a real pain to configure because you need to whitelist the sysctl's on each node..
Again, there probably is a better way to do things but at least I got it to work. On GKE it seems ip_forward is already set to 1 so it's not a problem.
hope it helps !

Did anything change in that matter? For me ip_forward seems to do a trick aswell, however it looks like it requires aswell for pod to have privilaged securityContext :/

I just ran into this issue as well. I can bash into the pod and connect to the whole network, all the routes are in place, but I cannot contact any of the services from the client (it does connect to openvpn fine).
I am running Kubernetes on Google Cloud. I have 3 clusters and the other 2 work fine, but this one did not. It is the newest, so perhaps it's some new security settting?
I set the pod to privileged and changed net.ipv4.ip_forward to 1 and then it started working. So that workaround does the trick. The question, however, is now how I can set this in the deployment yaml. I tried the following on the container spec;
        securityContext:
          privileged: true
          sysctls:
            - name: net.ipv4.ip_forward
              value: 1

but when purging and reinstalling with my custom chart, net.ipv4.ip_forward remains 0 until I set it manually.
Has anyone managed to toggle this from the deployment directly?


modulesync 7.1.0

modulesync 4.2.0

I made some progress but not sure why this is failing now... it looks like jira does not run properly with the default values
Failures:

  1) jira postgresql installs with defaults
     Failure/Error: apply_manifest(pp, catch_failures: true)
     Beaker::Host::CommandFailure:
       Host 'centos7-64-puppet7.example.com' exited with 6 running:
        puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_160506965.pp.tPW3Bt
       Last 10 lines of output were:
       	Notice: /Stage[main]/Jira::Service/Systemd::Unit_file[jira.service]/File[/etc/systemd/system/jira.service]/ensure: defined content as '{sha256}33c712c574c81e521e048995723cf4c53fa59f46020ff96786ad4c6714d20207'
       	Info: /Stage[main]/Jira::Service/Systemd::Unit_file[jira.service]/File[/etc/systemd/system/jira.service]: Scheduling refresh of Systemd::Daemon_reload[jira.service]
       	Info: Systemd::Daemon_reload[jira.service]: Scheduling refresh of Exec[systemd-jira.service-systemctl-daemon-reload]
       	Notice: /Stage[main]/Jira::Service/Systemd::Unit_file[jira.service]/Systemd::Daemon_reload[jira.service]/Exec[systemd-jira.service-systemctl-daemon-reload]: Triggered 'refresh' from 1 event
       	Info: Systemd::Unit_file[jira.service]: Scheduling refresh of Service[jira]
       	Notice: /Stage[main]/Jira::Service/Service[jira]/ensure: ensure changed 'stopped' to 'running'
       	Info: /Stage[main]/Jira::Service/Service[jira]: Unscheduling refresh on Service[jira]
       	Info: Stage[main]: Unscheduling all events on Stage[main]
       	Info: Creating state file /opt/puppetlabs/puppet/cache/state/state.yaml
       	Notice: Applied catalog in 33.80 seconds

     # ./vendor/bundle/ruby/3.0.0/gems/beaker-5.5.0/lib/beaker/host.rb:351:in `exec'
     # ./vendor/bundle/ruby/3.0.0/gems/beaker-5.5.0/lib/beaker/dsl/helpers/host_helpers.rb:80:in `block in on'
     # ./vendor/bundle/ruby/3.0.0/gems/beaker-5.5.0/lib/beaker/shared/host_manager.rb:125:in `run_block_on'
     # ./vendor/bundle/ruby/3.0.0/gems/beaker-5.5.0/lib/beaker/dsl/patterns.rb:36:in `block_on'
     # ./vendor/bundle/ruby/3.0.0/gems/beaker-5.5.0/lib/beaker/dsl/helpers/host_helpers.rb:62:in `on'
     # ./vendor/bundle/ruby/3.0.0/gems/beaker_puppet_helpers-1.2.0/lib/beaker_puppet_helpers/dsl.rb:180:in `block in apply_manifest_on'
     # ./vendor/bundle/ruby/3.0.0/gems/beaker-5.5.0/lib/beaker/shared/host_manager.rb:125:in `run_block_on'
     # ./vendor/bundle/ruby/3.0.0/gems/beaker-5.5.0/lib/beaker/dsl/patterns.rb:36:in `block_on'
     # ./vendor/bundle/ruby/3.0.0/gems/beaker_puppet_helpers-1.2.0/lib/beaker_puppet_helpers/dsl.rb:110:in `apply_manifest_on'
     # ./vendor/bundle/ruby/3.0.0/gems/beaker_puppet_helpers-1.2.0/lib/beaker_puppet_helpers/dsl.rb:193:in `apply_manifest'
     # ./spec/acceptance/default_parameters_spec.rb:51:in `block (2 levels) in <top (required)>'

  2) jira postgresql
     Failure/Error:
       expect(user('jira')).to exist.
         and belong_to_group 'jira'.
           and have_login_shell '/bin/true'
     NoMethodError:
       undefined method `and' for "jira":String

     # ./spec/acceptance/default_parameters_spec.rb:81:in `block (2 levels) in <top (required)>'

  3) jira postgresql Port "8080" is expected to be listening
     Failure/Error: it { is_expected.to be_listening }
       expected Port "8080" to be listening

     # ./spec/acceptance/default_parameters_spec.rb:71:in `block (3 levels) in <top (required)>'

  4) jira postgresql Command "wget -q --tries=24 --retry-connrefused --read-timeout=10 -O- localhost:8080" stdout is expected to include "8.16.0"
     Failure/Error: its(:stdout) { is_expected.to include('8.16.0') }
       expected "" to include "8.16.0"

     # ./spec/acceptance/default_parameters_spec.rb:86:in `block (3 levels) in <top (required)>'

  5) jira mysql
     Failure/Error:
       expect(user('jira')).to exist.
         and belong_to_group 'jira'.
           and have_login_shell '/bin/true'
     NoMethodError:
       undefined method `and' for "jira":String

     # ./spec/acceptance/mysql_spec.rb:90:in `block (2 levels) in <top (required)>'


staticjinja: 1.0.1 -> 2.1.0, add version test

Motivation for this change
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[x] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes

[x] (Package updates) Added a release notes entry if the change is major or breaking
[x] (Module updates) Added a release notes entry if the change is significant
[x] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 126690 at 1b2678e6 run on aarch64-linux 1

2 packages built successfully:

staticjinja (python38Packages.staticjinja)
python39Packages.staticjinja


Max-width autocomplete does max-height instead

VSCode Version: 1.3.1
OS Version: Windows 10 build 10586.494

Steps to Reproduce:

In a sass file, type 'maxw' and press enter
Snippet expands to max-height instead of max width

As I understand it, you use Sass with sass-intended extension. This error does not refer to the editor. Please create an issue in the plugin repository.
Error this: https://github.com/robinbentley/vscode-sass-indented/blob/master/snippets/sass-indented.json#L507-L514

Thanks! Can close


Generic Associated Types in Database, replacing HasValueRef, HasArguments, HasStatement

replaces the associated types from the generic traits HasValueRef<'r>, HasArguments<'q> and HasStatement<'q> with generic associated types in Database, as described in the (now removed) comment:

The upcoming Rust feature, [Generic Associated Types], should obviate
the need for this trait.

This is obviously a breaking change.
GATs have been stable since Rust 1.65

This is a refactor I've been dreading having to do, I really appreciate it.

@nitn3lav can you rebase and fix the conflict? We're ready to merge breaking changes now.


What happens if you want to download reports but some of the runs haven't finished?

Deal with edge cases

It will just download an empty file


Update CODEOWNERS

Summary

Closes #
Deployment Link

https://terra-framework-deployed-pr-#.herokuapp.com/
Testing

Additional Details

Thank you for contributing to Terra.
@cerner/terra

Closed this as it's out of date. See #1515


[BUG]Cosmos client throwing 409 on upsert

Describe the bug
Attempting an upsert on
compile "com.microsoft.azure:azure-documentdb:2.4+"
and I'm getting a 409 which goes against the upsert contract (meaning that if there is a conflict I clearly want to update that row).
Exception or Stack Trace
com.microsoft.azure.documentdb.DocumentClientException: Entity with the specified id already exists in the system.,
RequestStartTime: 2020-04-29T13:58:13.5298355Z, RequestEndTime: 2020-04-29T13:58:13.5298355Z,  Number of regions attempted:1
ResponseTime: 2020-04-29T13:58:13.5298355Z, StoreResult: StorePhysicalAddress: rntbd://dm5prdddc01-docdb-1.documents.azure.com:14128/apps/a8955ea6-38e2-4f3d-b7ae-bcbfaea92dce/services/730de375-bd04-42fc-a7f3-94eb34626553/partitions/4afd492a-3c42-4014-a020-0021600b6d24/replicas/132305339029504459p/, LSN: 2, GlobalCommittedLsn: 2, PartitionKeyRangeId: 0, IsValid: True, StatusCode: 409, SubStatusCode: 0, RequestCharge: 1.67, ItemLSN: -1, SessionToken: -1#2, UsingLocalLSN: False, TransportException: null, ResourceType: Document, OperationType: Upsert
, Microsoft.Azure.Documents.Common/2.10.0, StatusCode: Conflict
at com.microsoft.azure.documentdb.internal.ErrorUtils.maybeThrowException(ErrorUtils.java:74)
at com.microsoft.azure.documentdb.internal.GatewayProxy.performPostRequest(GatewayProxy.java:284)
at com.microsoft.azure.documentdb.internal.GatewayProxy.doUpsert(GatewayProxy.java:88)
at com.microsoft.azure.documentdb.internal.GatewayProxy.processMessage(GatewayProxy.java:354)
at com.microsoft.azure.documentdb.DocumentClient$6.apply(DocumentClient.java:3054)
at com.microsoft.azure.documentdb.internal.RetryUtility.executeDocumentClientRequest(RetryUtility.java:73)
at com.microsoft.azure.documentdb.DocumentClient.doUpsert(DocumentClient.java:3068)
at com.microsoft.azure.documentdb.DocumentClient.access$200(DocumentClient.java:87)
at com.microsoft.azure.documentdb.DocumentClient$3.apply(DocumentClient.java:896)
at com.microsoft.azure.documentdb.internal.RetryUtility.executeCreateDocument(RetryUtility.java:199)
at com.microsoft.azure.documentdb.DocumentClient.upsertDocument(DocumentClient.java:901)
To Reproduce
create document as below with custom id. Send another request using that same id with same or different payload.
Code Snippet
ResourceResponse response = getDocumentClient().upsertDocument(cosmosCollectionUri, document, new RequestOptions(), true);
Expected behavior
When using upsert I expect a document upload using an existing id to update the given row.
Screenshots
If applicable, add screenshots to help explain your problem.
Setup (please complete the following information):

OS: OSX and Linux (Using AKS)
IDE : Intellij
Version of the Library used: 2.4+

Additional context
Add any other context about the problem here.
As above this is in AKS and the logs are from that system.
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

[J ] Bug Description Added
[ J] Repro Steps Added
[ J] Setup information Added

More info.
We found that the container was actually restricting on partition key. I'll say that again, I was only allowed to have one document per partition key! I stripped everything else out and used every possible "id" value, but nothing would allow a save until I changed the partition key (or removed it and i was allowed a SINGLE record with an empty partition key).
SOOOOOOOO, that's pretty awful.
We ended up having to delete the PROD container and rebuild it as a last resort test. AND LOW AND BEHOLD! With the same configuration the container started working and I was able to place records and use upsert again.

@merric-rocketpartners First sorry for the delay in the response... I see that you were able to solve the initial issue but I would like to follow up to better understand what was the cause of it.
In normal scenarios you should be allowed to have multiple documents, that is unless your partition key might be set to "/id", which might explain the behavior you experienced.
Could you let us investigate this further by providing us with the following:

the configuration of your account policy, Cosmos client mode and policy
the container settings, especially the partition key settings
an example of the document that was used during the upsert op (Json string will do).


html renderer isEscaped TypeError

What version of Hono are you using?
4.0.1
What runtime/platform is your app running on?
deno 1.40.4 (release, aarch64-apple-darwin)
What steps can reproduce the bug?
I'm trying to transition an open-source pet project from preact to hono.
Running the project via that branch (deno task dev), html is throwing an error when I try to render to html string:
https://github.com/bpevs/fridaypoetry.org/blob/feat/hono/source/components/html.tsx#L16
Rendered via this route:
https://github.com/bpevs/fridaypoetry.org/blob/feat/hono/source/main.tsx#L30
What is the expected behavior?
No response
What do you see instead?
TypeError: Cannot read properties of null (reading 'isEscaped')
    at JSXFunctionNode.toStringToBuffer (https://deno.land/x/hono@v4.0.1/jsx/base.ts:218:64)
    at childrenToStringToBuffer (https://deno.land/x/hono@v4.0.1/jsx/base.ts:79:13)
    at JSXNode.toStringToBuffer (https://deno.land/x/hono@v4.0.1/jsx/base.ts:185:5)
    at childrenToStringToBuffer (https://deno.land/x/hono@v4.0.1/jsx/base.ts:79:13)
    at JSXFragmentNode.toStringToBuffer (https://deno.land/x/hono@v4.0.1/jsx/base.ts:228:5)
    at JSXFunctionNode.toStringToBuffer (https://deno.land/x/hono@v4.0.1/jsx/base.ts:217:11)
    at JSXFunctionNode.toStringToBuffer (https://deno.land/x/hono@v4.0.1/jsx/base.ts:217:11)
    at JSXFunctionNode.toString (https://deno.land/x/hono@v4.0.1/jsx/base.ts:115:12)
    at html (https://deno.land/x/hono@v4.0.1/helper/html/index.ts:28:27)
    at Html (file:///Users/ben/Vault/20-29%20Projects/20%20Code/20.09%20fridaypoetry.org/source/components/html.tsx:16:14)

Additional information
Going straight from Preact to Hono 4.x.x, so this may be user error / I'm not sure if the expected api is now different from honojs/examples, which is running 3.x.x

Was caused by a component that returns children w/o wrapping in Fragment.  I guess it's valid in Preact, but not Hono.
https://github.com/bpevs/fridaypoetry.org/blob/2ae43fa7c0b8d41546261e6553aac012ee904d88/source/components/only.tsx#L11


Extend elements other than HTMLElement not working

Bug report

Skate version: 5.1.1

Affected browsers (and versions): Chrome

Current behaviour
You can use the following two lines without problems:
const Component = withComponent();
const Component = withComponent(HTMLElement);
However, if I want to derive from another HTMLElement like:
const Component = withComponent(HTMLDivElement);
I get an error message:
Uncaught TypeError: Failed to construct 'HTMLDivElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function.
Expected behaviour
I would like to derive from other elements than HTMLElement.

I need some more info:

What line of code is actually causing that error? It sounds like the native shim, or polyfill.
How are you defining your element? If you're using customElements.define(), and correctly specifying the options as spec'd, things should just work, so long as the polyfill supports it. Skate's define() doesn't define a customised built-in because of number 3, but you don't have to use it; it just provides convenience.
Customised built-ins (anything other than HTMLElement) is spec'd, but will never be implemented by all browser vendors, unless Apple decides to change their mind. Keeping that in mind, this will never be cross browser.

Skate should work like this out of the box because it doesn't do anything special; the polyfill should handle this case, if it says that it supports it.

Thank you for your investigation. Based on your comments I now believe that the custom-elements-es5-adapter.js polyfill is causing the problem. It has some hardcoded HTMLElements inside. If I replace them with HTMDivElement, I get another error: "Uncaught TypeError: Illegal constructor: autonomous custom elements must extend HTMLElement".
This is the original stacktrace from the error described in my first post:
with-renderer.js:21 Uncaught TypeError: Failed to construct 'HTMLDivElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function.
at HTMLDivElement._class2 (with-renderer.js:21)
at HTMLDivElement._class (with-update.js:97)
at HTMLDivElement._class (with-context.js:17)
at HTMLDivElement._class2 (with-children.js:19)
at HTMLDivElement._class (with-lifecycle.js:19)
at HTMLDivElement.CyNavigator (cyNavigator.min.js:130)
at new j (custom-elements-es5-adapter.js:4)

When calling customElements.define(), with an extension of HTMLDivElement, you need to pass some extra arguments. If you don't it treats it as an "autonomous custom element". See this section in the spec: https://www.w3.org/TR/custom-elements/#custom-elements-customized-builtin-example.


Cow: Watch askondata.com

Cow requests the watch of the watch_keyword askondata\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

askondata\.com has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by tripleee in Charcoal HQ


Could not find pubspec.yaml in snapd/flutter

Hi there,
1º Flutter doctor -v:

2º Inside my Flutter app:

OS version: Ubuntu 20.04
What's wrong?
Best regards.

For problems with the snap distribution, please file bugs at https://github.com/canonical/flutter-snap

Closing from here per above comment. Please file the issue in referred link above.


Xcode sometimes opens Metro instead of Haul on first build.

Current Behavior
Hello 👋
So sometimes when running a debug build in xcode (usually after changing branches or after a yarn add (but this might be coincidental), running build sometimes opens the Metro packager instead of Haul, after killing it and then building again it opens Haul.
I'm also able to recreate this consistently in my Gitlab Pipeline, the runner attempts to build the IPA and upload to Fabric, each time I can see Metro starting instead of Haul, however after going into the build server manually and running the same CLI commands, it opens Haul. Super weird :/ below is the commands xcodebuild
xcodebuild -list -workspace ios/Quiqee.xcworkspace
xcodebuild -showBuildSettings -workspace ios/Quiqee.xcworkspace -scheme QuiqeeQA
set -o pipefail && xcodebuild -workspace ios/Quiqee.xcworkspace -scheme QuiqeeQA -destination 'generic/platform=iOS' -archivePath /Network/Servers/office.quiqup.com/Users/fastlane/Library/Developer/Xcode/Archives/2018-03-02/Quiqee\ 2018-03-02\ 16.38.38.xcarchive ASSET_SUFFIX=.qa clean archive | tee /Network/Servers/office.quiqup.com/Users/fastlane/Library/Logs/gym/Quiqee-QuiqeeQA.log | xcpretty

If you could give me any guidance on how I can debug here that would be awesome! Until then I'll keep playing around and understanding how Haul integrates with xcode under the hood 👍
Thanks!
Expected Behavior
Haul to start on first build everytime
Haul Configuration (webpack.haul.js)

module.exports = ({ platform }, { module }) => ({
  entry: `./index.js`,
  module: {
    ...module,
    rules: [
      {
        test: /\.js?$/,
        exclude: '/node_modules/',
        use: [
          {
            loader: 'babel-loader',
          },
        ],
      },
      ...module.rules,
    ],
  },
})

Your Environment

software
version

Haul
master

react-native
0.51

node
8.9.1

npm or yarn
5.5. / 1.3.2 (use yarn though)

@thymikee How does "react-native run-ios" command know that it has to trigger Haul webpack and not Metro? I have a similar problem.

@91ranjan its been a while since I opened this issue (2 months which is like 2 human years 😛) but from memory:
In iOS theres an xcode "Run script phase" entry pointing to Haul
In android Gradle switches the entry:
Ah found the doco... [here you go](More info [here]|(https://github.com/callstack/haul/blob/master/docs/Configuring_Your_Project.md)
).

@tutts Thanks a lot. Was looking for the same document. It would be better if the link is in the README.

Using RC.1 I can reproduce the bug in my project consistently by removing node_modules and running yarn ios.

Could someone do some magic with this? https://github.com/callstack/haul/issues/234

I've been digging more into this. If we are talking about build/production this PR https://github.com/callstack/haul/pull/448 should polish things a bit.
Actually the behavior about luncher popup is deep in React Native (here https://github.com/facebook/react-native/blob/master/React/React.xcodeproj/project.pbxproj#L4049) as you can see there is conditional logic, where an another instance is created if the packager doesn't reponse. (launchPackager.command will start Metro Bundler).
That means that if you are not running Metro / Haul, React Native will always run Metro bundler.
But I've seen that you can easily prevent this "packager autostat" behavior if you set RCT_NO_LAUNCH_PACKAGER variable. 💪 I hope it helps, I was so frustrated by this. https://twitter.com/jukben/status/1016706074878119936


Cross References Navigation with Keyboard

The workflow for trying to use the keyboard to scan through the xrefs list doesn’t seem optimal. Using the mouse with double clicking is the only way afaik to scan the surrounding code from an xref.
An improvement could be to:

When using the 'enter' key to trigger navigation in xrefs, keep focus on the current xrefs list item.
The tab key could be used to move focus into a View
Using arrow keys + some other modifier to trigger auto-navigation (again without losing focus).

This feature may also be applicable for other list item types like search results, strings, etc.

There are default keybindings for the desired behavior behind alt+x and alt+shift+x.

The existing hotkeys mentioned above are the intended solution to the problem for now. We'll re-open this if we decide to re-visit it with another solution.


Unable to get the records using POST

NEST/Elasticsearch.Net version  : 6.0.0:
Elasticsearch version : 6.0.0:
Description of the problem including expected versus actual behavior:
I am able to get the values using GET call but unable to get the same values using post call using below code.
string elasticsearchUrl = "";
string indexName = "";
Uri node = new System.Uri(elasticsearchUrl);
ConnectionSettings settings = new ConnectionSettings(node);
settings.DefaultIndex(indexName)
.PrettyJson()
.DisableDirectStreaming();
IElasticClient esClient = new ElasticClient(settings);
var response = esClient.Search(s => s.Size(2).Query(q => q.MatchAll()));
var count= response.Documents.Count;
Provide ConnectionSettings (if relevant):
Debug Information:
Invalid NEST response built from a unsuccessful low level call on POST: /<index_name>/providers/_search?pretty=true&typed_keys=true
Audit trail of this API call:

[1] BadRequest: Node: http://<server_url>/ Took: 00:00:01.2758549

OriginalException: System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
--- End of inner exception stack trace ---
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.GetResult(Int16 token)
at System.Net.Http.HttpConnection.FillAsync()
at System.Net.Http.HttpConnection.ReadNextResponseHeaderLineAsync(Boolean foldedHeadersAllowed)
at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithNtConnectionAuthAsync(HttpConnection connection, HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
at Elasticsearch.Net.HttpConnection.Request[TResponse](RequestData requestData) in c:\Projects\elastic\net-master\src\Elasticsearch.Net\Connection\HttpConnection-CoreFx.cs:line 73
Request:
{"query":{"match_all":{}},"size":2}
Response:

Hi @anaparthi-k
The issue appears to be in the code on lines;
string elasticsearchUrl = "";
string indexName = "";

Usually I would expect there to be values in these two variable assignments, for example;
string elasticsearchUrl = "http://localhost:9200";
string indexName = "my_index";

Can you please try again with the correct values in your environment?

I have placed the valid values but for security reasons I removed from there. Imagine the above code with valid URL and Index is provided in respective values. By the way I can able to the results for get call method but not for POST call.

OK, thank you for clarifying.
I can see that you are using version 6.0.0 of the client, would you be able to try using the latest (at time of writing 6.8.4) and see if the problem still persists? https://www.nuget.org/packages/NEST/6.8.4
I have a few additional questions:

Presumably you are able to access Elasticsearch through the web browser (using a GET to "/")?
Have you tried an alternate POST operation? Perhaps a bulk request?
Are you using a proxy, or are you in an environment, where HTTP POST is blocked?
Are you able to POST using curl, as opposed to the client? Please try:

curl -X GET "localhost:9200/_search?pretty" -H 'Content-Type: application/json' -d'
{
    "query": {
        "match_all": {}
    }
}

'

We’re closing this issue due to inactivity; if you’re still in need of resolution, feel free to re-open with the additional details and we'd be glad to help you out 👍


'Tell' module for non-bouncered plebs

It'd be nice to be able to spam people links and whatnot even if they're not in IRC.

May I recommend /msg MemoServ help ... the real problem here is how few people bother to register with services.

Neat, I didn't even know memoserv was a thing.

Oh, we can still leave this issue open. I want to implement auth in the bot better than just services auth and that would make tell still have value. I dunno if I've talked about the auth thing at any point, but I'll make sure there's an issue explaining how it can be better than services identification.


Use treesitter highlights on successful invocations of Hurl

This issue is mostly to pitch an idea.
When Hurl successfully executes it returns the content from whatever API/webpage it was called against it returns the raw content. We can extract the Content-Type from Hurl by running it with the -i  flag.
With the Content-Type in hand it should be possible to set the buffer's filetype to the output Content-Type. As a note Hurl returns the last http request's content and headers only, so if you had multiple GET or POST requests in a single file to different URLs, only the last request's content is returned.
If Hurl runs into an error then we can return the content in stderr as usual without any filetype settings.

Very interesting idea. Currently I set the buffer to be a terminal to gain highlighting of the hurl verbose output. I suspect that we can't really combine the two, so it might be that we need to switch to not using a terminal for the output to implement this. Another thought is that we could try to get treesitter highlighting merged into upstream hurl, but even if we did that it would probably still be valuable to be able to do it in neovim for the sake of using your nvim color settings

@pfeiferj
I have accomplished this feat. Is it any good? Probably not considering I've been up for close to 40 hours.
BUT, it does, in fact, work. Take a look here: https://github.com/treatybreaker/nvim-hurl/tree/set-filetype
I, unfortunately, don't know how to write Treesitter queries of any note so the headers are looking a bit drab. Ideally we'd do injections for the headers to highlight them separately from the body.
For now though, this serves as a solid enough PoC.
Screenshot of that branch in action:

@pfeiferj
I have accomplished this feat. Is it any good? Probably not considering I've been up for close to 40 hours.

Hmm, looks like a good start. Have some thoughts though:
1.) Get some sleep man.
2.) It likely would be better to just pass no-color to hurl rather than try to remove the term codes.
3.) Looking at the output just now I realized that it looks like the hurl grammar might actually be able to parse the output and provide highlighting, in which case we actually might get the injections for free since the grammar's queries support some injections already. That would also allow moving away from using a term window for the output altogether because there wouldn't really be a reason to highlight based off of term codes

3.) Looking at the output just now I realized that it looks like the hurl grammar might actually be able to parse the output and provide highlighting, in which case we actually might get the injections for free since the grammar's queries support some injections already. That would also allow moving away from using a term window for the output altogether because there wouldn't really be a reason to highlight based off of term codes

Nevermind, it would require a whole new grammar to support this

1.) Infinite Energy.
2.) If you pass no-color to hurl we lose color for anything that crops up on stderr unfortunately as I can't set a filetype to color the hurl errors. That's why I do the whole term code removal dance.

If you know of a better way then do say so, cutting out term codes is kinda hacky

So another idea is to actually separate stdout and stderr into separate windows. I believe the verbose hurl output actually outputs on stderr and then the final request outputs its data to stdout. Then stderr we could set term on to get its highlighting and then we could set a filetype for the stdout

Then stderr we could set term on to get its highlighting and then we could set a filetype for the stdout

But the issue is that if you call hurl with --no-color it never inserts those term codes for colors at all. We'd have to issue two calls to hurl, one to get no color stdout so we don't have to parse term codes and another for colored output to handle the stderr case.

Then stderr we could set term on to get its highlighting and then we could set a filetype for the stdout

But the issue is that if you call hurl with --no-color it never inserts those term codes for colors at all. We'd have to issue two calls to hurl, one to get no color stdout so we don't have to parse term codes and another for colored output to handle the stderr case.

Not exactly, we just wouldn't use --no-color. The stderr is the only part that will have the term codes, so if we send that to it's own window and set that window to term it will color it and hide the term codes correctly, then stdout we just send to a normal window that we set the filetype in. But, this is all assuming i'm right about the verbose header information being sent to stderr and not stdout

Oh ok, I see what you're saying. AFAIK the Header info is populated into stdout by the --include flag with a single newline separating the Header information from the body/content. Where I'm getting this from is from the stdout section over here. When I was messing about with it earlier the only way I could get Header info was with --include which populated stdin with the Headers.

Oh ok, I see what you're saying. AFAIK the Header info is populated into stdout by the --include flag with a single newline separating the Header information from the body/content. Where I'm getting this from is from the stdout section over here. When I was messing about with it earlier the only way I could get Header info was with --include which populated stdin with the Headers.

ah, gotcha, so if we were to take the two window approach we would drop the --include so that we would have a separation of stderr=hurl colored term output, stdout=the last request's response data

Oh ok, I see what you're saying. AFAIK the Header info is populated into stdout by the --include flag with a single newline separating the Header information from the body/content. Where I'm getting this from is from the stdout section over here. When I was messing about with it earlier the only way I could get Header info was with --include which populated stdin with the Headers.

ah, gotcha, so if we were to take the two window approach we would drop the --include so that we would have a separation of stderr=hurl colored term output, stdout=the last request's response data

wait, just realized what you meant, I've only ever really used the verbose option to get header info, so i thought --include must have just been verbose output but combined into stdout. Let me try out some stuff real quick with --include

Oh ok, I see what you're saying. AFAIK the Header info is populated into stdout by the --include flag with a single newline separating the Header information from the body/content. Where I'm getting this from is from the stdout section over here. When I was messing about with it earlier the only way I could get Header info was with --include which populated stdin with the Headers.

ah, gotcha, so if we were to take the two window approach we would drop the --include so that we would have a separation of stderr=hurl colored term output, stdout=the last request's response data

wait, just realized what you meant, I've only ever really used the verbose option to get header info, so i thought --include must have just been verbose output but combined into stdout. Let me try out some stuff real quick with --include

ok, new new idea with a few parts:
1.) we should allow for options to be passed to hurl from the vim command
2.) we should detect --include option and if used we split the stdout into two windows based off the first newline on a blank line
3.) if we get stderr we place it into its own window
4.) if we got both stderr and stdout we open two windows

I can take a look at doing all of this tomorrow (if I get a minute), if not it'll have to be this coming weekend or Friday.
The only thing that might be sketchy is the window split, as currently we're opening a floating window by default. Does this mean we're moving to a vertical split with two windows stacked on top of each other? Basically, that can't be fully configurable, might have to give up on some things on the user config side.

The only thing that might be sketchy is the window split, as currently we're opening a floating window by default. Does this mean we're moving to a vertical split with two windows stacked on top of each other? Basically, that can't be fully configurable, might have to give up on some things on the user config side.

Probably fine to default to splits, I can look into a floating window option for it. Other things like telescope use multiple floating windows to separate information so it should definitely be possible


AO-15694: Remove skip verify option

Remove the insecureSkipVerify option from the agent as it's no longer needed.
See https://swicloud.atlassian.net/browse/AO-15694

Codecov Report

Merging #141 into master will decrease coverage by 0.07%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #141      +/-   ##
==========================================
- Coverage   82.15%   82.08%   -0.08%
==========================================
  Files          37       37
  Lines        4590     4577      -13
==========================================
- Hits         3771     3757      -14
- Misses        695      697       +2
+ Partials      124      123       -1

Impacted Files
Coverage Δ

v1/ao/internal/reporter/reporter_grpc.go
70.48% <0.00%> (-0.56%)
:arrow_down:

Continue to review full report at Codecov.

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


Log Collection Errors during Longevity Test

When running a longevity test:
In the NGF error log, log entries like the following were not collected during the 1.2.0 run:
ERROR 2024-03-20T14:13:00.374159128Z [resource.labels.containerName: nginx-gateway] {"error":"leader election lost", "level":"error", "msg":"error received after stop sequence was engaged", "stacktrace":"sigs.k8s.io/controller-runtime/pkg/manager.(*controllerManager).engageStopProcedure.func1 sigs.k8s.io/controller-runtime@v0.17.2/pkg/manager/internal.go:490", "ts":"2024-03-20T14:13:00Z"}
In the NGF log, log entries like the following were not collected during the 1.2.0 run:
ERROR 2024-03-17T21:11:11.017601264Z [resource.labels.containerName: nginx] 2024/03/17 21:11:10 [error] 43#43: *211045372 no live upstreams while connecting to upstream, client: <IP_ADDRESS>, server: cafe.example.com, request: "GET /tea HTTP/1.1", upstream: "http://longevity_tea_80/tea", host: "cafe.example.com"

Some ways we can simulate the above errors to test:

We can change RBAC to disallow NGF to access the leader election resource.
Create http route for an application which does not accept traffic on port 80.


Feature Request: Dropdown for Accept Header

Context

hapi-swagger version: v9.x (latest)
any other relevant information: Hapi v17.x (latest)

What are you trying to achieve or the steps to reproduce?
I want to support proper content-negotiation for implemented routes. Thus I'm expecting a client to send me a mime-type as of the accept header. hapi-swagger + Joi allows to validate this header and to specify mime-types a route is able to produce. Unfortunately this is not displayed as of the hapi-swagger ui, e.g. as a dropdown to create a curl request with with this header prefilled.
Example route:
server.route({
  method: 'GET',
  path: '/item/{id}',
  handler: handlers.getItem,
  config: {
    tags: ['api'],
    description: 'Get an item',
    plugins: {
      'hapi-swagger': {
         produces: ['text/turtle', 'application/ld+json', 'application/rdf+xml', 'application/json'],
      }
   }
 }
});

I've already searched the web and other issues in this repository, but only found threads about the content-type header, typically used for PUT and POST requests but not for GET requests. If there is an alternative solution, I would be happy to get some tips!
What result did you get?
There is no dropdown in hapi-swagger ui (by default served at /documentation) that allows me to specify a mime-type for the accept header.
What did you expect?
A dropdown in hapi-swagger ui (by default served at /documentation) that allows me to specify a mime-type for the accept header.

I was able to track down the bug (by reading #237 ). Whenever a response code is added as a string that is not convertible to a number (e.g. by including a space), the dropdown for response content-type is missing, even though swagger-ui displays the response correctly.
Working example:
plugins: {
  'hapi-swagger': {
    produces: ['application/ld+json', 'text/turtle'],
    responses: {
      '200': {
        description: 'Successfully found the item and returned it in the specified format'
      },
    }
  }
}

Non working example:
plugins: {
  'hapi-swagger': {
    produces: ['application/ld+json', 'text/turtle'],
    responses: {
      ' 200 ': {
        description: 'Successfully found the item and returned it in the specified format'
      },
    }
  }
}

See this screenshot on how the non working example is displayed

I did not expect the response code to influence any other fields, as this is basically just a comment for users of the API. Actually it shouldn't influence the response content-type dropdown.

if there is no 200 response code listed in the responses object, the dropdown is also not displayed.


Cannot set value

I'm trying to modify an existing JSON object but I get compile errors
class func add(coupon: JSON) {
    coupon["isFavorite"].int = JSON(1) // error: '@lvalue $T8' is not identical to 'Int?'
    coupon["isFavorite"] = JSON(true) // error: '@lvalue $T7' is not identical to 'JSON'
    coupon["isFavorite"].bool = true // error: '@lvalue $T6' is not identical to 'Bool?'
    coupon["isFavorite"].boolValue = true // '@lvalue $T6' is not identical to 'Bool'
    inner.coupons.append(coupon)
}

What's the proper way of modifying a JSON object?

For me works: someJSON["foo"] = JSON("bar")

@chitza This issue has been inactive for a while so I'm gonna go ahead and close it. As first glance, it seems that you're trying to modify a let value (params are always let, if you need to modify them, just do var param = param then modify the param in question). Let me know if you want to reopen this.

Hi,
I haven't used this library in an while, so go ahead and close it.


change kotlinc_wrapper.sh delim from | to $ for better compatibility

Hmm, is $ safe?
I guess if it passes all the tests its ok

I had this exact conversation with myself. If there is a less suspicious character, I'm happy to change it.

Hmm, is $ safe? I would have thought that having '$' as the separator might lead to shell metacharacter substitution, e.g. ["foo", "bar"] -> joined as "foo$bar", and "$bar" gets interpolated?

I don't think this is going to happen. However, if we want to be really safe, I suggest choosing the ; character as a delimiter.


Is there a way to schedule timed event?

Not yet, but I created a Trello task for it and will implement it in near future. Thank you for suggestions.


added package.json

issue

Thanks for the suggestion and the package file! I'll publish it soon NPM soon.


ValueError when using DeepFace.verify() with full black image as ndarray to the img2_path parameter

I am using two parameters on DeepFace.verify() function, the first one is a human face and the second one is full black image and I have also put the parameter "enforce_detection=False". Because the black image is nd.array full of zeros when initialize_input(img1_path, img2_path) is called in Deepface.py project it has to pass a condition
(type(img2_path) == str and img2_path != None) #exact image path, base64 image or (isinstance(img2_path, np.ndarray) and img2_path.any())
The problem is that img2_path.any() returns False because all elements in img2_path are 0.
I dont know exactly how to fix it, maybe len(img2_path ) == 0 but I didnt look at code long enough to see all the dependencies of this condition. Also this is my first Issue reporting so this may not be the correct way to report this kind of stuff.

why do you need to compare an image with a black empty image?

you can try to create a black image and pass it to verify function to handle your issue instead of passing numpy array.


Fatal error: Call to undefined function Eventviva\exif_read_data()

when I upload a picture I get the following error
Fatal error: Call to undefined function Eventviva\exif_read_data()
../vendor/eventviva/php-image-resize/src/ImageResize.php on line 106

The issue is already pointed by #43 Can you tell me which PHP version do you use? I will release new version to fix this in 8-10 hours.
Thanks,

thanks, temporary solution with my code
if(!function_exists('exif_read_data'))
        return $img;
....

New version 1.5.4 fixes this.

@adityapatadia please, update info about package on packagist.org, because only version 1.5.3 is available as stable in composer for now

I can see 1.5.4 in packagist. https://packagist.org/packages/eventviva/php-image-resize. Did you use exact number 1.5.3 in your composer file?

@adityapatadia no, I just use "@stable" as version

It should work. Can you try 1.5.* ?

It works good for now. Thank you!
ср, 15 июн. 2016 г. в 10:27, Aditya Patadia<EMAIL_ADDRESS>
It should work. Can you try 1.5.* ?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/eventviva/php-image-resize/issues/47#issuecomment-226109391,
or mute the thread
https://github.com/notifications/unsubscribe/ADRO9xQHOq3pGeyRwfEAP6J_hfwxAouLks5qL6l8gaJpZM4IoEb9
.

--
Best regards,
Nikita Chernyi (Backend Developer, DevOps).
about.me/nikus
https://about.me/nikus?promo=email_sig&utm_source=email_sig&utm_medium=email_sig&utm_campaign=external_links

I am using "eventviva/php-image-resize": "1.5.*" and I am still getting this error
local.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Call to undefined function Eventviva\exif_read_data()' in /home/mywebiste/vendor/eventviva/php-image-resize/src/ImageResize.php:106

Please provide more information about system and platforms. Your sample code will also help.

Symfony error handler handles level 0 (muted with @) errors. Just set dummy error handler before and restore error handler after image manipulations

If you need example - ping me

I am using Laravel 5.2
// resize
$image_resize = ImageResize::createFromString($imagedata);
$image_resize->quality_jpg = 100;
$image_resize->resize(200, 200);
$image_resize->save( base_path() . '/images/' . $image_new_name . '.' . 'jpg' );
$image_new_name is a variable with a name.
@rakshazi Please, I need an example.

@tarhe
You need install php extension exif and gd, in alpine linux it will be (for php7): php7-exif php7-gd,
after that you need do following to fix "heisenbug" with corrupted image metadata, just use following code and all we'll be ok:
protected function resizeImage(string $image_new_name)
    {
        /**
         * Framework will throw ErrorException exif_read_data(image.jpg): Illegal IFD size
         * for some files, but these errors must be muted (@exif_read_data($filename))
         * that's why we set dummy error handler
         */
        set_error_handler(function ($level, $message, $file, $line) {
            //Do nothing
        });
        $image_resize = ImageResize::createFromString($imagedata);
        $image_resize->quality_jpg = 100;
        $image_resize->resize(200, 200);

        $image_resize->save( base_path() . '/images/' . $image_new_name . '.' . 'jpg' );
        /**
         * Disable our dummy error handler
         */
        restore_error_handler();
    }

@rakshazi Thanks, I appreciate


How to SKIP time steps

Hi,
I have read several papers on SENTENCE SIMPLIFICATION/SIMPLIFIED REPRESENTATIONS, most of which usually SKIP words with discrete actions and learn the policy through Reinforcement Learning. However, in their implementation I find that the cell states are still computed on each time step. Thus hardly any time is saved during training or inference.
This research is very novel and interesting for it's the first time to modify RNN cells intrinsically to SKIP some information as far as I know, and what IMPRESSED me most was that

The number of skipped time steps can be computed ahead of time.

, which brings up the possibility that the cost of time and computation can be reduced by pre-calculating how many steps is to be skipped.
According to your method, at time step t, if u_t equals 1(state update at time t), then the step skipped  till next state update can be directly calculated with
skipped_steps = ceil(1.0 / simga(WS_t + b))

However, in your code of implementation, I am not able to find the corresponding snippets where this computed skipped time steps may be implemented :( . Did I miss it somehow?
If I want to skip the state representation together with the computation cost, must it be done by overriding the dynamic_rnn method, or is it already done somehow by optimization inside tensorflow implementation?
Thank you for your time!

You are right, there is no current implementation of this. It might be relatively straightforward to implement for batch sizes of 1, but the batched case can be more tricky -- especially due to the static nature of TensorFlow. As you said, you would need to override the whole dynamic_rnn loop to account for the skipped steps in an efficient manner.
Months ago I tried to port the code to PyTorch to explore this possibility, but custom RNNs were extremely slow. This was done with a very early release (version 0.2, I think) and they might be faster now. This said, if you want to compete with the fastest implementations in terms of wall-clock time, implementing the cell in raw TF/PyTorch will not be enough (RNN implementations in cuDNN will always be faster). You would need some low-level CUDA implementation, e.g. with cupy as in QRNN or SRU.


CDAP-14187 refactor bigquery source and sink

Summary

Added output schema validation for bigquery source
Added BigQueryUtils as a common class to reduce code redundancy.
Organized source and sink's prepareRun method to make it more readable.
Removed RecordConverterException to make exceptions consistent with other plugins.

Squashing and merging.


Telemetry Sample code

How can i collect telemetry data from my laptop to analyze for my self? Is there an sample code to try

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

ID: f6e44683-a56a-680b-b5d3-37db2f481494
Version Independent ID: 870d7125-d56e-c309-9823-851f9a15b26f
Content: Windows 10 diagnostic data for the Full diagnostic data level (Windows 10)
Content Source: windows/configuration/windows-diagnostic-data-1703.md
Service: unspecified
GitHub Login: @eross-msft
Microsoft Alias: lizross

This currently isn't something that we cover in this article as it's intended to just be a reference piece. However, I'm including @DaniHalfin since he's the owner of the article and can determine if it's something we might cover in a future version.

@sureshnam - you can see and export the collected data through the accounts dashboard at account.microsoft.com.
Currently, there's no API to query all diagnostic data components.
You can view it generally through Diagnostic Data Viewer if you'd like.


Add "all-features = true" to docs.rs metadata for most crates

Objective
Fix missing TextBundle (and many others) which are present in the main crate as default features but optional in the sub-crate. See:

https://docs.rs/bevy/0.13.0/bevy/ui/node_bundles/index.html
https://docs.rs/bevy_ui/0.13.0/bevy_ui/node_bundles/index.html

There are probably other instances in other crates that I could track down, but maybe "all-features = true" should be used by default in all sub-crates? Not sure. (There were many.) I only noticed this because rust-analyzer's "open docs" features takes me to the sub-crate, not the main one.
Solution
Add "all-features = true" to docs.rs metadata for crates that use features.
Changelog
Changed

Unified features documented on docs.rs between main crate and sub-crates

Can you make a PR for that?

Yep, I'll just push here.

I see people using [workspace.metadata.docs.rs] but it apparently doesn't work.

Great :) Can you update your PR description and title?

Great :) Can you update your PR description and title?

Done.

could you try with doc_auto_cfg to see if that works well to document what is behind features? https://github.com/rust-lang/rust/issues/43781

could you try with doc_auto_cfg to see if that works well to document what is behind features? rust-lang/rust#43781

So, add #![cfg_attr(docsrs, feature(doc_auto_cfg))] at the root of every crate? It looks good to me. It requires nightly if you want to build the docs locally with that feature enabled, like: RUSTDOCFLAGS="-Zunstable-options --cfg=docsrs" cargo doc --all-features.

I added the doc_auto_cfg feature to the same set of crates. It highlights which items are specific to feature or target. It is documented here, and only runs on docs.rs. Might be worth considering using https://github.com/dtolnay/cargo-docs-rs on CI.


TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/77950

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/78074

Triggering TagBot for merged registry pull request
This extra notification is being sent because I expected a tag to exist by now, but it doesn't.
You may want to check your TagBot configuration to ensure that it's running, and if it is, check the logs to make sure that there are no errors.

Triggering TagBot for merged registry pull request
This extra notification is being sent because I expected a tag to exist by now, but it doesn't.
You may want to check your TagBot configuration to ensure that it's running, and if it is, check the logs to make sure that there are no errors.

Triggering TagBot for merged registry pull request
This extra notification is being sent because I expected a tag to exist by now, but it doesn't.
You may want to check your TagBot configuration to ensure that it's running, and if it is, check the logs to make sure that there are no errors.


don't persist collab scenes to localStorage

As a measure to decrease the likelihood that users think they still collaborate on a scene when they open a new tab (or a new tab is opened for them) during collaboration, I'd not persist scene data to localStorage during collaboration so that opening a new tab won't result in the same scene being duplicated (loaded) from localStorage.
During collaboration, we save the data to a server, anyway.
downsides

when the server is down or the users cannot communicate with it (e.g. their network is down), the scene won't be persisted anywhere. In that case, we can persist to localStorage IFF the saveToFirebase() fails for whatever reason.
this actually goes against my other proposal: Sync state between tabs on each change

This also open a question: should we "leak" scene data from collaboration scenes at all?
Case: someone (be it a company or a person) send you a confidential diagram to collaborate on. You then stop (or close the tab etc.) the session. The state when you left the room is kept both in 1) active scene, and 2) localStorage.
This isn't a problem on its own, but may result in expected behavior. For example, you close the tab when collaborating, and leave the workstation. Someone then opens a clean excalidraw.com tab and lo and behold, it has the data from your last collaboration.

This also open a question: should we "leak" scene data from collaboration scenes at all?
Case: someone (be it a company or a person) send you a confidential diagram to collaborate on. You then stop (or close the tab etc.) the session. The state when you left the room is kept both in 1) active scene, and 2) localStorage.
This isn't a problem on its own, but may result in expected behavior. For example, you close the tab when collaborating, and leave the workstation. Someone then opens a clean excalidraw.com tab and lo and behold, it has the data from your last collaboration.


Runtime skills configuration nesting mistake

The skills credential provider was attempting to extract MicrosoftAppId and MicrosoftAppPassword from the runtimeSettings -> skills scope in appsettings.json, whereas it should be using the root configuration scope.

Shiproom - parent issue tracked with https://github.com/microsoft/BotFramework-Composer/issues/7766


Quicker integration

Is there a chance to add a /dist folder to the repo and have a single div on which I could attach the app to? Than I could just create a template like this

<body>
    <!-- CMS stuff here -->
    <div id="explorer_goes_here">
    <!-- more CMS stuff here -->
    <script src="static/ecoengine/dist/stamen_explorer.js"></script>
</body>

... and collect the code using bower. This way I could rid of my git sub module.

It might be even there already. Can you please give me some directions.
Thanks

Sorry -- I didn't see this when it got posted! Need to check my notification settings.
Just checked with @standardpixel: We can make a 'build' branch similar to https://github.com/stamen/ecoengine-compare/tree/build
For div targeting, we can make that happen -- but not till Monday. Is that OK?

This is ok with me. Thx.
On Wed, Mar 4, 2015 at 1:59 PM, Dan Rademacher<EMAIL_ADDRESS>wrote:

Sorry -- I didn't see this when it got posted! Need to check my
notification settings.
Just checked with @standardpixel https://github.com/standardpixel: We
can make a 'build' branch similar to
https://github.com/stamen/ecoengine-compare/tree/build
For div targeting, we can make that happen -- but not till Monday. Is that
OK?
—
Reply to this email directly or view it on GitHub
https://github.com/stamen/ecoengine/issues/129#issuecomment-77259078.

--
Falk Schuetzenmeister, PhD
Web Application Developer
Geospatial Innovation Facility http://gif.berkeley.edu/
University of California Berkeley
111 Mulford Hall
94720 Berkeley, CA
<EMAIL_ADDRESS>1-510-642-4897

This is almost done.

Here's Compare loading in a div: http://studio.stamen.com/berkeley/show/holos/compare/
And here's Explore almost working: http://studio.stamen.com/berkeley/show/holos/explore/

@standardpixel needs to get that second one working and update the docs -- we made this install method (inserting into a div with javascript) optional on build with Gulp.

Ok, we've got this set up for both Explore and Compare. @standardpixel has the install steps documented here:
https://github.com/stamen/ecoengine#holos-integration
https://github.com/stamen/ecoengine-compare#holos-integration
@postfalk can you take a look and make sure they are clear to you?

I'm going to close this one since we've worked through most of the issues and have a couple of other items open.


Expand the example server into a reference passkey implementation?

Now that passkeys are on the horizon, I believe the current challenge for WebAuthn adoption is a dearth of decent reference implementations. Based on posts like this on the FIDO-DEV mailing list I think I'd find others who agree.
The current example server tries to be such a thing but is hand-wavey in some areas, specifically around challenge management and credential storage. I think there's an opportunity here to flesh out some of these parts of the server to offer others an "ideal" Express implementation of WebAuthn, including guidance on how to leverage Conditional UI (finally enabling "usernameless" auth that can't know the user's identity ahead of time) and future functionality like the upcoming devicePubKey extension.

Note that this'd likely involve some kind of in-memory data storage library, to avoid going overboard and implementing an actual RDBMS. As straightforward as it might be to implement as a series of Docker containers, for example, I still like the idea of the example server being something you can npm start locally to get up and running.

For the data storage, prisma along with SQLite might be a good choice: https://www.prisma.io/docs/concepts/database-connectors/sqlite.

Prisms is an interesting suggestion. I'll look into that.
And I agree SQLite is the way to go here regardless of the ORM I land on.

Hey @MasterKale, I'm happy to hear that you want to take things further, especially with passkeys on the verge of being widely adopted. I'm currently also thinking about a standard authentication and authorization solution solely based on webauthn, because in my current projects the implementation varies not that much, and it would be neat, to just spin up a docker container for example, which is able to handle such a task. I would be more than willing to support you with that venture, taking into account I already have made some webauthn implementation with prisma and jwt tokens on my projects.

I'm going to close this, I don't think I want to spend much more of my free time building and maintaining more than the little example app I keep within this repo.
I'd encourage those who choose to build such a reference implementation to follow the lead of the conversation in #266 and share out your project in the Discussions here. People looking to adopt WebAuthn in the wake of passkeys hype will all benefit from such real examples, and so I believe such projects will help expand WebAuthn adoption.


Remove v1alpha1 authentication policy label selectors

Describe the feature request
This is added a while back but got diverted due to the alternative plans for a new authentication policy. The flag has been hidden all the time anyway. It's better to remove it now to avoid misunderstanding.
Describe alternatives you've considered
Affected product area (please put an X in all that apply)
[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[X] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
Additional context

@GregHanson @incfly FYI

SGTM
On Tue, Sep 10, 2019 at 3:06 PM Diem Vu<EMAIL_ADDRESS>wrote:

@GregHanson https://github.com/GregHanson @incfly
https://github.com/incfly FYI

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/istio/istio/issues/16986?email_source=notifications&email_token=AAMVXB7ELT7NDT3BXUQ5KPDQJAK5ZA5CNFSM4IVNCCAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6MUPEA#issuecomment-530139024,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAMVXB46AWUB6CIABPBOJTLQJAK5ZANCNFSM4IVNCCAA
.

Might worth checking the design docs(if any) needs to be updated
correspondingly as well, to reflect status quo.
On Tue, Sep 10, 2019 at 4:36 PM Jianfei Hu<EMAIL_ADDRESS>wrote:

SGTM
On Tue, Sep 10, 2019 at 3:06 PM Diem Vu<EMAIL_ADDRESS>wrote:

@GregHanson https://github.com/GregHanson @incfly
https://github.com/incfly FYI

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/istio/istio/issues/16986?email_source=notifications&email_token=AAMVXB7ELT7NDT3BXUQ5KPDQJAK5ZA5CNFSM4IVNCCAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6MUPEA#issuecomment-530139024,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAMVXB46AWUB6CIABPBOJTLQJAK5ZANCNFSM4IVNCCAA
.


Support ARM64

At the moment caddyserver.com supports various ARM architectures but not ARM64.
According to the Golang wiki, the build should be as simple as setting GOARCH=arm64 instead of GOARCH=arm.
I've confirmed that building this way runs on the ODROID-C2, which is an ARM64 device.
I'd just build Caddy myself but there doesn't appear to be a good way to build with all the plugins I want included.

Actually I looked into it a little more and it looks like the build server already supports ARM64!
This works.
We just need a link on the download page.

Oh, we commented at the same time. Yes, the link is not there because it is not a very common platform. The new website that we'll be starting on should have all the options available there.


Change owner: On item view page add a row for "current owner"

On the item view page, if the ownership of the item has changed hands, include a line under the "Depositor" line with
label: Current owner
content: SUNet ID (name) -- same as how the Depositor info is displayed.
Mockup: https://projects.invisionapp.com/share/EQXC9CLKCR2#/screens/467473850

All users should see this.

@astridu Can you mock this up? Thanks.

@amyehodge I'm taking this to mean that "Current owner" should only be displayed when different than "Depositor". Is this correct?

@justinlittman Yes, that's right. If it's a lot easier to display it all the time though, I have no problem with that.


[Feature] GitLab (on perm) as source code service

Describe the solution you'd like
Currently only the GitLab.com is planed. We need the support of on permise installations of GitLab as a source code service in App Center to be able to use AppCenter for builds and not only distribution / crash reporting.
Describe alternatives you've considered
No alternatives
Additional context
There is already a feature request (#24) to use GitLab (on perm) as a bug tracker service, that would extend the support we need.

Thanks @WebDucer, this is related to #37 and something we are tracking for the future.

Closing this as we closed out #37


Add support for Adobe Animate filetypes

Thanks for this extension!
This change registers extensions belonging to filetypes supporting Adobe Animate/Flash: as and jsfl for source code; fla and xfl for authoring documents. The swf type was already included under media :)

Thank you for the PR!


Import new 400ng rates for 2019-05-15 thru 2020-05-15: 165550248

Description
We need to load new 400ng rates for dates 2019-05-15 thru 2020-05-15.
Reviewer Notes
Ensure new data is loaded in:
tariff400ng_full_pack_rates
tariff400ng_full_unpack_rates
tariff400ng_item_rates
tariff400ng_linehaul_rates
tariff400ng_service_areas
tariff400ng_shorthaul_rates
Setup
dev_db_migrate
Code Review Verification Steps

Any new migrations/schema changes:

[ ] Follow our guidelines for zero-downtime deploys (see Zero-Downtime Deploys)

[ ] Request review from a member of a different team.
[ ] Have the Pivotal acceptance criteria been met for this change?

References

Pivotal story for this change
Location of spreadsheet file:
https://www.ustranscom.mil/dp3/hhg.cfm

Look under “Special Requirements and Rates Team” -> “Domestic” -> “400NG Baseline Rates”

Here are some queries that I'm doing to spot-check. They might be useful for whatever documentation we write about importing this data.
Make sure date ranges are reasonable and that we have the new ranges we're looking for:
dev_db=# select effective_date_lower, count(*) from tariff400ng_linehaul_rates group by effective_date_lower;
 effective_date_lower | count
----------------------+-------
 2018-05-15           | 10528
 2019-05-15           | 10528
 2017-05-15           | 10528

dev_db=# select effective_date_upper, count(*) from tariff400ng_linehaul_rates group by effective_date_upper;
 effective_date_upper | count
----------------------+-------
 2018-05-15           | 10528
 2020-05-15           | 10528
 2019-05-15           | 10528
(3 rows)

Repeat for all 400ng tables with the effective_date_upper/lower columns.
From that, everything looks good!
It would be great to test a move with a move date past May 15, 2019 just to be safe. I can help with this later, but am juggling a few things.

Added another migration to pick up additional data we didn't get from the ruby scripts.
Very similar to a pr @jim did: https://github.com/transcom/mymove/pull/382
Deployed and tested on experimental...
Both Reggie and I were able to choose move dates in the future (beyond 2019-05-15) and we could complete setting up the move.


Add Pan option using the space button on Desktop

Is your feature request related to a problem? Please describe.
Currently the devices with touch pad can only pan .

Describe the solution you'd like
Use keyboard space button and mouse move on it to pan the canvas.
Additional context
Files like : Canvas.jsx contains the code for panning .

@dhruvpatidar359 can I work on this issue?

sure , please go ahead


IIFE and documentation

To avoid accidental cluttering of the global namespace and make actual exports explicit, I wrapped all components in their own IIFE. This also deduped 'use strict';
I also used the opportunity to align our JSDoc documentation.
Tests pass and everything seems to be working. Please double-check, though.
Fixes #1307

Pro Tip: Append ?w=1 to the URL when looking at the diffs

Have we tested the final builds that are generated using these IIFE wrapped scripts too?

Adding the IIFE at the end during the concatenation would have been easier

@addyosmani I did test the microsite and templates which worked fine. Anything else I should do?
@tleunen Arguably. I would still have to export the constructors manually. In any case, this was a conscious decision as we contemplating to turn every component into a module so that you can just pull in the components you need.

@surma It's probably useful for us to test building material.min.css/.js and just checking that new projects including them and sample snippet source from the site work as expected. Other than that LGTM.

@tleunen +1 for doing at as a publish step. We have used both approaches with Marionette, and in the end not wrapping the src in an IIFE ended up saving us more time because it made testing quite a bit easier (being able to access private methods and vars)
However this approach does come with a downside, that being more complexity around the build and publish phase. Overall :+1: with this work though :+1:

After talking about this with @samccone and @surma I believe we've left things with Surma exploring the publish step option either as part of this PR or a separate one and us being fine with landing this otherwise. Will hold off on a confirmation.

Yup, my plan is to amend this PR with the global IIFE

Awesome. Thanks!

r: @addyosmani || @sgomes (small commits for your reviewing pleasure)
Templates, microsite and generated CSS/JS seem to be working fine. Please double-check.

It seems you forgot to remove the iife on each component

@tleunen I did that on purpose. As I said that was a step for the future for pulling in individual components. But maybe I understood that wrong.
@addyosmani @samccone @sgomes WDYT? Remove individual IIFEs in favor of the global one or keep both?

Ideally, when we compiled we would only have 1 closure :)

I agree with Sam that ideally at the end of the build process we only have a single closure. We could bring back per-file closures during the larger move to modularity, but just two cents :moneybag:

So be it.

There you go :) I’ll open a separate PR for the doc sanitizing that I did.
@addyosmani @samccone pls ACK

Hold on this. I was too fast again -.-'

So, we have one problem if we remove the IIFEs from the components: We will have a lot of 'use strict'; in each file.
It was like that before, so it’s technically no problem, but the original complaint was criticizing exactly that. We could leave the the strict directive from the components file because we can add it via the final IIFE, but JSHint would complain for each and every JS file.

If we need to leave them in in each file, we can use something like esprima, or acorn to remove the use strict node from the AST in each file :page_facing_up: .. during compile :)  :computer: :haircut:

Okay, after looking at doing AST manipulations at compile time, I feel like keeping the additional IIFEs is the sanest way out right now.
I agree that they are rather undesirable and technically unnecessary, but they are still better than having to keep 'use strict' around multiple times. Doing AST manipulations does not only seem out-of-place/hacky but also rather error prone (maybe I was doing it wrong™, though).
The current state of this branch shows what I propose for merging. Retweet if you agree! WDYT?

Doing AST manipulations does not only seem out-of-place/hacky but also rather error prone (maybe I was doing it wrong™, though).

It is actually really simple :rice_cracker: and should not be error prone :hamster:
I can pair with you if you want. :smile:
(I did something just like this a while ago https://github.com/samccone/unwrap)

To be clear, I agree with you that we could merge :arrow_double_up: this and do a pass on this optimization after the fact :dragon:

I didn’t say it wasn’t simple :stuck_out_tongue_winking_eye:
I’ll rebase and merge. I’ll look at @samccone’s link and give the automatic removal another try soon.


fix spelling

Fixed some grammar. I was wondering if the readme could start with Command line utility instead of Magnificent app? Just a thought.

Will this be merged?

Oh, looks like it's already been fixed. I'll close this.

Fix for inspired by a @liamosaur tweet already merged, so I guess this pull request can be closed.
But thanks =)


Add a hover tip to let user know that holding "Alt" opens profile in a new pane

Description of the new feature/enhancement
If we hold "Alt" when clicking "+" or a profile name, profile will open in a new pane instead of a tab. Very cool, but undiscoverable. A hover tip like "Hold Alt to open as a new pane" would help a user know about a possible action.
Same applies to "Settings" to let a user know that with "Alt" could open default.json.

Proposed technical implementation details (optional)

Cool. Nice tip.

Thank you for pointing this out! In a PR now :)

@misinformeddna there's a lot of cool pane stuff linked from #1000, including resize by handle. We're trying to burn down that list :smile:


CHNG Flu Signal

Description
Add outpatient CHNG flu signal. This signal is analogous to the cli and covid signals already produced from CHNG data. The numerator is ICD codes J09*-J11* and we have already been receiving these aggregated counts from CHNG.
Changelog
Itemize code/test/documentation changes and files added/removed.

load_data.py - Use load_flu_data() to create Pandas df with numerator specified as above and denominator as total outpatient visits.
Other files were changed as necessary to create the signal but no modifications to the smoothing, adjustments, etc. were made.

Fixes

Implements #1374

Notes
The pseudocount addition creates a weekday problem. Over the summer, numerators are basically zero for several states while the denominators are smaller on weekends. Adding the pseudocount of 0.5 to the numerator means that there is a spike in the ratio on weekends because the signal value on a weekend is 0.5/(weekend total) and on a weekday is 0.5/(weekday total). This problem is present whether or not weekday adjustment is done, since the weekday adjustment only corrects the numerators which will remain at 0 in these states during the summer.

Unduplicated code and added tests


LICENSE AGREEMENT

It asking for LICENSE AGREEMENT when i opened what to do???

What is asking for LICENSE AGREEMENT?


Update base image for CVE fix.

There are several CVEs in k8s.gcr.io/debian-base-amd64:0.3.

Update the base image to fix those CVEs.

I'll cut a 0.6.1 release once this is merged. Once this is done, we can promote the image to k8s.gcr.io.

/lgtm
/approve


Update Learn “Learn-Metric Explainers”

Update ICU headroom used copy to reflect the fact that we use better data sources now.

Holding off until we flip the switch in covid-data-model too.


[Cluster / SF as SP] Unable to login via IS with credentials of a non admin user in Salesforce

When I followed instructions at document [1], under "Testing the configurations" it asks user to login to the salesforce login URL with credentials of a user who exists in both Salesforce and IS. When I attempt this, I am unable to login to Salesforce with any users except for the account I used to reate the salesforce account.
Eg:-

<EMAIL_ADDRESS>registered in salesforce and configures the domain as describe in [1]
<EMAIL_ADDRESS>creates<EMAIL_ADDRESS>in salesforce as a user
WSO2 IS admin creates<EMAIL_ADDRESS>in IS as a user
<EMAIL_ADDRESS>attempts to login to the salesforce login url with valid credentials.

Expected Results:-

<EMAIL_ADDRESS>should be able to login to salesforce once config [1] is completed
if the assertion fails salesforce logs should reflect that

Actual Results:-

<EMAIL_ADDRESS>is unable to login to salesforce
user1@wso2 is able to login via login url and this takes user through successfully SAML sso redirections. Please refer to the attached screenshots for<EMAIL_ADDRESS>example.
salesforce logs display does not show any errors

[1] https://docs.wso2.com/display/IS540/Logging+in+to+Salesforce+using+the+Identity+Server

Thank you for your contribution!
We are closing this issue since it has not been prioritized for a long time. Chances are that it has already been solved in more recent versions. If not, we will be re-evaluating this when it becomes a priority.


zsh issue with .nvimbind

For some reason ZSH keeps reading the bind command for the Bash Shell inside of the .nvimbind file
/.config/nvim-Lazyman/.nvimsbind:08: command not found: bind
/.config/nvim-Lazyman/.nvimsbind:17: command not found: bind

I’ve attempted to solve it on my own but I’m like completely new to all this which is why I want to set up a good NVIM config to help me out on my path to learning how to program…
I love Lazyman btw it’s such an amazing project!
 /\_/\
(˶ᵔᵕᵔ˶)
 ━〇〇━❥ Thank you for all that you do★

I also use zsh. Let's see what you're environment tells us. What do the following commands output:
echo $SHELL
echo $ZSH_VERSION

The .nvimsbind file uses these to figure out which shell you are running. The test it performs is on:
$SHELL -c 'echo $ZSH_VERSION'

What do those commands output when logged in as the user getting the bind not found errors?
Thanks for the kind words!

@nyaahilism I ran into this same problem in a Docker container where I installed Lazyman and solved it by adding the following line to my ~/.zshrc:
export SHELL=/bin/zsh

If your login shell is zsh you may be able to do something similar in your ~/.zshrc, using the appropriate path to zsh. You can find the path to zsh with a command like type zsh or command -v zsh.


Use get_leading_stride more consistently

The ger implementation should proably use get_leading_stride as well (eventually the other blas functions, too).
https://github.com/QuantStack/xtensor-blas/blob/master/include/xtensor-blas/xblas.hpp#L212-L233

I closed it as ger only works with 1D arrays. But still, for consistency it might be the correct choice to use get_leading_stride


SqlServerResultSetMetaData.getTableName returns blank

Driver version or jar name
mssql-jdbc:6.4.0.jre8
SQL Server version
SQL Server 2016
Client operating system
Windows 10
Java/JVM version
java version "1.8.0_172"
Table schema
Problem description
After executing a statement and getting the SqlServerResultSetMetaData from the result set, calling SqlServerResultSetMetaData.getTableName(columnIndex) resulted in an empty string.
Expected behavior and actual behavior
Expected to see the table name the column is associated with.
Actual result is an empty string.
Repro code
String sql = "select * from table1";
try (Statement stmt = connection.createStatement())
{
      try (ResultSet resultSet = stmt.executeQuery(sql))
      {
             ResultSetMetaData metadata = resultSet.getMetaData();
             String tableName = metadata.getTableName(1);
      }
}

Hi @thlv, the JDBC specs allow for these functions to return an empty string if inapplicable. The Oracle JDBC driver currently also exhibits the same behavior due to some complications in implementing this feature. For example: if a user joins 2 tables on 'column A' and then calls getTableName on 'column A', what is the "expected behavior" that the driver should exhibit? One "solution" is to return the underlying table name, while another is to return an empty string if there are multiple tables used to create the ResultSet (which is a little weird because a user wouldn't be using this API if they were only selecting data from a single table). Another issue is that the driver would have to do an extra query to obtain information such as table/schema name on a specific column; this information is not sent by the database when returning the ResultSet.
The team will discuss what can be done, and possibly add a "solution" as a feature in the future.


Crouch mode change bugs

Mode change from Crouch -> Swimming -> Walking leaves playerHeight altered.
 Probably changing mode to walking before changing to swimming would work.

Saving while crouched and loading saved game gives player with height altered (Slightly trickier)
How to reproduce

crouch
Let the game save
Exit
Load the save game. Find that your height is altered.

Also,  I am not sure if it is just me...  when I am joined to a headless server,  I hit [ctrl] my character starts to vibrate up and down.

If you keep repeating the process, after a certain repeats you will start falling down through the blocks(upon crouching) and the you can see the upside down(not all of it though, just certain blocks).


Indicator setup Summary tab: Restore link to DIG

Peeled off #431
Design needs fleshing out
When an indicator comes from the DIG, it's nice to have a link to the relevant guidance.

Turns out there is a bug in production, where you see the table when you first create the indicator, but never see it again after saving it.
What I think we should do is simplify the design of this and fix the underlying bug. Will file a new ticket for this, to be addressed post-Winterhawks.

No longer relevant.


[FR]: mermaid gantt export support

love the markwhen tool and hope it support exporting as mermaid gantt format
so I can paste into like Obsidian

I think it makes more sense to create an Obsidian plugin instead

Tracking obsidian support in #103


Size Mismatch

Describe the bug
Hi,
I am trying to convert a two stage model and I have two warning:
size mismatch for rpn_head.rpn_reg.weight: copying a param with shape torch.Size([18, 256, 1, 1]) from checkpoint, the shape in current model is torch.Size([12, 256, 1, 1]).
size mismatch for rpn_head.rpn_reg.bias: copying a param with shape torch.Size([18]) from checkpoint, the shape in current model is torch.Size([12]).
environment:
Please provide your environment by:
python tools/collect_env.py

Collecting environment information...
PyTorch version: 1.10.1
Is debug build: False
CUDA used to build PyTorch: 11.3
OS: Ubuntu 18.04.6 LTS (x86_64)
GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Clang version: Could not collect
CMake version: version 3.22.1
Libc version: glibc-2.17
Python version: 3.7.11 (default, Jul 27 2021, 14:32:16)  [GCC 7.5.0] (64-bit runtime)
Python platform: Linux-5.4.0-91-generic-x86_64-with-debian-buster-sid
Is CUDA available: True
CUDA runtime version: 11.3.109
GPU models and configuration:
GPU 0: NVIDIA TITAN RTX
Nvidia driver version: 465.19.01
cuDNN version: Probably one of the following:
/usr/lib/x86_64-linux-gnu/libcudnn.so.8.2.0
/usr/lib/x86_64-linux-gnu/libcudnn_adv_infer.so.8.2.0
/usr/lib/x86_64-linux-gnu/libcudnn_adv_train.so.8.2.0
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_infer.so.8.2.0
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_train.so.8.2.0
/usr/lib/x86_64-linux-gnu/libcudnn_ops_infer.so.8.2.0
/usr/lib/x86_64-linux-gnu/libcudnn_ops_train.so.8.2.0
Versions of relevant libraries:
[pip3] mmcv-full==1.3.9
[pip3] mmdet==2.11.0
[pip3] mmdet2trt==0.5.0
[pip3] tensorrt==<IP_ADDRESS>
[pip3] torch==1.10.1
[pip3] torch2trt-dynamic==0.5.0
[pip3] torchaudio==0.10.1
[pip3] torchvision==0.11.2
[conda] ffmpeg                    4.3                  hf484d3e_0    pytorch
[conda] mmcv-full                 1.3.9                    pypi_0    pypi
[conda] mmdet                     2.11.0                   pypi_0    pypi
[conda] mmdet2trt                 0.5.0                     dev_0
[conda] pytorch                   1.10.1          py3.7_cuda11.3_cudnn8.2.0_0    pytorch
[conda] pytorch-mutex             1.0                        cuda    pytorch
[conda] tensorrt                  <IP_ADDRESS>                  pypi_0    pypi
[conda] torch2trt-dynamic         0.5.0                     dev_0
[conda] torchaudio                0.10.1               py37_cu113    pytorch
[conda] torchvision               0.11.2               py37_cu113    pytorch
Additional context
Do I have to do something for get rid of this warning? If yes, Please direct me.

Hi,
Could you please provide more detail about the model config?

Sorry for misunderstanding, I solved my issue with changing the values to the original.


Exclude property on ServerSettings doesn't work

Information

Version: 5.34.7
Type: Issue

Description
I'm on windows and i need to exclude some Services from the initialization, because i'm splitting the code in two servers, but the exclude property doesn't work for me. I've tried many options, but couldn't figure out why.
Example
@ServerSettings({
    rootDir,
    httpPort: process.env.PORT || 8080,
    httpsPort: false,
    debug: process.env.NODE_ENV === 'production' ? false : false,
    logger: {
        logRequest: process.env.NODE_ENV === 'production' ? false : false,
        requestFields: ["reqId", "method", "url", "headers", "body", "query", "params", "duration"]
    },
    acceptMimes: ["application/json"],
    mount: {
        '/api': '${rootDir}/controllers/**/*.ts',
    },
    componentsScan: [
        '${rootDir}/services/**/*.ts',
        '${rootDir}/models/**/*.ts',
        '${rootDir}/controllers/**/*.ts'
    ],
    exclude: [
        '${rootDir}/servicesQueue/NpcService.ts',
        '${rootDir}/servicesQueue/NpcService.js',
        '${rootDir}/servicesQueue/AgendaService.ts',
        '${rootDir}/servicesQueue/AgendaService.js',
        '${rootDir}/servicesQueue/**/*.ts',
        '${rootDir}/servicesQueue/**/*.js',
        'NpcService.ts',
        'NpcService.js'
    ],
    routers: {
        mergeParams: false,
        strict: true,
        caseSensitive: true
    },
    swagger: [
        {
            path: '/docs',
            spec: {
                securityDefinitions: {
                    Bearer: {
                        type: 'apiKey',
                        name: 'authorization',
                        in: 'header'
                    }
                },
                security: [
                    {
                        Bearer: []
                    }
                ]
            }
        }
    ]
})

:tada: This issue has been resolved in version 5.34.8 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

Hello @striquer
I'd just published a fix base on the normalize-path module. It should fix the problem on windows. Can you test the new version please ?
See you
Romain

Hi @Romakita,
It still didn't work for me, it loaded the NpcService on the wrong server again.
This is what the Debug showed:

@striquer Your configuration is a bit strange. Directory servicesQueue isn't listed by componentScan so it cannot be loaded by componentScan excepted if your service is used by another services listed by componentScan.
Can you check your code ^^
Can you give an access to your project ?
See you
Romain

Hey @Romakita, you were right, the 5.34.8 solved the problem, after that my mistake is that i was injecting the service that i didn't want on another service included on componentScan. Thanks for the update 😊.
Many Thanks,
Giovanne.


Cannot access field of custom type defined in project

This task is automatically imported from the old Task Issue Board and it was originally created by Greg Ociepka.
Original issue is here.

Thread: https://discord.com/channels/401396655599124480/1050713360511016970
As shown on the screenshots - if I define a custom type (editing the Main.enso in a text editor before launching the GUI), then create an instance of it -I can visualize it nicely to JSON.
See that I have fields foo and bar.
I select the node containing the instance, press Tab and write foo to access that field. After pressing enter, as seen on 2nd screenshot - I get an error that method foo could not be found.
Interestingly, if I close the IDE and run that exact file in the CLI it all works. Also, once I restart the IDE it also works - correctly fetches the field.
So it seems that fetching the field does not work when the node is created.
Comments:
(Greg Ociepka - Dec 23, 2022)

After I restarted, the original accessor that was present there now works, but then when I add another one - it is broken again:
 (Greg Ociepka - Dec 23, 2022)

Low priority - will be a while before users define types. (James Dunkerley - Feb 3, 2023)

As now a newer ticket with clearer description closing this.


Supress locale.getdefaultlocale warnings

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

API change check
API changes are not detected in this pull request.


Add mailer previews

These can be viewed in the browser during development in order to avoid triggering the email, for quickly checking the format/text of an email.

Review app deployed to https://teaching-vacancies-review-pr-2998.london.cloudapps.digital


Zernike polynomial fitting from 3-D coordinates?

Hi, supposing as input we have a set of 3-D points (x,y,z) that lie on a 3 dimensional surface.
How would the zernike fitting function work in this case? From the examples it is not apparent what the input should be exactly.
Would be grateful for your help.
Thank you.

Hi! Perhaps you should look at orthopy instead. This toolbox only support regular Zernike polynomials on a unit disk.

Thank you for your response @jacopoantonello . Wouldn't scaling the 3-D points (x,y,z) to a unit vector make the points to lie on a unit disk?
Then can it be used with your fitting function?


How to manually persist saga instance in specified state

I wonder if it is possible to persist manually stream of events which will represent a saga instance in specified state?
I try to do some integration tests connected with sagas persisted in ES, here is my scenario:

Prepare stream with events:

SagaInstanceTransitioned (Initial)
event1
SagaInstanceTransitioned (state1)

Publish event2 which will change saga state from state1 to state2
Verify if saga has changed the state (state2)

During publishing of event2 I receive error that event2 is not expected in Initial saga state (like the saga would not exist). I suppose that I`m missing some MT configuration (using RabbitMQ).
Can you give me some advice if such scenario is possible?

I would not consider this as any thing related to the persistence. If you want to test your saga - you need to use test harnesses provided by MassTransit.

@pblachut if you want to preinitialize your saga you probably have to publish your messages through MT.

Regarding point no 2: I publish message on the bus which which should generate transition to state 2. It`s integration test and saga is not the only thing.

This is how you test Automatonymous sagas:
https://github.com/MassTransit/MassTransit/blob/develop/src/MassTransit.AutomatonymousIntegration.Tests/Testing_Specs.cs
But you do not need to test with persistence unless you absolutely need to, this will involve embedded ES and it will become too slow. In-memory persistence is just fine to test the saga logic.

But looking at your initial post again (sorry I was reading from mobile) I can conclude that the stream name does not match, you can also check there.

Thanks for your response. Stream name was good, problem is in the state of the bus.
I have changed my test to setup SUT by send all messages on the bus (instead manually persistance saga state to ES). It is not perfect situation (in the test I check handling of two messages) but based on links which you have sent it will be hard to get better results. Thanks!


Added ltce.txt

Long term course offered: https://ltce.in/com_dep_about

@falcon883 Pull request merged. Thank you.