Add support to Assume an IAM Role with an External ID

Hi All,
It would be great if goofys could assume a role to get access to a bucket owned by a third party: http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html
The Role ARN to be assumed and an External ID should be provided to the tool to mount the S3 bucket. To do this the STS API must be used to get the temporary security credentials. This is an example with Go:
https://docs.aws.amazon.com/sdk-for-go/api/service/sts/#example_STS_AssumeRole_shared00

goofys should work with instance roles automatically, is that not sufficient?

Hi,
The option --profile is not sufficient when you have an Instance Profile that provides the credentials and then you need to assume a different role to get access to the bucket (cross account scenario). This is an example:
[ec2-user@ip-10-38-63-201 ~]$ aws configure list
      Name                    Value             Type    Location
      ----                    -----             ----    --------
   profile                <not set>             None    None
access_key     ****************K2HQ         iam-role
secret_key     ****************xT0O         iam-role
    region                <not set>             None    None

There is role attached to the instance that allows me to assume a different role to get access to a S3 bucket owned by 3rd party AWS account. When an Instance Profile is used you don't need to configure/create any file within ~\.aws . The temporary access and secret keys are obtained from the instance metadata on http://<IP_ADDRESS>/latest/meta-data/iam/security-credentials/<IAM role name>.
As workaround I use the AWS CLI to assume the role and get the temporary security credentials (see aws sts command below). Then I configure a profile manually within ~/.aws to mount the bucket with goofys. The issue is I need to do that each 1 hour and umount/mount the bucket.
[ec2-user@ip-10-38-63-201 ~]$ aws sts assume-role --role-arn arn:aws:iam::012345678901:role/3rd-party-role --role-session-name s3-access-example --external-id abc123
{
    "AssumedRoleUser": {
        "AssumedRoleId": "AROAJFGYBKA26W4UVFSQQ:s3-access-example",
        "Arn": "arn:aws:iam::012345678901:role/3rd-party-role/s3-access-example"
    },
    "Credentials": {
        "SecretAccessKey": "WbrACCFEfushblGd1BFFPnmh4AvfaoBWrq/anzCE",
        "SessionToken": "QFoDYXdzEHkaDIh9+cugfVqaOPLDciLUAVEkEAMTAoIzhSZQNbuRCVwhI+JMUEMu8UsYidf1aP/fW0bhXGCCR4rbQZgu8BPF0ABhAtYbk94l4yFGMEqy4ZgtTwyFUx8T4FMPxXA/66vsYuA1WNIm36Swf+mvQxrOlc0nn9ZcqNVksQHtA9a62nMFg3QRZo4/Waft4SuZ95aCddRbsqWX36MQr4AXPRNpyzlFAQiYFRbZIaVsot4Bkpvg7TnYniGW4+X5PqMftIxqkHM1e7bZTgf5959zlmp6MBfSVlWV6hMGUuMdM//N3hQ4zj7pKMb5vscF",
        "Expiration": "2017-07-19T16:37:42Z",
        "AccessKeyId": "ASHAJ5O7CVPDJHNMX2AN"
    }
}

if you don't have credentials configured in ~/.aws/ and in env var, goofys will automatically use your instance profile.

The credentials from my instance profile only provides me access to my AWS resources on my own account.
In a cross account scenario where you need to access to 3rd party AWS resource you need to assume a different role to get access to the resource (in this case a S3 bucket).

For users with organizations and multi-accounts, it's beneficial to be able to mount an S3 bucket by assuming a role. We have a sandbox account for our staging environments, and I like being able to mount an S3 bucket in my local machine and tailing log files and so on. We have user accounts in a main management/orga account, and we just assume roles in our secondary accounts. So while profile works, it seems it doesn't pick up when the profile is simply a role ARN to be assumed.

short of creating another aws account, how would I test this?

I don't think having an external account is necessary; I think it's the most common case for the AssumeRole, but it should be testable without.
Create an IAM user U that does not have permission to a bucket X, and a role R that has access to X. Then give permissions for U to assume role R, and mount the filesystem using that role. You can simply add a profile P in your credentials file which has only the assume role bits and no credentials.

for some reason I keep getting User: arn:aws:iam::217251571129:user/s3_read_only_user is not authorized to perform: sts:AssumeRole on resource: arn:aws:iam::217251571129:role/s3-read-only, even though I have this policy set:
{
    "Version": "2012-10-17",
    "Statement": {
        "Effect": "Allow",
        "Action": "sts:AssumeRole",
        "Resource": "arn:aws:iam::217251571129:role/s3-read-only"
    }
}

turns out aws-sdk-go has a built-in way to assume role, by setting role_arn = arn:aws:iam::blah:role/blah, could any of you try to see if that works for you?

forgot to add, if you want to try that, you also need to set AWS_SDK_LOAD_CONFIG=1

on the role that you want to assume , you would need to add these policies
allow role to perform s3 actions
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "s3:*"
            ],
            "Resource": [
                "arn:aws:iam::217251571129:user/s3_read_only_user"
            ]
        }
    ]
}

Also an additional policy to define what s3 resources the role can access to
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": "s3:GetObject",
            "Resource": [
                "arn:aws:s3:::<bucket>/<key>"
            ]
        }
    ]
}

why would I need to allow s3:* actions on a role resource?

I figured it out, I need to establish trust relationship on the role for the user, for future reference:
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Principal": {
        "AWS": "arn:aws:iam::217251571129:user/s3_read_only_user"
      },
      "Action": "sts:AssumeRole"
    }
  ]
}

(the example in https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user.html is wrong)
After that, I can use this in my ~/.aws/credentials
[s3_read_only_user]
aws_access_key_id =  ***
aws_secret_access_key = ***

[s3_read_only_user2]
source_profile = s3_read_only_user
role_arn = arn:aws:iam::217251571129:role/s3-read-only

and this goofys command to mount the bucket:
AWS_PROFILE=s3_read_only_user2 AWS_SDK_LOAD_CONFIG=1 ./goofys <bucket> <mntpoint>

I noticed that aws-sdk-go tried to contact instance metadata if I don't specify AWS_SDK_LOAD_CONFIG=1, but since I am running this test locally I don't know if it'd just work for IAM instance. @aquexata would you like to test this out?

Hello @kahing I reproduced the issue
# AWS_ACCESS_KEY_ID=$ROLE_ACCESS_KEY_ID \
> AWS_SECRET_ACCESS_KEY=$ROLE_SECRET_ACCESS_KEY \
> AWS_SECURITY_TOKEN=$ROLE_SECURITY_TOKEN \
> DEFAULT_REGION=$ROLE_DEFAULT_REGION \
> /root/work/bin/goofys [mybucket]:/path/to/dir /[mountpoint]

2018/08/24 21:53:36.361295 main.FATAL Unable to mount file system, see syslog for details

and /var/log/messages
Aug 24 21:38:06 [hostname] /root/work/bin/goofys[4705]: s3.INFO Switching from region 'us-east-1' to 'ap-northeast-1'
Aug 24 21:38:06 [hostname] /root/work/bin/goofys[4705]: main.ERROR Unable to access '[mybucket]': permission denied
Aug 24 21:38:06 [hostname] /root/work/bin/goofys[4705]: main.FATAL Mounting file system: Mount: initialization failed

S3 command looks ok
#    AWS_ACCESS_KEY_ID=$ROLE_ACCESS_KEY_ID         \
>    AWS_SECRET_ACCESS_KEY=$ROLE_SECRET_ACCESS_KEY \
>    AWS_SECURITY_TOKEN=$ROLE_SECURITY_TOKEN       \
>    DEFAULT_REGION=$ROLE_DEFAULT_REGION               \
>    aws s3 ls s3://[mybucket]/path/to/dir
                           PRE mydir/

do you need some more information?

@smaruy30 It's actually AWS_SESSION_TOKEN not SECURITY_TOKEN... Just spent a few days dealing with that. With and without the sdk_load_config command.

Hello @kahing  I came across the same issue. In my case I have a config file that looks like this:
`[default]
s3 =
signature_version = s3v4
region = eu-west-1
output = json
[profile prod]
role_arn = arn:aws:iam::account2:role/my-role
credential_source = Ec2InstanceMetadata
region = eu-west-1
output = json
`
My instance is launched in account1 while the role assumed is in account2. The credentials are retrieved via Ec2InstanceMetadata.
From my understanding the issue is caused by these lines:
https://github.com/kahing/goofys/blob/master/api/api.go#L92-L96
as the tool at the moment does not support Ec2InstanceMetadata.
I am not a go developer but I suppose this could be helpful?
https://docs.aws.amazon.com/sdk-for-go/api/aws/credentials/

Example of ChainProvider to be used with an EnvProvider and EC2RoleProvider. In this example EnvProvider will first check if any credentials are available via the environment variables. If there are none ChainProvider will check the next Provider in the list, EC2RoleProvider in this case. If EC2RoleProvider does not return any credentials ChainProvider will return the error ErrNoValidProvidersFoundInChain

`creds := credentials.NewChainCredentials(
[]credentials.Provider{
&credentials.EnvProvider{},
&ec2rolecreds.EC2RoleProvider{
Client: ec2metadata.New(sess),
},
})
// Usage of ChainCredentials with aws.Config
svc := ec2.New(session.Must(session.NewSession(&aws.Config{
Credentials: creds,
})))`


Add self destruct message

Reported by @eyallior:matrix.org

There is a proposal for synapse server to handle that feature, merged into develop now, here : https://github.com/matrix-org/synapse/pull/6409
So it could be possible soon now, right?

There is a proposal for synapse server to handle that feature, merged into develop now, here : matrix-org/synapse#6409
So it could be possible soon now, right?

Maybe it'll be implemented in new riotX app as soon as it replaces the old riot app. 😏


Add a ->storeDate() or a ->storeCustomData() feature

Hey, my apologies for all the issue - again, thanks for the really great package!  😃
One thing we need actually is a way to store the date that each file was uploaded at.  I know S3 stores this, but we can avoid retrieving that information from S3 and save some $$ if we store it in our DB.  I also know if we used a model and relationship, we could then save the created_at date that way.  However, it will keep our system simplest if we could just do something like this:
NovaS3MultipartUpload::make('Assets')
    ->storeName('file_name')
    ->storeDate()

At first, we thought we could just use the ->storeMeta() option but then we discovered this requires allowing the user to edit these fields - (a really cool feature!) but not exactly what we need.  Maybe instead of specifying the date, you could even include a way to enter non-user meta data, like:
NovaS3MultipartUpload::make('Assets')
    ->storeName('file_name')
    ->storeCustomData(
                    [
                        'date' =>  now(),
                        'another_custom_value' => 'whatever'
                    ]
)

