XML invoice in extended format with UNECE Tax Category [AA] Lower rate is not valid

Description
I have created xml invoice with the use of Odoo 16.0 software + OCA module account_invoice_facturx.
Invoice contains 1 line with 7% tax with Category Code "AA" - >> see attachment.
INV-2023-00097.txt
I tried to validate this invoice with Mustang, with different configurations. Each time without success.
Most problematic issue was visible below  "Value of 'ram:CategoryCode' is not allowed."
java -jar Mustang-CLI-2.9.0.jar --action validate --source ./new_inv/INV-2023-00097.xml
11:23:10.454 [main] INFO  c.h.s.x.SchematronResourceXSLTCache - Compiling XSLT instance [cpPath=/xslt/ZF_221/FACTUR-X_EXTENDED.xslt; urlResolved=true; URL=jar:file:/home/piemar/Pulpit/hs/addons-din/Mustang/Mustang-CLI-2.9.0.jar!/xslt/ZF_221/FACTUR-X_EXTENDED.xslt]
11:23:15.897 [main] INFO  o.m.validator.XMLValidator - FailedAssert
11:23:15.902 [main] ERROR o.m.validator.ZUGFeRDValidator - Error 4:
	Value of 'ram:CategoryCode' is not allowed. from /xslt/ZF_221/FACTUR-X_EXTENDED.xslt)
11:23:15.903 [main] INFO  o.m.validator.XMLValidator - FailedAssert
11:23:15.903 [main] ERROR o.m.validator.ZUGFeRDValidator - Error 4:
	Value of 'ram:CategoryCode' is not allowed. from /xslt/ZF_221/FACTUR-X_EXTENDED.xslt)
11:23:15.918 [main] INFO  o.m.validator.ZUGFeRDValidator - Parsed PDF:absent XML:invalid Signature:null Checksum:A713B1DA21A09E898622F4DCD6167BBF588236B2 Profile:urn:cen.eu:en16931:2017#conformant#urn:factur-x.eu:1p0:extended Version:2 Took:5648ms Errors:[4,4]
<?xml version="1.0" encoding="UTF-8"?>

<validation filename="INV-2023-00097.xml" datetime="2023-12-12 11:23:10">
  <xml>
    <info>
      <version>2</version>
      <profile>urn:cen.eu:en16931:2017#conformant#urn:factur-x.eu:1p0:extended</profile>
      <validator version="2.9.0"/>
      <rules>
        <fired>50</fired>
        <failed>2</failed>
      </rules>
      <duration unit="ms">5584</duration>
    </info>
    <messages>
      <error type="4" location="/*[local-name()='CrossIndustryInvoice']/*[local-name()='SupplyChainTradeTransaction']/*[local-name()='ApplicableHeaderTradeSettlement']/*[local-name()='ApplicableTradeTax']/*[local-name()='CategoryCode']" criterion="document('FACTUR-X_EXTENDED_codedb.xml')//cl[@id=27]/enumeration[@value=$codeValue27]">Value of 'ram:CategoryCode' is not allowed. from /xslt/ZF_221/FACTUR-X_EXTENDED.xslt)</error>
      <error type="4" location="/*[local-name()='CrossIndustryInvoice']/*[local-name()='SupplyChainTradeTransaction']/*[local-name()='IncludedSupplyChainTradeLineItem']/*[local-name()='SpecifiedLineTradeSettlement']/*[local-name()='ApplicableTradeTax']/*[local-name()='CategoryCode']" criterion="document('FACTUR-X_EXTENDED_codedb.xml')//cl[@id=15]/enumeration[@value=$codeValue15]">Value of 'ram:CategoryCode' is not allowed. from /xslt/ZF_221/FACTUR-X_EXTENDED.xslt)</error>
    </messages>
    <summary status="invalid"/>
  </xml>
  <messages></messages>
  <summary status="invalid"/>
</validation>

Expected behavior
Question is how we can prepare and validate invoice with tax of Category Code "AA" ?  Or the invoice is correct, only  there need to be some changes in Mustang (configuration / code) ?

untdid 5305 says AA=lower rate. I usually use S=Standard rate. It's not neccessary the default rate but as far as I understood this is ment to express why no tax at all applies, if that is the case. And no, AA is apparently not valid :-(
I believe already EN16931 may have restricted 5305 to a subset: in the full listing of the codes on https://ec.europa.eu/digital-building-blocks/sites/display/DIGITAL/Registry+of+supporting+artefacts+to+implement+EN16931 you will also see that tab 5305 has no AA.
The extended profile apparently has not re-introduced it.
Page 55 the technical annex of the factur-x spec (zugferd infopaket, documentation 2. FACTUR-X 1.0.06 Technischer-Anhang.pdf) details
The following entries of UNTDID 5305 are used (detailed information in brackets):

standard rate (sales tax comes up in standard rate);
goods taxable by zero rate (sales tax comes up with a percentage of zero);
tax-exempt (USt./IGIC/IPSI);
reverse charge (rules of reverse charge apply with USt./IGIC/IPSI);
sales tax-exempt for intra-community delivery of goods (USt./IGIC/IPSI no tax demanded for intra-community delivery);
free article of exportation, no tax demanded (USt./IGIC/ IPSI not demanded based on export beyond Europe);
services beyond tax application area (sale is not underlying USt./IGIC/IPSI)
general indirect tax levied in the Canaries (IGIC-tax comes up);
IPSI (tax for Ceuta/Melilla) comes up.
Synonym: Tax category
Cardinality: 1 .. 1
EN16931-ID: BT-151
Use: The codes for sales tax category are:
S = standard rate
Z = zero rated
E = tax-exempt
AE = VAT reverse charge
K = VAT exempt for EEA intra-community supply of goods and services
G = Free export item, tax not charged
O = Services outside scope of tax
L = Canary Islands general indirect tax
M = Tax for production, services and importation in Ceuta and Melilla


Consistent component documentation

Each component should have consistency documentation addressing:

Nature of the component and its use-cases
How to build and run the component locally
Configuration values like environment variables

Components:

[x] UI
[x] Cart
[x] Checkout
[x] Catalog
[x] Orders
[ ] Assets

I tried to update some documentation but it generates a build even though I'm merely updating documentation.  There's a lot of syntax errors in some yaml files that seem to have terraform-type syntax in them.  I never created those.


Modify unique constraint of table harbor_label in pgsql

Add unique constraint to column name, scope and project_id of table harbor_label to make creating same name labels under different projects valid

Coverage increased (+42.5%) to 64.393% when pulling 47d825f3dbb95a172e7e7554452615c6485ce245 on ywk253100:180427_pgsql_label into ae257433cc5bfd4f6617e2a2596025cc0ff5e7a5 on vmware:master.


StreamBridge fails to honor spring.cloud.stream.sendto.destination

Whenever user sets a header .setHeader("spring.cloud.stream.sendto.destination", value) the message still goes to the actual bound destination instead of sendto.destination

Maybe create a new overloaded send method in StreamBridge, that doesn't need the first binding parameter? If this method is called, the expectation is that the user needs to provide the spring.cloud.stream.sendto.destination.

TODO:

Header destination takes precedence over pre-defined destination effectively allowing you to override where message goes on per message basis. So document it clearly
Create an overloaded send(..) method where user can omit the destination. In this case if there is no sendto header, raise the exception.

Actually the resolution ended up to be a bot simpler where instead of honoring spring.cloud.stream.sendto.destination header which would require user to contract Message, it simply resolves the first argument as dynamic destination if the binding with the same name does not exist.


Amazing work!

Amazing work guys, looks wonderful!
I'm super excited to test this out, so forgive me if this is the wrong place to post, but when can we expect the code to be released?

Thank you for the attention to our paper and kind words!
We are currently arranging the codes and the project page;
Not so sure but I think the codes will be available during July!


New project type: Question and answer

Summary:
This pull request has a simple objective: creating a new annotation mode, for the task "question and answer"
Ref: #81
What changed

Backend: 2 models were created (QandAProject  & QandAAnnotation ) and all the following related (serializer)
The model Document was slightly modified, adding the text field called extra_text - allows some tasks to store additional information, like a question for instance.
Migrations were created following the model changes as well
Questionable: the necessity of having QandAStorage. At the moment, I guess I could use Seq2seqStorage instead.

Frontend: a new front was added using the component download_qanda.vue. Visual examples for uploading / downloading data were created as well.

Other Info
This is a Draft pull request at the moment. No tests were created yet, and it isn't merged with the latest master branch due to a problem with pyodbc on my side

@Hironsan If you have time to review this, it would be very nice. From the issue #81 it sounded like many people were waiting for this feature. Let me know if you see improvement I could do!

Don't know exactly why... but the new database mssql fails on Travis CI. It successfully passes  sqlite and postgres databases though... Any clue on how to fix this @c-w ?

django-pyodbc-azure==<IP_ADDRESS> seems not be installed. This requirement is added recently so you have to apply this commit to your branch.

django-pyodbc-azure==<IP_ADDRESS> seems not be installed. This requirement is added recently so you have to apply this commit to your branch.

still having the issue, any other clue ?

@guillim The current build failure no longer is related to the environment but instead is a model error:

django.db.utils.ProgrammingError: ('42000', "[42000] [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Column 'text' in table 'api_qandaannotation' is of a type that is invalid for use as a key column in an index. (1919) (SQLExecDirectW)")

I'd try to take a look at the schema created by manage.py migrate and see what limitations SQL server has that must be worked around.

Ok. I finally found out what was the issue with Microsoft SQL Server: they don't accept TextField when used as a unique_together property
So I changed it to a CharField. However, it can't be larger than 500 characters, which may be a limitation in case an answer to a question is larger than 500 characters. I guess if this happens, an issue will be raised !
Thanks for the debugging tip @c-w


Use new player via  tag

This needs more work: embedded player doesn't set the size of the parent iframe properly.

This has been implemented already.


graphql.config.yml is missing

I notice the graphql.config.yml file is missing. Probably the same as https://github.com/datocms/next-landing-page-demo/blob/main/graphql.config.yml ?
PS: In our project we defined the config in .ts file, so we can read the API key from env. As a example/template, might be better use this approach to show how it can be done more securely.

Added in https://github.com/datocms/ecommerce-website-demo/commit/0ed98cb75e70f439ea9dc753d3268195f151fba4
Thank you @DavidDeSloovere !


BSIM headless execution with H2 database

Hello,
Upon testing the newly released BSIM feature on Windows 10, I had the same issue as described in #6054. Given that it was already reported, I waited for an update on it, which has since been made, thank you for the swift response there. Upon cloning and locally building the patch branch, the feature now works as intended on my local Windows 10 environment.
There has been a change in the way it seems to work out, based on my initial understanding. Before the change, one could specify an output folder to write the newly created signatures in, which could later be imported by any supported database. As such, sharing the created signatures is easier with the raw signature files, since anyone can import them into their desired database of choice. Currently, one provides the Ghidra project and the BSIM database (a H2 one in my case). This works, but the vector limit of a H2 (medium_nosize) database is 10 million.
My questions are:

What happens if I have a number of Ghidra projects (or one really large project) that I want to create signatures for, but the 10 million limit is hit prior to processing all files?
How can I export the "raw" signatures of programs within a Ghidra project, which anyone can import into their preferred database?

Thank you for your time!
Cheers,
Max

Signatures can be generated with the bsim generatesigs command.  There are a few variants.  Two of them require an <xmldirectory> argument, which is the directory where the signature files will be written.  If you run the bsim command with no arguments you should see a detailed usage message.
One variant of the bsim generatesigs command takes a config_template argument instead of a URL for a BSim database.  You can use this to generate signature files without connecting to a BSim database.
The database template contains several pieces of information.  Some are relevant to signature generation and some are relevant for database indexing.
If you want add a signature file to an existing database, what's important is that the signature settings (the settings element of a config template) used when generating signatures agrees with the value used when creating the database.
It might be worth separating these values instead of combining indexing parameters and signature-generation parameters into one file.  We'll consider this.  It would help your situation, but it would not allow you to generate one signature file that could be ingested into any BSim database.
The 10 million figure you mention is not a hard limit.  Instead, it's a rough guideline used for determining specifics of the database index.  Furthermore, H2 databases are intended to be used with small collections and are not indexed, so the database index parameters don't matter for them.
For indexed databases, if you exceed the limit query performance will (eventually) suffer.  H2-backed BSim databases will display the same behavior but at smaller sizes and there's no index you can adjust.
A few things to keep in mind:

The performance of a database depends on the number of unique BSim signatures it contains.  A database with ten million functions almost certainly contains fewer unique BSim signatures because different functions can have the same BSim signature.  Only one copy of the signature is stored in the BSim database.
Setting a higher confidence threshold for your query can greatly reduce the number of comparisons performed.  This is particularly useful for H2.

Thank you for the swift response to my questions! The explanation has cleared up how to make the signatures without directly inserting them into a BSim database. I do have some other questions, related to my prior ones, I'll list them below, in no particular order. Thank you for your time in advance.

With regards to the limit for a H2 database, it sounds like 10 million would be the limit to actively search through at a decent speed, meaning that a much larger (i.e. 50 million) database would still perform decently when using a high(er) confidence threshold. Would that assumption be correct? Not trying to squeeze everything into a H2 database, but rather trying to understand the limits, to apply them as wisely as possible on future projects.
If I generate the signatures into a folder, would I be able to import them into any supported BSim database? I assumed it works like this, but based on the phrasing in your message, I'm not entirely sure. If not, could you elaborate on the differences?
If multiple H2 databases were to be used, is it possible to iterate over all of them with a single query? Based on my understanding of the documentation, the query is made against a single database. As such, having multiple smaller databases sounds more efficient, and would make it possible to maintain separate projects while maintaining usability. If it is possible, I'd like to ask if this is already part of supported behaviour, or if additional scripting would be required to iterate over multiple databases?

Cheers,
Max

