support rolling_upgrade from Jewel to Luminous

Hello,
proposed "master.yml" for multisite RGW tasks working with "rolling_upgrades.yml" playbook and new deployments.
When using a rolling_upgrade on an existing multisite RGW cluster, master.yml gives an error:
TASK [ceph-rgw : include master multisite tasks] ****************************************************************************************************************
fatal: [rgwnode]: FAILED! => {"reason": "Syntax Error while loading YAML.\n\n\nThe error appears to have been in '/home/ansible/ceph-object/ansible-obj/roles/ceph-rgw/tasks/multisite/master.yml': line 6, column 35, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n  when:\n    - 'No such file or directory' in realmcheck.stderr\n                                  ^ here\n\nexception type: <class 'yaml.parser.ParserError'>\nexception: while parsing a block collection\n  in "", line 6, column 5\ndid not find expected '-' indicator\n  in "", line 6, column 35"}

@pakal98 Please add a sign-off to your commit message.

Also I'm not sure why is Ansible complaining here... You basically re-wrote the same thing but it passes that what maters I guess.

Hello,
TASK [ceph-rgw : include master multisite tasks] ***********************************************************************************************************************
fatal: [host01]: FAILED! => {"reason": "Syntax Error while loading YAML.\n\n\nThe error appears to have been in '/home/ansible/ceph-object/ansible-obj/roles/ceph-rgw/tasks/multisite/master.yml': line 6, column 35, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n  when:\n    - 'No such file or directory' in realmcheck.stderr\n                                  ^ here\n\nexception type: <class 'yaml.parser.ParserError'>\nexception: while parsing a block collection\n  in "", line 6, column 5\ndid not find expected '-' indicator\n  in "", line 6, column 35"}
to retry, use: --limit @/home/ansible/ceph-object/ansible-obj/.ansible-retry/site.retry
When change is applyied
TASK [ceph-rgw : include master multisite tasks] ***********************************************************************************************************************
included: /home/ansible/ceph-object/ansible-obj/roles/ceph-rgw/tasks/multisite/master.yml for host01
And period request answers correctly :
radosgw-admin period get
{
"id": "f903a27a-218e-4aa4-aaed-eedadbc5c10c",
"epoch": 1,
"predecessor_uuid": "d99633cb-bc14-43ba-be7d-9582eba8a3bb",
"sync_status": [],
"period_map": {
"id": "f903a27a-218e-4aa4-aaed-eedadbc5c10c",
"zonegroups": [
{
"id": "cf0d1888-9302-4fc3-a892-dbee87a8814f",
......
......
It is strange because Ansible usage for conditional shows no diference between both syntax.
https://docs.ansible.com/ansible/2.5/user_guide/playbooks_conditionals.html

@pakal98 i can't reproduce your failure, that's weird.

@Guits : I suspect that a parameter combination in groups_vars and inventory/hosts is giving such an error. I was wondering why an equivalent Ansible syntax could lead to different results.
On travel today with bad connection. Sharing details tomorrow. I appreciate in advance your feedback in order to reproduce the error and find the bug.


Publish Documentation Site

Publish a documentation site including API references

It's live at: https://sourcefuse.github.io/loopback4-sequelize/


exponential backoff on trigger fire retry

Resolves #207
With this algorithm, there are 6 retry attempts with a delay of 2^x seconds between attempts. This has the following effects:

Retries initially happen quickly
Total possible retry length (from first failure to last attempt) is extended to 126 seconds
The last retry delay is 64 seconds which will ensure that the 60 second rolling throttle window has passed between the last two attempts

@dubeejw please review

@csantanapr please review/merge.


add dragon reservation and cancellation functionalities

In this milestone of the Space-Travelers-Hub project, I implemented the following:

Added the actions and reducers for dragon reservation.
Added the actions and reducers for canceling the dragon reservation.
Using conditional components rendering, I made sure that:
💠 Dragons that have already been reserved should show a "Reserved" badge and a "Cancel reservation" button.
💠 Dragons that have not been reserved should show a  "Reserve dragon" button (as per design).
Made sure that there were no Linters errors.

Hello @yetemegn-telaye 😎 ,
Thank you for taking out time to review and approve this PR. 💯


Chat room got disconnected

Dear Rodrigo,
i current stumble upon your project that is very similar to a project i wanted to created so i decided to use your code as a base to build mine and plan to expand on it to the future, though i got a few problem and i hope you can help me with it.

chat room got disconnected, iirc i saw this question being asked before but from my reading there hasnt been a answer to it yet ?, it i run one emulator phone and one physical phone, if i were to chat either consistently or just leave it there, the chat will be disconnected and i have to turn off nodejs and restart it to continue using it again

1.1 my problem also start from the one above too as i have my own project that also based on your code and i managed to send message between user just fine until either is due to disconnect or something im missing i got the error
vlance_sharpshooter
mobile_server\node_modules\typeorm\src\driver\mysql\MysqlQueryRunner.ts:222
new QueryFailedError(query, parameters, err),
^
QueryFailedError: ER_TRUNCATED_WRONG_VALUE: Truncated incorrect DOUBLE value: '9970338569027054653L04117968'
at Query. (mobile_server\node_modules\typeorm\src\driver\mysql\MysqlQueryRunner.ts:222:33)
at Query. (mobile_server\node_modules\mysql\lib\Connection.js:526:10)
at Query._callback (mobile_server\node_modules\mysql\lib\Connection.js:488:16)
at Query.Sequence.end (mobile_server\node_modules\mysql\lib\protocol\sequences\Sequence.js:83:24)
at Query.ErrorPacket (mobile_server\node_modules\mysql\lib\protocol\sequences\Query.js:92:8)
at Protocol._parsePacket (mobile_server\node_modules\mysql\lib\protocol\Protocol.js:291:23)
at Parser._parsePacket (mobile_server\node_modules\mysql\lib\protocol\Parser.js:433:10)
at Parser.write (mobile_server\node_modules\mysql\lib\protocol\Parser.js:43:10)
at Protocol.write (mobile_server\node_modules\mysql\lib\protocol\Protocol.js:38:16)
at Socket. (mobile_server\node_modules\mysql\lib\Connection.js:88:28) {
query: 'UPDATE message SET received_at = ?, sender_has_outdated_version = ?, updated_at = CURRENT_TIMESTAMP WHERE id IN (?)',
parameters: [ 2024-05-16T06:50:25.603Z, 1, '9970338569027054653L04117968' ],
driverError: Error: ER_TRUNCATED_WRONG_VALUE: Truncated incorrect DOUBLE value: '9970338569027054653L04117968'
at Query.Sequence._packetToError (mobile_server\node_modules\mysql\lib\protocol\sequences\Sequence.js:47:14)
at Query.ErrorPacket (mobile_server\node_modules\mysql\lib\protocol\sequences\Query.js:79:18)
at Protocol._parsePacket (mobile_server\node_modules\mysql\lib\protocol\Protocol.js:291:23)
at Parser._parsePacket (mobile_server\node_modules\mysql\lib\protocol\Parser.js:433:10)
at Parser.write (mobile_server\node_modules\mysql\lib\protocol\Parser.js:43:10)
at Protocol.write (mobile_server\node_modules\mysql\lib\protocol\Protocol.js:38:16)
at Socket. (mobile_server\node_modules\mysql\lib\Connection.js:88:28)
at Socket. (mobile_server\node_modules\mysql\lib\Connection.js:526:10)
at Socket.emit (node:events:519:28)
at Socket.emit (node:domain:488:12)
--------------------
at Protocol._enqueue (mobile_server\node_modules\mysql\lib\protocol\Protocol.js:144:48)
at PoolConnection.query (mobile_server\node_modules\mysql\lib\Connection.js:198:25)
at mobile_server\node_modules\typeorm\src\driver\mysql\MysqlQueryRunner.ts:194:36
at processTicksAndRejections (node:internal/process/task_queues:95:5) {
code: 'ER_TRUNCATED_WRONG_VALUE',
errno: 1292,
sqlMessage: "Truncated incorrect DOUBLE value: '9970338569027054653L04117968'",
sqlState: '22007',
index: 0,
sql: "UPDATE message SET received_at = '2024-05-16 13:50:25.603', sender_has_outdated_version = 1, updated_at = CURRENT_TIMESTAMP WHERE id IN ('9970338569027054653L04117968')"
},
code: 'ER_TRUNCATED_WRONG_VALUE',
errno: 1292,
sqlMessage: "Truncated incorrect DOUBLE value: '9970338569027054653L04117968'",
sqlState: '22007',
index: 0,
sql: "UPDATE message SET received_at = '2024-05-16 13:50:25.603', sender_has_outdated_version = 1, updated_at = CURRENT_TIMESTAMP WHERE id IN ('9970338569027054653L04117968')"
}
this happen if i send a msg from user1 to user 2, user1 is fine, but if i logged into user2, there will be no more conversations, and it would stuck on loading,
i would love to be help with this and i will send more infomation if you needed, for example i created my own stream to list out the conversation now, maybe i missed something?, and if so why did it not work only after a bunch of message has been sent and it would seem only the receiver account got affected?
thank you in advance

Hello, looks like you are having problems with your custom code on top of Askless, so it's better to investigate using other sources on the web
thank you for checking Askless


Link in Flare-JS repo do not work

Please update the above mentioned link

Thanks for pointing it out!
Everything has been moving to the new version of Rive, including our runtimes, so upgrading is highly encouraged (if possible)!


Modify AuthTokenRetriever to support Linux

Also cleaned up how that piece of code flows, avoiding the Exception if the OS isn't Windows in the first place.

Merged into 1.5.


changes to nick reservation

Clients are now renamed, not disconnected, on reservation timeout
Nick reservation config is now its own subsection

Nice, thanks!

Coolcool, just some general cleanups so I'll merge this now.


fix https://github.com/Hackerpilot/Dscanner/issues/251

PTAL

I have no idea what PTAL means.

Please Take Another Look
common in code reviews :)
On Mon, May 11, 2015 at 9:33 PM, Brian Schott<EMAIL_ADDRESS>wrote:

I have no idea what PTAL means.
—
Reply to this email directly or view it on GitHub
https://github.com/Hackerpilot/Dscanner/pull/252#issuecomment-101126954.


Fix "TypeError: unhashable type: 'list'" when cluster_on_key_properties is enabled

Fixes #41
References: https://github.com/z3z1ma/target-bigquery/issues/41#issuecomment-1654973388

Hi @z3z1ma , can you please take a look at this PR? Thanks alot

Interesting, probably a call to an @cache decorated func of some sort was getting a list arg. Thanks!


Any plan to bump rand to 0.8?

It seems rand 0.8 has many improvements.
https://rust-random.github.io/book/update-0.8.html

Closed by #79.


removes dependency on fbjs from rsocket-core

This PR proposes removing the fbjs dependency and removes it from rsocket-core.
Motivation:
At the moment, fbjs is the only major 3rd party dependency. However, very few functions from fbjs are actually used - mostly invariant. The downside of depending on fbjs  is the following transitive closure:
https://github.com/facebook/fbjs/blob/5300adaec134f532391dfac65d574cc066fe593e/packages/fbjs/package.json#L65-L73. Removing fbjs could make rscoket-js effectively a zero dependency package which could facilitate the adoption.
Additionally, the README page of fbjs states that "If you are consuming the code here and you are not also a Facebook project, be prepared for a bad time." RSocket-JS is not a Facebook project anymore and therefore might suffer from unexpected compatibility issues.
Modifications:
This PR is the first step that removes the dependency from rsocket-core.

Personally I am in favor. I do not believe we have any active FB contributors at the moment, so decoupling from their internal libs and infra will likely improve the maintainability long term.
Dropping fbjs will also help with #132 as well.

I'll send PRs to remove fbjs from other modules as well 👍


Consolidate bandwidth hints with ignored edges and nodes to findpaths

See https://github.com/lightningnetwork/lnd/pull/2115#issuecomment-444027573 and following discussion.

@halseth can we close this?

No longer applicable.


PhantomJS crashes : Segmentation fault, rasterize.js and PHP

Which version of PhantomJS are you using?
1.9.0

What steps will reproduce the problem?
1. Download binary or compile phantomjs per instructions.
2. Extract from tar
3. Run rasterize.js and phantomJS with PHP command line

Which operating system are you using?

Linux vps20545 2.6.32-042stab078.27 #1 SMP Mon Jul 1 20:48:07 MSK 2013 x86_64 x86_64 x86_64 GNU/Linux
Did you use binary PhantomJS or did you compile it from source?

Have tried both.

Misc information:

2013-07-05 12:07:48: minidump.cc:3747: INFO: Minidump closing minidump
Operating system: Linux
0.0.0 Linux 2.6.32-042stab078.27 #1 SMP Mon Jul 1 20:48:07 MSK 2013 x86_64
CPU: amd64
family 16 model 2 stepping 3
1 CPU
Crash reason:  SIGSEGV
Crash address: 0xbbadbeef
Thread 0 (crashed)
0  phantomjs + 0xef417
rbx = 0xffffffffffffffff   r12 = 0x0000000002f4cd80
r13 = 0x000000000000007f   r14 = 0x00007f527e8b8820
r15 = 0x00007f527e8b8720   rip = 0x00000000004ef417
rsp = 0x00007fff16458800   rbp = 0x7ff8000000000000
Found by: given as instruction pointer in context
1  phantomjs + 0xb28950
rip = 0x0000000000f28951   rsp = 0x00007fff16458810
rbp = 0x7ff8000000000000
Found by: stack scanning
2  phantomjs + 0xb7f6e5
rip = 0x0000000000f7f6e6   rsp = 0x00007fff16458860
rbp = 0x7ff8000000000000
Found by: stack scanning
3  phantomjs + 0x109378f
rip = 0x0000000001493790   rsp = 0x00007fff16458890
rbp = 0x7ff8000000000000
Found by: stack scanning
4  phantomjs + 0xb804ad
rip = 0x0000000000f804ae   rsp = 0x00007fff164588d0
rbp = 0x7ff8000000000000
Found by: stack scanning
5  phantomjs + 0x1ce8bfd
rip = 0x00000000020e8bfe   rsp = 0x00007fff164589b8
rbp = 0x7ff8000000000000
Found by: stack scanning
6  phantomjs + 0xed776
rip = 0x00000000004ed777   rsp = 0x00007fff164589f0
rbp = 0x7ff8000000000000
Found by: stack scanning
7  phantomjs + 0xd7dff
rip = 0x00000000004d7e00   rsp = 0x00007fff16458a00
rbp = 0x7ff8000000000000
Found by: stack scanning
8  phantomjs + 0x43cc2a
rip = 0x000000000083cc2b   rsp = 0x00007fff16458a10
rbp = 0x7ff8000000000000
Found by: stack scanning
9  phantomjs + 0x188c3ff
rip = 0x0000000001c8c400   rsp = 0x00007fff16458a20
rbp = 0x7ff8000000000000
Found by: stack scanning
10  phantomjs + 0x43d9d4
rip = 0x000000000083d9d5   rsp = 0x00007fff16458a80
rbp = 0x7ff8000000000000
Found by: stack scanning
11  phantomjs + 0xd7dff
rip = 0x00000000004d7e00   rsp = 0x00007fff16458ad0
rbp = 0x7ff8000000000000
Found by: stack scanning
12  phantomjs + 0xb81f30
rip = 0x0000000000f81f31   rsp = 0x00007fff16458b50
rbp = 0x7ff8000000000000
Found by: stack scanning
13  phantomjs + 0x114741
rip = 0x0000000000514742   rsp = 0x00007fff16458b70
rbp = 0x7ff8000000000000
Found by: stack scanning
14  phantomjs + 0xb03cc
rip = 0x00000000004b03cd   rsp = 0x00007fff16458ba0
rbp = 0x7ff8000000000000
Found by: stack scanning
15  phantomjs + 0x45c046
rip = 0x000000000085c047   rsp = 0x00007fff16458bd0
rbp = 0x7ff8000000000000
Found by: stack scanning
16  phantomjs + 0xe6506
rip = 0x00000000004e6507   rsp = 0x00007fff16458be0
rbp = 0x7ff8000000000000
Found by: stack scanning
17  phantomjs + 0x19588ef
rip = 0x0000000001d588f0   rsp = 0x00007fff16458c08
rbp = 0x7ff8000000000000
Found by: stack scanning
18  phantomjs + 0xe657f
rip = 0x00000000004e6580   rsp = 0x00007fff16458c20
rbp = 0x7ff8000000000000
Found by: stack scanning
19  phantomjs + 0x79b90
rip = 0x0000000000479b91   rsp = 0x00007fff16458c60
rbp = 0x7ff8000000000000
Found by: stack scanning
Thread 1
0  libpthread-2.15.so + 0xbd84
rbx = 0x0000000002ad9088   r12 = 0x0000000002acafe0
r13 = 0x00007f527c66b9c0   r14 = 0x0000000000000000
r15 = 0x0000000000000003   rip = 0x00007f527dcc2d84
rsp = 0x00007f527c66adf0   rbp = 0x0000000000000000
Found by: given as instruction pointer in context
1  phantomjs + 0xd4ebb
rip = 0x00000000004d4ebc   rsp = 0x00007f527c66ae20
Found by: stack scanning
2  libc-2.15.so + 0x977f
rip = 0x00007f527d0ef780   rsp = 0x00007f527c66ae28
Found by: stack scanning
3  libpthread-2.15.so + 0x1187f
rip = 0x00007f527dcc8880   rsp = 0x00007f527c66ae50
Found by: stack scanning
4  ld-2.15.so + 0x15234
rip = 0x00007f527e7c7235   rsp = 0x00007f527c66ae60
Found by: stack scanning
5  libpthread-2.15.so + 0x1187f
rip = 0x00007f527dcc8880   rsp = 0x00007f527c66ae80
Found by: stack scanning
6  phantomjs + 0xd5058
rip = 0x00000000004d5059   rsp = 0x00007f527c66aea0
Found by: stack scanning
7  libpthread-2.15.so + 0x7e99
rip = 0x00007f527dcbee9a   rsp = 0x00007f527c66aeb0
Found by: stack scanning
8  libpthread-2.15.so + 0x1187f
rip = 0x00007f527dcc8880   rsp = 0x00007f527c66af58
Found by: stack scanning
9  libc-2.15.so + 0xf3ccc
rip = 0x00007f527d1d9ccd   rsp = 0x00007f527c66afc0
Found by: stack scanning
Thread 2
0  libc-2.15.so + 0xed033
rbx = 0x0000000000000000   r12 = 0x00007f527bc69d80
r13 = 0x0000000000000008   r14 = 0x00007f5274000a98
r15 = 0x00007f5274000d30   rip = 0x00007f527d1d3033
rsp = 0x00007f527bc69b50   rbp = 0x00007f52740008e0
Found by: given as instruction pointer in context
1  phantomjs + 0x18fcf26
rip = 0x0000000001cfcf27   rsp = 0x00007f527bc69b60
Found by: stack scanning
2  ld-2.15.so + 0xa29d
rip = 0x00007f527e7bc29e   rsp = 0x00007f527bc69ba0
Found by: stack scanning
3  phantomjs + 0x18fe1e6
rip = 0x0000000001cfe1e7   rsp = 0x00007f527bc69bf0
Found by: stack scanning
4  phantomjs + 0x18ed6b6
rip = 0x0000000001ced6b7   rsp = 0x00007f527bc69c10
Found by: stack scanning
5  phantomjs + 0x17f85c2
rip = 0x0000000001bf85c3   rsp = 0x00007f527bc69c20
Found by: stack scanning
6  linux-gate.so + 0x828
rip = 0x00007fff164e9829   rsp = 0x00007f527bc69c50
Found by: stack scanning
7  librt-2.15.so + 0x415c
rip = 0x00007f527ded815d   rsp = 0x00007f527bc69c60
Found by: stack scanning
8  phantomjs + 0x1837773
rip = 0x0000000001c37774   rsp = 0x00007f527bc69c70
Found by: stack scanning
9  phantomjs + 0x1837678
rip = 0x0000000001c37679   rsp = 0x00007f527bc69cb0
Found by: stack scanning
10  phantomjs + 0x18fdba5
rip = 0x0000000001cfdba6   rsp = 0x00007f527bc69cc0
Found by: stack scanning
11  phantomjs + 0x18fec91
rip = 0x0000000001cfec92   rsp = 0x00007f527bc69d30
Found by: stack scanning
12  phantomjs + 0x18d40b4
rip = 0x0000000001cd40b5   rsp = 0x00007f527bc69d80
Found by: stack scanning
13  phantomjs + 0x18d48a8
rip = 0x0000000001cd48a9   rsp = 0x00007f527bc69d90
Found by: stack scanning
14  phantomjs + 0x18d4517
rip = 0x0000000001cd4518   rsp = 0x00007f527bc69db0
Found by: stack scanning
15  phantomjs + 0x17d69f5
rip = 0x0000000001bd69f6   rsp = 0x00007f527bc69e10
Found by: stack scanning
16  phantomjs + 0x17d98c1
rip = 0x0000000001bd98c2   rsp = 0x00007f527bc69e60
Found by: stack scanning
17  libpthread-2.15.so + 0x7e99
rip = 0x00007f527dcbee9a   rsp = 0x00007f527bc69eb0
Found by: stack scanning
Loaded modules:
0x00400000 - 0x026e3fff  phantomjs  ???  (main)
0x7f527c66c000 - 0x7f527c8c8fff  libssl.so.1.0.0  ???
0x7f527c8ca000 - 0x7f527cca0fff  libcrypto.so.1.0.0  ???
0x7f527cca5000 - 0x7f527cecefff  libexpat.so.1.5.2  ???
0x7f527cecf000 - 0x7f527d0e5fff  libz.so.<IP_ADDRESS>  ???
0x7f527d0e6000 - 0x7f527d49ffff  libc-2.15.so  ???
0x7f527d4a5000 - 0x7f527d6bafff  libgcc_s.so.1  ???
0x7f527d6bb000 - 0x7f527d9b6fff  libm-2.15.so  ???
0x7f527d9b7000 - 0x7f527dca1fff  libstdc++.so.6.0.16  ???
0x7f527dcb7000 - 0x7f527decffff  libpthread-2.15.so  ???
0x7f527ded4000 - 0x7f527e0dbfff  librt-2.15.so  ???
0x7f527e0dc000 - 0x7f527e2dffff  libdl-2.15.so  ???
0x7f527e2e0000 - 0x7f527e515fff  libfontconfig.so.1.4.4  ???
0x7f527e516000 - 0x7f527e7b1fff  libfreetype.so.6.8.0  ???
0x7f527e7b2000 - 0x7f527e7d3fff  ld-2.15.so  ???
0x7f527e9ac000 - 0x7f527e9b4fff  945677eb7aeaf62f1d50efc3fb3ec7d8-le64.cache-3  ???
0x7f527e9c4000 - 0x7f527e9ccfff  6d41288fd70b0be22e8c3a91e032eec0-le64.cache-3  ???
0x7f527e9cd000 - 0x7f527e9d1fff  3047814df9a2f067bd2d96a2b9c36e5a-le64.cache-3  ???
0x7fff164e9000 - 0x7fff164eafff  linux-gate.so  ???
I can't see where the problem is but I hope you will.
Grég

Please upgrade to PhantomJS 2.0. 1.9.x is no longer supported, and known to have many crasher bugs that are fixed in 2.0.


Display as Set Top Box

Display as Set Top Box, not TV.

I'm not aware of homekit support device types of set top box

this is updated that for the input


doc: Add Dragino LHT52

Summary

Add documentation for onboarding the Dragino LHT52. #1238
Screenshots

Changes

...
...

Notes for Reviewers

@KrishnaIyer / @nejraselimovic
Checklist

[x] Scope: The referenced issue is addressed, there are no unrelated changes.
[x] Run Locally: Verified that the docs build using make server, posted screenshots, verified external links. Test with HUGO_PARAMS_SEARCH_ENABLED=true if style changes will affect the search bar.
[ ] New Features Marked: Documentation for new features is marked using the new-in-version shortcode, according to the guidelines in CONTRIBUTING.
[x] Style Guidelines: Documentation obeys style guidelines in CONTRIBUTING.
[x] Commits: Commit messages follow guidelines in CONTRIBUTING, there are no fixup commits left.

Condensed the Device Repository and Manual step together and applied the word reformat feedback.


Not working the click event whith "handle".

Not working the click event on handle.
$('container').draggable({handle:'container>handler'}); $('handler').on('click',function(){console.log('Click');});
How to fix it?

Sorry, but this is currently not possible.


Changing the formatting in the dump comppand so that it can handle dynamic vectors.

Fixing the fact that the property/atoms compute should be a vector of undefined length and not an array.
Fixes #114

Thanks @sphuber for the review, I appreciate that you take the time. I just think that it is always good to have another pair of eyes, easy to miss things when it is only one person that looks at things :smiley:


No warning when superclass returns void and subclass doesn't

https://dartpad.dartlang.org/7e91971bf9428a4e7aa389cf373bb750
class A {
	void doesNotError() {}
  int doesError() => 1;
}

class B extends A {
  @override
  int doesNotError() => 1;

  @override
  void doesError() {}
}

Both of these should be errors, but only doesError causes an error.  It's a warning in non-strong mode and a (slightly different) error in strong_mode, but regardless, the doesNotError should also produce an error in my opinion?

The doesNotError is a valid Dart 1 and strong-mode override. You are allowed to specialize a void function to return something. It's a "safe" override in that nobody calling A.doesNotError will ever look at the returned value, so it can't be wrong.

The @override annotation is a red herring. It doesn't change the semantics of what a valid override is. I've changed the title to reflect that.

How I got into this was that was using @override in all of my (sprawling number of) subclass overrides to make sure to catch cases where I changed the signature of the superclass method (or mis-typed one of the subclass ones).  That seems to be it's intended use?
https://api.dartlang.org/stable/1.21.1/dart-core/override-constant.html
But unclear if I'm using that correct either. :)
I was surprised when I changed the type of one of my overrides that it didn't error (hence this bug), yet when I changed the type in a different way it did.
If this is an intentional feature of the language, that's fine.  I guess I expected the language (and/or @override) to cause stricter behavior here.

That seems to be @overrides's intended use?

Actually, no. The language defines the semantics of what is and is not a valid override. The annotation is used to declare that a method is being defined because it is overriding a method in a supertype and that a diagnostic should be produced if that ceases to be the case (presumably because the overridden method was removed).

I think the current behavior is working as intended.
There is no warning in this case because you still override the superclass method correctly.
If you had overridden it incorrectly, you would have gotten a warning from the type system.
If you didn't override anything any more, you would have gotten a warning from the analyzer because of @override.
From both perspectives, your code was flawless, so "no warning" is correct.


Documentation for Flyway Python Migration

Which version and edition of Flyway are you using?
8.5.13
If this is not the latest version, can you reproduce the issue with the latest one as well? (Many bugs are fixed in newer releases and upgrading will often resolve the issue)
Not issue, checking for the example of Flyway Python Migration Example as unable to find it in Documentation
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Gradle Plugin
Which database are you using? (Type & version)
Postgres
Which operating system are you using?
Linux
What did you do? (Please include the content causing the issue, any relevant configuration settings, the SQL statement(s) that failed (if any), and the command you ran)
NA
What did you expect to see?
NA
What did you see instead?
NA

Hi @akhilambati ,
Python Migration is considered to be part of Script migrations, which is documented in this page: https://documentation.red-gate.com/fd/migrations-184127470.html.

Hey @JasonLuo-Redgate , thanks I have gone through this page already, but i don't find the example similar to Java Migration example we had..

Hi @JasonLuo-Redgate any update?

no worries.., tyvm


How to use it？

I am sorry，i am a newest ruster。
when i use you code,
i got below error
cargo run
feature tcp is required to run this example
can you help me !
appreciate you!!!!!!!!!!!!!!!!
ps: I am really not understand how to use rust features.

Please see https://doc.rust-lang.org/cargo/reference/features.html#usage-in-end-products

thank you so much


fix(ctag): better handle line number for tag entries

Attempts to fix the problems highlighted in this issue, notably:

the line number of tag entries with no regex was not properly extracted, and thus were unusable
tag entries with both a regex and a line number did not take advantage of the line number, thus were susceptible to collisions on the regex
the default previewer for tags could not make use of the line number of an entry

Left a review, btw, I recall you mentioned you're using the bat previewer yet you're fixing the "builtin" previewer, is the bat previewer working as expected?

I'm sorry, I was wrong when I answered about the previewer some hours ago, it was not the bat one , but the default tags previewer. I edited my answer in hopes you wouldn't have seen it yet, but a bit too late it seems.

the bat previewer works as expected with lines.
the builtin previewer works as expected with lines.
out of those three, only the default tags previewer didn't handle lines as expected

Merged, ty @dvquentincarrel for your conribution.
I took the liberty of fixing the fixup! I assume you wanted :-)

Thank you for your time @ibhagwan!

@dvquentincarrel just recalled the old issue where the ctags line number support was introduced: https://github.com/ibhagwan/fzf-lua/issues/355#issuecomment-1058830787.
Tested with the below ctags command, works as expected:
ctags -R --c++-kinds=+p --fields=+iaS --extras=+q --excmd=combine

You tested with or without the changes added by this PR?

You mean that it works without the changes added by this PR?

I mean that it doesnt regress due to this PR.
In any event I just improved the support for --excmd=combine by adding tag highlighting: https://github.com/ibhagwan/fzf-lua/commit/9958d6a25d50f42b920664589a90704652169e5e.


Use module paths instead of pytest marks to select tests in tox.ini

Issue

Integration tests use pytest marks to select a Python module to test
Solution

Select the Python module directly in tox.ini
Context

Testing

Release Notes

Use module paths instead of pytest marks to select tests in tox.ini

Thanks for updating. I dont think that there is anything lacking in the information you provided. Also, it seems a bit too much for self-explanatory PRs, but I think that it's still good practice. Thanks!

I do not mind to merge this, but can you please explain which issue we are fixing there? Using marks is not the best solution, maybe, but currently identical between all Git repos. PR description contains "Integration tests use pytest marks to select a Python module to test" which is not an issue you are solving, but the way your have choosen. Tnx!

OK, I think I got it, Just a decreasing amount of marks to mark stable/flaky tests in the upcoming https://github.com/canonical/mysql-operator/pull/88/commits/b7502eb8e0116e16bcbdb80b441b35b2a6d25cfc
LGTM. Tnx!


chore: clean up deps and upgrade node version

Overview
This PR does the following:

removes a few dev deps, namely

css related classes that seemed to have been previously used in storybook
everything related to publishing and semantic release (instead of that, I created an issue for us to look into that)

this included removing an action from Github action

commit lint for conventional commits

upgrades the node version used
reverts adding everything to the stage during the pre-commit hook
deleted the changelog that was being automatically generated

Excluded from the PR
There are more things we could look into simplifying that I didn't include here due to my own time constraints:

Both rollup and webpack are being referenced. It seems that storybook requires webpack. We could look into using only one bundler that works for both things. I've created an issue for that.
Initially I deleted the whole set up around the templates with hygen, but then I saw commits that indicated to me they were being used.
I also didn't deleted the Examples.tsx but it seems that we could. Why do we need both that and the templates? But I didn't want to create conflicts in other PRs so I left it as is.

Overall changes LGTM, though would love to hear from @Dhaiwat10.

@crondinini you can safely remove the Example component/folder. It's of no use to us now.

I've addressed all comments so I'll go ahead and merge this. :)
Btw, I've enabled actions to run on pull requests so we can avoid getting to a bad merge stage.


Force disabling of vfork in multiproc testing

Related to https://github.com/numba/numba/issues/8873

BFID numba_pynext_cpu_yaml_14 passed. So disabling vfork also make the segfault go away.

we won't need this


Cannot be used in weex projects

vue.runtime.esm.js?12a6:619 [Vue warn]: Error in mounted hook: "TypeError: this.$refs.video.setAttribute is not a function"
vue.runtime.esm.js?12a6:619[Vue warn]: Error in mounted hook: "TypeError: The element or ID supplied is not valid. (videojs)"
help!thanks

The original vue-video-player package is no longer maintained, please upgrade to @videojs-player/vue.


InvalidModelStateResponseFactory does not seem to be working

Version: .Net Core 2.1 RTW, Visual Studio 15.7.2
Even though I added a custom InvalidModelStateResponseFactory like this:

services.Configure<ApiBehaviorOptions>(options =>
      {
        options.InvalidModelStateResponseFactory = context =>
        {
          var problemDetails = new ValidationProblemDetails(context.ModelState)
          {
            Type = "https://asp.net/core",
            Title = "",
            Status = StatusCodes.Status400BadRequest,
            Detail = "Please refer to the errors property for additional details.",
            Instance = context.HttpContext.Request.Path
          };

          return new BadRequestObjectResult(problemDetails)
          {
            ContentTypes = { "application/problem+json", "application/problem+xml" }
          };
        };
      });

The response is a normal BadRequest.
You can reproduce it like this:

Create new .Net Core 2.1, Web API Application (no HTTPS support or docker support)
Add the code above to the startup.cs class
Start debugging
Enter the following url:
http://localhost:<port>/api/values/9999999999999999999999999999999999

The respons is this:
{"id":["The value '9999999999999999999999999999999999' is not valid."]}
I was hoping to get a ValidationProblemDetails response.
Looking through the .Net Core 2.1 source code, I cannot find any test that tests this behavior. Has this been overlooked?

@kichalla, can you please look into this? Thanks!

@Eneuman Are you having the above code block before the call to AddMvc? I believe what you are seeing is the order in which Configure<ApiBehaviorOptions> is executed (or in general any Configure<Some-Options>. If you have a list of Configure<ApiBehaviorOptions>, they are executed in that order and the options instance is mutated as it passes through each of them. So to fix your issue, you could add your code block after the call to AddMvc.
@HaoK Any ideas here on how to avoid stomping onto a user defined configure options? is the solution for users to use PostConfigure<>?

Yeah its most likely ordering, PostConfigure is effectively the same as moving it to the end of all the configures.   Im adding the options Before the call to AddMvc. I'm gonna rearrange the code and see if it works. Posting findings here when done. Do you want me to close this issue if it works?

Posting findings here when done. Do you want me to close this issue if it works?

Yes, please. Thanks!

@Eneuman Have you tried your code with ReturnHttpNotAcceptable = true? I'm getting 406Not Acceptable responses when I use InvalidModelStateResponseFactory as you have done.

I'm trying to get InvalidModelStateResponseFactory working nicely with Swagger, ReturnHttpNotAcceptable = true and custom media types:
services.AddMvcOptions(
    options =>
    {
        var jsonInputFormatterMediaTypes = options
            .InputFormatters
            .OfType<JsonInputFormatter>()
            .First()
            .SupportedMediaTypes;
        var jsonOutputFormatterMediaTypes = options
            .OutputFormatters
            .OfType<JsonOutputFormatter>()
            .First()
            .SupportedMediaTypes;
        jsonInputFormatterMediaTypes.Insert(0, "application/vnd.restful+json");
        jsonOutputFormatterMediaTypes.Insert(0, "application/vnd.restful+json");
        jsonOutputFormatterMediaTypes.Add("application/problem+json");

        options.ReturnHttpNotAcceptable = true;
});

@Eneuman With your code, I keep getting 406 Not Acceptable responses when attempting to return a problem details response. Setting ReturnHttpNotAcceptable to false fixes the problem but that's not what I want. Swagger is sending an Accept HTTP header with a value of application/json, so in theory, everything should just work.


Properly check mmap error code

Given that subscribing to you rmailing list does not work I'll send the pull request anyway, despite the warning that I shouldn't.
The check here in the code is wrong. mmap never returns zero, on failure it returns MAP_FAILED (or -1).
There are 2 more cases in the code, however it's less clear to me how to fix them.
In
libstb/create-container.c
there is an mmap call that doesn't seem to check the return value at all.
In extract-gcov.c there's this:
	addr = mmap(NULL, sb.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
	assert(addr != NULL);

This is doubly wrong, as asserts shouldn't be used for error checking.

Given that subscribing to you rmailing list does not work I'll send the pull request anyway, despite the warning that I shouldn't.

Weird. I'll ask our sysadmin to have a look.
You can post directly to the list without being subscribed. The message will go into a moderation queue at first, but I always whitelist people sending actual patches.

The check here in the code is wrong. mmap never returns zero, on failure it returns MAP_FAILED (or -1).
There are 2 more cases in the code, however it's less clear to me how to fix them.
In
libstb/create-container.c
there is an mmap call that doesn't seem to check the return value at all.
In extract-gcov.c there's this:
	addr = mmap(NULL, sb.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
	assert(addr != NULL);

This is doubly wrong, as asserts shouldn't be used for error checking.

Suppose. extract-gcov and print-container are random helper applications which is probably why no one bothered fixing them. Thanks for looking at this stuff.

I folded this into #256 with a fixed up DCO.


update puppeteered docker image build dependency to build of daemon image

Also refactored the DockerArtifact::ReleaseSpec type's build_rosetta property to more closely match its purpose as a rosetta build override + usage in absence of deploy env.

Testing: Buildkite CI
Checklist:

[ ] Document code purpose, how to use it

Mention expected invariants, implicit constraints

[ ] Tests were added for the new behavior

Document test purpose, significance of failures
Test names should reflect their purpose

[ ] All tests pass (CI will check this if you didn't)
[ ] Serialized types are in stable-versioned modules
[ ] Does this close issues? List them:

While you're in here addressing issues with the refactor, can you set build_rosetta=false for now in buildkite/src/Jobs/Release/CodaArtifact.dhall ?

For sure - refactored to represent its usage as an override (for the CODA_BUILD_ROSETTA var specified in a deploy env).


Issue with warnings appearing to redraw micro

Hey there! Super excited for this project, I've been looking forward to micro getting LSP support.
Anyways, I was testing the plugin with JavaScript, and I noticed that every time I start typing and there's a warning, it looks like micro re-draws and it's been bugging me. Here's a gif of it happening: https://ibb.co/h770MqB
Is this intended behavior? If so, is there a way to disable it?
Thanks in advance,
ferretcode

Hi! Yes I see what you mean. While typing, the plugin sends the changed contents of the document over to the language server to keep him informed. The language server in turn replies with some warnings that the code won't compile (because it's unfinished). Do you think it would work for you if the warnings are not added while you are working in the line the warning is for?

@FerretCode : I added a PR to address the issue. Can you checkout the branch feature/20-skip-inprogress-messages and see if this works for you?

@AndCake Sounds good, thank you.


Altcoin support

I'm trying to generate HD wallet for an altcoin. Could it be done in this library?
I found altcoin version mapping from https://github.com/libbitcoin/libbitcoin/wiki/Altcoin-Version-Mappings
or maybe I can just change some parameter in the source to do this.
Regards,
Utharn

Yes, take a look at how I support Litecoin https://github.com/MetacoSA/NBitcoin.Litecoin

I'm trying to port to Digibyte. Could you please guide me for Litecoin where you could obtain lot of information out there.  Actually, my first step is trying to generate HD wallet.

NBitcoin is only a framework there is a SPVWallet class, but it has not been tested a lot you can try to use it.
Please read all of that to get more info on how to use NBitcoin for HD wallets:
https://github.com/ProgrammingBlockchain/ProgrammingBlockchain/
https://github.com/NicolasDorier/NBitcoin.SPVSample
https://github.com/MetacoSA/NBitcoin.Litecoin
There is no step by step way of doing it though, you need to learn how to do it.

Thank a lots.

@NicolasDorier when I use LiteCoin in the following code
`NBitcoin.LiteCoin.Networks.Register();
NodeSettings nodeSettings = NodeSettings.FromArguments(args, "lite-coin", NBitcoin.LiteCoin.Networks.Testnet);
var node = new FullNodeBuilder()
.UseNodeSettings(nodeSettings)
.UseConsensus()
.UseBlockStore()
.UseMempool()
.AddMining()
.UseWallet()
.AddRPC()
.Build();
        node.Run();`

I receive null reference exception in BlockStoreLoop class on line 120.
`public async Task InitializeAsync()
{
this.logger.LogTrace("()");
        if (this.storeSettings.ReIndex)
            throw new NotImplementedException();

        this.StoreTip = this.Chain.GetBlock(this.BlockRepository.BlockHash);

        if (this.StoreTip == null)
        {
            var blockStoreResetList = new List<uint256>();

120:                Block resetBlock = await this.BlockRepository.GetAsync(this.BlockRepository.BlockHash);
uint256 resetBlockHash = resetBlock.GetHash();`
Here resetBlock is null.
What's wrong in my code?

The code below is from stratis full node. You should open an issue there. From what you sent me, the code seems correct.
Please link the issue there to this issue, the underlying problem might still come from NBitcoin.

Ah an open a new issue on NBitcoin, this is a different issue.

Woohoo!  Thank you for making this, and this project.  I am currently investigating this space, and am looking to make something like CryptoKitties, but through Coinbase's ecommerce solution instead.  This supports BTC, ETH, BCH, and LTC.  Your altcoin solution here seems to address 3 out of 4 of these, which puts me in the right direction.
Some questions here:

Are there plans to support ETH?  Any recommendations here if not?
CryptoKitties uses ETH exclusively and its asset tracking is done through ETH's blockchain, obviously.  If I am supporting multiple blockchains as above, what is the recommended way of tracking assets?  Does each blockchain have its own tracking?  Or do I use one as the official source?  If I use one then it would seem I am promoting one over the other which is something I would like to avoid if possible.

Any thoughts around this would be greatly appreciated.  Thank you in advance. 👍


add resource limiter

Add resource limiter module
Description
This PR adds a resource limiter module that limits the number of concurrent executions of a function based on available resources using Redis.
Changes

Added resource_limiter.py which includes the resources_limit decorator and helper functions.
Implemented Redis-based resource counting and queuing mechanisms.
Added a simulation/test script within the module.

How to test

Set up a Redis server and configure the REDIS_HOST, REDIS_PORT, and REDIS_DB environment variables.
Run the script and follow the prompts to test the resource limiter.

Notes

The module uses redis libraries, ensure they are installed in your environment.

TODO
Add a timeout for the function call.
Checklist
Please check the following items before code is ready to be reviewed.

[X]  Code has passed all tests
[X]  Docstrings have been added/updated in Google Style
[X]  Documentation has been updated
[X]  Code is ready for review

Why do we need to support redis here?


download(to:, completionHandler:) doesn't work.

Hi all,
I'm faced with the issue, that download method just creates an empty file, but actually no content downloads.
Tested on my mac, with XCode 11, SwiftyRequest v3.0.0.
The problem is that DownloadDelegate methods doesn't fire as expected. Currently, it only creates an empty file by this method:
func didSendRequestHead(task: HTTPClient.Task<Response>, _ head: HTTPRequestHead)

and this method never fires:
func didReceivePart(task: HTTPClient.Task<Response>, _ buffer: ByteBuffer) -> EventLoopFuture<Void>

Also, seems that testFileDownload test is false-positive.
Completion handler check only response status code, but not written data length or something else:
case .success(let result):
                XCTAssertEqual(result.status.code, 200)

So, what happens here on my local machine:

it is trying to download file with JSON
during the download it creates an empty file
checks status code (200) and pass the test
removes an empty file

Modified test code to reproduce the issue:
func testFileDownload() {
        let expectation = self.expectation(description: "download file SwiftyRequest test")

        let url = "https://raw.githubusercontent.com/IBM-Swift/SwiftyRequest/c7cfc669a5872831e816d9f9c6fec06bc638222b/Tests/SwiftyRequestTests/test_file.json"

        let request = RestRequest(url: url)

        // 1. change destination URL. (file should be created at root of the project dir)
        let bundleURL = URL(fileURLWithPath: "./")
        let destinationURL = bundleURL.appendingPathComponent("test_file.json")

        request.download(to: destinationURL) { response in
            switch response {
            case .success(let result):
                XCTAssertEqual(result.status.code, 200)
            case .failure(let error):
                XCTFail("Failed download with error: \(error)")
            }
            // 2. print destination URL
            print(destinationURL)
            // 3. Don't remove the file in order to check it content
            expectation.fulfill()
        }

        waitForExpectations(timeout: 10)
    }

@harish1992 Could you take a look at this?

Any updates?


Question about “locals exceed maximum”

carton test fails with the following:
error: failed to run `[...]/.build/wasm32-unknown-wasi/debug/[Package]Tests.wasm`
│   1: module instantiation failed (engine: jit, compiler: cranelift)
╰─> 2: Validation error: locals exceed maximum (at offset 1442120)

I don’t understand what that means or how to go about finding the underlying problem.

Thanks! This is one of the errors we've been chasing for some time, but couldn't find an isolated reproducible test case. Do you have one to share here by any chance? Either an isolated file compilable with swiftc or a SwiftPM project would be much appreciated!

Thanks! This is one of the errors we've been chasing for some time, but couldn't find an isolated reproducible test case. Do you have one to share here by any chance? Either an isolated file compilable with swiftc or a SwiftPM project would be much appreciated!

Yes, I managed to narrow the problem down to a particular long dictionary literal. Let me clean‐up some of the mess left over from my experiments, and then I’ll post a link.

Yes, I managed to narrow the problem down to a particular long dictionary literal. Let me clean‐up some of the mess left over from my experiments, and then I’ll post a link.

I don't think it's related to carton directly, so I'm moving it to the toolchain repo in the meantime...

I don't think it's related to carton directly, so I'm moving it to the toolchain repo in the meantime...


Remove plan and edpm_stack_name

TASK [osp.edpm.edpm_hosts_entries : Prepare new /etc/hosts] ********************
fatal: [edpm-compute-0]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'plan' is undefined. 'plan' is undefined\n\nThe error appears to be in '/usr/share/ansible/collections/ansible_collections/osp/edpm/roles/edpm_hosts_entries/tasks/main.yml': line 50, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Prepare new /etc/hosts\n  ^ here\n"}

https://github.com/openstack-k8s-operators/dataplane-operator/pull/116#discussion_r1145298940

recheck


Bug with the switchNetwork options dropdown

Describe the bug
The switchNetwork function in the App.jsx uses e.target.value, however because the html element is a span tag, it creates an error as you can't access value of span tag, Need to switch to e.target.innerText

fixed in commit 3f109d6 :D


Which adress should i use to port forward?

Hello, first of all thanks for making this program. If it wasn't for this I would have no clue what to do.
Some context:
When I'm at home I use remote desktop connection on my laptop so I can control my desktop from my bed with my laptop. This works only on lan ofcourse and therefore I want to use wireguard to make it possible to use remote desktop connection from a different wifi connection than my home one. I use windows 10 on both my laptop and desktop pc
So what should I put in the fields for begin point and end point? Also is the server ip address different than my deskoppc address or are they the same? I know how to find my desktop pc and laptop address but I don't know how to find the server one nor I know which addresses I should be inputting in the fields.

Hi @koeliga,
This is a great use case, and I'd be happy to help you set it up.
The WireGuard server should be running on your desktop machine on port 51820 (or whatever you put in Server Config > Listen Port). You could map that to a different public (WAN) port, but there's not really a big reason to do that. Therefore, you can use the same value (51820) for Local start, Local end, External begin, and External end port. For Local IP, use the local IP address of your desktop machine.
Then create a client, export the config file, and load it into the WireGuard desktop app on your laptop. I won't go into detail, but feel free to ask any questions.
Once the tunnel is connected on the laptop, you should be able to RDP to your desktop's local IP address like you would if you were on the same network, assuming your Client Config > Allowed IPs is <IP_ADDRESS>/0. Note that this will route all web traffic from your laptop through your desktop while the tunnel is active.
Hope that helps!

Sorry for the late reply. I wanted to let you know that I got it to work with your help. So thank you!


Fix #58: Do not call filepath funcs for WASM

Simple workaround to make this library run in WASM. Without this fix, it will fail during init().

@manuschillerdev
Yes. Based on the discussion on #58, the library itself is sane. However, without this PR, you cannot use relative schema references in WASM. You can use mem://schemaName though.
In my case, the WASM functions work with strings. On the Javascript side, I convert JSON objects to a string, pass it to WASM function, which then does its thing.

The sample working code on wasm is available in issue 58


bug:  error during initial installation

Did you check docs and existing issues?

[X] I have read all the lazy.nvim docs
[X] I have searched the existing issues of lazy.nvim
[X] I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)
NVIM v0.8.3
Operating system/version
Void linux 6.1.21_1
Describe the bug
I'm getting the following error message when trying to re-initiate my configuration from a clean state

Installing lazy and corresponding plugins, please wait...
Error detected while processing /home/amlan/.config/nvim/init.lua:
Error executing vim.schedule lua callback: .../.local/share/nvim/lazy/lazy.nvim/lua/lazy/view/init.lua:144: Vim:E5108: Error executing lua invalid value (nil) at index 12 in table for 'concat'
stack traceback:
[builtin#92]: at 0x55f9b0e57270
[C]: in function 'redraw'
.../.local/share/nvim/lazy/lazy.nvim/lua/lazy/view/init.lua:144: in function 'fn'
...amlan/.local/share/nvim/lazy/lazy.nvim/lua/lazy/util.lua:72: in function 'wrapped'
...amlan/.local/share/nvim/lazy/lazy.nvim/lua/lazy/util.lua:76: in function 'update'
.../.local/share/nvim/lazy/lazy.nvim/lua/lazy/view/init.lua:42: in function 'show'
...local/share/nvim/lazy/lazy.nvim/lua/lazy/manage/init.lua:37: in function <...local/share/nvim/lazy/lazy.nvim/lua/lazy/manage/init.lua:36>
[C]: in function 'wait'
...cal/share/nvim/lazy/lazy.nvim/lua/lazy/manage/runner.lua:153: in function 'wait'
...local/share/nvim/lazy/lazy.nvim/lua/lazy/manage/init.lua:60: in function 'run'
...local/share/nvim/lazy/lazy.nvim/lua/lazy/manage/init.lua:76: in function 'install'
...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:72: in function 'install_missing'
...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:42: in function 'setup'
...amlan/.local/share/nvim/lazy/lazy.nvim/lua/lazy/init.lua:75: in function 'setup'
/home/amlan/.config/nvim/lua/lazyconfig.lua:15: in main chunk
[C]: in function 'require'
/home/amlan/.config/nvim/init.lua:2: in main chunk
stack traceback:
[C]: in function 'redraw'
.../.local/share/nvim/lazy/lazy.nvim/lua/lazy/view/init.lua:144: in function 'fn'
...amlan/.local/share/nvim/lazy/lazy.nvim/lua/lazy/util.lua:72: in function 'wrapped'
...amlan/.local/share/nvim/lazy/lazy.nvim/lua/lazy/util.lua:76: in function 'update'
.../.local/share/nvim/lazy/lazy.nvim/lua/lazy/view/init.lua:42: in function 'show'
...local/share/nvim/lazy/lazy.nvim/lua/lazy/manage/init.lua:37: in function <...local/share/nvim/lazy/lazy.nvim/lua/lazy/manage/init.lua:36>
[C]: in function 'wait'
...cal/share/nvim/lazy/lazy.nvim/lua/lazy/manage/runner.lua:153: in function 'wait'
...local/share/nvim/lazy/lazy.nvim/lua/lazy/manage/init.lua:60: in function 'run'
...local/share/nvim/lazy/lazy.nvim/lua/lazy/manage/init.lua:76: in function 'install'
...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:72: in function 'install_missing'
...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:42: in function 'setup'
...amlan/.local/share/nvim/lazy/lazy.nvim/lua/lazy/init.lua:75: in function 'setup'
/home/amlan/.config/nvim/lua/lazyconfig.lua:15: in main chunk
[C]: in function 'require'
/home/amlan/.config/nvim/init.lua:2: in main chunk

However, it only occurs during first installation and everything seems to work fine afterwards.
The way I'm setting up lazy is according to the documentation and is quite simple
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.notify("Installing lazy and corresponding plugins, please wait...", vim.log.levels.INFO)
  vim.fn.system({
    "git",
    "clone",
    "--filter=blob:none",
    "--branch=stable",
    "https://github.com/folke/lazy.nvim.git",
    lazypath,
  })
end
vim.opt.runtimepath:prepend(lazypath)

require("lazy").setup("plugin", {
  defaults = { lazy = true, version = false },
  lockfile = vim.fn.stdpath("config") .. "/lazylock.json",
  checker = {
    enabled = false,
    concurrency = nil,
    notify = false,
  },
  change_detection = {
    enabled = true,
    notify = true,
  },
  performance = {
    rtp = {
      reset = true,
    },
  },
  ui = {
    icons = {
      loaded = " ",
      not_loaded = " ",
      list = {
        "● ",
        "➜ ",
        "➜ ",
        "➜ ",
      },
    },
    wrap = false,
    size = { width = 0.6, height = 0.8 },
    border = "single",
    throttle = 20,
  },
  install = { colorscheme = { "lunaperche" } },
})

Steps To Reproduce

clear the default standard locations for data and cache

rm -rv $HOME/.local/share/nvim $HOME/.cache/nvim

invoke neovim to re-initiate user config

nvim

Expected Behavior
lazy completing the bootstrapping process without any errors

is there anything inside lua/plugin?
https://github.com/folke/lazy.nvim#-structuring-your-plugins

is there anything inside lua/plugin?
https://github.com/folke/lazy.nvim#-structuring-your-plugins

there is https://github.com/amlanjlahkar/nvim/tree/main/lua%2Fplugin

I just tried your config and it seems broken to me

The error you posted is a vim.cmd.redraw() call that fails for some weird reason. Never seen that error before and I don't get it eitehr with your config.
Closing

That's unfortunate but good to know that it's not a problen with lazy itself.
And yeah, nvim-treesitter was also throwing errors during installation. I'm not sure why but changing the build prop to :TSUpdate solved it although it was working fine until some days ago


Atm Machine

Have you read the Contributing Guidelines ?
Yes
Description
I thought to take a realistic topic so
that I can implement it in a better and more understandable way. ATM is to help people in managing bank activities without
visiting bank and in a safe, secured manner. With this in mind, I
chose to make a project on ATMs with works similar to real-world ATMs.
Fixes #510

Checklist

[x] I've read the contribution guidelines.
[x] I've checked the issue list before deciding what to submit.
[x] I've edited the README.md and link to my code.

Related Issues or Pull Requests
Issue number #510

@Kushal997-das can you please review this PR, and merge it upon finding it correct.

@AnIkeT126
Just change the file location like this Desktop Application/Basic/Python/ATM Machine/ATM.py

@Kushal997-das it's already in the format u requested

@Kushal997-das please review this PR, as I already made the submission in the format suggested, so please merge it.

@Kushal997-das please review this PR, as I already made the submission in the format suggested, so please merge it.

This is not in the format . Do the changes .

@AnIkeT126
Just change the file location like this Desktop Application/Basic/Python/ATM Machine/ATM.py

Here i mentioned basic see carefully.

@Kushal997-das I am closing this PR, I have updated the changes in #572


the terminal showed that "AttributedError:'module'object has no attribute 'no_grad'.

My torch version is 0.3.1. When I  used the author's pre-trained model  showed in the quick start demo, I faced an error that the terminal showed that "AttributedError:'module'object has no attribute 'no_grad'.Could you give me some advice?My email address is<EMAIL_ADDRESS>
Thanks！

Did you solve it? I met the same question.


Add support for __OW_IGNORE_CERT env var

fixes #101

Codecov Report

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

@@           Coverage Diff           @@
##           master     #110   +/-   ##
=======================================
  Coverage   99.17%   99.17%
=======================================
  Files          14       14
  Lines         364      364
=======================================
  Hits          361      361
  Misses          3        3

Impacted Files
Coverage Δ

lib/client.js
98.59% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

I wouldn’t say this fixes #101 since this new value wont be set in any openwhisk deployment.

@rabbah - I think that aspect of it we should track as a separate issue. Should I open one in the openwhisk repo? Not really clear the appropriate place for that discussion...

Yes that’s where I’d suggest. I just don’t see the value of this pr without the prerequisite. In fact I think it’ll be confusing: If you use it for local testing of node code (by setting the env var explicitly)  you’ll have a divergence of behavior vs a managed installation and should use the existing ignore cert parameter instead.

It at least gives you the option and is consistent with the others. It will help running actions locally that invoke action in a test deployment. But it is certainly less useful without the other...

Can someone review please?
fyi - @rabbah

bump

@ScottChapman Hey Scott, I'd like to merge this but there's now conflicts in the files? Can you re-base and re-push?
Also, can you remove the package.json re-formatting?

@jthomas - Look better?


⚠ Processors has degraded performance

In 4bb4e7c, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 152 ms

Resolved: Processors performance has improved in ed64785.


Hide PyGame load message in console

See this for implementation details:
https://stackoverflow.com/a/55769463

Resolved in commit #d6e1a1390402ed8096a923c39ec97acdcb7bd03f.


change deployment node instances to *string

Fix for https://github.com/goadesign/model/issues/333
I think I found all instances of instances and resolved all errors when make test runs 😇
Please be patient with me, I'm no professional programmer.

This looks really good! Left just one small change request - thank you!

Thanks!

Would you be so kind?

Thank you!


compiler.watchMode should be true when running webpack-dev-server

Bug report

What is the current behavior?
When using a plugin while running webpack-dev-server, compiler.watchMode is false, yet the watchRun and watchClose hooks are active.
If the current behavior is a bug, please provide the steps to reproduce.

create a WebpackPluginInstance that gets passed a Compiler in its WebpackPluginInstance#apply(compiler: Compiler) method.
run webpack serve
the compiler.watchMode is false, yet the watchRun and watchClose hooks are active.

What is the expected behavior?

create a WebpackPluginInstance that gets passed a Compiler in its WebpackPluginInstance#apply(compiler: Compiler) method.
run webpack serve
the compiler.watchMode should be true.

Other relevant information:
webpack version: 5.70
Node.js version: 16.13.0

Expected, watchMode changed only when you webpack starts watch (https://github.com/webpack/webpack/blob/293e677b355da0d5bc4ddfc97d2afec114912711/lib/Compiler.js#L415), if you put code in apply watchMode will be false, because webpack initializates plugins and nothing more, you need to check it in hook or override from hook.

Thanks @alexander-akait!
I didn't think it was expected, since all I could read in the documentation about it was that the "watch mode" (albeit indeed maybe not the watchMode property) brings the watchRun and watchClose hooks to life...

The Compiler supports watching which monitors the file system and recompiles as files change. When in watch mode, the compiler will emit the additional events such as watchRun, watchClose, and invalid. This is typically used in development, usually under the hood of tools like webpack-dev-server, so that the developer doesn't need to re-compile manually every time. Watch mode can also be entered via the CLI.

— from https://webpack.js.org/api/compiler-hooks/#watching
I still think it's odd if not inconsistent, but I understand what you're saying, thank you!
Shall I then simply test for compiler.watchMode || process.env.WEBPACK_SERVE === 'true' instead of just compiler.watchMode?
Thanks again for your swift reply!

Shall I then simply test for compiler.watchMode || process.env.WEBPACK_SERVE === 'true' instead of just compiler.watchMode?

process.env.WEBPACK_SERVE is not good idea, but yes, it will work.
Why you need it in apply? Maybe better to rewrite on hooks? In most cases it says you should refactor code, rely on it it really not good, you should run logic in hooks, logic should be agnostic to watch or simple build

Thanks @alexander-akait!
Indeed, maybe I'm doing something wrong...
I'm trying to build a Webpack plugin that simply prints out some HTML content in PDF.
When the code is updated, HTMLWebpackPlugin compiles a new HTML document, and then my own plugin "PDFPrinterPlugin" consumes it and prints it out as a PDF document.
While developing, I use webpack serve to continuously watch-build the HTML and check that the PDF document looks similar (some HTML/CSS isn't always printed exactly as expected).
Then, we run a one-off "production" build in our CI pipeline that just generates one static HTML asset, and prints it into HTML just once.
The problematic was to have the printing service (Chromium's Puppeteer) gracefully shut down after the entire workload has been handled.
Some testing some time ago showed that afterDone would emit after every asset update, even in "watch" mode (through webpack serve, not quite webpack --watch), and that's how I came to using:
(compiler.watchMode
  ? compiler.hooks.watchClose
  : compiler.hooks.afterDone
).tap(`${PDFPrinter.PLUGIN_ID}:shutdown`, () => this.shutdown());

If I'm not approaching it the proper way, I'd very much appreciate your valuable input there!
Here's the full body of my plugin's apply method:
  public apply(compiler: Compiler): void {
    const logger = compiler.getInfrastructureLogger(PDFPrinter.PLUGIN_ID);
    logger.info('Reading contents from', this.uri);
    logger.info('Compiling PDF at', this.output);

    compiler.hooks.afterEmit.tap(`${PDFPrinter.PLUGIN_ID}:compile`, async () => {
      try {
        await this.print();
        logger.info('Successfully printed', this.output);
      } catch (trace) {
        logger.error('An error occurred while attempting to compile PDF document');
        logger.error(trace);
      }
    });

    (compiler.watchMode || process.env.WEBPACK_SERVE === 'true'
      ? compiler.hooks.watchClose
      : compiler.hooks.afterDone
    ).tap(`${PDFPrinter.PLUGIN_ID}:shutdown`, () => this.shutdown());
  }

Thanks again for following up and pointing me in the right direction!

Why not use afterDone always? webpack calls this hook for closing too https://github.com/webpack/webpack/blob/508877c91defb31db9a726f05056e26679b1ac94/lib/Watching.js#L311

The problem with using afterDone in "dev" mode is that my Puppeteer instance is shut down in that hook.
I only want to shut it down once, when I complete/cancel the watch (in "development" mode), or immediately after the first and only compilation has taken place, in "production" mode.
The afterDone hook is called every time a new compilation is triggered and finished, in watch mode... is that right?

We have reusable compiler, you can run compiler in watch, when stop and when use it as simple build and again run watch and more and more as you want.
I think you are looking this https://github.com/webpack/webpack/blob/main/lib/Compiler.js#L1218
It will be called when watch closed and when just build finished

Thank you so much, Alexander!!
The shutdown hook is indeed what I was looking for!
How come it's not documented anywhere I've looked?
For instance, https://webpack.js.org/api/compiler-hooks/ makes no mention of it.
Is it here to stay?
In any case, it works wonders for me, thanks again for your valuable insight 🙇♂

https://github.com/webpack/webpack.js.org/issues/6187


Read BlueTooth Low Energy from park areas

No idea if this will be possible. Gathering research and ideas on this issue.

https://developer.mozilla.org/en-US/docs/Web/API/Web_Bluetooth_API#browser_compatibility
https://webbluetoothcg.github.io/web-bluetooth/
https://developer.chrome.com/docs/capabilities/bluetooth

Currently not supported in iOS. Therefore this is not feasible at this time.

It may be possible to build an app to locate and map the BLE beacons in the park.
https://developer.android.com/develop/connectivity/bluetooth/ble/find-ble-devices


IntelliTrace is also in VS 2017

The IntelliTrace documentation (https://docs.microsoft.com/en-us/visualstudio/debugger/intellitrace) states that:

You can save IntelliTrace data from these sources:
An IntelliTrace session in Visual Studio 2015 Enterprise or previous versions of Visual Studio Ultimate.

IntelliTrace is also in Visual Studio 2017 Enterprise.

Thanks. Making fixes


[CWS] Make current bpf_printk's optional

What does this PR do?
Put the actual bpf_printks used in CWS under compilation flag.

Motivation
Enabling debug causes way too many messages.

Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

/merge

/merge


[Chronicles of Darkness Official] Minor bugs

Palanthis wrote this on the forums:

But, some little bugs remain from my experience (Nothing game breaking, but a bit annoying) :
1. The attack macro does not roll dice every time. Approximately every other attack roll (sometimes 2 in a row) lists the dice and mods, but does not roll said dice.
2. The button for deleting a custom roll section on page 2 doesn't seem to work when you try to edit the sections, because the dice roller button of the custom roll is activated instead. Also, you can't move a section from the right column if it is on the left, or move it to the left if it's on the right. Not being able to move a section isn't a real problem.
3. Finally, the Defense rating won't update by itself when you upgrade your dexterity or wits (for example). In my experience, each time you change one of the attributes that matters for the Defense, you have to go to the settings, change the calculation method, then change it back to to the one you usually use.

I can't say more about 1&2 as I didn't test them, but when I looked at the sheet workers & quick test I can say nr. 3 is true, Defense only updates when you change defense calculation:
  on("change:defense_select", function(eventInfo) {
        updateDefense(eventInfo);
    });
I gave it a quick try to both add updateDefense(eventInfo) to all the times the defense-relevant attributes changed, and add the skills as change conditions to the above section, but they didn't work so I think it's slightly more complicated than that, might be that the updateDefense() function would need to be changed instead.
Sheet Author @SteveKoontz might be interested in taking a look?

Thanks for doing some investigation on this. I'll pick it for Steve and see if we can investigate further.


[rancher-dns] sysctl net.core.somaxconn

Rancher versions:
rancher/server or rancher/rancher: v1.6.18
rancher/agent or rancher/rancher-agent: v1.2.10
Infrastructure Stack versions:
healthcheck: v0.3.3
ipsec:
network-services:
scheduler:
kubernetes (if applicable):
Docker version: (docker version,docker info preferred)
# docker version
Client:
 Version:           18.06.1-ce
 API version:       1.38
 Go version:        go1.10.3
 Git commit:        e68fc7a
 Built:             Tue Aug 21 17:24:58 2018
 OS/Arch:           linux/amd64
 Experimental:      false

Server:
 Engine:
  Version:          18.06.1-ce
  API version:      1.38 (minimum version 1.12)
  Go version:       go1.10.3
  Git commit:       e68fc7a
  Built:            Tue Aug 21 17:23:24 2018
  OS/Arch:          linux/amd64
  Experimental:     false

# docker info
Containers: 10
 Running: 10
 Paused: 0
 Stopped: 0
Images: 9
Server Version: 18.06.1-ce
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 69
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 468a545b9edcd5932818eb9de8e72413e616e86e
runc version: 69663f0bd4b60df09991c08812a60108003fa340
init version: fec3683
Security Options:
 apparmor
Kernel Version: 3.19.0-80-generic
Operating System: Ubuntu 14.04.5 LTS
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 7.797GiB
Name: ea-preprod-06
ID: XSLL:U6GH:TY3M:Y6L5:Y4J4:VO22:R5PX:IIT2:J4X3:UBAP:ORUN:O3SR
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 <IP_ADDRESS>/8
Live Restore Enabled: false

WARNING: No swap limit support

Operating system and kernel: (cat /etc/os-release, uname -r preferred)
# cat /etc/os-release
NAME="Ubuntu"
VERSION="14.04.5 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.5 LTS"
VERSION_ID="14.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"

# uname -r
3.19.0-80-generic

Type/provider of hosts: (VirtualBox/Bare-metal/AWS/GCE/DO)
AWS
Setup details: (single node rancher vs. HA rancher, internal DB vs. external DB)
Environment Template: (Cattle/Kubernetes/Swarm/Mesos)
Steps to Reproduce:
Deploy more than ~128 load balancers onto one host.
Results:
Load balancer services go offline and new load balancer services just don't start. In logs there are errors connecting (dialling) to rancher-dns service. I guess that could be
because of net.core.somaxconn=128 in rancher-dns container.
I am still not sure it's the case – I was not able to modify somaxconn value in the container to check. Should the sysctl setting be added into dns service definition?
  dns:
...
    sysctls:
      net.core.somaxconn: '65535'

@deniseschannon @alena1108 Is there any way to test change of docker-compose.yml.tpl file? I tried changing the yml.tpl file in a volume of rancher/server container and redeploying dns service but with no luck – new dns container was created with the same old yml definition (i.e. w/o sysctl setting).

Thanks for your report!
With the release of Rancher 2.0, development on v1.6 is only limited to critical bug fixes and security patches.
If you think we should keep this issue open, please let me know.


How to access secure resources

Googled and went through the readme, couldn't figure out if it's possible to login and maintain session and then access secure pages.

UnCSS is built only to handle .html files, not server-side files. So at the current time, no. This might be possible if we implemented https://github.com/giakki/uncss/issues/176 or https://github.com/giakki/uncss/issues/186.

I'm not sure what you mean by "not handle serverside files", as uncss should be able to request web resources as well in its browser. (Though yes, there is no concept of session state as far as I can tell.) As far as passing credentials, yes that is covered by the other bug.

I meant you can't parse .asp etc. directly.


ExpansionTile messes up _currentIndex calculations

Describe the bug
I'm trying to convert my old AppBar implementation to the Backdrop implementation.  My menu has ExpansionTiles and ListTiles.  Backdrop doesn't recognize the ListTiles inside my ExpansionTiles, and instead uses the ExpansionTile for the _currentIndex.  This breaks navigation.  To work around this, I set the _currentIndex manually, but the frontLayer doesn't become active after tapping a navigation item.
To Reproduce
Steps to reproduce the behavior:
backLayer: BackdropNavigationBackLayer(
  items: [
    Container(
      child: new ExpansionTile(
          title: Text("A"),
          children: <Widget>[
            ListTile(
              title: Text("1"),
              onTap: () {
                setState(() => _currentIndex = 0);
              },
            ),
            ListTile(
                title: Text("2"),
                onTap: () {
                  setState(() {
                    _currentIndex = 1;
                  });
                }),
            ListTile(
                title: Text("3"),
                onTap: () {
                  setState(() {
                    _currentIndex = 2;
                  });
                }),
          ]),
    ),
    ListTile(
        title: Text("B"),
        onTap: () {
          setState(() {
            _currentIndex = 5;
          });
        }),
    ListTile(
        title: Text("C"),
        onTap: () {
          setState(() {
            _currentIndex = 6;
          });
        }),
  ],
  onTap: (int position) => {setState(() => _currentIndex = position)},

Expected behavior
I manually set the _currentIndex, and the frontLayer changes widgets, but does not toggle to active.  I expect it to toggle back to an active state.
Screenshots

Smartphone (please complete the following information):

Device: Pixel 3
OS: Android 10
Browser n/a
Version n/a

This looks like a custom logic not suitable for BackdropNavigationBackLayer. BackdropNavigationBackLayer is designed for simple navigation scenario.
Having said that, your code looks almost done, replace BackdropNavigationBackLayer with ListView or ListView.builder and that should do the job. I guess!

PS: You can call Backdrop.of(context).showFrontLayer() after setState() in onTap, to show the front layer

Doesn't appear to be working.
ListTile(
  title: Text("Test"),
  onTap: () {
    setState(() => _currentIndex = 0);
    Backdrop.of(context).showFrontLayer();
  },
),

════════ Exception caught by gesture ═══════════════════════════════════════════
The following NoSuchMethodError was thrown while handling a gesture:
The getter 'data' was called on null.
Receiver: null
Tried calling: data

When the exception was thrown, this was the stack
#0      Object.noSuchMethod  (dart:core-patch/object_patch.dart:53:5)
#1      Backdrop.of
package:backdrop/backdrop.dart:27
#2      _MainPageState.build.<anonymous closure>
package:t4c_companion/main.dart:129
#3      _InkResponseState._handleTap
package:flutter/…/material/ink_well.dart:779
#4      _InkResponseState.build.<anonymous closure>
package:flutter/…/material/ink_well.dart:862

This error is because of passing wrong context to Backdrop.of.
You need to put the backLayer part in a custom widget or a workaround would be wrap the ListView around LayoutBuilder and pass the context from  LayoutBuilder to Backdrop.of

I ended up with a LayoutBuilder, which did the trick.  Nice catch.  This feels super messy to me, but it works.  Thanks for the assist :)


WFS and GML3 ol doesn't find geometry

May not be a bug but the problem is that ol.Format.GML3 does read the features just fine but geometries may not be found. At least map doesn't show any geometries.
Here is the vector source:
        var vectorSource = new ol.source.Vector({
          loader: function (extent, resolution, projection) {
            $.ajax(options.url, {
              type: 'GET',
              data: wfsParams(options, extent)
            }).done(loadFeatures);
          },
          strategy: ol.loadingstrategy.bbox,
          projection: options.srsName
        });

Read features and add them to the vector source:
        var loadFeatures = function (response) {
          var formatWFS = new ol.format.GML3({
             featureNS: options.featureNS,
             featureType: options.featureType
          });
          var features = formatWFS.readFeatures(response);
          vectorSource.addFeatures(features);
        };

Layer type is ol.layer.Vector.
Here is part of the gml and there is two types of geometries:
Line:
<gml:featureMember>
<featureNS:part gml:id="123456789">
<featureNS:code>43434343</featureNS:code>
<featureNS:tolerance>0.15</featureNS:tolerance>
<featureNS:date>2013-07-01T17:02:47</featureNS:date>
<featureNS:positions>
<featureNS:Position>
<featureNS:line>
<gml:LineString>
<gml:pos srsDimension="3">370000.937 6676026.821 6.806</gml:pos>
<gml:pos srsDimension="3">370014.562 6676095.096 7.459</gml:pos>
<gml:pos srsDimension="3">370013.866 6676075.613 7.427</gml:pos>
<gml:pos srsDimension="3">370013.332 6676055.278 7.842</gml:pos>
<gml:pos srsDimension="3">370007.678 6676001.883 7.998</gml:pos>
<gml:pos srsDimension="3">370007.283 6676091.676 8.377</gml:pos>
</gml:LineString>
</featureNS:line>
</featureNS:Position>
</featureNS:positions>
<featureNS:type>type</featureNS:type>
<featureNS:status>status</featureNS:status>
</featureNS:part>
</gml:featureMember>

Point:
<gml:featureMember>
<featureNS:part gml:id="53252355">
<featureNS:code>121212</featureNS:code>
<featureNS:tolerance>0.15</featureNS:tolerance>
<featureNS:date>2013-07-01T15:04:33</featureNS:date>
<featureNS:positions>
<featureNS:Position>
<featureNS:point>
<gml:Point>
<gml:pos srsDimension="3">370000.580 6676000.733 8.723</gml:pos>
</gml:Point>
</featureNS:point>
</featureNS:Position>
</featureNS:positions>
<featureNS:type>type</featureNS:type>
</featureNS:part>
</gml:featureMember>

Is there a way to solve this issue?

The use of multiple gml:pos to define a LineString is valid GML3 but isn't Simplified Features compliant.  Here's the Simplified Features schema http://schemas.opengis.net/gml/3.1.1/profiles/gmlsfProfile/1.0.0/gmlsf.xsd  Coordinates in a LineString should be defined by a single gml:posList and gml:pos is used only for Point features.


google_maps not initializing, throwing lib errors

Home Assistant release with the issue:
0.67.0
Last working Home Assistant release (if known):
none
Operating environment (Hass.io/Docker/Windows/etc.):
VirtEnv Raspbian@RasPi3b+ | Python 3.5.3
Component/platform:
device_tracker.google_maps
Description of problem:
platform does not seem to initialize, though I have received authentication warning (which I approved) for the account.
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
device_tracker:
  ...
  - platform: google_maps
    username<EMAIL_ADDRESS>    password: xxxxxxxx

Traceback (if applicable):
first:
Apr 14 20:06:45 MrMeeSeeks hass[7343]: ERROR:locationsharinglib.Service:Could not open pickle file, either file does not exist or no read access.

and then recurring:
2018-04-14 21:18:05 ERROR (MainThread) [homeassistant.components.device_tracker] Error setting up platform google_maps
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/device_tracker/__init__.py", line 184, in async_setup_platform
    disc_info)
  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/device_tracker/google_maps.py", line 36, in setup_scanner
    scanner = GoogleMapsScanner(hass, config, see)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/device_tracker/google_maps.py", line 55, in __init__
    self._update_info()
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/device_tracker/google_maps.py", line 67, in _update_info
    for person in self.service.get_all_people():
  File "/srv/homeassistant/lib/python3.5/site-packages/locationsharinglib/locationsharinglib.py", line 292, in get_all_people
    return self._get_data()
  File "/srv/homeassistant/lib/python3.5/site-packages/cachetools/__init__.py", line 46, in wrapper
    v = func(*args, **kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/locationsharinglib/locationsharinglib.py", line 283, in _get_data
    output = json.loads(response.text.split("'", 1)[1])
  File "/usr/lib/python3.5/json/__init__.py", line 319, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.5/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.5/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

[edited to focus on the persisting issue]

@michaelarnauts any ideas?

I ran into the same issue. It seems it's trying to iterate over an empty list. I added my primary account to my homeassistant gmail account and am able to now see my device location in Home Assistant.

@decarteret added your primary to your homeassistant account? What do you mean?

So you have to use additional account (can be new) with which you will share your location on the phone. Then you use the additional's accounts credentials in this component in HA.
basically, you need to use credential of any account showing in https://myaccount.google.com/locationsharing
I didn't read it right the first time either.
Anyway, when I set it up like that, I'm still not able to get it to work, I'm not receiveing the logon warning and dont see the logon from HA on the https://myaccount.google.com/device-activity page of the additional account.

@ferdydek , just to repeat and clarify what I believe is being described, you basically need to create a slave account which you send your device location(s) to via Location Sharing.  You would then supply the credentials of this slave account to HASS and use it to log in.  I'll test this and report back
Out of curiosity do you use 2FA or some other login challenge?  I was troubleshooting this same symptom on my end.  I have 2-Factor Authentication enabled on all of my google accounts and presumed I could supply an App Password for one of my slave accounts as I have done in the past for apps which can't pass 2-factor challenges.  However, that doesn't work here.
It appears generated App Passwords can be used for rudimentary functions such as SMTP/IMAP authentication but seem to be prohibited from use in HTTP/API authentication, though I can't find any documentation anywhere citing what these can or cannot
I also noticed that while I was able to supply my main google account's user/password once from a blank-slate by approving a phone login prompt when challenged, restarting my HASS docker container left a stale cookie behind in the config path that must be removed in order to re-authenticate.

...and that worked!

I created a new service account<EMAIL_ADDRESS>with a complex passphrase
Shared my device's location with<EMAIL_ADDRESS>Removed the stale .google_maps_location_sharing.cookies file from the config path
Signed in once using chrome, was neither challenged nor forced to approve any sign-ins
Fed credentials into HASS, restarted and immediately saw my user with a valid location.  No challenge or approval was required.

I've read some comments suggesting multi-user isn't working correctly, so I'll be adding the wife's location data into the mix later tonight.

No F2A, no special environment. Did what you did and I'm still getting the error ERROR:homeassistant.components.device_tracker:Error setting up platform google_maps.

@Sanfam I was attempting to use an existing account which did have 2FA enabled. I created a new one specifically for HA as you did, followed your other steps, and now it's up.

@ferdydek , I see device_tracker.google maps ##################### for both the wife and I, where the #'s represent a string of digits that length.  I see three fields it could possibly barf on if it wasn't being processed correctly:  nickname, full_name, and address.  While the tracker name doesn't have special characters I wonder if one of those breaks it?
@cogneato glad I could help!

Could not open pickle file, either file does not exist or no read access.

I have different error.
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/locationsharinglib/locationsharinglib.py", line 284, in _get_data
    people = [Person(info) for info in output[0]]
  File "/usr/lib/python3.6/site-packages/locationsharinglib/locationsharinglib.py", line 284, in <listcomp>
    people = [Person(info) for info in output[0]]
  File "/usr/lib/python3.6/site-packages/locationsharinglib/locationsharinglib.py", line 87, in __init__
    self._populate(data)
  File "/usr/lib/python3.6/site-packages/locationsharinglib/locationsharinglib.py", line 95, in _populate
    self._latitude = data[1][1][2]
TypeError: 'NoneType' object is not subscriptable

This is the error I'm getting:
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/locationsharinglib/locationsharinglib.py", line 284, in _get_data
    people = [Person(info) for info in output[0]]
TypeError: 'NoneType' object is not iterable

I created a new account, shared the location, said that it was me logging in on the device activity screen, and I tried toggling on "Allow less secure apps." Nothing seems to work.

I can confirm what @Sanfam said worked for me. I was having "Could not open pickle file, either file does not exist or no read access.".
I stopped home assistant, deleted a previously created ".cookies" and ".conf" file from the home assistant directory, and then started home assistant back up and it worked fine.

I can also confirm that I solved the problem by removing the .cookies file and restarted.
My guess is that the .cookies file should be recreated when the configuration change.

@Klathmon what .conf file are you referring to? I only see the cookie file.

I was running a pre-release version of this script, so it may have been created then, or I may be misremembering...

i'm also getting the "i'm not a robot" messages. Became so frequent i actually disabled the component.

Do you know if we have to authorize, add or do something else into the Google API Console ?  If yes, with the secondary account? Which Google Maps API is used on HassIO? The Android version, Javascript version...?
Really not sure that it's a solution but I try, I try :)

Should we not just remove the use of cookie (it's seems to be flaky). when i test the lib just with username and password it seems to work corectly.
can we change this :
self.service = Service(self.username, self.password,
hass.config.path(CREDENTIALS_FILE))

to this :
self.service = Service(self.username, self.password)

and add more exception ? :
except InvalidUser:
            _LOGGER.error('You have specified invalid login credentials')
self.success_init = False

My understanding was that the cookie prevents excessive "prove you're not a robot" and fake logon events, but im not sure if that is the case.

but if you check your device as trusted in google security manager console it will avoid to consider you as a robot right ?
i try 5 times in a row  with a python script and i never get the "robot answer"

What is really weird is that on my device, where Google Maps is, I've connected my main and my second Google account.
I set my second one into the configuration.yaml but it's when I've loggued my main account on Google Maps and share my location to my second account, that I received the message, on my device, to accept to share my location.
Then, on HassIO, I don't see my second account ( who is into configuration.yaml!! ) but my main...
It's not really a problem for me because the main goal was to track the device and not the second account.
Try to do the same for you and maybe it will works.
Good luck!

it depends on the account you are using and its behavioral pattern from what I remember.

@Edmond76 that is exactly how its supposed to be, you're using the "second" account to spy on yourself, so the second account is reporting your real account's spy information.

FYI, This worked for me. I was getting a NoneType exception until I changed the newly discovered device in known_devices.yaml to "track: true". As soon as I did that, it started working properly.

Hello,
Do you have an example of output of .google_maps_location_sharing.cookies (sanitized)?
Indeed, I have the same issue ( 2 2018-05-26 22:48:14 ERROR (Thread-11) [locationsharinglib.Service] Could not open pickle file, either file does not exist or no read access.) (new account, no 2FA enabled, device whitelisted on https://myaccount.google.com/device-activity) but the .google_maps_location_sharing.cookies is created but seems to be corrupted.. Indeed, If I a try a restart after it, I have this error: locationsharinglib.locationsharinglibexceptions.InvalidCookies: The cookies provided do not provide a valid session.Please authenticate normally and save a valid session again
If I use the same account/password via browser, all is ok.
Please note that I try to stop HA/rm .google_maps_location_sharing.cookies/start HA: same issue.
Btw, for unknow reasons, the known_devices.yaml is empty on my side.. (permissions ok (just created)) but entity_registry.yaml is ok..


New quality standard

I got a movie with the quality setting set at HDTC, I would like to filter those out. What is the equivalent?

HD tc? Please open a forum question for this, issues are for reporting errors


Using tauri-specta with tauri v2

tauri-specta v2 has dependency on tauri v1.
Is it possible to use tauri-specta with tauri v2 ?
Otherwise I have error:
error: failed to select a version for `tauri-plugin-window`.
    ... required by package `ergo-wallet v0.2.0 (/home/desktop/src-tauri)`
versions that meet the requirements `^2.0.0-alpha` are: 2.0.0-alpha.2, 2.0.0-alpha.1, 2.0.0-alpha.0

the package `tauri-plugin-window` links to the native library `gdk-3`, but it conflicts with a previous package which links to `gdk-3` as well:
package `tauri v1.5.1`
    ... which satisfies dependency `tauri = "^1.5.1"` of package `tauri-specta v2.0.0-rc.2`
    ... which satisfies dependency `tauri-specta = "=2.0.0-rc.2"` of package `ergo-wallet v0.2.0 (/home/desktop/src-tauri)`
Only one package in the dependency graph may specify the same links value. This helps ensure that only one copy of a native library is linked in the final binary. Try to adjust your dependencies so that only one package uses the links ='tauri-plugin-window' value. For more information, see https://doc.rust-lang.org/cargo/reference/resolver.html#links.

Best regards,

Did you ever figure this out? I'm getting the same issue

🙏

Any news about it ?

You can try this branch, if you need a different version of the Tauri alpha your on your own to fork Tauri Specta & Specta.
Be aware if your using rspc, Prisma Client Rust or other libraries that depend on Specta they will probably not work with this patch.
https://github.com/oscartbeaumont/tauri-specta/tree/tauri2-alpha18

I don't have the option to support both Tauri stable and Tauri alpha in proper releases due to Cargo complaining about double-linking webkit.
I suspect when https://github.com/oscartbeaumont/specta/pull/185 lands there might be a better way to support both but I don't know how that will fit in with tauri-specta as that only deals with Specta itself.

No updates. There is still the tauri2-alpha18 branch you could try using with a Git patch however i'm not sure that branch has correctly updated the JS-side of things so you might run into problems with that, although a PR would be accepted with any fixes!

I have just implemented this in main. Will release once #86 is fixed but it's usable in your own apps as long as your not using Tauri Specta within a Tauri plugin.


[Go Live Activity] DNS Configuration

This is a BYODNS project and the Customer will be using EDS own CDN.

DNS Configuration is complete. Customer is live on EDS


parse the date time string with offset

To fix issue #1564

Though both return OffsetDateTime, the ParsingUtilities.stringToDate always return the Zulu time, but the toDate will keep the offset as is.

That does not solve the bug I reported. The behaviour of stringToDate was changed and this breaks the data extension operation, among others. Please make sure that stringToDate supports all the formats it supported before.

Hi @jackyq2015, have you seen my report in #1564? Just reconcile a column (for instance containing the names of famous people) and fetch dates from that (for instance their date of birth, P569) and you will observe the error.
So, here is the situation. In commit 23ec54b78 you have changed the behaviour of ParsingUtilities.stringToDate. Many parts of the code rely on this function to parse dates. Therefore, this potentially introduces bugs in all these areas. I have shown you two instances of such bugs, but of course we should not fix just them: they are just the symptoms and we should fix the root cause. The root cause is that ParsingUtilities.stringToDate previously supported ISO dates with offsets, and now it fails on them. So, it would be great if you could fix that.
If it helps, here is a test case that should pass (it passes before 23ec54b78 and breaks after):
    @Test
    public void parseOffsetDate() {
        String offsetDate = "1958-08-29T00:00:00+00:00";
        OffsetDateTime parsed = ParsingUtilities.stringToDate(offsetDate);
        OffsetDateTime expected = OffsetDateTime.parse(offsetDate);
        Assert.assertEquals(expected, parsed);
    }

If anything is still unclear, do let me know (I am happy to discuss that directly over hangouts for instance). If you want me to take this over, I can also do that.

@wetneb I cannot reproduce this. I reconciled name "George Washington" and use "Add column from reconciled data"  to get the "date of birth", I can get the 1732-02-22T00:00:00Z without issue. And I can reload it after I bounce the OR. You need have the master code and a refresh project in order to work. If you can get a detail step to reproduce the issue I will give another try.
Please see my comment here. The commit 23ec54b is actual to restore the original behaviour, not to change it.
But still you can go ahead to improve it whatever you think it's appropriate.  Maybe I am mistaken

Hmm, it's curious that you cannot reproduce the issue… Which JDK are you using? I can observe the issue with OpenJDK8.
I'll go ahead and propose another version that should hopefully work for everyone.

$ java -version
openjdk version "1.8.0_162"
OpenJDK Runtime Environment (build 1.8.0_162-8u162-b12-0ubuntu<IP_ADDRESS>-b12)
OpenJDK 64-Bit Server VM (build 25.162-b12, mixed mode)