Cannot create a project without a repository

Current behavior
I want to create a project without specifying a repository:

Run npx @xmartlabs/rnx-cli i MyAwesomeProject.
Choose No when asked about adding a repository.
Errors out with an error message: Error adding pre-push hooks..

Expected behavior
I should be able to create a project without specifying a repository:

Run npx @xmartlabs/rnx-cli i MyAwesomeProject.
Choose No when asked about adding a repository.
The CLI should continue on without a repo.

Video Reproduction

Platform

[ ] Windows
[X] MacOS

Environment

package
version

node
v14.19.1

yarn
1.22.15

HI @santiagofm it should be working in the latest version. Please check out, im going to close the issue but feel free to open it again if its not really solved


Unable to install in locked down enviroments

(wasn't quite sure what type of issue to flag this under)
🚀 Feature
In certian coorporate, regulated and/or security conscious firms external downloads are not tolerated, docusaurus has several dependencies which download binaries from 3rd party sources.
The dependencies in question are under imagemin:

imagemin-gifsicle depends on gifsicle-bin
imagemin-jpegtran depends on jpegtran-bin

Hoping opening this issue will trigger some action on the dependency authors to support the ability to speicify a 3rd party mirror for the binary, and this can be kept open to track progress.
Related issue on one of the mentioned projects https://github.com/imagemin/jpegtran-bin/issues/93
Related PR https://github.com/kevva/bin-wrapper/pull/73. This PR is based around the suggestions in the above issue, for bin-wrapper to support specifing a enviroment variable to check to find an alternative binary mirror location.
Have you read the Contributing Guidelines on issues?
Yes
Motivation
This would allow Docusaurus to be used in restrictive enrivornments.
Pitch
Really keen to use docusuarus at work but this issue prevents us from doing so.

Yes, this is affecting me from using it at work too. It would be good to get this issue resolved.

The Docusaurus team is actively working on Docusaurus v2.
After a very long alpha, Docusaurus v2 is now in beta.
We believe that the v2 beta is already better than v1, and v2 is ready for maintstream adoption.
Apart from critical issues and security fixes, we don't plan to invest much time on Docusaurus v1 anymore.
We are all closing v1 issues.
Maybe the current issue is already fixed in Docusaurus v2.
Please try to upgrade, and if the issue is still there on Docusaurus v2, open a new issue.


V3 state naming rules in selectors and combineReducers are not consistent

selectors.js.hbs
const select{{ properCase name }} = () => state => state.get('{{ properCase name }}')
// here could be :
const select{{ properCase name }} = () => state => state.get('{{ camelCase name }}')

actions.push({ // Add the reducer to the reducer.js file
        type: 'modify',
        path: '../../app/reducers.js',
        pattern: /(\.\.\.asyncReducers,\n {2}}\);)/gi,
        template: '{{camelCase name}}: {{camelCase name}}Reducer,\n    $1',
      });
      actions.push({
        type: 'modify',
        path: '../../app/reducers.js',
        pattern: /(export default function createReducer)/gi,
        template: 'import {{camelCase name}}Reducer from \'containers/{{properCase name}}/reducer\';\n$1',
      });

Hi,
#361 fixed that.

Note that this push action is not needed if your container is a page to be dynamically loaded #331.


Update OpenConnectionFromInterfaces:

Currently, if an implementation that opens a stateful session in its Opener implementation fails when open is called and then has a method called, for example, PowerStateGet, that needs to use the session info, we will get a panic.
This code updates the OpenConnectionFromInterfaces to remove any provider implementations that fail to open successfully. We do this and then returning a new registrar.Drivers from the Open method in client.go.
This changes the existing client.go Open method signature. Returning the registrar.Drivers instead of updating in place I think is important. We don't want to hide the "magic" because this can be confusing why providers are being removed. It also allows the end-user to have flexibility in deciding if/when to use this newly returned registrar.Drivers.
New usage:
cl := NewClient(host, port, user, pass)
var err error
cl.Registry.Drivers, err = cl.Open(ctx)
if err != nil {
	panic(err)
}

Hey @joelrebel, this one is ready for you whenever you have a moment. Thanks!

LGTM, thanks for this!


Failing tests

There are a couple of tests that either fail with an error or don't pass

Thoughts?

Hmm, there shouldn't be - could you specify which ones please?

Here's a dump:
======================================================================
ERROR: test_Clients_CreateClient (tests.testapiclients.Test_ApiClients)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/alexei/Projects/mangopay2-python-sdk/tests/testapiclients.py", line 16, in test_Clients_CreateClient
    client = self.sdk.clients.Create(id, 'test'<EMAIL_ADDRESS>  File "/Users/alexei/Projects/mangopay2-python-sdk/mangopaysdk/tools/apiclients.py", line 29, in Create
    response = rest.Request(urlMethod, requestType, requestData)
  File "/Users/alexei/Projects/mangopay2-python-sdk/mangopaysdk/tools/resttool.py", line 54, in Request
    return self.RequestIdempotent(None, urlMethod, requestType, requestData, pagination, additionalUrlParams)
  File "/Users/alexei/Projects/mangopay2-python-sdk/mangopaysdk/tools/resttool.py", line 68, in RequestIdempotent
    response = self._runRequestIdempotent(idempotencyKey, urlMethod, pagination, additionalUrlParams)
  File "/Users/alexei/Projects/mangopay2-python-sdk/mangopaysdk/tools/resttool.py", line 133, in _runRequestIdempotent
    self._checkResponseCode(response, decodedResp)
  File "/Users/alexei/Projects/mangopay2-python-sdk/mangopaysdk/tools/resttool.py", line 177, in _checkResponseCode
    raise ResponseException(response.request.url, response.status_code, message)
ResponseException: One or several required parameters are missing or incorrect. An incorrect resource ID also raises this kind of error. Errors: [HeadquartersAddress: The HeadquartersAddress field is required.] [TechEmails: The TechEmails field is required.] [PlatformType: The PlatformType field is required.] [PlatformDescription: The PlatformDescription field is required.] [PlatformURL: The PlatformURL field is required.]

======================================================================
ERROR: test_Users_GetKycDocuments (tests.testapiusers.Test_ApiUsers)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/alexei/Projects/mangopay2-python-sdk/tests/testapiusers.py", line 338, in test_Users_GetKycDocuments
    getKycDocuments = self.sdk.users.GetKycDocuments(user.Id, pagination)
  File "/Users/alexei/Projects/mangopay2-python-sdk/mangopaysdk/tools/apiusers.py", line 280, in GetKycDocuments
    return self._getList('users_allkycdocuments', pagination, 'KycDocument', userId, None, sorting)
  File "/Users/alexei/Projects/mangopay2-python-sdk/mangopaysdk/tools/apibase.py", line 301, in _getList
    response = rest.Request(urlMethod, self._getRequestType(methodKey), None, pagination, additionalUrlParams)
  File "/Users/alexei/Projects/mangopay2-python-sdk/mangopaysdk/tools/resttool.py", line 54, in Request
    return self.RequestIdempotent(None, urlMethod, requestType, requestData, pagination, additionalUrlParams)
  File "/Users/alexei/Projects/mangopay2-python-sdk/mangopaysdk/tools/resttool.py", line 68, in RequestIdempotent
    response = self._runRequestIdempotent(idempotencyKey, urlMethod, pagination, additionalUrlParams)
  File "/Users/alexei/Projects/mangopay2-python-sdk/mangopaysdk/tools/resttool.py", line 133, in _runRequestIdempotent
    self._checkResponseCode(response, decodedResp)
  File "/Users/alexei/Projects/mangopay2-python-sdk/mangopaysdk/tools/resttool.py", line 177, in _checkResponseCode
    raise ResponseException(response.request.url, response.status_code, message)
ResponseException: One or several required parameters are missing or incorrect. An incorrect resource ID also raises this kind of error. Errors: [page: The value 'None' is not valid for Int32.]

======================================================================
ERROR: test_KycDocuments_GetAll (tests.testkycdocuments.Test_KycDocuments)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/alexei/Projects/mangopay2-python-sdk/tests/testkycdocuments.py", line 17, in test_KycDocuments_GetAll
    list = self.sdk.kycdocuments.GetAll(pagination)
  File "/Users/alexei/Projects/mangopay2-python-sdk/mangopaysdk/tools/apikycdocuments.py", line 12, in GetAll
    return self._getList('kyc_documents_all', pagination, 'KycDocument', None, None, sorting)
  File "/Users/alexei/Projects/mangopay2-python-sdk/mangopaysdk/tools/apibase.py", line 301, in _getList
    response = rest.Request(urlMethod, self._getRequestType(methodKey), None, pagination, additionalUrlParams)
  File "/Users/alexei/Projects/mangopay2-python-sdk/mangopaysdk/tools/resttool.py", line 54, in Request
    return self.RequestIdempotent(None, urlMethod, requestType, requestData, pagination, additionalUrlParams)
  File "/Users/alexei/Projects/mangopay2-python-sdk/mangopaysdk/tools/resttool.py", line 68, in RequestIdempotent
    response = self._runRequestIdempotent(idempotencyKey, urlMethod, pagination, additionalUrlParams)
  File "/Users/alexei/Projects/mangopay2-python-sdk/mangopaysdk/tools/resttool.py", line 133, in _runRequestIdempotent
    self._checkResponseCode(response, decodedResp)
  File "/Users/alexei/Projects/mangopay2-python-sdk/mangopaysdk/tools/resttool.py", line 177, in _checkResponseCode
    raise ResponseException(response.request.url, response.status_code, message)
ResponseException: One or several required parameters are missing or incorrect. An incorrect resource ID also raises this kind of error. Errors: [page: The value 'None' is not valid for Int32.]

======================================================================
ERROR: test_Idempotency (tests.testidempotency.Test_Idempotency)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/alexei/Projects/mangopay2-python-sdk/tests/testidempotency.py", line 34, in test_Idempotency
    payOut = self.sdk.payOuts.CreateIdempotent(key, payOutPost)
  File "/Users/alexei/Projects/mangopay2-python-sdk/mangopaysdk/tools/apipayouts.py", line 22, in CreateIdempotent
    return self._createObjectIdempotent(idempotencyKey, 'payouts_' + paymentKey + '_create', payOut, 'PayOut')
  File "/Users/alexei/Projects/mangopay2-python-sdk/mangopaysdk/tools/apibase.py", line 255, in _createObjectIdempotent
    response = rest.RequestIdempotent(idempotencyKey, urlMethod, self._getRequestType(methodKey), requestData)
  File "/Users/alexei/Projects/mangopay2-python-sdk/mangopaysdk/tools/resttool.py", line 68, in RequestIdempotent
    response = self._runRequestIdempotent(idempotencyKey, urlMethod, pagination, additionalUrlParams)
  File "/Users/alexei/Projects/mangopay2-python-sdk/mangopaysdk/tools/resttool.py", line 128, in _runRequestIdempotent
    response = self._sendRequest(request)
  File "/Users/alexei/Projects/mangopay2-python-sdk/mangopaysdk/tools/resttool.py", line 110, in _sendRequest
    prepared_request = request.prepare()
  File "/Users/alexei/.virtualenvs/mangopay/lib/python2.7/site-packages/requests/models.py", line 251, in prepare
    hooks=self.hooks,
  File "/Users/alexei/.virtualenvs/mangopay/lib/python2.7/site-packages/requests/models.py", line 295, in prepare
    self.prepare_headers(headers)
  File "/Users/alexei/.virtualenvs/mangopay/lib/python2.7/site-packages/requests/models.py", line 409, in prepare_headers
    check_header_validity(header)
  File "/Users/alexei/.virtualenvs/mangopay/lib/python2.7/site-packages/requests/utils.py", line 800, in check_header_validity
    "not %s" % (value, type(value)))
