Bash-style string manipulation

Bash has a nice in-string DSL for substitutions and manipulations such as:
> str=abcABC123ABCabc

# Strip out shortest match between 'a' and 'C'.
> echo ${str#a*C}
123ABCabc

These are detailed here: https://www.tldp.org/LDP/abs/html/string-manipulation.html
Some of these might not apply to PowerShell because of methods already on [string] or because they're not useful enough to justify what's probably a breaking change. But worth considering.

The perhaps not so obvious name of this feature is shell parameter expansion.
While the feature is POSIX-mandated, Bash implements several extensions: http://mywiki.wooledge.org/BashGuide/Parameters#Parameter_Expansion has a concise overview, and the manual page is at  https://www.gnu.org/software/bash/manual/bashref.html#Shell-Parameter-Expansion
Generally, while parameter expansion is definitely convenient and concise, on the flip side the syntax is cryptic and hard to remember.
At least technically it is definitely a breaking change, because # is a legal character in PowerShell variable names; while perhaps unlikely that such names are used in the wild, the likelihood increases with the several other characters used in the various parameter-expansion features, namely, -, =, :, ?, +, !, @, /.

Yes I deliberately avoided conflating this with parameter expansion, since despite overlap in bash, there's no good reason for PowerShell to relate them and PowerShell arguably handles parameters much better.
My intent here is to discuss whether bash's string manipulation functionality is useful enough to consider implementing in PowerShell (be it as an in-string DSL, in string formatting, or as script methods).
I actually opened the issue after @JamesWTruher sent me a very old list of feature ideas for Monad. This and &&/|| are the only things left on it that aren't in PowerShell.

Thanks for the clarification, @rjmholt, but note that parameter is simply the name that POSIX-like shells give to both arguments and variables - the former are positional parameters (e.g, $1), the latter are named parameters (e.g, $var), and the parameter expansion works equally with both.
In other words: your example is an instance of parameter expansion, as are the features in the document you link to.
To help with fleshing out what features PowerShell may benefit from, here's the list:

Syntax
Description

${parameter:-word}
Use Default Value. If 'parameter' is unset or null, 'word' (which may be an expansion) is substituted. Otherwise, the value of 'parameter' is substituted.

${parameter:=word}
Assign Default Value. If 'parameter' is unset or null, 'word' (which may be an expansion) is assigned to 'parameter'. The value of 'parameter' is then substituted.

${parameter:+word}
Use Alternate Value. If 'parameter' is null or unset, nothing is substituted, otherwise 'word' (which may be an expansion) is substituted.

${parameter:offset:length}
Substring Expansion. Expands to up to 'length' characters of 'parameter' starting at the character specified by 'offset' (0-indexed). If ':length' is omitted, go all the way to the end. If 'offset' is negative (use parentheses!), count backward from the end of 'parameter' instead of forward from the beginning. If 'parameter' is @ or an indexed array name subscripted by @ or *, the result is 'length' positional parameters or members of the array, respectively, starting from 'offset'.

${#parameter}
The length in characters of the value of 'parameter' is substituted. If 'parameter' is an array name subscripted by @ or *, return the number of elements.

${parameter#pattern}
The 'pattern' is matched against the beginning of 'parameter'. The result is the expanded value of 'parameter' with the shortest match deleted. If 'parameter' is an array name subscripted by @ or *, this will be done on each element. Same for all following items.

${parameter##pattern}
As above, but the longest match is deleted.

${parameter%pattern}
The 'pattern' is matched against the end of 'parameter'. The result is the expanded value of 'parameter' with the shortest match deleted.

${parameter%%pattern}
As above, but the longest match is deleted.

${parameter/pat/string}
Results in the expanded value of 'parameter' with the first (unanchored) match of 'pat' replaced by 'string'. Assume null string when the '/string' part is absent.

${parameter//pat/string}
As above, but every match of 'pat' is replaced.

${parameter/#pat/string}
As above, but matched against the beginning. Useful for adding a common prefix with a null pattern: "${array[@]/#/prefix}".

${parameter/%pat/string}
As above, but matched against the end. Useful for adding a common suffix with a null pattern.

A few thoughts:

I think we can ignore ${#parameter}, given that $var.Length can be used on string variables (and arrays, though it's better to use .Count for collections).

The ${parameter:-word}, ${parameter:=word} and ${parameter:+word} features could conceivably be covered by ternary conditionals and null-conditional operators - see #3239 and #3240

${parameter//pat/string} is covered by -replace, but variant ${parameter/pat/string}, which replaces only the first occurrence, has no counterpart.

While -replace offers more flexibility through use of regexes, literal use is currently cumbersome ([regex]::Escape()), so we could think about either a new operator or a syntax for verbatim regexes / wildcard patterns; related discussion: #9308

Arguably, -replace also has the various prefix (#) and suffix (%) stripping/substitution features covered.

That leaves us with ${parameter:offset:length} for positional substring extraction, which would be nice to have.

For arrays, the existing [...] syntax is already pretty flexible, though there's room for improvement - see #7940 and #7928
With the above indexing improvements, we could consider borrowing the array indexing syntax along the lines of:

$var = 'abcde'
# Wishful thinking
${var[1..]} # -> 'bcde'; equivalent of: ${var:1}
${var[1:2]} # -> 'bc'; equivalent of: ${var:1:2}
${var[-2..]} # -> 'de'; equivalent of: ${var: -2}
${var[1..@-1]} # -> 'bcd'; equivalent of: ${var:1:-1}


[DO NOT MERGE] Consolidate NuGet PackageReference in all the Projects

Fixes Build Error on #1473
Description
In the PR #1473 some changes were made on the Directory.Build.props file for adding the StyleCop.Analyzers NuGet package in all the projects as a PackageReference tag (in .csproj files). However, some projects (Microsoft.Bot.Builder.Integration.AspNet.WebApi.Tests & Microsoft.Bot.Builder.TestBot.WebApi) referenced the Nuget Packages through a package.config file, which added them as a Reference instead of PackageReference. As these items can't coexist, the Reference one were missed and, therefore, the Build Process fails.
Solution
For solving this problem, Microsoft.Bot.Builder.Integration.AspNet.WebApi.Tests & Microsoft.Bot.Builder.TestBot.WebApi projects were modified for not using the package.config file anymore and we added all the necessary NuGet packages as PackageReferences.
Also, some unnecessary Error Condition were removed, as they referenced the previous folder where the NuGet packages were previously installed

Pull Request Test Coverage Report for Build 51509

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

Totals

Change from base Build 51487:
0.0%

Covered Lines:
4226

Relevant Lines:
5611

💛  - Coveralls

I'm eagerly watching this. Please let me know when you think it'll be ready.
Having all those Stylecop PRs out there waiting to be merged is killing me!

I'm eagerly watching this. Please let me know when you think it'll be ready.
Having all those Stylecop PRs out there waiting to be merged is killing me!

Hi @cleemullins, we already added these changes into the PR #1473, which is properly building. If you agree, we can merge the PR #1473 and close this one.


Neoterics of SL Project Submission

Hi Team, please do not delete the default submissions.md file. Please resubmit PR without the deleted submisisons.md file


[BUG] Alerts cannot be sent to webhook due to "java.net.SocketException: Connection reset"

What is the bug?
After setting up an Alert Monitor which is sending alerts to a custom webhook and verifying that in general the alerts are sent to the webhook successfully, alerts are very often not being sent due to a connection reset issue after some time has passed.
Example: When editing a Monitor there is the possibility to "Send test message". When creating the monitor sending the test message works. After waiting ~30-60 mins it fails with status code 500 and "Failed to send webhook message Connection reset" (which you can see in the browser developer tools and the OpenSearch Dashboard notification popup in that case).
But also if you just wait for the actual alerts being sent by the monitor the often result in this failed state.
When getting the "connection reset" error using the "Send test message" button, the first retry always succeeded.
First idea: Improve / Introduce retry logic in the OpenSearch client when this happens.
It could have something todo with the monitor setup, not sure, I will share the monitor information below.
With this configuration I could reproduce it for OpenSearch 1.3.15 and 2.12.0. It occurred for us when sending alerts to both, MS Teams and Slack as well as for the destination types slack and custom webhook.
Assumption: The issue seems to be on the OpenSearch side since otherwise there would also be the error message "Connection reset by peer".
Respective log of the OpenSearch data node:
[2024-04-12T06:52:05,486][ERROR][o.o.a.d.f.CustomWebhookDestinationFactory] [opensearch-data-1] Exception publishing Message: DestinationType: CUSTOMWEBHOOK, DestinationName:my-teams-channel, Url: https://<I_redacted_it>, scheme: HTTPS, Host: null, Port: -1, Path: null, Method: POST, Message: {
    "@type": "MessageCard",
    "@context": "http://schema.org/extensions",
    "themeColor": "0076D7",
    "summary": "My-Summary",
    "sections": [{
        "activityTitle": "OpenSearch Alert",
        "activitySubtitle": "Trigger: test-trigger",
        "activityImage": "https://teamsnodesample.azurewebsites.net/static/img/image5.png",
        "facts": [{
            "name": "Period start",
            "value": "2024-04-12T04:52:05.475Z"
        }, {
            "name": "Period end",
            "value": "2024-04-12T06:52:05.475Z"
        }, {
            "name": "Error",
            "value": ""
        }, {
            "name": "Raw",
            "value": "{monitor={_id=Ow03zY4BedGE4-daHuXs, _version=5, name=Test alerts, enabled=true}, results=[{_shards={total=1, failed=0, successful=1, skipped=0}, hits={hits=[], total={value=2, relation=eq}, max_score=null}, took=3, timed_out=false}], periodStart=2024-04-12T04:52:05.475Z, periodEnd=2024-04-12T06:52:05.475Z, error=null, trigger={id=OQ03zY4BedGE4-daHuXj, name=test-trigger, severity=1, actions=[{name=My Action}]}, alert={acknowledged_time=null, id=Qw04zY4BedGE4-daDuUP, version=-1, end_time=null, error_message=null, last_notification_time=1712897527013, severity=1, start_time=1712839986700, state=ACTIVE, bucket_keys=null, parent_bucket_path=null}}"
        }],
        "markdown": true
    }]
}
java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(SocketInputStream.java:186) ~[?:?]
    at java.net.SocketInputStream.read(SocketInputStream.java:140) ~[?:?]
    at sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:484) ~[?:?]
    at sun.security.ssl.SSLSocketInputRecord.readHeader(SSLSocketInputRecord.java:478) ~[?:?]
    at sun.security.ssl.SSLSocketInputRecord.bytesInCompletePacket(SSLSocketInputRecord.java:70) ~[?:?]
    at sun.security.ssl.SSLSocketImpl.readApplicationRecord(SSLSocketImpl.java:1459) ~[?:?]
    at sun.security.ssl.SSLSocketImpl$AppInputStream.read(SSLSocketImpl.java:1070) ~[?:?]
    at org.apache.http.impl.io.SessionInputBufferImpl.streamRead(SessionInputBufferImpl.java:137) ~[httpcore-4.4.12.jar:4.4.12]
    at org.apache.http.impl.io.SessionInputBufferImpl.fillBuffer(SessionInputBufferImpl.java:153) ~[httpcore-4.4.12.jar:4.4.12]
    at org.apache.http.impl.io.SessionInputBufferImpl.readLine(SessionInputBufferImpl.java:280) ~[httpcore-4.4.12.jar:4.4.12]
    at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:138) ~[httpclient-4.5.13.jar:4.5.13]
    at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56) ~[httpclient-4.5.13.jar:4.5.13]
    at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259) ~[httpcore-4.4.12.jar:4.4.12]
    at org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:163) ~[httpcore-4.4.12.jar:4.4.12]
    at org.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(CPoolProxy.java:157) ~[httpclient-4.5.13.jar:4.5.13]
    at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273) ~[httpcore-4.4.12.jar:4.4.12]
    at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125) ~[httpcore-4.4.12.jar:4.4.12]
    at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:272) ~[httpclient-4.5.13.jar:4.5.13]
    at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186) ~[httpclient-4.5.13.jar:4.5.13]
    at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) ~[httpclient-4.5.13.jar:4.5.13]
    at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) ~[httpclient-4.5.13.jar:4.5.13]
    at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) ~[httpclient-4.5.13.jar:4.5.13]
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) ~[httpclient-4.5.13.jar:4.5.13]
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108) ~[httpclient-4.5.13.jar:4.5.13]
    at org.opensearch.alerting.destination.client.DestinationHttpClient.getHttpResponse(DestinationHttpClient.java:127) ~[alerting-notification-<IP_ADDRESS>.jar:?]
    at org.opensearch.alerting.destination.client.DestinationHttpClient.execute(DestinationHttpClient.java:90) ~[alerting-notification-<IP_ADDRESS>.jar:?]
    at org.opensearch.alerting.destination.factory.CustomWebhookDestinationFactory.publish(CustomWebhookDestinationFactory.java:32) [alerting-notification-<IP_ADDRESS>.jar:?]
    at org.opensearch.alerting.destination.factory.CustomWebhookDestinationFactory.publish(CustomWebhookDestinationFactory.java:19) [alerting-notification-<IP_ADDRESS>.jar:?]
    at org.opensearch.alerting.destination.Notification.lambda$publish$0(Notification.java:35) [alerting-notification-<IP_ADDRESS>.jar:?]
    at java.security.AccessController.doPrivileged(Native Method) [?:?]
    at org.opensearch.alerting.destination.Notification.publish(Notification.java:33) [alerting-notification-<IP_ADDRESS>.jar:?]
    at org.opensearch.alerting.model.destination.Destination.publish(Destination.kt:298) [opensearch-alerting-<IP_ADDRESS>.jar:<IP_ADDRESS>]
    at org.opensearch.alerting.MonitorRunner$runAction$2.invokeSuspend(MonitorRunner.kt:659) [opensearch-alerting-<IP_ADDRESS>.jar:<IP_ADDRESS>]
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) [kotlin-stdlib-1.6.10.jar:1.6.10-release-923(1.6.10)]
    at kotlinx.coroutines.DispatchedTask.run(Dispatched.kt:233) [kotlinx-coroutines-core-1.1.1.jar:?]
    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:594) [kotlinx-coroutines-core-1.1.1.jar:?]
    at kotlinx.coroutines.scheduling.CoroutineScheduler.access$runSafely(CoroutineScheduler.kt:60) [kotlinx-coroutines-core-1.1.1.jar:?]
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:742) [kotlinx-coroutines-core-1.1.1.jar:?]
[2024-04-12T06:52:05,490][INFO ][o.o.a.m.MonitorRunResult ] [opensearch-data-1] Internal error: java.net.SocketException: Connection reset. See the opensearch.log for details
java.lang.IllegalStateException: java.net.SocketException: Connection reset
    at org.opensearch.alerting.destination.factory.CustomWebhookDestinationFactory.publish(CustomWebhookDestinationFactory.java:36) ~[alerting-notification-<IP_ADDRESS>.jar:?]
    at org.opensearch.alerting.destination.factory.CustomWebhookDestinationFactory.publish(CustomWebhookDestinationFactory.java:19) ~[alerting-notification-<IP_ADDRESS>.jar:?]
    at org.opensearch.alerting.destination.Notification.lambda$publish$0(Notification.java:35) ~[alerting-notification-<IP_ADDRESS>.jar:?]
    at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
    at org.opensearch.alerting.destination.Notification.publish(Notification.java:33) ~[alerting-notification-<IP_ADDRESS>.jar:?]
    at org.opensearch.alerting.model.destination.Destination.publish(Destination.kt:298) ~[opensearch-alerting-<IP_ADDRESS>.jar:<IP_ADDRESS>]
    at org.opensearch.alerting.MonitorRunner$runAction$2.invokeSuspend(MonitorRunner.kt:659) ~[opensearch-alerting-<IP_ADDRESS>.jar:<IP_ADDRESS>]
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) [kotlin-stdlib-1.6.10.jar:1.6.10-release-923(1.6.10)]
    at kotlinx.coroutines.DispatchedTask.run(Dispatched.kt:233) [kotlinx-coroutines-core-1.1.1.jar:?]
    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:594) [kotlinx-coroutines-core-1.1.1.jar:?]
    at kotlinx.coroutines.scheduling.CoroutineScheduler.access$runSafely(CoroutineScheduler.kt:60) [kotlinx-coroutines-core-1.1.1.jar:?]
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:742) [kotlinx-coroutines-core-1.1.1.jar:?]
Caused by: java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(SocketInputStream.java:186) ~[?:?]
    at java.net.SocketInputStream.read(SocketInputStream.java:140) ~[?:?]
    at sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:484) ~[?:?]
    at sun.security.ssl.SSLSocketInputRecord.readHeader(SSLSocketInputRecord.java:478) ~[?:?]
    at sun.security.ssl.SSLSocketInputRecord.bytesInCompletePacket(SSLSocketInputRecord.java:70) ~[?:?]
    at sun.security.ssl.SSLSocketImpl.readApplicationRecord(SSLSocketImpl.java:1459) ~[?:?]
    at sun.security.ssl.SSLSocketImpl$AppInputStream.read(SSLSocketImpl.java:1070) ~[?:?]
    at org.apache.http.impl.io.SessionInputBufferImpl.streamRead(SessionInputBufferImpl.java:137) ~[httpcore-4.4.12.jar:4.4.12]
    at org.apache.http.impl.io.SessionInputBufferImpl.fillBuffer(SessionInputBufferImpl.java:153) ~[httpcore-4.4.12.jar:4.4.12]
    at org.apache.http.impl.io.SessionInputBufferImpl.readLine(SessionInputBufferImpl.java:280) ~[httpcore-4.4.12.jar:4.4.12]
    at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:138) ~[httpclient-4.5.13.jar:4.5.13]
    at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56) ~[httpclient-4.5.13.jar:4.5.13]
    at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259) ~[httpcore-4.4.12.jar:4.4.12]
    at org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:163) ~[httpcore-4.4.12.jar:4.4.12]
    at org.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(CPoolProxy.java:157) ~[httpclient-4.5.13.jar:4.5.13]
    at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273) ~[httpcore-4.4.12.jar:4.4.12]
    at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125) ~[httpcore-4.4.12.jar:4.4.12]
    at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:272) ~[httpclient-4.5.13.jar:4.5.13]
    at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186) ~[httpclient-4.5.13.jar:4.5.13]
    at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) ~[httpclient-4.5.13.jar:4.5.13]
    at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) ~[httpclient-4.5.13.jar:4.5.13]
    at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) ~[httpclient-4.5.13.jar:4.5.13]
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) ~[httpclient-4.5.13.jar:4.5.13]
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108) ~[httpclient-4.5.13.jar:4.5.13]
    at org.opensearch.alerting.destination.client.DestinationHttpClient.getHttpResponse(DestinationHttpClient.java:127) ~[alerting-notification-<IP_ADDRESS>.jar:?]
    at org.opensearch.alerting.destination.client.DestinationHttpClient.execute(DestinationHttpClient.java:90) ~[alerting-notification-<IP_ADDRESS>.jar:?]
    at org.opensearch.alerting.destination.factory.CustomWebhookDestinationFactory.publish(CustomWebhookDestinationFactory.java:32) ~[alerting-notification-<IP_ADDRESS>.jar:?]
    ... 11 more