but either way would work for us and be a cool addition to the package.

Hey, it looks good, but not much precise. As the metadata will be passed first to the front-end and will have a time gap between creating the metadata and storing in the DB. So i think will be better if we implement a new set of features of callbacks e.g. onSave()

@bryanjamesmiller check the new UI hide option in ->storeMeta(), Still the callbacks idea is better for security and precise but it needs more time to be implemented later on.

That looks awesome @ahmedkandel I will try this out as soon as I get a chance.  Thanks for implementing it!

@ahmedkandel Just confirmed it's working like a charm.  Thanks again for the great work on this package!  If you want to bump the version number sometimes soon that would be nice as currently I had to pull in from master.  Many thanks again!  🎉


Fixed #34445 -- Forced lazy() to cast to string when a result type of str is specified

str() call was removed in fe8484efda257e151d9c1ca5151e546c9262bf0f. @aaugustin Do you remember why? :thinking:

Also see #11314 which looked to strip out a lot of the complexity after the removal of Python 2. I put in a lot of review and thought it was nearly finished… Time flies!

@shangxiao This issue can be fixed by 4b902b230bbc9efc84539e013b75b63f1ad6e3a5 it's also mentioned in the https://github.com/django/django/pull/11314/commits/9bd855a3386acbfeba231b8afcdfa688c3eaa1c2#r309157402.
I'd prefer to take 9bd855a3386acbfeba231b8afcdfa688c3eaa1c2, 4b902b230bbc9efc84539e013b75b63f1ad6e3a5, and your test method instead of adding a str() call. What do you think?

@felixxm Ok that sounds good 👍 simplifies things 🎉

Superseded by #16707.


Adds run nid to view

What's this PR do?
Adds run nid filter to reportback admin view
How should this be manually tested?

Any background context you want to provide?
Showed Andrea in Slack that signup filtering appears to work already
https://thor.dosomething.org/us/node/6163/signups?uid=&mail=&source=&nid=6166&page=5
What are the relevant tickets?
Fixes #6007

@deadlybutter pics?

:+1:

@angaither

@deadlybutter is that on all reportback views or just the reviewed tab?

actually hmm i might have noticed something wrong, let me double check

@angaither  where else is this view found besides the review tab?

yeah this isnt working, i made the above RB (in the screenshot) have a NULL run nid and its still showing up

@deadlybutter AFAIK it's only the inbox and reviewed tab, but to avoid issues with form api and the infamous reportback reviewing bug, i think we only want this on the reviewed tab

@sergii-tkachenko so @angaither said the dupes are alright, i guess ready for re-review

@deadlybutter we probably want run id after campaign and it should link to the run node

okie dokes

@angaither done

:+1:


Reduce independent set problem to set packing problem

Reduce Independent Set Problem to Set Packing Problem
I. Definitions and Background
I-A. Independent Set Problem (IS)
See "Reduce 3-SAT to Independent SAT Problem" issue.
I-B. Set Packing Problem

Pairwise Disjoint: For a collection of sets, any two of them don't share elements.

Input:

An universe $U$ (need to check: whether $U$ needs to be a finite set);
A collection of $U$'s subsests: $S={S_1, S_2, \cdots S_m }$ (aka: family);
A collection of some of the above subsets (aka: subfamily) that is pairwise disjoint. This subfamily is called a packing, while the size of the packing is the number of subsets included.

Output:

Whether there is a packing of size $k$.

II. Proof (IS <= Set Packing)
The reduction is as follows [Ref. 1]:
Given an undirected graph $G=(V,E)$ and $k$, we aim to generate $(U, S, k)$.

Step-0: $k$ are the same;

Step-1: Each edge $(u,v)\in E$ -> Create an element $x_{u,v}$ in $U$;

Step-2: Each vertex $v \in V$ -> Create a subset ${S_{u,v}|(u,v)\in E }$.
It can be proven that:

$(G,k)$ is an yes-instance if and only if generated $(U,S,k)$ is an yes-instance;

This transformation is within polynomial time.

III. References
Core References:

https://kgardner.people.amherst.edu/courses/f19/cosc311/mini/mini10solutions.pdf


Swift UI Property Wrappers

This adds property wrappers for use in SwiftUI.
As this library currently targets iOS 12 and related OSes, nothing conforms to Identifiable.
It's straightforward to do that in your own code.
FetchRequests v4 will target iOS 13 and related OSes.
Examples:
    @FetchableRequest(
        fetchRequest: FetchRequest(request: User.fetchAll),
        sortDescriptors: [
            NSSortDescriptor(
                key: #keyPath(User.name),
                ascending: true,
                selector: #selector(NSString.localizedStandardCompare)
            ),
        ]
    )
    private var members: FetchableResults<User>

For more complicated use cases, you probably will need to write initializers for your view, for example:
    private let fromID: EntityID

    @FetchableRequest
    private var members: FetchableResults<Membership>

    func init(fromID: EntityID) {
        self.fromID = fromID
        _members = FetchableRequest(
            fetchRequest: Membership.fetchRequest(from: fromID, toEntityType: .user)
        )
    }
}

The controller will perform a fetch once and only once upon the first view render.
After that point, it is dependent upon live update events.

Codecov Report

Merging #22 (afe8937) into main (5aac561) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #22   +/-   ##
=======================================
  Coverage   97.69%   97.69%
=======================================
  Files          12       12
  Lines         130      130
=======================================
  Hits          127      127
  Misses          3        3

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 5aac561...afe8937. Read the comment docs.

.


WebConsole project : the port used by webUI is not secured

Hi @abousselmi ,
I am facing a problem with webconsole project which is not secure and make my system vulnerable.
I know how to fix the code but I need your help to tell me how to override the webUI container by adding my changes.
I took a fork from free5gc/webconsole project but where can I in the yaml file should I do the changes to read from my github instead of free5gc github?
Your help is much appreciated.
Regards,
Nathalie Wehbe

Hi @nathalie21005, I'm not really an apache expert, I can't really help with this. Though, I do not recommend the modification of the WebUI container to run the reverse proxy, but instead I think HTTPS should be terminted using reverse proxy which in terns will communicate in http with the WebUI on port 5000 of the container, or the host if you chose to forward it to the host server.

@nathalie21005
You can add the additional service nginx to fulfill your requirement:
nginx:
    container_name: nginx
    image: nginx
    ports:
        - "80:80"
    volumes:
        - ./nginx/nginx.conf:/etc/nginx/nginx.conf
    networks:
      privnet:

configuration file:
events {
  worker_connections  4096;  ## Default: 1024
}
http {
    server {
    listen       80 default_server;
    listen       [::]:80 default_server;
    root /var/www/html;
    index index.html index.htm index.nginx-debian.html
    access_log /var/log/nginx/access_log;
    error_log /var/log/nginx/error_log;
    location / {
            proxy_pass http://<IP_ADDRESS>:5000;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
        }
    }
}

@ianchen0119  I added your answer to readme for reference. Thanks ! Closing this issue.


Replace cpp-ethereum with evmone for contract execution

The base branch is time/core0.21.
This branch has submodule version that is different than the master branch, so the checkout is different in order to load the correct submodule version:
git clone https://github.com/qtumproject/qtum
cd qtum
git checkout time/eth_client
git submodule update --init --recursive

The code use Evmone with max EVM fork Muir Glacier to execute the contracts.
The code contain activation block number for Evmone to use the EVM fork London after that block number.
The file chainparams.cpp contain parameter called consensus.nLondonHeight that can be used to set the activation block for the EVM London fork.
For regtest mode the London fork block number can be set from command line:
qtum-qt -regtest -londonheight=NUMBER

Unit tests are added for EVM London fork.
qtum/src/eth_client contain part of the code from qtum/src/cpp-ethereum that is support for the VM and it is updated to work with EVM London fork.
The submodule qtum/src/cpp-ethereum is replaced with submodule qtum/src/evmone.
Gitian build is updated to use the new submodule.

Included in https://github.com/qtumproject/qtum/pull/966


[bug] Unable to load configuration files using the * wildcard

Describe the bug
Unable to load yaml configuration file using the * wildcard in setting_files argument
To Reproduce
Steps to reproduce the behavior:

Having the following folder structure

 Project structure
# project.py
# .config/data_sources.yaml
# settings.toml

Having the following config files:

 Config files
.config/data_sources.yaml
DEFAULT:
  DATA_SOURCES:
    NAME: 1

and
settings.toml
[default]
LOG_LEVEL="INFO"

Having the following app code:

 Code
project.py
from dynaconf import Dynaconf

settings = Dynaconf(
  environments=True,
  lowercase_read=False,
  load_dotenv=True,
  settings_files=["settings.toml", ".config/*.yaml"]
)

print(settings.LOG_LEVEL)
print(settings.DATA_SOURCES)

Executing under the following environment

 Execution
$ python project.py

Expected behavior
When running the script it should first print "INFO" (value for LOG_LEVEL) and then print {"name": 1} (value for DATA_SOURCES as specified in .config/data_sources.yaml)
This works as expected when I specify settings_files=["settings.toml", ".config/data_sources.yaml"] (without the * wildcard).
Environment (please complete the following information):

OS: CentOS Linux Release 7.9.2009 (Core)
Dynaconf Version: 3.2.0
Python version: 3.10.8

fix in #987


Find 3 methods to use CodeCoverage tool on

For Part 2 task 1, we need to find 10 high complex methods in the project and use our own code coverage tool (CodeCoverage.java) to see what branches are covered by the test cases.
We still have 3 functions left to cover.

Taken care of by: 2b17356, e6890cd and 2c73e56


[Bug]

What happened?
Permissions don’t save when a player leaves and rejoins or server restarts
Steps to reproduce
Add permission to player using the action
Leave
Rejoin
Permission will be gone
Crash dump
No response
Plugin Version
2.8.0
Server Version
4.2.2
PHP Version
8.0
Server OS
Linux
Additional Information
No response

Are there any errors displayed in the console?


command highlighted with dark background after completion start

With just the following .zshenv and no other z dot files:
source "/home/nir/config/terminal/prezto/modules/syntax-highlighting/external/zsh-syntax-highlighting.zsh"

ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern root)
ZSH_HIGHLIGHT_STYLES[builtin]='bg=yellow'
ZSH_HIGHLIGHT_STYLES[command]='bg=yellow'
ZSH_HIGHLIGHT_STYLES[function]='bg=yellow'

