Bulk insert to existing record (different foreign key ID each time)

I want to bulk insert lots of pet records to an existing zoo record (example):
// look up zoo for pets being inserted into
const zoos = await Flat
                    .query()
                    .where('slug', 'favourite-zoo'),
      zoo  = zoos[0];

// inserts pets into zoo
var newPets = [{ name: 'Pet 1' }, { name: 'Pet 2' }, { name: 'Pet 3' }, { name: 'Pet 4' }];

await Zoo
       .query()
       .insertGraph({
         '#id': zoo.id,
         pets: newPets,
       });

However, the insertion queries use a different zoo_id each time (incrementing) than the ID of the previously looked up zoo. '#id' should reference to an existing Zoo record, hence the zoo_id of all inserted pets should also use the same Zoo ID.

I don't understand what you want.

@koskimas: New records should be added and assigned to an existing record in a one-to-many relation.
Although #id is specified, insertGraph will insert these new records with a different parent ID as the one specified by #id.
Example:
Four pet records should be added and assigned to an existing zoo record (1:m relation),
insertGraph of Zoo model is called with #id of the zoo to which these pet records should be added and the data for the pet records themselves. What objectionjs does now is that it doesn't use #id for the zoo_id column for the pet records but rather uses the incremented ID of zoo table. This results in the pet records inserted but not assigned to that particular zoo.

As shown in knex debug, objectionjs adds a completely new zoo records instead
adding the pet records to an existing zoo record, #id is set:
{
  method: 'select',
  options: {},
  timeout: false,
  cancelOnTimeout: false,
  bindings: [ 'favourite-zoo' ],
  __knexQueryUid: '170e7cd9-d012-413e-a4af-bdee9a56b050',
  sql: 'select `zoo`.* from `zoo` where `slug` = ?'
}
{
  method: 'insert',
  options: {},
  timeout: false,
  cancelOnTimeout: false,
  bindings: [ '2019-06-26 17:45:16', '2019-06-26 17:45:16' ],
  __knexQueryUid: 'b6359f6e-826b-4a6e-8eba-1afffb6ff9ca',
  sql: 'insert into `zoo` (`created_at`, `updated_at`) values (?, ?)'
}
{
  method: 'insert',
  options: {},
  timeout: false,
  cancelOnTimeout: false,
  bindings: [
    '2019-06-26 17:45:16',
    '2019-06-28 12:00:00',
    23,
    'Pet 1',
    '2019-06-28 12:00:00',
    '2019-06-26 17:45:16'
  ],
  __knexQueryUid: 'fc7fd8ef-6e9e-4205-b6bc-1ba0ab9d4d32',
  sql: 'insert into `pet` (`created_at`, `end`, ' +
    '`zoo_id`, `name`, `start`, `updated_at`) values (?, ?, ' +
    '?, ?, ?, ?)'
}
{
  method: 'insert',
  options: {},
  timeout: false,
  cancelOnTimeout: false,
  bindings: [
    '2019-06-26 17:45:16',
    '2019-08-22 12:00:00',
    23,
    'Pet 2',
    '2019-08-22 12:00:00',
    '2019-06-26 17:45:16'
  ],
  __knexQueryUid: 'be30a0f8-e088-4e11-a228-6ecd3a11ba7b',
  sql: 'insert into `pet` (`created_at`, `end`, ' +
    '`zoo_id`, `name`, `start`, `updated_at`) values (?, ?, ' +
    '?, ?, ?, ?)'
}
{
  method: 'insert',
  options: {},
  timeout: false,
  cancelOnTimeout: false,
  bindings: [
    '2019-06-26 17:45:16',
    '2019-08-28 12:00:00',
    23,
    'Pet 3',
    '2019-08-24 00:00:00',
    '2019-06-26 17:45:16'
  ],
  __knexQueryUid: '5ba8a3d4-406a-47d2-9214-96c17fb7c02e',
  sql: 'insert into `pet` (`created_at`, `end`, ' +
    '`zoo_id`, `name`, `start`, `updated_at`) values (?, ?, ' +
    '?, ?, ?, ?)'
}
{
  method: 'insert',
  options: {},
  timeout: false,
  cancelOnTimeout: false,
  bindings: [
    '2019-06-26 17:45:16',
    '2019-09-07 12:00:00',
    23,
    'Pet 4',
    '2019-09-07 12:00:00',
    '2019-06-26 17:45:16'
  ],
  __knexQueryUid: '251b111c-97d2-4311-9963-2fe4de5fa355',
  sql: 'insert into `pet` (`created_at`, `end`, ' +
    '`zoo_id`, `name`, `start`, `updated_at`) values (?, ?, ' +
    '?, ?, ?, ?)'
}


[Errno 32] Broken pipe

Hi this is my configuration for tv model UE55RU7450UXZT:
  - platform: samsungtv_tizen
    name: tv_camera_matrimoniale
    host: <IP_ADDRESS>
    mac: "00:c3:f4:e0:81:74"
    port: 8002
    api_key: *****************************
    device_id: ******************************

i can manage turn_on - turn_off source, volume etc.. but when i call service:
media_player.play_media
{
  "entity_id": "media_player.tv_camera_matrimoniale",
  "media_content_type": "browser",
  "media_content_id": "https://www.google.com",
}

I receive errno 32 Broken pipe:
[Errno 32] Broken pipe
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 130, in handle_call_service
connection.context(msg),
File "/usr/src/homeassistant/homeassistant/core.py", line 1247, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1282, in _execute_service
await handler.func(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
self._platforms.values(), func, call, required_features
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 453, in entity_service_call
future.result()  # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 596, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 484, in _handle_entity_call
await result
File "/config/custom_components/samsungtv_tizen/media_player.py", line 704, in async_play_media
self._ws.open_browser(media_id)
File "/config/custom_components/samsungtv_tizen/websockets.py", line 228, in open_browser
url
File "/config/custom_components/samsungtv_tizen/websockets.py", line 218, in run_app
'metaTag': meta_tag
File "/config/custom_components/samsungtv_tizen/websockets.py", line 112, in _ws_send
self.connection.send(payload)
File "/usr/local/lib/python3.7/site-packages/websocket/_core.py", line 253, in send
return self.send_frame(frame)
File "/usr/local/lib/python3.7/site-packages/websocket/_core.py", line 278, in send_frame
l = self._send(data)
File "/usr/local/lib/python3.7/site-packages/websocket/_core.py", line 448, in _send
return send(self.sock, data)
File "/usr/local/lib/python3.7/site-packages/websocket/_socket.py", line 157, in send
return _send()
File "/usr/local/lib/python3.7/site-packages/websocket/_socket.py", line 139, in _send
return sock.send(data)
File "/usr/local/lib/python3.7/ssl.py", line 1003, in send
return self._sslobj.write(data)
BrokenPipeError: [Errno 32] Broken pipe

Sorry for being inactive lately. I've made an announcement here.

This is an old issue, please test the latest release: v1.5.0
If you still have the same problems you can reopen the ticket.


Find a better way to determine last status change

What does this PR (Pull Request) do?

[x] This PR fixes #1636

Which Traffic Control components are affected by this PR?

CDN in a Box
Traffic Ops
Traffic Portal
CI tests

What is the best way to verify this PR?

Run local TO and TP and create a server. Notice that the status_last_updated field gets set to the current time in the DB.
Now, go to TP, and select the Status Last Updated as one of the display columns for the servers table. Notice that it shows the correct time elapsed since you created the server.
Now, update this server changing any field, EXCEPT the status of the server. Notice that the status_last_updated value DOES NOT change.
Now, update the server by changing the server's status (you will have to do this from the backend call, since TP doesn't let you do it from the front end).
Notice that the status_last_updated time gets changed to the current time this time around.
Also, make sure unit tests and API tests pass.
If this is a bug fix, what versions of Traffic Control are affected?

master

The following criteria are ALL met by this PR

[x] This PR includes tests OR
[x] This PR does not include documentation
[x] This PR includes an update to CHANGELOG.md
[x] This PR includes any and all required license headers
[x] This PR ensures that database migration sequence is correct
[x] This PR DOES NOT FIX A SERIOUS SECURITY VULNERABILITY (see the Apache Software Foundation's security guidelines for details)

Additional Information

sorry, conflict in our favorite file :)

@mitchell852 fixed 👍

for some reason the column filter is not working in TP on this field:

I have a server i just changed the status of and it's not showing up. So i'm wondering if the data format needs to be changed to that of LastUpdated:
lastUpdated: "2020-08-28 20:53:55+00",
statusLastUpdated: "2020-08-28T20:53:55.75928Z"
I'm not sure if that will solve the TP grid problem but maybe consistent is better anyhow?

The data will compare properly if you coerce it to a Date. If you look in the servers table controller, when I set $scope.servers I map the returned servers array and apply a conversion to Date objects on the Last Updated field. So no, it's not that the Last Updated format works (in fact it's worse than the statusLastUpdated field, I had to do some string manipulation to get the Date constructor to work), it's just that it can only filter Dates by date.

Resolved in 97bca2f

Can you update dateCellFormatter as well to this?
	/**
	 * Formats the contents of the 'lastUpdated' and 'statusLastUpdated' column cells as "relative to now".
	 */
	function dateCellFormatter(params) {
		return params.value ? dateUtils.getRelativeTime(params.value) : params.value;
	}

so dateUtils.getRelativeTime doesn't try to parse a null which displays "Invalid Date"


NextJS 11.x

This package is according to its dependencies forcing us to stay with NextJS 10 rather than being able to upgrade to v11.
It should be possible to upgrade to NextJS v11 without much breakage (looks fine in the browser, when I upgrade), but it needs to be tested and verified.

Updated nextjs peer dependency to >= 10.
Released<EMAIL_ADDRESS>


fix: does not fetch json-schema-07 from web.

Description

does not fetch json-schema-07 from web - serialize the specification to have proper uri for json-schema-draft-07 JSON Schema.

TESTING PR.
Related issue
Fixes https://github.com/asyncapi/studio/issues/509

@fmvilas I tried using the http protocol but it didn't work, then I tried removing the schema itself from our definitions and it still didn't work. Only after entering the schema as https (we have to do this manually and change every reference to http) does it work. Both validation and autocompletion. If you have another (worked) idea, you're welcome with contribution 😄

So changing the http to https here didn't work?

Oof! 🤦 That's bad. I thought that JSON Schema was serving https://json-schema.org/draft-07/schema with the "$id": "https://json-schema.org/draft-07/schema" value. Would have been great if they could detect when HTTPS or HTTP is used and update accordingly. I know the URL shouldn't strictly be $id (and vice versa) but it would be very handy.
Pinging @relequestual.

/rtm


feat: Allow custom/angular navigation on swipe to go back

Feature Request
Ionic version:
[x] 4.12.0
Describe the Feature Request
The swipe to go back feature is tightly coupled to the NavController. I guess this is the culprit.
Since ionic 4 it seems to be the preferred way to directly use angular's router for navigation (see e.g. here). So it would be nice to have a bit more control over this navigation event.
Describe Preferred Solution
Maybe one could pass the swipeHandler on the directive. Something like:
// template
<ion-router-outlet [swipeHandler]="getSwipeHandler()"></ion-router-outlet>

// controller
getSwipeHandler() {
  return {
    canStart: () => { .. },
    onStart: () => { .. },
    onEnd: () => { .. }
  };
}