How can one reproduce the bug?
Steps to reproduce the behavior:

Prerequisite: Setup a custom webhook you can send alert notifications to. I created a MS Teams channel & webhook as described here. There might be better online tools for testing webhooks.

Create a sample index with 1 document like this:
PUT sample-index/_doc/<id_placeholder>
{
  "numberField": 5,
  "my-time": "2024/04/22 12:38:00" //current date
}

Create a destination (in newer versions called "notification channel") with the webhook URL and in my case method POST and Content-Type: application/json

Create a Monitor:

per query monitor; running every 2 hours; using sample-index as data source and my-time as time field;
For the query use the visual editor; configure to check the document count for the last 24days
For the trigger: trigger when doc count is above 0
For the action: send a message to the created destination, e.g. for teams (reference):

{
    "@type": "MessageCard",
    "@context": "http://schema.org/extensions",
    "themeColor": "0076D7",
    "summary": "My-Summary",
    "sections": [{
        "activityTitle": "OpenSearch Alert",
        "activitySubtitle": "Trigger: {{ctx.trigger.name}}",
        "activityImage": "https://teamsnodesample.azurewebsites.net/static/img/image5.png",
        "facts": [{
            "name": "Period start",
            "value": "{{ctx.periodStart}}"
        }, {
            "name": "Period end",
            "value": "{{ctx.periodEnd}}"
        }, {
            "name": "Error",
            "value": "{{ctx.error}}"
        }, {
            "name": "Raw",
            "value": "{{ctx}}"
        }],
        "markdown": true
    }]
}

Verify that sending the test message works.

Create the monitor.

Wait for 1 hour & send the test message again to see the connection reset issue
Or: Just wait e.g. 1 day until the alerts were triggered (every 2 hours). Some of them will be sent successfully and some of them are failed. For that: Click on the alert under "Alerts" to see its state.

What is the expected behavior?
If the connection gets reset, I expect that OpenSearch will take care of re-establishing the connection and/or retry the requests.
What is your host/environment?