InvalidHeader: Header value<PHONE_NUMBER>85219544 must be of type str or bytes, not <type 'int'>

======================================================================
FAIL: test_Users_BankAccounts (tests.testapiusers.Test_ApiUsers)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/alexei/Projects/mangopay2-python-sdk/tests/testapiusers.py", line 255, in test_Users_BankAccounts
    self.assertTrue(pagination.TotalPages > 0)
AssertionError: False is not true

----------------------------------------------------------------------

I think I can fix the errors and also take a look at the failing one

OK, thanks.

test_Clients_CreateClient => This is missing the latest API updates regarding the client object but this call could be removed completely (due to the depreciation of this SDK, we most likely won't be updating this ourselves)
test_Users_GetKycDocuments and test_KycDocuments_GetAll  => this doesn't seem normal and will require more debugging - if you wanted to take a look, that would be much appreciated
test_Idempotency => This was passing when it was added - is it systematic?
test_Users_BankAccounts => Likewise, this was passing when it was added - is it systematic?

Yeah, basically ever since I cloned the project I've seen these same errors

Hmm, strange - well if you felt like fixing them, it would be hugely appreciated :-)

Likewise, with the release of the new v3 version, we're no longer maintaining the previous versions so I'm closing this for now I'm afraid.


fix(kura): correctly handle replace_top_block

Description
I've noticed multiple issues with kura which this PR is aimed to fix.

Quick sequential call of replace_top_block and store_block cause kura to omit overwriting soft-fork block

this happened because kura checked latest_written_block hash against latest_block_hash which is not correct because between kura loop iteration more than one block could be added

Call store_block before or just after start cause kura to incorrectly assume amount of already written blocks

Benefits
Fewer bugs.

How to test
To check this issues create_blocks test was added.

@mversic @DCNick3 updated, reapprove pls


Build Gradle -- Plugins

Hi. I am trying out the Pact framework, and I am trying to configure the build.gradle plugins. I am working behind a firewall, so all plugins need to be downloaded to my local maven repo.
Since I am intending to solely be coding in java, are all the sub-modules and plugins necessary? More specifically, the org.jetbrains.kotlin.jvm plugin has been giving me problems, and I am unsure if I would need it at all if I only intend to use java alone.

Are you trying to build the pact-jvm modules, or your own?

I'm trying to build the pact-jvm modules, and then eventually write my own consumer contract classes and provider classes.

To build the pact-jvm modules, you do need the kotlin plugin. However, pact-jvm jars are published to maven central so you could use those instead.

Thanks. I am a newbie to this contract-testing. So in order to write contract tests and provider j-unit tests. I only need the 'pact-jvm-consumer-junit' and 'pact-jvm-provider-junit' modules from maven central? Are these modules dependent on others in the project?

If possible, could you explain what I would need to do in order to start writing my own consumer and provider tests?

@mcgriffa - I had the same difficulty while starting off - I have pact-jvm-consumer-junit being used for consumer tests but I don't use pact-jvm-provider-junit - but this can give you some idea - https://github.com/shashidesai/pactdemo - this is a sample test project I put together to experiment with pact-jvm - hope this helps to certain extent. It has a readme too.

@shashidesai Thanks so much, your demo is pretty helpful. do you have any tips about the pact-broker. Is there away to publish the pacts to the provider without the broker or is that the best way to do it?

So pact broker can be run locally on your laptop or in your infrastructure whichever you want.
You don't publish pacts to the provider usually, you use broker as a means for bookkeeping versions of pacts which consumer(maybe apps using the api) can publish to and provider (api) can use to validate (run pactVerify step) and both these actions can be part of a CI pipeline (example: jenkins)
Right now we are using our own broker deployed in our AWS environment, you can do similar or use the pact broker provided by Dius at https://pact.dius.com.au/

Hi @shashidesai, have you used pact with a maven build before? I'm wondering why my pact file is not being created when I run a maven install. Any tips?

@mcgriffa - sorry, I haven't tried maven. if you can check-in the project somewhere, its easier to look at the way you are trying to do.

@shashidesai thanks so much. I'm looking at examples, and tweaking things, and it's weird a folder where the pact is supposed to go is being created, but the pact isn't in there. I'll keep looking though, thanks!


Update nikic/php-parser to 4.19.1

https://github.com/qossmic/deptrac/issues/1371

@sakowicz you need to resolve the conflicts in composer.json and composer.lock

@xabbuh I think the conflicts are there because the branch (1.0.x) is made from wrong commit. I've created my branch from 1.0.2 tag 🤔

@xabbuh, @sakowicz is right. I’ll asked him to prepare a PR.
I’ll wanted to release a 1.0.3, just with package updates for maintenance reasons.

I’ll try to have a look today!


improved rollback logic

JIRA Ticket: https://jira.lyrasis.org/browse/FCREPO-3350
What does this Pull Request do?

Exceptions during rollbacks are logged; not rethrown
Staging directories are always cleaned up
General logic and logging cleanup

How should this be tested?
Start F6:
mvn -Dfcrepo.home=target/fcrepo -Dfcrepo.log=DEBUG clean jetty:run

Create a resource in a transaction:
curl -u fedoraAdmin:fedoraAdmin -v -XPOST http://localhost:8080/rest/fcr:tx
txid=<TX_ID>
curl -u fedoraAdmin:fedoraAdmin -H"Atomic-ID: ${txid}" http://localhost:8080/rest/foo -H "Link: <http://www.w3.org/ns/ldp#NonRDFSource>; rel=type" -v -H "Content-Type: text/plain" -X PUT --data-binary "bar"

See the staging directory:
ls target/fcrepo/data/staging

Commit the transaction:
curl -u fedoraAdmin:fedoraAdmin -X PUT -v http://localhost:8080/rest/fcr:tx/${txid}

Verify the staging directory is now gone.
Do the same steps a second time, but, instead of committing the transaction, wait for it to expire and the confirm that the staging directory was removed.
Interested parties
@fcrepo4/committers

As a follow-on ticket, we will likely want to catch PersistentStorageExceptions and send an appropriate response code to the client... instead of a stacktrace.
The following script demonstrates the issue:
#!/usr/bin/bash

x=0;
r="http://localhost:8080/rest/";
while true;
  do x=$(($x + 1));
  r=`curl -s -H"Slug: $x" -XPOST $r`;
  echo "r = $r";
done

Likely a non-related issue, but the following test results in a org.springframework.dao.DuplicateKeyException.
transactions.sh:
#!/usr/bin/bash

if [ "$1" == "" ]; then
    echo "There must be a txn-URI argument!"
    exit 1;
fi

tx="$1"
x=0;
r="localhost:8080/rest"
while true;
  do x=$(($x + 1));
  curl -XPUT -H"Atomic-ID: $tx" "$r/$x"  -i
done

Start a transaction:curl -i -XPOST http://localhost:8080/rest/fcr:tx

Pass the transaction id (Location header) into the transactions.sh script

let the script run for a few hundred iterations

Start a new transaction and a new run of transactions.sh, before the first transaction expires

BOOM!

Staging clean-up and rollback appear to work as expected.

Likely a non-related issue, but the following test results in a org.springframework.dao.DuplicateKeyException.
transactions.sh:
#!/usr/bin/bash

if [ "$1" == "" ]; then
    echo "There must be a txn-URI argument!"
    exit 1;
fi

tx="$1"
x=0;
r="localhost:8080/rest"
while true;
  do x=$(($x + 1));
  curl -XPUT -H"Atomic-ID: $tx" "$r/$x"  -i
done

1. Start a transaction:
   ```
   curl -i -XPOST http://localhost:8080/rest/fcr:tx
   ```

2. Pass the transaction id (`Location` header) into the `transactions.sh` script

   * let the script run for a few hundred iterations

3. Start a new transaction and a new run of `transactions.sh`, before the first transaction expires

   * BOOM!

This is will be fixed in PR #1710

As a follow-on ticket, we will likely want to catch PersistentStorageExceptions and send an appropriate response code to the client... instead of a stacktrace.
The following script demonstrates the issue:
#!/usr/bin/bash

x=0;
r="http://localhost:8080/rest/";
while true;
  do x=$(($x + 1));
  r=`curl -s -H"Slug: $x" -XPOST $r`;
  echo "r = $r";
done

..noting that getting the root cause based on this PR is an improvement over the previous functionality of getting a masked exception.

Yes, there is an existing Jira ticket for dealing with those exceptions

PersistentStorageExceptions

Do you happen to have a link to an existing JIRA ticket for this? I am not seeing it.

PersistentStorageExceptions

You're right again. I was thinking of this, different, exception that we'd discussed earlier in the week.
https://jira.lyrasis.org/browse/FCREPO-3261
Seems like there should just be a ticket to review the exception handling to make sure it's generally not letting anything through.


4.2.2 fails at start with NoClassDefFoundError / IllegalStateException

Hello,
I downloaded the new 4.2.2. to test it with Java9, deleted all settings, started it and got an error preventing the startup. See attached log files:
dbeaver-debug.log
dot.log

Thanks!

Yeah, add --add-modules=ALL-SYSTEM after -vmargs fixed this issue.

Worked for me too - this is my file now looks like:
$ cat /usr/share/dbeaver/dbeaver.ini
-startup
plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.500.v20170531-1133
-showsplash
--launcher.GTK_version
2
-vmargs
--add-modules=ALL-SYSTEM
-Duser.language=en_US
-Xms64m
-Xmx1024m


Tensorflow nmt on Android

Any tutorial or project on how to implement the nmt on Android?

I tried one. I hope it helps.
https://github.com/jiraiyajr98/Android-Tensorflow-Lite-Language-Translator-NMT


[request] Cutting a release tag

Hi y'all!
Thanks for all of the work on this! I'm opening an issue to see if y'all would be up for cutting a release tag. We currently rely on a SHA but would love to rely on a version if possible!
Thank you!

I'm opening an issue to see if y'all would be up for cutting a release tag

No problem :) https://github.com/latex-lsp/tree-sitter-latex/releases/tag/v0.1.0

Thanks!


About the progress of this project

How is the overall progress percent of this project? I don't see a lot of modules in the flow chart showing yet.

How is the overall progress percent of this project? I don't see a lot of modules in the flow chart showing yet.

