Can't run example app with local KotlinAudio. Type com.doublesymmetry.trackplayer.utils.BundleUtils is defined multiple times

Describe the Bug
I try to follow the steps exactly in the RNTP example app readme, while using local KotlinAudio, but I get the following error every time:

Type com.doublesymmetry.trackplayer.utils.BundleUtils is defined multiple times: /Users/mitch/Repos/react-native-track-player/android/build/.transforms/3fb4316e0ca8a525992dbdac677a1a97/transformed/debug/com/doublesymmetry/trackplayer/utils/BundleUtils.dex, /Users/mitch/Repos/react-native-track-player/example/node_modules/react-native-track-player/android/build/.transforms/b0d5b25d12d32d2575201fe59834a7bd/transformed/debug/com/doublesymmetry/trackplayer/utils/BundleUtils.dex

full error log: https://gist.github.com/mitchdowney/da147d9915aceaa1cbe36aa514461ede
Steps To Reproduce

Clone KotlinAudio locally.
cd ./KotlinAudio
./gradlew -x test build publishToMavenLocal
cd ..
Clone react-native-track-player locally.
Open KotlinAudio/kotlin-audio/build.gradle, and change to the following:

dependencies {
    // implementation 'com.github.doublesymmetry:kotlinaudio:v2.0.0-rc4'
    // used when building against local maven
    implementation "com.github.doublesymmetry:kotlin-audio:2.0.0"

    //noinspection GradleDynamicVersion
    implementation "com.facebook.react:react-native:+"

    // Make sure we're using androidx
    implementation "androidx.core:core-ktx:1.9.0"
    implementation "androidx.localbroadcastmanager:localbroadcastmanager:1.1.0"
    implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.3"
}

The instructions say to "Add mavenLocal() to example/android/build.gradle" but it looks like mavenLocal() is already there, so I don't do anything for this step.
cd ./example
yarn add file:..
cd ..
yarn
yarn build
cd ./example
yarn android

I then get the error I shared the logs with above.
Those are the last sequence of steps I have used. I have also tried going from top to bottom of the example README (where RNTP modules are installed before local KotlinAudio steps are completed), but I get the same error result.
I also tried yarn cache clean before running all steps, but get the same result.
Code To Reproduce
N/A since it is the example app itself I'm having problems with.
Replicable on Example App?
N/A since it is the example app itself I'm having problems with.
Environment Info:
Paste the results of npx react-native info
System:
    OS: macOS 13.2.1
    CPU: (8) x64 Intel(R) Core(TM) i7-7920HQ CPU @ 3.10GHz
    Memory: 788.91 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.17.1 - ~/.nvm/versions/node/v16.17.1/bin/node
    Yarn: 1.22.18 - ~/.yarn/bin/yarn
    npm: 8.15.0 - ~/.nvm/versions/node/v16.17.1/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.11.3 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
    Android SDK: Not Found
  IDEs:
    Android Studio: 2021.2 AI-212.5712.43.2112.8512546
    Xcode: 14.2/14C18 - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.9 - /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2
    react-native: 0.68.5 => 0.68.5
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Paste the exact react-native-track-player version you are using
4.0.0-rc01
Real device? Or simulator?
Real device. Pixel 4a.
What OS are you running?
Android 13
How I can Help
I'm trying to learn Java so I contribute more to the project, but I've run out of ideas for how I can fix this local env problem.

@mitchdowney I took some time to look at this, and I wasn't able to reproduce the issues you're having locally. However, I did notice that some of the KotlinAudio steps are outdated, so I'm hoping this might be the issue.
Can you take a look at the updated instructions I created a PR for here and see if the modifications make a difference in your install process?
https://github.com/doublesymmetry/react-native-track-player/pull/1959

@jspizziri that fixed it 🥳 I was able to run the example app, add some println's to KotlinAudio, and see them in the console. Thanks for your help!


Expose Tables in Quasar

@wemrysi to save on iteration time, is there anything else you can think of that I'll need to expose in quasar in order to access a Tables in sdbe?

Going to just instantiate a MockTables directly in sdbe instead of getting handed it via a Quasar.


[TOPIC-GPIO] drivers: gpio_mcux: Fix handling of disconnect configuration

If the gpio flags are passed such that neither GPIO_INPUT or GPIO_OUTPUT
is set, we should treat this as a disconnected state.  Change the config
code to handle that configuration as a GPIO_INPUT so we aren't
accidently driving something on the pin.
Signed-off-by: Kumar Gala<EMAIL_ADDRESS>

@MaureenHelm its not clear to me if this change makes sense, or if we should treat (!GPIO_INPUT && !GPIO_OUTPUT) as an unsupported config options and return -ENOSUP.

Closing this as @pabigot PR makes sense to me.  Will leave it up to @MaureenHelm to state otherwise.


pkg,cmd: Add Kubernetes pod and service CIDR customziation

Add cmd flags --pod-cidr and --service-cidr
Pick an appropriate DNS Service IP from the service range

Fixes/unblocks/replaces #236 #245 #250
Examples
Default (same behavior). The DNS service IP is mentioned in output (when not self-hosted kubelet).
$ bootkube render --asset-dir=assets --api-servers=https://node1.example.com:443 --api-server-alt-names=DNS=node1.example.com
Host kubelet MUST use --cluster-dns=<IP_ADDRESS>
Writing asset: assets/manifests/kube-scheduler.yaml
...

Customize the pod or service CIDR range.
$ bootkube render --asset-dir=assets --api-servers=https://node1.example.com:443 --api-server-alt-names=DNS=node1.example.com --pod-cidr <IP_ADDRESS>/16 --service-cidr=<IP_ADDRESS>/24
Host kubelet MUST use --cluster-dns=<IP_ADDRESS>
...

Conflicting CIDRs
$ bootkube render --asset-dir=assets --api-servers=https://node1.example.com:443 --api-server-alt-names=DNS=node1.example.com --pod-cidr <IP_ADDRESS>/24 --service-cidr=<IP_ADDRESS>/16
Error: Pod CIDR <IP_ADDRESS>/24 and service CIDR <IP_ADDRESS>/16 must not overlap
Pod CIDR <IP_ADDRESS>/24 and service CIDR <IP_ADDRESS>/16 must not overlap

$ bootkube render --asset-dir=assets --api-servers=https://node1.example.com:443 --api-server-alt-names=DNS=node1.example.com --service-cidr=<IP_ADDRESS>/16
Error: Pod CIDR <IP_ADDRESS>/16 and service CIDR <IP_ADDRESS>/16 must not overlap
Pod CIDR <IP_ADDRESS>/16 and service CIDR <IP_ADDRESS>/16 must not overlap
...

DNS IP can't be picked from the service range
bootkube render --asset-dir=assets --api-servers=https://node1.example.com:443 --api-server-alt-names=DNS=node1.example.com --service-cidr=<IP_ADDRESS>/30
Error: DNS service IP <IP_ADDRESS> is not in <IP_ADDRESS>/30
DNS service IP <IP_ADDRESS> is not in <IP_ADDRESS>/30

test this please

rktbot test this please

Those decisions reasonable? cc @ericchiang @aaronlevy

@dghubble just a couple follow ups. Overall lgtm.

retest this please

rktbot run tests

rktbot run tests

@pbx0 @aaronlevy all green and my comments were addressed but I don't have approval powers. Can one of you take a look at this?

rktbot run tests

rktbot run etcd tests

Rebased and passing conformance tests.

I hadn't realized the other places certain IPs are assumed. For etcd, we could have another function which picks some IP within the service range. For that controller IP, that seems to be a Vagrant specific thing, I dunno if its needed.

@aaronlevy Shouldn't be too hard to add a test for this. Do we want this before merging? If so, I focus on it.

rktbot run tests