Versions: 1.3.15 & 2.12.0
Plugins: OpenSearch alerting

Do you have any screenshots?

Do you have any additional context?

When querying the alerts via GET _plugins/_alerting/monitors/alerts?monitorId=<id_placeholder>, this is a sample output (with OS 2.12.):
The monitor was running 1 day, many alerts are send successfully while other alerts are not send due to the connection reset error.
I also tried to run the monitor in 20 min intervals instead of 2hours. Almost every second alert is not send.
{
  "alerts": [
    {
      "id": "sJSsBo8BomAnsTMDF0PN",
      "version": 11,
      "monitor_id": "kHM-Bo8Bgaj1Kgd4LjPY",
      "workflow_id": "",
      "workflow_name": "",
      "associated_alert_ids": [],
      "schema_version": 5,
      "monitor_version": 1,
      "monitor_name": "My Test Monitor",
      "execution_id": "kHM-Bo8Bgaj1Kgd4LjPY_2024-04-22T16:38:09.502091053_6c5c58a6-3eaf-4283-ae57-88801bb703f4",
      "trigger_id": "jnM-Bo8Bgaj1Kgd4LTP6",
      "trigger_name": "My-Test-Trigger",
      "finding_ids": [],
      "related_doc_ids": [],
      "state": "ACTIVE",
      "error_message": null,
      "alert_history": [
        {
          "timestamp":<PHONE_NUMBER>538,
          "message": """Failed running action:
OpenSearchStatusException[{"event_status_list": [{"config_id":"iXM7Bo8Bgaj1Kgd4bDNq","config_type":"webhook","config_name":"My Channel","email_recipient_status":[],"delivery_status":{"status_code":"500","status_text":"Failed to send webhook message Connection reset"}}]}]"""
        },
        {
          "timestamp":<PHONE_NUMBER>430,
          "message": """Failed running action:
OpenSearchStatusException[{"event_status_list": [{"config_id":"iXM7Bo8Bgaj1Kgd4bDNq","config_type":"webhook","config_name":"My Channel","email_recipient_status":[],"delivery_status":{"status_code":"500","status_text":"Failed to send webhook message Connection reset"}}]}]"""
        },
        {
          "timestamp":<PHONE_NUMBER>444,
          "message": """Failed running action:
OpenSearchStatusException[{"event_status_list": [{"config_id":"iXM7Bo8Bgaj1Kgd4bDNq","config_type":"webhook","config_name":"My Channel","email_recipient_status":[],"delivery_status":{"status_code":"500","status_text":"Failed to send webhook message Connection reset"}}]}]"""
        },
        {
          "timestamp":<PHONE_NUMBER>518,
          "message": """Failed running action:
OpenSearchStatusException[{"event_status_list": [{"config_id":"iXM7Bo8Bgaj1Kgd4bDNq","config_type":"webhook","config_name":"My Channel","email_recipient_status":[],"delivery_status":{"status_code":"500","status_text":"Failed to send webhook message Connection reset"}}]}]"""
        },
        {
          "timestamp":<PHONE_NUMBER>532,
          "message": """Failed running action:
OpenSearchStatusException[{"event_status_list": [{"config_id":"iXM7Bo8Bgaj1Kgd4bDNq","config_type":"webhook","config_name":"My Channel","email_recipient_status":[],"delivery_status":{"status_code":"500","status_text":"Failed to send webhook message Connection reset"}}]}]"""
        }
      ],
      "severity": "1",
      "action_execution_results": [
        {
          "action_id": "notification167289",
          "last_execution_time":<PHONE_NUMBER>185,
          "throttled_count": 0
        }
      ],
      "start_time":<PHONE_NUMBER>665,
      "last_notification_time":<PHONE_NUMBER>370,
      "end_time": null,
      "acknowledged_time": null
    }
  ],
  "totalAlerts": 1
}

added to backlog.

Any news on this one ? I encounter the same issue.


jnlp secret for authentication if security is enabled in jenkins

Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests

Awesome. Thanks!

This is great.  Thanks for taking point...


Default interface methods cause errors

Hello,
I get this error:

ERROR:root:Syntax error in ../CompositeCheckFactory.java: Expected ';' at final line 24, character 9

The interface looks like this:
public interface CompositeCheckFactory<T extends Tradeable> {