Yeah, I'm developing the segmentator now.
(It has some works about using the capstone to decompile from machine code to asm. It would also related to ELF/PE format parsing, such that I could find which call is our begin and end.


Do we have any ready to use tool or software which can stream video to KVS [QUESTION]

Trying to search if we have any ready to use software or tool which can start streaming webcam video directly to Kinesis Video Stream.

I want to stream live video.

What’s the target platform? Are you ok to use gst-launch or you want to build your own app?

I am fine not to build my own app if GStreamer can stream live video to KVS.


Testing a CR system

This is not for checkin. I am validating our CodeReview system.

Review status: 0 of 1 files reviewed at latest revision, 1 unresolved discussion, all commit checks successful.

src/Clients/Visuals/iVisual.ts, line 57 [r1] (raw file):
how about calling it just updateStrange ?

Comments from the review on Reviewable.io

Very cool!

Review status: 0 of 1 files reviewed at latest revision, 1 unresolved discussion, all commit checks successful.

Comments from the review on Reviewable.io

not needed


CI test workflow issue in the repo

cp_install.sh does't exist in cmsis-build 0.10.4 anymore so the cp_install.sh command is lost when you carry the CI test. It always failed.

packlist.sh does not need a parameter.
Sufficient should be:
run: bash packlist.sh


Container Types

Change Type
Correction
Proposed Changes
https://docs.cloudmydc.com/container/container-types

***Remove Jelastic domain.

Image Corrected in PR #269 .
Issue #148 & #149 have merged image


Add automatic labeling section with template examples, and a github workflow to add 'untriaged' label on new issues

Description
There has been discussion around how to be sure that issues are properly being marked and triaged.  To remove the human element from reviewing issues and adding the 'untriaged' label it it was missed I've added a github workflow to add 'untriaged' label during issue lifecycle event
Testing
On my fork of this repo I enabled issues and created a couple and they were automatically tagged on open [1] and reopen [2]  by the github action bot for various scenarios [2].
[1] https://github.com/peternied/.github/issues/4
[2] https://github.com/peternied/.github/issues/6
[3] https://github.com/peternied/.github/actions
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@dblock what do you think about about having a campaign or bulk-cut-prs for this workflow in all the repositories in opensearch-project so we have a consistent 'untriaged' label usage?

I think I'd want something org-wide like we do for DCO, maybe an app?

Do workflows defined here not get applied org-wide?

Do workflows defined here not get applied org-wide?

They do not, but I believe apps can be enabled for the org. cc: @VachaShah who did DCO I think

@joshuarrrr @dblock Really good thoughts, this workflow is easy to author and not too difficult to deploy via meta to all the projects in the org; however, it is a bad maintenance experience compared with a GitHub App.
It would be worth building off of the backporting app we made to instead create a workflow management system for the org that could also ensure the backporting, untriaged labeling or other practices are available and up to date.  Created an issue to track this notion.

https://github.com/opensearch-project/.github/issues/113

Switching to draft - feels like there is missing documentation calling this workflow out as an option to adopt, rather than a requirement of the project.

@peternied so is the goal now to make this a github app as opposed to a workflow? I like the idea but wanted clarity since we have an open PR in OSD to implement this workflow. https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3073

@ashwin-pc Yes, I propose closing that PR. @peternied any objections?

We have implemented this workflow for now in the OSD repo but I agree with the suggestions asking for this to be an App so that it is easier to maintain and keep in sync. @peternied have you explored what it would take to convert this workflow that you have into an app?

have you explored what it would take to convert this workflow

While converting the workflow is not difficult, it could be done with a relatively small CDK project either build from the ground up or to run GitHub Organization Manager.  The investment is in getting our organizations release processes.
I'd be happy to cede this pull request if someone would like to assign issue [1] to themselves.  I would rather have this PR merged and a tool that might replace it in the future.

[1] https://github.com/opensearch-project/.github/issues/115

@saratvemulapalli @mch2 @CEHENKLE What do you think about merging this change?


Webchat does not render correctly when added to a Web Component/shadowRoot

Is it an issue related to Adaptive Cards?
No
Is this an accessibility issue?
No
What version of Web Chat are you using?
Latest production
Which distribution are you using Web Chat from?
Bundle (webchat.js)
Which hosting environment does this issue primarily affect?
Web apps
Which browsers and platforms do the issue happened?
Browser: Chrome (latest)
Which area does this issue affect?
Others or unrelated
Which theme pack does this issue affect?
I did not test it on other theme packs
What is the public URL for the website?
No response
Please describe the bug
Attempting to render Web Chat inside a Web Component does not appear to work, and renders in a broken state:

I'm presuming this could be from the CSS-in-JS not working correctly within a Shadow DOM? Are there any workarounds for this?
<!DOCTYPE html>
<html>
  <head>
    <script
      crossorigin="anonymous"
      src="https://cdn.botframework.com/botframework-webchat/latest/webchat.js"
    ></script>
    <style>
      html,
      body {
        height: 100%;
      }

      body {
        margin: 0;
      }

      #webchat-container {
        height: 100%;
        width: 100%;
      }
    </style>
  </head>
  <body>
    <webchat-element></webchat-element>

    <script>
      class WebChatElement extends HTMLElement {
        constructor() {
          super();
          this.attachShadow({ mode: 'open' });
        }

        connectedCallback() {
          const container = document.createElement('div');
          container.id = 'webchat';
          container.style.height = '100%';
          container.style.width = '100%';
          this.shadowRoot.appendChild(container);

          window.WebChat.renderWebChat(
            {
              directLine: window.WebChat.createDirectLine({
                token: 'YOUR_DIRECT_LINE_TOKEN'
              }),
              userID: 'YOUR_USER_ID',
              username: 'Web Chat User',
              locale: 'en-US'
            },
            container
          );
        }
      }

      customElements.define('webchat-element', WebChatElement);
    </script>
  </body>
</html>

Do you see any errors in console log?
No console errors

How to reproduce the issue?
Reproduce the provided html example above
What do you expect?
That the webchat should still render correctly with it's CSS
What actually happened?
The webchat does not appear to render with it's CSS
Do you have any screenshots or recordings to repro the issue?
No response
Adaptive Card JSON
No response
Additional context
No response

Attaching to shadow DOM is not supported currently. For now, you could attach to the root and use slot as workaround. See the example: https://stackblitz.com/edit/webchat-shadow-dom-workaround

@OEvgeny  - I would also find this functionality vital, and great to see there is a pending PR for ShadowDOM support. Please update us when it is available.

Still actively working hard on this. 🙇🏻♂


UI issues

Placeholder text [1] is the same color as entered value text [2]. Should be different
Button [3] should be smaller and aligned to right
Form should not overlap the footer [4]
Plain text button [5] should be a different color

I agree with all these suggestions, but can't think of a different/better color for #5 "add mosaic" than white. I do understand thought that having it be a different color would follow normal practices of most apps/websites, just not sure what it would be. Maybe a suggestion could help?


Access Query Where Fields in Model.BeforeSelect Hook

Is there any capability available to access the query's where fields in a model's BeforeSelect hook? I have a nested struct with a field that I want to make sure is in the where fields of the query before executing and if not return an error. Basically trying to validate the query before execution.

@jarredwitt hey!
You can do it like this:
type Story struct {
	ID       int64 `bun:",pk,autoincrement"`
	Title    string
	AuthorID int64
}

var _ bun.BeforeSelectHook = (*Story)(nil)

func (s *Story) BeforeSelect(ctx context.Context, query *bun.SelectQuery) error {
	if id := ctx.Value("tenant_id"); id != nil {
		query.Where("author_id = ?", id)
	}
	return nil
}

func selectStories(ctx context.Context, db *bun.DB) ([]*Story, error) {
	stories := make([]*Story, 0)
	q := db.NewSelect().Model(&stories)
	if err := q.Scan(ctx); err != nil {
		return nil, err
	}

	var buf []byte
	buf, err := q.AppendQuery(schema.NewFormatter(sqlitedialect.New()), nil)
	if err != nil {
		panic(err)
	}

	fmt.Println("check query: ", string(buf)) // check query:  SELECT "story"."id", "story"."title", "story"."author_id" FROM "stories" AS "story" WHERE (author_id = 1)

	return stories, nil
}

Bun queries are write-only. You can do something like https://github.com/uptrace/bun/pull/581 or write something more elaborate.


TSC Meeting #22 2020-03-25 20:00 UTC

Agenda

add topics here
Review TSC issue backlog
Review TSC-tagged issues (toggle to "open" after checking for recently "closed" items)

@ampproject/tsc
@tobie Can you specify AC attendees?

Attendees will be @jorydotcom and I, provided the time actually works for both of us.

@tobie @jorydotcom The time of the meeting will be 20:00 UTC.

WFM. @jorydotcom?

@rudygalfi please add us to the agenda invite.

Per the agenda, we reviewed the meta-tsc backlog and TSC-tracked issues. For the most part it didn't look like many things had changed substantially.


test: update and and new

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


adding new reminder pack codes

Motivation and Context
Adding two new reminder pack codes
What has changed
Two new pack codes have been added mainly as enums throughout the software.

 Add reminder pack codes (3)


Introduce a TLV::Tag for TLV tags.

We can work on converting various code to using that instead of
raw uint64_t, and then make it a class to get some type-safety.
Problem
We use uint64_t for tlv tags, so it's easy to pass in an integer when a tag is meant.
Change overview
Introduce a named type for tags, so we can start switching to that and eventually get to type-safety.
Testing
No behavior changes.

@msandstedt @saurabhst @jmartinez-silabs @jepenven-silabs @LuDuda Please take a look?


Allow ohm-cmd to generate recipe for ProtoBuiltInRules; useful for bootstrapping.

Thanks, Tony! Looks great. Will merge after you make the little change I requested.

I messed that up. Sorry. I'll open a fresh PR.


Release 2023.06.30 v2

Status
READY

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1242

Relevant Lines:
1311

💛  - Coveralls


Unable to login as admin in IntegrationTest

This might have been addressed in later versions of Rails.  I am using rails 4.2.7.  I have a test class that descends from ActionDispatch::IntegrationTest.  the login method is as follows:
def login_as(user)
  request.env[:clearance].sign_in(user)
end

Here's a snippet of the IntegrationTest
class SlavesAdminTest < ActionDispatch::IntegrationTest
  let(:admin) { create(:admin) }
  before do
    @slave = create(:slave)
    login_as(admin)
  end
  describe 'batch actions' do
       ...  doesn't get this far.  Exception is raised in the login_as method
  end

Using IntegrationTest the request object is nil causing an exception
I have another test that does not descend from IntegrationTest which works fine.  By the time it gets into the login_as method there is a request object and everything works fine.
I tried to figure out when the request object is instantiated when using that test, but it's not obvious and is time consuming to trace through.
Here is a snippet of test code that is working
describe 'Admin::SlavesController' do
  let(:admin) { create(:admin) }
  before do
    @slave = create(:slave)
    login_as(admin)
  end

  it 'renders the slave page' do
    get :index
    assert_response :success
  end

Any assistance would be greatly appreciated and please let me know if you need additional code.
Thanks!

There is some discussion of and alternate solutions to this here https://github.com/thoughtbot/clearance/pull/783
The gist of it is to actually perform the sign in steps from within integration tests.


Remove references to Ansible

