Flexible frontend prefix matching without using 'matching order' field?

We allow end-users, of the Apinf platform, to add API Umbrella API backends, including defining a custom frontend prefix. This has led to some problems, such as the following frontend prefixes resolving to the wrong API Backend:
Intended:

/music   - initial frontend prefix added by user

Intended -> resolves to 'Music API: root'
Actual: works as expected

/music/alternative/ - second frontend prefix added by user

Intended -> resolves to 'Music API: Alternative
Actual: respoves to 'Music API: root'

We are noticing that API Umbrella uses a global matching order field to mitigate this issue. However, in our current UI, a global 'matching order' might not make sense to a user who has just added one or more APIs, but who may not be responsible for the remaining APIs.
What are some ideas as to how we might allow end-users to add APIs, so that calls resolve in an intuitive/expected way?

Hm, I thought we had some existing discussion threads around some alternatives to our current "matching order" approach, but I can't find them, so maybe those didn't happen here (the closest is https://github.com/18F/api.data.gov/issues/186, which discusses the need to warn admins about conflicts, but not about different approaches).
In any case, one potential alternative I've discussed in the past is to always give precedence to more specific prefixes based on length. I might be over-simplfying this now, but I think the basic approach would be to sort all the prefixes by total string length (in descending order), and then use that as the matching order. That should ensure that more specific URL prefixes are always matched ahead of more general prefixes (since /music/alternative/ is longer in length than /music, the longer one would always be matched first).
There might be edge-cases I'm not thinking about right now, but I do think something like this would be a lot more intuitive, and it would eliminate the need for explicit matching orders and conflict detection.
A few more things to consider if we make this change:

Are there any legitimate use-cases for forcing broader prefixes to match before more specific prefixes? I can't really think of any, since it always seem accidental in our current system, but it would be good to consider other uses. Theoretically, you could use it to hide a bunch of more specific API backends (maybe temporarily), but I'm not sure anybody's ever used it for that.
How does this impact admin permissions based on path prefixes? I don't think it does, but just something to consider.
If we made this change, how would we handle API Umbrella upgrades? There would probably be a need to detect any matching orders that would change by upgrading to this new matching approach, and warn people about that before upgrading (since it's possible you might currently have setups that aren't being matched, but would suddenly start matching after upgrading).
Internally, we really have 2 matching orders--first on the API Backends, and then second on the prefixes within each backend. For example, API Backend A could have prefixes of /music and /movies/comedies and API Backend B could have prefixes of /music/alternative and /movies. To prevent fighting between API backend ordering and prefix ordering, I think we might need to flatten all of the prefixes out (ignoring what backend they belong to) for sorting and matching purposes.

cc: @bajiat @marla-singer

@GUI, we realize that this change would ideally be made at the Proxy layer, hence this issue. How can we support this work?


Introduced release Workflow

Current dependencies on/for this PR:

main

PR #102

PR #103

PR #104

PR #105

PR #106

PR #107

PR #108   👈

This comment was auto-generated by Graphite.

Current dependencies on/for this PR:

main

PR #102

PR #103

PR #104

PR #105

PR #106

PR #107

PR #108   👈

This comment was auto-generated by Graphite.


added endpoint to get boards for organization

I added endpoint to be able to get list of boards of organization link to api
this commit is including endpoint, extended documentation and tests

@cdaguerre 5.3.3 doesn't look like problem with code (just composer problem).
For everything else... do you have any idea why it is happening?


release: Add Jenkins release job and file

Description

Adds a new Jenkins job which should be triggered every time a v*  tag
is pushed to the repository.
The job will import the GPG private key, export the required environment
variables and run the goreleaser binary to trigger a new release. The
GPG key passphrase will be cached within GPG so goreleaser can sign
the release without interactively asking for the passphrase.
Related Issues

Part of #201
How Has This Been Tested?

Manually in a docker container:
# Log into vault with your credentials and export a `VAULT_TOKEN` to the environment.
$ make -C .ci .gpg_private .gpg_passphrase .github_token .gpg_fingerprint
$ docker run -ti --rm -v $(pwd):/go/src/github.com/elastic/terraform-provider-ec -w /go/src/github.com/elastic/terraform-provider-ec golang:1.15 bash
$ make vendor
$ make -C .ci import-gpg-key
$ . .ci/.env; make -C .ci cache-gpg-passphrase; make release-no-publish

Acceptance tests fail due to platform flakiness, merging.


Connection issue when using larger files

Hi @MitchBradley
When i already have connected controller with main cncjs interface and I open and connect tablet in another tab, the system hangs. Particularly this happens when i use programs larger than 6MB. I have also noticed that shopfloor tablet hangs while loading larger files individually. (Main interface not connected).
What can be the possible reason? I use RPi4 with 2GB RAM. Router is connected to RPi with ethernet and I use local RPi display and chromium browser. Let me tell you, initially I used wifi and then switched to ethernet. By doing this, it started responding faster for smaller files.
Another observation is, some programs of approx 5 to 6MB sizes are opening smoothly in main interface while it doesn't load in shopfloor tablet and make system unresponsive.

Sorry, forgot to mention that I am using grbl with ESP32 controller.

@MitchBradley
Any clues?

Busy with other stuff

Ok.


Docker images prior to v3 do not contain android 28 sdk

I fixed the Android 28 issue in PR #17. We have been using the latest image but with the v3 upgrade we locked down to the previous version on docker hub, 2.5. Unfortunately our builds fail due to not having android-28 fix, there aren't any tags that contain this working version, unless we also are prepared for the upgraded ubuntu & gradle environment.
Would it be possible to push a 2.6 tag to one of the older build hashes that contains the android 28 fixes prior to v3?

Just try to understand the question:

Sorry for any inconvenience.
Just try to understand the problem:
You want a v2.6 on Docker Hub, the same content as v2.5, plus your previous fix for Android 28 license?
Before working on and pushing the v2.6, I'd like to ask a few questions:

Does the new Ubuntu OS bring any problem to you, which stops you from using v3.0?
Do you use the image's built-in gradle instead of the gradlew from your project?  The built-in gradle is only for some demo / trial purpose.  Actually, I'm thinking about dropping gradle and kotlinc from this Docker image.

Thanks.

I did not have the time to evaluate the breaking changes of a major version bump, and was disappointed to see the working version I assisted with to not be found anywhere in the v2 images.

Looking at the commit log I saw “update Dockerfile” multiple times. After reviewing the changes it’s a different image, but the combination of losing a stable v2 tag for Android-28 and indescriptive commit messages, I just rolled back our mirror of the image and my improvements since we build off of your dockerhub repo

Pushed.
Please check the changelog and grab the 2.6 image from Docker Hub.

Thank you so much @thyrlian !

My pleasure @rossmckelvie, enjoy :)


Flutter app closes when joining meeting

I have defined pro-guard.pro and all other necessary configurations as required, but app crashes when joining meeting with the following message in console:
E/JitsiMeetSDK(15580): 	... 9 more I/JitsiMeetSDK(15580): JitsiConnectionService onAbort 47215E8C-B82C-4DA9-9D93-A99886DDAAA4 D/JitsiMeetSDK(15580): JitsiConnectionService onStateChanged: DISCONNECTED 47215E8C-B82C-4DA9-9D93-A99886DDAAA4 I/Process (15580): Sending signal. PID: 15580 SIG: 9 Lost connection to device.

Same error for me!

I have been able to resolve the error:
I have come across a solution:

Open your project>android using android studio (Select android folder underneath the project name) wait for build to finish.
android>res right click on res folder in android project and choose image asset from new section
Create icon with following config
Name: ic_notification
Icon Type: Notification Icons

Issue will be resolved.

No, its still crashing the app.


Streaming for communication between sidecars and for (HTTP) service invocation

Description
This PR is the first step in enabling support for streaming data that transits through Dapr runtimes, with the initial focus on sidecar-to-sidecar communication, as well as service invocation(currently limited to HTTP only).
To explain the issue, here's a demo of a service "client" calling into "server" through Dapr, making an HTTP request. The payload is "big" (about 70KB) and for demonstration purposes, both "client" and "server" are slow at producing or consuming the data.
https://user-images.githubusercontent.com/43508/178880142-4f170a0e-6ab2-487a-9f3a-0f29f519ea6f.mp4
As you can see, the flow is:

"client" makes a request to its sidecar
The sidecar waits for the entire request to be complete and loads the entire data in memory, then serializes it (to protobuf)
"client" app's sidecar then sends the data to "server" app's sidecar (I did not add any "slowdown" in this step, but this does take some time especially with large payloads)
"server" app's sidecar waits for the entire payload to be received (from "client" app's sidecar) and loaded in memory, then un-serializes it
"server" app's sidecar sends the data to the "server" app

The flow is then repeated exactly the same way (but with roles inverted) for the response.
Because in every step the sidecars read the entire message in memory, this can make it challenging to use Dapr service-to-service invocation with large payloads (for example, images) because it adds significant latency. Additionally, because all the data is kept in memory in both serialized and unserialized forms, there's an increase in memory usage.
This PR changes the behavior, and now service-to-service invocation (same example) behaves this way:
https://user-images.githubusercontent.com/43508/178880049-4b377ea8-b78e-4dce-95ca-5b89e3bb71d7.mp4
By leveraging streaming, this is much faster, especially when transferring large files or when the producer is slow. Especially the TTFB (Time To First Byte) is much shorter.
What this PR includes, at a higher level:

Changed the way sidecars invoke one another to use streams. The new method ServiceInvocation.CallLocalStream is a variant of ServiceInvocation.CallLocal that uses streams rather than making unary calls. Internally this uses a buffer of up to 4KB, so messages that are smaller than that (and that are received in a single chunk by the runtime) are transferred in a single block. This should allow having no performance impact for small payloads (compared to unary RPCs).
In the HTTP API server, service invocation calls are now read as streams, so the runtime can begin invoking the other app as soon as the first bytes come in.
Likewise, when the sidecar invokes the apps using HTTP, the data is now sent to the app as a stream. Apps can begin receiving data as soon as the runtime gets it.

It also includes a lot of internal changes to support the two things above.
For clients that invoke Dapr via regular HTTP calls and receive responses through a regular HTTP server, no change will be needed. They will be able to enjoy the benefits of streaming for free and without doing anything!
For clients that use the Dapr SDKs, we may need to update the SDKs to leverage streaming when possible and appropriate. That is a separate work item.
Lastly, this PR is not "complete" as it doesn't add support for streams everywhere where we could want them. For example, we will want to support clients that use gRPC too. We will also want to leverage streaming for reading/writing into state stores and bindings.
Talking to @artursouza, he recommended focusing on HTTP service invocation first, and take this as an opportunity to lay the groundwork that will ultimately be useful in supporting all other scenarios. In this regard, this PR does provide some solid foundations for the remaining work.
To do

