Prakash get started cs

:x: Validation status: errors

File
Status
Preview URL
Details

:x:Error

Details

[Error] Error occurred: System.AggregateException: One or more errors occurred. ---> Microsoft.OpenPublishing.Build.DataAccessor.Git.GitDataAccessException: ExternalGitAccessor: data access error to 'https://github.com/OfficeDev/msteams-samples-hello-world-csharp' (branch: prakash-getStarted), argument: pull origin --no-edit, workingDirectory: W:\e4t3-s_msteams-samples-hello-world-csharp, error code: 1, details: You asked to pull from the remote 'origin', but did not specify
a branch. Because this is not the default configured remote
for your current branch, you must specify a branch on the command line.
.
at Microsoft.OpenPublishing.Build.DataAccessor.Git.ExternalGitAccessor.ThrowGitDataAccessException(Int32 returnValue, String errorMessage, String workingDirectory, String argument, DataAccessErrorType dataAccessErrorType, Uri repositoryUrl, String branchName)
at Microsoft.OpenPublishing.Build.DataAccessor.Git.ExternalGitAccessor.RunGitExeAndProcessOutputStream(String argument, String workingDirectory, Uri repositoryUrl, String branchName, Action1 outPutStreamAction, Boolean silentException, Int32 timeout, Boolean retryOnTimeout) at Microsoft.OpenPublishing.Build.DataAccessor.Git.ExternalGitAccessor.<>c__DisplayClass47_0.<PullCore>b__0() at Microsoft.OpenPublishing.Build.DataAccessor.Git.ExternalGitAccessor.RunWithRemoteUrlWithUserNameAndAccessToken(String userName, String accessToken, Action action) at Microsoft.OpenPublishing.Build.DataAccessor.Git.ExternalGitAccessor.PullCore() at Microsoft.OpenPublishing.Build.DataAccessor.Git.BaseGitAccessor.Pull() at Microsoft.OpenPublishing.Build.Applications.InitializeCRRTool.Program.InitializeCRRCore(String dependentRepoPath, String cloneAccessToken, Boolean isPreservedTemplateFolders, String branch, DependentRepository dependentRepository, List1 lastDependencyStatus)
at Microsoft.OpenPublishing.Build.Applications.InitializeCRRTool.Program.InitializeCRR(DependentRepository dependentRepo, String workingDirectory, String workingBranchName, String accessToken, String gitHubTemplateCloneToken, List1 cachedRepositories, List1 lastDependencyStatus, String[] preservedTemplateFolders)
at Microsoft.OpenPublishing.Build.Applications.InitializeCRRTool.Program.<>c__DisplayClass2_0.<RunAsync>b__0(DependentRepository dependentRepo)
at System.Threading.Tasks.Parallel.<>c__DisplayClass17_01.<ForWorker>b__1() at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object ) --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Func4 bodyWithLocal, Func1 localInit, Action1 localFinally)
at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable1 source, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Action3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func1 localInit, Action1 localFinally)
at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable1 source, ParallelOptions parallelOptions, Action1 body)
at Microsoft.OpenPublishing.Build.Applications.InitializeCRRTool.Program.<RunAsync>d__2.MoveNext()
---> (Inner Exception #0) Microsoft.OpenPublishing.Build.DataAccessor.Git.GitDataAccessException: ExternalGitAccessor: data access error to 'https://github.com/OfficeDev/msteams-samples-hello-world-csharp' (branch: prakash-getStarted), argument: pull origin --no-edit, workingDirectory: W:\e4t3-s_msteams-samples-hello-world-csharp, error code: 1, details: You asked to pull from the remote 'origin', but did not specify
a branch. Because this is not the default configured remote
for your current branch, you must specify a branch on the command line.
.
at Microsoft.OpenPublishing.Build.DataAccessor.Git.ExternalGitAccessor.ThrowGitDataAccessException(Int32 returnValue, String errorMessage, String workingDirectory, String argument, DataAccessErrorType dataAccessErrorType, Uri repositoryUrl, String branchName)
at Microsoft.OpenPublishing.Build.DataAccessor.Git.ExternalGitAccessor.RunGitExeAndProcessOutputStream(String argument, String workingDirectory, Uri repositoryUrl, String branchName, Action1 outPutStreamAction, Boolean silentException, Int32 timeout, Boolean retryOnTimeout) at Microsoft.OpenPublishing.Build.DataAccessor.Git.ExternalGitAccessor.<>c__DisplayClass47_0.<PullCore>b__0() at Microsoft.OpenPublishing.Build.DataAccessor.Git.ExternalGitAccessor.RunWithRemoteUrlWithUserNameAndAccessToken(String userName, String accessToken, Action action) at Microsoft.OpenPublishing.Build.DataAccessor.Git.ExternalGitAccessor.PullCore() at Microsoft.OpenPublishing.Build.DataAccessor.Git.BaseGitAccessor.Pull() at Microsoft.OpenPublishing.Build.Applications.InitializeCRRTool.Program.InitializeCRRCore(String dependentRepoPath, String cloneAccessToken, Boolean isPreservedTemplateFolders, String branch, DependentRepository dependentRepository, List1 lastDependencyStatus)
at Microsoft.OpenPublishing.Build.Applications.InitializeCRRTool.Program.InitializeCRR(DependentRepository dependentRepo, String workingDirectory, String workingBranchName, String accessToken, String gitHubTemplateCloneToken, List1 cachedRepositories, List1 lastDependencyStatus, String[] preservedTemplateFolders)
at Microsoft.OpenPublishing.Build.Applications.InitializeCRRTool.Program.<>c__DisplayClass2_0.<RunAsync>b__0(DependentRepository dependentRepo)
at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object )<---

Line 164: [Error] Clone dependent repositories and checkout to specifiec branch failed

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

:warning: Validation status: warnings

File
Status
Preview URL
Details

msteams-platform/TOC.yml
:warning:Warning

Details

msteams-platform/get-started/get-started-dotnet.md
:warning:Warning

Details

msteams-platform/get-started/get-started.md
:warning:Warning

Details

msteams-platform/concepts/cards-actions.md
:warning:Warning

Details

msteams-platform/includes/get-started/step1-prepare-for-dev.md
:warning:Warning

Details

msteams-platform/includes/get-started/step1-intro.md
:warning:Warning

Details

.gitignore
:white_check_mark:Succeeded

.openpublishing.publish.config.json
:white_check_mark:Succeeded

msteams-platform/TOC.yml

[Warning] Invalid file link:(~/resources/dev-preview/developer-preview-intro).
[Warning] Invalid file link:(~/resources/design/framework/search).
[Warning] Invalid file link:(~/resources/resource-overview).
[Warning] Invalid file link:(~/concepts/bots/bots-test).
[Warning] Invalid file link:(~/resources/general/cross-domain).
[Warning] Invalid file link:(~/concepts/activity-feed).
[Warning] Invalid file link:(~/concepts/bots/bots-overview).
[Warning] Invalid file link:(~/concepts/bots/bots-conversations).
[Warning] Invalid file link:(~/concepts/tabs/tabs-context).
[Warning] Invalid file link:(~/concepts/tabs/tabs-content).
[Warning] Invalid file link:(~/resources/design/components/color).
[Warning] Invalid file link:(~/concepts/cards-actions).
[Warning] Invalid file link:(~/scenarios/scenarios).
[Warning] Invalid file link:(~/resources/design/framework/apps).
[Warning] Invalid file link:(~/concepts/outgoingwebhook).
[Warning] Invalid file link:(~/concepts/connectors).
[Warning] Invalid file link:(~/resources/design/resources).
[Warning] Invalid file link:(~/resources/design/framework/submitting).
[Warning] Invalid file link:(~/resources/design/framework/basics).
[Warning] Invalid file link:(~/concepts/tabs/tabs-configuration).
[Warning] Invalid file link:(~/samples/code-samples).
[Warning] Invalid file link:(~/concepts/bots/bots-notifications).
[Warning] Invalid file link:(~/resources/schema/manifest-schema).
[Warning] Invalid file link:(~/concepts/apps/apps-package).
[Warning] Invalid file link:(~/get-started/get-started-tenant).
[Warning] Invalid file link:(~/resources/design/overview).
[Warning] Invalid file link:(~/resources/design/framework/cards).
[Warning] Invalid file link:(~/resources/design/framework/tabs).
[Warning] Invalid file link:(~/resources/dev-preview/developer-preview).
[Warning] Invalid file link:(~/resources/design/framework/bots).
[Warning] Invalid file link:(~/concepts/concepts-overview).
[Warning] Invalid file link:(~/troubleshoot/faq).
[Warning] Invalid file link:(~/scenarios/bots-personal-conversations).
[Warning] Invalid file link:(~/concepts/tabs/tabs-update-remove).
[Warning] Invalid file link:(~/concepts/bots/bots-menus).
[Warning] Invalid file link:(~/get-started/get-started).
[Warning] Invalid file link:(~/concepts/bots/bots-create).
[Warning] Invalid file link:(~/get-started/get-started-nodejs).
[Warning] Invalid file link:(~/resources/design/components/fields).
[Warning] Invalid file link:(~/resources/design/framework/activity-feed).
[Warning] Invalid file link:(~/resources/design/framework/messaging-extensions).
[Warning] Invalid file link:(~/scenarios/bots-channel-conversations).
[Warning] Invalid file link:(~/publishing/apps-publish).
[Warning] Invalid file link:(~/resources/dev-preview/developer-preview-features).
[Warning] Invalid file link:(~/resources/general/rate-limit).
[Warning] Invalid file link:(~/resources/design/components/typography).
[Warning] Invalid file link:(~/resources/microsoft-graph).
[Warning] Invalid file link:(~/publishing/office-store-guidance).
[Warning] Invalid file link:(~/concepts/apps/apps-overview).
[Warning] Invalid file link:(~/concepts/deep-links).
[Warning] Invalid file link:(~/resources/design/components/buttons).
[Warning] Invalid file link:(~/resources/design/components/dialogs).
[Warning] Invalid file link:(~/resources/general/requirements).
[Warning] Invalid file link:(~/concepts/authentication).
[Warning] Invalid file link:(~/publishing/office-store-checklist).
[Warning] Invalid file link:(~/concepts/messaging-extensions).
[Warning] Invalid file link:(~/.general/general-overview).
[Warning] Invalid file link:(~/overview).
[Warning] Invalid file link:(~/resources/design/components/themes).
[Warning] Invalid file link:(~/resources/general/debug).
[Warning] Invalid file link:(~/get-started/get-started-app-studio).
[Warning] Invalid file link:(~/get-started/get-started-dotnet).
[Warning] Invalid file link:(~/feedback).
[Warning] Invalid file link:(~/troubleshoot/troubleshoot).
[Warning] Invalid file link:(~/concepts/bots/bots-cards).
[Warning] Invalid file link:(~/concepts/tabs/tabs-static).
[Warning] Invalid file link:(~/concepts/tabs/tabs-overview).
[Warning] Invalid file link:(~/concepts/apps/apps-upload).
[Warning] Invalid file link:(~/concepts/bots/bots-context).

msteams-platform/get-started/get-started-dotnet.md