Are you sure about that? :smile:

Good catch. Thanks. Removed that, and also "mutt", which I'm not using either.


Improve performance by caching workspaces during the clone operation

I sped up the clone process by having it not create/tear down the workspace for every commit in the process.
It also moves each remote into a separate subfolder in the working directory so there are no conflicts by not removing the workspace.
On my machine, this workspace setup/tear down was adding 600-800ms per commit.
I was now able to clone my repository with ~17,000 commits across 7 branches in right at 3 hours.
I don't have the exact timing from before, but I believe this removed at least 2-4 hours from the process

I was now able to clone my repository with ~17,000 commits across 7 branches in right at 3 hours.

I don't have the exact timing from before, but I believe this removed at least 2-4 hours from the process

This is very nice!
I'm unsure about merging this PR, mostly because of changes to the semantics of the code. In particular, this branch changes WithWorkspace from cleaning up before it returns to not cleaning up. I am not familiar enough with the code anymore to know offhand if this is safe or not. What do you think about renaming the method GetWorkspace, to better reflect what it's doing?
Also, the static fields (particularly _workspaces) seem like they could be a surprise later. Is the TfsHelper object a singleton, or could it be made one? If so, then _workspaces doesn't need to be static.

I honestly only looked at it that day and am not completely familiar with everything that it does, but I can tell you what I remember about what i did.

WithWorkspace doesn't clean up, but the workspaces do get cleaned up when the command tears down by the Janitor.
I made _workspaces static because I needed to share the collection across all TfsRepository or whatever that class was that gets used in the fetch to represent each branch so that it always used the same workspace for that branch. This was based on the assumption that for that branch only one fetch operation would happen at a time. If the fetches were parallelized it could turn into a more sophisticated structure that could handle more than one copy, but making fetches in parallel and re-committing in the same order was bigger than what i was willing to take on.
If i remember correctly, this method was only called from the Fetch code and only affects Fetch operations, which looked to be single threaded and confined to a single operation.
I didn't want to go renaming methods and making massive changes to the structure since I thought it would make seeing what the changes were harder and making the pull request less likely to be accepted. So the pull request can be merged and changed however suits, but I was just submitting it as it was a huge speedup for me.

If this pull request is not merged, then someone familiar with the project should definitely look at making the changes necessary to stop the workspaces being created/torn down for every commit. My TFS server was in the next room and under a very light load. the improvement might be much better for a more remote connection.
I don't have much time over the next few weeks but if no one picks it up or makes any changes, then i'll look at it again in more detail.


