[DO NOT MERGE] httpCorrelationProtocol property was added to diagnostic entity

Latest improvements:
MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Contribution checklist:

[x] I have reviewed the documentation for the workflow.
[x] Validation tools were run on swagger spec(s) and have all been fixed in this PR.
[x] The OpenAPI Hub was used for checking validation status and next steps.

ARM API Review Checklist

[x] Service team MUST add the "WaitForARMFeedback" label if the management plane API changes fall into one of the below categories.
adding/removing APIs.
adding/removing properties.
adding/removing API-version.
adding a new service in Azure.

Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs.

[x] If you are blocked on ARM review and want to get the PR merged urgently, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.
Please follow the link to find more details on API review process.

Automation for azure-sdk-for-python

Automation for azure-sdk-for-ruby

Automation for azure-sdk-for-go

Can one of the admins verify this patch?

Automation for azure-sdk-for-java

@promoisha Hi. This PR add new property into a stable version. Besides, the field is required. So we should firstly wait for ARM feedback.
https://github.com/Azure/azure-rest-api-specs/blob/0737a4885a5e2e367458c99e4fa6c079fca7b35e/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-01-01/apimapis.json#L2668-L2672

@promoisha Hi. This PR add new property into a stable version. Besides, the field is required. So we should firstly wait for ARM feedback.
https://github.com/Azure/azure-rest-api-specs/blob/0737a4885a5e2e367458c99e4fa6c079fca7b35e/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-01-01/apimapis.json#L2668-L2672

@MyronFanQiu I don't see this property as being required in the Diagnostic entity contract. The only required property is loggerid

@promoisha Hi. This PR add new property into a stable version. Besides, the field is required. So we should firstly wait for ARM feedback.
https://github.com/Azure/azure-rest-api-specs/blob/0737a4885a5e2e367458c99e4fa6c079fca7b35e/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-01-01/apimapis.json#L2668-L2672

@MyronFanQiu I don't see this property as being required in the Diagnostic entity contract. The only required property is loggerid

@solankisamir Hello. My mistake. What I want to say is that the property DiagnosticContract is required. This PR add a new property into a required field in a stable version. I understand httpCorrelationProtocol is optional. This PR looks good to me. However, recently we are under transition process, any property or API change in the stable version should involve arm for review.

@MyronFanQiu who should I ping to expedite approval?

@promoisha Let me try. 😃 @sanjaiganesh Hello, could you please review this PR?

@AutorestCI regenerate azure-sdk-for-go

@sanjaiganesh Friendly ping on looking into this PR.

@Azure/arm-api-review-board could someone take a look at the PR? Thanks!

@promoisha Hi. Are you creating a new api-version? How to deal with this PR?

@promoisha Hello. Any update for this PR?

hi @promoisha  are you still on this PR? Is it ok to close the PR since no update over month? Pls create new PR or reopen when you're ready for reviewing and merging

@promoisha Hello. Since this PR has not been updated for more than one month. I will close this PR first. If you need this PR in the future, please feel free to reopen it and ping me.


feat: Update to PYTHIA v8.311

Resolves #40
Requires PR #39 to go in first and then should be rebased.
Description
c.f. https://gitlab.com/Pythia8/releases/-/tags/pythia8311

MNT: Use GitLab tag archive URLs for source

c.f. https://gitlab.com/Pythia8/releases/-/tags
e.g. https://gitlab.com/Pythia8/releases/-/archive/pythia8311/releases-pythia8311.tar.gz

Checklist

[x] Used a personal fork of the feedstock to propose changes
N/A Bumped the build number (if the version is unchanged)
[x] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

@conda-forge-admin, please rerender

@conda-forge/pythia8 This is ready for review.

@conda-forge-admin, please rerender

@conda-forge-admin, please restart ci


StackNavigator header is partially covered by notification bar

This was a configuration issue using Expo.

@erbridge Can you elaborate on what the configuration issue was? I'm seeing the same thing and I created an app using Expo.

Expo appears to make the app fill the entire screen, so you need to offset by the status bar height. Just add the following style to your navigator:
paddingTop: Expo.Constants.statusBarHeight

Sorry to bother but I tried many things with StackNavigatior but didn't found any way to achieve something like http://nimb.ws/w57XQO
My main concern is StatusBar background and shadow with https://reactnavigation.org/docs/navigators/stack

Adding
"androidStatusBar": {       "barStyle":"light-content"   }
into expo settings (app.js) should help


Dummy debug log '[Graph] ......' is in console log

TestNG Version
7.6.1
Expected behavior
No so much dummy logs
Actual behavior
There is a lot of  [Graph] debug info in console log.
        13:48:07.930 [main] DEBUG org.testng.TestNG - suiteXmlPath: "temp-testng-customsuite.xml"
        13:48:08.392 [main] DEBUG org.testng.internal.Graph - [Graph] ADDING NODE TestNGTest.testTestLog()[pri:0, instance:TestNGTest@7ef27d7f] -148949384
        13:48:08.392 [main] DEBUG org.testng.internal.Graph - [Graph] ================ SORTING
        13:48:08.397 [main] DEBUG org.testng.internal.Graph - [Graph] =============== DONE SORTING
        13:48:08.398 [main] DEBUG org.testng.internal.Graph - [Graph] ====== SORTED NODES
        13:48:08.398 [main] DEBUG org.testng.internal.Graph - [Graph] ====== END SORTED NODES
        13:48:08.409 [main] INFO  org.testng.internal.Utils - [TestNG] Running:
          temp-testng-customsuite.xml

        13:48:08.525 [main] INFO  TestNGTest - Start test
        13:48:09.538 [main] INFO  TestNGTest - Stop test

Is the issue reproducible on runner?

[ ] Shell
[ ] Maven
[ ] Gradle
[ ] Ant
[X] Eclipse
[X] IntelliJ
[ ] NetBeans

Test case sample
    @Test
    public void testTestLog() {
        logger.info("Start test");
        sleep(1);
        logger.info("Stop test");
    }

Related change
the code is in:
https://github.com/cbeust/testng/blame/master/testng-core/src/main/java/org/testng/internal/Graph.java
the related change:
https://github.com/cbeust/testng/commit/f03a6f6b4ece8dd646228220d25e398799b2871f
krmahadevan committed on Jun 12, 2021   7.6.1
Renamed the ppp methods to debug/log in production code.
  System.out.println("[Graph] " + s.get());
  Logger.getLogger(Graph.class).debug("[Graph] " + s.get());

  m_verbose = false

https://github.com/cbeust/testng/commit/e72bf1366f285f919556a5dd9b985151d19ad230#diff-f0ae988831fcbad2a15319deb0f81dbd7756516211db7d78284ff2088d230f5b
krmahadevan committed on Dec 31, 2021  7.6.1
in this change, m_verbose is changed to true, so there are a lot of dummy debug information in console log.
Suggestion
It's better to use Environment Variable to console the m_verbose flag.  m_verbose should be false by default.

@bobshie

in this change, m_verbose is changed to true, so there are a lot of dummy debug information in console log.

Why not raise a PR wherein you add the proposed suggestion ?

@krmahadevan , thanks for your quickly answer.
I didn't do PR before, I'll try it later.

Fixed by #2813

Hello, I verify the latest version of testng,
there are still a lot of logs:

left is testng 7.6.1
right is testng 7.6.2-SNAPSHOT version.
and I checked the change: https://github.com/cbeust/testng/pull/2813
the verbose=true is remove, but log("") function keeps....
I think nothing is change?

@bobshie - There can be two reasons why you are seeing this behaviour.

You are working with a SNAPSHOT jar that doesn't still have the changes. Can you please check the jar and ensure that you have these changes in your local jar ? https://github.com/cbeust/testng/blob/133ac2827c04c0464546beb015b6f2e5b72d5023/testng-core/src/main/java/org/testng/internal/Graph.java#L167-L173
Check if you are having an slf4j log configuration file in your CLASSPATH (log4j.properties or a logback.xml maybe?)

Please post back your findings.

Hello @krmahadevan, I pull the latest code and compile the code locally. I checked the code, it use log4j to print the information.
If i don't want these debug information, I need to disable the Graph logger level in log4j config file.
can we lower this log level?
 Logger.getLogger(Graph.class).trace("[Graph] " + s.get());

We have a lot of test cases and CI flows  that based on TestNG, it's hard to change the log4j config file one by one to disable the org.testng.internal.Graph log level.

Hello @krmahadevan, I pull the latest code and compile the code locally. I checked the code, it use log4j to print the information.
If i don't want these debug information, I need to disable the Graph logger level in log4j config file.
can we lower this log level?
 Logger.getLogger(Graph.class).trace("[Graph] " + s.get());

Why would adding a logger config to turn this logger off in your log4j properties file not work here ? Can you please let us know? Trying to understand the rationale here.

The code is OK, That's no problem.
if I add logger config and turn this logger off, it works, like:.
   <Loggers>
	<Logger name="org.testng.internal.Graph" level="INFO" />
	<Root level="DEBUG">
		<AppenderRef ref="Console" />
	</Root>
</Loggers>

but we need to add "" in all CI flows to disable this debug information log.
Mostly  'DEBUG' is default level of ROOT for troubleshooting of test cases and other libraries.
if '[Graph]' is just used to debug TestNG issue and TestNG's stable , so we can change these debug information log to TRACE level.

@bobshie - Just curious. If you saw debug statements originating from other libraries, what would you strategy be? Irrespective of the rationale behind why TestNG does this debug level logging on Graph class, I believe that its done at debug level for a reason (To debug in case of problems).
Am sure that you would agree as well, that your logger configuration file is at fault here and it should have set the logger levels for your test code packages to debug rather than setting the root level to debug and expecting all dependencies to alter their code to suite the test needs no ?

hi @krmahadevan,  I think it's history issue that config of most projects set DEBUG level on ROOT.  and our test cases of most projects are very complex and include a lot of common libraries, it's hard to enable debug level for many classes.
usually, we will disable some dummy logs in log4j config file, such as:
    <Logger name="org.apache.http.headers" level="INFO" />
    <Logger name="org.apache.http.wire" level="INFO" />
    <Logger name="org.opendaylight.yangtools.yang.parser" level="OFF" />
    <Logger name="org.opendaylight.yangtools.util" level="OFF" />