I see a very strange issue with syntax highlighting. If I type "cd" it syntax highlights correctly, but then after I hit space and tab and begin auto completion, it changes the background of "cd" to a very dark color. Then if I hit backspace, it re-highlights it correctly.
I run a solarized theme, if that matters. Whatever color I set it to above, it highlights it correctly, but then after auto completion starts it always goes to black.
Help appreciated!
I tested this on an ubuntu box with zsh 5.6 and cannot duplicate it; the original problem occurs on WSL, running zsh 5.8.1.  The behavior can be reproduced with the default windows terminal emulator, and VsCode's. So I don't think this is a terminal emulator issue.

What are the values of $ZSH_HIGHLIGHT_REVISION and $ZSH_HIGHLIGHT_VERSION?

With just the following .zshenv and no other z dot files:

Are there any global dotfiles (usually named /etc/zsh*)?

after I hit space and tab and begin auto completion, it changes the background of "cd" to a very dark color

After which of the three operations here (hit space, hit tab, "begin auto completion" which may or may not be the same thing as the preceding one) does it turn dark?
If you change bg=yellow to, say, fg=green, does it still turn the same dark color?


Small fix for unlisted NFT canisters

Before:
https://user-images.githubusercontent.com/60938577/141859471-138f5abc-2224-4231-b02b-515aa85613ac.mov
After:
https://user-images.githubusercontent.com/60938577/141859519-e2185254-94bb-40d9-bad7-f130545f1cd8.mov

This bug still exists today 😅. Should be a trivial fix to merge!


Fix is_point_on_curve (fixes issue #48)

See issue #48

Agree with @antonio-fr that we should try to keep is_point_on_curve as cheap as possible since it's used whenever a new Point is constructed. If possible we should avoid modular square roots.

Based on looking at #48 some more I'm actually leaning towards closing this. Let me know if you agree with my comments in #48, it appears to me the logic is sound and correctly catching an invalid point.

Closing per the last comment left in issue #48. Let me know if you want to discuss further.


WIP: Fabric/FAB-2294: non-TLS connections

NOTE: Updated documentation on its way
I have incorporated someof the chages made by Nick Gaski as part of the
same issue into this commit.

removed couchdb
add fabric-cli container

To start the container use the below command
docker-compose -f docker-compose-marblesv3.yaml --project fixtures up -d

I've discussed it with the team, and we do not want the docker compose setup for a Hyperledger network in this repository. We would rather people use the setup in the test environment in the SDK.  This keeps us from trying to maintain it with the fabric updates, and keeps marbles tidier.


Bug: Adding dependencies that already exist cause dependency installation failure

We are adding prettier as a dev dependency, but if prettier already exists as a dependency in package.json, rehearsal migrate fails.

This is a clone of #919


Linked GCC10 Toolchain is flagged as Virus/potentially dangerous

When trying to download the prebuild GCC10 Toolchain for RISCV from the provided link:
https://gnutoolchains.com/risc-v/
Virustotal freaks out a bit:
https://www.virustotal.com/gui/file/9fdb75f4c67a6975f362ae61116c65bef5ba1e841e2f22a3b14d2da9df0e07fa
Is it safe to use?

cad435

I have not seen this!  We will discuss on my Discord.  Thank you for reporting it.

 Thank you for looking in
I just want to add that it actually is very easy to make a Ubuntu WSL, install the required packages and compile the bootloader this way. (Never done this before, defintely will use it more often in the future)
for me, with (I'd say) beginner Linux skills definately less effort than installing a toolchain on windows...

It is unacceptable for users to install WSL to use this tool.  WSL requires >100MB of space, which is out of the question for supporting embedded development for a platform... not to mention additional services will need to run.
The link above is a single installer that includes all needed components, so the complete installation steps are:

Use the GCC installer from the above link.
Get a copy of ch32v003fun.
Run "make" in the example of your choice from command-line.

Anything more complicated than that is not going to be tolerable to our audience.
-- on the reporting end --
So far, one other user is reporting that there is no issue.  We are continuing to investigate.
Charles

Hmm, yeah I definately can see that points in regards to WSL...

It appears that this might be a false alarm.  It is possible that the install methodology of this GCC compiler toolchain is similar to an attack vector of muddywater.  But, still looking.  I've reached out to sysprogs to discuss with them.

After talking to others, I think this is a false alarm, but we currently have an issue open with xpack, to try to get them to include ilp32e, rv32ec https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack/issues/38

xpack binaries are compatible rv003usb.  there is a new build coming out with explicit ilp32e--c support, which is even better. I will migrate from sysprogs to xpack.


Youtube In-video Ads

Hello Steven,
Not sure if that is a suitable comment to make, but just want to draw your attention that Youtube in-vdeo ads have started showing up.
Probably use youtube red would be a solution for some.
Thanks heaps for the great work you do.

Thanks @umang349, we'd love to find a way to throttle those.
I notice now, when I "Skip Ad" after the obligatory delay, it fast-forwards to the end where we still have to watch the advertiser's call to action.
Since this issue contains nothing immediately actionable, I'm closing this now.


Text bleed over styles for docs

Nice. Good catch.

This specific issue of IPAddressType will be fixed when a fix for #2195 is done.  When the types are standardized we will know the length of each type and can adjust the width of the column appropriately


Golden carrots are not animated

Golden carrots are (arguably) the best food item in the vanilla game, so it's unfortunate that golden carrots are the only vanilla food without an animation. Would love to see an animation added :)

Golden carrot animated

if you use vanilla tweaks with fix item stitching, it breaks the mod, go into your resource pack and delete all files that modify the golden carrot


WoodCutting Plugin not detecting the interaction.

Describe the bug
When woodcutting the Plugin always stays as "NOT woodcutting"
To Reproduce
Steps to reproduce the behavior:

Click on a tree
See woodcutting plugin update logs cut but not status

Expected behavior
It should change from red "NOT woodcutting" text to green "woodcutting"
Screenshots
https://i.imgur.com/dQac8dk.png
Environment (please complete the following information):

OS: Windows 10
RuneLite version: <IP_ADDRESS>
Launcher version: 2.1.0

Additional context
This may be a problem with the client not detecting the interaction since Idle Notifier does not work either while woodcutting.

this issue is closed, issue is gilded axe isnt supported


Recipe for testing with React

Also relevant #186

I will be happy to handle that as soon as recent change in master are released, as well as a way to allow people to use fancy stuff like css modules in their code to test.

I think @kentcdodds may already have a good start on this. He's apparently been teaching AVA with React in class. Not sure if he's got time to make an actual PR, but given his extensive work in this area, it would be good if he was involved.

Ok, just ping me if you need a hand. I am going to write a blog post or 2 about AVA and AVA with React/webpack loaders.

@MoOx - Not saying you shouldn't be the one to do the PR, just that @kentcdodds should be looped in.
Please let us know about your blog posts when they go live!

I will (maybe even before, during post review) :)

as well as a way to allow people to use fancy stuff like css modules in their code to test.

AVA with React/webpack loaders.

If you can do webpack loaders in AVA tests, I want to see that. In my mind, this is a real challenge for any project using webpack heavily!
I'd love to review what you come up with :D

To test with webpack loaders, there is this plugin: https://github.com/istarkov/babel-plugin-webpack-loaders, we use it for unit testing and backend rendering of react components using the css loader.
Has anyone considered using enzyme with ava?

I use this exact babel plugin. Enzyme seems like going backward to me. jQuery syntax seriously? expect-jsx is clearly enough and make test very simple and clear.

I would recommend that the recipe only reference these abstractions but not actually use them. Just use the official React testing utils for the examples to give a good baseline and let other people choose what they'd prefer.

Also, I heard that using that plugin made things extremely slow. Has this been your experience?

@MoOx do you have any example of using ava with expect-jsx? Sounds interesting

@kentcdodds totally
@adriantoine https://github.com/sindresorhus/ava/issues/186#issuecomment-161317068

@kentcdodds It's slower because (for now I hope) you have to disable babel cache to don't miss update in css or any other files consumed by webpack that are not recognized by node/babel. You can subscribe to this thread if you are curious about how this will end :)
https://github.com/MoOx/statinamic/issues/301

While we're on the subject of Webpack, what do you do about webpack aliases and custom modulesDirectories?

I don't use those. I avoid webpack whenever I can. I only use it for loaders (transformation) and try to make my code reusable/universal.

That's a good way to go I think :)

Babel plugin webpack supports aliases and modulesDirectories.

Babel plugin webpack

Just to be clear, you're talking about this one?

Yes.

This looks interesting: https://twitter.com/bruderstein/status/718113603484823553

Plugin for unexpected to allow for testing the full virtual DOM, and against the shallow renderer

Sounds a bit overkill to me. I am going to release some simple helpers (around 20 lines of code) and will let you know about it.

Yeah, I'd prefer to limit the number of abstractions in a recipe personally. Then just reference the other abstractions.

I just published this small module https://github.com/MoOx/jsx-test-helpers
Code is simple https://github.com/MoOx/jsx-test-helpers/blob/master/src/index.js
And I pushed an annotated test file https://github.com/MoOx/jsx-test-helpers/blob/master/src/tests/index.js
Comments welcome.
For the webpack thing, I already pushed something on my js-boilerplate but I need to make a proper article about the entire setup.

I adopted another solution using js-dom, enzyme and chai-enzyme:

package.json ava config
helpers / setup jsdom
helpers / mount component

and tests are written this way:

simple concurrent tests
serial tests with xhr calls

By the way, unexpected-react doesn't work with react@15 because it relies on react/addons which has been deprecated in<EMAIL_ADDRESS>and removed in react@15.

and @MoOx solution works quite well!


how to capture ex aws error

im using ExAws.S3.Client to put_object to my S3 bucket in bulk.
but sometime i realize the file is not generated.
i foresee that there is an error in the process that i did not catch that is causing this.
Im trying to catch all errors during the uploading process and log it so i can just manually process the error files later.
So i tested with shutting my internet connection during the batch upload execution and i cant catch the error in my try catch block.
my error log print this:
[error] ExAws: HTTP ERROR: :timeout
[error] ExAws: HTTP ERROR: :nxdomain
but i did not capture this on my try catch.
help?

ah i realize it will automatically retry for 10 times before giving up and throw error

Yup yeah as you're seeing this is just log output from one attempt. Do note that if you use put_object you will get a {:error, reason} tuple as a result and so you won't need to use try.


Rename IsStackInstruction to IsModifyingStack and add a new IsUsingStack