Backoffice: Adds warning when creating a loan [invenio-app-ils#952]

depends on https://github.com/inveniosoftware/invenio-app-ils/pull/952
closes #152

Would it make sense to also provide request_start_date as a frontend search filter (since we now have it in the backend)? Like "Least recent requests" to process the requests in FIFO order.

Would it make sense to also provide request_start_date as a frontend search filter (since we now have it in the backend)? Like "Least recent requests" to process the requests in FIFO order.

I think the librarians could make good use of it, so IMHO it makes sense to add it. Thanks!


Hotfix 4.76.1

Bumps spec to 4.76.1
Includes new feature BYO Object Storage SSL Cert.

@adammohammed thank you!


ElementUI 与 vue 2.1.5不兼容

ElementUI version
1.0.6
OS/Browers version
macOS/Chrome 55
Vue version
2.1.5
What is actually happening?
ElementUI 与 vue 2.1.5不兼容
组件渲染报错

https://github.com/ElemeFE/element/issues/1706


feat/allow-overriding-keys

provide an option to not set 0-5 keymaps

I don't really like to add that kind of config, lets rethink how we want the mappings to be customized in #120


The extension doensn't work on the Quizlet

Browser Version
Chrome
Exension Version
1.5.4
Actual behaviour
It looks like the page refresh again and agian but the answers are hiddden

Reproduction steps
No response
Expected behaviour
No response

same problem

same problem

Yes, few days ago there are the same questions in the issues.


Bump chef-gem to 11.18.0.

Build

Build passes.

Seems to work.

Can you mention in the changelog and release notes that this removes the yajl deprecation warnings?

Fixes https://github.com/opscode/chef-server/issues/53

I'm still seeing this on Chef Server 12.3 running on Cent OS 7.


Indeterminate Loader Not Hide

I used this http://iamisti.github.io/mdDataTable/ example
The datable Works but the data is loaded completely and the Loader is not hide

In the file:

https://rawgit.com/iamisti/mdDataTable/master/dist/md-data-table-templates.js

Change
<md-progress-linear md-mode=\"indeterminate\" class=\"loading-indicator\"
To:
<md-progress-linear md-mode=\"determinate\" class=\"loading-indicator\"
The documentation is:

https://material.angularjs.org/latest/demo/progressLinear


Add documentation for CT log

Includes information about embedded SCTs and the log
sharding strategy.
Signed-off-by: Hayden Blauzvern<EMAIL_ADDRESS>
Summary

Ticket Link

Fixes #510
Release Note

Added details about log sharding - Let's create a new log each year, and keep the same signing key (unless there's a compromise at which point we'd freeze the log and rotate the key).

Codecov Report

Merging #514 (aa073dc) into main (718812b) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #514   +/-   ##
=======================================
  Coverage   44.14%   44.14%
=======================================
  Files          16       16
  Lines        1273     1273
=======================================
  Hits          562      562
  Misses        631      631
  Partials       80       80

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 718812b...aa073dc. Read the comment docs.


Automate wiki content from cmdlets built-in help

The goal is to create a script that gets the built-in help from all the cmdlets, and uses its content to populate the wiki.

Done!


solution added for 1996-The Number of Weak Characters in the Game Lee…

Solution added for 1996-The Number of Weak Characters in the Game Leetcode
Problem Link:https://leetcode.com/problems/the-number-of-weak-characters-in-the-game/
Could you please review it @SR-Sunny-Raj

@SR-Sunny-Raj contributing to this repo does not count towards hactoberfest2022


Message when there are no more data decisions

As I user, I want to know that I have made all possible decisions, so that I don't feel confused about it, and know what to do next.
Acceptance criteria: The user is informed that there are no more data decisions to make.

For release 0.2.0, change text to inform the user that they've done all decisions for now, and more to come.


Ken - simCLR model replication relevant files and fix

simCLR model replication relevant files and fix.

I converted to draft so we can add wandb config and run some testings.

Please hold on merging. I will do it tonite after updating some params code.

need to confirm that model is being saved. We will reopen the ticket later if model is not being saved .


[wil] Configure only in release mode.

[X] Changes comply with the maintainer guide
[ ] SHA512s are updated for each updated download
[ ] The "supports" clause reflects platforms that may be fixed by this new version
[ ] Any fixed CI baseline entries are removed from that file.
[ ] Any patches that are no longer applied are deleted from the port's directory.
[X] The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
[X] Only one version is added to each modified port's versions file.

WIL is a header-only library and configuring it in both Release and Debug modes is unnecessary.

Can you please add a hacktoberfest-accepted label?


:memo: Add a documentation badge

Prerequisites

[x] I have read the Contributing guidelines
[x] I have read the Code of conduct and I agree with it

Description
Add a documentation badge in README.md

Codecov Report

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

@@          Coverage Diff          @@
##           master    #54   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           9      9
  Lines          30     30
=====================================
  Hits           30     30

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 0a7bd1f...ce4dd9a. Read the comment docs.


Routing inconsistencies with and without prefix between '' and '/'

Recently I discovered some interesting routing behaviour, so I decided to write some test cases:
import { Elysia } from 'elysia';
import { edenTreaty } from '@elysiajs/eden';

/* test case 1: no prefix with slash */ ✅

const noPrefixWithSlash = new Elysia().get('/', () => ({ data: '/' }));

type NoPrefixWithSlash = typeof noPrefixWithSlash;

const noPrefixWithSlashTreaty = edenTreaty<NoPrefixWithSlash>('');

// Works as intended!

await noPrefixWithSlashTreaty.get();

/* test case 2: prefix with slash */ ❌

const prefixWithSlash = new Elysia({ prefix: '/prefix' }).get('/', () => ({
  data: '/',
}));

type PrefixWithSlash = typeof prefixWithSlash;

const prefixWithSlashTreaty = edenTreaty<PrefixWithSlash>('');

// why is this not mapping to 'prefixWithSlashTreaty.prefix.get()'?

// It does not work the same way as the first test case, where also '/' is used.

await prefixWithSlashTreaty.prefix[''].get();

/* test case 3: no prefix without slash */ ❌

const noPrefixWithoutSlash = new Elysia().get('', () => ({ data: '' }));

type NoPrefixWithoutSlash = typeof noPrefixWithoutSlash;

const noPrefixWithoutSlashTreaty = edenTreaty<NoPrefixWithoutSlash>('');

// why is this not mapping to 'noPrefixWithoutSlashTreaty.get()'? Why is it not callable? (property) "": {}

await noPrefixWithoutSlashTreaty[''].get(); // Property 'get' does not exist on type '{}'.ts(2339)

/* test case 4: prefix without slash */ ✅

const prefixWithoutSlash = new Elysia({ prefix: '/prefix' }).get('', () => ({
  data: '',
}));

type PrefixWithoutSlash = typeof prefixWithoutSlash;

const prefixWithoutSlashTreaty = edenTreaty<PrefixWithoutSlash>('');

// Works as intended!

await prefixWithoutSlashTreaty.prefix.get();

Are test cases 2 and 3 failing intentionally, is this working as intended? I thought these were also possible route and prefix combinations we could use in our Elysia apps with Eden Treaty.

I have the same issue. Some of my routes were missing and I didn't know why. So I read every issue on Eden and thankfully someone had already reported it.


T2 Fitting Won't Work

I do apologise in advance for being so stubborn, @agahkarakuzu and @mathieuboudreau , but I seriously need to get this to work. Attempting to process a freshly merged (time-dimension-concatenated in fsl) batch of five T2-weighted images of a spherical phantom acquired at different TE (4.92, 7.38, 9.84, 12.3, and 14.7, respectively) results in this:
Error in voxel [1,1,1]: Objective function is returning undefined values at initial point. lsqnonlin cannot continue.
Undefined function or variable 'tempFit'.

Error in FitData (line 156)
        if isempty(tempFit), Fit=[]; return; end

Error in qMRLab>FitGo_FitData (line 406)
FitResults = FitData(data,Model,1);

Error in qMRLab>FitGO_Callback (line 388)
FitGo_FitData(hObject, eventdata, handles);

Error in gui_mainfcn (line 95)
        feval(varargin{:});

Error in qMRLab (line 41)
    gui_mainfcn(gui_State, varargin{:});

Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)qMRLab('FitGO_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.

Error in voxel [1,1,1]: Array indices must be positive integers or logical values.
Undefined function or variable 'tempFit'.

Error in FitData (line 156)
        if isempty(tempFit), Fit=[]; return; end

Error in qMRLab>FitGo_FitData (line 406)
FitResults = FitData(data,Model,1);

Error in qMRLab>FitGO_Callback (line 388)
FitGo_FitData(hObject, eventdata, handles);

Error in gui_mainfcn (line 95)
        feval(varargin{:});

Error in qMRLab (line 41)
    gui_mainfcn(gui_State, varargin{:});

Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)qMRLab('FitGO_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.

I used the data and TEs to fit a T2 map, ~180ms for the sample. Which qMRLab version are you using? This was an old bug which was resolved.

I used the data and TEs to fit a T2 map, ~180ms for the sample. Which qMRLab version are you using? This was an old bug which was resolved.

Hmm - it's 2.4.1. Seems to be the current version. I've tested it on two computers.

Hmm - it's 2.4.1. Seems to be the current version.

Can you try using this version and see if it resolves the issue?

Doing that now. By the way, attempting the same in the CLI yields this error:
Reference to non-existent field 'sanityCheck'.

Error in FitData (line 37)
Model.sanityCheck(data);

Can you please give me a more complete information about how are you running into a problem? Are you using a script, if so can you share that script? Or are you using GUI etc.

Can you please give me a more complete information about how are you running into a problem? Are you using a script, if so can you share that script? Or are you using GUI etc.

2.4.1.:  GUI on the first attempt, then tried to do the same the CLI way.
2.4.2. (thought 2.4.1 was current): GUI yields this:
<< i >> Operation has been started:  mono_t2
<< : >> Parallel:  2 workers
<< : >> Granularity:  3
<< : >> Input is split into  6 chunks.
<< - >> Modal windows have been disabled
<< ! >> Temporary results will be saved every 5 minutes.
        + Each data chunk will be saved upon completion.
  0%[>                                                  ]
Solution not found for the voxel [1,1,1]: Objective function is returning undefined values at initial point. lsqnonlin cannot continue.
Solution not found for the voxel [191,65,1]: Objective function is returning undefined values at initial point. lsqnonlin cannot continue.
Solution not found for the voxel [192,65,1]: Objective function is returning undefined values at initial point. lsqnonlin cannot continue.
 17%[========>                                          ]
Solution not found for the voxel [2,1,1]: Objective function is returning undefined values at initial point. lsqnonlin cannot continue.
 33%[=================>                                 ]
Solution not found for the voxel [191,129,1]: Objective function is returning undefined values at initial point. lsqnonlin cannot continue.
Solution not found for the voxel [192,129,1]: Objective function is returning undefined values at initial point. lsqnonlin cannot continue.
Errorenous fit warnings are now silenced for the chunk 5.
Solution not found for the voxel [1,33,1]: Objective function is returning undefined values at initial point. lsqnonlin cannot continue.
Solution not found for the voxel [191,33,1]: Objective function is returning undefined values at initial point. lsqnonlin cannot continue.
 50%[=========================>                         ]
Solution not found for the voxel [191,161,1]: Objective function is returning undefined values at initial point. lsqnonlin cannot continue.
Solution not found for the voxel [192,161,1]: Objective function is returning undefined values at initial point. lsqnonlin cannot continue.
 67%[=================================>                 ]
Solution not found for the voxel [191,97,1]: Objective function is returning undefined values at initial point. lsqnonlin cannot continue.
Solution not found for the voxel [192,97,1]: Objective function is returning undefined values at initial point. lsqnonlin cannot continue.
100%[===================================================]
Elapsed time is 86.741707 seconds.

Was it the same for you?

So using GUI, you got a T2 map. Those warnings are normal, it is using multicores and informing you that there are not solution for some voxels (background).
If you have no further issues I am closing the issue.

So using GUI, you got a T2 map. Those warnings are normal, it is using multicores and informing you that there are not solution for some voxels (background).
If you have no further issues I am closing the issue.

...using GUI with the version you supplied - which is the true current one, I suppose?

...yes

...yes

Got it! I'll now attempt to do the B1+ mapping I referenced in another issue, and will report on that afterwards.


[BUG] Opensearch-dashboards Kerberos issue

I configured the kerberos as described in the documentation and the access to the nodes works as it should. But, it doesn't work for opensearch-dashboards. If I specify in opensearch-dashboards.yml the line:
opensearch_security.auth.type: "kerberos"
then the cluster crashes.
opensearch-dashboards | {"type": "log","@timestamp": "2022-02-03T12:34:14Z", "tags":["fatal", "root"], "pid":1, "message": "Error: Unsupported authentication type: kerberos\n at getAuthenticationHandler (/usr/share/opensearch-dashboards/plugins/securityDashboards/server/auth/auth_handler_factory. ts:75:13)\n at SecurityPlugin.setup (/usr/share/opensearch-dashboards/plugins/securityDashboards/server/plugin.ts:110:39)"}
opensearch-dashboards | {"type":"log","@timestamp":"2022-02-03T12:34:14Z","tags":["info","plugins-system"],"pid":1,"message":"Stopping all plugins."}
opensearch-dashboards |
opensearch-dashboards | FATAL Error: Unsupported authentication type: kerberos
opensearch-dashboards |
opensearch-dashboards exited with code 1
On the other hand, if I delete this line, I get this error from dashboards:
opensearch-node2 | [2022-02-03T12:43:21,465][WARN ][c.a.d.a.h.k.HTTPSpnegoAuthenticator] [opensearch-node2] No 'Negotiate Authorization' header, send 401 and 'WWW-Authenticate Negotiate'
opensearch-dashboards | {"type":"log","@timestamp":"2022-02-03T12:43:21Z","tags":["error","opensearch","data"],"pid":1,"message":"[ResponseError]: Response Error"}
And dashboards goes down.
Does opensearch-dashboards support kerberos and what additional settings need to be made?
config.yml
_meta:
type: "config"
config_version: 2
config:
dynamic:
http:
anonymous_auth_enabled: false
authc:
internal_auth:
order: 1
description: "HTTP basic authentication using the internal user database"
http_enabled: true
transport_enabled: true
http_authenticator:
type: basic
challenge: false
authentication_backend:
type: internal
ldap_auth:
order: 2
description: "Authenticate using LDAP"
http_enabled: false
transport_enabled: false
http_authenticator:
type: basic
challenge: false
authentication_backend:
type: ldap
config:
pemtrustedcas_filepath: /usr/share/opensearch/config/ca.pem
enable_ssl: true
enable_start_tls: false
enable_ssl_client_auth: false
verify_hostnames: false
hosts:
- x.x.x.x:636
bind_dn<EMAIL_ADDRESS>password: password
userbase: cn=Users,dc=domain,dc=ad
usersearch: (cn={0})
username_attribute: cn
kerberos_auth_domain:
http_enabled: true
order: 0
http_authenticator:
type: kerberos
challenge: true
config:
krb_debug: true
strip_realm_from_principal: true
authentication_backend:
type: noop
authz:
  ldap_roles:
    description: "Authorize using LDAP"
    http_enabled: true
    transport_enabled: true
    authorization_backend:
      type: ldap
      config:
        pemtrustedcas_filepath: /usr/share/opensearch/config/ca.pem
        enable_ssl: true
        enable_start_tls: false
        enable_ssl_client_auth: false
        verify_hostnames: false
        hosts:
        - x.x.x.x:636
        bind_dn<EMAIL_ADDRESS>        password: password
        userbase: cn=Users,dc=domain,dc=ad
        usersearch: (cn={0})
        username_attribute: cn
        skip_users:
          - admin
          - kibanaserver
        rolebase: ou=Groups,dc=domain,dc=ad
        rolesearch: (Member={0})
        userroleattribute: null
        userrolename: disabled
        rolename: cn
        resolve_nested_roles: true

opensearch-dashboards.yml
opensearch.ssl.verificationMode: certificate
server.host: <IP_ADDRESS>
opensearch.username: "kibanaserver"
opensearch.password: "kibanaserver"
opensearch.requestHeadersWhitelist: [ authorization,securitytenant ]
server.ssl.enabled: true
server.ssl.certificate: /usr/share/opensearch-dashboards/config/client.pem
server.ssl.key: /usr/share/opensearch-dashboards/config/client-key.pem
opensearch.ssl.certificateAuthorities: [ "/usr/share/opensearch-dashboards/config/root-ca.pem"]
opensearch_security.multitenancy.enabled: true
opensearch_security.multitenancy.tenants.preferred: ["Private", "Global"]
opensearch_security.readonly_mode.roles: ["kibana_read_only"]
opensearch_security.cookie.secure: true
opensearch.yml
plugins.security.ssl.transport.pemcert_filepath: node1.pem
plugins.security.ssl.transport.pemkey_filepath: node1-key.pem
plugins.security.ssl.transport.pemtrustedcas_filepath: root-ca.pem
plugins.security.ssl.transport.enforce_hostname_verification: false
plugins.security.ssl.http.enabled: true
plugins.security.ssl.http.pemcert_filepath: node1.pem
plugins.security.ssl.http.pemkey_filepath: node1-key.pem
plugins.security.ssl.http.pemtrustedcas_filepath: root-ca.pem
plugins.security.allow_default_init_securityindex: true
plugins.security.authcz.admin_dn:

'CN=ADMIN,OU=UNIT,O=ORG,L=TORONTO,ST=ONTARIO,C=CA'
plugins.security.nodes_dn:
'CN=node1.example.com,OU=UNIT,O=ORG,L=TORONTO,ST=ONTARIO,C=CA'
'CN=node2.example.com,OU=UNIT,O=ORG,L=TORONTO,ST=ONTARIO,C=CA'
plugins.security.audit.type: internal_opensearch
plugins.security.enable_snapshot_restore_privilege: true
plugins.security.check_snapshot_restore_write_privileges: true
plugins.security.restapi.roles_enabled: ["all_access", "security_rest_api_access"]
cluster.routing.allocation.disk.threshold_enabled: false
opendistro_security.audit.config.disabled_rest_categories: NONE
opendistro_security.audit.config.disabled_transport_categories: NONE
plugins.security.kerberos.krb5_filepath: /etc/krb5.conf
plugins.security.kerberos.acceptor_keytab_filepath: /usr/share/opensearch/config/opensearch-realm.keytab
plugins.security.kerberos.acceptor_principal<EMAIL_ADDRESS>

I think this referring to what is outlined here: https://opensearch.org/docs/latest/security-plugin/configuration/configuration/#kerberos

I think this referring to what is outlined here: https://opensearch.org/docs/latest/security-plugin/configuration/configuration/#kerberos

Yes, but it's only about opensearch and not a word about dashboards.

@alexbekk Ah. Good catch.
@Naarcha-AWS thoughts?

@stockholmux: Does Dashboards require a separate security configuration for kerberos? Correct me if I'm wrong, but any auth we support in OpenSearch should work in Dashboards.

@stockholmux: Does Dashboards require a separate security configuration for kerberos? Correct me if I'm wrong, but any auth we support in OpenSearch should work in Dashboards.

Why then can I authenticate to opensearch while dashboards crash?
opensearch-node2 | [2022-02-03T12:43:21,465][WARN ][c.a.d.a.h.k.HTTPSpnegoAuthenticator] [opensearch-node2] No 'Negotiate Authorization' header, send 401 and 'WWW-Authenticate Negotiate'
opensearch-dashboards | {"type":"log","@timestamp":"2022-02-03T12:43:21Z","tags":["error","opensearch","data"],"pid":1,"message":"[ResponseError]: Response Error"}

@alexbekk: Have you tried stopping the cluster and removing your current volumes?

@Naarcha-AWS yep, docker-compose down -v
docker-compose up

@alexbekk: After consulting some developers of the security plugin, it seems like it might be an issue with either the Kerberos replay cache or your negotiate token within Kerberos. Namely, in order for Dashboards to work, you need to disable to Kerberos replay cache. Each auth request requires a unique Keberos ticket. Dashboards will reuse tokens from requests.
To disable the replay cache, in your Kerberos node, add this line to jvm.options,
-Dsun.security.krb5.rcache=none.
After that's complete, try seeing if you can access OpenSearch using curl with the --negotiate option.
curl -XGET --insecure --negotiate -u 'credentials' 'host'
Let me know if this helps.

@Naarcha-AWS We tried this, but it doesn't work. Are there any other updates on this issue?

Command: curl -XGET --insecure --negotiate -u : http://opensearch.adrealm.io:9200
Result before kinit:
{"error":{"header":{"WWW-Authenticate":"Negotiate"}}}
Result after kinit:
{
"name" : "opensearch-node1",
"cluster_name" : "opensearch-cluster",
"cluster_uuid" : "INYQ7r-ZRV6ZLXfrl2WCaQ",
"version" : {
"distribution" : "opensearch",
"number" : "1.2.4",
"build_type" : "tar",
"build_hash" : "e505b10357c03ae8d26d675172402f2f2144ef0f",
"build_date" : "2022-01-14T03:38:06.881862Z",
"build_snapshot" : false,
"lucene_version" : "8.10.1",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "The OpenSearch Project: https://opensearch.org/"
}
But after curl -XGET --insecure --negotiate -u : http://beketov-opensearch.adrealm.io:5601
result: OpenSearch Dashboards server is not ready yet
stdout:
opensearch-node2         | [2022-02-18T13:10:09,922][WARN ][c.a.d.a.h.k.HTTPSpnegoAuthenticator] [opensearch-node2] No 'Negotiate Authorization' header, send 401 and 'WWW-Authenticate Negotiate'
opensearch-dashboards    | {"type":"log","@timestamp":"2022-02-18T13:10:09Z","tags":["error","opensearch","data"],"pid":1,"message":"[ResponseError]: Response Error"}

@alexbekk and @melokk97: I've looked into the issue further and it turns out that Kerberos authentication was missed for the Dashboards security plugin.
To get it implemented, I've created this issue in the security plugin repo: https://github.com/opensearch-project/security-dashboards-plugin/issues/907
For the docs, I'll add a note to the Kerberos section explaining the lack of support.


Fixed #27479 -- Fixed GDALClose prototype.

https://code.djangoproject.com/ticket/27479

Hello @claudep , this bug was introduced in a GDAL 2.0 support feature  for Django >= 1.9.
I understand that this is not a major bug, but it is a bit annoying as it's too noisy for tests. What's more, the fix is simple and fix.
Is that possible to backport this fix to those supported version ? :)

Done  in eff483f for the 1.10.x branch. We will not backport earlier, though.


in Entity vs ref Entity in Query() overloads

Hi, I managed to shoot myself in the foot earlier and it took me a little while to work out what I had done wrong.
Bad
            var qd = QueryDescription().WithAll<MyComponent>();
            World.Query(qd, (ref Entity e, ref MyComponent c) =>
            {
                // Do something
            });

This code crashes inside Arch with an access violation.
Good
            var qd = QueryDescription().WithAll<MyComponent>();
            World.Query(qd, (in Entity e, ref MyComponent c) =>
            {
                // Do something
            });

This code works.
This issue is that in the 'bad' example, the lambda is a ForEach and so Entity is actually treated as a component type, and naturally there are no such components.
In the 'good' example, the lambda is a ForEachWithEntity so it works as expected. But the only difference is in Entity vs ref Entity. I wonder if something could be done to catch the problem case?

Hey there! :)
Thanks for using Arch btw!
Well this one is actually a bit of a code smell. There two reasons for this design:

Entity should never be modified by the User, therefore it needs to be In. Otherwise, the user may modify it and that causes undefined behavior.
Lambdas and delegates are very restrictive. Unfortunately, they must be predefined/hardcoded and therefore do not allow any variety of their RefKinds (in, ref, out...).

So the API can not be "fixed" to make perfect sense, since the way of how lambdas work. However, we could actually "catch" that case by using Debug.Asserts to notify the user that what he's doing is wrong :)
To get rid of that problem, i suggest to use https://github.com/genaray/Arch.Extended and its source generator. This way you are able to define your queries in a more detailed manner:
[Query]
[All<....>, Any<...>, None<...>]
public void MoveEntities([Data] float time, in Entity entity, ref Position position, in Velocity vel){  // Entity can also be removed or be placed wherever you want
   ...
}

Thanks!


refactor(operators): ensure _subscribe is being called where possible

Many operators with inner subscriptions were calling subscribe when they could
have been calling _subscribe, thus avoiding an instanceof Subscriber check.

makes sure _subscribe is being called where possible
cleans up inner subscription handling in a few places
seperates switchAll tests from switchLatest tests

closes #290

cc @trxcllnt

@blesh the only reason I had to call public subscribe when I did flatMap is because we're subscribing to Observables that might return something other than void from _subscribe. Is this PR worth moving to the Observable start API (which guarantees we can call _subscribe safely)?

Is this PR worth moving to the Observable start API (which guarantees we can call _subscribe safely)?

I'm going to say "not right now" only because the consensus I've gotten from others in the Rx community has been mixed. There haven't been any really strong arguments for the move to the start API unless we plan on supporting backpressure, which was nixed a long time ago.
For now, this is a small change, that only benefitted in small ways.
Hopefully in the future we can test out the start API in ernest and show perf gains and solid ergonomics as a compelling argument.


When flow fails to start, sometimes you get an empty error message

My flow was failing to start with this error:
/app/react/node_modules/flow-bin/flow-linux64-v0.33.0/flow: error while loading shared libraries: libelf.so.1: cannot open shared object file: No such file or directory
Unfortunately because it was on STDERR, and the checkItWreckIt function is creating an error object using STDOUT, I was getting a webpack error of ERROR in (i.e. error in empty string).
Perhaps the code could be altered to pass both STDOUT and STDERR ?

Hey @martynsmith!
Yes, I guess that's exactly it!
Would you be willing to submit a PR to fix it?
Thank you!

This problem still exists and causes problems with webpack dev server and webpack-serve


Abnormal value

Is it possible to limit abnormal values?  Because 10000w at 230v is 43A and that is impossible.

get reed of the led output. it is using delay function that prevents esp to count pulses.
we need to find a way to implement this using timers for the led to blink.

I think it would help, if we could define how long a pulse usually is.
From what I can see online most meters pulse width is 38ms
So if we could tell esphome that don't count a pulse, if it's shorter than 25ms or longer than 45ms, then I think we wouldn't get those crazy readings.
Source:
https://github.com/Wim3d/Main_power_meter/blob/master/Main_power_meter.ino

I don't think it should be very difficult to filter out those abnormal values, but the problem is that everyone's situation can be slightly different, which makes it difficult to debug things. I've been running this project at home for over 1 year now and I've never had extremely high values.
Maybe using the new option "internal_filter_mode" with PULSE can also solve some problems 🤔

i removed LED and switch to pulse mode with 3ms filter. One month without false measurements.


Add Jainish-shah

Thx @Panquesito7

Thanks for your contribution 🚀

Thx @Panquesito7

Glad I was able to help. 😄


IndexError: index 0 is out of bounds for axis 0 with size 0

Hi, I encountered an issue when the video duration is shorter than the text duration. Specifically, an error occurs as follows
stable_whisper/alignment.py", line 547, in align
    [(np.flatnonzero(word_lens >= i)[0] + 1) for i in split_indices_by_char]
                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: index 0 is out of bounds for axis 0 with size 0

To address this, I made a temporary modification to the code on line 547::
[(np.flatnonzero(word_lens >= i)[0] + 1) for i in split_indices_by_char if np.flatnonzero(word_lens >= i).size > 0]

This change has resolved the issue for now (at least in my case). However, I am wondering if you have a more permanent or elegant solution.

That line is from an older version. It should be line 543 on the latest commit. This might be already fixed on latest version. So try to update stable-ts and see if you can replicate the issue.
If the issue persists, there is bug with values in split_indices_by_char. So in either case, the fix shouldn't be made on that line.

Hi, thank you for the fast response and suggestion. I have already upgraded the model to the latest commit but the issue still persists.
I will reinvestigate to find the cause


How to avoid re-rendering chart with onCurrentIndexChange?

Maybe more react general issue, but after many attempts at memoizing the line chart to avoid re-rendering it when updating state with the onCurrentIndexChange, I am stumped. The index point holds great interest for graphing and to avoid re-rendering the line chart with thousands of data points is crucial. Any suggestions?
function ElevationChart() {
  const { elevationIndex, setElevationIndex, height } = useContext(AppContext);

  const onCurrentIndexChange = useCallback((index: number) => {
    console.log(`setting index ${index}`);
    // Causes re-render of line chart
    setElevationIndex(index);
  }, []);

  console.log("Re rendered elevation");
  return (
    <View style={styles.container}>
      <LineChart.Provider
        data={chartData}
        onCurrentIndexChange={onCurrentIndexChange}
        yRange={{
          max: 1000,
          min: 0,
        }}
      >
        <LineChart
          width={Dimensions.get("screen").width}
          height={height * 0.22}
        >
          <LineChart.Path color="red">
            <LineChart.Gradient />
          </LineChart.Path>

          <LineChart.CursorCrosshair>
            <LineChart.Tooltip
              textStyle={{
                backgroundColor: "black",
                borderRadius: 2,
                color: "white",
                fontSize: 10,
                padding: 2,
                marginTop: 10,
              }}
              textProps={{
                format: ({ value }) => {
                  "worklet";
                  return `Elevation: ${value}`;
                },
              }}
              position="bottom"
            />
          </LineChart.CursorCrosshair>
        </LineChart>
      </LineChart.Provider>
    </View>
  );
}

const MemoizedElevationChart = React.memo(ElevationChart);
export default MemoizedElevationChart;

Solved by moving all 'context' to zustand stores.... Too many components sharing the same context were getting re-rendered.


TT-5408 - SDK versions bump, tatum url fix

Task linked: TT-5408 [KMS] - StoreLog support for ETH and Sepolia


Clarification in dynamic Kubelet config doc

Small clarification regarding pasting URLs into zsh.
/milestone 1.11
/assign @mistyhacks

Thanks!
/approve
/lgtm


Add django-admin command synctrack to the package

Purpose
We need to have the command to sync with Track in the package.
Furter Info
Related ticket: #1021

Coverage remained the same at 58.386% when pulling 16891143e34d595589b1aaf8da52d0eb2e546a61 on jefmoura:add-synctrack-package into 56cbf79a550832d8d1ee2cf2f82d08037b257651 on toladata:dev-v2.