[ ] Figure out a way to ensure backwards compatibility when a runtime that supports streaming (e.g. daprd "vNext") tries to invoke a runtime that does not (e.g. daprd 1.8)
[ ] Update docs
[ ] Review what updates are needed in the SDKs

Issue reference
Fixes #3103
Also impacts other issues such as #4866
Checklist
Please make sure you've  completed the relevant tasks for this PR, out of the following list:

[X] Code compiles correctly
[X] Created/updated tests
[X] Unit tests passing
[ ] End-to-end tests passing
[ ] Extended the documentation / Created issue in the https://github.com/dapr/docs/ repo: @ItalyPaleAle TODO

Please make sure that this supports load balancing, otherwise we cannot accept this PR.
Meaning, if you call between app 1 and app 2 through Dapr and another instance pops up for app 2, it will start receiving requests.

Also, for the scenario mentioned of transferring a file between two sidecars, why can't users do that with gRPC streaming with Dapr? As Dapr supports streaming naturally all the way through from app to sidecar, sidecar to remote sidecar and then to the target app.

Please make sure that this supports load balancing, otherwise we cannot accept this PR.
Meaning, if you call between app 1 and app 2 through Dapr and another instance pops up for app 2, it will start receiving requests.

Yes, this should have no issue with load balancing. It creates a new stream for each invocation, so it can load balance. Internally, at the wire level, it behaves the same as an unary invocation.

Also, for the scenario mentioned of transferring a file between two sidecars, why can't users do that with gRPC streaming with Dapr?

This is based on HTTP which supports streaming natively as a protocol, we just didn’t support it in Dapr. HTTP is simpler and is easier to integrate with existing services.
In fact, I started thinking about this problem about 2 months ago when I made an attempt at developing a demo using Imaginary (which exposes a HTTP endpoint) through Dapr, and noticed these issues.
One other thing to note is that this only supports a scenario where there’s a single request followed by a single response (is not meant for long-running streams). The goal is to provide a different, stream-based transport for service invocation: for end-users, they should continue to think of this as regular service invocation, and not think of this as a stream. gRPC proxying remains the best solution when users need long-running streams and the ability to have two-way, alternating communication.
Lastly, as I wrote, this starts with HTTP but it also lays the foundation for supporting streams throughout the runtime. My goal is to support streams for other things including state stores (see #4804) and bindings.

Please make sure that this supports load balancing, otherwise we cannot accept this PR.
Meaning, if you call between app 1 and app 2 through Dapr and another instance pops up for app 2, it will start receiving requests.

Alternatively, you can keep existing mechanisms untouched while making streaming explicit and respecting HTTP semantics by introducing the Transfer-Encoding: chunked header.

I don’t think we need Transfer-Encoding: Chunked: that is meant for different purposes such as receiving a sequence of messages (like server-side events). This is meant to make service invocation faster and more efficient, by processing HTTP messages as a byte stream. It doesn’t require any change at the application level, and will work out-of-the-box even with regular curl requests.

Yes, this should have no issue with load balancing. It creates a new stream for each invocation, so it can load balance. Internally, at the wire level, it behaves the same as an unary invocation.

Ok, just please make sure to validate that either manually or with a test (better).
See my comment above about leaving current mechanism untouched and enabling streaming explicitly using a header.

I don’t think we need Transfer-Encoding: Chunked: that is meant for different purposes such as receiving a sequence of messages (like server-side events). This is meant to make service invocation faster and more efficient, by processing HTTP messages as a byte stream. It doesn’t require any change at the application level, and will work out-of-the-box even with regular curl requests.

Sounds good if there's no risk of behavioral breaking change like load balancing. Once this PR compiles I'll help verify.

Note that I've not abandoned this PR. I just realized this is very big, and a lot of things won't work well until #4979 is merged.
I'm the process of splitting it into multiple PRs, also to make it easier to review.

Note that I've not abandoned this PR. I just realized this is very big, and a lot of things won't work well until #4979 is merged.
I'm the process of splitting it into multiple PRs, also to make it easier to review.

Since #4979 will only be merge in 1.10 the soonest, doesn't it make sense to close this PR for now as this is at least 4/5 months away?

The “core” PR I’m working on does not involve the API server (app-to-dapr).
It only implements partial streaming support by changing the messaging APIs (dapr-to-dapr) and the HTTP channel (dapr-to-app). That’s not full support for streaming but at least implements the core functionality and the required APIs to unblock things like blob stores and cryptography, who depend on core streaming support.
Updating the HTTP API server will indeed depend on #4979.
I will close this PR once the “core” one is ready, hopefully by end of next week.

Closing this in favor of #5170


OrbitControls

I'm trying to implement an equivalent of OrbitControls, but so far I don't see a way to do it that is well integrated with React. Any thoughts given to this yet?
Do you see this as part of react-three-renderer or per-application custom code in components?
Kudos for the hard work on this lib! This looks very promising!

I recommend looking at the source for webgl camera example, and the trackball modified trackball controls code for something very similar :)

The second part: I see this as a plugin/module opportunity, or per application custom code

Thanks for the answer. I didn't notice that the camera example had trackball controls.

is there any way how to use orbit-three-controls together with react-three-renderer?

I was able to get OrbitControls working in react-three-renderer with almost no modifications.  See this diff to OrbitControls.js:
https://github.com/austinsims/tablesim-r3r/commit/499e73d8facca798ea5938783095e4c3e1be2fb3#diff-f03a52bf6b428186393292c8c2c41d98
And this corresponding diff to a stripped down Simple.js (from react-three-renderer-example repository):
https://github.com/austinsims/tablesim-r3r/commit/499e73d8facca798ea5938783095e4c3e1be2fb3#diff-1f7b0552e72334a51917a6ba613bbc2b

should work without modifying orbitControls.js, if using orbit-three-controls. Thought I can't really get it to work. Getting some strange warnings about 'unknown prop' after adding ref to React3 tag. Everything is rendered, but no orbitcontrols. hmm.

ok, I went simpler, and it works. See this gist for super simple implementation.


Add styled components example

Demonstrate how to use styled-components with react-server

Like I mentioned last night, everything looks good aside from swapping themes on the fly, which updates the props but doesn't apply them to the child components. I don't know enough about styled components to provide any meaningful help with that, though.

@egid I don't know what's up -- its working for me

Good call, that fixed it. Working as expected!


Add FMI4j and CrossCheck results to FMI tools page

FMI page is currently pending updates. Need to wait before we can add FMI4j there

https://github.com/modelica/fmi-crosscheck-tools

Crosscheck results missing. See #45


gh #27 Add DolbyMode Game Support

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Dolby Game mode support added.
@hari22yuva @sreenivasareddysky Please approve and merge

Do we need to have the L1 and L2 changes for this?

duplicate PR's


[Team] Reroute claim messages to mods-rulings

team-mods is too cluttered, reroute claim messages and result updates to mods-rulings where most of them belong? (possibly just reroute all mod chesster messages)

https://www.lichess4545.com/admin/tournament/leaguechannel/4/change/


Linking issues under Windows bash

I have the following config file:
- defaults:
    link:
      create: true
      relink: true

- clean: ['~']

- link:
    ~/.gitconfig:
    ~/.gitignore_global:

When I run the install script, it gives an output:
All targets have been cleaned
Linking failed ~/.gitconfig -> C:\Users\user\.dotfiles\gitconfig
Linking failed ~/.gitignore_global -> C:\Users\user\.dotfiles\gitignore_global
Some links were not successfully set up

Hmm, can you run with -vv (for verbose output) and see if you get any more info?

@danyeaw please help me over this #170 as I am having issue with shell :)


KAFKA-17663: Add metadata caching in PartitionLeaderStrategy

Admin API operations have two phases: lookup and fulfilment. The lookup phase involves a METADATA request whose details depend upon the operation being performed.
For some operations, the METADATA request can be quite expensive to serve. For example, if the user calls Admin.listOffsets for 1000 topics, the METADATA request will include all 1000 topics and the response will contain the leader information for all of these topics. And then the actual fulfilment phase does the real work of the operation.
In cases where a long-running application is performing repeated admin operations which need the same metadata information about partition leadership, it is not necessary to send the METADATA request for every single admin operation.
This PR adds a cache of the mapping from topic-partition to leader id to the admin client. The cache doesn't need to be very sophisticated because the admin client will retry if the information becomes stale, and the cache can be updated as a result of the retry.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

@hachikuji I think you're the original author of this code so I'd appreciate a review. Thanks.


Add analytics extension

Closes #211

Job VTB Documentation on 9625324 wanted to post the following:
View the site here
This comment will be updated on new commits.


🐛 Bug Report: Backstage application Google-Auth error

📜 Description
import {
  AlertDisplay,
  OAuthRequestDialog,
  SignInPage,
} from '@backstage/core-components';
import { createApp } from '@backstage/app-defaults';
import { AppRouter, FlatRoutes } from '@backstage/core-app-api';
import { CatalogGraphPage } from '@backstage/plugin-catalog-graph';
import { RequirePermission } from '@backstage/plugin-permission-react';
import { catalogEntityCreatePermission } from '@backstage/plugin-catalog-common/alpha';
import { providers } from './identityProviders';

