Question: Expanding ssh tab completion

I utilize different know_hosts files for different environments at work, EG known_hosts_prod for production via a configuration line like this in my ~/.ssh/config
Host production_hosts.example.com
    UserKnownHostsFile ~/.ssh/known_hosts_prod

This however seems to break the ssh known hosts tab completion.  This appears to come from plugins/common-aliases/common-aliases.plugin.zsh with this line:
zstyle -e ':completion:*:(ssh|scp|sftp|rsh|rsync):hosts' hosts 'reply=(${=${${(f)"$(cat {/etc/ssh_,~/.ssh/known_}hosts(|2)(N) /dev/null)"}%%[# ]*}//,/ })'

I've tried including a modified version of this line in my .zshrc, updating the plugins/common-aliases/common-aliases.plugin.zsh directly to the following:
zstyle -e ':completion:*:(ssh|scp|sftp|rsh|rsync):hosts' hosts 'reply=(${=${${(f)"$(cat {/etc/ssh_,~/.ssh/known_}hosts{,_*}(|2)(N) /dev/null)"}%%[# ]*}//,/ })'

and it hasn't worked. What am I missing?

The known_hosts in my setup doesn't contain hosts, but if yours does you can test step by step the output of the string inside the array until you get what you want:
echo ${=${${(f)"$(cat {/etc/ssh_,~/.ssh/known_}hosts{,_*}(|2)(N) /dev/null)"}%%[# ]*}//,/ }

I've already tested that your modification to file globbing works as intended.

the globbing works outside of the .zshrc, but when it's in it it doesn't.  even just executing the the zstyle command on the cli doesn't work.

rolsen@stealthstar  ~  cat .ssh/known_hosts
regular_know_hosts.example.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNo]0ekQ+QUzQy57PHy7FdnD8= regular-default
rolsen@stealthstar  ~  cat .ssh/known_hosts_prod
prod_know_hosts.example.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTIt+ayHy7FdnD8= prod-default
rolsen@stealthstar  ~  egrep zstyle ~/.zshrc
zstyle -e ':completion::(ssh|scp|sftp|rsh|rsync):hosts' hosts 'reply=(${=${${(f)"$(cat {/etc/ssh_,~/.ssh/known_}hosts{,_}(|2)(N) /dev/null)"}%%[# ]*}//,/ })'
rolsen@stealthstar  ~  ssh                       broadcasthost                   localhost                       regular_know_hosts.example.com  user                          root

Nevermind, I managed to get it working:
zstyle ':completion:*:(ssh|scp|sftp|rsh|rsync):*' hosts ${=${${(f)"$(cat {/etc/ssh_,~/.ssh/known_}hosts{,_*}(|2)(N) /dev/null)"}%%[# ]*}//,/ }

thanks!


Enhancement: Multiline information for GM instead of character name

In analogy for notes it would be great if token names could be changed for a GM to show additional information (multiline text). The idea would be that while hovering over an icon the GM could see GM informations stored for that icon.
For example:
"The goblin leader will flee if magic is used"
Maybe there is a simpler way to accomplish this but the logic would be similar to notices.

Since this request isn't about scene Notes it is a bit outside the scope of my module.
I see that "theRipper93" has a premium module called "Token Notes" which might be suitable for your use case. https://theripper93.com/#/module/token-notes


Kubernetes examples shouldn't use ConfigMap

Kubernetes examples use ConfigMap when configuration holds sensitive data (user and password to unifi). Instead it would be good to use Secret.

Can you provide a link to the thing you're suggesting needs to be fixed?

Sure:

credentials I have in mind: https://github.com/unifi-poller/unifi-poller/blob/master/examples/k8s_unifi_poller.yaml#L75-L76
whole thing: https://github.com/unifi-poller/unifi-poller/blob/master/examples/k8s_unifi_poller.yaml#L49-L82

I can create a PR to fix this if you want ;)

Gotcha. Yeah I know zero about kubernetes and forgot about that example. It was added by @michaelpietzsch in #337. Maybe he has some input here? I'm open to further pull requests. Thanks!

@paulfantom you are totally right. The proper way to do this is with secrets. I didn't implement it in this first iteration. Would you care to do a pull request ? I'd be happy to test and review it !


Handling JSONDecodeError; Invalid /escape in JsonOutputParser

Checked other resources

[X] I added a very descriptive title to this issue.
[X] I searched the LangChain documentation with the integrated search.
[X] I used the GitHub search to find a similar question and didn't find it.
[X] I am sure that this is a bug in LangChain rather than my code.
[X] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).

Example Code
import json

from langchain_core.output_parsers import JsonOutputParser
from langchain_core.runnables import RunnableLambda

def fake_llm1(inputs):
    return json.dumps(str({
                              "response": "The user question does not align with the structure or data within our database tables. The tables are relational in terms and follow the naming convention of 'galvatron\' or'mac_\', however the user question appears unrelated to the type of data and structure of the tables."}))

def fake_llm2(inputs):
    return str({
        "response": "The user question does not align with the structure or data within our database tables. The tables are relational in terms and follow the naming convention of 'galvatron\' or'mac_\', however the user question appears unrelated to the type of data and structure of the tables."})

chain1 = RunnableLambda(fake_llm1) | JsonOutputParser()
chain2 = RunnableLambda(fake_llm2) | JsonOutputParser()

# execute
print(chain1.invoke(""))
# throw exception
print(chain2.invoke(""))

Error Message and Stack Trace (if applicable)
return super().parse_result(result, partial=partial)

File "langchain_core\output_parsers\json.py", line 87, in parse_result
raise OutputParserException(msg, llm_output=text) from e
langchain_core.exceptions.OutputParserException: Invalid json output: {'response': "The user question does not align with the structure or data within our database tables. The tables are relational in terms and follow the naming convention of 'galvatron' or'mac_', however the user question appears unrelated to the type of data and structure of the tables."}
Description
I'm not entirely sure if it is a bug. I found it really strange that when string contains escape character we have such an issue. We can resolve the issue by dumping it to JSON first.
System Info
System Information

OS:  Windows
OS Version:  10.0.19045
Python Version:  3.10.10 (tags/v3.10.10:aad5f6a, Feb  7 2023, 17:20:36) [MSC v.1929 64 bit (AMD64)]

Package Information

langchain_core: 0.3.1
langchain: 0.3.0
langchain_community: 0.3.0
langsmith: 0.1.123
langchain_experimental: 0.0.55
langchain_huggingface: 0.1.0
langchain_nomic: 0.1.2
langchain_ollama: 0.1.0
langchain_openai: 0.1.20
langchain_text_splitters: 0.3.0
langchainhub: 0.1.20
langgraph: 0.2.22

I have resolved this issue in this PR.

This is a python issue with str and json. str() by design converts python dictionaries to use single quotes for keys which is not allowed in json spec. When you try to loads a str() of a dictionary then you will get a JSONParse error.
JsonOutputParser() could handle this with replacing all single quotes with double quotes but that carries some risk. The json utility already has to handle mismatched quotes, etc.  It feels unlikely that an LLM returns a json with single quoted properties. FYI - @ashvin-a  @eyurtsev


Data Directory missing from the Capture Directory

As explained in the Project Structure of your README, the data directory inside the capture directory holds essential files for running the complete pipeline. Since it is missing, attempts at running pipeline.py fail with the following error while importing modules:
python pipeline.py G:\SAGNIK_Material_Palette\Material_Palette\mansion
Traceback (most recent call last):
File "G:\SAGNIK_Material_Palette\Material_Palette\MaterialPalette\pipeline.py", line 7, in
import capture
File "G:\SAGNIK_Material_Palette\Material_Palette\MaterialPalette\capture_init_.py", line 2, in
from .utils.model import get_inference_module
File "G:\SAGNIK_Material_Palette\Material_Palette\MaterialPalette\capture\utils_init_.py", line 3, in
from .cli import get_args
File "G:\SAGNIK_Material_Palette\Material_Palette\MaterialPalette\capture\utils\cli.py", line 11, in
from ..data.module import DataModule
ModuleNotFoundError: No module named 'capture.data'
Is there anything on my end that can be done to solve this or is there an update slated to the repo itself that takes care of this?

Hi, thank you for notifying me. There was indeed an issue in the .gitignore. It should be fixed now (see commit).


Discord link broken on the website

Can be nice fix the link on the Website page :)

Join the discord https://discord.gg/qqcnwHAP7C, we will also fix the website link. Issue close


Copy with range to server #2051

Fixes
This pull request fixes https://github.com/equinor/witsml-explorer/issues/2051
Description

copy log to server with range

Type of change

[ ] Bugfix
[ ] New feature (non-breaking change which adds functionality)
[x] Enhancement of existing functionality
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Impacted Areas in Application

[x] Frontend
[ ] API
[ ] WITSML
[ ] Other (please describe)

Checklist:
Communication

[ ] I have made corresponding changes to the documentation
[ ] PR affects application security

Code quality

[x] I have self-reviewed my code
[x] No new warnings are generated

Test coverage

[] New code is covered by passing tests

Further comments

When ordering the job, you need to use the CopyLogDataJob for mnemonics. The CopyComponentJob is not set up to accept startIndex and endIndex, so they are not used.
Also, can you make the orderCopyJob function in LogObjectContextMenu use the copyComponentsToServer function from the utils file? This way, we ensure consistent behavior for using copy with range to server, and using copy with range, and then clicking paste on another server.

When ordering the job, you need to use the CopyLogDataJob for mnemonics. The CopyComponentJob is not set up to accept startIndex and endIndex, so they are not used.
Also, can you make the orderCopyJob function in LogObjectContextMenu use the copyComponentsToServer function from the utils file? This way, we ensure consistent behavior for using copy with range to server, and using copy with range, and then clicking paste on another server.

When ordering the job, you need to use the CopyLogDataJob for mnemonics. The CopyComponentJob is not set up to accept startIndex and endIndex, so they are not used.
Also, can you make the orderCopyJob function in LogObjectContextMenu use the copyComponentsToServer function from the utils file? This way, we ensure consistent behavior for using copy with range to server, and using copy with range, and then clicking paste on another server.


Content item message support

Piggybacking off of https://github.com/omsmith/ims-lti/pull/56 and making a slight change where resource_link_id, resource_link_title, resource_link_description, launch_presentation_return_url, lis_result_sourcedid should not be included in the launch as per https://www.imsglobal.org/specs/lticiv1p0/specification-3 section 3.3.1 at the bottom.

Can you put the for outside of the test, and have it define 5 different tests?

So I tried to do that at first, but it started to become a bit problematic.. simply putting in a for in statement would use the last item in the array for all the tests because they are called after the loop is done..
I was able to fix this by adding a closure over the test using coffeescripts do() ->, but at that point it lost the context to @provider, something like..
    for invalidField in invalidFields
      do (invalidField) ->
        it "should return....``` would have a @provider of null

There is a library called it-each that allows you to do something like `it.each ["a", "b"], "should return.."`, and the output is `should return false if lti_message_type is ContentItemSelectionRequest and contains invalid fields - 5/5` where if it fails it will display which array item it failed on.

Thoughts?


Foodbot should remind people for meal times and ask for rate and comment in lagos group

We need to remind people to rate and comment on foodbot daily. A way to do this is to integrate foodbot to lagos group to remind people for breakfast and lunch and ask them to rate the meals without @channel though.

I agree
On Fri, Feb 5, 2016 at 4:32 PM, Kosisochukwu Anyanwu <
<EMAIL_ADDRESS>wrote:

We need to remind people to rate and comment on foodbot daily. A way to do
this is to integrate foodbot to lagos group to remind people for breakfast
and lunch and ask them to rate the meals without @channel though.
—
Reply to this email directly or view it on GitHub
https://github.com/andela-kanyanwu/food-bot-review/issues/55.


dynamic component with compiler, ng build --prod giving error

Issue
we want to develop application in which the requirement need to create component dynamically.
so we used ComponentFactoryResolver, Compiler, NgModuleFactoryLoader, compiler's method "compileModuleAndAllComponentsAsync" for creating dynamic component.
followed instruction from this article :
https://blog.angularindepth.com/here-is-what-you-need-to-know-about-dynamic-components-in-angular-ac1e96167f9e

ng build have no issue while building application
ng build --prod is giving error. first it was giving error like run time compiler not found. then we searched about this is found solution like provide compiler in app module's provider. so we did that. now it is giving another error which is not resolving.
syntax we have used to provide compiler is like below.

import {Compiler, CompilerFactory, NgModule} from '@angular/core';

export function createCompiler(compilerFactory: CompilerFactory) {
  return compilerFactory.createCompiler();
}
 providers:[{provide: Compiler, useFactory: createCompiler, deps: [CompilerFactory]}]

Versions
Angular CLI: 1.6.5
Node: 9.3.0
OS: linux x64
Angular: 5.0.4
... common, compiler, compiler-cli, core, forms, http
... platform-browser, platform-browser-dynamic, router

@angular/animations: 5.2.1
@angular/cdk: 5.0.2
@angular/cli: 1.6.5
@angular/flex-layout: 2.0.0-beta.10-4905443
@angular/material: 5.0.2
@angular-devkit/build-optimizer: 0.0.42
@angular-devkit/core: 0.0.29
@angular-devkit/schematics: 0.0.52
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.9.5
@schematics/angular: 0.1.17
typescript: 2.7.2
webpack: 3.10.0

Repro steps
##function that we written for creating component dynamically is like below,
constructor(private resolver: ComponentFactoryResolver,
              private compiler: Compiler, private loader: NgModuleFactoryLoader) {
  }
loadComponentWithLazyLoading(modulePath, componentName, viewRef) {
    this.loader.load(modulePath).then((module) => {
      this.compiler.compileModuleAndAllComponentsAsync<any>(module.moduleType)
        .then((factory: ModuleWithComponentFactories<any>) => {
          return factory.componentFactories.find((component) => component.componentType.name === componentName);
        }).then((factory) => {
        const modRef = module.create(viewRef.parentInjector);
        const componentRef = viewRef.createComponent(factory, 0, modRef.injector);
      });
    });
  }

to use this function
@ViewChild('DynamicComponentContainer', {read: ViewContainerRef}) container;

this.service.loadComponentWithLazyLoading(this.moduleData.modulePath, this.moduleData.componentName, this.container)

Observed behavior
now, while doing ng build only component creating dynamically and running with not issue. but when we do ng build --prod the issue is like below:
Uncaught Error: StaticInjectorError[pe]:
  StaticInjectorError[pe]:
    NullInjectorError: No provider for pe!
    at t.get (main.20c6d2cd5cc49589b6f1.bundle.js:1)
    at main.20c6d2cd5cc49589b6f1.bundle.js:1
    at t (main.20c6d2cd5cc49589b6f1.bundle.js:1)
    at t.get (main.20c6d2cd5cc49589b6f1.bundle.js:1)
    at main.20c6d2cd5cc49589b6f1.bundle.js:1
    at t (main.20c6d2cd5cc49589b6f1.bundle.js:1)
    at t.get (main.20c6d2cd5cc49589b6f1.bundle.js:1)
    at kr (main.20c6d2cd5cc49589b6f1.bundle.js:1)
    at main.20c6d2cd5cc49589b6f1.bundle.js:1
    at Sr (main.20c6d2cd5cc49589b6f1.bundle.js:1)

Desired behavior
when we create build for production application should run same as ng build.

I have the same error
main.cee9b89b7ac31d247b4b.bundle.js:1 ERROR Error: Unexpected value 't' declared by the module 'function (){}'. Please add a @Pipe/@Directive/@Component annotation.
    at Ye (main.cee9b89b7ac31d247b4b.bundle.js:1)
    at main.cee9b89b7ac31d247b4b.bundle.js:1
    at Array.forEach (<anonymous>)
    at t.getNgModuleMetadata (main.cee9b89b7ac31d247b4b.bundle.js:1)
    at t._loadModules (main.cee9b89b7ac31d247b4b.bundle.js:1)
    at t._compileModuleAndAllComponents (main.cee9b89b7ac31d247b4b.bundle.js:1)
    at t.compileModuleAndAllComponentsAsync (main.cee9b89b7ac31d247b4b.bundle.js:1)
    at t.compileModuleAndAllComponentsAsync (main.cee9b89b7ac31d247b4b.bundle.js:1)
    at t.ngAfterViewInit (main.cee9b89b7ac31d247b4b.bundle.js:1)
    at xi (main.cee9b89b7ac31d247b4b.bundle.js:1)

Thanks for reporting this issue. However, you didn't provide sufficient information for us to understand and reproduce the problem. Please check out our submission guidelines to understand why we can't act on issues that are lacking important information.
If the problem persists, please file a new issue and ensure you provide all of the required information when filling out the issue template.


ci: Add coverage exclude regexes

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

Project coverage is 92.55%. Comparing base (99320b1) to head (9db253b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #275      +/-   ##
==========================================
+ Coverage   91.47%   92.55%   +1.07%
==========================================
  Files          45       45
  Lines        5116     4958     -158
==========================================
- Hits         4680     4589      -91
+ Misses        436      369      -67

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


Pattern matching

Implement a way to match an argument against a pattern
See: https://github.com/rust-lang/rust/issues/82775 for ideas and "borrowing" of implementation :p

fixed by: https://github.com/nrxus/faux/commit/a209091037a58cb10b9452148a3bfb7a10340a74


chore(docs): auto-extend LVM thin pools configuration docs

Signed-off-by: prateekpandey14<EMAIL_ADDRESS>Pull Request template
Please, go through these steps before you submit a PR.
Why is this PR required? What issue does it fix?:
Add docs and command to enable the monitoring on thin pools to use the auto extend feature of lvm volumes.
Checklist:

[ ] Fixes #
[x] PR Title follows the convention of  <type>(<scope>): <subject>
[ ] Has the change log section been updated?
[ ] Commit has unit tests
[ ] Commit has integration tests
[ ] (Optional) Are upgrade changes included in this PR? If not, mention the issue/PR to track:
[ ] (Optional) If documentation changes are required, which issue on https://github.com/openebs/openebs-docs is used to track them:

can we create one issue to improve the user experience.

Created to track it further #93


remaining connection slots are reserved for non-replication superuser connections

Hi There,
We are running out of usable PG connections on our cluster.
How do we check howmany connections are at the moment allowed and change this setting?
Currently we have 5 servers with 8GB - mem each.

Hi,
Yesterday I install pghero in my cluster to check how it looks with Flynn.
My configuration: 3 servers with 4cores + 4GB mem each.
I don't know if the PG configuration is set, but in my case, pghero show me when I check an app database:

I just saw that there is the postgresql configuration here https://github.com/flynn/flynn/blob/9fc0a690590a48e2e24b2f56aaaa9349a7cf9d20/appliance/postgresql/postgres.go#L893

Oh PGhero would be a good idea! thanxs.
And I found the config file in the flynn repo as well.
Not sure how it works when you want to change a setting.

Hmm apparently one database - user has 120 open connections.
That seems excessive. How can I determine which one it is.

I don't think you can change a setting of PostgreSQL database.
I also have one database - user who has 41 open connections.
I run this commands to have easily list of postgres database env values per app, if it could help you.
$ flynn -a controller pg psql
psql (9.5.5)
Type "help" for help.

ee30bc34f7d0eb809dac9c9b94ad6242=> SELECT a.name, r.env FROM resources AS r LEFT JOIN app_resources ar ON ar.resource_id = r.resource_id LEFT JOIN apps a ON a.app_id = ar.app_id WHERE r.provider_id = (SELECT provider_id FROM providers WHERE name='postgres');

In my case it is the controller who have 41 connections opened.
If you have the problem with one of your app, may be you could use this buildpack: https://github.com/heroku/heroku-buildpack-pgbouncer. I never used it but may be it could help you.

Awesome @nicolas-brousse , thanxs so much for the info.
I will dive into this and see if the PGbouncer is an option.

So small update, I closed all apps. Still the amount of connections are incredibly high.
I am not willing to close the systems apps, to see if that is the problem as this is a production system.
But one app using 120 connections is just waaay to much.
anybody have ideas how to tackle this problem?

So another update:
Killing a few processes of the router and controller apps helps bring down the amount of connections for a few seconds. But this is very temporary. Currently it is over 206 connections, with 114 from the Router and Controller.
Would be awesome if one of the devs could give some tips on this issue.

Flynn is unmaintained and our infrastructure will shut down on June 1, 2021. See the README for details.


feat(app): add generic run paused splash screen

Closes EXEC-387

Overview
Add a fallback run paused splash screen that will show when no specific errorType is handled explicitly. The exact logic used to display the splash message will most likely change (and we'll add specific error type subtext later).

Test Plan

Make sure the ODD enable run notes FF is on.
curl --location '<robot ip>:31950/settings' \ --header 'opentrons-version: *' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --data '{ "id": "enableErrorRecoveryExperiments", "value": true }' (Please set this to false when you're done testing).
Run anything that will throw a pick up tip failed error (make sure edge is pushed). Verify that the splash screen appears (note that cancelling the run after this point doesn't work currently).

Changelog

Added "Run paused" splash screen.

Risk assessment
low

@jerader @koji Thank you both for reviewing!

https://github.com/Opentrons/opentrons/pull/14873#discussion_r1562619576
Can't respond to this in-line for some reason. I agree with you - this isn't a pattern we have used extensively, and I think that's historically because of how React used to work with the stack reconciler, back when I'm guessing we first used React. I think we can make the case pretty easily for it if we pull this out for use in the same file, and I'm fine doing this if the same-file approach works with you.


Enabling KMeans-init seed

Refers to the PR #2088

Not needed after move back to master branch. Replaced with https://github.com/oneapi-src/oneDAL/pull/2088


Cups Printing::find broken when invalid id is passed

Description
Using Cups on v1.3, when calling Printing::find on an invalid ID, results in a Rawilk\Printing\Drivers\Cups\Entity\Printer instance, but for a random printer. This means that there's really no way to confirm that the printer being looked up is the right one.
Steps to reproduce
Having a working CUPS server with printers configured. Call Printing::find('invalid'), and see that you still get a printer instance.
When dumping the Entity, you can see in the ResponseParser the following:
#responseParser: Smalot\Cups\Transport\ResponseParser^ {#5518
      #content: "\x01\x01\x04\x06\x00\x00\x00\x04\x01G\x00\x12attributes-charset\x00\x08us-asciiH\x00\eattributes-natural-language\x00\x05en-usA\x00\x0Estatus-message\x00#The printer or class was not found.\x03"

So there is already the knowlege that it wasn't found, but the package isn't validating anything in this case.
Context

Laravel Printing version: 1.3.0
Laravel version: 8.35.1

It's been a while since I've looked at the CUPS driver, but I'm not really sure how something like that could be validated. Feel free to PR if you know of a way.


Deleting an analysis that is loading doesn't stop the blue loading bar

Tried the typical steps to reproduce and it was working ok. Any tip to find the problem?

Nope, but still happening to me very often.

it might have something to do with having errors?


Implementation of UserDetailsService has to throw UsernameNotFoundExcept...

...ion
Among other consequences it's cause triggering wrong event listeners by spring security:
AuthenticationFailureServiceExceptionEvent instead of AuthenticationFailureBadCredentialsEvent

Thanks. Did you fill out the contributor's agreement (link in README)?

@dsyer I've just signed up.


workflow-job & workflow-cps should be in test, not compile, scope

Avoid unnecessary plugin dependencies. Corrects a mistake in #7.

(Found because this complicates updating junit from 1.38 to 1.39 after https://github.com/jenkinsci/junit-plugin/pull/180.)

Thanks! Let me know when this makes it into a release.

⇒ https://github.com/jenkinsci/checks-api-plugin/releases/tag/v1.1.1


v0.10.1 release doesn't include a prebuilt dist/ directory

This seems to be a breaking change from v0.10.0 that did include dist/– it's causing consumers to fail with Cannot find module './dist/lib' errors.

should be good now, thanks for the notificaiton

Nice, I was about to report the same problem with 0.10.1. Thank you!


solve dts==0 bug and solve many aac packed in a large mpegts(2930bytes)

solve dts==0 bug when demux mpegts
if (dts == 0) {dts = pts}
solve many aac packed in a large mpegts(2930bytes)
demux mpegts and recover the dts.

Codecov Report

Merging #1620 into develop will decrease coverage by 0.14%.
The diff coverage is 2.72%.

@@             Coverage Diff             @@
##           develop    #1620      +/-   ##
===========================================
- Coverage    68.75%   68.61%   -0.15%
===========================================
  Files           96       96
  Lines        40614    40700      +86
===========================================
+ Hits         27926    27927       +1
- Misses       12688    12773      +85

Impacted Files
Coverage Δ

trunk/src/app/srs_app_rtmp_conn.cpp
0% <ø> (ø)
:arrow_up:

trunk/src/app/srs_app_config.hpp
100% <ø> (ø)
:arrow_up:

trunk/src/app/srs_app_ffmpeg.cpp
0% <0%> (ø)
:arrow_up:

trunk/src/app/srs_app_dvr.cpp
0% <0%> (ø)
:arrow_up:

trunk/src/app/srs_app_caster_flv.cpp
0% <0%> (ø)
:arrow_up:

trunk/src/app/srs_app_async_call.cpp
0% <0%> (ø)
:arrow_up:

trunk/src/app/srs_app_rtsp.cpp
0% <0%> (ø)
:arrow_up:

trunk/src/app/srs_app_server.cpp
0% <0%> (ø)
:arrow_up:

trunk/src/protocol/srs_protocol_utility.cpp
96.55% <100%> (ø)
:arrow_up:

trunk/src/app/srs_app_config.cpp
78.36% <6.06%> (-0.85%)
:arrow_down:

... and 1 more

Continue to review full report at Codecov.

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


Path finding issues for payments.

All the payments below are going to the same node, routes are failing due to path finding issues constantly. Maybe bad channels should be avoided more in path finding.

All the payments below are going to the same node, routes are failing due to path finding issues constantly

What node is that? Is it a stable and well connected node? FYI in the 2nd screen Incorrect payment details... is not a routing error but a payment failed by the receiving node, usually because it does not know the payment hash you're trying to pay.

All the payments below are going to the same node, routes are failing due to path finding issues constantly

What node is that? Is it a stable and well connected node? FYI in the 2nd screen Incorrect payment details... is not a routing error but a payment failed by the receiving node, usually because it does not know the payment hash you're trying to pay.

Is it my own routing node. It is very stable and pretty well connected. And yeah, the 2nd screenshot is my bad, put in the wrong one. But there are more that failed due to path finding.


Update README.md

Added update to new version info.

@ivokub would you be kind to merge this update also :)?

@ivokub this is still not merged, will you fix :) ? thanks!

Thanks @ajnadox, I'll have a look and merge if possible.

rebase on top of current master branch


Code deployment can't find absolute paths

I can't deploy code using an absolute path.

Fixed with #256.

Nice!


hadooken: Improve shell, python, and powershell dropper detection

This is largely based on the research at https://www.aquasec.com/blog/hadooken-malware-targets-weblogic-applications/
Related sample PR: https://github.com/chainguard-dev/bincapz-samples/pull/5

Does this need a test data refresh once #450 merges?

Yup!
On Mon, Sep 16, 2024 at 7:47 AM Evan Gibler @.***>
wrote:

Does this need a test data refresh once #450
https://github.com/chainguard-dev/bincapz/pull/450 merges?
—
Reply to this email directly, view it on GitHub
https://github.com/chainguard-dev/bincapz/pull/455#issuecomment-2352693421,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAYYMEAUWNA3N7FUHJPF4TZW3AORAVCNFSM6AAAAABOIFLT4CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJSGY4TGNBSGE
.
You are receiving this because you authored the thread.Message ID:
@.***>


Better use of sl::EnumHasFlag()

This function was introduced as a nice way of working with strongly typed enum classes, without breaking the illusion of c++'s enum class (which this function ironically undoes).
There's likely a few places this function could be implemented to improve readability, and we should mark it as FORCE_INLINE to eliminate that slight overhead.
A simple regex or manual search should do the trick.

good work me! closed in < 1 hour :D


Privacy concerns

Hey, I was happy to find this package and wanted to try it in my project. However, I faced some warnings that intrigue me.
Describe the bug
When installing the package, Xcode asks for Keychain access. And then, after refusing it, it shows up the error:

Build plug-ins with malicious code can harm your Mac or compromise your privacy. Be sure you trust the source of build plug-ins before you enable them.

Screenshot 1
Screenshot 2
Question
Why does it need access to the keychain? Is this package safe?

Hey! Thanks for reporting, I won't have much time to check so anytime soon since I'm into the process of moving from one apartment to another.
But my first guess when seeing those screenshots is that it would come from the SwiftLint plugin that allows Xcode to reformat the code on the go, I think it's worth giving a try updating it, checking issues on their repo and even removing it if there are privacy concern about that package.
To be honest, SwiftDown is something I've made for fun, so I'm not collecting anything and even if I did, it's fully open source so people would know haha, feel free to open a PR if you find something interesting to fix this, I would be happy to approve it 🙏

@sergpryimachuk very curious how you came to a open source project to question it's privacy politics when you could literally check the source code (open source meaning).

Hey! Thanks for reporting, I won't have much time to check so anytime soon since I'm into the process of moving from one apartment to another.
But my first guess when seeing those screenshots is that it would come from the SwiftLint plugin that allows Xcode to reformat the code on the go, I think it's worth giving a try updating it, checking issues on their repo and even removing it if there are privacy concern about that package.
To be honest, SwiftDown is something I've made for fun, so I'm not collecting anything and even if I did, it's fully open source so people would know haha, feel free to open a PR if you find something interesting to fix this, I would be happy to approve it 🙏

Oh I just noticed your reply.I figured out the problem. It has nothing to do with your package but Xcode 😅
Thanks for making this project and sorry for disturbing 🙏

@sergpryimachuk very curious how you came to a open source project to question it's privacy politics when you could literally check the source code (open source meaning).

I'm an obscure developer, didn't know much when I opened the issue. So yeah...
But now, I would literally do what you have said👍


Add Kino.Wizard POC

@hugobarauna check the docs for a proof of concept for you to try it out. I can flesh it out if we decide to include it in. The first argument to init has an origin, which can be used to identify the actual user.
Note: @jonatanklosko didn't like the function style and would prefer a handle_event style.

@josevalim, I think we can move forward with that. 👍
And if by "jonatanklosko didn't like the function style and would prefer a handle_event style.", it means that the API will be closer to a LiveView API; I agree with him.
While I was trying to use Kino.Wizard, I struggled a little with understanding how to use it. If it's closer to LiveView, it would be easier for me, as someone who has a basic understanding of how to write a LiveView.

Are there any plans for multi-select? Maybe there is a workaround, such as using a smart cell?
https://github.com/livebook-dev/kino/issues/380


Update SQLitePCLRaw to 1.1.6

React to changes in Microsoft.Data.Sqlite

Hit a few test failures locally. Any ideas @bricelam  or @anpete?
[xUnit.net 00:00:13.6345388]     Microsoft.EntityFrameworkCore.Query.InheritanceRelationshipsQuerySqliteTest.Nested_include_with_inheritance_reference_reference3 [FAIL]
[xUnit.net 00:00:13.6362974]       Assert.Equal() Failure
[xUnit.net 00:00:13.6364268]       Expected: 3
[xUnit.net 00:00:13.6365036]       Actual:   6
[xUnit.net 00:00:13.6377385]       Stack Trace:
[xUnit.net 00:00:13.6403141]            at Microsoft.EntityFrameworkCore.Query.InheritanceRelationshipsQueryTestBase`2.Nested_include_with_inheritance_reference_reference3()

[xUnit.net 00:00:13.8900139]     Microsoft.EntityFrameworkCore.Query.InheritanceRelationshipsQuerySqliteTest.Nested_include_with_inheritance_reference_reference1 [FAIL]
[xUnit.net 00:00:13.8902010]       Assert.Equal() Failure
[xUnit.net 00:00:13.8902729]       Expected: 6
[xUnit.net 00:00:13.8903342]       Actual:   12
[xUnit.net 00:00:13.8904133]       Stack Trace:
[xUnit.net 00:00:13.8904990]            at Microsoft.EntityFrameworkCore.Query.InheritanceRelationshipsQueryTestBase`2.Nested_include_with_inheritance_reference_reference1()

I triggered the run again. But based on test and seed data, this should never happen, unless seeding was faulty.

The test failure was pretty consistent. Happened on a local build, Travis and AppVeyor.

Does it happen for SqlServer?

SqlServer tests on .NET Core pass. .NET Framework tests are failing for me, but for different reasons. ( #8896 )

Since SqlServer tests are passing means SQLite seeding is doing something wrong. Try running tests without this package upgrade.
net461 test failure is due to test host deciding a fancy place to create scratch db. If you use dotnet from %userprofile%/.dotnet folder it will work 😛

Try running tests without this package upgrade.

Tests pass just fine.

Then looks like there is some issue with the package.

SQLitePCLRaw 1.1.6 includes SQLite 3.19.3. SQLitePCLRaw 1.1.3 included SQLite 3.16.0. Looks like the SQLite update includes changes to JOINs that may affect query results:
http://sqlite.org/releaselog/3_19_3.html
I don't have time to dig deep into EF to figure out what has changed here. @ajcvickers - who could take on the investigation of what's broken in query? Should I open a new issue to investigate?

So apparently I threw you guys a curve ball by updating my sqlite builds.  Sorry about that.  :-(
I'm really curious what the problem is.

Closing. This version of SQLite bundled in this update appears to includes a regression in LEFT JOIN. Let's not update until we have a fix or a different bundled version.


Update npm dependencies with vulnerabilities

link to demo deployment of your smk based app is
https://smk-firewood-rt-b16795-dev.apps.silver.devops.gov.bc.ca
Verify that it looks good, if so merge the pull request which will trigger a prod deployment, otherwise close the pull request without merging
mentions / notifications: @GuyTheFlower, @NicoledeGreef, @franTarkenton

The Vanity URL for the dev deploy is https://smk-firewood-api-gov-bc-ca.test.api.gov.bc.ca
If this is a dev deploy,  verify that it looks good, then merge the pull request to trigger prod deployment.
If this is a prod deployment, view your prod deploy at the url above :)
mentions / notifications: @GuyTheFlower, @NicoledeGreef, @franTarkenton

I've added a commit to this PR that updates the SMK dependency to 1.1.2, so that Firewood gets the Geomark fix.
I'll close this PR and then reopen it to trigger a dev deploy. After manual testing and acceptance, I'll merge these changes.

The deploy to dev triggered by reopening this PR failed while executing an 'oc login' command. The IP and port look correct; perhaps the token is expired. I'll close and reopen this PR to see if the problem persists in case it was a one-off.

The Vanity URL for the dev deploy is https://smk-firewood-api-gov-bc-ca.test.api.gov.bc.ca
If this is a dev deploy,  verify that it looks good, then merge the pull request to trigger prod deployment.
If this is a prod deployment, view your prod deploy at the url above :)
mentions / notifications: @GuyTheFlower, @NicoledeGreef, @franTarkenton

I confirmed the Geomark fix in QA. I'll merge this.

link to demo deployment of your smk based app is
https://smk-firewood-rt-b16795-prod.apps.silver.devops.gov.bc.ca
Verify that it looks good, if so merge the pull request which will trigger a prod deployment, otherwise close the pull request without merging
mentions / notifications: @GuyTheFlower, @NicoledeGreef, @franTarkenton

The Vanity URL for the prod deploy is https://smk-firewood.api.gov.bc.ca
If this is a dev deploy,  verify that it looks good, then merge the pull request to trigger prod deployment.
If this is a prod deployment, view your prod deploy at the url above :)
mentions / notifications: @GuyTheFlower, @NicoledeGreef, @franTarkenton


Add sample endpoint to neutrino.connect

Should help having everything in place without looking for further Neutrino documentation.

Not sure if this is the best idea, for two reasons:

When using connect=, neutrino will only stay connected to that node, and not attempt to find more peers.
We risk everybody connecting to this one node by default, which is centralizing.


Any plans for a python lib ?

Would be nice if we can use in python too.

Yeah, we plan to make it as one of the back-end options for the original gliner package.


docs: create migration guide for react-use

What is the problem?
A lot of our users are coming from react-use. A migration guide might help them move quicker.
What changes does this PR make to fix the problem?
I created a migration guide.
Checklist

[ ] Is there an existing issue for this PR?

link issue here

Good work!

:tada: This PR is included in version 5.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Czech translation incorrect

Microsoft PowerToys version
0.63.0
Utility with translation issue
Quick Accent
🌐 Language affected
Czech
❌ Actual phrase(s)
Rychlý zvýraznění
✔ Expected phrase(s)
Speciální symboly, neobvyklá diakritika
ℹ Why is the current translation wrong
Czech translation is far from perfect. It sounds a bit machine-made. It is usually understandable, however Rychlý zvýraznění is really off. Some labels are not translated at all.

/dup https://github.com/microsoft/PowerToys/issues/20604

both this suggestion and 20604's are listed in the tracked internal bug, fyi


Git not working in visual studio code.

VSCode Version: Code 1.7.2 (7ba55c5860b152d999dda59393ca3ebeb1b5c85f, 2016-11-21T22:06:37.428Z)
OS Version: Windows_NT ia32 6.1.7601
Extensions:

Extension
Author
Version

Steps to Reproduce:

Install Git
Install Visual Studio Code.
Open any folder which is a git repository.
Get following message "There was an issue running a git operation. Please review the output or use a console to check the state of your repository."
Output does not display anything.

Which Git version did you install? If you open a Command Prompt, can you run any git commands? If you open the dev tools, F1 > Toggle Developer Tools, is there any information there?

Sorry missed your reply. Below is the answer to all your questions.

version 2.11.0.windows.1
Yep, i am able to run all git commands from command prompt.
F1 in VS code opens commands palette.

Any Updates?

I look to be having the same issue, been trying to get the git integration going in VSCode for a couple weeks now.

Running VSCode 1.8.1
Running git version 2.11.0.windows.1
I am able to run git commands from the VSCode command prompt, but it gives me a red "error" box "there was an error running a git operation". It also gives me a blue "info" box with some git commits (the hash and commit message), so it's odd it appears to not work, yet work. I've not been able to do any sort of pull via VSCode, I'm still using the git bash for all git operations in my workflow.
Below is the error message in developer tool console.

messageService.ts:126There was an issue running a git operation. Please review the output or use a console to check the state of your repository.: Error: There was an issue running a git operation. Please review the output or use a console to check the state of your repository.
at Object.g [as create] (file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/electron-browser/workbench.main.js:30:20765)
at t.wrapGitError (file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/electron-browser/workbench.main.js:105:18911)
at file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/electron-browser/workbench.main.js:105:18594
at Object.v [as _notify] (file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/electron-browser/workbench.main.js:32:13263)
at Object.enter (file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/electron-browser/workbench.main.js:32:16768)
at _run (file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/electron-browser/workbench.main.js:32:18089)
at _chainedError (file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/electron-browser/workbench.main.js:32:17448)
at n (file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/electron-browser/workbench.main.js:32:15271)
at Object.v [as _notify] (file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/electron-browser/workbench.main.js:32:13263)
at Object.enter (file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/electron-browser/workbench.main.js:32:16768)

Does it work if you set it to:
C:\Program Files\Git\bin\git.exe

That helped a little but I run into other problems.  For the record, my settings.json file was updated to (double backslashes):
"git.path": "C:\\Program Files\\Git\\bin\\git.exe"

With that I can push to our Atlassian Stash server, but when I try to push/deploy to any development server I get:
Permission denied, please try again.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

I found http://blog.alner.net/archive/2015/08/24/vs_code_with_git_ssh_keys_that_use_passphrases.aspx which basically says:
Open a command prompt.
Run "start-ssh-agent" and answer passphrase prompts.
Run "code" to launch VS Code from that environment.

So tried that but get the same permission denied errors.
I'm just going to use the git bash as that's never given me any problems.

I will close this, since the fix is to set the git.path variable.
--
@hickerm, now you're just stuck behind the SSH key configuration. I suggest to read https://help.github.com/articles/generating-an-ssh-key/#platform-windows

Hi @joaomoreno,
For me issue didn't resolved even after setting git.path variable.
Still getting "There was an issue running a git operation. Please review the output or use a console to check the state of your repository."
Thanks,
Chandramani Pandey

I get the same error above.

Yep I'm seeing the same problem on OSX (10.11.6)

Same error above as hickerm on Windows 10. Configuring git.path as joaomoreno said doesn't seem to work. I even configure the terminal to use the git bash terminal and it's the same. VS code can't resolve the ssh auth and I'm sure it's VSC git managment because I can do everything normally inside the git bash.
This is the small log in the output:
git fetch
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
git fetch
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

I posted my solution to this in another thread.  Here it is again.... Maybe it will work for you.

Uninstal Git.
Uninstal GitHub gui app.  You can try to reinstall it later if you need it.
Checked Windows credentials for GitHub password. Make sure your credentials are correct.
Reboot.
Exit VS Code or WebStorm, etc.
Install Git from here: https://git-scm.com/download/win filename: Git-2.12.1-64-bit.exe
Restart VS Code, WebStorm, etc. Open one of your local repos and see if Git works now.

Here is my solution:
When i installed git-scm it set its home directory somewhere on another drive. thus it read from the ./ssh directory on that drive which was empty. start git bash and enter pwd to see where you are. the change with cd ./ssh to the ssh-directory used for the bash. i copied my files from c:/.../.ssh/id_rsa.* to this folder


[PublishTestResultsV1] Fix critical security issues

Required Information
Entering this information will route you directly to the right team and expedite traction.
Question, Bug, or Feature?
Type: Bug
Enter Task Name: PublishTestResultsV1
list here (V# not needed):
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks
Issue Description
Compliance build started to report new critical security alerts since 12/08.
To reproduce this issue: run npm audit
PublishTestResultsV1 task right now has 1 critical issue.
Audit log attached.
Task logs
PublishTestResultsV1.json.txt
Troubleshooting
Checkout how to troubleshoot failures and collect debug logs: https://docs.microsoft.com/en-us/vsts/build-release/actions/troubleshooting

Created PR: https://github.com/microsoft/azure-pipelines-tasks/pull/15699


Fix build

After the last update of the sbt import to the Intellij Idea is not working. It failed with an error:
sbt:root> last microsite/ivyConfiguration
[error] insecure HTTP request is unsupported 'http://dl.bintray.com/tpolecat/maven'; switch to HTTPS or opt-in as ("tpolecat" at "http://dl.bintray.com/tpolecat/maven").withAllowInsecureProtocol(true), or by using allowInsecureProtocol in repositories file
[error] java.lang.RuntimeException: insecure protocol is unsupported
[error]         at scala.sys.package$.error(package.scala:30)
[error]         at sbt.Classpaths$.errorInsecureProtocol(Defaults.scala:3116)
[error]         at sbt.Classpaths$.$anonfun$mkIvyConfiguration$1(Defaults.scala:3712)
[error]         at scala.Function1.$anonfun$compose$1(Function1.scala:49)
[error]         at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:62)
[error]         at sbt.std.Transform$$anon$4.work(Transform.scala:68)
[error]         at sbt.Execute.$anonfun$submit$2(Execute.scala:282)
[error]         at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:23)
[error]         at sbt.Execute.work(Execute.scala:291)
[error]         at sbt.Execute.$anonfun$submit$1(Execute.scala:282)
[error]         at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:265)
[error]         at sbt.CompletionService$$anon$2.call(CompletionService.scala:64)
[error]         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error]         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[error]         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error]         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[error]         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[error]         at java.lang.Thread.run(Thread.java:748)
[error] (microsite / ivyConfiguration) insecure protocol is unsupported

