Can't import Bestiary 3 - Wolf-in-Sheep's-Clothing

Can't import statblock:
Wolf-in-Sheep's-Clothing      CR 8
XP 4,800
Male wolf-in-sheep's-clothing (Pathfinder RPG Bestiary 3 285)
N Medium aberration
Init +4; Senses darkvision 60 ft.; Perception +14
Defense
AC 21, touch 10, flat-footed 21 (+11 natural)
hp 97 (13d8+39)
Fort +9, Ref +6, Will +10
Defensive Abilities all-around vision
Offense
Speed 5 ft., burrow 5 ft., climb 5 ft.
Melee bite +12 (1d6+3), 8 tentacles +12 (1d4+1 plus grab)
Space 5 ft.; Reach 15 ft.
Special Attacks constrict (1d4+3), implant, pull (5 ft.)
Statistics
Str 17, Dex 10, Con 17, Int 6, Wis 14, Cha 7
Base Atk +9; CMB +12 (+18 grapple); CMD 22 (can't be tripped)
Feats Great Fortitude, Greater Grapple[B], Greater Weapon Focus (tentacle), Improved Initiative, Lightning Reflexes, Multiattack, Skill Focus (Perception), Weapon Focus (tentacle)
Skills Acrobatics +0 (-12 to jump), Climb +15, Disguise -1 (+5 to make the lure seem a living, independant creature, +11 to appear as a tree stump), Knowledge (nature) +4, Perception +14, Sense Motive +8, Stealth +9
SQ +12 to disguise as a tree stump, corpse lure
Special Abilities
+12 to Disguise as a Tree Stump (Ex) You gain a racial bonus to Disguise as a stump.
All-Around Vision (Ex) You can see in all directions and cannot be flanked.
Burrow (5 feet) You have a Burrow speed.
Climb (5 feet) You have a Climb speed.
Corpse Lure (Tiny) (Ex) Control a corpse on self to lure prey, racial Disguise bonus increases by 8.
Darkvision (60 feet) You can see in the dark (black and white only).
Grab: Tentacle (Medium) (Ex) You can start a grapple as a free action if you hit with the designated weapon.
Greater Grapple Maintaining a grapple is a move action, allowing you to make 2 checks a round.
Implant (DC 19) (Ex) Insert seed into creature with a pin, then disease.
Pull (5 feet) (Ex) You can pull targets closer to you.

Used your latest module that was available as of this afternoon at about 2:30pm.  I used Hero Lab to produce this statblock. For greater accuracy, you might want to use one of the online resources. Hero Lab can truncate some of the text. All the other statblocks from Bestiary 3 imported -- a total of more than 86% imported!


Fixes inability to tap on categories in list nav

Tapping on categories in the list nav was failing due to a local variable shadowing the class instance variable with the same name.

Selecting "Featured" failed on a force unrwap when creating a DiscoverType.

I can't change tags from my phone.

Thanks for the review. :) I changed it for you.


Boundary Objects

Although we can specify tensor-product domains easily, it would also be nice to automatically construct boundaries of tensor product domains.

closed via #23


Client Allocation Request for: ZhiLanBoFeng

Client Allocation Questions
Core Information

Name: ZhiLanBoFeng
Website / Social Media: zhilanbofeng.cn/@KingKong @JXin song on the Filecoin Slack
DataCap Requested: 1PiB
Addresses to be Notarized: f1rlv5cnub6j5ndpvk25zxs4jfqwch5a6uhy3s3ia
Notary Requested: philippbanhardt

Hey @KingKongOne thanks for your request, however at this time the foundation is only considering requests <5 TB.


Created a single GPU example for all GPU types;

Removed outdated GPU examples;
Modified start_here to point to this example;
There is an error out of paramiko when the node is rebooted (an exception), but I think it has to do with fablib and need to be fixed separately. I'll try to debug and provide a PR.

You can merge!


Release 2.29.0 checklist

Feature freeze (January 24th):

[x] Ensure all expiring language deprecations have been removed or given new removal dates.
[x] Create and merge version updating pull requests in Math/Stan/Cmdstan. These should be the last PRs accepted before the freeze.
[x] Create Math/Stan RC releases.
[x] Create Stanc3 RC binary.
[x] Create a release candidate tarball for x86. Make sure RC tarballs include stanc3 binaries.
[x] Check external links in docs (i.e. TBB docs link)
[ ] Create a release candidate feature/bugfix list (major features/bugfixes that need testing, link to new docs in Github)
[x] Run CmdStanR tests with the RC tarball.
[x] Run CmdStanPy tests with the RC tarball.
[ ] Make a Discourse RC post.
[ ] Post a tweet with a link to the Discourse RC post.

Release (February 7th - subject to change):

[ ] Create the Math Release notes.
[ ] Create the Stan Release notes.
[ ] Create the Cmdstan Release notes.
[ ] Create the Stanc3 Release notes, include new deprecations and removals.
[ ] Rebuild and publish docs for the new version.
[ ] Check that docs for the previous release links correctly to the newest docs.
[ ] Create the Math release.
[ ] Create the Stan release.
[ ] Create the Stanc3 release.
[ ] Create x86 CmdStan tarballs (check version, check that the extracted folder is in the cmdstan-version format).
[ ] Create non-x86 CmdStan tarballs.
[ ] Run CmdStanR tests with the release tarball.
[ ] Make a Stan blog release announcement post (thank the sponsors and all contributors, mention new devs).
[ ] Link to the blog post in a Discourse thread.
[ ] Make a Twitter announcement.

So if I am not missing anything, the only thing that we want to get into 2.29 and has not been merged yet is https://github.com/stan-dev/stan/pull/3095 by @SteveBronder, which squashes an unwanted behaviour we do not want to support going forward (it was only allowed for a version or 2) or have users assume its expected behaviour.
Anything else I missed?

Ensure all expiring language deprecations have been removed or given new removal dates.

@WardBrian I guess for this release we can check this one since its the first time we are doing this?

Create and merge version updating pull requests in Math/Stan/Cmdstan. These should be the last PRs accepted before the freeze.

@serban-nicusor-toptal we can start doing this now.

@rok-cesnovar yes correct. 2.32 will be the first time that’s required

Per-PR release notes are now here: https://gist.github.com/rok-cesnovar/b7c2dbec22fc7cf88e102f924133a557#file-2_29_release_notes-txt
The Math/Stan/CmdStan are pretty straightforward as there was not much action. I would appreciate someone looking at those (no hurry - we dont need them for the RC, just comment on the gist with edits/fixes).
Version-updating PRs are now all approved, waiting for Math tests to pass then we can do the RC.

Release candidates, stanc3 binaries, the tarballs for x86 and non-x86 are now ready.

Thanks @serban-nicusor-toptal.
I checked the external docs and am working on the list of features we will highlight in the RC post. @WardBrian can you run CmdStanPy tests whenever you have the chance?

CmdStanR failed on windows tests in GH actions

Ah, that is a CI issue, will fix shortly.

Good to know, thanks for the quick answer. Please let me know if there's anything else I can help with.

I've got some test failures in cmdstanpy but I think they're because we were assuming #1054 would be merged in this version. Investigating now

Uncovered some bugs in cmdstanpy, but after resolving those tests are green https://github.com/stan-dev/cmdstanpy/runs/5011314575

Thanks. RC Annoucement will be up tomorrow.

Will we be pushing the release until the 14th?

Yeah, fixed the dates in the top post. Thanks.

The RC annoucement is live. Thanks @WardBrian  for the help. Also posted the link on Twitter. Hopefully, we get some testers. If all goes well the release will happen on Valentine's day :)
I plan on running some performance tests in a couple of days.

@rok-cesnovar re: the 'check external links' bullet point, I found this very helpful tool: https://github.com/tcort/markdown-link-check

Nice! added to the checklist.

It produces some false alarms but did catch a few broken links I'm going to fix right now

@serban-nicusor-toptal when you have the chance, please make RC2 for stanc3 and cmdstan. Thanks!

stanc3 v2.29.0-rc2 and cmdstan v2.29.0-rc2 are now up!

https://github.com/stan-dev/cmdstan/issues/1076 seems both simple enough and important enough that we should get it in before release, right?

There are a few docs issues I think would be great to address before the release (not necessarily blocking, though):
https://github.com/stan-dev/docs/issues/487
https://github.com/stan-dev/docs/issues/482
https://github.com/stan-dev/docs/issues/466

I am working on https://github.com/stan-dev/docs/issues/466 Should have something ready over the weekend and for review on Monday.

I fell into a different rabbit hole so I am not going to be able to close https://github.com/stan-dev/docs/issues/466 before the release but will work on finishing that this week. Its not something we need to reference in release notes so not critical ATM.
@serban-nicusor-toptal There were no additional reports for the release candidate so we can go ahead and start the release process. For the release notes use the notes we used for the RC: https://gist.github.com/rok-cesnovar/b7c2dbec22fc7cf88e102f924133a557
@WardBrian Do we wait for https://github.com/stan-dev/docs/pull/455 before we rebuild the docs? Or should we just go ahead and do it?

No need to wait imo, will just be in the next release

We've released stanc3 again after a quick patch before the release and we're now waiting for the stanc3 binaries build so I can add them to cmdstan and release it too. ETA ~1h
Thank @rok-cesnovar for building the docs, PRs for docs and stan-dev.github.io are ready for review and merge.

The release is now officially out!

math v4.3.0
stan v2.29.0
cmdstan v2.29.0
stanc3 v2.29.0

@serban-nicusor-toptal If I go ahead and build collab-cmdstan-2.29 can I upload that tarball directly to the release?

Yes @WardBrian
If we need it every release I can add building collab to the release process so we can do it every time just need an example on how you're generating it.

The process is unfortunately very manual - see this forum post https://discourse.mc-stan.org/t/planning-the-2-29-release/25711/26
The collab version is essentially just the linux targz but pre-compiled to run on the collab instances. The last time we had one was 2.23, so I'm not sure how in-demand they are

Just checked manuals and docs, they're looking great and links are working fine.
Thanks a lot, @rok-cesnovar and @WardBrian for helping out!

I took a look at the collab instructions Mitzi wrote, it's something I don't mind doing every release if there's anyone there using cmdstanpy on collab. Will try it now to see how it goes and I'll start doing it from next release if that's okay with you @WardBrian

@serban-nicusor-toptal I think it might be worth doing. I've done it for this release.
I'm not sure how many collab users we have, or if conda would be a viable alternative for them. @mitzimorris - do you know if Collab can install conda packages?

colab-cmdstan-2.23.0.tar.gz was downloaded 2253 times over the past 2 years. So as a percentage it's quite small, but it is certainly getting used

Running cmdstanpy tests again for good measure: https://github.com/stan-dev/cmdstanpy/runs/5190682001
Thanks @rok-cesnovar @serban-nicusor-toptal

That's more than enough to make it worth it!
I gave the script a try and made a small, quick version for myself to use from now on, it's using transfer.sh to upload the archive so we can skip the GCloud step.
#!/bin/bash

CURRENT_VERSION=2.29.0

# cleanup existing cmdstan installs, as needed
!if [ -e $HOME/.cmdstan ] ; then echo "cleanup"; rm -rf $HOME/.cmdstan; fi

# install cmdstanpy
!pip install --upgrade cmdstanpy
from cmdstanpy import install_cmdstan
install_cmdstan()