To clarify, the 10 million value has nothing to do with H2.  It's only relevant for indexed databases.  When you create any BSim database you pass it a configuration template.  H2 ignores the information in the configuration template related to the index.  I'm not sure what the upper limit of an H2-backed BSim database is but 10 million likely exceeds it for many use cases.  It might be tolerable if you are querying for matches to a single function at a time, but querying for matches to many functions will be painfully slow.
If you generate the signatures into a folder, you will be able to import them into any BSim database whose signature settings (from createdatabase)  are compatible with the signature settings used when generating signatures (from generatesigs), provided that the versions of the BSim database layout and the signature generation algorithm are also compatible (which isn't an issue now but might be in the future).   Examine the first hit for "signature settings" in the Ghidra help and/or the first line of a signature file for more information.
Queries are made against a single database.  You could write a script to perform the same query against multiple databases relatively easily, but you'd have to deal with the query results programmatically instead of through the BSim GUI. You might consider using a single postgres or elasticsearch BSim database rather than multiple H2 databases.  There are various ways of using BSim filters which would allow you to essentially have separate "projects" within a single BSim database (for example, executable categories).

Thank you very much for the swift answers. No further questions from my side about this. Appreciate the help here, in the documentation, along with the active development. Locking this issue as it is finished, but feel free to re-open it if you want to.
Cheers,
Max


[FEAT] Display the actual number of installed Flatpaks

Wanted features:
Display again all Flatpak packages (and not only "apps") by default.
Motivation:
In the version 2.17.2 the way Flatpak packages are counted and displayed on fastfetch was changed.
I guess that can be helpfull for a some people. In my opinion though, the way of counting "regular" packages (debs, rpm, etc) and flatpaks should be consistent. Now, the first one counts ALL packages, not only "apps" but also libraries and other dependencies, while the former one only shows some of the actually installed packages.
Suggestions
Would it be possible to go back to the old way of counting the packages? Or at least make it easy to change it either via command or the config file?
Greetings and thanks for your amazing job!

I have similar issue on Mint Cinnamon 22.
neofetch ->  Packages: 2226 (dpkg), 11 (flatpak)
fastfetch ->  Packages: 2223 (dpkg), 2 (flatpak)

You should test the dev build


Timeout

Uploading a large log file (170 mb) took around 20 minutes.
The queries take around 2 minutes to generate the visualization (countries data on World Map)
After the completion of the question, the browser crashed. After refreshing the page, it jammed.
Running Apache Superset on "Ubuntu 20.04, VMware, CPU: i7, allocated cores: 4, allocated RAM: 8 GB" hosted in Windows 10.
Thanks.

@OSINTAI please share your Superset version and relevant stacktrace from Superset so that we can help you on this issue.

@willbarrett
Thanks for the reply.
I am using version: 0.37.0

I don't understand the issue, is it something related to "Timeout" as the title suggests, or something around uploading? or visualizing country data?

This is a description of the file and what I did:

I have uploaded a 161 MB CSV file.
It contains 29 columns and "764930" rows
The data is text and numbers
The upload took around 15 minutes and it was successful (screenshot).

When I started querying the data (country name, imported items, dates, validity date and 5 other values) to project it on the World Map, the query took around 2 minutes then a red "timeout" ribbon appeared. (Unfortunately, I did not take a screenshot).
As a workaround, I have run a simple query (country name and COUNT of imported items) and it worked.

@OSINTAI Superset is currently optimized to display aggregated data - displaying 700k+ points on a single map will tax the available memory in the browser, I believe. I'd be interested to see how much memory your browser uses after loading all of that and the associated shapes for the map into memory. To support your use-case, we would likely need to render the map on the back-end and send the image to the browser, which is likely out of scope for this project.
Is there any way you could aggregate your data together for display?


Continuous fuzzing by way of OSS-Fuzz

Hi,
I was wondering if you would like to integrate continuous fuzzing by way of OSS-Fuzz? Fuzzing is a way to automate test-case generation and can be used to find unexpected exceptions in Python. In this PR https://github.com/google/oss-fuzz/pull/8265 I did an initial integration into OSS-Fuzz and the current fuzzer simply targets from_bytes. The fuzzing engine used by OSS-Fuzz is Atheris.
If you would like to integrate, the only thing I need is a list of email(s) that will get access to the data produced by OSS-Fuzz, such as bug reports, coverage reports and more stats. Notice the emails affiliated with the project will be public in the OSS-Fuzz repo, as they will be part of a configuration file.

Hi,
I am not against it. I am not familiar with this solution but I understand its principles.
What I am concerned about is the ability of "OSS-Fuzz, Altheris" to find out the input types so the tests would be relevant to us.

I need is a list of email(s) that will get access to the data produced by OSS-Fuzz, such as bug reports, coverage reports and more stats.

Take the one listed publicly on pypi https://pypi.org/project/charset-normalizer/
If this is spammy or too verbose, I will be forced to block it.

Thank you @Ousret  It's now added on the OSS-Fuzz side.
I will keep an eye on how the fuzzer progresses and ensure code coverage is optimal!


Validation: Fixed image-alt-text-duplicated issues

Fixed:
image-alt-text-duplicated errors (duplicate alt text descriptions within an article)
This PR fixes 51 issues across 4 files and is part of ongoing Validation cleanup efforts. No other content has been edited or added.

Docs Build status updates of commit 6b61be3:
:warning: Validation status: warnings

File
Status
Preview URL
Details

dynamics-gp/distribution/sales-order-processing-part3-allocation-fulfillment-purchasing.md
:warning:Warning
View
Details

dynamics-gp/distribution/purchase-order-processing-part6-utilities.md
:white_check_mark:Succeeded
View

dynamics-gp/distribution/sales-order-processing.md
:white_check_mark:Succeeded
View

dynamics-gp/distribution/sales-order-processing-part5-inquiries-reports.md
:white_check_mark:Succeeded
View

dynamics-gp/distribution/sales-order-processing-part3-allocation-fulfillment-purchasing.md

Line 563, Column 5: [Warning: duplicate-alt-text - See documentation] Alt text 'Screenshot of Purchase Orders Preview window, showing example order information within the PO tab.' is duplicated. Within an article, alt text must be unique.
Line 603, Column 5: [Warning: duplicate-alt-text - See documentation] Alt text 'Screenshot of Purchase Orders Preview window, showing example order information within the PO tab.' is duplicated. Within an article, alt text must be unique.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit 1dc8fda:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

dynamics-gp/distribution/purchase-order-processing-part6-utilities.md
:white_check_mark:Succeeded
View

dynamics-gp/distribution/sales-order-processing.md
:white_check_mark:Succeeded
View

dynamics-gp/distribution/sales-order-processing-part3-allocation-fulfillment-purchasing.md
:white_check_mark:Succeeded
View

dynamics-gp/distribution/sales-order-processing-part5-inquiries-reports.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit 109ad48:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

dynamics-gp/distribution/purchase-order-processing-part6-utilities.md
:white_check_mark:Succeeded
View

dynamics-gp/distribution/sales-order-processing.md
:white_check_mark:Succeeded
View

dynamics-gp/distribution/sales-order-processing-part3-allocation-fulfillment-purchasing.md
:white_check_mark:Succeeded
View

dynamics-gp/distribution/sales-order-processing-part5-inquiries-reports.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Global effort to fix validation errors
@edupont04
The Content & Learning team is fixing build validation errors on docs.microsoft.com. This effort will eliminate potential accessibility, security, and usability issues. This PR includes only build validation fixes and does not change other content. I’d very much appreciate your timely review and feedback on these changes I’ve suggested. Thanks!


Not working on last IDE

I get error:
"No complete struct in the selected text"
Struct is from example

Still not working with same error message :(

You should select all the struct, including 'type' and '}'. I tested last IDE: GoLand 2019.1.3.

I get error:
"No complete struct in the selected text"
Struct is from example

Could you put your struct code here? @Kwiga

type CreateDisk struct {
RegionID     string //required for creating CreateDisk struct
ZoneID       string //required for creating CreateDisk struct
DiskName     string
Description  string
Encrypted    bool
DiskCategory string
Size         int
SnapshotID   string
ClientToken  string
}


Example is not working -

Hello,
I have installed onto spy on a Mac running 10.10.5. When I try calling "ontospy http://purl.org/spar/frbr" I get the following error:
OntoSpy v<IP_ADDRESS>
Local library: '/Users/squiresrb/.ontospy/models/'
You passed the argument: http://purl.org/spar/frbr
Traceback (most recent call last):
File "/Users/squiresrb/anaconda/bin/ontospy", line 11, in
sys.exit(main())
File "/Users/squiresrb/anaconda/lib/python3.5/site-packages/ontospy/ontospy.py", line 235, in main
g = Graph(args[0])
File "/Users/squiresrb/anaconda/lib/python3.5/site-packages/ontospy/core/graph.py", line 82, in init
self.OWLTHING = OntoClass(rdflib.OWL.Thing, rdflib.OWL.Class, self.namespaces)
File "/Users/squiresrb/anaconda/lib/python3.5/site-packages/ontospy/core/entities.py", line 259, in init
self.slug = "class-" + str(self.id) + "-" + slugify(self.qname)
File "/Users/squiresrb/anaconda/lib/python3.5/site-packages/ontospy/core/util.py", line 856, in slugify
value = unicode(re.sub('[^\w\s-]', '', value).strip().lower())
File "/Users/squiresrb/anaconda/lib/python3.5/re.py", line 182, in sub
return _compile(pattern, flags).sub(repl, string, count)
TypeError: cannot use a string pattern on a bytes-like object

Hi - thanks for bringing this up, that was a bug with Python3.
I've fixed it in version <IP_ADDRESS> - just update the package e.g. pip install ontospy -U


[Debugging] feature branch

Description
Earlier Devron allowed apps that are deployed from devtron's dashboard only
Recently User can access those apps too that are deployed externally
Fixes https://github.com/devtron-labs/dashboard/issues/111
Type of change

[x] New feature (non-breaking change which adds functionality)
[x] This change requires a documentation update

How Has This Been Tested?
Checklist:

[x] Does this PR require documentation updates?
[ ] I've updated documentation as required by this PR.
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas

Part of External Helm App(Hyperion)


Try to mix more than one input by default

Turned out that @InhumanPerfection was partially right there https://github.com/dashpay/dash/pull/2261#discussion_r215400925 and wallet indeed tends to mix lower number of inputs in general. Not as bad as predicted ("mostly 1") but still lots of mixing sessions have 1-3 inputs, sometimes 4 but that's really rare. It's not like a huge drawback, considering the fact that privacy is not affected, but it's just going to take more time to mix in general, so still not so good. This situation can be improved by simply trying to skip the worst case (when we found 1 input only) in the first run. From what I observed, this works pretty good and it's much more common to see 3+ inputs per session now. Would be interesting to see if that's the case for someone else, pls test :)
This requires #2274 because otherwise GUI becomes unresponsive due to way too many loops over the heavy coin selection. Will rebase after 2274 is merged. Meaningful changes are pretty trivial here if you ignore commits from previous PRs and whitespaces: https://github.com/dashpay/dash/commit/44f53f1ed6f1f98709af1763152871399b6066a4?w=1

What is the problem with low round count per mix (with likely improved privacy per round) if there are many rounds per block/minute thanks to your recent improvements?

@PastaPastaPasta The thing is that mixing 2 inputs per session is still 2 times faster (in general) than mixing just one regardless of all the other improvements.

Rebased.

Closing this one in fav of #2278


Async queries

Is it possible to execute async queries using this lib?

Is it possible to execute async queries using this lib?

like this ?
$ck->query($sql,function ($response){

});

not support

What about parallel execution of multiple queries?
Something like this:
$ck->($sql1);
$ck->($sql2);
$ck->($sql3);
$ck->executeAsync();

What about parallel execution of multiple queries?
Something like this:
$ck->($sql1);
$ck->($sql2);
$ck->($sql3);
$ck->executeAsync();

Currently still not supported


🎁 Write a post of a vendir usecase 🎁

Context
vendir 's features allow a lot of things, not only around kubernertes. It could be interesting to show how vendir can make things easier, and to make package software installation even smoother.
Action

Show how vendir can make APOC plugin installation easier in Neo4J (shox how to move away manual tasks)

✅ Done

[x] DEV.to post
[x] Tweet
[x] linkedIn Post

I just gave it a read, thanks for writing up a great post @adriens!

You're very wlecome, thanks a lot for the tool 👏
BTW, I'm ready to transfer repo ownership, just let me know when you'd like me to perform the action


npm tries to install to system directory

When I try to npm install -g nodemon for example, it fails because of permissions, below is the full log.
2019-11-25T23_22_37_398Z-debug.log

By default, npm which installed by nodenv will automatically handles its package installation path if the --global option is set.
It will install modules into .nodenv/versions/{VERSION}/lib/node_modules normally.
You should make sure that your current using npm is under the control of nodenv at first.

which npm
Does this shows something like .nodenv/shims/npm ?

nodenv which npm
Does this shows something like .nodenv/versions/{VERSION}/bin/npm?

If the execution result of above commands seem to be OK, your npm global prefix is probably configured in somewhere (almost cases at $HOME/.npmrc).
See the output of npm config ls to check all configuration values currently set to your npm.
If this output includes the prefix value, that means that your npm is configured to install all modules under the path set by prefix value when --global option is specified.
I recommend you to check your npm configs once anyway.
Normally it's stored at $HOME/.npmrc, but could be found multiple locations in some cases like below.

$NPM_CONFIG_USERCONFIG
$NPM_CONFIG_GLOBALCONFIG
/path/to/my/project/.npmrc
$PREFIX/etc/npmrc

See also:

https://docs.npmjs.com/misc/config
https://docs.npmjs.com/files/npmrc

npm was under the control of nodenv, but prefix was set to some system path, all good now.
Thanks @Yuhsak.

Thanks @Yuhsak!
@husam212 I'm going to add this npm-prefix detection to nodenv-doctor so that this issue is easily caught for other people as well.


Backend on k8s can't register self after change root password

Steps to reproduce the behavior (Required)

Deploy on k8s(https://docs.starrocks.io/zh-cn/latest/administration/sr_operator)
SET PASSWORD for root = PASSWORD('xxxxxx');
BE pod restart

Expected behavior (Required)
Pod start successfully.
Real behavior (Required)
BE report error when start.
Failed to register self via executing sql to add backends. Permission Denied when connect using root without password.
StarRocks version (Required)

2.5.2 c3772fb2c
FE image: starrocks/fe-ubuntu:2.5.2
BE image: starrocks/be-ubuntu:2.5.2

refer to this doc on how to handle the situation:
https://github.com/StarRocks/starrocks-kubernetes-operator/blob/main/doc/change_root_password_howto.md


zoom-us: problem signing in via google when chrome is default browser

Describe the bug
Zoom Google Login with Chrome fails
To Reproduce
Steps to reproduce the behavior:

Open zoom-us
Sign in > Google
Select account in chrome

Expected behavior
Logs in, returns to zoom
Screenshots
"An error occured" page
Additional context
Probably the URL isn't passed properly to chrome or properly parsed by chrome
Notify maintainers

Metadata

system: "x86_64-linux"
host os: Linux 5.4.63, NixOS, 21.03pre-git (Okapi)
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.3.7
channels(root): "nixos-20.09pre242769.61525137fd1, nixpkgs, solaros"
channels(maciej): "nixpkgs-20.09pre242495.3c0e3697520, solaros"
nixpkgs: /home/maciej/.nix-defexpr/channels/nixpkgs

Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute:
 - zoom-us
 - google-chrome
# a list of nixos modules affected by the problem
module:

This behaviour seems to be described in #73532

It says something about hanging on "connecting..."
In my case it's the google auth page that gives an error

Does it work with firefox? If not, sounds like an upstream issue to me - maybe they have updated their Google auth urls and the update hasn't landed in their releases. I can confirm that as of now we have their most updated version in Nixpkgs.

Firefox works. Possible causes range from the .desktop file to chrome's code, first of which might be patchable


[React][Combobox] The content is not properly positioned when setting the lazyMount property

Description
Hi,
When setting the lazyMount to the Combobox component, the Combobox.Positioner is not positioned properly. If I remove the property, everything looks good.
Link to Reproduction
https://codesandbox.io/s/competent-hill-9cn54h?file=/src/App.js
Steps to reproduce

Click on the working combobox
The content is properly positioned
Click on the not working combobox
The content is not properly positioned

Ark UI Version
1.0.0
Framework

[X] React
[ ] Solid
[ ] Vue

Browser
Google Chrome 119
Additional Information
No response

This has been fixed in Zag.js, we’ll publish a new version shortly


Make the defaults of the API work.

Related issue: #50
I will update the README afterwards.

Btw, if we're going to break backward compatibility of read_data, we might as well immediately remove load_data.
Also, let's update the version number of ASR.

Closes #55


Implement an Eventing source for Prometheus

It would be useful to be able to turn Prometheus alerts and results of PromQL queries into events.

/assing @syedriko

/assign @syedriko

With the code written, let's update this https://knative.dev/docs/eventing/samples/writing-a-source/
to get the current steps to what it takes w/ knative.dev/okg Controller Runtime.
/cc @lberk

Let open issue to track what changes are necessary to make in docs  https://knative.dev/docs/eventing/samples/writing-a-source/ ?

related to https://github.com/knative/eventing/issues/2019
This PR is the first step.
I suggest to first make it easier and then update the documentation.

Here is the initial implementation: https://github.com/knative/eventing-contrib/pull/663


Slow query on metrics endpoint

I have extracted the following slow query plans
for the query itself
 Append  (cost=208721.38..213092.90 rows=61706 width=44) (actual time=44334.587..44848.546 rows=297 loops=1)
   Buffers: shared hit=20228 read=34831 written=675, temp read=1215 written=1220
   ->  GroupAggregate  (cost=208721.38..211341.98 rows=61423 width=44) (actual time=44334.586..44619.904 rows=285 loops=1)
         Group Key: environmentmetricsgauge.metric_name, environmentmetricsgauge.category, (width_bucket(date_part('epoch'::text, environmentmetricsgauge."timestamp"), date_part('epoch'::text, '2023-08-14 13:55:51.484+00'::timestamp with time zone), date_part('epoch'::text, '2023-08-21 13:55:51.484+00'::timestamp with time zone), 15))
         Buffers: shared hit=20180 read=34783 written=675, temp read=1215 written=1220
         ->  Sort  (cost=208721.38..208876.62 rows=62098 width=40) (actual time=44334.161..44523.675 rows=191482 loops=1)
               Sort Key: environmentmetricsgauge.metric_name, environmentmetricsgauge.category, (width_bucket(date_part('epoch'::text, environmentmetricsgauge."timestamp"), date_part('epoch'::text, '2023-08-14 13:55:51.484+00'::timestamp with time zone), date_part('epoch'::text, '2023-08-21 13:55:51.484+00'::timestamp with time zone), 15))
               Sort Method: external merge  Disk: 9720kB
               Buffers: shared hit=20180 read=34783 written=675, temp read=1215 written=1220
               ->  Bitmap Heap Scan on environmentmetricsgauge  (cost=49803.18..203777.68 rows=62098 width=40) (actual time=9297.719..44026.717 rows=191482 loops=1)
                     Recheck Cond: ((environment = 'b61d0551-bf4f-4566-b41c-6bccf9ff94e4'::uuid) AND ("timestamp" >= '2023-08-14 13:55:51.484+00'::timestamp with time zone) AND ("timestamp" < '2023-08-21 13:55:51.484+00'::timestamp with time zone) AND ((metric_name)::text = ANY ('{lsm.service_count,lsm.service_instance_count,orchestrator.compile
_time,orchestrator.compile_waiting_time,orchestrator.compile_rate,resource.agent_count,resource.resource_count}'::text[])))
                     Heap Blocks: exact=31422
                     Buffers: shared hit=20180 read=34783 written=675
                     ->  Bitmap Index Scan on environmentmetricsgauge_pkey  (cost=0.00..49787.66 rows=62098 width=0) (actual time=9252.710..9252.711 rows=191482 loops=1)
                           Index Cond: ((environment = 'b61d0551-bf4f-4566-b41c-6bccf9ff94e4'::uuid) AND ("timestamp" >= '2023-08-14 13:55:51.484+00'::timestamp with time zone) AND ("timestamp" < '2023-08-21 13:55:51.484+00'::timestamp with time zone) AND ((metric_name)::text = ANY ('{lsm.service_count,lsm.service_instance_count,orchestrator.com
pile_time,orchestrator.compile_waiting_time,orchestrator.compile_rate,resource.agent_count,resource.resource_count}'::text[])))
                           Buffers: shared hit=20180 read=3361
   ->  HashAggregate  (cost=494.73..499.38 rows=169 width=50) (actual time=228.293..228.298 rows=8 loops=1)
         Group Key: environmentmetricstimer.metric_name, environmentmetricstimer.category, width_bucket(date_part('epoch'::text, environmentmetricstimer."timestamp"), date_part('epoch'::text, '2023-08-14 13:55:51.484+00'::timestamp with time zone), date_part('epoch'::text, '2023-08-21 13:55:51.484+00'::timestamp with time zone), 15)
         Batches: 1  Memory Usage: 40kB
         Buffers: shared read=48
         ->  Bitmap Heap Scan on environmentmetricstimer  (cost=23.29..492.60 rows=170 width=54) (actual time=66.913..228.051 rows=296 loops=1)
               Recheck Cond: ((environment = 'b61d0551-bf4f-4566-b41c-6bccf9ff94e4'::uuid) AND ("timestamp" >= '2023-08-14 13:55:51.484+00'::timestamp with time zone) AND ("timestamp" < '2023-08-21 13:55:51.484+00'::timestamp with time zone))
               Filter: ((metric_name)::text = ANY ('{lsm.service_count,lsm.service_instance_count,orchestrator.compile_time,orchestrator.compile_waiting_time,orchestrator.compile_rate,resource.agent_count,resource.resource_count}'::text[]))
               Heap Blocks: exact=39
               Buffers: shared read=48
               ->  Bitmap Index Scan on environmentmetricstimer_pkey  (cost=0.00..23.25 rows=227 width=0) (actual time=66.631..66.631 rows=296 loops=1)
                     Index Cond: ((environment = 'b61d0551-bf4f-4566-b41c-6bccf9ff94e4'::uuid) AND ("timestamp" >= '2023-08-14 13:55:51.484+00'::timestamp with time zone) AND ("timestamp" < '2023-08-21 13:55:51.484+00'::timestamp with time zone))
                     Buffers: shared read=9
   ->  Subquery Scan on "*SELECT* 3"  (cost=323.10..327.09 rows=114 width=76) (actual time=0.284..0.287 rows=4 loops=1)
         Buffers: shared hit=48
         ->  HashAggregate  (cost=323.10..325.95 rows=114 width=114) (actual time=0.278..0.280 rows=4 loops=1)
               Group Key: environmentmetricstimer_1.metric_name, environmentmetricstimer_1.category, width_bucket(date_part('epoch'::text, environmentmetricstimer_1."timestamp"), date_part('epoch'::text, '2023-08-14 13:55:51.484+00'::timestamp with time zone), date_part('epoch'::text, '2023-08-21 13:55:51.484+00'::timestamp with time zone), 15)
               Batches: 1  Memory Usage: 24kB
               Buffers: shared hit=48
               ->  Bitmap Heap Scan on environmentmetricstimer environmentmetricstimer_1  (cost=23.85..321.96 rows=114 width=46) (actual time=0.066..0.219 rows=150 loops=1)
                     Recheck Cond: ((environment = 'b61d0551-bf4f-4566-b41c-6bccf9ff94e4'::uuid) AND ("timestamp" >= '2023-08-14 13:55:51.484+00'::timestamp with time zone) AND ("timestamp" < '2023-08-21 13:55:51.484+00'::timestamp with time zone) AND ((metric_name)::text = ANY ('{orchestrator.compile_time}'::text[])))
                     Heap Blocks: exact=39
                     Buffers: shared hit=48
                     ->  Bitmap Index Scan on environmentmetricstimer_pkey  (cost=0.00..23.82 rows=114 width=0) (actual time=0.055..0.055 rows=150 loops=1)
                           Index Cond: ((environment = 'b61d0551-bf4f-4566-b41c-6bccf9ff94e4'::uuid) AND ("timestamp" >= '2023-08-14 13:55:51.484+00'::timestamp with time zone) AND ("timestamp" < '2023-08-21 13:55:51.484+00'::timestamp with time zone) AND ((metric_name)::text = ANY ('{orchestrator.compile_time}'::text[])))
                           Buffers: shared hit=9

related for sizing
inmanta=>  explain (ANALYZE,BUFFERS)  select count(*) from environmentmetricsgauge where environment = 'b61d0551-bf4f-4566-b41c-6bccf9ff94e4'::uuid AND timestamp >= '2023-08-14 13:55:51.484+00'::timestamp with time zone
AND timestamp < '2023-08-21 13:55:51.484+00'::timestamp with time zone
;
                                                                                QUERY PLAN
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Aggregate  (cost=12402.88..12402.89 rows=1 width=8) (actual time=6081.984..6081.986 rows=1 loops=1)
   Buffers: shared hit=10922 read=9991 written=2423
   ->  Index Only Scan using environmentmetricsgauge_pkey on environmentmetricsgauge  (cost=0.56..12188.19 rows=85878 width=0) (actual time=7.435..6063.986 rows=191482 loops=1)
         Index Cond: ((environment = 'b61d0551-bf4f-4566-b41c-6bccf9ff94e4'::uuid) AND ("timestamp" >= '2023-08-14 13:55:51.484+00'::timestamp with time zone) AND ("timestamp" < '2023-08-21 13:55:51.484+00'::timestamp with time zone))
         Heap Fetches: 37705
         Buffers: shared hit=10922 read=9991 written=2423
 Planning Time: 0.149 ms
 Execution Time: 6082.031 ms

@wouterdb could it be that we were hitting a limit on the db pool or something? Even the count seems to have taken 6 seconds. When I run the count query on the management orchestrator it runs a lot faster, while accessing more rows.
inmanta=> EXPLAIN (ANALYZE, BUFFERS) select count(*) from environmentmetricsgauge where environment = 'f81be80b-8582-499f-b002-7cdd2f2df98a'::uuid AND timestamp >= '2023-08-14 13:55:51.484+00'::timestamp with time zone
AND timestamp < '2023-08-21 13:55:51.484+00'::timestamp with time zone
;
                                                                                QUERY PLAN
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Aggregate  (cost=36124.10..36124.11 rows=1 width=8) (actual time=76.515..76.517 rows=1 loops=1)
   Buffers: shared hit=35591
   ->  Index Only Scan using environmentmetricsgauge_pkey on environmentmetricsgauge  (cost=0.56..36051.31 rows=29119 width=0) (actual time=0.028..66.694 rows=191444 loops=1)
         Index Cond: ((environment = 'f81be80b-8582-499f-b002-7cdd2f2df98a'::uuid) AND ("timestamp" >= '2023-08-14 13:55:51.484+00'::timestamp with time zone) AND ("timestamp" < '2023-08-21 13:55:51.484+00'::timestamp with time zone))
         Heap Fetches: 191444
         Buffers: shared hit=35591
 Planning Time: 0.115 ms
 Execution Time: 76.556 ms
(8 rows)

To be fair, my query happened to get all cache hits while yours didn't. Still, I wouldn't expect such a huge difference for that.

Pool size doesn't affect the query plan, ...


no-cache for specific page

hello,
I have a _layout/home.html that contains an index and iterates over the past posts. Now when I upload that to my website, the browser caches that page, so without an explicit reload the new posts don't show up.
I'm not an HTML expert, but reading for example this page, I should probably include the following to things in 'head':
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">

Do you have any experience with this? Would that be the preferred way to prevent caching a dynamic page? Thanks!

Any news on this? I have added this to my pages, but it has no effect:
<meta http-equiv="CACHE-CONTROL" content="NO-CACHE">
<meta http-equiv="PRAGMA" content="NO-CACHE">

That is, if I have a page that aggregates the latest posts for example, Firefox caches that pages, and when I add a new post it doesn't show up unless I explicitly reload the page :-( Any way to force the browser to never cache a page?

Nope no experience with it, I don't have any dynamic pages with Jekyll. I self-host and use a .htaccess file for setting the cache on assets and such. And then use Cloudflare to cache the full pages. I haven't had problems with anything being so aggressively cached that the latest content doesn't always show.
Occasionally an image or two doesn't update, and in that case I kill the page cache with Cloudflare.
I generally let browsers cache how they're going to cache to avoid http requests and increasing a sites performance. I'd bump around Stackoverflow since this really has little to do with my theme and is more suited for a web dev forum.

Ok, thanks for the hint with .htaccess, might look into it. I get it mostly to work with the above META additions, but not 100% reliably it seems.


Can't Access Build From Docker File Method

Output of dotnet --info:
.NET Command Line Tools (1.0.0)

Product Information:
 Version:            1.0.0
 Commit SHA-1 hash:  e53429feb4

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.16215
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\1.0.0

What version of Docker.DotNet?:
2.124.3

Steps to reproduce the issue:

Install Docker.DotNet v2.124.3 by adding it to .net core csproj file
Instantiate Docker Client
Attempt to reference BuildImageFromDockerfileAsync

Relevant Code:
DockerClient client;
client = new DockerClientConfiguration(new Uri("http://x.x.x.x:4243"))
                .CreateClient();
client.Images.BuildImageFromDockerfileAsync("");

What actually happened?:
I am told:
IImageOperations does not contain a definition for BuildImageFromDockerfileAsync
What did you expect to happen?:
To be able to use the method.

There has been a lot of "moving" in an attempt to align with the Docker API documentation closer. While this is under Images now it used to be under Miscellaneous. So client.Miscellaneous.BuildImageFromDockerfileAsync(""); in v2.124.3

Thank you very much. Secondary question (let me know if I should open a new issue for this) is there more extensive documentation for this library somewhere or is the readme and the code comments all of it?

There is not anything other than the comments. What would you like to see here? I am open to adding documentation where helpful for sure.
At least for the release coming in the next few days I have tried to re-align very closely to the Docker Remote API v1.25 design. IE: This is a REST wrapper of that API but no more logic or simplicity to document.

Let me work up a little bit of a wiki as an example of what I think would be helpful and then I'll do a pull request. For now I'll close out this issue though. Thank you for the help.


PLOLookuptable not working

PLOLookuptable not working
To Reproduce
If the bug can be reproduce, please give the steps taken to reproduce the behavior:

Export data from some model using  >> sapl temp.plo x
Create a new model, containing the component PLOlookuptable
Try using the newly saved plo file...
The program will either: Be unable to open the file, Crash, or complain on the perfectly sorted "Time" vector used as input.

Expected behaviour: plo-files should work out-of-the box with this component.
Screenshots, Model or Data files
If applicable, add screenshots, models or data files, that display or cause the bug.
Hopsan version (please complete the following information):
Version information is shown in the message widget when HopsanGUI is started

OS: Windows 10
Version: HopsanCore 64-bit, Version: <IP_ADDRESS>91126.1813
HopsanGUI 64-bit, Version: <IP_ADDRESS>91126.1813
Build: official.

Additional information
There might be an issue with how many lines the parser discards or the version number exported from hopsan.

@mrejster What is the "default plo export version" ? You can find it in options->plotting
Also is the file loaded from local disk or network drive ? (should not matter but useful to know)

Ah, that's where the version could be changed!
Anyway, version 2 is malfunctioning. I now tried changing to plo version 1, and that seems to work as it should.

I tried this and also had problems with PLO v2 exported data. But I did not suffer from any crash (running Linux version).
But I found a bug in the export code.
In the "new" plo v2 format the fourth line containing numDataColumns and numRows, numDataColumns should also count the time vector, so if you export 'Time', 'X', 2048 samples, that line should say 2 2048.
In PLO v1 format it says 1 2048.
You could try to edit the plo v2 file after exporting it and just adding 1 to the first value on row 4.
Assuming the first column is Time. And see if that helps.

I just tried it myself, and it still does not work.
But I know why, the parser assumes that the values on row six, are floating point, (plot scale) (wich are also not used by Hopsan). But in plo format 2 these values can be strings with the data Quantity (so in my test case it was "Time Position", which causes the rather unclear error about unsorted index vector. (because the parser will write 0 to every item due to this bug)
So to fix that, also replace any strings with a numerical value 1.0 on row 6 in the plo version2 file.
I wonder how I could even get this working when I implemented it many years ago, this code has not been touched in a long time. Probably never tested to export data including a Quantity.


feat: add filter command

Those improvements were nice, didn't think of doing it like that

If you need me to do anything else just let me know and I can get to it later / tomorrow

Okay, currently switch between hiding and showing files causes the file list to be lost:

Display all files
Type a keyword to filtering
Hide all files
Cancel filtering - can't cancel, files lost

This requires https://github.com/sxyazi/yazi/pull/401 to be merged in order to proceed. I've completely refactored Yazi's file system in that PR. Maybe I'll be able to merge it tomorrow if there are no issues during the code review.

Ok, that's not great.

I think I've addressed all the edge cases. Would you like to give it a review?

Sure yeah I'll have a look

The preview doesn't update after filtering so whatever file was hovered before filtering remains in the preview window.

Should be fixed now!

The preview doesn't update after filtering so whatever file was hovered before filtering remains in the preview window.

Should be fixed now!

Yep that did it!

Okay, let me merge it. Thank you very much for contributing this awesome feature! ❤


Add option to remove svg prolog from generated string

Hi, I am still using viz.js in the old synchronous mode (using Viz(dotString)) and it seems that you recently added a svg prolog to the result: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">.
In an older version there were only comments used, right? Currently I can not use the asynchronous methods, but I still need to insert the svg into the DOM without the prolog. As far as I can see, I have to replace the prolog myself using Regex, but it would be nice if I could avoid that.
Could you add an option so that it is possible to remove it?

Couldn't you use DOMParser for that purpose?
function getSVGNode(svgString) {
  return new DOMParser().parseFromString(svgString, 'image/svg+xml').documentElement;
}

var svg = getSVGNode(stringFromViz);
// Get the string with the outerHTML property
console.log("SVG string", svg.outerHTML);
// Append the node to the DOM
document.body.appendChild(svg):

Thank you for the tip, but the code has to run in node.js so I can not use DomParser.

I’m not aware of an option to remove the prolog—Viz.js doesn’t add it, so perhaps it was added to Graphviz output at some point? Unless there is an option I can pass to the Graphviz library to remove it, I would probably need to resort to a regular expression or parsing the SVG as well.

Take a look at SVGO which will remove the prolog, DOCTYPE and produce a much smaller string without the need to hard code a dirty regex yourself that could break if Graphviz changes its output in a future version.

@mdaines: Ah ok, that makes sense. I thought this was coming from viz.js
@aduh95: SVGO looks great, though I am also hesitant to add another dependency (the code will run in node and the browser so file size should be kept small). So I will have to think about it.


Allow users to edit their email address

In the /:username/edit page we should allow users to edit their email.
Because they will need to confirm that they own that new email address, we should send a confirmation token by email before making that change.

Constraints

We shouln't change the email address before the new one is confirmed
We must ensure users owns the requested addresses

Specs

Add a emailWaitingForValidation:string column to Users
Add a emailConfirmationToken:string column to Users

Flow

Users go to /:username/edit

Users change email and click save

We set emailWaitingForValidation to user's provided email address and emailConfirmationToken to a random string

Users see a special warning on their profile similar to what we show for archived collectives

Example from Twitter

Users click on the link

If token is valid, email takes the new values while emailWaitingForValidation and emailConfirmationToken are set to null

Another proposal to kill two birds with one stone:
allow multiple rows in the Users table to link to the same CollectiveId.
Just add a confirmedAt column.

@xdamman I think having multiple rows for the same User is dangerous, we link to it with CreatedByUserId in multiple places and failing to update one of these references can have negative side-effects.
I also don't like the idea of creating another user as a concept: it's still the same user, we only change the email.

Ideally the table Users should be merged with ConnectedAccounts. That’s really what it is. It’s just that the service is “email”. So I wouldn’t be blocked by the fact that (And you are right) we shouldn’t have two users for a same user.
I don’t see any issue with CreatedByUserId. It’s keeping track of who using what account to authenticate created a given row.

Three examples of regressions that duplicating users would introduce:

In https://github.com/opencollective/opencollective-api/blob/636516adf7c36a9bed9f85d967c987798555b2d6/server/controllers/applications.js#L40 we check for the application creator to be the same as user. If users update their email, it will invalidate all that application tokens they have created.

In https://github.com/opencollective/opencollective-api/blob/636516adf7c36a9bed9f85d967c987798555b2d6/server/controllers/services/email.js#L235 we use Member.CreatedByUserId to check the email to notify. If not updated properly, we will send emails to the old address.

In https://github.com/opencollective/opencollective-api/blob/636516adf7c36a9bed9f85d967c987798555b2d6/server/models/Comment.js#L171-L172 we check Comment.CreatedByUserId to see if user can edit it.

It would also make it way more complicate to check all the logs (orders created, comments posted...etc) for a given user.

Ok you win ;-)
But it was tempting to also allow users to have more than one email. And maybe refactor Users to ConnectedAccounts. ¯_(ツ)_/¯

I understand that need and would love to be able to have multiple emails linked to my opencollective account as well, I recently had the case where I got invited as a core contributor to https://opencollective.com/engineering with another email address than the one for my account and had to change it myself manually.

@Betree This feature isn't working for me. When I go to the update emails section in my profile, the box is greyed out and I can't type in a new email. If I click the 'change email' button (even though the box still has my original email address) I get an error saying "invalid email".

Sorry @Betree actually it is working. I think this is more of a UX bug. I didn't understand you have to click "change email" then click into the box, then click the button again. I think it would be much more intuitive if you could just update the email in the text box, and if it detects a change the "update email" button would activate. Then when you click it, it would send the confirmation.

@alannallama Good feedback, will do


Update build-activity-dashboard.json

Dashboard JSON is out of date.

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


Add: Install Git

[x] Read Installing and Configuring Git
[x] Install Git
[x] Close this issue

reviewed doc, omitted installation (had git already installed before)


Install specific version of a plugin

currently it is not possible to install a plugin of a specific version.
php bin\gpm install mobile-detect --version 1.0.0
Grav Package Manager version 1.1.8

this makes it impossible to use grav in an ci environment. if i develop a grav application locally (with vendors and plugins in .gitignore) and commit my changes to the my repo where the ci-server will takeover (gitlab-ci), which has the sourcecode from my repo and then calls the build & deploy commands:
gitlab-ci.yaml:
  - composer install --no-scripts
  - php bin/grav install
  - php bin/gpm install admin
  - php bin/gpm install devtools
  - php bin/gpm install landio
  - php bin/gpm install cachebuster
  - composer install --no-interaction --no-progress --optimize-autoloader  --ignore-platform-reqs
  - lftp -u username,password hostname -e "set ftp:ssl-allow true; set ssl:verify-certificate no; mirror --delete --reverse ./ targetdirectory"

in this case plugins can have a different version on production as on the local development server. depending on when the plugins where installed locally (can be a month ago), it can lead to a major gap between the plugin versions.
it should be possible to define the version i want to install from a plugin:
php bin/gpm install admin --version=1.2.4

Not nice as --version=, but there's
bin/gpm direct-install which also allows you to install a local package.
Install a plugin:
bin/gpm directinstall https://github.com/getgrav/grav-plugin-admin/archive/1.2.5-rc.4.zip

@flaviocopes thanks for your nice workaround, this of course helps very much.
for the future it would be awesome to manage this in the .dependencies file directly
related: #880

I'm very much interested in completing this feature request. Dev instance up and running. Let's see what I can do.

@rhukster @w00fz Can we discuss the following Slack conversation before I keep working on this issue? I need to know what you guys want to do with this issue. Right now, when the CLI install a package, it download the latest version for each dependencies. If I'm to add a feature to download older versions, I should download the specified versions from the package blueprints.yaml
akeif [8:14 PM]
@rhuk @w00fz About issue #1200 `bin/gpm install` fetch packages dependencies
from `https://getgrav.org/downloads/plugins.json`.
Is there a way to request an older plugin version data? I'm pretty sure it's not possible.
If not, do you have any recommendation? My only idea so far is to get `blueprint.yaml`
from the plugin GitHub repo for the user specified version.

w00fz [8:36 PM] In the next admin update you will be able to use direct install
and specify a path
[8:36]  You can already via cli
[8:37]  In the future we might consider providing different versions but the idea of grav
is to try to move forward so we don't want to encourage too much using older version
but latest and greatest
[8:38]  I think the ability to still install older versions if really needed as we offer now
is a good compromise

@w00fz As you can see @rhukster tagged this issue as enhancement. Thus, I'm not sure how to react to your Slack answer.

I'm still willing to look at your proposed PR solution.  In general the best solution is usually the latest, but there is of course some good reasons to be able to pull a known/specific version from GPM.  For example if a newer version is known to have bugs or cause conflicts.  It does need to fit in seamlessly with the current GPM system as well as the admin.

Ah well. I don't think I can do it.
Blueprints format changes over time, which is giving me problem rolling back to older versions.
Also, correctly injecting data from older blueprints in data returned from the Grav plugin.json repository is hard given the complexity of the package installation process.

@rhukster Would you have any advice to help me get on track with this feature request? I'm not sure I can do this in a reasonable amount of time.

Closing to due to inactivity


Can't run the connection.py example on Google Colab

Hi!
I've tried to run your basic connection example ( https://github.com/Chavithra/degiro-connector/blob/main/examples/trading/connection.py) and received the following error:
ImportError: cannot import name 'final' from 'typing' (/usr/lib/python3.7/typing.py)
on the line ("from typing import Dict, final")
Here is my Colab notebook (it can be copied easily and tested) : https://colab.research.google.com/drive/1f3yIlVOzFn8PIP9K0wKIlXvNCskrJs4e#scrollTo=oeFMK2Tx8NHF
I suspect this is because Google Colab uses Python 3.7.12, while your code needs 3.8? or 3.10?
I couldn't find any easy method how to update Python in Google Colab without breaking it.
Any ideas how to solve this?
Thanks,
Ivan

Hello didn’t know final decorator was so recent.
It’s seems to be available starting from python 3.8.
Will consider removing this decorator since it’s just typing.

Thanks, Chavithra!
I'll wait that to happen

Hi, I just removed the usage of final decorator.
Let know if you still have issues with Colab.
Thanks

Closing this issue.
Feel free to open another one if there still issue with Google Colab.

Thanks! It is working on my side now in Colab


How to get the results of the KNOWN OBJECT full, rare, and non-rare?

only get the default full, rare, and non-rare according to the code

We follow the evaluation code of PPDM, which does not show results of the known object setting. Please modify the code by yourself for the known object setting.


Discover safekeepers via broker request

Make connection_manager (walreceiver) send a SafekeeperDiscoveryRequest when there is no information about safekeepers present in memory. Current implementation will send these requests only if there is an active wait_lsn() call and no more often than once per 10 seconds.
Add test_broker_discovery to test this: safekeepers started with --disable-periodic-broker-push will not push info to broker so that pageserver must use a discovery to start fetching WAL.
Add task_stats in safekeepers broker module to log a warning if there is no message received from the broker for the last 10 seconds.
Closes #5471

LGTM

I'm not familiar with the best practices around gRPC and the union type that is TypedMessage. Seems not very rust-like to me.

This is how tonic auto-generated code looks like. But generally language-specific enums always break when they meet serialization/deserialization from network protocols.


lax.broadcast_shapes should error on negative shapes

>>> lax.broadcast_shapes((-1,), (1,))
(-1,)
>>> np.broadcast_shapes((-1,), (1,))
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-2-6e3eddf076bd> in <module>
----> 1 np.broadcast_shapes((-1,), (1,))

~/.local/share/virtualenvs/jax-LBbfM5ix/lib/python3.8/site-packages/numpy/lib/stride_tricks.py in broadcast_shapes(*args)
    469     (5, 6, 7)
    470     """
--> 471     arrays = [np.empty(x, dtype=[]) for x in args]
    472     return _broadcast_shape(*arrays)
    473

~/.local/share/virtualenvs/jax-LBbfM5ix/lib/python3.8/site-packages/numpy/lib/stride_tricks.py in <listcomp>(.0)
    469     (5, 6, 7)
    470     """
--> 471     arrays = [np.empty(x, dtype=[]) for x in args]
    472     return _broadcast_shape(*arrays)
    473

ValueError: negative dimensions are not allowed

Another minor issue we should fix: lax.broadcast_shapes does not check if shapes are valid in the case of a single input:
>>> lax.broadcast_shapes('not a valid shape')
'not a valid shape'

I guess this was closed by #9576?

I think so.


 Its working fine in melodic but when i cloned in noetic its not working wha should i do

Invalid tag for noetic distro

Issue closed and updated


Add detection for unset DOTFILES_DIR environment variable

Right now, it will fail awkwardly, complaining about how it doesn't know what kind of file the source file to link is, as it tries to find it at the root directory.
What happens:
error ln: Source file /.oh-my-zsh/themes/terse.zsh-theme has an unknown type. Cancelling

What should happen:
Creating symlink: /home/nroberts/GitHub/dotfiles/.oh-my-zsh/themes/terse.zsh-theme -> /home/nroberts/.oh-my-zsh/themes/terse.zsh-theme... done.

Fixed in #4.


[crail] Add support for Apache Crail (incubating)

still working on this @patrickstuedi ?

@busbey yes. we have been working on a crail binary release which will be available at the official apache maven repository. That's required for this PR to build without the need to build crail. I hope this will be done in a week or so.. sorry for the delay!

I'll close this for the moment as start a new clean PR once the Crail binaries are in maven central.

Sounds good. Thanks!


regression-test Add the regression case of the query under the large wide table.

Proposed changes
Issue Number: close #xxx
Problem summary
Add the regression case of the query under the large wide table.
Checklist(Required)

Does it affect the original behavior:

[ ] Yes
[ ] No
[ ] I don't know

Has unit tests been added:

[ ] Yes
[ ] No
[ ] No Need

Has document been added or modified:

[ ] Yes
[ ] No
[ ] No Need

Does it need to update dependencies:

[ ] Yes
[ ] No

Are there any changes that cannot be rolled back:

[ ] Yes (If Yes, please explain WHY)
[ ] No

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 40.1 seconds
load time: 585 seconds
storage size:<PHONE_NUMBER>3 Bytes
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20221102085544_clickbench_pr_38122.html


Add test for find_all() without collection

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 0.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
0

Relevant Lines:
1371

💛  - Coveralls


feat: add type declaration

port type declaration from @DefinitelyTyped, and reference it from package.json
add definitions for KeyInfo, StringKeyInfo, tweak SignedXml to take a KeyInfo for keyInfoProvider instead of FileKeyInfo

I am on a special project for about 4 more weeks, so I'll be delayed in anything GitHub-related until after then.

Save for the one comment I left, this looks great!


The variety of identity models

Thanks for your wonderful work.
I found that the 100 identity models provided in the project looks very similar,  and could not see clear age and
ethnicity difference between different models.
Will you add more identity models in this project?
Thank you very much!

Thanks for your wonderful work.
I found that the 100 identity models provided in the project looks very similar, and could not see clear age and ethnicity difference between different models.
Will you add more identity models in this project?
Thank you very much!

Hi!
I have the same question. Have you figured that out? Why the 100 identity models are very similar? Thank you very much!

Thanks for your wonderful work.
I found that the 100 identity models provided in the project looks very similar, and could not see clear age and ethnicity difference between different models.
Will you add more identity models in this project?
Thank you very much!

I will answer the question ,Because these 100 are the basis of the corresponding pca, they are normalized data. If you want to see greater differentiation, you can reduce the average face data for each model, and then enlarge it appropriately to see To the differentiation of the model


New Logo for Painless Music Player

Hello @Doctoror  ,I want contribute to New Logo for Painless Music Player, so i designed a logo for New Logo for Painless Music Player and it's free. I hope you like it. If you like it, I will send you pull request, editable files/original source and .png format files. If there's something you want to change, I'll do it.
You can choose what color you like.

Hello. I like the second one. Feel free to open the pull request, but make sure you create the adaptive icon. Thanks!

To make adaptive I added square, which one do you like @Doctoror  ?

Yes, I added a square to the legacy icon, I think so too, maybe it does not look right for this content ..
I have created 3 types of logomark with colorful and monochrome, first transparent, second with square and third with circle. How do you think about this? which one looks good for this content @Doctoror ?

The one in circle looks best.

Okay, I already uploaded logo files. This is a link to download it
https://drive.google.com/open?id=1D2_qcKvkAiTZXYH7up6WPmtCx3ZjxJgN
And I have also sent a pull request, please check #3

I can't make the adaptive icon since I have only the complete icon (logomark1.png).
In order to be able to make the adaptive Icon i need both resources:

background of logomark1.png without the white foreground
white forground only

Thanks.

Okay, I've added it to the drive and pull request, please check


[backport] Support 0-dim input in F.logsumexp

Backport of #5190

[automatic post] Jenkins, test this please.

Jenkins CI test (for commit c7a9987c997aebd814d64b80ccc46521e4c76a68, target branch v4) succeeded!


Add FieldExperience (by Magico13) meta

Hi,
Any chance of adding this little mod?
KerbalStuff: https://kerbalstuff.com/mod/505/Field Experience
Forum thread: http://forum.kerbalspaceprogram.com/threads/107663

Addad with https://github.com/KSP-CKAN/NetKAN/pull/850


Sandbox exceeded 10001 iterations.

What bug are you experiencing?

That's not bug with React Table, but with the examples in your documentation!

I was browsing the React Table examples. When I checked out the 100k rows example realized that the sandbox isn't working with more of 10k loop iterations (the example shows 100k).

Possible solution
This can be fixed using sandbox.config.json. Some information can be found here.

The mistake can be fixed in a minute, so please give this issue thumbs up and hopefully you will create the recommended sandbox.config.json in future CodeSandbox snippets.

Oh sorry, this is duplicate: #932
However @gary-menzel why you don't fix it?


Position exploding meta.

@keybase/react-hackers, this is ready for review. It moves the exploding meta to the bottom of the container on mobile. It moves it to line up with the first line of the message when a username is present on desktop.

do you want some more padding by the ... in this state?

Thanks, @chrisnojima. This is ready for another look.


Images not displaying for TensorBoard

I am trying to replicate the raccoon procedure. everything seems to be successful however when I run tensor-board the images are set to Inactive.
in your screenshot, you are able to view the steps for some of the images, however the images are non-existent/ inactive for me.
perhaps it is a dumb question, do you load the images to the Cloud Bucket as well? if so what folder? just a folder called images?

nevermind, I got it to work. i copied the images into the cloud and that worked.


Create Rajshekar723.md

translation in Latin.

Here is our translations guide. To translate the README for this lesson to Latin, be sure to follow the guide and maintain the markdown formatting from original REEADME.

@Rajshekar723 to include this Latin translation, following our translations guide you will need to change the filename to README.la.md and update the contents to maintain the markdown formatting.
I will keep this pull request open a bit longer for you to make the changes, otherwise will close up for now and a new one can be opened as time permits. Thanks!


Batch Rendering w/ DebugDraw.cpp OpenGL 3.0+

Hello,
The "Box2D/Testbed/Framework/DebugDraw.cpp" OpenGL 3.0+ code is using some kind of "Render Batching" with the following struct GLRenderTriangles code:
if (m_count == e_maxVertices) Flush();
AND
enum { e_maxVertices = 3 * 512 };
The Flush() function ultimately calls glDrawArrays(GL_TRIANGLES, 0, m_count); which actually draws the triangles to the screen.
After integrating this into my own engine, my OpenGL would only draw Box2D debug triangles every 3 or 4 seconds since I only had a couple squares rendering on the screen.  In other words, it takes 3 or 4 seconds for my engine to pass the 1536 (i.e. 3 * 512) threshold with if (m_count == e_maxVertices) Flush(); based on the number of squares and fixed 60 Hz tick rate I am using.  This ultimately causes the flashing on and off of Box2D debug triangles every few seconds which is obviously not desirable.
To solve the problem, I simply set enum { e_maxVertices = 3 * 512 }; to enum { e_maxVertices = 3 * 1 }; so that Flush(), and ultimately glDrawArrays(GL_TRIANGLES, 0, m_count);, would run every frame thereby drawing Box2D debug triangles every frame.  Everything looks/works great with that solution.
The problem is, I feel like I am missing something in terms of efficiency here.  However, I couldn't find anywhere in the Testbed code that makes it so OpenGL would properly draw Box2D debug triangles every frame while still utilizing the render batching described above.
Note:  I am also calling world->DrawDebugData(); every game tick which runs DebugDraw::DrawSolidPolygon which then ultimately tries to run GLRenderTriangles::Flush();.
My questions is as follows:
How do you keep the render batching active (i.e. 3 * 512) while also having OpenGL draw triangles with glDrawArrays(GL_TRIANGLES, 0, m_count); every frame (not every 3 or 4 seconds and flash them on and off due to the 1536 render batching "threshold")?
I really hope this makes some sense and appreciate any help.

Hi Again,
I ended up programming my own custom renderer that is very efficient in that it passes OpenGL position, color, size, etc. as single buffers (VBO's).  Not sure what the batch rendering in the Box2D example was trying to achieve in terms of efficiency but at this point it doesn't really matter anymore :]


Port Body Build Doc to markdown

The doc to port
Refer to the project for context

Handled in: https://github.com/nasa-jpl/open-source-rover/pull/229


fix: dependencies #30

Signed-off-by: Ron W. van Etten<EMAIL_ADDRESS>

Thanks for your contribution @rondlite


Update metadata to 10.0.19041.5-preview.68

https://github.com/microsoft/win32metadata/issues/251 was just merged which adds AlsoUsableForAttribute. Is that worth waiting for?

@jnm2: It's high time we update, so I don't want to delay any further. We can update this dependency as often as it's pushed to nuget.org though (the PR you reference isn't even available on nuget.org yet), so we can pick it up soon.


unknown option: nn-preload

I try to follow https://github.com/second-state/WasmEdge-WASINN-examples/blob/master/wasmedge-ggml-llama-interactive/README.md example via wasmedge version 0.13.4 but got
wasmedge --dir .:. --nn-preload default:GGML:CPU:llama-2-7b-chat.Q5_K_M.gguf wasmedge-ggml-llama-interactive.wasm default

unknown option: nn-preload

Any hint?

Hi @katopz
Could you please share your environment (including OS and Hardware info)? And the output of running installer?
It looks like the GGML plugin is not installed in the environment.

Sure, i'm on Windows 11 WSL2 ubuntu 22.04, here's full log
katopz@shikuwa:~/WasmEdge-WASINN-examples/wasmedge-ggml-llama-interactive$ curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install.sh | bash -s -- --plugin wasi_nn-ggml
Using Python: /usr/bin/python3
WARNING - Experimental Option Selected: plugins
WARNING - plugins option may change later
INFO    - Compatible with current configuration
INFO    - Running Uninstaller
WARNING - SHELL variable not found. Using bash as SHELL
INFO    - shell configuration updated
INFO    - Downloading WasmEdge
|============================================================|100.00 %INFO    - Downloaded
INFO    - Installing WasmEdge
INFO    - WasmEdge Successfully installed
INFO    - Downloading Plugin: wasi_nn-ggml
|============================================================|100.00 %INFO    - Downloaded
INFO    - Run:
source /home/katopz/.bashrc
katopz@shikuwa:~/WasmEdge-WASINN-examples/wasmedge-ggml-llama-interactive$ source /home/katopz/.bashrc
katopz@shikuwa:~/WasmEdge-WASINN-examples/wasmedge-ggml-llama-interactive$ wasmedge --dir .:. --nn-preload default:GGML:CPU:llama-2-7b-chat.Q5_K_M.gguf wasmedge-ggml-llama-interactive.wasm default
[2023-10-02 14:30:31.227] [error] loading failed: invalid path, Code: 0x20
[2023-10-02 14:30:31.227] [error]     load library failed:libblas.so.3: cannot open shared object file: No such file or directory
[2023-10-02 14:30:31.227] [error] loading failed: invalid path, Code: 0x20
[2023-10-02 14:30:31.227] [error]     load library failed:libblas.so.3: cannot open shared object file: No such file or directory
unknown option: nn-preload

anyway libopenblas-dev seem to stuck even sudo, not sure it's related
sudo apt update && apt install -y libopenblas-dev
[sudo] password for katopz:
Get:1 file:/var/cuda-repo-ubuntu2204-12-2-local  InRelease [1572 B]
Get:2 file:/var/cudnn-local-repo-ubuntu2204-<IP_ADDRESS>  InRelease [1572 B]
Get:1 file:/var/cuda-repo-ubuntu2204-12-2-local  InRelease [1572 B]
Get:2 file:/var/cudnn-local-repo-ubuntu2204-<IP_ADDRESS>  InRelease [1572 B]
Get:3 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Hit:4 http://archive.ubuntu.com/ubuntu jammy InRelease
Get:5 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Hit:6 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Fetched 229 kB in 2s (114 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?

Could you please try sudo apt update && sudo apt install -y libopenblas-dev and then execute the wasmedge again?

Could you please try sudo apt update && sudo apt install -y libopenblas-dev and then execute the wasmedge again?

Never mind :-)
Thanks for playing with WasmEdge!
Would you like to create a PR to add note on the README to avoid this happen again?

Sure, leave it to me.

@katopz @hydai I launched a new ubuntu instance and it is giving me the unknown option: nn-preload issue.
I have installed everything properly,
sudo apt update && sudo apt upgrade
sudo reboot
sudo apt install build-essential
sudo apt update && sudo apt install -y libopenblas-dev

Following is my wasmedge installation output.

@hydai BTW, I am running a C5.xlarge Ubuntu machine from AWS.


README doesn't detail how to get logs from vscode

For creating issues, it would be great if the README detailed exactly how to capture a log.

Readme updated - https://github.com/ionide/ionide-vscode-fsharp/blob/master/README.md#how-to-get-logs-for-debugging--issue-reporting


Allow location images to be a bit larger to improve quality

Allow the max location image file size to be a bit larger.

At least right, before this change, the performance stats are very good.

About to push a change. Saving stats before that.

Performance still looks good after increasing the location image file size limit from 500KB to 1MB.

Update: quality is still 1 MB, but the stats have updated and the quality is a bit too poor now.


Component not re-rendering after Hot update

Hi, I am Tomas, creator of Luis (OSS React component development and testing environment). Screenshot below.
In Luis, I use Enzyme to render and test components. I am also using MobX for state management.
GOOD NEWS is that Enzyme re-renders correctly when change in MobX state is detected on first try.
BAD NEWS is that this mechanism fails when page is hot reloaded. Calling wrapper.update() does not help. BUT simulating state change event DOES help :/
Here is the component and test code:
class State {
  @observable number = 1;
}

@observer
class Component extends React.Component {
  constructor() {
    super();
    this.state = { number: 1 };
  }
  render() {
    console.log('Rendering ...: ' + this.props.state.number);
    return (

Current mobx number: {this.props.state.number}

Current state number: {this.state.number}

        <button onClick={() => this.setState({ number: this.state.number + 1 })}>Increase</button>

    );
  }
}

// test code
const state = new State();
const wrapper = mount(<Component state={state} />);
state.number = 6; // does not trigger re-render after HMR (only on initial page load)
wrapper.find('button').simulate('click'); // DOES trigger re-render at any time
wrapper.update(); // this simply does not do anything

I can confirm this issue. I've updated to react 16 and and enzyme 3 and  no changes for mobx observables are detected anymore. wrapper.update does not help.

I can confirm this as well. @dsumer Thanks for the workaround!

In the past I have used wrapper.instance().forceUpdate(); but it no longer works in v3.

This is an inherent bug in hot reloading: the only way around it is for the hot reloader to replace every export with a Proxy before anything imports it, which is painful to write, and slow to run.
If there's still an issue without hot reloading, please file a new issue.


[FEATURE] Missing commandlet get-pnpworkflowinstance in PNP.POWERSHELL

Reporting an Issue or Missing Feature
Please confirm what it is that your reporting
Missing Feature probably.
Expected behavior
Please describe what output you expect to see from the PnP PowerShell Cmdlets
_I am trying to get the workflow instance ID/ Name for a List.
I don't see the command
get-pnpworkflowinstance
It is present in SharePointPnPPowerShellOnline_
Actual behavior
Please describe what you see instead. Please provide samples of output or screenshots.
Steps to reproduce the behavior
Please include complete script or code samples in-line or linked from gists
What is the version of the Cmdlet module you are running?
1.11.0
Which operating system/environment are you running PnP PowerShell on?

[x] Windows

Only available in old pnp

Request you to please add this command in PNP.POWERSHELL

hi @prattay56 , thank for this feature request.
Workflows are pretty much deprecated in favor of the Power Platform. So, when we moved to this new repository, we decided to not implement the workflow related cmdlets.
The old module still works and would recommend that you continue using that for workflow related operations.
We wont be implementing these cmdlets due to changes in the technology used.
You can find the list of changes here:
https://pnp.github.io/powershell/articles/upgrading.html#changes


Add a keyword for controlling the elapsed time of a test

Changes
Add a Robot keyword for setting the Elapsed Time of a test. Rationale: the relevant "elapsed time" of a performance test is often best captured through a SOQL query or other communication/calculation instead of using client-side clock time.
Implementation details:

replace TestCase.elapsedtime with a version which is more flexible.
Add a Keyword to capture the user-specified state.
Use a listener to glue the two together.

If the test never calls the keyword then fall back to using the original Robot implementation.
Also adds a "Test Message" to clarify to the report reader that the time was set by the test and not measured by Robot.
Michael Smith has asked for this feature and I need it for Uno as well, because the client-side polling time should not be part of the results.
Issues Closed

@boakley I didn't notice the pabot branch when I first wrote it and didn't realize that the pabot execution environment is so dramatically different. Instead of a context manager I guess I will patch Robot in start_suite instead of in a context manager. Is end_suite called even if there is an exception thrown in the test? That was the main reason I used a context, handler, to reliably clean up after myself.

didn't realize that the pabot execution environment is so dramatically different.

Yeah, that's not my best work.  I'm very tempted to rewrite all of that code so that there's a single path for either mode, parallel or not. The parallel code had to be implemented the way it was, and I didn't want to rock the boat on how we traditionally run robot. I'm hoping to do some major restructuring in 2021, but it's pretty low priority.

To test that the data appears in the XML from a Robot test I guess I'd need an integration test where Python calls Robot and then parses the XML. Do we have any other integration tests from Python->Robot where outputs are validated by Python?

To test that the data appears in the XML from a Robot test I guess I'd need an integration test where Python calls Robot and then parses the XML. Do we have any other integration tests from Python->Robot where outputs are validated by Python?

I don't think we do. Robot has an API for parsing results that would making writing a test pretty easy. Here's a quick hack of an example for how to pull out execution times:
from robot.api import ExecutionResult, SuiteVisitor

class ElapsedTimeVisitor(SuiteVisitor):
    def __init__(self):
        super().__init__()
        self.elapsed_times = {}

    def assert_elapsed_time(self, longname, expected):
        """expected time should be expressed in ms"""
        assert self.elapsed_times[longname] == expected

    def visit_test(self, test):
        self.elapsed_times[test.longname] = test.elapsedtime

result = ExecutionResult('output.xml')
visitor = ElapsedTimeVisitor()
result.suite.visit(visitor)

# this assumes the suite is named "Example" and the test is named "Test 1"
visitor.assert_elapsed_time("Example.Test 1", 42)

This implementation has changed so much I'm going to start from scratch.


3.x add update query mapper

Here is the implementation of UPDATE query mapper. Especially it is very useful with IfExists option.

Found some minor bugs... will fix then and open another PR.


Hand Interaction only working, when not moving

On App Start everything works fine.
But when i'm moving the Hand cursor becomes a mess (is way off where it should be)

Fixed with commit https://github.com/data-experts/HandInteraction/commit/a23032798567e4582e514eb368770f32ac67b028


Error in StateMachineHistoryEntity

Description:
StateMachineHistoryEntity has wrong definition. getUserId() method can only return string, while it can be both string and null in database (null when, such state was set by system).
Environment: Fresh Shopware.
Steps to reproduce:
Try to access getUserId() on order's state machine state history record, when said record was set by system.
Expected result:
getUserId() returns null if it's null in database.
Actual result:
getUserId() throws an error (string expected, got null).

[public] Automated response: This issue is linked to the internal issue https://shopware.atlassian.net/browse/NEXT-34827.
[created from NEXT-34827, comment 486496]

[public] Hello,
Within our company roadmap and work capacity, we try to address each bug or improvement request but admit that not each one will be resolved. To continue our culture of honesty and openness, we are closing this issue to focus on our roadmap on behalf of all Shopware users.
If you feel like this issue is still impacting you, please create a new issue and let us know. Thank you again for your valuable feedback.
[created from NEXT-34827, comment 501179]


276 - Application auth changes

Create Application: if you pass LAO check
Application appears in the list view (i.e. /applications in the UI): only if you created it
Can access Application by its ID (i.e. through direct link to it /applications/{id}): if you pass LAO check or have the LAO qualification

 Remove caseload check in API/Application Auth changes


Implicit multiplication

ie, 5x = 5*x

partially done, it works with brackets now.

works with variables now, too!


Update version to 1.1.2; update Release.md file.

Just like the title says:

updated version to 1.1.2
updated Release.md file with release notes (two issues fixed)

Because of work @mikewilburn and I are doing re: Docs, i'm going to go ahead and merge this PR.


IndexError thrown on form posts

I'm not quite sure how this part of the code works, so I don't know what I might be doing wrong: https://github.com/simonw/asgi-csrf/blob/f1a7e2889b5e7df7d67dbb7d6f483c22dbffae83/asgi_csrf.py#L210
I am using asgi-csrf with a Starlette app, and rendering out the token as a hidden field in forms. In general, csrf checks appear to be passing, however the middleware is throwing an IndexError due to a pop from empty list. The full stack trace is below.
For what it's worth: the form does get submitted and my view is able to process the form as it normally would. So, these exceptions are happening, but it's not clear to me what the real side effect is, or if it might be possible that a proper csrf check is not really happening.
Perhaps there is something obvious I am doing wrong?
console_1        | ERROR:uvicorn.error:Exception in ASGI application
console_1        | Traceback (most recent call last):
console_1        |   File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 366, in run_asgi
console_1        |     result = await app(self.scope, self.receive, self.send)
console_1        |   File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 75, in __call__
console_1        |     return await self.app(scope, receive, send)
console_1        |   File "/usr/local/lib/python3.10/site-packages/asgi_csrf.py", line 143, in app_wrapped_with_csrf
console_1        |     await app(scope, replay_receive, wrapped_send)
console_1        |   File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 112, in __call__
console_1        |     await self.middleware_stack(scope, receive, send)
console_1        |   File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 181, in __call__
console_1        |     raise exc from None
console_1        |   File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 159, in __call__
console_1        |     await self.app(scope, receive, _send)
console_1        |   File "/usr/local/lib/python3.10/site-packages/starlette/middleware/sessions.py", line 75, in __call__
console_1        |     await self.app(scope, receive, send_wrapper)
console_1        |   File "/usr/local/lib/python3.10/site-packages/starlette/middleware/authentication.py", line 48, in __call__
console_1        |     await self.app(scope, receive, send)
console_1        |   File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 26, in __call__
console_1        |     await response(scope, receive, send)
console_1        |   File "/usr/local/lib/python3.10/site-packages/starlette/responses.py", line 224, in __call__
console_1        |     await run_until_first_complete(
console_1        |   File "/usr/local/lib/python3.10/site-packages/starlette/concurrency.py", line 24, in run_until_first_complete
console_1        |     [task.result() for task in done]
console_1        |   File "/usr/local/lib/python3.10/site-packages/starlette/concurrency.py", line 24, in <listcomp>
console_1        |     [task.result() for task in done]
console_1        |   File "/usr/local/lib/python3.10/site-packages/starlette/responses.py", line 204, in listen_for_disconnect
console_1        |     message = await receive()
console_1        |   File "/usr/local/lib/python3.10/site-packages/asgi_csrf.py", line 211, in replay_receive
console_1        |     return messages.pop(0)
console_1        | IndexError: pop from empty list

I see now that my forms are being submitted as x-www-form-urlencoded rather than as multipart/form-data. I'm not sure why that is this case, I'm guessing this is the browser's call? I'm not sure.
In any case, if I modify the code at line 211, to do the same kind of check that is done in _parse_multipart_form_data on line 249, then it all seems to work:
        if messages:
            return messages.pop(0)
        else:
            return await receive()


It is possible to drop the window on the border of zones

Environment
Windows build number: Microsoft Windows [Version 10.0.18363.836]
PowerToys version: 0.18.1
PowerToy module for which you are reporting the bug (if applicable): FancyZones

Steps to reproduce
Create a layout with shared edges (doesn't matter what kind of layout)
Drag a window on the border of the layout rectangles (you can see both of the layouts highlighted)
Drop the window and it will resize to contain both of the regions
Expected behavior
It must be impossible to drag on the border

Actual behavior
Drop the window on the border and it will resize to contain both of the regions

Screenshots

Hi @arsdever
can you explain why "It must be impossible to drag on the border"?

Yeah, you're right, it makes sense to have such a future. Then maybe showing up the functionality? It is not visible, that such a thing is possible to do unless you are too attentive to notice it.

@arsdever
in time we will improve the OBE and the documentation.
Thank you.


Hi, this protect still work?

i try use this with game Vindictus but not efffect

Check whether Vindictus uses Windows Socket 2 DLLs. Also did you update the path where packets have to be dumped? Usually packet log path is the issue.

How to check it, i use dll release. Can you help me? I just want get packet name client send to seẻver.

@cyberinferno  please help me 🥹 i can pay if can get packet name from client. Because i want update server file need find packet name
https://forum.ragezone.com/threads/get-packet-name-send-to-server.1236500/#post-9305411
I was post it to RZ but dont have come

this is DLL it read

This seems like HTTP protocol rather than TCP protocol. Hence my DLL might not help you.

oh you have any soft like that for http protocol?

You can try to use tools like Wireshark. But it might not be helpful as data might be encrypted due to HTTPS.

yea thank you for replly


Inferencing on GPTFAst

I m following the inferencing pipeline for gpt fast and it s not working out: the e2e workflow said: `cd gpt-fast/
python scripts/convert_hf_checkpoint.py
--checkpoint_dir <new_dir>/Llama-2-7B-hf/
--model 7B
`
Here are steps to do the same. Using torchtune.utils.FullModelMetaCheckpointer worked out in tune run generate. I downloaded my weights from Meta's github not HF.
python scripts/convert_hf_checkpoint.py --checkpoint_dir ./gpt-fast/torchtune_johno/Llama-3-8B --model 8B

Here is the error I got with the GPTFast script:

Thanks for opening this issue!
Looking at the conversion script in gpt-fast, it assumes a few things:

The checkpoint has the name consolidated.00.pth
model name param is Llama-3

You'll need to rename the checkpoint and update the model param to make this work (I dont think 8B will work looking at the code). My suggestion would be to look at the conversion script and make sure your directory structure and checkpoint name satisfy the assumptions made by gpt fast. Hope this helps!

Thank you. I modified the paths in GPT-FAST's script and generated outputs.