const app = createApp({
  apis,
  components: {
    SignInPage: props => {
      return (
        <SignInPage
          {...props}
          providers={['guest', ...providers]}
          title="Select a sign-in method"
          align="center"
        />
      );
    },
  },

=========================================================

import {
  googleAuthApiRef
} from '@backstage/core-plugin-api';

export const providers = [
  {
    id: 'google-auth-provider',
    title: 'Google',
    message: 'Sign In using Google',
    apiRef: googleAuthApiRef,
  },
};
added Google provider in  App.tsx

=========================================================

added below in app-config.yaml
  auth:
  environment: development
  providers:
    google:
      development:
        clientId: ******************
        clientSecret: ***************
        signIn:
          resolvers:
            - resolver: usernameMatchingUserEntityName
            - resolver: emailMatchingUserEntityProfileEmail
            - resolver: usernameMatchingUserEntityName

=====================================================

configured Oauth in GCP console and im a google organization user my email ends with @google.com

👍 Expected behavior
it should login with my organization username/password.
👎 Actual Behavior with Screenshots

getting above error
👟 Reproduction steps
need help on this
📃 Provide the context for the Bug.
No response
🖥 Your Environment
No response
👀 Have you spent some time to check if this bug has been raised before?

[X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

Are you willing to submit PR?
None

Sorry to hear that you're having issues. It does look like that error message is coming from Google and not from backstage, it kinda looks like the project does not have access to auth that domain but I'm not an expert in this domain.
One alternative is to make the auth app external and verify domain using a sign in resolver.


unit tests for centaur code

Now that the centaur code base is starting to accumulate code that's not just tests, we should start having actual centaur unit tests as well. That'll be a little odd simply because sbt test will run both those and the integration tests but i'm sure we'll manage

Issue moved to broadinstitute/cromwell #2886 via ZenHub


Django server crashes on start

After adding thundra to my django settings, my container crashes on start.
From my settings:
import thundra

thundra.configure(
    options={"config": {"thundra.apikey": "xxxx",}}
)

The command it fails on:
python /code/manage.py rundebugserver <IP_ADDRESS>:80

Trace:
Exception in thread django-main-thread:
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.7/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.7/site-packages/django/utils/autoreload.py", line 53, in wrapper
    fn(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/django/core/management/commands/runserver.py", line 121, in inner_run
    self.check_migrations()
  File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 459, in check_migrations
    executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS])
  File "/usr/local/lib/python3.7/site-packages/django/db/migrations/executor.py", line 18, in __init__
    self.loader = MigrationLoader(self.connection)
  File "/usr/local/lib/python3.7/site-packages/django/db/migrations/loader.py", line 53, in __init__
    self.build_graph()
  File "/usr/local/lib/python3.7/site-packages/django/db/migrations/loader.py", line 216, in build_graph
    self.applied_migrations = recorder.applied_migrations()
  File "/usr/local/lib/python3.7/site-packages/django/db/migrations/recorder.py", line 77, in applied_migrations
    if self.has_table():
  File "/usr/local/lib/python3.7/site-packages/django/db/migrations/recorder.py", line 55, in has_table
    with self.connection.cursor() as cursor:
  File "/usr/local/lib/python3.7/site-packages/django/utils/asyncio.py", line 26, in inner
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 259, in cursor
    return self._cursor()
  File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 235, in _cursor
    self.ensure_connection()
  File "/usr/local/lib/python3.7/site-packages/django/utils/asyncio.py", line 26, in inner
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 219, in ensure_connection
    self.connect()
  File "/usr/local/lib/python3.7/site-packages/django/utils/asyncio.py", line 26, in inner
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 200, in connect
    self.connection = self.get_new_connection(conn_params)
  File "/usr/local/lib/python3.7/site-packages/django/utils/asyncio.py", line 26, in inner
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/django/db/backends/postgresql/base.py", line 206, in get_new_connection
    psycopg2.extras.register_default_jsonb(conn_or_curs=connection, loads=lambda x: x)
  File "/usr/local/lib/python3.7/site-packages/psycopg2/_json.py", line 156, in register_default_jsonb
    loads=loads, oid=JSONB_OID, array_oid=JSONBARRAY_OID, name='jsonb')
  File "/usr/local/lib/python3.7/site-packages/psycopg2/_json.py", line 125, in register_json
    register_type(JSON, not globally and conn_or_curs or None)
TypeError: argument 2 must be a connection, cursor or None

My dependencies:
python = "3.7.7"
argon2-cffi = "^20.1.0"
asgiref = "^3.2.10"
boto3 = "^1.14.45"
dj-database-url = "^0.5.0"
django = "^3.1.4"
django-axes = "^5.4.3"
django-memoize = "^2.2.1"
django-storages = "^1.9.1"
django-enhanced-emails = "^0.0.7"
django-ses = "^1.0.2"
djangorestframework = "^3.12.2"
djangorestframework_simplejwt = "^4.4.0"
djoser = "^2.0.3"
psycopg2-binary = "^2.8.6"
pytz = "^2020.1"
requests = "^2.24.0"
sentry-sdk = "^0.19.5"
sqlparse = "^0.3.1"
watchtower = "^0.8.0"
django-phonenumber-field = {version = "^4.0.0", extras = ["phonenumbers"]}
sodapy = "^2.1.0"
httpx = "^0.13.1"
pandas = "^1.1.1"
xlrd = "^1.2.0"
django-filter = "^2.2.0"
django-import-export = "^2.2.0"
scrapy = "^2.1.0"
scrapy_djangoitem = "^1.1.1"
django-dirtyfields = "^1.4.1"
thundra = "^2.5.7"

It also fails, with the same error, on a production gunicorn start.

Hi @aldebout Thanks for reporting the issue. I am escalating the issue to the team and will back to you once we reproduce the failure and understand the cause of the exception

Hi @aldebout Thanks for reporting the issue. I am escalating the issue to the team and will back to you once we reproduce the failure and understand the cause of the exception


Cant get HTML config file to read on ISO install

I am testing an ISO file to fix an SFP issue I am having in 3081 virtually
I have a ubuntu vm running apache serving this config file
scheme_version: 1
server_url: https://<IP_ADDRESS>:443
token: 1qaz2wsx3#

os:
  write_files:
  - content: |
     options ixgbe allow_unsupported_sfp=1
    path: /etc/modprobe.d/ixgbe.conf
  - content: |
      name: "reload ixgbe module"
      stages:
        boot:
          - commands:
            - rmmod ixgbe && modprobe ixgbe
    path: /oem/99_ixgbe.yaml

harvester is freezing saying:

The error is caused since we are trying to import config.yaml in the ssh keys panel.
The config panel comes after the ssh keys panel


Exception explore druid datasource then no result match query

Exception thrown when no/empty resultset from druid, otherwise (query results are present) everything is fine

Exceptions look ok when not in DEBUG mode. Showing the debugger is a feature.

Oh and I fixed the CSS doing white on white in the error report in 0.8.7.
Thanks for taking the time to file bug reports and providing good screenshots though, that's really helpful!


style(editors): add trailing newline to .prettierignore

For consistency with our .editorconfig.

#5540  👈
main

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

Join @overlookmotel and the rest of your teammates on  Graphite

Uncontentious change, so merging without review.


Hyprland crashes on NVIDIA with Gentoo

Regression?
No
System Info and Version
 System/Version info
(cant do it, dont have access to hyprland. I have mostly a base config but with some extras for NVIDIA)
I'm gonna attach my config below (it is a conf file, had to add the txt extension because github)
[hyprland.conf.txt](https://github.com/user-attachments/files/16021732/hyprland.conf.txt)

Description
I tried to use Hyprland on Gentoo on NVIDIA, it crashed when trying to uses
How to reproduce
Don't know, I just installed it via emerge hyprland on NVIDIA and it didn't work
Crash reports, logs, images, videos
hyprlandCrashReport29654.txt
core.txt
core is the core dump, not a txt. had to rename it because github

"DRI2: failed to load driver"

driver issue. Consider reading the nvidia wiki page.

Don't know, I just installed it via emerge hyprland on NVIDIA and it didn't work

this is not kde


how can I link tusd with uppy form?

Question
what is the smartest way to link the data from Uppy form with the file uploads? Can I also obtain uppy form using tusd or do I need an extra upload server for the form?
https://uppy.io/docs/form/
My users are uploading files and I need to link them with existing patient data.
Setup details
Please provide following details, if applicable to your situation:

Operating System: [e.g. Linux, Windows, macOS]
independent

Used tusd version: [can be obtained by running tusd -version]
1.1.0

Used tusd data storage: [e.g. disk store, AWS S3, Google Cloud Storage]
disk store

Used tusd configuration: [what arguments are you using to invoke tusd?]
./tusd -port 3020 -verbose -base-path /corona-upload/ -behind-proxy -verbose

Used tus client library: [e.g. tus-js-client, tus-java-client, TUSKit, Uppy.js]
uppy.js

what is the smartest way to link the data from Uppy form with the file uploads?

I am not an Uppy expert but I would say the best approach is to add the tus upload URL in a hidden form field and then submit it to your server.

Can I also obtain uppy form using tusd

No, tusd cannot handle form data. I would recommend to add that feature to your application backend, so you don't need an extra server process.

Closing this issue due to inactivity. Feel free to leave a comment if you want to continue the discussion :)


Health check endpoint

It would great if there was a /healthz endpoint that "pinged" the database (usually done with a "SELECT 1") on the SQL DB and returns a 200 OK on successful DB connection.
Kubernetes would leverage this to know which shynet pods to remove from serving user traffic as they couldn't get to the database anyway.

https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/

This is a good addition; I've added it to the roadmap.

@milesmcc need more info about /healthz page. Now it is an HTML page with statuses of cache and DB services. How PING or Docker/K8s services could know if something is not ok?

@mrspartak As far as I'm aware, if it returns an HTTP 200, it's OK -- otherwise it's not. All the HTML is just for diagnostics.

Yes, just found info at https://pypi.org/project/django-health-check/
HTTP Status code will be 500 if something isn't right. Also, it is possible to JSON output passing /healthz/?format=json


Docker issue

Please make sure that you have checked the boxes:

[ ] Review the Quickstart guide
[ ] Search for both open and closed issues regarding the problem you are experiencing
[x] For permissions issues (Access Denied and credential related errors), please refer to the requisite docs before submitting an issue:
AWS, GCP, OpenStack, GitHub

Description of issue:
Hi, i have created a docker image for the security monkey and the container is up and running.when i checked the logs its running into the following errors can anyone help me out ?? and it is not allowing me to create a user and as well to add the amazon account successfully. Thanks
Regards
Manasa
2017-12-21 17:16:34,990 WARNING: Scheduler Exception: (ProgrammingError) permission denied for relation account
 'SELECT account.id AS account_id, account.active AS account_active, account.third_party AS account_third_party, account.name AS account_name, account.notes AS account_notes, account.identifier AS account_identifier, account.account_type_id AS account_account_type_id \nFROM account \nWHERE account.third_party = false AND account.active = true' {} [in /usr/local/src/security_monkey/security_monkey/scheduler.py:231]
2017-12-21 17:16:34,994 WARNING: Traceback (most recent call last):
  File "/usr/local/src/security_monkey/security_monkey/scheduler.py", line 208, in setup_scheduler
    accounts = Account.query.filter(Account.third_party == False).filter(Account.active == True).all()  # noqa
  File "build/bdist.linux-x86_64/egg/sqlalchemy/orm/query.py", line 2279, in all
    return list(self)
  File "build/bdist.linux-x86_64/egg/sqlalchemy/orm/query.py", line 2391, in __iter__
    return self._execute_and_instances(context)
  File "build/bdist.linux-x86_64/egg/sqlalchemy/orm/query.py", line 2406, in _execute_and_instances
    result = conn.execute(querycontext.statement, self._params)
  File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 717, in execute
    return meth(self, multiparams, params)
  File "build/bdist.linux-x86_64/egg/sqlalchemy/sql/elements.py", line 317, in _execute_on_connection
    return connection._execute_clauseelement(self, multiparams, params)
  File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 814, in _execute_clauseelement
    compiled_sql, distilled_params
  File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 927, in _execute_context
    context)
  File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 1076, in _handle_dbapi_exception
    exc_info
  File "build/bdist.linux-x86_64/egg/sqlalchemy/util/compat.py", line 185, in raise_from_cause
    reraise(type(exception), exception, tb=exc_tb)
  File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 920, in _execute_context
    context)
  File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/default.py", line 425, in do_execute
    cursor.execute(statement, parameters)