Looks like Idea's importer tries to resolve all dependencies and saw http dependency without withAllowInsecureProtocol(true) in sbt-microsite plugin code.
To fix this issue I updated sbt-microsite to the latest version. I didn't do any migration steps, I just bumped version and removed unsupported stuff to make idea import works again. Fixing of documentation will need an extra pull request.

@LMnet perhaps we can remove the site generation completely since it's not used anyways

@LMnet perhaps we can remove the site generation completely since it's not used anyways

@dimafeng I thought you are doing something with docs in some branch. If not, what exactly you mean? Remove the whole docs module or only sbt-microsite plugin?

@dimafeng I thought you are doing something with docs in some branch. If not, what exactly you mean? Remove the whole docs module or only sbt-microsite plugin?

@LMnet I paused it after comments from @rnorth regarding the site engine. At this point, both options work - drop the whole docs module or sbt-microsite plugin only. When I get back to docs, I'll need to start over in any case.

@LMnet I paused it after comments from @rnorth regarding the site engine. At this point, both options work - drop the whole docs module or sbt-microsite plugin only. When I get back to docs, I'll need to start over in any case.

@LMnet closing this due to https://github.com/testcontainers/testcontainers-scala/pull/157

@LMnet closing this due to https://github.com/testcontainers/testcontainers-scala/pull/157