The current IsStackInstruction is a bit false leading as by its name I would assume it tells me whether the instruction uses the stack. In fact it only tells whether it modifies the stack. For example it returns FALSE for mov rbx,[rsp+40].
So I would suggest to rename the property and also add a new one which tells us if the instruction reads the stack (or is there a quick iteration-free way to do right now?)

It returns true if it uses the stack implicitly, either by reading from the stack or writing to it (i.e., pushing or popping). The docs mention this too.

I know that the docs say that but the name is still misleading, because it ONLY returns true if the stack is modified. Popping or pushing the stack, changes the stack. It either removes or adds a value to it. In both cases the stack is modified. So IsModifyingStack describe what it does.
mov rbx,[rsp+40]
READS from the stack. It reads the value at rsp+40 and moves it into RBX. IsStackInstruction returns false. But it does something ( = reading) with the stack.

Popping only reads from the stack, so nothing on the stack is changed.
MOV is not a stack instruction. Any instruction that references memory could be reading from or writing to the area allocated to the stack, eg. mov eax,[rbx] could be reading from the stack.
A stack instruction (in iced at least) is any instruction that implicitly pushes or pops the stack, eg. CALL, PUSH, RET, etc.

Popping only reads from the stack, so nothing on the stack is changed.

On the stack is nothing changed but the stack itself is changed as the stack pointer changes:

eg. mov eax,[rbx] could be reading from the stack.

That however is true and a good argument. Convinced me to say that what I am looking for is not the right thing.


Feat/package download page

Proposed changes

This PR refactors download page of kaia(klaytn). Thanks to @praveen-klaytn, it automatically updates download page when new release of kaia came out.
Note that, currently, kaia-v1.0.0 doesn't support downloadable packages except the linux executables. This exceptional logic will be removed soon as setup of kaia ci completes.
Normally the page look like this.

Types of changes
Please put an x in the boxes related to your change.

[ ] Minor Issues and Typos
[ ] Major Content Contribution
[ ] Others

Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to reach out. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

[ ] I have read the CONTRIBUTING GUIDELINES
[ ] I have read the CLA and signed by comment I have read the CLA Document and I hereby sign the CLA in first time contribute
[ ] I have added necessary documentation (if appropriate)
[ ] Any dependent changes have been merged and published in downstream modules

Related issues

Please leave the issue numbers or links related to this PR here.

Further comments

I have read the CLA Document and I hereby sign the CLA

I have read the CLA Document and I hereby sign the CLA


feature/esp32c6: Support for esp32c6

Initial support for esp32c6

Basic drivers and peripherals
Basic DT configuration
Support for esp32c6_devkitc board, hwmv2
Simple boot and MCUboot support

@nordicjm still a draft version, not fully reviewed.. we are working on it.

@nordicjm still a draft version, not fully reviewed.. we are working on it.

For the record, we anticipated it to help the efforts of those discussing it in https://github.com/zephyrproject-rtos/zephyr/discussions/62138

Please don't use commit hashes of unmerged HAL PRs in the west.yaml. Use pull/278/head while in review. Then merge the HAL PR, and finally use the correct SHA. Otherwise we might end up merging a PR with an invalid hal reference.

Thanks for your comment

Also tested it locally:
 Total complete: 2701/2701  100%  skipped: 2273, failed:    0, error:    0

C6 related changes https://github.com/zephyrproject-rtos/zephyr/pull/74320

@raffarost @sylvioalves needs rebase

@aescolar @nashif FWIW @nordicjm's request for change has been applied verbatim, in case he hasn't time to revisit before RC is cut

fwiw I was able to get blinky running on docs.m5stack.com/en/core/M5NanoC6 🌟 🚀 +1 for the docs aspects as well

https://github.com/zephyrproject-rtos/zephyr/pull/74697 in case anyone is interested :)
fwiw I cannot seem to get the UART to work, is this a known issue by any chance?


Secure session flow - handling error case

I'm currently implementing the SPDM responder for the secure session and planning to support only SPDM cmds( GET_MEASUREMENTS, HEARTBEAT, END_SESSION) as application message
/*
* Secured message : Encrypted Application message
* 1)Decode secured message to Application data
* 2)Application message to SPDM message
*/
After step 1), have a pointer pointing to the application message, highlighted below in the figure

But for some reason mctp_msg_type is not SPDM or the size of the application data len is less than the size of the SPDM message header structure (refer below). So there is not point in decoding the app message and I have to return the error to requester.

QUESTION:
Should I encrypt the error message as the sesion_id is valid? or just drop the response, clean the session info and no need to send anything back to the requester?
typedef struct

{
UINT8 spdm_version;             /<
* [7:4] The major version of the SPDM spec
* [3:0] The minor version of the SPDM spec
*/
UINT8 request_response_code;    /< The request message code or response code */
UINT8 param1;                   /< The first one-byte parameter */
UINT8 param2;                   /< The second one-byte parameter */
} spdm_message_header_struct;

Should I encrypt the error message as the sesion_id is valid? or just drop the response, clean the session info and no need to send anything back to the requester?

That depends on the Responder's / Platform's security policy. If the Responder has a fixed security policy then follow that. If it relies on the Platform's security policy then the Responder's behavior may need to be configurable.

I did not understand.
There is no policy defined, I'm following the spec and expect the Requester to follow the same.
Per spec, how do we handle this?

2023/09/04: If the responder does not know encrypted message type, what should be returned?
Will file DSP0276 issue to ask.

Thanks for filing, should I wait for an update in this ticket or is there a separate issue I can follow to know the updates on this

@jyao1
In this case, we can build the SPDM error response with error code - "SPDM_ERROR_CODE_UNEXPECTED_REQUEST" and encode the response and send it back to requester thru secure session.
Is this valid error case handling?

We have discussed in the SPDM-WG meeting and we believe it should be MCTP error - ERROR_UNSUPPORTED_CMD.
See https://www.dmtf.org/sites/default/files/standards/documents/DSP0236_1.3.1.pdf, Table 13 – MCTP control message completion codes


Unable to access http://materializecss.com/grid.html at http://materializecss.com/

Its website related issue.
Unable to access  http://materializecss.com/grid.html since past few days.
Kindly resolve the same asap.
Thank you

It works for me right now.
Is it happens for you for the single page or the entire website?

I'm still facing this issue for this link specifically else rest of the website is working fine.

I'm accessing it from Geo location : India

Have you tried another browser? May be it's adblock related problem.

I tried to access with Safari and Chrome on MAC OSX ElCaptain.
Chrome on Elementary OS Loki  (linux).
I do not use ad blocker on safari.

Not sure why this would happen. We use github hosting so I don't really know what else to say. It's working on my safari locally. You've navigated there through the side nav and directly?

Working for me


Improve usage of offense matchers and heredocs in specs

Another pass of the same treatment as in #5982.

Introduce #expect_offense and #expect_no_offenses in many more specs.
Replace instances of code examples expressed as arrays of strings with heredocs.
Replace usages of #strip_margin with #strip_indent.

Before submitting the PR make sure the following are checked:

[X] Wrote good commit messages.
[ ] Commit message starts with [Fix #issue-number] (if the related issue exists).
[X] Feature branch is up-to-date with master (if not - rebase it).
[X] Squashed related commits together.
[ ] Added tests.
[ ] Added an entry to the Changelog if the new code introduces user-observable changes. See changelog entry format.
[X] The PR relates to only one subject with a clear title
and description in grammatically correct, complete sentences.
[X] Run rake default or rake parallel. It executes all tests and RuboCop for itself, and generates the documentation.

The changes look good, but you'll have to see what's wrong with 2.1.

@Drenmi Guess the plan is to merge this after the PR dropping support for 2.1, right?

@bbatsov Correct. 🙂

@Drenmi Well, feel to update this then. :-)


cudaMemcpyDeviceToHost Slow Time

When I provide images in a loop without any delay, the processing time for yolov7-face or yolov8-face is short. However, when I feed the images to the detection function one by one, introducing a 1-second time interval between each photo, the processing time becomes longer. What might be causing this issue?
Here are the processing times for images in a loop:
../images//test1.jpg average: 389.05ms
../images//test3.jpg average: 134.054ms
../images//cam4.jpg average: 104.824ms
../images//test11.jpg average: 93.1855ms
../images//test7.jpg average: 86.4966ms
../images//test8.jpg average: 85.9823ms
../images//arac2.jpg average: 67.5789ms
../images//arac3.jpg average: 69.3688ms
../images//arac4.jpg average: 68.7759ms
../images//test9.jpg average: 75.8391ms

And here are the processing times with 1-second intervals between images:
../images//test1.jpg average: 267.529ms
../images//test3.jpg average: 313.996ms
../images//cam4.jpg average: 159.6ms
../images//test11.jpg average: 315.25ms
../images//test7.jpg average: 296.985ms
../images//test8.jpg average: 237.869ms
../images//arac2.jpg average: 206.976ms
../images//arac3.jpg average: 244.924ms
../images//arac4.jpg average: 185.883ms
../images//test9.jpg average: 239.323ms

Upon analyzing the detect function, I've identified that the following line is taking a long time:
CHECK(cudaMemcpyAsync(decode_ptr_host[i],decode_ptr_device,sizeof(float)(1+MAX_OBJECTSNUM_BOX_ELEMENT),cudaMemcpyDeviceToHost,stream));
What could be the issue and what can be the solution? CudaMemCpy is slower when images are given one by one. How can I solve this?

I tried your first recommendation, and it works! Thank you!
For who want to try to lock the gpu frequency of jetson devices, commands are given below:
$ sudo nvpmodel -m 0
$ sudo jetson_clocks

Oh, that's great


Update Get-SPOUnifiedGroupMoveState.md

Added additional status values

Move a SharePoint site to a different geo location

could you use the relative link here? so the right locale can be picked up automatically.
/microsoft-365/enterprise/m365-dr-workload-spo

Refers to: sharepoint/sharepoint-ps/sharepoint-online/Get-SPOUnifiedGroupMoveState.md:116 in dee085a. [](commit_id = dee085a709813ec47ec8809d29c23a80940793c4, deletion_comment = False)


begin electron migration

Description
dev mode for running app in electron
note: this breaks keepkey-webusb. next up is to bring in the keepkey bridge and allow this app and other dapps to connect to it.
Notice
Before submitting a pull request, please make sure you have answered the following:

[ ] Have you followed the guidelines in our Contributing guide?
[ ] Have you checked to ensure there aren't other open Pull Requests for the same update/change?
[ ] Do all new and existing tests pass? Does the linter pass?

Pull Request Type