@pbx0 test won't pass until this is merged (we really need a way to get tests inline with the repo itself). It would be a good test to have so that we can validate this. If it's before/after the PR I feel less strongly (as long as we're minimally validating the changes here ourselves).

To summarize the various dependencies on fixed IPs which this should replace:

Pod CIDR range (must be detected and used by temporary control plane)

kube-controller-manager.yaml
kube-proxy.yaml
kube-flannel-cfg.yaml

Service CIDR range (must be detected and used by temporary control plane)

kube-apiserver.yaml

Apiserver Service IP (1st IP in service range)

Used in TLS cert rendering

Kube DNS Service IP (10th IP in service range)

kubelet.yaml
kube-dns-svc.yaml
Must match on-host kubelet

Etcd Service IP (15th IP in service range)

etcd-service.yaml
must be detected and used in temporary control plane (TODO in bootkube start)

Users of hack examples should continue using the default pod / service CIDR ranges. I think figuring out a way to generate the right scripts and user-data is out of scope.
@pbx0 If its plausible to test with a custom range, that would be excellent.

Using matchbox and copying the patched bootkube binary for render and start, I can tentatively validate. Used --pod-cidr <IP_ADDRESS>/16 and --service-cidr <IP_ADDRESS>/16`.
kube-system   checkpoint-installer-60xrd                1/1       Running   0          3m        <IP_ADDRESS>   node1.example.com
kube-system   kube-apiserver-ctxsv                      1/1       Running   3          3m        <IP_ADDRESS>   node1.example.com
kube-system   kube-controller-manager-993636299-5m1z6   1/1       Running   0          3m        <IP_ADDRESS>     node1.example.com
kube-system   kube-controller-manager-993636299-5z51d   1/1       Running   0          3m        <IP_ADDRESS>     node1.example.com
kube-system   kube-dns-4101612645-qmxdw                 4/4       Running   0          3m        <IP_ADDRESS>     node3.example.com
kube-system   kube-flannel-r50f7                        2/2       Running   0          3m        <IP_ADDRESS>   node3.example.com
kube-system   kube-flannel-zc96p                        2/2       Running   0          3m        <IP_ADDRESS>   node1.example.com
kube-system   kube-flannel-zd63g                        2/2       Running   0          3m        <IP_ADDRESS>   node2.example.com
kube-system   kube-proxy-73g1d                          1/1       Running   0          3m        <IP_ADDRESS>   node1.example.com
kube-system   kube-proxy-7gkd3                          1/1       Running   0          3m        <IP_ADDRESS>   node2.example.com
kube-system   kube-proxy-pdbc3                          1/1       Running   0          3m        <IP_ADDRESS>   node3.example.com
kube-system   kube-scheduler-2870198727-gn05w           1/1       Running   0          3m        <IP_ADDRESS>     node1.example.com
kube-system   kube-scheduler-2870198727-kmdcq           1/1       Running   0          3m        <IP_ADDRESS>     node1.example.com
kube-system   pod-checkpointer-node1.example.com        1/1       Running   0          3m        <IP_ADDRESS>   node1.example.com

NAMESPACE     NAME         CLUSTER-IP      EXTERNAL-IP   PORT(S)         AGE
default       hellogo      <IP_ADDRESS>   <none>        80/TCP          2s
default       kubernetes   <IP_ADDRESS>       <none>        443/TCP         6m
kube-system   kube-dns     <IP_ADDRESS>      <none>        53/UDP,53/TCP   6m

Last commit adds bootkube start detection of the etcd service IP from assets to avoid breaking experimental self-hosted etcd which used a fixed IP. The IP is plumbed down into etcd utils for now (lots going on for a utils package!). etcd team has agreed to re-structure this in future. @hongchaodeng

(lots going on for a utils package!). etcd team has agreed to re-structure this in future. @hongchaodeng

If you ever want to get rid ot a const, you should expect A LOT OF changes. Const is designed to use in funcs without passing it down from the caller. It has nothing to do with this particular code.
We need to change the code structure due to the removal of the const. Ideally, you should clean everything up since this exact PR breaks the previous assumption.

self hosted etcd part change looks good to me.

@xiang90 agreed, for sure. Yeah, I'd appreciate that, I'll add the TODO for now.

rktbot run tests

rktbot run etcd tests

rktbot run tests

Tested locally with the flags and this works for me. One thing to note: for self-hosted-etcd the --etcd-servers flag in the render step must have an IP that is the 15th address in the service CIDR range. It seem like this could be auto-inferred from the --service-cidr flag, but I don't care if we wait until this is non-experimental.

@pbx0 that's a good point - can you open a new issue to track that (that we should infer the address if we're using --experimental-self-hosted-etcd

Another flake on kola: --- FAIL: bootkube.destruct.delete on gce

@pbx0 I opened an issue for auto-picking the etcd-servers: https://github.com/kubernetes-incubator/bootkube/issues/329

thanks, just saw this


Allow Opus audio files

Standardised since 2011, Opus is an efficient audio-coding format that is developed and freely licensed by the IETF. As neon_leitz (Discord) mentioned, the browser compatibility situation is as follows: https://caniuse.com/opus.
Sample file: "S_PV.9607 Discours de Broadhurst Estival.opus" (17 Apr. 2024, statement at the UN Security Council)

Looks good, thanks, I'll try it out shortly.  Cheers!

Thanks, tested out, works just fine.  Cheers!


Add binaries for Ubuntu 16.04 Xenial and for ARM architecture

Hi,
can you please add binaries for Ubuntu 16.04 LTS to your repository and binaries for ARM based systems?
Friendly Regards

Packages for Ubuntu 16.04 are on the way but we wont provide packages for ARM in the near future (unless somebody contributes or funds it).

Is there any update for the Ubuntu 16.04 packages?

it looks like they build now but I dont have time to test it - so if you volunteer to give them a try I will upload them to the server

sure, I'll give it a try and report back
On Mon, Jan 23, 2017 at 10:51 PM, Oliver Welter<EMAIL_ADDRESS>wrote:

it looks like they build now but I dont have time to test it - so if you
volunteer to give them a try I will upload them to the server
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/openxpki/openxpki/issues/438#issuecomment-274628941,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AD8SB-EsIEKG5yrpAYVruk2LEg6aZkLiks5rVSDngaJpZM4KLuHS
.

Let me know when you have them uploaded

Freshly build from the new bugfix release http://packages.openxpki.org/ubuntu-xenial/
See the readme for installation hints

Ok, got it.
Here are my findings so far:

perhaps it's better to put the following in the readme to download the packages:
wget -r -l2 --no-parent --accept "*.deb" http://packages.openxpki.org/ubuntu-xenial/
otherwise it mirrors the whole thing
After installation of everything openxpkiadm is missing. Which package provides it?
The installation puts the webui in /var/www instead of /var/www/html/ which is the default webroot

We will replace the wget with a real repo once its done but thanks for the hint, I wrote this wtihout checking it back ;)
I just checked the package and all perl files are missing - so this wont work anyway. I did not have thit problem with my test builds yesterday :/
I need to check the build scripts and come back when we figured out whats wrong

I'm also looking forward to the 16.04 packages! Just saw the 1.18.1 release for 14.04 LTS - so I go for the above mentioned steps... let's have it a try!

Well the ubuntu-xenial is gone?

Package build is broken for Ubuntu 16.04, so we only support 14.04 yet. Also see #482

Any progress at all in creating packages for Ubuntu 16.04?  This request has been open for well over a year now. I'm happy to try and fix the build process if there were instructions for installing from source. I need to know what the build dependencies are.

We did not invest on this further and at least the core team wont. There are problems with the build system on ubuntu which differs from debian and we do not have the resources to fix this.
The primary platform is debian jessie with stock perl for now, we are working on upgrading to strech. If stretch builds work on Ubuntu LTS without any issues, we might bring this back later (likely on Ubuntu 18.04 LTS then)

To build from source you can use the Makefile in core/server/ - last time we investigated the build problem it fails to put the files created into the package dir but installed it directly to the "real" path below the root folder. Also see the contents in package/debian as the cgi wrappers and some other files are not part of the Makefile!


Public label link (QR code) doesn't start with https:// when used behind a HTTPS proxy

Describe the bug
When using a HTTPS proxy (NGINX in my case) the public label link is determined correcly, with one exception: the scheme of the public label link is http:// and not https://.
Probably this issue is caused by this code in \Extensions\UrlHelper.cs which I believe ignores the "X-Forwarded-Proto" header:
        public static string GetBaseUrl(HttpRequest request)
        {
            // TODO: Use Microsoft.AspNetCore.Mvc.Routing.UrlHelper?

            return $"{request.Scheme}://{request.Host}{request.PathBase}";
        }

It seems to be not the best solution, but if may work if you check for "X-Forwarded-Proto" in request.Headers instead of using request.Scheme.
EDIT:
Or probably this is the reason, see here for more details:
Invoke the UseForwardedHeaders method before calling other middleware. Configure the middleware to forward the X-Forwarded-For and X-Forwarded-Proto headers

Hi @susedv,
Thank you for your feedback! Please keep me posted.
You’ll have the configure the IP address of your reverse proxy. You can do that with an environment variable named KnownProxy. This way, the middlware will properly interpret the X-Forwarded-For and X-Forwarded-Proto headers.
If you are using docker compose, you can do that like this:
environment:
      VIRTUAL_HOST: qr.doutorpc.net
      VIRTUAL_PORT: 8080
      LETSENCRYPT_HOST: qr.doutorpc.net
      KnownProxy: '<IP_ADDRESS>'

Then, confirm that everything is OK, visiting the page: /Home/Info
Let me know if this solves your problem.

I’ll try to find some time to write proper installation instructions…

OK. So ELabel is running on the local IP <IP_ADDRESS>, right?
Your proxy is in a different machine? If so, you need to configure KnownProxy with that proxy local IP, so the server will trust that proxy.
Note: Proxies running on loopback addresses (<IP_ADDRESS>/8, [::1]), including the standard localhost address (<IP_ADDRESS>), are trusted by default.
More info here:
https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/proxy-load-balancer?view=aspnetcore-8.0
Also, have a look on your page at address /Home/Info for valuable information about your server.
I'm available to help with your configuration. If you want, send me an email to elabel at doutorpc.net

Note: In my sample, VIRTUAL_HOST is used for jwilder/nginx-proxy. You don't need it if not using this image. LETSENCRYPT_HOST is for jrcs/letsencrypt-nginx-proxy-companion image: https://github.com/jwilder/docker-letsencrypt-nginx-proxy-companion

Ok, I think I misunderstood which IP address should be set in KnownProxy, now I have changed it to <IP_ADDRESS> (nginx container). ´<IP_ADDRESS>´ is the IP address of the Docker VM, where all containers are running.
But also with ´KnownProxy: '<IP_ADDRESS>'´ and without VIRTUAL_HOST the label public link starts with http://.
You wrote "...so the server will trust that proxy.", but the proxy works with https:// with no issues.
I'm speaking about the absolute link shown in Product->Details->QR Code->Label public link and the link inside the QR Code.
All other links are relative and start automatically with https://.
Thank you.
Containers

NGINX Proxy Manager

:(
Have a look on the /Home/Info page (https://e-label.***.net/Home/Info).
In there, you'll find "Remote IP Address". If the proxy IP is right, it will show the real client IP address. If not, it will show the proxy IP (and then you can adjust the value of  KnownProxy).
Also, check the Headers property on that page.
In mine I have:
X-Forwarded-Ssl=on
X-Forwarded-Port=443
Try to add X-Forwarded-Ssl on yours.

Sorry, I forgot to add /Home/Info, I believe it looks good:

The NGINX config is now as follows:
proxy_set_header X-Forwarded-Scheme https;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-Ssl on;
proxy_set_header X-Forwarded-Port 443;

OK. You have to put <IP_ADDRESS> on KnownProxy. Not <IP_ADDRESS>

Your last post is the right solution - now it works with KnownProxy: '<IP_ADDRESS>'. It seems to be the bridge IP address  / gateway of the ELabel stack and I expected it to be the IP address of the reverse proxy container or the docker VM it is running on.
Thank you!

 Please star the project ;)


Error when loading script

I am having this issue when trying to add the script to obs
[zoom_and_follow_mouse.py] Traceback (most recent call last):
[zoom_and_follow_mouse.py]   File "C:/Program Files/obs-studio/data/obs-plugins/frontend-tools/scripts\zoom_and_follow_mouse.py", line 14, in
[zoom_and_follow_mouse.py]     import pywinctl as pwc
[zoom_and_follow_mouse.py]   File "C:\Users\pikah\AppData\Local\Programs\Python\Python36\lib\site-packages\pywinctl_init_.py", line 4
[zoom_and_follow_mouse.py]     from future import annotations
[zoom_and_follow_mouse.py]     ^
[zoom_and_follow_mouse.py] SyntaxError: future feature annotations is not defined

I'm having the same issue. did you figure out how to fix it?

Same error here.
[zoom_and_follow_mouse.py] SyntaxError: future feature annotations is not defined

Same issue, i need help pls.

You are using a version of python <3.7. future annotations was introduced as of python 3.7. As stated in the project description, this script was built using python 3.10. Closing as python installation errors are out of scope for support.

i fixed it by downloading an older version of pywinctl (Pywinctl 0.0.38)


⚠ Bofrost.at has degraded performance

In 5e6c01d, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1257 ms

Resolved: Bofrost.at performance has improved in f0a2958 after 26 minutes.


Unable to connect to SignalR hub from using "signalr-client-1.0.0-alpha2-final.js" with "https" self-signed certificate

I am facing a problem while connecting to SignalRHub from signalr-client-1.0.0-alpha2-final.js,
I am able to connect it when connecting to "http:" but with "https:" I am unable to connect.
I am using a self-signed certificate here. Following is my code, do let me know if I am missing something.
<script type="text/javascript">
        var transport = signalR.TransportType.WebSockets;
        var connection = new signalR.HubConnection(`https://${document.location.host}/chat`, { transport: transport });
        var messageInput = document.getElementById('message');
        var name = prompt('Enter your name:', '');
        var button = document.getElementById("sendMessage");
        connection.on('broadcastMessage', (name, message) => {
            var liElement = document.createElement('li');
            liElement.innerHTML = '<strong>' + name + '</strong>:  ' + message;
            document.getElementById('discussion').appendChild(liElement);
        });
        button.addEventListener("click", event => {
            connection.invoke('send', name, messageInput.value);
            messageInput.value = '';
            messageInput.focus();
        });
        connection.start();
    </script>

I have implemented a custom retry policy here. You can ignore this as of now.
I have also tried changing TransportType.WebSockets; to TransportType.Longpooling but had no luck.
Is there any workaround to bypass the self-signed certificate for the development environment?

Can you confirm the URL you are using in your HubConnection constructor? The code snippet shows http but the DevTools log shows wss (which indicates https was used). Also, I presume you've verified that the port number is correct as well?
Is there anything in the Network tab for the WebSocket request? We can see the 404 response there. Also, do you have any server logs indicating an error?

Ah my bad, I have updated my question. Yes i am using "Https".
I have checked the port number.
I am able to connect with "https" in the c# client by ignoring certificate. But doing the same with java script client it is throwing errors.
I don't have any server logs.
I can easly ignore the certificate and in c#, is there any way to ignore the same in javascript(XmlHttpsRequest)?

It's not possible to do this programmatically (it would be a security risk, because JavaScript code is often untrusted and has to be sandboxed). If you navigate to the page normally and add the certificate as a trusted certificate in your browser, it should be treated as trusted by XHR as well.


Home: Follower count

No profiles seem to load for Sam's Followers tab, even though he has them and the counter indicates the number of users that are following him.

Scratch this... it just took a minute to load unfortunately.


Python 3 OpenGEE Server

Migration of OpenGEE Server to python 3.
To test (should be done on both CentOS and Ubuntu):

Build and install according to the build docs (https://github.com/tst-cjeffries/earthenterprise/blob/python_3_server/earth_enterprise/BUILD_RHEL_CentOS.md)
Run the tutorials.
sudo /opt/google/share/tutorials/fusion/download_tutorial.sh
sudo cp earthenterprise/earth_enterprise/src/fusion/tools/gee_test/tutorial_files/providers.xml /gevol/assets/.userdata/
sudo env "PATH=$PATH:/opt/google/bin" earthenterprise/earth_enterprise/src/fusion/tools/gee_test/run_tutorial.sh
sudo env "PATH=$PATH:/opt/google/bin" earthenterprise/earth_enterprise/src/fusion/tools/gee_test/run_historical.sh
Then wait until the tutorials are finished building. This can be monitored in with the status scripts in that same directory.
sudo env "PATH=$PATH:/opt/google/bin" earthenterprise/earth_enterprise/src/fusion/tools/gee_test/publish_tutorial.sh
sudo env "PATH=$PATH:/opt/google/bin" earthenterprise/earth_enterprise/src/fusion/tools/gee_test/publish_historical.sh
Verify the tutorials. This is just a matter of opening them in EC (browser for 2d) and inspecting the imagery, vector, and terrain. On historical databases, historical imagery should work.
Note that the various searches, snippets, cutter, and wms don't work, so they do not need to be tested.
Open the Diagnostics page on the OpenGEE Admin page and verify Python 3 is being used. Version number tests are expected to fail due to branch tagging issues.
Verify that databases can be published/unpublished on the OpenGEE Admin page.
Probably should test virtual hosts (https://t-sciences.jira.com/wiki/spaces/GEE/pages/416318328/Virtual+Host+Tests)
Admin console tests also (https://t-sciences.jira.com/wiki/spaces/GEE/pages/416153837/Admin+Console+Tests)
Verify the uninstall works.

I may have missed a thing or two, so If anything else you feel should be tested, feel free.

Finished testing and everything worked except for my one comment about pip


Open-search process crashing on using the index.lifecycle.name in the API body #102

Describe the bug
While applying the policy _index_template on an index, Open-search crashed on using the index.lifecycle.name in the API body. This setting is not available in open-search but it shouldn't crash the process and return with the exception.
This is occurring on a vanilla OS cluster even without index management plugin installed on the cluster.
Issue opened in Index Management Repo: https://github.com/opensearch-project/index-management/issues/102
To Reproduce

Run an open-search cluster.
Hit the endpoint with an API: curl -X PUT "localhost:9200/_index_template/timeseries_template?pretty" -H 'Content-Type: application/json' -d' { "index_patterns": ["*"], "data_stream": { }, "template": {   "settings": {     "number_of_shards": 1,     "number_of_replicas": 1,     "index.lifecycle.name": "timeseries_policy"   } } } '
The response returned is curl: (52) Empty reply from server
The log trace found in the ES logs is pasted below.

Expected behavior
As the setting is not available the process shouldn't crash but return the exception as setting not found.
Log Trace
=== Standard error of nodenode{::runTask-0} === »   ↓ last 40 non error or warning messages from /local/home/aditjind/gh/OpenSearch/build/testclusters/runTask-0/logs/opensearch.stderr.log ↓ » fatal error in thread [opensearch[runTask-0][masterService#updateTask][T#1]], exiting »  java.lang.AssertionError: expected [index.lifecycle.name] to be private but it was not »       at org.opensearch.cluster.metadata.MetadataCreateIndexService.validatePrivateSettingsNotExplicitlySet(MetadataCreateIndexService.java:1047) »       at org.opensearch.cluster.metadata.MetadataCreateIndexService.getIndexSettingsValidationErrors(MetadataCreateIndexService.java:1037) »       at org.opensearch.cluster.metadata.MetadataIndexTemplateService.validate(MetadataIndexTemplateService.java:1305) »       at org.opensearch.cluster.metadata.MetadataIndexTemplateService.validate(MetadataIndexTemplateService.java:1226) »       at org.opensearch.cluster.metadata.MetadataIndexTemplateService.validate(MetadataIndexTemplateService.java:1221) »       at org.opensearch.cluster.metadata.MetadataIndexTemplateService.addIndexTemplateV2(MetadataIndexTemplateService.java:507) »       at org.opensearch.cluster.metadata.MetadataIndexTemplateService$4.execute(MetadataIndexTemplateService.java:403) »       at org.opensearch.cluster.ClusterStateUpdateTask.execute(ClusterStateUpdateTask.java:60) »       at org.opensearch.cluster.service.MasterService.executeTasks(MasterService.java:715) »       at org.opensearch.cluster.service.MasterService.calculateTaskOutputs(MasterService.java:337) »       at org.opensearch.cluster.service.MasterService.runTasks(MasterService.java:232) »       at org.opensearch.cluster.service.MasterService.access$000(MasterService.java:86) »       at org.opensearch.cluster.service.MasterService$Batcher.run(MasterService.java:164) »       at org.opensearch.cluster.service.TaskBatcher.runIfNotProcessed(TaskBatcher.java:163) »       at org.opensearch.cluster.service.TaskBatcher$BatchedTask.run(TaskBatcher.java:201) »       at org.opensearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:697) »       at org.opensearch.common.util.concurrent.PrioritizedOpenSearchThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedOpenSearchThreadPoolExecutor.java:266) »       at org.opensearch.common.util.concurrent.PrioritizedOpenSearchThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedOpenSearchThreadPoolExecutor.java:229) »       at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) »       at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) »       at java.base/java.lang.Thread.run(Thread.java:832)
Host/Environment (please complete the following information):

OS: Linux
Version: 5.4.116-64.217.amzn2int.x86_64

Looks like the JVM parameters had assertions enabled which is the case with test clusters. So most likely the crash is localized to the test setup? Can you try disabling assertions and verifying the same?

Should this be an assertion though? Even with assertions enable I don't think we want to be bringing down a cluster by an external query.

So what a fix could look like? Replace the assertion with an error log and a return a 400 or 500 status code? Or just ignore the lifecycle name value and log a warning?

So what a fix could look like? Replace the assertion with an error log and a return a 400 or 500 status code? Or just ignore the lifecycle name value and log a warning?

From my uneducated opinion this should be treated as any invalid input and return a 400.

Fixed in https://github.com/opensearch-project/OpenSearch/pull/1070 and https://github.com/opensearch-project/OpenSearch/pull/1060 for OpenSearch 1.1.


Linux 15.1 errors on language pack download

On Ubuntu 14 LTS testing the recent 15.1 installations (not upgrade) the following error is encountered when trying to update or install language packs both through UI and manually using the kalite command. Replicated by @aronasorman

ed@ed-VirtualBox:~$ kalite manage languagepackdownload -lde --commandline
INFO:kalite:Downloading language pack for lang_name=Deutsch, software_version=0.15
INFO:kalite:Downloading language pack 'de'
INFO:kalite:Retrieving language pack: de
INFO:kalite:Unpacking language pack 'de'
INFO:kalite:Unpacking new translations
WARNING:py.warnings:/usr/lib/python2.7/dist-packages/kalite/updates/management/commands/languagepackdownload.py:142: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  raise type(e), type(e)(e.message + _("Language pack corrupted. Please try downloading the language pack again in a few minutes."))

INFO:kalite:Error: File is not a zip fileLanguage pack corrupted. Please try downloading the language pack again in a few minutes.
INFO:kalite:Cancelling process languagepackdownload
Traceback (most recent call last):
  File "/usr/share/kalite/python-packages/django/core/management/base.py", line 224, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/share/kalite/python-packages/fle_utils/django_utils/command.py", line 214, in execute
    super(LocaleAwareCommand, self).execute(*args, **kwargs)
  File "/usr/share/kalite/python-packages/fle_utils/chronograph/management/croncommand.py", line 38, in execute
    super(CronCommand, self).execute(*args, **kwargs)
  File "/usr/share/kalite/python-packages/django/core/management/base.py", line 263, in execute
    output = self.handle(*args, **options)
  File "/usr/lib/python2.7/dist-packages/kalite/updates/management/commands/languagepackdownload.py", line 85, in handle
    unpack_language(lang_code, zip_filepath=zip_filepath)
  File "/usr/lib/python2.7/dist-packages/kalite/updates/management/commands/languagepackdownload.py", line 142, in unpack_language
    raise type(e), type(e)(e.message + _("Language pack corrupted. Please try downloading the language pack again in a few minutes."))
BadZipfile: File is not a zip fileLanguage pack corrupted. Please try downloading the language pack again in a few minutes.
ed@ed-VirtualBox:~$

Not just a problem on Linux. It's in the Mac as well.
On Thu, Dec 3, 2015 at 1:08 PM, Ed Dixon<EMAIL_ADDRESS>wrote:

On Ubuntu 14 LTS testing the recent 15.1 installations (not upgrade) the
following error is encountered when trying to update or install language
packs both through UI and manually using the kalite command. Replicated by
@aronasorman https://github.com/aronasorman
[image: 2015-12-03_13-15-28]
https://cloud.githubusercontent.com/assets/4349806/11574110/e30e8028-99c6-11e5-894a-ce1a340b36e1.png
ed@ed-VirtualBox:~$ kalite manage languagepackdownload -lde --commandline
INFO:kalite:Downloading language pack for lang_name=Deutsch, software_version=0.15
INFO:kalite:Downloading language pack 'de'
INFO:kalite:Retrieving language pack: de
INFO:kalite:Unpacking language pack 'de'
INFO:kalite:Unpacking new translations
WARNING:py.warnings:/usr/lib/python2.7/dist-packages/kalite/updates/management/commands/languagepackdownload.py:142: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
raise type(e), type(e)(e.message + _("Language pack corrupted. Please try downloading the language pack again in a few minutes."))
INFO:kalite:Error: File is not a zip fileLanguage pack corrupted. Please try downloading the language pack again in a few minutes.
INFO:kalite:Cancelling process languagepackdownload
Traceback (most recent call last):
File "/usr/share/kalite/python-packages/django/core/management/base.py", line 224, in run_from_argv
self.execute(*args, **options.dict)
File "/usr/share/kalite/python-packages/fle_utils/django_utils/command.py", line 214, in execute
super(LocaleAwareCommand, self).execute(*args, **kwargs)
File "/usr/share/kalite/python-packages/fle_utils/chronograph/management/croncommand.py", line 38, in execute
super(CronCommand, self).execute(*args, **kwargs)
File "/usr/share/kalite/python-packages/django/core/management/base.py", line 263, in execute
output = self.handle(*args, **options)
File "/usr/lib/python2.7/dist-packages/kalite/updates/management/commands/languagepackdownload.py", line 85, in handle
unpack_language(lang_code, zip_filepath=zip_filepath)
File "/usr/lib/python2.7/dist-packages/kalite/updates/management/commands/languagepackdownload.py", line 142, in unpack_language
raise type(e), type(e)(e.message + _("Language pack corrupted. Please try downloading the language pack again in a few minutes."))
BadZipfile: File is not a zip fileLanguage pack corrupted. Please try downloading the language pack again in a few minutes.
ed@ed-VirtualBox:~$
—
Reply to this email directly or view it on GitHub
https://github.com/learningequality/installers/issues/298.

Good to know I created a seperate issue with other problems discovered working with the language packs that I suspected where main repo related and referenced this there or at least tried to please make sure I did that right or move this to the repo as needed. Thanks,
https://github.com/learningequality/ka-lite/issues/4727

Just verified this also exists on the recent Windows and MAC, 0.15.1 builds as well so moving screen shots and the traceback to the main repo issue and closing here. Please address the issue in the main repo.
https://github.com/learningequality/ka-lite/issues/4727
Thanks,


Enable pylint in CI

requirements.txt was left out of date, but CI did not detect it.
Hopefully pylint would have detected that, and anyway it would be nice to have pylint enabled in this repository.

FYI: @trym-b

It is easy to add, but I don't want to make the CI here so complicated that the regular users of this repo does not understand what is going on.

Maybe we can try and see how it goes?

It is easy to add, but I don't want to make the CI here so complicated that the regular users of this repo does not understand what is going on.

Then they need to learn. Better that than broken repository for end users. #6 breaks master, and master in cpp-extra-samples is already broken (https://github.com/zivid/cpp-extra-samples/issues/1#issuecomment-511924511). Better that we struggle with getting code merged than that customers struggle using our code. We aim for high quality and simplicity, CI is the simplest way I know of to achieve that.

This issue has been fixed


Way to exclude sensitive data

Hi, I started using Vim plugin. I'm seeing suggestions based on sensitive data (passwords / secrets) that appeared in some other files I must have opened with Vim I guess. For example if there would be a password starting with "fo" I would see it appear as suggestion when I start typing "foo" (for a variable name for example).
Is there a way to prevent strings that look like they could be passwords from being remembered?

I've also noticed that other people's emails can be leaked through autocompletion (cloud beta)

Currently, there's no way to exclude specific tokens from being indexed by TabNine.
TabNine does not index files that are in .gitignore, .hgignore etc.
Usually sensitive data is not committed to vcs, and so it resides in specific files which are in the vcs ignore file, and so will be ignored by TabNine.
If that is not the case, you can define a .tabnineignore file, which will cause the relevant files to be ignored by TabNine.


Handle buffer overflow errors

When the log message is larger then the buffer size, a java.nio.BufferOverflowException is generated.
This PR handles the error condition the same way as messages which cannot be added to the buffer.

I cannot reproduce the travis build errors on my machine. Could there be some kind of race condition in that test?

I fixed some test failures at https://github.com/fluent/fluent-logger-java/commit/969b88d0d1ed9a5aa27e92ccc72621d524c76cdf.
Could you try git rebase master to it?

Builds clean for me now

@wsalembi Thanks for the contribution!


What's the difference between OFA-CN and OFA-zh

https://github.com/OFA-Sys/OFA/blob/main/checkpoints_cn.md
https://modelscope.cn/models/damo/ofa_pretrain_base_zh/summary

Our bad for the naming. Same for them. Yet we remove optimizer states for OFA-zh so that it looks much smaller.


Feature Request: Take notes on checks without a silence

Today there are several hacky ways to take notes on a check.

Apply JSON to a check on a server.  Uchiwa will puke the JSON out, not pretty but it works
Apply JSON to a client config.  Uchiwa will puke the JSON out, not pretty but it works
Silence a check and add notes (viewing this is disconnected in Uchiwa, but at least notes exist)

There is no way to add notes to a check or client through REST or Uchiwa and have that display in the UI or poll a client or check and get the notes back via REST.  Currently everything requires a deployment and a server restart to get new note type information into the system.
Expected Behavior
A notes endpoint for checks and clients.
I think a first step is notes, but this could lead to:

Linked notes by note ID
Auto expiring notes by date or by alarm clearing
A blame button with user lookup

Current Behavior
Notes are cumbersome
Possible Solution
/client/:client:/notes endpoint to accept notes
/results/:client/:check/notes endpoint to accept notes

This seems to be what I was looking for in more generic form.
I am interested into adding dynamic information into clients.
We use stashes for multiple purposes and I think that could be used also to store notes and use hostname as stash path etc.
The problem is, that there is no mechanism how to display content of stash into client information.
If that is supported, I think usage of stashes and this non-existing feature would solve many wishes of Sensu users.
For instance, client configuration could contain api filtering rule or exact path to stash
filter -> stashes?filter.content.hostname=superserver001
exact path -> superserver001/notes
Then, when requesting client info via API, internal mechanism would extract data from stash(es) and merge with "static" client data.
What do you think on that approach? (looking in direction of developers and users)
Thx

This would be a great Uchiwa feature request, to use Sensu API Stashes for check notes 👍
@gwagner please create a Uchiwa feature request github issue at https://github.com/sensu/uchiwa Sensu Core does not need to implement anything to make this all possible.
I imagine Uchiwa can create and associated specific API Stashes with their corresponding Sensu client/check. /cc @palourde


Make golang-devtools usable for services

Enhancements to golang-devtools to make it usable for services:

Get buf from the buf docker image instead of github artifacts
Change golang compilation to be deterministic by removing version.buildDT and replacing it with version.gitCommitDate
Add modd under watch target
Add and exposed more targets
Remove hadolint validation caching as it is incredibly quick

This is done in conjunction with this PR:

https://github.com/coopnorge/products-information-service/pull/11

Closes https://github.com/coopnorge/engineering-docker-images/issues/328

Nice job, looking forward to using this!


Feat: add  'topRight'  position configuration in BadgesShapes

Checklist

[x] tests and/or benchmarks are included
[x] commit message follows commit guidelines

Description of change

In the badge function,G6 v5 allows users to pass in rightTop, leftTop,topLeft,bottomLeft,leftBottom, etc., but not topRight. In my opinion, That would be better to add a topRight position configuration.

old version

case 'rightTop':
  pos.x = keyShapeBBox.max[0] - bgHeight / 2 + offsetX;
  pos.y = keyShapeBBox.min[1] + size / 4 + offsetY;
  break;

new version

case 'rightTop':
case 'topRight':
  pos.x = keyShapeBBox.max[0] - bgHeight / 2 + offsetX;
  pos.y = keyShapeBBox.min[1] + size / 4 + offsetY;
  break;

GREAT! Thank you!


Bazel build warning: "directory does not exist"

What version of gRPC and what language are you using?
gRPC 1.24.0
What operating system (Linux, Windows,...) and version?
Debian Linux 10
What runtime / compiler are you using (e.g. python version or version of gcc)
Bazel 0.28.1 (also seen with Bazel trunk)
What did you do?

Create Bazel project that depends on gRPC, importing via http_archive
Depend on @com_github_grpc_grpc//:grpc++_reflection
Build

What did you expect to see?
No warnings
What did you see instead?
INFO: From Action external/com_github_grpc_grpc/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.h:
bazel-out/k8-fastbuild/bin/external/com_github_grpc_grpc/external/com_github_grpc_grpc: warning: directory does not exist.
The build continues without failing, but the warning should be cleaned up nonetheless.
Anything else we should know about your project / environment?
I have traced the issue down to this line:
https://github.com/grpc/grpc/blob/ecf04ccf4d8be9378166ec9e0ccf44081e211d11/bazel/generate_cc.bzl#L114
In this case, since it's building a proto in the grpc project, the dir_out already has external/com_github_grpc_grpc in it. But, because it's not in the root project (gRPC is a dependency), proto_root also is external/com_github_grpc_grpc. This ends up with the incorrect path with that portion repeated twice.
I think this issue is avoided when building from the gRPC project directly (instead of with gRPC as a dependency) with some special-purpose code that shortcuts that logic:
https://github.com/grpc/grpc/blob/ecf04ccf4d8be9378166ec9e0ccf44081e211d11/bazel/protobuf.bzl#L65-L70
I'm not confident enough that I understand all of the different corner cases that would need to taken into account (and tested) to submit a PR modifying this logic.
Simple reproducer:
WORKSPACE
workspace(name = "example")

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "com_github_grpc_grpc",
    urls = ["https://github.com/grpc/grpc/archive/v1.24.0.tar.gz"],
    sha256 = "03a22a2fbfec8ccc44ff2e8061c312c9b4a0d33046b6d0c84c8eca5c56569387",
    strip_prefix = "grpc-1.24.0",
)
load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
grpc_deps()
load("@upb//bazel:workspace_deps.bzl", "upb_deps")
upb_deps()
load("@build_bazel_rules_apple//apple:repositories.bzl", "apple_rules_dependencies")
apple_rules_dependencies()

command:
bazel build @com_github_grpc_grpc//:grpc++_reflection
or
bazel build @com_github_grpc_grpc//src/proto/grpc/reflection/v1alpha:reflection_proto
NOTE: For simplicity, this reproducer doesn't have a BUILD target that depends on gRPC targets. Instead, it directly builds what would be that dependency. The result should be the same, but it avoids muddying this with unnecessary distractors.

This bug is still present in gRPC 1.28.1 with Bazel 3.0.0

This issue is for https://github.com/bazelbuild/bazel/issues/7157

This does not seem to relate to well-known protos (as was the case in the signature of the linked issue), is still present in Bazel at HEAD (bazelbuild/bazel@c393ef2d3c587dabd20a6221b7f63acbfdf149d6, well past when the fix for the issue linked was enabled), and the implementation of the macro in question here is directly in gRPC's codebase (see initial issue description).
Could you clarify what you mean when you say this is "for" that Bazel bug?

Ugh, yes, ok, we'll need to update our own scripts too.


Setting-Privacy-Admin-App - Sprint 1

Description:

Build the Screen using the style guide.
Integrate Screen with the Backend

@askinss I want to work on this. Thank you

@Vic-Orlands  I have assigned to you and in-progress.


Using i64 as base class with unboxing?

Is it possible to define a new class that is based on i64 that can extend its methods and still work unboxed?
Let's say we want to represent time as nanoseconds since epoch, so we do something like this:
class Instant(u64):
    to_ms(self):
        return val / 1000

then in some other place we use this class, like:
class Foo(object):
    t: Instant

can this t attribute be unboxed?

This was a question. We discussed it in a meeting and meanwhile I realized that I actually wanted more than this can offer either way, so going to close.


Add reference tests for Fingerprint64

Imported tests from https://github.com/google/farmhash for the Fingerprint64 function (farmhashna::Hash64).

Coverage remained the same at 100.0% when pulling 0c32befb75e3fe0968c829166c16f5e8233d7881 on hash64test into 78658e5234cd0441f634c663fae5badf239dc817 on master.


Add DNS client / connection

Uses #1137 as a base.

Ping me when #1137 is done. Sorry for being AWOL, been traveling and will be "stable" by tomorrow afternoon.

@dhermes rebased after merge of #1137.

LGTM

Looks like readthedocs.org has better support for simultaneous merges than Travis does: https://readthedocs.org/projects/gcloud-python/builds/3334189/


added an additional classification for the enigmatic java.io.exception

Help me keep my java.io.Exceptions from my java.lang.NullPointerExceptions
Thanks
Mark

Hey @mdevilliers
This isn't a review but I've been reading about OpenStack project infrastructure recently and thought you might be interested in Elastic Recheck. It seems to have similar goals to this jenkins build scrounging tool.:

https://github.com/openstack-infra/elastic-recheck

LGTM.


UI: Move Text to components package and delete foundation

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#86  👈
#85
#84
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @ksharma-xyz and the rest of your teammates on  Graphite


Adding favicon to the website

Is your feature request related to a problem? Please describe.
The website lacks a favicon . Adding a favicon can increase user engagement and Provide a visual representation of your brand in the browser tab, bookmarks, and shortcuts.
Describe the solution you'd like
User Experience:
It makes it easier for users to identify and locate your site among multiple open tabs.
Professionalism:
Adds a polished, professional look to your site, enhancing overall credibility.

Favicon is there


Rendering Issue

Attach (recommended) or Link to PDF file here:
Configuration:

Web browser and its version: Firefox 76.0.1 and Chrome Version 81.0.4044.129
Operating system and its version: Windows 10
PDF.js version:
Is a browser extension:no

Steps to reproduce the problem:

Open demo viewer https://mozilla.github.io/pdf.js/web/viewer.html
Open the attached PDF

What is the expected behavior? (add screenshot) It should appear as in current Firefox pdfjs viewer
What went wrong? (add screenshot) Most of the PDF is overlayed by an orange background
Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):
The attached file renders correctly in the current Firefox pdfjs viewer but in the github demo viewer AND in our application the pdf renders incorrectly most of the page is obscured by an orange background
29203_fccu-OutputPROOF.pdf

Yes, the issue is present in Chrome 81 and Firefox 76. But Firefox 75 is rendering the pdf correctly.

I noticed Firefox uses PDFJS 2.5 and renders correctly.
But using PDFJS 2.3 (stable) and 2.4(Beta) both render incorrectly.
Currently there is no v2.5 available on github it seems a FF specific version.
When will a generic v2.5 be available?

2.5 is the alpha version that is not generally available. Firefox upstream periodically fetches the latest master version of PDF.js for testing in e.g., Firefox Nightly, but in general Firefox uses a version that is different from the releases.
Given that it works in 2.5, I can only assume a PDF.js patch or, more likely, an upstream Firefox patch fixed the rendering issue. Hence I don't think there is anything we can do here anymore.

So no idea why FF works, it just does, and no idea when or if pdfjs will be fixed?


All tests green now

Coverage increased (+0.43%) to 65.43% when pulling 984e7dd7a517a6f8513e6020dce487fb77f9d0c5 on quick-test-fix into 2d572a6e816fd49b3cfda8b3a6c508d2a791e708 on development.


sg2042: trm: document spi flash layout (eg for bypassing SCP bootrom)

I noticed there is an option to reset the sg2042 and make it bypass the SCP bootrom but boot directly from SPI flash (64MiB).
Can we get the spi flash layout documented in system.rst TODO item so we can write a custom bios?  Thanks

In absence of documentation, I found this C program that appears to create a bootable spi flash image, but I haven't tested it.
https://github.com/sophgo/bootloader-arm64/blob/master/scripts/gen_spi_flash.c


Plugin can fail to initialize native library and hide the root cause

Describe the bug
I tried running Comet in k8s, and got an error initializing NativeBase, but no root cause was given.
│ 24/10/07 22:42:11 WARN CometSparkSessionExtensions: Comet extension is disabled because of error when loading native lib. Falling back to Spark                                                                                │
│ java.lang.NoClassDefFoundError: Could not initialize class org.apache.comet.NativeBase

I added a try/catch around the static initialization block and found the root cause:
java.lang.UnsatisfiedLinkError: /tmp/libcomet-216577115507522405.so: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.35' not found (required by /tmp/libcomet-216577115507522405.so)                                                            │
│     at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)                                                                                │
│     at java.base/java.lang.ClassLoader$NativeLibrary.load(Unknown Source)                                                                                │
│     at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(Unknown Source)                                                                                │
│     at java.base/java.lang.ClassLoader.loadLibrary0(Unknown Source)                                                                                │
│     at java.base/java.lang.ClassLoader.loadLibrary(Unknown Source)                                                                                │
│     at java.base/java.lang.Runtime.load0(Unknown Source)                                                                                │
│     at java.base/java.lang.System.load(Unknown Source)                                                                                │
│     at org.apache.comet.NativeBase.bundleLoadLibrary(NativeBase.java:126)                                                                                │
│     at org.apache.comet.NativeBase.load(NativeBase.java:92)                                                                                │
│     at org.apache.comet.NativeBase.<clinit>(NativeBase.java:54)

Steps to reproduce
No response
Expected behavior
I would like Comet to show me the root cause
Additional context
No response

This error occurs because the comet native library was built on a system with glibc v 2.35 and the system running the code has an older version of glibc.
glibc is not statically linked into the native library so when libcomet is loaded by the running process the link loader will try to find the appropriate glibc required by libcomet.  Since the correct version is not found the call to System.loadLibrary (or System.load) fails with an UnsatisfiedLinkError.
On *nix, you can check the glibc version on your system by running ldd --version
In this case the message
java.lang.UnsatisfiedLinkError: /tmp/libcomet-216577115507522405.so: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.35' not found (required by /tmp/libcomet-216577115507522405.so)                                                            │

is as close to the root cause as possible (and is about as user friendly as a unix error message gets. :) )

is as close to the root cause as possible (and is about as user friendly as a unix error message gets. :) )

That error is fine. The issue was that Comet was hiding this error, so I had to add debug logging to discover that this was happening. This issue is about improving the error reporting when the plugin fails to load the native library.

Yes I understood that :) I added the additional context because the UnsatisfiedLinkError message is also not very friendly and it might help some user understand why the library could not be loaded.