Build with the JSON1 extension

The JSON1 extension is very useful as it enables querying on JSON formatted string fields. It's enabled in the sqlite library shipped by Ubuntu so I guess it's considered to be pretty safe.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

So does Homebrew.

Oh could you please bump the build number?

Is there anything more missing here?

I guess that the original reviewer forgot to merge this. I am un- commenting the inspect tests and merging this. Thanks @johanfforsberg!

It needs to be re-rendered to fix the failures on Windows. I'll merge it and do that in another PR. Thanks @johanfforsberg!


New App Submission - Elastos Essentials

App Logo (Required)

App Details (Required)
Type: Wallet
Name: Elastos Essentials
Homepage Url: https://www.elastos.org/
Chains supported: Elastos (chainid 20 (mainnet), 21 (testnet)) - More chains (eth, heco, bsc, fusion, ...) are under development
App Url (Required - at least one)
Browser Url:
iOS Url: https://apps.apple.com/us/app/elastos-essentials/id1568931743
Android Url: https://play.google.com/store/apps/details?id=org.elastos.essentials.app
Mac Url:
Windows Url:
Linux Url:
Mobile Linking (Optional)
Deep Link: essentials:
Universal Link: https://essentials.elastos.net
Desktop Linking (Optional)
Deep Link:
Universal Link:
Metadata (Optional)
Short Name: Essentials
Primary Color:
Secondary Color:

added on commit 7adfb0965f9a02e727a79551234172cbff8c79b0


Connection reset by peer

I'm trying to stop my plc (CPU1212C V4.2.1) or run with the exploit command but I receiv this error:
error: [Errno 104] Connextion reset by peer
My PLC isnt protected.

@matis006 s7_1200_plc_control module might only work with S7-1200 V3.x firmware, V4.x firmware has some differences from v3.x

Ok, thanks a lot for the information.
I don't know if you have any idea where I can find informations to do that with v4+?

@matis006 Sorry for the delay, I haven't heard any tools can stop an S7-1200 v4+ PLC.
V4 PLC has connection encryption protection, You can find some informations here.


Content in tinymce is reset before submitting

Describe the Bug

When editing a page, the changes are reverted just before the form is submitted.
Steps to Reproduce

Go to a page form
Change something
Save changes

Expected Behavior

The changes should be saved
Actual Behavior

The changes are not saved, instead the old content is still present.
Additional Information

It seems like this is a client-side problem: The old content is submitted with the form, even when changes are made.

I could trace this bug back to PR #1261, but I still don't understand what's happening exactly.
Somehow, the window.load event seems to fire twice (even when replaced by DOMContentLoaded), the form.input event doesn't fire at all and the form is submitted twice (which could be the reason for the reset content)...
@david-venhoff Do you have any idea what could go wrong here?