ProgrammingError: (ProgrammingError) permission denied for relation account
 'SELECT account.id AS account_id, account.active AS account_active, account.third_party AS account_third_party, account.name AS account_name, account.notes AS account_notes, account.identifier AS account_identifier, account.account_type_id AS account_account_type_id \nFROM account \nWHERE account.third_party = false AND account.active = true' {}
 [in /usr/local/src/security_monkey/security_monkey/scheduler.py:232]
2017-12-21 17:16:34,996 ERROR: Encountered exception while logging exception to database: [in /usr/local/src/security_monkey/security_monkey/datastore.py:730]
2017-12-21 17:16:34,996 ERROR: (InternalError) current transaction is aborted, commands ignored until end of transaction block
 'INSERT INTO exceptions (source, occurred, ttl, type, message, stacktrace, region, tech_id, item_id, account_id) VALUES (%(source)s, %(occurred)s, %(ttl)s, %(type)s, %(message)s, %(stacktrace)s, %(region)s, %(tech_id)s, %(item_id)s, %(account_id)s) RETURNING exceptions.id' {'stacktrace': 'Traceback (most recent call last):\n  File "/usr/local/src/security_monkey/security_monkey/scheduler.py", line 208, in setup_scheduler\n    accounts = Account.query.filter(Account.third_party == False).filter(Account.active == True).all()  # noqa\n  File "build/bdist.linux-x86_64/egg/sqlalchemy/orm/query.py", line 2279, in all\n    return list(self)\n  File "build/bdist.linux-x86_64/egg/sqlalchemy/orm/query.py", line 2391, in __iter__\n    return self._execute_and_instances(context)\n  File "build/bdist.linux-x86_64/egg/sqlalchemy/orm/query.py", line 2406, in _execute_and_instances\n    result = conn.execute(querycontext.statement, self._params)\n  File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 717, in execute\n    return meth(self, multiparams, params)\n  File "build/bdist.linux-x86_64/egg/sqlalchemy/sql/elements.py", line 317, in _execute_on_connection\n    return connection._execute_clauseelement(self, multiparams, params)\n  File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 814, in _execute_clauseelement\n    compiled_sql, distilled_params\n  File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 927, in _execute_context\n    context)\n  File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 1076, in _handle_dbapi_exception\n    exc_info\n  File "build/bdist.linux-x86_64/egg/sqlalchemy/util/compat.py", line 185, in raise_from_cause\n    reraise(type(exception), exception, tb=exc_tb)\n  File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 920, in _execute_context\n    context)\n  File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/default.py", line 425, in do_execute\n    cursor.execute(statement, parameters)\nProgrammingError: (ProgrammingError) permission denied for relation account\n \'SELECT account.id AS account_id, account.active AS account_active, account.third_party AS account_third_party, account.name AS account_name, account.notes AS account_notes, account.identifier AS account_identifier, account.account_type_id AS account_account_type_id \\nFROM account \\nWHERE account.third_party = false AND account.active = true\' {}\n', 'account_id': None, 'region': None, 'occurred': datetime.datetime(2017, 12, 21, 17, 16, 34, 516249), 'tech_id': None, 'source': 'scheduler', 'ttl': datetime.datetime(2017, 12, 31, 17, 16, 34, 516283), 'item_id': None, 'message': "(ProgrammingError) permission denied for relation account\n 'SELECT account.id AS account_id, account.active AS account_active, account.third_party AS account_third_party, account.name AS account_name, account.notes AS account_notes, account.identifier AS account_identifier, account.account_type_id AS account_account_type_id \\nFROM account \\nWHERE account.third_party = false AND account.active = true' {}", 'type': 'ProgrammingError'} [in /usr/local/src/security_monkey/security_monkey/datastore.py:731]
Traceback (most recent call last):
  File "/usr/local/src/security_monkey/security_monkey/datastore.py", line 726, in store_exception
    db.session.commit()
  File "build/bdist.linux-x86_64/egg/sqlalchemy/orm/scoping.py", line 149, in do
    return getattr(self.registry(), name)(*args, **kwargs)
  File "build/bdist.linux-x86_64/egg/sqlalchemy/orm/session.py", line 765, in commit
    self.transaction.commit()
  File "build/bdist.linux-x86_64/egg/sqlalchemy/orm/session.py", line 370, in commit
    self._prepare_impl()
  File "build/bdist.linux-x86_64/egg/sqlalchemy/orm/session.py", line 350, in _prepare_impl
    self.session.flush()
  File "build/bdist.linux-x86_64/egg/sqlalchemy/orm/session.py", line 1879, in flush
    self._flush(objects)
  File "build/bdist.linux-x86_64/egg/sqlalchemy/orm/session.py", line 1997, in _flush
    transaction.rollback(_capture_exception=True)
  File "build/bdist.linux-x86_64/egg/sqlalchemy/util/langhelpers.py", line 57, in __exit__
    compat.reraise(exc_type, exc_value, exc_tb)
  File "build/bdist.linux-x86_64/egg/sqlalchemy/orm/session.py", line 1961, in _flush
    flush_context.execute()
  File "build/bdist.linux-x86_64/egg/sqlalchemy/orm/unitofwork.py", line 370, in execute
    rec.execute(self)
  File "build/bdist.linux-x86_64/egg/sqlalchemy/orm/unitofwork.py", line 523, in execute
    uow
  File "build/bdist.linux-x86_64/egg/sqlalchemy/orm/persistence.py", line 64, in save_obj
    mapper, table, insert)
  File "build/bdist.linux-x86_64/egg/sqlalchemy/orm/persistence.py", line 594, in _emit_insert_statements
    execute(statement, params)
  File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 717, in execute
    return meth(self, multiparams, params)
  File "build/bdist.linux-x86_64/egg/sqlalchemy/sql/elements.py", line 317, in _execute_on_connection
    return connection._execute_clauseelement(self, multiparams, params)
  File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 814, in _execute_clauseelement
    compiled_sql, distilled_params
  File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 927, in _execute_context
    context)
  File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 1076, in _handle_dbapi_exception
    exc_info
  File "build/bdist.linux-x86_64/egg/sqlalchemy/util/compat.py", line 185, in raise_from_cause
    reraise(type(exception), exception, tb=exc_tb)
  File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 920, in _execute_context
    context)
  File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/default.py", line 425, in do_execute
    cursor.execute(statement, parameters)
InternalError: (InternalError) current transaction is aborted, commands ignored until end of transaction block
 'INSERT INTO exceptions (source, occurred, ttl, type, message, stacktrace, region, tech_id, item_id, account_id) VALUES (%(source)s, %(occurred)s, %(ttl)s, %(type)s, %(message)s, %(stacktrace)s, %(region)s, %(tech_id)s, %(item_id)s, %(account_id)s) RETURNING exceptions.id' {'stacktrace': 'Traceback (most recent call last):\n  File "/usr/local/src/security_monkey/security_monkey/scheduler.py", line 208, in setup_scheduler\n    accounts = Account.query.filter(Account.third_party == False).filter(Account.active == True).all()  # noqa\n  File "build/bdist.linux-x86_64/egg/sqlalchemy/orm/query.py", line 2279, in all\n    return list(self)\n  File "build/bdist.linux-x86_64/egg/sqlalchemy/orm/query.py", line 2391, in __iter__\n    return self._execute_and_instances(context)\n  File "build/bdist.linux-x86_64/egg/sqlalchemy/orm/query.py", line 2406, in _execute_and_instances\n    result = conn.execute(querycontext.statement, self._params)\n  File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 717, in execute\n    return meth(self, multiparams, params)\n  File "build/bdist.linux-x86_64/egg/sqlalchemy/sql/elements.py", line 317, in _execute_on_connection\n    return connection._execute_clauseelement(self, multiparams, params)\n  File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 814, in _execute_clauseelement\n    compiled_sql, distilled_params\n  File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 927, in _execute_context\n    context)\n  File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 1076, in _handle_dbapi_exception\n    exc_info\n  File "build/bdist.linux-x86_64/egg/sqlalchemy/util/compat.py", line 185, in raise_from_cause\n    reraise(type(exception), exception, tb=exc_tb)\n  File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 920, in _execute_context\n    context)\n  File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/default.py", line 425, in do_execute\n    cursor.execute(statement, parameters)\nProgrammingError: (ProgrammingError) permission denied for relation account\n \'SELECT account.id AS account_id, account.active AS account_active, account.third_party AS account_third_party, account.name AS account_name, account.notes AS account_notes, account.identifier AS account_identifier, account.account_type_id AS account_account_type_id \\nFROM account \\nWHERE account.third_party = false AND account.active = true\' {}\n', 'account_id': None, 'region': None, 'occurred': datetime.datetime(2017, 12, 21, 17, 16, 34, 516249), 'tech_id': None, 'source': 'scheduler', 'ttl': datetime.datetime(2017, 12, 31, 17, 16, 34, 516283), 'item_id': None, 'message': "(ProgrammingError) permission denied for relation account\n 'SELECT account.id AS account_id, account.active AS account_active, account.third_party AS account_third_party, account.name AS account_name, account.notes AS account_notes, account.identifier AS account_identifier, account.account_type_id AS account_account_type_id \\nFROM account \\nWHERE account.third_party = false AND account.active = true' {}", 'type': 'ProgrammingError'}
2017-12-21 17:16:35,000 INFO: Scheduler started [in /usr/local/src/security_monkey/venv/lib/python2.7/site-packages/APScheduler-2.1.2-py2.7.egg/apscheduler/scheduler.py:574]
2017-12-21 17:16:35,000 INFO: Scheduler has been shut down [in /usr/local/src/security_monkey/venv/lib/python2.7/site-packages/APScheduler-2.1.2-py2.7.egg/apscheduler/scheduler.py:606]

I have DNS name created serperately enabling route53 as false. and passing the dns name as an env variable do i need to configure anything in the config file with FQDN? where i can see the configuration as
FQDN = os.getenv('SECURITY_MONKEY_FQDN', 'ec2-XX-XXX-XXX-XXX.compute-1.amazonaws.com')
Thanks


fix(s3client, stsclient): add timeout parameter for newHttpClient

Add missing timeout parameters in s3client and stsclient. It previously used the default value, which is -1.
I looked at net.nim again, and still didn't see an obvious reason for why timeouts wouldn't be honored there. Was the problem in net.nim, or was it due to the missing timeout params here?

