SSL Issues When Using Powershell Behind Proxy

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug
When running a command to tail log I get SSL errors from Python script.
To Reproduce
Steps to reproduce the behavior.
I have tried to disable the SSL verfication as per some articles I found but it did not work
set ADAL_PYTHON_SSL_NO_VERIFY=1
set AZURE_CLI_DISABLE_CONNECTION_VERIFICATION=1
az webapp log tail --name <app_service_resource> --resource-group <resource_group>
Error received:
Connection verification disabled by environment variable AZURE_CLI_DISABLE_CONNECTION_VERIFICATION
C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\site-packages\urllib3\connectionpool.py:847: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
Connection verification disabled by environment variable AZURE_CLI_DISABLE_CONNECTION_VERIFICATION
C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\site-packages\urllib3\connectionpool.py:847: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
Connection verification disabled by environment variable AZURE_CLI_DISABLE_CONNECTION_VERIFICATION
C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\site-packages\urllib3\connectionpool.py:847: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
Connection verification disabled by environment variable AZURE_CLI_DISABLE_CONNECTION_VERIFICATION
C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\site-packages\urllib3\connectionpool.py:847: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
Exception in thread Thread-1:
Traceback (most recent call last):
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-4ppkskoa\urllib3\urllib3\contrib\pyopenssl.py", line 456, in wrap_socket
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-qxmmnr17\pyOpenSSL\OpenSSL\SSL.py", line 1915, in do_handshake
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-qxmmnr17\pyOpenSSL\OpenSSL\SSL.py", line 1647, in _raise_ssl_error
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-qxmmnr17\pyOpenSSL\OpenSSL_util.py", line 54, in exception_from_error_queue
OpenSSL.SSL.Error: [('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-4ppkskoa\urllib3\urllib3\connectionpool.py", line 600, in urlopen
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-4ppkskoa\urllib3\urllib3\connectionpool.py", line 343, in _make_request
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-4ppkskoa\urllib3\urllib3\connectionpool.py", line 839, in validate_conn
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-4ppkskoa\urllib3\urllib3\connection.py", line 344, in connect
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-4ppkskoa\urllib3\urllib3\util\ssl.py", line 347, in ssl_wrap_socket
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-4ppkskoa\urllib3\urllib3\contrib\pyopenssl.py", line 462, in wrap_socket
ssl.SSLError: ("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\threading.py", line 916, in _bootstrap_inner
self.run()
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-qxmmnr17\azure-cli\azure\cli\command_modules\appservice\custom.py", line 1810, in _get_log
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-4ppkskoa\urllib3\urllib3\request.py", line 68, in request
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-4ppkskoa\urllib3\urllib3\request.py", line 89, in request_encode_url
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-4ppkskoa\urllib3\urllib3\poolmanager.py", line 324, in urlopen
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-4ppkskoa\urllib3\urllib3\connectionpool.py", line 667, in urlopen
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-4ppkskoa\urllib3\urllib3\connectionpool.py", line 667, in urlopen
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-4ppkskoa\urllib3\urllib3\connectionpool.py", line 667, in urlopen
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-4ppkskoa\urllib3\urllib3\connectionpool.py", line 638, in urlopen
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-4ppkskoa\urllib3\urllib3\util\retry.py", line 399, in increment
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='chb008e1dv.scm.ase01e1np.metlife.com', port=443): Max retries exceeded with url: /logstream (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),))
Expected behavior
A clear and concise description of what you expected to happen.
Start to tail the log.
Environment summary
Install Method (e.g. pip, interactive script, apt-get, Docker, MSI, edge build) / CLI version (az --version) / OS version / Shell Type (e.g. bash, cmd.exe, Bash on Windows)
Powershell on Windows 10 Pro
Additional context
Add any other context about the problem here.

Is this command run in cmd instead of PowerShell? set shouldn't work in PowerShell because PowerShell's set is an alias to Set-Variable, which only changes the script's variables. See about_environment_variables.
Correct way is
$Env:AZURE_CLI_DISABLE_CONNECTION_VERIFICATION=1

However, this env var doesn't always work. For recommended way of working with proxy, please check https://github.com/Azure/azure-cli/blob/dev/doc/use_cli_effectively.md#working-behind-a-proxy

I have a similar problem. I'm trying to do a POST request to a website with a valid SSL Certificate. When I run it I get:
Unverified HTTPS request is being made to host '*'. Adding certificate verification is strongly advised
When I add verify=true during create session  I get a new error:
connection broken by 'SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),)'
I've downloaded the websites certificate, changed it to a PEM file and added it to my cacert.pem file. I've also created a pip.ini file in ${APPDATA}$/pip/ and added
path=
I've also added the certificate to the CA Store.
Nothing seems to be working to stop these errors. I don't want to just ignore them as I feel its a deeper issue.
Note: I'm using Robot Framework

add to S169

Hi @ellieCallcutART, are you using Azure CLI? If so, could you share the command you used?
For Azure CLI to use the added root CA, please make sure the cacert.pem file you changed is correct by running
$ which az
/usr/bin/az

$ cat /usr/bin/az
#!/usr/bin/env bash
/opt/az/bin/python3 -Im azure.cli "$@"

$ cat /opt/az/lib/python3.6/site-packages/certifi/cacert.pem

Hi @ellieCallcutART, are you using Azure CLI? If so, could you share the command you used?
For Azure CLI to use the added root CA, please make sure the cacert.pem file you changed is correct by running
$ which az
/usr/bin/az

$ cat /usr/bin/az
#!/usr/bin/env bash
/opt/az/bin/python3 -Im azure.cli "$@"

$ cat /opt/az/lib/python3.6/site-packages/certifi/cacert.pem

Hi @jiasli, I'm using Pycharm. I tried running the lines you sent but it doesn't recognise the syntax (I'm new to python, sorry). I tried it for a .py file and a .robot file.

I would love to help but PyCharm and Python are not Microsoft products so we don't support it.
The lines I sent you are Bash commands you can use to find where the cacert.pem file that Azure CLI uses is. For your environment, here are some places you may be interested in

The Python's installation folder, like C:\Users\{myname}\AppData\Local\Programs\Python\Python38\Lib\site-packages\certifi\cacert.pem
The virtual environment's folder, like D:\cli\env38\Lib\site-packages\certifi\cacert.pem

You may also check the doc from requests on SSL Cert Verification.
For general Python questions, you may post them at https://stackoverflow.com/.

I would love to help but PyCharm and Python are not Microsoft products so we don't support it.
The lines I sent you are Bash commands you can use to find where the cacert.pem file that Azure CLI uses is. For your environment, here are some places you may be interested in

The Python's installation folder, like C:\Users\{myname}\AppData\Local\Programs\Python\Python38\Lib\site-packages\certifi\cacert.pem
The virtual environment's folder, like D:\cli\env38\Lib\site-packages\certifi\cacert.pem

You may also check the doc from requests on SSL Cert Verification.
For general Python questions, you may post them at https://stackoverflow.com/.

Thank you for your help @jiasli I'll try there! :)

You are welcome. Let me know if the resources I provided work for you. You may also drop me an email at<EMAIL_ADDRESS>We can discuss about this offline.


Fix dependency vulnerabilites

Description of proposed changes
The security score on Snyk is very low
Related issue(s)
Fixes # (issue)
Test plan
Checklist
Need help on these? Just ask!

[ ] I have read the CONTRIBUTING document.
[ ] I have updated the documentation accordingly.
[ ] I have added tests to cover my changes.
[ ] I have run tox -e complex and/or tox -e spark if appropriate.
[ ] All new and existing tests passed.

Thanks for the requested dependency upgrades, @MLobo1997! We'll wait to approve until you mark this PR as no longer in draft, but then we'd be happy to merge in changes like these.

Hmm, interesting. 🤔 We'll take a look. Thanks for flagging @MLobo1997.

That would be great, thanks @bhancock8! If you need anything let me know. I'll polish this PR once the builds are back in place.

Sounds good. I see that we intentionally migrated from Travis to Circle back in Dec 2021. Not sure where the Circle config file went though since then. @fpoms is going to take a look.

@MLobo1997 Thanks for flagging this—from what I can tell, there seems to be something amiss on the CircleCI side of things. I’ve contacted them and am working toward a resolution. Will update you when I’ve heard back!


fix(searchbar): make searchbar white on ios

Description
make search bar white on all ios browsers
Issue(s)
Fixes #1340
How to test

Go to search page on ios device
Click on _______
You should see search bar background as white

Screenshots
How it used to look (delete if n/a):
{screenshots}
How it should now look:
{screenshots}
Checklist

[ ] Added or updated tests where appropriate
[ ] Manually tested across browsers / devices
[ ] Considered impact on accessibility
[ ] Design sign-off
[ ] Approved by product owner

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


SOLR-16271: remove wildcard imports

https://issues.apache.org/jira/browse/SOLR-16271
Description
Prevent wildcard imports by adding a check in the build, as well as fixing them in source.
Solution
Added a check.
Tests
manually run tests.
Checklist
Please review the following and check all that apply:

[ ] I have reviewed the guidelines for How to Contribute and my code conforms to the standards described there to the best of my ability.
[ ] I have created a Jira issue and added the issue ID to my pull request title.
[ ] I have given Solr maintainers access to contribute to my PR branch. (optional but recommended)
[ ] I have developed this patch against the main branch.
[ ] I have run ./gradlew check.
[ ] I have added tests for my changes.
[ ] I have added documentation for the Reference Guide

Just pushed up the spotless version.   We don't get the nice report, since it just stops on the first one with an exception:
> Task :solr:core:spotlessJava FAILED
Step 'Refuse wildcard imports' found problem in 'src/test/org/apache/solr/handler/TestReplicationHandler.java':
Do not use wildcard imports.  'spotlessApply' cannot resolve this issue.
java.lang.AssertionError: Do not use wildcard imports.  'spotlessApply' cannot resolve this issue.
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
        at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:72)
        at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:105)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:59)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:263)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:277)
        at spotless_9enkbgsd2kcvij6tpbbr3dzhe$_run_closure1$_closure2$_closure8$_closure10$_closure11.doCall(/Users/epugh/Documents/projects/solr-epugh-2/gradle/validation/spotless.gradle:66)

@dsmiley before I go futhur, what do you think of the way I fixed the imports?   Does this pattern for both regular and statics make sense?

No wildcards -- not because of me or you or whatever IntelliJ or other IDE ships by default, but because we are trying to adhere to a particular style guide: https://google.github.io/styleguide/javaguide.html#s3.3.1-wildcard-imports

awesome, so, is everything in this style guide "solr community accepted"?   As in, can I reference this to understand what our style is?   We should have a FAQ entry about that for the next person ;-)

Lucene agreed to the Spotless code formatting with the Google Java. In Lucene's precommit will fail, if you have code not formatted like that. In general it's plain easy: run "./gradlew tidy" before commit. No need to take care anything. If your IDE has slightly different style it does not matter if you run the command before commit. 👍

I don't think this PR is needed. I'd just go with spotless.

I believe that we have to manually deal with the import statements, that spotless can alert, but can't fix it....?

From my knowledge, spotless can deal with imports. It uses javac to scan the code, so it understands how to expand wildcards.