That is extremely weird. The problem is, I think, that the tinymce-init file gets run twice, which cause tinymce itself to initialize twice. A quick fix would be to inline the storeDraft() function in content-edit-lock.ts and remove the import for tinymce-init there. This would also have to be done for unsaved-warnings, which gets also run multiple times, because of its function marksContentsSaved.
However, I thought that typescript modules should never get imported more than once? Or am I missing something?
Also I could not reproduce this behavior with a module that only contains a console.log(...), which then gets imported by two other modules...


Problems with accents ( áéíóúÑñ ) JSON body

Automatically add Content-Type: application/json when there is a request body.
Should be: Content-Type: application/json; charset=utf-8

@eaparango great catch and thanks for posting the solution!
We'll get this fixed.

I can not send email when there are accents!!
is the email client or server REST?
PD: name user have accents.
this is my JSON:
{
"from": {
"email"<EMAIL_ADDRESS>"name": "Fracttal"
},
"personalizations": [
{
"to": [
{
"email": "xxx@ejemplo",
"name": "áéíóúÑñ"
}
]
}
],
"subject": "Hello",
"content": [
{
"type": "text/plain",
"value": "Hello"
}
]
}

I change the local library, but fails to send mail. I have my service down. this is serious!!
{ "Errors": [{ "message": "Bad Request", "field": null, "help": null}]}
{Server: 'nginx'
   date: 'Wed, 16:14:22 GMT June 15, 2016'
   'Content-type' 'application / json'
   'Content-length' '63',
   connection: 'close'
   'X-frame-options' 'DENY'}

Hello @eaparango,
I'll be taking a look at this.
BTW, this is not the SendGrid API client, here it is: https://github.com/sendgrid/sendgrid-nodejs

From there come I'm trying to see because I can not send email when you have accents, I thought it was this mistake but I think it is the server that does not accept UTF-8

Cool, thanks for clarifying.

Should be fixed with version 2.2.1


[MP-498] Fix CI build for go-lang

Scope
Fixes for CI build/lint errors
Why?
So that the CI builds the code - see MP-498
Todos
If any, what are the follow-up tasks required other than merging this PR?  Have they been arranged?

[ ] ???

Please merge the latest candidate, and make sure that CI passes.


Fresh Port Assignment