Issue was sinks which use net.nim although this is a good fix as well.

Yes, per Miro, while the S3 code isn't ours, that hasn't been the problem; the problem has been, if you follow the non-async path within net.nim, it never actually uses the timeout parameter. I don't remember the specifics because it's been a long time since we traced it, but I think it ends up calling connect() directly, without applying any timeout. Generally, the pattern I've used / what I'd expect to see is to force the socket into non-blocking mode, then call connect(), which should usually then fail with EINPROGRESS, at which point you select() on the file descriptor passing a timeout. If the connection finishes, then put it back in blocking mode (assuming it was already blocking when forced to non-blocking; there's generally no reason for us to have non-blocking connections).
But that was a lot of work Nim wasn't doing, and there was no way we should wait forever for the patch cycle.


Error when installing Nebula Decals and EVA Handrails Continued

As title says. Error text follows. Thanks!
Module "EVA Handrails Continued" successfully installed
Oh no! We tried to overwrite a file owned by another mod!
Please try a ckan update and try again.
If this problem re-occurs, then it maybe a packaging bug.
Please report it at:
https://github.com/KSP-CKAN/NetKAN/issues/new
Please including the following information in your report:
File           : GameData/NEBULA/readme.txt
Installing Mod : NEBULADecalsContinued <IP_ADDRESS>
Owning Mod     : EVAHandrailsPackContinued
CKAN Version   : v1.22.1-0-g174271a (beta)
Your GameData has been returned to its original state.
Error!

@linuxgurugamer, this is a pair of mods you've taken on. Can you re-release them with their contents in subfolders to stop them conflicting? Might want to look at the two ModuleManager DLLs in EVAHandrailsPackContinued, too. Have just one of them in GameData where it belongs?

@linuxgurugamer, this is a pair of mods you've taken on. Can you re-release them with their contents in subfolders to stop them conflicting? Might want to look at the two ModuleManager DLLs in EVAHandrailsPackContinued, too. Have just one of them in GameData where it belongs?

Sure.
The MM dlls will be taken care of when I do the release

Moving into subfolders will be difficult.  I'll fix this by making sure there aren't any conflicting files

New versions have been uploaded, when CKAN updates, this should be fixed:
EVAHandRailsPack:  <IP_ADDRESS>
NebulaDecals: <IP_ADDRESS>


Eager API String Tensors (and others that need to be copied) Fix

This PR partially fixes the issue related to string tensors, described in #12612. Note that there are still some issues remaining related to string tensors:

There is a small inconsistency when dealing with TFE tensors now in that for the string data type, a copy of the provided TF_Tensor is created, whereas for others types that's not the case. This can be problematic when users of the API attempt to use the underlying tensor buffer directly (e.g., to read values of specific elements). The problem could potentially be alleviated if the same memory layout is used for string TF_Tensors and tensorflow::Tensors. I'm not sure why that's not the case and I'm also not sure what the memory layout for string tensors is internally (could someone provide some insight into that please?).
The above-mentioned problem could be partially alleviated by providing a TFE function for obtaining a byte array representation of the ith element in the flattened (row-major) tensor. That is currently the only use I have found for directly accessing the underlying buffer.
This fix resolves the issues specific to string tensors and the eager execution API, but one issue related to #12612 still remains. When I try to use some ops, such as the Unpack op, I get the following error (no matter what the data type of the tensor is): C  [libtensorflow.so+0x20f0]  TFE_TensorHandleDeviceName+0x0. I plan to look more into this, but please let me know if you can see a reason why this might be happening.

@alextp could you please give me some information on what the memory layout is for string tensors internally and on why we cannot use the same representation for the C API TF_Tensors? That would resolve points 1 and 2 above. I think that a function for obtaining the ith element would still be very useful though, in either case. :)

Can one of the admins verify this patch?

Thanks for the PR. Indeed, I think the missing conversion is a bug.
Answering your questions:

The layout for string tensorflow::Tensors is a flattened array of std::string objects (so you'll see use of flat<string> at various places, like this). This layout isn't a contiguous piece of memory, so isn't quite amenably to say a single memcpy of the contents (and which is why there are various specializations for string-valued tensors to ensure their contents are contiguous, for example the helper for Tensor::AsProtoTensorContent).

What you suggest might be possible, but might also open a separate can of worms. I'd be tempted to defer on this until there is a stronger demonstrated need for the performance benefit (are you using models that involve large string tensors as inputs/outputs?)

Will have to look into this separately. (Could you provide a simple reproduction using the C API as opposed to using your Scala wrappers?)

Thanks for the detailed response! :) I'll respond tomorrow because I'm going to bed now, but I just wanted to ask something about the requested changes. I also don't like ignoring the status. In my opinion, the right way to do this would be to change the function to take a status argument instead of creating one internally and just returning a nullptr. This would be better both because it'd be consistent with the rest of the API and because it would let the caller decide how to handle errors and maybe print information about them. I just didn't make that change because I don't know how you feel about changing the API. Would you like me to make that change or just create a new status in the function body for now?
On Aug 28, 2017, 1:06 AM -0400, Asim Shankar<EMAIL_ADDRESS>wrote:

@asimshankar requested changes on this pull request.
In tensorflow/c/eager/c_api.cc:

@@ -151,9 +151,10 @@ TF_DeviceList* TFE_ContextListDevices(TFE_Context* ctx, TF_Status* status) {
}

TFE_TensorHandle* TFE_NewTensorHandle(TF_Tensor* t) {

return new TFE_TensorHandle(

 tensorflow::TensorCApi::MakeTensor(t->dtype, t->shape, t->buffer),

 nullptr);

tensorflow::Tensor tensor;
// TODO: Add status argument and check on it.
tensorflow::TF_TensorToTensor(t, &tensor);
I'm worried about ignoring the status result.
At the very least, we should return nullptr if !status.ok()
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@asimshankar In response to your answers:

I sort of expected that but wasn't sure. Thanks for verifying. :)
I can see this not being a priority and to be honest, I cannot really say what the potential bad side effects of this would be (assuming the obtained element was a copy of the corresponding bytes in the buffer). Just to put this into perspective though, and for future reference, I would like to describe why I think such a feature could be useful. Currently, I'm using the eager API to offer numpy-like functionality in Scala. I think many people might use it in that way, given that not many languages offer a tensor computation library as powerful as numpy. The current API works fine for creating and manipulating tensors within TensorFlow, but whenever one wants to obtain the value of a particular element they would have to first slice the tensor to obtain a scalar tensor containing that value, and then copy the result to CPU and resolve using the TFE resolve function. Then they can obtain a pointer to the TF_Tensor buffer and read that element. Furthermore, if they want to iterate over elements, they would need to do the same, without the slicing component. Therefore, a function for obtaining a single element given the flattened index, and a method for iterating over tensor elements, might be useful. I also noticed that such methods are already provided in tensorflow::Tensor, in C++, so I'm not sure why it would be bad to wrap them for TFE tensors.
I'll try to submit an issue for this later today or tomorrow with a C++ code fragment. :)

Thanks @eaplatanios . I agree that the more appropriate fix is to change the signature of TFE_NewTensorHandle so that it returns a status. If you're up for that, please do make the change.
Regarding adding an API for iteration - I'm not suggesting that it will not be needed, just deferring till there is a more demonstrable need. It's always easier to add new APIs and harder to remove/change existing ones. Adding a function to provide the byte representation of the i-th flattened element will raise questions like: (1) Should that be mutable, as in, do we want to allow users to edit the value of the element as well? (2) If so, then who will own the memory if the length of the representation changes? (e.g., a longer or shorter string) and how will that length be specified? (3) If the representation meant to be friendly to serialization (like the numeric types?), or is it up to the user of the API to worry about encoding/decoding lengths? etc.
We can take positions on these, but it seems a bit premature to me for now, especially until we can more concretely demonstrate a (presumably performance) impact of this. Does that sound reasonable?
Thanks very much for digging into this and the fix!

Thanks a lot Asim! That sounds good. I'll push the edits for the status flag later today. If that's ok, I will push the changes untested and let your CI system run them, because they take a very long time on my laptop.
Regarding the points you raise. Yes, I agree they all make sense. I guess there is a big underlying question of whether you want tensors to be considered mutable or not. Currently they are assumed to be immutable (at least that's my understanding) and that's why I thought such an addition to the API would be fine. But you're right and it's not really very necessary. I'm currently resolving the tensors but I also think users wouldn't really need to do that much, as for the most part they would not be taking values out of tensors; most computation should be done within TensorFlow.

I added the status as an extra argument. It should be good now. :)

Jenkins, test this please

Jenkins, test this please

Jenkins, test this please

Jenkins, test this please

Sorry I forgot to revert one of the changes. It should be good now.

@asimshankar Could you please run the tests for this to make sure it's fixed? Thank you! :)

Jenkins, test this please.
On Wed, Aug 30, 2017 at 11:10 AM, Anthony Platanios <
<EMAIL_ADDRESS>wrote:

@asimshankar https://github.com/asimshankar Could you please run the
tests for this to make sure it's fixed? Thank you! :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/pull/12627#issuecomment-326072614,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAATxY5YrZaokYKw1GgFlrhzQN05iFt5ks5sdaWZgaJpZM4PDsft
.

--

Alex

Hmm...I'm not sure if there is a problem or if the tests simply timed out due to load.

Jenkins, test this please

I think this should be ready to be merged.


fix: publish an external group auth event only with registered IDPs

When authenticating a user with external OAuth, only publish the ExternalGroupAuthorizationEvent for registered IDPs, thereby skipping the event if authentication is through UAA itself, such as when using the JWT bearer token grant. Without this fix, the event is published every time you use the JWT bearer token grant.

clean
https://sonarcloud.io/summary/new_code?id=cloudfoundry-identity-parent&pullRequest=2941
so far valid

skipping the event if authentication is through UAA itself, such as when using the JWT bearer token grant

Hi @mikeroda, correct me if I'm wrong: After this PR, when the JWT bearer grant is invoked when the request param assertion is an external IDP token, the ExternalGroupAuthorizationEvent will still be published. This PR just skip the event when the JWT bearer grant's request assertion is a UAA internal token.

skipping the event if authentication is through UAA itself, such as when using the JWT bearer token grant

Hi @mikeroda, correct me if I'm wrong: After this PR, when the JWT bearer grant is invoked when the request param assertion is an external IDP token, the ExternalGroupAuthorizationEvent will still be published. This PR just skips the event when the JWT bearer grant's request assertion is a UAA internal token.

@peterhaochen47, that's correct.


Fix SCTP Slowdowns on high RTTs

Problem

SCTP throughput slows down disproportionately (compared to firefox) when you have higher RTT values (10ms->50ms)

Related Issue

https://code.google.com/p/webrtc/issues/detail?id=3695

Duplicated pretty easily with tc-netem.  But bumped down in priority -- we're not sure this affects real-world use, and observed performance in real-world use is currently OK compared to other reliability issues.

The original issue was closed - the test methodology was wrong (Slowing IPC the same time it was slowing the network).


css for code and video

This PR make the previous image for video width up to the same size at the video to avoid layout break.
Trying also to improve "inline" code to have a bit more contrast. See WheelPanAction

make it live for live testing.

https://netbeans.apache.org/front/main/projects/graph/examples/ show maybe not enough contrast.
@mbien, the cursor over the picture seems working
https://netbeans.apache.org/front/main/blogs/entry/netbeans-status-interview-at-javaone/


ruby23 2.3.3 (new formula)

Took the formula from homebrew-core before the switch to 2.4.0. Removed head and devel.

@MikeMcQuaid thanks for the feedback. I quite didn't knew how this was handled.

Thanks for your first contribution to Homebrew Versions!  You rock!


Creating and consuming JWT tokens in .Net WebAPI

https://tkit.dev/2018/04/08/creating-and-consuming-jwt-tokens-in-net-webapi/

Hi, can you please share your code for this toturial ?
https://tkit.dev/2018/04/08/creating-and-consuming-jwt-tokens-in-net-webapi/
Thanks

Hi, I think everything you need is contained within the post. What do you think is missing?

i think you done a great job explaining the jwt mechanism in a simple way.
I would  like to  see how do you define the AccountController, specially how you created the gettoken api,  and the basic user registration flow (if there is some).

That depends highly on what you're using on the client side to manage the token and your session (some React / Vue / Angular library would be a common approach). This post only deals with generating the token itself. You could just return it as a string to the browser and then deal with it there.


Growing weights

Hi,
thanks for great recurrent package. I'm still new to Torch, so the problem is probably in my usage. However, when I try to stack LSTM into multilayer network by using Sequencer, the weights are constantly growing. Without sequencer with only one recurrent layer it works fine.
network:
-- LSTM
    recurrent = nn.LSTM(inSize, hiddenSize1, rho)
    recurrent2 = nn.LSTM(hiddenSize1, hiddenSize2, rho)
    recurrent.scales = torch.Tensor(rho):fill(1)
    recurrent2.scales = torch.Tensor(rho):fill(1)
    linear = nn.Linear(hiddenSize2, outSize)

    model = nn.Sequential()
    sequencer = nn.Sequencer(recurrent)
    sequencer2 = nn.Sequencer(recurrent2)
    sequencer3 = nn.Sequencer(linear)
    model:add(sequencer)
    model:add(sequencer2)
    model:add(sequencer3)

-- TRAINING
for t = 1, (trainSize - batchSize) do

        -- load new sample
        local inputs, targets, gradOutputs = {}, {}, {}
        for step = 1, rho do
            local index = t + step
            inputs[step] = inputData:sub(1, inputData:size(1), index, index + batchSize - 1):transpose(1,2)
            targets[step] = outputData:sub(1, outputData:size(1), index, index + batchSize - 1):transpose(1, 2)

        end

        local outputs = model:forward(inputs)

        for step = 1, rho do
            local err = criterion:forward(outputs[step], targets[step])
            trainError = trainError + err
            gradOutputs[step] = criterion:backward(outputs[step], targets[step])
        end

        model:backward(inputs, gradOutputs)
        model:updateParameters(lrRNN)
        linear:zeroGradParameters()
    end

I have tried lowering the learning rate (1e-2, 1e-3, 1e-4), different size of scales (1, 1/rho), batch size (1,10) or rho (1,5,10,100). But none of these modification seemed to work. Any ideas?

Hi,
Glad you like it. So I suspect the issue is in
gradOutputs[step] = criterion:backward(outputs[step], targets[step])

where it should be
gradOutputs[step] =rnn.recursiveCopy(gradOutputs[step], criterion:backward(outputs[step], targets[step]))

Otherwise, gradOutputs will contain rho identical gradOutput Tensors.
This shouldn't be a problem once I roll out SequencerCriterion.

SequencerCriterion

Thanks for the reply. I`ve tried both solution, but without any progress.

Darn. What dataset are you using? I would like to try it out on my end.

Its no general dataset. Im trying to model time series. Thanks for help, I`ll do double check and optionally send you the set.

Hey Nick and pefi9 - I'm working on modelling time series, using LSTM - it's not an easy ride that's for sure !!!
The only things that are helping at the moment is printing output batch and epoch means, standard deviations, and max's / mins of the input and outputs of my LSTMs modules, and criterion's.
It's helped to find a few mistake in my code - you know garage in = garbage out :(

Yeah its full of obstacles. I really need to find the time to play with the LSTM.

So what are the right things to monitor for a systems of LSTM modules that are unfolded from time t=1,..., T?  I guess it's the outputs of the t=T module, and the gradients of the t=1 module, and you would use, L2 norms as the stability measures for both the outputs and grad params?

Yes. The norms of the gradients w.r.t. to parameters and outputs. You can monitor max and average norms over batches. Its messy, but it works :)
Nice plots.