One downside of this approach would be that one would have to take care of animations oneself.
Describe Alternatives
One could also disable this feature, expose swiper and implement this feature oneself. But this seems a bit cumbersome.
Related Code
See Describe Preferred Solution
Additional Context
This is primarily relevant for iOS.

Hi there,
Thanks for the feature request. Can you explain your use case a bit more? Are you interested in customizing the swipe to go back animation, or are you interested in customizing the behavior on swipe to go back?
Thanks!

Hi Liam,
we created a rather simple navigation service our own which can simply navigate to urls and go back via location.back. So no history stack or the like. Maybe this is naive but so far it worked good. :)
But ionic keeps track of its own history stack. So we had the following bug:

Start at /.
Go to /A.
Go to /B.
Swipe back -> /A.
Go back -> /B.

But we actually want to be at / after 5. because we went back two times. So the problem is that ionic has its own stack of pages and this conflicts with any other stack/navigation implementation.
I just realized that ionic may need this stack for its page caching algorithm. Maybe one would have to disable this as well.. :(
Did this help? Thanks in advance!
Jonas

Ah interesting. If that's the case, this might be a bug. Do you have a code reproduction I could take a look at? (A link to a repo is fine)
Thanks!

Hi Liam,
I just wanted you to know that I'm still here. Just didn't have the time yet to create a sample repo. Hopefully I will be able to do it at latest next week. Sorry about that.
Cheers!


error This project's package.json defines "packageManager"<EMAIL_ADDRESS>However the current global version of Yarn is 1.22.21.

Recently this nodejs app failed to deploy as seen here https://cloud.digitalocean.com/apps/dbd60b70-eb75-4513-81ad-6656c4072551/deployments/555825c0-bc3d-4369-8658-3b5319fee174?i=634b1f
You can see that it complains that the yarn version requested in "packageManager"<EMAIL_ADDRESS>In the package.json file is not met by the Yard version installed (v1.22.21). This seems to be because the yarn version is installed globally and not with corepack enable
What is strange is that this setting as not been changed since the previous successful deploy here https://cloud.digitalocean.com/apps/dbd60b70-eb75-4513-81ad-6656c4072551/deployments/c4fc930b-c613-4643-b759-cb2761fe37e1?i=634b1f
see the files changed between these two deploys here, in which you can verify there where no changes to files that should affect the nodejs build in Digital Ocean
https://github.com/Tonomy-Foundation/Tonomy-Communication/compare/0f398c217d5249232ba9796e0ac8fa41c849a15f...ad22d01ea4da65d25b50c78c8b275b21f53332c1
2023-11-23T18:58:24.474627678Z │ ---> either use 'docker run' to start container or add index.js or server.js
2023-11-23T18:58:24.492238156Z │ Project contains yarn.lock, using yarn
2023-11-23T18:58:24.494371641Z │ Reusing cached node_modules from yarn.lock
2023-11-23T18:58:37.371702565Z │ Running custom build command: yarn run build
2023-11-23T18:58:40.165827205Z │ error This project's package.json defines "packageManager"<EMAIL_ADDRESS>However the current global version of Yarn is 1.22.21.
2023-11-23T18:58:40.166464141Z │
2023-11-23T18:58:40.167286332Z │ Presence of the "packageManager" field indicates that the project is meant to be used with Corepack, a tool included by default with all official Node.js distributions starting from 16.9 and 14.19.
2023-11-23T18:58:40.167550936Z │ Corepack must currently be enabled by running corepack enable in your terminal. For more information, check out https://yarnpkg.com/corepack.
2023-11-23T18:58:40.230009803Z │ building: exit status 1
2023-11-23T18:58:40.230677749Z │ ERROR: failed to build: exit status 1

I have tried changing several things:

upgrading the App to be on Ubuntu 22.04 and use Nodejs 18.x (same error)
Try using corepack enable to install yarn. This does not work because yarn needs to be installed before any commands can be run and therefore will fail with the same error complaining about "packageManager"<EMAIL_ADDRESS>removed "packageManager" from package.json which works but is not acceptable solution as this will cause our developers and CI to have built errors

I have created a Digital Ocean case for this https://cloudsupport.digitalocean.com/s/case/5004P00002KKCI5QAP/build-error-with-yarn

using yarn set version also doesn't work because it needs to be set before yarn install is called for developers and in the Digital Ocean App

this solved it https://github.com/Tonomy-Foundation/Tonomy-Communication/pull/86/files


Bump kiwigrid/k8s-sidecar

Description
Changes proposed in this pull request:

...
...
...

Related issue(s)

 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.


Snap unable to install

Steps to reproduce

snap install mysqld-exporter --channel edge

Expected behavior
Snap installs normally.
Actual behavior
Following error shows up:
$ snap install mysqld-exporter --channel="edge"
error: cannot perform the following tasks:
- Run install hook of "mysqld-exporter" snap if present (run hook "install": /snap/mysqld-exporter/6/snap/hooks/install: 9: exec: /s
nap/mysqld-exporter/6/bin/snap-helpers-hook: not found)

Hi @wolsen , I think you have some hidden automated published somewhere :-D
Can it be disabled or at least tell us how to use it. CC: @jardon please talk to Billy and learn about snap auto-publisher here.
Tnx!

Hi @wolsen , I think you have some hidden automated publisher somewhere :-D Can it be disabled or at least tell us how to use it. CC: @jardon please talk to Billy and learn about snap auto-publisher here. Tnx!

Hi @taurus-forever, the repo is linked to the snapstore and it will automatically build and publish new versions when patches are landed in master (reference the build from github docs on the snapcraft documentation.
One advantage is that this allows the snap to build and publish across all architectures because it uses the launchpad builders to build and publish. One disadvantage is that we're primarily running the tests on an amd64 machine and calling it good for publishing, which leaves open the risk that it doesn't work correctly on an alternate architecture.
This should be revisited in the future, but for now it works okay enough.


examples/imagecashletter-write: update exmple to write a valid file

Changes
Updates the writer example to build a valid file, including an image. With these updates, examples/imagecashletter-read can successfully read and validate the example file created in examples/imagecashletter-write. Closes #171.

Codecov Report

Merging #218 (ce9fafa) into master (fd2af16) will not change coverage.
The diff coverage is n/a.


JuliaCon 2020 | Keynote: Scientific Machine Learning | Prof Karen Willcox

JuliaCon 2020 | Keynote: Scientific Machine Learning | Prof Karen Willcox, https://www.youtube.com/watch?v=Bk4PJnjuPps
I will try to make timestamps to this video to the end of the week. I'm not promise anything, since this video, which I like and already watch it twice, can be too hard to me to grasp enough to to make desired timestamps.

JuliaCon 2020 | Keynote: Scientific Machine Learning | Prof Karen Willcox, https://www.youtube.com/watch?v=Bk4PJnjuPps
It was quite a challenge, but here is my attempt at making timestamps to this lecture. You can change anything, especially my bad English, if you want.
00:00 Welcome and information about JuliaCon 2020
01:42 Introduction and acknowledgments
02:50 Outline of the talk
03:25 What is Scientific Machine Learning (SciML)?
05:04 What are the opportunities and challenges of SciML?
10:32 BIG DATA alone is not enough
11:27 Using physics base models means that we are doing Computational Science
13:19 Problem 1: Complex multiscale multiphysics phenomena
14:46 Problem 2: High dimensional parameters
15:54 Problem 3: Data are sparse, intrusive and expensive to acquire
16:48 Problem 4: Rare events
17:33 Problem 5: Uncertainty qualification
18:11 SciML and Computational Science, summary
18:47 Example: flow inside a rocket engine combustor
20:08 Example: equations of flow inside a rocket engine combustor
20:41 Physics-based model are powerful but computational expensive
23:10 Overview of model reduction methods
26:04 Similarities and differences between model reduction and ML
27:17 Can we have best of two words (model reduction and ML)?
30:05 Overview of Lift & Learn approach
33:00 Example: Lift & Learn approach to 2D flow in a rocket engine
34:34 Example: Training of the model
36:04 Example: Comparing results for pressure and temperature
37:38 Outlook of Sci ML
38:42 Diverse future of computational science and programming languages
39:31 Q&A: Advice for people bringing ML approach to scientific problems
42:09 Q&A: Pitfalls of interplay between domains knowledge and ML
43:33 Q&A: Does presented approach improves fidelity of solution of highly non-linear systems?

This is great! Thanks : )


Django bootstrap

Also there is the Django bootstrap:
   $ cd lasair-lsst-web/src/lasair-webapp/lasair
   $ export PYTHONPATH=/home/ubuntu/lasair-lsst-web/src:/home/ubuntu/lasair-lsst-web/src/lasair-webapp/lasair
   $ python3 manage.py migrate
   $ python3 manage.py makemigrations lasair
   $ python3 manage.py migrate
   $ python3 manage.py createsuperuser
       __su__ and password ***********

When should this happen?
Is it safe to run these commands on an existing system?
If not, how do we identify whether to run them or not?

Gareth
Thank you for making this issue. The migration stuff seems to be idempotent already. Below is the idempotent version of the createsuperuser.
Roy
$ python3 manage.py migrate
Operations to perform:
Apply all migrations: admin, auth, authtoken, contenttypes, lasair, sessions
Running migrations:
No migrations to apply.
$ python3 manage.py makemigrations lasair
No changes detected in app 'lasair'
ubuntu@lasair-dev-web:~/lasair-lsst-web/src/lasair-webapp/lasair$ python3 manage.py migrate
Operations to perform:
Apply all migrations: admin, auth, authtoken, contenttypes, lasair, sessions
Running migrations:
No migrations to apply.
$ export DJANGO_SUPERUSER_PASSWORD=xxxxxxxx
$ python3 manage.py createsuperuser --noinput --username su --email<EMAIL_ADDRESS>CommandError: Error: That username is already taken.


Contract support for adapters

smart contract error WalletSignTransactionError: Cannot read properties of undefined (reading 'contract')
at TronLinkAdapter.eval (adapter.js:340:1)
at Generator.throw ()
at rejected (adapter.js:5:42)
I can sign all other transactions beside contract transactions (trc20 & trc721)

async function trc721_transferFrom() {
try {
if (!connected) {
console.error('Wallet not connected.');
return;
}
  console.log("connected " + connected)
  console.log("address " + address);
  console.log("contract " + trc721ContractAddress);
  console.log("receiver " + receiver);
  console.log("adapter " + adapter.connected);
  var parameter = [
    {
      type:'address',
      value: receiver },
    {
      type:'uint256',
      value: 5
    }
  ];

  var options = {
    feeLimit:100000000,

  };

  var unSignedTransaction = await tronWeb.transactionBuilder.triggerConstantContract(
    trc721ContractAddress,
    'baseURI()',
    options,
    parameter,
    adapter.address
  );
  const signedTransaction = await adapter.signTransaction(unSignedTransaction);

  console.log("signed transaction" + signedTransaction);
  await adapter.tronWeb.trx.sendRawTransaction(signedTransaction);
  console.log('- transferFrom hash:', signedTransaction, '\n');
  setOpen(true);
} catch (error) {
  console.error('trigger smart contract error', error);
}

}

The docs and demos are wrong.
const signedTransaction = await adapter.signTransaction(unSignedTransaction.transaction);
const res = await tronWeb.trx.sendRawTransaction(signedTransaction);
console.log('- transferFrom hash:', res.txid, '\n');

Apologize for any inconvenience. Thanks for the reply by @alienzhangyw .
This issue occurs because the returned value of  tronWeb.transactionBuilder.sendTrx is different from tronweb.transactionBuilder.triggerSmartContract. The later wrapped unsignedTransaction in an object like :
{
    result: { result: true },
    transaction: {...}
}


pip-compile should not generate a command with --output-file if the output file matches the configuration

Expected
pyproject.toml
[tool.pip-tools]
src_files = ["requirements.in", "dev-requirements.in"]
output_file = "requirements-lock.txt"

output command is pip-compile
Actual
#
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
#    pip-compile --output-file=requirements-lock.txt
#

very low prio

Hmm, why do you think it shouldn't? If it is configured, it is something specified by the user (although indirectly).

Well with the configuration in place it would mislead people as to the minimum of what they have to do. I can appreciate the thing being as if there is no configuration in place. In that case, src_files should also be represented. Because of the inconsistency between src_files and output_file in the output command I think it just seemed a little odd to me.


Move Advanced > Stellar - TF Chain Bridge from Old Library to New Manual

Move Advanced > Stellar - TF Chain Bridge from Old Library to New Manual

Data was found under a different heading https://manual.grid.tf/getstarted/TF_Dashboard/TF_Dashboard.html#transfer-tft-from-stellar-chain-to-tfchain, but more TFChain to Stellar details needs to be added transferred

@amandacaster already existed here dear :) https://manual.grid.tf/TF_Farmer_Guide/TF_Complete_Farmer_Guide/farmer_guide.html?highlight=tfchain bridge#how-to-use-the-tfchain-stellar-bridge