[ ] :bug: Bug fix (Non-breaking Change: Fixes an issue)
[ ] :hammer_and_wrench: Chore (Non-breaking Change: Doc updates, pkg upgrades, typos, etc..)
[ ] :nail_care: New Feature (Breaking/Non-breaking Change)

Issue (if applicable)
If applicable, please link to the github issue and put closes #XXXX in your comment to auto-close the issue that your PR fixes.
Testing
Please outline all testing steps

Pull branch locally and run yarn to install new deps
etc...

Screenshots (if applicable)

closing until we discuss this on product roadmap


Expanded QuerySet.explain() error message if a backends supports no formats.

Motivated by the desire to remove special handling in django-cockroachdb.

@timgraham Thanks :+1:


Bindings should provide the option of sending exceptions directly to errorChannel

Currently, the failover strategy is to republish failed messages to DLQ and potentially log the error message (or add it to the header).
It would be more consistent if bindings had an option to publish exceptions thrown during message handling to the error channel.
See http://stackoverflow.com/questions/37215072/spring-cloud-stream-serviceactivator-not-messaging-to-errorchannel-on-exception for a potential use case.

@mbogoevici We have a use case where in the case of an exception we need to increase some metric counters that are dependent on the dynamic contents of the "dead" messages(e.g. message.dropped.[customKeyFromMessage]++).
Can help us understand/point-to how we may be able to implement such a thing.

We would also like to send all thrown exceptions to the default error channel. Additionally, we'd like to be able to have an option to intercept that exception with the message and apply our own error handling business logic

@PedroAlvarado @dopeymac Thanks for the input - we're currently evaluating options for including this as part of Chelsea.SR1 - we're going to update these issues shortly.

@mbogoevici Thanks for the news. We'd be happy to provide feedback on any API changes and/or test out snapshot builds against our use-cases.

Thanks @PedroAlvarado !

Duplicate of https://github.com/spring-cloud/spring-cloud-stream/issues/913


Parsing may want to indicate how much of the string was consumed

This is useful when we're calling this from another parser, like in svgtypes.

That would answer this code comment with "no."
https://github.com/linebender/color/blob/5f8e4e8cccd1945566649cce930512e26f2b1a3e/color/src/parse.rs#L486

Not exactly - I think there might be two API entry points, one for consuming the string, one for consuming a prefix of the string, for colors embedded in larger syntax.


Add menu loop by dimrian47

Song Name
menu loop
Artist Name
dimrian47
Source
Youtube
Youtube Link
h2KUs7MbJcjqOh8Y
Direct File Link
No response
Song ID
467339
Extra
Created from Auto Nong.
Created for level: 103370442

Hola

Kk


adhocReqChan size should be controlled using a config.

@JyotinderSingh  Please assign this to me.

@JyotinderSingh  Please assign this to me.

Assigned


BT Nimble LE pairing takes too long - watchdog timer timeout (IDFGH-13572)

Answers checklist.

[X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
[X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
[X] I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.
v5.3
Espressif SoC revision.
ESP32-S3
Operating System used.
Linux
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
Development Kit.
Irrelevant here
Power Supply used.
USB
What is the expected behavior?
I expect the pairing to complete, as it has done previously, using both Linux and Android host device.
What is the actual behavior?
Watchdog timer timeout during. The timeout does occur deep inside the IDF code, somewhere in mbedtls, it's not in my code.
Steps to reproduce.

Setup BT GATT on ESP32-S3
Try to pair (with no pre-existing bonds)
Wait long, over 5 seconds.

Debug Logs.
No response
More Information.
When I increase the watchdog timer timeout to 10 seconds, the issue is gone. Well, it's worked around. I don't think
a) pairing should take this long
b) even if it takes so long, the watchdog timer is never fed

Hello @eriksl ,
Can you possibly give more information on how to reproduce the issue .

Setup BT GATT on ESP32-S3
Try to pair (with no pre-existing bonds)
Wait long, over 5 seconds.

By setup BT GATT , which application are you running on S3 , is it bleprph ?
Try to pair --> Who is initiating the pairing and by which method ? ( e.g. Bond option on third party phone like nrfconnect ? Am assuming no change is done in default IOCAP on S3 side  ?  Please share your sdkconfig for this .
Wait long, over 5 seconds  -->  What is the remote device being used ? Is there no event received on S3 side.  Can you please enable Nimble Debug logs and share console log too ?   The way to enable debug logs :

Component config → Log output → Default log verbosity --> Set to Debug
Component config → Bluetooth → NimBLE Options → NimBLE Host log verbosity --> Set to Debug

I am running my own application, https://github.com/eriksl/esp32 but not all required information to set up Nimble is available in the documentation and I had to guess some things from the examples like blerph. I will make sure the repository on github is up to date at the end of the day, right now it's a bit outdated due to holidays and a major overhaul + IDF upgrade.
The ESP32 is the peripheral, the Linux host is the central. The central initiates the pairing. It uses whatever method the peripheral offers. To rule out an issue with Bluez I also tried pairing using Android and that gives exactly the same result. Please note, you mention nRF, but the issue is way before the point where an application can connect. It's really during pairing.
IOCAP of course hasn't changed. Actually none of the BT setup code has changed.
The remote is waiting for the S3, not the other way around! The S3 seems to be busy with "something" and finally gives up when the watchdog timer intervenes.
I don't think the debug log will yield anything useful, but the backtrace from the watchdog timer will be very informative I think. The intervention always takes place at the same point in the code, so it looks like the processor stalls there for some reason. Look like some function to handle hardware offload from within MBEDTLS.
I'll attach the relevant code on the ESP32-S3 code, the stacktrace and the config.

Relevant sources.

sdkconfig
sdkconfig.zip

Hi @eriksl ,
the backtrace shows mbedtls functions which , i guess, are causing infinite loop and hence the issue.
Can you please share the way to compile the code against IDF SDK you have shared ( either the bluetooth-src.zip or even the github repo) . I tried few ways like making folder inside IDF or exporting paths, but it fails.
I took the init content from bt.c and replicated it in SDK sample bleprph example.  I tested against phone and bluez and both worked fine.  So, if you can share your compilation setup against IDF SDK to get the application compiled in its entirety , it would help us to follow the same steps and debug more by reproducing issue locally.
idf.txt
bluez.txt
Changed example file for reference:  main.txt

My github repository is now completely up to date and should build cleanly now.
https://github.com/eriksl/esp32
Steps to build and test:

clone repository
you will need a Linux-like build environment because I am using symbolic links. This is because I intend to support multiple ESP32 models and not all model's builds will have all source files or will have the all same source files. By using symlinks I can use one source in more models, if possible.
chdir to s3/develop
run idf.py there

That should be sufficient. If there are any difficulties, please let me know and I will fix it.
Build as is now, it should work. If you change the watchdog timer back to the default of 6 seconds, the watchdog timer will go off.
Thank you for looking into this!
Please note there is no endlessly looping code (either in my app or in mbedtls) because the pairing will succeed if given enough time (set watchdog timer to 10 seconds).

Update, please clone this repository again or pull it (although cloning is probably safest). I have managed to make it ESP32-sub-type and board-type independent without the symlinks kludge. It now looks like a completely normal project, with just two extra menuconfig entries. The board selection currently does not have any influence on the BT code, so you can choose any of the two you like.
I don't expect any building issues now.

Compilation is ok now . Thanks.
but the chip fails to boot.

--- esp-idf-monitor 1.4.0 on /dev/ttyUSB0 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce2820,len:0x1988
load:0x403c8700,len:0x4
load:0x403c8704,len:0xda0
load:0x403cb700,len:0x3518
entry 0x403c8918

The menuconfig has many changes compared to default example sdkconfig. I will try to figure out which option is causing this and check more

Interesting. It will probably have to do with me using a Wemos Lolin S3-mini that has 4 MB flash and 2 MB SPIRAM and I have them "hard" configured in the sdkconfig, I am afraid it can't be done otherwise without issues. If you can get a similar setup somewhere, I guess it could work. Maybe you need to the chip type to autodetect.
If this is a problem I may be able to make a version that runs without SPIRAM.
Sorry for the inconvencience.

This may have to do with me having all MBEDTLS memory allocated from SPIRAM

Ok. This can be possible. Do you observe issue if SPIRAM support is disabled and internal memory is used ?

Closing this issue currently. Feel free to reopen in case of any further updates.


Null Pointer Exception when exploring pathways

My sequence of actions:
Search for "41514.7". Click on the genome.
Select the "Feature Table" tab.
On page 2, select pegs 34, 35, and 36. Ask for the "Pathway Summary".
Choose the "Ubiquinone and other terpenoid-quinone biosynthesis".
In the table on the left, click the "10" under "Feature Count" on the row labelled "3.2.1.-".
page says
ERROR
Cause: java.lang.NullPointerException
See log for stacktrace

this is fixed and available on www.beta.patricbrc.org. please make sure delete cache, since some javascript needs to be updated. thanks for reporting this bug. if you have further question, please reopen this issue.


Missing encoders/decoders should not compile when using custom types

Version: 0.5.0
Module: quill-async
Expected behavior
Failing compilation.
Error:(16, 19) Source doesn't know how to decode 'p1.field: akka.http.scaladsl.model.DateTime'

Actual behavior
Successful compilation and prints:
ActionMirror(INSERT INTO Table (field,field,field,field,field,field,field,field,field) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?),None)

Steps to reproduce the behavior
scalaVersion := "2.11.8"

libraryDependencies ++= Seq(
  "io.getquill" %% "quill-async" % "0.5.0",
  "com.typesafe.akka" %% "akka-actor" % "2.4.2",
  "com.typesafe.akka" %% "akka-http-experimental" % "2.4.2"
)

import io.getquill._
import akka.http.scaladsl.model.DateTime
//import org.joda.time.DateTime

object Main extends App {
  //implicit val encode = mappedEncoding[DateTime, Long](_.clicks)
  //implicit val decode = mappedEncoding[Long, DateTime](DateTime(_))

  case class Table(field: DateTime)
  val db = source(new SqlMirrorSourceConfig("db"))

  val tables = quote(query[Table])
  val value = Table(DateTime.now)

  val res = db.run(tables.insert)(value)
  println(res)
}

This works when using joda time DateTime but not when using akka DateTime.
@getquill/maintainers

Thank you for reporting this bug. I have dug a bit and the issue here is that akka-http DateTime is a case class, and when you have an UnassignedAction quill seems to not be validating at compile time that type of the case class you want to insert/update is the expect by the quotation.
if we change the insert to an update, we get this:
UPDATE Table SET field = ?, field = ?, field = ?, field = ?, field = ?, field = ?, field = ?, field = ?, field = ?