Our repo already documents adherence to "Google Java Format" -- https://github.com/apache/solr/blob/main/help/formatting.txt but perhaps we should restate this in more places.
Spotless supports multiple formats, including "Google Java Style Guide", [but it has limitations].(https://github.com/diffplug/spotless/issues/649).
Also CC @dweiss as you may be interested in this.

From my knowledge, spotless can deal with imports. It uses javac to scan the code, so it understands how to expand wildcards.

From my investigation, spotless can reorder imports, but not expand them....   Any links/docs on how to enable it?

Just a quick tip: IntelliJ can do all the work here across the project; no need to open any source file at all.  Just select the root of the project in the navigation tree and choose "Optimize Imports" in the Code menu.  It might be influenced by having the "Google-java-format" plugin enabled.

To keep the build changes clearly visible from a massive commit that makes us adhere, I propose doing this in two PRs; first actually optimizes imports via the IDE (a different PR), and the second (this PR) then enforces the rule.

Just a quick tip: IntelliJ can do all the work here across the project; no need to open any source file at all. Just select the root of the project in the navigation tree and choose "Optimize Imports" in the Code menu. It might be influenced by having the "Google-java-format" plugin enabled.

Trying it now!   Still learning my way around intellij, thanks for sharing!

@dsmiley the organize imports work great, however intellij had different order then spotless, so re-ran spotless to restore orginal order ,and now I am about to push up the explicit import changes.
Will move the enforcement code to another issue.

Just a note that some imports exist because of javadoc references and I think automated tools sometimes has issues in the past with removing them too aggressively. Worth a check after changes instead of blindly committing, and if you see it hopefully this is enough warning that you won't be surprised :)

@madrob I did notice the  // jdoc got removed....    I never did figure out what they did!

I ran gw clean and then gw assemble and the ref guide seemed okay.   Linked to the solr javadocs....    The solrj pulling in code in the ref guide seemed good as well.
Other suggestions on what to verify?

I did notice the // jdoc got removed.... I never did figure out what they did!

It looks like the comment was the only thing removed, not the import itself. If we can leave the comment somehow then I'd try to keep it, otherwise somebody in the future is inevitably going to try to flag those as unused imports and then stub their toe on it (that person is going to be me, I am the one that will stub his toe)

are you saying the text  // jdoc is literally the comment?   COuld we expand it to be something like  // import to support Javadocs or something like that?    // jdoc just didn't really mean anything to me!

I imagined  // jdoc to not be a comment, but to be some sort of crazy annotation or maybe a reminder to someone to come back and "jdoc" that line (whatever that meant!)...   So a more verbose comment would make it clearer...

Here is what I found for the text jdoc in the source:

Okay, I think I am starting to understand...   For the example of SwitchQParserPlugin.java, we reference SearchHandler in the javadocs, and so the import is needed.  If I remove the import, then IntelliJ does flag it that it is needed....
So, I guess, if we only have those three files that follow this pattern, then we can leave the comment in, but maybe change it from // jdoc to // support javadoc linking ???
Or, maybe since intellij flags the missing import if you don't have it, then we don't need the comment at all?


report requests.exceptions.HTTPError: 403, when use attachment_simple() function

When I used the pyzotero to add the attached file (*.pdf) into a item, the program broke and threw an exception (403). Can you help me to fixed the error? Thank you.
Python code
from pyzotero import zotero

library_id = '9315227'
library_type = 'user'
api_key = 'W1QpR9h0XaWUcQwpONMZV1Oi'

# get zotero
zot = zotero.Zotero(library_id, library_type, api_key)
inf = zot.key_info()
print(inf)

# attach file to item
itemID = 'EYJL7GUM'
zot.attachment_simple(['D:/Download/test1.pdf'], itemID )

output
{'key': 'W1QpR9h0XaWUcQwpONMZV1Oi', 'userID': 9315227, 'username': 'dead_fox', 'displayName': '', 'access': {'user': {'library': True, 'files': True}}}
Traceback (most recent call last):
  File "D:\InstallPackage\Applications\Python37\lib\site-packages\pyzotero\zotero.py", line 1883, in _create_prelim
    req.raise_for_status()
  File "C:\Users\mz\AppData\Roaming\Python\Python37\site-packages\requests\models.py", line 940, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://api.zotero.org/users/9315227/items

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File ".\run.py", line 35, in <module>
    zot.attachment_simple(['D:/Download/test1.pdf'], 'EYJL7GUM')
  File "D:\InstallPackage\Applications\Python37\lib\site-packages\pyzotero\zotero.py", line 1343, in attachment_simple
    return self._attachment(to_add, parentid)
  File "D:\InstallPackage\Applications\Python37\lib\site-packages\pyzotero\zotero.py", line 981, in _attachment
    res = attachment.upload()
  File "D:\InstallPackage\Applications\Python37\lib\site-packages\pyzotero\zotero.py", line 2016, in upload
    self._create_prelim()
  File "D:\InstallPackage\Applications\Python37\lib\site-packages\pyzotero\zotero.py", line 1885, in _create_prelim
    error_handler(self.zinstance, req)
  File "D:\InstallPackage\Applications\Python37\lib\site-packages\pyzotero\zotero.py", line 1633, in error_handler
    raise error_codes.get(req.status_code)(err_msg(req))
pyzotero.zotero_errors.UserNotAuthorised:
Code: 403
URL: https://api.zotero.org/users/9315227/items
Method: POST
Response: Write access denied

This isn't a Pyzotero error: it seems that you don't have write access to the Zotero library you want to add the PDF to. Please ask how to fix it on the Zotero forums!


Clean up dup. volume test and add API test for the same

Handles missed comments in PR #10622 and adds an API test to validate
error returned properly for duplicate bind mounts for the same
container target path.
Docker-DCO-1.1-Signed-off-by: Phil Estes<EMAIL_ADDRESS>(github: estesp)

LGTM

LGTM

ping @tiborvass

only because I believe you were interested in this on the other PR

LGTM


PERF: Improve perf of matrix.sum_rows

same impl as #115.
Before
test linalg::matrix::mat_mean_cols                 ... bench:       8,800 ns/iter (+/- 200)
test linalg::matrix::mat_mean_rows                 ... bench:      18,792 ns/iter (+/- 2,265)
test linalg::matrix::mat_sum_cols                  ... bench:       4,915 ns/iter (+/- 1,770)
test linalg::matrix::mat_sum_rows                  ... bench:      12,735 ns/iter (+/- 1,606)
test linalg::matrix::mat_sum_rows_and_cols_128_100 ... bench:      27,507 ns/iter (+/- 9,377)

After
test linalg::matrix::mat_mean_cols                 ... bench:       9,528 ns/iter (+/- 3,713)
test linalg::matrix::mat_mean_rows                 ... bench:      15,885 ns/iter (+/- 4,485)
test linalg::matrix::mat_sum_cols                  ... bench:       4,939 ns/iter (+/- 1,895)
test linalg::matrix::mat_sum_rows                  ... bench:       8,343 ns/iter (+/- 1,591)
test linalg::matrix::mat_sum_rows_and_cols_128_100 ... bench:      21,615 ns/iter (+/- 3,500)

I do not understand why it is faster. Is this some new compiler optimization ?

I also am a little clueless. I know that the compiler can often do some magic with slices - it aids cache access and vectorization. I'm not sure why this particular example gives a speed up though.
I am going to try it on my own architecture to see if I reproduce the results.

Just pinging to let you know there are merge conflicts here. Once resolved I'll check out and see if I can reproduce the performance gain. If yes, will merge this happily.
Do you have any idea why this gives a performance improvement @sinhrks ?

I assume row_sums is now updated in-place, rather than allocate every-time via vec_bin_op.

Ah that does make sense.
Could you humor me and try using utils::in_place_vec_bin_op? So that you update the row sum in place and use explicit vectorization (which in the past has worked better than zip iteration).

updated to use in_place_vec_bin_op, which can achieve almost the same perf.
test linalg::matrix::mat_mean_cols                 ... bench:       8,814 ns/iter (+/- 3,091)
test linalg::matrix::mat_mean_rows                 ... bench:      14,800 ns/iter (+/- 4,207)
test linalg::matrix::mat_sum_cols                  ... bench:       4,948 ns/iter (+/- 2,381)
test linalg::matrix::mat_sum_rows                  ... bench:       8,419 ns/iter (+/- 997)
test linalg::matrix::mat_sum_rows_and_cols_128_100 ... bench:      22,440 ns/iter (+/- 9,303)

I didn't mean that you had to make the change, sorry if that was unclear. It does look like it is more-or-less the same though, which is good. Thanks for checking.
I'm happy to merge this now. How about you @tafia ?

@AtheMathmo Understood. I intend to use common in-place logic as we might find better in-place impl. I'm going to change #115 to use in_place_vec_bin_op if OK.

Yes of course! Any performance gain is very welcomed. Both the explicit loop and the helper function look good to me.


Bumped development release number for 1.27

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

Merge remote-tracking branch 'upstream/main' commits with no file changes

/lgtm

/approve

/unhold


Add BLS signature functionality to shcrypto

As opposed to most other libraries I found, it uses G1 for public keys to allow for cheap aggregation of public keys on Ethereum. It is based on the bn256 package used in go-ethereum for the precompiles.

You should be able to release a new version with git tag shlib/v0.1.5; git push --tags. We don't build anything on CircleCI. google takes care of it.

Regarding the usage of this library, before calling BLSAggregateSignatures a user would verify each BLSSignature in sigs, right?

Yes, they should, otherwise the aggregate signature might be invalid.


Sensu plugins memory checks

@mattyjones I rewrote the check-ram.rb plugin to take advantage of the /proc/meminfo file instead of using free. I thought I would send over a pull request so that you could see the code.

This check has finally passed all the tests. @mattyjones This check-ram.rb check script uses /proc/meminfo instead of using free -m to get the memory usage. It should be a lot more portable then using the free command.


Demo message can prevent programming of older Megas

I had a strange issue lately: a firmware that compiled flawlessly could not be flashed on one (or several) of my Megas.
The flashing process started regularly but got stuck every time towards the end:
Looking for upload port...
Auto-detected: COM12
Uploading .pio\build\mega\mobiflight_mega_0_0_1.hex

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e9801 (probably m2560)
avrdude: reading input file ".pio\build\mega\mobiflight_mega_0_0_1.hex"
avrdude: writing flash (27012 bytes):

Writing | #################################################avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
...

After some digging on Google, it turned out that some older Mega firmware versions would detect a sequence of three exclamation marks in the data stream and interpret them as a switch to a terminal mode, thus interrupting the upload process (details here).
Searching the code, there is indeed a similar sequence (0x21 0x21 0x21) towards the end of the hex file, which correspond to the "Mobiflight rocks!!!" string in the LCD class.
Removing at least one of the exclamation marks solved the problem.
The link above also suggests that in more recent (or different) versions of the bootloader this problem is solved.
Proposed solutions:

curb the enthusiasm when declaring Mobiflight qualities to LCD users;
upgrade the Mega bootloader (the bootloader that comes with the Arduino standard IDE is apparently already fixed)

Seeing that this behaviour could cause problems with unaware users in the future, the first solution is probably worth following anyway.
Some more links:
Arduino forum
Google Code
AVR developers

This is an amazing bug, way to chase down what caused it!

Yes, I read about this some weeks ago while searching for a complete other topic. But if you had asked me what the problem might be, I hadn't recall this.

oh wow. thanks.


Reorganize repo and add signing/verifying interface

Given this removes the reading public and private keys from hex strings, is there a plan for adding that functionality back, or is that left to library callers?

I don't think we've specfically planned to add this functionality back, but we could pretty easily if it's desired.

Breaking up into smaller PRs


ft: ZENKO-143 batchDelete backbeat route

Implement 'POST /_/backbeat/batchdelete' backbeat route to get rid of
an array of data locations.
The route will be used by the garbage collector service.
Support service-gc service account with account owner access rights.

Hello jonathan-gramain,
My role is to assist you with the merge of this
pull request. Please type @bert-e help to get
information on this process.
Status report is not available.

Waiting for approval
The following approvals are needed before I can proceed with the merge:

2 peers

PR has been updated. Reviewers, please be cautious.

PR has been updated. Reviewers, please be cautious.

PR has been updated. Reviewers, please be cautious.

PR has been updated. Reviewers, please be cautious.

PR has been updated. Reviewers, please be cautious.

Build failed
The build for commit did not succeed in branch feature/ZENKO-143-garbageCollector.

Waiting for approval
The following approvals are needed before I can proceed with the merge:

2 peers

PR has been updated. Reviewers, please be cautious.

Queue out of order
The changeset has received all authorizations to enter the merge queue,
however the merge queue is currently in an incoherent state. In order
to protect this pull-request, I have have not added the changeset to the
queue.
Please contact a member of release engineering.

In the queue
The changeset has received all authorizations and has been added to the
relevant queue(s). The queue(s) will be merged in the target development
branch(es) as soon as builds have passed.
The changeset will be merged in:

:heavy_check_mark: development/8.0

The following branches will NOT be impacted:

development/7.4

There is no action required on your side. You will be notified here once
the changeset has been merged. In the unlikely event that the changeset
fails permanently on the queue, a member of Release Engineering will
contact you to help resolve the matter.
IMPORTANT
Please do not attempt to modify this pull request.

Any commit you add on the source branch will trigger a new cycle after the
current queue is merged.
Any commit you add on one of the integration branches will be lost.

If you need this pull request to be removed from the queue, please contact a
member of Release Engineering now.

I have successfully merged the changeset of this pull request
into targetted development branches:

:heavy_check_mark: development/8.0

The following branches have NOT changed:

development/7.4

Please check the status of the associated issue ZENKO-143.
Goodbye jonathan-gramain.


Does pdfkit support Hindi language?

Does pdfkit support Hindi language?
I am writing a program to generate pdf document with Hindi text
Code sample
let user = {
    no: 1,
    name: 'अर्जुन दाव',
    age: 26,
    gender: 'पुरुष'
};

console.log(user);

const doc = new PDFDocument();

doc.fontSize(36)
.fillColor('red')
.text(user.name, 50, 400);

doc.fontSize(16)
.fillColor('black')
.text(`उम्र       : ${user.age}, ${user.gender}`, 50, 460);

doc.pipe(fs.createWriteStream(`./output/${user.no}.pdf`));
doc.end();

Output
It prints the user object in the console as expected. But the pdf generated with shows a bunch of weird characters in place of texts.
Your environment

pdfkit version: ^0.11.0
Node version: v10.19.0
Browser version (if applicable):
Operating System: ubuntu 20.0.4

Same problem is mentioned at stackoverflow

Hi!
Here: https://www.easynepalityping.com/download-hindi-fonts you can download a Hindi fond. A picture of a Hindi-Keyboard is available, too. Then write the follow code:
doc.font('./Devnew.ttf').text('A B C', 10, 110);
It works for me and looks like this:

I hope it helps!

I see it works only if write अर्जुन दाव as Arjun Dav in the input. But my inputs are in Hindi. To work with this solution I need to convert all inputs from Hindi to English.

You can test the follow (only a idea, not tested by me): Make a input field in your Frontend with the Devnew.ttf font. Write something and make a PDF with the content of the input field.
I thinking: In Hindi is the en-us key "A" the "अ" since, as sample. But if you copy the since directly to the text in pdfkit (which works with en-us layout font), its not a letter, but a since.

Download https://fonts.google.com/specimen/Tiro+Devanagari+Hindi?query=hindi
and add   doc.font('./fonts/Tiro_Devanagari_Hindi/TiroDevanagariHindi-Regular.ttf');
That worked for me with Hindi input text without converting it to English or using transliteration.

How to do this in server side?

hey!!
you found any way to do it?
I passed this text
translated_text = "हिंदी हमारी राष्ट्रीय भाषा है। हमारे हिंदी भाषा कौशल को सीखना और सुधारना भारत के अधिकांश स्थानों में सेवा करने के लिए बहुत महत्वपूर्ण है। स्कूली दिनों से ही हम हिंदी भाषा सीखते थे। कुछ स्कूल और कॉलेज हिंदी के अतिरिक्त बोर्ड और निबंध बोर्ड में निबंध लेखन का आयोजन करते हैं, छात्रों को बोर्ड परीक्षा में हिंदी निबंध लिखने की आवश्यकता होती है।"

and I got this as output:

:sob:
If you found out any good way please let me know. I am looking for server side solution, cause I am doing the translation on the server and creating a pdf
Thank you


Add system_dependencies to system annotation docs

Fidesctl will be utilizing the system_dependencies field on the system model to document systems which depend on each other. This will be used in the first versions of the spatial data map view to render the connection lines between systems on the data map. It will also be an option in the configuration UI, where users will be able to pick from a list of existing systems when registering a new system.
Reference issue: https://github.com/ethyca/fides/issues/815

@mfbrown We're getting rid of the idea of/renaming system dependencies for systems, right? Can this be updated or closed?

Closing per @conceptualshark's comment above.


young adult income

Change young adult flag in state config file.
Test results:
Finished in 1.63031s
326 tests, 1521 assertions, 0 failures, 0 errors, 0 skips
Rspec results:
Finished in 0.49998 seconds (files took 1.72 seconds to load)
135 examples, 0 failures

Pavan the following test cases are failing and the Options Young adult flag should be "N"  for the sake of core 24 test cases.
 May be we need to figure this out.

Okay, as discussed in the git standards meeting we are supposed to create a new branch based on the 'qa' branch and do the changes. So I created a 'young_adult' branch based on 'qa' branch and did the changes. The tests were passing in both young_adult and qa branch and if it fails in master branch then I think something is wrong with the master/qa sync. Someone needs to recheck the branching in MITC.

@Pavan1007 I will recheck the branch.

Keep this PR in pending until we fix the branching issue.

I modified the code and tested it against master branch. All the tests are passing now and I will push the code once you are done with master/qa branch fix. Please let me know once it is done.

@Pavan1007 We are working on it, will let you know and you should create a new PR with the modified code after we resolved this issue.

@venu211 Of course

@Pavan1007 and @bommurevathi7 The issue is resolved. I am approving the PR. Please comment the test results for one more time.

@venu211 nice! here you go, please find the test results below.
Test results:
Finished in 1.65280s
326 tests, 1521 assertions, 0 failures, 0 errors, 0 skips
Rspec Results:
Finished in 0.45929 seconds (files took 1.39 seconds to load)
135 examples, 0 failures


How can I use this project?

Hi,
I am Chinese user. I am a pythoner and I searching for haproxy web manager platform.I already download your project.But,how can I start the project?Other question,I run the command "python create_db.py" return is
"DB already exists, try update
An error occurred: no such table: servers
An error occurred: no such table: servers".How can I do for this?
Thanks for you.

Hi
In the previous version, there was an error while creating the database. Download today's update, where the database is created automatically the first time you log in.

Hi,
I already downloaded the latest code. I always use python by django or tornado as web frame.I don't know how to running your project.Can you tell me which script startup program should I run？
Thank You

You have configured a virtual host with fastCGI support? like this:
cat /etc/httpd/conf.d/haproxy-wi.conf
<VirtualHost *:8000>
ServerName haproxy-wi
ErrorLog /var/log/httpd/haproxy-wi.error.log
CustomLog /var/log/httpd/haproxy-wi.access.log combined
    DocumentRoot /var/www/haproxy-wi
    ScriptAlias /cgi-bin/ "/var/www/haproxy-wi/cgi-bin/"

    <Directory /var/www/haproxy-wi>
            Options +ExecCGI
            AddHandler cgi-script .py
            Order deny,allow
            Allow from all
    </Directory>

I am sorry to that my english is poor,but I like python.So, I will learning for each other who's python is well.Thanks for you replay me, thank you very much!

You are welcome. Did you manage to run?

I know what you have described.I haven't studied fastcgi yet,but I know the CGI principle.If I have any If I have anything else, I'll ask you again.Do you have weChat?

Unfortunately no. There are: fb, whatsapp, telegram, skype.
Try run this in folder /var/www/haproxy-wi:
#!/usr/bin/env python3
import os, sys
from configparser import ConfigParser, ExtendedInterpolation

path_config = "/var/www/haproxy-wi/cgi-bin/haproxy-webintarface.config"
config = ConfigParser(interpolation=ExtendedInterpolation())
config.read(path_config)
log_path = config.get('main', 'log_path')
fullpath = config.get('main', 'fullpath')

from http.server import HTTPServer, CGIHTTPRequestHandler

webdir = fullpath
os.chdir(webdir)
server_address = (<IP_ADDRESS>, 8000)
httpd = HTTPServer(server_address, CGIHTTPRequestHandler)
httpd.serve_forever()

I did it in your way.But there are some mistakes：
[root@localhost haproxy-wi]# cat run.py
#!/usr/bin/env python3
import os, sys
from configparser import ConfigParser, ExtendedInterpolation
path_config = "/var/www/haproxy-wi/cgi-bin/haproxy-webintarface.config"
config = ConfigParser(interpolation=ExtendedInterpolation())
config.read(path_config)
log_path = config.get('main', 'log_path')
fullpath = config.get('main', 'fullpath')
from http.server import HTTPServer, CGIHTTPRequestHandler
webdir = fullpath
os.chdir(webdir)
server_address = ('<IP_ADDRESS>', 8000)
httpd = HTTPServer(server_address, CGIHTTPRequestHandler)
httpd.serve_forever()
[root@localhost haproxy-wi]# python3.5 run.py
<IP_ADDRESS> - - [23/Apr/2018 22:52:32] "GET /cgi-bin/overview.py HTTP/1.1" 200 -
Traceback (most recent call last):
File "/usr/local/lib/python3.5/configparser.py", line 1135, in _unify_values
sectiondict = self._sections[section]
KeyError: 'main'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/www/haproxy-wi/cgi-bin/overview.py", line 4, in
import funct
File "/var/www/haproxy-wi/cgi-bin/funct.py", line 17, in
fullpath = config.get('main', 'fullpath')
File "/usr/local/lib/python3.5/configparser.py", line 778, in get
d = self._unify_values(section, vars)
File "/usr/local/lib/python3.5/configparser.py", line 1138, in _unify_values
raise NoSectionError(section)
configparser.NoSectionError: No section: 'main'
<IP_ADDRESS> - - [23/Apr/2018 22:52:33] CGI script exit status 0x100

you unzipped all the files to the folder "/var/www/haproxy-wi"?
Please show "tree /var/www/haproxy-wi/"
And edit in start script this string:
server_address = ('<IP_ADDRESS>', 8001)

yes,I unzip all the files to the folder "/var/www/haproxy-wi"
this is my command return:
[root@localhost www]# tree /var/www/haproxy-wi/
/var/www/haproxy-wi/
├── cgi-bin
│   ├── add.py
│   ├── config.py
│   ├── configshow.py
│   ├── configver.py
│   ├── create_db.py
│   ├── delver.py
│   ├── diff.py
│   ├── edit.py
│   ├── funct.py
│   ├── hap_config
│   │   └── <IP_ADDRESS>.cfg
│   ├── haproxy-webintarface.config
│   ├── login.py
│   ├── logs.py
│   ├── map.py
│   ├── options.py
│   ├── overview.py
│   ├── ovw.py
│   ├── pycache
│   │   └── sql.cpython-35.pyc
│   ├── settings.py
│   ├── sql.py
│   ├── users.py
│   ├── viewlogs.py
│   └── viewsttats.py
├── CONTRIBUTING.md
├── image
│   ├── haproxy-wi-add-listen.jpeg
│   ├── haproxy-wi-admin-area.jpeg
│   ├── haproxy-wi-compare.jpeg
│   ├── haproxy-wi-config-edit.jpeg
│   ├── haproxy-wi-config-show.jpeg
│   ├── haproxy-wi-logs.jpeg
│   ├── haproxy-wi-map.jpeg
│   ├── haproxy-wi-overview.jpeg
│   ├── haproxy-wi-runtime.jpeg
│   ├── haproxy-wi-statistics.jpeg
│   └── pic
│       ├── compare.png
│       ├── edit.png
│       ├── favicon.ico
│       ├── map.png
│       ├── show.png
│       ├── start.png
│       ├── stop.png
│       └── update.png
├── inc
│   ├── awesome.css
│   ├── configshow.js
│   ├── fa-solid.min.js
│   ├── fontawesome.min.js
│   ├── js-cookie.js
│   ├── nprogress.css
│   ├── nprogress.js
│   ├── script.js
│   ├── style.css
│   ├── usersdop.js
│   ├── users.js
│   └── vertical_scrol
│       ├── custom_scrollbar.css
│       └── custom_scrollbar.min.js
├── index.html
├── LICENSE
├── log
│   └── config_edit.log
├── README.md
├── requirements.txt
└── run.py
8 directories, 61 files
[root@localhost www]#
[root@localhost haproxy-wi]# cat run.py
#!/usr/bin/env python3
import os, sys
from configparser import ConfigParser, ExtendedInterpolation
path_config = "/var/www/haproxy-wi/cgi-bin/haproxy-webintarface.config"
config = ConfigParser(interpolation=ExtendedInterpolation())
config.read(path_config)
log_path = config.get('main', 'log_path')
fullpath = config.get('main', 'fullpath')
from http.server import HTTPServer, CGIHTTPRequestHandler
webdir = fullpath
os.chdir(webdir)
#server_address = ('<IP_ADDRESS>', 8000)
server_address = ('<IP_ADDRESS>', 8001)
httpd = HTTPServer(server_address, CGIHTTPRequestHandler)
httpd.serve_forever()
[root@localhost haproxy-wi]#

Now,Still make a mistake：
[root@localhost haproxy-wi]# python3.5 run.py
<IP_ADDRESS> - - [23/Apr/2018 23:12:01] "GET / HTTP/1.1" 200 -
<IP_ADDRESS> - - [23/Apr/2018 23:12:01] "GET /inc/style.css HTTP/1.1" 200 -
<IP_ADDRESS> - - [23/Apr/2018 23:12:01] "GET /cgi-bin/overview.py HTTP/1.1" 200 -
Traceback (most recent call last):
File "/usr/local/lib/python3.5/configparser.py", line 1135, in _unify_values
sectiondict = self._sections[section]
KeyError: 'main'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/www/haproxy-wi/cgi-bin/overview.py", line 4, in
import funct
File "/var/www/haproxy-wi/cgi-bin/funct.py", line 17, in
fullpath = config.get('main', 'fullpath')
File "/usr/local/lib/python3.5/configparser.py", line 778, in get
d = self._unify_values(section, vars)
File "/usr/local/lib/python3.5/configparser.py", line 1138, in _unify_values
raise NoSectionError(section)
configparser.NoSectionError: No section: 'main'
<IP_ADDRESS> - - [23/Apr/2018 23:12:01] CGI script exit status 0x100
<IP_ADDRESS> - - [23/Apr/2018 23:12:01] code 404, message File not found
<IP_ADDRESS> - - [23/Apr/2018 23:12:01] "GET /favicon.ico HTTP/1.1" 404 -
<IP_ADDRESS> - - [23/Apr/2018 23:12:01] code 404, message File not found
<IP_ADDRESS> - - [23/Apr/2018 23:12:01] "GET /favicon.ico HTTP/1.1" 404 -
<IP_ADDRESS> - - [23/Apr/2018 23:12:01] code 404, message File not found
<IP_ADDRESS> - - [23/Apr/2018 23:12:01] "GET /favicon.ico HTTP/1.1" 404 -

Hm.... strange, everything is in place, but for some reason the config does not see it. Okay, then we'll remove it from the startup script, it's there, in principle, not particularly needed. Do this:
#!/usr/bin/env python3
import os, sys
from http.server import HTTPServer, CGIHTTPRequestHandler

webdir = /var/www/haproxy-wi/cgi-bin
os.chdir(webdir)
server_address = ('<IP_ADDRESS>', 8001)
httpd = HTTPServer(server_address, CGIHTTPRequestHandler)
httpd.serve_forever()

But best way use Apache, this script only fow test, because he work slowly :(

There are some new mistakes.Browser show that:Error response
Error code: 404
Message: No such CGI script ('/cgi-bin/overview.py').
Error code explanation: HTTPStatus.NOT_FOUND - Nothing matches the given URI.
And linux host show:
[root@localhost haproxy-wi]# python3.5 run.py
<IP_ADDRESS> - - [23/Apr/2018 23:25:33] code 404, message No such CGI script ('/cgi-bin/overview.py')
<IP_ADDRESS> - - [23/Apr/2018 23:25:33] "GET /cgi-bin/overview.py HTTP/1.1" 404 -

[root@localhost www]# grep -rn "/cgi-bin/overview.py" .
匹配到二进制文件 ./haproxy-wi-master.zip
./haproxy-wi/cgi-bin/funct.py:163:						'Overview '
./haproxy-wi/index.html:9:
[root@localhost www]#
Do I need to modify the parameters here？

Work for me now:
cd /var/www/haproxy-wi/
cp cgi-bin/haproxy-webintarface.config .
cp cgi-bin/haproxy-wi.db .

And in run script edit webdir:
webdir = '/var/www/haproxy-wi/'

It worked！Why not separate the front and back ends for your project?
thank you very much indeed

I'm glad that you started! Write please after the tests, as you. What was pleasant, that is not present. Need to collect feedback)
About separation:
I tried, but after a day of studying the Flask, I realized that it was too difficult for me. Maybe later, so long as it works.

It's my pleasure.I already give you a star.My moto is: everything is possible.I maybe write a new code in django or tornado.

Thank you )


Add a unit test for accountList

This tests pagination with first-after and last-before arguments.
Resolves #46.

Codecov Report
Attention: 43 lines in your changes are missing coverage. Please review.

Comparison is base (2e85115) 47.08% compared to head (bf3a5cd) 47.95%.

Files
Patch %
Lines

src/graphql/account.rs
78.60%
43 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #114      +/-   ##
==========================================
+ Coverage   47.08%   47.95%   +0.86%
==========================================
  Files          65       65
  Lines       10432    10633     +201
==========================================
+ Hits         4912     5099     +187
- Misses       5520     5534      +14

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


使用fontSize，Null check operator used on a null value

style: TextStyle(
color: Colors.black,
fontSize: 16.sp,
),
报错：
_CastError (Null check operator used on a null value)

这应该不会是库的问题吧
再看一下

只能在 width 和 height 里面使用，fontSize，EdgeInsets.only(left: 16), 这些地方，都没法用计算的属性，完全按照文档来的，很纳闷是怎么回事。

This is also happening with me also, when I remove the 16.sp, 20.h or 20.w then code is working fine.
but this issue occurred when we push new screenB then we got these(Null check operator used on a null value)  type of error, and come back again to the old screenA then there is an issue on the widget which is using this.

I have a similar problem.
The list was created using the List View Builder and resized with screenUtil.
Problems occur when entering another screen and returning this screen.

只能在 width 和 height 里面使用，fontSize，EdgeInsets.only(left: 16), 这些地方，都没法用计算的属性，完全按照文档来的，很纳闷是怎么回事。

English:
Just use width and height, fontSize,EdgeInsets.only(left: 16), This area,Metrical attributes for the death method,Completely massage archives,It's very good.
So this null operator crash seems to happen to me when I use width  .w or .h
Any ideas?

只能在 width 和 height 里面使用，fontSize，EdgeInsets.only(left: 16), 这些地方，都没法用计算的属性，完全按照文档来的，很纳闷是怎么回事。

English:
Just use width and height, fontSize,EdgeInsets.only(left: 16), This area,Metrical attributes for the death method,Completely massage archives,It's very good.
So this null operator crash seems to happen to me when I use width .w or .h
Any ideas?

i used the second way Initialize, and it worked for me by used the global context，hope it can help you

只能在 width 和 height 里面使用，fontSize，EdgeInsets.only(left: 16), 这些地方，都没法用计算的属性，完全按照文档来的，很纳闷是怎么回事。

我采用的第二种初始化方式，使用的全局的context 解决了这个问题，这是我的示例代码
    return StyledToast(       locale: const Locale('en', 'US'),       borderRadius: BorderRadius.circular(5.0),       textPadding: const EdgeInsets.symmetric(horizontal: 17.0, vertical: 10.0),       toastPositions: StyledToastPosition.bottom,       dismissOtherOnShow: true,       toastAnimation: StyledToastAnimation.fade,       child: GetMaterialApp(         navigatorKey: Get.key,         debugShowCheckedModeBanner: false,         onGenerateRoute: onGenerateRoute,         home: const SplashPage(),         initialBinding: BindingsBuilder(               () => GetControllerUtil.initGetController(),         ),       ),     );
Splash 页
`  @override
Widget build(BuildContext context) {
ScreenUtil.init(Get.key.currentState?.context,
designSize: const Size(1080, 608),
deviceSize: Size(MediaQuery.of(Get.context??context).size.width,
MediaQuery.of(Get.context??context).size.height),
minTextAdapt: true);
return Scaffold(
  body: Container(
    color: Colors.blueAccent,
    alignment: Alignment.center,
    child: const Text(
      "Welcome ",
      style: TextAndColorConfig.textStyle16_ffd0d0d0,
    ),
  ),
);

}`

This issue also happening to us
we needed to initialize screenutil again like this in the Build method of our class
We are using GetX to open navigation
ScreenUtil.init(
      context,
      designSize: const Size(414, 896),
      deviceSize: Size(MediaQuery.of(Get.context ?? context).size.width, MediaQuery.of(Get.context ?? context).size.height),
      minTextAdapt: true,
    );

This issue also happening to us
we needed to initialize screenutil again like this in the Build method of our class
We are using GetX to open navigation
ScreenUtil.init(
      context,
      designSize: const Size(414, 896),
      deviceSize: Size(MediaQuery.of(Get.context ?? context).size.width, MediaQuery.of(Get.context ?? context).size.height),
      minTextAdapt: true,
    );

Hello my friend, I want you to test a fix of this error, If you don't mind. Please contact me for details<EMAIL_ADDRESS>

try latest version

Hello @cjango @SumeetMourya @jonchui @BIG-BEARC , I have recently publish the new version of the library. Go check it out and if it works fine for you please close this issue, or else drop error log here. Thank you.

The issue persists in newer version.
I am using Flutter 3 and flutter_screenutil 5.5.2
The issue comes up after opening and closing BottomSheet

Hi @junaidlodhi22 , Please could you provide us some code, reproduction process or how you are using the library in your app.

The issue persists in newer version. I am using Flutter 3 and flutter_screenutil 5.5.2
The issue comes up after opening and closing BottomSheet

@junaidlodhi22, If you don't mind, please try with fix-362 branch instead and tell us if it works with you so we can ship a stable version in pub.dev.
dependencies:

  flutter_screenutil:
    git:
      url: https://github.com/OpenFlutter/flutter_screenutil
      branch: fix-362

The issue persists in newer version. I am using Flutter 3 and flutter_screenutil 5.5.2
The issue comes up after opening and closing BottomSheet

@junaidlodhi22, If you don't mind, please try with fix-362 branch instead and tell us if it works with you so we can ship a stable version in pub.dev.
dependencies:

  flutter_screenutil:
    git:
      url: https://github.com/OpenFlutter/flutter_screenutil
      branch: fix-362

Yes, this is working right now. We will also send this new update in testing and let's see if the Testing department clears it. But So far so good. thanks

Ok @junaidlodhi22 , please let us know whenever your team confirm. Thank you.

只能在 width 和 height 里面使用，fontSize，EdgeInsets.only(left: 16), 这些地方，都没法用计算的属性，完全按照文档来的，很纳闷是怎么回事。

English:
Just use width and height, fontSize,EdgeInsets.only(left: 16), This area,Metrical attributes for the death method,Completely massage archives,It's very good.
So this null operator crash seems to happen to me when I use width .w or .h
Any ideas?

i used the second way Initialize, and it worked for me by used the global context，hope it can help you

只能在 width 和 height 里面使用，fontSize，EdgeInsets.only(left: 16), 这些地方，都没法用计算的属性，完全按照文档来的，很纳闷是怎么回事。

我采用的第二种初始化方式，使用的全局的context 解决了这个问题，这是我的示例代码
 return StyledToast(
      locale: const Locale('en', 'US'),
      borderRadius: BorderRadius.circular(5.0),
      textPadding: const EdgeInsets.symmetric(horizontal: 17.0, vertical: 10.0),
      toastPositions: StyledToastPosition.bottom,
      dismissOtherOnShow: true,
      toastAnimation: StyledToastAnimation.fade,
      child: GetMaterialApp(
        navigatorKey: Get.key,
        debugShowCheckedModeBanner: false,
        onGenerateRoute: onGenerateRoute,
        home: const SplashPage(),
        initialBinding: BindingsBuilder(
              () => GetControllerUtil.initGetController(),
        ),
      ),
    );

SplashPage
  @override
  Widget build(BuildContext context) {
    ScreenUtil.init(Get.key.currentState?.context,
        designSize: const Size(1080, 608),
        deviceSize: Size(MediaQuery.of(Get.context??context).size.width,
            MediaQuery.of(Get.context??context).size.height),
        minTextAdapt: true);

    return Scaffold(
      body: Container(
        color: Colors.blueAccent,
        alignment: Alignment.center,
        child: const Text(
          "Welcome ",
          style: TextAndColorConfig.textStyle16_ffd0d0d0,
        ),
      ),
    );
  }

flutter version  3.0 combined with getx to solve the problem。

@ZyElite, branch fix-362 doesn't work for you?!

Ok @junaidlodhi22 , please let us know whenever your team confirm. Thank you.

Yes, the fix is working fine.

@junaidlodhi22 Thank you for your contribution.


Remove untrusted workload annotation support.

Fixes https://github.com/containerd/cri/issues/1095
For https://github.com/containerd/cri/issues/1257
I sent this out because of // TODO(windows): Deprecate this so that we don't need to handle it for windows.
The deprecation justification:

We announced deprecation of these annotations in the containerd v1.2.0 release note:

The plugins.cri.containerd.untrusted_workload_runtime config option and io.kubernetes.cri.untrusted-workload pod annotation are still functional, but start being deprecated. It is recommended to migrate to the RuntimeClass api.

Based on our configuration deprecation policy, a deprecated option is kept functional for 6 months or 1 release (whichever is longer). We've kept it for 1 year, one 1.3 release.

The annotation based feature is treated as experimental since the beginning.
Kubernetes 1.14 has runtime class beta enabled by default. Kubernetes 1.16 is almost out. Containerd 1.4 will likely be released after Kubernetes 1.17, at which time supported Kubernetes versions in upstream will be 1.14, 1.15, 1.16, 1.17.

Of course we should include the removal of the support into containerd 1.4 release note.
Signed-off-by: Lantao Liu<EMAIL_ADDRESS>

/test pull-cri-containerd-windows-cri

/test pull-cri-containerd-windows-cri

needs rebase

needs a rebase @Random-Liu

@Random-Liu


Fix AtomicPut panic if previous KVPair is not nil and key not exists in boltdb

Signed-off-by: Chun Chen<EMAIL_ADDRESS>Found this bug during running unit tests of libnetwork.

thanks @chenchun
ping @sanimej

Thanks @chenchun
Can you please change the error to ErrKeyNotFound which is more appropriate in this case ?

@sanimej updated.

LGTM


Migration: Failed to initialize ORM engine: strconv.ParseInt: parsing invalid syntax

As per the conversation on gitter, another error has cropped up when migrating my gogs instance. Here it is:
2017/04/01 11:45:35 [...itea/routers/init.go:54 GlobalInit()] [E] Failed to initialize ORM engine: migrate: do migrate: strconv.ParseInt: parsing "d0068f4327d3e71625b373c4db7b689e": invalid syntax

Gogs version: <IP_ADDRESS>8
Filed upon request from @strk.

@lunny any idea about obtaining more details in the log ? That error message says nothing about which migration is failing and where
@sbrl maybe you can raise log level to TRACE ?

This is probably line 42 of models/migrations/v20.go:
       for _, name := range names {
                userID, err := strconv.ParseInt(name, 10, 64)
                if err != nil {
                        log.Warn("ignore avatar %s rename: %v", name, err)
                        continue
                }

The error check seems to reveal it was intended to skip errors, but maybe ParseInt is a fatal rather than raising an error ?

@strk How do I raise the log level?

@sbrl LEVEL = Trace under [log] section of custom/conf/app.ini, see https://docs.gitea.io/en-us/config-cheat-sheet/

Updating to 1.1 from 1.1.0 appears to have resolved this issue.

Perfect, so 1.1.1 will solve another issue


HADOOP-16195 MarshalledCredentials toString

S3A MarshalledCredentials.toString() doesn't print full date/time of expiry
Change-Id: I4f1bdd2be0d5760c5501dce6edb6122499108b53

testing: been using this locally. Works in a toString() of a DT.
AWS Credentials=session credentials, expiry 2019-03-15T16:11:29Z;

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Comment

0
reexec
27
Docker mode activated.

_ Prechecks _

+1
@author
0
The patch does not contain any @author tags.

-1
test4tests
0
The patch doesn't appear to include any new or modified tests.  Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ trunk Compile Tests _

+1
mvninstall
989
trunk passed

+1
compile
34
trunk passed

+1
checkstyle
24
trunk passed

+1
mvnsite
38
trunk passed

+1
shadedclient
723
branch has no errors when building and testing our client artifacts.

+1
findbugs
44
trunk passed

+1
javadoc
25
trunk passed

_ Patch Compile Tests _

+1
mvninstall
29
the patch passed

+1
compile
29
the patch passed

+1
javac
29
the patch passed

+1
checkstyle
18
the patch passed

+1
mvnsite
33
the patch passed

+1
whitespace
0
The patch has no whitespace issues.

+1
shadedclient
744
patch has no errors when building and testing our client artifacts.

+1
findbugs
50
the patch passed

+1
javadoc
24
the patch passed

_ Other Tests _

+1
unit
279
hadoop-aws in the patch passed.

+1
asflicense
27
The patch does not generate ASF License warnings.

3213

Subsystem
Report/Notes

Docker
Client=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/hadoop-multibranch/job/PR-617/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/617

Optional Tests
dupname  asflicense  compile  javac  javadoc  mvninstall  mvnsite  unit  shadedclient  findbugs  checkstyle

uname
Linux f9cc79d6fef8 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
personality/hadoop.sh

git revision
trunk / cb4d911

maven
version: Apache Maven 3.3.9

Default Java
1.8.0_191

findbugs
v3.1.0-RC1

Test Results
https://builds.apache.org/job/hadoop-multibranch/job/PR-617/1/testReport/

Max. process+thread count
415 (vs. ulimit of 5500)

modules
C: hadoop-tools/hadoop-aws U: hadoop-tools/hadoop-aws

Console output
https://builds.apache.org/job/hadoop-multibranch/job/PR-617/1/console

Powered by
Apache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

been using this downstream, works well

@steveloughran - is there any chance of toString() exposing credentials in log files with this? If not, what are the protections there?

LGTM
+1

thanks, merged (from VS.code IDE, BTW)

ok, forgot to name myself as author when committing this through the IDE. Need to do that in future


Feat: text ledger readme

Update README for TextLedger
Description:
This PR enhances the TextLedger README to provide a more detailed overview of its features, particularly its integration with Git for version control. Key updates include:

Expanded Key Features section to highlight the benefits of Git-based tracking, auditability, and collaboration.
Detailed Example Usage with step-by-step operations (adding, modifying, and deleting entries), along with corresponding Git diffs to demonstrate the minimal impact of each change.
Revised File Structure section for clarity on file organization and the purpose of each file.

This update aims to make TextLedger usage more intuitive and showcase the advantages of its Git integration for version control and collaboration.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Flag
Coverage Δ

unittests
77.55% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Trouble viewing Hitbox Vods

Hello, I know it states under plugins that Livestreamer supports hitbox.tv streams and vods and that vod support is limited but I've been unable to use livestreamer to view hitbox's vods. I've tested with hitbox streams and twitch streams/vods but when I try a vod I get the following :
C:\Users\Admin>livestreamer http://www.hitbox.tv/video/488608/description best
[cli][info] Found matching plugin hitbox for URL http://www.hitbox.tv/video/4886
08/description
[cli][info] Available streams: 1080p (best), live (worst)
[cli][info] Opening stream: 1080p (hls)
[cli][error] Could not open stream: Unable to open URL: http://edge.bf.hitbox.tv
/static/videos/vods/http://edge.hls.vods.hitbox.tv/static/videos/vods/novawar/ad
7f92271f29203a6a907de592d7cfaf470c4eb4-552df8b94d204/novawar/index.m3u8 (404 Cli
ent Error: Not Found)

C:\Users\Admin>livestreamer http://www.hitbox.tv/video/488607 best
[cli][info] Found matching plugin hitbox for URL http://www.hitbox.tv/video/4886
07
[cli][info] Available streams: 1080p (best), live (worst)
[cli][info] Opening stream: 1080p (hls)
[cli][error] Could not open stream: Unable to open URL: http://edge.bf.hitbox.tv
/static/videos/vods/http://edge.hls.vods.hitbox.tv/static/videos/vods/novawar/ad
7f92271f29203a6a907de592d7cfaf470c4eb4-552df6074d8e2/novawar/index.m3u8 (404 Cli
ent Error: Not Found)

C:\Users\Admin>livestreamer http://hitbox.tv/video/488607 best
[cli][info] Found matching plugin hitbox for URL http://hitbox.tv/video/488607
[cli][info] Available streams: 1080p (best), live (worst)
[cli][info] Opening stream: 1080p (hls)
[cli][error] Could not open stream: Unable to open URL: http://edge.bf.hitbox.tv
/static/videos/vods/http://edge.hls.vods.hitbox.tv/static/videos/vods/novawar/ad
7f92271f29203a6a907de592d7cfaf470c4eb4-552df6074d8e2/novawar/index.m3u8 (404 Cli
ent Error: Not Found)

C:\Users\Admin>livestreamer http://hitbox.tv/video/488607/description best
[cli][info] Found matching plugin hitbox for URL http://hitbox.tv/video/488607/d
escription
[cli][info] Available streams: 1080p (best), live (worst)
[cli][info] Opening stream: 1080p (hls)
[cli][error] Could not open stream: Unable to open URL: http://edge.bf.hitbox.tv
/static/videos/vods/http://edge.hls.vods.hitbox.tv/static/videos/vods/novawar/ad
7f92271f29203a6a907de592d7cfaf470c4eb4-552df6074d8e2/novawar/index.m3u8 (404 Cli
ent Error: Not Found)

Am I just typing it out wrong?

hi
pending correction plugin
livestreamer  "hlsvariant://http://www.hitbox.tv/api/player/hlsvod/488607.m3u8" best


Tech Debts

[ ] Folder restructure (small)
[ ] Handle firewalls in relay
[ ] Break down large screens into reusable components
[ ] Standardise app scripts for the manual build process
[ ] React native migration and general lib version management
[ ] Update linters

We have an updated list


[1.8.9] Materials

Hey there. Firstly I want to thank you for this great mod! I've been enjoying it a lot over the last few days! The hammers all work great and I feel for how long they last the material cost is fair!
I have noticed a couple of things though that I just wanted to bring to your attention more than anything else. Currently in 1.8.9 I'm using a mod called Fun Ores (developed by SilentChaos512) to add Copper, Tin, Nickel, Silver, Aluminium, Zinc and Lead to my worlds. However; despite the ingots being in the ore dictionary, Hammerz doesn't seem to recognise their block forms as valid materials for hammers. As such, I don't seem to have access to the additional hammers in-game.
I have gone through the configs for both mods and confirmed that everything is enabled and should be working, yet they do not.
The only other thing I've noticed (I'm not sure if this is a bug or it was intended but just thought I'd mention it) is that when my first stone hammer ran out of durability or it got really low; instead of breaking it simply disabled the 3x3 mining effect and only mined individual blocks akin to a stone pickaxe.
If this behaviour was intended then my suggestion is a way to repair the hammer using its base material. If it wasn't intended, then it's a bug.
Thank you for your time!
EDIT: Just thought I may have jumped the gun a bit on the repairing... I used your other tool mod in Horizons: Daybreaker (the name of it escapes me) and that required an anvil. I will try that before claiming that as a bug.
EDIT: Anvils worked for repairs. Ignore that.

Sorry for taking a while to comment, I was away for the day.
Because the recipes for a standard hammer are oredictionary recipes, they will be enabled if there is an instance of "blockMaterial" where material is  the name (eg blockCopper). Many mods are really good at registering itemstacks for their ingots, but not as many do it for their blocks (including Botania and Thaumcraft), There are mods that add oredictionary entries to the tooltips of blocks, can you confirm that the storage blocks from Fun Ores are registered?
As of the latest 1.8.9 version, repairing and enchanting should both be fully functional although I will need to have a look at the hammerz not breaking when they run out of durability.
Thanks for the report!

Firstly thanks for replying! Don't worry about being away.
I have since tested that anvils can repair them (as in Magnanimous Tools) and it seems to be working fine. Due to my sheer lack of finding diamonds in my Survival world, I am yet to test enchanting :(
I have had a look at the blocks used by Silent in Fun Ores and it appears he's registering them as MetalBlock# and AlloyBlock#. Copper is registered as MetalBlock0 and Bronze as AlloyBlock0.
This explains why they aren't registering as usable materials. I think Silent needs to take a sit down and do some oreDictionary work for his blocks. His ingots are fine.

I actually remembered that there is a config option in this mod for adding ore-dictionary entries to itemstacks, so if you come across a similar issue in the future you can use that. Silent (and all mod authors) should add entries for item stacks of their metal storage blocks just as forge does for vanilla, unfortunately fewer people depend on them to be registered than ingots, dusts or ores.

Call me either blind or stupid, or both; but I guess you mean your config file.
Is it in the enabled oreDictionary hammers?

It's in the random options in the config file, it doesn't add any content or change which hammers load, it just adds whatever strings an itemstack may be registered in the oredictionary to its tooltip. It's handy for seeing something like if a metal storage block is registered, if it isn't, it won't have an entry. All of the ingots and dusts have valid entries but the blocks don't.

Ah that's useful! I know it isn't my mod, but I'd love to decompile Fun Ores and change the blocks to instances of blockMaterial.
I may ask Silent to look at that as a suggestion. Thank you very much for your help!

It is important to point out that the oredictionary is completely separate from block or item instantiation. It's a registry added by forge which works on an opt-in basis which is why many authors don't bother. Anyone can find an itemstack and register it, regardless of if its their item or not, I do this with thaumcraft and botania blocks because they don't themselves and could do it for others but it isn't the best practice to do it for others... :P

Well even if he simply adds it as a configuration option, it would help. As of the time of writing, his mod is one of the few adding these metals and alloys to the game.

My latest repository may be of interest to you, its set for release hopefully at some point this week. But definitely encourage people to make full proper use of the oredictionary if you ever notice that they aren't.

Well I'm an aspiring mod developer and I feel that use of the OreDictionary should be mandatory.
Not that I'm saying in any way that his way is wrong, but it makes mod integration a lot easier.

I have to admit though; this has made me want to work on a ore mod with better integration for 1.8.9


Avalonia: graphical artifacts during mouse interactions

Issue:
I'm using a simple static plot with 2 vertical axes and 6 signals. Everything is working as expected... expect when the mouse is panning, we can see some flashing artifacts (as if the series are drawn multiple times).
I've tried to simplify the plot as much as possible (keeping one axis, one signal) but it's always there.
https://github.com/ScottPlot/ScottPlot/assets/150119089/8ec9c78d-7135-44c4-bf28-6bb793bec850
Am I doing something wrong? Or... could it be an Avalonia issue?
The WinForms demo are working well on the same system.
ScottPlot Version:
ScottPlot.Avalonia 5.0.23
Avalonia 11.0.10

For a workaround, you can create a custom implementation of IPlotInteraction that will use the synchronization object.
Something like this:
var sync = new object();
AvaPlot.Interaction = new SynchronizedInteraction(AvaPlot.Interaction, sync);
AvaPlot.Plot.RenderManager.PreRenderLock += (s, e) => Monitor.Enter(sync);
AvaPlot.Plot.RenderManager.RenderFinished += (s, e) => Monitor.Exit(sync);

private sealed class SynchronizedInteraction(IPlotInteraction source, object sync) : IPlotInteraction
{
    public IPlotControl PlotControl => source.PlotControl;

    public void MouseWheelVertical(Pixel pixel, float delta)
    {
        lock (sync)
        {
            source.MouseWheelVertical(pixel, delta);
        }
    }

    public void OnMouseMove(Pixel newPosition)
    {
        lock (sync)
        {
            source.OnMouseMove(newPosition);
        }
    }

    public void Disable()
        => source.Disable();

    public void DoubleClick()
        => source.DoubleClick();

    public void Enable()
        => source.Enable();

    public void Enable(PlotActions customActions)
        => source.Enable(customActions);

    public void KeyDown(Key key)
        => source.KeyDown(key);

    public void KeyUp(Key key)
        => source.KeyUp(key);

    public void MouseDown(Pixel position, MouseButton button)
        => source.MouseDown(position, button);

    public void MouseUp(Pixel position, MouseButton button)
        => source.MouseUp(position, button);
}


Fix occasional tracebacks in Google oauth

I'm seeing a lot of tracebacks like these on zulip.com:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 132, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/zulip/deployments/2015-09-25-22-35-44/zerver/views/init.py", line 695, in finish_google_oauth2
raise Exception('Could not convert google pauth2 code to access_token\r%r' % resp.text)
Exception: Could not convert google pauth2 code to access_token
u'{\n "error": "invalid_grant",\n "error_description": "Code was already redeemed."\n}\n'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 132, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/zulip/deployments/2015-09-25-22-35-44/zerver/views/init.py", line 695, in finish_google_oauth2
raise Exception('Could not convert google pauth2 code to access_token\r%r' % resp.text)
Exception: Could not convert google pauth2 code to access_token
u'{\n "error": "invalid_grant",\n "error_description": "Bad Request"\n}\n'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 132, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/zulip/deployments/2015-09-25-22-35-44/zerver/views/init.py", line 695, in finish_google_oauth2
raise Exception('Could not convert google pauth2 code to access_token\r%r' % resp.text)
Exception: Could not convert google pauth2 code to access_token
u'{\n "error": "invalid_grant",\n "error_description": "Invalid code."\n}\n'
Even if these are user error, they shouldn't be throwing exceptions.  Any ideas what's going on?

It looks like the login flow is redirecting the user back to the oauth success url after we have redeemed the token. It is not immediately clear to me how to reproduce this but my best guess is that Confirmation.objects.get_link_for_object is returning the oauth url..

One hypothesis I have is that this is what happens when you try to use the oauth flow when you don't have an account, and maybe hit "back" afterwards.

I am also getting the code was already redeemed error too. Any help would be great.

This was fixed in 6c5cee24002500bf315b53493d473faf362c049c


Remove file: from top level conda env

Signed-off-by: Karol Gugala<EMAIL_ADDRESS>

Shouldn't something in the CI have been failing before this change?

Shouldn't something in the CI have been failing before this change?

Good point. I looked through the docs and it doesn't seem we use this file. Looks like leftover from the times before we added QL examples.

We should probably remove it, instead of fixing it.

Suprseded by #176. Closing.


Metaphlan3.0 > export2graphlan error

Hi,
I'm trying to use export2graphlan on my MetaPhlAn3 abundance table output. I installed this and graphlan in another Conda env as they require python 2.7.
When I run:
export2graphlan.py --skip_rows 1 -i statemerged_abundance_table_g.txt--tree merged_abundance.tree.txt --annotation merged_abundance.annot.txt --most_abundant 100 --abundance_threshold 1 --least_biomarkers 10 --annotations 5,6 --external_annotations 7 --min_clade_size 1
I get the error:
Traceback (most recent call last): File "/pub38/cchong/miniconda2/envs/graphlan/bin/export2graphlan.py", line 770, in <module> main() File "/pub38/cchong/miniconda2/envs/graphlan/bin/export2graphlan.py", line 599, in main biomarkers = get_biomarkes(abundant, args.least_biomarkers) File "/pub38/cchong/miniconda2/envs/graphlan/bin/export2graphlan.py", line 381, in get_biomarkes while lvl < len(max(cc)): ValueError: max() arg is an empty sequence
statemerged_abundance_table_g.txt
Any ideas what's going wrong?
Thanks in advance!

Hi,
Many thanks for using export2graphlan.
The error you got is due to the fact that the input file is not a MetaPhlAn output, in particular the first column (the taxonomy), only contains the species levels and not the full taxonomy path. This makes not possible for export2graphlan to identify the biomarkers, and this is what causing the error.
If you can fix the input file by using the full path-taxonomy instead of only the species levels, that should fix the error you got.
Many thanks,
Francesco

Hi Francesco,
Thank you for your reply and your help! I used the unmodified MetaPhlAn output table and it fixed the error.
Best wishes,
Charlotte


Type error: undefined is not an object (CheckoutMercadoPagoModule.startCheckout)

I trying to run example app but mercadopago sdk components is not working.
Are there any extra step?

Currently having the same issue. Hey guys, would you mind to check the example app?

@scarmuega I have made checkout work on Android. This issue only happens on IOS. When you distribute the package, do you link the MercadoPago SDK to the library, or do we have to link it?

@JonatanSalas the actual MercadoPago SDK should be installed independently following the instructions from the official site. Once you have that in place, you can install and link this bridge package.
TBH, I have to test the whole procedure in a blank project to confirm that it still works with the latest version of the SDK. I'll try to do it this week, and I'll come back to this issue. If you have any luck, please let me know.

I have done it with Android! If you want I can give you a blank project where I have been testing. To do so, I have modified the gradle dependencies from the package by forking the repository.

Thanks for support!

@scarmuega I have found something related to this issue. When reviewing the module in node_modules folder there's only code related to Android. Is this normal? See attached images.

This is the package.json, the library version is v0.2.0:

@scarmuega would you mind to verify the content of release v0.2.0. If the error it's related to this, it's currently easy to fix by releasing a newer library version.
As a hot fix, I will fork the library and release a fix version, also, I will try to integrate new mercadopago SDK and test it. When this issue it's fixed, I will remove my version from npm. Is it okey for you?

@JonatanSalas I'll do a fresh publish to NPM to see if it fixes the issue. Otherwise, a PR would be more than welcome!

@JonatanSalas published! please try out version 0.3.0.

@scarmuega I will try it, and let you know! Thanks for your effort 😄

@scarmuega I have tested but still the same issue, I will try to probe on my own, and if I solve it I will submit a PR.

@scarmuega It seems to be a configuration issue, I have fixed it in the example app you provide.

import NativeModules from react-native
const Mercadopago = NativeModules.CheckoutMercadoPagoModule;
Mercadopago.startCheckout(xxx,xxx)

@JonatanSalas I published a new version to npm after merging your PR. Please ping me if it works as expected.

@scarmuega We've make it work with the latest release you've made! So, thank you! You can close now the issue. Also, the PR I have made, was only with the purpose of upgrading the example mobile app.

i am getting same issue again


Fix parsing of "editorial group"

From: https://github.com/ietf-ribose/relaton-data-3gpp/issues/5
@strogonoff:

editorialgroup seems like some custom extension outside of Relaton core but relevant for some citations?

The dash in the following example makes editorialgroup contents seem ill-parsed, example:
  "editorialgroup": [
      {
          "name": "C1",
          "type": "prime"
      },
      {
          "name": "-",
          "type": "other"
      },
      {
          "name": "T2",
          "type": "former"
      }
  ],

Example items:

https://demo.bibxml.org/api/v1/ref/3gpp/TR_33.879_REL-13_0.1.0/
https://demo.bibxml.org/api/v1/ref/3gpp/TS_29.163_REL-9_9.21.0/
https://demo.bibxml.org/api/v1/ref/3gpp/TS_27.007_REL-15_15.3.0/ (extended “release” value)

This is actually the meeting ID from the database, it is not THE editorial group itself, but it is editorial group information. It shouldn't be broken down, e.g. "C1-T2" is correct without splitting it.

@ronaldtse they have already split in DB:
{:Type=>"TR",
 :Number=>"33.879",
 :"For publication"=>"0",
 :Title=>"Study on security enhancements for Mission Critical Push To Talk (MCPTT) over LTE",
 :"former WG"=>nil,
 :"WG prime"=>"S3",
 :"WG other"=>nil,
...

{:Type=>"TS",
 :Number=>"29.163",
 :"For publication"=>"1",
 :Title=>"Interworking between the IP Multimedia (IM) Core Network (CN) subsystem and Circuit Switched (CS) networks",
 :"former WG"=>nil,
 :"WG prime"=>"C3",
 :"WG other"=>nil,
...

{:Type=>"TS",
 :Number=>"27.007",
 :"For publication"=>"1",
 :Title=>"AT command set for User Equipment (UE)",
 :"former WG"=>"T2",
 :"WG prime"=>"C1",
 :"WG other"=>"-",
...

Sope specs look like this:
{:Type=>"TS",
 :Number=>"01.02",
 :"For publication"=>"1",
 :Title=>"General Description of a GSM Public Land Mobile Network (PLMN)",
 :"former WG"=>"SMG01  /  SMG02  /  SMG03",
 :"WG prime"=>"S1",
 :"WG other"=>"GP / CP",
...

Therefore we can't just join them, can we?

@andrew2net sorry, yes you are right. These WG codes are split as "prime" and "other" components in the Specs_GSM+3G table.
It's just so strange the WG other can be just -...

Maybe you should rename them:
  "editorialgroup": [
      {
          "name": "C1",
          "type": "wg-prime"
      },
      {
          "name": "-",
          "type": "wg-other"
      },
      {
          "name": "T2",
          "type": "wg-former"
      }
  ],

For the content of "former WG" being S1  /  SMG01  /  T2  /  SMG04, it should be something like:
"wg-former": [
[
      {
          "name": "S1",
          "type": "wg-prime"
      },
      {
          "name": "SMG01",
          "type": "wg-other"
      }
],
[
      {
          "name": "T2",
          "type": "wg-prime"
      },
      {
          "name": "SMG04",
          "type": "wg-other"
      }
],
]

But many of them don't have both components (e.g. SPAN3  /  N4  /  SMG03?).
It's too inconsistent, so we might as well not parse "former WG".

Maybe - just means NULL and we just drop that.

Yes, I think - should be dropped. Will do it.
Concerning nested workgroups "wg-former": [{ "name": "S1", "type": "wg-prime" }] we don't have such a option in the Relaton model.

@ronaldtse I've removed workgroups with - names. Can we close this issue?

Yes, thank you.


Create Product development doc

Resources For New PMs
https://miketadlock.tumblr.com/post/44814775687/resources-for-new-pms

Startup School
https://www.startupschool.org/library
https://64notes.com/design/online-payments-for-indian-businesses/
https://twitter.com/alexmuench/status/1158517850346270727
https://krit.com/blog/product-roadmap-free-template-and-guide-for-founders
https://paper.dropbox.com/published/Product-Feature-UX-plan--AlZkzioudo0h5m8Sx2PnO9GPBg-aTB1elcLy3DC8NwAc33S3Dp


Choose command

The !choose command (alias !pick) should take a list of options as input and return on of them at random.
Eg: "!choose go to sleep, eat more, programming" should return either "go to sleep", "eat more" or "programming" to the user.

Time to try my hand at a slightly harder issue. I'll pick this up if that's okay!

Time to try my hand at a slightly harder issue. I'll pick this up if that's okay!

I believe in you! Thank you for helping us out


Static map previews won't work with private maps shared with organization

Create a private map with private data with an organization user.
Share it with the organization.
Go to "shared with me" maps of another user:

Request:
http://central-org-b-admin.localhost.lan:8181/api/v1/map?config=%7B%22layers%22%3A%5B%7B%22type%22%3A%22http%22%2C%22options%22%3A%7B%22urlTemplate%22%3A%22http%3A%2F%2F%7Bs%7D.basemaps.cartocdn.com%2Flight_all%2F%7Bz%7D%2F%7Bx%7D%2F%7By%7D.png%22%2C%22subdomains%22%3A%22abcd%22%7D%7D%2C%7B%22type%22%3A%22named%22%2C%22options%22%3A%7B%22name%22%3A%22tpl_20fe96c8_6283_11e5_b6f1_080027880ca6%22%7D%7D%5D%7D&callback=_cdbc_1856701237_2
Error: _cdbc_1856701237_2({"errors":["Unauthorized 'tpl_20fe96c8_6283_11e5_b6f1_080027880ca6' template instantiation"]});
Nevertheless if it's shared with one person it works. Request:
http://central-org-b-admin.localhost.lan:8181/api/v1/map?config=%7B%22layers%22%3A%5B%7B%22type%22%3A%22http%22%2C%22options%22%3A%7B%22urlTemplate%22%3A%22http%3A%2F%2F%7Bs%7D.basemaps.cartocdn.com%2Flight_all%2F%7Bz%7D%2F%7Bx%7D%2F%7By%7D.png%22%2C%22subdomains%22%3A%22abcd%22%7D%7D%2C%7B%22type%22%3A%22named%22%2C%22options%22%3A%7B%22name%22%3A%22tpl_c286f21a_667f_11e5_b164_080027880ca6%22%7D%7D%5D%7D&callback=_cdbc_2762101703_1
Response:
_cdbc_2762101703_1({"layergroupid":"c645cf9b3f270e09e931209d175aecac:1443513318750.08","metadata":{"layers":[{"type":"http","meta":{}},{"type":"http","meta":{}},{"type":"mapnik","meta":{}}]},"last_updated":"2015-09-29T07:55:18.750Z"});

cc @Kartones @xavijam

There has been no activity on this issue for more several months. We are closing it. If you think this still needs to be addressed please open a new issue.


create doesn't recieve bytecode

unless the contract was deployed to a network, with a deploy script. Workaround?

The problem turned out to be a badly implemented interface created a completely silent compiler error


newly designed editor(0.5.9) doesn't scroll far enough

Hi,
For me the new editor (0.5.9) doesn't allow me to scroll to the end of the code. The last two or three lines of code are hidden behind the console panel. Is it me? I am on OSX 10.10.3
Grtz,
HW

yes, it's our new initiative to encourage people to write more concise code.
but really, ack sorry, will post a fixed version soon.

:)
Great! Like the new design btw!
Grtz,

Having same issue. Some kind of padding issue.


MLPRegressor and MLPClassifier

These are basic and should be included

@jcpeterson Thanks.
Currently, we only opened task-specific interfaces.
We will be extracting the network-type level interfaces soon.

Cool, any idea on the approximate timeline?


if cpu limits set in project/namespace pods can't be deployed

What kind of request is this (question/bug/enhancement/feature request):
Bug
Steps to reproduce (least amount of steps as possible):

On cluster deployed by RKE project (testproject) with CPU limit was created. In this project namespace (testns) was created with added limit.
$ kubectl describe quota -n testns
Name:       default-w4cvq
Namespace:  testns
Resource    Used  Hard
--------    ----  ----
limits.cpu  0     2

# base on that: https://kubernetes.io/docs/tasks/run-application/run-stateless-application-deployment/

$ kubectl apply -f https://k8s.io/examples/application/deployment.yaml -n testns
deployment.apps/nginx-deployment created

$ kubectl describe quota -n testns
Name:       default-w4cvq
Namespace:  testns
Resource    Used  Hard
--------    ----  ----
limits.cpu  0     2

$ kubectl get pods -n testns
No resources found.

$ kubectl get svc -n testns
No resources found.

# I did that in default namespace without quota and it worked:
$ kubectl apply -f https://k8s.io/examples/application/deployment.yaml
deployment.apps/nginx-deployment created
$ kubectl get pods
NAME                                READY   STATUS    RESTARTS   AGE
hello-app-794869cb84-8m662          1/1     Running   0          13m
nginx-deployment-5c689d88bb-lmjlv   1/1     Running   0          27s
nginx-deployment-5c689d88bb-zwx5r   1/1     Running   0          27s

Environment information
RKE 0.1.13
Kubernetes v1.12.3
Cluster information
OS: Ubuntu 16.04.4 LTS
Cloud provider: openstack
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.1", GitCommit:"eec55b9ba98609a46fee712359c7b5b365bdd920", GitTreeState:"clean", BuildDate:"2018-12-13T10:39:04Z", GoVersion:"go1.11.2", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"12", GitVersion:"v1.12.3", GitCommit:"435f92c719f279a3a67808c80521ea17d5715c66", GitTreeState:"clean", BuildDate:"2018-11-26T12:46:57Z", GoVersion:"go1.10.4", Compiler:"gc", Platform:"linux/amd64"}

Docker (use docker info):

version: 17.3.2

Every workload in a project/namespace that is using quotas needs to have appropriate reservations/limits set in order to enforce the quotas.


WHy does it not let me join hypixel when i sighn in to my microsoft acount

if any of youare have the same problem this is wierd it works for my  friends but not me

I really don't recommend you join Hypixel. There is a very good chance your account will get banned.

i dont know

GeyserConnect shouldnt block any server, if you are on about the unofficial public instance (geyserconnect.net) then its likely IP banned.
Please reply if its no the unofficial public instance

I dont know about that


Non-deterministic Dataset.builder_name value

Describe the bug
I'm not sure if this is a bug, but print(ds.builder_name) in the following code sometimes prints out rotten_tomatoes instead of parquet:
import datasets

for _ in range(100):
    ds = datasets.load_dataset("rotten_tomatoes", split="train")
    print(ds.builder_name)  # prints out "rotten_tomatoes" sometimes instead of "parquet"

Output:
...
parquet
parquet
parquet
rotten_tomatoes
parquet
parquet
parquet
...

Here's a reproduction using GitHub Actions:
https://github.com/mlflow/mlflow/actions/runs/8153247984/job/22284263613?pr=11329#step:12:241
One of our tests is flaky because builder_name is not deterministic.
Steps to reproduce the bug

Run the code above.

Expected behavior
Always prints out parquet?
Environment info
Copy-and-paste the text below in your GitHub issue.
- `datasets` version: 2.18.0
- Platform: Linux-6.5.0-1015-azure-x86_64-with-glibc2.34
- Python version: 3.8.18
- `huggingface_hub` version: 0.21.3
- PyArrow version: 15.0.0
- Pandas version: 2.0.3
- `fsspec` version: 2024.2.0

Hi ! This behavior happens because the dataset was originakky created using a dataset script rotten_tomatoes.py and because we added features recently allowing to download the dataset directly from Parquet files (parquet builder) without running the dataset script (rotten_tomatoes). The flakiness must come from the availability of the Parquet files (we automatically export them in the refs/convert/parquet branch and we recently had to move some files).
Anyway the easy fix on our side is to remove the dataset script completely, let me open a PR at https://huggingface.co/datasets/rotten_tomatoes

@lhoestq Thanks for the comment, explanation, and PR!

we automatically export them in the refs/convert/parquet branch

When this operation is in progress, the parquet files become temporarily unavailable?

When this operation is in progress, the parquet files become temporarily unavailable?

Yes correct. I just merged the patch btw :)

@lhoestq Thanks for merging the PR! I think this issue can be closed.


[SPARK-11552][DOCS][Replaced example code in ml-decision-tree.md using include_example]

I have tested it on my local, it is working fine, please review

Can one of the admins verify this patch?

Thanks @yinxusen
I have removed all the empty lines

@mengxr LGTM

ok to test

Merged build triggered.

Merged build started.

Merged build finished. Test FAILed.

test this please

Merged build triggered.

Merged build started.

Test build #45418 has started for PR 9539 at commit 8a24935.

Test build #45418 has finished for PR 9539 at commit 8a24935.

This patch passes all tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):\n  * public class JavaDecisionTreeClassificationExample \n  * public class JavaDecisionTreeRegressionExample \n

Merged build finished. Test PASSed.

Merged into master and branch-1.6. Thanks!


List system containers

[x] The purpose of this PR is explained in this or a referenced issue.
[x] The PR does not update generated files.

These files are managed by the codegen framework at Azure/autorest.go.

[x] Tests are included and/or updated for code changes.
[x] Updates to module CHANGELOG.md are included.
[x] MIT license headers are included in each file.

The functionality of listing System File systems already exist, adding appropriate tests as part of this PR

/azp run go - azdatalake

/azp run go - azdatalake


[198] Trait for pub API in EncryptedFs

[Work in progress]
Create a trait EncryptedFilesystem which contains all pub methods from EncryptedFs.

@HugoBal what's the staus on this?


Async calls fails when @EnableRetry active

I am trying the async feature among with retry and it's seems that the async call are working on the same thread in a non async way.
 INFO [-,cef9d92b59273411,f488387d48e4da0d,false] 4448 --- [nio-8030-exec-1] com.gadnt.resource.FakeResource          : *** we are gonna get a fake ***
 INFO [-,cef9d92b59273411,f488387d48e4da0d,false] 4448 --- [nio-8030-exec-1] com.gadnt.service.FakeAsyncImpl          : get in fake serviceImpl
 INFO [-,cef9d92b59273411,bd09e1d179639b7d,false] 4448 --- [nio-8030-exec-1] com.gadnt.service.FakeAsyncObject        : get in fake object

Without @EnableRetry active I can observe that async calls are made on a different thread that.
Here you can find a small sample.
https://github.com/GADNT/asycn-sleuth-retry.git
I am using the 1.0.10.RELEASE.

 ***

So trace id is properly passed and the thread seems to be ok or I'm missing sth?

I have adjusted the code with Dave suggestions and now yes is working. initial commit had some bad approach. You can consider this as closed.


Update address print functions to preserve IPv6 link scope

Reviewer: @ronaldchl @shudongz

ACK

LGTM

SELF-ACK

There's no auto merge for this repository. We can green-button-merge this.


Service Specific endpoint - Review SEP

SEP

We are still waiting of the spec to be finalized. Marking it as blocked.
Also, is this really a  Q2 item? or even GA?

Implementation will be post GA

This SEP was approved by 4 GA SDKs, Swift doesnt have to do it.


Map api

Google map api 2d
https://developers.google.com/maps/documentation/tile/roadmap

https://developers.google.com/maps/documentation/embed/get-api-key


Do collection hooks work on the server

If you insert on the server, are the hooks meant to run? becuase mine doesnt
if(Meteor.isServer)
    Posts.insert({name: 'test'}); // does this cause the hooks to run?

Same for me..

They do -- if you can paste more of your code we can help you track down what to change

I was being stupid by creating two insert hooks: one which incremented a counter and one which decremented it. This caused to counter unchanged. No probs which the package for me!

@MurWade, Maybe you've defined the hook in client code and run the insert in server code, then the hook won't run.

I have defined my hooks in common code. so client and server. I am using simple schema to combine maybe that is an issue. I will link a repo so you can reproduce it. The code runs twice when i insert from client which is expected but as soon as i insert from server no hooks run.

I also use simple schema in combination with collection hooks. The hooks are not called.
Collection-hooks are set up in my common code. I only use collection.insert in the server code.

To confirm: if I do not attach a simple schema to a collection, the hooks are called properly.
I.e. setting up multiple before.insert or before.update hooks and they are all called in the order I have attached them.
What I can see is that SimpleSchema performs its magic before collection hooks. For example, I have an insertDateTime timestamp field in the schema definition. It has denyUpdate : true set in the schema. Upon updating a collection to which this schema is attached, and having the insertDateTime in the data, SimpleSchema says the data does not validate which is correct. The collection hooks never get called in this case.
What I would like is to have the collection hooks fire before SimpleSchema. Is that possible?

If validation fails then there is no insert/update and if there isn't an insert/update the before.insert/update hooks won't run. Which I feel is correct.

@florasolutions you could manually validate against the schema inside a collection hook. That way you can control when which hook is fired.

@wursttheke I also validate in a method before calling insert/update. The result of the validation is positive at that point, as simple schema does not know whether its an insert or update, but when calling insert/update collection2/simple schema again validates, but now it knows if it's an insert or update. I can never validate in a hook in the above case.
@zimme that is true. Maybe a better hook for me would be before.insert.validation and before.update.validation to have it more semantically correct. I just have some generic processing to do before inserting/updating on common fields available in all my collections and I thought hooks were the best place to do this in order to reduce repeated code.

It still is, but it shouldn't do the processing if there isn't an insert because of failed validation, right?
So if the validation passes then the insert/update goes through and your hook with the processing is run.

Out of curiosity, could the validation not be done within allow/deny?

Hello,
@matb33 There is definitely something with the hooks.
In this repo https://github.com/darkship/test_hooks_with_update_fail, I do an update in the before.update hook but then after.update is never called.

@darkship thanks for the repo. I took quick look. Did you mean to forbid access for the client to the item2 collection? The hook behavior looks completely fine -- you may have simply made a mistake with regards to when the hooks will run (you defined them on both server and client, so you have to pay extra special attention to how things will go down).

I was too quick in my explanation. Sorry.
I didn't care of client side but I updated my repo to allow inserts and updates on item2.
So when I run it, there is no function after update in my shell neither in my client's console.

@darkship thanks for this. You helped me uncover a typo that was certainly at the root of many strange side-effects. I'm releasing an update in a few minutes.

@matb33 it works, thanks.


ARPAe tech summit

users can
[ ] look at files
[ ] open plant cv
[ ] manipulate plant cv

not needed


[Relay/TOPI][Frontend] Add tile and repeat operators in Relay and TOPI

tile and repeat are used both in mxnet and numpy. BlockGrad in mxnet during inference is just like drop out which we skip.

@tqchen Why does CI failed at tests/python/contrib/test_sort.py?


Add a script to automatically assign components to untriaged bugs

This is working locally, but it can't be merged yet as the trained model is not uploaded yet.

Nits fixed!


Added skipping processing wait

Should be fine, tried it and it worked for me.
Waiting for the processing can take a really really long time on videos that are 4hrs long in my use case it takes way.... too long and so I'm proposing this change, to allow people like me to skip waiting, won't affect anything unless the parameter is specified. Repost to fix indenting.

This change is

Thanks


fix detection

Codecov Report

Merging #598 into master will not change coverage.
The diff coverage is 50%.

@@           Coverage Diff           @@
##           master     #598   +/-   ##
=======================================
  Coverage   71.48%   71.48%
=======================================
  Files          49       49
  Lines       15228    15228
=======================================
  Hits        10886    10886
  Misses       4342     4342

Impacted Files
Coverage Δ

androguard/core/androconf.py
66.66% <50%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


Please update kotlin version in Android

@ahmad-whizpool
Since this package hasn't been updated in 2 years and the maintainers haven't responded to any issues or pull requests, I created a new repository: https://github.com/activcoding/disk_space_2. The updated package, which should work, is available here: https://pub.dev/packages/disk_space_2.