[5.0] Use Dotenv exception

Use Dotenv InvalidArgumentException when .env file does not exist.
This PR will also allow to use other config loaders on Dotenv v2

This can be done when we actually upgrade to v2.

With the current version of dotenv this allows to avoid to double check that the files exist.

https://github.com/laravel/framework/blob/master/src/Illuminate/Foundation/Bootstrap/DetectEnvironment.php#L16
https://github.com/vlucas/phpdotenv/blob/master/src/Dotenv.php#L25

IMO, this PR should remains opened


password strength function

I've added the code for the function body, will be working on the tests next :)

Looks good to me


Python Interactive window hanging

Hello,
My issue is similar to that described in #5197. I've looked through that answer and others, but to no avail.
When I hit "run cell" in my script, the Python Interactive window pops up, but the loading bar at the top just keeps running and the "Starting Jupyter Server" status at the bottom just has the arrows going in a circle. Then the following error pops up.

Jupyter kernel cannot be started from 'Python 3.7.3 32-bit'. Using closest match Python 3.6.2 64-bit ('base': conda) instead.
Error starting original kernel: Traceback (most recent call last):
File "c:\users\mark\appdata\local\programs\python\python37-32\Lib\runpy.py", line 193, in run_module_as_main
"main", mod_spec)
File "c:\users\mark\appdata\local\programs\python\python37-32\Lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\Mark\venvs\ht_venv\lib\site-packages\notebook_main.py", line 4, in
from notebook import notebookapp as app
File "C:\Users\Mark\venvs\ht_venv\lib\site-packages\notebook\notebookapp.py", line 83, in
from .services.contents.manager import ContentsManager
File "C:\Users\Mark\venvs\ht_venv\lib\site-packages\notebook\services\contents\manager.py", line 17, in
from nbformat import sign, validate as validate_nb, ValidationError
File "C:\Users\Mark\venvs\ht_venv\lib\site-packages\nbformat_init.py", line 33, in
from .validator import validate, ValidationError
File "C:\Users\Mark\venvs\ht_venv\lib\site-packages\nbformat\validator.py", line 12, in
from jsonschema import ValidationError
File "C:\Users\Mark\venvs\ht_venv\lib\site-packages\jsonschema_init_.py", line 31, in
import importlib_metadata
File "C:\Users\Mark\venvs\ht_venv\lib\site-packages\importlib_metadata_init_.py", line 547, in
version = version(name)
File "C:\Users\Mark\venvs\ht_venv\lib\site-packages\importlib_metadata_init_.py", line 509, in version
return distribution(distribution_name).version
File "C:\Users\Mark\venvs\ht_venv\lib\site-packages\importlib_metadata_init_.py", line 482, in distribution
return Distribution.from_name(distribution_name)
File "C:\Users\Mark\venvs\ht_venv\lib\site-packages\importlib_metadata_init_.py", line 183, in from_name
dist = next(dists, None)
File "C:\Users\Mark\venvs\ht_venv\lib\site-packages\importlib_metadata_init_.py", line 425, in
for path in map(cls.switch_path, paths)
File "C:\Users\Mark\venvs\ht_venv\lib\site-packages\importlib_metadata_init.py", line 449, in _search_path
if not root.is_dir():
File "c:\users\mark\appdata\local\programs\python\python37-32\Lib\pathlib.py", line 1351, in is_dir
return S_ISDIR(self.stat().st_mode)
File "c:\users\mark\appdata\local\programs\python\python37-32\Lib\pathlib.py", line 1161, in stat
return self._accessor.stat(self)
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'C:\Users\Mark\AppData\Local\Programs\Microsoft VS Code\ C:\Python33\DLLs'

It seems like perhaps Jupyter isn't installed correctly in the environment I'm using (I'm using virtualenv). I've done pip install jupyter in this environment, but when I check the version of jupyter notebooks in a plain old command prompt I get the following

Apologies if this is more of a jupyter notebooks install issue, but can anyone please offer any advice? All the instructions I find online regarding installing jupyter notebooks using pip only say "use pip install jupyter".
Thank you.

I will add that the above was done in Windows 10. When I set up an environment using virtualenv on a Mac, jupyter and the python interactive window opened fine. I made a requirements.txt file from the virtualenv I made on my mac, copied it over to windows, created a new virtualenv from that requirements file, but am still getting the above error.

One additional update:
I set the base anaconda environment as the working environment in vscode. When I run "jupyter notebook" from the terminal within viscode, jupyter notebooks startup no problem. However, when I open an interactive window, it takes a long time (several minutes) for the blue status bar at the top to stop running, and even when it's done, the window is non-responsive. I can write commands in the bar at the bottom of the interactive window, and intellisense works, but the statements don't seem to execute at all. See attached picture.

Thank you for taking the time to let us know.
For the pip environment issue, can you run jupyter on the command line?
For the anaconda issue, can you please share a screenshot of the console in the web dev tools? That'll help us a lot to reproduce the issue.

Thanks for the response.
For the pip environment issue, here's what I get when I run jupyter --version in the command line from within vscode:

Sorry, I'm not sure what you mean by the web dev tools - how can I access the console in the web dev tools?

Thanks for reporting this issue. However it looks like jupyter isn't working in your environment (when run from the terminal). Closing this issue as its not caused by the extension, instead it is environment.


Add token based extractor

Added a simple token based extractor, and a simple converter. @ibuenros Can you take a look?

@ibuenros Comments addressed.


make clean

Perhaps it's a matter of preference but shouldn't make clean delete the executable in build/ ?

Yeah, probably.  Feel free to make a pull request if you've made these changes yourself.  Otherwise I'll do it sometime soon.

Sure thing, I'll get right on it :)


能否给一个编译好的包？

Google Translate:

Can you provide a compiled package?

What exactly do you mean by that? This is a Python application, it doesn't need to be compiled


Cannot move a namespace to project None

What kind of request is this (question/bug/enhancement/feature request):
Cannot move a namespace to project None
Steps to reproduce (least amount of steps as possible):
Choose a namespace, click Move, choose None
Result:
cluster.management.cattle.io "" not found

Other details that may be helpful:
Environment information

Rancher version (rancher/rancher/rancher/server image tag or shown bottom left in the UI):
Installation option (single install/HA):

v2.1.0
Cluster information

Cluster type (Hosted/Infrastructure Provider/Custom/Imported): Custom
Machine type (cloud/VM/metal) and specifications (CPU/memory): VM
Kubernetes version (use kubectl version):

Client Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.2", GitCommit:"bb9ffb1654d4a729bb4cec18ff088eacc153c239", GitTreeState:"clean", BuildDate:"2018-08-08T16:31:10Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.2", GitCommit:"bb9ffb1654d4a729bb4cec18ff088eacc153c239", GitTreeState:"clean", BuildDate:"2018-08-07T23:08:19Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"linux/amd64"}

Docker (use docker info):

Containers: 30
 Running: 25
 Paused: 0
 Stopped: 5
Images: 22
Server Version: 17.03.2-ce
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 226
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 4ab9917febca54791c5f071a9d1f404867857fcc
runc version: 54296cf40ad8143b62dbcaa1d90e520a2136ddfe
init version: 949e6fa
Security Options:
 apparmor
 seccomp
  Profile: default
Kernel Version: 4.4.0-137-generic
Operating System: Ubuntu 16.04.5 LTS
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 15.67 GiB
Name: rancher-4
ID: TDKR:JLNG:P6NI:2RII:STZS:BHQA:LIG7:2HMJ:BSC2:J7V6:KZY7:6DDV
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
 <IP_ADDRESS>/8
Live Restore Enabled: false

WARNING: No swap limit support

Fix validated on mater 12/21, single installation
Steps:

add a project p1
go to p1, add namespace ns1 and ns2 to p1
move ns1 to None
try to deploy a workload and check the exisiting namespace list

Result:

the namespace is moved to anotehr section which is out of the current project
the namespace is gone from the list of existing namespace

Note:
Although the bug in this ticket is fixed, it revesals antoher bug which is tracked here: https://github.com/rancher/rancher/issues/17219


Eventual API support for instantiateStreaming or compileStreaming?

I'm currently writing infrastructure for a toy language where the design was to stream source from disk -> tokenizer -> parser -> compiler -> wasmtime, avoiding the need to hold entire various forms of the program in memory at any point. Unfortunately, I don't see API's in wasmtime compatible with this design (to be fair, this seems to be common among non-browser wasm runtimes).
I may have missed something, but it appears wasmtime expects all wasm source to be collected into memory before submission to the Module compiler. For example Module::from_file() seems to just spool the entire file into memory, and then give it to Module::new(). What I was hoping to find was something like instantiateStreaming or compileStreaming from the JS WebAssembly API, which takes a stream of wasm bytecode instead.
Is this kind of API something wasmtime might implement in the future, or is there a reason/rationale for not wanting to support it?
Thanks!