Sorry forget my previous comment, I was playing around with your example and I ended up with something different.
The underlying problem with your example is still the same, the inner case class is being expanded.

#114 might be related to this problem.

Even worse, case class Table(field: Option[DateTime]) does compile and throws a MatchError due to JdbcEncoders.scala#L45 whenever there is an encoder/decoder for Option[DateTime] or not.

@zifeo could you check if this branch fixes this issue?

@fwbrasil I confirm, thanks!


Double operator fails

Hello,
I am having problems when I have formula with "double" operators.
E.g:

--4+5 -> ParseError: syntax error, unexpected '4' (T_LNUMBER)
+-4+5 -> Exception: NXP\Exception\UnknownOperatorException
-+4+5 -> Exception: NXP\Exception\UnknownOperatorException

Thanks for the issue.
I won't be able to look at this for about 2 weeks, but I thought I might be able to help you with a few observations.
First, MathExecutor will not parse anything that is not valid in PHP.  So write a PHP script that does what you want and see if it is valid PHP.
Second (but related to above), I suspect that you need to do something like 10 - -4 + 5.  I think the issue is the first - (or plus) sign is not associated with a value to operate on.  The second +/- is associated with the following value (or should be).  This could be a case of precedence which should be easy to fix if that is the case.
Hope this helps and I will take a look in July.

I think that, all expressions talked in this issue (--4+5, +-4+5, -+4+5, 10--4+5) are not valid and MathExecutor lib should have no code support them.
Minus or plus operators work great with both positive and negative variables and there is no problem.
    $calculator = new MathExecutor();
    $calculator->setVar("prevYearEarning",1000);
    $calculator->setVar("thisYearEarning",-500);
    echo $calculator->execute("$prevYearEarning - $thisYearEarning"); // outputs 1500

If anyone wants to execute an expression like "--4+5" successfully, the expression must be normalized before executation.
For example:
    function normalizeDoubleMinusPlusOperators(string $expression):string{
        $expression = str_replace(" ", "", $expression);
        return str_replace(["--","-+","+-","++"],["+","-","-","+"], $expression);
    }
    $calculator = new MathExecutor();
    echo $calculator->execute(normalizeDoubleMinusPlusOperators("--4+5")); // outputs 9

Another option is surrounding all numbers with brackets to ensure it will execute successfully:
    $calculator = new MathExecutor();
    echo $calculator->execute("-(-4)+(5)"); // outputs 9
    echo $calculator->execute("(10)-(-4)+(5)"); // outputs 19

The real test is to replicate what PHP does. Some of these expressions don't work in PHP, so no need to support them.  Others are easily worked around, so not a huge priority at this point.


virtctl console  connection  timeout

/kind bug

What happened:
apiVersion: kubevirt.io/v1
kind: VirtualMachine
metadata:
name: testvm
spec:
running: false
template:
metadata:
labels:
kubevirt.io/size: small
kubevirt.io/domain: testvm
spec:
domain:
devices:
disks:
- name: containerdisk
disk:
bus: virtio
- name: cloudinitdisk
disk:
bus: virtio
interfaces:
- name: default
masquerade: {}
resources:
requests:
memory: 64M
networks:
- name: default
pod: {}
volumes:
- name: containerdisk
containerDisk:
image: quay.io/kubevirt/cirros-container-disk-demo
- name: cloudinitdisk
cloudInitNoCloud:
userDataBase64: SGkuXG4=
virtctl console timeout
Internal error occurred: dialing virt-handler: dial tcp <IP_ADDRESS>:8186: connect: connection timed out
Environment:
virtctl version
Client Version: version.Info{GitVersion:"v0.50.0", GitCommit:"7e034450c10ad2a879db960b9912be2dff7ed9ce", GitTreeState:"clean", BuildDate:"2022-02-10T13:39:37Z", GoVersion:"go1.17.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{GitVersion:"v0.50.0", GitCommit:"7e034450c10ad2a879db960b9912be2dff7ed9ce", GitTreeState:"clean", BuildDate:"2022-02-10T13:39:37Z", GoVersion:"go1.17.5", Compiler:"gc", Platform:"linux/amd64"}
kubectl version
Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.15", GitCommit:"8f1e5bf0b9729a899b8df86249b56e2c74aebc55", GitTreeState:"clean", BuildDate:"2022-01-19T17:27:39Z", GoVersion:"go1.15.15", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.15", GitCommit:"8f1e5bf0b9729a899b8df86249b56e2c74aebc55", GitTreeState:"clean", BuildDate:"2022-01-19T17:23:01Z", GoVersion:"go1.15.15", Compiler:"gc", Platform:"linux/amd64"}

into lancher container:
error: internal error: character device console0 is not using a PTY

/triage needs-information

@rmohr to follow up here

Can you check if your VM is runnig with kubectl get vmis --all-namespaces?
The message
Internal error occurred: dialing virt-handler: dial tcp <IP_ADDRESS>:8186: connect: connection timed out

sounds to me like virtctl can't reach the node where the VM is running. So you may also want to check the apiserver logs to see if everything is fine.

kubectl get vmis --all-namespaces
NAMESPACE   NAME     AGE     PHASE     IP           NODENAME   READY
default     testvm   6d23h   Running   <IP_ADDRESS>   weixian    True

kubectl get pods -owide
NAME                         READY   STATUS    RESTARTS   AGE     IP           NODE      NOMINATED NODE   READINESS GATES
virt-launcher-testvm-2rx64   2/2     Running   0          6d23h   <IP_ADDRESS>   weixian              1/1


[Modal] Close Position in Scrolling Modal Offscreen When Small Resolution

Close icon disappears when modal content exceeds the height of the browser.
http://jsfiddle.net/r3f44rgd/

It seems to be appearing fine in your fiddle for me. What browser?

Safari 8.0.6 (10600.6.3) on Mac OS 10.10.3 (14D136)
Now I noticed that icon is not disappearing, but after transition it seems to reposition relative to dimmer not modal.

+1 Same issue here, on Safari the -2.5rem for top and right are not relative to the modal but relative to the modal + margin (hence it is off-screen).
@jlukic I think it can be reproduced just fine on Safari / iPad. The screenshot by @stevekr is exacly what I am seeing as well.

The media query should bring the close button to within the modal. And it does, bu the coords still refer to the dimmer, not modal. You can just faintly see the X in the Safari screenshot

This also occurs in IE10/11 (did not test Edge atm). If the modal is of the "scrolling" variety, then the close icon is relative to the dimmer, not modal, hence -2.5rem off from the corner of the window (as opposed to modal). This means that the close icon is completely off-screen..  If the width is reduced, then the close icon should be palced inside the modal, which also does not happen - in this case it is similar to the Safari screenshot above.
#safariisthenewie

The core of the issue is pretty simple. The scrolling modal gets a position: static !important which means that the close icon is no longer relative to that. I propose a fix:
.ui.dimmer.modals .scrolling.modal {
	position: relative !important;
	top: auto;
	left: auto;
}

I see no ill effects on other browsers. @jlukic could you please look into this? :-)

This looks like a bug. The fix seems pretty clear. I do know static is there for a reason which I will have to research through archives.

With the relative (instead of static) fix in place, I'm seeing an issue where modals that are taller than the browser appear far down the page (the page is also much taller than the browser).
js appears sets the top: property on the modal, which is ignored when static, but applies when relative. That may be why static is there.

Using this fix for now:
.ui.dimmer.modals .scrolling.modal {
    position: relative !important;
    top: auto !important;
    left: auto;
}

@gsmith-daed Thanks! the close icon was jumping in all iPhone's i tested upon opening, that's pretty huge BUG I suggest @jlukic take a look into that / push the fix.

Is there already an idea in which version this will be fixed?

Doesn't seem to happen anymore using latest SUI 2.4.1


Implement SDL 0173 Read Generic Network Signal Data

Fixes #990
This PR is ready for review.
Risk
This PR makes minor API changes.
Testing Plan
Added new unit tests and expanded existing ones
Summary
Added RPC structs, enums as defined in the Read Generic Network Signal Data proposal.
CLA

[x] I have signed the CLA

Codecov Report

:exclamation: No coverage uploaded for pull request base (develop@249ac1e). Click here to learn what that means.
The diff coverage is 89.74%.

@@            Coverage Diff             @@
##             develop    #1136   +/-   ##
==========================================
  Coverage           ?   46.95%
  Complexity         ?     4070
==========================================
  Files              ?      457
  Lines              ?    22363
  Branches           ?     2535
==========================================
  Hits               ?    10500
  Misses             ?    11240
  Partials           ?      623

Impacted Files
Coverage Δ
Complexity Δ

...rtdevicelink/proxy/rpc/GetVehicleDataResponse.java
93.75% <100%> (ø)
62 <2> (?)

...link/proxy/rpc/UnsubscribeVehicleDataResponse.java
94.05% <100%> (ø)
61 <2> (?)

...rtdevicelink/proxy/rpc/UnsubscribeVehicleData.java
98.95% <100%> (ø)
63 <2> (?)

...a/com/smartdevicelink/proxy/rpc/OnVehicleData.java
94.44% <100%> (ø)
62 <2> (?)

.../com/smartdevicelink/proxy/rpc/GetVehicleData.java
95.95% <100%> (ø)
63 <2> (?)

...martdevicelink/proxy/rpc/SubscribeVehicleData.java
95.83% <100%> (ø)
61 <2> (?)

...celink/proxy/rpc/SubscribeVehicleDataResponse.java
94.05% <100%> (ø)
61 <2> (?)

...m/smartdevicelink/proxy/rpc/VehicleDataResult.java
80% <77.77%> (ø)
9 <8> (?)

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 249ac1e...c5f5050. Read the comment docs.