Line 10: [Warning] Invalid file link:(~/get-started/get-started-dotnet).
Line 11: [Warning] Invalid file link:(~/get-started/get-started-nodejs).
Line 20: [Warning] Invalid file link:(~/get-started/get-started-tenant).
Line 135: [Warning] Invalid file link:(~/concepts/apps/apps-overview).
Line 143: [Warning] Invalid file link:(~/concepts/bots/bots-create).
Line 169: [Warning] Invalid file link:(~/concepts/apps/apps-upload).

msteams-platform/get-started/get-started.md

Line 24: [Warning] Invalid file link:(~/get-started/get-started-tenant).
Line 25: [Warning] Invalid file link:(~/get-started/get-started-app-studio).
Line 26: [Warning] Invalid file link:(~/get-started/get-started-nodejs#GetPrerequisites).
Line 27: [Warning] Invalid file link:(~/get-started/get-started-nodejs#DownloadSample).
Line 28: [Warning] Invalid file link:(~/get-started/get-started-nodejs#BuildRun).
Line 29: [Warning] Invalid file link:(~/get-started/get-started-nodejs#HostSample).
Line 30: [Warning] Invalid file link:(~/get-started/get-started-nodejs#DeployToTeams).
Line 31: [Warning] Invalid file link:(~/get-started/get-started-nodejs#ConfigureTheAppTab).
Line 32: [Warning] Invalid file link:(~/get-started/get-started-nodejs#AddBot).
Line 33: [Warning] Invalid file link:(~/get-started/get-started-nodejs#ComposeRichMessages).
Line 38: [Warning] Invalid file link:(~/get-started/get-started-tenant).
Line 39: [Warning] Invalid file link:(~/get-started/get-started-app-studio).
Line 40: [Warning] Invalid file link:(~/get-started/get-started-dotnet#GetPrerequisites).
Line 41: [Warning] Invalid file link:(~/get-started/get-started-dotnet#DownloadSample).
Line 42: [Warning] Invalid file link:(~/get-started/get-started-dotnet#BuildRun).
Line 43: [Warning] Invalid file link:(~/get-started/get-started-dotnet#HostSample).
Line 44: [Warning] Invalid file link:(~/get-started/get-started-dotnet#DeployToTeams).
Line 45: [Warning] Invalid file link:(~/get-started/get-started-dotnet#ConfigureTheAppTab).
Line 46: [Warning] Invalid file link:(~/get-started/get-started-dotnet#AddBot).
Line 47: [Warning] Invalid file link:(~/get-started/get-started-dotnet#ComposeRichMessages).

msteams-platform/concepts/cards-actions.md

Line 12: [Warning] Invalid file link:(~/concepts/cards-actions#hero-card).
Line 12: [Warning] Invalid file link:(~/concepts/cards-actions#hero-card).
Line 13: [Warning] Invalid file link:(~/concepts/cards-actions#thumbnail-card).
Line 13: [Warning] Invalid file link:(~/concepts/cards-actions#thumbnail-card).
Line 61: [Warning] Invalid file link:(~/concepts/bots/bots-conversations#message-format).
Line 61: [Warning] Invalid file link:(~/concepts/bots/bots-conversations#message-format).
Line 76: [Warning] Invalid file link:(~/concepts/bots/bots-conversations#message-format).
Line 76: [Warning] Invalid file link:(~/concepts/bots/bots-conversations#message-format).
Line 85: [Warning] Invalid file link:(~/concepts/connectors#using-office-365-connector-cards-in-microsoft-teams).
Line 85: [Warning] Invalid file link:(~/concepts/connectors#using-office-365-connector-cards-in-microsoft-teams).
Line 95: [Warning] Invalid file link:(~/get-started/code#microsoft-teams-extensions-for-the-bot-builder-sdk).
Line 95: [Warning] Invalid file link:(~/get-started/code#microsoft-teams-extensions-for-the-bot-builder-sdk).

msteams-platform/includes/get-started/step1-prepare-for-dev.md

Line 10: [Warning] Invalid file link:(~/get-started/get-started-tenant).
Line 10: [Warning] Invalid file link:(~/get-started/get-started-tenant).
Line 15: [Warning] Invalid file link:(~/get-started/get-started-tenant).
Line 15: [Warning] Invalid file link:(~/get-started/get-started-tenant).

msteams-platform/includes/get-started/step1-intro.md

Line 3: [Warning] Invalid file link:(~/concepts/apps/apps-overview).
Line 3: [Warning] Invalid file link:(~/concepts/apps/apps-overview).
Line 5: [Warning] Invalid file link:(~/get-started/get-started-app-studio).
Line 5: [Warning] Invalid file link:(~/get-started/get-started-app-studio).

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


tf.linalg.inv does not support "half" datatype

Click to expand!
Issue Type
Bug
Source
binary
Tensorflow Version
tf 2.8.2
Custom Code
Yes
OS Platform and Distribution
Linux Ubuntu 18.04.5 (on Google Colab)
Mobile device
No response
Python version
3.7.13
Bazel version
No response
GCC/Compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current Behaviour?
The `tf.linalg.inv` does not support `half` data type, while the doc on [https://www.tensorflow.org/versions/r2.8/api_docs/python/tf/linalg/inv](https://www.tensorflow.org/versions/r2.8/api_docs/python/tf/linalg/inv) said `half` can be used.

The latest version (tf 2.9) also has this issue.

Standalone code to reproduce the issue
import tensorflow as tf
import numpy as np

x = np.array([[1, 2], [3, 4]], dtype=np.half)
tf.linalg.inv(x)

Relevant log output
---------------------------------------------------------------------------
NotFoundError                             Traceback (most recent call last)
<ipython-input-1-22e20a75db78> in <module>()
      3
      4 x = np.array([[1, 2], [3, 4]], dtype=np.half)
----> 5 tf.linalg.inv(x)

2 frames
/usr/local/lib/python3.7/dist-packages/tensorflow/python/eager/execute.py in quick_execute(op_name, num_outputs, inputs, attrs, ctx, name)
     53     ctx.ensure_initialized()
     54     tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name,
---> 55                                         inputs, attrs, num_outputs)
     56   except core._NotOkStatusException as e:
     57     if name is not None:

NotFoundError: Could not find device for node: {{node MatrixInverse}} = MatrixInverse[T=DT_HALF, adjoint=false]
All kernels registered for op MatrixInverse:
  device='GPU'; T in [DT_COMPLEX128]
  device='GPU'; T in [DT_COMPLEX64]
  device='GPU'; T in [DT_DOUBLE]
  device='GPU'; T in [DT_FLOAT]
  device='CPU'; T in [DT_COMPLEX128]
  device='CPU'; T in [DT_COMPLEX64]
  device='CPU'; T in [DT_DOUBLE]
  device='CPU'; T in [DT_FLOAT]
 [Op:MatrixInverse]

@chunduriv I was able to replicate the issue on colab using TF v2.9.0, please find the gist here. Thank you!

Thanks for reporting the issue, I have submitted the changes internally.

for Half dtype, some of the tests are failing to due deviation of precision errors more than the defined threshold level.
Is is possible for you to run the op in float32 and then cast the output to half dtype.

@sachinprasadhs It's ok for me currently. However, if the issue is hard to fix, would you like to modify the documentation to remove support for the half type? That causes an inconsistency.


Batch merkle tree update

This branch is indeed just a refactoring. But it will be helpfull for parallel memo decryption that I'll try to implement after merging of #13.


Add both TE and non-TE tests to Rosetta CIs

Currently, the Pax and T5X Rosetta CIs only run tests with transformer engine enabled. To more easily track regressions, we should run Rosetta tests with and without transformer engine.

@maanug-nv We can probably have the MGMN tests for pax and T5x run in rosetta, but with fewer configs for now so to not add too much time to the overall CI. Maybe something like the smallest and the largest config to start


Try using a signature checker as part of the build

@myrle-krantz in https://github.com/stellar/java-stellar-sdk/issues/14

A signature checker can automatically determine if your api is still compatible or if it will break your clients. Making a signature checker part of your build can help you avoid accidental breaking changes of the most superficial variety.

This really was just directed at the java api.  The protocol is important too, and insofar as it can be represented by java classes, it can be at least partially stabilized by a java signature checker too.
However placing a java signature checker at the java api level, prevents you from accidentally making changes that force clients of your java api to change their code.  This is very easy to add to a build, and can save you a lot of heartache once you get past beta phase and have customers who have released their code.
Tulach gives more information (and is a good general resource for anyone interested in java apis as well): http://wiki.apidesign.org/wiki/SignatureTests


Ensure matching of original link string when parsing links

This change ensures that we match the original link string when we replace it by using regular expressions to extract it rather than BeautifulSoup.
Originally we were using BeautifulSoup to find all a tags, and then rendering the BeautifulSoup tag back to HTML and replacing that string with our marked-up replacement.
The problem is that BeautifulSoup doesn't guaratee attribute order, so when it's time to replace the original string the BeautifulSoup-rendered copy wouldn't necessary exist in the HTML string because the attribute order might've changed.
This change gets around that problem by using regular expresisons to match the original string and not engaging BeautifulSoup until it's time to add the markup.
To see this in action, take a look at the "Additional Reports" on http://localhost:8000/data-research/hmda/:

In production these do not get the external link icon class (https://www.consumerfinance.gov/data-research/hmda/):

Checklist

[x] PR has an informative and human-readable title
[x] Changes are limited to a single goal (no scope creep)
[x] Code can be automatically merged (no conflicts)
[ ] Code follows the standards laid out in the CFPB development guidelines
[x] Passes all existing automated tests
[x] Any change in functionality is tested
[ ] New functions are documented (with a description, list of inputs, and expected output)
[ ] Placeholder code is flagged / future todos are captured in comments
[ ] Visually tested in supported browsers and devices (see checklist below :point_down:)
[ ] Project documentation has been updated
[x] Reviewers requested with the Reviewers tool :arrow_right:

I've adjusted the regular expression so that it will match other external links on the page, including the USA.gov and OIG links at the bottom:


RoR group project: set up your Kanban board

You can find our Kanban project here
Our team consists of two members:
@frank1738
@ramrod433

STATUS: INVALID CODE REVIEW REQUEST 🛑 🛑
Hi @ramrod433 and @frank1738,
While you made a great effort in this project, unfortunately, I cannot proceed to review your code.
Invalid Code Review Request
In your issue, you should provide the link to your kanban board, not your repo
Your Code Review Request will be marked as invalid in your Dashboard, so please submit a new one once you are ready 🙏
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear. And please, remember to tag me in your question so I can receive the notification.
Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.

Invalid Code Review Request does not count into the code reviews limit.

Hi Team👋,

Highlights💡

Good PR Summary.✔
Made changes using the previous reviewer's suggestion.✔
Assigned cards in the Kanban board fairly.✔

STATUS: APPROVED 🕺🥳
Congratulations🍾🥳!! Your project is ready for presentation!  There is nothing else to say other than... it's time to merge it :shipit:

Optional Suggestions:

N/A

Good luck! 🎉

Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me @brytebee in your question so I can receive the notification.
Use @brytebee on slack for faster responses.

As described in the Code reviews limits policy  you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.


Attribute routing throws ambiguous exception for base controller

Consider the following
[Route("base/[action]")]
    public class BaseController : Controller
    {
        public virtual void Action()
        {
        }
    }

    [Route("derived/[action]")]
    public class DerivedController : BaseController
    {
        public override void Action()
        {
        }
    }

When attempting to hit base/Action we get an ambiguous route exception.

@harshgMSFT and I spent some time debugging this, the reason is that the entries for DerivedController::Action and BaseController::Action each end up defining the route base/Action.

46db71cfceae350564135ecd2a810660e70a7c42
8a476b5


Maybe add support for a JSONSchema interface to types?

This is a fantastic library - thank you!
I'm very new to JSON schemas but am wondering if we can use Go interfaces to give more fine-grained control over JSON schemas to the underlying types represented, similar to how Go's MarshalJSON and UnmarshalJSON work. This would be an alternative mechanism to the existing jsonschema.Reflector.Mapper function.
For example, consider the following type:
package mypackage

type CoinFlip string

const (
    CoinFlipHeads CoinFlip = "heads"
    CoinFlipTails CoinFlip = "tails"
)

Let's give it a JSONSchema method:
func (CoinFlip) JSONSchema() *jsonschema.Schema {
    return &jsonschema.Schema{
        Type: "string",
        Enum: []interface{}{
            "heads",
            "tails",
        },
    }
}

and define an interface in the jsonschema package:
package jsonschema

type JSONSchema interface {
    JSONSchema() *jsonschema.Schema
}

Now, when generating the JSON schema for a field, we can first check if the field's type implements in the JSONSchema interface, and, if so, call its JSONSchema() method directly. If the field's type does not implement the JSONSchema interface then we can continue with the existing behavior.
Such an approach would effectively allows types to define their own schemas.
Does this make sense? I would be happy to help implement such a feature.

I think it's already implemented, see https://github.com/invopop/jsonschema#custom-type-definitions.

Oops, so sorry for missing that. This is exactly what I was looking for. Thank you and sorry for the noise.


Rebase UTxO-HD on top of node 8.2 versions

The versions can be found by checking out the 8.2 node and cabal freeze.

ouroboros-network-protocols-<IP_ADDRESS>@f84fcddce472d6cfc2b838b20a2ad085fe0896ed:

Use -fno-full-laziness in ChainSync
https://github.com/input-output-hk/ouroboros-network/pull/4632

ouroboros-consensus*@c50490f52ef8c8093b92a9a0f0a14d8c3e5eaf12: https://github.com/input-output-hk/ouroboros-consensus/pull/255

cardano-api-<IP_ADDRESS>@33f92b4f0387a1ccad1684263905464407a1e21c: https://github.com/input-output-hk/cardano-api/pull/144

cardano-node has a branch consensus/utxo-hd-revamp but no PR yet.

Blocked by #257


Plot utilities with mdolab niceplots

add plotting utilities from optimization history files from niceplots repo (mdolab)
example plots shown below

Also, see I got some better plots to show in this PR above.


Update Composer dependencies (2021-02-02-00-05)

Visual regression test passed!
View the visual regression test report


localhost/past-events/

[ ] use category_list template page, new view, separate URL to share all Events that have datetime > today

All events will stay on the calendar after theyve passed so they are accessible through that.


Realm file is growing larger than a gig when it is only holding ~50mb

Goals
Store user data on iOS ranging from a few k to a few hundred MB.
Expected Results
Realm db grows in size relative to amount of data stored + unreclaimed space overhead
Actual Results
See exceptions generated from 17 users. There is no way there are actually storing that much data. Also, how are multiple users hitting the exact same number of bytes?
 03/11 22:56:19.024 (LLDatabaseManager:26) [E] Error creating Realm instance: Error Domain=io.realm Code=9 "mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0" UserInfo={NSLocalizedDescription=mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0, Error Code=9}
 03/08 22:31:25.407 (LLDatabaseManager:26) [E] Error creating Realm instance: Error Domain=io.realm Code=9 "mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0" UserInfo={NSLocalizedDescription=mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0, Error Code=9}
 03/09 09:22:09.426 (LLDatabaseManager:26) [E] Error creating Realm instance: Error Domain=io.realm Code=9 "mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0" UserInfo={NSLocalizedDescription=mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0, Error Code=9}

 03/09 20:04:23.569 (LLDatabaseManager:26) [E] Error creating Realm instance: Error Domain=io.realm Code=9 "mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0" UserInfo={NSLocalizedDescription=mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0, Error Code=9}
 03/09 21:50:19.254 (LLDatabaseManager:26) [E] Error creating Realm instance: Error Domain=io.realm Code=9 "mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0" UserInfo={NSLocalizedDescription=mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0, Error Code=9}
 03/09 20:40:01.597 (LLDatabaseManager:26) [E] Error creating Realm instance: Error Domain=io.realm Code=9 "mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0" UserInfo={NSLocalizedDescription=mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0, Error Code=9}
 03/09 22:55:33.892 (LLDatabaseManager:26) [E] Error creating Realm instance: Error Domain=io.realm Code=9 "mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0" UserInfo={NSLocalizedDescription=mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0, Error Code=9}
 03/14 07:23:50.626 (LLDatabaseManager:26) [E] Error creating Realm instance: Error Domain=io.realm Code=9 "mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0" UserInfo={NSLocalizedDescription=mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0, Error Code=9}
 03/11 15:56:05.498 (LLDatabaseManager:26) [E] Error creating Realm instance: Error Domain=io.realm Code=9 "mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0" UserInfo={NSLocalizedDescription=mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0, Error Code=9}
 03/11 17:19:14.941 (LLDatabaseManager:26) [E] Error creating Realm instance: Error Domain=io.realm Code=9 "mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0" UserInfo={NSLocalizedDescription=mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0, Error Code=9}
 03/14 07:23:50.626 (LLDatabaseManager:26) [E] Error creating Realm instance: Error Domain=io.realm Code=9 "mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0" UserInfo={NSLocalizedDescription=mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0, Error Code=9}

 03/12 16:30:29.516 (LLDatabaseManager:26) [E] Error creating Realm instance: Error Domain=io.realm Code=9 "mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0" UserInfo={NSLocalizedDescription=mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0, Error Code=9}

 03/12 23:19:18.476 (LLDatabaseManager:26) [E] Error creating Realm instance: Error Domain=io.realm Code=9 "mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0" UserInfo={NSLocalizedDescription=mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0, Error Code=9}
 03/12 23:23:48.896 (LLDatabaseManager:26) [E] Error creating Realm instance: Error Domain=io.realm Code=9 "mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0" UserInfo={NSLocalizedDescription=mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0, Error Code=9}
 03/12 23:27:21.660 (LLDatabaseManager:26) [E] Error creating Realm instance: Error Domain=io.realm Code=9 "mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0" UserInfo={NSLocalizedDescription=mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0, Error Code=9}
 03/10 12:46:59.726 (LLDatabaseManager:26) [E] Error creating Realm instance: Error Domain=io.realm Code=9 "mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0" UserInfo={NSLocalizedDescription=mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0, Error Code=9}

 03/13 15:45:18.168 (LLDatabaseManager:26) [E] Error creating Realm instance: Error Domain=io.realm Code=9 "mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0" UserInfo={NSLocalizedDescription=mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0, Error Code=9}

I have a hunch that copying the db in place (compressing) would make this go away, but my current code in production only does this at night, and when there is 3x db size storage in overhead, so this is unlikely to happen.
Steps to Reproduce
I do not have deterministic steps to reproduce, I've seen this in 17 out of thousands of users. I have not been able to dupe this in the lab.
Code Sample
 do{
             return try Realm()
         } catch {
             DDLogError("Error creating Realm instance: \(error)")
             return nil
         }

Version of Realm and Tooling
Realm version: 2.4.2
Xcode version: 8.2
iOS/OSX version: iPhone 6s, iOS 10.0.2
Thanks for your help!

I have the similar issue with realm 2.4.3
here is a part of a log
Error Domain=io.realm Code=9 "mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0"

Hi @bruce-lumo! Please update Realm to at least v2.4.3 (but I recommend running the latest version which is v2.4.4). In most cases, #4598 should've fixed the issue.

@Florelit: Please file another issue with your own set of repro steps and information. It's possible there are multiple issues causing this to happen or some other reason in your codebase. Thanks!

Thanks, I'll upgrade.

I have the similar issue with realm 2.7.0

You'll need to share more details about what issue you're facing for us to be able to help, @shenAlexy. Please file a new issue taking care to fill out the new issue template: https://github.com/realm/realm-cocoa/issues/new
Thanks!


Question: define endorsement policies of chaincode being installed.

Hi,
I am missing in the documentation any info regarding defining endorsing policies of installed chaincode. I would appreciate any examples or hints. Are there any parameters that can be set when running the minifab ccup command to define the endorsement policies?
Thanks.

Use -h to see all options. There is one option to set policy. Please ask your question in rocket chat channel and close this one.

Thanks, I am aware of the option. My question is more about how it is actually used, as I did not find relevant documentation. It is not clear if the argument in command line should be like "AND('Org1.peer', 'Org2.peer')" or something else.
Anyhow, i close the topic.

The syntax must be the same as the official document states.


CLOUDP-123995: Support cloud-dev testing

Proposed changes

Jira ticket: CLOUDP-123995

This adds the possibility to set OpsManager URL so that we can test cloud-dev. If it's not set, works as is.
If we're not confident with this approach we can add a hidden flag to only enable OpsManager URL check when it's set.
Merge only after https://github.com/mongodb/mongodb-atlas-cli/pull/1267/files

Checklist

[x] I have signed the MongoDB CLA
[x] I have added tests that prove my fix is effective or that my feature works
[x] I have added any necessary documentation in document requirements section listed in CONTRIBUTING.md (if appropriate)
[x] I have addressed the @mongodb/docs-cloud-team comments (if appropriate)
[x] I have updated e2e/E2E-TESTS.md (if an e2e test has been added)
[x] I have run make fmt and formatted my code

Further comments

LGTM but needs rebase & mark for review


Hunting issues for GithubAudit for repo.destroy isn't working

Describe the bug
Trying to hunt using the prebuilt one but getting error GitHub Mass Deletion of repos or projects
To Reproduce
Prebuild query is
let starttime = todatetime('2021-09-14T18:36:03.836Z');
let endtime = todatetime('2021-09-15T18:36:03.836Z');
let LearningPeriod = 7d;
let EndLearningTime = starttime - LearningPeriod;
let NumberOfStds = 3;
let MinThreshold = 10.0;
let GitHubRepositoryDestroyEvents = (GitHubAudit
    | where Action == "repo.destroy");
GitHubRepositoryDestroyEvents
| where TimeGenerated between (EndLearningTime .. starttime)
| summarize count() by bin(TimeGenerated, BinTime)
| summarize AvgInLearning = avg(count_), StdInLearning = stdev(count_)
| extend LearningThreshold = max_of(AvgInLearning + StdInLearning * NumberOfStds, MinThreshold)
| extend Dummy = 1
| join kind=innerunique (
    GitHubRepositoryDestroyEvents
    | where TimeGenerated between (starttime .. endtime)
    | summarize CountInRunTime = count() by bin(TimeGenerated, BinTime)
    | extend Dummy = 1
    )
    on Dummy
| project-away Dummy
| where CountInRunTime > LearningThreshold

ERROR MESSAGE:
'summarize' operator: Failed to resolve scalar expression named 'BinTime'

@majorvin - We are currently in process of migrating to GitHub queries to the new preview connector -

While that is in process, after onboarding the GitHub data via the existing custom connector the data is loaded into a table called GitHub_CL.  In order to use the data more easily, there is a parser that must be installed in your workspace - https://github.com/Azure/Azure-Sentinel/blob/master/Parsers/GitHub/GitHubAuditLog.txt.  This includes the following instructions -
// Usage Instruction :
// Paste below query in log analytics, click on Save button and select as Function from drop down by specifying function name and alias.
// To work with pre-built GitHub queries this Function should be given the alias of GitHubAudit.
// Functions usually takes 10-15 minutes to activate. You can then use function alias from any other queries (e.g. GitHubAudit | take 10).
If you have done this and still having issues, can you share an output from this command - GitHub_CL | getschema

HI @shainw  is this in public preview? I dont see it in the list of connectors.

@majorvin - Apologies for the long delay on this.  In early February we released this content that will help you enable GitHub monitoring - https://techcommunity.microsoft.com/t5/microsoft-sentinel-blog/microsoft-sentinel-continuous-threat-monitoring-for-github/ba-p/3037154.


Remove hash in icon link

What is the benefit of explicitly adding a hyperlink to '#' here: ToolbarAction.js#L45?
This causes issues when I use it in an ember app because clicking on the toolbar icon will actually redirect my app from app/#/my-route/ to app/#.
This is just one way I have found to fix it that does not seem to cause any side effects.

This PR actually breaks the examples for me - it causes clicks on the buttons in the toolbar to perform a redirect to the same page.
FYI, links in Leaflet.draw and Leaflet core all have href = '#' (examples: L.Control.Zoom, L.Control.Layers), so if this is a problem for you in Leaflet.toolbar, it's part of a larger problem for you.


Move block binaries/scripts out of the config directory

As pointed out by a user, the actual block binaries and/or scripts should not reside in the config directory. I don't think this is actually required even now, as long as the scripts are in PATH, succade should be able to run them. Apart from that, can we currently specify the path to the bin/script in the config files? If not, we should have that option. In other words, decouple bin/script and config file, effectively making the blocks just a config file. It is then up to the user where the bin/script actually is. Let's look into this.

A quick glance at the code reveals that we need to slightly change the logic behind initializing and running blocks. Also, we need to add a config option to specify the binary to use, I suggest bin. This should not be too much work.


modified helm install-job using the k8s dynamic admission controller by injecting some custom labels and annotations into it, causing the Helm Controller is error syncing constantly requeuing

version: 0.12.3
the helm-install-job is constantly being deleted and rebuilt.
logs:
2023-04-24T03:47:33.121140867Z time="2023-04-24T03:47:33Z" level=error msg="error syncing 'demo0/hu002': handler helm-controller: DesiredSet - Replace Wait batch/v1, Kind=Job demo0/helm-install-hu002 for helm-controller demo0/hu002, requeuing
this is not the case with the helm-delete job, which can be modified by the k8s dynamic admission Controller and run normally until completion.
Is this a normal phenomenon? Or is there a way around it?

Yeah, the DesiredSet Apply code in the helm controller will see that the Job spec differs from the spec it is expecting, and will continue to apply the changes over and over again until the spec is in sync with what it wants.
What exactly is your admission controller changing on the Job? Do you have the option to exclude the helm controller jobs from being modified?


Why I got small or zero G-mean with small class of data

The default parameter for the size of each class at the coarsest level is set to 300 in the params.xml file. If the size of data in the smaller class is less than (k-1)/k * 300, then the coarsening is not happen for the smaller class. The (k-1)/k comes from the k-fold cross validation. In other words, if we have 320 data points in the smaller class and we use the default value of 5 in the params.xml for the main_num_kf_iter, then we are going to have (5-1)/5% of data in the training process. The 80% of 320 is 256 which is smaller than 300 and cause problem. The 64 data points are left as the test data and are not part of the training (coarsening, refinement)
A log output might look similar to below one at version 0.0.45 captured Nov 20, 2017.
small_class_g-mean_0_112017_1735.log

The solution is to set the coarse_threshold parameter in the params.xml to smaller value than the (k-1)/k * size_of_small_class. You can also use the --cs_t input parameter to override this parameter for a specific experiment.


Simulate faults like delays, connection refused, ...

Something like http://wiremock.org/simulating-faults.html

I don't speak for the core developers, but I consider this a significant expansion of scope for Betamax. The library would have to introduce some way of effectively defining mock behaviour. I'd prefer Betamax to interoperate with Wiremock and MockServer rather than duplicate their behaviour.
One possible option is to treat the underlying LittleProxy implementation as a pluggable platform for which someone could add mock response behaviour, leaving it out of core. Could be a significant amount of work though, and again, an expansion of scope. Chaining proxies in the tests may be just as effective.

@pledbrook The configuration concept was supposed to provide that, but I still think we're a ways from it. I think we're still a pretty far ways out from implementing anything like Wiremock, especially when Wiremock already does it.

I think that recording the time it took to round trip to the server (thus making it editable) will cover a lot of cases. The only thing Betamax is not well equipped for are any connection-based exception; Betamax only supports responses from the server. Making those responses be 4XX or 5XX is as easy as editing the tape, though. I will make a feature request for recording the duration, but as for connection break simulations, that will take a lot more thought.

Delays are covered in #183 and https://trello.com/c/C8nsdJIx. Connection faults can happen with Betamax off or by tweaking the (future) delay to be something absurd.


nginx proxy causes 404

Codebase
Custom mounted
Host OS
macOS Sierra
Docker info output
 Running: 19
 Paused: 0
 Stopped: 4
Images: 602
Server Version: 18.09.2
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version:<PHONE_NUMBER>f7fe2f4e74d43e2fc7ccd237edcbce
runc version: 09c8266bf2fcf9519a651b04ae54c967b9ab86ec
init version: fec3683
Security Options:
 seccomp
  Profile: default
Kernel Version: 4.9.125-linuxkit
Operating System: Docker for Mac
OSType: linux
Architecture: x86_64
CPUs: 5
Total Memory: 7.786GiB
Name: linuxkit-025000000001
ID: ZICJ:5JFF:MK44:Y4D2:RNLN:KZAW:E7IA:JBJW:IGMH:PBNY:VBQ5:QUHQ
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: 201
 Goroutines: 212
 System Time: 2019-03-22T04:07:43.76863772Z
 EventsListeners: 7
HTTP Proxy: gateway.docker.internal:3128
HTTPS Proxy: gateway.docker.internal:3129
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 <IP_ADDRESS>/8
Live Restore Enabled: false
Product License: Community Engine

.env
PROJECT_NAME=sites
PROJECT_BASE_URL=wpmain.local
...
rest of unmodified vars
...

Docker compose file
Make sure you remove all commented services.
version: "3"

services:
  mariadb:
    image: wodby/mariadb:$MARIADB_TAG
    container_name: "${PROJECT_NAME}_mariadb"
    stop_grace_period: 30s
    environment:
      MYSQL_ROOT_PASSWORD: $DB_ROOT_PASSWORD
      MYSQL_DATABASE: $DB_NAME
      MYSQL_USER: $DB_USER
      MYSQL_PASSWORD: $DB_PASSWORD
    volumes:
#      - ./mariadb-init:/docker-entrypoint-initdb.d # Place init .sql file(s) here.
      - ./data/:/var/lib/mysql # I want to manage volumes manually.

  php:
    image: wodby/wordpress-php:$PHP_TAG
    container_name: "${PROJECT_NAME}_php"
    build: .
    environment:
      PHP_SENDMAIL_PATH: /usr/sbin/sendmail -t -i -S mailhog:1025
      DB_HOST: $DB_HOST
      DB_USER: $DB_USER
      DB_PASSWORD: $DB_PASSWORD
      DB_NAME: $DB_NAME
      PHP_FPM_USER: wodby
      PHP_FPM_GROUP: wodby
## Read instructions at https://wodby.com/stacks/wordpress/docs/local/xdebug/
#      PHP_XDEBUG: 1
#      PHP_XDEBUG_DEFAULT_ENABLE: 1
#      PHP_XDEBUG_REMOTE_CONNECT_BACK: 0
#      PHP_IDE_CONFIG: serverName=my-ide
#      PHP_XDEBUG_REMOTE_HOST: <IP_ADDRESS> # Linux
#      PHP_XDEBUG_REMOTE_HOST: <IP_ADDRESS> # macOS
#      PHP_XDEBUG_REMOTE_HOST: <IP_ADDRESS> # Windows
    # volumes:
      # - ./:/var/www/html
## For macOS users (https://wodby.com/stacks/wordpress/docs/local/docker-for-mac/)
      # - ./:/var/www/html:cached # User-guided caching
#      - docker-sync:/var/www/html # Docker-sync
## For XHProf and Xdebug profiler traces
#      - files:/mnt/files
#   depends_on:
#     - mariadb

  nginx:
    image: wodby/nginx:$NGINX_TAG
    container_name: "${PROJECT_NAME}_nginx"
    depends_on:
      - php
    environment:
      NGINX_STATIC_OPEN_FILE_CACHE: "off"
      NGINX_ERROR_LOG_LEVEL: error
      NGINX_BACKEND_HOST: php
      NGINX_VHOST_PRESET: wordpress
      NGINX_SERVER_ROOT: /var/www/html/web
    # volumes:
      # - ./:/var/www/html
# Options for macOS users (https://wodby.com/stacks/wordpress/docs/local/docker-for-mac/)
      # - ./:/var/www/html:cached # User-guided caching
#      - docker-sync:/var/www/html # Docker-sync
    labels:
      - 'traefik.backend=${PROJECT_NAME}_nginx'
      - 'traefik.port=80'
      - 'traefik.frontend.rule=Host:${PROJECT_BASE_URL},site1.local,site3.local'

  pma:
    image: phpmyadmin/phpmyadmin
    container_name: "${PROJECT_NAME}_pma"
    environment:
      PMA_HOST: $DB_HOST
      PMA_USER: $DB_USER
      PMA_PASSWORD: $DB_PASSWORD
      PHP_UPLOAD_MAX_FILESIZE: 1G
      PHP_MAX_INPUT_VARS: 1G
    labels:
      - 'traefik.backend=${PROJECT_NAME}_pma'
      - 'traefik.port=80'
      - 'traefik.frontend.rule=Host:pma.${PROJECT_BASE_URL}'

  portainer:
    image: portainer/portainer
    container_name: "${PROJECT_NAME}_portainer"
    command: --no-auth -H unix:///var/run/docker.sock
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    labels:
      - 'traefik.backend=${PROJECT_NAME}_portainer'
      - 'traefik.port=9000'
      - 'traefik.frontend.rule=Host:portainer.${PROJECT_BASE_URL}'

  traefik:
    image: traefik
    container_name: "${PROJECT_NAME}_traefik"
    command: -c /dev/null --web --docker --logLevel=INFO
    ports:
      - '80:80'
#      - '8080:8080' # Dashboard
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock

Dockerfile
FROM wodby/wordpress-php:7.2-dev-4.12.5

COPY ./web /var/www/html/web

When I hit the localhost url I get a 404 from Nginx. If I ssh into the nginx container, I see that there is no web folder(expected, since I am commenting out the volumes in the nginx section of the docker-compose.yml)  I don't see why is it needed there, since it's just proxying to the php container where I have backed the wordpress files, via the Dockerfile
what I am missing? why does the nginx container need to have access to the WordPress codebase? I want the php(WordPress) to be stateless, and that is why I am backing in the Wordpress files.

@csandanov any insight into this issue? thanks in advance.

I don't see why is it needed there, since it's just proxying to the php container where I have backed the wordpress files, via the Dockerfile

it's needed because you have static files in the codebase (WP core, plugins, themes), plus you have wp-content/uploads directory.

got it, thanks.


MGMT-16007: Disable HTTP/2 for webhooks

Disable HTTP/2 by default for the webooks server, which is the only KMM server affected by CVE-2023-44487.
/cc @bthurber @yevgeny-shnaidman

/retest-required

/lgtm

/cherry-pick release-2.0

/cherry-pick release-1.1


How to use with Auto Layout ?

So I wanted to use AutocompleteTextfieldSwift in my project, but I use Autolayout in my Main.storyboard.
I wanted to know how the TableView for results can be below the textfield. Please see the screenshot attached (I set autoCompleteTableHeight to 200.0 in this exemple)

Thanks

@tjulianb42 , could you send me a demo project for where this occured, it supposed to work even you used autolayout. The demo project is in autolayout.

@mnbayan Yes please see : https://mega.co.nz/#!oAAFXKZb!1_77KwN4yH9ap2aJSu427HPMtwf1jpklSHqKLQlAP1A

@tjulianb42 The link is not working, download always fails.

@mnbayan That's weird, is http://tjulianb.com/ACTF-test.zip working ?

@tjulianb42  There is a problem with your constraint's. It may look like that it is positioned well in the simulator or your device but the system reads the textfield position as x = 0, y = 0. Opening the storyboard, i found this errors.

I corrected your constraints, please download and take a look https://db.tt/bnvMm4m. Make sure to add your constraints correctly.

@mnbayan Thank you! I'd like to check your corrected project but your link returns me a 404 error

@tjulianb42 I've edited the link.You should be able to download it now.

Thank you so much it works !

@tjulianb42 You're welcome.


kconfig: Fix re-configuration of thread priority

When the NUM_PREEMPT_PRIORITIES is changed to 0 without deleting the
build directory the thread priorities will silently become invalid.
To resolve this we apply the same fix as we did for
BT_HCI_TX_STACK_SIZE. We add a "prompt guard", which ensures that the
priority is only set manually when it is explicitly configured to be
so.
The same mechanism was used successfully in this PR:
https://github.com/zephyrproject-rtos/zephyr/pull/20702
This fixes #13436

Hi, I think you have understood the situation.
The best explanation of the problem is in the description of https://github.com/zephyrproject-rtos/zephyr/pull/20702
It is correct that this applies to many configurations. Specifically, any config that has a prompt and that calculates it's default value based on other options, and where the result of the calculation is not a "recommended" value, but an absolute requirement.
I disagree however that we should accept the status quo of

It's true that value was a default from a space assumed the original test configuration, but that's what happens when the user changes configuration: stuff breaks.

Instead we should apply fixes like this so that stuff does not break.

IMHO the relative value is low as long as our error messages are sane. If the original build failure reported "Invalid main thread priority, must be in range [-16,-1]", would the original bug have been filed?

Note that endlessly applying error-checking is equally painful.

EDIT: Note that the alternative to applying fixes like this is to instruct users to not trust menuconfig, but instead use menuconfig to discover which options should be enabled, and then give input through prj.conf instead. But this is unacceptable from a usability perspective.

Adding to this, it's dangerous to think of menuconfig as its own thing. All issues that show up in menuconfig are real dependency issue that also apply outside menuconfig. They're just easier to spot in menuconfig than when setting symbols via configuration files.
Best to think of the Kconfig files as defining an options menu. Assigning a symbol in a configuration file is just like toggling it in menuconfig.
If something wouldn't make sense for an options menu, it probably doesn't make sense for Kconfig.

Actually, regarding my opinion, I agree with @SebastianBoe and disagree with @andyross. Kconfig helps us track complex dependencies between different options. We shouldn't abuse it, but if the tool is up to the job why stop short. That's more work for us but it improves usability. The solution proposed by @SebastianBoe is quite elegant. My comment was purely about naming the option. The one proposed by @ulfalizer seems more intuitive.
As described in #13436, I run into the issue personally and that was quite a frustrating experience. Especially that all these dependencies between scheduling policies and priorities of the main thread, work queue are nowhere documented.

I maintain that this patch is worth the maintenance effort.
I believe that the number of options where we need to apply this is not so great as one would fear. This is evidenced by the fact that we are not being bombarded daily with user-errors of this category.
There is an alternative fix, to have menuconfig write to a Kconfig fragment input instead of into <build_dir>/zephyr/.config. But I'm not sure if we are able to do this. Perhaps @ulfalizer can comment on the feasability of this solution.

@SebastianBoe sorry for a late notice. Could we discuss this PR at today's dev-review meeting?

We can, but I won't be able to attend, I could try to find someone in my place that understands the situation though.

Hi, after discussing with @tejlmand we believe that we might have found a cleaner solution that might be easier to accept.
This is what the option looks like in master:
config MAIN_THREAD_PRIORITY
	int "Priority of initialization/main thread"
	default -2 if !PREEMPT_ENABLED
	default 0
	help
	  Priority at which the initialization thread runs, including the start
	  of the main() function. main() can then change its priority if desired.

If setting MAIN_THREAD_PRIORITY to -2 when ( !PREEMPT_ENABLED) is an absolute requirement and it should not be possible for the user to overridable this. Then it is cleaner to add
range -2 -2 if !PREEMPT_ENABLED

to the option than to add a prompt guard. I need help with someone with domain-knowledge of thread priorities to confirm this.

DEV-REVIEW (Mar 12): Leaving marked as dev-review to allow @nashif, @ulfalizer and others to see if we can come up with a better solution and will bring back up next week.

Hi, after discussing with @tejlmand we believe that we might have found a cleaner solution that might be easier to accept.
This is what the option looks like in master:
config MAIN_THREAD_PRIORITY
	int "Priority of initialization/main thread"
	default -2 if !PREEMPT_ENABLED
	default 0
	help
	  Priority at which the initialization thread runs, including the start
	  of the main() function. main() can then change its priority if desired.

If setting MAIN_THREAD_PRIORITY to -2 when ( !PREEMPT_ENABLED) is an absolute requirement and it should not be possible for the user to overridable this. Then it is cleaner to replace the "default -2", with
range -2 -2 if !PREEMPT_ENABLED

than to add a prompt guard. I need help with someone with domain-knowledge of thread priorities to confirm whether -2 is a requirement, or a "desired default value" though.

@andyross and @andrewboie could you comment on the above please?


[web] Wrong page title for leaderbord, but only in production

but

So probably something is wrong with the CD cycle ...?

I just deployed the changes and it's good now

I just deployed the changes and it's good now


Move weather.ipma into a component

Description:
Follows the general trend of moving things into components with config flow's.
Related issue (if applicable): fixes #
Pull request in home-assistant.io with documentation (if applicable): home-assistant/home-assistant.io#<home-assistant.io PR number goes here>
Example entry for configuration.yaml (if applicable):
weather:
  - platform: ipma

Checklist:

[x] The code change is tested and works locally.
[x] Local tests pass with tox. Your PR cannot be merged unless tests pass
[x] There is no commented out code in this PR.

If user exposed functionality or configuration variables are added/changed:

[x] Documentation added/updated in home-assistant.io

If the code communicates with devices, web services, or third-party tools:

[x] New dependencies have been added to the REQUIREMENTS variable (example).
[x] New dependencies are only imported inside functions that use them (example).
[x] New or updated dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
[x] New files were added to .coveragerc.

If the code does not interact with devices:

[x] Tests have been added to verify that the new code works.

Github is not marking as outdated all the review comments, but I believe to have addressed all of them


Using "count" variable without plurals crashes app

The count variable in translations seems to be reserved for plurals. When used in a non-plural translation, the app crashes with
 Cannot read property 'fn' of undefined at PluralRuleSelect node_modules/@formatjs/intl-pluralrules/index.js:21:43

Steps to reproduce

Create a fresh Next.js and next-translate setup
Add translation "test": "Count: {{count}}"
Output translation on page as <div>{t('common:test', { count: 1 })}</div>
Run the app and open the page in the browser: It crashes
Change the translation key to test_1: It no longer crashes

This seems to be related to the polyfill somehow. I just added the pollyfills below to another project and the build started to fail with the same error but this time with proper plural translations.
import '@formatjs/intl-getcanonicallocales/polyfill'
import '@formatjs/intl-locale/polyfill'
import '@formatjs/intl-pluralrules/locale-data/de'
import '@formatjs/intl-pluralrules/locale-data/en'
import '@formatjs/intl-pluralrules/polyfill'

This seems to be related to the polyfill somehow. I just added the pollyfills below to another project and the build started to fail with the same error but this time with proper plural translations.
import '@formatjs/intl-getcanonicallocales/polyfill'
import '@formatjs/intl-locale/polyfill'
import '@formatjs/intl-pluralrules/locale-data/de'
import '@formatjs/intl-pluralrules/locale-data/en'
import '@formatjs/intl-pluralrules/polyfill'

Ok so the issue was actually using a Node.js version (12.x) without built-in Intl support. Upgrading to 14.x fixed both issues. For anyone else running into this: https://formatjs.io/docs/react-intl/#nodejs

Ok so the issue was actually using a Node.js version (12.x) without built-in Intl support. Upgrading to 14.x fixed both issues. For anyone else running into this: https://formatjs.io/docs/react-intl/#nodejs


Ronald ladu John

Name
Ronald Ladu John
Profile Image

Country
Uganda
Region
Rhino Camp/Westnile
Organisation
Platform African
Languages
Bari,Arabic, English,
Skill 1
Community & Moderation
Data collector and analyzer with Open Data tools like Kobo-Collect, ODK
Qualifications for Skill 1
certificate
*A trainer of ICT
*Mapper
*Data collecter
Skill 2
No response
Qualifications for Skill 2
No response
Skill 3
No response
Qualifications for Skill 3
No response
Skill 4
No response
Qualifications for Skill 4
No response
describe yourself
I'm a refugee in Uganda Rhino Camp refugee settlement working with platform African as an ICT trainer and a mapper with open Street map south Sudan
With my passion for creating change in communities, I have managed to create open map data in south Sudan via remote mapping to be used for interventions by humanitarian agencies
E-Mail
<EMAIL_ADDRESS>Phone
+256778277025
WhatsApp
+256778277025
Website
No response
Telegram
No response
GitHub
No response
LinkedIn
No response
Twitter
No response
Facebook
No response
Instagram
No response
Mastodon
No response
WikiFab
No response
Other
No response

great to have you in the LEAD ... Experts Directory! But .... PLEASE be careful with little errors like punctuation, capitalization, spelling etc ....

@alorogordonpaul could you please find in more info about Ladu's contacts at least a telegram number.
and the Email seems to be wrong!

i still think the skills and qualification are sallow, for him to be called an expert,  @alorogordonpaul can you go back and chat with him, and since you know him please tell us what do he do apart from data collection and analysis.
in the part of describe yourself, i also think there is not need to repeat the Rhino camp, since it 's captured in the regions. and also we all know that he is a refugee, here let tell the world what can you do.

@alorogordonpaul I think it could great if you split the skills into two

Data Security & Research — e.g. data collection  and analysis
Community & Moderation — e.g. event facilitation (facilitating the ICT training)


Automatically score Vulcan assets

This proposal is a first step towards extending Vulcan to score assets automatically. It proposes an implementation that extends the data model of the Vulcan Assets to include the Blast Radius Score calculated by the Security Graph. This implementation also covers the services required to keep this score up-to-date. It takes into account that, in the future, we will integrate automatic scores from other data sources.
It is out of the scope of this proposal:

Redesigning the current manual scoring implementation used by Vulcan.
Extending Vulcan to take automatic actions based on a combination of manual and automatic scores.

Design document: https://github.com/adevinta/graph-proposal/blob/auto-score/design/1-auto-score.md
Pull request: https://github.com/adevinta/graph-proposal/pull/2

I like the proposal. I think that, although we still have a lot of uncertainty about how we are going to use the automatic scores, the proposal handles well that uncertainty by storing an array of "automatic" scores.  In any case, I have minor comments regarding the details of the solution:

Related to the process implemented in the cron job

Between the time we get an asset to be updated and the time we effectively update its score, that asset could have been removed from some or all its teams and we will have to just discard the update. That's not a deal breaker because, in any case, we can't guarantee that after the process runs, all the assets in the vulcan-api will have a blast radius score, but I'm mentioning this here because maybe it's worth adding to the proposal how we are going to address this problem.

I also think we should document in the proposal that our aim in the future is to continue having just one process updating all the scores stored in the AutoScore field. That's because if in the future we want to have one component for updating the blast radius and, for instance, one component for updating other automatic score, the coordination between them is going to be hard as they are going to update the same field. I'm okey with this trade off, I just think we should document it.

I think we should reflect in the design document that we accept that, in the future, we could need to add other columns related to scores if we want to use these scores to sort the results of queries. That's because the data stored in the field can't not be directly use to sort because is not just a number but something more complex. By now, as we only plan to sort the findings in the UI by the blast radius of the asset it affects just as a secondary criteria (the first one will continue to be the criticality) it won't be a problem.

Archived repository.


Setup Code Scanning on datadog-api-client-python

Static code analysis on datadog-api-client-python using Github's Code Scanning.
This PR has Github workflow configs to trigger the Code Scanning on every PR and on push to master branch. As of now only default security based CodeQL queries are configured. We can gradually add queries for Code Quality later.

This is pretty slow, do we have to run it on every PR? Is there a way to make it faster?

@therve If it slows down the pipeline, we can make it to run on every push to default branch. But running on PR helps to find the issues before they get merged to default branch. It is a part of Datadog compliance requirements to regularly perform code-scanning on all the customer installed code.

@therve If it slows down the pipeline, we can make it to run on every push to default branch. But running on PR helps to find the issues before they get merged to default branch. It is a part of Datadog compliance requirements to regularly perform code-scanning on all the customer installed code.

Right if you don't mind, I'd reduce it master push. This should fill the requirements while not having bad effect on the pipeline.

I've removed scanning on every PR. Please let me know if the PR looks good 🙇


Adding new route

When I am adding a new route its by default redirecting to the task route again
when I comment the else part of route-resolver
else if (auth.authenticated && `/${pathname}` !== POST_SIGN_IN_PATH) {
     //replace({pathname: POST_SIGN_IN_PATH});
   }

than its working but page is reloading whenever I change the route.
please suggest a suitable solution

@lvtrvd take a look at this example branch: https://github.com/r-park/todo-react-redux/tree/issue-31

Thanks for your support, its working fine
I have a query also, How can I redirect or change route with onClick function
like in flux or normal redux I can use history.pushState(null, /path)
is there any suitable way to do this in component
Thanks for your support

The easiest way to navigate routes onClick is to use the <Link /> component from react-router.
import { Link } from 'react-router';

<Link to="/">Home</Link>

You can also gain access to the router itself via component context:
export class MyComponent extends Component {
  static contextTypes = {
    router: React.PropTypes.object.isRequired
  };

  handleClick() {
    this.context.router.push('/users/12')
  }
}

Thanks for your support
its working fine now.


[spdlog] Build error

Host Environment

OS: [e.g. Windows]
Compiler: revision

To Reproduce
vcpkg.json[spdlog]
the project path  have  chinese character.
if remove the chinese character ,only have  english character , vcpkg will install sucess
Failure logs
1> 已为配置“x86-Debug”启动 CMake 生成。
1> 发现和使用 vcpkg 工具链文件(E:/Codes/vcpkg/scripts/buildsystems/vcpkg.cmake)。
1> 命令行: "C:\WINDOWS\system32\cmd.exe" /c "%SYSTEMROOT%\System32\chcp.com 65001 >NUL && "C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe"  -G "Ninja"  -DCMAKE_BUILD_TYPE:STRING="Debug" -DCMAKE_INSTALL_PREFIX:PATH="E:\Codes\Cloud_wu\长沙车站20220425\out\install\x86-Debug" -DCMAKE_CXX_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx86/x86/cl.exe"  -DCMAKE_MAKE_PROGRAM="C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\Ninja\ninja.exe" -DCMAKE_TOOLCHAIN_FILE="E:/Codes/vcpkg/scripts/buildsystems/vcpkg.cmake" "E:\Codes\Cloud_wu\长沙车站20220425" 2>&1"
1> 工作目录: E:\Codes\Cloud_wu\长沙车站20220425\out\build\x86-Debug
1> [CMake] -- Running vcpkg install
1> [CMake] Detecting compiler hash for triplet x64-windows...
1> [CMake] -- Automatically setting HTTP(S)_PROXY environment variables to <IP_ADDRESS>:7890
1> [CMake] Detecting compiler hash for triplet x86-windows...
1> [CMake] The following packages will be built and installed:
1> [CMake]   * fmt[core]:x86-windows -> 8.1.1#1
1> [CMake]     spdlog[core]:x86-windows -> 1.10.0
1> [CMake]   * vcpkg-cmake[core]:x64-windows -> 2022-04-12
1> [CMake]   * vcpkg-cmake-config[core]:x64-windows -> 2022-02-06
1> [CMake] Additional packages (*) will be modified to complete this operation.
1> [CMake] Restored 1 packages from C:\Users\daili\AppData\Local\vcpkg\archives in 86.7 ms.  Use --editable to skip cleaning for the packages you specify.
1> [CMake] -- Extracting source E:/Codes/vcpkg/downloads/fmtlib-fmt-8.1.1.tar.gz
1> [CMake] -- Applying patch fix-write-batch.patch
1> [CMake] -- Applying patch fix-invalid-command.patch
1> [CMake] -- Using source at E:/Codes/vcpkg/buildtrees/fmt/src/8.1.1-11f8359597.clean
1> [CMake] -- Found external ninja('1.10.2').
1> [CMake] -- Configuring x86-windows
1> [CMake] -- Building x86-windows-dbg
1> [CMake] -- Building x86-windows-rel
1> [CMake] -- Installing: E:/Codes/vcpkg/packages/fmt_x86-windows/share/fmt/copyright
1> [CMake] -- Fixing pkgconfig file: E:/Codes/vcpkg/packages/fmt_x86-windows/lib/pkgconfig/fmt.pc
1> [CMake] -- Using cached msys-mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst.
1> [CMake] -- Using cached msys-mingw-w64-i686-libwinpthread-git-<IP_ADDRESS>73.5be8fcd83-1-any.pkg.tar.zst.
1> [CMake] -- Using msys root at E:/Codes/vcpkg/downloads/tools/msys2/9a1ec3f33446b195
1> [CMake] -- Fixing pkgconfig file: E:/Codes/vcpkg/packages/fmt_x86-windows/debug/lib/pkgconfig/fmt.pc
1> [CMake] -- Installing: E:/Codes/vcpkg/packages/fmt_x86-windows/share/fmt/usage
1> [CMake] -- Performing post-build validation
1> [CMake] -- Performing post-build validation done
1> [CMake] Stored binary cache: C:\Users\daili\AppData\Local\vcpkg\archives\08\0860b4da8a12822e36ec6d6dfee630db7b70e2f62fddb1297de6ffdb56eb10b5.zip
1> [CMake] Installing package fmt[core]:x86-windows...
1> [CMake] Elapsed time for package fmt:x86-windows: 10.31 s
1> [CMake] Starting package 4/4: spdlog:x86-windows
1> [CMake] Building package spdlog[core]:x86-windows...
1> [CMake] -- Downloading https://github.com/gabime/spdlog/archive/v1.10.0.tar.gz -> gabime-spdlog-v1.10.0.tar.gz...
1> [CMake] -- Extracting source E:/Codes/vcpkg/downloads/gabime-spdlog-v1.10.0.tar.gz
1> [CMake] -- Using source at E:/Codes/vcpkg/buildtrees/spdlog/src/v1.10.0-3cbe543323.clean
1> [CMake] -- Found external ninja('1.10.2').
1> [CMake] -- Configuring x86-windows
1> [CMake] CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:128 (message):
1> [CMake]     Command failed: ninja -v
1> [CMake]     Working Directory: E:/Codes/vcpkg/buildtrees/spdlog/x86-windows-rel/vcpkg-parallel-configure
1> [CMake]     Error code: 1
1> [CMake]     See logs for more information:
1> [CMake]       E:\Codes\vcpkg\buildtrees\spdlog\config-x86-windows-out.log
1> [CMake]
1> [CMake] Call Stack (most recent call first):
1> [CMake]   E:/Codes/Cloud_wu/长沙车站20220425/out/build/x86-Debug/vcpkg_installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:346 (vcpkg_execute_required_process)
1> [CMake]   ports/spdlog/portfile.cmake:29 (vcpkg_cmake_configure)
1> [CMake]   scripts/ports.cmake:145 (include)
1> [CMake] error: building spdlog:x86-windows failed with: BUILD_FAILED
1> [CMake] Please ensure you're using the latest portfiles with `git pull` and `.\vcpkg update`.
1> [CMake] Then check for known issues at:
1> [CMake]   https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+spdlog
1> [CMake] You can submit a new issue at:
1> [CMake]   https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[spdlog]+Build+error
1> [CMake] including:
1> [CMake]   package: spdlog[core]:x86-windows -> 1.10.0
1> [CMake]     vcpkg-tool version: 2022-03-30-692785ac944e81417840c6de244fb3e18a4b35eb
1> [CMake]     vcpkg-scripts version: 2ac61f87f 2022-04-22 (3 days ago)
1> [CMake]
1> [CMake] Additionally, attach any relevant sections from the log files above.
1> [CMake] -- Running vcpkg install - failed
1> [CMake] CMake Error at E:/Codes/vcpkg/scripts/buildsystems/vcpkg.cmake:850 (message):
1> [CMake]   vcpkg install failed.  See logs for more information:
1> [CMake]   E:\Codes\Cloud_wu\长沙车站20220425\out\build\x86-Debug\vcpkg-manifest-install.log
1> [CMake] Call Stack (most recent call first):
1> [CMake]   C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.20/Modules/CMakeDetermineSystem.cmake:123 (include)
1> [CMake]   CMakeLists.txt:4 (project)
1> [CMake] -- Configuring incomplete, errors occurred!
1> “C:\WINDOWS\system32\cmd.exe”“/c "%SYSTEMROOT%\System32\chcp.com 65001 >NUL && "C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe"  -G "Ninja"  -DCMAKE_BUILD_TYPE:STRING="Debug" -DCMAKE_INSTALL_PREFIX:PATH="E:\Codes\Cloud_wu\长沙车站20220425\out\install\x86-Debug" -DCMAKE_CXX_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx86/x86/cl.exe"  -DCMAKE_MAKE_PROGRAM="C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\Ninja\ninja.exe" -DCMAKE_TOOLCHAIN_FILE="E:/Codes/vcpkg/scripts/buildsystems/vcpkg.cmake" "E:\Codes\Cloud_wu\长沙车站20220425" 2>&1"”执行失败，出现错误:““C:\WINDOWS\system32\cmd.exe”“/c "%SYSTEMROOT%\System32\chcp.com 65001 >NUL && "C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe"  -G "Ninja"  -DCMAKE_BUILD_TYPE:STRING="Debug" -DCMAKE_INSTALL_PREFIX:PATH="E:\Codes\Cloud_wu\长沙车站20220425\out\install\x86-Debug" -DCMAKE_CXX_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx86/x86/cl.exe"  -DCMAKE_MAKE_PROGRAM="C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\Ninja\ninja.exe" -DCMAKE_TOOLCHAIN_FILE="E:/Codes/vcpkg/scripts/buildsystems/vcpkg.cmake" "E:\Codes\Cloud_wu\长沙车站20220425" 2>&1"”已返回，并带有退出代码: 1”。

config-x86-windows-out.log
vcpkg-manifest-install.log
Additional context
Add any other context about the problem here, such as what you have already tried to resolve the issue.

if remove the chinese character ,only have english character , vcpkg will install sucess

Yeah, this is the reason of build failed.

if remove the chinese character ,only have english character , vcpkg will install sucess

Yeah, this is the reason of build failed.

so can we  support non english file path?

The better way to use English file path, use other languages may have some error, like this issue.

We hope your question was answered to your satisfaction; if it wasn't, you can reopen with more info.


pthreads interop question

Hi @afanfa and @rouson,
Marco was wondering if he could safely use CAF with pthreads. Please see his initial question below. I don't foresee any issue, as long as the MPI implementation is interoperable, right?

Hi,
I am an aerospace engineer from Milan, and I have a question about coarrays.
In particular I wrote a fortran interface to pthread and I plan to use pthread with coarrays. Have you got any suggestion. Is there something to know about code portability?
Best regards,
Mirco valentini

There might be problems. Using OpenMP, my recommendation would be to avoid CAF statements withing OpenMP constructs. Pthreads are more general than OpenMP and bad things may happen.

Closing issue because due to inactivity.


Localization does not work for some cases

Examples of locators:
contains(@text,'{L10N:elementLocalized}')]")
@FindBy(xpath = "//*[@resource-id = 'element' and contains(@text,'{L10N:elementLocalized}')]")]")
private ExtendedWebElement element;

Cause in format method of ExtendedWebElement

Verified by @akamarouski

Will be added auto test for verification https://github.com/zebrunner/carina-demo/issues/310


Fix trt allocator, convert nodes logic, etc

This PR fixes a few things:

broken python tests caused by string<->bytes conversion issue in python 3
#21248, whose root-cause is the converter sets the ITensor name multiple times which change the input binding name incorrectly
naming conflicts in RegisterSegmentFunctionToFunctionLibrary (function parameter and local variable have same name name)
trt allocator crashes when allocating 0 size tensors. I also change the type of all size related parameters from size_t to int64_t, since on different platforms size_t have different meanings.

@pooyadavoodi please help to take a look, thanks.

All looks good. Thanks @aaroey


Repo sync for protected CLA branch

The pull request is created from main637852933622721347 to main to fix git push error for protected CLA branch

@opbld17 : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Embedding not reproducible? [token_representation] giving different results each time

Hello,
I was trying to get the embedding representations from the MSA transformer.
The code:
import torch
import esm

# Load ESM-1b model
model, alphabet = esm.pretrained.esm_msa1_t12_100M_UR50S()
batch_converter = alphabet.get_batch_converter()

# Prepare data (first 2 sequences from ESMStructuralSplitDataset superfamily / 4)
data = [
    ("protein1", "MKTVRQERLKSIVRILERSKEPVSGAQLAEELSVSRQVIVQDIAYLRSLGYNIVATPRGYVLAGG"),
    ("protein2", "MKTVRQERLKSIVRILERSKEPVSGAQLAEELSVSRQVIVQDIAYLRSLGYIIVATPRGYVLAGG"),
]
batch_labels, batch_strs, batch_tokens = batch_converter(data)

# Extract per-residue representations (on CPU)
with torch.no_grad():
    results = model(batch_tokens, repr_layers=[12], return_contacts=True)
token_representations = results["representations"][12]

Each time that I run the code, token_representations is different. Is this the expected behavior?

Ah thanks for calling that out! The models have some dropout in them, so to make them non-stochastic you should change the model to eval() mode; call model.eval() after loading it. This is happening in the extract.py script but the README quickstart example could also do that.

Thanks, I will do that.

It worked fine. If you want to fix the readme before closing... If not we can close the issue.

let's leave README as-is, extracting features with dropout can make sense. Definitely for small datasets, can add some extra regularization, why not :)

I understand that the model was trained on MSAs with an average depth of 1192. In the provided example with only two sequences, how does the MSA Transformer adapt? Is it designed to handle varying sequence numbers (single sequences or many sequences) effectively during inference/embedding? @tomsercu @gaceladri
Thank you in advance for your help!


Error: gatsby-source-wordpress | self signed certificate

Hello,
i use gatsby-wordpress in a docker environment, locally i use traefik to create my SSL certificates.
The problem is the following error:
gatsby develop

error  gatsby-source-wordpress  self signed certificate

GraphQL request to https://dw-wordpress.localhost/graphql failed.

Please ensure the following statements are true
  - your WordPress URL is correct in gatsby-config.js
  - your server is responding to requests
  - WPGraphQL and WPGatsby are installed in your WordPress backend
not finished createSchemaCustomization - 0.135s

When I call up the URL in my browser it works. Apparently gatsby has a problem with self created certificates?!
The plugins were also installed and activated.
Any idea?

I believe this is actually node rejecting it. You should be able to set process.env.NODE_TLS_REJECT_UNAUTHORIZED to 0 to get around it. But is there even a reason to use https on localhost? It's probably easier to just use http for your local dev sites.


[GLUTEN-5136][VL] Duplicated output from Spark-to-Velox broadcast relation conversion

https://github.com/apache/incubator-gluten/issues/5136
Will be tested by https://github.com/apache/incubator-gluten/pull/5058. It's probably not a trivial code path and may delay adding dedicated UTs.

cc @ulysses-you

Thank you @zhztheplayer for the quick fix. After this pr if there is no c2r, the duplicate keys issue is still existed right ?

Thank you @zhztheplayer for the quick fix. After this pr if there is no c2r, the duplicate keys issue is still existed right ?

After the fix is applied we should no longer have any relevant issues on BHJ unless unknown.
The issue this PR tried to fix only happened when broadcast exchange is fallen back but bhj is not. Which is a corner case for current Gluten, usually they are both fallen back or both not. Thus ideally we shouldn't have this issue in usual bhj processing.

I see, thank you for the explaination!


SSL not working when leaving 'www' out of the domain

Before opening, please confirm:

[X] I have checked the custom domains troubleshooting guide.
[X] I have read the guide for submitting bug reports.
[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

App Id
dm5g332ltk8gl
Region
us-east-2
Step
Domain Activation
Status
The required CNAME records are not yet configured for the below subdomains. Click "Actions > View DNS Records" and configure the required CNAME records with your DNS provider:
Issue or question
I have already changed DNS, it's all working fine, except the following:
My app domain is: https://www.thetri.app
However if I go to https://thetri.app it gives an SSL error (not secure).
It should work fine for both addresses, I already read troubleshoots guides, and talked to domain provider support. This has to be fixed in the AWS end.
Error message
Error code(Firefox): SSL_ERROR_BAD_CERT_DOMAIN

Hi @Gui-JVale, sorry that you are running into this.
Did you initially have the redirect set up from https://<your-domain>.com to https://www.<your-domain>.com when you added the domain?
This can be set in App Settings -> Domain Management:

And then after adding :

Yes, that's how I setup in the beginning. It looks the same as the screenshot you sent. What else should I do?

Do the rewrites also match this logic (for the redirect)?
App Settings -> Rewrites and redirects

Almost the same except it's a 302(temporary redirect) instead of a 301. Do you think that's the issue? Thanks

When I view the cert for your domain above, it looks like the cert is valid.  When I view the TLD (without www.), it looks like the cert is coming from another provider (possibly from the provider?)
If this isn't familiar, have you tried removing and re-adding the custom domain as mentioned here? - https://github.com/aws-amplify/amplify-console/issues/66#issuecomment-525009758
If the domain is being migrated, possibly validating your previous steps to set up against - https://github.com/aws-amplify/amplify-console/blob/master/FAQ.md#how-do-i-migrate-domains-to-amplify-with-minimal-downtime.

ok I redid the domain, but as happened before, it gets stuck on this last step. I configured the CNAME, is there any more configuration that I should do?

Please I really need to get this fixed!

@siegerts any updates?

Hi @Gui-JVale , apologies for the delay. It looks like your DNS records for the bare domain (thetri.app) doesn't point to the Amplify app whereas the DNS for *.thetri.app does point to the app.
This may be related to how the DNS is configured. Can you confirm that you've configured DNS settings as outlined in the DNS record section?

@siegerts talked to go daddy, they told me to update my A record with the IP address of the app. But they told me I have to buy an SSL for the domain without the 'www', that's not the case since AWS provides one right?
Also I couldn't find the app's IP address nowhere, how do I get that info?

If you're using GoDaddy, then follow these steps below. It outlines the process for linking everything up using the DNS records provided to you in the Amplify console for the app.
https://docs.aws.amazon.com/amplify/latest/userguide/to-add-a-custom-domain-managed-by-godaddy.html

@siegerts Those were the steps I followed twice and didn't solve the problem. They told me I just need the IP address and once I configure the A record on Godaddys end it will work.
Can you please instruct me on how to get the app's IP address?
Thank you very much!

@siegerts any updates?

@siegerts Could you please instruct me on how to get the IP address of the app, so that I can setup the A record on GoDaddy and fix this??

@siegerts updates?

Hi @Gui-JVale, have you tried making Amazon Route 53 the DNS service for the existing domain?
That is the recommended approach since GoDaddy doesn’t support ANAME/ALIAS records. For these providers, we strongly recommend migrating your DNS to Amazon Route 53 to account for this (below) or possibly transferring to another host that does allow for this. Given the current limitations that you've run in to, I think that it makes sense to investigate a migration to Route 53 or other.
https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/MigratingDNS.html.
There isn't a single dedicated IP for your app that you can point to since it is a Cloudfront distribution and is a globally distributed by nature (i.e. requests are routed via DNS based on location of access and the IPs may always be changing, etc.).


mz_zip_writer_add_mem() with MZ_DEFAULT_COMPRESSION always hits assert()

When calling mz_zip_writer_add_mem() with levels_and_flags set to MZ_DEFAULT_COMPRESSON (ie "-1") the assert
MZ_ASSERT(bit_flags & MZ_ZIP_LDH_BIT_FLAG_HAS_LOCATOR);
in mz_zip_writer_add_mem_ex_v2() (miniz_zip.c line 3360) always fails with a non-zero buf_size.
This appears to be because the flags are set to -1, so all bits are set. This causes the test:
if (uncomp_size || (buf_size && !(level_and_flags & MZ_ZIP_FLAG_COMPRESSED_DATA)))
to fail, as (level_and_flags & MZ_ZIP_FLAG_COMPRESSED_DATA) is true. This means the following line is never executed:
bit_flags |= MZ_ZIP_LDH_BIT_FLAG_HAS_LOCATOR;
Then, the following code is run:
if ((int)level_and_flags < 0)     level_and_flags = MZ_DEFAULT_LEVEL;
This appears to be trying to catch the MZ_DEFAULT_COMPRESSION case. Should this check have been done before the MZ_ZIP_FLAG_COMPRESSED_DATA check? As otherwise this then falls through to if (uncomp_size) on line 3355, and then the assert mentioned above.
Note - this can be repro'd in miniz_tester.cpp, mode "a" with the "-a" option, if you modify one of the mz_zip_writer_add_file() calls to use MZ_DEFAULT_COMPRESSON
Note 2 - the line numbers etc. are based on revision 0f6b199

Pulled your fix with https://github.com/richgel999/miniz/commit/9c88e826a251db9be4611a570e73995ecde66914


it doesnt get build for document db client 1.2.0. I think it is wrongly mentioned in package.config

I used - Uninstall-Package Microsoft.Azure.DocumentDB and Install-Package Microsoft.Azure.DocumentDB to each of the projects in sample code to fix this issue.
"Install-Package Microsoft.Azure.DocumentDB" will basically install version 1.1.0 which is currently the published one on nuget.

I assume you mean one of the latest samples, correct? Which one are you trying to run? If it's Order By, then you will have to wait until we publish the 1.2 NuGet package, which should be later this week.

For all samples, other than Order By, you should be able to build against 1.1

its good. just needed to build the project with 1.1


Add ghcode shortcode for rendering github content

Proposed changes
Adds shortcode for rendering github content at build time.
{{< ghcode "https://raw.githubusercontent.com/nginxinc/kubernetes-ingress/refs/heads/main/examples/custom-resources/access-control/access-control-policy-allow.yaml" "hl_lines=4" >}}

If the url provided does not exist, it will throw an error referencing the url and source of shortcode usage.
ERROR Unable to load github content from https://raw.githubusercontent.com/nginrnetes-is/heads/main/examples/custom-resources/access-control/access-control-policy-allow.yaml from "\x1b[1;36m\"/Users/j.hickey/Documents/github/docs/content/nginx-one/about.md:29:1\"\x1b[0m"

Checklist
Before creating a PR, run through this checklist and mark each as complete.

[x] I have read the CONTRIBUTING document
[x] If applicable, I have added tests that prove my fix is effective or that my feature works
[x] If applicable, I have checked that any relevant tests pass after adding my changes
[x] I have updated any relevant documentation (README.md and CHANGELOG.md)

Branch Tested:


Updated docs to indicate scope param required for Google OAuth

Coverage remained the same at 92.143% when pulling 5ebd4e3dbfd47fac16d81ae9d6b746da08a5e663 on chriswessels:patch-1 into 4c6faf50d244cb087b137dbbd2f600867dc8e130 on tarent:master.


build failed

building with stack failed giving following message :
Zettel               > configure (lib + exe)
Warning: Zettel.cabal:50:3: Unknown field: "extra-source-files"
Configuring Zettel-<IP_ADDRESS>...
Warning: For packages using 'cabal-version: >= 1.10' the 'extensions' field is
deprecated. The new 'default-extensions' field lists extensions that are used
in all modules in the component, while the 'other-extensions' field lists
extensions that are used in some modules, e.g. via the {-# LANGUAGE #-}
pragma.
Zettel               > build (lib + exe)
Preprocessing library for Zettel-<IP_ADDRESS>..
Cabal-simple_mPHDZzAJ_<IP_ADDRESS>_ghc-8.8.3: can't find source for ZettelKasten in
src, .stack-work/dist/x86_64-linux/Cabal-<IP_ADDRESS>/build/autogen,
.stack-work/dist/x86_64-linux/Cabal-<IP_ADDRESS>/build/global-autogen
Completed 67 action(s).
--  While building package Zettel-<IP_ADDRESS> using:
/home/zenova/projects/haskell/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_<IP_ADDRESS>_ghc-8.8.3 --builddir=.stack-work/dist/x86_64-linux/Cabal-<IP_ADDRESS> build lib:Zettel exe:Zettel --ghc-options " -fdiagnostics-color=always"
Process exited with code: ExitFailure 1

Hi!
Thank you for reporting this. I think I've been sloppy and forgotten a file from git.
I've hopefully fixed it and a build from clone of efe4fc1cc18039dfb0d3ef79a97b547791e29d6a succeeds for me now.

after update of repository, zettel is built successfully.
from the usage point, i would like to make some suggestions.

file names contain werird characters

there is some name conflict found when using Zettel. I have copied Zettel to zettel ( with lower case - two executables ) to remove the error message.

opening in vim gives accessibility to commands, mappings are not available .

i also request to provide some elaborative examples to understand your software approach to ZettelKasten.

sorry for making all these requests , though you have stated "This is a program build by me and for me"

No problem! Fixing stuff like this will improve the program for me as well. But, you'll need some patience for both me and the program :)
bc22f6a70da921b502379f35f1ee3d0e279ee4ea should fix the Zettel / zettel issue. OS X is rather stupidly case insensitive and typos like this are pretty hard to find.
The weird characters in file names are intentional at this point. The box you're seeing is missing counterbracket to ⟦, ie ⟧ and the random characters inside the brackets are there so that zettels created in different computers (aka. work/home) can be safely merged without collisions.
I'm really not happy with the file-name scheme, but fixing it takes some thinking. I'll make an issue to track this. However, as the filenames aren't used by themselves all that much, I think that this is mostly an aesthetic issue.
For the mapping issues, could you possibly run :autocmd zettel in your vim after opening the zettel you've created? I'm really a newbie with vimscript, so I've probably screwed up with it.
I can make some use videos at some point, but these will take time. I'll see if I can make one or two tomorrow to see if they'd help.

running autocmd zettel gives output :

So, it gets loaded. Perhaps this is documentation issue, since the vimscript uses , as localleader. You can either use your localleader instead of ,(use :let maplocalleader to see what it is) or  add let maplocalleader=',' to your vim config if you want to use , (or replace with your favourite key).
I'll fix the readme about this today.

Also, added a really random exposition video. If I'd do similar for

Creating your first note
Adding notes and links
Navigating with wikilinks
Fuzzy finding

Would that suffice for starting out?

updated zettel-hs giving error while building:
/home/murali/Downloads/Zettel-hs-master/app/Main.hs:404:13: error:
Variable not in scope: printLabels :: [Link] -> IO ()
|
404 |             printLabels labeledLinks
|             ^^^^^^^^^^^
--  While building package Zettel-<IP_ADDRESS> using:
/home/zenova/projects/haskell/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_<IP_ADDRESS>_ghc-8.8.3 --builddir=.stack-work/dist/x86_64-linux/Cabal-<IP_ADDRESS> build lib:Zettel exe:Zettel --ghc-options " -fdiagnostics-color=always"
Process exited with code: ExitFailure 1

Hi,
Sorry. I seem to have pushed to the wrong branch on hurry.
Fixed in 5b44d9b0e8f65c30c6eebf2c947a8cd9a6491f44

now zettel compiled without error.
please ensure single command name i.e; zettel. no other command in linux start with capital letter.
commands like Zcre,ZTreeView,Zfill,Zf,ZextZlnk are loaded in vim.  other commands and mappings like ZResolve,ZettelRecent,PasteQuote,ZettelLink are not loading at all.

I went and acquired a blank linux for testing. I think I've now fixed the badly-cased binary issue for good. If any of the commands invoke the lowercase zettel, please let me know.
Your vim issue seems rather odd. I'm certainly no vimscript expert, but I can't see how part of the file is loading and part is not. Can you show me snippet from your init.vim that shows how you set localleader and how you source the file?
Also, can you tell me what :nmap and  :vmap commands return for you?

i am failing to build with error output :
Preprocessing library for Zettel-<IP_ADDRESS>..
Building library for Zettel-<IP_ADDRESS>..
[1 of 9] Compiling Prelude
[2 of 9] Compiling Meta.History
[3 of 9] Compiling Visualization
[4 of 9] Compiling Zettel
[5 of 9] Compiling Parser
[6 of 9] Compiling Operations
[7 of 9] Compiling Meta.Linkage
[8 of 9] Compiling ZettelKasten
[9 of 9] Compiling Elucidations
Preprocessing executable 'Zettel' for Zettel-<IP_ADDRESS>..
Building executable 'Zettel' for Zettel-<IP_ADDRESS>..
[1 of 1] Compiling Main
/home/murali/Downloads/Zettel-hs/app/Main.hs:409:57: error:
• Variable not in scope: placeholder :: Text
• Perhaps you meant data constructor ‘Placeholder’ (imported from Operations)
|
409 |                        (replacePlaceholder (Placeholder placeholder) labels
|                                                         ^^^^^^^^^^^
--  While building package Zettel-<IP_ADDRESS> using:
/home/zenova/projects/haskell/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_<IP_ADDRESS>_ghc-8.8.3 --builddir=.stack-work/dist/x86_64-linux/Cabal-<IP_ADDRESS> build lib:Zettel exe:Zettel --ghc-options " -fdiagnostics-color=always"
Process exited with code: ExitFailure 1

Fixed. Pushed a wip in accident. Will figure out some strategy to avoid these in the future.

thanks for your suggestions.
there is some problem with vim key mapping from my side. zettel leder key is mapped to "" instead of my vimrc setting "," .  mapped keys worked as intended with change of leader key.
zp - pbpaste has problem on my linux machine. I have bypassed that problem by providing some aliases to shell configuration.
alias pbcopy='xclip -selection clipboard'
alias pbpaste='xclip -selection clipboard -o'
now this program just began to provide value for using with some pain areas like file naming with odd characters. I have not still tried tantivy.
I have some problem with zettel neighbourhood (\zn) . preview is not working.
I have attached screenshot below.

Perhaps you've sourced the zettel.vim before setting the localleader? To my limited understanding, it might be that nmaps don't actually store <localleader> but instead resolve it while doing the binding. So, perhaps try swapping them if that'd help?
Also, I will at some point add a configuration file with which you could choose commands like pbpaste and even fzf to your liking. But that still needs some thought.
Could I ask for bit more details on the neighbour issue? The neighbours command looks at the links, but it doesn't actually check if the files are there. Other option is some encoding issue. Could you paste an ls output of your ~/zettel so I'd have a hint which it is?
Good to know.

❯ ls ~/zettel
2020-4-16-morning-⟦མཙ⟧-hello.zettel  2020-4-20-evening-⟦ᤀᤁ⟧-sedsed.zettel  2020-4-20-evening-⟦རᤔ⟧-nomino.zettel  2020-4-21-afternoon-⟦ᤈ7⟧-covid

Hi again,
Sorry for taking so long, but I've been occupied with work-related stuff.
Have you renamed your files or created them manually? The program shouldn't add extensions to files by itself. The links are stored in a database so you don't need to scan files to extract things like neighbourhoods and it previously had no means for detecting external changes.
8e46e4ba47570489d0c3b295c6bddcca70a6c138 introduces a "rescan" command that will re-index your zettels after manual changes. Also, it will now try to update links when you open zettels.