This is an interesting question, thanks for asking! I assume you want this for ahead-of-time compilation, where the generated machine code is written to disk, rather than just-in-time compilation where the entire program has to be in memory anyway before you can run it. Is that right?
You're right that Wasmtime does not currently have an interface for streaming in WebAssembly bytecode. As far as I know, we could implement that, in theory.
There are a couple of things we get by loading the entire module up-front. One is that we can compile all the functions in parallel, for a nice compile-time speedup on multi-core systems. Another is that we can put the compiled output in a more efficient order: for example, Wasmtime needs to generate extra trampoline functions in some cases, and clustering those together turns out to reduce total code size a little bit (#6302).
There are probably other assumptions I'm not aware of that are affected by this. For example, I don't know off-hand whether wasm-parser can provide all the information we need for both validation and compilation without parsing to the end of the module.
That said, the Cranelift compiler doesn't care whether all the functions are known when it starts compiling. I think that making Wasmtime feed functions to Cranelift incrementally would be a somewhat self-contained change, confined mostly to the existing parallel-compilation driver. I don't expect it to be particularly easy to figure out exactly where the rest of the changes need to happen though.
So, in short, I think this would be an interesting experiment! It's not something that I think existing Wasmtime contributors are likely to work on, but we could certainly discuss how to do it if you, or someone else, wants to give it a shot. We can get started discussing that in this issue, or in our Zulip chat (https://bytecodealliance.zulipchat.com/#narrow/stream/217126-wasmtime), whichever is more convenient.

One design axis here that would be good to discuss is "early execution": can we start to run code in the module before all functions are even compiled? This is I assume one of the benefits one would want a streaming API for, even when JIT'ing.
The main technical challenges are "hot-patching", wherein we asynchronously fill in pointers to code as it is compiled, and finding a way to block when a called function hasn't been loaded/compiled yet (perhaps by initializing all calls to call into a libcall stub that async-yields). The patching could work either by indirecting through a function-pointer table (a PLT / "procedure linkage table" of sorts) or by patching code directly; the latter is a bit trickier on non-x86 platforms because of icache coherence requirements.

I assume you want this for ahead-of-time compilation, where the generated machine code is written to disk, rather than just-in-time compilation where the entire program has to be in memory anyway before you can run it. Is that right?

My use case is a shell-like language, so I was primarily thinking about JIT. Rather than invent my own bytecode VM and/or JIT, I thought I would see if I could leverage an existing wasm runtime somehow.
Streaming has two potential benefits: 1) reduced memory consumption. You have to have the whole program in memory, as you way, but not streaming actually forces you to have 2 copies of the program in memory at some point. The first of the entire emitted byte code, and the second with the entire compiled byte code. This benefit is probably quite small in general though. 2) is reduced execution latency. For short lived programs you could imagine having different threads for the compilation and execution pipelines such that by the time the compilation pipeline is done streaming, the execution pipeline can be nearly done with the results. This seems to be more along the lines of what @cfallin was thinking about.
But, another use case for "early execution" is supporting REPL's. For a shell like language this is probably the most important aspect. If a user is typing and evaluating one expression at a time, you never have the whole module to compile.

But, another use case for "early execution" is supporting REPL's. For a shell-like language this is probably the most important aspect. If a user is typing and evaluating one expression at a time, you never have the whole module to compile.

Part of the information necessary to actually instantiate a module (the data section) comes after the code section and to add new functions you have to modify the function section which cones before the code section, so you have to finish the module even in a REPL. You can keep creating new modules and instantiate them on the same linear memory with later modules importing functions from earlier modules though.


Wrong operand order of Zba instructions

SHxADD and SHxADD.UW shift rs1 and add it to an unshifted rs2; this specification defines them the other way around.

@tariqkurd-repo : Is this fixed? Can we close the ticket?

The PR has been merged so this should be fixed. @sorear Please re-open in case one of them was missed.


Throwing multiple exceptions when opening View on Android

Versions:
Android 7
"react": "16.0.0-beta.5",
"react-native": "0.49.3",
"react-native-textinput-effects": "^0.4.1"

First exception:
Exception in native call
com.facebook.react.bridge.JSApplicationIllegalArgumentException: Error while updating property 'backgroundColor' in shadow node of type: AndroidTextInput

Then:
Error while updating prop backgroundColor
com.facebook.react.bridge.UnexpectedNativeTypeException: TypeError: expected dynamic type `int64', but had type `string'

This finally crashes the app:
FATAL EXCEPTION: main
Process: com.xxx, PID: 30962
com.facebook.react.uimanager.IllegalViewOperationException: Trying to add unknown view tag: 94
detail: View tag:100
children(0): [
],
viewsToAdd(1): [
[0,94],
]

Android expects colors as int yet somewhow it is passed as a string it seems.
Looks like there is an issue with Animations in Android:
https://github.com/facebook/react-native/issues/13984

Thanks for reporting @monotv.
I just tested this on a Android 7 device using the Example project. All text inputs are working fine.
Could you also test it with the Example project so we can make sure this is related with the library. The project is using react-native version 0.50.0 btw.

same here. Android 5.0, React Native 0.55.

Also crashing with unknown view tag  exception for me.
Android 7.0
RN 0.55

@Dantalion & @csotiriou Still an issue?

crashing in RN 0.56

What's the output of crash @winadiw?

I encountered this same issue and did some troubleshooting
For me the issue is passing the prop backgroundColor to the TextInput react native component. Apparently that's an undocumented property and if you pass a string it causes a crash.
I was using the hoshi component.
Changing the way we pass props into the TextInput fixed the issue for me, like so:
const {
  label,
  style: containerStyle,
  inputStyle,
  labelStyle,
  maskColor,
  borderColor,
  borderHeight,
  inputPadding,
  height: inputHeight,
  backgroundColor,
  ...restOfProps,
} = this.props;
const { width, focusedAnim, value } = this.state;
const flatStyles = StyleSheet.flatten(containerStyle) || {};
const containerWidth = flatStyles.width || width;

return (
  <View
    style={[
      styles.container,
      containerStyle,
      {
        height: inputHeight + inputPadding,
        width: containerWidth,
      },
    ]}
    onLayout={this._onLayout}
  >
    <TextInput
      ref={this.input}
      {...restOfProps}

This adds ...restOfProps to the initial retrieval of props, then spreads that into the TextInput component instead of ...this.props
I can submit a PR to fix this if you'd like.

Thanks for finding out the problem @wizebin. I'd like to merge that patch if you could create a PR. I agree that it sounds like a user error but I'd like to eliminate it as people keep experiencing that.

Any progress on that? )


CircleCI: Fix nodejs cache poisoning

This wrong cache makes tests fail
Signed-off-by: Julien Pivotto<EMAIL_ADDRESS>

:+1: I think, would be good to get confirmation by @simonpasquier

#7727 might be a better fix


dockerfile(engine): use rockylinux as base image

What problem does this PR solve?

Issue Number: ref #5668
What is changed and how it works?
replace alpine with rockylinux:9.0 as base docker image
Check List
Tests

Unit test
Integration test

Questions
Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?
Release note
None

/run-engine-integration-test

/hold

Codecov Report

Merging #7602 (1049d0a) into master (1214932) will decrease coverage by 0.2476%.
The diff coverage is 67.7966%.

Additional details and impacted files

Flag
Coverage Δ

cdc
67.2714% <67.7966%> (-0.0317%)
:arrow_down:

dm
52.1110% <ø> (+0.0446%)
:arrow_up:

engine
?

Flags with carried forward coverage won't be shown. Click here to find out more.
@@               Coverage Diff                @@
##             master      #7602        +/-   ##
================================================
- Coverage   60.0034%   59.7557%   -0.2477%
================================================
  Files           822        638       -184
  Lines         94163      80886     -13277
================================================
- Hits          56501      48334      -8167
+ Misses        32773      28280      -4493
+ Partials       4889       4272       -617

/run-engine-integration-test

/run-engine-integration-test


Change TiledTextureRegion

I've looked into Andengine-Examples, and it suggested to change Texture itself into  other TextureRegiond. However, in my
opinion, this is not a very effective way when considering the use of resource.
Is any way to change the tiledTextureRegion of animatedSprite at a time when I want?

A TiledTextureRegion holds an array of ITextureRegions and since ITiledTextureRegion extends ITextureRegion, you can infinitely nest them.

What I say is changing of TextureRegion of Sprite.
for example, if my sprite holds "alive man", when the man died I want to change "alive-man"-textureRegion to
"dying man" -textureRegion.
The "alive-man"-TextureRegion is extract from "alive_man.png", and "dying-man"-textureRegion is extract from
"dying_man.png". thanks for reply.

thanks for your precious care. But I want it is* *different  from your
thinking.
In other words, if my sprite holds "alive man"-textureRegion, when the man
died I want to change "alive-man"-textureRegion to
"dying man" -textureRegion.
The "alive-man"-TextureRegion is extract from "alive_man.png", and
"dying-man"-textureRegion is extract from
"dying_man.png". thanks for reply.
2012/1/26 Nicolas Gramlich <
<EMAIL_ADDRESS>

A TiledTextureRegion holds an array of ITextureRegions and since
ITiledTextureRegion extends ITextureRegion, you can infinitely nest them.

Reply to this email directly or view it on GitHub:
https://github.com/nicolasgramlich/AndEngine/issues/5#issuecomment-3657571


entgql - inet type postgres

I am using custom inet type from FAQ.
Unfortunately all custom type fields require resolvers. Is there way to handle this like builtin types ?
/ IP is the resolver for the ip field.
func (r *userResolver) IP(ctx context.Context, obj *ent.User) (string, error) {
	panic(fmt.Errorf("not implemented: IP - ip"))
}

// IP is the resolver for the ip field.
func (r *userWhereInputResolver) IP(ctx context.Context, obj *ent.UserWhereInput, data *string) error {
	panic(fmt.Errorf("not implemented: IP - ip"))
}

// IPNeq is the resolver for the ipNEQ field.
func (r *userWhereInputResolver) IPNeq(ctx context.Context, obj *ent.UserWhereInput, data *string) error {
	panic(fmt.Errorf("not implemented: IPNeq - ipNEQ"))
}

Hey, @waszi 👋
You need to implement the UnmarshalGQL/MarshalGQL methods (see example), then tell gqlgen about this binding in gqlgen.yml (see example).
If you use the GraphQL schema generator of entgql, you should use the entgql.Type annotation as well. See: https://github.com/ent/contrib/blob/master/entgql/internal/todo/ent/schema/category.go#L67
Closing, but please feel free to reopen or join our Discord community in case you need more help with this - we have a specific channel for GraphQL 😃


Operator precedence is not respected in expr fit canditates

     Precedence parsing error
         cannot mix ‘==’ [infix 4] and ‘==’ [infix 4] in the same infix expression
     |
 909 |                       = numRows rs == 9 `discard` lenRows rs == [9 | n <- [1 .. 9]]
     |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

It's hard for us to check this: precedence isn't checked until during renaming, so we can't tell during typechecking whether it will work until we load... and after we load it's already failed. I think the hammer will have to do for now.


How can i set only single tag selection at a time?

Hi,
Is it possible to set only one tag selected at a time?
ie I want the tags to act like radiobutton.

You can select a single tag with long press.