@mrapitis as the proposal to revise this feature (https://github.com/smartdevicelink/sdl_evolution/issues/806) has been accepted, please advise when this PR has been tested by Ford and is ready for Livio review.

@smartdevicelink/android PR is ready for review, thanks!

@mrapitis i see you are changing a few things after it was 'ready for review'. Are you done changing things? We were looking to merge this,

@BrettyWhite  Yes, PR is ready for review.
I had to make a few small updates this morning:
Develop has been merged in because of the merge conflicts with the feature branch.  I also updated some docs and noticed an enum was wrong (the enum mistake was pointed out in the iOS PR yesterday and was present here is well.).  Thanks again.

Ok thanks, i see that the unit tests are still failing. I will wait until those are passing and then consider it ready for review. Thanks @mrapitis

@BrettyWhite unit tests now passing.


Linux OS with .NET- The configured user limit (128) on the number of inotify instances has been reached

This issue is directly related to and a followup of https://github.com/dotnet/aspnetcore/issues/7531 since that issue has been locked. The same issue occurs now in .NET Core 3.1. Following the previous thread, I was able to specify a different user in my Dockerfile to limit this problem which occurs when putting too many docker containers on the same host that are using the same user UID. Our teams now use a randomized UID to ensure each immutable build has its own ID:
RUN useradd --uid $(shuf -i 2000-65000 -n 1) app
USER app

This works to limit the issue, but the problem still continues if you intend to run the same instance of that immutable container with 9 or more instances on the same container orchestrator host. For example if I use the following image: "FROM mcr.microsoft.com/dotnet/core/aspnet:3." to run a base default / empty ASP.NET Core application with the following Program.cs (and usage of zero-configuration files):
Host.CreateDefaultBuilder(args)
                .ConfigureWebHost(builder =>
                {
                    builder
                        .UseKestrel()
                        .UseStartup<Startup>();
                });

Run a default app in the container above, and attach your shell and execute the following to count the number of watchers:
apt-get install lsof
lsof | grep inotify

.NET Core 3.1 shows me generally 15 or 16, while .NET Core 2.1 default app shows more like 40.
If I am running 8 containers each taking at least 15 instances of the 128 limit - I run out pretty quickly.
General concerns:

Scaling is the first concern I have for obvious reasons (depending on my placement strategy). Is the expectation that I should be increasing this limit on my orchestrator hosts to allow for this?
With a default execution of ASP.NET Core 3.1 that uses no configuration files, why am I seeing 15 instances? Typically speaking in a container there is very little reason I even want to watch files (especially not configuration files) since its entirely immutable. Is there a way to entirely turn off the inotify watcher instances all together (which would solve this problem entirely)? Or is there an underlying bug in ASP.NET Core here?

We should look into adding a doc about ulimit on mac and linux.
Also, mention using the polling file watcher to reduce inotify instances.

@travisgosselin what doc should this go in?

Good question @Rick-Anderson - Ideally it wouldn't be a concern at all and be fixed, but for the Docs specifically, it seems prudent to call out these best practices out in any location that discusses Dockerfile usage patterns for ASP.NET Core. Existing, "The Dockerfile" section here might be a starting place; it already indicates COPY of csproj and sln files as a good practice for docker layer caching (https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/docker/building-net-docker-images?view=aspnetcore-3.1). Calling out additionally some of the security practices described here for not running as root and the side effects from a port security perspective (i.e. has to be above port 1000) might make sense?
Perhaps here as well? https://docs.microsoft.com/en-us/dotnet/core/docker/build-container?tabs=windows
Or perhaps this belongs closer to security? A new page as a sibling or close to something like this related to hosting: https://docs.microsoft.com/en-us/aspnet/core/security/docker-https?view=aspnetcore-3.1

+1

@BrennanConroy @travisgosselin  several places report fixing this via reloadOnChange: false);
.AddJsonFile($"appsettings.json", optional: true, reloadOnChange: false);
See https://stackoverflow.com/a/56547116/502537

Sure, that could be a solution if you don't care about refreshing config on file change.

@travisgosselin  is  the following enough to fix the problem?
public static IHostBuilder CreateHostBuilder(string[] args) =>
    Host.CreateDefaultBuilder(args)
        .ConfigureAppConfiguration((hostingContext, config) =>
        {
            config.AddJsonFile("appsettings.json",
                optional: true,
                reloadOnChange: false);
        })
        .ConfigureWebHostDefaults(webBuilder =>
        {
            webBuilder.UseStartup<Startup>();
        });
}

Or do you need to follow https://stackoverflow.com/a/56547116/502537 ?  and not use the default builder?

Per @paillave here
echo fs.inotify.max_user_instances=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
this will increase the amount of authorized instances as too many may be taken by vs code addons

Thanks for getting back to this @Rick-Anderson . All the suggestions you provide since my last post definitely help, and are actions I've taken across our services. That being said, even with my earlier investigation and initial notes, there seems to be no option to eliminate all watchers completely, even when setting reloadOnChange false. Generally speaking, I have that disabled anyhow, since this is inside a container, I'm not sure how useful it is. At the end of the day, all this information should be documented (if not fixed) indicating that you should NOT use the root user as a best practice, and the possible implications of scaling your service in PROD resulting in possible startup failure (if strategy places too many on a large host).

We're also bumping on this issue with .NET Core 3.1 and Function apps.

See this comment by @Tratcher

@Tratcher would it be unreasonable to expect the Docker image to have DOTNET_HOSTBUILDER__RELOADCONFIGONCHANGE=false by default?

@kanadaj because you don't expect the config files to change without at least restarting? Seems reasonable.
@bradygaster @sebastienros do you know where to file that?

Should it be in the VS docker templates? Like we asked to change the App Service setting for forward proxy headers?

This sounds like a good idea ,I've  an issue related to this open on that repo here: https://github.com/microsoft/vscode-dev-containers/issues/418

@Tratcher would it be unreasonable to expect the Docker image to have DOTNET_HOSTBUILDER__RELOADCONFIGONCHANGE=false by default?

Totally agreed with this suggestion.
Because not all linux or emulator supported this feature and this is not a essential function for ASP.NET Core in any version, it's absolutely turn to false for default for redundant code put into the non sense block without the essential technical support.
Considering the QEMU not support this, and Apple M1 + .NET Core with Linux-x64 container running on this emulator I strongly recommend put this setting to False by default to help more rookie of ASP.NET Core without the pointless survey/research to play and learn ASP.NET Core on both Intel and ARM CPU on macOS system.

I have the same problem on NET 6. I don't use docker and run the application on a Linux host.
But my error happens in the code:
WebApplicationBuilder builder = WebApplication.CreateBuilder();