Adding border to text box

Is your feature request related to a problem? Please describe.
Yes , this would enhance the visibility of the text box
Describe the solution you'd like
This can be done by adding a border to the text boxes.
Additional context
before :

after:

Are you working on this? (Yes/No)
Yes, I am working on this issue. I will send a pr soon

Is this issue still open, can I work on it.

I have already opened a pull request

@Shilpashreemr can I work on this issue if it is still open ?


declaration of 'unit' in radialBar graph

I am a huge fan of your apexchart-card and I want to switch all my old standard gauges and graphs over to your implementation.
So far I succeeded with most of the cards but I am struggling with building a gauge for anything other than percentages.
For percentages they look perfectly fine:

But when it comes to gauges for temperatures they are not so handy because of the forced 'percentage sign' after the value.
I found out, that you can change the unit in the radialBar apex options:
dataLabels -> values -> formatter
But it only accepts javascript which is quite difficult to add there (at least for me)
Maybe you can implement the 'unit' keyword in the yaml so we can specify the unit in there.
This would make the gauges so much more useful :-)
Thanks in advance and keep up the good work!

The thing is that radialBar in ApexCharts only supports percentages unfortunately. :(
There's nothing I can do about this.

Regarding the documentation the function under
dataLabels -> values -> formatter
just adds the percentage symbol to the value:
formatter: function (val) {return val + '%'};
So it should be possible to swap the '%' to any other string you like. Or am I getting it wrong?
plotOptions:{       radialBar: {           inverseOrder: false,           startAngle: 0,           endAngle: 360,           offsetX: 0,           offsetY: 0,           hollow: {               margin: 5,               size: '50%',               background: 'transparent',               image: undefined,               imageWidth: 150,               imageHeight: 150,               imageOffsetX: 0,               imageOffsetY: 0,               imageClipped: true,               position: 'front',               dropShadow: {                 enabled: false,                 top: 0,                 left: 0,                 blur: 3,                 opacity: 0.5               }           },           track: {               show: true,               startAngle: undefined,               endAngle: undefined,               background: '#f2f2f2',               strokeWidth: '97%',               opacity: 1,               margin: 5,                dropShadow: {                   enabled: false,                   top: 0,                   left: 0,                   blur: 3,                   opacity: 0.5               }           },           dataLabels: {               show: true,               name: {                   show: true,                   fontSize: '16px',                   fontFamily: undefined,                   fontWeight: 600,                   color: undefined,                   offsetY: -10                 },                 value: {                   show: true,                   fontSize: '14px',                   fontFamily: undefined,                   fontWeight: 400,                   color: undefined,                   offsetY: 16,                   formatter: function (val) {                     return val + '%'                   }                 },                 total: {                   show: false,                   label: 'Total',                   color: '#373d3f',                   fontSize: '16px',                   fontFamily: undefined,                   fontWeight: 600,                   formatter: function (w) {                     return w.globals.seriesTotals.reduce((a, b) => {                       return a + b                     }, 0) / w.globals.series.length + '%'                   }                 }           }       }   }

No, because I need to retrieve it from the config and I don't know where to pick that from because I don't know from which serie it comes.
Also the value I retrieve is the value already converted to percentages and this is not what you will want to display.
I already did some tests, even using undocumented stuff, but it's not working.

I get your point now. Thought it would be possible for single series radialBars to swap the percentage to another unit and convert the 'x' back to it's original value using the 'min' and 'max' attributes.
But I now see why this can't be done so easily as I thought
Nonetheless, I highly appreciate your work! :-)

Thanks 🙂
I've opened a full feature request, let's see if it gets through at some point:
https://github.com/apexcharts/apexcharts.js/issues/2216

@Hakzel can you share you code for making these guages with apexcharts?


Fixed URL using hard-quote technique.

Deployment failed so closing. Updated code available on main branch


refactor clusterset validating webhook

Refactor the webhooks:

rename the package and file names
validating by resources

/test e2e

/retest

/test e2e

/assign @ldpliu @zhiweiyin318

@ldpliu  please check if there is case lost and ut or e2e cover all cases. thanks

The code logic looks good to me.
I have add more e2e test in pr: https://github.com/stolostron/multicloud-operators-foundation/pull/563

/lgtm
/approve


Bug: AddListenerAstTransform in 1.0.2+ breaks remapping

I'm not sure why, but the AddListenerAstTransform breaks remapping, preventing mods from running outside of the dev environment.
Rebuilding APLP without this transform (and obviously replacing any usages of modBus/forgeBus.addListener() with EBS) fixes the issue.
On a related note, should it really be a global transform? While it's more flexible to be able to add listeners anywhere, it's much slower than if it were only possible inside a @Mojo or with a different approach.

Fixed in v1.1.0


User pages must be built from master branch

Hi all! I'm super excited for this! I'm writing a quick tutorial on how to get started with fastpages in spanish. As part of that I wanted to start from zero and I created a new github account and used the template to create the blog repo.
However, I cannot seem to change the Source from master to the gh-pages branch. The gh-pages branch is being built and published correctly, I just can't tell GitHub Pages to deploy from that branch instead of master and I get this message:

The repo is paco-el-chato/paco-el-chato.github.io. I didn't have any problems doing this on my personal blog but (I think) that's because it was not deployed at chekos.github.io and it was not a user page.
Does anyone know how I could fix this? or if it's even possible?
Thanks in advance!

@chekos fastpages currently doesn't support user pages, only project pages.  So you must name your repo something other than paco-el-chato.github.io, for example name your repo blog.
Hope that helps.  closing this issue for now, happy to keep discussing


Address JWT security in docs, related to postgrest issue #842

As discussed in https://github.com/begriffs/postgrest/issues/842

Thanks for this. I wasn't even aware of alg=none and yeah we don't accept that!


Use the Region preference along with Language

Please ensure you have given all the following requested information in your report.
Please select the affected platforms

[X] Android Studio
[ ] IntelliJ IDEA

Please select the translator to use

[X] Google
[ ] Google (API)
[ ] Microsoft
[ ] Baidu
[ ] Youdao
[ ] Ali

Version of Plugin and IDE

Plugin Version: 2.9.0
IDE Version: Android Studio Dolphin | 2021.3.1 Patch 1

Issue details
My project is configured to use region along with language. We already have most strings translated and want only the delta to be translated via the tool. Which the tool already does. But it fails to account for the region suffix in folder structure and tries to translate all strings and create new folders with region excluded.
It will be really if the tool respected region as translation in one region for the same language may differ in another one. or at least have an option to select region while translating

Hi, thanks for the feedback!
I first considered regions, but that would be complicated and the languages to consider would be an order of magnitude more complex. Do you have any thoughts on this? Welcome to provide comments or PR!


--default-value negative number

It's currently impossible to give a negative number for the default value on MS Window. I tried with cmd and powershell. -v -1000 is always interpreted as a new "-10" flag. I tried with quotes, slashes, double dashes like bash, backquotes, etc. Nothing works.
Is there a trick? Or it was simply never tested and it doesn't work?

Okay, I think it's fixed now with this commit.

Does it make sense to perhaps switch to a standardized command line parsing library?
This library http://tclap.sourceforge.net is pure header so no special linking

No.  The command line is custom for a reason.

Just to put it there, the fix may need a new compile in Windows. The usual
release doesn't have it.
On Wed, Aug 3, 2016, 17:26 Nick Tustison<EMAIL_ADDRESS>wrote:

No. The command line is custom for a reason.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/stnava/ANTs/issues/344#issuecomment-237379420, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AIqafYoOL1FJXoCUz6L9aQlqUeJtQacNks5qcQd8gaJpZM4Jb5Rq
.


compiling error on x86

recently I re-install my laptop(x86_64), following readme to compile the cuda-on-cl, but get the error like this:   http://pastebin.ubuntu.com/23475742/.
The same situation in Docker, I am not sure why.

Good point!  Thanks for the heads-up.  Should be working now?  (You'll need to do git submodule update --init, after doing git pull)

oh wiat, still something missing.  checking...

Should be mildly healthier now?

Big heads-up though.  Curently I'm hard at work on a massive overhaul ,in branch runtime-compile, https://github.com/hughperkins/cuda-on-cl/compare/runtime-compile?expand=1  It's mildly broken, but I can compile/run cuda_sample.cu ok.  I think that since you're working on trying to get basic things working for now, might be good to try this branch?
quick heads-up: the main changes in this branch are:

major refactorization, you probably wont notice this too much
generation of device-side opencl from device-side IR happens at runtime now => you wil lalmost certainly notice this change.  Whether this makes things work better or worse for you is uncertain to me at this time.

after checking out  runtime-compile branch, re-compile again, get another error http://pastebin.ubuntu.com/23478287/

Hmmm, builds ok for me.  And I tried in docker earlier too. And worked in docker too.  Are you sure you're trying 'runtime-compile' branch?  If I switch to runtime-compile branch, there is no 'ConstantDumper.cpp' file at all in fact:
(env3cl) ubuntu@peach:~/git/cuda-on-cl/build$ git checkout runtime-compile
Already on 'runtime-compile'
Your branch is up-to-date with 'hugh/runtime-compile'.
(env3cl) ubuntu@peach:~/git/cuda-on-cl/build$ ls ../src/Constant*
ls: cannot access '../src/Constant*': No such file or directory
(env3cl) ubuntu@peach:~/git/cuda-on-cl/build$ git checkout instruction-own-class
Switched to branch 'instruction-own-class'
Your branch is up-to-date with 'hugh/instruction-own-class'.
(env3cl) ubuntu@peach:~/git/cuda-on-cl/build$ ls ../src/Constant*../src/ConstantDumper.cpp  ../src/ConstantDumper.h

Can you do:
git status
git log -n 3

... and paste the results?

Thanks hughperkins ,  git clone the whole repo again  and checkout runtime-compile  branch, it works now. Recently the github is very very slow in my side, probably it broke somewhere.
BTW, comment out  -device.cl in  cocl.Makefile?

Yes, opencl generation is done at runtime now, from hostside_opencl_funcs.cpp
Ir-to-opencl is still available, but just for debugging/testing really.
On 15 November 2016 03:35:41 GMT+00:00, alephman<EMAIL_ADDRESS>wrote:

Thanks hughperkins ,  git clone the whole repo again  and checkout
runtime-compile  branch, it works now. Recently the github is very very
slow in my side, probably it broke somewhere.
BTW, comment out  -device.cl in  cocl.Makefile?
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/hughperkins/cuda-on-cl/issues/7#issuecomment-260538389

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.

(oh, hmmm, note my observation "it works ok from docker" was actually running the clone, inside the docker, from master branch, hence ignore that comment :-) )

(but note that the technology exists now to build other branches :-) https://github.com/hughperkins/cuda-on-cl/blob/runtime-compile/docker/Dockerfile#L3 )

Note that massive overhaul/merge-to-master might mean that some things that were broken for work better/differently now?

this seems relally old, and non-specific. Lets close it. Please open new issues for any outstanding issues that havent been addressed here.


Check in log_func_exec

Codecov Report

Merging #23 into master will decrease coverage by 1.31%.
The diff coverage is 98.24%.