the number of these class is not so much, so we can do it one by one.
if TestNG has such log from beginning,  we can also disable it like that.  but, these logs is introduced after 7.6.1, so we need to change a lot of log4j configuration file.
The other think, when we run unit test with TestNG,  these will be a lot of TestNG Graph logs in console:
Standard Output
[1] 2022-11-14T10:53:44,945 DEBUG  [Graph] ADDING NODE CustomVerifyTest.init()[pri:0, instance:null] 844833384
[1] 2022-11-14T10:53:44,946 DEBUG  [Graph]   ADDING PREDECESSOR FOR CustomVerifyTest.init()[pri:0, instance:null] ==> AbcTestBase.beforeClass()[pri:0, instance:null]
[1] 2022-11-14T10:53:44,947 DEBUG  [Graph]   REMOVED AbcTestBase.beforeClass()[pri:0, instance:null] FROM INDEPENDENT OBJECTS
[1] 2022-11-14T10:53:44,947 DEBUG  [Graph] ADDING NODE AbcTestBase.beforeClass()[pri:0, instance:null]<PHONE_NUMBER>
[1] 2022-11-14T10:53:44,947 DEBUG  [Graph] ================ SORTING
[1] 2022-11-14T10:53:44,947 DEBUG  [Graph]   ADDING PREDECESSOR FOR CustomVerifyTest.init()[pri:0, instance:null] ==> AbcTestBase.beforeClass()[pri:0, instance:null]
[1] 2022-11-14T10:53:44,948 DEBUG  [Graph]   REMOVED PRED AbcTestBase.beforeClass()[pri:0, instance:null] FROM NODE CustomVerifyTest.init()[pri:0, instance:null]
[1] 2022-11-14T10:53:44,948 DEBUG  [Graph] =============== DONE SORTING
[1] 2022-11-14T10:53:44,948 DEBUG  [Graph] ====== SORTED NODES
[1] 2022-11-14T10:53:44,948 DEBUG  [Graph]               AbcTestBase.beforeClass()[pri:0, instance:null]
[1] 2022-11-14T10:53:44,948 DEBUG  [Graph]               CustomVerifyTest.init()[pri:0, instance:null]
[1] 2022-11-14T10:53:44,948 DEBUG  [Graph] ====== END SORTED NODES
[1] 2022-11-14T10:53:44,951 DEBUG  [Graph] ADDING NODE CustomTest.testFailedDualWithCustomVerdictLevel()[pri:0, instance:com.xxx.demo.CustomTest@5cc5c7ac] -954326119
[1] 2022-11-14T10:53:44,951 DEBUG  [Graph] ADDING NODE CustomTest.testFailedWithCustomVerdictLevel()[pri:0, instance:com.xxx.demo.CustomTest@5cc5c7ac] -1158337339
[1] 2022-11-14T10:53:44,951 DEBUG  [Graph] ADDING NODE CustomTest.testSuccessful()[pri:0, instance:com.xxx.demo.CustomTest@5cc5c7ac]<PHONE_NUMBER>
[1] 2022-11-14T10:53:44,951 DEBUG  [Graph] ADDING NODE CustomTest.verifyDualSuccessful()[pri:0, instance:com.xxx.demo.CustomTest@5cc5c7ac] 471527383
[1] 2022-11-14T10:53:44,951 DEBUG  [Graph] ================ SORTING
[1] 2022-11-14T10:53:44,953 DEBUG  [Graph] =============== DONE SORTING
[1] 2022-11-14T10:53:44,953 DEBUG  [Graph] ====== SORTED NODES
[1] 2022-11-14T10:53:44,953 DEBUG  [Graph] ====== END SORTED NODES

So it's better to lower the log level.

@bobshie -  I dont agree with the rationale of history. As you move forward with versions of libraries, there can be changes in log levels of libraries and we cannot expect libraries to accommodate our expectations of their log levels.
Log levels being verbose at DEBUG levels IMO is expected and is something that many libraries across the industry follow/employ. If verbose logs were being output at INFO level I can understand it being an inconvenience but not sure why debug logs would be of inconvenience here especially when there is a simple straight forward way of disabling them. You just need to set the log level of org.testng to INFO or above and this should go away.
something like this
<Logger name="org.testng" level="INFO" />

Why is TestNG expected to accommodate this change is what I fail to understand. Today you would like the debug log level be changed in one place, tomorrow someone else would have a problem somewhere else. So my concern here is NOT on the nature of the change (Yes I know its a trivial change) but the intent of the change.
The logs being verbose for TestNG tests can be fixed by adding a test level logger. But I dont see any issue with debug logs being printed when unit tests are being run.

I'm not sure why TestNG add such logs in Debug Level, It's too detail for TestNG users. and if we want to disable such logs, we need to add   in many places for all test cases that based on TestNG.
org.opendaylight and org.apache.http doesn't has such issue for just some of test cases use it.
We don't want to disable all debug logs for TestNG, like that

So, we can't easy to change all log4j files in CI flow.
 "But I dont see any issue with debug logs being printed when unit tests are being run."

OK, the problem is that after I uplift TestNG, there are a lot of dummy TestNG logs in console log and there are the similar in out unit tests and system tests and many person complaint it.
We need to think how to resolve it if TestNG don't want to change it.

Hi @krmahadevan
Our Project have about 500 Git projects, Default Log level is DEBUG, which means that we will need to update 500 log4j2.xml files to exclude this Graph logging for unit test only. But that is not the worst, and on top of that we have our production code that also run TestNg tests cases that also needs to be updates, which are owned by other teams.
In my view this sorting does not give any value to the end user, mainly used for TestNg developers. And therefor I think the log level debug is too low, We normally put logs that are not valuable for our end users or if they spam too much at TRACE level.
The problem with log4j2 configurations is that we can not update it in a central place, we need to updated in so many projects and as Bob say we have similar issues with other 3pp projects as well, but non of them are so wildly used as TestNg
I hope you understand our problem and can solve this in one or another way.
Thanks
/Martin

@bobshie @martinaldrin - Graph logs at trace level is now available master branch.

hello @krmahadevan , Very thanks for your understanding, I'll get the latest snapshot to verify it.


SciPy Hypergeometric function hyp2f1 producing infinities

<<Please describe the issue in detail here, and for bug reports fill in the fields below.>>
The SciPy hypergeometric function special.hyp2f1 seems to be producing infinities for instances where third argument is negative, and fourth argument is complex. The corresponding implementation in MATLAB gives reasonable finite outputs. See for instance,
Reproducing code example:
<<A short code example that reproduces the problem. It should be self-contained, i.e., possible to run as-is via 'python myproblem.py'>>

In [2]: special.hyp2f1(-2,-3,-19,3.4+0.4j)
Out[2]: (inf+0j)
Error message:
<<Full error message, if any (starting from line Traceback: ...)>>

Scipy/Numpy/Python version information:
scipy version: 0.19.0

<<Output from 'import sys, scipy, numpy; print(scipy.__version__, numpy.__version__, sys.version_info)'>>

This issue is caused by code in both specfun_wrappers.c and specfun.f that immediately return inf whenever c is a negative integer without checking if a or b is a negative integer smaller in magnitude than c (in which case the hypergeometric function is a well defined polynomial).
Since I'm working on hypergeometric function at the moment, I can do a quick PR that fixes this issue.

A related bug is that hyp2f1 will attempt to calculate a value when c=0 and will return nan+nan*1.j instead of inf...


fix(ci): check if l1 contracts img has been deployed

Please provide a paragraph or two giving a summary of the change, including relevant motivation and context.
Checklist:
Remove the checklist to signal you've completed it. Enable auto-merge if the PR is ready to merge.

[ ] If the pull request requires a cryptography review (e.g. cryptographic algorithm implementations) I have added the 'crypto' tag.
[ ] I have reviewed my diff in github, line by line and removed unexpected formatting changes, testing logs, or commented-out code.
[ ] Every change is related to the PR description.
[ ] I have linked this pull request to relevant issues (if any exist).

Benchmark results
No metrics with a significant change found.

Detailed results
All benchmarks are run on txs on the Benchmarking contract on the repository. Each tx consists of a batch call  to create_note and increment_balance, which guarantees that each tx has a private call, a nested private call, a public call, and a nested public call, as well as an emitted private note, an unencrypted log, and public storage read and write.
This benchmark source data is available in JSON format on S3 here.
Values are compared against data from master at commit ebdeea3f and shown if the difference exceeds 1%.
L2 block published to L1
Each column represents the number of txs on an L2 block published to L1.

Metric
8 txs
32 txs
128 txs

l1_rollup_calldata_size_in_bytes
45,444
179,588
716,132

l1_rollup_calldata_gas
222,936
868,088
3,449,456

l1_rollup_execution_gas
842,023
3,595,196
22,204,825

l2_block_processing_time_in_ms
2,195
8,426 (-2%)
35,040 (-2%)

note_successful_decrypting_time_in_ms
314
916 (-1%)
3,313 (-1%)

note_trial_decrypting_time_in_ms
22.6 (-7%)
41.7 (-23%)
198 (-1%)

l2_block_building_time_in_ms
20,475
81,003
324,760

l2_block_rollup_simulation_time_in_ms
16,944
67,090
268,926

l2_block_public_tx_process_time_in_ms
3,480 (-1%)
13,765 (-1%)
55,282 (-1%)

L2 chain processing
Each column represents the number of blocks on the L2 chain where each block has 16 txs.

Metric
5 blocks
10 blocks

node_history_sync_time_in_ms
24,547
47,189 (-1%)

note_history_successful_decrypting_time_in_ms
2,165 (+1%)
4,177 (+1%)

note_history_trial_decrypting_time_in_ms
163
225 (-1%)

node_database_size_in_bytes
2,789,634
5,018,006

pxe_database_size_in_bytes
29,748
59,307

Circuits stats
Stats on running time and I/O sizes collected for every circuit run across all benchmarks.

Circuit
circuit_simulation_time_in_ms
circuit_input_size_in_bytes
circuit_output_size_in_bytes

private-kernel-init
199 (-3%)
43,109
20,441

private-kernel-ordering
114 (-5%)
25,833
9,689

base-rollup
2,958 (-3%)
664,108
873

root-rollup
89.7 (+1%)
4,072
1,097

private-kernel-inner
259 (-2%)
64,516
20,441

public-kernel-private-input
171 (-1%)
25,203
20,441

public-kernel-non-first-iteration
167 (-2%)
25,245
20,441

merge-rollup
10.8
2,592
873

Miscellaneous
Transaction sizes based on how many contracts are deployed in the tx.