@hardikamal I don't think it's possible at the moment with the library. I had similar requirements in my code and I ended up deselecting other tags when one tag is being selected.
mytag.onTap = {tapView in      // unselect other tags   }

@poojakaluskar how to achieve that? Please provide example or code.

@hardikamal user this
func tagPressed(_ title: String, tagView: TagView, sender: TagListView) {         print("Tag pressed: \(title), \(sender)")         for ta in sender.tagViews {             if ta.titleLabel?.text == title {                 ta.isSelected = !ta.isSelected             }else{                 ta.isSelected = false             }         }     }


REQUEST: detect PciRoot, as needed for several config.plist settings

have an option to detect the PciRoot address to use as used in several of CDF steps for setting a couple config.plist items appropriately.

never mind, can do this once and save in the setup.py

never mind, can do this once and save in the setup.py


Keyboard RGB preset control not supported yet

OpenRGB hasn't created a driver for controlling keyboard colors on this device yet.
Some folks managed to create a keyboard rgb control app for different Lenovo Legion model. I do think that we can use this repository to create our own fork for Lenovo Legion 5.
Lenovo-Y720-KB-Led-Controller

@chillmetin I don't have RGB in my laptop unfortunately so I can't test it so making a software for it might be an impossible task for me.
But from what it looks, they are using the same kind of workaround we use for enabling and disabling battery conservation. So I think it might be possible in legion 5 too but without compatible hardware I can't do much here.
I'm gonna leave this issue open to somebody to pick it up in the future maybe.

Might be late, but this one works great too: https://github.com/4JX/L5P-Keyboard-RGB
Can save the RGB profile in a directory and load it using CLI every time you boot it, I personally use i3wm and load it with exec


Setup absolute imports

https://nextjs.org/docs/advanced-features/module-path-aliases

Hi @SamSamskies  .. I'd like to work on this issue if it's not already taken. Thanks!

Awesome. You won't be able to test the app locally unless you have a Strike API key, but I can test out your updates if you make a PR.


Reduce number of status updates in backend to 1 or 2 => Follow Magento flow

Please reduce the number of status updates to 1 in backend.
Adyen is logging a lot of information. See image. All in their own status flow.
But Magento already has enough status codes. These should be followed and re-used
Please see the images: we think this process can really be simplified. (as like other PSP use the Magento flow)

Hi Sean,
For helping a merchant out with problems these comments are very handy. I agree with you that some can be merged. This will be done if we are going to refactor the code for notifications see: #245
I will close this issue the refactor code will be committed under #245
Regards,
Rik ter Beek
Adyen


Is it support RTL language?

Hi Matt,
Thanks for the great project.
is it support Right to left (RTL) language?

There is a PR for adding this, however from testing, there are issues with compatability of property editors themselves supporting RTL so it's a bit hit and miss. Feel free to test the PR and let me know if it solves your issue.

Thanks from your response, I am so sorry, I am very new in umbraco, I don't know how to test the PR,
My problem is that, when I change language in drop down list from English to our local language (Pashto or Dari), the whole web site layout must be changed from LTR to RTL, but it's not.
Thanks.


Changed PW in Tapo App - Nothing reachable anymore - cant change PW in HA Integration

Version of the integration
3.1.2

Describe the bug
I Changed the PW to a more secure one and lost connection to my Tapos of course. Wanted to change the PW in the Integration but cant find a way to do that. Is there a Button I am not seeing for changing my PW? It may be missing and should be added please.
Is there maybe a different way wich I dont know to change it? I went the hardcore way and tried to edit the config file "core.config_entries" but without any luck.
Debug log

Logger: homeassistant.config_entries
Quelle: config_entries.py:978
Erstmals aufgetreten: 15:06:44 (2 Vorkommnisse)
Zuletzt protokolliert: 15:06:44

Error migrating entry Balkonlicht for tapo
Error migrating entry Büro Tisch for tapo
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 1109, in _wrap_create_connection
    sock = await aiohappyeyeballs.start_connection(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohappyeyeballs/impl.py", line 82, in start_connection
    sock = await _connect_sock(
           ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohappyeyeballs/impl.py", line 174, in _connect_sock
    await loop.sock_connect(sock, address)
  File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 641, in sock_connect
    return await fut
           ^^^^^^^^^
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 663, in _request
    conn = await self._connector.connect(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 538, in connect
    proto = await self._create_connection(req, traces, timeout)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 1050, in _create_connection
    _, proto = await self._create_direct_connection(req, traces, timeout)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 1384, in _create_direct_connection
    raise last_exc
  File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 1353, in _create_direct_connection
    transp, proto = await self._wrap_create_connection(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 1106, in _wrap_create_connection
    async with ceil_timeout(
  File "/usr/local/lib/python3.12/asyncio/timeouts.py", line 115, in __aexit__
    raise TimeoutError from exc_val
TimeoutError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 978, in async_migrate
    result = await component.async_migrate_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/tapo/__init__.py", line 73, in async_migrate_entry
    await migrate_entry_to_v8(hass, config_entry)
  File "/config/custom_components/tapo/migrations.py", line 15, in migrate_entry_to_v8
    device = await connect(config=create_device_config(config_entry), session=session)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/plugp100/new/device_factory.py", line 43, in connect
    protocol = await _get_or_guess_protocol(config, session)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/plugp100/new/device_factory.py", line 65, in _get_or_guess_protocol
    return await _guess_protocol(config, session)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/plugp100/new/device_factory.py", line 94, in _guess_protocol
    info = await protocol.send_request(device_info_request)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/plugp100/protocol/passthrough_protocol.py", line 45, in send_request
    response = await self._send_request(request)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/plugp100/protocol/passthrough_protocol.py", line 65, in _send_request
    await self._login_with_version(self._credential)
  File "/usr/local/lib/python3.12/site-packages/plugp100/protocol/passthrough_protocol.py", line 84, in _login_with_version
    session_or_error = await self._passthrough.handshake(self._url)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/plugp100/protocol/securepassthrough_transport.py", line 70, in handshake
    response = await self._http.async_make_post(url, json=request_body)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/plugp100/common/utils/http_client.py", line 18, in async_make_post
    async with self.session.post(
  File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 1360, in __aenter__
    self._resp: _RetType = await self._coro
                           ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 667, in _request
    raise ConnectionTimeoutError(
aiohttp.client_exceptions.ConnectionTimeoutError: Connection timeout to host http://<IP_ADDRESS>/app

Another LOG Entry:
Dieser Fehler stammt von einer benutzerdefinierten Integration

Logger: DeviceFactory
Quelle: custom_components/tapo/hass_tapo.py:34
Integration: TP-Link Tapo (Dokumentation, Probleme)
Erstmals aufgetreten: 15:06:14 (321 Vorkommnisse)
Zuletzt protokolliert: 22:34:59

None of available protocol is working, maybe invalid credentials

Yeah, I had this issue too.  Rather than delving through the code to figure out where the pw is stored, I ended up removing the devices and re-adding them with the new password.  That worked instantly, but I would have thought that there should be some method of changing the stored password in the event that a user wants to do so other than deleting and re-adding devices.


Native OpenXR in 4.0?

Seems like a no-brainer to have this sort of thing built in to the engine.

We agree, getting hired to work on that full time from next month onwards:
https://godotengine.org/article/godot-engine-receiving-support-funded-facebook-reality-labs

We agree, getting hired to work on that full time from next month onwards:
https://godotengine.org/article/godot-engine-receiving-support-funded-facebook-reality-labs

Ah, that's good news! The wording in the article made me believe that it would still exist as a GDNative plugin.

Ah, that's good news! The wording in the article made me believe that it would still exist as a GDNative plugin.

The current OpenXR addon is crashing godot 4.0 for me.

We agree, getting hired to work on that full time from next month onwards:

@BastiaanOlij does that mean that this addon will become obsolete going forward with Godot 4.0? If so, is there a rough ETA? Wondering how worthwhile it will be to work with and use this repository :)

The current OpenXR addon is crashing godot 4.0 for me.

Yes the current add on only works with Godot 3.x

We agree, getting hired to work on that full time from next month onwards:

@BastiaanOlij does that mean that this addon will become obsolete going forward with Godot 4.0? If so, is there a rough ETA? Wondering how worthwhile it will be to work with and use this repository :)

That is still up in the air, it is possible we will integrate it, it is possible we will keep it as a plugin. From a coding point of view things will work similar regardless of the approach taken.
As for ETA, there were a few things that came in between but I'm at the tail end of adding stereoscopic support back into Godot 4 and will start working on making some of the plugins work next.

Added in https://github.com/godotengine/godot/pull/56394.


Howdy fails to open IR camera

Adding face model for the user
Enter a label for this new model [Initial model] (max 24 characters):
[ INFO:0] global /builddir/build/BUILD/opencv-4.5.3/modules/videoio/src/videoio_registry.cpp (217) VideoBackendRegistry VIDEOIO: Enabled backends(8, sorted by priority): FFMPEG(1000); GSTREAMER(990); INTEL_MFX(980); V4L2(970); CV_IMAGES(960); CV_MJPEG(950); FIREWIRE(940); UEYE(930)
[ INFO:0] global /builddir/build/BUILD/opencv-4.5.3/modules/videoio/src/backend_plugin.cpp (369) getPluginCandidates VideoIO plugin (FFMPEG): glob is 'libopencv_videoio_ffmpeg*.so', 1 location(s)
[ INFO:0] global /builddir/build/BUILD/opencv-4.5.3/modules/videoio/src/backend_plugin.cpp (376) getPluginCandidates     - /lib64: 0
[ INFO:0] global /builddir/build/BUILD/opencv-4.5.3/modules/videoio/src/backend_plugin.cpp (380) getPluginCandidates Found 0 plugin(s) for FFMPEG
[ INFO:0] global /builddir/build/BUILD/opencv-4.5.3/modules/videoio/src/cap_gstreamer.cpp (831) open OpenCV | GStreamer: /dev/video1
[ INFO:0] global /builddir/build/BUILD/opencv-4.5.3/modules/videoio/src/cap_gstreamer.cpp (864) open OpenCV | GStreamer: mode - FILE
[ WARN:0] global /builddir/build/BUILD/opencv-4.5.3/modules/videoio/src/cap_gstreamer.cpp (2056) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module source reported: Could not read from resource.
[ WARN:0] global /builddir/build/BUILD/opencv-4.5.3/modules/videoio/src/cap_gstreamer.cpp (1034) open OpenCV | GStreamer warning: unable to start pipeline
[ WARN:0] global /builddir/build/BUILD/opencv-4.5.3/modules/videoio/src/cap_gstreamer.cpp (597) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created
MFX: Can't initialize session
[ INFO:0] global /builddir/build/BUILD/opencv-4.5.3/modules/videoio/src/cap_images.cpp (282) icvExtractPattern Pattern: /dev/video%01d @ 1
[ INFO:0] global /builddir/build/BUILD/opencv-4.5.3/modules/videoio/src/cap_images.cpp (313) open CAP_IMAGES: Stop scanning. Can't read image file: /dev/video1

Please look straight into the camera
Failed to read camera specified in your 'device_path', aborting

Switching to video0 makes it work, but obviously that's just using RGB camera.

I've searched for similar issues already, and my issue has not been reported yet.
Linux distribution (if applicable): Fedora Workstation 35
Howdy version (sudo howdy version): 2.6.1

Does your IR camera work in other applications? Like zcheese for example

Unsure what zcheese is, but in Cheese both devices use the RGB.

Under Windows 11, the camera is detected as being a regular RGB camera and uses the regular UVC camera driver, and therefore no Windows Hello.
Under Windows 10 1809, a Realtek driver is installed and Windows Hello works fine
Under Linux the usbfs driver is used. I remember using this camera with Howdy many years ago under an older Ubuntu version (maybe 18.10, 19.04 or 19.10? not sure)
Bus 001 Device 015: ID 0408:7020 Quanta Computer, Inc. RGB-IR Camera

    |__ Port 8: Dev 15, If 1, Class=Video, Driver=usbfs, 480M
    |__ Port 8: Dev 15, If 0, Class=Video, Driver=usbfs, 480M

Sorry, for that typo, did mean Cheese. If both available cameras in Cheese are in color then the Linux kernel does not have drivers for your IR camera unfortunately, maybe possible to downgrade that if it worked before but that seems risky

Just coming here to share the experience I had with my Logitech Brio camera. I couldn't get IR to work until I updated the firmware of the camera to the latest available version using the "Logi Tune" application on a Windows PC.
Check if there's a firmware update available for your camera.
Before the firmware update, I only had /dev/video0 and /dev/video1 available. After, I now also have video2 and video3. And using video2 worked for IR functionaliy.
Perhaps this comment will help someone else.


Support for "2-legged" OAuth v1.0a?

I've been trying to get the code to work with an API which uses "2-legged" OAuth v1.0a - am I correct in saying that this authentication isn't supported? If it is, is there an example?
Thank you!

Which OAuth provider are you trying to use? It's possible it could be supported.

I have same issue with Linkdex's API, maybe due to their poor API doc [here](url
https://api.linkdex.com/application.wadl.html), which uses HMAC-SHA1. I cannot find the end points to fill below
service.setAccessTokenUrl()
service.setRequestTokenUrl()
service.setAuthorizationUrl()

I also tried doing as your example of Yelp here but failed.
I'm listening to your suggestion on a way to handle this.
Thanks in advance,

@erickoledadevrel hope this request could get your attention, any guidance is appreciated. Thanks.

@eddaly - Although the Xero documentation claims that the private application flow is 2-legged, it really isn't. It's a 1-legged flow, which the library does support. I'm working to add support for the RSA-SHA1 signatures in PR #41.
@learner2020 - Likewise, the Linkdex API you linked to claims to use 2-legged OAuth, but it's really 1-legged. Don't set any of those URLs and don't call hasAccess(). Just setup the service and then use it's fetch method, as shown in the Semantics3 sample.
I have yet to find any APIs that use a true 2-legged flow, so closing this feature request. If you find a real case please let me know.


Fix colleciton for AAH

Remove sanity and ignore files
Fix import issues with requests
Remove Beta from the readme
Addding argument documentation
Add the missing GPLv3 License header

Still working on fixing documentation related sanity tests.


sulfite reductase relationships

GO:0016002    sulfite reductase activity
Molecular Function
Definition
Catalysis of the reaction: hydrogen sulfide + acceptor + 3 H2O = sulfite + reduced acceptor.
is not an ancestor of
GO:0004783   sulfite reductase (NADPH) activity
Definition
Catalysis of the reaction: hydrogen sulfide + 3 NADP+ + 3 H2O = sulfite + 3 NADPH + 3 H+.

done


Is awareness of lock state possible (if caps/num lock is currently on or off)?

Either natively or by combining with another program is fine by me.
What I'm trying to do (to emulate how I have it working in Windows using AutoHotkey):

capslock only turns on if the key is tapped twice in a row (within ~ 0.5 seconds of each other)
a single tap of the key will turn it off, but if caps is already off it does nothing
if the capslock key is held it works like shift (capitalizing what is typed while held, and not capitalizing after released)

From reading the ./keymap/tutorial.kbd it looks like I can do every part with kmonad (although I'm having trouble grasping the exact syntax, my best guess is (defalias cap  (multi-tap 500 caps 500 caps 500 sft)) but that's not valid) except the bolded part (which I'm hoping can be done natively, or at least by assigning the press to some command that can)
EDIT: Here is the AHK script for reference. If such functionality isn't currently possible I'm hoping it might be as part of the refactor?
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
CapsLock::

if A_PriorHotkey = CapsLock

{

if A_TimeSincePriorHotkey < 500

{

SetCapsLockState, on

return

}

}

SetCapsLockState, on

keywait, CapsLock

SetCapsLockState, OFF

return

Interesting idea. Going to label this as someday, since we are not ready yet to really delve into redoing the internals, but this is definitely something I'll keep in the back of my head.


Clear watchers even if closing FD fails

If the underlying file descriptor is invalid or closed, then a call to Notifier.close will leave @watchers untouched.
I think we should clear them nevertheless, as otherwise there's no way to clear them.
wdyt?

Can you please rebase on master and I will review.

This has been improved and should no longer be an issue.


Missing analysis warning with async methods without an explicit return type

Consider the following example:
abstract interface class Interface {
  String getA();
}

class Implementation implements Interface {
  getA() async {
    // no errors
  }
}

void main() {
  Implementation().getA();
}

Since Interface.getA specifies a String return type, it seems natural for the analyzer and compiler to yield an error with the definition of Implementation.getA, however, this isn't the case. There is no warning.
It seems when defining a method without a return type and letting it be inferred + the async modified, the return type gets inferred incorrectly.

Interesting, CFE also does not complain.
Moreover, when I run it, the returned future is not awaitable?
void main() async {
  var r = await Implementation().getA();
  print(r);
}

prints
Instance of 'Future<Object?>'

@eernstg

Implementation declares getA with no return type, which means that it should have String as the return type, based on override inference from Interface. It should then be an error that String isn't a supertype of Future<T> for any T, because Implementation.getA's body has the modifier async.
Hovering on the name getA in the declaration of getA (with DartPad 'Dart SDK 3.4.0-81.0.dev'), I can see that the return type is indeed reported as String, so I'd certainly expect to see this async error. The CFE reports the same return type.
Next, the fact that Implementation.getA can reach the end of the function body and (implicitly) return null should also be reported as an error, given that the return type is considered to be String. The CFE does report this error, but the analyzer does not. The CFA says the following:
Error compiling to JavaScript:
compile: lib/main.dart:6:3:
Error: A non-null value must be returned since the return type 'String' doesn't allow null.
  getA() async {
  ^
Error: Compilation failed.

Apparently, both tools fail to report the async / return type error. and the analyzer also fails to report the "implicitly return null" error.


Problem while running 'roslaunch bebop_tools joy_teleop.launch'

process[bebop/robot_state_publisher-3]: started with pid [25681]
[ INFO] [1538823198.803695714]: Initializing nodelet with 4 worker threads.
[ INFO] [1538823198.824396477]: [BebopSDK] 06:53:18:824 | Bebop:225 - Bebop Cnstr()
[ INFO] [1538823198.824488178]: Nodelet Cstr
[ INFO] [1538823198.835769368]: Connecting to Bebop ...
[ INFO] [1538823198.839339577]: [CB] 06:53:18:839 | Ardrone3PilotingStateFlatTrimChanged:388 - [STATES] Enabling states/ardrone3/PilotingState/FlatTrimChanged
[ INFO] [1538823198.841026381]: [CB] 06:53:18:840 | Ardrone3PilotingStateFlyingStateChanged:432 - [STATES] Enabling states/ardrone3/PilotingState/FlyingStateChanged
[ INFO] [1538823198.843168907]: [CB] 06:53:18:843 | Ardrone3PilotingStateNavigateHomeStateChanged:534 - [STATES] Enabling states/ardrone3/PilotingState/NavigateHomeStateChanged
[ INFO] [1538823198.844744114]: [CB] 06:53:18:844 | Ardrone3PilotingStatePositionChanged:592 - [STATES] Enabling states/ardrone3/PilotingState/PositionChanged
[ INFO] [1538823198.846297198]: [CB] 06:53:18:846 | Ardrone3PilotingStateSpeedChanged:657 - [STATES] Enabling states/ardrone3/PilotingState/SpeedChanged
[ INFO] [1538823198.847975587]: [CB] 06:53:18:847 | Ardrone3PilotingStateAttitudeChanged:722 - [STATES] Enabling states/ardrone3/PilotingState/AttitudeChanged
[ INFO] [1538823198.850291920]: [CB] 06:53:18:850 | Ardrone3PilotingStateAltitudeChanged:838 - [STATES] Enabling states/ardrone3/PilotingState/AltitudeChanged
[ INFO] [1538823198.857008883]: [CB] 06:53:18:856 | Ardrone3MediaStreamingStateVideoEnableChanged:1388 - [STATES] Enabling states/ardrone3/MediaStreamingState/VideoEnableChanged
[ INFO] [1538823198.860702512]: [CB] 06:53:18:860 | Ardrone3CameraStateOrientation:1490 - [STATES] Enabling states/ardrone3/CameraState/Orientation
[ INFO] [1538823198.868364668]: [CB] 06:53:18:868 | Ardrone3GPSStateNumberOfSatelliteChanged:1882 - [STATES] Enabling states/ardrone3/GPSState/NumberOfSatelliteChanged
[ INFO] [1538823198.873329170]: [CB] 06:53:18:873 | CommonCommonStateBatteryStateChanged:148 - [STATES] Enabling states/common/CommonState/BatteryStateChanged
[ INFO] [1538823198.878183000]: [CB] 06:53:18:878 | CommonCommonStateWifiSignalChanged:510 - [STATES] Enabling states/common/CommonState/WifiSignalChanged
[ INFO] [1538823198.884725042]: [CB] 06:53:18:884 | CommonOverHeatStateOverHeatChanged:1023 - [STATES] Enabling states/common/OverHeatState/OverHeatChanged
[ INFO] [1538823198.887108733]: [CB] 06:53:18:887 | CommonMavlinkStateMavlinkFilePlayingStateChanged:1118 - [STATES] Enabling states/common/MavlinkState/MavlinkFilePlayingStateChanged
[ INFO] [1538823198.891094260]: [CB] 06:53:18:891 | CommonMavlinkStateMavlinkPlayErrorStateChanged:1183 - [STATES] Enabling states/common/MavlinkState/MavlinkPlayErrorStateChanged
[ INFO] [1538823198.898683973]: [CB] 06:53:18:898 | CommonFlightPlanStateAvailabilityStateChanged:1568 - [STATES] Enabling states/common/FlightPlanState/AvailabilityStateChanged
[ INFO] [1538823198.900389483]: [CB] 06:53:18:900 | CommonFlightPlanStateComponentStateListChanged:1619 - [STATES] Enabling states/common/FlightPlanState/ComponentStateListChanged
[ INFO] [1538823198.913339449]: [ARCONTROLLER_Network] 06:53:18:913 | ARCONTROLLER_Network_GetAvailableSocketPort:128 - d2c_port port: 43210
[ INFO] [1538823198.913591260]: [ARCONTROLLER_Stream2] 06:53:18:913 | ARCONTROLLER_Stream2_Open_Socket:143 - udp local port stream: 55004
[ INFO] [1538823198.913633846]: [ARCONTROLLER_Stream2] 06:53:18:913 | ARCONTROLLER_Stream2_Open_Socket:143 - udp local port control: 55005
[ INFO] [1538823198.941004607]: [BebopSDK] 06:53:18:940 | CommandReceivedCallback:113 - Command Received Callback LWP id is: 25839
[ INFO] [1538823199.186035417]: [BebopSDK] 06:53:19:185 | Connect:321 - BebopSDK inited, lwp_id: 25677
[ WARN] [1538823199.186144569]: Resetting all settings ...
[ INFO] [1538823199.186252511]: [BebopSDK] 06:53:19:186 | ResetAllSettings:417 - All settings of the drone have been reset to default values.
[ INFO] [1538823202.186481342]: Fetching all settings from the Drone ...
[ INFO] [1538823202.217245118]: Value for PilotingSettingsMaxAltitudeCurrent recved: 30
[ INFO] [1538823202.217351656]: [CB] 06:53:22:217 | Update:111 - Checking if PilotingSettingsMaxAltitudeCurrent exists in params ...
[ INFO] [1538823202.219138711]: [CB] 06:53:22:219 | Update:114 -   No
[ INFO] [1538823202.222523673]: Value for PilotingSettingsMaxDistanceValue recved: 2000
[ INFO] [1538823202.222615768]: [CB] 06:53:22:222 | Update:351 - Checking if PilotingSettingsMaxDistanceValue exists in params ...
[ INFO] [1538823202.224107422]: [CB] 06:53:22:224 | Update:354 -   No
[ INFO] [1538823202.225210088]: Value for PilotingSettingsNoFlyOverMaxDistanceShouldnotflyover recved: 0
[ INFO] [1538823202.225265211]: [CB] 06:53:22:225 | Update:431 - Checking if PilotingSettingsNoFlyOverMaxDistanceShouldnotflyover exists in params ...
[ INFO] [1538823202.226098429]: [CB] 06:53:22:226 | Update:434 -   No
[ INFO] [1538823202.227077026]: Value for PilotingSettingsMaxTiltCurrent recved: 20
[ INFO] [1538823202.227122022]: [CB] 06:53:22:227 | Update:191 - Checking if PilotingSettingsMaxTiltCurrent exists in params ...
[ INFO] [1538823202.227913597]: [CB] 06:53:22:227 | Update:194 -   No
[ INFO] [1538823202.228954156]: Value for PilotingSettingsAbsolutControlOn recved: 0
[ INFO] [1538823202.229008676]: [CB] 06:53:22:228 | Update:271 - Checking if PilotingSettingsAbsolutControlOn exists in params ...
[ INFO] [1538823202.229946824]: [CB] 06:53:22:229 | Update:274 -   No
[ INFO] [1538823202.237474164]: Value for PilotingSettingsBankedTurnValue recved: 0
[ INFO] [1538823202.237670878]: [CB] 06:53:22:237 | Update:511 - Checking if PilotingSettingsBankedTurnValue exists in params ...
[ INFO] [1538823202.239268522]: [CB] 06:53:22:239 | Update:514 -   No
[ INFO] [1538823202.241079290]: Value for SpeedSettingsMaxVerticalSpeedCurrent recved: 1
[ INFO] [1538823202.241167742]: [CB] 06:53:22:241 | Update:991 - Checking if SpeedSettingsMaxVerticalSpeedCurrent exists in params ...
[ INFO] [1538823202.242310517]: [CB] 06:53:22:242 | Update:994 -   No
[ INFO] [1538823202.243583428]: Value for SpeedSettingsMaxRotationSpeedCurrent recved: 100
[ INFO] [1538823202.243632206]: [CB] 06:53:22:243 | Update:1071 - Checking if SpeedSettingsMaxRotationSpeedCurrent exists in params ...
[ INFO] [1538823202.244803523]: [CB] 06:53:22:244 | Update:1074 -   No
[ INFO] [1538823202.246441410]: Value for SpeedSettingsHullProtectionPresent recved: 0
[ INFO] [1538823202.246537558]: [CB] 06:53:22:246 | Update:1151 - Checking if SpeedSettingsHullProtectionPresent exists in params ...
[ INFO] [1538823202.248715002]: [CB] 06:53:22:248 | Update:1154 -   No
[ INFO] [1538823202.250503785]: Value for SpeedSettingsOutdoorOutdoor recved: 1
[ INFO] [1538823202.250574318]: [CB] 06:53:22:250 | Update:1231 - Checking if SpeedSettingsOutdoorOutdoor exists in params ...
[ INFO] [1538823202.251693093]: [CB] 06:53:22:251 | Update:1234 -   No
[ INFO] [1538823202.253528837]: Value for SpeedSettingsMaxPitchRollRotationSpeedCurrent recved: 300
[ INFO] [1538823202.253718241]: [CB] 06:53:22:253 | Update:1311 - Checking if SpeedSettingsMaxPitchRollRotationSpeedCurrent exists in params ...
[ INFO] [1538823202.256454836]: [CB] 06:53:22:256 | Update:1314 -   No
[ INFO] [1538823202.257763846]: Value for NetworkSettingsWifiSelectionType recved: 1
[ INFO] [1538823202.257822619]: [CB] 06:53:22:257 | Update:1417 - Checking if NetworkSettingsWifiSelectionType exists in params ...
[ INFO] [1538823202.258750473]: [CB] 06:53:22:258 | Update:1420 -   No
[ INFO] [1538823202.259892516]: Value for NetworkSettingsWifiSelectionBand recved: 0
[ INFO] [1538823202.259947723]: [CB] 06:53:22:259 | Update:1438 - Checking if NetworkSettingsWifiSelectionBand exists in params ...
[ INFO] [1538823202.260668879]: [CB] 06:53:22:260 | Update:1441 -   No
[ INFO] [1538823202.261572969]: Value for NetworkSettingsWifiSelectionChannel recved: 6
[ INFO] [1538823202.261626729]: [CB] 06:53:22:261 | Update:1459 - Checking if NetworkSettingsWifiSelectionChannel exists in params ...
[ INFO] [1538823202.262472451]: [CB] 06:53:22:262 | Update:1462 -   No
[ INFO] [1538823202.275887951]: Value for PictureSettingsVideoStabilizationModeMode recved: 0
[ INFO] [1538823202.275995942]: [CB] 06:53:22:275 | Update:1539 - Checking if PictureSettingsVideoStabilizationModeMode exists in params ...
[ INFO] [1538823202.277649515]: [CB] 06:53:22:277 | Update:1542 -   No
[ INFO] [1538823202.279249754]: Value for PictureSettingsVideoRecordingModeMode recved: 1
[ INFO] [1538823202.279329183]: [CB] 06:53:22:279 | Update:1619 - Checking if PictureSettingsVideoRecordingModeMode exists in params ...
[ INFO] [1538823202.280732051]: [CB] 06:53:22:280 | Update:1622 -   No
[ INFO] [1538823202.282783921]: Value for PictureSettingsVideoFramerateFramerate recved: 2
[ INFO] [1538823202.282853789]: [CB] 06:53:22:282 | Update:1699 - Checking if PictureSettingsVideoFramerateFramerate exists in params ...
[ INFO] [1538823202.284228552]: [CB] 06:53:22:284 | Update:1702 -   No
[ INFO] [1538823202.285929433]: Value for PictureSettingsVideoResolutionsType recved: 0
[ INFO] [1538823202.286113219]: [CB] 06:53:22:286 | Update:1779 - Checking if PictureSettingsVideoResolutionsType exists in params ...
[ INFO] [1538823202.288534270]: [CB] 06:53:22:288 | Update:1782 -   No
[ INFO] [1538823202.291349539]: Value for GPSSettingsReturnHomeDelayDelay recved: 30
[ INFO] [1538823202.291392095]: [CB] 06:53:22:291 | Update:1939 - Checking if GPSSettingsReturnHomeDelayDelay exists in params ...
[ INFO] [1538823202.292387832]: [CB] 06:53:22:292 | Update:1942 -   No
[ INFO] [1538823202.295640896]: Value for GPSSettingsHomeTypeType recved: 0
[ INFO] [1538823202.295697317]: [CB] 06:53:22:295 | Update:1859 - Checking if GPSSettingsHomeTypeType exists in params ...
[ INFO] [1538823202.296792623]: [CB] 06:53:22:296 | Update:1862 -   No
[ INFO] [1538823205.378791389]: Dynamic reconfigure callback with level: -1
[ INFO] [1538823205.378957504]: [CB] 06:53:25:378 | UpdateBebopFromROS:549 - PilotingSettingsMinAltitudeCurrent changed!
[ERROR] [1538823205.379009443]: [CB] 06:53:25:378 | UpdateBebopFromROS:557 - Value of PilotingSettingsMinAltitude was not initialized either by Bebop or Params.
[ INFO] [1538823205.379046742]: [CB] 06:53:25:379 | UpdateBebopFromROS:629 - PilotingSettingsCirclingDirectionValue changed!
[ERROR] [1538823205.379083353]: [CB] 06:53:25:379 | UpdateBebopFromROS:637 - Value of PilotingSettingsCirclingDirection was not initialized either by Bebop or Params.
[ INFO] [1538823205.379122876]: [CB] 06:53:25:379 | UpdateBebopFromROS:789 - PilotingSettingsCirclingAltitudeValue changed!
[ERROR] [1538823205.379158593]: [CB] 06:53:25:379 | UpdateBebopFromROS:797 - Value of PilotingSettingsCirclingAltitude was not initialized either by Bebop or Params.
[ INFO] [1538823205.379196893]: [CB] 06:53:25:379 | UpdateBebopFromROS:869 - PilotingSettingsPitchModeValue changed!
[ERROR] [1538823205.379234146]: [CB] 06:53:25:379 | UpdateBebopFromROS:877 - Value of PilotingSettingsPitchMode was not initialized either by Bebop or Params.
[ INFO] [1538823205.404326010]: Enabling video stream ...
[ WARN] [1538823205.404401209]: [BebopSDK] 06:53:25:404 | StartStreaming:359 - Video streaming started ...
[ INFO] [1538823205.404606712]: Nodelet lwp_id: 25677
[ INFO] [1538823205.404648044]: [CameraThread] thread lwp_id: 26095
[ INFO] [1538823205.404690620]: bebop_driver nodelet loaded.
[ INFO] [1538823205.404769563]: [AuxThread] thread lwp_id: 26096
[ INFO] [1538823205.415929764]: [ARSTREAM2_StreamReceiver] 06:53:25:415 | ARSTREAM2_StreamReceiver_RunNetworkThread:1666 - Receiver thread running
[ INFO] [1538823205.416025196]: [ARSTREAM2_StreamReceiver] 06:53:25:415 | ARSTREAM2_StreamReceiver_StartAppOutput:1911 - App output is running
[ INFO] [1538823205.416269523]: [ARSTREAM2_StreamReceiver] 06:53:25:416 | ARSTREAM2_StreamReceiver_RunAppOutputThread:1336 - App output thread running
[ WARN] [1538823205.446037062]: [ARSTREAM2_Rtcp] 06:53:25:446 | ARSTREAM2_RTCP_Receiver_ProcessSenderReport:290 - Unexpected sender SSRC
[ERROR] [1538823205.446070339]: [ARSTREAM2_Rtcp] 06:53:25:446 | ARSTREAM2_RTCP_Receiver_ProcessCompoundPacket:2099 - Failed to process sender report (-1)
[ WARN] [1538823205.446103811]: [ARSTREAM2_Rtcp] 06:53:25:446 | ARSTREAM2_RTCP_ProcessApplicationClockDelta:1405 - Unexpected peer SSRC
[ERROR] [1538823205.446121690]: [ARSTREAM2_Rtcp] 06:53:25:446 | ARSTREAM2_RTCP_Receiver_ProcessCompoundPacket:2126 - Failed to process application clock delta (-1)
[ INFO] [1538823205.449117037]: [ARSTREAM2_H264Filter] 06:53:25:449 | ARSTREAM2_H264Filter_ProcessAu:593 - AU output cancelled (waitForSync)
[ INFO] [1538823205.482426905]: [ARSTREAM2_H264Filter] 06:53:25:482 | ARSTREAM2_H264Filter_Sync:65 - SPS/PPS sync OK
[ INFO] [1538823205.482459049]: [BebopSDK] 06:53:25:482 | DecoderConfigCallback:147 - H264 configuration packet received: #SPS: 27 #PPS: 9 (MP4? 0)
[ INFO] [1538823205.482590698]: [ARSTREAM2_H264FilterError] 06:53:25:482 | ARSTREAM2_H264FilterError_GenerateGrayIdrFrame:101 - Gray I slice NALU output size: 1629
[ INFO] [1538823205.482696948]: [BebopSDK] 06:53:25:482 | FrameReceivedCallback:174 - Frame Recv & Decode LWP id: 26099
[ INFO] [1538823205.483387196]: [Decoder] 06:53:25:483 | InitCodec:117 - H264 Codec is partially initialized!
[ INFO] [1538823205.483412900]: [Decoder] 06:53:25:483 | Decode:263 - Updating H264 codec parameters (Buffer Size: 36) ...
[ERROR] [1538823205.484634998]: [Decoder] 06:53:25:484 | Decode:302 - Frame size changed to 856 x 480
[ INFO] [1538823205.484662164]: [Decoder] 06:53:25:484 | ReallocateBuffers:123 - Buffer reallocation request
[ INFO] [1538823205.486036905]: camera calibration URL: package://bebop_driver/data/bebop2_camera_calib.yaml
[ WARN] [1538823222.812228046]: [BebopSDK] 06:53:42:812 | FrameReceivedCallback:191 - Previous frame might have been missed.
[ WARN] [1538823223.238141173]: [BebopSDK] 06:53:43:238 | FrameReceivedCallback:191 - Previous frame might have been missed.
[ WARN] [1538823223.241169004]: [BebopSDK] 06:53:43:241 | FrameReceivedCallback:191 - Previous frame might have been missed.
[ WARN] [1538823223.243932188]: [BebopSDK] 06:53:43:243 | FrameReceivedCallback:191 - Previous frame might have been missed.
[ WARN] [1538823223.604985309]: [BebopSDK] 06:53:43:604 | FrameReceivedCallback:191 - Previous frame might have been missed.
[ WARN] [1538823223.612021005]: [BebopSDK] 06:53:43:611 | FrameReceivedCallback:191 - Previous frame might have been missed.
[ WARN] [1538823223.615234343]: [BebopSDK] 06:53:43:615 | FrameReceivedCallback:191 - Previous frame might have been missed.
[ WARN] [1538823223.971556935]: [BebopSDK] 06:53:43:971 | FrameReceivedCallback:191 - Previous frame might have been missed.
[ WARN] [1538823223.976344352]: [BebopSDK] 06:53:43:976 | FrameReceivedCallback:191 - Previous frame might have been missed.
[ WARN] [1538823223.982322599]: [BebopSDK] 06:53:43:982 | FrameReceivedCallback:191 - Previous frame might have been missed.
[ WARN] [1538823223.983807792]: [BebopSDK] 06:53:43:983 | FrameReceivedCallback:191 - Previous frame might have been missed.
[ WARN] [1538823224.342386580]: [BebopSDK] 06:53:44:342 | FrameReceivedCallback:191 - Previous frame might have been missed.
[ WARN] [1538823224.346271738]: [BebopSDK] 06:53:44:346 | FrameReceivedCallback:191 - Previous frame might have been missed.
[ WARN] [1538823224.350725041]: [BebopSDK] 06:53:44:350 | FrameReceivedCallback:191 - Previous frame might have been missed.
[ WARN] [1538823224.703864415]: [BebopSDK] 06:53:44:703 | FrameReceivedCallback:191 - Previous frame might have been missed.
[ WARN] [1538823224.708806003]: [BebopSDK] 06:53:44:708 | FrameReceivedCallback:191 - Previous frame might have been missed.
[ WARN] [1538823224.712381489]: [BebopSDK] 06:53:44:712 | FrameReceivedCallback:191 - Previous frame might have been missed.
[ WARN] [1538823224.714087472]: [BebopSDK] 06:53:44:714 | FrameReceivedCallback:191 - Previous frame might have been missed.
[ WARN] [1538823225.112084185]: [BebopSDK] 06:53:45:112 | FrameReceivedCallback:191 - Previous frame might have been missed.
[ WARN] [1538823225.116326821]: [BebopSDK] 06:53:45:116 | FrameReceivedCallback:191 - Previous frame might have been missed.
[ WARN] [1538823225.120322659]: [BebopSDK] 06:53:45:120 | FrameReceivedCallback:191 - Previous frame might have been missed.
[ WARN] [1538823225.121788502]: [BebopSDK] 06:53:45:121 | FrameReceivedCallback:191 - Previous frame might have been missed.
[ WARN] [1538823225.470753777]: [BebopSDK] 06:53:45:470 | FrameReceivedCallback:191 - Previous frame might have been missed.
[ WARN] [1538823225.474798004]: [BebopSDK] 06:53:45:474 | FrameReceivedCallback:191 - Previous frame might have been missed.
[ WARN] [1538823225.479043749]: [BebopSDK] 06:53:45:479 | FrameReceivedCallback:191 - Previous frame might have been missed.
[ WARN] [1538823225.486147217]: [BebopSDK] 06:53:45:486 | FrameReceivedCallback:191 - Previous frame might have been missed.
[ WARN] [1538823225.834201615]: [BebopSDK] 06:53:45:834 | FrameReceivedCallback:191 - Previous frame might have been missed.
[ WARN] [1538823225.839890038]: [BebopSDK] 06:53:45:839 | FrameReceivedCallback:191 - Previous frame might have been missed.
[ WARN] [1538823225.842718609]: [BebopSDK] 06:53:45:842 | FrameReceivedCallback:191 - Previous frame might have been missed.

Hi, did you fixed this error?


Instruments api

I added a list of instruments 🤓
Routes

[x] GET /instruments/
[x] GET /instruments/:filterBy?

Tests

[x] Passing

Screenshot

Suggestions
@ageddesi, could you add the hacktoberfest-accepted tag :B?

HI @headStyleColorRed thank you for this, what an awesome endpoint idea. I have asked you to just make 1 small modification then its ready for merging. Thank you.

Thanks @headStyleColorRed for that contribution 👍 Great work and happy Hacktoberfest

Thanks @headStyleColorRed for that contribution 👍 Great work and happy Hacktoberfest

Thank you!!!


Get size of download

Hello, is there any way to get the size of the total request download before to execute the request??
Thanks

Hi @aceconhielo,
Unfortunately such option doesn't exist but I agree it might be useful. Some time in next few months we plan to integrate new Sentinel Hub service API into sentinelhub-py and with it something like this could maybe become possible.
The closest thing that currently exists is a method get_url_list() which you can call on your instance of data request class, before calling get_data or save_data methods. This way you can see how many download requests will be made. Since you know the size of your requested images, number of bands and data format you could probably estimate the approximate overall size of the data you are going to download.


[ts-sdk] websocket client reconnect should delete existing subscription

Description
The websocket-client.ts has a memory leak in the reconnect logic.
The subscriptions map uses the request id as the map key. At reconnect, wsclient loops through the map’s values and resubscribe them. The input.id is set as the key (Line 121) as it's defined, but the id in the value object is a new request id. The next reconnect will set the last request id with a duplicated subscription object. Causing the map size increment in Fibonacci at every reconnect. That’s probably the cause we are seeing JSONRPCError: Too many subscriptions on the connection.
It can be fixed by always deleting existing input.id key in the subscriptions map then setting the new requested id as key.
To reproduce on local, I put some loggings to examine the subscriptions map size after every reconnect:
Disconnects ++
Subscriptions map size: 1
Disconnects ++
Subscriptions map size: 2
Disconnects ++
Subscriptions map size: 3
Disconnects ++
Subscriptions map size: 5
Disconnects ++
Subscriptions map size: 8
...
...
Disconnects ++
Subscriptions map size: 987
Disconnects ++
Subscriptions map size: 1597

JSONRPCError: Too many subscriptions on the connection

Test Plan
How did you test the new or updated feature?
Applied the change as a patch in our service, I could see the reconnect logic work fine and no JSONRPCError: Too many subscriptions on the connection error was seen. The test was done on testnet.

If your changes are not user-facing and not a breaking change, you can skip the following section. Otherwise, please indicate what changed, and then add to the Release Notes section as highlighted during the release process.
Type of Change (Check all that apply)

[ ] protocol change
[ ] user-visible impact
[ ] breaking change for a client SDKs
[ ] breaking change for FNs (FN binary must upgrade)
[ ] breaking change for validators or node operators (must upgrade binaries)
[ ] breaking change for on-chain data layout
[ ] necessitate either a data wipe or data migration

Release notes

@Ev3rlasting thanks for this fix!  This looks good to me, the only missing thing we need is a changeset, then we can get this released

@hayes Thanks, added changeset by running pnpm, let me know if it looks ok.


Documentation code samples for std.json

Hope ya'll forgive the shout-out to perl

Please make the code examples ddoc'd unittests instead of untested code in comments. Also, please stick to Phobos style for all code examples.

Please make the code examples ddoc'd unittests instead of untested code in comments.

I'm not sure what that means.  Does that mean add the example code as a unittest?  Or, in a ddoc block add unittest (but why? does it run?  even as commented out code?)  Is there a sample someplace I could see?
I'll fix the styling.

Was it just the if { } else { } ?  Is there other style problems?

A ddoc'd unittest is a unittest preceded by a documentation comment, like so:
///
unittest
{
    someCodeHere();
}

When generating documentation, Ddoc will include the body of such unittests as code blocks inside the documentation generated for the preceding function. Any text you put in the documentation comment of the unittest will also get included as part of the generated docs, so you can put additional explanations there as well.
This feature makes it possible to use unittests as example code; they will actually be run as part of the unittesting feature, so you can rest assured that the example code in the generated docs actually compile and run, and are not just some artificial example that may or may not compile and/or run.

The style looks OK now. You might want to keep the max line length at 80 characters or so... but this is a soft limit, not a hard limit, so it depends on your judgment. It's a good idea to do this in the code examples, though, since otherwise it might look ugly in the generated docs (overly long lines may spill out of the code boxes on dlang.org).

@quickfur leaving this to you - thanks both!

For the first one, you can put it immediately after the module declaration and imports. It should still show up at the very top, unless something else went wrong. In any case, it's not a bad idea to include imports in code examples -- sometimes new users may not know what the right import lines should be, and it can be frustrating if you can't figure it out when it seems obvious to the person who wrote said code examples.

The other code examples look good. Thanks!

I'm building the docs with:  DMD32 D Compiler v2.067-devel-227ca8d
Maybe that version doesnt work?
If I move the ddoc just below the module line, then it disappears.
If I move it below the import it shows up with the enum JSON_TYPE docs.
Want me to move it just below the module in hopes it shows up?
Or you want me to leave it?

Hmph, you're right, it appears that module declarations don't support ddoc'd unittests. Alright. Let's leave it as-is at the top for now, and I'll file a bug and look into how to fix the compiler to support this. Sorry for making you do something that doesn't work.

Auto-merge toggled on


Is non-SGX still sandboxed?

I notice the main page says TEE(Trusted Execution Environment) support(SGX/TDX)
https://bytecodealliance.github.io/wamr.dev/
Does that mean WAMR can only run untrusted code on Intel processors through its SGX support? Or is WAMR still appropriately sandboxed with SGX disabled?

Hi, WAMR supports many platforms, such as linux, linux-sgx, macos, windows, android and so on, you can build and run WAMR without SGX, refer to:
https://github.com/bytecodealliance/wasm-micro-runtime/blob/main/doc/build_wamr.md#linux
https://github.com/bytecodealliance/wasm-micro-runtime/blob/main/doc/build_wamr.md#macos

Without SGX, WAMR is still sandbox. @rygo6


fix(Weapp): support Android

Current coverage is 65.49% (diff: 100%)

Merging #406 into next will not change coverage

@@               next       #406   diff @@
==========================================
  Files            32         32
  Lines          2649       2649
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits           1735       1735
  Misses          914        914
  Partials          0          0

Powered by Codecov. Last update a031611...cb1ebb7