@pefi9 Try the latest version of rnn. I updated the Sequencer. Fixed a bug.

Hey Nick, thanks for the great advice :+1:

The norms of the gradients w.r.t. to parameters and outputs. You can monitor max and average norms over batches. Its messy, but it works :)

I finally spotted what was going wrong - it was not an error in my understanding - which was drive me nuts - but it was that Oxford Msc course code I was using,
model_utils.combine_all_parameters
I'm guessing this may well be unstable - does not work in some cases - at least for me it seems to give weird behaviour ???
When I wrapped all my modules, (reader, encoder, Q-sampler, decoder and writer). up into a big gModule, and used the standard, :getParameters(). Everything works better, and also the objective function that goes into the optimizer is a lot more tidy. I still don't get the same MNIST values as deepmind, but they're close - and at least it converges :+1:
So basically I went nuts for 10 days, and had a sad Easter, because I used code written by someone else, which I did'nt really understand - won't be doing that again :-1:
I'm just wondering if you've seen anything similar that you know is reliable - pretty sure it works?

Sorry for delay, Ive been offline for a while.  @AjayTalati - Thanks for the advice, Ill try to search deeper.
@nicholas-leonard - I have created repository with the dataset if you are interested in ( https://github.com/pefi9/lstm_data_set ). I tried the last update, sadly I cant confirm any change. As I wrote Ill try to look at the gradients what might go wrong. Ii possible as well that Im just using the package wrongly as lstm and torch are pretty new for me. Ill let you know if I make any progress on this.
Thanks a lot
Petr

@pefi9 in your training loop you call linear:zeroGradParameters() whereas you should call model:zeroGradParameters(), that makes your gradients and weights of LSTM layers to constantly grow.

Thanks @szagoruyko

@szagoruyko thanks a lot. That helped :-).

@pefi9  -- a really simply and effective way to stop exploding weights, (for my cloned nngraph system), is just to train it for a very small number of time steps. Save it, rebuild the system and clone it for double the number of time steps, and then to copy the parameters into the shared parameter tensor, for the new (double length system). That's easy and it works :)
I'm still trying to understand DP but when I finally move over to it, I'll try that!


Add timestamp to each API response

Provide a date/timestamp to each API response to offer contextual information on the age of a result, e.g. the RPKI validty was x based on a validation run done at moment y.

For reference, the .metadata in the JSON output of my rpki-client instance looks like
# .metadata
{
  "buildmachine": "fdd4a0acfce8",
  "buildtime": "2021-07-19T16:05:45Z",
  "elapsedtime": "80",
  "usertime": "65",
  "systemtime": "9",
  "roas": 24780,
  "failedroas": 0,
  "invalidroas": 0,
  "certificates": 15359,
  "failcertificates": 0,
  "invalidcertificates": 0,
  "tals": 1,
  // Not sure if this is space-separated or an array
  "talfiles": "/etc/pki/tals/ripe.tal",
  "manifests": 15359,
  "failedmanifests": 2,
  "stalemanifests": 1,
  "crls": 15356,
  "gbrs": 2,
  "repositories": 15358,
  "vrps": 132795,
  "uniquevrps": 132793,
  "cachedir_del_files": 233,
  "cachedir_del_dirs": 24
}

If identical fields are included it may be nice to name them identically :)

You are not wrong but (a) OctoRPKI already uses ‘generated’ albeit with a Unix timestamp, and (b) I think ‘buildtime’ is misleading. I certainly ignored it at first because I thought it was the time the binary was build.

(b) I think ‘buildtime’ is misleading. I certainly ignored it at first because I thought it was the time the binary was build.

Me too - same for build machine..


Fix a typo in the tesensor test script.

Description
Fix a typo in the tesensor test script.

Checklist:

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

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

Please help for code review. @vjjunnut @cobusve @brianfr @dongh @satyaprk-amazon @qiutongs @lundinc2


Poker garbled code

What is the reason for the garbled code? How can I solve this problem? The game version is 2.05, the poker version is R22, and the plug-in is sys-botbase-20

Thanks，Solve with the third method，I deleted some plug-ins of sd:/atmosphere/contents folder


Added Red Hat logo

"Fixes #issue-number" or "Add description of the problem this PR solves"
Proposed Changes

Added the Red Hat logo

/assign @yuzisun

Thanks @taneem-ibrahim !
/lgtm
/approve


Function Discovery using LC_FUNCTION_STARTS

Is your feature request related to a problem? Please describe.
The MachO Header sometimes contains the load command LC_FUNCTION_STARTS which contains information about all the function starts in the binary. This often includes functions that are not discovered during the auto analysis of the binary, and due to the nature of e.g. ObjectiveC cannot be directly discovered by XRefs.
Describe the solution you'd like
Ghidra should save the list of function starts during the initial loading somewhere and provide an "analysis" that adds these addresses as functions. This analysis should probably be activated by default because in most cases it will be useful.
Describe alternatives you've considered
Don't see much of an alternative. I am not aware of any way to access the original binary file bytes in the actual CodeBrowser tool so without changes in the loader itself it doesn't seem to be possible to write a script for this either. It could be enough to expose this information so any kind of load command that isn't implemented in Ghidra could be handled via a user script easily, without having to spin up a development setup and change the loader source code.
Additional context
For example in
this binary Ghidra does not find the function at<PHONE_NUMBER>00738c while https://github.com/horsicq/XMachOViewer clearly lists this (amonst others)

Looks doable.  This is useful.

@fmagin, I have this working, but on some apps it looks like some of the function starts are pointing to switch data.    I seemingly have this working but for some newer samples we end up creating functions on data in some cases.