Hey! I'm currently running Transmission using Haugene's Docker-Transmission container. Since you're redeveloping the entire application according to #7 I was thinking about the handling of port assignments. If the new port is the same one as before, everything should work without further hassle. However if the account is assigned a different port than before, the entire Docker/VPN container has to be restarted (at least from my experience). How do you handle this in your case?
If the reassignment happens before the 7 days the ephemeral port is valid for this will probably be no real problem. If the scheduled time is longer than 7 days it should be possible to mount /var/run/docker.sock and restart the VPN container (possibly even multiple containers, e.g. sonarr,prowlarr,... since docker doesn't restart depending containers) so that the VPN container can pick up the freshly assigned port.

I've never considered this since the containers I've used always worked fine after updating the port in the torrent client. What is the reason behind needing to restart the container? I don't see any reason as to why a restart would be needed because I don't see any option to configure a port in the first place in the container you linked. In the containers I've used, I just needed to update the listening port and everything worked since the torrent client was listening directly on the VPN interface. If you could provide an MRE on how to reliably break your setup that would be nice.
I could add some kind of docker client but I don't think that would go very far because everybody has a slightly different setup and some setups may even require to completely re-create the container. But if you have any simple yet versatile ideas then I'm open to suggestions.
With the way things are currently set up in v3, you should be able to hack it together using the exec client that would execute a custom script with the new port as an argument. I've added it for this exact purpose, accommodating non-standard setups.
Also, just in case you misunderstood this project: This project already handles updating the port that the torrent client is using via their RPC/API interface. If you don't have any firewalls setup then this should work without needing to restart the container.
And just in case I misunderstood: Will transmission keep listening on the old port after you go into the web UI and change it? I'm asking if it (just the torrent client, not related to VPN or containers) needs a restart after changing the configuration or does it update on the fly?

Here's a way I can recreate this issue without any major time consumption:

Remove the port forwarding in the windscribe dashboard.
Restart the VPN container. The current port cannot be forwarded, since it's not opened by windscribe.
Re-create a matching port ephemeral forward in the windscribe dashboard. This can be the same as before or any other

Even after waiting for more than 20 minutes the new port isn't picked up. Transmission's built-in port forwarding tester always says it's closed. If the container is restarted after that it is recognized as open. This process simulates the effect of getting a different port from before without having to wait for a different matching ephemeral port assignment. At least from experience this behaves the same as with a fresh port assignment.
The same issue can be found in the following sources:

https://www.reddit.com/r/Windscribe/comments/q5cydd/ephemeral_port_forwarding/
https://windscribe.com/knowledge-base/articles/setting-up-port-forwarding, Step 4

Also, just in case you misunderstood this project: This project already handles updating the port that the torrent client is using via their RPC/API interface. If you don't have any firewalls setup then this should work without needing to restart the container.

I was aware of that. I was thinking about the case where you e.g. currently have port 12345 set and this project updates it to something like 54321 in the windscribe dashboard and transmission via rpc.

And just in case I misunderstood: Will transmission keep listening on the old port after you go into the web UI and change it? I'm asking if it (just the torrent client, not related to VPN or containers) needs a restart after changing the configuration or does it update on the fly?

Just checked it. I restarted the transmission daemon inside the container and the problem still persists, so it must be openvpn (or something else).
My overall intent of this issue was finding out if you were facing this limitation as well. Will it be possible to run both the transmission client and the exec client or is it limited to only one singular client? Because if I can run both (preferrably in some fixed order) I'll be able to fix this the hacky way.

Ok, sorry for my ignorance, guess my setup was never stable enough for me to notice :sweat_smile:
I did some testing and here is what I found

On IKEv2 and OpenVPN the port forwarding gets set up once you connect and continues to work until you disconnect. Even after you remove/change the port in the web UI the forward will continue to work until you disconnect (tested for over 12 hours on OpenVPN)
On wireguard, their website says that they don't support port forwarding but that's not 100% true. Back in the day, I asked them about and they said that they were working on it. Now when I tested it it seems to work fine but with a few caveats. Since wireguard doesn't really have a concept of a "connection" it's not as simple. From what I observed it will start working immediately if you haven't been connected for a while. so it seems to configure itself when the key exchange happens. This also means that this is the only protocol that will eventually (roughly every 2 minutes I believe) update itself without needing to restart anything because the keys change on a regular basis.

Now I'm actually interested in figuring out a way to give people a way to easily restart the containers. For docker, this would be relatively simple-ish but we would also need to restart all the containers that depend on the one we are restarting. This problem has already mostly been solved by watchtower, and in our case, it would be even simpler since we don't need to fully re-create the containers, just restart


Canonicalize stablehlo.broadcast_in_dim to match result's type rank

This patch is a two-stage:

change isIotaRange constraint to llvm::sorted in order to enable the rewrite from broadcast_in_dim -> reshape:

  %0 = stablehlo.broadcast_in_dim %arg0, dims = [1, 2] : (tensor<3x6xi32>) -> tensor<1x3x6xi32>

is transformed into:
  %0 = stablehlo.reshape %arg0 : (tensor<3x6xi32>) -> tensor<1x3x6xi32>

(hlo_ops.cpp: BroadcastInDimSimplifier uses same approach)

broadcast_in_dim operator can be quite complex in its semantics, sometimes functioning as a combination of transpose and broadcast. In order to simplify analysis and optimization, it can be beneficial to fully expand operand dimensions by ensuring that the size of broadcast_dimensions matches the rank of the result. This can be achieved by reshaping the input operand while preserving the constraint size(broadcast_dimensions) = rank(operand) that the size of broadcast_dimensions matches the rank of the operand.

    %3 = stablehlo.broadcast_in_dim %arg3, dims = [2, 1, 4] : (tensor<32x64x16xf32>) -> tensor<4x64x32x2x16xf32>

is transformed into:
  %2 = stablehlo.reshape %arg3 : (tensor<32x64x16xf32>) -> tensor<1x32x64x1x16xf32>
  %3 = stablehlo.broadcast_in_dim %2, dims = [0, 2, 1, 3, 4] : (tensor<1x32x64x1x16xf32>) -> tensor<4x64x32x2x16xf32>

Later it can be simplified even more by extracting transpose logic into standalone operation, something like this:
  %2 = stablehlo.reshape %arg3 : (tensor<32x64x16xf32>) -> tensor<1x32x64x1x16xf32>
  %3 = stablehlo.transpose %2, dims = [0, 2, 1, 3, 4] : (tensor<1x32x64x1x16xf32>) -> tensor<1x64x32x1x16xf32>
  %4 = stablehlo.broadcast_in_dim %3, dims = [0, 1, 2, 3, 4] : (tensor<1x64x32x1x16xf32>) -> tensor<4x64x32x2x16xf32>

Since broadcast is on the way out from stablehlo.

WDYT?

I have a general question before I dig more this the review:
I can see that with the "use reshape to ensure size(broadcast_dimensions) = rank(operand)" transformation, even the scalar broadcast_in_dim transformed to the reshape; broadcast_in_dim.
stablehlo.broadcast_in_dim %arg0, dims = [] : (tensor<i32>) -> tensor<4x32xi32>

to

stablehlo.reshape %arg0 : (tensor<i32>) -> tensor<1x1xi32>
stablehlo.broadcast_in_dim [[R0]], dims = [0, 1] : (tensor<1x1xi32>) -> tensor<4x32xi32>

This is how I interpret the transformation.

Yes, that's right.

The Stablehlo broadcast_in_dim can simultaneously do

Broadcasting of a lower-rank array to a higher-rank array
Broadcasting using degenerate dimensions

However, the proposed transformation seems to transform the code such that broadcast_in_dim only has to deal with (2) cases. Indeed the transformation makes sense when there is a implicit transpose involved in the broadcast_in_dim, but for cases when implicit transpose is not there, I was wondering about the optimization opportunities this transformation would open up (other than simplifying the code for readability)

I agree that this transformation doesn’t offer any optimization opportunities for stablehlo itself. However, such transformations can be valuable for bringing operations closer to the hardware level. For example, in a typical non-scalar accelerator that performs optimally with data batches, it would be advantageous to break down complex operations into simpler, more basic operations resembling RISC instructions:
  %0 = stablehlo.broadcast_in_dim %arg0, dims = [2, 4, 1] : (tensor<32x64x16xf32>) -> tensor<2x16x32x4x64xf32>

to a series of trivial operations:
  %0 = stablehlo.reshape %arg0 : (tensor<32x64x16xf32>) -> tensor<1x32x64x1x16xf32>
  // swap 1-axis with 4-axis
  %1 = stablehlo.transpose %0, dims = [0, 4, 2, 3, 1] : (tensor<1x32x64x1x16xf32>) -> tensor<1x16x64x1x32xf32>
  // swap 2-axis with 4-axis
  %2 = stablehlo.transpose %1, dims = [0, 1, 4, 3, 2] : (tensor<1x16x64x1x32xf32>) -> tensor<1x16x32x1x64xf32>
  // broadcast 3 axis (tail strategy)
  %4 = stablehlo.broadcast_in_dim %0, dims = [0, 1, 2, 3, 4] : (tensor<1x16x32x1x64xf32>) -> tensor<1x16x32x4x64xf32>
  // broadcast 0 axis
  %4 = stablehlo.broadcast_in_dim %0, dims = [0, 1, 2, 3, 4] : (tensor<1x16x32x4x64xf32>) -> tensor<2x16x32x4x64xf32>

I can envision that such transformations are usually done in hardware-focused dialects. This brings up a question of ideology --- does stablehlo assume that these transformations are done in target-specific dialects, or is it open to such hardware-related simplifications?

PS: IMO having a pass aligned with https://github.com/openxla/xla/blob/9c7314893fb16b897370e12c73409d5d9b5eab5c/xla/mlir_hlo/mhlo/IR/hlo_ops.cc#L2364 seems sufficient (unless I am missing something).

Agree

My take:
StableHLO transformations are mostly hardware agnostic and for some backend (as opposed to ops which has native support for some of this composite patterns) it is relevant to batch simpler operations for better performance  then there should be passes, achieving the same,  closer to the backend.
How about for now we make the pass aligned with https://github.com/openxla/xla/blob/9c7314893fb16b897370e12c73409d5d9b5eab5c/xla/mlir_hlo/mhlo/IR/hlo_ops.cc#L2364. That will include expanding the broadcast with implicit transpose.
cc @GleasonK

reverted patch №2


Cant compile with -C++17 and beyond compiler options

See image below.  I've added the #include suggested by a previous post, but that does not seem to resolve this.

The error message suggests that you try to convert a JSON value to a user-defined type, but there was not conversion function found. I do not know how this relates to the title of the issue. Could you provide more information?

I'm running against HEAD, let me gen up some example code to simplify

`#include <stdio.h>
#include "json.hpp"
int main(int argc, char **argv)
{
printf("hello world\n");
nlohmann::json _j;
std::string tmp = _j["test"];  // OK
    //std::string tempstring;
    try
    {
        std::string tempstring = _j["setting"]; // OK
    }
    catch( std::exception &ex )
    {

    }

    std::string tempstring2;
    try
    {
        tempstring2 = _j["setting"];  // FAIL
    }
    catch( std::exception &ex )
    {

    }

}
`

Works just fine when compiling std==c++14, breaks when I attempt to go beyond C++14

Which compiler are you using?

gcc thats built into codelite

Which version is that?

uhh, let me see..
ken@ken-PowerEdge-R420:~/git-repos/json$ g++ --version
g++ (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
ken@ken-PowerEdge-R420:~/git-repos/json$

Thank you. (This just took 4 questions to get all the information that was originally asked in the issue template :-/)

my apologies.  I've gotten rusty and lazy

In my defense, I did at least read previous posts on C++17 compiling:)

With GCC 7.3 on macOS
g++-7 (Homebrew GCC 7.3.0) 7.3.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

your code compiles without problems with

-std=c++11
-std=c++14
-std=c++17

odd, could I trouble you to check -std=c++1z ?

Works as well.

Please give me your complete list of compile flags you are using

Same with
g++ (Ubuntu 8.2.0-7ubuntu1) 8.2.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

No flags:
g++-7 bug.cpp -I single_include/nlohmann -std=c++11

 ken@ken-PowerEdge-R420:~/git-repos/septemmud/testjson$ /usr/bin/g++-7  -c  "/home/ken/git-repos/septemmud/testjson/main.cpp" -std=c++11  -o ./Debug/main.cpp.o -I. -I. -I../../json/src ken@ken-PowerEdge-R420:~/git-repos/septemmud/testjson$ /usr/bin/g++-7  -c  "/home/ken/git-repos/septemmud/testjson/main.cpp" -std=c++17  -o ./Debug/main.cpp.o -I. -I. -I../../json/src In file included from /home/ken/git-repos/septemmud/testjson/main.cpp:2:0: ../../json/src/json.hpp: In instantiation of ‘void nlohmann::detail::from_json_fn::call(const BasicJsonType&, T&, nlohmann::detail::priority_tag<0>) const [with BasicJsonType = nlohmann::basic_json<>; T = std::basic_string_view<char>]’: ../../json/src/json.hpp:1128:47:   required from ‘void nlohmann::detail::from_json_fn::operator()(const BasicJsonType&, T&) const [with BasicJsonType = nlohmann::basic_json<>; T = std::basic_string_view<char>]’ ../../json/src/json.hpp:1175:30:   required from ‘static void nlohmann::adl_serializer< <template-parameter-1-1>, <template-parameter-1-2> >::from_json(BasicJsonType&&, ValueType&) [with BasicJsonType = const nlohmann::basic_json<>&; ValueType = std::basic_string_view<char>; <template-parameter-1-1> = std::basic_string_view<char>; <template-parameter-1-2> = void]’ ../../json/src/json.hpp:3478:45:   required from ‘ValueType nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::get() const [with ValueTypeCV = std::basic_string_view<char>; ValueType = std::basic_string_view<char>; typename std::enable_if<(((! std::is_same<nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>, ValueType>::value) && nlohmann::detail::has_from_json<nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>, ValueType>::value) && (! nlohmann::detail::has_non_default_from_json<nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>, ValueType>::value)), int>::type <anonymous> = 0; ObjectType = std::map; ArrayType = std::vector; StringType = std::__cxx11::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer]’ ../../json/src/json.hpp:3737:30:   required from ‘nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::operator ValueType() const [with ValueType = std::basic_string_view<char>; typename std::enable_if<(((! std::is_pointer<_Ptr>::value) && (! std::is_same<ValueType, typename StringType::value_type>::value)) && (! std::is_same<ValueType, std::initializer_list<typename StringType::value_type> >::value)), int>::type <anonymous> = 0; ObjectType = std::map; ArrayType = std::vector; StringType = std::__cxx11::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer]’ /usr/include/c++/7/bits/basic_string.h:1475:14:   required from ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_If_sv<_Tp, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::assign(const _Tp&) [with _Tp = nlohmann::basic_json<>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_If_sv<_Tp, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&> = std::__cxx11::basic_string<char>&]’ /usr/include/c++/7/bits/basic_string.h:791:35:   required from ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_If_sv<_Tp, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(const _Tp&) [with _Tp = nlohmann::basic_json<>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_If_sv<_Tp, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&> = std::__cxx11::basic_string<char>&]’ /home/ken/git-repos/septemmud/testjson/main.cpp:25:39:   required from here ../../json/src/json.hpp:1119:9: error: static assertion failed: could not find from_json() method in T's namespace          static_assert(sizeof(BasicJsonType) == 0,          ^~~~~~~~~~~~~ ken@ken-PowerEdge-R420:~/git-repos/septemmud/testjson$

C++11 works fine, C++17 does not

This is due to #958.
There are multiple basic_string::operator= overloads, only one of them is templated, thus the compiler picks this one up instead of the std::basic_string one, which is chosen in previous C++ standards.
Looking at constructor (6) on cppreference tells that the compiler tries to convert the templated type to a std::string_view.
Note that allowing this conversion would create a dangling std::string_view, so the library will not add a from_json(json, std::string_view&) in any case.
I suggest using j.get<std::string>() or j.get_to(s) instead.

Thanks! I'll use your suggested alternative

@CalielOfSeptem Can I close the issue?

Feel free to close this one, thank you.
On Wed, Dec 12, 2018 at 4:15 PM Niels Lohmann<EMAIL_ADDRESS>wrote:

@CalielOfSeptem https://github.com/CalielOfSeptem Can I close the issue?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/nlohmann/json/issues/1362#issuecomment-446746649, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ADh5jSApU4sGb3I9TnFQJRphR7VdhbXnks5u4XH1gaJpZM4YoFus
.


File change inside container will be reset after host reboot.

Hi.
My problem is all file change inside container will be reset after host reboot.
this is my test step:
Prepare test container

install Ubuntu 22.04 server (kernel: Linux server 5.15.0-83-generic)

install docker user get-docker.sh

install sysbox use release deb file

change docker config /var/lib/docker to /data/lib/docker

change sysbox-mgr run data-dir to /data/lib/sysbox by add --data-root to /lib/systemd/system/sysbox-mgr.service

systemctl daemon-reload and reboot.

run test container: docker run -itd --name=test --runtime=sysbox-runc nestybox/ubuntu-jammy-systemd-docker

make test file: docker exec -it test touch /test.file

show file: docker exec -it test ls /test.file

root@server:~# docker exec -it test ls /test.file
/test.file

Start
Test 1
root@server:~# docker exec -it test touch /test.file
root@server:~# docker exec -it test ls /test.file
/test.file
root@server:~# reboot now
# after reboot
root@server:~# docker start test
root@server:~# docker exec -it test ls /test.file
ls: cannot access '/test.file': No such file or directory

Test 2
root@server:~# docker exec -it test touch /test.file
root@server:~# docker exec -it test ls /test.file
/test.file
root@server:~# systemctl restart docker
# restart docker without restart sysbox. container is stopped
root@server:~# docker start test
Error response from daemon: failed to create shim task: OCI runtime create failed: container_linux.go:300: failed to chown rootfs clone caused: failed to invoke ChownClonedRootfs via grpc: rpc error: code = Unknown desc = invalid argument: unknown
Error: failed to start containers: test

Test 3
root@server:~# docker exec -it test touch /test.file
root@server:~# docker exec -it test ls /test.file
/test.file
root@server:~# systemctl restart sysbox
# restart sysbox without restart docker. container is running
root@server:~# docker exec -it test ls /test.file
OCI runtime exec failed: exec failed: container_linux.go:424: starting container process caused: process_linux.go:102: starting setns process caused: fork/exec /proc/self/exe: no such file or directory: unknown

Test 4
root@server:~# docker exec -it test touch /test.file
root@server:~# docker exec -it test ls /test.file
/test.file
root@server:~# systemctl restart sysbox
root@server:~# systemctl restart docker
# restart docker after restart sysbox. same as reboot server
root@server:~# docker start test
root@server:~# docker exec -it test ls /test.file
ls: cannot access '/test.file': No such file or directory

Test 5
root@server:~# docker exec -it test touch /test.file
root@server:~# docker exec -it test ls /test.file
/test.file
root@server:~# systemctl restart docker
root@server:~# systemctl restart sysbox
# restart sysbox after restart docker. same as reboot server and Test 4
root@server:~# docker start test
root@server:~# docker exec -it test ls /test.file
ls: cannot access '/test.file': No such file or directory

Hi @ondh, thanks for giving Sysbox a try and for reporting the issue.
I think there's definitely a bug in Sysbox, related to keeping the state of the container across host reboots (or even sysbox restarts).
I investigated, and I am pretty sure the bug occurs when the host machine either

Does not have the shiftfs module.
Or has kernel < 5.19.

I am pretty sure that's the scenario you have. In this scenario, Sysbox uses a technique called container "rootfs-cloning", and the bug is that Sysbox is not keeping that rootfs clone state around when Sysbox is restarted.
As a work-around, if you install shiftfs on the host, or alternatively upgrade the kernel to 5.19+, you will not see the issue. I tested on my Ubuntu Jammy host with kernel 5.19+ and was not able to repro.

Thanks for your reply.
I have tested on Ubuntu 23.10 server with kernel 6.5, it works fine.
Close this issue :D


Expand Postgres compromise rule to cover Yugabyte

https://www.yugabyte.com/
Distributed Cloud database based on Postgres.

Just to confirm -- this is ready to submit?

Yup!


Should set network for testnet and public net to avoid tx_bad_auth

See https://github.com/stellar/ruby-stellar-base/issues/30
If you don't do Stellar.default_network = Stellar::Networks::PUBLIC, you will get a tx_bad_auth error.
Maybe this library should set default_network in the Stellar::Client.default and Stellar::Client.default_testnet methods
Only reason I could see for not doing this, is if you are using the testnet, but want to construct a client for the publicnet but not use it immediately.

Rather than setting a default network, we should instead raise an appropriate error to tip the developer off that they need to explicitly choose what network to use.

If a user initializes a Stellar::Client instance for the testnet, any method called on that instance should be for testnet. If the user wants to use mainnet, they should create a client object for mainnet.
I agree with @steveklebanoff 's original idea of setting default_network in the default and default_testnet methods.

For reference, in Go SDK we provided default clients for both public and testnet, but no general default. We wanted to strike a balance between being helpful and forcing the dev to be a little bit explicit.

var DefaultPublicNetClient = &Client{
HorizonURL:     "https://horizon.stellar.org/",
HTTP:           http.DefaultClient,
horizonTimeOut: HorizonTimeOut,
}
DefaultPublicNetClient is a default client to connect to public network.
var DefaultTestNetClient = &Client{
HorizonURL:     "https://horizon-testnet.stellar.org/",
HTTP:           http.DefaultClient,
horizonTimeOut: HorizonTimeOut,
isTestNet:      true,
}
DefaultTestNetClient is a default client to connect to test network.

The JS SDK follows a similar approach.

btw, I think we need to update the JS docs, usePublicNetwork and
useTestNetwork I think is not longer valid, you always have to pass the
network.
On Fri, Mar 13, 2020 at 3:02 PM Eric Saunders<EMAIL_ADDRESS>wrote:

The JS SDK follows a similar
https://stellar.github.io/js-stellar-sdk/Network.html approach.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/stellar/ruby-stellar-sdk/issues/22#issuecomment-598890048,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAFKDA5U74JJVM2AVQQ3MTRHKGOLANCNFSM4EUUZ6WQ
.

@abuiles I added you to the PR for this issue. @ire-and-curses you're welcome to take a look as well.

We reverted #71 and plan to change the way the network is specified to mirror the other SDKs, namely passing a network string to the functions that require it.

We could also add the network passphrase to the options on the client, so that for functions on the client they can just get it out of the client.


Syntax highlighting not working

When adding code examples I noticed that the generated html page has hljs- attributes, but the syntax isn't highlighted. Example:
In api.yaml (some parts edited for the sake of brevity):
  paths:
    /:
      get:
        responses:
          200:
            examples:
              application/json:
                error: false
                code: 200
                message: OK
                data: "N/A"

I see this snippet in the generated html:
{
    "code": 200,
    "data": "N/A",
    "error": false,
    "message": "OK"
}

but I was expecting to see some syntax highlighted, something like this:
{
    "code": 200,
    "data": "N/A",
    "error": false,
    "message": "OK"
}

Perhaps I'm missing something here.

Hi and thanks for reporting this. The CSS-styles from highlight.js were indeed not included into bootprint-base. I've fixed that in<EMAIL_ADDRESS>Make sure that your setup uses this version when you try it.

Sorry, this fix was not correct. It just includes an @import into the css (which works locally, but not if you distribute your result)

No its working (make sure to use<EMAIL_ADDRESS>

Many thanks. Just did npm install bootprint@latest bootprint-base@latest bootprint-openapi@latest and can confirm it's working.

Are you using<EMAIL_ADDRESS>now? Otherwise,your CSS will have an "@import" statement with the absolute path to the hightlight.js styles now.


Bump webpack-bundle-analyzer

Codecov Report

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

@@          Coverage Diff          @@
##           master   #260   +/-   ##
=====================================
  Coverage      82%    82%
=====================================
  Files          26     26
  Lines        1528   1528
=====================================
  Hits         1253   1253
  Misses        207    207
  Partials       68     68

Continue to review full report at Codecov.

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


GET /transfer-history filter by User wallet address or TX hash

Issue moved to LimeChain/hashport-api #55 via ZenHub


Fix Unit test timezone bug [v8]

Description of the Change
Some unit tests recently added expected an EST timezone. This fix has it use the local environment timezone.

passes on my machine in Pacific Time

Unit tests don't seem to be rerunning on the latest commit as the test failure messages are old. Closing this PR to open a fresh one.


Anti mass kill, anti rapid fire, anti fast reload, anti new steam/discord/rockstar anti high damage

Description
Anti mass kill:
If a Player kills to many person in 5 s he will get kicked/banned. Maybe its good against ragebot or if a Player tryes to kill every Player on the server.
Anti Ralid fire. If a player shorts more than 2 Bullet in 1 s he will get banned.
Anti fast reload: if a Player reloads his gun to fast he will get banned (Bypass weapon switch)
Anti New steam/discord rockstar: if the age of the Account is to young he cant connect to the server.
If a Player does more than config damage he will get banned from the server. (Bypass melees)
Benefits
This Features are very good and can help to win the fight against cheaters. Some thi gs you already have but its not customize for the customers server like Anti damage multi.

dc yeah but i dont think you can see how old a r* acc is since ther is no dirket api the rest +1 sounds good


Report bulk differences in the inventory

What do you think about adjusting the name to make it more immediately clear? E.g., "Large Mace" when on a medium creature (or always?).

Is that possible to do as part of the current actor/item autonaming thing? That might be best to append (large) after the name in greyed out text with a smaller font.

Is that possible to do as part of the current actor/item autonaming thing? That might be best to append (large) after the name in greyed out text with a smaller font.

Yeah, it's just a matter of changing the name during data preparation. But if you prefer to append a parathetical to the name separately and formatted differently, it may be better to just perform that in the item-line template.

What if instead of the asterisk and a parenthetical after the name, we add something like (L) or (T) or (H) next to the bulk value?
Parenthetical might look weird for like consumables with charges. Though there's also a part of me that thinks that consumables and treasure shouldn't receive bulk adjustments at all.

I think a parenthetical would look odd. Especially for an object of light bulk: L (L)


Cannot assign to 'clipboard' because it is a read-only property

TypeScript Version:  3.9.3

Search Terms:
"Cannot assign to 'clipboard' because it is a read-only property"
"clipboard"
Code
describe('clipboard', () => {
  it('it is undefined', () => {
   expect(global.navigator.clipboard).toBe('undefined')
  })

  it('can be mocked', () => {
    global.navigator.clipboard = {} // error
  })
}

Expected behavior:
Either clipboard to exist, or to be able to be mocked
Actual behavior:
Even though it's undefined, mocking it result sin "Cannot assign to 'clipboard' because it is a read-only property." which indicates it actually does exist.

This really is a read-only property according to the spec. If your mock environment is different, you'll need to provide a different DOM .d.ts

Maybe I miss understand, but if it's undefined (not null), then how would it know it's read-only? It doesn't exist at all.
It would make sense it it was defined in some way, but it isn't.

As a quick hack you could just write global.(navigator as any).clipboard = {}


Styling disabled entries

Discussed in https://github.com/azeezat/react-native-select/discussions/68

Originally posted by Mads-Ottendal March 18, 2024
Hello,
Is it in any way possible to style only the disabled objects in a list.
options={[
              {
                title: 'rooms
                data: [
                  { label: 'Room 1', value: 'A' },
                  { label: 'Room 2', value: 'B' },
                  { label: 'Room 3', value: 'C' },
                  { label: 'Room 4', value: 'D', disabled: true},
                ],
              },
            ]}

So above i want to style the css for only Room 4 in the checkbox. For example when a room is disabled its checkbox is red instead of green like the others.
Any help on how to do this if it is possible would be greatly appreciated :)

Thanks for reporting this issue. A new version has been published. Please add the following props
  checkboxControls={{
              checkboxDisabledStyle: {
                borderColor: 'red',
                backgroundColor: 'red',
              },
            }}


use afero instead of os package for fileio

Codecov Report
Patch coverage: 10.00% and project coverage change: -0.49% :warning:

Comparison is base (396c9cf) 35.62% compared to head (ab63ff5) 35.13%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main       #3      +/-   ##
==========================================
- Coverage   35.62%   35.13%   -0.49%
==========================================
  Files          12       15       +3
  Lines        1151     1204      +53
==========================================
+ Hits          410      423      +13
- Misses        699      737      +38
- Partials       42       44       +2

Flag
Coverage Δ

Linux
35.13% <10.00%> (-0.49%)
:arrow_down:

Windows
?

macOS
?

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

Files Changed
Coverage Δ

cmd/benchmark.go
9.83% <0.00%> (+2.69%)
:arrow_up:

cmd/root.go
8.69% <0.00%> (-0.40%)
:arrow_down:

pkg/aoc/run.go
13.48% <0.00%> (ø)

pkg/exercise/exercise.go
8.33% <0.00%> (ø)

pkg/exercise/implementations.go
0.00% <0.00%> (ø)

cmd/graph.go
6.04% <33.33%> (+2.41%)
:arrow_up:

... and 1 file with indirect coverage changes

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


WARNING: Valid values for attribute 'SamAccountName' should end with '$'; the filter clause '(SamAccountName -like  )' may not work as intended.

Thx for the script! The Windows-local version works great!
Having a bit trouble to get this one working.
I get following output.
PS C:\Windows\system32> C:\support\Get-log4j-Windows.ps1
cmdlet Get-Credential at command pipeline position 1
Supply values for the following parameters:
PreReq: Powershell 5.0+. Proceeding..
PreReq: 7-zip tools installed. Proceeding..
PreReq: Credentials Detected. Proceeding..
WARNING: Valid values for attribute 'SamAccountName' should end with '$'; the filter clause '(SamAccountName -like  )' may not work as intended.
Get-ADComputer : The search filter cannot be recognized
At C:\support\Get-log4j-Windows.ps1:88 char:12
+ $Servers = Get-ADComputer -Filter "SamAccountName -like '$($AdCompSea ...
+            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Get-ADComputer], ADException
    + FullyQualifiedErrorId : ActiveDirectoryServer:8254,Microsoft.ActiveDirectory.Management.Commands.GetADComputer

0.) Ping AD servers to make sure online..
Test-Connection : Cannot validate argument on parameter 'ComputerName'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.
At C:\support\Get-log4j-Windows.ps1:120 char:63
+ ...  IF (Test-Connection -BufferSize 32 -Count 1 -ComputerName $_ -Quiet) ...
+                                                                ~~
    + CategoryInfo          : InvalidData: (:) [Test-Connection], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.TestConnectionCommand