Metric
0 deployed contracts
1 deployed contracts

tx_size_in_bytes
10,323
25,938


Add Python 3.11 and update actions versions

Description

Add Python 3.11 and update actions versions
Fixes N/A

Type of Change

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update (no changes to the code)
[x] CI change (changes to CI workflows, packages, templates, etc.)

Testing

N/A
Pull Request Checklist
Please confirm the PR meets the following requirements.

[x] Code changes pass pre-commit (e.g., black, flake8, mypy, etc.).
[x] Tests have been added to show the fix is effective or that the new feature works.
[x] New and existing unit tests pass locally with the changes.
[x] Docs have been updated and reviewed if relevant.

Note: once setup-python action has Python 3.11 set the 3.11 test as required.


RealtiveWeek Position

Hi Guys,
I noticed other sites say current calendar week is 5, yet the SQL BI Date says current week is 6, which starts Feb 7 - 13, 2021.
The relative week positions correctly shows 0   for days Jan 31 to Feb 6, 2021.
This was working before really well, but now it doesn't.  Last year was a leap year.
I tried getting the latest version of your template - same issue.
Looking at the cut offs between 2020 and 2021, I can see 2 days as Week 1 when it should be week 53.

You shouls use the FW prefixed columns, which follow the fiscal week structure.

I see. Thanks for the fast response Marco!


Support multi dimensional arrays in solve

solve supports higher order ndarrays.

Please fix autopep8 error.

jenkins, test this please

LGTM!


How to change slide programmatically ?

Hello,
I'm using AppIntro in order to create the sign up process of my app.
Thus, I have a form with a validation process in the first fragment (format of email, empty fields etc.) and I would like to launch this checking during onSlideChanged(), and if the validation failed for any reason, I need to set the focus on this field (so I need to change the current slide).
Thank you !
Alex.

I need to change the current slide

getPager().setCurrentItem(SLIDE_NUMBER);


STANDARD HOURS TIME BLOCK

STANDARD HOURS TIME BLOCK
User Story
AS AN employee with a busy schedule
I WANT to add important events to a daily planner
SO THAT I can manage my time effectively
Acceptance Criteria
GIVEN I am using a daily planner to create a schedule
WHEN I scroll down
THEN I am presented with time blocks for standard business hours

Added standard hours time block through HTML file.


syntax error, unexpected '|', expecting variable (T_VARIABLE)

Thanks for stopping by to let us know something could be better!
PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.
Please run down the following list and make sure you've tried the usual "quick fixes":

Search the issues already opened: https://github.com/googleapis/google-cloud-php/issues
Search StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform+php

If you are still having issues, please be sure to include as much information as possible:
Environment details

OS: CloudLinux
PHP version: 7.4
Package name and version: "google/cloud-storage": "^1.24"

Steps to reproduce

Code in CloudLinux server
Try to load the storage file list

Code example
# example
$client = new StorageClient(['projectId' => $this->gc_project_id]);
$client->registerStreamWrapper();
if(!file_exists("/")) {
   # Print error
}

# I list all the content inside the bucket.

This code works perfectly if the PHP version is >= 8.0 but I can't update the PHP version because another website is runing at the same server and it works only with PHP < 8.0
My workaround was to add inside the composer file:
    "config": {
        "platform": {
            "php": "7.4"
        }
    }

Hi @neoacevedo
Thanks a lot for reporting the issue and apologies for responding to it so late.
With PHP 7.4.0 and google/cloud-storage: 1.28.1 I used the following code and didn't get any error:
$client = new StorageClient(['projectId' => $projectId]);
$client->registerStreamWrapper();
if(!file_exists("/")) {
   echo "error\n";
}

file_put_contents("gs://$bucketName/$fileName.txt", "some content");

No error string was output and I did see the file with some content in it.
I will be closing this for now, but if the error persists for you, then feel free to reopen this.


Make the 3d design rotate

Describe the solution you'd like
As an xlayers.app user, I want to be able to rotate the 3d design -presumably- using my mouse.

@sumitparakh any updates on this?

@sumitparakh any updates on this?

@manekinekko . Will give merge request in 2-3 days

@manekinekko , I want to if there will be always one page in a file? If not, can you share me a sketch file which would generate two pages in xlayers? I just need to test something regarding this issue.

there will be files with multiple pages. Use this one as an example: https://github.com/xlayers/xlayers/files/2850149/card.test.copy.zip

Any updates on this? Need help?

I'm outside now. Will share draft PR by Tuesday.


Removed unused & undocumented method ItemBase.bulk_lookup_kwargs()

Codecov Report

Merging #563 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #563   +/-   ##
=======================================
  Coverage   87.22%   87.22%
=======================================
  Files           5        5
  Lines         493      493
  Branches       85       85
=======================================
  Hits          430      430
  Misses         50       50
  Partials       13       13

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 00f1bc0...10e5d93. Read the comment docs.


Requirement for further expressional operators |, &, ^, **, //

Discussion on further, eventually useful operators in expressions.

[ ] binary & (&=) and | |=
[ ] ^ and ^= (xor)
[ ] ** and **= (powers)
[x] // and //= (integer division)

It should be discussed if these are really necessary.

Integer division was added by #92


Design Application security

Find technologist and create tasks for the implementation of application security.

We are archiving this repo.


Tutorial

PymoNNtorch version:
Python version:
Operating System:

Description
In the tutorial, while trying to simulate_iterating, it raises an error that mean is not defined. The issue can be solved by writing torch.mean instead of mean in defining the behavior.
What I Did
NameError: name 'mean' is not defined

Thanks


It hangs (no output)

When I run curl http://servizi.alberghetti.it/orario/itis/Classi/2ALS.html | html_parser -d -p I don't get any output, but html_parser uses 100% of one core

I'm guessing that it isn't hung, but it's consuming resources trying to parse the file.
That HTML has a lot of mis-matched tags.  There is a row in the table where the  tags don't have a corresponding , and there are quite a few  tags which do not have a matching  -- it looks like the HTML was hand-written, and some of these are cut-and-paste errors.
The other issue is that, once the tags are balanced, the parser doesn't like that the  and  tag are all in uppercase, but they are closed with  and  in lowercase.
I fixed those two issues manually, and the file parses just fine.

Thanks, i doubt this was handwritten because it’s the output of a (probably bad) software.
I guess this issue can be closed, right?


Allow handleMissingId to remap missing to valid IDs