Here is another related issue that I am currently running into:
│ Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.comet.package$


Enable GLES3 on Android

Add necessary build flags and switch from requesting a GLES2 context to requesting a GLES3 one. This also enables building for OpenXR
All of the heavy lifting was done by @m4gr3d and @dsnopek I just kind of flailed around until they fixed everything.
I've tested exporting a 2D app to android and it works fine. With heavier testing we may discover issues, but should merge for now.

@akien-mga Fixed all your nitpicks and made some other small variable name changes for tidiness. Thus should be ready to merge whenever

Thanks!


Tests: OSError: [Errno 24] Too many open files

There appears to be a leaked file handle somewhere in the tests

cloned repo
pip install -e ".[notebook,docs,tests]"
ran pytest examples

OSError: [Errno 24] Too many open files: '/Users/talley/miniforge3/envs/fastplotlib/lib/python3.11/site-packages/pygments/formatters/terminal.py'

module = PosixPath('/Users/talley/dev/forks/fastplotlib/examples/desktop/gridplot/gridplot.py'), force_offscreen = None

Traceback (most recent call last):
  File "/Users/talley/miniforge3/envs/fastplotlib/bin/pytest", line 8, in <module>
    sys.exit(console_main())
             ^^^^^^^^^^^^^^
  File "/Users/talley/miniforge3/envs/fastplotlib/lib/python3.11/site-packages/_pytest/config/__init__.py", line 192, in console_main
    code = main()
           ^^^^^^
  File "/Users/talley/miniforge3/envs/fastplotlib/lib/python3.11/site-packages/_pytest/config/__init__.py", line 169, in main
    ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/talley/miniforge3/envs/fastplotlib/lib/python3.11/site-packages/pluggy/_hooks.py", line 493, in __call__
    return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/talley/miniforge3/envs/fastplotlib/lib/python3.11/site-packages/pluggy/_manager.py", line 115, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/talley/miniforge3/envs/fastplotlib/lib/python3.11/site-packages/pluggy/_callers.py", line 113, in _multicall
    raise exception.with_traceback(exception.__traceback__)
  File "/Users/talley/miniforge3/envs/fastplotlib/lib/python3.11/site-packages/pluggy/_callers.py", line 77, in _multicall
    res = hook_impl.function(*args)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/talley/miniforge3/envs/fastplotlib/lib/python3.11/site-packages/_pytest/main.py", line 318, in pytest_cmdline_main
    return wrap_session(config, _main)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/talley/miniforge3/envs/fastplotlib/lib/python3.11/site-packages/_pytest/main.py", line 306, in wrap_session
    config.hook.pytest_sessionfinish(
  File "/Users/talley/miniforge3/envs/fastplotlib/lib/python3.11/site-packages/pluggy/_hooks.py", line 493, in __call__
    return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/talley/miniforge3/envs/fastplotlib/lib/python3.11/site-packages/pluggy/_manager.py", line 115, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/talley/miniforge3/envs/fastplotlib/lib/python3.11/site-packages/pluggy/_callers.py", line 130, in _multicall
    teardown[0].send(outcome)
  File "/Users/talley/miniforge3/envs/fastplotlib/lib/python3.11/site-packages/_pytest/terminal.py", line 867, in pytest_sessionfinish
    self.config.hook.pytest_terminal_summary(
  File "/Users/talley/miniforge3/envs/fastplotlib/lib/python3.11/site-packages/pluggy/_hooks.py", line 493, in __call__
    return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/talley/miniforge3/envs/fastplotlib/lib/python3.11/site-packages/pluggy/_manager.py", line 115, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/talley/miniforge3/envs/fastplotlib/lib/python3.11/site-packages/pluggy/_callers.py", line 152, in _multicall
    return outcome.get_result()
           ^^^^^^^^^^^^^^^^^^^^
  File "/Users/talley/miniforge3/envs/fastplotlib/lib/python3.11/site-packages/pluggy/_result.py", line 114, in get_result
    raise exc.with_traceback(exc.__traceback__)
  File "/Users/talley/miniforge3/envs/fastplotlib/lib/python3.11/site-packages/pluggy/_callers.py", line 62, in _multicall
    next(wrapper_gen)  # first yield
    ^^^^^^^^^^^^^^^^^
  File "/Users/talley/miniforge3/envs/fastplotlib/lib/python3.11/site-packages/_pytest/terminal.py", line 882, in pytest_terminal_summary
    self.summary_failures()
  File "/Users/talley/miniforge3/envs/fastplotlib/lib/python3.11/site-packages/_pytest/terminal.py", line 1064, in summary_failures
    self._outrep_summary(rep)
  File "/Users/talley/miniforge3/envs/fastplotlib/lib/python3.11/site-packages/_pytest/terminal.py", line 1083, in _outrep_summary
    rep.toterminal(self._tw)
  File "/Users/talley/miniforge3/envs/fastplotlib/lib/python3.11/site-packages/_pytest/reports.py", line 89, in toterminal
    longrepr_terminal.toterminal(out)
  File "/Users/talley/miniforge3/envs/fastplotlib/lib/python3.11/site-packages/_pytest/_code/code.py", line 1072, in toterminal
    element[0].toterminal(tw)
  File "/Users/talley/miniforge3/envs/fastplotlib/lib/python3.11/site-packages/_pytest/_code/code.py", line 1102, in toterminal
    entry.toterminal(tw)
  File "/Users/talley/miniforge3/envs/fastplotlib/lib/python3.11/site-packages/_pytest/_code/code.py", line 1197, in toterminal
    self._write_entry_lines(tw)
  File "/Users/talley/miniforge3/envs/fastplotlib/lib/python3.11/site-packages/_pytest/_code/code.py", line 1179, in _write_entry_lines
    tw._write_source(source_lines, indents)
  File "/Users/talley/miniforge3/envs/fastplotlib/lib/python3.11/site-packages/_pytest/_io/terminalwriter.py", line 192, in _write_source
    new_lines = self._highlight(source).splitlines()
                ^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/talley/miniforge3/envs/fastplotlib/lib/python3.11/site-packages/_pytest/_io/terminalwriter.py", line 203, in _highlight
    from pygments.formatters.terminal import TerminalFormatter
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 936, in exec_module
  File "<frozen importlib._bootstrap_external>", line 1073, in get_code
  File "<frozen importlib._bootstrap_external>", line 1130, in get_data
OSError: [Errno 24] Too many open files: '/Users/talley/miniforge3/envs/fastplotlib/lib/python3.11/site-packages/pygments/formatters/terminal.py'

I'm on macos 14, python 3.11

i think this might have to do with the png files themselves being git-lfs stubs.

yep, I'm updating the readme now in another pr

It can be added to the contributing guide. However anytime I make a new clone of fastplotlib it automatically fetches the real files from git lfs as well, but in our CI we had to do it explicitly. I wonder if I set some config option somewhere...
https://github.com/kushalkolar/fastplotlib/blob/main/CONTRIBUTING.md

hey @kushalkolar, related to running tests locally, (kinda tangential to this thread, but don't want to clog your issues with another question)... after having pulled stuff with git-lfs, I'm unable to run tests locally successfully (macos 14, python 3.11.6).  here's what fails/succeeds
examples/tests/test_examples.py::test_example_screenshots[gridplot] FAILED                                      [ 57%]
examples/tests/test_examples.py::test_example_screenshots[gridplot_non_square] FAILED                           [ 59%]
examples/tests/test_examples.py::test_example_screenshots[heatmap] FAILED                                       [ 60%]
examples/tests/test_examples.py::test_example_screenshots[heatmap_cmap] FAILED                                  [ 62%]
examples/tests/test_examples.py::test_example_screenshots[heatmap_data] FAILED                                  [ 63%]
examples/tests/test_examples.py::test_example_screenshots[heatmap_vmin_vmax] FAILED                             [ 65%]
examples/tests/test_examples.py::test_example_screenshots[image_cmap] FAILED                                    [ 67%]
examples/tests/test_examples.py::test_example_screenshots[image_rgb] FAILED                                     [ 68%]
examples/tests/test_examples.py::test_example_screenshots[image_rgbvminvmax] FAILED                             [ 70%]
examples/tests/test_examples.py::test_example_screenshots[image_simple] FAILED                                  [ 72%]
examples/tests/test_examples.py::test_example_screenshots[image_vminvmax] FAILED                                [ 73%]
examples/tests/test_examples.py::test_example_screenshots[line] PASSED                                          [ 75%]
examples/tests/test_examples.py::test_example_screenshots[line_cmap] FAILED                                     [ 77%]
examples/tests/test_examples.py::test_example_screenshots[line_colorslice] PASSED                               [ 78%]
examples/tests/test_examples.py::test_example_screenshots[line_dataslice] FAILED                                [ 80%]
examples/tests/test_examples.py::test_example_screenshots[line_present_scaling] PASSED                          [ 81%]
examples/tests/test_examples.py::test_example_screenshots[line_collection] FAILED                               [ 83%]
examples/tests/test_examples.py::test_example_screenshots[line_collection_cmap_values] PASSED                   [ 85%]
examples/tests/test_examples.py::test_example_screenshots[line_collection_cmap_values_qualitative] PASSED       [ 86%]
examples/tests/test_examples.py::test_example_screenshots[line_collection_colors] PASSED                        [ 88%]
examples/tests/test_examples.py::test_example_screenshots[line_stack] FAILED                                    [ 90%]
examples/tests/test_examples.py::test_example_screenshots[scatter] PASSED                                       [ 91%]
examples/tests/test_examples.py::test_example_screenshots[scatter_cmap] PASSED                                  [ 93%]
examples/tests/test_examples.py::test_example_screenshots[scatter_colorslice] FAILED                            [ 95%]
examples/tests/test_examples.py::test_example_screenshots[scatter_dataslice] PASSED                             [ 96%]
examples/tests/test_examples.py::test_example_screenshots[scatter_present] FAILED                               [ 98%]
examples/tests/test_examples.py::test_example_screenshots[scatter_size] FAILED                                  [100%]

I'm just curious: do you run these tests locally in a platform independent way yourself? or do you mostly rely on CI tests?

It's expected that the tests will fail locally because there are small differences based on the hardware you're running on, we have to rely on GitHub actions for now. In the future we'll look into implementing similarity metric based testing.

You can download the screenshot diffs by going to the workflow page for
that PR and see to get an idea of why it failed :D
On Wed, Dec 6, 2023, 17:32 Talley Lambert @.***> wrote:

hmm, ok. yeah that definitely makes it a bit harder to debug fails like
i'm getting in #390 https://github.com/fastplotlib/fastplotlib/pull/390
—
Reply to this email directly, view it on GitHub
https://github.com/fastplotlib/fastplotlib/issues/388#issuecomment-1843794056,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACHXXRDGJUU3Q3GHIDC4RQ3YIDW65AVCNFSM6AAAAABAGGSMEOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBTG44TIMBVGY
.
You are receiving this because you were mentioned.Message ID:
@.***>

If the PR is inteded to create different screenshots, you can download the screenshots from the Screenshots / Regenerate workflow, visually inspect them, and finally replace the screenshots in your local clone of the repo with the new regenerated ones, and then push.

side note on this issue.  I do think there is a lingering file handle leakage somewhere, but i think it's upstream of fastplotlib.  I wasn't able to make an entirely reproducible example (and it also goes away if you use pytest -s to print to stdout).  It's either something low level in pygfx (possibly related to metal).  Not worth re-opening this issue until I can make something reproducible :)


Fix mobile reading text interactions

The interactions (hover, click, drag) currently really only work on desktop.  Here's a mobile phone simulation in chrome dev tools:

(the grey circle is where the cursor is -- I think, I'm not really sure how the simulated thing works)
For better mobile support, we could replace hover, click, and drag with tap, double-tap (or "long press"), and tap-drag respectively, though I have no idea how to do this at the moment.
refs:

https://developer.mozilla.org/en-US/docs/Web/HTTP/Browser_detection_using_the_user_agent#avoiding_user_agent_detection
https://developer.mozilla.org/en-US/docs/Web/API/Touch_events

https://borstch.com/blog/javascript-touch-events-and-mobile-specific-considerations seems to have solid advice, particularly notes about the touch cancel event.

I would prefer a long-press over double-tap. A double-tap interaction on mobile often feels awkward to me.

Long-press is better, agreed.
On Sat, Apr 13, 2024 at 11:28 PM Patrick Ayoup @.***>
wrote:

I would prefer a long-press over double-tap. A double-tap interaction on
mobile often feels awkward to me.
—
Reply to this email directly, view it on GitHub
https://github.com/LuteOrg/lute-v3/issues/363#issuecomment-2053662312,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAMPWDOOWRCCNLJCAU6ZT4LY5E6KBAVCNFSM6AAAAABFCXEYT2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJTGY3DEMZRGI
.
You are receiving this because you authored the thread.Message ID:
@.***>

I've pushed branch iss_363_wip_mobile_interactions to the LuteOrg repo.
This almost works --
I contacted @webofpies to see if he had any ideas.  Discord message:
Video of issue:
https://github.com/LuteOrg/lute-v3/assets/1637133/22ae7025-de29-495b-a623-bfd0e362a6a9
The video shows what's up:

from 0:00 to 0:04, I click a term, and the form opens up as expected.
from 0:06 to 0:08, I use long-clicks to indicate the start and end of a multiword term, and the form opens up as expected.
Then at 0:11 I refresh the page, and from 0:14 to 0:15 I create that same term -- the form handles appear, but the form isn't shown.  I can't sort out why.

It seems that doing an initial click to open the "regular term form" sets some kind of internal state which then influences the multiword term form opening.  If I don't do that same initial term form open, the state isn't set, and the multiword term form isn't shown properly.

The above is really a minor bug -- not a showstopper at all.

Fixed -- not perfect, but better than nothing.
Long-press to start a multi-word term, and long-press to end it.  Seems to work ok, will test on my phone.

Works on phone, not super but better than nothing :-)

Launched in 3.3.3


Image Shortcut Causes Error

Double-Clicking on image-shortcut icon from desktop causes Error Dialog. I can open the image from the File Manager, it lets me select an application to run the image in.
Error: This function excepts a OSjs.VFS.File object
at _Handler.getApplicationNameByFile (http://localhost:8000/osjs.js:4377:13)
at Object.doLaunchFile [as open] (http://localhost:8000/osjs.js:1431:13)
at opts.onActivate (http://localhost:8000/packages/default/CoreWM/combined.js:315:15)
at _DataView._onActivate (http://localhost:8000/osjs.js:10848:23)
at HTMLLIElement.<anonymous> (http://localhost:8000/osjs.js:11315:16)

Thanks, mate :) Will fix this

Seems this bug is related to any custom created shortcuts, I just tried a shortcut to a text document and I get the same result.
Error: This function excepts a OSjs.VFS.File object
at _Handler.getApplicationNameByFile (http://localhost:8000/osjs.js:4377:13)
at Object.doLaunchFile [as open] (http://localhost:8000/osjs.js:1431:13)
at opts.onActivate (http://localhost:8000/packages/default/CoreWM/combined.js:315:15)
at _DataView._onActivate (http://localhost:8000/osjs.js:10848:23)
at HTMLLIElement.<anonymous> (http://localhost:8000/osjs.js:11315:16)

It is fixed now. It was a problem with desktop shortcuts in general :)

The best way to update codebase for changes like this is like this btw:
# Get changes
git pull

# If using "dist". Build core and package changes only
grunt core packages


Unable to clone the Astrasim repo with the --recurse-submodules command provided in the Readme.

Hi, I'm trying to clone the Astrasim repo following the commands provided in the Readme section. However, I'm not able to clone the repo along with its submodules. I'm getting the following error:
$: ~/git_repos$ git clone --recurse-submodules https://github.com/astra-sim/astra-sim.git
Cloning into 'astra-sim'...
remote: Enumerating objects: 4451, done.
remote: Counting objects: 100% (963/963), done.
remote: Compressing objects: 100% (317/317), done.
remote: Total 4451 (delta 676), reused 778 (delta 620), pack-reused 3488
Receiving objects: 100% (4451/4451), 1.94 MiB | 8.39 MiB/s, done.
Resolving deltas: 100% (2726/2726), done.
Submodule 'extern/graph_frontend/chakra' (git@github.com:mlcommons/chakra.git) registered for path 'extern/graph_frontend/chakra'
Submodule 'extern/network_backend/analytical' (git@github.com:astra-sim/astra-network-analytical.git) registered for path 'extern/network_backend/analytical'
Submodule 'extern/network_backend/garnet/gem5_astra' (git@github.com:astra-sim/astra-network-garnet.git) registered for path 'extern/network_backend/garnet/gem5_astra'
Submodule 'extern/network_backend/ns3' (https://github.com/astra-sim/astra-network-ns3.git) registered for path 'extern/network_backend/ns3'
Submodule 'extern/memory_backend/analytical' (git@github.com:astra-sim/astra-memory-analytical.git) registered for path 'extern/remote_memory_backend/analytical'
Cloning into '/home/c.michael103/git_repos/astra-sim/extern/graph_frontend/chakra'...

sss_ssh_knownhostsproxy: connect to host github.com port 22: Connection timed out
kex_exchange_identification: Connection closed by remote host
Connection closed by UNKNOWN port 65535
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@github.com:mlcommons/chakra.git' into submodule path '/home/c.michael103/git_repos/astra-sim/extern/graph_frontend/chakra' failed
Failed to clone 'extern/graph_frontend/chakra'. Retry scheduled
Cloning into '/home/c.michael103/git_repos/astra-sim/extern/network_backend/analytical'...

I've also added my id_rsa.pub key into the github ssh key. Yet, I'm not able to clone the repo along with all its submodules as specified in the README file. Please let me know if I'm missing anything here. Thank!

Michael C.

Hello, @byungchoi103. Does the following command work?
ssh -T<EMAIL_ADDRESS>
It should say something like "Hi [YourUsername]! You've successfully authenticated...".

:~/git_repos$ ssh -T<EMAIL_ADDRESS>
sss_ssh_knownhostsproxy: connect to host github.com port 22: Connection timed out
kex_exchange_identification: Connection closed by remote host
Looks like it doesn't work.
What could be an issue?

Thank you for providing the details. Let's try to narrow down the potential causes:
1. SSH Key Registration:

Please ensure that your SSH key has been added to your GitHub account.
To check your currently added SSH keys: cat ~/.ssh/id_rsa.pub and see if this public key matches what's in your GitHub account. If not, you'll need to add it to your GitHub account.

2. Network Restrictions:

Are you accessing GitHub from a corporate or institutional network? It's possible that SSH connections over port 22 are blocked by a firewall or other network restrictions.
If you have the capability, you might try connecting to GitHub via another network, such as a home network or through a mobile hotspot, just to check if the issue persists.

Given the error, it's unlikely this is an issue on GitHub's end or due to specific repository settings. The primary focus here should be on the local SSH setup and potential network restrictions.
Please verify the above and let us know. If the problem persists, we can explore further troubleshooting steps.

Let me close this issue. Please reopen this issue if the problem persists.

I am still getting following errors.
$ ssh -T<EMAIL_ADDRESS>sss_ssh_knownhostsproxy: connect to host github.com port 22: Connection timed out
kex_exchange_identification: Connection closed by remote host
Connection closed by UNKNOWN port 65535
Actually, I realized that I am having problem with "$ git clone --recurse-submodules git@github.com:astra-sim/astra-sim.git
$ cd ./astra-sim/" command. Some reason, I can't download submodules. It hangs while git cloning is going on. As you know those submodule of 4 sub-directories under extern, I can't download.
I did git clone submodules independently and located on those 4 sub-directories. Unfortunately, I can't build it - something is missing if I git clone independently.
Please let me know what could be an issue and solutions. Thanks in advance!

I found that when I try "Download Zip" on window, I see there is no submodule source code in the sub-directories under extern too.

Thank you for providing more information. Could you please ensure that you have registered your public key with GitHub correctly? The failure you're encountering when you run ssh -T<EMAIL_ADDRESS>suggests there's an authentication or connection issue with GitHub, which isn't specific to our repository.


use single - for full name flag

We had earlier designed our CLI interface using single hyphens only, e.g.
mycli -config ./config.yaml
Now, we want to standardize it as per pflag convention for single and double hyphens. But to prevent a new version of our application from breaking some scripts which may have been written using old syntax we want to add a hidden flag for old single hyphen flags. So I want the following three to be equivalent:
mycli -config ./config.yaml
mycli --config ./config.yaml
mycli -c ./config.yaml
And will mark the first as hidden (or deprecated).
Is it possible?

@adnan-kamili I don't think this would be possible, because the support for concatenated shorthands, e.g. -abc == --a --b --c.

Thanks for confirming. Is it possible to override the default error message:
unknown shorthand flag: 'k' in -k
And it gets displayed twice.

@adnan-kamili I'm in the same situation as you, switching from flag to pflag without breaking existing users.
Preprocessing os.Args like this does the trick for me:
// convertToDoubleDash converts args like "-debug" (Go stdlib `flag` style)
// into "--debug" (spf13/pflag style).
// gocryptfs v2.1 switched from `flag` to `pflag`, but we obviously want to stay
// cli-compatible, and this is the hack to do it.
func convertToDoubleDash(osArgs []string) (out []string) {
	out = append(out, osArgs...)
	for i, v := range out {
		// Leave "-h" alone so the help text keeps working
		if v == "-h" {
			continue
		}
		// Don't touch anything after "--"
		if v == "--" {
			break
		}
		// Convert "-foo" to "--foo"
		if len(v) >= 2 && v[0] == '-' && v[1] != '-' {
			out[i] = "-" + out[i]
		}
	}
	return out
}

Thanks for sharing your trick.


Always ignore certain file types

I noticed in TabNine logs that it tries to read files like .DS_Store and any font and image files.
This doesn't make sense. Especially for .DS_Store (and for Thumbs.db if Windows still uses these)
This should be ignored by default.
I use Sublime Text 3.
Related issues:
https://github.com/zxqfl/TabNine/issues/15
https://github.com/zxqfl/TabNine/issues/38

You can add a .tabnineignore file.
See our FAQ for more details

Hey @amircodota! Thanks for the reply! I think TabNine is an amazing tool!
It would be great if the tool would do this by itself, at least for the files like .DS_Store and similar. Do you think there would be a case when someone would need to index those files? Thanks!

I agree that it does not make sense to index these files.
TabNine does not index these files because they are binary. It just logs them, which is admittedly confusing.
The current logic, which I think is not a bad one, is that it tries to index anything that's included in the project, or, more specifically, anything that should be committed to version control.
I think most users have these files in .gitignore (or .hgignore or whatever else) and thus do not see this issue.

@amircodota Is it also possible to disable tabnine autocomplete in certain files?
For instance intellij has the concept of scratches. When i make a plain text scratch file i don't want tabnine to autocomplete when i press enter, since i'm writing regular text.

Adding *.txt to .tabnineignore does not seem to resolve this. Probably because that is the ignore file for the model, not the ignore file for autocomplete functionality.

@bertyhell We currently support this in vscode.
This is definitely something we will add for other editors as well in the future.
Are you on vscode?

No, IntelliJ

+1 would love to ignore Plain Text files in Sublime


Prevent Database Secrets From Being Logged During Chef Run

Why

chef run is outputing sensitive database secrets such as
admin password, secure token, api keys, etc. to the shell and
the log file.

How

add sensitive = true, the same way secrets.yml configs are handled.

Good catch, thanks!


The following assertion was thrown during performLayout(): Vertical RenderFlex with CrossAxisAlignment.start has a null textDirection, so the alignment cannot be resolved. 'package:flutter/src/rendering/flex.dart': Failed assertion: line 478 pos 18: 'textDirection != null'

Steps to Reproduce

Run flutter create bug.
Update the files as follows: ...
...

Expected results:
Actual results:

Logs

@IOS6
When opening an issue, please try to provide all or some of the information indicated in the template.

Issue Template
If you are looking for support, please check out our documentation
or consider asking a question on Stack Overflow:
- https://flutter.dev/
- https://api.flutter.dev/
- https://stackoverflow.com/questions/tagged/flutter?sort=frequent

If you have found a bug or if our documentation doesn't have an answer
to what you're looking for, then fill our the template below. Please read
our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports

Steps to Reproduce

Please tell us exactly how to reproduce the problem you are running into.

Please attach a small application (ideally just one main.dart file) that
reproduces the problem. You could use https://gist.github.com/ for this.

If the problem is with your application's rendering, then please attach
a screenshot and explain what the problem is.

1. ...
2. ...
3. ...

Please tell us which target platform(s) the problem occurs (Android / iOS / Web / macOS / Linux / Windows)
Which target OS version, for Web, browser, is the test system running?
Does the problem occur on emulator/simulator as well as on physical devices?

Target Platform:
Target OS version/browser:
Devices:

Run your application with `flutter run --verbose` and attach all the
log output below between the lines with the backticks. If there is an
exception, please see if the error message includes enough information
to explain how to solve the issue.

Run `flutter analyze` and attach any output of that command below.
If there are any analysis errors, try resolving them before filing this issue.

Finally, paste the output of running `flutter doctor -v` here.

Closing this issue, since no information has been provided.
Thank you.


docs: add dragonfly logos in repo and remove useless issue template

Signed-off-by: Allen Sun<EMAIL_ADDRESS>
Ⅰ. Describe what this PR did

docs: add dragonfly logos in repo
I remove the useless Issuetemplate

Update the logo in readme to use a much clearer one.
Ⅱ. Does this pull request fix one issue?

none
Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗？)
only doc change, no need.
Ⅳ. Describe how to verify it
none
Ⅴ. Special notes for reviews
none

Codecov Report

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

@@           Coverage Diff           @@
##           master     #185   +/-   ##
=======================================
  Coverage   81.43%   81.43%
=======================================
  Files          28       28
  Lines        1282     1282
=======================================
  Hits         1044     1044
  Misses        207      207
  Partials       31       31

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 9e06d61...f98f325. Read the comment docs.

lgtm


Error importing .svg files when using graphql-playground as a React component

Before I jump in - thanks for making this tool! I've loved using it in graph.cool and can't wait to get it running in a project where I've rolled my own GraphQL server!
Scenario
I'm attempting to use graphql-playground as a React component in a Next.js app so that I can write some custom fetching logic (mainly to handle authentication). Here's my super-basic PoC page (copied almost directly from the README, but adapted to work as a Next.js page):
import React from 'react';
import Playground from 'graphql-playground';
import fetch from 'isomorphic-fetch';

function graphQLFetcher(graphQLParams) {
	return fetch(window.location.origin + '/graphql', {
		method: 'post',
		headers: { 'Content-Type': 'application/json' },
		body: JSON.stringify(graphQLParams)
	}).then(response => response.json());
}

export default () => <Playground fetcher={graphQLFetcher} />;

Expected behavior
Being able to import Playground from 'graphql-playground', without any special configuration required.
Actual behavior
Next throws errors for each SVG that graphql-playground attempts to require(). Here's an example of one of them:
Module parse failed: /Users/agoggin/www/vhosts/boomerang/graphql-playground/node_modules/graphql-playground/lib/assets/icons/arrowRight.svg Unexpected token (1:0)
You may need an appropriate loader to handle this file type.
| <svg width="14px" height="11px" viewBox="-1 -1 14 11" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|     <path
|         d="M5,8.79825579 L5,-1.79402089"

 @ ./~/graphql-playground/lib/components/HistoryPopup.js 138:80-121
 @ ./~/graphql-playground/lib/components/Playground.js
 @ ./~/graphql-playground/lib/lib.js
 @ ./pages?entry
 @ multi ./pages?entry

Attempted work-around
I tried pulling in babel-plugin-inline-react-svg as it's the suggested solution for loading SVGs with Next.js. However, it didn't help anything, I think because babel's not having an effect on the graphql-playground code as its located in node_modules (Not 100% certain this is correct, but that's my best guess). I think I could probably use a webpack loader, but that approach is discouraged by Next because it only affects the client-side code and so won't work with server rendering.
Possible solutions

Have graphql-playground inline the SVG as a part of its build process
???

I'd be happy to assist with a solution if we can land on one that's agreeable to the maintainers. Thanks!

@morajabi sure! Here you go: https://github.com/kgoggin/next-graphql-playground.
I mentioned it in my original comment, but Next discourages webpack loaders because they don't work for SSR, which is kind of the point of using Next. Here's the relevant section from their docs: https://github.com/zeit/next.js#customizing-webpack-config. So, I'm guessing I could get it to work that way, but I think there's probably a better approach somewhere!
Like I said, happy to help if I can. Appreciate you taking a look at it!

"Next discourages Webpack loaders because they don't work for SSR" I'm pretty sure SVG with this purpose won't be a problem for SSR. As Graphcool itself is using this package, right? And it has SSR. CSS loaders and alike will make SSR more difficult.

I’m not sure I’m following you. The problem isn’t with the SVG itself. It’s that Next doesn’t know how to load a .svg file via ‘require’. A webpack loader will work for the code that gets bundled for client-side execution, but if the page is rendered on the server, a webpack loader isn’t used, and Next still won’t know what to do with that file. That’s why a Babel transform is preferred - it works in both cases.

@kgoggin I'm going to prepare a minimal repo to prove it. I think Next uses the bundled file to load for SSR, but I'll let you know.

Also have this same issue and I've extended Next config to include svg's but the problem remains.

@notrab Could you please copy-paste your next.config.js here? I'd appreciate it.

@morajabi The example shown here is the contents of my .babelrc.

@notrab Thanks, but I meant to change the Webpack config to load SVG files. Lemme send a minimal repo here.

https://github.com/kesne/babel-plugin-inline-react-svg ??

I tried doing this with graphiql and found out that codemirror was using the window object and I could only get the thing to load using component did mount.


Acces PinView for marker customization

Any chance this is supported or can be easily?
https://developers.google.com/maps/documentation/javascript/advanced-markers/basic-customization

Hey there. Seems this feature is in preview so maybe in the future:

This product or feature is in Preview (pre-GA). Pre-GA products and features might have limited support, and changes to pre-GA products and features might not be compatible with other pre-GA versions. Pre-GA Offerings are covered by the Google Maps Platform Service Specific Terms. For more information, see the launch stage descriptions.

Updating my thoughts on this it's a nice to have but we already support custom markers


'torque' divided by 'inertia' twice?

See /src/body/Body.js:433
body.angularVelocity = ((body.angle - body.anglePrev) * frictionAir * correction) + (body.torque / body.inertia) * deltaTimeSquared;

and /src/body/Body.js:433
body.torque += (offset.x * force.y - offset.y * force.x) * body.inverseInertia;

(After I called applyForce, body doesn't rotate until I changed the position to {x:0,y:250000}.)

This may depend on your particular setup.
Can you provide a jsfiddle please?

http://jsfiddle.net/wafo2qga/1/
It's used to be C/S structs. Matter.js running on my server and send frame data to a browser. The task of the browser is to draw frames. So the code is strange.

It looks like you're only applying a (small) force for a single frame?
I think you need to apply a force over a number of frames to get the acceleration you're looking for.
But actually, what you probably need to use is Body.setAngularVelocity which is instantaneous, where as forces are much slower acting.

No..  You didn't get my point.
http://jsfiddle.net/wafo2qga/2/
Body.applyForce(boxA, Vector.add(boxA.position,{x:80,y:0}), {x:0,y:-0.5});

A 'small' force let the box jump so high without any rotation. Isn't it abnormal?

I do get your point, it does seem a little strange that there's no rotation given the change in linear velocity.
So there may be an issue with angular force application. I'll investigate further, thanks.

I ran into this issue today too. Fix seems to be to remove * body.inverseInertia from Body.js:570.
Based on my rather limited understanding, this makes sense based on the physics because the torque isn't proportional to inertia, however the angular momentum that results from it is.

Wow, I was having so much trouble getting things working, I thought it was because I didn't understand what was going on, but turned out by removing * body.inverseInertia everything makes sense now !
Is the bug still here? Or is it just me?

Fixed in the latest master build, thanks guys.


Trying to install napalm

Windows 10 Ver 10.0.14393
Pip: 9.0.1
I am attempting to install Napalm but every time I get an error message when it comes to the specific package relating to 'napalm-ros'. Every other package downloads and installs with no issues. Any assistance would be greatly appreciated.
Thanks
Collecting librouteros>1.0.0 (from napalm-ros->napalm)
Downloading librouteros-1.0.3.tar.gz
Complete output from command python setup.py egg_info:
error in librouteros setup command: 'extras_require' must be a dictionary whose values are strings or lists of strin
gs containing valid project/version requirement specifiers.
----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-qST_7J/librouteros/

I am utilizing the 'pip install napalm' command where it should just download napalm with no issues. I spun up an Ubuntu VM on my machine and went through the same procedures and napalm was able to download with no issues.

Is upgrading to creators update an option for you? We have fixed a lot of bugs since the build you are running.

hmmmm...unfortunately it appears that my company is blocking the install to the creators update. When attempting to upgrade my windows it says to contact systems administrator.

Hey, so it turns out that I am able to download the creators update. I am doing that now and will report back after it is complete and I do some testing. THANKS!

Hey so I was able to install the Windows Creator's Update (Version 1703 OS Build 15063.483). However, I am still having issues downloading that last module for Napalm. I found out that you can download the specific modules that you want (I.E. IOS) so I was able to download the one that I wanted with no issues.

I had the same issue and the same work around any update on this ?

Collecting librouteros>1.0.0 (from napalm-ros->napalm)
Using cached librouteros-1.0.3.tar.gz
Complete output from command python setup.py egg_info:
error in librouteros setup command: 'extras_require' must be a dictionary whose values are strings or lists of strin
gs containing valid project/version requirement specifiers.
----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in c:\users\dbarke~1.hrl\appdata\local\temp\pip-build-crcaw7
\librouteros\

Closing out old issues, if you're still having issues on newer versions of Windows please open a new issue.