1.) Complete.
2.) Splitting 0 AD servers into blocks of 1 Servers each..
3.) Complete.
4.) Multi-thread Searching blocks of servers..
5.) Complete.
6.) Building Report Object..
7.) Complete.
8.) --All Complete--
9.) ------------------

I changed
$Domain = (Get-WmiObject Win32_ComputerSystem).Domain
to
$Domain = (Get-WmiObject Win32_ComputerSystem).mydomain.com
I don't need the multi domain switches. So it's not really clear if I need to change these values.

You still need the first one, the switch auto detects your domain. So you can copy paste / re use the script in different domains.
The error being generated is that you've not updated the switch correctly. I'll post a screenshot in the morning but that's the issue.
Change this back to
$Domain = (Get-WmiObject Win32_ComputerSystem).domain and update the 3 lines below to match $Domain

Just for anyone else getting this error.
The switch part is for people - who have a requirement to run this on multiple domains, and don't want to constantly change the suffix of the reporting, or update the domain information each time. I you only need to run this on a single domain, skip to the end.
What the switch does and how it works:
$Domain = (Get-WmiObject Win32_ComputerSystem).Domain

Uses the WMI Object to detect your local domain
Depending on what $Domain returns, it sets the following variables - $AdCompSearchPrefix, $DnsDomainSuffix and
$DnsShortName to whatever you've set them to.
As per the below switch example:
`switch ($Domain) {
"my.fake.domain.com" {
    $AdCompSearchPrefix = "dev*" #Enter in your AD Computer object prefix eg Dev for DEVAPP001
    $DnsDomainSuffix = ".my.fake.domain.com" # Enter in your Domain names FQDN with a proceeding .
    $DnsShortName = "FAKE" #Enter in your DNS shorname eg DEV for dev.my.happy.domain.com
}`