Exception is:
System.IO.IOException: The configured user limit (128) on the number of inotify instances has been reached, or the per-process limit on the number of open file descriptors has been reached.
   at System.IO.FileSystemWatcher.StartRaisingEvents()
   at System.IO.FileSystemWatcher.StartRaisingEventsIfNotDisposed()
   at System.IO.FileSystemWatcher.set_EnableRaisingEvents(Boolean value)
   at Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher.TryEnableFileSystemWatcher()
   at Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher.CreateFileChangeToken(String filter)
   at Microsoft.Extensions.FileProviders.PhysicalFileProvider.Watch(String filter)
   at Microsoft.Extensions.Configuration.FileConfigurationProvider.<.ctor>b__1_0()
   at Microsoft.Extensions.Primitives.ChangeToken.OnChange(Func`1 changeTokenProducer, Action changeTokenConsumer)
   at Microsoft.Extensions.Configuration.FileConfigurationProvider..ctor(FileConfigurationSource source)
   at Microsoft.Extensions.Configuration.Json.JsonConfigurationSource.Build(IConfigurationBuilder builder)
   at Microsoft.Extensions.Configuration.ConfigurationManager.AddSource(IConfigurationSource source)
   at Microsoft.Extensions.Configuration.ConfigurationManager.Microsoft.Extensions.Configuration.IConfigurationBuilder.Add(IConfigurationSource source)
   at Microsoft.Extensions.Configuration.ConfigurationExtensions.Add[TSource](IConfigurationBuilder builder, Action`1 configureSource)
   at Microsoft.Extensions.Configuration.JsonConfigurationExtensions.AddJsonFile(IConfigurationBuilder builder, IFileProvider provider, String path, Boolean optional, Boolean reloadOnChange)
   at Microsoft.Extensions.Configuration.JsonConfigurationExtensions.AddJsonFile(IConfigurationBuilder builder, String path, Boolean optional, Boolean reloadOnChange)
   at Microsoft.Extensions.Hosting.HostingHostBuilderExtensions.<>c__DisplayClass11_0.<ConfigureDefaults>b__1(HostBuilderContext hostingContext, IConfigurationBuilder config)
   at Microsoft.AspNetCore.Hosting.BootstrapHostBuilder.RunDefaultCallbacks(ConfigurationManager configuration, HostBuilder innerBuilder)
   at Microsoft.AspNetCore.Builder.WebApplicationBuilder..ctor(WebApplicationOptions options, Action`1 configureDefaults)
   at Microsoft.AspNetCore.Builder.WebApplication.CreateBuilder()

Is any suggestion?

I understood that this problem is in VS Code.
So I have 3 cases:

VS Code is loaded and Rider IDE is unloaded: my application has this exception when I run it from VS Code.
VS Code & Rider are loaded and have opened the same solution (.sln): my application has this exception when I run it from any IDE, it does not mean VS Code or Rider.
VS Code is unloaded and Rider IDE is loaded; my application does not have this exception!!! WTF???

I see that VS Code offer me to create launch.json file:
{
    // Используйте IntelliSense, чтобы узнать о возможных атрибутах.
    // Наведите указатель мыши, чтобы просмотреть описания существующих атрибутов.
    // Для получения дополнительной информации посетите: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": ".NET Core Launch (web)",
            "type": "coreclr",
            "request": "launch",
            "preLaunchTask": "build",
            "program": "${workspaceFolder}/GUI/TerminalUI/bin/Debug/net6.0/TerminalUI.dll",
            "args": [],
            "cwd": "${workspaceFolder}/GUI/TerminalUI",
            "stopAtEntry": false,
            "serverReadyAction": {
                "action": "openExternally",
                "pattern": "\\bNow listening on:\\s+(https?://\\S+)"
            },
            "env": {
                "ASPNETCORE_ENVIRONMENT": "Development"
            },
            "sourceFileMap": {
                "/Views": "${workspaceFolder}/Views"
            }
        },
        {
            "name": ".NET Core Attach",
            "type": "coreclr",
            "request": "attach"
        }
    ]
}

On another website I read that VS Code runs the application on docker but I don't see where in launch.json it is directed that application must run in docker

On another website I read that VS Code runs the application on docker but I don't see where in launch.json it is directed that application must run in docker

@Rombersoft: This is only true if you use the dev container feature of it. You would have a .devcontainer folder in your project if it is the case

In my case of simple linux host (no problem with containers yet), handled the problem with:
https://github.com/mikesart/inotify-info - to identify inotify consumers
Updated /etc/sysctl.conf with:
fs.inotify.max_user_instances=1024
fs.inotify.max_user_watches=1048576

Important to note, initially problem happened due to limit of user instances, set to 128, not limit of user watches

@travisgosselin see what @alexkreskiyan  has above this. Looks useful.

@travisgosselin see what @alexkreskiyan has above this. Looks useful.

Sure, I would imagine that additional limit would be important as well, though I haven't run into that myself specifically. I have increased the user_watches on our systems as a workaround in my case.

We had this problem running tests on our devops linux self-hosted build agent. Interestingly we didn't get the issue on the the cloud agent, so maybe it is configured differently.
The above fix has solved the problem for us though. Thanks @alexkreskiyan!

I have same problem but seem can't not resolve:
blazor.webassembly.js?v=1:1 crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
Unhandled exception rendering component: The configured user limit (128) on the number of inotify instances has been reached, or the per-process limit on the number of open file descriptors has been reached.
I try to fix this issue by four way:

change config: reloadOnChange => false
Change variable environment DOTNET_USE_POLLING_FILE_WATCHER => true
Change variable environment DOTNET_HOSTBUILDER__RELOADCONFIGONCHANGE=> false
Change max user instance:
・echo fs.inotify.max_user_instances=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
・echo 512 > /proc/sys/fs/inotify/max_user_instances
=> It's not work

@LanAnh002 do you use step (2) this way? I put this right at the start of my program and I didn't hit this bug in a long time.
        Environment.SetEnvironmentVariable("DOTNET_hostBuilder:reloadConfigOnChange", "false");
        var builder = WebApplication.CreateBuilder(args);

@macias
Your way seem like my way 1:

@LanAnh002 it will cost you nothing, could you please put "my" first line as your first one?

@macias
I try add your first line as my first one but it didn't work:


[tool_crash] StateError: Bad state: Future already completed

Command
flutter --no-color attach --machine --device-id=UJKGL20822000059 lib/main.dart

Steps to Reproduce

...
...
...

Logs
StateError: Bad state: Future already completed
#0      _AsyncCompleter.complete (dart:async/future_impl.dart:43:31)
#1      FlutterDevice.connect.<anonymous closure> (package:flutter_tools/src/resident_runner.dart:356:17)
<asynchronous suspension>

[!] Flutter (Channel [user-branch], 3.16.9, on macOS 14.4 23E214 darwin-arm64, locale zh-Hans-CN)
    ! Flutter version 3.16.9 on channel [user-branch] at /Users/sunzhangfei/frame/flutter
      Currently on an unknown channel. Run `flutter channel` to switch to an official channel.
      If that doesn't fix the issue, reinstall Flutter by following instructions at https://flutter.dev/docs/get-started/install.
    ! Upstream repository unknown source is not a standard remote.
      Set environment variable "FLUTTER_GIT_URL" to unknown source to dismiss this error.
    • Framework revision 41456452f2 (5 个月前), 2024-01-25 10:06:23 -0800
    • Engine revision f40e976bed
    • Dart version 3.2.6
    • DevTools version 2.28.5
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/sunzhangfei/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/sunzhangfei/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160)
    • All Android licenses accepted.

[✗] Xcode - develop for iOS and macOS
    ✗ Xcode installation is incomplete; a full installation is necessary for iOS and macOS development.
      Download at: https://developer.apple.com/xcode/
      Or install Xcode via the App Store.
      Once installed, run:
        sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
        sudo xcodebuild -runFirstLaunch
    ✗ CocoaPods installed but not working.
        You appear to have CocoaPods installed but it is not working.
        This can happen if the version of Ruby that CocoaPods was installed with is different from the one being used to invoke it.
        This can usually be fixed by re-installing CocoaPods.
      To re-install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160)

[✓] VS Code (version 1.89.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (3 available)
    • JER AN10 (mobile) • UJKGL20822000059 • android-arm64  • Android 12 (API 31)
    • macOS (desktop)   • macos            • darwin-arm64   • macOS 14.4 23E214 darwin-arm64
    • Chrome (web)      • chrome           • web-javascript • Google Chrome 126.0.6478.114

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 2 categories.

Flutter Application Metadata
Type: app
Version: 1.0.0+1
Material: true
Android X: true
Module: true
Plugin: false
Android package: com.zuoyebang.airclass.flutter
iOS bundle identifier: com.zuoyebang.airclass.flutter
Creation channel: stable
Creation framework version: 5464c5bac742001448fe4fc0597be939379f88ea
Plugins
flutter_boost-80b79b19a1ca759b1b9e848340eab29fee2a3865
toast-0.3.0
zbk_flutter_channel-064ea122dd07adfb32eaf3644ebdd13cf2e3f338
zbk_flutter_router-d53280016380d5ee2cb0a4bcdf00c02f0b179761

Closing this as a duplicate of https://github.com/flutter/flutter/issues/77581.


Seeting a Background Image for StackViewController

Hi All,
Im using StackViewController in one of my Projects. Currently im using "backgroundcolor" property to set the BG color of the View. Now i have a new Req in which i need to set an Image as the Background. Is it Possible using this Framework ?
I tried adding a subview to the "backgroundView" property and it is not working out. Please provide some pointers.
Thank you :)

Hi Jenix, can you give me more detail about what isn't working? Maybe a code example I could check out? I would expect that you could add a subview to the background view or use the pattern init of UIColor. https://developer.apple.com/documentation/uikit/uicolor/1621933-init

Hi @louoso Thanks for the reply :)
I have modified and attached the example code of this repo. I was able to change the BG colour using .backgroundcolor property and also pattern image works fine(But we have to add a large image to support both portrait and landscape).
Im not sure why the "backgroundview" property is not working for me. I have added a test image in this example code and created an image view with a smaller frame and added this image view as the subview of "backgroundview".
please advice if the above approach is right or if i should change something. Thanks alot :)
StackViewController-master.zip

Hi @louoso
StackViewController-master.zip
Thanks for the reply :)
I have modified and attached the example code of this repo. I was able to change the BG colour using .backgroundcolor property and also pattern image works fine(But we have to add a large image to support both portrait and landscape).
Im not sure why the "backgroundview" property is not working for me. I have added a test image in this example code and created an image view with a smaller frame and added this image view as the subview of "backgroundview".
please advice if the above approach is right or if i should change something. Thanks alot :)

So in this case that property isn't exposing an existing UIView, but is giving you the option to set that property to something that will then be added and pinned to the edges.
So you would want something like this:
let imageView = ...
stackViewController.backgroundView = imageView

Hi @louoso
Thanks, Thanks alot :) It Works.


[Tutorial 13] Figure output 14 - use niwidgets?

Using niwidgets to plot this figure would allow the student to navigate the weights.

Resolved in #31


Move canvas and other TK objects to GUI

Move all TK objects into GUI
Refer to them using the g instance
Cleanup imports.

Completed in commit: https://github.com/GeorgeCiesinski/image-filters/commit/933a86b23be1d1042c784c882b29cafa2a027b13


Semantic HTML

User Story
As a marketing agency
I want a codebase that follows accessibility standards
so that our own site is optimized for search engines
Acceptance Criteria
GIVEN a webpage meets accessibility standards
WHEN I view the source code
THEN I find semantic HTML elements

Reviewed HTML, replacing non-semantic tags with semantic tags for better accessibility of webpage.


Drawing contour lines in original image

Great app, but this seems to defeat me. The syntax is different from the opencv tutorials.
Please could you say how you drew the box and border around the identified blob in your top left image??
http://blogs.wcode.org/wp-content/uploads/2015/03/footfallgif.gif

Hi @davidw212
No problems. The syntax isnt far off.
To draw the contours. You call contourFinder.draw(); this should draw the found blobs at (0,0).
Best

Sorry Ive tried for a few weeks and still cant get the video output showing in colour and with the two blob borders.
I can get the greyscale frames displayed, and a circle on the midpoint of the blob, but not an outline boundary
Please could you give an indication of which section needs amending.
thanks


Support one-line pattern matching syntax

This PR supports one-line pattern matching syntax for Layout/SpaceAroundKeyword and Layout/SpaceAroundOperators.
match-pattern node changes differently in Ruby 2.7 and Ruby 3.0.
Ruby 2.7 (Parser::Ruby27)
% ruby-parse -e '42 in foo'
(match-pattern
  (int 42)
  (match-var :foo))

Ruby 3.0 (Parser::Ruby30)
% ruby-parse -e '42 => foo'
(match-pattern
  (int 42)
  (match-var :foo))

And one-line in syntax that represents one-line pattern maching changes
from match-pattern node to match-pattern-p in Ruby 3.0.
% ruby-parse -e '42 in foo'
(match-pattern-p
(int 42)
  (match-var :foo))

Before submitting the PR make sure the following are checked:

[x] The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
[x] Wrote good commit messages.
[ ] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[x] Added tests.
[x] Ran bundle exec rake default. It executes all tests and runs RuboCop on its own code.
[x] Added an entry (file) to the changelog folder named {change_type}_{change_description}.md if the new code introduces user-observable changes. See changelog entry format for details.

Thanks!


AP Cost Calculator

Going to require research to integrate virii AP costs, as they are variable.  The rest of the information is available in ideas.txt and can be immediately implemented.

Added to master branch

Closed in error, thought it was AbP calculator.


feature: initial schema

Resolves #7 Define database schema
Description
Creation of initial schema files for MongoDB
Discussion started in #13
Definition of Done

[ ] Acceptance Criteria is fulfilled
[ ] Changes and issues encountered are documented
[X] Github issue is linked in this PR

Could you put the image of the DB diagram in a discussion or documentation page and link to the source code instead, or customize it to exclude it from the production bundle build? @manuelpereiradiconium


[WIP] build: allow ng_package patch to silently fail so that issue can be fixed in angular repo

https://github.com/angular/angular/issues/32603 will be fixed in https://github.com/angular/angular/pull/33607 but the fix breaks this patch which breaks the material-unit-test job on that PR (https://app.circleci.com/jobs/github/angular/angular/515946). This change is temporary so that #33607 can land in angular.

Yes, these npm deps need to brought in now as they are peerDeps of @angular/bazel and no longer direct deps. We've moved a peerDeps pattern for all of the nodejs rules as it makes more sense for the node ecosystem.
Don't merge this yet, I have one last failure on https://github.com/angular/angular/pull/33607 material-unit-tests to resolve: https://app.circleci.com/jobs/github/angular/angular/516209.

@gregmagolan I see. Thanks for the explanation. Makes sense that they are listed as peer dependencies in @angular/bazel.

Ok. All green on the angular repo tested with this branch: https://app.circleci.com/jobs/github/angular/angular/516838
Ready to merge.