Describe the problem
I have some readme-internal links
For details, [see this section](#-this-section)

which receive different IDs on GitHub and when deploying SvelteKit. GitHub needs the above for the ID to resolve, while the deployed SvelteKit has a double hyphen (due to HTML spacing entity in the header title.
For details, [see this section](#--this-section)

I'm currently doing some crazy slots business to replace the ID when deploying
<Readme>

    For details, see this section.

</Readme>

A different but only partial solution is to just ignore the missing ID at build time but that leaves a broken link on the site.
// svelte.config.js
export default {
 kit: {
    prerender: {
      handleMissingId: ({ id }) => {
        if ([`ok-to-be-missing IDs`].includes(id)) return
        throw `Missing ID: ${id}`
      },
    },
  },
}

Describe the proposed solution
Maybe a nicer solution would be to allow the handleMissingId callback to return a string to use as the correct ID instead? I.e. the bad ID would be replaced by whatever string handleMissingId returns. Haven't thought through all the implications of this.
Alternatives considered
No response
Importance
would make my life easier
Additional Information
No response

Extending the handleMissingId API to also start rewriting the HTML feels like the wrong solution here. Given that you can't influence how GitHub handles this and given that you want your links to work both in your source files and in your site, the correct solution would appear to be to figure out what rules GitHub uses and to adjust your Markdown renderer or whatever is producing the anchor elements these links are pointing at. We don't want to accommodate in the framework something that's happening incorrectly in userland.

I'm using @pngwn's excellent MDsveX with rehype-slug whose only config option is

prefix (string, default: '') — prefix to add in front of ids

so I don't think there's an easy to get the right heading ID from it. Maybe a rehype-slug feature request waiting to be submitted? @wooorm would you be open to a new option to customize ID generation?
import link_headings from 'rehype-autolink-headings'
import heading_slugs from 'rehype-slug'

const rehypePlugins = [
  heading_slugs,
  [
    link_headings,
    {
      behavior: `append`,
      test: [`h2`, `h3`, `h4`, `h5`, `h6`], // don't auto-link

      content: s(
        `svg`,
        { width: 16, height: 16, viewBox: `0 0 16 16` },
        // symbol #octicon-link defined in app.html
        s(`use`, { 'xlink:href': `#octicon-link` }),
      ),
    },
  ],
]

mdsvex({
  rehypePlugins,
  extensions: [`.svx`, `.md`],
})

which receive different IDs on GitHub and when deploying SvelteKit.

The problem isn’t rehype-slug, it generates what GitHub does.

@wooorm you're right, apologies. actually the only case where the heading link doesn't work is when previewing the readme in VS Code which includes emojis in the heading so
## 🔣   Props

becomes
[link](#--props)

on GH and SvelteKit but needs to be
[link](##-🔣-props)

to work in VS Code.


Error Building docker: Make Not Found

I tried to build kong pongo docker image, I got the following error:
❯ KONG_VERSION=2.6.0 kong-pongo/pongo.sh build --no-cassandra --no-postgres --force

[pongo-INFO] starting build of image 'kong-pongo-test:2.6.0'
[+] Building 1520.3s (12/13)
 => [internal] load build definition from Dockerfile                                                                                0.0s
 => => transferring dockerfile: 37B                                                                                0.0s
 => [internal] load .dockerignore                                                                                0.0s
 => => transferring context: 2B                                                                                0.0s
 => [internal] load metadata for docker.io/library/kong:2.6.0-alpine                                                                                0.0s
 => [1/9] FROM docker.io/library/kong:2.6.0-alpine                                                                                0.0s
 => [internal] load build context                                                                                0.1s
 => => transferring context: 25.72kB                                                                                0.1s
 => CACHED [2/9] COPY ./kong-versions/2.6.0/kong /kong                                                                                0.0s
 => CACHED [3/9] COPY assets/busted_helper.lua      /pongo/busted_helper.lua                                                                          0.0s
 => CACHED [4/9] COPY assets/pongo_entrypoint.sh    /pongo/pongo_entrypoint.sh                                                                        0.0s
 => CACHED [5/9] COPY assets/default-pongo-setup.sh /pongo/default-pongo-setup.sh                                                                     0.0s
 => CACHED [6/9] COPY assets/pongo_pack.lua         /pongo/pongo_pack.lua                                                                             0.0s
 => CACHED [7/9] COPY assets/pongo_profile.sh       /etc/profile.d/pongo_profile.sh                                                                   0.0s
 => ERROR [8/9] RUN apk update     && apk add zip unzip make g++ py-pip jq git bsd-compat-headers m4 openssl-dev curl     && curl -k -s -S -L htt  1520.1s
------
 > [8/9] RUN apk update     && apk add zip unzip make g++ py-pip jq git bsd-compat-headers m4 openssl-dev curl     && curl -k -s -S -L https://github.com/fullstorydev/grpcurl/releases/download/v1.7.0/grpcurl_1.7.0_linux_x86_64.tar.gz | tar xz -C /kong/bin     && pip install httpie     ; cd /kong     && make dependencies     && luarocks install busted-htest     && luarocks install luacov:
#12 0.222 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz
#12 63.25 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz
#12 1520.0 ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.14/community: BAD signature
#12 1520.0 WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.14/community: No such file or directory
#12 1520.1 v3.14.3-14-g9234faeb0d [https://dl-cdn.alpinelinux.org/alpine/v3.14/main]
#12 1520.1 1 errors; 4791 distinct packages available
#12 1520.1 /bin/sh: make: not found
------
executor failed running [/bin/sh -c apk update     && apk add zip unzip make g++ py-pip jq git bsd-compat-headers m4 openssl-dev curl     && curl -k -s -S -L https://github.com/fullstorydev/grpcurl/releases/download/v1.7.0/grpcurl_1.7.0_linux_x86_64.tar.gz | tar xz -C /kong/bin     && pip install httpie     ; cd /kong     && make dependencies     && luarocks install busted-htest     && luarocks install luacov]: exit code: 127
[pongo-ERROR] Error: failed to build test environment

My Docker version:
❯ docker version
Client:
 Cloud integration: v1.0.20
 Version:           20.10.10
 API version:       1.41
 Go version:        go1.16.9
 Git commit:        b485636
 Built:             Mon Oct 25 07:43:15 2021
 OS/Arch:           darwin/amd64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.10
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.16.9
  Git commit:       e2f740d
  Built:            Mon Oct 25 07:41:30 2021
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.4.11
  GitCommit:        5b46e404f6b9f661a205e28d59c982d3634148f8
 runc:
  Version:          1.0.2
  GitCommit:        v1.0.2-0-g52b36a2
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Any help will be appreciated. Thank you!

Updated, the issue is with the latest Alpine 3.14, revert to Alpine 3.12 will solve the issue. or just use Pongo for Kong Version 2.4.x, Pongo for Kong Version 2.5.x would not work as well.. This is disappointing since it relies on broken Alpine base image.

see compatibility warning at the top here: https://github.com/Kong/kong-pongo/blob/master/README.md
upgrade your docker.


[Go Live][May 18]

Push to live

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

File
Status
Preview URL
Details

msteams-platform/apps-in-teams-meetings/create-apps-for-teams-meetings.md
:white_check_mark:Succeeded
View

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


react js official doc learning example to create button using MyApp() throwing console error

react js official doc learning example MyApp() in  https://beta.reactjs.org/learn#components   has console log error as displayed in screenshot.

babel version - 7.20.7 (@babel/core 7.20.12)
Js code prepocessed sucess:
//test.js
const root2 = ReactDOM.createRoot(document.getElementById('buton'));
const element2 = <MyApp />;
root2.render(element2);

function MyButton() {
  return (
    <button>
      I'm a button 0
    </button>
  );
}

export default function MyApp() {
  return (

Welcome to my app777

      <MyButton />

  );
}

HTML:
<!DOCTYPE html>

    <meta charset="UTF-8" />
    <title>Test Page-React</title>

Add React in One Minute

<link rel="icon" type="./x-icon" href="./favicon.ico">

OK yeah this is a bit tricky. We use import/export syntax throughout the docs, but if you don't use a bundler, you're gonna have to avoid it. I think the fix here will be to add a section on enable


raftstorev2: add apply batch system

What is changed and how it works?
Issue Number: Ref #12842
What's Changed:
This is to add another building block for supporting basic write flow.

Check List
Tests

Unit test
Integration test

Release note
None

/merge


[NEW-FEATURE] Ignore reading and writing when a particular attribute is declared for a member of type

We would like to have the possibility to ignore R/W operation on some twin elements when bulk reading and writing to prevent overload when only some data are required to be accessed over connector.

Branch 236-_NEW-FEATURE_Ignore_reading_and_writing_when_a_particular_attribute_is_declared_for_a_member_of_type created!


multithread trial

Tried to add multi thread for pid and others seperately.

Moved to separate branch with updates.


Custom Permissions for API Key Authentication

Is your feature request related to a problem? Please describe.
The current permission setup only allows one type of permission, IsActiveEntity, which checks if the user entity is active. This limitation can be frustrating in scenarios where fine-grained access control is needed. For instance, there is no way to enforce permissions such as read-only or create-only access, which are commonly required in multi-user environments and can improve security.
Describe the solution you'd like
We would like to add a set of additional permission classes to support more granular access control. This would provide flexibility in defining different access levels, such as:

ReadOnlyEntity: Allows only GET requests.
CreateOnlyEntity: Allows only POST requests.
UpdateOnlyEntity: Allows only PUT/PATCH requests.

Each permission class would be added to enhance the security and control of API access, allowing us to define specific roles and enforce them at the API level.
Describe alternatives you've considered
We considered using a single permission class with additional logic to restrict access per request method, but this approach becomes cumbersome and lacks the clarity that separate permission classes can provide.

Working on this

Do you have any idea how to setup the development environment on windows ?


ioccheck: init at unstable-2021-09-29

Motivation for this change
Tool for researching IOCs
https://github.com/ranguli/ioccheck
Related to #81418
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 139897 run on x86_64-linux 1

3 packages built:

ioccheck
python38Packages.vt-py
python39Packages.vt-py


But Report

Your issue may already be reported! Please search on the issue tracker before creating a new one.
Affected Component

[x] Crawl
[x] CredsDB
[x] Scanner
[x] Test
[x] Docs
[x] Python
[x] GCP APIs

Describe the bug

To Reproduce

Steps to reproduce the behavior:

Set the credentials to'...'
Update the scope to '....'
Run the command gcp-scanner ....
See the output JSON line no ....

Expected behavior

Current behavior

Screenshots

Additional context

Your issue may already be reported! Please search on the issue tracker before creating a new one.
Affected Component
* [x]  Crawl

* [x]  CredsDB

* [x]  Scanner

* [x]  Test

* [x]  Docs

* [x]  Python

* [x]  GCP APIs

Describe the bug
To Reproduce
Steps to reproduce the behavior:
1. Set the credentials to'...'

2. Update the scope to '....'

3. Run the command `gcp-scanner ....`

4. See the output JSON line no ....

Expected behavior
Current behavior
Screenshots
Additional context

Please update the issue with some actual content


your-puppeteer-script.js

Hey,
thanks for the awesome code, but what does the your-puppeteer-script.js looks like ? I'm failing to follow the start up guide to start up the app.
Can someone help me please ?

Anything on https://github.com/GoogleChrome/puppeteer/tree/master/examples should work.


Fix improper validation of dynamic DTOs

The global validation pipeline can't validate dynamic DTOs (for instance, PageTreeNodeUpdateInput) as it can't transform the provided input to the respective classes. This is due to missing TypeScript metadata for interfaces (see hint in NestJS docs on validation). To fix this, we add a new DynamicDtoValidationPipe that transforms the provided input to the class using the expectedType option of ValidationPipe. This pipe needs to be used for all args that use dynamic DTOs.

@thomasdax98 we should cherry-pick this in v3 as well


Can't access port-app

Hello, I push a node.js project and it looks done successfully. But I don't know how to access the app via port-app, for example, I can access another app via port "http://<IP_ADDRESS>:32770/". Here's the result:
root@ubuntu1st:/home/apps/apptest/node-js-getting-started# git push dollynode master
Enter passphrase for key '/root/.ssh/id_rsa':
Counting objects: 406, done.
Compressing objects: 100% (320/320), done.
Writing objects: 100% (406/406), 217.66 KiB | 0 bytes/s, done.
Total 406 (delta 54), reused 406 (delta 54)
-----> Cleaning up...
-----> Building nodegtstrtd from buildstep...
-----> Adding BUILD_ENV to build environment...
-----> Node.js app detected
   Node engine:         0.12.2
   Npm engine:          unspecified
   Start mechanism:     Procfile
   node_modules source: package.json
   node_modules cached: false

   NPM_CONFIG_PRODUCTION=true
   NODE_MODULES_CACHE=true

-----> Installing binaries
Downloading and installing node 0.12.2...
-----> Building dependencies
Installing node modules
<EMAIL_ADDRESS>node_modules/ejs
<EMAIL_ADDRESS>node_modules/express
   +--<EMAIL_ADDRESS>   +--<EMAIL_ADDRESS>   +--<EMAIL_ADDRESS>   +--<EMAIL_ADDRESS>   +--<EMAIL_ADDRESS>   +--<EMAIL_ADDRESS>   +--<EMAIL_ADDRESS>   +--<EMAIL_ADDRESS>   +--<EMAIL_ADDRESS>   +--<EMAIL_ADDRESS>   +--<EMAIL_ADDRESS>   +--<EMAIL_ADDRESS>   +--<EMAIL_ADDRESS>   +--<EMAIL_ADDRESS>   +--<EMAIL_ADDRESS>   +--<EMAIL_ADDRESS>   +--<EMAIL_ADDRESS><EMAIL_ADDRESS>   +--<EMAIL_ADDRESS><EMAIL_ADDRESS>   +--<EMAIL_ADDRESS><EMAIL_ADDRESS>   +--<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>   +--<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>   +--<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>   +--<EMAIL_ADDRESS><EMAIL_ADDRESS>
-----> Checking startup method
Found Procfile
-----> Finalizing build
Creating runtime environment
Exporting binary paths
Cleaning up build artifacts
Caching node_modules for future builds
-----> Build successful!
<EMAIL_ADDRESS>/tmp/build
+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>-----> Discovering process types
Procfile declares types -> web
-----> Releasing nodegtstrtd...
-----> Deploying nodegtstrtd...
-----> DOKKU_SCALE not found in app image. Defaulting to a single web process
-----> New DOKKU_SCALE file generated
=====> web=1
-----> Running pre-flight checks
For more efficient zero downtime deployments, create a file CHECKS.
See http://progrium.viewdocs.io/dokku/checks-examples.md for examples
CHECKS file not found in container: Running simple container check...
-----> Waiting for 10 seconds ...
-----> Default container check successful!
=====> nodegtstrtd container output:
Node app is running on port 5000
=====> end nodegtstrtd container output
-----> Running post-deploy
=====> unsupported vhost config found. disabling vhost support
-----> Setting config vars
NO_VHOST: 1
=====> Application deployed:
http://<IP_ADDRESS>
To dokku@dokku.me:nodegtstrtd

[new branch]      master -> master

Can someone tell me what I should do to access my app? Thank you.

Can you gist a deployment with DOKKU_TRACE on?

@michaelshobbs hello Michael, here, I can only copy half of the process, I try to deploy another app:
https://gist.github.com/pearlymaccha/b45b090bd06908e89afb

I found "echo http://<IP_ADDRESS>:32773" with DOKKU_TRACE. But why I can't find my port app without DOKKU_TRACE on? @michaelshobbs

Verified. Working on a fix now.


Task – Green dot is present in LHN when reassign task to another user as user B of the group

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 1.4.74-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4561836
Email or phone of affected tester (no customers<EMAIL_ADDRESS>Issue reported by: Applause - Internal Team
Action Performed:

Go to https://staging.new.expensify.com/
Log in.
Open group chat and create task without assignee
As user B of the group open task details and assign it to me
Verify that green dot appears in LHN
As user B reassign task to any other user
Observe the LHN

Expected Result:
Green dot disappears in LHN when reassign task to another user as user B of the group
Actual Result:
Green dot is present in LHN when reassign task to another user as user B of the group
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android: Native
[ ] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence

https://github.com/Expensify/App/assets/78819774/b2bdc812-80bb-462b-a68c-af315110c037
View all open jobs on GitHub

We think that this bug might be related to #vip-vsp

If we are reassigning the task from one user to another, we want the green brick Road to show so that the user knows they have a new action waiting on them. Not a bug -- closing.

Hey @zanyrenney! Can you create a GH issue for the TR update? We currently have steps indicating that a green dot should be present when a user reassigns a task to another DM participant -  https://expensify.testrail.io/index.php?/cases/view/2661775


Adding missing package-info to core packages

Provide package-info.class in core packages with NonNullApi and NonNullFields annotations

Closing this in favor of making smaller changes with a few focussed packages.


Fix description of next tutorial on "Handling Text Input" page

The last sentence says that the next tutorial is the ScrollView, when the Next button actually points to "Handling Touches. (ScrollView is after Handling Touches).  Updated the sentence and link to go to Handling Touches instead.

Hey @stanparker thanks for the fix! Looks like we just merged this in through https://github.com/facebook/react-native/pull/15176


Mark timeout test cases as @Flaky

See https://github.com/gradle/gradle-private/issues/4145

The merge queue build has started. Click here to see all failures if any.


Sync http proxy setting to rke2

Now we can sync the proxy settings to rke2 by updating local cluster spec.
Related Issue:
https://github.com/harvester/harvester/issues/1218

Rke2 restarts. Nodes don't reboot so it does not affect running services


UI: Rewrite VM ownership editor using AngularJS

Reassigning to Milan Z.  @mzazrivec If you need help getting started, ping @AparnaKarve for assistance.

@dclarizio Just looking through some of the performance tagged Issues, and this one that came up and seems pretty old.  Is this no longer relevant and/or could be moved to the ManageIQ/manageiq-ui-classic repo?


TTL Check Methods

I want to resolve #197 as the current HTTP method used for the ttl_pass / warn / fail is wrong as per the API spec: https://www.consul.io/api/agent/check.html#ttl-check-pass.
cheers,  danny

Should be fixed by #182. Please re-open if this is still an issue.


gcloud ssh needs to be run in the compute context

Small thing but it bit me, since I am not super familiar with the gcloud utility yet.

Thanks!  I have an alias of alias gce='gcloud compute' so I missed this :)


How to use GetLine to skip line

Hi,
Please take a look at my trial code of using GetLine to skip line:
https://github.com/suntong/lang/blob/master/lang/Go/src/text/awk/SkipLine.go
I run it like this:
seq 12 | xargs -n 3 | go run SkipLine.go

I.e., the input to the script will look like this:
$ seq 12 | xargs -n 3
1 2 3
4 5 6
7 8 9
10 11 12

I want (and coded) the script to validate the first line, then skip the following lines until a line begins with "7". However, it is not behaving as I expected. the loop runs forever.
How can I fix it?
Thanks

Confirmed that it is a bug -- according to https://godoc.org/github.com/spakin/awk#Script.GetLine

If the argument to GetLine is nil, GetLine reads from the current input stream and increments NR.

However, I found that the NR never increased, and GetLine kept returning the next line without advancing. The is not the behavior of awk getline.

Adding Next() into the Getline loop does not advance the NR either. Please see the updated SkipLine.go for proof.

I'm not sure exactly what your script is supposed to do, but I suspect that the problem is with Next rather than with GetLine.  Could you please post an AWK version of SkipLine.go so I have something to compare against?
Thanks,
— Scott

that Next was actually added last minute, and should not be there in the first place. For either case, the Getline loop does not advance the NR.
OK. I'll provide a simpler AWK version of SkipLine.go in a sec.

First, getline in awk should advance the NR, and read the next lines in sequence:
$ seq 6 | awk '/2/{ getline; getline; }; 1'
1
4
5
6

Skip lines from /2/ to /^5/:
$ seq 6 | awk '/2/{ while ($0 !~/^5/) { getline;} next; }; 1'
1
6

Hope you can find some time to fix it soon. Thanks.

Confirmed that it is a bug -- according to https://godoc.org/github.com/spakin/awk#Script.GetLine

Please read the whole paragraph:

GetLine reads the next record from an input stream and returns it. If the argument to GetLine is nil, GetLine reads from the current input stream and increments NR. Otherwise, it reads from the given io.Reader and does not increment NR. Call SetF(0, ...) on the Value returned by GetLine to perform the equivalent of AWK's getline with no variable argument.

That is, you need some SetF(0, variable) calls to mimic a no-argument getline.  Your /2/{ getline; getline; }; 1 example should therefore be written as follows in Go:
scr := awk.NewScript()
scr.AppendStmt(func(s *awk.Script) bool {
        return s.F(0).Match("2")
}, func(s *awk.Script) {
        v, err := s.GetLine(nil)
        if err != nil {
                return
        }
        s.SetF(0, v)

        v, err = s.GetLine(nil)
        if err != nil {
                return
        }
        s.SetF(0, v)
})
scr.AppendStmt(nil, nil)

Your /2/{ while ($0 !~/^5/) { getline;} next; }; 1 should be written as follows:
scr := awk.NewScript()
scr.AppendStmt(func(s *awk.Script) bool {
        return s.F(0).Match("2")
}, func(s *awk.Script) {
        for !s.F(0).Match("^5") {
                v, err := s.GetLine(nil)
                if err != nil {
                        return
                }
                s.SetF(0, v)
        }
        s.Next()
})
scr.AppendStmt(nil, nil)

And your /^B/{ while ($0 !~/^E/) { getline;} next; }; 1 example should be written as follows:
scr := awk.NewScript()
scr.AppendStmt(func(s *awk.Script) bool {
        return s.F(0).Match("^B")
}, func(s *awk.Script) {
        for !s.F(0).Match("^E") {
                v, err := s.GetLine(nil)
                if err != nil {
                        return
                }
                s.SetF(0, v)
        }
        s.Next()
})
scr.AppendStmt(nil, nil)

As for https://github.com/suntong/lang/blob/master/lang/Go/src/text/awk/SkipLine.go, it seems that this is the AWK code you had in mind:
{
    # Validate the current line.
    for (i = 1; i <= 3; i++) {
        if ($i != (NR - 1)*3 + i)
            check((NR - 1)*3 + i, $i)
    }
    print ".", NR, $0

    # Skip till ^7.
    for (getline line; line !~ /^7/; ) {
        print ">", NR, line
        next
    }
}

END {
    print "Passed."
}

function check(a, b) {
    if (a == b)
        return
    print "Received != expected" > "/dev/stderr"
    exit 1
}

That does expose a problem with the awk package's Next call, which fails to break out of the enclosing for loop.  I'll see if I can fix that.  In the meantime, adding a return after the s.Next() should make the Go version produce the same results as the AWK version.
— Scott

Thanks a lot for your detailed explanation!! Will do.


IndexError: string index out of range

Dear all,
Using the Enrich2 software package for the analysis of my pre-processed fastq files I run sometimes into an "IndexError: string index out of range".
2020-03-27 18:01:19,697 [enrich_cmd] Detected a BasicSeqLib config file
2020-03-27 18:01:19,697 [test] Creating new HDF5 data store "/home/oooo/Desktop/out/test_lib.h5"
2020-03-27 18:01:19,713 [test] Counting variants
Traceback (most recent call last):
  File "/home/oooo/anaconda3/envs/enrich2/bin/enrich_cmd", line 11, in <module>
    load_entry_point('Enrich2==1.2.1', 'console_scripts', 'enrich_cmd')()
  File "build/bdist.linux-x86_64/egg/enrich2/main.py", line 230, in main_cmd
  File "build/bdist.linux-x86_64/egg/enrich2/basic.py", line 167, in calculate
  File "build/bdist.linux-x86_64/egg/enrich2/basic.py", line 136, in counts_from_reads
  File "build/bdist.linux-x86_64/egg/enrich2/variant.py", line 402, in count_variant
IndexError: string index out of range
Closing remaining open `files:/home/oooo/Desktop/out/test_lib.h5...done `

I identified the sequences that caused the error in some occasion but I could not see anything in particular to be fixed. Simply they look exactly like all the other sequences in the fastq file.
Have you had some of these issues before or do you have some idea to try to fix it?
Thanks in advance,
Rosario

Without some sample data it's hard to figure out what's going on here. Can you post some of the FASTQ records that are fine and the ones that are failing?

Hi, attached are two  files. 1.fastq is the one working fine while the 144401.fastq is the one with the error.
fastq files.tar.gz
Here is what I get with the 144401.fastq
$ enrich_cmd test.json ratios wt
2020-04-07 11:12:08,295 [enrich_cmd] Detected a BasicSeqLib config file
2020-04-07 11:12:08,296 [test] Creating new HDF5 data store "/home/saro/Desktop/out/test_lib.h5"
2020-04-07 11:12:08,311 [test] Counting variants
Traceback (most recent call last):
File "/home/oooo/anaconda3/envs/enrich2/bin/enrich_cmd", line 11, in
load_entry_point('Enrich2==1.2.1', 'console_scripts', 'enrich_cmd')()
File "build/bdist.linux-x86_64/egg/enrich2/main.py", line 230, in main_cmd
File "build/bdist.linux-x86_64/egg/enrich2/basic.py", line 167, in calculate
File "build/bdist.linux-x86_64/egg/enrich2/basic.py", line 136, in counts_from_reads
File "build/bdist.linux-x86_64/egg/enrich2/variant.py", line 402, in count_variant
IndexError: string index out of range
Closing remaining open files:/home/oooo/Desktop/out/test_lib.h5...done
Here is what I get with the 1.fastq
$ enrich_cmd test.json ratios wt
2020-04-07 11:15:07,921 [enrich_cmd] Detected a BasicSeqLib config file
2020-04-07 11:15:07,921 [test] Found existing HDF5 data store "/home/saro/Desktop/out/test_lib.h5"
2020-04-07 11:15:07,938 [test] Counting variants
2020-04-07 11:20:21,280 [test] Counted 100 variants (73 unique)
2020-04-07 11:20:21,295 [test] Aligned 73 variants
2020-04-07 11:20:21,295 [test] Removed 0 total variants with excess mutations
2020-04-07 11:20:21,313 [test] Converting raw variants counts to main counts
2020-04-07 11:20:21,336 [test] Counted 100 variants (73 unique) after query
2020-04-07 11:20:21,343 [test] Counting synonymous variants
2020-04-07 11:20:21,350 [test] Counted 100 synonymous (70 unique)
2020-04-07 11:20:21,367 [test] Creating plots
2020-04-07 11:20:22,418 [test] Creating plots
2020-04-07 11:20:23,274 [test] Generating tab-separated output files
`
Thanks,
Rosario

Hi @Saro86 I have encountered the same issue of IndexError: string index out of range. Just wondering if you have figured out what might have caused the issue. Thanks!

Hi @tboonf , the way it worked for me was to trim the sequences before running the analysis with Enrich2 at exactly the size of the input sequence. In this last case the error did not show up.

Thanks @Saro86 I trimmed down all the raw reads to a fixed size, and that appears to have solved the problem, i.e. at least Enrich2 is now able to "count variant".
@afrubin
Despite that, I still received this error message: "Failed to use wild type log ratio method, wild type sequence not present [rep1]". I have triple checked that wild type sequence was keyed in properly. This error only appears when choosing the option "wild type"
But when choosing the option library size (all reads), i received this error message instead: "[enrich2.dataframe] Wild type score not measured, will be missing in plots" and also "Calculations completed, but plotting failed: unrecogznied HGVS string"
All help is very much appreciated.


Not getting apievents in kibana

Hii, I am getting cloudhub logs and worker stats but did get and apievents and filebeats can you help me

Are you getting any errors? You can debug it further by commenting out the pipelines that work and focusing on the ones that don't in config/pipelines.yml

So in the api-events pipeline I am not getting any errors but, as per the configuration it should a create a index name api-events but it creating only creates this indexs

And also i did found this api "https://anypoint.mulesoft.com/cloudhub/api/v2/applications/%{app_name}/dashboardStats" doc can you provide me the link.
Thank you :D

And also i did found this api "https://anypoint.mulesoft.com/cloudhub/api/v2/applications/%{app_name}/dashboardStats" doc can you provide me the link.
Thank you :D
Are you after the API description?

https://anypoint.mulesoft.com/exchange/portals/anypoint-platform/f1e97bc6-315a-4490-82a7-23abe036327a.anypoint-platform/cloudhub-api/minor/1.0/console/endpoint/%232219/

So in the api-events pipeline I am not getting any errors but, as per the configuration it should a create a index name api-events but it creating only creates this indexs

Can you try and see that if you send the api-events output to the console, you see the events reported?
If there are events, then create the index manually. If there are no events, then the CloudHub API is not reporting events and there is something else going on there with your Mule app.


I cannot add moderators

login as an admin
go to account management
click add moderator
intput "a" as first name "a" as last name "a" as email

Resolved in recent commit


Script is running but sound is not being processed

It says it's listening from my airpods mic but even when I speak or play music out loud the visualization doesn't change.
Does it listen in from the microphone?

Nevermind. Fixed this - it was an issue with my mic


introduce lua aliases

generateLuarocksConfig: add defaults to ease its usage
luaPackages: introduce an alias mechanism
luaPackages.lpty: remove because unmaintained/broken

Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

$ git -c fetch.prune=false fetch --no-tags --force https://github.com/NixOS/nixpkgs master:refs/nixpkgs-review/0 pull/261108/head:refs/nixpkgs-review/1
remote: Enumerating objects: 28, done.
remote: Counting objects: 100% (22/22), done.
remote: Compressing objects: 100% (14/14), done.
remote: Total 28 (delta 11), reused 9 (delta 7), pack-reused 6
Unpacking objects: 100% (28/28), 19.88 KiB | 363.00 KiB/s, done.
From https://github.com/NixOS/nixpkgs
e36211cb358b..51aeb5d3e481  master     -> refs/nixpkgs-review/0
$ git worktree add /home/teto/.cache/nixpkgs-review/pr-261108-1/nixpkgs 51aeb5d3e481f7e4f3aa4875f41cd67526c93fa7
Preparing worktree (detached HEAD 51aeb5d3e481)
Updating files: 100% (37581/37581), done.
HEAD is now at 51aeb5d3e481 Merge pull request #260959 from devusb/chiaki4deck
$ git merge --no-commit --no-ff 0be613cb817c4a292080e2057d6fe1ab6e8c1193
Automatic merge went well; stopped before committing as requested
Nothing to be built.
Link to currently reviewing PR:
https://github.com/NixOS/nixpkgs/pull/261108


Migrate to prop-types library

React.PropTypes is deprecated as of React v15.5. This migrates to the prop-types library, which should have no functional consequences.
See also https://github.com/Benjamin-Dobell/react-native-markdown-view/pull/4.

@Benjamin-Dobell Ping. :-)  Any thoughts on this PR?

@Benjamin-Dobell Thanks for merging!


How to reduce rigid body penetration

How to reduce rigid body penetration

Increase engine iterations and / or use a smaller timestep delta with multiple substeps.


iOS: Crash when deleting story tags

Probably just when going from 1 to 0.

This seems similar to #724 (crash with saved stories).  Though I'm not sure how to add or delete tags; I don't see any code that changes a "story_tags" array.  What are the steps to reproduce?

When you save a story using the Save Story button at the bottom of a story, you'll see a little text box that allows you to add a new saved story tag. The 1 to 0 references a story tag that only has a single story in it. You may have to add a tag, reload feeds, then remove that tag (by unsaving the story).

Ah, thanks.  But when I do anything in the user tags view popover (adding a tag, clicking on a tag), it crashes with an invalid table sections exception.  Might be a separate issue.


Event modify OnBeforeCreateRegActivHeader CU7307

Hi,
in the event "OnBeforeCreateRegActivHeader" in CU7307 is missing handling of RegisteredInvtMovementHdr. In case WhseActivHeader is of "Invt. Movement" type and external handling is true, the registered header will be uninitialized.
Similarly in "CreateRegActivLine" is missing the "OnAfterInitRegMovementLine".
Thank you
S.

Sorry, COD7370 does not exist in base application. Please correct you ask.

Sorry, COD7370 does not exist in base application. Please correct you ask.

Sorry, was COD7307 :)


Fix Documentation - Better Onboarding

@nikgraf I did couple of iterations on this! We can still make it better but for now looks good to me. Feel free to edit the readme.


Menu component should unsubscribe events on componentWillUnmount

Hey,
I use Menu component to handle navigation. Sign out is one of the navigational features.
After clicking signOut I unmount Menu component from my TopAppHeader (the usual bar at the top of the app. Menu component is or is not there based on user permissions).
I unmount it as it obviously shouldnt be there after logout.
Even as Menu component is unmounted its function - handleDocumentClick tries to fire findDOMNode on it.
I added componentWillUnmount with removing subscribed method and it works now: )
Lacking piece of code in Menu.js:
{
key: 'componentWillUnmount',
value: function componentWillUnmount() {
_utils.events.removeEventsFromDocument({ click: this.handleDocumentClick });
}
},

I think this is fixed in the dev branch. Not sure about the latest release. Thanks!! :)

np. Best mate!


Make tokenization respect escaped quotes.

Note: SQL usually use single quotes for strings but the old implementation allowed both single and double quoted string as well as a single quoted string to end with a double quote.
This implementation keeps this behavior but allows for quotes to be escaped.
For example strings like "O\'Reilly" won't cause assertion failure and will be tokenized correctly.

Please let me know if you have any questions or concerns about the pr.

Hi just pinging this.


refresh

When you login as a user and you go to people browse - I get the screen where all the user icons are like this :

When I press Control + F5 it display the correct image profile, but when you search again it will display it like the image above. One neede to do the control + F5 the whole time in order for the profile pictures to display correctly.
Tested on Firefox, Edge, Crome and on different computers


New release?

Now that https://github.com/linkedin/dex-test-parser/pull/32 has been merged, it'd be great to have a new release. 😁

We might wait a little for #35 to go in before make a new release, thanks for your patience!

Version 2.1.0 has been released :)


Why use leader robots joint positions as Supervision rather than the follow's

In your paper, you mention:
We record the joint positions of the leader robots (i.e. input from the human operator) and use them as actions. It is important to use the leader joint positions instead of the follower's, because the amount of force applied is implicitly defined by the difference between them, through the It is important to use the leader joint positions instead of the follower's, because the amount of force applied is implicitly defined by the difference between them, through the The low-level PID controller.
How to understand it? What if I use the qpos(the follow's joint positions?

I guess it is because the leader robots joint position is the signal which be sent to follower robot to execute. For example, we get potion A from leader robot, and send it to follower robot, the robot will go to A'. So if we want the robot to go to A', we should send A to it, rather than A'. That is why A is the target groundtruth.

@Jessy-Huang let's say we are operating in the Cartesian space and we are trying to push an object with a robot gripper. In order to move it, we need to apply a certain force threshold to that object so that it starts to move.
Let's say we touch the object at t=0 and we increasingly apply a certain force until at t=T the object finally starts to move.
Here is what happened, between 0 and T, the follower/measured positions were constants but the leader/target positions were going deeper and deeper in the object until the difference between the target and measured positions was enough to generate enough forces to move the object. It is the responsibility of the P(I)D controllers to translate the difference in positions into forces.
Now, if we record the follower/measured positions and we try to replay these (i.e. these recorded measured positions become now our target positions), what happens? Well, between 0 and T, our target positions are going to be constant and the difference between these and the currently measured positions will be close to 0 so at the end we won't be generating any forces. This is already different from what happened above where we were applying an increasing force to the object until it finally moved at t=T. You can then imagine what will happen after T depending on the difference between the recorded measured positions (which are now our target positions) and our currently measured positions.
I hope this helps.


doc: translation for docs/tutorials/timeseriees-forecasting-by-dsp.md

Signed-off-by: shenxianjie<EMAIL_ADDRESS>What type of PR is this?
translate docs/tutorials/timeseriees-forecasting-by-dsp.md
What this PR does / why we need it:
fix the issue #421
Which issue(s) this PR fixes:
Fixes #421

Thanks for your pull request. :)

Thanks for your pull request. :)

@zsnmwy
I have fixed all the comments.
There is a problem here, I firstly commit the pr on a computer, but now I notice I can't get the content of my first commit when I am using another computer after pulling my forked branch.
I found out the commit's SHA and attach it to it, then the first commit come back,
`
[going@dev crane]$ git branch

(HEAD detached from f33e209)
main
so I fixed and update the tag, Now I have no idea how to push the pr in the right way, I try to push it as below:[going@dev crane]$ git remote -v
origin  git@github.com:jxs1211/crane.git (fetch)
origin  git@github.com:jxs1211/crane.git (push)
upstream        git@github.com:gocrane/crane.git (fetch)
upstream        no_push (push)
[going@dev crane]$ git push origin f33e209:main
`
but it seems don't trigger the ci. Could you do me a favor to fix the situation?

Thanks for your pull request. :)

@zsnmwy I have fixed all the comments. There is a problem here, I firstly commit the pr on a computer, but now I notice I can't get the content of my first commit when I am using another computer after pulling the forked repo. I found out the commit's SHA and attach to it, then the first commit come back,
[going@dev crane]$ git branch
* (HEAD detached from f33e209)
  main

so I fixed and update the tag, Now I have no idea how to push the pr in the right way, I try to push it as below:
origin  git@github.com:jxs1211/crane.git (fetch)
origin  git@github.com:jxs1211/crane.git (push)
upstream        git@github.com:gocrane/crane.git (fetch)
upstream        no_push (push)
[going@dev crane]$ git push origin f33e209:main

but it seems don't trigger the ci. Could you do me a favor to resolve the situation?

如果弄混了，可以这样：
重新clone一个文件夹，checkout到你的branch，本地准备好你的提交内容，git commit，git push -f origin {your-branch}

Thanks for your pull request. :)

@zsnmwy I have fixed all the comments. There is a problem here, I firstly commit the pr on a computer, but now I notice I can't get the content of my first commit when I am using another computer after pulling the forked repo. I found out the commit's SHA and attach to it, then the first commit come back,
[going@dev crane]$ git branch
* (HEAD detached from f33e209)
  main

so I fixed and update the tag, Now I have no idea how to push the pr in the right way, I try to push it as below:
origin  git@github.com:jxs1211/crane.git (fetch)
origin  git@github.com:jxs1211/crane.git (push)
upstream        git@github.com:gocrane/crane.git (fetch)
upstream        no_push (push)
[going@dev crane]$ git push origin f33e209:main

but it seems don't trigger the ci. Could you do me a favor to resolve the situation?

如果弄混了，可以这样： 重新clone一个文件夹，checkout到你的branch，本地准备好你的提交内容，git commit，git push -f origin {your-branch}

@zsnmwy @qmhu I've opened another pr# for this issue, please close this pr.

Thanks for your pull request. :)

@zsnmwy I have fixed all the comments. There is a problem here, I firstly commit the pr on a computer, but now I notice I can't get the content of my first commit when I am using another computer after pulling the forked repo. I found out the commit's SHA and attach to it, then the first commit come back,
[going@dev crane]$ git branch
* (HEAD detached from f33e209)
  main

so I fixed and update the tag, Now I have no idea how to push the pr in the right way, I try to push it as below:
origin  git@github.com:jxs1211/crane.git (fetch)
origin  git@github.com:jxs1211/crane.git (push)
upstream        git@github.com:gocrane/crane.git (fetch)
upstream        no_push (push)
[going@dev crane]$ git push origin f33e209:main

but it seems don't trigger the ci. Could you do me a favor to resolve the situation?

如果弄混了，可以这样： 重新clone一个文件夹，checkout到你的branch，本地准备好你的提交内容，git commit，git push -f origin {your-branch}

@zsnmwy @qmhu I've opened another pr#452 for this issue, please close this pr.

Not the same content with #451 and #452. Is right?

Thanks for your pull request. :)

@zsnmwy I have fixed all the comments. There is a problem here, I firstly commit the pr on a computer, but now I notice I can't get the content of my first commit when I am using another computer after pulling the forked repo. I found out the commit's SHA and attach to it, then the first commit come back,
[going@dev crane]$ git branch
* (HEAD detached from f33e209)
  main

so I fixed and update the tag, Now I have no idea how to push the pr in the right way, I try to push it as below:
origin  git@github.com:jxs1211/crane.git (fetch)
origin  git@github.com:jxs1211/crane.git (push)
upstream        git@github.com:gocrane/crane.git (fetch)
upstream        no_push (push)
[going@dev crane]$ git push origin f33e209:main

but it seems don't trigger the ci. Could you do me a favor to resolve the situation?

The commit f33e209 is already pushed to jxs1211/crane:main.
Nothing will be changed if you try to push the same commit twice because the commit is already in GitHub.
Push the same commit can't trigger the CI.

You can use the git stash to save your work - docs fix.
Use Github official CLI to get the pr content. gh pr checkout 451. The CLI just wrapper git command.
Use git stash pop to recover your work.
Follow the after guide.

# Realize you forgot to add the changes from main.py or want to fix some problems.
git add main.py
git commit --amend --no-edit # Here, maybe get the commit SHA - 456456
# Notice the git history is changed. You must use the `--force` params when using git push. Replace the remote git history with the local git history. You must ensure the remote repo history no one use or changes.
git push --force # Now you can see the new commit hash - 456456 on the Github page. The remote git history will miss the hash 123123.

You must ensure the remote repo history no one use or changes.
You must ensure the remote repo history no one use or changes.
You must ensure the remote repo history no one use or changes.

Ref: git amend


WFLY-18098 Upgrade JGroups AWS to 3.0.0.Final; expand documentation.

Resolves
https://issues.redhat.com/browse/WFLY-18098
Resolves productization issues around "Project aws-sdk-java version 1 cannot be built with JDK 11 or 17".

@rhusar Needs a rebase.

@rhusar / @pferraro Are we still missing something to proceed on this one?  It is both approved and on hold.

@darranl This is ready.

Thanks @rhusar and @pferraro


Fix some spelling mistakes, rename nydusd log file

Provide a flag FS_CACHE=1 to make install thus to easily setup nydus-snapshotter with fs driver  fscache.

Codecov Report

Merging #99 (f887f6f) into main (a9fb691) will increase coverage by 0.11%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main      #99      +/-   ##
==========================================
+ Coverage   28.66%   28.77%   +0.11%
==========================================
  Files          17       17
  Lines        1528     1536       +8
==========================================
+ Hits          438      442       +4
- Misses       1026     1030       +4
  Partials       64       64

Impacted Files
Coverage Δ

cmd/containerd-nydus-grpc/pkg/command/flags.go
76.56% <0.00%> (-1.16%)
:arrow_down:

Continue to review full report at Codecov.

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


Fix dockerfile after upgrading to RoadRunner v2

Codecov Report

Merging #74 (55ba2e3) into rc-1.0.0 (2b116bd) will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             rc-1.0.0      #74   +/-   ##
===========================================
  Coverage       99.59%   99.59%
  Complexity        594      594
===========================================
  Files             101      101
  Lines            1718     1718
===========================================
  Hits             1711     1711
  Misses              7        7

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more


is it possiable to use C code for coverting to the font bin file?

Dear Sir:
is it possible to use C code for Coverting to the font bin file? or which solution can use in android and IOS ,,not nodejs...I am not familiar with nodejs,,,not sure the cellphone js engine can run it or not

This is JS project, can not comment about other languages, sorry.


Provide a helper method that will test a specified proxy

/**
 * Tests the specified proxy
 */
boolean testProxy(ProxyServerConfig.OutboundProxyConfig proxyConfig, int timeout);

This method should try to load http://mobile-api.adguard.com/generate_204 through the specified proxy and return true in case of a success.

Merged, core/pull-requests/280


Issue generating servers which have 'api' in their name

Problem statement
There seems to be an issue when generating servers which have the text 'api' in their name. When generating a server with 'api' in the name the api part is stripped from the directory name in which the servers main.go is located. For example, running the generator with the following command
swagger generate server -f swagger.yaml --name custom-server-api

I would expect the main.go to be generated in the folder structure './cmd/custom-server-api-server/', however the main.go is actually generated in the folder './cmd/custom-server-server/'.
I had a quick look through past issues and couldn't find anything reported similar to this issue. My apologies if this has been reported before.
Swagger specification
Used example swagger spec defined here
Steps to reproduce
Run the command:
swagger generate server -f swagger.yaml --name custom-server-api

Notice that main.go is generated in the folder 'custom-server-server' instead of the expected folder 'custom-server-api-server'.
Environment
swagger version: v0.19.0
go version: go1.11.5 windows/amd64
OS: Windows

Yes this done here.
The appName is reused in some other places where a trailing API in name sucks. We should have a dedicated variable for the main package.

Also letting the choice of using any directory name, without appending '-server' would be great. Dissociating this directory with other usage elsewhere else would be good!


JWS-248 and JWS-217

Loot at commit messages

@jfclere

Can't you stash those 6 commits into one, there is no way I will the stuff otherwise.

Additionally why do you rename the bat and shell scripts?

Rename was because of postinstall which need to have this name of script. I`ll stash those cocmmits, i leave it in 6 so it is better to see what was changed for JIRAS and for revision

then you need to fix the postinstall there is not reasons to change scripts names.


Using generated JS file outside 1c environment

Is it possible to use the generated JS file outside the 1c environment, i.e. without using "1c run?"
Can i take the built JS file and just run it using jjs for example, or do i need some magic bits to make that work?

If you use only standard JDK and NPM packages (without  Maven dependencies), you can run the JS output without 1c run. For example,

And if the TypeScript source is for front-end, 1c build just acts like webpack/gulp. You can use the generated JS file in <script> tag on HTML pages.

And presumably in the first case even if i used Maven dependencies, if i include all of the dependent JARs on the "jjs" command line (using -cp option) then that should work too right?


[SelectUnstyled] Integrate with FormControlUnstyled

Make SelectUnstyled aware of the FormControlUnstyled context, similarly to how Material UI's Select interacts with FormControl.

Hi, I'd like to work on this.
From my understanding, add the useFormControlUnstyled hook in <SelectUnstyled>, so <SelectUnstyled> can be aware of the following properties: disabled, error, focused, required?
I suppose some demos should be added showing how to use <FormControlUnstyled> together with <SelectUnstyled>, I am thinking I can add them in a separate PR.

Hi, could you please hold it off for a bit? I have some changes to FormControlUnstyled in progress. I hope to create a PR tomorrow at most.


[WIP] Add docs

This pull request adds the docs/ directory containing most important pointers on how to use idiokit. The entry point to the topics is the docs/README.md file.

The current status: There are examples for most of the things, but almost no explanatory text.

This was still work in progress, but maybe we can continue improving this on the main branch.

@mseppanen It was WIP, but since it doesn't hurt anything in master, I decided to merge. Improvements can be done via new PRs.


Naming convention changes to help deal with multiple branch commits

I have a feature request for a change to the naming convention of sql files, to help working with commits from multiple branches.
In our shop, we have developers working on multiple branches, each with their own dev environments. The branch work could go on for a long time, and merged into trunk when ready to join the next release. Currently, each team is starting their script numbering for a given release from version 1, and going up. So, as the feature branches merge into trunk, we get conflicts on version number, and have to make manual corrections.
Our scripts from the separate teams are very rarely related, and can be run in any order (preserving order within each feature). What would help a lot, is an enhancement to the naming convention for script files.If we could include an additional optional "prefix", we could put feature name/number in there. That would eliminate the conflicts between branches, and as long as we don't care which feature's scripts run first, we are all set.
We did not want to use the existing prefix pattern, since we would then have to tell flyway about each feature, rather than just pointing it at a path.

@axelfontaine what do you mean by "use one Flyway instance and metadata table per feature(-group)"?
Could you give me an example?

@philippeehlert
We also have multiple features being developed in parallel, and ran into the same issue. Our solution was to include the Jira number in the version.
So, if the two JIra epics are JIRA-123 and JIRA-124, the migrations scripts would be:
V123_1__JIRA-123-script1.sql
V123_2__JIRA-123-script2.sql
V123_3__JIRA-123-script3.sql
and
V124_1_JIRA-124-script1.sql
V124_2_JIRA-124-script2.sql
V124_3_JIRA-124-script3.sql
If multiple features happen to have a dependency on another (which is a rare case for us), we require that you put your script in the namespace for the JIRA ticket you are dependent on.
And, you need to enable outOfOrder mode.

@nycjay we've been doing this for a while and we're using a timestamp as the version number, it's something like this: V2<IP_ADDRESS>.55__script.sql
but our main problem right now is that:
lets suppose I go from branch master to branch new_feature and create a migration there, when I'm finished, this branch goes to the code review queue, and while it is standing there to be reviewed I go back to the master branch and start coding in branch new_feature_2 which gives me a Detected applied migration missing on classpath and I have to manually delete the migration from new_feature from schema_version.
I believe that using multiple instances of Flyway would fix this problem

@philippeehlert Yeah that makes sense. Our dev workflow is a bit different. When you start working on a new feature, you spin up (in AWS) a new environment, which comes w/ a clean DB (and other services needed to start up the application).  When you are done developing a feature at it is tested / merged into master, then you destroy that environment, and spin up an new one for your next feature. That makes things a whole lot easier...


Bitcoind service not running 1.5.1

Hi,
Recently just built my node and all seemed to go fine. I sync and had it up and running. I wanted to use the chain explorer so I permissioned it but now I am getting the error "Bitcoind service is not running". I know this takes time but it has been this way for over 24 hours. I have read the other issue tickets and ran
sudo tail -f /mnt/hdd/bitcoin/debug.log
I get the following:
ERROR: ReadBlockFromDisk: Deserialize or I/O error - ReadCompactSize(): size too large: iostream error at FlatFilePos(nFile=0, nPos=296920)
2020-08-12T13:57:55Z *** ThreadSync: Failed to read block<PHONE_NUMBER>2f36135a13e90c07fe3816d4ae948ff1e3fa941d3dee7bbf421604 from disk

 LoadBlockIndexDB: last block file = 2191
2020-08-12T13:58:40Z LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=69, size=89470443, heights=643123...643251, time=2020-08-10...2020-08-11)

I am unsure how to proceed.

Did you used the torrent download of the blockchain in 1.5? There was a problem that the index building for BlockExplorer with that torrent blockchain - one reason why we dropped torrent blockchain download.

yes I did. Should I just rsync? At this point it would probably be worth just getting 1.6?

Yeah ... best is to call repair on the commandline (or choose in main menu) and then "RESET-CHAIN". Dont use the Torrent option. Once everything runs consider a update to v1.6.

Thanks. I completely missed the torrent being removed from the release notes.


Avoid prototype injection

I noticed these:
https://github.com/microsoft/vscode-jupyter/blob/890dd7a885cff5210273be38698162021eeabe90/src/platform/common/extensions.ts
https://github.com/microsoft/vscode-jupyter/blob/890dd7a885cff5210273be38698162021eeabe90/src/webviews/webview-side/error-renderer/index.ts#L55-L60
This is not good practice as it changes the global state and it also unexpected. Reading this code for the first time I googling String.format assuming you were polyfilling it. These could just be regular functions that you could import like import { format } from '.../string-utils';

Agreed, the plan was to replace this, however most felt it was unnecessary.
We have found that using this caused other issues, Python extension had their own implementation as well and that caused issues with our extension, however since they ended up using imports instead of prototype, the change to our code was considered unnecessary.
TLDR: I'm all for making this change.
Including removing other prototypes like ignoreErrors which can be simply fixed with .catch(noop)

Here's the original issue https://github.com/microsoft/vscode-jupyter/issues/9607

/duplicate https://github.com/microsoft/vscode-jupyter/issues/9607


call_on_name Panel

Please, why the panel doesn't change the title?
With other views this works fine.
s.call_on_name("my_panel", |view: &mut Panel<TextView>| {
        view.set_title("new title");
    });

Hi!
Usually this is because what you called "my_panel" is not quite a Panel<TextView>. This can happen for example if you first changed its width, and then gave it a name - here the name will be attached to the ResizedView<Panel<TextView>>.
Instead, you should probably first attach the name, and then resize the view (or add other wrappers).
There is a Cursive::debug_name method you can use to get (and maybe print) the name of the type of a view. You can for example log it and show it in the debug console, or you can just eprintln! it (making sure to redirrect stderr to a separate file with cargo run 2>error_file).


DocsArchive-<IP_ADDRESS>Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-yml-archive-non-versioning-archive/pull/254 is merged into live branch.
Auto archive content to https://github.com/opstest2/docs-yml-archive-non-versioning-archive.git

Docs Build status updates of commit ef3ca4e:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.redirection.json
:white_check_mark:Succeeded

docs/TOC.yml
:white_check_mark:Succeeded
View

docs/to-be-archive/level1/article3-1-1.md
:white_check_mark:Succeeded
View

docs/to-be-archive/level1/article3-1-2.md
:white_check_mark:Succeeded
View

docs/to-be-archive/level1/article3-1-3.yml
:white_check_mark:Succeeded
View

docs/to-be-archive/level2/article3-2-1.md
:white_check_mark:Succeeded
View

docs/to-be-archive/level2/article3-2-2.md
:white_check_mark:Succeeded
View

docs/to-be-archive/level2/article3-2-3.yml
:white_check_mark:Succeeded
View

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


No switch button to disable notification

Can you plase teach us how to implement a switch button to disable notification if the user wanted.. That's will be a great addition,

Hello, @sourimoto
Thank you for the interest to our project.
User can disable notification for specific application using android settings.
If you want to implement custom switch inside the application the simplest way is to save some flag into Shared Preferences, and check it before do notificationManager.notify( ) in MyFirebaseMessagingService.


crash android 4.4 kit kat after multiDex

Hi.
My project had problems with muilti dex I installed a dependency as described in the link. But in android 4.4 the app compiles but closes automatically
[√] Flutter (Channel master, v1.8.2-pre.242, on Microsoft Windows [versÃ£o 10.0.17134.885], locale pt-BR)

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.0-rc1)
[√] Android Studio (version 3.4)
[√] VS Code (version 1.36.1)
[√] Connected device (1 available)

• No issues found!

On current android phones works perfectly.

Hi @ClaudineiOlSantos
I see there's an open issue addressing the case you described.
Please follow up on #39779
I'm closing the current one as duplicate.
If you disagree please write in the comments
and I will reopen it.
Thank you


User Feedback - Form

Design Spec
When users tap either the thumbs up or thumbs down actions on a response, the user feedback form card will appear below the message (when enabled). The form can be customizable and is optional to users. Users can dismiss the form.

User feedback form will be customizable by the consumer. Default form will be multiple-choice labels and text area.

Suggestion to attach a submit handler that prevents default behavior of refreshing the page. This handler can also provide logic for submitting the data to an API (provided by the consumer).


[add-resource] New Plugin/Theme

Hello,
just completed the Tessellate theme porting to Grav. Here's the link https://github.com/giansi/grav-theme-tessellate.
Thank you

I tried to add your theme to the GPM, but it gave an error because you have not done a release yet.

Sorry, I missed that point. Now you've got it.

All sorted now!