If $Domain = "my.domain.com"
It would not match  "my.fake.domain.com", therefor the 3 variables would be empty, as my.domain.com doesn't have a switch defined above.
If $Domain = "my.fake.domain.com", it would set:
 $AdCompSearchPrefix = "dev*"
 $DnsDomainSuffix = ".my.fake.domain.com"
 $DnsShortName = "FAKE"

==== If you only need to run this on a single domain. ===
Delete the entire switch and just replace it with:
  $AdCompSearchPrefix = "dev*" #Enter in your AD Computer object prefix eg Dev for DEVAPP001
  $DnsDomainSuffix = ".my.fake.domain.com" # Enter in your Domain names FQDN with a proceeding full stop .
  $DnsShortName = "FAKE" #Enter in your DNS shorname eg DEV for dev.my.happy.domain.com

Thx!


Add /dev/null deploy location to deploy

Thankfully you have omitted an unnecessary sudo from this line, but this still looks like a lot of code for moving nothing to nowhere.


fix bugs in retrieval

Fixed MAX_LENGTH missing and typo in SPECIAL_SEPARATOR and added truncation to tokenizer.

close PR since it was already reflected in d768d81. Instead of truncating the long sequence, we are splitting them into multiple blocks.

close PR since it was already reflected in d768d81. Instead of truncating the long sequence, we are splitting them into multiple blocks.

but seems d768d81 did not solve the problem.
still hit the error:
Token indices sequence length is longer than the specified maximum sequence length for this model (2238 > 512). Running this sequence through the model will result in indexing errors
Traceback (most recent call last):
File "", line 1, in
File "/home/ruibn/project/FActScore/factscore/factscorer.py", line 77, in register_knowledge_source
self.db[name] = DocDB(db_path=db_path, data_path=data_path)
File "/home/ruibn/project/FActScore/factscore/retrieval.py", line 30, in init
self.build_db(self.db_path, data_path)
File "/home/ruibn/project/FActScore/factscore/retrieval.py", line 74, in build_db
assert len(sent.strip())>0
AssertionError
any insight? @shmsw25 @absolute-nil


Put env variables in .env file via controller

Hi,
I use this one but i have a question. My variables is in config.env, can i use something to put variables instead file rewrite like this:
                /////////
                //GENERATE config.env
                /////////
                $output = '//DB connect
DB_HOST = "' . $host . '";
DB_USER = "' . $user . '";
DB_PASS = "' . $pass . '";
DB_NAME = "' . $db . '";

//DB Table\'s prefix
DB_PREFIX = "' . $table_prefix . '";

//PHPBB Folder
FORUM_PATH = "' . $forum_path . '";

//Fast Cache type
CACHE_TYPE = "files";

//Greyfish
GREYFISH_UPDATE = "' . $greyfish_upd . '"; //default: 300, on 300 seconds greyfish will update collected data to db.';
                /////////
                ///END///
                /////////
 $filehandle = fopen($filename, 'w');
 fwrite($filehandle, $output);
fclose($filehandle);

I need some other way, more pleasant.
This is from the installator from my CMS system.
This piece of code is for old version, but you catch what i want :)

Something like this:
				$this->updateEnv([
					'DB_HOST'=>$host,
					'DB_USER'=>$user,
					'DB_PASS'=>$pass,
					'DB_NAME'=>$db,
					'DB_PREFIX'=>$table_prefix,
					'FORUM_PATH'=>$forum_path,
					'CACHE_TYPE'=>"files",
					'GREYFISH_UPDATE'=>$greyfish_upd,
				]);

Do this lib have a feature to update the env file with function ? Thanj you.

I write this one:
	public function updateEnv($val) {
		if(is_array($val)) {
			$global_variables = "";//globalize
			foreach ($val as $k => $v) {
			  $global_variables .='"'.$k.'"="'.$v.'"'.PHP_EOL;
			}
			file_put_contents('config.env', rtrim($global_variables));
		} else {
			return false;
		}
	}

and it works like this:
				$this->updateEnv([
					'DB_HOST'=>$host,
					'DB_USER'=>$user,
					'DB_PASS'=>$pass,
					'DB_NAME'=>$db,
					'DB_PREFIX'=>$table_prefix,
					'FORUM_PATH'=>$forum_path,
					'CACHE_TYPE'=>"files",
					'GREYFISH_UPDATE'=>$greyfish_upd,
				]);

But if this lib have something like this integrated will be cool ;)

That solution is incorrect. It does not properly escape characters that need to be escaped.


docAdd query rewrite by materialized view feature summary and desc doc

Proposed changes
Add query rewrite by materialized view feature summary and desc doc
Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall

run buildall