@ryanmkurtz  I haven't looked into this much, I only did spot checks and for some binaries I dealt with recently I wrote my own script to do it, and all functions seemed sane.
How obvious is it that it is a switch table? Also which architecture are we talking about, aarch64 or x86?

This was arch64, in the iOS 15 Weather app. There were several function starts that failed to disassemble, and Ghidra later marked them as switch tables. They were referenced by some kind of load instruction (can't remember the exact one). I should try your above program to see what it says about them.

XMachOViewer is also identifying it as a function:

It just looks like some addresses point to non-functions, for whatever reason.  I'm moving forward with doing the function creation in a very low-priority analyzer, so it ignores things that have already been processed there.  Seems to be getting the job done.


Firefox using 100% CPU and livemarks not updating

Add-on version
Add-on version: 1.16
Describe the bug
Firefox starts using 100% CPU. Livemarks don't update and you can't create new ones. Clicking a livemark doesn't add the tick for seen items. When I exit Firefox it keeps running for a long time and won't let me open a new window. Eventually it shows the crash dialog (I will try to get the error report next time, but it doesn't seem to contain anything related to Livemarks). After I restart it the livemarks start updating again. I have been on Firefox 64 and Livemarks 1.16 for a while but this only started happening about a week ago. It could be some other extension messing up but I haven't installed any new ones recently. Nothing else seems to stop working when it happens.
To Reproduce
Steps to reproduce the behavior:
Leave Firefox running for a couple of days.

I haven't had this happen again since my last post. I suspect either upgrading to 65 or simply turning bookmark sync off and then on again fixed the problem somehow.


[Network] Made sourceAddressPrefix and destinationAddressPrefix non-mandatory

Generated from RestAPI PR: https://github.com/Azure/azure-rest-api-specs/pull/1757

Codecov Report

Merging #1501 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master    #1501   +/-   ##
=======================================
  Coverage   55.07%   55.07%
=======================================
  Files        3454     3454
  Lines       84233    84233
=======================================
  Hits        46395    46395
  Misses      37838    37838

Impacted Files
Coverage Δ

...e/mgmt/network/v2017_09_01/models/security_rule.py
100% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

@tjprescott are critical is it for you? It's breaking here :/

@johanste FYI

Merged from a more recent PR


Database Session management and RDS Integration

Changes
Various changes to support RDS integration:

Only store a randomly generated session id in the cookie. This eq-session-id is generated using UUID4
Create a mapping between this session id and the actual user id and store this in a database table. Then when the request arrives, extract the session id, load the user id from the table and use that to load the questionnaire data.
Add the various postgres dependencies
Remove the Flask server side sessions code and dependency (as it doesn't work with postgres)

How to test

Enable server side storage

export EQ_SERVER_SIDE_STORAGE=True

Partially complete a survey, then check you can return to it later. (You can use the dev page to do this)
Check you can partially complete different surveys (again use the dev page) and that the data does not get re-used between surveys.

Who can review
Anyone apart from @warrenbailey

LGTM :+1:


feat: add support for public role, refactor membership-service

Changes:

add support for workspace Public role, with limited access
update workspace Viewer role to have write access for collections
refactor membership-service structure

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


Add cross-references

Cross-references as URL links between chapters will help folks navigate the book more effectively.

Closed by commit c12098b3d410acc50f0db44cc7993cc85b141f2d


Double file send error

After mtime check (when thumb is recreated), call back was called where file is sent again.

I've fixed the duplicate send bug with commit 810c1ab7f72b4d9389350fbe422440198f152aa4.  This was a regression in e843e582892b43db3084333c80d5954f44a6994a.


@Shared publisher extra emissions only on macOS previews

Description
If I use a publisher on @Shared(.appStorage(...)) to observe one piece of shared state, changes to any other @Shared(.appStorage(...)) properties will cause that publisher to emit again - but only in Previews on macOS (native or Catalyst).
Checklist

[X] I have determined whether this bug is also reproducible in a vanilla SwiftUI project.
[X] If possible, I've reproduced the issue using the main branch of this package.
[X] This issue hasn't been addressed in an existing GitHub issue or discussion.

Expected behavior
Both the app and the preview should have the same behavior: both fields are incremented by 1 on each tap of the increment button.
Actual behavior
In previews on macOS only, foo is incremented by 1 while bar is incremented by 2.
Steps to reproduce

Clone, build and run the following sample: https://github.com/humblehacker/TCASharedState
Tap the increment button and note both fields increment by 1
Run ContentView preview
Tap the increment button

I also added a test that, unless I'm misunderstanding something, should pass but does not.
The Composable Architecture version information
0.11.1
Destination operating system
macOS 14.5
Xcode version information
Version 15.4 (15F31d)
Swift Compiler version information
swift-driver version: <IP_ADDRESS> Apple Swift version 5.10 (swiftlang-<IP_ADDRESS> clang-15<IP_ADDRESS>)
Target: arm64-apple-macosx14.0

@humblehacker The publisher emits on willSet, so I don't think we're doing anything to trigger such a bug. If I had to imagine this is a preview quirk/bug that should probably be filed with Apple.
Since I don't think this is a bug in the library, and since it is a minor issue that only affects previews, I'm going to convert to a discussion. If anyone figures out a workaround that isn't too invasive, we'd be interested in seeing a PR, though!


Discussion : Build System Structure

Let organise an online forum to discuss how could our build system be structured.

Where to locate build files (unittest, integration)?
How to locate source/header files?
How to locate test files (Unit/Integration)?

Personally I don't like separating modules .c and .h files into src/ and inc/ folder unless they are public header files. My suggestion is :
source/module_name/src -> for module source and header files. More than 1 units can be here.
source/module_name/Inc -> Public header file for other modules to access this module. This Inc folder can also renamed to public_inc.
source/module_name/tests -> Unit testing files. this test can also be renamed to something else.
This folder structure allows using source/*/tests/** kind of wildcards.
All builds should live under build/ folder. unit tests can live under build/unit_test/ folder.


Stutters when MSAA or/and (Motion) Blur enabled

Stutters in games with any other graphics settings when MSAA or/and (Motion) Blur enabled enabled
Do I need to give some log and apitrace in this case?
Software information
GTA V, Dark Souls 3, Witcher 3, etc
System information

GPU: RX 580 8 Gb
Driver: Mesa 18.2-git + LLVM 7-svn
Wine version: staging 3.11 git
DXVK version: 0.61

Witcher 3 runs fine with all post processing enabled on my RX 480. There is no issue with those effects specifically. MSAA just costs a lot of performance.

Thanks for replies.
"MSAA just costs a lot of performance": yes, but on windows system its works fine. So its just "dxvk overhead" ?

Typically if the framerate goes below 45-50fps you will experience some micro-stutters/skipping, basically poor framerate smoothing. I suggest turning on the DXVK hud and keep track of your framerate, Linux doesn't seem to have as good framerate smoothing as it should and could be partly related to your desktop composer etc..

FPS is good, but stutters every 5 seconds if msaa enabled.
In x11 cfg enabled tearfree options, DRI3 using too

MSAA does not cause stutters. Make sure that your GPU keeps running at full clock speed.


Tooltip messages on mobile

MUI tooltips have an enterTouchDelay prop that makes the tooltip appear too late on touch. I set it to 0 and make the tooltip fade away at 5s if no other touch event happens.

Coverage remained the same at 28.418% when pulling 8bd4de67e68e722b2a136beff7457f2ef916d73c on alioso:M3-864 into 2cf7a2876be56ab5f9968406c964e1bf4beff329 on linode:develop.


[Feature Request] add behavior cloning method

🚀 Feature
add behavior cloning method
Motivation
No response
Additional context
No response
Checklist

[X] I have checked that there is no similar issues in the repo
[X] I have read the documentation

added in #144


Fix source for model management dashboard UI

Description
The UI of the model management dashboard was fixed so that it uses the proper data sources from Redux. The Test button was also added to the table to enable testing of the model.
Related to issue #425
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
Mock data was added to the initial state of the model redux. The model management dashboard was checked to make sure that all the data was displayed.
Test Configuration:

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules

@laksh22 What does Edit mean?

@ivantha If the user wants to make changes to the model such as adding more layers, training it on more data, etc. they can click on the Edit button


[ci skip] adding user @mukhery

Hi! This is the friendly automated conda-forge-webservice.
I've added user @mukhery as instructed in #72.
Merge this PR to add the user. Please do not rerender this PR or change it in any way. It has [ci skip] in the commit message to avoid pushing a new build and so the build configuration in the feedstock should not be changed.
Please contact conda-forge/core to have this PR merged, if the maintainer is unresponsive.
Fixes #72

@conda-forge/core can you please merge this so that I can help maintain the repo?

Please make a PR with the fixes first. Then ping us

Please make a PR with the fixes first. Then ping us

Done with #74

No longer needed now that #74 has been merged.


Fixes visualizer persisting across spaces

What
Sets the visualizer to canJoinAllSpaces so it appears on all desktops, instead of being left behind when switching.
Why
When moving across spaces or desktops the visualizer was left on the first one. This made it hard when switching between apps on different desktops, e.g. when demoing a browser on one desktop and switching to code in another
Why not
It might be be preferable to use moveToActiveSpace instead, so it doesn't appear on multiple monitors. Users with multiple screens could also want an option between the two.
Fixes #64

Looking forward to have this in 👍


Swift 1.2

Swift 1.2 breaks this library.

@chrisharrison U just need to delete exclamation marks from functions parameters. :) I update Net.swift for Swift 1.2 through Xcode automatic error fix.

But on
'''class func apply(queueType: QueueType, interators: UInt, closure: GCDApplyClosure) {
dispatch_apply(interators, queueType.getQueue(), closure)
}'''
Xcode says: "Cannot invoke 'dispatch_apply' with an argument list of type '(UInt, dispatch_queue_t, GCDApplyClosure)'"

@Jauzee Regarding your edit: yes, that's why I opened this. I haven't got time to convert at the moment. I think the Xcode 6.3 auto converter doesn't really work yet.

Any news on fixes yet...?

Hello, does anybody know how to solve this?

ok. This will be fixed at this weekend.

I am using this library for something I have to deliver in 4 hours. Do you have any quick thoughts as to how I can fix it myself? Thanks!!

I have just fixed this problem.

Hi can anyone send me updated project for swift 2.0
<EMAIL_ADDRESS>


Client access restricted with auth module

I executed the following commands:
$ git clone https://github.com/tidal-music/tidal-sdk-web tidal-sdk-web-auth-1.3.0
$ cd tidal-sdk-web-auth-1.3.0
$ git checkout auth-1.3.0
$ pnpm --version
9.0.6
$ pnpm install
 WARN  This project is configured to use v8.15.7 of pnpm. Your current pnpm is v9.0.6
...
$ cd packages/auth
$ pnpm install
$ pnpm dev
➜  Local:   http://localhost:5173/
...

In another terminal:
$ ngrok http 5173
... https://abcd-2001-4dd4-c729-0-e9f1-7ad8-d289-xyz1.ngrok-free.app/ ...

I configured a new app in the developer portal, with the following extra settings:

App Links

Application Homepage: https://abcd-2001-4dd4-c729-0-e9f1-7ad8-d289-xyz1.ngrok-free.app
Privacy Policy: https://abcd-2001-4dd4-c729-0-e9f1-7ad8-d289-xyz1.ngrok-free.app

Redirect URLs

Redirect URL 1: https://abcd-2001-4dd4-c729-0-e9f1-7ad8-d289-xyz1.ngrok-free.app/examples/login-redirect.html

Scopes (all enabled)

collection.read
collection.write
playlists.read
playlists.write

I opened https://abcd-2001-4dd4-c729-0-e9f1-7ad8-d289-xyz1.ngrok-free.app/ in a browser. Then I navigated to /examples/login-redirect.html. I entered my client ID and the redirect URL that I configured in my app. I was redirected to the login page. I accepted and was redirected to the configured redirect url. Two buttons were shown: "Get user" and "Force Refresh (sub status)". The dev tools contained the following error information:
GET https://login.tidal.com/oauth2/me
Status: 400
Body:
{
    "status": 400,
    "error": "unauthorized_client",
    "sub_status": 1002,
    "error_description": "Client access restricted.",
    "errorCodeWrapper": {
        "errorCode": "UNAUTHORIZED_CLIENT"
    }
}

Clicking on any of the buttons caused the same error.
The example page says the following:

You need a properly configured clientId, which is tied to a secure redirect uri.

The latter condition is met. What constitutes as a "properly configured clientId"? It seems mine is not properly configured. Is this still a private API?
I've tried the same thing on the main branch, but to no avail, I get the same error message.
The client-credentials.html example works just fine.

Hello @jonasberge!
Thanks for

About the allowed scopes: as you listed above you have access to some scopes in the developer portal, but not all of them.
I think what you have tried with the player tests looks correct, but you are missing the required permissions.
To your question: For now only previews are supported not entire tracks. But we are aware that full-length playback is a requested feature and it is something we are actively looking into.

Alright, thank you! If there's anything I can help with, I'd be happy to assist.


PBFT blocks proposal rate for develop branch

PBFT blocks proposal rate change to depends on number of stakes, not every delegation node has the same proposal rate anymore

prnet cleaned-up successfully


Add Licence file to the project

I am using enquire in a Drupal theme and for Drupal 8 we are encouraged to link to a projects licence when we use 3rd party scripts. It would be most helpful if the MIT licence could be added to the repo and filled out appropriately.

 Will add

Done


Potential fix for watcher failing to collect events after about an hour

This is a potential solution for issue https://github.com/splunk/fluent-plugin-kubernetes-objects/issues/9 which I am also experiencing. I have tested it in a Kubernetes cluster and I was able to successfully watch events for over 2 hours.
The fix is based on advice in https://github.com/abonas/kubeclient/issues/273.
This change breaks two of the unit tests which will need to be resolved before this is merged. I've never done any Ruby before so it'll take me a bit of time to figure out how to fix them. I will therefore delay figuring out how to fix the tests until I've got feedback that this is the right approach to fixing the problem.

Thanks @peter-moffatt - thanks for providing the link to the discussion and a potential fix. Its something that we've heard quite a few times. We have done some testing and this looks promising.  Will update soon with results.

Thanks for the update. I've had it watching events continuously for the last 4 days with no problems noticed so far.

@peter-moffatt - we are doing an update release to this project now with the plan to merge changes in after. Just a heads up the new project release wont have the fix.

@dtregonning any update on this?

Any update? Are you folks going to pull this patch? @dtregonning ?

Hey @mohitevishal, @max-rocket-internet  - yup. Team talked about it today. We will include this in a maintenance release and bump.

@peter-moffatt could you rebase? And then perhaps we can merge?

@peter-moffatt could you rebase? And then perhaps we can merge?

Done.

Another conflict @peter-moffatt 😞
@peter-moffatt any update?

@max-rocket-internet @peter-moffatt - thank you so much for your efforts on this. We modified your original submitted fix and had it merged into develop to get it running in our testing environments. Im going to bump up the version of Objects to 1.1.1 with the fix included and release. Ill leave this open for now in case we hit any other issues.
https://github.com/splunk/fluent-plugin-kubernetes-objects/pull/21

Thanks!

Thanks @dtregonning.

How do we get this version from rubygems?

Fixed in #27


Bump to CUDA v4.0

Bump to NDTensors v0.1.46, ITensors v0.3.26, CUDA v4.0, ITensorGPU v0.1.1.
CUDA v4.0 split off cuTENSOR into a separate Julia package so now ITensorGPU explicitly depends on cuTENSOR.jl as well. In the future we should make cuTENSOR an optional dependency (through a package extension) by providing generic non-cuTENSOR fallbacks for tensor permutation and contraction (which would get overloaded when cuTENSOR is loaded).

Closes #1050.

Codecov Report

Merging #1053 (7ceb7f4) into main (3f43e24) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head 7ceb7f4 differs from pull request most recent head eb4d2d3. Consider uploading reports for the commit eb4d2d3 to get more accurate results

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@           Coverage Diff           @@
##             main    #1053   +/-   ##
=======================================
  Coverage   66.67%   66.67%
=======================================
  Files          96       96
  Lines        9936     9936
=======================================
  Hits         6625     6625
  Misses       3311     3311

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Feat/admob adapters zones support and global ad view

Changes made.

@thomasmso  Changes made to support zone_id thru the AdMob server parameter.


aarch64: Support GOT Relative relocations in PIC mode

👋 Hey,
This PR adds support for using the GOT in PIC mode on AArch64. It implements the relocations for both ELF and MachO.
In order to support the MachO relocations we need to update the object crate. Unfortunately that also brings a few other dependencies which also need to be vetted.
@cfallin has already validated the object crate update up to 0.30.0 in #5434 so we just need to do 0.30.0 -> 0.30.1 and the rest of the new dependencies.
Tested this using the awesome example provided by @acw in zulip.
On aarch64-linux I was able to fully test this, on aarch64-darwin the decompiled file seems correct but I don't have a M1/2 machine to link and run it. Maybe @acw can test and report back if anything is wrong?
Fixes #2907
Fixes #5544

Interesting. Looks like it runs and generates output of the sort I'd expect:
% cargo run
...
% objdump -dr output.o

output.o:       file format mach-o arm64

Disassembly of section __TEXT,__text:

0000000000000020 <_gogogo>:
      20: fd 7b bf a9   stp     x29, x30, [sp, #-16]!
      24: fd 03 00 91   mov     x29, sp
      28: 00 00 00 90   adrp    x0, 0x0 <_gogogo+0x8>
<PHONE_NUMBER>000028:  ARM64_RELOC_GOT_LOAD_PAGE21  _variable-name-x
      2c: 00 00 40 f9   ldr     x0, [x0]
<PHONE_NUMBER>00002c:  ARM64_RELOC_GOT_LOAD_PAGEOFF12       _variable-name-x
      30: 81 00 80 d2   mov     x1, #4
      34: 03 00 00 90   adrp    x3, 0x0 <_gogogo+0x14>
<PHONE_NUMBER>000034:  ARM64_RELOC_GOT_LOAD_PAGE21  _print
      38: 63 00 40 f9   ldr     x3, [x3]
<PHONE_NUMBER>000038:  ARM64_RELOC_GOT_LOAD_PAGEOFF12       _print
      3c: 60 00 3f d6   blr     x3
      40: fd 7b c1 a8   ldp     x29, x30, [sp], #16
      44: c0 03 5f d6   ret

But that particular relocation type isn't supported on arm64:
% gcc -o test rts.c output.o
ld: in section __TEXT,__text reloc 1: pcrel and ARM64_RELOC_GOT_LOAD_PAGEOFF12 not supported file 'output.o' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Although, I did earlier discover that my Xcode suite is a version behind, so I'm going to save this comment for reference, and then see if this magically gets better after that.

Although, I did earlier discover that my Xcode suite is a version behind, so I'm going to save this comment for reference, and then see if this magically gets better after that.

Sad to say: that wasn't it. Same error, after making sure everything was up-to-date.

I think I got it, the Page Offset relocation is marked as being PC relative when writing the output file. And I think that was causing some confusion in the linker. Can you try with this latest commit?

It works!
% cargo run
    Finished dev [unoptimized + debuginfo] target(s) in 0.03s
     Running `target/debug/macos-example`
% objdump -dr output.o

output.o:       file format mach-o arm64

Disassembly of section __TEXT,__text:

0000000000000020 <_gogogo>:
      20: fd 7b bf a9   stp     x29, x30, [sp, #-16]!
      24: fd 03 00 91   mov     x29, sp
      28: 00 00 00 90   adrp    x0, 0x0 <_gogogo+0x8>
<PHONE_NUMBER>000028:  ARM64_RELOC_GOT_LOAD_PAGE21  _variable-name-x
      2c: 00 00 40 f9   ldr     x0, [x0]
<PHONE_NUMBER>00002c:  ARM64_RELOC_GOT_LOAD_PAGEOFF12       _variable-name-x
      30: 81 00 80 d2   mov     x1, #4
      34: 03 00 00 90   adrp    x3, 0x0 <_gogogo+0x14>
<PHONE_NUMBER>000034:  ARM64_RELOC_GOT_LOAD_PAGE21  _print
      38: 63 00 40 f9   ldr     x3, [x3]
<PHONE_NUMBER>000038:  ARM64_RELOC_GOT_LOAD_PAGEOFF12       _print
      3c: 60 00 3f d6   blr     x3
      40: fd 7b c1 a8   ldp     x29, x30, [sp], #16
      44: c0 03 5f d6   ret
% gcc -fPIC -g3 -o test rts.c output.o
% ./test
x = 4

Thank you!

I worked through the audit backlog and pushed a commit to this branch with audit results. Someone else will need to review the PR since it has a commit from me now.

Thanks for looking into this! I had to rebase since we had a conflict in Cargo.lock but should be ready for review now.

Yeah, that seemed to have worked locally. I've applied the same updates that I did in the other PR (except object which is still at 0.30.1 instead of .3).

@cfallin would it be possible to vet the remaining dependencies? Once i updated our version of gimli it started saying that we need a safe to deploy validation, but weirdly it didn't before when it was just a transitive dependency of object 0.30.

@afonso360 would you be willing to rebase? I think this is good to go otherwise!

Rebased on top of main, and removed the hashbrown exception. #5513 includes sort of the same exception, but ignores the tree of indexmap which solves the same issue I was having.