@@            Coverage Diff             @@
##           master      #23      +/-   ##
==========================================
- Coverage   99.25%   97.93%   -1.32%
==========================================
  Files          17       17
  Lines        1472     1500      +28
==========================================
+ Hits         1461     1469       +8
- Misses         11       31      +20

Impacted Files
Coverage Δ

src/viztracer/tracer.py
99.53% <87.50%> (-0.47%)
:arrow_down:

src/viztracer/code_monkey.py
100.00% <100.00%> (ø)

src/viztracer/main.py
96.09% <100.00%> (-1.51%)
:arrow_down:

src/viztracer/viztracer.py
94.49% <0.00%> (-5.51%)
:arrow_down:

src/viztracer/report_builder.py
95.31% <0.00%> (-4.69%)
:arrow_down:

src/viztracer/simulator.py
96.77% <0.00%> (-3.23%)
:arrow_down:

src/viztracer/flamegraph.py
97.59% <0.00%> (-2.41%)
:arrow_down:

src/viztracer/prog_snapshot.py
98.86% <0.00%> (-0.57%)
: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 bcdb223...57ad202. Read the comment docs.


Doc : added GIF of homepage

added GIF of homepage (hosted on GIPHY) in README file as per issue #17

@DebasishSahoo10 Unfortunely the pull request was closed too early. What is the main contribution to the project?
We will happy to proof your request.


test: Overlay

What kind of change does this PR introduce?
Tests
Does this PR introduce a breaking change?
No
#271

Codecov Report

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

@@           Coverage Diff           @@
##           master     #292   +/-   ##
=======================================
  Coverage   67.18%   67.18%
=======================================
  Files          85       85
  Lines         649      649
  Branches      149      149
=======================================
  Hits          436      436
  Misses        213      213

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 5a65f9c...8d8d8fd. Read the comment docs.


Autoplay just plays one time - v10.3.0

Check that this is really a bug

[X] I confirm

Reproduction link
https://codepen.io/zzseba78-the-reactor/pen/BavYLpQ
Bug description
Autplay plays one time and then stops if disableOnInteraction: true ( or not set, defaults to true ) and no interaction on the slider at all. Works as expected if disableOnInteraction: false
Expected Behavior
Autoplay plays as always.
Actual Behavior
Play once and then stops. Seems that same case as this one: https://github.com/nolimits4web/swiper/issues/7059
Swiper version
10.3.0
Platform/Target and Browser Versions
macOs, Chrome, Firefox, Safari ( all latest )
Validations

[X] Follow our Code of Conduct
[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
[X] Make sure this is a Swiper issue and not a framework-specific issue

Would you like to open a PR for this bug?

[ ] I'm willing to open a PR

I guess i figured out the issue. Can i know where does the code for the slider exists in the codebase

Just experienced the same. This also occurs with pauseMouseOnEnter for me.
https://codesandbox.io/s/swiper-autoplay-forked-phffl2?file=/index.html:2098-2132

It happens due to the following changes in the core:

core: fix loopFix in loop and cssMode (8180a52), closes https://github.com/nolimits4web/Swiper/issues/6919

The previous implementation was:
return swiper.slideTo(swiper.activeIndex + increment, speed, runCallbacks, internal);
It has been modified to:
return swiper.slideTo(swiper.activeIndex + increment);
Consequently, the function no longer passes internal as true, causing it to halt execution at that point. here
Additionally, setting cssMode to true helped me to fix it

same problem with same 10.3.0

I can confirm the autoplay issue using swiper 10.3.0 (importing swiper as module). Slider swipes one time and then freezes. In my case it is not working even when setting disableOnInteraction: false
Until this is fixed in the package we can set cssMode: true like @kruboy14 suggested - thanks kruboy!


Localization (pt, es, en)

The client should be available in Portuguese, English and Spanish.

Closing because of inactivity, reopen if needed.


Nodejs service to create new and save changes on existing remote text file

AS A Developer
I WANT TO create new and/or change existing text files based on my given input
SO THAT I wouldn't have fixed services for specific functionalities

See https://github.com/buerokratt/DataMapper/issues/1 for to create Nodejs-based services

Acceptance Criteria

[ ] POST REST endpoint accepting file path and file content as parameters
[ ] Files can only be added to existing folders
[ ] Return error message if exists
[ ] Use #45 to apply appropriate file type changes on Rasa files

Pull request https://github.com/buerokratt/Training-Module/pull/155


spidermonkey_128: init at 128.1.0

Trying on ofborg...
Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] 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/)
24.11 Release Notes (or backporting 23.11 and 24.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.

To not cause merge conflicts with the mozjs102 removal, will address the by-name check later

@ofborg build spidermonkey_128
@ofborg build gjs
@ofborg build gjs.passthru.tests

@ofborg build spidermonkey_128


Cursor is not visible while Gruvbox light

I use gruvbox in neovim. Problem appears in light version.
Expected behavior (Screenshot is from alacritty)

What is happening(Screenshot from st)

Theme is morhetz/gruvbox
set termguicolors is on

Did you set these colors in Xresources or in the source code?
I just activated gruvbox light colors from Xresources and I don't get this problem in neovim. Mind showing exactly what your settings/changes are?

Did you set these colors in Xresources or in the source code?
I just activated gruvbox light colors from Xresources and I don't get this problem in neovim. Mind showing exactly what your settings/changes are?

I just changed Xresources to gruvbox light and probrem disappeared. Yet I want to use dark scheme for the terminal itself. In Vim I change  colorscheme to light on daylight, dark scheme otherwise. Do I need to change Xresources for this? I don't understand how this works. I basically use morhetz/gruvbox plugin. Doesn't it overwrite all those values?

So you want a dark terminal but a light vim? Your problem is probably that the vim colorscheme doesn't set a cursor color for each them. I guess you can add that manually if you'd like (I suppose it's possible, but I don't know about or use vim colorschemes).

I tried xterm and urxvt and they do the same thing as st here - the cursor color stays the same across ":set bg=light/dark".
The reason Alacritty behaves differently seems to be it automatically reverses cursor color, rather than use a set one.
Here's a StackExchange question with answers on the same issue.
A solution would be to set the defaultbg, defaultcs etc to their their own indexes after 255 in st's config.h:
static const char *colorname[] = {
    [256] = "#282828",
    [258] = "#ebdbb2",
};
unsigned int defaultbg = 256;
static unsigned int defaultcs = 258;

// If you want to set cursor color with Xresources, you need this:
ResourcePref resources[] = {
// Luke removed the cursorColor line earlier today
// If you want to set the cursor color with Xresources, put it back
    { "cursorColor",  STRING,  &colorname[258] },
};

... and put this in .vimrc:
	" set st cursor and background to contrasting colors on start
	silent !echo -ne "\033]4;258;\#3c3836\x7\033]4;256;\#fbf1c7\x7"
	" reset cursor and background  when vim exits
	autocmd VimLeave * silent !echo -ne "\033]104;258\x7\033]104;256\x7"

	" You can also change colors depending on Vim mode:
	" use an orange cursor in insert mode
	let &t_SI = "\033]4;258;orange\x7"
	" back to red cursor otherwise
	let &t_EI = "\033]4;258;red\x7"

]4;colorindex;colorname is one of few a OSC escape codes st implements
]104;colorindex resets color index to default


Find timeout queries

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.9 out of 16 committers have signed the CLA.:white_check_mark: beorn7:white_check_mark: krajorama:white_check_mark: bboreham:white_check_mark: samjewell:white_check_mark: LeviHarrison:white_check_mark: marctc:white_check_mark: colega:white_check_mark: codesome:white_check_mark: jesusvazquez:x: Fish-pro:x: ssbostan:x: roidelapluie:x: robbe-haesendonck:x: rabenhorst:x: brancz:x: fayzal-gYou have signed the CLA already but the status is still pending? Let us recheck it.


Add SQL version (ClickHouse)

SQL query:
SELECT arrayJoin(alphaTokens(line)) AS word, count() AS c FROM table GROUP BY word ORDER BY c DESC

How to run:
clickhouse-local --input-format LineAsString --structure 'line String' --query "SELECT arrayJoin(alphaTokens(line)) AS word, count() AS c FROM table GROUP BY word ORDER BY c DESC" < kjvbible.txt > /dev/null

Reference: https://clickhouse.tech/

Thanks for the contribution! I know it's a bit arbitrary, however, I don't think I'll include an SQL version.


Is it possible to set to automatically ignore non-existent fields

Have you read the project readme?

[x] Yes, but it does not include related information regarding my question.
[x] Yes, but the steps described do not work.
[x] Yes, but I am having difficulty understanding it and want clarification.

Describe your question
A clear and concise description of what the question is. Include errors and go source files.
type In struct {
	Name      string
	Age       int
	OtherMiss string
}

type Out struct {
	Id       int
	Name     string
	Age      int
	Password string
}

// goverter:converter
type Converter interface {
	// InToOut 转换 *In 到 *Out
	// goverter:ignoreMissSource
	// goverter:ignore OtherMiss
	InToOut(source *In) (*Out, error)
	// InToOut2 转换 *Out 到 *In
	// goverter:ignoreMissTarget
	// goverter:ignore Id Password
	InToOut2(source *In) (*Out, error)
	// InToOut3 转换 *In 到 *Out
	// goverter:ignoreMissAll
	InToOut3(source *In) (*Out, error)
	// InToOut4 转换 *In 到 *Out
	// goverter:only Name
	InToOut4(source *In) (*Out, error)
}

In the above conversion, I only want to convert Age Name
It is recommended to add 4 annotations

ignoreMissSource Indicates ignoring fields missing from the source relative to the target, including: Out.Id Out.Password
So InToOut() needs to add goverter:ignore OtherMiss
ignoreMissTarget Indicates to ignore fields missing from the target relative to the source, including: In.OtherMiss
So InToOut2() needs to add goverter:ignore Id goverter:ignore Password
ignoreMissAll Indicates ignoring fields that do not match on both sides, including: In.OtherMiss Out.Id Out.Password
So InToOut3() does not need to add the goverter:ignore annotation
goverter:only Indicates that only the selected fields will be converted, other fields will be ignored
So InToOut4 only: Name will be converted, other fields will be ignored

This will greatly reduce the workload of writing goverter:ignore annotations, which is very helpful to improve efficiency

ignoreMissTarget is currently the default, goverter doesn't error when the target struct misses fields that are present on the source struct. ignoreMissSource seems like a duplicate of https://github.com/jmattheis/goverter/issues/23
Could you give a real use-case for goverter:only?

ignoreMissTarget is currently the default, goverter doesn't error when the target struct misses fields that are present on the source struct. ignoreMissSource seems like a duplicate of #23
Could you give a real use-case for goverter:only?

goverter:only doesn't seem to be necessary
#23 seems to provide the default, I don't think this is a good choice, it should be manually confirmed by the user to let them know what happened.
But their functions are similar
ignoreMissAll is a long awaited feature

I've added a comment to https://github.com/jmattheis/goverter/issues/23#issuecomment-1441902003, for your feature request. I'll close this one as duplicate.