# Create tgz
!ls -a $HOME/.cmdstan        # expecting default cmdstan install here
!cd $HOME/.cmdstan; tar -cf - cmdstan-$CURRENT_VERSION | gzip > $HOME/cmdstan-$CURRENT_VERSION.tgz
!tar -tzf $HOME/cmdstan-$CURRENT_VERSION.tgz | head

# Use transfer.sh to upload our achive for easy retrieval
!curl --upload-file /root/cmdstan-$CURRENT_VERSION.tgz https://transfer.sh/cmdstan-$CURRENT_VERSION.tgz

Announcements posted.
Thanks to everyone that helped out, especially Brian and Nic! On to the next one :)


Signature verification fails

Latest update helped with SaleTarrif digest. But next step - verification - fails. It ends with exception thrown on EVCC side (with our SECC implementation).
Here are exception messages:
2017-09-28T09:49:01,669 ERROR [Thread-1] SecurityUtils: SignatureException occurred while trying to verify signature value java.security.SignatureException: Could not verify signature 	at sun.security.ec.ECDSASignature.engineVerify(ECDSASignature.java:325) ~[sunec.jar:1.8.0_151] 	at java.security.Signature$Delegate.engineVerify(Signature.java:1219) ~[?:1.8.0_144] 	at java.security.Signature.verify(Signature.java:652) ~[?:1.8.0_144] 	at org.v2gclarity.risev2g.shared.utils.SecurityUtils.verifySignature(SecurityUtils.java:1907) [classes/:?] 	at org.v2gclarity.risev2g.evcc.states.WaitForChargeParameterDiscoveryRes.verifySalesTariffs(WaitForChargeParameterDiscoveryRes.java:221) [classes/:?] 	at org.v2gclarity.risev2g.evcc.states.WaitForChargeParameterDiscoveryRes.processIncomingMessage(WaitForChargeParameterDiscoveryRes.java:124) [classes/:?] 	at org.v2gclarity.risev2g.evcc.session.V2GCommunicationSessionEVCC.update(V2GCommunicationSessionEVCC.java:178) [classes/:?] 	at java.util.Observable.notifyObservers(Observable.java:159) [?:1.8.0_144] 	at org.v2gclarity.risev2g.evcc.transportLayer.StatefulTransportLayerClient.processIncomingMessage(StatefulTransportLayerClient.java:119) [classes/:?] 	at org.v2gclarity.risev2g.evcc.transportLayer.TLSClient.run(TLSClient.java:169) [classes/:?] 	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_144] Caused by: java.security.SignatureException: Invalid encoding for signature 	at sun.security.ec.ECDSASignature.decodeSignature(ECDSASignature.java:400) ~[sunec.jar:1.8.0_151] 	at sun.security.ec.ECDSASignature.engineVerify(ECDSASignature.java:322) ~[sunec.jar:1.8.0_151] 	... 10 more Caused by: java.io.IOException: insufficient data 	at sun.security.util.DerInputBuffer.truncate(DerInputBuffer.java:135) ~[?:1.8.0_144] 	at sun.security.util.DerInputStream.subStream(DerInputStream.java:160) ~[?:1.8.0_144] 	at sun.security.util.DerInputStream.readVector(DerInputStream.java:415) ~[?:1.8.0_144] 	at sun.security.util.DerInputStream.getSequence(DerInputStream.java:331) ~[?:1.8.0_144] 	at sun.security.ec.ECDSASignature.decodeSignature(ECDSASignature.java:376) ~[sunec.jar:1.8.0_151] 	at sun.security.ec.ECDSASignature.engineVerify(ECDSASignature.java:322) ~[sunec.jar:1.8.0_151] 	... 10 more
Here are data used to sign and verify signature:
ChargeParameterDiscoveryReq (EXI HEXDUMP):<PHONE_NUMBER>000016732A5B0A895A1D1D1C0E8BCBDDDDDDCB9DCCCB9BDC99CBD5148BD8D85B9BDB9A58D85B0B595E1A4BD0D5A1D1D1C0E8BCBDDDDDDCB9DCCCB9BDC99CBCC8C0C0C4BCC0D0BDE1B5B191CDA59CB5B5BDC9948D958D91CD84B5CDA184C8D4D910311A4A218812B43A3A381D1797BBBBBB973B999737B93397AA2917B1B0B737B734B1B0B616B2BC3497A429687474703A2F2F7777772E77332E6F72672F323030312F30342F786D6C656E632373686132353642023A03052A4032C755CAC2D05E2680EA107627EE06274A84317B20A438204A81212811548BB71F178C8BBF6DB9FCC5B01BDE29E312E47D88FAEA2DBB2BD2CC4F522697F189F37F0BF74EB8AB69ED4D27175C36D58EB6620ED5FE51A42F69466071F9E825329001901861900223102400C23182209C80
Private key (HEXDUMP): D4A439D114963031781D4331842784F6F4AE2B0AFDE9C0BBF8F60E310B9A7AFD
Public key (HEXDUMP): 0435A395084F19933A226E7D54E8784461AA9D7C9CBB68F76F28A87B8389EE6C3433A7AE0BE73615F1905D88BE65A7FEA9DF5B6C7D7FFBE64F6C0EC4ECE3F0B7BF
SignedInfo element (EXI HEXDUMP): 808112B43A3A381D1797BBBBBB973B999737B93397AA2917B1B0B737B734B1B0B616B2BC3497A1AB43A3A381D1797BBBBBB973B999737B933979918181897981A17BC36B63239B4B396B6B7B93291B2B1B239B096B9B430991A9B22042332025687474703A2F2F7777772E77332E6F72672F54522F63616E6F6E6963616C2D6578692F4852D0E8E8E0745E5EEEEEEE5CEE665CDEE4CE5E646060625E60685EF0DAD8CADCC646E6D0C2646A6C84018913DFC3DBDA4DAC7D64DC7CFEEAB57CE527B7ECB75BC4B46C94EA7F678A3BA370
SignedInfo element (HASH HEXDUMP): D42212AC1B75F9272C7FE35222202514CBFD1A14C01EA7360559E7903609517E
Calculated signature (HEXDUMP):<PHONE_NUMBER>2A11EA532DB9D4A224037182C7C3B4669242E54659F7C3328593FDFE855B13022100D340682C86947C21CCC472EEE5E552654E9E0739C6801D3C244859D953CDB5FF
ECC curve: secp256r1
Hash algorithm: SHA256
Message is correctly decoded on EVCC side and generated hash for SignedInfo element is equal to above one. Also public key used to verify signature on EVCC side is equal to above one.
This signature validates in this tool. You only have to change sig.updateString(msg1); to sig.updateHex(msg1); to insert SignedInfo EXI HEXDUMP into "Message string to be signed" field.
I also tried to verify signature between RISEV2G SECC and EVCC, but SECC can't load moSubCA2.pkcs8.der (even if it is generated through included script), so verification fails.
Can you confirm this behavior nad check if there is problem in RV2G?

At first sight, I don't see a particular problem with RISE V2G. Since you get a signature exception, it seems to me that the format of the signatureValue is incorrect. It may not be a DER-encoded signature. That's what the function getDEREncodedSignature() is all about. Java needs a DER-encoded signature for its verify function.
Could you please debug the function getDEREncodedSignature() (https://github.com/V2GClarity/RISE-V2G/blob/master/RISE-V2G-Shared/src/main/java/org/v2gclarity/risev2g/shared/utils/SecurityUtils.java#L2038) step by step when trying to verify the SalesTariff signature and tell me if you found anything weird going on?

I tried to send raw values now and it works. So DER encoded ASN.1 structure doesn't work with RV2G ;) Do you know requirement number which states about signature encoding? I just want to know how it should be implemented ;).
Another question - shouldn't be DIgestValues as well as SignatureValue base64 encoded as it states in Annex J?
Also i think that there is small mistake in EVCC "WaitForChargeParameterDiscoveryRes.java", line 124 - shouldn't next two lines be enclosed in braces?

I can't tell you a specific requirement stating that an ECDSA signature should not be DER-encoded. But there is also none stating that it should be DER-encoded. Naturally, an ECDSA signature is just the pair of (r,s) values, two 32-byte values. It is a point on the elliptic curve with an (x,y) coordinate.
If you take the example data from Annex J, you will find out that it is a plain (r,s) value rather than a DER-encoded signature.
Regarding your second question:
The Base64 encoding is only needed if you need to transmit binary data (such as the signature for the SalesTariff) via text-based systems such as Webservices or email. Thus, Base64-encoding between EVCC and SECC, which exchange binary data, is wrong.
See also NOTE 2 of Annex J:
"In contrast to textual XML in the presentation of this example, EXI encodes binary data natively, so the base64 encoding step will not be applied there."
Thanks for the hint with line 124 in WaitForChargeParameterDiscoveryRes! The following lines should indeed be enclosed in braces.

Ok, thank you for clarification. So I think that we stick for now with raw signature date in message as well as binary encoding.
Again - thank you very much for your time.

You're welcome :)

Hello again ;)
Can you look now for signatures on AuthorizationRequest? When I sign messages on my side (as SECC; not RV2G) RV2G-EVCC verifies signature as valid (in case of certificate installation and update responses). But when I try to verify signature made on RV2G-EVCC side (AuthorizationRequest) it fails. I also check it with online tool and between RV2G-SECC and RV2G-EVCC (it also fails).
Thanks

Hi,
without further details regarding what is the error message it is impossible to help you in this case. RISE V2G has been tested numerous times, including several test runs agains a test system, so I am very confident that it's implementation is correct.
But again, your question is not providing enough detail that would allow me to help you any further.

Problem was with incorrect private key encrypting. It works now.
What do you think about such improvement - when you receive private key and contract certificate (on EVCC side), check if public key connected with certificate is same as public key connected with private key?


Write file into the Documents folder

What?
Persist file into the user's documents folder.

CC @pusher/mobile

Codecov Report

Merging #120 into master will decrease coverage by 0.02%.
The diff coverage is 85.71%.

@@            Coverage Diff             @@
##           master     #120      +/-   ##
==========================================
- Coverage   91.86%   91.84%   -0.03%
==========================================
  Files          51       51
  Lines        2607     2612       +5
==========================================
+ Hits         2395     2399       +4
- Misses        212      213       +1

Impacted Files
Coverage Δ

Tests/SDKTests.swift
100% <100%> (ø)
:arrow_up:

Sources/Persistence/ServerSyncJobStore.swift
88.23% <83.33%> (-1.42%)
:arrow_down:

Continue to review full report at Codecov.

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


Cor 190 fix tests

Fixed iam and cms tests
Rewrote Attribute, CaseType, Case and Individual e2e tests in large part to add verification tests to ensure entered data was properly being saved and rendered.
Reported encountered bugs (201-202)
Integration tests are ✅ but e2e suite is ❌ due to frontend bug described in 201

@nilueps All the integration tests ran smoothly without problems. As for the e2e tests, 7 out 27 failed. The failed ones are for the attribute page and the individual page.

@nilueps Any reason the TestCountry and TestNationality are singled out options in goland for testing? Could we remove them>


Store preview scope in cookie for app router

Continues work started in #1807 and add app router compatible implementation
new apis:

previewParams(): simlar to nextjs's draftMode(), returns scope and previewData (contains if invisible items should be shown)
sitePreviewRoute(req):
SitePreviewParams and SitePreviewData: types returned by previewParams()

TODO:

[x] generate random previewScopeSigningKey (my idea: store in redis - once we have that)
[x] decide if next-cookie is needed (remove comment+dependency if not)
[ ] (later, with siteConfig) Maybe improve typing of scope returned from previewParams() and passed as gql variable
[x] adjust to new graphql fetch client

@nsams please fix conflicts


Store inscriptions in taproot signature annex

@joostjager noticed that we could store inscriptions in the taproot signature annex, instead of in the tapscript. This would be great, since it would allow us to avoid needing two transactions to inscribe, and would allow us to use a simpler encoding independent of bitcoin script.
To do this, I think we'd need something like this proposal[0] to carve out annexes starting with a zero byte as unstructured and not having consensus meaning to be adopted.
[0] https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2023-June/021756.html

I can confirm that the isStandard rule is the only reason our (Luxor's) inscription tooling on the backend uses multiple transactions still. Would love to reduce that and also remove the need for tooling as honestly an annex inscription become simple enough that I would trust the browser with constructing them.

This would be great, since it would allow us to avoid needing two transactions to inscribe,

Interesting if rough maths of block space usage compression gains at constant inscription demand.
This might be one of the lowest hanging technical fruit to slow down on-chain fees growth, and make everyone happy.
If no consensus on the policy change deployment, easy to do standalone patch and let the market speaks.

@ariard Yeah, it would be a huge win. I'm thinking about creating a few patches and bundling them up in a branch:

Relax the 400kvb size limit for transactions as long as they have all segwit inputs. The quadratic hashing attack isn't an issue if no non-segwit inputs are spent, and this would allow users to create large inscriptions without having to submit transactions directly to miners.
Relax the 80 byte OP_RETURN limit, to provide an alternative to storing data in bare multisig outputs, which is easily the most harmful way to store data.
Relax the signature annex size limit for annexes which start with a zero byte, so inscriptions can be made in a single transaction.

Okay understanding the chain-space usage saving comes from eliminating the two-phase commit/reveal procedure.

Relax the 400kvb size limit (MAX_STANDARD_TX_WEIGHT): conflict of use-case incentives with lightning pinning issues (i.e more surface to abuse rule 5) ; if default or viable tx-relay paths needs opt-in mechanism a la bip125 to segregate traffic
Relax the 80 byte OP_RETURN limit (MAX_OP_RETURN_RELAY): needs to relax max 1 op_return (in IsStandardTx()) if not loss of space / fee efficiency as no batching ; note op_return outputs are pruned out of the UTXO set for any future lightweight inscription verification relying on assumeutxo
Relax the signature annex size limit: rebased the annex patchset on core and incomplete toy implem here: https://github.com/ariard/bitcoin/commit/6ebaa0ab2332b68fa26fce61d205d31f142d2da0

By the way, while reading https://docs.ordinals.com/inscriptions.html (which I understood is best inscription spec available instead to look more in ord inner guts), I wonder if the default “hello world” example isn’t inefficient and OP_1 / OP_0 can be used to save few bytes (if stack binary is what is canonical for inscriptions apps not script ops).
 That way they could be cached in “spend likeliness” tiers by utreexo archive nodes. Still scaling inscriptions "on-chain" and maintaining some equilibrium for full-node operators.

By the way, while reading https://docs.ordinals.com/inscriptions.html (which I understood is best inscription spec available instead to look more in ord inner guts), I wonder if the default “hello world” example isn’t inefficient and OP_1 / OP_0 can be used to save few bytes (if stack binary is what is canonical for inscriptions apps not script ops).

I think I have a branch open to do this, but we haven't gotten around to actually doing it #1403.


Improving language detection

Improving language detection using optional language detection library
Related Issues #567, #575, #612.
Implementing plugging wrappers for optional language detection library, wrapper template, and docs on implementing a custom wrapper.

Testing different libraries using dateparser/tests and #928

Language Detection Tests
Libraries Used:
fasttext - with 'lid.176.bin' model
spacy_langdetect
langdetect
dateparser -(this library)
langdetect
              precision    recall  f1-score   support

           0       0.80      0.93      0.86      5224
           1       0.91      0.75      0.82      4776

    accuracy                           0.85     10000
   macro avg       0.86      0.84      0.84     10000
weighted avg       0.85      0.85      0.84     10000

spacy
              precision    recall  f1-score   support

           0       0.80      0.94      0.87      5224
           1       0.92      0.75      0.83      4776

    accuracy                           0.85     10000
   macro avg       0.86      0.84      0.85     10000
weighted avg       0.86      0.85      0.85     10000

fasttext
              precision    recall  f1-score   support

           0       0.92      0.81      0.86      5224
           1       0.81      0.92      0.86      4776

    accuracy                           0.86     10000
   macro avg       0.87      0.86      0.86     10000
weighted avg       0.87      0.86      0.86     10000

dateparser
              precision    recall  f1-score   support

           0       0.59      0.71      0.65      5224
           1       0.60      0.47      0.53      4776

    accuracy                           0.59     10000
   macro avg       0.59      0.59      0.59     10000
weighted avg       0.59      0.59      0.59     10000

Other observations:

Speed : fasttext > langdetect > spacy > dateparser
The memory requirement in fasttext was the highest.

Thanks @gavishpoddar . On which dataset did you measure the quality?

Hi @lopuhin, I have used this data set .
I am still conducting research on them and will be testing cld3,  langid, Polyglot. And use dataset #928

The accuracy of langdetect is ~ 0.24 when the input text is small input data (1-3 word) on test_languages data.
Few language libraries were removed from results or not tested due to speed/maintenance/installation-related issues.
here and here and NLTK
Other Notes
Issues discussed with langdetect are confirmed.

here

The accuracy of langdetect is ~ 0.24 when the input text is small input data (1-3 word) on test_languages data.

thanks @gavishpoddar , that is test data from the dateparser library, right? Do you have accuracy values for other libraries on that data?

Accuracy scores were drastic changes if we discard the test data which is not supported by the library the below scores are are observed after the data is cleaned.
Accuracy values:
Using test_languages data (Partial) **:
fasttext
Accuracy Score: 0.7823
Data cleaned stats
Mapping Not Found: 204
Mapping Found:233
Total: 437
lang_detect
Accuracy Score: 0.6608
Data cleaned stats
Mapping Not Found: 299
Mapping Found:138
Total: 437
** Data cleaned and removed for those languages which are not supported by the above libraries, cleaning codes shared in below comment.

Code for cleaning supported languages:
import fasttext

fasttext_supported_lang = "af als am an ar arz as ast av az azb ba bar bcl be bg bh bn bo bpy br bs bxr ca cbk ce ceb ckb co cs cv cy da de diq dsb dty dv el eml en eo es et eu fa fi fr frr fy ga gd gl gn gom gu gv he hi hif hr hsb ht hu hy ia id ie ilo io is it ja jbo jv ka kk km kn ko krc ku kv kw ky la lb lez li lmo lo lrc lt lv mai mg mhr min mk ml mn mr mrj ms mt mwl my myv mzn nah nap nds ne new nl nn no oc or os pa pam pfl pl pms pnb ps pt qu rm ro ru rue sa sah sc scn sco sd sh si sk sl so sq sr su sv sw ta te tg th tk tl tr tt tyv ug uk ur uz vec vep vi vls vo wa war wuu xal xmf yi yo yue"
fasttext_supported_lang=fasttext_supported_lang.split(" ")

path_to_pretrained_model = 'lid.176.bin'
fmodel = fasttext.load_model(path_to_pretrained_model)

def param(cc, text, *_):
    if cc not in fasttext_supported_lang:
        return cc,None

    code = fmodel.predict([text])[0][0][0].replace("__label__", "")
    return cc, code

test = [
        param('en', "Sep 03 2014", "september 03 2014"),
        param('en', "friday, 03 september 2014", "friday 03 september 2014"),
        ...
        param('zu', "3 mashi 2007 ulwesibili 10:08", "3 march 2007 tuesday 10:08"),
        param('zu', "son 23 umasingana 1996", "sunday 23 january 1996"),
    ]

mapping_not_found=0
mapping_found=0
total_candidates=0

for x, y in test:
    total_candidates+=1
    if y == None:
        mapping_not_found+=1
    else:
        mapping_found+=1

print(mapping_not_found, mapping_found,total_candidates)

@gavishpoddar Thanks for posting the code - that's really helpful. And it's useful to know how many of the examples are in languages missing from the library. But this way to evaluate quality does not sound fair to me, especially comparing accuracy on different datasets between libraries. I don't think we should discard examples just because a library does not support them - after all we want them to work, don't we? I'd rather run evaluation on the whole dataset, doing re-mapping between languages if needed.
Also I see that even fasttext has a lot of "Mapping not found" - is that because languages are really missing, or because the names of languages are different?

Hi @lopuhin, Thanks for the review 😀
I will try to remap as many of them as possible and run tests to find the results without discarding the values. I am also working on the remapping part not just for the tests.
For some case, language is missing and in another case, it's because of mapping as fastest uses IS0-639 our data uses language codes by CLDR data. However, I will try to get some more insight into that. Additionally, there are a few languages supported by CLDR  and many of our test data with not very commonly written, i.e 'sr-Cyrl', 'uz-Cyrl', 'az-Latn' and are not packaged with the model.

Accuracy Score without removing language filters:
langdetect:  0.2376
fasttext: 0.3867
Other observations:

The test includes many languages which are not very commonly used (over 50% of test data with less than 0.5% (individually) Percentage of world population. data

With PR #932 and fasttext function.
Issue :

#567
#575

Are solved

Language Detection: Speed
For 10,000 calls:
fasttext :  14.983941316604614
langdetect :<PHONE_NUMBER>0343323
dateparser : 19.442069053649902

Pl find codes below

from dateparser import parse
from dateparser.custom_lang_detect.fasttext import detect_languages
from dateparser.custom_lang_detect.langdetect import detect_languages as langdetect_detect_languages

import time

start = time.time()
for _ in range(10000):
    parse(
    "Tuesday Jul 22, 2014" ,
    detect_languages_func=detect_languages
)

end = time.time()
print(end - start)

start = time.time()
for _ in range(10000):
    parse(
    "Tuesday Jul 22, 2014" ,
    detect_languages_func=langdetect_detect_languages
)

end = time.time()
print(end - start)

start = time.time()

for _ in range(10000):
    parse(
    "Tuesday Jul 22, 2014"
    )

end = time.time()
print(end - start)

WIP:
Language Detection: Accuracy Score
parse: 0.08849557522123894
search_dates: 0.1592920353982301
parse with fasttext: 0.09779646017699115
search_dates with fasttext: 0.336283185840708

These scores are not accurate and are just for discussion.
Pl find codes below

from dateparser import parse
from dateparser.search import search_dates
from dateparser.custom_lang_detect.fasttext import detect_languages
from tldextract import extract
import wikipediaapi
import requests
from bs4 import BeautifulSoup
r = requests.get("https://en.wikipedia.org/wiki/Augustus")
soup =   BeautifulSoup(r.content,"lxml")

urls = []
for a in soup.find_all('a', href=True):
    urls.append(a['href'])

used = []
data = []

for url in urls:
    tsd, td, tsu = extract(url)
    if td == "wikipedia" and tsd not in used :
        path = url.split("/")[-1]
        wiki_wiki = wikipediaapi.Wikipedia(tsd)
        page_py = wiki_wiki.page(path)
        if page_py.exists():
            text = page_py.text
            if len(text) > 400:
                text = page_py.text[:400]
            data.append([tsd, page_py.text[:400]])
    used.append(tsd)

total = 0
date_parser = 0
date_search = 0
ft_parse = 0
ft_search = 0

for x, y in data:
    total += 1
    y = y.replace('\n', ' ').replace('\r', ' ')
    try:
        dates, language_code_search = search_dates(y)
    except:
        dates = []
        language_code_search = None

    if len(dates) == 0 :
        continue
    dates_text = dates[0][0]
    language_code_parse= parse(dates_text)

    language_code_search_withft = detect_languages(y)
    if language_code_search_withft:
        language_code_search_withft = language_code_search_withft[0]
    else:
        language_code_search_withft =None

    language_code_parse_withft = detect_languages(dates_text)
    if language_code_parse_withft:
        language_code_parse_withft = language_code_parse_withft[0]
    else:
        language_code_parse_withft = None

    if x == language_code_search:
        date_search += 1

    if x == language_code_parse:
        date_parser += 1

    if x == language_code_search_withft:
        ft_search += 1

    if x == language_code_parse_withft:
        ft_parse += 1

date_search = date_search/total
date_parser = date_parser/total
ft_search = ft_search/total
ft_parse = ft_parse/total

print(date_search, date_parser, ft_search, ft_parse)

Thanks maintainers, this issue discussion is concluded.
Thanks for your time.


item stats: Add locator orb and dwarven rock cake

I thought the rock cake's left click only does 1 damage. Maybe that should be displayed too?
Or did Jagex swap Eat/Guzzle at some point? 😮

I didn't think the plugin was set up to support multiple stat changes of the same stat, but it apparently works just fine, so I've updated it accordingly.


add concept waste heat

Description of the issue
In dev meeting 19 we discussed the remaining heat / thermal energy subclasses of #393. We agreed, that a further subclass waste heatis needed.
Ideas of solution
A: primary energy process = B
B: transformation process: heat transfer
C: primary energy: waste heat is thermal energy that is...

output of energy transformations
byproduct of energy transformations

D: primary energy carrier: portion of matter?
E: Relations: ...
Workflow checklist

[x] I discussed the issue with someone else than me before working on a solution
[x] I already read the latest version of the workflow for this repository
[x] The goal of this ontology is clear to me

I am aware that

[x] every entry in the ontology should have a definition
[x] classes should arise from concepts rather than from words

What about: Waste heat is thermal energy that is the physical output of an energy transformation process and that is unused released into the environment?
I think the energy carrier is just portion of matter, as it can be different types of matter. Most common are liquid water, steam and air.

As heat is ambiguous (see e.g. #393) I rephrase my proposal to: Waste thermal energy is thermal energy that is the physical output of an energy transformation process and that is unused released into the environment?
Alternative term: waste heat.
Then we are consistent with all other thermal energy subclasses.


Empty ColorPicker div at bottom of window

When Color Picker is installed along with Atom Commander an empty space sometimes appears at the bottom of the window. Upon inspection one can see that it's a div with class ColorPicker.

This may be a bug on Atom Commander's side or maybe it's a combination of issues between the two packages.
To reproduce, install both packages. Open Atom Commander by pressing F9. Each time its panel gets focus, either by clicking on it or pressing F9, the empty space appears.
I've noticed that if the color picker is shown at least once, the panel stops appearing. Further debugging showed that if the ColorPicker div has an initial top position of 0 it never appears.

Please update color-picker to v2.1.1 and restart Atom. This should be fixed now!

Thanks! It doesn't appear anymore.

Great!


Not able to exclude files in flutter test coverage

I am trying to exclude few config files (constants/passwords/etc and also for translations) from the test coverage results in the flutter test results. When I run flutter test --coverage, the output file icov.info is having information about the config files as well, which is affecting overall coverage percentage. I don't see an option to exclude that. Not sure it is a bug or feature request?

That would be very useful to exclude generated code as well (*.g.dart)

If you upload for example to codecov.io the upload script allows to exclude files or folders.
I agree it would be great to have that in Dart/Flutter as well.

any news on this? this would be great!

We're very interested in this feature!

I specifically would like to be able to exclude l10n related files.

Request this also, thanks

+1

+1

+1

+1

Some news about this?

+1

+1

+1

+1

+1

+1

+1

As the "+1" comments keep coming in, I would recommend you "upvote" the original issue, so that the Flutter team can prioritize this issue accordingly (AFAIK, this is a metric they look at for prioritizing).
With that said, +1 🤪

Workaround
lcov --remove 'raw.xml' -o 'coverage.xml' '**/lib/**/*.query.dart' '**/lib/**/*.mutation.dart' '**/lib/**/*.g.dart'

I wrote a dart program that can filter files, lines
import 'dart:io';

main() {
  print('Start filtering the lcov.info file');
  final file = File('coverage/lcov.info');
  if (!file.existsSync()) {
    print('"lcov.info" does not exist');
    return;
  }
  const endOfRecord = 'end_of_record';
  final sections = List<LcovSection>();
  final lines = file.readAsLinesSync();
  LcovSection currentSection;
  lines.forEach((line) {
    if (line.endsWith('.dart')) {
      final filePath = line.replaceAll('SF:', '');
      currentSection = LcovSection()
        ..header = line
        ..filePath = filePath;
    } else if (line == endOfRecord) {
      currentSection.footer = line;
      sections.add(currentSection);
    } else {
      currentSection.body.add(line);
    }
  });
  final filteredSections = getFilteredSections(sections);
  final sb = StringBuffer();
  filteredSections.forEach((section) {
    sb.write(section.toString());
  });
  file.writeAsStringSync(sb.toString());
  print('Filtered the lcov.info file');
}

class LcovSection {
  String filePath;
  String header;
  final body = List<String>();
  String footer;

  String getBodyString() {
    final file = File(filePath);
    final content = file.readAsLinesSync();
    final sb = StringBuffer();
    getFilteredBody(body, content).forEach((item) => sb..write(item)..write('\n'));
    return sb.toString();
  }

  @override
  String toString() {
    return '$header\n${getBodyString()}$footer\n';
  }
}

List<LcovSection> getFilteredSections(List<LcovSection> sections) {
  return sections.where((section) {
    if (section.header.endsWith('.g.dart')) {
      return false;
    }
    return true;
  }).toList();
}

List<String> getFilteredBody(List<String> body, List<String> lines) {
  return body.where((line) {
    if (line.startsWith('DA:')) {
      final sections = line.split(',');
      final lineNr = int.parse(sections[0].replaceAll('DA:', ''));
      final callCount = int.parse(sections[1]);
      if (callCount == 0) {
        final fileLine = lines[lineNr - 1].trim();
        if (excludedLines.contains(fileLine)) {
          return false;
        }
      }
    }
    return true;
  }).toList();
}

const excludedLines = [
  'const Something();,
];

Is there a way now to exclude certain files from the generated lcov.info from flutter test --coverage? It's been almost 2 years since this issue was opened

Any updates!

Fixed via https://github.com/dart-lang/coverage/pull/302 and supported in flutter shortly after

Hi, the meta-comment (e.g., coverage:ignore-file ) does not fully cover our use case. We want to exclude generated files (e.g., *.g.dart generated by built_value_generator) from coverage but they do not contain the meta-comment. We could fix the generator to add the meta-comment but it might make more sense to let developers choose whether to include generated files from coverage or not.
See also https://github.com/dart-lang/coverage/issues/313.
Thank you.


windows MXNET_CUDNN_AUTOTUNE_DEFAULT = 0 no work.

For bugs or installation issues, please provide the following information.
The more information you provide, the more likely people will be able to help you.
Environment info
Operating System:
windows
Compiler:
use pre-build package install. from https://github.com/yajiedesign/mxnet/releases.
Package used (Python/R/Scala/Julia):
python
MXNet version:
0.11.0 (after build windows update 20170812)
Error Message:
When MXNET_CUDNN_AUTOTUNE_DEFAULT set to 0. the message still comes out.
d:\program files (x86)\jenkins\workspace\mxnet\mxnet\src\operator./cudnn_algoreg-inl.h:112: Running performance tests to find the best convolution algorithm, this can take a while... (setting env variable MXNET_CUDNN_AUTOTUNE_DEFAULT to 0 to disable)
What have you tried to solve it?
I tired version 0.10.1 (build windows update 20170810) . and the  MXNET_CUDNN_AUTOTUNE_DEFAULT = 0 works fine.

This part doesn't seem to change. Try an newest version.

@yajiedesign i've tried 20170830 version. it's also the same. the cudnn_autotune is closed because forward cost less time. but it still comes out lot of this message.


the code is wrong!  in    https://www.freecodecamp.org/news/lets-talk-about-semicolons-in-javascript-f1fe08ab4e53/

Describe the Issue
I read    orgin article, I find  all the code  show is wrong
for example

but  in  freecodecamp

Affected Page
https://www.freecodecamp.org/news/lets-talk-about-semicolons-in-javascript-f1fe08ab4e53/
Steps to Reproduce

Go to '...'
Click on '...'
Scroll down to '...'
See error

Expected behavior
The code show  not  all in a line.
It should has Indent  ， the code can run
Screenshots
No response
System

Device: [e.g. iPhone 6, Laptop]
OS: [e.g. iOS 14, Windows 10, Ubuntu 20.04]
Browser: [e.g. Chrome, Safari]
Version: [e.g. 22]

Additional context
No response

Thanks for catching this @luojiyin1987, and for these helpful details.
I went through and fixed these code blocks, and added JS highlighting.
I'll keep an eye on the article, and will close this issue after confirming the fixes go live after the next build.

Hey @luojiyin1987, thanks again for your patience and reporting this issue.
The build completed a little while ago, and the old cache expired. You should now be able to see the fixed code snippets and highlighting: https://www.freecodecamp.org/news/lets-talk-about-semicolons-in-javascript-f1fe08ab4e53/
Please let us know if you notice issues in any other articles. Also, feel free to @ mention me directly :slightly_smiling_face:

I check it ， it is OK！    @scissorsneedfoodtoo   🙂


Add new Cesium viewer as default in web app

Codecov Report

Merging #11 (274664a) into main (ed461dd) will decrease coverage by 0.05%.
The diff coverage is 71.42%.

@@            Coverage Diff             @@
##             main      #11      +/-   ##
==========================================
- Coverage   81.54%   81.48%   -0.06%
==========================================
  Files          12       12
  Lines         439      443       +4
==========================================
+ Hits          358      361       +3
- Misses         81       82       +1


Pages explorer menu does not reflect latest manual reordering changes

Issue Summary
In the Pages explorer menu, listings of pages that are manually ordered do not reflect the latest ordering changes, if the listings have been visited before.
This is a caching issue in the menu’s API client that might be better explained with a GIF:

Steps to Reproduce
This is reproducible with any Wagtail setup, bakerydemo or wagtail start my_site

Go to an explorer listing page, e.g. https://bakerydemo-thibaudcolas.herokuapp.com/admin/pages/60/?ordering=ord
Enable manual page ordering on the listing page
Open the Pages menu, and navigate to the listing for the same page.
Notice the current ordering in the Pages menu is the same as the ordering in the explorer listing
Close the Pages menu
Re-order some of the pages in the explorer listing page
Re-open the Pages menu, navigating to the same listing again
See that the ordering is the same as it was before, now different from what is shown on the listing page.

The ordering in the Pages menu should be up to date with what is displayed on the listing page.

I have confirmed that this issue can be reproduced as described on a fresh Wagtail project: yes

Technical details

Wagtail version: 2.3, and latest master
Browser version: Chrome

I think this is due to the client-side caching in the API client of the explorer menu, most likely somewhere around here:
https://github.com/wagtail/wagtail/blob/3134ffa119c15097c8b3c2a0422dd89f7c23304a/client/src/components/Explorer/actions.js#L89-L91
I think the simplest fix would be to remove the caching, but it should also be possible to just disable it for the one explorer listing page the user is currently on. Having the reordering code invalidate the cache would also be possible.

This issue no longer exists and can be closed.
https://github.com/user-attachments/assets/8e94f53c-663a-4d66-972d-432be732d85e


Console: add a new route with non-exist handler path > deploy stack > crash

Steps to reproduce:

Run sst start
Add a new route with handler pointing to a non-exist file
Select redeploy in console
sst start crashes after redeploy succeeds

We are transition this repo to https://github.com/sst/v2 and are closing this issue for now. If it is still relevant please reopen it there - sorry for the trouble


How to train a car

Hello, thank you very much for being open source.
I have a problem that I only see about face and cat  in your code, but your paper has about car. So I want to ask you how to train cars?
Thank you very much!
@elliottwu

Hi!
Cars are a bit tricky with the canonical depth maps we are using to represent shapes in the current model. Depth maps cannot capture the full 3D shape of the cars due to occlusion. In our car experiments, we render ShapeNet cars from random top views. The model then automatically discover the canonical viewpoint to be the top view of the cars, and those top view depth maps can therefore capture a farily large surface of the cars. For real car datasets and many other objects, this canonical depth map representation will not work well, and will need to be replaced with other 3D representations.
Although our synthetic car results may not be practically useful, it can be rather helpful for other people to better understand the method and its limitations. So I plan to release our rendered car images and the trained model as well hopefully next week. Thanks!

Any updates on when trained model for cars and rendered images will be available?

@elliottwu Hi, thanks for your open source sharing. Is there a plan to release your car training datasets and car pretrain models?

Finally had the chance to look into this again. The dataset and experiment config on the synthetic cars are now released.


Improve BuildServerBuildSystemTests error handling

This changes the python test server to catch write errors and exit 0 in that case. It also adds a missing call to connection.close() in BuildServerBuildSystem.deinit() to close the open pipes on shutdown.

@swift-ci please test


@Wop525

          @Wop525 Thank you for opening this issue! I'll get this triaged for review ✨

Originally posted by @nguyenalex836 in https://github.com/github/docs/issues/32761#issuecomment-2088738756

@Wop525 #32783


Enhancement: use tracks to autocalculate a speed

As said in the title, it might be useful for the tracks node to automatically calculate a speed, not sure what unit or variable would be appropriate?
Possibly trackspeed and ms^1 ?
Would be nicer than the hacky method I think I am using now!

and do what with it ? polylines can't have a speed ?

Oh yeah I mean use the tracks data to compute the speed for the object contributing the location data which is making the track.

All the tracks does is hold onto the series of last positions to create a line - and it just emits a line. You still need to pass the object itself to the map and It doesn't update the object.
The other problem is that just given a position the only time difference we have is time of arrival at us - which may or may not be realistic given reading/network delays etc.
But it's fairly simple to create that in a function like this (or something like it :-)
var things = context.things || {};
var last = context.last || {};
var _toRad = function(deg) { return deg * Math.PI / 180; }
var _toDeg = function(rad) { return rad * 180 / Math.PI; };

var bearing = function (lat1,lng1,lat2,lng2) {
    var dLon = _toRad(lng2-lng1);
    var y = Math.sin(dLon) * Math.cos(_toRad(lat2));
    var x = Math.cos(_toRad(lat1))*Math.sin(_toRad(lat2)) - Math.sin(_toRad(lat1))*Math.cos(_toRad(lat2))*Math.cos(dLon);
    var brng = _toDeg(Math.atan2(y, x));
    return Math.round(((brng + 360) % 360)*100)/100;
};

var distance = function(lat1, lon1, lat2, lon2) {
	if ((lat1 == lat2) && (lon1 == lon2)) { return 0; }
	else {
		var radlat1 = Math.PI * lat1/180;
		var radlat2 = Math.PI * lat2/180;
		var theta = lon1-lon2;
		var radtheta = Math.PI * theta/180;
		var dist = Math.sin(radlat1) * Math.sin(radlat2) + Math.cos(radlat1) * Math.cos(radlat2) * Math.cos(radtheta);
		if (dist > 1) { dist = 1; }
		dist = Math.acos(dist);
		dist = dist * 180/Math.PI * 60 * 1.1515 * 1609.344;
		dist = Math.round(dist*100)/100;
		return dist;
	}
}

if (msg.payload.lat === last.lat && msg.payload.lon === last.lon) { return; }

var foo = things[msg.topic];
if (foo) {
    msg.payload.speed = distance(foo.lat,foo.lon,msg.payload.lat,msg.payload.lon)/((Date.now() - msg.payload.ts)/1000);
    msg.payload.hdg = bearing(foo.lat,foo.lon,msg.payload.lat,msg.payload.lon);
}
msg.payload.ts = Date.now();

things[msg.topic] = msg.payload;
context.last = msg.payload;
context.things = things;
return msg;

The implementation I have on my end uses a LastSeen time value to do the calculation, but I could see an implementation for the tracks node simply using a timestamp when fed to the tracks node or a text input to select a message value (e.g. msg.lastseen) for the timing info.
Didn't realise the track was simply a drawn line not associated with the object generating it.
Might be worth linking a track to the object? (This would be nice in terms of being able to toggle tracks on and off per object within a layer.)

The tracks can already be associated with different layers - and depending on which you choose varies how you toggle hem on or off.

Yeah I have been using this to separate tracks into aircraft, ground etc... but was looking for a way to declutter specific tracks on an individual object basis, decluttering tracks on click on an aircraft object landing around / on an aircraft carrier.
When aircraft are landed on the deck, they still generate a track as the carrier is moving which ends up cluttering the area directly behind the carrier which will obscure tracks and aircraft (objects) which are landing onto that carrier.
In terms of sorting this - I wanted to automatically de-track any aircraft object in proximity to the aircraft carrier at the same altitude as the carrier.
From what I can tell, at the moment I would need to either delete the object (which isn't really feasible from a live track) or add every aircraft to its own layer (which also isn't very feasible when I have 50 - 100 aircraft at any given time.)

you could always have a switch before sending to track node to filter out any aircraft tracks below say 25m ? so once on deck they didn't create a track ?


How can I resolve the vulnerability in JSTree's get_node flagged by Checkmarx?

In Checkmarx, this vulnerability is flagged as follows: "The method function embeds untrusted data in generated output with jQuery, at line 962 of jstree. This untrusted data is embedded into the output without proper sanitization or encoding, enabling an attacker to inject malicious code into the generated web-page." This vulnerability arises from the following code:
else if(typeof obj === "string" && (dom = `$('#'` + obj.replace($.jstree.idregex,'\\$&'), this.element)).length && this._model.data[dom.closest('.jstree-node').attr('id')]) {
    obj = this._model.data[dom.closest('.jstree-node').attr('id')];
}

And also this:
if(as_dom) {
    obj = obj.id === $.jstree.root ? this.element : $('#' + obj.id.replace($.jstree.idregex,'\\$&'), this.element);
}

These snippets reference the following code:
$('#' + obj.replace($.jstree.idregex,'\\$&'), this.element)
And this:
$('#' + obj.id.replace($.jstree.idregex,'\\$&'), this.element)

I guess those snippets could be replaced with this.element.querySelector(... but I will check and let you know.

Hello, thank you for responding. Yes, I tried with this.element.querySelector(...); it no longer detects the vulnerability, but the get_node function doesn't work properly anymore.

I will only be doing critical fixes in v.3 from now on. While this report sounds troublesome I struggle to find and actual exploit for this. If an actual exploit is possible I will fix this ASAP.


Missing genes in output after adding alignments to clustering.

Expected Behavior
All genes from the input file should be in the output.
Current Behavior
Without adding the alignment the behavior is as expected. But when alignment is included some genes go missing from the output file.
Steps to Reproduce (for bugs)
Please make sure to execute the reproduction steps with newly recreated and empty tmp folders.

mmseqs createdb $infile $DB/$n --dbtype 2
mmseqs cluster $DB/$n $C90/${n}_C90_cluster ${n}_tmp --min-seq-id 0.90 --cov-mode 1 -c 0.5 --cluster-mode 2 --cluster-reassign --threads 5
mmseqs align $DB/$n $DB/$n $C90/${n}_C90_cluster $C90/${n}_C90_align --alignment-mode 2 --threads 5
mmseqs createtsv $DB/$n $DB/$n $C90/${n}_C90_cluster ${odir}/${n}_C90_cluster.tsv --threads 5
mmseqs createtsv $DB/$n $DB/$n $C90/${n}_C90_align ${odir}/${n}_C90_cluster_align.tsv --threads 5

MMseqs Output (for bugs)
Please make sure to also post the complete output of MMseqs. You can use gist.github.com for large output.

wc -l 09d_mmseqs_cluster_tsv/*
344349 09d_mmseqs_cluster_tsv/Vibrio_cholerae_C90_cluster_align.tsv
358964 09d_mmseqs_cluster_tsv/Vibrio_cholerae_C90_cluster.tsv

Context
Providing context helps us come up with a solution and improve our documentation for the future.
I'm trying to use MMSeqs2 instead of CD-HIT but I need the alignment of each gene in a cluster to the representative gene.
Your Environment
Include as many relevant details about the environment you experienced the bug in.

Git commit used (The string after "MMseqs Version:" when you execute MMseqs without any parameters):
Which MMseqs version was used (Statically-compiled, self-compiled, Homebrew, etc.):
For self-compiled and Homebrew: Compiler and Cmake versions used and their invocation:
Server specifications (especially CPU support for AVX2/SSE and amount of system memory):
Operating system and version:

The alignments are probably falling below the default alignment threshold. Just give a large value to the -e parameter and it should not reject any alignments anymore.

Ok. That totally works. Thank you!!
I had to give it a super large value. Should I think about adjusting some clustering thresholds? Does this mean some of the sequences in that end up in various clusters aren't a great fit?


fixes not finding 4 in a row in last column

it was checking only 6 wide (height) not 7 wide (width) when looking for a 4 in a row from top-left to bottom-right

Thanks for the PR! Resolves #96


Implement unbox_value for more types

Implement unbox_value for more types
Useful for calling an API that returns IInspectable

Thank you.


Feature- ABOUT US

Add a responsive ABOUT US page to inform the user more about the project and its goals
Kindly assign it under GSSOC and a level

Add a responsive ABOUT US page to inform the user more about the project and its goals
Kindly assign it under GSSOC and a level

@CS251000 assigned this issue to you
You can take the reference from the README.md file.
Kindly read the README.md and CONTRIBUTING.md file before the contribution.
I'll add the gssoc label later you can start working on it.

hey kindly assign this issue to me would be delighted to work on this!!!!


[unrelated] deathlooptexttool works great!

The deathlooptexttool works great! 👍  You should totally make a repository with the code and exe here :D
The files for testing can be found at https://forum.xentax.com/viewtopic.php?p=193004&hilit=deathloop#p193004 for example

@ghostlyghastly
no need to make repository


Create an intro

The introduction should provide a clear and concise overview of:

Who you are:  Introduce yourself and your role
Your strengths: Your Skills and Technologies

Good Job


Load the right version of consolidated protocols

Fixes #356
This seems to fix it, but I'm not familiar w/ all of the different scenarios. Does this look right @bitwalker?

This looks good to me @aaronjensen. Thanks for the PR!


Partitions support

Are you planning to add partitions support?
It will be nice to have the similar functionality
CREATE EXTERNAL TABLE baby_names_by_century (
name STRING,
gender STRING,
id STRING
)
PARTITIONED BY
(date STRING)
ROW FORMAT
SERDE 'org.apache.hadoop.hive.contrib.serde2.RegexSerDe'
WITH SERDEPROPERTIES
("input.regex" = "([^ ]),([^ ]),([^ ]*)")
LOCATION
"path"

Yes partition support will be coming to SparkSQL data sources in Spark 1.4. We will update Spark-CSV to support it as well.

This was released in Spark 1.4.

Contrary to what this says, Spark 1.6.1 does NOT seem to have support for partition-discovery for csv sources. Can someone confirm this?

@pchalasani This CSV library currently does not support that.
(See https://github.com/databricks/spark-csv/issues/123, https://github.com/databricks/spark-csv/issues/197, https://github.com/databricks/spark-csv/issues/106)


Use pandas.

First pass done with text_to_csv and etext_to_rcsv. Need to do text_to_rcsv next and then check over all results.

Taken care of now.


Calling Kotlin scripts in GitHub Actions is slow

Not clear what takes such long? Is it compilation? Let's check it.

https://github.com/typesafegithub/github-workflows-kt/actions/runs/6833343985/job/18585004676
A trivial Kotlin script:
#!/usr/bin/env kotlin
println("Hello from Kotlin!")

took 13 seconds to run.

Asked for help on Kotlin Slack: https://kotlinlang.slack.com/archives/C0BT46EL8/p1699694112647249


Want some help?

Hi!
I'm the former lead dev for the official NPM CLI, the author of npx and the npm@5 release that got NPM matching Yarn speeds back in the day. Pretty much until NPM inc started union busting and firing all my colleagues lol
I'm also an avid Rust user, and for a while, I was trying to write a package manager for js in Rust, too, in the form of https://github.com/orogene/orogene until I burned out and decided I'd rather be doing something else with that time.
This is all to say, I would love to help out, if only as an accessible resource for y'all when you're trying to navigate the way NPM &co typically do things, how to stay compliant with weird third party registries, and whatever else you might want to chat about! The "community" link on your site wasn't working but if there's a discord or something you'd like me to join and this seems like a good idea please lmk!
Anyway great job and I look forward to seeing where this project goes!

@zkat thank you so much for reaching out! You can join our discord server here and I would love to chat about what we're doing at volt and I also had a few questions 🙂 . Looking forward to connecting with you!

Also regarding the website 😁, I just needed to get something quick and dirty on the domain, will be working on it after I get some more work done on the product!!

yay!


[BUG] Error in handler LangChainTracer, handleChainStart: TimeoutError: The operation was aborted due to timeout #3292

It's always slow or timeout at first conversation. Does the chain stop after a period of time?

chatbot | 2023-12-27 03:10:40 [INFO]: ⬆ POST /api/v1/prediction/037cd272-8dbd-425a-a87a-4bd96b30116d
chatbot | [chain/start] [1:chain:ConversationalRetrievalQAChain] Entering Chain run with input: {
chatbot | "question": "Hello",
chatbot | "chat_history": []
chatbot | }
chatbot | Error in handler LangChainTracer, handleChainStart: TimeoutError: The operation was aborted due to timeout
chatbot | [retriever/start] [1:chain:ConversationalRetrievalQAChain > 2:retriever:VectorStoreRetriever] Entering Retriever run with input: {
chatbot | "query": "Hello"
chatbot | }
qdrant | 2023-12-27T03:12:36.603842Z INFO actix_web::middleware::logger: <IP_ADDRESS> "GET /collections HTTP/1.1" 200 184 "-" "qdrant-js" 0.088474
qdrant | 2023-12-27T03:12:39.099975Z INFO actix_web::middleware::logger: <IP_ADDRESS> "POST /collections/gemini768/points/search HTTP/1.1" 200 1624 "-" "qdrant-js" 1.449681
chatbot | [retriever/end] [1:chain:ConversationalRetrievalQAChain > 2:retriever:VectorStoreRetriever] [6.94s] Exiting Retriever run with output: {
chatbot | "documents": [

...

chatbot  | Error in handler LangChainTracer, handleLLMEnd: TimeoutError: The operation was aborted due to timeout
chatbot  | [chain/end] [1:chain:ConversationalRetrievalQAChain > 5:chain:StuffDocumentsChain > 6:chain:LLMChain] [149.38s] Exiting Chain run with output: {

Do you have the LANGCHAIN_TRACING_V2 variable enabled in the server/.env file ? This error is seen when you have this flag enabled without a corresponding LANGCHAIN_ENDPOINT in the .env
Comment out these variables and use the Chatflow / Analytics to configure LANGCHAIN tracing.

Do you have the LANGCHAIN_TRACING_V2 variable enabled in the server/.env file ? This error is seen when you have this flag enabled without a corresponding LANGCHAIN_ENDPOINT in the .env
Comment out these variables and use the Chatflow / Analytics to configure LANGCHAIN tracing.

Thank you.
But first message of the conversation is very slow. Nevertheless the performance after that (from second message) is good. First message maybe take 121.94s to finish as this trace:
https://smith.langchain.com/public/430f55dc-691d-4512-8fea-499469619a09/r


Get the design feedback

[ ] Meeting with HSE designer
[ ] (optional) feedback from another team

Done!


Application package in the context of a cluster

To address @chrislovecnm comment:

are we going to name charts that have multiple variants
For example Redis without ha, redis with slaves, redis clustered
Do we have one massive nasty chart or three charts?

We have to define what is a packaged application in a context of a cluster.
If k8s offers me an abstraction of compute resources, helm offers me an abstraction to run application in this context.
IMHO, we deploy application on a cluster to be replicated and to avoid the SPOF. With this in mind, I would say that the default should be the replicated version of the application.
In this case, I'd rename etcd-operator to etcd for instance.

are we going to name charts that have multiple variants
For example Redis without ha, redis with slaves, redis clustered
Do we have one massive nasty chart or three charts?

One of the goals of the charts project is to provide cloud native patterns for applications on Kubernetes. While it's of course not possible to satisfy every possible need for an installation, we do try to handle these on a case-by-case basis.


Make packaging scripts for Hunspell dictionaries

As dictionaries are used by Presage predictive keyboard, package Hunspell dictionaries in UTF-8 (required by presage). Should be easy if based on https://github.com/wooorm/dictionaries

Published via https://github.com/sailfishos-chum/hunspell-dictionaries


Fix animation change callbacks

Adds proper signal callbacks for changes to the AnimationLibrary. Also fixes typo for wrong function being assigned to the animation_removed signal.

Thanks!


Post parent returns null

A redo of #163

@jgrossi, I had to delete the old branch due to a git issue, so I redid the pull request.

Thanks @mattKendon :)


Update AZ-104.mdx

Added a practice test resource

Hi, Added my practice test resource (with both text and video explanations) and labs for each question.


joystick_drivers: 2.3.2-1 in 'eloquent/distribution.yaml' [bloom]

Increasing version of package(s) in repository joystick_drivers to 2.3.2-1:

upstream repository: https://github.com/ros2/joystick_drivers.git
release repository: https://github.com/ros2-gbp/joystick_drivers-release.git
distro file: eloquent/distribution.yaml
bloom version: 0.8.0
previous version for package: null

The release repository is missing the eloquent.ignored file, so I want to hold off on merging this.  @gonzodepedro how did you end up doing the release?  How did you ignore the "other" packages in this repository?

Closing this, as I'll do another release shortly.


Support sourcing from packages

Pull Request Test Coverage Report for Build 724196674

27 of 38 (71.05%)  changed or added relevant lines in 2 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.1%) to 74.322%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

cmd/reinforcer/cmd/root.go
5
7
71.43%

internal/generator/executor/executor.go
22
31
70.97%

Files with Coverage Reduction
New Missed Lines
%

internal/generator/executor/executor.go
1
77.05%

Totals

Change from base Build 699712494:
-0.1%

Covered Lines:
712

Relevant Lines:
958

💛  - Coveralls


A-Light-and-Fast-Face-Detector-for-Edge-Devices

I notice that you have a fork of the project (A-Light-and-Fast-Face-Detector-for-Edge-Devices), is your implementation of Ultra light fast generic face detector an implementation of that paper. I am trying to train a head detection model which seems to have been already done in A-Light-and-Fast-Face-Detector-for-Edge-Devices, however it is in MXNET model, the mxnet to ONNX conversion fails with some slice error - appears to be a bug
https://github.com/onnx/onnx/issues/2245
I wanted to know whether you were able to convert the MXNET to ONNX model without any isues.
If your model is different from the A-Light-and-Fast-Face-Detector-for-Edge-Devices, can you let me know whether it can be used for transfer learning for head detection. Can you provide me with some pointers of converting your model to tensorflow for  transfer learning

These two projects are different algorithms.
You can modify this project to train a head detection model.
I haven't converted this model to tf yet.
I haven't converted the mxnet model of A-Light-and-Fast-Face-Detector-for-Edge-Devices to onnx yet.

Many thanks for your reply, I am trying to run this model on a Kendryte k210 chip, some one has ported your model to that chip. I will check out whether there is any performance degrade in the conversion process.https://github.com/kendryte/nncase/tree/master/examples/fast_facedetect
The kendryte model converter expects a caffe model or a tensorflow model.
I will first try to convert your current model to Kendryte model before venturing on retraining/modifying.

Many thanks for your reply, I am trying to run this model on a Kendryte k210 chip, some one has ported your model to that chip. I will check out whether there is any performance degrade in the conversion process.https://github.com/kendryte/nncase/tree/master/examples/fast_facedetect
The kendryte model converter expects a caffe model or a tensorflow model.
I will first try to convert your current model to Kendryte model before venturing on retraining/modifying.

@krishnak Maybe it should be reduce the number of priors and change the size of the feature map, which I have trained on the brainwash dataset. But trying to implement on tensorflow, there are still some problems.

@xautzxc I noticed that you have reported a bug on Kendrte k233.
Are you able to run the fast face detect model on the Sipeed board? I am still setting up the development environment for Kendryte SDK. If you have  compiled the fast face detect for Sipeed Maix Dock, can you upload it?

@krishnak
In the nncase example, you can directly burn it to the sipeed board.

@xautzxc  Do you mean to say face.bin can run on sipeed board? - How is it possible? is the LCD driver same for both Sipeed and Kendryte boards? I thought Kendryte board is 3.5'' and Sipeed 2.4''

@krishnak  I tested nncase examples on the maixduino board before and did not encounter the problem you said. Next week I will test the examples on the maix dock board.All  resolution is 320 x 240,though LCD have different physical size.

@xautzxc Thanks for keeping up this conversation, I did a fresh download and compile just now, the following is the status on Sipeed Maix Dock when compiling using the platform io build setup.

Linker error as described above - it might disappear by using the correct linking flags, but I used the solution as above.
The LCD driver in the codebase seems to work for the 2.4'' screen however the image is pixelated - please see this https://forum.kendryte.com/topic/438/model-init-error-nncase-example/3
3.There is a Model init error so KPU inference doesn't work with incbin.
I recompiled the code (separately) with st7789.c which some one was using on a Maixdock - however the image is still pixelated. I have posted the link on the kendryte forum the same image as a JPEG using loboris micropython firmware. It appears that some information is lost during the image2c conversion

If you have a solution for the model init error let me know.
I will try to compile the other examples for nncase to see whether they work.

I have this working on the Sipeed board, you need latest SDK for the nncase model to work, depending on which build setup one has chosen, it needs to be addressed.
Now to the results, the inference time is around 1.44 sec for a single frame. This is the time taken by the model to be executed in the KPU for infering the image. Image rendering and box drawing times are NOT included.

@krishnak  Congratulations.
You can modify the model parameters to adapt your k210 to achieve higher frame rates(eg.5-6fps).
BTW,Have you implement this method on tensorflow? And which dataset is used in yours?

@xautzxc I need a model which needs to infer with in 20-30ms, the yoloV2 sipeed version is doing in camera inference around that, however that model is heavily pruned, it is detecting faces only of a certain size, I will do a comparison of yolov2 sipeed model with the images in this project to see how it performs i.e whether it detects all the faces as this one does.
Tensor flow - Not yet, I will first need to do this comparison with yolov2 before going there.

@xautzxc I have run a comparison between the Sipeed yolov2 and this model on K210.
Sipeed yolov2 has only 23 layers and all of them use a KL_K210_CONV which as per this link might be hardware accelerated.
https://github.com/laanwj/k210-sdk-stuff/blob/master/doc/kpu.md
Total time taken is 13ms.
Where as this face detector has 102 layers, and it uses 3 quantized Convulutions - each of them takes between 200-230ms that itself results in 660ms, there is one quantized binary taking 70ms the remaining layers only take 120ms in total.
I am yet to compare the accuracy of the yolov2 against this model, I am sure this model will be far superior in terms of accuracy.

@xautzxc just figured out that the Slim model has been ported to k210 kmodel, it is having 73 layers and performs at 67ms on k210. Performance is in par with RFB-320 when I tested it with image 1.jpg with score thresholds at 0.15 and 0.75
@Linzaer Great work


[Feature Request]: Implement Authentication Provider plugins

What would you like to happen?
Currently we have 2 authentication provider plugins in the codebase which go largely unused: a basic username/password provider and one for Kerberos.
What we need:

Create authentication metadata plugins with user interfaces and serialization
Make use of the authentication metadata in the form of plugins and options ([x] authenticate at software start, ...)

This will allow us to create integrations with common credentials providers such as Vault
Issue Priority
Priority: 3
Issue Component
Component: API

Oh, this is really cool! By the way, how could I use kerberos before this implementation? I didn't find any documentation on it, thank you!  (Sorry for my English)


IGNITE-19082: Catalog. Cleanup dead code

https://issues.apache.org/jira/browse/IGNITE-19082

Thank you for submitting the pull request.
To streamline the review process of the patch and ensure better code quality
we ask both an author and a reviewer to verify the following:
The Review Checklist

[ ] Formal criteria: TC status, codestyle, mandatory documentation. Also make sure to complete the following:
- There is a single JIRA ticket related to the pull request.
- The web-link to the pull request is attached to the JIRA ticket.
- The JIRA ticket has the Patch Available state.
- The description of the JIRA ticket explains WHAT was made, WHY and HOW.
- The pull request title is treated as the final commit message. The following pattern must be used: IGNITE-XXXX Change summary where XXXX - number of JIRA issue.
[ ] Design: new code conforms with the design principles of the components it is added to.
[ ] Patch quality: patch cannot be split into smaller pieces, its size must be reasonable.
[ ] Code quality: code is clean and readable, necessary developer documentation is added if needed.
[ ] Tests code quality: test set covers positive/negative scenarios, happy/edge cases. Tests are effective in terms of execution time and resources.

Notes

Apache Ignite Coding Guidelines

what about this Let’s remove using/keeping schema name instaed of schema id (NewIndexEntry class as example)?
I have addressed this issue.


Update VM related deps

Preface
Current version of package uses older version of EthreumJS VM dependencies. This PR makes attempts to use recent versions of  these dependencies.
Changes

[x] Updated EthreumJS VM dependencies to latest versions.
[x] Changes TypeScript compiler target to ES2020 to use native bigints. Move codebase to use bigints instead of BNs.
[x] Introduced SolTxDebugger.createVm() method to properly configure VM and it's components (still run PoW consensus)
[x] Removed AdjustedVMContext due to it was a workaround and should not be needed any longer.
[x] Codebase cleanup.

Notes

Tests are currently failing. I investigated and figured out following:

StateManager.copy() does not produce an exact copy. So while foundy-related contract (0x0901d12ebe1b195e5aa8748e62bd7734ae19b51f) is set in original state manager, it is absent in a copy of state manager.
When using original state manager (instead of copying) for a sake of tests, in 95adce6 tests are passing. But after merge of 441778b. some are failing. This is mabe related to newly introduced cheatcodes.

Still, replacing state manager copy with original instance reduces amount of failures to 6 (related to pranks) instead of 30 (related to all foundry-related contracts).

Regards.

Codecov Report

Merging #24 (4d19a7d) into main (2342a1d) will increase coverage by 0.18%.
The diff coverage is 87.58%.

@@            Coverage Diff             @@
##             main      #24      +/-   ##
==========================================
+ Coverage   77.19%   77.37%   +0.18%
==========================================
  Files          20       20
  Lines        1811     1830      +19
  Branches      373      374       +1
==========================================
+ Hits         1398     1416      +18
- Misses        250      251       +1
  Partials      163      163

Impacted Files
Coverage Δ

src/artifacts/helpers.ts
49.48% <ø> (ø)

src/debug/foundry_cheatcodes.ts
86.36% <84.95%> (+0.55%)
:arrow_up:

src/debug/sol_debugger.ts
84.51% <94.11%> (+0.81%)
:arrow_up:

src/debug/opcode_interposing.ts
85.71% <100.00%> (+0.71%)
:arrow_up:

src/utils/misc.ts
69.53% <100.00%> (-0.79%)
:arrow_down:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Application name different from package.json name, possible extra argument for CodePush?

Is your feature request related to a problem? Please describe.
Currently when building a new release using Codepush, Codepush uses the package.json name to determine where to look in the ios directory. So if the package.json name is myApp, Codepush will look for /ios/myApp. However, our application is named the same everywhere (product and company share a name). We're in a monorepo (using NX and React Native), so every package name is something like @companyName/mobile. The ios folder structure however is just /ios/companyName.
Describe the solution you'd like
It'd be great if I could add an argument to tell the CLI where to look for iOS files.
Describe alternatives you've considered
I've renamed the package for now, but that makes for a confusing situation when running NX commands.
Additional context
None

Hello @verluci, according to your request I think that you can use existing arguments like --xcode-project-file and --plist-file to provide explicit path to iOS part of the project.
Please, try it and let me know if this helps.

We haven't heard from  you for a while, so I'm closing this issue. Feel free to reach out or reopen the ticket if you still have concerns or questions.


Added gitlab-es provider for ElasticSearch GitLab API

TODO: add tests, but idk how to write those correctly in that case.
Hey, I just made a Pull Request!

I added the gitlab-es-discovery provider for discovery of catalog files. This uses the GitLab-ElasticSearch integration instead of the regular GitLab API to look for catalog files.
Gains:

way fewer API queries than with the gitlab-discovery integration so less rate limiting errors
slightly faster as it will only perform 1 request for the search and 1 request for each matching project (before the readUrl happens)

Known limitations:

only looks into the default branch (this is how the ES integration works so there is no workaround)
still a non-flat number of API requests

It's always better to use url locations with targets but I hope this is the second best thing with GitLab.
:heavy_check_mark: Checklist

[x] A changeset describing the change and affected packages. (more info)
[x] Added or updated documentation
[ ] Tests for new functionality and regression tests for bug fixes
[ ] Screenshots attached (for UI changes)
[x] All your commits have a Signed-off-by line in the message. (more info)

Hi,
Will make the necessary adjustments when I'm back from the hospital :) should be in ~ 2 weeks. Thanks for the helpful review.

Hey,
Still recovering from surgery, will try to resume work on that after I am done resuming $dayjob as there will be a lot of different priorities.
Please bear with me.

@matchaxnb feel free to re-open this and continue working on it when you feel better!


Map display crashes when marker is present

Configuration producing the crash:
- {{maps}}
    - Center
        - 37.761013,-122.4216972
    - Markers
        - [[Dandelion Chocolate]]
            - 37.761013,-122.4216972

fix has been under review: https://github.com/Roam-Research/roam-depot/pull/380


1.0.3 is latest now

Hi Stefan,
Just an FYI, but you'll get 1.0.3 installed from the Istio get script now over at: https://github.com/stefanprodan/istio-gke/blob/master/docs/istio/04-istio-setup.md
It'd be good if you could update the instructions but it's not too hard to figure out otherwise.
I also got this error while deploying with helm:
helm upgrade --install istio ./install/kubernetes/helm/istio --namespace=istio-system -f ./my-istio.yaml
Release "istio" does not exist. Installing it now.
Error: apiVersion "config.istio.io/v1alpha2" in istio/charts/mixer/templates/config.yaml is not available

Alex

Looks like the CRD is needed with helm less than 2.10.0 - https://istio.io/docs/setup/kubernetes/helm-install/#installation-steps

Cheers 👍

thanks for the heads up :)


Problems adding specific configuration for a binder

Hi,
I found some issues when I wanted to use a specific environment configuration for one of the binders I'm using.
I'm using spring-cloud-stream 2.0.0.RELEASE (as a dependency from spring-cloud-stream-binder-kinesis 1.0.0.RELEASE) and spring-boot 2.0.3.RELEASE.
I need to use 2 kinesis streams: input and output. I need to define different credentials for each because they live in different AWS accounts. I finally could do it by defining spring.main.sources, but with some workarounds.
My configuration looks like this:
....
spring.cloud.stream:
   bindings:
     input:
       ...
     output:
       ...
       binder: myBinder
   binders:
      myBinder:
        type: kinesis
        defaultCandidate: false
        environment:
          spring:
            main.sources: my.config.KinesisOutputConfiguration
            cloud.bootstrap.enabled: false
....

The idea of using spring.main.sources was suggested by @artembilan in https://github.com/spring-cloud/spring-cloud-stream-binder-aws-kinesis/issues/74.
I didn't know either that the SpringApplication could be customized through configuration like that, or that spring-cloud-stream was integrating that functionality.
Before starting describing the problem, my apologies if the issues don't have to do with this library specifically. While debugging to find what the issue was, I saw that many different libraries are involved, so spring-cloud-stream is my first guess.
The first problem
The first problem I found is that the property spring.main.sources was being ignored in my case until I included the dependency spring-cloud-commons.
The short explanation is that this dependency contains an environment post processor called HostInfoEnvironmentPostProcessor that reorders the property sources of the environment.
The longer explanation, I had to debug a lot to find the reason:
When SpringApplication#prepareEnvironment tries to bind the properties to the Application class,
one of the invoked methods in the call stack is org.springframework.boot.context.properties.source.ConfigurationPropertySources#get. It searches for the first property source called configurationProperties and the binding will only pick the property sources defined in the list after that one.
The spring.main.sources property is available in the property source commandLineArgs, and in my case, it was in the list before configurationProperties, so it was being ignored. HostInfoEnvironmentPostProcessor moves theconfigurationProperties element to the beginning of the list and that causes commandLineArgs to be processed for binding the properties to SpringApplication
I'm not sure if this is the expected behaviour, but it was not obvious for me with the knowledge I have about  the framework and libraries of Spring, and after reading the docs of spring-cloud-stream docs  and others.
The second problem
The second problem I found is that when I added the dependency spring-cloud-context to the project. The beans defined in KinesisOutputConfiguration started to be instantiated twice. I solved it when I added spring.cloud.bootstrap.enabled: false. This was also not obvious for me and I'm not sure if I will have any problems by doing this.
The third problem
The third problem was when I tried to use @Profile in the configuration class and activating the profile with spring.main.additionalProfiles. This was my first attempt before using spring.main.sources but I could never get it working.
It looks like with the current implementation of SpringApplication, the profile is added after the environment is prepared, so the environment doesn’t consider all the profiles.
Conclusion
So don't know if I did some big mistakes. Otherwise some components might be missing in the library, or maybe some documentation about it.
I can prepare a small sample project to show the exact configuration that I had.
Thanks!

@jorgefr Thank you for detailed explanation. We will certainly look into that, although at the moment I do not see it as spring-cloud-stream issue. Probably more spring boot related.
And yes, small sample project would be ideal as it would help us to triage the issue.
@artembilan if you have any additional feedback, feel free to jump in.

Hi @olegz. Thanks for the answer. I uploaded a small sample project to https://github.com/jorgefr/spring-cloud-kinesis-stream-sample.
In the README, I added what you need to do to reproduce each case.
I hope I've described everything correctly and it works out of the box. Otherwise, please let me know

Hi @artembilan, sorry for the delay.
I did the different tests in different branches:

Branch finchley-spring-main-sources-no-inherit-environment-works: It is the original master + inheritEnvironment = false. It works as you said.

Branch greenwich-spring-main-sources: It is the finchley-spring-main-sources-no-inherit-environment-works but using Greenwich instead of Finchley. It works only when inheritEnvironment = false and when I give KinesisOutputConfiguration more priority than org.springframework.cloud.stream.binder.kinesis.config.KinesisBinderConfiguration.

Branch finchley-active-profiles: It is the original master + inheritEnvironment = false + spring.profiles.active instead of spring.main.sources. It still fails to pick up the class. By disabling environment inheritance, the profile is this time correctly set to active before calling listeners.environmentPrepared(environment); but I think the class doesn't get loaded because no component scan is taking effect.

Branch greenwich-active-profiles:  It is the finchley-active-profiles but using Greenwich instead of Finchley. It still fails to pick up the class both with or without environment inheritance enabled or disabled. I guess the problem might have the same cause as with Finchley.

Unfortunately we can't talk here about Finchley because there is no proper fix over there.
Also your application is too complicated to follow.
Is there really a way to reproduce it even without Kinesis?
Thanks for understanding!


Vxlan args/v1

Depends on https://github.com/OISF/suricata/pull/4018

Merged after rebasing to master, thanks @shivan1b!


Automatically paste text in website text field from android app

Is there anyway.. If I scan a QR code from my flutter app, When scan finishes it will automatically open WebView inside app and paste the text (obtained from QR Code or any string from app) in website's text field?
Basically I want a communication channel between flutter app and website inside WebView. I want to pass any string from flutter app to website text field.

@afzl-wtu did u find a solution to this ? im looking for the same.

@afzl-wtu did u find a solution to this ? im looking for the same.

I gave up.

This isn't hard to do. You simply load the website, wait for the onLoadStop event and execute javascript code with InAppWebViewController.evaluateJavascript method to set the input value with your text value.
For example:
onLoadStop: (controller, url) async {
  var qrTextValue = "TEXT_FROM_QR_CODE";

  // for example, you can use css selector to get the HTML input reference
  await controller.evaluateJavascript(source: """
  const input = document.querySelector('#myInput');
  input.value = "${qrTextValue}";
  """);
},


fix: error in doc

🔗 Linked issue
Trivial change, no issue open
❓ Type of change

[x] 🐞 Bug fix (a non-breaking change that fixes an issue)
[ ] 👌 Enhancement (improving an existing functionality like performance)
[ ] ✨ New feature (a non-breaking change that adds functionality)
[ ] ⚠ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description
It just correct a mistake in the README doc: use .sticker() instead of .instructions() in the Sticker section.
📝 Checklist

[x] I have read the contribution guide.
[] I have linked an issue or discussion.
[x] I have updated the documentation accordingly.

Thanks 👍


Sweeper deletion Info error (needs investigation)

2017-05-02 17:43:36,294 - Sweeper - INFO - Deleting all resources
2017-05-02 17:43:36,294 - Sweeper - DEBUG - Found Security Group resource
2017-05-02 17:43:36,461 - Sweeper - INFO - Deleting Security Group [DSESecurityGroup]
An error occurred (InvalidGroupId.Malformed) when calling the DeleteSecurityGroup operation: Invalid id: "DSESecurityGroup" (expecting "sg-...")
2017-05-02 17:43:36,986 - Sweeper - DEBUG - Found Security Group resource
2017-05-02 17:43:36,993 - Sweeper - INFO - Deleting Security Group [DSESecurityGroup]
An error occurred (InvalidGroupId.Malformed) when calling the DeleteSecurityGroup operation: Invalid id: "DSESecurityGroup" (expecting "sg-...")
2017-05-02 17:43:37,480 - Sweeper - DEBUG - Found Security Group resource
2017-05-02 17:43:37,488 - Sweeper - INFO - Deleting Security Group [DSESecurityGroup]
An error occurred (InvalidGroupId.Malformed) when calling the DeleteSecurityGroup operation: Invalid id: "DSESecurityGroup" (expecting "sg-...")
2017-05-02 17:43:37,964 - Sweeper - DEBUG - Found Security Group resource
2017-05-02 17:43:37,975 - Sweeper - INFO - Deleting Security Group [DSESecurityGroup]
An error occurred (InvalidGroupId.Malformed) when calling the DeleteSecurityGroup operation: Invalid id: "DSESecurityGroup" (expecting "sg-...")
2017-05-02 17:43:38,450 - Sweeper - DEBUG - Found Security Group resource
2017-05-02 17:43:38,460 - Sweeper - INFO - Deleting Security Group [OpsCSecurityGroup]
An error occurred (InvalidGroupId.Malformed) when calling the DeleteSecurityGroup operation: Invalid id: "OpsCSecurityGroup" (expecting "sg-...")
2017-05-02 17:43:38,952 - Sweeper - DEBUG - Found Bucket resource
2017-05-02 17:43:39,003 - Sweeper - INFO - Working on bucket [tcat-tag-datastax-21c7-s3bucket-ynx0dcfhj6kl]
2017-05-02 17:43:39,005 - Sweeper - INFO - Getting and deleting all object versions
2017-05-02 17:43:41,718 - Sweeper - INFO - Deleting bucket [tcat-tag-datastax-21c7-s3bucket-ynx0dcfhj6kl]

No longer relevant


Revert "Jvenstad/hosted vespa deployment pipeline"

Reverts vespa-engine/vespa#6234
Controller fails to start, logging: java.lang.NoClassDefFoundError: com/yahoo/vespa/hosted/controller/api/integration/BuildService

What?


Reject promise when attempting to access ENManager without authorization.

This will reject the promise when attempting to access the ENManager if authorization has not been granted.
The reject will be handled on the react-native layer.

EN is ON + Bluetooth is OFF

@henrytao-me this feels like a separate problem.

IMO, it's same problem and solution. 🤔

They end up tied together but for error handling I think this PR should only handle the EN - user has turned off case.

TL;DR
I test it again and agree that it is not a problem.
How to test

Have EN + Bluetooth ON.
Enter code time code to be diagnosed.
Verify that log without error.
Comment out await this.exposureNotification.start();
Terminate and reopen the app.
Observe performExposureStatusUpdate hangs forever.

Explain

It seems like on iOS we have to call start the framework whenever we open the app before doing anything else even EN and Bluetooth are ON in previous open.
If user manually disables EN in Settings, the app cannot turn on EN framework programmatically, even with start. In contrast, Android can.
React Native background job on iOS is also different than Android. When React Native iOS run in the background, it runs the whole app which will result as start from the framework is being called. That's why we see exposure check and everything is working. Combining with calling start does not shows consent dialog automatically, it's a perfect combination on iOS. In contrast, Android background job doesn't call start and it doesn't need to call start as long as EN is enabled in previous open.


Fixed issue by changing default name for the created user

Fix for [1]
[1] - https://github.com/jenkinsci/zaproxy-plugin/issues/8

Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests


TreeNode cache not auto-updated when find

Hi @wasade , Zijun and I noticed an issue when using the find function of TreeNode. We are not sure if it is the anticipated behavior or a bug. Basically, after we edited a node name, the find function cannot find the new name. This is because find will try to create_caches for the tree if it hasn't been done already. But if the cache already exists, it will NOT update it to adopt the changes. This results in inconsistencies. The workaround is to manually clear the cache so that find will have to re-create it. However, letting the function update cache every time will be expensive. We don't have a better idea.
Here is the code:
>>> from skbio import TreeNode
>>> tree = TreeNode.read(['((a,b)c,d)e;'])

>>> tree.find('a')
<TreeNode, name: a, internal node count: 0, tips count: 0>

>>> tree.find('a').name = 'x'

>>> tree.find('x')
---------------------------------------------------------------------------
MissingNodeError                          Traceback (most recent call last)
<ipython-input-11-a384b63d2b77> in <module>()
----> 1 tree.find('x')

~/anaconda/envs/py3/lib/python3.6/site-packages/skbio/tree/_tree.py in find(self, name)
   1560
   1561         if node is None:
-> 1562             raise MissingNodeError("Node %s is not in self" % name)
   1563         else:
   1564             return node

MissingNodeError: Node x is not in self

>>> tree._tip_cache = {}
>>> tree._non_tip_cache = {}

>>> tree.find('x')
<TreeNode, name: x, internal node count: 0, tips count: 0>

Detecting poisoned caches is a complex problem. If we're too aggressive on testing consistency, the performance falls apart, same if we add too many sanity checks. A balance to protect the developer might be nice, but it's not very pythonic to disallow a developer from mutation. Perhaps testing if a mutated name exists in the cache? It still has a wide range of edge cases unfortunately.


chore: ignore all files in snippet bot config

b/368584622

@burkedavison could we skip GraalVM Native Image A and GraalVM Native Image B? They kept failing and this PR is not related?

@burkedavison could we skip GraalVM Native Image A and GraalVM Native Image B? They kept failing and this PR is not related?

Yes, but please make sure they are reenabled once you've merged this PR.


feat: tokens count openAI prompt / total

https://community.openai.com/t/openai-api-get-usage-tokens-in-response-when-set-stream-true/141866/22
https://community.openai.com/t/why-there-is-no-usage-object-returned-with-streaming-api-call/385160/20