    default List<Rule<T>> getRulesList(final Config config, final Map<String, Rule<T>> baseRules) {
       ...
}

Same here, would be great to support Java 8, but seems that javalang has not made a release that supports Java 8 yet.
I have tried to get around this problem by excluding files with interfaces with default methods, but I cannot get excludes to work at all (they are not handled by regular expressions, even though the command-line argument documentation says so).
Perhaps a command-line flag that ignores parse errors would be a workaround for now?

Version 0.10.2 of javalang was just released: c2nes/javalang#34


Fixed DD_PROCESS_AGENT_ENABLED and DD_PROCESS_CONFIG_ENABLED bug

What does this PR do?

Removes the Unknown environment variable message when using DD_PROCESS_AGENT_ENABLED or DD_PROCESS_CONFIG_ENABLED environment variables.
Motivation

This fix is meant to address a bug introduced by https://github.com/DataDog/datadog-agent/pull/9646
Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes
Run the process agent with DD_PROCESS_AGENT_ENABLED=true and make sure the Unknown environment variable message does not appear. Then, repeat this process with DD_PROCESS_CONFIG=true.

Reviewer's Checklist

[ ] If known, an appropriate milestone has been selected; otherwise the Triage milestone is set.
[ ] The appropriate team/.. label has been applied, if known.
[ ] Use the major_change label if your change either has a major impact on the code base, is impacting multiple teams or is changing important well-established internals of the Agent. This label will be use during QA to make sure each team pay extra attention to the changed behavior. For any customer facing change use a releasenote.
[ ] A release note has been added or the changelog/no-changelog label has been applied.
[ ] Changed code has automated tests for its functionality.
[ ] Adequate QA/testing plan information is provided if the qa/skip-qa label is not applied.
[ ] If applicable, docs team has been notified or an issue has been opened on the documentation repo.
[ ] If applicable, the need-change/operator and need-change/helm labels have been applied.
[ ] If applicable, the config template has been updated.

This fix looks good, but I'm confused about process__agent_.enabled and process__config_.enabled. It looks like before this patch, DD_PROCESS_AGENT_ENABLED=true led to process_config.enabled being true. But after, only DD_PROCESS_CONFIG_ENABLED=true would do so. Is that intentional?

Hey, thank you for the comment! 👋
Our team needs to support both DD_PROCESS_AGENT_ and DD_PROCESS_CONFIG_ prefixes. So instead of using config.BindEnvAndSetDefault directly, we use our own helper called procBindEnvAndSetDefault, which defines the variable for both prefixes. So as long as we are using that helper this change should still make both environment variables valid.

I added a fix for system-probe environment variables, and updated the testing steps.


get_vendor_for_mac() fails for bluetooth devices

Home Assistant release (hass --version):
0.35.3
Python release (python3 --version):
3.4.2
Component/platform:
bluetooth_tracker
Description of problem:
It appears that get_vendor_for_mac() tries to get the vendor for bluetooth devices and fails. It probably shouldn't do so.
Traceback (if applicable):
ERROR:homeassistant.core:Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.4/asyncio/tasks.py", line 237, in _step
    result = next(coro)
  File "/srv/hass/lib/python3.4/site-packages/homeassistant/components/device_tracker/__init__.py", line 285, in async_see
    yield from device.set_vendor_for_mac()
  File "/srv/hass/lib/python3.4/site-packages/homeassistant/components/device_tracker/__init__.py", line 479, in set_vendor_for_mac
    self.vendor = yield from self.get_vendor_for_mac()
  File "/srv/hass/lib/python3.4/site-packages/homeassistant/components/device_tracker/__init__.py", line 496, in get_vendor_for_mac
    oui = '{:02x}:{:02x}:{:02x}'.format(*[int(b, 16) for b in oui_bytes])
  File "/srv/hass/lib/python3.4/site-packages/homeassistant/components/device_tracker/__init__.py", line 496, in <listcomp>
    oui = '{:02x}:{:02x}:{:02x}'.format(*[int(b, 16) for b in oui_bytes])
ValueError: invalid literal for int() with base 16: 'BT_00

I ran into the same issue - it looks like it's resolved in PR #5052


⚠ Bofrost.at has degraded performance

In 021c688, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2047 ms

Resolved: Bofrost.at performance has improved in ad13e1b after 9 minutes.


[NTR] subtypes of tanycyte - alpha1,2; Beta 1,2

Please check that the term does not already exist by using the ontology search tool OLS:
https://www.ebi.ac.uk/ols4/ontologies/cl
Preferred term label
alpha 1 tanycyte
alpha 2 tanycyte
beta 1 tanycyte
beta 2 tanycyte
Synonyms (add reference(s), please)
Definition (free text, with reference(s), please. PubMed ID format is PMID:XXXXXX)
Review here: DOI: 10.1016/S0074-7696(05)47003-5
Table II has a good summary of differences in location, morphology and gene expression.  Looks like location and morphology might be sufficient to distinguish.

May be worth looking back at some more classical papers - review references EM studies from the 70s.
Parent cell type term (check the hierarchy here https://www.ebi.ac.uk/ols4/ontologies/cl)
Anatomical structure where the cell type is found (check Uberon for anatomical structures: https://www.ebi.ac.uk/ols4/ontologies/uberon)
Your ORCID
Additional notes or concerns

Notes - needed for:

whole mouse brain
["HypoMap – a unified single cell gene expression atlas of the murine hypothalamus"] | ["https://cellxgene.cziscience.com/collections/d86517f0-fa7e-4266-b82e-a521350d6d36"] | ["https://doi.org/10.1038/s42255-022-00657-y"]

Additional refs:
https://www.frontiersin.org/journals/neuroscience/articles/10.3389/fnins.2015.00387/full
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5323293/
See also:
https://cellxgene.cziscience.com/cellguide/CL_0002085 - Can we use this for an extended description for the general term?

@dosumis thanks for your ticket.
Would you like me to add the CxG link as a database_cross_reference ?
Here there is the work to do for these cell types
tanycyte
A specialized elongated ventricular ependymal cell that has processes that extend to the outer, or pial, surface of the CNS. A tanycyte is found in the adult brain, specifically in the third ventricle, cerebral aqueduct, spinal canal, and floor of the fourth ventricle. This cell type is involved in hormonal regulation, gatekeeping molecules between the bloodstream and cerebrospinal fluid, metabolic sensing, and regulating food intake.
has_broad_synonym
radial glia-like cell
PMID:29351662
has_broad_synonym
residual radial glia cell
PMID:29351662
has_related_synonym
stretched cells
https://doi.org/10.1016/B978-0-12-820584-6.00016-7

[tanycyte]
Definition is great, no amends.
Database_cross_reference to be added once David confirms
has_broad_synonym
radial glia-like cell
PMID:29351662
Paper cited frequently uses “resemblance to radial glial cells”  which means the same as “radial glia-like cell”, but can't find the specific wording in the paper.
has_broad_synonym
residual radial glia cell
PMID:29351662
“residual radial glia cell” does not exist in paper
However, stretched cells exist in this paper.
has_related_synonym
stretched cells
https://doi.org/10.1016/B978-0-12-820584-6.00016-7
Can’t access this document. Suggest replacing reference with PMID:29351662
α1-tanycyte
Definition: Looks great, no amends
database_cross_reference:
https://en.wikipedia.org/wiki/Tanycyte  confirms location in ventromedial nucleus and the dorsomedial nucleus
PMID:26578855 confirms α-tanycyte processes lack blood vessel contact and that  It expresses the glial marker S-100β.


Storm framework consumes all mesos resources

Whenever I start the storm-mesos nimbus framework in mesos, it grabs all the available resources, without a single topology submitted. In my little 3-node mesos-slave cluster I have 3.3 CPUs and 13.5GB Mem free before I start the storm-mesos nimbus, and 0 CPU's and 0 Mem immediately after. This is as reported on the mesos console.
Switching to the Frameworks tab on the mesos console shows Storm with 0 Active Tasks, 3.1 CPUs and 11.5GB Memory.
Before Storm

After Storm

The nimbus log does report that it is declining offers every 10 seconds or so ...
2015-06-24T17:59:36.377+0000 s.m.MesosNimbus [INFO] Declining offers because no topologies need assignments
2015-06-24T17:59:46.388+0000 s.m.MesosNimbus [INFO] Declining offers because no topologies need assignments

Is it normal to expect this? I expected to consume no resources until a topology is submitted, then it would consume whatever the topology required.

This is correct, what you see CPUs and Mem in Activate Frameworks are resources offered, rather than used.

@dlaidlaw : yeaah.... so what you're witnessing is one of the biggest problems with Storm's mesos Scheduler:  it hoards resources.  It does release those resources back to the cluster on a rotating basis, but it still holds onto resources for awhile.  The reason it needs to hoard resources at all is that "normally" Storm's scheduling model expects that resources are statically present (as "slots" into which it can assign Storm worker processes).  However, when Storm runs in mesos there are no preexisting slots.  Instead we need to fabricate slots out of the resource offers, using each topology's configured resource demands (CPU, mem) to size the "slots".
I've worked a bit with @tnachen on some changes to potentially avoid hoarding (only hold resources when a topology is in need of assignment).  Unfortunately, when I first tested them in my company's environment they seemed to lead to very odd failure cases where the Storm Nimbus got confused about what was actually running.  I need to come back to those changes at some point, but it's honestly not a very high priority for me right now.

@brndnmtthws has made some changes in #65 that enable filtering of declined resources for a period of 2 minutes (by default) after those resources have sat idle in the MesosNimbus's _offers buffer for a period of 75 seconds.
Here is the derivation of 75 seconds:

RotatingMap.DEFAULT_NUM_BUCKETS * rotate_period
(3) * (1000ms * 2.5 * 10)

75 seconds

So I believe this will make the hoarding problem much better, and might obviate the need for "avoiding hoarding until there are pending topologies", which I referenced above.

After our work on PR #154 we now have much better understanding of how Storm ends up scheduling work, and we actually have control over whether workers are actually scheduled.  So I believe we can work on preventing the hoarding of resources.  i.e., we will experiment with only starting to accumulate Offers when we have a topology that is in need of more slots.

Another idea that was proposed by @tnachen: limit the total number of CPUs (and maybe other resources) that the framework will use.  We'd need to store that state somewhere, unclear where.

This is fixed by the change in #200.

v0.2.4+ has this fix.  For v0.1.x (storm-0.x support) we haven't done a release yet.


chore(main): release 1.6.1

:robot: I have created a release beep boop
1.6.1 (2024-12-26)
Bug Fixes

deps: update dependency pytest-cov to v6 (#64) (0923d55)
deps: update dependency ruff to ~=0.8.4 (#70) (3e4d246)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/BLSQ/openhexa-toolbox/releases/tag/v1.6.1 :sunflower:


IconToolbarItem default color is black

Hello,
At first, thank you for your work.
I'm using IconToolbarItem in my application. It works well but the icon color is black by default.
How can I tell Iconize to set the IconToolbarItem color to the inherited theme color?
I dont' want to specify a particular color, I wan't to reproduce the same behavior than the default xamarin ToolbarItem witch is black on UWP, white on Android, and blue on IOS.
Thank you!

I assume you use Xamarin.Forms.
Have you tried to define a global style for every IconToolbarItem in App.xaml?
Something like this
<OnPlatform x:Key="IconToolbarItemColor"
            x:TypeArguments="Color"
            Android="White"
            WinPhone="Black"
            iOS="Blue" />
<Style TargetType="iconize:IconToolbarItem">
        <Setter Property="IconColor" Value="{DynamicResource IconToolbarItemColor}" />
</Style>

Besides that..  does IconToolBarItem work in your UWP applications? For me it doesn't.

Icons also aren't working on UWP for me


test(eo-runtime): reproduce eo app bug when calling varargs func

EO app fails with an exception You can't overwrite X when it tries to call a varargs function. The error occurs within varargs function during its datarization. We reproduced it here by a test and introduced a todo to fix it.
Ref: #414

@yegor256 please, check the test that reproduces the bug and merge if all things are right.

@baudoliver7 see one comment above, you can make your tests much more compact. Also, I would suggest reproducing it FIRST in runtime-tests.eo with EO code. Then, with Java.

@baudoliver7 see one comment above, you can make your tests much more compact. Also, I would suggest reproducing it FIRST in runtime-tests.eo with EO code. Then, with Java.

@yegor256 How could I execute an EO test ?

@yegor256 I see now. EO tests execute automatically :-)
I uncomment the test since it is not yet resolved.

@yegor256 please, see latest changes.

@baudoliver7 see comments above. You are using too many variables. Read this: https://www.yegor256.com/2015/09/01/redundant-variables-are-evil.html

@yegor256 please, see my latest changes.

@baudoliver7 see above

@rultor merge

@rultor merge

@yegor256 OK, I'll try to merge now. You can check the progress of the merge here

@rultor merge

@yegor256 Done! FYI, the full log is here (took me 9min)


Meta-issue: is this repo going to be maintained again or should we switch to one of the forks?

It has been a long time since this repo has seen any activity, and I have the feeling that @fhessel is too busy with other things to get back to maintaining it. And the library has completely stopped working with newer versions of IDF and newer boards.
I had a look at the various forks (one by me, @jackjansen , one by @sdrshnptl, one by @jasenk2), but I most liked https://github.com/tmmsunny012/esp32_https_server by @tmmsunny012, which seems to be active at the moment, and which seems to incorporate most of the important pull requests from the other forks.
So, a question, @tmmsunny012, I'm tempted to switch to your repo, if you don't mind, and if you think you will have the time and willingness to keep maintaining it for the near future, or until @fhessel returns.
I would volunteer myself, except that I won't be able to promise to spend enough time on maintenance (my interest in esp32_https_server is for projects that are pretty far down my day to day priority list).

Hmm, I was a bit too quick, I think. https://github.com/tmmsunny012/esp32_https_server does not seem to be stable at the moment.

Hi ,
I forked it 2 days ago and was experimenting on different pull Request. We
can maintain it once we nicely merge the pull request.
On Sun 7. Jul 2024 at 17:33, Jack Jansen @.***> wrote:

Hmm, I was a bit too quick, I think.
https://github.com/tmmsunny012/esp32_https_server does not seem to be
stable at the moment.
—
Reply to this email directly, view it on GitHub
https://github.com/fhessel/esp32_https_server/issues/184#issuecomment-2212486865,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIP3FRSR4YQEIWQCAKSJUCDZLFNT3AVCNFSM6AAAAABKPMEIFWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJSGQ4DMOBWGU
.
You are receiving this because you were mentioned.Message ID:
@.***>


Allow sending custom properties in POSTed JSON

:bulb: Idea
When publishing a notification using JSON, it would be useful to allow sending additional custom properties which will be forwarded verbatim to the mobile front end (assuming one uses a self-hosted ntfy server and builds their own mobile app). These additional properties could be nested under the toplevel "extras" property in the POSTed JSON.
:computer: Target components
This is a feature request for the ntfy server.
Example:
{
  "topic": "1234",
  // existing properties
  "message": "foo",
  "title": "bar",
  // additional custom properties
  "extras": {
    "customField": "baz"
  }
}

What would be the goal of this? Why not just send a custom JSON string as the body of the notification?

The ntfy server currently only understands predefined properties in the POSTed JSON. Added custom properties do not get forwarded to the frontend. Use case is for self-hosted nfty servers with a custom frontend that needs fields beyond the known message, title etc.
This is the relevant discussion with @binwiederhier .

I understand what you're asking for (and I agree with binwiederhier that it'd probably be easy to implement), but I don't understand why sending an (escaped) JSON string as the body of the message doesn't work. If you're already building a custom frontend, then you don't need to use any of ntfy's existing fields (except to get your JSON string out).
The current ntfy response looks like this:
{
   "id":"fajyTv5FQ0iM",
   "time":1690985276,
   "expires":1691028476,
   "event":"message",
   "topic":"test",
   "message":"testing"
}

You want to change it to this:
{
   "id":"fajyTv5FQ0iM",
   "time":1690985276,
   "expires":1691028476,
   "event":"message",
   "topic":"test",
   "message":"testing"
    "extras": {
        "customField": "value"
    }
}

Then, after data = resp.json(), you could access the custom value at data.extras.customField
Why not do this?
{
   "id":"fajyTv5FQ0iM",
   "time":1690985276,
   "expires":1691028476,
   "event":"message",
   "topic":"test",
   "message":"\"{\"message\": \"testing\", \"customField\": \"value\"}\""
}

Then, after data = resp.json().message.json(), you could access the custom value at data.customField, right?

Just opened the issue because as @binwiederhier suggested
(a) this was something he had already considered doing before and
(b) the implementation is easy
Yes, what you propose would work. I'm not saying it wouldn't.
But cannibalizing the preexisting message that has very specific semantics, is a hackey workaround.

Got it. I hope you don't feel like I am dismissing the value of your proposal. I know other people have already been sending JSON strings with custom fields as the message, so I wanted to make sure you weren't having problems with that.
And I'm sure they will also be happy to have a convenient extras field where they can put additional information instead.
I will see if I can implement this sometime this week.

I don't feel like that at all. I completely understand you asking for justification esp. when it comes to feature requests. After all it is I who makes a request for your time and effort.
Much appreciated regardless of whether you go ahead with its implementation or not.

@wunter8 I see the fix. Would it be possible to also get arrays to be allowed values inside the extras object?

Any update on this?

Nope. Sorry. I've been busy with work and haven't been able to finish the Android side of things yet


Added: Fork check

Checklist

[ ] pull request base is set to stg branch if your pull request is from a fork
[ ] version number is updated or the package is new
[ ] project contains a valid license, specifically Apache v2.0.
[ ] project passes all sonar and coverity checks
[ ] project uploaded to the testpypi server using upload2testpypi label to trigger an upload
[ ] approval from code owners

Once all 6 of these criteria/tasks have been completed, the pr is ready to be merged and pushed to the pypi server.
:memo: NOTE if this PR contains changes that do not require a package update such as a modification to documentation or workflow files then label the PR 'non-release' to skip all these checks and avoid uploading a new change to the package server

Sonar Results: Passed :white_check_mark:
Coverity Results: Failed :X:
Link to job


Solved the event section calendar text overflowing issue

I have solved the Calendar text that was overflowing, in the event section.
issue #36
Before

After

.
.
Please merge this PR under the GSSoC'24 and Hacktoberfest.
I am contributing this project first time if in case i made any mistake so let me know.

Summary by CodeRabbit

Bug Fixes

Adjusted padding for calendar day elements to improve display on smaller screens.

hi @Nvntdad please read it
https://github.com/RamakrushnaBiswal/PlayCafe/pull/34#issuecomment-2388610561
also you made only one change and rise a PR how i will give the levels and all


Select2 single select with ajax

I have a select2 that i initialize like this:
            $('#navCompanies').select2({
                ajax: {
                    url: 'ajax/company/navigation.cfm',
                    dataType: 'json',
                    delay: 250,
                    data: function (params) {
                      return {
                        q: params.term, // search term
                        page: params.page || 1,
                        page_limit:20,
                        navState:newNavState
                      };
                    },
                    processResults: function (data, params) {
                      params.page = params.page || 1;
                      return {
                        results: data.items,
                        pagination: {
                         more: data.more
                        }
                      };
                    },
                    cache: false
                  },
                  minimumInputLength: 0
            });

When i click the select it successfully outputs 'Searching*" and then my results are returned and loaded as it should.
Then I do not select a result and click elsewhere so the select2 closes itself.  Next, I click somewhere in my nav menu (not tied to this select2 at all) and it loads a new page into the main container on my page, leaving the header which contains the select2 intact.  When i click on the select2 now, it does not trigger ajax, nor any message in console when debug is on, and instead just outputs 'No Results Found'.
Another issue which seems the same/related happens if i DO select one of the options returned.  In my case the main container on my page is loaded based on what i selected.  If i click the select2 again after it loads, it works still and searches and returns results.   However, if i click something in my nav menu that reloads different info into the main container (without touching select2 still) and then i click select2, it now shows only one result, which is the option that i selected the first time.  Again, no ajax request is made and nothing in the console from debugging occurs, it just has the one option that i clicked the first time.
I'm using Windows 10 and Chrome, but it was happening on windows 7 and chrome/ff/ie all the same.  It is hard to build a jsfiddle to show this example as it is integrated into our app so maybe something else is conflicting with it but even if i re-initialize the select2 it will work the first time, but if i trigger another link that loads content into the main div on my page, it will either say No Results found the next time i click it or only have any options which i have previously selected and not ajax anything new in.  The goal is that the select2 ALWAYS lazy loads and therefore should never enter this state where it is showing predefined messages (either No Results Found or the options i already selected) when clicked.
Anything i can do to try to help you help me solve I am open to!
THanks a lot,
Matt

This appears to be more of a usage question than a bug report or common feature request.  As we continue to keep the Select2 issue tracker geared towards these two areas, bug reports and common feature requests, we are redirecting usage questions to other communities such as the mailing list, IRC, or Stack Overflow.

I'm getting this similar sort of issue using angular1 :(


Comments are being submitted twice

I am using the ajax sample from your code and it throws exception for params. So I had to remove it (not sure what params need to be passed).
When I removed it, and tested the plugin, I notice that the comments are being submitted twice, also I can't click on edit/ delete. As I try, dropdown that has the options of edit/ delete disappear. Any idea?
Also I can't seem to be able to reply to existing comments.

Sure, the example templates were just missing the optional params variable. Feel free to remove that if you don't need it, but have updated the examples.
Are you getting any JS errors on page load, or when trying to submit/edit/delete a comment?


Cost insights migrate example

Hey, I just made a Pull Request!
Slight plugin reorg

Moves example code to standalone directory
Moves test utilities to standalone directory
Root plugin index file exports all public components.

:heavy_check_mark: Checklist

[ ] A changeset describing the change and affected packages. (more info)
[ ] Added or updated documentation
[ ] Tests for new functionality and regression tests for bug fixes
[ ] Screenshots attached (for UI changes)

Tugboat has finished building the preview for this pull request!
Link:

https://pr4786-gqen9bnhralmxcerrhdekx7m96loj6qk.tugboat.qa

Dashboard:

https://dashboard.tugboat.qa/603fbc1b65f817ffdf007e5b

Tugboat has finished building the preview for this pull request!
Link:

https://pr4786-gqen9bnhralmxcerrhdekx7m96loj6qk.tugboat.qa

Dashboard:

https://dashboard.tugboat.qa/603fbc1b65f817ffdf007e5b

Tugboat has finished building the preview for this pull request!
Link:

https://pr4786-gqen9bnhralmxcerrhdekx7m96loj6qk.tugboat.qa

Dashboard:

https://dashboard.tugboat.qa/603fbc1b65f817ffdf007e5b

Tugboat has finished building the preview for this pull request!
Link:

https://pr4786-gqen9bnhralmxcerrhdekx7m96loj6qk.tugboat.qa

Dashboard:

https://dashboard.tugboat.qa/603fbc1b65f817ffdf007e5b


Use bz2 to compress pickler output for better compression.

bz2 has better compression ration than zlib, but it is slower.
(on behalf of @katsiapis)

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
Post-Commit Tests Status (on master branch)
Lang | SDK | Dataflow | Flink | Samza | Spark
--- | --- | --- | --- | --- | --- | ---
Go |  | --- |  | --- |
Java |  |  |  |  |
Python |  |  |  | --- |
XLang | --- | --- |  | --- | --- |
Pre-Commit Tests Status (on master branch)

---
Java
Python
Go
Website

Non-portable

Portable
---

---
---

See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.

Note: Do not merge before 2.23 cut date. It would be good to merge for 2.24 and have the full 6 week cycle to see if benchmarks are affected.

R: @tvalentyn - Could you review this once you get a chance?

LGTM

Please do not merge yet. Running a few more tests.

Noting a related revert PR: https://github.com/apache/beam/pull/13183

Noting a related revert PR: https://github.com/apache/beam/pull/13183


api-umbrella-deploy user's password

I am trying to deploy from git (http://nrel.github.io/api-umbrella/docs/deployment/).
In this step "$ bundle exec cap production deploy", I need the api-umbrella-deploy's password. Which is?
Thank

I change a api-umbrella-deploy user's password and I can continue, but I get another error:
INFO [021cf794] Running /usr/bin/env mkdir -p /tmp/router/ as<EMAIL_ADDRESS>INFO [021cf794] Finished in 0.138 seconds with exit status 0 (successful).
....
INFO [d43c8069] Running /usr/bin/env sudo api-umbrella reload --router as<EMAIL_ADDRESS>(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as<EMAIL_ADDRESS>sudo exit status: 1
sudo stdout: Nothing written
sudo stderr: sudo: no tty present and no askpass program specified
SSHKit::Command::Failed: sudo exit status: 1
sudo stdout: Nothing written
sudo stderr: sudo: no tty present and no askpass program specified
Tasks: TOP => deploy:restart
(See full trace by running task with --trace)
The deploy has failed with an error: Exception while executing as<EMAIL_ADDRESS>sudo exit status: 1
sudo stdout: Nothing written
sudo stderr: sudo: no tty present and no askpass program specified
I am deploying in Ubuntu 14.04
Thanks

In our default setup instructions, the "api-umbrella-deploy" user doesn't actually have a password. Instead, we have you setup ssh keys for that account so the logins all happen via those keys rather than with a passowrd. However, if you want to use a password, like you setup, that's also fine.
This second error you ran into is I believe an omission in our installation scripts that will be fixed in the upcoming v0.7 package release, but I forgot to document in the current instructions. If you want to fix this now, can you try adding the following file to your server at /etc/sudoers.d/api-umbrella:
Defaults:api-umbrella-deploy !requiretty

Cmnd_Alias API_UMBRELLA_DEPLOY_COMMANDS = /etc/init.d/api-umbrella,/usr/bin/api-umbrella
api-umbrella-deploy ALL=(ALL) NOPASSWD:API_UMBRELLA_DEPLOY_COMMANDS

After putting that file into place on the server, do your deployments now work?

The new packages have been released which should include these sudoers fixes for deployments. So I'm going to close this issue, but please reopen if you're still running into any issues.


Fix #1

Thanks for the patch, @leezu! Couple comments about how you're catching the errors. I'd also ask that you add a unit test or two for catching those pycld2.errors.

LGTM, thanks again!


[Bugfix] Fix the redundant read request caused by mismatched buffer o…

What type of PR is this：

[x] bug
[ ] feature
[ ] enhancement
[ ] refactor
[ ] others

Which issues of this PR fixes ：

Fixes #
Problem Summary(Required) ：

When reading parquet pages, the page reader offset and stream buffer postion always should be moved forward in same steps.
While in the current code, page reader tries to read 1024 bytes and then deserializes the header from data buffer. As the page header size always less than 1024 bytes, which results in the offset  increase less than buffer position does. As a result, the data buffer will be reset when checking remain data and the data previously read will be discarded.
This triggers more remote read requests, resulting in reading performance degradation.

run starrocks_admit_test

run starrocks_be_unittest

run starrocks_be_unittest


360p

I think if this can be targeted to generated super tiny videos like 360p, it may work on a large number of devices and then it can be adapted work with larger resolutions.
This gets more people to be involved accelerating the improvement.
Context: The CSGO world generation demo was targeting an even tiny resolution; not great but it worked with a single command in a relatively weak GPU like RTX3060! I think thats a great direction to take

Sure, but I don't have anything to do with how the model was trained, the optimal resolution for this specific model currently is the 848x480 and everything else tends to be worse in quality, though many other resolutions do already work to an extend.

Wouldn't reducing the resolution mean reduction in VRAM utilisation even though their resolution was different?

Wouldn't reducing the resolution mean reduction in VRAM utilisation even though their resolution was different?

Yes, and you can do that, but it also reduces quality of the motion in most cases.

Yes, that happened! I was wondering why. Probably the frames's composition gets messed up at arbitrary resolutions because the model may be assuming all videos are of that size and  hard-coded that information and assumes it while generating.


I am not coming tomorrow. Please send notes.

just think hard on what the code does and merge this ...also dont use jupiter notebook because i need professional subscription to
edit.

Give me some time

Ok sure.

Ok sure.

Request you to change the file name to "Day_2_palindrome_updated"

Ok sure.

Request you to change the file name to "Day2_1a_palindorme_updated"

nin ajji do it yourself man

i mean just delete the file after you update your notebook file.

Just do it man lazy fellow

How to make a pudina milkshake ?

How to make a pudina milkshake ?

This has become the new whatsApp

what does this mean?

what does this mean?

"nin ajji"

why in quotes ?

why in quotes ?

what does this mean?

...

lol


I get this error "Failed to fetch Kudu App Settings. Ip Forbidden (CODE: 403)" in the step of function deployment.

I followed this doc: https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-vnet#deploy-a-service-bus-trigger-and-http-trigger
when in the step of  function deployment from github, it throws this error: Failed to fetch Kudu App Settings. Ip Forbidden (CODE: 403).

Could you please help check what's wrong with it? thanks.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: de4662c6-e943-b48f-6d19-8d0db28007b5
Version Independent ID: b8219a5a-94f0-3246-9a59-9d308f93d78a
Content: Use private endpoints to integrate Azure Functions with a virtual network
Content Source: articles/azure-functions/functions-create-vnet.md
Service: azure-functions
GitHub Login: @ggailey777
Microsoft Alias: glenga

@imeya , thank you for your question. We'll investigate and update as appropriate!

@imeya , In order to isolate the issue, could you please disable the private endpoint and check?
If you are able to deploy after disabling private endpoint, then we can look into this from networking standpoint. May be the client machine is not a part of the vnet ip address
If you are still not able to deploy, then make sure you have contributor access to the Function app.
Also before disconnecting the private endpoint, make sure that you have added private endpoint to the Kudu/ SCM site of the function also.

thank you, I will give it a try.

@imeya , just wanted to follow up and check if the issue is resolved or any progress with the troubleshooting. Please let me know


Not loading /_next path

I got this integrating onto my site, but have replicated it in the example app.
Steps to reproduce
Using Serverless v1.40.0

Clone this repo
$ cd examples/basic-next-serverless-app/
$ yarn
$ npx serverless offline
See lots of messages in the console such as Serverless: GET /_next/on-demand-entries-ping (λ: notFoundErrorPage)

And lots of 403 status codes in the network tab for anything on the /_next path.

I'm not sure what to do, but this means none of my JS or CSS will load.

Correction:
The above is still assuming an assetPath prefix. I don't want to use an S3 bucket for assets as I don't (yet) have a need for it.
So if I remove the prefix from next.config.js I get the same as above but 404 instead of 403.

Right now, this plugin doesn't embed assets except using a S3 bucket.
I think @danielcondemarin will add a feature for this with bucket offline (serverless-s3-local or something similar).
FYI, right now, on production, you NEED a bucket for files is "_next/static".

Ok, fair enough if that's how it works at the moment. I'll give it a go with a bucket name.

@romainquellec is there a built in way to Serverless-Offline to emulate s3? Otherwise it kinda makes it really hard to use sls offline

@falconmick I think so. I didnt test it myself, but try serverless-s3-local

Yeah damn I thought that might be needed. Too bad there isn’t a native solution built into offline

Currently using serverless-offline for local development is very limited, as in, you don't get HMR or the static files uploaded to local S3 or a local server etc. This has been briefly discussed in https://github.com/danielcondemarin/serverless-nextjs-plugin/issues/15
Ideally, when running npx serverless-offline alongside this plugin you have:

Static assets hosted in some local server
HMR working

Right now there isn't a straightforward way to do this, however is something I'll definitely look into as soon as I have some time.

If I'm following this issue correctly, serverless offline is not really supported when using local assets in the .next directory? If that's the case, there's really no way to debug serverless specific issues locally?

For my original issue, it's been addressed with #92
There is no need to specify an assetPrefix but a bucket name is required in serverless.yml

Thanks, but that doesn't really answer my question. I see this fixes _next assets 404 on API gateway, but running sls offline, the issue persists. I'm not sure how a bucket name in the serverless.yml file would fix this?

The original issue here wasn't a serverless-offline issue, though it did go off topic into that area, so that's why I've closed this one.
Looks like you have an issue opened with #93 so you'll probably have better luck there.


Rework Travis scripts and update README

Some motivation for these changes:

New cargo-web automatically installs the relevant target, so there is no need to tell the users to install it manually.
We now have precompiled binaries for cargo-web, so we can just download that instead of recompiling it from scratch every time.
Due to the concurrent job limit on Travis I've found that it's probably a better idea to just test all three targets in a single job rather than splitting them up.

Cool! Thank you! 👍


The Overlay Driver

Do you plan the Overlay Driver is to be released at the same time as the docker 1.7.0?
In overlay driver, which will you use either of the Linux Bridge and OVS?

I have the same question, what's the plan on the Overlay Network Driver?
Have you made decisions on the overlay driver implementation?

@naotoy @WeiZhang555 Overlay Network driver will be made available soon. This is not targeted for 1.7.0 release. The current thought process and design is based on Linux Bridge and VXLAN tunnel. Please watch this space and we will update the design document with the necessary details.

Do you have an update on the networking models that will be supported in Docker 1.7? Where can I find more details on the libnetwork APIs (including various options supported) that are described in this design doc? https://github.com/docker/libnetwork/blob/master/docs/design.md
The documentation on different drivers (Bridge, overlays etc) is very thin. Any additional info will be appreciated.
thanks

Closed in #308 - for information on the implementation, see here


do_after

Ports (most of) do_after from SS13.
Callers are expected to await the DoAfter task from the DoAfterSystem.
I had a dummy component for in-game testing which I removed for the PR so nothing in game uses do_after at the moment.
Currently only the movement cancellation is predicted client-side.

There are some nullable errors.


DNS nameserver for vm

Caveat emptor: I run dnsmasq locally for unrelated-to-docker reasons.
After bringing up dinghy the first docker run I issued failed due to DNS. Sure enough I dinghy ssh into the VM and the /etc/resolv.conf has the 192.168.64.X address. It's known to me that there are situations where this doesn't work. My laptop has <IP_ADDRESS>, ::1 as the DNS server going through dnsmasq and I assume that's why.
Updating the nameserver to <IP_ADDRESS> made everything work, but I would've liked to see a flag or option to provide a DNS server for the vm. I must've missed it if it exists. Any chance there's support for this in preferences.yml?

You didn't mention what VM provider you are using. For virtualbox we make a change to the default docker-machine settings to use the host resolver. For others we just use the docker-machine defaults. What you are looking for would likely be a docker-machine addition.

@codekitchen using virtualbox. dlite, for example, has a config file to add a DNS server it defaults to <IP_ADDRESS> (or whatever) and you can change the config and start the vm with the specified DNS server in /etc/resolv.conf.

Right, since Dinghy just uses docker-machine to actually create and start the VM, it'd make more sense to add such an option there. Or actually, this should be possible by adding a command to the /var/lib/boot2docker/bootlocal.sh functionality that boot2docker/docker-machine already has, but I've never tried it myself.

I'm going to close this since it's an addition that needs to be made in docker-machine. Although if the second option works well, it'd be worth adding that to the dinghy README.


JAV-61 Apply OpenAPI 0.7.19

Latest OpenAPI 0.7.19 applied
Fixed a few bugs in Error handling and Namespace Alias Mapper

Issue: #291

Pull Request Test Coverage Report for Build 736

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

Totals

Change from base Build 735:
0.0%

Covered Lines:
10

Relevant Lines:
10

💛  - Coveralls


Plugin can use private repository

Probably implemented during #9 but that needs to be verified

Probably implemented during #9 , but that needs to be verified

Has been tested and works as expected


Strip emoji in build script name

As discussed in #78
Note:
There seems to be one missing piece, the emoji are still written to the pbxproj file. I think the build scripts should all be marked as changed so it is written to the file, but couldn't find where this logic takes place. @jasperblues maybe you can add this?

Thanks @edwardmp !

Thank you to @jasperblues. But do you have any idea why it does not get written to the pbxproj file?


Couchbase Certificate Authentication

The Couchbase connector looks awesome. However my company's servers require VPN access, and I need to provide authentication certificates to access the data.
Could you look into adding an option to provide a certificate to the Couchbase connector here, which would then accept a path when I set up a connection in the UI? It looks like the Python Couchbase package provides a certificate authentication call here so it should be relatively straight forward to handle the connection option using built in functions.
My alternative is doing this myself, but I only discovered Mage this week.

Hi @jamie-quickplay! Thank you for bringing this to our attention. We'll take a look and get back to you shortly.

@jamie-quickplay thanks for requesting the feature!
It'll be a bit hard for us to set up a similar environment with you and use certificate to authenticate. I wonder whether you're interested in contributing to Mage. You can modify the source code of the Couchbase connector to support authentication with certificate. I can provide more code pointers if you want to make this change.

Close this ticket as it's no longer needed. Feel free to reopen it if anyone needs this feature in the future.


False positive Antivirus warnings (Windows)

https://www.virustotal.com/en/file/eec78b3ddbbcce2d78e1a876f1e4d4e87d9d7af16beebb297aeecc43103f4dd4/analysis/1485585242/
Most likely caused by NSIS installer.
Possible solution: additional zip archive Windows binaries without installer

Likely can be solved with signing windows installer (same as NanoWalletCompany)

https://www.virustotal.com/#/file/6309905da8d763bb3c5e6363963f85add782ec238459e78ade23f2e6b8677b8e/detection latest release does not trigger any alerts, This may be due to an update to NSIS, we are still working on getting code signing to not set off smart screen alerts for windows


Support empty security specification

Scenario: default security enabled for all routes, one or more has:
security: []
This allows empty security specifications to work as they did in the past.

Coverage remained the same at 96.954% when pulling 6388e139cc11b7bba24ce6a7b67c80c9313be830 on BasilHealth:empty_security into 2c1321b6b3a12b08d3917af43c2ab9c54a3ebfa0 on theganyo:master.

Thanks!


Fix small spelling error in document

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


Add minimal version and document check/update to README

Closes #1190
Added commands to assist Python developers who are new to Rust.

Thanks for the merge. Happy to be sprinting at PyCon Korea.

Thank you for contributing to this project!


Update library.properties

Its for using Open Smart Clock Shield

Im using Open smart clock shield and need to change clock pin


Update how-to-auto-train-image-models.md

Update docs for PuP of sweep over components

#sign-off

@swatig007
Can you review the proposed changes?
When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.

#sign-off


sometimes need delay before $Pid1pid is valid

x11docker --version:  5.4.4
On a rather slow Ubuntu 18.04 machine, the command
x11docker --nxagent ubuntu:bionic

always fails with a "Container startup seems to have failed." error, despite (usually) working well on a faster Fedora 29 machine.  I traced the problem to the following statement in the x11docker script:
Pid1pid=$($Dockerexe inspect --format '{{.State.Pid}}' $Containername 2>>$Containerlogfile | rmcr)

sets Pid1pid to zero.  I succeeded in working around this problem by putting this line in a loop like another one in the script:
for ((Count=1 ; Count<=20 ; Count++)); do
    [line above]
    if test x$Pid1pid != x && test $Pid1pid -ne 0; then break; fi
    sleep 0.2
done

(The first test is needed because Fedora sometimes sets Pid1pid to a blank.)  One pass through the loop usually suffices to get a valid Pid1pid.
I cannot explain why a delay is necessary here even after the container has been determined to be "ready" because the test
$Dockerexe exec $Containername sh -c :

has succeeded.
Could you please look into this issue and make an appropriate correction?
Thanks for a great piece of software.

Thank you for reporting!

I cannot explain why a delay is necessary here even after the container has been determined to be "ready" because the test
$Dockerexe exec $Containername sh -c :
has succeeded.

That is odd, indeed. I have made a commit with a repeated check like in your proposal, it should work now. Please try out.

Thanks for a great piece of software.

:-)


Bitfield fix

Bitfield type changed from "uint32_t" to "unsigned int" to let the compiler decide what to do

Nevermind! :)


Don't have repo manager crash on top-level junk

Issue #945

+1.
Please rebase and merge when you're ready.


Examples no longer working

I receive the following error for various resources when browsing the gh-pages hosted examples:
Mixed Content: The page at 'https://fivium.github.io/jquery-tagger/examples.htm' was loaded
over HTTPS, but requested an insecure stylesheet 'http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css'.
This request has been blocked; the content must be served over HTTPS.

Can't reproduce here, what browser are you using?

Chrome - just realised that the https everywhere is redirecting me to https version of the examples rather than the http version that is actually linked. Should probably be using this and update the readme too.

Ahh, next you'll be raising issues that the examples don't work when using noscript! :stuck_out_tongue_closed_eyes:
The pull you sent seems fine, though you should update the examples htm in the master branch too.

Cheers @mleonard87


Update: Slider's intensity for smooth experience.

Fixes #5 : Updated volume and zoom intensity for smooth experience.
Demo:
https://user-images.githubusercontent.com/99144185/197399423-13ab9697-42ad-4d3a-a260-03eac1caa213.mp4
Changes:

Changed the max intensity of volume and zoom both inside AudiowaveForm.js

@PrerakMathur20 sir, Please review my PR, Thanks.

LGTM!


New version release?

A lot seems to have changed since 2020, maybe time for a new release?

Hi @MIvanchev, we'll have a new release soon.
Probably at the weekend.

PySwip v0.3.0 was released:
https://github.com/yuce/pyswip/releases/tag/v0.3.0


⚠ Bofrost.lu has degraded performance

In 6eaeeba, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 982 ms

Resolved: Bofrost.lu performance has improved in 3093ab4.


Files names and Tree Structures of more than 256 characters

What's the Problem?

Please add support for long nested paths and file names of more than 256 characters.
Solution/Idea
Add support for file names more than 256 characters and tree structures longer than 256 characters I think by changing/adding a registry key.
Alternatives
No Idea =/
Priorities

Capability
Priority

This proposal will allow developers to accomplish W
Must

This proposal will allow end users to accomplish X
Should

This proposal will allow developers to accomplish Y
Could

This proposal will allow end users to accomplish Z
Won't

Files Version
No response
Windows Version
No response
Comments
No response

Files already supports this. The limitation is with windows and will have to be disabled from it. there are guides on google for this.

Files already support this. The limitation is with windows and will have to be disabled from it. there are guides on google for this.

Are you sure? because I changed my registry key and followed this guide:
https://helpdeskgeek.com/how-to/how-to-fix-filename-is-too-long-issue-in-windows/
But I am still not able to create a folder with the name 260 length or for example create folders inside folders with a total length of 270 for example and when I try to move it from Drive D to F I get the error File name is too long.

Moreover, please try for yourself and create a folder with the name "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz" and add another folder with the same name.
You will see that even though you changed the registry key to supporting long file names/paths you are still not able to do so.

Please reopen this feature because it does not work as you said!
Read here:
https://social.technet.microsoft.com/Forums/en-US/4e471b83-10c6-49d4-acb5-6654640b9dff/long-path-setting-not-working?forum=win10itprogeneral
the problem is Windows supports a Long file paths but File explorer does not therefore you can not move or create long path files/folder structore.

I have tried it. and if file explorer is still giving you the error then you havent done correctly.

I have tried it. and if file explorer is still giving you the error then you haven't done it correctly. Did you restart after making the change?

Could you let me know what you did differently from me?
I changed this registry key to 1

Did you read the links I send?
This is not my problem if you search on the internet you will find out many people have this problem.
To be clear you are able to do this?
"Moreover, please try for yourself and create a folder with the name "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzlmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz" and add another folder with the same name."
Right now I can't do the above, I am trying to create a new folder with a name longer than 256 characters nothing happen, and if I am trying to create a folder with let's say 10 characters that will have more than 265 characters in a total of the tree structure I will get an error like in the feature request image.
The same with copy and paste folder from let's say "D" drive to a nested structure inside "C" I would get an error too that the path name is too long.

I have done this and the same way it does work for me. In any case this is a windows issue and not a Files one since it doesnt work for File explorer. Files wont be able to do anything about it.

I managed to create deep folder by sharing the deepest folder, and add new folder remotely. But it only works for another 255 char (you need to share again for next 255 char again.. and again.. , or just use 7-zip file manager as your windows explorer.) This "unlock" will not automatically applied to other folder.
Additionally, even though Window Explorer can then read the deeper folder, it cannot open the file (if any, I cannot create new file text using windows explorer but create with 7-zip instead) with Windows Security - These files can't be opened "Your Internet security settings prevented one or more files from being opened."
I'm imagining if we can do like compressed file do: move them first to temporary folder (that makes filename limitation though..) and then open it from there.

This is a Windows limitation it would be the same for other explorers

I have to agree with itayasaf1991xd. I tested with Windows 11 on Drive C: (fixed NTFS volume) with LongPathsEnabled=1 (rebooted) and I was limited to a maximum path length of 260 characters using either File Explorer or Files.
Using Directory Opus, I created a folder structure with a total path length that was thousands of characters long (10 levels deep). I created each nested folder with a name that was 256 characters long (the max for an individual folder).
File Explorer had no problem navigating the deep structure (whether LongPathsEnabled was set to 1 or 0). Files displayed an 8.3 name for the first nested folder, and then opened File Explorer upon double-clicking the second nested folder.
Both Files and File Explorer were unable to create a folder structure with a total path length that exceeded 260 characters. File Explorer would politely display an error message. Files just ignored the attempt.

This is a Windows limitation it would be the same for other explorers. For whatever reason they remove or changed the way of unlocking it.

Maybe take a look at how Directory Opus does it:
Leo, Directory Opus developer, Nov 23 20:
"Behind the scenes, Opus adds the *\?* prefix automatically for very long paths."

This is a Windows limitation it would be the same for other explorers. For whatever reason they remove or changed the way of unlocking it.

I think you're misinformed.
According to Windows' documentation , once the path limitation is disabled windows is able to handle paths of approximately 32,767 characters in length.
I confirmed that works with apps like VLC and PDF X-Change editor if you open the files from within the application's file picker. Powershell also can, via specific commands, manage and access those files because it has builtin facilities to call the Windows API directly.
NTFS's latest version also supports long path names, so it's indeed File that is at fault here, since it's perfectly possible to implement it correctly, like the apps I mentioned above do. It's just a question of willing to put the effort into it.
So no, this is not a Windows fault.

This is a Windows limitation it would be the same for other explorers. For whatever reason they remove or changed the way of unlocking it.

Maybe take a look at how Directory Opus does it:
Leo, Directory Opus developer, Nov 23 20:
"Behind the scenes, Opus adds the *\?* prefix automatically for very long paths."

Also interesting to notice this, because one way Windows handles long path names, according to the documentation I linked above is to prefix paths with the ?\ token.
Again, it's a question of willing to do it rather than a technical impossibility.

I seen \\?\ exists since closing and have made an updated issue on this in #14865  as Files can currently read using this.

I seen \\?\ exists since closing and have made an updated issue on this in #14865 as Files can currently read using this.

Yes, it seems some people mentioned this in that other issue. It's a hassle to use it like this though, if you have a file tree that looks like this:

This is created automatically by a program that was written for Linux, where this pathname limitation doesn't exist. I then am unable to manage these files without the greatest pain.
I have tried a lot of things, but for months I still have not found a definitive solution for this issue, as most apps simply don't care to implement proper handling of long filenames.

#I have tried a lot of things, but for months I still have not found a definitive solution for this issue, as most apps simply don't care to implement proper handling of long filenames.
@ezxpro Have you tried Directory Opus or XYPlorer? Here's a link to a list I compiled of file managers I tested for long path support:
https://www.tenforums.com/general-support/169574-windows-file-explorer-long-paths-filenames-post2577374.html#post2577374
Note that my testing was not extensive. From comments I've seen around the net,  Directory Opus or XYPlorer are the two most complete file managers, but there may be others in the list that suit you better. Unfortunately, none are as pretty as Files.

@LesFerch
Thanks for the suggestion. I discovered Directory Opus today. It does the job pretty well. The new problem that I'm finding is that the open source media players out there don't open long file paths either.

The new problem that I'm finding is that the open source media players out there don't open long file paths either.  You'll probably have to create directory junctions for the media players.

The new problem that I'm finding is that the open source media players out there don't open long file paths either.  You'll probably have to create directory junctions for the media players.

Hm... Thanks for the suggestion, I didn't know about that workaround.
Thanks


Incorrect links on components page

https://eds.equinor.com/0b0c666ab/p/99b362-components
Links need updating - only point to front page.

Another broken link here:
https://eds.equinor.com/0b0c666ab/p/53f982-grid-alignment
Link to grid
"https://eds.equinor.com/guidelines/grid/"
(actual link should be https://eds.equinor.com/0b0c666ab/p/529628-grid/b/33fa25 ?)

I fixed the grid link. Can you check it here in this preview mode please and see that it is correct @Hjaf  ?
https://zeroheight.com/0b0c666ab/v/latest/p/53f982-grid-alignment

Its still the same it seems, just to clarify which link I'm referring to:

@Hjaf That is where I changed it. I think it's a caching issue. When I opened a new Chrome window, copied and pasted the link in, and tried the link, then it worked. Can you try again? https://zeroheight.com/0b0c666ab/v/latest/p/53f982-grid-alignment


ScrollView's KeyboardDismissMode= 'on-drag' doesn't work with KeyboardAvoidingView

Environment
Environment:
OS: Windows 10
Node: 10.0.0
Yarn: 1.6.0
npm: 6.0.0
Watchman: Not Found
Xcode: N/A
Android Studio: Version  <IP_ADDRESS> AI-173.4720617
Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: 0.55.4 => 0.55.4
Description
When Using KeyboardAvoidngView with ScrollView's keyboardDismissMode= 'on-drag', the keyboard gets dismissed when clicking on an input field at the bottom of the screen. When clicking on the last input field within the ScrollView, the keyboard can't even be accessed because the View moving out of the way of the keyboard is being considered a drag.
Reproducible Demo
<KeyboardAvoidingView style={styles.container} enabled>
  <ScrollView
    style={{flex: 1}}
    keyboardShouldPersistTaps= 'handled'
    keyboardDismissMode= 'on-drag'
  >
    <TextInput
      style={{height: 40, borderColor: 'gray', borderWidth: 1}}
      onChangeText={(text) => this.setState({text})}
      value={this.state.text}
    />
    //About 10 more TextInputs
  </ScrollView>
</KeyboardAvoidingView>

This is still an issue. React native 0.56.1

Still an issue. IOS working well but on Android it is not working!
react-native: 0.58.4


🐞 - tuiFade incorrectly displayed when the height is reduced

Playground Link
/experimental/fade/API?tuiFadeOffset=4em&tuiFadeHeight=50%25
Description

Angular version
No response
Taiga UI version
No response
Which browsers have you used?

[X] Chrome
[ ] Firefox
[X] Safari
[ ] Edge

Which operating systems have you used?

[X] macOS
[ ] Windows
[ ] Linux
[ ] iOS
[ ] Android

That is expected, you need to use absolute values like ems, rems or pixels.

ok, thank you


WIP: Enable loading module from string given input config

[ ] Tests added for any new code
[ ] Ran make fmt-fix (or had formatting run automatically on all files edited)
[ ] Documentation added for any new functionality
[ ] Entries added to ./unreleased/ for any new functionality

Codecov Report

Merging #2127 (abd7bc5) into main (a1887ba) will decrease coverage by 0.07%.
The diff coverage is 10.25%.

@@            Coverage Diff             @@
##             main    #2127      +/-   ##
==========================================
- Coverage   77.16%   77.09%   -0.08%
==========================================
  Files         424      424
  Lines       13831    13845      +14
  Branches     1899     1908       +9
==========================================
+ Hits        10673    10674       +1
- Misses       3158     3171      +13

Impacted Files
Coverage Δ

...ala/at/forsyte/apalache/infra/passes/options.scala
0.00% <0.00%> (ø)

.../src/main/scala/at/forsyte/apalache/tla/Tool.scala
0.00% <0.00%> (ø)

.../apalache/tla/tooling/opt/AbstractCheckerCmd.scala
0.00% <0.00%> (ø)

...at/forsyte/apalache/tla/tooling/opt/CheckCmd.scala
0.00% <0.00%> (ø)

...at/forsyte/apalache/tla/tooling/opt/ParseCmd.scala
0.00% <0.00%> (ø)

.../at/forsyte/apalache/tla/tooling/opt/TestCmd.scala
0.00% <0.00%> (ø)

...orsyte/apalache/tla/tooling/opt/TypeCheckCmd.scala
0.00% <0.00%> (ø)

...n/scala/at/forsyte/apalache/io/OutputManager.scala
14.49% <0.00%> (-0.22%)
:arrow_down:

...e/apalache/tla/imp/passes/SanyParserPassImpl.scala
50.00% <40.00%> (-1.73%)
:arrow_down:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

Thanks for the review! :)


⚠ Processors has degraded performance

In fe69a84, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 132 ms

Resolved: Processors performance has improved in 8d41c67.


Adding condition to service item

[Integration Review] (https://github.com/transcom/mymove/pull/12544)
B-19586
Summary
When shipments are approved, the move  is made available to the prime. During the process of making the move available to the prime, the system also adds the Move Management service item. This service item should only exist once per move, so a condition was added.
Is there anything you would like reviewers to give additional scrutiny?
Verification Steps for the Author
These are to be checked by the author.

[ ] Tested in the Experimental environment (for changes to containers, app startup, or connection to data stores)
[ ] Have the Agility acceptance criteria been met for this change?

Verification Steps for Reviewers
These are to be checked by a reviewer.

[ ] Has the branch been pulled in and checked out?
[ ] Have the BL acceptance criteria been met for this change?
[ ] Was the CircleCI build successful?
[ ] Has the code been reviewed from a standards and best practices point of view?

Setup to Run the Code

Instructions for starting storybook
Instructions for starting the MilMove application
Instructions for running tests

How to test
Be sure to pay special attention to step 15

Access the client application
Login as a new user
Set your user details
Create a move with more than one shipment
Submit the move details
Log out of the client application
Access the Office application
Log in as a Service Counselor
Find the move you created
Submit the move details
Log out of the Office application
Access the Office application
Log in as a TOO
Find the move you created
Select ONLY ONE of the shipments (if you approve them all at once you will have to restart)
Approve the selected shipment
Navigate to the Move details
Verify that the Move Management service item exists
Select another shipment
Approve the selected shipment
Navigate to move details
Verify that the Move Management service item is only present one time

Frontend

[ ] There are no aXe warnings for UI.
[ ] This works in Supported Browsers and their phone views (Chrome, Firefox, Edge).
[ ] There are no new console errors in the browser devtools.
[ ] There are no new console errors in the test output.
[ ] If this PR adds a new component to Storybook, it ensures the component is fully responsive, OR if it is intentionally not, a wrapping div using the officeApp class or custom min-width styling is used to hide any states the would not be visible to the user.
[ ] This change meets the standards for Section 508 compliance.

Backend

[ ] Code follows the guidelines for Logging.
[ ] The requirements listed in Querying the Database Safely have been satisfied.

Database
Any new migrations/schema changes:

[ ] Follows our guidelines for Zero-Downtime Deploys.
[ ] Have been communicated to #g-database.
[ ] Secure migrations have been tested following the instructions in our docs.

Screenshots

Warnings

:warning:
This PR does not include changes to unit tests, even though it affects app code.

  Generated by :no_entry_sign: dangerJS against bb455f34bb65ce7969230b0ff25d16b080c6fae7


Return received results in Promise matchers

See #3068.
Do you want to request a feature or report a bug?
Feature request and/or unexpected behavior
What is the current behavior?
While the new resolves and rejects flags naturally pass Promise values/errors to their matchers, the matchers themselves don't return Promises that resolve with the value of their received Promise. If it's possible to implement, this feature would be useful for chaining expectations for the same async value.
If the current behavior is a bug, please provide the steps to reproduce and either a repl.it demo through https://repl.it/languages/jest or a minimal repository on GitHub that we can yarn install and yarn test.
test('Return received results in Promise matchers', async () => {
  const received = await expect(Promise.resolve(true)).resolves.toBeTruthy()
  return expect(received).toBeTruthy()
})

 FAIL  test.js
  ● Return received results in Promise matchers

    expect(received).toBeTruthy()

    Expected value to be truthy, instead received
      undefined

What is the expected behavior?
The test would pass if this was implemented. A workaround is to save the value to an awaited variable and avoid resolves/rejects.
Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.
<EMAIL_ADDRESS>

I prefer not to support chaining for now. The workaround sounds good to me; if you need the values multiple times, I recommend calling await on the actual thing rather than the matcher.


REquires "Hide overlay when game is unfocussed" to be disabled

When using this plugin with the "Hide overlay when game is unfocussed" it seems to get confused when I try to use the decoration search. The box appears when I open the decoration selection but keyboard input is still with the game. If I click the search window then it seems to disappear and reappear and still not have focus. I assume what is happening is that when I click on it it gets focus, because the game is unfocussed it then hides the overlay which now it is gone leaves the game focussed so it comes back again.
Ideal fix would be to make sure the search window doesn't hide itself if it has focus, even with the above option on. I guess next best would just be a warning that the above option needs to be off and to not show the window at all if it is on.

Fixed in https://github.com/Haato3o/DecorationSearch/commit/0cbdd4be18cf9674e7be1bdfac0292d8e88da104 (v<IP_ADDRESS>)


Update fluent-bit docs links

What this PR does / why we need it:

Update outdated documentation links for fluent-bit chart
Improve formatting

Which issue this PR fixes
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

fixes #

Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[ ] DCO signed
[ ] Chart Version bumped
[ ] Variables are documented in the README.md

/assign @edsiper

@edsiper , @kfox1111 could you please have a look? Thank you.

/lgtm

Thank you @kfox1111!


Long variable instantiation chain in bagof/3

I was comparing recent Trealla Prolog with Scryer Prolog
via this bagof/3 test:
test2 :-
   between(1,1000,_), bagof(none, N^(between(1,1000,N), X=X), _), fail; true.

The results are that Scryer Prolog is 8x times slower:
/* Trealla Prolog 2.59.1-22 */
?- time(test2).
% Time elapsed 2.076s, 12046004 Inferences, 5.802 MLips

/* Scryer Prolog 0.9.4-201 */
?- time(test2).
   % CPU time: 12.610s, 25_103_021 inferences

My suspicion it has to do with long variable instantiation chains.
Which was fixed in SWI-Prolog via alloc_bind_key_list/2, but it can
be also fixed differently as demonstrated by Trealla Prolog.

This test case works also:
test :-
   bagof(X, N^(between(1,300,X), between(1,300,N),
      length(_,N)), _), fail; true.

Had to kill Scryer Prolog after a while:
?- time(test).
^C   % CPU time: 110.153s, 145_508_466 inferences
   error('$interrupt_thrown',repl/0).

On the other hand Trealla Prolog can do it now:
/* Trealla Prolog 2.59.17 */
?- time(test).
% Time elapsed 13.280s, 16158649 Inferences, 1.217 MLips
   true.


pull request for e2e test at 11/15/2016 07:15:09

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

optest/docs/updated_at.md
:white_check_mark:Succeeded

Details

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.